Lines Matching refs:dsa_ksz8xxx_write_reg

47 static void dsa_ksz8xxx_write_reg(const struct ksz8xxx_data *pdev,  in dsa_ksz8xxx_write_reg()  function
126 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_RESET_REG, in dsa_ksz8xxx_soft_reset()
129 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_RESET_REG, KSZ8XXX_RESET_CLEAR); in dsa_ksz8xxx_soft_reset()
187 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_7, p[7]); in dsa_ksz8xxx_write_static_mac_table()
188 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_6, p[6]); in dsa_ksz8xxx_write_static_mac_table()
189 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_5, p[5]); in dsa_ksz8xxx_write_static_mac_table()
190 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_4, p[4]); in dsa_ksz8xxx_write_static_mac_table()
191 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_3, p[3]); in dsa_ksz8xxx_write_static_mac_table()
192 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_2, p[2]); in dsa_ksz8xxx_write_static_mac_table()
193 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_1, p[1]); in dsa_ksz8xxx_write_static_mac_table()
194 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_DATA_0, p[0]); in dsa_ksz8xxx_write_static_mac_table()
196 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_CTRL_0, 0x00); in dsa_ksz8xxx_write_static_mac_table()
197 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_CTRL_1, entry_addr); in dsa_ksz8xxx_write_static_mac_table()
248 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_CTRL_0, 0x10); in dsa_ksz8xxx_read_static_mac_table()
249 dsa_ksz8xxx_write_reg(pdev, KSZ8XXX_REG_IND_CTRL_1, entry_addr); in dsa_ksz8xxx_read_static_mac_table()
279 dsa_ksz8xxx_write_reg(pdev, KSZ8863_CTRL2_PORTn(i), tmp); in dsa_ksz8xxx_switch_setup()
286 dsa_ksz8xxx_write_reg(pdev, KSZ8863_GLOBAL_CTRL1, tmp); in dsa_ksz8xxx_switch_setup()
291 dsa_ksz8xxx_write_reg(pdev, KSZ8863_GLOBAL_CTRL1, tmp); in dsa_ksz8xxx_switch_setup()
296 dsa_ksz8xxx_write_reg(pdev, KSZ8863_GLOBAL_CTRL2, tmp); in dsa_ksz8xxx_switch_setup()
317 dsa_ksz8xxx_write_reg(pdev, KSZ8794_CTRL2_PORTn(i), tmp); in dsa_ksz8xxx_switch_setup()
324 dsa_ksz8xxx_write_reg(pdev, KSZ8794_GLOBAL_CTRL10, tmp); in dsa_ksz8xxx_switch_setup()
329 dsa_ksz8xxx_write_reg(pdev, KSZ8794_GLOBAL_CTRL10, tmp); in dsa_ksz8xxx_switch_setup()
340 dsa_ksz8xxx_write_reg(pdev, KSZ8794_GLOBAL_CTRL2, tmp); in dsa_ksz8xxx_switch_setup()
423 dsa_ksz8xxx_write_reg(pdev, KSZ8794_REG_IND_CTRL_0, indirect_type); in dsa_ksz8794_phy_workaround_0x01()
424 dsa_ksz8xxx_write_reg(pdev, KSZ8794_REG_IND_CTRL_1, indirect_addr); in dsa_ksz8794_phy_workaround_0x01()
425 dsa_ksz8xxx_write_reg(pdev, KSZ8794_IND_BYTE, indirect_data); in dsa_ksz8794_phy_workaround_0x01()
550 dsa_ksz8xxx_write_reg(pdev, KSZ8794_REG_IND_CTRL_0, indirect_type); in dsa_ksz8794_phy_workaround_0x02()
551 dsa_ksz8xxx_write_reg(pdev, KSZ8794_REG_IND_CTRL_1, indirect_addr); in dsa_ksz8794_phy_workaround_0x02()
552 dsa_ksz8xxx_write_reg(pdev, KSZ8794_IND_BYTE, indirect_data); in dsa_ksz8794_phy_workaround_0x02()
563 dsa_ksz8xxx_write_reg(pdev, KSZ8794_REG_IND_CTRL_0, indirect_type); in dsa_ksz8794_phy_workaround_0x04()
564 dsa_ksz8xxx_write_reg(pdev, KSZ8794_REG_IND_CTRL_1, indirect_addr); in dsa_ksz8794_phy_workaround_0x04()
565 dsa_ksz8xxx_write_reg(pdev, KSZ8794_IND_BYTE, indirect_data); in dsa_ksz8794_phy_workaround_0x04()
633 dsa_ksz8xxx_write_reg(pdev, KSZ8794_GLOBAL_CTRL20, tmp); in dsa_ksz8794_set_lowspeed_drivestrength()
759 dsa_ksz8xxx_write_reg(pdev, reg_addr, value); in dsa_ksz8xxx_sw_write_reg()