| /src/usr.sbin/mopd/mopprobe/ |
| mopprobe.c | 98 int idx, i, trans; local in function:mopProcess 103 idx = 0; 133 moplen = mopGetShort(pkt,&idx); 135 mopcode = mopGetChar(p,&idx); 143 tmpc = mopGetChar(pkt,&idx); /* Reserved */ 144 (void)mopGetShort(pkt,&idx); /* Receipt # */ 146 itype = mopGetShort(pkt,&idx); 148 while (idx < (int)(moplen + 2)) { 149 ilen = mopGetChar(pkt,&idx); 152 tmpc = mopGetChar(pkt,&idx); [all...] |
| /src/usr.sbin/mopd/common/ |
| get.c | 41 mopGetChar(const u_char *pkt, int *idx) 45 ret = pkt[*idx]; 46 *idx = *idx + 1; 51 mopGetShort(const u_char *pkt, int *idx) 55 ret = pkt[*idx] + pkt[*idx+1]*256; 56 *idx = *idx + 2; 61 mopGetLong(const u_char *pkt, int *idx) [all...] |
| put.c | 37 mopPutChar(u_char *pkt, int *idx, u_char value) 39 pkt[*idx] = value; 40 *idx = *idx + 1; 44 mopPutShort(u_char *pkt, int *idx, u_short value) 48 pkt[*idx+i] = value % 256; 51 *idx = *idx + 2; 55 mopPutLong(u_char *pkt, int *idx, u_int32_t value) 59 pkt[*idx+i] = value % 256 139 int idx = 0; local in function:mopPutLength [all...] |
| dl.c | 41 int i,idx = 0; local in function:mopDumpDL 51 idx = 22; 55 idx = 16; 58 code = mopGetChar(pkt,&idx); 63 tmpc = mopGetChar(pkt,&idx); /* Load Number */ 67 tmpl = mopGetLong(pkt,&idx);/* Load Address */ 86 mopGetChar(pkt,&idx)); 94 idx = idx + moplen - 10; 98 tmpl = mopGetLong(pkt,&idx); /* Load Address * [all...] |
| rc.c | 41 int i,idx = 0; local in function:mopDumpRC 50 idx = 22; 54 idx = 16; 57 code = mopGetChar(pkt,&idx); 62 tmpc = mopGetChar(pkt,&idx); 65 tmps = mopGetShort(pkt,&idx); 72 tmps = mopGetShort(pkt,&idx); 76 tmpl = mopGetLong(pkt,&idx); 79 tmpc = mopGetChar(pkt,&idx); /* Processor */ 83 control = mopGetChar(pkt,&idx); /* Control * [all...] |
| print.c | 99 int idx = 0; local in function:mopPrintOneline 106 mopGetHeader(pkt, &idx, &dst, &src, &proto, &len, trans); 107 code = mopGetChar(pkt, &idx); 249 int len, idx = 0; local in function:mopPrintHeader 252 mopGetHeader(pkt, &idx, &dst, &src, &proto, &len, trans); 310 int len, idx = 0; local in function:mopPrintMopHeader 314 mopGetHeader(pkt, &idx, &dst, &src, &proto, &len, trans); 316 code = mopGetChar(pkt, &idx); 435 mopPrintInfo(FILE *fd, const u_char *pkt, int *idx, 455 itype = mopGetShort(pkt,idx); [all...] |
| /src/lib/libc/locale/ |
| nb_lc_time_misc.h | 37 #define ABDAY_IDX(idx) ((size_t)idx - (size_t)ABDAY_1) 38 #define DAY_IDX(idx) ((size_t)idx - (size_t)DAY_1) 39 #define ABMON_IDX(idx) ((size_t)idx - (size_t)ABMON_1) 40 #define MON_IDX(idx) ((size_t)idx - (size_t)MON_1) 41 #define AM_PM_IDX(idx) ((size_t)idx - (size_t)AM_STR [all...] |
| /src/sys/arch/zaurus/stand/zboot/ |
| bootinfo.c | 52 int idx; local in function:bi_add 58 idx = bi_find(type); 59 if (idx < 0) { 60 idx = bootinfo->nentries++; 62 bootinfo->entry[idx] = (u_long)what; 69 int idx; local in function:bi_del 73 idx = bi_find(type); 74 if (idx >= 0) { 75 for (i = idx + 1; i < bootinfo->nentries; i++) {
|
| /src/sys/compat/common/ |
| gen_errno_tables.awk | 47 idx = 0; 55 if (idx != 0) { 59 idx = 1; 71 if (val_max[idx] < val) { 72 val_max[idx] = val; 74 if (mappings[idx, "val", val] == "") { 75 mappings[idx, "name", name] = val 76 mappings[idx, "val", val] = name 81 if (idx != 1) {
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_allocator_bytemap.h | 26 void set(uptr idx, u8 val) { 27 CHECK_LT(idx, kSize); 28 CHECK_EQ(0U, map_[idx]); 29 map_[idx] = val; 31 u8 operator[] (uptr idx) { 32 CHECK_LT(idx, kSize); 34 return map_[idx]; 69 void set(uptr idx, u8 val) { 70 CHECK_LT(idx, kSize1 * kSize2); 71 u8 *map2 = GetOrCreate(idx / kSize2) [all...] |
| /src/lib/librefuse/refuse/ |
| chan.c | 107 int idx; local in function:fuse_chan_stash 116 for (idx = 0; idx < (int)storage.n_alloc; idx++) { 117 if (storage.vec[idx] == NULL) { 118 storage.vec[idx] = chan; 128 idx = -1; 132 storage.vec[idx] = chan; 133 memset(&storage.vec[idx+1], 0, sizeof(struct fuse_chan*) * (storage.n_alloc - (size_t)idx - 1)) 192 int idx; local in function:fuse_chan_find [all...] |
| /src/sys/ddb/ |
| db_cpu.c | 62 db_cpu_by_index(u_int idx) 66 db_read_bytes((db_addr_t)&db_cpu_infos[idx], sizeof(ci), (char *)&ci); 81 u_int idx; local in function:db_cpu_next 83 db_read_bytes((db_addr_t)&ci->ci_index, sizeof(idx), (char *)&idx); 84 if ((idx + 1) >= (u_int)db_ncpu) 86 return db_cpu_by_index(idx + 1);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
| tsan_dense_alloc_test.cc | 37 IndexT idx = alloc.Alloc(&cache); local in function:__tsan::TEST 38 blocks[i] = idx; 39 EXPECT_NE(idx, 0U); 40 int *v = alloc.Map(idx); 45 IndexT idx = blocks[i]; local in function:__tsan::TEST 46 int *v = alloc.Map(idx); 48 alloc.Free(&cache, idx);
|
| /src/sys/arch/sparc64/sparc64/ |
| mdesc.c | 66 mdesc_get_prop_val(int idx, const char *name) 77 while (elem[idx].tag != 'E') { 78 str = name_blk + elem[idx].name_offset; 79 if (elem[idx].tag == 'v' && strcmp(str, name) == 0) 80 return (elem[idx].d.val); 81 idx++; 88 mdesc_get_prop_str(int idx, const char *name) 101 while (elem[idx].tag != 'E') { 102 str = name_blk + elem[idx].name_offset; 103 if (elem[idx].tag == 's' && strcmp(str, name) == 0 144 int idx; local in function:mdesc_find [all...] |
| /src/usr.sbin/mopd/mopd/ |
| process.c | 61 mopProcessInfo(const u_char *pkt, int *idx, u_short moplen, struct dllist *dl_rpr, 79 itype = mopGetShort(pkt,idx); 81 while (*idx < (int)(moplen)) { 82 ilen = mopGetChar(pkt,idx); 85 tmpc = mopGetChar(pkt,idx); 86 *idx = *idx + tmpc; 89 (void)mopGetChar(pkt,idx); 90 (void)mopGetChar(pkt,idx); 91 (void)mopGetChar(pkt,idx); 172 int idx; local in function:mopSendASV 213 int idx; local in function:mopStartLoad 316 int idx, pindex; local in function:mopNextLoad [all...] |
| /src/usr.bin/mail/ |
| strings.c | 80 int idx; local in function:salloc 85 idx = 0; 87 if (sp->s_topFree == NULL && (STRINGSIZE << idx) >= s) 91 idx++; 96 idx = (int)(sp - &stringdope[0]); 97 sp->s_topFree = malloc(STRINGSIZE << idx); 99 errx(EXIT_FAILURE, "No room for space %d", idx); 101 sp->s_nleft = STRINGSIZE << idx; 130 int idx; local in function:sreset 134 idx = 0 [all...] |
| /src/sys/dev/acpi/ |
| acpi_slit.c | 76 uint64_t idx, count; local in function:acpislit_dump 82 for (idx = 0; idx < (count * count); idx++) { 83 aprint_debug("%u ", slit->Entry[idx]); 84 if ((idx % count) == (count - 1)) { 86 if (idx < (count * count) - 1) 101 uint64_t idx = cpu1 * slit->LocalityCount + cpu2; local in function:acpislit_distance 102 return slit->Entry[idx];
|
| /src/sys/external/bsd/drm2/dist/drm/i915/ |
| i915_scheduler.h | 18 #define priolist_for_each_request(it, plist, idx) \ 19 for (idx = 0; idx < ARRAY_SIZE((plist)->requests); idx++) \ 20 list_for_each_entry(it, &(plist)->requests[idx], sched.link) 22 #define priolist_for_each_request_consume(it, n, plist, idx) \ 24 (plist)->used ? (idx = __ffs((plist)->used)), 1 : 0; \ 25 (plist)->used &= ~BIT(idx)) \ 27 &(plist)->requests[idx], \
|
| /src/sys/arch/hppa/hppa/ |
| intr.c | 76 int idx; local in function:hppa_interrupt_register_establish 82 for (idx = 0; idx < HPPA_INTERRUPT_BITS; idx++) 83 ir->ir_bits_map[idx] = IR_BIT_UNUSED; 87 for (idx = 0; idx < HPPA_INTERRUPT_BITS; idx++) 88 if (hppa_interrupt_registers[idx] == NULL) 90 if (idx == HPPA_INTERRUPT_BITS 132 int idx; local in function:hppa_intr_establish 238 int idx; local in function:hppa_intr_ipl_next 256 int idx, bit_pos; local in function:hppa_intr_calculatemasks 488 int idx; local in function:hppa_intr_ipending [all...] |
| /src/lib/libterminfo/ |
| genhash | 65 _ti_${name}id(ssize_t idx) 68 if ((size_t)idx >= __arraycount(_ti_${name}ids)) 70 return _ti_${name}ids[idx]; 76 uint32_t idx; 78 idx = _ti_${name}hash((const unsigned char *)key, strlen(key)); 79 if (idx >= __arraycount(_ti_${name}ids) || 80 strcmp(key, _ti_${name}ids[idx]) != 0) 82 return idx;
|
| /src/sys/external/mit/xen-include-public/dist/xen/include/public/io/ |
| console.h | 32 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
|
| /src/usr.sbin/wsconscfg/ |
| wsconscfg.c | 63 int c, delete, kbd, idx, wsfd, swtch, get, mux; local in function:main 74 idx = -1; 123 if (argc > 0 && sscanf(argv[0], "%d", &idx) != 1) 131 if (ioctl(wsfd, VT_ACTIVATE, idx) == -1) 132 err(EXIT_FAILURE, "Cannot switch to %d", idx); 134 if (ioctl(wsfd, VT_GETACTIVE, &idx) == -1) 136 (void)printf("%d\n", idx); 139 wmd.idx = idx; 148 dsd.idx = idx [all...] |
| /src/sys/arch/sh3/sh3/ |
| mmu_sh3.c | 60 uint32_t idx, a; local in function:sh3_tlb_invalidate_all 64 idx = i << SH3_MMU_VPN_SHIFT; 67 a = idx | (way << SH3_MMU_WAY_SHIFT); 79 uint32_t idx, aa; local in function:sh3_tlb_invalidate_asid 83 idx = i << SH3_MMU_VPN_SHIFT; 86 aa = SH3_MMUAA | idx | (way << SH3_MMU_WAY_SHIFT); 98 uint32_t match, idx, aa, entry; local in function:sh3_tlb_invalidate_addr 105 idx = va & SH3_MMU_VPN_MASK; 109 aa = SH3_MMUAA | idx | (way << SH3_MMU_WAY_SHIFT); 127 uint32_t match, idx, a, entry local in function:sh3_tlb_update [all...] |
| /src/tests/lib/libc/stdio/ |
| t_popen.c | 76 int idx, in; local in function:ATF_TC_BODY 84 for (idx = 0; idx < BUFSIZE; idx++) 85 buffer[idx]=(char)rand(); 104 idx = 0; 106 if (idx == BUFSIZE) { 110 else if ((char)in != buffer[idx++]) { 115 if (idx < BUFSIZE) {
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| tsan_dense_alloc.h | 68 void Free(Cache *c, IndexT idx) { 69 DCHECK_NE(idx, 0); 72 c->cache[c->pos++] = idx; 75 T *Map(IndexT idx) { 76 DCHECK_NE(idx, 0); 77 DCHECK_LE(idx, kL1Size * kL2Size); 78 return &map_[idx / kL2Size][idx % kL2Size]; 84 IndexT idx = c->cache[--c->pos]; local in function:__tsan::DenseSlabAlloc::FlushCache 85 *(IndexT*)Map(idx) = freelist_ 124 IndexT idx = freelist_; local in function:__tsan::DenseSlabAlloc::Refill 133 IndexT idx = c->cache[--c->pos]; local in function:__tsan::DenseSlabAlloc::Drain [all...] |