Home
last modified time | relevance | path

Searched refs:sg_index (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/dma/sh/
Dusb-dmac.c56 unsigned int sg_index; member
240 chan->desc->sg_index = 0; in usb_dmac_chan_start_desc()
469 int sg_index) in usb_dmac_get_current_residue() argument
471 struct usb_dmac_sg *sg = desc->sg + sg_index; in usb_dmac_get_current_residue()
519 for (i = desc->sg_index + 1; i < desc->sg_len; i++) in usb_dmac_chan_get_residue()
523 residue += usb_dmac_get_current_residue(chan, desc, desc->sg_index); in usb_dmac_chan_get_residue()
583 if (++desc->sg_index < desc->sg_len) { in usb_dmac_isr_transfer_end()
584 usb_dmac_chan_start_sg(chan, desc->sg_index); in usb_dmac_isr_transfer_end()
587 desc->sg_index - 1); in usb_dmac_isr_transfer_end()
/Linux-v5.4/drivers/crypto/ccree/
Dcc_buffer_mgr.c859 u32 sg_index = 0; in cc_aead_chain_data() local
882 sg_index = areq_ctx->src_sgl->length; in cc_aead_chain_data()
884 while (sg_index <= size_to_skip) { in cc_aead_chain_data()
891 sg_index += areq_ctx->src_sgl->length; in cc_aead_chain_data()
920 sg_index = areq_ctx->dst_sgl->length; in cc_aead_chain_data()
924 while (sg_index <= size_to_skip) { in cc_aead_chain_data()
931 sg_index += areq_ctx->dst_sgl->length; in cc_aead_chain_data()
/Linux-v5.4/drivers/dma/
Dsprd-dma.c719 unsigned int sglen, int sg_index, in sprd_dma_fill_desc() argument
822 temp = sglen ? (sg_index + 1) % sglen : 0; in sprd_dma_fill_desc()
845 unsigned int sglen, int sg_index, in sprd_dma_fill_linklist_desc() argument
858 sg_index * sizeof(*hw)); in sprd_dma_fill_linklist_desc()
860 return sprd_dma_fill_desc(chan, hw, sglen, sg_index, src, dst, len, in sprd_dma_fill_linklist_desc()
/Linux-v5.4/drivers/scsi/
Ddc395x.c237 u8 sg_index; /* Index of HW sg entry for this request */ member
891 srb->sg_index = 0; in build_srb()
1109 srb->segment_x, srb->sg_count, srb->sg_index, in dump_register_info()
1834 unsigned idx = srb->sg_index; in sg_verify_length()
1854 struct SGentry *psge = srb->segment_x + srb->sg_index; in sg_update_list()
1866 for (idx = srb->sg_index; idx < srb->sg_count; idx++) { in sg_update_list()
1877 srb->sg_index = idx; in sg_update_list()
2045 if ((srb->segment_x[srb->sg_index].length == in data_out_phase0()
2309 srb->total_xfer_length, srb->sg_index, srb->sg_count); in data_io_transfer()
2312 if (srb->sg_index >= srb->sg_count) { in data_io_transfer()
[all …]
DFlashPoint.c4952 unsigned int sg_index; in FPT_busMstrSGDataXferStart() local
4964 sg_index = pcurrSCCB->Sccb_sgseg; in FPT_busMstrSGDataXferStart()
4973 ((sg_index * (unsigned int)SG_ELEMENT_SIZE) < in FPT_busMstrSGDataXferStart()
4977 sg_index; in FPT_busMstrSGDataXferStart()
4997 sg_index++; in FPT_busMstrSGDataXferStart()
5406 unsigned int sg_index; in FPT_hostDataXferRestart() local
5413 sg_index = 0xffff; /*Index by long words into sg list. */ in FPT_hostDataXferRestart()
5419 sg_index++; in FPT_hostDataXferRestart()
5421 (sg_index * 2); in FPT_hostDataXferRestart()
5428 sg_index++; in FPT_hostDataXferRestart()
[all …]
Ddpt_i2o.c1667 int sg_index = 0; in adpt_i2o_passthru() local
1742 sg_list[sg_index++] = p; // sglist indexed with input frame, not our internal frame. in adpt_i2o_passthru()
1841 while(sg_index) { in adpt_i2o_passthru()
1842 if(sg_list[--sg_index]) { in adpt_i2o_passthru()
1844 sg[sg_index].flag_count & 0xffffff, in adpt_i2o_passthru()
1845 sg_list[sg_index], in adpt_i2o_passthru()
1846 sg[sg_index].addr_bus); in adpt_i2o_passthru()
Dadvansys.c8010 ushort sg_index; in AscPutReadySgListQueue() local
8031 sg_index = 1; in AscPutReadySgListQueue()
8078 sg_list[sg_index], in AscPutReadySgListQueue()
8080 sg_index += ASC_SG_LIST_PER_Q; in AscPutReadySgListQueue()
8081 scsiq->next_sg_index = sg_index; in AscPutReadySgListQueue()
/Linux-v5.4/drivers/scsi/aic7xxx/
Daic7xxx_core.c367 int sg_index; in ahc_sg_bus_to_virt() local
369 sg_index = (sg_busaddr - scb->sg_list_phys)/sizeof(struct ahc_dma_seg); in ahc_sg_bus_to_virt()
371 sg_index++; in ahc_sg_bus_to_virt()
373 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt()
379 int sg_index; in ahc_sg_virt_to_bus() local
382 sg_index = sg - &scb->sg_list[1]; in ahc_sg_virt_to_bus()
384 return (scb->sg_list_phys + (sg_index * sizeof(*scb->sg_list))); in ahc_sg_virt_to_bus()
/Linux-v5.4/drivers/dma/ppc4xx/
Dadma.c559 int sg_index, unsigned char mult_value) in ppc440spe_desc_set_src_mult() argument
570 switch (sg_index) { in ppc440spe_desc_set_src_mult()