Lines Matching refs:port

83 static void bnx2fc_port_destroy(struct fcoe_port *port);
189 struct fcoe_port *port = lport_priv(lport);
190 struct bnx2fc_interface *interface = port->priv;
202 if (tgt->port == port) {
259 * @lport: the associated local port
271 struct fcoe_port *port;
280 port = (struct fcoe_port *)lport_priv(lport);
281 interface = port->priv;
318 tgt = bnx2fc_tgt_lookup(port, ntoh24(fh->fh_d_id));
341 /* copy port crc and eof to the skb buff */
362 /* adjust skb network/transport offsets to match mac/fcoe/port */
382 memcpy(eh->h_source, port->data_src_addr, ETH_ALEN);
407 if (port->fcoe_pending_queue.qlen)
515 struct fcoe_port *port, *phys_port;
576 port = lport_priv(vn_port);
577 if (!ether_addr_equal(port->data_src_addr, dest_mac)) {
618 * have on record for lport and the search for a NPIV port came up
619 * empty then this is not addressed to our port so simply drop it.
686 struct fcoe_port *port = lport_priv(lport);
687 struct bnx2fc_interface *interface = port->priv;
736 struct fcoe_port *port = lport_priv(lport);
737 struct bnx2fc_interface *interface = port->priv;
769 struct fcoe_port *port = lport_priv(lport);
770 struct bnx2fc_interface *interface = port->priv;
804 struct fcoe_port *port;
807 port = lport_priv(lport);
808 interface = port->priv;
820 skb_queue_head_init(&port->fcoe_pending_queue);
821 port->fcoe_pending_queue_active = 0;
822 timer_setup(&port->timer, fcoe_queue_timer, 0);
1073 * @lport: The local port
1081 struct fcoe_port *port = lport_priv(lport);
1083 memcpy(port->data_src_addr, addr, ETH_ALEN);
1089 * @lport: libfc port
1093 struct fcoe_port *port;
1095 port = (struct fcoe_port *)lport_priv(lport);
1096 return port->data_src_addr;
1129 struct fcoe_port *port = lport_priv(n_port);
1130 struct bnx2fc_interface *interface = port->priv;
1195 struct fcoe_port *port = lport_priv(vn_port);
1196 struct bnx2fc_interface *interface = port->priv;
1213 bnx2fc_free_vport(interface->hba, port->lport);
1214 bnx2fc_port_shutdown(port->lport);
1215 bnx2fc_port_destroy(port);
1483 * @interface: FCoE interface to create a local port on
1485 * @npiv: Indicates if the port is vport or not
1496 struct fcoe_port *port;
1512 lport = libfc_host_alloc(&bnx2fc_shost_template, sizeof(*port));
1514 lport = libfc_vport_create(vport, sizeof(*port));
1521 port = lport_priv(lport);
1522 port->lport = lport;
1523 port->priv = interface;
1524 port->get_netdev = bnx2fc_netdev;
1606 struct fcoe_port *port = lport_priv(lport);
1610 del_timer_sync(&port->timer);
1647 struct fcoe_port *port = lport_priv(lport);
1652 bnx2fc_port_destroy(port);
1693 static void bnx2fc_port_destroy(struct fcoe_port *port)
1697 lport = port->lport;
2153 * the WWNN should be the same as the physical port.
2529 printk(KERN_ERR PFX "bnx2fc port check: %s, flags: %lx\n",
2914 struct fcoe_port *port = lport_priv(lport);
2915 struct bnx2fc_interface *interface = port->priv;
2927 struct fcoe_port *port = lport_priv(lport);
2928 struct bnx2fc_interface *interface = port->priv;