/drivers/target/ |
D | target_core_device.c | 657 dev->dev_attrib.max_unmap_lba_count = max_unmap_lba_count; in se_dev_set_max_unmap_lba_count() 659 dev, dev->dev_attrib.max_unmap_lba_count); in se_dev_set_max_unmap_lba_count() 667 dev->dev_attrib.max_unmap_block_desc_count = in se_dev_set_max_unmap_block_desc_count() 670 dev, dev->dev_attrib.max_unmap_block_desc_count); in se_dev_set_max_unmap_block_desc_count() 678 dev->dev_attrib.unmap_granularity = unmap_granularity; in se_dev_set_unmap_granularity() 680 dev, dev->dev_attrib.unmap_granularity); in se_dev_set_unmap_granularity() 688 dev->dev_attrib.unmap_granularity_alignment = unmap_granularity_alignment; in se_dev_set_unmap_granularity_alignment() 690 dev, dev->dev_attrib.unmap_granularity_alignment); in se_dev_set_unmap_granularity_alignment() 698 dev->dev_attrib.max_write_same_len = max_write_same_len; in se_dev_set_max_write_same_len() 700 dev, dev->dev_attrib.max_write_same_len); in se_dev_set_max_write_same_len() [all …]
|
D | target_core_file.c | 173 dev->dev_attrib.max_unmap_lba_count = in fd_configure_device() 178 dev->dev_attrib.max_unmap_block_desc_count = 1; in fd_configure_device() 179 dev->dev_attrib.unmap_granularity = in fd_configure_device() 181 dev->dev_attrib.unmap_granularity_alignment = in fd_configure_device() 190 dev->dev_attrib.max_write_same_len = 0xFFFF; in fd_configure_device() 193 dev->dev_attrib.is_nonrot = 1; in fd_configure_device() 206 dev->dev_attrib.max_unmap_lba_count = 0x2000; in fd_configure_device() 210 dev->dev_attrib.max_unmap_block_desc_count = 1; in fd_configure_device() 211 dev->dev_attrib.unmap_granularity = 1; in fd_configure_device() 212 dev->dev_attrib.unmap_granularity_alignment = 0; in fd_configure_device() [all …]
|
D | target_core_iblock.c | 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() [all …]
|
D | target_core_spc.c | 102 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std() 109 if (dev->dev_attrib.pi_prot_type) in spc_emulate_inquiry_std() 464 else if (dev->dev_attrib.emulate_write_cache > 0) in spc_check_dev_wce() 483 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT) in spc_emulate_evpd_86() 485 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT) in spc_emulate_evpd_86() 516 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0() 527 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0() 534 put_unaligned_be16(min / dev->dev_attrib.block_size, &buf[6]); in spc_emulate_evpd_b0() 541 put_unaligned_be32(dev->dev_attrib.hw_max_sectors, &buf[8]); in spc_emulate_evpd_b0() 547 put_unaligned_be32(opt / dev->dev_attrib.block_size, &buf[12]); in spc_emulate_evpd_b0() [all …]
|
D | target_core_sbc.c | 73 buf[4] = (dev->dev_attrib.block_size >> 24) & 0xff; in sbc_emulate_readcapacity() 74 buf[5] = (dev->dev_attrib.block_size >> 16) & 0xff; in sbc_emulate_readcapacity() 75 buf[6] = (dev->dev_attrib.block_size >> 8) & 0xff; in sbc_emulate_readcapacity() 76 buf[7] = dev->dev_attrib.block_size & 0xff; in sbc_emulate_readcapacity() 106 buf[8] = (dev->dev_attrib.block_size >> 24) & 0xff; in sbc_emulate_readcapacity_16() 107 buf[9] = (dev->dev_attrib.block_size >> 16) & 0xff; in sbc_emulate_readcapacity_16() 108 buf[10] = (dev->dev_attrib.block_size >> 8) & 0xff; in sbc_emulate_readcapacity_16() 109 buf[11] = dev->dev_attrib.block_size & 0xff; in sbc_emulate_readcapacity_16() 114 if (dev->dev_attrib.pi_prot_type) in sbc_emulate_readcapacity_16() 115 buf[12] = (dev->dev_attrib.pi_prot_type - 1) << 1 | 0x1; in sbc_emulate_readcapacity_16() [all …]
|
D | target_core_rd.c | 317 dev->dev_attrib.hw_block_size = RD_BLOCKSIZE; in rd_configure_device() 318 dev->dev_attrib.hw_max_sectors = UINT_MAX; in rd_configure_device() 319 dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; in rd_configure_device() 405 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size; in rd_execute_rw() 424 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_execute_rw() 507 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_execute_rw() 602 dev->dev_attrib.block_size) - 1; in rd_get_blocks() 611 if (!dev->dev_attrib.pi_prot_type) in rd_init_prot() 615 dev->dev_attrib.block_size); in rd_init_prot()
|
D | target_core_xcopy.c | 81 if (!se_dev->dev_attrib.emulate_3pc) in target_xcopy_locate_se_dev_e4() 674 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source() 736 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination() 804 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work() 805 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work() 858 copied_nolb, copied_nolb * dst_dev->dev_attrib.block_size); in target_xcopy_do_work() 888 if (!dev->dev_attrib.emulate_3pc) { in target_do_xcopy() 936 if (xop->src_dev->dev_attrib.block_size != in target_do_xcopy() 937 xop->dst_dev->dev_attrib.block_size) { in target_do_xcopy() 940 xop->src_dev->dev_attrib.block_size, in target_do_xcopy() [all …]
|
D | target_core_ua.c | 232 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()
|
D | target_core_user.c | 865 dev->dev_attrib.hw_block_size = 512; in tcmu_configure_device() 866 dev->dev_attrib.hw_max_sectors = 128; in tcmu_configure_device() 867 dev->dev_attrib.hw_queue_depth = 128; in tcmu_configure_device() 1011 return div_u64(udev->dev_size - dev->dev_attrib.block_size, in tcmu_get_blocks() 1012 dev->dev_attrib.block_size); in tcmu_get_blocks()
|
D | target_core_pscsi.c | 321 dev->dev_attrib.hw_block_size = in pscsi_add_device_to_list() 323 dev->dev_attrib.hw_max_sectors = in pscsi_add_device_to_list() 325 dev->dev_attrib.hw_queue_depth = sd->queue_depth; in pscsi_add_device_to_list() 349 dev->dev_attrib.hw_block_size = sd->sector_size; in pscsi_add_device_to_list()
|
D | target_core_transport.c | 816 dev->dev_attrib.block_size, in transport_dump_dev_state() 817 dev->dev_attrib.hw_max_sectors); in transport_dump_dev_state() 1099 if (dev->dev_attrib.block_size != 512) { in target_cmd_size_check() 1671 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl == 2) in transport_generic_request_failure() 2278 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd() 2308 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
|
D | target_core_tmr.c | 428 tas = dev->dev_attrib.emulate_tas; in core_tmr_lun_reset()
|
D | target_core_configfs.c | 573 (u32)da->da_dev->dev_attrib._name); \ 2810 config_group_init_type_name(&dev->dev_attrib.da_group, "attrib", in target_core_make_subdev() 2821 dev_cg->default_groups[0] = &dev->dev_attrib.da_group; in target_core_make_subdev()
|
D | target_core_pr.c | 1105 if (dev->dev_attrib.enforce_pr_isids) in __core_scsi3_locate_pr_reg() 3547 if (dev->dev_attrib.force_pr_aptpl) in target_scsi3_emulate_pr_out()
|
D | target_core_alua.c | 500 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
|
/drivers/edac/ |
D | edac_device.c | 79 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()
|
/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 494 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending() 673 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 1840 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status() 2759 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()
|