Lines Matching refs:pktbuf

601 _dhd_wlfc_pullheader(athost_wl_status_info_t* ctx, void* pktbuf)  in _dhd_wlfc_pullheader()  argument
605 if (PKTLEN(ctx->osh, pktbuf) < BDC_HEADER_LEN) { in _dhd_wlfc_pullheader()
607 PKTLEN(ctx->osh, pktbuf), BDC_HEADER_LEN)); in _dhd_wlfc_pullheader()
610 h = (struct bdc_header *)PKTDATA(ctx->osh, pktbuf); in _dhd_wlfc_pullheader()
613 PKTPULL(ctx->osh, pktbuf, BDC_HEADER_LEN); in _dhd_wlfc_pullheader()
615 if (PKTLEN(ctx->osh, pktbuf) < (uint)(h->dataOffset << 2)) { in _dhd_wlfc_pullheader()
617 PKTLEN(ctx->osh, pktbuf), (h->dataOffset << 2))); in _dhd_wlfc_pullheader()
622 PKTPULL(ctx->osh, pktbuf, (h->dataOffset << 2)); in _dhd_wlfc_pullheader()
1377 _dhd_wlfc_enque_delayq(athost_wl_status_info_t* ctx, void* pktbuf, int prec) in _dhd_wlfc_enque_delayq() argument
1381 if (pktbuf != NULL) { in _dhd_wlfc_enque_delayq()
1382 entry = _dhd_wlfc_find_table_entry(ctx, pktbuf); in _dhd_wlfc_enque_delayq()
1393 if (_dhd_wlfc_prec_enq_with_drop(ctx->dhdp, &entry->psq, pktbuf, (prec << 1), in _dhd_wlfc_enque_delayq()
2212 void* pktbuf = NULL; in _dhd_wlfc_compressed_txstatus_update() local
2271 ret = _dhd_wlfc_deque_afq(wlfc, hslot, hcnt, fifo_id, &pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2275 ret = _dhd_wlfc_hanger_poppkt(wlfc->hanger, hslot, &pktbuf, FALSE); in _dhd_wlfc_compressed_txstatus_update()
2276 if (!pktbuf) { in _dhd_wlfc_compressed_txstatus_update()
2289 if ((ret != BCME_OK) || !pktbuf) { in _dhd_wlfc_compressed_txstatus_update()
2293 bcm_pkt_validate_chk(pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2296 fifo_id = DHD_PKTTAG_FIFO(PKTTAG(pktbuf)); in _dhd_wlfc_compressed_txstatus_update()
2298 entry = _dhd_wlfc_find_table_entry(wlfc, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2341 if (DHD_PKTTAG_CREDITCHECK(PKTTAG(pktbuf))) { in _dhd_wlfc_compressed_txstatus_update()
2342 _dhd_wlfc_return_implied_credit(wlfc, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2348 if (!DHD_PKTTAG_ONETIMEPKTRQST(PKTTAG(pktbuf))) { in _dhd_wlfc_compressed_txstatus_update()
2362 WL_TXSTATUS_SET_GENERATION(DHD_PKTTAG_H2DTAG(PKTTAG(pktbuf)), gen); in _dhd_wlfc_compressed_txstatus_update()
2365 WL_SEQ_SET_REUSE(DHD_PKTTAG_H2DSEQ(PKTTAG(pktbuf)), seq_fromfw); in _dhd_wlfc_compressed_txstatus_update()
2366 WL_SEQ_SET_NUM(DHD_PKTTAG_H2DSEQ(PKTTAG(pktbuf)), seq_num); in _dhd_wlfc_compressed_txstatus_update()
2369 ret = _dhd_wlfc_enque_suppressed(wlfc, fifo_id, pktbuf); in _dhd_wlfc_compressed_txstatus_update()
2373 _dhd_wlfc_prec_drop(dhd, (fifo_id << 1) + 1, pktbuf, FALSE); in _dhd_wlfc_compressed_txstatus_update()
2390 dhd_txcomplete(dhd, pktbuf, TRUE); in _dhd_wlfc_compressed_txstatus_update()
2391 wlfc->pkt_cnt_in_drv[DHD_PKTTAG_IF(PKTTAG(pktbuf))] in _dhd_wlfc_compressed_txstatus_update()
2392 [DHD_PKTTAG_FIFO(PKTTAG(pktbuf))]--; in _dhd_wlfc_compressed_txstatus_update()
2395 PKTFREE(wlfc->osh, pktbuf, TRUE); in _dhd_wlfc_compressed_txstatus_update()
2987 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
2998 if ((dhd == NULL) || (pktbuf == NULL)) { in dhd_wlfc_parse_header_info()
3013 tmpbuf = (uint8*)PKTDATA(dhd->osh, pktbuf); in dhd_wlfc_parse_header_info()
3390 dhd_wlfc_commit_packets(dhd_pub_t *dhdp, f_commitpkt_t fcommit, void* commit_ctx, void *pktbuf, in dhd_wlfc_commit_packets() argument
3397 if (!pktbuf) in dhd_wlfc_commit_packets()
3409 if (pktbuf) { in dhd_wlfc_commit_packets()
3410 DHD_PKTTAG_WLFCPKT_SET(PKTTAG(pktbuf), 0); in dhd_wlfc_commit_packets()
3419 if (pktbuf) { in dhd_wlfc_commit_packets()
3422 _dhd_wlfc_pushheader(ctx, &pktbuf, FALSE, 0, 0, htod, 0, FALSE); in dhd_wlfc_commit_packets()
3423 if (fcommit(commit_ctx, pktbuf)) { in dhd_wlfc_commit_packets()
3425 PKTFREE(ctx->osh, pktbuf, TRUE); in dhd_wlfc_commit_packets()
3432 if (pktbuf) { in dhd_wlfc_commit_packets()
3433 int ac = DHD_PKTTAG_FIFO(PKTTAG(pktbuf)); in dhd_wlfc_commit_packets()
3435 DHD_PKTTAG_WLFCPKT_SET(PKTTAG(pktbuf), 1); in dhd_wlfc_commit_packets()
3437 rc = _dhd_wlfc_enque_delayq(ctx, pktbuf, ac); in dhd_wlfc_commit_packets()
3439 _dhd_wlfc_prec_drop(ctx->dhdp, (ac << 1), pktbuf, FALSE); in dhd_wlfc_commit_packets()
3442 ctx->pkt_cnt_in_drv[DHD_PKTTAG_IF(PKTTAG(pktbuf))][ac]++; in dhd_wlfc_commit_packets()
4287 bool dhd_wlfc_is_header_only_pkt(dhd_pub_t * dhd, void *pktbuf) in dhd_wlfc_is_header_only_pkt() argument
4306 if (PKTLEN(wlfc->osh, pktbuf) == 0) { in dhd_wlfc_is_header_only_pkt()