/linux/fs/smb/client/ |
H A D | unc.c | 21 char *dst, *delim; in extract_hostname() local 34 delim = strchr(src, '\\'); in extract_hostname() 35 if (!delim) in extract_hostname() 38 len = delim - src; in extract_hostname() 52 char *delim, *dst; in extract_sharename() local 58 delim = strchr(src, '\\'); in extract_sharename() 59 if (!delim) in extract_sharename() 61 delim++; in extract_sharename() 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
/linux/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 195 static int get_port(const char *data, int start, size_t dlen, char delim, in get_port() argument 203 if (data[i] == delim) { in get_port() 224 char delim; in try_eprt() local 233 delim = data[0]; in try_eprt() 234 if (isdigit(delim) || delim < 33 || delim > 126 || data[2] != delim) { in try_eprt() 245 pr_debug("EPRT: Got %c%c%c\n", delim, data[1], delim); in try_eprt() 251 length = try_number(data + 3, dlen - 3, array, 4, '.', delim); in try_eprt() 258 (struct in6_addr *)cmd->u3.ip6, delim); in try_eprt() 265 return get_port(data, 3 + length + 1, dlen, delim, &cmd->u.tcp.port); in try_eprt() 273 char delim; in try_epsv_response() local [all …]
|
H A D | nf_conntrack_expect.c | 631 char *delim = ""; in exp_seq_show() local 648 delim = ","; in exp_seq_show() 651 seq_printf(s, "%sINACTIVE", delim); in exp_seq_show() 652 delim = ","; in exp_seq_show() 655 seq_printf(s, "%sUSERSPACE", delim); in exp_seq_show()
|
/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | 2249 void print_header(char *delim) in print_header() argument 2257 outp += sprintf(outp, "%susec", (printed++ ? delim : "")); in print_header() 2259 outp += sprintf(outp, "%sTime_Of_Day_Seconds", (printed++ ? delim : "")); in print_header() 2261 outp += sprintf(outp, "%sPackage", (printed++ ? delim : "")); in print_header() 2263 outp += sprintf(outp, "%sDie", (printed++ ? delim : "")); in print_header() 2265 outp += sprintf(outp, "%sNode", (printed++ ? delim : "")); in print_header() 2267 outp += sprintf(outp, "%sCore", (printed++ ? delim : "")); in print_header() 2269 outp += sprintf(outp, "%sCPU", (printed++ ? delim : "")); in print_header() 2271 outp += sprintf(outp, "%sAPIC", (printed++ ? delim : "")); in print_header() 2273 outp += sprintf(outp, "%sX2APIC", (printed++ ? delim : "")); in print_header() [all …]
|
/linux/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.c | 172 const char delim[] = "\n"; in cg_read_lc() local 179 for (line = strtok(buf, delim); line; line = strtok(NULL, delim)) in cg_read_lc() 224 const char delim[] = "\n\t "; in cg_find_unified_root() local 233 for (fs = strtok(buf, delim); fs; fs = strtok(NULL, delim)) { in cg_find_unified_root() 234 mount = strtok(NULL, delim); in cg_find_unified_root() 235 type = strtok(NULL, delim); in cg_find_unified_root() 236 options = strtok(NULL, delim); in cg_find_unified_root() 237 strtok(NULL, delim); in cg_find_unified_root() 238 strtok(NULL, delim); in cg_find_unified_root() 535 const char delim[] = "\n"; in is_swap_enabled() local [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_modes.c | 2092 static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret) in drm_mode_parse_cmdline_int() argument 2102 if (*delim != '=') in drm_mode_parse_cmdline_int() 2105 value = delim + 1; in drm_mode_parse_cmdline_int() 2115 static int drm_mode_parse_panel_orientation(const char *delim, in drm_mode_parse_panel_orientation() argument 2120 if (*delim != '=') in drm_mode_parse_panel_orientation() 2123 value = delim + 1; in drm_mode_parse_panel_orientation() 2124 delim = strchr(value, ','); in drm_mode_parse_panel_orientation() 2125 if (!delim) in drm_mode_parse_panel_orientation() 2126 delim = value + strlen(value); in drm_mode_parse_panel_orientation() 2128 if (!strncmp(value, "normal", delim - value)) in drm_mode_parse_panel_orientation() [all …]
|
/linux/net/sunrpc/ |
H A D | addr.c | 162 const size_t buflen, const char *delim, in rpc_parse_scope_id() argument 170 if ((buf + buflen) == delim) in rpc_parse_scope_id() 173 if (*delim != IPV6_SCOPE_DELIMITER) in rpc_parse_scope_id() 179 len = (buf + buflen) - delim - 1; in rpc_parse_scope_id() 183 memcpy(p, delim + 1, len); in rpc_parse_scope_id() 204 const char *delim; in rpc_pton6() local 212 if (in6_pton(buf, buflen, addr, IPV6_SCOPE_DELIMITER, &delim) == 0) in rpc_pton6() 215 if (!rpc_parse_scope_id(net, buf, buflen, delim, sin6)) in rpc_pton6()
|
/linux/fs/afs/ |
H A D | addr_list.c | 85 char delim, in afs_parse_text_addrs() argument 96 _enter("%*.*s,%c", (int)len, (int)len, text, delim); in afs_parse_text_addrs() 103 if (delim == ':' && (memchr(text, ',', len) || !memchr(text, '.', len))) in afs_parse_text_addrs() 104 delim = ','; in afs_parse_text_addrs() 113 if (*p == delim) in afs_parse_text_addrs() 132 p = memchr(p, delim, end - p); in afs_parse_text_addrs() 161 if (*p == delim) { in afs_parse_text_addrs() 171 if (*q == '+' || *q == delim) in afs_parse_text_addrs() 211 } else if (*p == delim) { in afs_parse_text_addrs()
|
/linux/net/core/ |
H A D | netpoll.c | 544 char *cur=opt, *delim; in netpoll_parse_options() local 549 if ((delim = strchr(cur, '@')) == NULL) in netpoll_parse_options() 551 *delim = 0; in netpoll_parse_options() 554 cur = delim; in netpoll_parse_options() 560 if ((delim = strchr(cur, '/')) == NULL) in netpoll_parse_options() 562 *delim = 0; in netpoll_parse_options() 568 cur = delim; in netpoll_parse_options() 574 if ((delim = strchr(cur, ',')) == NULL) in netpoll_parse_options() 576 *delim = 0; in netpoll_parse_options() 578 cur = delim; in netpoll_parse_options() [all …]
|
H A D | utils.c | 86 static inline int xdigit2bin(char c, int delim) in xdigit2bin() argument 90 if (c == delim || c == '\0') in xdigit2bin() 101 if (delim == -1) in xdigit2bin() 120 int delim, const char **end) in in4_pton() argument 136 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in4_pton() 186 int delim, const char **end) in in6_pton() argument 206 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); in in6_pton() 249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
|
/linux/drivers/mtd/parsers/ |
H A D | cmdlinepart.c | 86 char delim; in newpart() local 105 delim = 0; in newpart() 115 delim = ')'; in newpart() 117 if (delim) { in newpart() 121 p = strchr(name, delim); in newpart() 123 pr_err("no closing %c found in partition name\n", delim); in newpart()
|
/linux/include/linux/ |
H A D | inet.h | 53 extern int in4_pton(const char *src, int srclen, u8 *dst, int delim, const char **end); 54 extern int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
|
/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.py | 17 def define_flag_field(event_name, field_name, delim): argument 18 flag_fields[event_name][field_name]['delim'] = delim
|
/linux/arch/s390/boot/ |
H A D | ipl_parm.c | 151 char *parm, *delim; in append_ipl_block_parm() local 156 delim = early_command_line + len; /* '\0' character position */ in append_ipl_block_parm() 175 *delim = ' '; /* replace '\0' with space */ in append_ipl_block_parm()
|
/linux/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.pm | 90 my ($event_name, $field_name, $delim) = @_; 92 $flag_fields{$event_name}{$field_name}{"delim"} = $delim;
|
/linux/kernel/trace/ |
H A D | trace_output.c | 65 trace_print_flags_seq(struct trace_seq *p, const char *delim, in trace_print_flags_seq() argument 82 if (!first && delim) in trace_print_flags_seq() 83 trace_seq_puts(p, delim); in trace_print_flags_seq() 91 if (!first && delim) in trace_print_flags_seq() 92 trace_seq_puts(p, delim); in trace_print_flags_seq() 129 trace_print_flags_seq_u64(struct trace_seq *p, const char *delim, in trace_print_flags_seq_u64() argument 146 if (!first && delim) in trace_print_flags_seq_u64() 147 trace_seq_puts(p, delim); in trace_print_flags_seq_u64() 155 if (!first && delim) in trace_print_flags_seq_u64() 156 trace_seq_puts(p, delim); in trace_print_flags_seq_u64() [all …]
|
/linux/tools/lib/api/ |
H A D | io.h | 151 /* Read up to and including the first delim. */ 152 static inline ssize_t io__getdelim(struct io *io, char **line_out, size_t *line_len_out, int delim) in io__getdelim() argument 162 while (ch != delim) { in io__getdelim() 198 return io__getdelim(io, line_out, line_len_out, /*delim=*/'\n'); in io__getline()
|
/linux/block/ |
H A D | disk-events.c | 326 const char *delim = ""; in __disk_events_show() local 333 delim, disk_events_strs[i]); in __disk_events_show() 334 delim = " "; in __disk_events_show()
|
/linux/net/ceph/ |
H A D | messenger.c | 1221 char delim, const char **ipend) in ceph_pton() argument 1225 …if (in4_pton(str, len, (u8 *)&((struct sockaddr_in *)&addr->in_addr)->sin_addr.s_addr, delim, ipen… in ceph_pton() 1230 …if (in6_pton(str, len, (u8 *)&((struct sockaddr_in6 *)&addr->in_addr)->sin6_addr.s6_addr, delim, i… in ceph_pton() 1243 struct ceph_entity_addr *addr, char delim, const char **ipend) in ceph_dns_resolve_name() argument 1253 delim_p = memchr(name, delim, namelen); in ceph_dns_resolve_name() 1288 struct ceph_entity_addr *addr, char delim, const char **ipend) in ceph_dns_resolve_name() argument 1299 struct ceph_entity_addr *addr, char delim, const char **ipend) in ceph_parse_server_name() argument 1303 ret = ceph_pton(name, namelen, addr, delim, ipend); in ceph_parse_server_name() 1305 ret = ceph_dns_resolve_name(name, namelen, addr, delim, ipend); in ceph_parse_server_name() 1316 int max_count, int *count, char delim) in ceph_parse_ips() argument [all …]
|
/linux/tools/usb/usbip/libsrc/ |
H A D | vhci_driver.c | 194 char delim[] = {' ', ' ', '\n'}; in read_record() local 222 end = strchr(start, delim[part]); in read_record()
|
/linux/tools/perf/util/scripting-engines/ |
H A D | trace-event-perl.c | 172 const char *delim) in define_flag_field() argument 182 XPUSHs(sv_2mortal(newSVpv(delim, 0))); in define_flag_field() 214 define_flag_field(ev_name, cur_field_name, args->flags.delim); in define_event_symbols()
|
/linux/drivers/net/ethernet/meta/fbnic/ |
H A D | fbnic_fw.c | 797 const char *delim = ""; in fbnic_get_fw_ver_commit_str() local 800 delim = "_"; in fbnic_get_fw_ver_commit_str() 802 fbnic_mk_full_fw_ver_str(mgmt->version, delim, mgmt->commit, in fbnic_get_fw_ver_commit_str()
|
/linux/drivers/bluetooth/ |
H A D | hci_h5.c | 520 const u8 delim = SLIP_DELIMITER, esc = SLIP_ESC; in h5_unslip_one_byte() local 531 byte = &delim; in h5_unslip_one_byte() 646 const char delim = SLIP_DELIMITER; in h5_slip_delim() local 648 skb_put_data(skb, &delim, 1); in h5_slip_delim()
|
/linux/include/linux/netfilter/ |
H A D | nf_conntrack_sip.h | 186 bool delim);
|
/linux/drivers/net/bonding/ |
H A D | bond_options.c | 1629 char *delim; in bond_option_queue_id_set() local 1634 delim = strchr(newval->string, ':'); in bond_option_queue_id_set() 1635 if (!delim) in bond_option_queue_id_set() 1641 *delim = '\0'; in bond_option_queue_id_set() 1642 if (sscanf(++delim, "%hd\n", &qid) != 1) in bond_option_queue_id_set()
|