Lines Matching refs:max_devices

256 		*start_idx = sc->max_devices - sc->max_volumes;  in _mapping_get_ir_maprange()
355 end_idx = sc->max_devices; in _mapping_get_high_missing_mt_idx()
410 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in _mapping_get_mt_idx_from_id()
453 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in _mapping_get_mt_idx_from_handle()
516 u32 map_idx, max_idx = sc->max_devices; in _mapping_get_free_mt_idx()
775 for (i = 0; i < sc->max_devices; i++, remove_entry++) { in _mapping_add_to_removal_table()
940 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
942 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
944 end_of_table = sc->max_devices - sc->max_volumes; in _mapping_find_enc_map_space()
1503 for (remove_idx = 0; remove_idx < sc->max_devices; in _mapping_clear_removed_entries()
2145 sc->max_devices), M_MPR, M_ZERO|M_NOWAIT); in mpr_mapping_allocate_memory()
2150 sc->max_devices), M_MPR, M_ZERO|M_NOWAIT); in mpr_mapping_allocate_memory()
2459 for (i = 0; i < sc->max_devices; i++, mt_entry++) { in mpr_mapping_check_devices()
2514 end_idx = sc->max_devices - 1; in mpr_mapping_check_devices()
2574 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes; in mpr_mapping_initialize()
2583 "and DPM has a max of %d entries.\n", __func__, sc->max_devices, in mpr_mapping_initialize()
2602 for (i = 0; i < sc->max_devices; i++) in mpr_mapping_initialize()
2608 for (i = 0; i < sc->max_devices; i++) { in mpr_mapping_initialize()
2674 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in mpr_mapping_get_tid()