Lines Matching refs:dev_attrib

749 	dev->dev_attrib.da_dev = dev;  in target_alloc_device()
750 dev->dev_attrib.emulate_model_alias = DA_EMULATE_MODEL_ALIAS; in target_alloc_device()
751 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
752 dev->dev_attrib.emulate_fua_write = 1; in target_alloc_device()
753 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
754 dev->dev_attrib.emulate_write_cache = DA_EMULATE_WRITE_CACHE; in target_alloc_device()
755 dev->dev_attrib.emulate_ua_intlck_ctrl = TARGET_UA_INTLCK_CTRL_CLEAR; in target_alloc_device()
756 dev->dev_attrib.emulate_tas = DA_EMULATE_TAS; in target_alloc_device()
757 dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU; in target_alloc_device()
758 dev->dev_attrib.emulate_tpws = DA_EMULATE_TPWS; in target_alloc_device()
759 dev->dev_attrib.emulate_caw = DA_EMULATE_CAW; in target_alloc_device()
760 dev->dev_attrib.emulate_3pc = DA_EMULATE_3PC; in target_alloc_device()
761 dev->dev_attrib.emulate_pr = DA_EMULATE_PR; in target_alloc_device()
762 dev->dev_attrib.emulate_rsoc = DA_EMULATE_RSOC; in target_alloc_device()
763 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT; in target_alloc_device()
764 dev->dev_attrib.enforce_pr_isids = DA_ENFORCE_PR_ISIDS; in target_alloc_device()
765 dev->dev_attrib.force_pr_aptpl = DA_FORCE_PR_APTPL; in target_alloc_device()
766 dev->dev_attrib.is_nonrot = DA_IS_NONROT; in target_alloc_device()
767 dev->dev_attrib.emulate_rest_reord = DA_EMULATE_REST_REORD; in target_alloc_device()
768 dev->dev_attrib.max_unmap_lba_count = DA_MAX_UNMAP_LBA_COUNT; in target_alloc_device()
769 dev->dev_attrib.max_unmap_block_desc_count = in target_alloc_device()
771 dev->dev_attrib.unmap_granularity = DA_UNMAP_GRANULARITY_DEFAULT; in target_alloc_device()
772 dev->dev_attrib.unmap_granularity_alignment = in target_alloc_device()
774 dev->dev_attrib.unmap_zeroes_data = in target_alloc_device()
776 dev->dev_attrib.max_write_same_len = DA_MAX_WRITE_SAME_LEN; in target_alloc_device()
827 switch (dev->dev_attrib.block_size) { in target_to_linux_sector()
934 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
935 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
940 dev->dev_attrib.hw_max_sectors = in target_configure_device()
941 se_dev_align_max_sectors(dev->dev_attrib.hw_max_sectors, in target_configure_device()
942 dev->dev_attrib.hw_block_size); in target_configure_device()
943 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()
1078 if (!dev->dev_attrib.emulate_pr && in passthrough_parse_cdb()