bin/csh/exp.c
288
int i = 0, l;
bin/csh/exp.c
306
l = egetn(p1);
bin/csh/exp.c
307
if (l == INT_MIN && i == -1)
bin/csh/exp.c
310
i = l / i;
bin/csh/exp.c
317
l = egetn(p1);
bin/csh/exp.c
318
if (l == INT_MIN && i == -1)
bin/csh/exp.c
321
i = l % i;
bin/csh/glob.c
242
int l, e;
bin/csh/glob.c
244
l = &el[len] - &nv[size];
bin/csh/glob.c
245
size += GLOBSPACE > l ? GLOBSPACE : l;
bin/csh/glob.c
246
l = vl - nv;
bin/csh/glob.c
249
vl = nv + l;
bin/csh/lex.c
1494
bseek(struct Ain *l)
bin/csh/lex.c
1496
switch (aret = l->type) {
bin/csh/lex.c
1498
evalvec = l->a_seek;
bin/csh/lex.c
1499
evalp = l->c_seek;
bin/csh/lex.c
1502
alvec = l->a_seek;
bin/csh/lex.c
1503
alvecp = l->c_seek;
bin/csh/lex.c
1506
fseekp = l->f_seek;
bin/csh/lex.c
1515
btell(struct Ain *l)
bin/csh/lex.c
1517
switch (l->type = aret) {
bin/csh/lex.c
1519
l->a_seek = evalvec;
bin/csh/lex.c
1520
l->c_seek = evalp;
bin/csh/lex.c
1523
l->a_seek = alvec;
bin/csh/lex.c
1524
l->c_seek = alvecp;
bin/csh/lex.c
1527
l->f_seek = fseekp;
bin/csh/lex.c
1528
l->a_seek = NULL;
bin/csh/parse.c
104
int l = 0;
bin/csh/parse.c
110
l++;
bin/csh/parse.c
114
l--;
bin/csh/parse.c
115
if (l < 0)
bin/csh/parse.c
128
if (l != 0)
bin/csh/parse.c
134
if (l == 0)
bin/csh/parse.c
234
int l;
bin/csh/parse.c
236
l = 0;
bin/csh/parse.c
241
l++;
bin/csh/parse.c
245
l--;
bin/csh/parse.c
246
if (l < 0)
bin/csh/parse.c
261
if (l != 0)
bin/csh/parse.c
284
if (l == 0)
bin/csh/parse.c
300
int l;
bin/csh/parse.c
302
l = 0;
bin/csh/parse.c
307
l++;
bin/csh/parse.c
311
l--;
bin/csh/parse.c
316
if (l != 0)
bin/csh/parse.c
339
int l = 0;
bin/csh/parse.c
345
l++;
bin/csh/parse.c
349
l--;
bin/csh/parse.c
355
if (l == 0) {
bin/csh/parse.c
378
int l = 0;
bin/csh/parse.c
384
l++;
bin/csh/parse.c
388
l--;
bin/csh/parse.c
392
if (p->word[1] == '&' && l == 0) {
bin/csh/parse.c
416
int l = 0;
bin/csh/parse.c
423
l++;
bin/csh/parse.c
427
l--;
bin/csh/parse.c
431
if (l != 0)
bin/csh/parse.c
466
int l;
bin/csh/parse.c
494
l = 0;
bin/csh/parse.c
501
l++;
bin/csh/parse.c
507
l--;
bin/csh/parse.c
512
if (l != 0) {
bin/csh/parse.c
525
if (!specp && l != 0)
bin/csh/parse.c
540
l = 0;
bin/csh/parse.c
546
if (l == 0) {
bin/csh/parse.c
551
l++;
bin/csh/parse.c
555
l--;
bin/csh/parse.c
556
if (l == 0)
bin/csh/parse.c
561
if (l != 0)
bin/csh/parse.c
590
if (l != 0)
bin/csh/parse.c
615
if (l != 0 && !specp)
bin/csh/time.c
237
psecs(long l)
bin/csh/time.c
241
i = l / 3600;
bin/csh/time.c
244
i = l % 3600;
bin/csh/time.c
248
i = l;
bin/csh/time.c
257
pcsecs(long l) /* PWP: print mm:ss.dd, l is in sec*100 */
bin/csh/time.c
261
i = l / 360000;
bin/csh/time.c
264
i = (l % 360000) / 100;
bin/csh/time.c
268
i = l / 100;
bin/csh/time.c
275
P2DIG((int) (l % 100));
bin/ed/ed.h
104
i = (int)l; \
bin/ed/ed.h
138
#define NUL_TO_NEWLINE(s, l) translit_text(s, l, '\0', '\n')
bin/ed/ed.h
141
#define NEWLINE_TO_NUL(s, l) translit_text(s, l, '\n', '\0')
bin/ed/ed.h
81
#define INC_MOD(l, k) ((l) + 1 > (k) ? 0 : (l) + 1)
bin/ed/ed.h
82
#define DEC_MOD(l, k) ((l) - 1 < 0 ? (k) : (l) - 1)
bin/ed/ed.h
98
long l = strtol(p, &p, 10); \
bin/ed/ed.h
99
if (l <= INT_MIN || l >= INT_MAX) { \
bin/ed/io.c
217
int l, n;
bin/ed/io.c
222
if ((l = t - ibufp) < 2 || !has_trailing_escape(ibufp, ibufp + l - 1)) {
bin/ed/io.c
223
*sizep = l;
bin/ed/io.c
227
REALLOC(cvbuf, cvbufsz, l, NULL);
bin/ed/io.c
228
memcpy(cvbuf, ibufp, l);
bin/ed/io.c
229
*(cvbuf + --l - 1) = '\n'; /* strip trailing esc */
bin/ed/io.c
231
l--; /* strip newline */
bin/ed/io.c
239
REALLOC(cvbuf, cvbufsz, l + n, NULL);
bin/ed/io.c
240
memcpy(cvbuf + l, ibuf, n);
bin/ed/io.c
241
l += n;
bin/ed/io.c
242
if (n < 2 || !has_trailing_escape(cvbuf, cvbuf + l - 1))
bin/ed/io.c
244
*(cvbuf + --l - 1) = '\n'; /* strip trailing esc */
bin/ed/io.c
245
if (nonl) l--; /* strip newline */
bin/ed/io.c
247
REALLOC(cvbuf, cvbufsz, l + 1, NULL);
bin/ed/io.c
248
cvbuf[l] = '\0';
bin/ed/io.c
249
*sizep = l;
bin/ed/io.c
309
put_tty_line(char *s, int l, int n, int gflag)
bin/ed/io.c
318
for (; l--; s++) {
bin/ed/main.c
1025
int l;
bin/ed/main.c
1032
if ((l = get_tty_line()) < 0)
bin/ed/main.c
1034
else if (l == 0 || ibuf[l - 1] != '\n') {
bin/ed/main.c
1036
return l ? EOF : 0;
bin/ed/main.c
1044
l = ibufp - lp;
bin/ed/main.c
1046
if (l == 2 && lp[0] == '.' && lp[1] == '\n') {
bin/ed/main.c
1049
eot = lp + l;
bin/expr/expr.c
241
struct val *l, *r;
bin/expr/expr.c
244
l = eval6();
bin/expr/expr.c
250
to_string(l);
bin/expr/expr.c
261
if (regexec(&rp, l->u.s, 2, rm, 0) == 0 && rm[0].rm_so == 0) {
bin/expr/expr.c
263
*(l->u.s + rm[1].rm_eo) = '\0';
bin/expr/expr.c
264
v = make_str(l->u.s + rm[1].rm_so);
bin/expr/expr.c
278
free_value(l);
bin/expr/expr.c
282
l = v;
bin/expr/expr.c
285
return l;
bin/expr/expr.c
293
struct val *l, *r;
bin/expr/expr.c
297
l = eval5();
bin/expr/expr.c
302
if (!to_integer(l, &errstr))
bin/expr/expr.c
303
errx(2, "number \"%s\" is %s", l->u.s, errstr);
bin/expr/expr.c
308
res = l->u.i * r->u.i;
bin/expr/expr.c
309
if (r->u.i != 0 && l->u.i != res / r->u.i)
bin/expr/expr.c
311
l->u.i = res;
bin/expr/expr.c
317
if (l->u.i != INT64_MIN || r->u.i != -1)
bin/expr/expr.c
318
l->u.i /= r->u.i;
bin/expr/expr.c
322
if (l->u.i != INT64_MIN || r->u.i != -1)
bin/expr/expr.c
323
l->u.i %= r->u.i;
bin/expr/expr.c
325
l->u.i = 0;
bin/expr/expr.c
332
return l;
bin/expr/expr.c
340
struct val *l, *r;
bin/expr/expr.c
344
l = eval4();
bin/expr/expr.c
349
if (!to_integer(l, &errstr))
bin/expr/expr.c
350
errx(2, "number \"%s\" is %s", l->u.s, errstr);
bin/expr/expr.c
355
res = l->u.i + r->u.i;
bin/expr/expr.c
356
if ((l->u.i > 0 && r->u.i > 0 && res <= 0) ||
bin/expr/expr.c
357
(l->u.i < 0 && r->u.i < 0 && res >= 0))
bin/expr/expr.c
359
l->u.i = res;
bin/expr/expr.c
361
res = l->u.i - r->u.i;
bin/expr/expr.c
362
if ((l->u.i >= 0 && r->u.i < 0 && res <= 0) ||
bin/expr/expr.c
363
(l->u.i < 0 && r->u.i > 0 && res >= 0))
bin/expr/expr.c
365
l->u.i = res;
bin/expr/expr.c
371
return l;
bin/expr/expr.c
378
struct val *l, *r;
bin/expr/expr.c
382
l = eval3();
bin/expr/expr.c
388
if (is_integer(l, &li, NULL) && is_integer(r, &ri, NULL)) {
bin/expr/expr.c
412
to_string(l);
bin/expr/expr.c
417
v = (strcoll(l->u.s, r->u.s) > 0);
bin/expr/expr.c
420
v = (strcoll(l->u.s, r->u.s) >= 0);
bin/expr/expr.c
423
v = (strcoll(l->u.s, r->u.s) < 0);
bin/expr/expr.c
426
v = (strcoll(l->u.s, r->u.s) <= 0);
bin/expr/expr.c
429
v = (strcoll(l->u.s, r->u.s) == 0);
bin/expr/expr.c
432
v = (strcoll(l->u.s, r->u.s) != 0);
bin/expr/expr.c
439
free_value(l);
bin/expr/expr.c
441
l = make_int(v);
bin/expr/expr.c
444
return l;
bin/expr/expr.c
451
struct val *l, *r;
bin/expr/expr.c
453
l = eval2();
bin/expr/expr.c
458
if (is_zero_or_null(l) || is_zero_or_null(r)) {
bin/expr/expr.c
459
free_value(l);
bin/expr/expr.c
461
l = make_int(0);
bin/expr/expr.c
467
return l;
bin/expr/expr.c
474
struct val *l, *r;
bin/expr/expr.c
476
l = eval1();
bin/expr/expr.c
481
if (is_zero_or_null(l)) {
bin/expr/expr.c
482
free_value(l);
bin/expr/expr.c
483
l = r;
bin/expr/expr.c
489
return l;
bin/ksh/alloc.c
114
struct link *l;
bin/ksh/alloc.c
119
l = P2L(ptr);
bin/ksh/alloc.c
120
if (l->prev)
bin/ksh/alloc.c
121
l->prev->next = l->next;
bin/ksh/alloc.c
123
ap->freelist = l->next;
bin/ksh/alloc.c
124
if (l->next)
bin/ksh/alloc.c
125
l->next->prev = l->prev;
bin/ksh/alloc.c
127
free(l);
bin/ksh/alloc.c
29
struct link *l, *l2;
bin/ksh/alloc.c
31
for (l = ap->freelist; l != NULL; l = l2) {
bin/ksh/alloc.c
32
l2 = l->next;
bin/ksh/alloc.c
33
free(l);
bin/ksh/alloc.c
38
#define L2P(l) ( (void *)(((char *)(l)) + sizeof(struct link)) )
bin/ksh/alloc.c
44
struct link *l;
bin/ksh/alloc.c
50
l = malloc(sizeof(struct link) + size);
bin/ksh/alloc.c
51
if (l == NULL)
bin/ksh/alloc.c
53
l->next = ap->freelist;
bin/ksh/alloc.c
54
l->prev = NULL;
bin/ksh/alloc.c
56
ap->freelist->prev = l;
bin/ksh/alloc.c
57
ap->freelist = l;
bin/ksh/alloc.c
59
return L2P(l);
bin/ksh/alloc.c
85
struct link *l, *l2, *lprev, *lnext;
bin/ksh/alloc.c
94
l = P2L(ptr);
bin/ksh/alloc.c
95
lprev = l->prev;
bin/ksh/alloc.c
96
lnext = l->next;
bin/ksh/alloc.c
98
l2 = realloc(l, sizeof(struct link) + size);
bin/ksh/c_ksh.c
560
struct block *l;
bin/ksh/c_ksh.c
736
for (l = genv->loc; l; l = l->next) {
bin/ksh/c_ksh.c
737
for (p = ktsort(&l->funs); (vp = *p++); ) {
bin/ksh/c_ksh.c
749
for (l = genv->loc; l; l = l->next) {
bin/ksh/c_ksh.c
750
for (p = ktsort(&l->vars); (vp = *p++); ) {
bin/ksh/c_sh.c
34
struct block *l = genv->loc;
bin/ksh/c_sh.c
52
if (l->argc < n) {
bin/ksh/c_sh.c
56
l->argv[n] = l->argv[0];
bin/ksh/c_sh.c
57
l->argv += n;
bin/ksh/c_sh.c
58
l->argc -= n;
bin/ksh/c_sh.c
615
struct block *l = genv->loc;
bin/ksh/c_sh.c
629
wp[0] = l->argv[0]; /* save $0 */
bin/ksh/c_sh.c
631
*wp = str_save(*wp, &l->area);
bin/ksh/c_sh.c
632
l->argc = wp - owp - 1;
bin/ksh/c_sh.c
633
l->argv = areallocarray(NULL, l->argc+2, sizeof(char *), &l->area);
bin/ksh/c_sh.c
634
for (wp = l->argv; (*wp++ = *owp++) != NULL; )
bin/ksh/c_ulimit.c
100
if (!l->name) {
bin/ksh/c_ulimit.c
105
if (set_ulimit(l, builtin_opt.optarg, how))
bin/ksh/c_ulimit.c
108
print_ulimit(l, how);
bin/ksh/c_ulimit.c
115
for (l = limits; l->name; l++) {
bin/ksh/c_ulimit.c
116
shprintf("%-20s ", l->name);
bin/ksh/c_ulimit.c
117
print_ulimit(l, how);
bin/ksh/c_ulimit.c
121
l = &limits[1];
bin/ksh/c_ulimit.c
123
if (set_ulimit(l, wp[0], how))
bin/ksh/c_ulimit.c
127
print_ulimit(l, how);
bin/ksh/c_ulimit.c
135
set_ulimit(const struct limits *l, const char *v, int how)
bin/ksh/c_ulimit.c
157
val = (rlim_t)rval * l->factor;
bin/ksh/c_ulimit.c
160
getrlimit(l->resource, &limit);
bin/ksh/c_ulimit.c
165
if (setrlimit(l->resource, &limit) == -1) {
bin/ksh/c_ulimit.c
167
bi_errorf("-%c exceeds allowable limit", l->option);
bin/ksh/c_ulimit.c
169
bi_errorf("bad -%c limit: %s", l->option,
bin/ksh/c_ulimit.c
177
print_ulimit(const struct limits *l, int how)
bin/ksh/c_ulimit.c
182
getrlimit(l->resource, &limit);
bin/ksh/c_ulimit.c
190
val /= l->factor;
bin/ksh/c_ulimit.c
61
const struct limits *l;
bin/ksh/c_ulimit.c
98
for (l = limits; l->name && l->option != optc; l++)
bin/ksh/edit.c
380
XPtrV l;
bin/ksh/edit.c
384
XPinit(l, nwords + 1);
bin/ksh/edit.c
386
XPput(l, words[i] + prefix_len);
bin/ksh/edit.c
387
XPput(l, NULL);
bin/ksh/edit.c
392
pr_list((char **) XPptrv(l));
bin/ksh/edit.c
394
XPfree(l); /* not x_free_words() */
bin/ksh/edit.c
502
struct block *l;
bin/ksh/edit.c
518
for (l = genv->loc; l; l = l->next)
bin/ksh/edit.c
519
glob_table(pat, &w, &l->funs);
bin/ksh/emacs.c
1252
static char l[LINE + 1];
bin/ksh/emacs.c
1255
l[at] = '\0';
bin/ksh/emacs.c
1260
l[at++] = CTRL(*s);
bin/ksh/emacs.c
1262
l[at++] = '^';
bin/ksh/emacs.c
1266
l[at++] = *s;
bin/ksh/emacs.c
1267
l[at] = '\0';
bin/ksh/emacs.c
1270
return (l);
bin/ksh/emacs.c
1276
static char l[LINE + 1];
bin/ksh/emacs.c
1279
l[0] = '\0';
bin/ksh/emacs.c
1282
l[at++] = '^';
bin/ksh/emacs.c
1283
l[at++] = UNCTRL(s[i]);
bin/ksh/emacs.c
1285
l[at++] = s[i];
bin/ksh/emacs.c
1286
l[at] = '\0';
bin/ksh/emacs.c
1289
return (l);
bin/ksh/exec.c
743
struct block *l;
bin/ksh/exec.c
746
for (l = genv->loc; l; l = l->next) {
bin/ksh/exec.c
747
tp = ktsearch(&l->funs, name, h);
bin/ksh/exec.c
750
if (!l->next && create) {
bin/ksh/exec.c
751
tp = ktenter(&l->funs, name, h);
bin/ksh/main.c
149
struct block *l;
bin/ksh/main.c
390
l = genv->loc;
bin/ksh/main.c
391
l->argv = make_argv(argc - (argi - 1), &argv[argi - 1]);
bin/ksh/main.c
392
l->argc = argc - argi;
bin/ksh/var.c
1021
int64_t l;
bin/ksh/var.c
1023
if (getint(vp, &l, false) == -1) {
bin/ksh/var.c
1027
if (l <= MIN_COLS || l > INT_MAX)
bin/ksh/var.c
1030
x_cols = l;
bin/ksh/var.c
171
struct block *l = genv->loc;
bin/ksh/var.c
194
if (errno == 0 && num <= l->argc)
bin/ksh/var.c
196
setstr(vp, l->argv[num], KSH_RETURN_ERROR);
bin/ksh/var.c
217
vp->val.i = l->argc;
bin/ksh/var.c
228
for (l = genv->loc; ; l = l->next) {
bin/ksh/var.c
229
vp = ktsearch(&l->vars, n, h);
bin/ksh/var.c
236
if (l->next == NULL)
bin/ksh/var.c
239
vp = ktenter(&l->vars, n, h);
bin/ksh/var.c
254
struct block *l = genv->loc;
bin/ksh/var.c
270
vp = ktenter(&l->vars, n, h);
bin/ksh/var.c
272
struct block *ll = l;
bin/ksh/var.c
48
struct block *l;
bin/ksh/var.c
51
l = alloc(sizeof(struct block), ATEMP);
bin/ksh/var.c
52
l->flags = 0;
bin/ksh/var.c
53
ainit(&l->area); /* todo: could use genv->area (l->area => l->areap) */
bin/ksh/var.c
55
l->argc = 0;
bin/ksh/var.c
56
l->argv = (char **) empty;
bin/ksh/var.c
58
l->argc = genv->loc->argc;
bin/ksh/var.c
59
l->argv = genv->loc->argv;
bin/ksh/var.c
61
l->exit = l->error = NULL;
bin/ksh/var.c
62
ktinit(&l->vars, &l->area, 0);
bin/ksh/var.c
63
ktinit(&l->funs, &l->area, 0);
bin/ksh/var.c
64
l->next = genv->loc;
bin/ksh/var.c
65
genv->loc = l;
bin/ksh/var.c
74
struct block *l = genv->loc;
bin/ksh/var.c
75
struct tbl *vp, **vpp = l->vars.tbls, *vq;
bin/ksh/var.c
78
genv->loc = l->next; /* pop block */
bin/ksh/var.c
79
for (i = l->vars.size; --i >= 0; )
bin/ksh/var.c
848
struct block *l;
bin/ksh/var.c
854
for (l = genv->loc; l != NULL; l = l->next)
bin/ksh/var.c
855
for (vpp = l->vars.tbls, i = l->vars.size; --i >= 0; )
bin/ksh/var.c
86
if (l->flags & BF_DOGETOPTS)
bin/ksh/var.c
863
for (l2 = l->next; l2 != NULL; l2 = l2->next) {
bin/ksh/var.c
87
user_opt = l->getopts_state;
bin/ksh/var.c
88
afreeall(&l->area);
bin/ksh/var.c
89
afree(l, ATEMP);
games/adventure/init.c
111
lamp = vocab(DECR(l,a,m,p,\0), 1, 0);
games/adventure/init.c
119
pillow= vocab(DECR(p,i,l,l,o), 1, 0);
games/adventure/init.c
122
tablet= vocab(DECR(t,a,b,l,e), 1, 0);
games/adventure/init.c
123
clam = vocab(DECR(c,l,a,m,\0),1, 0);
games/adventure/init.c
129
bottle= vocab(DECR(b,o,t,t,l), 1, 0);
games/adventure/init.c
131
oil = vocab(DECR(o,i,l,\0,\0),1, 0);
games/adventure/init.c
132
plant = vocab(DECR(p,l,a,n,t), 1, 0);
games/adventure/init.c
138
troll = vocab(DECR(t,r,o,l,l), 1, 0);
games/adventure/init.c
145
nugget= vocab(DECR(g,o,l,d,\0),1, 0);
games/adventure/init.c
153
pearl = vocab(DECR(p,e,a,r,l), 1, 0);
games/adventure/init.c
158
look = vocab(DECR(l,o,o,k,\0),0, 0);
games/adventure/init.c
160
null = vocab(DECR(n,u,l,l,\0),0, 0);
games/adventure/init.c
167
lock = vocab(DECR(l,o,c,k,\0),2, 0);
games/adventure/subr.c
102
bitset(int l, int n)
games/adventure/subr.c
104
if (cond[l] & setbit[n])
games/adventure/subr.c
92
int i, j, l;
games/adventure/subr.c
96
l = cond[locc] / 4;
games/adventure/subr.c
97
l = l % 2;
games/adventure/subr.c
98
return (liq2(j * l + 1));
games/adventure/vocab.c
193
int i, j, l;
games/adventure/vocab.c
208
for (l = 0, c = h->atab; l < 5; l++)
games/atc/list.c
102
if (l->head == p && l->tail == p)
games/atc/list.c
103
l->head = l->tail = NULL;
games/atc/list.c
104
else if (l->head == p) {
games/atc/list.c
105
l->head = p->next;
games/atc/list.c
106
l->head->prev = NULL;
games/atc/list.c
107
} else if (l->tail == p) {
games/atc/list.c
108
l->tail = p->prev;
games/atc/list.c
109
l->tail->next = NULL;
games/atc/list.c
60
append(LIST *l, PLANE *p)
games/atc/list.c
64
if (l->head == NULL) {
games/atc/list.c
66
l->head = l->tail = p;
games/atc/list.c
68
q = l -> head;
games/atc/list.c
85
l->head = p;
games/atc/list.c
88
l->tail->next = p;
games/atc/list.c
90
p->prev = l->tail;
games/atc/list.c
91
l->tail = p;
games/atc/list.c
97
delete(LIST *l, PLANE *p)
games/atc/list.c
99
if (l->head == NULL)
games/atc/update.c
275
number(char l)
games/atc/update.c
277
if (l >= 'a' && l <= 'z')
games/atc/update.c
278
return (l - 'a');
games/atc/update.c
279
else if (l >= 'A' && l <= 'Z')
games/atc/update.c
280
return (l - 'A');
games/backgammon/backgammon/extra.c
195
int c, l, ct;
games/backgammon/backgammon/extra.c
198
l = n + 7 * inc;
games/backgammon/backgammon/extra.c
199
for (i = n + inc; i != l; i += inc) {
games/backgammon/backgammon/extra.c
201
c = abs(i - l);
games/backgammon/backgammon/main.c
359
l = bar + 7 * cturn;
games/backgammon/backgammon/main.c
360
for (i = bar; i != l; i += cturn)
games/backgammon/backgammon/main.c
85
int i,l; /* non-descript indices */
games/backgammon/backgammon/move.c
68
int l = 0; /* last man */
games/backgammon/backgammon/move.c
85
l = i;
games/backgammon/backgammon/move.c
87
for (i = 0; i < l; i++) {
games/backgammon/backgammon/move.c
91
if (i == l)
games/backgammon/common_source/fancy.c
102
l = (off[0] < 0 ? off[0] + 15 : off[0]);
games/backgammon/common_source/fancy.c
103
bsect(-l, 13, 54, -1);
games/backgammon/common_source/fancy.c
294
fixcol(int r, int c, int l, int ch, int inc)
games/backgammon/common_source/fancy.c
299
for (i = 1; i < l; i++) {
games/backgammon/common_source/fancy.c
41
int i, j, k, l;
games/backgammon/common_source/fancy.c
52
l = 1; /* do vertical lines */
games/backgammon/common_source/fancy.c
54
k = (l == 1 ? 1 : 15);
games/backgammon/common_source/fancy.c
57
mvaddch(k += l, i, '|');
games/backgammon/common_source/fancy.c
60
l = -l; /* alternate directions */
games/backgammon/common_source/fancy.c
85
l = (off[1] < 0 ? off[1] + 15 : off[1]);
games/backgammon/common_source/fancy.c
86
bsect(l, 3, 54, 1);
games/bs/bs.c
342
int l;
games/bs/bs.c
344
for(l = 0; l < ss->length; ++l)
games/bs/bs.c
346
int newx = ss->x + l * xincr[ss->dir];
games/bs/bs.c
347
int newy = ss->y + l * yincr[ss->dir];
games/bs/bs.c
704
int l, xend, yend;
games/bs/bs.c
727
for(l = 0; l < ss->length; ++l)
games/bs/bs.c
729
if(collidecheck(b, ss->y+l*yincr[ss->dir], ss->x+l*xincr[ss->dir]))
games/cribbage/crib.c
442
int l;
games/cribbage/crib.c
487
l = pegscore(ch[i], Table, Tcnt, sum);
games/cribbage/crib.c
488
if (l > k) {
games/cribbage/crib.c
489
k = l;
games/cribbage/support.c
103
if (l != 5 && l != 21) {
games/cribbage/support.c
51
int i, j, l;
games/cribbage/support.c
65
if ((l = numofval(h, n, i)) > 0) {
games/cribbage/support.c
66
if (l > 1 || VAL(h[j].rank) != i)
games/cribbage/support.c
76
if ((l = numofval(h, n, 15 - tv[i])) > 0) {
games/cribbage/support.c
77
if (l > 1 ||
games/cribbage/support.c
87
l = s + VAL(h[i].rank);
games/cribbage/support.c
88
if (l > 31)
games/cribbage/support.c
90
if (l != 5 && l != 10 && l != 21) {
games/cribbage/support.c
98
l = s + VAL(h[i].rank);
games/cribbage/support.c
99
if (l > 31)
games/fortune/fortune/fortune.c
63
#define DPRINTF(l,x) if (Debug >= l) fprintf x; else
games/fortune/fortune/fortune.c
66
#define DPRINTF(l,x)
games/pom/pom.c
144
double N, Msol, Ec, LambdaSol, l, Mm, Ev, Ac, A3, Mmprime;
games/pom/pom.c
154
l = 13.1763966 * days + lzero; /* sec 65 #4 */
games/pom/pom.c
155
adj360(&l);
games/pom/pom.c
156
Mm = l - (0.1114041 * days) - Pzero; /* sec 65 #5 */
games/pom/pom.c
160
Ev = 1.2739 * sin(dtor(2*(l - LambdaSol) - Mm)); /* sec 65 #7 */
games/pom/pom.c
166
lprime = l + Ev + Ec - Ac + A4; /* sec 65 #12 */
games/sail/dr_3.c
120
l = 0;
games/sail/dr_3.c
137
Write(W_FOUL, sp, l, 0, 0, 0);
games/sail/dr_3.c
155
l++;
games/sail/dr_3.c
46
int k, l; /* r8, r7 */
games/sail/sync.c
69
size_t l;
games/sail/sync.c
72
l = strlen(buf);
games/sail/sync.c
73
buf += l;
games/sail/sync.c
74
len -= l;
games/tetris/scores.c
230
long l;
games/tetris/scores.c
234
l = (long)b->hs_level * b->hs_score - (long)a->hs_level * a->hs_score;
games/tetris/scores.c
235
if (l < 0)
games/tetris/scores.c
237
if (l > 0)
games/tetris/screen.c
483
int l = strlen(s);
games/tetris/screen.c
485
moveto(Rows - 2, ((Cols - l) >> 1) - 1);
games/tetris/screen.c
489
while (--l >= 0)
games/trek/attack.c
151
for (l = 0; cas >= 0; l++)
games/trek/attack.c
152
cas -= Param.damprob[l];
games/trek/attack.c
153
l -= 1;
games/trek/attack.c
155
extradm = (hit * Param.damfac[l]) / (75 + ranf(25)) + 0.5;
games/trek/attack.c
157
damage(l, extradm);
games/trek/attack.c
72
int hit, i, l;
games/trek/getpar.c
192
getstrpar(const char *s, char *r, int l, const char *t)
games/trek/getpar.c
199
(void)snprintf(format, sizeof format, "%%%d[^%s]", l, t);
games/trek/help.c
108
l = i;
games/trek/help.c
113
Ship.quadx = Now.base[l].x;
games/trek/help.c
114
Ship.quady = Now.base[l].y;
games/trek/help.c
67
int i, j, l = 0;
include/arpa/nameser.h
341
#define GETLONG(l, cp) { \
include/arpa/nameser.h
343
(l) = ((u_int32_t)t_cp[0] << 24) \
include/arpa/nameser.h
359
#define PUTLONG(l, cp) { \
include/arpa/nameser.h
360
u_int32_t t_l = (u_int32_t)(l); \
include/tgmath.h
89
__tg_impl_simple(x, x, x, fn, fn##f, fn##l, x)
include/tgmath.h
91
__tg_impl_simple(x, x, y, fn, fn##f, fn##l, x, y)
include/tgmath.h
93
__tg_impl_simple(x, x, x, fn, fn##f, fn##l, __VA_ARGS__)
include/tgmath.h
95
__tg_impl_full(x, x, x, fn, fn##f, fn##l, c##fn, c##fn##f, c##fn##l, x)
lib/libc/arch/sh/SYS.h
101
mov.l 903f, r0
lib/libc/arch/sh/SYS.h
140
mov.l r0,@r1; \
lib/libc/arch/sparc64/fpu/fpu_explode.c
269
__fpu_qtof(fp, i, j, k, l)
lib/libc/arch/sparc64/fpu/fpu_explode.c
271
u_int i, j, k, l;
lib/libc/arch/sparc64/fpu/fpu_explode.c
284
f2 = (k << EXT_SHIFT) | (l >> (32 - EXT_SHIFT));
lib/libc/arch/sparc64/fpu/fpu_explode.c
285
f3 = l << EXT_SHIFT;
lib/libc/arch/sparc64/fpu/fpu_explode.c
286
frac |= j | k | l;
lib/libc/arch/sparc64/fpu/fpu_explode.c
304
u_int64_t l[2];
lib/libc/arch/sparc64/fpu/fpu_explode.c
307
l[0] = __fpu_getreg64(reg & ~1);
lib/libc/arch/sparc64/fpu/fpu_explode.c
308
sp = (u_int32_t *)l;
lib/libc/arch/sparc64/fpu/fpu_explode.c
313
s = __fpu_xtof(fp, l[0]);
lib/libc/arch/sparc64/fpu/fpu_explode.c
319
l[1] = __fpu_getreg64((reg & ~1) + 2);
lib/libc/asr/asr_utils.c
53
dname_check_label(const char *s, size_t l)
lib/libc/asr/asr_utils.c
55
if (l == 0 || l > 63)
lib/libc/asr/asr_utils.c
65
size_t l, n;
lib/libc/asr/asr_utils.c
85
l = (d - str);
lib/libc/asr/asr_utils.c
87
if (dname_check_label(str, l) == -1)
lib/libc/asr/asr_utils.c
90
res += l + 1;
lib/libc/asr/asr_utils.c
93
*dst++ = l;
lib/libc/asr/asr_utils.c
95
n = (l > max) ? max : l;
lib/libc/crypt/blowfish.c
535
u_int32_t l, r;
lib/libc/crypt/blowfish.c
539
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
lib/libc/crypt/blowfish.c
541
Blowfish_encipher(c, &l, &r);
lib/libc/crypt/blowfish.c
542
data[0] = l >> 24 & 0xff;
lib/libc/crypt/blowfish.c
543
data[1] = l >> 16 & 0xff;
lib/libc/crypt/blowfish.c
544
data[2] = l >> 8 & 0xff;
lib/libc/crypt/blowfish.c
545
data[3] = l & 0xff;
lib/libc/crypt/blowfish.c
558
u_int32_t l, r;
lib/libc/crypt/blowfish.c
562
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
lib/libc/crypt/blowfish.c
564
Blowfish_decipher(c, &l, &r);
lib/libc/crypt/blowfish.c
565
data[0] = l >> 24 & 0xff;
lib/libc/crypt/blowfish.c
566
data[1] = l >> 16 & 0xff;
lib/libc/crypt/blowfish.c
567
data[2] = l >> 8 & 0xff;
lib/libc/crypt/blowfish.c
568
data[3] = l & 0xff;
lib/libc/crypt/blowfish.c
581
u_int32_t l, r;
lib/libc/crypt/blowfish.c
587
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
lib/libc/crypt/blowfish.c
589
Blowfish_encipher(c, &l, &r);
lib/libc/crypt/blowfish.c
590
data[0] = l >> 24 & 0xff;
lib/libc/crypt/blowfish.c
591
data[1] = l >> 16 & 0xff;
lib/libc/crypt/blowfish.c
592
data[2] = l >> 8 & 0xff;
lib/libc/crypt/blowfish.c
593
data[3] = l & 0xff;
lib/libc/crypt/blowfish.c
607
u_int32_t l, r;
lib/libc/crypt/blowfish.c
614
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
lib/libc/crypt/blowfish.c
616
Blowfish_decipher(c, &l, &r);
lib/libc/crypt/blowfish.c
617
data[0] = l >> 24 & 0xff;
lib/libc/crypt/blowfish.c
618
data[1] = l >> 16 & 0xff;
lib/libc/crypt/blowfish.c
619
data[2] = l >> 8 & 0xff;
lib/libc/crypt/blowfish.c
620
data[3] = l & 0xff;
lib/libc/crypt/blowfish.c
630
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
lib/libc/crypt/blowfish.c
632
Blowfish_decipher(c, &l, &r);
lib/libc/crypt/blowfish.c
633
data[0] = l >> 24 & 0xff;
lib/libc/crypt/blowfish.c
634
data[1] = l >> 16 & 0xff;
lib/libc/crypt/blowfish.c
635
data[2] = l >> 8 & 0xff;
lib/libc/crypt/blowfish.c
636
data[3] = l & 0xff;
lib/libc/db/btree/bt_split.c
114
bt_rroot(t, sp, l, r) : bt_broot(t, sp, l, r)) == RET_ERROR)
lib/libc/db/btree/bt_split.c
141
lchild = l;
lib/libc/db/btree/bt_split.c
207
bt_root(t, h, &l, &r, &skip, nbytes) :
lib/libc/db/btree/bt_split.c
208
bt_page(t, h, &l, &r, &skip, nbytes);
lib/libc/db/btree/bt_split.c
246
dest = (char *)l + l->linp[NEXTINDEX(l) - 1];
lib/libc/db/btree/bt_split.c
264
dest = (char *)l + l->linp[NEXTINDEX(l) - 1];
lib/libc/db/btree/bt_split.c
287
bt_rroot(t, sp, l, r) : bt_broot(t, sp, l, r)) == RET_ERROR)
lib/libc/db/btree/bt_split.c
295
mpool_put(t->bt_mp, l, MPOOL_DIRTY);
lib/libc/db/btree/bt_split.c
309
err2: mpool_put(t->bt_mp, l, 0);
lib/libc/db/btree/bt_split.c
332
PAGE *l, *r, *tp;
lib/libc/db/btree/bt_split.c
371
if ((l = (PAGE *)malloc(t->bt_psize)) == NULL) {
lib/libc/db/btree/bt_split.c
375
memset(l, 0xff, t->bt_psize);
lib/libc/db/btree/bt_split.c
376
l->pgno = h->pgno;
lib/libc/db/btree/bt_split.c
377
l->nextpg = r->pgno;
lib/libc/db/btree/bt_split.c
378
l->prevpg = h->prevpg;
lib/libc/db/btree/bt_split.c
379
l->lower = BTDATAOFF;
lib/libc/db/btree/bt_split.c
380
l->upper = t->bt_psize;
lib/libc/db/btree/bt_split.c
381
l->flags = h->flags & P_TYPE;
lib/libc/db/btree/bt_split.c
386
free(l);
lib/libc/db/btree/bt_split.c
401
tp = bt_psplit(t, h, l, r, skip, ilen);
lib/libc/db/btree/bt_split.c
404
memmove(h, l, t->bt_psize);
lib/libc/db/btree/bt_split.c
405
if (tp == l)
lib/libc/db/btree/bt_split.c
407
free(l);
lib/libc/db/btree/bt_split.c
431
PAGE *l, *r, *tp;
lib/libc/db/btree/bt_split.c
439
if ((l = __bt_new(t, &lnpg)) == NULL ||
lib/libc/db/btree/bt_split.c
442
l->pgno = lnpg;
lib/libc/db/btree/bt_split.c
444
l->nextpg = r->pgno;
lib/libc/db/btree/bt_split.c
445
r->prevpg = l->pgno;
lib/libc/db/btree/bt_split.c
446
l->prevpg = r->nextpg = P_INVALID;
lib/libc/db/btree/bt_split.c
447
l->lower = r->lower = BTDATAOFF;
lib/libc/db/btree/bt_split.c
448
l->upper = r->upper = t->bt_psize;
lib/libc/db/btree/bt_split.c
449
l->flags = r->flags = h->flags & P_TYPE;
lib/libc/db/btree/bt_split.c
452
tp = bt_psplit(t, h, l, r, skip, ilen);
lib/libc/db/btree/bt_split.c
454
*lp = l;
lib/libc/db/btree/bt_split.c
472
bt_rroot(BTREE *t, PAGE *h, PAGE *l, PAGE *r)
lib/libc/db/btree/bt_split.c
480
l->flags & P_RLEAF ? NEXTINDEX(l) : rec_total(l), l->pgno);
lib/libc/db/btree/bt_split.c
510
bt_broot(BTREE *t, PAGE *h, PAGE *l, PAGE *r)
lib/libc/db/btree/bt_split.c
528
WR_BINTERNAL(dest, 0, l->pgno, 0);
lib/libc/db/btree/bt_split.c
585
bt_psplit(BTREE *t, PAGE *h, PAGE *l, PAGE *r, indx_t *pskip, size_t ilen)
lib/libc/db/btree/bt_split.c
654
l->linp[off] = l->upper -= nbytes;
lib/libc/db/btree/bt_split.c
655
memmove((char *)l + l->upper, src, nbytes);
lib/libc/db/btree/bt_split.c
671
l->lower += (off + 1) * sizeof(indx_t);
lib/libc/db/btree/bt_split.c
685
c->pg.pgno = l->pgno;
lib/libc/db/btree/bt_split.c
699
rval = l;
lib/libc/db/btree/bt_split.c
80
PAGE *h, *l, *r, *lchild, *rchild;
lib/libc/db/btree/bt_split.c
95
bt_root(t, sp, &l, &r, &skip, ilen) :
lib/libc/db/btree/bt_split.c
96
bt_page(t, sp, &l, &r, &skip, ilen);
lib/libc/gen/getpwent.c
212
long l;
lib/libc/gen/getpwent.c
218
l = strtol(cp, &endp, 10);
lib/libc/gen/getpwent.c
219
if (endp == cp || *endp != '\0' || l >= INT_MAX || l <= INT_MIN)
lib/libc/gen/getpwent.c
221
pw->pw_change = (time_t)l;
lib/libc/gen/getpwent.c
224
l = strtol(cp, &endp, 10);
lib/libc/gen/getpwent.c
225
if (endp == cp || *endp != '\0' || l >= INT_MAX || l <= INT_MIN)
lib/libc/gen/getpwent.c
227
pw->pw_expire = (time_t)l;
lib/libc/gen/login_cap.c
1075
#define tilde_valid(s, b, u, l, ip) \
lib/libc/gen/login_cap.c
1078
(strncmp((s)+1, u, l) == 0 && ((s)[l+1] == '/' || (s)[l+1] == '\0'))))
lib/libc/hash/sha1.c
28
# define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
lib/libc/hash/sha1.c
29
|(rol(block->l[i],8)&0x00FF00FF))
lib/libc/hash/sha1.c
31
# define blk0(i) block->l[i]
lib/libc/hash/sha1.c
33
#define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
lib/libc/hash/sha1.c
34
^block->l[(i+2)&15]^block->l[i&15],1))
lib/libc/hash/sha1.c
47
u_int32_t l[16];
lib/libc/locale/rune.c
122
size_t l, i, j;
lib/libc/locale/rune.c
137
l = re[i].re_max - re[i].re_min + 1;
lib/libc/locale/rune.c
138
re[i].re_rune_types = calloc(l, sizeof(_RuneType));
lib/libc/locale/rune.c
144
if (fread(re[i].re_rune_types, sizeof(_RuneType), l, fp) != l)
lib/libc/locale/rune.c
147
for (j = 0; j < l; j++)
lib/libc/net/ethers.c
61
long l;
lib/libc/net/ethers.c
69
l = strtol(s, &pp, 16);
lib/libc/net/ethers.c
70
if (pp == s || l > 0xFF || l < 0)
lib/libc/net/ethers.c
76
e->ether_addr_octet[i] = (u_char)l;
lib/libc/net/getprotoent.c
107
l = strtol(cp, &endp, 10);
lib/libc/net/getprotoent.c
108
if (endp == cp || *endp != '\0' || l < 0 || l >= INT_MAX)
lib/libc/net/getprotoent.c
110
pe->p_proto = l;
lib/libc/net/getprotoent.c
79
long l;
lib/libc/net/getservent.c
115
l = strtol(p, &endp, 10);
lib/libc/net/getservent.c
116
if (endp == p || *endp != '\0' || l < 0 || l > USHRT_MAX)
lib/libc/net/getservent.c
118
se->s_port = htons((in_port_t)l);
lib/libc/net/getservent.c
79
long l;
lib/libc/net/inet_ntop.c
75
int l;
lib/libc/net/inet_ntop.c
77
l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u",
lib/libc/net/inet_ntop.c
79
if (l <= 0 || l >= size) {
lib/libc/net/res_comp.c
169
int c, l;
lib/libc/net/res_comp.c
188
if ((l = dn_find(dn-1, msg, dnptrs, lpp)) >= 0) {
lib/libc/net/res_comp.c
191
*cp++ = (l >> 8) | INDIR_MASK;
lib/libc/net/res_comp.c
192
*cp++ = l % 256;
lib/libc/net/res_comp.c
219
if ((l = cp - sp - 1) == 0 && c == '\0') {
lib/libc/net/res_comp.c
223
if (l <= 0 || l > MAXLABEL) {
lib/libc/net/res_comp.c
228
*sp = l;
lib/libc/net/res_comp.c
463
__putlong(u_int32_t l, u_char *msgp)
lib/libc/net/res_comp.c
465
PUTLONG(l, msgp);
lib/libc/nls/catgets.c
44
int l, u, i, r;
lib/libc/nls/catgets.c
56
l = 0;
lib/libc/nls/catgets.c
58
while (l <= u) {
lib/libc/nls/catgets.c
59
i = (l + u) / 2;
lib/libc/nls/catgets.c
67
l = ntohl(set_hdr[i].__index);
lib/libc/nls/catgets.c
68
u = l + ntohl(set_hdr[i].__nmsgs) - 1;
lib/libc/nls/catgets.c
69
while (l <= u) {
lib/libc/nls/catgets.c
70
i = (l + u) / 2;
lib/libc/nls/catgets.c
80
l = i + 1;
lib/libc/nls/catgets.c
91
l = i + 1;
lib/libc/rpc/xdr.c
100
l = (long) *ip;
lib/libc/rpc/xdr.c
101
return (XDR_PUTLONG(xdrs, &l));
lib/libc/rpc/xdr.c
104
if (!XDR_GETLONG(xdrs, &l)) {
lib/libc/rpc/xdr.c
107
*ip = (int) l;
lib/libc/rpc/xdr.c
123
u_long l;
lib/libc/rpc/xdr.c
128
l = (u_long) *up;
lib/libc/rpc/xdr.c
129
return (XDR_PUTLONG(xdrs, (long *)&l));
lib/libc/rpc/xdr.c
132
if (!XDR_GETLONG(xdrs, (long *)&l)) {
lib/libc/rpc/xdr.c
135
*up = (u_int) l;
lib/libc/rpc/xdr.c
193
long l;
lib/libc/rpc/xdr.c
198
l = (long) *int32_p;
lib/libc/rpc/xdr.c
199
return (XDR_PUTLONG(xdrs, &l));
lib/libc/rpc/xdr.c
202
if (!XDR_GETLONG(xdrs, &l)) {
lib/libc/rpc/xdr.c
205
*int32_p = (int32_t) l;
lib/libc/rpc/xdr.c
221
u_long l;
lib/libc/rpc/xdr.c
226
l = (u_long) *u_int32_p;
lib/libc/rpc/xdr.c
227
return (XDR_PUTLONG(xdrs, (long *)&l));
lib/libc/rpc/xdr.c
230
if (!XDR_GETLONG(xdrs, (long *)&l)) {
lib/libc/rpc/xdr.c
233
*u_int32_p = (u_int32_t) l;
lib/libc/rpc/xdr.c
250
long l;
lib/libc/rpc/xdr.c
255
l = (long) *sp;
lib/libc/rpc/xdr.c
256
return (XDR_PUTLONG(xdrs, &l));
lib/libc/rpc/xdr.c
259
if (!XDR_GETLONG(xdrs, &l)) {
lib/libc/rpc/xdr.c
262
*sp = (short) l;
lib/libc/rpc/xdr.c
278
u_long l;
lib/libc/rpc/xdr.c
283
l = (u_long) *usp;
lib/libc/rpc/xdr.c
284
return (XDR_PUTLONG(xdrs, (long *)&l));
lib/libc/rpc/xdr.c
287
if (!XDR_GETLONG(xdrs, (long *)&l)) {
lib/libc/rpc/xdr.c
290
*usp = (u_short) l;
lib/libc/rpc/xdr.c
307
long l;
lib/libc/rpc/xdr.c
312
l = (long) *int16_p;
lib/libc/rpc/xdr.c
313
return (XDR_PUTLONG(xdrs, &l));
lib/libc/rpc/xdr.c
316
if (!XDR_GETLONG(xdrs, &l)) {
lib/libc/rpc/xdr.c
319
*int16_p = (int16_t) l;
lib/libc/rpc/xdr.c
334
u_long l;
lib/libc/rpc/xdr.c
339
l = (u_long) *u_int16_p;
lib/libc/rpc/xdr.c
340
return (XDR_PUTLONG(xdrs, (long *)&l));
lib/libc/rpc/xdr.c
343
if (!XDR_GETLONG(xdrs, (long *)&l)) {
lib/libc/rpc/xdr.c
346
*u_int16_p = (u_int16_t) l;
lib/libc/rpc/xdr.c
95
long l;
lib/libc/rpc/xdr_mem.c
134
int32_t l;
lib/libc/rpc/xdr_mem.c
139
memcpy(&l, xdrs->x_private, sizeof(int32_t));
lib/libc/rpc/xdr_mem.c
140
*lp = ntohl(l);
lib/libc/rpc/xdr_mem.c
148
int32_t l;
lib/libc/rpc/xdr_mem.c
153
l = htonl((u_int32_t)*lp);
lib/libc/rpc/xdr_mem.c
154
memcpy(xdrs->x_private, &l, sizeof(int32_t));
lib/libc/stdio/fmemopen.c
37
fmemopen_read(void *v, char *b, int l)
lib/libc/stdio/fmemopen.c
42
for (i = 0; i < l && i + st->pos < st->len; i++)
lib/libc/stdio/fmemopen.c
50
fmemopen_write(void *v, const char *b, int l)
lib/libc/stdio/fmemopen.c
58
for (i = 0; i < l && i + st->pos < st->size; i++)
lib/libc/stdio/open_memstream.c
39
memstream_write(void *v, const char *b, int l)
lib/libc/stdio/open_memstream.c
45
end = (st->pos + l);
lib/libc/stdio/open_memstream.c
60
for (i = 0; i < l; i++)
lib/libc/stdio/open_memstream.c
62
st->pos += l;
lib/libc/stdio/open_wmemstream.c
41
wmemstream_write(void *v, const char *b, int l)
lib/libc/stdio/open_wmemstream.c
47
end = (st->pos + l);
lib/libc/stdio/open_wmemstream.c
63
len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs);
lib/libc/stdlib/heapsort.c
137
size_t cnt, i, j, l;
lib/libc/stdlib/heapsort.c
158
for (l = nmemb / 2 + 1; --l;)
lib/libc/stdlib/heapsort.c
159
CREATE(l, nmemb, i, j, t, p, size, cnt, tmp);
lib/libc/string/memmem.c
102
while (jp+k<l) {
lib/libc/string/memmem.c
123
p = MAX(ms, l-ms-1) + 1;
lib/libc/string/memmem.c
124
} else mem0 = l-p;
lib/libc/string/memmem.c
130
if (z-h < l) return 0;
lib/libc/string/memmem.c
133
if (BITOP(byteset, h[l-1], &)) {
lib/libc/string/memmem.c
134
k = l-shift[h[l-1]];
lib/libc/string/memmem.c
142
h += l;
lib/libc/string/memmem.c
148
for (k=MAX(ms+1,mem); k<l && n[k] == h[k]; k++);
lib/libc/string/memmem.c
149
if (k < l) {
lib/libc/string/memmem.c
163
memmem(const void *h0, size_t k, const void *n0, size_t l)
lib/libc/string/memmem.c
168
if (!l) return (void *)h;
lib/libc/string/memmem.c
171
if (k<l) return 0;
lib/libc/string/memmem.c
175
if (!h || l==1) return (void *)h;
lib/libc/string/memmem.c
177
if (k<l) return 0;
lib/libc/string/memmem.c
178
if (l==2) return twobyte_memmem(h, k, n);
lib/libc/string/memmem.c
179
if (l==3) return threebyte_memmem(h, k, n);
lib/libc/string/memmem.c
180
if (l==4) return fourbyte_memmem(h, k, n);
lib/libc/string/memmem.c
182
return twoway_memmem(h, h+k, n, l);
lib/libc/string/memmem.c
70
const unsigned char *n, size_t l)
lib/libc/string/memmem.c
77
for (i=0; i<l; i++)
lib/libc/string/memmem.c
82
while (jp+k<l) {
lib/libc/string/strstr.c
100
while (jp+k<l) {
lib/libc/string/strstr.c
121
p = MAX(ms, l-ms-1) + 1;
lib/libc/string/strstr.c
122
} else mem0 = l-p;
lib/libc/string/strstr.c
131
if (z-h < l) {
lib/libc/string/strstr.c
133
size_t grow = l | 63;
lib/libc/string/strstr.c
137
if (z-h < l) return 0;
lib/libc/string/strstr.c
142
if (BITOP(byteset, h[l-1], &)) {
lib/libc/string/strstr.c
143
k = l-shift[h[l-1]];
lib/libc/string/strstr.c
151
h += l;
lib/libc/string/strstr.c
69
size_t l, ip, jp, k, p, ms, p0, mem, mem0;
lib/libc/string/strstr.c
74
for (l=0; n[l] && h[l]; l++)
lib/libc/string/strstr.c
75
BITOP(byteset, n[l], |=), shift[n[l]] = l+1;
lib/libc/string/strstr.c
76
if (n[l]) return 0; /* hit the end of h */
lib/libc/string/strstr.c
80
while (jp+k<l) {
lib/libc/time/localtime.c
1605
int_fast32_t const l = *lp;
lib/libc/time/localtime.c
1607
if ((l >= 0) ? (m > INT_FAST32_MAX - l) : (m < INT_FAST32_MIN - l))
lib/libcrypto/arc4random/getentropy_aix.c
57
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
lib/libcrypto/arc4random/getentropy_hpux.c
61
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
lib/libcrypto/arc4random/getentropy_linux.c
70
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
lib/libcrypto/arc4random/getentropy_osx.c
79
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
lib/libcrypto/arc4random/getentropy_solaris.c
65
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
lib/libcrypto/asn1/asn1_old_lib.c
174
int i, l;
lib/libcrypto/asn1/asn1_old_lib.c
178
l = length;
lib/libcrypto/asn1/asn1_old_lib.c
179
for (i = 0; l > 0; i++)
lib/libcrypto/asn1/asn1_old_lib.c
180
l >>= 8;
lib/libcrypto/asn1/asn1_old_lib.c
182
l = i;
lib/libcrypto/asn1/asn1_old_lib.c
187
p += l;
lib/libcrypto/asn1/t_crl.c
101
"", l + 1, l) <= 0)
lib/libcrypto/asn1/t_crl.c
105
"", l) <= 0)
lib/libcrypto/asn1/t_crl.c
93
long l;
lib/libcrypto/asn1/t_crl.c
98
l = X509_CRL_get_version(x);
lib/libcrypto/asn1/t_crl.c
99
if (l >= 0 && l <= 1) {
lib/libcrypto/asn1/t_req.c
100
unsigned long l;
lib/libcrypto/asn1/t_req.c
126
if ((l = X509_REQ_get_version(x)) == 0) {
lib/libcrypto/asn1/t_req.c
131
"", l) <= 0)
lib/libcrypto/asn1/t_x509.c
134
long l;
lib/libcrypto/asn1/t_x509.c
158
l = X509_get_version(x);
lib/libcrypto/asn1/t_x509.c
159
if (l >= 0 && l <= 2) {
lib/libcrypto/asn1/t_x509.c
161
"", l + 1, l) <= 0)
lib/libcrypto/asn1/t_x509.c
165
"", l) <= 0)
lib/libcrypto/asn1/t_x509.c
174
l = -1;
lib/libcrypto/asn1/t_x509.c
188
l = (long)u64;
lib/libcrypto/asn1/t_x509.c
190
if (l >= 0) {
lib/libcrypto/asn1/t_x509.c
191
if (BIO_printf(bp, " %ld (0x%lx)\n", l, l) <= 0)
lib/libcrypto/asn1/t_x509.c
448
int l = tm->length;
lib/libcrypto/asn1/t_x509.c
451
while (14 + f_len < l && f[f_len] >= '0' &&
lib/libcrypto/bf/bf_local.h
102
#define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24L)&0xff), \
lib/libcrypto/bf/bf_local.h
103
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
lib/libcrypto/bf/bf_local.h
104
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
lib/libcrypto/bf/bf_local.h
105
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libcrypto/bf/bf_local.h
96
#define n2l(c,l) (l =((unsigned long)(*((c)++)))<<24L, \
lib/libcrypto/bf/bf_local.h
97
l|=((unsigned long)(*((c)++)))<<16L, \
lib/libcrypto/bf/bf_local.h
98
l|=((unsigned long)(*((c)++)))<< 8L, \
lib/libcrypto/bf/bf_local.h
99
l|=((unsigned long)(*((c)++))))
lib/libcrypto/bf/blowfish.c
347
BF_LONG l, r;
lib/libcrypto/bf/blowfish.c
352
l = data[0];
lib/libcrypto/bf/blowfish.c
355
l ^= p[0];
lib/libcrypto/bf/blowfish.c
356
BF_ENC(r, l,s, p[1]);
lib/libcrypto/bf/blowfish.c
357
BF_ENC(l, r,s, p[2]);
lib/libcrypto/bf/blowfish.c
358
BF_ENC(r, l,s, p[3]);
lib/libcrypto/bf/blowfish.c
359
BF_ENC(l, r,s, p[4]);
lib/libcrypto/bf/blowfish.c
360
BF_ENC(r, l,s, p[5]);
lib/libcrypto/bf/blowfish.c
361
BF_ENC(l, r,s, p[6]);
lib/libcrypto/bf/blowfish.c
362
BF_ENC(r, l,s, p[7]);
lib/libcrypto/bf/blowfish.c
363
BF_ENC(l, r,s, p[8]);
lib/libcrypto/bf/blowfish.c
364
BF_ENC(r, l,s, p[9]);
lib/libcrypto/bf/blowfish.c
365
BF_ENC(l, r,s, p[10]);
lib/libcrypto/bf/blowfish.c
366
BF_ENC(r, l,s, p[11]);
lib/libcrypto/bf/blowfish.c
367
BF_ENC(l, r,s, p[12]);
lib/libcrypto/bf/blowfish.c
368
BF_ENC(r, l,s, p[13]);
lib/libcrypto/bf/blowfish.c
369
BF_ENC(l, r,s, p[14]);
lib/libcrypto/bf/blowfish.c
370
BF_ENC(r, l,s, p[15]);
lib/libcrypto/bf/blowfish.c
371
BF_ENC(l, r,s, p[16]);
lib/libcrypto/bf/blowfish.c
373
BF_ENC(r, l,s, p[17]);
lib/libcrypto/bf/blowfish.c
374
BF_ENC(l, r,s, p[18]);
lib/libcrypto/bf/blowfish.c
375
BF_ENC(r, l,s, p[19]);
lib/libcrypto/bf/blowfish.c
376
BF_ENC(l, r,s, p[20]);
lib/libcrypto/bf/blowfish.c
380
data[1] = l&0xffffffffL;
lib/libcrypto/bf/blowfish.c
390
BF_LONG l, r;
lib/libcrypto/bf/blowfish.c
395
l = data[0];
lib/libcrypto/bf/blowfish.c
398
l ^= p[BF_ROUNDS + 1];
lib/libcrypto/bf/blowfish.c
400
BF_ENC(r, l,s, p[20]);
lib/libcrypto/bf/blowfish.c
401
BF_ENC(l, r,s, p[19]);
lib/libcrypto/bf/blowfish.c
402
BF_ENC(r, l,s, p[18]);
lib/libcrypto/bf/blowfish.c
403
BF_ENC(l, r,s, p[17]);
lib/libcrypto/bf/blowfish.c
405
BF_ENC(r, l,s, p[16]);
lib/libcrypto/bf/blowfish.c
406
BF_ENC(l, r,s, p[15]);
lib/libcrypto/bf/blowfish.c
407
BF_ENC(r, l,s, p[14]);
lib/libcrypto/bf/blowfish.c
408
BF_ENC(l, r,s, p[13]);
lib/libcrypto/bf/blowfish.c
409
BF_ENC(r, l,s, p[12]);
lib/libcrypto/bf/blowfish.c
410
BF_ENC(l, r,s, p[11]);
lib/libcrypto/bf/blowfish.c
411
BF_ENC(r, l,s, p[10]);
lib/libcrypto/bf/blowfish.c
412
BF_ENC(l, r,s, p[9]);
lib/libcrypto/bf/blowfish.c
413
BF_ENC(r, l,s, p[8]);
lib/libcrypto/bf/blowfish.c
414
BF_ENC(l, r,s, p[7]);
lib/libcrypto/bf/blowfish.c
415
BF_ENC(r, l,s, p[6]);
lib/libcrypto/bf/blowfish.c
416
BF_ENC(l, r,s, p[5]);
lib/libcrypto/bf/blowfish.c
417
BF_ENC(r, l,s, p[4]);
lib/libcrypto/bf/blowfish.c
418
BF_ENC(l, r,s, p[3]);
lib/libcrypto/bf/blowfish.c
419
BF_ENC(r, l,s, p[2]);
lib/libcrypto/bf/blowfish.c
420
BF_ENC(l, r,s, p[1]);
lib/libcrypto/bf/blowfish.c
423
data[1] = l&0xffffffffL;
lib/libcrypto/bf/blowfish.c
434
long l = length;
lib/libcrypto/bf/blowfish.c
441
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/bf/blowfish.c
454
if (l != -8) {
lib/libcrypto/bf/blowfish.c
455
n2ln(in, tin0, tin1, l + 8);
lib/libcrypto/bf/blowfish.c
472
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/bf/blowfish.c
485
if (l != -8) {
lib/libcrypto/bf/blowfish.c
493
l2nn(tout0, tout1, out, l + 8);
lib/libcrypto/bf/blowfish.c
517
long l = length;
lib/libcrypto/bf/blowfish.c
523
while (l--) {
lib/libcrypto/bf/blowfish.c
543
while (l--) {
lib/libcrypto/bf/blowfish.c
573
BF_LONG l, d[2];
lib/libcrypto/bf/blowfish.c
575
n2l(in, l);
lib/libcrypto/bf/blowfish.c
576
d[0] = l;
lib/libcrypto/bf/blowfish.c
577
n2l(in, l);
lib/libcrypto/bf/blowfish.c
578
d[1] = l;
lib/libcrypto/bf/blowfish.c
583
l = d[0];
lib/libcrypto/bf/blowfish.c
584
l2n(l, out);
lib/libcrypto/bf/blowfish.c
585
l = d[1];
lib/libcrypto/bf/blowfish.c
586
l2n(l, out);
lib/libcrypto/bf/blowfish.c
587
l = d[0] = d[1] = 0;
lib/libcrypto/bf/blowfish.c
602
long l = length;
lib/libcrypto/bf/blowfish.c
617
while (l--) {
lib/libcrypto/bio/bss_conn.c
127
unsigned long l;
lib/libcrypto/bio/bss_conn.c
190
l = (unsigned long)
lib/libcrypto/bio/bss_conn.c
195
c->them.sin_addr.s_addr = htonl(l);
lib/libcrypto/bn/arch/amd64/bn_arch.h
55
bn_div_rem_words_inline(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/arch/amd64/bn_arch.h
66
: "d"(h), "a"(l), "rm"(d)
lib/libcrypto/bn/arch/i386/bn_arch.h
43
bn_div_rem_words_inline(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/arch/i386/bn_arch.h
54
: "a"(l), "d"(h), "rm"(d)
lib/libcrypto/bn/bn_div.c
112
((l & BN_MASK2h) >> BN_BITS4))))
lib/libcrypto/bn/bn_div.c
122
if (l < tl)
lib/libcrypto/bn/bn_div.c
124
l -= tl;
lib/libcrypto/bn/bn_div.c
135
h = ((h << BN_BITS4) | (l >> BN_BITS4)) & BN_MASK2;
lib/libcrypto/bn/bn_div.c
136
l = (l & BN_MASK2l) << BN_BITS4;
lib/libcrypto/bn/bn_div.c
150
bn_div_rem_words_inline(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/bn_div.c
155
q = bn_div_words(h, l, d);
lib/libcrypto/bn/bn_div.c
156
r = (l - q * d) & BN_MASK2;
lib/libcrypto/bn/bn_div.c
164
bn_div_rem_words(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/bn_div.c
167
bn_div_rem_words_inline(h, l, d, out_q, out_r);
lib/libcrypto/bn/bn_div.c
77
bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
lib/libcrypto/bn/bn_div.c
94
h = (h << i) | (l >> (BN_BITS2 - i));
lib/libcrypto/bn/bn_div.c
95
l <<= i;
lib/libcrypto/bn/bn_internal.h
440
BN_ULONG h, l;
lib/libcrypto/bn/bn_internal.h
442
bn_mulw(a, b, &h, &l);
lib/libcrypto/bn/bn_local.h
277
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d);
lib/libcrypto/bn/bn_local.h
278
void bn_div_rem_words(BN_ULONG h, BN_ULONG l, BN_ULONG d, BN_ULONG *out_q,
lib/libcrypto/bn/bn_word.c
126
BN_ULONG l, d;
lib/libcrypto/bn/bn_word.c
128
l = a->d[i];
lib/libcrypto/bn/bn_word.c
129
bn_div_rem_words(ret, l, w, &d, &ret);
lib/libcrypto/bn/bn_word.c
146
BN_ULONG l;
lib/libcrypto/bn/bn_word.c
165
a->d[i] = l = (a->d[i] + w) & BN_MASK2;
lib/libcrypto/bn/bn_word.c
166
w = (w > l) ? 1 : 0;
lib/libcrypto/bn/s2n_bignum.h
100
extern uint64_t bignum_bitfield (uint64_t k, const uint64_t *x, uint64_t n, uint64_t l);
lib/libcrypto/cast/cast.c
596
CAST_LONG l, r, t;
lib/libcrypto/cast/cast.c
600
l = data[0];
lib/libcrypto/cast/cast.c
603
E_CAST( 0, k,l, r,+,^, -);
lib/libcrypto/cast/cast.c
604
E_CAST( 1, k,r, l,^, -,+);
lib/libcrypto/cast/cast.c
605
E_CAST( 2, k,l, r, -,+,^);
lib/libcrypto/cast/cast.c
606
E_CAST( 3, k,r, l,+,^, -);
lib/libcrypto/cast/cast.c
607
E_CAST( 4, k,l, r,^, -,+);
lib/libcrypto/cast/cast.c
608
E_CAST( 5, k,r, l, -,+,^);
lib/libcrypto/cast/cast.c
609
E_CAST( 6, k,l, r,+,^, -);
lib/libcrypto/cast/cast.c
610
E_CAST( 7, k,r, l,^, -,+);
lib/libcrypto/cast/cast.c
611
E_CAST( 8, k,l, r, -,+,^);
lib/libcrypto/cast/cast.c
612
E_CAST( 9, k,r, l,+,^, -);
lib/libcrypto/cast/cast.c
613
E_CAST(10, k,l, r,^, -,+);
lib/libcrypto/cast/cast.c
614
E_CAST(11, k,r, l, -,+,^);
lib/libcrypto/cast/cast.c
616
E_CAST(12, k,l, r,+,^, -);
lib/libcrypto/cast/cast.c
617
E_CAST(13, k,r, l,^, -,+);
lib/libcrypto/cast/cast.c
618
E_CAST(14, k,l, r, -,+,^);
lib/libcrypto/cast/cast.c
619
E_CAST(15, k,r, l,+,^, -);
lib/libcrypto/cast/cast.c
622
data[1] = l&0xffffffffL;
lib/libcrypto/cast/cast.c
630
CAST_LONG l, r, t;
lib/libcrypto/cast/cast.c
634
l = data[0];
lib/libcrypto/cast/cast.c
638
E_CAST(15, k,l, r,+,^, -);
lib/libcrypto/cast/cast.c
639
E_CAST(14, k,r, l, -,+,^);
lib/libcrypto/cast/cast.c
640
E_CAST(13, k,l, r,^, -,+);
lib/libcrypto/cast/cast.c
641
E_CAST(12, k,r, l,+,^, -);
lib/libcrypto/cast/cast.c
643
E_CAST(11, k,l, r, -,+,^);
lib/libcrypto/cast/cast.c
644
E_CAST(10, k,r, l,^, -,+);
lib/libcrypto/cast/cast.c
645
E_CAST( 9, k,l, r,+,^, -);
lib/libcrypto/cast/cast.c
646
E_CAST( 8, k,r, l, -,+,^);
lib/libcrypto/cast/cast.c
647
E_CAST( 7, k,l, r,^, -,+);
lib/libcrypto/cast/cast.c
648
E_CAST( 6, k,r, l,+,^, -);
lib/libcrypto/cast/cast.c
649
E_CAST( 5, k,l, r, -,+,^);
lib/libcrypto/cast/cast.c
650
E_CAST( 4, k,r, l,^, -,+);
lib/libcrypto/cast/cast.c
651
E_CAST( 3, k,l, r,+,^, -);
lib/libcrypto/cast/cast.c
652
E_CAST( 2, k,r, l, -,+,^);
lib/libcrypto/cast/cast.c
653
E_CAST( 1, k,l, r,^, -,+);
lib/libcrypto/cast/cast.c
654
E_CAST( 0, k,r, l,+,^, -);
lib/libcrypto/cast/cast.c
656
data[1] = l&0xffffffffL;
lib/libcrypto/cast/cast.c
662
#define CAST_exp(l,A,a,n) \
lib/libcrypto/cast/cast.c
663
A[n/4]=l; \
lib/libcrypto/cast/cast.c
664
a[n+3]=(l )&0xff; \
lib/libcrypto/cast/cast.c
665
a[n+2]=(l>> 8)&0xff; \
lib/libcrypto/cast/cast.c
666
a[n+1]=(l>>16)&0xff; \
lib/libcrypto/cast/cast.c
667
a[n+0]=(l>>24)&0xff;
lib/libcrypto/cast/cast.c
680
CAST_LONG l, *K;
lib/libcrypto/cast/cast.c
702
l = X[0]^S4[x[13]]^S5[x[15]]^S6[x[12]]^S7[x[14]]^S6[x[ 8]];
lib/libcrypto/cast/cast.c
703
CAST_exp(l, Z, z, 0);
lib/libcrypto/cast/cast.c
704
l = X[2]^S4[z[ 0]]^S5[z[ 2]]^S6[z[ 1]]^S7[z[ 3]]^S7[x[10]];
lib/libcrypto/cast/cast.c
705
CAST_exp(l, Z, z, 4);
lib/libcrypto/cast/cast.c
706
l = X[3]^S4[z[ 7]]^S5[z[ 6]]^S6[z[ 5]]^S7[z[ 4]]^S4[x[ 9]];
lib/libcrypto/cast/cast.c
707
CAST_exp(l, Z, z, 8);
lib/libcrypto/cast/cast.c
708
l = X[1]^S4[z[10]]^S5[z[ 9]]^S6[z[11]]^S7[z[ 8]]^S5[x[11]];
lib/libcrypto/cast/cast.c
709
CAST_exp(l, Z,z, 12);
lib/libcrypto/cast/cast.c
716
l = Z[2]^S4[z[ 5]]^S5[z[ 7]]^S6[z[ 4]]^S7[z[ 6]]^S6[z[ 0]];
lib/libcrypto/cast/cast.c
717
CAST_exp(l, X, x, 0);
lib/libcrypto/cast/cast.c
718
l = Z[0]^S4[x[ 0]]^S5[x[ 2]]^S6[x[ 1]]^S7[x[ 3]]^S7[z[ 2]];
lib/libcrypto/cast/cast.c
719
CAST_exp(l, X, x, 4);
lib/libcrypto/cast/cast.c
720
l = Z[1]^S4[x[ 7]]^S5[x[ 6]]^S6[x[ 5]]^S7[x[ 4]]^S4[z[ 1]];
lib/libcrypto/cast/cast.c
721
CAST_exp(l, X, x, 8);
lib/libcrypto/cast/cast.c
722
l = Z[3]^S4[x[10]]^S5[x[ 9]]^S6[x[11]]^S7[x[ 8]]^S5[z[ 3]];
lib/libcrypto/cast/cast.c
723
CAST_exp(l, X,x, 12);
lib/libcrypto/cast/cast.c
730
l = X[0]^S4[x[13]]^S5[x[15]]^S6[x[12]]^S7[x[14]]^S6[x[ 8]];
lib/libcrypto/cast/cast.c
731
CAST_exp(l, Z, z, 0);
lib/libcrypto/cast/cast.c
732
l = X[2]^S4[z[ 0]]^S5[z[ 2]]^S6[z[ 1]]^S7[z[ 3]]^S7[x[10]];
lib/libcrypto/cast/cast.c
733
CAST_exp(l, Z, z, 4);
lib/libcrypto/cast/cast.c
734
l = X[3]^S4[z[ 7]]^S5[z[ 6]]^S6[z[ 5]]^S7[z[ 4]]^S4[x[ 9]];
lib/libcrypto/cast/cast.c
735
CAST_exp(l, Z, z, 8);
lib/libcrypto/cast/cast.c
736
l = X[1]^S4[z[10]]^S5[z[ 9]]^S6[z[11]]^S7[z[ 8]]^S5[x[11]];
lib/libcrypto/cast/cast.c
737
CAST_exp(l, Z,z, 12);
lib/libcrypto/cast/cast.c
744
l = Z[2]^S4[z[ 5]]^S5[z[ 7]]^S6[z[ 4]]^S7[z[ 6]]^S6[z[ 0]];
lib/libcrypto/cast/cast.c
745
CAST_exp(l, X, x, 0);
lib/libcrypto/cast/cast.c
746
l = Z[0]^S4[x[ 0]]^S5[x[ 2]]^S6[x[ 1]]^S7[x[ 3]]^S7[z[ 2]];
lib/libcrypto/cast/cast.c
747
CAST_exp(l, X, x, 4);
lib/libcrypto/cast/cast.c
748
l = Z[1]^S4[x[ 7]]^S5[x[ 6]]^S6[x[ 5]]^S7[x[ 4]]^S4[z[ 1]];
lib/libcrypto/cast/cast.c
749
CAST_exp(l, X, x, 8);
lib/libcrypto/cast/cast.c
750
l = Z[3]^S4[x[10]]^S5[x[ 9]]^S6[x[11]]^S7[x[ 8]]^S5[z[ 3]];
lib/libcrypto/cast/cast.c
751
CAST_exp(l, X,x, 12);
lib/libcrypto/cast/cast.c
775
long l = length;
lib/libcrypto/cast/cast.c
782
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/cast/cast.c
795
if (l != -8) {
lib/libcrypto/cast/cast.c
796
n2ln(in, tin0, tin1, l + 8);
lib/libcrypto/cast/cast.c
813
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/cast/cast.c
826
if (l != -8) {
lib/libcrypto/cast/cast.c
834
l2nn(tout0, tout1, out, l + 8);
lib/libcrypto/cast/cast.c
859
long l = length;
lib/libcrypto/cast/cast.c
865
while (l--) {
lib/libcrypto/cast/cast.c
885
while (l--) {
lib/libcrypto/cast/cast.c
915
CAST_LONG l, d[2];
lib/libcrypto/cast/cast.c
917
n2l(in, l);
lib/libcrypto/cast/cast.c
918
d[0] = l;
lib/libcrypto/cast/cast.c
919
n2l(in, l);
lib/libcrypto/cast/cast.c
920
d[1] = l;
lib/libcrypto/cast/cast.c
925
l = d[0];
lib/libcrypto/cast/cast.c
926
l2n(l, out);
lib/libcrypto/cast/cast.c
927
l = d[1];
lib/libcrypto/cast/cast.c
928
l2n(l, out);
lib/libcrypto/cast/cast.c
929
l = d[0] = d[1] = 0;
lib/libcrypto/cast/cast.c
945
long l = length;
lib/libcrypto/cast/cast.c
960
while (l--) {
lib/libcrypto/cast/cast_local.h
139
#define n2l(c,l) (l =((unsigned long)(*((c)++)))<<24L, \
lib/libcrypto/cast/cast_local.h
140
l|=((unsigned long)(*((c)++)))<<16L, \
lib/libcrypto/cast/cast_local.h
141
l|=((unsigned long)(*((c)++)))<< 8L, \
lib/libcrypto/cast/cast_local.h
142
l|=((unsigned long)(*((c)++))))
lib/libcrypto/cast/cast_local.h
145
#define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24L)&0xff), \
lib/libcrypto/cast/cast_local.h
146
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
lib/libcrypto/cast/cast_local.h
147
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
lib/libcrypto/cast/cast_local.h
148
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libcrypto/cast/cast_local.h
63
#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \
lib/libcrypto/cast/cast_local.h
64
l|=((unsigned long)(*((c)++)))<< 8L, \
lib/libcrypto/cast/cast_local.h
65
l|=((unsigned long)(*((c)++)))<<16L, \
lib/libcrypto/cast/cast_local.h
66
l|=((unsigned long)(*((c)++)))<<24L)
lib/libcrypto/cast/cast_local.h
86
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
lib/libcrypto/cast/cast_local.h
87
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
lib/libcrypto/cast/cast_local.h
88
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
lib/libcrypto/cast/cast_local.h
89
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
lib/libcrypto/chacha/chacha.c
46
int i, l;
lib/libcrypto/chacha/chacha.c
51
l = (len > ctx->unused) ? ctx->unused : len;
lib/libcrypto/chacha/chacha.c
52
for (i = 0; i < l; i++)
lib/libcrypto/chacha/chacha.c
54
ctx->unused -= l;
lib/libcrypto/chacha/chacha.c
55
len -= l;
lib/libcrypto/cmac/cmac.c
103
kn[i] = (l[i] << 1) | (l[i + 1] >> 7);
lib/libcrypto/cmac/cmac.c
106
mask = 0 - (l[0] >> 7);
lib/libcrypto/cmac/cmac.c
107
kn[block_size - 1] = (l[block_size - 1] << 1) ^ (Rb & mask);
lib/libcrypto/cmac/cmac.c
93
make_kn(unsigned char *kn, const unsigned char *l, int block_size)
lib/libcrypto/crypto.h
346
void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line));
lib/libcrypto/crypto.h
347
void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line));
lib/libcrypto/crypto.h
349
void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line);
lib/libcrypto/crypto.h
350
void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file, int line);
lib/libcrypto/crypto_internal.h
261
crypto_add_u32dw_u64(uint32_t *h, uint32_t *l, uint64_t v)
lib/libcrypto/crypto_internal.h
263
v += ((uint64_t)*h << 32) | *l;
lib/libcrypto/crypto_internal.h
265
*l = v;
lib/libcrypto/crypto_legacy.c
272
int mode, struct CRYPTO_dynlock_value *l, const char *file, int line))
lib/libcrypto/crypto_legacy.c
280
struct CRYPTO_dynlock_value *l, const char *file, int line))
lib/libcrypto/crypto_legacy.c
295
struct CRYPTO_dynlock_value *l, const char *file, int line)
lib/libcrypto/crypto_legacy.c
303
struct CRYPTO_dynlock_value *l, const char *file, int line)
lib/libcrypto/ct/ct_local.h
81
#define l2n3(l,c) ((c[0]=(unsigned char)(((l)>>16)&0xff), \
lib/libcrypto/ct/ct_local.h
82
c[1]=(unsigned char)(((l)>> 8)&0xff), \
lib/libcrypto/ct/ct_local.h
83
c[2]=(unsigned char)(((l) )&0xff)),c+=3)
lib/libcrypto/ct/ct_local.h
85
#define l2n8(l,c) (*((c)++)=(unsigned char)(((l)>>56)&0xff), \
lib/libcrypto/ct/ct_local.h
86
*((c)++)=(unsigned char)(((l)>>48)&0xff), \
lib/libcrypto/ct/ct_local.h
87
*((c)++)=(unsigned char)(((l)>>40)&0xff), \
lib/libcrypto/ct/ct_local.h
88
*((c)++)=(unsigned char)(((l)>>32)&0xff), \
lib/libcrypto/ct/ct_local.h
89
*((c)++)=(unsigned char)(((l)>>24)&0xff), \
lib/libcrypto/ct/ct_local.h
90
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libcrypto/ct/ct_local.h
91
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libcrypto/ct/ct_local.h
92
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libcrypto/des/des.c
1001
if (l != -8) {
lib/libcrypto/des/des.c
1009
l2cn(tout0, tout1, out, l + 8);
lib/libcrypto/des/des.c
108
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des.c
121
if (l != -8) {
lib/libcrypto/des/des.c
129
l2cn(tout0, tout1, out, l + 8);
lib/libcrypto/des/des.c
149
long l = length;
lib/libcrypto/des/des.c
156
while (l--) {
lib/libcrypto/des/des.c
178
while (l--) {
lib/libcrypto/des/des.c
217
unsigned long l = length, n = ((unsigned int)numbits + 7)/8;
lib/libcrypto/des/des.c
229
while (l >= n) {
lib/libcrypto/des/des.c
230
l -= n;
lib/libcrypto/des/des.c
271
while (l >= n) {
lib/libcrypto/des/des.c
272
l -= n;
lib/libcrypto/des/des.c
331
long l = length;
lib/libcrypto/des/des.c
338
while (l--) {
lib/libcrypto/des/des.c
358
while (l--) {
lib/libcrypto/des/des.c
398
unsigned long l = length;
lib/libcrypto/des/des.c
415
while (l >= (unsigned long)n) {
lib/libcrypto/des/des.c
416
l -= n;
lib/libcrypto/des/des.c
461
while (l >= (unsigned long)n) {
lib/libcrypto/des/des.c
462
l -= n;
lib/libcrypto/des/des.c
544
DES_LONG l;
lib/libcrypto/des/des.c
549
c2l(in, l);
lib/libcrypto/des/des.c
550
ll[0] = l;
lib/libcrypto/des/des.c
551
c2l(in, l);
lib/libcrypto/des/des.c
552
ll[1] = l;
lib/libcrypto/des/des.c
554
l = ll[0];
lib/libcrypto/des/des.c
555
l2c(l, out);
lib/libcrypto/des/des.c
556
l = ll[1];
lib/libcrypto/des/des.c
557
l2c(l, out);
lib/libcrypto/des/des.c
558
l = ll[0] = ll[1] = 0;
lib/libcrypto/des/des.c
583
long l = length;
lib/libcrypto/des/des.c
595
for (l -= 8; l >= -7; l -= 8) {
lib/libcrypto/des/des.c
602
if (l < 0) {
lib/libcrypto/des/des.c
603
c2ln(in, tin0, tin1, l + 8);
lib/libcrypto/des/des.c
640
for (l -= 8; l >= -7; l -= 8) {
lib/libcrypto/des/des.c
667
if (l < 0) {
lib/libcrypto/des/des.c
668
l2cn(tout0, tout1, out, l + 8);
lib/libcrypto/des/des.c
704
long l = length;
lib/libcrypto/des/des.c
71
long l = length;
lib/libcrypto/des/des.c
719
while (l--) {
lib/libcrypto/des/des.c
756
long l = length;
lib/libcrypto/des/des.c
771
while (l--) {
lib/libcrypto/des/des.c
80
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des.c
809
long l = length;
lib/libcrypto/des/des.c
835
while (l-- > 0) {
lib/libcrypto/des/des.c
93
if (l != -8) {
lib/libcrypto/des/des.c
94
c2ln(in, tin0, tin1, l + 8);
lib/libcrypto/des/des.c
941
long l = length;
lib/libcrypto/des/des.c
957
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des.c
970
if (l != -8) {
lib/libcrypto/des/des.c
971
c2ln(in, tin0, tin1, l + 8);
lib/libcrypto/des/des.c
988
for (l -= 8; l > 0; l -= 8) {
lib/libcrypto/des/des.h
103
#define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \
lib/libcrypto/des/des.h
104
DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
lib/libcrypto/des/des.h
106
#define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \
lib/libcrypto/des/des.h
107
DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
lib/libcrypto/des/des.h
109
#define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \
lib/libcrypto/des/des.h
110
DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
lib/libcrypto/des/des_cksum.c
129
long l;
lib/libcrypto/des/des_cksum.c
144
l = length;
lib/libcrypto/des/des_cksum.c
145
while (l > 0) {
lib/libcrypto/des/des_cksum.c
146
if (l > 1) {
lib/libcrypto/des/des_cksum.c
149
l--;
lib/libcrypto/des/des_cksum.c
152
l--;
lib/libcrypto/des/des_cksum.c
82
long l = length;
lib/libcrypto/des/des_cksum.c
89
for (; l > 0; l -= 8) {
lib/libcrypto/des/des_cksum.c
90
if (l >= 8) {
lib/libcrypto/des/des_cksum.c
94
c2ln(in, tin0, tin1, l);
lib/libcrypto/des/des_enc.c
212
DES_LONG l, r, t, u;
lib/libcrypto/des/des_enc.c
217
l = data[1];
lib/libcrypto/des/des_enc.c
219
IP(r, l);
lib/libcrypto/des/des_enc.c
229
l = ROTATE(l, 29) & 0xffffffffL;
lib/libcrypto/des/des_enc.c
235
D_ENCRYPT(l, r, i + 0);
lib/libcrypto/des/des_enc.c
236
D_ENCRYPT(r, l, i + 2);
lib/libcrypto/des/des_enc.c
237
D_ENCRYPT(l, r, i + 4);
lib/libcrypto/des/des_enc.c
238
D_ENCRYPT(r, l, i + 6);
lib/libcrypto/des/des_enc.c
242
D_ENCRYPT(l, r, i - 2);
lib/libcrypto/des/des_enc.c
243
D_ENCRYPT(r, l, i - 4);
lib/libcrypto/des/des_enc.c
244
D_ENCRYPT(l, r, i - 6);
lib/libcrypto/des/des_enc.c
245
D_ENCRYPT(r, l, i - 8);
lib/libcrypto/des/des_enc.c
250
l = ROTATE(l, 3) & 0xffffffffL;
lib/libcrypto/des/des_enc.c
253
FP(r, l);
lib/libcrypto/des/des_enc.c
254
data[0] = l;
lib/libcrypto/des/des_enc.c
256
l = r = t = u = 0;
lib/libcrypto/des/des_enc.c
263
DES_LONG l, r, t, u;
lib/libcrypto/des/des_enc.c
268
l = data[1];
lib/libcrypto/des/des_enc.c
278
l = ROTATE(l, 29) & 0xffffffffL;
lib/libcrypto/des/des_enc.c
285
D_ENCRYPT(l, r, i + 0);
lib/libcrypto/des/des_enc.c
286
D_ENCRYPT(r, l, i + 2);
lib/libcrypto/des/des_enc.c
287
D_ENCRYPT(l, r, i + 4);
lib/libcrypto/des/des_enc.c
288
D_ENCRYPT(r, l, i + 6);
lib/libcrypto/des/des_enc.c
292
D_ENCRYPT(l, r, i - 2);
lib/libcrypto/des/des_enc.c
293
D_ENCRYPT(r, l, i - 4);
lib/libcrypto/des/des_enc.c
294
D_ENCRYPT(l, r, i - 6);
lib/libcrypto/des/des_enc.c
295
D_ENCRYPT(r, l, i - 8);
lib/libcrypto/des/des_enc.c
299
data[0] = ROTATE(l, 3) & 0xffffffffL;
lib/libcrypto/des/des_enc.c
301
l = r = t = u = 0;
lib/libcrypto/des/des_enc.c
309
DES_LONG l, r;
lib/libcrypto/des/des_enc.c
311
l = data[0];
lib/libcrypto/des/des_enc.c
313
IP(l, r);
lib/libcrypto/des/des_enc.c
314
data[0] = l;
lib/libcrypto/des/des_enc.c
319
l = data[0];
lib/libcrypto/des/des_enc.c
321
FP(r, l);
lib/libcrypto/des/des_enc.c
322
data[0] = l;
lib/libcrypto/des/des_enc.c
331
DES_LONG l, r;
lib/libcrypto/des/des_enc.c
333
l = data[0];
lib/libcrypto/des/des_enc.c
335
IP(l, r);
lib/libcrypto/des/des_enc.c
336
data[0] = l;
lib/libcrypto/des/des_enc.c
341
l = data[0];
lib/libcrypto/des/des_enc.c
343
FP(r, l);
lib/libcrypto/des/des_enc.c
344
data[0] = l;
lib/libcrypto/des/des_enc.c
357
long l = length;
lib/libcrypto/des/des_enc.c
366
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des_enc.c
379
if (l != -8) {
lib/libcrypto/des/des_enc.c
380
c2ln(in, tin0, tin1, l + 8);
lib/libcrypto/des/des_enc.c
397
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des_enc.c
410
if (l != -8) {
lib/libcrypto/des/des_enc.c
418
l2cn(tout0, tout1, out, l + 8);
lib/libcrypto/des/des_enc.c
441
long l = length;
lib/libcrypto/des/des_enc.c
452
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des_enc.c
467
if (l != -8) {
lib/libcrypto/des/des_enc.c
468
c2ln(in, tin0, tin1, l + 8);
lib/libcrypto/des/des_enc.c
489
for (l -= 8; l >= 0; l -= 8) {
lib/libcrypto/des/des_enc.c
509
if (l != -8) {
lib/libcrypto/des/des_enc.c
524
l2cn(tout0, tout1, out, l + 8);
lib/libcrypto/des/des_fcrypt.c
105
D_ENCRYPT(l, r, i + 0);
lib/libcrypto/des/des_fcrypt.c
106
D_ENCRYPT(r, l, i + 2);
lib/libcrypto/des/des_fcrypt.c
107
D_ENCRYPT(l, r, i + 4);
lib/libcrypto/des/des_fcrypt.c
108
D_ENCRYPT(r, l, i + 6);
lib/libcrypto/des/des_fcrypt.c
110
t = l;
lib/libcrypto/des/des_fcrypt.c
111
l = r;
lib/libcrypto/des/des_fcrypt.c
114
l = ROTATE(l, 3) & 0xffffffffL;
lib/libcrypto/des/des_fcrypt.c
117
PERM_OP(l, r, t, 1, 0x55555555L);
lib/libcrypto/des/des_fcrypt.c
118
PERM_OP(r, l, t, 8, 0x00ff00ffL);
lib/libcrypto/des/des_fcrypt.c
119
PERM_OP(l, r, t, 2, 0x33333333L);
lib/libcrypto/des/des_fcrypt.c
120
PERM_OP(r, l, t, 16, 0x0000ffffL);
lib/libcrypto/des/des_fcrypt.c
121
PERM_OP(l, r, t, 4, 0x0f0f0f0fL);
lib/libcrypto/des/des_fcrypt.c
124
out[1] = l;
lib/libcrypto/des/des_fcrypt.c
91
DES_LONG l, r, t, u;
lib/libcrypto/des/des_fcrypt.c
96
l = 0;
lib/libcrypto/des/des_local.h
100
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
lib/libcrypto/des/des_local.h
101
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
lib/libcrypto/des/des_local.h
198
#define IP(l,r) \
lib/libcrypto/des/des_local.h
201
PERM_OP(r,l,tt, 4,0x0f0f0f0fL); \
lib/libcrypto/des/des_local.h
202
PERM_OP(l,r,tt,16,0x0000ffffL); \
lib/libcrypto/des/des_local.h
203
PERM_OP(r,l,tt, 2,0x33333333L); \
lib/libcrypto/des/des_local.h
204
PERM_OP(l,r,tt, 8,0x00ff00ffL); \
lib/libcrypto/des/des_local.h
205
PERM_OP(r,l,tt, 1,0x55555555L); \
lib/libcrypto/des/des_local.h
208
#define FP(l,r) \
lib/libcrypto/des/des_local.h
211
PERM_OP(l,r,tt, 1,0x55555555L); \
lib/libcrypto/des/des_local.h
212
PERM_OP(r,l,tt, 8,0x00ff00ffL); \
lib/libcrypto/des/des_local.h
213
PERM_OP(l,r,tt, 2,0x33333333L); \
lib/libcrypto/des/des_local.h
214
PERM_OP(r,l,tt,16,0x0000ffffL); \
lib/libcrypto/des/des_local.h
215
PERM_OP(l,r,tt, 4,0x0f0f0f0fL); \
lib/libcrypto/des/des_local.h
77
#define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \
lib/libcrypto/des/des_local.h
78
l|=((DES_LONG)(*((c)++)))<< 8L, \
lib/libcrypto/des/des_local.h
79
l|=((DES_LONG)(*((c)++)))<<16L, \
lib/libcrypto/des/des_local.h
80
l|=((DES_LONG)(*((c)++)))<<24L)
lib/libcrypto/des/des_local.h
98
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
lib/libcrypto/des/des_local.h
99
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
lib/libcrypto/dh/dh_key.c
109
l = dh->length ? dh->length : BN_num_bits(dh->p) - 1;
lib/libcrypto/dh/dh_key.c
110
if (!BN_rand(priv_key, l, 0, 0))
lib/libcrypto/dh/dh_key.c
72
unsigned l;
lib/libcrypto/dsa/dsa_ossl.c
208
BIGNUM *k = NULL, *l = NULL, *m = NULL, *kinv = NULL, *r = NULL;
lib/libcrypto/dsa/dsa_ossl.c
228
if ((l = BN_CTX_get(ctx)) == NULL)
lib/libcrypto/dsa/dsa_ossl.c
236
!BN_set_bit(l, q_bits) ||
lib/libcrypto/dsa/dsa_ossl.c
266
if (!BN_add(l, k, dsa->q) ||
lib/libcrypto/dsa/dsa_ossl.c
267
!BN_add(m, l, dsa->q) ||
lib/libcrypto/dsa/dsa_ossl.c
268
!bn_copy(k, BN_num_bits(l) > q_bits ? l : m))
lib/libcrypto/ec/ec.h
276
#define EC_KEY_get_ex_new_index(l, p, newf, dupf, freef) \
lib/libcrypto/ec/ec.h
277
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_EC_KEY, l, p, newf, dupf, freef)
lib/libcrypto/err/err.c
1000
l = ERR_GET_LIB(e);
lib/libcrypto/err/err.c
1002
d.error = ERR_PACK(l, 0, r);
lib/libcrypto/err/err.c
1017
int l, f, r, ret;
lib/libcrypto/err/err.c
1019
l = ERR_GET_LIB(e);
lib/libcrypto/err/err.c
1028
(void) snprintf(lsbuf, sizeof(lsbuf), "lib(%d)", l);
lib/libcrypto/err/err.c
256
unsigned long ret, l;
lib/libcrypto/err/err.c
258
l = a->error;
lib/libcrypto/err/err.c
259
ret = l^ERR_GET_LIB(l)^ERR_GET_FUNC(l);
lib/libcrypto/err/err.c
966
unsigned long l;
lib/libcrypto/err/err.c
971
l = ERR_GET_LIB(e);
lib/libcrypto/err/err.c
972
d.error = ERR_PACK(l, 0, 0);
lib/libcrypto/err/err.c
983
unsigned long l, f;
lib/libcrypto/err/err.c
985
l = ERR_GET_LIB(e);
lib/libcrypto/err/err.c
987
d.error = ERR_PACK(l, f, 0);
lib/libcrypto/err/err.c
998
unsigned long l, r;
lib/libcrypto/err/err.h
200
#define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)<<24L)| \
lib/libcrypto/err/err.h
203
#define ERR_GET_LIB(l) (int)((((unsigned long)l)>>24L)&0xffL)
lib/libcrypto/err/err.h
204
#define ERR_GET_FUNC(l) (int)((((unsigned long)l)>>12L)&0xfffL)
lib/libcrypto/err/err.h
205
#define ERR_GET_REASON(l) (int)((l)&0xfffL)
lib/libcrypto/err/err.h
206
#define ERR_FATAL_ERROR(l) (int)((l)&ERR_R_FATAL)
lib/libcrypto/err/err_local.h
121
#define ERR_PUT_ERROR(l, r) ERR_PUT_error((l), 0xfff, (r), OPENSSL_FILE, OPENSSL_LINE)
lib/libcrypto/err/err_prn.c
74
unsigned long l;
lib/libcrypto/err/err_prn.c
82
while ((l = ERR_get_error_line_data(&file, &line, &data,
lib/libcrypto/err/err_prn.c
84
ERR_error_string_n(l, buf, sizeof buf);
lib/libcrypto/evp/e_rc2.c
345
int l;
lib/libcrypto/evp/e_rc2.c
349
l = EVP_CIPHER_CTX_iv_length(c);
lib/libcrypto/evp/e_rc2.c
350
if (l < 0 || l > sizeof(iv)) {
lib/libcrypto/evp/e_rc2.c
354
i = ASN1_TYPE_get_int_octetstring(type, &num, iv, l);
lib/libcrypto/evp/e_rc2.c
355
if (i != l)
lib/libcrypto/evp/evp.h
415
#define EVP_ENCODE_LENGTH(l) (((l+2)/3*4)+(l/48+1)*2+80)
lib/libcrypto/evp/evp.h
416
#define EVP_DECODE_LENGTH(l) ((l+3)/4*3+80)
lib/libcrypto/evp/evp_encode.c
219
unsigned long l;
lib/libcrypto/evp/evp_encode.c
223
l = (((unsigned long)f[0]) << 16L) |
lib/libcrypto/evp/evp_encode.c
225
*(t++) = conv_bin2ascii(l >> 18L);
lib/libcrypto/evp/evp_encode.c
226
*(t++) = conv_bin2ascii(l >> 12L);
lib/libcrypto/evp/evp_encode.c
227
*(t++) = conv_bin2ascii(l >> 6L);
lib/libcrypto/evp/evp_encode.c
228
*(t++) = conv_bin2ascii(l );
lib/libcrypto/evp/evp_encode.c
230
l = ((unsigned long)f[0]) << 16L;
lib/libcrypto/evp/evp_encode.c
232
l |= ((unsigned long)f[1] << 8L);
lib/libcrypto/evp/evp_encode.c
234
*(t++) = conv_bin2ascii(l >> 18L);
lib/libcrypto/evp/evp_encode.c
235
*(t++) = conv_bin2ascii(l >> 12L);
lib/libcrypto/evp/evp_encode.c
236
*(t++) = (i == 1) ? '=' : conv_bin2ascii(l >> 6L);
lib/libcrypto/evp/evp_encode.c
371
unsigned long l;
lib/libcrypto/evp/evp_encode.c
395
l = ((((unsigned long)a) << 18L) |
lib/libcrypto/evp/evp_encode.c
399
*(t++) = (unsigned char)(l >> 16L) & 0xff;
lib/libcrypto/evp/evp_encode.c
400
*(t++) = (unsigned char)(l >> 8L) & 0xff;
lib/libcrypto/evp/evp_encode.c
401
*(t++) = (unsigned char)(l) & 0xff;
lib/libcrypto/hmac/hm_pmeth.c
179
int l = EVP_MD_CTX_size(mctx);
lib/libcrypto/hmac/hm_pmeth.c
181
if (l < 0)
lib/libcrypto/hmac/hm_pmeth.c
183
*siglen = l;
lib/libcrypto/idea/idea.c
107
for (l -= 8; l >= 0; l -= 8)
lib/libcrypto/idea/idea.c
121
if (l != -8) {
lib/libcrypto/idea/idea.c
129
l2nn(tout0, tout1, out, l + 8);
lib/libcrypto/idea/idea.c
190
long l = length;
lib/libcrypto/idea/idea.c
196
while (l--) {
lib/libcrypto/idea/idea.c
216
while (l--) {
lib/libcrypto/idea/idea.c
273
long l = length;
lib/libcrypto/idea/idea.c
288
while (l--) {
lib/libcrypto/idea/idea.c
68
long l = length;
lib/libcrypto/idea/idea.c
75
for (l -= 8; l >= 0; l -= 8)
lib/libcrypto/idea/idea.c
89
if (l != -8) {
lib/libcrypto/idea/idea.c
90
n2ln(in, tin0, tin1, l + 8);
lib/libcrypto/idea/idea_local.h
117
#define n2l(c,l) (l =((unsigned long)(*((c)++)))<<24L, \
lib/libcrypto/idea/idea_local.h
118
l|=((unsigned long)(*((c)++)))<<16L, \
lib/libcrypto/idea/idea_local.h
119
l|=((unsigned long)(*((c)++)))<< 8L, \
lib/libcrypto/idea/idea_local.h
120
l|=((unsigned long)(*((c)++))))
lib/libcrypto/idea/idea_local.h
123
#define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24L)&0xff), \
lib/libcrypto/idea/idea_local.h
124
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
lib/libcrypto/idea/idea_local.h
125
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
lib/libcrypto/idea/idea_local.h
126
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libcrypto/idea/idea_local.h
129
#define s2n(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
lib/libcrypto/idea/idea_local.h
130
*((c)++)=(unsigned char)(((l)>> 8L)&0xff))
lib/libcrypto/idea/idea_local.h
133
#define n2s(c,l) (l =((IDEA_INT)(*((c)++)))<< 8L, \
lib/libcrypto/idea/idea_local.h
134
l|=((IDEA_INT)(*((c)++))) )
lib/libcrypto/md4/md4.c
246
MD4_LONG l;
lib/libcrypto/md4/md4.c
252
l = (c->Nl + (((MD4_LONG)len) << 3))&0xffffffffUL;
lib/libcrypto/md4/md4.c
255
if (l < c->Nl) /* overflow */
lib/libcrypto/md4/md4.c
258
c->Nl = l;
lib/libcrypto/modes/cfb128.c
109
while (l < len) {
lib/libcrypto/modes/cfb128.c
113
out[l] = ivec[n] ^= in[l];
lib/libcrypto/modes/cfb128.c
114
++l;
lib/libcrypto/modes/cfb128.c
159
while (l < len) {
lib/libcrypto/modes/cfb128.c
164
out[l] = ivec[n] ^ (c = in[l]);
lib/libcrypto/modes/cfb128.c
166
++l;
lib/libcrypto/modes/cfb128.c
69
size_t l = 0;
lib/libcrypto/modes/ctr128.c
119
size_t l = 0;
lib/libcrypto/modes/ctr128.c
160
while (l < len) {
lib/libcrypto/modes/ctr128.c
165
out[l] = in[l] ^ ecount_buf[n];
lib/libcrypto/modes/ctr128.c
166
++l;
lib/libcrypto/modes/ofb128.c
107
while (l < len) {
lib/libcrypto/modes/ofb128.c
111
out[l] = in[l] ^ ivec[n];
lib/libcrypto/modes/ofb128.c
112
++l;
lib/libcrypto/modes/ofb128.c
69
size_t l = 0;
lib/libcrypto/objects/obj_dat.c
485
char *o, *s, *l = NULL;
lib/libcrypto/objects/obj_dat.c
505
l = s;
lib/libcrypto/objects/obj_dat.c
506
while ((*l != '\0') &&
lib/libcrypto/objects/obj_dat.c
507
!isspace((unsigned char)*l))
lib/libcrypto/objects/obj_dat.c
508
l++;
lib/libcrypto/objects/obj_dat.c
509
if (*l != '\0') {
lib/libcrypto/objects/obj_dat.c
510
*(l++) = '\0';
lib/libcrypto/objects/obj_dat.c
511
while (isspace((unsigned char)*l))
lib/libcrypto/objects/obj_dat.c
512
l++;
lib/libcrypto/objects/obj_dat.c
513
if (*l == '\0')
lib/libcrypto/objects/obj_dat.c
514
l = NULL;
lib/libcrypto/objects/obj_dat.c
516
l = NULL;
lib/libcrypto/objects/obj_dat.c
522
if (!OBJ_create(o, s, l))
lib/libcrypto/ocsp/ocsp_prn.c
155
long l;
lib/libcrypto/ocsp/ocsp_prn.c
163
l = ASN1_INTEGER_get(inf->version);
lib/libcrypto/ocsp/ocsp_prn.c
164
if (BIO_printf(bp, " Version: %lu (0x%lx)", l+1, l) <= 0)
lib/libcrypto/ocsp/ocsp_prn.c
207
long l;
lib/libcrypto/ocsp/ocsp_prn.c
219
l = ASN1_ENUMERATED_get(o->responseStatus);
lib/libcrypto/ocsp/ocsp_prn.c
221
OCSP_response_status_str(l), l) <= 0)
lib/libcrypto/ocsp/ocsp_prn.c
238
l = ASN1_INTEGER_get(rd->version);
lib/libcrypto/ocsp/ocsp_prn.c
239
if (BIO_printf(bp, "\n Version: %lu (0x%lx)\n", l+1, l) <= 0)
lib/libcrypto/ocsp/ocsp_prn.c
279
l = ASN1_ENUMERATED_get(rev->revocationReason);
lib/libcrypto/ocsp/ocsp_prn.c
282
OCSP_crl_reason_str(l), l) <= 0)
lib/libcrypto/pem/pem_lib.c
100
if (l > (size_t)num)
lib/libcrypto/pem/pem_lib.c
101
l = (size_t)num;
lib/libcrypto/pem/pem_lib.c
102
memcpy(buf, key, l);
lib/libcrypto/pem/pem_lib.c
103
return (int)l;
lib/libcrypto/pem/pem_lib.c
117
l = strlen(buf);
lib/libcrypto/pem/pem_lib.c
118
if (l < MIN_LENGTH) {
lib/libcrypto/pem/pem_lib.c
125
return (int)l;
lib/libcrypto/pem/pem_lib.c
91
size_t l;
lib/libcrypto/pem/pem_lib.c
99
l = strlen(key);
lib/libcrypto/rc2/rc2.c
150
unsigned long l;
lib/libcrypto/rc2/rc2.c
152
l = d[0];
lib/libcrypto/rc2/rc2.c
153
x0 = (RC2_INT)l & 0xffff;
lib/libcrypto/rc2/rc2.c
154
x1 = (RC2_INT)(l >> 16L);
lib/libcrypto/rc2/rc2.c
155
l = d[1];
lib/libcrypto/rc2/rc2.c
156
x2 = (RC2_INT)l & 0xffff;
lib/libcrypto/rc2/rc2.c
157
x3 = (RC2_INT)(l >> 16L);
lib/libcrypto/rc2/rc2.c
198
unsigned long l;
lib/libcrypto/rc2/rc2.c
200
l = d[0];
lib/libcrypto/rc2/rc2.c
201
x0 = (RC2_INT)l & 0xffff;
lib/libcrypto/rc2/rc2.c
202
x1 = (RC2_INT)(l >> 16L);
lib/libcrypto/rc2/rc2.c
203
l = d[1];
lib/libcrypto/rc2/rc2.c
204
x2 = (RC2_INT)l & 0xffff;
lib/libcrypto/rc2/rc2.c
205
x3 = (RC2_INT)(l >> 16L);
lib/libcrypto/rc2/rc2.c
247
long l = length;
lib/libcrypto/rc2/rc2.c
254
for (l -= 8; l >= 0; l -= 8)
lib/libcrypto/rc2/rc2.c
268
if (l != -8) {
lib/libcrypto/rc2/rc2.c
269
c2ln(in, tin0, tin1, l + 8);
lib/libcrypto/rc2/rc2.c
286
for (l -= 8; l >= 0; l -= 8)
lib/libcrypto/rc2/rc2.c
300
if (l != -8) {
lib/libcrypto/rc2/rc2.c
308
l2cn(tout0, tout1, out, l + 8);
lib/libcrypto/rc2/rc2.c
331
long l = length;
lib/libcrypto/rc2/rc2.c
337
while (l--) {
lib/libcrypto/rc2/rc2.c
357
while (l--) {
lib/libcrypto/rc2/rc2.c
394
unsigned long l, d[2];
lib/libcrypto/rc2/rc2.c
396
c2l(in, l);
lib/libcrypto/rc2/rc2.c
397
d[0] = l;
lib/libcrypto/rc2/rc2.c
398
c2l(in, l);
lib/libcrypto/rc2/rc2.c
399
d[1] = l;
lib/libcrypto/rc2/rc2.c
404
l = d[0];
lib/libcrypto/rc2/rc2.c
405
l2c(l, out);
lib/libcrypto/rc2/rc2.c
406
l = d[1];
lib/libcrypto/rc2/rc2.c
407
l2c(l, out);
lib/libcrypto/rc2/rc2.c
408
l = d[0] = d[1] = 0;
lib/libcrypto/rc2/rc2.c
423
long l = length;
lib/libcrypto/rc2/rc2.c
438
while (l--) {
lib/libcrypto/rc2/rc2_local.h
63
#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \
lib/libcrypto/rc2/rc2_local.h
64
l|=((unsigned long)(*((c)++)))<< 8L, \
lib/libcrypto/rc2/rc2_local.h
65
l|=((unsigned long)(*((c)++)))<<16L, \
lib/libcrypto/rc2/rc2_local.h
66
l|=((unsigned long)(*((c)++)))<<24L)
lib/libcrypto/rc2/rc2_local.h
86
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
lib/libcrypto/rc2/rc2_local.h
87
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
lib/libcrypto/rc2/rc2_local.h
88
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
lib/libcrypto/rc2/rc2_local.h
89
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
lib/libcrypto/ripemd/ripemd.c
395
RIPEMD160_LONG l;
lib/libcrypto/ripemd/ripemd.c
401
l = (c->Nl + (((RIPEMD160_LONG)len) << 3))&0xffffffffUL;
lib/libcrypto/ripemd/ripemd.c
404
if (l < c->Nl) /* overflow */
lib/libcrypto/ripemd/ripemd.c
407
c->Nl = l;
lib/libcrypto/rsa/rsa.h
191
#define EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \
lib/libcrypto/rsa/rsa.h
193
EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)(l))
lib/libcrypto/rsa/rsa.h
195
#define EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \
lib/libcrypto/rsa/rsa.h
197
EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)(l))
lib/libcrypto/rsa/rsa_chk.c
137
r = BN_mul(l, i, j, ctx);
lib/libcrypto/rsa/rsa_chk.c
147
r = BN_div_ct(k, NULL, l, m, ctx); /* remainder is 0 */
lib/libcrypto/rsa/rsa_chk.c
217
BN_free(l);
lib/libcrypto/rsa/rsa_chk.c
61
BIGNUM *i, *j, *k, *l, *m;
lib/libcrypto/rsa/rsa_chk.c
74
l = BN_new();
lib/libcrypto/rsa/rsa_chk.c
77
if (i == NULL || j == NULL || k == NULL || l == NULL || m == NULL ||
lib/libcrypto/sha/sha1.c
412
SHA_LONG l;
lib/libcrypto/sha/sha1.c
418
l = (c->Nl + (((SHA_LONG)len) << 3))&0xffffffffUL;
lib/libcrypto/sha/sha1.c
421
if (l < c->Nl) /* overflow */
lib/libcrypto/sha/sha1.c
424
c->Nl = l;
lib/libcrypto/sha/sha256.c
363
SHA_LONG l;
lib/libcrypto/sha/sha256.c
369
l = (c->Nl + (((SHA_LONG)len) << 3)) & 0xffffffffUL;
lib/libcrypto/sha/sha256.c
372
if (l < c->Nl) /* overflow */
lib/libcrypto/sha/sha256.c
375
c->Nl = l;
lib/libcrypto/sha/sha512.c
397
SHA_LONG64 l;
lib/libcrypto/sha/sha512.c
402
l = (c->Nl + (((SHA_LONG64)len) << 3))&U64(0xffffffffffffffff);
lib/libcrypto/sha/sha512.c
403
if (l < c->Nl)
lib/libcrypto/sha/sha512.c
407
c->Nl = l;
lib/libcrypto/sm3/sm3.c
275
SM3_WORD l;
lib/libcrypto/sm3/sm3.c
281
l = (c->Nl + (((SM3_WORD)len) << 3))&0xffffffffUL;
lib/libcrypto/sm3/sm3.c
284
if (l < c->Nl) /* overflow */
lib/libcrypto/sm3/sm3.c
287
c->Nl = l;
lib/libcrypto/stack/stack.c
205
int l, h, i, c;
lib/libcrypto/stack/stack.c
207
l = 0;
lib/libcrypto/stack/stack.c
209
while (l < h) {
lib/libcrypto/stack/stack.c
210
i = (l + h) / 2;
lib/libcrypto/stack/stack.c
220
l = i + 1;
lib/libcrypto/txt_db/txt_db.c
251
long i, j,n, nn, l, tot = 0;
lib/libcrypto/txt_db/txt_db.c
263
l = 0;
lib/libcrypto/txt_db/txt_db.c
266
l += strlen(pp[j]);
lib/libcrypto/txt_db/txt_db.c
268
if (!BUF_MEM_grow_clean(buf, (int)(l*2 + nn)))
lib/libcrypto/ui/ui_lib.c
849
int l = strlen(result);
lib/libcrypto/ui/ui_lib.c
859
if (l < uis->_.string_data.result_minsize) {
lib/libcrypto/ui/ui_lib.c
868
if (l > uis->_.string_data.result_maxsize) {
lib/libcrypto/x509/x509_vfy.h
299
#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \
lib/libcrypto/x509/x509_vfy.h
300
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
lib/libcurses/base/lib_color.c
451
rgb2hls(int r, int g, int b, int *h, int *l, int *s)
lib/libcurses/base/lib_color.c
462
*l = ((min + max) / 20);
lib/libcurses/base/lib_color.c
471
if (*l < 50)
lib/libcurses/base/lib_newwin.c
247
subwin(WINDOW *w, int l, int c, int y, int x)
lib/libcurses/base/lib_newwin.c
251
T((T_CALLED("subwin(%p, %d, %d, %d, %d)"), (void *) w, l, c, y, x));
lib/libcurses/base/lib_newwin.c
255
result = derwin(w, l, c, y - w->_begy, x - w->_begx);
lib/libcurses/base/lib_pad.c
51
NCURSES_SP_NAME(newpad) (NCURSES_SP_DCLx int l, int c)
lib/libcurses/base/lib_pad.c
57
T((T_CALLED("newpad(%p,%d, %d)"), (void *) SP_PARM, l, c));
lib/libcurses/base/lib_pad.c
59
if (l <= 0 || c <= 0)
lib/libcurses/base/lib_pad.c
62
win = NCURSES_SP_NAME(_nc_makenew) (NCURSES_SP_ARGx l, c, 0, 0, _ISPAD);
lib/libcurses/base/lib_pad.c
66
for (i = 0; i < l; i++) {
lib/libcurses/base/lib_pad.c
81
newpad(int l, int c)
lib/libcurses/base/lib_pad.c
83
return NCURSES_SP_NAME(newpad) (CURRENT_SCREEN, l, c);
lib/libcurses/base/lib_pad.c
88
subpad(WINDOW *orig, int l, int c, int begy, int begx)
lib/libcurses/base/lib_pad.c
92
T((T_CALLED("subpad(%d, %d)"), l, c));
lib/libcurses/base/lib_pad.c
96
|| ((win = derwin(orig, l, c, begy, begx)) == NULL))
lib/libcurses/curses.h
1456
#define is_linetouched(w,l) ((!(w) || ((l) > getmaxy(w)) || ((l) < 0)) ? ERR : (is_linetouched)((w),(l)))
lib/libcurses/curses.h
1862
#define border_set(l,r,t,b,tl,tr,bl,br) wborder_set(stdscr,(l),(r),(t),(b),tl,tr,bl,br)
lib/libcurses/tinfo/captoinfo.c
387
int l;
lib/libcurses/tinfo/captoinfo.c
388
l = 2;
lib/libcurses/tinfo/captoinfo.c
397
l++;
lib/libcurses/tinfo/captoinfo.c
399
l += cvtchar(s + 2);
lib/libcurses/tinfo/captoinfo.c
425
s += l;
lib/libcurses/tinfo/tinfo_driver.c
545
drv_getsize(TERMINAL_CONTROL_BLOCK * TCB, int *l, int *c)
lib/libcurses/tinfo/tinfo_driver.c
548
assert(l != 0 && c != 0);
lib/libcurses/tinfo/tinfo_driver.c
549
*l = lines;
lib/libcurses/tinfo/tinfo_driver.c
555
drv_setsize(TERMINAL_CONTROL_BLOCK * TCB, int l, int c)
lib/libcurses/tinfo/tinfo_driver.c
558
lines = (short) l;
lib/libcurses/tty/lib_mvcur.c
1002
int l = (xold + 1) / screen_columns(SP_PARM);
lib/libcurses/tty/lib_mvcur.c
1004
yold += l;
lib/libcurses/tty/lib_mvcur.c
1006
l -= (yold - screen_lines(SP_PARM) - 1);
lib/libcurses/tty/lib_mvcur.c
1008
if (l > 0) {
lib/libcurses/tty/lib_mvcur.c
1016
while (l > 0) {
lib/libcurses/tty/lib_mvcur.c
1022
l--;
lib/libedit/chartype.c
192
ssize_t l = 0;
lib/libedit/chartype.c
195
l = wctomb(dst, c);
lib/libedit/chartype.c
197
if (l < 0) {
lib/libedit/chartype.c
199
l = 0;
lib/libedit/chartype.c
201
return l;
lib/libedit/keymacro.c
645
ssize_t l = ct_visual_char(dbuf, VISUAL_WIDTH_MAX, *p);
lib/libedit/keymacro.c
646
while (l-- > 0) {
lib/libedit/parse.c
104
size_t l;
lib/libedit/parse.c
108
l = ptr - argv[0] - 1;
lib/libedit/parse.c
109
tprog = reallocarray(NULL, l + 1, sizeof(*tprog));
lib/libedit/parse.c
112
(void) wcsncpy(tprog, argv[0], l);
lib/libedit/parse.c
113
tprog[l] = '\0';
lib/libedit/parse.c
115
l = el_match(el->el_prog, tprog);
lib/libedit/parse.c
117
if (!l)
lib/libform/form.priv.h
302
int l = -1; \
lib/libform/form.priv.h
305
l = (int)(buffer - s); \
lib/libform/form.priv.h
308
result = ((*buffer || (l < width)) ? FALSE : TRUE); \
lib/libm/hidden/namespace.h
104
#define LDBL_UNUSED_CLONE(x) __strong_alias(x##l, HIDDEN(x))
lib/libm/hidden/namespace.h
105
#define LDBL_NONSTD_UNUSED_CLONE(x) WEAK_IN_STATIC_ALIAS(x##l, HIDDEN(x))
lib/libm/hidden/namespace.h
107
__dso_hidden typeof(HIDDEN(x##l)) HIDDEN(x##l) \
lib/libm/hidden/namespace.h
110
__dso_hidden typeof(HIDDEN(x##l)) HIDDEN(x##l) \
lib/libmenu/m_global.c
342
int l;
lib/libmenu/m_global.c
348
l = calculate_actual_width(menu, TRUE);
lib/libmenu/m_global.c
349
l += menu->marklen;
lib/libmenu/m_global.c
353
l += calculate_actual_width(menu, FALSE);
lib/libmenu/m_global.c
354
l += menu->spc_desc;
lib/libmenu/m_global.c
357
menu->itemlen = (short)l;
lib/libmenu/m_global.c
358
l *= menu->cols;
lib/libmenu/m_global.c
359
l += (menu->cols - 1) * menu->spc_cols; /* for the padding between the columns */
lib/libmenu/m_global.c
360
menu->width = (short)l;
lib/libmenu/m_item_new.c
203
short l;
lib/libmenu/m_item_new.c
208
l = (short)strlen(mark);
lib/libmenu/m_item_new.c
210
l = 0;
lib/libmenu/m_item_new.c
221
if (menu->marklen != l)
lib/libmenu/m_item_new.c
224
menu->marklen = l;
lib/libmenu/m_item_new.c
225
if (l)
lib/librthread/rthread_spin_lock.c
102
pthread_spinlock_t l;
lib/librthread/rthread_spin_lock.c
107
l = *lock;
lib/librthread/rthread_spin_lock.c
109
if (l->owner != self)
lib/librthread/rthread_spin_lock.c
112
l->owner = NULL;
lib/librthread/rthread_spin_lock.c
113
_spinunlock(&l->lock);
lib/librthread/rthread_spin_lock.c
28
pthread_spinlock_t l = NULL;
lib/librthread/rthread_spin_lock.c
36
l = calloc(1, sizeof *l);
lib/librthread/rthread_spin_lock.c
37
if (l == NULL)
lib/librthread/rthread_spin_lock.c
40
l->lock = _SPINLOCK_UNLOCKED;
lib/librthread/rthread_spin_lock.c
41
*lock = l;
lib/librthread/rthread_spin_lock.c
63
pthread_spinlock_t l;
lib/librthread/rthread_spin_lock.c
68
l = *lock;
lib/librthread/rthread_spin_lock.c
70
if (l->owner == self)
lib/librthread/rthread_spin_lock.c
72
if (!_spinlocktry(&l->lock))
lib/librthread/rthread_spin_lock.c
75
l->owner = self;
lib/librthread/rthread_spin_lock.c
83
pthread_spinlock_t l;
lib/librthread/rthread_spin_lock.c
88
l = *lock;
lib/librthread/rthread_spin_lock.c
90
if (l->owner == self)
lib/librthread/rthread_spin_lock.c
93
_spinlock(&l->lock);
lib/librthread/rthread_spin_lock.c
94
l->owner = self;
lib/libskey/put.c
370
int i, p, v, l, low, high;
lib/libskey/put.c
385
l = strlen(word);
lib/libskey/put.c
386
if (l > 4 || l < 1) {
lib/libskey/put.c
388
} else if (l < 4) {
lib/libssl/d1_pkt.c
138
long l;
lib/libssl/d1_pkt.c
148
l = *((long *)v1);
lib/libssl/d1_pkt.c
149
l -= *((long *)v2);
lib/libssl/d1_pkt.c
150
if (l > 128)
lib/libssl/d1_pkt.c
152
else if (l<-128)
lib/libssl/d1_pkt.c
155
return (int)l;
lib/libssl/s3_cbc.c
267
#define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \
lib/libssl/s3_cbc.c
268
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libssl/s3_cbc.c
269
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libssl/s3_cbc.c
270
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libssl/s3_cbc.c
272
#define l2n8(l,c) (*((c)++)=(unsigned char)(((l)>>56)&0xff), \
lib/libssl/s3_cbc.c
273
*((c)++)=(unsigned char)(((l)>>48)&0xff), \
lib/libssl/s3_cbc.c
274
*((c)++)=(unsigned char)(((l)>>40)&0xff), \
lib/libssl/s3_cbc.c
275
*((c)++)=(unsigned char)(((l)>>32)&0xff), \
lib/libssl/s3_cbc.c
276
*((c)++)=(unsigned char)(((l)>>24)&0xff), \
lib/libssl/s3_cbc.c
277
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
lib/libssl/s3_cbc.c
278
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \
lib/libssl/s3_cbc.c
279
*((c)++)=(unsigned char)(((l) )&0xff))
lib/libssl/ssl_both.c
256
uint32_t l;
lib/libssl/ssl_both.c
322
!CBS_get_u24(&cbs, &l)) {
lib/libssl/ssl_both.c
328
if (l > (unsigned long)max) {
lib/libssl/ssl_both.c
333
if (l && !BUF_MEM_grow_clean(s->init_buf,
lib/libssl/ssl_both.c
334
l + SSL3_HM_HEADER_LENGTH)) {
lib/libssl/ssl_both.c
338
s->s3->hs.tls12.message_size = l;
lib/libssl/ssl_ciph.c
1085
while ((*l != '\0') && !ITEM_SEP(*l))
lib/libssl/ssl_ciph.c
1086
l++;
lib/libssl/ssl_ciph.c
1094
while ((*l != '\0') && !ITEM_SEP(*l))
lib/libssl/ssl_ciph.c
1095
l++;
lib/libssl/ssl_ciph.c
1097
if (*l == '\0')
lib/libssl/ssl_ciph.c
1326
int l;
lib/libssl/ssl_ciph.c
1440
l = strlcpy(buf, ret, len);
lib/libssl/ssl_ciph.c
1443
if (l >= len)
lib/libssl/ssl_ciph.c
864
const char *l, *buf;
lib/libssl/ssl_ciph.c
870
l = rule_str;
lib/libssl/ssl_ciph.c
872
ch = *l;
lib/libssl/ssl_ciph.c
879
l++;
lib/libssl/ssl_ciph.c
882
l++;
lib/libssl/ssl_ciph.c
885
l++;
lib/libssl/ssl_ciph.c
888
l++;
lib/libssl/ssl_ciph.c
894
l++;
lib/libssl/ssl_ciph.c
906
ch = *l;
lib/libssl/ssl_ciph.c
907
buf = l;
lib/libssl/ssl_ciph.c
914
ch = *(++l);
lib/libssl/ssl_ciph.c
938
l++;
lib/libssl/ssl_err.c
672
SSL_error_internal(const SSL *s, int r, const char *f, int l)
lib/libssl/ssl_err.c
674
ERR_PUT_error(ERR_LIB_SSL, SSL_state_func_code(s->s3->hs.state), r, f, l);
lib/libssl/ssl_lib.c
1356
long l;
lib/libssl/ssl_lib.c
1362
l = s->read_ahead;
lib/libssl/ssl_lib.c
1364
return (l);
lib/libssl/ssl_lib.c
1381
l = s->max_cert_list;
lib/libssl/ssl_lib.c
1383
return (l);
lib/libssl/ssl_lib.c
1433
long l;
lib/libssl/ssl_lib.c
1439
l = ctx->read_ahead;
lib/libssl/ssl_lib.c
1441
return (l);
lib/libssl/ssl_lib.c
1450
l = ctx->max_cert_list;
lib/libssl/ssl_lib.c
1452
return (l);
lib/libssl/ssl_lib.c
1455
l = ctx->session_cache_size;
lib/libssl/ssl_lib.c
1457
return (l);
lib/libssl/ssl_lib.c
1461
l = ctx->session_cache_mode;
lib/libssl/ssl_lib.c
1463
return (l);
lib/libssl/ssl_lib.c
2019
unsigned long l;
lib/libssl/ssl_lib.c
2021
l = (unsigned long)
lib/libssl/ssl_lib.c
2026
return (l);
lib/libssl/ssl_lib.c
2611
unsigned long l;
lib/libssl/ssl_lib.c
2622
if ((l = ERR_peek_error()) != 0) {
lib/libssl/ssl_lib.c
2623
if (ERR_GET_LIB(l) == ERR_LIB_SYS)
lib/libssl/ssl_local.h
1439
void SSL_error_internal(const SSL *s, int r, const char *f, int l);
lib/libssl/ssl_sess.c
1044
long l;
lib/libssl/ssl_sess.c
1048
l = s->session_timeout;
lib/libssl/ssl_sess.c
1051
return (l);
lib/libusbhid/usage.c
268
unsigned int l;
lib/libusbhid/usage.c
274
l = sep - name;
lib/libusbhid/usage.c
276
if (strncmp(pages[k].name, name, l) == 0)
lib/libutil/ber.c
1066
unsigned long long l;
lib/libutil/ber.c
1078
l = (unsigned long long)root->be_numeric;
lib/libutil/ber.c
1080
u = (l >> ((i - 1) * 8)) & 0xff;
lib/libutil/ber.c
707
long long *i, l;
lib/libutil/ber.c
742
if (ober_get_integer(ber, &l) == -1)
lib/libutil/ber.c
745
*d = l;
libexec/ld.so/dl_printf.c
207
int l;
libexec/ld.so/dl_printf.c
211
l = (sizeof(ulong) * 8) - 4;
libexec/ld.so/dl_printf.c
213
l = (sizeof(u_int) * 8) - 4;
libexec/ld.so/dl_printf.c
214
while (l >= 0) {
libexec/ld.so/dl_printf.c
215
putcharfd("0123456789abcdef"[(ul >> l) & 0xf], fd);
libexec/ld.so/dl_printf.c
216
l -= 4;
libexec/ld.so/sh/SYS.h
51
mov.l 903f, r0
libexec/snmpd/snmpd_metrics/kroute.c
1009
unsigned int l = 0;
libexec/snmpd/snmpd_metrics/kroute.c
1022
l += 8;
libexec/snmpd/snmpd_metrics/kroute.c
1025
l += 7;
libexec/snmpd/snmpd_metrics/kroute.c
1028
l += 6;
libexec/snmpd/snmpd_metrics/kroute.c
1031
l += 5;
libexec/snmpd/snmpd_metrics/kroute.c
1034
l += 4;
libexec/snmpd/snmpd_metrics/kroute.c
1037
l += 3;
libexec/snmpd/snmpd_metrics/kroute.c
1040
l += 2;
libexec/snmpd/snmpd_metrics/kroute.c
1043
l += 1;
libexec/snmpd/snmpd_metrics/kroute.c
1053
if (l > sizeof(struct in6_addr) * 8)
libexec/snmpd/snmpd_metrics/kroute.c
1055
return (l);
libexec/spamd/sdl.c
356
#define grow_sdlist(sd, c, l) do { \
libexec/spamd/sdl.c
357
if (c == l) { \
libexec/spamd/sdl.c
360
tmp = reallocarray(sd, l + 128, sizeof(struct sdlist *)); \
libexec/spamd/sdl.c
368
l += 128; \
regress/lib/libcrypto/bn/bn_test.c
954
unsigned long l;
regress/lib/libcrypto/bn/bn_test.c
956
while ((l = ERR_get_error()))
regress/lib/libcrypto/bn/bn_test.c
958
ERR_error_string(l, NULL));
regress/lib/libcrypto/cast/casttest.c
103
long l;
regress/lib/libcrypto/cast/casttest.c
154
for (l = 0; l < 1000000L; l++) {
regress/lib/libcrypto/cast/casttest.c
165
if ((l & 0xffff) == 0xffff) {
regress/lib/libcrypto/evp/evptest.c
63
hexdump(FILE *f, const char *title, const unsigned char *s, int l)
regress/lib/libcrypto/evp/evptest.c
68
for (; n < l; ++n) {
regress/lib/libcrypto/ige/igetest.c
62
static void hexdump(FILE *f,const char *title,const unsigned char *s,int l)
regress/lib/libcrypto/ige/igetest.c
67
for( ; n < l ; ++n)
regress/lib/libcrypto/rsa/rsa_test.c
347
unsigned long l;
regress/lib/libcrypto/rsa/rsa_test.c
348
while ((l = ERR_get_error()) != 0)
regress/lib/libcrypto/rsa/rsa_test.c
349
if (ERR_GET_REASON(l) == RSA_R_UNKNOWN_PADDING_TYPE)
regress/lib/libcrypto/test/test.c
135
char *l = ": ";
regress/lib/libcrypto/test/test.c
140
l = "";
regress/lib/libcrypto/test/test.c
152
func, filename, line, l, label, msg);
regress/lib/libcrypto/utf8/utf8test.c
180
for (l = 0; l < 0x100; l++) {
regress/lib/libcrypto/utf8/utf8test.c
181
testbuf[3] = l;
regress/lib/libcrypto/utf8/utf8test.c
193
l < 0x80 || l > 0xBF) {
regress/lib/libcrypto/utf8/utf8test.c
214
ASSERT((value & 0x3F) == (l & 0x3F));
regress/lib/libcrypto/utf8/utf8test.c
44
unsigned int i, j, k, l;
regress/lib/libm/msun/invtrig_test.c
106
test2_tol(prefix##l, (y), (x), (result), \
regress/lib/libm/msun/invtrig_test.c
76
test_tol(prefix##l, (x), (result), \
regress/lib/libm/msun/next_test.c
109
ztest(l);
regress/lib/libm/msun/next_test.c
120
stest(nextafterl, ldbl_small, l);
regress/lib/libm/msun/next_test.c
123
stest(nexttowardl, ldbl_small, l);
regress/lib/libm/msun/next_test.c
152
testboth(1.0, 2.0, 1.0 + ldbl_eps, 0, l);
regress/lib/libm/msun/next_test.c
153
testboth(1.0, -INFINITY, 1.0 - ldbl_eps / 2, 0, l);
regress/lib/libm/msun/next_test.c
159
testboth(-1.0, 2.0, -1.0 + ldbl_eps / 2, 0, l);
regress/lib/libm/msun/next_test.c
160
testboth(-1.0, -INFINITY, -1.0 - ldbl_eps, 0, l);
regress/lib/libm/msun/next_test.c
187
testboth(0x1.87654ffffffffp+0L, INFINITY, 0x1.87655p+0L, 0, l);
regress/lib/libm/msun/next_test.c
188
testboth(0x1.87655p+0L, -INFINITY, 0x1.87654ffffffffp+0L, 0, l);
regress/lib/libm/msun/next_test.c
189
testboth(0x1.fffffffffffffp+0L, INFINITY, 0x1p1L, 0, l);
regress/lib/libm/msun/next_test.c
190
testboth(0x1p1L, -INFINITY, 0x1.fffffffffffffp+0L, 0, l);
regress/lib/libm/msun/next_test.c
191
testboth(0x0.fffffffffffffp-1022L, INFINITY, 0x1p-1022L, 0, l);
regress/lib/libm/msun/next_test.c
192
testboth(0x1p-1022L, -INFINITY, 0x0.fffffffffffffp-1022L, ex_under, l);
regress/lib/libm/msun/next_test.c
194
testboth(0x1.87654321fffffffep+0L, INFINITY, 0x1.87654322p+0L, 0, l);
regress/lib/libm/msun/next_test.c
195
testboth(0x1.87654322p+0L, -INFINITY, 0x1.87654321fffffffep+0L, 0, l);
regress/lib/libm/msun/next_test.c
196
testboth(0x1.fffffffffffffffep0L, INFINITY, 0x1p1L, 0, l);
regress/lib/libm/msun/next_test.c
197
testboth(0x1p1L, -INFINITY, 0x1.fffffffffffffffep0L, 0, l);
regress/lib/libm/msun/next_test.c
198
testboth(0x0.fffffffffffffffep-16382L, INFINITY, 0x1p-16382L, 0, l);
regress/lib/libm/msun/next_test.c
200
0x0.fffffffffffffffep-16382L, ex_under, l);
regress/lib/libm/msun/next_test.c
203
0x1.876543210988p+0, 0, l);
regress/lib/libm/msun/next_test.c
205
0x1.876543210987ffffffffffffffffp+0L, 0, l);
regress/lib/libm/msun/next_test.c
206
testboth(0x1.ffffffffffffffffffffffffffffp0L, INFINITY, 0x1p1L, 0, l);
regress/lib/libm/msun/next_test.c
207
testboth(0x1p1L, -INFINITY, 0x1.ffffffffffffffffffffffffffffp0L, 0, l);
regress/lib/libm/msun/next_test.c
209
0x1p-16382L, 0, l);
regress/lib/libm/msun/next_test.c
211
0x0.ffffffffffffffffffffffffffffp-16382L, ex_under, l);
regress/lib/libm/msun/next_test.c
241
testboth(ldbl_max, INFINITY, INFINITY, ex_over, l);
regress/lib/libm/msun/next_test.c
242
testboth(INFINITY, 0.0, ldbl_max, 0, l);
regress/lib/libm/msun/next_test.c
68
testboth((arg1), (arg2), (ans), (ex), l); \
regress/lib/libm/msun/trig_test.c
74
test(prefix##l, x, result, exceptmask, excepts); \
regress/lib/libpthread/restart/connect/connect.c
26
int l, s;
regress/lib/libpthread/restart/connect/connect.c
29
CHECKe(l = socket(AF_INET, SOCK_STREAM, 0));
regress/lib/libpthread/restart/connect/connect.c
33
CHECKe(bind(l, (struct sockaddr *)&sa, sizeof(sa)));
regress/lib/libpthread/restart/connect/connect.c
35
CHECKe(getsockname(l, (struct sockaddr *)&sa, &len));
regress/lib/libpthread/spinlock/spinlock.c
17
pthread_spinlock_t l = (pthread_spinlock_t)arg;
regress/lib/libpthread/spinlock/spinlock.c
18
rc = pthread_spin_trylock(&l);
regress/lib/libpthread/spinlock/spinlock.c
23
CHECKr(pthread_spin_unlock(&l));
regress/lib/libpthread/spinlock/spinlock.c
25
CHECKr(pthread_spin_lock(&l));
regress/lib/libpthread/spinlock/spinlock.c
26
CHECKr(pthread_spin_unlock(&l));
regress/lib/libpthread/spinlock/spinlock.c
34
pthread_spinlock_t l;
regress/lib/libpthread/spinlock/spinlock.c
36
_CHECK(pthread_spin_init(&l, PTHREAD_PROCESS_SHARED), == ENOTSUP,
regress/lib/libpthread/spinlock/spinlock.c
39
CHECKr(pthread_spin_init(&l, PTHREAD_PROCESS_PRIVATE));
regress/lib/libpthread/spinlock/spinlock.c
42
CHECKr(pthread_create(&thr[i], NULL, foo, (void *)l));
regress/lib/libpthread/spinlock/spinlock.c
47
CHECKr(pthread_spin_destroy(&l));
regress/lib/libpthread/stdarg/stdarg.c
26
long l;
regress/lib/libpthread/stdarg/stdarg.c
42
l = va_arg(ap, long);
regress/lib/libpthread/stdarg/stdarg.c
43
EQ(l, 123456789L);
regress/sbin/ifconfig/ifaddr.c
1608
int bits, l;
regress/sbin/ifconfig/ifaddr.c
1619
l = snprintf(p, sizeof(p), "%d", bits);
regress/sbin/ifconfig/ifaddr.c
1620
if (l < 0 || l >= sizeof(p))
regress/sbin/iked/test_helper/fuzz.c
170
fuzz_begin(u_int strategies, void *p, size_t l)
regress/sbin/iked/test_helper/fuzz.c
176
ret->seed = malloc(l);
regress/sbin/iked/test_helper/fuzz.c
178
memcpy(ret->seed, p, l);
regress/sbin/iked/test_helper/fuzz.c
179
ret->slen = l;
regress/sbin/iked/test_helper/test_helper.c
248
tohex(const void *_s, size_t l)
regress/sbin/iked/test_helper/test_helper.c
253
char *r = malloc((l * 2) + 1);
regress/sbin/iked/test_helper/test_helper.c
256
for (i = j = 0; i < l; i++) {
regress/sbin/iked/test_helper/test_helper.c
266
const void *aa1, const void *aa2, size_t l, enum test_predicate pred)
regress/sbin/iked/test_helper/test_helper.c
268
int r = memcmp(aa1, aa2, l);
regress/sbin/iked/test_helper/test_helper.c
273
tohex(aa1, MINIMUM(l, 256)), l);
regress/sbin/iked/test_helper/test_helper.c
275
tohex(aa2, MINIMUM(l, 256)), l);
regress/sbin/iked/test_helper/test_helper.c
280
memvalcmp(const uint8_t *s, u_char v, size_t l, size_t *where)
regress/sbin/iked/test_helper/test_helper.c
284
for (i = 0; i < l; i++) {
regress/sbin/iked/test_helper/test_helper.c
295
const void *aa1, u_char v, size_t l, enum test_predicate pred)
regress/sbin/iked/test_helper/test_helper.c
298
int r = memvalcmp(aa1, v, l, &where);
regress/sbin/iked/test_helper/test_helper.c
301
if (l == 0)
regress/sbin/iked/test_helper/test_helper.c
306
tohex(aa1, MINIMUM(l, 20)), l > 20 ? "..." : "", l);
regress/sbin/iked/test_helper/test_helper.h
118
#define ASSERT_MEM_NE(a1, a2, l) \
regress/sbin/iked/test_helper/test_helper.h
119
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_NE)
regress/sbin/iked/test_helper/test_helper.h
120
#define ASSERT_MEM_ZERO_NE(a1, l) \
regress/sbin/iked/test_helper/test_helper.h
121
assert_mem_filled(__FILE__, __LINE__, #a1, a1, '\0', l, TEST_NE)
regress/sbin/iked/test_helper/test_helper.h
145
#define ASSERT_MEM_LT(a1, a2, l) \
regress/sbin/iked/test_helper/test_helper.h
146
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_LT)
regress/sbin/iked/test_helper/test_helper.h
170
#define ASSERT_MEM_LE(a1, a2, l) \
regress/sbin/iked/test_helper/test_helper.h
171
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_LE)
regress/sbin/iked/test_helper/test_helper.h
195
#define ASSERT_MEM_GT(a1, a2, l) \
regress/sbin/iked/test_helper/test_helper.h
196
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_GT)
regress/sbin/iked/test_helper/test_helper.h
220
#define ASSERT_MEM_GE(a1, a2, l) \
regress/sbin/iked/test_helper/test_helper.h
221
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_GE)
regress/sbin/iked/test_helper/test_helper.h
256
struct fuzz *fuzz_begin(u_int strategies, void *p, size_t l);
regress/sbin/iked/test_helper/test_helper.h
48
const void *aa1, const void *aa2, size_t l, enum test_predicate pred);
regress/sbin/iked/test_helper/test_helper.h
51
const void *aa1, u_char v, size_t l, enum test_predicate pred);
regress/sbin/iked/test_helper/test_helper.h
89
#define ASSERT_MEM_EQ(a1, a2, l) \
regress/sbin/iked/test_helper/test_helper.h
90
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_EQ)
regress/sbin/iked/test_helper/test_helper.h
91
#define ASSERT_MEM_FILLED_EQ(a1, c, l) \
regress/sbin/iked/test_helper/test_helper.h
92
assert_mem_filled(__FILE__, __LINE__, #a1, a1, c, l, TEST_EQ)
regress/sbin/iked/test_helper/test_helper.h
93
#define ASSERT_MEM_ZERO_EQ(a1, l) \
regress/sbin/iked/test_helper/test_helper.h
94
assert_mem_filled(__FILE__, __LINE__, #a1, a1, '\0', l, TEST_EQ)
regress/sys/kern/pledge/sockopt/sockopt.c
35
size_t i, l;
regress/sys/kern/pledge/sockopt/sockopt.c
41
l = strlcpy(promises, "stdio ", sizeof(promises));
regress/sys/kern/pledge/sockopt/sockopt.c
43
PROMISES[i] != '\0'&& l < sizeof(promises);
regress/sys/kern/pledge/sockopt/sockopt.c
44
i++, l++) {
regress/sys/kern/pledge/sockopt/sockopt.c
45
promises[l] = PROMISES[i] == '+' ?
regress/sys/kern/pledge/sockopt/sockopt.c
48
if (l >= sizeof(promises))
regress/sys/kern/pledge/sockopt/sockopt.c
49
l = sizeof(promises) - 1;
regress/sys/kern/pledge/sockopt/sockopt.c
50
promises[l] = '\0';
regress/sys/net/pflow/gen_traffic.c
108
l = calloc(1, sizeof(*l));
regress/sys/net/pflow/gen_traffic.c
109
if (l == NULL)
regress/sys/net/pflow/gen_traffic.c
111
event_set(&l->ev, s, EV_READ | EV_PERSIST, gen_traffic_accept, l);
regress/sys/net/pflow/gen_traffic.c
112
event_add(&l->ev, NULL);
regress/sys/net/pflow/gen_traffic.c
113
evtimer_set(&l->pause, gen_traffic_paused, l);
regress/sys/net/pflow/gen_traffic.c
143
struct listener *l = arg;
regress/sys/net/pflow/gen_traffic.c
144
event_add(&l->ev, NULL);
regress/sys/net/pflow/gen_traffic.c
157
struct listener *l;
regress/sys/net/pflow/gen_traffic.c
164
l = arg;
regress/sys/net/pflow/gen_traffic.c
177
event_del(&l->ev);
regress/sys/net/pflow/gen_traffic.c
178
evtimer_add(&l->pause, &pause);
regress/sys/net/pflow/gen_traffic.c
75
struct listener *l;
regress/sys/netinet/bindconnect/bindconnect.c
255
int l = ROUNDUP((sa)->sa_len); \
regress/sys/netinet/bindconnect/bindconnect.c
256
memcpy(cp, (sa), l); \
regress/sys/netinet/bindconnect/bindconnect.c
257
cp += l; \
regress/sys/uvm/vnode/extern.h
19
#define LOG(l, x...) do { if (loglevel >= l) logit(x); } while (0)
regress/usr.bin/ctfdump/example.c
3
long l;
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
272
dump(const char *preamble, const void *sv, size_t l)
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
278
fprintf(stderr, "%s (len %zu):\n", preamble, l);
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
279
for (i = 0; i < l; i++) {
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
283
if (i % 16 == 15 || i == l - 1)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
100
ASSERT_U_INT_EQ(l->status, expected_status);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
101
ASSERT_U_INT_EQ(l->match, expected_match);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
103
if (expected->l.line != NULL)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
104
ASSERT_STRING_EQ(l->line, expected->l.line);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
105
ASSERT_INT_EQ(l->marker, expected->l.marker);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
107
if (expected->l.hosts != NULL)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
108
ASSERT_STRING_EQ(l->hosts, expected->l.hosts);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
110
if (expected->l.rawkey != NULL)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
111
ASSERT_STRING_EQ(l->rawkey, expected->l.rawkey);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
113
ASSERT_INT_EQ(l->keytype, expected_keytype);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
115
if (expected->l.key == NULL)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
116
ASSERT_PTR_EQ(l->key, NULL);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
117
if (expected->l.key != NULL) {
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
118
ASSERT_PTR_NE(l->key, NULL);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
119
ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
122
if (parse_key && l->comment != NULL && expected->l.comment != NULL)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
123
ASSERT_STRING_EQ(l->comment, expected->l.comment);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
137
test_data_file(expected[i].key_file), &expected[i].l.key,
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
148
sshkey_free(expected[i].l.key);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
149
expected[i].l.key = NULL;
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
29
struct hostkey_foreach_line l; /* Expected line contents */
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
48
check(struct hostkey_foreach_line *l, void *_ctx)
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
58
ctx->i + 1, ctx->nexpected, l->linenum);
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
76
expected->l.status : (u_int)expected->no_parse_status;
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
77
expected_match = expected->l.match;
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
86
expected->l.keytype : expected->no_parse_keytype;
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
98
ASSERT_PTR_NE(l->path, NULL); /* Don't care about path */
regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
99
ASSERT_LONG_LONG_EQ(l->linenum, expected->l.linenum);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fixed.c
31
size_t l;
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fixed.c
56
ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fixed.c
59
ASSERT_SIZE_T_EQ(l, 5);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fixed.c
87
ASSERT_INT_EQ(sshbuf_get_cstring(p2, &s, &l), 0);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_fixed.c
90
ASSERT_SIZE_T_EQ(l, 5);
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_fuzz.c
31
size_t l;
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_fuzz.c
44
if (sshbuf_get_string(p1, &s, &l) == 0) {
regress/usr.bin/ssh/unittests/sshbuf/test_sshbuf_getput_fuzz.c
45
bzero(s, l);
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
73
size_t l;
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
82
ASSERT_INT_EQ(sshkey_sign(k, &sig, &l, c, sizeof(c),
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
84
ASSERT_SIZE_T_GT(l, 0);
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
85
fuzz = fuzz_begin(fuzzers, sig, l);
regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
86
ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
109
const u_char *d, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
114
ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
118
ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
119
ASSERT_INT_NE(sshkey_verify(bad, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
122
ASSERT_INT_NE(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
128
const u_char *d, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
141
ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
152
const u_char *d, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
164
ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg,
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
167
ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0);
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
176
banana(u_char *s, size_t l)
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
181
for (o = 0; o < l; o += sizeof(the_banana)) {
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
182
if (l - o < sizeof(the_banana)) {
regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
183
memcpy(s + o, "nanananana", l - o);
regress/usr.bin/ssh/unittests/test_helper/fuzz.c
212
fuzz_begin(u_int strategies, const void *p, size_t l)
regress/usr.bin/ssh/unittests/test_helper/fuzz.c
218
ret->seed = malloc(l);
regress/usr.bin/ssh/unittests/test_helper/fuzz.c
220
memcpy(ret->seed, p, l);
regress/usr.bin/ssh/unittests/test_helper/fuzz.c
221
ret->slen = l;
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
390
const void *aa1, const void *aa2, size_t l, enum test_predicate pred)
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
396
if (l == 0)
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
402
r = memcmp(aa1, aa2, l);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
405
aa1_tohex = tohex(aa1, MINIMUM(l, 256));
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
406
aa2_tohex = tohex(aa2, MINIMUM(l, 256));
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
407
fprintf(stderr, "%12s = %s (len %zu)\n", a1, aa1_tohex, l);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
408
fprintf(stderr, "%12s = %s (len %zu)\n", a2, aa2_tohex, l);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
415
memvalcmp(const uint8_t *s, u_char v, size_t l, size_t *where)
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
419
for (i = 0; i < l; i++) {
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
430
const void *aa1, u_char v, size_t l, enum test_predicate pred)
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
437
if (l == 0)
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
442
r = memvalcmp(aa1, v, l, &where);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
445
aa1_tohex = tohex(aa1, MINIMUM(l, 20));
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
447
aa1_tohex, l > 20 ? "..." : "", l);
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
109
#define ASSERT_MEM_EQ(a1, a2, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
110
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_EQ)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
111
#define ASSERT_MEM_FILLED_EQ(a1, c, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
112
assert_mem_filled(__FILE__, __LINE__, #a1, a1, c, l, TEST_EQ)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
113
#define ASSERT_MEM_ZERO_EQ(a1, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
114
assert_mem_filled(__FILE__, __LINE__, #a1, a1, '\0', l, TEST_EQ)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
142
#define ASSERT_MEM_NE(a1, a2, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
143
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_NE)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
144
#define ASSERT_MEM_ZERO_NE(a1, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
145
assert_mem_filled(__FILE__, __LINE__, #a1, a1, '\0', l, TEST_NE)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
173
#define ASSERT_MEM_LT(a1, a2, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
174
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_LT)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
202
#define ASSERT_MEM_LE(a1, a2, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
203
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_LE)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
231
#define ASSERT_MEM_GT(a1, a2, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
232
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_GT)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
260
#define ASSERT_MEM_GE(a1, a2, l) \
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
261
assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_GE)
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
331
struct fuzz *fuzz_begin(u_int strategies, const void *p, size_t l);
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
59
const void *aa1, const void *aa2, size_t l, enum test_predicate pred);
regress/usr.bin/ssh/unittests/test_helper/test_helper.h
62
const void *aa1, u_char v, size_t l, enum test_predicate pred);
regress/usr.sbin/bgpd/unittests/chash_sub_test.c
89
uintptr_t l = (uintptr_t)lptr;
regress/usr.sbin/bgpd/unittests/chash_sub_test.c
92
if (l == r)
regress/usr.sbin/bgpd/unittests/chash_test.c
63
peer_cmp(const struct peer *l, const struct peer *r)
regress/usr.sbin/bgpd/unittests/chash_test.c
65
return l->id == r->id;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
132
size_t l;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
141
for (l = 0; f->in[l] != -1; l++) {
regress/usr.sbin/bgpd/unittests/rde_community_test.c
142
r = community_set(&comm, &filters[f->in[l]], p);
regress/usr.sbin/bgpd/unittests/rde_community_test.c
146
num, l, r);
regress/usr.sbin/bgpd/unittests/rde_community_test.c
34
size_t l;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
37
for (l = 0; l < len; l++) {
regress/usr.sbin/bgpd/unittests/rde_community_test.c
38
printf("\\x%02x", b[l]);
regress/usr.sbin/bgpd/unittests/rde_community_test.c
39
if (l % 12 == 0 && l != 0)
sbin/growfs/growfs.c
1175
for (lcs = 0, l = (d / sblock.fs_frag) + 1;
sbin/growfs/growfs.c
1177
l++, lcs++) {
sbin/growfs/growfs.c
1178
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1207
for (lcs = 0, l = (d / sblock.fs_frag) + 1;
sbin/growfs/growfs.c
1209
l++, lcs++) {
sbin/growfs/growfs.c
1210
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1421
int l;
sbin/growfs/growfs.c
1493
for (lcs1 = 0, l = blkno - 1; lcs1 < sblock.fs_contigsumsize;
sbin/growfs/growfs.c
1494
l--, lcs1++) {
sbin/growfs/growfs.c
1495
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1502
for (lcs2 = 0, l = blkno + 1; lcs2 < sblock.fs_contigsumsize;
sbin/growfs/growfs.c
1503
l++, lcs2++) {
sbin/growfs/growfs.c
1504
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
850
int i, l;
sbin/ifconfig/ifconfig.c
6477
int bits, l;
sbin/ifconfig/ifconfig.c
6488
l = snprintf(p, sizeof(p), "%d", bits);
sbin/ifconfig/ifconfig.c
6489
if (l < 0 || l >= sizeof(p))
sbin/iked/util.c
563
unsigned int l = 0;
sbin/iked/util.c
575
l += 8;
sbin/iked/util.c
578
l += 7;
sbin/iked/util.c
581
l += 6;
sbin/iked/util.c
584
l += 5;
sbin/iked/util.c
587
l += 4;
sbin/iked/util.c
590
l += 3;
sbin/iked/util.c
593
l += 2;
sbin/iked/util.c
596
l += 1;
sbin/iked/util.c
606
if (l > sizeof(struct in6_addr) * 8)
sbin/iked/util.c
607
fatalx("%s: prefixlen %d out of bound", __func__, l);
sbin/iked/util.c
608
return (l);
sbin/mount/getmntopts.c
116
l = strtol(value, &endp, 10);
sbin/mount/getmntopts.c
117
if (endp == value || l == -1 || l > INT_MAX ||
sbin/mount/getmntopts.c
118
(l == LONG_MAX && errno == ERANGE))
sbin/mount/getmntopts.c
121
valuep->ival = (int)l;
sbin/mount/getmntopts.c
68
long l;
sbin/ping/ping.c
1424
in_addr_t l;
sbin/ping/ping.c
1446
l = *++cp;
sbin/ping/ping.c
1447
l = (l<<8) + *++cp;
sbin/ping/ping.c
1448
l = (l<<8) + *++cp;
sbin/ping/ping.c
1449
l = (l<<8) + *++cp;
sbin/ping/ping.c
1450
if (l == 0)
sbin/ping/ping.c
1453
s_in.sin_addr.s_addr = ntohl(l);
sbin/ping/ping.c
1499
l = *++cp;
sbin/ping/ping.c
1500
l = (l<<8) + *++cp;
sbin/ping/ping.c
1501
l = (l<<8) + *++cp;
sbin/ping/ping.c
1502
l = (l<<8) + *++cp;
sbin/ping/ping.c
1503
if (l == 0)
sbin/ping/ping.c
1506
s_in.sin_addr.s_addr = ntohl(l);
sbin/route/route.c
1302
int l;
sbin/route/route.c
1306
l = ROUNDUP(u.sa.sa_len); \
sbin/route/route.c
1307
memcpy(cp, &(u), l); \
sbin/route/route.c
1308
cp += l; \
sbin/route/route.c
1352
rtm.rtm_msglen = l = cp - (char *)&m_rtmsg;
sbin/route/route.c
1354
print_rtmsg(&rtm, l);
sbin/route/route.c
1357
if (write(s, &m_rtmsg, l) != l) {
sbin/route/route.c
1362
l = read(s, &m_rtmsg, sizeof(m_rtmsg));
sbin/route/route.c
1363
} while (l > 0 && (rtm.rtm_version != RTM_VERSION ||
sbin/route/route.c
1365
if (l == -1)
sbin/route/route.c
1368
print_getmsg(&rtm, l);
sbin/swapctl/swaplist.c
51
size_t l;
sbin/swapctl/swaplist.c
79
if (pathmax < (l = strlen(sep->se_path)))
sbin/swapctl/swaplist.c
80
pathmax = l;
sbin/unwind/libunbound/iterator/iter_utils.c
981
int l = dname_count_labels(s->rk.dname);
sbin/unwind/libunbound/iterator/iter_utils.c
982
if(l == dp->namelabs + 1 &&
sbin/unwind/libunbound/iterator/iter_utils.c
984
l, dp->name, dp->namelabs))
sbin/unwind/libunbound/sldns/str2wire.c
2176
uint32_t l = (uint32_t)strtol((char*)str, &end, 10);
sbin/unwind/libunbound/sldns/str2wire.c
2180
sldns_write_uint32(rd, l);
sbin/unwind/libunbound/sldns/str2wire.c
2720
int l;
sbin/unwind/libunbound/sldns/str2wire.c
2724
if (sscanf(str, "%4x:%4x:%4x:%4x%n", &a, &b, &c, &d, &l) != 4 ||
sbin/unwind/libunbound/sldns/str2wire.c
2725
l != (int)strlen(str) || /* more data to read */
sbin/unwind/libunbound/sldns/str2wire.c
2741
int l;
sbin/unwind/libunbound/sldns/str2wire.c
2746
&a, &b, &c, &d, &e, &f, &l) != 6 ||
sbin/unwind/libunbound/sldns/str2wire.c
2747
l != (int)strlen(str))
sbin/unwind/libunbound/sldns/str2wire.c
2762
int l;
sbin/unwind/libunbound/sldns/str2wire.c
2767
&a, &b, &c, &d, &e, &f, &g, &h, &l) != 8 ||
sbin/unwind/libunbound/sldns/str2wire.c
2768
l != (int)strlen(str))
sbin/unwind/libunbound/util/alloc.c
660
size_t l = strlen(s)+1;
sbin/unwind/libunbound/util/alloc.c
661
char* n = (char*)unbound_stat_malloc_lite(l, file, line, func);
sbin/unwind/libunbound/util/alloc.c
663
memmove(n, s, l);
sbin/unwind/libunbound/util/config_file.c
2283
static int isalldigit(const char* str, size_t l)
sbin/unwind/libunbound/util/config_file.c
2286
for(i=0; i<l; i++)
sbin/unwind/libunbound/util/netevent.c
106
# define CMSG_SPACE(l) (CMSG_ALIGN(l)+_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)))
sbin/unwind/libunbound/util/netevent.c
108
# define CMSG_SPACE(l) (CMSG_ALIGN(l)+CMSG_ALIGN(sizeof(struct cmsghdr)))
sbin/unwind/libunbound/util/storage/lookup3.c
1013
uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z;
sbin/unwind/libunbound/util/storage/lookup3.c
1028
for (l=0; l<HASHSTATE; ++l)
sbin/unwind/libunbound/util/storage/lookup3.c
1029
e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
sbin/unwind/libunbound/util/storage/lookup3.c
1036
for (l=0; l<hlen+1; ++l) {a[l] = b[l] = (uint8_t)0;}
sbin/unwind/libunbound/util/storage/lookup3.c
1045
for (l=0; l<HASHSTATE; ++l)
sbin/unwind/libunbound/util/storage/lookup3.c
1047
e[l] &= (c[l]^d[l]);
sbin/unwind/libunbound/util/storage/lookup3.c
1048
f[l] &= ~(c[l]^d[l]);
sbin/unwind/libunbound/util/storage/lookup3.c
1049
g[l] &= c[l];
sbin/unwind/libunbound/util/storage/lookup3.c
1050
h[l] &= ~c[l];
sbin/unwind/libunbound/util/storage/lookup3.c
1051
x[l] &= d[l];
sbin/unwind/libunbound/util/storage/lookup3.c
1052
y[l] &= ~d[l];
sbin/unwind/libunbound/util/storage/lookup3.c
1053
if (e[l]|f[l]|g[l]|h[l]|x[l]|y[l]) finished=0;
sbin/unwind/libunbound/util/winsock_event.c
508
int t, l;
sbin/unwind/libunbound/util/winsock_event.c
520
l = sizeof(t);
sbin/unwind/libunbound/util/winsock_event.c
522
(void*)&t, &l) != 0)
sbin/unwind/libunbound/util/winsock_event.c
531
l = sizeof(b);
sbin/unwind/libunbound/util/winsock_event.c
533
(void*)&b, &l) != 0)
sbin/unwind/libunbound/validator/val_utils.c
1167
check_no_anchor(struct val_anchors* anchors, uint8_t* nm, size_t l, uint16_t c)
sbin/unwind/libunbound/validator/val_utils.c
1170
if((ta=anchors_lookup(anchors, nm, l, c))) {
sys/arch/alpha/alpha/in_cksum.c
62
l_util.l = q_util.s[0] + q_util.s[1] + q_util.s[2] + q_util.s[3]; \
sys/arch/alpha/alpha/in_cksum.c
77
u_int32_t l;
sys/arch/alpha/alpha/in_cksum.c
81
u_int32_t l[2];
sys/arch/alpha/eisa/eisa_machdep.h
62
#define eisa_intr_establish(c, h, t, l, f, a, nm) \
sys/arch/alpha/eisa/eisa_machdep.h
63
(*(c)->ec_intr_establish)((c)->ec_v, (h), (t), (l), (f), (a), (nm))
sys/arch/alpha/include/bus.h
248
#define bus_space_barrier(t, h, o, l, f) \
sys/arch/alpha/include/bus.h
249
(*(t)->abs_barrier)((t)->abs_cookie, (h), (o), (l), (f))
sys/arch/alpha/isa/isa_machdep.h
53
#define isa_intr_establish(c, i, t, l, f, a, nm) \
sys/arch/alpha/isa/isa_machdep.h
54
(*(c)->ic_intr_establish)((c)->ic_v, (i), (t), (l), (f), (a), (nm))
sys/arch/alpha/pci/pci_bwx_bus_io_chipdep.c
381
__C(CHIP,_io_barrier)(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l,
sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c
407
bus_size_t l, int f)
sys/arch/alpha/pci/pci_machdep.h
112
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/alpha/pci/pci_machdep.h
113
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (h), (a), (nm))
sys/arch/alpha/pci/pci_swiz_bus_io_chipdep.c
464
__C(CHIP,_io_barrier)(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l,
sys/arch/alpha/pci/pci_swiz_bus_mem_chipdep.c
694
bus_size_t l, int f)
sys/arch/alpha/tc/tc_bus_mem.c
315
tc_mem_barrier(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l, int f)
sys/arch/amd64/amd64/bus_dma.c
520
bus_size_t l;
sys/arch/amd64/amd64/bus_dma.c
532
l = sg->ds_len - off;
sys/arch/amd64/amd64/bus_dma.c
533
if (l > size)
sys/arch/amd64/amd64/bus_dma.c
534
l = size;
sys/arch/amd64/amd64/bus_dma.c
535
size -= l;
sys/arch/amd64/amd64/bus_dma.c
542
(void *)(sg->_ds_va + off), l);
sys/arch/amd64/amd64/bus_dma.c
548
(void *)(sg->_ds_bounce_va + off), l);
sys/arch/amd64/amd64/vmm_machdep.c
5267
uint8_t l, dib;
sys/arch/amd64/amd64/vmm_machdep.c
5288
l = (cs_ar & 0x2000) >> 13;
sys/arch/amd64/amd64/vmm_machdep.c
5298
if (l)
sys/arch/amd64/amd64/vmm_machdep.c
8471
uint8_t g, type, s, dpl, p, dib, l;
sys/arch/amd64/amd64/vmm_machdep.c
8485
l = (ar & 0x2000) >> 13;
sys/arch/amd64/amd64/vmm_machdep.c
8492
g, dib, l, p, s);
sys/arch/amd64/include/bus.h
627
#define bus_dmamap_sync(t, p, o, l, ops) \
sys/arch/amd64/include/bus.h
628
(*(t)->_dmamap_sync)((t), (p), (o), (l), (ops))
sys/arch/amd64/include/bus.h
632
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/amd64/include/bus.h
634
(n), (r), (f), (l), (h))
sys/arch/amd64/include/intr.h
120
#define APIC_LEVEL(l) ((l) << 4)
sys/arch/amd64/stand/pxeboot/devopen.c
63
int i, l;
sys/arch/amd64/stand/pxeboot/devopen.c
79
l = p - fname; /* Length of device prefix. */
sys/arch/amd64/stand/pxeboot/devopen.c
82
(strncmp(fname, fs_name[i], l) == 0)) {
sys/arch/amd64/stand/rdboot/cmd.c
238
int l;
sys/arch/amd64/stand/rdboot/cmd.c
242
for (l = 0; p[l]; l++)
sys/arch/amd64/stand/rdboot/cmd.c
245
while ((*ct)->cmd_name != NULL && strncmp(p, (*ct)->cmd_name, l))
sys/arch/arm/arm/fault.c
301
if (l->l_flag & L_SA) {
sys/arch/arm/arm/fault.c
302
KDASSERT(l->l_proc->p_sa != NULL);
sys/arch/arm/arm/fault.c
303
l->l_proc->p_sa->sa_vp_faultaddr = (vaddr_t)far;
sys/arch/arm/arm/fault.c
304
l->l_flag |= L_SA_PAGEFAULT;
sys/arch/arm/include/bus.h
264
#define bus_space_barrier(t, h, o, l, f) \
sys/arch/arm/include/bus.h
265
(*(t)->bs_barrier)((t)->bs_cookie, (h), (o), (l), (f))
sys/arch/arm/include/bus.h
729
#define bus_dmamap_sync(t, p, o, l, ops) \
sys/arch/arm/include/bus.h
731
(*(t)->_dmamap_sync)((t), (p), (o), (l), (ops)) : (void)0)
sys/arch/arm/include/bus.h
735
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/arm/include/bus.h
737
(n), (r), (f), (l), (h))
sys/arch/arm/include/pci_machdep.h
100
#define pci_intr_establish_cpu(c, ih, l, ci, h, a, nm) \
sys/arch/arm/include/pci_machdep.h
101
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (ci), (h), (a),\
sys/arch/arm/include/pci_machdep.h
97
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/arm/include/pci_machdep.h
98
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), NULL, (h), (a),\
sys/arch/arm64/arm64/disasm.c
3168
OP6FUNC(op_simd_ldstnp, opc, l, imm7, Rt2, Rn, Rt)
sys/arch/arm64/arm64/disasm.c
3170
const char *op = (l == 0) ? "stnp" : "ldnp";
sys/arch/arm64/arm64/disasm.c
3194
OP6FUNC(op_simd_ldstp_postidx, opc, l, imm7, Rt2, Rn, Rt)
sys/arch/arm64/arm64/disasm.c
3196
const char *op = (l == 0) ? "stp" : "ldp";
sys/arch/arm64/arm64/disasm.c
3207
OP6FUNC(op_simd_ldstp_preidx, opc, l, imm7, Rt2, Rn, Rt)
sys/arch/arm64/arm64/disasm.c
3209
const char *op = (l == 0) ? "stp" : "ldp";
sys/arch/arm64/arm64/disasm.c
3220
OP6FUNC(op_simd_ldstp_signed, opc, l, imm7, Rt2, Rn, Rt)
sys/arch/arm64/arm64/disasm.c
3222
const char *op = (l == 0) ? "stp" : "ldp";
sys/arch/arm64/arm64/pmap.c
1025
int j, k, l;
sys/arch/arm64/arm64/pmap.c
1039
for (l = 0; l < VP_IDX3_CNT; l++) {
sys/arch/arm64/arm64/pmap.c
1040
pted = vp3->vp[l];
sys/arch/arm64/arm64/pmap.c
1043
vp3->vp[l] = NULL;
sys/arch/arm64/include/bus.h
113
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
114
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
115
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
116
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
117
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
118
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
120
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
121
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
122
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
123
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
124
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/arm64/include/bus.h
125
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/arm64/include/bus.h
436
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/arm64/include/bus.h
438
(*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0)
sys/arch/arm64/include/bus.h
442
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/arm64/include/bus.h
444
(n), (r), (f), (l), (h))
sys/arch/arm64/include/pci_machdep.h
113
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/arm64/include/pci_machdep.h
114
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), NULL, (h), (a),\
sys/arch/arm64/include/pci_machdep.h
116
#define pci_intr_establish_cpu(c, ih, l, ci, h, a, nm) \
sys/arch/arm64/include/pci_machdep.h
117
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (ci), (h), (a),\
sys/arch/hppa/dev/dino.c
597
dino_barrier(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l, int op)
sys/arch/hppa/dev/elroy.c
412
elroy_barrier(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l, int op)
sys/arch/hppa/dev/elroy.c
86
bus_size_t l, int op);
sys/arch/hppa/dev/mongoose.c
269
mg_isa_barrier(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l, int op)
sys/arch/hppa/dev/mongoose.c
80
bus_size_t l, int op);
sys/arch/hppa/dev/pdc.c
362
int err, l;
sys/arch/hppa/dev/pdc.c
368
l = pdcret[0];
sys/arch/hppa/dev/pdc.c
376
return l;
sys/arch/hppa/hppa/db_disasm.c
244
#define DeclBitfR(s,l,n) struct n { int:(HOSTWDSZ-(s)-(l)); unsigned n:l;};
sys/arch/hppa/hppa/db_disasm.c
246
#define DeclBitfR(s,l,n) struct n { int:((s)+(HOSTWDSZ-32)); unsigned n:l;};
sys/arch/hppa/hppa/db_disasm.c
261
#define BitfR(i,s,l,n) (((struct n *)&i)->n)
sys/arch/hppa/hppa/db_disasm.c
270
#define BitfX(i,s,l) (((i) >> (32-(s)-(l))) & ((1 << (l)) - 1))
sys/arch/hppa/hppa/machdep.c
1449
blink_led_register(struct blink_led *l)
sys/arch/hppa/hppa/machdep.c
1457
SLIST_INSERT_HEAD(&blink_sc.bls_head, l, bl_next);
sys/arch/hppa/hppa/machdep.c
1464
struct blink_led *l;
sys/arch/hppa/hppa/machdep.c
1470
SLIST_FOREACH(l, &sc->bls_head, bl_next) {
sys/arch/hppa/hppa/machdep.c
1471
(*l->bl_func)(l->bl_arg, sc->bls_on);
sys/arch/hppa/hppa/mainbus.c
1017
bus_size_t l = ps->ds_len - off;
sys/arch/hppa/hppa/mainbus.c
1018
if (l > len)
sys/arch/hppa/hppa/mainbus.c
1019
l = len;
sys/arch/hppa/hppa/mainbus.c
1020
fdcache(HPPA_SID_KERNEL, ps->_ds_va + off, l);
sys/arch/hppa/hppa/mainbus.c
1021
len -= l;
sys/arch/hppa/hppa/mainbus.c
359
mbus_barrier(void *v, bus_space_handle_t h, bus_size_t o, bus_size_t l, int op)
sys/arch/hppa/hppa/mainbus.c
90
bus_size_t l, int op);
sys/arch/hppa/hppa/pmap.c
49
#define DPRINTF(l,s) do { \
sys/arch/hppa/hppa/pmap.c
50
if ((pmapdebug & (l)) == (l)) \
sys/arch/hppa/hppa/pmap.c
84
#define DPRINTF(l,s) /* */
sys/arch/hppa/include/atomic.h
16
__cpu_simple_lock_init(__cpu_simple_lock_t *l)
sys/arch/hppa/include/atomic.h
18
*l = __SIMPLELOCK_UNLOCKED;
sys/arch/hppa/include/atomic.h
22
__cpu_simple_lock_ldcws(__cpu_simple_lock_t *l)
sys/arch/hppa/include/atomic.h
26
asm volatile("ldcws 0(%2), %0" : "=&r" (o), "+m" (l) : "r" (l));
sys/arch/hppa/include/atomic.h
32
__cpu_simple_lock_try(__cpu_simple_lock_t *l)
sys/arch/hppa/include/atomic.h
34
return (__cpu_simple_lock_ldcws(l) == __SIMPLELOCK_UNLOCKED);
sys/arch/hppa/include/atomic.h
38
__cpu_simple_lock(__cpu_simple_lock_t *l)
sys/arch/hppa/include/atomic.h
40
while (!__cpu_simple_lock_ldcws(l))
sys/arch/hppa/include/atomic.h
45
__cpu_simple_unlock(__cpu_simple_lock_t *l)
sys/arch/hppa/include/atomic.h
47
*l = __SIMPLELOCK_UNLOCKED;
sys/arch/hppa/include/bus.h
285
#define bus_space_barrier(t,h,o,l,op) \
sys/arch/hppa/include/bus.h
286
((t)->hbt_barrier((t)->hbt_cookie, (h), (o), (l), (op)))
sys/arch/hppa/include/bus.h
387
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/hppa/include/bus.h
389
(*(t)->_dmamap_sync)((t)->_cookie, (p), (a), (l), (o)) : (void)0)
sys/arch/hppa/include/bus.h
55
bus_size_t o, bus_size_t l, int op);
sys/arch/hppa/include/eisa_machdep.h
66
#define eisa_intr_establish(c, h, t, l, f, a, nm) \
sys/arch/hppa/include/eisa_machdep.h
67
(*(c)->ec_intr_establish)((c)->ec_v, (h), (t), (l), (f), (a), (nm))
sys/arch/hppa/include/isa_machdep.h
52
#define isa_intr_establish(c, i, t, l, f, a, nm) \
sys/arch/hppa/include/isa_machdep.h
53
(*(c)->ic_intr_establish)((c)->ic_v, (i), (t), (l), (f), (a), (nm))
sys/arch/hppa/include/pci_machdep.h
88
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/hppa/include/pci_machdep.h
89
(*(c)->pc_intr_establish)((c)->_cookie, (ih), (l), (h), (a), (nm))
sys/arch/hppa/include/pdc.h
664
#define PZL_BITS(l) (((l) & 0x03) + 5)
sys/arch/hppa/include/pdc.h
665
#define PZL_PARITY(l) (((l) & 0x18) >> 3)
sys/arch/hppa/include/pdc.h
666
#define PZL_SPEED(l) (((l) & 0x3c0) >> 6)
sys/arch/hppa/stand/libsa/itecons.c
165
int err, c, l, i;
sys/arch/hppa/stand/libsa/itecons.c
182
l = pdcbuf[0];
sys/arch/hppa/stand/libsa/itecons.c
190
if (!i-- && (dev & 0x80) && l == 0) {
sys/arch/hppa/stand/libsa/itecons.c
194
dev, l, c);
sys/arch/hppa/stand/libsa/itecons.c
198
} while(!l);
sys/arch/hppa/stand/libsa/itecons.c
201
if (debug && l > 1)
sys/arch/hppa/stand/libsa/itecons.c
202
printf("KBD input got too much (%d)\n", l);
sys/arch/hppa/stand/libsa/lif.c
59
int err, l;
sys/arch/hppa/stand/libsa/lif.c
84
for (p = path + (l = strlen(path)); p >= path; p--)
sys/arch/i386/i386/apm.c
736
u_int cbase, clen, l;
sys/arch/i386/i386/apm.c
774
l = max(ap->apm_data_base + ap->apm_data_len + 1,
sys/arch/i386/i386/apm.c
779
l, 1, &dh);
sys/arch/i386/include/bus.h
492
#define bus_space_barrier(t, h, o, l, f) do { \
sys/arch/i386/include/bus.h
493
((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f)));\
sys/arch/i386/include/bus.h
627
#define bus_dmamap_sync(t, p, o, l, ops) \
sys/arch/i386/include/bus.h
628
(*(t)->_dmamap_sync)((t), (p), (o), (l), (ops))
sys/arch/i386/include/bus.h
632
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/i386/include/bus.h
634
(n), (r), (f), (l), (h))
sys/arch/i386/pci/pci_intr_fixup.c
258
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
260
for (l = SIMPLEQ_FIRST(&pciintr_link_map_list); l != NULL;
sys/arch/i386/pci/pci_intr_fixup.c
261
l = SIMPLEQ_NEXT(l, list))
sys/arch/i386/pci/pci_intr_fixup.c
262
if (l->link == link)
sys/arch/i386/pci/pci_intr_fixup.c
263
return (l);
sys/arch/i386/pci/pci_intr_fixup.c
272
struct pciintr_link_map *l, *lstart;
sys/arch/i386/pci/pci_intr_fixup.c
309
if ((l = malloc(sizeof(*l), M_DEVBUF, M_NOWAIT|M_ZERO)) == NULL)
sys/arch/i386/pci/pci_intr_fixup.c
312
l->link = link;
sys/arch/i386/pci/pci_intr_fixup.c
313
l->bitmap = pir->linkmap[pin].bitmap;
sys/arch/i386/pci/pci_intr_fixup.c
315
l->clink = clink;
sys/arch/i386/pci/pci_intr_fixup.c
316
l->irq = irq; /* maybe I386_PCI_INTERRUPT_LINE_NO_CONNECTION */
sys/arch/i386/pci/pci_intr_fixup.c
318
l->clink = link;
sys/arch/i386/pci/pci_intr_fixup.c
319
l->irq = I386_PCI_INTERRUPT_LINE_NO_CONNECTION;
sys/arch/i386/pci/pci_intr_fixup.c
323
if (lstart == NULL || lstart->link < l->link)
sys/arch/i386/pci/pci_intr_fixup.c
324
SIMPLEQ_INSERT_TAIL(&pciintr_link_map_list, l, list);
sys/arch/i386/pci/pci_intr_fixup.c
326
SIMPLEQ_INSERT_HEAD(&pciintr_link_map_list, l, list);
sys/arch/i386/pci/pci_intr_fixup.c
328
return (l);
sys/arch/i386/pci/pci_intr_fixup.c
371
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
394
if ((l = pciintr_link_lookup(link)) == NULL)
sys/arch/i386/pci/pci_intr_fixup.c
396
else if (pir->linkmap[pin].bitmap != l->bitmap) {
sys/arch/i386/pci/pci_intr_fixup.c
405
pir->linkmap[pin].bitmap, l->bitmap));
sys/arch/i386/pci/pci_intr_fixup.c
407
l->bitmap &= pir->linkmap[pin].bitmap;
sys/arch/i386/pci/pci_intr_fixup.c
423
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
429
for (l = SIMPLEQ_FIRST(&pciintr_link_map_list); l != NULL;
sys/arch/i386/pci/pci_intr_fixup.c
430
l = SIMPLEQ_NEXT(l, list)) {
sys/arch/i386/pci/pci_intr_fixup.c
431
if (l->irq != I386_PCI_INTERRUPT_LINE_NO_CONNECTION)
sys/arch/i386/pci/pci_intr_fixup.c
433
if (pciintr_bitmap_count_irq(l->bitmap, &irq) == 1) {
sys/arch/i386/pci/pci_intr_fixup.c
434
l->irq = irq;
sys/arch/i386/pci/pci_intr_fixup.c
435
l->fixup_stage = 1;
sys/arch/i386/pci/pci_intr_fixup.c
439
l->clink, l->irq);
sys/arch/i386/pci/pci_intr_fixup.c
450
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
458
for (l = SIMPLEQ_FIRST(&pciintr_link_map_list); l != NULL;
sys/arch/i386/pci/pci_intr_fixup.c
459
l = SIMPLEQ_NEXT(l, list)) {
sys/arch/i386/pci/pci_intr_fixup.c
460
if (l->irq != I386_PCI_INTERRUPT_LINE_NO_CONNECTION) {
sys/arch/i386/pci/pci_intr_fixup.c
466
pciirq |= 1 << l->irq;
sys/arch/i386/pci/pci_intr_fixup.c
470
l->clink, l->irq);
sys/arch/i386/pci/pci_intr_fixup.c
478
l->clink);
sys/arch/i386/pci/pci_intr_fixup.c
484
if (pciintr_bitmap_count_irq(l->bitmap, &irq) == 1) {
sys/arch/i386/pci/pci_intr_fixup.c
485
l->irq = irq;
sys/arch/i386/pci/pci_intr_fixup.c
486
l->fixup_stage = 1;
sys/arch/i386/pci/pci_intr_fixup.c
489
printf(", assigning IRQ %d", l->irq);
sys/arch/i386/pci/pci_intr_fixup.c
499
for (l = SIMPLEQ_FIRST(&pciintr_link_map_list); l != NULL;
sys/arch/i386/pci/pci_intr_fixup.c
500
l = SIMPLEQ_NEXT(l, list))
sys/arch/i386/pci/pci_intr_fixup.c
501
if (l->irq == I386_PCI_INTERRUPT_LINE_NO_CONNECTION &&
sys/arch/i386/pci/pci_intr_fixup.c
502
(irq = ffs(l->bitmap & pciirq)) > 0) {
sys/arch/i386/pci/pci_intr_fixup.c
508
l->fixup_stage = 2;
sys/arch/i386/pci/pci_intr_fixup.c
509
l->irq = irq - 1;
sys/arch/i386/pci/pci_intr_fixup.c
513
l->irq, l->clink);
sys/arch/i386/pci/pci_intr_fixup.c
521
for (l = SIMPLEQ_FIRST(&pciintr_link_map_list); l != NULL;
sys/arch/i386/pci/pci_intr_fixup.c
522
l = SIMPLEQ_NEXT(l, list)) {
sys/arch/i386/pci/pci_intr_fixup.c
523
if (l->irq == I386_PCI_INTERRUPT_LINE_NO_CONNECTION &&
sys/arch/i386/pci/pci_intr_fixup.c
524
(irq = ffs(l->bitmap & pcibios_irqs_hint)) > 0) {
sys/arch/i386/pci/pci_intr_fixup.c
525
l->fixup_stage = 3;
sys/arch/i386/pci/pci_intr_fixup.c
526
l->irq = irq - 1;
sys/arch/i386/pci/pci_intr_fixup.c
530
l->irq, l->clink);
sys/arch/i386/pci/pci_intr_fixup.c
544
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
556
l = ihp->link;
sys/arch/i386/pci/pci_intr_fixup.c
557
if (!l || pciintr_icu_tag == NULL)
sys/arch/i386/pci/pci_intr_fixup.c
560
if (l->fixup_stage == 0) {
sys/arch/i386/pci/pci_intr_fixup.c
561
if (l->irq == I386_PCI_INTERRUPT_LINE_NO_CONNECTION) {
sys/arch/i386/pci/pci_intr_fixup.c
567
l->clink,
sys/arch/i386/pci/pci_intr_fixup.c
569
(l->bitmap & 0x0e00) ? (l->bitmap & 0x0e00)
sys/arch/i386/pci/pci_intr_fixup.c
570
: l->bitmap);
sys/arch/i386/pci/pci_intr_fixup.c
576
l->clink, l->irq) != 0 ||
sys/arch/i386/pci/pci_intr_fixup.c
578
l->irq, IST_LEVEL) != 0) {
sys/arch/i386/pci/pci_intr_fixup.c
586
l->clink, l->irq, p);
sys/arch/i386/pci/pci_intr_fixup.c
611
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
623
for (l = SIMPLEQ_FIRST(&pciintr_link_map_list);
sys/arch/i386/pci/pci_intr_fixup.c
624
l != NULL; l = SIMPLEQ_NEXT(l, list))
sys/arch/i386/pci/pci_intr_fixup.c
625
if (l->fixup_stage == 0 && l->irq != 0 &&
sys/arch/i386/pci/pci_intr_fixup.c
626
l->irq != I386_PCI_INTERRUPT_LINE_NO_CONNECTION) {
sys/arch/i386/pci/pci_intr_fixup.c
628
printf(" %d", l->irq);
sys/arch/i386/pci/pci_intr_fixup.c
629
pciirq |= (1 << l->irq);
sys/arch/i386/pci/pci_intr_fixup.c
653
struct pciintr_link_map *l;
sys/arch/i386/pci/pci_intr_fixup.c
670
if ((l = pciintr_link_lookup(link)) == NULL) {
sys/arch/i386/pci/pci_intr_fixup.c
683
ihp->link = l;
sys/arch/i386/pci/pci_intr_fixup.c
687
} else if (l->irq == I386_PCI_INTERRUPT_LINE_NO_CONNECTION) {
sys/arch/i386/pci/pci_intr_fixup.c
703
ihp->line = irq = l->irq;
sys/arch/i386/pci/pci_intr_fixup.c
709
ihp->line = irq = l->irq;
sys/arch/i386/pci/pci_intr_fixup.c
713
ihp->line = (l->irq = irq) | (l->clink & PCI_INT_VIA_ISA);
sys/arch/i386/pci/pci_intr_fixup.c
721
PCI_VENDOR(id), PCI_PRODUCT(id), '@' + ihp->pin, l->clink,
sys/arch/i386/pci/pci_intr_fixup.c
722
((l->irq == I386_PCI_INTERRUPT_LINE_NO_CONNECTION)?
sys/arch/i386/pci/pci_intr_fixup.c
723
-1 : l->irq), l->fixup_stage, p, irq);
sys/arch/i386/pci/pci_machdep.c
812
int l = ih.line & APIC_INT_LINE_MASK;
sys/arch/i386/pci/pci_machdep.c
872
if (l != -1 && ih.line & APIC_INT_VIA_APIC)
sys/arch/i386/pci/pci_machdep.c
876
if (l == 0 || l >= ICU_LEN || l == 2)
sys/arch/i386/pci/pci_machdep.c
877
panic("pci_intr_establish: bogus handle 0x%x", l);
sys/arch/i386/pci/pci_machdep.c
879
ret = isa_intr_establish(NULL, l, IST_LEVEL, level, func, arg, what);
sys/arch/i386/stand/libsa/debug.c
89
dump_mem(char *l, void *p, size_t n)
sys/arch/i386/stand/libsa/debug.c
93
printf("%s [%p]:%s", l, p, (n > 6? "\n":" "));
sys/arch/i386/stand/pxeboot/devopen.c
63
int i, l;
sys/arch/i386/stand/pxeboot/devopen.c
79
l = p - fname; /* Length of device prefix. */
sys/arch/i386/stand/pxeboot/devopen.c
82
(strncmp(fname, fs_name[i], l) == 0)) {
sys/arch/landisk/include/bus.h
278
#define bus_space_barrier(t, h, o, l, f) \
sys/arch/landisk/include/bus.h
279
((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f)))
sys/arch/landisk/include/bus.h
529
#define bus_dmamap_sync(t, m, o, l, op) \
sys/arch/landisk/include/bus.h
531
(*(t)->_dmamap_sync)((t), (m), (o), (l), (op)) : (void)0)
sys/arch/loongson/dev/stsec.c
56
#define STB_VALUE(h,l) (((h) << 2) | ((l) & 0x03))
sys/arch/loongson/include/bus.h
100
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
101
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
102
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
103
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
104
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
106
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
107
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
108
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
109
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
110
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/loongson/include/bus.h
111
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/loongson/include/bus.h
448
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/loongson/include/bus.h
450
(*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0)
sys/arch/loongson/include/bus.h
99
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/loongson/include/cpu.h
62
#define Mips_InvalidateICache(ci, va, l) \
sys/arch/loongson/include/cpu.h
63
Loongson2_InvalidateICache((ci), (va), (l))
sys/arch/loongson/include/cpu.h
72
#define Mips_HitSyncDCache(ci, va, l) \
sys/arch/loongson/include/cpu.h
73
Loongson2_HitSyncDCache((ci), (va), (l))
sys/arch/loongson/include/cpu.h
74
#define Mips_IOSyncDCache(ci, va, l, h) \
sys/arch/loongson/include/cpu.h
75
Loongson2_IOSyncDCache((ci), (va), (l), (h))
sys/arch/loongson/include/cpu.h
76
#define Mips_HitInvalidateDCache(ci, va, l) \
sys/arch/loongson/include/cpu.h
77
Loongson2_HitInvalidateDCache((ci), (va), (l))
sys/arch/loongson/include/cpu.h
83
#define Mips_InvalidateICache(ci, va, l) \
sys/arch/loongson/include/cpu.h
84
Loongson3_InvalidateICache((ci), (va), (l))
sys/arch/loongson/include/cpu.h
93
#define Mips_HitSyncDCache(ci, va, l) \
sys/arch/loongson/include/cpu.h
94
Loongson3_HitSyncDCache((ci), (va), (l))
sys/arch/loongson/include/cpu.h
95
#define Mips_IOSyncDCache(ci, va, l, h) \
sys/arch/loongson/include/cpu.h
96
Loongson3_IOSyncDCache((ci), (va), (l), (h))
sys/arch/loongson/include/cpu.h
97
#define Mips_HitInvalidateDCache(ci, va, l) \
sys/arch/loongson/include/cpu.h
98
Loongson3_HitInvalidateDCache((ci), (va), (l))
sys/arch/loongson/include/isa_machdep.h
41
#define isa_intr_establish(c, i, t, l, f, a, n) \
sys/arch/loongson/include/isa_machdep.h
42
(*(c)->ic_intr_establish)((c)->ic_v, (i), (t), (l), (f), (a), (n))
sys/arch/loongson/include/pci_machdep.h
82
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/loongson/include/pci_machdep.h
83
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (h), (a), (nm))
sys/arch/luna88k/cbus/nec86hw.c
73
#define DPRINTF2(l, x) if (nec86hwdebug >= l) printf x
sys/arch/luna88k/cbus/nec86hw.c
77
#define DPRINTF2(l, x)
sys/arch/luna88k/dev/if_le.c
188
int u, l;
sys/arch/luna88k/dev/if_le.c
192
l = fuse_rom_data[loc + 1];
sys/arch/luna88k/dev/if_le.c
193
l = (l < 'A') ? l & 0xf : l - 'A' + 10;
sys/arch/luna88k/dev/if_le.c
195
ether[i] = l | (u << 4);
sys/arch/luna88k/dev/if_le.c
203
unsigned u, l, hex;
sys/arch/luna88k/dev/if_le.c
208
l = 0x0f & (ds1220->ctl >> 16);
sys/arch/luna88k/dev/if_le.c
209
hex = (u < '9') ? l : l + 9;
sys/arch/luna88k/dev/if_le.c
214
l = 0x0f & (ds1220->ctl >> 16);
sys/arch/luna88k/dev/if_le.c
216
ether[i] = ((u < '9') ? l : l + 9) | (hex << 4);
sys/arch/luna88k/include/bus.h
559
#define bus_space_barrier(t, h, o, l, f) \
sys/arch/luna88k/include/bus.h
560
((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f)))
sys/arch/luna88k/luna88k/machdep.c
1101
(((p->l) >> 28) & 0x0000000f));
sys/arch/luna88k/luna88k/machdep.c
151
u_int32_t l;
sys/arch/luna88k/stand/boot/if_le.c
242
int u, l;
sys/arch/luna88k/stand/boot/if_le.c
246
l = fuse_rom_data[loc + 1];
sys/arch/luna88k/stand/boot/if_le.c
247
l = (l < 'A') ? l & 0xf : l - 'A' + 10;
sys/arch/luna88k/stand/boot/if_le.c
249
ether[i] = l | (u << 4);
sys/arch/luna88k/stand/boot/if_le.c
257
unsigned int u, l, hex;
sys/arch/luna88k/stand/boot/if_le.c
262
l = 0x0f & (ds1220->ctl >> 16);
sys/arch/luna88k/stand/boot/if_le.c
263
hex = (u < '9') ? l : l + 9;
sys/arch/luna88k/stand/boot/if_le.c
268
l = 0x0f & (ds1220->ctl >> 16);
sys/arch/luna88k/stand/boot/if_le.c
270
ether[i] = ((u < '9') ? l : l + 9) | (hex << 4);
sys/arch/luna88k/stand/boot/init_main.c
131
u_int32_t l;
sys/arch/luna88k/stand/boot/init_main.c
200
(((p->l) >> 28) & 0x0000000f));
sys/arch/m88k/include/lock.h
39
__cpu_simple_lock_init(__cpu_simple_lock_t *l)
sys/arch/m88k/include/lock.h
41
*l = __SIMPLELOCK_UNLOCKED;
sys/arch/m88k/include/lock.h
45
__cpu_simple_lock_try(__cpu_simple_lock_t *l)
sys/arch/m88k/include/lock.h
55
("xmem %0, %2, %%r0" : "+r"(old), "+m"(*l) : "r"(l));
sys/arch/m88k/include/lock.h
61
__cpu_simple_lock(__cpu_simple_lock_t *l)
sys/arch/m88k/include/lock.h
64
if (__cpu_simple_lock_try(l) != 0)
sys/arch/m88k/include/lock.h
66
while (*l != __SIMPLELOCK_UNLOCKED)
sys/arch/m88k/include/lock.h
72
__cpu_simple_unlock(__cpu_simple_lock_t *l)
sys/arch/m88k/include/lock.h
74
*l = __SIMPLELOCK_UNLOCKED;
sys/arch/m88k/m88k/db_interface.c
540
vaddr_t l;
sys/arch/m88k/m88k/db_interface.c
542
l = PC_REGS(&ddb_regs); /* clear low bits */
sys/arch/m88k/m88k/db_interface.c
544
db_find_xtrn_sym_and_offset(l, &name, &offset);
sys/arch/m88k/m88k/db_interface.c
546
db_printf("stopped at 0x%lx (%s+0x%lx)\n", l, name, offset);
sys/arch/m88k/m88k/db_interface.c
548
db_printf("stopped at 0x%lx\n", l);
sys/arch/macppc/dev/awacs.c
660
int l, r;
sys/arch/macppc/dev/awacs.c
664
l = mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT];
sys/arch/macppc/dev/awacs.c
683
awacs_set_speaker_volume(sc, l, r);
sys/arch/macppc/dev/awacs.c
687
awacs_set_ext_volume(sc, l, r);
sys/arch/macppc/dev/awacs.c
692
sc->sc_codecctl0 |= (l & 0xf0) | (r >> 4);
sys/arch/macppc/dev/awacs.c
730
int vol, l, r;
sys/arch/macppc/dev/awacs.c
741
l = (15 - ((vol & 0x3c0) >> 6)) * 16;
sys/arch/macppc/dev/awacs.c
745
mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = l;
sys/arch/macppc/dev/awacs.c
751
l = (15 - ((vol & 0x3c0) >> 6)) * 16;
sys/arch/macppc/dev/awacs.c
755
mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = l;
sys/arch/macppc/dev/awacs.c
765
l = (vol & 0xf0);
sys/arch/macppc/dev/awacs.c
769
mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = l;
sys/arch/macppc/dev/i2s.c
315
int l, r;
sys/arch/macppc/dev/i2s.c
319
l = mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT];
sys/arch/macppc/dev/i2s.c
342
(*sc->sc_setvolume)(sc, l, r);
sys/arch/macppc/dev/i2s.c
371
(*sc->sc_setbass)(sc, l);
sys/arch/macppc/dev/i2s.c
376
(*sc->sc_settreble)(sc, l);
sys/arch/macppc/dev/snapper.c
491
int l, r;
sys/arch/macppc/dev/snapper.c
496
l = nentries - (left * nentries / 256);
sys/arch/macppc/dev/snapper.c
500
left, l, nentries,
sys/arch/macppc/dev/snapper.c
502
if (l >= nentries)
sys/arch/macppc/dev/snapper.c
503
l = nentries-1;
sys/arch/macppc/dev/snapper.c
507
vol[0] = snapper_volumetab[l].high;
sys/arch/macppc/dev/snapper.c
508
vol[1] = snapper_volumetab[l].mid;
sys/arch/macppc/dev/snapper.c
509
vol[2] = snapper_volumetab[l].low;
sys/arch/macppc/include/bus.h
472
#define bus_space_barrier(t, h, o, l, f) \
sys/arch/macppc/include/bus.h
473
((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f)))
sys/arch/macppc/include/bus.h
576
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/macppc/include/bus.h
578
(*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0)
sys/arch/macppc/include/bus.h
582
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/macppc/include/bus.h
584
(n), (r), (f), (l), (h))
sys/arch/macppc/macppc/ofw_machdep.c
611
int l;
sys/arch/macppc/macppc/ofw_machdep.c
613
while ((l = OF_read(OF_stdin, &ch, 1)) != 1)
sys/arch/macppc/macppc/ofw_machdep.c
614
if (l != -2 && l != 0)
sys/arch/macppc/macppc/opendev.c
169
int l, ret;
sys/arch/macppc/macppc/opendev.c
171
if ((l = strlen(dname)) >= PAGE_SIZE)
sys/arch/macppc/macppc/opendev.c
174
ofbcopy(dname, OF_buf, l + 1);
sys/arch/macppc/macppc/opendev.c
225
int act = 0, l, ret;
sys/arch/macppc/macppc/opendev.c
230
for (; len > 0; len -= l, addr += l) {
sys/arch/macppc/macppc/opendev.c
231
l = min(PAGE_SIZE, len);
sys/arch/macppc/macppc/opendev.c
232
args.len = l;
sys/arch/macppc/macppc/opendev.c
241
if (args.actual < l) {
sys/arch/macppc/macppc/opendev.c
272
int act = 0, l, ret;
sys/arch/macppc/macppc/opendev.c
277
for (; len > 0; len -= l, addr += l) {
sys/arch/macppc/macppc/opendev.c
278
l = min(PAGE_SIZE, len);
sys/arch/macppc/macppc/opendev.c
279
ofbcopy(addr, OF_buf, l);
sys/arch/macppc/macppc/opendev.c
280
args.len = l;
sys/arch/macppc/macppc/opendev.c
285
l = args.actual;
sys/arch/macppc/macppc/opendev.c
286
act += l;
sys/arch/macppc/macppc/openfirm.c
345
int l;
sys/arch/macppc/macppc/openfirm.c
347
if ((l = strlen(bootspec)) >= NBPG)
sys/arch/macppc/stand/Locore.c
536
int l;
sys/arch/macppc/stand/Locore.c
542
l = OF_read(stdin, &ch, 1);
sys/arch/macppc/stand/Locore.c
543
if (l == 1) {
sys/arch/macppc/stand/Locore.c
556
while ((l = OF_read(stdin, &ch, 1)) != 1)
sys/arch/macppc/stand/Locore.c
557
if (l != -2 && l != 0)
sys/arch/macppc/stand/main.c
100
l = strlen(args) + 1;
sys/arch/macppc/stand/main.c
101
bcopy(&ssym, args + l, sizeof(ssym));
sys/arch/macppc/stand/main.c
102
l += sizeof(ssym);
sys/arch/macppc/stand/main.c
103
bcopy(&esym, args + l, sizeof(esym));
sys/arch/macppc/stand/main.c
104
l += sizeof(esym);
sys/arch/macppc/stand/main.c
111
bcopy(&machine_tag, args + l, sizeof(machine_tag));
sys/arch/macppc/stand/main.c
112
l += sizeof(machine_tag);
sys/arch/macppc/stand/main.c
115
OF_chain((void *)RELOC, end - (char *)RELOC, entry, args, l);
sys/arch/macppc/stand/main.c
89
int l;
sys/arch/mips64/include/cpu.h
519
#define Mips_InvalidateICache(ci, va, l) \
sys/arch/mips64/include/cpu.h
520
((ci)->ci_InvalidateICache)(ci, va, l)
sys/arch/mips64/include/cpu.h
539
#define Mips_HitSyncDCache(ci, va, l) \
sys/arch/mips64/include/cpu.h
540
((ci)->ci_HitSyncDCache)(ci, va, l)
sys/arch/mips64/include/cpu.h
543
#define Mips_HitInvalidateDCache(ci, va, l) \
sys/arch/mips64/include/cpu.h
544
((ci)->ci_HitInvalidateDCache)(ci, va, l)
sys/arch/mips64/include/cpu.h
547
#define Mips_IOSyncDCache(ci, va, l, h) \
sys/arch/mips64/include/cpu.h
548
((ci)->ci_IOSyncDCache)(ci, va, l, h)
sys/arch/mips64/mips64/cache_mips64r2.c
101
l = (cfg >> 20) & 0x0f;
sys/arch/mips64/mips64/cache_mips64r2.c
103
if (l != 0) {
sys/arch/mips64/mips64/cache_mips64r2.c
104
ci->ci_l3.linesize = 2 << l;
sys/arch/mips64/mips64/cache_mips64r2.c
60
uint32_t s, l, a;
sys/arch/mips64/mips64/cache_mips64r2.c
69
l = (cfg & CONFIG1_DL) >> CONFIG1_DL_SHIFT;
sys/arch/mips64/mips64/cache_mips64r2.c
71
ci->ci_l1data.linesize = 2 << l;
sys/arch/mips64/mips64/cache_mips64r2.c
77
l = (cfg & CONFIG1_IL) >> CONFIG1_IL_SHIFT;
sys/arch/mips64/mips64/cache_mips64r2.c
79
ci->ci_l1inst.linesize = 2 << l;
sys/arch/mips64/mips64/cache_mips64r2.c
91
l = (cfg >> 4) & 0x0f;
sys/arch/mips64/mips64/cache_mips64r2.c
93
if (l != 0) {
sys/arch/mips64/mips64/cache_mips64r2.c
94
ci->ci_l2.linesize = 2 << l;
sys/arch/mips64/mips64/cache_octeon.c
134
l = (cfg >> 4) & 0x0f;
sys/arch/mips64/mips64/cache_octeon.c
137
ci->ci_l2.linesize = 2 << l;
sys/arch/mips64/mips64/cache_octeon.c
64
uint32_t s, l, a;
sys/arch/mips64/mips64/cache_octeon.c
78
l = (cfg >> 19) & 0x07;
sys/arch/mips64/mips64/cache_octeon.c
80
ci->ci_l1inst.linesize = 2 << l;
sys/arch/octeon/include/bus.h
100
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
101
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
102
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
103
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
105
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
106
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
107
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
108
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
109
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
110
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/octeon/include/bus.h
414
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/octeon/include/bus.h
416
(*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0)
sys/arch/octeon/include/bus.h
98
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/octeon/include/bus.h
99
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/octeon/include/cpu.h
100
Octeon_HitInvalidateDCache((ci), (va), (l))
sys/arch/octeon/include/cpu.h
85
#define Mips_InvalidateICache(ci, va, l) \
sys/arch/octeon/include/cpu.h
86
Octeon_InvalidateICache((ci), (va), (l))
sys/arch/octeon/include/cpu.h
95
#define Mips_HitSyncDCache(ci, va, l) \
sys/arch/octeon/include/cpu.h
96
Octeon_HitSyncDCache((ci), (va), (l))
sys/arch/octeon/include/cpu.h
97
#define Mips_IOSyncDCache(ci, va, l, h) \
sys/arch/octeon/include/cpu.h
98
Octeon_IOSyncDCache((ci), (va), (l), (h))
sys/arch/octeon/include/cpu.h
99
#define Mips_HitInvalidateDCache(ci, va, l) \
sys/arch/octeon/include/pci_machdep.h
124
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/octeon/include/pci_machdep.h
125
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (h), (a), (nm))
sys/arch/octeon/stand/rdboot/cmd.c
234
int l;
sys/arch/octeon/stand/rdboot/cmd.c
238
for (l = 0; p[l]; l++)
sys/arch/octeon/stand/rdboot/cmd.c
241
while ((*ct)->cmd_name != NULL && strncmp(p, (*ct)->cmd_name, l))
sys/arch/powerpc/include/asm.h
61
addi 0, 11,_TMP_LABEL(y)@l; \
sys/arch/powerpc/include/asm.h
83
lwz reg, ((__retguard_ ## x - 66b)@l)(reg)
sys/arch/powerpc/include/asm.h
87
lwz reg, ((__retguard_ ## x)@l)(reg)
sys/arch/powerpc/include/cpu.h
232
int l;
sys/arch/powerpc/include/cpu.h
236
l = len;
sys/arch/powerpc/include/cpu.h
241
} while ((l -= CACHELINESIZE) > 0);
sys/arch/powerpc/include/cpu.h
248
int l;
sys/arch/powerpc/include/cpu.h
252
l = len;
sys/arch/powerpc/include/cpu.h
257
} while ((l -= CACHELINESIZE) > 0);
sys/arch/powerpc/powerpc/pmap.c
1759
size_t l;
sys/arch/powerpc/powerpc/pmap.c
1766
l = (PPC_USER_ADDR + PPC_SEGMENT_LENGTH) - p;
sys/arch/powerpc/powerpc/pmap.c
1767
if (l > len)
sys/arch/powerpc/powerpc/pmap.c
1768
l = len;
sys/arch/powerpc/powerpc/pmap.c
1775
bcopy(p, kaddr, l);
sys/arch/powerpc/powerpc/pmap.c
1777
udaddr += l;
sys/arch/powerpc/powerpc/pmap.c
1778
kaddr += l;
sys/arch/powerpc/powerpc/pmap.c
1779
len -= l;
sys/arch/powerpc/powerpc/pmap.c
1789
size_t l;
sys/arch/powerpc/powerpc/pmap.c
1796
l = (PPC_USER_ADDR + PPC_SEGMENT_LENGTH) - p;
sys/arch/powerpc/powerpc/pmap.c
1797
if (l > len)
sys/arch/powerpc/powerpc/pmap.c
1798
l = len;
sys/arch/powerpc/powerpc/pmap.c
1806
bcopy(kaddr, p, l);
sys/arch/powerpc/powerpc/pmap.c
1808
udaddr += l;
sys/arch/powerpc/powerpc/pmap.c
1809
kaddr += l;
sys/arch/powerpc/powerpc/pmap.c
1810
len -= l;
sys/arch/powerpc/powerpc/pmap.c
1848
size_t l;
sys/arch/powerpc/powerpc/pmap.c
1856
l = (PPC_USER_ADDR + PPC_SEGMENT_LENGTH) - p;
sys/arch/powerpc/powerpc/pmap.c
1858
if (l > len)
sys/arch/powerpc/powerpc/pmap.c
1859
l = len;
sys/arch/powerpc/powerpc/pmap.c
1860
len -= l;
sys/arch/powerpc/powerpc/pmap.c
1870
while (l > 0) {
sys/arch/powerpc/powerpc/pmap.c
1883
l--;
sys/arch/powerpc/powerpc/pmap.c
1904
size_t l;
sys/arch/powerpc/powerpc/pmap.c
1912
l = (PPC_USER_ADDR + PPC_SEGMENT_LENGTH) - p;
sys/arch/powerpc/powerpc/pmap.c
1914
if (l > len)
sys/arch/powerpc/powerpc/pmap.c
1915
l = len;
sys/arch/powerpc/powerpc/pmap.c
1916
len -= l;
sys/arch/powerpc/powerpc/pmap.c
1926
while (l > 0) {
sys/arch/powerpc/powerpc/pmap.c
1939
l--;
sys/arch/powerpc64/include/asm.h
33
addi %r2, %r2, .TOC.-_GEP_LABEL(x)@l; \
sys/arch/powerpc64/include/asm.h
47
addi %r0, %r11, _TMP_LABEL(y)@toc@l; \
sys/arch/powerpc64/include/asm.h
67
ld reg, ((__retguard_ ## x)@toc@l)(reg); \
sys/arch/powerpc64/include/asm.h
73
ld %r12, ((__retguard_ ## x)@toc@l)(%r12); \
sys/arch/powerpc64/include/bus.h
108
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
109
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
110
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
111
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
112
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
113
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
115
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
116
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
117
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
118
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
119
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/powerpc64/include/bus.h
120
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/powerpc64/include/bus.h
425
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/powerpc64/include/bus.h
427
(*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0)
sys/arch/powerpc64/include/pci_machdep.h
106
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/powerpc64/include/pci_machdep.h
107
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), NULL, (h), (a),\
sys/arch/powerpc64/include/pci_machdep.h
109
#define pci_intr_establish_cpu(c, ih, l, ci, h, a, nm) \
sys/arch/powerpc64/include/pci_machdep.h
110
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (ci), (h), (a),\
sys/arch/powerpc64/stand/rdboot/cmd.c
232
int l;
sys/arch/powerpc64/stand/rdboot/cmd.c
236
for (l = 0; p[l]; l++)
sys/arch/powerpc64/stand/rdboot/cmd.c
239
while ((*ct)->cmd_name != NULL && strncmp(p, (*ct)->cmd_name, l))
sys/arch/riscv64/include/bus.h
114
#define bus_space_read_raw_multi_2(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
115
(*(t)->_space_read_raw_2)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
116
#define bus_space_read_raw_multi_4(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
117
(*(t)->_space_read_raw_4)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
118
#define bus_space_read_raw_multi_8(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
119
(*(t)->_space_read_raw_8)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
121
#define bus_space_write_raw_multi_2(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
122
(*(t)->_space_write_raw_2)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
123
#define bus_space_write_raw_multi_4(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
124
(*(t)->_space_write_raw_4)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
125
#define bus_space_write_raw_multi_8(t, h, a, b, l) \
sys/arch/riscv64/include/bus.h
126
(*(t)->_space_write_raw_8)((t), (h), (a), (b), (l))
sys/arch/riscv64/include/bus.h
444
#define bus_dmamap_sync(t, p, a, l, o) \
sys/arch/riscv64/include/bus.h
446
(*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0)
sys/arch/riscv64/include/bus.h
450
#define bus_dmamem_alloc_range(t, s, a, b, sg, n, r, f, l, h) \
sys/arch/riscv64/include/bus.h
452
(n), (r), (f), (l), (h))
sys/arch/riscv64/include/pci_machdep.h
111
#define pci_intr_establish(c, ih, l, h, a, nm) \
sys/arch/riscv64/include/pci_machdep.h
112
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), NULL, (h), (a),\
sys/arch/riscv64/include/pci_machdep.h
114
#define pci_intr_establish_cpu(c, ih, l, ci, h, a, nm) \
sys/arch/riscv64/include/pci_machdep.h
115
(*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (ci), (h), (a),\
sys/arch/riscv64/riscv64/pmap.c
967
int j, k, l;
sys/arch/riscv64/riscv64/pmap.c
986
for (l = 0; l < VP_IDX3_CNT; l++) {
sys/arch/riscv64/riscv64/pmap.c
987
pted = vp3->vp[l];
sys/arch/riscv64/riscv64/pmap.c
990
vp3->vp[l] = NULL;
sys/arch/sh/include/asm.h
130
mov.l r12, @-sp; \
sys/arch/sh/include/asm.h
138
mov.l got, r12; \
sys/arch/sh/include/asm.h
143
mov.l @sp+, r12
sys/arch/sh/include/asm.h
66
mov.l 1f,r1 ; \
sys/arch/sh/include/locore.h
125
mov.l @r14+, r0 /* tf_spc */ ;\
sys/arch/sh/include/locore.h
127
mov.l @r14+, r0 /* tf_ssr */ ;\
sys/arch/sh/include/locore.h
129
ldc.l @r14+, gbr /* tf_gbr */ ;\
sys/arch/sh/include/locore.h
130
lds.l @r14+, macl /* tf_macl*/ ;\
sys/arch/sh/include/locore.h
131
lds.l @r14+, mach /* tf_mach*/ ;\
sys/arch/sh/include/locore.h
132
lds.l @r14+, pr /* tf_pr */ ;\
sys/arch/sh/include/locore.h
133
mov.l @r14+, r13 /* tf_r13 */ ;\
sys/arch/sh/include/locore.h
134
mov.l @r14+, r12 /* tf_r12 */ ;\
sys/arch/sh/include/locore.h
135
mov.l @r14+, r11 /* tf_r11 */ ;\
sys/arch/sh/include/locore.h
136
mov.l @r14+, r10 /* tf_r10 */ ;\
sys/arch/sh/include/locore.h
137
mov.l @r14+, r9 /* tf_r9 */ ;\
sys/arch/sh/include/locore.h
138
mov.l @r14+, r8 /* tf_r8 */ ;\
sys/arch/sh/include/locore.h
139
mov.l @r14+, r7 /* tf_r7 */ ;\
sys/arch/sh/include/locore.h
140
mov.l @r14+, r6 /* tf_r6 */ ;\
sys/arch/sh/include/locore.h
141
mov.l @r14+, r5 /* tf_r5 */ ;\
sys/arch/sh/include/locore.h
142
mov.l @r14+, r4 /* tf_r4 */ ;\
sys/arch/sh/include/locore.h
143
mov.l @r14+, r3 /* tf_r3 */ ;\
sys/arch/sh/include/locore.h
144
mov.l @r14+, r2 /* tf_r2 */ ;\
sys/arch/sh/include/locore.h
145
mov.l @r14+, r1 /* tf_r1 */ ;\
sys/arch/sh/include/locore.h
146
mov.l @r14+, r0 /* tf_r0 */ ;\
sys/arch/sh/include/locore.h
147
mov.l @r14+ r15 /* tf_r15 */ ;\
sys/arch/sh/include/locore.h
148
mov.l @r14+, r14 /* tf_r14 */ ;\
sys/arch/sh/include/locore.h
31
#define MOV(x, r) mov.l .L_##x, r; mov.l @r, r
sys/arch/sh/include/locore.h
35
#define MOV(x, r) mov.l .L_##x, r
sys/arch/sh/include/locore.h
39
#define MOV(x, r) mov.l .L_##x, r
sys/arch/sh/include/locore.h
73
mov.l r1, @-r14 /* tf_r14 */ ;\
sys/arch/sh/include/locore.h
74
mov.l r0, @-r14 /* tf_r15 */ ;\
sys/arch/sh/include/locore.h
75
stc.l r0_bank,@-r14 /* tf_r0 */ ;\
sys/arch/sh/include/locore.h
76
stc.l r1_bank,@-r14 /* tf_r1 */ ;\
sys/arch/sh/include/locore.h
77
stc.l r2_bank,@-r14 /* tf_r2 */ ;\
sys/arch/sh/include/locore.h
78
stc.l r3_bank,@-r14 /* tf_r3 */ ;\
sys/arch/sh/include/locore.h
79
stc.l r4_bank,@-r14 /* tf_r4 */ ;\
sys/arch/sh/include/locore.h
80
stc.l r5_bank,@-r14 /* tf_r5 */ ;\
sys/arch/sh/include/locore.h
81
stc.l r6_bank,@-r14 /* tf_r6 */ ;\
sys/arch/sh/include/locore.h
82
stc.l r7_bank,@-r14 /* tf_r7 */ ;\
sys/arch/sh/include/locore.h
83
mov.l r8, @-r14 /* tf_r8 */ ;\
sys/arch/sh/include/locore.h
84
mov.l r9, @-r14 /* tf_r9 */ ;\
sys/arch/sh/include/locore.h
85
mov.l r10, @-r14 /* tf_r10 */ ;\
sys/arch/sh/include/locore.h
86
mov.l r11, @-r14 /* tf_r11 */ ;\
sys/arch/sh/include/locore.h
87
mov.l r12, @-r14 /* tf_r12 */ ;\
sys/arch/sh/include/locore.h
88
mov.l r13, @-r14 /* tf_r13 */ ;\
sys/arch/sh/include/locore.h
89
sts.l pr, @-r14 /* tf_pr */ ;\
sys/arch/sh/include/locore.h
90
sts.l mach, @-r14 /* tf_mach*/ ;\
sys/arch/sh/include/locore.h
91
sts.l macl, @-r14 /* tf_macl*/ ;\
sys/arch/sh/include/locore.h
92
stc.l gbr, @-r14 /* tf_gbr */ ;\
sys/arch/sh/include/locore.h
93
mov.l r2, @-r14 /* tf_ssr */ ;\
sys/arch/sh/include/locore.h
94
stc.l spc, @-r14 /* tf_spc */ ;\
sys/arch/sparc64/dev/ce4231.c
627
u_int8_t l, r;
sys/arch/sparc64/dev/ce4231.c
636
l = ce4231_read(sc, SP_LEFT_OUTPUT_CONTROL) &
sys/arch/sparc64/dev/ce4231.c
640
l |= (AUDIO_MAX_GAIN -
sys/arch/sparc64/dev/ce4231.c
644
ce4231_write(sc, SP_LEFT_OUTPUT_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
650
l = ce4231_read(sc, SP_LEFT_OUTPUT_CONTROL) & ~OUTPUT_MUTE;
sys/arch/sparc64/dev/ce4231.c
653
l |= OUTPUT_MUTE;
sys/arch/sparc64/dev/ce4231.c
656
ce4231_write(sc, SP_LEFT_OUTPUT_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
669
l = ce4231_read(sc, SP_LEFT_AUX1_CONTROL) &
sys/arch/sparc64/dev/ce4231.c
673
l |= (AUDIO_MAX_GAIN -
sys/arch/sparc64/dev/ce4231.c
677
ce4231_write(sc, SP_LEFT_AUX1_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
683
l = ce4231_read(sc, SP_LEFT_AUX1_CONTROL) & ~AUX_INPUT_MUTE;
sys/arch/sparc64/dev/ce4231.c
686
l |= AUX_INPUT_MUTE;
sys/arch/sparc64/dev/ce4231.c
689
ce4231_write(sc, SP_LEFT_AUX1_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
696
l = ce4231_read(sc, CS_LEFT_LINE_CONTROL) &
sys/arch/sparc64/dev/ce4231.c
700
l |= (AUDIO_MAX_GAIN -
sys/arch/sparc64/dev/ce4231.c
704
ce4231_write(sc, CS_LEFT_LINE_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
708
l = ce4231_read(sc, CS_LEFT_LINE_CONTROL) & ~LINE_INPUT_MUTE;
sys/arch/sparc64/dev/ce4231.c
711
l |= LINE_INPUT_MUTE;
sys/arch/sparc64/dev/ce4231.c
714
ce4231_write(sc, CS_LEFT_LINE_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
723
l = ce4231_read(sc, SP_DIGITAL_MIX) & ~MIX_ATTEN_MASK;
sys/arch/sparc64/dev/ce4231.c
724
l |= (AUDIO_MAX_GAIN -
sys/arch/sparc64/dev/ce4231.c
727
ce4231_write(sc, SP_DIGITAL_MIX, l);
sys/arch/sparc64/dev/ce4231.c
732
l = ce4231_read(sc, SP_DIGITAL_MIX) & ~DIGITAL_MIX1_ENABLE;
sys/arch/sparc64/dev/ce4231.c
734
l |= DIGITAL_MIX1_ENABLE;
sys/arch/sparc64/dev/ce4231.c
735
ce4231_write(sc, SP_DIGITAL_MIX, l);
sys/arch/sparc64/dev/ce4231.c
741
l = ce4231_read(sc, SP_LEFT_INPUT_CONTROL) & INPUT_GAIN_MASK;
sys/arch/sparc64/dev/ce4231.c
743
l = cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT] >> 4;
sys/arch/sparc64/dev/ce4231.c
745
ce4231_write(sc, SP_LEFT_INPUT_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
751
l = ce4231_read(sc, SP_LEFT_INPUT_CONTROL) & INPUT_SOURCE_MASK;
sys/arch/sparc64/dev/ce4231.c
753
l |= cp->un.ord << 6;
sys/arch/sparc64/dev/ce4231.c
755
ce4231_write(sc, SP_LEFT_INPUT_CONTROL, l);
sys/arch/sparc64/dev/ce4231.c
762
l = ce4231_read(sc, SP_LEFT_INPUT_CONTROL) &
sys/arch/sparc64/dev/ce4231.c
767
l |= INPUT_MIC_GAIN_ENABLE;
sys/arch/sparc64/dev/ce4231.c
770
ce4231_write(sc, SP_LEFT_INPUT_CONTROL, l);
sys/arch/sparc64/dev/consinit.c
103
int l;
sys/arch/sparc64/dev/consinit.c
108
while ((l = OF_read(stdin, &ch, 1)) != 1)
sys/arch/sparc64/dev/creator.c
295
size_t l;
sys/arch/sparc64/dev/creator.c
299
l = (sc->sc_curs_size.x * sc->sc_curs_size.y) / NBBY;
sys/arch/sparc64/dev/creator.c
300
error = copyout(sc->sc_curs_image, curs->image, l);
sys/arch/sparc64/dev/creator.c
303
error = copyout(sc->sc_curs_mask, curs->mask, l);
sys/arch/sparc64/dev/ebus.c
47
#define DPRINTF(l, s) do { if (ebus_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/ebus.c
49
#define DPRINTF(l, s)
sys/arch/sparc64/dev/ebus_mainbus.c
27
#define DPRINTF(l, s) do { if (ebus_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/ebus_mainbus.c
29
#define DPRINTF(l, s)
sys/arch/sparc64/dev/iommu.c
70
#define DPRINTF(l, s) do { if (iommudebug & l) printf s; } while (0)
sys/arch/sparc64/dev/iommu.c
72
#define DPRINTF(l, s)
sys/arch/sparc64/dev/pci_machdep.c
40
#define DPRINTF(l, s) do { if (sparc_pci_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/pci_machdep.c
42
#define DPRINTF(l, s) do { } while (0)
sys/arch/sparc64/dev/psycho.c
70
#define DPRINTF(l, s) do { if (psycho_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/psycho.c
72
#define DPRINTF(l, s)
sys/arch/sparc64/dev/pyro.c
59
#define DPRINTF(l, s) do { if (pyro_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/pyro.c
61
#define DPRINTF(l, s)
sys/arch/sparc64/dev/sbus.c
131
#define DPRINTF(l, s) do { if (sbus_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/sbus.c
133
#define DPRINTF(l, s)
sys/arch/sparc64/dev/schizo.c
62
#define DPRINTF(l, s) do { if (schizo_debug & l) printf s; } while (0)
sys/arch/sparc64/dev/schizo.c
64
#define DPRINTF(l, s)
sys/arch/sparc64/dev/viommu.c
73
#define DPRINTF(l, s) do { if (iommudebug & l) printf s; } while (0)
sys/arch/sparc64/dev/viommu.c
75
#define DPRINTF(l, s)
sys/arch/sparc64/fpu/fpu_explode.c
206
fpu_qtof(struct fpn *fp, u_int i, u_int j, u_int k, u_int l)
sys/arch/sparc64/fpu/fpu_explode.c
219
f2 = (k << EXT_SHIFT) | (l >> (32 - EXT_SHIFT));
sys/arch/sparc64/fpu/fpu_explode.c
220
f3 = l << EXT_SHIFT;
sys/arch/sparc64/fpu/fpu_explode.c
221
frac |= j | k | l;
sys/arch/sparc64/fpu/fpu_explode.c
235
u_int64_t l, *xspace;
sys/arch/sparc64/fpu/fpu_explode.c
238
l = xspace[0];
sys/arch/sparc64/fpu/fpu_explode.c
241
fp->fp_sign = (type == FTYPE_LNG) ? l >> 63 : s >> 31;
sys/arch/sparc64/fpu/fpu_explode.c
246
DPRINTF(FPE_INSN, ("LNG: %llx", l));
sys/arch/sparc64/fpu/fpu_explode.c
247
s = fpu_xtof(fp, l);
sys/arch/sparc64/include/bus.h
109
#define BUS_SPACE_PRINTF(l, s)
sys/arch/sparc64/include/bus.h
554
bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t p, bus_addr_t o, bus_size_t l,
sys/arch/sparc64/include/bus.h
559
_BD_CALL(t, _dmamap_sync)(t, t0, p, o, l, ops);
sys/arch/sparc64/include/bus.h
89
#define BUS_SPACE_PRINTF(l, s) do { \
sys/arch/sparc64/include/bus.h
90
if(bus_space_debug & (l)) printf s; \
sys/arch/sparc64/sparc64/autoconf.c
185
#define DPRINTF(l, s) do { if (autoconf_debug & l) printf s; } while (0)
sys/arch/sparc64/sparc64/autoconf.c
187
#define DPRINTF(l, s)
sys/arch/sparc64/sparc64/cpu.c
243
register int i, l;
sys/arch/sparc64/sparc64/cpu.c
284
l = getpropint(node, "icache-line-size", 0);
sys/arch/sparc64/sparc64/cpu.c
285
if (l == 0)
sys/arch/sparc64/sparc64/cpu.c
286
l = getpropint(node, "l1-icache-line-size", 0);
sys/arch/sparc64/sparc64/cpu.c
287
cacheinfo.ic_linesize = l;
sys/arch/sparc64/sparc64/cpu.c
288
for (i = 0; (1 << i) < l && l; i++)
sys/arch/sparc64/sparc64/cpu.c
290
if ((1 << i) != l && l)
sys/arch/sparc64/sparc64/cpu.c
291
panic("bad icache line size %d", l);
sys/arch/sparc64/sparc64/cpu.c
296
cacheinfo.ic_totalsize = l *
sys/arch/sparc64/sparc64/cpu.c
300
l = getpropint(node, "dcache-line-size", 0);
sys/arch/sparc64/sparc64/cpu.c
301
if (l == 0)
sys/arch/sparc64/sparc64/cpu.c
302
l = getpropint(node, "l1-dcache-line-size", 0);
sys/arch/sparc64/sparc64/cpu.c
303
cacheinfo.dc_linesize = l;
sys/arch/sparc64/sparc64/cpu.c
304
for (i = 0; (1 << i) < l && l; i++)
sys/arch/sparc64/sparc64/cpu.c
306
if ((1 << i) != l && l)
sys/arch/sparc64/sparc64/cpu.c
307
panic("bad dcache line size %d", l);
sys/arch/sparc64/sparc64/cpu.c
312
cacheinfo.dc_totalsize = l *
sys/arch/sparc64/sparc64/cpu.c
316
l = getpropint(node, "ecache-line-size", 0);
sys/arch/sparc64/sparc64/cpu.c
317
if (l == 0)
sys/arch/sparc64/sparc64/cpu.c
318
l = getpropint(node, "l2-cache-line-size", 0);
sys/arch/sparc64/sparc64/cpu.c
319
cacheinfo.ec_linesize = l;
sys/arch/sparc64/sparc64/cpu.c
320
for (i = 0; (1 << i) < l && l; i++)
sys/arch/sparc64/sparc64/cpu.c
322
if ((1 << i) != l && l)
sys/arch/sparc64/sparc64/cpu.c
323
panic("bad ecache line size %d", l);
sys/arch/sparc64/sparc64/cpu.c
328
cacheinfo.ec_totalsize = l *
sys/arch/sparc64/sparc64/db_interface.c
858
struct lock *l;
sys/arch/sparc64/sparc64/db_interface.c
865
l = (struct lock *)addr;
sys/arch/sparc64/sparc64/db_interface.c
868
l->lk_flags, l->lk_waitcount,
sys/arch/sparc64/sparc64/db_interface.c
869
l->lk_sharecount, l->lk_exclusivecount, l->lk_wmesg,
sys/arch/sparc64/sparc64/db_interface.c
870
l->lk_recurselevel);
sys/arch/sparc64/sparc64/machdep.c
1884
bus_intr_establish(bus_space_tag_t t, int p, int l, int f, int (*h)(void *),
sys/arch/sparc64/sparc64/machdep.c
1891
ret = _BS_CALL(t, sparc_intr_establish)(t, t0, p, l, f, h, a, w);
sys/arch/sparc64/sparc64/machdep.c
1897
bus_intr_establish_cpu(bus_space_tag_t t, int p, int l, int f,
sys/arch/sparc64/sparc64/machdep.c
1904
return (bus_intr_establish(t, p, l, f, h, a, w));
sys/arch/sparc64/sparc64/machdep.c
1907
ret = _BS_CALL(t, sparc_intr_establish_cpu)(t, t0, p, l, f, ci,
sys/arch/sparc64/sparc64/machdep.c
1988
blink_led_register(struct blink_led *l)
sys/arch/sparc64/sparc64/machdep.c
1996
SLIST_INSERT_HEAD(&blink_sc.bls_head, l, bl_next);
sys/arch/sparc64/sparc64/machdep.c
2003
struct blink_led *l;
sys/arch/sparc64/sparc64/machdep.c
2009
SLIST_FOREACH(l, &sc->bls_head, bl_next) {
sys/arch/sparc64/sparc64/machdep.c
2010
(*l->bl_func)(l->bl_arg, sc->bls_on);
sys/arch/sparc64/sparc64/machdep.c
243
#define CPOUTREG(l,v) copyout(&(v), (l), sizeof(v))
sys/arch/sparc64/sparc64/openfirm.c
381
int l;
sys/arch/sparc64/sparc64/openfirm.c
383
if ((l = strlen(dname)) >= NBPG)
sys/arch/sparc64/sparc64/openfirm.c
469
int l, act = 0;
sys/arch/sparc64/sparc64/openfirm.c
476
for (; len > 0; len -= l) {
sys/arch/sparc64/sparc64/openfirm.c
477
l = min(NBPG, len);
sys/arch/sparc64/sparc64/openfirm.c
478
args.len = l;
sys/arch/sparc64/sparc64/openfirm.c
484
if (args.actual < l) {
sys/arch/sparc64/sparc64/openfirm.c
508
int l, act = 0;
sys/arch/sparc64/sparc64/openfirm.c
518
for (; len > 0; len -= l) {
sys/arch/sparc64/sparc64/openfirm.c
519
l = min(NBPG, len);
sys/arch/sparc64/sparc64/openfirm.c
520
args.len = l;
sys/arch/sparc64/sparc64/openfirm.c
523
l = args.actual;
sys/arch/sparc64/sparc64/openfirm.c
524
act += l;
sys/arch/sparc64/sparc64/openfirm.c
563
int l;
sys/arch/sparc64/sparc64/openfirm.c
565
if ((l = strlen(bootspec)) >= NBPG)
sys/arch/sparc64/stand/ofwboot/Locore.c
682
int l;
sys/arch/sparc64/stand/ofwboot/Locore.c
684
while ((l = OF_read(stdin, &ch, 1)) != 1)
sys/arch/sparc64/stand/ofwboot/Locore.c
685
if (l != -2 && l != 0)
sys/arch/sparc64/stand/ofwboot/boot.c
166
int l, machine_tag;
sys/arch/sparc64/stand/ofwboot/boot.c
181
l = strlen(args) + 1;
sys/arch/sparc64/stand/ofwboot/boot.c
182
bcopy(&esym, args + l, sizeof(esym));
sys/arch/sparc64/stand/ofwboot/boot.c
183
l += sizeof(esym);
sys/arch/sparc64/stand/ofwboot/boot.c
190
bcopy(&machine_tag, args + l, sizeof(machine_tag));
sys/arch/sparc64/stand/ofwboot/boot.c
191
l += sizeof(machine_tag);
sys/arch/sparc64/stand/ofwboot/boot.c
201
l = sizeof(newargs);
sys/arch/sparc64/stand/ofwboot/boot.c
205
entry, args, l);
sys/arch/sparc64/stand/ofwboot/boot.c
209
OF_chain(entry, args, l);
sys/crypto/blf.c
523
u_int32_t l, r, d[2];
sys/crypto/blf.c
527
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/crypto/blf.c
529
d[0] = l;
sys/crypto/blf.c
532
l = d[0];
sys/crypto/blf.c
534
data[0] = l >> 24 & 0xff;
sys/crypto/blf.c
535
data[1] = l >> 16 & 0xff;
sys/crypto/blf.c
536
data[2] = l >> 8 & 0xff;
sys/crypto/blf.c
537
data[3] = l & 0xff;
sys/crypto/blf.c
549
u_int32_t l, r, d[2];
sys/crypto/blf.c
553
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/crypto/blf.c
555
d[0] = l;
sys/crypto/blf.c
558
l = d[0];
sys/crypto/blf.c
560
data[0] = l >> 24 & 0xff;
sys/crypto/blf.c
561
data[1] = l >> 16 & 0xff;
sys/crypto/blf.c
562
data[2] = l >> 8 & 0xff;
sys/crypto/blf.c
563
data[3] = l & 0xff;
sys/crypto/blf.c
575
u_int32_t l, r, d[2];
sys/crypto/blf.c
581
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/crypto/blf.c
583
d[0] = l;
sys/crypto/blf.c
586
l = d[0];
sys/crypto/blf.c
588
data[0] = l >> 24 & 0xff;
sys/crypto/blf.c
589
data[1] = l >> 16 & 0xff;
sys/crypto/blf.c
590
data[2] = l >> 8 & 0xff;
sys/crypto/blf.c
591
data[3] = l & 0xff;
sys/crypto/blf.c
604
u_int32_t l, r, d[2];
sys/crypto/blf.c
611
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/crypto/blf.c
613
d[0] = l;
sys/crypto/blf.c
616
l = d[0];
sys/crypto/blf.c
618
data[0] = l >> 24 & 0xff;
sys/crypto/blf.c
619
data[1] = l >> 16 & 0xff;
sys/crypto/blf.c
620
data[2] = l >> 8 & 0xff;
sys/crypto/blf.c
621
data[3] = l & 0xff;
sys/crypto/blf.c
631
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/crypto/blf.c
633
d[0] = l;
sys/crypto/blf.c
636
l = d[0];
sys/crypto/blf.c
638
data[0] = l >> 24 & 0xff;
sys/crypto/blf.c
639
data[1] = l >> 16 & 0xff;
sys/crypto/blf.c
640
data[2] = l >> 8 & 0xff;
sys/crypto/blf.c
641
data[3] = l & 0xff;
sys/crypto/cast.c
100
F1(r, l, 15);
sys/crypto/cast.c
101
F3(l, r, 14);
sys/crypto/cast.c
102
F2(r, l, 13);
sys/crypto/cast.c
103
F1(l, r, 12);
sys/crypto/cast.c
105
F3(r, l, 11);
sys/crypto/cast.c
106
F2(l, r, 10);
sys/crypto/cast.c
107
F1(r, l, 9);
sys/crypto/cast.c
108
F3(l, r, 8);
sys/crypto/cast.c
109
F2(r, l, 7);
sys/crypto/cast.c
110
F1(l, r, 6);
sys/crypto/cast.c
111
F3(r, l, 5);
sys/crypto/cast.c
112
F2(l, r, 4);
sys/crypto/cast.c
113
F1(r, l, 3);
sys/crypto/cast.c
114
F3(l, r, 2);
sys/crypto/cast.c
115
F2(r, l, 1);
sys/crypto/cast.c
116
F1(l, r, 0);
sys/crypto/cast.c
118
outblock[0] = U_INT8_Ta(l);
sys/crypto/cast.c
119
outblock[1] = U_INT8_Tb(l);
sys/crypto/cast.c
120
outblock[2] = U_INT8_Tc(l);
sys/crypto/cast.c
121
outblock[3] = U_INT8_Td(l);
sys/crypto/cast.c
127
t = l = r = 0;
sys/crypto/cast.c
25
#define F1(l, r, i) \
sys/crypto/cast.c
27
l ^= ((cast_sbox1[U_INT8_Ta(t)] ^ cast_sbox2[U_INT8_Tb(t)]) - \
sys/crypto/cast.c
29
#define F2(l, r, i) \
sys/crypto/cast.c
31
l ^= ((cast_sbox1[U_INT8_Ta(t)] - cast_sbox2[U_INT8_Tb(t)]) + \
sys/crypto/cast.c
33
#define F3(l, r, i) \
sys/crypto/cast.c
35
l ^= ((cast_sbox1[U_INT8_Ta(t)] + cast_sbox2[U_INT8_Tb(t)]) ^ \
sys/crypto/cast.c
44
u_int32_t t, l, r;
sys/crypto/cast.c
47
l = ((u_int32_t)inblock[0] << 24) | ((u_int32_t)inblock[1] << 16) |
sys/crypto/cast.c
52
F1(l, r, 0);
sys/crypto/cast.c
53
F2(r, l, 1);
sys/crypto/cast.c
54
F3(l, r, 2);
sys/crypto/cast.c
55
F1(r, l, 3);
sys/crypto/cast.c
56
F2(l, r, 4);
sys/crypto/cast.c
57
F3(r, l, 5);
sys/crypto/cast.c
58
F1(l, r, 6);
sys/crypto/cast.c
59
F2(r, l, 7);
sys/crypto/cast.c
60
F3(l, r, 8);
sys/crypto/cast.c
61
F1(r, l, 9);
sys/crypto/cast.c
62
F2(l, r, 10);
sys/crypto/cast.c
63
F3(r, l, 11);
sys/crypto/cast.c
66
F1(l, r, 12);
sys/crypto/cast.c
67
F2(r, l, 13);
sys/crypto/cast.c
68
F3(l, r, 14);
sys/crypto/cast.c
69
F1(r, l, 15);
sys/crypto/cast.c
76
outblock[4] = U_INT8_Ta(l);
sys/crypto/cast.c
77
outblock[5] = U_INT8_Tb(l);
sys/crypto/cast.c
78
outblock[6] = U_INT8_Tc(l);
sys/crypto/cast.c
79
outblock[7] = U_INT8_Td(l);
sys/crypto/cast.c
81
t = l = r = 0;
sys/crypto/cast.c
90
u_int32_t t, l, r;
sys/crypto/cast.c
95
l = ((u_int32_t)inblock[4] << 24) | ((u_int32_t)inblock[5] << 16) |
sys/crypto/curve25519.c
44
uint32_t l;
sys/crypto/curve25519.c
45
__builtin_memcpy(&l, a, sizeof(l));
sys/crypto/curve25519.c
46
return letoh32(l);
sys/crypto/curve25519.c
639
fe_loose l;
sys/crypto/curve25519.c
640
fe_copy_lt(&l, z);
sys/crypto/curve25519.c
641
fe_loose_invert(out, &l);
sys/crypto/des_locl.h
142
#define IP(l,r) \
sys/crypto/des_locl.h
145
PERM_OP(r,l,tt, 4,0x0f0f0f0fL); \
sys/crypto/des_locl.h
146
PERM_OP(l,r,tt,16,0x0000ffffL); \
sys/crypto/des_locl.h
147
PERM_OP(r,l,tt, 2,0x33333333L); \
sys/crypto/des_locl.h
148
PERM_OP(l,r,tt, 8,0x00ff00ffL); \
sys/crypto/des_locl.h
149
PERM_OP(r,l,tt, 1,0x55555555L); \
sys/crypto/des_locl.h
152
#define FP(l,r) \
sys/crypto/des_locl.h
155
PERM_OP(l,r,tt, 1,0x55555555L); \
sys/crypto/des_locl.h
156
PERM_OP(r,l,tt, 8,0x00ff00ffL); \
sys/crypto/des_locl.h
157
PERM_OP(l,r,tt, 2,0x33333333L); \
sys/crypto/des_locl.h
158
PERM_OP(r,l,tt,16,0x0000ffffL); \
sys/crypto/des_locl.h
159
PERM_OP(l,r,tt, 4,0x0f0f0f0fL); \
sys/crypto/des_locl.h
78
#define c2l(c,l) (l =((u_int32_t)(*((c)++))) , \
sys/crypto/des_locl.h
79
l|=((u_int32_t)(*((c)++)))<< 8L, \
sys/crypto/des_locl.h
80
l|=((u_int32_t)(*((c)++)))<<16L, \
sys/crypto/des_locl.h
81
l|=((u_int32_t)(*((c)++)))<<24L)
sys/crypto/des_locl.h
83
#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
sys/crypto/des_locl.h
84
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
sys/crypto/des_locl.h
85
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
sys/crypto/des_locl.h
86
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
sys/crypto/ecb_enc.c
101
l = r = t = u = 0;
sys/crypto/ecb_enc.c
56
register u_int32_t l, r, t, u;
sys/crypto/ecb_enc.c
72
l = (r << 1) | (r >> 31);
sys/crypto/ecb_enc.c
76
l &= 0xffffffffL;
sys/crypto/ecb_enc.c
84
D_ENCRYPT(l, r, i + 0); /* 1 */
sys/crypto/ecb_enc.c
85
D_ENCRYPT(r, l, i + 2); /* 2 */
sys/crypto/ecb_enc.c
89
D_ENCRYPT(l, r, i - 0); /* 16 */
sys/crypto/ecb_enc.c
90
D_ENCRYPT(r, l, i - 2); /* 15 */
sys/crypto/ecb_enc.c
93
l = (l >> 1) | (l << 31);
sys/crypto/ecb_enc.c
96
l &= 0xffffffffL;
sys/crypto/ecb_enc.c
99
data[0] = l;
sys/crypto/michael.c
45
#define MICHAEL_BLOCK(l, r) do { \
sys/crypto/michael.c
46
r ^= ROL(17, l); \
sys/crypto/michael.c
47
l += r; \
sys/crypto/michael.c
48
r ^= XSWAP(l); \
sys/crypto/michael.c
49
l += r; \
sys/crypto/michael.c
50
r ^= ROL(3, l); \
sys/crypto/michael.c
51
l += r; \
sys/crypto/michael.c
52
r ^= ROR(2, l); \
sys/crypto/michael.c
53
l += r; \
sys/crypto/sha1.c
32
#define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
sys/crypto/sha1.c
33
|(rol(block->l[i],8)&0x00FF00FF))
sys/crypto/sha1.c
35
#define blk0(i) block->l[i]
sys/crypto/sha1.c
37
#define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
sys/crypto/sha1.c
38
^block->l[(i+2)&15]^block->l[i&15],1))
sys/crypto/sha1.c
55
unsigned int l[16];
sys/dev/acpi/atk0110.c
338
as->l = ri.v_package[lim1]->v_integer;
sys/dev/acpi/atk0110.c
341
as->h = as->l + ri.v_package[lim2]->v_integer;
sys/dev/acpi/atk0110.c
346
DEVNAME(sc), name, as->s.desc, as->i, as->l, as->h,
sys/dev/acpi/atk0110.c
370
const int64_t l = as->l, h = as->h;
sys/dev/acpi/atk0110.c
385
else if (v > l)
sys/dev/acpi/atk0110.c
395
if ((l != 0 && l < v && v < h) ||
sys/dev/acpi/atk0110.c
396
(l == 0 && v > h))
sys/dev/acpi/atk0110.c
404
if (l < v && v < h)
sys/dev/acpi/atk0110.c
62
int64_t l;
sys/dev/acpi/dsdt.h
110
#define __amlflagbit(v,s,l)
sys/dev/acpi/qcgpio.c
31
#define DPRINTF(l, x...) do { if ((l) <= qcgpio_debug) printf(x); } while (0)
sys/dev/acpi/qcgpio.c
33
#define DPRINTF(l, x...)
sys/dev/acpi/tpm.c
569
tpm_request_locality_tis(struct tpm_softc *sc, int l)
sys/dev/acpi/tpm.c
574
if (l != 0)
sys/dev/acpi/tpm.c
604
tpm_request_locality_crb(struct tpm_softc *sc, int l)
sys/dev/acpi/tpm.c
609
if (l != 0)
sys/dev/fdt/rkclock.c
251
#define SEL(l, f) (((1 << (l - f + 1)) - 1) << f)
sys/dev/fdt/rkclock.c
252
#define DIV(l, f) SEL(l, f)
sys/dev/i2c/asc7611.c
170
uint8_t l = andl_readreg(sc, andl_temp[i].lreg);
sys/dev/i2c/asc7611.c
171
int32_t t = (m << 8 | l) >> (16 - 10);
sys/dev/i2c/asc7611.c
204
uint8_t l = andl_readreg(sc, ANDL_TACH_START + i * 2);
sys/dev/i2c/asc7611.c
206
uint16_t b = m << 8 | l;
sys/dev/i2c/w83793g.c
266
uint8_t l = wbng_readreg(sc, WB_FAN_START + i * 2 + 1);
sys/dev/i2c/w83793g.c
267
uint16_t b = h << 8 | l;
sys/dev/ic/aacreg.h
1081
#define AAC_BTL_TO_HANDLE(b, t, l) \
sys/dev/ic/aacreg.h
1082
(((b & 0x3f) << 7) | ((l & 0x7) << 4) | (t & 0xf))
sys/dev/ic/aacvar.h
217
#define AAC_LOCK_INIT(l, s) do { \
sys/dev/ic/aacvar.h
218
rw_init((l), "aaclock"); \
sys/dev/ic/aacvar.h
223
#define AAC_LOCK_ACQUIRE(l) do { \
sys/dev/ic/aacvar.h
226
rw_enter_write((l)); \
sys/dev/ic/aacvar.h
229
#define AAC_LOCK_RELEASE(l) do { \
sys/dev/ic/aacvar.h
230
rw_exit_write((l)); \
sys/dev/ic/ac97.c
1087
u_int16_t l, r;
sys/dev/ic/ac97.c
1094
l = r = cp->un.value.level[AUDIO_MIXER_LEVEL_MONO];
sys/dev/ic/ac97.c
1097
l = cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT];
sys/dev/ic/ac97.c
1101
l = cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT];
sys/dev/ic/ac97.c
1106
l = 255 - l;
sys/dev/ic/ac97.c
1110
l >>= 8 - si->bits;
sys/dev/ic/ac97.c
1113
newval = ((l & mask) << si->ofs);
sys/dev/ic/ac97.c
1346
u_int16_t l, r;
sys/dev/ic/ac97.c
1353
l = r = (val >> si->ofs) & mask;
sys/dev/ic/ac97.c
1356
l = (val >> si->ofs) & mask;
sys/dev/ic/ac97.c
1360
l = (val >> (si->ofs + 8)) & mask;
sys/dev/ic/ac97.c
1364
l <<= 8 - si->bits;
sys/dev/ic/ac97.c
1367
l = 255 - l;
sys/dev/ic/ac97.c
1377
cp->un.value.level[AUDIO_MIXER_LEVEL_MONO] = l;
sys/dev/ic/ac97.c
1379
cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = l;
sys/dev/ic/aic79xx.c
7762
int l;
sys/dev/ic/aic79xx.c
7765
ahd_list_lock(&l);
sys/dev/ic/aic79xx.c
7769
ahd_list_unlock(&l);
sys/dev/ic/aic79xx.c
7782
ahd_list_unlock(&l);
sys/dev/ic/aic79xx.c
7794
ahd_list_unlock(&l);
sys/dev/ic/aic79xx.c
7802
int l;
sys/dev/ic/aic79xx.c
7806
ahd_list_lock(&l);
sys/dev/ic/aic79xx.c
7810
ahd_list_unlock(&l);
sys/dev/ic/aic79xx.c
7839
ahd_list_unlock(&l);
sys/dev/ic/amireg.h
350
#define AMI_PTPARAM(t,a,l) (((l) << 7) | (((a) & 1) << 3) | ((t) & 3))
sys/dev/ic/bwi.c
77
#define DPRINTF(l, x...) do { if ((l) <= bwi_debug) printf(x); } while (0)
sys/dev/ic/bwi.c
79
#define DPRINTF(l, x...)
sys/dev/ic/dc.c
1400
dc_decode_leaf_sia(struct dc_softc *sc, struct dc_eblock_sia *l)
sys/dev/ic/dc.c
1407
switch (l->dc_sia_code & ~DC_SIA_CODE_EXT) {
sys/dev/ic/dc.c
1429
if (l->dc_sia_code & DC_SIA_CODE_EXT) {
sys/dev/ic/dc.c
1432
(u_int8_t *)&l->dc_un.dc_sia_ext.dc_sia_gpio_ctl;
sys/dev/ic/dc.c
1436
(u_int8_t *)&l->dc_un.dc_sia_noext.dc_sia_gpio_ctl;
sys/dev/ic/dc.c
1446
dc_decode_leaf_sym(struct dc_softc *sc, struct dc_eblock_sym *l)
sys/dev/ic/dc.c
1453
if (l->dc_sym_code == DC_SYM_CODE_100BT)
sys/dev/ic/dc.c
1456
if (l->dc_sym_code == DC_SYM_CODE_100BT_FDX)
sys/dev/ic/dc.c
1460
m->dc_gp_ptr = (u_int8_t *)&l->dc_sym_gpio_ctl;
sys/dev/ic/dc.c
1469
dc_decode_leaf_mii(struct dc_softc *sc, struct dc_eblock_mii *l)
sys/dev/ic/dc.c
1479
m->dc_gp_len = l->dc_gpr_len;
sys/dev/ic/dc.c
1481
p = (u_int8_t *)l;
sys/dev/ic/dc.c
1484
p += 2 * l->dc_gpr_len;
sys/dev/ic/if_wireg.h
356
int l; \
sys/dev/ic/if_wireg.h
358
l = (str.i_len + 1) & ~0x1; \
sys/dev/ic/if_wireg.h
360
s.wi_len = (l / 2) + 2; \
sys/dev/ic/lemacvar.h
100
(l) << 2)
sys/dev/ic/lemacvar.h
109
#define LEMAC_GETBUF8(sc, o, l, p) \
sys/dev/ic/lemacvar.h
110
bus_space_read_region_1((sc)->sc_memt, (sc)->sc_memh, (o), (p), (l))
sys/dev/ic/lemacvar.h
111
#define LEMAC_GETBUF16(sc, o, l, p) \
sys/dev/ic/lemacvar.h
113
(l) << 1)
sys/dev/ic/lemacvar.h
114
#define LEMAC_GETBUF32(sc, o, l, p) \
sys/dev/ic/lemacvar.h
116
(l) << 2)
sys/dev/ic/lemacvar.h
86
#define LEMAC_OUTSB(sc, o, l, p) \
sys/dev/ic/lemacvar.h
87
bus_space_write_multi_1((sc)->sc_iot, (sc)->sc_ioh, (o), (p), (l))
sys/dev/ic/lemacvar.h
90
#define LEMAC_INSB(sc, o, l, p) \
sys/dev/ic/lemacvar.h
91
bus_space_read_multi_1((sc)->sc_iot, (sc)->sc_ioh, (o), (p), (l))
sys/dev/ic/lemacvar.h
93
#define LEMAC_PUTBUF8(sc, o, l, p) \
sys/dev/ic/lemacvar.h
94
bus_space_write_region_1((sc)->sc_memt, (sc)->sc_memh, (o), (p), (l))
sys/dev/ic/lemacvar.h
95
#define LEMAC_PUTBUF16(sc, o, l, p) \
sys/dev/ic/lemacvar.h
97
(l) << 1)
sys/dev/ic/lemacvar.h
98
#define LEMAC_PUTBUF32(sc, o, l, p) \
sys/dev/ic/lsi64854var.h
78
#define DMA_SETUP(sc, a, l, d, s) (((sc)->setup)(sc, a, l, d, s))
sys/dev/ic/malo.c
1919
int i, j, l;
sys/dev/ic/malo.c
1921
for (i = 0; i < len; i += l) {
sys/dev/ic/malo.c
1923
l = min(sizeof(b), len - i);
sys/dev/ic/malo.c
1924
bcopy(buf + i, b, l);
sys/dev/ic/malo.c
1931
if (j < l)
sys/dev/ic/malo.c
1937
for (j = 0; j < l; j++) {
sys/dev/ic/malo.c
53
#define DPRINTF(l, x...) do { if ((l) <= malo_d) printf(x); } while (0)
sys/dev/ic/malo.c
55
#define DPRINTF(l, x...)
sys/dev/ic/ncr53c9xvar.h
181
#define TINFO_LUN(t, l) ((((l) < NCR_NLUN) && (((t)->lun[(l)]) != NULL)) ? \
sys/dev/ic/ncr53c9xvar.h
182
((t)->lun[(l)]) : ncr53c9x_lunsearch((t), (int64_t)(l)))
sys/dev/ic/ne2000.c
505
int l, leftover;
sys/dev/ic/ne2000.c
514
l = m->m_len;
sys/dev/ic/ne2000.c
515
if (l == 0)
sys/dev/ic/ne2000.c
519
lim = data + l;
sys/dev/ic/ne2000.c
521
while (l > 0) {
sys/dev/ic/ne2000.c
530
l--;
sys/dev/ic/ne2000.c
542
l--;
sys/dev/ic/ne2000.c
550
leftover = l & 1;
sys/dev/ic/ne2000.c
551
l &= ~1;
sys/dev/ic/ne2000.c
553
asich, NE2000_ASIC_DATA, data, l);
sys/dev/ic/ne2000.c
554
data += l;
sys/dev/ic/ne2000.c
557
l = 0;
sys/dev/ic/ne2000.c
560
if (l < 0)
sys/dev/ic/qla.c
1495
struct qla_port_name_list *l;
sys/dev/ic/qla.c
1514
l = QLA_DMA_KVA(sc->sc_scratch);
sys/dev/ic/qla.c
1516
while (i * sizeof(*l) < sc->sc_mbox[1]) {
sys/dev/ic/qla.c
1520
loopid = letoh16(l[i].loop_id);
sys/dev/ic/qla.c
1550
port->port_name = letoh64(l[i].port_name);
sys/dev/ic/qla.c
2135
int l;
sys/dev/ic/qla.c
2142
for (l = 0; l < 4; l++) {
sys/dev/ic/qla.c
2144
printf(" %2.2x", iocb[(l*16)+b]);
sys/dev/ic/qlavar.h
69
#define QLA_LOCATION_LOOP_ID(l) (l | QLA_LOCATION_LOOP)
sys/dev/ic/qlw.c
1236
int l;
sys/dev/ic/qlw.c
1243
for (l = 0; l < 4; l++) {
sys/dev/ic/qlw.c
1245
printf(" %2.2x", iocb[(l*16)+b]);
sys/dev/ic/qwx.c
95
#define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
sys/dev/ic/qwz.c
95
#define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
sys/dev/ic/ufshcivar.h
22
#define DPRINTF(l, x...) do { if ((l) <= ufshci_debug) printf(x); } \
sys/dev/ic/ufshcivar.h
25
#define DPRINTF(l, x...)
sys/dev/isa/essreg.h
185
#define ESS_STEREO_GAIN(l, r) ((l) | ((r) >> 4))
sys/dev/isa/isapnp.c
418
struct isa_attach_args *l = NULL, *n = NULL, *d;
sys/dev/isa/isapnp.c
431
l = c;
sys/dev/isa/isapnp.c
437
f = l;
sys/dev/isa/sbreg.h
138
#define SB16P_L_TO_R(l) ((l)+1)
sys/dev/kstat.c
474
size_t i, l;
sys/dev/kstat.c
476
l = strlen(str);
sys/dev/kstat.c
477
if (l == 0 || l >= KSTAT_STRLEN)
sys/dev/kstat.c
479
for (i = 0; i < l; i++) {
sys/dev/microcode/siop/ncr53cxxx.c
953
int l = 8;
sys/dev/microcode/siop/ncr53cxxx.c
956
l = 12; /* Memory to memory move is 12 bytes */
sys/dev/microcode/siop/ncr53cxxx.c
957
if ((dsps + l) / 4 > MAXINST) {
sys/dev/microcode/siop/ncr53cxxx.c
963
if (l == 12)
sys/dev/microcode/siop/ncr53cxxx.c
967
if (l == 12)
sys/dev/microcode/siop/ncr53cxxx.c
971
dsps += l;
sys/dev/pci/ahd_pci.c
346
int error, ioh_valid, ioh2_valid, l, memh_valid;
sys/dev/pci/ahd_pci.c
533
ahd_list_lock(&l);
sys/dev/pci/ahd_pci.c
538
ahd_list_unlock(&l);
sys/dev/pci/auacer.c
126
#define DPRINTF(l,x) do { if (auacer_debug & (l)) printf x; } while(0)
sys/dev/pci/auglx.c
200
#define DPRINTF(l,x) do { if (auglx_debug & (l)) printf x; } while(0)
sys/dev/pci/auich.c
235
#define DPRINTF(l,x) do { if (auich_debug & (l)) printf x; } while(0)
sys/dev/pci/auvia.c
800
size_t l;
sys/dev/pci/auvia.c
804
l = (vaddr_t)end - (vaddr_t)start;
sys/dev/pci/auvia.c
805
segs = howmany(l, blksize);
sys/dev/pci/auvia.c
834
while (l) {
sys/dev/pci/auvia.c
836
l = l - min(l, blksize);
sys/dev/pci/auvia.c
838
op->flags = htole32((l? AUVIA_DMAOP_FLAG : AUVIA_DMAOP_EOL) | blksize);
sys/dev/pci/cmpcireg.h
217
# define CMPCI_ADJUST_AUX_GAIN(sc, l, r) \
sys/dev/pci/cmpcireg.h
218
(cmpci_adjust((l), 0xc0) >> 4 | cmpci_adjust((r), 0xc0))
sys/dev/pci/drm/amd/amdgpu/amdgpu.h
1548
#define AMDGPU_GET_REG_FIELD(x, h, l) (((x) & GENMASK_ULL(h, l)) >> (l))
sys/dev/pci/drm/amd/amdgpu/amdgpu.h
1567
#define amdgpu_set_pcie_lanes(adev, l) (adev)->asic_funcs->set_pcie_lanes((adev), (l))
sys/dev/pci/drm/amd/amdgpu/amdgpu.h
1570
#define amdgpu_asic_read_bios_from_rom(adev, b, l) (adev)->asic_funcs->read_bios_from_rom((adev), (b), (l))
sys/dev/pci/drm/amd/amdgpu/amdgpu_aca.h
34
#define ACA_REG_FIELD(x, h, l) (((x) & GENMASK_ULL(h, l)) >> l)
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.h
29
#define amdgpu_display_backlight_set_level(adev, e, l) (adev)->mode_info.funcs->backlight_set_level((e), (l))
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1612
int i, r, l;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1644
l = 0;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1648
l = i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1669
l = adev->gmc.num_mem_partitions - 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1673
mem_ranges[l].range.lpfn =
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1675
mem_ranges[l].size =
sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
1677
((u64)mem_ranges[l].range.fpfn << AMDGPU_GPU_PAGE_SHIFT);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ip.c
71
int l = 0, i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ip.c
75
adev->ip_map.dev_inst[ip_block][l++] = i;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ip.c
78
for (; l < HWIP_MAX_INSTANCE; l++)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ip.c
79
adev->ip_map.dev_inst[ip_block][l] = -1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_mca.h
28
#define MCA_REG_FIELD(x, h, l) (((x) & GENMASK_ULL(h, l)) >> l)
sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c
691
#define XGMI_LINK_REG(smnreg, l) ((smnreg) | (l << 20))
sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c
775
#define WAFL_LINK_REG(smnreg, l) ((smnreg) | (l << 20))
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2012
unsigned long s, l;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2025
l = min(last, pchild->last);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2026
if (l >= s)
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2027
svm_range_unmap_from_gpus(pchild, s, l, trigger);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2031
l = min(last, prange->last);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2032
if (l >= s)
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2033
svm_range_unmap_from_gpus(prange, s, l, trigger);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2102
uint64_t l;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2108
l = min(last, ALIGN_DOWN(start + max_pages, max_pages) - 1);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2110
prange = svm_range_new(svms, start, l, true);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2116
start = l + 1;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2505
unsigned long s, l;
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2565
l = min(last, pchild->last);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2566
if (l >= s)
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2567
svm_range_unmap_from_gpus(pchild, s, l, trigger);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2572
l = min(last, prange->last);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2573
if (l >= s)
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2574
svm_range_unmap_from_gpus(prange, s, l, trigger);
sys/dev/pci/drm/amd/display/dc/core/dc.c
2115
int i, k, l;
sys/dev/pci/drm/amd/display/dc/core/dc.c
2258
for (l = 0 ; pipe && l < context->stream_count; l++) {
sys/dev/pci/drm/amd/display/dc/core/dc.c
2259
if (context->streams[l] &&
sys/dev/pci/drm/amd/display/dc/core/dc.c
2260
context->streams[l] == pipe->stream &&
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
319
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l,
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
355
l = (ax + wx - 1) / wx;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
360
Delay = l * wx * (numSlices - 1) + ax + s + lstall + 22;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
343
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l,
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
379
l = (ax + wx - 1) / wx;
sys/dev/pci/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
384
Delay = l * wx * (numSlices - 1) + ax + s + lstall + 22;
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
514
unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, S, ix, wx, p, l0, a, ax, l,
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
550
l = (ax + wx - 1) / wx;
sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
555
Delay = l * wx * (numSlices - 1) + ax + S + lstall + 22;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
320
struct prepare_mcache_programming_locals *l = &dml_ctx->v21.scratch.prepare_mcache_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
326
memset(&l->build_mcache_programming_params, 0, sizeof(struct dml2_build_mcache_programming_in_out));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
327
l->build_mcache_programming_params.dml2_instance = dml_ctx->v21.dml_init.dml2_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
336
mcache_config = &l->build_mcache_programming_params.mcache_configurations[dml_prog_idx];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
341
l->build_mcache_programming_params.num_configurations++;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
363
mcache_config = &l->build_mcache_programming_params.mcache_configurations[dml_phantom_prog_idx];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
368
l->build_mcache_programming_params.num_configurations++;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
381
dml2_build_mcache_programming(&l->build_mcache_programming_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
395
if (l->build_mcache_programming_params.per_plane_pipe_mcache_regs[dml_prog_idx][dc_pipe_index]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
397
l->build_mcache_programming_params.per_plane_pipe_mcache_regs[dml_prog_idx][dc_pipe_index],
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
409
if (l->build_mcache_programming_params.per_plane_pipe_mcache_regs[dml_phantom_prog_idx][dc_pipe_index]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
411
l->build_mcache_programming_params.per_plane_pipe_mcache_regs[dml_phantom_prog_idx][dc_pipe_index],
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
412
struct dml2_core_mode_support_locals *l = &core->scratch.mode_support_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
418
expand_implict_subvp(in_out->display_cfg, &l->svp_expanded_display_cfg, &core->scratch);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
420
l->mode_support_ex_params.mode_lib = &core->clean_me_up.mode_lib;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
421
l->mode_support_ex_params.in_display_cfg = &l->svp_expanded_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
422
l->mode_support_ex_params.min_clk_table = in_out->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
423
l->mode_support_ex_params.min_clk_index = in_out->min_clk_index;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
424
l->mode_support_ex_params.out_evaluation_info = &in_out->mode_support_result.cfg_support_info.clean_me_up.support_info;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
426
result = dml2_core_calcs_mode_support_ex(&l->mode_support_ex_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
435
in_out->mode_support_result.global.fclk_pstate_supported = l->mode_support_ex_params.out_evaluation_info->global_fclk_change_supported;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
436
in_out->mode_support_result.global.uclk_pstate_supported = l->mode_support_ex_params.out_evaluation_info->global_dram_clock_change_supported;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
450
in_out->mode_support_result.global.active.average_bw_sdp_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->avg_bandwidth_required[dml2_core_internal_soc_state_sys_active][dml2_core_internal_bw_sdp] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
451
in_out->mode_support_result.global.active.urgent_bw_sdp_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->urg_bandwidth_required_flip[dml2_core_internal_soc_state_sys_active][dml2_core_internal_bw_sdp] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
452
in_out->mode_support_result.global.svp_prefetch.average_bw_sdp_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->avg_bandwidth_required[dml2_core_internal_soc_state_svp_prefetch][dml2_core_internal_bw_sdp] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
453
in_out->mode_support_result.global.svp_prefetch.urgent_bw_sdp_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->urg_bandwidth_required_flip[dml2_core_internal_soc_state_svp_prefetch][dml2_core_internal_bw_sdp] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
455
in_out->mode_support_result.global.active.average_bw_dram_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->avg_bandwidth_required[dml2_core_internal_soc_state_sys_active][dml2_core_internal_bw_dram] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
456
in_out->mode_support_result.global.active.urgent_bw_dram_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->urg_bandwidth_required_flip[dml2_core_internal_soc_state_sys_active][dml2_core_internal_bw_dram] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
457
in_out->mode_support_result.global.svp_prefetch.average_bw_dram_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->avg_bandwidth_required[dml2_core_internal_soc_state_svp_prefetch][dml2_core_internal_bw_dram] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
458
in_out->mode_support_result.global.svp_prefetch.urgent_bw_dram_kbps = (unsigned long)math_ceil2((l->mode_support_ex_params.out_evaluation_info->urg_bandwidth_required_flip[dml2_core_internal_soc_state_svp_prefetch][dml2_core_internal_bw_dram] * 1000), 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
464
for (i = 0; i < l->svp_expanded_display_cfg.num_planes; i++) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
469
for (i = 0; i < l->svp_expanded_display_cfg.num_planes; i++) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
471
dpp_count = l->mode_support_ex_params.out_evaluation_info->DPPPerSurface[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
474
switch (l->mode_support_ex_params.out_evaluation_info->ODMMode[i]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
477
dpp_count = l->mode_support_ex_params.out_evaluation_info->DPPPerSurface[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
501
dpp_count = l->mode_support_ex_params.out_evaluation_info->DPPPerSurface[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
507
dml2_core_calcs_get_plane_support_info(&l->svp_expanded_display_cfg, &core->clean_me_up.mode_lib, &in_out->mode_support_result.cfg_support_info.plane_support_info[i], i);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
509
stream_index = l->svp_expanded_display_cfg.plane_descriptors[i].stream_index;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
517
in_out->mode_support_result.cfg_support_info.stream_support_info[stream_index].dsc_enable = l->mode_support_ex_params.out_evaluation_info->DSCEnabled[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
518
in_out->mode_support_result.cfg_support_info.stream_support_info[stream_index].num_dsc_slices = l->mode_support_ex_params.out_evaluation_info->NumberOfDSCSlices[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
519
dml2_core_calcs_get_stream_support_info(&l->svp_expanded_display_cfg, &core->clean_me_up.mode_lib, &in_out->mode_support_result.cfg_support_info.stream_support_info[stream_index], i);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
543
struct dml2_core_mode_programming_locals *l = &core->scratch.mode_programming_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
554
expand_implict_subvp(in_out->display_cfg, &l->svp_expanded_display_cfg, &core->scratch);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
556
l->mode_programming_ex_params.mode_lib = &core->clean_me_up.mode_lib;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
557
l->mode_programming_ex_params.in_display_cfg = &l->svp_expanded_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
558
l->mode_programming_ex_params.min_clk_table = in_out->instance->minimum_clock_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
559
l->mode_programming_ex_params.cfg_support_info = in_out->cfg_support_info;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
560
l->mode_programming_ex_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
561
l->mode_programming_ex_params.min_clk_index = lookup_uclk_dpm_index_by_freq(in_out->programming->min_clocks.dcn4x.active.uclk_khz,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
564
result = dml2_core_calcs_mode_programming_ex(&l->mode_programming_ex_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
569
pack_mode_programming_params_with_implicit_subvp(core, in_out->display_cfg, &l->svp_expanded_display_cfg, in_out->programming, &core->scratch);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
573
dml2_core_calcs_get_arb_params(&l->svp_expanded_display_cfg, &core->clean_me_up.mode_lib, &in_out->programming->global_regs.arb_regs);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
574
dml2_core_calcs_get_watermarks(&l->svp_expanded_display_cfg, &core->clean_me_up.mode_lib, &in_out->programming->global_regs.wm_regs[0]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
611
dml2_core_calcs_get_pipe_regs(&l->svp_expanded_display_cfg, &core->clean_me_up.mode_lib, in_out->programming->plane_programming[plane_index].pipe_regs[pipe_offset], dml_internal_pipe_index);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10057
struct dml2_core_calcs_CalculateStutterEfficiency_locals *l = &scratch->CalculateStutterEfficiency_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1006
struct dml2_core_shared_CalculateDETBufferSize_locals *l,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10066
memset(l, 0, sizeof(struct dml2_core_calcs_CalculateStutterEfficiency_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10072
l->MaximumEffectiveCompressionLuma = 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10074
l->MaximumEffectiveCompressionLuma = 4;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10076
l->TotalCompressedReadBandwidth = l->TotalCompressedReadBandwidth + p->ReadBandwidthSurfaceLuma[k] / math_min2(p->display_cfg->plane_descriptors[k].surface.dcc.informative.dcc_rate_plane0, l->MaximumEffectiveCompressionLuma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10080
DML_LOG_VERBOSE("DML::%s: k=%u, MaximumEffectiveCompressionLuma = %f\n", __func__, k, l->MaximumEffectiveCompressionLuma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10082
l->TotalZeroSizeRequestReadBandwidth = l->TotalZeroSizeRequestReadBandwidth + p->ReadBandwidthSurfaceLuma[k] * p->display_cfg->plane_descriptors[k].surface.dcc.informative.fraction_of_zero_size_request_plane0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10083
l->TotalZeroSizeCompressedReadBandwidth = l->TotalZeroSizeCompressedReadBandwidth + p->ReadBandwidthSurfaceLuma[k] * p->display_cfg->plane_descriptors[k].surface.dcc.informative.fraction_of_zero_size_request_plane0 / l->MaximumEffectiveCompressionLuma;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10087
l->MaximumEffectiveCompressionChroma = 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10089
l->MaximumEffectiveCompressionChroma = 4;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10091
l->TotalCompressedReadBandwidth = l->TotalCompressedReadBandwidth + p->ReadBandwidthSurfaceChroma[k] / math_min2(p->display_cfg->plane_descriptors[k].surface.dcc.informative.dcc_rate_plane1, l->MaximumEffectiveCompressionChroma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10095
DML_LOG_VERBOSE("DML::%s: k=%u, MaximumEffectiveCompressionChroma = %f\n", __func__, k, l->MaximumEffectiveCompressionChroma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10097
l->TotalZeroSizeRequestReadBandwidth = l->TotalZeroSizeRequestReadBandwidth + p->ReadBandwidthSurfaceChroma[k] * p->display_cfg->plane_descriptors[k].surface.dcc.informative.fraction_of_zero_size_request_plane1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10098
l->TotalZeroSizeCompressedReadBandwidth = l->TotalZeroSizeCompressedReadBandwidth + p->ReadBandwidthSurfaceChroma[k] * p->display_cfg->plane_descriptors[k].surface.dcc.informative.fraction_of_zero_size_request_plane1 / l->MaximumEffectiveCompressionChroma;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10101
l->TotalCompressedReadBandwidth = l->TotalCompressedReadBandwidth + p->ReadBandwidthSurfaceLuma[k] + p->ReadBandwidthSurfaceChroma[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10103
l->TotalRowReadBandwidth = l->TotalRowReadBandwidth + p->DPPPerSurface[k] * (p->meta_row_bw[k] + p->dpte_row_bw[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10107
l->AverageDCCCompressionRate = p->TotalDataReadBandwidth / l->TotalCompressedReadBandwidth;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10108
l->AverageDCCZeroSizeFraction = l->TotalZeroSizeRequestReadBandwidth / p->TotalDataReadBandwidth;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10112
DML_LOG_VERBOSE("DML::%s: TotalCompressedReadBandwidth = %f\n", __func__, l->TotalCompressedReadBandwidth);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10113
DML_LOG_VERBOSE("DML::%s: TotalZeroSizeRequestReadBandwidth = %f\n", __func__, l->TotalZeroSizeRequestReadBandwidth);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10114
DML_LOG_VERBOSE("DML::%s: TotalZeroSizeCompressedReadBandwidth = %f\n", __func__, l->TotalZeroSizeCompressedReadBandwidth);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10115
DML_LOG_VERBOSE("DML::%s: MaximumEffectiveCompressionLuma = %f\n", __func__, l->MaximumEffectiveCompressionLuma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10116
DML_LOG_VERBOSE("DML::%s: MaximumEffectiveCompressionChroma = %f\n", __func__, l->MaximumEffectiveCompressionChroma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10117
DML_LOG_VERBOSE("DML::%s: AverageDCCCompressionRate = %f\n", __func__, l->AverageDCCCompressionRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10118
DML_LOG_VERBOSE("DML::%s: AverageDCCZeroSizeFraction = %f\n", __func__, l->AverageDCCZeroSizeFraction);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10125
if (l->AverageDCCZeroSizeFraction == 1) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10126
l->AverageZeroSizeCompressionRate = l->TotalZeroSizeRequestReadBandwidth / l->TotalZeroSizeCompressedReadBandwidth;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10127
l->EffectiveCompressedBufferSize = (double)p->MetaFIFOSizeInKEntries * 1024 * 64 * l->AverageZeroSizeCompressionRate + ((double)p->ZeroSizeBufferEntries - p->CompbufReservedSpaceZs) * 64 * l->AverageZeroSizeCompressionRate;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10130
} else if (l->AverageDCCZeroSizeFraction > 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10131
l->AverageZeroSizeCompressionRate = l->TotalZeroSizeRequestReadBandwidth / l->TotalZeroSizeCompressedReadBandwidth;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10132
l->EffectiveCompressedBufferSize = math_min2((double)p->CompressedBufferSizeInkByte * 1024 * l->AverageDCCCompressionRate,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10133
(double)p->MetaFIFOSizeInKEntries * 1024 * 64 / (l->AverageDCCZeroSizeFraction / l->AverageZeroSizeCompressionRate + 1 / l->AverageDCCCompressionRate)) +
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10134
(p->rob_alloc_compressed ? math_min2(((double)p->ROBBufferSizeInKByte * 1024 - p->CompbufReservedSpace64B * 64) * l->AverageDCCCompressionRate,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10135
((double)p->ZeroSizeBufferEntries - p->CompbufReservedSpaceZs) * 64 / (l->AverageDCCZeroSizeFraction / l->AverageZeroSizeCompressionRate))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10140
DML_LOG_VERBOSE("DML::%s: min 1 = %f\n", __func__, p->CompressedBufferSizeInkByte * 1024 * l->AverageDCCCompressionRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10141
DML_LOG_VERBOSE("DML::%s: min 2 = %f\n", __func__, p->MetaFIFOSizeInKEntries * 1024 * 64 / (l->AverageDCCZeroSizeFraction / l->AverageZeroSizeCompressionRate + 1 / l->AverageDCCCompressionRate));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10143
DML_LOG_VERBOSE("DML::%s: min 4 = %f\n", __func__, (p->ZeroSizeBufferEntries - p->CompbufReservedSpaceZs) * 64 / (l->AverageDCCZeroSizeFraction / l->AverageZeroSizeCompressionRate));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10146
l->EffectiveCompressedBufferSize = math_min2((double)p->CompressedBufferSizeInkByte * 1024 * l->AverageDCCCompressionRate,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10147
(double)p->MetaFIFOSizeInKEntries * 1024 * 64 * l->AverageDCCCompressionRate) +
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10148
((double)p->ROBBufferSizeInKByte * 1024 - p->CompbufReservedSpace64B * 64) * (p->rob_alloc_compressed ? l->AverageDCCCompressionRate : 1.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10151
DML_LOG_VERBOSE("DML::%s: min 1 = %f\n", __func__, p->CompressedBufferSizeInkByte * 1024 * l->AverageDCCCompressionRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10152
DML_LOG_VERBOSE("DML::%s: min 2 = %f\n", __func__, p->MetaFIFOSizeInKEntries * 1024 * 64 * l->AverageDCCCompressionRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10159
DML_LOG_VERBOSE("DML::%s: AverageZeroSizeCompressionRate = %f\n", __func__, l->AverageZeroSizeCompressionRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10160
DML_LOG_VERBOSE("DML::%s: EffectiveCompressedBufferSize = %f (%f kbytes)\n", __func__, l->EffectiveCompressedBufferSize, l->EffectiveCompressedBufferSize / 1024.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10167
l->LinesInDETY = ((double)p->DETBufferSizeY[k] + (p->UnboundedRequestEnabled == true ? l->EffectiveCompressedBufferSize : 0) * p->ReadBandwidthSurfaceLuma[k] / p->TotalDataReadBandwidth) / p->BytePerPixelDETY[k] / p->SwathWidthY[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10168
l->LinesInDETYRoundedDownToSwath = math_floor2(l->LinesInDETY, p->SwathHeightY[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10169
l->DETBufferingTimeY = l->LinesInDETYRoundedDownToSwath * ((double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.pixel_clock_khz / 1000)) / p->display_cfg->plane_descriptors[k].composition.scaler_info.plane0.v_ratio;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10176
DML_LOG_VERBOSE("DML::%s: k=%u, LinesInDETY = %f\n", __func__, k, l->LinesInDETY);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10177
DML_LOG_VERBOSE("DML::%s: k=%u, LinesInDETYRoundedDownToSwath = %f\n", __func__, k, l->LinesInDETYRoundedDownToSwath);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10179
DML_LOG_VERBOSE("DML::%s: k=%u, DETBufferingTimeY = %f\n", __func__, k, l->DETBufferingTimeY);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10182
if (!FoundCriticalSurface || l->DETBufferingTimeY < *p->StutterPeriod) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10186
*p->StutterPeriod = l->DETBufferingTimeY;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10187
l->FrameTimeCriticalSurface = (isInterlaceTiming ? math_floor2((double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.v_total / 2.0, 1.0) : p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.v_total) * (double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.pixel_clock_khz / 1000);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10188
l->VActiveTimeCriticalSurface = (isInterlaceTiming ? math_floor2((double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.v_active / 2.0, 1.0) : p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.v_active) * (double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)p->display_cfg->stream_descriptors[p->display_cfg->plane_descriptors[k].stream_index].timing.pixel_clock_khz / 1000);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10189
l->BytePerPixelYCriticalSurface = p->BytePerPixelY[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10190
l->SwathWidthYCriticalSurface = p->SwathWidthY[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10191
l->SwathHeightYCriticalSurface = p->SwathHeightY[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10192
l->BlockWidth256BytesYCriticalSurface = p->BlockWidth256BytesY[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10193
l->DETBufferSizeYCriticalSurface = p->DETBufferSizeY[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10194
l->MinTTUVBlankCriticalSurface = p->MinTTUVBlank[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10195
l->SinglePlaneCriticalSurface = (p->ReadBandwidthSurfaceChroma[k] == 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10196
l->SinglePipeCriticalSurface = (p->DPPPerSurface[k] == 1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10201
DML_LOG_VERBOSE("DML::%s: k=%u, MinTTUVBlankCriticalSurface = %f\n", __func__, k, l->MinTTUVBlankCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10202
DML_LOG_VERBOSE("DML::%s: k=%u, FrameTimeCriticalSurface= %f\n", __func__, k, l->FrameTimeCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10203
DML_LOG_VERBOSE("DML::%s: k=%u, VActiveTimeCriticalSurface = %f\n", __func__, k, l->VActiveTimeCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10204
DML_LOG_VERBOSE("DML::%s: k=%u, BytePerPixelYCriticalSurface = %u\n", __func__, k, l->BytePerPixelYCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10205
DML_LOG_VERBOSE("DML::%s: k=%u, SwathWidthYCriticalSurface = %f\n", __func__, k, l->SwathWidthYCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10206
DML_LOG_VERBOSE("DML::%s: k=%u, SwathHeightYCriticalSurface = %f\n", __func__, k, l->SwathHeightYCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10207
DML_LOG_VERBOSE("DML::%s: k=%u, BlockWidth256BytesYCriticalSurface = %u\n", __func__, k, l->BlockWidth256BytesYCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10208
DML_LOG_VERBOSE("DML::%s: k=%u, SinglePlaneCriticalSurface = %u\n", __func__, k, l->SinglePlaneCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10209
DML_LOG_VERBOSE("DML::%s: k=%u, SinglePipeCriticalSurface = %u\n", __func__, k, l->SinglePipeCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10225
l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer = math_min2(*p->StutterPeriod * p->TotalDataReadBandwidth, l->EffectiveCompressedBufferSize);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10227
DML_LOG_VERBOSE("DML::%s: AverageDCCCompressionRate = %f\n", __func__, l->AverageDCCCompressionRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10229
DML_LOG_VERBOSE("DML::%s: EffectiveCompressedBufferSize = %f (%f kbytes)\n", __func__, l->EffectiveCompressedBufferSize, l->EffectiveCompressedBufferSize / 1024.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10230
DML_LOG_VERBOSE("DML::%s: PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer = %f (%f kbytes)\n", __func__, l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer, l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer / 1024);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10233
DML_LOG_VERBOSE("DML::%s: TotalRowReadBandwidth = %f\n", __func__, l->TotalRowReadBandwidth);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10237
l->StutterBurstTime = l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10238
/ (p->ReturnBW * (p->hw_debug5 ? 1 : l->AverageDCCCompressionRate)) +
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10239
(*p->StutterPeriod * p->TotalDataReadBandwidth - l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10240
/ math_min2(p->DCFCLK * 64, p->ReturnBW * (p->hw_debug5 ? 1 : l->AverageDCCCompressionRate)) +
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10241
*p->StutterPeriod * l->TotalRowReadBandwidth / p->ReturnBW;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10243
DML_LOG_VERBOSE("DML::%s: Part 1 = %f\n", __func__, l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer / p->ReturnBW / (p->hw_debug5 ? 1 : l->AverageDCCCompressionRate));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10244
DML_LOG_VERBOSE("DML::%s: Part 2 = %f\n", __func__, (*p->StutterPeriod * p->TotalDataReadBandwidth - l->PartOfUncompressedPixelBurstThatFitsInROBAndCompressedBuffer) / (p->DCFCLK * 64));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10245
DML_LOG_VERBOSE("DML::%s: Part 3 = %f\n", __func__, *p->StutterPeriod * l->TotalRowReadBandwidth / p->ReturnBW);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10246
DML_LOG_VERBOSE("DML::%s: StutterBurstTime = %f\n", __func__, l->StutterBurstTime);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10248
l->TotalActiveWriteback = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10249
memset(l->stream_visited, 0, DML2_MAX_PLANES * sizeof(bool));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10253
if (!l->stream_visited[p->display_cfg->plane_descriptors[k].stream_index]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10256
l->TotalActiveWriteback = l->TotalActiveWriteback + 1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1026
memset(l, 0, sizeof(struct dml2_core_shared_CalculateDETBufferSize_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10268
l->stream_visited[p->display_cfg->plane_descriptors[k].stream_index] = 1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10273
if (l->TotalActiveWriteback == 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10279
*p->StutterEfficiencyNotIncludingVBlank = math_max2(0., 1 - (p->SRExitTime + l->StutterBurstTime) / *p->StutterPeriod) * 100;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10280
*p->Z8StutterEfficiencyNotIncludingVBlank = math_max2(0., 1 - (p->SRExitZ8Time + l->StutterBurstTime) / *p->StutterPeriod) * 100;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10281
*p->NumberOfStutterBurstsPerFrame = (*p->StutterEfficiencyNotIncludingVBlank > 0 ? (unsigned int)(math_ceil2(l->VActiveTimeCriticalSurface / *p->StutterPeriod, 1)) : 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10282
*p->Z8NumberOfStutterBurstsPerFrame = (*p->Z8StutterEfficiencyNotIncludingVBlank > 0 ? (unsigned int)(math_ceil2(l->VActiveTimeCriticalSurface / *p->StutterPeriod, 1)) : 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10290
DML_LOG_VERBOSE("DML::%s: VActiveTimeCriticalSurface = %f\n", __func__, l->VActiveTimeCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10301
*p->StutterEfficiency = (1 - (*p->NumberOfStutterBurstsPerFrame * p->SRExitTime + l->StutterBurstTime * l->VActiveTimeCriticalSurface / *p->StutterPeriod) / l->FrameTimeCriticalSurface) * 100;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10313
*p->Z8StutterEfficiency = (1 - (*p->Z8NumberOfStutterBurstsPerFrame * p->SRExitZ8Time + l->StutterBurstTime * l->VActiveTimeCriticalSurface / *p->StutterPeriod) / l->FrameTimeCriticalSurface) * 100;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10324
DML_LOG_VERBOSE("DML::%s: LastZ8StutterPeriod = %f\n", __func__, *p->Z8StutterEfficiencyNotIncludingVBlank > 0 ? l->VActiveTimeCriticalSurface - (*p->Z8NumberOfStutterBurstsPerFrame - 1) * *p->StutterPeriod : 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10326
DML_LOG_VERBOSE("DML::%s: StutterBurstTime = %f\n", __func__, l->StutterBurstTime);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10334
*p->DCHUBBUB_ARB_CSTATE_MAX_CAP_MODE = !(!p->UnboundedRequestEnabled && (p->NumberOfActiveSurfaces == 1) && l->SinglePlaneCriticalSurface && l->SinglePipeCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
10337
DML_LOG_VERBOSE("DML::%s: DETBufferSizeYCriticalSurface = %u\n", __func__, l->DETBufferSizeYCriticalSurface);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1050
l->DETBufferSizePoolInKByte = MaxTotalDETInKByte;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1054
l->max_minDET = nomDETInKByte - ConfigReturnBufferSegmentSizeInkByte;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1056
l->max_minDET = nomDETInKByte;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1058
l->minDET = 128;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1059
l->minDET_pipe = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1062
while (l->minDET <= l->max_minDET && l->minDET_pipe == 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1063
if (2.0 * ((double)full_swath_bytes_l[k] + (double)full_swath_bytes_c[k]) / 1024.0 <= l->minDET)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1064
l->minDET_pipe = l->minDET;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1065
l->minDET = l->minDET + ConfigReturnBufferSegmentSizeInkByte;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1068
DML_LOG_VERBOSE("DML::%s: k=%u minDET = %u\n", __func__, k, l->minDET);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1069
DML_LOG_VERBOSE("DML::%s: k=%u max_minDET = %u\n", __func__, k, l->max_minDET);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1070
DML_LOG_VERBOSE("DML::%s: k=%u minDET_pipe = %u\n", __func__, k, l->minDET_pipe);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1074
if (l->minDET_pipe == 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1075
l->minDET_pipe = (unsigned int)(math_max2(128, math_ceil2(((double)full_swath_bytes_l[k] + (double)full_swath_bytes_c[k]) / 1024.0, ConfigReturnBufferSegmentSizeInkByte)));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1076
DML_LOG_VERBOSE("DML::%s: k=%u minDET_pipe = %u (assume each plane take half DET)\n", __func__, k, l->minDET_pipe);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1083
l->DETBufferSizePoolInKByte = l->DETBufferSizePoolInKByte - (ForceSingleDPP ? 1 : DPPPerSurface[k]) * display_cfg->plane_descriptors[k].overrides.det_size_override_kb;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1084
} else if ((ForceSingleDPP ? 1 : DPPPerSurface[k]) * l->minDET_pipe <= l->DETBufferSizePoolInKByte) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1085
DETBufferSizeInKByte[k] = l->minDET_pipe;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1086
l->DETBufferSizePoolInKByte = l->DETBufferSizePoolInKByte - (ForceSingleDPP ? 1 : DPPPerSurface[k]) * l->minDET_pipe;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1092
DML_LOG_VERBOSE("DML::%s: DETBufferSizePoolInKByte = %u\n", __func__, l->DETBufferSizePoolInKByte);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1104
l->TotalPixelRate += display_cfg->stream_descriptors[k].timing.pixel_clock_khz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1109
l->DETBudgetPerStream[k] = (unsigned int)((double) display_cfg->stream_descriptors[k].timing.pixel_clock_khz * MaxTotalDETInKByte / l->TotalPixelRate);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1110
l->RemainingDETBudgetPerStream[k] = l->DETBudgetPerStream[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1116
l->TotalBandwidthPerStream[display_cfg->plane_descriptors[k].stream_index] += (unsigned int)(ReadBandwidthLuma[k] + ReadBandwidthChroma[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1119
if (l->RemainingDETBudgetPerStream[display_cfg->plane_descriptors[k].stream_index] >= DETBufferSizeInKByte[k] * (ForceSingleDPP ? 1 : DPPPerSurface[k])) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1120
l->RemainingDETBudgetPerStream[display_cfg->plane_descriptors[k].stream_index] -= DETBufferSizeInKByte[k] * (ForceSingleDPP ? 1 : DPPPerSurface[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1131
l->ResidualDETAfterRounding = MaxTotalDETInKByte;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1135
l->IdealDETBudget = (unsigned int)(((ReadBandwidthLuma[k] + ReadBandwidthChroma[k]) / l->TotalBandwidthPerStream[display_cfg->plane_descriptors[k].stream_index])
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1136
* l->DETBudgetPerStream[display_cfg->plane_descriptors[k].stream_index]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1138
if (l->IdealDETBudget > DETBufferSizeInKByte[k]) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1139
l->DeltaDETBudget = l->IdealDETBudget - DETBufferSizeInKByte[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1140
if (l->DeltaDETBudget > l->RemainingDETBudgetPerStream[display_cfg->plane_descriptors[k].stream_index])
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1141
l->DeltaDETBudget = l->RemainingDETBudgetPerStream[display_cfg->plane_descriptors[k].stream_index];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1144
DETBufferSizeInKByte[k] += (unsigned int)((double)l->DeltaDETBudget / (ForceSingleDPP ? 1 : DPPPerSurface[k]));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1145
l->RemainingDETBudgetPerStream[display_cfg->plane_descriptors[k].stream_index] -= l->DeltaDETBudget;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1151
l->ResidualDETAfterRounding -= DETBufferSizeInKByte[k] * (ForceSingleDPP ? 1 : DPPPerSurface[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1158
l->TotalBandwidth = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1161
l->TotalBandwidth = l->TotalBandwidth + ReadBandwidthLuma[k] + ReadBandwidthChroma[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1169
DML_LOG_VERBOSE("DML::%s: TotalBandwidth = %f\n", __func__, l->TotalBandwidth);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1170
l->BandwidthOfSurfacesNotAssignedDETPiece = l->TotalBandwidth;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1175
} else if (display_cfg->plane_descriptors[k].overrides.det_size_override_kb > 0 || (((double)(ForceSingleDPP ? 1 : DPPPerSurface[k]) * (double)DETBufferSizeInKByte[k] / (double)MaxTotalDETInKByte) >= ((ReadBandwidthLuma[k] + ReadBandwidthChroma[k]) / l->TotalBandwidth))) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1177
l->BandwidthOfSurfacesNotAssignedDETPiece = l->BandwidthOfSurfacesNotAssignedDETPiece - ReadBandwidthLuma[k] - ReadBandwidthChroma[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1182
DML_LOG_VERBOSE("DML::%s: k=%u BandwidthOfSurfacesNotAssignedDETPiece = %f\n", __func__, k, l->BandwidthOfSurfacesNotAssignedDETPiece);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1187
l->NextSurfaceToAssignDETPiece = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1192
DML_LOG_VERBOSE("DML::%s: j=%u k=%u, ReadBandwidthLuma[Next] = %f\n", __func__, j, k, ReadBandwidthLuma[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1193
DML_LOG_VERBOSE("DML::%s: j=%u k=%u, ReadBandwidthChroma[Next] = %f\n", __func__, j, k, ReadBandwidthChroma[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1194
DML_LOG_VERBOSE("DML::%s: j=%u k=%u, NextSurfaceToAssignDETPiece = %u\n", __func__, j, k, l->NextSurfaceToAssignDETPiece);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1196
ReadBandwidthLuma[k] + ReadBandwidthChroma[k] < ReadBandwidthLuma[l->NextSurfaceToAssignDETPiece] + ReadBandwidthChroma[l->NextSurfaceToAssignDETPiece])) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1197
l->NextSurfaceToAssignDETPiece = k;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1205
l->NextDETBufferPieceInKByte = (unsigned int)(math_min2(
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1206
math_round((double)l->DETBufferSizePoolInKByte * (ReadBandwidthLuma[l->NextSurfaceToAssignDETPiece] + ReadBandwidthChroma[l->NextSurfaceToAssignDETPiece]) / l->BandwidthOfSurfacesNotAssignedDETPiece /
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1207
((ForceSingleDPP ? 1 : DPPPerSurface[l->NextSurfaceToAssignDETPiece]) * ConfigReturnBufferSegmentSizeInkByte))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1208
* (ForceSingleDPP ? 1 : DPPPerSurface[l->NextSurfaceToAssignDETPiece]) * ConfigReturnBufferSegmentSizeInkByte,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1209
math_floor2((double)l->DETBufferSizePoolInKByte, (ForceSingleDPP ? 1 : DPPPerSurface[l->NextSurfaceToAssignDETPiece]) * ConfigReturnBufferSegmentSizeInkByte)));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1211
DML_LOG_VERBOSE("DML::%s: j=%u, DETBufferSizePoolInKByte = %u\n", __func__, j, l->DETBufferSizePoolInKByte);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1212
DML_LOG_VERBOSE("DML::%s: j=%u, NextSurfaceToAssignDETPiece = %u\n", __func__, j, l->NextSurfaceToAssignDETPiece);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1213
DML_LOG_VERBOSE("DML::%s: j=%u, ReadBandwidthLuma[%u] = %f\n", __func__, j, l->NextSurfaceToAssignDETPiece, ReadBandwidthLuma[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1214
DML_LOG_VERBOSE("DML::%s: j=%u, ReadBandwidthChroma[%u] = %f\n", __func__, j, l->NextSurfaceToAssignDETPiece, ReadBandwidthChroma[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1215
DML_LOG_VERBOSE("DML::%s: j=%u, BandwidthOfSurfacesNotAssignedDETPiece = %f\n", __func__, j, l->BandwidthOfSurfacesNotAssignedDETPiece);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1216
DML_LOG_VERBOSE("DML::%s: j=%u, NextDETBufferPieceInKByte = %u\n", __func__, j, l->NextDETBufferPieceInKByte);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1217
DML_LOG_VERBOSE("DML::%s: j=%u, DETBufferSizeInKByte[%u] increases from %u ", __func__, j, l->NextSurfaceToAssignDETPiece, DETBufferSizeInKByte[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1219
DETBufferSizeInKByte[l->NextSurfaceToAssignDETPiece] = DETBufferSizeInKByte[l->NextSurfaceToAssignDETPiece] + l->NextDETBufferPieceInKByte / (ForceSingleDPP ? 1 : DPPPerSurface[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1220
DML_LOG_VERBOSE("to %u\n", DETBufferSizeInKByte[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1222
l->DETBufferSizePoolInKByte = l->DETBufferSizePoolInKByte - l->NextDETBufferPieceInKByte;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1223
DETPieceAssignedToThisSurfaceAlready[l->NextSurfaceToAssignDETPiece] = true;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1224
l->BandwidthOfSurfacesNotAssignedDETPiece = l->BandwidthOfSurfacesNotAssignedDETPiece - (ReadBandwidthLuma[l->NextSurfaceToAssignDETPiece] + ReadBandwidthChroma[l->NextSurfaceToAssignDETPiece]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12360
struct dml2_core_shared_rq_dlg_get_dlg_reg_locals *l = &s->rq_dlg_get_dlg_reg_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12362
memset(l, 0, sizeof(struct dml2_core_shared_rq_dlg_get_dlg_reg_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12366
l->plane_idx = dml_get_plane_idx(mode_lib, pipe_idx);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12367
DML_ASSERT(l->plane_idx < DML2_MAX_PLANES);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12369
l->source_format = dml2_444_8;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12370
l->odm_mode = dml2_odm_mode_bypass;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12371
l->dual_plane = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12372
l->htotal = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12373
l->hactive = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12374
l->hblank_end = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12375
l->vblank_end = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12376
l->interlaced = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12377
l->pclk_freq_in_mhz = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12378
l->refclk_freq_in_mhz = (display_cfg->overrides.hw.dlg_ref_clk_mhz > 0) ? (double)display_cfg->overrides.hw.dlg_ref_clk_mhz : mode_lib->soc.dchub_refclk_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12379
l->ref_freq_to_pix_freq = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12381
if (l->plane_idx < DML2_MAX_PLANES) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12383
l->timing = &display_cfg->stream_descriptors[display_cfg->plane_descriptors[l->plane_idx].stream_index].timing;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12384
l->source_format = display_cfg->plane_descriptors[l->plane_idx].pixel_format;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12385
l->odm_mode = mode_lib->mp.ODMMode[l->plane_idx];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12387
l->dual_plane = is_dual_plane(l->source_format);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12389
l->htotal = l->timing->h_total;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12390
l->hactive = l->timing->h_active;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12391
l->hblank_end = l->timing->h_blank_end;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12392
l->vblank_end = l->timing->v_blank_end;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12393
l->interlaced = l->timing->interlaced;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12394
l->pclk_freq_in_mhz = (double)l->timing->pixel_clock_khz / 1000;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12395
l->ref_freq_to_pix_freq = l->refclk_freq_in_mhz / l->pclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12397
DML_LOG_VERBOSE("DML_DLG::%s: plane_idx = %d\n", __func__, l->plane_idx);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12398
DML_LOG_VERBOSE("DML_DLG: %s: htotal = %d\n", __func__, l->htotal);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12399
DML_LOG_VERBOSE("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, l->refclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12402
DML_LOG_VERBOSE("DML_DLG: %s: pclk_freq_in_mhz = %3.2f\n", __func__, l->pclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12403
DML_LOG_VERBOSE("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, l->ref_freq_to_pix_freq);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12404
DML_LOG_VERBOSE("DML_DLG: %s: interlaced = %d\n", __func__, l->interlaced);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12406
DML_ASSERT(l->refclk_freq_in_mhz != 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12407
DML_ASSERT(l->pclk_freq_in_mhz != 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12408
DML_ASSERT(l->ref_freq_to_pix_freq < 4.0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12413
if (l->odm_mode == dml2_odm_mode_bypass) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12414
disp_dlg_regs->refcyc_h_blank_end = (unsigned int)((double)l->hblank_end * l->ref_freq_to_pix_freq);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12415
} else if (l->odm_mode == dml2_odm_mode_combine_2to1 || l->odm_mode == dml2_odm_mode_combine_3to1 || l->odm_mode == dml2_odm_mode_combine_4to1) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12417
l->num_active_pipes = mode_lib->mp.num_active_pipes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12418
l->first_pipe_idx_in_plane = DML2_MAX_PLANES;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12419
l->pipe_idx_in_combine = 0; // pipe index within the plane
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12420
l->odm_combine_factor = 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12422
if (l->odm_mode == dml2_odm_mode_combine_3to1)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12423
l->odm_combine_factor = 3;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12424
else if (l->odm_mode == dml2_odm_mode_combine_4to1)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12425
l->odm_combine_factor = 4;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12427
for (unsigned int i = 0; i < l->num_active_pipes; i++) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12428
if (dml_get_plane_idx(mode_lib, i) == l->plane_idx) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12429
if (i < l->first_pipe_idx_in_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12430
l->first_pipe_idx_in_plane = i;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12434
l->pipe_idx_in_combine = pipe_idx - l->first_pipe_idx_in_plane; // DML assumes the pipes in the same plane will have continuous indexing (i.e. plane 0 use pipe 0, 1, and plane 1 uses pipe 2, 3, etc.)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12436
disp_dlg_regs->refcyc_h_blank_end = (unsigned int)(((double)l->hblank_end + (double)l->pipe_idx_in_combine * (double)l->hactive / (double)l->odm_combine_factor) * l->ref_freq_to_pix_freq);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12438
DML_LOG_VERBOSE("DML_DLG: %s: first_pipe_idx_in_plane = %d\n", __func__, l->first_pipe_idx_in_plane);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12439
DML_LOG_VERBOSE("DML_DLG: %s: pipe_idx_in_combine = %d\n", __func__, l->pipe_idx_in_combine);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12440
DML_LOG_VERBOSE("DML_DLG: %s: odm_combine_factor = %d\n", __func__, l->odm_combine_factor);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12446
disp_dlg_regs->ref_freq_to_pix_freq = (unsigned int)(l->ref_freq_to_pix_freq * math_pow(2, 19));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12447
disp_dlg_regs->refcyc_per_htotal = (unsigned int)(l->ref_freq_to_pix_freq * (double)l->htotal * math_pow(2, 8));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12448
disp_dlg_regs->dlg_vblank_end = l->interlaced ? (l->vblank_end / 2) : l->vblank_end; // 15 bits
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12450
l->min_ttu_vblank = mode_lib->mp.MinTTUVBlank[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12451
l->min_dst_y_next_start = (unsigned int)(mode_lib->mp.MIN_DST_Y_NEXT_START[mode_lib->mp.pipe_plane[pipe_idx]]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12453
DML_LOG_VERBOSE("DML_DLG: %s: min_ttu_vblank (us) = %3.2f\n", __func__, l->min_ttu_vblank);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12454
DML_LOG_VERBOSE("DML_DLG: %s: min_dst_y_next_start = %d\n", __func__, l->min_dst_y_next_start);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12455
DML_LOG_VERBOSE("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, l->ref_freq_to_pix_freq);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12457
l->vready_after_vcount0 = (unsigned int)(mode_lib->mp.VREADY_AT_OR_AFTER_VSYNC[mode_lib->mp.pipe_plane[pipe_idx]]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12458
disp_dlg_regs->vready_after_vcount0 = l->vready_after_vcount0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12462
l->dst_x_after_scaler = (unsigned int)(mode_lib->mp.DSTXAfterScaler[mode_lib->mp.pipe_plane[pipe_idx]]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12463
l->dst_y_after_scaler = (unsigned int)(mode_lib->mp.DSTYAfterScaler[mode_lib->mp.pipe_plane[pipe_idx]]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12465
DML_LOG_VERBOSE("DML_DLG: %s: dst_x_after_scaler = %d\n", __func__, l->dst_x_after_scaler);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12466
DML_LOG_VERBOSE("DML_DLG: %s: dst_y_after_scaler = %d\n", __func__, l->dst_y_after_scaler);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12468
l->dst_y_prefetch = mode_lib->mp.dst_y_prefetch[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12469
l->dst_y_per_vm_vblank = mode_lib->mp.dst_y_per_vm_vblank[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12470
l->dst_y_per_row_vblank = mode_lib->mp.dst_y_per_row_vblank[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12471
l->dst_y_per_vm_flip = mode_lib->mp.dst_y_per_vm_flip[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12472
l->dst_y_per_row_flip = mode_lib->mp.dst_y_per_row_flip[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12474
DML_LOG_VERBOSE("DML_DLG: %s: dst_y_prefetch (after rnd) = %3.2f\n", __func__, l->dst_y_prefetch);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12475
DML_LOG_VERBOSE("DML_DLG: %s: dst_y_per_vm_flip = %3.2f\n", __func__, l->dst_y_per_vm_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12476
DML_LOG_VERBOSE("DML_DLG: %s: dst_y_per_row_flip = %3.2f\n", __func__, l->dst_y_per_row_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12477
DML_LOG_VERBOSE("DML_DLG: %s: dst_y_per_vm_vblank = %3.2f\n", __func__, l->dst_y_per_vm_vblank);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12478
DML_LOG_VERBOSE("DML_DLG: %s: dst_y_per_row_vblank = %3.2f\n", __func__, l->dst_y_per_row_vblank);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12480
if (l->dst_y_prefetch > 0 && l->dst_y_per_vm_vblank > 0 && l->dst_y_per_row_vblank > 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12481
DML_ASSERT(l->dst_y_prefetch > (l->dst_y_per_vm_vblank + l->dst_y_per_row_vblank));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12484
l->vratio_pre_l = mode_lib->mp.VRatioPrefetchY[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12485
l->vratio_pre_c = mode_lib->mp.VRatioPrefetchC[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12487
DML_LOG_VERBOSE("DML_DLG: %s: vratio_pre_l = %3.2f\n", __func__, l->vratio_pre_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12488
DML_LOG_VERBOSE("DML_DLG: %s: vratio_pre_c = %3.2f\n", __func__, l->vratio_pre_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12491
l->refcyc_per_line_delivery_pre_l = mode_lib->mp.DisplayPipeLineDeliveryTimeLumaPrefetch[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12492
l->refcyc_per_line_delivery_l = mode_lib->mp.DisplayPipeLineDeliveryTimeLuma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12494
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_line_delivery_pre_l = %3.2f\n", __func__, l->refcyc_per_line_delivery_pre_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12495
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_line_delivery_l = %3.2f\n", __func__, l->refcyc_per_line_delivery_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12497
l->refcyc_per_line_delivery_pre_c = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12498
l->refcyc_per_line_delivery_c = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12500
if (l->dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12501
l->refcyc_per_line_delivery_pre_c = mode_lib->mp.DisplayPipeLineDeliveryTimeChromaPrefetch[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12502
l->refcyc_per_line_delivery_c = mode_lib->mp.DisplayPipeLineDeliveryTimeChroma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12504
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_line_delivery_pre_c = %3.2f\n", __func__, l->refcyc_per_line_delivery_pre_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12505
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_line_delivery_c = %3.2f\n", __func__, l->refcyc_per_line_delivery_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12508
disp_dlg_regs->refcyc_per_vm_dmdata = (unsigned int)(mode_lib->mp.Tdmdl_vm[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12509
disp_dlg_regs->dmdata_dl_delta = (unsigned int)(mode_lib->mp.Tdmdl[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12511
l->refcyc_per_req_delivery_pre_l = mode_lib->mp.DisplayPipeRequestDeliveryTimeLumaPrefetch[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12512
l->refcyc_per_req_delivery_l = mode_lib->mp.DisplayPipeRequestDeliveryTimeLuma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12514
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_req_delivery_pre_l = %3.2f\n", __func__, l->refcyc_per_req_delivery_pre_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12515
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_req_delivery_l = %3.2f\n", __func__, l->refcyc_per_req_delivery_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12517
l->refcyc_per_req_delivery_pre_c = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12518
l->refcyc_per_req_delivery_c = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12519
if (l->dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12520
l->refcyc_per_req_delivery_pre_c = mode_lib->mp.DisplayPipeRequestDeliveryTimeChromaPrefetch[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12521
l->refcyc_per_req_delivery_c = mode_lib->mp.DisplayPipeRequestDeliveryTimeChroma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12523
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_req_delivery_pre_c = %3.2f\n", __func__, l->refcyc_per_req_delivery_pre_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12524
DML_LOG_VERBOSE("DML_DLG: %s: refcyc_per_req_delivery_c = %3.2f\n", __func__, l->refcyc_per_req_delivery_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12528
DML_ASSERT(display_cfg->plane_descriptors[l->plane_idx].cursor.num_cursors <= 1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12531
disp_dlg_regs->min_dst_y_next_start = (unsigned int)((double)l->min_dst_y_next_start * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12534
disp_dlg_regs->dst_y_after_scaler = l->dst_y_after_scaler; // in terms of line
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12535
disp_dlg_regs->refcyc_x_after_scaler = (unsigned int)((double)l->dst_x_after_scaler * l->ref_freq_to_pix_freq); // in terms of refclk
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12536
disp_dlg_regs->dst_y_prefetch = (unsigned int)(l->dst_y_prefetch * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12537
disp_dlg_regs->dst_y_per_vm_vblank = (unsigned int)(l->dst_y_per_vm_vblank * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12538
disp_dlg_regs->dst_y_per_row_vblank = (unsigned int)(l->dst_y_per_row_vblank * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12539
disp_dlg_regs->dst_y_per_vm_flip = (unsigned int)(l->dst_y_per_vm_flip * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12540
disp_dlg_regs->dst_y_per_row_flip = (unsigned int)(l->dst_y_per_row_flip * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12542
disp_dlg_regs->vratio_prefetch = (unsigned int)(l->vratio_pre_l * math_pow(2, 19));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12543
disp_dlg_regs->vratio_prefetch_c = (unsigned int)(l->vratio_pre_c * math_pow(2, 19));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12550
disp_dlg_regs->refcyc_per_vm_group_vblank = (unsigned int)(mode_lib->mp.TimePerVMGroupVBlank[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12551
disp_dlg_regs->refcyc_per_vm_group_flip = (unsigned int)(mode_lib->mp.TimePerVMGroupFlip[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12552
disp_dlg_regs->refcyc_per_vm_req_vblank = (unsigned int)(mode_lib->mp.TimePerVMRequestVBlank[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz * math_pow(2, 10));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12553
disp_dlg_regs->refcyc_per_vm_req_flip = (unsigned int)(mode_lib->mp.TimePerVMRequestFlip[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz * math_pow(2, 10));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12555
l->dst_y_per_pte_row_nom_l = mode_lib->mp.DST_Y_PER_PTE_ROW_NOM_L[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12556
l->dst_y_per_pte_row_nom_c = mode_lib->mp.DST_Y_PER_PTE_ROW_NOM_C[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12557
l->refcyc_per_pte_group_nom_l = mode_lib->mp.time_per_pte_group_nom_luma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12558
l->refcyc_per_pte_group_nom_c = mode_lib->mp.time_per_pte_group_nom_chroma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12559
l->refcyc_per_pte_group_vblank_l = mode_lib->mp.time_per_pte_group_vblank_luma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12560
l->refcyc_per_pte_group_vblank_c = mode_lib->mp.time_per_pte_group_vblank_chroma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12561
l->refcyc_per_pte_group_flip_l = mode_lib->mp.time_per_pte_group_flip_luma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12562
l->refcyc_per_pte_group_flip_c = mode_lib->mp.time_per_pte_group_flip_chroma[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12563
l->refcyc_per_tdlut_group = mode_lib->mp.time_per_tdlut_group[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12565
disp_dlg_regs->dst_y_per_pte_row_nom_l = (unsigned int)(l->dst_y_per_pte_row_nom_l * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12566
disp_dlg_regs->dst_y_per_pte_row_nom_c = (unsigned int)(l->dst_y_per_pte_row_nom_c * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12568
disp_dlg_regs->refcyc_per_pte_group_nom_l = (unsigned int)(l->refcyc_per_pte_group_nom_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12569
disp_dlg_regs->refcyc_per_pte_group_nom_c = (unsigned int)(l->refcyc_per_pte_group_nom_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12570
disp_dlg_regs->refcyc_per_pte_group_vblank_l = (unsigned int)(l->refcyc_per_pte_group_vblank_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12571
disp_dlg_regs->refcyc_per_pte_group_vblank_c = (unsigned int)(l->refcyc_per_pte_group_vblank_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12572
disp_dlg_regs->refcyc_per_pte_group_flip_l = (unsigned int)(l->refcyc_per_pte_group_flip_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12573
disp_dlg_regs->refcyc_per_pte_group_flip_c = (unsigned int)(l->refcyc_per_pte_group_flip_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12574
disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int)math_floor2(l->refcyc_per_line_delivery_pre_l, 1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12575
disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int)math_floor2(l->refcyc_per_line_delivery_l, 1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12576
disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int)math_floor2(l->refcyc_per_line_delivery_pre_c, 1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12577
disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int)math_floor2(l->refcyc_per_line_delivery_c, 1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12579
l->dst_y_per_meta_row_nom_l = mode_lib->mp.DST_Y_PER_META_ROW_NOM_L[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12580
l->dst_y_per_meta_row_nom_c = mode_lib->mp.DST_Y_PER_META_ROW_NOM_C[mode_lib->mp.pipe_plane[pipe_idx]];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12581
l->refcyc_per_meta_chunk_nom_l = mode_lib->mp.TimePerMetaChunkNominal[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12582
l->refcyc_per_meta_chunk_nom_c = mode_lib->mp.TimePerChromaMetaChunkNominal[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12583
l->refcyc_per_meta_chunk_vblank_l = mode_lib->mp.TimePerMetaChunkVBlank[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12584
l->refcyc_per_meta_chunk_vblank_c = mode_lib->mp.TimePerChromaMetaChunkVBlank[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12585
l->refcyc_per_meta_chunk_flip_l = mode_lib->mp.TimePerMetaChunkFlip[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12586
l->refcyc_per_meta_chunk_flip_c = mode_lib->mp.TimePerChromaMetaChunkFlip[mode_lib->mp.pipe_plane[pipe_idx]] * l->refclk_freq_in_mhz;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12588
disp_dlg_regs->dst_y_per_meta_row_nom_l = (unsigned int)(l->dst_y_per_meta_row_nom_l * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12589
disp_dlg_regs->dst_y_per_meta_row_nom_c = (unsigned int)(l->dst_y_per_meta_row_nom_c * math_pow(2, 2));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12590
disp_dlg_regs->refcyc_per_meta_chunk_nom_l = (unsigned int)(l->refcyc_per_meta_chunk_nom_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12591
disp_dlg_regs->refcyc_per_meta_chunk_nom_c = (unsigned int)(l->refcyc_per_meta_chunk_nom_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12592
disp_dlg_regs->refcyc_per_meta_chunk_vblank_l = (unsigned int)(l->refcyc_per_meta_chunk_vblank_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12593
disp_dlg_regs->refcyc_per_meta_chunk_vblank_c = (unsigned int)(l->refcyc_per_meta_chunk_vblank_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12594
disp_dlg_regs->refcyc_per_meta_chunk_flip_l = (unsigned int)(l->refcyc_per_meta_chunk_flip_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12595
disp_dlg_regs->refcyc_per_meta_chunk_flip_c = (unsigned int)(l->refcyc_per_meta_chunk_flip_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12597
disp_dlg_regs->refcyc_per_tdlut_group = (unsigned int)(l->refcyc_per_tdlut_group);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12600
disp_ttu_regs->refcyc_per_req_delivery_pre_l = (unsigned int)(l->refcyc_per_req_delivery_pre_l * math_pow(2, 10));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12601
disp_ttu_regs->refcyc_per_req_delivery_l = (unsigned int)(l->refcyc_per_req_delivery_l * math_pow(2, 10));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12602
disp_ttu_regs->refcyc_per_req_delivery_pre_c = (unsigned int)(l->refcyc_per_req_delivery_pre_c * math_pow(2, 10));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12603
disp_ttu_regs->refcyc_per_req_delivery_c = (unsigned int)(l->refcyc_per_req_delivery_c * math_pow(2, 10));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12606
disp_ttu_regs->qos_level_high_wm = (unsigned int)(4.0 * (double)l->htotal * l->ref_freq_to_pix_freq);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12613
disp_ttu_regs->min_ttu_vblank = (unsigned int)(l->min_ttu_vblank * l->refclk_freq_in_mhz);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12616
DML_ASSERT(l->refcyc_per_req_delivery_pre_l < math_pow(2, 13));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12617
DML_ASSERT(l->refcyc_per_req_delivery_l < math_pow(2, 13));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12618
DML_ASSERT(l->refcyc_per_req_delivery_pre_c < math_pow(2, 13));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12619
DML_ASSERT(l->refcyc_per_req_delivery_c < math_pow(2, 13));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12638
l->dst_y_per_pte_row_nom_l = (unsigned int)math_pow(2, 17) - 1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12640
if (l->dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12643
l->dst_y_per_pte_row_nom_c = (unsigned int)math_pow(2, 17) - 1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12649
if (l->dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
1265
struct dml2_core_shared_TruncToValidBPP_locals *l,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
12654
if (l->dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2421
struct dml2_core_shared_calculate_mcache_setting_locals *l = &scratch->calculate_mcache_setting_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2422
memset(l, 0, sizeof(struct dml2_core_shared_calculate_mcache_setting_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2443
l->is_dual_plane = dml_is_420(p->source_format) || p->source_format == dml2_rgbe_alpha;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2445
l->l_p.num_chans = p->num_chans;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2446
l->l_p.mem_word_bytes = p->mem_word_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2447
l->l_p.mcache_size_bytes = p->mcache_size_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2448
l->l_p.mcache_line_size_bytes = p->mcache_line_size_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2449
l->l_p.gpuvm_enable = p->gpuvm_enable;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2450
l->l_p.gpuvm_page_size_kbytes = p->gpuvm_page_size_kbytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2451
l->l_p.surf_vert = p->surf_vert;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2452
l->l_p.vp_stationary = p->vp_stationary;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2453
l->l_p.tiling_mode = p->tiling_mode;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2454
l->l_p.vp_start_x = p->vp_start_x_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2455
l->l_p.vp_start_y = p->vp_start_y_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2456
l->l_p.full_vp_width = p->full_vp_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2457
l->l_p.full_vp_height = p->full_vp_height_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2458
l->l_p.blk_width = p->blk_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2459
l->l_p.blk_height = p->blk_height_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2460
l->l_p.vmpg_width = p->vmpg_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2461
l->l_p.vmpg_height = p->vmpg_height_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2462
l->l_p.full_swath_bytes = p->full_swath_bytes_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2463
l->l_p.bytes_per_pixel = p->bytes_per_pixel_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2466
l->l_p.num_mcaches = p->num_mcaches_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2467
l->l_p.mcache_row_bytes = p->mcache_row_bytes_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2468
l->l_p.mcache_row_bytes_per_channel = p->mcache_row_bytes_per_channel_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2469
l->l_p.dcc_dram_bw_nom_overhead_factor = p->dcc_dram_bw_nom_overhead_factor_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2470
l->l_p.dcc_dram_bw_pref_overhead_factor = p->dcc_dram_bw_pref_overhead_factor_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2471
l->l_p.mvmpg_width = &l->mvmpg_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2472
l->l_p.mvmpg_height = &l->mvmpg_height_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2473
l->l_p.full_vp_access_width_mvmpg_aligned = &l->full_vp_access_width_mvmpg_aligned_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2474
l->l_p.meta_row_width_ub = &l->meta_row_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2475
l->l_p.mvmpg_per_mcache_lb = &l->mvmpg_per_mcache_lb_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2477
calculate_mcache_row_bytes(scratch, &l->l_p);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2480
if (l->is_dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2481
l->c_p.num_chans = p->num_chans;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2482
l->c_p.mem_word_bytes = p->mem_word_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2483
l->c_p.mcache_size_bytes = p->mcache_size_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2484
l->c_p.mcache_line_size_bytes = p->mcache_line_size_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2485
l->c_p.gpuvm_enable = p->gpuvm_enable;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2486
l->c_p.gpuvm_page_size_kbytes = p->gpuvm_page_size_kbytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2487
l->c_p.surf_vert = p->surf_vert;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2488
l->c_p.vp_stationary = p->vp_stationary;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2489
l->c_p.tiling_mode = p->tiling_mode;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2490
l->c_p.vp_start_x = p->vp_start_x_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2491
l->c_p.vp_start_y = p->vp_start_y_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2492
l->c_p.full_vp_width = p->full_vp_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2493
l->c_p.full_vp_height = p->full_vp_height_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2494
l->c_p.blk_width = p->blk_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2495
l->c_p.blk_height = p->blk_height_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2496
l->c_p.vmpg_width = p->vmpg_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2497
l->c_p.vmpg_height = p->vmpg_height_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2498
l->c_p.full_swath_bytes = p->full_swath_bytes_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2499
l->c_p.bytes_per_pixel = p->bytes_per_pixel_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2502
l->c_p.num_mcaches = p->num_mcaches_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2503
l->c_p.mcache_row_bytes = p->mcache_row_bytes_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2504
l->c_p.mcache_row_bytes_per_channel = p->mcache_row_bytes_per_channel_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2505
l->c_p.dcc_dram_bw_nom_overhead_factor = p->dcc_dram_bw_nom_overhead_factor_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2506
l->c_p.dcc_dram_bw_pref_overhead_factor = p->dcc_dram_bw_pref_overhead_factor_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2507
l->c_p.mvmpg_width = &l->mvmpg_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2508
l->c_p.mvmpg_height = &l->mvmpg_height_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2509
l->c_p.full_vp_access_width_mvmpg_aligned = &l->full_vp_access_width_mvmpg_aligned_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2510
l->c_p.meta_row_width_ub = &l->meta_row_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2511
l->c_p.mvmpg_per_mcache_lb = &l->mvmpg_per_mcache_lb_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2513
calculate_mcache_row_bytes(scratch, &l->c_p);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2518
l->mcache_remainder_l = *p->mcache_row_bytes_per_channel_l % p->mcache_size_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2519
l->mcache_remainder_c = *p->mcache_row_bytes_per_channel_c % p->mcache_size_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2520
l->mvmpg_access_width_l = p->surf_vert ? l->mvmpg_height_l : l->mvmpg_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2521
l->mvmpg_access_width_c = p->surf_vert ? l->mvmpg_height_c : l->mvmpg_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2524
*p->mall_comb_mcache_l = (2 * l->mcache_remainder_l <= p->mcache_size_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2526
if (l->is_dual_plane)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2527
*p->mall_comb_mcache_c = (2 * l->mcache_remainder_c <= p->mcache_size_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2531
l->luma_time_factor = (double)l->mvmpg_height_c / l->mvmpg_height_l * 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2533
l->luma_time_factor = (double)l->mvmpg_width_c / l->mvmpg_width_l * 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2537
l->avg_mcache_element_size_l = l->meta_row_width_l / *p->num_mcaches_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2539
if (l->is_dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2540
l->avg_mcache_element_size_c = l->meta_row_width_c / *p->num_mcaches_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2543
if (l->mcache_remainder_l && l->mcache_remainder_c) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2545
l->lc_comb_last_mcache_size = (unsigned int)((l->mcache_remainder_l * (*p->mall_comb_mcache_l ? 2 : 1) * l->luma_time_factor) +
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2546
(l->mcache_remainder_c * (*p->mall_comb_mcache_c ? 2 : 1)));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2548
*p->lc_comb_mcache = (l->lc_comb_last_mcache_size <= p->mcache_size_bytes) && (*p->mall_comb_mcache_l == *p->mall_comb_mcache_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2554
DML_LOG_VERBOSE("DML::%s: is_dual_plane = %u\n", __func__, l->is_dual_plane);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2556
DML_LOG_VERBOSE("DML::%s: mvmpg_width_l = %u\n", __func__, l->mvmpg_width_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2557
DML_LOG_VERBOSE("DML::%s: mvmpg_height_l = %u\n", __func__, l->mvmpg_height_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2558
DML_LOG_VERBOSE("DML::%s: mcache_remainder_l = %f\n", __func__, l->mcache_remainder_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2560
DML_LOG_VERBOSE("DML::%s: avg_mcache_element_size_l = %u\n", __func__, l->avg_mcache_element_size_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2561
DML_LOG_VERBOSE("DML::%s: mvmpg_access_width_l = %u\n", __func__, l->mvmpg_access_width_l);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2564
if (l->is_dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2565
DML_LOG_VERBOSE("DML::%s: mvmpg_width_c = %u\n", __func__, l->mvmpg_width_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2566
DML_LOG_VERBOSE("DML::%s: mvmpg_height_c = %u\n", __func__, l->mvmpg_height_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2567
DML_LOG_VERBOSE("DML::%s: mcache_remainder_c = %f\n", __func__, l->mcache_remainder_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2568
DML_LOG_VERBOSE("DML::%s: luma_time_factor = %f\n", __func__, l->luma_time_factor);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2570
DML_LOG_VERBOSE("DML::%s: avg_mcache_element_size_c = %u\n", __func__, l->avg_mcache_element_size_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2571
DML_LOG_VERBOSE("DML::%s: mvmpg_access_width_c = %u\n", __func__, l->mvmpg_access_width_c);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2573
DML_LOG_VERBOSE("DML::%s: lc_comb_last_mcache_size = %u\n", __func__, l->lc_comb_last_mcache_size);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2578
l->full_vp_access_width_l = p->surf_vert ? p->full_vp_height_l : p->full_vp_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2579
l->full_vp_access_width_c = p->surf_vert ? p->full_vp_height_c : p->full_vp_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2582
p->mcache_offsets_l[n] = (unsigned int)(math_floor2((n + 1) * l->avg_mcache_element_size_l / l->mvmpg_access_width_l, 1)) * l->mvmpg_access_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2584
p->mcache_offsets_l[*p->num_mcaches_l - 1] = l->full_vp_access_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2586
if (l->is_dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2588
p->mcache_offsets_c[n] = (unsigned int)(math_floor2((n + 1) * l->avg_mcache_element_size_c / l->mvmpg_access_width_c, 1)) * l->mvmpg_access_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2590
p->mcache_offsets_c[*p->num_mcaches_c - 1] = l->full_vp_access_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2596
if (l->is_dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2604
if (*p->lc_comb_mcache && l->is_dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2606
p->mcache_offsets_l[n] = (n + 1) * l->mvmpg_per_mcache_lb_l * l->mvmpg_access_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2607
p->mcache_offsets_l[*p->num_mcaches_l - 1] = l->full_vp_access_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2610
p->mcache_offsets_c[n] = (n + 1) * l->mvmpg_per_mcache_lb_c * l->mvmpg_access_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2611
p->mcache_offsets_c[*p->num_mcaches_c - 1] = l->full_vp_access_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2622
*p->mcache_shift_granularity_l = l->mvmpg_access_width_l;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
2623
*p->mcache_shift_granularity_c = l->mvmpg_access_width_c;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4856
struct dml2_core_shared_get_urgent_bandwidth_required_locals *l,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4896
memset(l, 0, sizeof(struct dml2_core_shared_get_urgent_bandwidth_required_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4899
l->mall_svp_prefetch_factor = (state_type == dml2_core_internal_soc_state_svp_prefetch) ? (bw_type == dml2_core_internal_bw_dram ? mall_prefetch_dram_overhead_factor[k] : mall_prefetch_sdp_overhead_factor[k]) : 1.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4900
l->tmp_nom_adj_factor_p0 = (bw_type == dml2_core_internal_bw_dram ? dcc_dram_bw_nom_overhead_factor_p0[k] : 1.0) * l->mall_svp_prefetch_factor;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4901
l->tmp_nom_adj_factor_p1 = (bw_type == dml2_core_internal_bw_dram ? dcc_dram_bw_nom_overhead_factor_p1[k] : 1.0) * l->mall_svp_prefetch_factor;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4902
l->tmp_pref_adj_factor_p0 = (bw_type == dml2_core_internal_bw_dram ? dcc_dram_bw_pref_overhead_factor_p0[k] : 1.0) * l->mall_svp_prefetch_factor;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4903
l->tmp_pref_adj_factor_p1 = (bw_type == dml2_core_internal_bw_dram ? dcc_dram_bw_pref_overhead_factor_p1[k] : 1.0) * l->mall_svp_prefetch_factor;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4905
l->adj_factor_p0 = UrgentBurstFactorLuma[k] * l->tmp_nom_adj_factor_p0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4906
l->adj_factor_p1 = UrgentBurstFactorChroma[k] * l->tmp_nom_adj_factor_p1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4907
l->adj_factor_cur = UrgentBurstFactorCursor[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4908
l->adj_factor_p0_pre = UrgentBurstFactorLumaPre[k] * l->tmp_pref_adj_factor_p0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4909
l->adj_factor_p1_pre = UrgentBurstFactorChromaPre[k] * l->tmp_pref_adj_factor_p1;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4910
l->adj_factor_cur_pre = UrgentBurstFactorCursorPre[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4923
l->per_plane_flip_bw[k] = 0; // qual_row_bw
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4925
l->per_plane_flip_bw[k] = NumberOfDPP[k] * (dpte_row_bw[k] + meta_row_bw[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4929
l->per_plane_flip_bw[k] = NumberOfDPP[k] * (dpte_row_bw[k] + meta_row_bw[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4931
l->per_plane_flip_bw[k] = NumberOfDPP[k] * flip_bw[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4935
l->vm_row_bw = NumberOfDPP[k] * prefetch_vmrow_bw[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4936
l->flip_and_active_bw = l->per_plane_flip_bw[k] + ReadBandwidthLuma[k] * l->adj_factor_p0 + ReadBandwidthChroma[k] * l->adj_factor_p1 + cursor_bw[k] * l->adj_factor_cur;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4937
l->flip_and_prefetch_bw = l->per_plane_flip_bw[k] + NumberOfDPP[k] * (PrefetchBandwidthLuma[k] * l->adj_factor_p0_pre + PrefetchBandwidthChroma[k] * l->adj_factor_p1_pre) + prefetch_cursor_bw[k] * l->adj_factor_cur_pre;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4938
l->flip_and_prefetch_bw_max = l->per_plane_flip_bw[k] + NumberOfDPP[k] * (PrefetchBandwidthMax[k] * l->adj_factor_p0_pre + PrefetchBandwidthChroma[k] * l->adj_factor_p1_pre) + prefetch_cursor_bw[k] * l->adj_factor_cur_pre;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4939
l->active_and_excess_bw = (ReadBandwidthLuma[k] + excess_vactive_fill_bw_l[k]) * l->tmp_nom_adj_factor_p0 + (ReadBandwidthChroma[k] + excess_vactive_fill_bw_c[k]) * l->tmp_nom_adj_factor_p1 + dpte_row_bw[k] + meta_row_bw[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4940
surface_required_bw[k] = math_max5(l->vm_row_bw, l->flip_and_active_bw, l->flip_and_prefetch_bw, l->active_and_excess_bw, l->flip_and_prefetch_bw_max);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4946
DML_LOG_VERBOSE("DML::%s: k=%d, max1: vm_row_bw=%f\n", __func__, k, l->vm_row_bw);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4947
DML_LOG_VERBOSE("DML::%s: k=%d, max2: flip_and_active_bw=%f\n", __func__, k, l->flip_and_active_bw);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4948
DML_LOG_VERBOSE("DML::%s: k=%d, max3: flip_and_prefetch_bw=%f\n", __func__, k, l->flip_and_prefetch_bw);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4949
DML_LOG_VERBOSE("DML::%s: k=%d, max4: active_and_excess_bw=%f\n", __func__, k, l->active_and_excess_bw);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4957
l->required_bandwidth_mbps += surface_required_bw[k];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4963
DML_LOG_VERBOSE("DML::%s: k=%d, mall_svp_prefetch_factor=%f\n", __func__, k, l->mall_svp_prefetch_factor);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4964
DML_LOG_VERBOSE("DML::%s: k=%d, adj_factor_p0=%f\n", __func__, k, l->adj_factor_p0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4965
DML_LOG_VERBOSE("DML::%s: k=%d, adj_factor_p1=%f\n", __func__, k, l->adj_factor_p1);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4966
DML_LOG_VERBOSE("DML::%s: k=%d, adj_factor_cur=%f\n", __func__, k, l->adj_factor_cur);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4968
DML_LOG_VERBOSE("DML::%s: k=%d, adj_factor_p0_pre=%f\n", __func__, k, l->adj_factor_p0_pre);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4969
DML_LOG_VERBOSE("DML::%s: k=%d, adj_factor_p1_pre=%f\n", __func__, k, l->adj_factor_p1_pre);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4970
DML_LOG_VERBOSE("DML::%s: k=%d, adj_factor_cur_pre=%f\n", __func__, k, l->adj_factor_cur_pre);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4972
DML_LOG_VERBOSE("DML::%s: k=%d, per_plane_flip_bw=%f\n", __func__, k, l->per_plane_flip_bw[k]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4985
DML_LOG_VERBOSE("DML::%s: k=%d, required_bandwidth_mbps=%f (total), inc_flip_bw=%d, is_phantom=%d exclude_this_plane=%d\n", __func__, k, l->required_bandwidth_mbps, inc_flip_bw, is_phantom, exclude_this_plane);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4986
DML_LOG_VERBOSE("DML::%s: k=%d, required_bandwidth_mbps=%f (total), soc_state=%s, inc_flip_bw=%d, is_phantom=%d exclude_this_plane=%d\n", __func__, k, l->required_bandwidth_mbps, dml2_core_internal_soc_state_type_str(state_type), inc_flip_bw, is_phantom, exclude_this_plane);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4987
DML_LOG_VERBOSE("DML::%s: k=%d, required_bandwidth_mbps=%f (total), inc_flip_bw=%d, is_phantom=%d exclude_this_plane=%d\n", __func__, k, l->required_bandwidth_mbps, inc_flip_bw, is_phantom, exclude_this_plane);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
4991
return l->required_bandwidth_mbps;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6099
struct dml2_core_shared_calculate_peak_bandwidth_required_locals *l = &s->calculate_peak_bandwidth_required_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6101
memset(l, 0, sizeof(struct dml2_core_shared_calculate_peak_bandwidth_required_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6109
l->unity_array[k] = 1.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6110
l->zero_array[k] = 0.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6132
l->zero_array, //PrefetchBandwidthLuma,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6133
l->zero_array, //PrefetchBandwidthChroma,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6134
l->zero_array, //PrefetchBWMax
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6135
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6136
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6137
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6140
l->zero_array, //prefetch_cursor_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6141
l->zero_array, //prefetch_vmrow_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6142
l->zero_array, //flip_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6143
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6144
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6145
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6146
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6147
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6148
l->zero_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6169
l->zero_array, //PrefetchBandwidthLuma,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6170
l->zero_array, //PrefetchBandwidthChroma,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6171
l->zero_array, //PrefetchBWMax
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6177
l->zero_array, //prefetch_cursor_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6178
l->zero_array, //prefetch_vmrow_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6179
l->zero_array, //flip_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6186
l->surface_dummy_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6223
l->surface_dummy_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6260
l->surface_dummy_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6291
l->unity_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6292
l->unity_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6293
l->unity_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6294
l->unity_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6295
l->unity_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6296
l->unity_array,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6297
l->surface_dummy_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6497
struct dml2_core_shared_CalculateFlipSchedule_locals *l = &s->CalculateFlipSchedule_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6499
l->dual_plane = dml_is_420(SourcePixelFormat) || SourcePixelFormat == dml2_rgbe_alpha;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6500
l->dpte_row_bytes = DPTEBytesPerRow;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6520
DML_LOG_VERBOSE("DML::%s: dpte_row_bytes = %f\n", __func__, l->dpte_row_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6527
if (l->dual_plane) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6529
l->min_row_height = math_min2(dpte_row_height, meta_row_height);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6530
l->min_row_height_chroma = math_min2(dpte_row_height_chroma, meta_row_height_chroma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6532
l->min_row_height = dpte_row_height;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6533
l->min_row_height_chroma = dpte_row_height_chroma;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6535
l->min_row_height = meta_row_height;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6536
l->min_row_height_chroma = meta_row_height_chroma;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6538
l->min_row_time = math_min2(l->min_row_height * LineTime / VRatio, l->min_row_height_chroma * LineTime / VRatioChroma);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6541
l->min_row_height = math_min2(dpte_row_height, meta_row_height);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6543
l->min_row_height = dpte_row_height;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6545
l->min_row_height = meta_row_height;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6547
l->min_row_time = l->min_row_height * LineTime / VRatio;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6550
DML_LOG_VERBOSE("DML::%s: min_row_time = %f\n", __func__, l->min_row_time);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6552
DML_ASSERT(l->min_row_time > 0);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6556
l->max_flip_time = math_min2(math_min2(l->min_row_time, (double)max_flip_time_lines * LineTime / VRatio),
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6561
l->lb_flip_bw = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6564
l->hvm_scaled_vm_bytes = vm_bytes * HostVMInefficiencyFactor;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6565
l->num_rows = 2;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6566
l->hvm_scaled_row_bytes = (l->num_rows * l->dpte_row_bytes * HostVMInefficiencyFactor + l->num_rows * meta_row_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6567
l->hvm_scaled_vm_row_bytes = l->hvm_scaled_vm_bytes + l->hvm_scaled_row_bytes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6568
l->lb_flip_bw = math_max3(
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6569
l->hvm_scaled_vm_row_bytes / (l->max_flip_time - Tno_bw_flip),
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6570
l->hvm_scaled_vm_bytes / (l->max_flip_time - Tno_bw_flip - 2 * Tr0_trips_flip_rounded),
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6571
l->hvm_scaled_row_bytes / (l->max_flip_time - Tvm_trips_flip_rounded));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6573
DML_LOG_VERBOSE("DML::%s: max_flip_time = %f\n", __func__, l->max_flip_time);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6574
DML_LOG_VERBOSE("DML::%s: total vm bytes (hvm ineff scaled) = %f\n", __func__, l->hvm_scaled_vm_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6575
DML_LOG_VERBOSE("DML::%s: total row bytes (%f row, hvm ineff scaled) = %f\n", __func__, l->num_rows, l->hvm_scaled_row_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6576
DML_LOG_VERBOSE("DML::%s: total vm+row bytes (hvm ineff scaled) = %f\n", __func__, l->hvm_scaled_vm_row_bytes);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6577
DML_LOG_VERBOSE("DML::%s: lb_flip_bw for vm and row = %f\n", __func__, l->hvm_scaled_vm_row_bytes / (l->max_flip_time - Tno_bw_flip));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6578
DML_LOG_VERBOSE("DML::%s: lb_flip_bw for vm = %f\n", __func__, l->hvm_scaled_vm_bytes / (l->max_flip_time - Tno_bw_flip - 2 * Tr0_trips_flip_rounded));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6579
DML_LOG_VERBOSE("DML::%s: lb_flip_bw for row = %f\n", __func__, l->hvm_scaled_row_bytes / (l->max_flip_time - Tvm_trips_flip_rounded));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6581
if (l->lb_flip_bw > 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6582
DML_LOG_VERBOSE("DML::%s: mode_support est Tvm_flip = %f (bw-based)\n", __func__, Tno_bw_flip + l->hvm_scaled_vm_bytes / l->lb_flip_bw);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6583
DML_LOG_VERBOSE("DML::%s: mode_support est Tr0_flip = %f (bw-based)\n", __func__, l->hvm_scaled_row_bytes / l->lb_flip_bw / l->num_rows);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6584
DML_LOG_VERBOSE("DML::%s: mode_support est dst_y_per_vm_flip = %f (bw-based)\n", __func__, Tno_bw_flip + l->hvm_scaled_vm_bytes / l->lb_flip_bw / LineTime);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6585
DML_LOG_VERBOSE("DML::%s: mode_support est dst_y_per_row_flip = %f (bw-based)\n", __func__, l->hvm_scaled_row_bytes / l->lb_flip_bw / LineTime / l->num_rows);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6589
l->lb_flip_bw = math_max3(l->lb_flip_bw,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6590
l->hvm_scaled_vm_bytes / (31 * LineTime) - Tno_bw_flip,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6591
(l->dpte_row_bytes * HostVMInefficiencyFactor + meta_row_bytes) / (15 * LineTime));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6594
DML_LOG_VERBOSE("DML::%s: lb_flip_bw for vm reg limit = %f\n", __func__, l->hvm_scaled_vm_bytes / (31 * LineTime) - Tno_bw_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6595
DML_LOG_VERBOSE("DML::%s: lb_flip_bw for row reg limit = %f\n", __func__, (l->dpte_row_bytes * HostVMInefficiencyFactor + meta_row_bytes) / (15 * LineTime));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6599
*final_flip_bw = l->lb_flip_bw;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6603
*ImmediateFlipSupportedForPipe = l->min_row_time >= (Tvm_trips_flip_rounded + 2 * Tr0_trips_flip_rounded);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6606
l->ImmediateFlipBW = (double)per_pipe_flip_bytes * BandwidthAvailableForImmediateFlip / (double)TotImmediateFlipBytes; // flip_bw(i)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6611
DML_LOG_VERBOSE("DML::%s: ImmediateFlipBW = %f\n", __func__, l->ImmediateFlipBW);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6614
if (l->ImmediateFlipBW == 0) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6615
l->Tvm_flip = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6616
l->Tr0_flip = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6618
l->Tvm_flip = math_max3(Tvm_trips_flip,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6619
Tno_bw_flip + vm_bytes * HostVMInefficiencyFactor / l->ImmediateFlipBW,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6622
l->Tr0_flip = math_max3(Tr0_trips_flip,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6623
(l->dpte_row_bytes * HostVMInefficiencyFactor + meta_row_bytes) / l->ImmediateFlipBW,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6628
DML_LOG_VERBOSE("DML::%s: total row bytes (hvm ineff scaled, one row) = %f\n", __func__, (l->dpte_row_bytes * HostVMInefficiencyFactor + meta_row_bytes));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6630
DML_LOG_VERBOSE("DML::%s: Tvm_flip = %f (bw-based), Tvm_trips_flip = %f (latency-based)\n", __func__, Tno_bw_flip + vm_bytes * HostVMInefficiencyFactor / l->ImmediateFlipBW, Tvm_trips_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6631
DML_LOG_VERBOSE("DML::%s: Tr0_flip = %f (bw-based), Tr0_trips_flip = %f (latency-based)\n", __func__, (l->dpte_row_bytes * HostVMInefficiencyFactor + meta_row_bytes) / l->ImmediateFlipBW, Tr0_trips_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6633
*dst_y_per_vm_flip = math_ceil2(4.0 * (l->Tvm_flip / LineTime), 1.0) / 4.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6634
*dst_y_per_row_flip = math_ceil2(4.0 * (l->Tr0_flip / LineTime), 1.0) / 4.0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6637
(l->dpte_row_bytes * HostVMInefficiencyFactor + meta_row_bytes) / (*dst_y_per_row_flip * LineTime));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6639
if (*dst_y_per_vm_flip >= 32 || *dst_y_per_row_flip >= 16 || l->Tvm_flip + 2 * l->Tr0_flip > l->min_row_time) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6645
l->Tvm_flip = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6646
l->Tr0_flip = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6654
l->Tvm_flip = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6655
l->Tr0_flip = 0;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6666
DML_LOG_VERBOSE("DML::%s: Tvm_flip = %f (final)\n", __func__, l->Tvm_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6667
DML_LOG_VERBOSE("DML::%s: Tr0_flip = %f (final)\n", __func__, l->Tr0_flip);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
6668
DML_LOG_VERBOSE("DML::%s: Tvm_flip + 2*Tr0_flip = %f (should be <= min_row_time=%f)\n", __func__, l->Tvm_flip + 2 * l->Tr0_flip, l->min_row_time);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1003
l->dppm_map_watermarks_params.core = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1004
l->dppm_map_watermarks_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1005
l->dppm_map_watermarks_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1006
result = dml->dpmm_instance.map_watermarks(&l->dppm_map_watermarks_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1009
l->informative_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
101
l->optimize_mcache.optimize_mcache_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1010
l->informative_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1011
l->informative_params.mode_is_supported = result;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1013
dml->core_instance.populate_informative(&l->informative_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
102
l->optimize_mcache.optimize_mcache_params.dcc_mcache_supported = params->display_config->stage2.per_plane_mcache_support;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
103
l->optimize_mcache.optimize_mcache_params.display_config = ¶ms->display_config->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
104
l->optimize_mcache.optimize_mcache_params.optimized_display_cfg = ¶ms->optimized_display_config->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
105
l->optimize_mcache.optimize_mcache_params.cfg_support_info = ¶ms->optimized_display_config->mode_support_result.cfg_support_info;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
107
optimize_success = params->dml->pmo_instance.optimize_dcc_mcache(&l->optimize_mcache.optimize_mcache_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1112
struct dml2_initialize_instance_locals *l = &dml->scratch.initialize_instance_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1118
memset(l, 0, sizeof(struct dml2_initialize_instance_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
114
struct dml2_optimization_init_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
116
l->vmin.init_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
117
l->vmin.init_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
118
return params->dml->pmo_instance.init_for_vmin(&l->vmin.init_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
123
struct dml2_optimization_test_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
125
l->test_vmin.pmo_test_vmin_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
126
l->test_vmin.pmo_test_vmin_params.display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
127
l->test_vmin.pmo_test_vmin_params.vmin_limits = ¶ms->dml->soc_bbox.vmin_limit;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
128
return params->dml->pmo_instance.test_for_vmin(&l->test_vmin.pmo_test_vmin_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
133
struct dml2_optimization_optimize_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
138
l->optimize_vmin.pmo_optimize_vmin_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
139
l->optimize_vmin.pmo_optimize_vmin_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
140
l->optimize_vmin.pmo_optimize_vmin_params.optimized_display_config = params->optimized_display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
141
return params->dml->pmo_instance.optimize_for_vmin(&l->optimize_vmin.pmo_optimize_vmin_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
146
struct dml2_optimization_init_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
148
l->uclk_pstate.init_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
149
l->uclk_pstate.init_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
151
return params->dml->pmo_instance.init_for_uclk_pstate(&l->uclk_pstate.init_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
156
struct dml2_optimization_test_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
158
l->uclk_pstate.test_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
159
l->uclk_pstate.test_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
161
return params->dml->pmo_instance.test_for_uclk_pstate(&l->uclk_pstate.test_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
166
struct dml2_optimization_optimize_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
168
l->uclk_pstate.optimize_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
169
l->uclk_pstate.optimize_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
170
l->uclk_pstate.optimize_params.optimized_display_config = params->optimized_display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
171
l->uclk_pstate.optimize_params.last_candidate_failed = !params->last_candidate_supported;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
173
return params->dml->pmo_instance.optimize_for_uclk_pstate(&l->uclk_pstate.optimize_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
178
struct dml2_optimization_init_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
180
l->uclk_pstate.init_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
181
l->uclk_pstate.init_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
183
return params->dml->pmo_instance.init_for_stutter(&l->stutter.stutter_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
188
struct dml2_optimization_test_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
190
l->stutter.stutter_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
191
l->stutter.stutter_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
192
return params->dml->pmo_instance.test_for_stutter(&l->stutter.stutter_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
197
struct dml2_optimization_optimize_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
199
l->stutter.stutter_params.instance = ¶ms->dml->pmo_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
200
l->stutter.stutter_params.base_display_config = params->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
201
l->stutter.stutter_params.optimized_display_config = params->optimized_display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
202
l->stutter.stutter_params.last_candidate_failed = !params->last_candidate_supported;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
203
return params->dml->pmo_instance.optimize_for_stutter(&l->stutter.stutter_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
206
static bool dml2_top_optimization_perform_optimization_phase(struct dml2_optimization_phase_locals *l, const struct optimization_phase_params *params)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
222
copy_display_configuration_with_meta(&l->cur_candidate_display_cfg, params->display_config);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
224
init_params.locals = &l->init_function_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
226
init_params.display_config = &l->cur_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
231
test_params.locals = &l->test_function_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
233
test_params.display_config = &l->cur_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
240
optimize_params.locals = &l->optimize_function_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
242
optimize_params.display_config = &l->cur_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
243
optimize_params.optimized_display_config = &l->next_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
249
l->mode_support_params.instance = ¶ms->dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
250
l->mode_support_params.display_cfg = &l->next_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
251
l->mode_support_params.min_clk_table = ¶ms->dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
253
if (l->next_candidate_display_cfg.stage3.performed)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
254
l->mode_support_params.min_clk_index = l->next_candidate_display_cfg.stage3.min_clk_index_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
256
l->mode_support_params.min_clk_index = l->next_candidate_display_cfg.stage1.min_clk_index_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
257
candidate_validation_passed = params->dml->core_instance.mode_support(&l->mode_support_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
258
l->next_candidate_display_cfg.mode_support_result = l->mode_support_params.mode_support_result;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
263
test_params.locals = &l->test_function_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
265
test_params.display_config = &l->next_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
268
copy_display_configuration_with_meta(&l->cur_candidate_display_cfg, &l->next_candidate_display_cfg);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
272
copy_display_configuration_with_meta(params->optimized_display_config, &l->next_candidate_display_cfg);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
277
copy_display_configuration_with_meta(params->optimized_display_config, &l->cur_candidate_display_cfg);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
282
static bool dml2_top_optimization_perform_optimization_phase_1(struct dml2_optimization_phase_locals *l, const struct optimization_phase_params *params)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
294
copy_display_configuration_with_meta(&l->cur_candidate_display_cfg, params->display_config);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
295
highest_state = l->cur_candidate_display_cfg.stage1.min_clk_index_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
301
l->mode_support_params.instance = ¶ms->dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
302
l->mode_support_params.display_cfg = &l->cur_candidate_display_cfg;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
303
l->mode_support_params.min_clk_table = ¶ms->dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
304
l->mode_support_params.min_clk_index = cur_state;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
305
supported = params->dml->core_instance.mode_support(&l->mode_support_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
308
l->cur_candidate_display_cfg.mode_support_result = l->mode_support_params.mode_support_result;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
314
l->cur_candidate_display_cfg.stage1.min_clk_index_for_latency = lowest_state;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
316
copy_display_configuration_with_meta(params->optimized_display_config, &l->cur_candidate_display_cfg);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
511
struct dml2_top_mcache_validate_admissability_locals *l = &dml->scratch.mcache_validate_admissability_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
594
&l->plane0.pipe_vp_startx[plane_index], &l->plane0.pipe_vp_endx[plane_index]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
597
&l->plane0.pipe_vp_startx[plane_index], &l->plane0.pipe_vp_endx[plane_index], num_dpps,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
60
struct dml2_optimization_test_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
605
&l->plane0.pipe_vp_startx[plane_index], &l->plane0.pipe_vp_endx[plane_index]);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
608
&l->plane1.pipe_vp_startx[plane_index], &l->plane1.pipe_vp_endx[plane_index], num_dpps,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
64
memset(l, 0, sizeof(struct dml2_optimization_test_function_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
66
l->test_mcache.calc_mcache_count_params.dml2_instance = params->dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
67
l->test_mcache.calc_mcache_count_params.display_config = ¶ms->display_config->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
68
l->test_mcache.calc_mcache_count_params.mcache_allocations = params->display_config->stage2.mcache_allocations;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
70
result = dml2_top_mcache_calc_mcache_count_and_offsets(&l->test_mcache.calc_mcache_count_params); // use core to get the basic mcache_allocations
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
73
l->test_mcache.assign_global_mcache_ids_params.allocations = params->display_config->stage2.mcache_allocations;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
731
struct dml2_top_mcache_verify_mcache_size_locals *l = &dml->scratch.mcache_verify_mcache_size_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
74
l->test_mcache.assign_global_mcache_ids_params.num_allocations = params->display_config->display_config.num_planes;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
742
l->calc_mcache_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
749
l->calc_mcache_params.plane_descriptor = ¶ms->display_config->plane_descriptors[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
750
l->calc_mcache_params.mcache_allocation = ¶ms->mcache_allocations[i];
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
751
l->calc_mcache_params.plane_index = i;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
753
if (!dml->core_instance.calculate_mcache_allocation(&l->calc_mcache_params)) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
76
dml2_top_mcache_assign_global_mcache_ids(&l->test_mcache.assign_global_mcache_ids_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
778
struct dml2_check_mode_supported_locals *l = &dml->scratch.check_mode_supported_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
78
l->test_mcache.validate_admissibility_params.dml2_instance = params->dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
785
setup_unoptimized_display_config_with_meta(dml, &l->base_display_config_with_meta, in_out->display_config);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
787
l->mode_support_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
788
l->mode_support_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
789
l->mode_support_params.min_clk_table = &dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
79
l->test_mcache.validate_admissibility_params.display_cfg = ¶ms->display_config->display_config;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
790
l->mode_support_params.min_clk_index = l->base_display_config_with_meta.stage1.min_clk_index_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
791
result = dml->core_instance.mode_support(&l->mode_support_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
792
l->base_display_config_with_meta.mode_support_result = l->mode_support_params.mode_support_result;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
797
.display_config = &l->base_display_config_with_meta,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
80
l->test_mcache.validate_admissibility_params.mcache_allocations = params->display_config->stage2.mcache_allocations;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
800
.optimized_display_config = &l->optimized_display_config_with_meta,
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
803
mcache_success = dml2_top_optimization_perform_optimization_phase(&l->optimization_phase_locals, &mcache_phase);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
81
l->test_mcache.validate_admissibility_params.cfg_support_info = ¶ms->display_config->mode_support_result.cfg_support_info;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
810
l->dppm_map_mode_params.min_clk_table = &dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
811
l->dppm_map_mode_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
812
l->dppm_map_mode_params.programming = dpmm_programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
813
l->dppm_map_mode_params.soc_bb = &dml->soc_bbox;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
814
l->dppm_map_mode_params.ip = &dml->core_instance.clean_me_up.mode_lib.ip;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
815
result = dml->dpmm_instance.map_mode_to_soc_dpm(&l->dppm_map_mode_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
827
struct dml2_build_mode_programming_locals *l = &dml->scratch.build_mode_programming_locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
83
mcache_success = dml2_top_mcache_validate_admissability(&l->test_mcache.validate_admissibility_params); // also find the shift to make mcache allocation works
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
835
memset(l, 0, sizeof(struct dml2_build_mode_programming_locals));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
840
setup_speculative_display_config_with_meta(dml, &l->base_display_config_with_meta, in_out->display_config);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
842
l->mode_support_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
843
l->mode_support_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
844
l->mode_support_params.min_clk_table = &dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
845
l->mode_support_params.min_clk_index = l->base_display_config_with_meta.stage1.min_clk_index_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
846
result = dml->core_instance.mode_support(&l->mode_support_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
848
l->base_display_config_with_meta.mode_support_result = l->mode_support_params.mode_support_result;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
85
memcpy(params->display_config->stage2.per_plane_mcache_support, l->test_mcache.validate_admissibility_params.per_plane_status, sizeof(bool) * DML2_MAX_PLANES);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
851
setup_unoptimized_display_config_with_meta(dml, &l->base_display_config_with_meta, in_out->display_config);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
853
l->mode_support_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
854
l->mode_support_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
855
l->mode_support_params.min_clk_table = &dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
856
l->mode_support_params.min_clk_index = l->base_display_config_with_meta.stage1.min_clk_index_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
857
result = dml->core_instance.mode_support(&l->mode_support_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
858
l->base_display_config_with_meta.mode_support_result = l->mode_support_params.mode_support_result;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
861
l->informative_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
862
l->informative_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
863
l->informative_params.mode_is_supported = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
864
dml->core_instance.populate_informative(&l->informative_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
872
memset(&l->min_clock_for_latency_phase, 0, sizeof(struct optimization_phase_params));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
873
l->min_clock_for_latency_phase.dml = dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
874
l->min_clock_for_latency_phase.display_config = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
875
l->min_clock_for_latency_phase.init_function = dml2_top_optimization_init_function_min_clk_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
876
l->min_clock_for_latency_phase.test_function = dml2_top_optimization_test_function_min_clk_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
877
l->min_clock_for_latency_phase.optimize_function = dml2_top_optimization_optimize_function_min_clk_for_latency;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
878
l->min_clock_for_latency_phase.optimized_display_config = &l->optimized_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
879
l->min_clock_for_latency_phase.all_or_nothing = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
881
dml2_top_optimization_perform_optimization_phase_1(&l->optimization_phase_locals, &l->min_clock_for_latency_phase);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
883
memcpy(&l->base_display_config_with_meta, &l->optimized_display_config_with_meta, sizeof(struct display_configuation_with_meta));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
889
memset(&l->mcache_phase, 0, sizeof(struct optimization_phase_params));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
890
l->mcache_phase.dml = dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
891
l->mcache_phase.display_config = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
892
l->mcache_phase.test_function = dml2_top_optimization_test_function_mcache;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
893
l->mcache_phase.optimize_function = dml2_top_optimization_optimize_function_mcache;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
894
l->mcache_phase.optimized_display_config = &l->optimized_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
895
l->mcache_phase.all_or_nothing = true;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
897
mcache_success = dml2_top_optimization_perform_optimization_phase(&l->optimization_phase_locals, &l->mcache_phase);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
900
l->informative_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
901
l->informative_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
902
l->informative_params.mode_is_supported = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
904
dml->core_instance.populate_informative(&l->informative_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
910
memcpy(&l->base_display_config_with_meta, &l->optimized_display_config_with_meta, sizeof(struct display_configuation_with_meta));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
915
memset(&l->uclk_pstate_phase, 0, sizeof(struct optimization_phase_params));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
916
l->uclk_pstate_phase.dml = dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
917
l->uclk_pstate_phase.display_config = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
918
l->uclk_pstate_phase.init_function = dml2_top_optimization_init_function_uclk_pstate;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
919
l->uclk_pstate_phase.test_function = dml2_top_optimization_test_function_uclk_pstate;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
920
l->uclk_pstate_phase.optimize_function = dml2_top_optimization_optimize_function_uclk_pstate;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
921
l->uclk_pstate_phase.optimized_display_config = &l->optimized_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
922
l->uclk_pstate_phase.all_or_nothing = true;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
924
uclk_pstate_success = dml2_top_optimization_perform_optimization_phase(&l->optimization_phase_locals, &l->uclk_pstate_phase);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
927
memcpy(&l->base_display_config_with_meta, &l->optimized_display_config_with_meta, sizeof(struct display_configuation_with_meta));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
928
l->base_display_config_with_meta.stage3.success = true;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
93
struct dml2_optimization_optimize_function_locals *l = params->locals;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
934
memset(&l->vmin_phase, 0, sizeof(struct optimization_phase_params));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
935
l->vmin_phase.dml = dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
936
l->vmin_phase.display_config = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
937
l->vmin_phase.init_function = dml2_top_optimization_init_function_vmin;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
938
l->vmin_phase.test_function = dml2_top_optimization_test_function_vmin;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
939
l->vmin_phase.optimize_function = dml2_top_optimization_optimize_function_vmin;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
940
l->vmin_phase.optimized_display_config = &l->optimized_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
941
l->vmin_phase.all_or_nothing = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
943
vmin_success = dml2_top_optimization_perform_optimization_phase(&l->optimization_phase_locals, &l->vmin_phase);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
945
if (l->optimized_display_config_with_meta.stage4.performed) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
955
memcpy(&l->base_display_config_with_meta, &l->optimized_display_config_with_meta, sizeof(struct display_configuation_with_meta));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
956
l->base_display_config_with_meta.stage4.success = vmin_success;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
962
memset(&l->stutter_phase, 0, sizeof(struct optimization_phase_params));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
963
l->stutter_phase.dml = dml;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
964
l->stutter_phase.display_config = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
965
l->stutter_phase.init_function = dml2_top_optimization_init_function_stutter;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
966
l->stutter_phase.test_function = dml2_top_optimization_test_function_stutter;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
967
l->stutter_phase.optimize_function = dml2_top_optimization_optimize_function_stutter;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
968
l->stutter_phase.optimized_display_config = &l->optimized_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
969
l->stutter_phase.all_or_nothing = true;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
971
stutter_success = dml2_top_optimization_perform_optimization_phase(&l->optimization_phase_locals, &l->stutter_phase);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
974
memcpy(&l->base_display_config_with_meta, &l->optimized_display_config_with_meta, sizeof(struct display_configuation_with_meta));
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
975
l->base_display_config_with_meta.stage5.success = true;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
982
l->dppm_map_mode_params.min_clk_table = &dml->min_clk_table;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
983
l->dppm_map_mode_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
984
l->dppm_map_mode_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
985
l->dppm_map_mode_params.soc_bb = &dml->soc_bbox;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
986
l->dppm_map_mode_params.ip = &dml->core_instance.clean_me_up.mode_lib.ip;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
987
result = dml->dpmm_instance.map_mode_to_soc_dpm(&l->dppm_map_mode_params);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
993
l->mode_programming_params.instance = &dml->core_instance;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
994
l->mode_programming_params.display_cfg = &l->base_display_config_with_meta;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
995
l->mode_programming_params.cfg_support_info = &l->base_display_config_with_meta.mode_support_result.cfg_support_info;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
996
l->mode_programming_params.programming = in_out->programming;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
997
result = dml->core_instance.mode_programming(&l->mode_programming_params);
sys/dev/pci/drm/apple/iomfb_template.c
1262
int plane_idx, l;
sys/dev/pci/drm/apple/iomfb_template.c
1269
for (l = 0; l < SWAP_SURFACES; l++)
sys/dev/pci/drm/apple/iomfb_template.c
1270
req->surf_null[l] = true;
sys/dev/pci/drm/apple/iomfb_template.c
1272
for (l = 0; l < 5; l++)
sys/dev/pci/drm/apple/iomfb_template.c
1273
req->surf2_null[l] = true;
sys/dev/pci/drm/apple/iomfb_template.c
1289
l = 1;
sys/dev/pci/drm/apple/iomfb_template.c
1300
WARN_ON(l >= SWAP_SURFACES);
sys/dev/pci/drm/apple/iomfb_template.c
1302
req->swap.swap_enabled |= BIT(l);
sys/dev/pci/drm/apple/iomfb_template.c
1326
l += 1;
sys/dev/pci/drm/apple/iomfb_template.c
1329
req->surf_null[l] = false;
sys/dev/pci/drm/apple/iomfb_template.c
1343
req->swap.src_rect[l] = drm_to_dcp_rect(&src_rect);
sys/dev/pci/drm/apple/iomfb_template.c
1344
req->swap.dst_rect[l] = drm_to_dcp_rect(&new_state->dst);
sys/dev/pci/drm/apple/iomfb_template.c
1347
req->swap.dst_rect[l].y += dcp->notch_height;
sys/dev/pci/drm/apple/iomfb_template.c
1355
req->surf_iova[l] = obj->dma_addr + fb->offsets[0];
sys/dev/pci/drm/apple/iomfb_template.c
1357
req->surf[l] = (struct DCP_FW_NAME(dcp_surface)){
sys/dev/pci/drm/apple/iomfb_template.c
1366
.surface_id = req->swap.surf_ids[l],
sys/dev/pci/drm/apple/iomfb_template.c
1376
l += 1;
sys/dev/pci/drm/apple/iomfb_template.c
898
for (int l = 0; l < SWAP_SURFACES; l++)
sys/dev/pci/drm/apple/iomfb_template.c
899
swap->surf_null[l] = true;
sys/dev/pci/drm/apple/iomfb_template.c
901
for (int l = 0; l < 5; l++)
sys/dev/pci/drm/apple/iomfb_template.c
902
swap->surf2_null[l] = true;
sys/dev/pci/drm/display/drm_dp_helper.c
133
u8 l = dp_link_status(link_status, i);
sys/dev/pci/drm/display/drm_dp_helper.c
135
return ((l >> s) & 0x3) << DP_TRAIN_VOLTAGE_SWING_SHIFT;
sys/dev/pci/drm/display/drm_dp_helper.c
146
u8 l = dp_link_status(link_status, i);
sys/dev/pci/drm/display/drm_dp_helper.c
148
return ((l >> s) & 0x3) << DP_TRAIN_PRE_EMPHASIS_SHIFT;
sys/dev/pci/drm/display/drm_dp_helper.c
160
u8 l = dp_link_status(link_status, i);
sys/dev/pci/drm/display/drm_dp_helper.c
162
return (l >> s) & 0xf;
sys/dev/pci/drm/display/drm_dp_helper.c
86
u8 l = dp_link_status(link_status, i);
sys/dev/pci/drm/display/drm_dp_helper.c
88
return (l >> s) & 0xf;
sys/dev/pci/drm/drm_privacy_screen.c
120
struct drm_privacy_screen_lookup *l;
sys/dev/pci/drm/drm_privacy_screen.c
143
list_for_each_entry(l, &drm_privacy_screen_lookup_list, list) {
sys/dev/pci/drm/drm_privacy_screen.c
146
if (l->dev_id) {
sys/dev/pci/drm/drm_privacy_screen.c
147
if (!dev_id || strcmp(l->dev_id, dev_id))
sys/dev/pci/drm/drm_privacy_screen.c
153
if (l->con_id) {
sys/dev/pci/drm/drm_privacy_screen.c
154
if (!con_id || strcmp(l->con_id, con_id))
sys/dev/pci/drm/drm_privacy_screen.c
161
provider = l->provider;
sys/dev/pci/drm/i915/display/intel_global_state.c
150
struct drm_modeset_lock *l;
sys/dev/pci/drm/i915/display/intel_global_state.c
152
list_for_each_entry(l, &ctx->locked, head) {
sys/dev/pci/drm/i915/display/intel_global_state.c
153
if (lock == l)
sys/dev/pci/drm/i915/intel_uncore.h
347
__raw_read(32, l)
sys/dev/pci/drm/i915/intel_uncore.h
352
__raw_write(32, l)
sys/dev/pci/drm/i915/intel_uncore.h
374
__uncore_read(read, 32, l, true)
sys/dev/pci/drm/i915/intel_uncore.h
376
__uncore_read(read_notrace, 32, l, false)
sys/dev/pci/drm/i915/intel_uncore.h
380
__uncore_write(write, 32, l, true)
sys/dev/pci/drm/i915/intel_uncore.h
381
__uncore_write(write_notrace, 32, l, false)
sys/dev/pci/drm/include/linux/bitops.h
33
#define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
sys/dev/pci/drm/include/linux/bitops.h
34
#define GENMASK_ULL(h, l) (((~0ULL) >> (BITS_PER_LONG_LONG - (h) - 1)) & ((~0ULL) << (l)))
sys/dev/pci/drm/include/linux/cgroup_dmem.h
20
dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *l,
sys/dev/pci/drm/include/linux/of.h
44
#define of_property_read_variable_u32_array(n, p, o, l, h) \
sys/dev/pci/drm/include/linux/of.h
45
__of_property_read_variable_u32_array(__of_node(n), (p), (o), (l), (h))
sys/dev/pci/drm/include/linux/seqlock.h
156
#define seqcount_mutex_init(s, l) seqcount_init(&(s)->seq)
sys/dev/pci/drm/include/linux/spinlock.h
56
#define spin_lock_nested(mtxp, l) mtx_enter(mtxp)
sys/dev/pci/drm/radeon/radeon.h
2766
#define radeon_set_backlight_level(rdev, e, l) (rdev)->asic->display.set_backlight_level((e), (l))
sys/dev/pci/drm/radeon/radeon.h
2783
#define radeon_set_pcie_lanes(rdev, l) (rdev)->asic->pm.set_pcie_lanes((rdev), (l))
sys/dev/pci/drm/radeon/radeon.h
2818
#define radeon_dpm_get_sclk(rdev, l) rdev->asic->dpm.get_sclk((rdev), (l))
sys/dev/pci/drm/radeon/radeon.h
2819
#define radeon_dpm_get_mclk(rdev, l) rdev->asic->dpm.get_mclk((rdev), (l))
sys/dev/pci/drm/radeon/radeon.h
2822
#define radeon_dpm_force_performance_level(rdev, l) rdev->asic->dpm.force_performance_level((rdev), (l))
sys/dev/pci/drm/radeon/rv6xx_dpm.c
1002
int d_l, int d_r, u8 *l, u8 *r)
sys/dev/pci/drm/radeon/rv6xx_dpm.c
1013
*l = d_l - h_r * a_n / a_d;
sys/dev/pci/drm/radeon/rv770_dpm.c
266
u8 l[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE];
sys/dev/pci/drm/radeon/rv770_dpm.c
270
l[0] = 0;
sys/dev/pci/drm/radeon/rv770_dpm.c
278
l[1] = (u8)(pi->lmp - (int)pi->lmp * a_n / a_d);
sys/dev/pci/drm/radeon/rv770_dpm.c
286
l[2] = (u8)(pi->lhp - (int)pi->lhp * a_n / a_d);
sys/dev/pci/drm/radeon/rv770_dpm.c
290
a_t = CG_R(r[i] * pi->bsp / 200) | CG_L(l[i] * pi->bsp / 200);
sys/dev/pci/drm/radeon/rv770_dpm.c
295
CG_L(l[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1] * pi->pbsp / 200);
sys/dev/pci/drm/radeon/sumo_dpm.c
392
u32 l[SUMO_MAX_HARDWARE_POWERLEVELS];
sys/dev/pci/drm/radeon/sumo_dpm.c
400
l[0] = SUMO_L_DFLT0;
sys/dev/pci/drm/radeon/sumo_dpm.c
401
l[1] = SUMO_L_DFLT1;
sys/dev/pci/drm/radeon/sumo_dpm.c
402
l[2] = SUMO_L_DFLT2;
sys/dev/pci/drm/radeon/sumo_dpm.c
403
l[3] = SUMO_L_DFLT3;
sys/dev/pci/drm/radeon/sumo_dpm.c
404
l[4] = SUMO_L_DFLT4;
sys/dev/pci/drm/radeon/sumo_dpm.c
411
a_t = CG_R(m_a * r[i] / 100) | CG_L(m_a * l[i] / 100);
sys/dev/pci/drm/radeon/sumo_dpm.c
422
CG_L(m_a * l[ps->num_levels - 1] / 100);
sys/dev/pci/eap.c
1102
int lval, rval, l, r, la, ra;
sys/dev/pci/eap.c
1170
l = VOL_TO_ATT5(lval);
sys/dev/pci/eap.c
1200
l = VOL_TO_GAIN5(lval);
sys/dev/pci/eap.c
1206
eap1370_set_mixer(sc, la, l);
sys/dev/pci/eap.c
1217
int la, ra, l, r;
sys/dev/pci/eap.c
1236
l = ATT5_TO_VOL(sc->sc_port[AK_MASTER_L]);
sys/dev/pci/eap.c
1264
l = GAIN5_TO_VOL(sc->sc_port[la]);
sys/dev/pci/eap.c
1271
cp->un.value.level[AUDIO_MIXER_LEVEL_MONO] = (l+r) / 2;
sys/dev/pci/eap.c
1273
cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = l;
sys/dev/pci/esoreg.h
251
#define ESO_4BIT_GAIN_TO_STEREO(l,r) ((l) | ((r) >> 4))
sys/dev/pci/if_aq_pci.c
2652
uint32_t h, l;
sys/dev/pci/if_aq_pci.c
2665
l = ((uint32_t)enaddr[2] << 24) | (enaddr[3] << 16) |
sys/dev/pci/if_aq_pci.c
2670
AQ_WRITE_REG(sc, RPF_L2UC_LSW_REG(index), l);
sys/dev/pci/if_iwm.c
602
struct iwm_fw_cscheme_list *l = (void *)data;
sys/dev/pci/if_iwm.c
604
if (dlen < sizeof(*l) ||
sys/dev/pci/if_iwm.c
605
dlen < sizeof(l->size) + l->size * sizeof(*l->cs))
sys/dev/pci/if_iwx.c
577
struct iwx_fw_cscheme_list *l = (void *)data;
sys/dev/pci/if_iwx.c
579
if (dlen < sizeof(*l) ||
sys/dev/pci/if_iwx.c
580
dlen < sizeof(l->size) + l->size * sizeof(*l->cs))
sys/dev/pci/if_mcx.c
8270
mcx_bar(struct mcx_softc *sc, bus_size_t r, bus_size_t l, int f)
sys/dev/pci/if_mcx.c
8272
bus_space_barrier(sc->sc_memt, sc->sc_memh, r, l, f);
sys/dev/pci/if_mwx.c
303
int i, l, linelen;
sys/dev/pci/if_mwx.c
315
for (l = 0; l < linelen; l++)
sys/dev/pci/if_mwx.c
316
printf("%02X ", (uint32_t)data[l]);
sys/dev/pci/if_nxe.c
52
#define DPRINTF(l, f...) do { if (nxedebug & (l)) printf(f); } while (0)
sys/dev/pci/if_nxe.c
55
#define DPRINTF(l, f...)
sys/dev/pci/if_qwx_pci.c
86
#define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
sys/dev/pci/if_qwz_pci.c
86
#define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
sys/dev/pci/if_tht.c
64
#define DPRINTF(l, f...) do { if (thtdebug & (l)) printf(f); } while (0)
sys/dev/pci/if_tht.c
66
#define DPRINTF(l, f...)
sys/dev/pci/qle.c
2477
int l;
sys/dev/pci/qle.c
2483
for (l = 0; l < n; l++) {
sys/dev/pci/qle.c
2484
printf(" %2.2x", d[l]);
sys/dev/pci/qle.c
2485
if (l % 16 == 15)
sys/dev/pci/qle.c
2498
int l;
sys/dev/pci/qle.c
2505
for (l = 0; l < 4; l++) {
sys/dev/pci/qle.c
2507
printf(" %2.2x", iocb[(l*16)+b]);
sys/dev/pci/qle.c
2762
int i, base, l;
sys/dev/pci/qle.c
2778
for (l = 0; l < 5000; l++) {
sys/dev/pci/qle.c
795
struct qle_port_name_list *l;
sys/dev/pci/qle.c
815
l = QLE_DMA_KVA(sc->sc_scratch);
sys/dev/pci/qle.c
817
while (i * sizeof(*l) < sc->sc_mbox[1]) {
sys/dev/pci/qle.c
821
loopid = lemtoh16(&l[i].loopid) & 0xfff;
sys/dev/pci/qle.c
853
port->port_name = letoh64(l[i].port_name);
sys/dev/pci/qle.c
98
#define QLE_LOCATION_LOOP_ID(l) (l | QLE_LOCATION_LOOP)
sys/dev/pci/yds.c
1196
size_t l;
sys/dev/pci/yds.c
1244
l = ((char *)end - (char *)start);
sys/dev/pci/yds.c
1245
sc->sc_play.length = l;
sys/dev/pci/yds.c
1255
psb->pgloopend = l;
sys/dev/pci/yds.c
1325
size_t l;
sys/dev/pci/yds.c
1352
l = ((char *)end - (char *)start);
sys/dev/pci/yds.c
1353
sc->sc_rec.length = l;
sys/dev/pci/yds.c
1358
rsb->pgloopendadr = l;
sys/dev/pcmcia/if_malo.c
59
#define DPRINTF(l, x...) do { if ((l) <= cmalo_d) printf(x); } while (0)
sys/dev/pcmcia/if_malo.c
61
#define DPRINTF(l, x...)
sys/dev/rasops/rasops.c
334
int l, bpp, s;
sys/dev/rasops/rasops.c
417
for (l = 0; l < ri->ri_emuheight; l++)
sys/dev/rasops/rasops.c
419
l * ri->ri_stride, 0,
sys/dev/sbus/cgsix.c
332
size_t l;
sys/dev/sbus/cgsix.c
336
l = (sc->sc_curs_size.x * sc->sc_curs_size.y) / NBBY;
sys/dev/sbus/cgsix.c
337
error = copyout(sc->sc_curs_image, curs->image, l);
sys/dev/sbus/cgsix.c
340
error = copyout(sc->sc_curs_mask, curs->mask, l);
sys/dev/usb/dwc2/dwc2.c
615
int value, index, l, s, totlen;
sys/dev/usb/dwc2/dwc2.c
659
l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
sys/dev/usb/dwc2/dwc2.c
660
memcpy(buf, &dwc2_devd, l);
sys/dev/usb/dwc2/dwc2.c
661
buf += l;
sys/dev/usb/dwc2/dwc2.c
662
len -= l;
sys/dev/usb/dwc2/dwc2.c
663
totlen += l;
sys/dev/usb/dwc2/dwc2.c
667
l = min(len, sizeof(dwc2_confd));
sys/dev/usb/dwc2/dwc2.c
668
memcpy(buf, &dwc2_confd, l);
sys/dev/usb/dwc2/dwc2.c
669
buf += l;
sys/dev/usb/dwc2/dwc2.c
670
len -= l;
sys/dev/usb/dwc2/dwc2.c
671
totlen += l;
sys/dev/usb/dwc2/dwc2.h
111
#define spin_lock(l) do { mtx_enter(l); } while (0)
sys/dev/usb/dwc2/dwc2.h
112
#define spin_unlock(l) do { mtx_leave(l); } while (0)
sys/dev/usb/dwc2/dwc2.h
114
#define spin_lock_irqsave(l, f) \
sys/dev/usb/dwc2/dwc2.h
115
do { mtx_enter(l); (void)(f); } while (0)
sys/dev/usb/dwc2/dwc2.h
117
#define spin_trylock_irqsave(l, f) mtx_enter_try(l)
sys/dev/usb/dwc2/dwc2.h
119
#define spin_unlock_irqrestore(l, f) \
sys/dev/usb/dwc2/dwc2.h
120
do { mtx_leave(l); (void)(f); } while (0)
sys/dev/usb/ehci.c
1800
int s, len, value, index, l, totlen = 0;
sys/dev/usb/ehci.c
1853
totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
sys/dev/usb/ehci.c
1854
memcpy(buf, &devd, l);
sys/dev/usb/ehci.c
1861
totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
sys/dev/usb/ehci.c
1862
memcpy(buf, &ehci_odevd, l);
sys/dev/usb/ehci.c
1874
totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE);
sys/dev/usb/ehci.c
1875
memcpy(buf, &ehci_confd, l);
sys/dev/usb/ehci.c
1878
buf = (char *)buf + l;
sys/dev/usb/ehci.c
1879
len -= l;
sys/dev/usb/ehci.c
1880
l = min(len, USB_INTERFACE_DESCRIPTOR_SIZE);
sys/dev/usb/ehci.c
1881
totlen += l;
sys/dev/usb/ehci.c
1882
memcpy(buf, &ehci_ifcd, l);
sys/dev/usb/ehci.c
1883
buf = (char *)buf + l;
sys/dev/usb/ehci.c
1884
len -= l;
sys/dev/usb/ehci.c
1885
l = min(len, USB_ENDPOINT_DESCRIPTOR_SIZE);
sys/dev/usb/ehci.c
1886
totlen += l;
sys/dev/usb/ehci.c
1887
memcpy(buf, &ehci_endpd, l);
sys/dev/usb/ehci.c
2017
for (i = 0, l = sc->sc_noport; l > 0; i++, l -= 8, v >>= 8)
sys/dev/usb/ehci.c
2020
l = min(len, hubd.bDescLength);
sys/dev/usb/ehci.c
2021
totlen = l;
sys/dev/usb/ehci.c
2022
memcpy(buf, &hubd, l);
sys/dev/usb/ehci.c
2059
l = min(len, sizeof(ps));
sys/dev/usb/ehci.c
2060
memcpy(buf, &ps, l);
sys/dev/usb/ehci.c
2061
totlen = l;
sys/dev/usb/ehci.c
87
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))
sys/dev/usb/if_umb.c
72
#define DDUMPN(n, b, l) \
sys/dev/usb/if_umb.c
75
umb_dump((b), (l)); \
sys/dev/usb/if_umb.c
85
#define DDUMPN(n, b, l) do { } while (0)
sys/dev/usb/if_upgt.c
70
#define DPRINTF(l, x...) do { if ((l) <= upgt_debug) printf(x); } while (0)
sys/dev/usb/if_upgt.c
72
#define DPRINTF(l, x...)
sys/dev/usb/ohci.c
2273
int s, len, value, index, l, totlen = 0;
sys/dev/usb/ohci.c
2326
totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
sys/dev/usb/ohci.c
2327
memcpy(buf, &devd, l);
sys/dev/usb/ohci.c
2334
totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE);
sys/dev/usb/ohci.c
2335
memcpy(buf, &ohci_confd, l);
sys/dev/usb/ohci.c
2336
buf = (char *)buf + l;
sys/dev/usb/ohci.c
2337
len -= l;
sys/dev/usb/ohci.c
2338
l = min(len, USB_INTERFACE_DESCRIPTOR_SIZE);
sys/dev/usb/ohci.c
2339
totlen += l;
sys/dev/usb/ohci.c
2340
memcpy(buf, &ohci_ifcd, l);
sys/dev/usb/ohci.c
2341
buf = (char *)buf + l;
sys/dev/usb/ohci.c
2342
len -= l;
sys/dev/usb/ohci.c
2343
l = min(len, USB_ENDPOINT_DESCRIPTOR_SIZE);
sys/dev/usb/ohci.c
2344
totlen += l;
sys/dev/usb/ohci.c
2345
memcpy(buf, &ohci_endpd, l);
sys/dev/usb/ohci.c
2483
for (i = 0, l = sc->sc_noport; l > 0; i++, l -= 8, v >>= 8)
sys/dev/usb/ohci.c
2486
l = min(len, hubd.bDescLength);
sys/dev/usb/ohci.c
2487
totlen = l;
sys/dev/usb/ohci.c
2488
memcpy(buf, &hubd, l);
sys/dev/usb/ohci.c
2514
l = min(len, sizeof ps);
sys/dev/usb/ohci.c
2515
memcpy(buf, &ps, l);
sys/dev/usb/ohci.c
2516
totlen = l;
sys/dev/usb/ohci.c
62
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))
sys/dev/usb/udl.c
61
#define DPRINTF(l, x...) do { if ((l) <= udl_debug) printf(x); } while (0)
sys/dev/usb/udl.c
63
#define DPRINTF(l, x...)
sys/dev/usb/uhci.c
1525
int i, ntd, l, tog, mps;
sys/dev/usb/uhci.c
1577
l = len % mps;
sys/dev/usb/uhci.c
1578
if (l == 0 && !(flags & USBD_FORCE_SHORT_XFER))
sys/dev/usb/uhci.c
1579
l = mps;
sys/dev/usb/uhci.c
1582
l = mps;
sys/dev/usb/uhci.c
1584
htole32(rd ? UHCI_TD_IN (l, endpt, addr, tog) :
sys/dev/usb/uhci.c
1585
UHCI_TD_OUT(l, endpt, addr, tog));
sys/dev/usb/uhci.c
2884
int s, len, value, index, status, change, l, totlen = 0;
sys/dev/usb/uhci.c
2934
totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
sys/dev/usb/uhci.c
2935
memcpy(buf, &devd, l);
sys/dev/usb/uhci.c
2942
totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE);
sys/dev/usb/uhci.c
2943
memcpy(buf, &uhci_confd, l);
sys/dev/usb/uhci.c
2944
buf = (char *)buf + l;
sys/dev/usb/uhci.c
2945
len -= l;
sys/dev/usb/uhci.c
2946
l = min(len, USB_INTERFACE_DESCRIPTOR_SIZE);
sys/dev/usb/uhci.c
2947
totlen += l;
sys/dev/usb/uhci.c
2948
memcpy(buf, &uhci_ifcd, l);
sys/dev/usb/uhci.c
2949
buf = (char *)buf + l;
sys/dev/usb/uhci.c
2950
len -= l;
sys/dev/usb/uhci.c
2951
l = min(len, USB_ENDPOINT_DESCRIPTOR_SIZE);
sys/dev/usb/uhci.c
2952
totlen += l;
sys/dev/usb/uhci.c
2953
memcpy(buf, &uhci_endpd, l);
sys/dev/usb/uhci.c
3095
l = min(len, USB_HUB_DESCRIPTOR_SIZE);
sys/dev/usb/uhci.c
3096
totlen = l;
sys/dev/usb/uhci.c
3097
memcpy(buf, &uhci_hubd_piix, l);
sys/dev/usb/uhci.c
3143
l = min(len, sizeof ps);
sys/dev/usb/uhci.c
3144
memcpy(buf, &ps, l);
sys/dev/usb/uhci.c
3145
totlen = l;
sys/dev/usb/uhci.c
67
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))
sys/dev/usb/uhcireg.h
166
#define UHCI_TD_SET_MAXLEN(l) (((uint32_t)(l)-1) << 21)
sys/dev/usb/usb.h
63
#define USETW2(w,h,l) ((w)[0] = (u_int8_t)(l), (w)[1] = (u_int8_t)(h))
sys/dev/usb/usb_subr.c
285
int l;
sys/dev/usb/usb_subr.c
287
l = snprintf(cp, len, "%x.%02x", bcd >> 8, bcd & 0xff);
sys/dev/usb/usb_subr.c
288
if (l == -1 || len == 0)
sys/dev/usb/usb_subr.c
290
if (l >= len)
sys/dev/usb/usb_subr.c
292
return (l);
sys/dev/usb/usbdi.c
1111
usbd_str(usb_string_descriptor_t *p, int l, const char *s)
sys/dev/usb/usbdi.c
1115
if (l == 0)
sys/dev/usb/usbdi.c
1118
if (l == 1)
sys/dev/usb/usbdi.c
1121
l -= 2;
sys/dev/usb/usbdi.c
1122
for (i = 0; s[i] && l > 1; i++, l -= 2)
sys/dev/usb/uts.c
295
uts_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *l)
sys/dev/usb/utvfu.c
71
#define DPRINTF(l, x...) do { if ((l) <= utvfu_debug) printf(x); } while (0)
sys/dev/usb/utvfu.c
73
#define DPRINTF(l, x...)
sys/dev/usb/uvideo.c
43
#define DPRINTF(l, x...) do { if ((l) <= uvideo_debug) printf(x); } while (0)
sys/dev/usb/uvideo.c
45
#define DPRINTF(l, x...)
sys/dev/usb/xhci.c
2455
int l, totlen = 0;
sys/dev/usb/xhci.c
2502
totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE);
sys/dev/usb/xhci.c
2503
memcpy(buf, &devd, l);
sys/dev/usb/xhci.c
2515
totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE);
sys/dev/usb/xhci.c
2516
memcpy(buf, &xhci_confd, l);
sys/dev/usb/xhci.c
2519
buf = (char *)buf + l;
sys/dev/usb/xhci.c
2520
len -= l;
sys/dev/usb/xhci.c
2521
l = min(len, USB_INTERFACE_DESCRIPTOR_SIZE);
sys/dev/usb/xhci.c
2522
totlen += l;
sys/dev/usb/xhci.c
2523
memcpy(buf, &xhci_ifcd, l);
sys/dev/usb/xhci.c
2524
buf = (char *)buf + l;
sys/dev/usb/xhci.c
2525
len -= l;
sys/dev/usb/xhci.c
2526
l = min(len, USB_ENDPOINT_DESCRIPTOR_SIZE);
sys/dev/usb/xhci.c
2527
totlen += l;
sys/dev/usb/xhci.c
2528
memcpy(buf, &xhci_endpd, l);
sys/dev/usb/xhci.c
2665
l = min(len, hubd.bDescLength);
sys/dev/usb/xhci.c
2666
totlen = l;
sys/dev/usb/xhci.c
2667
memcpy(buf, &hubd, l);
sys/dev/usb/xhci.c
2726
l = min(len, sizeof ps);
sys/dev/usb/xhci.c
2727
memcpy(buf, &ps, l);
sys/dev/usb/xhci.c
2728
totlen = l;
sys/dev/video.c
47
#define DPRINTF(l, x...) do { if ((l) <= video_debug) printf(x); } while (0)
sys/dev/video.c
49
#define DPRINTF(l, x...)
sys/dev/videomode/edidreg.h
117
#define _CHHILO(ptr, l, s, h) (_CHLO((ptr)[l], s) | _CHHI((ptr)[h]))
sys/dev/videomode/edidreg.h
118
#define _CHROMA(ptr, l, s, h) ((_CHHILO(ptr, l, s, h) * 1000) / 1024)
sys/dev/wscons/wskbdutil.c
329
int l;
sys/dev/wscons/wskbdutil.c
360
for (l = 0; kp + l < mp->map + mp->map_size;
sys/dev/wscons/wskbdutil.c
361
l++) {
sys/dev/wscons/wskbdutil.c
362
ksg = KS_GROUP(kp[l]);
sys/dev/wscons/wskbdutil.c
366
if (l > 4)
sys/dev/wscons/wskbdutil.c
369
fillmapentry(kp, l, mapentry);
sys/dev/wscons/wsmux.c
391
struct wsmux_device_list *l;
sys/dev/wscons/wsmux.c
474
l = (struct wsmux_device_list *)data;
sys/dev/wscons/wsmux.c
480
l->devices[n].type = me->me_ops->type;
sys/dev/wscons/wsmux.c
481
l->devices[n].idx = me->me_dv.dv_unit;
sys/dev/wscons/wsmux.c
485
l->ndevices = n;
sys/dev/wsfont/wsfont.c
244
int x, l, r, nr;
sys/dev/wsfont/wsfont.c
254
l = 0;
sys/dev/wsfont/wsfont.c
257
while (l < r) {
sys/dev/wsfont/wsfont.c
258
x = rp[l];
sys/dev/wsfont/wsfont.c
259
rp[l] = rp[r];
sys/dev/wsfont/wsfont.c
261
l++, r--;
sys/dev/x86emu/x86emu.c
6035
uint16_t l;
sys/dev/x86emu/x86emu.c
6040
l = (uint16_t) ((lb + 10 * hb) & 0xFF);
sys/dev/x86emu/x86emu.c
6045
CONDITIONAL_SET_FLAG(l & 0x80, F_SF);
sys/dev/x86emu/x86emu.c
6046
CONDITIONAL_SET_FLAG(l == 0, F_ZF);
sys/dev/x86emu/x86emu.c
6047
CONDITIONAL_SET_FLAG(PARITY(l & 0xff), F_PF);
sys/dev/x86emu/x86emu.c
6048
return l;
sys/dev/x86emu/x86emu.c
6058
uint16_t h, l;
sys/dev/x86emu/x86emu.c
6061
l = (uint16_t) (d % 10);
sys/dev/x86emu/x86emu.c
6062
l |= (uint16_t) (h << 8);
sys/dev/x86emu/x86emu.c
6067
CONDITIONAL_SET_FLAG(l & 0x80, F_SF);
sys/dev/x86emu/x86emu.c
6068
CONDITIONAL_SET_FLAG(l == 0, F_ZF);
sys/dev/x86emu/x86emu.c
6069
CONDITIONAL_SET_FLAG(PARITY(l & 0xff), F_PF);
sys/dev/x86emu/x86emu.c
6070
return l;
sys/kern/kern_sysctl.c
2616
int l;
sys/kern/kern_sysctl.c
2618
l = 0;
sys/kern/kern_sysctl.c
2624
snprintf(disknames + l, disknameslen - l, "%s:%s,",
sys/kern/kern_sysctl.c
2627
l += strlen(disknames + l);
sys/kern/kern_sysctl.c
2645
if (l != 0)
sys/kern/kern_sysctl.c
2646
disknames[l - 1] = '\0';
sys/kern/subr_hibernate.c
217
hibe_cmp(const struct hiballoc_entry *l, const struct hiballoc_entry *r)
sys/kern/subr_hibernate.c
219
vaddr_t vl = (vaddr_t)l;
sys/kern/subr_log.c
248
size_t l, rpos;
sys/kern/subr_log.c
276
l = snprintf(buf, sizeof(buf),
sys/kern/subr_log.c
280
error = uiomove(buf, ulmin(l, sizeof(buf) - 1), uio);
sys/kern/subr_log.c
289
l = mbp->msg_bufx - mbp->msg_bufr;
sys/kern/subr_log.c
291
l = mbp->msg_bufs - mbp->msg_bufr;
sys/kern/subr_log.c
292
l = ulmin(l, uio->uio_resid);
sys/kern/subr_log.c
293
if (l == 0)
sys/kern/subr_log.c
298
error = uiomove(&mbp->msg_bufc[rpos], l, uio);
sys/kern/subr_log.c
302
mbp->msg_bufr += l;
sys/kern/subr_log.c
571
size_t l, nbyte;
sys/kern/subr_log.c
574
l = snprintf(buf, sizeof(buf),
sys/kern/subr_log.c
585
nbyte = ulmin(l, sizeof(buf) - 1);
sys/kern/subr_poison.c
39
ulong l = (u_long)v;
sys/kern/subr_poison.c
41
l = l >> PAGE_SHIFT;
sys/kern/subr_poison.c
43
switch (l & 3) {
sys/kern/subr_prf.c
154
__assert(const char *t, const char *f, int l, const char *e)
sys/kern/subr_prf.c
157
panic(__KASSERTSTR, t, e, f, l);
sys/kern/subr_userconf.c
245
long *l;
sys/kern/subr_userconf.c
297
l = cd->cf_loc;
sys/kern/subr_userconf.c
302
userconf_pnum(*l++);
sys/kern/subr_userconf.c
354
int l = 0;
sys/kern/subr_userconf.c
359
l++;
sys/kern/subr_userconf.c
376
*len = l;
sys/kern/subr_userconf.c
389
short attr = -1, i = 0, l = 0;
sys/kern/subr_userconf.c
394
l++;
sys/kern/subr_userconf.c
398
if (strlen(locnames[i]) == l) {
sys/kern/subr_userconf.c
399
if (strncasecmp(cmd, locnames[i], l) == 0)
sys/kern/subr_userconf.c
450
long *l, tmp;
sys/kern/subr_userconf.c
471
l = cd->cf_loc;
sys/kern/subr_userconf.c
480
if (i != devno && cfdata[i].cf_loc == l)
sys/kern/subr_userconf.c
485
lk = l = mallocarray(i, sizeof(long),
sys/kern/subr_userconf.c
492
bcopy(cd->cf_loc, l, lklen);
sys/kern/subr_userconf.c
496
userconf_modify(locnames[locnamp[ln]], l,
sys/kern/subr_userconf.c
500
userconf_hist_int(*l);
sys/kern/subr_userconf.c
503
l++;
sys/kern/subr_userconf.c
784
long *l;
sys/kern/subr_userconf.c
792
l = cd->cf_loc;
sys/kern/subr_userconf.c
800
if (*val == *l) {
sys/kern/subr_userconf.c
823
l++;
sys/kern/subr_userconf.c
837
short attr = -1, i = 0, l = 0;
sys/kern/subr_userconf.c
843
l++;
sys/kern/subr_userconf.c
849
if (strlen(locnames[i]) == l) {
sys/kern/subr_userconf.c
850
if (strncasecmp(cmd, locnames[i], l) == 0) {
sys/kern/subr_userconf.c
966
short l = 0;
sys/kern/subr_userconf.c
972
l++;
sys/kern/subr_witness.c
346
static void witness_ddb_level_descendants(struct witness *parent, int l);
sys/kern/subr_witness.c
636
witness_ddb_level_descendants(struct witness *w, int l)
sys/kern/subr_witness.c
640
if (w->w_ddb_level >= l)
sys/kern/subr_witness.c
643
w->w_ddb_level = l;
sys/kern/subr_witness.c
644
l++;
sys/kern/subr_witness.c
648
witness_ddb_level_descendants(&w_data[i], l);
sys/kern/tty.c
2114
#define CLAMP(x, h, l) ((x) > h ? h : ((x) < l) ? l : (x))
sys/kern/uipc_mbuf2.c
226
int l;
sys/kern/uipc_mbuf2.c
238
l = MHLEN;
sys/kern/uipc_mbuf2.c
241
l = MLEN;
sys/kern/uipc_mbuf2.c
243
if (n && len > l) {
sys/lib/libsa/blowfish.c
526
u_int32_t l, r;
sys/lib/libsa/blowfish.c
530
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/lib/libsa/blowfish.c
532
Blowfish_encipher(c, &l, &r);
sys/lib/libsa/blowfish.c
533
data[0] = l >> 24 & 0xff;
sys/lib/libsa/blowfish.c
534
data[1] = l >> 16 & 0xff;
sys/lib/libsa/blowfish.c
535
data[2] = l >> 8 & 0xff;
sys/lib/libsa/blowfish.c
536
data[3] = l & 0xff;
sys/lib/libsa/blowfish.c
548
u_int32_t l, r;
sys/lib/libsa/blowfish.c
552
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/lib/libsa/blowfish.c
554
Blowfish_decipher(c, &l, &r);
sys/lib/libsa/blowfish.c
555
data[0] = l >> 24 & 0xff;
sys/lib/libsa/blowfish.c
556
data[1] = l >> 16 & 0xff;
sys/lib/libsa/blowfish.c
557
data[2] = l >> 8 & 0xff;
sys/lib/libsa/blowfish.c
558
data[3] = l & 0xff;
sys/lib/libsa/blowfish.c
570
u_int32_t l, r;
sys/lib/libsa/blowfish.c
576
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/lib/libsa/blowfish.c
578
Blowfish_encipher(c, &l, &r);
sys/lib/libsa/blowfish.c
579
data[0] = l >> 24 & 0xff;
sys/lib/libsa/blowfish.c
580
data[1] = l >> 16 & 0xff;
sys/lib/libsa/blowfish.c
581
data[2] = l >> 8 & 0xff;
sys/lib/libsa/blowfish.c
582
data[3] = l & 0xff;
sys/lib/libsa/blowfish.c
595
u_int32_t l, r;
sys/lib/libsa/blowfish.c
602
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/lib/libsa/blowfish.c
604
Blowfish_decipher(c, &l, &r);
sys/lib/libsa/blowfish.c
605
data[0] = l >> 24 & 0xff;
sys/lib/libsa/blowfish.c
606
data[1] = l >> 16 & 0xff;
sys/lib/libsa/blowfish.c
607
data[2] = l >> 8 & 0xff;
sys/lib/libsa/blowfish.c
608
data[3] = l & 0xff;
sys/lib/libsa/blowfish.c
618
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
sys/lib/libsa/blowfish.c
620
Blowfish_decipher(c, &l, &r);
sys/lib/libsa/blowfish.c
621
data[0] = l >> 24 & 0xff;
sys/lib/libsa/blowfish.c
622
data[1] = l >> 16 & 0xff;
sys/lib/libsa/blowfish.c
623
data[2] = l >> 8 & 0xff;
sys/lib/libsa/blowfish.c
624
data[3] = l & 0xff;
sys/lib/libsa/bootparam.c
365
u_int32_t l; /* network order */
sys/lib/libsa/bootparam.c
373
uia.l = ia.s_addr;
sys/lib/libsa/bootparam.c
396
u_int32_t l; /* network order */
sys/lib/libsa/bootparam.c
420
ia->s_addr = uia.l;
sys/lib/libsa/in_cksum.c
56
in_cksum(const void *p, size_t l)
sys/lib/libsa/in_cksum.c
63
if (l >= (1 << 16))
sys/lib/libsa/in_cksum.c
65
len = (int)l;
sys/lib/libsa/sha1.c
31
#define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
sys/lib/libsa/sha1.c
32
|(rol(block->l[i],8)&0x00FF00FF))
sys/lib/libsa/sha1.c
34
#define blk0(i) block->l[i]
sys/lib/libsa/sha1.c
36
#define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
sys/lib/libsa/sha1.c
37
^block->l[(i+2)&15]^block->l[i&15],1))
sys/lib/libsa/sha1.c
54
unsigned int l[16];
sys/lib/libsa/tftp.c
160
int l;
sys/lib/libsa/tftp.c
168
l = strlen(h->path);
sys/lib/libsa/tftp.c
169
bcopy(h->path, wtail, l + 1);
sys/lib/libsa/tftp.c
170
wtail += l + 1;
sys/msdosfs/msdosfs_conv.c
416
int i, j, l;
sys/msdosfs/msdosfs_conv.c
478
l = dp1 - dp;
sys/msdosfs/msdosfs_conv.c
480
l = unlen - (dp - un);
sys/msdosfs/msdosfs_conv.c
481
for (i = 0, j = 8; i < l && j < 11; i++, j++) {
sys/msdosfs/msdosfs_conv.c
490
if (i < l)
sys/msdosfs/msdosfs_fat.c
730
uint32_t len, newst, foundl, cn, l;
sys/msdosfs/msdosfs_fat.c
765
if ((l = chainlength(pmp, cn, count)) >= count)
sys/msdosfs/msdosfs_fat.c
767
if (l > foundl) {
sys/msdosfs/msdosfs_fat.c
769
foundl = l;
sys/msdosfs/msdosfs_fat.c
771
cn += l + 1;
sys/msdosfs/msdosfs_fat.c
782
if ((l = chainlength(pmp, cn, count)) >= count)
sys/msdosfs/msdosfs_fat.c
784
if (l > foundl) {
sys/msdosfs/msdosfs_fat.c
786
foundl = l;
sys/msdosfs/msdosfs_fat.c
788
cn += l + 1;
sys/net/if_ppp.c
1479
int l = m->m_len;
sys/net/if_ppp.c
1482
while (l--) {
sys/net/pf_ioctl.c
1125
struct pf_statelim_list l = TAILQ_HEAD_INITIALIZER(l);
sys/net/pf_ioctl.c
1135
TAILQ_CONCAT(&l, &pf_statelim_list_active, pfstlim_list);
sys/net/pf_ioctl.c
1165
TAILQ_REMOVE(&l, opfstlim, pfstlim_list);
sys/net/pf_ioctl.c
1178
TAILQ_FOREACH_SAFE(pfstlim, &l, pfstlim_list, npfstlim) {
sys/net/pf_ioctl.c
1282
struct pf_sourcelim_list l = TAILQ_HEAD_INITIALIZER(l);
sys/net/pf_ioctl.c
1292
TAILQ_CONCAT(&l, &pf_sourcelim_list_active, pfsrlim_list);
sys/net/pf_ioctl.c
1348
TAILQ_REMOVE(&l, opfsrlim, pfsrlim_list);
sys/net/pf_ioctl.c
1361
TAILQ_FOREACH_SAFE(pfsrlim, &l, pfsrlim_list, npfsrlim) {
sys/net/pipex_local.h
347
#define GETLONG(l, cp) do { \
sys/net/pipex_local.h
348
(l) = *(cp)++ << 8; \
sys/net/pipex_local.h
349
(l) |= *(cp)++; (l) <<= 8; \
sys/net/pipex_local.h
350
(l) |= *(cp)++; (l) <<= 8; \
sys/net/pipex_local.h
351
(l) |= *(cp)++; \
sys/net/pipex_local.h
354
#define PUTLONG(l, cp) do { \
sys/net/pipex_local.h
355
*(cp)++ = (u_char) ((l) >> 24); \
sys/net/pipex_local.h
356
*(cp)++ = (u_char) ((l) >> 16); \
sys/net/pipex_local.h
357
*(cp)++ = (u_char) ((l) >> 8); \
sys/net/pipex_local.h
358
*(cp)++ = (u_char) (l); \
sys/net/pipex_local.h
361
#define PIPEX_PULLUP(m0, l) \
sys/net/pipex_local.h
362
if ((m0)->m_len < (l)) { \
sys/net/pipex_local.h
363
if ((m0)->m_pkthdr.len < (l)) { \
sys/net/pipex_local.h
370
(m0) = m_pullup((m0), (l)); \
sys/net/ppp_tty.c
1044
pppdumpb(u_char *b, int l)
sys/net/ppp_tty.c
1050
while (l--) {
sys/net/ppp_tty.c
131
void pppdumpb(u_char *b, int l);
sys/net/wg_noise.c
100
noise_local_unlock_identity(struct noise_local *l)
sys/net/wg_noise.c
102
rw_exit_write(&l->l_identity_lock);
sys/net/wg_noise.c
106
noise_local_set_private(struct noise_local *l,
sys/net/wg_noise.c
109
rw_assert_wrlock(&l->l_identity_lock);
sys/net/wg_noise.c
111
memcpy(l->l_private, private, NOISE_PUBLIC_KEY_LEN);
sys/net/wg_noise.c
112
curve25519_clamp_secret(l->l_private);
sys/net/wg_noise.c
113
l->l_has_identity = curve25519_generate_public(l->l_public, private);
sys/net/wg_noise.c
115
return l->l_has_identity ? 0 : ENXIO;
sys/net/wg_noise.c
119
noise_local_keys(struct noise_local *l, uint8_t public[NOISE_PUBLIC_KEY_LEN],
sys/net/wg_noise.c
123
rw_enter_read(&l->l_identity_lock);
sys/net/wg_noise.c
124
if (l->l_has_identity) {
sys/net/wg_noise.c
126
memcpy(public, l->l_public, NOISE_PUBLIC_KEY_LEN);
sys/net/wg_noise.c
128
memcpy(private, l->l_private, NOISE_PUBLIC_KEY_LEN);
sys/net/wg_noise.c
132
rw_exit_read(&l->l_identity_lock);
sys/net/wg_noise.c
138
struct noise_local *l)
sys/net/wg_noise.c
149
KASSERT(l != NULL);
sys/net/wg_noise.c
150
r->r_local = l;
sys/net/wg_noise.c
152
rw_enter_write(&l->l_identity_lock);
sys/net/wg_noise.c
154
rw_exit_write(&l->l_identity_lock);
sys/net/wg_noise.c
194
struct noise_local *l = r->r_local;
sys/net/wg_noise.c
195
rw_assert_wrlock(&l->l_identity_lock);
sys/net/wg_noise.c
196
if (!l->l_has_identity)
sys/net/wg_noise.c
198
else if (!curve25519(r->r_ss, l->l_private, r->r_public))
sys/net/wg_noise.c
215
struct noise_local *l = r->r_local;
sys/net/wg_noise.c
219
rw_enter_read(&l->l_identity_lock);
sys/net/wg_noise.c
221
if (!l->l_has_identity)
sys/net/wg_noise.c
236
noise_msg_encrypt(es, l->l_public,
sys/net/wg_noise.c
255
rw_exit_read(&l->l_identity_lock);
sys/net/wg_noise.c
261
noise_consume_initiation(struct noise_local *l, struct noise_remote **rp,
sys/net/wg_noise.c
273
rw_enter_read(&l->l_identity_lock);
sys/net/wg_noise.c
274
if (!l->l_has_identity)
sys/net/wg_noise.c
276
noise_param_init(hs.hs_ck, hs.hs_hash, l->l_public);
sys/net/wg_noise.c
282
if (noise_mix_dh(hs.hs_ck, key, l->l_private, ue) != 0)
sys/net/wg_noise.c
291
if ((r = l->l_upcall.u_remote_get(l->l_upcall.u_arg, r_public)) == NULL)
sys/net/wg_noise.c
331
rw_exit_read(&l->l_identity_lock);
sys/net/wg_noise.c
388
struct noise_local *l = r->r_local;
sys/net/wg_noise.c
394
rw_enter_read(&l->l_identity_lock);
sys/net/wg_noise.c
395
if (!l->l_has_identity)
sys/net/wg_noise.c
415
if (noise_mix_dh(hs.hs_ck, NULL, l->l_private, ue) != 0)
sys/net/wg_noise.c
437
rw_exit_read(&l->l_identity_lock);
sys/net/wg_noise.c
86
noise_local_init(struct noise_local *l, struct noise_upcall *upcall)
sys/net/wg_noise.c
88
bzero(l, sizeof(*l));
sys/net/wg_noise.c
89
rw_init(&l->l_identity_lock, "noise_local_identity");
sys/net/wg_noise.c
90
l->l_upcall = *upcall;
sys/net/wg_noise.c
94
noise_local_lock_identity(struct noise_local *l)
sys/net/wg_noise.c
96
rw_enter_write(&l->l_identity_lock);
sys/netinet/in4_cksum.c
105
u_int32_t l;
sys/netinet/in4_cksum.c
86
#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
sys/netinet/in_cksum.c
47
#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
sys/netinet/in_cksum.c
62
uint32_t l;
sys/netinet/inet_ntop.c
106
int l;
sys/netinet/inet_ntop.c
108
l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u",
sys/netinet/inet_ntop.c
110
if (l <= 0 || l >= size) {
sys/netinet/inet_ntop.c
65
u_int8_t l;
sys/netinet/inet_ntop.c
79
for (l = 0; l < sa->sa_len - offsetof(struct sockaddr, sa_data); l++) {
sys/netinet/inet_ntop.c
80
int r = snprintf(dst + n, size - n, "%02x", sa->sa_data[l]);
sys/netinet/ip_carp.c
188
#define CARP_LOG(l, sc, s) \
sys/netinet/ip_carp.c
190
if ((int)atomic_load_int(&carpctl_log) >= l) { \
sys/netinet/ip_carp.c
192
log(l, "%s: ", \
sys/netinet/ip_carp.c
195
log(l, "carp: "); \
sys/netinet/ipsec_input.c
1035
int protoff, nxt, l;
sys/netinet/ipsec_input.c
1059
l = 0;
sys/netinet/ipsec_input.c
1062
protoff += l;
sys/netinet/ipsec_input.c
1067
l = (ip6e.ip6e_len + 2) << 2;
sys/netinet/ipsec_input.c
1069
l = (ip6e.ip6e_len + 1) << 3;
sys/netinet/ipsec_input.c
1071
if (l <= 0)
sys/netinet/ipsec_input.c
1076
} while (protoff + l < off);
sys/netinet/ipsec_input.c
1079
if (protoff + l != off)
sys/netinet6/icmp6.c
1058
size_t l;
sys/netinet6/icmp6.c
1061
l = off - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
1063
m_adj(m, l);
sys/netinet6/icmp6.c
1064
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
1065
if (m->m_len < l) {
sys/netinet6/icmp6.c
1066
if ((m = *mp = m_pullup(m, l)) == NULL)
sys/netinet6/icmp6.c
1071
size_t l;
sys/netinet6/icmp6.c
1072
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
1073
if (m->m_len < l) {
sys/netinet6/icmp6.c
1074
if ((m = *mp = m_pullup(m, l)) == NULL)
sys/netinet6/in6_cksum.c
109
uint32_t l;
sys/netinet6/in6_cksum.c
78
#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
sys/netmpls/mpls.h
70
#define MPLS_BOS_ISSET(l) (((l) & MPLS_BOS_MASK) == MPLS_BOS_MASK)
sys/netmpls/mpls_input.c
42
#define MPLS_LABEL_GET(l) ((ntohl((l) & MPLS_LABEL_MASK)) >> MPLS_LABEL_OFFSET)
sys/netmpls/mpls_input.c
43
#define MPLS_TTL_GET(l) (ntohl((l) & MPLS_TTL_MASK))
sys/netmpls/mpls_output.c
39
#define MPLS_LABEL_GET(l) ((ntohl((l) & MPLS_LABEL_MASK)) >> MPLS_LABEL_OFFSET)
sys/stand/boot/bootarg.c
103
l -= p->ba_size + adj;
sys/stand/boot/bootarg.c
107
*lenp = l;
sys/stand/boot/bootarg.c
110
if (q + p->ba_size + adj > (u_char *)v + l - sizeof(*p32))
sys/stand/boot/bootarg.c
36
addbootarg(int t, size_t l, void *p)
sys/stand/boot/bootarg.c
38
bootarg_t *q = alloc(sizeof(*q) + l - sizeof(q->ba_arg));
sys/stand/boot/bootarg.c
41
q->ba_size = sizeof(*q) + l - sizeof(q->ba_arg);
sys/stand/boot/bootarg.c
42
bcopy(p, q->ba_arg, l);
sys/stand/boot/bootarg.c
52
size_t l;
sys/stand/boot/bootarg.c
55
l = sizeof(*p);
sys/stand/boot/bootarg.c
57
l += p->ba_size;
sys/stand/boot/bootarg.c
58
if (*lenp < l) {
sys/stand/boot/bootarg.c
62
l -= p->ba_size;
sys/stand/boot/bootarg.c
66
*lenp = l;
sys/stand/boot/bootarg.c
69
p != NULL && ((q + p->ba_size) - (u_char *)v) <= l - sizeof(*p);
sys/stand/boot/bootarg.c
85
size_t l;
sys/stand/boot/bootarg.c
96
l = sizeof(*p32);
sys/stand/boot/bootarg.c
98
l += p->ba_size + adj;
sys/stand/boot/bootarg.c
99
if (*lenp < l) {
sys/stand/boot/cmd.c
229
int l;
sys/stand/boot/cmd.c
233
for (l = 0; p[l]; l++)
sys/stand/boot/cmd.c
236
while ((*ct)->cmd_name != NULL && strncmp(p, (*ct)->cmd_name, l))
sys/stand/boot/vars.c
260
int l;
sys/stand/boot/vars.c
263
l = strlen(cmd.argv[1]);
sys/stand/boot/vars.c
266
l = max(l, q - p) + 1;
sys/stand/boot/vars.c
271
if (!strncmp(p, cmd.argv[1], l)) {
sys/stand/efi/include/efidebug.h
46
#define DBGSETMEM(a,l) SetMem(a,l,(CHAR8)BAD_POINTER)
sys/stand/efi/include/efidebug.h
50
#define DBGSETMEM(a,l)
sys/stand/efi/include/efidebug.h
89
#define ASSERT_LOCKED(l) if(!(l)->Lock) DBGASSERT(l not locked)
sys/stand/efi/include/efidebug.h
95
#define ASSERT_LOCKED(l)
sys/stand/efi/include/efidevp.h
64
#define SetDevicePathNodeLength(a,l) { \
sys/stand/efi/include/efidevp.h
65
(a)->Length[0] = (UINT8) (l); \
sys/stand/efi/include/efidevp.h
66
(a)->Length[1] = (UINT8) ((l) >> 8); \
sys/sys/ktrace.h
238
#define ktrcmsghdr(p, s, l) \
sys/sys/ktrace.h
239
ktrstruct(p, "cmsghdr", s, l)
sys/sys/ktrace.h
242
#define ktrfdset(p, s, l) \
sys/sys/ktrace.h
243
ktrstruct(p, "fdset", s, l)
sys/sys/ktrace.h
272
#define ktrsockaddr(p, s, l) \
sys/sys/ktrace.h
273
ktrstruct(p, "sockaddr", s, l)
sys/sys/mbuf.h
315
#define MCLGETL(m, how, l) m_clget((m), (how), (l))
sys/sys/tree.h
942
const struct _type *l = lptr, *r = rptr; \
sys/sys/tree.h
943
return _cmp(l, r); \
sys/ufs/ext2fs/ext2fs_extents.c
48
struct ext4_extent_index *l, *r, *m;
sys/ufs/ext2fs/ext2fs_extents.c
50
l = (struct ext4_extent_index *)(char *)(ehp + 1);
sys/ufs/ext2fs/ext2fs_extents.c
52
while (l <= r) {
sys/ufs/ext2fs/ext2fs_extents.c
53
m = l + (r - l) / 2;
sys/ufs/ext2fs/ext2fs_extents.c
57
l = m + 1;
sys/ufs/ext2fs/ext2fs_extents.c
60
path->ep_index = l - 1;
sys/ufs/ext2fs/ext2fs_extents.c
67
struct ext4_extent *l, *r, *m;
sys/ufs/ext2fs/ext2fs_extents.c
72
l = (struct ext4_extent *)(char *)(ehp + 1);
sys/ufs/ext2fs/ext2fs_extents.c
74
while (l <= r) {
sys/ufs/ext2fs/ext2fs_extents.c
75
m = l + (r - l) / 2;
sys/ufs/ext2fs/ext2fs_extents.c
79
l = m + 1;
sys/ufs/ext2fs/ext2fs_extents.c
82
path->ep_ext = l - 1;
sys/ufs/ufs/ufs_dirhash.c
79
#define mtx_assert(l, f) /* nothing */
usr.bin/awk/b.c
113
static int entry_cmp(const void *l, const void *r);
usr.bin/awk/b.c
647
static int entry_cmp(const void *l, const void *r)
usr.bin/awk/b.c
651
left = (const gtte *) l;
usr.bin/awk/tran.c
554
size_t l = strlen(sa) + strlen(sb) + 1;
usr.bin/awk/tran.c
555
p = (char *) malloc(l);
usr.bin/awk/tran.c
558
snprintf(p, l, "%s%s", sa, sb);
usr.bin/awk/tran.c
560
l++; // add room for ' '
usr.bin/awk/tran.c
561
char *newbuf = (char *) malloc(l);
usr.bin/awk/tran.c
566
snprintf(newbuf, l, "%s ", p);
usr.bin/calendar/day.c
100
buf[l] = '\0';
usr.bin/calendar/day.c
106
l = strftime(buf, sizeof(buf), "%A", &tm);
usr.bin/calendar/day.c
107
for (; l > 0 && isspace((unsigned char)buf[l - 1]); l--)
usr.bin/calendar/day.c
109
buf[l] = '\0';
usr.bin/calendar/day.c
118
l = strftime(buf, sizeof(buf), "%b", &tm);
usr.bin/calendar/day.c
119
for (; l > 0 && isspace((unsigned char)buf[l - 1]); l--)
usr.bin/calendar/day.c
121
buf[l] = '\0';
usr.bin/calendar/day.c
127
l = strftime(buf, sizeof(buf), "%B", &tm);
usr.bin/calendar/day.c
128
for (; l > 0 && isspace((unsigned char)buf[l - 1]); l--)
usr.bin/calendar/day.c
130
buf[l] = '\0';
usr.bin/calendar/day.c
92
int i, l;
usr.bin/calendar/day.c
97
l = strftime(buf, sizeof(buf), "%a", &tm);
usr.bin/calendar/day.c
98
for (; l > 0 && isspace((unsigned char)buf[l - 1]); l--)
usr.bin/calendar/io.c
72
int ch, l, i, bodun = 0, bodun_maybe = 0, var, printing;
usr.bin/calendar/io.c
87
for (l = strlen(buf); l > 0 && isspace(buf[l - 1]); l--)
usr.bin/calendar/io.c
89
buf[l] = '\0';
usr.bin/cdio/cdio.c
328
int l, r, rc;
usr.bin/cdio/cdio.c
491
if (2 != sscanf(arg, "%d%d", &l, &r)) {
usr.bin/cdio/cdio.c
496
return setvol(l, r);
usr.bin/col/col.c
106
LINE *l; /* current line */
usr.bin/col/col.c
153
lines = l = alloc_line();
usr.bin/col/col.c
226
l->l_prev != NULL) {
usr.bin/col/col.c
227
l = l->l_prev;
usr.bin/col/col.c
240
l->l_prev = lnew;
usr.bin/col/col.c
241
lnew->l_next = l;
usr.bin/col/col.c
242
l = lines = lnew;
usr.bin/col/col.c
255
if (l->l_next == NULL) {
usr.bin/col/col.c
256
l->l_next = alloc_line();
usr.bin/col/col.c
257
l->l_next->l_prev = l;
usr.bin/col/col.c
259
l = l->l_next;
usr.bin/col/col.c
276
if (l->l_line_len + 1 >= l->l_lsize) {
usr.bin/col/col.c
279
need = l->l_lsize ? l->l_lsize : 45;
usr.bin/col/col.c
280
l->l_line = xreallocarray(l->l_line,
usr.bin/col/col.c
282
l->l_lsize = need * 2;
usr.bin/col/col.c
284
c = &l->l_line[l->l_line_len++];
usr.bin/col/col.c
292
if (cur_col < l->l_max_col)
usr.bin/col/col.c
293
l->l_needs_sort = 1;
usr.bin/col/col.c
295
l->l_max_col = cur_col;
usr.bin/col/col.c
302
for (; l->l_next; l = l->l_next)
usr.bin/col/col.c
322
LINE *l;
usr.bin/col/col.c
325
l = lines;
usr.bin/col/col.c
326
lines = l->l_next;
usr.bin/col/col.c
327
if (l->l_line) {
usr.bin/col/col.c
329
flush_line(l);
usr.bin/col/col.c
331
if (l->l_line || l->l_next)
usr.bin/col/col.c
333
if (l->l_line)
usr.bin/col/col.c
334
(void)free((void *)l->l_line);
usr.bin/col/col.c
335
free_line(l);
usr.bin/col/col.c
380
flush_line(LINE *l)
usr.bin/col/col.c
386
nchars = l->l_line_len;
usr.bin/col/col.c
388
if (l->l_needs_sort) {
usr.bin/col/col.c
397
if (l->l_lsize > sorted_size) {
usr.bin/col/col.c
398
sorted_size = l->l_lsize;
usr.bin/col/col.c
402
if (l->l_max_col >= count_size) {
usr.bin/col/col.c
403
count_size = l->l_max_col + 1;
usr.bin/col/col.c
407
memset(count, 0, sizeof(*count) * (l->l_max_col + 1));
usr.bin/col/col.c
408
for (i = nchars, c = l->l_line; i-- > 0; c++)
usr.bin/col/col.c
415
for (tot = 0, i = 0; i <= l->l_max_col; i++) {
usr.bin/col/col.c
421
for (i = nchars, c = l->l_line; i-- > 0; c++)
usr.bin/col/col.c
425
c = l->l_line;
usr.bin/col/col.c
499
LINE *l;
usr.bin/col/col.c
503
l = xreallocarray(NULL, NALLOC, sizeof(LINE));
usr.bin/col/col.c
504
line_freelist = l;
usr.bin/col/col.c
505
for (i = 1; i < NALLOC; i++, l++)
usr.bin/col/col.c
506
l->l_next = l + 1;
usr.bin/col/col.c
507
l->l_next = NULL;
usr.bin/col/col.c
509
l = line_freelist;
usr.bin/col/col.c
510
line_freelist = l->l_next;
usr.bin/col/col.c
512
memset(l, 0, sizeof(LINE));
usr.bin/col/col.c
513
return (l);
usr.bin/col/col.c
517
free_line(LINE *l)
usr.bin/col/col.c
520
l->l_next = line_freelist;
usr.bin/col/col.c
521
line_freelist = l;
usr.bin/ctfconv/ctfconv.c
515
int l;
usr.bin/ctfconv/ctfconv.c
519
l = printf(" [%u] %u", (*idx), it->it_refp->it_idx);
usr.bin/ctfconv/ctfconv.c
520
printf("%*s %s (%llu)\n", 14 - l, "", it_name(it), it->it_ref);
usr.bin/ctfdump/ctfdump.c
371
int l;
usr.bin/ctfdump/ctfdump.c
376
l = printf(" [%zu] %u", i++, *dsp);
usr.bin/ctfdump/ctfdump.c
378
printf("%*s %s (%zu)\n", (14 - l), "", s, idx);
usr.bin/ctfdump/ctfdump.c
392
int l;
usr.bin/ctfdump/ctfdump.c
408
l = printf(" [%zu] FUNC ", i);
usr.bin/cu/cu.c
388
long l;
usr.bin/cu/cu.c
418
if (line_speed == -1 && cgetnum(cp, "br", &l) >= 0) {
usr.bin/cu/cu.c
419
if (l < 0 || l > INT_MAX)
usr.bin/cu/cu.c
421
line_speed = l;
usr.bin/cvs/commit.c
165
RB_FOREACH(l, cvs_flisthead, &files_affected) {
usr.bin/cvs/commit.c
167
fi->file_path = xstrdup(l->file_path);
usr.bin/cvs/commit.c
69
struct cvs_filelist *l;
usr.bin/cvs/diff_internals.c
545
int i, k, y, j, l;
usr.bin/cvs/diff_internals.c
569
l = search(c, k, y);
usr.bin/cvs/diff_internals.c
570
if (l != oldl + 1)
usr.bin/cvs/diff_internals.c
571
oldc = c[l - 1];
usr.bin/cvs/diff_internals.c
572
if (l <= k) {
usr.bin/cvs/diff_internals.c
573
if (clist[c[l]].y <= y)
usr.bin/cvs/diff_internals.c
575
tc = c[l];
usr.bin/cvs/diff_internals.c
576
c[l] = newcand(i, y, oldc);
usr.bin/cvs/diff_internals.c
578
oldl = l;
usr.bin/cvs/diff_internals.c
581
c[l] = newcand(i, y, oldc);
usr.bin/cvs/diff_internals.c
609
int i, j, l, t;
usr.bin/cvs/diff_internals.c
616
l = (i + j) / 2;
usr.bin/cvs/diff_internals.c
617
if (l <= i)
usr.bin/cvs/diff_internals.c
619
t = clist[c[l]].y;
usr.bin/cvs/diff_internals.c
621
j = l;
usr.bin/cvs/diff_internals.c
623
i = l;
usr.bin/cvs/diff_internals.c
625
return (l);
usr.bin/cvs/diff_internals.c
627
return (l + 1);
usr.bin/cvs/diff_internals.c
782
unsort(struct line *f, int l, int *b)
usr.bin/cvs/diff_internals.c
786
a = xcalloc(l + 1, sizeof(*a));
usr.bin/cvs/diff_internals.c
787
for (i = 1; i <= l; i++)
usr.bin/cvs/diff_internals.c
789
for (i = 1; i <= l; i++)
usr.bin/cvs/entries.c
243
struct cvs_ent_line *l;
usr.bin/cvs/entries.c
245
l = ent_get_line(ep, name);
usr.bin/cvs/entries.c
246
if (l == NULL)
usr.bin/cvs/entries.c
249
ent = cvs_ent_parse(l->buf);
usr.bin/cvs/entries.c
257
struct cvs_ent_line *l;
usr.bin/cvs/entries.c
270
while ((l = TAILQ_FIRST(&(ep->cef_ent))) != NULL) {
usr.bin/cvs/entries.c
272
if (l->buf[0] == 'D')
usr.bin/cvs/entries.c
275
fputs(l->buf, fp);
usr.bin/cvs/entries.c
279
TAILQ_REMOVE(&(ep->cef_ent), l, entries_list);
usr.bin/cvs/entries.c
280
free(l->buf);
usr.bin/cvs/entries.c
281
free(l);
usr.bin/cvs/entries.c
308
struct cvs_ent_line *l;
usr.bin/cvs/entries.c
314
l = ent_get_line(ep, ent->ce_name);
usr.bin/cvs/entries.c
315
if (l != NULL)
usr.bin/cvs/entries.c
333
l = xmalloc(sizeof(*l));
usr.bin/cvs/entries.c
334
l->buf = xstrdup(line);
usr.bin/cvs/entries.c
335
TAILQ_INSERT_TAIL(&(ep->cef_ent), l, entries_list);
usr.bin/cvs/entries.c
342
struct cvs_ent_line *l;
usr.bin/cvs/entries.c
347
l = ent_get_line(ep, name);
usr.bin/cvs/entries.c
348
if (l == NULL)
usr.bin/cvs/entries.c
356
fputs(l->buf, fp);
usr.bin/cvs/entries.c
361
TAILQ_REMOVE(&(ep->cef_ent), l, entries_list);
usr.bin/cvs/entries.c
362
free(l->buf);
usr.bin/cvs/entries.c
363
free(l);
usr.bin/cvs/entries.c
398
struct cvs_ent_line *l;
usr.bin/cvs/entries.c
400
TAILQ_FOREACH(l, &(ep->cef_ent), entries_list) {
usr.bin/cvs/entries.c
401
if (l->buf[0] == 'D')
usr.bin/cvs/entries.c
402
p = &(l->buf[2]);
usr.bin/cvs/entries.c
404
p = &(l->buf[1]);
usr.bin/cvs/entries.c
407
fatal("ent_get_line: bad entry line '%s'", l->buf);
usr.bin/cvs/entries.c
413
return (l);
usr.bin/cvs/file.c
210
struct cvs_filelist *l, find;
usr.bin/cvs/file.c
216
l = RB_FIND(cvs_flisthead, fl, &find);
usr.bin/cvs/file.c
217
if (l != NULL)
usr.bin/cvs/file.c
218
return (l);
usr.bin/cvs/file.c
220
l = xmalloc(sizeof(*l));
usr.bin/cvs/file.c
221
l->file_path = xstrdup(p);
usr.bin/cvs/file.c
222
l->flags = flags;
usr.bin/cvs/file.c
223
l->type = type;
usr.bin/cvs/file.c
225
RB_INSERT(cvs_flisthead, fl, l);
usr.bin/cvs/file.c
226
return (l);
usr.bin/cvs/file.c
267
struct cvs_filelist *l, *nxt;
usr.bin/cvs/file.c
271
for (l = RB_MIN(cvs_flisthead, fl); l != NULL; l = nxt) {
usr.bin/cvs/file.c
276
l->file_path);
usr.bin/cvs/file.c
278
if (strlcpy(fbuf, l->file_path, sizeof(fbuf)) >= sizeof(fbuf))
usr.bin/cvs/file.c
283
if (strlcpy(dbuf, l->file_path, sizeof(dbuf)) >= sizeof(dbuf))
usr.bin/cvs/file.c
288
type = l->type;
usr.bin/cvs/file.c
289
if ((fd = open(l->file_path, O_RDONLY)) != -1) {
usr.bin/cvs/file.c
292
cvs_log(LP_ERRNO, "%s", l->file_path);
usr.bin/cvs/file.c
304
l->file_path);
usr.bin/cvs/file.c
342
l->file_path);
usr.bin/cvs/file.c
356
cf = cvs_file_get_cf(d, f, l->file_path, fd, type, l->flags);
usr.bin/cvs/file.c
360
if (l->flags & FILE_USER_SUPPLIED) {
usr.bin/cvs/file.c
380
if (l->flags & FILE_USER_SUPPLIED) {
usr.bin/cvs/file.c
393
nxt = RB_NEXT(cvs_flisthead, fl, l);
usr.bin/cvs/file.c
400
int l, type;
usr.bin/cvs/file.c
441
l = stat(fpath, &st);
usr.bin/cvs/file.c
443
(l == -1 || (l == 0 && !S_ISDIR(st.st_mode)))) {
usr.bin/cvs/util.c
101
l = strlcpy(buf, str, sizeof(buf));
usr.bin/cvs/util.c
102
if (l >= sizeof(buf))
usr.bin/cvs/util.c
96
size_t l;
usr.bin/diff/diff.c
116
l = strtol(optarg, &ep, 10);
usr.bin/diff/diff.c
117
if (*ep != '\0' || l < 0 || l >= INT_MAX)
usr.bin/diff/diff.c
119
diff_context = (int)l;
usr.bin/diff/diff.c
187
l = strtol(optarg, &ep, 10);
usr.bin/diff/diff.c
188
if (*ep != '\0' || l < 0 || l >= INT_MAX)
usr.bin/diff/diff.c
190
diff_context = (int)l;
usr.bin/diff/diff.c
85
long l;
usr.bin/diff/diffreg.c
594
int i, k, y, j, l;
usr.bin/diff/diffreg.c
618
l = search(c, k, y);
usr.bin/diff/diffreg.c
619
if (l != oldl + 1)
usr.bin/diff/diffreg.c
620
oldc = c[l - 1];
usr.bin/diff/diffreg.c
621
if (l <= k) {
usr.bin/diff/diffreg.c
622
if (clist[c[l]].y <= y)
usr.bin/diff/diffreg.c
624
tc = c[l];
usr.bin/diff/diffreg.c
625
c[l] = newcand(i, y, oldc);
usr.bin/diff/diffreg.c
627
oldl = l;
usr.bin/diff/diffreg.c
630
c[l] = newcand(i, y, oldc);
usr.bin/diff/diffreg.c
658
int i, j, l, t;
usr.bin/diff/diffreg.c
665
l = (i + j) / 2;
usr.bin/diff/diffreg.c
666
if (l <= i)
usr.bin/diff/diffreg.c
668
t = clist[c[l]].y;
usr.bin/diff/diffreg.c
670
j = l;
usr.bin/diff/diffreg.c
672
i = l;
usr.bin/diff/diffreg.c
674
return (l);
usr.bin/diff/diffreg.c
676
return (l + 1);
usr.bin/diff/diffreg.c
835
unsort(struct line *f, int l, int *b)
usr.bin/diff/diffreg.c
839
a = xcalloc(l + 1, sizeof(*a));
usr.bin/diff/diffreg.c
840
for (i = 1; i <= l; i++)
usr.bin/diff/diffreg.c
842
for (i = 1; i <= l; i++)
usr.bin/dig/dighost.c
2356
dig_lookup_t *l;
usr.bin/dig/dighost.c
2376
l = query->lookup;
usr.bin/dig/dighost.c
2378
if (l->ns_search_only && !l->trace_root && !l->tcp_mode) {
usr.bin/dig/dighost.c
2421
dig_lookup_t *l;
usr.bin/dig/dighost.c
2431
l = query->lookup;
usr.bin/dig/dighost.c
2441
l->interval.tv_sec = local_timeout;
usr.bin/dig/dighost.c
2442
l->interval.tv_nsec = 0;
usr.bin/dig/dighost.c
2446
&l->interval, global_task, connect_timeout,
usr.bin/dig/dighost.c
2487
dig_lookup_t *l;
usr.bin/dig/dighost.c
2491
l = query->lookup;
usr.bin/dig/dighost.c
2515
l = query->lookup;
usr.bin/dig/dighost.c
2519
check_next_lookup(l);
usr.bin/dig/dighost.c
2563
if (l->ns_search_only && !l->trace_root) {
usr.bin/dig/dighost.c
2567
ISC_LIST_DEQUEUE(l->q, query, link);
usr.bin/dig/dighost.c
2570
ISC_LIST_ENQUEUE(l->connecting, query, clink);
usr.bin/dig/dighost.c
2594
dig_lookup_t *l = NULL;
usr.bin/dig/dighost.c
2600
l = query->lookup;
usr.bin/dig/dighost.c
2602
l->current_query = query;
usr.bin/dig/dighost.c
2664
dig_lookup_t *l = NULL;
usr.bin/dig/dighost.c
2673
l = query->lookup;
usr.bin/dig/dighost.c
2683
if (!l->tcp_mode)
usr.bin/dig/dighost.c
2694
if (l->tcp_mode && query->sock != NULL) {
usr.bin/dig/dighost.c
2699
if (l->retries > 1) {
usr.bin/dig/dighost.c
2700
if (!l->tcp_mode) {
usr.bin/dig/dighost.c
2701
l->retries--;
usr.bin/dig/dighost.c
2703
send_udp(ISC_LIST_HEAD(l->q));
usr.bin/dig/dighost.c
2706
l->retries);
usr.bin/dig/dighost.c
2707
l->retries--;
usr.bin/dig/dighost.c
2708
requeue_lookup(l, 1);
usr.bin/dig/dighost.c
2709
cancel_lookup(l);
usr.bin/dig/dighost.c
2710
check_next_lookup(l);
usr.bin/dig/dighost.c
2713
if (!l->ns_search_only) {
usr.bin/dig/dighost.c
2714
fputs(l->cmdline, stdout);
usr.bin/dig/dighost.c
2718
cancel_lookup(l);
usr.bin/dig/dighost.c
2719
check_next_lookup(l);
usr.bin/dig/dighost.c
2735
dig_lookup_t *l, *n;
usr.bin/dig/dighost.c
2757
l = query->lookup;
usr.bin/dig/dighost.c
2759
check_next_lookup(l);
usr.bin/dig/dighost.c
2770
l = query->lookup;
usr.bin/dig/dighost.c
2775
if (sevent->result == ISC_R_EOF && l->eoferr == 0U) {
usr.bin/dig/dighost.c
2776
n = requeue_lookup(l, 1);
usr.bin/dig/dighost.c
2781
cancel_lookup(l);
usr.bin/dig/dighost.c
2782
check_next_lookup(l);
usr.bin/dig/dighost.c
2818
dig_lookup_t *l;
usr.bin/dig/dighost.c
2832
l = query->lookup;
usr.bin/dig/dighost.c
2834
check_next_lookup(l);
usr.bin/dig/dighost.c
2884
dig_lookup_t *l;
usr.bin/dig/dighost.c
2914
l = query->lookup;
usr.bin/dig/dighost.c
2916
check_next_lookup(l);
usr.bin/dig/dighost.c
2938
l = query->lookup;
usr.bin/dig/dighost.c
2939
if ((l->current_query != NULL) &&
usr.bin/dig/dighost.c
2940
(ISC_LINK_LINKED(l->current_query, link)))
usr.bin/dig/dighost.c
2941
next = ISC_LIST_NEXT(l->current_query, link);
usr.bin/dig/dighost.c
2949
check_next_lookup(l);
usr.bin/dig/dighost.c
3107
process_sit(dig_lookup_t *l, dns_message_t *msg,
usr.bin/dig/dighost.c
3117
if (l->sitvalue != NULL) {
usr.bin/dig/dighost.c
3119
result = isc_hex_decodestring(l->sitvalue, &hexbuf);
usr.bin/dig/dighost.c
3154
l->sitvalue = sitvalue;
usr.bin/dig/dighost.c
3161
process_opt(dig_lookup_t *l, dns_message_t *msg) {
usr.bin/dig/dighost.c
3187
process_sit(l, msg, &optbuf, optlen);
usr.bin/dig/dighost.c
3214
dig_lookup_t *n, *l;
usr.bin/dig/dighost.c
3235
l = query->lookup;
usr.bin/dig/dighost.c
3244
if ((l->tcp_mode) && (query->timer != NULL))
usr.bin/dig/dighost.c
3246
if ((!l->pending && !l->ns_search_only) || cancel_now) {
usr.bin/dig/dighost.c
3253
check_next_lookup(l);
usr.bin/dig/dighost.c
3271
if (sevent->result == ISC_R_EOF && l->eoferr == 0U) {
usr.bin/dig/dighost.c
3272
n = requeue_lookup(l, 1);
usr.bin/dig/dighost.c
3277
cancel_lookup(l);
usr.bin/dig/dighost.c
3278
check_next_lookup(l);
usr.bin/dig/dighost.c
3282
if (!l->tcp_mode &&
usr.bin/dig/dighost.c
3317
if (result != ISC_R_SUCCESS || l->sendmsg->id != id) {
usr.bin/dig/dighost.c
3319
if (l->tcp_mode) {
usr.bin/dig/dighost.c
3328
l->sendmsg->id, id);
usr.bin/dig/dighost.c
3338
cancel_lookup(l);
usr.bin/dig/dighost.c
3339
check_next_lookup(l);
usr.bin/dig/dighost.c
3345
"expected ID %u, got %u\n", l->sendmsg->id, id);
usr.bin/dig/dighost.c
3361
if (l->querysig == NULL) {
usr.bin/dig/dighost.c
3363
result = dns_message_getquerytsig(l->sendmsg,
usr.bin/dig/dighost.c
3364
&l->querysig);
usr.bin/dig/dighost.c
3367
result = dns_message_setquerytsig(msg, l->querysig);
usr.bin/dig/dighost.c
3371
msg->tsigctx = l->tsigctx;
usr.bin/dig/dighost.c
3372
l->tsigctx = NULL;
usr.bin/dig/dighost.c
3373
if (l->msgcounter != 0)
usr.bin/dig/dighost.c
3375
l->msgcounter++;
usr.bin/dig/dighost.c
3380
if (l->besteffort) {
usr.bin/dig/dighost.c
3397
cancel_lookup(l);
usr.bin/dig/dighost.c
3398
check_next_lookup(l);
usr.bin/dig/dighost.c
3414
if (l->rdtype != rdataset->type ||
usr.bin/dig/dighost.c
3415
l->rdclass != rdataset->rdclass ||
usr.bin/dig/dighost.c
3416
!dns_name_equal(l->name, name)) {
usr.bin/dig/dighost.c
3437
if (l->tcp_mode) {
usr.bin/dig/dighost.c
3440
cancel_lookup(l);
usr.bin/dig/dighost.c
3441
check_next_lookup(l);
usr.bin/dig/dighost.c
3448
(newedns = ednsvers(msg->opt)) < l->edns && l->ednsneg) {
usr.bin/dig/dighost.c
3452
if (l->comments)
usr.bin/dig/dighost.c
3455
l->edns = newedns;
usr.bin/dig/dighost.c
3456
n = requeue_lookup(l, 1);
usr.bin/dig/dighost.c
3457
if (l->trace && l->trace_root)
usr.bin/dig/dighost.c
3458
n->rdtype = l->qrdtype;
usr.bin/dig/dighost.c
3462
cancel_lookup(l);
usr.bin/dig/dighost.c
3463
check_next_lookup(l);
usr.bin/dig/dighost.c
3467
!l->ignore && !l->tcp_mode) {
usr.bin/dig/dighost.c
3468
if (l->sitvalue == NULL && l->sit && msg->opt != NULL)
usr.bin/dig/dighost.c
3469
process_opt(l, msg);
usr.bin/dig/dighost.c
3470
if (l->comments)
usr.bin/dig/dighost.c
3472
n = requeue_lookup(l, 1);
usr.bin/dig/dighost.c
3474
if (l->trace && l->trace_root)
usr.bin/dig/dighost.c
3475
n->rdtype = l->qrdtype;
usr.bin/dig/dighost.c
3479
cancel_lookup(l);
usr.bin/dig/dighost.c
3480
check_next_lookup(l);
usr.bin/dig/dighost.c
3483
if ((msg->rcode == dns_rcode_servfail && !l->servfail_stops) ||
usr.bin/dig/dighost.c
3484
(check_ra && (msg->flags & DNS_MESSAGEFLAG_RA) == 0 && l->recurse))
usr.bin/dig/dighost.c
3487
if (l->current_query == query)
usr.bin/dig/dighost.c
3488
l->current_query = NULL;
usr.bin/dig/dighost.c
3491
if (l->tcp_mode)
usr.bin/dig/dighost.c
3501
if ((ISC_LIST_HEAD(l->q) != query) ||
usr.bin/dig/dighost.c
3503
if (l->comments)
usr.bin/dig/dighost.c
3511
check_next_lookup(l);
usr.bin/dig/dighost.c
3525
l->tsigctx = msg->tsigctx;
usr.bin/dig/dighost.c
3527
if (l->querysig != NULL) {
usr.bin/dig/dighost.c
3528
debug("freeing querysig buffer %p", l->querysig);
usr.bin/dig/dighost.c
3529
isc_buffer_free(&l->querysig);
usr.bin/dig/dighost.c
3531
result = dns_message_getquerytsig(msg, &l->querysig);
usr.bin/dig/dighost.c
3538
if (l->doing_xfr && l->xfr_q == NULL) {
usr.bin/dig/dighost.c
3539
l->xfr_q = query;
usr.bin/dig/dighost.c
3549
if (l->tcp_mode)
usr.bin/dig/dighost.c
3560
l->interval.tv_sec = local_timeout;
usr.bin/dig/dighost.c
3561
l->interval.tv_nsec = 0;
usr.bin/dig/dighost.c
3563
&l->interval,
usr.bin/dig/dighost.c
3569
if (l->sitvalue != NULL) {
usr.bin/dig/dighost.c
3573
process_opt(l, msg);
usr.bin/dig/dighost.c
3574
} else if (l->sit && msg->opt != NULL)
usr.bin/dig/dighost.c
3575
process_opt(l, msg);
usr.bin/dig/dighost.c
3577
if (!l->doing_xfr || l->xfr_q == query) {
usr.bin/dig/dighost.c
3579
(l->origin != NULL || l->need_search)) {
usr.bin/dig/dighost.c
3584
} else if (!l->trace && !l->ns_search_only) {
usr.bin/dig/dighost.c
3586
} else if (l->trace) {
usr.bin/dig/dighost.c
3591
if (!l->ns_search_only)
usr.bin/dig/dighost.c
3594
l->rdtype = l->qrdtype;
usr.bin/dig/dighost.c
3595
if (l->trace_root || (l->ns_search_only && count > 0)) {
usr.bin/dig/dighost.c
3596
if (!l->trace_root)
usr.bin/dig/dighost.c
3597
l->rdtype = dns_rdatatype_soa;
usr.bin/dig/dighost.c
3600
l->trace_root = 0;
usr.bin/dig/dighost.c
3609
if (l->trace_root) {
usr.bin/dig/dighost.c
3615
l->rdtype = dns_rdatatype_soa;
usr.bin/dig/dighost.c
3620
l->trace_root = 0;
usr.bin/dig/dighost.c
3627
if (l->pending)
usr.bin/dig/dighost.c
3629
if (l->doing_xfr) {
usr.bin/dig/dighost.c
3630
if (query != l->xfr_q) {
usr.bin/dig/dighost.c
3641
cancel_lookup(l);
usr.bin/dig/dighost.c
3642
check_next_lookup(l);
usr.bin/dig/dighost.c
3646
if (msg->rcode == dns_rcode_noerror || l->origin == NULL) {
usr.bin/dig/dighost.c
3656
cancel_lookup(l);
usr.bin/dig/dighost.c
3659
check_next_lookup(l);
usr.bin/dig/dighost.c
3769
dig_lookup_t *l, *n;
usr.bin/dig/dighost.c
3806
l = ISC_LIST_HEAD(lookup_list);
usr.bin/dig/dighost.c
3807
while (l != NULL) {
usr.bin/dig/dighost.c
3808
n = ISC_LIST_NEXT(l, link);
usr.bin/dig/dighost.c
3809
ISC_LIST_DEQUEUE(lookup_list, l, link);
usr.bin/dig/dighost.c
3810
try_clear_lookup(l);
usr.bin/dig/dighost.c
3811
l = n;
usr.bin/dig/lib/dns/dns_time.c
35
size_t l;
usr.bin/dig/lib/dns/dns_time.c
39
if ((l = strftime(buf, sizeof(buf), "%Y%m%d%H%M%S", tm)) == 0)
usr.bin/dig/lib/dns/dns_time.c
44
if (l > region.length)
usr.bin/dig/lib/dns/dns_time.c
47
memmove(region.base, buf, l);
usr.bin/dig/lib/dns/dns_time.c
48
isc_buffer_add(target, l);
usr.bin/dig/lib/dns/name.c
247
unsigned int l1, l2, l, count1, count2, count, nlabels;
usr.bin/dig/lib/dns/name.c
286
l = l1;
usr.bin/dig/lib/dns/name.c
289
l = l2;
usr.bin/dig/lib/dns/name.c
296
while (l > 0) {
usr.bin/dig/lib/dns/name.c
297
l--;
usr.bin/dig/lib/dns/name.c
402
unsigned int l, count;
usr.bin/dig/lib/dns/name.c
427
l = name1->labels;
usr.bin/dig/lib/dns/name.c
429
if (l != name2->labels)
usr.bin/dig/lib/dns/name.c
434
while (l-- > 0) {
usr.bin/dig/lib/isc/buffer.c
285
unsigned int l;
usr.bin/dig/lib/isc/buffer.c
293
l = strlen(source);
usr.bin/dig/lib/isc/buffer.c
295
REQUIRE(l <= isc_buffer_availablelength(b));
usr.bin/dig/lib/isc/buffer.c
298
memmove(cp, source, l);
usr.bin/dig/lib/isc/buffer.c
299
b->used += l;
usr.bin/dig/lib/isc/buffer.c
371
unsigned int l;
usr.bin/dig/lib/isc/buffer.c
375
l = strlen(source);
usr.bin/dig/lib/isc/buffer.c
377
if (l > region.length)
usr.bin/dig/lib/isc/buffer.c
380
memmove(region.base, source, l);
usr.bin/dig/lib/isc/buffer.c
381
isc_buffer_add(target, l);
usr.bin/dig/lib/isc/include/isc/region.h
42
#define isc_region_consume(r,l) \
usr.bin/dig/lib/isc/include/isc/region.h
45
unsigned int _l = (l); \
usr.bin/dig/nslookup.c
579
size_t l = strlen(opt);
usr.bin/dig/nslookup.c
582
((l >= N) && (l < sizeof(A)) && (strncasecmp(opt, A, l) == 0))
usr.bin/dig/nslookup.c
828
dig_lookup_t *l, *lp;
usr.bin/dig/nslookup.c
833
l = ISC_LIST_HEAD(lookup_list);
usr.bin/dig/nslookup.c
834
while (l != NULL) {
usr.bin/dig/nslookup.c
835
q = ISC_LIST_HEAD(l->q);
usr.bin/dig/nslookup.c
852
ISC_LIST_DEQUEUE(l->q, qp, link);
usr.bin/dig/nslookup.c
855
s = ISC_LIST_HEAD(l->my_server_list);
usr.bin/dig/nslookup.c
859
ISC_LIST_DEQUEUE(l->my_server_list, sp, link);
usr.bin/dig/nslookup.c
863
if (l->sendmsg != NULL)
usr.bin/dig/nslookup.c
864
dns_message_destroy(&l->sendmsg);
usr.bin/dig/nslookup.c
865
lp = l;
usr.bin/dig/nslookup.c
866
l = ISC_LIST_NEXT(l, link);
usr.bin/fgen/fgen.h
50
struct fcode *l;
usr.bin/fgen/fgen.h
59
struct macro *l;
usr.bin/file/magic-test.c
1274
uint32_t l;
usr.bin/file/magic-test.c
1307
if (magic_copy_from(ms, next, &l, sizeof l) != 0)
usr.bin/file/magic-test.c
1309
wanted = le16toh(l);
usr.bin/file/magic-test.c
1312
if (magic_copy_from(ms, next, &l, sizeof l) != 0)
usr.bin/file/magic-test.c
1314
wanted = be16toh(l);
usr.bin/find/function.c
420
int cnt, l;
usr.bin/find/function.c
429
l = strlen(entry->fts_path);
usr.bin/find/function.c
430
if (plan->ep_p + l < plan->ep_ebp) {
usr.bin/find/function.c
432
strlcpy(plan->ep_p, entry->fts_path, l + 1);
usr.bin/find/function.c
433
plan->ep_p += l + 1;
usr.bin/find/function.c
444
if (plan->ep_p + l < plan->ep_ebp) {
usr.bin/find/function.c
446
strlcpy(plan->ep_p, entry->fts_path, l + 1);
usr.bin/find/function.c
447
plan->ep_p += l + 1;
usr.bin/fmt/fmt.c
630
size_t l; /* Display width of the line. */
usr.bin/fmt/fmt.c
635
l = 0;
usr.bin/fmt/fmt.c
646
if (l == 0 && iswspace(wc))
usr.bin/fmt/fmt.c
649
l += wcw;
usr.bin/fmt/fmt.c
651
while (l < goal_length) {
usr.bin/fmt/fmt.c
653
l += 2;
usr.bin/ftp/cmdtab.c
155
{ "lcd", H(lcdhelp), 0, 0, 0, CMPL(l) lcd },
usr.bin/ftp/fetch.c
1719
int l;
usr.bin/ftp/fetch.c
1737
l = asprintf(&connstr, "CONNECT %s:%s HTTP/1.1\r\n"
usr.bin/ftp/fetch.c
1742
l = asprintf(&connstr, "CONNECT %s:%s HTTP/1.1\r\n"
usr.bin/ftp/fetch.c
1747
if (l == -1)
usr.bin/ftp/fetch.c
1753
if (write(socket, connstr, l) != l)
usr.bin/ftp/util.c
794
int l = strlen(action);
usr.bin/ftp/util.c
797
if (l < 7)
usr.bin/ftp/util.c
798
l = 7;
usr.bin/ftp/util.c
799
else if (l > 12) {
usr.bin/ftp/util.c
800
l = 12;
usr.bin/ftp/util.c
804
snprintf(buf, sizeof(buf), "\r%-*.*s%s ", l, l, action,
usr.bin/ftp/util.c
806
overhead += l + 1;
usr.bin/ftp/util.c
811
int l = strlen(title);
usr.bin/ftp/util.c
814
if (l < 12)
usr.bin/ftp/util.c
815
l = 12;
usr.bin/ftp/util.c
816
else if (l > 25) {
usr.bin/ftp/util.c
817
l = 22;
usr.bin/ftp/util.c
822
"%-*.*s%s %3d%% ", l, l, title,
usr.bin/ftp/util.c
824
overhead += l + 1;
usr.bin/getcap/getcap.c
124
long l;
usr.bin/getcap/getcap.c
142
if (cgetnum(buf, cap, &l) == -1)
usr.bin/getcap/getcap.c
145
useprefix ? ": " : "", l);
usr.bin/grep/file.c
180
grep_fgetln(file_t *f, size_t *l)
usr.bin/grep/file.c
184
if ((*l = getline(&lnbuf, &lnbufsize, f->f)) == -1) {
usr.bin/grep/file.c
193
return mmfgetln(f->mmf, l);
usr.bin/grep/file.c
197
return gzfgetln(f->gzf, l);
usr.bin/grep/grep.c
252
long l;
usr.bin/grep/grep.c
301
l = strtonum(optarg, 1, INT_MAX, &errstr);
usr.bin/grep/grep.c
305
Aflag = (int)l;
usr.bin/grep/grep.c
307
Bflag = (int)l;
usr.bin/grep/grep.c
313
l = strtonum(optarg, 1, INT_MAX, &errstr);
usr.bin/grep/grep.c
316
Aflag = Bflag = (int)l;
usr.bin/grep/grep.h
113
char *mmfgetln(mmf_t *mmf, size_t *l);
usr.bin/grep/grep.h
122
char *grep_fgetln(file_t *f, size_t *l);
usr.bin/grep/mmfile.c
75
mmfgetln(mmf_t *mmf, size_t *l)
usr.bin/grep/mmfile.c
85
*l = mmf->ptr - p;
usr.bin/grep/util.c
197
procline(str_t *l, int nottext)
usr.bin/grep/util.c
205
if (l->len > SSIZE_MAX) {
usr.bin/grep/util.c
226
r = grep_search(&fg_pattern[i], l->dat + offset,
usr.bin/grep/util.c
227
l->len - offset, &pmatch, flags);
usr.bin/grep/util.c
235
pmatch.rm_eo = l->len;
usr.bin/grep/util.c
236
r = regexec(&r_pattern[i], l->dat, 1, &pmatch, flags);
usr.bin/grep/util.c
239
if (pmatch.rm_so != 0 || pmatch.rm_eo != l->len)
usr.bin/grep/util.c
274
printline(l, ':', oflag ? &pmatch : NULL);
usr.bin/grep/util.c
276
printline(l, '-', oflag ? &pmatch : NULL);
usr.bin/grep/util.c
497
#define wmatch(d, l, s, e) \
usr.bin/grep/util.c
498
((s == 0 || !isword(d[s-1])) && (e == l || !isword(d[e])) && \
usr.bin/grep/util.c
51
static int procline(str_t *l, int);
usr.bin/kdump/kdump.c
1451
size_t l;
usr.bin/kdump/kdump.c
1456
l = strnlen(ptr, len);
usr.bin/kdump/kdump.c
1459
showbufc(col, (unsigned char *)ptr, l, VIS_DQ|VIS_TAB|VIS_NL);
usr.bin/kdump/kdump.c
1460
if (l == len) {
usr.bin/kdump/kdump.c
1464
len -= l + 1;
usr.bin/kdump/kdump.c
1465
ptr += l + 1;
usr.bin/m4/gnum4.c
476
size_t l = strlen(argv[3]);
usr.bin/m4/gnum4.c
480
(l > 0 && argv[3][l-1] == '$'))
usr.bin/m4/gnum4.c
538
size_t l;
usr.bin/m4/gnum4.c
604
l = strlen(thisarg);
usr.bin/m4/gnum4.c
605
if (l > extra)
usr.bin/m4/gnum4.c
606
l = extra;
usr.bin/m4/gnum4.c
608
while (l < width--)
usr.bin/m4/gnum4.c
611
addchars(thisarg, l);
usr.bin/m4/gnum4.c
613
while (l < width--)
usr.bin/m4/main.c
334
int t, l;
usr.bin/m4/main.c
350
l = gpbc();
usr.bin/m4/main.c
351
if (LOOK_AHEAD(l,rquote)) {
usr.bin/m4/main.c
354
} else if (LOOK_AHEAD(l,lquote)) {
usr.bin/m4/main.c
357
} else if (l == EOF) {
usr.bin/m4/main.c
367
reallyputchar(l);
usr.bin/m4/main.c
369
CHRSAVE(l);
usr.bin/m4/main.c
390
pushback(l = gpbc());
usr.bin/m4/main.c
391
if (p == NULL || (l != LPAREN &&
usr.bin/m4/main.c
410
if (l != LPAREN && PARLEV == 0) {
usr.bin/m4/main.c
446
while (isspace(l = gpbc())) /* skip blank, tab, nl.. */
usr.bin/m4/main.c
448
chrsave(l);
usr.bin/m4/main.c
449
pushback(l);
usr.bin/m4/main.c
474
while (isspace(l = gpbc()))
usr.bin/m4/main.c
476
pushback(l);
usr.bin/mail/cmd2.c
438
igcomp(const void *l, const void *r)
usr.bin/mail/cmd2.c
441
return(strcmp(*(char **)l, *(char **)r));
usr.bin/make/arch.c
608
ArchSVR4Entry(struct SVR4namelist *l, const char *name, size_t size, FILE *arch)
usr.bin/make/arch.c
622
if (l->fnametab != NULL) {
usr.bin/make/arch.c
628
l->fnametab = emalloc(size);
usr.bin/make/arch.c
629
l->fnamesize = size;
usr.bin/make/arch.c
631
if (fread(l->fnametab, size, 1, arch) != 1) {
usr.bin/make/arch.c
637
eptr = l->fnametab + size;
usr.bin/make/arch.c
638
for (entry = 0, ptr = l->fnametab; ptr < eptr; ptr++)
usr.bin/make/arch.c
666
if (entry >= l->fnamesize) {
usr.bin/make/arch.c
669
name, l->fnamesize);
usr.bin/make/arch.c
674
printf("Replaced /%s with %s\n", name, l->fnametab + entry);
usr.bin/make/arch.c
676
return l->fnametab + entry;
usr.bin/make/cond.c
852
Token l, o;
usr.bin/make/cond.c
854
l = CondT(doEval);
usr.bin/make/cond.c
855
if (l != Err) {
usr.bin/make/cond.c
865
if (l == True)
usr.bin/make/cond.c
866
l = CondF(doEval);
usr.bin/make/cond.c
873
return l;
usr.bin/make/cond.c
892
Token l, o;
usr.bin/make/cond.c
894
l = CondF(doEval);
usr.bin/make/cond.c
895
if (l != Err) {
usr.bin/make/cond.c
906
if (l == False)
usr.bin/make/cond.c
907
l = CondE(doEval);
usr.bin/make/cond.c
914
return l;
usr.bin/make/dir.h
65
#define Dir_AddDir(l, n) Dir_AddDiri(l, n, NULL)
usr.bin/make/enginechoice.c
48
engine_run_list(Lst l, bool *has_errors, bool *out_of_date)
usr.bin/make/enginechoice.c
50
engine->run_list(l, has_errors, out_of_date);
usr.bin/make/error.c
174
Location l;
usr.bin/make/error.c
177
Parse_FillLocation(&l);
usr.bin/make/error.c
178
ParseVErrorInternal(&l, type, fmt, ap);
usr.bin/make/garray.h
100
#define Array_Every(l, func) \
usr.bin/make/garray.h
103
for (i = 0; i < (l)->n; i++) \
usr.bin/make/garray.h
104
(func)((l)->a[i]); \
usr.bin/make/garray.h
107
#define Array_Init(l, sz) \
usr.bin/make/garray.h
109
(l)->size = (sz); \
usr.bin/make/garray.h
110
(l)->n = 0; \
usr.bin/make/garray.h
111
(l)->a = ereallocarray(NULL, (l)->size, sizeof(GNode *)); \
usr.bin/make/garray.h
114
#define Array_Reset(l) \
usr.bin/make/garray.h
116
(l)->n = 0; \
usr.bin/make/garray.h
119
#define Array_IsEmpty(l) ((l)->n == 0)
usr.bin/make/garray.h
51
#define Array_AtEnd(l, gn) \
usr.bin/make/garray.h
53
if ((l)->n >= (l)->size) { \
usr.bin/make/garray.h
54
(l)->size *= 2; \
usr.bin/make/garray.h
55
(l)->a = ereallocarray((l)->a, \
usr.bin/make/garray.h
56
(l)->size, sizeof(struct GNode *)); \
usr.bin/make/garray.h
59
(l)->a[(l)->n++] = (gn); \
usr.bin/make/garray.h
62
#define Array_Push(l, gn) Array_AtEnd(l, gn)
usr.bin/make/garray.h
64
#define Array_Pop(l) \
usr.bin/make/garray.h
65
((l)->n > 0 ? (l)->a[--(l)->n] : NULL)
usr.bin/make/garray.h
67
#define Array_PushNew(l, gn) \
usr.bin/make/garray.h
70
for (i = 0; i < (l)->n; i++) \
usr.bin/make/garray.h
71
if ((l)->a[i] == (gn)) \
usr.bin/make/garray.h
73
if (i == (l)->n) \
usr.bin/make/garray.h
74
Array_Push(l, gn); \
usr.bin/make/garray.h
77
#define Array_Find(l, func, v) \
usr.bin/make/garray.h
80
for (i = 0; i < (l)->n; i++) \
usr.bin/make/garray.h
81
if ((func)((l)->a[i], (v)) == 0)\
usr.bin/make/garray.h
85
#define Array_FindP(l, func, v) \
usr.bin/make/garray.h
88
for (i = 0; i < (l)->n; i++) \
usr.bin/make/garray.h
89
if ((func)(&((l)->a[i]), (v)) == 0) \
usr.bin/make/garray.h
93
#define Array_ForEach(l, func, v) \
usr.bin/make/garray.h
96
for (i = 0; i < (l)->n; i++) \
usr.bin/make/garray.h
97
(func)((l)->a[i], (v)); \
usr.bin/make/lst.h
155
#define Lst_First(l) ((l)->firstPtr)
usr.bin/make/lst.h
156
#define Lst_Last(l) ((l)->lastPtr)
usr.bin/make/lst.h
157
#define Lst_ForEach(l, proc, d) Lst_ForEachFrom(Lst_First(l), proc, d)
usr.bin/make/lst.h
158
#define Lst_Find(l, cProc, d) Lst_FindFrom(Lst_First(l), cProc, d)
usr.bin/make/lst.h
163
Lst_FindConst(Lst l, FindProcConst cProc, const void *d)
usr.bin/make/lst.h
165
return Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d);
usr.bin/make/lst.h
79
#define Lst_Init(l) (l)->firstPtr = (l)->lastPtr = NULL
usr.bin/make/lst.h
81
#define Static_Lst_Init(l)
usr.bin/make/lst.h
93
#define Lst_IsEmpty(l) ((l)->firstPtr == NULL)
usr.bin/make/lst.lib/lst.h
150
#define Lst_First(l) ((l)->firstPtr)
usr.bin/make/lst.lib/lst.h
151
#define Lst_Last(l) ((l)->lastPtr)
usr.bin/make/lst.lib/lst.h
152
#define Lst_ForEach(l, proc, d) Lst_ForEachFrom(Lst_First(l), proc, d)
usr.bin/make/lst.lib/lst.h
153
#define Lst_Find(l, cProc, d) Lst_FindFrom(Lst_First(l), cProc, d)
usr.bin/make/lst.lib/lst.h
158
Lst_FindConst(Lst l, FindProcConst cProc, const void *d)
usr.bin/make/lst.lib/lst.h
160
return Lst_FindFrom(Lst_First(l), (FindProc)cProc, (void *)d);
usr.bin/make/lst.lib/lst.h
79
#define Lst_Init(l) (l)->firstPtr = (l)->lastPtr = NULL
usr.bin/make/lst.lib/lst.h
81
#define Static_Lst_Init(l)
usr.bin/make/lst.lib/lst.h
88
#define Lst_IsEmpty(l) ((l)->firstPtr == NULL)
usr.bin/make/lst.lib/lstAddNew.c
39
Lst_AddNew(Lst l, void *d)
usr.bin/make/lst.lib/lstAddNew.c
41
if (Lst_Member(l, d) != NULL)
usr.bin/make/lst.lib/lstAddNew.c
44
Lst_AtEnd(l, d);
usr.bin/make/lst.lib/lstAppend.c
60
Lst_Append(Lst l, LstNode after, void *d)
usr.bin/make/lst.lib/lstAppend.c
74
if (after == l->lastPtr)
usr.bin/make/lst.lib/lstAppend.c
75
l->lastPtr = nLNode;
usr.bin/make/lst.lib/lstAppend.c
79
Lst_AtEnd(Lst l, void *d)
usr.bin/make/lst.lib/lstAppend.c
86
ln->prevPtr = l->lastPtr;
usr.bin/make/lst.lib/lstAppend.c
88
if (l->lastPtr == NULL)
usr.bin/make/lst.lib/lstAppend.c
89
l->firstPtr = ln;
usr.bin/make/lst.lib/lstAppend.c
91
l->lastPtr->nextPtr = ln;
usr.bin/make/lst.lib/lstAppend.c
92
l->lastPtr = ln;
usr.bin/make/lst.lib/lstDeQueue.c
57
Lst_DeQueue(Lst l)
usr.bin/make/lst.lib/lstDeQueue.c
62
tln = l->firstPtr;
usr.bin/make/lst.lib/lstDeQueue.c
67
l->firstPtr = tln->nextPtr;
usr.bin/make/lst.lib/lstDeQueue.c
68
if (l->firstPtr)
usr.bin/make/lst.lib/lstDeQueue.c
69
l->firstPtr->prevPtr = NULL;
usr.bin/make/lst.lib/lstDeQueue.c
71
l->lastPtr = NULL;
usr.bin/make/lst.lib/lstDestroy.c
57
Lst_Destroy(Lst l, SimpleProc freeProc)
usr.bin/make/lst.lib/lstDestroy.c
63
for (ln = l->firstPtr; ln != NULL; ln = tln) {
usr.bin/make/lst.lib/lstDestroy.c
69
for (ln = l->firstPtr; ln != NULL; ln = tln) {
usr.bin/make/lst.lib/lstDupl.c
59
Lst_Clone(Lst nl, Lst l, DuplicateProc copyProc)
usr.bin/make/lst.lib/lstDupl.c
65
for (ln = l->firstPtr; ln != NULL; ln = ln->nextPtr) {
usr.bin/make/lst.lib/lstForEachFrom.c
66
Lst_Every(Lst l, SimpleProc proc)
usr.bin/make/lst.lib/lstForEachFrom.c
70
for (tln = l->firstPtr; tln != NULL; tln = tln->nextPtr)
usr.bin/make/lst.lib/lstInit.c
51
Lst_Init(Lst l)
usr.bin/make/lst.lib/lstInit.c
53
l->firstPtr = NULL;
usr.bin/make/lst.lib/lstInit.c
54
l->lastPtr = NULL;
usr.bin/make/lst.lib/lstInsert.c
100
if (l->firstPtr == NULL)
usr.bin/make/lst.lib/lstInsert.c
101
l->lastPtr = ln;
usr.bin/make/lst.lib/lstInsert.c
103
l->firstPtr->prevPtr = ln;
usr.bin/make/lst.lib/lstInsert.c
104
l->firstPtr = ln;
usr.bin/make/lst.lib/lstInsert.c
59
Lst_Insert(Lst l, LstNode before, void *d)
usr.bin/make/lst.lib/lstInsert.c
64
if (before == NULL && !Lst_IsEmpty(l))
usr.bin/make/lst.lib/lstInsert.c
67
if (before != NULL && Lst_IsEmpty(l))
usr.bin/make/lst.lib/lstInsert.c
76
l->firstPtr = l->lastPtr = nLNode;
usr.bin/make/lst.lib/lstInsert.c
85
if (before == l->firstPtr)
usr.bin/make/lst.lib/lstInsert.c
86
l->firstPtr = nLNode;
usr.bin/make/lst.lib/lstInsert.c
91
Lst_AtFront(Lst l, void *d)
usr.bin/make/lst.lib/lstInsert.c
98
ln->nextPtr = l->firstPtr;
usr.bin/make/lst.lib/lstMember.c
45
Lst_Member(Lst l, void *d)
usr.bin/make/lst.lib/lstMember.c
49
for (lNode = l->firstPtr; lNode != NULL; lNode = lNode->nextPtr)
usr.bin/make/lst.lib/lstRemove.c
58
Lst_Remove(Lst l, LstNode ln)
usr.bin/make/lst.lib/lstRemove.c
71
if (l->firstPtr == ln)
usr.bin/make/lst.lib/lstRemove.c
72
l->firstPtr = ln->nextPtr;
usr.bin/make/lst.lib/lstRemove.c
73
if (l->lastPtr == ln)
usr.bin/make/lst.lib/lstRemove.c
74
l->lastPtr = ln->prevPtr;
usr.bin/make/lst.lib/lstRequeue.c
33
Lst_Requeue(Lst l, LstNode ln)
usr.bin/make/lst.lib/lstRequeue.c
37
if (l->firstPtr == ln)
usr.bin/make/lst.lib/lstRequeue.c
45
if (l->lastPtr == ln)
usr.bin/make/lst.lib/lstRequeue.c
46
l->lastPtr = ln->prevPtr;
usr.bin/make/lst.lib/lstRequeue.c
49
ln->nextPtr = l->firstPtr;
usr.bin/make/lst.lib/lstRequeue.c
51
l->firstPtr->prevPtr = ln;
usr.bin/make/lst.lib/lstRequeue.c
52
l->firstPtr = ln;
usr.bin/make/main.c
444
add_dirpath(Lst l, const char *n)
usr.bin/make/main.c
452
Dir_AddDiri(l, start, cp);
usr.bin/make/main.c
634
LIST l;
usr.bin/make/main.c
636
Lst_Init(&l);
usr.bin/make/main.c
637
Lst_AtEnd(&l, gn);
usr.bin/make/main.c
638
engine_run_list(&l, has_errors, out_of_date);
usr.bin/make/main.c
639
Lst_Destroy(&l, NOFREE);
usr.bin/make/make.c
616
print_unlink_cycle(struct growableArray *l, GNode *c)
usr.bin/make/make.c
624
for (i = 0; i != l->n; i++) {
usr.bin/make/make.c
625
gn = l->a[i];
usr.bin/make/make.c
669
find_cycle(Lst l, struct growableArray *cycle)
usr.bin/make/make.c
673
for (ln = Lst_First(l); ln != NULL; ln = Lst_Adv(ln)) {
usr.bin/make/suff.c
138
Lst l;
usr.bin/make/suff.c
299
SuffInsert(Lst l, Suff *s)
usr.bin/make/suff.c
304
for (ln = Lst_First(l); ln != NULL; ln = Lst_Adv(ln)) {
usr.bin/make/suff.c
315
Lst_AtEnd(l, s);
usr.bin/make/suff.c
319
Lst_Insert(l, ln, s);
usr.bin/make/suff.c
666
Lst_AtEnd(ls->l, s2);
usr.bin/make/suff.c
670
printf("2 add %x %x to %x:", targ, s2, ls->l);
usr.bin/make/suff.c
671
Lst_Every(ls->l, PrintAddr);
usr.bin/make/suff.c
688
Lst l, /* list to which to add the new level */
usr.bin/make/suff.c
694
ls.l = l;
usr.bin/make/suff.c
708
SuffRemoveSrc(Lst l)
usr.bin/make/suff.c
714
printf("cleaning %lx: ", (unsigned long)l);
usr.bin/make/suff.c
715
Lst_Every(l, PrintAddr);
usr.bin/make/suff.c
720
for (ln = Lst_First(l); ln != NULL; ln = Lst_Adv(ln)) {
usr.bin/make/suff.c
735
printf("free: [l=%x] p=%x %d\n", l, s, s->children);
usr.bin/make/suff.c
738
Lst_Remove(l, ln);
usr.bin/make/suff.c
744
printf("keep: [l=%x] p=%x %d: ", l, s, s->children);
usr.bin/make/suff.c
967
find_suffix_as_suffix(Lst l, const char *b, const char *e)
usr.bin/make/suff.c
972
for (ln = Lst_First(l); ln != NULL; ln = Lst_Adv(ln)) {
usr.bin/make/targequiv.c
370
Lst l = find_suffix_path(a);
usr.bin/make/targequiv.c
373
for (ln = Lst_First(l); ln != NULL; ln = Lst_Adv(ln)) {
usr.bin/make/var.c
1187
struct LoopVar *l;
usr.bin/make/var.c
1190
l = emalloc(sizeof(struct LoopVar));
usr.bin/make/var.c
1198
l->me = find_global_var_without_env(name, ename, k);
usr.bin/make/var.c
1199
l->old = *(l->me);
usr.bin/make/var.c
1200
l->me->flags = VAR_SEEN_ENV | VAR_DUMMY;
usr.bin/make/var.c
1201
return l;
usr.bin/make/var.c
1211
Var_DeleteLoopVar(struct LoopVar *l)
usr.bin/make/var.c
1213
if ((l->me->flags & VAR_DUMMY) == 0)
usr.bin/make/var.c
1214
Buf_Destroy(&(l->me->val));
usr.bin/make/var.c
1215
*(l->me) = l->old;
usr.bin/make/var.c
1216
free(l);
usr.bin/make/var.c
1222
struct LoopVar *l, /* Handle */
usr.bin/make/var.c
1225
const char *var = l->me->name;
usr.bin/make/var.c
1227
var_set_value(l->me, val);
usr.bin/mg/echo.c
942
eputl(long l, int r)
usr.bin/mg/echo.c
946
if (l < 0) {
usr.bin/mg/echo.c
948
l = -l;
usr.bin/mg/echo.c
950
if ((q = l / r) != 0)
usr.bin/mg/echo.c
952
eputc((int)(l % r) + '0');
usr.bin/mg/tags.c
262
char *l;
usr.bin/mg/tags.c
282
while ((l = fparseln(fd, NULL, NULL, "\\\\\0",
usr.bin/mg/tags.c
284
if (addctag(l) == FALSE) {
usr.bin/mg/tags.c
343
char *l, *c;
usr.bin/mg/tags.c
351
if ((l = strchr(s, '\t')) == NULL)
usr.bin/mg/tags.c
353
*l++ = '\0';
usr.bin/mg/tags.c
354
t->fname = l;
usr.bin/mg/tags.c
355
if ((l = strchr(l, '\t')) == NULL)
usr.bin/mg/tags.c
357
*l++ = '\0';
usr.bin/mg/tags.c
358
if (*l == '\0')
usr.bin/mg/tags.c
366
if ((c = strstr(l, ";\"")) != NULL)
usr.bin/mg/tags.c
369
t->pat = strip(l, strlen(l));
usr.bin/newsyslog/newsyslog.c
1245
long l;
usr.bin/newsyslog/newsyslog.c
1270
l = strtol(s, &t, 10);
usr.bin/newsyslog/newsyslog.c
1271
if (l < 0 || l > 23)
usr.bin/newsyslog/newsyslog.c
1273
tm.tm_hour = l;
usr.bin/newsyslog/newsyslog.c
1281
l = strtol(s, &t, 10);
usr.bin/newsyslog/newsyslog.c
1282
if (l < 0 || l > 6)
usr.bin/newsyslog/newsyslog.c
1284
if (l != tm.tm_wday) {
usr.bin/newsyslog/newsyslog.c
1287
if (l < tm.tm_wday) {
usr.bin/newsyslog/newsyslog.c
1289
save += (l + 1);
usr.bin/newsyslog/newsyslog.c
1291
save = l - tm.tm_wday;
usr.bin/newsyslog/newsyslog.c
1313
l = strtol(s, &t, 10);
usr.bin/newsyslog/newsyslog.c
1314
if (l < 1 || l > 31)
usr.bin/newsyslog/newsyslog.c
1317
if (l > nd)
usr.bin/newsyslog/newsyslog.c
1319
if (l < tm.tm_mday)
usr.bin/newsyslog/newsyslog.c
1321
tm.tm_mday = l;
usr.bin/newsyslog/newsyslog.c
406
size_t l;
usr.bin/newsyslog/newsyslog.c
413
l = strftime(daytime, sizeof(daytime), "%FT%T", tm);
usr.bin/newsyslog/newsyslog.c
414
snprintf(daytime + l, sizeof(daytime) - l, ".%03ldZ",
usr.bin/newsyslog/newsyslog.c
479
long l;
usr.bin/newsyslog/newsyslog.c
559
l = strtol(q, &ep, 8);
usr.bin/newsyslog/newsyslog.c
560
if (*ep != '\0' || l < 0 || l > ALLPERMS) {
usr.bin/newsyslog/newsyslog.c
566
working->permissions = (mode_t)l;
usr.bin/newsyslog/newsyslog.c
570
l = strtol(q, &ep, 10);
usr.bin/newsyslog/newsyslog.c
571
if (*ep != '\0' || l < 0 || l >= INT_MAX) {
usr.bin/newsyslog/newsyslog.c
577
working->numlogs = (int)l;
usr.bin/newsyslog/newsyslog.c
597
l = strtol(q, &ep, 10);
usr.bin/newsyslog/newsyslog.c
598
if (l < 0 || l >= INT_MAX) {
usr.bin/newsyslog/newsyslog.c
604
working->hours = (int)l;
usr.bin/openssl/certhash.c
252
char *l, *p, *ep;
usr.bin/openssl/certhash.c
255
if ((l = strdup(linkname)) == NULL)
usr.bin/openssl/certhash.c
257
if ((p = strchr(l, '.')) == NULL)
usr.bin/openssl/certhash.c
267
val = strtoll(l, &ep, 16);
usr.bin/openssl/certhash.c
268
if (l[0] == '\0' || *ep != '\0')
usr.bin/openssl/certhash.c
294
free(l);
usr.bin/openssl/pkeyutl.c
343
size_t l = (size_t) buf_inlen;
usr.bin/openssl/pkeyutl.c
344
for (i = 0; i < l / 2; i++) {
usr.bin/openssl/pkeyutl.c
346
buf_in[i] = buf_in[l - 1 - i];
usr.bin/openssl/pkeyutl.c
347
buf_in[l - 1 - i] = ctmp;
usr.bin/openssl/s_server.c
1476
unsigned long l;
usr.bin/openssl/s_server.c
1679
l = k = 0;
usr.bin/openssl/s_server.c
1691
k = SSL_write(con, &(buf[l]), (unsigned int) i);
usr.bin/openssl/s_server.c
1714
l += k;
usr.bin/patch/common.h
51
#define strnNE(s1,s2,l) (strncmp(s1, s2, l))
usr.bin/patch/common.h
52
#define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
usr.bin/rcs/diff.c
527
int i, k, y, j, l;
usr.bin/rcs/diff.c
551
l = search(c, k, y);
usr.bin/rcs/diff.c
552
if (l != oldl + 1)
usr.bin/rcs/diff.c
553
oldc = c[l - 1];
usr.bin/rcs/diff.c
554
if (l <= k) {
usr.bin/rcs/diff.c
555
if (clist[c[l]].y <= y)
usr.bin/rcs/diff.c
557
tc = c[l];
usr.bin/rcs/diff.c
558
c[l] = newcand(i, y, oldc);
usr.bin/rcs/diff.c
560
oldl = l;
usr.bin/rcs/diff.c
563
c[l] = newcand(i, y, oldc);
usr.bin/rcs/diff.c
591
int i, j, l, t;
usr.bin/rcs/diff.c
598
l = (i + j) / 2;
usr.bin/rcs/diff.c
599
if (l <= i)
usr.bin/rcs/diff.c
601
t = clist[c[l]].y;
usr.bin/rcs/diff.c
603
j = l;
usr.bin/rcs/diff.c
605
i = l;
usr.bin/rcs/diff.c
607
return (l);
usr.bin/rcs/diff.c
609
return (l + 1);
usr.bin/rcs/diff.c
764
unsort(struct line *f, int l, int *b)
usr.bin/rcs/diff.c
768
a = xcalloc(l + 1, sizeof(*a));
usr.bin/rcs/diff.c
769
for (i = 1; i <= l; i++)
usr.bin/rcs/diff.c
771
for (i = 1; i <= l; i++)
usr.bin/rdist/docmd.c
196
int l;
usr.bin/rdist/docmd.c
203
l = strlen(cmd->c_name);
usr.bin/rdist/docmd.c
204
if (l <= 0)
usr.bin/rdist/docmd.c
206
if (cmd->c_name[l-1] == '+') {
usr.bin/rdist/docmd.c
208
cmd->c_name[l-1] = CNULL;
usr.bin/rdist/docmd.c
570
struct linkbuf *nextl, *l;
usr.bin/rdist/docmd.c
572
for (l = ihead; l != NULL; freelinkinfo(l), l = nextl) {
usr.bin/rdist/docmd.c
573
nextl = l->nextp;
usr.bin/rdist/docmd.c
575
l->count == 0)
usr.bin/rdist/docmd.c
578
l->pathname, abs(l->count),
usr.bin/rdist/docmd.c
579
(l->count > 0) ? "missing" : "extra",
usr.bin/rdist/docmd.c
580
(l->count == 1) ? "" : "s");
usr.bin/rpcgen/rpc_clntout.c
102
decl_list *l;
usr.bin/rpcgen/rpc_clntout.c
127
for (l = proc->args.decls; l != NULL; l = l->next)
usr.bin/rpcgen/rpc_clntout.c
128
fprintf(fout, "%s, ", l->decl.name);
usr.bin/rpcgen/rpc_clntout.c
130
for (l = proc->args.decls; l != NULL; l = l->next)
usr.bin/rpcgen/rpc_clntout.c
131
pdeclaration(proc->args.argname, &l->decl, 1, ";\n");
usr.bin/rpcgen/rpc_clntout.c
134
for (l = proc->args.decls; l != NULL; l = l->next)
usr.bin/rpcgen/rpc_clntout.c
135
pdeclaration(proc->args.argname, &l->decl, 0, ", ");
usr.bin/rpcgen/rpc_clntout.c
158
decl_list *l;
usr.bin/rpcgen/rpc_clntout.c
188
for (l = proc->args.decls; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_clntout.c
190
l->decl.name, l->decl.name);
usr.bin/rpcgen/rpc_clntout.c
54
list *l;
usr.bin/rpcgen/rpc_clntout.c
61
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_clntout.c
62
def = (definition *) l->val;
usr.bin/rpcgen/rpc_hout.c
150
decl_list *l;
usr.bin/rpcgen/rpc_hout.c
163
for (l = plist->args.decls;
usr.bin/rpcgen/rpc_hout.c
164
l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_hout.c
165
pdeclaration(name, &l->decl, 1, ";\n");
usr.bin/rpcgen/rpc_hout.c
180
decl_list *l;
usr.bin/rpcgen/rpc_hout.c
183
for (l = def->def.st.decls; l != NULL; l = l->next)
usr.bin/rpcgen/rpc_hout.c
184
pdeclaration(name, &l->decl, 1, ";\n");
usr.bin/rpcgen/rpc_hout.c
193
case_list *l;
usr.bin/rpcgen/rpc_hout.c
205
for (l = def->def.un.cases; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_hout.c
206
if (l->contflag == 0)
usr.bin/rpcgen/rpc_hout.c
207
pdeclaration(name, &l->case_decl, 2, ";\n");
usr.bin/rpcgen/rpc_hout.c
359
enumval_list *l;
usr.bin/rpcgen/rpc_hout.c
364
for (l = def->def.en.vals; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_hout.c
365
fprintf(fout, "\t%s", l->name);
usr.bin/rpcgen/rpc_hout.c
366
if (l->assignment) {
usr.bin/rpcgen/rpc_hout.c
367
fprintf(fout, " = %s", l->assignment);
usr.bin/rpcgen/rpc_hout.c
368
last = l->assignment;
usr.bin/rpcgen/rpc_hout.c
377
if (l->next)
usr.bin/rpcgen/rpc_hout.c
494
list *l;
usr.bin/rpcgen/rpc_hout.c
497
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_hout.c
498
def = (definition *) l->val;
usr.bin/rpcgen/rpc_main.c
477
list *l;
usr.bin/rpcgen/rpc_main.c
504
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_main.c
505
print_funcdef(l->val);
usr.bin/rpcgen/rpc_sample.c
113
for (l = proc->args.decls; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_sample.c
115
ptype(l->decl.prefix, l->decl.type, 1);
usr.bin/rpcgen/rpc_sample.c
118
fprintf(fout, "_%s;\n", l->decl.name);
usr.bin/rpcgen/rpc_sample.c
147
for (l = proc->args.decls; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_sample.c
149
fprintf(fout, "_%s, ", l->decl.name);
usr.bin/rpcgen/rpc_sample.c
220
list *l;
usr.bin/rpcgen/rpc_sample.c
236
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_sample.c
237
def = l->val;
usr.bin/rpcgen/rpc_sample.c
86
decl_list *l;
usr.bin/rpcgen/rpc_svcout.c
151
list *l;
usr.bin/rpcgen/rpc_svcout.c
174
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
175
def = (definition *) l->val;
usr.bin/rpcgen/rpc_svcout.c
205
list *l;
usr.bin/rpcgen/rpc_svcout.c
209
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
210
def = (definition *) l->val;
usr.bin/rpcgen/rpc_svcout.c
263
list *l;
usr.bin/rpcgen/rpc_svcout.c
266
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
267
def = (definition *) l->val;
usr.bin/rpcgen/rpc_svcout.c
273
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
274
def = (definition *) l->val;
usr.bin/rpcgen/rpc_svcout.c
290
decl_list *l;
usr.bin/rpcgen/rpc_svcout.c
332
for (l = proc->args.decls; l != NULL; l = l->next)
usr.bin/rpcgen/rpc_svcout.c
333
fprintf(fout, "argp->%s, ", l->decl.name);
usr.bin/rpcgen/rpc_svcout.c
569
list *l;
usr.bin/rpcgen/rpc_svcout.c
571
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
572
def = (definition *) l->val;
usr.bin/rpcgen/rpc_svcout.c
717
list *l;
usr.bin/rpcgen/rpc_svcout.c
765
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
766
def = (definition *) l->val;
usr.bin/rpcgen/rpc_svcout.c
874
list *l;
usr.bin/rpcgen/rpc_svcout.c
930
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_svcout.c
931
def = (definition *) l->val;
usr.bin/rpcgen/rpc_tblout.c
66
list *l;
usr.bin/rpcgen/rpc_tblout.c
69
for (l = defined; l != NULL; l = l->next) {
usr.bin/rpcgen/rpc_tblout.c
70
def = (definition *) l->val;
usr.bin/rpcgen/rpc_util.c
115
list **l;
usr.bin/rpcgen/rpc_util.c
118
for (l = lstp; *l != NULL; l = (list **) & (*l)->next)
usr.bin/rpcgen/rpc_util.c
127
*l = lst;
usr.bin/sed/compile.c
551
long l;
usr.bin/sed/compile.c
581
l = strtol(p, &p, 10);
usr.bin/sed/compile.c
582
if (l <= 0 || l >= INT_MAX)
usr.bin/sed/compile.c
585
s->n = (int)l;
usr.bin/sed/compile.c
734
a->u.l = strtoul(p, &end, 10);
usr.bin/sed/defs.h
52
u_long l; /* Line number */
usr.bin/sed/process.c
269
(a)->type == AT_LINE ? linenum == (a)->u.l : lastline()
usr.bin/sed/process.c
298
linenum >= cp->a2->u.l)
usr.bin/skeyinit/skeyinit.c
240
l = strlen(skey.seed);
usr.bin/skeyinit/skeyinit.c
246
memmove(p, p + 1, l - (p - skey.seed));
usr.bin/skeyinit/skeyinit.c
247
l--;
usr.bin/skeyinit/skeyinit.c
252
if (l > 0) {
usr.bin/skeyinit/skeyinit.c
253
lastc = skey.seed[l - 1];
usr.bin/skeyinit/skeyinit.c
258
seed[l - 1] = lastc + 1;
usr.bin/skeyinit/skeyinit.c
261
lastc == '9' && l < 16) {
usr.bin/skeyinit/skeyinit.c
264
seed[l - 1] = '0';
usr.bin/skeyinit/skeyinit.c
265
seed[l] = '0';
usr.bin/skeyinit/skeyinit.c
266
seed[l + 1] = '\0';
usr.bin/skeyinit/skeyinit.c
279
if ((l = open(filename,
usr.bin/skeyinit/skeyinit.c
282
flock(l, LOCK_EX) != 0 ||
usr.bin/skeyinit/skeyinit.c
283
(skey.keyfile = fdopen(l, "r+")) == NULL)
usr.bin/skeyinit/skeyinit.c
47
int rval, i, l, n, defaultsetup, rmkey, hexmode, enable;
usr.bin/sndiod/sndiod.c
518
struct listen *l;
usr.bin/sndiod/sndiod.c
729
for (l = listen_list; l != NULL; l = l->next) {
usr.bin/sndiod/sndiod.c
730
if (!listen_init(l))
usr.bin/sort/file.c
245
sort_list_init(struct sort_list *l)
usr.bin/sort/file.c
247
l->count = 0;
usr.bin/sort/file.c
248
l->size = 0;
usr.bin/sort/file.c
249
l->memsize = sizeof(struct sort_list);
usr.bin/sort/file.c
250
l->list = NULL;
usr.bin/sort/file.c
257
sort_list_add(struct sort_list *l, struct bwstring *str)
usr.bin/sort/file.c
259
size_t indx = l->count;
usr.bin/sort/file.c
261
if ((l->list == NULL) || (indx >= l->size)) {
usr.bin/sort/file.c
262
size_t newsize = (l->size + 1) + 1024;
usr.bin/sort/file.c
264
l->list = sort_reallocarray(l->list, newsize,
usr.bin/sort/file.c
266
l->memsize += (newsize - l->size) *
usr.bin/sort/file.c
268
l->size = newsize;
usr.bin/sort/file.c
270
l->list[indx] = sort_list_item_alloc();
usr.bin/sort/file.c
271
sort_list_item_set(l->list[indx], str);
usr.bin/sort/file.c
272
l->memsize += sort_list_item_size(l->list[indx]);
usr.bin/sort/file.c
273
l->count += 1;
usr.bin/sort/file.c
280
sort_list_clean(struct sort_list *l)
usr.bin/sort/file.c
282
if (l->list) {
usr.bin/sort/file.c
285
for (i = 0; i < l->count; i++) {
usr.bin/sort/file.c
288
item = l->list[i];
usr.bin/sort/file.c
293
l->list[i] = NULL;
usr.bin/sort/file.c
296
sort_free(l->list);
usr.bin/sort/file.c
297
l->list = NULL;
usr.bin/sort/file.c
299
l->count = 0;
usr.bin/sort/file.c
300
l->size = 0;
usr.bin/sort/file.c
301
l->memsize = sizeof(struct sort_list);
usr.bin/sort/file.c
308
sort_list_dump(struct sort_list *l, const char *fn)
usr.bin/sort/file.c
316
if (l->list) {
usr.bin/sort/file.c
320
for (i = 0; i < l->count; ++i)
usr.bin/sort/file.c
321
bwsfwrite(l->list[i]->str, f,
usr.bin/sort/file.c
326
for (i = 0; i < l->count; ++i) {
usr.bin/sort/file.c
327
item = l->list[i];
usr.bin/sort/file.h
116
void sort_list_init(struct sort_list *l);
usr.bin/sort/file.h
117
void sort_list_add(struct sort_list *l, struct bwstring *str);
usr.bin/sort/file.h
118
void sort_list_clean(struct sort_list *l);
usr.bin/sort/file.h
119
void sort_list_dump(struct sort_list *l, const char *fn);
usr.bin/ssh/addr.c
164
addr_netmask(int af, u_int l, struct xaddr *n)
usr.bin/ssh/addr.c
168
if (masklen_valid(af, l) != 0 || n == NULL)
usr.bin/ssh/addr.c
175
if (l == 0)
usr.bin/ssh/addr.c
177
n->v4.s_addr = htonl((0xffffffff << (32 - l)) & 0xffffffff);
usr.bin/ssh/addr.c
181
for (i = 0; i < 4 && l >= 32; i++, l -= 32)
usr.bin/ssh/addr.c
183
if (i < 4 && l != 0)
usr.bin/ssh/addr.c
184
n->addr32[i] = htonl((0xffffffff << (32 - l)) &
usr.bin/ssh/addr.c
193
addr_hostmask(int af, u_int l, struct xaddr *n)
usr.bin/ssh/addr.c
195
if (addr_netmask(af, l, n) == -1 || addr_invert(n) == -1)
usr.bin/ssh/addr.c
456
addr_pton_cidr(const char *p, struct xaddr *n, u_int *l)
usr.bin/ssh/addr.c
487
if (l != NULL)
usr.bin/ssh/addr.c
488
*l = masklen;
usr.bin/ssh/addr.h
43
int addr_netmask(int af, u_int l, struct xaddr *n);
usr.bin/ssh/addr.h
45
int addr_pton_cidr(const char *p, struct xaddr *n, u_int *l);
usr.bin/ssh/auth-options.c
327
size_t i, l;
usr.bin/ssh/auth-options.c
417
l = (size_t)(tmp - opt);
usr.bin/ssh/auth-options.c
418
cp[l] = '\0'; /* truncate at '=' */
usr.bin/ssh/auth-options.c
427
if (strncmp(ret->env[i], cp, l) == 0 &&
usr.bin/ssh/auth-options.c
428
ret->env[i][l] == '=')
usr.bin/ssh/auth2.c
559
size_t l = strlen(method);
usr.bin/ssh/auth2.c
563
if (strncmp(methods, method, l) != 0)
usr.bin/ssh/auth2.c
565
p = methods + l;
usr.bin/ssh/auth2.c
570
l = strlen(submethod);
usr.bin/ssh/auth2.c
572
if (strncmp(submethod, p, l))
usr.bin/ssh/auth2.c
574
p += l;
usr.bin/ssh/auth2.c
591
size_t l = strlen(method);
usr.bin/ssh/auth2.c
597
p = omethods + l;
usr.bin/ssh/authfd.c
139
size_t l, len;
usr.bin/ssh/authfd.c
166
l = len;
usr.bin/ssh/authfd.c
167
if (l > sizeof(buf))
usr.bin/ssh/authfd.c
168
l = sizeof(buf);
usr.bin/ssh/authfd.c
169
if (atomicio(read, sock, buf, l) != l)
usr.bin/ssh/authfd.c
171
if ((r = sshbuf_put(reply, buf, l)) != 0)
usr.bin/ssh/authfd.c
173
len -= l;
usr.bin/ssh/bitmap.c
166
bitmap_to_string(struct bitmap *b, void *p, size_t l)
usr.bin/ssh/bitmap.c
171
if (l < need || b->top >= b->len)
usr.bin/ssh/bitmap.c
173
if (l > need)
usr.bin/ssh/bitmap.c
174
l = need;
usr.bin/ssh/bitmap.c
178
if (k >= l)
usr.bin/ssh/bitmap.c
187
bitmap_from_string(struct bitmap *b, const void *p, size_t l)
usr.bin/ssh/bitmap.c
193
if (l > BITMAP_MAX / 8)
usr.bin/ssh/bitmap.c
195
if ((r = reserve(b, l * 8)) != 0)
usr.bin/ssh/bitmap.c
198
if (l == 0)
usr.bin/ssh/bitmap.c
200
b->top = offset = ((l + (BITMAP_BYTES - 1)) / BITMAP_BYTES) - 1;
usr.bin/ssh/bitmap.c
201
shift = ((l + (BITMAP_BYTES - 1)) % BITMAP_BYTES) * 8;
usr.bin/ssh/bitmap.c
202
for (i = 0; i < l; i++) {
usr.bin/ssh/bitmap.h
52
int bitmap_to_string(struct bitmap *b, void *p, size_t l);
usr.bin/ssh/bitmap.h
55
int bitmap_from_string(struct bitmap *b, const void *p, size_t l);
usr.bin/ssh/clientloop.c
2102
hostkeys_find(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/clientloop.c
2108
if (l->key == NULL)
usr.bin/ssh/clientloop.c
2110
if (l->status != HKF_STATUS_MATCHED) {
usr.bin/ssh/clientloop.c
2113
if (sshkey_equal(l->key, ctx->keys[i])) {
usr.bin/ssh/clientloop.c
2118
l->path, l->linenum);
usr.bin/ssh/clientloop.c
2126
if (l->marker != MRK_NONE) {
usr.bin/ssh/clientloop.c
2128
l->path, l->linenum);
usr.bin/ssh/clientloop.c
2134
if (ctx->ip_str != NULL && strchr(l->hosts, ',') != NULL) {
usr.bin/ssh/clientloop.c
2135
if ((l->match & HKF_MATCH_HOST) == 0) {
usr.bin/ssh/clientloop.c
2139
"at %s:%ld", ctx->ip_str, l->path, l->linenum);
usr.bin/ssh/clientloop.c
2141
} else if ((l->match & HKF_MATCH_IP) == 0) {
usr.bin/ssh/clientloop.c
2145
"at %s:%ld", ctx->host_str, l->path, l->linenum);
usr.bin/ssh/clientloop.c
2153
if (hostspec_is_complex(l->hosts)) {
usr.bin/ssh/clientloop.c
2155
l->path, l->linenum);
usr.bin/ssh/clientloop.c
2162
if (!sshkey_equal(l->key, ctx->keys[i]))
usr.bin/ssh/clientloop.c
2165
sshkey_ssh_name(ctx->keys[i]), l->path, l->linenum);
usr.bin/ssh/clientloop.c
2166
ctx->keys_match[i] |= l->match;
usr.bin/ssh/clientloop.c
2170
debug3_f("deprecated %s key at %s:%ld", sshkey_ssh_name(l->key),
usr.bin/ssh/clientloop.c
2171
l->path, l->linenum);
usr.bin/ssh/clientloop.c
2176
ctx->old_keys[ctx->nold++] = l->key;
usr.bin/ssh/clientloop.c
2177
l->key = NULL;
usr.bin/ssh/clientloop.c
2184
hostkeys_check_old(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/clientloop.c
2191
if (l->status == HKF_STATUS_MATCHED || l->key == NULL)
usr.bin/ssh/clientloop.c
2194
hashed = l->match & (HKF_MATCH_HOST_HASHED|HKF_MATCH_IP_HASHED);
usr.bin/ssh/clientloop.c
2196
if (!sshkey_equal(l->key, ctx->old_keys[i]))
usr.bin/ssh/clientloop.c
2199
sshkey_ssh_name(ctx->old_keys[i]), l->path, l->linenum,
usr.bin/ssh/clientloop.c
2200
hashed ? "[HASHED]" : l->hosts);
usr.bin/ssh/digest-openssl.c
144
u_int l = dlen;
usr.bin/ssh/digest-openssl.c
150
if (EVP_DigestFinal_ex(ctx->mdctx, d, &l) != 1)
usr.bin/ssh/digest-openssl.c
152
if (l != digest->digest_len) /* sanity */
usr.bin/ssh/hostfile.c
229
record_hostkey(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/hostfile.c
235
if (l->status == HKF_STATUS_INVALID) {
usr.bin/ssh/hostfile.c
238
l->path, l->linenum);
usr.bin/ssh/hostfile.c
243
l->marker == MRK_NONE ? "" :
usr.bin/ssh/hostfile.c
244
(l->marker == MRK_CA ? "ca " : "revoked "),
usr.bin/ssh/hostfile.c
245
sshkey_type(l->key), l->path, l->linenum);
usr.bin/ssh/hostfile.c
251
hostkeys->entries[hostkeys->num_entries].file = xstrdup(l->path);
usr.bin/ssh/hostfile.c
252
hostkeys->entries[hostkeys->num_entries].line = l->linenum;
usr.bin/ssh/hostfile.c
253
hostkeys->entries[hostkeys->num_entries].key = l->key;
usr.bin/ssh/hostfile.c
254
l->key = NULL; /* steal it */
usr.bin/ssh/hostfile.c
255
hostkeys->entries[hostkeys->num_entries].marker = l->marker;
usr.bin/ssh/hostfile.c
256
hostkeys->entries[hostkeys->num_entries].note = l->note;
usr.bin/ssh/hostfile.c
572
host_delete(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/hostfile.c
579
if (l->status == HKF_STATUS_MATCHED && l->marker == MRK_NONE) {
usr.bin/ssh/hostfile.c
586
if (!sshkey_equal(ctx->keys[i], l->key))
usr.bin/ssh/hostfile.c
588
ctx->match_keys[i] |= l->match;
usr.bin/ssh/hostfile.c
589
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/hostfile.c
591
sshkey_type(l->key), l->path, l->linenum);
usr.bin/ssh/hostfile.c
601
l->path, l->linenum, sshkey_type(l->key), ctx->host);
usr.bin/ssh/hostfile.c
606
if (l->status == HKF_STATUS_INVALID) {
usr.bin/ssh/hostfile.c
609
l->path, l->linenum);
usr.bin/ssh/hostfile.c
611
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/hostfile.c
67
extract_salt(const char *s, u_int l, u_char *salt, size_t salt_len)
usr.bin/ssh/hostfile.c
73
if (l < sizeof(HASH_MAGIC) - 1) {
usr.bin/ssh/hostfile.c
793
size_t linesize = 0, l;
usr.bin/ssh/hostfile.c
82
l -= sizeof(HASH_MAGIC) - 1;
usr.bin/ssh/hostfile.c
83
if ((p = memchr(s, HASH_DELIM, l)) == NULL) {
usr.bin/ssh/hostfile.c
910
l = strcspn(lineinfo.rawkey, " \t");
usr.bin/ssh/hostfile.c
911
if (l <= 1 || l >= sizeof(ktype) ||
usr.bin/ssh/hostfile.c
912
lineinfo.rawkey[l] == '\0')
usr.bin/ssh/hostfile.c
914
memcpy(ktype, lineinfo.rawkey, l);
usr.bin/ssh/hostfile.c
915
ktype[l] = '\0';
usr.bin/ssh/hostfile.c
922
if (lineinfo.keytype == KEY_UNSPEC && l < 8 &&
usr.bin/ssh/hostfile.c
923
strspn(ktype, "0123456789") == l)
usr.bin/ssh/hostfile.c
931
cp2 += l; /* Skip past key type */
usr.bin/ssh/hostfile.h
111
typedef int hostkeys_foreach_fn(struct hostkey_foreach_line *l, void *ctx);
usr.bin/ssh/misc-agent.c
228
socklen_t l = sizeof(r);
usr.bin/ssh/misc-agent.c
249
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &r, &l) == -1) {
usr.bin/ssh/misc-agent.c
54
size_t l, i;
usr.bin/ssh/misc-agent.c
56
l = ssh_digest_bytes(SSH_DIGEST_SHA512);
usr.bin/ssh/misc-agent.c
58
error_f("bad length %zu >= max %zd", len, l);
usr.bin/ssh/misc-agent.c
71
for (i = 0; i < l; i++)
usr.bin/ssh/misc.c
1568
tohex(const void *vp, size_t l)
usr.bin/ssh/misc.c
1574
if (l > 65536)
usr.bin/ssh/misc.c
1577
hl = l * 2 + 1;
usr.bin/ssh/misc.c
1579
for (i = 0; i < l; i++) {
usr.bin/ssh/misc.c
2373
size_t i, l = strlen(name);
usr.bin/ssh/misc.c
2377
if (l == 0) {
usr.bin/ssh/misc.c
2387
for (i = 0; i < l; i++) {
usr.bin/ssh/misc.c
2404
if (name[l - 1] == '.')
usr.bin/ssh/misc.c
2405
name[l - 1] = '\0';
usr.bin/ssh/misc.c
2452
size_t l;
usr.bin/ssh/misc.c
2457
l = strlen(s);
usr.bin/ssh/misc.c
2458
if (l > 1 && strcasecmp(s + l - 1, "Z") == 0) {
usr.bin/ssh/misc.c
2460
l--;
usr.bin/ssh/misc.c
2461
} else if (l > 3 && strcasecmp(s + l - 3, "UTC") == 0) {
usr.bin/ssh/misc.c
2463
l -= 3;
usr.bin/ssh/misc.c
2470
switch (l) {
usr.bin/ssh/misc.c
2668
opt_array_free2(char **array, int **iarray, u_int l)
usr.bin/ssh/misc.c
2672
if (array == NULL || l == 0)
usr.bin/ssh/misc.c
2674
for (i = 0; i < l; i++)
usr.bin/ssh/misc.h
227
void opt_array_free2(char **array, int **iarray, u_int l);
usr.bin/ssh/monitor.c
1036
char *s, *l, *ol = xstrdup(list);
usr.bin/ssh/monitor.c
1039
l = ol;
usr.bin/ssh/monitor.c
1040
for ((s = strsep(&l, ",")); s && *s != '\0'; (s = strsep(&l, ","))) {
usr.bin/ssh/packet.c
2022
sshpkt_fmt_connection_id(struct ssh *ssh, char *s, size_t l)
usr.bin/ssh/packet.c
2024
snprintf(s, l, "%.200s%s%s port %d",
usr.bin/ssh/packet.h
206
void sshpkt_fmt_connection_id(struct ssh *ssh, char *s, size_t l);
usr.bin/ssh/sftp-client.c
2985
size_t l = strlen(pathname);
usr.bin/ssh/sftp-client.c
2987
return l > 0 && pathname[l - 1] == '/';
usr.bin/ssh/sftp-glob.c
114
size_t l;
usr.bin/ssh/sftp-glob.c
143
(l = strlen(s)) > 0 && s[l-1] != '/') {
usr.bin/ssh/sftp-glob.c
146
if ((s = realloc(s, l + 2)) != NULL) {
usr.bin/ssh/sftp-glob.c
147
memcpy(s + l, "/", 2);
usr.bin/ssh/ssh-keygen.c
1115
known_hosts_hash(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/ssh-keygen.c
1119
int has_wild = l->hosts && strcspn(l->hosts, "*?!") != strlen(l->hosts);
usr.bin/ssh/ssh-keygen.c
1120
int was_hashed = l->hosts && l->hosts[0] == HASH_DELIM;
usr.bin/ssh/ssh-keygen.c
1122
switch (l->status) {
usr.bin/ssh/ssh-keygen.c
1129
if (was_hashed || has_wild || l->marker != MRK_NONE) {
usr.bin/ssh/ssh-keygen.c
1130
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/ssh-keygen.c
1133
"with wildcard: %.64s", l->path,
usr.bin/ssh/ssh-keygen.c
1134
l->linenum, l->hosts);
usr.bin/ssh/ssh-keygen.c
1142
ohosts = hosts = xstrdup(l->hosts);
usr.bin/ssh/ssh-keygen.c
1147
fprintf(ctx->out, "%s %s\n", hashed, l->rawkey);
usr.bin/ssh/ssh-keygen.c
1156
logit("%s:%lu: invalid line", l->path, l->linenum);
usr.bin/ssh/ssh-keygen.c
1159
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/ssh-keygen.c
1167
known_hosts_find_delete(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/ssh-keygen.c
1177
if (l->status == HKF_STATUS_MATCHED) {
usr.bin/ssh/ssh-keygen.c
1179
if (l->marker != MRK_NONE) {
usr.bin/ssh/ssh-keygen.c
1181
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/ssh-keygen.c
1191
ctx->host, l->linenum);
usr.bin/ssh/ssh-keygen.c
1199
l->linenum, l->marker == MRK_CA ? "CA" :
usr.bin/ssh/ssh-keygen.c
1200
(l->marker == MRK_REVOKE ? "REVOKED" : ""));
usr.bin/ssh/ssh-keygen.c
1203
known_hosts_hash(l, ctx);
usr.bin/ssh/ssh-keygen.c
1205
fp = sshkey_fingerprint(l->key, fptype, rep);
usr.bin/ssh/ssh-keygen.c
1206
ra = sshkey_fingerprint(l->key,
usr.bin/ssh/ssh-keygen.c
1211
sshkey_type(l->key), fp,
usr.bin/ssh/ssh-keygen.c
1212
l->comment[0] ? " " : "",
usr.bin/ssh/ssh-keygen.c
1213
l->comment);
usr.bin/ssh/ssh-keygen.c
1219
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/ssh-keygen.c
1224
if (l->status == HKF_STATUS_INVALID) {
usr.bin/ssh/ssh-keygen.c
1226
logit("%s:%lu: invalid line", l->path, l->linenum);
usr.bin/ssh/ssh-keygen.c
1228
fprintf(ctx->out, "%s\n", l->line);
usr.bin/ssh/ssh-pkcs11-client.c
176
u_int l, len;
usr.bin/ssh/ssh-pkcs11-client.c
192
l = len;
usr.bin/ssh/ssh-pkcs11-client.c
193
if (l > sizeof(buf))
usr.bin/ssh/ssh-pkcs11-client.c
194
l = sizeof(buf);
usr.bin/ssh/ssh-pkcs11-client.c
195
if (atomicio(read, fd, buf, l) != l) {
usr.bin/ssh/ssh-pkcs11-client.c
199
if ((r = sshbuf_put(m, buf, l)) != 0)
usr.bin/ssh/ssh-pkcs11-client.c
201
len -= l;
usr.bin/ssh/sshbuf-misc.c
209
size_t i, l;
usr.bin/ssh/sshbuf-misc.c
221
l = sshbuf_len(b);
usr.bin/ssh/sshbuf-misc.c
222
if (l <= 1 || sshbuf_ptr(b) == NULL) {
usr.bin/ssh/sshbuf-misc.c
226
if (sshbuf_ptr(b)[l - 1] != '=')
usr.bin/ssh/sshbuf-misc.c
232
l = sshbuf_len(b);
usr.bin/ssh/sshbuf-misc.c
237
for (i = 0; i < l; i++) {
usr.bin/ssh/sshbuf-misc.c
253
size_t l = sshbuf_len(buf);
usr.bin/ssh/sshbuf-misc.c
256
if (s == NULL || l >= SIZE_MAX)
usr.bin/ssh/sshbuf-misc.c
259
if (l > 0 && (p = memchr(s, '\0', l)) != NULL) {
usr.bin/ssh/sshbuf-misc.c
260
if (p != s + l - 1)
usr.bin/ssh/sshbuf-misc.c
262
l--; /* the nul is put back below */
usr.bin/ssh/sshbuf-misc.c
264
if ((r = malloc(l + 1)) == NULL)
usr.bin/ssh/sshbuf-misc.c
266
if (l > 0)
usr.bin/ssh/sshbuf-misc.c
267
memcpy(r, s, l);
usr.bin/ssh/sshbuf-misc.c
268
r[l] = '\0';
usr.bin/ssh/sshconnect.c
657
size_t l;
usr.bin/ssh/sshconnect.c
661
if ((home = getenv("HOME")) == NULL || (l = strlen(home)) == 0)
usr.bin/ssh/sshconnect.c
663
if (strncmp(path, home, l) != 0)
usr.bin/ssh/sshconnect.c
670
if (home[l - 1] != '/' && path[l] != '/')
usr.bin/ssh/sshconnect.c
672
if (path[l] == '/')
usr.bin/ssh/sshconnect.c
673
l++;
usr.bin/ssh/sshconnect.c
674
xasprintf(&ret, "~/%s", path + l);
usr.bin/ssh/sshconnect.c
702
hostkeys_find_by_key_cb(struct hostkey_foreach_line *l, void *_ctx)
usr.bin/ssh/sshconnect.c
708
if ((l->match & HKF_MATCH_HOST) != 0)
usr.bin/ssh/sshconnect.c
711
if (l->marker != MRK_NONE)
usr.bin/ssh/sshconnect.c
714
if (l->key == NULL || !sshkey_equal(ctx->key, l->key))
usr.bin/ssh/sshconnect.c
716
path = try_tilde_unexpand(l->path);
usr.bin/ssh/sshconnect.c
717
debug_f("found matching key in %s:%lu", path, l->linenum);
usr.bin/ssh/sshconnect.c
720
xasprintf(&ctx->names[ctx->nnames], "%s:%lu: %s", path, l->linenum,
usr.bin/ssh/sshconnect.c
721
strncmp(l->hosts, HASH_MAGIC, strlen(HASH_MAGIC)) == 0 ?
usr.bin/ssh/sshconnect.c
722
"[hashed name]" : l->hosts);
usr.bin/ssh/sshkey.c
1236
peek_type_nid(const char *s, size_t l, int *nid)
usr.bin/ssh/sshkey.c
1243
if (impl->name == NULL || strlen(impl->name) != l)
usr.bin/ssh/sshkey.c
1245
if (memcmp(s, impl->name, l) == 0) {
usr.bin/ssh/sshkey.c
2452
sshkey_format_cert_validity(const struct sshkey_cert *cert, char *s, size_t l)
usr.bin/ssh/sshkey.c
2459
return strlcpy(s, "forever", l);
usr.bin/ssh/sshkey.c
2473
return strlcpy(s, ret, l);
usr.bin/stat/stat.c
499
int l, small, formats, gottime, n;
usr.bin/stat/stat.c
548
l = strlen(smode);
usr.bin/stat/stat.c
549
if (smode[l - 1] == ' ')
usr.bin/stat/stat.c
550
smode[--l] = '\0';
usr.bin/stat/stat.c
691
l = readlink(file, path + 4, sizeof(path) - 4 - 1);
usr.bin/stat/stat.c
692
if (l == -1) {
usr.bin/stat/stat.c
693
l = 0;
usr.bin/stat/stat.c
696
path[l + 4] = '\0';
usr.bin/stat/stat.c
870
l = snprintf(buf, blen, lfmt, (long long)secs, nsecs);
usr.bin/stat/stat.c
871
if (l >= blen)
usr.bin/stat/stat.c
872
return (l);
usr.bin/stat/stat.c
873
for (; prec > 9 && l < blen; prec--, l++)
usr.bin/stat/stat.c
875
return (l);
usr.bin/systat/netstat.c
70
} l;
usr.bin/systat/netstat.c
85
#define nif_laddr l.nif_laddr
usr.bin/systat/netstat.c
86
#define nif_laddr6 l.nif_laddr6
usr.bin/systat/uvm.c
250
struct uvmline *l;
usr.bin/systat/uvm.c
258
l = &uvmline[i];
usr.bin/systat/uvm.c
259
print_uvmexp_field(FLD_VALUE1, FLD_NAME1, l->v1, l->ov1, l->n1);
usr.bin/systat/uvm.c
260
print_uvmexp_field(FLD_VALUE2, FLD_NAME2, l->v2, l->ov2, l->n2);
usr.bin/systat/uvm.c
261
print_uvmexp_field(FLD_VALUE3, FLD_NAME3, l->v3, l->ov3, l->n3);
usr.bin/systat/vmstat.c
233
int i, j, l;
usr.bin/systat/vmstat.c
304
l = MAXIMUM(5, strlen(dr_name[i]));
usr.bin/systat/vmstat.c
306
" %*s", l, dr_name[i]);
usr.bin/systat/vmstat.c
307
j += 1 + l;
usr.bin/systat/vmstat.c
319
#define PUTRATE(fld, l, c, w) \
usr.bin/systat/vmstat.c
322
putint((int)((float)s.fld/etime + 0.5), l, c, w); \
usr.bin/systat/vmstat.c
336
int i, l, c;
usr.bin/systat/vmstat.c
381
l = (int) ((f2 + 1.0) / 2.0) - psiz;
usr.bin/systat/vmstat.c
384
psiz += l;
usr.bin/systat/vmstat.c
385
while (l-- > 0)
usr.bin/systat/vmstat.c
442
l = MAXIMUM(5, strlen(dr_name[i]));
usr.bin/systat/vmstat.c
444
" %*s", l, dr_name[i]);
usr.bin/systat/vmstat.c
445
c += 1 + l;
usr.bin/systat/vmstat.c
449
l = DRIVESPACE - c;
usr.bin/systat/vmstat.c
451
mvprintw(DISKROW + i, DISKCOL + 5 + c, "%*s", l, "");
usr.bin/systat/vmstat.c
508
putint(int n, int l, int c, int w)
usr.bin/systat/vmstat.c
512
move(l, c);
usr.bin/systat/vmstat.c
528
putintmk(int n, int l, int c, int w)
usr.bin/systat/vmstat.c
532
move(l, c);
usr.bin/systat/vmstat.c
553
putuint64(u_int64_t n, int l, int c, int w)
usr.bin/systat/vmstat.c
557
move(l, c);
usr.bin/systat/vmstat.c
573
putfloat(double f, int l, int c, int w, int d, int nz)
usr.bin/systat/vmstat.c
577
move(l, c);
usr.bin/tail/read.c
143
char *l;
usr.bin/tail/read.c
177
if ((newp = realloc(lines[recno].l,
usr.bin/tail/read.c
180
lines[recno].l = newp;
usr.bin/tail/read.c
183
memcpy(lines[recno].l, sp, (lines[recno].len = cnt));
usr.bin/tail/read.c
198
lines[recno].l = sp;
usr.bin/tail/read.c
209
WR(lines[cnt - 1].l, lines[cnt - 1].len);
usr.bin/tail/read.c
212
WR(lines[cnt - 1].l, lines[cnt - 1].len);
usr.bin/tail/read.c
216
WR(lines[cnt].l, lines[cnt].len);
usr.bin/tail/read.c
218
WR(lines[cnt].l, lines[cnt].len);
usr.bin/tail/read.c
222
free(lines[cnt].l);
usr.bin/tail/reverse.c
165
char l[BSZ];
usr.bin/tail/reverse.c
212
for (p = tl->l, len = 0;
usr.bin/tail/reverse.c
243
for (p = tl->l + (len = tl->len) - 1, llen = 0; len--;
usr.bin/tail/reverse.c
253
WR(tr->l, tr->len);
usr.bin/tail/reverse.c
265
WR(tl->l, tl->len);
usr.bin/tail/reverse.c
269
WR(tl->l, tl->len);
usr.bin/tmux/cmd-list-buffers.c
50
struct paste_buffer **l;
usr.bin/tmux/cmd-list-buffers.c
69
l = sort_get_buffers(&n, &sort_crit);
usr.bin/tmux/cmd-list-buffers.c
72
format_defaults_paste_buffer(ft, l[i]);
usr.bin/tmux/cmd-list-clients.c
58
struct client **l;
usr.bin/tmux/cmd-list-clients.c
83
l = sort_get_clients(&n, &sort_crit);
usr.bin/tmux/cmd-list-clients.c
85
if (l[i]->session == NULL || (s != NULL && s != l[i]->session))
usr.bin/tmux/cmd-list-clients.c
90
format_defaults(ft, l[i], NULL, NULL, NULL);
usr.bin/tmux/cmd-list-keys.c
102
static struct key_binding **l = NULL;
usr.bin/tmux/cmd-list-keys.c
111
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/cmd-list-keys.c
113
memcpy(l + offset, lt, ltsz * sizeof *l);
usr.bin/tmux/cmd-list-keys.c
118
return (l);
usr.bin/tmux/cmd-list-keys.c
123
struct key_binding **l, u_int *n)
usr.bin/tmux/cmd-list-keys.c
129
key = l[i]->key & (KEYC_MASK_KEY|KEYC_MASK_MODIFIERS);
usr.bin/tmux/cmd-list-keys.c
132
if (filter_notes && l[i]->note == NULL)
usr.bin/tmux/cmd-list-keys.c
134
l[j++] = l[i];
usr.bin/tmux/cmd-list-keys.c
173
struct key_binding **l;
usr.bin/tmux/cmd-list-keys.c
214
l = sort_get_key_bindings_table(table, &n, &sort_crit);
usr.bin/tmux/cmd-list-keys.c
216
l = cmd_list_keys_get_root_and_prefix(&n, &sort_crit);
usr.bin/tmux/cmd-list-keys.c
218
l = sort_get_key_bindings(&n, &sort_crit);
usr.bin/tmux/cmd-list-keys.c
223
cmd_list_keys_filter_key_list(filter_notes, filter_key, only, l,
usr.bin/tmux/cmd-list-keys.c
232
format_add(ft, "key_has_repeat", "%d", key_bindings_has_repeat(l, n));
usr.bin/tmux/cmd-list-keys.c
233
format_add(ft, "key_string_width", "%u", cmd_list_keys_get_width(l, n));
usr.bin/tmux/cmd-list-keys.c
235
cmd_list_keys_get_table_width(l, n));
usr.bin/tmux/cmd-list-keys.c
237
cmd_list_keys_format_add_key_binding(ft, l[i], prefix);
usr.bin/tmux/cmd-list-keys.c
70
cmd_list_keys_get_width(struct key_binding **l, u_int n)
usr.bin/tmux/cmd-list-keys.c
75
width = utf8_cstrwidth(key_string_lookup_key(l[i]->key, 0));
usr.bin/tmux/cmd-list-keys.c
83
cmd_list_keys_get_table_width(struct key_binding **l, u_int n)
usr.bin/tmux/cmd-list-keys.c
88
width = utf8_cstrwidth(l[i]->tablename);
usr.bin/tmux/cmd-list-panes.c
100
struct window_pane *wp, **l;
usr.bin/tmux/cmd-list-panes.c
139
l = sort_get_panes_window(wl->window, &n, &sort_crit);
usr.bin/tmux/cmd-list-panes.c
141
wp = l[i];
usr.bin/tmux/cmd-list-sessions.c
56
struct session **l;
usr.bin/tmux/cmd-list-sessions.c
75
l = sort_get_sessions(&n, &sort_crit);
usr.bin/tmux/cmd-list-sessions.c
79
format_defaults(ft, NULL, l[i], NULL, NULL);
usr.bin/tmux/cmd-list-windows.c
63
struct winlink *wl, **l;
usr.bin/tmux/cmd-list-windows.c
83
l = sort_get_winlinks(&n, &sort_crit);
usr.bin/tmux/cmd-list-windows.c
87
l = sort_get_winlinks_session(target->s, &n, &sort_crit);
usr.bin/tmux/cmd-list-windows.c
93
wl = l[i];
usr.bin/tmux/format.c
4525
struct session *s, **l;
usr.bin/tmux/format.c
4536
l = sort_get_sessions(&n, sc);
usr.bin/tmux/format.c
4538
s = l[i];
usr.bin/tmux/format.c
4635
struct winlink *wl, **l;
usr.bin/tmux/format.c
4652
l = sort_get_winlinks_session(ft->s, &n, sc);
usr.bin/tmux/format.c
4654
wl = l[i];
usr.bin/tmux/format.c
4669
i > 0 && l[i - 1] == ft->s->curw);
usr.bin/tmux/format.c
4671
i + 1 < n && l[i + 1] == ft->s->curw);
usr.bin/tmux/format.c
4673
format_add_window_neighbor(nft, l[i + 1], ft->s, "next");
usr.bin/tmux/format.c
4675
format_add_window_neighbor(nft, l[i - 1], ft->s, "prev");
usr.bin/tmux/format.c
4707
struct window_pane *wp, **l;
usr.bin/tmux/format.c
4723
l = sort_get_panes_window(ft->w, &n, sc);
usr.bin/tmux/format.c
4725
wp = l[i];
usr.bin/tmux/format.c
4760
struct client *c, **l;
usr.bin/tmux/format.c
4771
l = sort_get_clients(&n, sc);
usr.bin/tmux/format.c
4773
c = l[i];
usr.bin/tmux/key-bindings.c
709
key_bindings_has_repeat(struct key_binding **l, u_int n)
usr.bin/tmux/key-bindings.c
714
if (l[i]->flags & KEY_BINDING_REPEAT)
usr.bin/tmux/session.c
300
struct session **l;
usr.bin/tmux/session.c
306
l = sort_get_sessions(&n, sort_crit);
usr.bin/tmux/session.c
308
if (l[i] == s)
usr.bin/tmux/session.c
316
return (l[i]);
usr.bin/tmux/session.c
323
struct session **l;
usr.bin/tmux/session.c
329
l = sort_get_sessions(&n, sort_crit);
usr.bin/tmux/session.c
331
if (l[i] == s)
usr.bin/tmux/session.c
339
return (l[i]);
usr.bin/tmux/sort.c
29
sort_qsort(void *l, u_int len, u_int size, int (*cmp)(const void *, const void *),
usr.bin/tmux/sort.c
40
ll = l;
usr.bin/tmux/sort.c
400
static struct paste_buffer **l = NULL;
usr.bin/tmux/sort.c
407
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
409
l[i++] = pb;
usr.bin/tmux/sort.c
412
sort_qsort(l, i, sizeof *l, sort_buffer_cmp, sort_crit);
usr.bin/tmux/sort.c
415
return (l);
usr.bin/tmux/sort.c
423
static struct client **l = NULL;
usr.bin/tmux/sort.c
430
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
432
l[i++] = c;
usr.bin/tmux/sort.c
435
sort_qsort(l, i, sizeof *l, sort_client_cmp, sort_crit);
usr.bin/tmux/sort.c
438
return (l);
usr.bin/tmux/sort.c
446
static struct session **l = NULL;
usr.bin/tmux/sort.c
453
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
455
l[i++] = s;
usr.bin/tmux/sort.c
458
sort_qsort(l, i, sizeof *l, sort_session_cmp, sort_crit);
usr.bin/tmux/sort.c
461
return (l);
usr.bin/tmux/sort.c
472
static struct window_pane **l = NULL;
usr.bin/tmux/sort.c
482
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
484
l[i++] = wp;
usr.bin/tmux/sort.c
489
sort_qsort(l, i, sizeof *l, sort_pane_cmp, sort_crit);
usr.bin/tmux/sort.c
49
qsort(l, len, size, cmp);
usr.bin/tmux/sort.c
492
return (l);
usr.bin/tmux/sort.c
503
static struct window_pane **l = NULL;
usr.bin/tmux/sort.c
512
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
514
l[i++] = wp;
usr.bin/tmux/sort.c
518
sort_qsort(l, i, sizeof *l, sort_pane_cmp, sort_crit);
usr.bin/tmux/sort.c
521
return (l);
usr.bin/tmux/sort.c
530
static struct window_pane **l = NULL;
usr.bin/tmux/sort.c
537
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
539
l[i++] = wp;
usr.bin/tmux/sort.c
542
sort_qsort(l, i, sizeof *l, sort_pane_cmp, sort_crit);
usr.bin/tmux/sort.c
545
return (l);
usr.bin/tmux/sort.c
554
static struct winlink **l = NULL;
usr.bin/tmux/sort.c
562
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
564
l[i++] = wl;
usr.bin/tmux/sort.c
568
sort_qsort(l, i, sizeof *l, sort_winlink_cmp, sort_crit);
usr.bin/tmux/sort.c
571
return (l);
usr.bin/tmux/sort.c
580
static struct winlink **l = NULL;
usr.bin/tmux/sort.c
587
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
589
l[i++] = wl;
usr.bin/tmux/sort.c
592
sort_qsort(l, i, sizeof *l, sort_winlink_cmp, sort_crit);
usr.bin/tmux/sort.c
595
return (l);
usr.bin/tmux/sort.c
604
static struct key_binding **l = NULL;
usr.bin/tmux/sort.c
613
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
615
l[i++] = bd;
usr.bin/tmux/sort.c
621
sort_qsort(l, i, sizeof *l, sort_key_binding_cmp, sort_crit);
usr.bin/tmux/sort.c
624
return (l);
usr.bin/tmux/sort.c
633
static struct key_binding **l = NULL;
usr.bin/tmux/sort.c
640
l = xreallocarray(l, lsz, sizeof *l);
usr.bin/tmux/sort.c
642
l[i++] = bd;
usr.bin/tmux/sort.c
646
sort_qsort(l, i, sizeof *l, sort_key_binding_cmp, sort_crit);
usr.bin/tmux/sort.c
649
return (l);
usr.bin/tmux/tmux.h
239
#define KEYC_MOUSE_KEY(p, t, l) \
usr.bin/tmux/tmux.h
240
p ## _ ## l = KEYC_MAKE_MOUSE_KEY(t, 0, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
241
p ## 1_ ## l = KEYC_MAKE_MOUSE_KEY(t, 1, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
242
p ## 2_ ## l = KEYC_MAKE_MOUSE_KEY(t, 2, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
243
p ## 3_ ## l = KEYC_MAKE_MOUSE_KEY(t, 3, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
244
p ## 6_ ## l = KEYC_MAKE_MOUSE_KEY(t, 6, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
245
p ## 7_ ## l = KEYC_MAKE_MOUSE_KEY(t, 7, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
246
p ## 8_ ## l = KEYC_MAKE_MOUSE_KEY(t, 8, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
247
p ## 9_ ## l = KEYC_MAKE_MOUSE_KEY(t, 9, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
248
p ## 10_ ## l = KEYC_MAKE_MOUSE_KEY(t, 10, KEYC_MOUSE_LOCATION_ ## l), \
usr.bin/tmux/tmux.h
249
p ## 11_ ## l = KEYC_MAKE_MOUSE_KEY(t, 11, KEYC_MOUSE_LOCATION_ ## l)
usr.bin/tmux/tmux.h
250
#define KEYC_MAKE_MOUSE_KEY(t, b, l) \
usr.bin/tmux/tmux.h
253
((unsigned long long)(l) << KEYC_MOUSE_LOCATION_SHIFT))
usr.bin/tmux/window-buffer.c
136
struct paste_buffer *pb, **l;
usr.bin/tmux/window-buffer.c
149
l = sort_get_buffers(&n, sort_crit);
usr.bin/tmux/window-buffer.c
152
item->name = xstrdup(paste_buffer_name(l[i]));
usr.bin/tmux/window-buffer.c
153
paste_buffer_data(l[i], &item->size);
usr.bin/tmux/window-buffer.c
154
item->order = paste_buffer_order(l[i]);
usr.bin/tmux/window-client.c
123
struct client *c, **l;
usr.bin/tmux/window-client.c
132
l = sort_get_clients(&n, sort_crit);
usr.bin/tmux/window-client.c
134
if (l[i]->session == NULL ||
usr.bin/tmux/window-client.c
135
(l[i]->flags & CLIENT_UNATTACHEDFLAGS))
usr.bin/tmux/window-client.c
139
item->c = l[i];
usr.bin/tmux/window-client.c
141
l[i]->references++;
usr.bin/tmux/window-tree.c
252
struct window_pane *wp, **l;
usr.bin/tmux/window-tree.c
287
l = sort_get_panes_window(wl->window, &n, sort_crit);
usr.bin/tmux/window-tree.c
291
if (window_tree_filter_pane(s, wl, l[i], filter))
usr.bin/tmux/window-tree.c
292
window_tree_build_pane(s, wl, l[i], modedata, mti);
usr.bin/tmux/window-tree.c
311
struct winlink *wl = s->curw, **l;
usr.bin/tmux/window-tree.c
335
l = sort_get_winlinks_session(s, &n, sort_crit);
usr.bin/tmux/window-tree.c
338
if (!window_tree_build_window(s, l[i], modedata, sort_crit, mti,
usr.bin/tmux/window-tree.c
354
struct session *s, **l;
usr.bin/tmux/window-tree.c
366
l = sort_get_sessions(&n, sort_crit);
usr.bin/tmux/window-tree.c
369
s = l[n - 1];
usr.bin/tmux/window-tree.c
377
window_tree_build_session(l[i], modedata, sort_crit, filter);
usr.bin/top/display.c
80
#define lineindex(l) ((l)*display_width)
usr.bin/ts/ts.c
165
size_t l;
usr.bin/ts/ts.c
175
l = strlen(f);
usr.bin/ts/ts.c
176
memmove(f + 6, f, l + 1);
usr.bin/tsort/tsort.c
249
struct link *l;
usr.bin/tsort/tsort.c
254
for (l = n->arcs; l != NULL; l = l->next)
usr.bin/tsort/tsort.c
256
printf("%s(%u/%u) ", l->node->k, l->node->order, l->node->refs);
usr.bin/tsort/tsort.c
287
struct link *l;
usr.bin/tsort/tsort.c
290
for (l = a->arcs; l != NULL; l = l->next) {
usr.bin/tsort/tsort.c
291
if (l->node == b)
usr.bin/tsort/tsort.c
295
l = ereallocarray(NULL, 1, sizeof(struct link));
usr.bin/tsort/tsort.c
296
l->node = b;
usr.bin/tsort/tsort.c
297
l->next = a->arcs;
usr.bin/tsort/tsort.c
298
a->arcs = l;
usr.bin/tsort/tsort.c
478
struct link *l;
usr.bin/tsort/tsort.c
492
for (l = n->arcs; l != NULL; l = l->next) {
usr.bin/tsort/tsort.c
494
if (l->node->order == NO_ORDER) {
usr.bin/tsort/tsort.c
497
} else if (l->node->order < min)
usr.bin/tsort/tsort.c
498
min = l->node->order;
usr.bin/tsort/tsort.c
500
if (min < NO_ORDER && l == NULL) {
usr.bin/tsort/tsort.c
515
for (l = n->arcs; l != NULL; l = l->next)
usr.bin/tsort/tsort.c
516
if (l->node->order < n->order) {
usr.bin/tsort/tsort.c
517
n->order = l->node->order;
usr.bin/tsort/tsort.c
665
struct link *l;
usr.bin/tsort/tsort.c
667
for (l = m->arcs; l != NULL; l = l->next)
usr.bin/tsort/tsort.c
668
if (l->node == n)
usr.bin/tsort/tsort.c
935
struct link *l;
usr.bin/tsort/tsort.c
946
for (l = n->arcs; l != NULL; l = l->next)
usr.bin/tsort/tsort.c
947
if (l->node->refs != 0 &&
usr.bin/tsort/tsort.c
948
--l->node->refs == 0) {
usr.bin/tsort/tsort.c
949
ENQUEUE(&aux, l->node);
usr.bin/vi/common/main.c
354
size_t l;
usr.bin/vi/common/main.c
356
l = strlen(sp->frp->name) + 1;
usr.bin/vi/common/main.c
357
if ((*--argv = malloc(l)) == NULL) {
usr.bin/vi/common/main.c
361
(void)strlcpy(*argv, sp->frp->name, l);
usr.bin/vi/common/search.c
152
char *l;
usr.bin/vi/common/search.c
161
if (db_get(sp, fm->lno, DBG_FATAL, &l, &len))
usr.bin/vi/common/search.c
183
if (db_get(sp, lno, 0, &l, &len)) {
usr.bin/vi/common/search.c
207
if ((wrapped && lno > fm->lno) || db_get(sp, lno, 0, &l, &len)) {
usr.bin/vi/common/search.c
232
eval = regexec(&sp->re_c, l, 1, match,
usr.bin/vi/common/search.c
284
char *l;
usr.bin/vi/common/search.c
349
if (db_get(sp, lno, 0, &l, &len))
usr.bin/vi/common/search.c
357
eval = regexec(&sp->re_c, l, 1, match,
usr.bin/vi/common/search.c
388
eval = regexec(&sp->re_c, l, 1, match,
usr.bin/vi/common/util.h
15
#define FL_INIT(l, f) (l) = (f) /* Specific flags location. */
usr.bin/vi/common/util.h
16
#define FL_SET(l, f) ((l) |= (f))
usr.bin/vi/common/util.h
17
#define FL_CLR(l, f) ((l) &= ~(f))
usr.bin/vi/common/util.h
18
#define FL_ISSET(l, f) ((l) & (f))
usr.bin/vi/ex/ex_subst.c
311
#define BUILD(sp, l, len) { \
usr.bin/vi/ex/ex_subst.c
320
memcpy(lb + lbclen, (l), (len)); \
usr.bin/watch/watch.c
558
size_t l = 0, c = 0;
usr.bin/watch/watch.c
572
(*buf)[l][c] = wc;
usr.bin/watch/watch.c
573
l++;
usr.bin/watch/watch.c
575
if (l == MAXLINE)
usr.bin/watch/watch.c
582
(*buf)[l][c++] = ' ';
usr.bin/watch/watch.c
584
(*buf)[l][c++] = ' ';
usr.bin/watch/watch.c
588
(*buf)[l][c++] = wc;
usr.bin/yacc/output.c
581
int i, j, k, l;
usr.bin/yacc/output.c
617
for (l = maxtable; l < newmax; ++l) {
usr.bin/yacc/output.c
618
table[l] = 0;
usr.bin/yacc/output.c
619
check[l] = -1;
usr.sbin/amd/amd/am_ops.c
79
int l = 0;
usr.sbin/amd/amd/am_ops.c
84
l += strlen((*ap)->fs_type) + 2;
usr.sbin/amd/amd/am_ops.c
85
if (l > 60) { l = 0; fputs("\n ", fp); }
usr.sbin/amd/amd/mount_fs.c
157
int l = strlen(opt);
usr.sbin/amd/amd/mount_fs.c
162
if (strncmp(opt, f, l) == 0)
usr.sbin/arp/arp.c
616
int l;
usr.sbin/arp/arp.c
665
l = rtm->rtm_msglen;
usr.sbin/arp/arp.c
668
if (write(rtsock, (char *)&m_rtmsg, l) == -1)
usr.sbin/arp/arp.c
675
l = read(rtsock, (char *)&m_rtmsg, sizeof(m_rtmsg));
usr.sbin/arp/arp.c
676
} while (l > 0 && (rtm->rtm_version != RTM_VERSION ||
usr.sbin/arp/arp.c
679
if (l < 0)
usr.sbin/bgpctl/bgpctl.c
1914
int complen, l;
usr.sbin/bgpctl/bgpctl.c
1935
l = 0;
usr.sbin/bgpctl/bgpctl.c
1936
comp[l++] = len;
usr.sbin/bgpctl/bgpctl.c
1938
comp[l++] = 0;
usr.sbin/bgpctl/bgpctl.c
1939
memcpy(comp + l, data, complen - l);
usr.sbin/bgpctl/json.c
119
int i, l;
usr.sbin/bgpctl/json.c
122
if ((l = do_find(ARRAY, name)) > 0) {
usr.sbin/bgpctl/json.c
124
for (i = level - l; i > 0; i--)
usr.sbin/bgpctl/json.c
152
int i, l;
usr.sbin/bgpctl/json.c
155
if ((l = do_find(OBJECT, name)) > 0) {
usr.sbin/bgpctl/json.c
157
for (i = level - l; i >= 0; i--)
usr.sbin/bgpctl/ometric.c
201
struct olabel *l;
usr.sbin/bgpctl/ometric.c
211
if ((l = malloc(sizeof(*l))) == NULL)
usr.sbin/bgpctl/ometric.c
213
l->key = *keys;
usr.sbin/bgpctl/ometric.c
214
if ((l->value = strdup(*values)) == NULL)
usr.sbin/bgpctl/ometric.c
216
STAILQ_INSERT_TAIL(&ol->labels, l, entry);
usr.sbin/bgpctl/ometric.c
233
struct olabel *l;
usr.sbin/bgpctl/ometric.c
239
while ((l = STAILQ_FIRST(&ol->labels)) != NULL) {
usr.sbin/bgpctl/ometric.c
241
free(l->value);
usr.sbin/bgpctl/ometric.c
242
free(l);
usr.sbin/bgpctl/ometric.c
291
struct olabel *l;
usr.sbin/bgpctl/ometric.c
301
STAILQ_FOREACH(l, &ol->labels, entry) {
usr.sbin/bgpctl/ometric.c
302
if (fprintf(out, "%s%s=\"%s\"", comma, l->key,
usr.sbin/bgpctl/ometric.c
303
l->value) < 0)
usr.sbin/bgpd/bgpd.c
748
size_t i, l, n;
usr.sbin/bgpd/bgpd.c
761
for (i = 0; i < n; i += l) {
usr.sbin/bgpd/bgpd.c
762
l = (n - i > 1024 ? 1024 : n - i);
usr.sbin/bgpd/bgpd.c
764
0, 0, -1, as + i, l * sizeof(*as)) == -1)
usr.sbin/bgpd/chash.c
59
#define CH_H1(h, l) ((l) == 0 ? 0 : h >> (64 - (l)))
usr.sbin/bgpd/chash.h
172
const struct _type *l = lptr, *r = rptr; \
usr.sbin/bgpd/chash.h
173
return _eq(l, r); \
usr.sbin/bgpd/flowspec.c
174
int l, type, prev = 0;
usr.sbin/bgpd/flowspec.c
181
l = flowspec_next_component(buf, len, is_v6, &type);
usr.sbin/bgpd/flowspec.c
182
if (l == -1)
usr.sbin/bgpd/flowspec.c
188
buf += l;
usr.sbin/bgpd/flowspec.c
189
len -= l;
usr.sbin/bgpd/kroute.c
2447
u_int l = 0;
usr.sbin/bgpd/kroute.c
2459
l += 8;
usr.sbin/bgpd/kroute.c
2462
l += 7;
usr.sbin/bgpd/kroute.c
2465
l += 6;
usr.sbin/bgpd/kroute.c
2468
l += 5;
usr.sbin/bgpd/kroute.c
2471
l += 4;
usr.sbin/bgpd/kroute.c
2474
l += 3;
usr.sbin/bgpd/kroute.c
2477
l += 2;
usr.sbin/bgpd/kroute.c
2480
l += 1;
usr.sbin/bgpd/kroute.c
2490
if (l > sizeof(struct in6_addr) * 8)
usr.sbin/bgpd/kroute.c
2491
fatalx("%s: prefixlen %d out of bound", __func__, l);
usr.sbin/bgpd/kroute.c
2492
return (l);
usr.sbin/bgpd/mrt.c
227
uint8_t l, safi;
usr.sbin/bgpd/mrt.c
275
for (l = 0; l < a->others_len; l++) {
usr.sbin/bgpd/mrt.c
276
if ((oa = a->others[l]) == NULL)
usr.sbin/bgpd/parse.y
5728
int complen, l;
usr.sbin/bgpd/parse.y
5760
l = 0;
usr.sbin/bgpd/parse.y
5761
comp[l++] = len;
usr.sbin/bgpd/parse.y
5763
comp[l++] = 0;
usr.sbin/bgpd/parse.y
5764
memcpy(comp + l, data, complen - l);
usr.sbin/bgpd/rde.c
2719
char *l = NULL;
usr.sbin/bgpd/rde.c
2732
l = log_fmt_peer(&peer->conf);
usr.sbin/bgpd/rde.c
2734
l, log_as(peer->conf.remote_as), message,
usr.sbin/bgpd/rde.c
2737
free(l);
usr.sbin/bgpd/rde.c
2927
uint8_t l;
usr.sbin/bgpd/rde.c
3019
for (l = 0; l < asp->others_len; l++) {
usr.sbin/bgpd/rde.c
3020
if ((a = asp->others[l]) == NULL)
usr.sbin/bgpd/rde.c
3045
uint8_t l;
usr.sbin/bgpd/rde.c
3098
for (l = 0; l < asp->others_len; l++) {
usr.sbin/bgpd/rde.c
3099
if ((a = asp->others[l]) == NULL)
usr.sbin/bgpd/rde_attr.c
104
for (l = 0; l < asp->others_len; l++) {
usr.sbin/bgpd/rde_attr.c
105
if (asp->others[l] == NULL)
usr.sbin/bgpd/rde_attr.c
107
if (type == asp->others[l]->type)
usr.sbin/bgpd/rde_attr.c
109
if (type < asp->others[l]->type)
usr.sbin/bgpd/rde_attr.c
122
for (l = 0; l < asp->others_len; l++) {
usr.sbin/bgpd/rde_attr.c
123
if (asp->others[l] == NULL) {
usr.sbin/bgpd/rde_attr.c
124
asp->others[l] = a;
usr.sbin/bgpd/rde_attr.c
128
if (a->type < asp->others[l]->type) {
usr.sbin/bgpd/rde_attr.c
129
t = asp->others[l];
usr.sbin/bgpd/rde_attr.c
130
asp->others[l] = a;
usr.sbin/bgpd/rde_attr.c
139
l = bin_of_attrs(asp->others_len + 1);
usr.sbin/bgpd/rde_attr.c
140
if ((p = reallocarray(asp->others, l, sizeof(struct attr *))) == NULL)
usr.sbin/bgpd/rde_attr.c
142
memset(&p[asp->others_len], 0, (l - asp->others_len) * sizeof(*p));
usr.sbin/bgpd/rde_attr.c
145
asp->others_len = l;
usr.sbin/bgpd/rde_attr.c
153
uint8_t l;
usr.sbin/bgpd/rde_attr.c
155
for (l = 0; l < asp->others_len; l++) {
usr.sbin/bgpd/rde_attr.c
156
if (asp->others[l] == NULL)
usr.sbin/bgpd/rde_attr.c
158
if (type == asp->others[l]->type)
usr.sbin/bgpd/rde_attr.c
159
return (asp->others[l]);
usr.sbin/bgpd/rde_attr.c
160
if (type < asp->others[l]->type)
usr.sbin/bgpd/rde_attr.c
169
uint8_t l;
usr.sbin/bgpd/rde_attr.c
183
for (l = 0; l < t->others_len; l++) {
usr.sbin/bgpd/rde_attr.c
184
if (s->others[l] == NULL)
usr.sbin/bgpd/rde_attr.c
186
s->others[l]->refcnt++;
usr.sbin/bgpd/rde_attr.c
188
t->others[l] = s->others[l];
usr.sbin/bgpd/rde_attr.c
209
uint8_t l;
usr.sbin/bgpd/rde_attr.c
213
for (l = 0; l < a->others_len; l++)
usr.sbin/bgpd/rde_attr.c
214
if (a->others[l] != b->others[l])
usr.sbin/bgpd/rde_attr.c
222
uint8_t l;
usr.sbin/bgpd/rde_attr.c
224
for (l = 0; l < asp->others_len; l++)
usr.sbin/bgpd/rde_attr.c
225
if (asp->others[l] == attr) {
usr.sbin/bgpd/rde_attr.c
226
attr_put(asp->others[l]);
usr.sbin/bgpd/rde_attr.c
227
for (++l; l < asp->others_len; l++)
usr.sbin/bgpd/rde_attr.c
228
asp->others[l - 1] = asp->others[l];
usr.sbin/bgpd/rde_attr.c
239
uint8_t l;
usr.sbin/bgpd/rde_attr.c
241
for (l = 0; l < asp->others_len; l++)
usr.sbin/bgpd/rde_attr.c
242
attr_put(asp->others[l]);
usr.sbin/bgpd/rde_attr.c
786
int l, overflow = 0, shift = 0, size, wpos = 0;
usr.sbin/bgpd/rde_attr.c
819
l = 2 + quantum * sizeof(uint32_t) + asp->len;
usr.sbin/bgpd/rde_attr.c
825
l = quantum * sizeof(uint32_t) + asp->len;
usr.sbin/bgpd/rde_attr.c
829
p = malloc(l);
usr.sbin/bgpd/rde_attr.c
857
*len = l;
usr.sbin/bgpd/rde_attr.c
870
uint16_t l, seg_size;
usr.sbin/bgpd/rde_attr.c
884
for (l = asp->len; l > 0; l -= seg_size, seg += seg_size) {
usr.sbin/bgpd/rde_attr.c
898
if (seg_size > l)
usr.sbin/bgpd/rde_attr.c
98
uint8_t l;
usr.sbin/bgpd/rde_community.c
223
int l;
usr.sbin/bgpd/rde_community.c
240
for (l = 0; l < comm->nentries; l++) {
usr.sbin/bgpd/rde_community.c
241
r = fast_match(comm->communities + l, c);
usr.sbin/bgpd/rde_community.c
247
memmove(comm->communities + l + 1,
usr.sbin/bgpd/rde_community.c
248
comm->communities + l,
usr.sbin/bgpd/rde_community.c
249
(comm->nentries - l) * sizeof(*c));
usr.sbin/bgpd/rde_community.c
255
comm->communities[l] = *c;
usr.sbin/bgpd/rde_community.c
279
int l;
usr.sbin/bgpd/rde_community.c
290
for (l = 0; l < comm->nentries; l++) {
usr.sbin/bgpd/rde_community.c
291
if (mask_match(&comm->communities[l], &test,
usr.sbin/bgpd/rde_community.c
305
int l;
usr.sbin/bgpd/rde_community.c
311
for (l = 0; l < comm->nentries; l++) {
usr.sbin/bgpd/rde_community.c
312
if ((uint8_t)comm->communities[l].flags == type)
usr.sbin/bgpd/rde_community.c
319
for (l = 0; l < comm->nentries; l++) {
usr.sbin/bgpd/rde_community.c
320
if ((uint8_t)comm->communities[l].flags == type)
usr.sbin/bgpd/rde_community.c
322
else if ((uint8_t)comm->communities[l].flags > type)
usr.sbin/bgpd/rde_community.c
327
for (l = comm->nentries; l > 0; l--) {
usr.sbin/bgpd/rde_community.c
328
if ((uint8_t)comm->communities[l - 1].flags == type)
usr.sbin/bgpd/rde_community.c
386
int l = 0;
usr.sbin/bgpd/rde_community.c
405
while (l < comm->nentries) {
usr.sbin/bgpd/rde_community.c
406
if (mask_match(&comm->communities[l], &test,
usr.sbin/bgpd/rde_community.c
408
memmove(comm->communities + l,
usr.sbin/bgpd/rde_community.c
409
comm->communities + l + 1,
usr.sbin/bgpd/rde_community.c
410
(comm->nentries - l - 1) * sizeof(test));
usr.sbin/bgpd/rde_community.c
415
l++;
usr.sbin/bgpd/rde_community.c
527
int l, size, start, end, num;
usr.sbin/bgpd/rde_community.c
557
for (l = 0; l < comm->nentries; l++) {
usr.sbin/bgpd/rde_community.c
558
cp = &comm->communities[l];
usr.sbin/bgpd/rde_community.c
564
start = l;
usr.sbin/bgpd/rde_community.c
569
end = l;
usr.sbin/bgpd/rde_community.c
583
for (l = start; l < end; l++) {
usr.sbin/bgpd/rde_community.c
584
cp = &comm->communities[l];
usr.sbin/bgplgd/slowcgi.c
280
struct listener *l = NULL;
usr.sbin/bgplgd/slowcgi.c
366
l = calloc(1, sizeof(*l));
usr.sbin/bgplgd/slowcgi.c
367
if (l == NULL)
usr.sbin/bgplgd/slowcgi.c
370
event_set(&l->ev, fd, EV_READ | EV_PERSIST, slowcgi_accept, l);
usr.sbin/bgplgd/slowcgi.c
371
event_add(&l->ev, NULL);
usr.sbin/bgplgd/slowcgi.c
372
evtimer_set(&l->pause, slowcgi_paused, l);
usr.sbin/bgplgd/slowcgi.c
425
struct listener *l = arg;
usr.sbin/bgplgd/slowcgi.c
426
event_add(&l->ev, NULL);
usr.sbin/bgplgd/slowcgi.c
452
struct listener *l;
usr.sbin/bgplgd/slowcgi.c
459
l = arg;
usr.sbin/bgplgd/slowcgi.c
474
event_del(&l->ev);
usr.sbin/bgplgd/slowcgi.c
475
evtimer_add(&l->pause, &backoff);
usr.sbin/btrace/btrace.c
1379
int l, len;
usr.sbin/btrace/btrace.c
1382
l = snprintf(buf, sizeof(buf), "%s", ba2str(ba, dtev));
usr.sbin/btrace/btrace.c
1383
if (l < 0 || (size_t)l > sizeof(buf)) {
usr.sbin/btrace/btrace.c
1384
warn("string too long %d > %lu", l, sizeof(buf));
usr.sbin/btrace/btrace.c
1390
len += l;
usr.sbin/btrace/btrace.c
1393
l = snprintf(hash, sizeof(buf) - len, ", %s", ba2str(ba, dtev));
usr.sbin/btrace/btrace.c
1394
if (l < 0 || (size_t)l > (sizeof(buf) - len)) {
usr.sbin/btrace/btrace.c
1395
warn("hash too long %d > %lu", l + len, sizeof(buf));
usr.sbin/btrace/btrace.c
1425
int l;
usr.sbin/btrace/btrace.c
1452
l = snprintf(buf, sizeof(buf), "%lu", bucket);
usr.sbin/btrace/btrace.c
1453
if (l < 0 || (size_t)l > sizeof(buf)) {
usr.sbin/btrace/btrace.c
1454
warn("string too long %d > %lu", l, sizeof(buf));
usr.sbin/btrace/btrace.c
1674
int l;
usr.sbin/btrace/btrace.c
1679
l = snprintf(buf+1, sz, "%s", bv_name(ba->ba_value));
usr.sbin/btrace/btrace.c
1680
if (l < 0 || (size_t)l > sz) {
usr.sbin/btrace/btrace.c
1681
warn("string too long %d > %zu", l, sz);
usr.sbin/btrace/btrace.c
1686
sz -= l;
usr.sbin/btrace/btrace.c
1687
l = snprintf(buf+1+l, sz, "[%s]", ba_name(ba->ba_key));
usr.sbin/btrace/btrace.c
1688
if (l < 0 || (size_t)l > sz) {
usr.sbin/btrace/btrace.c
1689
warn("string too long %d > %zu", l, sz);
usr.sbin/btrace/btrace.c
825
int l;
usr.sbin/btrace/btrace.c
828
l = kelf_snprintsym_proc(dtfd, dtev->dtev_pid, bp, sz - 1,
usr.sbin/btrace/btrace.c
831
l = kelf_snprintsym_kernel(kelf, bp, sz - 1,
usr.sbin/btrace/btrace.c
833
if (l < 0)
usr.sbin/btrace/btrace.c
835
if (l >= sz - 1) {
usr.sbin/btrace/btrace.c
840
bp += l;
usr.sbin/btrace/btrace.c
841
sz -= l;
usr.sbin/btrace/map.c
271
int l;
usr.sbin/btrace/map.c
275
l = snprintf(buf, buflen, "[%lu, %lu)", upb - hstep, upb);
usr.sbin/btrace/map.c
279
l = snprintf(buf, buflen, "(..., 0)");
usr.sbin/btrace/map.c
281
l = snprintf(buf, buflen, "[%lu]", upb);
usr.sbin/btrace/map.c
289
l = snprintf(buf, buflen, "[%lu%s, %lu%s)",
usr.sbin/btrace/map.c
294
if (l < 0 || (size_t)l > buflen)
usr.sbin/btrace/map.c
295
warn("string too long %d > %lu", l, sizeof(buf));
usr.sbin/btrace/map.c
297
return l;
usr.sbin/btrace/map.c
307
int i, l, length = 52;
usr.sbin/btrace/map.c
341
l = hist_print_bucket(buf, sizeof(buf), bin, hist->hstep);
usr.sbin/btrace/map.c
342
snprintf(buf + l, sizeof(buf) - l, "%*ld |%.*s%*s|",
usr.sbin/btrace/map.c
343
20 - l, val,
usr.sbin/config/hash.c
175
size_t l;
usr.sbin/config/hash.c
183
l = strlen(s) + 1;
usr.sbin/config/hash.c
184
p = malloc(l);
usr.sbin/config/hash.c
185
bcopy(s, p, l);
usr.sbin/config/pack.c
164
struct devi *i, *l, *p;
usr.sbin/config/pack.c
177
for (l = i; l != NULL; l = l->i_alias) {
usr.sbin/config/pack.c
179
if (l->i_cfindex >= 0)
usr.sbin/config/pack.c
181
l->i_pvlen = 0;
usr.sbin/config/pack.c
182
l->i_pvoff = -1;
usr.sbin/config/pack.c
183
l->i_locoff = -1;
usr.sbin/config/pack.c
187
if (sameas(l, p)) {
usr.sbin/config/pack.c
188
l->i_collapsed = 1;
usr.sbin/config/pack.c
189
l->i_cfindex = p->i_cfindex;
usr.sbin/config/pack.c
194
l->i_collapsed = 0;
usr.sbin/config/pack.c
195
l->i_cfindex = n;
usr.sbin/config/pack.c
196
l->i_parents = emalloc(sizeof(*l->i_parents));
usr.sbin/config/pack.c
197
l->i_parents[0] = NULL;
usr.sbin/config/pack.c
198
packed[n++] = l;
usr.sbin/config/pack.c
300
struct devi *i, *l;
usr.sbin/config/pack.c
307
for (l = i; l != NULL; l = l->i_alias) {
usr.sbin/config/pack.c
308
if (!l->i_collapsed &&
usr.sbin/config/pack.c
309
(unit == WILD || unit == l->i_unit)) {
usr.sbin/config/pack.c
311
*p++ = l;
usr.sbin/config/pack.c
323
int l, o;
usr.sbin/config/pack.c
327
if ((l = i->i_atattr->a_loclen) > 0) {
usr.sbin/config/pack.c
328
o = findvec(i->i_locs, LOCHASH(i->i_locs[l - 1]), l,
usr.sbin/config/pack.c
330
i->i_locoff = o < 0 ? addlocs(i->i_locs, l) : o;
usr.sbin/config/pack.c
341
int l, v, o;
usr.sbin/config/pack.c
347
l = i->i_pvlen;
usr.sbin/config/pack.c
348
if (l > longest_pvec)
usr.sbin/config/pack.c
351
for (v = 0; v < l; v++)
usr.sbin/config/pack.c
353
if (l == 0 || (o = findvec(vec, PVHASH(vec[l - 1]), l,
usr.sbin/config/pack.c
355
o = addpv(vec, l);
usr.sbin/config/pack.c
91
#define LOCHASH(l) (((long)(l) >> 2) & (TAILHSIZE - 1))
usr.sbin/config/sem.c
1002
size_t l;
usr.sbin/config/sem.c
1004
l = nlen;
usr.sbin/config/sem.c
1005
if (l < 2 || l >= bsize || isdigit((unsigned char)*name))
usr.sbin/config/sem.c
1007
c = (u_char)name[--l];
usr.sbin/config/sem.c
1016
cp = &name[l];
usr.sbin/config/sem.c
1018
l--, cp--;
usr.sbin/config/sem.c
1021
bcopy(name, base, l);
usr.sbin/config/sem.c
1022
base[l] = 0;
usr.sbin/config/sem.c
1066
int l;
usr.sbin/config/sem.c
1071
l = strlen(name);
usr.sbin/config/sem.c
1073
if (((p - dst) + l + 2) > dstsize) {
usr.sbin/config/sem.c
1078
bcopy(name, p, l);
usr.sbin/config/sem.c
1079
p += l;
usr.sbin/config/sem.c
230
addtoattr(struct nvlist *l, struct devbase *dev)
usr.sbin/config/sem.c
234
n = newnv(NULL, NULL, dev, 0, l);
usr.sbin/config/sem.c
521
int maj, min, l;
usr.sbin/config/sem.c
573
l = strlen(nv->nv_str);
usr.sbin/config/sem.c
574
cp = &nv->nv_str[l];
usr.sbin/config/sem.c
575
if (l > 1 && *--cp >= 'a' && *cp <= 'a'+maxpartitions &&
usr.sbin/config/sem.c
577
l--;
usr.sbin/config/sem.c
581
if (split(cp, l, buf, sizeof buf, &unit)) {
usr.sbin/config/ukcutil.c
279
int l = 0;
usr.sbin/config/ukcutil.c
284
l++;
usr.sbin/config/ukcutil.c
302
*len = l;
usr.sbin/config/ukcutil.c
313
short attr = -1, i = 0, l = 0;
usr.sbin/config/ukcutil.c
320
l++;
usr.sbin/config/ukcutil.c
326
if (strlen((char *)adjust((caddr_t)*p)) == l) {
usr.sbin/config/ukcutil.c
327
if (strncasecmp(cmd, adjust((caddr_t)*p), l) == 0)
usr.sbin/config/ukcutil.c
387
long *j = NULL, *l = NULL;
usr.sbin/config/ukcutil.c
414
l = (long *)adjust((caddr_t)cd->cf_loc);
usr.sbin/config/ukcutil.c
430
j = l = get_extraloc(i);
usr.sbin/config/ukcutil.c
431
if (l == NULL) {
usr.sbin/config/ukcutil.c
436
bcopy(adjust((caddr_t)cd->cf_loc), l,
usr.sbin/config/ukcutil.c
442
modifyl((char *)adjust(*p), l);
usr.sbin/config/ukcutil.c
444
l++;
usr.sbin/config/ukcutil.c
488
long *j = NULL, *l = NULL;
usr.sbin/config/ukcutil.c
513
l = (long *)adjust((caddr_t)cd->cf_loc);
usr.sbin/config/ukcutil.c
529
j = l = get_extraloc(i);
usr.sbin/config/ukcutil.c
530
if (l == NULL) {
usr.sbin/config/ukcutil.c
535
bcopy(adjust((caddr_t)cd->cf_loc), l,
usr.sbin/config/ukcutil.c
540
*l = atoi(str);
usr.sbin/config/ukcutil.c
548
l++;
usr.sbin/config/ukcutil.c
756
long *l;
usr.sbin/config/ukcutil.c
765
l = (long *)adjust((caddr_t)cd->cf_loc);
usr.sbin/config/ukcutil.c
773
if (*val == *l) {
usr.sbin/config/ukcutil.c
796
l++;
usr.sbin/config/ukcutil.c
812
short attr = -1, i = 0, l = 0;
usr.sbin/config/ukcutil.c
818
l++;
usr.sbin/config/ukcutil.c
827
if (strlen((char *)adjust(*p)) == l) {
usr.sbin/config/ukcutil.c
828
if (strncasecmp(cmd, adjust(*p), l) == 0)
usr.sbin/config/ukcutil.c
954
short l = 0;
usr.sbin/config/ukcutil.c
960
l++;
usr.sbin/crunchgen/crunchgen.c
890
strlst_t *l;
usr.sbin/crunchgen/crunchgen.c
910
for (l = libdirs; l != NULL; l = l->next)
usr.sbin/crunchgen/crunchgen.c
911
fprintf(outmk, " -L%s", l->str);
usr.sbin/dhcpd/conflex.c
132
int l, p;
usr.sbin/dhcpd/conflex.c
135
l = line;
usr.sbin/dhcpd/conflex.c
146
lexline = l;
usr.sbin/dhcpd/dhcpd.c
361
struct lease *l;
usr.sbin/dhcpd/dhcpd.c
378
for (l = s->leases; l && l->ends; l = l->next)
usr.sbin/dhcpd/dhcpd.c
379
if (cur_time >= l->ends)
usr.sbin/dhcpd/dhcpd.c
380
if (l->ends > last_scan)
usr.sbin/dhcpd/dhcpd.c
381
pfmsg('R', l);
usr.sbin/dhcpd/dispatch.c
306
struct protocol *l, *next;
usr.sbin/dhcpd/dispatch.c
312
for (nfds = 0, l = protocols; l; l = l->next)
usr.sbin/dhcpd/dispatch.c
353
for (i = 0, l = protocols; l; l = l->next) {
usr.sbin/dhcpd/dispatch.c
354
if (l->handler == got_one) {
usr.sbin/dhcpd/dispatch.c
355
struct interface_info *ip = l->local;
usr.sbin/dhcpd/dispatch.c
357
l->pfd = -1;
usr.sbin/dhcpd/dispatch.c
363
fds[i].fd = l->fd;
usr.sbin/dhcpd/dispatch.c
365
l->pfd = i++;
usr.sbin/dhcpd/dispatch.c
382
for (l = protocols; l; l = next) {
usr.sbin/dhcpd/dispatch.c
383
next = l->next;
usr.sbin/dhcpd/dispatch.c
384
i = l->pfd;
usr.sbin/dhcpd/dispatch.c
389
l->handler(l);
usr.sbin/dhcpd/dispatch.c
397
got_one(struct protocol *l)
usr.sbin/dhcpd/dispatch.c
407
struct interface_info *ip = l->local;
usr.sbin/dhcpd/dispatch.c
422
close(l->fd);
usr.sbin/dhcpd/dispatch.c
423
remove_protocol(l);
usr.sbin/dhcpd/memory.c
876
struct lease *l;
usr.sbin/dhcpd/memory.c
880
for (l = s->leases; l; l = l->next) {
usr.sbin/dhcpd/memory.c
881
if (l->hardware_addr.hlen || l->uid_len ||
usr.sbin/dhcpd/memory.c
882
(l->flags & ABANDONED_LEASE)) {
usr.sbin/dhcpd/memory.c
883
if (!write_lease(l))
usr.sbin/dhcpd/memory.c
886
sync_lease(l);
usr.sbin/dhcpd/parse.c
198
int l = strlen((char *)c->car);
usr.sbin/dhcpd/parse.c
200
t -= l;
usr.sbin/dhcpd/parse.c
201
memcpy(t, (char *)c->car, l);
usr.sbin/dhcpd/pfutils.c
53
int l, r, fd, nfds;
usr.sbin/dhcpd/pfutils.c
70
l = sizeof(struct pf_cmd);
usr.sbin/dhcpd/pfutils.c
83
memset(&cmd, 0, l);
usr.sbin/dhcpd/pfutils.c
84
r = atomicio(read, pfpipe[0], &cmd, l);
usr.sbin/dhcpd/pfutils.c
86
if (r != l)
usr.sbin/dhcpd/sync.c
246
struct lease l, *lp;
usr.sbin/dhcpd/sync.c
304
lp = &l;
usr.sbin/dhcrelay/dhcrelay.c
464
got_response(struct protocol *l)
usr.sbin/dhcrelay/dhcrelay.c
476
struct server_list *sp = l->local;
usr.sbin/dhcrelay/dhcrelay.c
479
if ((result = recv(l->fd, u.packbuf, sizeof(u), 0)) == -1 &&
usr.sbin/dhcrelay/dispatch.c
253
struct protocol *l;
usr.sbin/dhcrelay/dispatch.c
258
for (l = protocols; l; l = l->next)
usr.sbin/dhcrelay/dispatch.c
298
for (l = protocols; l; l = l->next) {
usr.sbin/dhcrelay/dispatch.c
299
struct interface_info *ip = l->local;
usr.sbin/dhcrelay/dispatch.c
301
if (ip && (l->handler != got_one || !ip->dead)) {
usr.sbin/dhcrelay/dispatch.c
302
fds[i].fd = l->fd;
usr.sbin/dhcrelay/dispatch.c
329
for (l = protocols; l; l = l->next) {
usr.sbin/dhcrelay/dispatch.c
330
struct interface_info *ip = l->local;
usr.sbin/dhcrelay/dispatch.c
334
if (ip && (l->handler != got_one ||
usr.sbin/dhcrelay/dispatch.c
336
(*(l->handler))(l);
usr.sbin/dhcrelay/dispatch.c
348
got_one(struct protocol *l)
usr.sbin/dhcrelay/dispatch.c
360
struct interface_info *ip = l->local;
usr.sbin/dhcrelay/dispatch.c
374
close(l->fd);
usr.sbin/dhcrelay/dispatch.c
375
remove_protocol(l);
usr.sbin/dhcrelay6/dhcrelay6.c
907
mcast6_recv(struct protocol *l)
usr.sbin/dhcrelay6/dhcrelay6.c
912
int sd = *(int *)l->local;
usr.sbin/dhcrelay6/dispatch.c
276
struct protocol *l;
usr.sbin/dhcrelay6/dispatch.c
281
for (l = protocols; l; l = l->next)
usr.sbin/dhcrelay6/dispatch.c
321
for (l = protocols; l; l = l->next) {
usr.sbin/dhcrelay6/dispatch.c
322
struct interface_info *ip = l->local;
usr.sbin/dhcrelay6/dispatch.c
324
if (ip && (l->handler != got_one || !ip->dead)) {
usr.sbin/dhcrelay6/dispatch.c
325
fds[i].fd = l->fd;
usr.sbin/dhcrelay6/dispatch.c
352
for (l = protocols; l; l = l->next) {
usr.sbin/dhcrelay6/dispatch.c
353
struct interface_info *ip = l->local;
usr.sbin/dhcrelay6/dispatch.c
357
if (ip && (l->handler != got_one ||
usr.sbin/dhcrelay6/dispatch.c
359
(*(l->handler))(l);
usr.sbin/dhcrelay6/dispatch.c
371
got_one(struct protocol *l)
usr.sbin/dhcrelay6/dispatch.c
376
struct interface_info *ip = l->local;
usr.sbin/dhcrelay6/dispatch.c
390
close(l->fd);
usr.sbin/dhcrelay6/dispatch.c
391
remove_protocol(l);
usr.sbin/dvmrpd/in_cksum.c
51
in_cksum(void *p, size_t l)
usr.sbin/dvmrpd/in_cksum.c
58
if (l >= (1 << 16))
usr.sbin/dvmrpd/in_cksum.c
60
len = (int)l;
usr.sbin/dvmrpd/packet.c
113
int l;
usr.sbin/dvmrpd/packet.c
138
if ((l = ip_hdr_sanity_check(&ip_hdr, len)) == -1)
usr.sbin/dvmrpd/packet.c
140
buf += l;
usr.sbin/dvmrpd/packet.c
141
len -= l;
usr.sbin/dvmrpd/packet.c
160
if ((l = dvmrp_hdr_sanity_check(&ip_hdr, dvmrp_hdr, len,
usr.sbin/dvmrpd/packet.c
190
len = l - sizeof(*dvmrp_hdr);
usr.sbin/eigrpd/in_cksum.c
51
in_cksum(void *p, size_t l)
usr.sbin/eigrpd/in_cksum.c
58
if (l >= (1 << 16))
usr.sbin/eigrpd/in_cksum.c
60
len = (int)l;
usr.sbin/eigrpd/util.c
41
unsigned int l = 0;
usr.sbin/eigrpd/util.c
54
l += 8;
usr.sbin/eigrpd/util.c
57
l += 7;
usr.sbin/eigrpd/util.c
60
l += 6;
usr.sbin/eigrpd/util.c
63
l += 5;
usr.sbin/eigrpd/util.c
66
l += 4;
usr.sbin/eigrpd/util.c
69
l += 3;
usr.sbin/eigrpd/util.c
72
l += 2;
usr.sbin/eigrpd/util.c
75
l += 1;
usr.sbin/eigrpd/util.c
85
if (l > sizeof(struct in6_addr) * 8)
usr.sbin/eigrpd/util.c
87
return (l);
usr.sbin/hostapd/hostapd.h
369
#define TTEST2(var, l) ( \
usr.sbin/hostapd/hostapd.h
370
snapend - (l) <= snapend && (const u_char *)&(var) <= snapend - (l) \
usr.sbin/hostapd/hostapd.h
373
#define TCHECK2(var, l) if (!TTEST2(var, l)) goto trunc
usr.sbin/hostapd/print-802_11.c
205
#define ELEM_CHECK(l) if (len != l) break
usr.sbin/httpd/patterns.c
292
int l = capture_to_close(ms);
usr.sbin/httpd/patterns.c
294
if (l == -1)
usr.sbin/httpd/patterns.c
297
ms->capture[l].len = s - ms->capture[l].init;
usr.sbin/httpd/patterns.c
300
ms->capture[l].len = CAP_UNFINISHED;
usr.sbin/httpd/patterns.c
305
match_capture(struct match_state *ms, const char *s, int l)
usr.sbin/httpd/patterns.c
308
l = check_capture(ms, l);
usr.sbin/httpd/patterns.c
309
if (l == -1)
usr.sbin/httpd/patterns.c
311
len = ms->capture[l].len;
usr.sbin/httpd/patterns.c
313
memcmp(ms->capture[l].init, s, len) == 0)
usr.sbin/httpd/patterns.c
533
ptrdiff_t l = ms->capture[i].len;
usr.sbin/httpd/patterns.c
534
if (l == CAP_UNFINISHED)
usr.sbin/httpd/patterns.c
537
sm->sm_eo = sm->sm_so + l;
usr.sbin/httpd/patterns.c
562
nospecials(const char *p, size_t l)
usr.sbin/httpd/patterns.c
573
} while (upto <= l);
usr.sbin/httpd/patterns.c
76
check_capture(struct match_state *ms, int l)
usr.sbin/httpd/patterns.c
78
l -= '1';
usr.sbin/httpd/patterns.c
79
if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
usr.sbin/httpd/patterns.c
81
return (l);
usr.sbin/identd/identd.c
648
struct identd_listener *l = NULL;
usr.sbin/identd/identd.c
688
l = calloc(1, sizeof(*l));
usr.sbin/identd/identd.c
689
if (l == NULL)
usr.sbin/identd/identd.c
692
event_set(&l->ev, s, EV_READ | EV_PERSIST, identd_accept, l);
usr.sbin/identd/identd.c
693
event_add(&l->ev, NULL);
usr.sbin/identd/identd.c
694
evtimer_set(&l->pause, identd_paused, l);
usr.sbin/identd/identd.c
696
if (l == NULL)
usr.sbin/identd/identd.c
705
struct identd_listener *l = arg;
usr.sbin/identd/identd.c
706
event_add(&l->ev, NULL);
usr.sbin/identd/identd.c
712
struct identd_listener *l = arg;
usr.sbin/identd/identd.c
729
event_del(&l->ev);
usr.sbin/identd/identd.c
730
evtimer_add(&l->pause, &pause);
usr.sbin/inetd/inetd.c
1128
long l;
usr.sbin/inetd/inetd.c
1137
l = strtol(cp, &ccp, 0);
usr.sbin/inetd/inetd.c
1138
if (ccp == cp || l < 0 || l > INT_MAX) {
usr.sbin/inetd/inetd.c
1144
sep->se_rpcversl = sep->se_rpcversh = l;
usr.sbin/inetd/inetd.c
1147
l = strtol(cp, &ccp, 0);
usr.sbin/inetd/inetd.c
1148
if (ccp == cp || l < 0 || l > INT_MAX ||
usr.sbin/inetd/inetd.c
1149
l < sep->se_rpcversl || *ccp)
usr.sbin/inetd/inetd.c
1151
sep->se_rpcversh = l;
usr.sbin/iscsid/logmsg.c
40
size_t i, j, l;
usr.sbin/iscsid/logmsg.c
45
for (i = 0; i < len; i += l) {
usr.sbin/iscsid/logmsg.c
47
l = sizeof(b) < len - i ? sizeof(b) : len - i;
usr.sbin/iscsid/logmsg.c
48
memcpy(b, (char *)buf + i, l);
usr.sbin/iscsid/logmsg.c
55
if (j < l)
usr.sbin/iscsid/logmsg.c
61
for (j = 0; j < l; j++) {
usr.sbin/iscsid/pdu.c
433
size_t l;
usr.sbin/iscsid/pdu.c
438
l = PDU_MIN(rb->wpos - rb->rpos, len);
usr.sbin/iscsid/pdu.c
439
memcpy(ptr, rb->buf + rb->rpos, l);
usr.sbin/iscsid/pdu.c
440
rb->rpos += l;
usr.sbin/iscsid/pdu.c
441
return l;
usr.sbin/iscsid/pdu.c
443
l = PDU_MIN(rb->size - rb->rpos, len);
usr.sbin/iscsid/pdu.c
444
memcpy(ptr, rb->buf + rb->rpos, l);
usr.sbin/iscsid/pdu.c
445
rb->rpos += l;
usr.sbin/iscsid/pdu.c
448
if (l < len)
usr.sbin/iscsid/pdu.c
449
return l + pdu_readbuf_read(rb, (char *)ptr + l,
usr.sbin/iscsid/pdu.c
450
len - l);
usr.sbin/iscsid/pdu.c
451
return l;
usr.sbin/ldapd/conn.c
257
struct listener *l = data;
usr.sbin/ldapd/conn.c
261
event_add(&l->ev, NULL);
usr.sbin/ldapd/conn.c
276
event_del(&l->ev);
usr.sbin/ldapd/conn.c
277
evtimer_add(&l->evt, &evtpause);
usr.sbin/ldapd/conn.c
283
if (l->ss.ss_family == AF_UNIX) {
usr.sbin/ldapd/conn.c
302
conn->listener = l;
usr.sbin/ldapd/conn.c
313
if (l->flags & F_LDAPS)
usr.sbin/ldapd/conn.c
322
if (l->flags & F_SECURE)
usr.sbin/ldapd/conn.c
330
if (evtimer_pending(&l->evt, NULL)) {
usr.sbin/ldapd/conn.c
331
evtimer_del(&l->evt);
usr.sbin/ldapd/conn.c
332
event_add(&l->ev, NULL);
usr.sbin/ldapd/conn.c
374
struct listener *l = conn->listener;
usr.sbin/ldapd/conn.c
376
if (!(l->flags & F_SSL))
usr.sbin/ldapd/conn.c
381
if (tls_accept_socket(l->tls, &conn->tls, conn->fd) < 0) {
usr.sbin/ldapd/conn.c
53
struct listener *l = conn->listener;
usr.sbin/ldapd/conn.c
75
if (evtimer_pending(&l->evt, NULL)) {
usr.sbin/ldapd/conn.c
76
evtimer_del(&l->evt);
usr.sbin/ldapd/conn.c
77
event_add(&l->ev, NULL);
usr.sbin/ldapd/ldape.c
344
struct listener *l;
usr.sbin/ldapd/ldape.c
385
TAILQ_FOREACH(l, &conf->listeners, entry) {
usr.sbin/ldapd/ldape.c
386
l->fd = socket(l->ss.ss_family, SOCK_STREAM | SOCK_NONBLOCK,
usr.sbin/ldapd/ldape.c
388
if (l->fd == -1)
usr.sbin/ldapd/ldape.c
391
setsockopt(l->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
usr.sbin/ldapd/ldape.c
393
if (l->ss.ss_family == AF_UNIX) {
usr.sbin/ldapd/ldape.c
394
sun = (struct sockaddr_un *)&l->ss;
usr.sbin/ldapd/ldape.c
399
print_host(&l->ss, host, sizeof(host));
usr.sbin/ldapd/ldape.c
400
log_info("listening on %s:%d", host, ntohs(l->port));
usr.sbin/ldapd/ldape.c
403
if (l->ss.ss_family == AF_UNIX) {
usr.sbin/ldapd/ldape.c
407
if (bind(l->fd, (struct sockaddr *)&l->ss, l->ss.ss_len) != 0)
usr.sbin/ldapd/ldape.c
410
if (l->ss.ss_family == AF_UNIX) {
usr.sbin/ldapd/ldape.c
420
if (listen(l->fd, 20) != 0)
usr.sbin/ldapd/ldape.c
423
event_set(&l->ev, l->fd, EV_READ, conn_accept, l);
usr.sbin/ldapd/ldape.c
424
event_add(&l->ev, NULL);
usr.sbin/ldapd/ldape.c
425
evtimer_set(&l->evt, conn_accept, l);
usr.sbin/ldapd/ldape.c
427
if (l->flags & F_SSL) {
usr.sbin/ldapd/ldape.c
428
if (strlcpy(key.ssl_name, l->ssl_cert_name,
usr.sbin/ldapd/ldape.c
432
l->ssl = SPLAY_FIND(ssltree, conf->sc_ssl, &key);
usr.sbin/ldapd/ldape.c
433
if (l->ssl == NULL)
usr.sbin/ldapd/ldape.c
436
l->tls = tls_server();
usr.sbin/ldapd/ldape.c
437
if (l->tls == NULL)
usr.sbin/ldapd/ldape.c
440
if (tls_configure(l->tls, l->ssl->config)) {
usr.sbin/ldapd/ldape.c
441
log_warnx("ldape: %s", tls_error(l->tls));
usr.sbin/ldpd/packet.c
656
struct ldp_hdr l;
usr.sbin/ldpd/packet.c
660
if (av < sizeof(l))
usr.sbin/ldpd/packet.c
663
memcpy(&l, r->buf, sizeof(l));
usr.sbin/ldpd/packet.c
664
dlen = ntohs(l.length) + LDP_HDR_DEAD_LEN;
usr.sbin/ldpd/parse.y
1442
struct l2vpn *l;
usr.sbin/ldpd/parse.y
1453
LIST_FOREACH(l, &conf->l2vpn_list, entry)
usr.sbin/ldpd/parse.y
1454
if (l2vpn_if_find(l, kif->ifindex)) {
usr.sbin/ldpd/parse.y
1456
"l2vpn %s", kif->ifname, l->name);
usr.sbin/ldpd/parse.y
1508
struct l2vpn *l;
usr.sbin/ldpd/parse.y
1515
l = l2vpn_new(name);
usr.sbin/ldpd/parse.y
1516
LIST_INSERT_HEAD(&conf->l2vpn_list, l, entry);
usr.sbin/ldpd/parse.y
1517
return (l);
usr.sbin/ldpd/parse.y
1521
conf_get_l2vpn_if(struct l2vpn *l, struct kif *kif)
usr.sbin/ldpd/parse.y
1551
f = l2vpn_if_new(l, kif);
usr.sbin/ldpd/parse.y
1557
conf_get_l2vpn_pw(struct l2vpn *l, struct kif *kif)
usr.sbin/ldpd/parse.y
1570
p = l2vpn_pw_new(l, kif);
usr.sbin/ldpd/parse.y
1598
struct l2vpn *l;
usr.sbin/ldpd/parse.y
1617
while ((l = LIST_FIRST(&xconf->l2vpn_list)) != NULL) {
usr.sbin/ldpd/parse.y
1618
while ((f = LIST_FIRST(&l->if_list)) != NULL) {
usr.sbin/ldpd/parse.y
1622
while ((p = LIST_FIRST(&l->pw_list)) != NULL) {
usr.sbin/ldpd/parse.y
1626
LIST_REMOVE(l, entry);
usr.sbin/ldpd/parse.y
1627
free(l);
usr.sbin/ldpd/parse.y
632
struct l2vpn *l;
usr.sbin/ldpd/parse.y
644
LIST_FOREACH(l, &conf->l2vpn_list, entry) {
usr.sbin/ldpd/parse.y
645
LIST_FOREACH(p, &l->pw_list, entry) {
usr.sbin/ldpd/parse.y
696
struct l2vpn *l;
usr.sbin/ldpd/parse.y
718
LIST_FOREACH(l, &conf->l2vpn_list, entry) {
usr.sbin/ldpd/parse.y
719
if (l->br_ifindex == kif->ifindex) {
usr.sbin/ldpd/parse.y
722
l->name);
usr.sbin/ldpd/util.c
40
unsigned int l = 0;
usr.sbin/ldpd/util.c
53
l += 8;
usr.sbin/ldpd/util.c
56
l += 7;
usr.sbin/ldpd/util.c
59
l += 6;
usr.sbin/ldpd/util.c
62
l += 5;
usr.sbin/ldpd/util.c
65
l += 4;
usr.sbin/ldpd/util.c
68
l += 3;
usr.sbin/ldpd/util.c
71
l += 2;
usr.sbin/ldpd/util.c
74
l += 1;
usr.sbin/ldpd/util.c
84
if (l > sizeof(struct in6_addr) * 8)
usr.sbin/ldpd/util.c
86
return (l);
usr.sbin/lpd/engine_lpr.c
340
size_t l;
usr.sbin/lpd/engine_lpr.c
352
l = sizeof(((const struct sockaddr_in*)a)->sin_addr);
usr.sbin/lpd/engine_lpr.c
353
return memcmp(aa, ab, l);
usr.sbin/lpd/engine_lpr.c
358
l = sizeof(((const struct sockaddr_in*)a)->sin_addr);
usr.sbin/lpd/engine_lpr.c
359
return memcmp(aa, ab, l);
usr.sbin/lpd/frontend.c
118
struct listener *l;
usr.sbin/lpd/frontend.c
126
l = conn->listener;
usr.sbin/lpd/frontend.c
130
log_fmt_proto(l->proto));
usr.sbin/lpd/frontend.c
135
if (l->pause)
usr.sbin/lpd/frontend.c
136
frontend_resume(l);
usr.sbin/lpd/frontend.c
142
struct listener *l;
usr.sbin/lpd/frontend.c
144
TAILQ_FOREACH(l, &env->listeners, entry)
usr.sbin/lpd/frontend.c
145
close(l->sock);
usr.sbin/lpd/frontend.c
153
frontend_listen(struct listener *l)
usr.sbin/lpd/frontend.c
156
log_debug("listen %s %s", log_fmt_proto(l->proto),
usr.sbin/lpd/frontend.c
157
log_fmt_sockaddr((struct sockaddr*)&l->ss));
usr.sbin/lpd/frontend.c
159
if (listen(l->sock, 5) == -1)
usr.sbin/lpd/frontend.c
162
frontend_resume(l);
usr.sbin/lpd/frontend.c
166
frontend_pause(struct listener *l)
usr.sbin/lpd/frontend.c
170
event_del(&l->ev);
usr.sbin/lpd/frontend.c
175
evtimer_set(&l->ev, frontend_accept, l);
usr.sbin/lpd/frontend.c
176
evtimer_add(&l->ev, &tv);
usr.sbin/lpd/frontend.c
177
l->pause = 1;
usr.sbin/lpd/frontend.c
181
frontend_resume(struct listener *l)
usr.sbin/lpd/frontend.c
183
if (l->pause) {
usr.sbin/lpd/frontend.c
184
evtimer_del(&l->ev);
usr.sbin/lpd/frontend.c
185
l->pause = 0;
usr.sbin/lpd/frontend.c
187
event_set(&l->ev, l->sock, EV_READ | EV_PERSIST, frontend_accept, l);
usr.sbin/lpd/frontend.c
188
event_add(&l->ev, NULL);
usr.sbin/lpd/frontend.c
194
struct listener *l = arg;
usr.sbin/lpd/frontend.c
200
if (l->pause) {
usr.sbin/lpd/frontend.c
201
l->pause = 0;
usr.sbin/lpd/frontend.c
202
frontend_resume(l);
usr.sbin/lpd/frontend.c
215
frontend_pause(l);
usr.sbin/lpd/frontend.c
231
conn->listener = l;
usr.sbin/lpd/frontend.c
238
switch (l->proto) {
usr.sbin/lpd/frontend.c
240
lpr_conn(conn->id, l, sock, sa);
usr.sbin/lpd/frontend.c
243
fatalx("%s: unexpected protocol %d", __func__, l->proto);
usr.sbin/lpd/frontend.c
250
struct listener *l;
usr.sbin/lpd/frontend.c
282
if ((l = calloc(1, sizeof(*l))) == NULL)
usr.sbin/lpd/frontend.c
284
m_get_int(proc, &l->proto);
usr.sbin/lpd/frontend.c
285
m_get_sockaddr(proc, (struct sockaddr *)&l->ss);
usr.sbin/lpd/frontend.c
287
l->sock = fd;
usr.sbin/lpd/frontend.c
288
TAILQ_INSERT_TAIL(&tmpconf->listeners, l, entry);
usr.sbin/lpd/frontend.c
293
TAILQ_FOREACH(l, &tmpconf->listeners, entry)
usr.sbin/lpd/frontend.c
294
frontend_listen(l);
usr.sbin/lpd/frontend_lpr.c
105
lpr_conn(uint32_t connid, struct listener *l, int sock,
usr.sbin/lpd/io.c
864
struct linger l;
usr.sbin/lpd/io.c
887
memset(&l, 0, sizeof(l));
usr.sbin/lpd/io.c
888
if (setsockopt(io->sock, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) == -1) {
usr.sbin/lpd/lpd.c
156
TAILQ_FOREACH(l, &env->listeners, entry)
usr.sbin/lpd/lpd.c
157
priv_open_listener(l);
usr.sbin/lpd/lpd.c
274
priv_open_listener(struct listener *l)
usr.sbin/lpd/lpd.c
282
sa = (struct sockaddr *)&l->ss;
usr.sbin/lpd/lpd.c
327
l->sock = sock;
usr.sbin/lpd/lpd.c
333
struct listener *l;
usr.sbin/lpd/lpd.c
342
TAILQ_FOREACH(l, &env->listeners, entry) {
usr.sbin/lpd/lpd.c
343
m_create(p_frontend, IMSG_CONF_LISTENER, 0, 0, l->sock);
usr.sbin/lpd/lpd.c
344
m_add_int(p_frontend, l->proto);
usr.sbin/lpd/lpd.c
345
m_add_sockaddr(p_frontend, (struct sockaddr *)(&l->ss));
usr.sbin/lpd/lpd.c
71
struct listener *l;
usr.sbin/lpd/parse.y
715
struct listener *l;
usr.sbin/lpd/parse.y
717
while ((l = TAILQ_FIRST(&c->listeners))) {
usr.sbin/lpd/parse.y
718
TAILQ_REMOVE(&c->listeners, l, entry);
usr.sbin/lpd/parse.y
719
free(l);
usr.sbin/lpd/parse.y
742
config_listener(struct listener *l, struct listen_opts *lo)
usr.sbin/lpd/parse.y
744
l->sock = -1;
usr.sbin/lpd/parse.y
745
l->proto = lo->proto;
usr.sbin/lpd/parse.y
747
TAILQ_INSERT_TAIL(&conf->listeners, l, entry);
usr.sbin/lpr/lpd/lpd.c
126
long l;
usr.sbin/lpr/lpd/lpd.c
190
l = strtol(optarg, &cp, 10);
usr.sbin/lpr/lpd/lpd.c
191
if (*cp != '\0' || l < 0 || l >= INT_MAX)
usr.sbin/lpr/lpd/lpd.c
194
wait_time = (u_int)l;
usr.sbin/lpr/lpd/lpd.c
211
l = strtol(port, &cp, 10);
usr.sbin/lpr/lpd/lpd.c
212
if (*cp != '\0' || l <= 0 || l > USHRT_MAX)
usr.sbin/lpr/lpq/lpq.c
100
if (*cp != '\0' || l < 0 || l >= INT_MAX)
usr.sbin/lpr/lpq/lpq.c
103
wait_time = (u_int)l;
usr.sbin/lpr/lpq/lpq.c
74
long l;
usr.sbin/lpr/lpq/lpq.c
99
l = strtol(optarg, &cp, 10);
usr.sbin/lpr/lprm/lprm.c
115
l = strtol(optarg, &cp, 10);
usr.sbin/lpr/lprm/lprm.c
116
if (*cp != '\0' || l < 0 || l >= INT_MAX)
usr.sbin/lpr/lprm/lprm.c
119
wait_time = (u_int)l;
usr.sbin/lpr/lprm/lprm.c
80
long l;
usr.sbin/makefs/cd9660/iso9660_rrip.c
793
int l;
usr.sbin/makefs/cd9660/iso9660_rrip.c
807
l = r->attr.su_entry.ER.len_id[0] +
usr.sbin/makefs/cd9660/iso9660_rrip.c
812
assert(l + r->attr.su_entry.ER.h.length[0] <= 254);
usr.sbin/makefs/cd9660/iso9660_rrip.c
814
r->attr.su_entry.ER.h.length[0] += (u_char)l;
usr.sbin/makefs/cd9660/iso9660_rrip.c
820
l = (int) r->attr.su_entry.ER.len_id[0];
usr.sbin/makefs/cd9660/iso9660_rrip.c
821
memcpy(r->attr.su_entry.ER.ext_data + l,ext_des,
usr.sbin/makefs/cd9660/iso9660_rrip.c
824
l += (int)r->attr.su_entry.ER.len_des[0];
usr.sbin/makefs/cd9660/iso9660_rrip.c
825
memcpy(r->attr.su_entry.ER.ext_data + l,ext_src,
usr.sbin/makefs/msdos/msdosfs_conv.c
260
int i, j, l;
usr.sbin/makefs/msdos/msdosfs_conv.c
322
l = dp1 - dp;
usr.sbin/makefs/msdos/msdosfs_conv.c
324
l = unlen - (dp - un);
usr.sbin/makefs/msdos/msdosfs_conv.c
325
for (i = 0, j = 8; i < l && j < 11; i++, j++) {
usr.sbin/makefs/msdos/msdosfs_conv.c
334
if (i < l)
usr.sbin/makefs/msdos/msdosfs_fat.c
770
u_long len, newst, foundl, cn, l;
usr.sbin/makefs/msdos/msdosfs_fat.c
803
if ((l = chainlength(pmp, cn, count)) >= count)
usr.sbin/makefs/msdos/msdosfs_fat.c
805
if (l > foundl) {
usr.sbin/makefs/msdos/msdosfs_fat.c
807
foundl = l;
usr.sbin/makefs/msdos/msdosfs_fat.c
809
cn += l + 1;
usr.sbin/makefs/msdos/msdosfs_fat.c
820
if ((l = chainlength(pmp, cn, count)) >= count)
usr.sbin/makefs/msdos/msdosfs_fat.c
822
if (l > foundl) {
usr.sbin/makefs/msdos/msdosfs_fat.c
824
foundl = l;
usr.sbin/makefs/msdos/msdosfs_fat.c
826
cn += l + 1;
usr.sbin/mrouted/defs.h
247
extern void k_set_loop(int l);
usr.sbin/mrouted/kern.c
45
void k_set_loop(int l)
usr.sbin/mrouted/kern.c
49
loop = l;
usr.sbin/mtree/compare.c
67
char *l; \
usr.sbin/mtree/compare.c
68
for (l = x; *l; l++) { \
usr.sbin/mtree/compare.c
69
if (*l == ',') \
usr.sbin/mtree/compare.c
70
*l = ' '; \
usr.sbin/ndp/ndp.c
736
int l;
usr.sbin/ndp/ndp.c
798
l = rtm->rtm_msglen;
usr.sbin/ndp/ndp.c
801
if ((rlen = write(rtsock, (char *)&m_rtmsg, l)) == -1) {
usr.sbin/ndp/ndp.c
807
l = read(rtsock, (char *)&m_rtmsg, sizeof(m_rtmsg));
usr.sbin/ndp/ndp.c
808
} while (l > 0 && (rtm->rtm_version != RTM_VERSION ||
usr.sbin/ndp/ndp.c
810
if (l == -1)
usr.sbin/npppd/common/slist.c
505
slist_qsort0(slist *list, int (*compar)(const void *, const void *), int l,
usr.sbin/npppd/common/slist.c
511
i = l;
usr.sbin/npppd/common/slist.c
522
if (l < j)
usr.sbin/npppd/common/slist.c
523
slist_qsort0(list, compar, l, j);
usr.sbin/npppd/common/slist_test.c
106
while (slist_length(l) > 0) {
usr.sbin/npppd/common/slist_test.c
107
slist_remove(l, 0);
usr.sbin/npppd/common/slist_test.c
109
for (i = 0; i < slist_length(l); i++) {
usr.sbin/npppd/common/slist_test.c
110
ASSERT((int)slist_get(l, i) == i + f);
usr.sbin/npppd/common/slist_test.c
116
while (slist_length(l) > 0) {
usr.sbin/npppd/common/slist_test.c
117
slist_remove(l, slist_length(l) - 1);
usr.sbin/npppd/common/slist_test.c
118
for (i = 0; i < slist_length(l); i++) {
usr.sbin/npppd/common/slist_test.c
119
ASSERT((int)slist_get(l, i) == i);
usr.sbin/npppd/common/slist_test.c
124
while (slist_length(l) > 1) {
usr.sbin/npppd/common/slist_test.c
125
slist_remove(l, slist_length(l) - 2);
usr.sbin/npppd/common/slist_test.c
126
for (i = 0; i < slist_length(l) - 1; i++) {
usr.sbin/npppd/common/slist_test.c
127
ASSERT((int)slist_get(l, i) == i);
usr.sbin/npppd/common/slist_test.c
129
if (slist_length(l) > 0) {
usr.sbin/npppd/common/slist_test.c
130
ASSERT((int)slist_get(l, slist_length(l) - 1) == 127);
usr.sbin/npppd/common/slist_test.c
133
slist_remove(l, slist_length(l) - 1);
usr.sbin/npppd/common/slist_test.c
134
ASSERT(slist_length(l) == 0);
usr.sbin/npppd/common/slist_test.c
142
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
174
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
216
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
234
test_itr_subr_01(slist *l)
usr.sbin/npppd/common/slist_test.c
238
for (i = 0; i < slist_length(l); i++)
usr.sbin/npppd/common/slist_test.c
239
slist_set(l, i, (void *)(i + 1));
usr.sbin/npppd/common/slist_test.c
241
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
242
ASSERT((int)slist_itr_next(l) == 1); /* normal iterate */
usr.sbin/npppd/common/slist_test.c
243
ASSERT((int)slist_itr_next(l) == 2); /* normal iterate */
usr.sbin/npppd/common/slist_test.c
244
slist_remove(l, 2); /* remove next. "3" is removed */
usr.sbin/npppd/common/slist_test.c
245
ASSERT((int)slist_itr_next(l) == 4); /* removed item is skipped */
usr.sbin/npppd/common/slist_test.c
246
slist_remove(l, 1); /* remove past item. "2" is removed */
usr.sbin/npppd/common/slist_test.c
247
ASSERT((int)slist_itr_next(l) == 5); /* no influence */
usr.sbin/npppd/common/slist_test.c
248
ASSERT((int)slist_get(l, 0) == 1); /* checking for removing */
usr.sbin/npppd/common/slist_test.c
249
ASSERT((int)slist_get(l, 1) == 4); /* checking for removing */
usr.sbin/npppd/common/slist_test.c
250
ASSERT((int)slist_get(l, 2) == 5); /* checking for removing */
usr.sbin/npppd/common/slist_test.c
258
ASSERT(slist_itr_next(l) != NULL);
usr.sbin/npppd/common/slist_test.c
259
ASSERT(slist_itr_next(l) != NULL);
usr.sbin/npppd/common/slist_test.c
260
ASSERT(slist_itr_next(l) == NULL);
usr.sbin/npppd/common/slist_test.c
267
for (i = 0; i < slist_length(l); i++)
usr.sbin/npppd/common/slist_test.c
268
slist_set(l, i, (void *)(i + 1));
usr.sbin/npppd/common/slist_test.c
269
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
271
ASSERT(slist_length(l) == 253);
usr.sbin/npppd/common/slist_test.c
274
ASSERT(slist_itr_next(l) != NULL);
usr.sbin/npppd/common/slist_test.c
276
slist_remove(l, 252);
usr.sbin/npppd/common/slist_test.c
277
ASSERT(slist_itr_next(l) == NULL); /* The last item is NULL */
usr.sbin/npppd/common/slist_test.c
279
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
280
while (slist_length(l) > 0)
usr.sbin/npppd/common/slist_test.c
281
slist_remove_first(l);
usr.sbin/npppd/common/slist_test.c
282
ASSERT(slist_length(l) == 0);
usr.sbin/npppd/common/slist_test.c
283
ASSERT(slist_itr_next(l) == NULL);
usr.sbin/npppd/common/slist_test.c
291
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
315
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
326
slist_set(l, 0, NULL);
usr.sbin/npppd/common/slist_test.c
334
slist_remove(l, 0);
usr.sbin/npppd/common/slist_test.c
335
ASSERT((int)slist_get(l, 0) == 1);
usr.sbin/npppd/common/slist_test.c
336
ASSERT((int)slist_get(l, 1) == 2);
usr.sbin/npppd/common/slist_test.c
337
ASSERT((int)slist_get(l, 2) == 3);
usr.sbin/npppd/common/slist_test.c
338
ASSERT((int)slist_get(l, 3) == 4);
usr.sbin/npppd/common/slist_test.c
339
ASSERT((int)slist_get(l, 4) == 5);
usr.sbin/npppd/common/slist_test.c
340
ASSERT((int)slist_get(l, 5) == 6);
usr.sbin/npppd/common/slist_test.c
341
ASSERT((int)slist_get(l, 6) == 7);
usr.sbin/npppd/common/slist_test.c
342
ASSERT((int)slist_get(l, 7) == 8);
usr.sbin/npppd/common/slist_test.c
343
ASSERT(l->first_idx == 255);
usr.sbin/npppd/common/slist_test.c
345
slist_remove(l, 0);
usr.sbin/npppd/common/slist_test.c
346
ASSERT((int)slist_get(l, 0) == 2);
usr.sbin/npppd/common/slist_test.c
347
ASSERT((int)slist_get(l, 1) == 3);
usr.sbin/npppd/common/slist_test.c
348
ASSERT((int)slist_get(l, 2) == 4);
usr.sbin/npppd/common/slist_test.c
349
ASSERT((int)slist_get(l, 3) == 5);
usr.sbin/npppd/common/slist_test.c
350
ASSERT((int)slist_get(l, 4) == 6);
usr.sbin/npppd/common/slist_test.c
351
ASSERT((int)slist_get(l, 5) == 7);
usr.sbin/npppd/common/slist_test.c
352
ASSERT((int)slist_get(l, 6) == 8);
usr.sbin/npppd/common/slist_test.c
353
ASSERT(l->first_idx == 0);
usr.sbin/npppd/common/slist_test.c
361
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
363
slist_init(l);
usr.sbin/npppd/common/slist_test.c
365
slist_add(l, (void *)i);
usr.sbin/npppd/common/slist_test.c
369
for (slist_itr_first(l); slist_itr_has_next(l); ) {
usr.sbin/npppd/common/slist_test.c
370
ASSERT(slist_length(l) == i);
usr.sbin/npppd/common/slist_test.c
371
slist_itr_next(l);
usr.sbin/npppd/common/slist_test.c
372
ASSERT((int)slist_itr_remove(l) == 255 - i);
usr.sbin/npppd/common/slist_test.c
373
ASSERT(slist_length(l) == i - 1);
usr.sbin/npppd/common/slist_test.c
374
for (j = i; j < slist_length(l); j++)
usr.sbin/npppd/common/slist_test.c
375
ASSERT((int)slist_get(l, j) == i + j);
usr.sbin/npppd/common/slist_test.c
385
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
387
slist_init(l);
usr.sbin/npppd/common/slist_test.c
388
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
389
slist_remove_first(l);
usr.sbin/npppd/common/slist_test.c
390
l->first_idx = 120;
usr.sbin/npppd/common/slist_test.c
391
l->last_idx = 120;
usr.sbin/npppd/common/slist_test.c
393
slist_add(l, (void *)i);
usr.sbin/npppd/common/slist_test.c
396
for (i = 0, slist_itr_first(l); slist_itr_has_next(l); i++) {
usr.sbin/npppd/common/slist_test.c
397
ASSERT((int)slist_itr_next(l) == i);
usr.sbin/npppd/common/slist_test.c
399
ASSERT((int)slist_itr_remove(l) == i);
usr.sbin/npppd/common/slist_test.c
407
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
409
slist_init(l);
usr.sbin/npppd/common/slist_test.c
410
slist_set_size(l, 4);
usr.sbin/npppd/common/slist_test.c
411
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
412
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
413
slist_add(l, (void *)3);
usr.sbin/npppd/common/slist_test.c
417
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
418
slist_itr_has_next(l);
usr.sbin/npppd/common/slist_test.c
419
slist_itr_next(l);
usr.sbin/npppd/common/slist_test.c
420
slist_itr_remove(l);
usr.sbin/npppd/common/slist_test.c
423
slist_add(l, (void *)4);
usr.sbin/npppd/common/slist_test.c
425
ASSERT((int)slist_get(l, 0) == 2);
usr.sbin/npppd/common/slist_test.c
426
ASSERT((int)slist_get(l, 1) == 3);
usr.sbin/npppd/common/slist_test.c
427
ASSERT((int)slist_get(l, 2) == 4);
usr.sbin/npppd/common/slist_test.c
428
slist_add(l, (void *)5);
usr.sbin/npppd/common/slist_test.c
431
ASSERT((int)slist_get(l, 0) == 2);
usr.sbin/npppd/common/slist_test.c
432
ASSERT((int)slist_get(l, 1) == 3);
usr.sbin/npppd/common/slist_test.c
433
ASSERT((int)slist_get(l, 2) == 4);
usr.sbin/npppd/common/slist_test.c
434
ASSERT((int)slist_get(l, 3) == 5);
usr.sbin/npppd/common/slist_test.c
441
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
446
slist_init(l);
usr.sbin/npppd/common/slist_test.c
447
slist_set_size(l, 3);
usr.sbin/npppd/common/slist_test.c
448
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
449
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
450
slist_add(l, (void *)3);
usr.sbin/npppd/common/slist_test.c
452
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
453
ASSERT((int)slist_itr_next(l) == 1); /* 1 */
usr.sbin/npppd/common/slist_test.c
454
ASSERT((int)slist_itr_next(l) == 2); /* 2 */
usr.sbin/npppd/common/slist_test.c
455
ASSERT((int)slist_itr_next(l) == 3); /* 3 */
usr.sbin/npppd/common/slist_test.c
457
slist_add(l, (void *)4); /* add a new item */
usr.sbin/npppd/common/slist_test.c
458
ASSERT(slist_itr_has_next(l)); /* iterates the new */
usr.sbin/npppd/common/slist_test.c
459
ASSERT((int)slist_itr_next(l) == 4);
usr.sbin/npppd/common/slist_test.c
460
slist_fini(l);
usr.sbin/npppd/common/slist_test.c
466
slist_init(l);
usr.sbin/npppd/common/slist_test.c
467
slist_set_size(l, 3);
usr.sbin/npppd/common/slist_test.c
468
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
469
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
470
slist_add(l, (void *)3);
usr.sbin/npppd/common/slist_test.c
472
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
473
ASSERT((int)slist_itr_next(l) == 1); /* 1 */
usr.sbin/npppd/common/slist_test.c
474
ASSERT((int)slist_itr_next(l) == 2); /* 2 */
usr.sbin/npppd/common/slist_test.c
475
ASSERT((int)slist_itr_next(l) == 3); /* 3 */
usr.sbin/npppd/common/slist_test.c
477
slist_itr_remove(l); /* and remove the last*/
usr.sbin/npppd/common/slist_test.c
478
slist_add(l, (void *)4); /* add 4 (new last)*/
usr.sbin/npppd/common/slist_test.c
479
ASSERT(slist_itr_has_next(l)); /* */
usr.sbin/npppd/common/slist_test.c
480
ASSERT((int)slist_itr_next(l) == 4); /* 4 */
usr.sbin/npppd/common/slist_test.c
481
slist_fini(l);
usr.sbin/npppd/common/slist_test.c
486
slist_init(l);
usr.sbin/npppd/common/slist_test.c
487
slist_set_size(l, 3);
usr.sbin/npppd/common/slist_test.c
488
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
489
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
490
slist_add(l, (void *)3);
usr.sbin/npppd/common/slist_test.c
492
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
493
ASSERT((int)slist_itr_next(l) == 1); /* 1 */
usr.sbin/npppd/common/slist_test.c
494
ASSERT((int)slist_itr_next(l) == 2); /* 2 */
usr.sbin/npppd/common/slist_test.c
495
ASSERT((int)slist_itr_next(l) == 3); /* 3 */
usr.sbin/npppd/common/slist_test.c
497
slist_add(l, (void *)4); /* add a new */
usr.sbin/npppd/common/slist_test.c
498
slist_itr_remove(l);
usr.sbin/npppd/common/slist_test.c
499
ASSERT(slist_itr_has_next(l));
usr.sbin/npppd/common/slist_test.c
500
ASSERT((int)slist_itr_next(l) == 4); /* 4 */
usr.sbin/npppd/common/slist_test.c
501
slist_fini(l);
usr.sbin/npppd/common/slist_test.c
506
slist_init(l);
usr.sbin/npppd/common/slist_test.c
507
slist_set_size(l, 3);
usr.sbin/npppd/common/slist_test.c
508
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
509
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
51
dump(l); \
usr.sbin/npppd/common/slist_test.c
510
slist_add(l, (void *)3);
usr.sbin/npppd/common/slist_test.c
512
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
513
ASSERT((int)slist_itr_next(l) == 1); /* 1 */
usr.sbin/npppd/common/slist_test.c
514
ASSERT((int)slist_itr_next(l) == 2); /* 2 */
usr.sbin/npppd/common/slist_test.c
515
slist_remove(l, 2); /* remove the next */
usr.sbin/npppd/common/slist_test.c
516
slist_add(l, (void *)4); /* add the new next */
usr.sbin/npppd/common/slist_test.c
517
ASSERT(slist_itr_has_next(l)); /* iterates the new */
usr.sbin/npppd/common/slist_test.c
518
ASSERT((int)slist_itr_next(l) == 4);
usr.sbin/npppd/common/slist_test.c
519
slist_fini(l);
usr.sbin/npppd/common/slist_test.c
526
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
528
slist_init(l);
usr.sbin/npppd/common/slist_test.c
529
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
530
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
531
slist_add(l, (void *)3);
usr.sbin/npppd/common/slist_test.c
532
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
533
ASSERT((int)slist_itr_next(l) == 1);
usr.sbin/npppd/common/slist_test.c
534
ASSERT((int)slist_itr_next(l) == 2);
usr.sbin/npppd/common/slist_test.c
536
ASSERT(slist_itr_has_next(l));
usr.sbin/npppd/common/slist_test.c
537
ASSERT((int)slist_itr_next(l) == i - 1);
usr.sbin/npppd/common/slist_test.c
539
slist_add(l, (void *)i);
usr.sbin/npppd/common/slist_test.c
541
ASSERT((int)slist_itr_remove(l) == i - 1);
usr.sbin/npppd/common/slist_test.c
543
slist_add(l, (void *)i);
usr.sbin/npppd/common/slist_test.c
545
slist_itr_first(l);
usr.sbin/npppd/common/slist_test.c
546
while (slist_itr_has_next(l)) {
usr.sbin/npppd/common/slist_test.c
547
slist_itr_next(l);
usr.sbin/npppd/common/slist_test.c
548
slist_itr_remove(l);
usr.sbin/npppd/common/slist_test.c
550
ASSERT((int)slist_length(l) == 0);
usr.sbin/npppd/common/slist_test.c
552
slist_fini(l);
usr.sbin/npppd/common/slist_test.c
559
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
56
dump(slist *l)
usr.sbin/npppd/common/slist_test.c
561
slist_init(l);
usr.sbin/npppd/common/slist_test.c
562
slist_add(l, (void *)1);
usr.sbin/npppd/common/slist_test.c
563
slist_add(l, (void *)2);
usr.sbin/npppd/common/slist_test.c
564
ASSERT((int)slist_remove_last(l) == 2);
usr.sbin/npppd/common/slist_test.c
565
ASSERT((int)slist_length(l) == 1);
usr.sbin/npppd/common/slist_test.c
566
ASSERT((int)slist_remove_last(l) == 1);
usr.sbin/npppd/common/slist_test.c
567
ASSERT((int)slist_length(l) == 0);
usr.sbin/npppd/common/slist_test.c
580
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
582
slist_init(l);
usr.sbin/npppd/common/slist_test.c
583
slist_add(l, (void *)42);
usr.sbin/npppd/common/slist_test.c
584
slist_add(l, (void *)15);
usr.sbin/npppd/common/slist_test.c
585
slist_add(l, (void *)14);
usr.sbin/npppd/common/slist_test.c
586
slist_add(l, (void *)13);
usr.sbin/npppd/common/slist_test.c
587
slist_add(l, (void *)29);
usr.sbin/npppd/common/slist_test.c
588
slist_add(l, (void *)15);
usr.sbin/npppd/common/slist_test.c
589
slist_add(l, (void *)25);
usr.sbin/npppd/common/slist_test.c
590
slist_add(l, (void *)55);
usr.sbin/npppd/common/slist_test.c
591
slist_add(l, (void *)66);
usr.sbin/npppd/common/slist_test.c
592
slist_add(l, (void *)23);
usr.sbin/npppd/common/slist_test.c
593
slist_qsort(l, test_12_compar);
usr.sbin/npppd/common/slist_test.c
594
ASSERT((int)slist_get(l, 0) == 13);
usr.sbin/npppd/common/slist_test.c
595
ASSERT((int)slist_get(l, 1) == 14);
usr.sbin/npppd/common/slist_test.c
596
ASSERT((int)slist_get(l, 2) == 15);
usr.sbin/npppd/common/slist_test.c
597
ASSERT((int)slist_get(l, 3) == 15);
usr.sbin/npppd/common/slist_test.c
598
ASSERT((int)slist_get(l, 4) == 23);
usr.sbin/npppd/common/slist_test.c
599
ASSERT((int)slist_get(l, 5) == 25);
usr.sbin/npppd/common/slist_test.c
600
ASSERT((int)slist_get(l, 6) == 29);
usr.sbin/npppd/common/slist_test.c
601
ASSERT((int)slist_get(l, 7) == 42);
usr.sbin/npppd/common/slist_test.c
602
ASSERT((int)slist_get(l, 8) == 55);
usr.sbin/npppd/common/slist_test.c
603
ASSERT((int)slist_get(l, 9) == 66);
usr.sbin/npppd/common/slist_test.c
610
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
612
slist_init(l);
usr.sbin/npppd/common/slist_test.c
613
slist_qsort(l, test_12_compar);
usr.sbin/npppd/common/slist_test.c
66
, l->itr_curr, l->itr_next, l->first_idx, l->last_idx
usr.sbin/npppd/common/slist_test.c
67
, l->list_size);
usr.sbin/npppd/common/slist_test.c
68
for (i = 0; i < slist_length(l); i++) {
usr.sbin/npppd/common/slist_test.c
71
fprintf(stderr, " %3d", (int)slist_get(l, i));
usr.sbin/npppd/common/slist_test.c
87
slist *l = &sl;
usr.sbin/npppd/common/slist_test.c
96
l->last_idx = 64; \
usr.sbin/npppd/common/slist_test.c
97
l->first_idx = 192; \
usr.sbin/npppd/common/slist_test.c
98
for (i = 0; i < slist_length(l); i++) { \
usr.sbin/npppd/common/slist_test.c
99
slist_set(l, i, (void *)i); \
usr.sbin/npppd/l2tp/l2tp_call.c
443
hdr->l = 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1090
hdr->l = 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
671
if (hdr.l) reqlen += 2; /* for Length field (opt) */
usr.sbin/npppd/l2tp/l2tp_ctrl.c
680
if (hdr.l != 0) {
usr.sbin/npppd/l2tp/l2tp_local.h
45
l:1,
usr.sbin/npppd/l2tp/l2tp_local.h
51
l:1,
usr.sbin/npppd/npppd/fsm.c
322
fsm_input(fsm *f, u_char *inpacket, int l)
usr.sbin/npppd/npppd/fsm.c
333
if (l < HEADERLEN) {
usr.sbin/npppd/npppd/fsm.c
344
if (len > l) {
usr.sbin/npppd/npppd/ppp.h
681
#define GETLONG(l, cp) { \
usr.sbin/npppd/npppd/ppp.h
682
(l) = *(cp)++ << 8; \
usr.sbin/npppd/npppd/ppp.h
683
(l) |= *(cp)++; (l) <<= 8; \
usr.sbin/npppd/npppd/ppp.h
684
(l) |= *(cp)++; (l) <<= 8; \
usr.sbin/npppd/npppd/ppp.h
685
(l) |= *(cp)++; \
usr.sbin/npppd/npppd/ppp.h
687
#define PUTLONG(l, cp) { \
usr.sbin/npppd/npppd/ppp.h
688
*(cp)++ = (u_char) ((l) >> 24); \
usr.sbin/npppd/npppd/ppp.h
689
*(cp)++ = (u_char) ((l) >> 16); \
usr.sbin/npppd/npppd/ppp.h
690
*(cp)++ = (u_char) ((l) >> 8); \
usr.sbin/npppd/npppd/ppp.h
691
*(cp)++ = (u_char) (l); \
usr.sbin/npppd/npppd/ppp.h
693
#define BCOPY(s, d, l) memcpy(d, s, l)
usr.sbin/npppd/npppd/privsep.c
1067
int l;
usr.sbin/npppd/npppd/privsep.c
1069
l = strlen(NPPPD_DIR "/");
usr.sbin/npppd/npppd/privsep.c
1070
if (strncmp(arg->path, NPPPD_DIR "/", l) == 0)
usr.sbin/npppd/pppoe/pppoed.c
468
pppoed_listener *l;
usr.sbin/npppd/pppoe/pppoed.c
491
l = NULL;
usr.sbin/npppd/pppoe/pppoed.c
494
l = slist_itr_next(&rmlist);
usr.sbin/npppd/pppoe/pppoed.c
495
if (strcmp(l->listen_ifname, listeners[i].ifname) == 0){
usr.sbin/npppd/pppoe/pppoed.c
502
if ((l = malloc(sizeof(pppoed_listener))) == NULL)
usr.sbin/npppd/pppoe/pppoed.c
504
pppoed_listener_init(_this, l);
usr.sbin/npppd/pppoe/pppoed.c
506
l->self = _this;
usr.sbin/npppd/pppoe/pppoed.c
507
strlcpy(l->tun_name, listeners[i].name, sizeof(l->tun_name));
usr.sbin/npppd/pppoe/pppoed.c
508
strlcpy(l->listen_ifname, listeners[i].ifname,
usr.sbin/npppd/pppoe/pppoed.c
509
sizeof(l->listen_ifname));
usr.sbin/npppd/pppoe/pppoed.c
510
l->conf = listeners[i].conf;
usr.sbin/npppd/pppoe/pppoed.c
511
if (slist_add(&newlist, l) == NULL) {
usr.sbin/npppd/pppoe/pppoed.c
524
l = slist_itr_next(&rmlist);
usr.sbin/npppd/pppoe/pppoed.c
530
if (session->listener_index == l->index)
usr.sbin/npppd/pppoe/pppoed.c
534
pppoed_listener_stop(l);
usr.sbin/npppd/pppoe/pppoed.c
535
free(l);
usr.sbin/npppd/pppoe/pppoed.c
544
l = slist_itr_next(&newlist);
usr.sbin/npppd/pppoe/pppoed.c
545
if (l->index != i && l->index != PPPOED_LISTENER_INVALID_INDEX){
usr.sbin/npppd/pppoe/pppoed.c
547
l->index, i));
usr.sbin/npppd/pppoe/pppoed.c
551
if (session->listener_index == l->index)
usr.sbin/npppd/pppoe/pppoed.c
555
l->index = i;
usr.sbin/nsd/dname.c
624
size_t l = 0;
usr.sbin/nsd/dname.c
626
return l;
usr.sbin/nsd/dname.c
633
l += lablen+1;
usr.sbin/nsd/dname.c
636
if(l > MAXDOMAINLEN)
usr.sbin/nsd/dname.c
643
l += 1; /* for the end root label */
usr.sbin/nsd/dname.c
644
if(l > MAXDOMAINLEN)
usr.sbin/nsd/dname.c
646
return l;
usr.sbin/nsd/dnstap/dnstap_collector.c
289
int l = strlen(nsd->chrootdir)-1; /* ends in trailing slash */
usr.sbin/nsd/dnstap/dnstap_collector.c
293
nsd->chrootdir, l) == 0)
usr.sbin/nsd/dnstap/dnstap_collector.c
294
nsd->options->dnstap_socket_path += l;
usr.sbin/nsd/ixfr.c
272
int32_t l = field->calculate_length_uncompressed_wire(
usr.sbin/nsd/ixfr.c
274
if(l < 0)
usr.sbin/nsd/ixfr.c
276
field_len = l;
usr.sbin/nsd/lookup3.c
862
uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z;
usr.sbin/nsd/lookup3.c
877
for (l=0; l<HASHSTATE; ++l)
usr.sbin/nsd/lookup3.c
878
e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
usr.sbin/nsd/lookup3.c
885
for (l=0; l<hlen+1; ++l) {a[l] = b[l] = (uint8_t)0;}
usr.sbin/nsd/lookup3.c
894
for (l=0; l<HASHSTATE; ++l)
usr.sbin/nsd/lookup3.c
896
e[l] &= (c[l]^d[l]);
usr.sbin/nsd/lookup3.c
897
f[l] &= ~(c[l]^d[l]);
usr.sbin/nsd/lookup3.c
898
g[l] &= c[l];
usr.sbin/nsd/lookup3.c
899
h[l] &= ~c[l];
usr.sbin/nsd/lookup3.c
900
x[l] &= d[l];
usr.sbin/nsd/lookup3.c
901
y[l] &= ~d[l];
usr.sbin/nsd/lookup3.c
902
if (e[l]|f[l]|g[l]|h[l]|x[l]|y[l]) finished=0;
usr.sbin/nsd/nsd.c
1586
int l = strlen(nsd.chrootdir)-1; /* ends in trailing slash */
usr.sbin/nsd/nsd.c
1592
nsd.options->zonesdir += l;
usr.sbin/nsd/nsd.c
1595
nsd.log_filename += l;
usr.sbin/nsd/nsd.c
1598
nsd.pidfile += l;
usr.sbin/nsd/nsd.c
1600
nsd.options->xfrdfile += l;
usr.sbin/nsd/nsd.c
1602
nsd.options->zonelistfile += l;
usr.sbin/nsd/nsd.c
1604
nsd.options->xfrdir += l;
usr.sbin/nsd/nsd.c
601
int l;
usr.sbin/nsd/nsd.c
607
if (((l = read(fd, pidbuf, sizeof(pidbuf)))) == -1) {
usr.sbin/nsd/nsd.c
617
if (l == 0) {
usr.sbin/nsd/radtree.c
320
uint8_t* l, radstrlen_type llen,
usr.sbin/nsd/radtree.c
327
memmove(*s, l+plen, llen-plen);
usr.sbin/nsd/rdata.c
1060
int32_t l = field->calculate_length(rr->rdlength, rr->rdata,
usr.sbin/nsd/rdata.c
1062
if(l < 0)
usr.sbin/nsd/rdata.c
1064
*field_len = l;
usr.sbin/nsd/rdata.c
1126
int32_t l = field->calculate_length_uncompressed_wire(rdlength,
usr.sbin/nsd/rdata.c
1128
if(l < 0)
usr.sbin/nsd/rdata.c
1130
*field_len = l;
usr.sbin/nsd/region-allocator.c
485
struct large_elem* l;
usr.sbin/nsd/region-allocator.c
491
l = (struct large_elem*)((char*)block-sizeof(struct large_elem));
usr.sbin/nsd/region-allocator.c
492
if(l->prev)
usr.sbin/nsd/region-allocator.c
493
l->prev->next = l->next;
usr.sbin/nsd/region-allocator.c
494
else region->large_list = l->next;
usr.sbin/nsd/region-allocator.c
495
if(l->next)
usr.sbin/nsd/region-allocator.c
496
l->next->prev = l->prev;
usr.sbin/nsd/region-allocator.c
497
region->deallocator(l);
usr.sbin/nsd/remote.c
2163
size_t l = strlen(xfrd->nsd->chrootdir);
usr.sbin/nsd/remote.c
2164
while(l>0 && xfrd->nsd->chrootdir[l-1] == '/')
usr.sbin/nsd/remote.c
2165
--l;
usr.sbin/nsd/remote.c
2166
if(strncmp(xfrd->nsd->chrootdir, cfgfile, l) != 0) {
usr.sbin/nsd/remote.c
2173
cfgfile += l;
usr.sbin/nsd/simdzone/src/fallback/name.h
19
uint8_t *l = octets, *w = octets + 1;
usr.sbin/nsd/simdzone/src/fallback/name.h
23
l[0] = 0;
usr.sbin/nsd/simdzone/src/fallback/name.h
36
if ((w - 1) - l > 63 || (w - 1) - l == 0)
usr.sbin/nsd/simdzone/src/fallback/name.h
38
l[0] = (uint8_t)((w - 1) - l);
usr.sbin/nsd/simdzone/src/fallback/name.h
39
l = w;
usr.sbin/nsd/simdzone/src/fallback/name.h
40
l[0] = 0;
usr.sbin/nsd/simdzone/src/fallback/name.h
47
if ((w - 1) - l > 63)
usr.sbin/nsd/simdzone/src/fallback/name.h
49
*l = (uint8_t)((w - 1) - l);
usr.sbin/nsd/simdzone/src/fallback/name.h
55
return *l != 0;
usr.sbin/nsd/util.c
1056
int l = strlen(*dirname);
usr.sbin/nsd/util.c
1057
if (l>0 && (*dirname)[l-1] != '/' && l < 0xffffff) {
usr.sbin/nsd/util.c
1058
char *dirname_slash = region_alloc(region, l+2);
usr.sbin/nsd/util.c
1059
memcpy(dirname_slash, *dirname, l+1);
usr.sbin/nsd/util.c
1060
strlcat(dirname_slash, "/", l+2);
usr.sbin/ntpd/parse.y
451
size_t l = strlen($2);
usr.sbin/ntpd/parse.y
453
if (l < 1 || l > 4) {
usr.sbin/ospf6d/ospfe.c
454
u_int16_t l, age;
usr.sbin/ospf6d/ospfe.c
530
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/ospfe.c
531
if (l < sizeof(lsa_hdr))
usr.sbin/ospf6d/ospfe.c
536
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospf6d/ospfe.c
557
if (l - sizeof(lsa_hdr) < sizeof(lsa_link))
usr.sbin/ospf6d/ospfe.c
618
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/ospfe.c
619
if (l < sizeof(lsa_hdr))
usr.sbin/ospf6d/ospfe.c
635
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospf6d/packet.c
134
int l;
usr.sbin/ospf6d/packet.c
210
if ((l = ospf_hdr_sanity_check(ospf_hdr, len, iface, &dest)) == -1)
usr.sbin/ospf6d/packet.c
220
len = l - sizeof(*ospf_hdr);
usr.sbin/ospf6d/rde.c
278
u_int16_t l;
usr.sbin/ospf6d/rde.c
367
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/rde.c
368
l >= sizeof(lsa_hdr); l -= sizeof(lsa_hdr)) {
usr.sbin/ospf6d/rde.c
390
if (l != 0)
usr.sbin/ospf6d/rde.c
404
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/rde.c
405
l >= sizeof(req_hdr); l -= sizeof(req_hdr)) {
usr.sbin/ospf6d/rde.c
421
if (l != 0)
usr.sbin/ospf6d/util.c
107
l += 8;
usr.sbin/ospf6d/util.c
110
l += 7;
usr.sbin/ospf6d/util.c
113
l += 6;
usr.sbin/ospf6d/util.c
116
l += 5;
usr.sbin/ospf6d/util.c
119
l += 4;
usr.sbin/ospf6d/util.c
122
l += 3;
usr.sbin/ospf6d/util.c
125
l += 2;
usr.sbin/ospf6d/util.c
128
l += 1;
usr.sbin/ospf6d/util.c
138
if (l > sizeof(struct in6_addr) * 8)
usr.sbin/ospf6d/util.c
139
fatalx("%s: prefixlen %d out of bound", __func__, l);
usr.sbin/ospf6d/util.c
140
return (l);
usr.sbin/ospf6d/util.c
95
u_int l = 0;
usr.sbin/ospfd/in_cksum.c
51
in_cksum(void *p, size_t l)
usr.sbin/ospfd/in_cksum.c
58
if (l >= (1 << 16))
usr.sbin/ospfd/in_cksum.c
60
len = (int)l;
usr.sbin/ospfd/ospfe.c
499
u_int16_t l, age;
usr.sbin/ospfd/ospfe.c
599
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/ospfe.c
600
if (l < sizeof(lsa_hdr))
usr.sbin/ospfd/ospfe.c
605
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospfd/ospfe.c
675
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/ospfe.c
676
if (l < sizeof(lsa_hdr))
usr.sbin/ospfd/ospfe.c
692
ref = lsa_cache_add(imsg.data, l);
usr.sbin/ospfd/packet.c
128
int l;
usr.sbin/ospfd/packet.c
171
if ((l = ip_hdr_sanity_check(&ip_hdr, len)) == -1)
usr.sbin/ospfd/packet.c
173
buf += l;
usr.sbin/ospfd/packet.c
174
len -= l;
usr.sbin/ospfd/packet.c
207
if ((l = ospf_hdr_sanity_check(&ip_hdr, ospf_hdr, len, iface)) == -1)
usr.sbin/ospfd/packet.c
228
len = l - sizeof(*ospf_hdr);
usr.sbin/ospfd/rde.c
266
u_int16_t l;
usr.sbin/ospfd/rde.c
369
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/rde.c
370
l >= sizeof(lsa_hdr); l -= sizeof(lsa_hdr)) {
usr.sbin/ospfd/rde.c
397
if (l != 0 && !error)
usr.sbin/ospfd/rde.c
415
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/rde.c
416
l >= sizeof(req_hdr); l -= sizeof(req_hdr)) {
usr.sbin/ospfd/rde.c
434
if (l != 0)
usr.sbin/pppd/fsm.c
304
fsm_input(fsm *f, u_char *inpacket, int l)
usr.sbin/pppd/fsm.c
315
if (l < HEADERLEN) {
usr.sbin/pppd/fsm.c
328
if (len > l) {
usr.sbin/pppd/ipcp.c
370
u_int32_t l; \
usr.sbin/pppd/ipcp.c
373
l = ntohl(val1); \
usr.sbin/pppd/ipcp.c
374
PUTLONG(l, ucp); \
usr.sbin/pppd/ipcp.c
376
l = ntohl(val2); \
usr.sbin/pppd/ipcp.c
377
PUTLONG(l, ucp); \
usr.sbin/pppd/ipcp.c
441
u_int32_t l; \
usr.sbin/pppd/ipcp.c
449
GETLONG(l, p); \
usr.sbin/pppd/ipcp.c
450
cilong = htonl(l); \
usr.sbin/pppd/ipcp.c
454
GETLONG(l, p); \
usr.sbin/pppd/ipcp.c
455
cilong = htonl(l); \
usr.sbin/pppd/ipcp.c
495
u_int32_t ciaddr1, ciaddr2, l;
usr.sbin/pppd/ipcp.c
514
GETLONG(l, p); \
usr.sbin/pppd/ipcp.c
515
ciaddr1 = htonl(l); \
usr.sbin/pppd/ipcp.c
517
GETLONG(l, p); \
usr.sbin/pppd/ipcp.c
518
ciaddr2 = htonl(l); \
usr.sbin/pppd/ipcp.c
610
GETLONG(l, p);
usr.sbin/pppd/ipcp.c
611
ciaddr1 = htonl(l);
usr.sbin/pppd/ipcp.c
614
GETLONG(l, p);
usr.sbin/pppd/ipcp.c
615
ciaddr2 = htonl(l);
usr.sbin/pppd/ipcp.c
624
GETLONG(l, p);
usr.sbin/pppd/ipcp.c
625
ciaddr1 = htonl(l);
usr.sbin/pppd/ipcp.c
677
u_int32_t l; \
usr.sbin/pppd/ipcp.c
680
GETLONG(l, p); \
usr.sbin/pppd/ipcp.c
681
cilong = htonl(l); \
usr.sbin/pppd/ipcp.c
686
GETLONG(l, p); \
usr.sbin/pppd/ipcp.c
687
cilong = htonl(l); \
usr.sbin/pppd/ipcp.c
763
int l = *len; /* Length left */
usr.sbin/pppd/ipcp.c
778
while (l) {
usr.sbin/pppd/ipcp.c
781
if (l < 2 || /* Not enough data for CI header or */
usr.sbin/pppd/ipcp.c
783
p[1] > l) { /* CI length too big? */
usr.sbin/pppd/ipcp.c
786
cilen = l; /* Reject till end of packet */
usr.sbin/pppd/ipcp.c
787
l = 0; /* Don't loop again */
usr.sbin/pppd/ipcp.c
792
l -= cilen; /* Adjust remaining length */
usr.sbin/pppd/lcp.c
1134
int l = *lenp; /* Length left */
usr.sbin/pppd/lcp.c
1147
while (l) {
usr.sbin/pppd/lcp.c
1150
if (l < 2 || /* Not enough data for CI header or */
usr.sbin/pppd/lcp.c
1152
p[1] > l) { /* CI length too big? */
usr.sbin/pppd/lcp.c
1155
cilen = l; /* Reject till end of packet */
usr.sbin/pppd/lcp.c
1156
l = 0; /* Don't loop again */
usr.sbin/pppd/lcp.c
1162
l -= cilen; /* Adjust remaining length */
usr.sbin/pppd/options.c
1013
int l, ok;
usr.sbin/pppd/options.c
1036
l = strlen(arg) + strlen(_PATH_PEERFILES) + 1;
usr.sbin/pppd/options.c
1037
if ((fname = (char *) malloc(l)) == NULL)
usr.sbin/pppd/options.c
1039
strlcpy(fname, _PATH_PEERFILES, l);
usr.sbin/pppd/options.c
1040
strlcat(fname, arg, l);
usr.sbin/pppd/pppd.h
374
#define GETLONG(l, cp) { \
usr.sbin/pppd/pppd.h
375
(l) = *(cp)++ << 8; \
usr.sbin/pppd/pppd.h
376
(l) |= *(cp)++; (l) <<= 8; \
usr.sbin/pppd/pppd.h
377
(l) |= *(cp)++; (l) <<= 8; \
usr.sbin/pppd/pppd.h
378
(l) |= *(cp)++; \
usr.sbin/pppd/pppd.h
380
#define PUTLONG(l, cp) { \
usr.sbin/pppd/pppd.h
381
*(cp)++ = (u_char) ((l) >> 24); \
usr.sbin/pppd/pppd.h
382
*(cp)++ = (u_char) ((l) >> 16); \
usr.sbin/pppd/pppd.h
383
*(cp)++ = (u_char) ((l) >> 8); \
usr.sbin/pppd/pppd.h
384
*(cp)++ = (u_char) (l); \
usr.sbin/pppd/pppd.h
404
#define BCOPY(s, d, l) memcpy(d, s, l)
usr.sbin/pppd/pppd.h
405
#define BMOVE(s, d, l) memmove(d, s, l)
usr.sbin/pppd/pppd.h
410
#define PRINTMSG(m, l) { m[l] = '\0'; syslog(LOG_INFO, "Remote message: %s", m); }
usr.sbin/pppd/sys-bsd.c
1055
sifdefaultroute(int u, u_int32_t l, u_int32_t g)
usr.sbin/pppd/sys-bsd.c
1064
cifdefaultroute(int u, u_int32_t l, u_int32_t g)
usr.sbin/pppd/upap.c
281
upap_input(int unit, u_char *inpacket, int l)
usr.sbin/pppd/upap.c
293
if (l < UPAP_HEADERLEN) {
usr.sbin/pppd/upap.c
304
if (len > l) {
usr.sbin/procmap/procmap.c
868
size_t l;
usr.sbin/procmap/procmap.c
872
l = strlen(D(vfs, mount)->mnt_stat.f_mntonname);
usr.sbin/procmap/procmap.c
875
if (name - (1 + 11 + l) < buf)
usr.sbin/procmap/procmap.c
883
name -= l;
usr.sbin/procmap/procmap.c
885
D(vfs, mount)->mnt_stat.f_mntonname, l);
usr.sbin/procmap/procmap.c
888
if (name - (1 + l) < buf)
usr.sbin/procmap/procmap.c
892
if (l != 1) {
usr.sbin/procmap/procmap.c
893
name -= l;
usr.sbin/procmap/procmap.c
895
D(vfs, mount)->mnt_stat.f_mntonname, l);
usr.sbin/radiusctl/json.c
119
int i, l;
usr.sbin/radiusctl/json.c
122
if ((l = do_find(ARRAY, name)) > 0) {
usr.sbin/radiusctl/json.c
124
for (i = level - l; i > 0; i--)
usr.sbin/radiusctl/json.c
152
int i, l;
usr.sbin/radiusctl/json.c
155
if ((l = do_find(OBJECT, name)) > 0) {
usr.sbin/radiusctl/json.c
157
for (i = level - l; i >= 0; i--)
usr.sbin/radiusd/log.c
69
const char *l;
usr.sbin/radiusd/log.c
93
strlcat(fmtbuf, syslog_prionames[i].l + 4,
usr.sbin/radiusd/parse.y
897
struct radiusd_listen *l;
usr.sbin/radiusd/parse.y
915
if ((l = calloc(1, sizeof(struct radiusd_listen))) == NULL) {
usr.sbin/radiusd/parse.y
919
l->stype = SOCK_DGRAM;
usr.sbin/radiusd/parse.y
920
l->sproto = IPPROTO_UDP;
usr.sbin/radiusd/parse.y
921
l->addr.ipv4.sin_family = AF_INET;
usr.sbin/radiusd/parse.y
922
l->addr.ipv4.sin_len = sizeof(struct sockaddr_in);
usr.sbin/radiusd/parse.y
923
l->addr.ipv4.sin_addr.s_addr = htonl(0x7F000001L);
usr.sbin/radiusd/parse.y
924
l->addr.ipv4.sin_port = htons(RADIUS_DEFAULT_PORT);
usr.sbin/radiusd/parse.y
925
TAILQ_INSERT_TAIL(&conf->listen, l, next);
usr.sbin/radiusd/parse.y
927
TAILQ_FOREACH(l, &conf->listen, next) {
usr.sbin/radiusd/parse.y
928
l->sock = -1;
usr.sbin/radiusd/radiusd.c
231
struct radiusd_listen *l;
usr.sbin/radiusd/radiusd.c
236
TAILQ_FOREACH(l, &radiusd->listen, next) {
usr.sbin/radiusd/radiusd.c
238
(struct sockaddr *)&l->addr, l->addr.ipv4.sin_len,
usr.sbin/radiusd/radiusd.c
243
if ((s = socket(l->addr.ipv4.sin_family,
usr.sbin/radiusd/radiusd.c
244
l->stype | SOCK_NONBLOCK, l->sproto)) == -1) {
usr.sbin/radiusd/radiusd.c
246
hbuf, (int)htons(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
255
if (bind(s, (struct sockaddr *)&l->addr, l->addr.ipv4.sin_len)
usr.sbin/radiusd/radiusd.c
258
hbuf, (int)htons(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
262
if (l->addr.ipv4.sin_family == AF_INET)
usr.sbin/radiusd/radiusd.c
264
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
267
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
268
event_set(&l->ev, s, EV_READ | EV_PERSIST,
usr.sbin/radiusd/radiusd.c
269
radiusd_listen_on_event, l);
usr.sbin/radiusd/radiusd.c
270
if (event_add(&l->ev, NULL) != 0) {
usr.sbin/radiusd/radiusd.c
275
l->sock = s;
usr.sbin/radiusd/radiusd.c
276
l->radiusd = radiusd;
usr.sbin/radiusd/radiusd.c
302
struct radiusd_listen *l;
usr.sbin/radiusd/radiusd.c
305
TAILQ_FOREACH_REVERSE(l, &radiusd->listen, radiusd_listen_head, next) {
usr.sbin/radiusd/radiusd.c
306
if (l->sock >= 0) {
usr.sbin/radiusd/radiusd.c
308
(struct sockaddr *)&l->addr, l->addr.ipv4.sin_len,
usr.sbin/radiusd/radiusd.c
311
if (l->addr.ipv4.sin_family == AF_INET)
usr.sbin/radiusd/radiusd.c
313
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
316
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
317
event_del(&l->ev);
usr.sbin/radiusd/radiusd.c
318
close(l->sock);
usr.sbin/radiusd/radiusd.c
320
l->sock = -1;
usr.sbin/rarpd/arptab.c
172
int l;
usr.sbin/rarpd/arptab.c
217
l = rtm->rtm_msglen;
usr.sbin/rarpd/arptab.c
220
if (write(s, (char *)&m_rtmsg, l) == -1) {
usr.sbin/rarpd/arptab.c
227
l = recv(s, (char *)&m_rtmsg, sizeof(m_rtmsg), MSG_DONTWAIT);
usr.sbin/rarpd/arptab.c
228
} while (l > 0 && (rtm->rtm_version != RTM_VERSION ||
usr.sbin/rarpd/arptab.c
230
if (l == -1) {
usr.sbin/rdate/ntpleaps.c
125
u_int64_t *l;
usr.sbin/rdate/ntpleaps.c
155
if ((l = reallocarray(NULL, r, sizeof(u_int64_t))) == NULL) {
usr.sbin/rdate/ntpleaps.c
171
free(l);
usr.sbin/rdate/ntpleaps.c
182
free(l);
usr.sbin/rdate/ntpleaps.c
186
l[m1] = s;
usr.sbin/rdate/ntpleaps.c
192
leapsecs = l;
usr.sbin/relayd/agentx_control.c
1005
u_int64_t l;
usr.sbin/relayd/agentx_control.c
1040
l = (u_int64_t)val;
usr.sbin/relayd/agentx_control.c
1042
&l, sizeof(l)) == -1)
usr.sbin/ripd/message.c
320
int l = len;
usr.sbin/ripd/message.c
341
l -= RIP_ENTRY_LEN;
usr.sbin/ripd/message.c
349
if (e->AFI == 0 && e->metric == ntohl(INFINITY) && l == 0) {
usr.sbin/ripd/message.c
355
for ( ; l >= 0; l -= RIP_ENTRY_LEN) {
usr.sbin/ripd/message.c
382
int l;
usr.sbin/ripd/message.c
406
l = len - sizeof(*e);
usr.sbin/ripd/message.c
408
for ( ; l >= 0; l -= RIP_ENTRY_LEN) {
usr.sbin/route6d/route6d.c
3048
#define MASKLEN(m, l) case m: do { i += l; break; } while (0)
usr.sbin/rpki-client/json.c
119
int i, l;
usr.sbin/rpki-client/json.c
122
if ((l = do_find(ARRAY, name)) > 0) {
usr.sbin/rpki-client/json.c
124
for (i = level - l; i > 0; i--)
usr.sbin/rpki-client/json.c
152
int i, l;
usr.sbin/rpki-client/json.c
155
if ((l = do_find(OBJECT, name)) > 0) {
usr.sbin/rpki-client/json.c
157
for (i = level - l; i >= 0; i--)
usr.sbin/rpki-client/ometric.c
201
struct olabel *l;
usr.sbin/rpki-client/ometric.c
211
if ((l = malloc(sizeof(*l))) == NULL)
usr.sbin/rpki-client/ometric.c
213
l->key = *keys;
usr.sbin/rpki-client/ometric.c
214
if ((l->value = strdup(*values)) == NULL)
usr.sbin/rpki-client/ometric.c
216
STAILQ_INSERT_TAIL(&ol->labels, l, entry);
usr.sbin/rpki-client/ometric.c
233
struct olabel *l;
usr.sbin/rpki-client/ometric.c
239
while ((l = STAILQ_FIRST(&ol->labels)) != NULL) {
usr.sbin/rpki-client/ometric.c
241
free(l->value);
usr.sbin/rpki-client/ometric.c
242
free(l);
usr.sbin/rpki-client/ometric.c
293
struct olabel *l;
usr.sbin/rpki-client/ometric.c
303
STAILQ_FOREACH(l, &ol->labels, entry) {
usr.sbin/rpki-client/ometric.c
304
if (fprintf(out, "%s%s=\"%s\"", comma, l->key,
usr.sbin/rpki-client/ometric.c
305
l->value) < 0)
usr.sbin/slowcgi/slowcgi.c
272
struct listener *l = NULL;
usr.sbin/slowcgi/slowcgi.c
375
l = calloc(1, sizeof(*l));
usr.sbin/slowcgi/slowcgi.c
376
if (l == NULL)
usr.sbin/slowcgi/slowcgi.c
379
event_set(&l->ev, fd, EV_READ | EV_PERSIST, slowcgi_accept, l);
usr.sbin/slowcgi/slowcgi.c
380
event_add(&l->ev, NULL);
usr.sbin/slowcgi/slowcgi.c
381
evtimer_set(&l->pause, slowcgi_paused, l);
usr.sbin/slowcgi/slowcgi.c
434
struct listener *l = arg;
usr.sbin/slowcgi/slowcgi.c
435
event_add(&l->ev, NULL);
usr.sbin/slowcgi/slowcgi.c
461
struct listener *l;
usr.sbin/slowcgi/slowcgi.c
468
l = arg;
usr.sbin/slowcgi/slowcgi.c
483
event_del(&l->ev);
usr.sbin/slowcgi/slowcgi.c
484
evtimer_add(&l->pause, &backoff);
usr.sbin/smtpd/config.c
226
struct listener *l;
usr.sbin/smtpd/config.c
234
while ((l = TAILQ_FIRST(env->sc_listeners)) != NULL) {
usr.sbin/smtpd/config.c
235
TAILQ_REMOVE(env->sc_listeners, l, entry);
usr.sbin/smtpd/config.c
236
free(l->tls_ciphers);
usr.sbin/smtpd/config.c
237
free(l->tls_protocols);
usr.sbin/smtpd/config.c
238
free(l->pki);
usr.sbin/smtpd/config.c
239
free(l);
usr.sbin/smtpd/dns.c
59
size_t l;
usr.sbin/smtpd/dns.c
69
l = strlcpy(buf, s, sizeof(buf));
usr.sbin/smtpd/dns.c
70
if (l >= sizeof(buf) || l == 0 || buf[l - 1] != ']')
usr.sbin/smtpd/dns.c
73
buf[l - 1] = '\0';
usr.sbin/smtpd/envelope.c
734
int l;
usr.sbin/smtpd/envelope.c
745
l = snprintf(*dest, *len, "%s: %s\n", field, buf);
usr.sbin/smtpd/envelope.c
746
if (l < 0 || (size_t) l >= *len)
usr.sbin/smtpd/envelope.c
748
*dest += l;
usr.sbin/smtpd/envelope.c
749
*len -= l;
usr.sbin/smtpd/ioev.c
161
struct linger l;
usr.sbin/smtpd/ioev.c
163
memset(&l, 0, sizeof(l));
usr.sbin/smtpd/ioev.c
164
if (setsockopt(fd, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) == -1)
usr.sbin/smtpd/mta.c
1229
struct mta_limits *l = c->relay->limits;
usr.sbin/smtpd/mta.c
1271
if (c->relay->domain->lastconn + l->conndelay_domain > nextconn) {
usr.sbin/smtpd/mta.c
1274
(unsigned long long) c->relay->domain->lastconn + l->conndelay_domain - now);
usr.sbin/smtpd/mta.c
1275
nextconn = c->relay->domain->lastconn + l->conndelay_domain;
usr.sbin/smtpd/mta.c
1277
if (c->relay->domain->nconn >= l->maxconn_per_domain) {
usr.sbin/smtpd/mta.c
1282
if (c->source->lastconn + l->conndelay_source > nextconn) {
usr.sbin/smtpd/mta.c
1285
(unsigned long long) c->source->lastconn + l->conndelay_source - now);
usr.sbin/smtpd/mta.c
1286
nextconn = c->source->lastconn + l->conndelay_source;
usr.sbin/smtpd/mta.c
1288
if (c->source->nconn >= l->maxconn_per_source) {
usr.sbin/smtpd/mta.c
1293
if (c->lastconn + l->conndelay_connector > nextconn) {
usr.sbin/smtpd/mta.c
1296
(unsigned long long) c->lastconn + l->conndelay_connector - now);
usr.sbin/smtpd/mta.c
1297
nextconn = c->lastconn + l->conndelay_connector;
usr.sbin/smtpd/mta.c
1299
if (c->nconn >= l->maxconn_per_connector) {
usr.sbin/smtpd/mta.c
1304
if (c->relay->lastconn + l->conndelay_relay > nextconn) {
usr.sbin/smtpd/mta.c
1307
(unsigned long long) c->relay->lastconn + l->conndelay_relay - now);
usr.sbin/smtpd/mta.c
1308
nextconn = c->relay->lastconn + l->conndelay_relay;
usr.sbin/smtpd/mta.c
1310
if (c->relay->nconn >= l->maxconn_per_relay) {
usr.sbin/smtpd/mta.c
1596
struct mta_limits *l = c->relay->limits;
usr.sbin/smtpd/mta.c
1657
(l->family && l->family != mx->host->sa->sa_family)) {
usr.sbin/smtpd/mta.c
1664
if (mx->host->nconn >= l->maxconn_per_host) {
usr.sbin/smtpd/mta.c
1671
if (mx->host->lastconn + l->conndelay_host > now) {
usr.sbin/smtpd/mta.c
1674
(unsigned long long) mx->host->lastconn + l->conndelay_host - now);
usr.sbin/smtpd/mta.c
1675
if (tm == 0 || mx->host->lastconn + l->conndelay_host < tm)
usr.sbin/smtpd/mta.c
1676
tm = mx->host->lastconn + l->conndelay_host;
usr.sbin/smtpd/mta.c
1698
if (route->nconn >= l->maxconn_per_route) {
usr.sbin/smtpd/mta.c
1706
if (route->lastconn + l->conndelay_route > now) {
usr.sbin/smtpd/mta.c
1709
(unsigned long long) route->lastconn + l->conndelay_route - now);
usr.sbin/smtpd/mta.c
1710
if (tm == 0 || route->lastconn + l->conndelay_route < tm)
usr.sbin/smtpd/mta.c
1711
tm = route->lastconn + l->conndelay_route;
usr.sbin/smtpd/mta.c
1716
if (route->lastdisc + l->discdelay_route > now) {
usr.sbin/smtpd/mta.c
1719
(unsigned long long) route->lastdisc + l->discdelay_route - now);
usr.sbin/smtpd/mta.c
1720
if (tm == 0 || route->lastdisc + l->discdelay_route < tm)
usr.sbin/smtpd/mta.c
1721
tm = route->lastdisc + l->discdelay_route;
usr.sbin/smtpd/parse.y
3271
struct listener *l = xcalloc(1, sizeof(*l));
usr.sbin/smtpd/parse.y
3273
l->ss.ss_family = AF_LOCAL;
usr.sbin/smtpd/parse.y
3274
l->ss.ss_len = sizeof(struct sockaddr *);
usr.sbin/smtpd/parse.y
3275
l->local = 1;
usr.sbin/smtpd/parse.y
3276
conf->sc_sock_listener = l;
usr.sbin/smtpd/parse.y
3277
config_listener(l, lo);
usr.sbin/smtpd/proxy.c
134
s->l = listener;
usr.sbin/smtpd/proxy.c
235
s->cb_accepted(s->l, s->fd, &s->ss, s->io);
usr.sbin/smtpd/proxy.c
268
s->cb_dropped(s->l, s->fd, &s->ss);
usr.sbin/smtpd/proxy.c
82
struct listener *l;
usr.sbin/smtpd/smtp.c
127
struct listener *l;
usr.sbin/smtpd/smtp.c
130
TAILQ_FOREACH(l, env->sc_listeners, entry) {
usr.sbin/smtpd/smtp.c
131
if ((l->fd = socket(l->ss.ss_family, SOCK_STREAM, 0)) == -1) {
usr.sbin/smtpd/smtp.c
139
if (l->flags & F_SSL)
usr.sbin/smtpd/smtp.c
140
smtp_setup_listener_tls(l);
usr.sbin/smtpd/smtp.c
143
if (setsockopt(l->fd, SOL_SOCKET, SO_REUSEADDR, &opt,
usr.sbin/smtpd/smtp.c
146
if (bind(l->fd, (struct sockaddr *)&l->ss, l->ss.ss_len) == -1)
usr.sbin/smtpd/smtp.c
152
smtp_setup_listener_tls(struct listener *l)
usr.sbin/smtpd/smtp.c
166
if (l->tls_ciphers)
usr.sbin/smtpd/smtp.c
167
ciphers = l->tls_ciphers;
usr.sbin/smtpd/smtp.c
171
if (l->tls_protocols) {
usr.sbin/smtpd/smtp.c
172
if (tls_config_parse_protocols(&protos, l->tls_protocols) == -1)
usr.sbin/smtpd/smtp.c
174
l->tls_protocols);
usr.sbin/smtpd/smtp.c
179
pki = l->pki[0];
usr.sbin/smtpd/smtp.c
188
for (i = 0; i < l->pkicount; i++) {
usr.sbin/smtpd/smtp.c
189
pki = l->pki[i];
usr.sbin/smtpd/smtp.c
202
free(l->pki);
usr.sbin/smtpd/smtp.c
203
l->pkicount = 0;
usr.sbin/smtpd/smtp.c
205
if (l->ca_name[0]) {
usr.sbin/smtpd/smtp.c
206
ca = dict_get(env->sc_ca_dict, l->ca_name);
usr.sbin/smtpd/smtp.c
216
if (l->flags & F_TLS_VERIFY)
usr.sbin/smtpd/smtp.c
219
l->tls = tls_server();
usr.sbin/smtpd/smtp.c
220
if (l->tls == NULL)
usr.sbin/smtpd/smtp.c
222
if (tls_configure(l->tls, config) == -1) {
usr.sbin/smtpd/smtp.c
223
fatalx("tls_configure: %s", tls_error(l->tls));
usr.sbin/smtpd/smtp.c
232
struct listener *l;
usr.sbin/smtpd/smtp.c
234
TAILQ_FOREACH(l, env->sc_listeners, entry) {
usr.sbin/smtpd/smtp.c
236
ss_to_text(&l->ss), ntohs(l->port), l->flags);
usr.sbin/smtpd/smtp.c
238
io_set_nonblocking(l->fd);
usr.sbin/smtpd/smtp.c
239
if (listen(l->fd, SMTPD_BACKLOG) == -1)
usr.sbin/smtpd/smtp.c
241
event_set(&l->ev, l->fd, EV_READ|EV_PERSIST, smtp_accept, l);
usr.sbin/smtpd/smtp.c
244
event_add(&l->ev, NULL);
usr.sbin/smtpd/smtp.c
256
struct listener *l;
usr.sbin/smtpd/smtp.c
261
TAILQ_FOREACH(l, env->sc_listeners, entry)
usr.sbin/smtpd/smtp.c
262
event_del(&l->ev);
usr.sbin/smtpd/smtp.c
268
struct listener *l;
usr.sbin/smtpd/smtp.c
273
TAILQ_FOREACH(l, env->sc_listeners, entry)
usr.sbin/smtpd/smtp.c
274
event_add(&l->ev, NULL);
usr.sbin/smtpd/table_proc.c
100
if (*l != '|')
usr.sbin/smtpd/table_proc.c
102
l++;
usr.sbin/smtpd/table_proc.c
105
if (strncmp(l, priv->lastid, len) != 0)
usr.sbin/smtpd/table_proc.c
107
l += len;
usr.sbin/smtpd/table_proc.c
109
if (*l != '|')
usr.sbin/smtpd/table_proc.c
111
return (++l);
usr.sbin/smtpd/table_proc.c
86
const char *l;
usr.sbin/smtpd/table_proc.c
93
l = priv->line;
usr.sbin/smtpd/table_proc.c
96
if (strncmp(l, type, len) != 0)
usr.sbin/smtpd/table_proc.c
98
l += len;
usr.sbin/smtpd/to.c
590
size_t l;
usr.sbin/smtpd/to.c
592
l = strlen(s);
usr.sbin/smtpd/to.c
593
if (alias_is_error(expandnode, s, l) ||
usr.sbin/smtpd/to.c
594
alias_is_include(expandnode, s, l) ||
usr.sbin/smtpd/to.c
595
alias_is_filter(expandnode, s, l) ||
usr.sbin/smtpd/to.c
596
alias_is_filename(expandnode, s, l) ||
usr.sbin/smtpd/to.c
597
alias_is_address(expandnode, s, l) ||
usr.sbin/smtpd/to.c
598
alias_is_username(expandnode, s, l))
usr.sbin/smtpd/util.c
140
size_t l;
usr.sbin/smtpd/util.c
145
for (l = strlen(s); l; l--) {
usr.sbin/smtpd/util.c
146
if (!isspace((unsigned char)s[l-1]))
usr.sbin/smtpd/util.c
148
s[l-1] = '\0';
usr.sbin/syslogd/log.c
107
l = vsnprintf(ebuf, sizeof(ebuf), emsg, ap);
usr.sbin/syslogd/log.c
108
if (l < sizeof(ebuf))
usr.sbin/syslogd/log.c
109
snprintf(ebuf+l, sizeof(ebuf)-l, ": %s",
usr.sbin/syslogd/log.c
161
size_t l;
usr.sbin/syslogd/log.c
169
l = vsnprintf(debug_ebuf + debug_length,
usr.sbin/syslogd/log.c
171
if (l < ERRBUFSIZE - debug_length)
usr.sbin/syslogd/log.c
172
debug_length += l;
usr.sbin/syslogd/log.c
98
size_t l;
usr.sbin/syslogd/syslogd.c
1453
int l;
usr.sbin/syslogd/syslogd.c
1483
if (buf < end && !((l = octet_counting(bufev->output, &p, 0)) > 0 &&
usr.sbin/syslogd/syslogd.c
1484
p[l-1] == '\n')) {
usr.sbin/syslogd/syslogd.c
1725
int l;
usr.sbin/syslogd/syslogd.c
1729
l = snprintf(msg.m_msg, sizeof(msg.m_msg), "%s: ", _PATH_UNIX);
usr.sbin/syslogd/syslogd.c
1730
if (l < 0 || l >= sizeof(msg.m_msg)) {
usr.sbin/syslogd/syslogd.c
1732
l = 0;
usr.sbin/syslogd/syslogd.c
1734
lp = msg.m_msg + l;
usr.sbin/syslogd/syslogd.c
1760
int l;
usr.sbin/syslogd/syslogd.c
1765
l = snprintf(msg.m_msg, sizeof(msg.m_msg), "%s[%d]: ", prog, getpid());
usr.sbin/syslogd/syslogd.c
1766
if (l < 0 || l >= sizeof(msg.m_msg))
usr.sbin/syslogd/syslogd.c
1767
l = 0;
usr.sbin/syslogd/syslogd.c
1768
l = vsnprintf(msg.m_msg + l, sizeof(msg.m_msg) - l, fmt, ap);
usr.sbin/syslogd/syslogd.c
1769
if (l < 0)
usr.sbin/syslogd/syslogd.c
1789
size_t l;
usr.sbin/syslogd/syslogd.c
1792
l = strftime(timestamp, 33, "%FT%T", tm);
usr.sbin/syslogd/syslogd.c
1797
snprintf(timestamp + l, 33 - l, ".%03ldZ", now.tv_usec / 1000);
usr.sbin/syslogd/syslogd.c
1918
int l, retryonce;
usr.sbin/syslogd/syslogd.c
1927
l = snprintf(pribuf, sizeof(pribuf), "<%d>", f->f_prevpri);
usr.sbin/syslogd/syslogd.c
1928
if (l < 0)
usr.sbin/syslogd/syslogd.c
1929
l = strlcpy(pribuf, "<13>", sizeof(pribuf));
usr.sbin/syslogd/syslogd.c
1930
if (l >= sizeof(pribuf))
usr.sbin/syslogd/syslogd.c
1931
l = sizeof(pribuf) - 1;
usr.sbin/syslogd/syslogd.c
1933
v->iov_len = l;
usr.sbin/syslogd/syslogd.c
1936
l = snprintf(greetings, sizeof(greetings),
usr.sbin/syslogd/syslogd.c
1939
if (l < 0)
usr.sbin/syslogd/syslogd.c
1940
l = strlcpy(greetings,
usr.sbin/syslogd/syslogd.c
1943
if (l >= sizeof(greetings))
usr.sbin/syslogd/syslogd.c
1944
l = sizeof(greetings) - 1;
usr.sbin/syslogd/syslogd.c
1946
v->iov_len = l;
usr.sbin/syslogd/syslogd.c
2011
l = snprintf(repbuf, sizeof(repbuf),
usr.sbin/syslogd/syslogd.c
2013
if (l < 0)
usr.sbin/syslogd/syslogd.c
2014
l = strlcpy(repbuf, "last message repeated",
usr.sbin/syslogd/syslogd.c
2016
if (l >= sizeof(repbuf))
usr.sbin/syslogd/syslogd.c
2017
l = sizeof(repbuf) - 1;
usr.sbin/syslogd/syslogd.c
2019
v->iov_len = l;
usr.sbin/syslogd/syslogd.c
2063
l = iov[0].iov_len + iov[1].iov_len + iov[2].iov_len +
usr.sbin/syslogd/syslogd.c
2066
if (l > MAX_UDPMSG) {
usr.sbin/syslogd/syslogd.c
2067
l -= MAX_UDPMSG;
usr.sbin/syslogd/syslogd.c
2068
if (iov[5].iov_len > l)
usr.sbin/syslogd/syslogd.c
2069
iov[5].iov_len -= l;
usr.sbin/syslogd/syslogd.c
2131
l = evbuffer_add_printf(f->f_un.f_forw.f_bufev->output,
usr.sbin/syslogd/syslogd.c
2140
if (l < 0) {
usr.sbin/syslogd/syslogd.c
2245
l = snprintf(line, sizeof(line),
usr.sbin/syslogd/syslogd.c
2250
if (l < 0)
usr.sbin/syslogd/syslogd.c
2251
l = strlcpy(line, iov[5].iov_base, sizeof(line));
usr.sbin/syslogd/syslogd.c
3529
size_t l;
usr.sbin/syslogd/syslogd.c
3534
l = strlen(line);
usr.sbin/syslogd/syslogd.c
3535
if (l + 2 > (CTL_REPLY_MAXSIZE - ctl_reply_size)) {
usr.sbin/syslogd/syslogd.c
3540
memcpy(ctl_reply + ctl_reply_size, line, l);
usr.sbin/syslogd/syslogd.c
3541
memcpy(ctl_reply + ctl_reply_size + l, "\n", 2);
usr.sbin/syslogd/syslogd.c
3542
ctl_reply_size += l + 1;
usr.sbin/tcpdump/interface.h
143
#define TTEST2(var, l) (snapend - (l) <= snapend && \
usr.sbin/tcpdump/interface.h
144
(const u_char *)&(var) <= snapend - (l))
usr.sbin/tcpdump/interface.h
150
#define TCHECK2(var, l) if (!TTEST2(var, l)) goto trunc
usr.sbin/tcpdump/nameser.h
257
#define GETLONG(l, cp) { \
usr.sbin/tcpdump/nameser.h
259
(l) = (((u_int32_t)t_cp[0]) << 24) \
usr.sbin/tcpdump/nameser.h
278
#define PUTLONG(l, cp) { \
usr.sbin/tcpdump/nameser.h
279
u_int32_t t_l = (u_int32_t)(l); \
usr.sbin/tcpdump/print-802_11.c
1077
#define ELEM_CHECK(l) if (len != l) goto trunc
usr.sbin/tcpdump/print-cdp.c
142
cdp_print_addr(const u_char * p, int l)
usr.sbin/tcpdump/print-cdp.c
145
const u_char * endp = p+l;
usr.sbin/tcpdump/print-cdp.c
192
cdp_print_prefixes(const u_char * p, int l)
usr.sbin/tcpdump/print-cdp.c
194
printf(" IPv4 Prefixes (%d):", l/5);
usr.sbin/tcpdump/print-cdp.c
196
while (l > 0) {
usr.sbin/tcpdump/print-cdp.c
197
if (l >= 5)
usr.sbin/tcpdump/print-cdp.c
199
l-=5; p+=5;
usr.sbin/tcpdump/print-cdp.c
42
int cdp_print_addr(const u_char * p, int l);
usr.sbin/tcpdump/print-cdp.c
43
void cdp_print_prefixes(const u_char * p, int l);
usr.sbin/tcpdump/print-dhcp6.c
125
dhcp6_iaid(const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
129
if (l < sizeof(iaid)) {
usr.sbin/tcpdump/print-dhcp6.c
135
l -= sizeof(iaid);
usr.sbin/tcpdump/print-dhcp6.c
139
if (l < sizeof(t1)) {
usr.sbin/tcpdump/print-dhcp6.c
145
l -= sizeof(t1);
usr.sbin/tcpdump/print-dhcp6.c
149
if (l < sizeof(t2)) {
usr.sbin/tcpdump/print-dhcp6.c
155
l -= sizeof(t2);
usr.sbin/tcpdump/print-dhcp6.c
168
dhcp6opt_duid(uint16_t code, const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
174
if (l < sizeof(duid)) {
usr.sbin/tcpdump/print-dhcp6.c
181
l -= sizeof(duid);
usr.sbin/tcpdump/print-dhcp6.c
187
if (l < sizeof(htype)) {
usr.sbin/tcpdump/print-dhcp6.c
193
l -= sizeof(htype);
usr.sbin/tcpdump/print-dhcp6.c
195
if (l < sizeof(time)) {
usr.sbin/tcpdump/print-dhcp6.c
201
l -= sizeof(time);
usr.sbin/tcpdump/print-dhcp6.c
207
if (l == 6) {
usr.sbin/tcpdump/print-dhcp6.c
217
if (l < sizeof(en)) {
usr.sbin/tcpdump/print-dhcp6.c
223
l -= sizeof(en);
usr.sbin/tcpdump/print-dhcp6.c
231
if (l < sizeof(htype)) {
usr.sbin/tcpdump/print-dhcp6.c
237
l -= sizeof(htype);
usr.sbin/tcpdump/print-dhcp6.c
241
if (l == 6) {
usr.sbin/tcpdump/print-dhcp6.c
251
if (l >= 16) {
usr.sbin/tcpdump/print-dhcp6.c
262
if (l == 16)
usr.sbin/tcpdump/print-dhcp6.c
266
l -= 16;
usr.sbin/tcpdump/print-dhcp6.c
277
dhcp6opt_default(code, p, l);
usr.sbin/tcpdump/print-dhcp6.c
281
dhcp6opt_ia_na_opt_iaaddr(const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
287
if (l < sizeof(*ia)) {
usr.sbin/tcpdump/print-dhcp6.c
293
l -= sizeof(*ia);
usr.sbin/tcpdump/print-dhcp6.c
301
if (l < sizeof(pltime)) {
usr.sbin/tcpdump/print-dhcp6.c
307
l -= sizeof(pltime);
usr.sbin/tcpdump/print-dhcp6.c
316
if (l < sizeof(vltime)) {
usr.sbin/tcpdump/print-dhcp6.c
322
l -= sizeof(vltime);
usr.sbin/tcpdump/print-dhcp6.c
330
if (l > 0) {
usr.sbin/tcpdump/print-dhcp6.c
332
dhcp6opt_default(0, p, l);
usr.sbin/tcpdump/print-dhcp6.c
337
dhcp6opt_ia_na_opt(const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
341
if (l < sizeof(opt)) {
usr.sbin/tcpdump/print-dhcp6.c
347
l -= sizeof(opt);
usr.sbin/tcpdump/print-dhcp6.c
349
if (l < sizeof(len)) {
usr.sbin/tcpdump/print-dhcp6.c
355
l -= sizeof(len);
usr.sbin/tcpdump/print-dhcp6.c
358
if (l < len) {
usr.sbin/tcpdump/print-dhcp6.c
377
dhcp6opt_ia_na(uint16_t code, const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
381
len = dhcp6_iaid(p, l);
usr.sbin/tcpdump/print-dhcp6.c
386
l -= len;
usr.sbin/tcpdump/print-dhcp6.c
388
if (l == 0)
usr.sbin/tcpdump/print-dhcp6.c
391
while (l > 0) {
usr.sbin/tcpdump/print-dhcp6.c
392
len = dhcp6opt_ia_na_opt(p, l);
usr.sbin/tcpdump/print-dhcp6.c
397
l -= len;
usr.sbin/tcpdump/print-dhcp6.c
438
dhcp6opt_status_code(uint16_t code, const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
443
if (l < sizeof(scode)) {
usr.sbin/tcpdump/print-dhcp6.c
449
l -= sizeof(scode);
usr.sbin/tcpdump/print-dhcp6.c
478
if (l == 0)
usr.sbin/tcpdump/print-dhcp6.c
482
for (i = 0; i < l; i++) {
usr.sbin/tcpdump/print-dhcp6.c
493
dhcp6opt_dns_servers(uint16_t code, const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
499
if (l < sizeof(*ia)) {
usr.sbin/tcpdump/print-dhcp6.c
505
l -= sizeof(*ia);
usr.sbin/tcpdump/print-dhcp6.c
514
if (l == 0)
usr.sbin/tcpdump/print-dhcp6.c
522
dhcp6opt_ia_pd_opt_prefix(const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
529
if (l < sizeof(pltime)) {
usr.sbin/tcpdump/print-dhcp6.c
535
l -= sizeof(pltime);
usr.sbin/tcpdump/print-dhcp6.c
544
if (l < sizeof(vltime)) {
usr.sbin/tcpdump/print-dhcp6.c
550
l -= sizeof(vltime);
usr.sbin/tcpdump/print-dhcp6.c
559
if (l < sizeof(plen)) {
usr.sbin/tcpdump/print-dhcp6.c
565
l -= sizeof(plen);
usr.sbin/tcpdump/print-dhcp6.c
567
if (l < sizeof(ia)) {
usr.sbin/tcpdump/print-dhcp6.c
573
l -= sizeof(ia);
usr.sbin/tcpdump/print-dhcp6.c
582
if (l > 0) {
usr.sbin/tcpdump/print-dhcp6.c
584
dhcp6opt_default(0, p, l);
usr.sbin/tcpdump/print-dhcp6.c
589
dhcp6opt_ia_pd_opt(const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
593
if (l < sizeof(opt)) {
usr.sbin/tcpdump/print-dhcp6.c
599
l -= sizeof(opt);
usr.sbin/tcpdump/print-dhcp6.c
601
if (l < sizeof(len)) {
usr.sbin/tcpdump/print-dhcp6.c
607
l -= sizeof(len);
usr.sbin/tcpdump/print-dhcp6.c
610
if (l < len) {
usr.sbin/tcpdump/print-dhcp6.c
629
dhcp6opt_ia_pd(uint16_t code, const u_char *p, u_int l)
usr.sbin/tcpdump/print-dhcp6.c
633
len = dhcp6_iaid(p, l);
usr.sbin/tcpdump/print-dhcp6.c
638
l -= len;
usr.sbin/tcpdump/print-dhcp6.c
640
while (l > 0) {
usr.sbin/tcpdump/print-dhcp6.c
641
int len = dhcp6opt_ia_pd_opt(p, l);
usr.sbin/tcpdump/print-dhcp6.c
646
l -= len;
usr.sbin/tcpdump/print-dhcp6.c
654
int l = snapend - cp;
usr.sbin/tcpdump/print-dhcp6.c
659
if (l < sizeof(code))
usr.sbin/tcpdump/print-dhcp6.c
667
l -= sizeof(code);
usr.sbin/tcpdump/print-dhcp6.c
669
if (l < sizeof(len))
usr.sbin/tcpdump/print-dhcp6.c
677
l -= sizeof(len);
usr.sbin/tcpdump/print-dhcp6.c
691
if (l < len)
usr.sbin/tcpdump/print-dhcp6.c
701
l -= len;
usr.sbin/tcpdump/print-dhcp6.c
738
int l = snapend - cp;
usr.sbin/tcpdump/print-dhcp6.c
743
if (l < sizeof(msgtype))
usr.sbin/tcpdump/print-dhcp6.c
795
if (l < sizeof(hdr))
usr.sbin/tcpdump/print-domain.c
160
u_int i, l;
usr.sbin/tcpdump/print-domain.c
167
if ((l = labellen(cp)) == (u_int)-1)
usr.sbin/tcpdump/print-domain.c
174
rp = cp + l;
usr.sbin/tcpdump/print-domain.c
187
if ((l = labellen(cp)) == (u_int)-1)
usr.sbin/tcpdump/print-domain.c
219
if (fn_printn(cp, l, snapend))
usr.sbin/tcpdump/print-domain.c
223
cp += l;
usr.sbin/tcpdump/print-domain.c
224
chars_processed += l;
usr.sbin/tcpdump/print-domain.c
226
if ((l = labellen(cp)) == (u_int)-1)
usr.sbin/tcpdump/print-domain.c
233
rp += l + 1;
usr.sbin/tcpdump/print-gre.c
122
u_int l;
usr.sbin/tcpdump/print-gre.c
124
l = snapend - p;
usr.sbin/tcpdump/print-gre.c
128
l -= sizeof(flags);
usr.sbin/tcpdump/print-gre.c
142
if (l < sizeof(proto))
usr.sbin/tcpdump/print-gre.c
146
l -= sizeof(proto);
usr.sbin/tcpdump/print-gre.c
153
if (l < 2)
usr.sbin/tcpdump/print-gre.c
158
l -= 2;
usr.sbin/tcpdump/print-gre.c
161
if (l < 2)
usr.sbin/tcpdump/print-gre.c
166
l -= 2;
usr.sbin/tcpdump/print-gre.c
173
if (l < sizeof(key))
usr.sbin/tcpdump/print-gre.c
177
l -= sizeof(key);
usr.sbin/tcpdump/print-gre.c
187
if (l < 4)
usr.sbin/tcpdump/print-gre.c
191
l -= 4;
usr.sbin/tcpdump/print-gre.c
201
if (l < 4)
usr.sbin/tcpdump/print-gre.c
207
l -= 4;
usr.sbin/tcpdump/print-gre.c
213
gre_sre_print(af, sreoff, srelen, p, l);
usr.sbin/tcpdump/print-gre.c
215
if (l < srelen)
usr.sbin/tcpdump/print-gre.c
218
l -= srelen;
usr.sbin/tcpdump/print-gre.c
240
if (l == 0)
usr.sbin/tcpdump/print-gre.c
246
if (l < sizeof(*wccp)) {
usr.sbin/tcpdump/print-gre.c
259
l -= sizeof(*wccp);
usr.sbin/tcpdump/print-gre.c
289
cdp_print(p, length, l, 0);
usr.sbin/tcpdump/print-gre.c
310
int l;
usr.sbin/tcpdump/print-gre.c
312
l = snapend - p;
usr.sbin/tcpdump/print-gre.c
316
l -= sizeof(flags);
usr.sbin/tcpdump/print-gre.c
319
if (l < sizeof(proto))
usr.sbin/tcpdump/print-gre.c
324
l -= sizeof(proto);
usr.sbin/tcpdump/print-gre.c
350
int l;
usr.sbin/tcpdump/print-gre.c
352
l = snapend - p;
usr.sbin/tcpdump/print-gre.c
384
if (l < sizeof(len))
usr.sbin/tcpdump/print-gre.c
388
l -= sizeof(len);
usr.sbin/tcpdump/print-gre.c
394
if (l < 2)
usr.sbin/tcpdump/print-gre.c
398
l -= 2;
usr.sbin/tcpdump/print-gre.c
402
if (l < 4)
usr.sbin/tcpdump/print-gre.c
406
l -= 4;
usr.sbin/tcpdump/print-gre.c
411
if (l < 4)
usr.sbin/tcpdump/print-gre.c
415
l -= 4;
usr.sbin/tcpdump/print-gre.c
441
int l;
usr.sbin/tcpdump/print-gre.c
443
l = snapend - p;
usr.sbin/tcpdump/print-gre.c
453
if (l < sizeof(len))
usr.sbin/tcpdump/print-gre.c
458
l -= sizeof(len);
usr.sbin/tcpdump/print-gre.c
461
if (l < sizeof(id))
usr.sbin/tcpdump/print-gre.c
466
l -= sizeof(id);
usr.sbin/tcpdump/print-gre.c
518
u_int l;
usr.sbin/tcpdump/print-gre.c
528
l = snapend - bp;
usr.sbin/tcpdump/print-gre.c
529
if (l < sizeof(hdr))
usr.sbin/tcpdump/print-gre.c
534
l -= sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
574
if (l < sizeof(hdr))
usr.sbin/tcpdump/print-gre.c
579
l -= sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
716
int l = snapend - p;
usr.sbin/tcpdump/print-gre.c
720
if (l < sizeof(*vh))
usr.sbin/tcpdump/print-gre.c
819
geneve_options_print(const u_char *p, u_int l)
usr.sbin/tcpdump/print-gre.c
821
if (l == 0)
usr.sbin/tcpdump/print-gre.c
828
if (l < sizeof(*go))
usr.sbin/tcpdump/print-gre.c
833
l -= sizeof(*go);
usr.sbin/tcpdump/print-gre.c
845
if (l < sizeof(w))
usr.sbin/tcpdump/print-gre.c
850
l -= sizeof(w);
usr.sbin/tcpdump/print-gre.c
855
} while (l > 0);
usr.sbin/tcpdump/print-gre.c
868
int l = snapend - p;
usr.sbin/tcpdump/print-gre.c
872
if (l < sizeof(*gh))
usr.sbin/tcpdump/print-gre.c
882
l -= sizeof(*gh);
usr.sbin/tcpdump/print-gre.c
904
if (l < optlen)
usr.sbin/tcpdump/print-gre.c
95
int l;
usr.sbin/tcpdump/print-gre.c
97
l = snapend - p;
usr.sbin/tcpdump/print-gre.c
99
if (l < sizeof(vers)) {
usr.sbin/tcpdump/print-ike.c
194
#define TCHECK(var, l) if ((u_int8_t *)&(var) > ep - l) goto trunc
usr.sbin/tcpdump/print-lwres.c
202
lwres_printname(size_t l, const char *p0)
usr.sbin/tcpdump/print-lwres.c
209
if (p + l + 1 > (const char *)snapend)
usr.sbin/tcpdump/print-lwres.c
213
for (i = 0; i < l; i++)
usr.sbin/tcpdump/print-lwres.c
226
u_int16_t l;
usr.sbin/tcpdump/print-lwres.c
231
l = EXTRACT_16BITS(p);
usr.sbin/tcpdump/print-lwres.c
232
advance = lwres_printname(l, p + 2);
usr.sbin/tcpdump/print-lwres.c
246
u_int16_t l;
usr.sbin/tcpdump/print-lwres.c
252
l = EXTRACT_16BITS(p);
usr.sbin/tcpdump/print-lwres.c
253
if (p + 2 + l > (u_int8_t *)snapend)
usr.sbin/tcpdump/print-lwres.c
256
for (i = 0; i < l; i++)
usr.sbin/tcpdump/print-lwres.c
269
u_int16_t l;
usr.sbin/tcpdump/print-lwres.c
276
l = EXTRACT_16BITS(p);
usr.sbin/tcpdump/print-lwres.c
277
if (p + 2 + l > (u_int8_t *)snapend)
usr.sbin/tcpdump/print-lwres.c
280
dbuf = malloc(l);
usr.sbin/tcpdump/print-lwres.c
284
b64len = (l + 2) / 3 * 4 + 1;
usr.sbin/tcpdump/print-lwres.c
292
memcpy(dbuf, p, l);
usr.sbin/tcpdump/print-lwres.c
294
i = b64_ntop (dbuf, l, b64buf, b64len);
usr.sbin/tcpdump/print-lwres.c
304
return l + 2;
usr.sbin/tcpdump/print-lwres.c
313
u_int16_t l;
usr.sbin/tcpdump/print-lwres.c
318
l = ntohs(ap->length);
usr.sbin/tcpdump/print-lwres.c
321
if (p + l > (const char *)snapend)
usr.sbin/tcpdump/print-lwres.c
335
for (i = 0; i < l; i++)
usr.sbin/tcpdump/print-lwres.c
400
u_int32_t l;
usr.sbin/tcpdump/print-lwres.c
414
l = ntohs(gabn->namelen);
usr.sbin/tcpdump/print-lwres.c
437
advance = lwres_printname(l, s);
usr.sbin/tcpdump/print-lwres.c
470
u_int32_t l, na;
usr.sbin/tcpdump/print-lwres.c
486
l = ntohs(gabn->realnamelen);
usr.sbin/tcpdump/print-lwres.c
497
advance = lwres_printname(l, s);
usr.sbin/tcpdump/print-lwres.c
526
l = ntohs(gnba->realnamelen);
usr.sbin/tcpdump/print-lwres.c
536
advance = lwres_printname(l, s);
usr.sbin/tcpdump/print-nsh.c
106
int l = snapend - p;
usr.sbin/tcpdump/print-nsh.c
110
if (l < sizeof(nsh))
usr.sbin/tcpdump/print-nsh.c
143
if (l < len)
usr.sbin/tcpdump/print-nsh.c
151
l -= sizeof(nsh);
usr.sbin/tcpdump/print-nsh.c
180
l -= len;
usr.sbin/tcpdump/print-nsh.c
217
default_print(p, l);
usr.sbin/tcpdump/print-nsh.c
243
nsh_print_mdtype2(const u_char *p, u_int l)
usr.sbin/tcpdump/print-nsh.c
245
if (l == 0)
usr.sbin/tcpdump/print-nsh.c
252
if (l < sizeof(h))
usr.sbin/tcpdump/print-nsh.c
257
l -= sizeof(h);
usr.sbin/tcpdump/print-nsh.c
268
if (l < len)
usr.sbin/tcpdump/print-nsh.c
272
l -= len;
usr.sbin/tcpdump/print-nsh.c
273
} while (l > 0);
usr.sbin/tcpdump/print-nsh.c
281
nsh_print_bytes(const void *b, u_int l)
usr.sbin/tcpdump/print-nsh.c
286
for (i = 0; i < l; i++) {
usr.sbin/tcpdump/print-ppp.c
1006
if (l < sizeof(type) + sizeof(length))
usr.sbin/tcpdump/print-ppp.c
1012
l -= (sizeof(type) + sizeof(length));
usr.sbin/tcpdump/print-ppp.c
1018
if (l < IP_LEN)
usr.sbin/tcpdump/print-ppp.c
1024
l -= IP_LEN;
usr.sbin/tcpdump/print-ppp.c
1026
if (l < IP_LEN)
usr.sbin/tcpdump/print-ppp.c
1034
if (l < sizeof(type))
usr.sbin/tcpdump/print-ppp.c
1054
if (l < IP_LEN)
usr.sbin/tcpdump/print-ppp.c
1077
handle_ipv6cp(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
1081
if (ppp_cp_header(&pc, p, l, &ppp_cp_ipv6cp) == -1)
usr.sbin/tcpdump/print-ppp.c
1084
if (l > pc.len)
usr.sbin/tcpdump/print-ppp.c
1085
l = pc.len;
usr.sbin/tcpdump/print-ppp.c
1088
l -= sizeof(pc);
usr.sbin/tcpdump/print-ppp.c
1095
while (l > 0) {
usr.sbin/tcpdump/print-ppp.c
1098
optlen = print_ipv6cp_config_options(p, l);
usr.sbin/tcpdump/print-ppp.c
1105
l -= optlen;
usr.sbin/tcpdump/print-ppp.c
1123
print_ipv6cp_config_options(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
1127
if (l < sizeof(type))
usr.sbin/tcpdump/print-ppp.c
1140
if (l < sizeof(type) + sizeof(length))
usr.sbin/tcpdump/print-ppp.c
1146
l -= (sizeof(type) + sizeof(length));
usr.sbin/tcpdump/print-ppp.c
1152
if (l < 8)
usr.sbin/tcpdump/print-ppp.c
1193
u_int l = h->caplen;
usr.sbin/tcpdump/print-ppp.c
1197
snapend = p + l;
usr.sbin/tcpdump/print-ppp.c
1204
if (l < sizeof(struct pppoe_header)) {
usr.sbin/tcpdump/print-ppp.c
1256
pppoe_if_print(u_short ethertype, const u_char *p, u_int length, u_int l)
usr.sbin/tcpdump/print-ppp.c
1265
if (l < sizeof(struct pppoe_header))
usr.sbin/tcpdump/print-ppp.c
1299
l -= sizeof(struct pppoe_header);
usr.sbin/tcpdump/print-ppp.c
1308
if (l > pppoe_len)
usr.sbin/tcpdump/print-ppp.c
1309
l = pppoe_len;
usr.sbin/tcpdump/print-ppp.c
1312
while (l > 0) {
usr.sbin/tcpdump/print-ppp.c
1316
if (l < 4)
usr.sbin/tcpdump/print-ppp.c
1322
l -= 4;
usr.sbin/tcpdump/print-ppp.c
1324
if (l < t_len)
usr.sbin/tcpdump/print-ppp.c
1385
l -= t_len;
usr.sbin/tcpdump/print-ppp.c
1403
int l;
usr.sbin/tcpdump/print-ppp.c
1405
l = snapend - p;
usr.sbin/tcpdump/print-ppp.c
1407
if (l < sizeof(address) + sizeof(control))
usr.sbin/tcpdump/print-ppp.c
1414
l -= sizeof(address) + sizeof(control);
usr.sbin/tcpdump/print-ppp.c
1444
int l = h->caplen;
usr.sbin/tcpdump/print-ppp.c
1447
snapend = p + l;
usr.sbin/tcpdump/print-ppp.c
1457
default_print(p, l);
usr.sbin/tcpdump/print-ppp.c
343
int l;
usr.sbin/tcpdump/print-ppp.c
345
l = snapend - p;
usr.sbin/tcpdump/print-ppp.c
347
if (l < sizeof(proto)) {
usr.sbin/tcpdump/print-ppp.c
355
l -= sizeof(proto);
usr.sbin/tcpdump/print-ppp.c
375
handle_lcp(p, l);
usr.sbin/tcpdump/print-ppp.c
378
handle_chap(p, l);
usr.sbin/tcpdump/print-ppp.c
381
handle_eap(p, l);
usr.sbin/tcpdump/print-ppp.c
384
handle_pap(p, l);
usr.sbin/tcpdump/print-ppp.c
387
handle_ipcp(p, l);
usr.sbin/tcpdump/print-ppp.c
390
handle_ipv6cp(p, l);
usr.sbin/tcpdump/print-ppp.c
393
cdp_print(p, length, l, 0);
usr.sbin/tcpdump/print-ppp.c
399
ppp_cp_header(struct ppp_control *pc, const u_char *p, int l,
usr.sbin/tcpdump/print-ppp.c
407
if (l < len)
usr.sbin/tcpdump/print-ppp.c
418
if (l < len)
usr.sbin/tcpdump/print-ppp.c
426
if (l < len)
usr.sbin/tcpdump/print-ppp.c
443
handle_lcp(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
448
if (ppp_cp_header(&pc, p, l, &ppp_cp_lcp) == -1)
usr.sbin/tcpdump/print-ppp.c
451
if (l > pc.len)
usr.sbin/tcpdump/print-ppp.c
452
l = pc.len;
usr.sbin/tcpdump/print-ppp.c
455
l -= sizeof(pc);
usr.sbin/tcpdump/print-ppp.c
462
while (l > 0) {
usr.sbin/tcpdump/print-ppp.c
465
optlen = print_lcp_config_options(p, l);
usr.sbin/tcpdump/print-ppp.c
472
l -= optlen;
usr.sbin/tcpdump/print-ppp.c
477
if (l < 4)
usr.sbin/tcpdump/print-ppp.c
481
l -= 4;
usr.sbin/tcpdump/print-ppp.c
489
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
495
l--;
usr.sbin/tcpdump/print-ppp.c
515
print_lcp_config_options(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
520
if (l < sizeof(type))
usr.sbin/tcpdump/print-ppp.c
529
if (l < sizeof(type) + sizeof(length))
usr.sbin/tcpdump/print-ppp.c
537
if (l > length)
usr.sbin/tcpdump/print-ppp.c
538
l = length;
usr.sbin/tcpdump/print-ppp.c
541
l -= sizeof(type) + sizeof(length);
usr.sbin/tcpdump/print-ppp.c
547
if (l < 2)
usr.sbin/tcpdump/print-ppp.c
555
if (l < sizeof(proto))
usr.sbin/tcpdump/print-ppp.c
569
l -= sizeof(proto);
usr.sbin/tcpdump/print-ppp.c
601
if (l < sizeof(proto))
usr.sbin/tcpdump/print-ppp.c
616
if (l < 4)
usr.sbin/tcpdump/print-ppp.c
645
handle_chap(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
651
if (ppp_cp_header(&pc, p, l, &ppp_cp_chap) == -1)
usr.sbin/tcpdump/print-ppp.c
654
if (l > pc.len)
usr.sbin/tcpdump/print-ppp.c
655
l = pc.len;
usr.sbin/tcpdump/print-ppp.c
658
l -= sizeof(pc);
usr.sbin/tcpdump/print-ppp.c
663
if (l < sizeof(vsize))
usr.sbin/tcpdump/print-ppp.c
673
l -= sizeof(vsize);
usr.sbin/tcpdump/print-ppp.c
677
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
683
l--;
usr.sbin/tcpdump/print-ppp.c
688
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
694
l--;
usr.sbin/tcpdump/print-ppp.c
701
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
707
l--;
usr.sbin/tcpdump/print-ppp.c
726
handle_eap(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
732
if (ppp_cp_header(&pc, p, l, &ppp_cp_eap) == -1)
usr.sbin/tcpdump/print-ppp.c
735
if (l > pc.len)
usr.sbin/tcpdump/print-ppp.c
736
l = pc.len;
usr.sbin/tcpdump/print-ppp.c
739
l -= sizeof(pc);
usr.sbin/tcpdump/print-ppp.c
744
if (l < sizeof(type))
usr.sbin/tcpdump/print-ppp.c
749
l -= sizeof(type);
usr.sbin/tcpdump/print-ppp.c
768
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
774
l--;
usr.sbin/tcpdump/print-ppp.c
779
if (l < sizeof(type))
usr.sbin/tcpdump/print-ppp.c
788
if (l < sizeof(vsize))
usr.sbin/tcpdump/print-ppp.c
793
l -= sizeof(vsize);
usr.sbin/tcpdump/print-ppp.c
797
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
803
l--;
usr.sbin/tcpdump/print-ppp.c
827
handle_pap(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
833
if (ppp_cp_header(&pc, p, l, &ppp_cp_pap) == -1)
usr.sbin/tcpdump/print-ppp.c
836
if (l > pc.len)
usr.sbin/tcpdump/print-ppp.c
837
l = pc.len;
usr.sbin/tcpdump/print-ppp.c
840
l -= sizeof(pc);
usr.sbin/tcpdump/print-ppp.c
844
if (l < sizeof(x)) /* Peer-ID Length */
usr.sbin/tcpdump/print-ppp.c
850
l -= sizeof(x);
usr.sbin/tcpdump/print-ppp.c
854
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
860
l--;
usr.sbin/tcpdump/print-ppp.c
863
if (l < sizeof(x)) /* Passwd-Length */
usr.sbin/tcpdump/print-ppp.c
869
l -= sizeof(x);
usr.sbin/tcpdump/print-ppp.c
873
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
879
l--;
usr.sbin/tcpdump/print-ppp.c
885
if (l < sizeof(x)) /* Msg-Length */
usr.sbin/tcpdump/print-ppp.c
891
l -= sizeof(x);
usr.sbin/tcpdump/print-ppp.c
895
if (l == 0)
usr.sbin/tcpdump/print-ppp.c
901
l--;
usr.sbin/tcpdump/print-ppp.c
925
handle_ipcp(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
929
if (ppp_cp_header(&pc, p, l, &ppp_cp_ipcp) == -1)
usr.sbin/tcpdump/print-ppp.c
932
if (l > pc.len)
usr.sbin/tcpdump/print-ppp.c
933
l = pc.len;
usr.sbin/tcpdump/print-ppp.c
936
l -= sizeof(pc);
usr.sbin/tcpdump/print-ppp.c
943
while (l > 0) {
usr.sbin/tcpdump/print-ppp.c
946
optlen = print_ipcp_config_options(p, l);
usr.sbin/tcpdump/print-ppp.c
953
l -= optlen;
usr.sbin/tcpdump/print-ppp.c
971
print_ipcp_config_options(const u_char *p, int l)
usr.sbin/tcpdump/print-ppp.c
975
if (l < sizeof(type))
usr.sbin/tcpdump/print-radius.c
241
int first, l, ac, al;
usr.sbin/tcpdump/print-radius.c
264
l = len - RADFIXEDSZ;
usr.sbin/tcpdump/print-radius.c
265
if(!l)
usr.sbin/tcpdump/print-radius.c
271
while(l) {
usr.sbin/tcpdump/print-radius.c
280
if(al > l || al < 2) {
usr.sbin/tcpdump/print-radius.c
289
pp += al; l -= al + 2;
usr.sbin/tcpdump/print-ripng.c
46
int l;
usr.sbin/tcpdump/print-ripng.c
47
l = printf("%s/%d", ip6addr_string(&ni->rip6_dest), ni->rip6_plen);
usr.sbin/tcpdump/print-ripng.c
49
l += printf(" [%d]", ntohs(ni->rip6_tag));
usr.sbin/tcpdump/print-ripng.c
51
l += printf(" (%d)", ni->rip6_metric);
usr.sbin/tcpdump/print-ripng.c
52
return l;
usr.sbin/tcpdump/print-tcp.c
478
#define LENCHECK(l) { if ((l) > hlen) goto bad; TCHECK2(*cp, l); }
usr.sbin/tcpdump/smbutil.c
178
uint16 l = RSVAL(buf, ofs) & 0x3FFF;
usr.sbin/tcpdump/smbutil.c
179
if (l == 0)
usr.sbin/tcpdump/smbutil.c
184
p = buf + l;
usr.sbin/tcpdump/smbutil.c
188
return(buf + l);
usr.sbin/tcpdump/smbutil.c
258
int l = PTR_DIFF(p,fmt);
usr.sbin/tcpdump/smbutil.c
259
if (l && (val & (1<<i)))
usr.sbin/tcpdump/smbutil.c
260
printf("%.*s ",l,fmt);
usr.sbin/tcpdump/smbutil.c
270
int l=0;
usr.sbin/tcpdump/smbutil.c
294
while (l < (sizeof(buf)-1) && s[0] && s[1] == 0) {
usr.sbin/tcpdump/smbutil.c
295
buf[l] = s[0];
usr.sbin/tcpdump/smbutil.c
296
s += 2; l++;
usr.sbin/tcpdump/smbutil.c
299
buf[l] = 0;
usr.sbin/tcpdump/smbutil.c
335
int l = atoi(fmt+1);
usr.sbin/tcpdump/smbutil.c
336
buf += l;
usr.sbin/tcpdump/smbutil.c
425
int l = atoi(fmt+1);
usr.sbin/tcpdump/smbutil.c
426
printf("%-*.*s",l,l,buf);
usr.sbin/tcpdump/smbutil.c
427
buf += l;
usr.sbin/tcpdump/smbutil.c
433
int l = atoi(fmt+1);
usr.sbin/tcpdump/smbutil.c
434
while (l--) printf("%02x",*buf++);
usr.sbin/tcpdump/util.c
166
char **l = lengths;
usr.sbin/tcpdump/util.c
175
printf("%d%s", secs / *s, *l);
usr.sbin/tcpdump/util.c
179
l++;
usr.sbin/tftp-proxy/tftp-proxy.c
544
struct proxy_listener *l;
usr.sbin/tftp-proxy/tftp-proxy.c
579
l = calloc(1, sizeof(*l));
usr.sbin/tftp-proxy/tftp-proxy.c
580
if (l == NULL)
usr.sbin/tftp-proxy/tftp-proxy.c
585
l->cmsg2dst = proxy_dst4;
usr.sbin/tftp-proxy/tftp-proxy.c
595
l->cmsg2dst = proxy_dst6;
usr.sbin/tftp-proxy/tftp-proxy.c
605
l->s = s;
usr.sbin/tftp-proxy/tftp-proxy.c
607
TAILQ_INSERT_TAIL(&proxy_listeners, l, entry);
usr.sbin/tftp-proxy/tftp-proxy.c
618
struct proxy_listener *l;
usr.sbin/tftp-proxy/tftp-proxy.c
620
TAILQ_FOREACH(l, &proxy_listeners, entry) {
usr.sbin/tftp-proxy/tftp-proxy.c
621
event_set(&l->ev, l->s, EV_READ | EV_PERSIST, proxy_recv, l);
usr.sbin/tftp-proxy/tftp-proxy.c
622
event_add(&l->ev, NULL);
usr.sbin/tftp-proxy/tftp-proxy.c
679
struct proxy_listener *l = arg;
usr.sbin/tftp-proxy/tftp-proxy.c
744
if (l->cmsg2dst(cmsg, &r->addrs.dst) == -1)
usr.sbin/traceroute/traceroute.c
313
long l;
usr.sbin/traceroute/traceroute.c
533
l = strtol(optarg, &ep, 16);
usr.sbin/traceroute/traceroute.c
535
l < 0 || l > 255)
usr.sbin/traceroute/traceroute.c
538
conf->tos = (int)l;
usr.sbin/trpt/trpt.c
131
unsigned long l;
usr.sbin/trpt/trpt.c
150
l = strtoul(optarg, &cp, 16);
usr.sbin/trpt/trpt.c
151
tcp_pcbs[npcbs] = (caddr_t)l;
usr.sbin/trpt/trpt.c
153
(unsigned long)tcp_pcbs[npcbs] != l)
usr.sbin/unbound/daemon/remote.c
3005
size_t l;
usr.sbin/unbound/daemon/remote.c
3014
l = strlen(buf);
usr.sbin/unbound/daemon/remote.c
3015
buf += l; len -= l;
usr.sbin/unbound/daemon/remote.c
3020
l = strlen(buf);
usr.sbin/unbound/daemon/remote.c
3021
buf += l; len -= l;
usr.sbin/unbound/daemon/remote.c
3024
l = strlen(buf);
usr.sbin/unbound/daemon/remote.c
3025
buf += l; len -= l;
usr.sbin/unbound/daemon/remote.c
3032
l = strlen(buf);
usr.sbin/unbound/daemon/remote.c
3033
buf += l; len -= l;
usr.sbin/unbound/daemon/remote.c
3042
l = strlen(buf);
usr.sbin/unbound/daemon/remote.c
3043
buf += l; len -= l;
usr.sbin/unbound/daemon/remote.c
364
struct listen_port* l = NULL;
usr.sbin/unbound/daemon/remote.c
374
if(!add_open(rcif[i], cfg->control_port, &l, 1, cfg)) {
usr.sbin/unbound/daemon/remote.c
375
listening_ports_free(l);
usr.sbin/unbound/daemon/remote.c
384
!add_open("::1", cfg->control_port, &l, 0, cfg)) {
usr.sbin/unbound/daemon/remote.c
385
listening_ports_free(l);
usr.sbin/unbound/daemon/remote.c
389
!add_open("127.0.0.1", cfg->control_port, &l, 1, cfg)) {
usr.sbin/unbound/daemon/remote.c
390
listening_ports_free(l);
usr.sbin/unbound/daemon/remote.c
394
return l;
usr.sbin/unbound/daemon/remote.c
7311
struct listen_list* l;
usr.sbin/unbound/daemon/remote.c
7312
l = front->cps;
usr.sbin/unbound/daemon/remote.c
7313
while(l) {
usr.sbin/unbound/daemon/remote.c
7314
if(l->com->type == comm_tcp_accept) {
usr.sbin/unbound/daemon/remote.c
7316
for(i=0; i<l->com->max_tcp_count; i++) {
usr.sbin/unbound/daemon/remote.c
7317
if(l->com->tcp_handlers[i]->tcl_addr) {
usr.sbin/unbound/daemon/remote.c
7326
l->com->tcp_handlers[i]->tcl_addr =
usr.sbin/unbound/daemon/remote.c
7331
l = l->next;
usr.sbin/unbound/daemon/unbound.c
333
ssize_t l;
usr.sbin/unbound/daemon/unbound.c
342
if (((l = read(fd, pidbuf, sizeof(pidbuf)))) == -1) {
usr.sbin/unbound/daemon/unbound.c
353
if (l == 0) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1059
uint32_t l = (uint32_t)data->len;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1061
((uint8_t*)&l)+data->len_done, 4-data->len_done);
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1072
data->len = (size_t)l;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
1075
data->len = (size_t)(ntohl(l));
usr.sbin/unbound/iterator/iter_utils.c
981
int l = dname_count_labels(s->rk.dname);
usr.sbin/unbound/iterator/iter_utils.c
982
if(l == dp->namelabs + 1 &&
usr.sbin/unbound/iterator/iter_utils.c
984
l, dp->name, dp->namelabs))
usr.sbin/unbound/sldns/str2wire.c
2176
uint32_t l = (uint32_t)strtol((char*)str, &end, 10);
usr.sbin/unbound/sldns/str2wire.c
2180
sldns_write_uint32(rd, l);
usr.sbin/unbound/sldns/str2wire.c
2720
int l;
usr.sbin/unbound/sldns/str2wire.c
2724
if (sscanf(str, "%4x:%4x:%4x:%4x%n", &a, &b, &c, &d, &l) != 4 ||
usr.sbin/unbound/sldns/str2wire.c
2725
l != (int)strlen(str) || /* more data to read */
usr.sbin/unbound/sldns/str2wire.c
2741
int l;
usr.sbin/unbound/sldns/str2wire.c
2746
&a, &b, &c, &d, &e, &f, &l) != 6 ||
usr.sbin/unbound/sldns/str2wire.c
2747
l != (int)strlen(str))
usr.sbin/unbound/sldns/str2wire.c
2762
int l;
usr.sbin/unbound/sldns/str2wire.c
2767
&a, &b, &c, &d, &e, &f, &g, &h, &l) != 8 ||
usr.sbin/unbound/sldns/str2wire.c
2768
l != (int)strlen(str))
usr.sbin/unbound/smallapp/unbound-anchor.c
1094
size_t l;
usr.sbin/unbound/smallapp/unbound-anchor.c
1099
l = (size_t)BIO_get_mem_data(tmp, &d);
usr.sbin/unbound/smallapp/unbound-anchor.c
1100
if(verb>=2) printf("chunked data is %d\n", (int)l);
usr.sbin/unbound/smallapp/unbound-anchor.c
1101
if(l == 0 || d == NULL) {
usr.sbin/unbound/smallapp/unbound-anchor.c
1105
*len = l-1;
usr.sbin/unbound/smallapp/unbound-anchor.c
1106
data = (char*)malloc(l);
usr.sbin/unbound/smallapp/unbound-anchor.c
1111
memcpy(data, d, l);
usr.sbin/unbound/smallapp/unbound-anchor.c
853
size_t l;
usr.sbin/unbound/smallapp/unbound-anchor.c
859
l = strlen(buf);
usr.sbin/unbound/smallapp/unbound-anchor.c
860
if(l+2 >= sizeof(buf)) {
usr.sbin/unbound/smallapp/unbound-anchor.c
865
buf[l] = '\r';
usr.sbin/unbound/smallapp/unbound-anchor.c
866
buf[l+1] = '\n';
usr.sbin/unbound/smallapp/unbound-anchor.c
867
buf[l+2] = 0;
usr.sbin/unbound/testcode/checklocks.c
856
struct checked_lock* l = NULL;
usr.sbin/unbound/testcode/checklocks.c
870
l = thr->holding_last;
usr.sbin/unbound/testcode/checklocks.c
875
l?"yes":"no");
usr.sbin/unbound/testcode/fake_event.c
966
struct listen_dnsport* l= calloc(1, sizeof(struct listen_dnsport));
usr.sbin/unbound/testcode/fake_event.c
967
if(!l)
usr.sbin/unbound/testcode/fake_event.c
969
l->base = base;
usr.sbin/unbound/testcode/fake_event.c
970
l->udp_buff = sldns_buffer_new(bufsize);
usr.sbin/unbound/testcode/fake_event.c
971
if(!l->udp_buff) {
usr.sbin/unbound/testcode/fake_event.c
972
free(l);
usr.sbin/unbound/testcode/fake_event.c
978
return l;
usr.sbin/unbound/testcode/perf.c
505
size_t* l = (size_t*)calloc(newcap, sizeof(size_t));
usr.sbin/unbound/testcode/perf.c
506
if(!d || !l) fatal_exit("out of memory");
usr.sbin/unbound/testcode/perf.c
511
memcpy(l, info->qlist_len, sizeof(size_t)*
usr.sbin/unbound/testcode/perf.c
516
info->qlist_len = l;
usr.sbin/unbound/testcode/petal.c
126
*l = len;
usr.sbin/unbound/testcode/petal.c
327
size_t l = strlen(s);
usr.sbin/unbound/testcode/petal.c
332
if(l>=3 && s[l-1]=='.' && s[l-2]=='.' && s[l-3]=='/')
usr.sbin/unbound/testcode/petal.c
98
parse_ip_addr(char* str, int port, struct sockaddr_storage* ret, socklen_t* l)
usr.sbin/unbound/testcode/streamtcp.c
346
ssize_t l;
usr.sbin/unbound/testcode/streamtcp.c
348
if((l=recv(fd, (void*)sldns_buffer_begin(buf),
usr.sbin/unbound/testcode/streamtcp.c
358
sldns_buffer_set_limit(buf, (size_t)l);
usr.sbin/unbound/testcode/streamtcp.c
359
len = (size_t)l;
usr.sbin/unbound/testcode/unitdname.c
467
size_t l = 13;
usr.sbin/unbound/testcode/unitdname.c
469
dname_remove_label(&n, &l);
usr.sbin/unbound/testcode/unitdname.c
471
unit_assert( l == 5 );
usr.sbin/unbound/testcode/unitdname.c
472
dname_remove_label(&n, &l);
usr.sbin/unbound/testcode/unitdname.c
474
unit_assert( l == 1 );
usr.sbin/unbound/testcode/unitdname.c
475
dname_remove_label(&n, &l);
usr.sbin/unbound/testcode/unitdname.c
477
unit_assert( l == 1 );
usr.sbin/unbound/testcode/unitdname.c
486
size_t l = 13;
usr.sbin/unbound/testcode/unitdname.c
489
unit_assert(dname_remove_label_limit_len(&n, &l, lenlimit) == 1);
usr.sbin/unbound/testcode/unitdname.c
491
unit_assert( l == 5 );
usr.sbin/unbound/testcode/unitdname.c
492
unit_assert(dname_remove_label_limit_len(&n, &l, lenlimit) == 0);
usr.sbin/unbound/testcode/unitdname.c
494
unit_assert( l == 5 );
usr.sbin/unbound/testcode/unitecs.c
159
addrlen_t l;
usr.sbin/unbound/testcode/unitecs.c
174
l = randomkey(&k, 128);
usr.sbin/unbound/testcode/unitecs.c
176
addrtree_insert(t, k, l, 64, elem, timenow + 10, timenow, 0);
usr.sbin/unbound/testcode/unitecs.c
190
l = randomkey(&k, 128);
usr.sbin/unbound/testcode/unitecs.c
192
addrtree_insert(t, k, l, 64, elem, i + 10, i, 0);
usr.sbin/unbound/testcode/unitecs.c
202
l = randomkey(&k, 128);
usr.sbin/unbound/testcode/unitecs.c
204
addrtree_insert(t, k, l, 64, elem, i + 10, i, 0);
usr.sbin/unbound/testcode/unitmain.c
318
socklen_t l = (socklen_t)sizeof(a);
usr.sbin/unbound/testcode/unitmain.c
319
unit_assert(ipstrtoaddr("12.13.14.15", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
320
unit_assert(!addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
321
unit_assert(ipstrtoaddr("fe80::217:31ff:fe91:df", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
322
unit_assert(!addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
323
unit_assert(ipstrtoaddr("ffff::217:31ff:fe91:df", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
324
unit_assert(!addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
325
unit_assert(ipstrtoaddr("::ffff:31ff:fe91:df", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
326
unit_assert(!addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
327
unit_assert(ipstrtoaddr("::fffe:fe91:df", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
328
unit_assert(!addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
329
unit_assert(ipstrtoaddr("::ffff:127.0.0.1", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
330
unit_assert(addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
331
unit_assert(ipstrtoaddr("::ffff:127.0.0.2", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
332
unit_assert(addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
333
unit_assert(ipstrtoaddr("::ffff:192.168.0.2", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
334
unit_assert(addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
335
unit_assert(ipstrtoaddr("2::ffff:192.168.0.2", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
336
unit_assert(!addr_is_ip4mapped(&a, l));
usr.sbin/unbound/testcode/unitmain.c
342
socklen_t l = (socklen_t)sizeof(a);
usr.sbin/unbound/testcode/unitmain.c
343
unit_assert(ipstrtoaddr("0.0.0.0", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
344
unit_assert(addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
345
unit_assert(ipstrtoaddr("0.0.0.0", 10053, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
346
unit_assert(addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
347
unit_assert(ipstrtoaddr("0.0.0.0", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
348
unit_assert(addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
349
unit_assert(ipstrtoaddr("::0", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
350
unit_assert(addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
351
unit_assert(ipstrtoaddr("::0", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
352
unit_assert(addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
353
unit_assert(ipstrtoaddr("::1", 53, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
354
unit_assert(!addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
355
unit_assert(ipstrtoaddr("2001:1667::1", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
356
unit_assert(!addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
357
unit_assert(ipstrtoaddr("2001::0", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
358
unit_assert(!addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
359
unit_assert(ipstrtoaddr("10.0.0.0", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
360
unit_assert(!addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
361
unit_assert(ipstrtoaddr("0.0.0.10", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
362
unit_assert(!addr_is_any(&a, l));
usr.sbin/unbound/testcode/unitmain.c
363
unit_assert(ipstrtoaddr("192.0.2.1", 0, &a, &l));
usr.sbin/unbound/testcode/unitmain.c
364
unit_assert(!addr_is_any(&a, l));
usr.sbin/unbound/util/alloc.c
660
size_t l = strlen(s)+1;
usr.sbin/unbound/util/alloc.c
661
char* n = (char*)unbound_stat_malloc_lite(l, file, line, func);
usr.sbin/unbound/util/alloc.c
663
memmove(n, s, l);
usr.sbin/unbound/util/config_file.c
2283
static int isalldigit(const char* str, size_t l)
usr.sbin/unbound/util/config_file.c
2286
for(i=0; i<l; i++)
usr.sbin/unbound/util/netevent.c
106
# define CMSG_SPACE(l) (CMSG_ALIGN(l)+_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)))
usr.sbin/unbound/util/netevent.c
108
# define CMSG_SPACE(l) (CMSG_ALIGN(l)+CMSG_ALIGN(sizeof(struct cmsghdr)))
usr.sbin/unbound/util/storage/lookup3.c
1013
uint32_t c[HASHSTATE], d[HASHSTATE], i=0, j=0, k, l, m=0, z;
usr.sbin/unbound/util/storage/lookup3.c
1028
for (l=0; l<HASHSTATE; ++l)
usr.sbin/unbound/util/storage/lookup3.c
1029
e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
usr.sbin/unbound/util/storage/lookup3.c
1036
for (l=0; l<hlen+1; ++l) {a[l] = b[l] = (uint8_t)0;}
usr.sbin/unbound/util/storage/lookup3.c
1045
for (l=0; l<HASHSTATE; ++l)
usr.sbin/unbound/util/storage/lookup3.c
1047
e[l] &= (c[l]^d[l]);
usr.sbin/unbound/util/storage/lookup3.c
1048
f[l] &= ~(c[l]^d[l]);
usr.sbin/unbound/util/storage/lookup3.c
1049
g[l] &= c[l];
usr.sbin/unbound/util/storage/lookup3.c
1050
h[l] &= ~c[l];
usr.sbin/unbound/util/storage/lookup3.c
1051
x[l] &= d[l];
usr.sbin/unbound/util/storage/lookup3.c
1052
y[l] &= ~d[l];
usr.sbin/unbound/util/storage/lookup3.c
1053
if (e[l]|f[l]|g[l]|h[l]|x[l]|y[l]) finished=0;
usr.sbin/unbound/util/winsock_event.c
508
int t, l;
usr.sbin/unbound/util/winsock_event.c
520
l = sizeof(t);
usr.sbin/unbound/util/winsock_event.c
522
(void*)&t, &l) != 0)
usr.sbin/unbound/util/winsock_event.c
531
l = sizeof(b);
usr.sbin/unbound/util/winsock_event.c
533
(void*)&b, &l) != 0)
usr.sbin/unbound/validator/val_utils.c
1167
check_no_anchor(struct val_anchors* anchors, uint8_t* nm, size_t l, uint16_t c)
usr.sbin/unbound/validator/val_utils.c
1170
if((ta=anchors_lookup(anchors, nm, l, c))) {
usr.sbin/ypserv/ypserv/acl.c
49
char *c, *p, l;
usr.sbin/ypserv/ypserv/acl.c
64
c = p = buf; l = ' ';
usr.sbin/ypserv/ypserv/acl.c
66
if (isspace((unsigned char)l) &&
usr.sbin/ypserv/ypserv/acl.c
70
l = *c++; *p = l; p++;
usr.sbin/ypserv/ypserv/ypserv_db.c
371
int l;
usr.sbin/ypserv/ypserv/ypserv_db.c
410
l = 0;
usr.sbin/ypserv/ypserv/ypserv_db.c
413
l++;
usr.sbin/ypserv/ypserv/ypserv_db.c
414
if (l == 0) {
usr.sbin/zic/zic.c
1116
struct link l;
usr.sbin/zic/zic.c
1130
l.l_filename = filename;
usr.sbin/zic/zic.c
1131
l.l_linenum = linenum;
usr.sbin/zic/zic.c
1132
l.l_from = ecpyalloc(fields[LF_FROM]);
usr.sbin/zic/zic.c
1133
l.l_to = ecpyalloc(fields[LF_TO]);
usr.sbin/zic/zic.c
1135
links[nlinks++] = l;