Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.c34 nr += list->nr - list->rm; in ptr_list_size()
37 return nr; in ptr_list_size()
72 nr += list->nr - list->rm; in ptr_list_multiple()
130 unsigned int nr = list->nr; in ptr_list_nth_entry() local
226 int old = head->nr, nr = old / 2; in split_ptr_list_head() local
236 newlist->nr = nr; in split_ptr_list_head()
279 nr++; in __add_ptr_list()
280 last->nr = nr; in __add_ptr_list()
316 int nr = list->nr; in lookup_ptr_list_entry() local
387 int nr = --last->nr; in undo_ptr_list_last() local
[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()
19 unsigned long offset = nr / BITS_IN_LONG; in set_bit()
20 unsigned long bit = nr & (BITS_IN_LONG-1); in set_bit()
26 unsigned long offset = nr / BITS_IN_LONG; in clear_bit()
27 unsigned long bit = nr & (BITS_IN_LONG-1); in clear_bit()
33 unsigned long offset = nr / BITS_IN_LONG; in test_and_set_bit()
34 unsigned long bit = nr & (BITS_IN_LONG-1); in test_and_set_bit()
43 unsigned long offset = nr / BITS_IN_LONG; in test_and_clear_bit()
[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.c49 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); \
101 nbuf -= nr; \
129 while (b2->nr == 0) { in merge_block_seqs()
140 while (b1->nr == 0 || in merge_block_seqs()
165 if (++i1 >= b1->nr) { in merge_block_seqs()
181 } while (b1->nr == 0); in merge_block_seqs()
[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.c826 { 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},
848 {nr, nr, nr, 5, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
850 {nr, nr, nr, nr, nr, nr, nr, 8, nr, nr, nr, nr, nr, nr, nr, nr, nr},
862 {nr, nr, nr, nr, nr, nr, 9, nr, nr, nr, nr, nr, nr, nr, nr, nr, nr},
872 {nr, nr, nr, nr, nr, nr, nr, 3, nr, nr, nr, nr, nr, nr, nr, nr, nr},
874 {nr, nr, nr, nr, nr, nr, nr, 7, nr, nr, nr, nr, nr, nr, nr, nr, nr},
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_get.c99 ssize_t nr; local
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) {
283 if (lp->b_off < len - nr)
[all …]
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Ddit_access_utils.c451 count * nr); in datumToRuleValue()
1013 int i, rc, nr = 0; in singleReadFromDIT() local
1096 nr = (ls->isDN)?0:-1; in singleReadFromDIT()
1110 if (nr > 1) { in singleReadFromDIT()
1339 nr = nv; in singleWriteToDIT()
1343 if (nr == -1) { in singleWriteToDIT()
1350 } else if (nr == 0) { in singleWriteToDIT()
1656 nr = -1; in makeNISObject()
1769 int rc, nr; in addParent() local
1793 nr = -1; in addParent()
[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.c436 if(nr) in clone_type()
452 cp = nv_getsub(nr); in clone_type()
464 cp = nv_getval(nr); in clone_type()
468 while(nv_nextsub(nr)); in clone_type()
474 nv_addnode(nr,1); in clone_type()
478 _nv_unset(nr,0); in clone_type()
1034 if(!nv_isattr(nr,NV_REF) && !nv_hasdisc(nr,&type_disc)) in nv_mktype()
1036 if(nr->nvsize) in nv_mktype()
1037 memcpy((char*)nq->nvalue.cp,nr->nvalue.cp,size=nv_datasize(nr,(size_t*)0)); in nv_mktype()
1106 if(nr->nvalue.cp) in nv_mktype()
[all …]
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/
H A DLgrp.xs102 int nr; \
106 nr = lgrp_resources(c, lgrp, NULL, 0, type); \
107 if (nr < 0) \
110 XSRETURN_IV(nr); \
111 if (nr == 0) { \
113 } else if (New(0, lgrps, nr, lgrp_id_t) == NULL) { \
117 nr = lgrp_resources(c, lgrp, lgrps, nr, type); \
118 PUSHARRAY(lgrps, nr); \
/illumos-gate/usr/src/cmd/refer/
H A Drefer7.c51 int c, g1 = 0, nr = 1; in dumpold() local
69 nr++; in dumpold()
82 newr[atoi(tb)] = nr; in dumpold()
85 nr, atoi(tb)); in dumpold()
87 fprintf(ftemp, "%d", nr); in dumpold()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Ddoupdate.c795 int or, nr, cc; in cost() local
812 for (cc = 1, ++lr, nr = fr+1; nr <= lr; ++nr, ++cc) { in cost()
814 LC(fr, nr).cost = cc * INSERT_COST; in cost()
815 LC(fr, nr).op = 'i'; in cost()
818 LC(nr, fr).cost = cc * DELETE_COST; in cost()
819 LC(nr, fr).op = 'd'; in cost()
823 for (nr = fr; nr <= lr; ++nr) { in cost()
824 lcp = &LC(or + 1, nr + 1); in cost()
827 lcp->cost = LC(or, nr).cost; in cost()
830 if (ohash[or] != nhash[nr]) { in cost()
[all …]
/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/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/lib/libc/port/regex/
H A Dregexec.c65 size_t nr; in xmbrtowc() local
68 nr = mbrtowc(&wc, s, n, mbs); in xmbrtowc()
71 if (nr == 0) in xmbrtowc()
73 else if (nr == (size_t)-1 || nr == (size_t)-2) { in xmbrtowc()
79 return (nr); in xmbrtowc()
/illumos-gate/usr/src/common/crypto/aes/
H A Daes_impl.c1146 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()
1580 newbie->nr = 10; in aes_init_keysched()
1584 newbie->nr = 12; in aes_init_keysched()
1588 newbie->nr = 14; in aes_init_keysched()
1643 AES_ENCRYPT_IMPL(&ksch->encr_ks.ks32[0], ksch->nr, in aes_encrypt_block()
1661 AES_ENCRYPT_IMPL(&ksch->encr_ks.ks32[0], ksch->nr, in aes_encrypt_block()
1696 AES_DECRYPT_IMPL(&ksch->decr_ks.ks32[0], ksch->nr, in aes_decrypt_block()
[all …]
/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