Searched refs:idtab (Results 1 – 1 of 1) sorted by relevance
65 struct rio_id_table *idtab = &net->destid_table; in rio_destid_alloc() local67 spin_lock(&idtab->lock); in rio_destid_alloc()68 destid = find_first_zero_bit(idtab->table, idtab->max); in rio_destid_alloc()70 if (destid < idtab->max) { in rio_destid_alloc()71 set_bit(destid, idtab->table); in rio_destid_alloc()72 destid += idtab->start; in rio_destid_alloc()76 spin_unlock(&idtab->lock); in rio_destid_alloc()91 struct rio_id_table *idtab = &net->destid_table; in rio_destid_reserve() local93 destid -= idtab->start; in rio_destid_reserve()94 spin_lock(&idtab->lock); in rio_destid_reserve()[all …]