Lines Matching refs:vn
544 struct fip_vn_desc *vn; in fcoe_ctlr_send_keep_alive() local
554 len = sizeof(*kal) + ports * sizeof(*vn); in fcoe_ctlr_send_keep_alive()
569 ports * sizeof(*vn)) / FIP_BPW); in fcoe_ctlr_send_keep_alive()
578 vn = (struct fip_vn_desc *)(kal + 1); in fcoe_ctlr_send_keep_alive()
579 vn->fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_send_keep_alive()
580 vn->fd_desc.fip_dlen = sizeof(*vn) / FIP_BPW; in fcoe_ctlr_send_keep_alive()
581 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive()
582 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive()
583 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive()
1996 struct fip_vn_desc vn; in fcoe_ctlr_vn_send() member
2011 dlen += sizeof(frame->mac) + sizeof(frame->wwnn) + sizeof(frame->vn); in fcoe_ctlr_vn_send()
2043 frame->vn.fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_vn_send()
2044 frame->vn.fd_desc.fip_dlen = sizeof(frame->vn) / FIP_BPW; in fcoe_ctlr_vn_send()
2045 hton24(frame->vn.fd_mac, FIP_VN_FC_MAP); in fcoe_ctlr_vn_send()
2046 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send()
2047 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send()
2048 put_unaligned_be64(fip->lp->wwpn, &frame->vn.fd_wwpn); in fcoe_ctlr_vn_send()
2242 struct fip_vn_desc *vn = NULL; in fcoe_ctlr_vn_parse() local
2321 vn = (struct fip_vn_desc *)desc; in fcoe_ctlr_vn_parse()
2322 memcpy(frport->vn_mac, vn->fd_mac, ETH_ALEN); in fcoe_ctlr_vn_parse()
2323 rdata->ids.port_id = ntoh24(vn->fd_fc_id); in fcoe_ctlr_vn_parse()
2324 rdata->ids.port_name = get_unaligned_be64(&vn->fd_wwpn); in fcoe_ctlr_vn_parse()