Lines Matching refs:vn
547 struct fip_vn_desc *vn; in fcoe_ctlr_send_keep_alive() local
557 len = sizeof(*kal) + ports * sizeof(*vn); in fcoe_ctlr_send_keep_alive()
572 ports * sizeof(*vn)) / FIP_BPW); in fcoe_ctlr_send_keep_alive()
581 vn = (struct fip_vn_desc *)(kal + 1); in fcoe_ctlr_send_keep_alive()
582 vn->fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_send_keep_alive()
583 vn->fd_desc.fip_dlen = sizeof(*vn) / FIP_BPW; in fcoe_ctlr_send_keep_alive()
584 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive()
585 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive()
586 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive()
2037 struct fip_vn_desc vn; in fcoe_ctlr_vn_send() member
2052 dlen += sizeof(frame->mac) + sizeof(frame->wwnn) + sizeof(frame->vn); in fcoe_ctlr_vn_send()
2084 frame->vn.fd_desc.fip_dtype = FIP_DT_VN_ID; in fcoe_ctlr_vn_send()
2085 frame->vn.fd_desc.fip_dlen = sizeof(frame->vn) / FIP_BPW; in fcoe_ctlr_vn_send()
2086 hton24(frame->vn.fd_mac, FIP_VN_FC_MAP); in fcoe_ctlr_vn_send()
2087 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send()
2088 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send()
2089 put_unaligned_be64(fip->lp->wwpn, &frame->vn.fd_wwpn); in fcoe_ctlr_vn_send()
2287 struct fip_vn_desc *vn = NULL; in fcoe_ctlr_vn_parse() local
2366 vn = (struct fip_vn_desc *)desc; in fcoe_ctlr_vn_parse()
2367 memcpy(frport->vn_mac, vn->fd_mac, ETH_ALEN); in fcoe_ctlr_vn_parse()
2368 rdata->ids.port_id = ntoh24(vn->fd_fc_id); in fcoe_ctlr_vn_parse()
2369 rdata->ids.port_name = get_unaligned_be64(&vn->fd_wwpn); in fcoe_ctlr_vn_parse()