Lines Matching refs:ksz_cfg
29 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg() function
65 ksz_cfg(dev, KSZ8863_REG_SW_RESET, in ksz8_reset_switch()
67 ksz_cfg(dev, KSZ8863_REG_SW_RESET, in ksz8_reset_switch()
159 ksz_cfg(dev, REG_SW_CTRL_19, SW_OUT_RATE_LIMIT_QUEUE_BASED, in ksz8795_set_prio_queue()
299 ksz_cfg(dev, REG_SW_CTRL_6, BIT(port), true); in ksz8_freeze_mib()
300 ksz_cfg(dev, REG_SW_CTRL_6, SW_MIB_COUNTER_FREEZE, freeze); in ksz8_freeze_mib()
304 ksz_cfg(dev, REG_SW_CTRL_6, BIT(port), false); in ksz8_freeze_mib()
314 ksz_cfg(dev, REG_SW_CTRL_6, BIT(port), true); in ksz8_port_init_cnt()
315 ksz_cfg(dev, REG_SW_CTRL_6, SW_MIB_COUNTER_FLUSH, true); in ksz8_port_init_cnt()
316 ksz_cfg(dev, REG_SW_CTRL_6, BIT(port), false); in ksz8_port_init_cnt()
968 ksz_cfg(dev, S_FLUSH_TABLE_CTRL, SW_FLUSH_DYN_MAC_TABLE, true); in ksz8_flush_dyn_mac_table()
1111 ksz_cfg(dev, S_MIRROR_CTRL, SW_VLAN_ENABLE, flag); in ksz8_port_vlan_filtering()
1124 ksz_cfg(dev, REG_SW_INSERT_SRC_PVID, in ksz8_port_enable_pvid()
1338 ksz_cfg(dev, regs[S_TAIL_TAG_CTRL], masks[SW_TAIL_TAG_ENABLE], true); in ksz8_config_cpu_port()
1410 ksz_cfg(dev, S_REPLACE_VID_CTRL, SW_FLOW_CTRL, true); in ksz8_setup()
1413 ksz_cfg(dev, S_LINK_AGING_CTRL, SW_LINK_AUTO_AGING, true); in ksz8_setup()
1427 ksz_cfg(dev, S_REPLACE_VID_CTRL, SW_REPLACE_VID, false); in ksz8_setup()
1429 ksz_cfg(dev, S_MIRROR_CTRL, SW_MIRROR_RX_TX, false); in ksz8_setup()
1432 ksz_cfg(dev, REG_SW_CTRL_19, SW_INS_TAG_ENABLE, true); in ksz8_setup()