Searched refs:pd_table (Results 1 – 4 of 4) sorted by relevance
48 spin_lock(&c2dev->pd_table.lock); in c2_pd_alloc()49 obj = find_next_zero_bit(c2dev->pd_table.table, c2dev->pd_table.max, in c2_pd_alloc()50 c2dev->pd_table.last); in c2_pd_alloc()51 if (obj >= c2dev->pd_table.max) in c2_pd_alloc()52 obj = find_first_zero_bit(c2dev->pd_table.table, in c2_pd_alloc()53 c2dev->pd_table.max); in c2_pd_alloc()54 if (obj < c2dev->pd_table.max) { in c2_pd_alloc()56 __set_bit(obj, c2dev->pd_table.table); in c2_pd_alloc()57 c2dev->pd_table.last = obj+1; in c2_pd_alloc()58 if (c2dev->pd_table.last >= c2dev->pd_table.max) in c2_pd_alloc()[all …]
313 struct c2_pd_table pd_table; member
46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc); in mthca_pd_alloc()56 mthca_free(&dev->pd_table.alloc, pd->pd_num); in mthca_pd_alloc()66 mthca_free(&dev->pd_table.alloc, pd->pd_num); in mthca_pd_free()71 return mthca_alloc_init(&dev->pd_table.alloc, in mthca_init_pd_table()80 mthca_alloc_cleanup(&dev->pd_table.alloc); in mthca_cleanup_pd_table()
340 struct mthca_pd_table pd_table; member