/Linux-v4.19/drivers/target/ |
D | target_core_file.c | 165 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 …]
|
D | target_core_spc.c | 96 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() 452 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86() 455 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86() 463 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86() 494 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0() 505 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0() 512 put_unaligned_be16(min / dev->dev_attrib.block_size, &buf[6]); in spc_emulate_evpd_b0() 524 dev->dev_attrib.block_size; in spc_emulate_evpd_b0() 526 put_unaligned_be32(min_not_zero(mtl, dev->dev_attrib.hw_max_sectors), &buf[8]); in spc_emulate_evpd_b0() [all …]
|
D | target_core_device.c | 796 dev->dev_attrib.da_dev = dev; in target_alloc_device() 797 dev->dev_attrib.emulate_model_alias = DA_EMULATE_MODEL_ALIAS; in target_alloc_device() 798 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device() 799 dev->dev_attrib.emulate_fua_write = 1; in target_alloc_device() 800 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device() 801 dev->dev_attrib.emulate_write_cache = DA_EMULATE_WRITE_CACHE; in target_alloc_device() 802 dev->dev_attrib.emulate_ua_intlck_ctrl = DA_EMULATE_UA_INTLLCK_CTRL; in target_alloc_device() 803 dev->dev_attrib.emulate_tas = DA_EMULATE_TAS; in target_alloc_device() 804 dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU; in target_alloc_device() 805 dev->dev_attrib.emulate_tpws = DA_EMULATE_TPWS; in target_alloc_device() [all …]
|
D | target_core_iblock.c | 121 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device() 122 dev->dev_attrib.hw_max_sectors = queue_max_hw_sectors(q); in iblock_configure_device() 123 dev->dev_attrib.hw_queue_depth = q->nr_requests; in iblock_configure_device() 125 if (target_configure_unmap_from_queue(&dev->dev_attrib, q)) in iblock_configure_device() 135 dev->dev_attrib.max_write_same_len = max_write_zeroes_sectors; in iblock_configure_device() 137 dev->dev_attrib.max_write_same_len = 0xFFFF; in iblock_configure_device() 140 dev->dev_attrib.is_nonrot = 1; in iblock_configure_device() 155 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device() 157 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT; in iblock_configure_device() 160 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device() [all …]
|
D | target_core_rd.c | 312 dev->dev_attrib.hw_block_size = RD_BLOCKSIZE; in rd_configure_device() 313 dev->dev_attrib.hw_max_sectors = UINT_MAX; in rd_configure_device() 314 dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; in rd_configure_device() 315 dev->dev_attrib.is_nonrot = 1; in rd_configure_device() 398 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw() 415 if (se_dev->dev_attrib.pi_prot_verify) { in rd_do_prot_rw() 450 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size; in rd_execute_rw() 466 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw() 534 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw() 617 dev->dev_attrib.block_size) - 1; in rd_get_blocks() [all …]
|
D | target_core_sbc.c | 75 put_unaligned_be32(dev->dev_attrib.block_size, &buf[4]); in sbc_emulate_readcapacity() 92 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16() 100 put_unaligned_be32(dev->dev_attrib.block_size, &buf[8]); in sbc_emulate_readcapacity_16() 129 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) { in sbc_emulate_readcapacity_16() 136 if (dev->dev_attrib.unmap_zeroes_data) in sbc_emulate_readcapacity_16() 231 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size() 308 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same() 310 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same() 336 if (!dev->dev_attrib.emulate_tpws) { in sbc_setup_write_same() 461 unsigned int block_size = dev->dev_attrib.block_size; in compare_and_write_callback() [all …]
|
D | target_core_xcopy.c | 70 if (!se_dev->dev_attrib.emulate_3pc) in target_xcopy_locate_se_dev_e4_iter() 675 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source() 737 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination() 816 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work() 817 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work() 870 copied_nolb, copied_nolb * dst_dev->dev_attrib.block_size); in target_xcopy_do_work() 962 if (xop->src_dev->dev_attrib.block_size != in target_parse_xcopy_cmd() 963 xop->dst_dev->dev_attrib.block_size) { in target_parse_xcopy_cmd() 966 xop->src_dev->dev_attrib.block_size, in target_parse_xcopy_cmd() 967 xop->dst_dev->dev_attrib.block_size); in target_parse_xcopy_cmd() [all …]
|
D | target_core_ua.c | 245 if (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) { in core_scsi3_ua_for_check_condition() 270 (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) ? "Reporting" : in core_scsi3_ua_for_check_condition() 271 "Releasing", dev->dev_attrib.emulate_ua_intlck_ctrl, in core_scsi3_ua_for_check_condition()
|
D | target_core_user.c | 1894 if (dev->dev_attrib.hw_block_size == 0) in tcmu_configure_device() 1895 dev->dev_attrib.hw_block_size = 512; in tcmu_configure_device() 1897 if (!dev->dev_attrib.hw_max_sectors) in tcmu_configure_device() 1898 dev->dev_attrib.hw_max_sectors = 128; in tcmu_configure_device() 1899 if (!dev->dev_attrib.emulate_write_cache) in tcmu_configure_device() 1900 dev->dev_attrib.emulate_write_cache = 0; in tcmu_configure_device() 1901 dev->dev_attrib.hw_queue_depth = 128; in tcmu_configure_device() 2055 static int tcmu_set_dev_attrib(substring_t *arg, u32 *dev_attrib) in tcmu_set_dev_attrib() argument 2071 *dev_attrib = val; in tcmu_set_dev_attrib() 2146 &(dev->dev_attrib.hw_block_size)); in tcmu_set_configfs_dev_params() [all …]
|
D | target_core_transport.c | 927 dev->dev_attrib.block_size, in transport_dump_dev_state() 928 dev->dev_attrib.hw_max_sectors); in transport_dump_dev_state() 1230 u32 sectors = (mtl / dev->dev_attrib.block_size); in target_check_max_data_sg_nents() 1272 if (dev->dev_attrib.block_size != 512) { in target_cmd_size_check() 1847 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl == 2) { in transport_generic_request_failure() 1938 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action() 2214 ilog2(cmd->se_dev->dev_attrib.block_size); in target_read_prot_action() 2532 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd() 2554 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd() 3445 else if (dev->dev_attrib.emulate_write_cache > 0) in target_check_wce() [all …]
|
D | target_core_pscsi.c | 316 dev->dev_attrib.hw_block_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() 344 dev->dev_attrib.hw_block_size = sd->sector_size; in pscsi_add_device_to_list()
|
D | target_core_tmr.c | 389 tas = dev->dev_attrib.emulate_tas; in core_tmr_lun_reset()
|
D | target_core_configfs.c | 1012 if (val > dev->dev_attrib.queue_depth) { in queue_depth_store() 1013 if (val > dev->dev_attrib.hw_queue_depth) { in queue_depth_store() 1017 dev->dev_attrib.hw_queue_depth); in queue_depth_store() 1201 TB_CIT_SETUP_DRV(dev_attrib, NULL, NULL); 2950 config_group_init_type_name(&dev->dev_attrib.da_group, "attrib", in target_core_make_subdev() 2952 configfs_add_default_group(&dev->dev_attrib.da_group, &dev->dev_group); in target_core_make_subdev()
|
D | target_core_pr.c | 1193 if (dev->dev_attrib.enforce_pr_isids) in __core_scsi3_locate_pr_reg() 3624 if (dev->dev_attrib.force_pr_aptpl) in target_scsi3_emulate_pr_out()
|
D | target_core_alua.c | 488 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
|
/Linux-v4.19/drivers/edac/ |
D | edac_device.c | 61 struct edac_dev_sysfs_block_attribute *dev_attrib, *attrib_p, *attrib; in edac_device_alloc_ctl_info() local 97 dev_attrib = edac_align_ptr(&p, sizeof(*dev_attrib), count); in edac_device_alloc_ctl_info() 124 dev_attrib = (struct edac_dev_sysfs_block_attribute *) in edac_device_alloc_ctl_info() 125 (((char *)dev_ctl) + ((unsigned long)dev_attrib)); in edac_device_alloc_ctl_info() 174 attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; in edac_device_alloc_ctl_info()
|
/Linux-v4.19/include/target/ |
D | target_core_base.h | 811 struct se_dev_attrib dev_attrib; member
|
/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 404 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending() 687 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
|
/Linux-v4.19/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 1630 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status() 2075 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()
|