Searched refs:idtab (Results 1 – 1 of 1) sorted by relevance
63 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_alloc() local65 spin_lock(&idtab->lock); in rio_destid_alloc()66 destid = find_first_zero_bit(idtab->table, idtab->max); in rio_destid_alloc()68 if (destid < idtab->max) { in rio_destid_alloc()69 set_bit(destid, idtab->table); in rio_destid_alloc()70 destid += idtab->start; in rio_destid_alloc()74 spin_unlock(&idtab->lock); in rio_destid_alloc()89 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_reserve() local91 destid -= idtab->start; in rio_destid_reserve()92 spin_lock(&idtab->lock); in rio_destid_reserve()[all …]