Lines Matching refs:bd_table
56 struct bd_table *bd_table; in ep_bd_list_free() local
72 bd_table = bd_list->bd_table_array[index]; in ep_bd_list_free()
73 dev_dbg(bdc->dev, "bd_table:%p index:%d\n", bd_table, index); in ep_bd_list_free()
74 if (!bd_table) { in ep_bd_list_free()
78 if (!bd_table->start_bd) { in ep_bd_list_free()
85 bd_table->start_bd, in ep_bd_list_free()
86 (unsigned long long)bd_table->dma); in ep_bd_list_free()
89 bd_table->start_bd, in ep_bd_list_free()
90 bd_table->dma); in ep_bd_list_free()
92 kfree(bd_table); in ep_bd_list_free()
102 static inline void chain_table(struct bd_table *prev_table, in chain_table()
103 struct bd_table *next_table, in chain_table()
123 struct bd_table *prev_table = NULL; in ep_bd_list_alloc()
126 struct bd_table *bd_table; in ep_bd_list_alloc() local
142 sizeof(struct bd_table *), in ep_bd_list_alloc()
150 bd_table = kzalloc(sizeof(*bd_table), GFP_ATOMIC); in ep_bd_list_alloc()
151 if (!bd_table) in ep_bd_list_alloc()
154 bd_table->start_bd = dma_pool_zalloc(bdc->bd_table_pool, in ep_bd_list_alloc()
157 if (!bd_table->start_bd) { in ep_bd_list_alloc()
158 kfree(bd_table); in ep_bd_list_alloc()
162 bd_table->dma = dma; in ep_bd_list_alloc()
166 index, bd_table->start_bd, in ep_bd_list_alloc()
167 (unsigned long long)bd_table->dma, prev_table); in ep_bd_list_alloc()
169 ep->bd_list.bd_table_array[index] = bd_table; in ep_bd_list_alloc()
171 chain_table(prev_table, bd_table, bd_p_tab); in ep_bd_list_alloc()
173 prev_table = bd_table; in ep_bd_list_alloc()
220 struct bd_table *bd_table; in bd_add_to_bdi() local
233 bd_table = bd_list->bd_table_array[tbi]; in bd_add_to_bdi()
234 dma_first_bd = bd_table->dma; in bd_add_to_bdi()
235 dma_last_bd = bd_table->dma + in bd_add_to_bdi()
740 struct bd_table *table; in ep_dequeue()