Lines Matching refs:ctrl_addr
123 u16 ctrl_addr; in ksz8795_r_mib_cnt() local
128 ctrl_addr = addr + SWITCH_COUNTER_NUM * port; in ksz8795_r_mib_cnt()
129 ctrl_addr |= IND_ACC_TABLE(TABLE_MIB | TABLE_READ); in ksz8795_r_mib_cnt()
132 ksz_write16(dev, REG_IND_CTRL_0, ctrl_addr); in ksz8795_r_mib_cnt()
154 u16 ctrl_addr; in ksz8795_r_mib_pkt() local
160 ctrl_addr = (KS_MIB_TOTAL_RX_1 - KS_MIB_TOTAL_RX_0) * port; in ksz8795_r_mib_pkt()
161 ctrl_addr += addr + KS_MIB_TOTAL_RX_0; in ksz8795_r_mib_pkt()
162 ctrl_addr |= IND_ACC_TABLE(TABLE_MIB | TABLE_READ); in ksz8795_r_mib_pkt()
165 ksz_write16(dev, REG_IND_CTRL_0, ctrl_addr); in ksz8795_r_mib_pkt()
241 u16 ctrl_addr; in ksz8795_r_table() local
243 ctrl_addr = IND_ACC_TABLE(table | TABLE_READ) | addr; in ksz8795_r_table()
246 ksz_write16(dev, REG_IND_CTRL_0, ctrl_addr); in ksz8795_r_table()
254 u16 ctrl_addr; in ksz8795_w_table() local
256 ctrl_addr = IND_ACC_TABLE(table) | addr; in ksz8795_w_table()
260 ksz_write16(dev, REG_IND_CTRL_0, ctrl_addr); in ksz8795_w_table()
292 u16 ctrl_addr; in ksz8795_r_dyn_mac_table() local
296 ctrl_addr = IND_ACC_TABLE(TABLE_DYNAMIC_MAC | TABLE_READ) | addr; in ksz8795_r_dyn_mac_table()
299 ksz_write16(dev, REG_IND_CTRL_0, ctrl_addr); in ksz8795_r_dyn_mac_table()