Home
last modified time | relevance | path

Searched refs:idtab (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/rapidio/
H A Drio-scan.c59 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_alloc() local
61 spin_lock(&idtab->lock); in rio_destid_alloc()
62 destid = find_first_zero_bit(idtab->table, idtab->max); in rio_destid_alloc()
64 if (destid < idtab->max) { in rio_destid_alloc()
65 set_bit(destid, idtab->table); in rio_destid_alloc()
66 destid += idtab->start; in rio_destid_alloc()
70 spin_unlock(&idtab->lock); in rio_destid_alloc()
85 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_reserve() local
87 destid -= idtab->start; in rio_destid_reserve()
88 spin_lock(&idtab->lock); in rio_destid_reserve()
[all …]