Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mscc/
H A Docelot.c31 static inline u32 ocelot_mact_read_macaccess(struct ocelot *ocelot) in ocelot_mact_read_macaccess()
37 static inline int ocelot_mact_wait_for_completion(struct ocelot *ocelot) in ocelot_mact_wait_for_completion()
49 static void ocelot_mact_select(struct ocelot *ocelot, in ocelot_mact_select()
71 static int __ocelot_mact_learn(struct ocelot *ocelot, int port, in __ocelot_mact_learn()
103 int ocelot_mact_learn(struct ocelot *ocelot, int port, in ocelot_mact_learn()
117 int ocelot_mact_forget(struct ocelot *ocelot, in ocelot_mact_forget()
139 int ocelot_mact_lookup(struct ocelot *ocelot, int *dst_idx, in ocelot_mact_lookup()
174 int ocelot_mact_learn_streamdata(struct ocelot *ocelot, int dst_idx, in ocelot_mact_learn_streamdata()
199 static void ocelot_mact_init(struct ocelot *ocelot) in ocelot_mact_init()
217 void ocelot_pll5_init(struct ocelot *ocelot) in ocelot_pll5_init()
[all …]
H A Docelot_fdma.c22 static void ocelot_fdma_writel(struct ocelot *ocelot, u32 reg, u32 data) in ocelot_fdma_writel()
27 static u32 ocelot_fdma_readl(struct ocelot *ocelot, u32 reg) in ocelot_fdma_readl()
85 static void ocelot_fdma_activate_chan(struct ocelot *ocelot, dma_addr_t dma, in ocelot_fdma_activate_chan()
96 static u32 ocelot_fdma_read_ch_safe(struct ocelot *ocelot) in ocelot_fdma_read_ch_safe()
101 static int ocelot_fdma_wait_chan_safe(struct ocelot *ocelot, int chan) in ocelot_fdma_wait_chan_safe()
122 static bool ocelot_fdma_rx_alloc_page(struct ocelot *ocelot, in ocelot_fdma_rx_alloc_page()
146 static int ocelot_fdma_alloc_rx_buffs(struct ocelot *ocelot, u16 alloc_cnt) in ocelot_fdma_alloc_rx_buffs()
186 static bool ocelot_fdma_tx_dcb_set_skb(struct ocelot *ocelot, in ocelot_fdma_tx_dcb_set_skb()
208 static bool ocelot_fdma_check_stop_rx(struct ocelot *ocelot) in ocelot_fdma_check_stop_rx()
234 static void ocelot_fdma_rx_restart(struct ocelot *ocelot) in ocelot_fdma_rx_restart()
[all …]
H 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 …]
H A 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 …]
H A Docelot_io.c13 int __ocelot_bulk_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, in __ocelot_bulk_read_ix()
27 u32 __ocelot_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, u32 offset) in __ocelot_read_ix()
40 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, enum ocelot_reg reg, in __ocelot_write_ix()
53 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, in __ocelot_rmw_ix()
68 struct ocelot *ocelot = port->ocelot; in ocelot_port_readl() local
81 struct ocelot *ocelot = port->ocelot; in ocelot_port_writel() local
99 u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_read_ix()
109 void __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_write_ix()
116 int ocelot_regfields_init(struct ocelot *ocelot, in ocelot_regfields_init()
156 struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res) in ocelot_regmap_init()
H A 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()
345 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 …]
H A Docelot_mm.c52 void ocelot_port_update_active_preemptible_tcs(struct ocelot *ocelot, int port) in ocelot_port_update_active_preemptible_tcs()
90 void ocelot_port_change_fp(struct ocelot *ocelot, int port, in ocelot_port_change_fp()
105 static void ocelot_mm_update_port_status(struct ocelot *ocelot, int port) in ocelot_mm_update_port_status()
155 void ocelot_mm_irq(struct ocelot *ocelot) in ocelot_mm_irq()
168 int ocelot_port_set_mm(struct ocelot *ocelot, int port, in ocelot_port_set_mm()
234 int ocelot_port_get_mm(struct ocelot *ocelot, int port, in ocelot_port_get_mm()
272 int ocelot_mm_init(struct ocelot *ocelot) in ocelot_mm_init()
H 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()
H A Docelot.h77 static inline void ocelot_reg_to_target_addr(struct ocelot *ocelot, in ocelot_reg_to_target_addr()
H A Docelot_fdma.h154 struct ocelot *ocelot; member
/linux/include/soc/mscc/
H A Docelot.h73 #define for_each_unicast_dest_pgid(ocelot, pgid) \ argument
78 #define for_each_nonreserved_multicast_dest_pgid(ocelot, pgid) \ argument
83 #define for_each_aggr_pgid(ocelot, pgid) \ argument
773 struct ocelot *ocelot; global() member
812 struct ocelot { global() struct
817 opsocelot global() argument
831 portsocelot global() argument
850 npi_inj_prefixocelot global() argument
851 npi_xtr_prefixocelot global() argument
859 blockocelot global() argument
860 vcap_polocelot global() argument
862 mirrorocelot global() argument
864 psfpocelot global() argument
867 stats_workocelot global() argument
868 stats_queueocelot global() argument
870 stats_lockocelot global() argument
871 statsocelot global() argument
896 mmocelot global() argument
898 fdmaocelot global() argument
906 ocelot_bulk_read(ocelot,reg,buf,count) global() argument
909 ocelot_read_ix(ocelot,reg,gi,ri) global() argument
911 ocelot_read_gix(ocelot,reg,gi) global() argument
913 ocelot_read_rix(ocelot,reg,ri) global() argument
915 ocelot_read(ocelot,reg) global() argument
918 ocelot_write_ix(ocelot,val,reg,gi,ri) global() argument
920 ocelot_write_gix(ocelot,val,reg,gi) global() argument
922 ocelot_write_rix(ocelot,val,reg,ri) global() argument
924 ocelot_write(ocelot,val,reg) global() argument
926 ocelot_rmw_ix(ocelot,val,m,reg,gi,ri) global() argument
928 ocelot_rmw_gix(ocelot,val,m,reg,gi) global() argument
930 ocelot_rmw_rix(ocelot,val,m,reg,ri) global() argument
932 ocelot_rmw(ocelot,val,m,reg) global() argument
934 ocelot_field_write(ocelot,reg,val) global() argument
936 ocelot_field_read(ocelot,reg,val) global() argument
938 ocelot_fields_write(ocelot,id,reg,val) global() argument
940 ocelot_fields_read(ocelot,id,reg,val) global() argument
943 ocelot_target_read_ix(ocelot,target,reg,gi,ri) global() argument
945 ocelot_target_read_gix(ocelot,target,reg,gi) global() argument
947 ocelot_target_read_rix(ocelot,target,reg,ri) global() argument
949 ocelot_target_read(ocelot,target,reg) global() argument
952 ocelot_target_write_ix(ocelot,target,val,reg,gi,ri) global() argument
954 ocelot_target_write_gix(ocelot,target,val,reg,gi) global() argument
956 ocelot_target_write_rix(ocelot,target,val,reg,ri) global() argument
958 ocelot_target_write(ocelot,target,val,reg) global() argument
1198 ocelot_mrp_add(struct ocelot * ocelot,int port,const struct switchdev_obj_mrp * mrp) ocelot_mrp_add() argument
1204 ocelot_mrp_del(struct ocelot * ocelot,int port,const struct switchdev_obj_mrp * mrp) ocelot_mrp_del() argument
1211 ocelot_mrp_add_ring_role(struct ocelot * ocelot,int port,const struct switchdev_obj_ring_role_mrp * mrp) ocelot_mrp_add_ring_role() argument
1218 ocelot_mrp_del_ring_role(struct ocelot * ocelot,int port,const struct switchdev_obj_ring_role_mrp * mrp) ocelot_mrp_del_ring_role() argument
[all...]
H 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_IS1_VLAN_RECLASSIFY(ocelot, port) ((ocelot)->num_phys_ports + (port)) argument
17 #define OCELOT_VCAP_IS2_TAG_8021Q_TXVLAN(ocelot, port) (port) argument
18 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port)) argument
19 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2) argument
20 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 1) argument
21 #define OCELOT_VCAP_IS2_IPV4_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 2) argument
22 #define OCELOT_VCAP_IS2_IPV4_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 3) argument
23 #define OCELOT_VCAP_IS2_IPV6_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 4) argument
[all …]
/linux/drivers/net/dsa/ocelot/
H A Dfelix_vsc9959.c879 static int vsc9959_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9959_gcb_soft_rst_status()
888 static int vsc9959_sys_ram_init_status(struct ocelot *ocelot) in vsc9959_sys_ram_init_status()
896 static int vsc9959_reset(struct ocelot *ocelot) in vsc9959_reset()
956 static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot) in vsc9959_mdio_bus_alloc()
1044 static void vsc9959_mdio_bus_free(struct ocelot *ocelot) in vsc9959_mdio_bus_free()
1148 static void vsc9959_port_qmaxsdu_set(struct ocelot *ocelot, int port, int tc, in vsc9959_port_qmaxsdu_set()
1187 static u32 vsc9959_port_qmaxsdu_get(struct ocelot *ocelot, int port, int tc) in vsc9959_port_qmaxsdu_get()
1217 static void vsc9959_tas_guard_bands_update(struct ocelot *ocelot, int port) in vsc9959_tas_guard_bands_update()
1348 static void vsc9959_sched_speed_set(struct ocelot *ocelot, int port, in vsc9959_sched_speed_set()
1385 static void vsc9959_new_base_time(struct ocelot *ocelot, ktime_t base_time, in vsc9959_new_base_time()
[all …]
H A Dfelix.h89 struct ocelot ocelot; member