/linux-6.6.21/drivers/media/i2c/ccs/ |
D | ccs-data.c | 54 #define is_contained(var, endp) \ argument 55 (sizeof(*var) <= (endp) - (void *)(var)) 56 #define has_headroom(ptr, headroom, endp) \ argument 57 ((headroom) <= (endp) - (void *)(ptr)) 58 #define is_contained_with_headroom(var, headroom, endp) \ argument 59 (sizeof(*var) + (headroom) <= (endp) - (void *)(var)) 64 const void *endp) in ccs_data_parse_length_specifier() argument 68 if (!is_contained(__len, endp)) in ccs_data_parse_length_specifier() 80 if (!is_contained(__len2, endp)) in ccs_data_parse_length_specifier() 93 if (!is_contained(__len3, endp)) in ccs_data_parse_length_specifier() [all …]
|
/linux-6.6.21/arch/s390/boot/ |
D | string.c | 71 unsigned long long simple_strtoull(const char *cp, char **endp, in simple_strtoull() argument 91 if (endp) in simple_strtoull() 92 *endp = (char *)cp; in simple_strtoull() 97 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 100 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 102 return simple_strtoull(cp, endp, base); in simple_strtol()
|
D | ipl_parm.c | 225 char *endp; in modify_fac_list() local 234 val = simple_strtoull(str, &endp, 0); in modify_fac_list() 235 if (str == endp) in modify_fac_list() 237 str = endp; in modify_fac_list() 240 endval = simple_strtoull(str, &endp, 0); in modify_fac_list() 241 if (str == endp) in modify_fac_list() 243 str = endp; in modify_fac_list()
|
D | pgm_check_info.c | 40 char *endp; in findsym() local 44 start = simple_strtoull(pivot, &endp, 16); in findsym() 45 size = simple_strtoull(endp + 1, &endp, 16); in findsym() 56 return endp + 1; in findsym()
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | string.c | 133 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 152 if (endp) in simple_strtoull() 153 *endp = (char *)cp; in simple_strtoull() 158 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 161 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 163 return simple_strtoull(cp, endp, base); in simple_strtol()
|
/linux-6.6.21/drivers/mtd/devices/ |
D | block2mtd.c | 348 static int ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument 350 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul() 351 switch (**endp) { in ustrtoul() 362 if ((*endp)[1] == 'i') { in ustrtoul() 363 if ((*endp)[2] == 'B') in ustrtoul() 364 (*endp) += 3; in ustrtoul() 366 (*endp) += 2; in ustrtoul() 375 char *endp; in parse_num() local 378 n = (size_t) ustrtoul(token, &endp, 0); in parse_num() 379 if (*endp) in parse_num()
|
/linux-6.6.21/tools/testing/selftests/gpio/ |
D | gpio-line-name.c | 26 char *endp; in main() local 40 info.offset = strtoul(argv[2], &endp, 10); in main() 41 if (*endp != '\0') { in main()
|
/linux-6.6.21/tools/power/cpupower/lib/ |
D | acpi_cppc.c | 43 char *endp; in acpi_cppc_get_data() local 53 value = strtoull(linebuf, &endp, 0); in acpi_cppc_get_data() 55 if (endp == linebuf || errno == ERANGE) in acpi_cppc_get_data()
|
D | cpupower.c | 81 char *endp; in cpupower_is_cpu_online() local 109 value = strtoull(linebuf, &endp, 0); in cpupower_is_cpu_online() 120 char *endp; in sysfs_topology_read_file() local 127 *result = strtol(linebuf, &endp, 0); in sysfs_topology_read_file() 128 if (endp == linebuf || errno == ERANGE) in sysfs_topology_read_file()
|
/linux-6.6.21/init/ |
D | do_mounts_initrd.c | 55 char *endp; in early_initrdmem() local 57 start = memparse(p, &endp); in early_initrdmem() 58 if (*endp == ',') { in early_initrdmem() 59 size = memparse(endp + 1, NULL); in early_initrdmem()
|
/linux-6.6.21/arch/x86/boot/ |
D | string.c | 120 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 139 if (endp) in simple_strtoull() 140 *endp = (char *)cp; in simple_strtoull() 145 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 148 return -simple_strtoull(cp + 1, endp, base); in simple_strtol() 150 return simple_strtoull(cp, endp, base); in simple_strtol()
|
D | string.h | 28 extern unsigned long long simple_strtoull(const char *cp, char **endp, 30 long simple_strtol(const char *cp, char **endp, unsigned int base);
|
/linux-6.6.21/arch/powerpc/platforms/pseries/ |
D | lparcfg.c | 690 char *endp; in lparcfg_write() local 691 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 692 if (endp == tmp) in lparcfg_write() 707 char *endp; in lparcfg_write() local 708 *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 709 if (endp == tmp) in lparcfg_write() 714 char *endp; in lparcfg_write() local 715 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write() 716 if (endp == tmp) in lparcfg_write() 721 char *endp; in lparcfg_write() local [all …]
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | set_memory.h | 19 static __always_inline int set_kernel_memory(char *startp, char *endp, in set_kernel_memory() argument 24 unsigned long end = (unsigned long)endp; in set_kernel_memory() 35 static inline int set_kernel_memory(char *startp, char *endp, in set_kernel_memory() argument
|
/linux-6.6.21/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 378 char *startp, *endp; in parse_cmdline_cpu() local 401 end_cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 402 if (startp == endp) in parse_cmdline_cpu() 411 startp = endp; in parse_cmdline_cpu() 446 cpu = strtol(startp, &endp, 10); in parse_cmdline_cpu() 447 if (startp == endp) in parse_cmdline_cpu() 452 startp = endp; in parse_cmdline_cpu() 461 char *startp, *endp; in parse_cmdline_pkg() local 481 end_pkg = strtol(startp, &endp, 10); in parse_cmdline_pkg() 482 if (startp == endp) in parse_cmdline_pkg() [all …]
|
/linux-6.6.21/drivers/macintosh/ |
D | windfarm_core.c | 194 char *endp; in wf_store_control() local 196 val = simple_strtoul(buf, &endp, 0); in wf_store_control() 197 while (endp < buf + count && (*endp == ' ' || *endp == '\n')) in wf_store_control() 198 ++endp; in wf_store_control() 199 if (endp - buf < count) in wf_store_control()
|
/linux-6.6.21/samples/hid/ |
D | hid_surface_dial.c | 156 char *endp = NULL; in main() local 160 l = strtol(optarg, &endp, 10); in main() 161 if (endp && *endp) in main()
|
/linux-6.6.21/drivers/s390/char/ |
D | sclp_cpi_sys.c | 333 char *endp; in system_level_store() local 335 level = simple_strtoull(buf, &endp, 16); in system_level_store() 337 if (endp == buf) in system_level_store() 339 if (*endp == '\n') in system_level_store() 340 endp++; in system_level_store() 341 if (*endp) in system_level_store()
|
/linux-6.6.21/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 54 char *endp; in sysfs_is_cpu_online() local 82 value = strtoull(linebuf, &endp, 0); in sysfs_is_cpu_online() 210 char *endp; in sysfs_idlestate_get_one_value() local 221 value = strtoull(linebuf, &endp, 0); in sysfs_idlestate_get_one_value() 223 if (endp == linebuf || errno == ERANGE) in sysfs_idlestate_get_one_value()
|
D | misc.c | 56 char *endp; in cpupower_intel_get_perf_bias() local 66 val = strtol(linebuf, &endp, 0); in cpupower_intel_get_perf_bias() 67 if (endp == linebuf || errno == ERANGE) in cpupower_intel_get_perf_bias()
|
/linux-6.6.21/arch/arm/mach-mvebu/ |
D | board-v7.c | 70 const __be32 *reg, *endp; in mvebu_scan_mem() local 82 endp = reg + (l / sizeof(__be32)); in mvebu_scan_mem() 83 while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { in mvebu_scan_mem()
|
/linux-6.6.21/arch/arm/boot/compressed/ |
D | fdt_check_mem_start.c | 68 const fdt32_t *usable, *reg, *endp; in fdt_check_mem_start() local 119 for (endp = reg + (len / sizeof(fdt32_t)); in fdt_check_mem_start() 120 endp - reg >= addr_cells + size_cells; in fdt_check_mem_start()
|
/linux-6.6.21/arch/arm/mach-shmobile/ |
D | setup-rcar-gen2.c | 134 const __be32 *reg, *endp; in rcar_gen2_scan_mem() local 149 endp = reg + (l / sizeof(__be32)); in rcar_gen2_scan_mem() 150 while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { in rcar_gen2_scan_mem()
|
/linux-6.6.21/scripts/kconfig/ |
D | conf.c | 94 char *endp; in set_randconfig_seed() local 96 seed = strtol(env, &endp, 0); in set_randconfig_seed() 97 if (*endp == '\0') in set_randconfig_seed() 190 char *endp; in conf_set_all_new_symbols() local 191 int tmp = strtol(env, &endp, 10); in conf_set_all_new_symbols() 200 env = (*endp == ':') ? endp + 1 : endp; in conf_set_all_new_symbols()
|
/linux-6.6.21/drivers/media/tuners/ |
D | xc2028.c | 305 const unsigned char *p, *endp; in load_all_firmwares() local 313 endp = p + fw->size; in load_all_firmwares() 344 while (p < endp) { in load_all_firmwares() 356 if (endp - p < sizeof(type) + sizeof(id) + sizeof(size)) in load_all_firmwares() 368 if (endp - p < sizeof(size)) in load_all_firmwares() 375 if (!size || size > endp - p) { in load_all_firmwares() 380 type, (unsigned long long)id, (endp - p), size); in load_all_firmwares() 547 unsigned char *p, *endp, buf[MAX_XFER_SIZE]; in load_firmware() local 564 endp = p + priv->firm[pos].size; in load_firmware() 566 while (p < endp) { in load_firmware() [all …]
|