Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 25 of 117) sorted by relevance

12345

/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.c29 int nr = 0; in ptr_list_size() local
34 nr += list->nr - list->rm; in ptr_list_size()
37 return nr; in ptr_list_size()
52 if (list->nr - list->rm) in ptr_list_empty()
66 int nr = 0; in ptr_list_multiple() local
72 nr += list->nr - list->rm; in ptr_list_multiple()
73 if (nr > 1) in ptr_list_multiple()
91 while (list->nr == 0) { in first_ptr_list()
110 while (list->nr == 0) { in last_ptr_list()
115 return PTR_ENTRY_NOTAG(list, list->nr-1); in last_ptr_list()
[all …]
H A Dbitmap.h10 static inline int test_bit(unsigned int nr, unsigned long *bitmap) in test_bit() argument
12 unsigned long offset = nr / BITS_IN_LONG; in test_bit()
13 unsigned long bit = nr & (BITS_IN_LONG-1); in test_bit()
17 static inline void set_bit(unsigned int nr, unsigned long *bitmap) in set_bit() argument
19 unsigned long offset = nr / BITS_IN_LONG; in set_bit()
20 unsigned long bit = nr & (BITS_IN_LONG-1); in set_bit()
24 static inline void clear_bit(unsigned int nr, unsigned long *bitmap) in clear_bit() argument
26 unsigned long offset = nr / BITS_IN_LONG; in clear_bit()
27 unsigned long bit = nr & (BITS_IN_LONG-1); in clear_bit()
31 static inline int test_and_set_bit(unsigned int nr, unsigned long *bitmap) in test_and_set_bit() argument
[all …]
H A Dsmatch_recurse.c24 void *param, int nr) in recurse() argument
35 if (nr > RECURSE_LIMIT) in recurse()
37 nr++; in recurse()
41 ret = recurse(expr->unop, func, param, nr); in recurse()
44 ret = recurse(expr->unop, func, param, nr); in recurse()
53 ret = recurse(expr->left, func, param, nr); in recurse()
56 ret = recurse(expr->right, func, param, nr); in recurse()
59 ret = recurse(expr->right, func, param, nr); in recurse()
62 ret = recurse(expr->left, func, param, nr); in recurse()
65 ret = recurse(expr->deref, func, param, nr); in recurse()
[all …]
H A Dsort.c46 static void array_sort(void **ptr, int nr, int (*cmp)(const void *, const void *)) in array_sort() argument
49 for (i = 1; i < nr; i++) { in array_sort()
71 while (l->nr == 0) { in verify_seq_sorted()
81 if (++i >= l->nr) { in verify_seq_sorted()
98 int nr = (b)->nr; \
99 assert (nbuf >= nr); \
100 memcpy ((b)->list, buffer, nr * sizeof (void *)); \
101 nbuf -= nr; \
102 memmove (buffer, buffer + nr, nbuf * sizeof (void *)); \
107 assert (nbuf <= (b)->nr); \
[all …]
H A Dptrmap.c38 int nr; member
51 int nr; in __ptrmap_add() local
57 if ((nr = map->nr) < MAP_NR) in __ptrmap_add()
70 nr = 0; in __ptrmap_add()
73 pair = &map->pairs[nr]; in __ptrmap_add()
76 map->nr = ++nr; in __ptrmap_add()
82 int i, n = map->nr; in __ptrmap_lookup()
97 int i, n = map->nr; in __ptrmap_update()
H A Dsmatch_passes_array_size.c44 int i, nr; in match_call() local
64 nr = find_param_eq(expr, size); in match_call()
65 if (nr >= 0) { in match_call()
66 snprintf(buf, sizeof(buf), "==$%d", nr); in match_call()
73 nr = find_param_eq(expr, bytes); in match_call()
74 if (nr >= 0) { in match_call()
75 snprintf(buf, sizeof(buf), "==$%d", nr); in match_call()
H A Dptrlist.h22 int nr:8; \
151 if (__nr < __list->nr) { \
194 for (__nr = 0; __nr < __list->nr; __nr++) { \
212 __nr = __list->nr; \
233 __newnr = __newlist->nr; \
246 if (__list->nr == LIST_NODE_NR) { \
248 if (__nr >= __list->nr) { \
249 __nr -= __list->nr; \
254 __last = __list->list + __list->nr - 1; \
260 __list->nr++; \
[all …]
H A Dcheck_trinity_generator.c32 static int gen_custom_struct(int nr, struct symbol *arg) in gen_custom_struct() argument
37 static void print_arg(int nr, struct symbol *arg) in print_arg() argument
39 fprintf(sysc_fd, "\t.arg%dname = \"%s\",\n", nr + 1, arg->ident->name); in print_arg()
40 fprintf(sysc_fd, "\t.arg%dtype = %s,\n", nr + 1, get_syscall_arg_type(arg)); in print_arg()
H A Dtest-sort.c38 l2->nr = MIN (l2->nr, rand () % 3); in main()
39 for (i = 0; i < l2->nr; i++) in main()
/illumos-gate/usr/src/uts/common/io/
H A Dtl.c815 #define nr 127 /* not reachable */ macro
826 { 1, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
828 {nr, nr, nr, 2, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
830 {nr, nr, nr, 4, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
832 {nr, 3, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
834 {nr, nr, nr, nr, 3, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
836 {nr, 0, 3, nr, 3, 3, nr, nr, 7, nr, nr, nr, 6, 7, 9, 10, 11},
838 {nr, nr, 0, nr, nr, 6, nr, nr, nr, nr, nr, nr, 3, nr, 3, 3, 3},
840 {nr, nr, nr, nr, nr, nr, nr, nr, 9, nr, nr, nr, nr, 3, nr, nr, nr},
842 {nr, nr, nr, nr, nr, nr, nr, nr, 3, nr, nr, nr, nr, 3, nr, nr, nr},
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_get.c99 ssize_t nr; local
211 if ((ret = __os_read(dblp->c_fd, &hdr, sizeof(HDR), &nr)) != 0) {
215 if (nr == sizeof(HDR))
219 if (nr == 0) {
233 if (lp->b_off < sizeof(HDR) - nr)
237 memcpy((u_int8_t *)&hdr + nr, lp->buf, sizeof(HDR) - nr);
238 shortp = lp->buf + (sizeof(HDR) - nr);
276 if ((ret = __os_read(dblp->c_fd, tbuf, len, &nr)) != 0) {
280 if (len - nr > sizeof(lp->buf))
282 if (nr != (ssize_t)len) {
[all …]
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Ddit_access_utils.c256 int valueLen, comLen, numVals, nr, count = 1; in datumToRuleValue() local
418 subrvq = processSplitField(sf, valA[i], &nr, statP); in datumToRuleValue()
432 if ((newrvq = initRuleValue(count * nr, 0)) == 0) { in datumToRuleValue()
434 freeRuleValue(subrvq, nr); in datumToRuleValue()
438 for (j = 0, l = 0; j < nr; j++) { in datumToRuleValue()
451 count * nr); in datumToRuleValue()
452 freeRuleValue(subrvq, nr); in datumToRuleValue()
461 freeRuleValue(subrvq, nr); in datumToRuleValue()
1013 int i, rc, nr = 0; in singleReadFromDIT() local
1096 nr = (ls->isDN)?0:-1; in singleReadFromDIT()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Ddoupdate.c660 register int or, nr, cc; local
675 for (cc = 1, ++lr, nr = fr+1; nr <= lr; ++nr, ++cc) {
677 LC(fr,nr).cost = cc * 3;
678 LC(fr,nr).op = 'i';
681 LC(nr,fr).cost = cc;
682 LC(nr,fr).op = 'd';
686 for (nr = fr; nr <= lr; ++nr) {
687 lcp = &LC(or+1,nr+1);
690 lcp->cost = LC(or,nr).cost;
693 if (ohash[or] != nhash[nr]
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_rw.c95 ssize_t nr; local
99 offset = 0; offset < len; taddr += nr, offset += nr) {
100 if ((nr = __db_jump.j_read != NULL ?
104 if (nr == 0)
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtype.c341 Namval_t *nr = nv_namptr( pp->childfun.ttype->nodes,i); in fixnode() local
342 if(nr->nvalue.cp!=nq->nvalue.cp) in fixnode()
368 register Namval_t *nq, *nr; in clone_type() local
433 nr = nv_create(stakptr(offset),root,NV_VARNAME|NV_NOADD,fp); in clone_type()
436 if(nr) in clone_type()
442 if((size = nv_datasize(nr,(size_t*)0)) && size==nv_datasize(nq,(size_t*)0)) in clone_type()
443 memcpy((char*)nq->nvalue.cp,nr->nvalue.cp,size); in clone_type()
444 else if(ap=nv_arrayptr(nr)) in clone_type()
446 nv_putsub(nr,NIL(char*),ARRAY_SCAN|ARRAY_NOSCOPE); in clone_type()
450 cp = (char*)((*ap->fun)(nr,NIL(char*),NV_ANAME)); in clone_type()
[all …]
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/
H A DLgrp.xs100 int nr; \
104 nr = lgrp_resources(c, lgrp, NULL, 0, type); \
105 if (nr < 0) \
108 XSRETURN_IV(nr); \
109 if (nr == 0) { \
111 } else if (New(0, lgrps, nr, lgrp_id_t) == NULL) { \
115 nr = lgrp_resources(c, lgrp, lgrps, nr, type); \
116 PUSHARRAY(lgrps, nr); \
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Ddoupdate.c793 int or, nr, cc; in cost() local
810 for (cc = 1, ++lr, nr = fr+1; nr <= lr; ++nr, ++cc) { in cost()
812 LC(fr, nr).cost = cc * INSERT_COST; in cost()
813 LC(fr, nr).op = 'i'; in cost()
816 LC(nr, fr).cost = cc * DELETE_COST; in cost()
817 LC(nr, fr).op = 'd'; in cost()
821 for (nr = fr; nr <= lr; ++nr) { in cost()
822 lcp = &LC(or + 1, nr + 1); in cost()
825 lcp->cost = LC(or, nr).cost; in cost()
828 if (ohash[or] != nhash[nr]) { in cost()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Drefer7.c49 int c, g1 = 0, nr = 1; in dumpold() local
67 nr++; in dumpold()
80 newr[atoi(tb)] = nr; in dumpold()
83 nr, atoi(tb)); in dumpold()
85 fprintf(ftemp, "%d", nr); in dumpold()
/illumos-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_bh.c156 ssize_t nr; local
171 nr = 0;
188 ret = __os_io(&db_io, DB_IO_READ, &nr);
192 if (nr < (ssize_t)pagesize)
210 if (nr != (ssize_t)pagesize) {
212 if (nr < (ssize_t)len)
213 memset(bhp->buf + nr, 0, len - nr);
215 if (nr > (ssize_t)len)
216 len = nr;
/illumos-gate/usr/src/cmd/bnu/
H A Dcpmv.c48 register int nr, nw; local
85 while ((nr = read(fd1, buf, sizeof (buf))) > 0 &&
86 (nw = write(fd2, buf, nr)) == nr)
92 if (nr != 0 || nw == -1) {
/illumos-gate/usr/src/common/crypto/aes/
H A Daes_impl.c1121 key->nr = rijndael_key_setup_enc(&(key->encr_ks.ks64[0]), keyarr32, in aes_setupkeys()
1123 key->nr = rijndael_key_setup_dec(&(key->decr_ks.ks64[0]), keyarr32, in aes_setupkeys()
1146 key->nr = rijndael_key_setup_enc_intel(&(key->encr_ks.ks32[0]), in aes_setupkeys()
1148 key->nr = rijndael_key_setup_dec_intel(&(key->decr_ks.ks32[0]), in aes_setupkeys()
1153 key->nr = rijndael_key_setup_enc_amd64(&(key->encr_ks.ks32[0]), in aes_setupkeys()
1155 key->nr = rijndael_key_setup_dec_amd64(&(key->decr_ks.ks32[0]), in aes_setupkeys()
1295 key->nr = rijndael_key_setup_enc(&(key->encr_ks.ks32[0]), keyarr32, in aes_setupkeys()
1297 key->nr = rijndael_key_setup_dec(&(key->decr_ks.ks32[0]), keyarr32, in aes_setupkeys()
1580 newbie->nr = 10; in aes_init_keysched()
1584 newbie->nr = 12; in aes_init_keysched()
[all …]
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregexec.c62 size_t nr; in xmbrtowc() local
65 nr = mbrtowc(&wc, s, n, mbs); in xmbrtowc()
68 if (nr == 0) in xmbrtowc()
70 else if (nr == (size_t)-1 || nr == (size_t)-2) { in xmbrtowc()
76 return (nr); in xmbrtowc()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dconditional-type.c6 int nr:2; member
66 if (s.nr) return 1; in good_if_bitfield()
67 if (p->nr) return 1; in good_if_bitfield()
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_ring.c74 rdsv3_ib_ring_init(struct rdsv3_ib_work_ring *ring, uint32_t nr) in rdsv3_ib_ring_init() argument
77 ring->w_nr = nr; in rdsv3_ib_ring_init()
94 rdsv3_ib_ring_resize(struct rdsv3_ib_work_ring *ring, uint32_t nr) in rdsv3_ib_ring_resize() argument
101 ring->w_nr = nr; in rdsv3_ib_ring_resize()
/illumos-gate/usr/src/uts/common/xen/public/hvm/
H A Dhvm_op.h87 uint64_aligned_t nr; member
103 uint64_aligned_t nr; member
123 uint64_aligned_t nr; member

12345