Searched refs:qlen (Results 1 - 25 of 30) sorted by relevance

12

/drivers/tty/hvc/
H A Dhvc_beat.c46 static int qlen = 0; local
50 if (qlen) {
51 if (qlen > cnt) {
53 qlen -= cnt;
54 memmove(q + cnt, q, qlen);
56 } else { /* qlen <= cnt */
59 memcpy(buf, q, qlen);
60 r = qlen;
61 qlen = 0;
67 qlen
[all...]
/drivers/md/
H A Ddm-queue-length.c38 atomic_t qlen; /* the number of in-flight I/Os */ member in struct:path_info
98 DMEMIT("%d ", atomic_read(&pi->qlen));
140 atomic_set(&pi->qlen, 0);
184 (atomic_read(&pi->qlen) < atomic_read(&best->qlen)))
187 if (!atomic_read(&best->qlen))
204 atomic_inc(&pi->qlen);
214 atomic_dec(&pi->qlen);
/drivers/usb/gadget/
H A Dgmidi.c66 static unsigned int qlen = 32; variable
67 module_param(qlen, uint, S_IRUGO);
68 MODULE_PARM_DESC(qlen, "USB read request queue length");
138 buflen, qlen);
H A Df_loopback.c47 static unsigned qlen = 32; variable
48 module_param(qlen, uint, 0);
272 * of requests it submitted (just maintains qlen count), we
328 * we buffer at most 'qlen' transfers; fewer if any need more
331 for (i = 0; i < qlen && result == 0; i++) {
H A Df_midi.c86 unsigned int buflen, qlen; member in struct:f_midi
367 for (i = 0; i < midi->qlen && err == 0; i++) {
916 * @qlen the number of read requests to pre-allocate
926 unsigned int qlen)
975 midi->qlen = qlen;
921 f_midi_bind_config(struct usb_configuration *c, int index, char *id, unsigned int in_ports, unsigned int out_ports, unsigned int buflen, unsigned int qlen) argument
H A Du_ether.c98 static inline int qlen(struct usb_gadget *gadget) function
903 result = alloc_requests(dev, link, qlen(dev->gadget));
907 DBG(dev, "qlen %d\n", qlen(dev->gadget));
H A Dprinter.c153 static unsigned qlen = 10; variable
154 module_param(qlen, uint, S_IRUGO|S_IWUSR);
156 #define QLEN qlen
/drivers/net/wireless/brcm80211/include/
H A Dbrcmu_utils.h89 return pq->q[prec].skblist.qlen;
94 return pq->q[prec].max - pq->q[prec].skblist.qlen;
99 return pq->q[prec].skblist.qlen >= pq->q[prec].max;
/drivers/net/usb/
H A Dusbnet.c300 if (dev->done.qlen == 1)
1148 if (dev->txq.qlen >= TX_QLEN (dev))
1200 if ((dev->txq.qlen + dev->rxq.qlen + dev->done.qlen) == 0) {
1209 int temp = dev->rxq.qlen; local
1210 int qlen = RX_QLEN (dev);
1212 if (temp < qlen) {
1217 for (i = 0; i < 10 && dev->rxq.qlen < qlen;
[all...]
/drivers/scsi/fcoe/
H A Dfcoe_transport.c276 * transmitted it returns the qlen. If an error occurs it restores
297 while (port->fcoe_pending_queue.qlen) {
298 /* keep qlen > 0 until fcoe_start_io succeeds */
299 port->fcoe_pending_queue.qlen++;
309 port->fcoe_pending_queue.qlen--;
313 port->fcoe_pending_queue.qlen--;
316 if (port->fcoe_pending_queue.qlen < port->min_queue_depth)
318 if (port->fcoe_pending_queue.qlen && !timer_pending(&port->timer))
322 if (port->fcoe_pending_queue.qlen > port->max_queue_depth)
H A Dfcoe.c512 if (port->fcoe_pending_queue.qlen)
1419 if (fps->fcoe_rx_list.qlen == 1)
2244 if (pp->fcoe_rx_list.qlen == 1)
/drivers/block/
H A Dub.c283 int qlen, qmax; member in struct:ub_scsi_cmd_queue
578 if (t->qlen++ == 0) {
586 if (t->qlen > t->qmax)
587 t->qmax = t->qlen;
594 if (t->qlen++ == 0) {
602 if (t->qlen > t->qmax)
603 t->qmax = t->qlen;
611 if (t->qlen == 0)
613 if (--t->qlen == 0)
/drivers/net/caif/
H A Dcaif_serial.c272 if (ser->head.qlen <= SEND_QUEUE_LOW &&
291 if (ser->head.qlen > SEND_QUEUE_HIGH &&
H A Dcaif_hsi.c290 cfhsi->qhead.qlen <= cfhsi->q_low_mark &&
908 cfhsi->qhead.qlen > cfhsi->q_high_mark &&
H A Dcaif_spi.c450 if (cfspi->flow_off_sent && cfspi->qhead.qlen < cfspi->qd_low_mark &&
516 cfspi->qhead.qlen > cfspi->qd_high_mark &&
/drivers/net/wireless/brcm80211/brcmutil/
H A Dutils.c203 len += pq->q[prec].skblist.qlen;
/drivers/bluetooth/
H A Dhci_bcsp.c311 if (bcsp->unack.qlen < BCSP_TXWINSIZE && (skb = skb_dequeue(&bcsp->rel)) != NULL) {
675 BT_DBG("hu %p retransmitting %u pkts", hu, bcsp->unack.qlen);
/drivers/net/wireless/brcm80211/brcmsmac/
H A Dampdu.c534 u16 qlen; local
550 qlen = pktq_plen(&qi->q, prec);
552 qlen < min(scb_ampdu->max_pdu, ini->ba_wsize))
/drivers/tty/serial/jsm/
H A Djsm_neo.c497 int qlen; local
543 qlen = uart_circ_chars_pending(circ);
546 n = min(n, qlen);
/drivers/usb/host/
H A Dohci-dbg.c596 unsigned qlen = 0; local
598 /* qlen measured here in TDs, not urbs */
600 qlen++;
603 " (%cs dev%d ep%d%s-%s qlen %u"
610 qlen,
/drivers/input/misc/
H A Dwistron_btns.c1141 u8 qlen; local
1145 qlen = CMOS_READ(cmos_address);
1146 if (qlen == 0)
/drivers/net/wireless/brcm80211/brcmfmac/
H A Dbcmsdh.c310 fn, addr, pktq->qlen);
/drivers/misc/
H A Dhpilo.c47 int qlen = len & 7 ? (len >> 3) + 1 : len >> 3; local
48 return id << ENTRY_BITPOS_DESCRIPTOR | qlen << ENTRY_BITPOS_QWORDS;
/drivers/crypto/
H A Dhifn_795x.c1927 "success: %lu: qlen: %u/%u, reset: %d.\n",
1929 dev->success, dev->queue.qlen, dev->queue.max_qlen,
2177 if (dev->started < HIFN_QUEUE_LENGTH && dev->queue.qlen)
2559 if (dev->started < HIFN_QUEUE_LENGTH && dev->queue.qlen)
/drivers/net/ethernet/toshiba/
H A Dtc35815.c1815 int qlen = (lp->tfd_start + TX_FD_NUM local
1825 if (lp->lstats.max_tx_qlen < qlen)
1826 lp->lstats.max_tx_qlen = qlen;

Completed in 500 milliseconds

12