Searched refs:sg_off (Results 1 – 7 of 7) sorted by relevance
/linux-4.1.27/net/rds/ |
D | message.c | 270 unsigned long sg_off; in rds_message_copy_from_user() local 280 sg_off = 0; /* Dear gcc, sg->page will be null from kzalloc. */ in rds_message_copy_from_user() 289 sg_off = 0; in rds_message_copy_from_user() 293 sg->length - sg_off); in rds_message_copy_from_user() 296 nbytes = copy_page_from_iter(sg_page(sg), sg->offset + sg_off, in rds_message_copy_from_user() 301 sg_off += to_copy; in rds_message_copy_from_user() 303 if (sg_off == sg->length) in rds_message_copy_from_user()
|
/linux-4.1.27/drivers/target/ |
D | target_core_sbc.c | 1276 struct scatterlist *sg, int sg_off) in sbc_dif_copy_prot() argument 1282 unsigned int offset = sg_off; in sbc_dif_copy_prot() 1320 unsigned int ei_lba, struct scatterlist *sg, int sg_off) in sbc_dif_verify_write() argument 1370 sbc_dif_copy_prot(cmd, sectors, false, sg, sg_off); in sbc_dif_verify_write() 1378 unsigned int ei_lba, struct scatterlist *sg, int sg_off) in __sbc_dif_verify_read() argument 1385 int i, j, offset = sg_off; in __sbc_dif_verify_read() 1447 unsigned int ei_lba, struct scatterlist *sg, int sg_off) in sbc_dif_verify_read() argument 1451 rc = __sbc_dif_verify_read(cmd, start, sectors, ei_lba, sg, sg_off); in sbc_dif_verify_read() 1455 sbc_dif_copy_prot(cmd, sectors, true, sg, sg_off); in sbc_dif_verify_read()
|
/linux-4.1.27/drivers/mmc/host/ |
D | tmio_mmc_pio.c | 76 host->sg_off = 0; in tmio_mmc_init_sg() 82 host->sg_off = 0; in tmio_mmc_next_sg() 435 buf = (unsigned short *)(sg_virt + host->sg_off); in tmio_mmc_pio_irq() 437 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq() 442 count, host->sg_off, data->flags); in tmio_mmc_pio_irq() 447 host->sg_off += count; in tmio_mmc_pio_irq() 451 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
|
D | tmio_mmc.h | 66 unsigned int sg_off; member
|
/linux-4.1.27/drivers/infiniband/ulp/isert/ |
D | ib_isert.h | 103 u32 sg_off; member
|
D | ib_isert.c | 1366 int rc, sg_nents, sg_off, page_off; in isert_handle_iscsi_dataout() local 1387 sg_off = cmd->write_data_done / PAGE_SIZE; in isert_handle_iscsi_dataout() 1388 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in isert_handle_iscsi_dataout() 1400 "sg_nents: %u from %p %u\n", sg_start, sg_off, in isert_handle_iscsi_dataout() 1662 data->sg_off = data->offset / PAGE_SIZE; in isert_map_data_buf() 1664 data->sg = &sg[data->sg_off]; in isert_map_data_buf() 1665 data->nents = min_t(unsigned int, nents - data->sg_off, in isert_map_data_buf() 2393 u32 sg_off, page_off; in isert_build_rdma_wr() local 2396 sg_off = offset / PAGE_SIZE; in isert_build_rdma_wr() 2397 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in isert_build_rdma_wr() [all …]
|
/linux-4.1.27/drivers/scsi/csiostor/ |
D | csio_scsi.c | 1497 uint32_t sg_off = 0; in csio_scsi_copy_to_sgl() local 1522 sg_off = sg->offset + start_off; in csio_scsi_copy_to_sgl() 1525 bytes_copy = min((uint32_t)(PAGE_SIZE - (sg_off & ~PAGE_MASK)), in csio_scsi_copy_to_sgl() 1528 sg_addr = kmap_atomic(sg_page(sg) + (sg_off >> PAGE_SHIFT)); in csio_scsi_copy_to_sgl() 1536 sg_addr, sg_off, buf_addr, bytes_copy); in csio_scsi_copy_to_sgl() 1537 memcpy(sg_addr + (sg_off & ~PAGE_MASK), buf_addr, bytes_copy); in csio_scsi_copy_to_sgl()
|