| /lib/ |
| A D | lmb.c | 96 rgn[i].base = rgn[i + 1].base; in lmb_remove_region() 250 if (i && base < rgn[i - 1].base) { in lmb_add_region_flags() 253 rgn[i].base = base; in lmb_add_region_flags() 314 rgn[i].size = base - rgn[i].base; in _lmb_free() 420 while (base && lmbbase <= base) { in io_lmb_alloc() 429 return base; in io_lmb_alloc() 495 base = rgn[i].base; in lmb_dump_region() 696 base = -1; in _lmb_alloc_base() 697 base = min(base, max_addr); in _lmb_alloc_base() 698 base = ALIGN_DOWN(base - size, align); in _lmb_alloc_base() [all …]
|
| A D | strto.c | 63 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul() 65 while (value = decode_digit(*cp), value < base) { in simple_strtoul() 66 result = result * base + value; in simple_strtoul() 102 val = simple_strtoul(cp, &tail, base); in strict_strtoul() 118 return -simple_strtoul(cp + 1, endp, base); in simple_strtol() 120 return simple_strtoul(cp, endp, base); in simple_strtol() 166 unsigned int base) in simple_strtoull() argument 171 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoull() 174 result = result * base + value; in simple_strtoull() 187 return -simple_strtoull(cp + 1, endp, base); in simple_strtoll() [all …]
|
| A D | sscanf.c | 86 if ((base == 0 || base == 16) && in str_to_int_convert() 90 base = 16; in str_to_int_convert() 92 if (base == 0) in str_to_int_convert() 455 base = 10; in vsscanf() 461 base = 0; in vsscanf() 467 base = 8; in vsscanf() 473 base = 10; in vsscanf() 480 base = 16; in vsscanf() 502 base = 16; in vsscanf() 701 base = basefix[base]; in vsscanf() [all …]
|
| A D | addr_map.c | 16 u64 base, upper, addr; in addrmap_virt_to_phys() local 22 base = (u64)(address_map[i].vaddr); in addrmap_virt_to_phys() 23 upper = (u64)(address_map[i].size) + base - 1; in addrmap_virt_to_phys() 25 if (addr >= base && addr <= upper) { in addrmap_virt_to_phys() 38 phys_addr_t base, upper; in addrmap_phys_to_virt() local 43 base = address_map[i].paddr; in addrmap_phys_to_virt() 44 upper = address_map[i].size + base - 1; in addrmap_phys_to_virt() 46 if (paddr >= base && paddr <= upper) { in addrmap_phys_to_virt()
|
| A D | time.c | 145 ulong __weak get_timer(ulong base) in get_timer() argument 147 return tick_to_time(get_ticks()) - base; in get_timer() 159 uint64_t __weak get_timer_us(uint64_t base) in get_timer_us() argument 161 return tick_to_time_us(get_ticks()) - base; in get_timer_us() 164 unsigned long __weak get_timer_us_long(unsigned long base) in get_timer_us_long() argument 166 return timer_get_us() - base; in get_timer_us_long()
|
| A D | div64.c | 35 u32 base) in __div64_32() argument 38 u64 b = base; in __div64_32() 44 if (high >= base) { in __div64_32() 45 high /= base; in __div64_32() 47 rem -= (u64)(high * base) << 32; in __div64_32()
|
| A D | vsprintf.c | 161 int base, int size, int precision, int type) in number() argument 169 int need_pfx = ((type & SPECIAL) && base != 10); in number() 193 if (base == 16) in number() 206 else if (base != 10) { /* 8 or 16 */ in number() 207 int mask = base - 1; in number() 210 if (base == 16) in number() 237 if (base == 16) in number() 526 int base; in vsnprintf_internal() local 617 base = 10; in vsnprintf_internal() 672 base = 8; in vsnprintf_internal() [all …]
|
| A D | qsort.c | 23 void qsort(void *base, in qsort() argument 50 a = j + ((char *)base); in qsort()
|
| /lib/mbedtls/external/mbedtls/3rdparty/everest/library/ |
| A D | x25519.c | 66 uint8_t base[MBEDTLS_X25519_KEY_SIZE_BYTES] = {0}; in mbedtls_x25519_make_params() local 80 base[0] = 9; in mbedtls_x25519_make_params() 81 Hacl_Curve25519_crypto_scalarmult( buf, ctx->our_secret, base ); in mbedtls_x25519_make_params() 83 base[0] = 0; in mbedtls_x25519_make_params() 84 if( memcmp( buf, base, MBEDTLS_X25519_KEY_SIZE_BYTES) == 0 ) in mbedtls_x25519_make_params() 151 unsigned char base[MBEDTLS_X25519_KEY_SIZE_BYTES] = { 0 }; in mbedtls_x25519_make_public() local 164 base[0] = 9; in mbedtls_x25519_make_public() 165 Hacl_Curve25519_crypto_scalarmult( buf, ctx->our_secret, base ); in mbedtls_x25519_make_public() 167 base[0] = 0; in mbedtls_x25519_make_public() 168 if( memcmp( buf, base, MBEDTLS_X25519_KEY_SIZE_BYTES ) == 0 ) in mbedtls_x25519_make_public()
|
| /lib/lwip/lwip/src/apps/lwiperf/ |
| A D | lwiperf.c | 116 lwiperf_state_base_t base; member 286 LWIP_ASSERT("conn invalid", (conn != NULL) && conn->base.tcp && (conn->base.server == 0)); in lwiperf_tcp_client_send_more() 411 client_conn->base.tcp = 1; in lwiperf_tx_start_impl() 589 if (!conn->base.server) { in lwiperf_tcp_poll() 624 conn->base.tcp = 1; in lwiperf_tcp_accept() 625 conn->base.server = 1; in lwiperf_tcp_accept() 626 conn->base.related_master_state = &s->base; in lwiperf_tcp_accept() 640 conn->base.related_master_state = s->base.related_master_state; in lwiperf_tcp_accept() 711 s->base.tcp = 1; in lwiperf_start_tcp_server_impl() 712 s->base.server = 1; in lwiperf_start_tcp_server_impl() [all …]
|
| /lib/bzip2/ |
| A D | bzlib_huffman.c | 191 Int32 *base, in BZ2_hbCreateDecodeTables() argument 205 for (i = 0; i < BZ_MAX_CODE_LEN; i++) base[i] = 0; in BZ2_hbCreateDecodeTables() 206 for (i = 0; i < alphaSize; i++) base[length[i]+1]++; in BZ2_hbCreateDecodeTables() 208 for (i = 1; i < BZ_MAX_CODE_LEN; i++) base[i] += base[i-1]; in BZ2_hbCreateDecodeTables() 214 vec += (base[i+1] - base[i]); in BZ2_hbCreateDecodeTables() 219 base[i] = ((limit[i-1] + 1) << 1) - base[i]; in BZ2_hbCreateDecodeTables()
|
| /lib/lwip/lwip/src/core/ipv4/ |
| A D | ip4_addr.c | 148 u8_t base; in ip4addr_aton() local 164 base = 10; in ip4addr_aton() 168 base = 16; in ip4addr_aton() 171 base = 8; in ip4addr_aton() 176 if((base == 8) && ((u32_t)(c - '0') >= 8)) in ip4addr_aton() 178 val = (val * base) + (u32_t)(c - '0'); in ip4addr_aton() 180 } else if (base == 16 && lwip_isxdigit(c)) { in ip4addr_aton()
|
| /lib/mbedtls/external/mbedtls/tests/scripts/ |
| A D | run-test-suites.pl | 44 (my $base = $data_file) =~ s/\.datax$//; 45 push @suites, $base if -x $base; 46 push @suites, "$base.exe" if -e "$base.exe";
|
| /lib/libavb/ |
| A D | avb_property_descriptor.c | 124 int base; in avb_property_lookup_uint64() local 132 base = 10; in avb_property_lookup_uint64() 134 base = 16; in avb_property_lookup_uint64() 143 parsed_val *= base; in avb_property_lookup_uint64() 147 } else if (base == 16 && c >= 'a' && c <= 'f') { in avb_property_lookup_uint64() 149 } else if (base == 16 && c >= 'A' && c <= 'F') { in avb_property_lookup_uint64()
|
| /lib/lwip/lwip/src/netif/ppp/ |
| A D | utils.c | 138 int base, len, neg, quoted; in ppp_vslprintf() local 200 base = 0; in ppp_vslprintf() 213 base = 10; in ppp_vslprintf() 217 base = 10; in ppp_vslprintf() 233 base = 10; in ppp_vslprintf() 237 base = 10; in ppp_vslprintf() 241 base = 8; in ppp_vslprintf() 246 base = 16; in ppp_vslprintf() 251 base = 16; in ppp_vslprintf() 359 if (base != 0) { in ppp_vslprintf() [all …]
|
| /lib/zlib/ |
| A D | inftrees.c | 51 const unsigned short FAR *base; /* base value table to use */ in inflate_table() local 180 base = extra = work; /* dummy value--not used */ in inflate_table() 184 base = lbase; in inflate_table() 189 base = dbase; in inflate_table() 218 this.val = base[work[sym] - match]; in inflate_table()
|
| /lib/acpi/ |
| A D | base.c | 87 memset(ctx->base, '\0', ctx->current - ctx->base); in acpi_write_base() 102 ACPI_WRITER(0base, NULL, acpi_write_base, ACPIWF_ALIGN64);
|
| A D | dsdt.c | 35 void *base = ctx->current; in acpi_write_dsdt() local 42 (ulong)(ctx->current - base), ctx->current); in acpi_write_dsdt()
|
| A D | mcfg.c | 18 int acpi_create_mcfg_mmconfig(struct acpi_mcfg_mmconfig *mmconfig, u32 base, in acpi_create_mcfg_mmconfig() argument 22 mmconfig->base_address_l = base; in acpi_create_mcfg_mmconfig()
|
| A D | acpi_writer.c | 127 ctx->base = map_sysmem(start, 0); in acpi_setup_ctx() 128 ctx->current = ctx->base; in acpi_setup_ctx()
|
| /lib/mbedtls/external/mbedtls/scripts/mbedtls_dev/ |
| A D | crypto_knowledge.py | 480 def permitted_truncations(cls, base: str) -> FrozenSet[int]: 488 if base in cls.PERMITTED_TAG_LENGTHS: 489 return cls.PERMITTED_TAG_LENGTHS[base] 490 max_length = cls.MAC_LENGTH.get(base, None) 492 m = cls.HMAC_RE.match(base) 496 raise ValueError('Unknown permitted lengths for ' + base) 512 base = m.group('base') 514 permitted_lengths = self.permitted_truncations(base)
|
| /lib/mbedtls/external/mbedtls/programs/ssl/ |
| A D | ssl_mail_client.c | 325 unsigned char base[1024]; in main() local 330 unsigned char buf[sizeof(base) + 2]; in main() 690 ret = mbedtls_base64_encode(base, sizeof(base), &n, (const unsigned char *) opt.user_name, in main() 697 len = sprintf((char *) buf, "%s\r\n", base); in main() 709 ret = mbedtls_base64_encode(base, sizeof(base), &n, (const unsigned char *) opt.user_pwd, in main() 716 len = sprintf((char *) buf, "%s\r\n", base); in main()
|
| /lib/crypt/ |
| A D | crypt-port.h | 18 #define strtoul(cp, endp, base) simple_strtoul(cp, endp, base) argument
|
| /lib/efi_client/ |
| A D | efi_stub.c | 169 uint64_t base, limit; in get_codeseg32() local 175 base = ((desc >> GDT_BASE_LOW_SHIFT) & GDT_BASE_LOW_MASK) | in get_codeseg32() 181 base <<= 12; /* 4KB granularity */ in get_codeseg32() 186 CONFIG_TEXT_BASE > base && in get_codeseg32()
|
| /lib/efi_loader/ |
| A D | efi_file.c | 25 struct efi_simple_file_system_protocol base; member 30 #define to_fs(x) container_of(x, struct file_system, base) 33 struct efi_file_handle base; member 45 #define to_fh(x) container_of(x, struct file_handle, base) 206 fh->base = efi_file_handle_protocol; in file_open() 248 return &fh->base; in file_open() 1256 fs->base.rev = EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION; in efi_create_simple_file_system() 1257 fs->base.open_volume = efi_open_volume; in efi_create_simple_file_system() 1261 *fsp = &fs->base; in efi_create_simple_file_system()
|