Lines Matching refs:retbuf
641 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member
2018 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf);
2019 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf);
2578 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local
2585 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl()
2586 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl()
2587 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl()
2588 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl()
2589 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl()
2591 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl()
3324 if (dhd_dma_buf_alloc(dhd, &prot->retbuf, IOCT_RETBUF_SIZE)) { in dhd_prot_allocate_bufs()
4235 dhd_dma_buf_free(dhd, &prot->retbuf); in dhd_prot_detach()
4364 dhd_dma_buf_reset(dhd, &prot->retbuf); in dhd_prot_reset()
5332 BCMFASTPATH(dhd_prot_ioctl_ret_buffer_get)(dhd_pub_t *dhd, uint32 pktid, dhd_dma_buf_t *retbuf) in BCMFASTPATH()
5334 memset(retbuf, 0, sizeof(dhd_dma_buf_t)); in BCMFASTPATH()
5335 retbuf->va = DHD_PKTID_TO_NATIVE(dhd, dhd->prot->pktid_map_handle_ioctl, pktid, in BCMFASTPATH()
5336 retbuf->pa, retbuf->len, retbuf->dmah, retbuf->secdma, PKTTYPE_IOCTL_RX); in BCMFASTPATH()
5800 alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf) in alloc_ioctl_return_buffer() argument
5803 memset(retbuf, 0, sizeof(dhd_dma_buf_t)); in alloc_ioctl_return_buffer()
5805 if ((err = dhd_dma_buf_alloc(dhd, retbuf, IOCT_RETBUF_SIZE)) != BCME_OK) { in alloc_ioctl_return_buffer()
5815 free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf) in free_ioctl_return_buffer() argument
5818 if (retbuf->va) { in free_ioctl_return_buffer()
5821 retbuf->len = IOCT_RETBUF_SIZE; in free_ioctl_return_buffer()
5822 retbuf->_alloced = retbuf->len + dma_pad; in free_ioctl_return_buffer()
5825 dhd_dma_buf_free(dhd, retbuf); in free_ioctl_return_buffer()
5841 dhd_dma_buf_t retbuf; in dhd_prot_rxbufpost_ctrl() local
5853 memset(&retbuf, 0, sizeof(dhd_dma_buf_t)); in dhd_prot_rxbufpost_ctrl()
5887 if (alloc_ioctl_return_buffer(dhd, &retbuf) != BCME_OK) { in dhd_prot_rxbufpost_ctrl()
5891 ASSERT(retbuf.len == IOCT_RETBUF_SIZE); in dhd_prot_rxbufpost_ctrl()
5892 p = retbuf.va; in dhd_prot_rxbufpost_ctrl()
5893 pktlen = retbuf.len; in dhd_prot_rxbufpost_ctrl()
5894 pa = retbuf.pa; in dhd_prot_rxbufpost_ctrl()
5895 dmah = retbuf.dmah; in dhd_prot_rxbufpost_ctrl()
6052 free_ioctl_return_buffer(dhd, &retbuf); in dhd_prot_rxbufpost_ctrl()
7424 dhd_dma_buf_t retbuf; in dhd_prot_ioctcmplt_process() local
7438 memset(&retbuf, 0, sizeof(dhd_dma_buf_t)); in dhd_prot_ioctcmplt_process()
7472 dhd_prot_ioctl_ret_buffer_get(dhd, pkt_id, &retbuf); in dhd_prot_ioctcmplt_process()
7473 pkt = retbuf.va; in dhd_prot_ioctcmplt_process()
7521 bcopy(PKTDATA(dhd->osh, pkt), prot->retbuf.va, prot->ioctl_resplen); in dhd_prot_ioctcmplt_process()
7523 bcopy(pkt, prot->retbuf.va, prot->ioctl_resplen); in dhd_prot_ioctcmplt_process()
7535 free_ioctl_return_buffer(dhd, &retbuf); in dhd_prot_ioctcmplt_process()
10439 bcopy(dhd->prot->retbuf.va, buf, dhd->prot->ioctl_resplen);