/kernel/linux/linux-5.10/net/rds/ |
H A D | message.c | 426 unsigned long sg_off; in rds_message_copy_from_user() local 434 sg_off = 0; /* Dear gcc, sg->page will be null from kzalloc. */ in rds_message_copy_from_user() 446 sg_off = 0; in rds_message_copy_from_user() 450 sg->length - sg_off); in rds_message_copy_from_user() 453 nbytes = copy_page_from_iter(sg_page(sg), sg->offset + sg_off, in rds_message_copy_from_user() 458 sg_off += to_copy; in rds_message_copy_from_user() 460 if (sg_off == sg->length) in rds_message_copy_from_user()
|
/kernel/linux/linux-6.6/net/rds/ |
H A D | message.c | 423 unsigned long sg_off; in rds_message_copy_from_user() local 431 sg_off = 0; /* Dear gcc, sg->page will be null from kzalloc. */ in rds_message_copy_from_user() 443 sg_off = 0; in rds_message_copy_from_user() 447 sg->length - sg_off); in rds_message_copy_from_user() 450 nbytes = copy_page_from_iter(sg_page(sg), sg->offset + sg_off, in rds_message_copy_from_user() 455 sg_off += to_copy; in rds_message_copy_from_user() 457 if (sg_off == sg->length) in rds_message_copy_from_user()
|
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 11 struct scatterlist **sg_pp, unsigned int *sg_off) in cxgbit_set_one_ppod() 14 unsigned int offset = sg_off ? *sg_off : 0; in cxgbit_set_one_ppod() 49 *sg_off = offset; in cxgbit_set_one_ppod() 101 unsigned int *sg_off) in cxgbit_ppod_write_idata() 119 cxgbit_set_one_ppod(ppod, ttinfo, sg_pp, sg_off); in cxgbit_ppod_write_idata() 9 cxgbit_set_one_ppod(struct cxgbi_pagepod *ppod, struct cxgbi_task_tag_info *ttinfo, struct scatterlist **sg_pp, unsigned int *sg_off) cxgbit_set_one_ppod() argument 98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, unsigned int idx, unsigned int npods, struct scatterlist **sg_pp, unsigned int *sg_off) cxgbit_ppod_write_idata() argument
|
H A D | cxgbit_target.c | 1006 int rc, sg_nents, sg_off; in cxgbit_handle_iscsi_dataout() local 1057 sg_off = data_offset / PAGE_SIZE; in cxgbit_handle_iscsi_dataout() 1058 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in cxgbit_handle_iscsi_dataout()
|
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 11 struct scatterlist **sg_pp, unsigned int *sg_off) in cxgbit_set_one_ppod() 14 unsigned int offset = sg_off ? *sg_off : 0; in cxgbit_set_one_ppod() 49 *sg_off = offset; in cxgbit_set_one_ppod() 101 unsigned int *sg_off) in cxgbit_ppod_write_idata() 119 cxgbit_set_one_ppod(ppod, ttinfo, sg_pp, sg_off); in cxgbit_ppod_write_idata() 9 cxgbit_set_one_ppod(struct cxgbi_pagepod *ppod, struct cxgbi_task_tag_info *ttinfo, struct scatterlist **sg_pp, unsigned int *sg_off) cxgbit_set_one_ppod() argument 98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, unsigned int idx, unsigned int npods, struct scatterlist **sg_pp, unsigned int *sg_off) cxgbit_ppod_write_idata() argument
|
H A D | cxgbit_target.c | 1006 int rc, sg_nents, sg_off; in cxgbit_handle_iscsi_dataout() local 1057 sg_off = data_offset / PAGE_SIZE; in cxgbit_handle_iscsi_dataout() 1058 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in cxgbit_handle_iscsi_dataout()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A D | tmio_mmc_core.c | 125 host->sg_off = 0; in tmio_mmc_init_sg() 131 host->sg_off = 0; in tmio_mmc_next_sg() 383 buf = (unsigned short *)(sg_virt + host->sg_off); in tmio_mmc_pio_irq() 385 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq() 390 count, host->sg_off, data->flags); in tmio_mmc_pio_irq() 395 host->sg_off += count; in tmio_mmc_pio_irq() 399 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
|
H A D | tmio_mmc.h | 141 unsigned int sg_off; member
|
/kernel/linux/linux-6.6/drivers/mmc/host/ |
H A D | tmio_mmc_core.c | 125 host->sg_off = 0; in tmio_mmc_init_sg() 131 host->sg_off = 0; in tmio_mmc_next_sg() 427 buf = (unsigned short *)(sg_virt + host->sg_ptr->offset + host->sg_off); in tmio_mmc_pio_irq() 429 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq() 434 count, host->sg_off, data->flags); in tmio_mmc_pio_irq() 439 host->sg_off += count; in tmio_mmc_pio_irq() 443 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
|
H A D | tmio_mmc.h | 149 unsigned int sg_off; member
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/ |
H A D | siw_verbs.h | 74 unsigned int *sg_off);
|
H A D | siw_verbs.c | 1472 unsigned int *sg_off) in siw_map_mr_sg() 1522 rv = ib_sg_to_pages(base_mr, sl, num_sle, sg_off, siw_set_pbl_page); in siw_map_mr_sg() 1471 siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle, unsigned int *sg_off) siw_map_mr_sg() argument
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/siw/ |
H A D | siw_verbs.h | 73 unsigned int *sg_off);
|
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
H A 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() 1535 csio_dbg(hw, "copy_to_sgl:sg_addr %p sg_off %d buf %p len %d\n", 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()
|
/kernel/linux/linux-6.6/drivers/scsi/csiostor/ |
H A D | csio_scsi.c | 1501 uint32_t sg_off = 0; in csio_scsi_copy_to_sgl() local 1526 sg_off = sg->offset + start_off; in csio_scsi_copy_to_sgl() 1529 bytes_copy = min((uint32_t)(PAGE_SIZE - (sg_off & ~PAGE_MASK)), in csio_scsi_copy_to_sgl() 1532 sg_addr = kmap_atomic(sg_page(sg) + (sg_off >> PAGE_SHIFT)); in csio_scsi_copy_to_sgl() 1539 csio_dbg(hw, "copy_to_sgl:sg_addr %p sg_off %d buf %p len %d\n", in csio_scsi_copy_to_sgl() 1540 sg_addr, sg_off, buf_addr, bytes_copy); in csio_scsi_copy_to_sgl() 1541 memcpy(sg_addr + (sg_off & ~PAGE_MASK), buf_addr, bytes_copy); in csio_scsi_copy_to_sgl()
|
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/ |
H A D | libcxgbi.h | 641 struct scatterlist **sg_pp, unsigned int *sg_off);
|
H A D | libcxgbi.c | 1156 struct scatterlist **sg_pp, unsigned int *sg_off) in cxgbi_ddp_set_one_ppod() 1159 unsigned int offset = sg_off ? *sg_off : 0; in cxgbi_ddp_set_one_ppod() 1194 *sg_off = offset; in cxgbi_ddp_set_one_ppod() 1154 cxgbi_ddp_set_one_ppod(struct cxgbi_pagepod *ppod, struct cxgbi_task_tag_info *ttinfo, struct scatterlist **sg_pp, unsigned int *sg_off) cxgbi_ddp_set_one_ppod() argument
|
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/ |
H A D | libcxgbi.h | 640 struct scatterlist **sg_pp, unsigned int *sg_off);
|
H A D | libcxgbi.c | 1156 struct scatterlist **sg_pp, unsigned int *sg_off) in cxgbi_ddp_set_one_ppod() 1159 unsigned int offset = sg_off ? *sg_off : 0; in cxgbi_ddp_set_one_ppod() 1194 *sg_off = offset; in cxgbi_ddp_set_one_ppod() 1154 cxgbi_ddp_set_one_ppod(struct cxgbi_pagepod *ppod, struct cxgbi_task_tag_info *ttinfo, struct scatterlist **sg_pp, unsigned int *sg_off) cxgbi_ddp_set_one_ppod() argument
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 1125 int rc, sg_nents, sg_off, page_off; in isert_handle_iscsi_dataout() local 1146 sg_off = cmd->write_data_done / PAGE_SIZE; in isert_handle_iscsi_dataout() 1147 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in isert_handle_iscsi_dataout() 1158 isert_dbg("Copying DataOut: sg_start: %p, sg_off: %u " in isert_handle_iscsi_dataout() 1159 "sg_nents: %u from %p %u\n", sg_start, sg_off, in isert_handle_iscsi_dataout()
|
/kernel/linux/linux-6.6/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 1125 int rc, sg_nents, sg_off, page_off; in isert_handle_iscsi_dataout() local 1146 sg_off = cmd->write_data_done / PAGE_SIZE; in isert_handle_iscsi_dataout() 1147 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in isert_handle_iscsi_dataout() 1158 isert_dbg("Copying DataOut: sg_start: %p, sg_off: %u " in isert_handle_iscsi_dataout() 1159 "sg_nents: %u from %p %u\n", sg_start, sg_off, in isert_handle_iscsi_dataout()
|
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_sbc.c | 1330 struct scatterlist *sg, int sg_off) in sbc_dif_copy_prot() 1336 unsigned int offset = sg_off; in sbc_dif_copy_prot() 1329 sbc_dif_copy_prot(struct se_cmd *cmd, unsigned int sectors, bool read, struct scatterlist *sg, int sg_off) sbc_dif_copy_prot() argument
|
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_sbc.c | 1271 struct scatterlist *sg, int sg_off) in sbc_dif_copy_prot() 1277 unsigned int offset = sg_off; in sbc_dif_copy_prot() 1270 sbc_dif_copy_prot(struct se_cmd *cmd, unsigned int sectors, bool read, struct scatterlist *sg, int sg_off) sbc_dif_copy_prot() argument
|
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.c | 1103 unsigned int sg_off; in ddp_set_map() local 1116 sg_off = i * PPOD_PAGES_MAX; in ddp_set_map() 1118 &sg_off); in ddp_set_map()
|
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.c | 1104 unsigned int sg_off; in ddp_set_map() local 1117 sg_off = i * PPOD_PAGES_MAX; in ddp_set_map() 1119 &sg_off); in ddp_set_map()
|