Lines Matching refs:max_devices

258 		*start_idx = sc->max_devices - sc->max_volumes;  in _mapping_get_ir_maprange()
357 end_idx = sc->max_devices; in _mapping_get_high_missing_mt_idx()
412 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in _mapping_get_mt_idx_from_id()
455 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in _mapping_get_mt_idx_from_handle()
518 u32 map_idx, max_idx = sc->max_devices; in _mapping_get_free_mt_idx()
778 for (i = 0; i < sc->max_devices; i++, remove_entry++) { in _mapping_add_to_removal_table()
943 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
945 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
947 end_of_table = sc->max_devices - sc->max_volumes; in _mapping_find_enc_map_space()
1506 for (remove_idx = 0; remove_idx < sc->max_devices; in _mapping_clear_removed_entries()
2150 sc->max_devices), M_MPR, M_ZERO|M_NOWAIT); in mpr_mapping_allocate_memory()
2155 sc->max_devices), M_MPR, M_ZERO|M_NOWAIT); in mpr_mapping_allocate_memory()
2466 for (i = 0; i < sc->max_devices; i++, mt_entry++) { in mpr_mapping_check_devices()
2521 end_idx = sc->max_devices - 1; in mpr_mapping_check_devices()
2581 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes; in mpr_mapping_initialize()
2590 "and DPM has a max of %d entries.\n", __func__, sc->max_devices, in mpr_mapping_initialize()
2609 for (i = 0; i < sc->max_devices; i++) in mpr_mapping_initialize()
2615 for (i = 0; i < sc->max_devices; i++) { in mpr_mapping_initialize()
2681 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in mpr_mapping_get_tid()