Home
last modified time | relevance | path

Searched refs:new_count (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_ioport.c138 uint_t new_count = old_count - 1; in vm_inout_remove_at() local
148 if (idx < new_count) { in vm_inout_remove_at()
150 sizeof (ioport_entry_t) * (new_count - idx)); in vm_inout_remove_at()
158 uint_t new_count = old_count + 1; in vm_inout_insert_space_at() local
160 VERIFY(idx < new_count); in vm_inout_insert_space_at()
167 if (idx < new_count) { in vm_inout_insert_space_at()
197 uint_t new_count = old_count + 1; in vm_inout_attach() local
198 new_ents = kmem_alloc(new_count * sizeof (ioport_entry_t), KM_SLEEP); in vm_inout_attach()
208 cfg->iop_count = new_count; in vm_inout_attach()
259 uint_t new_count = old_count - 1; in vm_inout_detach() local
[all …]
/freebsd/sys/x86/isa/
H A Dclock.c328 int new_count, new_mode; in set_i8254_freq() local
334 new_count = 0x10000; in set_i8254_freq()
336 new_count = -1; in set_i8254_freq()
338 new_count = min(((uint64_t)i8254_freq * period + in set_i8254_freq()
341 if (new_count == timer0_period) in set_i8254_freq()
343 i8254_max_count = ((new_count & ~0xffff) != 0) ? 0xffff : new_count; in set_i8254_freq()
344 timer0_period = (mode == MODE_PERIODIC) ? new_count : -1; in set_i8254_freq()
355 outb(TIMER_CNTR0, new_count & 0xff); in set_i8254_freq()
356 outb(TIMER_CNTR0, new_count >> 8); in set_i8254_freq()
359 if (new_count < 256 && timer0_last < 256) { in set_i8254_freq()
[all …]
/freebsd/contrib/pf/libevent/
H A Dpoll.c270 int new_count; in poll_add() local
272 new_count = 32; in poll_add()
274 new_count = pop->fd_count * 2; in poll_add()
275 while (new_count <= ev->ev_fd) in poll_add()
276 new_count *= 2; in poll_add()
278 realloc(pop->idxplus1_by_fd, new_count * sizeof(int)); in poll_add()
285 0, sizeof(int)*(new_count - pop->fd_count)); in poll_add()
286 pop->fd_count = new_count; in poll_add()
/freebsd/lib/libc/stdlib/
H A Dhsearch_r.c77 size_t hash, index, i, old_hash, old_count, new_count; in hsearch_r() local
113 new_count = (hsearch->index_mask + 1) * 2; in hsearch_r()
114 new_entries = calloc(new_count, sizeof(ENTRY)); in hsearch_r()
118 hsearch->index_mask = new_count - 1; in hsearch_r()
/freebsd/crypto/krb5/src/util/
H A Dcstyle.py111 old_count, new_count, lineno = 0, 0, 0
116 if old_count > 0 or new_count > 0:
121 new_count = new_count - 1
136 new_count = int(m.group(5) or '1')
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_cryptoadm.c262 char *skip_providers, int *mech_counts, int *new_count) in filter_providers() argument
286 *new_count = n; in filter_providers()
304 int rval, i, j, new_count, *mech_counts; in crypto_get_dev_list() local
327 mech_counts, &new_count); in crypto_get_dev_list()
329 p = kmem_alloc(new_count * sizeof (crypto_dev_list_entry_t), KM_SLEEP); in crypto_get_dev_list()
347 *count = new_count; in crypto_get_dev_list()
644 crypto_load_dev_disabled(char *name, uint_t instance, uint_t new_count, in crypto_load_dev_disabled() argument
657 if (new_count == 0) { in crypto_load_dev_disabled()
660 } else if ((rv = kcf_policy_load_dev_disabled(name, instance, new_count, in crypto_load_dev_disabled()
679 kcf_compare_mechs(new_count, new_array, in crypto_load_dev_disabled()
[all …]
H A Dkcf_policy.c240 kcf_policy_load_soft_disabled(char *module_name, uint_t new_count, in kcf_policy_load_soft_disabled() argument
290 policy_desc->pd_disabled_count = new_count; in kcf_policy_load_soft_disabled()
303 kcf_policy_load_dev_disabled(char *name, uint_t instance, uint_t new_count, in kcf_policy_load_dev_disabled() argument
352 policy_desc->pd_disabled_count = new_count; in kcf_policy_load_dev_disabled()
/freebsd/contrib/lutok/
H A Dtest_utils.hpp132 unsigned int new_count = _state.get_top(); in ~stack_balance_checker() local
133 if (_old_count != new_count) in ~stack_balance_checker()
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmap.c1131 int i, err, ulp_failure = 0, new_count = 0; in g_get_dev_list() local
1210 fcio.fcio_alen = sizeof (new_count); in g_get_dev_list()
1211 fcio.fcio_abuf = (caddr_t)&new_count; in g_get_dev_list()
1219 num_devices = new_count; in g_get_dev_list()
1220 new_count = 0; in g_get_dev_list()
1232 fcio.fcio_alen = sizeof (new_count); in g_get_dev_list()
1233 fcio.fcio_abuf = (caddr_t)&new_count; in g_get_dev_list()
1243 num_devices, new_count); in g_get_dev_list()
1266 if (new_count < num_devices) { in g_get_dev_list()
1267 if (new_count == 0) { in g_get_dev_list()
[all …]
/freebsd/contrib/one-true-awk/
H A Db.c149 int i, new_count; in resize_state() local
154 new_count = state + 10; /* needs to be tuned */ in resize_state()
156 p = (gtt *) realloc(f->gototab, new_count * sizeof(gtt)); in resize_state()
161 p2 = (uschar *) realloc(f->out, new_count * sizeof(f->out[0])); in resize_state()
166 p3 = (int **) realloc(f->posns, new_count * sizeof(f->posns[0])); in resize_state()
171 for (i = f->state_count; i < new_count; ++i) { in resize_state()
180 f->state_count = new_count; in resize_state()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_acl.c1328 int new_count, new_bytes; in zfs_acl_chmod() local
1339 new_count = new_bytes = 0; in zfs_acl_chmod()
1351 new_count++; in zfs_acl_chmod()
1357 new_count++; in zfs_acl_chmod()
1363 new_count++; in zfs_acl_chmod()
1424 new_count++; in zfs_acl_chmod()
1433 new_count += 3; in zfs_acl_chmod()
1436 aclp->z_acl_count = new_count; in zfs_acl_chmod()
1438 newnode->z_ace_count = new_count; in zfs_acl_chmod()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_acl.c1513 int new_count, new_bytes; in zfs_acl_chmod() local
1523 new_count = new_bytes = 0; in zfs_acl_chmod()
1533 new_count++; in zfs_acl_chmod()
1539 new_count++; in zfs_acl_chmod()
1545 new_count++; in zfs_acl_chmod()
1607 new_count++; in zfs_acl_chmod()
1616 new_count += 3; in zfs_acl_chmod()
1619 aclp->z_acl_count = new_count; in zfs_acl_chmod()
1621 newnode->z_ace_count = new_count; in zfs_acl_chmod()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_acl.c1363 int new_count, new_bytes; in zfs_acl_chmod() local
1375 new_count = new_bytes = 0; in zfs_acl_chmod()
1387 new_count++; in zfs_acl_chmod()
1393 new_count++; in zfs_acl_chmod()
1399 new_count++; in zfs_acl_chmod()
1461 new_count++; in zfs_acl_chmod()
1470 new_count += 3; in zfs_acl_chmod()
1473 aclp->z_acl_count = new_count; in zfs_acl_chmod()
1475 newnode->z_ace_count = new_count; in zfs_acl_chmod()
H A Dvdev_indirect.c490 uint64_t new_count = in spa_condense_indirect_complete_sync() local
532 new_count, old_count); in spa_condense_indirect_complete_sync()
/freebsd/sys/dev/nvmf/controller/
H A Dctl_frontend_nvmf.c129 u_int i, new_count; in nvmft_lun_enable() local
140 new_count = np->num_ns + 1; in nvmft_lun_enable()
142 new_ns = mallocarray(new_count, sizeof(*new_ns), M_NVMFT, in nvmft_lun_enable()
145 if (np->num_ns + 1 <= new_count) in nvmft_lun_enable()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DValueObject.h897 void Clear(size_t new_count = 0) {
899 m_children_count = new_count;
/freebsd/sys/dev/pci/
H A Dpci_pci.c388 int i, new_count; in pcib_alloc_nonisa_ranges() local
391 new_count = 0; in pcib_alloc_nonisa_ranges()
392 pcib_walk_nonisa_ranges(start, end, count_ranges, &new_count); in pcib_alloc_nonisa_ranges()
395 as.res = malloc(sizeof(struct resource *) * new_count, M_DEVBUF, in pcib_alloc_nonisa_ranges()
408 KASSERT(as.count == new_count, ("%s: count mismatch", __func__)); in pcib_alloc_nonisa_ranges()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DSymbolFileNativePDB.cpp1066 size_t new_count = comp_unit.GetNumFunctions(); in ParseFunctions() local
1067 lldbassert(new_count >= count); in ParseFunctions()
1068 return new_count - count; in ParseFunctions()
1801 const size_t new_count = GetTypeList().GetSize(); in ParseTypes() local
1805 return new_count - old_count; in ParseTypes()
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dspitfire.c2777 uint64_t count, new_count; \
2782 new_count = (HB_REFRESH_INTERVAL * \
2786 (new_count << HB_REFRESH_COUNT_SHIFT); \
2806 (count + new_count) * MICROSEC * (cur_div)) /\
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_indirect.c492 uint64_t new_count = in spa_condense_indirect_complete_sync() local
535 (u_longlong_t)new_count, (u_longlong_t)old_count); in spa_condense_indirect_complete_sync()
/illumos-gate/usr/src/uts/common/io/fibre-channel/impl/
H A Dfp.c8296 int new_count; in fp_fciocmd() local
8300 fcio->fcio_alen != sizeof (new_count)) { in fp_fciocmd()
8310 new_count = port->fp_total_devices; in fp_fciocmd()
8313 if (fp_copyout((void *)&new_count, in fp_fciocmd()
8315 sizeof (new_count), mode)) { in fp_fciocmd()
8330 new_count = port->fp_total_devices; in fp_fciocmd()
8333 if (fp_copyout((void *)&new_count, in fp_fciocmd()
8335 sizeof (new_count), mode)) { in fp_fciocmd()
8402 new_count = 0; in fp_fciocmd()
8403 if (fp_copyout((void *)&new_count, in fp_fciocmd()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelKeys.c126 CK_ULONG new_count) in grow_template() argument
130 new_template = malloc(new_count * sizeof (CK_ATTRIBUTE)); in grow_template()