Lines Matching refs:port
85 static void bnx2fc_port_destroy(struct fcoe_port *port);
191 struct fcoe_port *port = lport_priv(lport);
192 struct bnx2fc_interface *interface = port->priv;
204 if (tgt->port == port) {
261 * @lport: the associated local port
273 struct fcoe_port *port;
281 port = (struct fcoe_port *)lport_priv(lport);
282 interface = port->priv;
319 tgt = bnx2fc_tgt_lookup(port, ntoh24(fh->fh_d_id));
342 /* copy port crc and eof to the skb buff */
363 /* adjust skb network/transport offsets to match mac/fcoe/port */
383 memcpy(eh->h_source, port->data_src_addr, ETH_ALEN);
406 if (port->fcoe_pending_queue.qlen)
513 struct fcoe_port *port, *phys_port;
572 port = lport_priv(vn_port);
573 if (!ether_addr_equal(port->data_src_addr, dest_mac)) {
614 * have on record for lport and the search for a NPIV port came up
615 * empty then this is not addressed to our port so simply drop it.
680 struct fcoe_port *port = lport_priv(lport);
681 struct bnx2fc_interface *interface = port->priv;
730 struct fcoe_port *port = lport_priv(lport);
731 struct bnx2fc_interface *interface = port->priv;
763 struct fcoe_port *port = lport_priv(lport);
764 struct bnx2fc_interface *interface = port->priv;
798 struct fcoe_port *port;
801 port = lport_priv(lport);
802 interface = port->priv;
814 skb_queue_head_init(&port->fcoe_pending_queue);
815 port->fcoe_pending_queue_active = 0;
816 timer_setup(&port->timer, fcoe_queue_timer, 0);
1065 * @lport: The local port
1073 struct fcoe_port *port = lport_priv(lport);
1075 memcpy(port->data_src_addr, addr, ETH_ALEN);
1081 * @lport: libfc port
1085 struct fcoe_port *port;
1087 port = (struct fcoe_port *)lport_priv(lport);
1088 return port->data_src_addr;
1121 struct fcoe_port *port = lport_priv(n_port);
1122 struct bnx2fc_interface *interface = port->priv;
1187 struct fcoe_port *port = lport_priv(vn_port);
1188 struct bnx2fc_interface *interface = port->priv;
1205 bnx2fc_free_vport(interface->hba, port->lport);
1206 bnx2fc_port_shutdown(port->lport);
1207 bnx2fc_port_destroy(port);
1475 * @interface: FCoE interface to create a local port on
1477 * @npiv: Indicates if the port is vport or not
1488 struct fcoe_port *port;
1504 lport = libfc_host_alloc(&bnx2fc_shost_template, sizeof(*port));
1506 lport = libfc_vport_create(vport, sizeof(*port));
1513 port = lport_priv(lport);
1514 port->lport = lport;
1515 port->priv = interface;
1516 port->get_netdev = bnx2fc_netdev;
1598 struct fcoe_port *port = lport_priv(lport);
1602 del_timer_sync(&port->timer);
1639 struct fcoe_port *port = lport_priv(lport);
1644 bnx2fc_port_destroy(port);
1685 static void bnx2fc_port_destroy(struct fcoe_port *port)
1689 lport = port->lport;
2145 * the WWNN should be the same as the physical port.
2521 printk(KERN_ERR PFX "bnx2fc port check: %s, flags: %lx\n",
2905 struct fcoe_port *port = lport_priv(lport);
2906 struct bnx2fc_interface *interface = port->priv;
2918 struct fcoe_port *port = lport_priv(lport);
2919 struct bnx2fc_interface *interface = port->priv;