| /linux/drivers/parport/ |
| H A D | probe.c | 66 char *sep; in parse_data() local 69 sep = strchr(p, ':'); in parse_data() 70 if (sep) { in parse_data() 72 *(sep++) = 0; in parse_data() 74 u = sep + strlen (sep) - 1; in parse_data() 80 info->mfr = kstrdup(sep, GFP_KERNEL); in parse_data() 83 info->model = kstrdup(sep, GFP_KERNEL); in parse_data() 88 info->class_name = kstrdup(sep, GFP_KERNEL); in parse_data() 89 string_upper(sep, sep); in parse_data() 91 if (!strcmp(classes[i].token, sep)) { in parse_data() [all …]
|
| /linux/samples/pktgen/ |
| H A D | functions.sh | 185 local sep=: sep2=:: 186 local sep_cnt=$(tr -cd $sep <<< $1 | wc -c) 195 shrink=( $(grep -E -o "$sep{2,}" <<< $addr) ) 203 [[ ${addr:0:1} == $sep ]] && addr=0${addr} 204 [[ ${addr: -1} == $sep ]] && addr=${addr}0 217 local addr sep 230 [[ $IP6 ]] && sep=: || sep=. 231 IFS=$sep read -a addr <<< $net 278 local ip sep 281 [[ $IP6 ]] && sep=: || sep=. [all …]
|
| /linux/tools/perf/ui/tui/ |
| H A D | util.c | 85 const char *sep = strchr(t, '\n'); in ui_browser__input_window() local 87 if (sep == NULL) in ui_browser__input_window() 88 sep = strchr(t, '\0'); in ui_browser__input_window() 89 len = sep - t; in ui_browser__input_window() 93 if (*sep == '\0') in ui_browser__input_window() 95 t = sep + 1; in ui_browser__input_window() 175 const char *sep = strchr(t, '\n'); in __ui__info_window() local 178 if (sep == NULL) in __ui__info_window() 179 sep = strchr(t, '\0'); in __ui__info_window() 180 len = sep - t; in __ui__info_window() [all …]
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_debugfs.c | 34 bool is_set, char *sep, const char *set_name, const char *unset_name) in __seq_print_rq_state_bit() argument 37 seq_putc(m, *sep); in __seq_print_rq_state_bit() 39 *sep = '|'; in __seq_print_rq_state_bit() 41 seq_putc(m, *sep); in __seq_print_rq_state_bit() 43 *sep = '|'; in __seq_print_rq_state_bit() 48 bool is_set, char *sep, const char *set_name) in seq_print_rq_state_bit() argument 50 __seq_print_rq_state_bit(m, is_set, sep, set_name, NULL); in seq_print_rq_state_bit() 57 char sep = ' '; in seq_print_request_state() local 63 seq_print_rq_state_bit(m, s & RQ_IN_ACT_LOG, &sep, "in-AL"); in seq_print_request_state() 64 seq_print_rq_state_bit(m, s & RQ_POSTPONED, &sep, "postponed"); in seq_print_request_state() [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | nmi_debug.c | 47 char *p, *sep; in nmi_debug_setup() local 54 for (p = str + 1; *p; p = sep + 1) { in nmi_debug_setup() 55 sep = strchr(p, ','); in nmi_debug_setup() 56 if (sep) in nmi_debug_setup() 57 *sep = 0; in nmi_debug_setup() 69 if (!sep) in nmi_debug_setup()
|
| /linux/scripts/dtc/ |
| H A D | fdtput.c | 153 const char *sep; in create_paths() local 160 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths() 162 sep = strchr(path, '/'); in create_paths() 163 if (!sep) in create_paths() 164 sep = path + strlen(path); in create_paths() 167 sep - path); in create_paths() 170 sep - path); in create_paths() 173 report_error(path, sep - path, node); in create_paths()
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | quirks.c | 223 char *sep; in scmi_quirk_range_parse() local 237 sep = strchr(first, '-'); in scmi_quirk_range_parse() 238 if (sep) in scmi_quirk_range_parse() 239 *sep = '\0'; in scmi_quirk_range_parse() 241 if (sep == first) /* -X */ in scmi_quirk_range_parse() 248 if (!sep) in scmi_quirk_range_parse() 250 else if (sep != last) /* x-Y */ in scmi_quirk_range_parse() 251 ret = kstrtouint(sep + 1, 0, &quirk->end_range); in scmi_quirk_range_parse()
|
| /linux/tools/perf/ui/stdio/ |
| H A D | hist.c | 336 const char *sep = symbol_conf.field_sep ?: ";"; in __callchain__fprintf_folded() local 351 ret += fprintf(fp, "%s%s", first ? "" : sep, in __callchain__fprintf_folded() 421 const char *sep = symbol_conf.field_sep; in __hist_entry__snprintf() local 438 if (!sep || !first) { in __hist_entry__snprintf() 439 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf() 466 const char *sep = symbol_conf.field_sep; in hist_entry__hierarchy_fprintf() local 488 if (!sep || !first) { in hist_entry__hierarchy_fprintf() 489 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__hierarchy_fprintf() 503 if (!sep) in hist_entry__hierarchy_fprintf() 527 printed += fprintf(fp, "%s%s", sep ?: " ", skip_spaces(buf)); in hist_entry__hierarchy_fprintf() [all …]
|
| /linux/tools/perf/tests/shell/ |
| H A D | test_arm_coresight_disasm.sh | 41 sep="\s\|\s" 42 branch_search="\sbl${sep}b${sep}b.ne${sep}b.eq${sep}cbz\s"
|
| /linux/tools/bpf/bpftool/ |
| H A D | json_writer.c | 25 char sep; /* either nul or comma */ member 49 if (self->sep != '\0') in jsonw_eor() 50 putc(self->sep, self->out); in jsonw_eor() 51 self->sep = ','; in jsonw_eor() 97 self->sep = '\0'; in jsonw_new() 122 self->sep = '\0'; in jsonw_reset() 131 self->sep = '\0'; in jsonw_begin() 139 if (self->sep != '\0') in jsonw_end() 142 self->sep = ','; in jsonw_end() 151 self->sep = '\0'; in jsonw_name()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | json_writer.c | 25 char sep; /* either nul or comma */ member 49 if (self->sep != '\0') in jsonw_eor() 50 putc(self->sep, self->out); in jsonw_eor() 51 self->sep = ','; in jsonw_eor() 97 self->sep = '\0'; in jsonw_new() 122 self->sep = '\0'; in jsonw_reset() 131 self->sep = '\0'; in jsonw_begin() 139 if (self->sep != '\0') in jsonw_end() 142 self->sep = ','; in jsonw_end() 151 self->sep = '\0'; in jsonw_name()
|
| /linux/security/ipe/ |
| H A D | digest.c | 25 char *sep, *raw_digest; in ipe_digest_parse() local 35 sep = strchr(valstr, ':'); in ipe_digest_parse() 36 if (!sep) { in ipe_digest_parse() 41 alg = kstrndup(valstr, sep - valstr, GFP_KERNEL); in ipe_digest_parse() 47 raw_digest = sep + 1; in ipe_digest_parse()
|
| /linux/tools/perf/util/ |
| H A D | intlist.c | 97 char *sep; in intlist__parse_list() local 101 unsigned long value = strtol(s, &sep, 10); in intlist__parse_list() 103 if (*sep != ',' && *sep != '\0') in intlist__parse_list() 108 s = sep + 1; in intlist__parse_list() 109 } while (*sep != '\0'); in intlist__parse_list()
|
| H A D | addr2line.c | 26 char *sep; in filename_split() local 28 sep = strchr(filename, '\n'); in filename_split() 29 if (sep) in filename_split() 30 *sep = '\0'; in filename_split() 35 sep = strchr(filename, ':'); in filename_split() 36 if (sep) { in filename_split() 37 *sep++ = '\0'; in filename_split() 38 *line_nr = strtoul(sep, NULL, 0); in filename_split()
|
| H A D | strlist.c | 144 char *sep; in strlist__parse_list() local 147 while ((sep = strchr(s, ',')) != NULL) { in strlist__parse_list() 148 *sep = '\0'; in strlist__parse_list() 150 *sep = ','; in strlist__parse_list() 153 s = sep + 1; in strlist__parse_list()
|
| H A D | pfm.c | 41 const char *sep; in parse_libpfm_events_option() local 52 sep = p ? str + (p - p_orig - 1) : ""; in parse_libpfm_events_option() 53 if (*sep == '{') { in parse_libpfm_events_option() 64 if (*sep == '}') { in parse_libpfm_events_option() 106 if (*sep == '}') { in parse_libpfm_events_option()
|
| /linux/tools/perf/scripts/python/ |
| H A D | stackcollapse.py | 113 sep = "-" 115 comm = comm + sep + str(param_dict['sample']['pid']) 116 sep = "/" 118 comm = comm + sep + str(param_dict['sample']['tid'])
|
| /linux/scripts/dtc/libfdt/ |
| H A D | fdt_overlay.c | 410 char *sep, *endptr; in overlay_fixup_phandle() local 422 sep = memchr(fixup_str, ':', fixup_len); in overlay_fixup_phandle() 423 if (!sep || *sep != ':') in overlay_fixup_phandle() 426 path_len = sep - path; in overlay_fixup_phandle() 431 name = sep + 1; in overlay_fixup_phandle() 432 sep = memchr(name, ':', fixup_len); in overlay_fixup_phandle() 433 if (!sep || *sep != ':') in overlay_fixup_phandle() 436 name_len = sep - name; in overlay_fixup_phandle() 440 poffset = strtoul(sep + 1, &endptr, 10); in overlay_fixup_phandle() 441 if ((*endptr != '\0') || (endptr <= (sep + 1))) in overlay_fixup_phandle()
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | audit_logread.c | 98 const char *sep = ""; in readlog() local 123 printf("%s%s=%s", sep, k, v); in readlog() 124 sep = " "; in readlog() 126 if (*sep) { in readlog()
|
| /linux/fs/cachefiles/ |
| H A D | key.c | 43 char *name, sep; in cachefiles_cook_key() local 90 sep = (nbe <= nle) ? 'S' : 'T'; /* Encoding indicator */ in cachefiles_cook_key() 98 name[len++] = sep; in cachefiles_cook_key() 101 sep = ','; in cachefiles_cook_key()
|
| /linux/tools/perf/arch/s390/util/ |
| H A D | header.c | 111 char *sep = strchr(cp, '='); in get_cpuid() local 114 sizeof(version) - vssize, "%s", sep + 1); in get_cpuid() 118 char *sep = strchr(cp, '='); in get_cpuid() local 121 sizeof(authorization) - atsize, "%s", sep + 1); in get_cpuid()
|
| /linux/kernel/trace/ |
| H A D | trace_boot.c | 224 char sep; in trace_boot_hist_add_array() local 234 sep = '='; in trace_boot_hist_add_array() 236 append_printf(bufp, end, "%c%s", sep, p); in trace_boot_hist_add_array() 237 if (sep == '=') in trace_boot_hist_add_array() 238 sep = ','; in trace_boot_hist_add_array() 253 char sep; in trace_boot_hist_add_one_handler() local 279 sep = '('; in trace_boot_hist_add_one_handler() 281 append_printf(bufp, end, "%c%s", sep, p); in trace_boot_hist_add_one_handler() 282 if (sep == '(') in trace_boot_hist_add_one_handler() 283 sep = ','; in trace_boot_hist_add_one_handler()
|
| /linux/drivers/scsi/ |
| H A D | scsi_debugfs.c | 21 bool sep = false; in scsi_flags_show() local 25 if (sep) in scsi_flags_show() 27 sep = true; in scsi_flags_show()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_mitigations.c | 33 char *str, *sep, *tok; in mitigations_set() local 43 for (sep = str; (tok = strsep(&sep, ","));) { in mitigations_set()
|
| /linux/mm/kasan/ |
| H A D | report_generic.c | 214 const char *sep = strchr(*frame_descr, ' '); in tokenize_frame_descr() local 216 if (sep == NULL) in tokenize_frame_descr() 217 sep = *frame_descr + strlen(*frame_descr); in tokenize_frame_descr() 220 const size_t tok_len = sep - *frame_descr; in tokenize_frame_descr() 233 *frame_descr = sep + 1; in tokenize_frame_descr()
|