Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_repr.c14 static int ice_repr_get_sw_port_id(struct ice_repr *repr) in ice_repr_get_sw_port_id() argument
16 return repr->vf->pf->hw.port_info->lport; in ice_repr_get_sw_port_id()
29 struct ice_repr *repr = np->repr; in ice_repr_get_phys_port_name() local
33 if (repr->vf->devlink_port.devlink) in ice_repr_get_phys_port_name()
36 res = snprintf(buf, len, "pf%dvfr%d", ice_repr_get_sw_port_id(repr), in ice_repr_get_phys_port_name()
37 repr->vf->vf_id); in ice_repr_get_phys_port_name()
55 if (ice_is_vf_disabled(np->repr->vf)) in ice_repr_get_stats64()
57 vsi = np->repr->src_vsi; in ice_repr_get_stats64()
82 return np->repr; in ice_netdev_to_repr()
97 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_open() local
[all …]
Dice_eswitch.c50 vf->repr->mac_rule); in ice_eswitch_add_vf_mac_rule()
55 vf->repr->rule_added = true; in ice_eswitch_add_vf_mac_rule()
100 if (!vf->repr->rule_added) in ice_eswitch_del_vf_mac_rule()
103 ice_rem_adv_rule_by_id(&vf->pf->hw, vf->repr->mac_rule); in ice_eswitch_del_vf_mac_rule()
104 vf->repr->rule_added = false; in ice_eswitch_del_vf_mac_rule()
182 struct ice_repr *repr; in ice_eswitch_remap_rings_to_vectors() local
189 repr = vf->repr; in ice_eswitch_remap_rings_to_vectors()
190 q_vector = repr->q_vector; in ice_eswitch_remap_rings_to_vectors()
201 tx_ring->netdev = repr->netdev; in ice_eswitch_remap_rings_to_vectors()
211 rx_ring->netdev = repr->netdev; in ice_eswitch_remap_rings_to_vectors()
[all …]
Dice_repr.h25 void ice_repr_start_tx_queues(struct ice_repr *repr);
26 void ice_repr_stop_tx_queues(struct ice_repr *repr);
28 void ice_repr_set_traffic_vsi(struct ice_repr *repr, struct ice_vsi *vsi);
Dice.h615 struct ice_repr *repr; member
752 if (np->repr) in ice_get_netdev_priv_vsi()
753 return np->repr->src_vsi; in ice_get_netdev_priv_vsi()
Dice_vf_lib.h128 struct ice_repr *repr; member
Dice_ethtool.c3941 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_get_drvinfo() local
3943 if (ice_check_vf_ready_for_cfg(repr->vf)) in ice_repr_get_drvinfo()
3946 __ice_get_drvinfo(netdev, drvinfo, repr->src_vsi); in ice_repr_get_drvinfo()
3952 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_get_strings() local
3955 if (ice_check_vf_ready_for_cfg(repr->vf) || in ice_repr_get_strings()
3959 __ice_get_strings(netdev, stringset, data, repr->src_vsi); in ice_repr_get_strings()
3967 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_get_ethtool_stats() local
3969 if (ice_check_vf_ready_for_cfg(repr->vf)) in ice_repr_get_ethtool_stats()
3972 __ice_get_ethtool_stats(netdev, stats, data, repr->src_vsi); in ice_repr_get_ethtool_stats()
/linux-6.1.9/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.h108 int (*repr_open)(struct nfp_app *app, struct nfp_repr *repr);
109 int (*repr_stop)(struct nfp_app *app, struct nfp_repr *repr);
232 static inline int nfp_app_repr_open(struct nfp_app *app, struct nfp_repr *repr) in nfp_app_repr_open() argument
236 return app->type->repr_open(app, repr); in nfp_app_repr_open()
239 static inline int nfp_app_repr_stop(struct nfp_app *app, struct nfp_repr *repr) in nfp_app_repr_stop() argument
243 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);
/linux-6.1.9/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 …]
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()
Dqos_conf.c175 struct nfp_repr *repr; in nfp_flower_install_rate_limiter() local
188 repr = netdev_priv(netdev); in nfp_flower_install_rate_limiter()
189 repr_priv = repr->app_priv; in nfp_flower_install_rate_limiter()
198 if (repr->port->type != NFP_PORT_VF_PORT) { in nfp_flower_install_rate_limiter()
274 nfp_flower_offload_one_police(repr->app, true, in nfp_flower_install_rate_limiter()
297 struct nfp_repr *repr; in nfp_flower_remove_rate_limiter() local
305 repr = netdev_priv(netdev); in nfp_flower_remove_rate_limiter()
308 repr_priv = repr->app_priv; in nfp_flower_remove_rate_limiter()
329 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(struct nfp_police_config), in nfp_flower_remove_rate_limiter()
339 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_remove_rate_limiter()
[all …]
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.c956 struct nfp_repr *repr; in nfp_tunnel_offloaded_macs_inc_ref_and_link() local
958 repr = netdev_priv(netdev); in nfp_tunnel_offloaded_macs_inc_ref_and_link()
959 repr_priv = repr->app_priv; in nfp_tunnel_offloaded_macs_inc_ref_and_link()
1066 struct nfp_repr *repr; in nfp_tunnel_del_shared_mac() local
1077 repr = netdev_priv(netdev); in nfp_tunnel_del_shared_mac()
1078 repr_priv = repr->app_priv; in nfp_tunnel_del_shared_mac()
1106 repr = repr_priv->nfp_repr; in nfp_tunnel_del_shared_mac()
1107 port = nfp_repr_get_port_id(repr->netdev); in nfp_tunnel_del_shared_mac()
1156 struct nfp_repr *repr; in nfp_tunnel_offload_mac() local
1158 repr = netdev_priv(netdev); in nfp_tunnel_offload_mac()
[all …]
Doffload.c1749 struct nfp_repr *repr = cb_priv; in nfp_flower_setup_tc_block_cb() local
1751 if (!tc_can_offload_extack(repr->netdev, common->extack)) in nfp_flower_setup_tc_block_cb()
1756 return nfp_flower_repr_offload(repr->app, repr->netdev, in nfp_flower_setup_tc_block_cb()
1759 return nfp_flower_setup_qos_offload(repr->app, repr->netdev, in nfp_flower_setup_tc_block_cb()
1771 struct nfp_repr *repr = netdev_priv(netdev); in nfp_flower_setup_tc_block() local
1778 repr_priv = repr->app_priv; in nfp_flower_setup_tc_block()
1784 if (flow_block_cb_is_busy(nfp_flower_setup_tc_block_cb, repr, in nfp_flower_setup_tc_block()
1789 repr, repr, NULL); in nfp_flower_setup_tc_block()
1799 repr); in nfp_flower_setup_tc_block()
Dcmsg.h743 int nfp_flower_cmsg_portmod(struct nfp_repr *repr, bool carrier_ok,
745 int nfp_flower_cmsg_portreify(struct nfp_repr *repr, bool exists);
/linux-6.1.9/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,
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c84 const char * const *repr; in __caps_show() local
90 repr = vcs_caps; in __caps_show()
95 repr = vecs_caps; in __caps_show()
100 repr = NULL; in __caps_show()
108 if (n >= count || !repr[n]) { in __caps_show()
114 "%s ", repr[n]); in __caps_show()
/linux-6.1.9/rust/
Dbindgen_parameters8 # Packed type cannot transitively contain a `#[repr(align)]` type.
/linux-6.1.9/drivers/gpio/
Dgpio-sim.c1226 char *repr; in gpio_sim_hog_config_direction_show() local
1235 repr = "input"; in gpio_sim_hog_config_direction_show()
1238 repr = "output-high"; in gpio_sim_hog_config_direction_show()
1241 repr = "output-low"; in gpio_sim_hog_config_direction_show()
1249 return sprintf(page, "%s\n", repr); in gpio_sim_hog_config_direction_show()
/linux-6.1.9/drivers/comedi/drivers/ni_routing/tools/
Dconvert_csv_to_c.py48 sys.stderr.write('Invalid register format: {}\n'.format(repr(value)))

12