Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c97 u32 table_idx; in hns_roce_calc_hem_mhop() local
167 table_idx = (*obj & (table->num_obj - 1)) / in hns_roce_calc_hem_mhop()
171 mhop->l2_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
172 mhop->l1_idx = table_idx / chunk_ba_num & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
173 mhop->l0_idx = (table_idx / chunk_ba_num) / chunk_ba_num; in hns_roce_calc_hem_mhop()
176 mhop->l1_idx = table_idx & (chunk_ba_num - 1); in hns_roce_calc_hem_mhop()
177 mhop->l0_idx = table_idx / chunk_ba_num; in hns_roce_calc_hem_mhop()
180 mhop->l0_idx = table_idx; in hns_roce_calc_hem_mhop()
/Linux-v4.19/drivers/media/pci/bt8xx/
Dbttv-driver.c880 int table_idx = bttv_tvnorms[btv->tvnorm].sram; in bt848A_set_timing() local
885 btv->c.nr,table_idx); in bt848A_set_timing()
892 len=SRAM_Table[table_idx][0]; in bt848A_set_timing()
894 btwrite(SRAM_Table[table_idx][i],BT848_TGLB); in bt848A_set_timing()
/Linux-v4.19/drivers/staging/fwserial/
Dfwserial.c65 #define table_idx(loop) ((loop) * num_ports + num_ttys) macro
1079 struct fwtty_port *port = fwtty_port_get(table_idx(tty->index)); in fwloop_install()