Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/target/
A Dtarget_core_file.c102 dev->dev_attrib.unmap_granularity = 1; in fd_configure_unmap()
177 dev->dev_attrib.is_nonrot = 1; in fd_configure_device()
454 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
466 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
610 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
612 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
621 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
623 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
640 dev->dev_attrib.block_size; in fd_execute_rw_buffered()
821 dev->dev_attrib.block_size); in fd_get_blocks()
[all …]
A Dtarget_core_device.c794 dev->dev_attrib.da_dev = dev; in target_alloc_device()
796 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
798 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
819 dev->dev_attrib.unmap_zeroes_data = in target_alloc_device()
872 switch (dev->dev_attrib.block_size) { in target_to_linux_sector()
982 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
983 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
988 dev->dev_attrib.hw_max_sectors = in target_configure_device()
990 dev->dev_attrib.hw_block_size); in target_configure_device()
991 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()
[all …]
A Dtarget_core_iblock.c129 dev->dev_attrib.hw_block_size); in iblock_configure_device()
140 dev->dev_attrib.max_write_same_len = 0xFFFF; in iblock_configure_device()
143 dev->dev_attrib.is_nonrot = 1; in iblock_configure_device()
163 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
172 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
242 if (block_size == dev->dev_attrib.block_size) in iblock_get_blocks()
247 switch (dev->dev_attrib.block_size) { in iblock_get_blocks()
262 switch (dev->dev_attrib.block_size) { in iblock_get_blocks()
277 switch (dev->dev_attrib.block_size) { in iblock_get_blocks()
292 switch (dev->dev_attrib.block_size) { in iblock_get_blocks()
[all …]
A Dtarget_core_spc.c105 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
525 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
536 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
555 dev->dev_attrib.block_size; in spc_emulate_evpd_b0()
558 dev->dev_attrib.hw_block_size, in spc_emulate_evpd_b0()
559 dev->dev_attrib.block_size); in spc_emulate_evpd_b0()
1463 return dev->dev_attrib.emulate_caw; in tcm_is_caw_enabled()
1671 return dev->dev_attrib.emulate_pr; in tcm_is_pr_enabled()
1800 return dev->dev_attrib.emulate_pr; in tcm_is_scsi2_reservations_enabled()
1861 return dev->dev_attrib.emulate_3pc; in tcm_is_3pc_enabled()
[all …]
A Dtarget_core_xcopy.c49 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter()
699 src_dev->dev_attrib.hw_block_size; in target_xcopy_do_work()
701 dst_dev->dev_attrib.hw_block_size; in target_xcopy_do_work()
743 src_lba += cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
760 nolb -= cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
862 if (xop->src_dev->dev_attrib.block_size != in target_parse_xcopy_cmd()
863 xop->dst_dev->dev_attrib.block_size) { in target_parse_xcopy_cmd()
866 xop->src_dev->dev_attrib.block_size, in target_parse_xcopy_cmd()
867 xop->dst_dev->dev_attrib.block_size); in target_parse_xcopy_cmd()
890 if (!dev->dev_attrib.emulate_3pc) { in target_do_xcopy()
[all …]
A Dtarget_core_sbc.c62 put_unaligned_be32(dev->dev_attrib.block_size, &buf[4]); in sbc_emulate_readcapacity()
79 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16()
87 put_unaligned_be32(dev->dev_attrib.block_size, &buf[8]); in sbc_emulate_readcapacity_16()
116 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) { in sbc_emulate_readcapacity_16()
123 if (dev->dev_attrib.unmap_zeroes_data) in sbc_emulate_readcapacity_16()
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
321 if (!dev->dev_attrib.emulate_tpws) { in sbc_setup_write_same()
670 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot()
684 switch (dev->dev_attrib.pi_prot_type) { in sbc_check_prot()
903 if (!dev->dev_attrib.emulate_caw) { in sbc_parse_cdb()
[all …]
A Dtarget_core_rd.c299 dev->dev_attrib.hw_block_size = RD_BLOCKSIZE; in rd_configure_device()
300 dev->dev_attrib.hw_max_sectors = UINT_MAX; in rd_configure_device()
301 dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; in rd_configure_device()
302 dev->dev_attrib.is_nonrot = 1; in rd_configure_device()
402 if (se_dev->dev_attrib.pi_prot_verify) { in rd_do_prot_rw()
437 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size; in rd_execute_rw()
453 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
521 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
623 dev->dev_attrib.block_size) - 1; in rd_get_blocks()
632 if (!dev->dev_attrib.pi_prot_type) in rd_init_prot()
[all …]
A Dtarget_core_ua.c202 bool dev_ua_intlck_clear = (dev->dev_attrib.emulate_ua_intlck_ctrl in core_scsi3_ua_for_check_condition()
260 dev->dev_attrib.emulate_ua_intlck_ctrl, in core_scsi3_ua_for_check_condition()
A Dtarget_core_user.c2265 if (dev->dev_attrib.hw_block_size == 0) in tcmu_configure_device()
2266 dev->dev_attrib.hw_block_size = 512; in tcmu_configure_device()
2268 if (!dev->dev_attrib.hw_max_sectors) in tcmu_configure_device()
2269 dev->dev_attrib.hw_max_sectors = 128; in tcmu_configure_device()
2270 if (!dev->dev_attrib.emulate_write_cache) in tcmu_configure_device()
2271 dev->dev_attrib.emulate_write_cache = 0; in tcmu_configure_device()
2272 dev->dev_attrib.hw_queue_depth = 128; in tcmu_configure_device()
2461 *dev_attrib = val; in tcmu_set_dev_attrib()
2610 &(dev->dev_attrib.hw_block_size)); in tcmu_set_configfs_dev_params()
2614 &(dev->dev_attrib.hw_max_sectors)); in tcmu_set_configfs_dev_params()
[all …]
A Dtarget_core_transport.c1029 dev->dev_attrib.block_size, in transport_dump_dev_state()
1030 dev->dev_attrib.hw_max_sectors); in transport_dump_dev_state()
1332 u32 sectors = (mtl / dev->dev_attrib.block_size); in target_check_max_data_sg_nents()
2067 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl in transport_generic_request_failure()
2159 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action()
2454 ilog2(cmd->se_dev->dev_attrib.block_size); in target_read_prot_action()
2772 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
2794 cmd->se_dev->dev_attrib.block_size; in transport_generic_new_cmd()
3600 else if (dev->dev_attrib.emulate_write_cache > 0) in target_check_wce()
3609 return target_check_wce(dev) && dev->dev_attrib.emulate_fua_write > 0; in target_check_fua()
A Dtarget_core_pscsi.c298 dev->dev_attrib.hw_block_size = in pscsi_add_device_to_list()
300 dev->dev_attrib.hw_max_sectors = in pscsi_add_device_to_list()
302 dev->dev_attrib.hw_queue_depth = sd->queue_depth; in pscsi_add_device_to_list()
326 dev->dev_attrib.hw_block_size = sd->sector_size; in pscsi_add_device_to_list()
A Dtarget_core_configfs.c1035 if (val > dev->dev_attrib.queue_depth) { in queue_depth_store()
1036 if (val > dev->dev_attrib.hw_queue_depth) { in queue_depth_store()
1040 dev->dev_attrib.hw_queue_depth); in queue_depth_store()
1315 TB_CIT_SETUP_DRV(dev_attrib, NULL, NULL);
1790 if (!dev->dev_attrib.emulate_pr) in target_pr_res_holder_show()
1933 if (!dev->dev_attrib.emulate_pr) in target_pr_res_type_show()
1948 if (!dev->dev_attrib.emulate_pr || in target_pr_res_aptpl_active_show()
1961 if (!dev->dev_attrib.emulate_pr || in target_pr_res_aptpl_metadata_show()
2008 if (!dev->dev_attrib.emulate_pr || in target_pr_res_aptpl_metadata_store()
3308 config_group_init_type_name(&dev->dev_attrib.da_group, "attrib", in target_core_make_subdev()
[all …]
A Dtarget_core_tmr.c366 tas = dev->dev_attrib.emulate_tas; in core_tmr_lun_reset()
A Dtarget_core_pr.c1583 dev->dev_attrib.enforce_pr_isids && in core_scsi3_decode_spec_i_port()
3616 if (dev->dev_attrib.force_pr_aptpl) in target_scsi3_emulate_pr_out()
4097 if (!dev->dev_attrib.emulate_pr) in target_check_reservation()
A Dtarget_core_alua.c462 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
/linux-6.3-rc2/drivers/edac/
A Dedac_device.c62 struct edac_dev_sysfs_block_attribute *dev_attrib, *attrib_p, *attrib; in edac_device_alloc_ctl_info() local
89 dev_attrib = kcalloc(nr_attrib, sizeof(struct edac_dev_sysfs_block_attribute), in edac_device_alloc_ctl_info()
91 if (!dev_attrib) in edac_device_alloc_ctl_info()
94 dev_ctl->attribs = dev_attrib; in edac_device_alloc_ctl_info()
144 attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; in edac_device_alloc_ctl_info()
/linux-6.3-rc2/include/target/
A Dtarget_core_base.h851 struct se_dev_attrib dev_attrib; member
/linux-6.3-rc2/drivers/scsi/qla2xxx/
A Dtcm_qla2xxx.c414 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending()
681 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
/linux-6.3-rc2/drivers/infiniband/ulp/isert/
A Dib_isert.c1541 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status()
1983 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()

Completed in 74 milliseconds