| /linux/drivers/net/ethernet/mscc/ |
| A D | ocelot.c | 42 static void ocelot_mact_select(struct ocelot *ocelot, in ocelot_mact_select() argument 64 int ocelot_mact_learn(struct ocelot *ocelot, int port, in ocelot_mact_learn() argument 101 int ocelot_mact_forget(struct ocelot *ocelot, in ocelot_mact_forget() argument 123 static void ocelot_mact_init(struct ocelot *ocelot) in ocelot_mact_init() argument 165 ocelot, in ocelot_vlant_wait_for_completion() 1621 ocelot->stats[idx] = (ocelot->stats[idx] & in ocelot_update_stats() 1632 struct ocelot *ocelot = container_of(del_work, struct ocelot, in ocelot_check_stats_work() local 2478 int ocelot_init(struct ocelot *ocelot) in ocelot_init() argument 2485 ret = ocelot->ops->reset(ocelot); in ocelot_init() 2492 ocelot->stats = devm_kcalloc(ocelot->dev, in ocelot_init() [all …]
|
| A D | ocelot_devlink.c | 221 static u32 ocelot_wm_read(struct ocelot *ocelot, int index) in ocelot_wm_read() argument 349 static void ocelot_setup_sharing_watermarks(struct ocelot *ocelot) in ocelot_setup_sharing_watermarks() argument 382 static int ocelot_watermark_validate(struct ocelot *ocelot, in ocelot_watermark_validate() argument 476 static void ocelot_watermark_init(struct ocelot *ocelot) in ocelot_watermark_init() argument 570 int ocelot_sb_port_pool_get(struct ocelot *ocelot, int port, in ocelot_sb_port_pool_get() argument 601 int ocelot_sb_port_pool_set(struct ocelot *ocelot, int port, in ocelot_sb_port_pool_set() argument 644 int ocelot_sb_tc_pool_bind_get(struct ocelot *ocelot, int port, in ocelot_sb_tc_pool_bind_get() argument 681 int ocelot_sb_tc_pool_bind_set(struct ocelot *ocelot, int port, in ocelot_sb_tc_pool_bind_set() argument 787 int ocelot_sb_occ_port_pool_get(struct ocelot *ocelot, int port, in ocelot_sb_occ_port_pool_get() argument 851 int ocelot_devlink_sb_register(struct ocelot *ocelot) in ocelot_devlink_sb_register() argument [all …]
|
| A D | ocelot_net.c | 189 struct ocelot *ocelot = priv->port.ocelot; in ocelot_get_devlink_port() local 199 struct ocelot *ocelot = priv->port.ocelot; in ocelot_setup_tc_cls_flower() local 222 struct ocelot *ocelot = priv->port.ocelot; in ocelot_setup_tc_cls_matchall() local 395 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_add() local 413 struct ocelot *ocelot = priv->port.ocelot; in ocelot_vlan_vid_del() local 516 struct ocelot *ocelot = w->ocelot; in ocelot_mact_work() local 581 struct ocelot *ocelot = priv->port.ocelot; in ocelot_set_rx_mode() local 617 struct ocelot *ocelot = priv->port.ocelot; in ocelot_get_stats64() local 659 struct ocelot *ocelot = priv->port.ocelot; in ocelot_port_fdb_add() local 670 struct ocelot *ocelot = priv->port.ocelot; in ocelot_port_fdb_del() local [all …]
|
| A D | ocelot_ptp.c | 15 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 242 dev_warn(ocelot->dev, in ocelot_ptp_enable() 305 int ocelot_init_timestamp(struct ocelot *ocelot, in ocelot_init_timestamp() argument 321 ocelot->ptp_info.pin_config = &ocelot->ptp_pins[0]; in ocelot_init_timestamp() 323 ptp_clock = ptp_clock_register(&ocelot->ptp_info, ocelot->dev); in ocelot_init_timestamp() 347 int ocelot_deinit_timestamp(struct ocelot *ocelot) in ocelot_deinit_timestamp() argument [all …]
|
| A D | ocelot_mrp.c | 18 static int ocelot_mrp_find_partner_port(struct ocelot *ocelot, in ocelot_mrp_find_partner_port() argument 36 static int ocelot_mrp_del_vcap(struct ocelot *ocelot, int id) in ocelot_mrp_del_vcap() argument 80 static int ocelot_mrp_copy_add_vcap(struct ocelot *ocelot, int port, in ocelot_mrp_copy_add_vcap() argument 115 static void ocelot_mrp_save_mac(struct ocelot *ocelot, in ocelot_mrp_save_mac() argument 124 static void ocelot_mrp_del_mac(struct ocelot *ocelot, in ocelot_mrp_del_mac() argument 131 int ocelot_mrp_add(struct ocelot *ocelot, int port, in ocelot_mrp_add() argument 153 int ocelot_mrp_del(struct ocelot *ocelot, int port, in ocelot_mrp_del() argument 170 int ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port, in ocelot_mrp_add_ring_role() argument 210 int ocelot_mrp_del_ring_role(struct ocelot *ocelot, int port, in ocelot_mrp_del_ring_role() argument 226 ocelot_mrp_del_vcap(ocelot, port + ocelot->num_phys_ports); in ocelot_mrp_del_ring_role() [all …]
|
| A D | ocelot_io.c | 13 u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset) in __ocelot_read_ix() argument 26 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) in __ocelot_write_ix() argument 37 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, in __ocelot_rmw_ix() argument 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() argument 92 void __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_write_ix() argument 99 int ocelot_regfields_init(struct ocelot *ocelot, in ocelot_regfields_init() argument 120 ocelot->regfields[i] = in ocelot_regfields_init() 122 ocelot->targets[target], in ocelot_regfields_init() [all …]
|
| A D | ocelot_vsc7514.c | 484 static void ocelot_pll5_init(struct ocelot *ocelot) in ocelot_pll5_init() argument 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() argument 928 struct ocelot *ocelot = platform_get_drvdata(pdev); in mscc_ocelot_init_ports() local 934 ocelot->ports = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports, in mscc_ocelot_init_ports() 939 ocelot->devlink_ports = devm_kcalloc(ocelot->dev, in mscc_ocelot_init_ports() 1030 struct ocelot *ocelot; in mscc_ocelot_probe() local 1059 ocelot->devlink = priv_to_devlink(ocelot); in mscc_ocelot_probe() 1113 ocelot); in mscc_ocelot_probe() [all …]
|
| A D | ocelot_vcap.c | 49 static u32 vcap_read_update_ctrl(struct ocelot *ocelot, in vcap_read_update_ctrl() argument 88 static void vcap_entry2cache(struct ocelot *ocelot, in vcap_entry2cache() argument 105 static void vcap_cache2entry(struct ocelot *ocelot, in vcap_cache2entry() argument 123 static void vcap_action2cache(struct ocelot *ocelot, in vcap_action2cache() argument 148 static void vcap_cache2action(struct ocelot *ocelot, in vcap_cache2action() argument 344 static void is2_entry_set(struct ocelot *ocelot, int ix, in is2_entry_set() argument 669 static void is1_entry_set(struct ocelot *ocelot, int ix, in is1_entry_set() argument 1130 int ocelot_vcap_filter_add(struct ocelot *ocelot, in ocelot_vcap_filter_add() argument 1188 int ocelot_vcap_filter_del(struct ocelot *ocelot, in ocelot_vcap_filter_del() argument 1220 int ocelot_vcap_filter_replace(struct ocelot *ocelot, in ocelot_vcap_filter_replace() argument [all …]
|
| A D | ocelot.h | 96 int ocelot_mact_learn(struct ocelot *ocelot, int port, 99 int ocelot_mact_forget(struct ocelot *ocelot, 101 struct net_device *ocelot_port_to_netdev(struct ocelot *ocelot, int port); 107 int ocelot_probe_port(struct ocelot *ocelot, int port, struct regmap *target, 110 int ocelot_devlink_init(struct ocelot *ocelot); 111 void ocelot_devlink_teardown(struct ocelot *ocelot); 112 int ocelot_port_devlink_init(struct ocelot *ocelot, int port, 114 void ocelot_port_devlink_teardown(struct ocelot *ocelot, int port);
|
| A D | ocelot_police.c | 23 int qos_policer_conf_set(struct ocelot *ocelot, int port, u32 pol_ix, in qos_policer_conf_set() argument 134 ocelot_write_gix(ocelot, value, ANA_POL_MODE_CFG, pol_ix); in qos_policer_conf_set() 136 ocelot_write_gix(ocelot, in qos_policer_conf_set() 141 ocelot_write_gix(ocelot, in qos_policer_conf_set() 145 ocelot_write_gix(ocelot, in qos_policer_conf_set() 150 ocelot_write_gix(ocelot, in qos_policer_conf_set() 157 int ocelot_port_policer_add(struct ocelot *ocelot, int port, in ocelot_port_policer_add() argument 177 ocelot_rmw_gix(ocelot, in ocelot_port_policer_add() 188 int ocelot_port_policer_del(struct ocelot *ocelot, int port) in ocelot_port_policer_del() argument 193 dev_dbg(ocelot->dev, "%s: port %u\n", __func__, port); in ocelot_port_policer_del() [all …]
|
| A D | ocelot_flower.c | 119 ocelot_find_vcap_filter_that_points_at(struct ocelot *ocelot, int chain) in ocelot_find_vcap_filter_that_points_at() argument 146 ocelot_flower_parse_ingress_vlan_modify(struct ocelot *ocelot, int port, in ocelot_flower_parse_ingress_vlan_modify() argument 205 static int ocelot_flower_parse_action(struct ocelot *ocelot, int port, in ocelot_flower_parse_action() argument 427 static int ocelot_flower_parse_indev(struct ocelot *ocelot, int port, in ocelot_flower_parse_indev() argument 449 dev = ocelot->ops->port_to_netdev(ocelot, port); in ocelot_flower_parse_indev() 479 ocelot_flower_parse_key(struct ocelot *ocelot, int port, bool ingress, in ocelot_flower_parse_key() argument 718 static int ocelot_vcap_dummy_filter_add(struct ocelot *ocelot, in ocelot_vcap_dummy_filter_add() argument 726 static int ocelot_vcap_dummy_filter_del(struct ocelot *ocelot, in ocelot_vcap_dummy_filter_del() argument 760 int ocelot_cls_flower_replace(struct ocelot *ocelot, int port, in ocelot_cls_flower_replace() argument 799 int ocelot_cls_flower_destroy(struct ocelot *ocelot, int port, in ocelot_cls_flower_destroy() argument [all …]
|
| A D | ocelot_vcap.h | 15 int ocelot_vcap_filter_stats_update(struct ocelot *ocelot, 18 void ocelot_detect_vcap_constants(struct ocelot *ocelot); 19 int ocelot_vcap_init(struct ocelot *ocelot);
|
| A D | ocelot_police.h | 33 int qos_policer_conf_set(struct ocelot *ocelot, int port, u32 pol_ix,
|
| /linux/drivers/net/dsa/ocelot/ |
| A D | felix.c | 33 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 272 struct ocelot *ocelot = &felix->ocelot; in felix_setup_mmio_filtering() local 367 struct ocelot *ocelot = &felix->ocelot; in felix_teardown_mmio_filtering() local 913 struct ocelot *ocelot = &felix->ocelot; in felix_parse_ports_node() local 979 struct ocelot *ocelot = &felix->ocelot; in felix_init_structs() local [all …]
|
| A D | felix.h | 7 #define ocelot_to_felix(o) container_of((o), struct felix, ocelot) 40 int (*mdio_bus_alloc)(struct ocelot *ocelot); 41 void (*mdio_bus_free)(struct ocelot *ocelot); 42 void (*phylink_validate)(struct ocelot *ocelot, int port, 45 int (*prevalidate_phy_mode)(struct ocelot *ocelot, int port, 49 void (*port_sched_speed_set)(struct ocelot *ocelot, int port, 59 struct ocelot ocelot; member 68 struct net_device *felix_port_to_netdev(struct ocelot *ocelot, int port);
|
| A D | felix_vsc9959.c | 890 static int vsc9959_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9959_gcb_soft_rst_status() argument 899 static int vsc9959_sys_ram_init_status(struct ocelot *ocelot) in vsc9959_sys_ram_init_status() argument 907 static int vsc9959_reset(struct ocelot *ocelot) in vsc9959_reset() argument 1032 static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot) in vsc9959_mdio_bus_alloc() argument 1121 static void vsc9959_mdio_bus_free(struct ocelot *ocelot) in vsc9959_mdio_bus_free() argument 1189 static u32 vsc9959_tas_read_cfg_status(struct ocelot *ocelot) in vsc9959_tas_read_cfg_status() argument 1288 struct ocelot *ocelot = ds->priv; in vsc9959_qos_port_cbs_set() local 1335 struct ocelot *ocelot = ds->priv; in vsc9959_port_setup_tc() local 1374 struct ocelot *ocelot = (struct ocelot *)data; in felix_irq_handler() local 1393 struct ocelot *ocelot; in felix_pci_probe() local [all …]
|
| A D | seville_vsc9953.c | 862 static int vsc9953_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9953_gcb_soft_rst_status() argument 871 static int vsc9953_sys_ram_init_status(struct ocelot *ocelot) in vsc9953_sys_ram_init_status() argument 880 static int vsc9953_gcb_miim_pending_status(struct ocelot *ocelot) in vsc9953_gcb_miim_pending_status() argument 889 static int vsc9953_gcb_miim_busy_status(struct ocelot *ocelot) in vsc9953_gcb_miim_busy_status() argument 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() argument 1083 static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot) in vsc9953_mdio_bus_alloc() argument 1149 static void vsc9953_mdio_bus_free(struct ocelot *ocelot) in vsc9953_mdio_bus_free() argument 1187 struct ocelot *ocelot; in seville_probe() local [all …]
|
| /linux/include/soc/mscc/ |
| A D | ocelot.h | 554 int (*reset)(struct ocelot *ocelot); 600 struct ocelot *ocelot; member 761 int ocelot_regfields_init(struct ocelot *ocelot, 764 int ocelot_init(struct ocelot *ocelot); 765 void ocelot_deinit(struct ocelot *ocelot); 788 int ocelot_fdb_dump(struct ocelot *ocelot, int port, 790 int ocelot_fdb_add(struct ocelot *ocelot, int port, 792 int ocelot_fdb_del(struct ocelot *ocelot, int port, 804 void ocelot_get_txtstamp(struct ocelot *ocelot); 874 int ocelot_mrp_add(struct ocelot *ocelot, int port, [all …]
|
| A D | ocelot_ptp.h | 57 int ocelot_init_timestamp(struct ocelot *ocelot, 59 int ocelot_deinit_timestamp(struct ocelot *ocelot);
|
| /linux/Documentation/devicetree/bindings/mips/ |
| A D | mscc.txt | 7 - compatible: "mscc,ocelot", "mscc,luton", "mscc,serval" or "mscc,jr2" 19 - compatible: Should be "mscc,ocelot-chip-regs", "simple-mfd", "syscon" 24 compatible = "mscc,ocelot-chip-regs", "simple-mfd", "syscon"; 36 - compatible: Should be "mscc,ocelot-cpu-syscon", "syscon" 41 compatible = "mscc,ocelot-cpu-syscon", "syscon"; 52 - compatible: Should be "mscc,ocelot-hsio", "syscon", "simple-mfd" 57 compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
|
| /linux/arch/mips/boot/dts/mscc/ |
| A D | ocelot.dtsi | 7 compatible = "mscc,ocelot"; 55 compatible = "mscc,ocelot-cpu-syscon", "syscon"; 60 compatible = "mscc,ocelot-icpu-intr"; 82 compatible = "mscc,ocelot-i2c", "snps,designware-i2c"; 108 compatible = "mscc,ocelot-spi", "snps,dw-apb-ssi"; 199 compatible = "mscc,ocelot-chip-reset"; 204 compatible = "mscc,ocelot-pinctrl"; 238 compatible = "mscc,ocelot-miim"; 260 compatible = "mscc,ocelot-miim"; 269 compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
|
| A D | ocelot_pcb120.dts | 8 #include <dt-bindings/phy/phy-ocelot-serdes.h> 9 #include "ocelot.dtsi" 12 compatible = "mscc,ocelot-pcb120", "mscc,ocelot";
|
| A D | ocelot_pcb123.dts | 6 #include "ocelot.dtsi" 9 compatible = "mscc,ocelot-pcb123", "mscc,ocelot";
|
| /linux/Documentation/devicetree/bindings/interrupt-controller/ |
| A D | mscc,ocelot-icpu-intr.yaml | 4 $id: "http://devicetree.org/schemas/interrupt-controller/mscc,ocelot-icpu-intr.yaml#" 26 - mscc,ocelot-icpu-intr 56 compatible = "mscc,ocelot-icpu-intr";
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| A D | mscc,ocelot-pinctrl.txt | 5 - compatible : Should be "mscc,ocelot-pinctrl", 17 The ocelot-pinctrl driver uses the generic pin multiplexing and generic pin 26 compatible = "mscc,ocelot-pinctrl";
|