| /src/sys/kern/ |
| uipc_sem.c | 176 ksem_t *ks; local in function:ksem_listener_cb 182 ks = arg1; 183 mode = ks->ks_mode; 185 if ((kauth_cred_geteuid(cred) == ks->ks_uid && (mode & S_IWUSR) != 0) || 186 (kauth_cred_getegid(cred) == ks->ks_gid && (mode & S_IWGRP) != 0) || 290 ksem_t *ks; local in function:ksem_lookup 294 LIST_FOREACH(ks, &ksem_head, ks_entry) { 295 if (strcmp(ks->ks_name, name) == 0) { 296 mutex_enter(&ks->ks_lock); 297 return ks; 401 ksem_t *ks; local in function:ksem_get 443 ksem_t *ks; local in function:ksem_create 561 ksem_t *ks; local in function:do_ksem_init 645 ksem_t *ksnew = NULL, *ks; local in function:do_ksem_open 768 ksem_t *ks; local in function:sys__ksem_close 794 ksem_t *ks = fp->f_ksem; local in function:ksem_read_fop 808 ksem_t *ks = fp->f_ksem; local in function:ksem_stat_fop 838 ksem_t *ks = fp->f_ksem; local in function:ksem_close_fop 864 ksem_t *ks; local in function:sys__ksem_unlink 915 ksem_t *ks; local in function:sys__ksem_post 939 ksem_t *ks; local in function:do_ksem_wait 1023 ksem_t *ks; local in function:sys__ksem_getvalue 1045 ksem_t *ks; local in function:sys__ksem_destroy [all...] |
| kern_ksyms.c | 812 struct ksyms_snapshot *ks; local in function:ksyms_modload 821 ks = ksyms_snapshot; 825 if (ks) 826 ksyms_snapshot_release(ks); 836 struct ksyms_snapshot *ks; local in function:ksyms_modunload 873 ks = ksyms_snapshot; 885 if (ks) 886 ksyms_snapshot_release(ks); 1072 struct ksyms_snapshot *ks; local in function:ksyms_snapshot_alloc 1074 ks = kmem_zalloc(sizeof(*ks), KM_SLEEP) 1203 struct ksyms_snapshot *ks = NULL; local in function:ksymsopen 1308 struct ksyms_snapshot *ks = fp->f_data; local in function:ksymsclose 1319 const struct ksyms_snapshot *ks = fp->f_data; local in function:ksymsread 1369 const struct ksyms_snapshot *ks = fp->f_data; local in function:ksymsstat 1393 const struct ksyms_snapshot *ks = fp->f_data; local in function:ksymsmmap 1421 struct ksyms_snapshot *ks = fp->f_data; local in function:ksymsseek 1468 struct ksyms_snapshot *ks = fp->f_data; local in function:ksymsioctl [all...] |
| sys_process_lwpstatus.c | 146 proc_regio(struct lwp *l, struct uio *uio, size_t ks, ptrace_regrfunc_t r, 154 if (ks > sizeof(buf)) 157 if (uio->uio_offset < 0 || uio->uio_offset > (off_t)ks) 161 kl = ks - uio->uio_offset; 166 error = (*r)(l, buf, &ks); 173 error = (*w)(l, buf, ks);
|
| /src/sys/dev/sun/ |
| kbdsun.c | 113 struct kbd_state *ks; local in function:kbd_sun_open 119 ks = &kbd->k_state; 138 error = tsleep((void *)&ks->kbd_id, PZERO | PCATCH, devopn, 140 if (ks->kbd_id) 144 if (error == EWOULDBLOCK || ks->kbd_id == 0) { /* no response */ 152 ks->kbd_id = KB_SUN2; 156 if (ks->kbd_id >= KB_SUN4) { 157 ks->kbd_layout = 0xff; 166 error = tsleep((void *)&ks->kbd_layout, PZERO | PCATCH, 168 if (ks->kbd_layout != 0xff || error 208 struct kbd_state *ks; local in function:kbd_sun_do_cmd 283 struct kbd_state *ks = &kbd->k_state; local in function:kbd_sun_set_leds1 448 struct kbd_state *ks = &k->k_kbd.k_state; local in function:kbd_sun_was_reset 496 struct kbd_state *ks = &k->k_kbd.k_state; local in function:kbd_sun_new_layout [all...] |
| kbd_xlate.h | 74 extern void kbd_xlate_init(struct kbd_state *ks); 75 extern int kbd_code_to_keysym(struct kbd_state *ks, int c);
|
| kbd.c | 280 struct kbd_state *ks; local in function:kbdioctl 284 ks = &k->k_state; 301 error = kbd_oldkeymap(ks, cmd, (struct okiockey *)data); 308 error = kbd_iockeymap(ks, cmd, (struct kiockeymap *)data); 318 *(int *)data = ks->kbd_id; 326 *(int *)data = ks->kbd_layout; 336 *(char *)data = ks->kbd_leds; 374 kbd_iockeymap(struct kbd_state *ks, u_long cmd, struct kiockeymap *kio) 381 km = ks->kbd_k.k_normal; 384 km = ks->kbd_k.k_shifted 597 struct kbd_state *ks= &k->k_state; local in function:kbd_input_console 662 struct kbd_state *ks = &k->k_state; local in function:kbd_input_keysym 755 struct kbd_state *ks = &k->k_state; local in function:kbd_update_leds [all...] |
| /src/usr.bin/fstat/ |
| misc.c | 175 ksem_t ks; local in function:p_sem 176 if (!KVM_READ(f->f_data, &ks, sizeof(ks))) { 181 "mode=%o, uid=%u, gid=%u", ks.ks_ref, ks.ks_value, ks.ks_waiters, 182 ks.ks_flags, ks.ks_mode, ks.ks_uid, ks.ks_gid) [all...] |
| /src/sys/dev/hyperv/ |
| hvkbd.c | 103 struct keystroke ks; member in struct:hvkbd_keystroke 109 struct keystroke ks; member in struct:hvkbd_keystroke_info 371 hvkbd_keybuf_add_keystroke(struct hvkbd_softc *sc, const struct keystroke *ks) 379 ksi->ks = *ks; 391 struct keystroke ks; local in function:hvkbd_decode 397 ks = ksi->ks; 410 if (ks.info & KS_INFO_UNICODE) 413 *type = (ks.info & KS_INFO_BREAK) 424 struct keystroke ks; local in function:hvkbd_encode 473 const struct hvkbd_keystroke *ks; local in function:hvkbd_intr [all...] |
| /src/sys/crypto/adiantum/ |
| adiantum.h | 39 uint8_t ks[32]; /* XChaCha12 key */ member in struct:adiantum
|
| /src/tests/lib/libdes/ |
| t_des.c | 387 des_key_schedule ks; local in function:cfb_test 389 des_set_key_checked(&cfb_key, ks); 391 des_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), ks, &cfb_tmp, 396 des_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), ks, &cfb_tmp, 408 des_key_schedule ks; local in function:cfb64_test 410 des_set_key_checked(&cfb_key, ks); 413 des_cfb64_encrypt(plain, cfb_buf1, 12, ks, &cfb_tmp, &n, DES_ENCRYPT); 414 des_cfb64_encrypt(&(plain[12]), &(cfb_buf1[12]), sizeof(plain) - 12, ks, 420 des_cfb64_encrypt(cfb_buf1, cfb_buf2, 17, ks, &cfb_tmp, &n, DES_DECRYPT); 422 sizeof(plain) - 17, ks, &cfb_tmp, &n, DES_DECRYPT) 433 des_key_schedule ks; local in function:ede_cfb64_test 469 des_key_schedule ks, ks2, ks3; local in function:ATF_TC_BODY 528 des_key_schedule ks; local in function:ATF_TC_BODY 564 des_key_schedule ks, ks2, ks3; local in function:ATF_TC_BODY 594 des_key_schedule ks; local in function:ATF_TC_BODY 624 des_key_schedule ks; local in function:ATF_TC_BODY 652 des_key_schedule ks, ks2, ks3; local in function:ATF_TC_BODY 692 des_key_schedule ks; local in function:ATF_TC_BODY 722 des_key_schedule ks; local in function:ATF_TC_BODY 765 des_key_schedule ks; local in function:ATF_TC_BODY 813 des_key_schedule ks; local in function:ATF_TC_BODY 847 des_key_schedule ks; local in function:ATF_TC_BODY 881 des_key_schedule ks; local in function:ATF_TC_BODY 937 des_key_schedule ks; local in function:ATF_TC_BODY [all...] |
| /src/sys/arch/x68k/include/ |
| opmreg.h | 47 u_int8_t ks; member in struct:opm_operator
|
| /src/sys/arch/sun3/dev/ |
| kd.c | 453 struct kbd_state *ks = &kdcn_state; local in function:kdcninit 459 ks->kbd_id = KBD_MIN_TYPE; 460 kbd_xlate_init(ks); 475 struct kbd_state *ks = &kdcn_state; local in function:kdcngetc 480 keysym = kbd_code_to_keysym(ks, code); 495 ks->kbd_modbits |= data; 497 ks->kbd_modbits &= ~data; 502 ks->kbd_modbits = 0; 522 struct kbd_state *ks = &kdcn_state; local in function:kdcnpollc 530 ks->kbd_modbits = 0 [all...] |
| /src/sys/arch/sparc64/dev/ |
| kd.c | 467 struct kbd_state *ks; local in function:cons_attach_input 470 kdcn_state = ks = &kds->k_state; 519 struct kbd_state *ks = kdcn_state; 525 ks->kbd_id = KBD_MIN_TYPE; 526 kbd_xlate_init(ks); 542 struct kbd_state *ks = kdcn_state; local in function:kdcngetc 550 keysym = kbd_code_to_keysym(ks, code); 565 ks->kbd_modbits |= data; 567 ks->kbd_modbits &= ~data; 572 ks->kbd_modbits = 0 597 struct kbd_state *ks = kdcn_state; local in function:kdcnpollc [all...] |
| /src/sys/arch/sun2/dev/ |
| kd.c | 513 struct kbd_state *ks; local in function:cons_attach_input 516 kdcn_state = ks = &kds->k_state; 565 struct kbd_state *ks = kdcn_state; 571 ks->kbd_id = KBD_MIN_TYPE; 572 kbd_xlate_init(ks); 588 struct kbd_state *ks = kdcn_state; local in function:kdcngetc 596 keysym = kbd_code_to_keysym(ks, code); 611 ks->kbd_modbits |= data; 613 ks->kbd_modbits &= ~data; 618 ks->kbd_modbits = 0 642 struct kbd_state *ks = kdcn_state; local in function:kdcnpollc [all...] |
| /src/sys/crypto/des/ |
| des.h | 69 } ks; member in struct:des_ks_struct
|
| des_ecb.c | 108 des_key_schedule ks, int enc) 117 des_encrypt1(ll,ks,enc);
|
| des_enc.c | 67 void des_encrypt1(DES_LONG *data, des_key_schedule ks, int enc) 93 s=ks->ks.deslong; 165 void des_encrypt2(DES_LONG *data, des_key_schedule ks, int enc) 189 s=ks->ks.deslong;
|
| /src/sys/miscfs/kernfs/ |
| kernfs_vnops.c | 326 struct kernfs_subdir *ks, *parent; local in function:kernfs_addentry 341 ks = malloc(sizeof(struct kernfs_subdir), 343 SIMPLEQ_INIT(&ks->ks_entries); 344 ks->ks_nentries = 2; /* . and .. */ 345 ks->ks_dirs = 2; 346 ks->ks_parent = pkt ? pkt : &kern_targets[0]; 347 dkt->dkt_kt.kt_data = ks; 504 const struct kernfs_subdir *ks; local in function:kernfs_lookup 547 ks = (struct kernfs_subdir *)kfs->kfs_kt->kt_data; 549 kt = ks->ks_parent 640 struct kernfs_subdir *ks; local in function:kernfs_getattr 906 const struct kernfs_subdir *ks; local in function:kernfs_readdir [all...] |
| /src/usr.bin/xlint/xlint/ |
| xlint.c | 800 const char *ks = getenv("LIBDIR"); local in function:main 801 if (ks == NULL || ks[0] == '\0') 802 ks = PATH_LINTLIB; 803 list_add(&library_search_path, ks);
|
| /src/sys/arch/sparc/dev/ |
| kbd_pckbport.c | 321 struct kbd_state *ks; local in function:kbd_pckbport_open 329 ks = &kbd->k_state; 343 kbd_xlate_init(ks);
|
| /src/etc/ |
| Makefile | 611 ks="$${kernel}$${s}"; \ 612 [ -f $${ks} ] || continue; \ 613 kernels="$${kernels} $${ks}"; \ 614 [ -z "$${newest}" -o $${ks} \ 615 -nt "$${newest}" ] && newest=$${ks}; \ 617 ! -f $${ks}.gdb ] && continue; \ 618 kernels="$${kernels} $${ks}.gdb"; \ 670 ks="$${kernel}$${s}"; \ 671 [ ! -f $${ks} ] && continue; \ 673 [ $${knl_gz} -nt $${ks} ] && continue; [all...] |
| /src/lib/libc/gen/ |
| getnetgrent.c | 209 char *ks; local in function:_local_lookup 216 ks = malloc(len); 217 if (ks == NULL) 220 ks[0] = bywhat; 221 (void)memcpy(&ks[1], name, len - 1); 223 key.data = (u_char *)ks; 227 free(ks);
|
| /src/usr.bin/db/ |
| db.c | 429 char *p, *ks; local in function:db_makekey 434 if ((klen = decode_data(keystr, &ks)) == -1) 438 ks = keystr; 440 key->data = ks; 443 for (p = ks; *p; p++)
|
| /src/sys/arch/news68k/news68k/ |
| romcons.c | 298 romcons_kbdinput(int ks) 306 (*tp->t_linesw->l_rint)(ks, tp);
|
| /src/sys/dev/pci/ |
| if_mcx.c | 8504 struct kstat *ks; local in function:mcx_kstat_attach_ppcnt 8508 ks = kstat_create(DEVNAME(sc), 0, ksp->ksp_name, 0, KSTAT_T_KV, 0); 8509 if (ks == NULL) 8522 ks->ks_softc = sc; 8523 ks->ks_ptr = (void *)ksp; 8524 ks->ks_data = kvs; 8525 ks->ks_datalen = ksp->ksp_n * sizeof(*kvs); 8526 ks->ks_read = mcx_kstat_ppcnt_read; 8528 kstat_install(ks); 8530 return (ks); 8599 struct kstat *ks; local in function:mcx_kstat_attach_tmps 8753 struct kstat *ks; local in function:mcx_kstat_attach_queues [all...] |