Home
last modified time | relevance | path

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

123

/dports/multimedia/libv4l/linux-5.13-rc2/drivers/target/
H A Dtarget_core_file.c162 dev->dev_attrib.is_nonrot = 1; in fd_configure_device()
180 dev->dev_attrib.unmap_granularity = 1; in fd_configure_device()
456 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
469 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
613 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
615 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
624 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
626 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
643 dev->dev_attrib.block_size; in fd_execute_rw_buffered()
824 dev->dev_attrib.block_size); in fd_get_blocks()
[all …]
H A Dtarget_core_spc.c83 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
491 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
502 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
521 dev->dev_attrib.block_size; in spc_emulate_evpd_b0()
580 buf[5] = dev->dev_attrib.is_nonrot ? 1 : 0; in spc_emulate_evpd_b1()
622 if (dev->dev_attrib.emulate_tpu != 0) in spc_emulate_evpd_b2()
631 if (dev->dev_attrib.emulate_tpws != 0) in spc_emulate_evpd_b2()
641 if (((dev->dev_attrib.emulate_tpu != 0) || in spc_emulate_evpd_b2()
642 (dev->dev_attrib.emulate_tpws != 0)) && in spc_emulate_evpd_b2()
1032 u32 block_size = dev->dev_attrib.block_size; in spc_emulate_modesense()
[all …]
H A Dtarget_core_device.c778 dev->dev_attrib.da_dev = dev; in target_alloc_device()
780 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
782 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
802 dev->dev_attrib.unmap_zeroes_data = in target_alloc_device()
857 switch (dev->dev_attrib.block_size) { in target_to_linux_sector()
961 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
962 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
967 dev->dev_attrib.hw_max_sectors = in target_configure_device()
969 dev->dev_attrib.hw_block_size); in target_configure_device()
970 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()
[all …]
H A Dtarget_core_iblock.c119 dev->dev_attrib.hw_queue_depth = q->nr_requests; 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()
156 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
165 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
237 if (block_size == dev->dev_attrib.block_size) in iblock_emulate_read_cap_with_block_size()
242 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
257 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
272 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
287 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
[all …]
H 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()
323 if (!dev->dev_attrib.emulate_tpws) { in sbc_setup_write_same()
725 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot()
739 switch (dev->dev_attrib.pi_prot_type) { in sbc_check_prot()
995 if (!dev->dev_attrib.emulate_caw) { in sbc_parse_cdb()
[all …]
H 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 …]
H A Dtarget_core_xcopy.c62 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter()
603 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source()
648 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination()
707 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
708 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work()
720 u32 cur_bytes = cur_nolb * src_dev->dev_attrib.block_size; in target_xcopy_do_work()
864 if (xop->src_dev->dev_attrib.block_size != in target_parse_xcopy_cmd()
865 xop->dst_dev->dev_attrib.block_size) { in target_parse_xcopy_cmd()
868 xop->src_dev->dev_attrib.block_size, in target_parse_xcopy_cmd()
869 xop->dst_dev->dev_attrib.block_size); in target_parse_xcopy_cmd()
[all …]
H 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()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/target/
H A Dtarget_core_file.c162 dev->dev_attrib.is_nonrot = 1; in fd_configure_device()
180 dev->dev_attrib.unmap_granularity = 1; in fd_configure_device()
456 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
469 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
613 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
615 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
624 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
626 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
643 dev->dev_attrib.block_size; in fd_execute_rw_buffered()
824 dev->dev_attrib.block_size); in fd_get_blocks()
[all …]
H A Dtarget_core_spc.c83 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
491 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
502 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
521 dev->dev_attrib.block_size; in spc_emulate_evpd_b0()
580 buf[5] = dev->dev_attrib.is_nonrot ? 1 : 0; in spc_emulate_evpd_b1()
622 if (dev->dev_attrib.emulate_tpu != 0) in spc_emulate_evpd_b2()
631 if (dev->dev_attrib.emulate_tpws != 0) in spc_emulate_evpd_b2()
641 if (((dev->dev_attrib.emulate_tpu != 0) || in spc_emulate_evpd_b2()
642 (dev->dev_attrib.emulate_tpws != 0)) && in spc_emulate_evpd_b2()
1032 u32 block_size = dev->dev_attrib.block_size; in spc_emulate_modesense()
[all …]
H A Dtarget_core_device.c778 dev->dev_attrib.da_dev = dev; in target_alloc_device()
780 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
782 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
802 dev->dev_attrib.unmap_zeroes_data = in target_alloc_device()
857 switch (dev->dev_attrib.block_size) { in target_to_linux_sector()
961 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
962 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
967 dev->dev_attrib.hw_max_sectors = in target_configure_device()
969 dev->dev_attrib.hw_block_size); in target_configure_device()
970 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()
[all …]
H A Dtarget_core_iblock.c119 dev->dev_attrib.hw_queue_depth = q->nr_requests; 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()
156 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
165 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
237 if (block_size == dev->dev_attrib.block_size) in iblock_emulate_read_cap_with_block_size()
242 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
257 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
272 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
287 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
[all …]
H 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()
323 if (!dev->dev_attrib.emulate_tpws) { in sbc_setup_write_same()
725 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot()
739 switch (dev->dev_attrib.pi_prot_type) { in sbc_check_prot()
995 if (!dev->dev_attrib.emulate_caw) { in sbc_parse_cdb()
[all …]
H 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 …]
H A Dtarget_core_xcopy.c62 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter()
603 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source()
648 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination()
707 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
708 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work()
720 u32 cur_bytes = cur_nolb * src_dev->dev_attrib.block_size; in target_xcopy_do_work()
864 if (xop->src_dev->dev_attrib.block_size != in target_parse_xcopy_cmd()
865 xop->dst_dev->dev_attrib.block_size) { in target_parse_xcopy_cmd()
868 xop->src_dev->dev_attrib.block_size, in target_parse_xcopy_cmd()
869 xop->dst_dev->dev_attrib.block_size); in target_parse_xcopy_cmd()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/target/
H A Dtarget_core_file.c162 dev->dev_attrib.is_nonrot = 1; in fd_configure_device()
180 dev->dev_attrib.unmap_granularity = 1; in fd_configure_device()
456 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
469 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
613 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
615 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
624 dev->dev_attrib.pi_prot_verify) { in fd_execute_rw_buffered()
626 ilog2(dev->dev_attrib.block_size); in fd_execute_rw_buffered()
643 dev->dev_attrib.block_size; in fd_execute_rw_buffered()
824 dev->dev_attrib.block_size); in fd_get_blocks()
[all …]
H A Dtarget_core_spc.c83 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
491 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
502 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
521 dev->dev_attrib.block_size; in spc_emulate_evpd_b0()
580 buf[5] = dev->dev_attrib.is_nonrot ? 1 : 0; in spc_emulate_evpd_b1()
622 if (dev->dev_attrib.emulate_tpu != 0) in spc_emulate_evpd_b2()
631 if (dev->dev_attrib.emulate_tpws != 0) in spc_emulate_evpd_b2()
641 if (((dev->dev_attrib.emulate_tpu != 0) || in spc_emulate_evpd_b2()
642 (dev->dev_attrib.emulate_tpws != 0)) && in spc_emulate_evpd_b2()
1032 u32 block_size = dev->dev_attrib.block_size; in spc_emulate_modesense()
[all …]
H A Dtarget_core_device.c778 dev->dev_attrib.da_dev = dev; in target_alloc_device()
780 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
782 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
802 dev->dev_attrib.unmap_zeroes_data = in target_alloc_device()
857 switch (dev->dev_attrib.block_size) { in target_to_linux_sector()
961 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
962 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
967 dev->dev_attrib.hw_max_sectors = in target_configure_device()
969 dev->dev_attrib.hw_block_size); in target_configure_device()
970 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()
[all …]
H A Dtarget_core_iblock.c119 dev->dev_attrib.hw_queue_depth = q->nr_requests; 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()
156 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
165 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
237 if (block_size == dev->dev_attrib.block_size) in iblock_emulate_read_cap_with_block_size()
242 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
257 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
272 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
287 switch (dev->dev_attrib.block_size) { in iblock_emulate_read_cap_with_block_size()
[all …]
H 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()
323 if (!dev->dev_attrib.emulate_tpws) { in sbc_setup_write_same()
725 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot()
739 switch (dev->dev_attrib.pi_prot_type) { in sbc_check_prot()
995 if (!dev->dev_attrib.emulate_caw) { in sbc_parse_cdb()
[all …]
H 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 …]
H A Dtarget_core_xcopy.c62 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter()
603 u32 length = (src_sectors * src_dev->dev_attrib.block_size); in target_xcopy_read_source()
648 u32 length = (dst_sectors * dst_dev->dev_attrib.block_size); in target_xcopy_write_destination()
707 max_sectors = min(src_dev->dev_attrib.hw_max_sectors, in target_xcopy_do_work()
708 dst_dev->dev_attrib.hw_max_sectors); in target_xcopy_do_work()
720 u32 cur_bytes = cur_nolb * src_dev->dev_attrib.block_size; in target_xcopy_do_work()
864 if (xop->src_dev->dev_attrib.block_size != in target_parse_xcopy_cmd()
865 xop->dst_dev->dev_attrib.block_size) { in target_parse_xcopy_cmd()
868 xop->src_dev->dev_attrib.block_size, in target_parse_xcopy_cmd()
869 xop->dst_dev->dev_attrib.block_size); in target_parse_xcopy_cmd()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/edac/
H A Dedac_device.c61 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()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/edac/
H A Dedac_device.c61 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()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/edac/
H A Dedac_device.c61 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()

123