/titanic_44/usr/src/uts/intel/io/drm/ |
H A D | i915_gem_debug.c | 53 instr_out(uint32_t *data, uint32_t hw_offset, unsigned int index, in instr_out() argument 57 DRM_ERROR("0x%08x: 0x%08x:%s ", hw_offset + index * 4, data[index], in instr_out() 68 decode_mi(uint32_t *data, int count, uint32_t hw_offset, int *failures) in decode_mi() argument 100 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi() 103 instr_out(data, hw_offset, 0, "%s\n", opcodes_mi[opcode].name); in decode_mi() 105 len = (data[0] & 0x000000ff) + 2; in decode_mi() 117 instr_out(data, hw_offset, i, "dword %d\n", i); in decode_mi() 124 instr_out(data, hw_offset, 0, "MI UNKNOWN\n"); in decode_mi() 130 decode_2d(uint32_t *data, int count, uint32_t hw_offset, int *failures) in decode_2d() argument 168 switch ((data[0] & 0x1fc00000) >> 22) { in decode_2d() [all …]
|
/titanic_44/usr/src/lib/crypt_modules/bsdbf/ |
H A D | blowfish.c | 415 Blowfish_stream2word(const uint8_t *data, uint16_t databytes, uint16_t *current) in Blowfish_stream2word() argument 427 temp = (temp << 8) | data[j]; in Blowfish_stream2word() 473 Blowfish_expandstate(blf_ctx *c, const uint8_t *data, uint16_t databytes, in Blowfish_expandstate() argument 494 datal ^= Blowfish_stream2word(data, databytes, &j); in Blowfish_expandstate() 495 datar ^= Blowfish_stream2word(data, databytes, &j); in Blowfish_expandstate() 504 datal ^= Blowfish_stream2word(data, databytes, &j); in Blowfish_expandstate() 505 datar ^= Blowfish_stream2word(data, databytes, &j); in Blowfish_expandstate() 525 blf_enc(blf_ctx *c, uint32_t *data, uint16_t blocks) in blf_enc() argument 530 d = data; in blf_enc() 538 blf_dec(blf_ctx *c, uint32_t *data, uint16_t blocks) in blf_dec() argument [all …]
|
/titanic_44/usr/src/lib/crypt_modules/sunmd5/ |
H A D | sunmd5.c | 278 } data; in crypt_genhash_impl() local 306 MD5Init(&data.context); in crypt_genhash_impl() 310 MD5Update(&data.context, (uchar_t *)plaintext, strlen(plaintext)); in crypt_genhash_impl() 314 MD5Update(&data.context, (uchar_t *)puresalt, strlen(puresalt)); in crypt_genhash_impl() 319 MD5Final(data.digest, &data.context); in crypt_genhash_impl() 329 MD5Init(&data.context); in crypt_genhash_impl() 333 MD5Update(&data.context, data.digest, sizeof (data.digest)); in crypt_genhash_impl() 342 data.s7shift = data.digest[i] % 8; in crypt_genhash_impl() 343 data.shift_4[i] = data.digest[j] % 5; in crypt_genhash_impl() 344 data.shift_7[i] = (data.digest[j] >> data.s7shift) in crypt_genhash_impl() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_netbios.c | 52 extern void interpret_smb(int flags, uchar_t *data, int len); 78 static void interpret_netbios_names(int flags, uchar_t *data, int len, 200 interpret_netbios_datagram(int flags, uchar_t *data, int len) in interpret_netbios_datagram() argument 203 int packettype = data[0]; in interpret_netbios_datagram() 205 data++; in interpret_netbios_datagram() 211 data += 14; in interpret_netbios_datagram() 212 netbiosname2ascii(name, data); in interpret_netbios_datagram() 224 data[0]); in interpret_netbios_datagram() 225 data++; in interpret_netbios_datagram() 227 getshort(data)); in interpret_netbios_datagram() [all …]
|
H A D | snoop_dns.c | 53 static size_t skip_question(const uchar_t *header, const uchar_t *data, 56 const uchar_t *data, const uchar_t *data_end, int detail); 58 const uchar_t *data, const uchar_t *data_end, int detail); 59 static char *binary_string(char data); 60 static void print_ip(int af, char *line, const uchar_t *data, uint16_t len); 61 static const uchar_t *get_char_string(const uchar_t *data, char *charbuf, 63 static size_t print_char_string(char *line, const uchar_t *data, uint16_t len); 65 const uchar_t *data, const uchar_t *data_end, char *namebuf, char *namend); 67 const uchar_t *data, const uchar_t *data_end); 70 interpret_dns(int flags, int proto, const uchar_t *data, int len, int port) in interpret_dns() argument [all …]
|
H A D | snoop_dhcpv6.c | 64 interpret_dhcpv6(int flags, const uint8_t *data, int len) in interpret_dhcpv6() argument 86 mtype_to_str(data[0])); in interpret_dhcpv6() 87 if (data[0] == DHCPV6_MSG_RELAY_FORW || in interpret_dhcpv6() 88 data[0] == DHCPV6_MSG_RELAY_REPL) { in interpret_dhcpv6() 95 (void) memcpy(&d6r, data, sizeof (d6r)); in interpret_dhcpv6() 104 data += sizeof (d6r); in interpret_dhcpv6() 112 (void) memcpy(&d6m, data, sizeof (d6m)); in interpret_dhcpv6() 115 data += sizeof (d6m); in interpret_dhcpv6() 120 while ((d6o = dhcpv6_find_option(data, len, d6o, in interpret_dhcpv6() 126 d6o = dhcpv6_find_option(data, len, NULL, in interpret_dhcpv6() [all …]
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/ |
H A D | k5_arcfour.c | 100 d1.data=MALLOC(d1.length); 101 if (d1.data == NULL) 105 k1.contents= (void *) d1.data; 115 d2.data=MALLOC(d2.length); 116 if (d2.data == NULL) { 117 FREE(d1.data, d1.length); 122 k2.contents=(void *) d2.data; 132 d3.data=MALLOC(d3.length); 133 if (d3.data == NULL) { 134 FREE(d1.data, d1.length); [all …]
|
/titanic_44/usr/src/uts/common/xen/dtrace/ |
H A D | xdt.c | 304 struct t_rec **data; /* buffer data records */ member 640 tbuf.data = (struct t_rec **)kmem_alloc(tbuf.cnt * sizeof (*tbuf.data), in xdt_attach_trace_buffers() 646 tbuf.data[i] = (struct t_rec *)((uintptr_t)cpu_buf + in xdt_attach_trace_buffers() 672 kmem_free(tbuf.data, tbuf.cnt * sizeof (*tbuf.data)); in xdt_detach_trace_buffers() 698 uint32_t *data; in xdt_process_rec() local 721 data = rec->u.cycles.extra_u32; in xdt_process_rec() 725 data = rec->u.nocycles.extra_u32; in xdt_process_rec() 742 sp->prev_domid = data[0]; in xdt_process_rec() 743 sp->prev_ctime = data[1]; in xdt_process_rec() 754 sp->next_domid = data[0]; in xdt_process_rec() [all …]
|
/titanic_44/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_fabric.c | 183 fab_pci_fabric_to_data(fmd_hdl_t *hdl, nvlist_t *nvl, fab_data_t *data) in fab_pci_fabric_to_data() argument 185 data->nvl = nvl; in fab_pci_fabric_to_data() 188 FAB_LOOKUP(16, "bdf", &data->bdf); in fab_pci_fabric_to_data() 189 FAB_LOOKUP(16, "device_id", &data->device_id); in fab_pci_fabric_to_data() 190 FAB_LOOKUP(16, "vendor_id", &data->vendor_id); in fab_pci_fabric_to_data() 191 FAB_LOOKUP(8, "rev_id", &data->rev_id); in fab_pci_fabric_to_data() 192 FAB_LOOKUP(16, "dev_type", &data->dev_type); in fab_pci_fabric_to_data() 193 FAB_LOOKUP(16, "pcie_off", &data->pcie_off); in fab_pci_fabric_to_data() 194 FAB_LOOKUP(16, "pcix_off", &data->pcix_off); in fab_pci_fabric_to_data() 195 FAB_LOOKUP(16, "aer_off", &data->aer_off); in fab_pci_fabric_to_data() [all …]
|
H A D | fx_fire.c | 123 fab_fire_to_data(fmd_hdl_t *hdl, nvlist_t *nvl, fab_data_t *data) in fab_fire_to_data() argument 125 data->nvl = nvl; in fab_fire_to_data() 128 data->dev_type = PCIE_PCIECAP_DEV_TYPE_ROOT; in fab_fire_to_data() 130 data->pcie_ue_sev = (PCIE_AER_UCE_DLP | PCIE_AER_UCE_SD | in fab_fire_to_data() 135 fab_xlate_fire_ce(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, in fab_xlate_fire_ce() argument 152 data->pcie_err_status = PCIE_DEVSTS_CE_DETECTED; in fab_xlate_fire_ce() 156 data->pcie_ce_status = (uint32_t)reg | (uint32_t)(reg >> 32); in fab_xlate_fire_ce() 163 fab_xlate_fire_ue(fmd_hdl_t *hdl, fab_data_t *data, nvlist_t *erpt, in fab_xlate_fire_ue() argument 182 data->pci_err_status = entry->pci_err_sts; in fab_xlate_fire_ue() 183 data->pci_bdg_sec_stat = entry->pci_bdg_sts; in fab_xlate_fire_ue() [all …]
|
/titanic_44/usr/src/cmd/geniconvtbl/ |
H A D | disassemble.c | 341 itm_data_t *data; in dump_tables() local 346 data = (itm_data_t *)(ADDR(info_hdr->reg_plc_tbl.place)); in dump_tables() 347 for (n = 0; n < info_hdr->reg_plc_tbl.number; n++, data += 1) { in dump_tables() 348 d = *(data); in dump_tables() 355 data = (itm_data_t *)(ADDR(info_hdr->name_plc_tbl.place)); in dump_tables() 358 n++, data += 1, place2 += sizeof (itm_data_t)) { in dump_tables() 359 d = *(data); in dump_tables() 1074 dump_expr(itm_hdr, operation->data.operand[0]); in dump_op() 1079 dump_expr(itm_hdr, operation->data.operand[0]); in dump_op() 1084 operation->data.operand[0].itm_ptr); in dump_op() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_file.c | 201 prf_data_t data; in profile_open_file() local 251 for (data = g_shared_trees; data; data = data->next) { in profile_open_file() 252 if (!strcmp(data->filespec, expanded_filename) in profile_open_file() 254 && r_access(data->filespec)) in profile_open_file() 257 if (data) { in profile_open_file() 258 data->refcount++; in profile_open_file() 260 retval = profile_update_file_data(data); in profile_open_file() 262 prf->data = data; in profile_open_file() 268 data = profile_make_prf_data(expanded_filename); in profile_open_file() 269 if (data == NULL) { in profile_open_file() [all …]
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_utils.c | 63 uchar_t *data, in ibmf_utils_unpack_data() argument 70 uchar_t *dataend = data + datalen; in ibmf_utils_unpack_data() 87 if (((data + 1) > dataend) || in ibmf_utils_unpack_data() 91 *cp++ = *data++; in ibmf_utils_unpack_data() 110 if (((data + 2) > dataend) || in ibmf_utils_unpack_data() 114 *sp++ = (data[0] << 8) + data[1]; in ibmf_utils_unpack_data() 115 data += 2; in ibmf_utils_unpack_data() 134 if (((data + 4) > dataend) || in ibmf_utils_unpack_data() 138 *lp++ = ((((((uint32_t)data[0] << 8) | data[1]) << 8) in ibmf_utils_unpack_data() 139 | data[2]) << 8) | data[3]; in ibmf_utils_unpack_data() [all …]
|
/titanic_44/usr/src/uts/common/sys/sbp2/ |
H A D | common.h | 38 #define SBP2_SWAP16(data) \ argument 39 ((((data) & 0xff) << 8) | ((data) >> 8)) 41 #define SBP2_SWAP32(data) \ argument 42 (((uint32_t)SBP2_SWAP16((uint16_t)((data) & 0xffff)) << 16) | \ 43 (uint32_t)SBP2_SWAP16((uint16_t)((data) >> 16))) 45 #define SBP2_SWAP16_1(data) (data) = SBP2_SWAP16(data) argument 46 #define SBP2_SWAP32_1(data) (data) = SBP2_SWAP32(data) argument 48 #define SBP2_SWAP16_2(data) \ argument 49 ((uint16_t *)(data))[0] = SBP2_SWAP16(((uint16_t *)(data))[0]); \ 50 ((uint16_t *)(data))[1] = SBP2_SWAP16(((uint16_t *)(data))[1]); [all …]
|
/titanic_44/usr/src/cmd/nscd/ |
H A D | nscd_access.c | 42 void *data; /* addr of real data */ member 43 void (*free_func)(nscd_acc_data_t *data); /* destructor */ 59 if (access->data != data) \ 64 ((void *)((char *)data - sizeof_access)) 66 static void _nscd_free(nscd_acc_data_t *data); 77 nscd_acc_data_t *data) in _nscd_release() argument 82 if (data == NULL) in _nscd_release() 90 data, access->data, access->seq_num, access->nUse); in _nscd_release() 103 (me, "deleting data %p\n", access->data); in _nscd_release() 104 (access->free_func)(access->data); in _nscd_release() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | cc_file.c | 140 (krb5_context, krb5_ccache id, krb5_data *data); 190 (krb5_context, krb5_ccache id, krb5_data *data); 215 (krb5_context, struct _krb5_fcc_data *data); 268 #define OPENCLOSE(id) (((krb5_fcc_data *)id->data)->flags & KRB5_TC_OPENCLOSE) 290 static inline void invalidate_cache(krb5_fcc_data *data) in invalidate_cache() argument 292 data->valid_bytes = 0; in invalidate_cache() 295 static off_t fcc_lseek(krb5_fcc_data *data, off_t offset, int whence) in fcc_lseek() argument 299 if (whence == SEEK_CUR && data->valid_bytes) { in fcc_lseek() 300 assert(data->valid_bytes > 0); in fcc_lseek() 301 assert(data->cur_offset > 0); in fcc_lseek() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | pac.c | 163 krb5_data data; /* PAC data (including uninitialised header) */ member 170 krb5_data *data); 179 const krb5_data *data, in k5_pac_add_buffer() argument 187 assert((data->data == NULL) == zerofill); in k5_pac_add_buffer() 208 if (data->length % PAC_ALIGNMENT) in k5_pac_add_buffer() 209 pad = PAC_ALIGNMENT - (data->length % PAC_ALIGNMENT); in k5_pac_add_buffer() 211 pac_data = realloc(pac->data.data, in k5_pac_add_buffer() 212 pac->data.length + PAC_INFO_BUFFER_LENGTH + data->length + pad); in k5_pac_add_buffer() 216 pac->data.data = pac_data; in k5_pac_add_buffer() 223 memmove(pac->data.data + header_len + PAC_INFO_BUFFER_LENGTH, in k5_pac_add_buffer() [all …]
|
/titanic_44/usr/src/lib/udapl/libdat/common/ |
H A D | dat_sr.c | 130 DAT_SR_ENTRY *data; in dat_sr_insert() local 137 if (NULL == (data = dat_os_alloc(sizeof (DAT_SR_ENTRY)))) { in dat_sr_insert() 146 if (NULL == (data->lib_path = dat_os_alloc(lib_path_size))) { in dat_sr_insert() 152 (void) dat_os_strncpy(data->lib_path, entry->lib_path, lib_path_len); in dat_sr_insert() 153 data->lib_path[lib_path_len] = '\0'; in dat_sr_insert() 158 if (NULL == (data->ia_params = dat_os_alloc(ia_params_size))) { in dat_sr_insert() 164 (void) dat_os_strncpy(data->ia_params, entry->ia_params, ia_params_len); in dat_sr_insert() 165 data->ia_params[ia_params_len] = '\0'; in dat_sr_insert() 167 data->info = entry->info; in dat_sr_insert() 168 data->lib_handle = entry->lib_handle; in dat_sr_insert() [all …]
|
/titanic_44/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_reloc.c | 65 struct Dwarf_P_Relocation_Block_s *data = 0; in _dwarf_pro_pre_alloc_n_reloc_slots() local 77 data = (struct Dwarf_P_Relocation_Block_s *) in _dwarf_pro_pre_alloc_n_reloc_slots() 79 if (!data) { in _dwarf_pro_pre_alloc_n_reloc_slots() 82 data->rb_slots_in_block = slots_in_blk; /* could use default in _dwarf_pro_pre_alloc_n_reloc_slots() 91 data->rb_next_slot_to_use = 0; in _dwarf_pro_pre_alloc_n_reloc_slots() 92 data->rb_where_to_add_next = in _dwarf_pro_pre_alloc_n_reloc_slots() 93 ((char *) data) + sizeof(struct Dwarf_P_Relocation_Block_s); in _dwarf_pro_pre_alloc_n_reloc_slots() 94 data->rb_data = data->rb_where_to_add_next; in _dwarf_pro_pre_alloc_n_reloc_slots() 96 prel->pr_first_block = data; in _dwarf_pro_pre_alloc_n_reloc_slots() 97 prel->pr_last_block = data; in _dwarf_pro_pre_alloc_n_reloc_slots() [all …]
|
/titanic_44/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_get.c | 65 __rec_get(dbp, key, data, flags) in __rec_get() argument 68 DBT *data; 85 if (flags || (nrec = *(recno_t *)key->data) == 0) { 105 status = __rec_ret(t, e, 0, NULL, data); 128 DBT data; local 135 t->bt_rdata.data = t->bt_rdata.data == NULL ? 137 realloc(t->bt_rdata.data, t->bt_reclen); 138 if (t->bt_rdata.data == NULL) 142 data.data = t->bt_rdata.data; 143 data.size = t->bt_reclen; [all …]
|
H A D | rec_utils.c | 64 __rec_ret(t, e, nrec, key, data) in __rec_ret() argument 68 DBT *key, *data; 78 p = (void *)(t->bt_rkey.data == NULL ? 80 realloc(t->bt_rkey.data, sizeof(recno_t))); 83 t->bt_rkey.data = p; 86 memmove(t->bt_rkey.data, &nrec, sizeof(recno_t)); 88 key->data = t->bt_rkey.data; 91 if (data == NULL) 102 &data->size, &t->bt_rdata.data, &t->bt_rdata.size)) 104 data->data = t->bt_rdata.data; [all …]
|
/titanic_44/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddrbac.c | 118 userstr_t data; in genent_user_attr() local 128 data.name = ecol[0].ec_value.ec_value_val; in genent_user_attr() 129 data.qualifier = ecol[1].ec_value.ec_value_val; in genent_user_attr() 130 data.res1 = NULL; in genent_user_attr() 131 data.res2 = NULL; in genent_user_attr() 132 data.attr = ecol[4].ec_value.ec_value_val; in genent_user_attr() 136 gettext("Adding entry : %s\n"), data.name); in genent_user_attr() 138 retval = (*cback)(&data, 1); in genent_user_attr() 143 "add passwd entry first\n"), data.name); in genent_user_attr() 174 profstr_t data; in genent_prof_attr() local [all …]
|
/titanic_44/usr/src/lib/krb5/kadm5/srv/ |
H A D | svr_iters.c | 150 static void get_either_iter(struct iter_data *data, char *name) in get_either_iter() argument 154 match = (step(name, data->expbuf) != 0); in get_either_iter() 157 match = (regexec(&data->preg, name, 0, NULL, 0) == 0); in get_either_iter() 163 if (data->n_names == data->sz_names) { in get_either_iter() 164 int new_sz = data->sz_names * 2; in get_either_iter() 165 char **new_names = realloc(data->names, in get_either_iter() 168 data->names = new_names; in get_either_iter() 169 data->sz_names = new_sz; in get_either_iter() 171 data->malloc_failed = 1; in get_either_iter() 176 data->names[data->n_names++] = name; in get_either_iter() [all …]
|
/titanic_44/usr/src/lib/libsecdb/common/ |
H A D | secdb.c | 49 kv_t *data; in kva_match() local 54 data = kva->data; in kva_match() 56 if (strcmp(data[i].key, key) == 0) { in kva_match() 57 return (data[i].value); in kva_match() 71 kv_t *data; in _kva_free() local 76 data = kva->data; in _kva_free() 78 if (data[i].key != NULL) { in _kva_free() 79 free(data[i].key); in _kva_free() 80 data[i].key = NULL; in _kva_free() 82 if (data[i].value != NULL) { in _kva_free() [all …]
|
/titanic_44/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_utils.c | 69 __bt_ret(t, e, key, rkey, data, rdata, copy) in __bt_ret() argument 72 DBT *key, *rkey, *data, *rdata; 90 &key->size, &rkey->data, &rkey->size)) 92 key->data = rkey->data; 95 p = (void *)(rkey->data == NULL ? 96 malloc(bl->ksize) : realloc(rkey->data, bl->ksize)); 99 rkey->data = p; 102 memmove(rkey->data, bl->bytes, bl->ksize); 104 key->data = rkey->data; 107 key->data = bl->bytes; [all …]
|