Lines Matching defs:bdi
214 /* returns the bd index(bdi) corresponding to bd dma address */
222 int tbi, bdi;
250 /* Now we know the table, find the bdi */
251 bdi = (bd_dma_addr - dma_first_bd) / sizeof(struct bdc_bd);
253 /* return the global bdi, to compare with ep eqp_bdi */
254 return (bdi + (tbi * bd_list->num_bds_table));
257 /* returns the table index(tbi) of the given bdi */
258 static int bdi_to_tbi(struct bdc_ep *ep, int bdi)
262 tbi = bdi / ep->bd_list.num_bds_table;
264 "bdi:%d num_bds_table:%d tbi:%d\n",
265 bdi, ep->bd_list.num_bds_table, tbi);
270 /* Find the bdi last bd in the transfer */
356 /* returns the bd corresponding to bdi */
357 static struct bdc_bd *bdi_to_bd(struct bdc_ep *ep, int bdi)
359 int tbi = bdi_to_tbi(ep, bdi);
362 local_bdi = bdi - (tbi * ep->bd_list.num_bds_table);
364 "%s bdi:%d local_bdi:%d\n",
365 __func__, bdi, local_bdi);