Home
last modified time | relevance | path

Searched refs:table_idx (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.c233 u32 table_idx; in hns_roce_calc_hem_mhop() local
251 table_idx = (*obj & (table->num_obj - 1)) / in hns_roce_calc_hem_mhop()
255 mhop->l2_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
256 mhop->l1_idx = table_idx / chunk_ba_num & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
257 mhop->l0_idx = (table_idx / chunk_ba_num) / chunk_ba_num; in hns_roce_calc_hem_mhop()
260 mhop->l1_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
261 mhop->l0_idx = table_idx / chunk_ba_num; in hns_roce_calc_hem_mhop()
264 mhop->l0_idx = table_idx; in hns_roce_calc_hem_mhop()
/Linux-v5.4/drivers/media/pci/bt8xx/
Dbttv-driver.c850 int table_idx = bttv_tvnorms[btv->tvnorm].sram; in bt848A_set_timing() local
855 btv->c.nr,table_idx); in bt848A_set_timing()
862 len=SRAM_Table[table_idx][0]; in bt848A_set_timing()
864 btwrite(SRAM_Table[table_idx][i],BT848_TGLB); in bt848A_set_timing()
/Linux-v5.4/drivers/staging/fwserial/
Dfwserial.c68 #define table_idx(loop) ((loop) * num_ports + num_ttys) macro
1082 struct fwtty_port *port = fwtty_port_get(table_idx(tty->index)); in fwloop_install()