Lines Matching refs:max_devices
257 *start_idx = sc->max_devices - sc->max_volumes; in _mapping_get_ir_maprange()
356 end_idx = sc->max_devices; in _mapping_get_high_missing_mt_idx()
411 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in _mapping_get_mt_idx_from_id()
454 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in _mapping_get_mt_idx_from_handle()
517 u32 map_idx, max_idx = sc->max_devices; in _mapping_get_free_mt_idx()
777 for (i = 0; i < sc->max_devices; i++, remove_entry++) { in _mapping_add_to_removal_table()
942 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
944 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
946 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()
2148 sc->max_devices), M_MPR, M_ZERO|M_NOWAIT); in mpr_mapping_allocate_memory()
2153 sc->max_devices), M_MPR, M_ZERO|M_NOWAIT); in mpr_mapping_allocate_memory()
2458 for (i = 0; i < sc->max_devices; i++, mt_entry++) { in mpr_mapping_check_devices()
2513 end_idx = sc->max_devices - 1; in mpr_mapping_check_devices()
2573 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes; in mpr_mapping_initialize()
2582 "and DPM has a max of %d entries.\n", __func__, sc->max_devices, in mpr_mapping_initialize()
2601 for (i = 0; i < sc->max_devices; i++) in mpr_mapping_initialize()
2607 for (i = 0; i < sc->max_devices; i++) { in mpr_mapping_initialize()
2675 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in mpr_mapping_get_tid()