Lines Matching refs:cpsw_common
53 struct cpsw_common *cpsw;
65 static int cpsw_slave_index_priv(struct cpsw_common *cpsw, in cpsw_slave_index_priv()
74 static bool cpsw_is_switch_en(struct cpsw_common *cpsw) in cpsw_is_switch_en()
81 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious()
128 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_mc()
254 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_set_rx_mode()
289 struct cpsw_common *cpsw; in cpsw_rx_handler()
402 struct cpsw_common *cpsw = priv->cpsw; in cpsw_add_vlan_ale_entry()
442 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_vlan_rx_add_vid()
490 struct cpsw_common *cpsw = priv->cpsw; in cpsw_restore()
504 static void cpsw_init_stp_ale_entry(struct cpsw_common *cpsw) in cpsw_init_stp_ale_entry()
513 static void cpsw_init_host_port_switch(struct cpsw_common *cpsw) in cpsw_init_host_port_switch()
532 static void cpsw_init_host_port_dual_mac(struct cpsw_common *cpsw) in cpsw_init_host_port_dual_mac()
550 struct cpsw_common *cpsw = priv->cpsw; in cpsw_init_host_port()
591 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_add_dual_emac_def_ale_entries()
617 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_add_switch_def_ale_entries()
651 struct cpsw_common *cpsw = priv->cpsw; in cpsw_adjust_link()
720 struct cpsw_common *cpsw = priv->cpsw; in cpsw_slave_open()
793 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_stop()
831 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_open()
920 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_start_xmit()
981 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_set_mac_address()
1015 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_vlan_rx_kill_vid()
1081 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_ndo_poll_controller()
1116 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_port_parent_id()
1149 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_drvinfo()
1161 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_pauseparam()
1218 static int cpsw_probe_dt(struct cpsw_common *cpsw) in cpsw_probe_dt()
1347 static void cpsw_remove_dt(struct cpsw_common *cpsw) in cpsw_remove_dt()
1365 static int cpsw_create_ports(struct cpsw_common *cpsw) in cpsw_create_ports()
1440 static void cpsw_unregister_ports(struct cpsw_common *cpsw) in cpsw_unregister_ports()
1452 static int cpsw_register_ports(struct cpsw_common *cpsw) in cpsw_register_ports()
1478 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_port_dev_check()
1486 static void cpsw_port_offload_fwd_mark_update(struct cpsw_common *cpsw) in cpsw_port_offload_fwd_mark_update()
1510 struct cpsw_common *cpsw = priv->cpsw; in cpsw_netdevice_port_link()
1538 struct cpsw_common *cpsw = priv->cpsw; in cpsw_netdevice_port_unlink()
1586 static int cpsw_register_notifiers(struct cpsw_common *cpsw) in cpsw_register_notifiers()
1603 static void cpsw_unregister_notifiers(struct cpsw_common *cpsw) in cpsw_unregister_notifiers()
1616 struct cpsw_common *cpsw = dl_priv->cpsw; in cpsw_dl_switch_mode_get()
1633 struct cpsw_common *cpsw = dl_priv->cpsw; in cpsw_dl_switch_mode_set()
1751 struct cpsw_common *cpsw = dl_priv->cpsw; in cpsw_dl_ale_ctrl_get()
1771 struct cpsw_common *cpsw = dl_priv->cpsw; in cpsw_dl_ale_ctrl_set()
1804 static int cpsw_register_devlink(struct cpsw_common *cpsw) in cpsw_register_devlink()
1832 static void cpsw_unregister_devlink(struct cpsw_common *cpsw) in cpsw_unregister_devlink()
1858 struct cpsw_common *cpsw; in cpsw_probe()
1866 cpsw = devm_kzalloc(dev, sizeof(struct cpsw_common), GFP_KERNEL); in cpsw_probe()
2048 struct cpsw_common *cpsw = platform_get_drvdata(pdev); in cpsw_remove()
2074 struct cpsw_common *cpsw = dev_get_drvdata(dev); in cpsw_suspend()
2098 struct cpsw_common *cpsw = dev_get_drvdata(dev); in cpsw_resume()