/Linux-v4.19/net/openvswitch/ |
D | vport-netdev.c | 44 struct vport *vport; in netdev_port_receive() local 46 vport = ovs_netdev_get_vport(skb->dev); in netdev_port_receive() 47 if (unlikely(!vport)) in netdev_port_receive() 64 ovs_vport_receive(vport, skb, skb_tunnel_info(skb)); in netdev_port_receive() 84 struct vport *local; in get_dpdev() 91 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument 95 vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), name); in ovs_netdev_link() 96 if (!vport->dev) { in ovs_netdev_link() 101 if (vport->dev->flags & IFF_LOOPBACK || in ovs_netdev_link() 102 (vport->dev->type != ARPHRD_ETHER && in ovs_netdev_link() [all …]
|
D | vport.c | 107 struct vport *ovs_vport_locate(const struct net *net, const char *name) in ovs_vport_locate() 110 struct vport *vport; in ovs_vport_locate() local 112 hlist_for_each_entry_rcu(vport, bucket, hash_node) in ovs_vport_locate() 113 if (!strcmp(name, ovs_vport_name(vport)) && in ovs_vport_locate() 114 net_eq(ovs_dp_get_net(vport->dp), net)) in ovs_vport_locate() 115 return vport; in ovs_vport_locate() 131 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc() 134 struct vport *vport; in ovs_vport_alloc() local 137 alloc_size = sizeof(struct vport); in ovs_vport_alloc() 143 vport = kzalloc(alloc_size, GFP_KERNEL); in ovs_vport_alloc() [all …]
|
D | vport.h | 33 struct vport; 41 struct vport *ovs_vport_add(const struct vport_parms *); 42 void ovs_vport_del(struct vport *); 44 struct vport *ovs_vport_locate(const struct net *net, const char *name); 46 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *); 48 int ovs_vport_set_options(struct vport *, struct nlattr *options); 49 int ovs_vport_get_options(const struct vport *, struct sk_buff *); 51 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids); 52 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *); 53 u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *); [all …]
|
D | vport-geneve.c | 40 static inline struct geneve_port *geneve_vport(const struct vport *vport) in geneve_vport() argument 42 return vport_priv(vport); in geneve_vport() 45 static int geneve_get_options(const struct vport *vport, in geneve_get_options() argument 48 struct geneve_port *geneve_port = geneve_vport(vport); in geneve_get_options() 55 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create() 61 struct vport *vport; in geneve_tnl_create() local 80 vport = ovs_vport_alloc(sizeof(struct geneve_port), in geneve_tnl_create() 82 if (IS_ERR(vport)) in geneve_tnl_create() 83 return vport; in geneve_tnl_create() 85 geneve_port = geneve_vport(vport); in geneve_tnl_create() [all …]
|
D | vport-internal_dev.c | 35 struct vport *vport; member 52 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit() 93 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local 95 ovs_vport_free(vport); in internal_dev_destructor() 168 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create() 170 struct vport *vport; in internal_dev_create() local 174 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create() 175 if (IS_ERR(vport)) { in internal_dev_create() 176 err = PTR_ERR(vport); in internal_dev_create() 180 vport->dev = alloc_netdev(sizeof(struct internal_dev), in internal_dev_create() [all …]
|
D | vport-vxlan.c | 35 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument 37 struct vxlan_dev *vxlan = netdev_priv(vport->dev); in vxlan_get_options() 64 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument 84 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create() 89 struct vport *vport; in vxlan_tnl_create() local 113 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms); in vxlan_tnl_create() 114 if (IS_ERR(vport)) in vxlan_tnl_create() 115 return vport; in vxlan_tnl_create() 119 err = vxlan_configure_exts(vport, a, &conf); in vxlan_tnl_create() 121 ovs_vport_free(vport); in vxlan_tnl_create() [all …]
|
D | vport-gre.c | 52 static struct vport *gre_tnl_create(const struct vport_parms *parms) in gre_tnl_create() 56 struct vport *vport; in gre_tnl_create() local 59 vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms); in gre_tnl_create() 60 if (IS_ERR(vport)) in gre_tnl_create() 61 return vport; in gre_tnl_create() 67 ovs_vport_free(vport); in gre_tnl_create() 75 ovs_vport_free(vport); in gre_tnl_create() 80 return vport; in gre_tnl_create() 83 static struct vport *gre_create(const struct vport_parms *parms) in gre_create() 85 struct vport *vport; in gre_create() local [all …]
|
D | dp_notify.c | 27 static void dp_detach_port_notify(struct vport *vport) in dp_detach_port_notify() argument 32 dp = vport->dp; in dp_detach_port_notify() 33 notify = ovs_vport_cmd_build_info(vport, ovs_dp_get_net(dp), in dp_detach_port_notify() 35 ovs_dp_detach_port(vport); in dp_detach_port_notify() 57 struct vport *vport; in ovs_dp_notify_wq() local 60 hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node) { in ovs_dp_notify_wq() 61 if (vport->ops->type == OVS_VPORT_TYPE_INTERNAL) in ovs_dp_notify_wq() 64 if (!(vport->dev->priv_flags & IFF_OVS_DATAPATH)) in ovs_dp_notify_wq() 65 dp_detach_port_notify(vport); in ovs_dp_notify_wq() 77 struct vport *vport = NULL; in dp_device_event() local [all …]
|
D | vport-netdev.h | 27 struct vport *ovs_netdev_get_vport(struct net_device *dev); 29 struct vport *ovs_netdev_link(struct vport *vport, const char *name); 30 void ovs_netdev_detach_dev(struct vport *); 35 void ovs_netdev_tunnel_destroy(struct vport *vport);
|
D | datapath.c | 136 static struct vport *new_vport(const struct vport_parms *); 149 struct vport *vport = ovs_vport_ovsl_rcu(dp, OVSP_LOCAL); in ovs_dp_name() local 150 return ovs_vport_name(vport); in ovs_dp_name() 155 struct vport *local; in get_dpifindex() 189 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no) in ovs_lookup_vport() 191 struct vport *vport; in ovs_lookup_vport() local 195 hlist_for_each_entry_rcu(vport, head, dp_hash_node) { in ovs_lookup_vport() 196 if (vport->port_no == port_no) in ovs_lookup_vport() 197 return vport; in ovs_lookup_vport() 203 static struct vport *new_vport(const struct vport_parms *parms) in new_vport() [all …]
|
/Linux-v4.19/drivers/scsi/lpfc/ |
D | lpfc_vport.c | 53 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() 144 pmb->vport = vport; in lpfc_vport_sparm() 148 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT | LOG_VPORT, in lpfc_vport_sparm() 157 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT | LOG_VPORT, in lpfc_vport_sparm() 169 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_vport_sparm() [all …]
|
D | lpfc_nportdisc.c | 54 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument 75 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument 78 volatile struct serv_parm *hsp = &vport->fc_sparam; in lpfc_check_sparm() 157 lpfc_printf_vlog(vport, KERN_ERR, LOG_DISCOVERY, in lpfc_check_sparm() 223 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort() 283 lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_rcv_plogi() argument 286 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_rcv_plogi() 287 struct lpfc_hba *phba = vport->phba; in lpfc_rcv_plogi() 304 lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS, in lpfc_rcv_plogi() 308 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, in lpfc_rcv_plogi() [all …]
|
D | lpfc_els.c | 51 static void lpfc_fabric_abort_vport(struct lpfc_vport *vport); 52 static int lpfc_issue_els_fdisc(struct lpfc_vport *vport, 82 lpfc_els_chk_latt(struct lpfc_vport *vport) in lpfc_els_chk_latt() argument 84 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_els_chk_latt() 85 struct lpfc_hba *phba = vport->phba; in lpfc_els_chk_latt() 88 if (vport->port_state >= LPFC_VPORT_READY || in lpfc_els_chk_latt() 101 lpfc_printf_vlog(vport, KERN_ERR, LOG_DISCOVERY, in lpfc_els_chk_latt() 113 vport->fc_flag |= FC_ABORT_DISCOVERY; in lpfc_els_chk_latt() 117 lpfc_issue_clear_la(phba, vport); in lpfc_els_chk_latt() 151 lpfc_prep_els_iocb(struct lpfc_vport *vport, uint8_t expectRsp, in lpfc_prep_els_iocb() argument [all …]
|
D | lpfc_hbadisc.c | 72 static void lpfc_disc_flush_list(struct lpfc_vport *vport); 96 lpfc_debugfs_disc_trc(ndlp->vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io() 101 lpfc_sli_abort_iocb(ndlp->vport, in lpfc_terminate_rport_io() 115 struct lpfc_vport *vport; in lpfc_dev_loss_tmo_callbk() local 127 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk() 128 phba = vport->phba; in lpfc_dev_loss_tmo_callbk() 130 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_dev_loss_tmo_callbk() 134 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NODE, in lpfc_dev_loss_tmo_callbk() 142 if (vport->load_flag & FC_UNLOADING) { in lpfc_dev_loss_tmo_callbk() 158 lpfc_printf_vlog(vport, KERN_ERR, LOG_NODE, in lpfc_dev_loss_tmo_callbk() [all …]
|
D | lpfc_ct.c | 316 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_gen_req() argument 323 struct lpfc_hba *phba = vport->phba; in lpfc_gen_req() 379 lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS, in lpfc_gen_req() 383 vport->port_state); in lpfc_gen_req() 386 geniocb->vport = vport; in lpfc_gen_req() 409 lpfc_ct_cmd(struct lpfc_vport *vport, struct lpfc_dmabuf *inmp, in lpfc_ct_cmd() argument 415 struct lpfc_hba *phba = vport->phba; in lpfc_ct_cmd() 434 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd() 460 lpfc_prep_node_fc4type(struct lpfc_vport *vport, uint32_t Did, uint8_t fc4_type) in lpfc_prep_node_fc4type() argument 464 if ((vport->port_type != LPFC_NPIV_PORT) || in lpfc_prep_node_fc4type() [all …]
|
D | lpfc_nvme.c | 219 struct lpfc_vport *vport; in lpfc_nvme_create_queue() local 227 vport = lport->vport; in lpfc_nvme_create_queue() 242 vport->phba->cfg_nvme_io_channel); in lpfc_nvme_create_queue() 248 lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME, in lpfc_nvme_create_queue() 276 struct lpfc_vport *vport; in lpfc_nvme_delete_queue() local 282 vport = lport->vport; in lpfc_nvme_delete_queue() 284 lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME, in lpfc_nvme_delete_queue() 295 lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME, in lpfc_nvme_localport_delete() 318 struct lpfc_vport *vport; in lpfc_nvme_remoteport_delete() local 325 vport = ndlp->vport; in lpfc_nvme_remoteport_delete() [all …]
|
D | lpfc_attr.c | 136 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show() local 137 struct lpfc_hba *phba = vport->phba; in lpfc_enable_fip_show() 150 struct lpfc_vport *vport = shost_priv(shost); in lpfc_nvme_info_show() local 151 struct lpfc_hba *phba = vport->phba; in lpfc_nvme_info_show() 174 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show() 192 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show() 193 wwn_to_u64(vport->fc_nodename.u.wwn), in lpfc_nvme_info_show() 324 localport = vport->localport; in lpfc_nvme_info_show() 328 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show() 356 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.c | 54 u32 vport; member 72 static int arm_vport_context_events_cmd(struct mlx5_core_dev *dev, u16 vport, in arm_vport_context_events_cmd() argument 82 MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport); in arm_vport_context_events_cmd() 83 if (vport) in arm_vport_context_events_cmd() 104 static int modify_esw_vport_context_cmd(struct mlx5_core_dev *dev, u16 vport, in modify_esw_vport_context_cmd() argument 111 MLX5_SET(modify_esw_vport_context_in, in, vport_number, vport); in modify_esw_vport_context_cmd() 112 if (vport) in modify_esw_vport_context_cmd() 117 static int modify_esw_vport_cvlan(struct mlx5_core_dev *dev, u32 vport, in modify_esw_vport_cvlan() argument 127 vport, vlan, qos, set_flags); in modify_esw_vport_cvlan() 149 return modify_esw_vport_context_cmd(dev, vport, in, sizeof(in)); in modify_esw_vport_cvlan() [all …]
|
D | eswitch_offloads.c | 86 dest[i].vport.num = attr->out_rep[j]->vport; in mlx5_eswitch_add_offloaded_rule() 87 dest[i].vport.vhca_id = in mlx5_eswitch_add_offloaded_rule() 89 dest[i].vport.vhca_id_valid = !!MLX5_CAP_ESW(esw->dev, merged_eswitch); in mlx5_eswitch_add_offloaded_rule() 105 MLX5_SET(fte_match_set_misc, misc, source_port, attr->in_rep->vport); in mlx5_eswitch_add_offloaded_rule() 161 dest[i].vport.num = attr->out_rep[i]->vport; in mlx5_eswitch_add_fwd_rule() 162 dest[i].vport.vhca_id = in mlx5_eswitch_add_fwd_rule() 164 dest[i].vport.vhca_id_valid = !!MLX5_CAP_ESW(esw->dev, merged_eswitch); in mlx5_eswitch_add_fwd_rule() 171 MLX5_SET(fte_match_set_misc, misc, source_port, attr->in_rep->vport); in mlx5_eswitch_add_fwd_rule() 222 err = __mlx5_eswitch_set_vport_vlan(esw, rep->vport, 0, 0, val); in esw_set_global_vlan_pop() 234 struct mlx5_eswitch_rep *in_rep, *out_rep, *vport = NULL; in esw_vlan_action_get_vport() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mbx.c | 15 static int hclge_gen_resp_to_vf(struct hclge_vport *vport, in hclge_gen_resp_to_vf() argument 21 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 55 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument 59 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg() 82 static int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport) in hclge_inform_reset_assert_to_vf() argument 87 dest_vfid = (u8)vport->vport_id; in hclge_inform_reset_assert_to_vf() 90 return hclge_send_mbx_msg(vport, msg_data, sizeof(u8), in hclge_inform_reset_assert_to_vf() 120 struct hclge_vport *vport) in hclge_get_ring_chain_from_mbx() argument 135 hclge_get_queue_id(vport->nic.kinfo.tqp[req->msg[4]]); in hclge_get_ring_chain_from_mbx() 152 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx() [all …]
|
D | hclge_main.c | 540 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_tqps_update_stats() local 541 struct hclge_dev *hdev = vport->back; in hclge_tqps_update_stats() 705 handle = &hdev->vport[0].nic; in hclge_update_stats_for_all() 732 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_update_stats() local 733 struct hclge_dev *hdev = vport->back; in hclge_update_stats() 773 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_sset_count() local 774 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count() 852 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_stats() local 853 struct hclge_dev *hdev = vport->back; in hclge_get_stats() 1270 static int hclge_assign_tqp(struct hclge_vport *vport) in hclge_assign_tqp() argument [all …]
|
D | hclge_dcb.c | 65 struct hclge_vport *vport = hclge_get_vport(h); in hclge_ieee_getets() local 66 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets() 121 struct hclge_vport *vport = hclge_get_vport(h); in hclge_map_update() local 122 struct hclge_dev *hdev = vport->back; in hclge_map_update() 148 struct hclge_vport *vport = hdev->vport; in hclge_client_setup_tc() local 155 handle = &vport[i].nic; in hclge_client_setup_tc() 171 struct hclge_vport *vport = hclge_get_vport(h); in hclge_ieee_setets() local 172 struct hclge_dev *hdev = vport->back; in hclge_ieee_setets() 203 struct hclge_vport *vport = hclge_get_vport(h); in hclge_ieee_getpfc() local 204 struct hclge_dev *hdev = vport->back; in hclge_ieee_getpfc() [all …]
|
/Linux-v4.19/sound/isa/ |
D | sc6000.c | 199 static int sc6000_wait_data(char __iomem *vport) in sc6000_wait_data() argument 205 val = ioread8(vport + DSP_DATAVAIL); in sc6000_wait_data() 214 static int sc6000_read(char __iomem *vport) in sc6000_read() argument 216 if (sc6000_wait_data(vport)) in sc6000_read() 219 return ioread8(vport + DSP_READ); in sc6000_read() 223 static int sc6000_write(char __iomem *vport, int cmd) in sc6000_write() argument 229 val = ioread8(vport + DSP_STATUS); in sc6000_write() 234 iowrite8(cmd, vport + DSP_COMMAND); in sc6000_write() 245 static int sc6000_dsp_get_answer(char __iomem *vport, int command, in sc6000_dsp_get_answer() argument 250 if (sc6000_write(vport, command)) { in sc6000_dsp_get_answer() [all …]
|
/Linux-v4.19/Documentation/scsi/ |
D | scsi_fc_transport.txt | 50 The FC transport is now recognizing a new object - a vport. A vport is 53 be specified for the vport, with FCP_Initiator being the primary role 57 to create vports. The transport will create the vport object within the 60 on the vport, resulting in a unique <H,C,T,L> namespace for the vport. 70 up to an administrative entity controlling the vport. For example, 72 utility would be responsible for creating wwpn/wwnn's for the vport, 82 transport creates the vport object and places it under the scsi_host 84 a new scsi_host for the vport and link its object under the vport. 87 allow the parent of the vport to be something other than the scsi_host. 89 device tree. If the vport's parent is not the physical port's scsi_host, [all …]
|
/Linux-v4.19/drivers/scsi/libfc/ |
D | fc_npiv.c | 33 struct fc_lport *libfc_vport_create(struct fc_vport *vport, int privsize) in libfc_vport_create() argument 35 struct Scsi_Host *shost = vport_to_shost(vport); in libfc_vport_create() 43 vn_port->vport = vport; in libfc_vport_create() 44 vport->dd_data = vn_port; in libfc_vport_create() 106 struct fc_vport *vport = vn_port->vport; in __fc_vport_setlink() local 113 fc_vport_set_state(vport, FC_VPORT_INITIALIZING); in __fc_vport_setlink() 116 fc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP); in __fc_vport_setlink() 120 fc_vport_set_state(vport, FC_VPORT_LINKDOWN); in __fc_vport_setlink() 131 struct fc_vport *vport = vn_port->vport; in fc_vport_setlink() local 132 struct Scsi_Host *shost = vport_to_shost(vport); in fc_vport_setlink()
|