bin/csh/file.c
128
cl_flush(struct cmdline *cl)
bin/csh/file.c
133
if (cl->flags & CL_PROMPT) {
bin/csh/file.c
134
cl->flags &= ~CL_PROMPT;
bin/csh/file.c
138
if (cl->cursor < cl->len) {
bin/csh/file.c
139
for (; cl->cursor < cl->len; cl->cursor++)
bin/csh/file.c
140
cl_visc(cl, cl->buf[cl->cursor]);
bin/csh/file.c
141
} else if (cl->cursor > cl->len) {
bin/csh/file.c
142
len = cl->cursor - cl->len;
bin/csh/file.c
144
c = cl->buf[--cl->cursor];
bin/csh/file.c
151
cl_putc(cl, '\b');
bin/csh/file.c
153
cl_putc(cl, ' ');
bin/csh/file.c
155
cl_putc(cl, '\b');
bin/csh/file.c
156
cl->cursor = cl->len;
bin/csh/file.c
161
cl_getc(struct cmdline *cl)
bin/csh/file.c
167
n = read(cl->fdin, &c, 1);
bin/csh/file.c
182
cl_lastw(struct cmdline *cl)
bin/csh/file.c
189
for (i = cl->len; i > 0; i--)
bin/csh/file.c
190
if (strchr(delimiters, cl->buf[i - 1]) != NULL)
bin/csh/file.c
194
for (; i < cl->len; i++)
bin/csh/file.c
195
*cp++ = cl->buf[i];
bin/csh/file.c
202
cl_putc(struct cmdline *cl, int c)
bin/csh/file.c
206
write(cl->fdout, &cc, 1);
bin/csh/file.c
210
cl_visc(struct cmdline *cl, int c)
bin/csh/file.c
217
cl_putc(cl, ' ');
bin/csh/file.c
219
cl_putc(cl, '^');
bin/csh/file.c
220
cl_putc(cl, UNCNTRL(c));
bin/csh/file.c
222
cl_putc(cl, c);
bin/csh/file.c
227
cl_abort(struct cmdline *cl, int c)
bin/csh/file.c
229
cl_visc(cl, c);
bin/csh/file.c
233
if (cl->istty)
bin/csh/file.c
238
cl_putc(cl, '\n');
bin/csh/file.c
239
cl->len = cl->cursor = 0;
bin/csh/file.c
240
cl->flags |= CL_PROMPT;
bin/csh/file.c
246
cl_erasec(struct cmdline *cl, int c)
bin/csh/file.c
248
if (cl->len > 0)
bin/csh/file.c
249
cl->len--;
bin/csh/file.c
255
cl_erasew(struct cmdline *cl, int c)
bin/csh/file.c
259
for (; cl->len > 0; cl->len--)
bin/csh/file.c
260
if (strchr(ws, cl->buf[cl->len - 1]) == NULL &&
bin/csh/file.c
261
((cl->flags & CL_ALTWERASE) == 0 ||
bin/csh/file.c
262
isalpha(cl->buf[cl->len - 1])))
bin/csh/file.c
264
for (; cl->len > 0; cl->len--)
bin/csh/file.c
265
if (strchr(ws, cl->buf[cl->len - 1]) != NULL ||
bin/csh/file.c
266
((cl->flags & CL_ALTWERASE) &&
bin/csh/file.c
267
!isalpha(cl->buf[cl->len - 1])))
bin/csh/file.c
274
cl_beep(struct cmdline *cl)
bin/csh/file.c
277
cl_putc(cl, '\007');
bin/csh/file.c
281
cl_insert(struct cmdline *cl, int c)
bin/csh/file.c
283
if (cl->len == cl->size)
bin/csh/file.c
286
cl->buf[cl->len++] = c;
bin/csh/file.c
295
cl_kill(struct cmdline *cl, int c)
bin/csh/file.c
297
cl->len = 0;
bin/csh/file.c
303
cl_list(struct cmdline *cl, int c)
bin/csh/file.c
308
if (adrof(STRignoreeof) || cl->len > 0)
bin/csh/file.c
309
cl_visc(cl, c);
bin/csh/file.c
311
if (cl->len == 0)
bin/csh/file.c
314
cl_putc(cl, '\n');
bin/csh/file.c
315
cl->cursor = 0;
bin/csh/file.c
316
cl->flags |= CL_PROMPT;
bin/csh/file.c
318
word = cl_lastw(cl);
bin/csh/file.c
326
cl_literal(struct cmdline *cl, int c)
bin/csh/file.c
330
literal = cl_getc(cl);
bin/csh/file.c
333
cl_insert(cl, literal);
bin/csh/file.c
339
cl_recognize(struct cmdline *cl, int c)
bin/csh/file.c
345
if (cl->len == 0) {
bin/csh/file.c
346
cl_beep(cl);
bin/csh/file.c
350
word = cl_lastw(cl);
bin/csh/file.c
354
cl_insert(cl, *word);
bin/csh/file.c
356
cl_beep(cl);
bin/csh/file.c
362
cl_reprint(struct cmdline *cl, int c)
bin/csh/file.c
364
cl_visc(cl, c);
bin/csh/file.c
365
cl_putc(cl, '\n');
bin/csh/file.c
366
cl->cursor = 0;
bin/csh/file.c
372
cl_status(struct cmdline *cl, int c)
bin/csh/file.c
374
cl->cursor = 0;
bin/csh/file.c
375
if (cl->istty)
bin/csh/file.c
376
ioctl(cl->fdin, TIOCSTAT);
bin/csh/file.c
771
struct cmdline cl;
bin/csh/file.c
775
memset(&cl, 0, sizeof(cl));
bin/csh/file.c
776
cl.fdin = SHIN;
bin/csh/file.c
777
cl.fdout = SHOUT;
bin/csh/file.c
778
cl.istty = isatty(SHIN);
bin/csh/file.c
780
if (cl.istty)
bin/csh/file.c
783
cl.buf = buf;
bin/csh/file.c
784
cl.size = sizeof(buf);
bin/csh/file.c
785
if (inputline_size < cl.size)
bin/csh/file.c
786
cl.size = inputline_size;
bin/csh/file.c
787
if (cl.istty && tio->c_lflag & ALTWERASE)
bin/csh/file.c
788
cl.flags |= CL_ALTWERASE;
bin/csh/file.c
791
cl.flags |= CL_PROMPT;
bin/csh/file.c
792
cl_flush(&cl);
bin/csh/file.c
796
if ((c = cl_getc(&cl)) == 0)
bin/csh/file.c
800
if (cl.istty && CCEQ(tio->c_cc[keys[i].idx], c))
bin/csh/file.c
802
ret = keys[i].fn(&cl, c);
bin/csh/file.c
803
cl_flush(&cl);
bin/csh/file.c
808
if (cl.istty)
bin/csh/file.c
811
for (i = 0; i < cl.len; i++)
bin/csh/file.c
812
inputline[i] = cl.buf[i];
bin/csh/file.c
819
if (i < cl.size)
bin/csh/file.c
822
return cl.len;
include/rpc/clnt.h
203
#define CLNT_CONTROL(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in))
include/rpc/clnt.h
204
#define clnt_control(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in))
lib/libc/rpc/clnt_raw.c
216
clntraw_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)
lib/libc/rpc/clnt_tcp.c
327
clnttcp_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)
lib/libc/rpc/clnt_tcp.c
329
struct ct_data *ct = (struct ct_data *)cl->cl_private;
lib/libc/rpc/clnt_tcp.c
342
clnttcp_control(CLIENT *cl, u_int request, void *info)
lib/libc/rpc/clnt_tcp.c
344
struct ct_data *ct = (struct ct_data *)cl->cl_private;
lib/libc/rpc/clnt_udp.c
114
args->cl->cl_auth = authnone_create();
lib/libc/rpc/clnt_udp.c
115
if (args->cl->cl_auth == NULL) {
lib/libc/rpc/clnt_udp.c
161
args.cl = NULL;
lib/libc/rpc/clnt_udp.c
170
return (args.cl);
lib/libc/rpc/clnt_udp.c
175
if (args.cl)
lib/libc/rpc/clnt_udp.c
176
mem_free((caddr_t)args.cl, sizeof(CLIENT));
lib/libc/rpc/clnt_udp.c
181
clntudp_call(CLIENT *cl, /* client handle */
lib/libc/rpc/clnt_udp.c
189
struct cu_data *cu = (struct cu_data *)cl->cl_private;
lib/libc/rpc/clnt_udp.c
222
!AUTH_MARSHALL(cl->cl_auth, xdrs) ||
lib/libc/rpc/clnt_udp.c
332
if (!AUTH_VALIDATE(cl->cl_auth,
lib/libc/rpc/clnt_udp.c
344
if (nrefreshes > 0 && AUTH_REFRESH(cl->cl_auth)) {
lib/libc/rpc/clnt_udp.c
362
clntudp_geterr(CLIENT *cl, struct rpc_err *errp)
lib/libc/rpc/clnt_udp.c
364
struct cu_data *cu = (struct cu_data *)cl->cl_private;
lib/libc/rpc/clnt_udp.c
371
clntudp_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)
lib/libc/rpc/clnt_udp.c
373
struct cu_data *cu = (struct cu_data *)cl->cl_private;
lib/libc/rpc/clnt_udp.c
386
clntudp_control(CLIENT *cl, u_int request, void *info)
lib/libc/rpc/clnt_udp.c
388
struct cu_data *cu = (struct cu_data *)cl->cl_private;
lib/libc/rpc/clnt_udp.c
416
clntudp_destroy(CLIENT *cl)
lib/libc/rpc/clnt_udp.c
418
struct cu_data *cu = (struct cu_data *)cl->cl_private;
lib/libc/rpc/clnt_udp.c
425
mem_free((caddr_t)cl, sizeof(CLIENT));
lib/libc/rpc/clnt_udp.c
72
args->cl = (CLIENT *)mem_alloc(sizeof(CLIENT));
lib/libc/rpc/clnt_udp.c
73
if (args->cl == NULL) {
lib/libc/rpc/clnt_udp.c
88
args->cl->cl_ops = &udp_ops;
lib/libc/rpc/clnt_udp.c
89
args->cl->cl_private = (caddr_t)args->cu;
lib/libc/rpc/clnt_udp.h
62
CLIENT *cl;
lib/libc/rpc/clnt_udp_bufcreate.c
111
return (args.cl);
lib/libc/rpc/clnt_udp_bufcreate.c
116
if (args.cl)
lib/libc/rpc/clnt_udp_bufcreate.c
117
mem_free((caddr_t)args.cl, sizeof(CLIENT));
lib/libcrypto/arc4random/getentropy_aix.c
172
static const int cl[] = {
lib/libcrypto/arc4random/getentropy_aix.c
257
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]); ii++)
lib/libcrypto/arc4random/getentropy_aix.c
258
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_aix.c
325
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]);
lib/libcrypto/arc4random/getentropy_aix.c
327
HX((e = clock_gettime(cl[ii],
lib/libcrypto/arc4random/getentropy_hpux.c
176
static const int cl[] = {
lib/libcrypto/arc4random/getentropy_hpux.c
243
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]); ii++)
lib/libcrypto/arc4random/getentropy_hpux.c
244
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_hpux.c
319
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]);
lib/libcrypto/arc4random/getentropy_hpux.c
321
HX((e = clock_gettime(cl[ii],
lib/libcrypto/arc4random/getentropy_linux.c
284
static const int cl[] = {
lib/libcrypto/arc4random/getentropy_linux.c
356
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]); ii++)
lib/libcrypto/arc4random/getentropy_linux.c
357
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_linux.c
425
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]);
lib/libcrypto/arc4random/getentropy_linux.c
427
HX((e = clock_gettime(cl[ii],
lib/libcrypto/arc4random/getentropy_solaris.c
203
static const int cl[] = {
lib/libcrypto/arc4random/getentropy_solaris.c
276
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]); ii++)
lib/libcrypto/arc4random/getentropy_solaris.c
277
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_solaris.c
345
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]);
lib/libcrypto/arc4random/getentropy_solaris.c
347
HX((e = clock_gettime(cl[ii],
lib/libfido2/src/assert.c
109
const fido_blob_array_t *cl = &assert->allow_list;
lib/libfido2/src/assert.c
110
if ((argv[2] = cbor_encode_pubkey_list(cl)) == NULL) {
lib/libkeynote/keynote-verify.c
119
if (sb.st_size > cl - 1)
lib/libkeynote/keynote-verify.c
122
cl = sb.st_size + 1;
lib/libkeynote/keynote-verify.c
123
buf = calloc(cl, sizeof(char));
lib/libkeynote/keynote-verify.c
239
if (sb.st_size > cl - 1)
lib/libkeynote/keynote-verify.c
242
cl = sb.st_size + 1;
lib/libkeynote/keynote-verify.c
243
buf = calloc(cl, sizeof(char));
lib/libkeynote/keynote-verify.c
323
if (sb.st_size > cl - 1)
lib/libkeynote/keynote-verify.c
326
cl = sb.st_size + 1;
lib/libkeynote/keynote-verify.c
327
buf = calloc(cl, sizeof(char));
lib/libkeynote/keynote-verify.c
58
int fd, i, ch, se = 0, cl = 8192, sk = 0, sl = 0, p, ac = argc;
lib/libkeynote/keynote-verify.c
69
if ((buf = calloc(cl, sizeof(char))) == NULL)
lib/libskey/put.c
463
unsigned char cl;
lib/libskey/put.c
476
cl = (y >> 16) & 0xff;
lib/libskey/put.c
480
s[start / 8] |= cl;
lib/libskey/put.c
513
unsigned char cl;
lib/libskey/put.c
523
cl = s[start / 8];
lib/libskey/put.c
526
x = ((int)(cl << 8 | cc) << 8 | cr);
libexec/spamd-setup/spamd-setup.c
561
struct cidr *cl;
libexec/spamd-setup/spamd-setup.c
574
cl = reallocarray(NULL, cls, sizeof(struct cidr));
libexec/spamd-setup/spamd-setup.c
575
if (cl == NULL)
libexec/spamd-setup/spamd-setup.c
599
cl = range2cidrlist(cl, &cli, &cls, bstart, addr - 1);
libexec/spamd-setup/spamd-setup.c
603
cl[cli].addr = 0;
libexec/spamd-setup/spamd-setup.c
605
return (cl);
regress/lib/libcrypto/x509/constraints.c
462
size_t cl;
regress/lib/libcrypto/x509/constraints.c
581
cl = strlen(".openbsd.org");
regress/lib/libcrypto/x509/constraints.c
584
if (!x509_constraints_domain(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
591
cl = strlen("www.openbsd.org");
regress/lib/libcrypto/x509/constraints.c
592
if (x509_constraints_domain(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
599
cl = 0;
regress/lib/libcrypto/x509/constraints.c
600
if (!x509_constraints_domain(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
607
cl = strlen("openbsd.org");
regress/lib/libcrypto/x509/constraints.c
610
if (x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
618
if (!x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
625
cl = strlen("www.openbsd.org");
regress/lib/libcrypto/x509/constraints.c
626
if (x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
633
cl = 0;
regress/lib/libcrypto/x509/constraints.c
634
if (!x509_constraints_sandns(d, dl, c, cl)) {
regress/lib/libcrypto/x509/constraints.c
645
cl = strlen(".openbsd.org");
regress/lib/libcrypto/x509/constraints.c
648
if (!x509_constraints_sandns(d, dl, c, cl)) {
sbin/fsck_msdos/dir.c
387
cl_t cl;
sbin/fsck_msdos/dir.c
391
for (cl = dir->head; (sz += boot->ClusterSize) < dir->size;) {
sbin/fsck_msdos/dir.c
392
cl = fat[cl].next;
sbin/fsck_msdos/dir.c
395
clearchain(boot, fat, fat[cl].next);
sbin/fsck_msdos/dir.c
396
fat[cl].next = CLUST_EOF;
sbin/fsck_msdos/dir.c
419
cl_t cl, valcl = ~0, invcl = ~0, empcl = ~0;
sbin/fsck_msdos/dir.c
426
cl = dir->head;
sbin/fsck_msdos/dir.c
427
if (dir->parent && (cl < CLUST_FIRST || cl >= boot->NumClusters)) {
sbin/fsck_msdos/dir.c
441
off = cl * boot->SecPerClust + boot->ClusterOffset;
sbin/fsck_msdos/dir.c
464
empcl = cl;
sbin/fsck_msdos/dir.c
479
cl, p - buffer, 1) == FSFATAL)
sbin/fsck_msdos/dir.c
481
q = empcl == cl ? empty : buffer;
sbin/fsck_msdos/dir.c
508
valcl = cl;
sbin/fsck_msdos/dir.c
517
invcl = cl;
sbin/fsck_msdos/dir.c
569
invcl = cl;
sbin/fsck_msdos/dir.c
646
invcl, vallfn ? valcl : cl, cl,
sbin/fsck_msdos/dir.c
651
? (valcl == cl && vallfn != buffer)
sbin/fsck_msdos/dir.c
832
} while ((cl = fat[cl].next) >= CLUST_FIRST && cl < boot->NumClusters);
sbin/fsck_msdos/fat.c
150
for (cl = CLUST_FIRST; cl < boot->NumClusters;) {
sbin/fsck_msdos/fat.c
153
fat[cl].next = p[0] + (p[1] << 8)
sbin/fsck_msdos/fat.c
155
fat[cl].next &= boot->ClustMask;
sbin/fsck_msdos/fat.c
156
ret |= checkclnum(boot, no, cl, &fat[cl].next);
sbin/fsck_msdos/fat.c
157
cl++;
sbin/fsck_msdos/fat.c
161
fat[cl].next = p[0] + (p[1] << 8);
sbin/fsck_msdos/fat.c
162
ret |= checkclnum(boot, no, cl, &fat[cl].next);
sbin/fsck_msdos/fat.c
163
cl++;
sbin/fsck_msdos/fat.c
167
fat[cl].next = (p[0] + (p[1] << 8)) & 0x0fff;
sbin/fsck_msdos/fat.c
168
ret |= checkclnum(boot, no, cl, &fat[cl].next);
sbin/fsck_msdos/fat.c
169
cl++;
sbin/fsck_msdos/fat.c
170
if (cl >= boot->NumClusters)
sbin/fsck_msdos/fat.c
172
fat[cl].next = ((p[1] >> 4) + (p[2] << 4)) & 0x0fff;
sbin/fsck_msdos/fat.c
173
ret |= checkclnum(boot, no, cl, &fat[cl].next);
sbin/fsck_msdos/fat.c
174
cl++;
sbin/fsck_msdos/fat.c
193
rsrvdcltype(cl_t cl)
sbin/fsck_msdos/fat.c
195
if (cl == CLUST_FREE)
sbin/fsck_msdos/fat.c
197
if (cl < CLUST_BAD)
sbin/fsck_msdos/fat.c
199
if (cl > CLUST_BAD)
sbin/fsck_msdos/fat.c
205
clustdiffer(cl_t cl, cl_t *cp1, cl_t *cp2, int fatnum)
sbin/fsck_msdos/fat.c
213
cl, rsrvdcltype(*cp1));
sbin/fsck_msdos/fat.c
221
cl, rsrvdcltype(*cp1), rsrvdcltype(*cp2), fatnum);
sbin/fsck_msdos/fat.c
233
cl, rsrvdcltype(*cp1), *cp2, fatnum);
sbin/fsck_msdos/fat.c
246
cl, *cp1, rsrvdcltype(*cp2), fatnum);
sbin/fsck_msdos/fat.c
258
cl, *cp1, *cp2, fatnum);
sbin/fsck_msdos/fat.c
278
cl_t cl;
sbin/fsck_msdos/fat.c
281
for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++)
sbin/fsck_msdos/fat.c
282
if (first[cl].next != second[cl].next)
sbin/fsck_msdos/fat.c
283
ret |= clustdiffer(cl, &first[cl].next, &second[cl].next, fatnum);
sbin/fsck_msdos/fat.c
433
cl_t cl;
sbin/fsck_msdos/fat.c
45
checkclnum(struct bootblock *boot, int fat, cl_t cl, cl_t *next)
sbin/fsck_msdos/fat.c
463
for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) {
sbin/fsck_msdos/fat.c
466
if (fat[cl].next == CLUST_FREE)
sbin/fsck_msdos/fat.c
468
*p++ = (u_char)fat[cl].next;
sbin/fsck_msdos/fat.c
469
*p++ = (u_char)(fat[cl].next >> 8);
sbin/fsck_msdos/fat.c
470
*p++ = (u_char)(fat[cl].next >> 16);
sbin/fsck_msdos/fat.c
472
*p++ |= (fat[cl].next >> 24)&0x0f;
sbin/fsck_msdos/fat.c
475
if (fat[cl].next == CLUST_FREE)
sbin/fsck_msdos/fat.c
477
*p++ = (u_char)fat[cl].next;
sbin/fsck_msdos/fat.c
478
*p++ = (u_char)(fat[cl].next >> 8);
sbin/fsck_msdos/fat.c
481
if (fat[cl].next == CLUST_FREE)
sbin/fsck_msdos/fat.c
483
*p++ = (u_char)fat[cl].next;
sbin/fsck_msdos/fat.c
484
*p = (u_char)((fat[cl].next >> 8) & 0xf);
sbin/fsck_msdos/fat.c
485
cl++;
sbin/fsck_msdos/fat.c
486
if (cl >= boot->NumClusters)
sbin/fsck_msdos/fat.c
488
if (fat[cl].next == CLUST_FREE)
sbin/fsck_msdos/fat.c
490
*p++ |= (u_char)(fat[cl].next << 4);
sbin/fsck_msdos/fat.c
491
*p++ = (u_char)(fat[cl].next >> 4);
sbin/fsck_msdos/fat.c
60
cl, fat,
sbin/fsck_msdos/fat.c
80
cl_t cl;
sbin/unwind/libunbound/services/authzone.c
1659
auth_rr_to_string(uint8_t* nm, size_t nmlen, uint16_t tp, uint16_t cl,
sbin/unwind/libunbound/services/authzone.c
1671
w += sldns_wire2str_class_print(&s, &slen, cl);
sbin/unwind/libunbound/services/authzone.c
1687
log_nametypeclass(NO_VERBOSE, "RR too long to print", nm, tp, cl);
sbin/unwind/libunbound/sldns/str2wire.c
278
int* not_there, uint16_t* cl)
sbin/unwind/libunbound/sldns/str2wire.c
288
*cl = sldns_get_rr_class_by_name(token);
sbin/unwind/libunbound/sldns/str2wire.c
290
if(*cl == 0 && strcmp(token, "CLASS0") != 0) {
sbin/unwind/libunbound/sldns/str2wire.c
292
*cl = LDNS_RR_CLASS_IN;
sbin/unwind/libunbound/sldns/str2wire.c
321
size_t dname_len, uint16_t tp, uint16_t cl, uint32_t ttl, int question)
sbin/unwind/libunbound/sldns/str2wire.c
329
sldns_write_uint16(rr+dname_len+2, cl);
sbin/unwind/libunbound/sldns/str2wire.c
338
sldns_write_uint16(rr+dname_len+2, cl);
sbin/unwind/libunbound/sldns/str2wire.c
906
uint16_t tp = 0, cl = 0;
sbin/unwind/libunbound/sldns/str2wire.c
924
¬_there, &cl)) != 0)
sbin/unwind/libunbound/sldns/str2wire.c
930
if((status=rrinternal_write_typeclassttl(&strbuf, rr, *len, *dname_len, tp, cl,
sbin/unwind/libunbound/util/log.c
109
FILE* cl = logfile;
sbin/unwind/libunbound/util/log.c
112
fclose(cl);
sbin/unwind/libunbound/util/netevent.c
4867
long long cl;
sbin/unwind/libunbound/util/netevent.c
4869
cl = strtoll(line+16, &end, 10);
sbin/unwind/libunbound/util/netevent.c
4870
if(end == line+16 || errno != 0 || cl < 0) {
sbin/unwind/libunbound/util/netevent.c
4871
verbose(VERB_ALGO, "http invalid Content-Length: " ARG_LL "d", cl);
sbin/unwind/libunbound/util/netevent.c
4874
c->tcp_byte_count = (size_t)cl;
sys/arch/octeon/dev/if_ogx.c
1917
int cl, i, timeout;
sys/arch/octeon/dev/if_ogx.c
2020
for (cl = 0; cl < cfg->cfg_nclusters; cl++) {
sys/arch/octeon/dev/if_ogx.c
2024
PKI_WR_8(node, PKI_CL_PKIND_STYLE(cl, pkind), 0);
sys/arch/octeon/dev/if_ogx.c
2028
for (cl = 0; cl < cfg->cfg_nclusters; cl++) {
sys/arch/octeon/dev/if_ogx.c
2034
PKI_CL_PCAM_TERM(cl, bank, i), 0);
sys/arch/octeon/dev/if_ogx.c
2047
for (cl = 0; cl < cfg->cfg_nclusters; cl++) {
sys/arch/octeon/dev/if_ogx.c
2048
val = PKI_RD_8(node, PKI_ICG_CFG(cl));
sys/arch/octeon/dev/if_ogx.c
2050
PKI_WR_8(node, PKI_ICG_CFG(cl), val);
sys/arch/octeon/dev/if_ogx.c
2282
int cl, error = 0, i;
sys/arch/octeon/dev/if_ogx.c
2307
for (cl = 0; cl < node->node_cfg->cfg_nclusters; cl++) {
sys/arch/octeon/dev/if_ogx.c
2308
val = PKI_RD_8(node, PKI_ICG_CFG(cl));
sys/arch/octeon/dev/if_ogx.c
2310
PKI_WR_8(node, PKI_ICG_CFG(cl), val);
sys/arch/octeon/dev/if_ogx.c
374
int cl, phy_addr, phy_handle;
sys/arch/octeon/dev/if_ogx.c
514
for (cl = 0; cl < cfg->cfg_nclusters; cl++) {
sys/arch/octeon/dev/if_ogx.c
516
PKI_WR_8(node, PKI_CL_STYLE_CFG(cl, PORT_STYLE(sc)), val);
sys/arch/octeon/dev/if_ogx.c
517
PKI_WR_8(node, PKI_CL_STYLE_CFG2(cl, PORT_STYLE(sc)), 0);
sys/arch/octeon/dev/if_ogx.c
518
PKI_WR_8(node, PKI_CL_STYLE_ALG(cl, PORT_STYLE(sc)), 1u << 31);
sys/arch/octeon/dev/if_ogx.c
520
val = PKI_RD_8(node, PKI_CL_PKIND_STYLE(cl, PORT_PKIND(sc)));
sys/arch/octeon/dev/if_ogx.c
524
PKI_WR_8(node, PKI_CL_PKIND_STYLE(cl, PORT_PKIND(sc)), val);
sys/arch/octeon/dev/ogxreg.h
520
#define PKI_CL_STYLE_CFG(cl, style) (0x00500000ULL + (cl) * 0x10000 + \
sys/arch/octeon/dev/ogxreg.h
540
#define PKI_CL_PKIND_STYLE(cl, pkind) (0x00300048ULL + (cl) * 0x10000 + \
sys/arch/octeon/dev/ogxreg.h
547
#define PKI_CL_STYLE_CFG2(cl, style) (0x00500800ULL + (cl) * 0x10000 + \
sys/arch/octeon/dev/ogxreg.h
549
#define PKI_CL_STYLE_ALG(cl, style) (0x00501000ULL + (cl) * 0x10000 + \
sys/arch/octeon/dev/ogxreg.h
552
#define PKI_CL_PCAM_TERM(cl, bank, i) (0x00700000ULL + (cl) * 0x10000 + \
sys/arch/sparc64/dev/pci_machdep.c
261
int bus_frequency, lt, cl, cacheline;
sys/arch/sparc64/dev/pci_machdep.c
326
cl = PCI_CACHELINE(bhlc);
sys/arch/sparc64/dev/pci_machdep.c
327
if (cl == 0)
sys/arch/sparc64/dev/pci_machdep.c
328
cl = cacheline;
sys/arch/sparc64/dev/pci_machdep.c
333
(cl << PCI_CACHELINE_SHIFT);
sys/arch/sparc64/dev/pcons.c
307
struct clist *cl;
sys/arch/sparc64/dev/pcons.c
318
cl = &tp->t_outq;
sys/arch/sparc64/dev/pcons.c
319
len = q_to_b(cl, buf, OFBURSTLEN);
sys/arch/sparc64/dev/pcons.c
323
if (cl->c_cc) {
sys/arch/sparc64/dev/pcons.c
327
if (cl->c_cc <= tp->t_lowat) {
sys/arch/sparc64/dev/pcons.c
330
wakeup(cl);
sys/crypto/aes.c
281
#define SWAPN(cl, ch, s, x, y) do { \
sys/crypto/aes.c
285
(x) = (a & (uint32_t)cl) | ((b & (uint32_t)cl) << (s)); \
sys/dev/fdt/exuart.c
942
*(int *)data = cl->cl_swflags;
sys/dev/fdt/exuart.c
952
cl->cl_swflags = *(int *)data;
sys/dev/fdt/exuart.c
953
cl->cl_swflags &= /* only allow valid flags */
sys/dev/fdt/imxuart.c
737
*(int *)data = cl->cl_swflags;
sys/dev/fdt/imxuart.c
747
cl->cl_swflags = *(int *)data;
sys/dev/fdt/imxuart.c
748
cl->cl_swflags &= /* only allow valid flags */
sys/dev/ic/ac97.c
500
{ 0x01408300, "Creative", cl(ac97_cr) },
sys/dev/ic/ac97.c
501
{ 0x41445300, "Analog Devices", cl(ac97_ad) },
sys/dev/ic/ac97.c
502
{ 0x414b4D00, "Asahi Kasei", cl(ac97_ak) },
sys/dev/ic/ac97.c
503
{ 0x414c4300, "Realtek", cl(ac97_rl) },
sys/dev/ic/ac97.c
504
{ 0x414c4700, "Avance Logic", cl(ac97_av) },
sys/dev/ic/ac97.c
505
{ 0x434d4900, "C-Media Electronics", cl(ac97_cm) },
sys/dev/ic/ac97.c
506
{ 0x43525900, "Cirrus Logic", cl(ac97_cs) },
sys/dev/ic/ac97.c
507
{ 0x43585400, "Conexant", cl(ac97_cx) },
sys/dev/ic/ac97.c
508
{ 0x44543000, "Diamond Technology", cl(ac97_dt) },
sys/dev/ic/ac97.c
509
{ 0x454d4300, "eMicro", cl(ac97_em) },
sys/dev/ic/ac97.c
510
{ 0x45838300, "ESS Technology", cl(ac97_es) },
sys/dev/ic/ac97.c
511
{ 0x48525300, "Intersil", cl(ac97_is) },
sys/dev/ic/ac97.c
512
{ 0x49434500, "ICEnsemble", cl(ac97_ic) },
sys/dev/ic/ac97.c
513
{ 0x49544500, "ITE, Inc.", cl(ac97_it) },
sys/dev/ic/ac97.c
514
{ 0x4e534300, "National Semiconductor", cl(ac97_ns) },
sys/dev/ic/ac97.c
515
{ 0x50534300, "Philips Semiconductor", cl(ac97_ps) },
sys/dev/ic/ac97.c
516
{ 0x53494c00, "Silicon Laboratory", cl(ac97_sl) },
sys/dev/ic/ac97.c
517
{ 0x54524100, "TriTech Microelectronics", cl(ac97_tt) },
sys/dev/ic/ac97.c
518
{ 0x54584e00, "Texas Instruments", cl(ac97_ti) },
sys/dev/ic/ac97.c
519
{ 0x56494100, "VIA Technologies", cl(ac97_vi) },
sys/dev/ic/ac97.c
520
{ 0x57454300, "Winbond", cl(ac97_wb) },
sys/dev/ic/ac97.c
521
{ 0x574d4c00, "Wolfson", cl(ac97_wo) },
sys/dev/ic/ac97.c
522
{ 0x594d4800, "Yamaha", cl(ac97_ym) },
sys/dev/ic/ac97.c
523
{ 0x83847600, "SigmaTel", cl(ac97_st) },
sys/dev/ic/i82596.c
1427
int cl = 32;
sys/dev/ic/i82596.c
1433
ptr = (ptr + cl - 1) & ~(cl - 1); /* set alignment and stick with it */
sys/dev/ic/i82596.c
1440
ptr += cl;
sys/dev/ic/i82596.c
1445
ptr += cl;
sys/dev/ic/i82596.c
1450
ptr += cl;
sys/dev/ic/i82596.c
1458
ptr = (ptr + cl - 1) & ~(cl - 1); /* re-align.. just in case */
sys/dev/ic/i82596.c
1474
ptr += cl;
sys/dev/ic/i82596.c
1479
ptr += cl;
sys/dev/ic/wdc.c
591
u_int8_t st0, st1, sc, sn, cl, ch;
sys/dev/ic/wdc.c
662
cl = CHP_READ_REG(chp, wdr_cyl_lo);
sys/dev/ic/wdc.c
664
WDC_LOG_REG(chp, wdr_cyl_lo, (ch << 8) | cl);
sys/dev/ic/wdc.c
669
chp->channel, drive, st0, WDCS_BITS, sc, sn, cl, ch),
sys/dev/ic/wdc.c
676
if (cl == 0x14 && ch == 0xeb)
sys/dev/pci/drm/i915/display/vlv_dpio_phy_regs.h
12
#define _CHV_CMN(cl, dw) (0x8100 - (cl) * 0x80 + (dw) * 4)
sys/dev/pci/if_hme_pci.c
108
pcireg_t cl, id;
sys/dev/pci/if_hme_pci.c
126
cl = pci_conf_read(epa.pa_pc, epa.pa_tag, PCI_CLASS_REG);
sys/dev/pci/if_hme_pci.c
129
if (PCI_CLASS(cl) != PCI_CLASS_BRIDGE ||
sys/dev/pci/pciide.c
4433
uint8_t scnt, sn, cl, ch;
sys/dev/pci/pciide.c
4500
cl = CHP_READ_REG(chp, wdr_cyl_lo);
sys/dev/pci/pciide.c
4507
cl = bus_space_read_1(chp->cmd_iot,
sys/dev/pci/pciide.c
4515
scnt, sn, cl, ch);
sys/dev/pci/pciide.c
4522
if (cl == 0x14 && ch == 0xeb)
sys/dev/pci/pciide.c
7239
u_int16_t scnt, sn, cl, ch;
sys/dev/pci/pciide.c
7278
cl = bus_space_read_2(chp->cmd_iot, iohs[wdr_cyl_lo], 0);
sys/dev/pci/pciide.c
7283
scnt, sn, cl, ch);
sys/dev/pci/pciide.c
7290
if (cl == 0x14 && ch == 0xeb)
sys/dev/pci/pciide.c
7681
uint8_t scnt, sn, cl, ch;
sys/dev/pci/pciide.c
7745
cl = CHP_READ_REG(chp, wdr_cyl_lo);
sys/dev/pci/pciide.c
7752
cl = bus_space_read_1(chp->cmd_iot,
sys/dev/pci/pciide.c
7760
scnt, sn, cl, ch);
sys/dev/pci/pciide.c
7767
if (cl == 0x14 && ch == 0xeb)
sys/dev/softraid.c
1159
struct sr_chunk_head *cl;
sys/dev/softraid.c
1360
cl = &sc->sc_hotspare_list;
sys/dev/softraid.c
1361
if (SLIST_EMPTY(cl))
sys/dev/softraid.c
1362
SLIST_INSERT_HEAD(cl, hotspare, src_link);
sys/dev/softraid.c
1364
SLIST_FOREACH(chunk, cl, src_link)
sys/dev/softraid.c
1615
struct sr_chunk_head *cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
1633
SLIST_FOREACH(ch_entry, cl, src_link) {
sys/dev/softraid.c
1674
for (ch_entry = SLIST_FIRST(cl); ch_entry != NULL;
sys/dev/softraid.c
226
struct sr_chunk_head *cl;
sys/dev/softraid.c
253
cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
259
SLIST_FOREACH(ch_entry, cl, src_link)
sys/dev/softraid.c
267
SLIST_INIT(cl);
sys/dev/softraid.c
271
SLIST_FOREACH(chunk1, cl, src_link) {
sys/dev/softraid.c
2711
struct sr_chunk_head *cl;
sys/dev/softraid.c
2733
cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
2734
SLIST_FOREACH(ch_entry, cl, src_link) {
sys/dev/softraid.c
278
SLIST_INSERT_HEAD(cl, ch_entry, src_link);
sys/dev/softraid.c
2807
struct sr_chunk_head *cl;
sys/dev/softraid.c
283
SLIST_FOREACH(ch_entry, cl, src_link)
sys/dev/softraid.c
2949
cl = &sc->sc_hotspare_list;
sys/dev/softraid.c
2950
if (SLIST_EMPTY(cl))
sys/dev/softraid.c
2951
SLIST_INSERT_HEAD(cl, hotspare, src_link);
sys/dev/softraid.c
2953
SLIST_FOREACH(chunk, cl, src_link)
sys/dev/softraid.c
297
struct sr_chunk_head *cl;
sys/dev/softraid.c
2992
struct sr_chunk_head *cl;
sys/dev/softraid.c
3018
cl = &sc->sc_hotspare_list;
sys/dev/softraid.c
3019
SLIST_FOREACH(hotspare, cl, src_link)
sys/dev/softraid.c
307
cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
3079
SLIST_REMOVE(cl, hotspare, sr_chunk, src_link);
sys/dev/softraid.c
316
SLIST_INSERT_HEAD(cl, ch_entry, src_link);
sys/dev/softraid.c
3310
struct sr_chunk_head *cl;
sys/dev/softraid.c
3349
cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
3350
SLIST_INIT(cl);
sys/dev/softraid.c
3584
ch_entry = SLIST_FIRST(cl); /* XXX */
sys/dev/softraid.c
3813
sr_chunks_unwind(struct sr_softc *sc, struct sr_chunk_head *cl)
sys/dev/softraid.c
3819
if (!cl)
sys/dev/softraid.c
3822
for (ch_entry = SLIST_FIRST(cl); ch_entry != NULL; ch_entry = ch_next) {
sys/dev/softraid.c
3840
SLIST_INIT(cl);
sys/dev/softraid.c
501
struct sr_chunk_head *cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
514
SLIST_FOREACH(ch_entry, cl, src_link) {
sys/dev/softraid.c
538
struct sr_chunk_head *cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
564
SLIST_FOREACH(chunk, cl, src_link) {
sys/dev/softraid.c
588
SLIST_FOREACH(chunk, cl, src_link)
sys/dev/softraid.c
745
struct sr_chunk_head *cl = &sd->sd_vol.sv_chunk_list;
sys/dev/softraid.c
761
SLIST_FOREACH(ch_entry, cl, src_link) {
sys/dev/spdmem.c
475
uint8_t config, rows, cols, cl;
sys/dev/spdmem.c
533
cl = ((i * 10) / 2) + 10;
sys/dev/spdmem.c
534
printf("CL%d.%d", cl / 10, cl % 10);
sys/isofs/cd9660/cd9660_vnops.c
341
int cl, sl, assoc;
sys/isofs/cd9660/cd9660_vnops.c
345
cl = idp->current.d_namlen;
sys/isofs/cd9660/cd9660_vnops.c
348
if ((assoc = cl > 1 && *cname == ASSOCCHAR)) {
sys/isofs/cd9660/cd9660_vnops.c
349
cl--;
sys/isofs/cd9660/cd9660_vnops.c
361
if (sl != cl
sys/kern/kern_clockintr.c
160
struct clockintr *cl;
sys/kern/kern_clockintr.c
192
cl = TAILQ_FIRST(&cq->cq_pend);
sys/kern/kern_clockintr.c
193
if (cl == NULL)
sys/kern/kern_clockintr.c
195
if (cq->cq_uptime < cl->cl_expiration) {
sys/kern/kern_clockintr.c
198
if (cq->cq_uptime < cl->cl_expiration)
sys/kern/kern_clockintr.c
205
clockqueue_pend_delete(cq, cl);
sys/kern/kern_clockintr.c
206
request->cr_expiration = cl->cl_expiration;
sys/kern/kern_clockintr.c
207
arg = cl->cl_arg;
sys/kern/kern_clockintr.c
208
func = cl->cl_func;
sys/kern/kern_clockintr.c
209
cq->cq_running = cl;
sys/kern/kern_clockintr.c
222
clockqueue_pend_insert(cq, cl, request->cr_expiration);
sys/kern/kern_clockintr.c
272
clockintr_advance(struct clockintr *cl, uint64_t period)
sys/kern/kern_clockintr.c
275
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
278
expiration = cl->cl_expiration;
sys/kern/kern_clockintr.c
280
clockintr_schedule_locked(cl, expiration);
sys/kern/kern_clockintr.c
318
clockintr_cancel(struct clockintr *cl)
sys/kern/kern_clockintr.c
320
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
323
clockintr_cancel_locked(cl);
sys/kern/kern_clockintr.c
328
clockintr_cancel_locked(struct clockintr *cl)
sys/kern/kern_clockintr.c
330
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
335
if (ISSET(cl->cl_flags, CLST_PENDING)) {
sys/kern/kern_clockintr.c
336
was_next = cl == TAILQ_FIRST(&cq->cq_pend);
sys/kern/kern_clockintr.c
337
clockqueue_pend_delete(cq, cl);
sys/kern/kern_clockintr.c
345
if (cl == cq->cq_running)
sys/kern/kern_clockintr.c
350
clockintr_bind(struct clockintr *cl, struct cpu_info *ci,
sys/kern/kern_clockintr.c
356
KASSERT(cl->cl_queue == NULL);
sys/kern/kern_clockintr.c
359
cl->cl_arg = arg;
sys/kern/kern_clockintr.c
360
cl->cl_func = func;
sys/kern/kern_clockintr.c
361
cl->cl_queue = cq;
sys/kern/kern_clockintr.c
362
TAILQ_INSERT_TAIL(&cq->cq_all, cl, cl_alink);
sys/kern/kern_clockintr.c
367
clockintr_unbind(struct clockintr *cl, uint32_t flags)
sys/kern/kern_clockintr.c
369
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
375
clockintr_cancel_locked(cl);
sys/kern/kern_clockintr.c
377
cl->cl_arg = NULL;
sys/kern/kern_clockintr.c
378
cl->cl_func = NULL;
sys/kern/kern_clockintr.c
379
cl->cl_queue = NULL;
sys/kern/kern_clockintr.c
380
TAILQ_REMOVE(&cq->cq_all, cl, cl_alink);
sys/kern/kern_clockintr.c
382
if (ISSET(flags, CL_BARRIER) && cl == cq->cq_running) {
sys/kern/kern_clockintr.c
391
clockintr_schedule(struct clockintr *cl, uint64_t expiration)
sys/kern/kern_clockintr.c
393
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
396
clockintr_schedule_locked(cl, expiration);
sys/kern/kern_clockintr.c
401
clockintr_schedule_locked(struct clockintr *cl, uint64_t expiration)
sys/kern/kern_clockintr.c
403
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
407
if (ISSET(cl->cl_flags, CLST_PENDING))
sys/kern/kern_clockintr.c
408
clockqueue_pend_delete(cq, cl);
sys/kern/kern_clockintr.c
409
clockqueue_pend_insert(cq, cl, expiration);
sys/kern/kern_clockintr.c
411
if (cl == TAILQ_FIRST(&cq->cq_pend)) {
sys/kern/kern_clockintr.c
416
if (cl == cq->cq_running)
sys/kern/kern_clockintr.c
421
clockintr_stagger(struct clockintr *cl, uint64_t period, uint32_t numer,
sys/kern/kern_clockintr.c
424
struct clockqueue *cq = cl->cl_queue;
sys/kern/kern_clockintr.c
429
if (ISSET(cl->cl_flags, CLST_PENDING))
sys/kern/kern_clockintr.c
431
cl->cl_expiration = period / denom * numer;
sys/kern/kern_clockintr.c
479
clockqueue_pend_delete(struct clockqueue *cq, struct clockintr *cl)
sys/kern/kern_clockintr.c
482
KASSERT(ISSET(cl->cl_flags, CLST_PENDING));
sys/kern/kern_clockintr.c
484
TAILQ_REMOVE(&cq->cq_pend, cl, cl_plink);
sys/kern/kern_clockintr.c
485
CLR(cl->cl_flags, CLST_PENDING);
sys/kern/kern_clockintr.c
489
clockqueue_pend_insert(struct clockqueue *cq, struct clockintr *cl,
sys/kern/kern_clockintr.c
495
KASSERT(!ISSET(cl->cl_flags, CLST_PENDING));
sys/kern/kern_clockintr.c
497
cl->cl_expiration = expiration;
sys/kern/kern_clockintr.c
499
if (cl->cl_expiration < elm->cl_expiration)
sys/kern/kern_clockintr.c
503
TAILQ_INSERT_TAIL(&cq->cq_pend, cl, cl_plink);
sys/kern/kern_clockintr.c
505
TAILQ_INSERT_BEFORE(elm, cl, cl_plink);
sys/kern/kern_clockintr.c
506
SET(cl->cl_flags, CLST_PENDING);
sys/kern/kern_clockintr.c
653
db_show_clockintr(const struct clockintr *cl, const char *state, u_int cpu)
sys/kern/kern_clockintr.c
660
NSEC_TO_TIMESPEC(cl->cl_expiration, &ts);
sys/kern/kern_clockintr.c
661
db_find_sym_and_offset((vaddr_t)cl->cl_func, &name, &offset);
sys/kern/kern_clockintr.c
666
width, (unsigned long)cl->cl_arg, name);
sys/msdosfs/msdosfs_fat.c
697
uint32_t cl, n;
sys/msdosfs/msdosfs_fat.c
699
for (cl = start, n = count; n-- > 0;)
sys/msdosfs/msdosfs_fat.c
700
usemap_alloc(pmp, cl++);
sys/net/hfsc.c
1000
hfsc_rtsc_min(&cl->cl_deadline, cl->cl_rsc, cur_time, cl->cl_cumul);
sys/net/hfsc.c
1007
cl->cl_eligible = cl->cl_deadline;
sys/net/hfsc.c
1008
if (cl->cl_rsc->sm1 <= cl->cl_rsc->sm2) {
sys/net/hfsc.c
1009
cl->cl_eligible.dx = 0;
sys/net/hfsc.c
1010
cl->cl_eligible.dy = 0;
sys/net/hfsc.c
1014
cl->cl_e = hfsc_rtsc_y2x(&cl->cl_eligible, cl->cl_cumul);
sys/net/hfsc.c
1015
cl->cl_d = hfsc_rtsc_y2x(&cl->cl_deadline, cl->cl_cumul + next_len);
sys/net/hfsc.c
1017
hfsc_ellist_insert(hif, cl);
sys/net/hfsc.c
1021
hfsc_update_ed(struct hfsc_if *hif, struct hfsc_class *cl, int next_len)
sys/net/hfsc.c
1023
cl->cl_e = hfsc_rtsc_y2x(&cl->cl_eligible, cl->cl_cumul);
sys/net/hfsc.c
1024
cl->cl_d = hfsc_rtsc_y2x(&cl->cl_deadline, cl->cl_cumul + next_len);
sys/net/hfsc.c
1026
hfsc_ellist_update(hif, cl);
sys/net/hfsc.c
1030
hfsc_update_d(struct hfsc_class *cl, int next_len)
sys/net/hfsc.c
1032
cl->cl_d = hfsc_rtsc_y2x(&cl->cl_deadline, cl->cl_cumul + next_len);
sys/net/hfsc.c
1036
hfsc_init_vf(struct hfsc_class *cl, int len)
sys/net/hfsc.c
1044
for ( ; cl->cl_parent != NULL; cl = cl->cl_parent) {
sys/net/hfsc.c
1045
if (go_active && cl->cl_nactive++ == 0)
sys/net/hfsc.c
1051
max_cl = TAILQ_LAST(&cl->cl_parent->cl_actc,
sys/net/hfsc.c
1060
if (cl->cl_parent->cl_cvtmin != 0)
sys/net/hfsc.c
1061
vt = (cl->cl_parent->cl_cvtmin + vt)/2;
sys/net/hfsc.c
1063
if (cl->cl_parent->cl_vtperiod !=
sys/net/hfsc.c
1064
cl->cl_parentperiod || vt > cl->cl_vt)
sys/net/hfsc.c
1065
cl->cl_vt = vt;
sys/net/hfsc.c
1073
vt = cl->cl_parent->cl_cvtmax;
sys/net/hfsc.c
1074
for (p = cl->cl_parent->cl_children; p != NULL;
sys/net/hfsc.c
1077
cl->cl_vt = 0;
sys/net/hfsc.c
1078
cl->cl_parent->cl_cvtmax = 0;
sys/net/hfsc.c
1079
cl->cl_parent->cl_cvtmin = 0;
sys/net/hfsc.c
1081
cl->cl_initvt = cl->cl_vt;
sys/net/hfsc.c
1084
vt = cl->cl_vt + cl->cl_vtoff;
sys/net/hfsc.c
1085
hfsc_rtsc_min(&cl->cl_virtual, cl->cl_fsc, vt,
sys/net/hfsc.c
1086
cl->cl_total);
sys/net/hfsc.c
1087
if (cl->cl_virtual.x == vt) {
sys/net/hfsc.c
1088
cl->cl_virtual.x -= cl->cl_vtoff;
sys/net/hfsc.c
1089
cl->cl_vtoff = 0;
sys/net/hfsc.c
1091
cl->cl_vtadj = 0;
sys/net/hfsc.c
1093
cl->cl_vtperiod++; /* increment vt period */
sys/net/hfsc.c
1094
cl->cl_parentperiod = cl->cl_parent->cl_vtperiod;
sys/net/hfsc.c
1095
if (cl->cl_parent->cl_nactive == 0)
sys/net/hfsc.c
1096
cl->cl_parentperiod++;
sys/net/hfsc.c
1097
cl->cl_f = 0;
sys/net/hfsc.c
1099
hfsc_actlist_insert(cl);
sys/net/hfsc.c
1101
if (cl->cl_usc != NULL) {
sys/net/hfsc.c
1107
hfsc_rtsc_min(&cl->cl_ulimit, cl->cl_usc, cur_time,
sys/net/hfsc.c
1108
cl->cl_total);
sys/net/hfsc.c
1110
cl->cl_myf = hfsc_rtsc_y2x(&cl->cl_ulimit,
sys/net/hfsc.c
1111
cl->cl_total);
sys/net/hfsc.c
1112
cl->cl_myfadj = 0;
sys/net/hfsc.c
1116
if (cl->cl_myf > cl->cl_cfmin)
sys/net/hfsc.c
1117
f = cl->cl_myf;
sys/net/hfsc.c
1119
f = cl->cl_cfmin;
sys/net/hfsc.c
1120
if (f != cl->cl_f) {
sys/net/hfsc.c
1121
cl->cl_f = f;
sys/net/hfsc.c
1122
hfsc_update_cfmin(cl->cl_parent);
sys/net/hfsc.c
1128
hfsc_update_vf(struct hfsc_class *cl, int len, u_int64_t cur_time)
sys/net/hfsc.c
1133
if (hfsc_class_qlength(cl) == 0)
sys/net/hfsc.c
1136
for (; cl->cl_parent != NULL; cl = cl->cl_parent) {
sys/net/hfsc.c
1137
cl->cl_total += len;
sys/net/hfsc.c
1139
if (cl->cl_fsc == NULL || cl->cl_nactive == 0)
sys/net/hfsc.c
1142
if (go_passive && --cl->cl_nactive == 0)
sys/net/hfsc.c
1151
if (cl->cl_vt > cl->cl_parent->cl_cvtmax)
sys/net/hfsc.c
1152
cl->cl_parent->cl_cvtmax = cl->cl_vt;
sys/net/hfsc.c
1155
hfsc_actlist_remove(cl);
sys/net/hfsc.c
1157
hfsc_update_cfmin(cl->cl_parent);
sys/net/hfsc.c
1165
cl->cl_vt = hfsc_rtsc_y2x(&cl->cl_virtual, cl->cl_total)
sys/net/hfsc.c
1166
- cl->cl_vtoff + cl->cl_vtadj;
sys/net/hfsc.c
1173
if (cl->cl_vt < cl->cl_parent->cl_cvtmin) {
sys/net/hfsc.c
1174
cl->cl_vtadj += cl->cl_parent->cl_cvtmin - cl->cl_vt;
sys/net/hfsc.c
1175
cl->cl_vt = cl->cl_parent->cl_cvtmin;
sys/net/hfsc.c
1179
hfsc_actlist_update(cl);
sys/net/hfsc.c
1181
if (cl->cl_usc != NULL) {
sys/net/hfsc.c
1182
cl->cl_myf = cl->cl_myfadj +
sys/net/hfsc.c
1183
hfsc_rtsc_y2x(&cl->cl_ulimit, cl->cl_total);
sys/net/hfsc.c
1193
if (cl->cl_myf < myf_bound) {
sys/net/hfsc.c
1194
delta = cur_time - cl->cl_myf;
sys/net/hfsc.c
1195
cl->cl_myfadj += delta;
sys/net/hfsc.c
1196
cl->cl_myf += delta;
sys/net/hfsc.c
1201
if (cl->cl_myf > cl->cl_cfmin)
sys/net/hfsc.c
1202
f = cl->cl_myf;
sys/net/hfsc.c
1204
f = cl->cl_cfmin;
sys/net/hfsc.c
1205
if (f != cl->cl_f) {
sys/net/hfsc.c
1206
cl->cl_f = f;
sys/net/hfsc.c
1207
hfsc_update_cfmin(cl->cl_parent);
sys/net/hfsc.c
1213
hfsc_update_cfmin(struct hfsc_class *cl)
sys/net/hfsc.c
1218
if (TAILQ_EMPTY(&cl->cl_actc)) {
sys/net/hfsc.c
1219
cl->cl_cfmin = 0;
sys/net/hfsc.c
1223
TAILQ_FOREACH(p, &cl->cl_actc, cl_actlist) {
sys/net/hfsc.c
1225
cl->cl_cfmin = 0;
sys/net/hfsc.c
1231
cl->cl_cfmin = cfmin;
sys/net/hfsc.c
1239
hfsc_ellist_insert(struct hfsc_if *hif, struct hfsc_class *cl)
sys/net/hfsc.c
1245
p->cl_e <= cl->cl_e) {
sys/net/hfsc.c
1246
TAILQ_INSERT_TAIL(&hif->hif_eligible, cl, cl_ellist);
sys/net/hfsc.c
1251
if (cl->cl_e < p->cl_e) {
sys/net/hfsc.c
1252
TAILQ_INSERT_BEFORE(p, cl, cl_ellist);
sys/net/hfsc.c
1259
hfsc_ellist_remove(struct hfsc_if *hif, struct hfsc_class *cl)
sys/net/hfsc.c
1261
TAILQ_REMOVE(&hif->hif_eligible, cl, cl_ellist);
sys/net/hfsc.c
1265
hfsc_ellist_update(struct hfsc_if *hif, struct hfsc_class *cl)
sys/net/hfsc.c
1273
p = TAILQ_NEXT(cl, cl_ellist);
sys/net/hfsc.c
1274
if (p == NULL || cl->cl_e <= p->cl_e)
sys/net/hfsc.c
1279
if (last->cl_e <= cl->cl_e) {
sys/net/hfsc.c
1280
TAILQ_REMOVE(&hif->hif_eligible, cl, cl_ellist);
sys/net/hfsc.c
1281
TAILQ_INSERT_TAIL(&hif->hif_eligible, cl, cl_ellist);
sys/net/hfsc.c
1290
if (cl->cl_e < p->cl_e) {
sys/net/hfsc.c
1291
TAILQ_REMOVE(&hif->hif_eligible, cl, cl_ellist);
sys/net/hfsc.c
1292
TAILQ_INSERT_BEFORE(p, cl, cl_ellist);
sys/net/hfsc.c
1302
struct hfsc_class *p, *cl = NULL;
sys/net/hfsc.c
1307
if (cl == NULL || p->cl_d < cl->cl_d)
sys/net/hfsc.c
1308
cl = p;
sys/net/hfsc.c
1310
return (cl);
sys/net/hfsc.c
1319
hfsc_actlist_insert(struct hfsc_class *cl)
sys/net/hfsc.c
1324
if ((p = TAILQ_LAST(&cl->cl_parent->cl_actc, hfsc_active)) == NULL
sys/net/hfsc.c
1325
|| p->cl_vt <= cl->cl_vt) {
sys/net/hfsc.c
1326
TAILQ_INSERT_TAIL(&cl->cl_parent->cl_actc, cl, cl_actlist);
sys/net/hfsc.c
1330
TAILQ_FOREACH(p, &cl->cl_parent->cl_actc, cl_actlist) {
sys/net/hfsc.c
1331
if (cl->cl_vt < p->cl_vt) {
sys/net/hfsc.c
1332
TAILQ_INSERT_BEFORE(p, cl, cl_actlist);
sys/net/hfsc.c
1339
hfsc_actlist_remove(struct hfsc_class *cl)
sys/net/hfsc.c
1341
TAILQ_REMOVE(&cl->cl_parent->cl_actc, cl, cl_actlist);
sys/net/hfsc.c
1345
hfsc_actlist_update(struct hfsc_class *cl)
sys/net/hfsc.c
1354
p = TAILQ_NEXT(cl, cl_actlist);
sys/net/hfsc.c
1355
if (p == NULL || cl->cl_vt < p->cl_vt)
sys/net/hfsc.c
1359
last = TAILQ_LAST(&cl->cl_parent->cl_actc, hfsc_active);
sys/net/hfsc.c
1360
if (last->cl_vt <= cl->cl_vt) {
sys/net/hfsc.c
1361
TAILQ_REMOVE(&cl->cl_parent->cl_actc, cl, cl_actlist);
sys/net/hfsc.c
1362
TAILQ_INSERT_TAIL(&cl->cl_parent->cl_actc, cl, cl_actlist);
sys/net/hfsc.c
1371
if (cl->cl_vt < p->cl_vt) {
sys/net/hfsc.c
1372
TAILQ_REMOVE(&cl->cl_parent->cl_actc, cl, cl_actlist);
sys/net/hfsc.c
1373
TAILQ_INSERT_BEFORE(p, cl, cl_actlist);
sys/net/hfsc.c
1380
hfsc_actlist_firstfit(struct hfsc_class *cl, u_int64_t cur_time)
sys/net/hfsc.c
1384
TAILQ_FOREACH(p, &cl->cl_actc, cl_actlist)
sys/net/hfsc.c
1638
hfsc_getclstats(struct hfsc_class_stats *sp, struct hfsc_class *cl)
sys/net/hfsc.c
1640
sp->class_id = cl->cl_id;
sys/net/hfsc.c
1641
sp->class_handle = cl->cl_handle;
sys/net/hfsc.c
1643
if (cl->cl_rsc != NULL) {
sys/net/hfsc.c
1644
sp->rsc.m1 = sm2m(cl->cl_rsc->sm1);
sys/net/hfsc.c
1645
sp->rsc.d = dx2d(cl->cl_rsc->dx);
sys/net/hfsc.c
1646
sp->rsc.m2 = sm2m(cl->cl_rsc->sm2);
sys/net/hfsc.c
1652
if (cl->cl_fsc != NULL) {
sys/net/hfsc.c
1653
sp->fsc.m1 = sm2m(cl->cl_fsc->sm1);
sys/net/hfsc.c
1654
sp->fsc.d = dx2d(cl->cl_fsc->dx);
sys/net/hfsc.c
1655
sp->fsc.m2 = sm2m(cl->cl_fsc->sm2);
sys/net/hfsc.c
1661
if (cl->cl_usc != NULL) {
sys/net/hfsc.c
1662
sp->usc.m1 = sm2m(cl->cl_usc->sm1);
sys/net/hfsc.c
1663
sp->usc.d = dx2d(cl->cl_usc->dx);
sys/net/hfsc.c
1664
sp->usc.m2 = sm2m(cl->cl_usc->sm2);
sys/net/hfsc.c
1671
sp->total = cl->cl_total;
sys/net/hfsc.c
1672
sp->cumul = cl->cl_cumul;
sys/net/hfsc.c
1674
sp->d = cl->cl_d;
sys/net/hfsc.c
1675
sp->e = cl->cl_e;
sys/net/hfsc.c
1676
sp->vt = cl->cl_vt;
sys/net/hfsc.c
1677
sp->f = cl->cl_f;
sys/net/hfsc.c
1679
sp->initvt = cl->cl_initvt;
sys/net/hfsc.c
1680
sp->vtperiod = cl->cl_vtperiod;
sys/net/hfsc.c
1681
sp->parentperiod = cl->cl_parentperiod;
sys/net/hfsc.c
1682
sp->nactive = cl->cl_nactive;
sys/net/hfsc.c
1683
sp->vtoff = cl->cl_vtoff;
sys/net/hfsc.c
1684
sp->cvtmax = cl->cl_cvtmax;
sys/net/hfsc.c
1685
sp->myf = cl->cl_myf;
sys/net/hfsc.c
1686
sp->cfmin = cl->cl_cfmin;
sys/net/hfsc.c
1687
sp->cvtmin = cl->cl_cvtmin;
sys/net/hfsc.c
1688
sp->myfadj = cl->cl_myfadj;
sys/net/hfsc.c
1689
sp->vtadj = cl->cl_vtadj;
sys/net/hfsc.c
1694
sp->qlength = hfsc_class_qlength(cl);
sys/net/hfsc.c
1695
sp->qlimit = cl->cl_q.qlimit;
sys/net/hfsc.c
1696
sp->xmit_cnt = cl->cl_stats.xmit_cnt;
sys/net/hfsc.c
1697
sp->drop_cnt = cl->cl_stats.drop_cnt;
sys/net/hfsc.c
1698
sp->period = cl->cl_stats.period;
sys/net/hfsc.c
1708
struct hfsc_class *cl;
sys/net/hfsc.c
1717
if ((cl = hif->hif_class_tbl[i]) != NULL && cl->cl_handle == chandle)
sys/net/hfsc.c
1718
return (cl);
sys/net/hfsc.c
1720
if ((cl = hif->hif_class_tbl[i]) != NULL &&
sys/net/hfsc.c
1721
cl->cl_handle == chandle)
sys/net/hfsc.c
1722
return (cl);
sys/net/hfsc.c
311
hfsc_class_qlength(struct hfsc_class *cl)
sys/net/hfsc.c
314
if (cl->cl_qops != NULL)
sys/net/hfsc.c
315
return cl->cl_qops->pfq_qlength(cl->cl_qdata);
sys/net/hfsc.c
320
hfsc_class_enqueue(struct hfsc_class *cl, struct mbuf *m)
sys/net/hfsc.c
322
return cl->cl_qops->pfq_enqueue(cl->cl_qdata, m);
sys/net/hfsc.c
326
hfsc_class_deq_begin(struct hfsc_class *cl, struct mbuf_list *ml)
sys/net/hfsc.c
328
return cl->cl_qops->pfq_deq_begin(cl->cl_qdata, &cl->cl_cookie, ml);
sys/net/hfsc.c
332
hfsc_class_deq_commit(struct hfsc_class *cl, struct mbuf *m)
sys/net/hfsc.c
334
return cl->cl_qops->pfq_deq_commit(cl->cl_qdata, m, cl->cl_cookie);
sys/net/hfsc.c
338
hfsc_class_purge(struct hfsc_class *cl, struct mbuf_list *ml)
sys/net/hfsc.c
341
if (cl->cl_qops != NULL)
sys/net/hfsc.c
342
return cl->cl_qops->pfq_purge(cl->cl_qdata, ml);
sys/net/hfsc.c
401
struct hfsc_class *cl, *parent, *np = NULL;
sys/net/hfsc.c
437
if ((cl = hfsc_class_create(hif, &rtsc, &lssc, &ulsc,
sys/net/hfsc.c
444
cl->cl_qops = pf_queue_manager(q);
sys/net/hfsc.c
446
if (cl->cl_qops == NULL || cl->cl_rsc != NULL) {
sys/net/hfsc.c
447
cl->cl_qops = pfq_hfsc_ops;
sys/net/hfsc.c
448
cl->cl_qdata = &cl->cl_q;
sys/net/hfsc.c
450
cl->cl_qdata = cl->cl_qops->pfq_alloc(q->kif->pfik_ifp);
sys/net/hfsc.c
451
if (cl->cl_qdata == NULL) {
sys/net/hfsc.c
452
cl->cl_qops = NULL;
sys/net/hfsc.c
453
hfsc_class_destroy(hif, cl);
sys/net/hfsc.c
457
error = cl->cl_qops->pfq_addqueue(cl->cl_qdata, q);
sys/net/hfsc.c
459
cl->cl_qops->pfq_free(cl->cl_qdata);
sys/net/hfsc.c
460
cl->cl_qops = NULL;
sys/net/hfsc.c
461
hfsc_class_destroy(hif, cl);
sys/net/hfsc.c
467
KASSERT(cl->cl_qops != NULL);
sys/net/hfsc.c
468
KASSERT(cl->cl_qdata != NULL);
sys/net/hfsc.c
478
struct hfsc_class *cl;
sys/net/hfsc.c
492
if ((cl = hfsc_clh2cph(hif, q->qid)) == NULL) {
sys/net/hfsc.c
497
hfsc_getclstats(&stats, cl);
sys/net/hfsc.c
583
struct hfsc_class *cl;
sys/net/hfsc.c
594
cl = hif->hif_class_tbl[i];
sys/net/hfsc.c
595
if (hfsc_class_destroy(hif, cl) == EBUSY)
sys/net/hfsc.c
608
struct hfsc_class *cl;
sys/net/hfsc.c
610
for (cl = hif->hif_rootclass; cl != NULL; cl = hfsc_nextclass(cl))
sys/net/hfsc.c
611
hfsc_cl_purge(hif, cl, ml);
sys/net/hfsc.c
619
struct hfsc_class *cl, *p;
sys/net/hfsc.c
633
cl = pool_get(&hfsc_class_pl, PR_WAITOK | PR_ZERO);
sys/net/hfsc.c
634
TAILQ_INIT(&cl->cl_actc);
sys/net/hfsc.c
636
ml_init(&cl->cl_q.q);
sys/net/hfsc.c
637
cl->cl_q.qlimit = qlimit;
sys/net/hfsc.c
638
cl->cl_flags = flags;
sys/net/hfsc.c
641
cl->cl_rsc = pool_get(&hfsc_internal_sc_pl, PR_WAITOK);
sys/net/hfsc.c
642
hfsc_sc2isc(rsc, cl->cl_rsc);
sys/net/hfsc.c
643
hfsc_rtsc_init(&cl->cl_deadline, cl->cl_rsc, 0, 0);
sys/net/hfsc.c
644
hfsc_rtsc_init(&cl->cl_eligible, cl->cl_rsc, 0, 0);
sys/net/hfsc.c
647
cl->cl_fsc = pool_get(&hfsc_internal_sc_pl, PR_WAITOK);
sys/net/hfsc.c
648
hfsc_sc2isc(fsc, cl->cl_fsc);
sys/net/hfsc.c
649
hfsc_rtsc_init(&cl->cl_virtual, cl->cl_fsc, 0, 0);
sys/net/hfsc.c
652
cl->cl_usc = pool_get(&hfsc_internal_sc_pl, PR_WAITOK);
sys/net/hfsc.c
653
hfsc_sc2isc(usc, cl->cl_usc);
sys/net/hfsc.c
654
hfsc_rtsc_init(&cl->cl_ulimit, cl->cl_usc, 0, 0);
sys/net/hfsc.c
657
cl->cl_id = hif->hif_classid++;
sys/net/hfsc.c
658
cl->cl_handle = qid;
sys/net/hfsc.c
659
cl->cl_parent = parent;
sys/net/hfsc.c
671
hif->hif_class_tbl[i] = cl;
sys/net/hfsc.c
675
hif->hif_class_tbl[i] = cl;
sys/net/hfsc.c
685
hif->hif_defaultclass = cl;
sys/net/hfsc.c
688
hif->hif_rootclass = cl;
sys/net/hfsc.c
692
parent->cl_children = cl;
sys/net/hfsc.c
696
p->cl_siblings = cl;
sys/net/hfsc.c
701
return (cl);
sys/net/hfsc.c
704
if (cl->cl_fsc != NULL)
sys/net/hfsc.c
705
pool_put(&hfsc_internal_sc_pl, cl->cl_fsc);
sys/net/hfsc.c
706
if (cl->cl_rsc != NULL)
sys/net/hfsc.c
707
pool_put(&hfsc_internal_sc_pl, cl->cl_rsc);
sys/net/hfsc.c
708
if (cl->cl_usc != NULL)
sys/net/hfsc.c
709
pool_put(&hfsc_internal_sc_pl, cl->cl_usc);
sys/net/hfsc.c
710
pool_put(&hfsc_class_pl, cl);
sys/net/hfsc.c
715
hfsc_class_destroy(struct hfsc_if *hif, struct hfsc_class *cl)
sys/net/hfsc.c
719
if (cl == NULL)
sys/net/hfsc.c
722
if (cl->cl_children != NULL)
sys/net/hfsc.c
726
KASSERT(hfsc_class_qlength(cl) == 0);
sys/net/hfsc.c
728
if (cl->cl_parent != NULL) {
sys/net/hfsc.c
729
struct hfsc_class *p = cl->cl_parent->cl_children;
sys/net/hfsc.c
731
if (p == cl)
sys/net/hfsc.c
732
cl->cl_parent->cl_children = cl->cl_siblings;
sys/net/hfsc.c
734
if (p->cl_siblings == cl) {
sys/net/hfsc.c
735
p->cl_siblings = cl->cl_siblings;
sys/net/hfsc.c
742
if (hif->hif_class_tbl[i] == cl) {
sys/net/hfsc.c
750
KASSERT(TAILQ_EMPTY(&cl->cl_actc));
sys/net/hfsc.c
752
if (cl == hif->hif_rootclass)
sys/net/hfsc.c
754
if (cl == hif->hif_defaultclass)
sys/net/hfsc.c
758
if (cl->cl_qops && cl->cl_qops != pfq_hfsc_ops)
sys/net/hfsc.c
759
cl->cl_qops->pfq_free(cl->cl_qdata);
sys/net/hfsc.c
761
if (cl->cl_usc != NULL)
sys/net/hfsc.c
762
pool_put(&hfsc_internal_sc_pl, cl->cl_usc);
sys/net/hfsc.c
763
if (cl->cl_fsc != NULL)
sys/net/hfsc.c
764
pool_put(&hfsc_internal_sc_pl, cl->cl_fsc);
sys/net/hfsc.c
765
if (cl->cl_rsc != NULL)
sys/net/hfsc.c
766
pool_put(&hfsc_internal_sc_pl, cl->cl_rsc);
sys/net/hfsc.c
767
pool_put(&hfsc_class_pl, cl);
sys/net/hfsc.c
779
hfsc_nextclass(struct hfsc_class *cl)
sys/net/hfsc.c
781
if (cl->cl_children != NULL)
sys/net/hfsc.c
782
cl = cl->cl_children;
sys/net/hfsc.c
783
else if (cl->cl_siblings != NULL)
sys/net/hfsc.c
784
cl = cl->cl_siblings;
sys/net/hfsc.c
786
while ((cl = cl->cl_parent) != NULL)
sys/net/hfsc.c
787
if (cl->cl_siblings) {
sys/net/hfsc.c
788
cl = cl->cl_siblings;
sys/net/hfsc.c
793
return (cl);
sys/net/hfsc.c
800
struct hfsc_class *cl;
sys/net/hfsc.c
803
if ((cl = hfsc_clh2cph(hif, m->m_pkthdr.pf.qid)) == NULL ||
sys/net/hfsc.c
804
cl->cl_children != NULL) {
sys/net/hfsc.c
805
cl = hif->hif_defaultclass;
sys/net/hfsc.c
806
if (cl == NULL)
sys/net/hfsc.c
810
dm = hfsc_class_enqueue(cl, m);
sys/net/hfsc.c
813
if (dm != m && hfsc_class_qlength(cl) == 1) {
sys/net/hfsc.c
814
hfsc_set_active(hif, cl, m->m_pkthdr.len);
sys/net/hfsc.c
821
PKTCNTR_INC(&cl->cl_stats.drop_cnt, dm->m_pkthdr.len);
sys/net/hfsc.c
831
struct hfsc_class *cl, *tcl;
sys/net/hfsc.c
842
cl = hfsc_ellist_get_mindl(hif, cur_time);
sys/net/hfsc.c
843
if (cl == NULL) {
sys/net/hfsc.c
848
cl = NULL;
sys/net/hfsc.c
863
cl = tcl;
sys/net/hfsc.c
866
if (cl == NULL)
sys/net/hfsc.c
870
m = hfsc_class_deq_begin(cl, &free_ml);
sys/net/hfsc.c
873
hfsc_update_sc(hif, cl, 0);
sys/net/hfsc.c
878
*cookiep = cl;
sys/net/hfsc.c
886
struct hfsc_class *cl = cookie;
sys/net/hfsc.c
888
hfsc_class_deq_commit(cl, m);
sys/net/hfsc.c
889
hfsc_update_sc(hif, cl, m->m_pkthdr.len);
sys/net/hfsc.c
891
PKTCNTR_INC(&cl->cl_stats.xmit_cnt, m->m_pkthdr.len);
sys/net/hfsc.c
895
hfsc_update_sc(struct hfsc_if *hif, struct hfsc_class *cl, int len)
sys/net/hfsc.c
901
if (cl->cl_rsc != NULL)
sys/net/hfsc.c
902
realtime = (cl->cl_e <= cur_time);
sys/net/hfsc.c
904
hfsc_update_vf(cl, len, cur_time);
sys/net/hfsc.c
906
cl->cl_cumul += len;
sys/net/hfsc.c
908
if (hfsc_class_qlength(cl) > 0) {
sys/net/hfsc.c
914
if (cl->cl_rsc != NULL) {
sys/net/hfsc.c
918
KASSERT(cl->cl_qops == pfq_hfsc_ops);
sys/net/hfsc.c
919
m0 = MBUF_LIST_FIRST(&cl->cl_q.q);
sys/net/hfsc.c
923
hfsc_update_ed(hif, cl, next_len);
sys/net/hfsc.c
925
hfsc_update_d(cl, next_len);
sys/net/hfsc.c
929
hfsc_set_passive(hif, cl);
sys/net/hfsc.c
955
hfsc_cl_purge(struct hfsc_if *hif, struct hfsc_class *cl, struct mbuf_list *ml)
sys/net/hfsc.c
959
hfsc_class_purge(cl, &ml2);
sys/net/hfsc.c
965
hfsc_update_vf(cl, 0, 0); /* remove cl from the actlist */
sys/net/hfsc.c
966
hfsc_set_passive(hif, cl);
sys/net/hfsc.c
970
hfsc_set_active(struct hfsc_if *hif, struct hfsc_class *cl, int len)
sys/net/hfsc.c
972
if (cl->cl_rsc != NULL)
sys/net/hfsc.c
973
hfsc_init_ed(hif, cl, len);
sys/net/hfsc.c
974
if (cl->cl_fsc != NULL)
sys/net/hfsc.c
975
hfsc_init_vf(cl, len);
sys/net/hfsc.c
977
cl->cl_stats.period++;
sys/net/hfsc.c
981
hfsc_set_passive(struct hfsc_if *hif, struct hfsc_class *cl)
sys/net/hfsc.c
983
if (cl->cl_rsc != NULL)
sys/net/hfsc.c
984
hfsc_ellist_remove(hif, cl);
sys/net/hfsc.c
993
hfsc_init_ed(struct hfsc_if *hif, struct hfsc_class *cl, int next_len)
sys/ntfs/ntfs_subr.c
1354
cn_t ccn, ccl, cn, cl;
sys/ntfs/ntfs_subr.c
1395
cl = ntfs_btocl(tocopy + off);
sys/ntfs/ntfs_subr.c
1396
KASSERT(cl == 1 &&
sys/ntfs/ntfs_subr.c
1403
cn, cl, off, tocopy, left);
sys/ntfs/ntfs_subr.c
1406
ntfs_cntob(cl),
sys/ntfs/ntfs_subr.c
1426
cn += cl;
sys/ntfs/ntfs_subr.c
1427
ccl -= cl;
sys/ntfs/ntfs_subr.c
1613
ntfs_parserun(cn_t *cn, cn_t *cl, u_int8_t *run, u_long len, u_long *off)
sys/ntfs/ntfs_subr.c
1627
*cl = 0;
sys/ntfs/ntfs_subr.c
1635
*cl += (u_int32_t) run[(*off)++] << (i << 3);
sys/ntfs/ntfs_subr.c
602
cn_t *cl;
sys/ntfs/ntfs_subr.c
614
cl = mallocarray(cnt, sizeof(cn_t), M_NTFSRUN, M_WAITOK);
sys/ntfs/ntfs_subr.c
622
cl[cnt] = 0;
sys/ntfs/ntfs_subr.c
625
cl[cnt] += (u_int32_t) run[off++] << (i << 3);
sys/ntfs/ntfs_subr.c
645
*rclp = cl;
sys/ntfs/ntfs_subr.h
57
cn_t * cl;
sys/ntfs/ntfs_subr.h
67
#define va_vruncl va_d.vrun.cl
usr.bin/gprof/gprof.h
139
struct cl *next; /* next member of list */
usr.bin/gprof/gprof.h
143
typedef struct cl cltype;
usr.bin/rpcgen/rpc_cout.c
341
case_list *cl;
usr.bin/rpcgen/rpc_cout.c
350
for (cl = def->def.un.cases; cl != NULL; cl = cl->next) {
usr.bin/rpcgen/rpc_cout.c
351
fprintf(fout, "\tcase %s:\n", cl->case_name);
usr.bin/rpcgen/rpc_cout.c
352
if (cl->contflag == 1) /* a continued case statement */
usr.bin/rpcgen/rpc_cout.c
354
cs = &cl->case_decl;
usr.bin/rwall/rwall.c
64
CLIENT *cl;
usr.bin/rwall/rwall.c
80
cl = clnt_create(wallhost, WALLPROG, WALLVERS, "udp");
usr.bin/rwall/rwall.c
81
if (cl == NULL) {
usr.bin/rwall/rwall.c
90
if (clnt_call(cl, WALLPROC_WALL, xdr_wrapstring, &mbuf, xdr_void,
usr.bin/rwall/rwall.c
96
clnt_perror(cl, wallhost);
usr.bin/tmux/screen-write.c
2056
struct screen_write_cline *cl = &ctx->s->write_list[y];
usr.bin/tmux/screen-write.c
2061
if (TAILQ_EMPTY(&cl->items))
usr.bin/tmux/screen-write.c
2063
TAILQ_FOREACH_SAFE(ci, &cl->items, entry, tmp) {
usr.bin/tmux/screen-write.c
2086
TAILQ_REMOVE(&cl->items, ci, entry);
usr.bin/tmux/screen-write.c
2122
TAILQ_INSERT_AFTER(&cl->items, ci, ci2, entry);
usr.bin/tmux/screen-write.c
2141
struct screen_write_cline *cl;
usr.bin/tmux/screen-write.c
2145
cl = &ctx->s->write_list[i];
usr.bin/tmux/screen-write.c
2146
TAILQ_CONCAT(&screen_write_citem_freelist, &cl->items, entry);
usr.bin/tmux/screen-write.c
2155
struct screen_write_cline *cl;
usr.bin/tmux/screen-write.c
2166
cl = &ctx->s->write_list[y + 1];
usr.bin/tmux/screen-write.c
2167
TAILQ_CONCAT(&ctx->s->write_list[y].items, &cl->items, entry);
usr.bin/tmux/screen-write.c
2168
ctx->s->write_list[y].data = cl->data;
usr.bin/tmux/screen-write.c
2221
struct screen_write_cline *cl = &s->write_list[y];
usr.bin/tmux/screen-write.c
2245
TAILQ_FOREACH_SAFE(ci, &cl->items, entry, tmp) {
usr.bin/tmux/screen-write.c
2290
ttyctx.data.data = cl->data + w_start;
usr.bin/tmux/screen-write.c
2299
TAILQ_REMOVE(&cl->items, ci, entry);
usr.bin/tmux/screen-write.c
2315
struct screen_write_cline *cl;
usr.bin/tmux/screen-write.c
2325
cl = &s->write_list[y];
usr.bin/tmux/screen-write.c
2326
if (!TAILQ_EMPTY(&cl->items))
usr.bin/tmux/screen-write.c
2352
cl = &s->write_list[y];
usr.bin/tmux/screen-write.c
2353
TAILQ_FOREACH_SAFE(ci, &cl->items, entry, tmp) {
usr.bin/tmux/screen-write.c
2354
TAILQ_REMOVE(&cl->items, ci, entry);
usr.bin/tmux/screen-write.c
2368
struct screen_write_cline *cl = &s->write_list[s->cy];
usr.bin/tmux/screen-write.c
2374
TAILQ_INSERT_TAIL(&cl->items, ci, entry);
usr.bin/tmux/screen-write.c
2402
struct screen_write_cline *cl = &s->write_list[s->cy];
usr.bin/tmux/screen-write.c
2413
(int)ci->used, cl->data + ci->x, s->cx, s->cy);
usr.bin/tmux/screen-write.c
2447
grid_view_set_cells(s->grid, s->cx, s->cy, &ci->gc, cl->data + ci->x,
usr.sbin/amd/amd/sched.c
186
wakeup_task(int rc, int term, void *cl)
usr.sbin/amd/amd/sched.c
188
wakeup(cl);
usr.sbin/httpd/patterns.c
125
match_class(int c, int cl)
usr.sbin/httpd/patterns.c
128
switch (tolower(cl)) {
usr.sbin/httpd/patterns.c
160
return (cl == c);
usr.sbin/httpd/patterns.c
162
return (islower(cl) ? res : !res);
usr.sbin/httpd/server_fcgi.c
648
struct kv *cl, key;
usr.sbin/httpd/server_fcgi.c
715
if ((cl =
usr.sbin/httpd/server_fcgi.c
718
kv_set(cl, "max-age=%d%s%s", srv_conf->hsts_max_age,
usr.sbin/httpd/server_http.c
1695
struct kv *ct, *cl;
usr.sbin/httpd/server_http.c
1730
if (size >= 0 && ((cl =
usr.sbin/httpd/server_http.c
1732
kv_set(cl, "%lld", (long long)size) == -1))
usr.sbin/httpd/server_http.c
1753
if ((cl =
usr.sbin/httpd/server_http.c
1756
kv_set(cl, "max-age=%d%s%s", srv_conf->hsts_max_age,
usr.sbin/makefs/msdos/msdosfs_fat.c
739
u_long cl, n;
usr.sbin/makefs/msdos/msdosfs_fat.c
741
for (cl = start, n = count; n-- > 0;)
usr.sbin/makefs/msdos/msdosfs_fat.c
742
usemap_alloc(pmp, cl++);
usr.sbin/unbound/daemon/cachedump.c
291
char* nm, *tp, *cl;
usr.sbin/unbound/daemon/cachedump.c
294
cl = sldns_wire2str_class(ntohs(k->rk.rrset_class));
usr.sbin/unbound/daemon/cachedump.c
295
if(!nm || !cl || !tp) {
usr.sbin/unbound/daemon/cachedump.c
298
free(cl);
usr.sbin/unbound/daemon/cachedump.c
302
spool_txt_printf(txt, "%s %s %s %d\n", nm, cl, tp, (int)k->rk.flags);
usr.sbin/unbound/daemon/cachedump.c
305
free(cl);
usr.sbin/unbound/daemon/cachedump.c
314
char* nm, *tp, *cl;
usr.sbin/unbound/daemon/cachedump.c
320
cl = sldns_wire2str_class(k->qclass);
usr.sbin/unbound/daemon/cachedump.c
321
if(!nm || !tp || !cl) {
usr.sbin/unbound/daemon/cachedump.c
324
free(cl);
usr.sbin/unbound/daemon/cachedump.c
331
free(cl);
usr.sbin/unbound/daemon/cachedump.c
338
nm, cl, tp,
usr.sbin/unbound/daemon/cachedump.c
348
free(cl);
usr.sbin/unbound/daemon/remote.c
1814
char s[65535], tp[32], cl[32], rc[32], fg[32], astr[64];
usr.sbin/unbound/daemon/remote.c
1827
sldns_wire2str_class_buf(q->qclass, cl, sizeof(cl));
usr.sbin/unbound/daemon/remote.c
1846
s, cl, tp, (long long)(ttl-*inf->worker->env.now))) {
usr.sbin/unbound/daemon/remote.c
1852
s, cl, tp, fg, rc,
usr.sbin/unbound/daemon/remote.c
1986
char s[65535], tp[32], cl[32], rc[32], fg[32];
usr.sbin/unbound/daemon/remote.c
1990
sldns_wire2str_class_buf(k->key.qclass, cl, sizeof(cl));
usr.sbin/unbound/daemon/remote.c
2009
s, cl, tp, fg, rc,
usr.sbin/unbound/services/authzone.c
1659
auth_rr_to_string(uint8_t* nm, size_t nmlen, uint16_t tp, uint16_t cl,
usr.sbin/unbound/services/authzone.c
1671
w += sldns_wire2str_class_print(&s, &slen, cl);
usr.sbin/unbound/services/authzone.c
1687
log_nametypeclass(NO_VERBOSE, "RR too long to print", nm, tp, cl);
usr.sbin/unbound/sldns/str2wire.c
278
int* not_there, uint16_t* cl)
usr.sbin/unbound/sldns/str2wire.c
288
*cl = sldns_get_rr_class_by_name(token);
usr.sbin/unbound/sldns/str2wire.c
290
if(*cl == 0 && strcmp(token, "CLASS0") != 0) {
usr.sbin/unbound/sldns/str2wire.c
292
*cl = LDNS_RR_CLASS_IN;
usr.sbin/unbound/sldns/str2wire.c
321
size_t dname_len, uint16_t tp, uint16_t cl, uint32_t ttl, int question)
usr.sbin/unbound/sldns/str2wire.c
329
sldns_write_uint16(rr+dname_len+2, cl);
usr.sbin/unbound/sldns/str2wire.c
338
sldns_write_uint16(rr+dname_len+2, cl);
usr.sbin/unbound/sldns/str2wire.c
906
uint16_t tp = 0, cl = 0;
usr.sbin/unbound/sldns/str2wire.c
924
¬_there, &cl)) != 0)
usr.sbin/unbound/sldns/str2wire.c
930
if((status=rrinternal_write_typeclassttl(&strbuf, rr, *len, *dname_len, tp, cl,
usr.sbin/unbound/smallapp/unbound-anchor.c
563
resolve_host_ip(struct ub_ctx* ctx, const char* host, int port, int tp, int cl,
usr.sbin/unbound/smallapp/unbound-anchor.c
570
r = ub_resolve(ctx, host, tp, cl, &res);
usr.sbin/unbound/testcode/memstats.c
104
struct codeline* cl = (struct codeline*)rbtree_search(tree, key);
usr.sbin/unbound/testcode/memstats.c
105
if(!cl) {
usr.sbin/unbound/testcode/memstats.c
106
cl = calloc(1, sizeof(*cl));
usr.sbin/unbound/testcode/memstats.c
107
if(!cl) return 0;
usr.sbin/unbound/testcode/memstats.c
108
cl->codeline = strdup(key);
usr.sbin/unbound/testcode/memstats.c
109
if(!cl->codeline) {
usr.sbin/unbound/testcode/memstats.c
110
free(cl);
usr.sbin/unbound/testcode/memstats.c
113
cl->func = strdup(func);
usr.sbin/unbound/testcode/memstats.c
114
if(!cl->func) {
usr.sbin/unbound/testcode/memstats.c
115
free(cl->codeline);
usr.sbin/unbound/testcode/memstats.c
116
free(cl);
usr.sbin/unbound/testcode/memstats.c
119
cl->alloc = 0;
usr.sbin/unbound/testcode/memstats.c
120
cl->node.key = cl->codeline;
usr.sbin/unbound/testcode/memstats.c
121
(void)rbtree_insert(tree, &cl->node);
usr.sbin/unbound/testcode/memstats.c
123
return cl;
usr.sbin/unbound/testcode/memstats.c
134
struct codeline* cl = 0;
usr.sbin/unbound/testcode/memstats.c
144
cl = get_codeline(tree, codeline, name);
usr.sbin/unbound/testcode/memstats.c
145
if(!cl)
usr.sbin/unbound/testcode/memstats.c
147
cl->alloc += num;
usr.sbin/unbound/testcode/memstats.c
148
cl->calls ++;
usr.sbin/unbound/testcode/memstats.c
159
struct codeline* cl = 0;
usr.sbin/unbound/testcode/memstats.c
170
cl = get_codeline(tree, codeline, name);
usr.sbin/unbound/testcode/memstats.c
171
if(!cl)
usr.sbin/unbound/testcode/memstats.c
173
cl->alloc += num*sz;
usr.sbin/unbound/testcode/memstats.c
174
cl->calls ++;
usr.sbin/unbound/testcode/memstats.c
228
struct codeline* cl;
usr.sbin/unbound/testcode/memstats.c
230
RBTREE_FOR(cl, struct codeline*, tree) {
usr.sbin/unbound/testcode/memstats.c
231
printf("%12lld / %8lld in %s %s\n", (long long)cl->alloc,
usr.sbin/unbound/testcode/memstats.c
232
(long long)cl->calls, cl->codeline, cl->func);
usr.sbin/unbound/testcode/memstats.c
233
total += cl->alloc;
usr.sbin/unbound/testcode/memstats.c
234
tcalls += cl->calls;
usr.sbin/unbound/testcode/perf.c
449
char nm[1024], cl[1024], tp[1024], fl[1024];
usr.sbin/unbound/testcode/perf.c
453
nm[0] = 0; cl[0] = 0; tp[0] = 0; fl[0] = 0;
usr.sbin/unbound/testcode/perf.c
454
r = sscanf(p, " %1023s %1023s %1023s %1023s", nm, cl, tp, fl);
usr.sbin/unbound/testcode/perf.c
459
qinfo.qtype = sldns_get_rr_type_by_name(cl);
usr.sbin/unbound/testcode/perf.c
461
if((qinfo.qtype == 0 && strcmp(cl, "TYPE0") != 0) ||
usr.sbin/unbound/testcode/perf.c
467
qinfo.qclass = sldns_get_rr_class_by_name(cl);
usr.sbin/unbound/testcode/perf.c
469
(qinfo.qclass == 0 && strcmp(cl, "CLASS0") != 0)) {
usr.sbin/unbound/util/log.c
109
FILE* cl = logfile;
usr.sbin/unbound/util/log.c
112
fclose(cl);
usr.sbin/unbound/util/netevent.c
4867
long long cl;
usr.sbin/unbound/util/netevent.c
4869
cl = strtoll(line+16, &end, 10);
usr.sbin/unbound/util/netevent.c
4870
if(end == line+16 || errno != 0 || cl < 0) {
usr.sbin/unbound/util/netevent.c
4871
verbose(VERB_ALGO, "http invalid Content-Length: " ARG_LL "d", cl);
usr.sbin/unbound/util/netevent.c
4874
c->tcp_byte_count = (size_t)cl;