Home
last modified time | relevance | path

Searched refs:lan_rmw (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_port.c31 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 …]
Dlan966x_taprio.c60 lan_rmw(QSYS_TAS_CFG_CTRL_LIST_NUM_SET(list), in lan966x_taprio_list_index_state_get()
72 lan_rmw(QSYS_TAS_LST_LIST_STATE_SET(state), in lan966x_taprio_list_state_set()
296 lan_rmw(QSYS_TAS_CFG_CTRL_GCL_ENTRY_NUM_SET(next), in lan966x_taprio_gcl_free_get()
339 lan_rmw(QSYS_TAS_CFG_CTRL_LIST_NUM_SET(list), in lan966x_taprio_gcl_setup()
345 lan_rmw(QSYS_TAS_LIST_CFG_LIST_BASE_ADDR_SET(base), in lan966x_taprio_gcl_setup()
352 lan_rmw(QSYS_TAS_CFG_CTRL_GCL_ENTRY_NUM_SET(next), in lan966x_taprio_gcl_setup()
434 lan_rmw(QSYS_TAS_PROFILE_CFG_LINK_SPEED_SET(taprio_speed), in lan966x_taprio_speed_set()
476 lan_rmw(QSYS_TAS_STARTUP_CFG_OBSOLETE_IDX_SET(obs_list), in lan966x_taprio_add()
481 lan_rmw(QSYS_TAS_LST_LIST_STATE_SET(LAN966X_TAPRIO_STATE_ADVANCING), in lan966x_taprio_add()
506 lan_rmw(QSYS_TAS_CFG_CTRL_LIST_NUM_MAX_SET(num_taprio_lists) | in lan966x_taprio_init()
[all …]
Dlan966x_vlan.c34 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()
172 lan_rmw(DEV_MAC_TAGS_CFG_VLAN_AWR_ENA_SET(port->vlan_aware) | in lan966x_vlan_port_apply()
201 lan_rmw(val, in lan966x_vlan_port_apply()
206 lan_rmw(REW_PORT_VLAN_CFG_PORT_TPID_SET(ETH_P_8021Q) | in lan966x_vlan_port_apply()
288 lan_rmw(ANA_VLANACCESS_VLAN_TBL_CMD_SET(VLANACCESS_CMD_INIT), in lan966x_vlan_init()
Dlan966x_ptp.c217 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()
477 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_SAVE) | in lan966x_ptp_gettime64()
515 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_IDLE) | in lan966x_ptp_adjtime()
527 lan_rmw(PTP_PIN_CFG_PIN_ACTION_SET(PTP_PIN_ACTION_DELTA) | in lan966x_ptp_adjtime()
[all …]
Dlan966x_fdma.c150 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 …]
Dlan966x_main.c175 lan_rmw(ANA_PORT_CFG_LEARNAUTO_SET(1) | in lan966x_port_open()
847 lan_rmw(ANA_ADVLEARN_VLAN_CHK_SET(1), in lan966x_init()
871 lan_rmw(QS_INJ_CTRL_GAP_SIZE_SET(0), in lan966x_init()
889 lan_rmw(ANA_FLOODING_FLD_MULTICAST_SET(PGID_MC) | in lan966x_init()
899 lan_rmw(ANA_PGID_CFG_OBEY_VLAN_SET(1), in lan966x_init()
905 lan_rmw(ANA_PGID_PGID_SET(0x0), in lan966x_init()
928 lan_rmw(ANA_PGID_PGID_SET(0), in lan966x_init()
931 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT)), in lan966x_init()
936 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
941 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init()
[all …]
Dlan966x_cbs.c38 lan_rmw(QSYS_SE_CFG_SE_AVB_ENA_SET(1) | in lan966x_cbs_add()
59 lan_rmw(QSYS_SE_CFG_SE_AVB_ENA_SET(1) | in lan966x_cbs_del()
Dlan966x_switchdev.c36 lan_rmw(ANA_PGID_PGID_SET(flood_mask_ip), in lan966x_port_set_mcast_ip_flood()
52 lan_rmw(ANA_PGID_PGID_SET(val), in lan966x_port_set_mcast_flood()
73 lan_rmw(ANA_PGID_PGID_SET(val), in lan966x_port_set_ucast_flood()
89 lan_rmw(ANA_PGID_PGID_SET(val), in lan966x_port_set_bcast_flood()
96 lan_rmw(ANA_PORT_CFG_LEARN_ENA_SET(enabled), in lan966x_port_set_learning()
170 lan_rmw(ANA_PORT_CFG_LEARN_ENA_SET(learn_ena), in lan966x_port_stp_state_set()
196 lan_rmw(ANA_CPU_FWD_CFG_IGMP_REDIR_ENA_SET(mcast_ena) | in lan966x_port_mc_set()
Dlan966x_tbf.c42 lan_rmw(QSYS_SE_CFG_SE_AVB_ENA_SET(0) | in lan966x_tbf_add()
74 lan_rmw(QSYS_SE_CFG_SE_AVB_ENA_SET(0) | in lan966x_tbf_del()
Dlan966x_ets.c68 lan_rmw(QSYS_SE_CFG_SE_DWRR_CNT_SET(count) | in lan966x_ets_add()
89 lan_rmw(QSYS_SE_CFG_SE_DWRR_CNT_SET(0) | in lan966x_ets_del()
Dlan966x_mirror.c47 lan_rmw(ANA_PORT_CFG_SRC_MIRROR_ENA_SET(1), in lan966x_mirror_port_add()
80 lan_rmw(ANA_PORT_CFG_SRC_MIRROR_ENA_SET(0), in lan966x_mirror_port_del()
Dlan966x_police.c165 lan_rmw(ANA_POL_CFG_PORT_POL_ENA_SET(1) | in lan966x_police_port_add()
204 lan_rmw(ANA_POL_CFG_PORT_POL_ENA_SET(0) | in lan966x_police_port_del()
Dlan966x_mdb.c289 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()
Dlan966x_mac.c188 lan_rmw(ANA_AUTOAGE_AGE_PERIOD_SET(ageing / 2), in lan966x_mac_set_ageing()
544 lan_rmw(ANA_MACACCESS_MAC_TABLE_CMD_SET(MACACCESS_CMD_SYNC_GET_NEXT), in lan966x_mac_irq_handler()
587 lan_rmw(ANA_ANAINTR_INTR_SET(0), in lan966x_mac_irq_handler()
Dlan966x_phylink.c79 lan_rmw(DEV_CLOCK_CFG_PCS_RX_RST_SET(0) | in lan966x_phylink_mac_link_down()
Dlan966x_lag.c106 lan_rmw(ANA_PORT_CFG_PORTID_VAL_SET(lag_id), in lan966x_lag_set_port_ids()
Dlan966x_main.h563 static inline void lan_rmw(u32 val, u32 mask, struct lan966x *lan966x, in lan_rmw() function
/linux-6.1.9/drivers/phy/microchip/
Dlan966x_serdes.c26 #define lan_rmw(val, mask, reg, off) \ macro
187 lan_rmw(HSIO_SD_CFG_LANE_10BIT_SEL_SET(res_struct->lane_10bit_sel) | in lan966x_sd6g40_reg_cfg()
205 lan_rmw(HSIO_MPLL_CFG_MPLL_MULTIPLIER_SET(res_struct->mpll_multiplier) | in lan966x_sd6g40_reg_cfg()
211 lan_rmw(HSIO_SD_CFG_RX_TERM_EN_SET(res_struct->rx_term_en), in lan966x_sd6g40_reg_cfg()
215 lan_rmw(HSIO_MPLL_CFG_REF_SSP_EN_SET(1), in lan966x_sd6g40_reg_cfg()
221 lan_rmw(HSIO_SD_CFG_PHY_RESET_SET(0), in lan966x_sd6g40_reg_cfg()
227 lan_rmw(HSIO_MPLL_CFG_MPLL_EN_SET(1), in lan966x_sd6g40_reg_cfg()
242 lan_rmw(HSIO_SD_CFG_TX_CM_EN_SET(1), in lan966x_sd6g40_reg_cfg()
257 lan_rmw(HSIO_SD_CFG_RX_PLL_EN_SET(1) | in lan966x_sd6g40_reg_cfg()
285 lan_rmw(HSIO_SD_CFG_TX_DATA_EN_SET(1) | in lan966x_sd6g40_reg_cfg()
[all …]