Home
last modified time | relevance | path

Searched refs:qlen (Results 1 – 25 of 167) sorted by relevance

1234567

/kernel/linux/linux-5.10/sound/core/seq/oss/
Dseq_oss_readq.c48 q->qlen = 0; in snd_seq_oss_readq_new()
76 if (q->qlen) { in snd_seq_oss_readq_clear()
77 q->qlen = 0; in snd_seq_oss_readq_clear()
146 if (q->qlen >= q->maxlen - 1) { in snd_seq_oss_readq_put_event()
153 q->qlen++; in snd_seq_oss_readq_put_event()
171 if (q->qlen == 0) in snd_seq_oss_readq_pick()
184 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait()
195 if (q->qlen > 0) { in snd_seq_oss_readq_free()
197 q->qlen--; in snd_seq_oss_readq_free()
209 return q->qlen; in snd_seq_oss_readq_poll()
[all …]
/kernel/linux/linux-5.10/net/sched/
Dsch_sfq.c103 sfq_index qlen; /* number of skbs in skblist */ member
207 int qlen = slot->qlen; in sfq_link() local
209 p = qlen + SFQ_MAX_FLOWS; in sfq_link()
210 n = q->dep[qlen].next; in sfq_link()
215 q->dep[qlen].next = x; /* sfq_dep_head(q, p)->next = x */ in sfq_link()
235 d = q->slots[x].qlen--; in sfq_dec()
248 d = ++q->slots[x].qlen; in sfq_inc()
310 sch->q.qlen--; in sfq_drop()
350 sfq_index x, qlen; in sfq_enqueue() local
424 if (slot->qlen >= q->maxdepth) { in sfq_enqueue()
[all …]
Dsch_sfb.c40 u16 qlen; /* length of virtual queue */ member
132 if (b[hash].qlen < 0xFFFF) in increment_one_qlen()
133 b[hash].qlen++; in increment_one_qlen()
161 if (b[hash].qlen > 0) in decrement_one_qlen()
162 b[hash].qlen--; in decrement_one_qlen()
201 u32 qlen = 0, prob = 0, totalpm = 0; in sfb_compute_qlen() local
205 if (qlen < b->qlen) in sfb_compute_qlen()
206 qlen = b->qlen; in sfb_compute_qlen()
214 return qlen; in sfb_compute_qlen()
295 if (unlikely(sch->q.qlen >= q->limit)) { in sfb_enqueue()
[all …]
Dsch_mq.c156 __u32 qlen = 0; in mq_dump() local
158 sch->q.qlen = 0; in mq_dump()
172 qlen = qdisc_qlen_sum(qdisc); in mq_dump()
178 &qdisc->qstats, qlen); in mq_dump()
179 sch->q.qlen += qlen; in mq_dump()
181 sch->q.qlen += qdisc->q.qlen; in mq_dump()
184 sch->qstats.qlen += qdisc->qstats.qlen; in mq_dump()
Dsch_codel.c101 if (q->stats.drop_count && sch->q.qlen) { in codel_qdisc_dequeue()
138 unsigned int qlen, dropped = 0; in codel_change() local
175 qlen = sch->q.qlen; in codel_change()
176 while (sch->q.qlen > sch->limit) { in codel_change()
183 qdisc_tree_reduce_backlog(sch, qlen - sch->q.qlen, dropped); in codel_change()
Dsch_mqprio.c414 sch->q.qlen = 0; in mqprio_dump()
428 __u32 qlen = qdisc_qlen_sum(qdisc); in mqprio_dump() local
435 &qdisc->qstats, qlen); in mqprio_dump()
436 sch->q.qlen += qlen; in mqprio_dump()
438 sch->q.qlen += qdisc->q.qlen; in mqprio_dump()
537 __u32 qlen = 0; in mqprio_dump_class_stats() local
558 qlen = qdisc_qlen_sum(qdisc); in mqprio_dump_class_stats()
566 qlen); in mqprio_dump_class_stats()
568 qlen += qdisc->q.qlen; in mqprio_dump_class_stats()
583 gnet_stats_copy_queue(d, NULL, &qstats, qlen) < 0) in mqprio_dump_class_stats()
Dsch_skbprio.c82 if (sch->q.qlen < sch->limit) { in skbprio_enqueue()
94 sch->q.qlen++; in skbprio_enqueue()
125 BUG_ON(sch->q.qlen != 1); in skbprio_enqueue()
148 sch->q.qlen--; in skbprio_dequeue()
157 BUG_ON(sch->q.qlen); in skbprio_dequeue()
255 q->qstats[cl - 1].qlen) < 0) in skbprio_dump_class_stats()
Dsch_choke.c130 --sch->q.qlen; in choke_drop_by_idx()
221 q->vars.qavg = red_calc_qavg(p, &q->vars, sch->q.qlen); in choke_enqueue()
268 if (sch->q.qlen < q->limit) { in choke_enqueue()
271 ++sch->q.qlen; in choke_enqueue()
298 --sch->q.qlen; in choke_dequeue()
381 unsigned int oqlen = sch->q.qlen, tail = 0; in choke_change()
396 --sch->q.qlen; in choke_change()
399 qdisc_tree_reduce_backlog(sch, oqlen - sch->q.qlen, dropped); in choke_change()
Dsch_drr.c261 __u32 qlen = qdisc_qlen_sum(cl->qdisc); in drr_dump_class_stats() local
266 if (qlen) in drr_dump_class_stats()
272 gnet_stats_copy_queue(d, cl_q->cpu_qstats, &cl_q->qstats, qlen) < 0) in drr_dump_class_stats()
357 first = !cl->qdisc->q.qlen; in drr_enqueue()
373 sch->q.qlen++; in drr_enqueue()
400 if (cl->qdisc->q.qlen == 0) in drr_dequeue()
406 sch->q.qlen--; in drr_dequeue()
441 if (cl->qdisc->q.qlen) in drr_reset_qdisc()
Dsch_hhf.c362 sch->q.qlen--; in hhf_drop()
402 if (++sch->q.qlen <= sch->limit) in hhf_enqueue()
445 sch->q.qlen--; in hhf_dequeue()
513 unsigned int qlen, prev_backlog; in hhf_change() local
563 qlen = sch->q.qlen; in hhf_change()
565 while (sch->q.qlen > sch->limit) { in hhf_change()
570 qdisc_tree_reduce_backlog(sch, qlen - sch->q.qlen, in hhf_change()
/kernel/linux/linux-5.10/include/net/
Dsch_generic.h54 __u32 qlen; member
157 return !READ_ONCE(qdisc->q.qlen); in qdisc_is_empty()
509 return this_cpu_ptr(q->cpu_qstats)->qlen; in qdisc_qlen_cpu()
514 return q->q.qlen; in qdisc_qlen()
519 __u32 qlen = q->qstats.qlen; in qdisc_qlen_sum() local
524 qlen += per_cpu_ptr(q->cpu_qstats, i)->qlen; in qdisc_qlen_sum()
526 qlen += q->q.qlen; in qdisc_qlen_sum()
529 return qlen; in qdisc_qlen_sum()
906 this_cpu_inc(sch->cpu_qstats->qlen); in qdisc_qstats_cpu_qlen_inc()
911 this_cpu_dec(sch->cpu_qstats->qlen); in qdisc_qstats_cpu_qlen_dec()
[all …]
Drequest_sock.h160 int qlen; /* # of pending (TCP_SYN_RECV) reqs */ member
178 atomic_t qlen; member
220 atomic_dec(&queue->qlen); in reqsk_queue_removed()
226 atomic_inc(&queue->qlen); in reqsk_queue_added()
231 return atomic_read(&queue->qlen); in reqsk_queue_len()
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_midi_event.c50 int qlen; member
141 dev->qlen = 0; in reset_encode()
200 dev->qlen = status_event[dev->type].qlen; in snd_midi_event_encode_byte()
202 if (dev->qlen > 0) { in snd_midi_event_encode_byte()
206 dev->qlen--; in snd_midi_event_encode_byte()
210 dev->qlen = status_event[dev->type].qlen - 1; in snd_midi_event_encode_byte()
214 if (dev->qlen == 0) { in snd_midi_event_encode_byte()
320 int qlen; in snd_midi_event_decode() local
331 qlen = status_event[type].qlen + 1; in snd_midi_event_decode()
336 qlen = status_event[type].qlen; in snd_midi_event_decode()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Drcu.h485 TP_PROTO(const char *rcuname, struct rcu_head *rhp, long qlen),
487 TP_ARGS(rcuname, rhp, qlen),
493 __field(long, qlen)
500 __entry->qlen = qlen;
505 __entry->qlen)
519 long qlen),
521 TP_ARGS(rcuname, rhp, offset, qlen),
527 __field(long, qlen)
534 __entry->qlen = qlen;
539 __entry->qlen)
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-queue-length.c39 atomic_t qlen; /* the number of in-flight I/Os */ member
100 DMEMIT("%d ", atomic_read(&pi->qlen)); in ql_status()
149 atomic_set(&pi->qlen, 0); in ql_add_path()
200 (atomic_read(&pi->qlen) < atomic_read(&best->qlen))) in ql_select_path()
203 if (!atomic_read(&best->qlen)) in ql_select_path()
224 atomic_inc(&pi->qlen); in ql_start_io()
234 atomic_dec(&pi->qlen); in ql_end_io()
/kernel/linux/linux-5.10/net/core/
Dgen_stats.c294 qstats->qlen = 0; in __gnet_stats_copy_queue_cpu()
305 __u32 qlen) in __gnet_stats_copy_queue() argument
310 qstats->qlen = q->qlen; in __gnet_stats_copy_queue()
317 qstats->qlen = qlen; in __gnet_stats_copy_queue()
338 struct gnet_stats_queue *q, __u32 qlen) in gnet_stats_copy_queue() argument
342 __gnet_stats_copy_queue(&qstats, cpu_q, q, qlen); in gnet_stats_copy_queue()
346 d->tc_stats.qlen = qstats.qlen; in gnet_stats_copy_queue()
Drequest_sock.c38 queue->fastopenq.qlen = 0; in reqsk_queue_alloc()
98 fastopenq->qlen--; in reqsk_fastopen_remove()
126 fastopenq->qlen++; in reqsk_fastopen_remove()
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
Dgmidi.c52 static unsigned int qlen = 32; variable
53 module_param(qlen, uint, S_IRUGO);
54 MODULE_PARM_DESC(qlen, "USB read and write request queue length");
156 midi_opts->qlen = qlen; in midi_bind()
Dzero.c66 .qlen = GZERO_QLEN,
254 module_param_named(qlen, gzero_options.qlen, uint, S_IRUGO|S_IWUSR);
255 MODULE_PARM_DESC(qlen, "depth of loopback queue");
313 lb_opts->qlen = gzero_options.qlen; in zero_bind()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_loopback.c34 unsigned qlen; member
323 for (i = 0; i < loop->qlen && result == 0; i++) { in alloc_requests()
441 loop->qlen = lb_opts->qlen; in loopback_alloc()
442 if (!loop->qlen) in loopback_alloc()
443 loop->qlen = 32; in loopback_alloc()
479 result = sprintf(page, "%d\n", opts->qlen); in f_lb_opts_qlen_show()
502 opts->qlen = num; in f_lb_opts_qlen_store()
509 CONFIGFS_ATTR(f_lb_opts_, qlen);
579 lb_opts->qlen = GZERO_QLEN; in loopback_alloc_instance()
Dg_zero.h24 unsigned qlen; member
53 unsigned qlen; member
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
Dcptvf_main.c99 pqinfo->qlen = 0; in free_pending_queues()
103 static int alloc_pending_queues(struct pending_qinfo *pqinfo, u32 qlen, in alloc_pending_queues() argument
112 pqinfo->qlen = qlen; in alloc_pending_queues()
114 size = (qlen * sizeof(struct pending_entry)); in alloc_pending_queues()
139 static int init_pending_queues(struct cpt_vf *cptvf, u32 qlen, u32 nr_queues) in init_pending_queues() argument
147 ret = alloc_pending_queues(&cptvf->pqinfo, qlen, nr_queues); in init_pending_queues()
205 u32 qlen) in alloc_command_queues() argument
215 cptvf->qsize = min(qlen, cqinfo->qchunksize) * in alloc_command_queues()
218 q_size = qlen * cqinfo->cmd_size; in alloc_command_queues()
279 static int init_command_queues(struct cpt_vf *cptvf, u32 qlen) in init_command_queues() argument
[all …]
/kernel/linux/linux-5.10/drivers/nfc/st-nci/
Dndlc.c94 if (ndlc->send_q.qlen) in llt_ndlc_send_queue()
96 ndlc->send_q.qlen, ndlc->ack_pending_q.qlen); in llt_ndlc_send_queue()
98 while (ndlc->send_q.qlen) { in llt_ndlc_send_queue()
153 if (ndlc->rcv_q.qlen) in llt_ndlc_rcv_queue()
154 pr_debug("rcvQlen=%d\n", ndlc->rcv_q.qlen); in llt_ndlc_rcv_queue()
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_main.c88 queue->qlen = 0; in free_pending_queues()
93 static int alloc_pending_queues(struct otx_cpt_pending_qinfo *pqinfo, u32 qlen, in alloc_pending_queues() argument
102 size = (qlen * sizeof(struct otx_cpt_pending_entry)); in alloc_pending_queues()
114 queue->qlen = qlen; in alloc_pending_queues()
127 static int init_pending_queues(struct otx_cptvf *cptvf, u32 qlen, in init_pending_queues() argument
136 ret = alloc_pending_queues(&cptvf->pqinfo, qlen, num_queues); in init_pending_queues()
189 u32 qlen) in alloc_command_queues() argument
200 cptvf->qsize = min(qlen, cqinfo->qchunksize) * in alloc_command_queues()
203 q_size = qlen * OTX_CPT_INST_SIZE; in alloc_command_queues()
265 static int init_command_queues(struct otx_cptvf *cptvf, u32 qlen) in init_command_queues() argument
[all …]
/kernel/linux/linux-5.10/net/kcm/
Dkcmproc.c119 kcm->sk.sk_receive_queue.qlen, in kcm_format_sock()
121 kcm->sk.sk_write_queue.qlen, in kcm_format_sock()
149 psock->sk->sk_receive_queue.qlen, in kcm_format_psock()
151 psock->sk->sk_write_queue.qlen, in kcm_format_psock()
167 if (psock->sk->sk_receive_queue.qlen) { in kcm_format_psock()

1234567