| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/ |
| H A D | tst.timeout.ksh | 35 typeset lim=$1 37 error=$(zfs program -t $lim $TESTPOOL $ZCP_ROOT/lua_core/tst.timeout.zcp 2>&1) 38 [[ $? -ne 0 ]] || log_fail "Channel program with limit $lim exited 0: $error" 41 if [[ $instrs_run -lt $(( $lim - 100 )) ]]; then 42 log_fail "Runtime (${instrs_run} instr) < limit (${lim} - 100 instr)" 43 elif [[ $instrs_run -gt $(( $lim + 100 )) ]]; then 44 log_fail "Runtime (${instrs_run} instr) > limit (${lim} + 100 instr)" 46 log_note "With limit $lim the program ended after $instrs_run instructions"
|
| H A D | tst.lib_table.lua | 62 a = {}; lim = 2000 63 for i=1, lim do a[i]=i end 64 assert(select(lim, unpack(a)) == lim and select('#', unpack(a)) == lim) 68 assert(#x == lim and x[1] == 1 and x[lim] == lim) 69 x = {unpack(a, lim-2)} 70 assert(#x == 3 and x[1] == lim-2 and x[3] == lim)
|
| /f-stack/freebsd/libkern/ |
| H A D | bsearch.c | 62 size_t lim; in bsearch() local 66 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch() 67 p = base + (lim >> 1) * size; in bsearch() 73 lim--; in bsearch()
|
| /f-stack/dpdk/drivers/mempool/octeontx2/ |
| H A D | otx2_mempool.h | 195 struct npa_aura_lim *lim = lf->aura_lim; in npa_lf_aura_op_range_set() local 197 lim[reg].ptr_start = RTE_MIN(lim[reg].ptr_start, start_iova); in npa_lf_aura_op_range_set() 198 lim[reg].ptr_end = RTE_MAX(lim[reg].ptr_end, end_iova); in npa_lf_aura_op_range_set() 200 otx2_store_pair(lim[reg].ptr_start, reg, in npa_lf_aura_op_range_set() 203 otx2_store_pair(lim[reg].ptr_end, reg, in npa_lf_aura_op_range_set()
|
| H A D | otx2_mempool_ops.c | 685 struct npa_aura_lim *lim = lf->aura_lim; in npa_lf_aura_range_update_check() local 705 if (lim[aura_id].ptr_start != pool->ptr_start || in npa_lf_aura_range_update_check() 706 lim[aura_id].ptr_end != pool->ptr_end) { in npa_lf_aura_range_update_check()
|
| /f-stack/freebsd/amd64/vmm/intel/ |
| H A D | vmcs.c | 134 vmcs_seg_desc_encoding(int seg, uint32_t *base, uint32_t *lim, uint32_t *acc) in vmcs_seg_desc_encoding() argument 140 *lim = VMCS_GUEST_ES_LIMIT; in vmcs_seg_desc_encoding() 145 *lim = VMCS_GUEST_CS_LIMIT; in vmcs_seg_desc_encoding() 150 *lim = VMCS_GUEST_SS_LIMIT; in vmcs_seg_desc_encoding() 155 *lim = VMCS_GUEST_DS_LIMIT; in vmcs_seg_desc_encoding() 160 *lim = VMCS_GUEST_FS_LIMIT; in vmcs_seg_desc_encoding() 165 *lim = VMCS_GUEST_GS_LIMIT; in vmcs_seg_desc_encoding() 170 *lim = VMCS_GUEST_TR_LIMIT; in vmcs_seg_desc_encoding() 175 *lim = VMCS_GUEST_LDTR_LIMIT; in vmcs_seg_desc_encoding() 180 *lim = VMCS_GUEST_IDTR_LIMIT; in vmcs_seg_desc_encoding() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/nvpair/ |
| H A D | nvpair_alloc_fixed.c | 60 uintptr_t lim = base + va_arg(valist, size_t); in nv_fixed_init() local 63 if (base == 0 || (uintptr_t)&nvb[1] > lim) in nv_fixed_init() 68 nvb->nvb_lim = lim; in nv_fixed_init()
|
| /f-stack/dpdk/drivers/net/netvsc/ |
| H A D | hn_vf.c | 156 hn_vf_merge_desc_lim(struct rte_eth_desc_lim *lim, in hn_vf_merge_desc_lim() argument 159 lim->nb_max = RTE_MIN(vf_lim->nb_max, lim->nb_max); in hn_vf_merge_desc_lim() 160 lim->nb_min = RTE_MAX(vf_lim->nb_min, lim->nb_min); in hn_vf_merge_desc_lim() 161 lim->nb_align = RTE_MAX(vf_lim->nb_align, lim->nb_align); in hn_vf_merge_desc_lim() 162 lim->nb_seg_max = RTE_MIN(vf_lim->nb_seg_max, lim->nb_seg_max); in hn_vf_merge_desc_lim() 163 lim->nb_mtu_seg_max = RTE_MIN(vf_lim->nb_seg_max, lim->nb_seg_max); in hn_vf_merge_desc_lim()
|
| /f-stack/freebsd/mips/nlm/ |
| H A D | xlp_machdep.c | 448 uint64_t bridgebase, base, lim, val; in xlp_mem_init() local 467 lim = (val + 1) << 20; in xlp_mem_init() 469 (intmax_t)lim); in xlp_mem_init() 471 if (lim <= base) { in xlp_mem_init() 473 (intmax_t)base, (intmax_t)lim); in xlp_mem_init() 479 } else if (lim >= XLP_MEM_LIM) { in xlp_mem_init() 480 lim = XLP_MEM_LIM; in xlp_mem_init() 486 n = mem_exclude_add(&phys_avail[j], base, lim); in xlp_mem_init()
|
| /f-stack/freebsd/net/route/ |
| H A D | route_ddb.c | 171 int error, i, lim; in DB_SHOW_COMMAND() local 174 i = lim = addr; in DB_SHOW_COMMAND() 177 lim = AF_MAX; in DB_SHOW_COMMAND() 180 for (; i <= lim; i++) { in DB_SHOW_COMMAND()
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | lgc.c | 257 StkId o, lim; in traversestack() local 260 lim = l->top; in traversestack() 263 if (lim < ci->top) lim = ci->top; in traversestack() 267 for (; o <= lim; o++) in traversestack() 269 checkstacksizes(l, lim); in traversestack() 612 l_mem lim = (GCSTEPSIZE/100) * g->gcstepmul; in luaC_step() local 613 if (lim == 0) in luaC_step() 614 lim = (MAX_LUMEM-1)/2; /* no limit */ in luaC_step() 617 lim -= singlestep(L); in luaC_step() 620 } while (lim > 0); in luaC_step()
|
| H A D | ltable.c | 229 int lim = ttlg; in numusearray() local 230 if (lim > t->sizearray) { in numusearray() 231 lim = t->sizearray; /* adjust upper limit */ in numusearray() 232 if (i > lim) in numusearray() 236 for (; i <= lim; i++) { in numusearray()
|
| /f-stack/freebsd/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_radar.c | 140 int n, lim; 155 for (lim = n; lim != 0; lim >>= 1) { 157 cc = &base[lim >> 1]; 169 lim--;
|
| /f-stack/tools/netstat/ |
| H A D | route.c | 249 char *buf, *next, *lim; in p_rtable_sysctl() local 271 lim = buf + needed; in p_rtable_sysctl() 274 for (next = buf; next < lim; next += rtm->rtm_msglen) { in p_rtable_sysctl() 658 u_char *p, *lim; in netname6() local 665 for (masklen = 0, lim = p + 16; p < lim; p++) { in netname6()
|
| H A D | nhgrp.c | 200 char *buf, *next, *lim; in dump_nhgrp_sysctl() local 220 lim = buf + needed; in dump_nhgrp_sysctl() 229 for (next = buf; next < lim; next += rtm->rtm_msglen) { in dump_nhgrp_sysctl()
|
| H A D | nhops.c | 348 char *buf, *next, *lim; in dump_nhops_sysctl() local 368 lim = buf + needed; in dump_nhops_sysctl() 377 for (next = buf; next < lim; next += rtm->rtm_msglen) { in dump_nhops_sysctl()
|
| /f-stack/dpdk/drivers/net/sfc/ |
| H A D | sfc.c | 259 efx_drv_limits_t lim; in sfc_set_drv_limits() local 261 memset(&lim, 0, sizeof(lim)); in sfc_set_drv_limits() 264 lim.edl_min_evq_count = lim.edl_max_evq_count = in sfc_set_drv_limits() 266 lim.edl_min_rxq_count = lim.edl_max_rxq_count = data->nb_rx_queues; in sfc_set_drv_limits() 267 lim.edl_min_txq_count = lim.edl_max_txq_count = data->nb_tx_queues; in sfc_set_drv_limits() 269 return efx_nic_set_drv_limits(sa->nic, &lim); in sfc_set_drv_limits()
|
| /f-stack/freebsd/contrib/openzfs/module/lua/ |
| H A D | ltable.c | 236 int lim = ttlg; in numusearray() local 237 if (lim > t->sizearray) { in numusearray() 238 lim = t->sizearray; /* adjust upper limit */ in numusearray() 239 if (i > lim) in numusearray() 243 for (; i <= lim; i++) { in numusearray()
|
| H A D | ldo.c | 233 int lim = L->stacksize; in luaD_reallocstack() local 237 for (; lim < newsize; lim++) in luaD_reallocstack() 238 setnilvalue(L->stack + lim); /* erase new segment */ in luaD_reallocstack() 266 StkId lim = L->top; in stackinuse() local 269 if (lim < ci->top) lim = ci->top; in stackinuse() 271 return cast_int(lim - L->stack) + 1; /* part of stack in use */ in stackinuse()
|
| /f-stack/freebsd/net/ |
| H A D | radix.c | 183 caddr_t lim, lim2 = lim = n + LEN(n); in rn_refines() local 188 lim -= longer; in rn_refines() 189 while (n < lim) { in rn_refines() 561 u_char *mp = m_arg, *np = n_arg, *lim; in rn_lexobetter() local 566 for (lim = mp + LEN(mp); mp < lim;) in rn_lexobetter()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_thread.c | 587 struct plimit *lim; in thread_reap_domain() local 611 lim = NULL; in thread_reap_domain() 620 if (lim != itd->td_limit) { in thread_reap_domain() 622 lim_freen(lim, limcount); in thread_reap_domain() 626 lim = itd->td_limit; in thread_reap_domain() 645 lim_freen(lim, limcount); in thread_reap_domain()
|
| /f-stack/tools/arp/ |
| H A D | arp.c | 566 char *lim, *buf, *next; in search() local 599 lim = buf + needed; in search() 600 for (next = buf; next < lim; next += rtm->rtm_msglen) { in search()
|
| /f-stack/dpdk/lib/librte_eal/linux/ |
| H A D | eal_memory.c | 1909 struct rlimit lim; local 1915 if (getrlimit(RLIMIT_NOFILE, &lim) == 0) { 1917 lim.rlim_cur = lim.rlim_max; 1919 if (setrlimit(RLIMIT_NOFILE, &lim) < 0) { 1925 (uint64_t)lim.rlim_cur);
|
| /f-stack/tools/ipfw/ |
| H A D | nat.c | 92 char *buf, *lim, *next; in set_addr_dynamic() local 113 lim = buf + needed; in set_addr_dynamic() 122 while (next < lim) { in set_addr_dynamic() 146 while (next < lim) { in set_addr_dynamic()
|
| /f-stack/freebsd/netinet6/ |
| H A D | in6.c | 205 u_char *lim = lim0, *p; in in6_mask2len() local 209 lim = (u_char *)mask + sizeof(*mask); in in6_mask2len() 210 for (p = (u_char *)mask; p < lim; x++, p++) { in in6_mask2len() 215 if (p < lim) { in in6_mask2len() 226 if (p < lim) { in in6_mask2len() 229 for (p = p + 1; p < lim; p++) in in6_mask2len() 1813 u_char *lim = s + 16, r; in in6_matchlen() local 1815 while (s < lim) in in6_matchlen()
|