Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot.c23 static inline u32 ocelot_mact_read_macaccess(struct ocelot *ocelot) in ocelot_mact_read_macaccess()
28 static inline int ocelot_mact_wait_for_completion(struct ocelot *ocelot) in ocelot_mact_wait_for_completion()
39 static void ocelot_mact_select(struct ocelot *ocelot, in ocelot_mact_select()
61 int ocelot_mact_learn(struct ocelot *ocelot, int port, in ocelot_mact_learn()
91 int ocelot_mact_forget(struct ocelot *ocelot, in ocelot_mact_forget()
105 static void ocelot_mact_init(struct ocelot *ocelot) in ocelot_mact_init()
121 static void ocelot_vcap_enable(struct ocelot *ocelot, int port) in ocelot_vcap_enable()
135 static inline u32 ocelot_vlant_read_vlanaccess(struct ocelot *ocelot) in ocelot_vlant_read_vlanaccess()
140 static inline int ocelot_vlant_wait_for_completion(struct ocelot *ocelot) in ocelot_vlant_wait_for_completion()
152 static int ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) in ocelot_vlant_set_mask()
[all …]
Docelot_net.c28 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); in devlink_port_to_port() local
37 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_pool_get() local
47 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_pool_set() local
57 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); in ocelot_devlink_sb_port_pool_get() local
69 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); in ocelot_devlink_sb_port_pool_set() local
82 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); in ocelot_devlink_sb_tc_pool_bind_get() local
97 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); in ocelot_devlink_sb_tc_pool_bind_set() local
108 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_occ_snapshot() local
116 struct ocelot *ocelot = devlink_priv(dl); in ocelot_devlink_sb_occ_max_clear() local
126 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); in ocelot_devlink_sb_occ_port_pool_get() local
[all …]
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()
80 static int ocelot_mrp_copy_add_vcap(struct ocelot *ocelot, int port, in ocelot_mrp_copy_add_vcap()
115 static void ocelot_mrp_save_mac(struct ocelot *ocelot, in ocelot_mrp_save_mac()
124 static void ocelot_mrp_del_mac(struct ocelot *ocelot, in ocelot_mrp_del_mac()
131 int ocelot_mrp_add(struct ocelot *ocelot, int port, in ocelot_mrp_add()
153 int ocelot_mrp_del(struct ocelot *ocelot, int port, in ocelot_mrp_del()
170 int ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port, in ocelot_mrp_add_ring_role()
210 int ocelot_mrp_del_ring_role(struct ocelot *ocelot, int port, in ocelot_mrp_del_ring_role()
Docelot_devlink.c221 static u32 ocelot_wm_read(struct ocelot *ocelot, int index) in ocelot_wm_read()
228 static void ocelot_wm_write(struct ocelot *ocelot, int index, u32 val) in ocelot_wm_write()
235 static void ocelot_wm_status(struct ocelot *ocelot, int index, u32 *inuse, in ocelot_wm_status()
252 static void ocelot_disable_reservation_watermarks(struct ocelot *ocelot, in ocelot_disable_reservation_watermarks()
289 static void ocelot_disable_tc_sharing_watermarks(struct ocelot *ocelot) in ocelot_disable_tc_sharing_watermarks()
301 static void ocelot_get_buf_rsrv(struct ocelot *ocelot, u32 *buf_rsrv_i, in ocelot_get_buf_rsrv()
325 static void ocelot_get_ref_rsrv(struct ocelot *ocelot, u32 *ref_rsrv_i, in ocelot_get_ref_rsrv()
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()
[all …]
Docelot_io.c13 u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset) in __ocelot_read_ix()
26 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) in __ocelot_write_ix()
37 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, in __ocelot_rmw_ix()
52 struct ocelot *ocelot = port->ocelot; in ocelot_port_readl() local
65 struct ocelot *ocelot = port->ocelot; in ocelot_port_writel() local
82 u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_read_ix()
92 void __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_write_ix()
99 int ocelot_regfields_init(struct ocelot *ocelot, in ocelot_regfields_init()
139 struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res) in ocelot_regmap_init()
Docelot_vsc7514.c484 static void ocelot_pll5_init(struct ocelot *ocelot) in ocelot_pll5_init()
513 static int ocelot_chip_init(struct ocelot *ocelot, const struct ocelot_ops *ops) in ocelot_chip_init()
537 struct ocelot *ocelot = arg; in ocelot_xtr_irq_handler() local
563 struct ocelot *ocelot = arg; in ocelot_ptp_rdy_irq_handler() local
576 static int ocelot_reset(struct ocelot *ocelot) in ocelot_reset()
901 static void mscc_ocelot_teardown_devlink_ports(struct ocelot *ocelot) in mscc_ocelot_teardown_devlink_ports()
909 static void mscc_ocelot_release_ports(struct ocelot *ocelot) in mscc_ocelot_release_ports()
928 struct ocelot *ocelot = platform_get_drvdata(pdev); in mscc_ocelot_init_ports() local
1030 struct ocelot *ocelot; in mscc_ocelot_probe() local
1185 struct ocelot *ocelot = platform_get_drvdata(pdev); in mscc_ocelot_remove() local
Docelot_vcap.c49 static u32 vcap_read_update_ctrl(struct ocelot *ocelot, in vcap_read_update_ctrl()
55 static void vcap_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, in vcap_cmd()
82 static void vcap_row_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, in vcap_row_cmd()
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()
330 static void is2_action_set(struct ocelot *ocelot, struct vcap_data *data, in is2_action_set()
344 static void is2_entry_set(struct ocelot *ocelot, int ix, in is2_entry_set()
646 static void is1_action_set(struct ocelot *ocelot, struct vcap_data *data, in is1_action_set()
[all …]
Docelot_ptp.c15 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64() local
50 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64() local
82 struct ocelot *ocelot = container_of(ptp, struct ocelot, in ocelot_ptp_adjtime() local
126 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine() local
188 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_enable() local
305 int ocelot_init_timestamp(struct ocelot *ocelot, in ocelot_init_timestamp()
347 int ocelot_deinit_timestamp(struct ocelot *ocelot) in ocelot_deinit_timestamp()
Docelot_flower.c119 ocelot_find_vcap_filter_that_points_at(struct ocelot *ocelot, int chain) in ocelot_find_vcap_filter_that_points_at()
145 static int ocelot_flower_parse_action(struct ocelot *ocelot, int port, in ocelot_flower_parse_action()
373 static int ocelot_flower_parse_indev(struct ocelot *ocelot, int port, in ocelot_flower_parse_indev()
425 ocelot_flower_parse_key(struct ocelot *ocelot, int port, bool ingress, in ocelot_flower_parse_key()
624 static int ocelot_flower_parse(struct ocelot *ocelot, int port, bool ingress, in ocelot_flower_parse()
642 *ocelot_vcap_filter_create(struct ocelot *ocelot, int port, bool ingress, in ocelot_vcap_filter_create()
664 static int ocelot_vcap_dummy_filter_add(struct ocelot *ocelot, in ocelot_vcap_dummy_filter_add()
672 static int ocelot_vcap_dummy_filter_del(struct ocelot *ocelot, in ocelot_vcap_dummy_filter_del()
681 int ocelot_cls_flower_replace(struct ocelot *ocelot, int port, in ocelot_cls_flower_replace()
714 int ocelot_cls_flower_destroy(struct ocelot *ocelot, int port, in ocelot_cls_flower_destroy()
[all …]
Docelot_police.c23 int qos_policer_conf_set(struct ocelot *ocelot, int port, u32 pol_ix, in qos_policer_conf_set()
157 int ocelot_port_policer_add(struct ocelot *ocelot, int port, in ocelot_port_policer_add()
188 int ocelot_port_policer_del(struct ocelot *ocelot, int port) in ocelot_port_policer_del()
/Linux-v5.15/drivers/net/dsa/ocelot/
Dfelix.c33 struct ocelot *ocelot = &felix->ocelot; in felix_tag_8021q_rxvlan_add() local
79 struct ocelot *ocelot = &felix->ocelot; in felix_tag_8021q_txvlan_add() local
151 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add() local
168 struct ocelot *ocelot = &felix->ocelot; in felix_tag_8021q_rxvlan_del() local
193 struct ocelot *ocelot = &felix->ocelot; in felix_tag_8021q_txvlan_del() local
221 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_del() local
241 static void felix_8021q_cpu_port_init(struct ocelot *ocelot, int port) in felix_8021q_cpu_port_init()
252 static void felix_8021q_cpu_port_deinit(struct ocelot *ocelot, int port) in felix_8021q_cpu_port_deinit()
272 struct ocelot *ocelot = &felix->ocelot; in felix_setup_mmio_filtering() local
364 struct ocelot *ocelot = &felix->ocelot; in felix_teardown_mmio_filtering() local
[all …]
Dfelix_vsc9959.c890 static int vsc9959_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9959_gcb_soft_rst_status()
899 static int vsc9959_sys_ram_init_status(struct ocelot *ocelot) in vsc9959_sys_ram_init_status()
907 static int vsc9959_reset(struct ocelot *ocelot) in vsc9959_reset()
937 static void vsc9959_phylink_validate(struct ocelot *ocelot, int port, in vsc9959_phylink_validate()
974 static int vsc9959_prevalidate_phy_mode(struct ocelot *ocelot, int port, in vsc9959_prevalidate_phy_mode()
1034 static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot) in vsc9959_mdio_bus_alloc()
1123 static void vsc9959_mdio_bus_free(struct ocelot *ocelot) in vsc9959_mdio_bus_free()
1140 static void vsc9959_sched_speed_set(struct ocelot *ocelot, int port, in vsc9959_sched_speed_set()
1169 static void vsc9959_new_base_time(struct ocelot *ocelot, ktime_t base_time, in vsc9959_new_base_time()
1191 static u32 vsc9959_tas_read_cfg_status(struct ocelot *ocelot) in vsc9959_tas_read_cfg_status()
[all …]
Dseville_vsc9953.c862 static int vsc9953_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9953_gcb_soft_rst_status()
871 static int vsc9953_sys_ram_init_status(struct ocelot *ocelot) in vsc9953_sys_ram_init_status()
880 static int vsc9953_gcb_miim_pending_status(struct ocelot *ocelot) in vsc9953_gcb_miim_pending_status()
889 static int vsc9953_gcb_miim_busy_status(struct ocelot *ocelot) in vsc9953_gcb_miim_busy_status()
901 struct ocelot *ocelot = bus->priv; in vsc9953_mdio_write() local
925 struct ocelot *ocelot = bus->priv; in vsc9953_mdio_read() local
961 static int vsc9953_reset(struct ocelot *ocelot) in vsc9953_reset()
993 static void vsc9953_phylink_validate(struct ocelot *ocelot, int port, in vsc9953_phylink_validate()
1027 static int vsc9953_prevalidate_phy_mode(struct ocelot *ocelot, int port, in vsc9953_prevalidate_phy_mode()
1085 static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot) in vsc9953_mdio_bus_alloc()
[all …]
Dfelix.h59 struct ocelot ocelot; member
/Linux-v5.15/include/soc/mscc/
Docelot.h71 #define for_each_unicast_dest_pgid(ocelot, pgid) \ argument
76 #define for_each_nonreserved_multicast_dest_pgid(ocelot, pgid) \ argument
81 #define for_each_aggr_pgid(ocelot, pgid) \ argument
587 struct ocelot *ocelot; member
617 struct ocelot { struct
622 const struct ocelot_ops *ops; argument
626 const struct ocelot_stat_layout *stats_layout; argument
634 struct ocelot_port **ports; argument
652 enum ocelot_tag_prefix npi_inj_prefix; argument
653 enum ocelot_tag_prefix npi_xtr_prefix; argument
[all …]