Lines Matching refs:netbuf
117 qdf_nbuf_t netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in restore_tx_packet() local
120 qdf_nbuf_unmap(target->osdev, netbuf, QDF_DMA_TO_DEVICE); in restore_tx_packet()
125 qdf_nbuf_pull_head(netbuf, sizeof(HTC_FRAME_HDR)); in restore_tx_packet()
178 qdf_nbuf_t netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in log_packet_info() local
182 qdf_nbuf_pull_head(netbuf, sizeof(HTC_FRAME_HDR)); in log_packet_info()
184 qdf_nbuf_push_head(netbuf, sizeof(HTC_FRAME_HDR)); in log_packet_info()
221 qdf_nbuf_t netbuf; in allocate_htc_bundle_packet() local
226 netbuf = qdf_nbuf_alloc(NULL, in allocate_htc_bundle_packet()
229 AR_DEBUG_ASSERT(netbuf); in allocate_htc_bundle_packet()
230 if (!netbuf) in allocate_htc_bundle_packet()
235 qdf_nbuf_free(netbuf); in allocate_htc_bundle_packet()
241 qdf_nbuf_free(netbuf); in allocate_htc_bundle_packet()
247 SET_HTC_PACKET_NET_BUF_CONTEXT(pPacket, netbuf); in allocate_htc_bundle_packet()
248 pPacket->pBuffer = qdf_nbuf_data(netbuf); in allocate_htc_bundle_packet()
249 pPacket->BufferLength = qdf_nbuf_len(netbuf); in allocate_htc_bundle_packet()
255 pPacket->netbufOrigHeadRoom = qdf_nbuf_headroom(netbuf); in allocate_htc_bundle_packet()
275 qdf_nbuf_t netbuf; in free_htc_bundle_packet() local
278 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in free_htc_bundle_packet()
279 AR_DEBUG_ASSERT(netbuf); in free_htc_bundle_packet()
280 if (!netbuf) { in free_htc_bundle_packet()
292 curentHeadRoom = qdf_nbuf_headroom(netbuf); in free_htc_bundle_packet()
293 qdf_nbuf_pull_head(netbuf, in free_htc_bundle_packet()
295 qdf_nbuf_trim_tail(netbuf, qdf_nbuf_len(netbuf)); in free_htc_bundle_packet()
298 pPacket->pBuffer = qdf_nbuf_data(netbuf); in free_htc_bundle_packet()
299 pPacket->BufferLength = qdf_nbuf_len(netbuf); in free_htc_bundle_packet()
553 qdf_nbuf_t netbuf, bundleBuf; in htc_issue_packets_bundle() local
638 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in htc_issue_packets_bundle()
642 netbuf, 0); in htc_issue_packets_bundle()
657 frag_count = qdf_nbuf_get_num_frags(netbuf); in htc_issue_packets_bundle()
660 int frag_len = qdf_nbuf_get_frag_len(netbuf, i); in htc_issue_packets_bundle()
662 qdf_nbuf_get_frag_vaddr(netbuf, i); in htc_issue_packets_bundle()
732 qdf_nbuf_t netbuf; in htc_issue_packets() local
795 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in htc_issue_packets()
796 AR_DEBUG_ASSERT(netbuf); in htc_issue_packets()
806 qdf_nbuf_get_frag_vaddr(netbuf, 0); in htc_issue_packets()
886 buf = (uint8_t *)qdf_nbuf_get_frag_vaddr(netbuf, 0); in htc_issue_packets()
895 netbuf, data_attr); in htc_issue_packets()
1891 qdf_nbuf_t netbuf; in __htc_send_pkt() local
1929 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in __htc_send_pkt()
1930 AR_DEBUG_ASSERT(netbuf); in __htc_send_pkt()
1931 if (!netbuf) in __htc_send_pkt()
1934 qdf_nbuf_push_head(netbuf, sizeof(HTC_FRAME_HDR)); in __htc_send_pkt()
1938 htc_hdr = (HTC_FRAME_HDR *)qdf_nbuf_get_frag_vaddr(netbuf, 0); in __htc_send_pkt()
2207 QDF_STATUS htc_send_data_pkt(HTC_HANDLE htc_hdl, qdf_nbuf_t netbuf, int ep_id, in htc_send_data_pkt() argument
2241 p_htc_hdr = (HTC_FRAME_HDR *)qdf_nbuf_get_frag_vaddr(netbuf, 0); in htc_send_data_pkt()
2244 data_attr = qdf_nbuf_data_attr_get(netbuf); in htc_send_data_pkt()
2273 QDF_NBUF_UPDATE_TX_PKT_COUNT(netbuf, QDF_NBUF_TX_PKT_HTC); in htc_send_data_pkt()
2274 DPTRACE(qdf_dp_trace(netbuf, QDF_DP_TRACE_HTC_PACKET_PTR_RECORD, in htc_send_data_pkt()
2275 QDF_TRACE_DEFAULT_PDEV_ID, qdf_nbuf_data_addr(netbuf), in htc_send_data_pkt()
2276 sizeof(qdf_nbuf_data(netbuf)), QDF_TX)); in htc_send_data_pkt()
2279 pEndpoint->Id, actual_length, netbuf, data_attr); in htc_send_data_pkt()
2301 qdf_nbuf_t netbuf = NULL; in htc_send_data_pkt() local
2318 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in htc_send_data_pkt()
2319 pHtcHdr = (HTC_FRAME_HDR *) qdf_nbuf_get_frag_vaddr(netbuf, 0); in htc_send_data_pkt()
2366 QDF_NBUF_UPDATE_TX_PKT_COUNT(netbuf, QDF_NBUF_TX_PKT_HTC); in htc_send_data_pkt()
2367 DPTRACE(qdf_dp_trace(netbuf, QDF_DP_TRACE_HTC_PACKET_PTR_RECORD, in htc_send_data_pkt()
2368 QDF_TRACE_DEFAULT_PDEV_ID, qdf_nbuf_data_addr(netbuf), in htc_send_data_pkt()
2369 sizeof(qdf_nbuf_data(netbuf)), QDF_TX)); in htc_send_data_pkt()
2483 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in htc_send_data_pkt()
2484 pHtcHdr = (HTC_FRAME_HDR *)qdf_nbuf_get_frag_vaddr(netbuf, 0); in htc_send_data_pkt()
2504 netbuf, data_attr); in htc_send_data_pkt()
2581 qdf_nbuf_t netbuf) in htc_lookup_tx_packet() argument
2601 if (netbuf == (qdf_nbuf_t) GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket)) { in htc_lookup_tx_packet()
2623 if (netbuf == in htc_lookup_tx_packet()
2652 qdf_nbuf_t netbuf, unsigned int EpID, in htc_tx_completion_handler() argument
2672 pPacket = htc_lookup_tx_packet(target, pEndpoint, netbuf); in htc_tx_completion_handler()
2676 netbuf = NULL; in htc_tx_completion_handler()
2708 netbuf = NULL; in htc_tx_completion_handler()