| /netbsd-src/lib/libc/stdlib/ |
| H A D | _env.c | 209 size_t num_entries; in __scrubenv() local 215 for (num_entries = 0; environ[num_entries] != NULL; num_entries++) { in __scrubenv() 216 node = rb_tree_find_node(&env_tree, environ[num_entries]); in __scrubenv() 234 (void)memset(&environ[num_entries + 1], 0, in __scrubenv() 235 (allocated_environ_size - num_entries - 1) * in __scrubenv() 255 size_t new_size, num_entries, required_size; in __getenvslot() local 259 num_entries = 0; in __getenvslot() 261 while (environ[num_entries] != NULL) { in __getenvslot() 262 if (strncmp(environ[num_entries], name, l_name) == 0 && in __getenvslot() 263 environ[num_entries][l_name] == '=') { in __getenvslot() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| H A D | keytab_memory.c | 42 int num_entries; member 87 d->num_entries = 0; in mkt_resolve() 120 for(i = 0; i < d->num_entries; i++) in mkt_close() 155 if(c->fd >= d->num_entries) in mkt_next_entry() 175 tmp = realloc(d->entries, (d->num_entries + 1) * sizeof(*d->entries)); in mkt_add_entry() 180 &d->entries[d->num_entries++]); in mkt_add_entry() 192 if (d->num_entries == 0) { in mkt_remove_entry() 198 for(end = d->entries + d->num_entries, e = end - 1; e >= d->entries; e--) { in mkt_remove_entry() 204 d->num_entries--; in mkt_remove_entry() 213 e = realloc(d->entries, d->num_entries * sizeof(*d->entries)); in mkt_remove_entry() [all …]
|
| H A D | keytab_keyfile.c | 57 uint32_t num_entries; member 137 d->num_entries = 0; in akf_resolve() 216 ret = krb5_ret_uint32(c->sp, &d->num_entries); in akf_start_seq_get() 217 if(ret || d->num_entries > INT_MAX / 8) { in akf_start_seq_get() 242 if ((pos - 4) / (4 + 8) >= d->num_entries) in akf_next_entry()
|
| /netbsd-src/external/bsd/am-utils/dist/amd/ |
| H A D | readdir.c | 99 int num_entries = 0, i; in make_entry_chain() local 167 if (num_entries >= max_entries) { in make_entry_chain() 170 if (num_entries > 0) { in make_entry_chain() 171 chain[num_entries - 1].ne_nextentry = NULL; in make_entry_chain() 179 chain[num_entries].ne_fileid = last_cookie; in make_entry_chain() 180 (void)memcpy(chain[num_entries].ne_cookie, &last_cookie, in make_entry_chain() 182 chain[num_entries].ne_name = key; in make_entry_chain() 183 if (num_entries < max_entries - 1) { /* link to next one */ in make_entry_chain() 184 chain[num_entries].ne_nextentry = &chain[num_entries + 1]; in make_entry_chain() 186 ++num_entries; in make_entry_chain() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/ |
| H A D | hash_load_check_resize_trigger_imp.hpp | 110 notify_inserted(size_type num_entries) in notify_inserted() argument 112 m_resize_needed = (num_entries >= m_next_grow_size); in notify_inserted() 113 size_base::set_size(num_entries); in notify_inserted() 120 notify_erased(size_type num_entries) in notify_erased() argument 122 size_base::set_size(num_entries); in notify_erased() 123 m_resize_needed = num_entries <= m_next_shrink_size; in notify_erased() 139 is_grow_needed(size_type /*size*/, size_type num_entries) const in is_grow_needed() 142 return num_entries >= m_next_grow_size; in is_grow_needed()
|
| H A D | sample_resize_trigger.hpp | 103 notify_inserted(size_type num_entries); 107 notify_erased(size_type num_entries); 128 is_grow_needed(size_type size, size_type num_entries) const;
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/ |
| H A D | hash_load_check_resize_trigger_imp.hpp | 110 notify_inserted(size_type num_entries) in notify_inserted() argument 112 m_resize_needed = (num_entries >= m_next_grow_size); in notify_inserted() 113 size_base::set_size(num_entries); in notify_inserted() 120 notify_erased(size_type num_entries) in notify_erased() argument 122 size_base::set_size(num_entries); in notify_erased() 123 m_resize_needed = num_entries <= m_next_shrink_size; in notify_erased() 139 is_grow_needed(size_type /*size*/, size_type num_entries) const in is_grow_needed() 142 return num_entries >= m_next_grow_size; in is_grow_needed()
|
| H A D | sample_resize_trigger.hpp | 103 notify_inserted(size_type num_entries); 107 notify_erased(size_type num_entries); 128 is_grow_needed(size_type size, size_type num_entries) const;
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| H A D | amdgpu_bo_list.c | 71 unsigned num_entries, struct amdgpu_bo_list **result) in amdgpu_bo_list_create() argument 73 unsigned last_entry = 0, first_userptr = num_entries; in amdgpu_bo_list_create() 81 if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list)) in amdgpu_bo_list_create() 86 size += num_entries * sizeof(struct amdgpu_bo_list_entry); in amdgpu_bo_list_create() 97 memset(array, 0, num_entries * sizeof(struct amdgpu_bo_list_entry)); in amdgpu_bo_list_create() 99 for (i = 0; i < num_entries; ++i) { in amdgpu_bo_list_create() 152 list->num_entries = num_entries; in amdgpu_bo_list_create() 154 trace_amdgpu_cs_bo_status(list->num_entries, total_size); in amdgpu_bo_list_create() 165 for (i = first_userptr; i < num_entries; ++i) { in amdgpu_bo_list_create()
|
| H A D | amdgpu_bo_list.h | 51 unsigned num_entries; member 65 unsigned num_entries, 78 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \ 83 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
|
| /netbsd-src/external/bsd/iscsi/dist/src/osd/ |
| H A D | osdfs.c | 249 uint32_t num_entries; in entry_del() local 255 if (entries_get(dev, dir_ino, &entries, &num_entries, &size)!=0) { in entry_del() 261 iscsi_trace(TRACE_OSDFS, "dir_ino 0x%llx has %u entries\n", dir_uid, num_entries); in entry_del() 262 if (num_entries) { in entry_del() 311 uint32_t num_entries; in entry_num() local 314 if (entries_get(dev, ino, &entries, &num_entries, &size)!=0) { in entry_num() 318 iscsi_trace(TRACE_OSDFS, "ino %li has %i entries\n", ino, num_entries); in entry_num() 319 if (num_entries) vfree(entries); in entry_num() 320 return num_entries; in entry_num() 513 uint32_t num_entries; in osdfs_lookup() local [all …]
|
| /netbsd-src/lib/libc/citrus/ |
| H A D | citrus_db.c | 103 uint32_t hashval, num_entries; in _citrus_db_lookup() local 114 num_entries = be32toh(dhx->dhx_num_entries); in _citrus_db_lookup() 115 if (num_entries == 0) in _citrus_db_lookup() 125 db->db_hashfunc(db->db_hashfunc_closure, key)%num_entries; in _citrus_db_lookup() 304 uint32_t num_entries; in _citrus_db_get_entry() local 314 num_entries = be32toh(dhx->dhx_num_entries); in _citrus_db_get_entry() 315 if (idx < 0 || (uint32_t)idx >= num_entries) in _citrus_db_get_entry()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr/ |
| H A D | amdgpu_smu7_smumgr.c | 394 toc->num_entries = 0; in smu7_request_smu_load_fw() 398 UCODE_ID_RLC_G, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 401 UCODE_ID_CP_CE, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 404 UCODE_ID_CP_PFP, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 407 UCODE_ID_CP_ME, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 410 UCODE_ID_CP_MEC, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 413 UCODE_ID_CP_MEC_JT1, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 416 UCODE_ID_CP_MEC_JT2, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 419 UCODE_ID_SDMA0, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() 422 UCODE_ID_SDMA1, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/ |
| H A D | hash_policy.hpp | 240 notify_inserted(size_type num_entries); 243 notify_erased(size_type num_entries); 261 is_grow_needed(size_type size, size_type num_entries) const; 360 notify_inserted(size_type num_entries); 364 notify_erased(size_type num_entries); 386 is_grow_needed(size_type size, size_type num_entries) const;
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/ |
| H A D | hash_policy.hpp | 240 notify_inserted(size_type num_entries); 243 notify_erased(size_type num_entries); 261 is_grow_needed(size_type size, size_type num_entries) const; 360 notify_inserted(size_type num_entries); 364 notify_erased(size_type num_entries); 386 is_grow_needed(size_type size, size_type num_entries) const;
|
| /netbsd-src/sys/dev/microcode/aic7xxx/ |
| H A D | aicasm_symbol.c | 384 symbol_node_t *regnode, u_int num_entries) in aic_print_reg_dump_end() argument 397 if (num_entries != 0) in aic_print_reg_dump_end() 414 num_entries != 0 ? regnode->symbol->name : "NULL", in aic_print_reg_dump_end() 415 num_entries != 0 ? "_parse_table" : "", in aic_print_reg_dump_end() 416 num_entries, in aic_print_reg_dump_end() 545 int num_entries; in symtable_dump() local 547 num_entries = 0; in symtable_dump() 550 if (num_entries == 0) in symtable_dump() 555 num_entries++; in symtable_dump() 559 curnode, num_entries); in symtable_dump()
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | hostfile.c | 249 if ((tmp = recallocarray(hostkeys->entries, hostkeys->num_entries, in record_hostkey() 250 hostkeys->num_entries + 1, sizeof(*hostkeys->entries))) == NULL) in record_hostkey() 253 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey() 254 hostkeys->entries[hostkeys->num_entries].file = xstrdup(l->path); in record_hostkey() 255 hostkeys->entries[hostkeys->num_entries].line = l->linenum; in record_hostkey() 256 hostkeys->entries[hostkeys->num_entries].key = l->key; in record_hostkey() 258 hostkeys->entries[hostkeys->num_entries].marker = l->marker; in record_hostkey() 259 hostkeys->entries[hostkeys->num_entries].note = l->note; in record_hostkey() 260 hostkeys->num_entries++; in record_hostkey() 306 for (i = 0; i < hostkeys->num_entries; i++) { in free_hostkeys() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/ |
| H A D | intel_csr.c | 158 u32 num_entries; member 348 unsigned int num_entries, in find_dmc_fw_offset() argument 355 for (i = 0; i < num_entries; i++) { in find_dmc_fw_offset() 500 u32 num_entries, max_entries, dmc_offset; in parse_csr_fw_package() local 530 num_entries = package_header->num_entries; in parse_csr_fw_package() 531 if (WARN_ON(package_header->num_entries > max_entries)) in parse_csr_fw_package() 532 num_entries = max_entries; in parse_csr_fw_package() 536 dmc_offset = find_dmc_fw_offset(fw_info, num_entries, si, in parse_csr_fw_package()
|
| /netbsd-src/external/apache2/llvm/dist/clang/utils/hmaptool/ |
| H A D | hmaptool | 45 (version, reserved, strtable_offset, num_entries, 90 return HeaderMap(num_entries, buckets, strtable) 92 def __init__(self, num_entries, buckets, strtable): argument 93 self.num_entries = num_entries 135 print (' num entries: %d' % (hmap.num_entries,))
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/modules/power/ |
| H A D | amdgpu_power_helpers.c | 216 unsigned int num_entries = NUM_BL_CURVE_SEGS; in fill_backlight_transform_table() local 221 table->backlight_thresholds[num_entries-1] = 0xFFFF; in fill_backlight_transform_table() 222 table->backlight_offsets[num_entries-1] = in fill_backlight_transform_table() 233 for (i = 1; i+1 < num_entries; i++) { in fill_backlight_transform_table() 234 lut_index = (params.backlight_lut_array_size - 1) * i / (num_entries - 1); in fill_backlight_transform_table() 238 cpu_to_be16(DIV_ROUNDUP((i * 65536), num_entries)); in fill_backlight_transform_table() 248 unsigned int num_entries = NUM_BL_CURVE_SEGS; in fill_backlight_transform_table_v_2_2() local 253 table->backlight_thresholds[num_entries-1] = 0xFFFF; in fill_backlight_transform_table_v_2_2() 254 table->backlight_offsets[num_entries-1] = in fill_backlight_transform_table_v_2_2() 265 for (i = 1; i+1 < num_entries; i++) { in fill_backlight_transform_table_v_2_2() [all …]
|
| /netbsd-src/sbin/iscsid/ |
| H A D | iscsid_lists.c | 64 list[SESSION_LIST].num_entries--; 334 num = list[par->list_kind].num_entries; in get_list() 352 res->num_entries = num; in get_list() 393 if (!list[par->list_kind].num_entries) { in search_list() 521 num = list[SESSION_LIST].num_entries; in get_session_list() 538 res->num_entries = num; in get_session_list() 773 list[INITIATOR_LIST].num_entries++; in add_initiator_portal() 800 list[INITIATOR_LIST].num_entries--; in remove_initiator_portal() 867 if (!list[INITIATOR_LIST].num_entries) in select_initiator() 909 list[SESSION_LIST].num_entries--; in event_kill_session()
|
| H A D | iscsid_targets.c | 115 list[PORTAL_LIST].num_entries++; in create_portal() 142 list[PORTAL_LIST].num_entries--; in delete_portal() 154 list[TARGET_LIST].num_entries--; in delete_portal() 226 list[TARGET_LIST].num_entries--; in delete_target() 290 list[SEND_TARGETS_LIST].num_entries--; in delete_send_target() 380 list[par->list_kind].num_entries++; in add_target() 447 list[TARGET_LIST].num_entries++; in add_discovered_target()
|
| /netbsd-src/external/gpl3/binutils/dist/ld/ |
| H A D | pdb.c | 104 uint32_t num_entries; member 268 uint32_t num_entries, num_buckets; in populate_info_stream() local 298 num_entries = 0; in populate_info_stream() 302 num_entries++; in populate_info_stream() 305 num_buckets = num_entries * 2; in populate_info_stream() 364 bfd_putl32 (num_entries, int_buf); in populate_info_stream() 885 glob->num_entries++; in add_globals_ref() 2441 uint32_t num_entries; in handle_type() local 2451 num_entries = bfd_getl32 (&al->num_entries); in handle_type() 2454 + (num_entries * sizeof (uint32_t))) in handle_type() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/OProfileJIT/ |
| H A D | OProfileJITEventListener.cpp | 117 size_t num_entries = Lines.size(); in notifyObjectLoaded() local 120 num_entries, sizeof(struct debug_line_info)); in notifyObjectLoaded() 130 if (Wrapper->op_write_debug_line_info((void *)Addr, num_entries, in notifyObjectLoaded()
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | peXXigen.c | 3199 unsigned int num_entries, num_ids; in rsrc_count_directory() local 3205 num_entries = (int) bfd_get_16 (abfd, data + 12); in rsrc_count_directory() 3208 num_entries += num_ids; in rsrc_count_directory() 3212 while (num_entries --) in rsrc_count_directory() 3216 entry_end = rsrc_count_entries (abfd, num_entries >= num_ids, in rsrc_count_directory() 3229 unsigned int num_entries; member 3376 if (chain->num_entries == 0) in rsrc_parse_entries() 3388 for (i = chain->num_entries; i--;) in rsrc_parse_entries() 3433 table->names.num_entries = bfd_get_16 (abfd, data + 12); in rsrc_parse_directory() 3434 table->ids.num_entries = bfd_get_16 (abfd, data + 14); in rsrc_parse_directory() [all …]
|