Home
last modified time | relevance | path

Searched refs:vport (Results 1 – 25 of 131) sorted by relevance

123456

/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()
57 vport->vport, err); 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()
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()
58 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); 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()
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 …]
H A Dhelper.h11 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size);
14 void esw_acl_egress_table_destroy(struct mlx5_vport *vport);
15 int esw_egress_acl_vlan_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport,
18 void esw_acl_egress_vlan_destroy(struct mlx5_vport *vport);
19 int esw_acl_egress_vlan_grp_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
20 void esw_acl_egress_vlan_grp_destroy(struct mlx5_vport *vport);
23 void esw_acl_ingress_table_destroy(struct mlx5_vport *vport);
24 void esw_acl_ingress_allow_rule_destroy(struct mlx5_vport *vport);
/linux/net/openvswitch/
H A Dvport-netdev.c31 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 static struct vport *ovs_netdev_link(struct vport *vport) in ovs_netdev_link() argument
80 if (WARN_ON_ONCE(!vport->dev)) { in ovs_netdev_link()
89 if (vport->dev->reg_state != NETREG_REGISTERED) { in ovs_netdev_link()
94 err = netdev_master_upper_dev_link(vport->dev, in ovs_netdev_link()
95 get_dpdev(vport->dp), in ovs_netdev_link()
[all …]
H A Dvport.c92 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()
100 net_eq(ovs_dp_get_net(vport->dp), net)) in ovs_vport_locate()
101 return vport; in ovs_vport_locate()
119 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc()
122 struct vport *vport; in ovs_vport_alloc() local
126 alloc_size = sizeof(struct vport); in ovs_vport_alloc()
132 vport = kzalloc(alloc_size, GFP_KERNEL); in ovs_vport_alloc()
[all …]
H A Dvport.h20 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_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 *);
71 struct vport { struct
[all …]
H A Dvport-internal_dev.c22 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 …]
/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()
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 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()
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 Dlpfc_attr.c121 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_cmf_info_show() local
122 struct lpfc_hba *phba = vport->phba; in lpfc_cmf_info_show()
280 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_vmid_info_show() local
281 struct lpfc_hba *phba = vport->phba; in lpfc_vmid_info_show()
305 if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO) { in lpfc_vmid_info_show()
308 vr = vport->vmid_priority.vmid_range; in lpfc_vmid_info_show()
309 for (i = 0; i < vport->vmid_priority.num_descriptors; ++i) { in lpfc_vmid_info_show()
318 vmp = &vport->vmid[i]; in lpfc_vmid_info_show()
327 if (vport->phba->pport->vmid_flag & LPFC_VMID_TYPE_PRIO) { in lpfc_vmid_info_show()
332 vport->lpfc_vmid_host_uuid[0], in lpfc_vmid_info_show()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_mbx.c31 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->back; in hclge_inform_reset_assert_to_vf()
154 return hclge_inform_vf_reset(vport, reset_type); in hclge_inform_reset_assert_to_vf()
[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 = hclge_get_vport(handle); in hclge_get_mac_stat() local
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_lib.c451 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()
525 static int idpf_del_mac_filter(struct idpf_vport *vport, in idpf_del_mac_filter() argument
549 vport->default_mac_addr, in idpf_del_mac_filter()
606 static int idpf_add_mac_filter(struct idpf_vport *vport, in idpf_add_mac_filter() argument
620 vport->default_mac_addr, in idpf_add_mac_filter()
632 static void idpf_del_all_mac_filters(struct idpf_vport *vport) in idpf_del_all_mac_filters() argument
637 vport_config = vport->adapter->vport_config[vport->idx]; in idpf_del_all_mac_filters()
656 static void idpf_restore_mac_filters(struct idpf_vport *vport) in idpf_restore_mac_filters() argument
661 vport_config = vport->adapter->vport_config[vport->idx]; in idpf_restore_mac_filters()
[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/mellanox/mlx5/core/
H A Deswitch.c63 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 …]
H A Deswitch.h191 struct mlx5_vport *vport; member
195 struct mlx5_vport *vport) in mlx5_devlink_port_init() argument
197 dl_port->vport = vport; in mlx5_devlink_port_init()
207 return mlx5_devlink_port_get(dl_port)->vport; in mlx5_devlink_port_vport_get()
212 #define MLX5_VPORT_INVAL_VHCA_ID(vport) \ argument
213 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID)
255 u16 vport; member
465 void mlx5_esw_vport_free(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
478 u16 vport, const u8 *mac);
480 u16 vport, int link_state);
[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/net/ethernet/mellanox/mlx5/core/esw/
H A Dqos.c53 struct mlx5_vport *vport; member
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()
162 int num_tcs = esw_qos_num_tcs(vport->qos.sched_node->esw->dev); in mlx5_esw_qos_vport_qos_free()
166 kfree(vport->qos.sched_nodes[i]); in mlx5_esw_qos_vport_qos_free()
167 kfree(vport->qos.sched_nodes); in mlx5_esw_qos_vport_qos_free()
170 kfree(vport->qos.sched_node); in mlx5_esw_qos_vport_qos_free()
[all …]
H A Ddevlink_port.c29 struct mlx5_vport *vport; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() local
49 vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
52 if (vport->adjacent) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
53 func_id = vport->adj_info.function_id; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
54 pfnum = vport->adj_info.parent_pci_devfn; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
82 struct mlx5_vport *vport) in mlx5_esw_offloads_pf_vf_devlink_port_init() argument
85 u16 vport_num = vport->vport; in mlx5_esw_offloads_pf_vf_devlink_port_init()
97 vport->dl_port = dl_port; in mlx5_esw_offloads_pf_vf_devlink_port_init()
98 mlx5_devlink_port_init(dl_port, vport); in mlx5_esw_offloads_pf_vf_devlink_port_init()
103 struct mlx5_vport *vport) in mlx5_esw_offloads_pf_vf_devlink_port_cleanup() argument
[all …]
/linux/drivers/scsi/elx/libefc/
H A Defc_nport.c258 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/libfc/
H A Dfc_npiv.c21 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()
/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 …]

123456