/linux-6.3-rc2/net/openvswitch/ |
A D | vport-netdev.c | 31 struct vport *vport; in netdev_port_receive() local 76 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument 102 vport); in ovs_netdev_link() 118 netdev_put(vport->dev, &vport->dev_tracker); in ovs_netdev_link() 127 struct vport *vport; in netdev_create() local 138 struct vport *vport = container_of(rcu, struct vport, rcu); in vport_netdev_free() local 140 netdev_put(vport->dev, &vport->dev_tracker); in vport_netdev_free() 144 void ovs_netdev_detach_dev(struct vport *vport) in ovs_netdev_detach_dev() argument 154 static void netdev_destroy(struct vport *vport) in netdev_destroy() argument 164 void ovs_netdev_tunnel_destroy(struct vport *vport) in ovs_netdev_tunnel_destroy() argument [all …]
|
A D | vport.c | 98 struct vport *vport; in ovs_vport_locate() local 125 struct vport *vport; in ovs_vport_alloc() local 135 if (!vport) in ovs_vport_alloc() 148 return vport; in ovs_vport_alloc() 162 void ovs_vport_free(struct vport *vport) in ovs_vport_free() argument 168 kfree(vport); in ovs_vport_free() 194 struct vport *vport; in ovs_vport_add() local 242 return vport->ops->set_options(vport, options); in ovs_vport_set_options() 253 void ovs_vport_del(struct vport *vport) in ovs_vport_del() argument 257 vport->ops->destroy(vport); in ovs_vport_del() [all …]
|
A D | vport.h | 20 struct vport; 29 void ovs_vport_del(struct vport *); 35 int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb); 74 struct vport { struct 134 void (*destroy)(struct vport *); 171 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument 173 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv() 188 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv() 194 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument 196 return vport->dev->name; in ovs_vport_name() [all …]
|
A D | vport-internal_dev.c | 22 struct vport *vport; member 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 struct vport *vport; in internal_dev_create() local 131 if (IS_ERR(vport)) { in internal_dev_create() 138 vport->dev = dev; in internal_dev_create() 139 if (!vport->dev) { in internal_dev_create() 149 dev_net_set(vport->dev, ovs_dp_get_net(vport->dp)); in internal_dev_create() 152 internal_dev->vport = vport; in internal_dev_create() 168 return vport; in internal_dev_create() [all …]
|
A D | vport-geneve.c | 36 static inline struct geneve_port *geneve_vport(const struct vport *vport) in geneve_vport() argument 38 return vport_priv(vport); in geneve_vport() 41 static int geneve_get_options(const struct vport *vport, in geneve_get_options() argument 57 struct vport *vport; in geneve_tnl_create() local 78 if (IS_ERR(vport)) in geneve_tnl_create() 79 return vport; in geneve_tnl_create() 88 ovs_vport_free(vport); in geneve_tnl_create() 101 return vport; in geneve_tnl_create() 108 struct vport *vport; in geneve_create() local 111 if (IS_ERR(vport)) in geneve_create() [all …]
|
A D | vport-vxlan.c | 22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument 51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument 76 struct vport *vport; in vxlan_tnl_create() local 101 if (IS_ERR(vport)) in vxlan_tnl_create() 102 return vport; in vxlan_tnl_create() 117 ovs_vport_free(vport); in vxlan_tnl_create() 125 ovs_vport_free(vport); in vxlan_tnl_create() 130 return vport; in vxlan_tnl_create() 137 struct vport *vport; in vxlan_create() local 140 if (IS_ERR(vport)) in vxlan_create() [all …]
|
A D | vport-gre.c | 43 struct vport *vport; in gre_tnl_create() local 47 if (IS_ERR(vport)) in gre_tnl_create() 48 return vport; in gre_tnl_create() 54 ovs_vport_free(vport); in gre_tnl_create() 62 ovs_vport_free(vport); in gre_tnl_create() 67 return vport; in gre_tnl_create() 72 struct vport *vport; in gre_create() local 74 vport = gre_tnl_create(parms); in gre_create() 75 if (IS_ERR(vport)) in gre_create() 76 return vport; in gre_create() [all …]
|
A D | dp_notify.c | 14 static void dp_detach_port_notify(struct vport *vport) in dp_detach_port_notify() argument 19 dp = vport->dp; in dp_detach_port_notify() 22 ovs_dp_detach_port(vport); in dp_detach_port_notify() 44 struct vport *vport; in ovs_dp_notify_wq() local 48 if (vport->ops->type == OVS_VPORT_TYPE_INTERNAL) in ovs_dp_notify_wq() 51 if (!(netif_is_ovs_port(vport->dev))) in ovs_dp_notify_wq() 52 dp_detach_port_notify(vport); in ovs_dp_notify_wq() 64 struct vport *vport = NULL; in dp_device_event() local 67 vport = ovs_netdev_get_vport(dev); in dp_device_event() 69 if (!vport) in dp_device_event() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
A D | ingress_ofld.c | 14 mlx5_eswitch_is_vf_vport(esw, vport->vport)); in esw_acl_ingress_prio_tag_enabled() 54 vport->vport, err); in esw_acl_ingress_prio_tag_create() 89 vport->vport, err); in esw_acl_ingress_mod_metadata_create() 103 vport->vport, err); in esw_acl_ingress_mod_metadata_create() 161 vport->vport, err); in esw_acl_ingress_ofld_rules_create() 171 vport->vport, err); in esw_acl_ingress_ofld_rules_create() 205 if (vport->vport == MLX5_VPORT_UPLINK) { in esw_acl_ingress_ofld_groups_create() 216 vport->vport, ret); in esw_acl_ingress_ofld_groups_create() 240 vport->vport, ret); in esw_acl_ingress_ofld_groups_create() 260 vport->vport, ret); in esw_acl_ingress_ofld_groups_create() [all …]
|
A D | egress_ofld.c | 28 struct mlx5_vport *vport, in esw_acl_egress_ofld_fwd2vport_create() argument 35 vport->vport, fwd_dest->vport.num); in esw_acl_egress_ofld_fwd2vport_create() 49 vport->vport, err); in esw_acl_egress_ofld_fwd2vport_create() 69 "vport[%d] configure prio tag egress rules\n", vport->vport); in esw_acl_egress_ofld_rules_create() 138 vport->vport, ret); in esw_acl_egress_ofld_groups_create() 181 if (!esw_acl_egress_needed(esw, vport->vport)) in esw_acl_egress_ofld_setup() 190 vport->egress.acl = esw_acl_table_create(esw, vport, in esw_acl_egress_ofld_setup() 194 vport->egress.acl = NULL; in esw_acl_egress_ofld_setup() 202 esw_debug(esw->dev, "vport[%d] configure egress rules\n", vport->vport); in esw_acl_egress_ofld_setup() 254 if (IS_ERR(vport)) in mlx5_esw_acl_egress_vport_unbond() [all …]
|
A D | ingress_lgcy.c | 46 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 62 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 79 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 92 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 173 vport->vport); in esw_acl_ingress_lgcy_setup() 179 if (!vport->info.vlan && !vport->info.qos && !vport->info.spoofchk) { in esw_acl_ingress_lgcy_setup() 185 vport->ingress.acl = esw_acl_table_create(esw, vport, in esw_acl_ingress_lgcy_setup() 201 vport->vport, vport->info.vlan, vport->info.qos); in esw_acl_ingress_lgcy_setup() 209 if ((vport->info.vlan || vport->info.qos)) { in esw_acl_ingress_lgcy_setup() 249 vport->vport, err); in esw_acl_ingress_lgcy_setup() [all …]
|
A D | egress_lgcy.c | 11 esw_acl_egress_vlan_destroy(vport); in esw_acl_egress_lgcy_rules_destroy() 43 vport->vport, err); in esw_acl_egress_lgcy_groups_create() 91 vport->vport, PTR_ERR(drop_counter)); in esw_acl_egress_lgcy_setup() 99 if (!vport->info.vlan && !vport->info.qos) { in esw_acl_egress_lgcy_setup() 104 if (!vport->egress.acl) { in esw_acl_egress_lgcy_setup() 105 vport->egress.acl = esw_acl_table_create(esw, vport, in esw_acl_egress_lgcy_setup() 110 vport->egress.acl = NULL; in esw_acl_egress_lgcy_setup() 121 vport->vport, vport->info.vlan, vport->info.qos); in esw_acl_egress_lgcy_setup() 127 err = esw_egress_acl_vlan_create(esw, vport, NULL, vport->info.vlan, in esw_acl_egress_lgcy_setup() 149 vport->vport, err); in esw_acl_egress_lgcy_setup() [all …]
|
A D | helper.c | 26 vport_num = vport->vport; in esw_acl_table_create() 49 struct mlx5_vport *vport, in esw_egress_acl_vlan_create() argument 57 if (vport->egress.allowed_vlan) in esw_egress_acl_vlan_create() 71 vport->egress.allowed_vlan = in esw_egress_acl_vlan_create() 78 vport->vport, err); in esw_egress_acl_vlan_create() 120 vport->vport, ret); in esw_acl_egress_vlan_grp_create() 134 vport->egress.vlan_grp = NULL; in esw_acl_egress_vlan_grp_destroy() 144 vport->egress.acl = NULL; in esw_acl_egress_table_destroy() 149 if (!vport->ingress.acl) in esw_acl_ingress_table_destroy() 153 vport->ingress.acl = NULL; in esw_acl_ingress_table_destroy() [all …]
|
/linux-6.3-rc2/drivers/scsi/lpfc/ |
A D | lpfc_vport.c | 146 pmb->vport = vport; in lpfc_vport_sparm() 171 memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName, in lpfc_vport_sparm() 173 memcpy(&vport->fc_portname, &vport->fc_sparam.portName, in lpfc_vport_sparm() 266 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 276 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 287 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 343 if (!vport) { in lpfc_vport_create() 351 vport->vpi = vpi; in lpfc_vport_create() 373 memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); in lpfc_vport_create() 374 memcpy(&vport->fc_sparam.nodeName, vport->fc_nodename.u.wwn, 8); in lpfc_vport_create() [all …]
|
A D | lpfc_vmid.c | 178 read_lock(&vport->vmid_lock); in lpfc_vmid_get_appid() 183 read_unlock(&vport->vmid_lock); in lpfc_vmid_get_appid() 190 read_unlock(&vport->vmid_lock); in lpfc_vmid_get_appid() 198 write_lock(&vport->vmid_lock); in lpfc_vmid_get_appid() 213 if (vport->cur_vmid_cnt < vport->max_vmid) { in lpfc_vmid_get_appid() 215 vmp = vport->vmid + i; in lpfc_vmid_get_appid() 219 if (i == vport->max_vmid) in lpfc_vmid_get_appid() 265 vport->cur_vmid_cnt++; in lpfc_vmid_get_appid() 305 write_lock(&vport->vmid_lock); in lpfc_reinit_vmid() 306 vport->cur_vmid_cnt = 0; in lpfc_reinit_vmid() [all …]
|
A D | lpfc_ct.c | 157 struct lpfc_vport *vport = ndlp->vport; in lpfc_ct_reject_event() local 241 cmdiocbq->vport = vport; in lpfc_ct_reject_event() 286 struct lpfc_vport *vport = ctiocbq->vport; in lpfc_ct_handle_mibreq() local 635 geniocb->vport = vport; in lpfc_gen_req() 916 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gid_ft() local 967 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_ft() 1138 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gid_pt() local 1190 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_pt() 1357 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gff_id() local 1506 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gft_id() local [all …]
|
A D | lpfc_hbadisc.c | 138 vport = ndlp->vport; in lpfc_terminate_rport_io() 163 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk() 425 vport = ndlp->vport; in lpfc_dev_loss_tmo_handler() 1281 mb->vport = vport; in lpfc_linkdown() 1296 mb->vport = vport; in lpfc_linkdown() 3267 mboxq->vport = vport; in lpfc_issue_init_vpi() 3953 mbox->vport = vport; in lpfc_mbx_unreg_vpi() 4940 ndlp->vport = vport; in lpfc_initialize_node() 5441 mbox->vport = vport; in lpfc_unreg_all_rpis() 5471 mbox->vport = vport; in lpfc_unreg_default_rpis() [all …]
|
A D | lpfc_nportdisc.c | 388 vport->fc_flag); in lpfc_rcv_plogi() 515 link_mbox->vport = vport; in lpfc_rcv_plogi() 529 lpfc_can_disctmo(vport); in lpfc_rcv_plogi() 570 login_mbox->vport = vport; in lpfc_rcv_plogi() 687 vport = mboxq->vport; in lpfc_mbx_cmpl_resume_rpi() 1039 if (vport->cfg_use_adisc && ((vport->fc_flag & FC_RSCN_MODE) || in lpfc_disc_set_adisc() 1095 pmb->vport = vport; in lpfc_release_rpi() 1127 phba = vport->phba; in lpfc_disc_illegal() 1450 mbox->vport = vport; in lpfc_cmpl_plogi_plogi_issue() 1493 mbox->vport = vport; in lpfc_cmpl_plogi_plogi_issue() [all …]
|
A D | lpfc_els.c | 285 elsiocb->vport = vport; in lpfc_prep_els_iocb() 369 mbox->vport = vport; in lpfc_issue_fabric_reglogin() 390 mbox->vport = vport; in lpfc_issue_fabric_reglogin() 482 mboxq->vport = vport; in lpfc_issue_reg_vfi() 527 mboxq->vport = vport; in lpfc_issue_unreg_vfi() 896 mbox->vport = vport; in lpfc_cmpl_els_flogi_nport() 3320 mbox->vport = vport; in lpfc_reg_fab_ctrl_node() 4565 mbox->vport = vport; in lpfc_link_reset() 5412 mbox->vport = vport; in lpfc_cmpl_els_rsp() 8749 mbox->vport = vport; in lpfc_els_rcv_rls() [all …]
|
A D | lpfc_nvme.c | 95 vport = lport->vport; in lpfc_nvme_create_queue() 155 vport = lport->vport; in lpfc_nvme_delete_queue() 203 vport = ndlp->vport; in lpfc_nvme_remoteport_delete() 269 vport = axchg->ndlp->vport; in lpfc_nvme_handle_lsreq() 497 genwqe->vport = vport; in lpfc_nvme_gen_req() 674 vport = lport->vport; in lpfc_nvme_ls_req() 809 vport = lport->vport; in lpfc_nvme_ls_abort() 1314 pwqeq->vport = vport; in lpfc_nvme_prep_io_cmd() 1554 vport = lport->vport; in lpfc_nvme_fcp_io_submit() 1873 vport = lport->vport; in lpfc_nvme_fcp_abort() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_mbx.c | 36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 132 dest_vfid = (u8)vport->vport_id; in hclge_inform_vf_reset() 183 struct hclge_vport *vport) in hclge_get_ring_chain_from_mbx() argument 277 req->vfid = vport->vport_id; in hclge_query_ring_vector_map() 485 hclge_vport_stop(vport); in hclge_set_vf_alive() 676 vport->need_notify = 0; in hclge_notify_vf_config() 684 vport->vport_id, in hclge_notify_vf_config() 708 hclge_notify_vf_config(vport); in hclge_vf_keep_alive() 1009 param->vport->mps = 0; in hclge_mbx_vf_uninit_handler() 1078 hdev = param->vport->back; in hclge_mbx_request_handling() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | eswitch.c | 232 dest.vport.num = vport; in __esw_fdb_set_vport_rule() 293 u16 vport = vaddr->vport; in esw_add_uc_addr() local 325 u16 vport = vaddr->vport; in esw_del_uc_addr() local 364 vport_num = vport->vport; in update_allmulti_vports() 403 u16 vport = vaddr->vport; in esw_add_mc_addr() local 443 u16 vport = vaddr->vport; in esw_del_mc_addr() local 592 addr->vport = vport->vport; in esw_update_vport_addr_list() 627 mac, vport->vport); in esw_update_vport_mc_promisc() 630 addr->vport = vport->vport; in esw_update_vport_mc_promisc() 689 vport->vport, in esw_update_vport_rx_mode() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | devlink_port.c | 73 struct mlx5_vport *vport; in mlx5_esw_offloads_devlink_port_register() local 81 if (IS_ERR(vport)) in mlx5_esw_offloads_devlink_port_register() 82 return PTR_ERR(vport); in mlx5_esw_offloads_devlink_port_register() 98 vport->dl_port = dl_port; in mlx5_esw_offloads_devlink_port_register() 116 if (IS_ERR(vport)) in mlx5_esw_offloads_devlink_port_unregister() 126 vport->dl_port = NULL; in mlx5_esw_offloads_devlink_port_unregister() 134 return IS_ERR(vport) ? ERR_CAST(vport) : vport->dl_port; in mlx5_esw_offloads_devlink_port() 149 if (IS_ERR(vport)) in mlx5_esw_devlink_sf_port_register() 150 return PTR_ERR(vport); in mlx5_esw_devlink_sf_port_register() 180 if (IS_ERR(vport)) in mlx5_esw_devlink_sf_port_unregister() [all …]
|
A D | qos.c | 79 vport->vport, err); in esw_qos_vport_config() 301 if (!vport->enabled || !vport->qos.enabled || in esw_qos_set_group_max_rate() 302 vport->qos.group != group || vport->qos.max_rate) in esw_qos_set_group_max_rate() 329 MLX5_SET(vport_element, vport_elem, vport_number, vport->vport); in esw_qos_vport_create_sched_element() 340 vport->vport, err); in esw_qos_vport_create_sched_element() 384 vport->vport); in esw_qos_update_group_scheduling_element() 397 if (!vport->enabled) in esw_qos_vport_update_group() 671 WARN(vport->qos.group && vport->qos.group != esw->qos.group0, in mlx5_esw_qos_vport_disable() 679 vport->vport, err); in mlx5_esw_qos_vport_disable() 681 memset(&vport->qos, 0, sizeof(vport->qos)); in mlx5_esw_qos_vport_disable() [all …]
|
/linux-6.3-rc2/sound/isa/ |
A D | sc6000.c | 200 if (sc6000_wait_data(vport)) in sc6000_read() 240 int val = sc6000_read(vport); in sc6000_dsp_get_answer() 320 if (sc6000_read(vport) < 0) { in sc6000_setup_board() 385 err = sc6000_dsp_reset(vport); in sc6000_init_board() 413 if (sc6000_read(vport) < 0) in sc6000_init_board() 431 sc6000_dsp_reset(vport); in sc6000_init_board() 435 sc6000_write(vport, 0x02); in sc6000_init_board() 436 sc6000_dsp_reset(vport); in sc6000_init_board() 536 if (vport) in snd_sc6000_free() 550 char __iomem *vport; in __snd_sc6000_probe() local [all …]
|