Home
last modified time | relevance | path

Searched defs:ocelot (Results 1 – 21 of 21) sorted by relevance

/linux-6.3-rc2/drivers/net/ethernet/mscc/
A Docelot.c46 static void ocelot_mact_select(struct ocelot *ocelot, in ocelot_mact_select()
100 int ocelot_mact_learn(struct ocelot *ocelot, int port, in ocelot_mact_learn()
114 int ocelot_mact_forget(struct ocelot *ocelot, in ocelot_mact_forget()
196 static void ocelot_mact_init(struct ocelot *ocelot) in ocelot_mact_init()
390 int ocelot_bridge_num_find(struct ocelot *ocelot, in ocelot_bridge_num_find()
692 static void ocelot_vlan_init(struct ocelot *ocelot) in ocelot_vlan_init()
1257 int ocelot_fdb_dump(struct ocelot *ocelot, int port, in ocelot_fdb_dump()
2559 void ocelot_mirror_put(struct ocelot *ocelot) in ocelot_mirror_put()
2731 int ocelot_reset(struct ocelot *ocelot) in ocelot_reset()
2760 int ocelot_init(struct ocelot *ocelot) in ocelot_init()
[all …]
A Docelot_fdma.c28 static u32 ocelot_fdma_readl(struct ocelot *ocelot, u32 reg) in ocelot_fdma_readl()
97 static u32 ocelot_fdma_read_ch_safe(struct ocelot *ocelot) in ocelot_fdma_read_ch_safe()
123 static bool ocelot_fdma_rx_alloc_page(struct ocelot *ocelot, in ocelot_fdma_rx_alloc_page()
209 static bool ocelot_fdma_check_stop_rx(struct ocelot *ocelot) in ocelot_fdma_check_stop_rx()
235 static void ocelot_fdma_rx_restart(struct ocelot *ocelot) in ocelot_fdma_rx_restart()
554 struct ocelot *ocelot = fdma->ocelot; in ocelot_fdma_napi_poll() local
580 struct ocelot *ocelot = dev_id; in ocelot_fdma_interrupt() local
607 static void ocelot_fdma_send_skb(struct ocelot *ocelot, in ocelot_fdma_send_skb()
743 static int ocelot_fdma_rings_alloc(struct ocelot *ocelot) in ocelot_fdma_rings_alloc()
853 void ocelot_fdma_start(struct ocelot *ocelot) in ocelot_fdma_start()
[all …]
A Docelot_ptp.c19 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64() local
54 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64() local
90 struct ocelot *ocelot = container_of(ptp, struct ocelot, in ocelot_ptp_adjtime() local
138 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine() local
364 static int ocelot_l2_ptp_trap_add(struct ocelot *ocelot, int port) in ocelot_l2_ptp_trap_add()
561 int ocelot_get_ts_info(struct ocelot *ocelot, int port, in ocelot_get_ts_info()
640 int ocelot_port_txtstamp_request(struct ocelot *ocelot, int port, in ocelot_port_txtstamp_request()
685 static void ocelot_get_hwtimestamp(struct ocelot *ocelot, in ocelot_get_hwtimestamp()
723 void ocelot_get_txtstamp(struct ocelot *ocelot) in ocelot_get_txtstamp()
794 int ocelot_init_timestamp(struct ocelot *ocelot, in ocelot_init_timestamp()
[all …]
A Docelot_mrp.c18 static int ocelot_mrp_find_partner_port(struct ocelot *ocelot, in ocelot_mrp_find_partner_port()
36 static int ocelot_mrp_del_vcap(struct ocelot *ocelot, int id) in ocelot_mrp_del_vcap()
50 static int ocelot_mrp_redirect_add_vcap(struct ocelot *ocelot, int src_port, in ocelot_mrp_redirect_add_vcap()
91 static int ocelot_mrp_trap_add(struct ocelot *ocelot, int port) in ocelot_mrp_trap_add()
99 static int ocelot_mrp_trap_del(struct ocelot *ocelot, int port) in ocelot_mrp_trap_del()
106 static void ocelot_mrp_save_mac(struct ocelot *ocelot, in ocelot_mrp_save_mac()
115 static void ocelot_mrp_del_mac(struct ocelot *ocelot, in ocelot_mrp_del_mac()
122 int ocelot_mrp_add(struct ocelot *ocelot, int port, in ocelot_mrp_add()
144 int ocelot_mrp_del(struct ocelot *ocelot, int port, in ocelot_mrp_del()
161 int ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port, in ocelot_mrp_add_ring_role()
[all …]
A Docelot_net.c48 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_pool_get() local
58 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_pool_set() local
119 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_occ_snapshot() local
127 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_occ_max_clear() local
201 struct ocelot *ocelot = priv->port.ocelot; in ocelot_setup_tc_cls_flower() local
225 struct ocelot *ocelot = priv->port.ocelot; in ocelot_setup_tc_cls_matchall_police() local
266 struct ocelot *ocelot = priv->port.ocelot; in ocelot_setup_tc_cls_matchall_mirred() local
306 struct ocelot *ocelot = priv->port.ocelot; in ocelot_del_tc_cls_matchall_police() local
327 struct ocelot *ocelot = priv->port.ocelot; in ocelot_del_tc_cls_matchall_mirred() local
599 struct ocelot *ocelot; member
[all …]
A Docelot_devlink.c221 static u32 ocelot_wm_read(struct ocelot *ocelot, int index) in ocelot_wm_read()
349 static void ocelot_setup_sharing_watermarks(struct ocelot *ocelot) in ocelot_setup_sharing_watermarks()
382 static int ocelot_watermark_validate(struct ocelot *ocelot, in ocelot_watermark_validate()
476 static void ocelot_watermark_init(struct ocelot *ocelot) in ocelot_watermark_init()
601 int ocelot_sb_port_pool_get(struct ocelot *ocelot, int port, in ocelot_sb_port_pool_get()
632 int ocelot_sb_port_pool_set(struct ocelot *ocelot, int port, in ocelot_sb_port_pool_set()
675 int ocelot_sb_tc_pool_bind_get(struct ocelot *ocelot, int port, in ocelot_sb_tc_pool_bind_get()
712 int ocelot_sb_tc_pool_bind_set(struct ocelot *ocelot, int port, in ocelot_sb_tc_pool_bind_set()
818 int ocelot_sb_occ_port_pool_get(struct ocelot *ocelot, int port, in ocelot_sb_occ_port_pool_get()
882 int ocelot_devlink_sb_register(struct ocelot *ocelot) in ocelot_devlink_sb_register()
[all …]
A Docelot_stats.c310 ocelot_get_stats_layout(struct ocelot *ocelot) in ocelot_get_stats_layout()
321 static int ocelot_port_update_stats(struct ocelot *ocelot, int port) in ocelot_port_update_stats()
366 struct ocelot *ocelot = container_of(del_work, struct ocelot, in ocelot_check_stats_work() local
416 void (*cb)(struct ocelot *ocelot, int port, in ocelot_port_stats_run()
518 void ocelot_port_get_pause_stats(struct ocelot *ocelot, int port, in ocelot_port_get_pause_stats()
541 void ocelot_port_get_mm_stats(struct ocelot *ocelot, int port, in ocelot_port_get_mm_stats()
617 void ocelot_port_get_rmon_stats(struct ocelot *ocelot, int port, in ocelot_port_get_rmon_stats()
822 void ocelot_port_get_stats64(struct ocelot *ocelot, int port, in ocelot_port_get_stats64()
887 static int ocelot_prepare_stats_regions(struct ocelot *ocelot) in ocelot_prepare_stats_regions()
934 int ocelot_stats_init(struct ocelot *ocelot) in ocelot_stats_init()
[all …]
A Docelot_io.c13 int __ocelot_bulk_read_ix(struct ocelot *ocelot, u32 reg, u32 offset, void *buf, in __ocelot_bulk_read_ix()
26 u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset) in __ocelot_read_ix()
39 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) in __ocelot_write_ix()
50 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, in __ocelot_rmw_ix()
65 struct ocelot *ocelot = port->ocelot; in ocelot_port_readl() local
78 struct ocelot *ocelot = port->ocelot; in ocelot_port_writel() local
95 u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_read_ix()
105 void __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_write_ix()
112 int ocelot_regfields_init(struct ocelot *ocelot, in ocelot_regfields_init()
152 struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res) in ocelot_regmap_init()
A Docelot_vsc7514.c29 static void ocelot_pll5_init(struct ocelot *ocelot) in ocelot_pll5_init()
58 static int ocelot_chip_init(struct ocelot *ocelot, const struct ocelot_ops *ops) in ocelot_chip_init()
80 struct ocelot *ocelot = arg; in ocelot_xtr_irq_handler() local
106 struct ocelot *ocelot = arg; in ocelot_ptp_rdy_irq_handler() local
145 static void mscc_ocelot_teardown_devlink_ports(struct ocelot *ocelot) in mscc_ocelot_teardown_devlink_ports()
153 static void mscc_ocelot_release_ports(struct ocelot *ocelot) in mscc_ocelot_release_ports()
172 struct ocelot *ocelot = platform_get_drvdata(pdev); in mscc_ocelot_init_ports() local
265 struct ocelot *ocelot; in mscc_ocelot_probe() local
426 struct ocelot *ocelot = platform_get_drvdata(pdev); in mscc_ocelot_remove() local
A Docelot_vcap.c49 static u32 vcap_read_update_ctrl(struct ocelot *ocelot, in vcap_read_update_ctrl()
88 static void vcap_entry2cache(struct ocelot *ocelot, in vcap_entry2cache()
105 static void vcap_cache2entry(struct ocelot *ocelot, in vcap_cache2entry()
123 static void vcap_action2cache(struct ocelot *ocelot, in vcap_action2cache()
148 static void vcap_cache2action(struct ocelot *ocelot, in vcap_cache2action()
345 static void is2_entry_set(struct ocelot *ocelot, int ix, in is2_entry_set()
1183 int ocelot_vcap_filter_add(struct ocelot *ocelot, in ocelot_vcap_filter_add()
1239 int ocelot_vcap_filter_del(struct ocelot *ocelot, in ocelot_vcap_filter_del()
1277 int ocelot_vcap_filter_replace(struct ocelot *ocelot, in ocelot_vcap_filter_replace()
1314 static void ocelot_vcap_init_one(struct ocelot *ocelot, in ocelot_vcap_init_one()
[all …]
A Docelot_flower.c145 ocelot_find_vcap_filter_that_points_at(struct ocelot *ocelot, int chain) in ocelot_find_vcap_filter_that_points_at()
172 ocelot_flower_parse_ingress_vlan_modify(struct ocelot *ocelot, int port, in ocelot_flower_parse_ingress_vlan_modify()
231 static int ocelot_flower_parse_action(struct ocelot *ocelot, int port, in ocelot_flower_parse_action()
520 static int ocelot_flower_parse_indev(struct ocelot *ocelot, int port, in ocelot_flower_parse_indev()
572 ocelot_flower_parse_key(struct ocelot *ocelot, int port, bool ingress, in ocelot_flower_parse_key()
794 *ocelot_vcap_filter_create(struct ocelot *ocelot, int port, bool ingress, in ocelot_vcap_filter_create()
816 static int ocelot_vcap_dummy_filter_add(struct ocelot *ocelot, in ocelot_vcap_dummy_filter_add()
824 static int ocelot_vcap_dummy_filter_del(struct ocelot *ocelot, in ocelot_vcap_dummy_filter_del()
858 int ocelot_cls_flower_replace(struct ocelot *ocelot, int port, in ocelot_cls_flower_replace()
927 int ocelot_cls_flower_destroy(struct ocelot *ocelot, int port, in ocelot_cls_flower_destroy()
[all …]
A Docelot_mm.c52 void ocelot_port_mm_irq(struct ocelot *ocelot, int port) in ocelot_port_mm_irq()
96 int ocelot_port_set_mm(struct ocelot *ocelot, int port, in ocelot_port_set_mm()
149 int ocelot_port_get_mm(struct ocelot *ocelot, int port, in ocelot_port_get_mm()
186 int ocelot_mm_init(struct ocelot *ocelot) in ocelot_mm_init()
A Docelot_police.c23 int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix, in qos_policer_conf_set()
202 int ocelot_port_policer_add(struct ocelot *ocelot, int port, in ocelot_port_policer_add()
233 int ocelot_port_policer_del(struct ocelot *ocelot, int port) in ocelot_port_policer_del()
A Docelot_fdma.h154 struct ocelot *ocelot; member
/linux-6.3-rc2/drivers/net/dsa/ocelot/
A Dfelix.c48 struct ocelot *ocelot = ds->priv; in felix_cpu_port_for_master() local
71 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_rx() local
112 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_del_rx() local
134 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_tx() local
201 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_del_tx() local
308 struct ocelot *ocelot = ds->priv; in felix_update_trapping_destinations() local
411 struct ocelot *ocelot = ds->priv; in felix_tag_npi_setup() local
432 struct ocelot *ocelot = ds->priv; in felix_tag_npi_teardown() local
439 struct ocelot *ocelot = ds->priv; in felix_tag_npi_get_host_fwd_mask() local
449 struct ocelot *ocelot = ds->priv; in felix_tag_npi_change_master() local
[all …]
A Dfelix_vsc9959.c895 static int vsc9959_reset(struct ocelot *ocelot) in vsc9959_reset()
955 static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot) in vsc9959_mdio_bus_alloc()
1050 static void vsc9959_mdio_bus_free(struct ocelot *ocelot) in vsc9959_mdio_bus_free()
1569 struct ocelot *ocelot = ds->priv; in vsc9959_qos_port_cbs_set() local
1631 struct ocelot *ocelot = ds->priv; in vsc9959_port_setup_tc() local
1854 static int vsc9959_psfp_sfi_set(struct ocelot *ocelot, in vsc9959_psfp_sfi_set()
2067 static int vsc9959_psfp_sgi_set(struct ocelot *ocelot, in vsc9959_psfp_sgi_set()
2427 static void vsc9959_update_stats(struct ocelot *ocelot) in vsc9959_update_stats()
2472 static void vsc9959_psfp_init(struct ocelot *ocelot) in vsc9959_psfp_init()
2612 struct ocelot *ocelot = (struct ocelot *)data; in felix_irq_handler() local
[all …]
A Dseville_vsc9953.c784 static int vsc9953_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9953_gcb_soft_rst_status()
793 static int vsc9953_sys_ram_init_status(struct ocelot *ocelot) in vsc9953_sys_ram_init_status()
807 static int vsc9953_reset(struct ocelot *ocelot) in vsc9953_reset()
878 static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot) in vsc9953_mdio_bus_alloc()
942 static void vsc9953_mdio_bus_free(struct ocelot *ocelot) in vsc9953_mdio_bus_free()
986 struct ocelot *ocelot; in seville_probe() local
A Docelot_ext.c68 struct ocelot *ocelot; in ocelot_ext_probe() local
A Dfelix.h85 struct ocelot ocelot; member
/linux-6.3-rc2/include/soc/mscc/
A Docelot.h754 struct ocelot *ocelot; member
792 struct ocelot { struct
797 const struct ocelot_ops *ops; argument
808 struct ocelot_port **ports; argument
827 enum ocelot_tag_prefix npi_inj_prefix; argument
836 struct ocelot_vcap_block block[3]; argument
839 struct ocelot_mirror *mirror; argument
847 spinlock_t stats_lock;
848 u64 *stats;
876 struct ocelot_mm_state *mm; argument
[all …]
A Docelot_vcap.h14 #define OCELOT_VCAP_ES0_TAG_8021Q_RXVLAN(ocelot, port, upstream) ((upstream) << 16 | (port)) argument
15 #define OCELOT_VCAP_IS1_TAG_8021Q_TXVLAN(ocelot, port) (port) argument
16 #define OCELOT_VCAP_IS2_TAG_8021Q_TXVLAN(ocelot, port) (port) argument
17 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port)) argument
18 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2) argument
19 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 1) argument
20 #define OCELOT_VCAP_IS2_IPV4_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 2) argument
21 #define OCELOT_VCAP_IS2_IPV4_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 3) argument
22 #define OCELOT_VCAP_IS2_IPV6_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 4) argument
23 #define OCELOT_VCAP_IS2_IPV6_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 5) argument

Completed in 62 milliseconds