Lines Matching refs:dev_attrib
125 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
126 dev->dev_attrib.hw_max_sectors = queue_max_hw_sectors(q); in iblock_configure_device()
127 dev->dev_attrib.hw_queue_depth = q->nr_requests; in iblock_configure_device()
135 dev->dev_attrib.max_unmap_lba_count = in iblock_configure_device()
141 dev->dev_attrib.max_unmap_block_desc_count = 1; in iblock_configure_device()
142 dev->dev_attrib.unmap_granularity = in iblock_configure_device()
144 dev->dev_attrib.unmap_granularity_alignment = in iblock_configure_device()
154 dev->dev_attrib.max_write_same_len = 0xFFFF; in iblock_configure_device()
157 dev->dev_attrib.is_nonrot = 1; in iblock_configure_device()
172 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device()
174 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT; in iblock_configure_device()
177 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
186 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
221 if (block_size == dev->dev_attrib.block_size) in iblock_emulate_read_cap_with_block_size()
226 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
240 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
255 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
270 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
469 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same()
472 cmd->se_dev->dev_attrib.block_size); in iblock_execute_write_same()
645 bip->bip_iter.bi_size = (cmd->data_length / dev->dev_attrib.block_size) * in iblock_alloc_bip()
708 if (dev->dev_attrib.block_size == 4096) in iblock_execute_rw()
710 else if (dev->dev_attrib.block_size == 2048) in iblock_execute_rw()
712 else if (dev->dev_attrib.block_size == 1024) in iblock_execute_rw()
714 else if (dev->dev_attrib.block_size == 512) in iblock_execute_rw()
718 " %u\n", dev->dev_attrib.block_size); in iblock_execute_rw()