Lines Matching refs:vn
539 struct fip_vn_desc *vn; in fcoe_ctlr_send_keep_alive() local
549 len = sizeof(*kal) + ports * sizeof(*vn); in fcoe_ctlr_send_keep_alive()
564 ports * sizeof(*vn)) / FIP_BPW); in fcoe_ctlr_send_keep_alive()
573 vn = (struct fip_vn_desc *)(kal + 1); in fcoe_ctlr_send_keep_alive()
574 vn->fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_send_keep_alive()
575 vn->fd_desc.fip_dlen = sizeof(*vn) / FIP_BPW; in fcoe_ctlr_send_keep_alive()
576 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive()
577 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive()
578 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive()
2031 struct fip_vn_desc vn; in fcoe_ctlr_vn_send() member
2046 dlen += sizeof(frame->mac) + sizeof(frame->wwnn) + sizeof(frame->vn); in fcoe_ctlr_vn_send()
2078 frame->vn.fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_vn_send()
2079 frame->vn.fd_desc.fip_dlen = sizeof(frame->vn) / FIP_BPW; in fcoe_ctlr_vn_send()
2080 hton24(frame->vn.fd_mac, FIP_VN_FC_MAP); in fcoe_ctlr_vn_send()
2081 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send()
2082 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send()
2083 put_unaligned_be64(fip->lp->wwpn, &frame->vn.fd_wwpn); in fcoe_ctlr_vn_send()
2281 struct fip_vn_desc *vn = NULL; in fcoe_ctlr_vn_parse() local
2357 vn = (struct fip_vn_desc *)desc; in fcoe_ctlr_vn_parse()
2358 memcpy(frport->vn_mac, vn->fd_mac, ETH_ALEN); in fcoe_ctlr_vn_parse()
2359 frport->rdata.ids.port_id = ntoh24(vn->fd_fc_id); in fcoe_ctlr_vn_parse()
2361 get_unaligned_be64(&vn->fd_wwpn); in fcoe_ctlr_vn_parse()