Home
last modified time | relevance | path

Searched refs:repr (Results 1 – 18 of 18) sorted by relevance

/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c30 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_tx_stats() local
35 this_cpu_inc(repr->stats->tx_drops); in nfp_repr_inc_tx_stats()
39 stats = this_cpu_ptr(repr->stats); in nfp_repr_inc_tx_stats()
48 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_rx_stats() local
51 stats = this_cpu_ptr(repr->stats); in nfp_repr_inc_rx_stats()
92 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_stats64() local
94 if (WARN_ON(!repr->port)) in nfp_repr_get_stats64()
97 switch (repr->port->type) { in nfp_repr_get_stats64()
99 if (!__nfp_port_get_eth_port(repr->port)) in nfp_repr_get_stats64()
101 nfp_repr_phy_port_get_stats64(repr->port, stats); in nfp_repr_get_stats64()
[all …]
Dnfp_app.c47 struct nfp_repr *repr = netdev_priv(netdev); in nfp_app_from_netdev() local
49 return repr->app; in nfp_app_from_netdev()
162 struct net_device *repr; in nfp_app_netdev_feat_change() local
164 repr = rtnl_dereference(reprs->reprs[i]); in nfp_app_netdev_feat_change()
165 if (!repr) in nfp_app_netdev_feat_change()
168 nfp_repr_transfer_features(repr, netdev); in nfp_app_netdev_feat_change()
Dnfp_app.h109 int (*repr_open)(struct nfp_app *app, struct nfp_repr *repr);
110 int (*repr_stop)(struct nfp_app *app, struct nfp_repr *repr);
223 static inline int nfp_app_repr_open(struct nfp_app *app, struct nfp_repr *repr) in nfp_app_repr_open() argument
227 return app->type->repr_open(app, repr); in nfp_app_repr_open()
230 static inline int nfp_app_repr_stop(struct nfp_app *app, struct nfp_repr *repr) in nfp_app_repr_stop() argument
234 return app->type->repr_stop(app, repr); in nfp_app_repr_stop()
Dnfp_port.c23 struct nfp_repr *repr = netdev_priv(netdev); in nfp_port_from_netdev() local
25 return repr->port; in nfp_port_from_netdev()
Dnfp_net_repr.h103 void nfp_repr_clean_and_free(struct nfp_repr *repr);
Dnfp_net_ethtool.c543 nfp_vnic_get_hw_stats_strings(u8 *data, unsigned int num_vecs, bool repr) in nfp_vnic_get_hw_stats_strings() argument
552 swap_off = repr * NN_ET_SWITCH_STATS_LEN; in nfp_vnic_get_hw_stats_strings()
/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c278 struct nfp_repr *repr = netdev_priv(netdev); in nfp_flower_reprs_reify() local
280 err = nfp_flower_cmsg_portreify(repr, exists); in nfp_flower_reprs_reify()
310 nfp_flower_repr_netdev_open(struct nfp_app *app, struct nfp_repr *repr) in nfp_flower_repr_netdev_open() argument
314 err = nfp_flower_cmsg_portmod(repr, true, repr->netdev->mtu, false); in nfp_flower_repr_netdev_open()
318 netif_tx_wake_all_queues(repr->netdev); in nfp_flower_repr_netdev_open()
324 nfp_flower_repr_netdev_stop(struct nfp_app *app, struct nfp_repr *repr) in nfp_flower_repr_netdev_stop() argument
326 netif_tx_disable(repr->netdev); in nfp_flower_repr_netdev_stop()
328 return nfp_flower_cmsg_portmod(repr, false, repr->netdev->mtu, false); in nfp_flower_repr_netdev_stop()
334 struct nfp_repr *repr = netdev_priv(netdev); in nfp_flower_repr_netdev_clean() local
336 kfree(repr->app_priv); in nfp_flower_repr_netdev_clean()
[all …]
Dqos_conf.c69 struct nfp_repr *repr; in nfp_flower_install_rate_limiter() local
79 repr = netdev_priv(netdev); in nfp_flower_install_rate_limiter()
80 repr_priv = repr->app_priv; in nfp_flower_install_rate_limiter()
87 if (repr->port->type != NFP_PORT_VF_PORT) { in nfp_flower_install_rate_limiter()
111 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(struct nfp_police_config), in nfp_flower_install_rate_limiter()
125 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_install_rate_limiter()
144 struct nfp_repr *repr; in nfp_flower_remove_rate_limiter() local
152 repr = netdev_priv(netdev); in nfp_flower_remove_rate_limiter()
155 repr_priv = repr->app_priv; in nfp_flower_remove_rate_limiter()
162 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(struct nfp_police_config), in nfp_flower_remove_rate_limiter()
[all …]
Dcmsg.c75 int nfp_flower_cmsg_portmod(struct nfp_repr *repr, bool carrier_ok, in nfp_flower_cmsg_portmod() argument
81 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), in nfp_flower_cmsg_portmod()
87 msg->portnum = cpu_to_be32(repr->dst->u.port_info.port_id); in nfp_flower_cmsg_portmod()
96 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_cmsg_portmod()
101 int nfp_flower_cmsg_portreify(struct nfp_repr *repr, bool exists) in nfp_flower_cmsg_portreify() argument
106 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), in nfp_flower_cmsg_portreify()
113 msg->portnum = cpu_to_be32(repr->dst->u.port_info.port_id); in nfp_flower_cmsg_portreify()
117 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_cmsg_portreify()
Dlag_conf.c282 struct nfp_repr *repr; in nfp_fl_lag_do_work() local
325 repr = netdev_priv(iter_netdev); in nfp_fl_lag_do_work()
327 if (repr->app != priv->app) { in nfp_fl_lag_do_work()
337 repr_priv = repr->app_priv; in nfp_fl_lag_do_work()
515 struct nfp_repr *repr; in nfp_fl_lag_changeupper_event() local
528 repr = netdev_priv(iter_netdev); in nfp_fl_lag_changeupper_event()
531 if (repr->app != priv->app) { in nfp_fl_lag_changeupper_event()
594 struct nfp_repr *repr; in nfp_fl_lag_changels_event() local
605 repr = netdev_priv(netdev); in nfp_fl_lag_changels_event()
608 if (repr->app != priv->app) in nfp_fl_lag_changels_event()
[all …]
Dtunnel_conf.c903 struct nfp_repr *repr; in nfp_tunnel_offloaded_macs_inc_ref_and_link() local
905 repr = netdev_priv(netdev); in nfp_tunnel_offloaded_macs_inc_ref_and_link()
906 repr_priv = repr->app_priv; in nfp_tunnel_offloaded_macs_inc_ref_and_link()
1013 struct nfp_repr *repr; in nfp_tunnel_del_shared_mac() local
1024 repr = netdev_priv(netdev); in nfp_tunnel_del_shared_mac()
1025 repr_priv = repr->app_priv; in nfp_tunnel_del_shared_mac()
1053 repr = repr_priv->nfp_repr; in nfp_tunnel_del_shared_mac()
1054 port = nfp_repr_get_port_id(repr->netdev); in nfp_tunnel_del_shared_mac()
1103 struct nfp_repr *repr; in nfp_tunnel_offload_mac() local
1105 repr = netdev_priv(netdev); in nfp_tunnel_offload_mac()
[all …]
Doffload.c1649 struct nfp_repr *repr = cb_priv; in nfp_flower_setup_tc_block_cb() local
1651 if (!tc_cls_can_offload_and_chain0(repr->netdev, type_data)) in nfp_flower_setup_tc_block_cb()
1656 return nfp_flower_repr_offload(repr->app, repr->netdev, in nfp_flower_setup_tc_block_cb()
1659 return nfp_flower_setup_qos_offload(repr->app, repr->netdev, in nfp_flower_setup_tc_block_cb()
1671 struct nfp_repr *repr = netdev_priv(netdev); in nfp_flower_setup_tc_block() local
1678 repr_priv = repr->app_priv; in nfp_flower_setup_tc_block()
1684 if (flow_block_cb_is_busy(nfp_flower_setup_tc_block_cb, repr, in nfp_flower_setup_tc_block()
1689 repr, repr, NULL); in nfp_flower_setup_tc_block()
1699 repr); in nfp_flower_setup_tc_block()
Dcmsg.h736 int nfp_flower_cmsg_portmod(struct nfp_repr *repr, bool carrier_ok,
738 int nfp_flower_cmsg_portreify(struct nfp_repr *repr, bool exists);
/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c33 struct nfp_repr *repr = netdev_priv(netdev); in nfp_abm_setup_tc() local
42 return nfp_abm_setup_root(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
44 return nfp_abm_setup_tc_mq(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
46 return nfp_abm_setup_tc_red(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
48 return nfp_abm_setup_tc_gred(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
50 return nfp_abm_setup_cls_block(netdev, repr, type_data); in nfp_abm_setup_tc()
83 struct nfp_repr *repr; in nfp_abm_spawn_repr() local
99 repr = netdev_priv(netdev); in nfp_abm_spawn_repr()
100 repr->app_priv = alink; in nfp_abm_spawn_repr()
384 struct nfp_repr *repr = netdev_priv(port->netdev); in nfp_abm_port_get_stats() local
[all …]
Dcls.c231 struct nfp_repr *repr = cb_priv; in nfp_abm_setup_tc_block_cb() local
234 alink = repr->app_priv; in nfp_abm_setup_tc_block_cb()
241 if (!tc_cls_can_offload_and_chain0(repr->netdev, &cls_u32->common)) in nfp_abm_setup_tc_block_cb()
267 int nfp_abm_setup_cls_block(struct net_device *netdev, struct nfp_repr *repr, in nfp_abm_setup_cls_block() argument
272 repr, repr, true); in nfp_abm_setup_cls_block()
Dmain.h249 int nfp_abm_setup_cls_block(struct net_device *netdev, struct nfp_repr *repr,
/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c84 const char * const *repr; in __caps_show() local
92 repr = vcs_caps; in __caps_show()
97 repr = vecs_caps; in __caps_show()
102 repr = NULL; in __caps_show()
112 if (n >= count || !repr[n]) { in __caps_show()
118 "%s ", repr[n]); in __caps_show()
/drivers/staging/comedi/drivers/ni_routing/tools/
Dconvert_csv_to_c.py49 sys.stderr.write('Invalid register format: {}\n'.format(repr(value)))