Lines Matching refs:ctrl_addr

44 	u16 ctrl_addr;  in ksz8_ind_write8()  local
51 ctrl_addr = IND_ACC_TABLE(table) | addr; in ksz8_ind_write8()
54 ret = ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8_ind_write8()
116 u16 ctrl_addr; in ksz8_r_mib_cnt() local
124 ctrl_addr = addr + dev->info->reg_mib_cnt * port; in ksz8_r_mib_cnt()
125 ctrl_addr |= IND_ACC_TABLE(TABLE_MIB | TABLE_READ); in ksz8_r_mib_cnt()
128 ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8_r_mib_cnt()
152 u16 ctrl_addr; in ksz8795_r_mib_pkt() local
161 ctrl_addr = (KSZ8795_MIB_TOTAL_RX_1 - KSZ8795_MIB_TOTAL_RX_0) * port; in ksz8795_r_mib_pkt()
162 ctrl_addr += addr + KSZ8795_MIB_TOTAL_RX_0; in ksz8795_r_mib_pkt()
163 ctrl_addr |= IND_ACC_TABLE(TABLE_MIB | TABLE_READ); in ksz8795_r_mib_pkt()
166 ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8795_r_mib_pkt()
204 u16 ctrl_addr; in ksz8863_r_mib_pkt() local
211 ctrl_addr = addr ? KSZ8863_MIB_PACKET_DROPPED_TX_0 : in ksz8863_r_mib_pkt()
213 ctrl_addr += port; in ksz8863_r_mib_pkt()
214 ctrl_addr |= IND_ACC_TABLE(TABLE_MIB | TABLE_READ); in ksz8863_r_mib_pkt()
217 ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8863_r_mib_pkt()
291 u16 ctrl_addr; in ksz8_r_table() local
295 ctrl_addr = IND_ACC_TABLE(table | TABLE_READ) | addr; in ksz8_r_table()
298 ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8_r_table()
306 u16 ctrl_addr; in ksz8_w_table() local
310 ctrl_addr = IND_ACC_TABLE(table) | addr; in ksz8_w_table()
314 ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8_w_table()
353 u16 ctrl_addr; in ksz8_r_dyn_mac_table() local
361 ctrl_addr = IND_ACC_TABLE(TABLE_DYNAMIC_MAC | TABLE_READ) | addr; in ksz8_r_dyn_mac_table()
364 ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8_r_dyn_mac_table()