Home
last modified time | relevance | path

Searched refs:sgc (Results 1 – 14 of 14) sorted by relevance

/drivers/scsi/esas2r/
Desas2r_io.c188 struct esas2r_sg_context *sgc) in esas2r_build_sg_list_sge() argument
190 struct esas2r_request *rq = sgc->first_req; in esas2r_build_sg_list_sge()
193 while (sgc->length) { in esas2r_build_sg_list_sge()
198 len = (*sgc->get_phys_addr)(sgc, &addr); in esas2r_build_sg_list_sge()
204 if (unlikely(len > sgc->length)) in esas2r_build_sg_list_sge()
205 len = sgc->length; in esas2r_build_sg_list_sge()
222 if (unlikely(sgc->sge.a64.curr > sgc->sge.a64.limit)) { in esas2r_build_sg_list_sge()
237 sgelen = (u8)((u8 *)sgc->sge.a64.curr in esas2r_build_sg_list_sge()
238 - (u8 *)sgc->sge.a64.last); in esas2r_build_sg_list_sge()
244 memcpy(sgl->virt_addr, sgc->sge.a64.last, sgelen); in esas2r_build_sg_list_sge()
[all …]
Desas2r_flash.c144 if (fc->sgc.cur_offset == NULL) in esas2r_fmapi_callback()
181 struct esas2r_sg_context *sgc = &fc->sgc; in build_flash_msg() local
186 if (sgc->cur_offset) in build_flash_msg()
187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg()
188 sgc->length, in build_flash_msg()
199 sgc->length); in build_flash_msg()
208 fc->curr_len = fc->sgc.length; in build_flash_msg()
210 if (sgc->cur_offset) { in build_flash_msg()
212 esas2r_sgc_init(sgc, a, rq, &rq->vrq->flash.data.sge[0]); in build_flash_msg()
214 if (!esas2r_build_sg_list(a, rq, sgc)) { in build_flash_msg()
[all …]
Desas2r_ioctl.c90 static u32 get_physaddr_fm_api(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api() argument
92 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api()
93 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
99 static u32 get_physaddr_fm_api_header(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api_header() argument
101 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api_header()
102 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
189 static u32 get_physaddr_buffered_ioctl(struct esas2r_sg_context *sgc, in get_physaddr_buffered_ioctl() argument
192 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
209 struct esas2r_sg_context sgc; in handle_buffered_ioctl() local
263 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
[all …]
Desas2r_main.c818 static u32 get_physaddr_from_sgc(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_from_sgc() argument
822 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
828 if (sgc->sgel_count < sgc->num_sgel) { in get_physaddr_from_sgc()
830 if (sgc->exp_offset > (u8 *)0) { in get_physaddr_from_sgc()
832 sgc->cur_sgel = sg_next(sgc->cur_sgel); in get_physaddr_from_sgc()
833 ++(sgc->sgel_count); in get_physaddr_from_sgc()
837 len = sg_dma_len(sgc->cur_sgel); in get_physaddr_from_sgc()
838 (*addr) = sg_dma_address(sgc->cur_sgel); in get_physaddr_from_sgc()
841 sgc->exp_offset += len; in get_physaddr_from_sgc()
846 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
[all …]
Desas2r_vda.c68 struct esas2r_sg_context *sgc) in esas2r_process_vda_ioctl() argument
135 u8 *cmdcurr_offset = sgc->cur_offset in esas2r_process_vda_ioctl()
162 cmdcurr_offset = sgc->cur_offset; in esas2r_process_vda_ioctl()
175 esas2r_sgc_init(sgc, a, rq, in esas2r_process_vda_ioctl()
177 sgc->length = payldlen; in esas2r_process_vda_ioctl()
179 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_vda_ioctl()
195 sgc->cur_offset = cmdcurr_offset; in esas2r_process_vda_ioctl()
255 esas2r_sgc_init(sgc, a, rq, firstsg); in esas2r_process_vda_ioctl()
256 sgc->length = datalen; in esas2r_process_vda_ioctl()
258 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_vda_ioctl()
Desas2r.h408 struct esas2r_sg_context *sgc);
598 typedef u32 (*PGETPHYSADDR) (struct esas2r_sg_context *sgc, u64 *addr);
712 struct esas2r_sg_context sgc; member
1070 struct esas2r_sg_context *sgc);
1076 struct esas2r_request *rq, struct esas2r_sg_context *sgc);
1107 struct esas2r_sg_context *sgc);
1109 struct esas2r_sg_context *sgc);
1141 struct esas2r_sg_context *sgc);
1168 static inline void esas2r_sgc_init(struct esas2r_sg_context *sgc, in esas2r_sgc_init() argument
1173 sgc->adapter = a; in esas2r_sgc_init()
[all …]
Desas2r_disc.c53 static u32 esas2r_disc_get_phys_addr(struct esas2r_sg_context *sgc, u64 *addr);
888 struct esas2r_sg_context sgc; in esas2r_disc_passthru_dev_addr() local
896 sgc.cur_offset = NULL; in esas2r_disc_passthru_dev_addr()
897 sgc.get_phys_addr = (PGETPHYSADDR)esas2r_disc_get_phys_addr; in esas2r_disc_passthru_dev_addr()
898 sgc.length = offsetof(struct atto_ioctl, data) in esas2r_disc_passthru_dev_addr()
901 esas2r_sgc_init(&sgc, a, rq, rq->vrq->ioctl.sge); in esas2r_disc_passthru_dev_addr()
903 esas2r_build_ioctl_req(a, rq, sgc.length, VDA_IOCTL_HBA); in esas2r_disc_passthru_dev_addr()
905 if (!esas2r_build_sg_list(a, rq, &sgc)) { in esas2r_disc_passthru_dev_addr()
1030 static u32 esas2r_disc_get_phys_addr(struct esas2r_sg_context *sgc, u64 *addr) in esas2r_disc_get_phys_addr() argument
1032 struct esas2r_adapter *a = sgc->adapter; in esas2r_disc_get_phys_addr()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c54 ddp->sgc = 0; in ixgbe_fcoe_clear_ddp()
135 dma_unmap_sg(&adapter->pdev->dev, ddp->sgl, ddp->sgc, in ixgbe_fcoe_ddp_put()
157 struct scatterlist *sgl, unsigned int sgc, in ixgbe_fcoe_ddp_setup() argument
194 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
212 dmacount = dma_map_sg(&adapter->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in ixgbe_fcoe_ddp_setup()
226 ddp->sgc = sgc; in ixgbe_fcoe_ddp_setup()
347 dma_unmap_sg(&adapter->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in ixgbe_fcoe_ddp_setup()
368 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_get() argument
370 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
389 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_target() argument
[all …]
Dixgbe_fcoe.h63 unsigned int sgc; member
Dixgbe.h933 struct scatterlist *sgl, unsigned int sgc);
935 struct scatterlist *sgl, unsigned int sgc);
/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c170 dma_unmap_sg(&pf->pdev->dev, ddp->sgl, ddp->sgc, in i40e_fcoe_ddp_unmap()
173 ddp->sgc = 0; in i40e_fcoe_ddp_unmap()
816 struct scatterlist *sgl, unsigned int sgc, in i40e_fcoe_ddp_setup() argument
849 xid, ddp->sgl, ddp->sgc); in i40e_fcoe_ddp_setup()
866 dmacount = dma_map_sg(&pf->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in i40e_fcoe_ddp_setup()
869 sgl, sgc); in i40e_fcoe_ddp_setup()
928 ddp->sgc = sgc; in i40e_fcoe_ddp_setup()
942 dma_unmap_sg(&pf->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in i40e_fcoe_ddp_setup()
963 struct scatterlist *sgl, unsigned int sgc) in i40e_fcoe_ddp_get() argument
965 return i40e_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in i40e_fcoe_ddp_get()
[all …]
Di40e_fcoe.h108 unsigned int sgc; member
/drivers/crypto/caam/
Dcaamalg.c2302 int sgc; in aead_edesc_alloc() local
2338 sgc = dma_map_sg(jrdev, req->src, src_nents ? : 1, in aead_edesc_alloc()
2340 if (unlikely(!sgc)) { in aead_edesc_alloc()
2346 sgc = dma_map_sg(jrdev, req->src, src_nents ? : 1, in aead_edesc_alloc()
2348 if (unlikely(!sgc)) { in aead_edesc_alloc()
2354 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in aead_edesc_alloc()
2356 if (unlikely(!sgc)) { in aead_edesc_alloc()
2580 int sgc; in ablkcipher_edesc_alloc() local
2590 sgc = dma_map_sg(jrdev, req->src, src_nents ? : 1, in ablkcipher_edesc_alloc()
2593 sgc = dma_map_sg(jrdev, req->src, src_nents ? : 1, in ablkcipher_edesc_alloc()
[all …]
/drivers/scsi/fcoe/
Dfcoe.c1031 struct scatterlist *sgl, unsigned int sgc) in fcoe_ddp_setup() argument
1038 sgc); in fcoe_ddp_setup()
1053 struct scatterlist *sgl, unsigned int sgc) in fcoe_ddp_target() argument
1059 sgl, sgc); in fcoe_ddp_target()