/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_vcap_impl.c | 83 lan_wr(VCAP_MV_CFG_MV_NUM_POS_SET(0) | in __lan966x_vcap_range_init() 87 lan_wr(VCAP_UPDATE_CTRL_UPDATE_CMD_SET(VCAP_CMD_INITIALIZE) | in __lan966x_vcap_range_init() 407 lan_wr(SYS_STAT_CFG_STAT_VIEW_SET(id), lan966x, SYS_STAT_CFG); in lan966x_es0_read_esdx_counter() 421 lan_wr(SYS_STAT_CFG_STAT_VIEW_SET(id), lan966x, SYS_STAT_CFG); in lan966x_es0_write_esdx_counter() 422 lan_wr(0, lan966x, SYS_CNT(LAN966X_STAT_ESDX_GRN_BYTES)); in lan966x_es0_write_esdx_counter() 423 lan_wr(admin->cache.counter, lan966x, in lan966x_es0_write_esdx_counter() 425 lan_wr(0, lan966x, SYS_CNT(LAN966X_STAT_ESDX_YEL_BYTES)); in lan966x_es0_write_esdx_counter() 426 lan_wr(0, lan966x, SYS_CNT(LAN966X_STAT_ESDX_YEL_PKTS)); in lan966x_es0_write_esdx_counter() 447 lan_wr(keystr[i] & mskstr[i], lan966x, in lan966x_vcap_cache_write() 449 lan_wr(~mskstr[i], lan966x, in lan966x_vcap_cache_write() [all …]
|
D | lan966x_port.c | 177 lan_wr(config->duplex | mode, in lan966x_port_link_up() 208 lan_wr(ANA_PFC_CFG_FC_LINK_SPEED_SET(speed), in lan966x_port_link_up() 220 lan_wr(SYS_PAUSE_CFG_PAUSE_ENA_SET(1) | in lan966x_port_link_up() 226 lan_wr(0, lan966x, DEV_FC_MAC_LOW_CFG(port->chip_port)); in lan966x_port_link_up() 227 lan_wr(0, lan966x, DEV_FC_MAC_HIGH_CFG(port->chip_port)); in lan966x_port_link_up() 250 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x, in lan966x_port_link_up() 252 lan_wr(lan966x_wm_enc(atop_wm), lan966x, SYS_ATOP_TOT_CFG); in lan966x_port_link_up() 256 lan_wr(DEV_MAC_ENA_CFG_RX_ENA_SET(1) | in lan966x_port_link_up() 261 lan_wr(DEV_CLOCK_CFG_LINK_SPEED_SET(speed), in lan966x_port_link_up() 265 lan_wr(QSYS_SW_PORT_MODE_PORT_ENA_SET(1) | in lan966x_port_link_up() [all …]
|
D | lan966x_taprio.c | 140 lan_wr(QSYS_TAS_GS_CTRL_HSCH_POS_SET(port->chip_port), in lan966x_taprio_list_shutdown() 143 lan_wr(QSYS_TAS_GATE_STATE_TAS_GATE_STATE_SET(0xff), in lan966x_taprio_list_shutdown() 315 lan_wr(QSYS_TAS_GCL_CT_CFG_GATE_STATE_SET(entry->gate_mask) | in lan966x_taprio_gcl_setup_entry() 320 lan_wr(QSYS_TAS_GCL_CT_CFG2_PORT_PROFILE_SET(port->chip_port) | in lan966x_taprio_gcl_setup_entry() 324 lan_wr(entry->interval, lan966x, QSYS_TAS_GCL_TM_CFG); in lan966x_taprio_gcl_setup_entry() 465 lan_wr(QSYS_TAS_BT_NSEC_NSEC_SET(ts.tv_nsec), in lan966x_taprio_add() 468 lan_wr(lower_32_bits(ts.tv_sec), in lan966x_taprio_add() 471 lan_wr(QSYS_TAS_BT_SEC_MSB_SEC_MSB_SET(upper_32_bits(ts.tv_sec)), in lan966x_taprio_add() 474 lan_wr(qopt->cycle_time, lan966x, QSYS_TAS_CT_CFG); in lan966x_taprio_add() 498 lan_wr(QSYS_TAS_STM_CFG_REVISIT_DLY_SET((256 * 1000) / in lan966x_taprio_init()
|
D | lan966x_main.c | 242 lan_wr(QS_INJ_CTRL_GAP_SIZE_SET(1) | in lan966x_port_ifh_xmit() 253 lan_wr((__force u32)ifh[i], lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 265 lan_wr(((u32 *)skb->data)[i], lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 275 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 280 lan_wr(QS_INJ_CTRL_GAP_SIZE_SET(1) | in lan966x_port_ifh_xmit() 287 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 403 lan_wr(DEV_MAC_MAXLEN_CFG_MAX_LEN_SET(LAN966X_HW_MTU(new_mtu)), in lan966x_port_change_mtu() 412 lan_wr(DEV_MAC_MAXLEN_CFG_MAX_LEN_SET(LAN966X_HW_MTU(old_mtu)), in lan966x_port_change_mtu() 891 lan_wr(lan_rd(lan966x, QS_XTR_FLUSH) | in lan966x_init() 899 lan_wr(lan_rd(lan966x, QS_XTR_FLUSH) & in lan966x_init() [all …]
|
D | lan966x_police.c | 35 lan_wr(ANA_POL_MODE_DROP_ON_YELLOW_ENA_SET(0) | in lan966x_police_add() 42 lan_wr(ANA_POL_PIR_STATE_PIR_LVL_SET(0), in lan966x_police_add() 45 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(pol->rate) | in lan966x_police_add() 56 lan_wr(ANA_POL_MODE_DROP_ON_YELLOW_ENA_SET(0) | in lan966x_police_del() 63 lan_wr(ANA_POL_PIR_STATE_PIR_LVL_SET(0), in lan966x_police_del() 66 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(GENMASK(14, 0)) | in lan966x_police_del()
|
D | lan966x_lag.c | 14 lan_wr(ANA_PGID_PGID_SET(BIT(p)), in lan966x_lag_set_aggr_pgids() 18 lan_wr(ANA_PGID_PGID_SET(visited), in lan966x_lag_set_aggr_pgids() 58 lan_wr(ANA_PGID_PGID_SET(bond_mask), in lan966x_lag_set_aggr_pgids() 74 lan_wr(ANA_PGID_PGID_SET(ac), in lan966x_lag_set_aggr_pgids() 236 lan_wr(ANA_AGGR_CFG_AC_DMAC_ENA_SET(1) | in lan966x_lag_port_prechangeupper() 241 lan_wr(ANA_AGGR_CFG_AC_IP6_TCPUDP_ENA_SET(1) | in lan966x_lag_port_prechangeupper() 247 lan_wr(ANA_AGGR_CFG_AC_DMAC_ENA_SET(1) | in lan966x_lag_port_prechangeupper()
|
D | lan966x_mirror.c | 44 lan_wr(BIT(monitor_port->chip_port), lan966x, ANA_MIRRORPORTS); in lan966x_mirror_port_add() 51 lan_wr(lan966x->mirror_mask[0], lan966x, in lan966x_mirror_port_add() 84 lan_wr(lan966x->mirror_mask[0], lan966x, in lan966x_mirror_port_del() 92 lan_wr(0, lan966x, ANA_MIRRORPORTS); in lan966x_mirror_port_del()
|
D | lan966x_ptp.c | 569 lan_wr(BIT(pin), lan966x, PTP_PIN_INTR); in lan966x_ptp_ext_irq_handler() 629 lan_wr((u32)tod_inc & 0xFFFFFFFF, lan966x, in lan966x_ptp_adjfine() 631 lan_wr((u32)(tod_inc >> 32), lan966x, in lan966x_ptp_adjfine() 662 lan_wr(PTP_TOD_SEC_MSB_TOD_SEC_MSB_SET(upper_32_bits(ts->tv_sec)), in lan966x_ptp_settime64() 664 lan_wr(lower_32_bits(ts->tv_sec), in lan966x_ptp_settime64() 666 lan_wr(ts->tv_nsec, lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_ptp_settime64() 738 lan_wr(PTP_TOD_NSEC_TOD_NSEC_SET(delta), in lan966x_ptp_adjtime() 870 lan_wr(PTP_WF_LOW_PERIOD_PIN_WFL(ts_phase.tv_nsec), in lan966x_ptp_perout() 872 lan_wr(PTP_WF_HIGH_PERIOD_PIN_WFH(wf_high), in lan966x_ptp_perout() 892 lan_wr(PTP_WF_LOW_PERIOD_PIN_WFL(wf_low), in lan966x_ptp_perout() [all …]
|
D | lan966x_vlan.c | 188 lan_wr(val, lan966x, ANA_DROP_CFG(port->chip_port)); in lan966x_vlan_port_apply() 310 lan_wr(ANA_VLAN_CFG_VLAN_VID_SET(0) | in lan966x_vlan_init() 316 lan_wr(GENMASK(lan966x->num_phys_ports, 0), in lan966x_vlan_init() 320 lan_wr(0, lan966x, REW_PORT_VLAN_CFG(port)); in lan966x_vlan_init() 321 lan_wr(0, lan966x, REW_TAG_CFG(port)); in lan966x_vlan_init()
|
D | lan966x_mac.c | 69 lan_wr(macl, lan966x, ANA_MACLDATA); in lan966x_mac_select() 70 lan_wr(mach, lan966x, ANA_MACHDATA); in lan966x_mac_select() 84 lan_wr(ANA_MACACCESS_VALID_SET(1) | in __lan966x_mac_learn_locked() 154 lan_wr(ANA_MACACCESS_ENTRYTYPE_SET(type) | in lan966x_mac_forget_locked() 196 lan_wr(MACACCESS_CMD_INIT, lan966x, ANA_MACACCESS); in lan966x_mac_init() 249 lan_wr(ANA_MACACCESS_ENTRYTYPE_SET(type) | in lan966x_mac_lookup() 538 lan_wr(ANA_MACTINDX_M_INDEX_SET(0) | in lan966x_mac_irq_handler()
|
D | lan966x_cbs.c | 44 lan_wr(QSYS_CIR_CFG_CIR_RATE_SET(cir) | in lan966x_cbs_add() 65 lan_wr(QSYS_CIR_CFG_CIR_RATE_SET(0) | in lan966x_cbs_del()
|
D | lan966x_fdma.c | 138 lan_wr(lower_32_bits((u64)fdma->dma), lan966x, in lan966x_fdma_rx_start() 140 lan_wr(upper_32_bits((u64)fdma->dma), lan966x, in lan966x_fdma_rx_start() 143 lan_wr(FDMA_CH_CFG_CH_DCB_DB_CNT_SET(fdma->n_dbs) | in lan966x_fdma_rx_start() 238 lan_wr(lower_32_bits((u64)fdma->dma), lan966x, in lan966x_fdma_tx_activate() 240 lan_wr(upper_32_bits((u64)fdma->dma), lan966x, in lan966x_fdma_tx_activate() 243 lan_wr(FDMA_CH_CFG_CH_DCB_DB_CNT_SET(fdma->n_dbs) | in lan966x_fdma_tx_activate() 539 lan_wr(0xff, lan966x, FDMA_INTR_DB_ENA); in lan966x_fdma_napi_poll() 553 lan_wr(0, lan966x, FDMA_INTR_DB_ENA); in lan966x_fdma_irq_handler() 554 lan_wr(db, lan966x, FDMA_INTR_DB); in lan966x_fdma_irq_handler() 564 lan_wr(err, lan966x, FDMA_INTR_ERR); in lan966x_fdma_irq_handler() [all …]
|
D | lan966x_tbf.c | 48 lan_wr(QSYS_CIR_CFG_CIR_RATE_SET(cir) | in lan966x_tbf_add() 80 lan_wr(QSYS_CIR_CFG_CIR_RATE_SET(0) | in lan966x_tbf_del()
|
D | lan966x_ets.c | 64 lan_wr(lan966x_ets_hw_cost(w_min, params->weights[i]), in lan966x_ets_add() 87 lan_wr(0, lan966x, QSYS_SE_DWRR_CFG(se_idx, i)); in lan966x_ets_del()
|
D | lan966x_switchdev.c | 151 lan_wr(ANA_PGID_PGID_SET(mask), in lan966x_update_fwd_mask()
|
D | lan966x_main.h | 716 static inline void lan_wr(u32 val, struct lan966x *lan966x, in lan_wr() function
|
D | lan966x_ethtool.c | 302 lan_wr(SYS_STAT_CFG_STAT_VIEW_SET(i), in lan966x_stats_update()
|