Lines Matching refs:sg
461 struct scatterlist *sg; in iblock_execute_write_same() local
472 sg = &cmd->t_data_sg[0]; in iblock_execute_write_same()
475 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same()
477 " block_size: %u\n", cmd->t_data_nents, sg->length, in iblock_execute_write_same()
497 while (bio_add_page(bio, sg_page(sg), sg->length, sg->offset) in iblock_execute_write_same()
498 != sg->length) { in iblock_execute_write_same()
509 block_lba += sg->length >> IBLOCK_LBA_SHIFT; in iblock_execute_write_same()
636 struct scatterlist *sg; in iblock_alloc_bip() local
658 for_each_sg(cmd->t_prot_sg, sg, cmd->t_prot_nents, i) { in iblock_alloc_bip()
660 rc = bio_integrity_add_page(bio, sg_page(sg), sg->length, in iblock_alloc_bip()
661 sg->offset); in iblock_alloc_bip()
662 if (rc != sg->length) { in iblock_alloc_bip()
668 sg_page(sg), sg->length, sg->offset); in iblock_alloc_bip()
682 struct scatterlist *sg; in iblock_execute_rw() local
750 for_each_sg(sgl, sg, sgl_nents, i) { in iblock_execute_rw()
756 while (bio_add_page(bio, sg_page(sg), sg->length, sg->offset) in iblock_execute_rw()
757 != sg->length) { in iblock_execute_rw()
773 block_lba += sg->length >> IBLOCK_LBA_SHIFT; in iblock_execute_rw()