Home
last modified time | relevance | path

Searched refs:dev_attrib (Results 1 – 20 of 20) sorted by relevance

/linux-4.1.27/drivers/target/
Dtarget_core_device.c660 else if (dev->dev_attrib.emulate_write_cache > 0) in se_dev_check_wce()
670 dev->dev_attrib.max_unmap_lba_count = max_unmap_lba_count; in se_dev_set_max_unmap_lba_count()
672 dev, dev->dev_attrib.max_unmap_lba_count); in se_dev_set_max_unmap_lba_count()
681 dev->dev_attrib.max_unmap_block_desc_count = in se_dev_set_max_unmap_block_desc_count()
684 dev, dev->dev_attrib.max_unmap_block_desc_count); in se_dev_set_max_unmap_block_desc_count()
693 dev->dev_attrib.unmap_granularity = unmap_granularity; in se_dev_set_unmap_granularity()
695 dev, dev->dev_attrib.unmap_granularity); in se_dev_set_unmap_granularity()
704 dev->dev_attrib.unmap_granularity_alignment = unmap_granularity_alignment; in se_dev_set_unmap_granularity_alignment()
706 dev, dev->dev_attrib.unmap_granularity_alignment); in se_dev_set_unmap_granularity_alignment()
715 dev->dev_attrib.max_write_same_len = max_write_same_len; in se_dev_set_max_write_same_len()
[all …]
Dtarget_core_file.c174 dev->dev_attrib.max_unmap_lba_count = in fd_configure_device()
179 dev->dev_attrib.max_unmap_block_desc_count = 1; in fd_configure_device()
180 dev->dev_attrib.unmap_granularity = in fd_configure_device()
182 dev->dev_attrib.unmap_granularity_alignment = in fd_configure_device()
191 dev->dev_attrib.max_write_same_len = 0xFFFF; in fd_configure_device()
194 dev->dev_attrib.is_nonrot = 1; in fd_configure_device()
207 dev->dev_attrib.max_unmap_lba_count = 0x2000; in fd_configure_device()
211 dev->dev_attrib.max_unmap_block_desc_count = 1; in fd_configure_device()
212 dev->dev_attrib.unmap_granularity = 1; in fd_configure_device()
213 dev->dev_attrib.unmap_granularity_alignment = 0; in fd_configure_device()
[all …]
Dtarget_core_iblock.c126 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
127 dev->dev_attrib.hw_max_sectors = queue_max_hw_sectors(q); in iblock_configure_device()
128 dev->dev_attrib.hw_queue_depth = q->nr_requests; in iblock_configure_device()
136 dev->dev_attrib.max_unmap_lba_count = in iblock_configure_device()
142 dev->dev_attrib.max_unmap_block_desc_count = 1; in iblock_configure_device()
143 dev->dev_attrib.unmap_granularity = in iblock_configure_device()
145 dev->dev_attrib.unmap_granularity_alignment = in iblock_configure_device()
155 dev->dev_attrib.max_write_same_len = 0xFFFF; in iblock_configure_device()
158 dev->dev_attrib.is_nonrot = 1; in iblock_configure_device()
173 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device()
[all …]
Dtarget_core_spc.c102 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
111 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
472 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86()
475 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86()
507 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
518 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
525 put_unaligned_be16(min / dev->dev_attrib.block_size, &buf[6]); in spc_emulate_evpd_b0()
532 put_unaligned_be32(dev->dev_attrib.hw_max_sectors, &buf[8]); in spc_emulate_evpd_b0()
538 put_unaligned_be32(opt / dev->dev_attrib.block_size, &buf[12]); in spc_emulate_evpd_b0()
540 put_unaligned_be32(dev->dev_attrib.optimal_sectors, &buf[12]); in spc_emulate_evpd_b0()
[all …]
Dtarget_core_sbc.c76 buf[4] = (dev->dev_attrib.block_size >> 24) & 0xff; in sbc_emulate_readcapacity()
77 buf[5] = (dev->dev_attrib.block_size >> 16) & 0xff; in sbc_emulate_readcapacity()
78 buf[6] = (dev->dev_attrib.block_size >> 8) & 0xff; in sbc_emulate_readcapacity()
79 buf[7] = dev->dev_attrib.block_size & 0xff; in sbc_emulate_readcapacity()
96 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16()
111 buf[8] = (dev->dev_attrib.block_size >> 24) & 0xff; in sbc_emulate_readcapacity_16()
112 buf[9] = (dev->dev_attrib.block_size >> 16) & 0xff; in sbc_emulate_readcapacity_16()
113 buf[10] = (dev->dev_attrib.block_size >> 8) & 0xff; in sbc_emulate_readcapacity_16()
114 buf[11] = dev->dev_attrib.block_size & 0xff; in sbc_emulate_readcapacity_16()
143 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in sbc_emulate_readcapacity_16()
[all …]
Dtarget_core_rd.c339 dev->dev_attrib.hw_block_size = RD_BLOCKSIZE; in rd_configure_device()
340 dev->dev_attrib.hw_max_sectors = UINT_MAX; in rd_configure_device()
341 dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; in rd_configure_device()
416 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw()
497 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size; in rd_execute_rw()
513 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
581 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
664 dev->dev_attrib.block_size) - 1; in rd_get_blocks()
673 if (!dev->dev_attrib.pi_prot_type) in rd_init_prot()
677 dev->dev_attrib.block_size); in rd_init_prot()
Dtarget_core_xcopy.c72 if (!se_dev->dev_attrib.emulate_3pc) in target_xcopy_locate_se_dev_e4()
651 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source()
711 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination()
777 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
778 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work()
831 copied_nolb, copied_nolb * dst_dev->dev_attrib.block_size); in target_xcopy_do_work()
856 if (!dev->dev_attrib.emulate_3pc) { in target_do_xcopy()
904 if (xop->src_dev->dev_attrib.block_size != in target_do_xcopy()
905 xop->dst_dev->dev_attrib.block_size) { in target_do_xcopy()
908 xop->src_dev->dev_attrib.block_size, in target_do_xcopy()
[all …]
Dtarget_core_ua.c232 if (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) { in core_scsi3_ua_for_check_condition()
259 (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) ? "Reporting" : in core_scsi3_ua_for_check_condition()
260 "Releasing", dev->dev_attrib.emulate_ua_intlck_ctrl, in core_scsi3_ua_for_check_condition()
Dtarget_core_user.c881 dev->dev_attrib.hw_block_size = 512; in tcmu_configure_device()
882 dev->dev_attrib.hw_max_sectors = 128; in tcmu_configure_device()
883 dev->dev_attrib.hw_queue_depth = 128; in tcmu_configure_device()
1007 dev->dev_attrib.hw_block_size = tmp_ul; in tcmu_set_configfs_dev_params()
1034 return div_u64(udev->dev_size - dev->dev_attrib.block_size, in tcmu_get_blocks()
1035 dev->dev_attrib.block_size); in tcmu_get_blocks()
Dtarget_core_transport.c844 dev->dev_attrib.block_size, in transport_dump_dev_state()
845 dev->dev_attrib.hw_max_sectors); in transport_dump_dev_state()
1127 if (dev->dev_attrib.block_size != 512) { in target_cmd_size_check()
1701 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl == 2) in transport_generic_request_failure()
1767 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action()
2346 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
2376 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
Dtarget_core_pscsi.c321 dev->dev_attrib.hw_block_size = sd->sector_size; in pscsi_add_device_to_list()
322 dev->dev_attrib.hw_max_sectors = in pscsi_add_device_to_list()
324 dev->dev_attrib.hw_queue_depth = sd->queue_depth; in pscsi_add_device_to_list()
Dtarget_core_tmr.c419 tas = dev->dev_attrib.emulate_tas; in core_tmr_lun_reset()
Dtarget_core_configfs.c517 TB_CIT_SETUP(dev_attrib, &target_core_dev_attrib_ops, NULL, NULL);
2557 config_group_init_type_name(&dev->dev_attrib.da_group, "attrib", in target_core_make_subdev()
2568 dev_cg->default_groups[0] = &dev->dev_attrib.da_group; in target_core_make_subdev()
Dtarget_core_pr.c1134 if (dev->dev_attrib.enforce_pr_isids) in __core_scsi3_locate_pr_reg()
3595 if (dev->dev_attrib.force_pr_aptpl) in target_scsi3_emulate_pr_out()
Dtarget_core_alua.c500 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
/linux-4.1.27/drivers/edac/
Dedac_device.c79 struct edac_dev_sysfs_block_attribute *dev_attrib, *attrib_p, *attrib; in edac_device_alloc_ctl_info() local
115 dev_attrib = edac_align_ptr(&p, sizeof(*dev_attrib), count); in edac_device_alloc_ctl_info()
142 dev_attrib = (struct edac_dev_sysfs_block_attribute *) in edac_device_alloc_ctl_info()
143 (((char *)dev_ctl) + ((unsigned long)dev_attrib)); in edac_device_alloc_ctl_info()
192 attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; in edac_device_alloc_ctl_info()
/linux-4.1.27/include/target/
Dtarget_core_backend_configfs.h12 (u32)da->da_dev->dev_attrib._name); \
Dtarget_core_base.h809 struct se_dev_attrib dev_attrib; member
/linux-4.1.27/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c501 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending()
680 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
/linux-4.1.27/drivers/infiniband/ulp/isert/
Dib_isert.c1865 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status()
2660 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()