Home
last modified time | relevance | path

Searched refs:lan_rd (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c440 ts->tv_sec = lan_rd(lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in lan966x_get_hwtimestamp()
441 curr_nsec = lan_rd(lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_get_hwtimestamp()
466 val = lan_rd(lan966x, PTP_TWOSTEP_CTRL); in lan966x_ptp_irq_handler()
484 delay = lan_rd(lan966x, PTP_TWOSTEP_STAMP); in lan966x_ptp_irq_handler()
494 val = lan_rd(lan966x, PTP_TWOSTEP_CTRL); in lan966x_ptp_irq_handler()
501 id = lan_rd(lan966x, PTP_TWOSTEP_STAMP); in lan966x_ptp_irq_handler()
549 if (!(lan_rd(lan966x, PTP_PIN_INTR))) in lan966x_ptp_ext_irq_handler()
561 if (!(lan_rd(lan966x, PTP_PIN_INTR) & BIT(pin))) in lan966x_ptp_ext_irq_handler()
572 s = lan_rd(lan966x, PTP_TOD_SEC_MSB(pin)); in lan966x_ptp_ext_irq_handler()
574 s |= lan_rd(lan966x, PTP_TOD_SEC_LSB(pin)); in lan966x_ptp_ext_irq_handler()
[all …]
Dlan966x_main.c210 return lan_rd(lan966x, QS_INJ_STATUS); in lan966x_port_inj_status()
217 if (lan_rd(lan966x, QS_INJ_STATUS) & QS_INJ_STATUS_FIFO_RDY_SET(BIT(grp))) in lan966x_port_inj_ready()
236 val = lan_rd(lan966x, QS_INJ_STATUS); in lan966x_port_ifh_xmit()
526 val = lan_rd(lan966x, ANA_CPU_FWD_CFG(port)); in lan966x_hw_offload()
552 return lan_rd(lan966x, QS_XTR_RD(grp)); in lan966x_port_xtr_status()
571 val = lan_rd(lan966x, QS_XTR_RD(grp)); in lan966x_rx_frame_word()
587 val = lan_rd(lan966x, QS_XTR_RD(grp)); in lan966x_rx_frame_word()
589 *rval = lan_rd(lan966x, QS_XTR_RD(grp)); in lan966x_rx_frame_word()
595 *rval = lan_rd(lan966x, QS_XTR_RD(grp)); in lan966x_rx_frame_word()
644 if (!(lan_rd(lan966x, QS_XTR_DATA_PRESENT) & BIT(grp))) in lan966x_xtr_irq_handler()
[all …]
Dlan966x_vcap_debugfs.c18 val = lan_rd(lan966x, ANA_VCAP_CFG(port->chip_port)); in lan966x_vcap_is1_port_keys()
28 val = lan_rd(lan966x, ANA_VCAP_S1_CFG(port->chip_port, l)); in lan966x_vcap_is1_port_keys()
135 val = lan_rd(lan966x, ANA_VCAP_S2_CFG(port->chip_port)); in lan966x_vcap_is2_port_keys()
205 val = lan_rd(lan966x, REW_PORT_CFG(port->chip_port)); in lan966x_vcap_es0_port_keys()
Dlan966x_vcap_impl.c64 return lan_rd(cb->lan966x, VCAP_UPDATE_CTRL(cb->instance)); in lan966x_vcap_read_update_ctrl()
132 val = lan_rd(lan966x, ANA_VCAP_S1_CFG(port->chip_port, lookup)); in lan966x_vcap_is1_get_port_keysets()
193 val = lan_rd(lan966x, ANA_VCAP_S2_CFG(port->chip_port)); in lan966x_vcap_is2_get_port_keysets()
408 counter = lan_rd(lan966x, SYS_CNT(LAN966X_STAT_ESDX_GRN_PKTS)) + in lan966x_es0_read_esdx_counter()
409 lan_rd(lan966x, SYS_CNT(LAN966X_STAT_ESDX_YEL_PKTS)); in lan966x_es0_read_esdx_counter()
489 lan_rd(lan966x, VCAP_ENTRY_DAT(instance, i)); in lan966x_vcap_cache_read()
491 ~lan_rd(lan966x, VCAP_MASK_DAT(instance, i)); in lan966x_vcap_cache_read()
498 lan_rd(lan966x, VCAP_ACTION_DAT(instance, i)); in lan966x_vcap_cache_read()
502 lan_rd(lan966x, VCAP_CNT_DAT(instance, 0)); in lan966x_vcap_cache_read()
Dlan966x_mac.c37 return lan_rd(lan966x, ANA_MACACCESS); in lan966x_mac_get_status()
258 return ANA_MACACCESS_VALID_GET(lan_rd(lan966x, ANA_MACACCESS)); in lan966x_mac_lookup()
549 val = lan_rd(lan966x, ANA_MACTINDX); in lan966x_mac_irq_handler()
572 entry[column].mach = lan_rd(lan966x, ANA_MACHDATA); in lan966x_mac_irq_handler()
573 entry[column].macl = lan_rd(lan966x, ANA_MACLDATA); in lan966x_mac_irq_handler()
574 entry[column].maca = lan_rd(lan966x, ANA_MACACCESS); in lan966x_mac_irq_handler()
Dlan966x_port.c39 val = lan_rd(lan966x, AFI_PORT_FRM_OUT(port->chip_port)); in lan966x_port_link_down()
103 val = lan_rd(lan966x, QSYS_SW_STATUS(port->chip_port)); in lan966x_port_link_down()
296 val = lan_rd(lan966x, DEV_PCS1G_STICKY(port->chip_port)); in lan966x_port_status_get()
302 val = lan_rd(lan966x, DEV_PCS1G_LINK_STATUS(port->chip_port)); in lan966x_port_status_get()
308 val = lan_rd(lan966x, DEV_PCS1G_ANEG_STATUS(port->chip_port)); in lan966x_port_status_get()
Dlan966x_fdma.c48 return lan_rd(lan966x, FDMA_CH_ACTIVE); in lan966x_fdma_channel_active()
155 mask = lan_rd(lan966x, FDMA_INTR_DB_ENA); in lan966x_fdma_rx_start()
255 mask = lan_rd(lan966x, FDMA_INTR_DB_ENA); in lan966x_fdma_tx_activate()
549 db = lan_rd(lan966x, FDMA_INTR_DB); in lan966x_fdma_irq_handler()
550 err = lan_rd(lan966x, FDMA_INTR_ERR); in lan966x_fdma_irq_handler()
560 err_type = lan_rd(lan966x, FDMA_ERRORS); in lan966x_fdma_irq_handler()
797 mtu = lan_rd(lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_fdma_get_max_mtu()
807 return lan_rd(lan966x, QSYS_SW_STATUS(CPU_PORT)); in lan966x_qsys_sw_status()
Dlan966x_switchdev.c16 flood_mask_ip = lan_rd(lan966x, ANA_PGID(pgid_ip)); in lan966x_port_set_mcast_ip_flood()
25 flood_mask = lan_rd(lan966x, ANA_PGID(PGID_MC)); in lan966x_port_set_mcast_ip_flood()
44 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_MC)); in lan966x_port_set_mcast_flood()
65 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_UC)); in lan966x_port_set_ucast_flood()
81 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_BC)); in lan966x_port_set_bcast_flood()
Dlan966x_taprio.c51 val = lan_rd(lan966x, QSYS_TAS_LST); in lan966x_taprio_list_state_get()
288 base = lan_rd(lan966x, QSYS_TAS_LIST_CFG); in lan966x_taprio_gcl_free_get()
300 next = lan_rd(lan966x, QSYS_TAS_GCL_CT_CFG2); in lan966x_taprio_gcl_free_get()
Dlan966x_vlan.c12 return lan_rd(lan966x, ANA_VLANACCESS); in lan966x_vlan_get_status()
Dlan966x_lag.c67 ac = lan_rd(lan966x, ANA_PGID(i)); in lan966x_lag_set_aggr_pgids()
Dlan966x_main.h708 static inline u32 lan_rd(struct lan966x *lan966x, int id, int tinst, int tcnt, in lan_rd() function
Dlan966x_ethtool.c309 lan_rd(lan966x, SYS_CNT(offset))); in lan966x_stats_update()