Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 2136) sorted by relevance

12345678910>>...86

/freebsd/stand/efi/libefi/
H A Dhandles.c46 int idx, unit; in efi_register_handles() local
48 idx = nentries; in efi_register_handles()
54 for (unit = 0; idx < nentries; idx++, unit++) { in efi_register_handles()
60 entry[idx].dev = sw; in efi_register_handles()
69 int idx; in efi_find_handle() local
71 for (idx = 0; idx < nentries; idx++) { in efi_find_handle()
84 int idx; in efi_handle_lookup() local
86 for (idx = 0; idx < nentries; idx++) { in efi_handle_lookup()
87 if (entry[idx].handle != h && entry[idx].alias != h) in efi_handle_lookup()
104 int idx; in efi_handle_update_dev() local
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_buffer.c47 int idx; in drm_buffer_alloc() local
63 for (idx = 0; idx < nr_pages; ++idx) { in drm_buffer_alloc()
65 (*buf)->data[idx] = in drm_buffer_alloc()
73 idx + 1, size, nr_pages); in drm_buffer_alloc()
84 if ((*buf)->data[idx]) in drm_buffer_alloc()
87 for (--idx; idx >= 0; --idx) in drm_buffer_alloc()
106 int idx; in drm_buffer_copy_from_user() local
115 for (idx = 0; idx < nr_pages; ++idx) { in drm_buffer_copy_from_user()
122 user_data, buf, idx); in drm_buffer_copy_from_user()
141 int idx; in drm_buffer_free() local
[all …]
/freebsd/crypto/openssl/crypto/camellia/asm/
H A Dcmll-x86.pl57 $idx="esi";
269 &rotl ($idx,1);
444 &rotl ($idx,1);
880 &dec ($idx);
932 &lea ($idx,&DWP(16,$idx));
1034 &lea ($idx,&DWP(16,$idx));
1061 &mov ($idx eq "esi" ? $idx : "",$key);
1104 &lea ($idx,&DWP(16,$idx));
1120 &lea ($idx,&DWP(16,$idx));
1133 &lea ($idx eq "esi" ? $idx : "",$ivec);
[all …]
/freebsd/contrib/llvm-project/libcxx/src/
H A Dstring.cpp80 if (idx) in as_integer_helper()
164 if (idx) in as_float_helper()
206 int stoi(const string& str, size_t* idx, int base) { return as_integer<int>("stoi", str, idx, base)… in stoi() argument
208 long stol(const string& str, size_t* idx, int base) { return as_integer<long>("stol", str, idx, bas… in stol() argument
220 float stof(const string& str, size_t* idx) { return as_float<float>("stof", str, idx); } in stof() argument
222 double stod(const string& str, size_t* idx) { return as_float<double>("stod", str, idx); } in stod() argument
224 long double stold(const string& str, size_t* idx) { return as_float<long double>("stold", str, idx)… in stold() argument
227 int stoi(const wstring& str, size_t* idx, int base) { return as_integer<int>("stoi", str, idx, base… in stoi() argument
241 float stof(const wstring& str, size_t* idx) { return as_float<float>("stof", str, idx); } in stof() argument
243 double stod(const wstring& str, size_t* idx) { return as_float<double>("stod", str, idx); } in stod() argument
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flat_map.h35 CHECK_LT(idx, kSize); in contains()
39 T &operator[](uptr idx) {
40 DCHECK_LT(idx, kSize);
41 return map_[idx];
45 DCHECK_LT(idx, kSize);
46 return map_[idx];
106 T &operator[](uptr idx) {
121 T *Get(uptr idx) const { in Get() argument
122 DCHECK_LT(idx, kSize1); in Get()
140 return Create(idx); in GetOrCreate()
[all …]
H A Dsanitizer_bitvector.h33 bool setBit(uptr idx) { in setBit() argument
35 bits_ |= mask(idx); in setBit()
42 bits_ &= ~mask(idx); in clearBit()
46 bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; } in getBit() argument
51 clearBit(idx); in getAndClearFirstOne()
52 return idx; in getAndClearFirstOne()
144 check(idx); in setBit()
145 uptr i0 = idx0(idx); in setBit()
159 check(idx); in clearBit()
173 check(idx); in getBit()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_radix.c133 int idx; in radix_tree_delete() local
149 item = node->slots[idx]; in radix_tree_delete()
186 int idx; in radix_tree_insert() local
243 node = node->slots[idx]; in radix_tree_insert()
247 for (idx = 0; idx != height; idx++) { in radix_tree_insert()
251 while (idx--) in radix_tree_insert()
270 if (node->slots[idx]) in radix_tree_insert()
272 node->slots[idx] = item; in radix_tree_insert()
285 int idx; in radix_tree_store() local
351 for (idx = 0; idx != height; idx++) { in radix_tree_store()
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Dindexer.c55 static int idx_grow(struct indexer *idx) in idx_grow() argument
60 if (idx->size >= IDX_ARRAY_SIZE) in idx_grow()
63 idx->array[idx->size] = calloc(IDX_ENTRY_SIZE, sizeof(union idx_entry)); in idx_grow()
64 if (!idx->array[idx->size]) in idx_grow()
67 entry = idx->array[idx->size]; in idx_grow()
68 start_index = idx->size << IDX_ENTRY_BITS; in idx_grow()
77 idx->free_list = start_index; in idx_grow()
78 idx->size++; in idx_grow()
91 if ((index = idx->free_list) == 0) { in idx_insert()
92 if ((index = idx_grow(idx)) <= 0) in idx_insert()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-ssh.c29 u_int idx = 0; in ssh_print_version() local
31 if ( GET_U_1(pptr+idx) != 'S' ) in ssh_print_version()
33 idx++; in ssh_print_version()
36 idx++; in ssh_print_version()
39 idx++; in ssh_print_version()
42 idx++; in ssh_print_version()
44 while (idx < len) { in ssh_print_version()
47 c = GET_U_1(pptr + idx); in ssh_print_version()
57 if ((idx+1) >= len) { in ssh_print_version()
82 idx++; in ssh_print_version()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DFileSpecList.cpp78 for (size_t idx = start_idx; idx < num_files; ++idx) { in FindFileIndex() local
84 return idx; in FindFileIndex()
87 return idx; in FindFileIndex()
99 [&](size_t idx) -> const FileSpec & { return m_files[idx]; }); in FindFileIndex() argument
123 for (size_t idx = start_idx; idx < num_files; ++idx) { in FindCompatibleIndex() local
134 return idx; in FindCompatibleIndex()
156 return idx; in FindCompatibleIndex()
166 if (idx < m_files.size()) in GetFileSpecAtIndex()
167 return m_files[idx]; in GetFileSpecAtIndex()
173 if (idx < m_files.size()) in GetFileSpecAtIndex()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dclocktime.c65 int32 y, tmp, idx, min; in clocktime() local
107 for (idx = 0; idx < 3; idx++) { in clocktime()
109 ystt[idx] = year_to_ntp(y + idx - 1); in clocktime()
111 test[idx] = ystt[idx] + tmp; in clocktime()
113 diff[idx] = test[idx] - rec_ui; in clocktime()
114 if (diff[idx] >= 0x80000000u) in clocktime()
115 diff[idx] = ~diff[idx] + 1; in clocktime()
118 for (min = 1, idx = 0; idx < 3; idx++) in clocktime()
119 if (diff[idx] < diff[min]) in clocktime()
120 min = idx; in clocktime()
/freebsd/sys/dev/dwc/
H A Ddwc1000_dma.c427 int idx, last_idx; in dma1000_txfinish_locked() local
445 idx = next_txidx(sc, idx); in dma1000_txfinish_locked()
514 int error, idx; in dma1000_rxfinish_locked() local
624 int idx; in dma1000_init() local
689 for (idx = 0; idx < TX_DESC_COUNT; idx++) { in dma1000_init()
713 for (idx = 0; idx < TX_MAP_COUNT; idx++) { in dma1000_init()
723 for (idx = 0; idx < TX_DESC_COUNT; idx++) in dma1000_init()
783 for (idx = 0; idx < RX_DESC_COUNT; idx++) { in dma1000_init()
818 int idx; in dma1000_free() local
821 for (idx = 0; idx < RX_DESC_COUNT; ++idx) { in dma1000_free()
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_none.c118 if ((idx & 0x000000FF) == idx) { in _citrus_NONE_stdenc_cstomb()
123 *s = (char)idx; in _citrus_NONE_stdenc_cstomb()
125 } else if ((idx & 0x0000FFFF) == idx) { in _citrus_NONE_stdenc_cstomb()
130 s[0] = (char)idx; in _citrus_NONE_stdenc_cstomb()
132 s[1] = (char)(idx >> 8); in _citrus_NONE_stdenc_cstomb()
134 } else if ((idx & 0x00FFFFFF) == idx) { in _citrus_NONE_stdenc_cstomb()
139 s[0] = (char)idx; in _citrus_NONE_stdenc_cstomb()
141 s[1] = (char)(idx >> 8); in _citrus_NONE_stdenc_cstomb()
142 s[2] = (char)(idx >> 16); in _citrus_NONE_stdenc_cstomb()
149 s[0] = (char)idx; in _citrus_NONE_stdenc_cstomb()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_sync.cpp75 u32 idx = *meta; in FreeRange() local
76 if (idx == 0) { in FreeRange()
82 while (idx != 0) { in FreeRange()
93 idx = next; in FreeRange()
192 u32 idx = *meta; in GetBlock() local
194 if (idx == 0) in GetBlock()
200 idx = s->next; in GetBlock()
212 for (u32 idx = idx0; idx && !(idx & kFlagBlock);) { in GetSync() local
222 idx = s->next; in GetSync()
264 *dst_meta = idx; in MoveMemory()
[all …]
/freebsd/sys/powerpc/aim/
H A Dslb.c121 int idx; in make_new_leaf() local
135 setbit(&child->ua_alloc, idx); in make_new_leaf()
161 int idx, level; in make_intermediate() local
234 int idx; in user_va_to_slb_entry() local
257 ua = ua->u.ua_child[idx]; in user_va_to_slb_entry()
295 int idx; in allocate_user_vsid() local
324 next = ua->u.ua_child[idx]; in allocate_user_vsid()
357 int idx; in free_vsid() local
376 ua = ua->u.ua_child[idx]; in free_vsid()
390 int idx; in free_slb_tree_node() local
[all …]
/freebsd/sys/dev/nvmem/
H A Dnvmem.c54 cell_node = OF_node_from_xref(p_cell[idx]); in nvmem_get_cell_node()
55 if (cell_node == p_cell[idx]) { in nvmem_get_cell_node()
58 p_cell[idx]); in nvmem_get_cell_node()
74 int rv, idx; in nvmem_get_cell_len() local
80 rv = nvmem_get_cell_node(node, idx, &cell_node); in nvmem_get_cell_len()
102 rv = nvmem_get_cell_node(node, idx, &cell_node); in nvmem_read_cell_by_idx()
110 idx); in nvmem_read_cell_by_idx()
135 int rv, idx; in nvmem_read_cell_by_name() local
152 rv = nvmem_get_cell_node(node, idx, &cell_node); in nvmem_write_cell_by_idx()
164 idx); in nvmem_write_cell_by_idx()
[all …]
/freebsd/sys/dev/ata/
H A Data-all.h537 ATA_INB(ch->r_io[idx].res, ch->r_io[idx].offset)
540 ATA_INW(ch->r_io[idx].res, ch->r_io[idx].offset)
543 ATA_INW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset)
546 ATA_INL(ch->r_io[idx].res, ch->r_io[idx].offset)
549 ATA_INSW(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
555 ATA_INSL(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
561 ATA_OUTB(ch->r_io[idx].res, ch->r_io[idx].offset, value)
564 ATA_OUTW(ch->r_io[idx].res, ch->r_io[idx].offset, value)
567 ATA_OUTW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, value)
570 ATA_OUTL(ch->r_io[idx].res, ch->r_io[idx].offset, value)
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/
H A DOptionValueProperties.h80 GetPropertyAtIndex(size_t idx,
82 return ProtectedGetPropertyAtIndex(idx);
105 GetPropertyAtIndexAsArgs(size_t idx, Args &args,
108 bool SetPropertyAtIndexFromArgs(size_t idx, const Args &args,
142 auto GetPropertyAtIndexAs(size_t idx,
155 bool SetPropertyAtIndex(size_t idx, T t,
167 Property *ProtectedGetPropertyAtIndex(size_t idx) { in ProtectedGetPropertyAtIndex() argument
168 assert(idx < m_properties.size() && "invalid property index"); in ProtectedGetPropertyAtIndex()
169 return ((idx < m_properties.size()) ? &m_properties[idx] : nullptr); in ProtectedGetPropertyAtIndex()
172 const Property *ProtectedGetPropertyAtIndex(size_t idx) const { in ProtectedGetPropertyAtIndex() argument
[all …]
/freebsd/contrib/lua/src/
H A Dlua.h178 LUA_API int (lua_absindex) (lua_State *L, int idx);
180 LUA_API void (lua_settop) (lua_State *L, int idx);
262 LUA_API int (lua_gettable) (lua_State *L, int idx);
265 LUA_API int (lua_rawget) (lua_State *L, int idx);
282 LUA_API void (lua_rawset) (lua_State *L, int idx);
351 LUA_API int (lua_next) (lua_State *L, int idx);
401 #define lua_insert(L,idx) lua_rotate(L, (idx), 1) argument
403 #define lua_remove(L,idx) (lua_rotate(L, (idx), -1), lua_pop(L, 1)) argument
405 #define lua_replace(L,idx) (lua_copy(L, -1, (idx)), lua_pop(L, 1)) argument
424 #define lua_getuservalue(L,idx) lua_getiuservalue(L,idx,1) argument
[all …]
/freebsd/sys/contrib/openzfs/include/
H A Dlibzdb.h1 #define ZDB_COMPRESS_NAME(idx) ((idx) < ZIO_COMPRESS_FUNCTIONS ? \ argument
2 zio_compress_table[(idx)].ci_name : "UNKNOWN")
3 #define ZDB_CHECKSUM_NAME(idx) ((idx) < ZIO_CHECKSUM_FUNCTIONS ? \ argument
4 zio_checksum_table[(idx)].ci_name : "UNKNOWN")
5 #define ZDB_OT_TYPE(idx) ((idx) < DMU_OT_NUMTYPES ? (idx) : \ argument
6 (idx) == DMU_OTN_ZAP_DATA || (idx) == DMU_OTN_ZAP_METADATA ? \
8 (idx) == DMU_OTN_UINT64_DATA || (idx) == DMU_OTN_UINT64_METADATA ? \
/freebsd/sys/contrib/dev/rtw89/
H A Dchan.c125 enum rtw89_sub_entity_idx idx, in __rtw89_config_entity_chandef() argument
131 hal->sub[idx].chandef = *chandef; in __rtw89_config_entity_chandef()
134 set_bit(idx, hal->entity_map); in __rtw89_config_entity_chandef()
138 enum rtw89_sub_entity_idx idx, in rtw89_config_entity_chandef() argument
164 if (cur == idx) in rtw89_config_roc_chandef()
223 u8 idx; in rtw89_chanctx_ops_add() local
231 cfg->idx = idx; in rtw89_chanctx_ops_add()
232 hal->sub[idx].cfg = cfg; in rtw89_chanctx_ops_add()
244 drop = cfg->idx; in rtw89_chanctx_ops_remove()
279 u8 idx = cfg->idx; in rtw89_chanctx_ops_change() local
[all …]
/freebsd/crypto/openssl/test/
H A Dx509_time_test.c256 static int test_x509_cmp_time(int idx) in test_x509_cmp_time() argument
262 t.type = x509_cmp_tests[idx].type; in test_x509_cmp_time()
264 t.length = strlen(x509_cmp_tests[idx].data); in test_x509_cmp_time()
270 idx, x509_cmp_tests[idx].expected, result); in test_x509_cmp_time()
352 static int test_x509_time(int idx) in test_x509_time() argument
357 if (x509_format_tests[idx].set_string) { in test_x509_time()
370 idx, x509_format_tests[idx].expected, result); in test_x509_time()
378 idx, x509_format_tests[idx].expected_type, t->type); in test_x509_time()
389 idx, x509_format_tests[idx].expected_string, t->length, in test_x509_time()
538 static int test_x509_time_print_rfc_822(int idx) in test_x509_time_print_rfc_822() argument
[all …]
/freebsd/share/examples/libusb20/
H A Dcontrol.c226 int idx; in parse_req() local
229 for (idx = 0; argc != 0 && idx <= 6; argc--, idx++) in parse_req()
230 switch (idx) in parse_req()
234 if (*argv[idx] == 'i') in parse_req()
236 else if (*argv[idx] == 'o') in parse_req()
241 argv[idx]); in parse_req()
248 if (*argv[idx] == 's') in parse_req()
250 else if (*argv[idx] == 'c') in parse_req()
258 argv[idx]); in parse_req()
265 if (*argv[idx] == 'd') in parse_req()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DThreadList.cpp110 uint32_t idx = 0; in FindThreadByID() local
112 for (idx = 0; idx < num_threads; ++idx) { in FindThreadByID()
128 uint32_t idx = 0; in FindThreadByProtocolID() local
130 for (idx = 0; idx < num_threads; ++idx) { in FindThreadByProtocolID()
148 for (idx = 0; idx < num_threads; ++idx) { in RemoveThreadByID()
168 for (idx = 0; idx < num_threads; ++idx) { in RemoveThreadByProtocolID()
185 for (idx = 0; idx < num_threads; ++idx) { in GetThreadSPForThreadPtr()
200 for (uint32_t idx = 0; idx < num_threads; ++idx) { in GetBackingThread() local
217 for (uint32_t idx = 0; idx < num_threads; ++idx) { in FindThreadByIndexID() local
481 for (uint32_t idx = 0; idx < num_threads; ++idx) { in Destroy() local
[all …]
/freebsd/sys/riscv/riscv/
H A Didentcpu.c172 while (isa[idx] != '_' && idx < len) { in parse_ext_s()
173 idx++; in parse_ext_s()
176 return (idx); in parse_ext_s()
186 while (isa[idx] != '_' && idx < len) { in parse_ext_x()
187 idx++; in parse_ext_x()
190 return (idx); in parse_ext_x()
202 while (isa[idx] != '_' && idx < len) { in parse_ext_z()
203 idx++; in parse_ext_z()
215 idx++; in parse_ext_version()
220 idx++; in parse_ext_version()
[all …]

12345678910>>...86