/titanic_50/usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/ |
H A D | keyspan_dsd.c | 424 keyspan_port_t *kp; in keyspan_register_cb() local 430 kp = &ksp->ks_ports[port_num]; in keyspan_register_cb() 431 kp->kp_cb = *cb; in keyspan_register_cb() 443 keyspan_port_t *kp; in keyspan_unregister_cb() local 446 kp = &ksp->ks_ports[port_num]; in keyspan_unregister_cb() 447 bzero(&kp->kp_cb, sizeof (kp->kp_cb)); in keyspan_unregister_cb() 457 keyspan_open_hw_port(keyspan_port_t *kp, boolean_t open_pipes) in keyspan_open_hw_port() argument 460 keyspan_state_t *ksp = kp->kp_ksp; in keyspan_open_hw_port() 462 USB_DPRINTF_L4(DPRINT_OPEN, kp->kp_lh, in keyspan_open_hw_port() 463 "keyspan_open_hw_port: [%d]", kp->kp_port_num); in keyspan_open_hw_port() [all …]
|
H A D | keyspan_pipe.c | 49 keyspan_init_one_pipe(keyspan_state_t *ksp, keyspan_port_t *kp, in keyspan_init_one_pipe() argument 65 if (kp == NULL) { in keyspan_init_one_pipe() 70 pipe->pipe_lh = kp->kp_lh; in keyspan_init_one_pipe() 406 keyspan_port_t *kp; in keyspan_fini_pipes() local 410 kp = &ksp->ks_ports[i]; in keyspan_fini_pipes() 411 keyspan_fini_one_pipe(&kp->kp_datain_pipe); in keyspan_fini_pipes() 412 keyspan_fini_one_pipe(&kp->kp_dataout_pipe); in keyspan_fini_pipes() 680 keyspan_port_t *kp; in keyspan_reopen_pipes() local 691 kp = &ksp->ks_ports[i]; in keyspan_reopen_pipes() 692 mutex_enter(&kp->kp_mutex); in keyspan_reopen_pipes() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_kproc.c | 137 kp_addr_to_kpmap(kp_data_t *kp, uintptr_t addr) in kp_addr_to_kpmap() argument 141 for (kpm = kp->kp_map_head; kpm != NULL; kpm = kpm->kpm_next) { in kp_addr_to_kpmap() 151 kp_getauxval(kp_data_t *kp, int type) in kp_getauxval() argument 155 for (auxp = kp->kp_auxv; auxp->a_type != AT_NULL; auxp++) { in kp_getauxval() 167 kp_data_t *kp = data; in kp_add_mapping() local 171 if (kp->kp_map_tail != NULL) in kp_add_mapping() 172 kp->kp_map_tail->kpm_next = kpm; in kp_add_mapping() 174 kp->kp_map_head = kpm; in kp_add_mapping() 176 kp->kp_map_tail = kpm; in kp_add_mapping() 177 kp->kp_num_maps++; in kp_add_mapping() [all …]
|
/titanic_50/usr/src/uts/sun4u/vm/ |
H A D | mach_kpm.c | 270 #define PP2KPMPG(pp, kp) { \ argument 280 kp = &mseg->kpm_pages[inx]; \ 689 kpm_page_t *kp; in sfmmu_kpm_mapin() local 713 PP2KPMPG(pp, kp); in sfmmu_kpm_mapin() 715 kpmp = KPMP_HASH(kp); in sfmmu_kpm_mapin() 724 if (kp->kp_refcnts == 0) { in sfmmu_kpm_mapin() 731 if (kp->kp_refcntc == -1) { in sfmmu_kpm_mapin() 733 sfmmu_kpm_tsbmtl(&kp->kp_refcntc, in sfmmu_kpm_mapin() 736 if (kp->kp_refcnt > 0 && kp->kp_refcntc == 0) in sfmmu_kpm_mapin() 739 ASSERT(kp->kp_refcntc >= 0); in sfmmu_kpm_mapin() [all …]
|
/titanic_50/usr/src/uts/common/sys/ib/mgt/ibmf/ |
H A D | ibmf_kstat.h | 71 ibmf_kstat_t *kp; \ 72 kp = (ibmf_kstat_t *)clientp->ic_kstatp->ks_data; \ 73 kp->xx.value.ui32 += val; \ 78 ibmf_kstat_t *kp; \ 79 kp = (ibmf_kstat_t *)clientp->ic_kstatp->ks_data; \ 80 kp->xx.value.ui32 -= val; \ 85 ibmf_port_kstat_t *kp; \ 86 kp = (ibmf_port_kstat_t *)cip->ci_port_kstatp->ks_data; \ 87 kp->xx.value.ui32 += val; \ 92 ibmf_port_kstat_t *kp; \ [all …]
|
H A D | ibmf_saa_impl.h | 148 ibmf_saa_kstat_t *kp; \ 149 kp = (ibmf_saa_kstat_t *)subnetp->saa_pt_kstatp->ks_data;\ 150 kp->xx.value.ui32 += val; \ 155 ibmf_saa_kstat_t *kp; \ 156 kp = (ibmf_saa_kstat_t *)subnetp->saa_pt_kstatp->ks_data;\ 157 kp->xx.value.ui32 -= val; \
|
/titanic_50/usr/src/cmd/perl/contrib/Sun/Solaris/Kstat/ |
H A D | Kstat.xs | 192 save_cpu_stat(HV *self, kstat_t *kp, int strip_str) in save_cpu_stat() argument 200 PERL_ASSERT(kp->ks_data_size == sizeof (cpu_stat_t)); in save_cpu_stat() 201 statp = (cpu_stat_t *)(kp->ks_data); in save_cpu_stat() 310 save_var(HV *self, kstat_t *kp, int strip_str) in save_var() argument 315 PERL_ASSERT(kp->ks_data_size == sizeof (struct var)); in save_var() 316 varp = (struct var *)(kp->ks_data); in save_var() 340 save_ncstats(HV *self, kstat_t *kp, int strip_str) in save_ncstats() argument 345 PERL_ASSERT(kp->ks_data_size == sizeof (struct ncstats)); in save_ncstats() 346 ncstatsp = (struct ncstats *)(kp->ks_data); in save_ncstats() 363 save_sysinfo(HV *self, kstat_t *kp, int strip_str) in save_sysinfo() argument [all …]
|
/titanic_50/usr/src/cmd/stat/kstat/ |
H A D | kstat.c | 592 kstat_t *kp; in ks_instances_read() local 595 for (kp = kc->kc_chain; kp != NULL; kp = kp->ks_next) { in ks_instances_read() 597 if (strncmp(kp->ks_name, "kstat_", 6) == 0) { in ks_instances_read() 602 if (kp->ks_type == KSTAT_TYPE_RAW) { in ks_instances_read() 603 save_raw = lookup_raw_kstat_fn(kp->ks_module, in ks_instances_read() 604 kp->ks_name); in ks_instances_read() 609 "%d of size %d\n", kp->ks_module, in ks_instances_read() 610 kp->ks_instance, kp->ks_name, in ks_instances_read() 611 kp->ks_ndata, kp->ks_data_size); in ks_instances_read() 625 if (ks_match(kp->ks_module, &selector->ks_module) && in ks_instances_read() [all …]
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | delkey.c | 54 _KEY_MAP *kp, **kpp = cur_term->_keys, **fpp, **dpp; in delkey() local 69 kp = *kpp; in delkey() 71 if (sends && (strcmp(sends, kp->_sends) == 0)) in delkey() 73 if (kp->_keyval == keyval) in delkey() 84 if (kp->_sends == ((char *)kp + sizeof (_KEY_MAP))) in delkey() 85 free(kp); in delkey()
|
H A D | delkeymap.c | 46 _KEY_MAP **kpp, *kp; in delkeymap() local 51 kp = *kpp; in delkeymap() 52 if (kp->_sends == ((char *) (kp + sizeof (_KEY_MAP)))) in delkeymap() 53 free(kp); in delkeymap()
|
H A D | tgetch.c | 191 _KEY_MAP **kp = cur_term->_keys; in _getkey() local 215 if (kp[key]->_sends[0] == *inp) { in _getkey() 218 if (kp[key]->_sends[i] == '\0') in _getkey() 261 if (kp[key]->_sends[i] != inputQ[i]) in _getkey() 266 if (kp[key]->_keyval == KEY_MOUSE) { in _getkey() 302 for (; kp[key]->_sends[i]; i++) in _getkey() 307 _KEY_MAP *savekey = kp[key]; in _getkey() 320 kp[key] = kp[(i = ++(*lorder))]; in _getkey() 325 kp[j--] = kp[i--]; in _getkey() 326 kp[first] = savekey; in _getkey() [all …]
|
/titanic_50/usr/src/cmd/ipcrm/ |
H A D | ipcrm.c | 92 getkey(char *kp) in getkey() argument 97 if ((k = (key_t)strtoul(kp, &tp, 0)) == IPC_PRIVATE || *tp != '\0') { in getkey() 99 kp); in getkey() 161 msggetkey(char *kp) in msggetkey() argument 168 if ((k = getkey(kp)) == 0) in msggetkey() 174 oops("msgget", kp); in msggetkey() 188 (void) fprintf(stderr, gettext("ipcrm: unknown key: %s\n"), kp); in msggetkey() 226 semgetkey(char *kp) in semgetkey() argument 238 if ((k = getkey(kp)) == 0) in semgetkey() 244 oops("semget", kp); in semgetkey() [all …]
|
/titanic_50/usr/src/lib/krb5/kadm5/ |
H A D | str_conv.c | 297 char *kp, *sp, *ep; local 308 kp = string; 311 while (kp) { 316 for (ep = strchr(kp, (int) *septmp); 318 ep = strchr(kp, (int) *septmp)); 335 for (sp = strchr(kp, (int) *septmp); 337 sp = strchr(kp, (int)*septmp)); /* Solaris Kerberos */ 352 if (!(kret = krb5_string_to_enctype(kp, &ktype)) && 393 kp = ep; 396 if (kp && *tseplist) { [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_stats.c | 482 kstat_t *kp; in i_get_num_kinstances() local 485 for (kp = kctl->kc_chain; kp != NULL; kp = kp->ks_next) { in i_get_num_kinstances() 486 if (strncmp("rulestat", kp->ks_class, 8) == 0 && in i_get_num_kinstances() 487 strncmp("ilb", kp->ks_module, 3) == 0) { in i_get_num_kinstances() 531 i_copy_sstats(ilbst_srv_desc_t *sp, kstat_t *kp) in i_copy_sstats() argument 536 knp = KSTAT_NAMED_PTR(kp); in i_copy_sstats() 537 for (i = 0; i < kp->ks_ndata; i++, knp++) { in i_copy_sstats() 544 sp->isd_crtime = kp->ks_crtime; in i_copy_sstats() 553 kstat_t *kp; in i_get_server_descs() local 563 for (kp = kctl->kc_chain; kp != NULL; kp = kp->ks_next) { in i_get_server_descs() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | encrypt.c | 740 encrypt_keyid(struct key_info *kp, uchar_t *keyid, int len) in encrypt_keyid() argument 743 int dir = kp->dir; in encrypt_keyid() 746 if (!(ep = (*kp->getcrypt)(*kp->modep))) { in encrypt_keyid() 749 kp->keylen = 0; in encrypt_keyid() 754 if (kp->keylen == 0) in encrypt_keyid() 756 kp->keylen = 0; in encrypt_keyid() 758 (void) (*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid() 760 } else if ((len != kp->keylen) || in encrypt_keyid() 761 (memcmp(keyid, kp->keyid, len) != 0)) { in encrypt_keyid() 765 kp->keylen = len; in encrypt_keyid() [all …]
|
/titanic_50/usr/src/cmd/audio/audioconvert/ |
H A D | parse.cc | 54 struct keyword_table *kp) in do_lookup() argument 58 for (; kp && kp->name; kp++) { in do_lookup() 59 if (strncmp(s, kp->name, strlen(s)) == 0) { in do_lookup() 61 if (strlen(s) == strlen(kp->name)) { in do_lookup() 62 return (kp->type); in do_lookup() 69 tkp = kp; in do_lookup()
|
/titanic_50/usr/src/uts/common/io/kbtrans/ |
H A D | kbtrans.c | 537 register struct keyboard *kp; in kbtrans_find_entry() local 541 kp = lower->kbtrans_keyboard; in kbtrans_find_entry() 543 if (kp == NULL) in kbtrans_find_entry() 546 if (key_station < 0 || key_station >= kp->k_keymap_size) in kbtrans_find_entry() 549 ex = kp->k_except; in kbtrans_find_entry() 559 km = kp->k_up; in kbtrans_find_entry() 561 km = kp->k_numlock; in kbtrans_find_entry() 563 km = kp->k_control; in kbtrans_find_entry() 565 km = kp->k_altgraph; in kbtrans_find_entry() 567 km = kp->k_shifted; in kbtrans_find_entry() [all …]
|
H A D | kbtrans_streams.c | 486 struct keyboard *kp; in kbtrans_streams_key() local 489 kp = lower->kbtrans_keyboard; in kbtrans_streams_key() 505 if (key == (kbtrans_key_t)kp->k_abort1 || in kbtrans_streams_key() 506 key == (kbtrans_key_t)kp->k_abort1a) { in kbtrans_streams_key() 513 if (key == (kbtrans_key_t)kp->k_newabort1 || in kbtrans_streams_key() 514 key == (kbtrans_key_t)kp->k_newabort1a) { in kbtrans_streams_key() 523 key == (kbtrans_key_t)kp->k_abort2) { in kbtrans_streams_key() 536 key == (kbtrans_key_t)kp->k_newabort2) { in kbtrans_streams_key() 2115 register struct keyboard *kp; in kbtrans_setkey() local 2117 kp = lower->kbtrans_keyboard; in kbtrans_setkey() [all …]
|
/titanic_50/usr/src/cmd/keyserv/ |
H A D | setkey.c | 165 struct keylenlist *kp; member 174 for (kpp = &mechtable.kp; in getkeylen() 185 struct keylenlist *kp; in appendkeylist() local 188 kp = (struct keylenlist *)malloc(sizeof (*kp)); in appendkeylist() 189 if (kp == NULL) { in appendkeylist() 193 debug(KEYSERV_DEBUG, ("appendkeylist : %x %x %d", kpp, kp, k)); in appendkeylist() 194 kp->keylen = k; in appendkeylist() 195 kp->ap = NULL; in appendkeylist() 196 kp->next = NULL; in appendkeylist() 197 *kpp = kp; in appendkeylist() [all …]
|
/titanic_50/usr/src/lib/libpp/common/ |
H A D | ppcall.c | 58 struct ppinstk* kp; in ppcall() local 356 kp = 0; in ppcall() 358 for (kp = pp.in; kp && kp != old_in; kp = kp->prev); in ppcall() 359 if (!kp) in ppcall() 396 for (kp = pp.in; kp && kp != old_in; kp = kp->prev); in ppcall() 397 if (kp) in ppcall()
|
/titanic_50/usr/src/lib/libresolv2/common/dst/ |
H A D | support.c | 101 const u_char *kp = key; in dst_s_id_calc() local 107 for (ac = 0; size > 1; size -= 2, kp += 2) in dst_s_id_calc() 108 ac += ((*kp) << 8) + *(kp + 1); in dst_s_id_calc() 111 ac += ((*kp) << 8); in dst_s_id_calc()
|
/titanic_50/usr/src/lib/libtecla/common/ |
H A D | hash.c | 572 unsigned const char *kp; in _find_HashBucket() local 575 for(kp=(unsigned const char *) name; *kp; kp++) in _find_HashBucket() 576 h = 65599UL * h + *kp; /* 65599 is a prime close to 2^16 */ in _find_HashBucket() 578 for(kp=(unsigned const char *) name; *kp; kp++) in _find_HashBucket() 579 h = 65599UL * h + tolower((int)*kp); /* 65599 is a prime close to 2^16 */ in _find_HashBucket()
|
/titanic_50/usr/src/lib/nsswitch/ldap/common/ |
H A D | getprinter.c | 200 char *kp; in _nss_ldap_printers2str() local 218 for (kp = attr->attrvalue[j]; *kp != NULL; kp++) in _nss_ldap_printers2str() 219 if (*kp == ':') in _nss_ldap_printers2str()
|
/titanic_50/usr/src/lib/libast/common/uwin/ |
H A D | crypt.c | 690 register C_block *kp; in des_cipher() local 724 kp = &KS[0]; in des_cipher() 725 ks_inc = sizeof(*kp); in des_cipher() 730 kp = &KS[KS_SIZE-1]; in des_cipher() 731 ks_inc = -((int) sizeof(*kp)); in des_cipher() 754 B.b32.i0 = k ^ q0 ^ kp->b32.i0; \ in des_cipher() 755 B.b32.i1 = k ^ q1 ^ kp->b32.i1; \ in des_cipher() 756 kp = (C_block *)((char *)kp+ks_inc); \ in des_cipher() 770 kp = (C_block *)((char *)kp-(ks_inc*KS_SIZE)); in des_cipher()
|
/titanic_50/usr/src/uts/i86pc/io/acpi_drv/ |
H A D | acpi_drv.c | 1907 acpi_drv_bif_kstat_t *kp; in acpi_drv_kstat_bif_update() local 1928 kp = &acpi_drv_bif_kstat; in acpi_drv_kstat_bif_update() 1931 kp->acpi_drv_bif_unit.value.ui32 = bif->bif_unit; in acpi_drv_kstat_bif_update() 1932 kp->acpi_drv_bif_design_cap.value.ui32 = bif->bif_design_cap; in acpi_drv_kstat_bif_update() 1933 kp->acpi_drv_bif_last_cap.value.ui32 = bif->bif_last_cap; in acpi_drv_kstat_bif_update() 1934 kp->acpi_drv_bif_tech.value.ui32 = bif->bif_tech; in acpi_drv_kstat_bif_update() 1935 kp->acpi_drv_bif_voltage.value.ui32 = bif->bif_voltage; in acpi_drv_kstat_bif_update() 1936 kp->acpi_drv_bif_warn_cap.value.ui32 = bif->bif_warn_cap; in acpi_drv_kstat_bif_update() 1937 kp->acpi_drv_bif_low_cap.value.ui32 = bif->bif_low_cap; in acpi_drv_kstat_bif_update() 1938 kp->acpi_drv_bif_gran1_cap.value.ui32 = bif->bif_gran1_cap; in acpi_drv_kstat_bif_update() [all …]
|