Lines Matching refs:sg
419 struct scatterlist *sg; in iblock_execute_write_same() local
432 sg = &cmd->t_data_sg[0]; in iblock_execute_write_same()
435 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same()
437 " block_size: %u\n", cmd->t_data_nents, sg->length, in iblock_execute_write_same()
457 while (bio_add_page(bio, sg_page(sg), sg->length, sg->offset) in iblock_execute_write_same()
458 != sg->length) { in iblock_execute_write_same()
469 block_lba += sg->length >> IBLOCK_LBA_SHIFT; in iblock_execute_write_same()
596 struct scatterlist *sg; in iblock_alloc_bip() local
618 for_each_sg(cmd->t_prot_sg, sg, cmd->t_prot_nents, i) { in iblock_alloc_bip()
620 rc = bio_integrity_add_page(bio, sg_page(sg), sg->length, in iblock_alloc_bip()
621 sg->offset); in iblock_alloc_bip()
622 if (rc != sg->length) { in iblock_alloc_bip()
628 sg_page(sg), sg->length, sg->offset); in iblock_alloc_bip()
643 struct scatterlist *sg; in iblock_execute_rw() local
692 for_each_sg(sgl, sg, sgl_nents, i) { in iblock_execute_rw()
698 while (bio_add_page(bio, sg_page(sg), sg->length, sg->offset) in iblock_execute_rw()
699 != sg->length) { in iblock_execute_rw()
715 block_lba += sg->length >> IBLOCK_LBA_SHIFT; in iblock_execute_rw()