Lines Matching refs:s_req

348 	struct hif_scatter_req *s_req;  in ath6kl_sdio_alloc_prep_scat_req()  local
354 scat_req_sz = sizeof(*s_req) + scat_list_sz; in ath6kl_sdio_alloc_prep_scat_req()
364 s_req = kzalloc(scat_req_sz, GFP_KERNEL); in ath6kl_sdio_alloc_prep_scat_req()
365 if (!s_req) in ath6kl_sdio_alloc_prep_scat_req()
371 kfree(s_req); in ath6kl_sdio_alloc_prep_scat_req()
375 s_req->virt_dma_buf = in ath6kl_sdio_alloc_prep_scat_req()
379 s_req->sgentries = kzalloc(size, GFP_KERNEL); in ath6kl_sdio_alloc_prep_scat_req()
381 if (!s_req->sgentries) { in ath6kl_sdio_alloc_prep_scat_req()
382 kfree(s_req); in ath6kl_sdio_alloc_prep_scat_req()
390 kfree(s_req->sgentries); in ath6kl_sdio_alloc_prep_scat_req()
391 kfree(s_req->virt_dma_buf); in ath6kl_sdio_alloc_prep_scat_req()
392 kfree(s_req); in ath6kl_sdio_alloc_prep_scat_req()
397 bus_req->scat_req = s_req; in ath6kl_sdio_alloc_prep_scat_req()
398 s_req->busrequest = bus_req; in ath6kl_sdio_alloc_prep_scat_req()
400 s_req->virt_scat = virt_scat; in ath6kl_sdio_alloc_prep_scat_req()
403 hif_scatter_req_add(ar_sdio->ar, s_req); in ath6kl_sdio_alloc_prep_scat_req()
660 struct hif_scatter_req *s_req) in ath6kl_sdio_scatter_req_add() argument
666 list_add_tail(&s_req->list, &ar_sdio->scat_req); in ath6kl_sdio_scatter_req_add()
702 struct hif_scatter_req *s_req, *tmp_req; in ath6kl_sdio_cleanup_scatter() local
706 list_for_each_entry_safe(s_req, tmp_req, &ar_sdio->scat_req, list) { in ath6kl_sdio_cleanup_scatter()
707 list_del(&s_req->list); in ath6kl_sdio_cleanup_scatter()
715 if (s_req->busrequest) { in ath6kl_sdio_cleanup_scatter()
716 s_req->busrequest->scat_req = NULL; in ath6kl_sdio_cleanup_scatter()
717 ath6kl_sdio_free_bus_req(ar_sdio, s_req->busrequest); in ath6kl_sdio_cleanup_scatter()
719 kfree(s_req->virt_dma_buf); in ath6kl_sdio_cleanup_scatter()
720 kfree(s_req->sgentries); in ath6kl_sdio_cleanup_scatter()
721 kfree(s_req); in ath6kl_sdio_cleanup_scatter()