Home
last modified time | relevance | path

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

/openbmc/linux/drivers/dma/sh/
H A Dusb-dmac.c56 unsigned int sg_index; member
240 chan->desc->sg_index = 0; in usb_dmac_chan_start_desc()
469 unsigned 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()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_buffer_mgr.c803 u32 sg_index = 0; in cc_aead_chain_data() local
819 sg_index = areq_ctx->src_sgl->length; in cc_aead_chain_data()
821 while (src_mapped_nents && (sg_index <= size_to_skip)) { in cc_aead_chain_data()
828 sg_index += areq_ctx->src_sgl->length; in cc_aead_chain_data()
858 sg_index = areq_ctx->dst_sgl->length; in cc_aead_chain_data()
862 while (dst_mapped_nents && sg_index <= size_to_skip) { in cc_aead_chain_data()
869 sg_index += areq_ctx->dst_sgl->length; in cc_aead_chain_data()
/openbmc/linux/drivers/dma/
H A Dsprd-dma.c746 unsigned int sglen, int sg_index, in sprd_dma_fill_desc() argument
848 temp = sglen ? (sg_index + 1) % sglen : 0; in sprd_dma_fill_desc()
877 unsigned int sglen, int sg_index, in sprd_dma_fill_linklist_desc() argument
890 sg_index * sizeof(*hw)); in sprd_dma_fill_linklist_desc()
892 return sprd_dma_fill_desc(chan, hw, sglen, sg_index, src, dst, len, in sprd_dma_fill_linklist_desc()
/openbmc/linux/drivers/scsi/
H A Ddc395x.c221 u8 sg_index; /* Index of HW sg entry for this request */ member
875 srb->sg_index = 0; in build_srb()
1060 srb->segment_x, srb->sg_count, srb->sg_index, in DEF_SCSI_QCMD()
1778 unsigned idx = srb->sg_index; in sg_verify_length()
1798 struct SGentry *psge = srb->segment_x + srb->sg_index; in sg_update_list()
1821 srb->sg_index = idx; in sg_update_list()
1989 if ((srb->segment_x[srb->sg_index].length == in data_out_phase0()
2256 if (srb->sg_index >= srb->sg_count) { in data_io_transfer()
2285 srb->sg_index); in data_io_transfer()
2289 srb->sg_index) << 3)); in data_io_transfer()
[all …]
H A DFlashPoint.c4924 unsigned int sg_index; in FPT_busMstrSGDataXferStart() local
4949 sg_index; in FPT_busMstrSGDataXferStart()
4969 sg_index++; in FPT_busMstrSGDataXferStart()
5378 unsigned int sg_index; in FPT_hostDataXferRestart() local
5391 sg_index++; in FPT_hostDataXferRestart()
5393 (sg_index * 2); in FPT_hostDataXferRestart()
5400 sg_index++; in FPT_hostDataXferRestart()
7128 unsigned int sg_index; in FPT_utilUpdateResidual() local
7146 sg_index++; in FPT_utilUpdateResidual()
7152 (sg_index * 2); in FPT_utilUpdateResidual()
[all …]
H A Dadvansys.c7924 ushort sg_index; in AscPutReadySgListQueue() local
7945 sg_index = 1; in AscPutReadySgListQueue()
7992 sg_list[sg_index], in AscPutReadySgListQueue()
7994 sg_index += ASC_SG_LIST_PER_Q; in AscPutReadySgListQueue()
7995 scsiq->next_sg_index = sg_index; in AscPutReadySgListQueue()
/openbmc/linux/drivers/scsi/aic7xxx/
H A 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()
/openbmc/linux/drivers/dma/ppc4xx/
H A Dadma.c559 int sg_index, unsigned char mult_value) in ppc440spe_desc_set_src_mult() argument
569 switch (sg_index) { in ppc440spe_desc_set_src_mult()