• Home
  • Raw
  • Download

Lines Matching refs:dev_attrib

786 	dev->dev_attrib.da_dev = dev;  in target_alloc_device()
787 dev->dev_attrib.emulate_model_alias = DA_EMULATE_MODEL_ALIAS; in target_alloc_device()
788 dev->dev_attrib.emulate_dpo = 1; in target_alloc_device()
789 dev->dev_attrib.emulate_fua_write = 1; in target_alloc_device()
790 dev->dev_attrib.emulate_fua_read = 1; in target_alloc_device()
791 dev->dev_attrib.emulate_write_cache = DA_EMULATE_WRITE_CACHE; in target_alloc_device()
792 dev->dev_attrib.emulate_ua_intlck_ctrl = TARGET_UA_INTLCK_CTRL_CLEAR; in target_alloc_device()
793 dev->dev_attrib.emulate_tas = DA_EMULATE_TAS; in target_alloc_device()
794 dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU; in target_alloc_device()
795 dev->dev_attrib.emulate_tpws = DA_EMULATE_TPWS; in target_alloc_device()
796 dev->dev_attrib.emulate_caw = DA_EMULATE_CAW; in target_alloc_device()
797 dev->dev_attrib.emulate_3pc = DA_EMULATE_3PC; in target_alloc_device()
798 dev->dev_attrib.emulate_pr = DA_EMULATE_PR; in target_alloc_device()
799 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT; in target_alloc_device()
800 dev->dev_attrib.enforce_pr_isids = DA_ENFORCE_PR_ISIDS; in target_alloc_device()
801 dev->dev_attrib.force_pr_aptpl = DA_FORCE_PR_APTPL; in target_alloc_device()
802 dev->dev_attrib.is_nonrot = DA_IS_NONROT; in target_alloc_device()
803 dev->dev_attrib.emulate_rest_reord = DA_EMULATE_REST_REORD; in target_alloc_device()
804 dev->dev_attrib.max_unmap_lba_count = DA_MAX_UNMAP_LBA_COUNT; in target_alloc_device()
805 dev->dev_attrib.max_unmap_block_desc_count = in target_alloc_device()
807 dev->dev_attrib.unmap_granularity = DA_UNMAP_GRANULARITY_DEFAULT; in target_alloc_device()
808 dev->dev_attrib.unmap_granularity_alignment = in target_alloc_device()
810 dev->dev_attrib.unmap_zeroes_data = in target_alloc_device()
812 dev->dev_attrib.max_write_same_len = DA_MAX_WRITE_SAME_LEN; in target_alloc_device()
864 switch (dev->dev_attrib.block_size) { in target_to_linux_sector()
965 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
966 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
971 dev->dev_attrib.hw_max_sectors = in target_configure_device()
972 se_dev_align_max_sectors(dev->dev_attrib.hw_max_sectors, in target_configure_device()
973 dev->dev_attrib.hw_block_size); in target_configure_device()
974 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()
1109 if (!dev->dev_attrib.emulate_pr && in passthrough_parse_cdb()