Searched refs:id_tbl (Results 1 – 3 of 3) sorted by relevance
67 int qedi_alloc_id(struct qedi_portid_tbl *id_tbl, u16 id);68 u16 qedi_alloc_new_id(struct qedi_portid_tbl *id_tbl);69 void qedi_free_id(struct qedi_portid_tbl *id_tbl, u16 id);
536 id_tbl->max = size; in qedi_init_id_tbl()537 id_tbl->next = next; in qedi_init_id_tbl()540 if (!id_tbl->table) in qedi_init_id_tbl()548 kfree(id_tbl->table); in qedi_free_id_tbl()549 id_tbl->table = NULL; in qedi_free_id_tbl()556 id -= id_tbl->start; in qedi_alloc_id()574 id = find_next_zero_bit(id_tbl->table, id_tbl->max, id_tbl->next); in qedi_alloc_new_id()578 id = find_first_zero_bit(id_tbl->table, id_tbl->next); in qedi_alloc_new_id()586 id_tbl->next = (id + 1) & (id_tbl->max - 1); in qedi_alloc_new_id()587 id += id_tbl->start; in qedi_alloc_new_id()[all …]
660 id_tbl->max = size; in cnic_init_id_tbl()661 id_tbl->next = next; in cnic_init_id_tbl()664 if (!id_tbl->table) in cnic_init_id_tbl()673 id_tbl->table = NULL; in cnic_free_id_tbl()680 id -= id_tbl->start; in cnic_alloc_id()681 if (id >= id_tbl->max) in cnic_alloc_id()699 id = find_next_zero_bit(id_tbl->table, id_tbl->max, id_tbl->next); in cnic_alloc_new_id()703 id = find_first_zero_bit(id_tbl->table, id_tbl->next); in cnic_alloc_new_id()711 id_tbl->next = (id + 1) & (id_tbl->max - 1); in cnic_alloc_new_id()712 id += id_tbl->start; in cnic_alloc_new_id()[all …]