Lines Matching refs:port
112 * @lport: The local port to update speeds for
162 * @lport: The local port to update speeds for
200 * @lport: the local port
242 * @vport: NPIV port to be created
263 "base port WWPN\n", buf);
366 * @lport: The local port to dequeue a skb on
370 struct fcoe_port *port = lport_priv(lport);
373 spin_lock_bh(&port->fcoe_pending_queue.lock);
374 while ((skb = __skb_dequeue(&port->fcoe_pending_queue)) != NULL) {
375 spin_unlock_bh(&port->fcoe_pending_queue.lock);
377 spin_lock_bh(&port->fcoe_pending_queue.lock);
379 spin_unlock_bh(&port->fcoe_pending_queue.lock);
385 * @lport: The local port whose backlog is to be cleared
399 struct fcoe_port *port = lport_priv(lport);
402 spin_lock_bh(&port->fcoe_pending_queue.lock);
405 __skb_queue_tail(&port->fcoe_pending_queue, skb);
407 if (port->fcoe_pending_queue_active)
409 port->fcoe_pending_queue_active = 1;
411 while (port->fcoe_pending_queue.qlen) {
413 port->fcoe_pending_queue.qlen++;
414 skb = __skb_dequeue(&port->fcoe_pending_queue);
416 spin_unlock_bh(&port->fcoe_pending_queue.lock);
418 spin_lock_bh(&port->fcoe_pending_queue.lock);
421 __skb_queue_head(&port->fcoe_pending_queue, skb);
423 port->fcoe_pending_queue.qlen--;
427 port->fcoe_pending_queue.qlen--;
430 if (port->fcoe_pending_queue.qlen < port->min_queue_depth)
432 if (port->fcoe_pending_queue.qlen && !timer_pending(&port->timer))
433 mod_timer(&port->timer, jiffies + 2);
434 port->fcoe_pending_queue_active = 0;
436 if (port->fcoe_pending_queue.qlen > port->max_queue_depth)
438 spin_unlock_bh(&port->fcoe_pending_queue.lock);
444 * @t: Timer context use to obtain the FCoE port
450 struct fcoe_port *port = from_timer(port, t, timer);
452 fcoe_check_wait_queue(port->lport, NULL);