Searched refs:sg_used (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/dma/xilinx/ |
D | xilinx_dma.c | 600 dma_addr_t buf_addr, size_t sg_used, in xilinx_axidma_buf() argument 604 hw->buf_addr = lower_32_bits(buf_addr + sg_used + period_len); in xilinx_axidma_buf() 605 hw->buf_addr_msb = upper_32_bits(buf_addr + sg_used + in xilinx_axidma_buf() 608 hw->buf_addr = buf_addr + sg_used + period_len; in xilinx_axidma_buf() 614 dma_addr_t buf_addr, size_t sg_used) in xilinx_aximcdma_buf() argument 617 hw->buf_addr = lower_32_bits(buf_addr + sg_used); in xilinx_aximcdma_buf() 618 hw->buf_addr_msb = upper_32_bits(buf_addr + sg_used); in xilinx_aximcdma_buf() 620 hw->buf_addr = buf_addr + sg_used; in xilinx_aximcdma_buf() 2133 size_t sg_used; in xilinx_dma_prep_slave_sg() local 2149 sg_used = 0; in xilinx_dma_prep_slave_sg() [all …]
|
/Linux-v5.10/drivers/crypto/ccp/ |
D | ccp-ops.c | 87 wa->sg_used = 0; in ccp_init_sg_workarea() 114 wa->sg_used += nbytes; in ccp_update_sg_workarea() 116 if (wa->sg_used == sg_dma_len(wa->dma_sg)) { in ccp_update_sg_workarea() 129 } while (wa->sg_used > sg_combined_len); in ccp_update_sg_workarea() 131 wa->sg_used = 0; in ccp_update_sg_workarea() 312 scatterwalk_map_and_copy(dm_wa->address, sg_wa->sg, sg_wa->sg_used, in ccp_queue_buf() 318 nbytes = min(sg_dma_len(sg_wa->dma_sg) - sg_wa->sg_used, in ccp_queue_buf() 350 sg_src_len = sg_dma_len(src->sg_wa.dma_sg) - src->sg_wa.sg_used; in ccp_prepare_data() 354 sg_dst_len = sg_dma_len(dst->sg_wa.dma_sg) - dst->sg_wa.sg_used; in ccp_prepare_data() 385 op->src.u.dma.offset = src->sg_wa.sg_used; in ccp_prepare_data() [all …]
|
D | ccp-dev.h | 469 unsigned int sg_used; member
|
/Linux-v5.10/drivers/scsi/ |
D | hpsa.c | 2802 int sg_used, enum dma_data_direction data_direction) in hpsa_pci_unmap() argument 2806 for (i = 0; i < sg_used; i++) in hpsa_pci_unmap() 6471 BYTE sg_used = 0; in hpsa_big_passthru_ioctl() local 6502 buff_size[sg_used] = sz; in hpsa_big_passthru_ioctl() 6503 buff[sg_used] = kmalloc(sz, GFP_KERNEL); in hpsa_big_passthru_ioctl() 6504 if (buff[sg_used] == NULL) { in hpsa_big_passthru_ioctl() 6509 if (copy_from_user(buff[sg_used], data_ptr, sz)) { in hpsa_big_passthru_ioctl() 6514 memset(buff[sg_used], 0, sz); in hpsa_big_passthru_ioctl() 6517 sg_used++; in hpsa_big_passthru_ioctl() 6524 c->Header.SGList = (u8) sg_used; in hpsa_big_passthru_ioctl() [all …]
|