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()
518 u32 map_idx, max_idx = sc->max_devices; in _mapping_get_free_mt_idx()
779 for (i = 0; i < sc->max_devices; i++, remove_entry++) { in _mapping_add_to_removal_table()
902 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
904 end_of_table = sc->max_devices; in _mapping_find_enc_map_space()
906 end_of_table = sc->max_devices - sc->max_volumes; in _mapping_find_enc_map_space()
1313 for (remove_idx = 0; remove_idx < sc->max_devices; in _mapping_clear_removed_entries()
1696 sc->max_devices), M_MPT2, M_ZERO|M_NOWAIT); in mps_mapping_allocate_memory()
1701 sc->max_devices), M_MPT2, M_ZERO|M_NOWAIT); in mps_mapping_allocate_memory()
1990 for (i = 0; i < sc->max_devices; i++, mt_entry++) { in mps_mapping_check_devices()
2045 end_idx = sc->max_devices - 1; in mps_mapping_check_devices()
2105 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes; in mps_mapping_initialize()
2114 "and DPM has a max of %d entries.\n", __func__, sc->max_devices, in mps_mapping_initialize()
2132 for (i = 0; i < sc->max_devices; i++) in mps_mapping_initialize()
2138 for (i = 0; i < sc->max_devices; i++) { in mps_mapping_initialize()
2204 for (map_idx = 0; map_idx < sc->max_devices; map_idx++) { in mps_mapping_get_tid()
2644 for (i = 0; i < sc->max_devices; i++) { in mps_mapping_dump()