Lines Matching refs:port
111 * @lport: The local port to update speeds for
161 * @lport: The local port to update speeds for
199 * @lport: the local port
241 * @vport: NPIV port to be created
262 "base port WWPN\n", buf);
365 * @lport: The local port to dequeue a skb on
369 struct fcoe_port *port = lport_priv(lport);
372 spin_lock_bh(&port->fcoe_pending_queue.lock);
373 while ((skb = __skb_dequeue(&port->fcoe_pending_queue)) != NULL) {
374 spin_unlock_bh(&port->fcoe_pending_queue.lock);
376 spin_lock_bh(&port->fcoe_pending_queue.lock);
378 spin_unlock_bh(&port->fcoe_pending_queue.lock);
384 * @lport: The local port whose backlog is to be cleared
398 struct fcoe_port *port = lport_priv(lport);
401 spin_lock_bh(&port->fcoe_pending_queue.lock);
404 __skb_queue_tail(&port->fcoe_pending_queue, skb);
406 if (port->fcoe_pending_queue_active)
408 port->fcoe_pending_queue_active = 1;
410 while (port->fcoe_pending_queue.qlen) {
412 port->fcoe_pending_queue.qlen++;
413 skb = __skb_dequeue(&port->fcoe_pending_queue);
415 spin_unlock_bh(&port->fcoe_pending_queue.lock);
417 spin_lock_bh(&port->fcoe_pending_queue.lock);
420 __skb_queue_head(&port->fcoe_pending_queue, skb);
422 port->fcoe_pending_queue.qlen--;
426 port->fcoe_pending_queue.qlen--;
429 if (port->fcoe_pending_queue.qlen < port->min_queue_depth)
431 if (port->fcoe_pending_queue.qlen && !timer_pending(&port->timer))
432 mod_timer(&port->timer, jiffies + 2);
433 port->fcoe_pending_queue_active = 0;
435 if (port->fcoe_pending_queue.qlen > port->max_queue_depth)
437 spin_unlock_bh(&port->fcoe_pending_queue.lock);
443 * @t: Timer context use to obtain the FCoE port
449 struct fcoe_port *port = from_timer(port, t, timer);
451 fcoe_check_wait_queue(port->lport, NULL);