Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/infiniband/hw/amso1100/
Dc2_pd.c48 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 …]
Dc2.h313 struct c2_pd_table pd_table; member
/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_pd.c46 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()
Dmthca_dev.h340 struct mthca_pd_table pd_table; member