Lines Matching refs:retbuf
487 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member
1711 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf);
1712 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf);
2244 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local
2251 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl()
2252 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl()
2253 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl()
2254 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl()
2255 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl()
2257 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl()
2920 if (dhd_dma_buf_alloc(dhd, &prot->retbuf, IOCT_RETBUF_SIZE)) {
3476 dhd_dma_buf_free(dhd, &prot->retbuf);
3593 dhd_dma_buf_reset(dhd, &prot->retbuf);
4454 dhd_prot_ioctl_ret_buffer_get(dhd_pub_t *dhd, uint32 pktid, dhd_dma_buf_t *retbuf) argument
4456 memset(retbuf, 0, sizeof(dhd_dma_buf_t));
4457 retbuf->va = DHD_PKTID_TO_NATIVE(dhd, dhd->prot->pktid_map_handle_ioctl, pktid,
4458 retbuf->pa, retbuf->len, retbuf->dmah, retbuf->secdma, PKTTYPE_IOCTL_RX);
4882 alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf) argument
4885 memset(retbuf, 0, sizeof(dhd_dma_buf_t));
4887 if ((err = dhd_dma_buf_alloc(dhd, retbuf, IOCT_RETBUF_SIZE)) != BCME_OK) {
4897 free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf) argument
4900 if (retbuf->va) {
4903 retbuf->len = IOCT_RETBUF_SIZE;
4904 retbuf->_alloced = retbuf->len + dma_pad;
4907 dhd_dma_buf_free(dhd, retbuf);
4923 dhd_dma_buf_t retbuf; local
4935 memset(&retbuf, 0, sizeof(dhd_dma_buf_t));
4963 if (alloc_ioctl_return_buffer(dhd, &retbuf) != BCME_OK) {
4967 ASSERT(retbuf.len == IOCT_RETBUF_SIZE);
4968 p = retbuf.va;
4969 pktlen = retbuf.len;
4970 pa = retbuf.pa;
4971 dmah = retbuf.dmah;
5144 free_ioctl_return_buffer(dhd, &retbuf);
6243 dhd_dma_buf_t retbuf; local
6254 memset(&retbuf, 0, sizeof(dhd_dma_buf_t));
6288 dhd_prot_ioctl_ret_buffer_get(dhd, pkt_id, &retbuf);
6289 pkt = retbuf.va;
6325 bcopy(PKTDATA(dhd->osh, pkt), prot->retbuf.va, prot->ioctl_resplen);
6327 bcopy(pkt, prot->retbuf.va, prot->ioctl_resplen);
6339 free_ioctl_return_buffer(dhd, &retbuf);
7760 bcopy(dhd->prot->retbuf.va, buf, dhd->prot->ioctl_resplen);