Home
last modified time | relevance | path

Searched refs:spx5_rd (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_impl.c181 read_poll_timeout(spx5_rd, value, in sparx5_vcap_wait_super_update()
191 read_poll_timeout(spx5_rd, value, in sparx5_vcap_wait_es0_update()
201 read_poll_timeout(spx5_rd, value, in sparx5_vcap_wait_es2_update()
1146 keystr[idx] = spx5_rd(sparx5, in sparx5_vcap_is0_cache_read()
1148 mskstr[idx] = ~spx5_rd(sparx5, in sparx5_vcap_is0_cache_read()
1155 actstr[idx] = spx5_rd(sparx5, in sparx5_vcap_is0_cache_read()
1181 keystr[idx] = spx5_rd(sparx5, in sparx5_vcap_is2_cache_read()
1183 mskstr[idx] = ~spx5_rd(sparx5, in sparx5_vcap_is2_cache_read()
1190 actstr[idx] = spx5_rd(sparx5, in sparx5_vcap_is2_cache_read()
1197 spx5_rd(sparx5, ANA_ACL_CNT_A(start)); in sparx5_vcap_is2_cache_read()
[all …]
H A Dsparx5_packet.c72 ifh[i] = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
99 u32 val = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
131 *rxbuf = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
175 val = spx5_rd(sparx5, QS_INJ_STATUS); in sparx5_inject()
215 val = spx5_rd(sparx5, QS_INJ_STATUS); in sparx5_inject()
292 val = spx5_rd(port->sparx5, QS_INJ_STATUS); in sparx5_injection_timeout()
355 while (spx5_rd(s5, QS_XTR_DATA_PRESENT) & BIT(XTR_QUEUE) && poll-- > 0) in sparx5_xtr_handler()
H A Dsparx5_ptp.c290 ts->tv_sec = spx5_rd(sparx5, PTP_PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in sparx5_get_hwtimestamp()
291 curr_nsec = spx5_rd(sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_get_hwtimestamp()
316 val = spx5_rd(sparx5, REW_PTP_TWOSTEP_CTRL); in sparx5_ptp_irq_handler()
334 delay = spx5_rd(sparx5, REW_PTP_TWOSTEP_STAMP); in sparx5_ptp_irq_handler()
344 val = spx5_rd(sparx5, REW_PTP_TWOSTEP_CTRL); in sparx5_ptp_irq_handler()
351 id = spx5_rd(sparx5, REW_PTP_TWOSTEP_STAMP); in sparx5_ptp_irq_handler()
353 id |= spx5_rd(sparx5, REW_PTP_TWOSTEP_STAMP_SUBNS); in sparx5_ptp_irq_handler()
495 s = spx5_rd(sparx5, PTP_PTP_TOD_SEC_MSB(TOD_ACC_PIN)); in sparx5_ptp_gettime64()
497 s |= spx5_rd(sparx5, PTP_PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in sparx5_ptp_gettime64()
498 ns = spx5_rd(sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_ptp_gettime64()
H A Dsparx5_vcap_debugfs.c90 value = spx5_rd(sparx5, in sparx5_vcap_is0_port_keys()
133 value = spx5_rd(sparx5, ANA_ACL_VCAP_S2_CFG(port->portno)); in sparx5_vcap_is2_port_keys()
141 value = spx5_rd(sparx5, in sparx5_vcap_is2_port_keys()
243 value = spx5_rd(sparx5, ANA_ACL_SEC_LOOKUP_STICKY(lookup)); in sparx5_vcap_is2_port_stickies()
299 value = spx5_rd(sparx5, REW_ES0_CTRL); in sparx5_vcap_es0_port_keys()
307 value = spx5_rd(sparx5, REW_RTAG_ETAG_CTRL(port->portno)); in sparx5_vcap_es0_port_keys()
339 value = spx5_rd(sparx5, EACL_VCAP_ES2_KEY_SEL(port->portno, in sparx5_vcap_es2_port_keys()
414 value = spx5_rd(sparx5, EACL_SEC_LOOKUP_STICKY(lookup)); in sparx5_vcap_es2_port_stickies()
H A Dsparx5_mirror.c27 return (u64)spx5_rd(sparx5, ANA_AC_PROBE_PORT_CFG1(idx)) << 32 | in sparx5_mirror_port_get()
28 spx5_rd(sparx5, ANA_AC_PROBE_PORT_CFG(idx)); in sparx5_mirror_port_get()
74 u32 val = spx5_rd(sparx5, ANA_AC_PROBE_CFG(idx)); in sparx5_mirror_dir_get()
99 u32 val = spx5_rd(sparx5, in sparx5_mirror_monitor_get()
H A Dsparx5_sdlb.c28 clk_per_100ps = HSCH_SYS_CLK_PER_100PS_GET(spx5_rd(sparx5, in sparx5_sdlb_clk_hz_get()
77 val = spx5_rd(sparx5, ANA_AC_SDLB_XLB_START(group)); in sparx5_sdlb_group_get_first()
87 val = spx5_rd(sparx5, ANA_AC_SDLB_XLB_NEXT(lb)); in sparx5_sdlb_group_get_next()
108 val = spx5_rd(sparx5, ANA_AC_SDLB_PUP_CTRL(group)); in sparx5_sdlb_group_is_empty()
H A Dsparx5_psfp.c57 return ANA_L2_TSN_CFG_TSN_SFID_GET(spx5_rd(sparx5, in sparx5_psfp_isdx_get_sf()
63 return ANA_L2_DLB_CFG_DLB_IDX_GET(spx5_rd(sparx5, in sparx5_psfp_isdx_get_fm()
69 return ANA_AC_TSN_SF_CFG_TSN_SGID_GET(spx5_rd(sparx5, in sparx5_psfp_sf_get_sg()
90 return spx5_rd(sparx5, ANA_AC_SG_ACCESS_CTRL); in sparx5_psfp_sgid_get_status()
H A Dsparx5_mactable.c46 return spx5_rd(sparx5, LRN_COMMON_ACCESS_CTRL); in sparx5_mact_get_status()
141 cfg2 = spx5_rd(sparx5, LRN_MAC_ACCESS_CFG_2); in sparx5_mact_get()
143 mach = spx5_rd(sparx5, LRN_MAC_ACCESS_CFG_0); in sparx5_mact_get()
144 macl = spx5_rd(sparx5, LRN_MAC_ACCESS_CFG_1); in sparx5_mact_get()
206 cfg2 = spx5_rd(sparx5, LRN_MAC_ACCESS_CFG_2); in sparx5_mact_find()
H A Dsparx5_vlan.c150 portmask[0] = spx5_rd(spx5, ANA_AC_PGID_CFG(pgid)); in sparx5_pgid_read_mask()
151 portmask[1] = spx5_rd(spx5, ANA_AC_PGID_CFG1(pgid)); in sparx5_pgid_read_mask()
152 portmask[2] = spx5_rd(spx5, ANA_AC_PGID_CFG2(pgid)); in sparx5_pgid_read_mask()
H A Dsparx5_fdma.c329 db = spx5_rd(sparx5, FDMA_INTR_DB); in sparx5_fdma_handler()
330 err = spx5_rd(sparx5, FDMA_INTR_ERR); in sparx5_fdma_handler()
338 u32 err_type = spx5_rd(sparx5, FDMA_ERRORS); in sparx5_fdma_handler()
444 return spx5_rd(sparx5, FDMA_PORT_CTRL(0)); in sparx5_fdma_port_ctrl()
H A Dsparx5_qos.c83 value = spx5_rd(sparx5, HSCH_HSCH_TIMER_CFG(layer, group)); in sparx5_lg_get_leak_time()
98 value = spx5_rd(sparx5, HSCH_HSCH_LEAK_CFG(layer, group)); in sparx5_lg_get_first()
108 value = spx5_rd(sparx5, HSCH_SE_CONNECT(idx)); in sparx5_lg_get_next()
394 sys_clk_per_100ps = spx5_rd(sparx5, HSCH_SYS_CLK_PER); in sparx5_leak_groups_init()
H A Dsparx5_port.c87 value = spx5_rd(sparx5, DEV2G5_PCS1G_STICKY(portno)); in sparx5_get_dev2g5_status()
93 value = spx5_rd(sparx5, DEV2G5_PCS1G_LINK_STATUS(portno)); in sparx5_get_dev2g5_status()
105 value = spx5_rd(sparx5, DEV2G5_PCS1G_ANEG_STATUS(portno)); in sparx5_get_dev2g5_status()
113 value = spx5_rd(sparx5, DEV2G5_PCS1G_ANEG_CFG(portno)); in sparx5_get_dev2g5_status()
291 value = spx5_rd(sparx5, in sparx5_port_flush_poll()
H A Dsparx5_ethtool.c214 sparx5_update_counter(stats, spx5_rd(sparx5, XQS_CNT(addr))); in sparx5_get_queue_sys_stats()
218 sparx5_update_counter(stats, spx5_rd(sparx5, XQS_CNT(addr))); in sparx5_get_queue_sys_stats()
222 sparx5_update_counter(stats, spx5_rd(sparx5, XQS_CNT(addr))); in sparx5_get_queue_sys_stats()
224 spx5_rd(sparx5, XQS_CNT(32))); in sparx5_get_queue_sys_stats()
226 spx5_rd(sparx5, XQS_CNT(272))); in sparx5_get_queue_sys_stats()
235 spx5_rd(sparx5, ANA_AC_PORT_STAT_LSB_CNT(portno, in sparx5_get_ana_ac_stats_stats()
H A Dsparx5_calendar.c239 value = spx5_rd(sparx5, QSYS_CAL_CTRL); in sparx5_config_auto_calendar()
555 len = DSM_TAXI_CAL_CFG_CAL_CUR_LEN_GET(spx5_rd(sparx5, in sparx5_dsm_calendar_update()
H A Dsparx5_main.c402 value = spx5_rd(sparx5, HSCH_RESET_CFG); in sparx5_init_switchcore()
854 sparx5->chip_id = spx5_rd(sparx5, GCB_CHIP_ID); in mchp_sparx5_probe()
H A Dsparx5_main.h617 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() function