Searched refs:id_tbl (Results 1 – 2 of 2) sorted by relevance
202 static DEFINE_PCI_DEVICE_TABLE(id_tbl) = {207 MODULE_DEVICE_TABLE(pci, id_tbl);211 .id_table = id_tbl,
607 static int cnic_init_id_tbl(struct cnic_id_tbl *id_tbl, u32 size, u32 start_id) in cnic_init_id_tbl() argument609 id_tbl->start = start_id; in cnic_init_id_tbl()610 id_tbl->max = size; in cnic_init_id_tbl()611 id_tbl->next = 0; in cnic_init_id_tbl()612 spin_lock_init(&id_tbl->lock); in cnic_init_id_tbl()613 id_tbl->table = kzalloc(DIV_ROUND_UP(size, 32) * 4, GFP_KERNEL); in cnic_init_id_tbl()614 if (!id_tbl->table) in cnic_init_id_tbl()620 static void cnic_free_id_tbl(struct cnic_id_tbl *id_tbl) in cnic_free_id_tbl() argument622 kfree(id_tbl->table); in cnic_free_id_tbl()623 id_tbl->table = NULL; in cnic_free_id_tbl()[all …]