Home
last modified time | relevance | path

Searched full:vport (Results 1 – 25 of 194) sorted by relevance

12345678

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dingress_ofld.c10 acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
14 const struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_enabled() argument
17 mlx5_eswitch_is_vf_vport(esw, vport->vport)); in esw_acl_ingress_prio_tag_enabled()
21 struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_create() argument
46 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create()
48 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create()
51 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create()
53 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create()
54 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create()
56 "vport[%d] configure ingress untagged allow rule, err(%d)\n", in esw_acl_ingress_prio_tag_create()
[all …]
H A Degress_ofld.c9 static void esw_acl_egress_ofld_fwd2vport_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_fwd2vport_destroy() argument
11 if (!vport->egress.offloads.fwd_rule) in esw_acl_egress_ofld_fwd2vport_destroy()
14 mlx5_del_flow_rules(vport->egress.offloads.fwd_rule); in esw_acl_egress_ofld_fwd2vport_destroy()
15 vport->egress.offloads.fwd_rule = NULL; in esw_acl_egress_ofld_fwd2vport_destroy()
18 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index) in esw_acl_egress_ofld_bounce_rule_destroy() argument
21 xa_load(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
27 xa_erase(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy()
30 static void esw_acl_egress_ofld_bounce_rules_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_bounce_rules_destroy() argument
35 xa_for_each(&vport->egress.offloads.bounce_rules, i, bounce_rule) { in esw_acl_egress_ofld_bounce_rules_destroy()
37 xa_erase(&vport->egress.offloads.bounce_rules, i); in esw_acl_egress_ofld_bounce_rules_destroy()
[all …]
H A Dingress_lgcy.c9 static void esw_acl_ingress_lgcy_rules_destroy(struct mlx5_vport *vport) in esw_acl_ingress_lgcy_rules_destroy() argument
11 if (vport->ingress.legacy.drop_rule) { in esw_acl_ingress_lgcy_rules_destroy()
12 mlx5_del_flow_rules(vport->ingress.legacy.drop_rule); in esw_acl_ingress_lgcy_rules_destroy()
13 vport->ingress.legacy.drop_rule = NULL; in esw_acl_ingress_lgcy_rules_destroy()
15 esw_acl_ingress_allow_rule_destroy(vport); in esw_acl_ingress_lgcy_rules_destroy()
19 struct mlx5_vport *vport) in esw_acl_ingress_lgcy_groups_create() argument
42 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
45 esw_warn(dev, "vport[%d] ingress create untagged spoofchk flow group, err(%d)\n", in esw_acl_ingress_lgcy_groups_create()
46 vport->vport, err); in esw_acl_ingress_lgcy_groups_create()
49 vport->ingress.legacy.allow_untagged_spoofchk_grp = g; in esw_acl_ingress_lgcy_groups_create()
[all …]
H A Dhelper.c9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) in esw_acl_table_create() argument
26 vport_num = vport->vport; in esw_acl_table_create()
27 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create()
30 root_ns = mlx5_get_flow_vport_namespace(dev, ns, vport->index); in esw_acl_table_create()
32 esw_warn(dev, "Failed to get E-Switch root namespace for vport (%d)\n", in esw_acl_table_create()
43 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, in esw_acl_table_create()
50 struct mlx5_vport *vport, in esw_egress_acl_vlan_create() argument
58 if (vport->egress.allowed_vlan) in esw_egress_acl_vlan_create()
72 vport->egress.allowed_vlan = in esw_egress_acl_vlan_create()
73 mlx5_add_flow_rules(vport->egress.acl, spec, in esw_egress_acl_vlan_create()
[all …]
/linux/net/openvswitch/
H A Dvport-netdev.c21 #include "vport.h"
22 #include "vport-internal_dev.h"
23 #include "vport-netdev.h"
30 struct vport *vport; in netdev_port_receive()
32 vport = ovs_netdev_get_vport(skb->dev); in netdev_port_receive()
33 if (unlikely(!vport)) in netdev_port_receive()
49 ovs_vport_receive(vport, skb, skb_tunnel_info(skb)); in netdev_port_receive()
69 struct vport *local; in get_dpdev()
75 static struct vport *ovs_netdev_lin in get_dpdev()
31 struct vport *vport; netdev_port_receive() local
76 ovs_netdev_link(struct vport * vport) ovs_netdev_link() argument
124 struct vport *vport; netdev_create() local
162 struct vport *vport = container_of(rcu, struct vport, rcu); vport_netdev_free() local
168 ovs_netdev_detach_dev(struct vport * vport) ovs_netdev_detach_dev() argument
182 netdev_destroy(struct vport * vport) netdev_destroy() argument
[all...]
H A Dvport.c21 #include "vport.h"
22 #include "vport-internal_dev.h"
31 * ovs_vport_init - initialize vport subsystem
33 * Called at module load time to initialize the vport subsystem.
45 * ovs_vport_exit - shutdown vport subsystem
47 * Called at module exit time to shutdown the vport subsystem.
92 struct vport *ovs_vport_locate(const struct net *net, const char *name) in ovs_vport_locate()
95 struct vport *vport; in ovs_vport_locate() local
97 hlist_for_each_entry_rcu(vport, bucket, hash_node, in ovs_vport_locate()
99 if (!strcmp(name, ovs_vport_name(vport)) && in ovs_vport_locate()
[all …]
H A Dvport.h20 struct vport;
23 /* The following definitions are for users of the vport subsystem: */
28 struct vport *ovs_vport_add(const struct vport_parms *);
29 void ovs_vport_del(struct vport *);
31 struct vport *ovs_vport_locate(const struct net *net, const char *name);
33 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *);
35 int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb);
37 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
38 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *);
39 u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *);
[all …]
H A Dvport-internal_dev.c18 #include "vport-internal_dev.h"
19 #include "vport-netdev.h"
22 struct vport *vport; member
42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
78 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local
80 ovs_vport_free(vport); in internal_dev_destructor()
125 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create() local
127 struct vport *vpor in internal_dev_create()
175 internal_dev_destroy(struct vport * vport) internal_dev_destroy() argument
[all...]
/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.c53 inline void lpfc_vport_set_state(struct lpfc_vport *vport, in lpfc_vport_set_state() argument
56 struct fc_vport *fc_vport = vport->fc_vport; in lpfc_vport_set_state()
76 vport->port_state = LPFC_VPORT_FAILED; in lpfc_vport_set_state()
79 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_vport_set_state()
118 lpfc_vport_sparm(struct lpfc_hba *phba, struct lpfc_vport *vport) in lpfc_vport_sparm() argument
131 rc = lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm()
139 * this per vport to start the FDISC. If the mailbox fails, in lpfc_vport_sparm()
146 pmb->vport = vport; in lpfc_vport_sparm()
150 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_vport_sparm()
158 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_vport_sparm()
[all …]
H A Dlpfc_ct.c157 struct lpfc_vport *vport = ndlp->vport; in lpfc_ct_reject_event() local
158 struct lpfc_hba *phba = vport->phba; in lpfc_ct_reject_event()
241 cmdiocbq->vport = vport; in lpfc_ct_reject_event()
267 lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS, in lpfc_ct_reject_event()
269 rc, vport->fc_flag); in lpfc_ct_reject_event()
286 struct lpfc_vport *vport = ctiocbq->vport; in lpfc_ct_handle_mibreq() local
294 lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS, in lpfc_ct_handle_mibreq()
300 /* Ignore traffic received during vport shutdown */ in lpfc_ct_handle_mibreq()
301 if (test_bit(FC_UNLOADING, &vport->load_flag)) in lpfc_ct_handle_mibreq()
304 ndlp = lpfc_findnode_did(vport, did); in lpfc_ct_handle_mibreq()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c37 #include <linux/mlx5/vport.h>
59 /* Vport UC/MC hash node */
63 u16 vport; member
66 /* A flag indicating that mac was added due to mc promiscuous vport */
109 struct mlx5_vport *vport; in mlx5_eswitch_get_vport() local
114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport()
115 if (!vport) { in mlx5_eswitch_get_vport()
116 esw_debug(esw->dev, "vport out of range: num(0x%x)\n", vport_num); in mlx5_eswitch_get_vport()
119 return vport; in mlx5_eswitch_get_vport()
122 static int arm_vport_context_events_cmd(struct mlx5_core_dev *dev, u16 vport, in arm_vport_context_events_cmd() argument
153 mlx5_eswitch_modify_esw_vport_context(struct mlx5_core_dev * dev,u16 vport,bool other_vport,void * in) mlx5_eswitch_modify_esw_vport_context() argument
163 modify_esw_vport_cvlan(struct mlx5_core_dev * dev,u16 vport,u16 vlan,u8 qos,u8 set_flags) modify_esw_vport_cvlan() argument
207 __esw_fdb_set_vport_rule(struct mlx5_eswitch * esw,u16 vport,bool rx_rule,u8 mac_c[ETH_ALEN],u8 mac_v[ETH_ALEN]) __esw_fdb_set_vport_rule() argument
270 esw_fdb_set_vport_rule(struct mlx5_eswitch * esw,u8 mac[ETH_ALEN],u16 vport) esw_fdb_set_vport_rule() argument
279 esw_fdb_set_vport_allmulti_rule(struct mlx5_eswitch * esw,u16 vport) esw_fdb_set_vport_allmulti_rule() argument
292 esw_fdb_set_vport_promisc_rule(struct mlx5_eswitch * esw,u16 vport) esw_fdb_set_vport_promisc_rule() argument
309 u16 vport = vaddr->vport; esw_add_uc_addr() local
342 u16 vport = vaddr->vport; esw_del_uc_addr() local
371 struct mlx5_vport *vport; update_allmulti_vports() local
420 u16 vport = vaddr->vport; esw_add_mc_addr() local
460 u16 vport = vaddr->vport; esw_del_mc_addr() local
499 esw_apply_vport_addr_list(struct mlx5_eswitch * esw,struct mlx5_vport * vport,int list_type) esw_apply_vport_addr_list() argument
533 esw_update_vport_addr_list(struct mlx5_eswitch * esw,struct mlx5_vport * vport,int list_type) esw_update_vport_addr_list() argument
613 esw_update_vport_mc_promisc(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_update_vport_mc_promisc() argument
648 esw_apply_vport_rx_mode(struct mlx5_eswitch * esw,struct mlx5_vport * vport,bool promisc,bool mc_promisc) esw_apply_vport_rx_mode() argument
691 esw_update_vport_rx_mode(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_update_vport_rx_mode() argument
718 esw_vport_change_handle_locked(struct mlx5_vport * vport) esw_vport_change_handle_locked() argument
756 struct mlx5_vport *vport = esw_vport_change_handler() local
778 esw_vport_setup_acl(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_setup_acl() argument
787 esw_vport_cleanup_acl(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_cleanup_acl() argument
795 mlx5_esw_vport_caps_get(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_caps_get() argument
838 struct mlx5_vport *vport; mlx5_esw_vport_vhca_id() local
849 esw_vport_to_func_type(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_to_func_type() argument
882 esw_vport_setup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_setup() argument
924 esw_vport_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_cleanup() argument
939 mlx5_esw_vport_set_max_tx_speed(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_set_max_tx_speed() argument
956 mlx5_esw_vport_enable(struct mlx5_eswitch * esw,struct mlx5_vport * vport,enum mlx5_eswitch_vport_event enabled_events) mlx5_esw_vport_enable() argument
1016 mlx5_esw_vport_disable(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_disable() argument
1068 struct mlx5_vport *vport; eswitch_vport_event() local
1282 struct mlx5_vport *vport; mlx5_eswitch_clear_vf_vports_info() local
1294 struct mlx5_vport *vport; mlx5_eswitch_clear_ec_vf_vports_info() local
1304 mlx5_eswitch_load_vport(struct mlx5_eswitch * esw,struct mlx5_vport * vport,enum mlx5_eswitch_vport_event enabled_events) mlx5_eswitch_load_vport() argument
1324 mlx5_eswitch_unload_vport(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_eswitch_unload_vport() argument
1333 struct mlx5_vport *vport; mlx5_eswitch_load_pf_vf_vport() local
1356 struct mlx5_vport *vport; mlx5_eswitch_unload_pf_vf_vport() local
1370 struct mlx5_vport *vport; mlx5_eswitch_load_sf_vport() local
1394 struct mlx5_vport *vport; mlx5_eswitch_unload_sf_vport() local
1406 struct mlx5_vport *vport; mlx5_eswitch_unload_vf_vports() local
1420 struct mlx5_vport *vport; mlx5_eswitch_unload_ec_vf_vports() local
1432 struct mlx5_vport *vport; mlx5_eswitch_unload_adj_vf_vports() local
1446 struct mlx5_vport *vport; mlx5_eswitch_load_adj_vf_vports() local
1469 struct mlx5_vport *vport; mlx5_eswitch_load_vf_vports() local
1489 struct mlx5_vport *vport; mlx5_eswitch_load_ec_vf_vports() local
1509 struct mlx5_vport *vport; mlx5_esw_pf_enable_hca() local
1535 struct mlx5_vport *vport; mlx5_esw_pf_disable_hca() local
2228 struct mlx5_vport *vport; mlx5_esw_vport_alloc() local
2253 mlx5_esw_vport_free(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_free() argument
2359 struct mlx5_vport *vport; mlx5_esw_vports_cleanup() local
2425 struct mlx5_vport *vport; mlx5_esw_vports_init() local
2672 mlx5_eswitch_set_vport_mac(struct mlx5_eswitch * esw,u16 vport,const u8 * mac) mlx5_eswitch_set_vport_mac() argument
2727 mlx5_eswitch_set_vport_state(struct mlx5_eswitch * esw,u16 vport,int link_state) mlx5_eswitch_set_vport_state() argument
2765 mlx5_eswitch_get_vport_config(struct mlx5_eswitch * esw,u16 vport,struct ifla_vf_info * ivi) mlx5_eswitch_get_vport_config() argument
2797 __mlx5_eswitch_set_vport_vlan(struct mlx5_eswitch * esw,u16 vport,u16 vlan,u8 qos,u8 set_flags) __mlx5_eswitch_set_vport_vlan() argument
2830 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); mlx5_eswitch_get_vport_stats() local
[all...]
H A Deswitch_offloads.c37 #include <linux/mlx5/vport.h>
99 spec->flow_context.flow_source = (attr->in_rep->vport == MLX5_VPORT_UPLINK) ? in mlx5_eswitch_set_rule_flow_source()
129 u16 vport) in mlx5_eswitch_set_rule_source_port() argument
136 /* Use metadata matching because vport is not represented by single in mlx5_eswitch_set_rule_source_port()
137 * VHCA in dual-port RoCE mode, and matching on source vport may fail. in mlx5_eswitch_set_rule_source_port()
141 vport = mlx5_esw_indir_table_decap_vport(attr); in mlx5_eswitch_set_rule_source_port()
148 mlx5_eswitch_get_vport_metadata_for_match(src_esw, vport); in mlx5_eswitch_set_rule_source_port()
160 MLX5_SET(fte_match_set_misc, misc, source_port, vport); in mlx5_eswitch_set_rule_source_port()
294 else if (mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_put_dest_tables_loop()
296 mlx5_esw_indir_table_put(esw, esw_attr->dests[i].vport, fals in esw_put_dest_tables_loop()
950 u16 vport; mlx5_eswitch_add_send_to_vport_rule() local
1168 esw_set_peer_miss_rule_source_port(struct mlx5_eswitch * esw,struct mlx5_eswitch * peer_esw,struct mlx5_flow_spec * spec,u16 vport) esw_set_peer_miss_rule_source_port() argument
1595 struct mlx5_vport *vport; esw_vport_tbl_put() local
1611 struct mlx5_vport *vport; esw_vport_tbl_get() local
2214 mlx5_esw_set_spec_source_port(struct mlx5_eswitch * esw,u16 vport,struct mlx5_flow_spec * spec) mlx5_esw_set_spec_source_port() argument
2241 mlx5_eswitch_create_vport_rx_rule(struct mlx5_eswitch * esw,u16 vport,struct mlx5_flow_destination * dest) mlx5_eswitch_create_vport_rx_rule() argument
2301 struct mlx5_vport *vport; mlx5_eswitch_inline_mode_get() local
2564 struct mlx5_vport *vport; mlx5_esw_fdb_active() local
2586 struct mlx5_vport *vport; mlx5_esw_fdb_inactive() local
2632 mlx5_esw_offloads_rep_remove(struct mlx5_eswitch * esw,const struct mlx5_vport * vport) mlx5_esw_offloads_rep_remove() argument
2644 mlx5_esw_offloads_rep_add(struct mlx5_eswitch * esw,const struct mlx5_vport * vport) mlx5_esw_offloads_rep_add() argument
2700 struct mlx5_vport *vport; esw_offloads_init_reps() local
2903 mlx5_esw_offloads_init_pf_vf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_init_pf_vf_rep() argument
2911 mlx5_esw_offloads_cleanup_pf_vf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_cleanup_pf_vf_rep() argument
2919 mlx5_esw_offloads_init_sf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport,struct mlx5_devlink_port * dl_port,u32 controller,u32 sfnum) mlx5_esw_offloads_init_sf_rep() argument
2926 mlx5_esw_offloads_cleanup_sf_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_cleanup_sf_rep() argument
2931 mlx5_esw_offloads_load_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_load_rep() argument
2952 mlx5_esw_offloads_unload_rep(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_offloads_unload_rep() argument
3005 __esw_set_master_egress_rule(struct mlx5_core_dev * master,struct mlx5_core_dev * slave,struct mlx5_vport * vport,struct mlx5_flow_table * acl) __esw_set_master_egress_rule() argument
3053 esw_slave_egress_create_resources(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_slave_egress_create_resources() argument
3109 esw_slave_egress_destroy_resources(struct mlx5_vport * vport) esw_slave_egress_destroy_resources() argument
3184 esw_master_egress_create_resources(struct mlx5_eswitch * esw,struct mlx5_flow_namespace * egress_ns,struct mlx5_vport * vport,size_t count) esw_master_egress_create_resources() argument
3248 esw_master_egress_destroy_resources(struct mlx5_vport * vport) esw_master_egress_destroy_resources() argument
3264 struct mlx5_vport *vport; esw_set_master_egress_rule() local
3301 struct mlx5_vport *vport; esw_unset_master_egress_rule() local
3660 esw_offloads_vport_metadata_setup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_offloads_vport_metadata_setup() argument
3672 esw_offloads_vport_metadata_cleanup(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_offloads_vport_metadata_cleanup() argument
3687 struct mlx5_vport *vport; esw_offloads_metadata_uninit() local
3699 struct mlx5_vport *vport; esw_offloads_metadata_init() local
3730 struct mlx5_vport *manager, *vport; mlx5_esw_offloads_init_deferred_metadata() local
3788 esw_vport_create_offloads_acl_tables(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_create_offloads_acl_tables() argument
3809 esw_vport_destroy_offloads_acl_tables(struct mlx5_eswitch * esw,struct mlx5_vport * vport) esw_vport_destroy_offloads_acl_tables() argument
3847 struct mlx5_vport *vport; esw_destroy_offloads_acl_tables() local
4139 struct mlx5_vport *vport; esw_offloads_enable() local
4577 struct mlx5_vport *vport; mlx5_esw_vports_inline_set() local
4848 struct mlx5_vport *vport; mlx5_eswitch_reload_reps_blocked() local
4973 mlx5_eswitch_get_proto_dev(struct mlx5_eswitch * esw,u16 vport,u8 rep_type) mlx5_eswitch_get_proto_dev() argument
4999 mlx5_eswitch_vport_rep(struct mlx5_eswitch * esw,u16 vport) mlx5_eswitch_vport_rep() argument
5020 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); mlx5_eswitch_get_vport_metadata_for_match() local
5030 mlx5_esw_vport_vhca_id_map(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_vhca_id_map() argument
5061 mlx5_esw_vport_vhca_id_unmap(struct mlx5_eswitch * esw,struct mlx5_vport * vport) mlx5_esw_vport_vhca_id_unmap() argument
5083 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); mlx5_eswitch_get_vport_metadata_for_set() local
5097 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_hw_addr_get() local
5114 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_hw_addr_set() local
5123 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_migratable_get() local
5146 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_migratable_set() local
5205 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_roce_get() local
5223 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_roce_set() local
5279 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_pf_port_fn_state_get() local
5318 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_pf_port_fn_state_set() local
5360 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_crypto_get() local
5390 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_crypto_set() local
5443 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_packet_get() local
5474 struct mlx5_vport *vport; mlx5_devlink_port_fn_ipsec_packet_set() local
5528 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_max_io_eqs_get() local
5578 struct mlx5_vport *vport = mlx5_devlink_port_vport_get(port); mlx5_devlink_port_fn_max_io_eqs_set() local
[all...]
H A Deswitch.h44 #include <linux/mlx5/vport.h>
180 /* Vport context events */
191 struct mlx5_vport *vport; member
196 struct mlx5_vport *vport) in mlx5_devlink_port_init() argument
198 dl_port->vport = vport; in mlx5_devlink_port_init()
208 return mlx5_devlink_port_get(dl_port)->vport; in mlx5_devlink_port_vport_get()
213 #define MLX5_VPORT_INVAL_VHCA_ID(vport) \ argument
214 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID)
233 u16 function_id; /* Function ID of the delegated VPort */
256 u16 vport; global() member
587 u16 vport; global() member
769 mlx5_esw_for_each_vport(esw,index,vport) global() argument
776 mlx5_esw_for_each_vport_marked(esw,index,vport,last,filter) global() argument
779 mlx5_esw_for_each_vf_vport(esw,index,vport,last) global() argument
782 mlx5_esw_for_each_host_func_vport(esw,index,vport,last) global() argument
790 mlx5_esw_for_each_ec_vf_vport(esw,index,vport,last) global() argument
801 mlx5_esw_for_each_spf_vport(esw,index,vport) global() argument
852 u16 vport; global() member
1029 mlx5_eswitch_set_vport_state(struct mlx5_eswitch * esw,u16 vport,int link_state) mlx5_eswitch_set_vport_state() argument
[all...]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_lib.c275 /* As IDPF_MIN_Q_VEC per default vport is put aside in the in idpf_req_rel_vector_indexes()
407 * vport in idpf_intr_req()
447 * @vport: main vport struct
451 static void idpf_del_all_flow_steer_filters(struct idpf_vport *vport) in idpf_del_all_flow_steer_filters() argument
456 vport_config = vport->adapter->vport_config[vport->idx]; in idpf_del_all_flow_steer_filters()
470 * @vconfig: Vport config structure
494 * @vport_config: Vport config structure
517 * @vport
525 idpf_del_mac_filter(struct idpf_vport * vport,struct idpf_netdev_priv * np,const u8 * macaddr,bool async) idpf_del_mac_filter() argument
606 idpf_add_mac_filter(struct idpf_vport * vport,struct idpf_netdev_priv * np,const u8 * macaddr,bool async) idpf_add_mac_filter() argument
632 idpf_del_all_mac_filters(struct idpf_vport * vport) idpf_del_all_mac_filters() argument
656 idpf_restore_mac_filters(struct idpf_vport * vport) idpf_restore_mac_filters() argument
681 idpf_remove_mac_filters(struct idpf_vport * vport) idpf_remove_mac_filters() argument
703 idpf_deinit_mac_addr(struct idpf_vport * vport) idpf_deinit_mac_addr() argument
726 idpf_init_mac_addr(struct idpf_vport * vport,struct net_device * netdev) idpf_init_mac_addr() argument
792 struct idpf_vport *vport = adapter->vports[i]; idpf_attach_and_open() local
826 idpf_cfg_netdev(struct idpf_vport * vport) idpf_cfg_netdev() argument
968 idpf_remove_features(struct idpf_vport * vport) idpf_remove_features() argument
981 idpf_vport_stop(struct idpf_vport * vport,bool rtnl) idpf_vport_stop() argument
1037 struct idpf_vport *vport; idpf_stop() local
1056 idpf_decfg_netdev(struct idpf_vport * vport) idpf_decfg_netdev() argument
1075 idpf_vport_rel(struct idpf_vport * vport) idpf_vport_rel() argument
1125 idpf_vport_dealloc(struct idpf_vport * vport) idpf_vport_dealloc() argument
1161 idpf_is_hsplit_supported(const struct idpf_vport * vport) idpf_is_hsplit_supported() argument
1176 idpf_vport_get_hsplit(const struct idpf_vport * vport) idpf_vport_get_hsplit() argument
1197 idpf_vport_set_hsplit(const struct idpf_vport * vport,u8 val) idpf_vport_set_hsplit() argument
1233 struct idpf_vport *vport; idpf_vport_alloc() local
1359 struct idpf_vport *vport = adapter->vports[i]; idpf_statistics_task() local
1426 idpf_restore_features(struct idpf_vport * vport) idpf_restore_features() argument
1440 idpf_set_real_num_queues(struct idpf_vport * vport) idpf_set_real_num_queues() argument
1456 idpf_up_complete(struct idpf_vport * vport) idpf_up_complete() argument
1500 idpf_vport_open(struct idpf_vport * vport,bool rtnl) idpf_vport_open() argument
1658 struct idpf_vport *vport; idpf_init_task() local
2009 idpf_initiate_soft_reset(struct idpf_vport * vport,enum idpf_vport_reset_cause reset_cause) idpf_initiate_soft_reset() argument
2257 struct idpf_vport *vport; idpf_set_features() local
2329 struct idpf_vport *vport; idpf_open() local
2356 struct idpf_vport *vport; idpf_change_mtu() local
2534 struct idpf_vport *vport; idpf_set_mac() local
2582 struct idpf_vport *vport; idpf_hwtstamp_set() local
2609 struct idpf_vport *vport; idpf_hwtstamp_get() local
[all...]
H A Dxdp.c48 const struct idpf_vport *vport = rxq->q_vector->vport; in __idpf_xdp_rxq_info_init() local
57 err = __xdp_rxq_info_reg(&rxq->xdp_rxq, vport->netdev, rxq->idx, in __idpf_xdp_rxq_info_init()
63 rsrc = &vport->dflt_qv_rsrc; in __idpf_xdp_rxq_info_init()
82 rxq->xdpsqs = &vport->txqs[rsrc->xdp_txq_offset]; in __idpf_xdp_rxq_info_init()
83 rxq->num_xdp_txq = vport->num_xdp_txq; in __idpf_xdp_rxq_info_init()
152 int idpf_xdpsqs_get(const struct idpf_vport *vport) in idpf_xdpsqs_get() argument
158 if (!idpf_xdp_enabled(vport)) in idpf_xdpsqs_get()
161 timers = kvzalloc_objs(*timers, vport->num_xdp_txq); in idpf_xdpsqs_get()
165 for (u32 i = 0; i < vport->num_xdp_txq; i++) { in idpf_xdpsqs_get()
176 dev = vport->netdev; in idpf_xdpsqs_get()
[all …]
H A Didpf_ethtool.c16 struct idpf_vport *vport; in idpf_get_rx_ring_count() local
20 vport = idpf_netdev_to_vport(netdev); in idpf_get_rx_ring_count()
21 num_rxq = vport->dflt_qv_rsrc.num_rxq; in idpf_get_rx_ring_count()
42 struct idpf_vport *vport; in idpf_get_rxnfc() local
47 vport = idpf_netdev_to_vport(netdev); in idpf_get_rxnfc()
54 cmd->data = idpf_fsteer_max_rules(vport); in idpf_get_rxnfc()
72 cmd->data = idpf_fsteer_max_rules(vport); in idpf_get_rxnfc()
178 struct idpf_vport *vport; in idpf_add_flow_steer() local
183 vport = idpf_netdev_to_vport(netdev); in idpf_add_flow_steer()
184 vport_config = vport->adapter->vport_config[np->vport_idx]; in idpf_add_flow_steer()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_mbx.c26 * @vport: pointer to struct hclge_vport
31 static int hclge_gen_resp_to_vf(struct hclge_vport *vport, in hclge_gen_resp_to_vf() argument
36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf()
91 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument
95 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg()
127 int hclge_inform_vf_reset(struct hclge_vport *vport, u16 reset_type) in hclge_inform_vf_reset() argument
132 dest_vfid = (u8)vport->vport_id; in hclge_inform_vf_reset()
136 return hclge_send_mbx_msg(vport, (u8 *)&msg_data, sizeof(msg_data), in hclge_inform_vf_reset()
140 int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport) in hclge_inform_reset_assert_to_vf() argument
142 struct hclge_dev *hdev = vport in hclge_inform_reset_assert_to_vf()
183 hclge_get_ring_chain_from_mbx(struct hclge_mbx_vf_to_pf_cmd * req,struct hnae3_ring_chain_node * ring_chain,struct hclge_vport * vport) hclge_get_ring_chain_from_mbx() argument
240 hclge_map_unmap_ring_to_vf_vector(struct hclge_vport * vport,bool en,struct hclge_mbx_vf_to_pf_cmd * req) hclge_map_unmap_ring_to_vf_vector() argument
259 hclge_query_ring_vector_map(struct hclge_vport * vport,struct hnae3_ring_chain_node * ring_chain,struct hclge_desc * desc) hclge_query_ring_vector_map() argument
288 hclge_get_vf_ring_vector_map(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * req,struct hclge_respond_to_vf_msg * resp) hclge_get_vf_ring_vector_map() argument
334 hclge_set_vf_promisc_mode(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * req) hclge_set_vf_promisc_mode() argument
354 hclge_set_vf_uc_mac_addr(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req) hclge_set_vf_uc_mac_addr() argument
398 hclge_set_vf_mc_mac_addr(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req) hclge_set_vf_mc_mac_addr() argument
420 hclge_push_vf_port_base_vlan_info(struct hclge_vport * vport,u8 vfid,u16 state,struct hclge_vlan_info * vlan_info) hclge_push_vf_port_base_vlan_info() argument
435 hclge_set_vf_vlan_cfg(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req,struct hclge_respond_to_vf_msg * resp_msg) hclge_set_vf_vlan_cfg() argument
476 hclge_set_vf_alive(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req) hclge_set_vf_alive() argument
490 hclge_get_basic_info(struct hclge_vport * vport,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_basic_info() argument
511 hclge_get_vf_queue_info(struct hclge_vport * vport,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_vf_queue_info() argument
527 hclge_get_vf_mac_addr(struct hclge_vport * vport,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_vf_mac_addr() argument
534 hclge_get_vf_queue_depth(struct hclge_vport * vport,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_vf_queue_depth() argument
550 hclge_get_vf_media_type(struct hclge_vport * vport,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_vf_media_type() argument
566 hclge_push_vf_link_status(struct hclge_vport * vport) hclge_push_vf_link_status() argument
599 hclge_get_link_mode(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req) hclge_get_link_mode() argument
622 hclge_mbx_reset_vf_queue(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req,struct hclge_respond_to_vf_msg * resp_msg) hclge_mbx_reset_vf_queue() argument
650 hclge_reset_vf(struct hclge_vport * vport) hclge_reset_vf() argument
660 hclge_notify_vf_config(struct hclge_vport * vport) hclge_notify_vf_config() argument
697 hclge_vf_keep_alive(struct hclge_vport * vport) hclge_vf_keep_alive() argument
712 hclge_set_vf_mtu(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req) hclge_set_vf_mtu() argument
724 hclge_get_queue_id_in_pf(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_queue_id_in_pf() argument
745 hclge_get_rss_key(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req,struct hclge_respond_to_vf_msg * resp_msg) hclge_get_rss_key() argument
818 hclge_handle_vf_tbl(struct hclge_vport * vport,struct hclge_mbx_vf_to_pf_cmd * mbx_req) hclge_handle_vf_tbl() argument
[all...]
H A Dhclge_main.c547 handle = &hdev->vport[0].nic; in hclge_update_stats_for_all()
567 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_update_stats() local
568 struct hclge_dev *hdev = vport->back; in hclge_update_stats()
597 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_sset_count() local
598 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count()
646 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_strings() local
647 struct hclge_dev *hdev = vport->back; in hclge_get_strings()
682 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_stats() local
683 struct hclge_dev *hdev = vport->back; in hclge_get_stats()
694 struct hclge_vport *vport in hclge_get_mac_stat() local
873 struct hclge_vport *vport = hclge_get_vport(handle); hclge_check_port_speed() local
1633 hclge_assign_tqp(struct hclge_vport * vport,u16 num_tqps) hclge_assign_tqp() argument
1662 hclge_knic_setup(struct hclge_vport * vport,u16 num_tqps,u16 num_tx_desc,u16 num_rx_desc) hclge_knic_setup() argument
1690 hclge_map_tqp_to_vport(struct hclge_dev * hdev,struct hclge_vport * vport) hclge_map_tqp_to_vport() argument
1715 struct hclge_vport *vport = hdev->vport; hclge_map_tqp() local
1732 hclge_vport_setup(struct hclge_vport * vport,u16 num_tqps) hclge_vport_setup() argument
1755 struct hclge_vport *vport; hclge_alloc_vport() local
2414 hclge_init_roce_base_info(struct hclge_vport * vport) hclge_init_roce_base_info() argument
2578 struct hclge_vport *vport = hclge_get_vport(handle); hclge_cfg_mac_speed_dup_h() local
2620 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_autoneg() local
2642 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_autoneg() local
2654 struct hclge_vport *vport = hclge_get_vport(handle); hclge_restart_autoneg() local
2668 struct hclge_vport *vport = hclge_get_vport(handle); hclge_halt_autoneg() local
2814 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fec_stats() local
2858 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_fec() local
2879 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fec() local
2996 struct hclge_vport *vport; hclge_push_link_status() local
3239 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_phy_link_ksettings() local
3290 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ethtool_ksettings_set() local
3336 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_phy_link_ksettings() local
3444 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_status() local
3475 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_vf_config() local
3499 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_link_state() local
3598 struct hclge_vport *vport = hclge_get_vport(h); hclge_set_pfc_prevention_tout() local
3628 struct hclge_vport *vport = hclge_get_vport(h); hclge_get_pfc_prevention_tout() local
3961 struct hclge_vport *vport = &hdev->vport[i]; hclge_set_all_vf_rst() local
4723 struct hclge_vport *vport = &hdev->vport[i]; hclge_update_vport_alive() local
4864 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_vector() local
4904 struct hclge_vport *vport = hclge_get_vport(handle); hclge_put_vector() local
4924 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_rss() local
4939 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_rss() local
4962 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_rss_tuple() local
4980 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_rss_tuple() local
4998 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_tc_size() local
5007 struct hclge_vport *vport = hdev->vport; hclge_init_rss_tc_mode() local
5071 hclge_bind_ring_with_vector(struct hclge_vport * vport,int vector_id,bool en,struct hnae3_ring_chain_node * ring_chain) hclge_bind_ring_with_vector() argument
5152 struct hclge_vport *vport = hclge_get_vport(handle); hclge_map_ring_to_vector() local
5169 struct hclge_vport *vport = hclge_get_vport(handle); hclge_unmap_ring_frm_vector() local
5195 struct hclge_vport *vport = &hdev->vport[vf_id]; hclge_cmd_set_promisc_mode() local
5237 hclge_set_vport_promisc_mode(struct hclge_vport * vport,bool en_uc_pmc,bool en_mc_pmc,bool en_bc_pmc) hclge_set_vport_promisc_mode() argument
5247 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_promisc_mode() local
5264 struct hclge_vport *vport = hclge_get_vport(handle); hclge_request_update_promisc_mode() local
5271 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_hw_reset_stat() local
5280 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_cmdq_stat() local
5288 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_dev_resetting() local
5296 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_dev_reset_cnt() local
5678 struct hclge_vport *vport = hclge_get_vport(handle); hclge_tqp_enable() local
5694 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_loopback() local
5774 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_timer_task() local
5790 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_start() local
5808 struct hclge_vport *vport = hclge_get_vport(handle); hclge_ae_stop() local
5844 hclge_vport_start(struct hclge_vport * vport) hclge_vport_start() argument
5868 hclge_vport_stop(struct hclge_vport * vport) hclge_vport_stop() argument
5877 struct hclge_vport *vport = hclge_get_vport(handle); hclge_client_start() local
5884 struct hclge_vport *vport = hclge_get_vport(handle); hclge_client_stop() local
5889 hclge_get_mac_vlan_cmd_status(struct hclge_vport * vport,u16 cmdq_resp,u8 resp_code,enum hclge_mac_vlan_tbl_opcode op) hclge_get_mac_vlan_cmd_status() argument
6008 hclge_remove_mac_vlan_tbl(struct hclge_vport * vport,struct hclge_mac_vlan_tbl_entry_cmd * req) hclge_remove_mac_vlan_tbl() argument
6035 hclge_lookup_mac_vlan_tbl(struct hclge_vport * vport,struct hclge_mac_vlan_tbl_entry_cmd * req,struct hclge_desc * desc,bool is_mc) hclge_lookup_mac_vlan_tbl() argument
6078 hclge_add_mac_vlan_tbl(struct hclge_vport * vport,struct hclge_mac_vlan_tbl_entry_cmd * req,struct hclge_desc * mc_desc) hclge_add_mac_vlan_tbl() argument
6182 struct hclge_vport *vport; hclge_reset_umv_space() local
6198 hclge_is_umv_space_full(struct hclge_vport * vport,bool need_lock) hclge_is_umv_space_full() argument
6215 hclge_update_umv_space(struct hclge_vport * vport,bool is_free) hclge_update_umv_space() argument
6274 hclge_update_mac_list(struct hclge_vport * vport,enum HCLGE_MAC_NODE_STATE state,enum HCLGE_MAC_ADDR_TYPE mac_type,const unsigned char * addr) hclge_update_mac_list() argument
6331 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_uc_addr() local
6337 hclge_add_uc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_add_uc_addr_common() argument
6402 struct hclge_vport *vport = hclge_get_vport(handle); hclge_rm_uc_addr() local
6408 hclge_rm_uc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_rm_uc_addr_common() argument
6443 struct hclge_vport *vport = hclge_get_vport(handle); hclge_add_mc_addr() local
6449 hclge_add_mc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_add_mc_addr_common() argument
6507 struct hclge_vport *vport = hclge_get_vport(handle); hclge_rm_mc_addr() local
6513 hclge_rm_mc_addr_common(struct hclge_vport * vport,const unsigned char * addr) hclge_rm_mc_addr_common() argument
6556 hclge_sync_vport_mac_list(struct hclge_vport * vport,struct list_head * list,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_sync_vport_mac_list() argument
6592 hclge_unsync_vport_mac_list(struct hclge_vport * vport,struct list_head * list,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_unsync_vport_mac_list() argument
6677 hclge_update_overflow_flags(struct hclge_vport * vport,enum HCLGE_MAC_ADDR_TYPE mac_type,bool is_all_added) hclge_update_overflow_flags() argument
6694 hclge_sync_vport_mac_table(struct hclge_vport * vport,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_sync_vport_mac_table() argument
6751 hclge_need_sync_mac_table(struct hclge_vport * vport) hclge_need_sync_mac_table() argument
6769 struct hclge_vport *vport = &hdev->vport[i]; hclge_sync_mac_table() local
6801 hclge_unsync_del_list(struct hclge_vport * vport,int (* unsync)(struct hclge_vport * vport,const unsigned char * addr),bool is_del_list,struct list_head * tmp_del_list) hclge_unsync_del_list() argument
6802 hclge_unsync_del_list(struct hclge_vport * vport,int (* unsync)(struct hclge_vport * vport,const unsigned char * addr),bool is_del_list,struct list_head * tmp_del_list) hclge_unsync_del_list() argument
6830 hclge_rm_vport_all_mac_table(struct hclge_vport * vport,bool is_del_list,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_rm_vport_all_mac_table() argument
6866 hclge_uninit_vport_mac_list(struct hclge_vport * vport,enum HCLGE_MAC_ADDR_TYPE mac_type) hclge_uninit_vport_mac_list() argument
6911 struct hclge_vport *vport; hclge_uninit_mac_table() local
6966 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_mac() local
7047 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_mac_addr() local
7053 hclge_update_mac_node_for_dev_addr(struct hclge_vport * vport,const u8 * old_addr,const u8 * new_addr) hclge_update_mac_node_for_dev_addr() argument
7101 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_mac_addr() local
7179 struct hclge_vport *vport = hclge_get_vport(handle); hclge_do_ioctl() local
7243 hclge_set_vport_vlan_filter(struct hclge_vport * vport,bool enable) hclge_set_vport_vlan_filter() argument
7275 hclge_need_enable_vport_vlan_filter(struct hclge_vport * vport) hclge_need_enable_vport_vlan_filter() argument
7306 __hclge_enable_vport_vlan_filter(struct hclge_vport * vport,bool request_en) __hclge_enable_vport_vlan_filter() argument
7325 hclge_enable_vport_vlan_filter(struct hclge_vport * vport,bool request_en) hclge_enable_vport_vlan_filter() argument
7340 struct hclge_vport *vport = hclge_get_vport(handle); hclge_enable_vlan_filter() local
7433 struct hclge_vport *vport = &hdev->vport[vfid]; hclge_set_vf_vlan_common() local
7547 hclge_set_vlan_tx_offload_cfg(struct hclge_vport * vport) hclge_set_vlan_tx_offload_cfg() argument
7592 hclge_set_vlan_rx_offload_cfg(struct hclge_vport * vport) hclge_set_vlan_rx_offload_cfg() argument
7632 hclge_vlan_offload_cfg(struct hclge_vport * vport,u16 port_base_vlan_state,u16 vlan_tag,u8 qos) hclge_vlan_offload_cfg() argument
7730 struct hclge_vport *vport; hclge_init_vlan_filter() local
7774 struct hclge_vport *vport; hclge_init_vport_vlan_offload() local
7811 hclge_add_vport_vlan_table(struct hclge_vport * vport,u16 vlan_id,bool writen_to_tbl) hclge_add_vport_vlan_table() argument
7839 hclge_add_vport_all_vlan_table(struct hclge_vport * vport) hclge_add_vport_all_vlan_table() argument
7869 hclge_rm_vport_vlan_table(struct hclge_vport * vport,u16 vlan_id,bool is_write_tbl) hclge_rm_vport_vlan_table() argument
7891 hclge_rm_vport_all_vlan_table(struct hclge_vport * vport,bool is_del_list) hclge_rm_vport_all_vlan_table() argument
7919 struct hclge_vport *vport; hclge_uninit_vport_vlan_table() local
7938 struct hclge_vport *vport; hclge_restore_vport_port_base_vlan_config() local
7966 hclge_restore_vport_vlan_table(struct hclge_vport * vport) hclge_restore_vport_vlan_table() argument
8008 hclge_restore_mac_table_common(struct hclge_vport * vport) hclge_restore_mac_table_common() argument
8021 struct hclge_vport *vport = &hdev->vport[0]; hclge_restore_hw_table() local
8033 struct hclge_vport *vport = hclge_get_vport(handle); hclge_en_hw_strip_rxvtag() local
8053 hclge_set_vport_vlan_fltr_change(struct hclge_vport * vport) hclge_set_vport_vlan_fltr_change() argument
8061 hclge_update_vlan_filter_entries(struct hclge_vport * vport,u16 port_base_vlan_state,struct hclge_vlan_info * new_info,struct hclge_vlan_info * old_info) hclge_update_vlan_filter_entries() argument
8110 hclge_modify_port_base_vlan_tag(struct hclge_vport * vport,struct hclge_vlan_info * new_info,struct hclge_vlan_info * old_info) hclge_modify_port_base_vlan_tag() argument
8141 hclge_update_port_base_vlan_cfg(struct hclge_vport * vport,u16 state,struct hclge_vlan_info * vlan_info) hclge_update_port_base_vlan_cfg() argument
8182 hclge_get_port_base_vlan_state(struct hclge_vport * vport,enum hnae3_port_base_vlan_state state,u16 vlan,u8 qos) hclge_get_port_base_vlan_state() argument
8207 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_vlan_filter() local
8266 struct hclge_vport *vport; hclge_clear_vf_vlan() local
8288 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vlan_filter() local
8349 struct hclge_vport *vport; hclge_sync_vlan_fltr_state() local
8385 struct hclge_vport *vport = &hdev->vport[i]; hclge_sync_vlan_filter() local
8433 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_mtu() local
8438 hclge_set_vport_mtu(struct hclge_vport * vport,int new_mtu) hclge_set_vport_mtu() argument
8555 struct hclge_vport *vport = hclge_get_vport(handle); hclge_reset_tqp_cmd() local
8609 struct hclge_vport *vport = hclge_get_vport(handle); hclge_reset_rcb() local
8650 struct hclge_vport *vport = hclge_get_vport(handle); hclge_reset_tqp() local
8669 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_fw_version() local
8756 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_pauseparam() local
8802 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_pauseparam() local
8838 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_ksettings_an_result() local
8854 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_media_type() local
8873 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_mdix_mode() local
8949 hclge_init_nic_client_instance(struct hnae3_ae_dev * ae_dev,struct hclge_vport * vport) hclge_init_nic_client_instance() argument
8993 hclge_init_roce_client_instance(struct hnae3_ae_dev * ae_dev,struct hclge_vport * vport) hclge_init_roce_client_instance() argument
9047 struct hclge_vport *vport = &hdev->vport[0]; hclge_init_client_instance() local
9100 struct hclge_vport *vport = &hdev->vport[0]; hclge_uninit_client_instance() local
9291 struct hclge_vport *vport = &hdev->vport[i]; hclge_clear_resetting_state() local
9339 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_wol_info() local
9458 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_wol() local
9790 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_spoofchk() local
9824 struct hclge_vport *vport = hdev->vport; hclge_reset_vport_spoofchk() local
9846 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_trust() local
9871 struct hclge_vport *vport = &hdev->vport[vf]; hclge_reset_vf_rate() local
9899 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_vf_rate() local
9926 struct hclge_vport *vport; hclge_resume_vf_rate() local
9957 struct hclge_vport *vport = hdev->vport; hclge_reset_vport_state() local
10157 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_max_channels() local
10175 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_tqps_and_rss_info() local
10184 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_rss_tc_mode_cfg() local
10214 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_channels() local
10294 struct hclge_vport *vport = hclge_get_vport(handle); hclge_set_led_id() local
10312 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_link_mode() local
10324 struct hclge_vport *vport = hclge_get_vport(handle); hclge_gro_en() local
10337 hclge_sync_vport_promisc_mode(struct hclge_vport * vport) hclge_sync_vport_promisc_mode() argument
10392 struct hclge_vport *vport; hclge_sync_promisc_mode() local
10481 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_module_eeprom() local
10509 struct hclge_vport *vport = hclge_get_vport(handle); hclge_get_link_diagnosis_info() local
10532 hclge_clear_vport_vf_info(struct hclge_vport * vport,int vfid) hclge_clear_vport_vf_info() argument
10573 struct hclge_vport *vport; hclge_clean_vport_config() local
10586 struct hclge_vport *vport = hclge_get_vport(h); hclge_get_dscp_prio() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dqos.c26 [SCHED_NODE_TYPE_VPORT] = "vport",
29 [SCHED_NODE_TYPE_VPORT_TC] = "vport TC",
52 /* Valid only if this node is associated with a vport. */
53 struct mlx5_vport *vport; member
58 /* Valid only for a TC arbiter node or vport TC arbiter. */
150 struct mlx5_vport *vport = child->vport; in esw_qos_nodes_set_parent() local
152 if (vport) in esw_qos_nodes_set_parent()
153 vport->qos.sched_node->parent = parent; in esw_qos_nodes_set_parent()
159 void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport) in mlx5_esw_qos_vport_qos_free() argument
161 if (vport->qos.sched_nodes) { in mlx5_esw_qos_vport_qos_free()
[all …]
H A Dadj_vport.c7 int mlx5_esw_adj_vport_modify(struct mlx5_core_dev *dev, u16 vport, in mlx5_esw_adj_vport_modify() argument
19 MLX5_SET(modify_vport_state_in, in, vport_number, vport); in mlx5_esw_adj_vport_modify()
28 void mlx5_esw_destroy_esw_vport(struct mlx5_core_dev *dev, u16 vport) in mlx5_esw_destroy_esw_vport() argument
34 MLX5_SET(destroy_esw_vport_in, in, vport_num, vport); in mlx5_esw_destroy_esw_vport()
60 struct mlx5_vport *vport; in mlx5_esw_adj_vport_create() local
67 "Failed to create adjacent vport for vhca_id %d, err %d\n", in mlx5_esw_adj_vport_create()
72 esw_debug(esw->dev, "Created adjacent vport[%d] %d for vhca_id 0x%x\n", in mlx5_esw_adj_vport_create()
80 vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_adj_vport_create()
81 vport->adjacent = true; in mlx5_esw_adj_vport_create()
82 vport->vhca_id = vhca_id; in mlx5_esw_adj_vport_create()
[all …]
H A Ddevlink_port.c14 struct mlx5_vport *vport = devlink_health_reporter_priv(reporter); in mlx5_esw_rep_vnic_reporter_diagnose() local
16 mlx5_reporter_vnic_diagnose_counters(vport->dev, fmsg, vport->vport, in mlx5_esw_rep_vnic_reporter_diagnose()
49 struct mlx5_vport *vport; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() local
69 vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
72 if (vport->adjacent) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
73 func_id = vport->adj_info.function_id; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
74 pfnum = vport->adj_info.parent_pci_devfn; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
102 struct mlx5_vport *vport) in mlx5_esw_offloads_pf_vf_devlink_port_init() argument
105 u16 vport_num = vport->vport; in mlx5_esw_offloads_pf_vf_devlink_port_init()
117 vport->dl_port = dl_port; in mlx5_esw_offloads_pf_vf_devlink_port_init()
[all …]
/linux/drivers/scsi/elx/libefc/
H A Defc_nport.c18 * - a vport populates associated nport
24 * - the vport is removed
226 * If this is a vport, logout of the fabric in efc_nport_shutdown()
227 * controller so that it deletes the vport in efc_nport_shutdown()
236 efc_log_debug(efc, "[%s] nport shutdown vport, send logo\n", in efc_nport_shutdown()
258 struct efc_vport *vport; in efc_vport_link_down() local
260 /* Clear the nport reference in the vport specification */ in efc_vport_link_down()
261 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_link_down()
262 if (vport->nport == nport) { in efc_vport_link_down()
264 vport->nport = NULL; in efc_vport_link_down()
[all …]
/linux/sound/isa/
H A Dsc6000.c104 char __iomem *vport;
193 static int sc6000_wait_data(char __iomem *vport) in sc6000_wait_data()
199 val = ioread8(vport + DSP_DATAVAIL); in sc6000_read()
208 static int sc6000_read(char __iomem *vport) in sc6000_write()
210 if (sc6000_wait_data(vport)) in sc6000_write()
213 return ioread8(vport + DSP_READ); in sc6000_write()
217 static int sc6000_write(struct device *devptr, char __iomem *vport, int cmd) in sc6000_write()
223 val = ioread8(vport + DSP_STATUS); in sc6000_write()
228 iowrite8(cmd, vport + DSP_COMMAND);
240 char __iomem *vport, in in sc6000_dsp_get_answer()
183 sc6000_wait_data(char __iomem * vport) sc6000_wait_data() argument
198 sc6000_read(char __iomem * vport) sc6000_read() argument
207 sc6000_write(struct device * devptr,char __iomem * vport,int cmd) sc6000_write() argument
230 sc6000_dsp_get_answer(struct device * devptr,char __iomem * vport,int command,char * data,int data_len) sc6000_dsp_get_answer() argument
257 sc6000_dsp_reset(char __iomem * vport) sc6000_dsp_reset() argument
270 sc6000_hw_cfg_write(struct device * devptr,char __iomem * vport,const int * cfg) sc6000_hw_cfg_write() argument
297 sc6000_cfg_write(struct device * devptr,char __iomem * vport,unsigned char softcfg) sc6000_cfg_write() argument
312 sc6000_setup_board(struct device * devptr,char __iomem * vport,int config) sc6000_setup_board() argument
337 sc6000_init_mss(struct device * devptr,char __iomem * vport,int config,char __iomem * vmss_port,int mss_config) sc6000_init_mss() argument
357 sc6000_hw_cfg_encode(struct device * devptr,char __iomem * vport,int * cfg,long xport,long xmpu,long xmss_port,int joystick) sc6000_hw_cfg_encode() argument
380 sc6000_init_board(struct device * devptr,char __iomem * vport,char __iomem * vmss_port,int dev) sc6000_init_board() argument
541 char __iomem *vport = (char __force __iomem *)card->private_data; snd_sc6000_free() local
557 char __iomem *vport; __snd_sc6000_probe() local
[all...]
/linux/drivers/scsi/bfa/
H A Dbfa_fcs_lport.c156 /* If vport - send completion call back */ in bfa_fcs_lport_sm_init()
157 if (port->vport) in bfa_fcs_lport_sm_init()
158 bfa_fcs_vport_stop_comp(port->vport); in bfa_fcs_lport_sm_init()
193 /* If vport - send completion call back */ in bfa_fcs_lport_sm_online()
194 if (port->vport) in bfa_fcs_lport_sm_online()
195 bfa_fcs_vport_stop_comp(port->vport); in bfa_fcs_lport_sm_online()
251 /* If vport - send completion call back */ in bfa_fcs_lport_sm_offline()
252 if (port->vport) in bfa_fcs_lport_sm_offline()
253 bfa_fcs_vport_stop_comp(port->vport); in bfa_fcs_lport_sm_offline()
298 /* If vport - send completion call back */ in bfa_fcs_lport_sm_stopping()
[all …]
/linux/drivers/scsi/elx/efct/
H A Defct_xport.c379 struct efct_vport *vport = NULL; in efct_scsi_new_device() local
381 shost = scsi_host_alloc(&efct_template, sizeof(*vport)); in efct_scsi_new_device()
391 vport = (struct efct_vport *)shost->hostdata; in efct_scsi_new_device()
392 vport->efct = efct; in efct_scsi_new_device()
680 struct efct_vport *vport = (struct efct_vport *)shost->hostdata; in efct_get_host_port_id() local
681 struct efct *efct = vport->efct; in efct_get_host_port_id()
694 struct efct_vport *vport = (struct efct_vport *)shost->hostdata; in efct_get_host_port_type() local
695 struct efct *efct = vport->efct; in efct_get_host_port_type()
727 struct efct_vport *vport = (struct efct_vport *)shost->hostdata; in efct_get_host_port_state() local
728 struct efct *efct = vport->efct; in efct_get_host_port_state()
[all …]

12345678