| /linux/net/openvswitch/ |
| H A D | vport-netdev.c | 31 struct vport *vport; in netdev_port_receive() local 33 vport = ovs_netdev_get_vport(skb->dev); in netdev_port_receive() 34 if (unlikely(!vport)) in netdev_port_receive() 50 ovs_vport_receive(vport, skb, skb_tunnel_info(skb)); in netdev_port_receive() 70 struct vport *local; in get_dpdev() 76 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument 80 vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), name); in ovs_netdev_link() 81 if (!vport->dev) { in ovs_netdev_link() 88 if (strcmp(name, ovs_vport_name(vport))) { in ovs_netdev_link() 92 netdev_tracker_alloc(vport->dev, &vport->dev_tracker, GFP_KERNEL); in ovs_netdev_link() [all …]
|
| H A D | vport.c | 95 struct vport *ovs_vport_locate(const struct net *net, const char *name) in ovs_vport_locate() 98 struct vport *vport; in ovs_vport_locate() local 100 hlist_for_each_entry_rcu(vport, bucket, hash_node, in ovs_vport_locate() 102 if (!strcmp(name, ovs_vport_name(vport)) && in ovs_vport_locate() 103 net_eq(ovs_dp_get_net(vport->dp), net)) in ovs_vport_locate() 104 return vport; in ovs_vport_locate() 122 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc() 125 struct vport *vport; in ovs_vport_alloc() local 129 alloc_size = sizeof(struct vport); in ovs_vport_alloc() 135 vport = kzalloc(alloc_size, GFP_KERNEL); in ovs_vport_alloc() [all …]
|
| H A D | vport.h | 20 struct vport; 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_options(struct vport *, struct nlattr *options); 38 int ovs_vport_get_options(const struct vport *, struct sk_buff *); 40 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids); 41 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *); [all …]
|
| H A D | vport-internal_dev.c | 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() 123 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create() 125 struct vport *vport; in internal_dev_create() local 130 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create() 131 if (IS_ERR(vport)) { in internal_dev_create() 132 err = PTR_ERR(vport); in internal_dev_create() 138 vport->dev = dev; in internal_dev_create() [all …]
|
| H 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 44 struct geneve_port *geneve_port = geneve_vport(vport); in geneve_get_options() 51 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create() 57 struct vport *vport; in geneve_tnl_create() local 76 vport = ovs_vport_alloc(sizeof(struct geneve_port), in geneve_tnl_create() 78 if (IS_ERR(vport)) in geneve_tnl_create() 79 return vport; in geneve_tnl_create() 81 geneve_port = geneve_vport(vport); in geneve_tnl_create() [all …]
|
| H A D | vport-vxlan.c | 22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument 24 struct vxlan_dev *vxlan = netdev_priv(vport->dev); in vxlan_get_options() 51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument 71 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create() 76 struct vport *vport; in vxlan_tnl_create() local 100 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms); in vxlan_tnl_create() 101 if (IS_ERR(vport)) in vxlan_tnl_create() 102 return vport; in vxlan_tnl_create() 106 err = vxlan_configure_exts(vport, a, &conf); in vxlan_tnl_create() 108 ovs_vport_free(vport); in vxlan_tnl_create() [all …]
|
| H A D | vport-gre.c | 39 static struct vport *gre_tnl_create(const struct vport_parms *parms) in gre_tnl_create() 43 struct vport *vport; in gre_tnl_create() local 46 vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms); in gre_tnl_create() 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() 70 static struct vport *gre_create(const struct vport_parms *parms) in gre_create() 72 struct vport *vport; in gre_create() local [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
| H A D | ingress_ofld.c | 10 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() 57 vport->vport, err); in esw_acl_ingress_prio_tag_create() [all …]
|
| H A D | egress_ofld.c | 9 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 D | helper.c | 9 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() 30 root_ns = mlx5_get_flow_vport_namespace(dev, ns, vport->index); 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() 75 if (IS_ERR(vport->egress.allowed_vlan)) { in esw_egress_acl_vlan_create() 76 err = PTR_ERR(vport->egress.allowed_vlan); in esw_egress_acl_vlan_create() 79 vport->vport, err); in esw_egress_acl_vlan_create() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A 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() 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() 170 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_vport_sparm() [all …]
|
| H A D | lpfc_ct.c | 157 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() 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() 306 lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS, in lpfc_ct_handle_mibreq() [all …]
|
| H A D | lpfc_hbadisc.c | 71 static void lpfc_disc_flush_list(struct lpfc_vport *vport); 123 if (!ndlp->vport) { in lpfc_rport_invalid() 137 struct lpfc_vport *vport; in lpfc_terminate_rport_io() local 144 vport = ndlp->vport; in lpfc_terminate_rport_io() 145 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io() 150 lpfc_sli_abort_iocb(vport, ndlp->nlp_sid, 0, LPFC_CTX_TGT); in lpfc_terminate_rport_io() 160 struct lpfc_vport *vport; in lpfc_dev_loss_tmo_callbk() local 170 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk() 171 phba = vport->phba; in lpfc_dev_loss_tmo_callbk() 173 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_dev_loss_tmo_callbk() [all …]
|
| H A D | lpfc_nportdisc.c | 64 lpfc_check_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_adisc() argument 82 lpfc_check_sparm(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_check_sparm() argument 85 volatile struct serv_parm *hsp = &vport->fc_sparam; in lpfc_check_sparm() 164 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_check_sparm() 237 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, in lpfc_els_abort() 329 if (test_bit(FC_PT2PT, &ndlp->vport->fc_flag)) { in lpfc_defer_plogi_acc() 330 rc = lpfc_els_rsp_acc(login_mbox->vport, ELS_CMD_PLOGI, in lpfc_defer_plogi_acc() 333 rc = lpfc_els_rsp_acc(login_mbox->vport, ELS_CMD_PLOGI, in lpfc_defer_plogi_acc() 349 if (!test_bit(FC_PT2PT, &ndlp->vport->fc_flag)) { in lpfc_defer_plogi_acc() 358 lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in lpfc_rcv_plogi() argument [all …]
|
| H A D | lpfc_els.c | 54 static void lpfc_fabric_abort_vport(struct lpfc_vport *vport); 55 static int lpfc_issue_els_fdisc(struct lpfc_vport *vport, 67 static void lpfc_init_cs_ctl_bitmap(struct lpfc_vport *vport); 68 static void lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max); 69 static void lpfc_vmid_put_cs_ctl(struct lpfc_vport *vport, u32 ctcl_vmid); 94 lpfc_els_chk_latt(struct lpfc_vport *vport) in lpfc_els_chk_latt() argument 96 struct lpfc_hba *phba = vport->phba; in lpfc_els_chk_latt() 99 if (vport->port_state >= LPFC_VPORT_READY || in lpfc_els_chk_latt() 112 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_els_chk_latt() 123 set_bit(FC_ABORT_DISCOVERY, &vport->fc_flag); in lpfc_els_chk_latt() [all …]
|
| H A D | lpfc_logmsg.h | 57 #define lpfc_vlog_msg(vport, level, mask, fmt, arg...) \ argument 58 { if (((mask) & (vport)->cfg_log_verbose) || (level[1] <= '5')) \ 59 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \ 60 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); } 73 #define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \ argument 75 { if (((mask) & (vport)->cfg_log_verbose) || (level[1] <= '3')) { \ 76 if ((mask) & LOG_TRACE_EVENT && !(vport)->cfg_log_verbose) \ 77 lpfc_dmp_dbg((vport)->phba); \ 78 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \ 79 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); \ [all …]
|
| H A D | lpfc_attr.c | 122 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_cmf_info_show() local 123 struct lpfc_hba *phba = vport->phba; in lpfc_cmf_info_show() 299 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_vmid_info_show() local 300 struct lpfc_hba *phba = vport->phba; in lpfc_vmid_info_show() 324 if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO) { in lpfc_vmid_info_show() 327 vr = vport->vmid_priority.vmid_range; in lpfc_vmid_info_show() 328 for (i = 0; i < vport->vmid_priority.num_descriptors; ++i) { in lpfc_vmid_info_show() 337 vmp = &vport->vmid[i]; in lpfc_vmid_info_show() 346 if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO) { in lpfc_vmid_info_show() 351 vport->lpfc_vmid_host_uuid[0], in lpfc_vmid_info_show() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_lib.c | 502 static int idpf_del_mac_filter(struct idpf_vport *vport, in idpf_del_mac_filter() argument 525 err = idpf_add_del_mac_filters(vport, np, false, async); in idpf_del_mac_filter() 581 static int idpf_add_mac_filter(struct idpf_vport *vport, in idpf_add_mac_filter() argument 594 err = idpf_add_del_mac_filters(vport, np, true, async); in idpf_add_mac_filter() 605 static void idpf_del_all_mac_filters(struct idpf_vport *vport) in idpf_del_all_mac_filters() argument 610 vport_config = vport->adapter->vport_config[vport->idx]; in idpf_del_all_mac_filters() 629 static void idpf_restore_mac_filters(struct idpf_vport *vport) in idpf_restore_mac_filters() argument 634 vport_config = vport->adapter->vport_config[vport->idx]; in idpf_restore_mac_filters() 642 idpf_add_del_mac_filters(vport, netdev_priv(vport->netdev), in idpf_restore_mac_filters() 653 static void idpf_remove_mac_filters(struct idpf_vport *vport) in idpf_remove_mac_filters() argument [all …]
|
| H A D | idpf_virtchnl.c | 54 struct idpf_vport *vport; in idpf_handle_event_link() local 56 vport = idpf_vid_to_vport(adapter, le32_to_cpu(v2e->vport_id)); in idpf_handle_event_link() 57 if (!vport) { in idpf_handle_event_link() 62 np = netdev_priv(vport->netdev); in idpf_handle_event_link() 66 if (vport->link_up == v2e->link_status) in idpf_handle_event_link() 69 vport->link_up = v2e->link_status; in idpf_handle_event_link() 74 if (vport->link_up) { in idpf_handle_event_link() 75 netif_tx_start_all_queues(vport->netdev); in idpf_handle_event_link() 76 netif_carrier_on(vport->netdev); in idpf_handle_event_link() 78 netif_tx_stop_all_queues(vport->netdev); in idpf_handle_event_link() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch.c | 63 u16 vport; member 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() 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 131 MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport); in arm_vport_context_events_cmd() 132 if (vport || mlx5_core_is_ecpf(dev)) in arm_vport_context_events_cmd() 153 int mlx5_eswitch_modify_esw_vport_context(struct mlx5_core_dev *dev, u16 vport, in mlx5_eswitch_modify_esw_vport_context() argument 158 MLX5_SET(modify_esw_vport_context_in, in, vport_number, vport); in mlx5_eswitch_modify_esw_vport_context() [all …]
|
| /linux/sound/isa/ |
| H A D | sc6000.c | 183 static int sc6000_wait_data(char __iomem *vport) in sc6000_wait_data() argument 189 val = ioread8(vport + DSP_DATAVAIL); in sc6000_wait_data() 198 static int sc6000_read(char __iomem *vport) in sc6000_read() argument 200 if (sc6000_wait_data(vport)) in sc6000_read() 203 return ioread8(vport + DSP_READ); in sc6000_read() 207 static int sc6000_write(struct device *devptr, char __iomem *vport, int cmd) in sc6000_write() argument 213 val = ioread8(vport + DSP_STATUS); in sc6000_write() 218 iowrite8(cmd, vport + DSP_COMMAND); in sc6000_write() 230 char __iomem *vport, int command, in sc6000_dsp_get_answer() argument 235 if (sc6000_write(devptr, vport, command)) { in sc6000_dsp_get_answer() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | ipsec.c | 43 int mlx5_esw_ipsec_vf_offload_get(struct mlx5_core_dev *dev, struct mlx5_vport *vport) in mlx5_esw_ipsec_vf_offload_get() argument 53 err = esw_ipsec_vf_query_generic(dev, vport->vport, &ipsec_enabled); in mlx5_esw_ipsec_vf_offload_get() 58 vport->info.ipsec_crypto_enabled = false; in mlx5_esw_ipsec_vf_offload_get() 59 vport->info.ipsec_packet_enabled = false; in mlx5_esw_ipsec_vf_offload_get() 67 err = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC); in mlx5_esw_ipsec_vf_offload_get() 72 vport->info.ipsec_crypto_enabled = in mlx5_esw_ipsec_vf_offload_get() 74 vport->info.ipsec_packet_enabled = in mlx5_esw_ipsec_vf_offload_get() 120 static int esw_ipsec_vf_set_bytype(struct mlx5_core_dev *dev, struct mlx5_vport *vport, in esw_ipsec_vf_set_bytype() argument 138 ret = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC); in esw_ipsec_vf_set_bytype() 160 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport->vport); in esw_ipsec_vf_set_bytype() [all …]
|
| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_nport.c | 258 struct efc_vport *vport; in efc_vport_link_down() local 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() 476 struct efc_vport *vport; in efc_vport_update_spec() local 480 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_update_spec() 481 if (vport->nport == nport) { in efc_vport_update_spec() 482 vport->wwnn = nport->wwnn; in efc_vport_update_spec() 483 vport->wwpn = nport->wwpn; in efc_vport_update_spec() 484 vport->tgt_data = nport->tgt_data; in efc_vport_update_spec() [all …]
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_xport.c | 379 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 …]
|
| /linux/drivers/scsi/libfc/ |
| H A D | fc_npiv.c | 21 struct fc_lport *libfc_vport_create(struct fc_vport *vport, int privsize) in libfc_vport_create() argument 23 struct Scsi_Host *shost = vport_to_shost(vport); in libfc_vport_create() 31 vn_port->vport = vport; in libfc_vport_create() 32 vport->dd_data = vn_port; in libfc_vport_create() 94 struct fc_vport *vport = vn_port->vport; in __fc_vport_setlink() local 101 fc_vport_set_state(vport, FC_VPORT_INITIALIZING); in __fc_vport_setlink() 104 fc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP); in __fc_vport_setlink() 108 fc_vport_set_state(vport, FC_VPORT_LINKDOWN); in __fc_vport_setlink() 119 struct fc_vport *vport = vn_port->vport; in fc_vport_setlink() local 120 struct Scsi_Host *shost = vport_to_shost(vport); in fc_vport_setlink()
|