Lines Matching refs:sctx

56 	struct hif_sendContext *sctx = (struct hif_sendContext *)ctx;  in hif_dev_rw_completion_handler()  local
57 struct hif_sdio_device *pdev = sctx->pDev; in hif_dev_rw_completion_handler()
58 unsigned int xfer_id = sctx->transferID; in hif_dev_rw_completion_handler()
60 qdf_nbuf_t buf = sctx->netbuf; in hif_dev_rw_completion_handler()
62 if (sctx->bNewAlloc) in hif_dev_rw_completion_handler()
65 qdf_nbuf_pull_head(buf, sctx->head_data_len); in hif_dev_rw_completion_handler()
91 struct hif_sendContext *sctx; in hif_dev_send_buffer() local
126 sctx = (struct hif_sendContext *)qdf_nbuf_push_head(buf, in hif_dev_send_buffer()
128 sctx->bNewAlloc = false; in hif_dev_send_buffer()
130 sctx = (struct hif_sendContext *)qdf_mem_malloc(sizeof(*sctx) + in hif_dev_send_buffer()
132 if (sctx) in hif_dev_send_buffer()
133 sctx->bNewAlloc = true; in hif_dev_send_buffer()
138 sctx->netbuf = buf; in hif_dev_send_buffer()
139 sctx->pDev = pdev; in hif_dev_send_buffer()
140 sctx->transferID = xfer_id; in hif_dev_send_buffer()
141 sctx->head_data_len = head_len; in hif_dev_send_buffer()
148 pData = (unsigned char *)sctx + sizeof(struct hif_sendContext); in hif_dev_send_buffer()
149 for (i = 0, count = sctx->bNewAlloc ? frag_count : frag_count - 1; in hif_dev_send_buffer()
165 pData = (unsigned char *)sctx + sizeof(struct hif_sendContext); in hif_dev_send_buffer()
168 padded_length, request, (void *)sctx); in hif_dev_send_buffer()
181 if (sctx->bNewAlloc) in hif_dev_send_buffer()
182 qdf_mem_free(sctx); in hif_dev_send_buffer()