Lines Matching refs:max_idx
122 ids->max_idx = -1; in ipc_init_ids()
224 int max_idx; in ipc_idr_alloc() local
226 max_idx = max(ids->in_use*3/2, ipc_min_cycle); in ipc_idr_alloc()
227 max_idx = min(max_idx, ipc_mni); in ipc_idr_alloc()
230 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()
324 if (idx > ids->max_idx) in ipc_addid()
325 ids->max_idx = idx; in ipc_addid()
506 if (unlikely(idx == ids->max_idx)) { in ipc_rmid()
507 idx = ids->max_idx-1; in ipc_rmid()
510 ids->max_idx = idx; in ipc_rmid()
792 int max_idx = ipc_get_maxidx(ids); in sysvipc_find_ipc() local
794 if (max_idx == -1 || pos > max_idx) in sysvipc_find_ipc()
797 for (; pos <= max_idx; pos++) { in sysvipc_find_ipc()