| /freebsd-14-stable/stand/efi/libefi/ |
| HD | handles.c | 46 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() 55 entry[idx].handle = handles[unit]; in efi_register_handles() 57 entry[idx].alias = aliases[unit]; in efi_register_handles() 59 entry[idx].alias = NULL; in efi_register_handles() 60 entry[idx].dev = sw; in efi_register_handles() 61 entry[idx].unit = unit; in efi_register_handles() 69 int idx; in efi_find_handle() local 71 for (idx = 0; idx < nentries; idx++) { in efi_find_handle() [all …]
|
| /freebsd-14-stable/crypto/openssl/crypto/camellia/asm/ |
| HD | cmll-x86.pl | 57 $idx="esi"; 93 &xor ($t0,$idx); # t0^=key[0] 95 &movz ($idx,&HB($t0)); # (t0>>8)&0xff 96 &mov ($t3,&DWP($SBOX3_3033,$Tbl,$idx,8)); # t3=SBOX3_3033[0] 97 &movz ($idx,&LB($t0)); # (t0>>0)&0xff 98 &xor ($t3,&DWP($SBOX4_4404,$Tbl,$idx,8)); # t3^=SBOX4_4404[0] 100 &movz ($idx,&LB($t1)); # (t1>>0)&0xff 101 &mov ($t2,&DWP($SBOX1_1110,$Tbl,$idx,8)); # t2=SBOX1_1110[1] 102 &movz ($idx,&HB($t0)); # (t0>>24)&0xff 103 &xor ($t3,&DWP($SBOX1_1110,$Tbl,$idx,8)); # t3^=SBOX1_1110[0] [all …]
|
| /freebsd-14-stable/contrib/llvm-project/libcxx/src/ |
| HD | string.cpp | 69 inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) { in as_integer_helper() argument 80 if (idx) in as_integer_helper() 81 *idx = static_cast<size_t>(ptr - p); in as_integer_helper() 86 inline V as_integer(const string& func, const S& s, size_t* idx, int base); 90 inline int as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument 92 long r = as_integer_helper<long>(func, s, idx, base, strtol); in as_integer() 99 inline long as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument 100 return as_integer_helper<long>(func, s, idx, base, strtol); in as_integer() 104 inline unsigned long as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument 105 return as_integer_helper<unsigned long>(func, s, idx, base, strtoul); in as_integer() [all …]
|
| /freebsd-14-stable/sys/dev/drm2/ |
| HD | drm_buffer.c | 47 int idx; in drm_buffer_alloc() local 55 for (idx = 0; idx < nr_pages; ++idx) { in drm_buffer_alloc() 56 (*buf)->data[idx] = in drm_buffer_alloc() 57 malloc(min(PAGE_SIZE, size - idx * PAGE_SIZE), in drm_buffer_alloc() 76 int idx; in drm_buffer_copy_from_user() local 85 for (idx = 0; idx < nr_pages; ++idx) { in drm_buffer_copy_from_user() 87 if (DRM_COPY_FROM_USER(buf->data[idx], in drm_buffer_copy_from_user() 88 (char *)user_data + idx * PAGE_SIZE, in drm_buffer_copy_from_user() 89 min(PAGE_SIZE, size - idx * PAGE_SIZE))) { in drm_buffer_copy_from_user() 92 user_data, buf, idx); in drm_buffer_copy_from_user() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_flat_map.h | 34 bool contains(uptr idx) const { in contains() argument 35 CHECK_LT(idx, kSize); in contains() 39 T &operator[](uptr idx) { 40 DCHECK_LT(idx, kSize); 41 return map_[idx]; 44 const T &operator[](uptr idx) const { 45 DCHECK_LT(idx, kSize); 46 return map_[idx]; 95 bool contains(uptr idx) const { in contains() argument 96 CHECK_LT(idx, kSize1 * kSize2); in contains() [all …]
|
| HD | sanitizer_bitvector.h | 33 bool setBit(uptr idx) { in setBit() argument 35 bits_ |= mask(idx); in setBit() 40 bool clearBit(uptr idx) { in clearBit() argument 42 bits_ &= ~mask(idx); in clearBit() 46 bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; } in getBit() argument 50 uptr idx = LeastSignificantSetBitIndex(bits_); in getAndClearFirstOne() local 51 clearBit(idx); in getAndClearFirstOne() 52 return idx; in getAndClearFirstOne() 99 basic_int_t mask(uptr idx) const { in mask() argument 100 CHECK_LT(idx, size()); in mask() [all …]
|
| /freebsd-14-stable/sys/compat/linuxkpi/common/src/ |
| HD | linux_radix.c | 134 int idx; in radix_tree_delete() local 148 idx = radix_pos(index, 0); in radix_tree_delete() 150 item = node->slots[idx]; in radix_tree_delete() 156 node->slots[idx] = NULL; in radix_tree_delete() 168 idx = radix_pos(index, height); in radix_tree_delete() 187 int idx; in radix_tree_insert() local 241 idx = radix_pos(index, height); in radix_tree_insert() 242 if (node->slots[idx] == NULL) in radix_tree_insert() 244 node = node->slots[idx]; in radix_tree_insert() 248 for (idx = 0; idx != height; idx++) { in radix_tree_insert() [all …]
|
| /freebsd-14-stable/contrib/ofed/librdmacm/ |
| HD | indexer.c | 55 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() 69 entry[IDX_ENTRY_SIZE - 1].next = idx->free_list; in idx_grow() 77 idx->free_list = start_index; in idx_grow() 78 idx->size++; in idx_grow() 86 int idx_insert(struct indexer *idx, void *item) in idx_insert() argument [all …]
|
| /freebsd-14-stable/contrib/tcpdump/ |
| HD | print-ssh.c | 27 u_int idx = 0; in ssh_print_version() local 29 if ( GET_U_1(pptr+idx) != 'S' ) in ssh_print_version() 31 idx++; in ssh_print_version() 32 if ( GET_U_1(pptr+idx) != 'S' ) in ssh_print_version() 34 idx++; in ssh_print_version() 35 if ( GET_U_1(pptr+idx) != 'H' ) in ssh_print_version() 37 idx++; in ssh_print_version() 38 if ( GET_U_1(pptr+idx) != '-' ) in ssh_print_version() 40 idx++; in ssh_print_version() 42 while (idx < len) { in ssh_print_version() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/source/Utility/ |
| HD | FileSpecList.cpp | 78 for (size_t idx = start_idx; idx < num_files; ++idx) { in FindFileIndex() local 79 const FileSpec &ith = get_ith(idx); in FindFileIndex() 84 return idx; in FindFileIndex() 87 return idx; in FindFileIndex() 99 [&](size_t idx) -> const FileSpec & { return m_files[idx]; }); in FindFileIndex() argument 106 [&](size_t idx) -> const FileSpec & { in FindFileIndex() argument 107 return m_files[idx]->GetSpecOnly(); in FindFileIndex() 123 for (size_t idx = start_idx; idx < num_files; ++idx) { in FindCompatibleIndex() local 124 const FileSpec &curr_file = m_files[idx]->GetSpecOnly(); in FindCompatibleIndex() 134 return idx; in FindCompatibleIndex() [all …]
|
| /freebsd-14-stable/contrib/ntp/libntp/ |
| HD | clocktime.c | 65 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-14-stable/lib/libc/iconv/ |
| HD | citrus_none.c | 86 _csid_t *csid, _index_t *idx, char **s, size_t n, in _citrus_NONE_stdenc_mbtocs() argument 96 *idx = (_index_t)(unsigned char)*(*s)++; in _citrus_NONE_stdenc_mbtocs() 97 *nresult = *idx == 0 ? 0 : 1; in _citrus_NONE_stdenc_mbtocs() 100 hooks->uc_hook((unsigned int)*idx, hooks->data); in _citrus_NONE_stdenc_mbtocs() 107 char *s, size_t n, _csid_t csid, _index_t idx, void *ps __unused, in _citrus_NONE_stdenc_cstomb() argument 118 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() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| HD | tsan_sync.cpp | 48 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); in AllocBlock() local 49 MBlock *b = block_alloc_.Map(idx); in AllocBlock() 56 *meta = idx | kFlagBlock; in AllocBlock() 75 u32 idx = *meta; in FreeRange() local 76 if (idx == 0) { in FreeRange() 82 while (idx != 0) { in FreeRange() 83 if (idx & kFlagBlock) { in FreeRange() 84 block_alloc_.Free(&proc->block_cache, idx & ~kFlagMask); in FreeRange() 86 } else if (idx & kFlagSync) { in FreeRange() 87 DCHECK(idx & kFlagSync); in FreeRange() [all …]
|
| /freebsd-14-stable/sys/powerpc/aim/ |
| HD | slb.c | 121 int idx; in make_new_leaf() local 123 idx = esid2idx(esid, parent->ua_level); in make_new_leaf() 124 KASSERT(parent->u.ua_child[idx] == NULL, ("Child already exists!")); in make_new_leaf() 132 idx = esid2idx(esid, child->ua_level); in make_new_leaf() 133 child->u.slb_entries[idx].slbv = slbv; in make_new_leaf() 134 child->u.slb_entries[idx].slbe = (esid << SLBE_ESID_SHIFT) | SLBE_VALID; in make_new_leaf() 135 setbit(&child->ua_alloc, idx); in make_new_leaf() 137 retval = &child->u.slb_entries[idx]; in make_new_leaf() 146 idx = esid2idx(esid, parent->ua_level); in make_new_leaf() 147 parent->u.ua_child[idx] = child; in make_new_leaf() [all …]
|
| /freebsd-14-stable/sys/dev/extres/nvmem/ |
| HD | nvmem.c | 41 nvmem_get_cell_node(phandle_t node, int idx, phandle_t *cell) in nvmem_get_cell_node() argument 55 cell_node = OF_node_from_xref(p_cell[idx]); in nvmem_get_cell_node() 56 if (cell_node == p_cell[idx]) { in nvmem_get_cell_node() 59 p_cell[idx]); in nvmem_get_cell_node() 75 int rv, idx; in nvmem_get_cell_len() local 77 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx); in nvmem_get_cell_len() 81 rv = nvmem_get_cell_node(node, idx, &cell_node); in nvmem_get_cell_len() 96 nvmem_read_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen) in nvmem_read_cell_by_idx() argument 103 rv = nvmem_get_cell_node(node, idx, &cell_node); in nvmem_read_cell_by_idx() 111 idx); in nvmem_read_cell_by_idx() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/include/lldb/Interpreter/ |
| HD | OptionValueProperties.h | 80 GetPropertyAtIndex(size_t idx, 82 return ProtectedGetPropertyAtIndex(idx); 92 GetPropertyValueAtIndex(size_t idx, const ExecutionContext *exe_ctx) const; 105 GetPropertyAtIndexAsArgs(size_t idx, Args &args, 108 bool SetPropertyAtIndexFromArgs(size_t idx, const Args &args, 112 size_t idx, const ExecutionContext *exe_ctx = nullptr) const; 115 size_t idx, const ExecutionContext *exe_ctx = nullptr) const; 118 size_t idx, const ExecutionContext *exe_ctx = nullptr) const; 121 size_t idx, const ExecutionContext *exe_ctx = nullptr) const; 124 size_t idx, const ExecutionContext *exe_ctx = nullptr) const; [all …]
|
| /freebsd-14-stable/contrib/lua/src/ |
| HD | lua.h | 178 LUA_API int (lua_absindex) (lua_State *L, int idx); 180 LUA_API void (lua_settop) (lua_State *L, int idx); 181 LUA_API void (lua_pushvalue) (lua_State *L, int idx); 182 LUA_API void (lua_rotate) (lua_State *L, int idx, int n); 193 LUA_API int (lua_isnumber) (lua_State *L, int idx); 194 LUA_API int (lua_isstring) (lua_State *L, int idx); 195 LUA_API int (lua_iscfunction) (lua_State *L, int idx); 196 LUA_API int (lua_isinteger) (lua_State *L, int idx); 197 LUA_API int (lua_isuserdata) (lua_State *L, int idx); 198 LUA_API int (lua_type) (lua_State *L, int idx); [all …]
|
| /freebsd-14-stable/sys/dev/ata/ |
| HD | ata-all.h | 540 #define ATA_IDX_INB(ch, idx) \ argument 541 ATA_INB(ch->r_io[idx].res, ch->r_io[idx].offset) 543 #define ATA_IDX_INW(ch, idx) \ argument 544 ATA_INW(ch->r_io[idx].res, ch->r_io[idx].offset) 546 #define ATA_IDX_INW_STRM(ch, idx) \ argument 547 ATA_INW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset) 549 #define ATA_IDX_INL(ch, idx) \ argument 550 ATA_INL(ch->r_io[idx].res, ch->r_io[idx].offset) 552 #define ATA_IDX_INSW(ch, idx, addr, count) \ argument 553 ATA_INSW(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count) [all …]
|
| /freebsd-14-stable/crypto/openssl/test/ |
| HD | x509_time_test.c | 256 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() 263 t.data = (unsigned char*)(x509_cmp_tests[idx].data); in test_x509_cmp_time() 264 t.length = strlen(x509_cmp_tests[idx].data); in test_x509_cmp_time() 267 result = X509_cmp_time(&t, &x509_cmp_tests[idx].cmp_time); in test_x509_cmp_time() 268 if (!TEST_int_eq(result, x509_cmp_tests[idx].expected)) { 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() 361 TEST_info("test_x509_time(%d) failed: internal error\n", idx); in test_x509_time() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/source/Target/ |
| HD | ThreadList.cpp | 90 ThreadSP ThreadList::GetThreadAtIndex(uint32_t idx, bool can_update) { in GetThreadAtIndex() argument 97 if (idx < m_threads.size()) in GetThreadAtIndex() 98 thread_sp = m_threads[idx]; in GetThreadAtIndex() 109 uint32_t idx = 0; in FindThreadByID() local 111 for (idx = 0; idx < num_threads; ++idx) { in FindThreadByID() 112 if (m_threads[idx]->GetID() == tid) { in FindThreadByID() 113 thread_sp = m_threads[idx]; in FindThreadByID() 127 uint32_t idx = 0; in FindThreadByProtocolID() local 129 for (idx = 0; idx < num_threads; ++idx) { in FindThreadByProtocolID() 130 if (m_threads[idx]->GetProtocolID() == tid) { in FindThreadByProtocolID() [all …]
|
| /freebsd-14-stable/share/examples/libusb20/ |
| HD | control.c | 226 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() 252 else if (*argv[idx] == 'v') in parse_req() 258 argv[idx]); in parse_req() [all …]
|
| /freebsd-14-stable/sys/riscv/riscv/ |
| HD | identcpu.c | 149 parse_ext_s(struct cpu_desc *desc, char *isa, int idx, int len) in parse_ext_s() argument 153 if (strncmp(&isa[idx], (str), \ in parse_ext_s() 154 MIN(strlen(str), len - idx)) == 0) { \ in parse_ext_s() 156 return (idx + strlen(str)); \ in parse_ext_s() 173 while (isa[idx] != '_' && idx < len) { in parse_ext_s() 174 idx++; in parse_ext_s() 177 return (idx); in parse_ext_s() 181 parse_ext_x(struct cpu_desc *desc __unused, char *isa, int idx, int len) in parse_ext_x() argument 187 while (isa[idx] != '_' && idx < len) { in parse_ext_x() 188 idx++; in parse_ext_x() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/source/Core/ |
| HD | Debugger.cpp | 274 constexpr uint32_t idx = ePropertyAutoConfirm; in GetAutoConfirm() local 276 idx, g_debugger_properties[idx].default_uint_value != 0); in GetAutoConfirm() 280 constexpr uint32_t idx = ePropertyDisassemblyFormat; in GetDisassemblyFormat() local 281 return GetPropertyAtIndexAs<const FormatEntity::Entry *>(idx); in GetDisassemblyFormat() 285 constexpr uint32_t idx = ePropertyFrameFormat; in GetFrameFormat() local 286 return GetPropertyAtIndexAs<const FormatEntity::Entry *>(idx); in GetFrameFormat() 290 constexpr uint32_t idx = ePropertyFrameFormatUnique; in GetFrameFormatUnique() local 291 return GetPropertyAtIndexAs<const FormatEntity::Entry *>(idx); in GetFrameFormatUnique() 295 constexpr uint32_t idx = ePropertyStopDisassemblyMaxSize; in GetStopDisassemblyMaxSize() local 297 idx, g_debugger_properties[idx].default_uint_value); in GetStopDisassemblyMaxSize() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| HD | GDBRemoteCommunicationHistory.cpp | 35 const uint32_t idx = GetNextIndex(); in AddPacket() local 36 m_packets[idx].packet.data.assign(1, packet_char); in AddPacket() 37 m_packets[idx].type = type; in AddPacket() 38 m_packets[idx].bytes_transmitted = bytes_transmitted; in AddPacket() 39 m_packets[idx].packet_idx = m_total_packet_count; in AddPacket() 40 m_packets[idx].tid = llvm::get_threadid(); in AddPacket() 51 const uint32_t idx = GetNextIndex(); in AddPacket() local 52 m_packets[idx].packet.data.assign(src, 0, src_len); in AddPacket() 53 m_packets[idx].type = type; in AddPacket() 54 m_packets[idx].bytes_transmitted = bytes_transmitted; in AddPacket() [all …]
|
| /freebsd-14-stable/sys/contrib/openzfs/module/zfs/ |
| HD | btree.c | 113 uint32_t idx, uint32_t count) in zfs_btree_poison_node_at() argument 118 ASSERT3U(idx, >=, hdr->bth_count); in zfs_btree_poison_node_at() 119 ASSERT3U(idx, <=, BTREE_CORE_ELEMS); in zfs_btree_poison_node_at() 120 ASSERT3U(idx + count, <=, BTREE_CORE_ELEMS); in zfs_btree_poison_node_at() 123 node->btc_children[idx + i] = in zfs_btree_poison_node_at() 126 (void) memset(node->btc_elems + idx * size, 0x0f, count * size); in zfs_btree_poison_node_at() 128 ASSERT3U(idx, <=, tree->bt_leaf_cap); in zfs_btree_poison_node_at() 129 ASSERT3U(idx + count, <=, tree->bt_leaf_cap); in zfs_btree_poison_node_at() 132 (hdr->bth_first + idx) * size, 0x0f, count * size); in zfs_btree_poison_node_at() 139 uint32_t idx) in zfs_btree_verify_poison_at() argument [all …]
|