Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/target/
Dtarget_core_file.c164 if (target_configure_unmap_from_queue(&dev->dev_attrib, q, in fd_configure_device()
172 dev->dev_attrib.max_write_same_len = 0xFFFF; in fd_configure_device()
175 dev->dev_attrib.is_nonrot = 1; in fd_configure_device()
188 dev->dev_attrib.max_unmap_lba_count = 0x2000; in fd_configure_device()
192 dev->dev_attrib.max_unmap_block_desc_count = 1; in fd_configure_device()
193 dev->dev_attrib.unmap_granularity = 1; in fd_configure_device()
194 dev->dev_attrib.unmap_granularity_alignment = 0; in fd_configure_device()
200 dev->dev_attrib.max_write_same_len = 0x1000; in fd_configure_device()
203 dev->dev_attrib.hw_block_size = fd_dev->fd_block_size; in fd_configure_device()
204 dev->dev_attrib.max_bytes_per_io = FD_MAX_BYTES; in fd_configure_device()
[all …]
Dtarget_core_device.c793 dev->dev_attrib.da_dev = dev; in target_alloc_device()
794 dev->dev_attrib.emulate_model_alias = DA_EMULATE_MODEL_ALIAS; in target_alloc_device()
795 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
796 dev->dev_attrib.emulate_fua_write = 1; in target_alloc_device()
797 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
798 dev->dev_attrib.emulate_write_cache = DA_EMULATE_WRITE_CACHE; in target_alloc_device()
799 dev->dev_attrib.emulate_ua_intlck_ctrl = DA_EMULATE_UA_INTLLCK_CTRL; in target_alloc_device()
800 dev->dev_attrib.emulate_tas = DA_EMULATE_TAS; in target_alloc_device()
801 dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU; in target_alloc_device()
802 dev->dev_attrib.emulate_tpws = DA_EMULATE_TPWS; in target_alloc_device()
[all …]
Dtarget_core_spc.c96 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
105 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
453 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86()
456 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86()
464 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
495 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
506 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
513 put_unaligned_be16(min / dev->dev_attrib.block_size, &buf[6]); in spc_emulate_evpd_b0()
525 dev->dev_attrib.block_size; in spc_emulate_evpd_b0()
527 put_unaligned_be32(min_not_zero(mtl, dev->dev_attrib.hw_max_sectors), &buf[8]); in spc_emulate_evpd_b0()
[all …]
Dtarget_core_iblock.c120 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
121 dev->dev_attrib.hw_max_sectors = queue_max_hw_sectors(q); in iblock_configure_device()
122 dev->dev_attrib.hw_queue_depth = q->nr_requests; in iblock_configure_device()
124 if (target_configure_unmap_from_queue(&dev->dev_attrib, q, in iblock_configure_device()
125 dev->dev_attrib.hw_block_size)) in iblock_configure_device()
133 dev->dev_attrib.max_write_same_len = 0xFFFF; in iblock_configure_device()
136 dev->dev_attrib.is_nonrot = 1; in iblock_configure_device()
151 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device()
153 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT; in iblock_configure_device()
156 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
[all …]
Dtarget_core_sbc.c77 buf[4] = (dev->dev_attrib.block_size >> 24) & 0xff; in sbc_emulate_readcapacity()
78 buf[5] = (dev->dev_attrib.block_size >> 16) & 0xff; in sbc_emulate_readcapacity()
79 buf[6] = (dev->dev_attrib.block_size >> 8) & 0xff; in sbc_emulate_readcapacity()
80 buf[7] = dev->dev_attrib.block_size & 0xff; in sbc_emulate_readcapacity()
97 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16()
112 buf[8] = (dev->dev_attrib.block_size >> 24) & 0xff; in sbc_emulate_readcapacity_16()
113 buf[9] = (dev->dev_attrib.block_size >> 16) & 0xff; in sbc_emulate_readcapacity_16()
114 buf[10] = (dev->dev_attrib.block_size >> 8) & 0xff; in sbc_emulate_readcapacity_16()
115 buf[11] = dev->dev_attrib.block_size & 0xff; in sbc_emulate_readcapacity_16()
144 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in sbc_emulate_readcapacity_16()
[all …]
Dtarget_core_rd.c325 dev->dev_attrib.hw_block_size = RD_BLOCKSIZE; in rd_configure_device()
326 dev->dev_attrib.hw_max_sectors = UINT_MAX; in rd_configure_device()
327 dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; in rd_configure_device()
328 dev->dev_attrib.is_nonrot = 1; in rd_configure_device()
408 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw()
462 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size; in rd_execute_rw()
478 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
546 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
629 dev->dev_attrib.block_size) - 1; in rd_get_blocks()
638 if (!dev->dev_attrib.pi_prot_type) in rd_init_prot()
[all …]
Dtarget_core_xcopy.c70 if (!se_dev->dev_attrib.emulate_3pc) in target_xcopy_locate_se_dev_e4()
629 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source()
689 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination()
755 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
756 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work()
809 copied_nolb, copied_nolb * dst_dev->dev_attrib.block_size); in target_xcopy_do_work()
834 if (!dev->dev_attrib.emulate_3pc) { in target_do_xcopy()
882 if (xop->src_dev->dev_attrib.block_size != in target_do_xcopy()
883 xop->dst_dev->dev_attrib.block_size) { in target_do_xcopy()
886 xop->src_dev->dev_attrib.block_size, in target_do_xcopy()
[all …]
Dtarget_core_ua.c246 if (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) { in core_scsi3_ua_for_check_condition()
273 (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) ? "Reporting" : in core_scsi3_ua_for_check_condition()
274 "Releasing", dev->dev_attrib.emulate_ua_intlck_ctrl, in core_scsi3_ua_for_check_condition()
Dtarget_core_user.c921 dev->dev_attrib.hw_block_size = 512; in tcmu_configure_device()
922 dev->dev_attrib.hw_max_sectors = 128; in tcmu_configure_device()
923 dev->dev_attrib.hw_queue_depth = 128; in tcmu_configure_device()
1054 dev->dev_attrib.hw_block_size = tmp_ul; in tcmu_set_configfs_dev_params()
1081 return div_u64(udev->dev_size - dev->dev_attrib.block_size, in tcmu_get_blocks()
1082 dev->dev_attrib.block_size); in tcmu_get_blocks()
Dtarget_core_transport.c816 dev->dev_attrib.block_size, in transport_dump_dev_state()
817 dev->dev_attrib.hw_max_sectors); in transport_dump_dev_state()
1119 u32 sectors = (mtl / dev->dev_attrib.block_size); in target_check_max_data_sg_nents()
1148 if (dev->dev_attrib.block_size != 512) { in target_cmd_size_check()
1720 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl == 2) { in transport_generic_request_failure()
1785 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action()
2010 ilog2(cmd->se_dev->dev_attrib.block_size); in target_read_prot_action()
2356 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
2378 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
3075 else if (dev->dev_attrib.emulate_write_cache > 0) in target_check_wce()
[all …]
Dtarget_core_pscsi.c317 dev->dev_attrib.hw_block_size = sd->sector_size; in pscsi_add_device_to_list()
318 dev->dev_attrib.hw_max_sectors = in pscsi_add_device_to_list()
320 dev->dev_attrib.hw_queue_depth = sd->queue_depth; in pscsi_add_device_to_list()
Dtarget_core_tmr.c414 tas = dev->dev_attrib.emulate_tas; in core_tmr_lun_reset()
Dtarget_core_configfs.c895 if (val > dev->dev_attrib.queue_depth) { in queue_depth_store()
896 if (val > dev->dev_attrib.hw_queue_depth) { in queue_depth_store()
900 dev->dev_attrib.hw_queue_depth); in queue_depth_store()
1056 TB_CIT_SETUP_DRV(dev_attrib, NULL, NULL);
2805 config_group_init_type_name(&dev->dev_attrib.da_group, "attrib", in target_core_make_subdev()
2816 dev_cg->default_groups[0] = &dev->dev_attrib.da_group; in target_core_make_subdev()
Dtarget_core_pr.c1188 if (dev->dev_attrib.enforce_pr_isids) in __core_scsi3_locate_pr_reg()
3646 if (dev->dev_attrib.force_pr_aptpl) in target_scsi3_emulate_pr_out()
Dtarget_core_alua.c486 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
/linux-4.4.14/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.4.14/include/target/
Dtarget_core_base.h815 struct se_dev_attrib dev_attrib; member
/linux-4.4.14/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c384 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending()
555 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
/linux-4.4.14/drivers/infiniband/ulp/isert/
Dib_isert.c1843 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status()
2597 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()