bin/ed/sub.c
127
int lc;
bin/ed/sub.c
134
for (lc = 0; lc <= second_addr - first_addr; lc++) {
games/mille/print.c
100
if (c == *lc)
games/mille/print.c
104
*lc = c;
games/mille/print.c
98
show_card(int y, int x, CARD c, CARD *lc)
lib/libc/gen/authenticate.c
106
auth_checknologin(login_cap_t *lc)
lib/libc/gen/authenticate.c
108
if (_auth_checknologin(lc, 1))
lib/libc/gen/authenticate.c
114
_auth_checknologin(login_cap_t *lc, int print)
lib/libc/gen/authenticate.c
120
if (login_getcapbool(lc, "ignorenologin", 0))
lib/libc/gen/authenticate.c
127
nologin = login_getcapstr(lc, "nologin", "", NULL);
lib/libc/gen/authenticate.c
188
auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type)
lib/libc/gen/authenticate.c
196
close_lc_on_exit = lc == NULL;
lib/libc/gen/authenticate.c
226
if (lc == NULL) {
lib/libc/gen/authenticate.c
238
lc = login_getclass(pwd ? pwd->pw_class : NULL);
lib/libc/gen/authenticate.c
239
if (lc == NULL) {
lib/libc/gen/authenticate.c
254
login_close(lc);
lib/libc/gen/authenticate.c
262
if ((approve = login_getcapstr(lc, s = path, NULL, NULL)) == NULL)
lib/libc/gen/authenticate.c
263
approve = login_getcapstr(lc, s = "approve", NULL, NULL);
lib/libc/gen/authenticate.c
267
login_close(lc);
lib/libc/gen/authenticate.c
276
login_close(lc);
lib/libc/gen/authenticate.c
291
if (_auth_checknologin(lc,
lib/libc/gen/authenticate.c
296
if (login_getcapbool(lc, "requirehome", 0) && pwd && pwd->pw_dir &&
lib/libc/gen/authenticate.c
309
lc->lc_class, type, (char *)NULL);
lib/libc/gen/authenticate.c
314
login_close(lc);
lib/libc/gen/authenticate.c
328
login_cap_t *lc;
lib/libc/gen/authenticate.c
357
if ((lc = login_getclass(pwd ? pwd->pw_class : NULL)) == NULL)
lib/libc/gen/authenticate.c
360
if ((style = login_getstyle(lc, style, type)) == NULL) {
lib/libc/gen/authenticate.c
361
login_close(lc);
lib/libc/gen/authenticate.c
367
login_close(lc);
lib/libc/gen/authenticate.c
376
as = auth_verify(as, style, name, lc->lc_class, (char *)NULL);
lib/libc/gen/authenticate.c
377
login_close(lc);
lib/libc/gen/authenticate.c
398
login_cap_t *lc;
lib/libc/gen/authenticate.c
428
if ((lc = login_getclass(pwd ? pwd->pw_class : NULL)) == NULL)
lib/libc/gen/authenticate.c
431
if ((style = login_getstyle(lc, style, type)) == NULL ||
lib/libc/gen/authenticate.c
433
login_close(lc);
lib/libc/gen/authenticate.c
438
auth_setitem(as, AUTHV_CLASS, lc->lc_class) < 0) {
lib/libc/gen/authenticate.c
440
login_close(lc);
lib/libc/gen/authenticate.c
443
login_close(lc);
lib/libc/gen/login_cap.c
106
if ((lc->lc_class = strdup(class)) == NULL) {
lib/libc/gen/login_cap.c
108
free(lc);
lib/libc/gen/login_cap.c
112
if ((res = cgetent(&lc->lc_cap, classfiles, lc->lc_class)) != 0) {
lib/libc/gen/login_cap.c
113
lc->lc_cap = 0;
lib/libc/gen/login_cap.c
117
lc->lc_class);
lib/libc/gen/login_cap.c
122
if (strcmp(lc->lc_class, LOGIN_DEFCLASS) == 0 &&
lib/libc/gen/login_cap.c
124
return (lc);
lib/libc/gen/login_cap.c
125
syslog(LOG_ERR, "%s: unknown class", lc->lc_class);
lib/libc/gen/login_cap.c
134
return (lc);
lib/libc/gen/login_cap.c
136
lc->lc_class);
lib/libc/gen/login_cap.c
140
lc->lc_class);
lib/libc/gen/login_cap.c
144
lc->lc_class);
lib/libc/gen/login_cap.c
147
free(lc->lc_class);
lib/libc/gen/login_cap.c
148
free(lc);
lib/libc/gen/login_cap.c
151
return (lc);
lib/libc/gen/login_cap.c
156
login_getstyle(login_cap_t *lc, char *style, char *atype)
lib/libc/gen/login_cap.c
167
free(lc->lc_style);
lib/libc/gen/login_cap.c
168
lc->lc_style = NULL;
lib/libc/gen/login_cap.c
170
if (!atype || !(auths = login_getcapstr(lc, atype, NULL, NULL)))
lib/libc/gen/login_cap.c
171
auths = login_getcapstr(lc, "auth", NULL, NULL);
lib/libc/gen/login_cap.c
206
lc->lc_style = strdup(*authtypes);
lib/libc/gen/login_cap.c
207
if (lc->lc_style == NULL)
lib/libc/gen/login_cap.c
212
return (lc->lc_style);
lib/libc/gen/login_cap.c
217
login_getcapstr(login_cap_t *lc, char *cap, char *def, char *e)
lib/libc/gen/login_cap.c
224
if (!lc->lc_cap)
lib/libc/gen/login_cap.c
227
switch (stat = cgetstr(lc->lc_cap, cap, &res)) {
lib/libc/gen/login_cap.c
233
lc->lc_class, cap);
lib/libc/gen/login_cap.c
241
lc->lc_class, cap);
lib/libc/gen/login_cap.c
252
login_getcaptime(login_cap_t *lc, char *cap, quad_t def, quad_t e)
lib/libc/gen/login_cap.c
261
if (!lc->lc_cap)
lib/libc/gen/login_cap.c
264
switch (stat = cgetstr(lc->lc_cap, cap, &res)) {
lib/libc/gen/login_cap.c
271
lc->lc_class, cap);
lib/libc/gen/login_cap.c
279
lc->lc_class, cap);
lib/libc/gen/login_cap.c
299
lc->lc_class, cap, sres);
lib/libc/gen/login_cap.c
337
login_getcapnum(login_cap_t *lc, char *cap, quad_t def, quad_t e)
lib/libc/gen/login_cap.c
346
if (!lc->lc_cap)
lib/libc/gen/login_cap.c
349
switch (stat = cgetstr(lc->lc_cap, cap, &res)) {
lib/libc/gen/login_cap.c
356
lc->lc_class, cap);
lib/libc/gen/login_cap.c
364
lc->lc_class, cap);
lib/libc/gen/login_cap.c
380
lc->lc_class, cap, res);
lib/libc/gen/login_cap.c
391
login_getcapsize(login_cap_t *lc, char *cap, quad_t def, quad_t e)
lib/libc/gen/login_cap.c
400
if (!lc->lc_cap)
lib/libc/gen/login_cap.c
403
switch (stat = cgetstr(lc->lc_cap, cap, &res)) {
lib/libc/gen/login_cap.c
410
lc->lc_class, cap);
lib/libc/gen/login_cap.c
418
lc->lc_class, cap);
lib/libc/gen/login_cap.c
428
lc->lc_class, cap, res);
lib/libc/gen/login_cap.c
439
login_getcapbool(login_cap_t *lc, char *cap, u_int def)
lib/libc/gen/login_cap.c
441
if (!lc->lc_cap)
lib/libc/gen/login_cap.c
444
return (cgetcap(lc->lc_cap, cap, ':') != NULL);
lib/libc/gen/login_cap.c
449
login_close(login_cap_t *lc)
lib/libc/gen/login_cap.c
451
if (lc) {
lib/libc/gen/login_cap.c
452
free(lc->lc_class);
lib/libc/gen/login_cap.c
453
free(lc->lc_cap);
lib/libc/gen/login_cap.c
454
free(lc->lc_style);
lib/libc/gen/login_cap.c
455
free(lc);
lib/libc/gen/login_cap.c
485
gsetrl(login_cap_t *lc, int what, char *name, int type)
lib/libc/gen/login_cap.c
498
if (lc->lc_cap == NULL)
lib/libc/gen/login_cap.c
526
if ((v = cgetcap(lc->lc_cap, name, '=')) != NULL) {
lib/libc/gen/login_cap.c
527
if (v < cgetcap(lc->lc_cap, name_cur, '='))
lib/libc/gen/login_cap.c
529
if (v < cgetcap(lc->lc_cap, name_max, '='))
lib/libc/gen/login_cap.c
538
RCUR = (rlim_t)login_getcaptime(lc, name, RCUR, RCUR);
lib/libc/gen/login_cap.c
539
RMAX = (rlim_t)login_getcaptime(lc, name, RMAX, RMAX);
lib/libc/gen/login_cap.c
540
rl.rlim_cur = (rlim_t)login_getcaptime(lc, name_cur, RCUR, RCUR);
lib/libc/gen/login_cap.c
541
rl.rlim_max = (rlim_t)login_getcaptime(lc, name_max, RMAX, RMAX);
lib/libc/gen/login_cap.c
544
RCUR = (rlim_t)login_getcapsize(lc, name, RCUR, RCUR);
lib/libc/gen/login_cap.c
545
RMAX = (rlim_t)login_getcapsize(lc, name, RMAX, RMAX);
lib/libc/gen/login_cap.c
546
rl.rlim_cur = (rlim_t)login_getcapsize(lc, name_cur, RCUR, RCUR);
lib/libc/gen/login_cap.c
547
rl.rlim_max = (rlim_t)login_getcapsize(lc, name_max, RMAX, RMAX);
lib/libc/gen/login_cap.c
550
RCUR = (rlim_t)login_getcapnum(lc, name, RCUR, RCUR);
lib/libc/gen/login_cap.c
551
RMAX = (rlim_t)login_getcapnum(lc, name, RMAX, RMAX);
lib/libc/gen/login_cap.c
552
rl.rlim_cur = (rlim_t)login_getcapnum(lc, name_cur, RCUR, RCUR);
lib/libc/gen/login_cap.c
553
rl.rlim_max = (rlim_t)login_getcapnum(lc, name_max, RMAX, RMAX);
lib/libc/gen/login_cap.c
561
lc->lc_class, name);
lib/libc/gen/login_cap.c
630
login_cap_t *lc;
lib/libc/gen/login_cap.c
635
lc = login_getclass(class);
lib/libc/gen/login_cap.c
636
ret = lc ? setusercontext(lc, NULL, 0, flags) : -1;
lib/libc/gen/login_cap.c
637
login_close(lc);
lib/libc/gen/login_cap.c
642
setusercontext(login_cap_t *lc, struct passwd *pwd, uid_t uid, u_int flags)
lib/libc/gen/login_cap.c
650
if (!lc && !(flc = lc = login_getclass(pwd ? pwd->pw_class : NULL)))
lib/libc/gen/login_cap.c
680
if (gsetrl(lc, r_list[i].what, r_list[i].name,
lib/libc/gen/login_cap.c
685
p = login_getcapnum(lc, "priority", 0, 0);
lib/libc/gen/login_cap.c
688
syslog(LOG_ERR, "%s: setpriority: %m", lc->lc_class);
lib/libc/gen/login_cap.c
692
p = login_getcapnum(lc, "umask", LOGIN_DEFUMASK,LOGIN_DEFUMASK);
lib/libc/gen/login_cap.c
697
rtable = login_getcapnum(lc, "rtable", -1, -1);
lib/libc/gen/login_cap.c
700
syslog(LOG_ERR, "%s: setrtable: %m", lc->lc_class);
lib/libc/gen/login_cap.c
727
if ((flags & LOGIN_SETXDGENV) && !login_getcapbool(lc, "noxdg", 0)) {
lib/libc/gen/login_cap.c
730
login_close(lc);
lib/libc/gen/login_cap.c
745
if (setuserenv(lc, pwd) == -1) {
lib/libc/gen/login_cap.c
753
if (setuserpath(lc, pwd) == -1) {
lib/libc/gen/login_cap.c
771
setuserpath(login_cap_t *lc, const struct passwd *pwd)
lib/libc/gen/login_cap.c
779
if (lc->lc_cap == NULL)
lib/libc/gen/login_cap.c
782
if ((len = cgetustr(lc->lc_cap, "path", &opath)) <= 0)
lib/libc/gen/login_cap.c
827
setuserenv(login_cap_t *lc, const struct passwd *pwd)
lib/libc/gen/login_cap.c
836
if (lc->lc_cap == NULL)
lib/libc/gen/login_cap.c
839
if ((len = cgetustr(lc->lc_cap, "setenv", &list)) <= 0)
lib/libc/gen/login_cap.c
86
login_cap_t *lc;
lib/libc/gen/login_cap.c
89
if ((lc = calloc(1, sizeof(login_cap_t))) == NULL) {
lib/libutil/check_expire.c
61
login_cap_t *lc;
lib/libutil/check_expire.c
87
if ((lc = login_getclass(class)) == NULL) {
lib/libutil/check_expire.c
91
dead = login_getcaptime(lc, "password-dead", 0, 0);
lib/libutil/check_expire.c
92
warn = login_getcaptime(lc, "password-warn",
lib/libutil/check_expire.c
99
login_close(lc);
lib/libz/deflate.h
310
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc);
lib/libz/trees.c
1093
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
lib/libz/trees.c
1096
s->l_buf[s->sym_next++] = (uch)lc;
lib/libz/trees.c
1100
s->sym_buf[s->sym_next++] = (uch)lc;
lib/libz/trees.c
1104
s->dyn_ltree[lc].Freq++;
lib/libz/trees.c
1110
(ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
lib/libz/trees.c
1113
s->dyn_ltree[_length_code[lc] + LITERALS + 1].Freq++;
lib/libz/trees.c
901
int lc; /* match length or unmatched char (if dist == 0) */
lib/libz/trees.c
909
lc = s->l_buf[sx++];
lib/libz/trees.c
913
lc = s->sym_buf[sx++];
lib/libz/trees.c
916
send_code(s, lc, ltree); /* send a literal byte */
lib/libz/trees.c
917
Tracecv(isgraph(lc), (stderr," '%c' ", lc));
lib/libz/trees.c
920
code = _length_code[lc];
lib/libz/trees.c
924
lc -= base_length[code];
lib/libz/trees.c
925
send_bits(s, lc, extra); /* send the extra length bits */
libexec/ftpd/ftpd.c
1069
motd = login_getcapstr(lc, "welcome", NULL, NULL);
libexec/ftpd/ftpd.c
1099
login_close(lc);
libexec/ftpd/ftpd.c
1100
lc = NULL;
libexec/ftpd/ftpd.c
1104
login_close(lc);
libexec/ftpd/ftpd.c
1105
lc = NULL;
libexec/ftpd/ftpd.c
155
static login_cap_t *lc;
libexec/ftpd/ftpd.c
689
if (lc) {
libexec/ftpd/ftpd.c
690
login_close(lc);
libexec/ftpd/ftpd.c
691
lc = NULL;
libexec/ftpd/ftpd.c
706
if ((lc = login_getclass(pw->pw_class)) == NULL ||
libexec/ftpd/ftpd.c
714
if (lc) {
libexec/ftpd/ftpd.c
715
login_close(lc);
libexec/ftpd/ftpd.c
716
lc = NULL;
libexec/ftpd/ftpd.c
746
lc = login_getclass(class);
libexec/ftpd/ftpd.c
747
if (lc && (style = login_getstyle(lc, style, "auth-ftp")) == NULL) {
libexec/ftpd/ftpd.c
748
login_close(lc);
libexec/ftpd/ftpd.c
749
lc = NULL;
libexec/ftpd/ftpd.c
754
if (lc && ((as = auth_open()) == NULL ||
libexec/ftpd/ftpd.c
766
login_close(lc);
libexec/ftpd/ftpd.c
767
lc = NULL;
libexec/ftpd/ftpd.c
774
dochroot = (lc && login_getcapbool(lc, "ftp-chroot", 0)) ||
libexec/ftpd/ftpd.c
905
} else if (lc != NULL) {
libexec/ftpd/ftpd.c
914
authok = auth_approval(as, lc, pw->pw_name, "ftp");
libexec/ftpd/ftpd.c
947
if (setusercontext(lc, pw, 0, flags) != 0) {
libexec/ftpd/ftpd.c
975
if ((dir = login_getcapstr(lc, "ftp-dir", NULL, NULL))) {
libexec/login_ldap/login_ldap.c
193
login_cap_t *lc;
libexec/login_ldap/login_ldap.c
198
if ((lc = login_getclass(class)) != NULL) {
libexec/login_ldap/login_ldap.c
199
cfile = login_getcapstr(lc, "ldap-conffile", NULL, NULL);
libexec/login_radius/raddauth.c
159
login_cap_t *lc;
libexec/login_radius/raddauth.c
169
if ((lc = login_getclass(class)) == NULL) {
libexec/login_radius/raddauth.c
176
rad_service = login_getcapstr(lc, "radius-port", "radius", "radius");
libexec/login_radius/raddauth.c
177
timeout = login_getcapnum(lc, "radius-timeout", 2, 2);
libexec/login_radius/raddauth.c
178
retries = login_getcapnum(lc, "radius-retries", 6, 6);
libexec/login_radius/raddauth.c
187
v = login_getcapstr(lc, "radius-challenge-styles",
libexec/login_radius/raddauth.c
206
if ((v = login_getcapstr(lc, "radius-server", NULL, NULL)) == NULL){
libexec/login_radius/raddauth.c
213
if ((v = login_getcapstr(lc, "radius-server-alt", NULL, NULL)) == NULL)
sbin/init/init.c
1423
login_cap_t *lc;
sbin/init/init.c
1425
if ((lc = login_getclass(class)) != NULL) {
sbin/init/init.c
1426
setusercontext(lc, NULL, 0,
sbin/init/init.c
1428
login_close(lc);
sbin/unwind/libunbound/sldns/parse.c
289
int c, lc;
sbin/unwind/libunbound/sldns/parse.c
310
lc = 0;
sbin/unwind/libunbound/sldns/parse.c
318
if (c == '(' && lc != '\\' && !quoted) {
sbin/unwind/libunbound/sldns/parse.c
324
lc = c;
sbin/unwind/libunbound/sldns/parse.c
328
if (c == ')' && lc != '\\' && !quoted) {
sbin/unwind/libunbound/sldns/parse.c
334
lc = c;
sbin/unwind/libunbound/sldns/parse.c
346
if (lc != '\\') {
sbin/unwind/libunbound/sldns/parse.c
350
if (c == '"' && com == 0 && lc != '\\') {
sbin/unwind/libunbound/sldns/parse.c
358
lc = c;
sbin/unwind/libunbound/sldns/parse.c
364
lc = c;
sbin/unwind/libunbound/sldns/parse.c
379
lc = c;
sbin/unwind/libunbound/sldns/parse.c
384
if(skipw && i==0 && !com && !quoted && lc != '\\') {
sbin/unwind/libunbound/sldns/parse.c
386
lc = c;
sbin/unwind/libunbound/sldns/parse.c
394
if (c == *d && lc != '\\' && (p == 0 || par)) {
sbin/unwind/libunbound/sldns/parse.c
406
if (c == '\\' && lc == '\\') {
sbin/unwind/libunbound/sldns/parse.c
407
lc = 0;
sbin/unwind/libunbound/sldns/parse.c
409
lc = c;
sys/arch/sparc64/dev/ldc.c
102
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
108
ldc_rx_ctrl_rts(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/ldc.c
112
if (lc->lc_state != LDC_RCV_VERS) {
sys/arch/sparc64/dev/ldc.c
114
lc->lc_state));
sys/arch/sparc64/dev/ldc.c
115
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
119
ldc_send_rtr(lc);
sys/arch/sparc64/dev/ldc.c
124
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
129
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
134
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
140
ldc_rx_ctrl_rtr(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/ldc.c
144
if (lc->lc_state != LDC_SND_RTS) {
sys/arch/sparc64/dev/ldc.c
146
lc->lc_state));
sys/arch/sparc64/dev/ldc.c
147
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
151
ldc_send_rdx(lc);
sys/arch/sparc64/dev/ldc.c
152
lc->lc_start(lc);
sys/arch/sparc64/dev/ldc.c
157
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
162
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
167
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
173
ldc_rx_ctrl_rdx(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/ldc.c
177
if (lc->lc_state != LDC_SND_RTR) {
sys/arch/sparc64/dev/ldc.c
179
lc->lc_state));
sys/arch/sparc64/dev/ldc.c
180
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
184
lc->lc_start(lc);
sys/arch/sparc64/dev/ldc.c
189
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
194
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
199
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
205
ldc_rx_data(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/ldc.c
211
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
215
if (lc->lc_state != LDC_SND_RTR &&
sys/arch/sparc64/dev/ldc.c
216
lc->lc_state != LDC_SND_RDX) {
sys/arch/sparc64/dev/ldc.c
217
DPRINTF(("Spurious DATA/INFO: state %d\n", lc->lc_state));
sys/arch/sparc64/dev/ldc.c
218
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
223
lc->lc_len = (lp->env & LDC_LEN_MASK) + 8;
sys/arch/sparc64/dev/ldc.c
224
KASSERT(lc->lc_len <= sizeof(lc->lc_msg));
sys/arch/sparc64/dev/ldc.c
225
memcpy((uint8_t *)lc->lc_msg, lp, lc->lc_len);
sys/arch/sparc64/dev/ldc.c
228
if (lc->lc_len + len > sizeof(lc->lc_msg)) {
sys/arch/sparc64/dev/ldc.c
230
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
233
memcpy(((uint8_t *)lc->lc_msg) + lc->lc_len, &lp->major, len);
sys/arch/sparc64/dev/ldc.c
234
lc->lc_len += len;
sys/arch/sparc64/dev/ldc.c
238
lc->lc_rx_data(lc, (struct ldc_pkt *)lc->lc_msg);
sys/arch/sparc64/dev/ldc.c
242
ldc_send_vers(struct ldc_conn *lc)
sys/arch/sparc64/dev/ldc.c
248
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
249
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/ldc.c
251
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
255
lp = (struct ldc_pkt *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/ldc.c
264
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/ldc.c
265
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/ldc.c
268
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
272
lc->lc_state = LDC_SND_VERS;
sys/arch/sparc64/dev/ldc.c
273
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
277
ldc_send_ack(struct ldc_conn *lc)
sys/arch/sparc64/dev/ldc.c
283
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
284
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/ldc.c
286
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
290
lp = (struct ldc_pkt *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/ldc.c
299
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/ldc.c
300
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/ldc.c
303
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
307
lc->lc_state = LDC_RCV_VERS;
sys/arch/sparc64/dev/ldc.c
308
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
312
ldc_send_rts(struct ldc_conn *lc)
sys/arch/sparc64/dev/ldc.c
318
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
319
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/ldc.c
321
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
325
lp = (struct ldc_pkt *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/ldc.c
331
lp->seqid = lc->lc_tx_seqid++;
sys/arch/sparc64/dev/ldc.c
334
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/ldc.c
335
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/ldc.c
338
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
342
lc->lc_state = LDC_SND_RTS;
sys/arch/sparc64/dev/ldc.c
343
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
347
ldc_send_rtr(struct ldc_conn *lc)
sys/arch/sparc64/dev/ldc.c
353
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
354
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/ldc.c
356
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
360
lp = (struct ldc_pkt *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/ldc.c
366
lp->seqid = lc->lc_tx_seqid++;
sys/arch/sparc64/dev/ldc.c
369
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/ldc.c
370
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/ldc.c
373
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
377
lc->lc_state = LDC_SND_RTR;
sys/arch/sparc64/dev/ldc.c
378
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
382
ldc_send_rdx(struct ldc_conn *lc)
sys/arch/sparc64/dev/ldc.c
388
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
389
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/ldc.c
391
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
395
lp = (struct ldc_pkt *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/ldc.c
401
lp->seqid = lc->lc_tx_seqid++;
sys/arch/sparc64/dev/ldc.c
404
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/ldc.c
405
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/ldc.c
408
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
412
lc->lc_state = LDC_SND_RDX;
sys/arch/sparc64/dev/ldc.c
413
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
417
ldc_send_unreliable(struct ldc_conn *lc, void *msg, size_t len)
sys/arch/sparc64/dev/ldc.c
425
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
426
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/ldc.c
428
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
433
lc->lc_txq->lq_nentries - 1;
sys/arch/sparc64/dev/ldc.c
434
tx_avail %= lc->lc_txq->lq_nentries;
sys/arch/sparc64/dev/ldc.c
436
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
44
ldc_rx_ctrl(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/ldc.c
441
lp = (struct ldc_pkt *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/ldc.c
450
lp->seqid = lc->lc_tx_seqid++;
sys/arch/sparc64/dev/ldc.c
454
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/ldc.c
455
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/ldc.c
458
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
465
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
470
ldc_reset(struct ldc_conn *lc)
sys/arch/sparc64/dev/ldc.c
476
mtx_enter(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
477
err = hv_ldc_tx_qconf(lc->lc_id,
sys/arch/sparc64/dev/ldc.c
478
lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries);
sys/arch/sparc64/dev/ldc.c
48
ldc_rx_ctrl_vers(lc, lp);
sys/arch/sparc64/dev/ldc.c
482
err = hv_ldc_rx_qconf(lc->lc_id,
sys/arch/sparc64/dev/ldc.c
483
lc->lc_rxq->lq_map->dm_segs[0].ds_addr, lc->lc_rxq->lq_nentries);
sys/arch/sparc64/dev/ldc.c
487
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/ldc.c
488
lc->lc_state = 0;
sys/arch/sparc64/dev/ldc.c
489
lc->lc_tx_state = lc->lc_rx_state = LDC_CHANNEL_DOWN;
sys/arch/sparc64/dev/ldc.c
490
mtx_leave(&lc->lc_txq->lq_mtx);
sys/arch/sparc64/dev/ldc.c
492
lc->lc_reset(lc);
sys/arch/sparc64/dev/ldc.c
52
ldc_rx_ctrl_rts(lc, lp);
sys/arch/sparc64/dev/ldc.c
56
ldc_rx_ctrl_rtr(lc, lp);
sys/arch/sparc64/dev/ldc.c
60
ldc_rx_ctrl_rdx(lc, lp);
sys/arch/sparc64/dev/ldc.c
65
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
71
ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/ldc.c
78
ldc_send_ack(lc);
sys/arch/sparc64/dev/ldc.c
85
if (lc->lc_state != LDC_SND_VERS) {
sys/arch/sparc64/dev/ldc.c
87
lc->lc_state));
sys/arch/sparc64/dev/ldc.c
88
ldc_reset(lc);
sys/arch/sparc64/dev/ldc.c
92
ldc_send_rts(lc);
sys/arch/sparc64/dev/ldc.c
97
ldc_reset(lc);
sys/arch/sparc64/dev/lom.c
398
lom_queue_cmd(struct lom_softc *sc, struct lom_cmd *lc)
sys/arch/sparc64/dev/lom.c
401
return lom1_queue_cmd(sc, lc);
sys/arch/sparc64/dev/lom.c
403
return lom2_queue_cmd(sc, lc);
sys/arch/sparc64/dev/lom.c
407
lom_dequeue_cmd(struct lom_softc *sc, struct lom_cmd *lc)
sys/arch/sparc64/dev/lom.c
413
if (lcp == lc) {
sys/arch/sparc64/dev/lom.c
414
TAILQ_REMOVE(&sc->sc_queue, lc, lc_next);
sys/arch/sparc64/dev/lom.c
424
struct lom_cmd lc;
sys/arch/sparc64/dev/lom.c
430
lc.lc_cmd = reg;
sys/arch/sparc64/dev/lom.c
431
lc.lc_data = 0xff;
sys/arch/sparc64/dev/lom.c
432
lom1_queue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
434
error = tsleep_nsec(&lc, PZERO, "lomrd", SEC_TO_NSEC(1));
sys/arch/sparc64/dev/lom.c
436
lom_dequeue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
438
*val = lc.lc_data;
sys/arch/sparc64/dev/lom.c
446
struct lom_cmd lc;
sys/arch/sparc64/dev/lom.c
452
lc.lc_cmd = reg | LOM_IDX_WRITE;
sys/arch/sparc64/dev/lom.c
453
lc.lc_data = val;
sys/arch/sparc64/dev/lom.c
454
lom1_queue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
456
error = tsleep_nsec(&lc, PZERO, "lomwr", SEC_TO_NSEC(2));
sys/arch/sparc64/dev/lom.c
458
lom_dequeue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
530
lom1_queue_cmd(struct lom_softc *sc, struct lom_cmd *lc)
sys/arch/sparc64/dev/lom.c
533
TAILQ_INSERT_TAIL(&sc->sc_queue, lc, lc_next);
sys/arch/sparc64/dev/lom.c
554
struct lom_cmd *lc;
sys/arch/sparc64/dev/lom.c
557
lc = TAILQ_FIRST(&sc->sc_queue);
sys/arch/sparc64/dev/lom.c
558
if (lc == NULL) {
sys/arch/sparc64/dev/lom.c
584
bus_space_write_1(sc->sc_iot, sc->sc_ioh, LOM1_CMD, lc->lc_cmd);
sys/arch/sparc64/dev/lom.c
591
if ((lc->lc_cmd & LOM_IDX_WRITE) == 0)
sys/arch/sparc64/dev/lom.c
592
lc->lc_data = bus_space_read_1(sc->sc_iot, sc->sc_ioh, LOM1_DATA);
sys/arch/sparc64/dev/lom.c
594
bus_space_write_1(sc->sc_iot, sc->sc_ioh, LOM1_DATA, lc->lc_data);
sys/arch/sparc64/dev/lom.c
596
TAILQ_REMOVE(&sc->sc_queue, lc, lc_next);
sys/arch/sparc64/dev/lom.c
598
wakeup(lc);
sys/arch/sparc64/dev/lom.c
612
struct lom_cmd lc;
sys/arch/sparc64/dev/lom.c
618
lc.lc_cmd = reg;
sys/arch/sparc64/dev/lom.c
619
lc.lc_data = 0xff;
sys/arch/sparc64/dev/lom.c
620
lom2_queue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
622
error = tsleep_nsec(&lc, PZERO, "lom2rd", SEC_TO_NSEC(1));
sys/arch/sparc64/dev/lom.c
624
lom_dequeue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
626
*val = lc.lc_data;
sys/arch/sparc64/dev/lom.c
666
struct lom_cmd lc;
sys/arch/sparc64/dev/lom.c
672
lc.lc_cmd = reg | LOM_IDX_WRITE;
sys/arch/sparc64/dev/lom.c
673
lc.lc_data = val;
sys/arch/sparc64/dev/lom.c
674
lom2_queue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
676
error = tsleep_nsec(&lc, PZERO, "lom2wr", SEC_TO_NSEC(1));
sys/arch/sparc64/dev/lom.c
678
lom_dequeue_cmd(sc, &lc);
sys/arch/sparc64/dev/lom.c
748
lom2_queue_cmd(struct lom_softc *sc, struct lom_cmd *lc)
sys/arch/sparc64/dev/lom.c
753
TAILQ_INSERT_TAIL(&sc->sc_queue, lc, lc_next);
sys/arch/sparc64/dev/lom.c
758
LOM2_CMD, lc->lc_cmd);
sys/arch/sparc64/dev/lom.c
769
struct lom_cmd *lc;
sys/arch/sparc64/dev/lom.c
777
lc = TAILQ_FIRST(&sc->sc_queue);
sys/arch/sparc64/dev/lom.c
778
if (lc == NULL) {
sys/arch/sparc64/dev/lom.c
783
if (lc->lc_cmd & LOM_IDX_WRITE) {
sys/arch/sparc64/dev/lom.c
785
LOM2_DATA, lc->lc_data);
sys/arch/sparc64/dev/lom.c
786
lc->lc_cmd &= ~LOM_IDX_WRITE;
sys/arch/sparc64/dev/lom.c
792
lc->lc_data = obr;
sys/arch/sparc64/dev/lom.c
794
TAILQ_REMOVE(&sc->sc_queue, lc, lc_next);
sys/arch/sparc64/dev/lom.c
796
wakeup(lc);
sys/arch/sparc64/dev/lom.c
804
LOM2_CMD, lc->lc_cmd);
sys/arch/sparc64/dev/vcctty.c
103
struct ldc_conn *lc;
sys/arch/sparc64/dev/vcctty.c
129
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vcctty.c
130
lc->lc_id = ca->ca_id;
sys/arch/sparc64/dev/vcctty.c
131
lc->lc_sc = sc;
sys/arch/sparc64/dev/vcctty.c
133
lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VCCTTY_TX_ENTRIES);
sys/arch/sparc64/dev/vcctty.c
134
if (lc->lc_txq == NULL) {
sys/arch/sparc64/dev/vcctty.c
139
lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VCCTTY_RX_ENTRIES);
sys/arch/sparc64/dev/vcctty.c
140
if (lc->lc_rxq == NULL) {
sys/arch/sparc64/dev/vcctty.c
145
err = hv_ldc_tx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vcctty.c
146
lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries);
sys/arch/sparc64/dev/vcctty.c
150
err = hv_ldc_rx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vcctty.c
151
lc->lc_rxq->lq_map->dm_segs[0].ds_addr, lc->lc_rxq->lq_nentries);
sys/arch/sparc64/dev/vcctty.c
162
ldc_queue_free(sc->sc_dmatag, lc->lc_txq);
sys/arch/sparc64/dev/vcctty.c
169
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vcctty.c
173
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vcctty.c
179
if (tx_state != lc->lc_tx_state) {
sys/arch/sparc64/dev/vcctty.c
191
lc->lc_tx_state = tx_state;
sys/arch/sparc64/dev/vcctty.c
202
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vcctty.c
208
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vcctty.c
214
if (rx_state != lc->lc_rx_state) {
sys/arch/sparc64/dev/vcctty.c
226
lc->lc_rx_state = rx_state;
sys/arch/sparc64/dev/vcctty.c
233
msg = (struct vcctty_msg *)(lc->lc_rxq->lq_va + rx_head);
sys/arch/sparc64/dev/vcctty.c
242
rx_head &= ((lc->lc_rxq->lq_nentries * sizeof(*msg)) - 1);
sys/arch/sparc64/dev/vcctty.c
243
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_head);
sys/arch/sparc64/dev/vcctty.c
253
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vcctty.c
259
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vcctty.c
265
next_tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*msg)) - 1);
sys/arch/sparc64/dev/vcctty.c
270
msg = (struct vcctty_msg *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/vcctty.c
275
err = hv_ldc_tx_set_qtail(lc->lc_id, next_tx_tail);
sys/arch/sparc64/dev/vcctty.c
285
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vcctty.c
290
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vcctty.c
294
msg = (struct vcctty_msg *)(lc->lc_txq->lq_va + tx_tail);
sys/arch/sparc64/dev/vcctty.c
300
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(*msg)) - 1);
sys/arch/sparc64/dev/vcctty.c
301
err = hv_ldc_tx_set_qtail(lc->lc_id, tx_tail);
sys/arch/sparc64/dev/vdsk.c
236
struct ldc_conn *lc;
sys/arch/sparc64/dev/vdsk.c
261
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsk.c
262
lc->lc_id = ca->ca_id;
sys/arch/sparc64/dev/vdsk.c
263
lc->lc_sc = sc;
sys/arch/sparc64/dev/vdsk.c
264
lc->lc_reset = vdsk_ldc_reset;
sys/arch/sparc64/dev/vdsk.c
265
lc->lc_start = vdsk_ldc_start;
sys/arch/sparc64/dev/vdsk.c
266
lc->lc_rx_data = vdsk_rx_data;
sys/arch/sparc64/dev/vdsk.c
268
lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VDSK_TX_ENTRIES);
sys/arch/sparc64/dev/vdsk.c
269
if (lc->lc_txq == NULL) {
sys/arch/sparc64/dev/vdsk.c
274
lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VDSK_RX_ENTRIES);
sys/arch/sparc64/dev/vdsk.c
275
if (lc->lc_rxq == NULL) {
sys/arch/sparc64/dev/vdsk.c
286
err = hv_ldc_set_map_table(lc->lc_id,
sys/arch/sparc64/dev/vdsk.c
311
err = hv_ldc_tx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vdsk.c
312
lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries);
sys/arch/sparc64/dev/vdsk.c
316
err = hv_ldc_rx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vdsk.c
317
lc->lc_rxq->lq_map->dm_segs[0].ds_addr, lc->lc_rxq->lq_nentries);
sys/arch/sparc64/dev/vdsk.c
324
ldc_send_vers(lc);
sys/arch/sparc64/dev/vdsk.c
365
hv_ldc_set_map_table(lc->lc_id, 0, 0);
sys/arch/sparc64/dev/vdsk.c
368
ldc_queue_free(sc->sc_dmatag, lc->lc_rxq);
sys/arch/sparc64/dev/vdsk.c
370
ldc_queue_free(sc->sc_dmatag, lc->lc_txq);
sys/arch/sparc64/dev/vdsk.c
377
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsk.c
380
hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vdsk.c
381
if (tx_state != lc->lc_tx_state) {
sys/arch/sparc64/dev/vdsk.c
393
lc->lc_tx_state = tx_state;
sys/arch/sparc64/dev/vdsk.c
403
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsk.c
408
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vdsk.c
416
if (rx_state != lc->lc_rx_state) {
sys/arch/sparc64/dev/vdsk.c
418
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/vdsk.c
419
lc->lc_state = 0;
sys/arch/sparc64/dev/vdsk.c
426
ldc_send_vers(lc);
sys/arch/sparc64/dev/vdsk.c
432
lc->lc_rx_state = rx_state;
sys/arch/sparc64/dev/vdsk.c
433
hv_ldc_rx_set_qhead(lc->lc_id, rx_tail);
sys/arch/sparc64/dev/vdsk.c
440
lp = (struct ldc_pkt *)(lc->lc_rxq->lq_va + rx_head);
sys/arch/sparc64/dev/vdsk.c
443
ldc_rx_ctrl(lc, lp);
sys/arch/sparc64/dev/vdsk.c
447
ldc_rx_data(lc, lp);
sys/arch/sparc64/dev/vdsk.c
453
ldc_reset(lc);
sys/arch/sparc64/dev/vdsk.c
457
if (lc->lc_state == 0)
sys/arch/sparc64/dev/vdsk.c
461
rx_head &= ((lc->lc_rxq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/vdsk.c
462
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_head);
sys/arch/sparc64/dev/vdsk.c
470
vdsk_rx_data(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/vdsk.c
479
vdsk_rx_vio_ctrl(lc->lc_sc, vm);
sys/arch/sparc64/dev/vdsk.c
485
vdsk_rx_vio_data(lc->lc_sc, vm);
sys/arch/sparc64/dev/vdsk.c
490
ldc_reset(lc);
sys/arch/sparc64/dev/vdsk.c
722
vdsk_ldc_reset(struct ldc_conn *lc)
sys/arch/sparc64/dev/vdsk.c
724
struct vdsk_softc *sc = lc->lc_sc;
sys/arch/sparc64/dev/vdsk.c
730
vdsk_ldc_start(struct ldc_conn *lc)
sys/arch/sparc64/dev/vdsk.c
732
struct vdsk_softc *sc = lc->lc_sc;
sys/arch/sparc64/dev/vdsk.c
740
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsk.c
743
err = ldc_send_unreliable(lc, msg, len);
sys/arch/sparc64/dev/vdsp.c
1129
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1169
err = hv_ldc_copy(lc->lc_id, LDC_COPY_OUT,
sys/arch/sparc64/dev/vdsp.c
1202
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1243
err = hv_ldc_copy(lc->lc_id, LDC_COPY_OUT,
sys/arch/sparc64/dev/vdsp.c
1274
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1300
err = hv_ldc_copy(lc->lc_id, LDC_COPY_IN,
sys/arch/sparc64/dev/vdsp.c
1359
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1427
err = hv_ldc_copy(lc->lc_id, LDC_COPY_OUT,
sys/arch/sparc64/dev/vdsp.c
1457
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1478
err = hv_ldc_copy(lc->lc_id, LDC_COPY_IN,
sys/arch/sparc64/dev/vdsp.c
1549
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1612
err = hv_ldc_copy(lc->lc_id, LDC_COPY_OUT,
sys/arch/sparc64/dev/vdsp.c
1695
struct ldc_conn *lc;
sys/arch/sparc64/dev/vdsp.c
1705
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
1707
err = hv_ldc_tx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vdsp.c
1708
lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries);
sys/arch/sparc64/dev/vdsp.c
1712
err = hv_ldc_rx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vdsp.c
1713
lc->lc_rxq->lq_map->dm_segs[0].ds_addr, lc->lc_rxq->lq_nentries);
sys/arch/sparc64/dev/vdsp.c
332
struct ldc_conn *lc;
sys/arch/sparc64/dev/vdsp.c
362
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
363
lc->lc_id = ca->ca_id;
sys/arch/sparc64/dev/vdsp.c
364
lc->lc_sc = sc;
sys/arch/sparc64/dev/vdsp.c
365
lc->lc_reset = vdsp_ldc_reset;
sys/arch/sparc64/dev/vdsp.c
366
lc->lc_start = vdsp_ldc_start;
sys/arch/sparc64/dev/vdsp.c
367
lc->lc_rx_data = vdsp_rx_data;
sys/arch/sparc64/dev/vdsp.c
369
lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VDSK_TX_ENTRIES);
sys/arch/sparc64/dev/vdsp.c
370
if (lc->lc_txq == NULL) {
sys/arch/sparc64/dev/vdsp.c
375
lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VDSK_RX_ENTRIES);
sys/arch/sparc64/dev/vdsp.c
376
if (lc->lc_rxq == NULL) {
sys/arch/sparc64/dev/vdsp.c
392
ldc_queue_free(sc->sc_dmatag, lc->lc_rxq);
sys/arch/sparc64/dev/vdsp.c
395
ldc_queue_free(sc->sc_dmatag, lc->lc_txq);
sys/arch/sparc64/dev/vdsp.c
402
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
406
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vdsp.c
412
if (tx_state != lc->lc_tx_state) {
sys/arch/sparc64/dev/vdsp.c
424
lc->lc_tx_state = tx_state;
sys/arch/sparc64/dev/vdsp.c
427
wakeup(lc->lc_txq);
sys/arch/sparc64/dev/vdsp.c
435
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
440
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vdsp.c
448
if (rx_state != lc->lc_rx_state) {
sys/arch/sparc64/dev/vdsp.c
452
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/vdsp.c
453
lc->lc_state = 0;
sys/arch/sparc64/dev/vdsp.c
454
lc->lc_reset(lc);
sys/arch/sparc64/dev/vdsp.c
461
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/vdsp.c
462
lc->lc_state = 0;
sys/arch/sparc64/dev/vdsp.c
463
lc->lc_reset(lc);
sys/arch/sparc64/dev/vdsp.c
466
lc->lc_rx_state = rx_state;
sys/arch/sparc64/dev/vdsp.c
470
if (lc->lc_rx_state == LDC_CHANNEL_DOWN)
sys/arch/sparc64/dev/vdsp.c
473
lp = (struct ldc_pkt *)(lc->lc_rxq->lq_va + rx_head);
sys/arch/sparc64/dev/vdsp.c
476
ldc_rx_ctrl(lc, lp);
sys/arch/sparc64/dev/vdsp.c
480
ldc_rx_data(lc, lp);
sys/arch/sparc64/dev/vdsp.c
486
ldc_reset(lc);
sys/arch/sparc64/dev/vdsp.c
491
rx_head &= ((lc->lc_rxq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/vdsp.c
492
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_head);
sys/arch/sparc64/dev/vdsp.c
500
vdsp_rx_data(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/vdsp.c
509
vdsp_rx_vio_ctrl(lc->lc_sc, vm);
sys/arch/sparc64/dev/vdsp.c
515
vdsp_rx_vio_data(lc->lc_sc, vm);
sys/arch/sparc64/dev/vdsp.c
520
ldc_reset(lc);
sys/arch/sparc64/dev/vdsp.c
868
vdsp_ldc_reset(struct ldc_conn *lc)
sys/arch/sparc64/dev/vdsp.c
870
struct vdsp_softc *sc = lc->lc_sc;
sys/arch/sparc64/dev/vdsp.c
877
vdsp_ldc_start(struct ldc_conn *lc)
sys/arch/sparc64/dev/vdsp.c
885
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vdsp.c
889
err = ldc_send_unreliable(lc, msg, len);
sys/arch/sparc64/dev/vdsp.c
897
err = tsleep_nsec(lc->lc_txq, PWAIT, "vdsp",
sys/arch/sparc64/dev/vldcp.c
135
struct ldc_conn *lc;
sys/arch/sparc64/dev/vldcp.c
160
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
161
lc->lc_id = ca->ca_id;
sys/arch/sparc64/dev/vldcp.c
162
lc->lc_sc = sc;
sys/arch/sparc64/dev/vldcp.c
164
lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VLDCP_TX_ENTRIES);
sys/arch/sparc64/dev/vldcp.c
165
if (lc->lc_txq == NULL) {
sys/arch/sparc64/dev/vldcp.c
170
lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VLDCP_RX_ENTRIES);
sys/arch/sparc64/dev/vldcp.c
171
if (lc->lc_rxq == NULL) {
sys/arch/sparc64/dev/vldcp.c
175
lc->lc_rx_state = LDC_CHANNEL_INIT;
sys/arch/sparc64/dev/vldcp.c
196
ldc_queue_free(sc->sc_dmatag, lc->lc_rxq);
sys/arch/sparc64/dev/vldcp.c
199
ldc_queue_free(sc->sc_dmatag, lc->lc_txq);
sys/arch/sparc64/dev/vldcp.c
206
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
210
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vldcp.c
216
if (tx_state != lc->lc_tx_state) {
sys/arch/sparc64/dev/vldcp.c
228
lc->lc_tx_state = tx_state;
sys/arch/sparc64/dev/vldcp.c
233
wakeup(lc->lc_txq);
sys/arch/sparc64/dev/vldcp.c
241
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
245
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vldcp.c
251
if (rx_state != lc->lc_rx_state) {
sys/arch/sparc64/dev/vldcp.c
259
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_tail);
sys/arch/sparc64/dev/vldcp.c
273
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_tail);
sys/arch/sparc64/dev/vldcp.c
279
lc->lc_rx_state = rx_state;
sys/arch/sparc64/dev/vldcp.c
283
wakeup(lc->lc_rxq);
sys/arch/sparc64/dev/vldcp.c
292
wakeup(lc->lc_rxq);
sys/arch/sparc64/dev/vldcp.c
317
struct ldc_conn *lc;
sys/arch/sparc64/dev/vldcp.c
324
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
326
err = hv_ldc_tx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vldcp.c
327
lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries);
sys/arch/sparc64/dev/vldcp.c
331
err = hv_ldc_rx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vldcp.c
332
lc->lc_rxq->lq_map->dm_segs[0].ds_addr, lc->lc_rxq->lq_nentries);
sys/arch/sparc64/dev/vldcp.c
337
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vldcp.c
368
struct ldc_conn *lc;
sys/arch/sparc64/dev/vldcp.c
376
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
385
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vldcp.c
404
ret = tsleep_nsec(lc->lc_rxq, PWAIT | PCATCH, "hvrd", INFSLP);
sys/arch/sparc64/dev/vldcp.c
413
ret = uiomove(lc->lc_rxq->lq_va + rx_head, 64, uio);
sys/arch/sparc64/dev/vldcp.c
416
rx_head &= ((lc->lc_rxq->lq_nentries * 64) - 1);
sys/arch/sparc64/dev/vldcp.c
417
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_head);
sys/arch/sparc64/dev/vldcp.c
430
struct ldc_conn *lc;
sys/arch/sparc64/dev/vldcp.c
439
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
448
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vldcp.c
465
next_tx_tail &= ((lc->lc_txq->lq_nentries * 64) - 1);
sys/arch/sparc64/dev/vldcp.c
470
ret = tsleep_nsec(lc->lc_txq, PWAIT | PCATCH, "hvwr", INFSLP);
sys/arch/sparc64/dev/vldcp.c
480
ret = uiomove(lc->lc_txq->lq_va + tx_tail, 64, uio);
sys/arch/sparc64/dev/vldcp.c
482
err = hv_ldc_tx_set_qtail(lc->lc_id, next_tx_tail);
sys/arch/sparc64/dev/vldcp.c
497
struct ldc_conn *lc;
sys/arch/sparc64/dev/vldcp.c
508
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
528
err = hv_ldc_copy(lc->lc_id, LDC_COPY_IN,
sys/arch/sparc64/dev/vldcp.c
558
err = hv_ldc_copy(lc->lc_id, LDC_COPY_OUT,
sys/arch/sparc64/dev/vldcp.c
605
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
610
err = hv_ldc_rx_get_state(lc->lc_id, &head, &tail, &state);
sys/arch/sparc64/dev/vldcp.c
613
lc->lc_rxq->lq_nentries;
sys/arch/sparc64/dev/vldcp.c
614
avail %= lc->lc_rxq->lq_nentries;
sys/arch/sparc64/dev/vldcp.c
630
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vldcp.c
635
err = hv_ldc_tx_get_state(lc->lc_id, &head, &tail, &state);
sys/arch/sparc64/dev/vldcp.c
638
lc->lc_txq->lq_nentries - 1;
sys/arch/sparc64/dev/vldcp.c
639
avail %= lc->lc_txq->lq_nentries;
sys/arch/sparc64/dev/vnet.c
1081
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
1108
err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vnet.c
1112
tx_tail &= ((lc->lc_txq->lq_nentries * sizeof(struct ldc_pkt)) - 1);
sys/arch/sparc64/dev/vnet.c
1413
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
1420
err = hv_ldc_set_map_table(lc->lc_id,
sys/arch/sparc64/dev/vnet.c
1441
err = hv_ldc_tx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vnet.c
1442
lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries);
sys/arch/sparc64/dev/vnet.c
1446
err = hv_ldc_rx_qconf(lc->lc_id,
sys/arch/sparc64/dev/vnet.c
1447
lc->lc_rxq->lq_map->dm_segs[0].ds_addr, lc->lc_rxq->lq_nentries);
sys/arch/sparc64/dev/vnet.c
1454
ldc_send_vers(lc);
sys/arch/sparc64/dev/vnet.c
1463
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
1475
hv_ldc_tx_qconf(lc->lc_id, 0, 0);
sys/arch/sparc64/dev/vnet.c
1476
hv_ldc_rx_qconf(lc->lc_id, 0, 0);
sys/arch/sparc64/dev/vnet.c
1477
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/vnet.c
1478
lc->lc_state = 0;
sys/arch/sparc64/dev/vnet.c
1479
lc->lc_tx_state = lc->lc_rx_state = LDC_CHANNEL_DOWN;
sys/arch/sparc64/dev/vnet.c
1480
vnet_ldc_reset(lc);
sys/arch/sparc64/dev/vnet.c
1486
hv_ldc_set_map_table(lc->lc_id, 0, 0);
sys/arch/sparc64/dev/vnet.c
253
struct ldc_conn *lc;
sys/arch/sparc64/dev/vnet.c
281
lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
282
lc->lc_id = ca->ca_id;
sys/arch/sparc64/dev/vnet.c
283
lc->lc_sc = sc;
sys/arch/sparc64/dev/vnet.c
284
lc->lc_reset = vnet_ldc_reset;
sys/arch/sparc64/dev/vnet.c
285
lc->lc_start = vnet_ldc_start;
sys/arch/sparc64/dev/vnet.c
286
lc->lc_rx_data = vio_rx_data;
sys/arch/sparc64/dev/vnet.c
291
lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VNET_TX_ENTRIES);
sys/arch/sparc64/dev/vnet.c
292
if (lc->lc_txq == NULL) {
sys/arch/sparc64/dev/vnet.c
297
lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VNET_RX_ENTRIES);
sys/arch/sparc64/dev/vnet.c
298
if (lc->lc_rxq == NULL) {
sys/arch/sparc64/dev/vnet.c
333
ldc_queue_free(sc->sc_dmatag, lc->lc_txq);
sys/arch/sparc64/dev/vnet.c
340
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
343
hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state);
sys/arch/sparc64/dev/vnet.c
344
if (tx_state != lc->lc_tx_state) {
sys/arch/sparc64/dev/vnet.c
356
lc->lc_tx_state = tx_state;
sys/arch/sparc64/dev/vnet.c
366
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
371
err = hv_ldc_rx_get_state(lc->lc_id, &rx_head, &rx_tail, &rx_state);
sys/arch/sparc64/dev/vnet.c
379
if (rx_state != lc->lc_rx_state) {
sys/arch/sparc64/dev/vnet.c
383
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/vnet.c
384
lc->lc_state = 0;
sys/arch/sparc64/dev/vnet.c
385
lc->lc_reset(lc);
sys/arch/sparc64/dev/vnet.c
390
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_tail);
sys/arch/sparc64/dev/vnet.c
401
lc->lc_tx_seqid = 0;
sys/arch/sparc64/dev/vnet.c
402
lc->lc_state = 0;
sys/arch/sparc64/dev/vnet.c
403
lc->lc_reset(lc);
sys/arch/sparc64/dev/vnet.c
409
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_tail);
sys/arch/sparc64/dev/vnet.c
415
lc->lc_rx_state = rx_state;
sys/arch/sparc64/dev/vnet.c
422
lp = (struct ldc_pkt *)(lc->lc_rxq->lq_va + rx_head);
sys/arch/sparc64/dev/vnet.c
425
ldc_rx_ctrl(lc, lp);
sys/arch/sparc64/dev/vnet.c
429
ldc_rx_data(lc, lp);
sys/arch/sparc64/dev/vnet.c
435
ldc_reset(lc);
sys/arch/sparc64/dev/vnet.c
439
if (lc->lc_state == 0)
sys/arch/sparc64/dev/vnet.c
443
rx_head &= ((lc->lc_rxq->lq_nentries * sizeof(*lp)) - 1);
sys/arch/sparc64/dev/vnet.c
444
err = hv_ldc_rx_set_qhead(lc->lc_id, rx_head);
sys/arch/sparc64/dev/vnet.c
460
vio_rx_data(struct ldc_conn *lc, struct ldc_pkt *lp)
sys/arch/sparc64/dev/vnet.c
469
vnet_rx_vio_ctrl(lc->lc_sc, vm);
sys/arch/sparc64/dev/vnet.c
475
vnet_rx_vio_data(lc->lc_sc, vm);
sys/arch/sparc64/dev/vnet.c
480
ldc_reset(lc);
sys/arch/sparc64/dev/vnet.c
718
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
744
err = hv_ldc_copy(lc->lc_id, LDC_COPY_IN,
sys/arch/sparc64/dev/vnet.c
803
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
825
err = hv_ldc_copy(lc->lc_id, LDC_COPY_IN, cookie,
sys/arch/sparc64/dev/vnet.c
847
err = hv_ldc_copy(lc->lc_id, LDC_COPY_IN,
sys/arch/sparc64/dev/vnet.c
860
err = hv_ldc_copy(lc->lc_id, LDC_COPY_OUT, cookie,
sys/arch/sparc64/dev/vnet.c
931
vnet_ldc_reset(struct ldc_conn *lc)
sys/arch/sparc64/dev/vnet.c
933
struct vnet_softc *sc = lc->lc_sc;
sys/arch/sparc64/dev/vnet.c
957
vnet_ldc_start(struct ldc_conn *lc)
sys/arch/sparc64/dev/vnet.c
959
struct vnet_softc *sc = lc->lc_sc;
sys/arch/sparc64/dev/vnet.c
968
struct ldc_conn *lc = &sc->sc_lc;
sys/arch/sparc64/dev/vnet.c
971
err = ldc_send_unreliable(lc, msg, len);
sys/dev/pci/drm/i915/display/intel_dp.c
676
const struct intel_dp_link_config *lc)
sys/dev/pci/drm/i915/display/intel_dp.c
678
return intel_dp_common_rate(intel_dp, lc->link_rate_idx);
sys/dev/pci/drm/i915/display/intel_dp.c
681
static int intel_dp_link_config_lane_count(const struct intel_dp_link_config *lc)
sys/dev/pci/drm/i915/display/intel_dp.c
683
return 1 << lc->lane_count_exp;
sys/dev/pci/drm/i915/display/intel_dp.c
687
const struct intel_dp_link_config *lc)
sys/dev/pci/drm/i915/display/intel_dp.c
689
return drm_dp_max_dprx_data_rate(intel_dp_link_config_rate(intel_dp, lc),
sys/dev/pci/drm/i915/display/intel_dp.c
690
intel_dp_link_config_lane_count(lc));
sys/dev/pci/drm/i915/display/intel_dp.c
711
struct intel_dp_link_config *lc;
sys/dev/pci/drm/i915/display/intel_dp.c
727
lc = &intel_dp->link.configs[0];
sys/dev/pci/drm/i915/display/intel_dp.c
730
lc->lane_count_exp = j;
sys/dev/pci/drm/i915/display/intel_dp.c
731
lc->link_rate_idx = i;
sys/dev/pci/drm/i915/display/intel_dp.c
733
lc++;
sys/dev/pci/drm/i915/display/intel_dp.c
746
const struct intel_dp_link_config *lc;
sys/dev/pci/drm/i915/display/intel_dp.c
751
lc = &intel_dp->link.configs[idx];
sys/dev/pci/drm/i915/display/intel_dp.c
753
*link_rate = intel_dp_link_config_rate(intel_dp, lc);
sys/dev/pci/drm/i915/display/intel_dp.c
754
*lane_count = intel_dp_link_config_lane_count(lc);
sys/dev/pci/drm/i915/display/intel_dp.c
765
const struct intel_dp_link_config *lc = &intel_dp->link.configs[i];
sys/dev/pci/drm/i915/display/intel_dp.c
767
if (lc->lane_count_exp == lane_count_exp &&
sys/dev/pci/drm/i915/display/intel_dp.c
768
lc->link_rate_idx == link_rate_idx)
sys/dev/wsfont/wsfont.c
546
int s, lc;
sys/dev/wsfont/wsfont.c
579
lc = ++ent->lockcount;
sys/dev/wsfont/wsfont.c
582
lc = -1;
sys/dev/wsfont/wsfont.c
585
return (lc);
sys/dev/wsfont/wsfont.c
595
int s, lc;
sys/dev/wsfont/wsfont.c
602
lc = --ent->lockcount;
sys/dev/wsfont/wsfont.c
604
lc = -1;
sys/dev/wsfont/wsfont.c
607
return (lc);
sys/lib/libz/deflate.h
310
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc);
sys/lib/libz/trees.c
1093
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
sys/lib/libz/trees.c
1096
s->l_buf[s->sym_next++] = (uch)lc;
sys/lib/libz/trees.c
1100
s->sym_buf[s->sym_next++] = (uch)lc;
sys/lib/libz/trees.c
1104
s->dyn_ltree[lc].Freq++;
sys/lib/libz/trees.c
1110
(ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
sys/lib/libz/trees.c
1113
s->dyn_ltree[_length_code[lc] + LITERALS + 1].Freq++;
sys/lib/libz/trees.c
901
int lc; /* match length or unmatched char (if dist == 0) */
sys/lib/libz/trees.c
909
lc = s->l_buf[sx++];
sys/lib/libz/trees.c
913
lc = s->sym_buf[sx++];
sys/lib/libz/trees.c
916
send_code(s, lc, ltree); /* send a literal byte */
sys/lib/libz/trees.c
917
Tracecv(isgraph(lc), (stderr," '%c' ", lc));
sys/lib/libz/trees.c
920
code = _length_code[lc];
sys/lib/libz/trees.c
924
lc -= base_length[code];
sys/lib/libz/trees.c
925
send_bits(s, lc, extra); /* send the extra length bits */
usr.bin/cvs/diff3.c
485
number(char **lc)
usr.bin/cvs/diff3.c
490
while (isdigit((unsigned char)(**lc)))
usr.bin/cvs/diff3.c
491
nn = nn*10 + *(*lc)++ - '0';
usr.bin/diff3/diff3prog.c
246
number(char **lc)
usr.bin/diff3/diff3prog.c
250
while (isdigit((unsigned char)(**lc)))
usr.bin/diff3/diff3prog.c
251
nn = nn*10 + *(*lc)++ - '0';
usr.bin/encrypt/encrypt.c
76
login_cap_t *lc;
usr.bin/encrypt/encrypt.c
78
if ((lc = login_getclass(extra)) == NULL)
usr.bin/encrypt/encrypt.c
81
pref = login_getcapstr(lc, "localcipher", NULL, NULL);
usr.bin/less/option.c
215
lc = islower(optc);
usr.bin/less/option.c
223
lc = islower(optname[0]);
usr.bin/less/option.c
274
*(o->ovar) = flip_triple(o->odefault, lc);
usr.bin/less/option.c
490
flip_triple(int val, int lc)
usr.bin/less/option.c
492
if (lc)
usr.bin/less/option.c
77
int lc;
usr.bin/lock/lock.c
104
if (lc) {
usr.bin/lock/lock.c
105
style = login_getstyle(lc, optarg, "auth-lock");
usr.bin/lock/lock.c
132
if (usemine && lc == NULL)
usr.bin/lock/lock.c
197
(nstyle = login_getstyle(lc, "skey", "auth-lock")))
usr.bin/lock/lock.c
78
login_cap_t *lc;
usr.bin/lock/lock.c
91
lc = login_getclass(pw->pw_class);
usr.bin/lock/lock.c
92
if (lc != NULL) {
usr.bin/lock/lock.c
97
tries = login_getcapnum(lc, "login-tries", 10, 10);
usr.bin/lock/lock.c
98
backoff = login_getcapnum(lc, "login-backoff", 3, 3);
usr.bin/login/login.c
128
login_cap_t *lc = NULL;
usr.bin/login/login.c
328
if ((lc = login_getclass(0)) == NULL) { /* get the default class */
usr.bin/login/login.c
332
timeout = (u_int)login_getcapnum(lc, "login-timeout", 300, 300);
usr.bin/login/login.c
333
if ((script = login_getcapstr(lc, "classify", NULL, NULL)) != NULL) {
usr.bin/login/login.c
438
lc = login_getclass(pwd ? pwd->pw_class : NULL);
usr.bin/login/login.c
439
if (!lc)
usr.bin/login/login.c
442
style = login_getstyle(lc, style, type);
usr.bin/login/login.c
450
tries = (int)login_getcapnum(lc, "login-tries", 10, 10);
usr.bin/login/login.c
451
backoff = (int)login_getcapnum(lc, "login-backoff", 3, 3);
usr.bin/login/login.c
468
login_getcaptime(lc, "password-dead", 0, 0) != 0;
usr.bin/login/login.c
476
auth_verify(as, style, NULL, lc->lc_class, NULL);
usr.bin/login/login.c
556
shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
usr.bin/login/login.c
611
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH)) {
usr.bin/login/login.c
619
auth_checknologin(lc);
usr.bin/login/login.c
626
if (login_getcapbool(lc, "requirehome", 0)) {
usr.bin/login/login.c
635
login_getcapbool(lc, "hushlogin", 0) ||
usr.bin/login/login.c
649
warning = login_getcaptime(lc, "expire-warn",
usr.bin/login/login.c
687
login_getcapstr(lc, "copyright", NULL, NULL)) != NULL)
usr.bin/login/login.c
713
if (setusercontext(lc, pwd, rootlogin ? 0 : pwd->pw_uid,
usr.bin/login/login.c
725
if (auth_approval(as, lc, NULL, "login") == 0) {
usr.bin/login/login.c
801
motd = login_getcapstr(lc, "welcome", _PATH_MOTDFILE, _PATH_MOTDFILE);
usr.bin/login/login.c
907
login_getcapstr(lc, "term", UNKNOWN, UNKNOWN));
usr.bin/mail/collect.c
271
lc = 0;
usr.bin/mail/collect.c
275
lc++;
usr.bin/mail/collect.c
284
printf("%d/%d\n", lc, cc);
usr.bin/mail/collect.c
392
ssize_t cc, lc;
usr.bin/mail/collect.c
409
lc = 0;
usr.bin/mail/collect.c
414
lc++;
usr.bin/mail/collect.c
423
printf("%lld/%lld\n", (long long)lc, (long long)cc);
usr.bin/mail/collect.c
60
int lc, cc, fd, c, t, lastlong, rc, sig;
usr.bin/mail/util.c
128
int lc;
usr.bin/mail/util.c
133
if ((lc = mp->m_lines - 1) < 0)
usr.bin/mail/util.c
137
while (lc > 0) {
usr.bin/mail/util.c
138
if ((lc = gethfield(ibuf, linebuf, lc, &colon)) < 0)
usr.bin/mandoc/mdoc_validate.c
519
const char *lc;
usr.bin/mandoc/mdoc_validate.c
527
lc = strchr(nch->string, '\0') - 1;
usr.bin/mandoc/mdoc_validate.c
528
if (lc < nch->string)
usr.bin/mandoc/mdoc_validate.c
530
delim = mdoc_isdelim(lc);
usr.bin/mandoc/mdoc_validate.c
533
if (*lc == ')' && (tok == MDOC_Nd || tok == MDOC_Sh ||
usr.bin/mandoc/mdoc_validate.c
538
nch->pos + (int)(lc - nch->string), "%s%s %s", roff_name[tok],
usr.bin/mandoc/mdoc_validate.c
546
const char *lc, *cp;
usr.bin/mandoc/mdoc_validate.c
560
lc = strchr(nch->string, '\0') - 1;
usr.bin/mandoc/mdoc_validate.c
561
if (lc <= nch->string)
usr.bin/mandoc/mdoc_validate.c
563
delim = mdoc_isdelim(lc);
usr.bin/mandoc/mdoc_validate.c
572
if (lc > nch->string + 1 && lc[-2] == '\\' &&
usr.bin/mandoc/mdoc_validate.c
573
(lc[-1] == '&' || lc[-1] == 'e'))
usr.bin/mandoc/mdoc_validate.c
577
switch (*lc) {
usr.bin/mandoc/mdoc_validate.c
579
for (cp = lc; cp >= nch->string; cp--)
usr.bin/mandoc/mdoc_validate.c
584
if (lc > nch->string + 1 && lc[-2] == '.' && lc[-1] == '.')
usr.bin/mandoc/mdoc_validate.c
586
if (lc[-1] == '.')
usr.bin/mandoc/mdoc_validate.c
594
if (lc[-1] == '?')
usr.bin/mandoc/mdoc_validate.c
598
for (cp = lc; cp >= nch->string; cp--)
usr.bin/mandoc/mdoc_validate.c
603
if (lc == nch->string + 1 && lc[-1] == '|')
usr.bin/mandoc/mdoc_validate.c
610
if (lc == nch->string + 1 && !isalnum((unsigned char)lc[-1]))
usr.bin/mandoc/mdoc_validate.c
614
if (strchr("!.:?", *lc) != NULL && (tok == MDOC_Em ||
usr.bin/mandoc/mdoc_validate.c
617
for (cp = lc - 1; cp >= nch->string; cp--) {
usr.bin/mandoc/mdoc_validate.c
631
nch->pos + (int)(lc - nch->string), "%s%s %s", roff_name[tok],
usr.bin/passwd/local_passwd.c
112
pw->pw_passwd = getnewpasswd(pw, lc, authenticated);
usr.bin/passwd/local_passwd.c
118
period = (time_t)login_getcaptime(lc, "passwordtime", 0, 0);
usr.bin/passwd/local_passwd.c
171
getnewpasswd(struct passwd *pw, login_cap_t *lc, int authenticated)
usr.bin/passwd/local_passwd.c
203
pwd_tries = pwd_gettries(lc);
usr.bin/passwd/local_passwd.c
221
pwd_check(lc, p) == 0)
usr.bin/passwd/local_passwd.c
237
pref = login_getcapstr(lc, "localcipher", NULL, NULL);
usr.bin/passwd/local_passwd.c
64
login_cap_t *lc;
usr.bin/passwd/local_passwd.c
98
if ((lc = login_getclass(pw->pw_class)) == NULL) {
usr.bin/passwd/pwd_check.c
105
checker = login_getcapstr(lc, "passwordcheck", NULL, NULL);
usr.bin/passwd/pwd_check.c
210
pwd_gettries(login_cap_t *lc)
usr.bin/passwd/pwd_check.c
214
if ((ntries = login_getcapnum(lc, "passwordtries", -1, -1)) != -1) {
usr.bin/passwd/pwd_check.c
87
pwd_check(login_cap_t *lc, char *password)
usr.bin/passwd/pwd_check.c
98
min_len = (int)login_getcapnum(lc, "minpasswordlen", 6, 6);
usr.bin/rcs/diff3.c
580
number(char **lc)
usr.bin/rcs/diff3.c
585
while (isdigit((unsigned char)(**lc)))
usr.bin/rcs/diff3.c
586
nn = nn*10 + *(*lc)++ - '0';
usr.bin/rdist/expand.c
499
int ok, lc;
usr.bin/rdist/expand.c
514
lc = 077777;
usr.bin/rdist/expand.c
523
if (lc <= scc && scc <= (int)*p++)
usr.bin/rdist/expand.c
526
if (scc == (lc = cc))
usr.bin/ssh/auth-passwd.c
109
pwwarntime = login_getcaptime(lc, "password-warn", TWO_WEEKS,
usr.bin/ssh/auth-passwd.c
111
acwarntime = login_getcaptime(lc, "expire-warn", TWO_WEEKS,
usr.bin/ssh/auth-passwd.c
62
extern login_cap_t *lc;
usr.bin/ssh/auth.c
416
extern login_cap_t *lc;
usr.bin/ssh/auth.c
443
if ((lc = login_getclass(pw->pw_class)) == NULL) {
usr.bin/ssh/auth.c
448
auth_approval(as, lc, pw->pw_name, "ssh") <= 0) {
usr.bin/ssh/session.c
1003
if (login_getcapbool(lc, "ignorenologin", 0) || pw->pw_uid == 0)
usr.bin/ssh/session.c
1005
nl = login_getcapstr(lc, "nologin", def_nl, def_nl);
usr.bin/ssh/session.c
1085
if (setusercontext(lc, pw, pw->pw_uid,
usr.bin/ssh/session.c
1109
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUSER) < 0) {
usr.bin/ssh/session.c
1228
shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
usr.bin/ssh/session.c
1274
r = login_getcapbool(lc, "requirehome", 0);
usr.bin/ssh/session.c
141
login_cap_t *lc;
usr.bin/ssh/session.c
708
f = fopen(login_getcapstr(lc, "welcome", "/etc/motd",
usr.bin/ssh/session.c
733
if (login_getcapbool(lc, "hushlogin", 0) || stat(buf, &st) >= 0)
usr.bin/ssh/session.c
818
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)
usr.bin/ssh/sftp-common.c
218
char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1];
usr.bin/ssh/sftp-common.c
232
strlcpy(lc, "?", sizeof(lc));
usr.bin/ssh/sftp-common.c
236
snprintf(lc, sizeof(lc), "%u", (u_int)st->st_nlink);
usr.bin/ssh/sftp-common.c
253
mode, lc, ulen, user, glen, group,
usr.bin/ssh/sftp-common.c
257
mode, lc, ulen, user, glen, group,
usr.bin/su/su.c
218
if ((lc = login_getclass(pw_class)) == NULL)
usr.bin/su/su.c
223
verify_user(username, pwd, style, lc, as) == 0)
usr.bin/su/su.c
274
if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH))
usr.bin/su/su.c
284
if (login_getcapbool(lc, "requirehome", 0)) {
usr.bin/su/su.c
298
if (setusercontext(lc,
usr.bin/su/su.c
363
if (setusercontext(lc, pwd, pwd->pw_uid, flags) != 0)
usr.bin/su/su.c
369
if (pwd->pw_uid && auth_approval(as, lc, pwd->pw_name, "su") == 0)
usr.bin/su/su.c
379
login_cap_t *lc, auth_session_t *as)
usr.bin/su/su.c
392
(style = login_getstyle(lc, style, "auth-su")) == NULL)
usr.bin/su/su.c
411
auth_verify(as, style, NULL, lc->lc_class, (char *)NULL);
usr.bin/su/su.c
72
login_cap_t *lc;
usr.bin/tmux/cmd-break-pane.c
53
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/cmd-break-pane.c
56
struct layout_geometry *fg = &lc->fg;
usr.bin/tmux/cmd-break-pane.c
72
layout_remove_tile(w, lc);
usr.bin/tmux/cmd-break-pane.c
73
layout_set_size(lc, fg->sx, fg->sy, fg->xoff, fg->yoff);
usr.bin/tmux/cmd-break-pane.c
75
lc->flags |= LAYOUT_CELL_FLOATING;
usr.bin/tmux/cmd-join-pane.c
185
if (xoff != lc->g.xoff || yoff != lc->g.yoff) {
usr.bin/tmux/cmd-join-pane.c
186
lc->g.xoff = xoff;
usr.bin/tmux/cmd-join-pane.c
187
lc->g.yoff = yoff;
usr.bin/tmux/cmd-join-pane.c
202
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/cmd-join-pane.c
206
int xoff = lc->g.xoff, yoff = lc->g.yoff, adjust;
usr.bin/tmux/cmd-join-pane.c
257
if (xoff != lc->g.xoff || yoff != lc->g.yoff) {
usr.bin/tmux/cmd-join-pane.c
258
lc->g.xoff = xoff;
usr.bin/tmux/cmd-join-pane.c
259
lc->g.yoff = yoff;
usr.bin/tmux/cmd-join-pane.c
302
struct layout_cell *lc;
usr.bin/tmux/cmd-join-pane.c
311
lc = wp->layout_cell;
usr.bin/tmux/cmd-join-pane.c
325
lc->g.xoff += x - lx;
usr.bin/tmux/cmd-join-pane.c
326
lc->g.yoff += y - ly;
usr.bin/tmux/cmd-join-pane.c
374
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/cmd-join-pane.c
385
lc->fg.sx = lc->g.sx;
usr.bin/tmux/cmd-join-pane.c
386
lc->fg.sy = lc->g.sy;
usr.bin/tmux/cmd-join-pane.c
387
lc->fg.xoff = lc->g.xoff;
usr.bin/tmux/cmd-join-pane.c
388
lc->fg.yoff = lc->g.yoff;
usr.bin/tmux/cmd-join-pane.c
390
if (layout_insert_tile(w, lc) != 0) {
usr.bin/tmux/cmd-join-pane.c
394
lc->flags &= ~LAYOUT_CELL_FLOATING;
usr.bin/tmux/cmd-join-pane.c
424
struct layout_cell *lc;
usr.bin/tmux/cmd-join-pane.c
484
lc = layout_get_tiled_cell(item, args, dst_w, dst_wp, flags, &cause);
usr.bin/tmux/cmd-join-pane.c
508
layout_assign_pane(lc, src_wp, 0);
usr.bin/tmux/cmd-join-pane.c
73
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/cmd-join-pane.c
76
int px = lc->g.sx, py = lc->g.sy;
usr.bin/tmux/cmd-join-pane.c
77
int xoff = lc->g.xoff, yoff = lc->g.yoff;
usr.bin/tmux/cmd-resize-pane.c
182
if (lc->parent != NULL)
usr.bin/tmux/cmd-resize-pane.c
236
struct layout_cell *lc;
usr.bin/tmux/cmd-resize-pane.c
247
lc = wp->layout_cell;
usr.bin/tmux/cmd-resize-pane.c
273
new_sx = lc->g.sx + (lx - x);
usr.bin/tmux/cmd-resize-pane.c
276
new_sy = lc->g.sy + (ly - y);
usr.bin/tmux/cmd-resize-pane.c
281
layout_set_size(lc, new_sx, new_sy, new_xoff, new_yoff);
usr.bin/tmux/cmd-resize-pane.c
286
new_sx = x - lc->g.xoff;
usr.bin/tmux/cmd-resize-pane.c
289
new_sy = lc->g.sy + (ly - y);
usr.bin/tmux/cmd-resize-pane.c
293
layout_set_size(lc, new_sx, new_sy, lc->g.xoff, new_yoff);
usr.bin/tmux/cmd-resize-pane.c
298
new_sx = lc->g.sx + (lx - x);
usr.bin/tmux/cmd-resize-pane.c
301
new_sy = y - lc->g.yoff;
usr.bin/tmux/cmd-resize-pane.c
305
layout_set_size(lc, new_sx, new_sy, new_xoff, lc->g.yoff);
usr.bin/tmux/cmd-resize-pane.c
310
new_sx = x - lc->g.xoff;
usr.bin/tmux/cmd-resize-pane.c
313
new_sy = y - lc->g.yoff;
usr.bin/tmux/cmd-resize-pane.c
316
layout_set_size(lc, new_sx, new_sy, lc->g.xoff, lc->g.yoff);
usr.bin/tmux/cmd-resize-pane.c
320
new_sx = x - lc->g.xoff;
usr.bin/tmux/cmd-resize-pane.c
323
layout_set_size(lc, new_sx, lc->g.sy, lc->g.xoff, lc->g.yoff);
usr.bin/tmux/cmd-resize-pane.c
327
new_sx = lc->g.sx + (lx - x);
usr.bin/tmux/cmd-resize-pane.c
331
layout_set_size(lc, new_sx, lc->g.sy, new_xoff, lc->g.yoff);
usr.bin/tmux/cmd-resize-pane.c
335
new_sy = y - lc->g.yoff;
usr.bin/tmux/cmd-resize-pane.c
338
layout_set_size(lc, lc->g.sx, new_sy, lc->g.xoff, lc->g.yoff);
usr.bin/tmux/cmd-resize-pane.c
342
new_xoff = lc->g.xoff + (x - lx);
usr.bin/tmux/cmd-resize-pane.c
344
layout_set_size(lc, lc->g.sx, lc->g.sy, new_xoff, new_yoff);
usr.bin/tmux/cmd-resize-pane.c
363
struct layout_cell *cells[nitems(offsets)], *lc;
usr.bin/tmux/cmd-resize-pane.c
386
lc = layout_search_by_border(w->layout_root, lx + offsets[i][0],
usr.bin/tmux/cmd-resize-pane.c
388
if (lc == NULL)
usr.bin/tmux/cmd-resize-pane.c
392
if (cells[j] == lc) {
usr.bin/tmux/cmd-resize-pane.c
393
lc = NULL;
usr.bin/tmux/cmd-resize-pane.c
397
if (lc == NULL)
usr.bin/tmux/cmd-resize-pane.c
400
cells[ncells] = lc;
usr.bin/tmux/cmd-resize-pane.c
62
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/cmd-rotate-window.c
52
struct layout_cell *lc;
usr.bin/tmux/cmd-rotate-window.c
62
lc = wp->layout_cell;
usr.bin/tmux/cmd-rotate-window.c
74
wp->layout_cell = lc;
usr.bin/tmux/cmd-rotate-window.c
87
lc = wp->layout_cell;
usr.bin/tmux/cmd-rotate-window.c
99
wp->layout_cell = lc;
usr.bin/tmux/cmd-split-window.c
165
lc = layout_get_floating_cell(item, args, lines, w, wp, flags,
usr.bin/tmux/cmd-split-window.c
168
lc = layout_get_tiled_cell(item, args, w, wp, flags, &cause);
usr.bin/tmux/cmd-split-window.c
180
sc.lc = lc;
usr.bin/tmux/cmd-split-window.c
340
struct layout_cell *lc;
usr.bin/tmux/cmd-split-window.c
353
lc = wp->layout_cell;
usr.bin/tmux/cmd-split-window.c
399
layout_set_size(lc, sx, sy, xoff, yoff);
usr.bin/tmux/cmd-split-window.c
88
struct layout_cell *lc = NULL;
usr.bin/tmux/format.c
2579
struct layout_cell *lc, *root;
usr.bin/tmux/format.c
2587
lc = wp->saved_layout_cell;
usr.bin/tmux/format.c
2588
if (lc == NULL)
usr.bin/tmux/format.c
2589
lc = wp->layout_cell;
usr.bin/tmux/format.c
2590
if (lc == NULL)
usr.bin/tmux/format.c
2592
sy = lc->g.sy;
usr.bin/tmux/format.c
2593
floating = (lc->flags & LAYOUT_CELL_FLOATING);
usr.bin/tmux/format.c
2598
if (lc == wp->saved_layout_cell && !floating)
usr.bin/tmux/format.c
2604
layout_add_horizontal_border(root, lc, status) &&
usr.bin/tmux/format.c
2616
struct layout_cell *lc;
usr.bin/tmux/format.c
2623
lc = wp->saved_layout_cell;
usr.bin/tmux/format.c
2624
saved = (lc != NULL);
usr.bin/tmux/format.c
2625
if (lc == NULL)
usr.bin/tmux/format.c
2626
lc = wp->layout_cell;
usr.bin/tmux/format.c
2627
if (lc == NULL)
usr.bin/tmux/format.c
2629
sx = lc->g.sx;
usr.bin/tmux/layout-custom.c
100
if (lc == NULL)
usr.bin/tmux/layout-custom.c
102
if (lc->wp != NULL) {
usr.bin/tmux/layout-custom.c
104
lc->g.sx, lc->g.sy, lc->g.xoff, lc->g.yoff, lc->wp->id);
usr.bin/tmux/layout-custom.c
107
lc->g.sx, lc->g.sy, lc->g.xoff, lc->g.yoff);
usr.bin/tmux/layout-custom.c
114
switch (lc->type) {
usr.bin/tmux/layout-custom.c
121
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout-custom.c
138
layout_check(struct layout_cell *lc)
usr.bin/tmux/layout-custom.c
143
switch (lc->type) {
usr.bin/tmux/layout-custom.c
147
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout-custom.c
148
if (lcchild->g.sy != lc->g.sy)
usr.bin/tmux/layout-custom.c
154
if (n - 1 != lc->g.sx)
usr.bin/tmux/layout-custom.c
158
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout-custom.c
159
if (lcchild->g.sx != lc->g.sx)
usr.bin/tmux/layout-custom.c
165
if (n - 1 != lc->g.sy)
usr.bin/tmux/layout-custom.c
300
layout_assign(struct window_pane **wp, struct layout_cell *lc, int flags)
usr.bin/tmux/layout-custom.c
304
if (lc == NULL)
usr.bin/tmux/layout-custom.c
307
switch (lc->type) {
usr.bin/tmux/layout-custom.c
309
layout_make_leaf(lc, *wp);
usr.bin/tmux/layout-custom.c
310
lc->flags |= flags;
usr.bin/tmux/layout-custom.c
315
TAILQ_FOREACH(lcchild, &lc->cells, entry)
usr.bin/tmux/layout-custom.c
324
struct layout_cell *lc;
usr.bin/tmux/layout-custom.c
360
lc = layout_create_cell(lcparent);
usr.bin/tmux/layout-custom.c
361
lc->g.sx = sx;
usr.bin/tmux/layout-custom.c
362
lc->g.sy = sy;
usr.bin/tmux/layout-custom.c
363
lc->g.xoff = xoff;
usr.bin/tmux/layout-custom.c
364
lc->g.yoff = yoff;
usr.bin/tmux/layout-custom.c
366
return (lc);
usr.bin/tmux/layout-custom.c
37
layout_find_bottomright(struct layout_cell *lc)
usr.bin/tmux/layout-custom.c
377
struct layout_cell **lc)
usr.bin/tmux/layout-custom.c
381
*lc = layout_construct_cell(lcparent, layout);
usr.bin/tmux/layout-custom.c
382
if (*lc == NULL)
usr.bin/tmux/layout-custom.c
39
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/layout-custom.c
393
(*lc)->type = LAYOUT_LEFTRIGHT;
usr.bin/tmux/layout-custom.c
396
(*lc)->type = LAYOUT_TOPBOTTOM;
usr.bin/tmux/layout-custom.c
40
return (lc);
usr.bin/tmux/layout-custom.c
404
if (layout_construct(*lc, layout, &lcchild) != 0)
usr.bin/tmux/layout-custom.c
406
TAILQ_INSERT_TAIL(&(*lc)->cells, lcchild, entry);
usr.bin/tmux/layout-custom.c
409
switch ((*lc)->type) {
usr.bin/tmux/layout-custom.c
41
lc = TAILQ_LAST(&lc->cells, layout_cells);
usr.bin/tmux/layout-custom.c
42
return (layout_find_bottomright(lc));
usr.bin/tmux/layout-custom.c
426
layout_free_cell(*lc, 0);
usr.bin/tmux/layout-custom.c
91
layout_append(struct layout_cell *lc, char *buf, size_t len)
usr.bin/tmux/layout-set.c
142
struct layout_cell *lc;
usr.bin/tmux/layout-set.c
145
lc = wp->layout_cell;
usr.bin/tmux/layout-set.c
146
if (!layout_cell_is_tiled(lc)) {
usr.bin/tmux/layout-set.c
147
TAILQ_INSERT_TAIL(&lcroot->cells, lc, entry);
usr.bin/tmux/layout-set.c
148
lc->parent = lcroot;
usr.bin/tmux/layout.c
1000
layout_resize_pane_grow(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
1007
lcadd = lc;
usr.bin/tmux/layout.c
1010
lcremove = TAILQ_NEXT(lc, entry);
usr.bin/tmux/layout.c
102
TAILQ_REMOVE(&lc->cells, lcchild, entry);
usr.bin/tmux/layout.c
1020
lcremove = TAILQ_PREV(lc, layout_cells, entry);
usr.bin/tmux/layout.c
1041
layout_resize_pane_shrink(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
1048
lcremove = lc;
usr.bin/tmux/layout.c
1059
lcadd = TAILQ_NEXT(lc, entry);
usr.bin/tmux/layout.c
1073
layout_assign_pane(struct layout_cell *lc, struct window_pane *wp,
usr.bin/tmux/layout.c
1076
layout_make_leaf(lc, wp);
usr.bin/tmux/layout.c
1085
layout_new_pane_size(struct window *w, u_int previous, struct layout_cell *lc,
usr.bin/tmux/layout.c
109
if (lc->wp != NULL) {
usr.bin/tmux/layout.c
1095
available = layout_resize_check(w, lc, type);
usr.bin/tmux/layout.c
110
lc->wp->layout_cell->parent = NULL;
usr.bin/tmux/layout.c
1103
if (lc->g.sx - available > min)
usr.bin/tmux/layout.c
1104
min = lc->g.sx - available;
usr.bin/tmux/layout.c
1105
new_size = (lc->g.sx * size) / previous;
usr.bin/tmux/layout.c
1107
if (lc->g.sy - available > min)
usr.bin/tmux/layout.c
1108
min = lc->g.sy - available;
usr.bin/tmux/layout.c
1109
new_size = (lc->g.sy * size) / previous;
usr.bin/tmux/layout.c
111
lc->wp->layout_cell = NULL;
usr.bin/tmux/layout.c
1123
layout_set_size_check(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
1130
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/layout.c
1136
TAILQ_FOREACH(lcchild, &lc->cells, entry)
usr.bin/tmux/layout.c
1140
if (lc->type == type) {
usr.bin/tmux/layout.c
1145
previous = lc->g.sx;
usr.bin/tmux/layout.c
1147
previous = lc->g.sy;
usr.bin/tmux/layout.c
1150
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
116
free(lc);
usr.bin/tmux/layout.c
1167
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
1180
layout_resize_child_cells(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
1185
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/layout.c
1191
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
1196
if (lc->type == LAYOUT_LEFTRIGHT)
usr.bin/tmux/layout.c
1198
else if (lc->type == LAYOUT_TOPBOTTOM)
usr.bin/tmux/layout.c
1205
if (lc->type == LAYOUT_LEFTRIGHT)
usr.bin/tmux/layout.c
1206
available = lc->g.sx;
usr.bin/tmux/layout.c
1207
else if (lc->type == LAYOUT_TOPBOTTOM)
usr.bin/tmux/layout.c
1208
available = lc->g.sy;
usr.bin/tmux/layout.c
121
layout_print_cell(struct layout_cell *lc, const char *hdr, u_int n)
usr.bin/tmux/layout.c
1212
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
1216
if (lc->type == LAYOUT_TOPBOTTOM) {
usr.bin/tmux/layout.c
1217
lcchild->g.sx = lc->g.sx;
usr.bin/tmux/layout.c
1218
lcchild->g.xoff = lc->g.xoff;
usr.bin/tmux/layout.c
1221
lc->type, lc->g.sx, count - idx, available);
usr.bin/tmux/layout.c
1224
if (lc->type == LAYOUT_LEFTRIGHT) {
usr.bin/tmux/layout.c
1225
lcchild->g.sy = lc->g.sy;
usr.bin/tmux/layout.c
1226
lcchild->g.yoff = lc->g.yoff;
usr.bin/tmux/layout.c
1229
lc->type, lc->g.sy, count - idx, available);
usr.bin/tmux/layout.c
1243
layout_replace_with_node(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
1248
lcparent = layout_create_cell(lc->parent);
usr.bin/tmux/layout.c
1250
layout_set_size(lcparent, lc->g.sx, lc->g.sy, lc->g.xoff, lc->g.yoff);
usr.bin/tmux/layout.c
1251
if (lc->parent == NULL)
usr.bin/tmux/layout.c
1254
TAILQ_REPLACE(&lc->parent->cells, lc, lcparent, entry);
usr.bin/tmux/layout.c
1257
lc->parent = lcparent;
usr.bin/tmux/layout.c
1258
TAILQ_INSERT_HEAD(&lcparent->cells, lc, entry);
usr.bin/tmux/layout.c
126
if (lc == NULL)
usr.bin/tmux/layout.c
1265
layout_split_check_space(struct window_pane *wp, struct layout_cell *lc,
usr.bin/tmux/layout.c
1270
u_int minimum, sx = lc->g.sx, sy = lc->g.sy;
usr.bin/tmux/layout.c
1273
if (lc->flags & LAYOUT_CELL_FLOATING)
usr.bin/tmux/layout.c
1289
if (layout_add_horizontal_border(root, lc, status))
usr.bin/tmux/layout.c
129
switch (lc->type) {
usr.bin/tmux/layout.c
1305
layout_split_sizes(struct layout_cell *lc, int size, int before,
usr.bin/tmux/layout.c
1309
u_int sx = lc->g.sx, sy = lc->g.sy;
usr.bin/tmux/layout.c
1340
struct layout_cell *lc, *lcparent, *lcnew, *lc1, *lc2;
usr.bin/tmux/layout.c
1351
lc = wp->window->layout_root;
usr.bin/tmux/layout.c
1353
lc = wp->layout_cell;
usr.bin/tmux/layout.c
1356
sx = lc->g.sx;
usr.bin/tmux/layout.c
1357
sy = lc->g.sy;
usr.bin/tmux/layout.c
1358
xoff = lc->g.xoff;
usr.bin/tmux/layout.c
1359
yoff = lc->g.yoff;
usr.bin/tmux/layout.c
1362
if (!layout_split_check_space(wp, lc, type))
usr.bin/tmux/layout.c
1369
layout_split_sizes(lc, size, before, type, &size1, &size2, &saved_size);
usr.bin/tmux/layout.c
1378
if (full_size && !layout_set_size_check(wp->window, lc, type, new_size))
usr.bin/tmux/layout.c
1381
if (lc->parent != NULL && lc->parent->type == type) {
usr.bin/tmux/layout.c
1386
lcparent = lc->parent;
usr.bin/tmux/layout.c
1389
TAILQ_INSERT_BEFORE(lc, lcnew, entry);
usr.bin/tmux/layout.c
1391
TAILQ_INSERT_AFTER(&lcparent->cells, lc, lcnew, entry);
usr.bin/tmux/layout.c
1392
} else if (full_size && lc->parent == NULL && lc->type == type) {
usr.bin/tmux/layout.c
1399
if (lc->type == LAYOUT_LEFTRIGHT) {
usr.bin/tmux/layout.c
1400
lc->g.sx = new_size;
usr.bin/tmux/layout.c
1401
layout_resize_child_cells(wp->window, lc);
usr.bin/tmux/layout.c
1402
lc->g.sx = saved_size;
usr.bin/tmux/layout.c
1403
} else if (lc->type == LAYOUT_TOPBOTTOM) {
usr.bin/tmux/layout.c
1404
lc->g.sy = new_size;
usr.bin/tmux/layout.c
1405
layout_resize_child_cells(wp->window, lc);
usr.bin/tmux/layout.c
1406
lc->g.sy = saved_size;
usr.bin/tmux/layout.c
1411
lcnew = layout_create_cell(lc);
usr.bin/tmux/layout.c
1413
if (lc->type == LAYOUT_LEFTRIGHT)
usr.bin/tmux/layout.c
1415
else if (lc->type == LAYOUT_TOPBOTTOM)
usr.bin/tmux/layout.c
1418
TAILQ_INSERT_HEAD(&lc->cells, lcnew, entry);
usr.bin/tmux/layout.c
1420
TAILQ_INSERT_TAIL(&lc->cells, lcnew, entry);
usr.bin/tmux/layout.c
1427
lcparent = layout_replace_with_node(wp->window, lc, type);
usr.bin/tmux/layout.c
1438
lc2 = lc;
usr.bin/tmux/layout.c
144
" ", lc, type, lc->parent, lc->wp, lc->g.xoff, lc->g.yoff, lc->g.sx,
usr.bin/tmux/layout.c
1440
lc1 = lc;
usr.bin/tmux/layout.c
145
lc->g.sy);
usr.bin/tmux/layout.c
1457
layout_resize_child_cells(wp->window, lc);
usr.bin/tmux/layout.c
146
switch (lc->type) {
usr.bin/tmux/layout.c
1460
layout_make_leaf(lc, wp);
usr.bin/tmux/layout.c
1473
struct layout_cell *lc, *lcnew, *lcparent;
usr.bin/tmux/layout.c
1476
lc = w->layout_root;
usr.bin/tmux/layout.c
1478
lc = wp->layout_cell;
usr.bin/tmux/layout.c
1479
lcparent = lc->parent;
usr.bin/tmux/layout.c
1486
lcparent = layout_replace_with_node(w, lc, LAYOUT_TOPBOTTOM);
usr.bin/tmux/layout.c
149
TAILQ_FOREACH(lcchild, &lc->cells, entry)
usr.bin/tmux/layout.c
1490
TAILQ_INSERT_AFTER(&lcparent->cells, lc, lcnew, entry);
usr.bin/tmux/layout.c
1522
struct layout_cell *lc, *root = w->layout_root;
usr.bin/tmux/layout.c
1527
TAILQ_FOREACH (lc, &parent->cells, entry)
usr.bin/tmux/layout.c
1528
if (layout_cell_is_tiled(lc))
usr.bin/tmux/layout.c
1556
TAILQ_FOREACH (lc, &parent->cells, entry) {
usr.bin/tmux/layout.c
1557
if (!layout_cell_is_tiled(lc))
usr.bin/tmux/layout.c
1561
change = each - (int)lc->g.sx;
usr.bin/tmux/layout.c
1566
layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, change);
usr.bin/tmux/layout.c
1568
if (layout_add_horizontal_border(root, lc, status))
usr.bin/tmux/layout.c
1576
change = this - (int)lc->g.sy;
usr.bin/tmux/layout.c
1577
layout_resize_adjust(w, lc, LAYOUT_TOPBOTTOM, change);
usr.bin/tmux/layout.c
159
layout_search_by_border(struct layout_cell *lc, u_int x, u_int y)
usr.bin/tmux/layout.c
1610
struct layout_cell *lc;
usr.bin/tmux/layout.c
163
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
1654
lc = layout_split_pane(wp, type, size, flags);
usr.bin/tmux/layout.c
1655
if (lc == NULL)
usr.bin/tmux/layout.c
1658
return (lc);
usr.bin/tmux/layout.c
1666
struct layout_cell *lcnew, *lc = wp->layout_cell;
usr.bin/tmux/layout.c
1671
if (layout_split_floating_cell(lc, w, &fg, lines, flags, cause)
usr.bin/tmux/layout.c
177
switch (lc->type) {
usr.bin/tmux/layout.c
1784
layout_split_floating_cell(struct layout_cell *lc, struct window *w,
usr.bin/tmux/layout.c
1795
memcpy(&old, &lc->g, sizeof old);
usr.bin/tmux/layout.c
1903
layout_set_size(lc, old.sx, old.sy, old.xoff, old.yoff);
usr.bin/tmux/layout.c
1913
layout_remove_tile(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
1919
if (lc->flags & LAYOUT_CELL_FLOATING)
usr.bin/tmux/layout.c
1922
lcneighbour = layout_cell_get_neighbour(lc);
usr.bin/tmux/layout.c
1924
if (lc->parent != NULL)
usr.bin/tmux/layout.c
1925
layout_remove_tile(w, lc->parent);
usr.bin/tmux/layout.c
1933
change = lc->g.sy + 1;
usr.bin/tmux/layout.c
1935
change = lc->g.sx + 1;
usr.bin/tmux/layout.c
1943
if (lc->parent != NULL)
usr.bin/tmux/layout.c
1944
layout_set_size(lc, 0, 0, 0, 0);
usr.bin/tmux/layout.c
1953
layout_insert_tile(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
1959
if (lc == NULL)
usr.bin/tmux/layout.c
1962
if (layout_cell_is_tiled(lc))
usr.bin/tmux/layout.c
1965
lcparent = lc->parent;
usr.bin/tmux/layout.c
1968
layout_set_size(lc, w->sx, w->sy, 0, 0);
usr.bin/tmux/layout.c
1973
lcneighbour = layout_cell_get_neighbour(lc);
usr.bin/tmux/layout.c
1984
layout_resize_set_size(w, lc, type, size1);
usr.bin/tmux/layout.c
1995
layout_resize_set_size(w, lc, type, size1);
usr.bin/tmux/layout.c
200
layout_set_size(struct layout_cell *lc, u_int sx, u_int sy, int xoff, int yoff)
usr.bin/tmux/layout.c
2007
layout_resize_set_size(w, lc, type, size1);
usr.bin/tmux/layout.c
202
lc->g.sx = sx;
usr.bin/tmux/layout.c
203
lc->g.sy = sy;
usr.bin/tmux/layout.c
205
lc->g.xoff = xoff;
usr.bin/tmux/layout.c
206
lc->g.yoff = yoff;
usr.bin/tmux/layout.c
211
layout_make_leaf(struct layout_cell *lc, struct window_pane *wp)
usr.bin/tmux/layout.c
213
lc->type = LAYOUT_WINDOWPANE;
usr.bin/tmux/layout.c
215
TAILQ_INIT(&lc->cells);
usr.bin/tmux/layout.c
217
wp->layout_cell = lc;
usr.bin/tmux/layout.c
218
lc->wp = wp;
usr.bin/tmux/layout.c
223
layout_make_node(struct layout_cell *lc, enum layout_type type)
usr.bin/tmux/layout.c
227
lc->type = type;
usr.bin/tmux/layout.c
229
TAILQ_INIT(&lc->cells);
usr.bin/tmux/layout.c
231
if (lc->wp != NULL)
usr.bin/tmux/layout.c
232
lc->wp->layout_cell = NULL;
usr.bin/tmux/layout.c
233
lc->wp = NULL;
usr.bin/tmux/layout.c
238
layout_fix_zindexes(struct window *w, struct layout_cell *lc)
usr.bin/tmux/layout.c
242
if (lc == NULL)
usr.bin/tmux/layout.c
245
switch (lc->type) {
usr.bin/tmux/layout.c
247
TAILQ_INSERT_TAIL(&w->z_index, lc->wp, zentry);
usr.bin/tmux/layout.c
251
TAILQ_FOREACH(lcchild, &lc->cells, entry)
usr.bin/tmux/layout.c
260
layout_cell_is_tiled(struct layout_cell *lc)
usr.bin/tmux/layout.c
262
int is_leaf = lc->type == LAYOUT_WINDOWPANE;
usr.bin/tmux/layout.c
263
int is_floating = lc->flags & LAYOUT_CELL_FLOATING;
usr.bin/tmux/layout.c
269
layout_cell_has_tiled_child(struct layout_cell *lc)
usr.bin/tmux/layout.c
273
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/layout.c
276
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
285
layout_cell_is_first_tiled(struct layout_cell *lc)
usr.bin/tmux/layout.c
287
struct layout_cell *lcchild, *lcparent = lc->parent;
usr.bin/tmux/layout.c
290
return (layout_cell_is_tiled(lc));
usr.bin/tmux/layout.c
298
return (lcchild == lc);
usr.bin/tmux/layout.c
302
layout_cell_get_first_tiled(struct layout_cell *lc)
usr.bin/tmux/layout.c
306
if (layout_cell_is_tiled(lc))
usr.bin/tmux/layout.c
307
return (lc);
usr.bin/tmux/layout.c
308
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/layout.c
311
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
325
layout_fix_offsets1(struct layout_cell *lc)
usr.bin/tmux/layout.c
330
if (lc->type == LAYOUT_LEFTRIGHT) {
usr.bin/tmux/layout.c
331
xoff = lc->g.xoff;
usr.bin/tmux/layout.c
332
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
337
lcchild->g.yoff = lc->g.yoff;
usr.bin/tmux/layout.c
343
yoff = lc->g.yoff;
usr.bin/tmux/layout.c
344
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
348
lcchild->g.xoff = lc->g.xoff;
usr.bin/tmux/layout.c
361
struct layout_cell *lc = w->layout_root;
usr.bin/tmux/layout.c
364
if (lc->flags & LAYOUT_CELL_FLOATING)
usr.bin/tmux/layout.c
367
lc->g.xoff = 0;
usr.bin/tmux/layout.c
368
lc->g.yoff = 0;
usr.bin/tmux/layout.c
370
layout_fix_offsets1(lc);
usr.bin/tmux/layout.c
374
layout_cell_is_last_tiled(struct layout_cell *lc)
usr.bin/tmux/layout.c
376
struct layout_cell *lcchild, *lcparent = lc->parent;
usr.bin/tmux/layout.c
379
return (layout_cell_is_tiled(lc));
usr.bin/tmux/layout.c
387
return (lcchild == lc);
usr.bin/tmux/layout.c
392
layout_cell_is_top(struct layout_cell *root, struct layout_cell *lc)
usr.bin/tmux/layout.c
396
while (lc != root) {
usr.bin/tmux/layout.c
397
next = lc->parent;
usr.bin/tmux/layout.c
401
!layout_cell_is_first_tiled(lc))
usr.bin/tmux/layout.c
403
lc = next;
usr.bin/tmux/layout.c
410
layout_cell_is_bottom(struct layout_cell *root, struct layout_cell *lc)
usr.bin/tmux/layout.c
414
while (lc != root) {
usr.bin/tmux/layout.c
415
next = lc->parent;
usr.bin/tmux/layout.c
419
!layout_cell_is_last_tiled(lc))
usr.bin/tmux/layout.c
421
lc = next;
usr.bin/tmux/layout.c
431
layout_add_horizontal_border(struct layout_cell *root, struct layout_cell *lc,
usr.bin/tmux/layout.c
435
return (layout_cell_is_top(root, lc));
usr.bin/tmux/layout.c
437
return (layout_cell_is_bottom(root, lc));
usr.bin/tmux/layout.c
446
struct layout_cell *lc, *root = w->layout_root;
usr.bin/tmux/layout.c
452
if ((lc = wp->layout_cell) == NULL || wp == skip)
usr.bin/tmux/layout.c
460
wp->xoff = lc->g.xoff;
usr.bin/tmux/layout.c
461
wp->yoff = lc->g.yoff;
usr.bin/tmux/layout.c
462
sx = lc->g.sx;
usr.bin/tmux/layout.c
463
sy = lc->g.sy;
usr.bin/tmux/layout.c
467
layout_add_horizontal_border(root, lc, status)) {
usr.bin/tmux/layout.c
512
layout_count_cells(struct layout_cell *lc)
usr.bin/tmux/layout.c
517
switch (lc->type) {
usr.bin/tmux/layout.c
522
TAILQ_FOREACH(lcchild, &lc->cells, entry)
usr.bin/tmux/layout.c
532
layout_resize_check(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
542
if (lc->type == LAYOUT_WINDOWPANE) {
usr.bin/tmux/layout.c
545
available = lc->g.sx;
usr.bin/tmux/layout.c
552
available = lc->g.sy;
usr.bin/tmux/layout.c
553
if (layout_add_horizontal_border(root, lc, status))
usr.bin/tmux/layout.c
562
} else if (lc->type == type) {
usr.bin/tmux/layout.c
565
TAILQ_FOREACH(lcchild, &lc->cells, entry)
usr.bin/tmux/layout.c
570
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
586
layout_resize_adjust(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
594
lc->g.sx += change;
usr.bin/tmux/layout.c
596
lc->g.sy += change;
usr.bin/tmux/layout.c
603
if (lc->type != type) {
usr.bin/tmux/layout.c
604
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
616
if (!layout_cell_has_tiled_child(lc))
usr.bin/tmux/layout.c
625
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/layout.c
650
layout_resize_set_size(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
656
change = size - lc->g.sx;
usr.bin/tmux/layout.c
658
change = size - lc->g.sy;
usr.bin/tmux/layout.c
659
layout_resize_adjust(w, lc, type, change);
usr.bin/tmux/layout.c
664
layout_cell_get_neighbour_direction(struct layout_cell *lc, int direction)
usr.bin/tmux/layout.c
666
struct layout_cell *lcn = lc;
usr.bin/tmux/layout.c
687
layout_cell_get_neighbour(struct layout_cell *lc)
usr.bin/tmux/layout.c
689
struct layout_cell *lcother, *lcparent = lc->parent;
usr.bin/tmux/layout.c
695
if (lc == TAILQ_LAST(&lcparent->cells, layout_cells))
usr.bin/tmux/layout.c
698
lcother = layout_cell_get_neighbour_direction(lc, direction);
usr.bin/tmux/layout.c
700
lcother = layout_cell_get_neighbour_direction(lc, !direction);
usr.bin/tmux/layout.c
708
layout_destroy_cell(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
715
lcparent = lc->parent;
usr.bin/tmux/layout.c
717
if (lc->wp != NULL)
usr.bin/tmux/layout.c
719
layout_free_cell(lc, 0);
usr.bin/tmux/layout.c
723
if (!layout_cell_is_tiled(lc)) {
usr.bin/tmux/layout.c
724
TAILQ_REMOVE(&lcparent->cells, lc, entry);
usr.bin/tmux/layout.c
725
layout_free_cell(lc, 0);
usr.bin/tmux/layout.c
729
lcother = layout_cell_get_neighbour(lc);
usr.bin/tmux/layout.c
73
struct layout_cell *lc;
usr.bin/tmux/layout.c
732
change = lc->g.sx + 1;
usr.bin/tmux/layout.c
734
change = lc->g.sy + 1;
usr.bin/tmux/layout.c
740
TAILQ_REMOVE(&lcparent->cells, lc, entry);
usr.bin/tmux/layout.c
741
layout_free_cell(lc, 0);
usr.bin/tmux/layout.c
748
lc = TAILQ_FIRST(&lcparent->cells);
usr.bin/tmux/layout.c
749
if (lc != NULL && TAILQ_NEXT(lc, entry) == NULL) {
usr.bin/tmux/layout.c
75
lc = xcalloc(1, sizeof *lc);
usr.bin/tmux/layout.c
750
TAILQ_REMOVE(&lcparent->cells, lc, entry);
usr.bin/tmux/layout.c
752
lc->parent = lcparent->parent;
usr.bin/tmux/layout.c
753
if (lc->parent == NULL) {
usr.bin/tmux/layout.c
754
if (layout_cell_is_tiled(lc)) {
usr.bin/tmux/layout.c
755
lc->g.xoff = 0;
usr.bin/tmux/layout.c
756
lc->g.yoff = 0;
usr.bin/tmux/layout.c
758
*lcroot = lc;
usr.bin/tmux/layout.c
76
lc->type = LAYOUT_WINDOWPANE;
usr.bin/tmux/layout.c
760
TAILQ_REPLACE(&lc->parent->cells, lcparent, lc, entry);
usr.bin/tmux/layout.c
77
lc->parent = lcparent;
usr.bin/tmux/layout.c
770
struct layout_cell *lc;
usr.bin/tmux/layout.c
772
lc = w->layout_root = layout_create_cell(NULL);
usr.bin/tmux/layout.c
773
layout_set_size(lc, w->sx, w->sy, 0, 0);
usr.bin/tmux/layout.c
774
layout_make_leaf(lc, wp);
usr.bin/tmux/layout.c
78
TAILQ_INIT(&lc->cells);
usr.bin/tmux/layout.c
789
struct layout_cell *lc = w->layout_root;
usr.bin/tmux/layout.c
80
layout_geometry_init(&lc->g);
usr.bin/tmux/layout.c
805
if (lc->type == LAYOUT_WINDOWPANE && (lc->flags & LAYOUT_CELL_FLOATING))
usr.bin/tmux/layout.c
807
xchange = sx - lc->g.sx;
usr.bin/tmux/layout.c
808
xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT);
usr.bin/tmux/layout.c
81
layout_geometry_init(&lc->fg);
usr.bin/tmux/layout.c
812
if (sx <= lc->g.sx) /* lc->g.sx is minimum possible */
usr.bin/tmux/layout.c
815
xchange = sx - lc->g.sx;
usr.bin/tmux/layout.c
818
layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange);
usr.bin/tmux/layout.c
821
ychange = sy - lc->g.sy;
usr.bin/tmux/layout.c
822
ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM);
usr.bin/tmux/layout.c
826
if (sy <= lc->g.sy) /* lc->g.sy is minimum possible */
usr.bin/tmux/layout.c
829
ychange = sy - lc->g.sy;
usr.bin/tmux/layout.c
83
return (lc);
usr.bin/tmux/layout.c
832
layout_resize_adjust(w, lc, LAYOUT_TOPBOTTOM, ychange);
usr.bin/tmux/layout.c
844
struct layout_cell *lc, *lcparent;
usr.bin/tmux/layout.c
847
lc = wp->layout_cell;
usr.bin/tmux/layout.c
850
lcparent = lc->parent;
usr.bin/tmux/layout.c
852
lc = lcparent;
usr.bin/tmux/layout.c
853
lcparent = lc->parent;
usr.bin/tmux/layout.c
860
size = lc->g.sx;
usr.bin/tmux/layout.c
862
size = lc->g.sy;
usr.bin/tmux/layout.c
863
if (lc == TAILQ_LAST(&lcparent->cells, layout_cells))
usr.bin/tmux/layout.c
877
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/layout.c
879
if (~lc->flags & LAYOUT_CELL_FLOATING) {
usr.bin/tmux/layout.c
88
layout_free_cell(struct layout_cell *lc, int only_nodes)
usr.bin/tmux/layout.c
893
if (lc->g.sy == size)
usr.bin/tmux/layout.c
895
lc->g.sy = size;
usr.bin/tmux/layout.c
897
if (lc->g.sx == size)
usr.bin/tmux/layout.c
899
lc->g.sx = size;
usr.bin/tmux/layout.c
910
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/layout.c
913
if (~lc->flags & LAYOUT_CELL_FLOATING) {
usr.bin/tmux/layout.c
92
if (lc == NULL || (only_nodes && lc->type == LAYOUT_WINDOWPANE))
usr.bin/tmux/layout.c
921
size = lc->g.sy + change;
usr.bin/tmux/layout.c
926
lc->g.sy = size;
usr.bin/tmux/layout.c
928
lc->g.yoff -= change;
usr.bin/tmux/layout.c
930
size = lc->g.sx + change;
usr.bin/tmux/layout.c
935
lc->g.sx = size;
usr.bin/tmux/layout.c
937
lc->g.xoff -= change;
usr.bin/tmux/layout.c
945
layout_resize_layout(struct window *w, struct layout_cell *lc,
usr.bin/tmux/layout.c
95
switch (lc->type) {
usr.bin/tmux/layout.c
954
size = layout_resize_pane_grow(w, lc, type, needed,
usr.bin/tmux/layout.c
958
size = layout_resize_pane_shrink(w, lc, type, needed);
usr.bin/tmux/layout.c
977
struct layout_cell *lc = wp->layout_cell, *lcparent;
usr.bin/tmux/layout.c
98
lcchild = TAILQ_FIRST(&lc->cells);
usr.bin/tmux/layout.c
980
lcparent = lc->parent;
usr.bin/tmux/layout.c
982
lc = lcparent;
usr.bin/tmux/layout.c
983
lcparent = lc->parent;
usr.bin/tmux/layout.c
989
if (lc == TAILQ_LAST(&lcparent->cells, layout_cells)) {
usr.bin/tmux/layout.c
991
lc = TAILQ_PREV(lc, layout_cells, entry);
usr.bin/tmux/layout.c
992
while (lc->flags & LAYOUT_CELL_FLOATING);
usr.bin/tmux/layout.c
995
layout_resize_layout(wp->window, lc, type, change, opposite);
usr.bin/tmux/spawn.c
339
if (sc->lc == NULL) {
usr.bin/tmux/spawn.c
345
layout_assign_pane(sc->lc, new_wp, 1);
usr.bin/tmux/spawn.c
347
layout_assign_pane(sc->lc, new_wp, 0);
usr.bin/tmux/spawn.c
676
struct layout_cell *lc;
usr.bin/tmux/spawn.c
715
lc = layout_floating_pane(w, NULL, &lg);
usr.bin/tmux/spawn.c
716
if (lc == NULL) {
usr.bin/tmux/spawn.c
728
sc.lc = lc;
usr.bin/tmux/window-panes.c
153
struct layout_cell *lc = wp->saved_layout_cell;
usr.bin/tmux/window-panes.c
155
if (lc == NULL)
usr.bin/tmux/window-panes.c
156
lc = wp->layout_cell;
usr.bin/tmux/window-panes.c
157
if (lc == NULL || (~lc->flags & LAYOUT_CELL_FLOATING))
usr.bin/tmux/window-panes.c
175
struct layout_cell *lc = wp->saved_layout_cell;
usr.bin/tmux/window-panes.c
179
if (lc == NULL)
usr.bin/tmux/window-panes.c
180
lc = wp->layout_cell;
usr.bin/tmux/window-panes.c
181
if (lc == NULL || osx == 0 || osy == 0 || dsx == 0 || dsy == 0)
usr.bin/tmux/window-panes.c
185
x = lc->g.xoff;
usr.bin/tmux/window-panes.c
186
y = lc->g.yoff;
usr.bin/tmux/window-panes.c
187
x2 = x + lc->g.sx;
usr.bin/tmux/window-panes.c
188
y2 = y + lc->g.sy;
usr.bin/tmux/window-panes.c
190
x = (u_int)lc->g.xoff * dsx / osx;
usr.bin/tmux/window-panes.c
191
y = (u_int)lc->g.yoff * dsy / osy;
usr.bin/tmux/window-panes.c
192
x2 = ((u_int)lc->g.xoff + lc->g.sx) * dsx / osx;
usr.bin/tmux/window-panes.c
193
y2 = ((u_int)lc->g.yoff + lc->g.sy) * dsy / osy;
usr.bin/tmux/window-panes.c
213
if (layout_add_horizontal_border(root, lc, status) && sy > 1) {
usr.bin/tmux/window-panes.c
257
window_panes_next_tiled_cell(struct layout_cell *lc)
usr.bin/tmux/window-panes.c
261
next = TAILQ_NEXT(lc, entry);
usr.bin/tmux/window-panes.c
329
window_panes_mark_borders_cell(u_char *map, struct layout_cell *lc, u_int osx,
usr.bin/tmux/window-panes.c
335
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/window-panes.c
338
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/window-panes.c
347
if (lc->type == LAYOUT_LEFTRIGHT) {
usr.bin/tmux/window-panes.c
350
y = window_panes_map_y(lc->g.yoff, osy, dsy);
usr.bin/tmux/window-panes.c
351
y2 = window_panes_map_y(lc->g.yoff + lc->g.sy, osy,
usr.bin/tmux/window-panes.c
355
x = window_panes_map_x(lc->g.xoff, osx, dsx);
usr.bin/tmux/window-panes.c
356
x2 = window_panes_map_x(lc->g.xoff + lc->g.sx, osx,
usr.bin/tmux/window-panes.c
370
struct layout_cell *lc;
usr.bin/tmux/window-panes.c
381
lc = wp->saved_layout_cell;
usr.bin/tmux/window-panes.c
382
if (lc == NULL)
usr.bin/tmux/window-panes.c
383
lc = wp->layout_cell;
usr.bin/tmux/window-panes.c
384
if (lc == NULL ||
usr.bin/tmux/window-panes.c
385
!layout_add_horizontal_border(root, lc, status))
usr.bin/tmux/window-panes.c
388
x = window_panes_map_x(lc->g.xoff, osx, dsx);
usr.bin/tmux/window-panes.c
389
x2 = window_panes_map_x(lc->g.xoff + lc->g.sx, osx, dsx);
usr.bin/tmux/window-panes.c
391
y = window_panes_map_y(lc->g.yoff, osy, dsy);
usr.bin/tmux/window-panes.c
393
y2 = window_panes_map_y(lc->g.yoff + lc->g.sy, osy,
usr.bin/tmux/window-panes.c
405
struct layout_cell *lc;
usr.bin/tmux/window-panes.c
407
lc = wp->saved_layout_cell;
usr.bin/tmux/window-panes.c
408
if (lc == NULL)
usr.bin/tmux/window-panes.c
409
lc = wp->layout_cell;
usr.bin/tmux/window-panes.c
410
if (lc == NULL || (~lc->flags & LAYOUT_CELL_FLOATING))
usr.bin/tmux/window-panes.c
413
if (lc->g.xoff == 0)
usr.bin/tmux/window-panes.c
416
*xp = window_panes_map_x(lc->g.xoff - 1, osx, dsx);
usr.bin/tmux/window-panes.c
417
if (lc->g.yoff == 0)
usr.bin/tmux/window-panes.c
420
*yp = window_panes_map_y(lc->g.yoff - 1, osy, dsy);
usr.bin/tmux/window-panes.c
421
*x2p = window_panes_map_x(lc->g.xoff + lc->g.sx, osx, dsx);
usr.bin/tmux/window-panes.c
422
*y2p = window_panes_map_y(lc->g.yoff + lc->g.sy, osy, dsy);
usr.bin/tmux/window-panes.c
507
window_panes_mark_border_joins_cell(u_char *map, struct layout_cell *lc,
usr.bin/tmux/window-panes.c
513
if (lc->type == LAYOUT_WINDOWPANE)
usr.bin/tmux/window-panes.c
516
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
usr.bin/tmux/window-panes.c
525
if (lc->type == LAYOUT_LEFTRIGHT) {
usr.bin/tmux/window-panes.c
528
y = window_panes_map_y(lc->g.yoff, osy, dsy);
usr.bin/tmux/window-panes.c
529
y2 = window_panes_map_y(lc->g.yoff + lc->g.sy, osy,
usr.bin/tmux/window-panes.c
550
x = window_panes_map_x(lc->g.xoff, osx, dsx);
usr.bin/tmux/window-panes.c
551
x2 = window_panes_map_x(lc->g.xoff + lc->g.sx, osx,
usr.bin/tmux/window-panes.c
579
struct layout_cell *lc, const struct grid_cell *gc, u_int osx, u_int osy,
usr.bin/tmux/window-panes.c
591
window_panes_mark_borders_cell(map, lc, osx, osy, dsx, dsy);
usr.bin/tmux/window-panes.c
592
window_panes_mark_pane_status_borders(map, w, lc, osx, osy, dsx,
usr.bin/tmux/window-panes.c
594
window_panes_mark_border_joins_cell(map, lc, osx, osy, dsx, dsy);
usr.bin/tmux/window.c
2805
struct layout_cell *lc = wp->layout_cell;
usr.bin/tmux/window.c
2807
if (lc == NULL || (lc->flags & LAYOUT_CELL_FLOATING) == 0)
usr.sbin/acme-client/netproc.c
418
long lc;
usr.sbin/acme-client/netproc.c
436
else if ((lc = sreq(c, p->newaccount, 0, req, &c->kid)) < 0)
usr.sbin/acme-client/netproc.c
438
else if (lc == 400) {
usr.sbin/acme-client/netproc.c
450
} else if (lc != 200 && lc != 201)
usr.sbin/acme-client/netproc.c
451
warnx("%s: bad HTTP: %ld", p->newaccount, lc);
usr.sbin/acme-client/netproc.c
480
long lc;
usr.sbin/acme-client/netproc.c
484
else if ((lc = sreq(c, p->newaccount, 0, req, &c->kid)) < 0)
usr.sbin/acme-client/netproc.c
486
else if (lc != 200 && lc != 400)
usr.sbin/acme-client/netproc.c
487
warnx("%s: bad HTTP: %ld", p->newaccount, lc);
usr.sbin/acme-client/netproc.c
490
else if (lc == 400)
usr.sbin/acme-client/netproc.c
519
long lc;
usr.sbin/acme-client/netproc.c
523
else if ((lc = sreq(c, p->neworder, 1, req, &order->uri)) < 0)
usr.sbin/acme-client/netproc.c
525
else if (lc != 201)
usr.sbin/acme-client/netproc.c
526
warnx("%s: bad HTTP: %ld", p->neworder, lc);
usr.sbin/acme-client/netproc.c
552
long lc;
usr.sbin/acme-client/netproc.c
554
if ((lc = sreq(c, order->uri, 1, "", NULL)) < 0)
usr.sbin/acme-client/netproc.c
556
else if (lc != 200)
usr.sbin/acme-client/netproc.c
557
warnx("%s: bad HTTP: %ld", order->uri, lc);
usr.sbin/acme-client/netproc.c
581
long lc;
usr.sbin/acme-client/netproc.c
586
if ((lc = sreq(c, auth, 1, "", NULL)) < 0)
usr.sbin/acme-client/netproc.c
588
else if (lc != 200)
usr.sbin/acme-client/netproc.c
589
warnx("%s: bad HTTP: %ld", auth, lc);
usr.sbin/acme-client/netproc.c
610
long lc;
usr.sbin/acme-client/netproc.c
614
if ((lc = sreq(c, chng->uri, 1, "{}", NULL)) < 0)
usr.sbin/acme-client/netproc.c
616
else if (lc != 200 && lc != 201 && lc != 202)
usr.sbin/acme-client/netproc.c
617
warnx("%s: bad HTTP: %ld", chng->uri, lc);
usr.sbin/acme-client/netproc.c
634
long lc;
usr.sbin/acme-client/netproc.c
640
else if ((lc = sreq(c, uri, 1, req, NULL)) < 0)
usr.sbin/acme-client/netproc.c
642
else if (lc != 200)
usr.sbin/acme-client/netproc.c
643
warnx("%s: bad HTTP: %ld", uri, lc);
usr.sbin/acme-client/netproc.c
662
long lc;
usr.sbin/acme-client/netproc.c
666
if ((lc = sreq(c, uri, 1, "", NULL)) < 0)
usr.sbin/acme-client/netproc.c
668
else if (lc != 200)
usr.sbin/acme-client/netproc.c
669
warnx("%s: bad HTTP: %ld", uri, lc);
usr.sbin/acme-client/netproc.c
686
long lc = 0;
usr.sbin/acme-client/netproc.c
692
else if ((lc = sreq(c, addr, 1, req, NULL)) < 0)
usr.sbin/acme-client/netproc.c
694
else if (lc != 200 && lc != 201 && lc != 409)
usr.sbin/acme-client/netproc.c
695
warnx("%s: bad HTTP: %ld", addr, lc);
usr.sbin/acme-client/netproc.c
699
if (lc == 409)
usr.sbin/acme-client/netproc.c
715
long lc;
usr.sbin/acme-client/netproc.c
720
if ((lc = nreq(c, addr)) < 0)
usr.sbin/acme-client/netproc.c
722
else if (lc != 200 && lc != 201)
usr.sbin/acme-client/netproc.c
723
warnx("%s: bad HTTP: %ld", addr, lc);
usr.sbin/authpf/authpf.c
143
if ((lc = login_getclass(pw->pw_class)) != NULL)
usr.sbin/authpf/authpf.c
144
shell = login_getcapstr(lc, "shell", pw->pw_shell,
usr.sbin/authpf/authpf.c
149
login_close(lc);
usr.sbin/authpf/authpf.c
92
login_cap_t *lc;
usr.sbin/chroot/chroot.c
112
if (lc != NULL) {
usr.sbin/chroot/chroot.c
113
if (setusercontext(lc, pwd, pwd->pw_uid, flags) == -1)
usr.sbin/chroot/chroot.c
54
login_cap_t *lc;
usr.sbin/chroot/chroot.c
61
lc = NULL;
usr.sbin/chroot/chroot.c
90
if ((lc = login_getclass(pwd->pw_class)) == NULL)
usr.sbin/cron/atrun.c
327
login_cap_t *lc;
usr.sbin/cron/atrun.c
483
if ((lc = login_getclass(pw->pw_class)) == NULL) {
usr.sbin/cron/atrun.c
491
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETALL)) {
usr.sbin/cron/atrun.c
506
if (auth_approval(as, lc, pw->pw_name, "cron") <= 0) {
usr.sbin/cron/atrun.c
513
login_close(lc);
usr.sbin/cron/do_command.c
208
if ((lc = login_getclass(e->pwd->pw_class)) == NULL) {
usr.sbin/cron/do_command.c
215
if (setusercontext(lc, e->pwd, e->pwd->pw_uid, LOGIN_SETALL) == -1) {
usr.sbin/cron/do_command.c
228
if (auth_approval(as, lc, usernm, "cron") <= 0) {
usr.sbin/cron/do_command.c
235
login_close(lc);
usr.sbin/cron/do_command.c
89
login_cap_t *lc;
usr.sbin/ldapd/ldapd.c
307
login_cap_t *lc = NULL;
usr.sbin/ldapd/ldapd.c
317
if ((lc = login_getclass(class)) == NULL) {
usr.sbin/ldapd/ldapd.c
321
if ((style = login_getstyle(lc, style, "auth-ldap")) == NULL) {
usr.sbin/ldapd/ldapd.c
323
login_close(lc);
usr.sbin/ldapd/ldapd.c
328
login_close(lc);
usr.sbin/ldapd/ldapd.c
338
as = auth_verify(as, style, name, lc->lc_class, (char *)NULL);
usr.sbin/ldapd/ldapd.c
339
login_close(lc);
usr.sbin/ldomctl/config.c
1554
struct ldc_channel *lc = &guest->vio[guest->num_vios++];
usr.sbin/ldomctl/config.c
1561
lc->client_endpoint = hvmd_add_endpoint(guest);
usr.sbin/ldomctl/config.c
1562
lc->client_endpoint->tx_ino = 2 * client_channel;
usr.sbin/ldomctl/config.c
1563
lc->client_endpoint->rx_ino = 2 * client_channel + 1;
usr.sbin/ldomctl/config.c
1564
lc->client_endpoint->target_type = LDC_GUEST;
usr.sbin/ldomctl/config.c
1565
lc->client_endpoint->target_guest = primary->gid;
usr.sbin/ldomctl/config.c
1566
lc->client_endpoint->target_channel = server_channel;
usr.sbin/ldomctl/config.c
1567
lc->client_endpoint->channel = client_channel;
usr.sbin/ldomctl/config.c
1569
lc->server_endpoint = hvmd_add_endpoint(primary);
usr.sbin/ldomctl/config.c
1570
lc->server_endpoint->tx_ino = 2 * server_channel;
usr.sbin/ldomctl/config.c
1571
lc->server_endpoint->rx_ino = 2 * server_channel + 1;
usr.sbin/ldomctl/config.c
1572
lc->server_endpoint->target_type = LDC_GUEST;
usr.sbin/ldomctl/config.c
1573
lc->server_endpoint->target_guest = guest->gid;
usr.sbin/ldomctl/config.c
1574
lc->server_endpoint->channel = server_channel;
usr.sbin/ldomctl/config.c
1575
lc->server_endpoint->target_channel = client_channel;
usr.sbin/ldomctl/config.c
1577
return lc;
usr.sbin/ldomctl/config.c
2573
struct ldc_channel *lc;
usr.sbin/ldomctl/config.c
2579
lc = hvmd_add_vio(guest);
usr.sbin/ldomctl/config.c
2581
lc->server_endpoint->channel);
usr.sbin/ldomctl/config.c
2582
guest_add_vdc_port(guest, NULL, id, 0, lc->client_endpoint->channel);
usr.sbin/ldomctl/config.c
2601
struct ldc_channel *lc;
usr.sbin/ldomctl/config.c
2609
lc = hvmd_add_vio(guest);
usr.sbin/ldomctl/config.c
2610
guest_add_vsw_port(primary, NULL, id, lc->server_endpoint->channel);
usr.sbin/ldomctl/config.c
2614
lc->client_endpoint->channel);
usr.sbin/ldomctl/mdstore.c
180
mdstore_start(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomctl/mdstore.c
190
ds_send_msg(lc, &mm, sizeof(mm));
usr.sbin/ldomctl/mdstore.c
194
mdstore_start_v2(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomctl/mdstore.c
197
mdstore_start(lc, svc_handle);
usr.sbin/ldomctl/mdstore.c
201
mdstore_start_v3(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomctl/mdstore.c
204
mdstore_start(lc, svc_handle);
usr.sbin/ldomctl/mdstore.c
208
mdstore_rx_data(struct ldc_conn *lc, uint64_t svc_handle, void *data,
usr.sbin/ldomctl/mdstore.c
266
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/mdstore.c
292
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/mdstore.c
320
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/mdstore.c
369
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/mdstore.c
395
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/mdstore.c
424
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/mdstore.c
453
ds_send_msg(&dc->lc, mr, len);
usr.sbin/ldomctl/pri.c
65
pri_start(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomctl/pri.c
75
ds_send_msg(lc, &pm, sizeof(pm));
usr.sbin/ldomctl/pri.c
82
pri_rx_data(struct ldc_conn *lc, uint64_t svc_handle, void *data, size_t len)
usr.sbin/ldomctl/pri.c
96
ds_receive_msg(lc, pri_buf + len, pri_len - len);
usr.sbin/ldomd/ds.c
103
ldc_reset(lc);
usr.sbin/ldomd/ds.c
108
ldc_reset(lc);
usr.sbin/ldomd/ds.c
114
ldc_rx_ctrl_rts(struct ldc_conn *lc, struct ldc_pkt *lp)
usr.sbin/ldomd/ds.c
118
if (lc->lc_state != LDC_RCV_VERS) {
usr.sbin/ldomd/ds.c
120
lc->lc_state));
usr.sbin/ldomd/ds.c
121
ldc_reset(lc);
usr.sbin/ldomd/ds.c
126
ldc_reset(lc);
usr.sbin/ldomd/ds.c
129
ldc_send_rtr(lc);
usr.sbin/ldomd/ds.c
134
ldc_reset(lc);
usr.sbin/ldomd/ds.c
139
ldc_reset(lc);
usr.sbin/ldomd/ds.c
144
ldc_reset(lc);
usr.sbin/ldomd/ds.c
150
ldc_rx_ctrl_rtr(struct ldc_conn *lc, struct ldc_pkt *lp)
usr.sbin/ldomd/ds.c
154
if (lc->lc_state != LDC_SND_RTS) {
usr.sbin/ldomd/ds.c
156
lc->lc_state));
usr.sbin/ldomd/ds.c
157
ldc_reset(lc);
usr.sbin/ldomd/ds.c
162
ldc_reset(lc);
usr.sbin/ldomd/ds.c
165
ldc_send_rdx(lc);
usr.sbin/ldomd/ds.c
167
lc->lc_start(lc);
usr.sbin/ldomd/ds.c
173
ldc_reset(lc);
usr.sbin/ldomd/ds.c
178
ldc_reset(lc);
usr.sbin/ldomd/ds.c
183
ldc_reset(lc);
usr.sbin/ldomd/ds.c
189
ldc_rx_ctrl_rdx(struct ldc_conn *lc, struct ldc_pkt *lp)
usr.sbin/ldomd/ds.c
193
if (lc->lc_state != LDC_SND_RTR) {
usr.sbin/ldomd/ds.c
195
lc->lc_state));
usr.sbin/ldomd/ds.c
196
ldc_reset(lc);
usr.sbin/ldomd/ds.c
201
lc->lc_start(lc);
usr.sbin/ldomd/ds.c
207
ldc_reset(lc);
usr.sbin/ldomd/ds.c
212
ldc_reset(lc);
usr.sbin/ldomd/ds.c
217
ldc_reset(lc);
usr.sbin/ldomd/ds.c
223
ldc_rx_data(struct ldc_conn *lc, struct ldc_pkt *lp)
usr.sbin/ldomd/ds.c
229
ldc_reset(lc);
usr.sbin/ldomd/ds.c
233
if (lc->lc_state != LDC_SND_RTR &&
usr.sbin/ldomd/ds.c
234
lc->lc_state != LDC_SND_RDX) {
usr.sbin/ldomd/ds.c
235
DPRINTF(("Spurious DATA/INFO: state %d\n", lc->lc_state));
usr.sbin/ldomd/ds.c
236
ldc_reset(lc);
usr.sbin/ldomd/ds.c
248
ds_service[i].ds_start(lc, ds_service[i].ds_svc_handle);
usr.sbin/ldomd/ds.c
257
lc->lc_len = (lp->env & LDC_LEN_MASK);
usr.sbin/ldomd/ds.c
258
memcpy((uint8_t *)lc->lc_msg, &lp->data, lc->lc_len);
usr.sbin/ldomd/ds.c
261
if (lc->lc_len + len > sizeof(lc->lc_msg)) {
usr.sbin/ldomd/ds.c
263
ldc_reset(lc);
usr.sbin/ldomd/ds.c
266
memcpy((uint8_t *)lc->lc_msg + lc->lc_len, &lp->data, len);
usr.sbin/ldomd/ds.c
267
lc->lc_len += len;
usr.sbin/ldomd/ds.c
271
ldc_ack(lc, lp->seqid);
usr.sbin/ldomd/ds.c
272
lc->lc_rx_data(lc, lc->lc_msg, lc->lc_len);
usr.sbin/ldomd/ds.c
277
ldc_send_vers(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
289
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
293
lc->lc_state = LDC_SND_VERS;
usr.sbin/ldomd/ds.c
297
ldc_send_ack(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
309
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
313
lc->lc_state = LDC_RCV_VERS;
usr.sbin/ldomd/ds.c
317
ldc_send_nack(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
329
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
333
lc->lc_state = 0;
usr.sbin/ldomd/ds.c
337
ldc_send_rts(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
347
lp.seqid = lc->lc_tx_seqid++;
usr.sbin/ldomd/ds.c
349
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
353
lc->lc_state = LDC_SND_RTS;
usr.sbin/ldomd/ds.c
357
ldc_send_rtr(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
367
lp.seqid = lc->lc_tx_seqid++;
usr.sbin/ldomd/ds.c
369
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
373
lc->lc_state = LDC_SND_RTR;
usr.sbin/ldomd/ds.c
377
ldc_send_rdx(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
387
lp.seqid = lc->lc_tx_seqid++;
usr.sbin/ldomd/ds.c
389
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
393
lc->lc_state = LDC_SND_RDX;
usr.sbin/ldomd/ds.c
397
ldc_reset(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
399
lc->lc_tx_seqid = 0;
usr.sbin/ldomd/ds.c
400
lc->lc_state = 0;
usr.sbin/ldomd/ds.c
402
lc->lc_reset(lc);
usr.sbin/ldomd/ds.c
407
ldc_ack(struct ldc_conn *lc, uint32_t ackid)
usr.sbin/ldomd/ds.c
415
lp.seqid = lc->lc_tx_seqid++;
usr.sbin/ldomd/ds.c
417
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
423
ds_rx_msg(struct ldc_conn *lc, void *data, size_t len)
usr.sbin/ldomd/ds.c
425
struct ds_conn *dc = lc->lc_cookie;
usr.sbin/ldomd/ds.c
436
ldc_reset(lc);
usr.sbin/ldomd/ds.c
439
ds_init_ack(lc);
usr.sbin/ldomd/ds.c
44
ldc_rx_ctrl(struct ldc_conn *lc, struct ldc_pkt *lp)
usr.sbin/ldomd/ds.c
455
dcs->ackid = lc->lc_tx_seqid;
usr.sbin/ldomd/ds.c
456
ds_reg_ack(lc, dcs->svc_handle,
usr.sbin/ldomd/ds.c
458
dcs->service->ds_start(lc, dcs->svc_handle);
usr.sbin/ldomd/ds.c
469
ds_reg_nack(lc, dr->svc_handle, major);
usr.sbin/ldomd/ds.c
478
ds_unreg_ack(lc, du->svc_handle);
usr.sbin/ldomd/ds.c
48
ldc_rx_ctrl_vers(lc, lp);
usr.sbin/ldomd/ds.c
490
dcs->service->ds_rx_data(lc, dd->svc_handle,
usr.sbin/ldomd/ds.c
498
ldc_reset(lc);
usr.sbin/ldomd/ds.c
504
ds_init_ack(struct ldc_conn *lc)
usr.sbin/ldomd/ds.c
513
ds_send_msg(lc, &da, sizeof(da));
usr.sbin/ldomd/ds.c
517
ds_reg_ack(struct ldc_conn *lc, uint64_t svc_handle, uint16_t minor)
usr.sbin/ldomd/ds.c
52
ldc_rx_ctrl_rts(lc, lp);
usr.sbin/ldomd/ds.c
527
ds_send_msg(lc, &da, sizeof(da));
usr.sbin/ldomd/ds.c
531
ds_reg_nack(struct ldc_conn *lc, uint64_t svc_handle, uint16_t major)
usr.sbin/ldomd/ds.c
542
ds_send_msg(lc, &dn, sizeof(dn));
usr.sbin/ldomd/ds.c
546
ds_unreg_ack(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomd/ds.c
555
ds_send_msg(lc, &du, sizeof(du));
usr.sbin/ldomd/ds.c
559
ds_unreg_nack(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomd/ds.c
56
ldc_rx_ctrl_rtr(lc, lp);
usr.sbin/ldomd/ds.c
568
ds_send_msg(lc, &du, sizeof(du));
usr.sbin/ldomd/ds.c
572
ds_receive_msg(struct ldc_conn *lc, void *buf, size_t len)
usr.sbin/ldomd/ds.c
580
nbytes = read(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
586
ldc_reset(lc);
usr.sbin/ldomd/ds.c
591
ldc_reset(lc);
usr.sbin/ldomd/ds.c
60
ldc_rx_ctrl_rdx(lc, lp);
usr.sbin/ldomd/ds.c
600
ldc_ack(lc, lp.seqid);
usr.sbin/ldomd/ds.c
607
ldc_send_msg(struct ldc_conn *lc, void *buf, size_t len)
usr.sbin/ldomd/ds.c
622
lp.seqid = lc->lc_tx_seqid++;
usr.sbin/ldomd/ds.c
625
nbytes = write(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
634
ds_send_msg(struct ldc_conn *lc, void *buf, size_t len)
usr.sbin/ldomd/ds.c
641
ldc_send_msg(lc, p, min(len, LDC_MSG_MAX));
usr.sbin/ldomd/ds.c
647
nbytes = read(lc->lc_fd, &lp, sizeof(lp));
usr.sbin/ldomd/ds.c
65
ldc_reset(lc);
usr.sbin/ldomd/ds.c
680
memset(&dc->lc, 0, sizeof(dc->lc));
usr.sbin/ldomd/ds.c
681
dc->lc.lc_fd = dc->fd;
usr.sbin/ldomd/ds.c
682
dc->lc.lc_cookie = dc;
usr.sbin/ldomd/ds.c
683
dc->lc.lc_rx_data = ds_rx_msg;
usr.sbin/ldomd/ds.c
71
ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp)
usr.sbin/ldomd/ds.c
710
ldc_reset(&dc->lc);
usr.sbin/ldomd/ds.c
716
ldc_rx_ctrl(&dc->lc, &lp);
usr.sbin/ldomd/ds.c
719
ldc_rx_data(&dc->lc, &lp);
usr.sbin/ldomd/ds.c
724
ldc_reset(&dc->lc);
usr.sbin/ldomd/ds.c
77
if (lc->lc_state == LDC_RCV_VERS) {
usr.sbin/ldomd/ds.c
79
lc->lc_state));
usr.sbin/ldomd/ds.c
85
ldc_send_ack(lc);
usr.sbin/ldomd/ds.c
87
ldc_send_nack(lc);
usr.sbin/ldomd/ds.c
91
if (lc->lc_state != LDC_SND_VERS) {
usr.sbin/ldomd/ds.c
93
lc->lc_state));
usr.sbin/ldomd/ds.c
94
ldc_reset(lc);
usr.sbin/ldomd/ds.c
98
ldc_send_rts(lc);
usr.sbin/ldomd/ds.h
207
void ds_receive_msg(struct ldc_conn *lc, void *, size_t);
usr.sbin/ldomd/ds.h
208
void ds_send_msg(struct ldc_conn *lc, void *, size_t);
usr.sbin/ldomd/ds.h
222
struct ldc_conn lc;
usr.sbin/ldomd/var-config.c
116
var_config_start(struct ldc_conn *lc, uint64_t svc_handle)
usr.sbin/ldomd/var-config.c
121
var_config_rx_data(struct ldc_conn *lc, uint64_t svc_handle, void *data,
usr.sbin/ldomd/var-config.c
124
struct ds_conn *dc = lc->lc_cookie;
usr.sbin/ldomd/var-config.c
136
ds_send_msg(lc, &vx, sizeof(vx));
usr.sbin/ldomd/var-config.c
144
ds_send_msg(lc, &vx, sizeof(vx));
usr.sbin/unbound/sldns/parse.c
289
int c, lc;
usr.sbin/unbound/sldns/parse.c
310
lc = 0;
usr.sbin/unbound/sldns/parse.c
318
if (c == '(' && lc != '\\' && !quoted) {
usr.sbin/unbound/sldns/parse.c
324
lc = c;
usr.sbin/unbound/sldns/parse.c
328
if (c == ')' && lc != '\\' && !quoted) {
usr.sbin/unbound/sldns/parse.c
334
lc = c;
usr.sbin/unbound/sldns/parse.c
346
if (lc != '\\') {
usr.sbin/unbound/sldns/parse.c
350
if (c == '"' && com == 0 && lc != '\\') {
usr.sbin/unbound/sldns/parse.c
358
lc = c;
usr.sbin/unbound/sldns/parse.c
364
lc = c;
usr.sbin/unbound/sldns/parse.c
379
lc = c;
usr.sbin/unbound/sldns/parse.c
384
if(skipw && i==0 && !com && !quoted && lc != '\\') {
usr.sbin/unbound/sldns/parse.c
386
lc = c;
usr.sbin/unbound/sldns/parse.c
394
if (c == *d && lc != '\\' && (p == 0 || par)) {
usr.sbin/unbound/sldns/parse.c
406
if (c == '\\' && lc == '\\') {
usr.sbin/unbound/sldns/parse.c
407
lc = 0;
usr.sbin/unbound/sldns/parse.c
409
lc = c;
usr.sbin/user/user.c
738
login_cap_t *lc;
usr.sbin/user/user.c
740
if ((lc = login_getclass(class)) != NULL)
usr.sbin/user/user.c
741
login_close(lc);
usr.sbin/user/user.c
742
return lc != NULL;