bin/ksh/expr.c
172
Expr_state * const es = &curstate;
bin/ksh/expr.c
201
token(es);
bin/ksh/expr.c
203
if (es->tok == END) {
bin/ksh/expr.c
204
es->tok = LIT;
bin/ksh/expr.c
205
es->val = tempvar();
bin/ksh/expr.c
208
v = intvar(es, evalexpr(es, MAX_PREC));
bin/ksh/expr.c
210
if (es->tok != END)
bin/ksh/expr.c
211
evalerr(es, ET_UNEXPECTED, NULL);
bin/ksh/expr.c
214
setint_v(vp, v, es->arith);
bin/ksh/expr.c
225
evalerr(Expr_state *es, enum error_type type, const char *str)
bin/ksh/expr.c
230
es->arith = false;
bin/ksh/expr.c
233
switch (es->tok) {
bin/ksh/expr.c
235
s = es->val->name;
bin/ksh/expr.c
238
s = str_val(es->val);
bin/ksh/expr.c
244
tbuf[0] = *es->tokp;
bin/ksh/expr.c
249
s = opinfo[(int)es->tok].name;
bin/ksh/expr.c
251
warningf(true, "%s: unexpected `%s'", es->expression, s);
bin/ksh/expr.c
255
warningf(true, "%s: bad number `%s'", es->expression, str);
bin/ksh/expr.c
260
es->expression, str);
bin/ksh/expr.c
265
es->expression, str);
bin/ksh/expr.c
270
es->expression, str);
bin/ksh/expr.c
275
warningf(true, "%s: %s", es->expression, str);
bin/ksh/expr.c
282
evalexpr(Expr_state *es, enum prec prec)
bin/ksh/expr.c
289
op = es->tok;
bin/ksh/expr.c
292
token(es);
bin/ksh/expr.c
293
vl = intvar(es, evalexpr(es, P_PRIMARY));
bin/ksh/expr.c
302
token(es);
bin/ksh/expr.c
303
vl = evalexpr(es, MAX_PREC);
bin/ksh/expr.c
304
if (es->tok != CLOSE_PAREN)
bin/ksh/expr.c
305
evalerr(es, ET_STR, "missing )");
bin/ksh/expr.c
306
token(es);
bin/ksh/expr.c
308
token(es);
bin/ksh/expr.c
309
vl = do_ppmm(es, op, es->val, true);
bin/ksh/expr.c
310
token(es);
bin/ksh/expr.c
312
vl = es->val;
bin/ksh/expr.c
313
token(es);
bin/ksh/expr.c
315
evalerr(es, ET_UNEXPECTED, NULL);
bin/ksh/expr.c
318
if (es->tok == O_PLUSPLUS || es->tok == O_MINUSMINUS) {
bin/ksh/expr.c
319
vl = do_ppmm(es, es->tok, vl, false);
bin/ksh/expr.c
320
token(es);
bin/ksh/expr.c
324
vl = evalexpr(es, ((int) prec) - 1);
bin/ksh/expr.c
325
for (op = es->tok; IS_BINOP(op) && opinfo[(int) op].prec == prec;
bin/ksh/expr.c
326
op = es->tok) {
bin/ksh/expr.c
327
token(es);
bin/ksh/expr.c
330
vl = intvar(es, vl);
bin/ksh/expr.c
332
assign_check(es, op, vasn);
bin/ksh/expr.c
333
vr = intvar(es, evalexpr(es, P_ASSIGN));
bin/ksh/expr.c
335
vr = intvar(es, evalexpr(es, ((int) prec) - 1));
bin/ksh/expr.c
338
if (es->noassign)
bin/ksh/expr.c
341
evalerr(es, ET_STR, "zero divisor");
bin/ksh/expr.c
410
es->noassign++;
bin/ksh/expr.c
411
vr = intvar(es, evalexpr(es, ((int) prec) - 1));
bin/ksh/expr.c
414
es->noassign--;
bin/ksh/expr.c
418
es->noassign++;
bin/ksh/expr.c
419
vr = intvar(es, evalexpr(es, ((int) prec) - 1));
bin/ksh/expr.c
422
es->noassign--;
bin/ksh/expr.c
429
es->noassign++;
bin/ksh/expr.c
430
vl = evalexpr(es, MAX_PREC);
bin/ksh/expr.c
432
es->noassign--;
bin/ksh/expr.c
433
if (es->tok != CTERN)
bin/ksh/expr.c
434
evalerr(es, ET_STR, "missing :");
bin/ksh/expr.c
435
token(es);
bin/ksh/expr.c
437
es->noassign++;
bin/ksh/expr.c
438
vr = evalexpr(es, P_TERN);
bin/ksh/expr.c
440
es->noassign--;
bin/ksh/expr.c
454
setint_v(vasn, vr, es->arith);
bin/ksh/expr.c
465
token(Expr_state *es)
bin/ksh/expr.c
472
for (cp = es->tokp; (c = *cp), isspace((unsigned char)c); cp++)
bin/ksh/expr.c
474
es->tokp = cp;
bin/ksh/expr.c
477
es->tok = END;
bin/ksh/expr.c
486
evalerr(es, ET_STR, "missing ]");
bin/ksh/expr.c
495
if (es->noassign) {
bin/ksh/expr.c
496
es->val = tempvar();
bin/ksh/expr.c
497
es->val->flag |= EXPRLVALUE;
bin/ksh/expr.c
499
tvar = str_nsave(es->tokp, cp - es->tokp, ATEMP);
bin/ksh/expr.c
500
es->val = global(tvar);
bin/ksh/expr.c
503
es->tok = VAR;
bin/ksh/expr.c
507
tvar = str_nsave(es->tokp, --cp - es->tokp, ATEMP);
bin/ksh/expr.c
508
es->val = tempvar();
bin/ksh/expr.c
509
es->val->flag &= ~INTEGER;
bin/ksh/expr.c
510
es->val->type = 0;
bin/ksh/expr.c
511
es->val->val.s = tvar;
bin/ksh/expr.c
512
if (setint_v(es->val, es->val, es->arith) == NULL)
bin/ksh/expr.c
513
evalerr(es, ET_BADLIT, tvar);
bin/ksh/expr.c
515
es->tok = LIT;
bin/ksh/expr.c
522
es->tok = (enum token) i;
bin/ksh/expr.c
527
es->tok = BAD;
bin/ksh/expr.c
529
es->tokp = cp;
bin/ksh/expr.c
534
do_ppmm(Expr_state *es, enum token op, struct tbl *vasn, bool is_prefix)
bin/ksh/expr.c
539
assign_check(es, op, vasn);
bin/ksh/expr.c
541
vl = intvar(es, vasn);
bin/ksh/expr.c
544
setint_v(vasn, vl, es->arith);
bin/ksh/expr.c
554
assign_check(Expr_state *es, enum token op, struct tbl *vasn)
bin/ksh/expr.c
556
if (es->tok == END || vasn == NULL ||
bin/ksh/expr.c
558
evalerr(es, ET_LVALUE, opinfo[(int) op].name);
bin/ksh/expr.c
560
evalerr(es, ET_RDONLY, opinfo[(int) op].name);
bin/ksh/expr.c
579
intvar(Expr_state *es, struct tbl *vp)
bin/ksh/expr.c
589
if (setint_v(vq, vp, es->arith) == NULL) {
bin/ksh/expr.c
591
evalerr(es, ET_RECURSIVE, vp->name);
bin/ksh/expr.c
592
es->evaling = vp;
bin/ksh/expr.c
595
v_evaluate(vq, str_val(vp), KSH_UNWIND_ERROR, es->arith);
bin/ksh/expr.c
598
es->evaling = NULL;
bin/ksh/vi.c
1001
for (cur = es->cursor; cur > 0; cur--)
bin/ksh/vi.c
1002
if (!isu8cont(es->cbuf[cur]))
bin/ksh/vi.c
1005
yank_range(cur, es->cursor);
bin/ksh/vi.c
1006
del_range(cur, es->cursor);
bin/ksh/vi.c
1007
es->cursor = cur;
bin/ksh/vi.c
1011
t = es;
bin/ksh/vi.c
1012
es = undo;
bin/ksh/vi.c
1092
if (es->cursor != es->linelen)
bin/ksh/vi.c
1093
es->cursor++;
bin/ksh/vi.c
1103
if (es->cursor != 0)
bin/ksh/vi.c
1104
es->cursor--;
bin/ksh/vi.c
1116
if (es->linelen == 0)
bin/ksh/vi.c
1119
p = &es->cbuf[es->cursor];
bin/ksh/vi.c
1128
if (es->cursor < es->linelen - 1)
bin/ksh/vi.c
1129
es->cursor++;
bin/ksh/vi.c
1136
int ret = x_do_comment(es->cbuf, es->cbufsize,
bin/ksh/vi.c
1137
&es->linelen);
bin/ksh/vi.c
1139
es->cursor = 0;
bin/ksh/vi.c
1145
print_expansions(es);
bin/ksh/vi.c
1169
if (insert == 0 && es->cursor >= es->linelen)
bin/ksh/vi.c
1170
while (es->cursor > 0)
bin/ksh/vi.c
1171
if (!isu8cont(es->cbuf[--es->cursor]))
bin/ksh/vi.c
1187
if (!sub && es->cursor == 0)
bin/ksh/vi.c
1194
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1198
while (isu8cont((unsigned char)es->cbuf[--ncursor]))
bin/ksh/vi.c
1226
if (!sub && es->cursor == 0)
bin/ksh/vi.c
1228
for (ncursor = es->cursor; ncursor > 0; ncursor--)
bin/ksh/vi.c
1229
if (!isu8cont(es->cbuf[ncursor]))
bin/ksh/vi.c
1236
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1238
for (ncursor = es->cursor; ncursor < es->linelen; ncursor++)
bin/ksh/vi.c
1239
if (ncursor == es->cursor ||
bin/ksh/vi.c
1240
!isu8cont(es->cbuf[ncursor]))
bin/ksh/vi.c
1247
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1258
while (ncursor < es->linelen - 1 &&
bin/ksh/vi.c
1259
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1265
if (ncursor > es->linelen)
bin/ksh/vi.c
1266
ncursor = es->linelen;
bin/ksh/vi.c
1269
while (isu8cont(es->cbuf[ncursor]))
bin/ksh/vi.c
1274
ncursor = es->linelen;
bin/ksh/vi.c
1278
ncursor = es->cursor;
bin/ksh/vi.c
1279
while (ncursor < es->linelen &&
bin/ksh/vi.c
1280
(i = bracktype(es->cbuf[ncursor])) == 0)
bin/ksh/vi.c
1282
if (ncursor == es->linelen)
bin/ksh/vi.c
1287
if (++ncursor >= es->linelen)
bin/ksh/vi.c
1293
t = bracktype(es->cbuf[ncursor]);
bin/ksh/vi.c
1315
if (es->cursor > 0)
bin/ksh/vi.c
1316
while (isu8cont(es->cbuf[--es->cursor]))
bin/ksh/vi.c
1327
memmove(ybuf, &es->cbuf[a], yanklen);
bin/ksh/vi.c
1377
memmove(holdbuf, es->cbuf, es->linelen);
bin/ksh/vi.c
1378
holdlen = es->linelen;
bin/ksh/vi.c
1385
es->cursor = 0;
bin/ksh/vi.c
1386
es->linelen = holdlen;
bin/ksh/vi.c
1387
memmove(es->cbuf, holdbuf, holdlen);
bin/ksh/vi.c
1430
es = &ebuf;
bin/ksh/vi.c
1431
es->cbuf = buf;
bin/ksh/vi.c
1432
es->cbufsize = len;
bin/ksh/vi.c
1436
es->linelen = undo->linelen = 0;
bin/ksh/vi.c
1437
es->cursor = undo->cursor = 0;
bin/ksh/vi.c
1438
es->winleft = undo->winleft = 0;
bin/ksh/vi.c
1476
if (es->cursor + len >= es->cbufsize)
bin/ksh/vi.c
1478
if (es->cursor + len > es->linelen)
bin/ksh/vi.c
1479
es->linelen = es->cursor + len;
bin/ksh/vi.c
1481
if (es->linelen + len >= es->cbufsize)
bin/ksh/vi.c
1483
memmove(&es->cbuf[es->cursor + len], &es->cbuf[es->cursor],
bin/ksh/vi.c
1484
es->linelen - es->cursor);
bin/ksh/vi.c
1485
es->linelen += len;
bin/ksh/vi.c
1487
memmove(&es->cbuf[es->cursor], buf, len);
bin/ksh/vi.c
1488
es->cursor += len;
bin/ksh/vi.c
1495
if (es->linelen != b)
bin/ksh/vi.c
1496
memmove(&es->cbuf[a], &es->cbuf[b], es->linelen - b);
bin/ksh/vi.c
1497
es->linelen -= b - a;
bin/ksh/vi.c
1505
if (es->linelen == 0)
bin/ksh/vi.c
1507
ncursor = es->cursor;
bin/ksh/vi.c
1511
if (++ncursor == es->linelen)
bin/ksh/vi.c
1517
} while (es->cbuf[ncursor] != ch);
bin/ksh/vi.c
1535
ncursor = es->cursor;
bin/ksh/vi.c
1536
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1540
while (++ncursor < es->linelen) {
bin/ksh/vi.c
1541
uc = es->cbuf[ncursor];
bin/ksh/vi.c
1565
ncursor = es->cursor;
bin/ksh/vi.c
1570
uc = es->cbuf[ncursor];
bin/ksh/vi.c
159
static struct edstate *es; /* current editor state */
bin/ksh/vi.c
1597
ncursor = es->cursor;
bin/ksh/vi.c
1598
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1601
while (++ncursor < es->linelen) {
bin/ksh/vi.c
1602
uc = es->cbuf[ncursor];
bin/ksh/vi.c
1627
ncursor = es->cursor;
bin/ksh/vi.c
1628
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1629
while (!isspace((unsigned char)es->cbuf[ncursor]) &&
bin/ksh/vi.c
1630
ncursor < es->linelen)
bin/ksh/vi.c
1632
while (isspace((unsigned char)es->cbuf[ncursor]) &&
bin/ksh/vi.c
1633
ncursor < es->linelen)
bin/ksh/vi.c
1645
ncursor = es->cursor;
bin/ksh/vi.c
1648
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1651
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1664
ncursor = es->cursor;
bin/ksh/vi.c
1665
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1666
while (++ncursor < es->linelen &&
bin/ksh/vi.c
1667
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1669
while (ncursor < es->linelen &&
bin/ksh/vi.c
1670
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1695
if ((es->linelen = strlen(hptr)) >= es->cbufsize)
bin/ksh/vi.c
1696
es->linelen = es->cbufsize - 1;
bin/ksh/vi.c
1697
memmove(es->cbuf, hptr, es->linelen);
bin/ksh/vi.c
1698
es->cursor = 0;
bin/ksh/vi.c
1730
if ((es->linelen = strlen(hptr)) >= es->cbufsize)
bin/ksh/vi.c
1731
es->linelen = es->cbufsize - 1;
bin/ksh/vi.c
1732
memmove(es->cbuf, hptr, es->linelen);
bin/ksh/vi.c
1733
es->cursor = 0;
bin/ksh/vi.c
1781
if (es->cursor < es->winleft)
bin/ksh/vi.c
1784
cur = es->winleft;
bin/ksh/vi.c
1785
while (cur < es->cursor)
bin/ksh/vi.c
1786
col = newcol((unsigned char) es->cbuf[cur++], col);
bin/ksh/vi.c
1802
cur = es->cursor;
bin/ksh/vi.c
1808
uc = es->cbuf[--cur];
bin/ksh/vi.c
1849
es->winleft = cur;
bin/ksh/vi.c
1884
cur = es->winleft;
bin/ksh/vi.c
1887
while (col < winwidth && cur < es->linelen) {
bin/ksh/vi.c
1888
if (cur == es->cursor && leftside)
bin/ksh/vi.c
1890
if ((ch = es->cbuf[cur]) == '\t') {
bin/ksh/vi.c
1917
if (cur == es->cursor && !leftside)
bin/ksh/vi.c
1921
if (cur == es->cursor)
bin/ksh/vi.c
1992
if (es->winleft > 0 && moreright)
bin/ksh/vi.c
1997
else if (es->winleft > 0)
bin/ksh/vi.c
2075
restore_edstate(es, buf);
bin/ksh/vi.c
2086
es->cbuf, es->linelen, es->cursor,
bin/ksh/vi.c
2093
buf = save_edstate(es);
bin/ksh/vi.c
2096
es->cursor = start;
bin/ksh/vi.c
2109
es->cursor += i;
bin/ksh/vi.c
2137
restore_edstate(es, buf);
bin/ksh/vi.c
2151
es->cbuf, es->linelen, es->cursor,
bin/ksh/vi.c
2194
buf = save_edstate(es);
bin/ksh/vi.c
2196
es->cursor = start;
bin/ksh/vi.c
232
if (es->linelen == 0) {
bin/ksh/vi.c
247
if (c == -1 || len <= (size_t)es->linelen)
bin/ksh/vi.c
250
if (es->cbuf != buf)
bin/ksh/vi.c
251
memmove(buf, es->cbuf, es->linelen);
bin/ksh/vi.c
253
buf[es->linelen++] = '\n';
bin/ksh/vi.c
255
return es->linelen;
bin/ksh/vi.c
279
es->cursor--;
bin/ksh/vi.c
300
es->cursor = 0;
bin/ksh/vi.c
301
es->linelen = 0;
bin/ksh/vi.c
315
del_range(es->cursor, es->cursor + 1);
bin/ksh/vi.c
318
es->cbuf[es->cursor++] = ch;
bin/ksh/vi.c
396
es->linelen -= char_len(
bin/ksh/vi.c
400
es->cursor = es->linelen;
bin/ksh/vi.c
409
es->linelen = 1;
bin/ksh/vi.c
410
es->cursor = 1;
bin/ksh/vi.c
421
save_es = es;
bin/ksh/vi.c
422
es = &new_es;
bin/ksh/vi.c
424
es = save_es;
bin/ksh/vi.c
427
es->linelen -= char_len((unsigned char)locpat[i]);
bin/ksh/vi.c
429
es->cursor = es->linelen;
bin/ksh/vi.c
438
if (es->linelen + 2 > es->cbufsize)
bin/ksh/vi.c
440
es->cbuf[es->linelen++] = 'M';
bin/ksh/vi.c
441
es->cbuf[es->linelen++] = '-';
bin/ksh/vi.c
445
if (es->linelen + 2 > es->cbufsize)
bin/ksh/vi.c
447
es->cbuf[es->linelen++] = '^';
bin/ksh/vi.c
448
es->cbuf[es->linelen++] = ch ^ '@';
bin/ksh/vi.c
450
if (es->linelen >= es->cbufsize)
bin/ksh/vi.c
452
es->cbuf[es->linelen++] = ch;
bin/ksh/vi.c
454
es->cursor = es->linelen;
bin/ksh/vi.c
561
if (es->cursor == undo->cursor) {
bin/ksh/vi.c
566
if (es->cursor == 0) {
bin/ksh/vi.c
571
tcursor = es->cursor - 1;
bin/ksh/vi.c
572
while(tcursor > 0 && isu8cont(es->cbuf[tcursor]))
bin/ksh/vi.c
575
memmove(es->cbuf + tcursor, es->cbuf + es->cursor,
bin/ksh/vi.c
576
es->linelen - es->cursor);
bin/ksh/vi.c
577
if (insert == REPLACE && es->cursor < undo->linelen)
bin/ksh/vi.c
578
memcpy(es->cbuf + tcursor, undo->cbuf + tcursor,
bin/ksh/vi.c
579
es->cursor - tcursor);
bin/ksh/vi.c
581
es->linelen -= es->cursor - tcursor;
bin/ksh/vi.c
582
if (inslen < es->cursor - tcursor)
bin/ksh/vi.c
585
inslen -= es->cursor - tcursor;
bin/ksh/vi.c
586
es->cursor = tcursor;
bin/ksh/vi.c
591
if (es->cursor != 0) {
bin/ksh/vi.c
593
memmove(es->cbuf, &es->cbuf[es->cursor],
bin/ksh/vi.c
594
es->linelen - es->cursor);
bin/ksh/vi.c
595
es->linelen -= es->cursor;
bin/ksh/vi.c
596
es->cursor = 0;
bin/ksh/vi.c
602
if (es->cursor != 0) {
bin/ksh/vi.c
604
memmove(&es->cbuf[tcursor], &es->cbuf[es->cursor],
bin/ksh/vi.c
605
es->linelen - es->cursor);
bin/ksh/vi.c
606
es->linelen -= es->cursor - tcursor;
bin/ksh/vi.c
607
if (inslen < es->cursor - tcursor)
bin/ksh/vi.c
610
inslen -= es->cursor - tcursor;
bin/ksh/vi.c
611
es->cursor = tcursor;
bin/ksh/vi.c
657
print_expansions(es);
bin/ksh/vi.c
677
if (es->linelen >= es->cbufsize - 1)
bin/ksh/vi.c
681
memmove(&es->cbuf[es->cursor+1], &es->cbuf[es->cursor],
bin/ksh/vi.c
682
es->linelen - es->cursor);
bin/ksh/vi.c
683
es->linelen++;
bin/ksh/vi.c
685
es->cbuf[es->cursor++] = ch;
bin/ksh/vi.c
686
if (insert == REPLACE && es->cursor > es->linelen)
bin/ksh/vi.c
687
es->linelen++;
bin/ksh/vi.c
705
if (cur == es->linelen && cur != 0)
bin/ksh/vi.c
706
while (isu8cont(es->cbuf[--cur]))
bin/ksh/vi.c
708
es->cursor = cur;
bin/ksh/vi.c
714
undo->winleft = es->winleft;
bin/ksh/vi.c
715
memmove(undo->cbuf, es->cbuf, es->linelen);
bin/ksh/vi.c
716
undo->linelen = es->linelen;
bin/ksh/vi.c
717
undo->cursor = es->cursor;
bin/ksh/vi.c
770
if (es->linelen != 0)
bin/ksh/vi.c
771
while (isu8cont(es->cbuf[++es->cursor]))
bin/ksh/vi.c
779
es->cursor = es->linelen;
bin/ksh/vi.c
784
es->cursor = domove(1, "^", 1);
bin/ksh/vi.c
785
del_range(es->cursor, es->linelen);
bin/ksh/vi.c
798
c2 = es->linelen;
bin/ksh/vi.c
806
!isspace((unsigned char)es->cbuf[es->cursor])) {
bin/ksh/vi.c
808
(unsigned char)es->cbuf[--ncursor]))
bin/ksh/vi.c
812
if (ncursor > es->cursor) {
bin/ksh/vi.c
813
c1 = es->cursor;
bin/ksh/vi.c
817
c2 = es->cursor;
bin/ksh/vi.c
826
es->cursor = c1;
bin/ksh/vi.c
836
while (es->cursor < es->linelen)
bin/ksh/vi.c
837
if (!isu8cont(es->cbuf[++es->cursor]))
bin/ksh/vi.c
841
while (es->cursor > 0)
bin/ksh/vi.c
842
if (!isu8cont(es->cbuf[--es->cursor]))
bin/ksh/vi.c
852
while (es->cursor > 0)
bin/ksh/vi.c
853
if (!isu8cont(es->cbuf[--es->cursor]))
bin/ksh/vi.c
861
yank_range(es->cursor, es->linelen);
bin/ksh/vi.c
862
del_range(es->cursor, es->linelen);
bin/ksh/vi.c
867
yank_range(es->cursor, es->linelen);
bin/ksh/vi.c
868
del_range(es->cursor, es->linelen);
bin/ksh/vi.c
895
es->cursor = domove(1, "^", 1);
bin/ksh/vi.c
922
if (es->linelen == 0)
bin/ksh/vi.c
929
for (cur = es->cursor;
bin/ksh/vi.c
930
cur < es->linelen; cur++) {
bin/ksh/vi.c
931
if (!isu8cont(es->cbuf[cur]))
bin/ksh/vi.c
939
del_range(es->cursor, cur);
bin/ksh/vi.c
942
while (es->cursor > 0)
bin/ksh/vi.c
943
if (!isu8cont(es->cbuf[--es->cursor]))
bin/ksh/vi.c
945
es->cbuf[es->linelen] = '\0';
bin/ksh/vi.c
955
if (es->linelen == 0)
bin/ksh/vi.c
958
for (cur = es->cursor; cur < es->linelen; cur++)
bin/ksh/vi.c
959
if (!isu8cont(es->cbuf[cur]))
bin/ksh/vi.c
962
del_range(es->cursor, cur);
bin/ksh/vi.c
967
if (es->linelen == 0 && argcnt == 0)
bin/ksh/vi.c
971
es->cbuf[es->linelen] = '\0';
bin/ksh/vi.c
973
histsave(source->line, es->cbuf, 1);
bin/ksh/vi.c
978
shf_snprintf(es->cbuf, es->cbufsize,
bin/ksh/vi.c
982
es->linelen = strlen(es->cbuf);
bin/ksh/vi.c
986
if (es->linelen == 0)
bin/ksh/vi.c
989
for (cur = es->cursor; cur < es->linelen; cur++)
bin/ksh/vi.c
990
if (!isu8cont(es->cbuf[cur]))
bin/ksh/vi.c
993
yank_range(es->cursor, cur);
bin/ksh/vi.c
994
del_range(es->cursor, cur);
bin/ksh/vi.c
998
if (es->cursor == 0)
lib/libc/regex/engine.c
300
sopno es; /* end sop of current subRE */
lib/libc/regex/engine.c
314
for (ss = startst; ss < stopst; ss = es) {
lib/libc/regex/engine.c
316
es = ss;
lib/libc/regex/engine.c
317
switch (OP(m->g->strip[es])) {
lib/libc/regex/engine.c
320
es += OPND(m->g->strip[es]);
lib/libc/regex/engine.c
323
while (OP(m->g->strip[es]) != O_CH)
lib/libc/regex/engine.c
324
es += OPND(m->g->strip[es]);
lib/libc/regex/engine.c
327
es++;
lib/libc/regex/engine.c
355
rest = slow(m, sp, stp, ss, es);
lib/libc/regex/engine.c
358
tail = slow(m, rest, stop, es, stopst);
lib/libc/regex/engine.c
366
esub = es - 1;
lib/libc/regex/engine.c
379
rest = slow(m, sp, stp, ss, es);
lib/libc/regex/engine.c
382
tail = slow(m, rest, stop, es, stopst);
lib/libc/regex/engine.c
390
esub = es - 1;
lib/libc/regex/engine.c
415
rest = slow(m, sp, stp, ss, es);
lib/libc/regex/engine.c
418
tail = slow(m, rest, stop, es, stopst);
lib/libc/stdlib/qsort.c
110
swapfunc(a, b, es, swaptype); \
lib/libc/stdlib/qsort.c
125
introsort(char *a, size_t n, size_t es, size_t maxdepth, int swaptype,
lib/libc/stdlib/qsort.c
133
for (pm = a + es; pm < a + n * es; pm += es)
lib/libc/stdlib/qsort.c
134
for (pl = pm; pl > a && cmp(pl - es, pl) > 0;
lib/libc/stdlib/qsort.c
135
pl -= es)
lib/libc/stdlib/qsort.c
136
swap(pl, pl - es);
lib/libc/stdlib/qsort.c
140
if (heapsort(a, n, es, cmp) == 0)
lib/libc/stdlib/qsort.c
144
pm = a + (n / 2) * es;
lib/libc/stdlib/qsort.c
147
pn = a + (n - 1) * es;
lib/libc/stdlib/qsort.c
149
s = (n / 8) * es;
lib/libc/stdlib/qsort.c
157
pa = pb = a + es;
lib/libc/stdlib/qsort.c
158
pc = pd = a + (n - 1) * es;
lib/libc/stdlib/qsort.c
163
pa += es;
lib/libc/stdlib/qsort.c
165
pb += es;
lib/libc/stdlib/qsort.c
170
pd -= es;
lib/libc/stdlib/qsort.c
172
pc -= es;
lib/libc/stdlib/qsort.c
177
pb += es;
lib/libc/stdlib/qsort.c
178
pc -= es;
lib/libc/stdlib/qsort.c
181
pn = a + n * es;
lib/libc/stdlib/qsort.c
184
r = min(pd - pc, pn - pd - es);
lib/libc/stdlib/qsort.c
194
if (s > es) {
lib/libc/stdlib/qsort.c
195
if (r > es) {
lib/libc/stdlib/qsort.c
196
introsort(a, r / es, es, maxdepth,
lib/libc/stdlib/qsort.c
200
n = s / es;
lib/libc/stdlib/qsort.c
205
if (r > es) {
lib/libc/stdlib/qsort.c
206
if (s > es) {
lib/libc/stdlib/qsort.c
207
introsort(pn - s, s / es, es, maxdepth,
lib/libc/stdlib/qsort.c
210
n = r / es;
lib/libc/stdlib/qsort.c
217
qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *))
lib/libc/stdlib/qsort.c
227
if (TYPE_ALIGNED(long, a, es))
lib/libc/stdlib/qsort.c
228
swaptype = es == sizeof(long) ? SWAPTYPE_LONG : SWAPTYPE_LONGV;
lib/libc/stdlib/qsort.c
229
else if (sizeof(int) != sizeof(long) && TYPE_ALIGNED(int, a, es))
lib/libc/stdlib/qsort.c
230
swaptype = es == sizeof(int) ? SWAPTYPE_INT : SWAPTYPE_INTV;
lib/libc/stdlib/qsort.c
234
introsort(a, n, es, maxdepth, swaptype, cmp);
lib/libc/stdlib/qsort.c
63
#define TYPE_ALIGNED(TYPE, a, es) \
lib/libc/stdlib/qsort.c
64
(((char *)a - (char *)0) % sizeof(TYPE) == 0 && es % sizeof(TYPE) == 0)
lib/libcrypto/err/err.c
609
ERR_STATE *es;
lib/libcrypto/err/err.c
612
es = ERR_get_state();
lib/libcrypto/err/err.c
627
if (es->bottom == es->top)
lib/libcrypto/err/err.c
630
i = es->top; /* last error */
lib/libcrypto/err/err.c
632
i = (es->bottom + 1) % ERR_NUM_ERRORS; /* first error */
lib/libcrypto/err/err.c
634
ret = es->err_buffer[i];
lib/libcrypto/err/err.c
636
es->bottom = i;
lib/libcrypto/err/err.c
637
es->err_buffer[i] = 0;
lib/libcrypto/err/err.c
641
if (es->err_file[i] == NULL) {
lib/libcrypto/err/err.c
646
*file = es->err_file[i];
lib/libcrypto/err/err.c
648
*line = es->err_line[i];
lib/libcrypto/err/err.c
654
err_clear_data(es, i);
lib/libcrypto/err/err.c
657
if (es->err_data[i] == NULL) {
lib/libcrypto/err/err.c
662
*data = es->err_data[i];
lib/libcrypto/err/err.c
664
*flags = es->err_data_flags[i];
lib/libcrypto/err/err.c
771
ERR_STATE *es;
lib/libcrypto/err/err.c
773
es = ERR_get_state();
lib/libcrypto/err/err.c
775
if (es->bottom == es->top)
lib/libcrypto/err/err.c
777
es->err_flags[es->top] |= ERR_FLAG_MARK;
lib/libcrypto/err/err.c
785
ERR_STATE *es;
lib/libcrypto/err/err.c
787
es = ERR_get_state();
lib/libcrypto/err/err.c
789
while (es->bottom != es->top &&
lib/libcrypto/err/err.c
790
(es->err_flags[es->top] & ERR_FLAG_MARK) == 0) {
lib/libcrypto/err/err.c
791
err_clear(es, es->top);
lib/libcrypto/err/err.c
792
es->top -= 1;
lib/libcrypto/err/err.c
793
if (es->top == -1)
lib/libcrypto/err/err.c
794
es->top = ERR_NUM_ERRORS - 1;
lib/libcrypto/err/err.c
797
if (es->bottom == es->top)
lib/libcrypto/err/err.c
799
es->err_flags[es->top]&=~ERR_FLAG_MARK;
lib/libcrypto/err/err.c
808
ERR_STATE *es;
lib/libcrypto/err/err.c
810
es = ERR_get_state();
lib/libcrypto/err/err.c
813
err_clear(es, i);
lib/libcrypto/err/err.c
815
es->top = es->bottom = 0;
lib/libcrypto/err/err.c
822
ERR_STATE *es;
lib/libcrypto/err/err.c
825
es = ERR_get_state();
lib/libcrypto/err/err.c
826
if (es == NULL)
lib/libcrypto/err/err.c
829
top = es->top;
lib/libcrypto/err/err.c
831
es->err_flags[top] &= ~(0 - clear);
lib/libcrypto/err/err.c
832
es->err_buffer[top] &= ~(0UL - clear);
lib/libcrypto/err/err.c
833
es->err_file[top] = (const char *)((uintptr_t)es->err_file[top] &
lib/libcrypto/err/err.c
835
es->err_line[top] |= 0 - clear;
lib/libcrypto/err/err.c
837
es->top = (top + ERR_NUM_ERRORS - clear) % ERR_NUM_ERRORS;
lib/libcrypto/err/err.c
843
ERR_STATE *es;
lib/libcrypto/err/err.c
846
es = ERR_get_state();
lib/libcrypto/err/err.c
848
es->top = (es->top + 1) % ERR_NUM_ERRORS;
lib/libcrypto/err/err.c
849
if (es->top == es->bottom)
lib/libcrypto/err/err.c
850
es->bottom = (es->bottom + 1) % ERR_NUM_ERRORS;
lib/libcrypto/err/err.c
851
es->err_flags[es->top] = 0;
lib/libcrypto/err/err.c
852
es->err_buffer[es->top] = ERR_PACK(lib, func, reason);
lib/libcrypto/err/err.c
853
es->err_file[es->top] = file;
lib/libcrypto/err/err.c
854
es->err_line[es->top] = line;
lib/libcrypto/err/err.c
855
err_clear_data(es, es->top);
lib/libcrypto/err/err.c
880
ERR_STATE *es;
lib/libcrypto/err/err.c
883
es = ERR_get_state();
lib/libcrypto/err/err.c
885
i = es->top;
lib/libcrypto/err/err.c
889
err_clear_data(es, i);
lib/libcrypto/err/err.c
890
es->err_data[i] = data;
lib/libcrypto/err/err.c
891
es->err_data_flags[i] = flags;
lib/libcrypto/err/err_prn.c
79
unsigned long es;
lib/libcrypto/err/err_prn.c
81
es = (unsigned long)pthread_self();
lib/libcrypto/err/err_prn.c
85
(void) snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es,
lib/libm/src/ld128/s_exp2l.c
362
uint32_t es, hx, ix, i0;
lib/libm/src/ld128/s_exp2l.c
415
es = LDBL_MAX_EXP - 1 + k;
lib/libm/src/ld128/s_exp2l.c
416
v.bits.ext_exp = es & 0x7fffffff;
lib/libm/src/ld128/s_exp2l.c
420
es = LDBL_MAX_EXP - 1 + k + 10000;
lib/libm/src/ld128/s_exp2l.c
421
v.bits.ext_exp = es & 0x7fffffff;
lib/libm/src/ld80/e_hypotl.c
116
u_int32_t es;
lib/libm/src/ld80/e_hypotl.c
118
GET_LDOUBLE_EXP(es,t1);
lib/libm/src/ld80/e_hypotl.c
119
SET_LDOUBLE_EXP(t1,es+k);
lib/libm/src/ld80/e_hypotl.c
66
u_int32_t es,high,low;
lib/libm/src/ld80/e_hypotl.c
68
GET_LDOUBLE_WORDS(es,high,low,a);
lib/libm/src/ld80/e_hypotl.c
70
GET_LDOUBLE_WORDS(es,high,low,b);
lib/libm/src/ld80/e_hypotl.c
81
u_int32_t es,high,low;
lib/libm/src/ld80/e_hypotl.c
82
GET_LDOUBLE_WORDS(es,high,low,b);
lib/libm/src/ld80/s_cbrtl.c
35
uint16_t expsign, es;
lib/libm/src/ld80/s_cbrtl.c
51
GET_LDOUBLE_WORDS(es,hx,lx,x);
lib/libm/src/ld80/s_exp2l.c
216
uint32_t es, hx, ix, i0;
lib/libm/src/ld80/s_exp2l.c
264
es = LDBL_MAX_EXP - 1 + k;
lib/libm/src/ld80/s_exp2l.c
265
v.bits.ext_exp = es & 0x7fffffff;
lib/libm/src/ld80/s_exp2l.c
269
es = LDBL_MAX_EXP - 1 + k + 10000;
lib/libm/src/ld80/s_exp2l.c
270
v.bits.ext_exp = es & 0x7fffffff;
lib/libm/src/ld80/s_truncl.c
44
int e, es;
lib/libm/src/ld80/s_truncl.c
47
GET_LDOUBLE_WORDS(es,ix0,ix1,x);
lib/libm/src/ld80/s_truncl.c
48
e = (es&0x7fff) - LDBL_MAX_EXP + 1;
lib/libm/src/ld80/s_truncl.c
53
return (zero[(es&0x8000)!=0]);
lib/libm/src/ld80/s_truncl.c
70
SET_LDOUBLE_WORDS(x,es,ix0,ix1);
libexec/tradcpp/macro.c
1002
expand_newarg(es, buf, len);
libexec/tradcpp/macro.c
1003
es->state = ES_HAVEARG;
libexec/tradcpp/macro.c
1006
expand_appendarg(es, buf, len);
libexec/tradcpp/macro.c
1013
expand_got_lparen(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
1016
switch (es->state) {
libexec/tradcpp/macro.c
1018
expand_send(es, p, buf, len);
libexec/tradcpp/macro.c
1021
es->state = ES_NOARG;
libexec/tradcpp/macro.c
1024
expand_newarg(es, buf, len);
libexec/tradcpp/macro.c
1025
es->state = ES_HAVEARG;
libexec/tradcpp/macro.c
1026
es->argparens++;
libexec/tradcpp/macro.c
1029
expand_appendarg(es, buf, len);
libexec/tradcpp/macro.c
1030
es->argparens++;
libexec/tradcpp/macro.c
1037
expand_got_rparen(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
1040
switch (es->state) {
libexec/tradcpp/macro.c
1042
expand_send(es, p, buf, len);
libexec/tradcpp/macro.c
1045
expand_missingargs(es, p, false);
libexec/tradcpp/macro.c
1046
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
1048
expand_got_rparen(es, p, buf, len);
libexec/tradcpp/macro.c
1051
assert(es->argparens == 0);
libexec/tradcpp/macro.c
1052
if (stringarray_num(&es->args) > 0) {
libexec/tradcpp/macro.c
1054
expand_newarg(es, buf, 0);
libexec/tradcpp/macro.c
1056
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
1057
expand_domacro(es, p);
libexec/tradcpp/macro.c
1060
if (es->argparens > 0) {
libexec/tradcpp/macro.c
1061
es->argparens--;
libexec/tradcpp/macro.c
1062
expand_appendarg(es, buf, len);
libexec/tradcpp/macro.c
1064
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
1065
expand_domacro(es, p);
libexec/tradcpp/macro.c
1073
expand_got_comma(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
1076
switch (es->state) {
libexec/tradcpp/macro.c
1078
expand_send(es, p, buf, len);
libexec/tradcpp/macro.c
1081
expand_missingargs(es, p, false);
libexec/tradcpp/macro.c
1082
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
1084
expand_got_comma(es, p, buf, len);
libexec/tradcpp/macro.c
1087
assert(es->argparens == 0);
libexec/tradcpp/macro.c
1088
expand_newarg(es, buf, 0);
libexec/tradcpp/macro.c
1091
if (es->argparens > 0) {
libexec/tradcpp/macro.c
1092
expand_appendarg(es, buf, len);
libexec/tradcpp/macro.c
1094
es->state = ES_NOARG;
libexec/tradcpp/macro.c
1102
expand_got_other(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
1105
switch (es->state) {
libexec/tradcpp/macro.c
1107
expand_send(es, p, buf, len);
libexec/tradcpp/macro.c
1110
expand_missingargs(es, p, false);
libexec/tradcpp/macro.c
1111
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
1113
expand_got_other(es, p, buf, len);
libexec/tradcpp/macro.c
1116
expand_newarg(es, buf, len);
libexec/tradcpp/macro.c
1117
es->state = ES_HAVEARG;
libexec/tradcpp/macro.c
1120
expand_appendarg(es, buf, len);
libexec/tradcpp/macro.c
1127
expand_got_eof(struct expstate *es, struct place *p)
libexec/tradcpp/macro.c
1129
switch (es->state) {
libexec/tradcpp/macro.c
1133
expand_missingargs(es, p, false);
libexec/tradcpp/macro.c
1137
if (es->curmacro) {
libexec/tradcpp/macro.c
1139
es->curmacro->name);
libexec/tradcpp/macro.c
1144
expstate_destroyargs(es);
libexec/tradcpp/macro.c
1147
expand_send_eof(es, p);
libexec/tradcpp/macro.c
1148
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
1149
es->curmacro = NULL;
libexec/tradcpp/macro.c
1150
es->argparens = 0;
libexec/tradcpp/macro.c
1155
doexpand(struct expstate *es, struct place *p, const char *buf, size_t len)
libexec/tradcpp/macro.c
1170
expand_got_ws(es, p, buf, x);
libexec/tradcpp/macro.c
1183
expand_got_word(es, p, buf, x);
libexec/tradcpp/macro.c
1196
expand_got_ws(es, p, buf, x);
libexec/tradcpp/macro.c
1203
expand_got_lparen(es, p, buf, 1);
libexec/tradcpp/macro.c
1210
expand_got_rparen(es, p, buf, 1);
libexec/tradcpp/macro.c
1217
expand_got_comma(es, p, buf, 1);
libexec/tradcpp/macro.c
1225
expand_got_other(es, p, buf, 2);
libexec/tradcpp/macro.c
1237
expand_got_other(es, p, buf, 1);
libexec/tradcpp/macro.c
1246
struct expstate es;
libexec/tradcpp/macro.c
1249
expstate_init(&es, true, honordefined);
libexec/tradcpp/macro.c
1250
doexpand(&es, p, buf, len);
libexec/tradcpp/macro.c
1251
expand_got_eof(&es, p);
libexec/tradcpp/macro.c
1254
es.buf = dorealloc(es.buf, es.bufmax, strlen(es.buf) + 1);
libexec/tradcpp/macro.c
1256
ret = es.buf;
libexec/tradcpp/macro.c
1257
es.buf = NULL;
libexec/tradcpp/macro.c
1258
es.bufpos = es.bufmax = 0;
libexec/tradcpp/macro.c
1260
expstate_cleanup(&es);
libexec/tradcpp/macro.c
686
static void doexpand(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
691
expstate_init(struct expstate *es, bool tobuf, bool honordefined)
libexec/tradcpp/macro.c
693
es->honordefined = honordefined;
libexec/tradcpp/macro.c
694
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
695
es->curmacro = NULL;
libexec/tradcpp/macro.c
696
stringarray_init(&es->args);
libexec/tradcpp/macro.c
697
es->argparens = 0;
libexec/tradcpp/macro.c
698
es->tobuf = tobuf;
libexec/tradcpp/macro.c
699
es->buf = NULL;
libexec/tradcpp/macro.c
700
es->bufpos = 0;
libexec/tradcpp/macro.c
701
es->bufmax = 0;
libexec/tradcpp/macro.c
706
expstate_cleanup(struct expstate *es)
libexec/tradcpp/macro.c
708
assert(es->state == ES_NORMAL);
libexec/tradcpp/macro.c
709
stringarray_cleanup(&es->args);
libexec/tradcpp/macro.c
710
if (es->buf) {
libexec/tradcpp/macro.c
711
dofree(es->buf, es->bufmax);
libexec/tradcpp/macro.c
717
expstate_destroyargs(struct expstate *es)
libexec/tradcpp/macro.c
721
num = stringarray_num(&es->args);
libexec/tradcpp/macro.c
723
dostrfree(stringarray_get(&es->args, i));
libexec/tradcpp/macro.c
725
stringarray_setsize(&es->args, 0);
libexec/tradcpp/macro.c
730
expand_send(struct expstate *es, struct place *p, const char *buf, size_t len)
libexec/tradcpp/macro.c
734
if (es->tobuf) {
libexec/tradcpp/macro.c
735
assert(es->bufpos <= es->bufmax);
libexec/tradcpp/macro.c
736
if (es->bufpos + len > es->bufmax) {
libexec/tradcpp/macro.c
737
oldmax = es->bufmax;
libexec/tradcpp/macro.c
738
if (es->bufmax == 0) {
libexec/tradcpp/macro.c
739
es->bufmax = 64;
libexec/tradcpp/macro.c
741
while (es->bufpos + len > es->bufmax) {
libexec/tradcpp/macro.c
742
es->bufmax *= 2;
libexec/tradcpp/macro.c
744
es->buf = dorealloc(es->buf, oldmax, es->bufmax);
libexec/tradcpp/macro.c
746
memcpy(es->buf + es->bufpos, buf, len);
libexec/tradcpp/macro.c
747
es->bufpos += len;
libexec/tradcpp/macro.c
748
assert(es->bufpos <= es->bufmax);
libexec/tradcpp/macro.c
756
expand_send_eof(struct expstate *es, struct place *p)
libexec/tradcpp/macro.c
758
if (es->tobuf) {
libexec/tradcpp/macro.c
759
expand_send(es, p, "", 1);
libexec/tradcpp/macro.c
760
es->bufpos--;
libexec/tradcpp/macro.c
768
expand_newarg(struct expstate *es, const char *buf, size_t len)
libexec/tradcpp/macro.c
773
stringarray_add(&es->args, text, NULL);
libexec/tradcpp/macro.c
778
expand_appendarg(struct expstate *es, const char *buf, size_t len)
libexec/tradcpp/macro.c
784
num = stringarray_num(&es->args);
libexec/tradcpp/macro.c
787
text = stringarray_get(&es->args, num - 1);
libexec/tradcpp/macro.c
792
stringarray_set(&es->args, num - 1, text);
libexec/tradcpp/macro.c
797
expand_substitute(struct place *p, struct expstate *es)
libexec/tradcpp/macro.c
807
numargs = stringarray_num(&es->args);
libexec/tradcpp/macro.c
808
numparams = stringarray_num(&es->curmacro->params);
libexec/tradcpp/macro.c
812
stringarray_add(&es->args, dostrdup(""), NULL);
libexec/tradcpp/macro.c
818
es->curmacro->name, numargs, numparams);
libexec/tradcpp/macro.c
821
stringarray_add(&es->args, dostrdup(""), NULL);
libexec/tradcpp/macro.c
827
num = expansionitemarray_num(&es->curmacro->expansion);
libexec/tradcpp/macro.c
829
ei = expansionitemarray_get(&es->curmacro->expansion, i);
libexec/tradcpp/macro.c
835
arg = stringarray_get(&es->args, ei->ei_param);
libexec/tradcpp/macro.c
850
ei = expansionitemarray_get(&es->curmacro->expansion, i);
libexec/tradcpp/macro.c
856
arg = stringarray_get(&es->args, ei->ei_param);
libexec/tradcpp/macro.c
876
expand_domacro(struct expstate *es, struct place *p)
libexec/tradcpp/macro.c
882
if (es->curmacro == NULL) {
libexec/tradcpp/macro.c
884
if (stringarray_num(&es->args) != 1) {
libexec/tradcpp/macro.c
887
expand_send(es, p, "0", 1);
libexec/tradcpp/macro.c
890
name = stringarray_get(&es->args, 0);
libexec/tradcpp/macro.c
894
expand_send(es, p, val, 1);
libexec/tradcpp/macro.c
895
expstate_destroyargs(es);
libexec/tradcpp/macro.c
899
m = es->curmacro;
libexec/tradcpp/macro.c
904
newbuf = expand_substitute(p, es);
libexec/tradcpp/macro.c
909
expstate_destroyargs(es);
libexec/tradcpp/macro.c
912
doexpand(es, p, newbuf2, strlen(newbuf2));
libexec/tradcpp/macro.c
925
expand_missingargs(struct expstate *es, struct place *p, bool needspace)
libexec/tradcpp/macro.c
927
if (es->curmacro == NULL) {
libexec/tradcpp/macro.c
929
expand_send(es, p, "defined", 7);
libexec/tradcpp/macro.c
932
expand_send(es, p, es->curmacro->name, strlen(es->curmacro->name));
libexec/tradcpp/macro.c
935
expand_send(es, p, " ", 1);
libexec/tradcpp/macro.c
941
expand_got_ws(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
944
switch (es->state) {
libexec/tradcpp/macro.c
946
expand_send(es, p, buf, len);
libexec/tradcpp/macro.c
953
expand_newarg(es, buf, len);
libexec/tradcpp/macro.c
954
es->state = ES_HAVEARG;
libexec/tradcpp/macro.c
957
expand_appendarg(es, buf, len);
libexec/tradcpp/macro.c
964
expand_got_word(struct expstate *es, struct place *p,
libexec/tradcpp/macro.c
969
switch (es->state) {
libexec/tradcpp/macro.c
971
if (es->honordefined &&
libexec/tradcpp/macro.c
973
es->curmacro = NULL;
libexec/tradcpp/macro.c
974
es->state = ES_WANTLPAREN;
libexec/tradcpp/macro.c
979
expand_send(es, p, buf, len);
libexec/tradcpp/macro.c
981
es->curmacro = m;
libexec/tradcpp/macro.c
982
expand_domacro(es, p);
libexec/tradcpp/macro.c
984
es->curmacro = m;
libexec/tradcpp/macro.c
985
es->state = ES_WANTLPAREN;
libexec/tradcpp/macro.c
989
if (es->curmacro != NULL) {
libexec/tradcpp/macro.c
990
expand_missingargs(es, p, true);
libexec/tradcpp/macro.c
991
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
993
expand_got_word(es, p, buf, len);
libexec/tradcpp/macro.c
996
expand_newarg(es, buf, len);
libexec/tradcpp/macro.c
997
es->state = ES_NORMAL;
libexec/tradcpp/macro.c
998
expand_domacro(es, p);
regress/lib/libc/qsort/qsort_test.c
125
check_result(char *sub, size_t es, char *got, char *expected, struct test_distribution *d,
regress/lib/libc/qsort/qsort_test.c
155
if (memcmp(got, expected, es) != 0)
regress/lib/libc/qsort/qsort_test.c
157
got += es;
regress/lib/libc/qsort/qsort_test.c
158
expected += es;
regress/lib/libc/qsort/qsort_test.c
420
do_test(struct test_distribution *d, char *sub, int m, int n, size_t es, void *y, void *z)
regress/lib/libc/qsort/qsort_test.c
438
qsort(y, n, es, d->cmp_checked);
regress/lib/libc/qsort/qsort_test.c
446
if (check_result(sub, es, y, z, d, m, n) != 0)
regress/lib/libc/qsort/qsort_test.c
454
const int es = sizeof(x[0]); \
regress/lib/libc/qsort/qsort_test.c
463
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
465
if (do_test(d, "copy", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
471
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
473
if (do_test(d, "reversed", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
481
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
483
if (do_test(d, "front reversed", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
491
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
493
if (do_test(d, "back reversed", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
497
if (mergesort(x, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
501
if (do_test(d, "sorted", m, n, es, y, x) != 0) \
regress/lib/libc/qsort/qsort_test.c
507
if (mergesort(z, n, es, d->cmp) != 0) \
regress/lib/libc/qsort/qsort_test.c
509
if (do_test(d, "dithered", m, n, es, y, z) != 0) \
regress/lib/libc/qsort/qsort_test.c
685
size_t es;
regress/lib/libc/qsort/qsort_test.c
700
es = MAXIMUM(sizeof(int), sizeof(double));
regress/lib/libc/qsort/qsort_test.c
701
x = reallocarray(NULL, n, es);
regress/lib/libc/qsort/qsort_test.c
702
y = reallocarray(NULL, n, es);
regress/lib/libc/qsort/qsort_test.c
703
z = reallocarray(NULL, n, es);
sbin/unwind/libunbound/util/data/msgencode.c
1119
struct edns_data es = *edns;
sbin/unwind/libunbound/util/data/msgencode.c
1120
es.edns_version = EDNS_ADVERTISED_VERSION;
sbin/unwind/libunbound/util/data/msgencode.c
1121
es.udp_size = EDNS_ADVERTISED_SIZE;
sbin/unwind/libunbound/util/data/msgencode.c
1122
es.ext_rcode = (uint8_t)(rcode >> 4);
sbin/unwind/libunbound/util/data/msgencode.c
1123
es.bits &= EDNS_DO;
sbin/unwind/libunbound/util/data/msgencode.c
1124
if(sldns_buffer_limit(buf) + calc_edns_field_size(&es) >
sbin/unwind/libunbound/util/data/msgencode.c
1126
edns_opt_list_remove(&es.opt_list_inplace_cb_out, LDNS_EDNS_EDE);
sbin/unwind/libunbound/util/data/msgencode.c
1127
edns_opt_list_remove(&es.opt_list_out, LDNS_EDNS_EDE);
sbin/unwind/libunbound/util/data/msgencode.c
1128
if(sldns_buffer_limit(buf) + calc_edns_field_size(&es) >
sbin/unwind/libunbound/util/data/msgencode.c
1133
attach_edns_record(buf, &es);
sys/arch/amd64/stand/libsa/pxe.h
125
uint16_t es;
sys/arch/hppa/hppa/mainbus.c
1005
*es = &map->dm_segs[map->dm_nsegs];
sys/arch/hppa/hppa/mainbus.c
1013
for (; len && ps < es; ps++)
sys/arch/i386/i386/esm.c
361
struct esm_sensor *es = sc->sc_nextsensor;
sys/arch/i386/i386/esm.c
369
req.h_dev = es->es_dev;
sys/arch/i386/i386/esm.c
373
req.req_val.v_sensor = es->es_id;
sys/arch/i386/i386/esm.c
375
switch (es->es_type) {
sys/arch/i386/i386/esm.c
393
es->es_sensor[i].flags |= SENSOR_FINVALID;
sys/arch/i386/i386/esm.c
395
switch (es->es_type) {
sys/arch/i386/i386/esm.c
397
es->es_sensor->value = esm_val2temp(val->v_reading);
sys/arch/i386/i386/esm.c
400
es->es_sensor->value = esm_val2volts(val->v_reading);
sys/arch/i386/i386/esm.c
403
es->es_sensor->value =
sys/arch/i386/i386/esm.c
407
es->es_sensor->value = esm_val2amps(val->v_reading);
sys/arch/i386/i386/esm.c
411
es->es_sensor[i].value =
sys/arch/i386/i386/esm.c
417
es->es_sensor[i].value =
sys/arch/i386/i386/esm.c
422
es->es_sensor->value = val->v_reading;
sys/arch/i386/i386/esm.c
426
switch (es->es_type) {
sys/arch/i386/i386/esm.c
431
if (val->v_reading >= es->es_thresholds.th_hi_crit ||
sys/arch/i386/i386/esm.c
432
val->v_reading <= es->es_thresholds.th_lo_crit) {
sys/arch/i386/i386/esm.c
433
es->es_sensor->status = SENSOR_S_CRIT;
sys/arch/i386/i386/esm.c
437
if (val->v_reading >= es->es_thresholds.th_hi_warn ||
sys/arch/i386/i386/esm.c
438
val->v_reading <= es->es_thresholds.th_lo_warn) {
sys/arch/i386/i386/esm.c
439
es->es_sensor->status = SENSOR_S_WARN;
sys/arch/i386/i386/esm.c
443
es->es_sensor->status = SENSOR_S_OK;
sys/arch/i386/i386/esm.c
448
es->es_sensor[3].status = SENSOR_S_CRIT;
sys/arch/i386/i386/esm.c
452
es->es_sensor[3].status = SENSOR_S_OK;
sys/arch/i386/i386/esm.c
460
es->es_sensor->flags &= ~SENSOR_FINVALID;
sys/arch/i386/i386/esm.c
463
sc->sc_nextsensor = TAILQ_NEXT(es, es_entry);
sys/arch/i386/i386/esm.c
835
struct esm_sensor *es;
sys/arch/i386/i386/esm.c
871
es = malloc(sizeof(struct esm_sensor), M_DEVBUF,
sys/arch/i386/i386/esm.c
873
if (es == NULL)
sys/arch/i386/i386/esm.c
876
es->es_dev = devmap->index;
sys/arch/i386/i386/esm.c
877
es->es_id = i;
sys/arch/i386/i386/esm.c
878
es->es_type = sensor_map[i].type;
sys/arch/i386/i386/esm.c
880
switch (es->es_type) {
sys/arch/i386/i386/esm.c
890
free(es, M_DEVBUF, sizeof(*es));
sys/arch/i386/i386/esm.c
908
free(es, M_DEVBUF, sizeof(*es));
sys/arch/i386/i386/esm.c
923
if (esm_thresholds(sc, devmap, es) != 0) {
sys/arch/i386/i386/esm.c
924
free(es, M_DEVBUF, sizeof(*es));
sys/arch/i386/i386/esm.c
934
free(es, M_DEVBUF, sizeof(*es));
sys/arch/i386/i386/esm.c
943
s[j].type = esm_typemap[es->es_type];
sys/arch/i386/i386/esm.c
947
es->es_sensor = s;
sys/arch/i386/i386/esm.c
948
TAILQ_INSERT_TAIL(&sc->sc_sensors, es, es_entry);
sys/arch/i386/i386/esm.c
954
struct esm_sensor *es)
sys/arch/i386/i386/esm.c
967
req.req_thr.t_sensor = es->es_id;
sys/arch/i386/i386/esm.c
974
DEVNAME(sc), devmap->index, es->es_id, thr->t_lo_fail,
sys/arch/i386/i386/esm.c
978
es->es_thresholds.th_lo_crit = thr->t_lo_fail;
sys/arch/i386/i386/esm.c
979
es->es_thresholds.th_lo_warn = thr->t_lo_warn;
sys/arch/i386/i386/esm.c
980
es->es_thresholds.th_hi_warn = thr->t_hi_warn;
sys/arch/i386/i386/esm.c
981
es->es_thresholds.th_hi_crit = thr->t_hi_fail;
sys/arch/i386/stand/libsa/pxe.h
125
uint16_t es;
sys/dev/pci/drm/linux_sort.c
102
pn = a + (n - 1) * es;
sys/dev/pci/drm/linux_sort.c
104
d = (n / 8) * es;
sys/dev/pci/drm/linux_sort.c
112
pa = pb = a + es;
sys/dev/pci/drm/linux_sort.c
114
pc = pd = a + (n - 1) * es;
sys/dev/pci/drm/linux_sort.c
119
pa += es;
sys/dev/pci/drm/linux_sort.c
121
pb += es;
sys/dev/pci/drm/linux_sort.c
126
pd -= es;
sys/dev/pci/drm/linux_sort.c
128
pc -= es;
sys/dev/pci/drm/linux_sort.c
133
pb += es;
sys/dev/pci/drm/linux_sort.c
134
pc -= es;
sys/dev/pci/drm/linux_sort.c
137
pn = a + n * es;
sys/dev/pci/drm/linux_sort.c
140
r = min(pd - pc, pn - pd - es);
sys/dev/pci/drm/linux_sort.c
150
if (s > es) {
sys/dev/pci/drm/linux_sort.c
151
if (r > es)
sys/dev/pci/drm/linux_sort.c
152
qsort(a, r / es, es, cmp);
sys/dev/pci/drm/linux_sort.c
154
n = s / es;
sys/dev/pci/drm/linux_sort.c
159
if (r > es) {
sys/dev/pci/drm/linux_sort.c
160
if (s > es)
sys/dev/pci/drm/linux_sort.c
161
qsort(pn - s, s / es, es, cmp);
sys/dev/pci/drm/linux_sort.c
162
n = r / es;
sys/dev/pci/drm/linux_sort.c
169
sort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void *),
sys/dev/pci/drm/linux_sort.c
173
qsort(a, n, es, cmp);
sys/dev/pci/drm/linux_sort.c
53
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
sys/dev/pci/drm/linux_sort.c
54
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
sys/dev/pci/drm/linux_sort.c
71
swapfunc(a, b, es, swaptype)
sys/dev/pci/drm/linux_sort.c
84
qsort(void *aa, size_t n, size_t es, int (*cmp)(const void *, const void *))
sys/dev/pci/drm/linux_sort.c
91
loop: SWAPINIT(a, es);
sys/dev/pci/drm/linux_sort.c
93
for (pm = a + es; pm < a + n * es; pm += es)
sys/dev/pci/drm/linux_sort.c
94
for (pl = pm; pl > a && cmp(pl - es, pl) > 0;
sys/dev/pci/drm/linux_sort.c
95
pl -= es)
sys/dev/pci/drm/linux_sort.c
96
swap(pl, pl - es);
sys/dev/pci/drm/linux_sort.c
99
pm = a + (n / 2) * es;
sys/dev/pci/drm/linux_sort_r.c
100
swap(pl, pl - es);
sys/dev/pci/drm/linux_sort_r.c
103
pm = a + (n / 2) * es;
sys/dev/pci/drm/linux_sort_r.c
106
pn = a + (n - 1) * es;
sys/dev/pci/drm/linux_sort_r.c
108
d = (n / 8) * es;
sys/dev/pci/drm/linux_sort_r.c
116
pa = pb = a + es;
sys/dev/pci/drm/linux_sort_r.c
118
pc = pd = a + (n - 1) * es;
sys/dev/pci/drm/linux_sort_r.c
123
pa += es;
sys/dev/pci/drm/linux_sort_r.c
125
pb += es;
sys/dev/pci/drm/linux_sort_r.c
130
pd -= es;
sys/dev/pci/drm/linux_sort_r.c
132
pc -= es;
sys/dev/pci/drm/linux_sort_r.c
137
pb += es;
sys/dev/pci/drm/linux_sort_r.c
138
pc -= es;
sys/dev/pci/drm/linux_sort_r.c
141
pn = a + n * es;
sys/dev/pci/drm/linux_sort_r.c
144
r = min(pd - pc, pn - pd - es);
sys/dev/pci/drm/linux_sort_r.c
154
if (s > es) {
sys/dev/pci/drm/linux_sort_r.c
155
if (r > es)
sys/dev/pci/drm/linux_sort_r.c
156
qsort_r(a, r / es, es, cmp, p);
sys/dev/pci/drm/linux_sort_r.c
158
n = s / es;
sys/dev/pci/drm/linux_sort_r.c
163
if (r > es) {
sys/dev/pci/drm/linux_sort_r.c
164
if (s > es)
sys/dev/pci/drm/linux_sort_r.c
165
qsort_r(pn - s, s / es, es, cmp, p);
sys/dev/pci/drm/linux_sort_r.c
166
n = r / es;
sys/dev/pci/drm/linux_sort_r.c
173
sort_r(void *a, size_t n, size_t es,
sys/dev/pci/drm/linux_sort_r.c
178
qsort_r(a, n, es, cmp, p);
sys/dev/pci/drm/linux_sort_r.c
54
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
sys/dev/pci/drm/linux_sort_r.c
55
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
sys/dev/pci/drm/linux_sort_r.c
72
swapfunc(a, b, es, swaptype)
sys/dev/pci/drm/linux_sort_r.c
87
qsort_r(void *aa, size_t n, size_t es,
sys/dev/pci/drm/linux_sort_r.c
95
loop: SWAPINIT(a, es);
sys/dev/pci/drm/linux_sort_r.c
97
for (pm = a + es; pm < a + n * es; pm += es)
sys/dev/pci/drm/linux_sort_r.c
98
for (pl = pm; pl > a && cmp(pl - es, pl, p) > 0;
sys/dev/pci/drm/linux_sort_r.c
99
pl -= es)
sys/dev/pci/if_ice.c
17393
struct ice_sw_fv_section *es;
sys/dev/pci/if_ice.c
17470
es = (struct ice_sw_fv_section *)sect;
sys/dev/pci/if_ice.c
17471
src = (uint8_t *)es->fv;
sys/dev/pci/if_ice.c
17472
sect_len = (uint32_t)(le16toh(es->count) *
sys/dev/pci/if_ice.c
17473
hw->blk[block_id].es.fvw) *
sys/dev/pci/if_ice.c
17474
sizeof(*hw->blk[block_id].es.t);
sys/dev/pci/if_ice.c
17475
dst = (uint8_t *)hw->blk[block_id].es.t;
sys/dev/pci/if_ice.c
17476
dst_len = (uint32_t)(hw->blk[block_id].es.count *
sys/dev/pci/if_ice.c
17477
hw->blk[block_id].es.fvw) *
sys/dev/pci/if_ice.c
17478
sizeof(*hw->blk[block_id].es.t);
sys/dev/pci/if_ice.c
17524
ice_fill_tbl(hw, blk_id, hw->blk[blk_id].es.sid);
sys/dev/pci/if_ice.c
17598
for (j = 0; j < hw->blk[ICE_BLK_SW].es.fvw; j++)
sys/dev/pci/if_ice.c
19254
TAILQ_FOREACH(map, &hw->blk[blk].es.prof_map, list) {
sys/dev/pci/if_ice.c
19296
ice_acquire_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
19362
ice_release_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
19368
ice_release_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
19672
uint16_t vec_size = hw->blk[blk].es.fvw * sizeof(struct ice_fv_word);
sys/dev/pci/if_ice.c
19682
off = tmp->prof_id * hw->blk[blk].es.fvw;
sys/dev/pci/if_ice.c
19685
ice_struct_size(p, es, 1) + vec_size - sizeof(p->es[0]));
sys/dev/pci/if_ice.c
19691
memcpy(p->es, &hw->blk[blk].es.t[off], vec_size);
sys/dev/pci/if_ice.c
19945
uint16_t es = 0;
sys/dev/pci/if_ice.c
19955
es++;
sys/dev/pci/if_ice.c
19969
sects = xlt1 + xlt2 + tcam + es;
sys/dev/pci/if_ice.c
19984
if (es) {
sys/dev/pci/if_ice.c
20328
if (prof_id > hw->blk[blk].es.count)
sys/dev/pci/if_ice.c
20331
hw->blk[blk].es.ref_count[prof_id]++;
sys/dev/pci/if_ice.c
20349
off = prof_id * hw->blk[blk].es.fvw;
sys/dev/pci/if_ice.c
20351
memset(&hw->blk[blk].es.t[off], 0, hw->blk[blk].es.fvw *
sys/dev/pci/if_ice.c
20353
hw->blk[blk].es.written[prof_id] = false;
sys/dev/pci/if_ice.c
20355
memcpy(&hw->blk[blk].es.t[off], fv, hw->blk[blk].es.fvw *
sys/dev/pci/if_ice.c
20410
if (prof_id > hw->blk[blk].es.count)
sys/dev/pci/if_ice.c
20413
if (hw->blk[blk].es.ref_count[prof_id] > 0) {
sys/dev/pci/if_ice.c
20414
if (!--hw->blk[blk].es.ref_count[prof_id]) {
sys/dev/pci/if_ice.c
20439
ice_acquire_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
20455
TAILQ_REMOVE(&hw->blk[blk].es.prof_map, pmap, list);
sys/dev/pci/if_ice.c
20460
ice_release_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
21122
struct ice_es *es = &hw->blk[i].es;
sys/dev/pci/if_ice.c
21160
if (es->t)
sys/dev/pci/if_ice.c
21161
memset(es->t, 0, es->count * sizeof(*es->t) * es->fvw);
sys/dev/pci/if_ice.c
21163
if (es->ref_count)
sys/dev/pci/if_ice.c
21164
memset(es->ref_count, 0,
sys/dev/pci/if_ice.c
21165
es->count * sizeof(*es->ref_count));
sys/dev/pci/if_ice.c
21167
if (es->written)
sys/dev/pci/if_ice.c
21168
memset(es->written, 0,
sys/dev/pci/if_ice.c
21169
es->count * sizeof(*es->written));
sys/dev/pci/if_ice.c
24752
struct ice_fv_word es[ICE_MAX_FV_WORDS];
sys/dev/pci/if_ice.c
24882
uint8_t fv_words = (uint8_t)hw->blk[params->blk].es.fvw;
sys/dev/pci/if_ice.c
25009
if (hw->blk[params->blk].es.reverse)
sys/dev/pci/if_ice.c
25014
params->es[idx].prot_id = (uint8_t)prot_id;
sys/dev/pci/if_ice.c
25015
params->es[idx].off = off;
sys/dev/pci/if_ice.c
25097
struct ice_es *es = &hw->blk[blk].es;
sys/dev/pci/if_ice.c
25101
for (i = 0; i < (uint8_t)es->count; i++) {
sys/dev/pci/if_ice.c
25102
off = i * es->fvw;
sys/dev/pci/if_ice.c
25104
if (memcmp(&es->t[off], fv, es->fvw * sizeof(*fv)))
sys/dev/pci/if_ice.c
25155
ice_bitmap_t *ptypes, struct ice_fv_word *es)
sys/dev/pci/if_ice.c
25165
ice_acquire_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
25168
status = ice_find_prof_id(hw, blk, es, &prof_id);
sys/dev/pci/if_ice.c
25176
ice_write_es(hw, blk, prof_id, es);
sys/dev/pci/if_ice.c
25213
TAILQ_INSERT_HEAD(&hw->blk[blk].es.prof_map, prof, list);
sys/dev/pci/if_ice.c
25218
ice_release_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
25266
params->es[i].prot_id = ICE_PROT_INVALID;
sys/dev/pci/if_ice.c
25267
params->es[i].off = ICE_FV_OFFSET_INVAL;
sys/dev/pci/if_ice.c
25290
status = ice_add_prof(hw, blk, prof_id, params->ptypes, params->es);
sys/dev/pci/if_ice.c
25370
ice_acquire_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
25380
if (!hw->blk[blk].es.written[map->prof_id]) {
sys/dev/pci/if_ice.c
25396
hw->blk[blk].es.written[map->prof_id] = true;
sys/dev/pci/if_ice.c
25403
ice_release_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
25425
ice_acquire_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
25453
ice_release_lock(&hw->blk[blk].es.prof_map_lock);
sys/dev/pci/if_ice.c
7336
struct ice_es *es = &hw->blk[blk_idx].es;
sys/dev/pci/if_ice.c
7339
ice_acquire_lock(&es->prof_map_lock);
sys/dev/pci/if_ice.c
7341
TAILQ_FOREACH_SAFE(del, &es->prof_map, list, tmp) {
sys/dev/pci/if_ice.c
7342
TAILQ_REMOVE(&es->prof_map, del, list);
sys/dev/pci/if_ice.c
7345
TAILQ_INIT(&es->prof_map);
sys/dev/pci/if_ice.c
7347
ice_release_lock(&es->prof_map_lock);
sys/dev/pci/if_ice.c
7390
struct ice_es *es = &hw->blk[i].es;
sys/dev/pci/if_ice.c
7394
ice_destroy_lock(&es->prof_map_lock);
sys/dev/pci/if_ice.c
7413
ice_free(hw, hw->blk[i].es.t);
sys/dev/pci/if_ice.c
7414
ice_free(hw, hw->blk[i].es.ref_count);
sys/dev/pci/if_ice.c
7415
ice_free(hw, hw->blk[i].es.written);
sys/dev/pci/if_ice.c
7449
uint16_t es; /* # extraction sequence entries */
sys/dev/pci/if_ice.c
7551
struct ice_es *es = &hw->blk[i].es;
sys/dev/pci/if_ice.c
7558
ice_init_lock(&es->prof_map_lock);
sys/dev/pci/if_ice.c
7559
TAILQ_INIT(&es->prof_map);
sys/dev/pci/if_ice.c
7563
es->reverse = blk_sizes[i].reverse;
sys/dev/pci/if_ice.c
7625
es->sid = ice_blk_sids[i][ICE_SID_ES_OFF];
sys/dev/pci/if_ice.c
7626
es->count = blk_sizes[i].es;
sys/dev/pci/if_ice.c
7627
es->fvw = blk_sizes[i].fvw;
sys/dev/pci/if_ice.c
7628
es->t = (struct ice_fv_word *)
sys/dev/pci/if_ice.c
7629
ice_calloc(hw, (uint32_t)(es->count * es->fvw),
sys/dev/pci/if_ice.c
7630
sizeof(*es->t));
sys/dev/pci/if_ice.c
7631
if (!es->t)
sys/dev/pci/if_ice.c
7634
es->ref_count = (uint16_t *)
sys/dev/pci/if_ice.c
7635
ice_calloc(hw, es->count, sizeof(*es->ref_count));
sys/dev/pci/if_ice.c
7637
if (!es->ref_count)
sys/dev/pci/if_ice.c
7640
es->written = (uint8_t *)
sys/dev/pci/if_ice.c
7641
ice_calloc(hw, es->count, sizeof(*es->written));
sys/dev/pci/if_ice.c
7643
if (!es->written)
sys/dev/pci/if_icevar.h
3581
struct ice_fv_word es[STRUCT_HACK_VAR_LEN];
sys/dev/pci/if_icevar.h
3794
struct ice_es es;
sys/dev/pv/xen.c
748
struct evtchn_send es;
sys/dev/pv/xen.c
751
es.port = xi->xi_port;
sys/dev/pv/xen.c
753
xen_evtchn_hypercall(sc, EVTCHNOP_send, &es, sizeof(es));
sys/dev/pv/xen.c
768
struct evtchn_status es;
sys/dev/pv/xen.c
837
memset(&es, 0, sizeof(es));
sys/dev/pv/xen.c
838
es.dom = DOMID_SELF;
sys/dev/pv/xen.c
839
es.port = xi->xi_port;
sys/dev/pv/xen.c
840
if (xen_evtchn_hypercall(sc, EVTCHNOP_status, &es, sizeof(es))) {
sys/dev/pv/xen.c
842
sc->sc_dev.dv_xname, es.port);
sys/dev/pv/xen.c
845
es.port, es.vcpu);
sys/dev/pv/xen.c
846
if (es.status == EVTCHNSTAT_interdomain)
sys/dev/pv/xen.c
847
printf(": domain %d port %u\n", es.u.interdomain.dom,
sys/dev/pv/xen.c
848
es.u.interdomain.port);
sys/dev/pv/xen.c
849
else if (es.status == EVTCHNSTAT_unbound)
sys/dev/pv/xen.c
850
printf(": domain %d\n", es.u.unbound.dom);
sys/dev/pv/xen.c
851
else if (es.status == EVTCHNSTAT_pirq)
sys/dev/pv/xen.c
852
printf(": pirq %u\n", es.u.pirq);
sys/dev/pv/xen.c
853
else if (es.status == EVTCHNSTAT_virq)
sys/dev/pv/xen.c
854
printf(": virq %u\n", es.u.virq);
sys/net/if_wg.c
103
uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN];
sys/net/if_wg.c
1283
if (noise_create_initiation(&peer->p_remote, &pkt.s_idx, pkt.ue, pkt.es,
sys/net/if_wg.c
1430
init->s_idx, init->ue, init->es, init->ets) != 0) {
sys/net/wg_noise.c
1149
init.ue, init.es, init.ets) != 0)
sys/net/wg_noise.c
1153
for (i = 0; i < sizeof(init.es); i++) {
sys/net/wg_noise.c
1154
init.es[i] = ~init.es[i];
sys/net/wg_noise.c
1156
init.ue, init.es, init.ets) != EINVAL)
sys/net/wg_noise.c
1158
init.es[i] = ~init.es[i];
sys/net/wg_noise.c
1165
init.ue, init.es, init.ets) != EINVAL)
sys/net/wg_noise.c
1172
init.ue, init.es, init.ets) != 0)
sys/net/wg_noise.c
1179
init.ue, init.es, init.ets) != EINVAL)
sys/net/wg_noise.c
1280
init.ue, init.es, init.ets) != 0)
sys/net/wg_noise.c
1286
init.ue, init.es, init.ets) != 0)
sys/net/wg_noise.c
211
uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN],
sys/net/wg_noise.c
236
noise_msg_encrypt(es, l->l_public,
sys/net/wg_noise.c
263
uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN],
sys/net/wg_noise.c
286
if (noise_msg_decrypt(r_public, es,
sys/net/wg_noise.c
995
uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN];
sys/net/wg_noise.h
149
uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN],
sys/net/wg_noise.h
157
uint8_t es[NOISE_PUBLIC_KEY_LEN + NOISE_AUTHTAG_LEN],
usr.bin/mg/paragraph.c
456
const char *es;
usr.bin/mg/paragraph.c
467
nfill = strtonum(rep, 0, INT_MAX, &es);
usr.bin/mg/paragraph.c
468
if (es != NULL) {
usr.bin/spell/spellprog.c
128
{"se", s, 1, "", "+s", es, 2, "-y+ies", "+es" },
usr.bin/spell/spellprog.c
85
int es(char *, char *, char *, int);
usr.bin/tmux/format.c
259
format_log1(struct format_expand_state *es, const char *from, const char *fmt,
usr.bin/tmux/format.c
262
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
276
cmdq_print(ft->item, "#%.*s%s", es->loop, spaces, s);
usr.bin/tmux/format.c
280
#define format_log(es, fmt, ...) format_log1(es, __func__, fmt, ##__VA_ARGS__)
usr.bin/tmux/format.c
362
format_job_get(struct format_expand_state *es, const char *cmd)
usr.bin/tmux/format.c
364
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
392
format_copy_state(&next, es, FORMAT_EXPAND_NOJOBS);
usr.bin/tmux/format.c
4195
format_choose(struct format_expand_state *es, const char *s, char **left,
usr.bin/tmux/format.c
4208
*left = format_expand1(es, left0);
usr.bin/tmux/format.c
4210
*right = format_expand1(es, right0);
usr.bin/tmux/format.c
4266
format_build_modifiers(struct format_expand_state *es, const char **s,
usr.bin/tmux/format.c
4338
argv[0] = format_expand1(es, value);
usr.bin/tmux/format.c
4362
argv[argc++] = format_expand1(es, value);
usr.bin/tmux/format.c
4443
format_bool_op_1(struct format_expand_state *es, const char *fmt, int not)
usr.bin/tmux/format.c
4448
expanded = format_expand1(es, fmt);
usr.bin/tmux/format.c
4459
format_bool_op_n(struct format_expand_state *es, const char *fmt, int and)
usr.bin/tmux/format.c
4475
expanded = format_expand1(es, raw);
usr.bin/tmux/format.c
4477
format_log(es, "operator %s has operand: %s",
usr.bin/tmux/format.c
4497
format_session_name(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
4502
name = format_expand1(es, fmt);
usr.bin/tmux/format.c
4515
format_loop_sessions(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
4518
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
4528
if (format_choose(es, fmt, &all, &active, 0) != 0) {
usr.bin/tmux/format.c
4539
format_log(es, "session loop: $%u", s->id);
usr.bin/tmux/format.c
4550
format_copy_state(&next, es, 0);
usr.bin/tmux/format.c
4570
format_window_name(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
4572
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
4577
format_log(es, "window name but no session");
usr.bin/tmux/format.c
4581
name = format_expand1(es, fmt);
usr.bin/tmux/format.c
4625
format_loop_windows(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
4628
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
4640
format_log(es, "window loop but no session");
usr.bin/tmux/format.c
4644
if (format_choose(es, fmt, &all, &active, 0) != 0) {
usr.bin/tmux/format.c
4656
format_log(es, "window loop: %u @%u", wl->idx, w->id);
usr.bin/tmux/format.c
4677
format_copy_state(&next, es, 0);
usr.bin/tmux/format.c
4697
format_loop_panes(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
4700
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
4711
format_log(es, "pane loop but no window");
usr.bin/tmux/format.c
4715
if (format_choose(es, fmt, &all, &active, 0) != 0) {
usr.bin/tmux/format.c
4726
format_log(es, "pane loop: %%%u", wp->id);
usr.bin/tmux/format.c
4736
format_copy_state(&next, es, 0);
usr.bin/tmux/format.c
4756
format_loop_clients(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
4759
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
4774
format_log(es, "client loop: %s", c->name);
usr.bin/tmux/format.c
4779
format_copy_state(&next, es, 0);
usr.bin/tmux/format.c
4796
struct format_expand_state *es, const char *copy)
usr.bin/tmux/format.c
4840
format_log(es, "expression has no valid operator: '%s'",
usr.bin/tmux/format.c
4855
format_log(es, "expression precision %s: %s", errstr,
usr.bin/tmux/format.c
4861
if (format_choose(es, copy, &left, &right, 1) != 0) {
usr.bin/tmux/format.c
4862
format_log(es, "expression syntax error");
usr.bin/tmux/format.c
4868
format_log(es, "expression left side is invalid: %s", left);
usr.bin/tmux/format.c
4874
format_log(es, "expression right side is invalid: %s", right);
usr.bin/tmux/format.c
4882
format_log(es, "expression left side is: %.*f", prec, mleft);
usr.bin/tmux/format.c
4883
format_log(es, "expression right side is: %.*f", prec, mright);
usr.bin/tmux/format.c
4924
format_log(es, "expression result is %s", value);
usr.bin/tmux/format.c
4938
format_replace(struct format_expand_state *es, const char *key, size_t keylen,
usr.bin/tmux/format.c
4942
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
4966
list = format_build_modifiers(es, ©, &count);
usr.bin/tmux/format.c
4970
format_log(es, "modifier %u is %s", i, fm->modifier);
usr.bin/tmux/format.c
4972
format_log(es, "modifier %u argument %d: %s", i,
usr.bin/tmux/format.c
5161
format_log(es, "literal string is '%s'", copy);
usr.bin/tmux/format.c
5168
new = format_expand1(es, copy);
usr.bin/tmux/format.c
5180
new = format_expand1(es, copy);
usr.bin/tmux/format.c
5192
value = format_loop_sessions(es, copy);
usr.bin/tmux/format.c
5196
value = format_loop_windows(es, copy);
usr.bin/tmux/format.c
5200
value = format_loop_panes(es, copy);
usr.bin/tmux/format.c
5204
value = format_loop_clients(es, copy);
usr.bin/tmux/format.c
5208
value = format_window_name(es, copy);
usr.bin/tmux/format.c
5212
value = format_session_name(es, copy);
usr.bin/tmux/format.c
5217
new = format_expand1(es, copy);
usr.bin/tmux/format.c
5219
format_log(es, "search '%s' but no pane", new);
usr.bin/tmux/format.c
5222
format_log(es, "search '%s' pane %%%u", new, wp->id);
usr.bin/tmux/format.c
5228
if (format_choose(es, copy, &left, &right, 1) != 0) {
usr.bin/tmux/format.c
5229
format_log(es, "repeat syntax error: %s", copy);
usr.bin/tmux/format.c
5246
value = format_bool_op_1(es, copy, 1);
usr.bin/tmux/format.c
5248
value = format_bool_op_1(es, copy, 0);
usr.bin/tmux/format.c
5252
value = format_bool_op_n(es, copy, 0);
usr.bin/tmux/format.c
5254
value = format_bool_op_n(es, copy, 1);
usr.bin/tmux/format.c
5257
if (format_choose(es, copy, &left, &right, 1) != 0) {
usr.bin/tmux/format.c
5258
format_log(es, "compare %s syntax error: %s",
usr.bin/tmux/format.c
5262
format_log(es, "compare %s left is: %s", cmp->modifier, left);
usr.bin/tmux/format.c
5263
format_log(es, "compare %s right is: %s", cmp->modifier, right);
usr.bin/tmux/format.c
5311
format_log(es,
usr.bin/tmux/format.c
5314
value = format_expand1(es, cp);
usr.bin/tmux/format.c
5319
format_log(es, "condition is: %s", condition);
usr.bin/tmux/format.c
5329
found = format_expand1(es, condition);
usr.bin/tmux/format.c
5333
format_log(es,
usr.bin/tmux/format.c
5339
format_log(es, "condition '%s' found: %s",
usr.bin/tmux/format.c
5346
format_log(es, "condition '%s' is true",
usr.bin/tmux/format.c
5349
value = format_expand1(es, cp);
usr.bin/tmux/format.c
5352
value = format_expand1(es, right);
usr.bin/tmux/format.c
5359
format_log(es, "condition '%s' is false",
usr.bin/tmux/format.c
5367
format_log(es,
usr.bin/tmux/format.c
5377
value = format_replace_expression(mexp, es, copy);
usr.bin/tmux/format.c
5382
format_log(es, "expanding inner format '%s'", copy);
usr.bin/tmux/format.c
5383
value = format_expand1(es, copy);
usr.bin/tmux/format.c
5387
format_log(es, "format '%s' not found", copy);
usr.bin/tmux/format.c
5390
format_log(es, "format '%s' found: %s", copy,
usr.bin/tmux/format.c
5399
new = format_expand1(es, value);
usr.bin/tmux/format.c
5403
format_copy_state(&next, es, FORMAT_EXPAND_TIME);
usr.bin/tmux/format.c
5411
left = format_expand1(es, sub[i]->argv[0]);
usr.bin/tmux/format.c
5412
right = format_expand1(es, sub[i]->argv[1]);
usr.bin/tmux/format.c
5414
format_log(es, "substitute '%s' to '%s': %s", left, right, new);
usr.bin/tmux/format.c
5432
format_log(es, "applied length limit %d: %s", limit, value);
usr.bin/tmux/format.c
5443
format_log(es, "applied length limit %d: %s", limit, value);
usr.bin/tmux/format.c
5451
format_log(es, "applied padding width %d: %s", width, value);
usr.bin/tmux/format.c
5456
format_log(es, "applied padding width %d: %s", width, value);
usr.bin/tmux/format.c
5464
format_log(es, "replacing with length: %s", new);
usr.bin/tmux/format.c
5470
format_log(es, "replacing with width: %s", new);
usr.bin/tmux/format.c
5482
format_log(es, "replaced '%s' with '%s'", copy0, value);
usr.bin/tmux/format.c
5492
format_log(es, "failed %s", copy0);
usr.bin/tmux/format.c
5503
format_expand1(struct format_expand_state *es, const char *fmt)
usr.bin/tmux/format.c
5505
struct format_tree *ft = es->ft;
usr.bin/tmux/format.c
5515
if (es->loop == FORMAT_LOOP_LIMIT) {
usr.bin/tmux/format.c
5516
format_log(es, "reached loop limit (%u)", FORMAT_LOOP_LIMIT);
usr.bin/tmux/format.c
5519
es->loop++;
usr.bin/tmux/format.c
5521
format_log(es, "expanding format: %s", fmt);
usr.bin/tmux/format.c
5523
if ((es->flags & FORMAT_EXPAND_TIME) && strchr(fmt, '%') != NULL) {
usr.bin/tmux/format.c
5524
if (es->time == 0) {
usr.bin/tmux/format.c
5525
es->time = time(NULL);
usr.bin/tmux/format.c
5526
localtime_r(&es->time, &es->tm);
usr.bin/tmux/format.c
5528
if (strftime(expanded, sizeof expanded, fmt, &es->tm) == 0) {
usr.bin/tmux/format.c
5529
format_log(es, "format is too long");
usr.bin/tmux/format.c
5533
format_log(es, "after time expanded: %s", expanded);
usr.bin/tmux/format.c
5568
format_log(es, "found #(): %s", name);
usr.bin/tmux/format.c
5571
(es->flags & FORMAT_EXPAND_NOJOBS)) {
usr.bin/tmux/format.c
5573
format_log(es, "#() is disabled");
usr.bin/tmux/format.c
5575
out = format_job_get(es, name);
usr.bin/tmux/format.c
5576
format_log(es, "#() result: %s", out);
usr.bin/tmux/format.c
5598
format_log(es, "found #{}: %.*s", (int)n, fmt);
usr.bin/tmux/format.c
5599
if (format_replace(es, fmt, n, &buf, &len, &off) != 0)
usr.bin/tmux/format.c
5617
format_log(es, "found #*%zu[", n);
usr.bin/tmux/format.c
5630
format_log(es, "found #%c", ch);
usr.bin/tmux/format.c
5655
format_log(es, "found #%c: %s", ch, s);
usr.bin/tmux/format.c
5656
if (format_replace(es, s, n, &buf, &len, &off) != 0)
usr.bin/tmux/format.c
5665
format_log(es, "result is: %s", buf);
usr.bin/tmux/format.c
5666
es->loop--;
usr.bin/tmux/format.c
5675
struct format_expand_state es;
usr.bin/tmux/format.c
5677
memset(&es, 0, sizeof es);
usr.bin/tmux/format.c
5678
es.ft = ft;
usr.bin/tmux/format.c
5679
es.flags = FORMAT_EXPAND_TIME;
usr.bin/tmux/format.c
5680
return (format_expand1(&es, fmt));
usr.bin/tmux/format.c
5687
struct format_expand_state es;
usr.bin/tmux/format.c
5689
memset(&es, 0, sizeof es);
usr.bin/tmux/format.c
5690
es.ft = ft;
usr.bin/tmux/format.c
5691
es.flags = 0;
usr.bin/tmux/format.c
5692
return (format_expand1(&es, fmt));
usr.sbin/nsd/server.c
4323
const char* es = strerror(errno);
usr.sbin/nsd/server.c
4326
log_msg(LOG_ERR, "sendmmsg skip invalid argument [0]=%s count=%d failed: %s", a, (int)(recvcount-i), es);
usr.sbin/nsd/server.c
4338
const char* es = strerror(errno);
usr.sbin/nsd/server.c
4341
log_msg(LOG_ERR, "sendmmsg [0]=%s count=%d failed: %s", a, (int)(recvcount-i), es);
usr.sbin/tcpdump/print-wb.c
301
wb_dops(const struct dophdr *dh, u_int32_t ss, u_int32_t es)
usr.sbin/tcpdump/print-wb.c
304
for ( ; ss <= es; ++ss) {
usr.sbin/tcpdump/print-wb.c
314
if (ss > ts || ts > es) {
usr.sbin/unbound/util/data/msgencode.c
1119
struct edns_data es = *edns;
usr.sbin/unbound/util/data/msgencode.c
1120
es.edns_version = EDNS_ADVERTISED_VERSION;
usr.sbin/unbound/util/data/msgencode.c
1121
es.udp_size = EDNS_ADVERTISED_SIZE;
usr.sbin/unbound/util/data/msgencode.c
1122
es.ext_rcode = (uint8_t)(rcode >> 4);
usr.sbin/unbound/util/data/msgencode.c
1123
es.bits &= EDNS_DO;
usr.sbin/unbound/util/data/msgencode.c
1124
if(sldns_buffer_limit(buf) + calc_edns_field_size(&es) >
usr.sbin/unbound/util/data/msgencode.c
1126
edns_opt_list_remove(&es.opt_list_inplace_cb_out, LDNS_EDNS_EDE);
usr.sbin/unbound/util/data/msgencode.c
1127
edns_opt_list_remove(&es.opt_list_out, LDNS_EDNS_EDE);
usr.sbin/unbound/util/data/msgencode.c
1128
if(sldns_buffer_limit(buf) + calc_edns_field_size(&es) >
usr.sbin/unbound/util/data/msgencode.c
1133
attach_edns_record(buf, &es);
usr.sbin/vmd/psp.c
180
struct psp_encrypt_state es;
usr.sbin/vmd/psp.c
182
memset(&es, 0, sizeof(es));
usr.sbin/vmd/psp.c
183
es.handle = handle;
usr.sbin/vmd/psp.c
184
es.asid = asid;
usr.sbin/vmd/psp.c
185
es.vmid = vmid;
usr.sbin/vmd/psp.c
186
es.vcpuid = vcpuid;
usr.sbin/vmd/psp.c
188
if (ioctl(env->vmd_psp_fd, PSP_IOC_ENCRYPT_STATE, &es) < 0) {