/src/sys/kern/ |
subr_localcount.c | 64 * localcount_init(lc) 70 * when done with lc. 73 localcount_init(struct localcount *lc) 76 lc->lc_totalp = NULL; 77 lc->lc_percpu = percpu_alloc(sizeof(int64_t)); 81 * localcount_drain(lc, cv, interlock) 83 * Wait for all acquired references to lc to drain. Caller must 86 * same as are passed to localcount_release for this lc. 93 * The localcount object lc may be used only with localcount_fini 98 localcount_drain(struct localcount *lc, kcondvar_t *cv, kmutex_t *interlock 161 struct localcount *lc = cookie0; local in function:localcount_xc [all...] |
kern_module_hook.c | 66 module_hook_set(bool *hooked, struct localcount *lc) 72 localcount_init(lc); 82 module_hook_unset(bool *hooked, struct localcount *lc) 98 localcount_drain(lc, &module_hook.cv, &module_hook.mtx); 102 localcount_fini(lc); 106 module_hook_tryenter(bool *hooked, struct localcount *lc) 114 localcount_acquire(lc); 121 module_hook_exit(struct localcount *lc) 124 localcount_release(lc, &module_hook.cv, &module_hook.mtx);
|
/src/sys/arch/sparc64/dev/ |
ldc.c | 47 ldc_rx_ctrl(struct ldc_conn *lc, struct ldc_pkt *lp) 51 ldc_rx_ctrl_vers(lc, lp); 55 ldc_rx_ctrl_rts(lc, lp); 59 ldc_rx_ctrl_rtr(lc, lp); 63 ldc_rx_ctrl_rdx(lc, lp); 68 ldc_reset(lc); 74 ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp) 81 ldc_send_ack(lc); 90 if (lc->lc_state != LDC_SND_VERS) { 92 lc->lc_state, lp->major, lp->minor)) [all...] |
lom.c | 470 lom_queue_cmd(struct lom_softc *sc, struct lom_cmd *lc) 473 return lom1_queue_cmd(sc, lc); 475 return lom2_queue_cmd(sc, lc); 479 lom_dequeue_cmd(struct lom_softc *sc, struct lom_cmd *lc) 485 if (lcp == lc) { 486 TAILQ_REMOVE(&sc->sc_queue, lc, lc_next); 496 struct lom_cmd lc; local in function:lom1_read 502 lc.lc_cmd = reg; 503 lc.lc_data = 0xff; 504 lom1_queue_cmd(sc, &lc); 518 struct lom_cmd lc; local in function:lom1_write 634 struct lom_cmd *lc; local in function:lom1_process_queue_locked 692 struct lom_cmd lc; local in function:lom2_read 746 struct lom_cmd lc; local in function:lom2_write 857 struct lom_cmd *lc; local in function:lom2_intr [all...] |
vdsk.c | 248 struct ldc_conn *lc; local in function:vdsk_attach 277 lc = &sc->sc_lc; 278 lc->lc_id = ca->ca_id; 279 lc->lc_sc = sc; 280 lc->lc_reset = vdsk_ldc_reset; 281 lc->lc_start = vdsk_ldc_start; 282 lc->lc_rx_data = vdsk_rx_data; 285 lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VDSK_TX_ENTRIES); 287 lc->lc_txq = ldc_queue_alloc(VDSK_TX_ENTRIES); 290 lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VDSK_RX_ENTRIES) 449 struct ldc_conn *lc = &sc->sc_lc; local in function:vdsk_tx_intr 475 struct ldc_conn *lc = &sc->sc_lc; local in function:vdsk_rx_intr 788 struct ldc_conn *lc = &sc->sc_lc; local in function:vdsk_rx_vio_dring_data 817 struct ldc_conn *lc = &sc->sc_lc; local in function:vdsk_sendmsg [all...] |
vnet.c | 247 struct ldc_conn *lc; local in function:vnet_attach 274 lc = &sc->sc_lc; 275 lc->lc_id = ca->ca_id; 276 lc->lc_sc = sc; 277 lc->lc_reset = vnet_ldc_reset; 278 lc->lc_start = vnet_ldc_start; 279 lc->lc_rx_data = vio_rx_data; 285 lc->lc_txq = ldc_queue_alloc(VNET_TX_ENTRIES); 286 if (lc->lc_txq == NULL) { 291 lc->lc_rxq = ldc_queue_alloc(VNET_RX_ENTRIES) 340 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_tx_intr 366 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_rx_intr 759 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_rx_vio_desc_data 841 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_rx_vio_dring_data 1010 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_sendmsg 1125 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_start 1463 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_init 1531 struct ldc_conn *lc = &sc->sc_lc; local in function:vnet_stop [all...] |
/src/sys/sys/ |
module_hook.h | 53 struct localcount lc; \ 72 module_hook_set(&(hook).hooked, &(hook).lc); \ 78 module_hook_unset(&(hook).hooked, &(hook).lc); \ 84 if (module_hook_tryenter(&(hook).hooked, &(hook).lc)) { \ 86 module_hook_exit(&(hook).lc); \ 94 if (module_hook_tryenter(&(hook).hooked, &(hook).lc)) { \ 96 module_hook_exit(&(hook).lc); \
|
/src/tests/lib/libc/sys/ |
t_lwp_ctl.c | 49 lwpctl_t *lc; local in function:ATF_TC_BODY 53 ATF_REQUIRE(_lwp_ctl(LWPCTL_FEATURE_PCTR, &lc) == 0); 56 ctr1 = lc->lc_pctr; 63 ctr2 = lc->lc_pctr;
|
/src/lib/libutil/ |
login_cap.c | 75 login_cap_t *lc; local in function:login_getclass 87 if ((lc = malloc(sizeof(login_cap_t))) == NULL) { 92 lc->lc_cap = 0; 93 lc->lc_style = 0; 98 if ((lc->lc_class = strdup(class)) == NULL) { 100 free(lc); 110 return(lc); 112 if ((res = cgetent(&lc->lc_cap, classfiles, lc->lc_class)) != 0) { 113 lc->lc_cap = 0 549 login_cap_t *lc; local in function:setclasscontext [all...] |
/src/lib/libc/stdlib/ |
strfmon.c | 118 struct lconv *lc; /* pointer to lconv structure */ local in function:vstrfmon_l 139 lc = localeconv_l(loc); 249 currency_symbol = strdup(lc->int_curr_symbol); 256 currency_symbol = strdup(lc->currency_symbol); 273 currency_symbol, lc) - 274 __calc_left_pad(flags, currency_symbol, lc); 282 left_prec, right_prec, pad_char, lc, loc); 289 &sign_posn, &signstr, lc); 434 char *sign_posn, const char **signstr, struct lconv *lc) 438 *cs_precedes = lc->int_n_cs_precedes [all...] |
/src/lib/libpam/modules/pam_nologin/ |
pam_nologin.c | 72 login_cap_t *lc; local in function:pam_sm_authenticate 103 lc = login_getpwclass(pwd); 104 ignorenologin = login_getcapbool(lc, "ignorenologin", rootlogin); 105 nologin = login_getcapstr(lc, "nologin", nologin_def, nologin_def); 106 login_close(lc); 107 lc = NULL;
|
/src/lib/libcurses/ |
chgat.c | 62 __LDATA *lc; local in function:mvwchgat 81 lc = &lp->line[x]; 93 lc->attr = (lc->attr & ~WA_ATTRIBUTES) | attr; 95 lc->attr = attr; 97 ++lc;
|
/src/lib/libutil/compat/ |
compat_login_cap.c | 64 setusercontext(login_cap_t *lc, struct passwd50 *pw50, uid_t uid, u_int flags) 69 return __setusercontext50(lc, &pw, uid, flags);
|
/src/common/lib/libc/arch/ia64/string/ |
bzero.S | 42 mov r14=ar.lc // save ar.lc 48 mov ar.lc=r15 ;; 53 mov ar.lc=r14 // done 78 mov ar.lc=r15 ;; 85 mov ar.lc=r14 // done
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_procmaps_mac.cc | 182 const char *lc = layout_data.current_load_cmd_addr; local in function:__sanitizer::NextSegmentLoad 183 layout_data.current_load_cmd_addr += ((const load_command *)lc)->cmdsize; 184 if (((const load_command *)lc)->cmd == kLCSegment) { 185 const SegmentCommand* sc = (const SegmentCommand *)lc; 209 (const char *)lc + sizeof(SegmentCommand); 261 static const load_command *NextCommand(const load_command *lc) { 262 return (const load_command *)((const char *)lc + lc->cmdsize); 266 for (const load_command *lc = first_lc; lc->cmd != 0; lc = NextCommand(lc)) local in function:__sanitizer::FindUUID 277 for (const load_command *lc = first_lc; lc->cmd != 0; lc = NextCommand(lc)) { local in function:__sanitizer::IsModuleInstrumented [all...] |
/src/tests/lib/libc/locale/ |
t_strfmon.c | 99 struct lconv *lc; local in function:ATF_TC_BODY 105 lc = localeconv(); 107 ts = lc->mon_thousands_sep; 109 ts = lc->thousands_sep; 186 struct lconv *lc; local in function:ATF_TC_BODY 192 lc = localeconv(); 193 lc->n_cs_precedes = 0; 197 lc->n_sep_by_space = i; 200 lc->n_sign_posn = j; 231 struct lconv *lc; local in function:ATF_TC_BODY [all...] |
/src/usr.bin/locale/ |
locale.c | 526 struct lconv *lc; local in function:kwval_lconv 530 lc = localeconv(); 533 rval = lc->grouping; 536 rval = lc->int_curr_symbol; 539 rval = lc->currency_symbol; 542 rval = lc->mon_decimal_point; 545 rval = lc->mon_thousands_sep; 548 rval = lc->mon_grouping; 551 rval = lc->positive_sign; 554 rval = lc->negative_sign [all...] |
/src/usr.bin/newgrp/ |
newgrp.c | 71 login_cap_t *lc; local in function:main 81 if ((lc = login_getclass(pwd->pw_class)) == NULL) 112 addgroup(lc, *argv, pwd, getuid(), "Password:"); 128 if (setusercontext(lc, pwd, uid, flags) == -1) 131 login_close(lc); 168 if (setusercontext(lc, pwd, uid, LOGIN_SETENV | LOGIN_SETPATH) == -1) 170 login_close(lc);
|
/src/usr.bin/login/ |
login_pam.c | 116 login_cap_t *lc = NULL; local in function:main 227 if ((lc = login_getclass(NULL)) != NULL) { 228 login_retries = (int)login_getcapnum(lc, "login-retries", 230 login_backoff = (int)login_getcapnum(lc, "login-backoff", 232 login_close(lc); 233 lc = NULL; 301 lc = login_getclass(pwd ? pwd->pw_class : NULL); 326 * username, pwd, and lc. 340 lc = login_getpwclass(pwd); 411 quietlog = login_getcapbool(lc, "hushlogin", 0) [all...] |
login.c | 165 login_cap_t *lc = NULL; local in function:main 288 if ((lc = login_getclass(NULL)) != NULL) { 289 login_retries = (int)login_getcapnum(lc, "login-retries", 291 login_backoff = (int)login_getcapnum(lc, "login-backoff", 293 login_close(lc); 294 lc = NULL; 356 lc = login_getclass(pwd ? pwd->pw_class : NULL); 483 if (!login_getcapbool(lc, "ignorenologin", rootlogin)) 484 checknologin(login_getcapstr(lc, "nologin", NULL, NULL)); 491 quietlog = login_getcapbool(lc, "hushlogin", 0) [all...] |
/src/usr.bin/passwd/ |
local_passwd.c | 142 login_cap_t *lc; local in function:pwlocal_process 188 if((lc = login_getclass(pw->pw_class)) != NULL) { 189 min_pw_len = (int) login_getcapnum(lc, "minpasswordlen", 0, 0); 190 pw_expiry = (int) login_getcaptime(lc, "passwordtime", 0, 0); 191 login_close(lc); 276 login_cap_t *lc; local in function:local_chpw 297 if((lc = login_getclass(pw->pw_class))) { 298 min_pw_len = (int) login_getcapnum(lc, "minpasswordlen", 0, 0); 299 pw_expiry = (int) login_getcaptime(lc, "passwordtime", 0, 0); 300 login_close(lc); [all...] |
/src/tests/lib/libcurses/director/ |
Makefile | 17 LDADD+= -ll -lutil -lc
|
/src/sys/dev/ |
lockstat.c | 172 lscpu_t *lc; local in function:lockstat_init_tables 193 lc = kmem_alloc(sizeof(*lc), KM_SLEEP); 194 lc->lc_overflow = 0; 195 ci->ci_lockstat = lc; 197 SLIST_INIT(&lc->lc_free); 199 LIST_INIT(&lc->lc_hash[i]); 203 SLIST_INSERT_HEAD(&lc->lc_free, lb, lb_chain.slist); 207 SLIST_INSERT_HEAD(&lc->lc_free, lb, lb_chain.slist); 384 lscpu_t *lc; local in function:lockstat_event [all...] |
/src/lib/libpam/modules/pam_unix/ |
pam_unix.c | 87 login_cap_t *lc; local in function:pam_sm_authenticate 118 lc = login_getpwclass(pwd); 120 login_close(lc); 150 login_cap_t *lc; local in function:pam_sm_acct_mgmt 171 lc = login_getpwclass(pwd); 172 if (lc == NULL) { 182 warntime = (time_t)login_getcaptime(lc, "password-warn", 193 login_close(lc); 205 login_close(lc); 214 login_close(lc); 408 login_cap_t *lc; local in function:pam_sm_chauthtok [all...] |
/src/games/mille/ |
print.c | 109 show_card(int y, int x, CARD c, CARD *lc) 111 if (c == *lc) 115 *lc = c;
|