Lines Matching refs:pktbuf

727 _dhd_wlfc_pullheader(athost_wl_status_info_t* ctx, void* pktbuf)  in _dhd_wlfc_pullheader()  argument
731 if (PKTLEN(ctx->osh, pktbuf) < BDC_HEADER_LEN) { in _dhd_wlfc_pullheader()
733 PKTLEN(ctx->osh, pktbuf), BDC_HEADER_LEN)); in _dhd_wlfc_pullheader()
736 h = (struct bdc_header *)PKTDATA(ctx->osh, pktbuf); in _dhd_wlfc_pullheader()
739 PKTPULL(ctx->osh, pktbuf, BDC_HEADER_LEN); in _dhd_wlfc_pullheader()
741 if (PKTLEN(ctx->osh, pktbuf) < (uint)(h->dataOffset << 2)) { in _dhd_wlfc_pullheader()
743 PKTLEN(ctx->osh, pktbuf), (h->dataOffset << 2))); in _dhd_wlfc_pullheader()
748 PKTPULL(ctx->osh, pktbuf, (h->dataOffset << 2)); in _dhd_wlfc_pullheader()
1557 _dhd_wlfc_enque_delayq(athost_wl_status_info_t* ctx, void* pktbuf, int prec) in _dhd_wlfc_enque_delayq() argument
1561 if (pktbuf != NULL) { in _dhd_wlfc_enque_delayq()
1562 entry = _dhd_wlfc_find_table_entry(ctx, pktbuf); in _dhd_wlfc_enque_delayq()
1573 if (_dhd_wlfc_prec_enq_with_drop(ctx->dhdp, &entry->psq, pktbuf, (prec << 1), in _dhd_wlfc_enque_delayq()
2435 void* pktbuf = NULL; in _dhd_wlfc_compressed_txstatus_update() local
2495 ret = _dhd_wlfc_deque_afq(wlfc, hslot, hcnt, fifo_id, &pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2499 ret = _dhd_wlfc_hanger_poppkt(wlfc->hanger, hslot, &pktbuf, FALSE); in _dhd_wlfc_compressed_txstatus_update()
2500 if (!pktbuf) { in _dhd_wlfc_compressed_txstatus_update()
2513 if ((ret != BCME_OK) || !pktbuf) { in _dhd_wlfc_compressed_txstatus_update()
2517 bcm_pkt_validate_chk(pktbuf, "_dhd_wlfc_compressed_txstatus_update"); in _dhd_wlfc_compressed_txstatus_update()
2520 dhd_txpkt_log_and_dump(dhd, pktbuf, &pktfate_status); in _dhd_wlfc_compressed_txstatus_update()
2523 fifo_id = DHD_PKTTAG_FIFO(PKTTAG(pktbuf)); in _dhd_wlfc_compressed_txstatus_update()
2525 entry = _dhd_wlfc_find_table_entry(wlfc, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2550 if (gen == WL_TXSTATUS_GET_GENERATION(DHD_PKTTAG_H2DTAG(PKTTAG(pktbuf)))) { in _dhd_wlfc_compressed_txstatus_update()
2579 if (DHD_PKTTAG_CREDITCHECK(PKTTAG(pktbuf))) { in _dhd_wlfc_compressed_txstatus_update()
2580 _dhd_wlfc_return_implied_credit(wlfc, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2586 if (!DHD_PKTTAG_ONETIMEPKTRQST(PKTTAG(pktbuf))) { in _dhd_wlfc_compressed_txstatus_update()
2600 WL_TXSTATUS_SET_GENERATION(DHD_PKTTAG_H2DTAG(PKTTAG(pktbuf)), gen); in _dhd_wlfc_compressed_txstatus_update()
2603 WL_SEQ_SET_REUSE(DHD_PKTTAG_H2DSEQ(PKTTAG(pktbuf)), seq_fromfw); in _dhd_wlfc_compressed_txstatus_update()
2604 WL_SEQ_SET_NUM(DHD_PKTTAG_H2DSEQ(PKTTAG(pktbuf)), seq_num); in _dhd_wlfc_compressed_txstatus_update()
2607 ret = _dhd_wlfc_enque_suppressed(wlfc, fifo_id, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2614 _dhd_wlfc_check_complete_order(wlfc, entry, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2618 _dhd_wlfc_prec_drop(dhd, (fifo_id << 1) + 1, pktbuf, FALSE); in _dhd_wlfc_compressed_txstatus_update()
2645 _dhd_wlfc_check_complete_order(wlfc, entry, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2654 dhd_txcomplete(dhd, pktbuf, TRUE); in _dhd_wlfc_compressed_txstatus_update()
2655 wlfc->pkt_cnt_in_drv[DHD_PKTTAG_IF(PKTTAG(pktbuf))] in _dhd_wlfc_compressed_txstatus_update()
2656 [DHD_PKTTAG_FIFO(PKTTAG(pktbuf))]--; in _dhd_wlfc_compressed_txstatus_update()
2659 PKTFREE(wlfc->osh, pktbuf, TRUE); in _dhd_wlfc_compressed_txstatus_update()
3315 dhd_wlfc_parse_header_info(dhd_pub_t *dhd, void* pktbuf, int tlv_hdr_len, uchar *reorder_info_buf, in dhd_wlfc_parse_header_info() argument
3326 if ((dhd == NULL) || (pktbuf == NULL)) { in dhd_wlfc_parse_header_info()
3341 tmpbuf = (uint8*)PKTDATA(dhd->osh, pktbuf); in dhd_wlfc_parse_header_info()
3743 struct dhd_bus *commit_ctx, void *pktbuf, bool need_toggle_host_if) in dhd_wlfc_commit_packets() argument
3749 if (!pktbuf) in dhd_wlfc_commit_packets()
3761 if (pktbuf) { in dhd_wlfc_commit_packets()
3762 DHD_PKTTAG_WLFCPKT_SET(PKTTAG(pktbuf), 0); in dhd_wlfc_commit_packets()
3772 if (pktbuf) { in dhd_wlfc_commit_packets()
3773 PKTFREE(ctx->osh, pktbuf, TRUE); in dhd_wlfc_commit_packets()
3781 if (pktbuf) { in dhd_wlfc_commit_packets()
3784 _dhd_wlfc_pushheader(ctx, &pktbuf, FALSE, 0, 0, htod, 0, FALSE); in dhd_wlfc_commit_packets()
3785 if (fcommit(commit_ctx, pktbuf)) { in dhd_wlfc_commit_packets()
3787 PKTFREE(ctx->osh, pktbuf, TRUE); in dhd_wlfc_commit_packets()
3794 if (pktbuf) { in dhd_wlfc_commit_packets()
3795 int ac = DHD_PKTTAG_FIFO(PKTTAG(pktbuf)); in dhd_wlfc_commit_packets()
3797 DHD_PKTTAG_WLFCPKT_SET(PKTTAG(pktbuf), 1); in dhd_wlfc_commit_packets()
3799 rc = _dhd_wlfc_enque_delayq(ctx, pktbuf, ac); in dhd_wlfc_commit_packets()
3801 _dhd_wlfc_prec_drop(ctx->dhdp, (ac << 1), pktbuf, FALSE); in dhd_wlfc_commit_packets()
3804 ctx->pkt_cnt_in_drv[DHD_PKTTAG_IF(PKTTAG(pktbuf))][ac]++; in dhd_wlfc_commit_packets()
4672 bool dhd_wlfc_is_header_only_pkt(dhd_pub_t * dhd, void *pktbuf) in dhd_wlfc_is_header_only_pkt() argument
4691 if (PKTLEN(wlfc->osh, pktbuf) == 0) { in dhd_wlfc_is_header_only_pkt()