/linux-5.19.10/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_port.c | 31 lan_rmw(AFI_PORT_CFG_FC_SKIP_TTI_INJ_SET(1) | in lan966x_port_link_down() 54 lan_rmw(DEV_CLOCK_CFG_PCS_RX_RST_SET(1), in lan966x_port_link_down() 59 lan_rmw(DEV_MAC_ENA_CFG_RX_ENA_SET(0), in lan966x_port_link_down() 64 lan_rmw(QSYS_SW_PORT_MODE_PORT_ENA_SET(0), in lan966x_port_link_down() 69 lan_rmw(QSYS_PORT_MODE_DEQUEUE_DIS_SET(1), in lan966x_port_link_down() 74 lan_rmw(SYS_PAUSE_CFG_PAUSE_ENA_SET(0), in lan966x_port_link_down() 79 lan_rmw(QSYS_SW_PORT_MODE_TX_PFC_ENA_SET(0), in lan966x_port_link_down() 87 lan_rmw(SYS_FRONT_PORT_MODE_HDX_MODE_SET(0), in lan966x_port_link_down() 92 lan_rmw(QSYS_SW_PORT_MODE_AGING_MODE_SET(3), in lan966x_port_link_down() 97 lan_rmw(QSYS_PORT_MODE_DEQUEUE_DIS_SET(0), in lan966x_port_link_down() [all …]
|
D | lan966x_vlan.c | 34 lan_rmw(ANA_VLANTIDX_VLAN_PGID_CPU_DIS_SET(cpu_dis) | in lan966x_vlan_set_mask() 41 lan_rmw(ANA_VLAN_PORT_MASK_VLAN_PORT_MASK_SET(mask), in lan966x_vlan_set_mask() 46 lan_rmw(ANA_VLANACCESS_VLAN_TBL_CMD_SET(VLANACCESS_CMD_WRITE), in lan966x_vlan_set_mask() 167 lan_rmw(val, in lan966x_vlan_port_apply() 195 lan_rmw(val, in lan966x_vlan_port_apply() 200 lan_rmw(REW_PORT_VLAN_CFG_PORT_TPID_SET(ETH_P_8021Q) | in lan966x_vlan_port_apply() 282 lan_rmw(ANA_VLANACCESS_VLAN_TBL_CMD_SET(VLANACCESS_CMD_INIT), in lan966x_vlan_init()
|
D | lan966x_ptp.c | 217 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_SAVE) | in lan966x_get_hwtimestamp() 275 lan_rmw(PTP_TWOSTEP_CTRL_NXT_SET(1), in lan966x_ptp_irq_handler() 300 lan_rmw(PTP_TWOSTEP_CTRL_NXT_SET(1), in lan966x_ptp_irq_handler() 410 lan_rmw(PTP_DOM_CFG_CLKCFG_DIS_SET(1 << BIT(phc->index)), in lan966x_ptp_adjfine() 419 lan_rmw(PTP_DOM_CFG_CLKCFG_DIS_SET(0), in lan966x_ptp_adjfine() 438 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_IDLE) | in lan966x_ptp_settime64() 454 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_LOAD) | in lan966x_ptp_settime64() 478 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_SAVE) | in lan966x_ptp_gettime64() 516 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_IDLE) | in lan966x_ptp_adjtime() 528 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_DELTA) | in lan966x_ptp_adjtime() [all …]
|
D | lan966x_fdma.c | 150 lan_rmw(FDMA_PORT_CTRL_XTR_STOP_SET(0), in lan966x_fdma_rx_start() 158 lan_rmw(FDMA_INTR_DB_ENA_INTR_DB_ENA_SET(mask), in lan966x_fdma_rx_start() 163 lan_rmw(FDMA_CH_ACTIVATE_CH_ACTIVATE_SET(BIT(rx->channel_id)), in lan966x_fdma_rx_start() 174 lan_rmw(FDMA_CH_DISABLE_CH_DISABLE_SET(BIT(rx->channel_id)), in lan966x_fdma_rx_disable() 182 lan_rmw(FDMA_CH_DB_DISCARD_DB_DISCARD_SET(BIT(rx->channel_id)), in lan966x_fdma_rx_disable() 191 lan_rmw(FDMA_CH_RELOAD_CH_RELOAD_SET(BIT(rx->channel_id)), in lan966x_fdma_rx_reload() 275 lan_rmw(FDMA_PORT_CTRL_INJ_STOP_SET(0), in lan966x_fdma_tx_activate() 283 lan_rmw(FDMA_INTR_DB_ENA_INTR_DB_ENA_SET(mask), in lan966x_fdma_tx_activate() 288 lan_rmw(FDMA_CH_ACTIVATE_CH_ACTIVATE_SET(BIT(tx->channel_id)), in lan966x_fdma_tx_activate() 299 lan_rmw(FDMA_CH_DISABLE_CH_DISABLE_SET(BIT(tx->channel_id)), in lan966x_fdma_tx_disable() [all …]
|
D | lan966x_switchdev.c | 38 lan_rmw(ANA_PGID_PGID_SET(flood_mask_ip), in lan966x_port_set_mcast_ip_flood() 54 lan_rmw(ANA_PGID_PGID_SET(val), in lan966x_port_set_mcast_flood() 75 lan_rmw(ANA_PGID_PGID_SET(val), in lan966x_port_set_ucast_flood() 91 lan_rmw(ANA_PGID_PGID_SET(val), in lan966x_port_set_bcast_flood() 98 lan_rmw(ANA_PORT_CFG_LEARN_ENA_SET(enabled), in lan966x_port_set_learning() 167 lan_rmw(ANA_PORT_CFG_LEARN_ENA_SET(learn_ena), in lan966x_port_stp_state_set() 193 lan_rmw(ANA_CPU_FWD_CFG_IGMP_REDIR_ENA_SET(mcast_ena) | in lan966x_port_mc_set()
|
D | lan966x_main.c | 175 lan_rmw(ANA_PORT_CFG_LEARNAUTO_SET(1) | in lan966x_port_open() 839 lan_rmw(ANA_ADVLEARN_VLAN_CHK_SET(1), in lan966x_init() 863 lan_rmw(QS_INJ_CTRL_GAP_SIZE_SET(0), in lan966x_init() 881 lan_rmw(ANA_FLOODING_FLD_MULTICAST_SET(PGID_MC) | in lan966x_init() 891 lan_rmw(ANA_PGID_CFG_OBEY_VLAN_SET(1), in lan966x_init() 897 lan_rmw(ANA_PGID_PGID_SET(0x0), in lan966x_init() 920 lan_rmw(ANA_PGID_PGID_SET(0), in lan966x_init() 923 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT)), in lan966x_init() 928 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 933 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() [all …]
|
D | lan966x_mdb.c | 289 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_add() 346 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_del() 428 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_cpu_copy() 483 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_cpu_remove()
|
D | lan966x_mac.c | 166 lan_rmw(ANA_AUTOAGE_AGE_PERIOD_SET(ageing / 2), in lan966x_mac_set_ageing() 472 lan_rmw(ANA_MACACCESS_MAC_TABLE_CMD_SET(MACACCESS_CMD_SYNC_GET_NEXT), in lan966x_mac_irq_handler() 515 lan_rmw(ANA_ANAINTR_INTR_SET(0), in lan966x_mac_irq_handler()
|
D | lan966x_phylink.c | 75 lan_rmw(DEV_CLOCK_CFG_PCS_RX_RST_SET(0) | in lan966x_phylink_mac_link_down()
|
D | lan966x_main.h | 442 static inline void lan_rmw(u32 val, u32 mask, struct lan966x *lan966x, in lan_rmw() function
|
/linux-5.19.10/drivers/phy/microchip/ |
D | lan966x_serdes.c | 26 #define lan_rmw(val, mask, reg, off) \ macro 176 lan_rmw(HSIO_SD_CFG_LANE_10BIT_SEL_SET(res_struct->lane_10bit_sel) | in lan966x_sd6g40_reg_cfg() 194 lan_rmw(HSIO_MPLL_CFG_MPLL_MULTIPLIER_SET(res_struct->mpll_multiplier) | in lan966x_sd6g40_reg_cfg() 200 lan_rmw(HSIO_SD_CFG_RX_TERM_EN_SET(res_struct->rx_term_en), in lan966x_sd6g40_reg_cfg() 204 lan_rmw(HSIO_MPLL_CFG_REF_SSP_EN_SET(1), in lan966x_sd6g40_reg_cfg() 210 lan_rmw(HSIO_SD_CFG_PHY_RESET_SET(0), in lan966x_sd6g40_reg_cfg() 216 lan_rmw(HSIO_MPLL_CFG_MPLL_EN_SET(1), in lan966x_sd6g40_reg_cfg() 231 lan_rmw(HSIO_SD_CFG_TX_CM_EN_SET(1), in lan966x_sd6g40_reg_cfg() 246 lan_rmw(HSIO_SD_CFG_RX_PLL_EN_SET(1) | in lan966x_sd6g40_reg_cfg() 274 lan_rmw(HSIO_SD_CFG_TX_DATA_EN_SET(1) | in lan966x_sd6g40_reg_cfg() [all …]
|