Lines Matching refs:dev_attrib
105 if (dev->dev_attrib.emulate_3pc) in spc_emulate_inquiry_std()
114 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
480 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86()
483 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86()
491 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
522 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) in spc_emulate_evpd_b0()
533 if (dev->dev_attrib.emulate_caw) in spc_emulate_evpd_b0()
540 put_unaligned_be16(min / dev->dev_attrib.block_size, &buf[6]); in spc_emulate_evpd_b0()
552 dev->dev_attrib.block_size; in spc_emulate_evpd_b0()
554 put_unaligned_be32(min_not_zero(mtl, dev->dev_attrib.hw_max_sectors), &buf[8]); in spc_emulate_evpd_b0()
560 put_unaligned_be32(opt / dev->dev_attrib.block_size, &buf[12]); in spc_emulate_evpd_b0()
562 put_unaligned_be32(dev->dev_attrib.optimal_sectors, &buf[12]); in spc_emulate_evpd_b0()
573 put_unaligned_be32(dev->dev_attrib.max_unmap_lba_count, &buf[20]); in spc_emulate_evpd_b0()
578 put_unaligned_be32(dev->dev_attrib.max_unmap_block_desc_count, in spc_emulate_evpd_b0()
584 put_unaligned_be32(dev->dev_attrib.unmap_granularity, &buf[28]); in spc_emulate_evpd_b0()
589 put_unaligned_be32(dev->dev_attrib.unmap_granularity_alignment, in spc_emulate_evpd_b0()
591 if (dev->dev_attrib.unmap_granularity_alignment != 0) in spc_emulate_evpd_b0()
598 put_unaligned_be64(dev->dev_attrib.max_write_same_len, &buf[36]); in spc_emulate_evpd_b0()
611 buf[5] = dev->dev_attrib.is_nonrot ? 1 : 0; in spc_emulate_evpd_b1()
653 if (dev->dev_attrib.emulate_tpu != 0) in spc_emulate_evpd_b2()
662 if (dev->dev_attrib.emulate_tpws != 0) in spc_emulate_evpd_b2()
672 if (((dev->dev_attrib.emulate_tpu != 0) || in spc_emulate_evpd_b2()
673 (dev->dev_attrib.emulate_tpws != 0)) && in spc_emulate_evpd_b2()
674 (dev->dev_attrib.unmap_zeroes_data != 0)) in spc_emulate_evpd_b2()
847 p[3] = (dev->dev_attrib.emulate_rest_reord == 1) ? 0x00 : 0x10; in spc_modesense_control()
877 switch (dev->dev_attrib.emulate_ua_intlck_ctrl) { in spc_modesense_control()
900 p[5] = (dev->dev_attrib.emulate_tas) ? 0x40 : 0x00; in spc_modesense_control()
912 if (dev->dev_attrib.pi_prot_type || sess->sess_prot_type) in spc_modesense_control()
1063 u32 block_size = dev->dev_attrib.block_size; in spc_emulate_modesense()
1317 if (!dev->dev_attrib.emulate_pr && in spc_parse_cdb()