• Home
  • Raw
  • Download

Lines Matching refs:dev_attrib

657 	dev->dev_attrib.max_unmap_lba_count = max_unmap_lba_count;  in se_dev_set_max_unmap_lba_count()
659 dev, dev->dev_attrib.max_unmap_lba_count); in se_dev_set_max_unmap_lba_count()
667 dev->dev_attrib.max_unmap_block_desc_count = in se_dev_set_max_unmap_block_desc_count()
670 dev, dev->dev_attrib.max_unmap_block_desc_count); in se_dev_set_max_unmap_block_desc_count()
678 dev->dev_attrib.unmap_granularity = unmap_granularity; in se_dev_set_unmap_granularity()
680 dev, dev->dev_attrib.unmap_granularity); in se_dev_set_unmap_granularity()
688 dev->dev_attrib.unmap_granularity_alignment = unmap_granularity_alignment; in se_dev_set_unmap_granularity_alignment()
690 dev, dev->dev_attrib.unmap_granularity_alignment); in se_dev_set_unmap_granularity_alignment()
698 dev->dev_attrib.max_write_same_len = max_write_same_len; in se_dev_set_max_write_same_len()
700 dev, dev->dev_attrib.max_write_same_len); in se_dev_set_max_write_same_len()
737 dev->dev_attrib.emulate_model_alias = flag; in se_dev_set_emulate_model_alias()
769 dev->dev_attrib.emulate_fua_write = flag; in se_dev_set_emulate_fua_write()
771 dev, dev->dev_attrib.emulate_fua_write); in se_dev_set_emulate_fua_write()
807 dev->dev_attrib.emulate_write_cache = flag; in se_dev_set_emulate_write_cache()
809 dev, dev->dev_attrib.emulate_write_cache); in se_dev_set_emulate_write_cache()
826 dev->dev_attrib.emulate_ua_intlck_ctrl = flag; in se_dev_set_emulate_ua_intlck_ctrl()
828 dev, dev->dev_attrib.emulate_ua_intlck_ctrl); in se_dev_set_emulate_ua_intlck_ctrl()
846 dev->dev_attrib.emulate_tas = flag; in se_dev_set_emulate_tas()
848 dev, (dev->dev_attrib.emulate_tas) ? "Enabled" : "Disabled"); in se_dev_set_emulate_tas()
863 if (flag && !dev->dev_attrib.max_unmap_block_desc_count) { in se_dev_set_emulate_tpu()
868 dev->dev_attrib.emulate_tpu = flag; in se_dev_set_emulate_tpu()
884 if (flag && !dev->dev_attrib.max_unmap_block_desc_count) { in se_dev_set_emulate_tpws()
889 dev->dev_attrib.emulate_tpws = flag; in se_dev_set_emulate_tpws()
901 dev->dev_attrib.emulate_caw = flag; in se_dev_set_emulate_caw()
914 dev->dev_attrib.emulate_3pc = flag; in se_dev_set_emulate_3pc()
923 int rc, old_prot = dev->dev_attrib.pi_prot_type; in se_dev_set_pi_prot_type()
933 if (dev->dev_attrib.hw_pi_prot_type) { in se_dev_set_pi_prot_type()
957 dev->dev_attrib.pi_prot_type = flag; in se_dev_set_pi_prot_type()
962 dev->dev_attrib.pi_prot_type = old_prot; in se_dev_set_pi_prot_type()
1015 dev->dev_attrib.enforce_pr_isids = flag; in se_dev_set_enforce_pr_isids()
1017 (dev->dev_attrib.enforce_pr_isids) ? "Enabled" : "Disabled"); in se_dev_set_enforce_pr_isids()
1033 dev->dev_attrib.force_pr_aptpl = flag; in se_dev_set_force_pr_aptpl()
1044 dev->dev_attrib.is_nonrot = flag; in se_dev_set_is_nonrot()
1057 dev->dev_attrib.emulate_rest_reord = flag; in se_dev_set_emulate_rest_reord()
1080 if (queue_depth > dev->dev_attrib.hw_queue_depth) { in se_dev_set_queue_depth()
1084 dev->dev_attrib.hw_queue_depth); in se_dev_set_queue_depth()
1088 if (queue_depth > dev->dev_attrib.queue_depth) { in se_dev_set_queue_depth()
1089 if (queue_depth > dev->dev_attrib.hw_queue_depth) { in se_dev_set_queue_depth()
1093 dev->dev_attrib.hw_queue_depth); in se_dev_set_queue_depth()
1099 dev->dev_attrib.queue_depth = dev->queue_depth = queue_depth; in se_dev_set_queue_depth()
1107 int block_size = dev->dev_attrib.block_size; in se_dev_set_fabric_max_sectors()
1127 if (fabric_max_sectors > dev->dev_attrib.hw_max_sectors) { in se_dev_set_fabric_max_sectors()
1131 dev->dev_attrib.hw_max_sectors); in se_dev_set_fabric_max_sectors()
1153 dev->dev_attrib.fabric_max_sectors = fabric_max_sectors; in se_dev_set_fabric_max_sectors()
1172 if (optimal_sectors > dev->dev_attrib.hw_max_sectors) { in se_dev_set_optimal_sectors()
1175 optimal_sectors, dev->dev_attrib.hw_max_sectors); in se_dev_set_optimal_sectors()
1179 dev->dev_attrib.optimal_sectors = optimal_sectors; in se_dev_set_optimal_sectors()
1211 dev->dev_attrib.block_size = block_size; in se_dev_set_block_size()
1215 if (dev->dev_attrib.max_bytes_per_io) in se_dev_set_block_size()
1216 dev->dev_attrib.hw_max_sectors = in se_dev_set_block_size()
1217 dev->dev_attrib.max_bytes_per_io / block_size; in se_dev_set_block_size()
1550 dev->dev_attrib.da_dev = dev; in target_alloc_device()
1551 dev->dev_attrib.emulate_model_alias = DA_EMULATE_MODEL_ALIAS; in target_alloc_device()
1552 dev->dev_attrib.emulate_dpo = DA_EMULATE_DPO; in target_alloc_device()
1553 dev->dev_attrib.emulate_fua_write = DA_EMULATE_FUA_WRITE; in target_alloc_device()
1554 dev->dev_attrib.emulate_fua_read = DA_EMULATE_FUA_READ; in target_alloc_device()
1555 dev->dev_attrib.emulate_write_cache = DA_EMULATE_WRITE_CACHE; in target_alloc_device()
1556 dev->dev_attrib.emulate_ua_intlck_ctrl = DA_EMULATE_UA_INTLLCK_CTRL; in target_alloc_device()
1557 dev->dev_attrib.emulate_tas = DA_EMULATE_TAS; in target_alloc_device()
1558 dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU; in target_alloc_device()
1559 dev->dev_attrib.emulate_tpws = DA_EMULATE_TPWS; in target_alloc_device()
1560 dev->dev_attrib.emulate_caw = DA_EMULATE_CAW; in target_alloc_device()
1561 dev->dev_attrib.emulate_3pc = DA_EMULATE_3PC; in target_alloc_device()
1562 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT; in target_alloc_device()
1563 dev->dev_attrib.enforce_pr_isids = DA_ENFORCE_PR_ISIDS; in target_alloc_device()
1564 dev->dev_attrib.force_pr_aptpl = DA_FORCE_PR_APTPL; in target_alloc_device()
1565 dev->dev_attrib.is_nonrot = DA_IS_NONROT; in target_alloc_device()
1566 dev->dev_attrib.emulate_rest_reord = DA_EMULATE_REST_REORD; in target_alloc_device()
1567 dev->dev_attrib.max_unmap_lba_count = DA_MAX_UNMAP_LBA_COUNT; in target_alloc_device()
1568 dev->dev_attrib.max_unmap_block_desc_count = in target_alloc_device()
1570 dev->dev_attrib.unmap_granularity = DA_UNMAP_GRANULARITY_DEFAULT; in target_alloc_device()
1571 dev->dev_attrib.unmap_granularity_alignment = in target_alloc_device()
1573 dev->dev_attrib.max_write_same_len = DA_MAX_WRITE_SAME_LEN; in target_alloc_device()
1574 dev->dev_attrib.fabric_max_sectors = DA_FABRIC_MAX_SECTORS; in target_alloc_device()
1604 dev->dev_attrib.block_size = dev->dev_attrib.hw_block_size; in target_configure_device()
1605 dev->dev_attrib.queue_depth = dev->dev_attrib.hw_queue_depth; in target_configure_device()
1610 dev->dev_attrib.hw_max_sectors = in target_configure_device()
1611 se_dev_align_max_sectors(dev->dev_attrib.hw_max_sectors, in target_configure_device()
1612 dev->dev_attrib.hw_block_size); in target_configure_device()
1613 dev->dev_attrib.optimal_sectors = dev->dev_attrib.hw_max_sectors; in target_configure_device()