Searched refs:lan_wr (Results 1 – 9 of 9) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_port.c | 174 lan_wr(config->duplex | mode, in lan966x_port_link_up() 205 lan_wr(ANA_PFC_CFG_FC_LINK_SPEED_SET(speed), in lan966x_port_link_up() 217 lan_wr(SYS_PAUSE_CFG_PAUSE_ENA_SET(1) | in lan966x_port_link_up() 223 lan_wr(0, lan966x, DEV_FC_MAC_LOW_CFG(port->chip_port)); in lan966x_port_link_up() 224 lan_wr(0, lan966x, DEV_FC_MAC_HIGH_CFG(port->chip_port)); in lan966x_port_link_up() 247 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x, in lan966x_port_link_up() 249 lan_wr(lan966x_wm_enc(atop_wm), lan966x, SYS_ATOP_TOT_CFG); in lan966x_port_link_up() 253 lan_wr(DEV_MAC_ENA_CFG_RX_ENA_SET(1) | in lan966x_port_link_up() 258 lan_wr(DEV_CLOCK_CFG_LINK_SPEED_SET(speed), in lan966x_port_link_up() 262 lan_wr(QSYS_SW_PORT_MODE_PORT_ENA_SET(1) | in lan966x_port_link_up() [all …]
|
D | lan966x_main.c | 239 lan_wr(QS_INJ_CTRL_GAP_SIZE_SET(1) | in lan966x_port_ifh_xmit() 250 lan_wr((__force u32)ifh[i], lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 262 lan_wr(((u32 *)skb->data)[i], lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 272 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 277 lan_wr(QS_INJ_CTRL_GAP_SIZE_SET(1) | in lan966x_port_ifh_xmit() 284 lan_wr(0, lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 388 lan_wr(DEV_MAC_MAXLEN_CFG_MAX_LEN_SET(new_mtu), in lan966x_port_change_mtu() 397 lan_wr(DEV_MAC_MAXLEN_CFG_MAX_LEN_SET(old_mtu), in lan966x_port_change_mtu() 820 lan_wr(lan_rd(lan966x, QS_XTR_FLUSH) | in lan966x_init() 828 lan_wr(lan_rd(lan966x, QS_XTR_FLUSH) & in lan966x_init() [all …]
|
D | lan966x_ptp.c | 354 lan_wr(BIT(pin), lan966x, PTP_PIN_INTR); in lan966x_ptp_ext_irq_handler() 414 lan_wr((u32)tod_inc & 0xFFFFFFFF, lan966x, in lan966x_ptp_adjfine() 416 lan_wr((u32)(tod_inc >> 32), lan966x, in lan966x_ptp_adjfine() 447 lan_wr(PTP_TOD_SEC_MSB_TOD_SEC_MSB_SET(upper_32_bits(ts->tv_sec)), in lan966x_ptp_settime64() 449 lan_wr(lower_32_bits(ts->tv_sec), in lan966x_ptp_settime64() 451 lan_wr(ts->tv_nsec, lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_ptp_settime64() 524 lan_wr(PTP_TOD_NSEC_TOD_NSEC_SET(delta), in lan966x_ptp_adjtime() 656 lan_wr(PTP_WF_LOW_PERIOD_PIN_WFL(ts_phase.tv_nsec), in lan966x_ptp_perout() 658 lan_wr(PTP_WF_HIGH_PERIOD_PIN_WFH(wf_high), in lan966x_ptp_perout() 678 lan_wr(PTP_WF_LOW_PERIOD_PIN_WFL(wf_low), in lan966x_ptp_perout() [all …]
|
D | lan966x_vlan.c | 182 lan_wr(val, lan966x, ANA_DROP_CFG(port->chip_port)); in lan966x_vlan_port_apply() 304 lan_wr(ANA_VLAN_CFG_VLAN_VID_SET(0) | in lan966x_vlan_init() 310 lan_wr(GENMASK(lan966x->num_phys_ports, 0), in lan966x_vlan_init() 314 lan_wr(0, lan966x, REW_PORT_VLAN_CFG(port)); in lan966x_vlan_init() 315 lan_wr(0, lan966x, REW_TAG_CFG(port)); in lan966x_vlan_init()
|
D | lan966x_mac.c | 68 lan_wr(macl, lan966x, ANA_MACLDATA); in lan966x_mac_select() 69 lan_wr(mach, lan966x, ANA_MACHDATA); in lan966x_mac_select() 84 lan_wr(ANA_MACACCESS_VALID_SET(1) | in __lan966x_mac_learn() 132 lan_wr(ANA_MACACCESS_ENTRYTYPE_SET(type) | in lan966x_mac_forget_locked() 174 lan_wr(MACACCESS_CMD_INIT, lan966x, ANA_MACACCESS); in lan966x_mac_init() 225 lan_wr(ANA_MACACCESS_ENTRYTYPE_SET(type) | in lan966x_mac_lookup() 466 lan_wr(ANA_MACTINDX_M_INDEX_SET(0) | in lan966x_mac_irq_handler()
|
D | lan966x_fdma.c | 138 lan_wr(lower_32_bits((u64)rx->dma), lan966x, in lan966x_fdma_rx_start() 140 lan_wr(upper_32_bits((u64)rx->dma), lan966x, in lan966x_fdma_rx_start() 143 lan_wr(FDMA_CH_CFG_CH_DCB_DB_CNT_SET(FDMA_RX_DCB_MAX_DBS) | in lan966x_fdma_rx_start() 263 lan_wr(lower_32_bits((u64)tx->dma), lan966x, in lan966x_fdma_tx_activate() 265 lan_wr(upper_32_bits((u64)tx->dma), lan966x, in lan966x_fdma_tx_activate() 268 lan_wr(FDMA_CH_CFG_CH_DCB_DB_CNT_SET(FDMA_TX_DCB_MAX_DBS) | in lan966x_fdma_tx_activate() 515 lan_wr(0xff, lan966x, FDMA_INTR_DB_ENA); in lan966x_fdma_napi_poll() 529 lan_wr(0, lan966x, FDMA_INTR_DB_ENA); in lan966x_fdma_irq_handler() 530 lan_wr(db, lan966x, FDMA_INTR_DB); in lan966x_fdma_irq_handler() 540 lan_wr(err, lan966x, FDMA_INTR_ERR); in lan966x_fdma_irq_handler() [all …]
|
D | lan966x_main.h | 432 static inline void lan_wr(u32 val, struct lan966x *lan966x, in lan_wr() function
|
D | lan966x_switchdev.c | 148 lan_wr(ANA_PGID_PGID_SET(mask), in lan966x_update_fwd_mask()
|
D | lan966x_ethtool.c | 302 lan_wr(SYS_STAT_CFG_STAT_VIEW_SET(i), in lan966x_stats_update()
|