Lines Matching full:sparx5

2 /* Microchip Sparx5 Switch driver
99 struct sparx5;
168 struct sparx5 *sparx5; member
207 struct sparx5 *sparx5; member
232 struct sparx5 { struct
296 int sparx5_register_notifier_blocks(struct sparx5 *sparx5); argument
297 void sparx5_unregister_notifier_blocks(struct sparx5 *sparx5);
305 void sparx5_xtr_flush(struct sparx5 *sparx5, u8 grp);
309 int sparx5_manual_injection_mode(struct sparx5 *sparx5);
313 int sparx5_fdma_start(struct sparx5 *sparx5);
314 int sparx5_fdma_stop(struct sparx5 *sparx5);
315 int sparx5_fdma_xmit(struct sparx5 *sparx5, u32 *ifh, struct sk_buff *skb);
320 int sparx5_mact_learn(struct sparx5 *sparx5, int port,
322 bool sparx5_mact_getnext(struct sparx5 *sparx5,
324 int sparx5_mact_find(struct sparx5 *sparx5,
326 int sparx5_mact_forget(struct sparx5 *sparx5,
328 int sparx5_add_mact_entry(struct sparx5 *sparx5,
332 int sparx5_del_mact_entry(struct sparx5 *sparx5,
337 void sparx5_set_ageing(struct sparx5 *sparx5, int msecs);
338 void sparx5_mact_init(struct sparx5 *sparx5);
342 void sparx5_pgid_clear(struct sparx5 *spx5, int pgid);
343 void sparx5_pgid_read_mask(struct sparx5 *sparx5, int pgid, u32 portmask[3]);
344 void sparx5_update_fwd(struct sparx5 *sparx5);
345 void sparx5_vlan_init(struct sparx5 *sparx5);
346 void sparx5_vlan_port_setup(struct sparx5 *sparx5, int portno);
350 void sparx5_vlan_port_apply(struct sparx5 *sparx5, struct sparx5_port *port);
353 int sparx5_config_auto_calendar(struct sparx5 *sparx5);
354 int sparx5_config_dsm_calendar(struct sparx5 *sparx5);
358 int sparx_stats_init(struct sparx5 *sparx5);
367 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno);
368 int sparx5_register_netdevs(struct sparx5 *sparx5);
369 void sparx5_destroy_netdevs(struct sparx5 *sparx5);
370 void sparx5_unregister_netdevs(struct sparx5 *sparx5);
373 int sparx5_ptp_init(struct sparx5 *sparx5);
374 void sparx5_ptp_deinit(struct sparx5 *sparx5);
377 void sparx5_ptp_rxtstamp(struct sparx5 *sparx5, struct sk_buff *skb,
392 void sparx5_pgid_init(struct sparx5 *spx5);
393 int sparx5_pgid_alloc_glag(struct sparx5 *spx5, u16 *idx);
394 int sparx5_pgid_alloc_mcast(struct sparx5 *spx5, u16 *idx);
395 int sparx5_pgid_free(struct sparx5 *spx5, u16 idx);
467 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() argument
471 return readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rd()
483 static inline void spx5_wr(u32 val, struct sparx5 *sparx5, in spx5_wr() argument
488 writel(val, spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_wr()
503 static inline void spx5_rmw(u32 val, u32 mask, struct sparx5 *sparx5, in spx5_rmw() argument
510 nval = readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
513 writel(nval, spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
531 static inline void __iomem *spx5_inst_get(struct sparx5 *sparx5, int id, int tinst) in spx5_inst_get() argument
533 return sparx5->regs[id + tinst]; in spx5_inst_get()
536 static inline void __iomem *spx5_reg_get(struct sparx5 *sparx5, in spx5_reg_get() argument
541 return spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_reg_get()