Searched refs:lim (Results 26 - 50 of 157) sorted by relevance

1234567

/freebsd-10-stable/sys/dev/netmap/
H A Dif_ixl_netmap.h166 u_int const lim = kring->nkr_num_slots - 1; local
248 nm_i = nm_next(nm_i, lim);
249 nic_i = nm_next(nic_i, lim);
268 kring->nr_hwtail = nm_prev(netmap_idx_n2k(kring, nic_i), lim);
299 u_int const lim = kring->nkr_num_slots - 1; local
308 if (head > lim)
350 nm_i = nm_next(nm_i, lim);
351 nic_i = nm_next(nic_i, lim);
396 nm_i = nm_next(nm_i, lim);
397 nic_i = nm_next(nic_i, lim);
[all...]
H A Dif_em_netmap.h124 u_int const lim = kring->nkr_num_slots - 1; local
172 nm_i = nm_next(nm_i, lim);
173 nic_i = nm_next(nic_i, lim);
197 kring->nr_hwtail = nm_prev(netmap_idx_n2k(kring, nic_i), lim);
219 u_int const lim = kring->nkr_num_slots - 1; local
227 if (head > lim)
253 nm_i = nm_next(nm_i, lim);
256 nic_i = nm_next(nic_i, lim);
291 nm_i = nm_next(nm_i, lim);
292 nic_i = nm_next(nic_i, lim);
[all...]
H A Dif_re_netmap.h76 u_int const lim = kring->nkr_num_slots - 1; local
108 if (nic_i == lim) /* mark end of ring */
128 nm_i = nm_next(nm_i, lim);
129 nic_i = nm_next(nic_i, lim);
158 kring->nr_hwtail = nm_prev(netmap_idx_n2k(kring, nic_i), lim);
180 u_int const lim = kring->nkr_num_slots - 1; local
188 if (head > lim)
205 uint32_t stop_i = nm_prev(kring->nr_hwcur, lim);
226 nm_i = nm_next(nm_i, lim);
227 nic_i = nm_next(nic_i, lim);
[all...]
H A Dif_vtnet_netmap.h118 u_int const lim = kring->nkr_num_slots - 1; local
163 nm_i = nm_next(nm_i, lim);
164 nic_i = nm_next(nic_i, lim);
206 if (kring->nr_hwtail > lim)
207 kring->nr_hwtail -= lim + 1;
230 u_int const lim = kring->nkr_num_slots - 1; local
264 nm_i = nm_next(nm_i, lim);
280 u_int const lim = kring->nkr_num_slots - 1; local
291 if (head > lim)
316 nm_i = nm_next(nm_i, lim);
[all...]
H A Dnetmap_generic.c433 u_int const lim = kring->nkr_num_slots - 1; local
434 u_int nm_i = nm_next(kring->nr_hwtail, lim);
454 nm_i = nm_next(nm_i, lim);
460 /* if hwcur - nm_i < lim/8 do an early break
464 if (hwcur - nm_i < lim/2)
467 if (hwcur + lim + 1 - nm_i < lim/2)
473 kring->nr_hwtail = nm_prev(nm_i, lim);
557 u_int const lim = kring->nkr_num_slots - 1; local
626 nm_i = nm_next(nm_i, lim);
714 u_int const lim = kring->nkr_num_slots - 1; local
[all...]
H A Dnetmap.c607 nm_dump_buf(char *p, int len, int lim, char *dst) argument
619 if (lim <= 0 || lim > len)
620 lim = len;
622 sprintf(o, "buf 0x%p len %d lim %d\n", p, len, lim);
625 for (i = 0; i < lim; ) {
630 for (j=0; j < 16 && i < lim; i++, j++) {
635 for (j=0; j < 16 && i < lim; i++, j++)
1150 u_int const lim local
1239 u_int const lim = kring->nkr_num_slots - 1; local
1281 u_int const lim = kring->nkr_num_slots - 1; local
1703 u_int i, lim = kring->nkr_num_slots - 1; local
2895 int new_hwofs, lim; local
[all...]
H A Dnetmap_vale.c406 int i, lim =b->bdg_active_ports; local
420 D("detach %d and %d (lim %d)", hw, sw, lim);
425 for (i = 0; (hw >= 0 || sw >= 0) && i < lim; ) {
428 lim--; /* point to last active port */
429 tmp[i] = tmp[lim]; /* swap with i */
430 tmp[lim] = hw; /* now this is inactive */
434 lim--;
435 tmp[i] = tmp[lim];
436 tmp[lim]
1044 u_int j = kring->nr_hwcur, lim = kring->nkr_num_slots - 1; local
1281 uint32_t lim = k->nkr_num_slots - 1; local
1398 u_int dst_nr, lim, j, d_i, next, brd_next; local
1651 u_int const lim = kring->nkr_num_slots - 1; local
1689 u_int nm_i, lim = kring->nkr_num_slots - 1; local
2190 u_int lim; local
[all...]
/freebsd-10-stable/sys/amd64/vmm/intel/
H A Dvmcs.c128 vmcs_seg_desc_encoding(int seg, uint32_t *base, uint32_t *lim, uint32_t *acc) argument
134 *lim = VMCS_GUEST_ES_LIMIT;
139 *lim = VMCS_GUEST_CS_LIMIT;
144 *lim = VMCS_GUEST_SS_LIMIT;
149 *lim = VMCS_GUEST_DS_LIMIT;
154 *lim = VMCS_GUEST_FS_LIMIT;
159 *lim = VMCS_GUEST_GS_LIMIT;
164 *lim = VMCS_GUEST_TR_LIMIT;
169 *lim = VMCS_GUEST_LDTR_LIMIT;
174 *lim
[all...]
/freebsd-10-stable/gnu/usr.bin/grep/
H A Dgrep.c559 nlscan (char const *lim) argument
563 for (beg = lastnl; beg != lim; beg = memchr (beg, eolbyte, lim - beg), beg++)
566 lastnl = lim;
588 prline (char const *beg, char const *lim, int sep) argument
597 lastnl = lim;
611 while ((match_offset = (*execute) (beg, lim - beg, &match_size, 1))
615 if (b == lim)
627 lastout = lim;
636 while (lim
665 prpending(char const *lim) argument
686 prtext(char const *beg, char const *lim, int *nlinesp) argument
751 grepbuf(char const *beg, char const *lim) argument
810 char *lim; local
[all...]
/freebsd-10-stable/contrib/ipfilter/ipsend/
H A D44arp.c70 char *lim, *buf, *next; local
109 lim = buf + needed;
110 for (next = buf; next < lim; next += rtm->rtm_msglen)
/freebsd-10-stable/usr.sbin/rtadvd/
H A Dif.c166 get_next_msg(char *buf, char *lim, int ifindex, size_t *lenp, int filter) argument
174 rtm < (struct rt_msghdr *)lim;
179 "(buf=%p lim=%p rtm=%p)", __func__,
180 buf, lim, rtm);
186 "(buf=%p lim=%p rtm=%p)", __func__,
187 buf, lim, rtm);
288 char *p, *lim; local
295 lim = (char *)sa + sa->sa_len;
296 return prefixlen(p, lim);
300 prefixlen(unsigned char *p, unsigned char *lim) argument
419 char *lim; local
601 get_next_msghdr(struct if_msghdr *ifm, struct if_msghdr *lim) argument
[all...]
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_msgget.c202 int i, lim = 0; local
205 if (sysctlbyname("kern.ipc.msgmni", &lim, &len, NULL, 0) != 0)
208 buf = calloc(lim + 1, sizeof(*buf));
211 for (i = 0; i < lim; i++) {
235 for (i = 0; i < lim; i++)
241 atf_tc_fail("msgget(2) opened more than %d queues", lim);
H A Dt_setrlimit.c84 int *buf, lim; local
92 for (i = lim = 0; i < __arraycount(rlimit); i++) {
109 lim = rlimit[i];
130 if (lim != 0)
131 atf_tc_fail("failed to set limit (%d)", lim);
378 static const rlim_t lim = 12; local
387 res.rlim_cur = lim;
388 res.rlim_max = lim;
403 for (i = 0; i < (int)lim; i++) {
/freebsd-10-stable/sys/ia64/ia64/
H A Defi.c187 struct efi_md *lim; local
189 lim = efi_md_last();
191 return ((md > lim) ? NULL : md);
197 struct efi_md *lim; local
199 lim = efi_md_first();
201 return ((md < lim) ? NULL : md);
/freebsd-10-stable/sbin/routed/
H A Dinput.c147 struct netinfo *n, *lim; local
185 lim = (struct netinfo *)((char*)rip + cc);
198 && n < lim && n->n_family == RIP_AF_AUTH) {
254 if (n >= lim) {
275 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth))
444 if (++v12buf.n >= v12buf.lim)
446 } while (++n < lim);
556 if (n >= lim) {
602 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth))
769 } while (++n < lim);
938 ck_passwd(struct interface *aifp, struct rip *rip, void *lim, naddr from, struct msg_limit *use_authp) argument
[all...]
/freebsd-10-stable/contrib/diff/lib/
H A Dexclude.c211 char const *lim; local
237 lim = buf + buf_count + ! (buf_count == 0 || buf[buf_count - 1] == line_end);
240 for (p = buf; p < lim; p++)
/freebsd-10-stable/contrib/llvm/include/llvm/CodeGen/
H A DScheduleDFS.h119 SchedDFSResult(bool IsBU, unsigned lim) argument
120 : IsBottomUp(IsBU), SubtreeLimit(lim) {}
/freebsd-10-stable/usr.bin/mkimg/
H A Dvmdk.c115 off_t cur, lim; local
226 lim = sec * VMDK_SECTOR_SIZE;
227 if (cur < lim) {
231 while (!error && cur < lim) {
/freebsd-10-stable/lib/libc/stdlib/
H A Drandom.c241 int i, lim; local
245 lim = NSHUFF;
251 lim = 10 * rand_deg;
253 for (i = 0; i < lim; i++)
/freebsd-10-stable/contrib/unbound/services/cache/
H A Dinfra.c181 d->lim = -1;
203 d->lim = atoi(p->str2);
715 if(d->node.labs == labs && d->lim != -1)
716 return d->lim; /* exact match */
806 int lim, max; local
813 lim = infra_find_ratelimit(infra, name, namelen);
824 if(premax < lim && max >= lim) {
827 verbose(VERB_OPS, "ratelimit exceeded %s %d", buf, lim);
829 return (max < lim);
856 int lim, max; local
[all...]
/freebsd-10-stable/contrib/gdb/gdb/
H A Devent-top.c497 char *lim = (char *) sbrk (0);
498 space_at_cmd_start = lim - lim_at_start;
541 char *lim = (char *) sbrk (0);
542 long space_now = lim - lim_at_start;
579 char *lim = (char *) sbrk (0);
580 long space_now = lim - lim_at_start;
495 char *lim = (char *) sbrk (0); local
539 char *lim = (char *) sbrk (0); local
577 char *lim = (char *) sbrk (0); local
/freebsd-10-stable/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_radar.c140 int n, lim;
155 for (lim = n; lim != 0; lim >>= 1) {
157 cc = &base[lim >> 1];
169 lim--;
/freebsd-10-stable/sbin/routed/rtquery/
H A Drtquery.c602 struct netinfo *n, *lim; local
651 lim = (struct netinfo *)((char*)n + size) - 1;
652 for (; n <= lim; n++) {
742 if (md5_authed && n+1 > lim
867 int lim)
878 if (lim == 0)
910 --lim;
916 if (lim != 0)
863 parse_quote(char **linep, const char *delims, char *delimp, char *buf, int lim) argument
/freebsd-10-stable/sys/mips/nlm/
H A Dxlp_machdep.c475 uint64_t bridgebase, base, lim, val; local
494 lim = (val + 1) << 20;
496 (intmax_t)lim);
498 if (lim <= base) {
500 (intmax_t)base, (intmax_t)lim);
506 } else if (lim >= XLP_MEM_LIM) {
507 lim = XLP_MEM_LIM;
513 n = mem_exclude_add(&phys_avail[j], base, lim);
/freebsd-10-stable/lib/libedit/
H A Dchared.h82 char *lim; member in struct:c_redo_t

Completed in 158 milliseconds

1234567