Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 76) sorted by relevance

1234

/linux/drivers/media/i2c/ccs/
H A Dccs-data.c64 const void *endp) in ccs_data_parse_length_specifier() argument
68 if (!is_contained(__len, endp)) in ccs_data_parse_length_specifier()
138 if (v + 1 != endp) in ccs_data_parse_version()
186 endp); in ccs_data_block_parse_header()
232 if (!is_contained(r, endp)) in ccs_data_parse_regs()
249 if (!is_contained(r2, endp)) in ccs_data_parse_regs()
399 if (__entry != endp) in ccs_data_parse_ffd()
427 __pdaf + 1, endp, dev); in ccs_data_parse_pdaf_readout()
447 while (__next_rule < endp) { in ccs_data_parse_rules()
793 if (__end + 1 != endp) { in ccs_data_parse_end()
[all …]
/linux/arch/s390/boot/
H A Dstring.c71 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()
H A Dipl_parm.c227 char *endp; in modify_fac_list() local
236 val = simple_strtoull(str, &endp, 0); in modify_fac_list()
237 if (str == endp) in modify_fac_list()
239 str = endp; in modify_fac_list()
242 endval = simple_strtoull(str, &endp, 0); in modify_fac_list()
243 if (str == endp) in modify_fac_list()
245 str = endp; in modify_fac_list()
H A Dpgm_check_info.c40 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/drivers/firmware/efi/libstub/
H A Dstring.c133 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/drivers/mtd/devices/
H A Dblock2mtd.c353 static int ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument
355 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul()
356 switch (**endp) { in ustrtoul()
367 if ((*endp)[1] == 'i') { in ustrtoul()
368 if ((*endp)[2] == 'B') in ustrtoul()
369 (*endp) += 3; in ustrtoul()
371 (*endp) += 2; in ustrtoul()
380 char *endp; in parse_num() local
383 n = (size_t) ustrtoul(token, &endp, 0); in parse_num()
384 if (*endp) in parse_num()
/linux/tools/testing/selftests/gpio/
H A Dgpio-line-name.c26 char *endp; in main() local
40 info.offset = strtoul(argv[2], &endp, 10); in main()
41 if (*endp != '\0') { in main()
/linux/tools/power/cpupower/lib/
H A Dacpi_cppc.c43 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()
H A Dcpupower.c81 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/init/
H A Ddo_mounts_initrd.c54 char *endp; in early_initrdmem() local
56 start = memparse(p, &endp); in early_initrdmem()
57 if (*endp == ',') { in early_initrdmem()
58 size = memparse(endp + 1, NULL); in early_initrdmem()
/linux/arch/x86/boot/
H A Dstring.c120 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()
H A Dstring.h28 extern unsigned long long simple_strtoull(const char *cp, char **endp,
30 long simple_strtol(const char *cp, char **endp, unsigned int base);
/linux/arch/riscv/include/asm/
H A Dset_memory.h19 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/arch/powerpc/platforms/pseries/
H A Dlparcfg.c704 char *endp; in lparcfg_write() local
705 *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); in lparcfg_write()
706 if (endp == tmp) in lparcfg_write()
721 char *endp; in lparcfg_write() local
722 *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); in lparcfg_write()
723 if (endp == tmp) in lparcfg_write()
728 char *endp; in lparcfg_write() local
730 if (endp == tmp) in lparcfg_write()
735 char *endp; in lparcfg_write() local
736 *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); in lparcfg_write()
[all …]
/linux/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c378 char *startp, *endp; in parse_cmdline_cpu() local
402 if (startp == endp) in parse_cmdline_cpu()
411 startp = endp; 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
482 if (startp == endp) in parse_cmdline_pkg()
491 startp = endp; in parse_cmdline_pkg()
504 startp = endp; in parse_cmdline_pkg()
850 char *endp; in get_epb() local
[all …]
/linux/drivers/macintosh/
H A Dwindfarm_core.c194 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/samples/hid/
H A Dhid_surface_dial.c156 char *endp = NULL; in main() local
160 l = strtol(optarg, &endp, 10); in main()
161 if (endp && *endp) in main()
/linux/drivers/s390/char/
H A Dsclp_cpi_sys.c333 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/tools/power/cpupower/utils/helpers/
H A Dsysfs.c54 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()
H A Dmisc.c56 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/arch/arm/mach-mvebu/
H A Dboard-v7.c70 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/arch/arm/boot/compressed/
H A Dfdt_check_mem_start.c68 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/arch/arm/mach-shmobile/
H A Dsetup-rcar-gen2.c134 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/scripts/kconfig/
H A Dconf.c95 char *endp; in set_randconfig_seed() local
97 seed = strtol(env, &endp, 0); in set_randconfig_seed()
98 if (*endp == '\0') in set_randconfig_seed()
191 char *endp; in conf_set_all_new_symbols() local
192 int tmp = strtol(env, &endp, 10); in conf_set_all_new_symbols()
201 env = (*endp == ':') ? endp + 1 : endp; in conf_set_all_new_symbols()
/linux/drivers/media/tuners/
H A Dxc2028.c305 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()
368 if (endp - p < sizeof(size)) in load_all_firmwares()
375 if (!size || size > endp - p) { 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()
570 if (p + sizeof(size) > endp) { in load_firmware()
616 if ((size + p > endp)) { in load_firmware()
[all …]

1234