Searched refs:endptr (Results 1 - 26 of 26) sorted by relevance

/linux-4.4.14/lib/
H A Dcmdline.c129 char *endptr; /* local pointer to end of parsed string */ memparse() local
131 unsigned long long ret = simple_strtoull(ptr, &endptr, 0); memparse()
133 switch (*endptr) { memparse()
152 endptr++; memparse()
158 *retptr = endptr; memparse()
/linux-4.4.14/tools/perf/util/
H A Dtarget.c85 char *endptr; target__parse_uid() local
86 int uid = strtol(str, &endptr, 10); target__parse_uid()
88 if (*endptr != '\0') target__parse_uid()
H A Dcallchain.c86 char *endptr; __parse_callchain_report_opt() local
131 callchain_param.min_percent = strtod(tok, &endptr); __parse_callchain_report_opt()
132 if (tok == endptr) __parse_callchain_report_opt()
137 callchain_param.print_limit = strtoul(tok, &endptr, 0); __parse_callchain_report_opt()
138 if (tok == endptr) __parse_callchain_report_opt()
164 char *endptr; perf_callchain_config() local
190 callchain_param.min_percent = strtod(value, &endptr); perf_callchain_config()
191 if (value == endptr) perf_callchain_config()
195 callchain_param.print_limit = strtod(value, &endptr); perf_callchain_config()
196 if (value == endptr) perf_callchain_config()
H A Dutil.c434 char *endptr; parse_tag_value() local
436 value = strtoul(str, &endptr, 10); parse_tag_value()
437 if (s != endptr) parse_tag_value()
453 char *endptr; get_stack_size() local
457 size = strtoul(str, &endptr, 0); get_stack_size()
460 if (*endptr) get_stack_size()
H A Dauxtrace.c954 char *endptr; itrace_parse_synth_opts() local
977 synth_opts->period = strtoull(p, &endptr, 10); itrace_parse_synth_opts()
979 p = endptr; itrace_parse_synth_opts()
1042 val = strtoul(p, &endptr, 10); itrace_parse_synth_opts()
1043 p = endptr; itrace_parse_synth_opts()
1058 val = strtoul(p, &endptr, 10); itrace_parse_synth_opts()
1059 p = endptr; itrace_parse_synth_opts()
H A Dannotate.c58 char *endptr, *tok, *name; call__parse() local
60 ops->target.addr = strtoull(ops->raw, &endptr, 16); call__parse()
62 name = strchr(endptr, '<'); call__parse()
79 tok = strchr(endptr, '('); call__parse()
85 tok = strchr(endptr, '*'); call__parse()
147 char *endptr, *name, *t; comment__symbol() local
152 *addrp = strtoull(comment, &endptr, 16); comment__symbol()
153 name = strchr(endptr, '<'); comment__symbol()
/linux-4.4.14/tools/power/cpupower/utils/
H A Dcpuidle-set.c31 char *endptr; cmd_idle_set() local
67 latency = strtoull(optarg, &endptr, 10); cmd_idle_set()
68 if (*endptr != '\0') { cmd_idle_set()
/linux-4.4.14/arch/mips/sibyte/common/
H A Dcfe.c184 char *tmp, *endptr; initrd_setup() local
210 initrd_size = simple_strtoul(str, &endptr, 16); initrd_setup()
211 if (*endptr) { initrd_setup()
216 initrd_start = simple_strtoul(tmp, &endptr, 16); initrd_setup()
217 if (*endptr) { initrd_setup()
/linux-4.4.14/drivers/mtd/
H A Dmtdsuper.c161 char *endptr; mount_mtd() local
163 mtdnr = simple_strtoul(dev_name + 3, &endptr, 0); mount_mtd()
164 if (!*endptr) { mount_mtd()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dobd_mount.c577 * @param [out] endptr if endptr isn't NULL it is set to end of fsname
581 const char **endptr) server_name2fsname()
596 if (endptr != NULL) server_name2fsname()
597 *endptr = dash; server_name2fsname()
605 if endptr isn't NULL it is set to end of name */ server_name2index()
607 const char **endptr) server_name2index()
630 if (endptr != NULL) server_name2index()
631 *endptr = dash + 3; server_name2index()
635 index = simple_strtoul(dash, (char **)endptr, 16); server_name2index()
640 if (endptr != NULL && strncmp(LUSTRE_MDC_NAME, *endptr + 1, server_name2index()
642 *endptr += sizeof(LUSTRE_MDC_NAME); server_name2index()
580 server_name2fsname(const char *svname, char *fsname, const char **endptr) server_name2fsname() argument
606 server_name2index(const char *svname, __u32 *idx, const char **endptr) server_name2index() argument
/linux-4.4.14/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c120 char *endptr; cmdline() local
122 new_bias = strtoull(argv[optind], &endptr, 0); cmdline()
123 if (endptr == argv[optind] || cmdline()
/linux-4.4.14/drivers/pci/hotplug/
H A Drpaphp_core.c250 char *endptr; is_php_type() local
253 value = simple_strtoul(drc_type, &endptr, 10); is_php_type()
254 if (endptr == drc_type) is_php_type()
/linux-4.4.14/tools/perf/arch/x86/util/
H A Dintel-bts.c258 char *endptr; intel_bts_parse_snapshot_options() local
261 snapshot_size = strtoull(str, &endptr, 0); intel_bts_parse_snapshot_options()
262 if (*endptr || snapshot_size > SIZE_MAX) intel_bts_parse_snapshot_options()
H A Dintel-pt.c244 char *endptr; intel_pt_parse_snapshot_options() local
247 snapshot_size = strtoull(str, &endptr, 0); intel_pt_parse_snapshot_options()
248 if (*endptr || snapshot_size > SIZE_MAX) intel_pt_parse_snapshot_options()
/linux-4.4.14/fs/ubifs/
H A Dsuper.c1913 char *endptr; open_ubi() local
1931 dev = simple_strtoul(name + 3, &endptr, 0); open_ubi()
1934 if (*endptr == '\0') open_ubi()
1938 if (*endptr == '_' && isdigit(endptr[1])) { open_ubi()
1939 vol = simple_strtoul(endptr + 1, &endptr, 0); open_ubi()
1940 if (*endptr != '\0') open_ubi()
1946 if ((*endptr == ':' || *endptr == '!') && endptr[1] != '\0') open_ubi()
1947 return ubi_open_volume_nm(dev, ++endptr, mode); open_ubi()
/linux-4.4.14/drivers/atm/
H A Dlanai.c242 int endptr; /* last endptr from service entry */ member in struct:lanai_vcc::__anon3449
1138 static inline int vcc_tx_space(const struct lanai_vcc *lvcc, int endptr) vcc_tx_space() argument
1141 r = endptr * 16; vcc_tx_space()
1303 struct lanai_vcc *lvcc, int endptr) vcc_tx_unqueue_aal5()
1307 int space = vcc_tx_space(lvcc, endptr); vcc_tx_unqueue_aal5()
1351 struct lanai_vcc *lvcc, int endptr) vcc_tx_unqueue_aal0()
1381 /* Receive AAL5 data on a VCC with a particular endptr */ vcc_rx_aal5()
1382 static void vcc_rx_aal5(struct lanai_vcc *lvcc, int endptr) vcc_rx_aal5() argument
1387 u32 *end = &lvcc->rx.buf.start[endptr * 4]; vcc_rx_aal5()
1424 cardvcc_write(lvcc, endptr, vcc_rxreadptr); vcc_rx_aal5()
1646 lvcc->tx.endptr = SERVICE_GET_END(s); handle_service()
1707 lvcc->tx.unqueue(lanai, lvcc, lvcc->tx.endptr); iter_transmit()
1753 int endptr; iter_dequeue() local
1759 endptr = TXREADPTR_GET_PTR(cardvcc_read(lvcc, vcc_txreadptr)); iter_dequeue()
1760 lvcc->tx.unqueue(lanai, lvcc, endptr); iter_dequeue()
1302 vcc_tx_unqueue_aal5(struct lanai_dev *lanai, struct lanai_vcc *lvcc, int endptr) vcc_tx_unqueue_aal5() argument
1350 vcc_tx_unqueue_aal0(struct lanai_dev *lanai, struct lanai_vcc *lvcc, int endptr) vcc_tx_unqueue_aal0() argument
/linux-4.4.14/fs/xfs/
H A Dxfs_dir2_readdir.c168 char *endptr; /* end of the data entries */ xfs_dir2_block_getdents() local
200 endptr = (char *)xfs_dir2_block_leaf_p(btp); xfs_dir2_block_getdents()
206 while (ptr < endptr) { xfs_dir2_block_getdents()
/linux-4.4.14/drivers/video/fbdev/
H A Dau1200fb.c1582 char *this_opt, *endptr; au1200fb_setup() local
1597 char *endptr; au1200fb_setup() local
1601 li = simple_strtol(this_opt, &endptr, 0); au1200fb_setup()
1602 if (*endptr == '\0') au1200fb_setup()
1624 device_count = simple_strtol(this_opt, &endptr, 0); au1200fb_setup()
1630 window_index = simple_strtol(this_opt, &endptr, 0); au1200fb_setup()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_dir2_data.c732 char *endptr; /* end of data area */ xfs_dir2_data_make_free() local
746 endptr = (char *)hdr + args->geo->blksize; xfs_dir2_data_make_free()
753 endptr = (char *)xfs_dir2_block_leaf_p(btp); xfs_dir2_data_make_free()
772 if ((char *)hdr + offset + len < endptr) { xfs_dir2_data_make_free()
H A Dxfs_dir2_sf.c164 char *endptr; /* end of data entries */ xfs_dir2_block_to_sf() local
198 endptr = (char *)xfs_dir2_block_leaf_p(btp); xfs_dir2_block_to_sf()
204 while (ptr < endptr) { xfs_dir2_block_to_sf()
/linux-4.4.14/arch/cris/arch-v10/kernel/
H A Dkgdb.c398 gdb_cris_strtol (const char *s, char **endptr, int base) gdb_cris_strtol() argument
407 if (endptr) gdb_cris_strtol()
409 /* Unconverted suffix is stored in endptr unless endptr is NULL. */ gdb_cris_strtol()
410 *endptr = s1; gdb_cris_strtol()
/linux-4.4.14/arch/cris/arch-v32/kernel/
H A Dkgdb.c369 static int gdb_cris_strtol(const char *s, char **endptr, int base);
516 gdb_cris_strtol(const char *s, char **endptr, int base) gdb_cris_strtol() argument
525 if (endptr) { gdb_cris_strtol()
526 /* Unconverted suffix is stored in endptr unless endptr is NULL. */ gdb_cris_strtol()
527 *endptr = s1; gdb_cris_strtol()
/linux-4.4.14/drivers/net/ethernet/microchip/
H A Denc28j60.c809 int endptr; enc28j60_read_tsv() local
811 endptr = locked_regw_read(priv, ETXNDL); enc28j60_read_tsv()
814 endptr + 1); enc28j60_read_tsv()
815 enc28j60_mem_read(priv, endptr + 1, TSV_SIZE, tsv); enc28j60_read_tsv()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
H A Dlproc_ptlrpc.c1255 char *endptr; lprocfs_wr_import() local
1260 inst = simple_strtoul(ptr, &endptr, 10); lprocfs_wr_import()
1261 if (*endptr) { lprocfs_wr_import()
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_configfs.c136 char *endptr; lio_target_np_iser_store() local
140 op = simple_strtoul(page, &endptr, 0); lio_target_np_iser_store()
/linux-4.4.14/drivers/parport/
H A Dparport_pc.c3236 char *endptr; parport_setup() local
3252 val = simple_strtoul(str, &endptr, 0); parport_setup()
3253 if (endptr == str) { parport_setup()

Completed in 926 milliseconds