arch/alpha/boot/stdio.c
100
*str++ = c;
arch/alpha/boot/stdio.c
102
*str++ = '0';
arch/alpha/boot/stdio.c
104
*str++ = tmp[i];
arch/alpha/boot/stdio.c
106
*str++ = ' ';
arch/alpha/boot/stdio.c
107
return str;
arch/alpha/boot/stdio.c
115
char * str;
arch/alpha/boot/stdio.c
128
for (str = buf ; *fmt ; ++fmt) {
arch/alpha/boot/stdio.c
130
*str++ = *fmt;
arch/alpha/boot/stdio.c
193
*str++ = ' ';
arch/alpha/boot/stdio.c
194
*str++ = (unsigned char) va_arg(args, int);
arch/alpha/boot/stdio.c
196
*str++ = ' ';
arch/alpha/boot/stdio.c
208
*str++ = ' ';
arch/alpha/boot/stdio.c
210
*str++ = *s++;
arch/alpha/boot/stdio.c
212
*str++ = ' ';
arch/alpha/boot/stdio.c
220
str = number(str,
arch/alpha/boot/stdio.c
229
*ip = (str - buf);
arch/alpha/boot/stdio.c
232
*ip = (str - buf);
arch/alpha/boot/stdio.c
235
*ip = (str - buf);
arch/alpha/boot/stdio.c
240
*str++ = '%';
arch/alpha/boot/stdio.c
261
*str++ = '%';
arch/alpha/boot/stdio.c
263
*str++ = *fmt;
arch/alpha/boot/stdio.c
287
str = number(str, num, base, field_width, precision, flags);
arch/alpha/boot/stdio.c
289
*str = '\0';
arch/alpha/boot/stdio.c
290
return str-buf;
arch/alpha/boot/stdio.c
43
static char * number(char * str, unsigned long long num, int base, int size, int precision, int type)
arch/alpha/boot/stdio.c
87
*str++ = ' ';
arch/alpha/boot/stdio.c
89
*str++ = sign;
arch/alpha/boot/stdio.c
92
*str++ = '0';
arch/alpha/boot/stdio.c
94
*str++ = '0';
arch/alpha/boot/stdio.c
95
*str++ = digits[33];
arch/alpha/include/asm/core_titan.h
76
titan_64 str;
arch/alpha/include/asm/core_tsunami.h
69
tsunami_64 str;
arch/alpha/include/asm/uaccess.h
208
extern __must_check long strnlen_user(const char __user *str, long n);
arch/alpha/kernel/core_marvel.c
421
marvel_specify_io7(char *str)
arch/alpha/kernel/core_marvel.c
428
pid = simple_strtoul(str, &pchar, 0);
arch/alpha/kernel/core_marvel.c
429
if (pchar != str) {
arch/alpha/kernel/core_marvel.c
435
if (pchar == str) pchar++;
arch/alpha/kernel/core_marvel.c
436
str = pchar;
arch/alpha/kernel/core_marvel.c
437
} while(*str);
arch/alpha/kernel/core_marvel.c
79
mk_resource_name(int pe, int port, char *str)
arch/alpha/kernel/core_marvel.c
85
sz = scnprintf(tmp, sizeof(tmp), "PCI %s PE %d PORT %d", str, pe, port);
arch/alpha/kernel/core_titan.c
383
printk("%s: CSR_STR 0x%lx\n", __func__, TITAN_dchip->str.csr);
arch/alpha/kernel/core_tsunami.c
407
printk("%s: CSR_STR 0x%lx\n", __func__, TSUNAMI_dchip->str.csr);
arch/alpha/kernel/rtc.c
37
specifiy_epoch(char *str)
arch/alpha/kernel/rtc.c
39
unsigned long epoch = simple_strtoul(str, NULL, 0);
arch/alpha/kernel/smp.c
198
send_secondary_console_msg(char *str, int cpuid)
arch/alpha/kernel/smp.c
214
cp2 = str;
arch/alpha/kernel/traps.c
143
die_if_kernel(char * str, struct pt_regs *regs, long err, unsigned long *r9_15)
arch/alpha/kernel/traps.c
150
printk("%s(%d): %s %ld\n", current->comm, task_pid_nr(current), str, err);
arch/alpha/lib/srm_puts.c
10
srm_puts(const char *str, long len)
arch/alpha/lib/srm_puts.c
19
written = callback_puts(0, str, remaining);
arch/alpha/lib/srm_puts.c
21
str += written;
arch/arc/include/asm/bug.h
18
void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
arch/arc/include/asm/bug.h
20
void die(const char *str, struct pt_regs *regs, unsigned long address);
arch/arc/include/asm/setup.h
20
const char *str;
arch/arc/kernel/perf_event.c
663
static void arc_pmu_add_raw_event_attr(int j, char *str)
arch/arc/kernel/perf_event.c
665
memmove(arc_pmu->raw_entry[j].name, str, ARCPMU_EVENT_NAME_LEN - 1);
arch/arc/kernel/perf_event.c
707
static void arc_pmu_map_hw_event(int j, char *str)
arch/arc/kernel/perf_event.c
713
if (event_in_hw_event_map(i, str)) {
arch/arc/kernel/perf_event.c
715
i, str, j);
arch/arc/kernel/perf_event.c
733
char str[ARCPMU_EVENT_NAME_LEN];
arch/arc/kernel/perf_event.c
770
cc_name.str[ARCPMU_EVENT_NAME_LEN - 1] = 0;
arch/arc/kernel/perf_event.c
780
arc_pmu_map_hw_event(i, cc_name.str);
arch/arc/kernel/perf_event.c
781
arc_pmu_add_raw_event_attr(i, cc_name.str);
arch/arc/kernel/setup.c
176
release = arc_hs_rel[info->arcver - 0x51].str;
arch/arc/kernel/setup.c
185
release = tbl->str;
arch/arc/kernel/setup.c
418
char str[512];
arch/arc/kernel/setup.c
420
pr_info("%s", arc_cpu_mumbojumbo(c, &info, str, sizeof(str)));
arch/arc/kernel/setup.c
572
char *str;
arch/arc/kernel/setup.c
584
str = (char *)__get_free_page(GFP_KERNEL);
arch/arc/kernel/setup.c
585
if (!str)
arch/arc/kernel/setup.c
588
seq_printf(m, arc_cpu_mumbojumbo(cpu_id, &info, str, PAGE_SIZE));
arch/arc/kernel/setup.c
607
free_page((unsigned long)str);
arch/arc/kernel/traps.c
25
void die(const char *str, struct pt_regs *regs, unsigned long address)
arch/arc/kernel/traps.c
27
show_kernel_fault_diag(str, regs, address);
arch/arc/kernel/traps.c
39
unhandled_exception(const char *str, struct pt_regs *regs,
arch/arc/kernel/traps.c
54
die(str, regs, (unsigned long)addr);
arch/arc/kernel/traps.c
60
#define DO_ERROR_INFO(signr, str, name, sicode) \
arch/arc/kernel/traps.c
63
return unhandled_exception(str, regs, signr, sicode, \
arch/arc/kernel/troubleshoot.c
216
void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
arch/arc/kernel/troubleshoot.c
222
pr_info("\n%s\n", str);
arch/arc/mm/init.c
42
static int __init setup_mem_sz(char *str)
arch/arc/mm/init.c
44
low_mem_sz = memparse(str, NULL) & PAGE_MASK;
arch/arc/mm/init.c
47
pr_info("\"mem=%s\": mem sz set to %ldM\n", str, TO_MB(low_mem_sz));
arch/arc/plat-axs10x/axs10x.c
73
static void __init axs10x_print_board_ver(unsigned int creg, const char *str)
arch/arc/plat-axs10x/axs10x.c
87
pr_info("AXS: %s FPGA Date: %u-%u-%u\n", str, board.d, board.m,
arch/arm/include/asm/assembler.h
232
str \tmp, [\ti, #TI_PREEMPT]
arch/arm/include/asm/assembler.h
238
str \tmp, [\ti, #TI_PREEMPT]
arch/arm/include/asm/assembler.h
531
usracc str, \reg, \ptr, \inc, \cond, \rept, \abort
arch/arm/include/asm/assembler.h
574
.pushsection .rodata.str, "aMS", %progbits, 1
arch/arm/include/asm/assembler.h
676
__adldst_l str, \src, \sym, \tmp, \cond
arch/arm/include/asm/assembler.h
717
__ldst_va str, \rn, \tmp, \sym, \cond, 0
arch/arm/include/asm/bug.h
65
void arm_notify_die(const char *str, struct pt_regs *regs,
arch/arm/include/asm/futex.h
117
"2: " TUSERCOND(str, eq) " %3, [%4]\n"
arch/arm/include/asm/futex.h
90
"2: " TUSER(str) " %0, [%3]\n" \
arch/arm/include/asm/setup.h
23
extern __printf(1, 2) void early_print(const char *str, ...);
arch/arm/include/asm/stacktrace.h
56
extern void dump_mem(const char *lvl, const char *str, unsigned long bottom,
arch/arm/include/asm/tls.h
17
str \tmp2, [\base, #TI_TP_VALUE + 4] @ save it
arch/arm/include/asm/tls.h
43
str \tp, [\tmp1, #-15] @ set TLS value at 0xffff0ff0
arch/arm/include/asm/uaccess-asm.h
133
DACR( str \tmp0, [sp, #SVC_DACR])
arch/arm/include/asm/uaccess-asm.h
135
PAN( str \tmp0, [sp, #SVC_TTBCR])
arch/arm/include/asm/uaccess.h
632
extern __must_check long strnlen_user(const char __user *str, long n);
arch/arm/kernel/bios32.c
538
char * __init pcibios_setup(char *str)
arch/arm/kernel/bios32.c
540
if (!strcmp(str, "debug")) {
arch/arm/kernel/bios32.c
544
return str;
arch/arm/kernel/setup.c
358
void __init early_print(const char *str, ...)
arch/arm/kernel/setup.c
364
va_start(ap, str);
arch/arm/kernel/setup.c
365
vsnprintf(buf, sizeof(buf), str, ap);
arch/arm/kernel/traps.c
100
char str[80], *p;
arch/arm/kernel/traps.c
104
for (reg = 10, x = 0, p = str; reg >= 0; reg--) {
arch/arm/kernel/traps.c
109
p = str;
arch/arm/kernel/traps.c
110
printk("%s%s\n", loglvl, str);
arch/arm/kernel/traps.c
114
if (p != str)
arch/arm/kernel/traps.c
115
printk("%s%s\n", loglvl, str);
arch/arm/kernel/traps.c
138
void dump_mem(const char *lvl, const char *str, unsigned long bottom,
arch/arm/kernel/traps.c
144
printk("%s%s(0x%08lx to 0x%08lx)\n", lvl, str, bottom, top);
arch/arm/kernel/traps.c
148
char str[sizeof(" 12345678") * 8 + 1];
arch/arm/kernel/traps.c
150
memset(str, ' ', sizeof(str));
arch/arm/kernel/traps.c
151
str[sizeof(str) - 1] = '\0';
arch/arm/kernel/traps.c
157
sprintf(str + i * 9, " %08lx", val);
arch/arm/kernel/traps.c
159
sprintf(str + i * 9, " ????????");
arch/arm/kernel/traps.c
162
printk("%s%04lx:%s\n", lvl, first & 0xffff, str);
arch/arm/kernel/traps.c
171
char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str;
arch/arm/kernel/traps.c
208
printk("%sCode: %s\n", lvl, str);
arch/arm/kernel/traps.c
272
static int __die(const char *str, int err, struct pt_regs *regs)
arch/arm/kernel/traps.c
279
str, err, ++die_counter);
arch/arm/kernel/traps.c
282
ret = notify_die(DIE_OOPS, str, regs, err, tsk->thread.trap_no, SIGSEGV);
arch/arm/kernel/traps.c
356
void die(const char *str, struct pt_regs *regs, int err)
arch/arm/kernel/traps.c
365
str = "Oops - BUG";
arch/arm/kernel/traps.c
367
if (__die(str, err, regs))
arch/arm/kernel/traps.c
373
void arm_notify_die(const char *str, struct pt_regs *regs,
arch/arm/kernel/traps.c
383
die(str, regs, err);
arch/arm/kernel/traps.c
58
static int __init user_debug_setup(char *str)
arch/arm/kernel/traps.c
60
get_option(&str, &user_debug);
arch/arm/lib/bitops.h
81
str r2, [r1, r0, lsl #2]
arch/arm/mach-at91/pm.c
1703
static int __init at91_pm_modes_select(char *str)
arch/arm/mach-at91/pm.c
1709
if (!str)
arch/arm/mach-at91/pm.c
1712
s = strsep(&str, ",");
arch/arm/mach-at91/pm.c
1717
suspend = match_token(str, pm_modes, args);
arch/arm/mach-omap1/i2c.c
89
static int __init omap_i2c_bus_setup(char *str)
arch/arm/mach-omap1/i2c.c
93
get_options(str, 3, ints);
arch/arm/mach-omap1/omap-dma.c
860
static int __init omap_dma_cmdline_reserve_ch(char *str)
arch/arm/mach-omap1/omap-dma.c
862
if (get_option(&str, &omap_dma_reserve_channels) != 1)
arch/arm/mach-rpc/ecard.c
770
char *str = buf;
arch/arm/mach-rpc/ecard.c
774
str += sprintf(str, "%08x %08x %08lx\n",
arch/arm/mach-rpc/ecard.c
779
return str - buf;
arch/arm/vfp/vfpdouble.c
48
static void vfp_double_dump(const char *str, struct vfp_double *d)
arch/arm/vfp/vfpdouble.c
51
str, d->sign != 0, d->exponent, d->significand);
arch/arm/vfp/vfpsingle.c
48
static void vfp_single_dump(const char *str, struct vfp_single *s)
arch/arm/vfp/vfpsingle.c
51
str, s->sign != 0, s->exponent, s->significand);
arch/arm64/include/asm/asm-bug.h
13
.pushsection .rodata.str,"aMS",@progbits,1; \
arch/arm64/include/asm/assembler.h
205
str \src, [\tmp, :lo12:\sym]
arch/arm64/include/asm/fpsimdmacros.h
29
str w\tmpnr, [\state, #16 * 2]
arch/arm64/include/asm/fpsimdmacros.h
31
str w\tmpnr, [\state, #16 * 2 + 4]
arch/arm64/include/asm/fpsimdmacros.h
318
str w\nxtmp, [\xpfpsr]
arch/arm64/include/asm/fpsimdmacros.h
320
str w\nxtmp, [\xpfpsr, #4]
arch/arm64/include/asm/kvm_asm.h
325
str \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
arch/arm64/include/asm/kvm_asm.h
353
str x18, [\ctxt, #CPU_XREG_OFFSET(18)]
arch/arm64/include/asm/kvm_asm.h
375
str \tmp, [\ctxt, #CPU_SP_EL0_OFFSET]
arch/arm64/include/asm/kvm_host.h
660
const char *str;
arch/arm64/include/asm/kvm_mte.h
22
str \reg1, [\h_ctxt, #CPU_RGSR_EL1]
arch/arm64/include/asm/kvm_mte.h
24
str \reg1, [\h_ctxt, #CPU_GCR_EL1]
arch/arm64/include/asm/kvm_mte.h
42
str \reg1, [\g_ctxt, #CPU_RGSR_EL1]
arch/arm64/include/asm/kvm_mte.h
44
str \reg1, [\g_ctxt, #CPU_GCR_EL1]
arch/arm64/include/asm/scs.h
19
str scs_sp, [\tsk, #TSK_TI_SCS_SP]
arch/arm64/include/asm/system_misc.h
24
void arm64_notify_die(const char *str, struct pt_regs *regs,
arch/arm64/include/asm/traps.h
27
void arm64_force_sig_fault(int signo, int code, unsigned long far, const char *str);
arch/arm64/include/asm/traps.h
28
void arm64_force_sig_fault_pkey(unsigned long far, const char *str, int pkey);
arch/arm64/include/asm/traps.h
29
void arm64_force_sig_mceerr(int code, unsigned long far, short lsb, const char *str);
arch/arm64/include/asm/traps.h
30
void arm64_force_sig_ptrace_errno_trap(int errno, unsigned long far, const char *str);
arch/arm64/include/asm/uaccess.h
302
#define __raw_put_mem(str, x, ptr, label, type) \
arch/arm64/include/asm/uaccess.h
307
__put_mem_asm(str "b", "%w", __pu_val, (ptr), label, type); \
arch/arm64/include/asm/uaccess.h
310
__put_mem_asm(str "h", "%w", __pu_val, (ptr), label, type); \
arch/arm64/include/asm/uaccess.h
313
__put_mem_asm(str, "%w", __pu_val, (ptr), label, type); \
arch/arm64/include/asm/uaccess.h
316
__put_mem_asm(str, "%x", __pu_val, (ptr), label, type); \
arch/arm64/include/asm/uaccess.h
476
extern __must_check long strnlen_user(const char __user *str, long n);
arch/arm64/kernel/cpufeature.c
1031
char *str = NULL;
arch/arm64/kernel/cpufeature.c
1038
str = "ignoring override";
arch/arm64/kernel/cpufeature.c
1042
str = "forced";
arch/arm64/kernel/cpufeature.c
1045
str = "already set";
arch/arm64/kernel/cpufeature.c
1051
ftrp->shift, str,
arch/arm64/kernel/cpufeature.c
1676
static int __init parse_32bit_el0_param(char *str)
arch/arm64/kernel/cpufeature.c
1815
char const *str = "kpti command line option";
arch/arm64/kernel/cpufeature.c
1837
str = "ARM64_WORKAROUND_CAVIUM_27456";
arch/arm64/kernel/cpufeature.c
1844
str = "KASLR";
arch/arm64/kernel/cpufeature.c
1850
str = "mitigations=off";
arch/arm64/kernel/cpufeature.c
1862
__kpti_forced > 0 ? "ON" : "OFF", str);
arch/arm64/kernel/cpufeature.c
1956
static int __init parse_kpti(char *str)
arch/arm64/kernel/cpufeature.c
1959
int ret = kstrtobool(str, &enabled);
arch/arm64/kernel/pi/idreg-override.c
422
char * __init skip_spaces(const char *str)
arch/arm64/kernel/pi/idreg-override.c
424
while (isspace(*str))
arch/arm64/kernel/pi/idreg-override.c
425
++str;
arch/arm64/kernel/pi/idreg-override.c
426
return (char *)str;
arch/arm64/kernel/process.c
151
#define bstr(suffix, str) [PSR_BTYPE_ ## suffix >> PSR_BTYPE_SHIFT] = str
arch/arm64/kernel/proton-pack.c
1018
static int __init parse_spectre_bhb_param(char *str)
arch/arm64/kernel/proton-pack.c
382
const char *str;
arch/arm64/kernel/proton-pack.c
389
static int __init parse_spectre_v4_param(char *str)
arch/arm64/kernel/proton-pack.c
393
if (!str || !str[0])
arch/arm64/kernel/proton-pack.c
399
if (strncmp(str, param->str, strlen(param->str)))
arch/arm64/kernel/proton-pack.c
85
static int __init parse_spectre_v2_param(char *str)
arch/arm64/kernel/traps.c
154
char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str;
arch/arm64/kernel/traps.c
171
printk(KERN_EMERG "Code: %s\n", str);
arch/arm64/kernel/traps.c
176
static int __die(const char *str, long err, struct pt_regs *regs)
arch/arm64/kernel/traps.c
183
str, err, ++die_counter);
arch/arm64/kernel/traps.c
186
ret = notify_die(DIE_OOPS, str, regs, err, 0, SIGSEGV);
arch/arm64/kernel/traps.c
206
void die(const char *str, struct pt_regs *regs, long err)
arch/arm64/kernel/traps.c
217
ret = __die(str, err, regs);
arch/arm64/kernel/traps.c
227
panic("%s: Fatal exception in interrupt", str);
arch/arm64/kernel/traps.c
229
panic("%s: Fatal exception", str);
arch/arm64/kernel/traps.c
237
static void arm64_show_signal(int signo, const char *str)
arch/arm64/kernel/traps.c
255
pr_cont("%s", str);
arch/arm64/kernel/traps.c
262
const char *str)
arch/arm64/kernel/traps.c
264
arm64_show_signal(signo, str);
arch/arm64/kernel/traps.c
271
void arm64_force_sig_fault_pkey(unsigned long far, const char *str, int pkey)
arch/arm64/kernel/traps.c
273
arm64_show_signal(SIGSEGV, str);
arch/arm64/kernel/traps.c
278
const char *str)
arch/arm64/kernel/traps.c
280
arm64_show_signal(SIGBUS, str);
arch/arm64/kernel/traps.c
285
const char *str)
arch/arm64/kernel/traps.c
287
arm64_show_signal(SIGTRAP, str);
arch/arm64/kernel/traps.c
291
void arm64_notify_die(const char *str, struct pt_regs *regs,
arch/arm64/kernel/traps.c
300
arm64_force_sig_fault(signo, sicode, far, str);
arch/arm64/kernel/traps.c
302
die(str, regs, err);
arch/arm64/kvm/config.c
1281
int map_size, u64 resx, const char *str)
arch/arm64/kvm/config.c
1296
str, mask ^ ~resx);
arch/arm64/kvm/emulate-nested.c
2117
struct fgt_masks __n = { .str = #__m, .res0 = __m ## _RES0, .res1 = __m ## _RES1 }
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c
213
static inline bool starts_with(const char *str, const char *prefix)
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c
215
return memcmp(str, prefix, strlen(prefix)) == 0;
arch/csky/include/asm/bug.h
22
void die(struct pt_regs *regs, const char *str);
arch/csky/kernel/traps.c
101
ret = notify_die(DIE_OOPS, str, regs, 0, trap_no(regs), SIGSEGV);
arch/csky/kernel/traps.c
133
unsigned long addr, const char *str)
arch/csky/kernel/traps.c
141
die(regs, str);
arch/csky/kernel/traps.c
145
#define DO_ERROR_INFO(name, signo, code, str) \
arch/csky/kernel/traps.c
148
do_trap_error(regs, signo, code, regs->pc, "Oops - " str); \
arch/csky/kernel/traps.c
85
void die(struct pt_regs *regs, const char *str)
arch/csky/kernel/traps.c
96
pr_emerg("%s [#%d]\n", str, ++die_counter);
arch/hexagon/include/asm/traps.h
13
extern int die(const char *str, struct pt_regs *regs, long err);
arch/hexagon/include/asm/traps.h
14
extern int die_if_kernel(char *str, struct pt_regs *regs, long err);
arch/hexagon/kernel/traps.c
180
int die(const char *str, struct pt_regs *regs, long err)
arch/hexagon/kernel/traps.c
195
printk(KERN_EMERG "Oops: %s[#%d]:\n", str, ++die.counter);
arch/hexagon/kernel/traps.c
197
if (notify_die(DIE_OOPS, str, regs, err, pt_cause(regs), SIGSEGV) ==
arch/hexagon/kernel/traps.c
223
int die_if_kernel(char *str, struct pt_regs *regs, long err)
arch/hexagon/kernel/traps.c
226
return die(str, regs, err);
arch/loongarch/include/asm/bug.h
13
.pushsection .rodata.str, "aMS", @progbits, 1; \
arch/loongarch/include/asm/ptrace.h
165
extern void die(const char *str, struct pt_regs *regs);
arch/loongarch/include/asm/ptrace.h
167
static inline void die_if_kernel(const char *str, struct pt_regs *regs)
arch/loongarch/include/asm/ptrace.h
170
die(str, regs);
arch/loongarch/include/asm/uaccess.h
321
extern long strnlen_user(const char __user *str, long n);
arch/loongarch/kernel/alternative.c
18
static int __init debug_alt(char *str)
arch/loongarch/kernel/cpu-probe.c
58
static int __init cpu_setup_simd(char *str)
arch/loongarch/kernel/cpu-probe.c
60
get_option(&str, &simd);
arch/loongarch/kernel/kdebugfs.c
100
s = snprintf(str, sizeof(str), "Boot State: %d (%s)\n"
arch/loongarch/kernel/kdebugfs.c
114
if (copy_to_user(buf, &str[*ppos], s))
arch/loongarch/kernel/kdebugfs.c
23
char str[32];
arch/loongarch/kernel/kdebugfs.c
27
s = snprintf(str, sizeof(str), "Boot State: %x\nCurrent State: %x\n", sfb_state, state);
arch/loongarch/kernel/kdebugfs.c
35
if (copy_to_user(buf, &str[*ppos], s))
arch/loongarch/kernel/kdebugfs.c
96
char str[240];
arch/loongarch/kernel/kgdb.c
269
.str = "Break",
arch/loongarch/kernel/relocate.c
139
char *str;
arch/loongarch/kernel/relocate.c
142
str = strstr(builtin_cmdline, "nokaslr");
arch/loongarch/kernel/relocate.c
143
if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
146
str = strstr(boot_command_line, "nokaslr");
arch/loongarch/kernel/relocate.c
147
if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
151
str = strstr(builtin_cmdline, "nohibernate");
arch/loongarch/kernel/relocate.c
152
if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
155
str = strstr(boot_command_line, "nohibernate");
arch/loongarch/kernel/relocate.c
156
if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
159
str = strstr(builtin_cmdline, "noresume");
arch/loongarch/kernel/relocate.c
160
if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
163
str = strstr(boot_command_line, "noresume");
arch/loongarch/kernel/relocate.c
164
if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
167
str = strstr(builtin_cmdline, "resume=");
arch/loongarch/kernel/relocate.c
168
if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
171
str = strstr(boot_command_line, "resume=");
arch/loongarch/kernel/relocate.c
172
if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' '))
arch/loongarch/kernel/relocate.c
176
str = strstr(boot_command_line, "kexec_file");
arch/loongarch/kernel/relocate.c
177
if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' '))
arch/loongarch/kernel/traps.c
400
void die(const char *str, struct pt_regs *regs)
arch/loongarch/kernel/traps.c
407
ret = notify_die(DIE_OOPS, str, regs, 0,
arch/loongarch/kernel/traps.c
414
printk("%s[#%d]:\n", str, ++die_counter);
arch/m68k/amiga/config.c
327
#define AMIGAHW_ANNOUNCE(name, str) \
arch/m68k/amiga/config.c
329
pr_cont(str)
arch/m68k/amiga/config.c
807
#define AMIGAHW_ANNOUNCE(name, str) \
arch/m68k/amiga/config.c
809
seq_printf (m, "\t%s\n", str)
arch/m68k/apollo/config.c
109
static void dn_serial_print(const char *str)
arch/m68k/apollo/config.c
111
while (*str) {
arch/m68k/apollo/config.c
112
if (*str == '\n') {
arch/m68k/apollo/config.c
117
sio01.rhrb_thrb = (unsigned char)*str++;
arch/m68k/atari/atakeyb.c
319
void ikbd_write(const char *str, int len)
arch/m68k/atari/atakeyb.c
328
acia.key_data = *str++;
arch/m68k/atari/config.c
141
static int __init atari_switches_setup(char *str)
arch/m68k/atari/config.c
152
strcpy(switches, str);
arch/m68k/atari/config.c
613
#define ATARIHW_ANNOUNCE(name, str) \
arch/m68k/atari/config.c
615
seq_printf(m, "\t%s\n", str)
arch/m68k/atari/debug.c
109
static void atari_par_console_write(struct console *co, const char *str,
arch/m68k/atari/debug.c
118
if (*str == '\n') {
arch/m68k/atari/debug.c
124
if (!ata_par_out(*str++)) {
arch/m68k/atari/debug.c
42
static void atari_mfp_console_write(struct console *co, const char *str,
arch/m68k/atari/debug.c
46
if (*str == '\n')
arch/m68k/atari/debug.c
48
ata_mfp_out(*str++);
arch/m68k/atari/debug.c
61
static void atari_scc_console_write(struct console *co, const char *str,
arch/m68k/atari/debug.c
65
if (*str == '\n')
arch/m68k/atari/debug.c
67
ata_scc_out(*str++);
arch/m68k/atari/debug.c
78
static void atari_midi_console_write(struct console *co, const char *str,
arch/m68k/atari/debug.c
82
if (*str == '\n')
arch/m68k/atari/debug.c
84
ata_midi_out(*str++);
arch/m68k/emu/nfcon.c
26
static void nfputs(const u8 *str, size_t count)
arch/m68k/emu/nfcon.c
33
memcpy(buf, str, 64);
arch/m68k/emu/nfcon.c
35
str += 64;
arch/m68k/emu/nfcon.c
38
memcpy(buf, str, count);
arch/m68k/emu/nfcon.c
43
static void nfcon_write(struct console *con, const char *str,
arch/m68k/emu/nfcon.c
46
nfputs(str, count);
arch/m68k/include/asm/math-emu.h
117
#define uprint(str) ({ \
arch/m68k/include/asm/math-emu.h
122
"fpu instruction (%s)\n", str); \
arch/m68k/include/asm/openprom.h
218
void (*pv_putstr)(char *str, int len);
arch/m68k/include/asm/openprom.h
230
void (*v0_eval)(int len, char *str);
arch/m68k/include/asm/openprom.h
231
void (*v2_eval)(char *str);
arch/m68k/include/asm/uaccess.h
442
extern __must_check long strnlen_user(const char __user *str, long n);
arch/m68k/kernel/setup_mm.c
522
static int __init adb_probe_sync_enable (char *str) {
arch/m68k/kernel/traps.c
1127
void die_if_kernel (char *str, struct pt_regs *fp, int nr)
arch/m68k/kernel/traps.c
1133
pr_crit("%s: %08x\n", str, nr);
arch/m68k/mac/config.c
59
static void mac_get_model(char *str);
arch/m68k/mac/config.c
867
static void mac_get_model(char *str)
arch/m68k/mac/config.c
869
strcpy(str, "Macintosh ");
arch/m68k/mac/config.c
870
strcat(str, macintosh_config->name);
arch/m68k/mvme147/config.c
199
void mvme147_scc_write(struct console *co, const char *str, unsigned int count)
arch/m68k/mvme147/config.c
205
if (*str == '\n')
arch/m68k/mvme147/config.c
207
scc_write(*str++);
arch/m68k/mvme147/mvme147.h
6
void mvme147_scc_write(struct console *co, const char *str, unsigned int count);
arch/m68k/mvme16x/config.c
202
void mvme16x_cons_write(struct console *co, const char *str, unsigned count)
arch/m68k/mvme16x/config.c
234
str++;
arch/m68k/mvme16x/config.c
238
else if (*str == '\n') {
arch/m68k/mvme16x/config.c
243
base_addr[CyTDR] = *str++;
arch/m68k/mvme16x/mvme16x.h
6
void mvme16x_cons_write(struct console *co, const char *str, unsigned count);
arch/m68k/q40/config.c
87
void printq40(char *str)
arch/m68k/q40/config.c
89
int l = strlen(str);
arch/m68k/q40/config.c
93
*p = *str++;
arch/m68k/virt/config.c
28
static void virt_get_model(char *str)
arch/m68k/virt/config.c
31
sprintf(str, "QEMU Virtual M68K Machine (%u.%u.%u)",
arch/microblaze/include/asm/exceptions.h
64
void die(const char *str, struct pt_regs *fp, long err);
arch/microblaze/kernel/exceptions.c
40
void die(const char *str, struct pt_regs *fp, long err)
arch/microblaze/kernel/exceptions.c
44
pr_warn("Oops: %s, sig: %ld\n", str, err);
arch/mips/alchemy/common/prom.c
113
static inline void str2eaddr(unsigned char *ea, unsigned char *str)
arch/mips/alchemy/common/prom.c
120
if ((*str == '.') || (*str == ':'))
arch/mips/alchemy/common/prom.c
121
str++;
arch/mips/alchemy/common/prom.c
122
num = str2hexnum(*str++) << 4;
arch/mips/alchemy/common/prom.c
123
num |= str2hexnum(*str++);
arch/mips/cavium-octeon/setup.c
1187
static int __init disable_octeon_edac(char *str)
arch/mips/cavium-octeon/setup.c
170
char *str = (char *)image->segment[i].buf;
arch/mips/cavium-octeon/setup.c
171
char *ptr = strchr(str, ' ');
arch/mips/cavium-octeon/setup.c
175
offt = (int)(ptr - str + 1);
arch/mips/fw/lib/cmdline.c
92
char *str;
arch/mips/fw/lib/cmdline.c
95
str = fw_getenv(envname);
arch/mips/fw/lib/cmdline.c
96
if (str) {
arch/mips/fw/lib/cmdline.c
97
tmp = kstrtoul(str, 0, &envl);
arch/mips/generic/proc.c
15
const char *str;
arch/mips/generic/proc.c
21
err = of_property_read_string(of_root, "model", &str);
arch/mips/generic/proc.c
23
return str;
arch/mips/generic/proc.c
25
err = of_property_read_string_index(of_root, "compatible", 0, &str);
arch/mips/generic/proc.c
27
return str;
arch/mips/include/asm/kgdb.h
40
extern int kgdb_ll_trap(int cmd, const char *str,
arch/mips/include/asm/mips-r2-to-r6-emul.h
83
const char *str);
arch/mips/include/asm/octeon/cvmx-rst-defs.h
222
uint64_t str:3;
arch/mips/include/asm/octeon/cvmx-rst-defs.h
224
uint64_t str:3;
arch/mips/include/asm/pci.h
68
extern char * (*pcibios_plat_setup)(char *str);
arch/mips/include/asm/ptrace.h
168
static inline void die_if_kernel(const char *str, struct pt_regs *regs)
arch/mips/include/asm/ptrace.h
171
die(str, regs);
arch/mips/include/asm/sibyte/board.h
44
extern void setleds(char *str);
arch/mips/include/asm/txx9/pci.h
36
extern char * (*txx9_board_pcibios_setup)(char *str);
arch/mips/include/asm/txx9/pci.h
37
char *txx9_pcibios_setup(char *str);
arch/mips/include/asm/txx9/tx4927pcic.h
199
char *tx4927_pcibios_setup(char *str);
arch/mips/kernel/kgdb.c
324
int kgdb_ll_trap(int cmd, const char *str,
arch/mips/kernel/kgdb.c
329
.str = str,
arch/mips/kernel/mips-mt-fpaff.c
195
static int __init fpaff_thresh(char *str)
arch/mips/kernel/mips-mt-fpaff.c
197
get_option(&str, &fpaff_threshold);
arch/mips/kernel/mips-mt.c
26
static int __init maxvpes(char *str)
arch/mips/kernel/mips-mt.c
28
get_option(&str, &vpelimit);
arch/mips/kernel/mips-mt.c
37
static int __init maxtcs(char *str)
arch/mips/kernel/mips-mt.c
39
get_option(&str, &tclimit);
arch/mips/kernel/mips-mt.c
51
static int __init rpsctl_set(char *str)
arch/mips/kernel/mips-mt.c
53
get_option(&str, &mt_opt_rpsctl);
arch/mips/kernel/mips-mt.c
58
static int __init nblsu_set(char *str)
arch/mips/kernel/mips-mt.c
60
get_option(&str, &mt_opt_nblsu);
arch/mips/kernel/mips-mt.c
65
static int __init config7_set(char *str)
arch/mips/kernel/mips-mt.c
67
get_option(&str, &mt_opt_config7);
arch/mips/kernel/mips-mt.c
75
static int __init set_itc_base(char *str)
arch/mips/kernel/mips-mt.c
77
get_option(&str, &itc_base);
arch/mips/kernel/relocate.c
247
char *str;
arch/mips/kernel/relocate.c
252
str = strstr(builtin_cmdline, "nokaslr");
arch/mips/kernel/relocate.c
253
if (str == builtin_cmdline ||
arch/mips/kernel/relocate.c
254
(str > builtin_cmdline && *(str - 1) == ' '))
arch/mips/kernel/relocate.c
257
str = strstr(arcs_cmdline, "nokaslr");
arch/mips/kernel/relocate.c
258
if (str == arcs_cmdline || (str > arcs_cmdline && *(str - 1) == ' '))
arch/mips/kernel/segment.c
16
static void build_segment_config(char *str, unsigned int cfg)
arch/mips/kernel/segment.c
25
str += sprintf(str, "%-5s", am_str[am]);
arch/mips/kernel/segment.c
33
str += sprintf(str, " %03lx",
arch/mips/kernel/segment.c
36
str += sprintf(str, " UND");
arch/mips/kernel/segment.c
39
str += sprintf(str, " %01ld",
arch/mips/kernel/segment.c
42
str += sprintf(str, " U");
arch/mips/kernel/segment.c
45
str += sprintf(str, " %01ld\n",
arch/mips/kernel/segment.c
52
char str[42];
arch/mips/kernel/segment.c
58
build_segment_config(str, segcfg);
arch/mips/kernel/segment.c
59
seq_printf(m, " 0 e0000000 512M %s", str);
arch/mips/kernel/segment.c
62
build_segment_config(str, segcfg);
arch/mips/kernel/segment.c
63
seq_printf(m, " 1 c0000000 512M %s", str);
arch/mips/kernel/segment.c
66
build_segment_config(str, segcfg);
arch/mips/kernel/segment.c
67
seq_printf(m, " 2 a0000000 512M %s", str);
arch/mips/kernel/segment.c
70
build_segment_config(str, segcfg);
arch/mips/kernel/segment.c
71
seq_printf(m, " 3 80000000 512M %s", str);
arch/mips/kernel/segment.c
74
build_segment_config(str, segcfg);
arch/mips/kernel/segment.c
75
seq_printf(m, " 4 40000000 1G %s", str);
arch/mips/kernel/segment.c
78
build_segment_config(str, segcfg);
arch/mips/kernel/segment.c
79
seq_printf(m, " 5 00000000 1G %s\n", str);
arch/mips/kernel/setup.c
803
static int __init setcoherentio(char *str)
arch/mips/kernel/setup.c
811
static int __init setnocoherentio(char *str)
arch/mips/kernel/traps.c
1019
scnprintf(b, sizeof(b), "%s instruction in kernel code", str);
arch/mips/kernel/traps.c
144
static int __init set_raw_show_trace(char *str)
arch/mips/kernel/traps.c
1993
char str[100];
arch/mips/kernel/traps.c
1998
snprintf(str, 100, "CPU%d NMI taken, CP0_EPC=%lx\n",
arch/mips/kernel/traps.c
2001
die(str, regs);
arch/mips/kernel/traps.c
2312
static int __init set_rdhwr_noopt(char *str)
arch/mips/kernel/traps.c
396
void __noreturn die(const char *str, struct pt_regs *regs)
arch/mips/kernel/traps.c
403
if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_nr,
arch/mips/kernel/traps.c
411
printk("%s[#%d]:\n", str, ++die_counter);
arch/mips/kernel/traps.c
970
const char *str)
arch/mips/kernel/traps.c
975
if (kgdb_ll_trap(DIE_TRAP, str, regs, code, current->thread.trap_nr,
arch/mips/kernel/traps.c
980
if (notify_die(DIE_TRAP, str, regs, code, current->thread.trap_nr,
arch/mips/kernel/traps.c
993
scnprintf(b, sizeof(b), "%s instruction in kernel code", str);
arch/mips/loongson2ef/common/machtype.c
40
char *p, str[MACHTYPE_LEN + 1];
arch/mips/loongson2ef/common/machtype.c
51
strscpy(str, p);
arch/mips/loongson2ef/common/machtype.c
52
p = strstr(str, " ");
arch/mips/loongson2ef/common/machtype.c
57
if (strstr(system_types[machtype], str)) {
arch/mips/loongson64/reset.c
61
char *str, *ptr, *bootloader = "kexec";
arch/mips/loongson64/reset.c
79
str = (char *)argv + KEXEC_ARGV_SIZE/2;
arch/mips/loongson64/reset.c
80
memcpy(str, image->segment[i].buf, KEXEC_ARGV_SIZE/2);
arch/mips/loongson64/reset.c
81
ptr = strchr(str, ' ');
arch/mips/loongson64/reset.c
86
offt = (int)(ptr - str + 1);
arch/mips/mm/c-r4k.c
1633
static int __init cca_setup(char *str)
arch/mips/mm/c-r4k.c
1635
get_option(&str, &cca);
arch/mips/mm/tlb-r4k.c
507
static int __init set_ntlb(char *str)
arch/mips/mm/tlb-r4k.c
509
get_option(&str, &ntlb);
arch/mips/pci/ops-tx4927.c
200
char *tx4927_pcibios_setup(char *str)
arch/mips/pci/ops-tx4927.c
202
if (!strncmp(str, "trdyto=", 7)) {
arch/mips/pci/ops-tx4927.c
204
if (kstrtou8(str + 7, 0, &val) == 0)
arch/mips/pci/ops-tx4927.c
208
if (!strncmp(str, "retryto=", 8)) {
arch/mips/pci/ops-tx4927.c
210
if (kstrtou8(str + 8, 0, &val) == 0)
arch/mips/pci/ops-tx4927.c
214
if (!strncmp(str, "gbwc=", 5)) {
arch/mips/pci/ops-tx4927.c
216
if (kstrtou16(str + 5, 0, &val) == 0)
arch/mips/pci/ops-tx4927.c
220
return str;
arch/mips/pci/ops-tx4927.c
377
const char *str;
arch/mips/pci/ops-tx4927.c
406
cont++ ? " " : "", pcistat_tbl[i].str);
arch/mips/pci/ops-tx4927.c
414
cont++ ? " " : "", g2pstat_tbl[i].str);
arch/mips/pci/ops-tx4927.c
422
cont++ ? " " : "", pcicstat_tbl[i].str);
arch/mips/pci/pci-legacy.c
273
char * (*pcibios_plat_setup)(char *str) __initdata;
arch/mips/pci/pci-legacy.c
275
char *__init pcibios_setup(char *str)
arch/mips/pci/pci-legacy.c
278
return pcibios_plat_setup(str);
arch/mips/pci/pci-legacy.c
279
return str;
arch/mips/sgi-ip22/ip22-eisa.c
107
if ((str = decode_eisa_sig(0x1000 * i + EISA_VENDOR_ID_OFFSET))) {
arch/mips/sgi-ip22/ip22-eisa.c
109
i, str);
arch/mips/sgi-ip22/ip22-eisa.c
98
char *str;
arch/mips/sgi-ip22/ip28-berr.c
483
static int __init debug_be_setup(char *str)
arch/mips/sgi-ip32/ip32-setup.c
47
static inline void str2eaddr(unsigned char *ea, unsigned char *str)
arch/mips/sgi-ip32/ip32-setup.c
54
if(*str == ':')
arch/mips/sgi-ip32/ip32-setup.c
55
str++;
arch/mips/sgi-ip32/ip32-setup.c
56
num = str2hexnum(*str++) << 4;
arch/mips/sgi-ip32/ip32-setup.c
57
num |= (str2hexnum(*str++));
arch/mips/sibyte/common/cfe.c
150
static int __init initrd_setup(char *str)
arch/mips/sibyte/common/cfe.c
159
if (!str[idx] || (str[idx] == ' ')) break;
arch/mips/sibyte/common/cfe.c
160
rdarg[idx] = str[idx];
arch/mips/sibyte/common/cfe.c
164
str = rdarg;
arch/mips/sibyte/common/cfe.c
170
for (tmp = str; *tmp != '@'; tmp++) {
arch/mips/sibyte/common/cfe.c
180
initrd_size = simple_strtoul(str, &endptr, 16);
arch/mips/sibyte/common/cfe_console.c
13
static void cfe_console_write(struct console *cons, const char *str,
arch/mips/sibyte/common/cfe_console.c
19
if (!str[i])
arch/mips/sibyte/common/cfe_console.c
22
if (str[i] == '\n') {
arch/mips/sibyte/common/cfe_console.c
24
written = cfe_write(cfe_cons_handle, &str[last], i-last);
arch/mips/sibyte/common/cfe_console.c
35
written = cfe_write(cfe_cons_handle, &str[last], count-last);
arch/mips/sibyte/common/cfe_console.c
44
static int cfe_console_setup(struct console *cons, char *str)
arch/mips/sibyte/swarm/setup.c
154
void setleds(char *str)
arch/mips/sibyte/swarm/setup.c
162
if (!str[i])
arch/mips/sibyte/swarm/setup.c
165
writeb(str[i], reg);
arch/mips/txx9/generic/pci.c
398
char * (*txx9_board_pcibios_setup)(char *str) __initdata;
arch/mips/txx9/generic/pci.c
400
char *__init txx9_pcibios_setup(char *str)
arch/mips/txx9/generic/pci.c
402
if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str))
arch/mips/txx9/generic/pci.c
404
if (!strcmp(str, "picmg")) {
arch/mips/txx9/generic/pci.c
409
} else if (!strcmp(str, "nopicmg")) {
arch/mips/txx9/generic/pci.c
414
} else if (!strncmp(str, "clk=", 4)) {
arch/mips/txx9/generic/pci.c
415
char *val = str + 4;
arch/mips/txx9/generic/pci.c
424
} else if (!strncmp(str, "err=", 4)) {
arch/mips/txx9/generic/pci.c
425
if (!strcmp(str + 4, "panic"))
arch/mips/txx9/generic/pci.c
427
else if (!strcmp(str + 4, "ignore"))
arch/mips/txx9/generic/pci.c
434
return str;
arch/mips/txx9/generic/setup.c
129
char *str = (char *)(long)argv32[i];
arch/mips/txx9/generic/setup.c
132
if (strchr(str, ' ')) {
arch/mips/txx9/generic/setup.c
134
strcat(arcs_cmdline, str);
arch/mips/txx9/generic/setup.c
137
strcat(arcs_cmdline, str);
arch/mips/txx9/generic/setup.c
207
char *str = strsep(&s, " ");
arch/mips/txx9/generic/setup.c
208
if (strncmp(str, "board=", 6) == 0) {
arch/mips/txx9/generic/setup.c
209
txx9_board_vec = find_board_byname(str + 6);
arch/mips/txx9/generic/setup.c
211
} else if (strncmp(str, "masterclk=", 10) == 0) {
arch/mips/txx9/generic/setup.c
213
if (kstrtouint(str + 10, 10, &val) == 0)
arch/mips/txx9/generic/setup.c
216
} else if (strcmp(str, "icdisable") == 0) {
arch/mips/txx9/generic/setup.c
219
} else if (strcmp(str, "dcdisable") == 0) {
arch/mips/txx9/generic/setup.c
222
} else if (strcmp(str, "toeoff") == 0) {
arch/mips/txx9/generic/setup.c
225
} else if (strcmp(str, "toeon") == 0) {
arch/mips/txx9/generic/setup.c
231
strcat(arcs_cmdline, str);
arch/mips/txx9/generic/setup.c
285
const s32 *str;
arch/mips/txx9/generic/setup.c
290
str = (const s32 *)fw_arg2;
arch/mips/txx9/generic/setup.c
292
while (str[0] && str[1]) {
arch/mips/txx9/generic/setup.c
293
if (!strcmp((const char *)(unsigned long)str[0], name))
arch/mips/txx9/generic/setup.c
294
return (const char *)(unsigned long)str[1];
arch/mips/txx9/generic/setup.c
295
str += 2;
arch/nios2/kernel/cpuinfo.c
34
const char *str;
arch/nios2/kernel/cpuinfo.c
48
str = of_get_property(cpu, "altr,implementation", &len);
arch/nios2/kernel/cpuinfo.c
49
strscpy(cpuinfo.cpu_impl, str ?: "<unknown>");
arch/nios2/kernel/traps.c
32
void die(const char *str, struct pt_regs *regs, long err)
arch/nios2/kernel/traps.c
36
pr_warn("Oops: %s, sig: %ld\n", str, err);
arch/openrisc/include/asm/bug.h
9
void __noreturn die(const char *str, struct pt_regs *regs, long err);
arch/openrisc/include/asm/uaccess.h
236
extern __must_check long strnlen_user(const char __user *str, long n);
arch/openrisc/kernel/traps.c
156
void __noreturn die(const char *str, struct pt_regs *regs, long err)
arch/openrisc/kernel/traps.c
160
pr_emerg("\n%s#: %04lx\n", str, err & 0xffff);
arch/parisc/boot/compressed/misc.c
157
char str[40];
arch/parisc/boot/compressed/misc.c
158
int i = sizeof(str)-1;
arch/parisc/boot/compressed/misc.c
160
str[i--] = '\0';
arch/parisc/boot/compressed/misc.c
162
str[i--] = hex[num % base];
arch/parisc/boot/compressed/misc.c
167
str[i--] = 'x';
arch/parisc/boot/compressed/misc.c
168
str[i] = '0';
arch/parisc/boot/compressed/misc.c
170
puts(&str[i]);
arch/parisc/include/asm/led.h
32
void lcd_print(const char *str);
arch/parisc/include/asm/led.h
34
#define lcd_print(str) do { } while (0)
arch/parisc/include/asm/pdc.h
88
int pdc_iodc_print(const unsigned char *str, unsigned count);
arch/parisc/include/asm/traps.h
14
void die_if_kernel(char *str, struct pt_regs *regs, long err);
arch/parisc/kernel/alternative.c
16
static int __init setup_no_alternatives(char *str)
arch/parisc/kernel/firmware.c
1361
int pdc_iodc_print(const unsigned char *str, unsigned count)
arch/parisc/kernel/firmware.c
1370
switch(str[i]) {
arch/parisc/kernel/firmware.c
1378
iodc_dbuf[i] = str[i];
arch/parisc/kernel/pdc_chassis.c
48
static int __init pdc_chassis_setup(char *str)
arch/parisc/kernel/pdc_chassis.c
51
get_option(&str, &pdc_chassis_enabled);
arch/parisc/kernel/traps.c
219
void die_if_kernel(char *str, struct pt_regs *regs, long err)
arch/parisc/kernel/traps.c
227
current->comm, task_pid_nr(current), str, err, regs->iaoq[0]);
arch/parisc/kernel/traps.c
251
current->comm, task_pid_nr(current), str, err);
arch/powerpc/boot/planetcore.c
54
const char *str = planetcore_get_key(table, key);
arch/powerpc/boot/planetcore.c
55
if (!str)
arch/powerpc/boot/planetcore.c
58
*val = strtoull(str, NULL, 10);
arch/powerpc/boot/planetcore.c
64
const char *str = planetcore_get_key(table, key);
arch/powerpc/boot/planetcore.c
65
if (!str)
arch/powerpc/boot/planetcore.c
68
*val = strtoull(str, NULL, 16);
arch/powerpc/boot/stdio.c
123
*str++ = ' ';
arch/powerpc/boot/stdio.c
125
*str++ = sign;
arch/powerpc/boot/stdio.c
128
*str++ = '0';
arch/powerpc/boot/stdio.c
130
*str++ = '0';
arch/powerpc/boot/stdio.c
131
*str++ = digits[33];
arch/powerpc/boot/stdio.c
136
*str++ = c;
arch/powerpc/boot/stdio.c
138
*str++ = '0';
arch/powerpc/boot/stdio.c
140
*str++ = tmp[i];
arch/powerpc/boot/stdio.c
142
*str++ = ' ';
arch/powerpc/boot/stdio.c
143
return str;
arch/powerpc/boot/stdio.c
151
char * str;
arch/powerpc/boot/stdio.c
164
for (str=buf ; *fmt ; ++fmt) {
arch/powerpc/boot/stdio.c
166
*str++ = *fmt;
arch/powerpc/boot/stdio.c
229
*str++ = ' ';
arch/powerpc/boot/stdio.c
230
*str++ = (unsigned char) va_arg(args, int);
arch/powerpc/boot/stdio.c
232
*str++ = ' ';
arch/powerpc/boot/stdio.c
244
*str++ = ' ';
arch/powerpc/boot/stdio.c
246
*str++ = *s++;
arch/powerpc/boot/stdio.c
248
*str++ = ' ';
arch/powerpc/boot/stdio.c
256
str = number(str,
arch/powerpc/boot/stdio.c
265
*ip = (str - buf);
arch/powerpc/boot/stdio.c
268
*ip = (str - buf);
arch/powerpc/boot/stdio.c
271
*ip = (str - buf);
arch/powerpc/boot/stdio.c
276
*str++ = '%';
arch/powerpc/boot/stdio.c
297
*str++ = '%';
arch/powerpc/boot/stdio.c
299
*str++ = *fmt;
arch/powerpc/boot/stdio.c
323
str = number(str, num, base, field_width, precision, flags);
arch/powerpc/boot/stdio.c
325
*str = '\0';
arch/powerpc/boot/stdio.c
326
return str-buf;
arch/powerpc/boot/stdio.c
79
static char * number(char * str, unsigned long long num, int base, int size, int precision, int type)
arch/powerpc/include/asm/btext.h
25
extern void btext_drawstring(const char *str);
arch/powerpc/include/asm/bug.h
127
void die_mce(const char *str, struct pt_regs *regs, long err);
arch/powerpc/include/asm/fadump-internal.h
33
static inline u64 fadump_str_to_u64(const char *str)
arch/powerpc/include/asm/fadump-internal.h
39
val = (*str) ? (val << 8) | *str++ : val << 8;
arch/powerpc/include/asm/fadump.h
28
static inline void crash_fadump(struct pt_regs *regs, const char *str) { }
arch/powerpc/include/asm/machdep.h
68
void (*panic)(char *str);
arch/powerpc/include/asm/rtas.h
441
void rtas_os_term(char *str);
arch/powerpc/include/asm/uaccess.h
409
extern __must_check long strnlen_user(const char __user *str, long n);
arch/powerpc/include/uapi/asm/papr-vpd.h
13
char str[80];
arch/powerpc/kernel/dt_cpu_ftrs.c
679
static int __init dt_cpu_ftrs_parse(char *str)
arch/powerpc/kernel/dt_cpu_ftrs.c
681
if (!str)
arch/powerpc/kernel/dt_cpu_ftrs.c
684
if (!strcmp(str, "off"))
arch/powerpc/kernel/dt_cpu_ftrs.c
686
else if (!strcmp(str, "known"))
arch/powerpc/kernel/eeh.c
142
static int __init eeh_setup(char *str)
arch/powerpc/kernel/eeh.c
144
if (!strcmp(str, "off"))
arch/powerpc/kernel/eeh.c
146
else if (!strcmp(str, "early_log"))
arch/powerpc/kernel/fadump.c
683
void crash_fadump(struct pt_regs *regs, const char *str)
arch/powerpc/kernel/fadump.c
740
fw_dump.ops->fadump_trigger(fdh, str);
arch/powerpc/kernel/iommu.c
121
static int __init setup_fail_iommu(char *str)
arch/powerpc/kernel/iommu.c
123
return setup_fault_attr(&fail_iommu, str);
arch/powerpc/kernel/iommu.c
86
static int __init setup_iommu(char *str)
arch/powerpc/kernel/iommu.c
88
if (!strcmp(str, "novmerge"))
arch/powerpc/kernel/iommu.c
90
else if (!strcmp(str, "vmerge"))
arch/powerpc/kernel/irq_64.c
516
static int __init setup_noirqdistrib(char *str)
arch/powerpc/kernel/mce.c
636
const char *str;
arch/powerpc/kernel/mce.c
643
prop, str) {
arch/powerpc/kernel/mce.c
644
if (strcmp(str, "bit17-vector-ci-load") == 0)
arch/powerpc/kernel/mce.c
646
else if (strcmp(str, "bit17-tm-suspend-escape") == 0)
arch/powerpc/kernel/process.c
107
static int __init enable_strict_msr_control(char *str)
arch/powerpc/kernel/prom.c
724
static int __init parse_ppc_tm(char *str)
arch/powerpc/kernel/prom.c
728
if (kstrtobool(str, &res))
arch/powerpc/kernel/prom_init.c
1808
static void __init prom_rtas_os_term(char *str)
arch/powerpc/kernel/prom_init.c
1829
os_term_args.args[0] = cpu_to_be32(__pa(str));
arch/powerpc/kernel/prom_init.c
2519
static unsigned long __init dt_find_string(char *str)
arch/powerpc/kernel/prom_init.c
2526
if (prom_strcmp(s, str) == 0)
arch/powerpc/kernel/prom_init.c
671
static void __init add_string(char **str, const char *q)
arch/powerpc/kernel/prom_init.c
673
char *p = *str;
arch/powerpc/kernel/prom_init.c
678
*str = p;
arch/powerpc/kernel/rtas.c
1644
void rtas_os_term(char *str)
arch/powerpc/kernel/rtas.c
1660
snprintf(rtas_os_term_buf, 2048, "OS panic: %s", str);
arch/powerpc/kernel/rtasd.c
118
char * str = "RTAS event";
arch/powerpc/kernel/rtasd.c
122
error_log_cnt, str);
arch/powerpc/kernel/rtasd.c
149
error_log_cnt, str);
arch/powerpc/kernel/rtasd.c
565
static int __init surveillance_setup(char *str)
arch/powerpc/kernel/rtasd.c
573
if (get_option(&str,&i)) {
arch/powerpc/kernel/rtasd.c
582
static int __init rtasmsgs_setup(char *str)
arch/powerpc/kernel/rtasd.c
584
return (kstrtobool(str, &full_rtas_msgs) == 0);
arch/powerpc/kernel/setup_32.c
103
static int __init ppc_setup_l2cr(char *str)
arch/powerpc/kernel/setup_32.c
106
unsigned long val = simple_strtoul(str, NULL, 0);
arch/powerpc/kernel/setup_32.c
116
static int __init ppc_setup_l3cr(char *str)
arch/powerpc/kernel/setup_32.c
119
unsigned long val = simple_strtoul(str, NULL, 0);
arch/powerpc/kernel/sysfs.c
72
static int __init setup_smt_snooze_delay(char *str)
arch/powerpc/kernel/trace/ftrace_64_pg.c
825
char *arch_ftrace_match_adjust(char *str, const char *search)
arch/powerpc/kernel/trace/ftrace_64_pg.c
827
if (str[0] == '.' && search[0] != '.')
arch/powerpc/kernel/trace/ftrace_64_pg.c
828
return str + 1;
arch/powerpc/kernel/trace/ftrace_64_pg.c
830
return str;
arch/powerpc/kernel/traps.c
262
static int __die(const char *str, struct pt_regs *regs, long err)
arch/powerpc/kernel/traps.c
264
printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter);
arch/powerpc/kernel/traps.c
275
if (notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV) == NOTIFY_STOP)
arch/powerpc/kernel/traps.c
285
void die(const char *str, struct pt_regs *regs, long err)
arch/powerpc/kernel/traps.c
298
if (__die(str, regs, err))
arch/powerpc/kernel/traps.c
794
void die_mce(const char *str, struct pt_regs *regs, long err)
arch/powerpc/kernel/traps.c
805
die(str, regs, err);
arch/powerpc/mm/book3s64/pgtable.c
600
static int __init setup_disable_tlbie(char *str)
arch/powerpc/perf/core-book3s.c
2621
static int __init pmu_setup(char *str)
arch/powerpc/perf/core-book3s.c
2630
if (kstrtoul(str, 0, &val))
arch/powerpc/perf/hv-24x7.c
1065
const char *str;
arch/powerpc/perf/hv-24x7.c
1068
str = domain_name(d);
arch/powerpc/perf/hv-24x7.c
1069
if (!str)
arch/powerpc/perf/hv-24x7.c
1072
n = sprintf(page, "%d: %s\n", d, str);
arch/powerpc/perf/hv-24x7.c
452
static struct attribute *device_str_attr_create_(char *name, char *str)
arch/powerpc/perf/hv-24x7.c
461
attr->var = str;
arch/powerpc/perf/hv-24x7.c
480
char *str, size_t str_max)
arch/powerpc/perf/hv-24x7.c
483
char *s = memdup_to_str(str, str_max, GFP_KERNEL);
arch/powerpc/perf/imc-pmu.c
135
static struct attribute *device_str_attr_create(const char *name, const char *str)
arch/powerpc/perf/imc-pmu.c
144
attr->event_str = str;
arch/powerpc/platforms/powermac/bootx_init.c
117
static unsigned long __init bootx_dt_find_string(char *str)
arch/powerpc/platforms/powermac/bootx_init.c
124
if (strcmp(s, str) == 0)
arch/powerpc/platforms/powernv/pci-ioda.c
106
static int __init pci_reset_phbs_setup(char *str)
arch/powerpc/platforms/powernv/pci-ioda.c
86
static int __init iommu_setup(char *str)
arch/powerpc/platforms/powernv/pci-ioda.c
88
if (!str)
arch/powerpc/platforms/powernv/pci-ioda.c
91
while (*str) {
arch/powerpc/platforms/powernv/pci-ioda.c
92
if (!strncmp(str, "nobypass", 8)) {
arch/powerpc/platforms/powernv/pci-ioda.c
97
str += strcspn(str, ",");
arch/powerpc/platforms/powernv/pci-ioda.c
98
if (*str == ',')
arch/powerpc/platforms/powernv/pci-ioda.c
99
str++;
arch/powerpc/platforms/ps3/os-area.c
307
char str[sizeof(h->magic_num) + 1];
arch/powerpc/platforms/ps3/os-area.c
309
dump_field(str, h->magic_num, sizeof(h->magic_num));
arch/powerpc/platforms/ps3/os-area.c
311
str);
arch/powerpc/platforms/ps3/os-area.c
527
char str[sizeof(db->magic_num) + 1];
arch/powerpc/platforms/ps3/os-area.c
529
dump_field(str, db->magic_num, sizeof(db->magic_num));
arch/powerpc/platforms/ps3/os-area.c
531
str);
arch/powerpc/platforms/ps3/setup.c
96
static void ps3_panic(char *str)
arch/powerpc/platforms/ps3/setup.c
98
DBG("%s:%d %s\n", __func__, __LINE__, str);
arch/powerpc/platforms/pseries/iommu.c
2537
static int __init disable_multitce(char *str)
arch/powerpc/platforms/pseries/iommu.c
2539
if (strcmp(str, "off") == 0 &&
arch/powerpc/platforms/pseries/iommu.c
939
static int __init disable_ddw_setup(char *str)
arch/powerpc/platforms/pseries/lpar.c
1589
static int __init disable_bulk_remove(char *str)
arch/powerpc/platforms/pseries/lpar.c
1591
if (strcmp(str, "off") == 0 &&
arch/powerpc/platforms/pseries/lpar.c
1743
static int __init cmo_free_hint(char *str)
arch/powerpc/platforms/pseries/lpar.c
1746
parm = strstrip(str);
arch/powerpc/platforms/pseries/papr-vpd.c
221
if (!string_is_terminated(klc.str, ARRAY_SIZE(klc.str)))
arch/powerpc/platforms/pseries/rtas-fadump.c
289
char str[3];
arch/powerpc/platforms/pseries/rtas-fadump.c
296
str[2] = '\0';
arch/powerpc/platforms/pseries/rtas-fadump.c
297
str[1] = id & 0xff;
arch/powerpc/platforms/pseries/rtas-fadump.c
298
str[0] = (id >> 8) & 0xff;
arch/powerpc/platforms/pseries/rtas-fadump.c
299
if (kstrtoint(str, 10, &i))
arch/powerpc/platforms/pseries/setup.c
879
static void pseries_panic(char *str)
arch/powerpc/platforms/pseries/setup.c
882
rtas_os_term(str);
arch/powerpc/sysdev/fsl_rio.c
398
const char *str;
arch/powerpc/sysdev/fsl_rio.c
403
str = "1";
arch/powerpc/sysdev/fsl_rio.c
406
str = "4";
arch/powerpc/sysdev/fsl_rio.c
409
str = "Unknown";
arch/powerpc/sysdev/fsl_rio.c
412
dev_info(dev, "Hardware port width: %s\n", str);
arch/powerpc/sysdev/fsl_rio.c
416
str = "Single-lane 0";
arch/powerpc/sysdev/fsl_rio.c
419
str = "Single-lane 2";
arch/powerpc/sysdev/fsl_rio.c
422
str = "Four-lane";
arch/powerpc/sysdev/fsl_rio.c
425
str = "Unknown";
arch/powerpc/sysdev/fsl_rio.c
428
dev_info(dev, "Training connection status: %s\n", str);
arch/powerpc/xmon/nonstdio.c
147
char *xmon_gets(char *str, int nb)
arch/powerpc/xmon/nonstdio.c
152
for (p = str; p < str + nb - 1; ) {
arch/powerpc/xmon/nonstdio.c
155
if (p == str)
arch/powerpc/xmon/nonstdio.c
164
return str;
arch/powerpc/xmon/nonstdio.c
185
void xmon_puts(const char *str)
arch/powerpc/xmon/nonstdio.c
187
xmon_write(str, strlen(str));
arch/powerpc/xmon/xmon.c
3636
take_input(char *str)
arch/powerpc/xmon/xmon.c
3638
lineptr = str;
arch/riscv/include/asm/bug.h
96
void die(struct pt_regs *regs, const char *str);
arch/riscv/include/asm/uaccess.h
437
extern long __must_check strnlen_user(const char __user *str, long n);
arch/riscv/kernel/traps.c
133
unsigned long addr, const char *str)
arch/riscv/kernel/traps.c
141
die(regs, str);
arch/riscv/kernel/traps.c
150
#define DO_ERROR_INFO(name, signo, code, str) \
arch/riscv/kernel/traps.c
156
do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \
arch/riscv/kernel/traps.c
161
do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \
arch/riscv/kernel/traps.c
57
char str[sizeof("0000 ") * 12 + 2 + 1], *p = str;
arch/riscv/kernel/traps.c
73
printk("%sCode: %s\n", loglvl, str);
arch/riscv/kernel/traps.c
76
void die(struct pt_regs *regs, const char *str)
arch/riscv/kernel/traps.c
89
pr_emerg("%s [#%d]\n", str, ++die_counter);
arch/riscv/kernel/traps.c
97
ret = notify_die(DIE_OOPS, str, regs, 0, cause, SIGSEGV);
arch/riscv/kernel/unaligned_access_speed.c
413
static int __init set_unaligned_scalar_speed_param(char *str)
arch/riscv/kernel/unaligned_access_speed.c
415
if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW]))
arch/riscv/kernel/unaligned_access_speed.c
417
else if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_SCALAR_FAST]))
arch/riscv/kernel/unaligned_access_speed.c
419
else if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED]))
arch/riscv/kernel/unaligned_access_speed.c
428
static int __init set_unaligned_vector_speed_param(char *str)
arch/riscv/kernel/unaligned_access_speed.c
430
if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_VECTOR_SLOW]))
arch/riscv/kernel/unaligned_access_speed.c
432
else if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_VECTOR_FAST]))
arch/riscv/kernel/unaligned_access_speed.c
434
else if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_VECTOR_UNSUPPORTED]))
arch/riscv/kernel/usercfi.c
522
static int __init setup_global_riscv_enable(char *str)
arch/riscv/kernel/usercfi.c
524
if (strcmp(str, "all") == 0)
arch/riscv/kernel/usercfi.c
527
if (strcmp(str, "fcfi") == 0)
arch/riscv/kernel/usercfi.c
530
if (strcmp(str, "bcfi") == 0)
arch/riscv/kvm/main.c
110
str = "Sv32x4";
arch/riscv/kvm/main.c
113
str = "Sv39x4";
arch/riscv/kvm/main.c
116
str = "Sv48x4";
arch/riscv/kvm/main.c
119
str = "Sv57x4";
arch/riscv/kvm/main.c
167
kvm_info("using %s G-stage page table format\n", str);
arch/riscv/kvm/main.c
86
const char *str;
arch/s390/boot/als.c
14
static void u16_to_decimal(char *str, u16 val)
arch/s390/boot/als.c
21
*str++ = '0' + val / div;
arch/s390/boot/als.c
25
*str = '\0';
arch/s390/boot/alternative.c
108
void alt_debug_setup(char *str)
arch/s390/boot/alternative.c
114
if (!str) {
arch/s390/boot/alternative.c
120
while (*str) {
arch/s390/boot/alternative.c
121
type = simple_strtoull(str, &endp, 0);
arch/s390/boot/alternative.c
122
if (str == endp)
arch/s390/boot/alternative.c
124
str = endp;
arch/s390/boot/alternative.c
128
str = alt_debug_parse(type, str);
arch/s390/boot/alternative.c
134
if (*str != ';')
arch/s390/boot/alternative.c
136
str++;
arch/s390/boot/alternative.c
46
static char *alt_debug_parse(int type, char *str)
arch/s390/boot/alternative.c
53
if (*str == ':') {
arch/s390/boot/alternative.c
54
str++;
arch/s390/boot/alternative.c
57
return str;
arch/s390/boot/alternative.c
60
if (*str == '!') {
arch/s390/boot/alternative.c
63
str++;
arch/s390/boot/alternative.c
65
while (*str) {
arch/s390/boot/alternative.c
66
val = simple_strtoull(str, &endp, 0);
arch/s390/boot/alternative.c
67
if (str == endp)
arch/s390/boot/alternative.c
69
str = endp;
arch/s390/boot/alternative.c
70
if (*str == '-') {
arch/s390/boot/alternative.c
71
str++;
arch/s390/boot/alternative.c
72
endval = simple_strtoull(str, &endp, 0);
arch/s390/boot/alternative.c
73
if (str == endp)
arch/s390/boot/alternative.c
75
str = endp;
arch/s390/boot/alternative.c
83
if (*str != ',')
arch/s390/boot/alternative.c
85
str++;
arch/s390/boot/alternative.c
87
return str;
arch/s390/boot/boot.h
72
void alt_debug_setup(char *str);
arch/s390/boot/ipl_parm.c
166
static inline int has_ebcdic_char(const char *str)
arch/s390/boot/ipl_parm.c
170
for (i = 0; str[i]; i++)
arch/s390/boot/ipl_parm.c
171
if (str[i] & 0x80)
arch/s390/boot/ipl_parm.c
212
static void modify_fac_list(char *str)
arch/s390/boot/ipl_parm.c
218
while (*str) {
arch/s390/boot/ipl_parm.c
220
if (*str == '!') {
arch/s390/boot/ipl_parm.c
222
str++;
arch/s390/boot/ipl_parm.c
224
val = simple_strtoull(str, &endp, 0);
arch/s390/boot/ipl_parm.c
225
if (str == endp)
arch/s390/boot/ipl_parm.c
227
str = endp;
arch/s390/boot/ipl_parm.c
228
if (*str == '-') {
arch/s390/boot/ipl_parm.c
229
str++;
arch/s390/boot/ipl_parm.c
230
endval = simple_strtoull(str, &endp, 0);
arch/s390/boot/ipl_parm.c
231
if (str == endp)
arch/s390/boot/ipl_parm.c
233
str = endp;
arch/s390/boot/ipl_parm.c
241
if (*str != ',')
arch/s390/boot/ipl_parm.c
243
str++;
arch/s390/boot/printk.c
24
static void boot_rb_add(const char *str, size_t len)
arch/s390/boot/printk.c
33
strscpy(boot_rb + boot_rb_off, str, avail);
arch/s390/boot/printk.c
37
static void print_rb_entry(const char *str)
arch/s390/boot/printk.c
39
sclp_early_printk(printk_skip_level(str));
arch/s390/boot/string.c
53
char *skip_spaces(const char *str)
arch/s390/boot/string.c
55
while (isspace(*str))
arch/s390/boot/string.c
56
++str;
arch/s390/boot/string.c
57
return (char *)str;
arch/s390/kernel/debug.c
1461
char *str;
arch/s390/kernel/debug.c
1469
str = debug_get_user_string(user_buf, user_len);
arch/s390/kernel/debug.c
1470
if (IS_ERR(str)) {
arch/s390/kernel/debug.c
1471
rc = PTR_ERR(str);
arch/s390/kernel/debug.c
1474
new_pages = debug_get_uint(str);
arch/s390/kernel/debug.c
1486
kfree(str);
arch/s390/kernel/debug.c
1515
char *str;
arch/s390/kernel/debug.c
1523
str = debug_get_user_string(user_buf, user_len);
arch/s390/kernel/debug.c
1524
if (IS_ERR(str)) {
arch/s390/kernel/debug.c
1525
rc = PTR_ERR(str);
arch/s390/kernel/debug.c
1528
if (str[0] == '-') {
arch/s390/kernel/debug.c
1533
new_level = debug_get_uint(str);
arch/s390/kernel/debug.c
1536
pr_warn("%s is not a valid level for a debug feature\n", str);
arch/s390/kernel/debug.c
1543
kfree(str);
arch/s390/kernel/dumpstack.c
196
void __noreturn die(struct pt_regs *regs, const char *str)
arch/s390/kernel/dumpstack.c
206
printk("%s: %04x ilc:%d [#%d]", str, regs->int_code & 0xffff,
arch/s390/kernel/dumpstack.c
212
notify_die(DIE_OOPS, str, regs, 0, regs->int_code & 0xffff, SIGSEGV);
arch/s390/kernel/early.c
101
if (isspace(*str)) {
arch/s390/kernel/early.c
102
s = skip_spaces(str);
arch/s390/kernel/early.c
103
memmove(str, s, strlen(s) + 1);
arch/s390/kernel/early.c
91
static inline void strim_all(char *str)
arch/s390/kernel/early.c
95
s = strim(str);
arch/s390/kernel/early.c
96
if (s != str)
arch/s390/kernel/early.c
97
memmove(str, s, strlen(s));
arch/s390/kernel/early.c
98
while (*str) {
arch/s390/kernel/early.c
99
if (!isspace(*str++))
arch/s390/kernel/entry.h
33
void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str);
arch/s390/kernel/entry.h
42
void die(struct pt_regs *regs, const char *str);
arch/s390/kernel/ipl.c
2254
char str[8] = {0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40};
arch/s390/kernel/ipl.c
2267
if (memcmp(sclp_ipl_info.loadparm, str, sizeof(str)) == 0 && ipl_block_valid)
arch/s390/kernel/ipl.c
2293
static int __init vmcmd_on_reboot_setup(char *str)
arch/s390/kernel/ipl.c
2297
strscpy_skip_quote(vmcmd_on_reboot, str, sizeof(vmcmd_on_reboot));
arch/s390/kernel/ipl.c
2303
static int __init vmcmd_on_panic_setup(char *str)
arch/s390/kernel/ipl.c
2307
strscpy_skip_quote(vmcmd_on_panic, str, sizeof(vmcmd_on_panic));
arch/s390/kernel/ipl.c
2313
static int __init vmcmd_on_halt_setup(char *str)
arch/s390/kernel/ipl.c
2317
strscpy_skip_quote(vmcmd_on_halt, str, sizeof(vmcmd_on_halt));
arch/s390/kernel/ipl.c
2323
static int __init vmcmd_on_poff_setup(char *str)
arch/s390/kernel/ipl.c
2327
strscpy_skip_quote(vmcmd_on_poff, str, sizeof(vmcmd_on_poff));
arch/s390/kernel/nospec-branch.c
14
rc = kstrtobool(str, &enabled);
arch/s390/kernel/nospec-branch.c
32
static int __init nospec_setup_early(char *str)
arch/s390/kernel/nospec-branch.c
55
static int __init nospectre_v2_setup_early(char *str)
arch/s390/kernel/nospec-branch.c
87
static int __init spectre_v2_setup_early(char *str)
arch/s390/kernel/nospec-branch.c
89
if (str && !strncmp(str, "on", 2)) {
arch/s390/kernel/nospec-branch.c
9
static int __init nobp_setup_early(char *str)
arch/s390/kernel/nospec-branch.c
93
if (str && !strncmp(str, "off", 3))
arch/s390/kernel/nospec-branch.c
95
if (str && !strncmp(str, "auto", 4))
arch/s390/kernel/setup.c
200
static int __init condev_setup(char *str)
arch/s390/kernel/setup.c
204
vdev = simple_strtoul(str, &str, 0);
arch/s390/kernel/setup.c
226
static int __init conmode_setup(char *str)
arch/s390/kernel/setup.c
229
if (!strcmp(str, "hwc") || !strcmp(str, "sclp"))
arch/s390/kernel/setup.c
233
if (!strcmp(str, "3215"))
arch/s390/kernel/setup.c
237
if (!strcmp(str, "3270"))
arch/s390/kernel/setup.c
849
char *str;
arch/s390/kernel/setup.c
863
str = "signed, verified";
arch/s390/kernel/setup.c
865
str = "signed, verification failed";
arch/s390/kernel/setup.c
867
str = "not signed";
arch/s390/kernel/setup.c
870
ptr->addr, ptr->addr + ptr->len, str);
arch/s390/kernel/stackprotector.c
74
static void insn_ril_to_string(char *str, struct insn_ril *insn)
arch/s390/kernel/stackprotector.c
80
hex_byte_pack(&str[2 * i], ptr[i]);
arch/s390/kernel/stackprotector.c
81
str[2 * i] = 0;
arch/s390/kernel/sysinfo.c
362
char *query_buffer, *str;
arch/s390/kernel/sysinfo.c
368
str = strchr(query_buffer, '\n');
arch/s390/kernel/sysinfo.c
369
if (str)
arch/s390/kernel/sysinfo.c
370
*str = 0;
arch/s390/kernel/topology.c
601
static int __init topology_setup(char *str)
arch/s390/kernel/topology.c
606
rc = kstrtobool(str, &enabled);
arch/s390/kernel/traps.c
53
void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str)
arch/s390/kernel/traps.c
60
die(regs, str);
arch/s390/kernel/traps.c
64
static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str)
arch/s390/kernel/traps.c
66
if (notify_die(DIE_TRAP, str, regs, 0, regs->int_code, si_signo) == NOTIFY_STOP)
arch/s390/kernel/traps.c
68
do_report_trap(regs, si_signo, si_code, str);
arch/s390/kernel/traps.c
91
#define DO_ERROR_INFO(name, signr, sicode, str) \
arch/s390/kernel/traps.c
94
do_trap(regs, signr, sicode, str); \
arch/s390/lib/spinlock.c
35
static int __init spin_retry_setup(char *str)
arch/s390/lib/spinlock.c
37
spin_retry = simple_strtoul(str, &str, 0);
arch/s390/mm/cmm.c
254
char *str;
arch/s390/mm/cmm.c
256
for (str = cp; *str == ' ' || *str == '\t'; str++)
arch/s390/mm/cmm.c
258
*endp = str;
arch/s390/mm/cmm.c
259
return str != cp;
arch/s390/mm/pfault.c
24
static int __init nopfault(char *str)
arch/s390/pci/pci.c
1108
char * __init pcibios_setup(char *str)
arch/s390/pci/pci.c
1110
if (!strcmp(str, "off")) {
arch/s390/pci/pci.c
1114
if (!strcmp(str, "nomio")) {
arch/s390/pci/pci.c
1118
if (!strcmp(str, "force_floating")) {
arch/s390/pci/pci.c
1122
if (!strcmp(str, "norid")) {
arch/s390/pci/pci.c
1126
return str;
arch/sh/boards/mach-sdk7786/nmi.c
25
static int __init nmi_mode_setup(char *str)
arch/sh/boards/mach-sdk7786/nmi.c
27
if (!str)
arch/sh/boards/mach-sdk7786/nmi.c
30
if (strcmp(str, "manual") == 0)
arch/sh/boards/mach-sdk7786/nmi.c
32
else if (strcmp(str, "aux") == 0)
arch/sh/boards/mach-sdk7786/nmi.c
34
else if (strcmp(str, "masked") == 0)
arch/sh/boards/mach-sdk7786/nmi.c
36
else if (strcmp(str, "any") == 0)
arch/sh/boards/mach-sdk7786/nmi.c
40
pr_warn("Unknown NMI mode %s\n", str);
arch/sh/drivers/pci/fixups-sdk7786.c
25
char *__init pcibios_setup(char *str)
arch/sh/drivers/pci/fixups-sdk7786.c
27
if (strcmp(str, "slot4en") == 0) {
arch/sh/drivers/pci/fixups-sdk7786.c
32
return str;
arch/sh/drivers/pci/pci-sh7780.c
123
pci_arbiter_errors[i].str, addr);
arch/sh/drivers/pci/pci-sh7780.c
136
pci_interrupt_errors[i].str, addr);
arch/sh/drivers/pci/pci-sh7780.c
68
const char *str;
arch/sh/include/asm/bug.h
117
extern void die(const char *str, struct pt_regs *regs, long err) __attribute__ ((noreturn));
arch/sh/include/asm/bug.h
118
extern void die_if_kernel(const char *str, struct pt_regs *regs, long err);
arch/sh/include/asm/bug.h
119
extern void die_if_no_fixup(const char *str, struct pt_regs *regs, long err);
arch/sh/include/asm/kdebug.h
16
extern void dump_mem(const char *str, const char *loglvl,
arch/sh/include/asm/uaccess.h
81
extern __must_check long strnlen_user(const char __user *str, long n);
arch/sh/kernel/dumpstack.c
19
void dump_mem(const char *str, const char *loglvl, unsigned long bottom,
arch/sh/kernel/dumpstack.c
25
printk("%s%s(0x%08lx to 0x%08lx)\n", loglvl, str, bottom, top);
arch/sh/kernel/nmi_debug.c
45
static int __init nmi_debug_setup(char *str)
arch/sh/kernel/nmi_debug.c
51
if (*str != '=')
arch/sh/kernel/nmi_debug.c
54
for (p = str + 1; *p; p = sep + 1) {
arch/sh/kernel/traps.c
25
void __noreturn die(const char *str, struct pt_regs *regs, long err)
arch/sh/kernel/traps.c
35
printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter);
arch/sh/kernel/traps.c
46
notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV);
arch/sh/kernel/traps.c
65
void die_if_kernel(const char *str, struct pt_regs *regs, long err)
arch/sh/kernel/traps.c
68
die(str, regs, err);
arch/sh/kernel/traps.c
77
void die_if_no_fixup(const char *str, struct pt_regs *regs, long err)
arch/sh/kernel/traps.c
87
die(str, regs, err);
arch/sh/mm/consistent.c
14
static int __init memchunk_setup(char *str)
arch/sparc/boot/piggyback.c
57
static void die(const char *str)
arch/sparc/boot/piggyback.c
59
perror(str);
arch/sparc/include/asm/bug.h
28
void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
arch/sparc/include/asm/openprom.h
115
void (*pv_putstr)(char *str, int len);
arch/sparc/include/asm/openprom.h
127
void (*v0_eval)(int len, char *str);
arch/sparc/include/asm/openprom.h
128
void (*v2_eval)(char *str);
arch/sparc/include/asm/uaccess_32.h
220
__must_check long strnlen_user(const char __user *str, long n);
arch/sparc/include/asm/uaccess_64.h
245
__must_check long strnlen_user(const char __user *str, long n);
arch/sparc/kernel/apc.c
46
static int __init apc_setup(char *str)
arch/sparc/kernel/apc.c
48
if(!strncmp(str, "noidle", strlen("noidle"))) {
arch/sparc/kernel/nmi.c
277
static int __init setup_nmi_watchdog(char *str)
arch/sparc/kernel/nmi.c
279
if (!strncmp(str, "panic", 5))
arch/sparc/kernel/nmi.c
73
static void die_nmi(const char *str, struct pt_regs *regs, int do_panic)
arch/sparc/kernel/nmi.c
77
if (notify_die(DIE_NMIWATCHDOG, str, regs, 0,
arch/sparc/kernel/of_device_32.c
424
static int __init of_debug(char *str)
arch/sparc/kernel/of_device_32.c
428
get_option(&str, &val);
arch/sparc/kernel/of_device_64.c
714
static int __init of_debug(char *str)
arch/sparc/kernel/of_device_64.c
718
get_option(&str, &val);
arch/sparc/kernel/pci.c
172
static int __init ofpci_debug(char *str)
arch/sparc/kernel/pci.c
176
get_option(&str, &val);
arch/sparc/kernel/traps_32.c
51
void __noreturn die_if_kernel(char *str, struct pt_regs *regs)
arch/sparc/kernel/traps_32.c
63
printk("%s(%d): %s [#%d]\n", current->comm, task_pid_nr(current), str, ++die_counter);
arch/sparc/kernel/traps_64.c
2520
void __noreturn die_if_kernel(char *str, struct pt_regs *regs)
arch/sparc/kernel/traps_64.c
2532
printk("%s(%d): %s [#%d]\n", current->comm, task_pid_nr(current), str, ++die_counter);
arch/sparc/kernel/traps_64.c
2533
notify_die(DIE_OOPS, str, regs, 0, 255, SIGSEGV);
arch/sparc/kernel/unaligned_32.c
169
static void unaligned_panic(char *str)
arch/sparc/kernel/unaligned_32.c
171
panic("%s", str);
arch/sparc/kernel/unaligned_64.c
192
static void __used unaligned_panic(char *str, struct pt_regs *regs)
arch/sparc/kernel/unaligned_64.c
194
die_if_kernel(str, regs);
arch/sparc/kernel/vio.c
117
const char *str = "none";
arch/sparc/kernel/vio.c
120
str = "vnet";
arch/sparc/kernel/vio.c
122
str = "vdisk";
arch/sparc/kernel/vio.c
124
return sprintf(buf, "%s\n", str);
arch/um/drivers/chan.h
32
extern int parse_chan_pair(char *str, struct line *line, int device,
arch/um/drivers/chan.h
46
extern int chan_config_string(struct line *line, char *str, int size,
arch/um/drivers/chan_kern.c
14
static void *not_configged_init(char *str, int device,
arch/um/drivers/chan_kern.c
377
static int one_chan_config_string(struct chan *chan, char *str, int size,
arch/um/drivers/chan_kern.c
383
CONFIG_CHUNK(str, size, n, "none", 1);
arch/um/drivers/chan_kern.c
387
CONFIG_CHUNK(str, size, n, chan->ops->type, 0);
arch/um/drivers/chan_kern.c
390
CONFIG_CHUNK(str, size, n, "", 1);
arch/um/drivers/chan_kern.c
394
CONFIG_CHUNK(str, size, n, ":", 0);
arch/um/drivers/chan_kern.c
395
CONFIG_CHUNK(str, size, n, chan->dev, 0);
arch/um/drivers/chan_kern.c
401
char *str, int size, char **error_out)
arch/um/drivers/chan_kern.c
405
n = one_chan_config_string(in, str, size, error_out);
arch/um/drivers/chan_kern.c
406
str += n;
arch/um/drivers/chan_kern.c
410
CONFIG_CHUNK(str, size, n, "", 1);
arch/um/drivers/chan_kern.c
414
CONFIG_CHUNK(str, size, n, ",", 1);
arch/um/drivers/chan_kern.c
415
n = one_chan_config_string(out, str, size, error_out);
arch/um/drivers/chan_kern.c
416
str += n;
arch/um/drivers/chan_kern.c
418
CONFIG_CHUNK(str, size, n, "", 1);
arch/um/drivers/chan_kern.c
423
int chan_config_string(struct line *line, char *str, int size,
arch/um/drivers/chan_kern.c
433
return chan_pair_config_string(in, out, str, size, error_out);
arch/um/drivers/chan_kern.c
477
static struct chan *parse_chan(struct line *line, char *str, int device,
arch/um/drivers/chan_kern.c
490
if (!strncmp(str, entry->key, strlen(entry->key))) {
arch/um/drivers/chan_kern.c
492
str += strlen(entry->key);
arch/um/drivers/chan_kern.c
501
data = (*ops->init)(str, device, opts);
arch/um/drivers/chan_kern.c
528
int parse_chan_pair(char *str, struct line *line, int device,
arch/um/drivers/chan_kern.c
541
if (!str)
arch/um/drivers/chan_kern.c
544
out = strchr(str, ',');
arch/um/drivers/chan_kern.c
546
in = str;
arch/um/drivers/chan_kern.c
566
new = parse_chan(line, str, device, opts, error_out);
arch/um/drivers/cow_sys.h
21
static inline char *cow_strdup(char *str)
arch/um/drivers/cow_sys.h
23
return uml_strdup(str);
arch/um/drivers/fd.c
19
char str[sizeof("1234567890\0")];
arch/um/drivers/fd.c
22
static void *fd_init(char *str, int device, const struct chan_opts *opts)
arch/um/drivers/fd.c
28
if (*str != ':') {
arch/um/drivers/fd.c
33
str++;
arch/um/drivers/fd.c
34
n = strtoul(str, &end, 0);
arch/um/drivers/fd.c
35
if ((*end != '\0') || (end == str)) {
arch/um/drivers/fd.c
37
"'%s'\n", str);
arch/um/drivers/fd.c
64
sprintf(data->str, "%d", data->fd);
arch/um/drivers/fd.c
65
*dev_out = data->str;
arch/um/drivers/line.c
460
int line_config(struct line *lines, unsigned int num, char *str,
arch/um/drivers/line.c
466
if (*str == '=') {
arch/um/drivers/line.c
471
n = simple_strtoul(str, &end, 0);
arch/um/drivers/line.c
484
int line_get_config(char *name, struct line *lines, unsigned int num, char *str,
arch/um/drivers/line.c
505
CONFIG_CHUNK(str, size, n, "none", 1);
arch/um/drivers/line.c
509
CONFIG_CHUNK(str, size, n, line->init_str, 1);
arch/um/drivers/line.c
511
n = chan_config_string(line, str, size, error_out);
arch/um/drivers/line.c
519
int line_id(char **str, int *start_out, int *end_out)
arch/um/drivers/line.c
524
n = simple_strtoul(*str, &end, 0);
arch/um/drivers/line.c
525
if ((*end != '\0') || (end == *str))
arch/um/drivers/line.c
528
*str = end;
arch/um/drivers/line.h
87
char *str, const struct chan_opts *opts,
arch/um/drivers/line.h
89
extern int line_id(char **str, int *start_out, int *end_out);
arch/um/drivers/line.h
93
unsigned int sizeof_lines, char *str,
arch/um/drivers/mconsole.h
74
extern int mconsole_reply(struct mc_request *req, const char *str, int err,
arch/um/drivers/mconsole_kern.c
290
static int mem_config(char *str, char **error_out)
arch/um/drivers/mconsole_kern.c
296
if (str[0] != '=') {
arch/um/drivers/mconsole_kern.c
301
str++;
arch/um/drivers/mconsole_kern.c
302
if (str[0] == '-')
arch/um/drivers/mconsole_kern.c
304
else if (str[0] == '+') {
arch/um/drivers/mconsole_kern.c
312
str++;
arch/um/drivers/mconsole_kern.c
313
diff = memparse(str, &ret);
arch/um/drivers/mconsole_kern.c
383
static int mem_get_config(char *name, char *str, int size, char **error_out)
arch/um/drivers/mconsole_kern.c
389
CONFIG_CHUNK(str, size, len, buf, 1);
arch/um/drivers/mconsole_kern.c
394
static int mem_id(char **str, int *start_out, int *end_out)
arch/um/drivers/mconsole_kern.c
819
static int mconsole_setup(char *str)
arch/um/drivers/mconsole_kern.c
821
if (!strncmp(str, NOTIFY, strlen(NOTIFY))) {
arch/um/drivers/mconsole_kern.c
822
str += strlen(NOTIFY);
arch/um/drivers/mconsole_kern.c
823
notify_socket = str;
arch/um/drivers/mconsole_kern.c
825
else printk(KERN_ERR "mconsole_setup : Unknown option - '%s'\n", str);
arch/um/drivers/mconsole_kern.h
27
#define CONFIG_CHUNK(str, size, current, chunk, end) \
arch/um/drivers/mconsole_kern.h
31
str = NULL; \
arch/um/drivers/mconsole_kern.h
32
if(str != NULL){ \
arch/um/drivers/mconsole_kern.h
33
strcpy(str, chunk); \
arch/um/drivers/mconsole_kern.h
34
str += strlen(chunk); \
arch/um/drivers/mconsole_user.c
128
int mconsole_reply_len(struct mc_request *req, const char *str, int total,
arch/um/drivers/mconsole_user.c
150
memcpy(reply.data, str, len);
arch/um/drivers/mconsole_user.c
153
str += len;
arch/um/drivers/mconsole_user.c
167
int mconsole_reply(struct mc_request *req, const char *str, int err, int more)
arch/um/drivers/mconsole_user.c
169
return mconsole_reply_len(req, str, strlen(str), err, more);
arch/um/drivers/null.c
15
static void *null_init(char *str, int device, const struct chan_opts *opts)
arch/um/drivers/port_user.c
25
static void *port_init(char *str, int device, const struct chan_opts *opts)
arch/um/drivers/port_user.c
32
if (*str != ':') {
arch/um/drivers/port_user.c
37
str++;
arch/um/drivers/port_user.c
38
port = strtoul(str, &end, 0);
arch/um/drivers/port_user.c
39
if ((*end != '\0') || (end == str)) {
arch/um/drivers/port_user.c
41
str);
arch/um/drivers/pty.c
26
static void *pty_chan_init(char *str, int device, const struct chan_opts *opts)
arch/um/drivers/ssl.c
187
static int ssl_chan_setup(char *str)
arch/um/drivers/ssl.c
189
line_setup(conf, NR_PORTS, &def_conf, str, "serial line");
arch/um/drivers/ssl.c
196
static int ssl_non_raw_setup(char *str)
arch/um/drivers/ssl.c
37
static int ssl_config(char *str, char **error_out);
arch/um/drivers/ssl.c
38
static int ssl_get_config(char *dev, char *str, int size, char **error_out);
arch/um/drivers/ssl.c
69
static int ssl_config(char *str, char **error_out)
arch/um/drivers/ssl.c
71
return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts,
arch/um/drivers/ssl.c
75
static int ssl_get_config(char *dev, char *str, int size, char **error_out)
arch/um/drivers/ssl.c
77
return line_get_config(dev, serial_lines, ARRAY_SIZE(serial_lines), str,
arch/um/drivers/stderr_console.c
39
static int stderr_setup(char *str)
arch/um/drivers/stderr_console.c
41
if (!str)
arch/um/drivers/stderr_console.c
43
use_stderr_console = simple_strtoul(str,&str,0);
arch/um/drivers/stdio_console.c
189
static int console_chan_setup(char *str)
arch/um/drivers/stdio_console.c
191
if (!strncmp(str, "sole=", 5)) /* console= option specifies tty */
arch/um/drivers/stdio_console.c
194
line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console");
arch/um/drivers/stdio_console.c
43
static int con_config(char *str, char **error_out);
arch/um/drivers/stdio_console.c
44
static int con_get_config(char *dev, char *str, int size, char **error_out);
arch/um/drivers/stdio_console.c
75
static int con_config(char *str, char **error_out)
arch/um/drivers/stdio_console.c
77
return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out);
arch/um/drivers/stdio_console.c
80
static int con_get_config(char *dev, char *str, int size, char **error_out)
arch/um/drivers/stdio_console.c
82
return line_get_config(dev, vts, ARRAY_SIZE(vts), str, size, error_out);
arch/um/drivers/tty.c
19
static void *tty_chan_init(char *str, int device, const struct chan_opts *opts)
arch/um/drivers/tty.c
23
if (*str != ':') {
arch/um/drivers/tty.c
28
str++;
arch/um/drivers/tty.c
33
*data = ((struct tty_chan) { .dev = str,
arch/um/drivers/ubd_kern.c
191
static int fake_ide_setup(char *str)
arch/um/drivers/ubd_kern.c
205
char *str = *ptr, *end;
arch/um/drivers/ubd_kern.c
208
if(isdigit(*str)) {
arch/um/drivers/ubd_kern.c
209
n = simple_strtoul(str, &end, 0);
arch/um/drivers/ubd_kern.c
210
if(end == str)
arch/um/drivers/ubd_kern.c
214
else if (('a' <= *str) && (*str <= 'z')) {
arch/um/drivers/ubd_kern.c
215
n = *str - 'a';
arch/um/drivers/ubd_kern.c
216
str++;
arch/um/drivers/ubd_kern.c
217
*ptr = str;
arch/um/drivers/ubd_kern.c
226
static int ubd_setup_common(char *str, int *index_out, char **error_out)
arch/um/drivers/ubd_kern.c
234
n = *str;
arch/um/drivers/ubd_kern.c
236
str++;
arch/um/drivers/ubd_kern.c
237
if(!strcmp(str, "sync")){
arch/um/drivers/ubd_kern.c
246
n = parse_unit(&str);
arch/um/drivers/ubd_kern.c
270
switch (*str) {
arch/um/drivers/ubd_kern.c
287
str++;
arch/um/drivers/ubd_kern.c
294
str++;
arch/um/drivers/ubd_kern.c
297
if (*str == '=')
arch/um/drivers/ubd_kern.c
304
file = strsep(&str, ",:");
arch/um/drivers/ubd_kern.c
308
backing_file = strsep(&str, ",:");
arch/um/drivers/ubd_kern.c
312
serial = strsep(&str, ",:");
arch/um/drivers/ubd_kern.c
331
static int ubd_setup(char *str)
arch/um/drivers/ubd_kern.c
336
err = ubd_setup_common(str, NULL, &error);
arch/um/drivers/ubd_kern.c
339
"%s\n", str, error);
arch/um/drivers/ubd_kern.c
376
static int udb_setup(char *str)
arch/um/drivers/ubd_kern.c
379
"udb TYPO\n", str);
arch/um/drivers/ubd_kern.c
914
static int ubd_config(char *str, char **error_out)
arch/um/drivers/ubd_kern.c
922
str = kstrdup(str, GFP_KERNEL);
arch/um/drivers/ubd_kern.c
923
if (str == NULL) {
arch/um/drivers/ubd_kern.c
928
ret = ubd_setup_common(str, &n, error_out);
arch/um/drivers/ubd_kern.c
947
kfree(str);
arch/um/drivers/ubd_kern.c
951
static int ubd_get_config(char *name, char *str, int size, char **error_out)
arch/um/drivers/ubd_kern.c
966
CONFIG_CHUNK(str, size, len, "", 1);
arch/um/drivers/ubd_kern.c
970
CONFIG_CHUNK(str, size, len, ubd_dev->file, 0);
arch/um/drivers/ubd_kern.c
973
CONFIG_CHUNK(str, size, len, ",", 0);
arch/um/drivers/ubd_kern.c
974
CONFIG_CHUNK(str, size, len, ubd_dev->cow.file, 1);
arch/um/drivers/ubd_kern.c
976
else CONFIG_CHUNK(str, size, len, "", 1);
arch/um/drivers/ubd_kern.c
983
static int ubd_id(char **str, int *start_out, int *end_out)
arch/um/drivers/ubd_kern.c
987
n = parse_unit(str);
arch/um/drivers/vector_kern.c
1538
static void vector_setup_etheraddr(struct net_device *dev, char *str)
arch/um/drivers/vector_kern.c
1542
if (str == NULL)
arch/um/drivers/vector_kern.c
1545
if (!mac_pton(str, addr)) {
arch/um/drivers/vector_kern.c
1547
"Failed to parse '%s' as an ethernet address\n", str);
arch/um/drivers/vector_kern.c
1697
static int __init vector_setup(char *str)
arch/um/drivers/vector_kern.c
1703
err = vector_parse(str, &n, &str, &error);
arch/um/drivers/vector_kern.c
1705
pr_err("Couldn't parse '%s': %s\n", str, error);
arch/um/drivers/vector_kern.c
1711
new->arguments = str;
arch/um/drivers/vector_kern.c
702
static int vector_parse(char *str, int *index_out, char **str_out,
arch/um/drivers/vector_kern.c
706
char *start = str;
arch/um/drivers/vector_kern.c
708
while ((*str != ':') && (strlen(str) > 1))
arch/um/drivers/vector_kern.c
709
str++;
arch/um/drivers/vector_kern.c
710
if (*str != ':') {
arch/um/drivers/vector_kern.c
714
*str = '\0';
arch/um/drivers/vector_kern.c
722
str++;
arch/um/drivers/vector_kern.c
729
*str_out = str;
arch/um/drivers/vector_kern.c
733
static int vector_config(char *str, char **error_out)
arch/um/drivers/vector_kern.c
739
err = vector_parse(str, &n, ¶ms, error_out);
arch/um/drivers/vector_kern.c
766
static int vector_id(char **str, int *start_out, int *end_out)
arch/um/drivers/vector_kern.c
771
n = simple_strtoul(*str, &end, 0);
arch/um/drivers/vector_kern.c
772
if ((*end != '\0') || (end == *str))
arch/um/drivers/vector_kern.c
777
*str = end;
arch/um/drivers/vfio_kern.c
645
static int uml_vfio_mc_config(char *str, char **error_out)
arch/um/drivers/vfio_kern.c
649
if (*str != '=') {
arch/um/drivers/vfio_kern.c
653
str += 1;
arch/um/drivers/vfio_kern.c
655
dev = uml_vfio_add_device(str);
arch/um/drivers/vfio_kern.c
662
static int uml_vfio_mc_id(char **str, int *start_out, int *end_out)
arch/um/drivers/virtio_uml.c
1427
static int vu_mc_config(char *str, char **error_out)
arch/um/drivers/virtio_uml.c
1429
if (*str != '=') {
arch/um/drivers/virtio_uml.c
1433
str += 1;
arch/um/drivers/virtio_uml.c
1434
return vu_cmdline_set_device(str);
arch/um/drivers/virtio_uml.c
1437
static int vu_mc_id(char **str, int *start_out, int *end_out)
arch/um/drivers/xterm.c
28
static void *xterm_init(char *str, int device, const struct chan_opts *opts)
arch/um/include/shared/init.h
63
const char *str;
arch/um/include/shared/init.h
86
#define __uml_setup(str, fn, help...) \
arch/um/include/shared/init.h
87
__non_empty_string(fn ##_setup, str); \
arch/um/include/shared/init.h
89
static char __uml_setup_str_##fn[] __initdata = str; \
arch/um/include/shared/init.h
92
#define __uml_setup(str, fn, help...) \
arch/um/include/shared/user.h
60
extern int in_aton(char *str);
arch/um/kernel/skas/uaccess.c
209
static int strnlen_chunk(unsigned long str, int len, void *arg)
arch/um/kernel/skas/uaccess.c
213
n = strnlen((void *) str, len);
arch/um/kernel/skas/uaccess.c
221
long strnlen_user(const char __user *str, long len)
arch/um/kernel/skas/uaccess.c
225
if (!access_ok(str, 1))
arch/um/kernel/skas/uaccess.c
227
n = buffer_op((unsigned long) str, len, 0, strnlen_chunk, &count);
arch/um/kernel/time.c
1000
if (!*str) {
arch/um/kernel/time.c
1034
static int setup_time_travel_start(char *str)
arch/um/kernel/time.c
1038
err = kstrtoull(str, 0, &time_travel_start);
arch/um/kernel/time.c
984
static int setup_time_travel(char *str)
arch/um/kernel/time.c
986
if (strcmp(str, "=inf-cpu") == 0) {
arch/um/kernel/time.c
993
if (strncmp(str, "=ext:", 5) == 0) {
arch/um/kernel/time.c
997
return time_travel_connect_external(str + 5);
arch/um/kernel/um_arch.c
212
n = strlen(p->str);
arch/um/kernel/um_arch.c
213
if (!strncmp(line, p->str, n) && p->setup_func(line + n, add))
arch/um/os-Linux/skas/process.c
890
static int __init noreboot_cmd_param(char *str, int *add)
arch/um/os-Linux/start_up.c
79
static void fatal_perror(const char *str)
arch/um/os-Linux/start_up.c
81
perror(str);
arch/um/os-Linux/user_syms.c
35
extern int __sprintf_chk(char *str, int flag, size_t len, const char *format);
arch/um/os-Linux/util.c
165
static int __init quiet_cmd_param(char *str, int *add)
arch/x86/boot/compressed/kaslr.c
109
char *skip_spaces(const char *str)
arch/x86/boot/compressed/kaslr.c
111
while (isspace(*str))
arch/x86/boot/compressed/kaslr.c
112
++str;
arch/x86/boot/compressed/kaslr.c
113
return (char *)str;
arch/x86/boot/compressed/kaslr.c
161
static void mem_avoid_memmap(char *str)
arch/x86/boot/compressed/kaslr.c
168
while (str && (i < MAX_MEMMAP_REGIONS)) {
arch/x86/boot/compressed/kaslr.c
171
char *k = strchr(str, ',');
arch/x86/boot/compressed/kaslr.c
176
rc = parse_memmap(str, &start, &size);
arch/x86/boot/compressed/kaslr.c
179
str = k;
arch/x86/boot/compressed/kaslr.c
195
if ((i >= MAX_MEMMAP_REGIONS) && str)
arch/x86/boot/compressed/misc.c
124
const char *str = s;
arch/x86/boot/compressed/misc.c
125
while (*str) {
arch/x86/boot/compressed/misc.c
126
if (*str == '\n')
arch/x86/boot/compressed/misc.c
128
serial_putchar(*str++);
arch/x86/boot/mkcpustr.c
22
const char *str;
arch/x86/boot/mkcpustr.c
29
str = x86_cap_flags[i*32+j];
arch/x86/boot/mkcpustr.c
35
if (!str)
arch/x86/boot/mkcpustr.c
36
str = "";
arch/x86/boot/mkcpustr.c
38
i, j, str);
arch/x86/boot/mkcpustr.c
39
} else if (str) {
arch/x86/boot/mkcpustr.c
43
i, j, i, j, str);
arch/x86/boot/printf.c
103
*str++ = c;
arch/x86/boot/printf.c
105
*str++ = '0';
arch/x86/boot/printf.c
107
*str++ = tmp[i];
arch/x86/boot/printf.c
109
*str++ = ' ';
arch/x86/boot/printf.c
110
return str;
arch/x86/boot/printf.c
118
char *str;
arch/x86/boot/printf.c
128
for (str = buf; *fmt; ++fmt) {
arch/x86/boot/printf.c
130
*str++ = *fmt;
arch/x86/boot/printf.c
199
*str++ = ' ';
arch/x86/boot/printf.c
200
*str++ = (unsigned char)va_arg(args, int);
arch/x86/boot/printf.c
202
*str++ = ' ';
arch/x86/boot/printf.c
211
*str++ = ' ';
arch/x86/boot/printf.c
213
*str++ = *s++;
arch/x86/boot/printf.c
215
*str++ = ' ';
arch/x86/boot/printf.c
223
str = number(str,
arch/x86/boot/printf.c
231
*ip = (str - buf);
arch/x86/boot/printf.c
234
*ip = (str - buf);
arch/x86/boot/printf.c
239
*str++ = '%';
arch/x86/boot/printf.c
263
*str++ = '%';
arch/x86/boot/printf.c
265
*str++ = *fmt;
arch/x86/boot/printf.c
280
str = number(str, num, base, field_width, precision, flags);
arch/x86/boot/printf.c
282
*str = '\0';
arch/x86/boot/printf.c
283
return str - buf;
arch/x86/boot/printf.c
41
static char *number(char *str, long num, int base, int size, int precision,
arch/x86/boot/printf.c
90
*str++ = ' ';
arch/x86/boot/printf.c
92
*str++ = sign;
arch/x86/boot/printf.c
95
*str++ = '0';
arch/x86/boot/printf.c
97
*str++ = '0';
arch/x86/boot/printf.c
98
*str++ = ('X' | locase);
arch/x86/boot/tty.c
61
void __section(".inittext") puts(const char *str)
arch/x86/boot/tty.c
63
while (*str)
arch/x86/boot/tty.c
64
putchar(*str++);
arch/x86/entry/vsyscall/vsyscall_64.c
53
static int __init vsyscall_setup(char *str)
arch/x86/entry/vsyscall/vsyscall_64.c
55
if (str) {
arch/x86/entry/vsyscall/vsyscall_64.c
56
if (!strcmp("emulate", str))
arch/x86/entry/vsyscall/vsyscall_64.c
58
else if (!strcmp("xonly", str))
arch/x86/entry/vsyscall/vsyscall_64.c
60
else if (!strcmp("none", str))
arch/x86/events/core.c
1942
const char *str, *next_str;
arch/x86/events/core.c
1959
str = pmu_attr->event_str;
arch/x86/events/core.c
1964
next_str = strchr(str, ';');
arch/x86/events/core.c
1966
return snprintf(page, next_str - str + 1, "%s", str);
arch/x86/events/core.c
1968
return sprintf(page, "%s", str);
arch/x86/events/core.c
1970
str = strchr(str, ';');
arch/x86/events/core.c
1971
str++;
arch/x86/events/perf_event.h
1125
#define EVENT_ATTR_STR(_name, v, str) \
arch/x86/events/perf_event.h
1129
.event_str = str, \
arch/x86/events/perf_event.h
1140
#define EVENT_ATTR_STR_HYBRID(_name, v, str, _pmu) \
arch/x86/events/perf_event.h
1144
.event_str = str, \
arch/x86/events/rapl.c
110
#define RAPL_EVENT_ATTR_STR(_name, v, str) \
arch/x86/events/rapl.c
114
.event_str = str, \
arch/x86/include/asm/kdebug.h
36
void die_addr(const char *str, struct pt_regs *regs, long err, long gp_addr);
arch/x86/include/asm/kgdb.h
89
extern int kgdb_ll_trap(int cmd, const char *str,
arch/x86/include/asm/tlb.h
127
enum addr_stride str = stride ? PMD_STRIDE : PTE_STRIDE;
arch/x86/include/asm/tlb.h
130
__invlpgb(0, pcid, addr, nr, str, flags);
arch/x86/include/asm/uaccess.h
490
extern __must_check long strnlen_user(const char __user *str, long n);
arch/x86/include/asm/uv/uv_mmrs.h
94
extern unsigned long uv_undefined(char *str);
arch/x86/include/asm/xen/hypercall.h
445
HYPERVISOR_console_io(int cmd, int count, char *str)
arch/x86/include/asm/xen/hypercall.h
447
return _hypercall3(int, console_io, cmd, count, str);
arch/x86/kernel/acpi/sleep.c
154
static int __init acpi_sleep_setup(char *str)
arch/x86/kernel/acpi/sleep.c
156
while ((str != NULL) && (*str != '\0')) {
arch/x86/kernel/acpi/sleep.c
157
if (strncmp(str, "s3_bios", 7) == 0)
arch/x86/kernel/acpi/sleep.c
159
if (strncmp(str, "s3_mode", 7) == 0)
arch/x86/kernel/acpi/sleep.c
161
if (strncmp(str, "s3_beep", 7) == 0)
arch/x86/kernel/acpi/sleep.c
164
if (strncmp(str, "s4_hwsig", 8) == 0)
arch/x86/kernel/acpi/sleep.c
166
if (strncmp(str, "s4_nohwsig", 10) == 0)
arch/x86/kernel/acpi/sleep.c
169
if (strncmp(str, "nonvs", 5) == 0)
arch/x86/kernel/acpi/sleep.c
171
if (strncmp(str, "nonvs_s3", 8) == 0)
arch/x86/kernel/acpi/sleep.c
173
if (strncmp(str, "old_ordering", 12) == 0)
arch/x86/kernel/acpi/sleep.c
175
if (strncmp(str, "nobl", 4) == 0)
arch/x86/kernel/acpi/sleep.c
177
str = strchr(str, ',');
arch/x86/kernel/acpi/sleep.c
178
if (str != NULL)
arch/x86/kernel/acpi/sleep.c
179
str += strspn(str, ", \t");
arch/x86/kernel/alternative.c
1270
static __init int cfi_parse_cmdline(char *str)
arch/x86/kernel/alternative.c
1272
if (!str)
arch/x86/kernel/alternative.c
1275
while (str) {
arch/x86/kernel/alternative.c
1276
char *next = strchr(str, ',');
arch/x86/kernel/alternative.c
1282
if (!strcmp(str, "auto")) {
arch/x86/kernel/alternative.c
1284
} else if (!strcmp(str, "off")) {
arch/x86/kernel/alternative.c
1287
} else if (!strcmp(str, "debug")) {
arch/x86/kernel/alternative.c
1289
} else if (!strcmp(str, "kcfi")) {
arch/x86/kernel/alternative.c
1291
} else if (!strcmp(str, "fineibt")) {
arch/x86/kernel/alternative.c
1293
} else if (!strcmp(str, "norand")) {
arch/x86/kernel/alternative.c
1295
} else if (!strcmp(str, "warn")) {
arch/x86/kernel/alternative.c
1298
} else if (!strcmp(str, "paranoid")) {
arch/x86/kernel/alternative.c
1304
} else if (!strcmp(str, "bhi")) {
arch/x86/kernel/alternative.c
1315
pr_err("CFI: Ignoring unknown option (%s).", str);
arch/x86/kernel/alternative.c
1318
str = next;
arch/x86/kernel/alternative.c
32
static int __init debug_alt(char *str)
arch/x86/kernel/alternative.c
34
if (str && *str == '=')
arch/x86/kernel/alternative.c
35
str++;
arch/x86/kernel/alternative.c
37
if (!str || kstrtouint(str, 0, &debug_alternative))
arch/x86/kernel/alternative.c
46
static int __init setup_noreplace_smp(char *str)
arch/x86/kernel/amd_node.c
240
static int __init amd_smn_enable_dfs(char *str)
arch/x86/kernel/apic/apic.c
1740
static int __init setup_nox2apic(char *str)
arch/x86/kernel/apic/io_apic.c
191
static int __init parse_noapic(char *str)
arch/x86/kernel/apic/io_apic.c
531
static int __init ioapic_pirq_setup(char *str)
arch/x86/kernel/apic/io_apic.c
535
get_options(str, ARRAY_SIZE(ints), ints);
arch/x86/kernel/apic/ipi.c
17
static __init int apic_ipi_shorthand(char *str)
arch/x86/kernel/apic/ipi.c
19
get_option(&str, &apic_ipi_shorthand_off);
arch/x86/kernel/apic/x2apic_uv_x.c
63
unsigned long uv_undefined(char *str)
arch/x86/kernel/apic/x2apic_uv_x.c
66
panic("UV: error: undefined MMR: %s\n", str);
arch/x86/kernel/apic/x2apic_uv_x.c
68
pr_crit("UV: error: undefined MMR: %s\n", str);
arch/x86/kernel/apm_32.c
1826
static int __init apm_setup(char *str)
arch/x86/kernel/apm_32.c
1830
while ((str != NULL) && (*str != '\0')) {
arch/x86/kernel/apm_32.c
1831
if (strncmp(str, "off", 3) == 0)
arch/x86/kernel/apm_32.c
1833
if (strncmp(str, "on", 2) == 0)
arch/x86/kernel/apm_32.c
1835
if ((strncmp(str, "bounce-interval=", 16) == 0) ||
arch/x86/kernel/apm_32.c
1836
(strncmp(str, "bounce_interval=", 16) == 0))
arch/x86/kernel/apm_32.c
1837
bounce_interval = simple_strtol(str + 16, NULL, 0);
arch/x86/kernel/apm_32.c
1838
if ((strncmp(str, "idle-threshold=", 15) == 0) ||
arch/x86/kernel/apm_32.c
1839
(strncmp(str, "idle_threshold=", 15) == 0))
arch/x86/kernel/apm_32.c
1840
idle_threshold = simple_strtol(str + 15, NULL, 0);
arch/x86/kernel/apm_32.c
1841
if ((strncmp(str, "idle-period=", 12) == 0) ||
arch/x86/kernel/apm_32.c
1842
(strncmp(str, "idle_period=", 12) == 0))
arch/x86/kernel/apm_32.c
1843
idle_period = simple_strtol(str + 12, NULL, 0);
arch/x86/kernel/apm_32.c
1844
invert = (strncmp(str, "no-", 3) == 0) ||
arch/x86/kernel/apm_32.c
1845
(strncmp(str, "no_", 3) == 0);
arch/x86/kernel/apm_32.c
1847
str += 3;
arch/x86/kernel/apm_32.c
1848
if (strncmp(str, "debug", 5) == 0)
arch/x86/kernel/apm_32.c
1850
if ((strncmp(str, "power-off", 9) == 0) ||
arch/x86/kernel/apm_32.c
1851
(strncmp(str, "power_off", 9) == 0))
arch/x86/kernel/apm_32.c
1853
if (strncmp(str, "smp", 3) == 0) {
arch/x86/kernel/apm_32.c
1857
if ((strncmp(str, "allow-ints", 10) == 0) ||
arch/x86/kernel/apm_32.c
1858
(strncmp(str, "allow_ints", 10) == 0))
arch/x86/kernel/apm_32.c
1860
if ((strncmp(str, "broken-psr", 10) == 0) ||
arch/x86/kernel/apm_32.c
1861
(strncmp(str, "broken_psr", 10) == 0))
arch/x86/kernel/apm_32.c
1863
if ((strncmp(str, "realmode-power-off", 18) == 0) ||
arch/x86/kernel/apm_32.c
1864
(strncmp(str, "realmode_power_off", 18) == 0))
arch/x86/kernel/apm_32.c
1866
str = strchr(str, ',');
arch/x86/kernel/apm_32.c
1867
if (str != NULL)
arch/x86/kernel/apm_32.c
1868
str += strspn(str, ", \t");
arch/x86/kernel/apm_32.c
489
static void apm_error(char *str, int err)
arch/x86/kernel/apm_32.c
497
pr_notice("%s: %s\n", str, error_table[i].msg);
arch/x86/kernel/apm_32.c
499
pr_notice("%s: linux error code %i\n", str, err);
arch/x86/kernel/apm_32.c
502
str, err);
arch/x86/kernel/callthunks.c
34
static int __init debug_thunks(char *str)
arch/x86/kernel/cet.c
136
static int __init ibt_setup(char *str)
arch/x86/kernel/cet.c
138
if (!strcmp(str, "off"))
arch/x86/kernel/cet.c
141
if (!strcmp(str, "warn"))
arch/x86/kernel/cpu/amd.c
796
static int __init rdrand_cmdline(char *str)
arch/x86/kernel/cpu/amd.c
798
if (!str)
arch/x86/kernel/cpu/amd.c
801
if (!strcmp(str, "force"))
arch/x86/kernel/cpu/bugs.c
1005
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
1007
else if (!strcmp(str, "force"))
arch/x86/kernel/cpu/bugs.c
1105
static int __init nospectre_v1_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1181
static int __init retbleed_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1183
if (!str)
arch/x86/kernel/cpu/bugs.c
1186
while (str) {
arch/x86/kernel/cpu/bugs.c
1187
char *next = strchr(str, ',');
arch/x86/kernel/cpu/bugs.c
1193
if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/bugs.c
1195
} else if (!strcmp(str, "auto")) {
arch/x86/kernel/cpu/bugs.c
1197
} else if (!strcmp(str, "unret")) {
arch/x86/kernel/cpu/bugs.c
1199
} else if (!strcmp(str, "ibpb")) {
arch/x86/kernel/cpu/bugs.c
1201
} else if (!strcmp(str, "stuff")) {
arch/x86/kernel/cpu/bugs.c
1203
} else if (!strcmp(str, "nosmt")) {
arch/x86/kernel/cpu/bugs.c
1205
} else if (!strcmp(str, "force")) {
arch/x86/kernel/cpu/bugs.c
1208
pr_err("Ignoring unknown retbleed option (%s).", str);
arch/x86/kernel/cpu/bugs.c
1211
str = next;
arch/x86/kernel/cpu/bugs.c
1401
static int __init its_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1403
if (!str)
arch/x86/kernel/cpu/bugs.c
1407
pr_err("Mitigation disabled at compile time, ignoring option (%s)", str);
arch/x86/kernel/cpu/bugs.c
1411
if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/bugs.c
1413
} else if (!strcmp(str, "on")) {
arch/x86/kernel/cpu/bugs.c
1415
} else if (!strcmp(str, "force")) {
arch/x86/kernel/cpu/bugs.c
1418
} else if (!strcmp(str, "vmexit")) {
arch/x86/kernel/cpu/bugs.c
1420
} else if (!strcmp(str, "stuff")) {
arch/x86/kernel/cpu/bugs.c
1423
pr_err("Ignoring unknown indirect_target_selection option (%s).", str);
arch/x86/kernel/cpu/bugs.c
1549
static int __init tsa_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1551
if (!str)
arch/x86/kernel/cpu/bugs.c
1554
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
1556
else if (!strcmp(str, "on"))
arch/x86/kernel/cpu/bugs.c
1558
else if (!strcmp(str, "user"))
arch/x86/kernel/cpu/bugs.c
1560
else if (!strcmp(str, "vm"))
arch/x86/kernel/cpu/bugs.c
1563
pr_err("Ignoring unknown tsa=%s option.\n", str);
arch/x86/kernel/cpu/bugs.c
1723
static int __init spectre_v2_user_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1725
if (!str)
arch/x86/kernel/cpu/bugs.c
1728
if (!strcmp(str, "auto"))
arch/x86/kernel/cpu/bugs.c
1730
else if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
1732
else if (!strcmp(str, "on"))
arch/x86/kernel/cpu/bugs.c
1734
else if (!strcmp(str, "prctl"))
arch/x86/kernel/cpu/bugs.c
1736
else if (!strcmp(str, "prctl,ibpb"))
arch/x86/kernel/cpu/bugs.c
1738
else if (!strcmp(str, "seccomp"))
arch/x86/kernel/cpu/bugs.c
1740
else if (!strcmp(str, "seccomp,ibpb"))
arch/x86/kernel/cpu/bugs.c
1743
pr_err("Ignoring unknown spectre_v2_user option (%s).", str);
arch/x86/kernel/cpu/bugs.c
1896
static int __init nospectre_v2_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1904
static int __init spectre_v2_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
1906
if (!str)
arch/x86/kernel/cpu/bugs.c
1912
if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/bugs.c
1914
} else if (!strcmp(str, "on")) {
arch/x86/kernel/cpu/bugs.c
1918
} else if (!strcmp(str, "retpoline")) {
arch/x86/kernel/cpu/bugs.c
1920
} else if (!strcmp(str, "retpoline,amd") ||
arch/x86/kernel/cpu/bugs.c
1921
!strcmp(str, "retpoline,lfence")) {
arch/x86/kernel/cpu/bugs.c
1923
} else if (!strcmp(str, "retpoline,generic")) {
arch/x86/kernel/cpu/bugs.c
1925
} else if (!strcmp(str, "eibrs")) {
arch/x86/kernel/cpu/bugs.c
1927
} else if (!strcmp(str, "eibrs,lfence")) {
arch/x86/kernel/cpu/bugs.c
1929
} else if (!strcmp(str, "eibrs,retpoline")) {
arch/x86/kernel/cpu/bugs.c
1931
} else if (!strcmp(str, "auto")) {
arch/x86/kernel/cpu/bugs.c
1933
} else if (!strcmp(str, "ibrs")) {
arch/x86/kernel/cpu/bugs.c
1936
pr_err("Ignoring unknown spectre_v2 option (%s).", str);
arch/x86/kernel/cpu/bugs.c
2050
static int __init spectre_bhi_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
2052
if (!str)
arch/x86/kernel/cpu/bugs.c
2055
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
2057
else if (!strcmp(str, "on"))
arch/x86/kernel/cpu/bugs.c
2059
else if (!strcmp(str, "vmexit"))
arch/x86/kernel/cpu/bugs.c
2062
pr_err("Ignoring unknown spectre_bhi option (%s)", str);
arch/x86/kernel/cpu/bugs.c
2391
static int __init nossb_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
2399
static int __init ssb_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
2401
if (!str)
arch/x86/kernel/cpu/bugs.c
2407
if (!strcmp(str, "auto"))
arch/x86/kernel/cpu/bugs.c
2409
else if (!strcmp(str, "on"))
arch/x86/kernel/cpu/bugs.c
2411
else if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
2413
else if (!strcmp(str, "prctl"))
arch/x86/kernel/cpu/bugs.c
2415
else if (!strcmp(str, "seccomp"))
arch/x86/kernel/cpu/bugs.c
2420
str);
arch/x86/kernel/cpu/bugs.c
2832
static int __init l1tf_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
2837
if (!str)
arch/x86/kernel/cpu/bugs.c
2840
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
2842
else if (!strcmp(str, "flush,nowarn"))
arch/x86/kernel/cpu/bugs.c
2844
else if (!strcmp(str, "flush"))
arch/x86/kernel/cpu/bugs.c
2846
else if (!strcmp(str, "flush,nosmt"))
arch/x86/kernel/cpu/bugs.c
2848
else if (!strcmp(str, "full"))
arch/x86/kernel/cpu/bugs.c
2850
else if (!strcmp(str, "full,force"))
arch/x86/kernel/cpu/bugs.c
2872
static int __init srso_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
2874
if (!str)
arch/x86/kernel/cpu/bugs.c
2877
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
2879
else if (!strcmp(str, "microcode"))
arch/x86/kernel/cpu/bugs.c
2881
else if (!strcmp(str, "safe-ret"))
arch/x86/kernel/cpu/bugs.c
2883
else if (!strcmp(str, "ibpb"))
arch/x86/kernel/cpu/bugs.c
2885
else if (!strcmp(str, "ibpb-vmexit"))
arch/x86/kernel/cpu/bugs.c
2888
pr_err("Ignoring unknown SRSO option (%s).", str);
arch/x86/kernel/cpu/bugs.c
3065
static int __init vmscape_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
3067
if (!str)
arch/x86/kernel/cpu/bugs.c
3070
if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/bugs.c
3072
} else if (!strcmp(str, "ibpb")) {
arch/x86/kernel/cpu/bugs.c
3074
} else if (!strcmp(str, "force")) {
arch/x86/kernel/cpu/bugs.c
3078
pr_err("Ignoring unknown vmscape=%s option.\n", str);
arch/x86/kernel/cpu/bugs.c
397
static int __init mds_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
402
if (!str)
arch/x86/kernel/cpu/bugs.c
405
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
407
else if (!strcmp(str, "full"))
arch/x86/kernel/cpu/bugs.c
409
else if (!strcmp(str, "full,nosmt")) {
arch/x86/kernel/cpu/bugs.c
509
static int __init tsx_async_abort_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
514
if (!str)
arch/x86/kernel/cpu/bugs.c
517
if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/bugs.c
519
} else if (!strcmp(str, "full")) {
arch/x86/kernel/cpu/bugs.c
521
} else if (!strcmp(str, "full,nosmt")) {
arch/x86/kernel/cpu/bugs.c
621
static int __init mmio_stale_data_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
626
if (!str)
arch/x86/kernel/cpu/bugs.c
629
if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/bugs.c
631
} else if (!strcmp(str, "full")) {
arch/x86/kernel/cpu/bugs.c
633
} else if (!strcmp(str, "full,nosmt")) {
arch/x86/kernel/cpu/bugs.c
701
static __init int rfds_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
703
if (!str)
arch/x86/kernel/cpu/bugs.c
709
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/bugs.c
711
else if (!strcmp(str, "on"))
arch/x86/kernel/cpu/bugs.c
819
static int __init srbds_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
821
if (!str)
arch/x86/kernel/cpu/bugs.c
827
srbds_off = !strcmp(str, "off");
arch/x86/kernel/cpu/bugs.c
851
static int __init l1d_flush_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
853
if (!strcmp(str, "on"))
arch/x86/kernel/cpu/bugs.c
997
static int __init gds_parse_cmdline(char *str)
arch/x86/kernel/cpu/bugs.c
999
if (!str)
arch/x86/kernel/cpu/common.c
326
static int __init cachesize_setup(char *str)
arch/x86/kernel/cpu/common.c
328
get_option(&str, &cachesize_override);
arch/x86/kernel/cpu/feat_ctl.c
106
static int __init nosgx(char *str)
arch/x86/kernel/cpu/mce/core.c
2356
static int __init mcheck_enable(char *str)
arch/x86/kernel/cpu/mce/core.c
2360
if (*str == 0) {
arch/x86/kernel/cpu/mce/core.c
2364
if (*str == '=')
arch/x86/kernel/cpu/mce/core.c
2365
str++;
arch/x86/kernel/cpu/mce/core.c
2366
if (!strcmp(str, "off"))
arch/x86/kernel/cpu/mce/core.c
2368
else if (!strcmp(str, "no_cmci"))
arch/x86/kernel/cpu/mce/core.c
2370
else if (!strcmp(str, "no_lmce"))
arch/x86/kernel/cpu/mce/core.c
2372
else if (!strcmp(str, "dont_log_ce"))
arch/x86/kernel/cpu/mce/core.c
2374
else if (!strcmp(str, "print_all"))
arch/x86/kernel/cpu/mce/core.c
2376
else if (!strcmp(str, "ignore_ce"))
arch/x86/kernel/cpu/mce/core.c
2378
else if (!strcmp(str, "bootlog") || !strcmp(str, "nobootlog"))
arch/x86/kernel/cpu/mce/core.c
2379
cfg->bootlog = (str[0] == 'b');
arch/x86/kernel/cpu/mce/core.c
2380
else if (!strcmp(str, "bios_cmci_threshold"))
arch/x86/kernel/cpu/mce/core.c
2382
else if (!strcmp(str, "recovery"))
arch/x86/kernel/cpu/mce/core.c
2384
else if (isdigit(str[0]))
arch/x86/kernel/cpu/mce/core.c
2385
get_option(&str, &(cfg->monarch_timeout));
arch/x86/kernel/cpu/mce/core.c
2387
pr_info("mce argument %s ignored. Please use /sys\n", str);
arch/x86/kernel/cpu/mce/core.c
2900
static int __init mcheck_disable(char *str)
arch/x86/kernel/cpu/mtrr/cleanup.c
134
static int __init disable_mtrr_cleanup_setup(char *str)
arch/x86/kernel/cpu/mtrr/cleanup.c
141
static int __init enable_mtrr_cleanup_setup(char *str)
arch/x86/kernel/cpu/mtrr/cleanup.c
790
static int __init disable_mtrr_trim_setup(char *str)
arch/x86/kernel/cpu/mtrr/generic.c
48
static int __init mtrr_param_setup(char *str)
arch/x86/kernel/cpu/mtrr/generic.c
52
if (!str)
arch/x86/kernel/cpu/mtrr/generic.c
54
if (!strcmp(str, "debug"))
arch/x86/kernel/cpu/resctrl/core.c
832
static int __init set_rdt_options(char *str)
arch/x86/kernel/cpu/resctrl/core.c
838
if (*str == '=')
arch/x86/kernel/cpu/resctrl/core.c
839
str++;
arch/x86/kernel/cpu/resctrl/core.c
840
while ((tok = strsep(&str, ",")) != NULL) {
arch/x86/kernel/cpu/topology.c
569
static int __init setup_possible_cpus(char *str)
arch/x86/kernel/cpu/topology.c
571
get_option(&str, &max_possible_cpus);
arch/x86/kernel/cpu/tsx.c
169
static int __init tsx_parse_cmdline(char *str)
arch/x86/kernel/cpu/tsx.c
171
if (!str)
arch/x86/kernel/cpu/tsx.c
174
if (!strcmp(str, "on")) {
arch/x86/kernel/cpu/tsx.c
176
} else if (!strcmp(str, "off")) {
arch/x86/kernel/cpu/tsx.c
178
} else if (!strcmp(str, "auto")) {
arch/x86/kernel/dumpstack.c
412
static void __die_header(const char *str, struct pt_regs *regs, long err)
arch/x86/kernel/dumpstack.c
419
"Oops: %s: %04lx [#%d]%s%s%s%s\n", str, err & 0xffff,
arch/x86/kernel/dumpstack.c
429
static int __die_body(const char *str, struct pt_regs *regs, long err)
arch/x86/kernel/dumpstack.c
434
if (notify_die(DIE_OOPS, str, regs, err,
arch/x86/kernel/dumpstack.c
442
int __die(const char *str, struct pt_regs *regs, long err)
arch/x86/kernel/dumpstack.c
444
__die_header(str, regs, err);
arch/x86/kernel/dumpstack.c
445
return __die_body(str, regs, err);
arch/x86/kernel/dumpstack.c
453
void die(const char *str, struct pt_regs *regs, long err)
arch/x86/kernel/dumpstack.c
458
if (__die(str, regs, err))
arch/x86/kernel/dumpstack.c
463
void die_addr(const char *str, struct pt_regs *regs, long err, long gp_addr)
arch/x86/kernel/dumpstack.c
468
__die_header(str, regs, err);
arch/x86/kernel/dumpstack.c
471
if (__die_body(str, regs, err))
arch/x86/kernel/e820.c
1002
parse_memmap_one(str);
arch/x86/kernel/e820.c
1003
str = k;
arch/x86/kernel/e820.c
994
__init static int parse_memmap_opt(char *str)
arch/x86/kernel/e820.c
996
while (str) {
arch/x86/kernel/e820.c
997
char *k = strchr(str, ',');
arch/x86/kernel/early_printk.c
31
static void early_vga_write(struct console *con, const char *str, unsigned n)
arch/x86/kernel/early_printk.c
36
while ((c = *str++) != '\0' && n-- > 0) {
arch/x86/kernel/hpet.c
103
static int __init hpet_setup(char *str)
arch/x86/kernel/hpet.c
105
while (str) {
arch/x86/kernel/hpet.c
106
char *next = strchr(str, ',');
arch/x86/kernel/hpet.c
110
if (!strncmp("disable", str, 7))
arch/x86/kernel/hpet.c
112
if (!strncmp("force", str, 5))
arch/x86/kernel/hpet.c
114
if (!strncmp("verbose", str, 7))
arch/x86/kernel/hpet.c
116
str = next;
arch/x86/kernel/hpet.c
122
static int __init disable_hpet(char *str)
arch/x86/kernel/kgdb.c
556
int kgdb_ll_trap(int cmd, const char *str,
arch/x86/kernel/kgdb.c
561
.str = str,
arch/x86/kernel/mpparse.c
101
pr_warn("Unknown bustype %s - ignoring\n", str);
arch/x86/kernel/mpparse.c
140
static int __init smp_check_mpc(struct mpc_table *mpc, char *oem, char *str)
arch/x86/kernel/mpparse.c
165
memcpy(str, mpc->productid, 12);
arch/x86/kernel/mpparse.c
166
str[12] = 0;
arch/x86/kernel/mpparse.c
168
pr_info("MPTABLE: Product ID: %s\n", str);
arch/x86/kernel/mpparse.c
191
char str[16];
arch/x86/kernel/mpparse.c
197
if (!smp_check_mpc(mpc, oem, str))
arch/x86/kernel/mpparse.c
67
static void __init mpc_oem_bus_info(struct mpc_bus *m, char *str)
arch/x86/kernel/mpparse.c
69
memcpy(str, m->bustype, 6);
arch/x86/kernel/mpparse.c
70
str[6] = 0;
arch/x86/kernel/mpparse.c
71
apic_pr_verbose("Bus #%d is %s\n", m->busid, str);
arch/x86/kernel/mpparse.c
76
char str[7];
arch/x86/kernel/mpparse.c
78
mpc_oem_bus_info(m, str);
arch/x86/kernel/mpparse.c
800
static int __init update_mptable_setup(char *str)
arch/x86/kernel/mpparse.c
83
m->busid, str, MAX_MP_BUSSES - 1);
arch/x86/kernel/mpparse.c
837
char str[16];
arch/x86/kernel/mpparse.c
871
if (!smp_check_mpc(mpc, oem, str))
arch/x86/kernel/mpparse.c
89
if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) {
arch/x86/kernel/mpparse.c
93
} else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) {
arch/x86/kernel/mpparse.c
97
} else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) {
arch/x86/kernel/nmi.c
97
static int __init setup_unknown_nmi_panic(char *str)
arch/x86/kernel/process.c
1001
if (!strcmp(str, "poll")) {
arch/x86/kernel/process.c
1005
} else if (!strcmp(str, "halt")) {
arch/x86/kernel/process.c
1008
} else if (!strcmp(str, "nomwait")) {
arch/x86/kernel/process.c
996
static int __init idle_setup(char *str)
arch/x86/kernel/process.c
998
if (!str)
arch/x86/kernel/smp.c
275
static int __init nonmi_ipi_setup(char *str)
arch/x86/kernel/smpboot.c
797
static int __init cpu_init_udelay(char *str)
arch/x86/kernel/smpboot.c
799
get_option(&str, &init_udelay);
arch/x86/kernel/sys_x86_64.c
58
static int __init control_va_addr_alignment(char *str)
arch/x86/kernel/sys_x86_64.c
64
if (*str == 0)
arch/x86/kernel/sys_x86_64.c
67
if (!strcmp(str, "32"))
arch/x86/kernel/sys_x86_64.c
69
else if (!strcmp(str, "64"))
arch/x86/kernel/sys_x86_64.c
71
else if (!strcmp(str, "off"))
arch/x86/kernel/sys_x86_64.c
73
else if (!strcmp(str, "on"))
arch/x86/kernel/sys_x86_64.c
76
pr_warn("invalid option value: 'align_va_addr=%s'\n", str);
arch/x86/kernel/traps.c
1428
char *str = (trapnr == X86_TRAP_MF) ? "fpu exception" :
arch/x86/kernel/traps.c
1440
if (notify_die(DIE_TRAP, str, regs, 0, trapnr,
arch/x86/kernel/traps.c
1442
die(str, regs, 0);
arch/x86/kernel/traps.c
279
do_trap_no_signal(struct task_struct *tsk, int trapnr, const char *str,
arch/x86/kernel/traps.c
298
die(str, regs, error_code);
arch/x86/kernel/traps.c
334
do_trap(int trapnr, int signr, char *str, struct pt_regs *regs,
arch/x86/kernel/traps.c
339
if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code))
arch/x86/kernel/traps.c
342
show_signal(tsk, signr, "trap ", str, regs, error_code);
arch/x86/kernel/traps.c
351
static void do_error_trap(struct pt_regs *regs, long error_code, char *str,
arch/x86/kernel/traps.c
356
if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) !=
arch/x86/kernel/traps.c
359
do_trap(trapnr, signr, str, regs, error_code, sicode, addr);
arch/x86/kernel/traps.c
525
char *str = "alignment check";
arch/x86/kernel/traps.c
527
if (notify_die(DIE_TRAP, str, regs, error_code, X86_TRAP_AC, SIGBUS) == NOTIFY_STOP)
arch/x86/kernel/traps.c
598
static const char str[] = "double fault";
arch/x86/kernel/traps.c
663
notify_die(DIE_TRAP, str, regs, error_code, X86_TRAP_DF, SIGSEGV);
arch/x86/kernel/traps.c
884
unsigned long error_code, const char *str,
arch/x86/kernel/traps.c
901
return notify_die(DIE_GPF, str, regs, error_code, trapnr, SIGSEGV) == NOTIFY_STOP;
arch/x86/kernel/traps.c
905
unsigned long error_code, const char *str)
arch/x86/kernel/traps.c
909
show_signal(current, SIGSEGV, "", str, regs, error_code);
arch/x86/kernel/tsc.c
309
int __init notsc_setup(char *str)
arch/x86/kernel/tsc.c
319
int __init notsc_setup(char *str)
arch/x86/kernel/tsc.c
332
static int __init tsc_setup(char *str)
arch/x86/kernel/tsc.c
334
if (!strcmp(str, "reliable"))
arch/x86/kernel/tsc.c
336
if (!strncmp(str, "noirqtime", 9))
arch/x86/kernel/tsc.c
338
if (!strcmp(str, "unstable"))
arch/x86/kernel/tsc.c
340
if (!strcmp(str, "nowatchdog")) {
arch/x86/kernel/tsc.c
347
if (!strcmp(str, "recalibrate"))
arch/x86/kernel/tsc.c
349
if (!strcmp(str, "watchdog")) {
arch/x86/kernel/unwind_orc.c
39
static int __init unwind_debug_cmdline(char *str)
arch/x86/kvm/emulate.c
286
#define __EM_ASM(str) \
arch/x86/kvm/emulate.c
288
"10: " str \
arch/x86/kvm/emulate.c
4058
II(Prot | DstMem, em_str, str),
arch/x86/mm/init_64.c
123
static int __init nonx32_setup(char *str)
arch/x86/mm/init_64.c
125
if (!strcmp(str, "on"))
arch/x86/mm/init_64.c
127
else if (!strcmp(str, "off"))
arch/x86/mm/pat/memtype.c
100
static int __init pat_debug_setup(char *str)
arch/x86/mm/pat/memtype.c
85
static int __init nopat(char *str)
arch/x86/pci/common.c
516
char *__init pcibios_setup(char *str)
arch/x86/pci/common.c
518
if (!strcmp(str, "off")) {
arch/x86/pci/common.c
521
} else if (!strcmp(str, "bfsort")) {
arch/x86/pci/common.c
524
} else if (!strcmp(str, "nobfsort")) {
arch/x86/pci/common.c
529
else if (!strcmp(str, "bios")) {
arch/x86/pci/common.c
532
} else if (!strcmp(str, "nobios")) {
arch/x86/pci/common.c
535
} else if (!strcmp(str, "biosirq")) {
arch/x86/pci/common.c
538
} else if (!strncmp(str, "pirqaddr=", 9)) {
arch/x86/pci/common.c
539
pirq_table_addr = simple_strtoul(str+9, NULL, 0);
arch/x86/pci/common.c
544
else if (!strcmp(str, "conf1")) {
arch/x86/pci/common.c
548
else if (!strcmp(str, "conf2")) {
arch/x86/pci/common.c
554
else if (!strcmp(str, "nommconf")) {
arch/x86/pci/common.c
558
else if (!strcmp(str, "check_enable_amd_mmconf")) {
arch/x86/pci/common.c
563
else if (!strcmp(str, "noacpi")) {
arch/x86/pci/common.c
567
else if (!strcmp(str, "noearly")) {
arch/x86/pci/common.c
571
else if (!strcmp(str, "usepirqmask")) {
arch/x86/pci/common.c
574
} else if (!strncmp(str, "irqmask=", 8)) {
arch/x86/pci/common.c
575
pcibios_irq_mask = simple_strtol(str+8, NULL, 0);
arch/x86/pci/common.c
577
} else if (!strncmp(str, "lastbus=", 8)) {
arch/x86/pci/common.c
578
pcibios_last_bus = simple_strtol(str+8, NULL, 0);
arch/x86/pci/common.c
580
} else if (!strcmp(str, "rom")) {
arch/x86/pci/common.c
583
} else if (!strcmp(str, "norom")) {
arch/x86/pci/common.c
586
} else if (!strcmp(str, "nobar")) {
arch/x86/pci/common.c
589
} else if (!strcmp(str, "assign-busses")) {
arch/x86/pci/common.c
592
} else if (!strcmp(str, "use_crs")) {
arch/x86/pci/common.c
595
} else if (!strcmp(str, "nocrs")) {
arch/x86/pci/common.c
598
} else if (!strcmp(str, "use_e820")) {
arch/x86/pci/common.c
602
} else if (!strcmp(str, "no_e820")) {
arch/x86/pci/common.c
607
} else if (!strcmp(str, "big_root_window")) {
arch/x86/pci/common.c
611
} else if (!strcmp(str, "routeirq")) {
arch/x86/pci/common.c
614
} else if (!strcmp(str, "skip_isa_align")) {
arch/x86/pci/common.c
617
} else if (!strcmp(str, "noioapicquirk")) {
arch/x86/pci/common.c
620
} else if (!strcmp(str, "ioapicreroute")) {
arch/x86/pci/common.c
624
} else if (!strcmp(str, "noioapicreroute")) {
arch/x86/pci/common.c
629
return str;
arch/x86/platform/olpc/olpc.c
35
static int __init olpc_ec_timeout_set(char *str)
arch/x86/platform/olpc/olpc.c
37
if (get_option(&str, &ec_timeout) != 1) {
arch/x86/platform/uv/uv_time.c
324
static int __init uv_enable_evt_rtc(char *str)
arch/x86/virt/svm/cmdline.c
19
static int __init init_sev_config(char *str)
arch/x86/virt/svm/cmdline.c
23
while ((s = strsep(&str, ","))) {
arch/x86/xen/enlighten_pv.c
162
static int __init parse_xen_msr_safe(char *str)
arch/x86/xen/enlighten_pv.c
164
if (str)
arch/x86/xen/enlighten_pv.c
165
return kstrtobool(str, &xen_msr_safe);
arch/xtensa/include/asm/uaccess.h
286
extern long __strnlen_user(const char __user *str, long len);
arch/xtensa/include/asm/uaccess.h
288
static inline long strnlen_user(const char __user *str, long len)
arch/xtensa/include/asm/uaccess.h
290
if (!access_ok(str, 1))
arch/xtensa/include/asm/uaccess.h
292
return __strnlen_user(str, len);
arch/xtensa/kernel/traps.c
174
__die_if_kernel(const char *str, struct pt_regs *regs, long err)
arch/xtensa/kernel/traps.c
177
die(str, regs, err);
arch/xtensa/kernel/traps.c
629
void __noreturn die(const char * str, struct pt_regs * regs, long err)
arch/xtensa/kernel/traps.c
636
pr_info("%s: sig: %ld [#%d]\n", str, err, ++die_counter);
arch/xtensa/mm/init.c
166
static int __init parse_memmap_opt(char *str)
arch/xtensa/mm/init.c
168
while (str) {
arch/xtensa/mm/init.c
169
char *k = strchr(str, ',');
arch/xtensa/mm/init.c
174
parse_memmap_one(str);
arch/xtensa/mm/init.c
175
str = k;
arch/xtensa/platforms/iss/network.c
100
va_start(ap, str);
arch/xtensa/platforms/iss/network.c
102
if (*str == '\0') {
arch/xtensa/platforms/iss/network.c
106
end = strchr(str, ',');
arch/xtensa/platforms/iss/network.c
107
if (end != str)
arch/xtensa/platforms/iss/network.c
108
*arg = str;
arch/xtensa/platforms/iss/network.c
114
str = end;
arch/xtensa/platforms/iss/network.c
117
return str;
arch/xtensa/platforms/iss/network.c
122
static void setup_etheraddr(struct net_device *dev, char *str)
arch/xtensa/platforms/iss/network.c
126
if (str == NULL)
arch/xtensa/platforms/iss/network.c
129
if (!mac_pton(str, addr)) {
arch/xtensa/platforms/iss/network.c
131
dev->name, str);
arch/xtensa/platforms/iss/network.c
574
static int __init iss_net_setup(char *str)
arch/xtensa/platforms/iss/network.c
583
end = strchr(str, '=');
arch/xtensa/platforms/iss/network.c
589
rc = kstrtouint(str, 0, &n);
arch/xtensa/platforms/iss/network.c
592
pr_err("Failed to parse '%s'\n", str);
arch/xtensa/platforms/iss/network.c
595
str = end;
arch/xtensa/platforms/iss/network.c
616
new->init = str + 1;
arch/xtensa/platforms/iss/network.c
95
static char *split_if_spec(char *str, ...)
arch/xtensa/platforms/xtfpga/include/platform/lcd.h
16
void lcd_disp_at_pos(char *str, unsigned char pos);
arch/xtensa/platforms/xtfpga/include/platform/lcd.h
22
static inline void lcd_disp_at_pos(char *str, unsigned char pos)
arch/xtensa/platforms/xtfpga/lcd.c
66
void lcd_disp_at_pos(char *str, unsigned char pos)
arch/xtensa/platforms/xtfpga/lcd.c
70
while (*str != 0) {
arch/xtensa/platforms/xtfpga/lcd.c
71
lcd_put_byte(LCD_DATA_ADDR, *str);
arch/xtensa/platforms/xtfpga/lcd.c
73
str++;
block/bdev.c
1375
static int __init setup_bdev_allow_write_mounted(char *str)
block/bdev.c
1377
if (kstrtobool(str, &bdev_allow_write_mounted))
block/bdev.c
1379
" '%s'\n", str);
block/bfq-iosched.h
1164
static inline void bfq_bfqq_name(struct bfq_queue *bfqq, char *str, int len)
block/bfq-iosched.h
1169
snprintf(str, len, "bfq%d%c", bfqq->pid, type);
block/bfq-iosched.h
1171
snprintf(str, len, "bfqSHARED-%c", type);
block/blk-core.c
500
static int __init setup_fail_make_request(char *str)
block/blk-core.c
502
return setup_fault_attr(&fail_make_request, str);
block/blk-timeout.c
17
static int __init setup_fail_io_timeout(char *str)
block/blk-timeout.c
19
return setup_fault_attr(&fail_io_timeout, str);
block/elevator.c
888
static int __init elevator_setup(char *str)
block/partitions/efi.c
99
force_gpt_fn(char *str)
crypto/asymmetric_keys/restrict.c
27
static int __init ca_keys_setup(char *str)
crypto/asymmetric_keys/restrict.c
29
if (!str) /* default system keyring */
crypto/asymmetric_keys/restrict.c
32
if (strncmp(str, "id:", 3) == 0) {
crypto/asymmetric_keys/restrict.c
34
size_t hexlen = (strlen(str) - 3) / 2;
crypto/asymmetric_keys/restrict.c
42
ret = __asymmetric_key_hex_to_key_id(str + 3, p, hexlen);
crypto/asymmetric_keys/restrict.c
47
} else if (strcmp(str, "builtin") == 0) {
crypto/fips.c
25
static int __init fips_enable(char *str)
crypto/fips.c
27
if (kstrtoint(str, 0, &fips_enabled))
drivers/accel/habanalabs/common/firmware_if.c
108
static char *extract_u32_until_given_char(char *str, u32 *ver_num, char given_char)
drivers/accel/habanalabs/common/firmware_if.c
112
ch = strchrnul(str, given_char);
drivers/accel/habanalabs/common/firmware_if.c
113
if (*ch == '\0' || ch == str || ch - str >= sizeof(num_str))
drivers/accel/habanalabs/common/firmware_if.c
116
memcpy(num_str, str, ch - str);
drivers/accel/habanalabs/common/firmware_if.c
71
char *str, *fw_ver, *whitespace;
drivers/accel/habanalabs/common/firmware_if.c
78
str = strnstr(fw_str, "fw-", VERSION_MAX_LEN);
drivers/accel/habanalabs/common/firmware_if.c
79
if (!str)
drivers/accel/habanalabs/common/firmware_if.c
83
str += 3;
drivers/accel/habanalabs/common/firmware_if.c
84
ver_offset = str - fw_str;
drivers/accel/habanalabs/common/firmware_if.c
87
whitespace = strnstr(str, " ", VERSION_MAX_LEN - ver_offset);
drivers/accel/habanalabs/common/firmware_if.c
91
strscpy(fw_ver, str, whitespace - str + 1);
drivers/accel/habanalabs/common/sysfs.c
260
char *str;
drivers/accel/habanalabs/common/sysfs.c
264
str = "GOYA";
drivers/accel/habanalabs/common/sysfs.c
267
str = "GAUDI";
drivers/accel/habanalabs/common/sysfs.c
270
str = "GAUDI SEC";
drivers/accel/habanalabs/common/sysfs.c
273
str = "GAUDI2";
drivers/accel/habanalabs/common/sysfs.c
276
str = "GAUDI2B";
drivers/accel/habanalabs/common/sysfs.c
279
str = "GAUDI2C";
drivers/accel/habanalabs/common/sysfs.c
282
str = "GAUDI2D";
drivers/accel/habanalabs/common/sysfs.c
290
return sprintf(buf, "%s\n", str);
drivers/accel/habanalabs/common/sysfs.c
309
char str[HL_STR_MAX];
drivers/accel/habanalabs/common/sysfs.c
311
strscpy(str, hdev->status[hl_device_status(hdev)], HL_STR_MAX);
drivers/accel/habanalabs/common/sysfs.c
314
str[0] = 'A' + (str[0] - 'a');
drivers/accel/habanalabs/common/sysfs.c
316
return sprintf(buf, "%s\n", str);
drivers/accel/ivpu/ivpu_fw.c
105
str, major, minor, min_major);
drivers/accel/ivpu/ivpu_fw.c
110
str, major, minor, expected_major, expected_minor);
drivers/accel/ivpu/ivpu_fw.c
113
str, major, minor, expected_major, expected_minor);
drivers/accel/ivpu/ivpu_fw.c
120
const char *str, int index, u16 major, u16 minor)
drivers/accel/ivpu/ivpu_fw.c
97
const char *str, int index, u16 expected_major, u16 expected_minor,
drivers/accel/ivpu/ivpu_mmu.c
644
u64 str[2];
drivers/accel/ivpu/ivpu_mmu.c
646
str[0] = FIELD_PREP(IVPU_MMU_STE_0_CFG, IVPU_MMU_STE_0_CFG_S1_TRANS) |
drivers/accel/ivpu/ivpu_mmu.c
652
str[1] = FIELD_PREP(IVPU_MMU_STE_1_S1DSS, IVPU_MMU_STE_1_S1DSS_TERMINATE) |
drivers/accel/ivpu/ivpu_mmu.c
663
WRITE_ONCE(entry[1], str[1]);
drivers/accel/ivpu/ivpu_mmu.c
664
WRITE_ONCE(entry[0], str[0]);
drivers/accel/ivpu/ivpu_mmu.c
669
ivpu_dbg(vdev, MMU, "STRTAB write entry (SSID=%u): 0x%llx, 0x%llx\n", sid, str[0], str[1]);
drivers/accel/qaic/qaic_debugfs.c
185
unsigned int len = strlen(msg->str) + 1;
drivers/accel/qaic/qaic_debugfs.c
275
msg->str[mhi_result->bytes_xferd - 1] = 0;
drivers/accel/qaic/qaic_debugfs.c
29
char str[BOOTLOG_MSG_SIZE];
drivers/accessibility/speakup/main.c
1762
static void speakup_con_write(struct vc_data *vc, u16 *str, int len)
drivers/accessibility/speakup/main.c
1775
update_color_buffer(vc, str, len);
drivers/accessibility/speakup/main.c
1787
spkup_write(str, len);
drivers/acpi/acpi_configfs.c
106
return sysfs_emit(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->signature);
drivers/acpi/acpi_configfs.c
109
static ssize_t acpi_table_length_show(struct config_item *cfg, char *str)
drivers/acpi/acpi_configfs.c
116
return sysfs_emit(str, "%d\n", h->length);
drivers/acpi/acpi_configfs.c
119
static ssize_t acpi_table_revision_show(struct config_item *cfg, char *str)
drivers/acpi/acpi_configfs.c
126
return sysfs_emit(str, "%d\n", h->revision);
drivers/acpi/acpi_configfs.c
129
static ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str)
drivers/acpi/acpi_configfs.c
136
return sysfs_emit(str, "%.*s\n", ACPI_OEM_ID_SIZE, h->oem_id);
drivers/acpi/acpi_configfs.c
139
static ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str)
drivers/acpi/acpi_configfs.c
146
return sysfs_emit(str, "%.*s\n", ACPI_OEM_TABLE_ID_SIZE, h->oem_table_id);
drivers/acpi/acpi_configfs.c
149
static ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str)
drivers/acpi/acpi_configfs.c
156
return sysfs_emit(str, "%d\n", h->oem_revision);
drivers/acpi/acpi_configfs.c
160
char *str)
drivers/acpi/acpi_configfs.c
167
return sysfs_emit(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->asl_compiler_id);
drivers/acpi/acpi_configfs.c
171
char *str)
drivers/acpi/acpi_configfs.c
178
return sysfs_emit(str, "%d\n", h->asl_compiler_revision);
drivers/acpi/acpi_configfs.c
99
static ssize_t acpi_table_signature_show(struct config_item *cfg, char *str)
drivers/acpi/acpi_memhotplug.c
353
static int __init disable_acpi_memory_hotplug(char *str)
drivers/acpi/acpi_tad.c
170
char *str, *s;
drivers/acpi/acpi_tad.c
173
str = kmemdup_nul(buf, count, GFP_KERNEL);
drivers/acpi/acpi_tad.c
174
if (!str)
drivers/acpi/acpi_tad.c
177
s = acpi_tad_rt_next_field(str, &val);
drivers/acpi/acpi_tad.c
231
kfree(str);
drivers/acpi/acpi_watchdog.c
95
static int __init disable_acpi_watchdog(char *str)
drivers/acpi/apei/bert.c
99
static int __init setup_bert_disable(char *str)
drivers/acpi/apei/einj-core.c
801
static struct { u32 mask; const char *str; } const einj_error_type_string[] = {
drivers/acpi/apei/einj-core.c
817
static struct { u32 mask; const char *str; } const einjv2_error_type_string[] = {
drivers/acpi/apei/einj-core.c
829
einj_error_type_string[pos].str);
drivers/acpi/apei/einj-core.c
834
einjv2_error_type_string[pos].str);
drivers/acpi/apei/einj-cxl.c
19
static struct { u32 mask; const char *str; } const einj_cxl_error_type_string[] = {
drivers/acpi/apei/einj-cxl.c
43
einj_cxl_error_type_string[pos].str);
drivers/acpi/apei/erst.c
992
static int __init setup_erst_disable(char *str)
drivers/acpi/apei/hest.c
275
static int __init setup_hest_disable(char *str)
drivers/acpi/bus.c
875
const char *str, *chr;
drivers/acpi/bus.c
886
str = obj->string.pointer;
drivers/acpi/bus.c
887
chr = strchr(str, ',');
drivers/acpi/bus.c
888
strscpy(modalias, chr ? chr + 1 : str, len);
drivers/acpi/internal.h
57
int acpi_rev_override_setup(char *str);
drivers/acpi/osi.c
107
if (!strcmp(osi->string, str)) {
drivers/acpi/osi.c
112
strscpy(osi->string, str, OSI_STRING_LENGTH_MAX);
drivers/acpi/osi.c
194
char *str;
drivers/acpi/osi.c
209
str = osi->string;
drivers/acpi/osi.c
210
if (*str == '\0')
drivers/acpi/osi.c
213
status = acpi_install_interface(str);
drivers/acpi/osi.c
215
pr_info("Added _OSI(%s)\n", str);
drivers/acpi/osi.c
217
status = acpi_remove_interface(str);
drivers/acpi/osi.c
219
pr_info("Deleted _OSI(%s)\n", str);
drivers/acpi/osi.c
224
static int __init osi_setup(char *str)
drivers/acpi/osi.c
226
if (str && !strcmp("Linux", str))
drivers/acpi/osi.c
228
else if (str && !strcmp("!Linux", str))
drivers/acpi/osi.c
230
else if (str && !strcmp("Darwin", str))
drivers/acpi/osi.c
232
else if (str && !strcmp("!Darwin", str))
drivers/acpi/osi.c
235
acpi_osi_setup(str);
drivers/acpi/osi.c
68
void __init acpi_osi_setup(char *str)
drivers/acpi/osi.c
77
if (str == NULL || *str == '\0') {
drivers/acpi/osi.c
83
if (*str == '!') {
drivers/acpi/osi.c
84
str++;
drivers/acpi/osi.c
85
if (*str == '\0') {
drivers/acpi/osi.c
91
} else if (*str == '*') {
drivers/acpi/osi.c
98
} else if (*str == '!') {
drivers/acpi/osl.c
1405
static int __init acpi_os_name_setup(char *str)
drivers/acpi/osl.c
1410
if (!str || !*str)
drivers/acpi/osl.c
1413
for (; count-- && *str; str++) {
drivers/acpi/osl.c
1414
if (isalnum(*str) || *str == ' ' || *str == ':')
drivers/acpi/osl.c
1415
*p++ = *str;
drivers/acpi/osl.c
1416
else if (*str == '\'' || *str == '"')
drivers/acpi/osl.c
1435
static int __init acpi_no_auto_serialize_setup(char *str)
drivers/acpi/osl.c
1467
static int __init acpi_enforce_resources_setup(char *str)
drivers/acpi/osl.c
1469
if (str == NULL || *str == '\0')
drivers/acpi/osl.c
1472
if (!strcmp("strict", str))
drivers/acpi/osl.c
1474
else if (!strcmp("lax", str))
drivers/acpi/osl.c
1476
else if (!strcmp("no", str))
drivers/acpi/osl.c
510
int __init acpi_rev_override_setup(char *str)
drivers/acpi/pci_link.c
800
static int __init acpi_irq_penalty_update(char *str, int used)
drivers/acpi/pci_link.c
809
retval = get_option(&str, &irq);
drivers/acpi/pci_link.c
867
static int __init acpi_irq_isa(char *str)
drivers/acpi/pci_link.c
869
return acpi_irq_penalty_update(str, 1);
drivers/acpi/pci_link.c
879
static int __init acpi_irq_pci(char *str)
drivers/acpi/pci_link.c
881
return acpi_irq_penalty_update(str, 0);
drivers/acpi/pci_link.c
886
static int __init acpi_irq_nobalance_set(char *str)
drivers/acpi/pci_link.c
894
static int __init acpi_irq_balance_set(char *str)
drivers/acpi/proc.c
102
sscanf(strbuf, "%s", str);
drivers/acpi/proc.c
110
if (!strncmp(dev->pnp.bus_id, str, 4)) {
drivers/acpi/proc.c
94
char str[5] = "";
drivers/acpi/property.c
1444
const char *str)
drivers/acpi/property.c
1446
unsigned int len = strlen(str);
drivers/acpi/property.c
1455
!strncmp(name, str, len) && name[len] == '@') ||
drivers/acpi/property.c
1456
fwnode_property_present(fwnode, str);
drivers/acpi/tables.c
770
static int __init acpi_parse_apic_instance(char *str)
drivers/acpi/tables.c
772
if (!str)
drivers/acpi/tables.c
775
if (kstrtoint(str, 0, &acpi_apic_instance))
drivers/acpi/thermal.c
60
#define ACPI_THERMAL_TRIPS_EXCEPTION(tz, str) \
drivers/acpi/thermal.c
64
"Please report to linux-acpi@vger.kernel.org\n", str); \
drivers/acpi/utils.c
1042
static int __init acpi_backlight(char *str)
drivers/acpi/utils.c
1044
strscpy(acpi_video_backlight_string, str,
drivers/ata/ahci.c
731
char *param, *end, *str, *mask_s;
drivers/ata/ahci.c
738
str = kstrdup(mask_p, GFP_KERNEL);
drivers/ata/ahci.c
739
if (!str)
drivers/ata/ahci.c
743
if (!strchr(str, '=')) {
drivers/ata/ahci.c
744
mask = ahci_port_mask(dev, str);
drivers/ata/ahci.c
752
param = str;
drivers/ata/ahci.c
783
kfree(str);
drivers/ata/libata-core.c
4050
char *str;
drivers/ata/libata-core.c
4061
str = kmalloc(sz, GFP_KERNEL);
drivers/ata/libata-core.c
4062
if (!str)
drivers/ata/libata-core.c
4065
n = snprintf(str, sz, "Model '%s', rev '%s', applying quirks:",
drivers/ata/libata-core.c
4070
n += snprintf(str + n, sz - n,
drivers/ata/libata-core.c
4074
ata_dev_warn(dev, "%s\n", str);
drivers/ata/libata-core.c
4076
kfree(str);
drivers/atm/fore200e.c
149
static char str[8];
drivers/atm/fore200e.c
150
sprintf(str, "%d", irq);
drivers/atm/fore200e.c
151
return str;
drivers/atm/fore200e.c
2373
static void fore200e_monitor_puts(struct fore200e *fore200e, char *str)
drivers/atm/fore200e.c
2375
while (*str) {
drivers/atm/fore200e.c
2380
fore200e_monitor_putc(fore200e, *str++);
drivers/atm/solos-pci.c
341
char *str, *state_str, *snr, *attn;
drivers/atm/solos-pci.c
347
str = next_string(skb);
drivers/atm/solos-pci.c
348
if (!str)
drivers/atm/solos-pci.c
351
err = kstrtoint(str, 10, &ver);
drivers/atm/solos-pci.c
362
str = next_string(skb);
drivers/atm/solos-pci.c
363
if (!str)
drivers/atm/solos-pci.c
365
if (!strcmp(str, "ERROR")) {
drivers/atm/solos-pci.c
371
err = kstrtoint(str, 10, &rate_down);
drivers/atm/solos-pci.c
375
str = next_string(skb);
drivers/atm/solos-pci.c
376
if (!str)
drivers/atm/solos-pci.c
378
err = kstrtoint(str, 10, &rate_up);
drivers/auxdisplay/arm-charlcd.c
197
static void charlcd_4bit_print(struct charlcd *lcd, int line, const char *str)
drivers/auxdisplay/arm-charlcd.c
218
for (i = 0; i < strlen(str) && i < 0x28; i++)
drivers/auxdisplay/arm-charlcd.c
219
charlcd_4bit_char(lcd, str[i]);
drivers/base/class.c
556
return sysfs_emit(buf, "%s\n", cs->str);
drivers/base/dd.c
266
static int __init deferred_probe_timeout_setup(char *str)
drivers/base/dd.c
270
if (!kstrtoint(str, 10, &timeout))
drivers/base/devtmpfs.c
57
static int __init mount_param(char *str)
drivers/base/devtmpfs.c
59
return kstrtoint(str, 0, &mount_dev) == 0;
drivers/base/memory.c
39
int mhp_online_type_from_str(const char *str)
drivers/base/memory.c
44
if (sysfs_streq(str, online_type_to_str[i]))
drivers/base/test/property-entry-test.c
267
const char *str;
drivers/base/test/property-entry-test.c
274
error = fwnode_property_read_string(node, "str", &str);
drivers/base/test/property-entry-test.c
276
KUNIT_EXPECT_STREQ(test, str, "single");
drivers/base/test/property-entry-test.c
290
error = fwnode_property_read_string(node, "no-str", &str);
drivers/base/test/property-entry-test.c
296
error = fwnode_property_read_string(node, "empty", &str);
drivers/base/test/property-entry-test.c
298
KUNIT_EXPECT_STREQ(test, str, "");
drivers/base/test/property-entry-test.c
317
error = fwnode_property_read_string(node, "strs", &str);
drivers/base/test/property-entry-test.c
319
KUNIT_EXPECT_STREQ(test, str, "string-a");
drivers/base/test/property-entry-test.c
392
KUNIT_EXPECT_STREQ(test, copy[0].value.str[0], "a");
drivers/base/test/property-entry-test.c
400
KUNIT_EXPECT_STREQ(test, copy[2].value.str[0], "");
drivers/block/amiflop.c
1950
static int __init amiga_floppy_setup (char *str)
drivers/block/amiflop.c
1955
if (!get_option(&str, &n))
drivers/block/aoe/aoe.h
239
int aoedev_flush(const char __user *str, size_t size);
drivers/block/aoe/aoe.h
247
int set_aoe_iflist(const char __user *str, size_t size);
drivers/block/aoe/aoechr.c
101
if (copy_from_user(buf, str, size))
drivers/block/aoe/aoechr.c
79
interfaces(const char __user *str, size_t size)
drivers/block/aoe/aoechr.c
81
if (set_aoe_iflist(str, size)) {
drivers/block/aoe/aoechr.c
90
revalidate(const char __user *str, size_t size)
drivers/block/aoe/aoedev.c
315
flush(const char __user *str, size_t cnt, int exiting)
drivers/block/aoe/aoedev.c
329
if (copy_from_user(buf, str, cnt))
drivers/block/aoe/aoedev.c
405
aoedev_flush(const char __user *str, size_t cnt)
drivers/block/aoe/aoedev.c
407
return flush(str, cnt, NOT_EXITING);
drivers/block/aoe/aoenet.c
40
static int __init aoe_iflist_setup(char *str)
drivers/block/aoe/aoenet.c
42
strscpy(aoe_iflist, str, IFLISTSZ);
drivers/block/ataflop.c
2156
static int __init atari_floppy_setup(char *str)
drivers/block/ataflop.c
2164
str = get_options(str, 3 + FD_MAX_UNITS, ints);
drivers/block/brd.c
248
static int __init ramdisk_size(char *str)
drivers/block/brd.c
250
return kstrtoul(str, 0, &rd_size) == 0;
drivers/block/floppy.c
4406
static int __init floppy_setup(char *str)
drivers/block/floppy.c
4412
str = get_options(str, ARRAY_SIZE(ints), ints);
drivers/block/floppy.c
4413
if (str) {
drivers/block/floppy.c
4415
if (strcmp(str, config_params[i].name) == 0) {
drivers/block/floppy.c
4425
DPRINT("%s=%d\n", str, param);
drivers/block/floppy.c
4432
if (str) {
drivers/block/floppy.c
4433
DPRINT("unknown floppy option [%s]\n", str);
drivers/block/loop.c
2323
static int __init max_loop_setup(char *str)
drivers/block/loop.c
2325
max_loop = simple_strtol(str, NULL, 0);
drivers/block/null_blk/main.c
132
static int null_param_store_val(const char *str, int *val, int min, int max)
drivers/block/null_blk/main.c
136
ret = kstrtoint(str, 10, &new_val);
drivers/block/null_blk/main.c
147
static int null_set_queue_mode(const char *str, const struct kernel_param *kp)
drivers/block/null_blk/main.c
149
return null_param_store_val(str, &g_queue_mode, NULL_Q_BIO, NULL_Q_MQ);
drivers/block/null_blk/main.c
190
static int null_set_irqmode(const char *str, const struct kernel_param *kp)
drivers/block/null_blk/main.c
192
return null_param_store_val(str, &g_irqmode, NULL_IRQ_NONE,
drivers/block/null_blk/main.c
1929
static bool __null_setup_fault(struct fault_attr *attr, char *str)
drivers/block/null_blk/main.c
1931
if (!str[0])
drivers/block/null_blk/main.c
1934
if (!setup_fault_attr(attr, str))
drivers/block/rnbd/rnbd-clt-sysfs.c
283
return sysfs_emit(page, "%s\n", rnbd_access_modes[dev->access_mode].str);
drivers/block/rnbd/rnbd-clt-sysfs.c
609
rnbd_access_modes[access_mode].str,
drivers/block/rnbd/rnbd-proto.h
67
const char *str;
drivers/block/rnbd/rnbd-srv-sysfs.c
107
rnbd_access_modes[sess_dev->access_mode].str);
drivers/block/rnbd/rnbd-srv.c
498
rnbd_access_modes[access_mode].str);
drivers/block/rnbd/rnbd-srv.c
509
rnbd_access_modes[access_mode].str);
drivers/bluetooth/btintel.c
3277
const char *str;
drivers/bluetooth/btintel.c
3303
str = "Success";
drivers/bluetooth/btintel.c
3306
str = "Fatal error";
drivers/bluetooth/btintel.c
3309
str = "Semaphore acquire error";
drivers/bluetooth/btintel.c
3312
str = "Unknown error";
drivers/bluetooth/btintel.c
3317
bt_dev_err(hdev, "Fseq status: %s (0x%2.2x)", str, *p);
drivers/bluetooth/btintel.c
3322
bt_dev_info(hdev, "Fseq status: %s (0x%2.2x)", str, *p);
drivers/bluetooth/hci_bcm4377.c
2002
static int bcm4377_parse_otp_str(struct bcm4377_data *bcm4377, const u8 *str,
drivers/bluetooth/hci_bcm4377.c
2008
p = skip_spaces(str);
drivers/char/apm-emulation.c
678
static int __init apm_setup(char *str)
drivers/char/apm-emulation.c
680
while ((str != NULL) && (*str != '\0')) {
drivers/char/apm-emulation.c
681
if (strncmp(str, "off", 3) == 0)
drivers/char/apm-emulation.c
683
if (strncmp(str, "on", 2) == 0)
drivers/char/apm-emulation.c
685
str = strchr(str, ',');
drivers/char/apm-emulation.c
686
if (str != NULL)
drivers/char/apm-emulation.c
687
str += strspn(str, ", \t");
drivers/char/dtlk.c
70
#define TRACE_TEXT(str) printk(str);
drivers/char/dtlk.c
73
#define TRACE_TEXT(str) ((void) 0)
drivers/char/hangcheck-timer.c
100
if (get_option(&str, &par))
drivers/char/hangcheck-timer.c
69
static int __init hangcheck_parse_tick(char *str)
drivers/char/hangcheck-timer.c
73
if (get_option(&str, &par))
drivers/char/hangcheck-timer.c
78
static int __init hangcheck_parse_margin(char *str)
drivers/char/hangcheck-timer.c
82
if (get_option(&str, &par))
drivers/char/hangcheck-timer.c
87
static int __init hangcheck_parse_reboot(char *str)
drivers/char/hangcheck-timer.c
91
if (get_option(&str, &par))
drivers/char/hangcheck-timer.c
96
static int __init hangcheck_parse_dump_tasks(char *str)
drivers/char/hpet.c
349
static __init int hpet_mmap_enable(char *str)
drivers/char/hpet.c
351
get_option(&str, &hpet_mmap_enabled);
drivers/char/ipmi/ipmi_msghandler.c
5393
static void send_panic_events(struct ipmi_smi *intf, char *str)
drivers/char/ipmi/ipmi_msghandler.c
5399
char *p = str;
drivers/char/ipmi/ipmi_msghandler.c
5426
if (str) {
drivers/char/ipmi/ipmi_msghandler.c
5427
data[3] = str[0];
drivers/char/ipmi/ipmi_msghandler.c
5428
data[6] = str[1];
drivers/char/ipmi/ipmi_msghandler.c
5429
data[7] = str[2];
drivers/char/ipmi/ipmi_msghandler.c
5439
if (ipmi_send_panic_event != IPMI_SEND_PANIC_EVENT_STRING || !str)
drivers/char/ipmi/ipmi_si_hardcode.c
102
str = si_type_str;
drivers/char/ipmi/ipmi_si_hardcode.c
103
if (*str != '\0') {
drivers/char/ipmi/ipmi_si_hardcode.c
104
for (i = 0; (i < SI_MAX_PARMS) && (*str != '\0'); i++) {
drivers/char/ipmi/ipmi_si_hardcode.c
105
si_type[i] = str;
drivers/char/ipmi/ipmi_si_hardcode.c
106
str = strchr(str, ',');
drivers/char/ipmi/ipmi_si_hardcode.c
107
if (str) {
drivers/char/ipmi/ipmi_si_hardcode.c
108
*str = '\0';
drivers/char/ipmi/ipmi_si_hardcode.c
109
str++;
drivers/char/ipmi/ipmi_si_hardcode.c
96
char *str;
drivers/char/ipmi/ipmi_si_hotmod.c
189
char *str, *curr, *next;
drivers/char/ipmi/ipmi_si_hotmod.c
191
str = kstrdup(val, GFP_KERNEL);
drivers/char/ipmi/ipmi_si_hotmod.c
192
if (!str)
drivers/char/ipmi/ipmi_si_hotmod.c
196
for (curr = strstrip(str); curr; curr = next) {
drivers/char/ipmi/ipmi_si_hotmod.c
230
kfree(str);
drivers/char/ipmi/kcs_bmc.c
39
return kcs_bmc->ops->io_inputb(kcs_bmc, kcs_bmc->ioreg.str);
drivers/char/ipmi/kcs_bmc.c
45
kcs_bmc->ops->io_outputb(kcs_bmc, kcs_bmc->ioreg.str, data);
drivers/char/ipmi/kcs_bmc.c
51
kcs_bmc->ops->io_updateb(kcs_bmc, kcs_bmc->ioreg.str, mask, val);
drivers/char/ipmi/kcs_bmc.h
26
u32 str;
drivers/char/ipmi/kcs_bmc_aspeed.c
386
u8 str;
drivers/char/ipmi/kcs_bmc_aspeed.c
394
str = aspeed_kcs_inb(&priv->kcs_bmc, priv->kcs_bmc.ioreg.str);
drivers/char/ipmi/kcs_bmc_aspeed.c
395
if (str & KCS_BMC_STR_OBF) {
drivers/char/ipmi/kcs_bmc_aspeed.c
409
u8 str;
drivers/char/ipmi/kcs_bmc_aspeed.c
424
rc = read_poll_timeout_atomic(aspeed_kcs_inb, str,
drivers/char/ipmi/kcs_bmc_aspeed.c
425
!(str & KCS_BMC_STR_OBF), 1, 100, false,
drivers/char/ipmi/kcs_bmc_aspeed.c
426
&priv->kcs_bmc, priv->kcs_bmc.ioreg.str);
drivers/char/ipmi/kcs_bmc_aspeed.c
491
{ .idr = LPC_IDR1, .odr = LPC_ODR1, .str = LPC_STR1 },
drivers/char/ipmi/kcs_bmc_aspeed.c
492
{ .idr = LPC_IDR2, .odr = LPC_ODR2, .str = LPC_STR2 },
drivers/char/ipmi/kcs_bmc_aspeed.c
493
{ .idr = LPC_IDR3, .odr = LPC_ODR3, .str = LPC_STR3 },
drivers/char/ipmi/kcs_bmc_aspeed.c
494
{ .idr = LPC_IDR4, .odr = LPC_ODR4, .str = LPC_STR4 },
drivers/char/ipmi/kcs_bmc_aspeed.c
520
ioreg.str = be32_to_cpup(reg);
drivers/char/ipmi/kcs_bmc_npcm7xx.c
196
kcs_bmc->ioreg.str = priv->reg->sts;
drivers/char/ipmi/kcs_bmc_npcm7xx.c
216
kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str);
drivers/char/lp.c
886
static int __init lp_setup(char *str)
drivers/char/lp.c
891
if (get_option(&str, &x)) {
drivers/char/lp.c
899
} else if (!strncmp(str, "parport", 7)) {
drivers/char/lp.c
900
int n = simple_strtoul(str+7, NULL, 10);
drivers/char/lp.c
905
str);
drivers/char/lp.c
906
} else if (!strcmp(str, "auto")) {
drivers/char/lp.c
908
} else if (!strcmp(str, "none")) {
drivers/char/lp.c
913
str);
drivers/char/lp.c
914
} else if (!strcmp(str, "reset")) {
drivers/char/misc_minor_kunit.c
42
const char *str;
drivers/char/misc_minor_kunit.c
48
.str = "lower static range, top",
drivers/char/misc_minor_kunit.c
52
.str = "upper static range, bottom",
drivers/char/misc_minor_kunit.c
56
.str = "lower static range, bottom",
drivers/char/misc_minor_kunit.c
60
.str = "upper static range, top",
drivers/char/misc_minor_kunit.c
65
KUNIT_ARRAY_PARAM_DESC(miscdev, miscdev_test_ranges, str);
drivers/char/tpm/tpm-sysfs.c
104
str = buf;
drivers/char/tpm/tpm-sysfs.c
107
str += sprintf(str, "PCR-%02d: ", i);
drivers/char/tpm/tpm-sysfs.c
109
str += sprintf(str, "%02X ", digest[j]);
drivers/char/tpm/tpm-sysfs.c
110
str += sprintf(str, "\n");
drivers/char/tpm/tpm-sysfs.c
113
return str - buf;
drivers/char/tpm/tpm-sysfs.c
211
char *str = buf;
drivers/char/tpm/tpm-sysfs.c
222
str += sprintf(str, "Manufacturer: 0x%x\n",
drivers/char/tpm/tpm-sysfs.c
243
str += sprintf(str,
drivers/char/tpm/tpm-sysfs.c
248
rc = str - buf;
drivers/char/tpm/tpm-sysfs.c
376
char *str = buf;
drivers/char/tpm/tpm-sysfs.c
38
char *str = buf;
drivers/char/tpm/tpm-sysfs.c
390
str += sprintf(str, "%02X", digest.digest[i]);
drivers/char/tpm/tpm-sysfs.c
391
str += sprintf(str, "\n");
drivers/char/tpm/tpm-sysfs.c
393
return str - buf;
drivers/char/tpm/tpm-sysfs.c
57
str +=
drivers/char/tpm/tpm-sysfs.c
58
sprintf(str,
drivers/char/tpm/tpm-sysfs.c
72
str += sprintf(str, "%16ph\n", &out->modulus[i]);
drivers/char/tpm/tpm-sysfs.c
78
return str - buf;
drivers/char/tpm/tpm-sysfs.c
88
char *str = buf;
drivers/char/tpm/tpm2-sessions.c
466
static void tpm2_KDFe(u8 z[EC_PT_SZ], const char *str, u8 *pt_u, u8 *pt_v,
drivers/char/tpm/tpm2-sessions.c
483
sha256_update(&sctx, str, strlen(str)+1);
drivers/clk/imx/clk.c
163
static int __init imx_keep_uart_clocks_param(char *str)
drivers/cpufreq/amd-pstate.c
184
static inline int get_mode_idx_from_str(const char *str, size_t size)
drivers/cpufreq/amd-pstate.c
1867
static int __init amd_pstate_param(char *str)
drivers/cpufreq/amd-pstate.c
1872
if (!str)
drivers/cpufreq/amd-pstate.c
1875
size = strlen(str);
drivers/cpufreq/amd-pstate.c
1876
mode_idx = get_mode_idx_from_str(str, size);
drivers/cpufreq/amd-pstate.c
1881
static int __init amd_prefcore_param(char *str)
drivers/cpufreq/amd-pstate.c
1883
if (!strcmp(str, "disable"))
drivers/cpufreq/amd-pstate.c
189
if (!strncmp(str, amd_pstate_mode_string[i], size))
drivers/cpufreq/elanfreq.c
179
static int __init elanfreq_setup(char *str)
drivers/cpufreq/elanfreq.c
181
max_freq = simple_strtoul(str, &str, 0);
drivers/cpufreq/intel_pstate.c
3912
static int __init intel_pstate_setup(char *str)
drivers/cpufreq/intel_pstate.c
3914
if (!str)
drivers/cpufreq/intel_pstate.c
3917
if (!strcmp(str, "disable"))
drivers/cpufreq/intel_pstate.c
3919
else if (!strcmp(str, "active"))
drivers/cpufreq/intel_pstate.c
3921
else if (!strcmp(str, "passive"))
drivers/cpufreq/intel_pstate.c
3924
if (!strcmp(str, "no_hwp"))
drivers/cpufreq/intel_pstate.c
3927
if (!strcmp(str, "no_cas"))
drivers/cpufreq/intel_pstate.c
3930
if (!strcmp(str, "force"))
drivers/cpufreq/intel_pstate.c
3932
if (!strcmp(str, "hwp_only"))
drivers/cpufreq/intel_pstate.c
3934
if (!strcmp(str, "per_cpu_perf_limits"))
drivers/cpufreq/intel_pstate.c
3938
if (!strcmp(str, "support_acpi_ppc"))
drivers/cpuidle/cpuidle.h
26
extern struct cpuidle_governor *cpuidle_find_governor(const char *str);
drivers/cpuidle/governor.c
31
struct cpuidle_governor *cpuidle_find_governor(const char *str)
drivers/cpuidle/governor.c
36
if (!strncasecmp(str, gov->name, CPUIDLE_NAME_LEN))
drivers/crypto/atmel-sha204a.c
123
char *str = buf;
drivers/crypto/atmel-sha204a.c
135
str += sprintf(str, "%02X", otp[i]);
drivers/crypto/atmel-sha204a.c
136
str += sprintf(str, "\n");
drivers/crypto/atmel-sha204a.c
137
return str - buf;
drivers/crypto/intel/qat/qat_common/qat_uclo.c
201
static int qat_uclo_parse_num(char *str, unsigned int *num)
drivers/crypto/intel/qat/qat_common/qat_uclo.c
206
ae = simple_strtoull(str, &end, 10);
drivers/crypto/intel/qat/qat_common/qat_uclo.c
207
if (ae > UINT_MAX || str == end || (end - str) > 19)
drivers/crypto/intel/qat/qat_common/qat_uclo.c
218
char *str;
drivers/crypto/intel/qat/qat_common/qat_uclo.c
228
str = qat_uclo_get_string(&obj_handle->str_table, init_mem->sym_name);
drivers/crypto/intel/qat/qat_common/qat_uclo.c
229
if (!str) {
drivers/crypto/intel/qat/qat_common/qat_uclo.c
233
if (qat_uclo_parse_num(str, ae)) {
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
16
char *str = "Unknown";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
20
str = "UP";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
24
str = "DOWN";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
28
str = "READY";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
32
str = "QLEN";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
36
str = "QBIND_GRP";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
40
str = "VQ_PRIORITY";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
44
str = "PF_TYPE";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
48
str = "ACK";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
52
str = "NACK";
drivers/crypto/marvell/octeontx/otx_cptpf_mbox.c
56
return str;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
106
char *str = "unknown";
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
110
str = "SE";
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
114
str = "AE";
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
117
return str;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
122
char *str = "unknown";
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
126
str = "SE";
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
130
str = "AE";
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
133
return str;
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
18
char *str = "Unknown";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
22
str = "UP";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
26
str = "DOWN";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
30
str = "READY";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
34
str = "QLEN";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
38
str = "QBIND_GRP";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
42
str = "VQ_PRIORITY";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
46
str = "PF_TYPE";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
50
str = "ACK";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
54
str = "NACK";
drivers/crypto/marvell/octeontx/otx_cptvf_mbox.c
57
return str;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
102
char *str = "unknown";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
106
str = "SE";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
110
str = "IE";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
114
str = "AE";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
118
str = "SE+IPSEC";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
121
return str;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
82
char *str = "unknown";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
86
str = "SE";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
90
str = "IE";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
94
str = "AE";
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
97
return str;
drivers/dax/bus.c
1138
char *start, *end, *str;
drivers/dax/bus.c
1141
str = kstrdup(opt, GFP_KERNEL);
drivers/dax/bus.c
1142
if (!str)
drivers/dax/bus.c
1145
end = str;
drivers/dax/bus.c
1161
kfree(str);
drivers/edac/a72_edac.c
56
const char *str;
drivers/edac/a72_edac.c
61
str = "L1-I Tag RAM";
drivers/edac/a72_edac.c
64
str = "L1-I Data RAM";
drivers/edac/a72_edac.c
67
str = "L1-D Tag RAM";
drivers/edac/a72_edac.c
70
str = "L1-D Data RAM";
drivers/edac/a72_edac.c
73
str = "TLB RAM";
drivers/edac/a72_edac.c
76
str = "Unspecified";
drivers/edac/a72_edac.c
81
str, fatal ? "fatal" : "correctable", cpu);
drivers/edac/thunderx_edac.c
44
static void decode_register(char *str, size_t size,
drivers/edac/thunderx_edac.c
52
ret = snprintf(str, size, "\n\t%s, %s",
drivers/edac/thunderx_edac.c
56
str += ret;
drivers/extcon/extcon.c
1092
char *str;
drivers/extcon/extcon.c
1108
str = kasprintf(GFP_KERNEL, "cable.%d", index);
drivers/extcon/extcon.c
1109
if (!str) {
drivers/extcon/extcon.c
1124
cable->attr_g.name = str;
drivers/firmware/cirrus/cs_dsp.c
1129
const u8 **str)
drivers/firmware/cirrus/cs_dsp.c
1156
if (str)
drivers/firmware/cirrus/cs_dsp.c
1157
*str = *pos + bytes;
drivers/firmware/cirrus/cs_dsp.c
415
const char *str;
drivers/firmware/cirrus/cs_dsp.c
420
str = kasprintf(GFP_KERNEL, "%s\n", *pstr);
drivers/firmware/cirrus/cs_dsp.c
421
if (str) {
drivers/firmware/cirrus/cs_dsp.c
423
ppos, str, strlen(str));
drivers/firmware/cirrus/cs_dsp.c
424
kfree(str);
drivers/firmware/cirrus/test/cs_dsp_test_control_parse.c
78
char *str;
drivers/firmware/cirrus/test/cs_dsp_test_control_parse.c
80
str = kunit_kmalloc(test, len + 1, GFP_KERNEL);
drivers/firmware/cirrus/test/cs_dsp_test_control_parse.c
81
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, str);
drivers/firmware/cirrus/test/cs_dsp_test_control_parse.c
82
memset(str, c, len);
drivers/firmware/cirrus/test/cs_dsp_test_control_parse.c
83
str[len] = '\0';
drivers/firmware/cirrus/test/cs_dsp_test_control_parse.c
85
return str;
drivers/firmware/dmi_scan.c
1142
bool dmi_match(enum dmi_field f, const char *str)
drivers/firmware/dmi_scan.c
1146
if (info == NULL || str == NULL)
drivers/firmware/dmi_scan.c
1147
return info == str;
drivers/firmware/dmi_scan.c
1149
return !strcmp(info, str);
drivers/firmware/dmi_scan.c
70
char *str;
drivers/firmware/dmi_scan.c
77
str = dmi_alloc(len);
drivers/firmware/dmi_scan.c
78
if (str != NULL)
drivers/firmware/dmi_scan.c
79
strcpy(str, bp);
drivers/firmware/dmi_scan.c
81
return str;
drivers/firmware/dmi_scan.c
960
int dmi_name_in_serial(const char *str)
drivers/firmware/dmi_scan.c
963
if (dmi_ident[f] && strstr(dmi_ident[f], str))
drivers/firmware/dmi_scan.c
972
int dmi_name_in_vendors(const char *str)
drivers/firmware/dmi_scan.c
978
if (dmi_ident[f] && strstr(dmi_ident[f], str))
drivers/firmware/efi/cper-x86.c
153
static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit)
drivers/firmware/efi/cper-x86.c
155
printk("%s%s: %s\n", pfx, str, (check & bit) ? "true" : "false");
drivers/firmware/efi/cper.c
102
len = snprintf(buf, sizeof(buf), "%s%s", pfx, str);
drivers/firmware/efi/cper.c
104
len += scnprintf(buf+len, sizeof(buf)-len, ", %s", str);
drivers/firmware/efi/cper.c
143
char *str = buf;
drivers/firmware/efi/cper.c
153
*str = '|';
drivers/firmware/efi/cper.c
155
str++;
drivers/firmware/efi/cper.c
158
size = strscpy(str, strs[i], len);
drivers/firmware/efi/cper.c
163
str += size;
drivers/firmware/efi/cper.c
88
const char *str;
drivers/firmware/efi/cper.c
94
str = strs[i];
drivers/firmware/efi/cper.c
95
if (!str)
drivers/firmware/efi/cper.c
97
if (len && len + strlen(str) + 2 > 80) {
drivers/firmware/efi/earlycon.c
148
efi_earlycon_write(struct console *con, const char *str, unsigned int num)
drivers/firmware/efi/earlycon.c
162
count = strnchrnul(str, num, '\n') - str;
drivers/firmware/efi/earlycon.c
173
s = str;
drivers/firmware/efi/earlycon.c
188
str += count;
drivers/firmware/efi/earlycon.c
194
str++;
drivers/firmware/efi/efi.c
103
static int __init parse_efi_cmdline(char *str)
drivers/firmware/efi/efi.c
105
if (!str) {
drivers/firmware/efi/efi.c
110
if (parse_option_str(str, "debug"))
drivers/firmware/efi/efi.c
113
if (parse_option_str(str, "noruntime"))
drivers/firmware/efi/efi.c
116
if (parse_option_str(str, "runtime"))
drivers/firmware/efi/efi.c
119
if (parse_option_str(str, "nosoftreserve"))
drivers/firmware/efi/efi.c
137
char *str = buf;
drivers/firmware/efi/efi.c
143
str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20);
drivers/firmware/efi/efi.c
145
str += sprintf(str, "ACPI=0x%lx\n", efi.acpi);
drivers/firmware/efi/efi.c
152
str += sprintf(str, "SMBIOS3=0x%lx\n", efi.smbios3);
drivers/firmware/efi/efi.c
154
str += sprintf(str, "SMBIOS=0x%lx\n", efi.smbios);
drivers/firmware/efi/efi.c
156
return str - buf;
drivers/firmware/efi/efi.c
257
static int __init efivar_ssdt_setup(char *str)
drivers/firmware/efi/efi.c
264
if (strlen(str) < sizeof(efivar_ssdt))
drivers/firmware/efi/efi.c
265
memcpy(efivar_ssdt, str, strlen(str));
drivers/firmware/efi/efi.c
267
pr_warn("efivar_ssdt: name too long: %s\n", str);
drivers/firmware/efi/efibc.c
40
const u8 *str = data;
drivers/firmware/efi/efibc.c
54
for (l = 0; l < MAX_DATA_LEN - 1 && str[l] != '\0'; l++)
drivers/firmware/efi/efibc.c
55
wdata[l] = str[l];
drivers/firmware/efi/esrt.c
106
char *str = buf;
drivers/firmware/efi/esrt.c
108
efi_guid_to_str(&entry->esre.esre1->fw_class, str);
drivers/firmware/efi/esrt.c
109
str += strlen(str);
drivers/firmware/efi/esrt.c
110
str += sprintf(str, "\n");
drivers/firmware/efi/esrt.c
112
return str - buf;
drivers/firmware/efi/libstub/efi-stub-helper.c
53
char *str;
drivers/firmware/efi/libstub/efi-stub-helper.c
65
str = skip_spaces(buf);
drivers/firmware/efi/libstub/efi-stub-helper.c
67
while (*str) {
drivers/firmware/efi/libstub/efi-stub-helper.c
70
str = next_arg(str, ¶m, &val);
drivers/firmware/efi/libstub/efistub.h
1083
void efi_puts(const char *str);
drivers/firmware/efi/libstub/printk.c
20
void efi_char16_puts(efi_char16_t *str)
drivers/firmware/efi/libstub/printk.c
23
output_string, str);
drivers/firmware/efi/libstub/printk.c
75
void efi_puts(const char *str)
drivers/firmware/efi/libstub/printk.c
79
const u8 *s8 = (const u8 *)str;
drivers/firmware/efi/libstub/skip_spaces.c
10
++str;
drivers/firmware/efi/libstub/skip_spaces.c
11
return (char *)str;
drivers/firmware/efi/libstub/skip_spaces.c
7
char *skip_spaces(const char *str)
drivers/firmware/efi/libstub/skip_spaces.c
9
while (isspace(*str))
drivers/firmware/efi/libstub/x86-stub.c
810
static void error(char *str)
drivers/firmware/efi/libstub/x86-stub.c
812
efi_warn("Decompression failed: %s\n", str);
drivers/firmware/efi/reboot.c
15
const char *str[] = { "cold", "warm", "shutdown", "platform" };
drivers/firmware/efi/reboot.c
41
"%s reset.\n", str[efi_mode], str[cap_reset_mode],
drivers/firmware/efi/reboot.c
42
str[cap_reset_mode]);
drivers/firmware/efi/test/efi_test.c
33
static inline size_t user_ucs2_strsize(efi_char16_t __user *str)
drivers/firmware/efi/test/efi_test.c
35
efi_char16_t *s = str, c;
drivers/firmware/efi/test/efi_test.c
38
if (!str)
drivers/firmware/iscsi_ibft.c
202
char *str = buf;
drivers/firmware/iscsi_ibft.c
210
str += sprintf(buf, "%pI4", ip + 12);
drivers/firmware/iscsi_ibft.c
215
str += sprintf(str, "%pI6", ip);
drivers/firmware/iscsi_ibft.c
217
str += sprintf(str, "\n");
drivers/firmware/iscsi_ibft.c
218
return str - buf;
drivers/firmware/iscsi_ibft.c
221
static ssize_t sprintf_string(char *str, int len, char *buf)
drivers/firmware/iscsi_ibft.c
223
return sprintf(str, "%.*s\n", len, buf);
drivers/firmware/iscsi_ibft.c
255
char *str = buf;
drivers/firmware/iscsi_ibft.c
262
str += sprintf(str, "%d\n", initiator->hdr.index);
drivers/firmware/iscsi_ibft.c
265
str += sprintf(str, "%d\n", initiator->hdr.flags);
drivers/firmware/iscsi_ibft.c
268
str += sprintf_ipaddr(str, initiator->isns_server);
drivers/firmware/iscsi_ibft.c
271
str += sprintf_ipaddr(str, initiator->slp_server);
drivers/firmware/iscsi_ibft.c
274
str += sprintf_ipaddr(str, initiator->pri_radius_server);
drivers/firmware/iscsi_ibft.c
277
str += sprintf_ipaddr(str, initiator->sec_radius_server);
drivers/firmware/iscsi_ibft.c
280
str += sprintf_string(str, initiator->initiator_name_len,
drivers/firmware/iscsi_ibft.c
288
return str - buf;
drivers/firmware/iscsi_ibft.c
296
char *str = buf;
drivers/firmware/iscsi_ibft.c
304
str += sprintf(str, "%d\n", nic->hdr.index);
drivers/firmware/iscsi_ibft.c
307
str += sprintf(str, "%d\n", nic->hdr.flags);
drivers/firmware/iscsi_ibft.c
310
str += sprintf_ipaddr(str, nic->ip_addr);
drivers/firmware/iscsi_ibft.c
317
str += sprintf(str, "%pI4", &val);
drivers/firmware/iscsi_ibft.c
320
str += sprintf(str, "%d\n", nic->subnet_mask_prefix);
drivers/firmware/iscsi_ibft.c
323
str += sprintf(str, "%d\n", nic->origin);
drivers/firmware/iscsi_ibft.c
326
str += sprintf_ipaddr(str, nic->gateway);
drivers/firmware/iscsi_ibft.c
329
str += sprintf_ipaddr(str, nic->primary_dns);
drivers/firmware/iscsi_ibft.c
332
str += sprintf_ipaddr(str, nic->secondary_dns);
drivers/firmware/iscsi_ibft.c
335
str += sprintf_ipaddr(str, nic->dhcp);
drivers/firmware/iscsi_ibft.c
338
str += sprintf(str, "%d\n", nic->vlan);
drivers/firmware/iscsi_ibft.c
341
str += sprintf(str, "%pM\n", nic->mac);
drivers/firmware/iscsi_ibft.c
344
str += sprintf_string(str, nic->hostname_len,
drivers/firmware/iscsi_ibft.c
351
return str - buf;
drivers/firmware/iscsi_ibft.c
359
char *str = buf;
drivers/firmware/iscsi_ibft.c
367
str += sprintf(str, "%d\n", tgt->hdr.index);
drivers/firmware/iscsi_ibft.c
370
str += sprintf(str, "%d\n", tgt->hdr.flags);
drivers/firmware/iscsi_ibft.c
373
str += sprintf_ipaddr(str, tgt->ip_addr);
drivers/firmware/iscsi_ibft.c
376
str += sprintf(str, "%d\n", tgt->port);
drivers/firmware/iscsi_ibft.c
380
str += sprintf(str, "%x", (u8)tgt->lun[i]);
drivers/firmware/iscsi_ibft.c
381
str += sprintf(str, "\n");
drivers/firmware/iscsi_ibft.c
384
str += sprintf(str, "%d\n", tgt->nic_assoc);
drivers/firmware/iscsi_ibft.c
387
str += sprintf(str, "%d\n", tgt->chap_type);
drivers/firmware/iscsi_ibft.c
390
str += sprintf_string(str, tgt->tgt_name_len,
drivers/firmware/iscsi_ibft.c
394
str += sprintf_string(str, tgt->chap_name_len,
drivers/firmware/iscsi_ibft.c
398
str += sprintf_string(str, tgt->chap_secret_len,
drivers/firmware/iscsi_ibft.c
402
str += sprintf_string(str, tgt->rev_chap_name_len,
drivers/firmware/iscsi_ibft.c
407
str += sprintf_string(str, tgt->rev_chap_secret_len,
drivers/firmware/iscsi_ibft.c
415
return str - buf;
drivers/firmware/iscsi_ibft.c
421
char *str = buf;
drivers/firmware/iscsi_ibft.c
425
str += sprintf_string(str, ACPI_NAMESEG_SIZE,
drivers/firmware/iscsi_ibft.c
429
str += sprintf_string(str, ACPI_OEM_ID_SIZE,
drivers/firmware/iscsi_ibft.c
433
str += sprintf_string(str, ACPI_OEM_TABLE_ID_SIZE,
drivers/firmware/iscsi_ibft.c
440
return str - buf;
drivers/firmware/qemu_fw_cfg.c
800
char *str;
drivers/firmware/qemu_fw_cfg.c
816
size = memparse(arg, &str);
drivers/firmware/qemu_fw_cfg.c
819
processed = sscanf(str, PH_ADDR_SCAN_FMT,
drivers/firmware/qemu_fw_cfg.c
830
if (str[consumed] ||
drivers/firmware/tegra/bpmp-debugfs.c
56
static int seqbuf_read_str(struct seqbuf *seqbuf, const char **str)
drivers/firmware/tegra/bpmp-debugfs.c
58
*str = seqbuf->buf + seqbuf->pos;
drivers/firmware/tegra/bpmp-debugfs.c
59
seqbuf->pos += strnlen(*str, seqbuf_avail(seqbuf));
drivers/gpio/gpio-cros-ec.c
109
char *str;
drivers/gpio/gpio-cros-ec.c
116
str = devm_kcalloc(gc->parent, gc->ngpio, name_len, GFP_KERNEL);
drivers/gpio/gpio-cros-ec.c
117
if (!str)
drivers/gpio/gpio-cros-ec.c
130
names[i] = str;
drivers/gpio/gpio-cros-ec.c
131
copied = scnprintf(str, name_len, "%s%s", cros_ec_gpio_prefix,
drivers/gpio/gpio-cros-ec.c
136
str += copied + 1;
drivers/gpio/gpio-sim.c
679
static char *gpio_sim_strdup_trimmed(const char *str, size_t count)
drivers/gpio/gpio-sim.c
683
trimmed = kstrndup(skip_spaces(str), count, GFP_KERNEL);
drivers/gpio/gpio-virtio.c
495
u8 *gpio_names, *str;
drivers/gpio/gpio-virtio.c
522
for (i = 0, str = gpio_names; i < ngpio; i++) {
drivers/gpio/gpio-virtio.c
523
names[i] = str;
drivers/gpio/gpio-virtio.c
524
str += strlen(str) + 1; /* zero-length strings are allowed */
drivers/gpio/gpio-virtio.c
526
if (str > gpio_names + gpio_names_size) {
drivers/gpio/gpio-zynq.c
44
#define ZYNQ_GPIO_BANK0_PIN_MIN(str) 0
drivers/gpio/gpio-zynq.c
45
#define ZYNQ_GPIO_BANK0_PIN_MAX(str) (ZYNQ_GPIO_BANK0_PIN_MIN(str) + \
drivers/gpio/gpio-zynq.c
46
ZYNQ##str##_GPIO_BANK0_NGPIO - 1)
drivers/gpio/gpio-zynq.c
47
#define ZYNQ_GPIO_BANK1_PIN_MIN(str) (ZYNQ_GPIO_BANK0_PIN_MAX(str) + 1)
drivers/gpio/gpio-zynq.c
48
#define ZYNQ_GPIO_BANK1_PIN_MAX(str) (ZYNQ_GPIO_BANK1_PIN_MIN(str) + \
drivers/gpio/gpio-zynq.c
49
ZYNQ##str##_GPIO_BANK1_NGPIO - 1)
drivers/gpio/gpio-zynq.c
50
#define ZYNQ_GPIO_BANK2_PIN_MIN(str) (ZYNQ_GPIO_BANK1_PIN_MAX(str) + 1)
drivers/gpio/gpio-zynq.c
51
#define ZYNQ_GPIO_BANK2_PIN_MAX(str) (ZYNQ_GPIO_BANK2_PIN_MIN(str) + \
drivers/gpio/gpio-zynq.c
52
ZYNQ##str##_GPIO_BANK2_NGPIO - 1)
drivers/gpio/gpio-zynq.c
53
#define ZYNQ_GPIO_BANK3_PIN_MIN(str) (ZYNQ_GPIO_BANK2_PIN_MAX(str) + 1)
drivers/gpio/gpio-zynq.c
54
#define ZYNQ_GPIO_BANK3_PIN_MAX(str) (ZYNQ_GPIO_BANK3_PIN_MIN(str) + \
drivers/gpio/gpio-zynq.c
55
ZYNQ##str##_GPIO_BANK3_NGPIO - 1)
drivers/gpio/gpio-zynq.c
56
#define ZYNQ_GPIO_BANK4_PIN_MIN(str) (ZYNQ_GPIO_BANK3_PIN_MAX(str) + 1)
drivers/gpio/gpio-zynq.c
57
#define ZYNQ_GPIO_BANK4_PIN_MAX(str) (ZYNQ_GPIO_BANK4_PIN_MIN(str) + \
drivers/gpio/gpio-zynq.c
58
ZYNQ##str##_GPIO_BANK4_NGPIO - 1)
drivers/gpio/gpio-zynq.c
59
#define ZYNQ_GPIO_BANK5_PIN_MIN(str) (ZYNQ_GPIO_BANK4_PIN_MAX(str) + 1)
drivers/gpio/gpio-zynq.c
60
#define ZYNQ_GPIO_BANK5_PIN_MAX(str) (ZYNQ_GPIO_BANK5_PIN_MIN(str) + \
drivers/gpio/gpio-zynq.c
61
ZYNQ##str##_GPIO_BANK5_NGPIO - 1)
drivers/gpio/gpiolib.c
132
return label ? label->str : "interrupt";
drivers/gpio/gpiolib.c
137
return label ? label->str : NULL;
drivers/gpio/gpiolib.c
150
new = kzalloc_flex(*new, str, strlen(label) + 1);
drivers/gpio/gpiolib.c
154
strcpy(new->str, label);
drivers/gpio/gpiolib.h
166
char str[];
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
335
char str[65];
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
349
memset(str, 0, sizeof(str));
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
352
if (copy_from_user(str, buf, s))
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
355
if (sscanf(str, "disable %32s", block_name) == 1)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
357
else if (sscanf(str, "enable %32s %8s", block_name, err) == 2)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
359
else if (sscanf(str, "inject %32s %8s", block_name, err) == 2)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
361
else if (strstr(str, "retire_page") != NULL)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
363
else if (strstr(str, "check_address") != NULL)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
365
else if (str[0] && str[1] && str[2] && str[3])
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
371
if (sscanf(str, "%*s 0x%llx", &address) != 1 &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
372
sscanf(str, "%*s %llu", &address) != 1)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
380
if (sscanf(str, "%*s 0x%llx 0x%llx", &address, &value) != 2 &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
381
sscanf(str, "%*s %llu %llu", &address, &value) != 2)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
407
if (sscanf(str, "%*s %*s %*s 0x%x 0x%llx 0x%llx 0x%x",
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
409
sscanf(str, "%*s %*s %*s %u %llu %llu %u",
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
411
sscanf(str, "%*s %*s %*s 0x%x 0x%llx 0x%llx",
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
413
sscanf(str, "%*s %*s %*s %u %llu %llu",
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
100
char str[64];
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
103
if (*pos || size > sizeof(str) - 1)
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
106
memset(str, 0, sizeof(str));
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
107
ret = copy_from_user(str, buf, size);
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
118
sscanf(str, "%u ", &op);
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
120
sscanf(str, "%u %u", &op, &phy_id);
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
139
dev_err(adev->dev, "Invalid input: %s\n", str);
drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c
159
dev_err(adev->dev, "Invalid input: %s\n", str);
drivers/gpu/drm/amd/amdgpu/atom.c
1404
static unsigned char *atom_find_str_in_rom(struct atom_context *ctx, char *str, int start,
drivers/gpu/drm/amd/amdgpu/atom.c
1412
str_len = strnlen(str, maxlen);
drivers/gpu/drm/amd/amdgpu/atom.c
1417
if (str[str_off] != *(p_rom + start + str_off))
drivers/gpu/drm/amd/amdgpu/atom.c
1421
if (str_off == str_len || str[str_off] == 0)
drivers/gpu/drm/amd/amdgpu/atom.c
1504
unsigned char *str;
drivers/gpu/drm/amd/amdgpu/atom.c
1510
str = CSTR(CU16(base + ATOM_ROM_CFG_PTR));
drivers/gpu/drm/amd/amdgpu/atom.c
1512
while (str < atom_rom_hdr && *str++)
drivers/gpu/drm/amd/amdgpu/atom.c
1515
while (str < atom_rom_hdr && *str++)
drivers/gpu/drm/amd/amdgpu/atom.c
1518
len = min(atom_rom_hdr - str, STRLEN_NORMAL);
drivers/gpu/drm/amd/amdgpu/atom.c
1520
strscpy(ctx->build_num, str, len);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
424
char *str;
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
427
str = kmalloc(256, GFP_KERNEL);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
428
if (!str)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
435
memset(str, 0, 256);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
436
size = sprintf(str, "SE[%02d]CU[%02d]: ", se, cu);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
438
size += sprintf(str + size, "[");
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
440
size += sprintf(str + size, "%x", wb_ptr[offset]);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
443
size += sprintf(str + size, "] ");
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
445
dev_dbg(adev->dev, "%s\n", str);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
449
kfree(str);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c
50
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr_smu_msg.c
46
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.c
45
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c
49
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c
46
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_smu.c
62
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c
70
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c
63
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr_smu_msg.c
42
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c
62
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr_smu_msg.c
22
#define smu_print(str, ...) {DC_LOG_SMU(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/dml/dml_logger.h
33
#define dml_print(str, ...) {DC_LOG_DML(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/dc/dml/dml_logger.h
34
#define DTRACE(str, ...) {DC_LOG_DML(str, ##__VA_ARGS__); }
drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
462
enum mod_hdcp_status *status, struct mod_hdcp *hdcp, char *str)
drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
466
HDCP_INPUT_PASS_TRACE(hdcp, str);
drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
469
HDCP_INPUT_FAIL_TRACE(hdcp, str);
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.h
66
#define HDCP_INPUT_PASS_TRACE(hdcp, str) \
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.h
69
hdcp->config.index, str)
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.h
70
#define HDCP_INPUT_FAIL_TRACE(hdcp, str) \
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.h
73
hdcp->config.index, str)
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
571
char str[16];
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
584
sprintf(str, "pipe-%d", crtc->slave->id);
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
586
sprintf(str, "None");
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
589
kms->n_crtcs, master->id, str);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
100
evt_sprintf(str, events & KOMEDA_ERR_TEMR, "TEMR|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
102
if (str->len > 0 && (str->str[str->len - 1] == '|')) {
drivers/gpu/drm/arm/display/komeda/komeda_event.c
103
str->str[str->len - 1] = 0;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
104
str->len--;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
13
char *str;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
137
struct komeda_str str;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
140
str.str = msg;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
141
str.sz = sizeof(msg);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
142
str.len = 0;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
144
komeda_sprintf(&str, "gcu: ");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
145
evt_str(&str, evts->global);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
146
komeda_sprintf(&str, ", pipes[0]: ");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
147
evt_str(&str, evts->pipes[0]);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
148
komeda_sprintf(&str, ", pipes[1]: ");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
149
evt_str(&str, evts->pipes[1]);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
21
static int komeda_sprintf(struct komeda_str *str, const char *fmt, ...)
drivers/gpu/drm/arm/display/komeda/komeda_event.c
27
free_sz = str->sz - str->len - 1;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
33
num = vsnprintf(str->str + str->len, free_sz, fmt, args);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
38
str->len += num;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
41
str->len = str->sz - 1;
drivers/gpu/drm/arm/display/komeda/komeda_event.c
48
static void evt_sprintf(struct komeda_str *str, u64 evt, const char *msg)
drivers/gpu/drm/arm/display/komeda/komeda_event.c
51
komeda_sprintf(str, msg);
drivers/gpu/drm/arm/display/komeda/komeda_event.c
54
static void evt_str(struct komeda_str *str, u64 events)
drivers/gpu/drm/arm/display/komeda/komeda_event.c
57
komeda_sprintf(str, "None");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
61
evt_sprintf(str, events & KOMEDA_EVENT_VSYNC, "VSYNC|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
62
evt_sprintf(str, events & KOMEDA_EVENT_FLIP, "FLIP|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
63
evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
64
evt_sprintf(str, events & KOMEDA_EVENT_MODE, "OP-MODE|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
66
evt_sprintf(str, events & KOMEDA_EVENT_URUN, "UNDERRUN|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
67
evt_sprintf(str, events & KOMEDA_EVENT_OVR, "OVERRUN|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
70
evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
71
evt_sprintf(str, events & KOMEDA_ERR_FRAMETO, "FRAMETO|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
74
evt_sprintf(str, events & KOMEDA_ERR_DRIFTTO, "DRIFTTO|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
75
evt_sprintf(str, events & KOMEDA_ERR_FRAMETO, "FRAMETO|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
76
evt_sprintf(str, events & KOMEDA_ERR_TETO, "TETO|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
77
evt_sprintf(str, events & KOMEDA_ERR_CSCE, "CSCE|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
80
evt_sprintf(str, events & KOMEDA_EVENT_IBSY, "IBSY|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
81
evt_sprintf(str, events & KOMEDA_EVENT_EMPTY, "EMPTY|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
82
evt_sprintf(str, events & KOMEDA_EVENT_FULL, "FULL|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
83
evt_sprintf(str, events & KOMEDA_ERR_AXIE, "AXIE|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
84
evt_sprintf(str, events & KOMEDA_ERR_ACE0, "ACE0|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
85
evt_sprintf(str, events & KOMEDA_ERR_ACE1, "ACE1|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
86
evt_sprintf(str, events & KOMEDA_ERR_ACE2, "ACE2|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
87
evt_sprintf(str, events & KOMEDA_ERR_ACE3, "ACE3|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
90
evt_sprintf(str, events & KOMEDA_ERR_TCF, "TCF|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
91
evt_sprintf(str, events & KOMEDA_ERR_TTNG, "TTNG|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
92
evt_sprintf(str, events & KOMEDA_ERR_TITR, "TITR|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
93
evt_sprintf(str, events & KOMEDA_ERR_TEMR, "TEMR|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
94
evt_sprintf(str, events & KOMEDA_ERR_TTF, "TTF|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
97
evt_sprintf(str, events & KOMEDA_ERR_CPE, "COPROC|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
98
evt_sprintf(str, events & KOMEDA_ERR_ZME, "ZME|");
drivers/gpu/drm/arm/display/komeda/komeda_event.c
99
evt_sprintf(str, events & KOMEDA_ERR_CFGE, "CFGE|");
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1151
const char *str;
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1159
ret = of_property_read_string(np, "adi,input-colorspace", &str);
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1163
if (!strcmp(str, "rgb"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1165
else if (!strcmp(str, "yuv422"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1167
else if (!strcmp(str, "yuv444"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1172
ret = of_property_read_string(np, "adi,input-clock", &str);
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1176
if (!strcmp(str, "1x"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1178
else if (!strcmp(str, "2x"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1180
else if (!strcmp(str, "ddr"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1196
&str);
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1200
if (!strcmp(str, "left"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1203
else if (!strcmp(str, "evenly"))
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
1206
else if (!strcmp(str, "right"))
drivers/gpu/drm/bridge/ite-it6505.c
3401
u8 *str = read_buf, *end = read_buf + READ_BUFFER_SIZE;
drivers/gpu/drm/bridge/ite-it6505.c
3409
str += scnprintf(str, end - str, "---video timing---\n");
drivers/gpu/drm/bridge/ite-it6505.c
3410
str += scnprintf(str, end - str, "PCLK:%d.%03dMHz\n",
drivers/gpu/drm/bridge/ite-it6505.c
3412
str += scnprintf(str, end - str, "HTotal:%d\n", vid->htotal);
drivers/gpu/drm/bridge/ite-it6505.c
3413
str += scnprintf(str, end - str, "HActive:%d\n", vid->hdisplay);
drivers/gpu/drm/bridge/ite-it6505.c
3414
str += scnprintf(str, end - str, "HFrontPorch:%d\n",
drivers/gpu/drm/bridge/ite-it6505.c
3416
str += scnprintf(str, end - str, "HSyncWidth:%d\n",
drivers/gpu/drm/bridge/ite-it6505.c
3418
str += scnprintf(str, end - str, "HBackPorch:%d\n",
drivers/gpu/drm/bridge/ite-it6505.c
3420
str += scnprintf(str, end - str, "VTotal:%d\n", vid->vtotal);
drivers/gpu/drm/bridge/ite-it6505.c
3421
str += scnprintf(str, end - str, "VActive:%d\n", vid->vdisplay);
drivers/gpu/drm/bridge/ite-it6505.c
3422
str += scnprintf(str, end - str, "VFrontPorch:%d\n",
drivers/gpu/drm/bridge/ite-it6505.c
3424
str += scnprintf(str, end - str, "VSyncWidth:%d\n",
drivers/gpu/drm/bridge/ite-it6505.c
3426
str += scnprintf(str, end - str, "VBackPorch:%d\n",
drivers/gpu/drm/bridge/ite-it6505.c
3429
count = str - read_buf;
drivers/gpu/drm/drm_edid.c
5519
const char *desc = timing->data.other_data.data.str.str;
drivers/gpu/drm/drm_edid.c
5520
unsigned int desc_len = ARRAY_SIZE(timing->data.other_data.data.str.str);
drivers/gpu/drm/drm_edid.c
5580
*res = timing->data.other_data.data.str.str;
drivers/gpu/drm/drm_modes.c
1938
static int drm_mode_parse_cmdline_bpp(const char *str, char **end_ptr,
drivers/gpu/drm/drm_modes.c
1943
if (str[0] != '-')
drivers/gpu/drm/drm_modes.c
1946
str++;
drivers/gpu/drm/drm_modes.c
1947
bpp = simple_strtol(str, end_ptr, 10);
drivers/gpu/drm/drm_modes.c
1948
if (*end_ptr == str)
drivers/gpu/drm/drm_modes.c
1957
static int drm_mode_parse_cmdline_refresh(const char *str, char **end_ptr,
drivers/gpu/drm/drm_modes.c
1962
if (str[0] != '@')
drivers/gpu/drm/drm_modes.c
1965
str++;
drivers/gpu/drm/drm_modes.c
1966
refresh = simple_strtol(str, end_ptr, 10);
drivers/gpu/drm/drm_modes.c
1967
if (*end_ptr == str)
drivers/gpu/drm/drm_modes.c
1976
static int drm_mode_parse_cmdline_extra(const char *str, int length,
drivers/gpu/drm/drm_modes.c
1984
switch (str[i]) {
drivers/gpu/drm/drm_modes.c
2027
static int drm_mode_parse_cmdline_res_mode(const char *str, unsigned int length,
drivers/gpu/drm/drm_modes.c
2032
const char *str_start = str;
drivers/gpu/drm/drm_modes.c
2038
xres = simple_strtol(str, &end_ptr, 10);
drivers/gpu/drm/drm_modes.c
2039
if (end_ptr == str)
drivers/gpu/drm/drm_modes.c
2046
str = end_ptr;
drivers/gpu/drm/drm_modes.c
2047
yres = simple_strtol(str, &end_ptr, 10);
drivers/gpu/drm/drm_modes.c
2048
if (end_ptr == str)
drivers/gpu/drm/drm_modes.c
2165
static int drm_mode_parse_cmdline_options(const char *str,
drivers/gpu/drm/drm_modes.c
2173
option = str;
drivers/gpu/drm/drm_print.c
106
str + (iterator->start - iterator->offset), copy);
drivers/gpu/drm/drm_print.c
113
len = min_t(ssize_t, strlen(str), iterator->remain);
drivers/gpu/drm/drm_print.c
116
memcpy(iterator->data + pos, str, len);
drivers/gpu/drm/drm_print.c
171
void __drm_puts_seq_file(struct drm_printer *p, const char *str)
drivers/gpu/drm/drm_print.c
173
seq_puts(p->arg, str);
drivers/gpu/drm/drm_print.c
261
void drm_puts(struct drm_printer *p, const char *str)
drivers/gpu/drm/drm_print.c
264
p->puts(p, str);
drivers/gpu/drm/drm_print.c
266
drm_printf(p, "%s", str);
drivers/gpu/drm/drm_print.c
80
void __drm_puts_coredump(struct drm_printer *p, const char *str)
drivers/gpu/drm/drm_print.c
91
len = strlen(str);
drivers/gpu/drm/i915/display/dvo_ch7017.c
207
const char *str;
drivers/gpu/drm/i915/display/dvo_ch7017.c
222
str = "ch7017";
drivers/gpu/drm/i915/display/dvo_ch7017.c
225
str = "ch7018";
drivers/gpu/drm/i915/display/dvo_ch7017.c
228
str = "ch7019";
drivers/gpu/drm/i915/display/dvo_ch7017.c
238
str, adapter->name, dvo->target_addr);
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
77
char *str = buf;
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
80
str[0] = '\0';
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
88
r = snprintf(str, len, "%s%s",
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
89
str != buf ? "," : "", output_type_str[i]);
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
92
str += r;
drivers/gpu/drm/i915/display/intel_dram.c
35
static const char * const str[] = {
drivers/gpu/drm/i915/display/intel_dram.c
48
BUILD_BUG_ON(ARRAY_SIZE(str) != __INTEL_DRAM_TYPE_MAX);
drivers/gpu/drm/i915/display/intel_dram.c
50
if (type >= ARRAY_SIZE(str))
drivers/gpu/drm/i915/display/intel_dram.c
53
return str[type];
drivers/gpu/drm/i915/display/intel_drrs.c
57
static const char * const str[] = {
drivers/gpu/drm/i915/display/intel_drrs.c
63
if (drrs_type >= ARRAY_SIZE(str))
drivers/gpu/drm/i915/display/intel_drrs.c
66
return str[drrs_type];
drivers/gpu/drm/i915/display/intel_link_bw.c
339
static int str_to_fxp_q4_nonneg_int(const char *str, int *val_x16)
drivers/gpu/drm/i915/display/intel_link_bw.c
344
err = kstrtouint(str, 10, &val);
drivers/gpu/drm/i915/display/intel_link_bw.c
357
static int str_to_fxp_q4_nonneg(char *str, int *val_x16)
drivers/gpu/drm/i915/display/intel_link_bw.c
365
int_str = strim(str);
drivers/gpu/drm/i915/display/intel_psr.c
4444
const char *str;
drivers/gpu/drm/i915/display/intel_psr.c
4462
str = sink_status[status];
drivers/gpu/drm/i915/display/intel_psr.c
4464
str = "unknown";
drivers/gpu/drm/i915/display/intel_psr.c
4466
seq_printf(m, "Sink %s status: 0x%x [%s]\n", psr_mode_str(intel_dp), status, str);
drivers/gpu/drm/i915/gt/selftest_workarounds.c
1167
const char *str)
drivers/gpu/drm/i915/gt/selftest_workarounds.c
1173
ok &= wa_list_verify(gt, &lists->gt_wa_list, str);
drivers/gpu/drm/i915/gt/selftest_workarounds.c
1184
str) == 0;
drivers/gpu/drm/i915/gt/selftest_workarounds.c
1188
str) == 0;
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1430
const char *str;
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1482
str = guc_capture_reg_to_str(guc, GUC_CAPTURE_LIST_INDEX_PF, i,
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1484
if (!str)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1487
i915_error_printf(ebuf, " %s", str);
drivers/gpu/drm/i915/i915_gpu_error.c
156
static void i915_error_puts(struct drm_i915_error_state_buf *e, const char *str)
drivers/gpu/drm/i915/i915_gpu_error.c
160
if (e->err || !str)
drivers/gpu/drm/i915/i915_gpu_error.c
163
len = strlen(str);
drivers/gpu/drm/i915/i915_gpu_error.c
168
memcpy(e->buf + e->bytes, str, len);
drivers/gpu/drm/i915/i915_gpu_error.c
2582
const char *str = "No error state collected\n";
drivers/gpu/drm/i915/i915_gpu_error.c
2583
size_t len = strlen(str);
drivers/gpu/drm/i915/i915_gpu_error.c
2587
memcpy(buf, str + off, ret);
drivers/gpu/drm/i915/i915_mitigations.c
33
char *str, *sep, *tok;
drivers/gpu/drm/i915/i915_mitigations.c
39
str = kstrdup(val, GFP_KERNEL);
drivers/gpu/drm/i915/i915_mitigations.c
40
if (!str)
drivers/gpu/drm/i915/i915_mitigations.c
43
for (sep = str; (tok = strsep(&sep, ","));) {
drivers/gpu/drm/i915/i915_mitigations.c
90
kfree(str);
drivers/gpu/drm/i915/i915_pmu.c
1052
char *str;
drivers/gpu/drm/i915/i915_pmu.c
1058
str = kstrdup(events[i].name, GFP_KERNEL);
drivers/gpu/drm/i915/i915_pmu.c
1060
str = kasprintf(GFP_KERNEL, "%s-gt%u",
drivers/gpu/drm/i915/i915_pmu.c
1062
if (!str)
drivers/gpu/drm/i915/i915_pmu.c
1066
i915_iter = add_i915_attr(i915_iter, str, config);
drivers/gpu/drm/i915/i915_pmu.c
1070
str = kasprintf(GFP_KERNEL, "%s.unit",
drivers/gpu/drm/i915/i915_pmu.c
1073
str = kasprintf(GFP_KERNEL, "%s-gt%u.unit",
drivers/gpu/drm/i915/i915_pmu.c
1075
if (!str)
drivers/gpu/drm/i915/i915_pmu.c
1079
pmu_iter = add_pmu_attr(pmu_iter, str,
drivers/gpu/drm/i915/i915_pmu.c
1088
char *str;
drivers/gpu/drm/i915/i915_pmu.c
1094
str = kasprintf(GFP_KERNEL, "%s-%s",
drivers/gpu/drm/i915/i915_pmu.c
1096
if (!str)
drivers/gpu/drm/i915/i915_pmu.c
1101
add_i915_attr(i915_iter, str,
drivers/gpu/drm/i915/i915_pmu.c
1106
str = kasprintf(GFP_KERNEL, "%s-%s.unit",
drivers/gpu/drm/i915/i915_pmu.c
1108
if (!str)
drivers/gpu/drm/i915/i915_pmu.c
1112
pmu_iter = add_pmu_attr(pmu_iter, str, "ns");
drivers/gpu/drm/i915/i915_pmu.c
891
const char *str;
drivers/gpu/drm/i915/i915_pmu.c
900
return sysfs_emit(buf, "%s\n", eattr->str);
drivers/gpu/drm/i915/i915_pmu.c
906
.str = _config, } \
drivers/gpu/drm/i915/i915_pmu.c
969
const char *str)
drivers/gpu/drm/i915/i915_pmu.c
975
attr->event_str = str;
drivers/gpu/drm/msm/adreno/adreno_gpu.c
473
char *str, **paramp;
drivers/gpu/drm/msm/adreno/adreno_gpu.c
475
str = memdup_user_nul(u64_to_user_ptr(value), len);
drivers/gpu/drm/msm/adreno/adreno_gpu.c
476
if (IS_ERR(str))
drivers/gpu/drm/msm/adreno/adreno_gpu.c
477
return PTR_ERR(str);
drivers/gpu/drm/msm/adreno/adreno_gpu.c
488
*paramp = str;
drivers/gpu/drm/nouveau/include/nvkm/core/option.h
13
strncasecmpz(const char *str, const char *cmp, size_t len)
drivers/gpu/drm/nouveau/include/nvkm/core/option.h
17
return strncasecmp(str, cmp, len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
27
u16 nvbios_findstr(const u8 *data, int size, const char *str, int len);
drivers/gpu/drm/nouveau/nouveau_bios.c
1233
static uint16_t findstr(uint8_t *data, int n, const uint8_t *str, int len)
drivers/gpu/drm/nouveau/nouveau_bios.c
1239
if (data[i + j] != str[j])
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
107
nvbios_memcmp(struct nvkm_bios *bios, u32 addr, const char *str, u32 len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
113
c2 = *(str++);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
91
nvbios_findstr(const u8 *data, int size, const char *str, int len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
97
if ((char)data[i + j] != str[j])
drivers/gpu/drm/omapdrm/dss/dsi.c
3576
static void print_dsi_vm(const char *str,
drivers/gpu/drm/omapdrm/dss/dsi.c
3591
str,
drivers/gpu/drm/omapdrm/dss/dsi.c
3609
static void print_dispc_vm(const char *str, const struct videomode *vm)
drivers/gpu/drm/omapdrm/dss/dsi.c
3622
str,
drivers/gpu/drm/omapdrm/dss/dsi.c
3637
static void print_dsi_dispc_vm(const char *str,
drivers/gpu/drm/omapdrm/dss/dsi.c
3657
print_dispc_vm(str, &vm);
drivers/gpu/drm/panfrost/panfrost_gem.c
535
old_label = bo->label.str;
drivers/gpu/drm/panfrost/panfrost_gem.c
536
bo->label.str = label;
drivers/gpu/drm/panfrost/panfrost_gem.c
630
const char *str;
drivers/gpu/drm/panfrost/panfrost_gem.c
639
str = kstrdup_const(label, GFP_KERNEL);
drivers/gpu/drm/panfrost/panfrost_gem.c
640
if (!str) {
drivers/gpu/drm/panfrost/panfrost_gem.c
646
panfrost_gem_set_label(obj, str);
drivers/gpu/drm/panfrost/panfrost_gem.c
718
seq_printf(m, "%s\n", bo->label.str ? : "");
drivers/gpu/drm/panfrost/panfrost_gem.c
88
kfree_const(bo->label.str);
drivers/gpu/drm/panfrost/panfrost_gem.h
92
const char *str;
drivers/gpu/drm/panthor/panthor_gem.c
124
kfree_const(bo->label.str);
drivers/gpu/drm/panthor/panthor_gem.c
490
old_label = bo->label.str;
drivers/gpu/drm/panthor/panthor_gem.c
491
bo->label.str = label;
drivers/gpu/drm/panthor/panthor_gem.c
500
const char *str;
drivers/gpu/drm/panthor/panthor_gem.c
509
str = kstrdup_const(label, GFP_KERNEL);
drivers/gpu/drm/panthor/panthor_gem.c
510
if (!str) {
drivers/gpu/drm/panthor/panthor_gem.c
516
panthor_gem_bo_set_label(bo->obj, str);
drivers/gpu/drm/panthor/panthor_gem.c
677
seq_printf(m, "%s\n", bo->label.str ? : "");
drivers/gpu/drm/panthor/panthor_gem.h
93
const char *str;
drivers/gpu/drm/qxl/qxl_dev.h
587
QXLPHYSICAL str;
drivers/gpu/drm/radeon/atom.c
1285
char *str;
drivers/gpu/drm/radeon/atom.c
1325
str = CSTR(CU16(base + ATOM_ROM_MSG_PTR));
drivers/gpu/drm/radeon/atom.c
1326
while (*str && ((*str == '\n') || (*str == '\r')))
drivers/gpu/drm/radeon/atom.c
1327
str++;
drivers/gpu/drm/radeon/atom.c
1330
name[i] = str[i];
drivers/gpu/drm/sti/sti_hdmi.c
607
#define DBGFS_DUMP(str, reg) seq_printf(s, "%s %-25s 0x%08X", str, #reg, \
drivers/gpu/drm/tilcdc/tilcdc_drv.c
267
const char *str = "\0";
drivers/gpu/drm/tilcdc/tilcdc_drv.c
269
of_property_read_string(node, "blue-and-red-wiring", &str);
drivers/gpu/drm/tilcdc/tilcdc_drv.c
270
if (0 == strcmp(str, "crossed")) {
drivers/gpu/drm/tilcdc/tilcdc_drv.c
276
} else if (0 == strcmp(str, "straight")) {
drivers/gpu/drm/tilcdc/tilcdc_drv.c
284
str);
drivers/gpu/drm/tiny/gm12u320.c
511
.data.other_data.data.str.str = {
drivers/gpu/drm/tiny/gm12u320.c
517
.data.other_data.data.str.str = {
drivers/gpu/drm/xe/tests/xe_migrate.c
105
str, err);
drivers/gpu/drm/xe/tests/xe_migrate.c
16
const char *str, struct kunit *test)
drivers/gpu/drm/xe/tests/xe_migrate.c
21
KUNIT_FAIL(test, "Failed to create fence for %s: %li\n", str,
drivers/gpu/drm/xe/tests/xe_migrate.c
30
KUNIT_FAIL(test, "Fence timed out for %s: %li\n", str, ret);
drivers/gpu/drm/xe/tests/xe_migrate.c
370
bool copy_only_ccs, const char *str, struct kunit *test)
drivers/gpu/drm/xe/tests/xe_migrate.c
38
struct xe_bb *bb, u32 second_idx, const char *str,
drivers/gpu/drm/xe/tests/xe_migrate.c
57
if (sanity_fence_failed(xe, fence, str, test))
drivers/gpu/drm/xe/tests/xe_migrate.c
61
kunit_info(test, "%s: Job completed\n", str);
drivers/gpu/drm/xe/tests/xe_migrate.c
65
#define check(_retval, _expected, str, _test) \
drivers/gpu/drm/xe/tests/xe_migrate.c
67
KUNIT_FAIL(_test, "Sanity check failed: " str \
drivers/gpu/drm/xe/tests/xe_migrate.c
79
const char *str = big ? "Copying big bo" : "Copying small bo";
drivers/gpu/drm/xe/tests/xe_migrate.c
91
str, remote);
drivers/gpu/drm/xe/tests/xe_migrate.c
98
str, err);
drivers/gpu/drm/xe/xe_hwmon.c
1416
u32 attr, int channel, const char **str)
drivers/gpu/drm/xe/xe_hwmon.c
1423
*str = "pkg";
drivers/gpu/drm/xe/xe_hwmon.c
1425
*str = "vram";
drivers/gpu/drm/xe/xe_hwmon.c
1427
*str = "mctrl";
drivers/gpu/drm/xe/xe_hwmon.c
1429
*str = "pcie";
drivers/gpu/drm/xe/xe_hwmon.c
1431
*str = hwmon->temp.vram_label[channel - CHANNEL_VRAM_N];
drivers/gpu/drm/xe/xe_hwmon.c
1438
*str = "card";
drivers/gpu/drm/xe/xe_hwmon.c
1440
*str = "pkg";
drivers/gpu/host1x/debug.h
16
void (*fn)(void *ctx, const char *str, size_t len, bool cont);
drivers/gpu/host1x/debug.h
21
static inline void write_to_seqfile(void *ctx, const char *str, size_t len,
drivers/gpu/host1x/debug.h
24
seq_write((struct seq_file *)ctx, str, len);
drivers/gpu/host1x/debug.h
27
static inline void write_to_printk(void *ctx, const char *str, size_t len,
drivers/gpu/host1x/debug.h
31
pr_cont("%s", str);
drivers/gpu/host1x/debug.h
33
pr_info("%s", str);
drivers/greybus/manifest.c
392
char *str;
drivers/greybus/manifest.c
395
str = gb_string_get(intf, desc_intf->vendor_stringid);
drivers/greybus/manifest.c
396
if (IS_ERR(str))
drivers/greybus/manifest.c
398
control->vendor_string = str;
drivers/greybus/manifest.c
400
str = gb_string_get(intf, desc_intf->product_stringid);
drivers/greybus/manifest.c
401
if (IS_ERR(str))
drivers/greybus/manifest.c
403
control->product_string = str;
drivers/hid/hid-wiimote-debug.c
101
const char *str = NULL;
drivers/hid/hid-wiimote-debug.c
110
str = wiidebug_drmmap[drm];
drivers/hid/hid-wiimote-debug.c
111
if (!str)
drivers/hid/hid-wiimote-debug.c
112
str = "unknown";
drivers/hid/hid-wiimote-debug.c
114
seq_printf(f, "%s\n", str);
drivers/hwmon/acpi_power_meter.c
726
acpi_string *str;
drivers/hwmon/acpi_power_meter.c
729
str = &resource->model_number;
drivers/hwmon/acpi_power_meter.c
730
for (i = 0; i < 3; i++, str++) {
drivers/hwmon/acpi_power_meter.c
731
kfree(*str);
drivers/hwmon/acpi_power_meter.c
732
*str = NULL;
drivers/hwmon/acpi_power_meter.c
744
acpi_string *str;
drivers/hwmon/acpi_power_meter.c
787
str = &resource->model_number;
drivers/hwmon/acpi_power_meter.c
797
*str = kmemdup_nul(element->string.pointer, element->string.length,
drivers/hwmon/acpi_power_meter.c
799
if (!*str) {
drivers/hwmon/acpi_power_meter.c
804
str++;
drivers/hwmon/aquacomputer_d5next.c
1109
int channel, const char **str)
drivers/hwmon/aquacomputer_d5next.c
1119
*str = priv->temp_label[channel];
drivers/hwmon/aquacomputer_d5next.c
1122
*str =
drivers/hwmon/aquacomputer_d5next.c
1125
*str = priv->virtual_temp_label[channel - priv->num_temp_sensors];
drivers/hwmon/aquacomputer_d5next.c
1129
*str = priv->speed_label[channel];
drivers/hwmon/aquacomputer_d5next.c
1132
*str = priv->power_label[channel];
drivers/hwmon/aquacomputer_d5next.c
1135
*str = priv->voltage_label[channel];
drivers/hwmon/aquacomputer_d5next.c
1138
*str = priv->current_label[channel];
drivers/hwmon/asus-ec-sensors.c
1258
int channel, const char **str)
drivers/hwmon/asus-ec-sensors.c
1266
*str = get_sensor_info(state, sensor_index)->label;
drivers/hwmon/asus_atk0110.c
771
char *str = file->private_data;
drivers/hwmon/asus_atk0110.c
772
size_t len = strlen(str);
drivers/hwmon/asus_atk0110.c
774
return simple_read_from_buffer(buf, count, pos, str, len);
drivers/hwmon/asus_rog_ryujin.c
259
u32 attr, int channel, const char **str)
drivers/hwmon/asus_rog_ryujin.c
263
*str = rog_ryujin_temp_label[channel];
drivers/hwmon/asus_rog_ryujin.c
266
*str = rog_ryujin_speed_label[channel];
drivers/hwmon/asus_wmi_sensors.c
468
int channel, const char **str)
drivers/hwmon/asus_wmi_sensors.c
474
*str = sensor->name;
drivers/hwmon/axi-fan-control.c
217
u32 attr, int channel, const char **str)
drivers/hwmon/axi-fan-control.c
221
*str = "FAN";
drivers/hwmon/axi-fan-control.c
224
*str = "SYSMON4";
drivers/hwmon/bt1-pvt.c
768
u32 attr, int ch, const char **str)
drivers/hwmon/bt1-pvt.c
777
*str = pvt_info[ch].label;
drivers/hwmon/bt1-pvt.c
784
*str = pvt_info[PVT_VOLT + ch].label;
drivers/hwmon/cgbc-hwmon.c
227
int channel, const char **str)
drivers/hwmon/cgbc-hwmon.c
232
*str = sensor->label;
drivers/hwmon/corsair-cpro.c
227
u32 attr, int channel, const char **str)
drivers/hwmon/corsair-cpro.c
235
*str = ccp->fan_label[channel];
drivers/hwmon/corsair-psu.c
598
u32 attr, int channel, const char **str)
drivers/hwmon/corsair-psu.c
601
*str = channel ? L_TEMP1 : L_TEMP0;
drivers/hwmon/corsair-psu.c
604
*str = L_FAN;
drivers/hwmon/corsair-psu.c
607
*str = label_watts[channel];
drivers/hwmon/corsair-psu.c
610
*str = label_volts[channel];
drivers/hwmon/corsair-psu.c
613
*str = label_amps[channel];
drivers/hwmon/cros_ec_hwmon.c
239
u32 attr, int channel, const char **str)
drivers/hwmon/cros_ec_hwmon.c
244
*str = priv->temp_sensor_names[channel];
drivers/hwmon/dell-smm-hwmon.c
1006
int channel, const char **str)
drivers/hwmon/dell-smm-hwmon.c
1014
*str = temp_labels[data->temp_type[channel]];
drivers/hwmon/dell-smm-hwmon.c
1023
*str = dell_smm_fan_label(data, channel);
drivers/hwmon/dell-smm-hwmon.c
1024
return PTR_ERR_OR_ZERO(*str);
drivers/hwmon/gigabyte_waterforce.c
197
u32 attr, int channel, const char **str)
drivers/hwmon/gigabyte_waterforce.c
201
*str = waterforce_temp_label[channel];
drivers/hwmon/gigabyte_waterforce.c
204
*str = waterforce_speed_label[channel];
drivers/hwmon/hp-wmi-sensors.c
1221
const char *str = seqf->private;
drivers/hwmon/hp-wmi-sensors.c
1223
seq_printf(seqf, "%s\n", str);
drivers/hwmon/ibmpowernv.c
294
const char *str;
drivers/hwmon/ibmpowernv.c
307
if (of_property_read_string(np, "sensor-type", &str))
drivers/hwmon/ibmpowernv.c
311
if (!strcmp(str, sensor_groups[type].name))
drivers/hwmon/ina3221.c
574
u32 attr, int channel, const char **str)
drivers/hwmon/ina3221.c
580
*str = "sum of shunt voltages";
drivers/hwmon/ina3221.c
582
*str = ina->inputs[index].label;
drivers/hwmon/intel-m10-bmc-hwmon.c
710
u32 attr, int channel, const char **str)
drivers/hwmon/intel-m10-bmc-hwmon.c
719
*str = data->label;
drivers/hwmon/k10temp.c
212
u32 attr, int channel, const char **str)
drivers/hwmon/k10temp.c
216
*str = k10temp_temp_label[channel];
drivers/hwmon/lenovo-ec-sensors.c
251
u32 attr, int channel, const char **str)
drivers/hwmon/lenovo-ec-sensors.c
257
*str = state->temp_labels[channel];
drivers/hwmon/lenovo-ec-sensors.c
260
*str = state->fan_labels[channel];
drivers/hwmon/lm90.c
1748
u32 attr, int channel, const char **str)
drivers/hwmon/lm90.c
1752
*str = data->channel_label[channel];
drivers/hwmon/lochnagar-hwmon.c
276
int chan, const char **str)
drivers/hwmon/lochnagar-hwmon.c
282
*str = lochnagar_chan_names[chan];
drivers/hwmon/ltc2947-core.c
761
u32 attr, int channel, const char **str)
drivers/hwmon/ltc2947-core.c
766
*str = "DVCC";
drivers/hwmon/ltc2947-core.c
768
*str = "VP-VM";
drivers/hwmon/ltc2947-core.c
771
*str = "IP-IM";
drivers/hwmon/ltc2947-core.c
775
*str = "TEMPFAN";
drivers/hwmon/ltc2947-core.c
777
*str = "Ambient";
drivers/hwmon/ltc2947-core.c
780
*str = "Power";
drivers/hwmon/ltc4282.c
1080
u32 attr, int channel, const char **str)
drivers/hwmon/ltc4282.c
1084
*str = ltc4282_in_strs[channel];
drivers/hwmon/ltc4282.c
1087
*str = "ISENSE";
drivers/hwmon/ltc4282.c
1090
*str = "Power";
drivers/hwmon/macsmc-hwmon.c
102
*str = hwmon->volt.sensors[channel].label;
drivers/hwmon/macsmc-hwmon.c
105
*str = hwmon->curr.sensors[channel].label;
drivers/hwmon/macsmc-hwmon.c
108
*str = hwmon->power.sensors[channel].label;
drivers/hwmon/macsmc-hwmon.c
111
*str = hwmon->fan.fans[channel].label;
drivers/hwmon/macsmc-hwmon.c
93
int channel, const char **str)
drivers/hwmon/macsmc-hwmon.c
99
*str = hwmon->temp.sensors[channel].label;
drivers/hwmon/max31760.c
384
u32 attr, int channel, const char **str)
drivers/hwmon/max31760.c
391
*str = channel ? "local" : "remote";
drivers/hwmon/max6621.c
350
int channel, const char **str)
drivers/hwmon/max6621.c
356
*str = max6621_temp_labels[channel];
drivers/hwmon/mc33xs2410_hwmon.c
130
u32 attr, int channel, const char **str)
drivers/hwmon/mc33xs2410_hwmon.c
132
*str = mc33xs2410_temp_label[channel];
drivers/hwmon/nzxt-kraken2.c
61
u32 attr, int channel, const char **str)
drivers/hwmon/nzxt-kraken2.c
65
*str = kraken2_temp_label[channel];
drivers/hwmon/nzxt-kraken2.c
68
*str = kraken2_fan_label[channel];
drivers/hwmon/nzxt-kraken3.c
335
int channel, const char **str)
drivers/hwmon/nzxt-kraken3.c
339
*str = kraken3_temp_label[channel];
drivers/hwmon/nzxt-kraken3.c
342
*str = kraken3_fan_label[channel];
drivers/hwmon/nzxt-smart2.c
642
int channel, const char **str)
drivers/hwmon/nzxt-smart2.c
646
*str = fan_label[channel];
drivers/hwmon/nzxt-smart2.c
649
*str = curr_label[channel];
drivers/hwmon/nzxt-smart2.c
652
*str = in_label[channel];
drivers/hwmon/peci/cputemp.c
269
u32 attr, int channel, const char **str)
drivers/hwmon/peci/cputemp.c
276
*str = channel < channel_core ?
drivers/hwmon/peci/dimmtemp.c
165
u32 attr, int channel, const char **str)
drivers/hwmon/peci/dimmtemp.c
172
*str = (const char *)priv->dimmtemp_label[channel];
drivers/hwmon/pmbus/ucd9000.c
425
char str[(I2C_SMBUS_BLOCK_MAX * 2) + 2];
drivers/hwmon/pmbus/ucd9000.c
433
res = bin2hex(str, buffer, min(rc, I2C_SMBUS_BLOCK_MAX));
drivers/hwmon/pmbus/ucd9000.c
437
return simple_read_from_buffer(buf, count, ppos, str, res - str);
drivers/hwmon/powerz.c
58
u32 attr, int channel, const char **str)
drivers/hwmon/powerz.c
61
*str = "IBUS";
drivers/hwmon/powerz.c
64
*str = "VBUS";
drivers/hwmon/powerz.c
66
*str = "VCC1";
drivers/hwmon/powerz.c
68
*str = "VCC2";
drivers/hwmon/powerz.c
70
*str = "VDP";
drivers/hwmon/powerz.c
72
*str = "VDM";
drivers/hwmon/powerz.c
74
*str = "VDD";
drivers/hwmon/powerz.c
78
*str = "TEMP";
drivers/hwmon/powr1220.c
194
int channel, const char **str)
drivers/hwmon/powr1220.c
200
*str = input_names[channel];
drivers/hwmon/sch5627.c
405
int channel, const char **str)
drivers/hwmon/sch5627.c
411
*str = SCH5627_IN_LABELS[channel];
drivers/hwmon/scmi-hwmon.c
103
u32 attr, int channel, const char **str)
drivers/hwmon/scmi-hwmon.c
109
*str = sensor->name;
drivers/hwmon/smpro-hwmon.c
311
u32 attr, int channel, const char **str)
drivers/hwmon/smpro-hwmon.c
317
*str = temperature[channel].label;
drivers/hwmon/smpro-hwmon.c
327
*str = voltage[channel].label;
drivers/hwmon/smpro-hwmon.c
337
*str = curr_sensor[channel].label;
drivers/hwmon/smpro-hwmon.c
347
*str = power[channel].label;
drivers/hwmon/surface_temp.c
140
u32 attr, int channel, const char **str)
drivers/hwmon/surface_temp.c
144
*str = ssam_temp->names[channel];
drivers/hwmon/tmp102.c
73
u32 attr, int channel, const char **str)
drivers/hwmon/tmp102.c
77
*str = tmp102->label;
drivers/hwmon/tmp421.c
220
u32 attr, int channel, const char **str)
drivers/hwmon/tmp421.c
224
*str = data->channel[channel].label;
drivers/hwmon/tmp464.c
253
u32 attr, int channel, const char **str)
drivers/hwmon/tmp464.c
257
*str = data->channel[channel].label;
drivers/hwmon/tps23861.c
326
u32 attr, int channel, const char **str)
drivers/hwmon/tps23861.c
331
*str = tps23861_port_label[channel];
drivers/hwmon/tps23861.c
334
*str = "Die";
drivers/hwmon/w83627ehf.c
1586
u32 attr, int channel, const char **str)
drivers/hwmon/w83627ehf.c
1593
*str = data->temp_label[data->temp_src[channel]];
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
1168
char str[10] = "";
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
1174
if (sscanf(buf, "%s", str) != 1)
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
1179
if (!strcmp(str, "none"))
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
1182
else if (!strcmp(str, "ctxid")) {
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
1188
} else if (!strcmp(str, "vmid")) {
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
1194
} else if (!strcmp(str, "all")) {
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
884
char str[20] = "";
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
890
if (sscanf(buf, "%s", str) != 1)
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c
895
if (!strcmp(str, "instr"))
drivers/hwtracing/coresight/coresight-sysfs.c
379
const char *str;
drivers/hwtracing/coresight/coresight-sysfs.c
382
ret = fwnode_property_read_string(dev_fwnode(dev), "label", &str);
drivers/hwtracing/coresight/coresight-sysfs.c
384
return sysfs_emit(buf, "%s\n", str);
drivers/hwtracing/stm/heartbeat.c
30
static const char str[] = "heartbeat stm source driver is here to serve you";
drivers/hwtracing/stm/heartbeat.c
37
stm_source_write(&heartbeat->data, 0, str, sizeof str);
drivers/i2c/busses/i2c-mlxbf.c
320
#define MLXBF_I2C_RES_PARAMS(addr, size, str) \
drivers/i2c/busses/i2c-mlxbf.c
324
.name = (str) \
drivers/i2c/busses/i2c-pxa.c
301
const char *str = val & bits->mask ? bits->set : bits->unset;
drivers/i2c/busses/i2c-pxa.c
302
if (str)
drivers/i2c/busses/i2c-pxa.c
303
pr_cont(" %s", str);
drivers/iio/accel/kxcjk-1013.c
1094
const char *str;
drivers/iio/accel/kxcjk-1013.c
1097
str = kxtf9_samp_freq_avail;
drivers/iio/accel/kxcjk-1013.c
1099
str = kxcjk1013_samp_freq_avail;
drivers/iio/accel/kxcjk-1013.c
1101
return sprintf(buf, "%s\n", str);
drivers/iio/adc/stm32-dfsdm-adc.c
128
static int stm32_dfsdm_str2val(const char *str,
drivers/iio/adc/stm32-dfsdm-adc.c
134
if (!strcmp(p->name, str))
drivers/iio/frequency/admv1013.c
520
const char *str;
drivers/iio/frequency/admv1013.c
525
ret = device_property_read_string(&spi->dev, "adi,input-mode", &str);
drivers/iio/frequency/admv1013.c
529
if (!strcmp(str, "iq"))
drivers/iio/frequency/admv1013.c
531
else if (!strcmp(str, "if"))
drivers/iio/frequency/admv1013.c
536
ret = device_property_read_string(&spi->dev, "adi,quad-se-mode", &str);
drivers/iio/frequency/admv1013.c
540
if (!strcmp(str, "diff"))
drivers/iio/frequency/admv1013.c
542
else if (!strcmp(str, "se-pos"))
drivers/iio/frequency/admv1013.c
544
else if (!strcmp(str, "se-neg"))
drivers/iio/imu/inv_mpu6050/inv_mpu_magn.c
266
char *str;
drivers/iio/imu/inv_mpu6050/inv_mpu_magn.c
295
str = devm_kstrdup(dev, orient + 1, GFP_KERNEL);
drivers/iio/imu/inv_mpu6050/inv_mpu_magn.c
297
str = devm_kstrdup(dev, orient, GFP_KERNEL);
drivers/iio/imu/inv_mpu6050/inv_mpu_magn.c
299
str = devm_kasprintf(dev, GFP_KERNEL, "-%s", orient);
drivers/iio/imu/inv_mpu6050/inv_mpu_magn.c
300
if (!str)
drivers/iio/imu/inv_mpu6050/inv_mpu_magn.c
303
st->magn_orient.rotation[i] = str;
drivers/iio/industrialio-acpi.c
32
char *str;
drivers/iio/industrialio-acpi.c
65
str = elements[i].string.pointer;
drivers/iio/industrialio-acpi.c
66
if (sscanf(str, "%d %d %d", &val[0], &val[1], &val[2]) != 3) {
drivers/iio/industrialio-acpi.c
73
case -1: str = "-1"; break;
drivers/iio/industrialio-acpi.c
74
case 0: str = "0"; break;
drivers/iio/industrialio-acpi.c
75
case 1: str = "1"; break;
drivers/iio/industrialio-acpi.c
80
orientation->rotation[i * 3 + j] = str;
drivers/iio/industrialio-core.c
895
static int __iio_str_to_fixpoint(const char *str, int fract_mult,
drivers/iio/industrialio-core.c
904
return kstrtoint(str, 0, integer);
drivers/iio/industrialio-core.c
907
if (str[0] == '-') {
drivers/iio/industrialio-core.c
909
str++;
drivers/iio/industrialio-core.c
910
} else if (str[0] == '+') {
drivers/iio/industrialio-core.c
911
str++;
drivers/iio/industrialio-core.c
914
while (*str) {
drivers/iio/industrialio-core.c
915
if ('0' <= *str && *str <= '9') {
drivers/iio/industrialio-core.c
917
i = i * 10 + *str - '0';
drivers/iio/industrialio-core.c
919
f += fract_mult * (*str - '0');
drivers/iio/industrialio-core.c
922
} else if (*str == '\n') {
drivers/iio/industrialio-core.c
923
if (*(str + 1) == '\0')
drivers/iio/industrialio-core.c
926
} else if (!strncmp(str, " dB", sizeof(" dB") - 1) && scale_db) {
drivers/iio/industrialio-core.c
928
str += sizeof(" dB") - 1;
drivers/iio/industrialio-core.c
930
} else if (!strncmp(str, "dB", sizeof("dB") - 1) && scale_db) {
drivers/iio/industrialio-core.c
932
str += sizeof("dB") - 1;
drivers/iio/industrialio-core.c
934
} else if (*str == '.' && integer_part) {
drivers/iio/industrialio-core.c
939
str++;
drivers/iio/industrialio-core.c
965
int iio_str_to_fixpoint(const char *str, int fract_mult,
drivers/iio/industrialio-core.c
968
return __iio_str_to_fixpoint(str, fract_mult, integer, fract, false);
drivers/iio/test/iio-test-rescale.c
593
static int iio_str_to_nano(const char *str, s64 *nano)
drivers/iio/test/iio-test-rescale.c
602
ret = iio_str_to_fixpoint(str, 100000000, &tmp, &tmp2);
drivers/infiniband/core/device.c
881
void ib_get_device_fw_str(struct ib_device *dev, char *str)
drivers/infiniband/core/device.c
884
dev->ops.get_dev_fw_str(dev, str);
drivers/infiniband/core/device.c
886
str[0] = '\0';
drivers/infiniband/core/nldev.c
215
const char *str)
drivers/infiniband/core/nldev.c
220
if (nla_put_string(msg, RDMA_NLDEV_ATTR_DRIVER_STRING, str))
drivers/infiniband/core/sysfs.c
310
speed_info.str);
drivers/infiniband/core/verbs.c
221
const char *str;
drivers/infiniband/core/verbs.c
226
[speed_type] = {.str = _str, .speed = _speed}
drivers/infiniband/core/verbs.c
261
speed_info->str = ib_speed_attrs[speed_idx].str;
drivers/infiniband/hw/bnxt_re/ib_verbs.c
349
void bnxt_re_query_fw_str(struct ib_device *ibdev, char *str)
drivers/infiniband/hw/bnxt_re/ib_verbs.c
353
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d.%d",
drivers/infiniband/hw/bnxt_re/ib_verbs.h
212
void bnxt_re_query_fw_str(struct ib_device *ibdev, char *str);
drivers/infiniband/hw/cxgb4/provider.c
441
static void get_dev_fw_str(struct ib_device *dev, char *str)
drivers/infiniband/hw/cxgb4/provider.c
447
snprintf(str, IB_FW_VERSION_NAME_MAX, "%u.%u.%u.%u",
drivers/infiniband/hw/hfi1/chip.c
10270
const char *str = NULL;
drivers/infiniband/hw/hfi1/chip.c
10273
str = state_complete_reasons[code];
drivers/infiniband/hw/hfi1/chip.c
10275
if (str)
drivers/infiniband/hw/hfi1/chip.c
10276
return str;
drivers/infiniband/hw/hfi1/chip.c
5293
no_room = append_str(buf, &p, &len, table[i].str);
drivers/infiniband/hw/hfi1/chip.c
65
char *str; /* description string */
drivers/infiniband/hw/hfi1/chip.c
7080
const char *str = NULL;
drivers/infiniband/hw/hfi1/chip.c
7083
str = link_down_reason_strs[reason];
drivers/infiniband/hw/hfi1/chip.c
7084
if (!str)
drivers/infiniband/hw/hfi1/chip.c
7085
str = "(invalid)";
drivers/infiniband/hw/hfi1/chip.c
7087
return str;
drivers/infiniband/hw/hfi1/chip.c
72
#define FLAG_ENTRY(str, extra, flag) {flag, str, extra}
drivers/infiniband/hw/hfi1/chip.c
73
#define FLAG_ENTRY0(str, flag) {flag, str, 0}
drivers/infiniband/hw/hfi1/verbs.c
1577
static void hfi1_get_dev_fw_str(struct ib_device *ibdev, char *str)
drivers/infiniband/hw/hfi1/verbs.c
1583
snprintf(str, IB_FW_VERSION_NAME_MAX, "%u.%u.%u", dc8051_ver_maj(ver),
drivers/infiniband/hw/hns/hns_roce_main.c
596
static void hns_roce_get_fw_ver(struct ib_device *device, char *str)
drivers/infiniband/hw/hns/hns_roce_main.c
605
snprintf(str, IB_FW_VERSION_NAME_MAX, "%u.%u.%04u", major, minor,
drivers/infiniband/hw/ionic/ionic_ibdev.c
165
static void ionic_get_dev_fw_str(struct ib_device *ibdev, char *str)
drivers/infiniband/hw/ionic/ionic_ibdev.c
169
ionic_lif_fw_version(dev->lif_cfg.lif, str, IB_FW_VERSION_NAME_MAX);
drivers/infiniband/hw/ionic/ionic_lif_cfg.c
103
void ionic_lif_fw_version(struct ionic_lif *lif, char *str, size_t len)
drivers/infiniband/hw/ionic/ionic_lif_cfg.c
105
strscpy(str, lif->ionic->idev.dev_info.fw_version, len);
drivers/infiniband/hw/ionic/ionic_lif_cfg.h
63
void ionic_lif_fw_version(struct ionic_lif *lif, char *str, size_t len);
drivers/infiniband/hw/irdma/verbs.c
4629
static void irdma_get_dev_fw_str(struct ib_device *dev, char *str)
drivers/infiniband/hw/irdma/verbs.c
4633
snprintf(str, IB_FW_VERSION_NAME_MAX, "%u.%u",
drivers/infiniband/hw/mlx4/main.c
2506
static void get_fw_ver_str(struct ib_device *device, char *str)
drivers/infiniband/hw/mlx4/main.c
2510
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d",
drivers/infiniband/hw/mlx5/main.c
3609
static void get_dev_fw_str(struct ib_device *ibdev, char *str)
drivers/infiniband/hw/mlx5/main.c
3613
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%04d",
drivers/infiniband/hw/mthca/mthca_provider.c
1053
static void get_dev_fw_str(struct ib_device *device, char *str)
drivers/infiniband/hw/mthca/mthca_provider.c
1057
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d",
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
267
char *str = "";
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
273
str = "40Gbps ";
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
275
str = "10Gbps ";
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
277
str = "1Gbps ";
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
279
return str;
drivers/infiniband/hw/ocrdma/ocrdma_main.c
94
static void get_dev_fw_str(struct ib_device *device, char *str)
drivers/infiniband/hw/ocrdma/ocrdma_main.c
98
snprintf(str, IB_FW_VERSION_NAME_MAX, "%s", &dev->attr.fw_ver[0]);
drivers/infiniband/hw/qedr/main.c
74
static void qedr_get_dev_fw_str(struct ib_device *ibdev, char *str)
drivers/infiniband/hw/qedr/main.c
79
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d.%d",
drivers/infiniband/hw/qedr/qedr_iw_cm.c
184
enum ib_event_type ib_event, char *str)
drivers/infiniband/hw/qedr/qedr_iw_cm.c
191
DP_NOTICE(dev, "QP error received: %s\n", str);
drivers/infiniband/hw/usnic/usnic_ib_main.c
339
static void usnic_get_dev_fw_str(struct ib_device *device, char *str)
drivers/infiniband/hw/usnic/usnic_ib_main.c
349
snprintf(str, IB_FW_VERSION_NAME_MAX, "%s", info.fw_version);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
100
static void pvrdma_get_fw_ver_str(struct ib_device *device, char *str)
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
104
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d\n",
drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
430
char str[NAME_MAX];
drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
437
rtrs_addr_to_str(&path, str, sizeof(str));
drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
440
"%s", str);
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2634
char str[NAME_MAX];
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2640
rtrs_addr_to_str(&path, str, sizeof(str));
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2647
ERR_PTR(err), str, clt_path->hca_name, clt_path->hca_port);
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2654
ERR_PTR(err), str, clt_path->hca_name, clt_path->hca_port);
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
264
char str[NAME_MAX];
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
271
rtrs_addr_to_str(&path, str, sizeof(str));
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
277
"%s", str);
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
41
char str[MAXHOSTNAMELEN];
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
51
sockaddr_to_str((struct sockaddr *)&srv_path->s.dst_addr, str,
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
52
sizeof(str));
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
54
rtrs_info(s, "disconnect for path %s requested\n", str);
drivers/infiniband/ulp/rtrs/rtrs-srv.c
1797
char str[NAME_MAX];
drivers/infiniband/ulp/rtrs/rtrs-srv.c
1839
rtrs_addr_to_str(&path, str, sizeof(str));
drivers/infiniband/ulp/rtrs/rtrs-srv.c
1840
strscpy(srv_path->s.sessname, str, sizeof(srv_path->s.sessname));
drivers/infiniband/ulp/rtrs/rtrs.c
540
int rtrs_addr_to_sockaddr(const char *str, size_t len, u16 port,
drivers/infiniband/ulp/rtrs/rtrs.c
545
d = strchr(str, ',');
drivers/infiniband/ulp/rtrs/rtrs.c
547
d = strchr(str, '@');
drivers/infiniband/ulp/rtrs/rtrs.c
549
if (rtrs_str_to_sockaddr(str, d - str, 0, addr->src))
drivers/infiniband/ulp/rtrs/rtrs.c
552
len -= d - str;
drivers/infiniband/ulp/rtrs/rtrs.c
553
str = d;
drivers/infiniband/ulp/rtrs/rtrs.c
558
return rtrs_str_to_sockaddr(str, len, port, addr->dst);
drivers/infiniband/ulp/rtrs/rtrs.h
189
int rtrs_addr_to_sockaddr(const char *str, size_t len, u16 port,
drivers/input/evdev.c
762
static int str_to_user(const char *str, unsigned int maxlen, void __user *p)
drivers/input/evdev.c
766
if (!str)
drivers/input/evdev.c
769
len = strlen(str) + 1;
drivers/input/evdev.c
773
return copy_to_user(p, str, len) ? -EFAULT : len;
drivers/input/keyboard/sh_keysc.c
73
const char *str)
drivers/input/keyboard/sh_keysc.c
78
dev_dbg(dev, "%s[%d] 0x%lx\n", str, k, map[k]);
drivers/input/misc/da7280.c
722
const char *str)
drivers/input/misc/da7280.c
724
if (!strcmp(str, "LRA")) {
drivers/input/misc/da7280.c
726
} else if (!strcmp(str, "ERM-bar")) {
drivers/input/misc/da7280.c
728
} else if (!strcmp(str, "ERM-coin")) {
drivers/input/misc/da7280.c
737
const char *str)
drivers/input/misc/da7280.c
739
if (!strcmp(str, "Single-pattern")) {
drivers/input/misc/da7280.c
741
} else if (!strcmp(str, "Multi-pattern")) {
drivers/input/misc/da7280.c
750
const char *str)
drivers/input/misc/da7280.c
752
if (!strcmp(str, "Rising-edge")) {
drivers/input/misc/da7280.c
754
} else if (!strcmp(str, "Falling-edge")) {
drivers/input/misc/da7280.c
756
} else if (!strcmp(str, "Both-edge")) {
drivers/input/misc/da7280.c
778
const char *str;
drivers/input/misc/da7280.c
786
error = device_property_read_string(dev, "dlg,actuator-type", &str);
drivers/input/misc/da7280.c
788
haptics->dev_type = da7280_haptic_of_mode_str(dev, str);
drivers/input/misc/da7280.c
857
error = device_property_read_string(dev, gpi_str2, &str);
drivers/input/misc/da7280.c
860
da7280_haptic_of_gpi_mode_str(dev, str);
drivers/input/misc/da7280.c
864
error = device_property_read_string(dev, gpi_str3, &str);
drivers/input/misc/da7280.c
867
da7280_haptic_of_gpi_pol_str(dev, str);
drivers/input/misc/ideapad_slidebar.c
123
static bool slidebar_i8042_filter(unsigned char data, unsigned char str,
drivers/input/misc/ideapad_slidebar.c
129
if (str & I8042_STR_AUXDATA)
drivers/input/misc/uinput.c
863
static int uinput_str_to_user(void __user *dest, const char *str,
drivers/input/misc/uinput.c
869
if (!str)
drivers/input/misc/uinput.c
875
len = strlen(str) + 1;
drivers/input/misc/uinput.c
879
ret = copy_to_user(p, str, len);
drivers/input/serio/gscps2.c
219
ps2port->buffer[ps2port->append].str = status;
drivers/input/serio/gscps2.c
239
status = ps2port->buffer[ps2port->act].str;
drivers/input/serio/gscps2.c
98
u8 str;
drivers/input/serio/hp_sdc.c
1061
const char *str;
drivers/input/serio/hp_sdc.c
1075
HP_SDC_XTD_REV_STRINGS(hp_sdc.r7e & HP_SDC_XTD_REV, str)
drivers/input/serio/hp_sdc.c
1076
printk(KERN_INFO PREFIX "Revision: %s\n", str);
drivers/input/serio/i8042.c
259
unsigned char data, str;
drivers/input/serio/i8042.c
264
while ((str = i8042_read_status()) & I8042_STR_OBF) {
drivers/input/serio/i8042.c
271
data, str & I8042_STR_AUXDATA ? "aux" : "kbd");
drivers/input/serio/i8042.c
472
static bool i8042_filter(unsigned char data, unsigned char str,
drivers/input/serio/i8042.c
476
if ((~str & I8042_STR_AUXDATA) &&
drivers/input/serio/i8042.c
487
if (i8042_platform_filter(data, str, serio, i8042_platform_filter_context)) {
drivers/input/serio/i8042.c
511
static int i8042_handle_mux(u8 str, u8 *data, unsigned int *dfl)
drivers/input/serio/i8042.c
517
mux_port = (str >> 6) & 3;
drivers/input/serio/i8042.c
520
if (str & I8042_STR_MUXERR) {
drivers/input/serio/i8042.c
522
str, *data);
drivers/input/serio/i8042.c
561
unsigned char str, data;
drivers/input/serio/i8042.c
567
str = i8042_read_status();
drivers/input/serio/i8042.c
568
if (unlikely(~str & I8042_STR_OBF))
drivers/input/serio/i8042.c
573
if (i8042_mux_present && (str & I8042_STR_AUXDATA)) {
drivers/input/serio/i8042.c
574
port_no = i8042_handle_mux(str, &data, &dfl);
drivers/input/serio/i8042.c
577
dfl = (str & I8042_STR_PARITY) ? SERIO_PARITY : 0;
drivers/input/serio/i8042.c
578
if ((str & I8042_STR_TIMEOUT) && !i8042_notimeout)
drivers/input/serio/i8042.c
581
port_no = (str & I8042_STR_AUXDATA) ?
drivers/input/serio/i8042.c
594
filtered = i8042_filter(data, str, serio);
drivers/input/serio/i8042.c
753
unsigned char str, data;
drivers/input/serio/i8042.c
757
str = i8042_read_status();
drivers/input/serio/i8042.c
758
if (!(str & I8042_STR_OBF))
drivers/input/serio/i8042.c
763
data, str & I8042_STR_AUXDATA ? "aux" : "kbd");
drivers/input/serio/i8042.c
765
if (i8042_irq_being_tested && data == 0xa5 && (str & I8042_STR_AUXDATA))
drivers/input/tablet/aiptek.c
353
static int map_str_to_val(const struct aiptek_map *map, const char *str, size_t count)
drivers/input/tablet/aiptek.c
357
if (str[count - 1] == '\n')
drivers/input/tablet/aiptek.c
361
if (!strncmp(str, p->string, count))
drivers/input/touchscreen/silead.c
589
const char *str;
drivers/input/touchscreen/silead.c
592
error = device_property_read_string(dev, "firmware-name", &str);
drivers/input/touchscreen/silead.c
595
"silead/%s", str);
drivers/iommu/amd/init.c
3636
static int __init parse_amd_iommu_dump(char *str)
drivers/iommu/amd/init.c
3643
static int __init parse_amd_iommu_intr(char *str)
drivers/iommu/amd/init.c
3645
for (; *str; ++str) {
drivers/iommu/amd/init.c
3646
if (strncmp(str, "legacy", 6) == 0) {
drivers/iommu/amd/init.c
3650
if (strncmp(str, "vapic", 5) == 0) {
drivers/iommu/amd/init.c
3658
static int __init parse_amd_iommu_options(char *str)
drivers/iommu/amd/init.c
3660
if (!str)
drivers/iommu/amd/init.c
3663
while (*str) {
drivers/iommu/amd/init.c
3664
if (strncmp(str, "fullflush", 9) == 0) {
drivers/iommu/amd/init.c
3667
} else if (strncmp(str, "force_enable", 12) == 0) {
drivers/iommu/amd/init.c
3669
} else if (strncmp(str, "off", 3) == 0) {
drivers/iommu/amd/init.c
3671
} else if (strncmp(str, "force_isolation", 15) == 0) {
drivers/iommu/amd/init.c
3673
} else if (strncmp(str, "pgtbl_v1", 8) == 0) {
drivers/iommu/amd/init.c
3675
} else if (strncmp(str, "pgtbl_v2", 8) == 0) {
drivers/iommu/amd/init.c
3677
} else if (strncmp(str, "irtcachedis", 11) == 0) {
drivers/iommu/amd/init.c
3679
} else if (strncmp(str, "nohugepages", 11) == 0) {
drivers/iommu/amd/init.c
3682
} else if (strncmp(str, "v2_pgsizes_only", 15) == 0) {
drivers/iommu/amd/init.c
3686
pr_notice("Unknown option - '%s'\n", str);
drivers/iommu/amd/init.c
3689
str += strcspn(str, ",");
drivers/iommu/amd/init.c
3690
while (*str == ',')
drivers/iommu/amd/init.c
3691
str++;
drivers/iommu/amd/init.c
3697
static int __init parse_ivrs_ioapic(char *str)
drivers/iommu/amd/init.c
3703
if (sscanf(str, "=%d@%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
drivers/iommu/amd/init.c
3704
sscanf(str, "=%d@%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5)
drivers/iommu/amd/init.c
3707
if (sscanf(str, "[%d]=%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
drivers/iommu/amd/init.c
3708
sscanf(str, "[%d]=%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5) {
drivers/iommu/amd/init.c
3710
str, id, seg, bus, dev, fn);
drivers/iommu/amd/init.c
3714
pr_err("Invalid command line: ivrs_ioapic%s\n", str);
drivers/iommu/amd/init.c
3720
str);
drivers/iommu/amd/init.c
3735
static int __init parse_ivrs_hpet(char *str)
drivers/iommu/amd/init.c
3741
if (sscanf(str, "=%d@%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
drivers/iommu/amd/init.c
3742
sscanf(str, "=%d@%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5)
drivers/iommu/amd/init.c
3745
if (sscanf(str, "[%d]=%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
drivers/iommu/amd/init.c
3746
sscanf(str, "[%d]=%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5) {
drivers/iommu/amd/init.c
3748
str, id, seg, bus, dev, fn);
drivers/iommu/amd/init.c
3752
pr_err("Invalid command line: ivrs_hpet%s\n", str);
drivers/iommu/amd/init.c
3758
str);
drivers/iommu/amd/init.c
3775
static int __init parse_ivrs_acpihid(char *str)
drivers/iommu/amd/init.c
3782
addr = strchr(str, '@');
drivers/iommu/amd/init.c
3784
addr = strchr(str, '=');
drivers/iommu/amd/init.c
3793
if (sscanf(str, "[%x:%x.%x]=%s", &bus, &dev, &fn, acpiid) == 4 ||
drivers/iommu/amd/init.c
3794
sscanf(str, "[%x:%x:%x.%x]=%s", &seg, &bus, &dev, &fn, acpiid) == 5) {
drivers/iommu/amd/init.c
3796
str, acpiid, seg, bus, dev, fn);
drivers/iommu/amd/init.c
3805
if (strlen(str) > ACPIID_LEN)
drivers/iommu/amd/init.c
3808
if (sscanf(str, "=%s", acpiid) != 1)
drivers/iommu/amd/init.c
3816
pr_err("Invalid command line: ivrs_acpihid%s\n", str);
drivers/iommu/dma-iommu.c
87
static int __init iommu_dma_forcedac_setup(char *str)
drivers/iommu/dma-iommu.c
89
int ret = kstrtobool(str, &iommu_dma_forcedac);
drivers/iommu/intel/iommu.c
233
static int __init intel_iommu_setup(char *str)
drivers/iommu/intel/iommu.c
235
if (!str)
drivers/iommu/intel/iommu.c
238
while (*str) {
drivers/iommu/intel/iommu.c
239
if (!strncmp(str, "on", 2)) {
drivers/iommu/intel/iommu.c
242
} else if (!strncmp(str, "off", 3)) {
drivers/iommu/intel/iommu.c
246
} else if (!strncmp(str, "igfx_off", 8)) {
drivers/iommu/intel/iommu.c
249
} else if (!strncmp(str, "forcedac", 8)) {
drivers/iommu/intel/iommu.c
252
} else if (!strncmp(str, "strict", 6)) {
drivers/iommu/intel/iommu.c
255
} else if (!strncmp(str, "sp_off", 6)) {
drivers/iommu/intel/iommu.c
258
} else if (!strncmp(str, "sm_on", 5)) {
drivers/iommu/intel/iommu.c
261
} else if (!strncmp(str, "sm_off", 6)) {
drivers/iommu/intel/iommu.c
264
} else if (!strncmp(str, "tboot_noforce", 13)) {
drivers/iommu/intel/iommu.c
268
pr_notice("Unknown option - '%s'\n", str);
drivers/iommu/intel/iommu.c
271
str += strcspn(str, ",");
drivers/iommu/intel/iommu.c
272
while (*str == ',')
drivers/iommu/intel/iommu.c
273
str++;
drivers/iommu/intel/iommu.h
1371
static inline const char *decode_prq_descriptor(char *str, size_t size,
drivers/iommu/intel/iommu.h
1374
char *buf = str;
drivers/iommu/intel/iommu.h
1396
return str;
drivers/iommu/intel/perf.c
116
void dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size)
drivers/iommu/intel/perf.c
122
memset(str, 0, size);
drivers/iommu/intel/perf.c
125
bytes += scnprintf(str + bytes, size - bytes,
drivers/iommu/intel/perf.c
133
bytes += scnprintf(str + bytes, size - bytes,
drivers/iommu/intel/perf.c
159
bytes += scnprintf(str + bytes, size - bytes,
drivers/iommu/intel/perf.h
43
void dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size);
drivers/iommu/intel/perf.h
68
dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size)
drivers/iommu/iommu-debug-pagealloc.c
160
static int __init iommu_debug_pagealloc(char *str)
drivers/iommu/iommu-debug-pagealloc.c
162
return kstrtobool(str, &needed);
drivers/iommu/iommu.c
769
static int __init iommu_set_def_domain_type(char *str)
drivers/iommu/iommu.c
774
ret = kstrtobool(str, &pt);
drivers/iommu/iommu.c
787
static int __init iommu_dma_setup(char *str)
drivers/iommu/iommu.c
789
int ret = kstrtobool(str, &iommu_dma_strict);
drivers/iommu/irq_remapping.c
50
static __init int setup_nointremap(char *str)
drivers/iommu/irq_remapping.c
57
static __init int setup_irqremap(char *str)
drivers/iommu/irq_remapping.c
59
if (!str)
drivers/iommu/irq_remapping.c
62
while (*str) {
drivers/iommu/irq_remapping.c
63
if (!strncmp(str, "on", 2)) {
drivers/iommu/irq_remapping.c
66
} else if (!strncmp(str, "off", 3)) {
drivers/iommu/irq_remapping.c
69
} else if (!strncmp(str, "nosid", 5))
drivers/iommu/irq_remapping.c
71
else if (!strncmp(str, "no_x2apic_optout", 16))
drivers/iommu/irq_remapping.c
73
else if (!strncmp(str, "nopost", 6))
drivers/iommu/irq_remapping.c
75
else if (IS_ENABLED(CONFIG_X86_POSTED_MSI) && !strncmp(str, "posted_msi", 10))
drivers/iommu/irq_remapping.c
77
str += strcspn(str, ",");
drivers/iommu/irq_remapping.c
78
while (*str == ',')
drivers/iommu/irq_remapping.c
79
str++;
drivers/iommu/omap-iommu-debug.c
33
const char *str = "%20s: %08x\n"; \
drivers/iommu/omap-iommu-debug.c
37
bytes = scnprintf(p, maxcol, str, __stringify(name), \
drivers/iommu/s390-iommu.c
1096
static int __init s390_iommu_setup(char *str)
drivers/iommu/s390-iommu.c
1098
if (!strcmp(str, "strict")) {
drivers/iommu/s390-iommu.c
1107
static int __init s390_iommu_aperture_setup(char *str)
drivers/iommu/s390-iommu.c
1109
if (kstrtou32(str, 10, &s390_iommu_aperture_factor))
drivers/irqchip/irq-gic-v5-its.c
1080
u8 str;
drivers/irqchip/irq-gic-v5-its.c
1084
str = devtab_cfgr_field(its_node, STRUCTURE);
drivers/irqchip/irq-gic-v5-its.c
1085
devtab_linear = (str == GICV5_ITS_DT_ITT_CFGR_STRUCTURE_LINEAR);
drivers/irqchip/irq-gic-v5-its.c
423
u8 str = devtab_cfgr_field(its, STRUCTURE);
drivers/irqchip/irq-gic-v5-its.c
428
if (str == GICV5_ITS_DT_ITT_CFGR_STRUCTURE_LINEAR) {
drivers/irqchip/irq-gic-v5-its.c
707
u8 str = devtab_cfgr_field(its, STRUCTURE);
drivers/irqchip/irq-gic-v5-its.c
709
if (str == GICV5_ITS_DT_ITT_CFGR_STRUCTURE_LINEAR) {
drivers/irqchip/irq-renesas-intc-irqpin.c
171
static void intc_irqpin_dbg(struct intc_irqpin_irq *i, char *str)
drivers/irqchip/irq-renesas-intc-irqpin.c
174
str, i->requested_irq, i->hw_irq, i->domain_irq);
drivers/irqchip/irq-renesas-irqc.c
61
static void irqc_dbg(struct irqc_irq *i, char *str)
drivers/irqchip/irq-renesas-irqc.c
63
dev_dbg(i->p->dev, "%s (%d:%d)\n", str, i->requested_irq, i->hw_irq);
drivers/leds/leds-lm3530.c
144
static int lm3530_get_mode_from_str(const char *str)
drivers/leds/leds-lm3530.c
149
if (sysfs_streq(str, mode_map[i].mode))
drivers/leds/leds-lp3952.c
100
ret = device_property_read_string(dev, label, &str);
drivers/leds/leds-lp3952.c
104
strscpy(dest, str, LP3952_LABEL_MAX_LEN);
drivers/leds/leds-lp3952.c
98
const char *str;
drivers/leds/leds-mc13783.c
144
const char *str;
drivers/leds/leds-mc13783.c
151
if (!of_property_read_string(child, "label", &str))
drivers/leds/leds-mc13783.c
152
pdata->led[i].name = str;
drivers/leds/leds-mc13783.c
154
&str))
drivers/leds/leds-mc13783.c
155
pdata->led[i].default_trigger = str;
drivers/leds/rgb/leds-lp5812.c
159
static ssize_t parse_drive_mode(struct lp5812_chip *chip, const char *str)
drivers/leds/rgb/leds-lp5812.c
168
if (sysfs_streq(str, LP5812_MODE_DIRECT_NAME)) {
drivers/leds/rgb/leds-lp5812.c
174
if (!sysfs_streq(str, chip_mode_map[i].mode_name))
drivers/md/dm-cache-target.c
3278
static int parse_cblock_range(struct cache *cache, const char *str,
drivers/md/dm-cache-target.c
3288
r = sscanf(str, "%llu-%llu%c", &b, &e, &dummy);
drivers/md/dm-cache-target.c
3299
r = sscanf(str, "%llu%c", &b, &dummy);
drivers/md/dm-cache-target.c
3307
DMERR("%s: invalid cblock range '%s'", cache_device_name(cache), str);
drivers/md/dm-crypt.c
2464
static bool contains_whitespace(const char *str)
drivers/md/dm-crypt.c
2466
while (*str)
drivers/md/dm-crypt.c
2467
if (isspace(*str++))
drivers/md/dm-init.c
111
static char __init *dm_parse_table_entry(struct dm_device *dev, char *str)
drivers/md/dm-init.c
120
field[0] = str;
drivers/md/dm-init.c
162
static int __init dm_parse_table(struct dm_device *dev, char *str)
drivers/md/dm-init.c
164
char *table_entry = str;
drivers/md/dm-init.c
167
DMDEBUG("parsing table \"%s\"", str);
drivers/md/dm-init.c
192
static char __init *dm_parse_device_entry(struct dm_device *dev, char *str)
drivers/md/dm-init.c
199
field[0] = str;
drivers/md/dm-init.c
239
static int __init dm_parse_devices(struct list_head *devices, char *str)
drivers/md/dm-init.c
243
char *device = str;
drivers/md/dm-init.c
245
DMDEBUG("parsing \"%s\"", str);
drivers/md/dm-init.c
275
char *str;
drivers/md/dm-init.c
285
str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL);
drivers/md/dm-init.c
286
if (!str)
drivers/md/dm-init.c
289
r = dm_parse_devices(&devices, str);
drivers/md/dm-init.c
315
kfree(str);
drivers/md/dm-init.c
88
static char __init *str_field_delimit(char **str, char separator)
drivers/md/dm-init.c
93
*str = skip_spaces(*str);
drivers/md/dm-init.c
94
s = strchr(*str, separator);
drivers/md/dm-init.c
98
*str = strim(*str);
drivers/md/dm-ioctl.c
1035
static int invalid_str(char *str, void *end)
drivers/md/dm-ioctl.c
1037
while ((void *) str < end)
drivers/md/dm-ioctl.c
1038
if (!*str++)
drivers/md/dm-ioctl.c
108
static struct hash_cell *__get_uuid_cell(const char *str)
drivers/md/dm-ioctl.c
116
c = strcmp(hc->uuid, str);
drivers/md/dm-ioctl.c
89
static struct hash_cell *__get_name_cell(const char *str)
drivers/md/dm-ioctl.c
97
c = strcmp(hc->name, str);
drivers/md/dm-log-userspace-base.c
131
char *str = NULL;
drivers/md/dm-log-userspace-base.c
143
str = kzalloc(str_size, GFP_KERNEL);
drivers/md/dm-log-userspace-base.c
144
if (!str) {
drivers/md/dm-log-userspace-base.c
149
str_size = sprintf(str, "%llu", (unsigned long long)ti->len);
drivers/md/dm-log-userspace-base.c
151
str_size += sprintf(str + str_size, " %s", argv[i]);
drivers/md/dm-log-userspace-base.c
153
*ctr_str = str;
drivers/md/md-autodetect.c
107
str = str1;
drivers/md/md-autodetect.c
115
minor, pername, str);
drivers/md/md-autodetect.c
116
md_setup_args[ent].device_names = str;
drivers/md/md-autodetect.c
229
static int __init raid_setup(char *str)
drivers/md/md-autodetect.c
233
len = strlen(str) + 1;
drivers/md/md-autodetect.c
237
char *comma = strchr(str+pos, ',');
drivers/md/md-autodetect.c
240
wlen = (comma-str)-pos;
drivers/md/md-autodetect.c
243
if (!strncmp(str, "noautodetect", wlen))
drivers/md/md-autodetect.c
245
if (!strncmp(str, "autodetect", wlen))
drivers/md/md-autodetect.c
247
if (strncmp(str, "partitionable", wlen)==0)
drivers/md/md-autodetect.c
249
if (strncmp(str, "part", wlen)==0)
drivers/md/md-autodetect.c
60
static int __init md_setup(char *str)
drivers/md/md-autodetect.c
67
if (*str == 'd') {
drivers/md/md-autodetect.c
69
str++;
drivers/md/md-autodetect.c
71
if (get_option(&str, &minor) != 2) { /* MD Number */
drivers/md/md-autodetect.c
75
str1 = str;
drivers/md/md-autodetect.c
89
switch (get_option(&str, &level)) { /* RAID level */
drivers/md/md-autodetect.c
92
if (get_option(&str, &factor) != 2 || /* Chunk Size */
drivers/md/md-autodetect.c
93
get_option(&str, &fault) != 2) {
drivers/md/md-cluster.c
1172
char str[64];
drivers/md/md-cluster.c
1191
snprintf(str, 64, "bitmap%04d", i);
drivers/md/md-cluster.c
1192
bm_lockres = lockres_init(mddev, str, NULL, 1);
drivers/md/md-cluster.c
1194
pr_err("Cannot initialize %s lock\n", str);
drivers/md/md-cluster.c
1231
char str[64];
drivers/md/md-cluster.c
1254
snprintf(str, 64, "bitmap%04d", i);
drivers/md/md-cluster.c
1255
bm_lockres = lockres_init(mddev, str, NULL, 1);
drivers/md/md-cluster.c
1257
pr_err("md-cluster: Cannot initialize %s\n", str);
drivers/md/md-cluster.c
1542
char str[64];
drivers/md/md-cluster.c
1558
memset(str, '\0', 64);
drivers/md/md-cluster.c
1559
snprintf(str, 64, "bitmap%04d", slot);
drivers/md/md-cluster.c
1560
cinfo->other_bitmap_lockres[i] = lockres_init(mddev, str, NULL, 1);
drivers/md/md-cluster.c
300
char str[64];
drivers/md/md-cluster.c
307
snprintf(str, 64, "bitmap%04d", slot);
drivers/md/md-cluster.c
308
bm_lockres = lockres_init(mddev, str, NULL, 1);
drivers/md/md-cluster.c
317
str, ret);
drivers/md/md-cluster.c
829
char str[64];
drivers/md/md-cluster.c
834
memset(str, '\0', 64);
drivers/md/md-cluster.c
835
snprintf(str, 64, "bitmap%04d", i);
drivers/md/md-cluster.c
836
bm_lockres = lockres_init(mddev, str, NULL, 1);
drivers/md/md-cluster.c
887
char str[64];
drivers/md/md-cluster.c
903
memset(str, 0, 64);
drivers/md/md-cluster.c
904
sprintf(str, "%pU", mddev->uuid);
drivers/md/md-cluster.c
905
ret = dlm_new_lockspace(str, mddev->bitmap_info.cluster_name,
drivers/md/md-cluster.c
956
pr_info("md-cluster: Joined cluster %s slot %d\n", str, cinfo->slot_number);
drivers/md/md-cluster.c
957
snprintf(str, 64, "bitmap%04d", cinfo->slot_number - 1);
drivers/md/md-cluster.c
958
cinfo->bitmap_lockres = lockres_init(mddev, str, NULL, 1);
drivers/md/md.c
3000
static int cmd_match(const char *cmd, const char *str)
drivers/md/md.c
3006
while (*cmd && *str && *cmd == *str) {
drivers/md/md.c
3008
str++;
drivers/md/md.c
3012
if (*str || *cmd)
drivers/media/dvb-frontends/lgdt3306a.c
1645
u32 str;
drivers/media/dvb-frontends/lgdt3306a.c
1675
str = 0;
drivers/media/dvb-frontends/lgdt3306a.c
1677
str = (0xffff * 65) / 100; /* 65% */
drivers/media/dvb-frontends/lgdt3306a.c
1679
str = state->snr - ref_snr;
drivers/media/dvb-frontends/lgdt3306a.c
1680
str /= 50;
drivers/media/dvb-frontends/lgdt3306a.c
1681
str += 78; /* 78%-100% */
drivers/media/dvb-frontends/lgdt3306a.c
1682
if (str > 100)
drivers/media/dvb-frontends/lgdt3306a.c
1683
str = 100;
drivers/media/dvb-frontends/lgdt3306a.c
1684
str = (0xffff * str) / 100;
drivers/media/dvb-frontends/lgdt3306a.c
1686
*strength = (u16)str;
drivers/media/dvb-frontends/lgs8gxx.c
793
u8 str;
drivers/media/dvb-frontends/lgs8gxx.c
818
lgs8gxx_read_reg(priv, 0x94, &str);
drivers/media/dvb-frontends/lgs8gxx.c
819
if (max_strength < str)
drivers/media/dvb-frontends/lgs8gxx.c
820
max_strength = str;
drivers/media/dvb-frontends/stb0899_drv.c
1249
static inline void CONVERT32(u32 x, char *str)
drivers/media/dvb-frontends/stb0899_drv.c
1251
*str++ = (x >> 24) & 0xff;
drivers/media/dvb-frontends/stb0899_drv.c
1252
*str++ = (x >> 16) & 0xff;
drivers/media/dvb-frontends/stb0899_drv.c
1253
*str++ = (x >> 8) & 0xff;
drivers/media/dvb-frontends/stb0899_drv.c
1254
*str++ = (x >> 0) & 0xff;
drivers/media/dvb-frontends/stb0899_drv.c
1255
*str = '\0';
drivers/media/dvb-frontends/stv090x.c
3661
s32 str;
drivers/media/dvb-frontends/stv090x.c
3669
str = stv090x_table_lookup(stv090x_rf_tab,
drivers/media/dvb-frontends/stv090x.c
3672
str = 0;
drivers/media/dvb-frontends/stv090x.c
3674
str = -100;
drivers/media/dvb-frontends/stv090x.c
3675
*strength = (str + 100) * 0xFFFF / 100;
drivers/media/i2c/ccs-pll.c
50
char *str)
drivers/media/i2c/ccs-pll.c
56
str, val, min, max);
drivers/media/i2c/ccs/ccs-core.c
194
char str[16] = "";
drivers/media/i2c/ccs/ccs-core.c
215
snprintf(str, sizeof(str), ", %u",
drivers/media/i2c/ccs/ccs-core.c
221
reg, ccs_limits[i].name, val, val, str);
drivers/media/i2c/tda1997x.c
2297
const char *str;
drivers/media/i2c/tda1997x.c
2356
if (!of_property_read_string(np, "nxp,audout-format", &str)) {
drivers/media/i2c/tda1997x.c
2357
if (strcmp(str, "i2s") == 0)
drivers/media/i2c/tda1997x.c
2359
else if (strcmp(str, "spdif") == 0)
drivers/media/pci/cx18/cx18-driver.c
703
cx->in_work_order[i].str = cx->epu_debug_str;
drivers/media/pci/cx18/cx18-driver.h
349
char *str;
drivers/media/pci/cx18/cx18-gpio.c
284
char *str;
drivers/media/pci/cx18/cx18-gpio.c
290
str = "gpio-mux";
drivers/media/pci/cx18/cx18-gpio.c
295
str = "gpio-reset-ctrl";
drivers/media/pci/cx18/cx18-gpio.c
303
snprintf(sd->name, sizeof(sd->name), "%s %s", cx->v4l2_dev.name, str);
drivers/media/pci/cx18/cx18-mailbox.c
327
char *str = order->str;
drivers/media/pci/cx18/cx18-mailbox.c
329
CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str);
drivers/media/pci/cx18/cx18-mailbox.c
330
p = strchr(str, '.');
drivers/media/pci/cx18/cx18-mailbox.c
331
if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags) && p && p > str)
drivers/media/pci/cx18/cx18-mailbox.c
448
char *str = order->str;
drivers/media/pci/cx18/cx18-mailbox.c
450
str[0] = '\0';
drivers/media/pci/cx18/cx18-mailbox.c
454
cx18_memcpy_fromio(cx, str, cx->enc_mem + str_offset, 252);
drivers/media/pci/cx18/cx18-mailbox.c
455
str[252] = '\0';
drivers/media/pci/ddbridge/ddbridge-sx8.c
89
s32 str;
drivers/media/pci/ddbridge/ddbridge-sx8.c
91
str = 100000 -
drivers/media/pci/ddbridge/ddbridge-sx8.c
96
p->strength.stat[0].svalue = str;
drivers/media/pci/mgb4/mgb4_core.c
101
u32 attr, int channel, const char **str)
drivers/media/pci/mgb4/mgb4_core.c
106
*str = "FPGA Temperature";
drivers/media/pci/solo6x10/solo6x10-enc.c
130
u8 *str = solo_enc->osd_text;
drivers/media/pci/solo6x10/solo6x10-enc.c
141
if (!*str) {
drivers/media/pci/solo6x10/solo6x10-enc.c
150
for (i = 0; *str; i++, str++) {
drivers/media/pci/solo6x10/solo6x10-enc.c
153
bitrev8(vga_data[(*str << 4) | j]);
drivers/media/platform/amphion/vdec.c
1784
static int vdec_get_slot_debug_info(struct vpu_inst *inst, char *str, u32 size, u32 i)
drivers/media/platform/amphion/vdec.c
1796
num = scnprintf(str, size, "slot[%2d] :", i);
drivers/media/platform/amphion/vdec.c
1798
num += scnprintf(str + num, size - num, " %2d",
drivers/media/platform/amphion/vdec.c
1800
num += scnprintf(str + num, size - num, "; state = %d", vdec->slots[i].state);
drivers/media/platform/amphion/vdec.c
1802
num += scnprintf(str + num, size - num, " -1");
drivers/media/platform/amphion/vdec.c
1806
num += scnprintf(str + num, size - num, "; %d",
drivers/media/platform/amphion/vdec.c
1809
num += scnprintf(str + num, size - num, "\n");
drivers/media/platform/amphion/vdec.c
1816
static int vdec_get_debug_info(struct vpu_inst *inst, char *str, u32 size, u32 i)
drivers/media/platform/amphion/vdec.c
1823
num = scnprintf(str, size,
drivers/media/platform/amphion/vdec.c
1829
num = scnprintf(str, size,
drivers/media/platform/amphion/vdec.c
1837
num = scnprintf(str, size,
drivers/media/platform/amphion/vdec.c
1845
num = scnprintf(str, size, "input_frame_count = %d\n", vdec->params.frame_count);
drivers/media/platform/amphion/vdec.c
1848
num = scnprintf(str, size, "decoded_frame_count = %d\n", vdec->decoded_frame_count);
drivers/media/platform/amphion/vdec.c
1851
num = scnprintf(str, size, "display_frame_count = %d\n", vdec->display_frame_count);
drivers/media/platform/amphion/vdec.c
1854
num = scnprintf(str, size, "sequence = %d\n", vdec->sequence);
drivers/media/platform/amphion/vdec.c
1857
num = scnprintf(str, size, "drain = %d, eos = %d, source_change = %d\n",
drivers/media/platform/amphion/vdec.c
1861
num = scnprintf(str, size, "fps = %d/%d\n",
drivers/media/platform/amphion/vdec.c
1866
num = scnprintf(str, size, "colorspace: %d, %d, %d, %d (%d)\n",
drivers/media/platform/amphion/vdec.c
1874
num = vdec_get_slot_debug_info(inst, str, size, i - 10);
drivers/media/platform/amphion/venc.c
1167
static int venc_get_debug_info(struct vpu_inst *inst, char *str, u32 size, u32 i)
drivers/media/platform/amphion/venc.c
1174
num = scnprintf(str, size, "profile = %d\n", venc->params.profile);
drivers/media/platform/amphion/venc.c
1177
num = scnprintf(str, size, "level = %d\n", venc->params.level);
drivers/media/platform/amphion/venc.c
1180
num = scnprintf(str, size, "fps = %d/%d\n",
drivers/media/platform/amphion/venc.c
1185
num = scnprintf(str, size, "%d x %d -> %d x %d\n",
drivers/media/platform/amphion/venc.c
1192
num = scnprintf(str, size, "(%d, %d) %d x %d\n",
drivers/media/platform/amphion/venc.c
1199
num = scnprintf(str, size,
drivers/media/platform/amphion/venc.c
1207
num = scnprintf(str, size, "gop = %d\n", venc->params.gop_length);
drivers/media/platform/amphion/venc.c
1210
num = scnprintf(str, size, "bframes = %d\n", venc->params.bframes);
drivers/media/platform/amphion/venc.c
1213
num = scnprintf(str, size, "rc: %s, mode = %d, bitrate = %d(%d), qp = %d\n",
drivers/media/platform/amphion/venc.c
1221
num = scnprintf(str, size, "sar: enable = %d, idc = %d, %d x %d\n",
drivers/media/platform/amphion/venc.c
1229
num = scnprintf(str, size,
drivers/media/platform/amphion/venc.c
1237
num = scnprintf(str, size, "skipped: count = %d, bytes = %d\n",
drivers/media/platform/amphion/vpu.h
222
int (*get_debug_info)(struct vpu_inst *inst, char *str, u32 size, u32 i);
drivers/media/platform/amphion/vpu_dbg.c
102
num = scnprintf(str, sizeof(str), " %d(%d)",
drivers/media/platform/amphion/vpu_dbg.c
105
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
112
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
123
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
126
num = scnprintf(str, sizeof(str), " %d(%d)",
drivers/media/platform/amphion/vpu_dbg.c
129
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
134
num = scnprintf(str, sizeof(str), "crop: (%d, %d) %d x %d\n",
drivers/media/platform/amphion/vpu_dbg.c
139
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
156
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
160
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
180
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
184
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
188
num = scnprintf(str, sizeof(str), "; fs %d", vpu_buf->fs_id);
drivers/media/platform/amphion/vpu_dbg.c
189
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
193
num = scnprintf(str, sizeof(str), "\n");
drivers/media/platform/amphion/vpu_dbg.c
194
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
198
num = scnprintf(str, sizeof(str), "sequence = %d\n", inst->sequence);
drivers/media/platform/amphion/vpu_dbg.c
199
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
203
num = scnprintf(str, sizeof(str), "stream_buffer = %d / %d, <%pad, 0x%x>\n",
drivers/media/platform/amphion/vpu_dbg.c
208
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
211
num = scnprintf(str, sizeof(str), "kfifo len = 0x%x\n", kfifo_len(&inst->msg_fifo));
drivers/media/platform/amphion/vpu_dbg.c
212
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
215
num = scnprintf(str, sizeof(str), "flow :\n");
drivers/media/platform/amphion/vpu_dbg.c
216
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
225
num = scnprintf(str, sizeof(str), "\t[%s] %s\n",
drivers/media/platform/amphion/vpu_dbg.c
228
if (seq_write(s, str, num)) {
drivers/media/platform/amphion/vpu_dbg.c
237
num = call_vop(inst, get_debug_info, str, sizeof(str), i++);
drivers/media/platform/amphion/vpu_dbg.c
240
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
251
char str[128];
drivers/media/platform/amphion/vpu_dbg.c
254
num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(core->type));
drivers/media/platform/amphion/vpu_dbg.c
255
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
258
num = scnprintf(str, sizeof(str), "boot_region = <%pad, 0x%x>\n",
drivers/media/platform/amphion/vpu_dbg.c
260
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
262
num = scnprintf(str, sizeof(str), "rpc_region = <%pad, 0x%x> used = 0x%x\n",
drivers/media/platform/amphion/vpu_dbg.c
264
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
266
num = scnprintf(str, sizeof(str), "fwlog_region = <%pad, 0x%x>\n",
drivers/media/platform/amphion/vpu_dbg.c
268
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
271
num = scnprintf(str, sizeof(str), "power %s\n",
drivers/media/platform/amphion/vpu_dbg.c
273
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
275
num = scnprintf(str, sizeof(str), "state = %d\n", core->state);
drivers/media/platform/amphion/vpu_dbg.c
276
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
280
num = scnprintf(str, sizeof(str), "fw version = %d.%d.%d\n",
drivers/media/platform/amphion/vpu_dbg.c
284
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
286
num = scnprintf(str, sizeof(str), "instances = %d/%d (0x%02lx), %d\n",
drivers/media/platform/amphion/vpu_dbg.c
291
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
293
num = scnprintf(str, sizeof(str), "kfifo len = 0x%x\n", kfifo_len(&core->msg_fifo));
drivers/media/platform/amphion/vpu_dbg.c
294
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
296
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
302
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
304
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
310
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
64
char str[128];
drivers/media/platform/amphion/vpu_dbg.c
71
num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(inst->type));
drivers/media/platform/amphion/vpu_dbg.c
72
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
75
num = scnprintf(str, sizeof(str), "tgig = %d,pid = %d\n", inst->tgid, inst->pid);
drivers/media/platform/amphion/vpu_dbg.c
76
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
78
num = scnprintf(str, sizeof(str), "state = %s\n", vpu_codec_state_name(inst->state));
drivers/media/platform/amphion/vpu_dbg.c
79
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
81
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
84
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_dbg.c
88
num = scnprintf(str, sizeof(str),
drivers/media/platform/amphion/vpu_dbg.c
99
if (seq_write(s, str, num))
drivers/media/platform/amphion/vpu_msgs.c
156
char *str = (char *)pkt->data;
drivers/media/platform/amphion/vpu_msgs.c
158
if (*str)
drivers/media/platform/amphion/vpu_msgs.c
159
dev_err(inst->dev, "instance %d firmware error : %s\n", inst->id, str);
drivers/media/platform/amphion/vpu_msgs.c
168
char *str = (char *)pkt->data;
drivers/media/platform/amphion/vpu_msgs.c
171
vpu_core_type_desc(inst->core->type), str);
drivers/media/platform/amphion/vpu_msgs.c
186
char *str = (char *)pkt->data;
drivers/media/platform/amphion/vpu_msgs.c
188
if (*str)
drivers/media/platform/amphion/vpu_msgs.c
189
dev_info(inst->dev, "instance %d firmware dbg msg : %s\n", inst->id, str);
drivers/media/platform/chips-media/wave5/wave5-hw.c
343
u8 *str;
drivers/media/platform/chips-media/wave5/wave5-hw.c
352
str = (u8 *)®_val;
drivers/media/platform/chips-media/wave5/wave5-hw.c
353
p_attr->product_name[0] = str[3];
drivers/media/platform/chips-media/wave5/wave5-hw.c
354
p_attr->product_name[1] = str[2];
drivers/media/platform/chips-media/wave5/wave5-hw.c
355
p_attr->product_name[2] = str[1];
drivers/media/platform/chips-media/wave5/wave5-hw.c
356
p_attr->product_name[3] = str[0];
drivers/media/platform/renesas/rcar_drif.c
503
u32 str;
drivers/media/platform/renesas/rcar_drif.c
508
str = rcar_drif_read(ch, RCAR_DRIF_SISTR);
drivers/media/platform/renesas/rcar_drif.c
509
if (unlikely(str & RCAR_DRIF_RFOVF)) {
drivers/media/platform/renesas/rcar_drif.c
511
rcar_drif_write(ch, RCAR_DRIF_SISTR, str);
drivers/media/platform/renesas/rcar_drif.c
709
u32 ctr, str;
drivers/media/platform/renesas/rcar_drif.c
728
str = RCAR_DRIF_RFFUL | RCAR_DRIF_REOF | RCAR_DRIF_RFSERR |
drivers/media/platform/renesas/rcar_drif.c
730
rcar_drif_write(ch, RCAR_DRIF_SISTR, str);
drivers/media/platform/st/sti/delta/delta-debug.c
12
char *delta_streaminfo_str(struct delta_streaminfo *s, char *str,
drivers/media/platform/st/sti/delta/delta-debug.c
18
snprintf(str, len,
drivers/media/platform/st/sti/delta/delta-debug.c
31
return str;
drivers/media/platform/st/sti/delta/delta-debug.c
34
char *delta_frameinfo_str(struct delta_frameinfo *f, char *str,
drivers/media/platform/st/sti/delta/delta-debug.c
40
snprintf(str, len,
drivers/media/platform/st/sti/delta/delta-debug.c
52
return str;
drivers/media/platform/st/sti/delta/delta-debug.c
59
unsigned char str[100] = "";
drivers/media/platform/st/sti/delta/delta-debug.c
66
delta_streaminfo_str(s, str, sizeof(str)),
drivers/media/platform/st/sti/delta/delta-debug.h
12
char *delta_streaminfo_str(struct delta_streaminfo *s, char *str,
drivers/media/platform/st/sti/delta/delta-debug.h
14
char *delta_frameinfo_str(struct delta_frameinfo *f, char *str,
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
221
ipc_open_param_str(params, ctx->str, sizeof(ctx->str)));
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
232
ipc_open_param_str(params, ctx->str, sizeof(ctx->str)));
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
28
unsigned char str[3000];
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
285
ipc_decode_param_str(params, ctx->str, sizeof(ctx->str)));
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
299
ipc_decode_param_str(params, ctx->str,
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
300
sizeof(ctx->str)));
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
310
ipc_decode_param_str(params, ctx->str,
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
311
sizeof(ctx->str)));
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
34
char *str, unsigned int len)
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
36
char *b = str;
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
48
return str;
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
52
char *str, unsigned int len)
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
54
char *b = str;
drivers/media/platform/st/sti/delta/delta-mjpeg-dec.c
79
return str;
drivers/media/platform/st/sti/delta/delta-mjpeg-hdr.c
138
header_str(header, str, sizeof(str)));
drivers/media/platform/st/sti/delta/delta-mjpeg-hdr.c
16
char *str,
drivers/media/platform/st/sti/delta/delta-mjpeg-hdr.c
19
char *cur = str;
drivers/media/platform/st/sti/delta/delta-mjpeg-hdr.c
37
return str;
drivers/media/platform/st/sti/delta/delta-mjpeg-hdr.c
89
unsigned char str[200];
drivers/media/platform/st/sti/delta/delta-v4l2.c
1227
unsigned char str[100] = "";
drivers/media/platform/st/sti/delta/delta-v4l2.c
1238
str, sizeof(str)));
drivers/media/platform/st/sti/delta/delta-v4l2.c
435
unsigned char str[100] = "";
drivers/media/platform/st/sti/delta/delta-v4l2.c
441
delta_streaminfo_str(streaminfo, str, sizeof(str)));
drivers/media/platform/st/sti/delta/delta-v4l2.c
464
unsigned char str[100] = "";
drivers/media/platform/st/sti/delta/delta-v4l2.c
470
delta_frameinfo_str(frameinfo, str, sizeof(str)));
drivers/media/platform/st/sti/delta/delta-v4l2.c
653
unsigned char str[100] = "";
drivers/media/platform/st/sti/delta/delta-v4l2.c
709
delta_frameinfo_str(&frameinfo, str, sizeof(str)));
drivers/media/platform/st/sti/delta/delta.h
543
static inline char *frame_state_str(u32 state, char *str, unsigned int len)
drivers/media/platform/st/sti/delta/delta.h
545
snprintf(str, len, "%s %s %s %s %s %s",
drivers/media/platform/st/sti/delta/delta.h
552
return str;
drivers/media/platform/ti/vpe/vpdma.h
200
#define ADB_ADDR(dma_buf, str, fld) ((dma_buf)->addr + offsetof(str, fld))
drivers/media/platform/ti/vpe/vpdma.h
201
#define MMR_ADB_ADDR(buf, str, fld) ADB_ADDR(&(buf), struct str, fld)
drivers/media/platform/ti/vpe/vpdma.h
203
#define VPDMA_SET_MMR_ADB_HDR(buf, str, hdr, regs, offset_a) \
drivers/media/platform/ti/vpe/vpdma.h
206
struct str *adb = NULL; \
drivers/media/platform/ti/vpe/vpdma.h
207
h = MMR_ADB_ADDR(buf, str, hdr); \
drivers/media/radio/si4713/si4713.c
95
char str[(size)*5]; \
drivers/media/radio/si4713/si4713.c
97
sprintf(str + i * 5, " 0x%02x", buffer[i]); \
drivers/media/radio/si4713/si4713.c
98
v4l2_dbg(2, debug, device, "%s:%s\n", message, str); \
drivers/media/test-drivers/vimc/vimc-sensor.c
186
char str[100];
drivers/media/test-drivers/vimc/vimc-sensor.c
196
snprintf(str, sizeof(str),
drivers/media/test-drivers/vimc/vimc-sensor.c
202
tpg_gen_text(&vsensor->tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vimc/vimc-sensor.c
203
snprintf(str, sizeof(str), "sensor size: %dx%d",
drivers/media/test-drivers/vimc/vimc-sensor.c
205
tpg_gen_text(&vsensor->tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vimc/vimc-sensor.c
212
snprintf(str, sizeof(str), "%02d:%02d:%02d:%03d",
drivers/media/test-drivers/vimc/vimc-sensor.c
217
tpg_gen_text(&vsensor->tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
399
char str[100];
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
486
snprintf(str, sizeof(str), " %02d:%02d:%02d:%03d %u%s",
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
495
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
498
snprintf(str, sizeof(str), " %dx%d, input %d ",
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
500
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
504
snprintf(str, sizeof(str),
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
510
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
511
snprintf(str, sizeof(str),
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
515
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
517
snprintf(str, sizeof(str),
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
521
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
523
snprintf(str, sizeof(str), " int32 %d, ro_int32 %d, int64 %lld, bitmask %08x ",
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
528
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
529
snprintf(str, sizeof(str), " boolean %d, menu %s, string \"%s\" ",
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
533
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
534
snprintf(str, sizeof(str), " integer_menu %lld, value %d ",
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
538
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
541
snprintf(str, sizeof(str), " button pressed!");
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
542
tpg_gen_text(tpg, basep, line++ * line_height, 16, str);
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
546
snprintf(str, sizeof(str),
drivers/media/test-drivers/vivid/vivid-kthread-cap.c
549
16, str);
drivers/mfd/ipaq-micro.c
240
char *str;
drivers/mfd/ipaq-micro.c
243
str = ipaq_micro_str(dump, 10);
drivers/mfd/ipaq-micro.c
244
if (str) {
drivers/mfd/ipaq-micro.c
245
dev_info(micro->dev, "HW version %s\n", str);
drivers/mfd/ipaq-micro.c
246
kfree(str);
drivers/mfd/ipaq-micro.c
248
str = ipaq_micro_str(dump+10, 40);
drivers/mfd/ipaq-micro.c
249
if (str) {
drivers/mfd/ipaq-micro.c
250
dev_info(micro->dev, "serial number: %s\n", str);
drivers/mfd/ipaq-micro.c
252
add_device_randomness(str, strlen(str));
drivers/mfd/ipaq-micro.c
253
kfree(str);
drivers/mfd/ipaq-micro.c
255
str = ipaq_micro_str(dump+50, 20);
drivers/mfd/ipaq-micro.c
256
if (str) {
drivers/mfd/ipaq-micro.c
257
dev_info(micro->dev, "module ID: %s\n", str);
drivers/mfd/ipaq-micro.c
258
kfree(str);
drivers/mfd/ipaq-micro.c
260
str = ipaq_micro_str(dump+70, 10);
drivers/mfd/ipaq-micro.c
261
if (str) {
drivers/mfd/ipaq-micro.c
262
dev_info(micro->dev, "product revision: %s\n", str);
drivers/mfd/ipaq-micro.c
263
kfree(str);
drivers/mfd/stmpe.h
20
static inline void stmpe_dump_bytes(const char *str, const void *buf,
drivers/mfd/stmpe.h
23
print_hex_dump_bytes(str, DUMP_PREFIX_OFFSET, buf, len);
drivers/mfd/stmpe.h
26
static inline void stmpe_dump_bytes(const char *str, const void *buf,
drivers/misc/bcm-vk/bcm_vk.h
433
const char *str;
drivers/misc/bcm-vk/bcm_vk_dev.c
236
DRV_MODULE_NAME, vk->devid, entry->str,
drivers/misc/sgi-gru/grukservices.c
499
static void gru_abort(int ret, void *cb, char *str)
drivers/misc/sgi-gru/grukservices.c
503
panic("GRU FATAL ERROR: %s - %s\n", str,
drivers/mmc/core/debugfs.c
102
seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str);
drivers/mmc/core/debugfs.c
106
str = "off";
drivers/mmc/core/debugfs.c
109
str = "up";
drivers/mmc/core/debugfs.c
112
str = "on";
drivers/mmc/core/debugfs.c
115
str = "invalid";
drivers/mmc/core/debugfs.c
118
seq_printf(s, "power mode:\t%u (%s)\n", ios->power_mode, str);
drivers/mmc/core/debugfs.c
124
str = "legacy";
drivers/mmc/core/debugfs.c
127
str = "mmc high-speed";
drivers/mmc/core/debugfs.c
130
str = "sd high-speed";
drivers/mmc/core/debugfs.c
133
str = "sd uhs SDR12";
drivers/mmc/core/debugfs.c
136
str = "sd uhs SDR25";
drivers/mmc/core/debugfs.c
139
str = "sd uhs SDR50";
drivers/mmc/core/debugfs.c
142
str = "sd uhs SDR104";
drivers/mmc/core/debugfs.c
145
str = "sd uhs DDR50";
drivers/mmc/core/debugfs.c
148
str = "mmc DDR52";
drivers/mmc/core/debugfs.c
151
str = "mmc HS200";
drivers/mmc/core/debugfs.c
154
str = mmc_card_hs400es(host->card) ?
drivers/mmc/core/debugfs.c
158
str = "invalid";
drivers/mmc/core/debugfs.c
161
seq_printf(s, "timing spec:\t%u (%s)\n", ios->timing, str);
drivers/mmc/core/debugfs.c
165
str = "3.30 V";
drivers/mmc/core/debugfs.c
168
str = "1.80 V";
drivers/mmc/core/debugfs.c
171
str = "1.20 V";
drivers/mmc/core/debugfs.c
174
str = "invalid";
drivers/mmc/core/debugfs.c
177
seq_printf(s, "signal voltage:\t%u (%s)\n", ios->signal_voltage, str);
drivers/mmc/core/debugfs.c
181
str = "driver type A";
drivers/mmc/core/debugfs.c
184
str = "driver type B";
drivers/mmc/core/debugfs.c
187
str = "driver type C";
drivers/mmc/core/debugfs.c
190
str = "driver type D";
drivers/mmc/core/debugfs.c
193
str = "invalid";
drivers/mmc/core/debugfs.c
196
seq_printf(s, "driver type:\t%u (%s)\n", ios->drv_type, str);
drivers/mmc/core/debugfs.c
60
const char *str;
drivers/mmc/core/debugfs.c
77
str = "open drain";
drivers/mmc/core/debugfs.c
80
str = "push-pull";
drivers/mmc/core/debugfs.c
83
str = "invalid";
drivers/mmc/core/debugfs.c
86
seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str);
drivers/mmc/core/debugfs.c
90
str = "don't care";
drivers/mmc/core/debugfs.c
93
str = "active high";
drivers/mmc/core/debugfs.c
96
str = "active low";
drivers/mmc/core/debugfs.c
99
str = "invalid";
drivers/mmc/host/sdhci-omap.c
1089
char str[20];
drivers/mmc/host/sdhci-omap.c
1095
snprintf(str, 20, "%s-%s", mode, version);
drivers/mmc/host/sdhci-omap.c
1096
pinctrl_state = pinctrl_lookup_state(omap_host->pinctrl, str);
drivers/mtd/devices/block2mtd.c
392
static inline void kill_final_newline(char *str)
drivers/mtd/devices/block2mtd.c
394
char *newline = strrchr(str, '\n');
drivers/mtd/devices/block2mtd.c
410
char *str = buf;
drivers/mtd/devices/block2mtd.c
423
strcpy(str, val);
drivers/mtd/devices/block2mtd.c
424
kill_final_newline(str);
drivers/mtd/devices/block2mtd.c
427
token[i] = strsep(&str, ",");
drivers/mtd/devices/block2mtd.c
429
if (str) {
drivers/mtd/devices/phram.c
233
static inline void kill_final_newline(char *str)
drivers/mtd/devices/phram.c
235
char *newline = strrchr(str, '\n');
drivers/mtd/devices/phram.c
262
char buf[64 + 20 + 20 + 20], *str = buf;
drivers/mtd/devices/phram.c
274
strcpy(str, val);
drivers/mtd/devices/phram.c
275
kill_final_newline(str);
drivers/mtd/devices/phram.c
278
token[i] = strsep(&str, ",");
drivers/mtd/devices/phram.c
280
if (str)
drivers/mtd/devices/slram.c
267
static int __init mtd_slram_setup(char *str)
drivers/mtd/devices/slram.c
269
map = str;
drivers/mtd/maps/amd76xrom.c
23
#define xstr(s) str(s)
drivers/mtd/maps/ichxrom.c
22
#define xstr(s) str(s)
drivers/mtd/nand/raw/sh_flctl.c
125
static void timeout_error(struct sh_flctl *flctl, const char *str)
drivers/mtd/nand/raw/sh_flctl.c
127
dev_err(&flctl->pdev->dev, "Timeout occurred in %s\n", str);
drivers/mtd/spi-nor/debugfs.c
106
str = "none";
drivers/mtd/spi-nor/debugfs.c
109
str = "repeat";
drivers/mtd/spi-nor/debugfs.c
112
str = "invert";
drivers/mtd/spi-nor/debugfs.c
115
str = "<unknown>";
drivers/mtd/spi-nor/debugfs.c
118
seq_printf(s, " 8D extension\t%s\n", str);
drivers/mtd/spi-nor/debugfs.c
83
char buf[16], *str;
drivers/mtd/ubi/build.c
1432
static int bytes_str_to_int(const char *str)
drivers/mtd/ubi/build.c
1437
result = simple_strtoul(str, &endp, 0);
drivers/mtd/ubi/build.c
1438
if (str == endp || result >= INT_MAX) {
drivers/mtd/ubi/build.c
1439
pr_err("UBI error: incorrect bytes count: \"%s\"\n", str);
drivers/mtd/ubi/build.c
1456
pr_err("UBI error: incorrect bytes count: \"%s\"\n", str);
drivers/net/Space.c
141
static int __init netdev_boot_setup(char *str)
drivers/net/Space.c
146
str = get_options(str, ARRAY_SIZE(ints), ints);
drivers/net/Space.c
147
if (!str || !*str)
drivers/net/Space.c
162
return netdev_boot_setup_add(str, &map);
drivers/net/Space.c
167
static int __init ether_boot_setup(char *str)
drivers/net/Space.c
169
return netdev_boot_setup(str);
drivers/net/can/rcar/rcar_can.c
462
if (readw(&priv->regs->str) & RCAR_CAN_STR_RSTST)
drivers/net/can/rcar/rcar_can.c
503
if (!(readw(&priv->regs->str) & RCAR_CAN_STR_RSTST))
drivers/net/can/rcar/rcar_can.c
565
if (readw(&priv->regs->str) & RCAR_CAN_STR_RSTST)
drivers/net/can/rcar/rcar_can.c
67
u16 str; /* Status register */
drivers/net/ethernet/3com/3c59x.c
741
const char str[ETH_GSTRING_LEN];
drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c
68
u32 attr, int channel, const char **str)
drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c
79
*str = atl_temp_label[channel];
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
101
struct atl1e_opt_list { int i; char *str; } *p;
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
141
if (ent->str[0] != '\0')
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
143
"%s\n", ent->str);
drivers/net/ethernet/atheros/atlx/atl1.c
121
char *str;
drivers/net/ethernet/atheros/atlx/atl1.c
160
if (ent->str[0] != '\0')
drivers/net/ethernet/atheros/atlx/atl1.c
162
ent->str);
drivers/net/ethernet/atheros/atlx/atl2.c
2857
struct atl2_opt_list { int i; char *str; } *p;
drivers/net/ethernet/atheros/atlx/atl2.c
2893
if (ent->str[0] != '\0')
drivers/net/ethernet/atheros/atlx/atl2.c
2894
printk(KERN_INFO "%s\n", ent->str);
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
24
#define STAT_BCMASP_SOFT_MIB(str) { \
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
25
.stat_string = str, \
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
29
#define STAT_BCMASP_OFFSET(str, _type, offset) { \
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
30
.stat_string = str, \
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
35
#define STAT_BCMASP_RX_CTRL(str, offset) \
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
36
STAT_BCMASP_OFFSET(str, BCMASP_STAT_RX_CTRL, offset)
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
37
#define STAT_BCMASP_RX_CTRL_PER_INTF(str, offset) \
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
38
STAT_BCMASP_OFFSET(str, BCMASP_STAT_RX_CTRL_PER_INTF, offset)
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
79
const char *str;
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
85
str = bcmasp_gstrings_stats[i].stat_string;
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
86
ethtool_puts(&data, str);
drivers/net/ethernet/broadcom/bcm63xx_enet.c
1341
const char *str;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
1347
str = bcm_enet_gstrings_stats[i].stat_string;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
1348
ethtool_puts(&data, str);
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2504
const char *str;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2510
str = bcm_enetsw_gstrings_stats[i].stat_string;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2511
ethtool_puts(&data, str);
drivers/net/ethernet/broadcom/bcmsysport.h
605
#define STAT_MIB(str, m, _type) { \
drivers/net/ethernet/broadcom/bcmsysport.h
606
.stat_string = str, \
drivers/net/ethernet/broadcom/bcmsysport.h
612
#define STAT_MIB_RX(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_MIB_RX)
drivers/net/ethernet/broadcom/bcmsysport.h
613
#define STAT_MIB_TX(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_MIB_TX)
drivers/net/ethernet/broadcom/bcmsysport.h
614
#define STAT_RUNT(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_RUNT)
drivers/net/ethernet/broadcom/bcmsysport.h
615
#define STAT_MIB_SOFT(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_SOFT)
drivers/net/ethernet/broadcom/bcmsysport.h
617
#define STAT_RXCHK(str, m, ofs) { \
drivers/net/ethernet/broadcom/bcmsysport.h
618
.stat_string = str, \
drivers/net/ethernet/broadcom/bcmsysport.h
625
#define STAT_RBUF(str, m, ofs) { \
drivers/net/ethernet/broadcom/bcmsysport.h
626
.stat_string = str, \
drivers/net/ethernet/broadcom/bcmsysport.h
633
#define STAT_RDMA(str, m, ofs) { \
drivers/net/ethernet/broadcom/bcmsysport.h
634
.stat_string = str, \
drivers/net/ethernet/broadcom/bnx2.c
8455
bnx2_bus_string(struct bnx2 *bp, char *str)
drivers/net/ethernet/broadcom/bnx2.c
8457
char *s = str;
drivers/net/ethernet/broadcom/bnx2.c
8471
return str;
drivers/net/ethernet/broadcom/bnx2.c
8525
char str[40];
drivers/net/ethernet/broadcom/bnx2.c
8581
bnx2_bus_string(bp, str), (long)pci_resource_start(pdev, 0),
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
3187
const char *str;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
3195
str = bnx2x_q_stats_arr[j].string;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
3196
ethtool_sprintf(&buf, str, i);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
10611
static int bnx2x_8485x_format_ver(u32 raw_ver, u8 *str, u16 *len)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
10617
return bnx2x_3_seq_format_ver(num, str, len);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
10620
static int bnx2x_848xx_format_ver(u32 raw_ver, u8 *str, u16 *len)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
10625
return bnx2x_format_ver(spirom_ver, str, len);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
11540
static int bnx2x_7101_format_ver(u32 spirom_ver, u8 *str, u16 *len)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
11544
str[0] = (spirom_ver & 0xFF);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
11545
str[1] = (spirom_ver & 0xFF00) >> 8;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
11546
str[2] = (spirom_ver & 0xFF0000) >> 16;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
11547
str[3] = (spirom_ver & 0xFF000000) >> 24;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
11548
str[4] = '\0';
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6164
static int bnx2x_null_format_ver(u32 spirom_ver, u8 *str, u16 *len)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6167
str[0] = '\0';
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6171
static int bnx2x_format_ver(u32 num, u8 *str, u16 *len)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6177
bnx2x_null_format_ver(num, str, len);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6181
ret = scnprintf(str, *len, "%x.%x", (num >> 16) & 0xFFFF,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6187
static int bnx2x_3_seq_format_ver(u32 num, u8 *str, u16 *len)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6193
bnx2x_null_format_ver(num, str, len);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
6197
ret = scnprintf(str, *len, "%x.%x.%x", (num >> 16) & 0xFF,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h
138
typedef int (*format_fw_ver_t)(u32 raw, u8 *str, u16 *len);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
12038
char *str = bnxt_link_down_reason(&bp->link_info);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
12041
netdev_err(bp->dev, "NIC Link is Down %s\n", str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5508
char *str = test_info->string[i];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5512
strcpy(str, "Mac loopback test (offline)");
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5514
strcpy(str, "Phy loopback test (offline)");
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5516
strcpy(str, "Ext loopback test (offline)");
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5518
strcpy(str, "Interrupt_test (offline)");
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5520
snprintf(str, ETH_GSTRING_LEN, "%s test (%s)",
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
716
const char *str;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
723
str = bnxt_ring_rx_stats_str[j];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
725
str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
729
str = bnxt_ring_tx_stats_str[j];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
731
str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
739
str = bnxt_ring_tpa2_stats_str[j];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
741
str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
745
str = bnxt_ring_tpa_stats_str[j];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
747
str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
752
str = bnxt_rx_sw_stats_str[j];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
754
str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
757
str = bnxt_cmn_sw_stats_str[j];
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
758
ethtool_sprintf(&buf, "[%d]: %s", i, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
766
str = bnxt_port_stats_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
767
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
776
str = bnxt_port_stats_ext_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
777
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
783
str = bnxt_tx_port_stats_ext_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
784
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
789
str = bnxt_rx_bytes_pri_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
790
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
794
str = bnxt_rx_pkts_pri_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
795
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
799
str = bnxt_tx_bytes_pri_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
800
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
804
str = bnxt_tx_pkts_pri_arr[i].string;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
805
ethtool_puts(&buf, str);
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1005
#define STAT_GENET_SOFT_MIB64(str, s, m) { \
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1006
.stat_string = str, \
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1013
#define STAT_GENET_MIB_RX(str, m) STAT_GENET_MIB(str, m, BCMGENET_STAT_MIB_RX)
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1014
#define STAT_GENET_MIB_TX(str, m) STAT_GENET_MIB(str, m, BCMGENET_STAT_MIB_TX)
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1015
#define STAT_GENET_RUNT(str, m) STAT_GENET_MIB(str, m, BCMGENET_STAT_RUNT)
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1016
#define STAT_GENET_SOFT_MIB(str, m) STAT_GENET_MIB(str, m, BCMGENET_STAT_SOFT)
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1018
#define STAT_GENET_MISC(str, m, offset) { \
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1019
.stat_string = str, \
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1204
const char *str;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1210
str = bcmgenet_gstrings_stats[i].stat_string;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
1211
ethtool_puts(&data, str);
drivers/net/ethernet/broadcom/genet/bcmgenet.c
998
#define STAT_GENET_MIB(str, m, _type) { \
drivers/net/ethernet/broadcom/genet/bcmgenet.c
999
.stat_string = str, \
drivers/net/ethernet/broadcom/tg3.c
17613
static char *tg3_bus_string(struct tg3 *tp, char *str)
drivers/net/ethernet/broadcom/tg3.c
17616
strcpy(str, "PCI Express");
drivers/net/ethernet/broadcom/tg3.c
17617
return str;
drivers/net/ethernet/broadcom/tg3.c
17621
strcpy(str, "PCIX:");
drivers/net/ethernet/broadcom/tg3.c
17626
strcat(str, "133MHz");
drivers/net/ethernet/broadcom/tg3.c
17628
strcat(str, "33MHz");
drivers/net/ethernet/broadcom/tg3.c
17630
strcat(str, "50MHz");
drivers/net/ethernet/broadcom/tg3.c
17632
strcat(str, "66MHz");
drivers/net/ethernet/broadcom/tg3.c
17634
strcat(str, "100MHz");
drivers/net/ethernet/broadcom/tg3.c
17636
strcpy(str, "PCI:");
drivers/net/ethernet/broadcom/tg3.c
17638
strcat(str, "66MHz");
drivers/net/ethernet/broadcom/tg3.c
17640
strcat(str, "33MHz");
drivers/net/ethernet/broadcom/tg3.c
17643
strcat(str, ":32-bit");
drivers/net/ethernet/broadcom/tg3.c
17645
strcat(str, ":64-bit");
drivers/net/ethernet/broadcom/tg3.c
17646
return str;
drivers/net/ethernet/broadcom/tg3.c
17687
char str[40];
drivers/net/ethernet/broadcom/tg3.c
18014
tg3_bus_string(tp, str),
drivers/net/ethernet/cavium/liquidio/octeon_console.c
175
char *str,
drivers/net/ethernet/cavium/liquidio/octeon_console.c
179
octeon_pci_read_core_mem(oct, addr, (u8 *)str, len);
drivers/net/ethernet/cavium/liquidio/octeon_console.c
180
str[len] = 0;
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1235
char str[27];
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1242
sprintf(str, "BGX%d QLM mode", bgx->bgx_id);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1244
sprintf(str, "BGX%d LMAC%d mode", bgx->bgx_id, lmacid);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1248
dev_info(dev, "%s: SGMII\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1251
dev_info(dev, "%s: XAUI\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1254
dev_info(dev, "%s: RXAUI\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1258
dev_info(dev, "%s: XFI\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1260
dev_info(dev, "%s: 10G_KR\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1264
dev_info(dev, "%s: XLAUI\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1266
dev_info(dev, "%s: 40G_KR4\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1269
dev_info(dev, "%s: QSGMII\n", (char *)str);
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
1272
dev_info(dev, "%s: RGMII\n", (char *)str);
drivers/net/ethernet/cirrus/cs89x0.c
172
static int __init dma_fn(char *str)
drivers/net/ethernet/cirrus/cs89x0.c
174
g_cs89x0_dma = simple_strtol(str, NULL, 0);
drivers/net/ethernet/cirrus/cs89x0.c
183
static int __init media_fn(char *str)
drivers/net/ethernet/cirrus/cs89x0.c
185
if (!strcmp(str, "rj45"))
drivers/net/ethernet/cirrus/cs89x0.c
187
else if (!strcmp(str, "aui"))
drivers/net/ethernet/cirrus/cs89x0.c
189
else if (!strcmp(str, "bnc"))
drivers/net/ethernet/emulex/benet/be_main.c
5756
char *str = ""; /* default */
drivers/net/ethernet/emulex/benet/be_main.c
5760
str = "UMC";
drivers/net/ethernet/emulex/benet/be_main.c
5763
str = "FLEX10";
drivers/net/ethernet/emulex/benet/be_main.c
5766
str = "vNIC-1";
drivers/net/ethernet/emulex/benet/be_main.c
5769
str = "nPAR";
drivers/net/ethernet/emulex/benet/be_main.c
5772
str = "UFP";
drivers/net/ethernet/emulex/benet/be_main.c
5775
str = "vNIC-2";
drivers/net/ethernet/emulex/benet/be_main.c
5778
str = "";
drivers/net/ethernet/emulex/benet/be_main.c
5781
return str;
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
37
char *str;
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
42
str = "Rx default";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
45
str = "Rx error";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
48
str = "Rx PCD";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
51
str = "Tx default confirmation";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
54
str = "Tx confirmation (mq)";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
57
str = "Tx error";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
60
str = "Tx";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
63
str = "Unknown";
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
67
str != prevstr)) {
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
78
str == prevstr) {
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
86
prevstr = str;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c
173
const char *str;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c
179
str = dpaa2_switch_ethtool_counters[i].name;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c
180
ethtool_puts(&data, str);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
721
const char *str;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
731
str = hns3_nic_test_strs[HNAE3_LOOP_EXTERNAL];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
732
ethtool_puts(data, str);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
735
str = hns3_nic_test_strs[HNAE3_LOOP_APP];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
736
ethtool_puts(data, str);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
739
str = hns3_nic_test_strs[HNAE3_LOOP_SERIAL_SERDES];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
740
ethtool_puts(data, str);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
743
str = hns3_nic_test_strs[HNAE3_LOOP_PARALLEL_SERDES];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
744
ethtool_puts(data, str);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
747
str = hns3_nic_test_strs[HNAE3_LOOP_PHY];
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
748
ethtool_puts(data, str);
drivers/net/ethernet/i825xx/82596.c
1106
static void print_eth(unsigned char *add, char *str)
drivers/net/ethernet/i825xx/82596.c
1109
add, add + 6, add, add[12], add[13], str);
drivers/net/ethernet/i825xx/82596.c
366
static void print_eth(unsigned char *buf, char *str);
drivers/net/ethernet/i825xx/82596.c
412
static inline int wait_istat(struct net_device *dev, struct i596_private *lp, int delcnt, char *str)
drivers/net/ethernet/i825xx/82596.c
418
dev->name, str, lp->scb.status, lp->scb.command);
drivers/net/ethernet/i825xx/82596.c
426
static inline int wait_cmd(struct net_device *dev, struct i596_private *lp, int delcnt, char *str)
drivers/net/ethernet/i825xx/82596.c
432
dev->name, str, lp->scb.status, lp->scb.command);
drivers/net/ethernet/i825xx/82596.c
440
static inline int wait_cfg(struct net_device *dev, struct i596_cmd *cmd, int delcnt, char *str)
drivers/net/ethernet/i825xx/82596.c
447
printk(KERN_ERR "%s: %s.\n", dev->name, str);
drivers/net/ethernet/i825xx/lib82596.c
1057
static void print_eth(unsigned char *add, char *str)
drivers/net/ethernet/i825xx/lib82596.c
1060
add, add + 6, add, add[12], add[13], str);
drivers/net/ethernet/i825xx/lib82596.c
354
static void print_eth(unsigned char *buf, char *str);
drivers/net/ethernet/i825xx/lib82596.c
399
static inline int wait_istat(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str)
drivers/net/ethernet/i825xx/lib82596.c
408
dev->name, str, SWAP16(dma->iscp.stat));
drivers/net/ethernet/i825xx/lib82596.c
415
static inline int wait_cmd(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str)
drivers/net/ethernet/i825xx/lib82596.c
424
dev->name, str,
drivers/net/ethernet/intel/e1000/e1000_param.c
176
const struct e1000_opt_list { int i; char *str; } *p;
drivers/net/ethernet/intel/e1000/e1000_param.c
214
if (ent->str[0] != '\0')
drivers/net/ethernet/intel/e1000/e1000_param.c
215
e_dev_info("%s\n", ent->str);
drivers/net/ethernet/intel/e1000e/ethtool.c
35
#define E1000_STAT(str, m) { \
drivers/net/ethernet/intel/e1000e/ethtool.c
36
.stat_string = str, \
drivers/net/ethernet/intel/e1000e/ethtool.c
40
#define E1000_NETDEV_STAT(str, m) { \
drivers/net/ethernet/intel/e1000e/ethtool.c
41
.stat_string = str, \
drivers/net/ethernet/intel/e1000e/param.c
155
char *str;
drivers/net/ethernet/intel/e1000e/param.c
197
if (ent->str[0] != '\0')
drivers/net/ethernet/intel/e1000e/param.c
199
ent->str);
drivers/net/ethernet/intel/ice/devlink/port.c
104
str = ice_devlink_port_opt_speed_str(speed);
drivers/net/ethernet/intel/ice/devlink/port.c
106
"%3s ", str);
drivers/net/ethernet/intel/ice/devlink/port.c
58
const char *str;
drivers/net/ethernet/intel/ice/devlink/port.c
90
str = "Active";
drivers/net/ethernet/intel/ice/devlink/port.c
92
str = "Pending";
drivers/net/ethernet/intel/ice/devlink/port.c
94
str = "";
drivers/net/ethernet/intel/ice/devlink/port.c
97
"%-8s", str);
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
88
u8 build, u8 ver, u16 len, const char *str);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
1988
const char *str;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
2002
str = mvpp2_ethtool_txq_regs[i].string;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
2003
ethtool_sprintf(&data, str, q);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
2008
str = mvpp2_ethtool_rxq_regs[i].string;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
2009
ethtool_sprintf(&data, str, q);
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c
100
ethtool_sprintf(&data, str, i);
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c
83
const char *str;
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c
93
str = octep_gstrings_tx_q_stats[j];
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c
94
ethtool_sprintf(&data, str, i);
drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c
99
str = octep_gstrings_rx_q_stats[j];
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c
61
const char *str;
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c
71
str = octep_vf_gstrings_tx_q_stats[j];
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c
72
ethtool_sprintf(&data, str, i);
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c
77
str = octep_vf_gstrings_rx_q_stats[j];
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c
78
ethtool_sprintf(&data, str, i);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2600
char *str;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2604
str = "VLAN";
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2607
str = "DSCP";
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2610
str = "Generic";
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2613
str = "Reserved";
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2616
seq_printf(m, "W0: pc_mode\t\t%s\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2617
str = (prof->icolor == 3) ? "Color blind" :
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2620
seq_printf(m, "W0: icolor\t\t%s\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2631
str = (prof->lmode == 0) ? "byte" : "packet";
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2632
seq_printf(m, "W1: lmode\t\t%s\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2637
str = (prof->gc_action == 0) ? "PASS" :
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2639
seq_printf(m, "W1: gc_action\t\t%s\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2640
str = (prof->yc_action == 0) ? "PASS" :
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2642
seq_printf(m, "W1: yc_action\t\t%s\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2643
str = (prof->rc_action == 0) ? "PASS" :
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2645
seq_printf(m, "W1: rc_action\t\t%s\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2688
char *str;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2697
str = (layer == BAND_PROF_LEAF_LAYER) ? "Leaf" :
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2700
seq_printf(m, "\n%s bandwidth profiles\n", str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2716
__func__, str, idx, rc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2719
seq_printf(m, "\n%s bandwidth profile:: %d\n", str, idx);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2741
char *str;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2752
str = (layer == BAND_PROF_LEAF_LAYER) ? "Leaf" :
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2756
seq_printf(m, "%s :: Max: %4d Free: %4d\n", str,
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3704
char *str;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3723
str = (cfg & 1) ? "enabled" : "disabled";
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3728
chan, str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
125
__string(str, msg)
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
129
__assign_str(str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
133
__get_str(str), __entry->num_msgs)
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
140
__string(str, msg)
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
149
__assign_str(str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
158
__get_str(dev), __get_str(str), __entry->w0, __entry->w1, __entry->w2,
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
81
__string(str, msg)
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
85
__assign_str(str);
drivers/net/ethernet/marvell/octeontx2/af/rvu_trace.h
89
__get_str(str), __entry->intr)
drivers/net/ethernet/mediatek/mtk_eth_soc.c
218
char str[ETH_GSTRING_LEN];
drivers/net/ethernet/mediatek/mtk_eth_soc.c
4562
ethtool_puts(&data, mtk_ethtool_stats[i].str);
drivers/net/ethernet/mellanox/mlx4/mcg.c
900
static void mlx4_err_rule(struct mlx4_dev *dev, char *str,
drivers/net/ethernet/mellanox/mlx4/mcg.c
908
mlx4_err(dev, "%s", str);
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
45
char *str, *end;
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
57
str = kstrndup(vpd_data + start, kw_len, GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
58
if (!str) {
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
62
end = strchrnul(str, ' ');
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
64
err = devlink_info_board_serial_number_put(req, str);
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
65
kfree(str);
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
72
str = kstrndup(vpd_data + start, kw_len, GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
73
if (!str) {
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
77
err = devlink_info_serial_number_put(req, str);
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
78
kfree(str);
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
362
static bool mlx5_is_valid_spec(const char *str)
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
368
while (isdigit(*str) || *str == '#' || *str == '.' || *str == 'l')
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
369
str++;
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
374
if (*str != 'x' && *str != 'X' && *str != 'd' && *str != 'i' &&
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
375
*str != 'u' && *str != 'c' && *str != '%')
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
381
static bool mlx5_tracer_validate_params(const char *str)
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
383
const char *substr = str;
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
385
if (!str)
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
459
static int mlx5_tracer_get_num_of_params(char *str)
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
461
char *substr, *pstr = str;
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
465
if (!mlx5_tracer_validate_params(str))
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
477
substr = strstr(str, PARAM_CHAR);
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
481
str = substr + 1;
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
483
str = substr + 2;
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
485
substr = strstr(str, PARAM_CHAR);
drivers/net/ethernet/mellanox/mlx5/core/hwmon.c
145
int channel, const char **str)
drivers/net/ethernet/mellanox/mlx5/core/hwmon.c
152
*str = (const char *)hwmon->temp_channel_desc[channel].sensor_name;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c
116
mlx5dr_dbg_dump_data_print(struct seq_file *file, char *str, u32 size)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c
136
ret = snprintf(buff->buff + buff->index, write_size + 1, "%s", str);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c
149
ret = snprintf(buff->buff, remain_size + 1, "%s", str + write_size);
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
265
char str[ETH_GSTRING_LEN] __nonstring;
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
272
.str = "a_frames_transmitted_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
276
.str = "a_frames_received_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
280
.str = "a_frame_check_sequence_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
284
.str = "a_alignment_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
288
.str = "a_octets_transmitted_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
292
.str = "a_octets_received_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
296
.str = "a_multicast_frames_xmitted_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
300
.str = "a_broadcast_frames_xmitted_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
304
.str = "a_multicast_frames_received_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
308
.str = "a_broadcast_frames_received_ok",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
312
.str = "a_in_range_length_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
316
.str = "a_out_of_range_length_field",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
320
.str = "a_frame_too_long_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
324
.str = "a_symbol_error_during_carrier",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
328
.str = "a_mac_control_frames_transmitted",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
332
.str = "a_mac_control_frames_received",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
336
.str = "a_unsupported_opcodes_received",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
340
.str = "a_pause_mac_ctrl_frames_received",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
344
.str = "a_pause_mac_ctrl_frames_xmitted",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
353
.str = "if_in_discards",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
357
.str = "if_out_discards",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
361
.str = "if_out_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
371
.str = "ether_stats_undersize_pkts",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
375
.str = "ether_stats_oversize_pkts",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
379
.str = "ether_stats_fragments",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
383
.str = "ether_pkts64octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
387
.str = "ether_pkts65to127octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
391
.str = "ether_pkts128to255octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
395
.str = "ether_pkts256to511octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
399
.str = "ether_pkts512to1023octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
403
.str = "ether_pkts1024to1518octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
407
.str = "ether_pkts1519to2047octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
411
.str = "ether_pkts2048to4095octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
415
.str = "ether_pkts4096to8191octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
419
.str = "ether_pkts8192to10239octets",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
429
.str = "dot3stats_fcs_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
433
.str = "dot3stats_symbol_errors",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
437
.str = "dot3control_in_unknown_opcodes",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
441
.str = "dot3in_pause_frames",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
451
.str = "ecn_marked",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
460
.str = "discard_ingress_general",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
464
.str = "discard_ingress_policy_engine",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
468
.str = "discard_ingress_vlan_membership",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
472
.str = "discard_ingress_tag_frame_type",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
476
.str = "discard_egress_vlan_membership",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
480
.str = "discard_loopback_filter",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
484
.str = "discard_egress_general",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
488
.str = "discard_egress_hoq",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
492
.str = "discard_egress_policy_engine",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
496
.str = "discard_ingress_tx_link_down",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
500
.str = "discard_egress_stp_filter",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
504
.str = "discard_egress_sll",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
514
.str = "rx_octets_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
518
.str = "rx_frames_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
522
.str = "tx_octets_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
526
.str = "tx_frames_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
530
.str = "rx_pause_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
534
.str = "rx_pause_duration_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
538
.str = "tx_pause_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
542
.str = "tx_pause_duration_prio",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
551
.str = "tc_transmit_queue_tc",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
556
.str = "tc_no_buffer_discard_uc_tc",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
564
char str[ETH_GSTRING_LEN];
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
587
.str = "transceiver_overheat",
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
612
mlxsw_sp_port_hw_prio_stats[i].str, prio);
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
623
mlxsw_sp_port_hw_tc_stats[i].str, tc);
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
638
memcpy(p, mlxsw_sp_port_hw_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
644
memcpy(p, mlxsw_sp_port_hw_rfc_2863_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
650
memcpy(p, mlxsw_sp_port_hw_rfc_2819_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
656
memcpy(p, mlxsw_sp_port_hw_rfc_3635_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
662
memcpy(p, mlxsw_sp_port_hw_ext_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
668
memcpy(p, mlxsw_sp_port_hw_discard_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c
682
memcpy(p, mlxsw_sp_port_transceiver_stats[i].str,
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
1299
char str[ETH_GSTRING_LEN];
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
1305
.str = NAME, \
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
1332
memcpy(*p, mlxsw_sp_ptp_port_stats[i].str,
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
146
const struct pch_gbe_opt_list { int i; char *str; } *p;
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
249
if (ent->str[0] != '\0')
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
251
ent->str);
drivers/net/ethernet/pasemi/pasemi_mac_ethtool.c
17
const char str[ETH_GSTRING_LEN];
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
651
const char *str;
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
661
str = netxen_nic_gstrings_stats[i].stat_string;
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
662
ethtool_puts(&data, str);
drivers/net/ethernet/qlogic/qed/qed_debug.c
1097
static u32 qed_dump_str(char *dump_buf, bool dump, const char *str)
drivers/net/ethernet/qlogic/qed/qed_debug.c
1100
strcpy(dump_buf, str);
drivers/net/ethernet/qlogic/qed/qed_debug.c
1102
return (u32)strlen(str) + 1;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1001
snprintf(str, str_len, "TCP src port 0x%04x",
drivers/net/ethernet/qlogic/qed/qed_dev.c
1005
snprintf(str, str_len, "UDP src port 0x%04x",
drivers/net/ethernet/qlogic/qed/qed_dev.c
1009
snprintf(str, str_len, "TCP dst port 0x%04x", dest_port);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1012
snprintf(str, str_len, "UDP dst port 0x%04x", dest_port);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1015
snprintf(str, str_len, "TCP src/dst ports 0x%04x/0x%04x",
drivers/net/ethernet/qlogic/qed/qed_dev.c
1019
snprintf(str, str_len, "UDP src/dst ports 0x%04x/0x%04x",
drivers/net/ethernet/qlogic/qed/qed_dev.c
1073
u8 filter_idx, abs_ppfid, str[32], type_bitmap;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1086
dest_port, str, sizeof(str));
drivers/net/ethernet/qlogic/qed/qed_dev.c
1122
str, ppfid, abs_ppfid, filter_idx, ref_cnt);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1128
str, ppfid);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1193
u8 filter_idx, abs_ppfid, str[32];
drivers/net/ethernet/qlogic/qed/qed_dev.c
1206
dest_port, str, sizeof(str));
drivers/net/ethernet/qlogic/qed/qed_dev.c
1233
str, ppfid, abs_ppfid, filter_idx, ref_cnt);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1239
str, ppfid);
drivers/net/ethernet/qlogic/qed/qed_dev.c
993
u16 dest_port, u8 *str, size_t str_len)
drivers/net/ethernet/qlogic/qed/qed_dev.c
997
snprintf(str, str_len, "Ethertype 0x%04x",
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1199
const char *str;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1210
str = qlcnic_tx_queue_stats_strings[index];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1212
str);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1216
str = qlcnic_gstrings_stats[i].stat_string;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1217
ethtool_puts(&data, str);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1223
str = qlcnic_83xx_tx_stats_strings[i];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1224
ethtool_puts(&data, str);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1228
str = qlcnic_83xx_mac_stats_strings[i];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1229
ethtool_puts(&data, str);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1233
str = qlcnic_83xx_rx_stats_strings[i];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1234
ethtool_puts(&data, str);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1240
str = qlcnic_83xx_mac_stats_strings[i];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
1241
ethtool_puts(&data, str);
drivers/net/ethernet/realtek/8139cp.c
388
const char str[ETH_GSTRING_LEN];
drivers/net/ethernet/realtek/8139too.c
280
const char str[ETH_GSTRING_LEN];
drivers/net/ethernet/rocker/rocker_main.c
1217
const char *str;
drivers/net/ethernet/rocker/rocker_main.c
1230
str = rocker_tlv_data(attr);
drivers/net/ethernet/rocker/rocker_main.c
1234
if (isalnum(str[i])) {
drivers/net/ethernet/rocker/rocker_main.c
1235
name->buf[j] = str[i];
drivers/net/ethernet/rocker/rocker_main.c
2230
char str[ETH_GSTRING_LEN];
drivers/net/ethernet/rocker/rocker_main.c
2255
memcpy(p, rocker_port_stats[i].str, ETH_GSTRING_LEN);
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
2281
static int __init sxgbe_cmdline_opt(char *str)
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
2285
if (!str || !*str)
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
2287
while ((opt = strsep(&str, ",")) != NULL) {
drivers/net/ethernet/sfc/efx_devlink.c
244
const char *str;
drivers/net/ethernet/sfc/efx_devlink.c
268
ver.str = MCDI_PTR(outbuf, GET_VERSION_V2_OUT_BOARD_SERIAL);
drivers/net/ethernet/sfc/efx_devlink.c
269
if (ver.str[0])
drivers/net/ethernet/sfc/efx_devlink.c
270
devlink_info_board_serial_number_put(req, ver.str);
drivers/net/ethernet/sfc/efx_devlink.c
281
ver.str = MCDI_PTR(outbuf, GET_VERSION_V2_OUT_FPGA_EXTRA);
drivers/net/ethernet/sfc/efx_devlink.c
282
if (ver.str[0])
drivers/net/ethernet/sfc/efx_devlink.c
284
" (%s)", ver.str);
drivers/net/ethernet/sfc/efx_devlink.c
361
const char *str;
drivers/net/ethernet/sfc/efx_devlink.c
399
const char *str;
drivers/net/ethernet/sfc/efx_devlink.c
482
const char *str;
drivers/net/ethernet/sfc/efx_devlink.c
523
const char *str;
drivers/net/ethernet/sgi/meth.c
40
#define DPRINTK(str,args...) printk(KERN_DEBUG "meth: %s: " str, __func__ , ## args)
drivers/net/ethernet/sgi/meth.c
43
#define DPRINTK(str,args...)
drivers/net/ethernet/smsc/smc91c92_cs.c
470
buf = parse.version_1.str + parse.version_1.ofs[3];
drivers/net/ethernet/spacemit/k1_emac.c
1320
char str[ETH_GSTRING_LEN];
drivers/net/ethernet/spacemit/k1_emac.c
1343
memcpy(data, emac_ethtool_rx_stats[i].str,
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
8324
static int __init stmmac_cmdline_opt(char *str)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
8328
if (!str || !*str)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
8330
while ((opt = strsep(&str, ",")) != NULL) {
drivers/net/ethernet/sun/cassini.c
3106
static int cas_vpd_match(const void __iomem *p, const char *str)
drivers/net/ethernet/sun/cassini.c
3108
int len = strlen(str) + 1;
drivers/net/ethernet/sun/cassini.c
3112
if (readb(p + i) != str[i])
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
514
char __maybe_unused *str = NULL;
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
547
str = "RESERVED";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
550
str = "INTERNAL";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
553
str = "EXTERNAL";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
556
str = "BOTH";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
559
XLGMAC_PR("Timestamp System Time Source : %s\n", str);
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
567
str = "128 bytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
570
str = "256 bytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
573
str = "512 bytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
576
str = "1 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
579
str = "2 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
582
str = "4 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
585
str = "8 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
588
str = "16 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
591
str = "32 kBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
594
str = "64 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
597
str = "128 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
600
str = "256 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
603
str = "RESERVED";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
605
XLGMAC_PR("MTL Receive FIFO Size : %s\n", str);
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
609
str = "128 bytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
612
str = "256 bytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
615
str = "512 bytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
618
str = "1 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
621
str = "2 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
624
str = "4 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
627
str = "8 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
630
str = "16 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
633
str = "32 kBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
636
str = "64 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
639
str = "128 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
642
str = "256 KBytes";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
645
str = "RESERVED";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
647
XLGMAC_PR("MTL Transmit FIFO Size : %s\n", str);
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
682
str = "No PPS output";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
685
str = "1 PPS output";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
688
str = "2 PPS output";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
691
str = "3 PPS output";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
694
str = "4 PPS output";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
697
str = "RESERVED";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
699
XLGMAC_PR("Number of PPS Outputs : %s\n", str);
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
703
str = "No auxiliary input";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
706
str = "1 auxiliary input";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
709
str = "2 auxiliary input";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
712
str = "3 auxiliary input";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
715
str = "4 auxiliary input";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
718
str = "RESERVED";
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
720
XLGMAC_PR("Number of Auxiliary Snapshot Inputs : %s", str);
drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c
30
#define XLGMAC_STAT(str, var) \
drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c
32
str, \
drivers/net/ethernet/toshiba/tc35815.c
1993
const char str[ETH_GSTRING_LEN];
drivers/net/ethernet/wangxun/libwx/wx_ethtool.c
19
#define WX_STAT(str, m) { \
drivers/net/ethernet/wangxun/libwx/wx_ethtool.c
20
.stat_string = str, \
drivers/net/ethernet/xircom/xirc2ps_cs.c
1775
static int __init setup_xirc2ps_cs(char *str)
drivers/net/ethernet/xircom/xirc2ps_cs.c
1781
str = get_options(str, ARRAY_SIZE(ints), ints);
drivers/net/fjes/fjes_main.c
43
union acpi_object *str;
drivers/net/fjes/fjes_main.c
51
str = buffer.pointer;
drivers/net/fjes/fjes_main.c
52
result = utf16s_to_utf8s((wchar_t *)str->string.pointer,
drivers/net/fjes/fjes_main.c
53
str->string.length, UTF16_LITTLE_ENDIAN,
drivers/net/hamradio/baycom_epp.c
1297
static int __init baycom_epp_setup(char *str)
drivers/net/hamradio/baycom_epp.c
1304
str = get_options(str, 2, ints);
drivers/net/hamradio/baycom_epp.c
1307
mode[nr_dev] = str;
drivers/net/hamradio/baycom_par.c
579
static int __init baycom_par_setup(char *str)
drivers/net/hamradio/baycom_par.c
586
str = get_options(str, 2, ints);
drivers/net/hamradio/baycom_par.c
589
mode[nr_dev] = str;
drivers/net/hamradio/baycom_ser_fdx.c
656
static int __init baycom_ser_fdx_setup(char *str)
drivers/net/hamradio/baycom_ser_fdx.c
663
str = get_options(str, 4, ints);
drivers/net/hamradio/baycom_ser_fdx.c
666
mode[nr_dev] = str;
drivers/net/hamradio/baycom_ser_hdx.c
707
static int __init baycom_ser_hdx_setup(char *str)
drivers/net/hamradio/baycom_ser_hdx.c
714
str = get_options(str, 3, ints);
drivers/net/hamradio/baycom_ser_hdx.c
717
mode[nr_dev] = str;
drivers/net/ipa/ipa_main.c
722
const char *str;
drivers/net/ipa/ipa_main.c
727
ret = of_property_read_string(dev->of_node, "qcom,gsi-loader", &str);
drivers/net/ipa/ipa_main.c
745
if (!strcmp(str, "modem"))
drivers/net/ipa/ipa_main.c
749
if (!strcmp(str, "skip"))
drivers/net/ipa/ipa_main.c
753
if (strcmp(str, "self"))
drivers/net/netconsole.c
420
static int netpoll_parse_ip_addr(const char *str, union inet_addr *addr)
drivers/net/netconsole.c
425
len = strlen(str);
drivers/net/netconsole.c
429
if (str[len - 1] == '\n')
drivers/net/netconsole.c
432
if (in4_pton(str, len, (void *)addr, -1, &end) > 0 &&
drivers/net/netconsole.c
437
in6_pton(str, len, (void *)addr, -1, &end) > 0 &&
drivers/net/netdevsim/bpf.c
53
const char **str = file->private;
drivers/net/netdevsim/bpf.c
55
if (*str)
drivers/net/netdevsim/bpf.c
56
seq_printf(file, "%s\n", *str);
drivers/net/phy/bcm54140.c
293
int channel, const char **str)
drivers/net/phy/bcm54140.c
299
*str = bcm54140_hwmon_in_labels[channel];
drivers/net/phy/sfp.c
1589
u32 attr, int channel, const char **str)
drivers/net/phy/sfp.c
1595
*str = "bias";
drivers/net/phy/sfp.c
1604
*str = "temperature";
drivers/net/phy/sfp.c
1613
*str = "VCC";
drivers/net/phy/sfp.c
1622
*str = sfp_hwmon_power_labels[channel];
drivers/net/phy/sfp.c
577
static size_t sfp_strlen(const char *str, size_t maxlen)
drivers/net/phy/sfp.c
585
if (str[i] != ' ' && str[i] != '\0')
drivers/net/phy/sfp.c
591
static bool sfp_match(const char *qs, const char *str, size_t len)
drivers/net/phy/sfp.c
597
return !strncmp(qs, str, len);
drivers/net/plip/plip.c
1387
static int __init plip_setup(char *str)
drivers/net/plip/plip.c
1391
str = get_options(str, ARRAY_SIZE(ints), ints);
drivers/net/plip/plip.c
1394
if (!strncmp(str, "parport", 7)) {
drivers/net/plip/plip.c
1395
int n = simple_strtoul(str+7, NULL, 10);
drivers/net/plip/plip.c
1400
str);
drivers/net/plip/plip.c
1401
} else if (!strcmp(str, "timid")) {
drivers/net/usb/cdc_ncm.c
76
#define CDC_NCM_STAT(str, m) { \
drivers/net/usb/cdc_ncm.c
77
.stat_string = str, \
drivers/net/wireless/ath/ath10k/debugfs_sta.c
657
const char *str[ATH10K_COUNTER_TYPE_MAX] = {"bytes", "packets"};
drivers/net/wireless/ath/ath10k/debugfs_sta.c
681
str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
684
str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
691
str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
697
" BW %s (20,5,10,40,80,160 MHz)\n", str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
704
" NSS %s (1x1,2x2,3x3,4x4)\n", str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
711
str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
716
str[j]);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
723
str[j]);
drivers/net/wireless/ath/ath11k/debugfs_htt_stats.c
19
#define PRINT_ARRAY_TO_BUF(out, buflen, arr, str, len, newline) \
drivers/net/wireless/ath/ath11k/debugfs_htt_stats.c
21
int index = 0; u8 i; const char *str_val = str; \
drivers/net/wireless/ath/ath11k/debugfs_sta.c
145
static const char *str[ATH11K_COUNTER_TYPE_MAX] = {"bytes", "packets"};
drivers/net/wireless/ath/ath11k/debugfs_sta.c
165
str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
168
str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
176
str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
183
str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
189
" BW %s (20,40,80,160 MHz)\n", str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
195
" NSS %s (1x1,2x2,3x3,4x4)\n", str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
202
str[j]);
drivers/net/wireless/ath/ath11k/debugfs_sta.c
209
str[j]);
drivers/net/wireless/ath/ath9k/debug.h
200
#define PR(str, elem) \
drivers/net/wireless/ath/ath9k/debug.h
202
seq_printf(file, "%s%13u%11u%10u%10u\n", str, \
drivers/net/wireless/ath/ath9k/debug_sta.c
151
#define PRINT_CCK_RATE(str, i, sp) \
drivers/net/wireless/ath/ath9k/debug_sta.c
155
str, \
drivers/net/wireless/ath/ath9k/debug_sta.c
160
#define PRINT_OFDM_RATE(str, i) \
drivers/net/wireless/ath/ath9k/debug_sta.c
164
str, \
drivers/net/wireless/atmel/at76c50x-usb.c
1600
char *str;
drivers/net/wireless/atmel/at76c50x-usb.c
1644
str = (char *)fwh + le32_to_cpu(fwh->str_offset);
drivers/net/wireless/atmel/at76c50x-usb.c
1659
at76_dbg(DBG_DEVSTART, "firmware id %s", str);
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2985
const char *str, size_t len,
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
3020
memcpy(desc->trig_desc.data, str, len);
drivers/net/wireless/intel/iwlwifi/fw/dbg.h
52
enum iwl_fw_dbg_trigger trig, const char *str,
drivers/net/wireless/intel/iwlwifi/fw/dump.c
395
#define FSEQ_REG(x) { .addr = (x), .str = #x, }
drivers/net/wireless/intel/iwlwifi/fw/dump.c
403
const char *str;
drivers/net/wireless/intel/iwlwifi/fw/dump.c
431
fseq_regs[i].str);
drivers/net/wireless/marvell/mwifiex/main.h
199
#define mwifiex_dbg_dump(adapter, dbg_mask, str, buf, len) \
drivers/net/wireless/marvell/mwifiex/main.h
202
print_hex_dump(KERN_DEBUG, str, \
drivers/net/wireless/mediatek/mt76/debugfs.c
91
void mt76_seq_puts_array(struct seq_file *file, const char *str,
drivers/net/wireless/mediatek/mt76/debugfs.c
96
seq_printf(file, "%16s:", str);
drivers/net/wireless/mediatek/mt76/eeprom.c
188
static bool mt76_string_prop_find(struct property *prop, const char *str)
drivers/net/wireless/mediatek/mt76/eeprom.c
192
if (!prop || !str || !str[0])
drivers/net/wireless/mediatek/mt76/eeprom.c
196
if (!strcasecmp(cp, str))
drivers/net/wireless/mediatek/mt76/mt76.h
1327
void mt76_seq_puts_array(struct seq_file *file, const char *str,
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
63
mt7921_seq_puts_array(struct seq_file *file, const char *str,
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
68
seq_printf(file, "%-16s:", str);
drivers/net/wireless/mediatek/mt76/mt7925/debugfs.c
69
mt7925_seq_puts_array(struct seq_file *file, const char *str,
drivers/net/wireless/mediatek/mt76/mt7925/debugfs.c
74
seq_printf(file, "%-22s:", str);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
104
if (str && size != 0)
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
105
memcpy(&frame[offset + 4], str, size);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
198
memcpy(cfg->s[i].str, &info[2],
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
320
u16 size = get_unaligned_le16(cfg->s[i].str);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
323
memcpy(buffer, &cfg->s[i].str[2], size);
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
400
wl->cfg.s[i].str = str_vals->firmware_version;
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
404
wl->cfg.s[i].str = str_vals->mac_address;
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
408
wl->cfg.s[i].str = str_vals->assoc_rsp;
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
412
wl->cfg.s[i].str = NULL;
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c
96
static int wilc_wlan_cfg_set_str(u8 *frame, u32 offset, u16 id, u8 *str,
drivers/net/wireless/microchip/wilc1000/wlan_cfg.h
28
u8 *str;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1577
static bool _rtl8812ae_get_integer_from_string(const char *str, u8 *pint)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1582
while (str[i] != '\0') {
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1583
if (str[i] >= '0' && str[i] <= '9') {
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1585
*pint += (str[i] - '0');
drivers/net/wireless/rsi/rsi_91x_hal.c
615
static int bl_cmd(struct rsi_hw *adapter, u8 cmd, u8 exp_resp, char *str)
drivers/net/wireless/rsi/rsi_91x_hal.c
632
__func__, str, cmd);
drivers/net/wireless/rsi/rsi_91x_hal.c
721
u8 *str;
drivers/net/wireless/rsi/rsi_91x_hal.c
728
str = "PING_VALID";
drivers/net/wireless/rsi/rsi_91x_hal.c
733
str = "PONG_VALID";
drivers/net/wireless/rsi/rsi_91x_hal.c
744
status = bl_cmd(adapter, cmd_req, cmd_resp, str);
drivers/net/wireless/silabs/wfx/hif_rx.c
254
const char *str;
drivers/net/wireless/silabs/wfx/hif_rx.c
310
hif_errors[i].str, param);
drivers/net/wireless/silabs/wfx/hif_rx.c
312
dev_err(wdev->dev, "asynchronous error: %s\n", hif_errors[i].str);
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
792
char *str;
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
808
str = "available_credits";
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
812
str = "pend_bytes";
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
820
str, bytes);
drivers/net/xen-netback/xenbus.c
666
char *str;
drivers/net/xen-netback/xenbus.c
669
str = xenbus_read(XBT_NIL, be->dev->nodename, "hotplug-status", &len);
drivers/net/xen-netback/xenbus.c
670
if (IS_ERR(str))
drivers/net/xen-netback/xenbus.c
672
if (len == sizeof("connected")-1 && !memcmp(str, "connected", len)) {
drivers/net/xen-netback/xenbus.c
679
kfree(str);
drivers/nvme/host/hwmon.c
146
int channel, const char **str)
drivers/nvme/host/hwmon.c
148
*str = nvme_hwmon_sensor_names[channel];
drivers/nvme/target/tcp.c
29
static int param_store_val(const char *str, int *val, int min, int max)
drivers/nvme/target/tcp.c
33
ret = kstrtoint(str, 10, &new_val);
drivers/nvme/target/tcp.c
44
static int set_params(const char *str, const struct kernel_param *kp)
drivers/nvme/target/tcp.c
46
return param_store_val(str, kp->arg, 0, INT_MAX);
drivers/of/device.c
191
ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len)
drivers/of/device.c
198
sl = of_modalias(dev->of_node, str, len - 2);
drivers/of/device.c
204
str[sl++] = '\n';
drivers/of/device.c
205
str[sl] = 0;
drivers/of/dynamic.c
1113
const char *prop_name, const char *str)
drivers/of/dynamic.c
1117
.length = strlen(str) + 1,
drivers/of/dynamic.c
1118
.value = (void *)str,
drivers/of/dynamic.c
963
const char *prop_name, const char *str)
drivers/of/dynamic.c
968
prop.length = strlen(str) + 1;
drivers/of/dynamic.c
969
prop.value = (void *)str;
drivers/of/module.c
11
ssize_t of_modalias(const struct device_node *np, char *str, ssize_t len)
drivers/of/module.c
24
if ((len > 0 && !str) || len < 0)
drivers/of/module.c
29
csize = snprintf(str, len, "of:N%pOFn%c%s", np, 'T',
drivers/of/module.c
35
str += csize;
drivers/of/module.c
38
csize = snprintf(str, len, "C%s", compat);
drivers/of/module.c
42
for (c = str; c; ) {
drivers/of/module.c
48
str += csize;
drivers/of/module.c
56
char *str;
drivers/of/module.c
70
str = kmalloc(size, GFP_KERNEL);
drivers/of/module.c
71
if (!str)
drivers/of/module.c
74
of_modalias(np, str, size);
drivers/of/module.c
75
str[size - 1] = '\0';
drivers/of/module.c
76
ret = request_module(str);
drivers/of/module.c
77
kfree(str);
drivers/of/unittest.c
935
const char *str;
drivers/of/unittest.c
938
ret = of_property_read_string(np, prop_name, &str);
drivers/of/unittest.c
942
unittest(strcmp(str, expected_str) == 0,
drivers/of/unittest.c
944
prop_name, str, expected_str);
drivers/of/unittest.c
952
const char *str;
drivers/of/unittest.c
967
ret = of_property_read_string_index(np, prop_name, i, &str);
drivers/of/unittest.c
971
unittest(strcmp(str, expected_array[i]) == 0,
drivers/of/unittest.c
973
prop_name, i, str, expected_array[i]);
drivers/parisc/eisa.c
433
static int __init eisa_irq_setup(char *str)
drivers/parisc/eisa.c
435
char *cur = str;
drivers/parisc/led.c
100
char *str = lcd_text;
drivers/parisc/led.c
115
gsc_writeb(*str ? *str++ : ' ', LCD_DATA_REG);
drivers/parisc/led.c
127
void lcd_print(const char *str)
drivers/parisc/led.c
130
if (str)
drivers/parisc/led.c
131
strscpy(lcd_text, str, sizeof(lcd_text));
drivers/parport/parport_ip32.c
318
static void parport_ip32_dump_state(struct parport *p, char *str,
drivers/parport/parport_ip32.c
324
printk(KERN_DEBUG PPIP32 "%s: state (%s):\n", p->name, str);
drivers/parport/parport_pc.c
3186
static int __init parport_init_mode_setup(char *str)
drivers/parport/parport_pc.c
3189
str);
drivers/parport/parport_pc.c
3191
if (!strcmp(str, "spp"))
drivers/parport/parport_pc.c
3193
if (!strcmp(str, "ps2"))
drivers/parport/parport_pc.c
3195
if (!strcmp(str, "epp"))
drivers/parport/parport_pc.c
3197
if (!strcmp(str, "ecp"))
drivers/parport/parport_pc.c
3199
if (!strcmp(str, "ecpepp"))
drivers/parport/parport_pc.c
3285
static int __init parport_setup(char *str)
drivers/parport/parport_pc.c
3291
if (!str || !*str || (*str == '0' && !*(str+1))) {
drivers/parport/parport_pc.c
3297
if (!strncmp(str, "auto", 4)) {
drivers/parport/parport_pc.c
3303
val = simple_strtoul(str, &endptr, 0);
drivers/parport/parport_pc.c
3304
if (endptr == str) {
drivers/parport/parport_pc.c
3305
pr_warn("parport=%s not understood\n", str);
drivers/parport/parport_pc.c
3310
pr_err("parport=%s ignored, too many ports\n", str);
drivers/parport/parport_pc.c
3318
sep = strchr(str, ',');
drivers/parport/probe.c
53
static void parse_data(struct parport *port, int device, char *str)
drivers/parport/probe.c
55
char *txt = kmalloc(strlen(str)+1, GFP_KERNEL);
drivers/parport/probe.c
64
strcpy(txt, str);
drivers/parport/procfs.c
101
if ((str = info->cmdset) != NULL)
drivers/parport/procfs.c
102
len += scnprintf (buffer + len, sizeof(buffer) - len, "COMMAND SET:%s;\n", str);
drivers/parport/procfs.c
77
const char *str;
drivers/parport/procfs.c
89
if ((str = info->class_name) != NULL)
drivers/parport/procfs.c
90
len += scnprintf (buffer + len, sizeof(buffer) - len, "CLASS:%s;\n", str);
drivers/parport/procfs.c
92
if ((str = info->model) != NULL)
drivers/parport/procfs.c
93
len += scnprintf (buffer + len, sizeof(buffer) - len, "MODEL:%s;\n", str);
drivers/parport/procfs.c
95
if ((str = info->mfr) != NULL)
drivers/parport/procfs.c
96
len += scnprintf (buffer + len, sizeof(buffer) - len, "MANUFACTURER:%s;\n", str);
drivers/parport/procfs.c
98
if ((str = info->description) != NULL)
drivers/parport/procfs.c
99
len += scnprintf (buffer + len, sizeof(buffer) - len, "DESCRIPTION:%s;\n", str);
drivers/pci/controller/dwc/pcie-amd-mdb.c
166
const char *str;
drivers/pci/controller/dwc/pcie-amd-mdb.c
340
if (intr_cause[d->hwirq].str)
drivers/pci/controller/dwc/pcie-amd-mdb.c
341
dev_warn(dev, "%s\n", intr_cause[d->hwirq].str);
drivers/pci/controller/dwc/pcie-amd-mdb.c
363
if (!intr_cause[i].str)
drivers/pci/controller/dwc/pcie-designware.c
704
const char *str;
drivers/pci/controller/dwc/pcie-designware.c
707
#define DW_PCIE_LTSSM_NAME(n) case n: str = #n; break
drivers/pci/controller/dwc/pcie-designware.c
747
str = "DW_PCIE_LTSSM_UNKNOWN";
drivers/pci/controller/dwc/pcie-designware.c
751
return str + strlen("DW_PCIE_LTSSM_");
drivers/pci/controller/pci-versatile.c
32
static int __init versatile_pci_slot_ignore(char *str)
drivers/pci/controller/pci-versatile.c
36
while (get_option(&str, &slot)) {
drivers/pci/controller/pcie-xilinx-cpm.c
318
const char *str;
drivers/pci/controller/pcie-xilinx-cpm.c
357
if (intr_cause[d->hwirq].str)
drivers/pci/controller/pcie-xilinx-cpm.c
358
dev_warn(dev, "%s\n", intr_cause[d->hwirq].str);
drivers/pci/controller/pcie-xilinx-cpm.c
437
if (!intr_cause[i].str)
drivers/pci/controller/pcie-xilinx-dma-pl.c
334
const char *str;
drivers/pci/controller/pcie-xilinx-dma-pl.c
367
if (intr_cause[d->hwirq].str)
drivers/pci/controller/pcie-xilinx-dma-pl.c
368
dev_warn(dev, "%s\n", intr_cause[d->hwirq].str);
drivers/pci/controller/pcie-xilinx-dma-pl.c
622
if (!intr_cause[i].str)
drivers/pci/controller/plda/pcie-microchip-host.c
189
const char *str;
drivers/pci/controller/plda/pcie-microchip-host.c
396
if (event_cause[data->hwirq].str)
drivers/pci/controller/plda/pcie-microchip-host.c
397
dev_err_ratelimited(dev, "%s\n", event_cause[data->hwirq].str);
drivers/pci/hotplug/cpcihp_generic.c
62
char *str;
drivers/pci/hotplug/cpcihp_generic.c
70
str = bridge;
drivers/pci/hotplug/cpcihp_generic.c
71
if (!*str)
drivers/pci/hotplug/cpcihp_generic.c
74
tmp = simple_strtoul(str, &p, 16);
drivers/pci/hotplug/cpcihp_generic.c
75
if (p == str || tmp > 0xff) {
drivers/pci/hotplug/cpcihp_generic.c
85
str = p + 1;
drivers/pci/hotplug/cpcihp_generic.c
86
tmp = simple_strtoul(str, &p, 16);
drivers/pci/hotplug/cpcihp_generic.c
87
if (p == str || tmp > 0x1f) {
drivers/pci/hotplug/ibmphp_ebda.c
599
static char str[SLOT_NAME_SIZE];
drivers/pci/hotplug/ibmphp_ebda.c
613
memset(str, 0, sizeof(str));
drivers/pci/hotplug/ibmphp_ebda.c
658
sprintf(str, "%s%dslot%d",
drivers/pci/hotplug/ibmphp_ebda.c
661
return str;
drivers/pci/hotplug/ibmphp_res.c
489
char *str = "";
drivers/pci/hotplug/ibmphp_res.c
492
str = "io";
drivers/pci/hotplug/ibmphp_res.c
495
str = "mem";
drivers/pci/hotplug/ibmphp_res.c
498
str = "pfmem";
drivers/pci/hotplug/ibmphp_res.c
507
debug("%s->rangeno in fix_resources is %d\n", str, res->rangeno);
drivers/pci/pci.c
170
static int __init pcie_port_pm_setup(char *str)
drivers/pci/pci.c
172
if (!strcmp(str, "off"))
drivers/pci/pci.c
174
else if (!strcmp(str, "force"))
drivers/pci/pci.c
4104
char * __weak __init pcibios_setup(char *str)
drivers/pci/pci.c
4106
return str;
drivers/pci/pci.c
6696
static int __init pci_setup(char *str)
drivers/pci/pci.c
6698
while (str) {
drivers/pci/pci.c
6699
char *k = strchr(str, ',');
drivers/pci/pci.c
6702
if (*str && (str = pcibios_setup(str)) && *str) {
drivers/pci/pci.c
6703
if (!pci_setup_cardbus(str)) {
drivers/pci/pci.c
6705
} else if (!strcmp(str, "nomsi")) {
drivers/pci/pci.c
6707
} else if (!strncmp(str, "noats", 5)) {
drivers/pci/pci.c
6710
} else if (!strcmp(str, "noaer")) {
drivers/pci/pci.c
6712
} else if (!strcmp(str, "earlydump")) {
drivers/pci/pci.c
6714
} else if (!strncmp(str, "realloc=", 8)) {
drivers/pci/pci.c
6715
pci_realloc_get_opt(str + 8);
drivers/pci/pci.c
6716
} else if (!strncmp(str, "realloc", 7)) {
drivers/pci/pci.c
6718
} else if (!strcmp(str, "nodomains")) {
drivers/pci/pci.c
6720
} else if (!strncmp(str, "noari", 5)) {
drivers/pci/pci.c
6722
} else if (!strncmp(str, "notph", 5)) {
drivers/pci/pci.c
6724
} else if (!strncmp(str, "resource_alignment=", 19)) {
drivers/pci/pci.c
6725
resource_alignment_param = str + 19;
drivers/pci/pci.c
6726
} else if (!strncmp(str, "ecrc=", 5)) {
drivers/pci/pci.c
6727
pcie_ecrc_get_policy(str + 5);
drivers/pci/pci.c
6728
} else if (!strncmp(str, "hpiosize=", 9)) {
drivers/pci/pci.c
6729
pci_hotplug_io_size = memparse(str + 9, &str);
drivers/pci/pci.c
6730
} else if (!strncmp(str, "hpmmiosize=", 11)) {
drivers/pci/pci.c
6731
pci_hotplug_mmio_size = memparse(str + 11, &str);
drivers/pci/pci.c
6732
} else if (!strncmp(str, "hpmmioprefsize=", 15)) {
drivers/pci/pci.c
6733
pci_hotplug_mmio_pref_size = memparse(str + 15, &str);
drivers/pci/pci.c
6734
} else if (!strncmp(str, "hpmemsize=", 10)) {
drivers/pci/pci.c
6735
pci_hotplug_mmio_size = memparse(str + 10, &str);
drivers/pci/pci.c
6737
} else if (!strncmp(str, "hpbussize=", 10)) {
drivers/pci/pci.c
6739
simple_strtoul(str + 10, &str, 0);
drivers/pci/pci.c
6742
} else if (!strncmp(str, "pcie_bus_tune_off", 17)) {
drivers/pci/pci.c
6744
} else if (!strncmp(str, "pcie_bus_safe", 13)) {
drivers/pci/pci.c
6746
} else if (!strncmp(str, "pcie_bus_perf", 13)) {
drivers/pci/pci.c
6748
} else if (!strncmp(str, "pcie_bus_peer2peer", 18)) {
drivers/pci/pci.c
6750
} else if (!strncmp(str, "pcie_scan_all", 13)) {
drivers/pci/pci.c
6752
} else if (!strncmp(str, "disable_acs_redir=", 18)) {
drivers/pci/pci.c
6753
disable_acs_redir_param = str + 18;
drivers/pci/pci.c
6754
} else if (!strncmp(str, "config_acs=", 11)) {
drivers/pci/pci.c
6755
config_acs_param = str + 11;
drivers/pci/pci.c
6757
pr_err("PCI: Unknown option `%s'\n", str);
drivers/pci/pci.c
6760
str = k;
drivers/pci/pci.h
1120
void pcie_ecrc_get_policy(char *str);
drivers/pci/pci.h
1123
static inline void pcie_ecrc_get_policy(char *str) { }
drivers/pci/pci.h
426
int pci_setup_cardbus(char *str);
drivers/pci/pci.h
446
static inline int pci_setup_cardbus(char *str) { return -ENOENT; }
drivers/pci/pcie/aer.c
230
void pcie_ecrc_get_policy(char *str)
drivers/pci/pcie/aer.c
234
i = match_string(ecrc_policy_str, ARRAY_SIZE(ecrc_policy_str), str);
drivers/pci/pcie/aspm.c
1744
static int __init pcie_aspm_disable(char *str)
drivers/pci/pcie/aspm.c
1746
if (!strcmp(str, "off")) {
drivers/pci/pcie/aspm.c
1751
} else if (!strcmp(str, "force")) {
drivers/pci/pcie/pme.c
33
static int __init pcie_pme_setup(char *str)
drivers/pci/pcie/pme.c
35
if (!strncmp(str, "nomsi", 5))
drivers/pci/pcie/portdrv.c
622
static int __init pcie_port_setup(char *str)
drivers/pci/pcie/portdrv.c
624
if (!strncmp(str, "compat", 6))
drivers/pci/pcie/portdrv.c
626
else if (!strncmp(str, "native", 6))
drivers/pci/pcie/portdrv.c
628
else if (!strncmp(str, "dpc-native", 10))
drivers/pci/probe.c
1971
static const char * const str[] = {
drivers/pci/probe.c
1988
if (type < ARRAY_SIZE(str))
drivers/pci/probe.c
1989
return str[type];
drivers/pci/setup-bus.c
1771
void __init pci_realloc_get_opt(char *str)
drivers/pci/setup-bus.c
1773
if (!strncmp(str, "off", 3))
drivers/pci/setup-bus.c
1775
else if (!strncmp(str, "on", 2))
drivers/pci/setup-cardbus.c
182
int pci_setup_cardbus(char *str)
drivers/pci/setup-cardbus.c
184
if (!strncmp(str, "cbiosize=", 9)) {
drivers/pci/setup-cardbus.c
185
pci_cardbus_io_size = memparse(str + 9, &str);
drivers/pci/setup-cardbus.c
187
} else if (!strncmp(str, "cbmemsize=", 10)) {
drivers/pci/setup-cardbus.c
188
pci_cardbus_mem_size = memparse(str + 10, &str);
drivers/pci/xen-pcifront.c
808
char str[64];
drivers/pci/xen-pcifront.c
830
len = snprintf(str, sizeof(str), "root-%d", i);
drivers/pci/xen-pcifront.c
831
if (unlikely(len >= (sizeof(str) - 1)))
drivers/pci/xen-pcifront.c
834
err = xenbus_scanf(XBT_NIL, pdev->xdev->otherend, str,
drivers/pci/xen-pcifront.c
910
char str[64];
drivers/pci/xen-pcifront.c
942
l = snprintf(str, sizeof(str), "state-%d", i);
drivers/pci/xen-pcifront.c
943
if (unlikely(l >= (sizeof(str) - 1))) {
drivers/pci/xen-pcifront.c
947
state = xenbus_read_unsigned(pdev->xdev->otherend, str,
drivers/pci/xen-pcifront.c
954
l = snprintf(str, sizeof(str), "vdev-%d", i);
drivers/pci/xen-pcifront.c
955
if (unlikely(l >= (sizeof(str) - 1))) {
drivers/pci/xen-pcifront.c
959
err = xenbus_scanf(XBT_NIL, pdev->xdev->otherend, str,
drivers/pcmcia/cistpl.c
1243
return parse_strings(p, q, 2, v2->str, &v2->vendor, NULL);
drivers/pcmcia/cistpl.c
806
vers_1->str, vers_1->ofs, &vers_1->ns);
drivers/pcmcia/cistpl.c
818
altstr->str, altstr->ofs, &altstr->ns);
drivers/pcmcia/ds.c
457
tmp = vers1->str + vers1->ofs[i];
drivers/pinctrl/aspeed/pinctrl-aspeed.c
171
const char *str = get(expr);
drivers/pinctrl/aspeed/pinctrl-aspeed.c
172
size_t delta = strlen(str) + 2;
drivers/pinctrl/aspeed/pinctrl-aspeed.c
185
strcat(found, str);
drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c
369
u8 str;
drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c
411
str = FIELD_GET(MPFS_PINCTRL_DRV_MASK, val);
drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c
412
if (!str)
drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c
415
arg = mpfs_pinctrl_get_drive_strength_ma(str);
drivers/pinctrl/pinctrl-th1520.c
139
static enum th1520_muxtype th1520_muxtype_get(const char *str)
drivers/pinctrl/pinctrl-th1520.c
144
if (!strcmp(str, th1520_muxtype_string[mt]))
drivers/pinctrl/renesas/sh_pfc.h
613
#define GP_ALL(str) CPU_ALL_GP(_GP_ALL, str)
drivers/pinctrl/renesas/sh_pfc.h
668
#define PORT_ALL(str) CPU_ALL_PORT(_PORT_ALL, PORT, str)
drivers/pinctrl/renesas/sh_pfc.h
718
#define GPIO_FN(str) \
drivers/pinctrl/renesas/sh_pfc.h
719
PINMUX_GPIO_FN(GPIO_FN_##str, PINMUX_FN_BASE, str##_MARK)
drivers/platform/chrome/cros_ec_chardev.c
51
static int ec_get_version(struct chardev_priv *priv, char *str, int maxlen)
drivers/platform/chrome/cros_ec_chardev.c
69
snprintf(str, maxlen,
drivers/platform/chrome/cros_ec_chardev.c
79
snprintf(str, maxlen, "%s\n%s\n%s\n%s\n", CROS_EC_DEV_VERSION,
drivers/platform/chrome/cros_ec_sysfs.c
42
const char * const str;
drivers/platform/chrome/cros_ec_sysfs.c
77
if (!strncasecmp(words[i].str, buf+offset,
drivers/platform/chrome/cros_ec_sysfs.c
78
strlen(words[i].str))) {
drivers/platform/surface/aggregator/bus.c
395
static int ssam_device_uid_from_string(const char *str, struct ssam_device_uid *uid)
drivers/platform/surface/aggregator/bus.c
400
n = sscanf(str, "%hhx:%hhx:%hhx:%hhx:%hhx", &d, &tc, &tid, &iid, &fn);
drivers/platform/surface/aggregator/bus.c
415
const char *str = fwnode_get_name(node);
drivers/platform/surface/aggregator/bus.c
421
if (strncmp(str, "ssam:", strlen("ssam:")) != 0)
drivers/platform/surface/aggregator/bus.c
424
str += strlen("ssam:");
drivers/platform/surface/aggregator/bus.c
425
return ssam_device_uid_from_string(str, uid);
drivers/platform/wmi/marshalling.c
198
char *str;
drivers/platform/wmi/marshalling.c
213
str = kmalloc(chars + 1, GFP_KERNEL);
drivers/platform/wmi/marshalling.c
214
if (!str)
drivers/platform/wmi/marshalling.c
222
kfree(str);
drivers/platform/wmi/marshalling.c
226
str[i] = value & 0xFF;
drivers/platform/wmi/marshalling.c
235
out->pointer = str;
drivers/platform/wmi/marshalling.c
240
str[chars] = '\0';
drivers/platform/wmi/marshalling.c
243
out->pointer = str;
drivers/platform/wmi/string.c
34
ssize_t wmi_string_to_utf8s(const struct wmi_string *str, u8 *dst, size_t length)
drivers/platform/wmi/string.c
37
int inlen = le16_to_cpu(str->length) / 2;
drivers/platform/wmi/string.c
44
ret = utf16s_to_utf8s((__force const wchar_t *)str->chars, inlen, UTF16_LITTLE_ENDIAN, dst,
drivers/platform/wmi/string.c
68
ssize_t wmi_string_from_utf8s(struct wmi_string *str, size_t max_chars, const u8 *src,
drivers/platform/wmi/string.c
78
ret = utf8s_to_utf16s(src, src_length, UTF16_LITTLE_ENDIAN, (__force wchar_t *)str->chars,
drivers/platform/wmi/string.c
87
str->length = cpu_to_le16(str_length);
drivers/platform/wmi/string.c
88
str->chars[ret] = '\0';
drivers/platform/x86/asus-nb-wmi.c
53
static bool asus_i8042_filter(unsigned char data, unsigned char str, struct serio *port,
drivers/platform/x86/asus-nb-wmi.c
59
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/dasharo-acpi.c
158
u32 attr, int channel, const char **str)
drivers/platform/x86/dasharo-acpi.c
167
*str = data->capabilities[DASHARO_FEATURE_TEMPERATURE][channel].name;
drivers/platform/x86/dasharo-acpi.c
173
*str = data->capabilities[DASHARO_FEATURE_FAN_TACH][channel].name;
drivers/platform/x86/dell/alienware-wmi-wmax.c
909
u32 attr, int channel, const char **str)
drivers/platform/x86/dell/alienware-wmi-wmax.c
920
*str = "CPU";
drivers/platform/x86/dell/alienware-wmi-wmax.c
923
*str = "Front";
drivers/platform/x86/dell/alienware-wmi-wmax.c
926
*str = "GPU";
drivers/platform/x86/dell/alienware-wmi-wmax.c
929
*str = "Unknown";
drivers/platform/x86/dell/alienware-wmi-wmax.c
938
*str = "CPU Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
942
*str = "GPU Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
945
*str = "PCI Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
948
*str = "Mid Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
953
*str = "Top Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
956
*str = "Side Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
960
*str = "U.2 Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
964
*str = "Front Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
968
*str = "Bottom Fan";
drivers/platform/x86/dell/alienware-wmi-wmax.c
971
*str = "Unknown Fan";
drivers/platform/x86/dell/dell-laptop.c
728
static bool dell_laptop_i8042_filter(unsigned char data, unsigned char str, struct serio *port,
drivers/platform/x86/dell/dell-laptop.c
733
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/dell/dell-wmi-ddv.c
400
const char **str)
drivers/platform/x86/dell/dell-wmi-ddv.c
418
*str = fan_labels[type];
drivers/platform/x86/dell/dell-wmi-ddv.c
421
*str = fan_dock_labels[type - 0x11];
drivers/platform/x86/dell/dell-wmi-ddv.c
424
*str = "Unknown Fan";
drivers/platform/x86/dell/dell-wmi-ddv.c
432
const char **str)
drivers/platform/x86/dell/dell-wmi-ddv.c
448
*str = "CPU";
drivers/platform/x86/dell/dell-wmi-ddv.c
451
*str = "Video";
drivers/platform/x86/dell/dell-wmi-ddv.c
454
*str = "Memory"; /* sometimes called DIMM */
drivers/platform/x86/dell/dell-wmi-ddv.c
457
*str = "Other";
drivers/platform/x86/dell/dell-wmi-ddv.c
460
*str = "Ambient"; /* sometimes called SKIN */
drivers/platform/x86/dell/dell-wmi-ddv.c
463
*str = "SODIMM";
drivers/platform/x86/dell/dell-wmi-ddv.c
466
*str = "HDD";
drivers/platform/x86/dell/dell-wmi-ddv.c
469
*str = "SODIMM 2";
drivers/platform/x86/dell/dell-wmi-ddv.c
472
*str = "NB";
drivers/platform/x86/dell/dell-wmi-ddv.c
475
*str = "Charger";
drivers/platform/x86/dell/dell-wmi-ddv.c
478
*str = "Memory 3";
drivers/platform/x86/dell/dell-wmi-ddv.c
481
*str = "Unknown";
drivers/platform/x86/dell/dell-wmi-ddv.c
489
int channel, const char **str)
drivers/platform/x86/dell/dell-wmi-ddv.c
499
ret = dell_wmi_ddv_fan_read_string(data, channel, str);
drivers/platform/x86/dell/dell-wmi-ddv.c
510
ret = dell_wmi_ddv_temp_read_string(data, channel, str);
drivers/platform/x86/dell/dell-wmi-sysman/dell-wmi-sysman.h
191
size_t calculate_string_buffer(const char *str);
drivers/platform/x86/dell/dell-wmi-sysman/dell-wmi-sysman.h
194
ssize_t populate_string_buffer(char *buffer, size_t buffer_len, const char *str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
129
if (check_property_type(str, ATTR_NAME, ACPI_TYPE_STRING))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
13
get_instance_id(str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
133
if (check_property_type(str, DISPL_NAME_LANG_CODE, ACPI_TYPE_STRING))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
137
if (check_property_type(str, DISPLAY_NAME, ACPI_TYPE_STRING))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
141
if (check_property_type(str, DEFAULT_VAL, ACPI_TYPE_STRING))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
145
if (check_property_type(str, MODIFIER, ACPI_TYPE_STRING))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
149
if (check_property_type(str, MIN_LEN, ACPI_TYPE_INTEGER))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
152
if (check_property_type(str, MAX_LEN, ACPI_TYPE_INTEGER))
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
54
attribute_s_property_show(display_name_language_code, str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
58
attribute_s_property_show(display_name, str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
62
attribute_s_property_show(default_value, str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
66
attribute_property_store(current_value, str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
70
attribute_s_property_show(dell_modifier, str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
74
attribute_n_property_show(min_length, str);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
78
attribute_n_property_show(max_length, str);
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
36
ssize_t populate_string_buffer(char *buffer, size_t buffer_len, const char *str)
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
42
ret = utf8s_to_utf16s(str, strlen(str), UTF16_HOST_ENDIAN,
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
63
size_t calculate_string_buffer(const char *str)
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
66
return sizeof(u16) + strlen(str) * sizeof(u16);
drivers/platform/x86/hp/hp-bioscfg/biosattr-interface.c
207
void *hp_ascii_to_utf16_unicode(u16 *p, const u8 *str)
drivers/platform/x86/hp/hp-bioscfg/biosattr-interface.c
209
int len = strlen(str);
drivers/platform/x86/hp/hp-bioscfg/biosattr-interface.c
221
ret = utf8s_to_utf16s(str, strlen(str), UTF16_HOST_ENDIAN, p, len);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
218
size_t hp_calculate_string_buffer(const char *str)
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
220
size_t length = strlen(str);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
227
return sizeof(u16) + strlen(str) * sizeof(u16);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
430
int hp_convert_hexstr_to_str(const char *input, u32 input_len, char **str, int *len)
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
439
if (input_len <= 0 || !input || !str || !len)
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
443
*str = NULL;
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
472
*str = krealloc(new_str, (new_len + 1) * sizeof(char),
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
474
if (*str)
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
774
char str[MAX_BUFF_SIZE];
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
786
&buffer_size, str, MAX_BUFF_SIZE);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
791
if (strlen(str) == 0) {
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
804
duplicate = kset_find_obj(temp_kset, str);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
806
pr_debug("Duplicate attribute name found - %s\n", str);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
821
temp_str = str;
drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
469
size_t hp_calculate_string_buffer(const char *str);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
471
void *hp_ascii_to_utf16_unicode(u16 *p, const u8 *str);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
474
int hp_convert_hexstr_to_str(const char *input, u32 input_len, char **str, int *len);
drivers/platform/x86/hp/hp_accel.c
269
static bool hp_accel_i8042_filter(unsigned char data, unsigned char str,
drivers/platform/x86/hp/hp_accel.c
274
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/intel/plr_tpmi.c
169
const char *str = NULL;
drivers/platform/x86/intel/plr_tpmi.c
173
str = plr_coarse_reasons[bit];
drivers/platform/x86/intel/plr_tpmi.c
177
str = plr_fine_reasons[index];
drivers/platform/x86/intel/plr_tpmi.c
180
if (str)
drivers/platform/x86/intel/plr_tpmi.c
181
seq_printf(s, " %s", str);
drivers/platform/x86/intel/pmc/core.c
268
const char *str,
drivers/platform/x86/intel/pmc/core.c
286
dev_info(dev, "\nPMC%d:LPM_%s_%d:\t0x%x\n", pmc_index, str, idx,
drivers/platform/x86/intel/pmc/core.c
289
seq_printf(s, "\nPMC%d:LPM_%s_%d:\t0x%x\n", pmc_index, str, idx,
drivers/platform/x86/msi-laptop.c
809
static bool msi_laptop_i8042_filter(unsigned char data, unsigned char str, struct serio *port,
drivers/platform/x86/msi-laptop.c
814
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/panasonic-laptop.c
262
static bool panasonic_i8042_filter(unsigned char data, unsigned char str,
drivers/platform/x86/panasonic-laptop.c
267
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/portwell-ec.c
306
u32 attr, int channel, const char **str)
drivers/platform/x86/portwell-ec.c
310
*str = pwec_master_data.temp_props[channel].label;
drivers/platform/x86/portwell-ec.c
313
*str = pwec_master_data.in_props[channel].label;
drivers/platform/x86/samsung-galaxybook.c
1170
static bool galaxybook_i8042_filter(unsigned char data, unsigned char str, struct serio *port,
drivers/platform/x86/samsung-galaxybook.c
1176
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/silicom-platform.c
857
const char **str)
drivers/platform/x86/silicom-platform.c
861
*str = "Silicom_platform: Fan Speed";
drivers/platform/x86/silicom-platform.c
864
*str = "Silicom_platform: Thermostat Sensor";
drivers/platform/x86/system76_acpi.c
566
int channel, const char **str)
drivers/platform/x86/system76_acpi.c
573
*str = system76_name(data->nfan, channel);
drivers/platform/x86/system76_acpi.c
574
if (*str)
drivers/platform/x86/system76_acpi.c
581
*str = system76_name(data->ntmp, channel);
drivers/platform/x86/system76_acpi.c
582
if (*str)
drivers/platform/x86/toshiba_acpi.c
2757
static bool toshiba_acpi_i8042_filter(unsigned char data, unsigned char str,
drivers/platform/x86/toshiba_acpi.c
2760
if (str & I8042_STR_AUXDATA)
drivers/platform/x86/touchscreen_dmi.c
1915
static int __init ts_parse_props(char *str)
drivers/platform/x86/touchscreen_dmi.c
1923
strscpy(orig_str, str);
drivers/platform/x86/touchscreen_dmi.c
1930
ts_cmdline_data.acpi_name = strsep(&str, ":");
drivers/platform/x86/touchscreen_dmi.c
1933
name = strsep(&str, ":");
drivers/platform/x86/touchscreen_dmi.c
1953
if (!i || str)
drivers/platform/x86/uniwill/uniwill-acpi.c
1008
int channel, const char **str)
drivers/platform/x86/uniwill/uniwill-acpi.c
1012
*str = uniwill_temp_labels[channel];
drivers/platform/x86/uniwill/uniwill-acpi.c
1015
*str = uniwill_fan_labels[channel];
drivers/pnp/base.h
14
void pnp_eisa_id_to_string(u32 id, char *str);
drivers/pnp/card.c
187
char *str = buf;
drivers/pnp/card.c
190
str += sprintf(str, "%s\n", card->name);
drivers/pnp/card.c
191
return (str - buf);
drivers/pnp/card.c
199
char *str = buf;
drivers/pnp/card.c
204
str += sprintf(str, "%s\n", pos->id);
drivers/pnp/card.c
207
return (str - buf);
drivers/pnp/interface.c
444
char *str = buf;
drivers/pnp/interface.c
449
str += sprintf(str, "%s\n", pos->id);
drivers/pnp/interface.c
452
return (str - buf);
drivers/pnp/isapnp/core.c
1053
static int __init isapnp_setup_disable(char *str)
drivers/pnp/isapnp/core.c
1063
static int __init isapnp_setup_isapnp(char *str)
drivers/pnp/isapnp/core.c
1065
(void)((get_option(&str, &isapnp_rdp) == 2) &&
drivers/pnp/isapnp/core.c
1066
(get_option(&str, &isapnp_reset) == 2) &&
drivers/pnp/isapnp/core.c
1067
(get_option(&str, &isapnp_verbose) == 2));
drivers/pnp/pnpacpi/core.c
316
static int __init pnpacpi_setup(char *str)
drivers/pnp/pnpacpi/core.c
318
if (str == NULL)
drivers/pnp/pnpacpi/core.c
320
if (!strncmp(str, "off", 3))
drivers/pnp/pnpbios/core.c
396
static int __init pnpbios_setup(char *str)
drivers/pnp/pnpbios/core.c
400
while ((str != NULL) && (*str != '\0')) {
drivers/pnp/pnpbios/core.c
401
if (strncmp(str, "off", 3) == 0)
drivers/pnp/pnpbios/core.c
403
if (strncmp(str, "on", 2) == 0)
drivers/pnp/pnpbios/core.c
405
invert = (strncmp(str, "no-", 3) == 0);
drivers/pnp/pnpbios/core.c
407
str += 3;
drivers/pnp/pnpbios/core.c
408
if (strncmp(str, "curr", 4) == 0)
drivers/pnp/pnpbios/core.c
410
str = strchr(str, ',');
drivers/pnp/pnpbios/core.c
411
if (str != NULL)
drivers/pnp/pnpbios/core.c
412
str += strspn(str, ", \t");
drivers/pnp/resource.c
706
static int __init pnp_setup_reserve_irq(char *str)
drivers/pnp/resource.c
711
if (get_option(&str, &pnp_reserve_irq[i]) != 2)
drivers/pnp/resource.c
719
static int __init pnp_setup_reserve_dma(char *str)
drivers/pnp/resource.c
724
if (get_option(&str, &pnp_reserve_dma[i]) != 2)
drivers/pnp/resource.c
732
static int __init pnp_setup_reserve_io(char *str)
drivers/pnp/resource.c
737
if (get_option(&str, &pnp_reserve_io[i]) != 2)
drivers/pnp/resource.c
745
static int __init pnp_setup_reserve_mem(char *str)
drivers/pnp/resource.c
750
if (get_option(&str, &pnp_reserve_mem[i]) != 2)
drivers/pnp/support.c
40
void pnp_eisa_id_to_string(u32 id, char *str)
drivers/pnp/support.c
52
str[0] = 'A' + ((id >> 26) & 0x3f) - 1;
drivers/pnp/support.c
53
str[1] = 'A' + ((id >> 21) & 0x1f) - 1;
drivers/pnp/support.c
54
str[2] = 'A' + ((id >> 16) & 0x1f) - 1;
drivers/pnp/support.c
55
str[3] = hex_asc_hi(id >> 8);
drivers/pnp/support.c
56
str[4] = hex_asc_lo(id >> 8);
drivers/pnp/support.c
57
str[5] = hex_asc_hi(id);
drivers/pnp/support.c
58
str[6] = hex_asc_lo(id);
drivers/pnp/support.c
59
str[7] = '\0';
drivers/power/supply/bq25890_charger.c
1396
const char *str;
drivers/power/supply/bq25890_charger.c
1399
ret = device_property_read_string(bq->dev, "linux,secondary-charger-name", &str);
drivers/power/supply/bq25890_charger.c
1401
bq->secondary_chrg = power_supply_get_by_name(str);
drivers/power/supply/bq27xxx_battery.c
1318
const char *str = bq27xxx_dm_reg_name[reg_id];
drivers/power/supply/bq27xxx_battery.c
1322
dev_warn(di->dev, "buffer does not match %s dm spec\n", str);
drivers/power/supply/bq27xxx_battery.c
1327
dev_warn(di->dev, "%s dm spec has unsupported byte size\n", str);
drivers/power/supply/bq27xxx_battery.c
1335
dev_info(di->dev, "%s has %u\n", str, val);
drivers/power/supply/bq27xxx_battery.c
1351
"\n", str, be16_to_cpup(prev), val);
drivers/power/supply/bq27xxx_battery.c
1355
dev_info(di->dev, "update %s to %u\n", str, val);
drivers/power/supply/max1721x_battery.c
227
uint16_t reg, uint8_t nr, char *str)
drivers/power/supply/max1721x_battery.c
231
if (!str || !(reg == MAX1721X_REG_MFG_STR ||
drivers/power/supply/max1721x_battery.c
238
*str++ = val>>8 & 0x00FF;
drivers/power/supply/max1721x_battery.c
239
*str++ = val & 0x00FF;
drivers/power/supply/max1721x_battery.c
245
static int get_sn_string(struct max17211_device_info *info, char *str)
drivers/power/supply/max1721x_battery.c
249
if (!str)
drivers/power/supply/max1721x_battery.c
259
snprintf(str, 13, "%04X%04X%04X", val[0], val[1], val[2]);
drivers/power/supply/power_supply_hwmon.c
201
const char **str)
drivers/power/supply/power_supply_hwmon.c
205
*str = ps_temp_label[channel];
drivers/power/supply/power_supply_sysfs.c
248
static void power_supply_escape_spaces(const char *str, char *buf, size_t bufsize)
drivers/power/supply/power_supply_sysfs.c
250
strscpy(buf, str, bufsize);
drivers/power/supply/sbs-battery.c
913
const char *str;
drivers/power/supply/sbs-battery.c
993
str = sbs_get_constant_string(chip, psp);
drivers/power/supply/sbs-battery.c
994
if (IS_ERR(str))
drivers/power/supply/sbs-battery.c
995
ret = PTR_ERR(str);
drivers/power/supply/sbs-battery.c
997
val->strval = str;
drivers/powercap/intel_rapl_common.c
1934
#define RAPL_EVENT_ATTR_STR(_name, v, str) \
drivers/powercap/intel_rapl_common.c
1937
.event_str = str, \
drivers/rapidio/rio-sysfs.c
40
char *str = buf;
drivers/rapidio/rio-sysfs.c
47
str +=
drivers/rapidio/rio-sysfs.c
48
sprintf(str, "%04x %02x\n", i,
drivers/rapidio/rio-sysfs.c
52
return (str - buf);
drivers/rapidio/rio-sysfs.c
70
char *str = buf;
drivers/rapidio/rio-sysfs.c
76
str += sprintf(str, "%s\n",
drivers/rapidio/rio-sysfs.c
79
str += sprintf(str, "null\n");
drivers/rapidio/rio-sysfs.c
83
return str - buf;
drivers/ras/cec.c
594
int __init parse_cec_param(char *str)
drivers/ras/cec.c
596
if (!str)
drivers/ras/cec.c
599
if (*str == '=')
drivers/ras/cec.c
600
str++;
drivers/ras/cec.c
602
if (!strcmp(str, "cec_disable"))
drivers/ras/ras.c
119
static int __init parse_ras_param(char *str)
drivers/ras/ras.c
122
parse_cec_param(str);
drivers/regulator/max77675-regulator.c
709
const char *str;
drivers/regulator/max77675-regulator.c
714
if (of_property_read_string(np, "adi,en-mode", &str))
drivers/regulator/max77675-regulator.c
717
index = match_string(en_modes, ARRAY_SIZE(en_modes), str);
drivers/regulator/max77675-regulator.c
719
dev_err(dev, "Invalid 'adi,en-mode' value '%s'\n", str);
drivers/regulator/max77675-regulator.c
811
const char *str;
drivers/regulator/max77675-regulator.c
817
if (of_property_read_string(np, "adi,drv-sbb-strength", &str))
drivers/regulator/max77675-regulator.c
820
index = match_string(strength_names, ARRAY_SIZE(strength_names), str);
drivers/regulator/max77675-regulator.c
822
dev_err(dev, "Invalid 'adi,drv-sbb-strength' value: '%s'\n", str);
drivers/s390/block/dasd.c
917
char *buffer, *str;
drivers/s390/block/dasd.c
928
str = skip_spaces(buffer);
drivers/s390/block/dasd.c
930
if (strncmp(str, "reset", 5) == 0) {
drivers/s390/block/dasd.c
932
} else if (strncmp(str, "on", 2) == 0) {
drivers/s390/block/dasd.c
941
} else if (strncmp(str, "off", 3) == 0) {
drivers/s390/block/dasd_devmap.c
132
static int dasd_busid(char *str, int *id0, int *id1, int *devno)
drivers/s390/block/dasd_devmap.c
138
if (strncmp(DASD_IPLDEV, str, strlen(DASD_IPLDEV)) == 0) {
drivers/s390/block/dasd_devmap.c
151
if (!kstrtouint(str, 16, &val)) {
drivers/s390/block/dasd_devmap.c
160
tok = strsep(&str, ".");
drivers/s390/block/dasd_devmap.c
165
tok = strsep(&str, ".");
drivers/s390/block/dasd_devmap.c
170
tok = strsep(&str, ".");
drivers/s390/block/dasd_devmap.c
181
static int __init dasd_feature_list(char *str)
drivers/s390/block/dasd_devmap.c
188
if (!str)
drivers/s390/block/dasd_devmap.c
193
str[len] && str[len] != ':' && str[len] != ')'; len++);
drivers/s390/block/dasd_devmap.c
194
if (len == 2 && !strncmp(str, "ro", 2))
drivers/s390/block/dasd_devmap.c
196
else if (len == 4 && !strncmp(str, "diag", 4))
drivers/s390/block/dasd_devmap.c
198
else if (len == 3 && !strncmp(str, "raw", 3))
drivers/s390/block/dasd_devmap.c
200
else if (len == 6 && !strncmp(str, "erplog", 6))
drivers/s390/block/dasd_devmap.c
202
else if (len == 8 && !strncmp(str, "failfast", 8))
drivers/s390/block/dasd_devmap.c
206
len, str);
drivers/s390/block/dasd_devmap.c
209
str += len;
drivers/s390/block/dasd_devmap.c
210
if (*str != ':')
drivers/s390/block/dasd_devmap.c
212
str++;
drivers/s390/block/dasd_proc.c
258
char *buffer, *str;
drivers/s390/block/dasd_proc.c
268
str = skip_spaces(buffer);
drivers/s390/block/dasd_proc.c
269
if (strncmp(str, "set", 3) == 0 && isspace(str[3])) {
drivers/s390/block/dasd_proc.c
271
str = skip_spaces(str + 4);
drivers/s390/block/dasd_proc.c
272
if (strcmp(str, "on") == 0) {
drivers/s390/block/dasd_proc.c
288
} else if (strcmp(str, "off") == 0) {
drivers/s390/block/dasd_proc.c
297
} else if (strncmp(str, "reset", 5) == 0) {
drivers/s390/block/dasd_proc.c
308
pr_warn("%s is not a supported value for /proc/dasd/statistics\n", str);
drivers/s390/char/con3215.c
1132
static int __init con3215_setup_drop(char *str)
drivers/s390/char/con3215.c
1137
rc = kstrtobool(str, &drop);
drivers/s390/char/con3215.c
526
static unsigned int raw3215_addtext(const u8 *str, size_t length,
drivers/s390/char/con3215.c
540
ch = str[c];
drivers/s390/char/con3215.c
576
static void raw3215_write(struct raw3215_info *raw, const u8 *str,
drivers/s390/char/con3215.c
584
count = raw3215_addtext(str, length, raw, RAW3215_COUNT, 0);
drivers/s390/char/con3215.c
588
raw3215_addtext(str, length, raw, RAW3215_STORE,
drivers/s390/char/con3215.c
828
static void handle_write(struct raw3215_info *raw, const u8 *str, size_t count)
drivers/s390/char/con3215.c
832
raw3215_write(raw, str, i);
drivers/s390/char/con3215.c
834
str += i;
drivers/s390/char/con3215.c
842
static void con3215_write(struct console *co, const char *str, unsigned int count)
drivers/s390/char/con3215.c
844
handle_write(raw3215[0], str, count);
drivers/s390/char/con3270.c
2038
con3270_write(struct console *co, const char *str, unsigned int count)
drivers/s390/char/con3270.c
2046
c = *str++;
drivers/s390/char/hmcdrv_ftp.c
101
pdesc->str, pdesc->cmd);
drivers/s390/char/hmcdrv_ftp.c
55
const char *str; /* command string */
drivers/s390/char/hmcdrv_ftp.c
70
{.str = "get", /* [0] get (CRC = 0x68eb) */
drivers/s390/char/hmcdrv_ftp.c
72
{.str = "dir", /* [1] dir (CRC = 0x6a9e) */
drivers/s390/char/hmcdrv_ftp.c
74
{.str = "delete", /* [2] delete (CRC = 0x53ae) */
drivers/s390/char/hmcdrv_ftp.c
76
{.str = "nls", /* [3] nls (CRC = 0xf87c) */
drivers/s390/char/hmcdrv_ftp.c
78
{.str = "put", /* [4] put (CRC = 0xac56) */
drivers/s390/char/hmcdrv_ftp.c
80
{.str = "append", /* [5] append (CRC = 0xf56e) */
drivers/s390/char/hmcdrv_ftp.c
82
{.str = NULL} /* [6] unused */
drivers/s390/char/hmcdrv_ftp.c
97
if (!pdesc->str || strncmp(pdesc->str, cmd, len))
drivers/s390/char/sclp.c
192
static int __init sclp_setup_console_pages(char *str)
drivers/s390/char/sclp.c
196
rc = kstrtoint(str, 0, &pages);
drivers/s390/char/sclp.c
204
static int __init sclp_setup_console_drop(char *str)
drivers/s390/char/sclp.c
206
return kstrtobool(str, &sclp_console_drop) == 0;
drivers/s390/char/sclp.h
351
sclp_ebcasc_str(char *str, int nr)
drivers/s390/char/sclp.h
353
(machine_is_vm()) ? EBCASC(str, nr) : EBCASC_500(str, nr);
drivers/s390/char/sclp.h
358
sclp_ascebc_str(char *str, int nr)
drivers/s390/char/sclp.h
360
(machine_is_vm()) ? ASCEBC(str, nr) : ASCEBC_500(str, nr);
drivers/s390/char/sclp_cpi_sys.c
178
static int check_string(const char *attr, const char *str)
drivers/s390/char/sclp_cpi_sys.c
183
len = strlen(str);
drivers/s390/char/sclp_cpi_sys.c
185
if ((len > 0) && (str[len - 1] == '\n'))
drivers/s390/char/sclp_cpi_sys.c
192
if (isalpha(str[i]) || isdigit(str[i]) ||
drivers/s390/char/sclp_cpi_sys.c
193
strchr("$@# ", str[i]))
drivers/s390/char/sclp_early_core.c
104
ch = str[offset++];
drivers/s390/char/sclp_early_core.c
141
static void sclp_early_print_vt220(const char *str, unsigned int len)
drivers/s390/char/sclp_early_core.c
149
memcpy(&sccb->msg.data, str, len);
drivers/s390/char/sclp_early_core.c
225
void __sclp_early_printk(const char *str, unsigned int len)
drivers/s390/char/sclp_early_core.c
234
sclp_early_print_lm(str, len);
drivers/s390/char/sclp_early_core.c
236
sclp_early_print_vt220(str, len);
drivers/s390/char/sclp_early_core.c
240
void sclp_early_printk(const char *str)
drivers/s390/char/sclp_early_core.c
242
__sclp_early_printk(str, strlen(str));
drivers/s390/char/sclp_early_core.c
253
void sclp_emergency_printk(const char *str)
drivers/s390/char/sclp_early_core.c
258
len = strlen(str);
drivers/s390/char/sclp_early_core.c
264
sclp_early_print_lm(str, len);
drivers/s390/char/sclp_early_core.c
265
sclp_early_print_vt220(str, len);
drivers/s390/char/sclp_early_core.c
87
static void sclp_early_print_lm(const char *str, unsigned int len)
drivers/s390/char/sclp_tty.c
171
static int sclp_tty_write_string(const u8 *str, int count, int may_fail)
drivers/s390/char/sclp_tty.c
200
written = sclp_write(sclp_ttybuf, str, count);
drivers/s390/char/sclp_tty.c
214
str += written;
drivers/s390/char/sclp_tty.c
404
unsigned char *str;
drivers/s390/char/sclp_tty.c
407
str = (unsigned char *) (sv + 1);
drivers/s390/char/sclp_tty.c
410
EBC_TOLOWER(str, count);
drivers/s390/char/sclp_tty.c
411
count = sclp_switch_cases(str, count);
drivers/s390/char/sclp_tty.c
413
sclp_ebcasc_str(str, count);
drivers/s390/char/sclp_tty.c
416
sclp_tty_input(str, count);
drivers/s390/char/tape.h
32
#define DBF_LH(level, str, ...) \
drivers/s390/char/tape.h
34
debug_sprintf_event(TAPE_DBF_AREA, level, str, ## __VA_ARGS__); \
drivers/s390/char/tape.h
37
#define DBF_LH(level, str, ...) do {} while(0)
drivers/s390/char/tape_core.c
188
const char *str;
drivers/s390/char/tape_core.c
197
str = tape_state_verbose[device->tape_state];
drivers/s390/char/tape_core.c
199
str = "UNKNOWN TS";
drivers/s390/char/tape_core.c
200
DBF_EVENT(4, "%s\n", str);
drivers/s390/char/tape_core.c
203
str = tape_state_verbose[newstate];
drivers/s390/char/tape_core.c
205
str = "UNKNOWN TS";
drivers/s390/char/tape_core.c
206
DBF_EVENT(4, "%s\n", str);
drivers/s390/char/tape_proc.c
42
const char *str;
drivers/s390/char/tape_proc.c
66
str = tape_state_verbose[device->tape_state];
drivers/s390/char/tape_proc.c
68
str = "UNKNOWN";
drivers/s390/char/tape_proc.c
69
seq_printf(m, "%s\t", str);
drivers/s390/char/tape_proc.c
73
str = tape_op_verbose[request->op];
drivers/s390/char/tape_proc.c
75
str = "---";
drivers/s390/char/tape_proc.c
76
seq_printf(m, "%s\t", str);
drivers/s390/char/zcore.c
172
static char str[18];
drivers/s390/char/zcore.c
175
snprintf(str, sizeof(str), "%lx\n", sclp.hsa_size);
drivers/s390/char/zcore.c
177
snprintf(str, sizeof(str), "0\n");
drivers/s390/char/zcore.c
178
return simple_read_from_buffer(buf, count, ppos, str, strlen(str));
drivers/s390/cio/blacklist.c
101
static int parse_busid(char *str, unsigned int *cssid, unsigned int *ssid,
drivers/s390/cio/blacklist.c
109
if (*str == '\0')
drivers/s390/cio/blacklist.c
113
str_work = str;
drivers/s390/cio/blacklist.c
114
val = simple_strtoul(str, &str_work, 16);
drivers/s390/cio/blacklist.c
127
str_work = str;
drivers/s390/cio/blacklist.c
144
str);
drivers/s390/cio/blacklist.c
149
static int blacklist_parse_parameters(char *str, range_action action,
drivers/s390/cio/blacklist.c
159
while ((parm = strsep(&str, ","))) {
drivers/s390/cio/blacklist.c
227
blacklist_setup (char *str)
drivers/s390/cio/blacklist.c
230
if (blacklist_parse_parameters(str, add, 1))
drivers/s390/cio/ccwgroup.c
238
char str[16];
drivers/s390/cio/ccwgroup.c
252
scnprintf(str, sizeof(str), "cdev%d", i);
drivers/s390/cio/ccwgroup.c
254
&gdev->cdev[i]->dev.kobj, str);
drivers/s390/cio/ccwgroup.c
257
scnprintf(str, sizeof(str), "cdev%d", i);
drivers/s390/cio/ccwgroup.c
258
sysfs_remove_link(&gdev->dev.kobj, str);
drivers/s390/cio/ccwgroup.c
41
char str[16];
drivers/s390/cio/ccwgroup.c
44
scnprintf(str, sizeof(str), "cdev%d", i);
drivers/s390/cio/ccwgroup.c
45
sysfs_remove_link(&gdev->dev.kobj, str);
drivers/s390/crypto/ap_bus.c
1192
int ap_hex2bitmap(const char *str, unsigned long *bitmap, int bits)
drivers/s390/crypto/ap_bus.c
1200
if (str[0] == '0' && str[1] == 'x')
drivers/s390/crypto/ap_bus.c
1201
str++;
drivers/s390/crypto/ap_bus.c
1202
if (*str == 'x')
drivers/s390/crypto/ap_bus.c
1203
str++;
drivers/s390/crypto/ap_bus.c
1205
for (i = 0; isxdigit(*str) && i < bits; str++) {
drivers/s390/crypto/ap_bus.c
1206
b = hex_to_bin(*str);
drivers/s390/crypto/ap_bus.c
1213
if (*str == '\n')
drivers/s390/crypto/ap_bus.c
1214
str++;
drivers/s390/crypto/ap_bus.c
1215
if (*str)
drivers/s390/crypto/ap_bus.c
1238
static int modify_bitmap(const char *str, unsigned long *bitmap, int bits)
drivers/s390/crypto/ap_bus.c
1247
while (*str) {
drivers/s390/crypto/ap_bus.c
1248
sign = *str++;
drivers/s390/crypto/ap_bus.c
1251
a = z = simple_strtoul(str, &np, 0);
drivers/s390/crypto/ap_bus.c
1252
if (str == np || a >= bits)
drivers/s390/crypto/ap_bus.c
1254
str = np;
drivers/s390/crypto/ap_bus.c
1255
if (*str == '-') {
drivers/s390/crypto/ap_bus.c
1256
z = simple_strtoul(++str, &np, 0);
drivers/s390/crypto/ap_bus.c
1257
if (str == np || a > z || z >= bits)
drivers/s390/crypto/ap_bus.c
1259
str = np;
drivers/s390/crypto/ap_bus.c
1266
while (*str == ',' || *str == '\n')
drivers/s390/crypto/ap_bus.c
1267
str++;
drivers/s390/crypto/ap_bus.c
1273
static int ap_parse_bitmap_str(const char *str, unsigned long *bitmap, int bits,
drivers/s390/crypto/ap_bus.c
1280
if (*str == '+' || *str == '-') {
drivers/s390/crypto/ap_bus.c
1282
rc = modify_bitmap(str, newmap, bits);
drivers/s390/crypto/ap_bus.c
1285
rc = ap_hex2bitmap(str, newmap, bits);
drivers/s390/crypto/ap_bus.c
1290
int ap_parse_mask_str(const char *str,
drivers/s390/crypto/ap_bus.c
1309
rc = ap_parse_bitmap_str(str, bitmap, bits, newmap);
drivers/s390/net/qeth_l2_main.c
1253
char str[7][32];
drivers/s390/net/qeth_l2_main.c
1259
scnprintf(str[i], sizeof(str[i]), "BRIDGEDHOST=%s",
drivers/s390/net/qeth_l2_main.c
1262
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1264
scnprintf(str[i], sizeof(str[i]), "VLAN=%d",
drivers/s390/net/qeth_l2_main.c
1266
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1269
scnprintf(str[i], sizeof(str[i]), "MAC=%pM",
drivers/s390/net/qeth_l2_main.c
1271
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1273
scnprintf(str[i], sizeof(str[i]), "NTOK_BUSID=%x.%x.%04x",
drivers/s390/net/qeth_l2_main.c
1275
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1276
scnprintf(str[i], sizeof(str[i]), "NTOK_IID=%02x", token->iid);
drivers/s390/net/qeth_l2_main.c
1277
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1278
scnprintf(str[i], sizeof(str[i]), "NTOK_CHPID=%02x",
drivers/s390/net/qeth_l2_main.c
1280
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1281
scnprintf(str[i], sizeof(str[i]), "NTOK_CHID=%04x",
drivers/s390/net/qeth_l2_main.c
1283
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1286
scnprintf(str[i], sizeof(str[i]), "BRIDGEDHOST=abort");
drivers/s390/net/qeth_l2_main.c
1287
env[i] = str[i]; i++;
drivers/s390/net/qeth_l2_main.c
1290
scnprintf(str[i], sizeof(str[i]), "BRIDGEDHOST=reset");
drivers/s390/net/qeth_l2_main.c
1291
env[i] = str[i]; i++;
drivers/s390/net/smsgiucv.c
109
char *str))
drivers/s390/net/smsgiucv.c
26
void (*callback)(const char *from, char *str);
drivers/s390/net/smsgiucv.c
91
void (*callback)(const char *from, char *str))
drivers/s390/scsi/zfcp_aux.c
102
token = strsep(&str, ",");
drivers/s390/scsi/zfcp_aux.c
107
token = strsep(&str, ",");
drivers/s390/scsi/zfcp_aux.c
111
token = strsep(&str, ",");
drivers/s390/scsi/zfcp_aux.c
92
char *str, *str_saved;
drivers/s390/scsi/zfcp_aux.c
98
str = str_saved;
drivers/s390/scsi/zfcp_aux.c
99
if (!str)
drivers/s390/virtio/virtio_ccw.c
1502
static int __init parse_busid(char *str, unsigned int *cssid,
drivers/s390/virtio/virtio_ccw.c
1510
if (*str == '\0')
drivers/s390/virtio/virtio_ccw.c
1513
str_work = str;
drivers/s390/virtio/virtio_ccw.c
1534
char *parm, *str;
drivers/s390/virtio/virtio_ccw.c
1537
str = no_auto;
drivers/s390/virtio/virtio_ccw.c
1538
while ((parm = strsep(&str, ","))) {
drivers/sbus/char/openprom.c
389
char *str;
drivers/sbus/char/openprom.c
398
str = copyin_string(op.op_name, op.op_namelen);
drivers/sbus/char/openprom.c
399
if (IS_ERR(str))
drivers/sbus/char/openprom.c
400
return PTR_ERR(str);
drivers/sbus/char/openprom.c
402
pval = of_get_property(dp, str, &len);
drivers/sbus/char/openprom.c
412
kfree(str);
drivers/sbus/char/openprom.c
422
char *str;
drivers/sbus/char/openprom.c
432
str = copyin_string(op.op_name, op.op_namelen);
drivers/sbus/char/openprom.c
433
if (IS_ERR(str))
drivers/sbus/char/openprom.c
434
return PTR_ERR(str);
drivers/sbus/char/openprom.c
436
if (str[0] == '\0') {
drivers/sbus/char/openprom.c
439
prop = of_find_property(dp, str, NULL);
drivers/sbus/char/openprom.c
443
kfree(str);
drivers/sbus/char/openprom.c
467
char *str, *tmp;
drivers/sbus/char/openprom.c
477
str = copyin_string(op.op_name, op.op_namelen);
drivers/sbus/char/openprom.c
478
if (IS_ERR(str))
drivers/sbus/char/openprom.c
479
return PTR_ERR(str);
drivers/sbus/char/openprom.c
483
kfree(str);
drivers/sbus/char/openprom.c
487
err = of_set_property(dp, str, tmp, op.op_buflen);
drivers/sbus/char/openprom.c
489
kfree(str);
drivers/scsi/BusLogic.c
3484
static bool __init blogic_parse(char **str, char *keyword)
drivers/scsi/BusLogic.c
3486
char *pointer = *str;
drivers/scsi/BusLogic.c
3497
*str = pointer;
drivers/scsi/BusLogic.c
3690
static int __init blogic_setup(char *str)
drivers/scsi/BusLogic.c
3694
(void) get_options(str, ARRAY_SIZE(ints), ints);
drivers/scsi/BusLogic.c
3700
if (str == NULL || *str == '\0')
drivers/scsi/BusLogic.c
3702
return blogic_parseopts(str);
drivers/scsi/aacraid/aachba.c
4112
char *str;
drivers/scsi/aacraid/aachba.c
4157
return srb_status_info[i].str;
drivers/scsi/aacraid/aachba.c
912
struct scsi_inq *str;
drivers/scsi/aacraid/aachba.c
916
str = (struct scsi_inq *)(data); /* cast data to scsi inq block */
drivers/scsi/aacraid/aachba.c
917
memset(str, ' ', sizeof(*str));
drivers/scsi/aacraid/aachba.c
930
inqstrcpy("SMC", str->vid);
drivers/scsi/aacraid/aachba.c
932
c = sizeof(str->vid);
drivers/scsi/aacraid/aachba.c
937
inqstrcpy(cname, str->vid);
drivers/scsi/aacraid/aachba.c
945
if (strlen(cp) > sizeof(str->pid))
drivers/scsi/aacraid/aachba.c
946
cp[sizeof(str->pid)] = '\0';
drivers/scsi/aacraid/aachba.c
947
inqstrcpy (cp, str->pid);
drivers/scsi/aacraid/aachba.c
953
inqstrcpy (mp->vname, str->vid);
drivers/scsi/aacraid/aachba.c
955
inqstrcpy (mp->model, str->pid);
drivers/scsi/aacraid/aachba.c
959
char *findit = str->pid;
drivers/scsi/aacraid/aachba.c
965
if (((findit - str->pid) + strlen(container_types[tindex]))
drivers/scsi/aacraid/aachba.c
966
< (sizeof(str->pid) + sizeof(str->prl)))
drivers/scsi/aacraid/aachba.c
969
inqstrcpy ("V1.0", str->prl);
drivers/scsi/aacraid/linit.c
56
#define AAC_DRIVER_FULL_VERSION AAC_DRIVER_VERSION "[" str(AAC_DRIVER_BUILD) "]" AAC_DRIVER_BRANCH
drivers/scsi/aha152x.c
3396
static int __init aha152x_setup(char *str)
drivers/scsi/aha152x.c
3400
get_options(str, ARRAY_SIZE(ints), ints);
drivers/scsi/aha152x.c
3407
setup[setup_count].conf = str;
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
114
char *str;
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
172
%token <str> T_PATH T_STRING T_ARG T_MACROBODY
drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.y
71
char *str;
drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.y
76
%token <str> T_ARG
drivers/scsi/arm/fas216.c
102
static int __init fas216_log_setup(char *str)
drivers/scsi/arm/fas216.c
108
while ((s = strsep(&str, ",")) != NULL) {
drivers/scsi/atari_scsi.c
387
static int __init atari_scsi_setup(char *str)
drivers/scsi/atari_scsi.c
396
get_options(str, ARRAY_SIZE(ints), ints);
drivers/scsi/be2iscsi/be_main.c
4918
char *str = buf;
drivers/scsi/be2iscsi/be_main.c
4932
rc = sprintf(str, "%pI6\n",
drivers/scsi/be2iscsi/be_main.c
4936
rc = sprintf(str, "%d\n", boot_conn->dest_port);
drivers/scsi/be2iscsi/be_main.c
4940
rc = sprintf(str, "%.*s\n",
drivers/scsi/be2iscsi/be_main.c
4947
rc = sprintf(str, "%.*s\n",
drivers/scsi/be2iscsi/be_main.c
4954
rc = sprintf(str, "%.*s\n",
drivers/scsi/be2iscsi/be_main.c
4961
rc = sprintf(str, "%.*s\n",
drivers/scsi/be2iscsi/be_main.c
4968
rc = sprintf(str, "%d\n", BEISCSI_SYSFS_ISCSI_BOOT_FLAGS);
drivers/scsi/be2iscsi/be_main.c
4971
rc = sprintf(str, "0\n");
drivers/scsi/be2iscsi/be_main.c
4980
char *str = buf;
drivers/scsi/be2iscsi/be_main.c
4985
rc = sprintf(str, "%s\n",
drivers/scsi/be2iscsi/be_main.c
4995
char *str = buf;
drivers/scsi/be2iscsi/be_main.c
5000
rc = sprintf(str, "%d\n", BEISCSI_SYSFS_ISCSI_BOOT_FLAGS);
drivers/scsi/be2iscsi/be_main.c
5003
rc = sprintf(str, "0\n");
drivers/scsi/be2iscsi/be_main.c
5006
rc = beiscsi_get_macaddr(str, phba);
drivers/scsi/constants.c
322
const char * str;
drivers/scsi/constants.c
395
return additional2[i].str;
drivers/scsi/csiostor/csio_hw.c
620
csio_hw_print_fw_version(struct csio_hw *hw, char *str)
drivers/scsi/csiostor/csio_hw.c
622
csio_info(hw, "%s: %u.%u.%u.%u\n", str,
drivers/scsi/csiostor/csio_lnode.c
1367
csio_lnode_state_to_str(struct csio_lnode *ln, int8_t *str)
drivers/scsi/csiostor/csio_lnode.c
1370
strcpy(str, "UNINIT");
drivers/scsi/csiostor/csio_lnode.c
1374
strcpy(str, "READY");
drivers/scsi/csiostor/csio_lnode.c
1378
strcpy(str, "OFFLINE");
drivers/scsi/csiostor/csio_lnode.c
1381
strcpy(str, "UNKNOWN");
drivers/scsi/csiostor/csio_lnode.h
225
void csio_lnode_state_to_str(struct csio_lnode *ln, int8_t *str);
drivers/scsi/csiostor/csio_rnode.h
126
void csio_rnode_state_to_str(struct csio_rnode *rn, int8_t *str);
drivers/scsi/elx/efct/efct_lio.c
20
efct_format_wwn(char *str, size_t len, const char *pre, u64 wwn)
drivers/scsi/elx/efct/efct_lio.c
25
return snprintf(str, len, "%s%8phC", pre, a);
drivers/scsi/fnic/fnic_trace.c
111
char str[KSYM_SYMBOL_LEN];
drivers/scsi/fnic/fnic_trace.c
129
sprint_symbol(str, tbp->fnaddr.low);
drivers/scsi/fnic/fnic_trace.c
132
sprint_symbol(str, tbp->fnaddr.val);
drivers/scsi/fnic/fnic_trace.c
142
&val, str, tbp->host_no, tbp->tag,
drivers/scsi/fnic/fnic_trace.c
170
sprint_symbol(str, tbp->fnaddr.low);
drivers/scsi/fnic/fnic_trace.c
173
sprint_symbol(str, tbp->fnaddr.val);
drivers/scsi/fnic/fnic_trace.c
183
&val, str, tbp->host_no, tbp->tag,
drivers/scsi/iscsi_boot_sysfs.c
40
char *str = buf;
drivers/scsi/iscsi_boot_sysfs.c
46
ret = boot_kobj->show(boot_kobj->data, boot_attr->type, str);
drivers/scsi/lpfc/lpfc_ct.c
3500
uint32_t *ptr, str[4];
drivers/scsi/lpfc/lpfc_ct.c
3547
str[i] = be32_to_cpu(*ptr++);
drivers/scsi/lpfc/lpfc_ct.c
3552
b1, b2, b3, (char *)str);
drivers/scsi/lpfc/lpfc_ct.c
3560
b4, (char *)str);
drivers/scsi/lpfc/lpfc_ct.c
807
char *str;
drivers/scsi/lpfc/lpfc_ct.c
810
str = "GID_FT";
drivers/scsi/lpfc/lpfc_ct.c
812
str = "GID_PT";
drivers/scsi/lpfc/lpfc_ct.c
815
str, Did, fc4_type,
drivers/scsi/lpfc/lpfc_nvme.c
113
str = "IO "; /* IO queue */
drivers/scsi/lpfc/lpfc_nvme.c
117
str = "ADM"; /* Admin queue */
drivers/scsi/lpfc/lpfc_nvme.c
123
"hdw_queue %d qhandle x%px\n", str,
drivers/scsi/lpfc/lpfc_nvme.c
89
char *str;
drivers/scsi/mac_scsi.c
68
static int __init mac_scsi_setup(char *str)
drivers/scsi/mac_scsi.c
72
(void)get_options(str, ARRAY_SIZE(ints), ints);
drivers/scsi/megaraid/megaraid_sas.h
2185
char str[96];
drivers/scsi/megaraid/megaraid_sas.h
2195
char str[64];
drivers/scsi/mpt3sas/mpt3sas_ctl.c
3748
char str[10] = "";
drivers/scsi/mpt3sas/mpt3sas_ctl.c
3757
if (sscanf(buf, "%9s", str) != 1)
drivers/scsi/mpt3sas/mpt3sas_ctl.c
3760
if (!strcmp(str, "post")) {
drivers/scsi/mpt3sas/mpt3sas_ctl.c
3812
} else if (!strcmp(str, "release")) {
drivers/scsi/ncr53c8xx.c
656
static int __init sym53c8xx__setup(char *str)
drivers/scsi/ncr53c8xx.c
659
char *cur = str;
drivers/scsi/ncr53c8xx.c
8062
static int __init ncr53c8xx_setup(char *str)
drivers/scsi/ncr53c8xx.c
8064
return sym53c8xx__setup(str);
drivers/scsi/pcmcia/nsp_cs.c
515
char *str)
drivers/scsi/pcmcia/nsp_cs.c
533
nsp_msg(KERN_DEBUG, " %s signal off timeout", str);
drivers/scsi/pcmcia/nsp_cs.h
318
unsigned char mask, char *str);
drivers/scsi/pm8001/pm8001_ctl.c
372
char *str = buf;
drivers/scsi/pm8001/pm8001_ctl.c
375
str += sprintf(str, "0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x"
drivers/scsi/pm8001/pm8001_ctl.c
387
return str - buf;
drivers/scsi/pm8001/pm8001_ctl.c
405
char *str = buf;
drivers/scsi/pm8001/pm8001_ctl.c
415
str += sprintf(str, "0x%08x\n", IB_MEMMAP(start));
drivers/scsi/pm8001/pm8001_ctl.c
422
return str - buf;
drivers/scsi/pm8001/pm8001_ctl.c
442
char *str = buf;
drivers/scsi/pm8001/pm8001_ctl.c
452
str += sprintf(str, "0x%08x\n", OB_MEMMAP(start));
drivers/scsi/pm8001/pm8001_ctl.c
459
return str - buf;
drivers/scsi/pm8001/pm8001_ctl.c
476
char *str = buf;
drivers/scsi/pm8001/pm8001_ctl.c
495
str += sprintf(str, "%c",
drivers/scsi/pm8001/pm8001_ctl.c
498
return str - buf;
drivers/scsi/pm8001/pm8001_ctl.c
534
char *str = buf;
drivers/scsi/pm8001/pm8001_ctl.c
553
str += sprintf(str, "%08x ", *(temp+pm8001_ha->iop_log_start));
drivers/scsi/pm8001/pm8001_ctl.c
556
return str - buf;
drivers/scsi/qla1280.c
4077
qla1280_get_token(char *str)
drivers/scsi/qla1280.c
4083
sep = strchr(str, ':');
drivers/scsi/qla1280.c
4087
if (!strncmp(setup_token[i].token, str, (sep - str))) {
drivers/scsi/qla2xxx/qla_attr.c
1863
char *str;
drivers/scsi/qla2xxx/qla_attr.c
1893
speed = port_speed_str[i].str;
drivers/scsi/qla2xxx/qla_edif.c
35
const char *str;
drivers/scsi/qla2xxx/qla_edif.c
50
return e->str;
drivers/scsi/qla2xxx/qla_init.c
4077
u8 str[STR_LEN], *ptr, p;
drivers/scsi/qla2xxx/qla_init.c
4096
memset(str, 0, STR_LEN);
drivers/scsi/qla2xxx/qla_init.c
4097
snprintf(str, SFF_VEN_NAME_LEN+1, a0->vendor_name);
drivers/scsi/qla2xxx/qla_init.c
4099
"SFP MFG Name: %s\n", str);
drivers/scsi/qla2xxx/qla_init.c
4101
memset(str, 0, STR_LEN);
drivers/scsi/qla2xxx/qla_init.c
4102
snprintf(str, SFF_PART_NAME_LEN+1, a0->vendor_pn);
drivers/scsi/qla2xxx/qla_init.c
4104
"SFP Part Name: %s\n", str);
drivers/scsi/qla2xxx/qla_init.c
4107
memset(str, 0, STR_LEN);
drivers/scsi/qla2xxx/qla_init.c
4108
ptr = str;
drivers/scsi/qla2xxx/qla_init.c
4119
"SFP Media: %s\n", str);
drivers/scsi/qla2xxx/qla_init.c
4122
memset(str, 0, STR_LEN);
drivers/scsi/qla2xxx/qla_init.c
4123
ptr = str;
drivers/scsi/qla2xxx/qla_init.c
4132
"SFP Link Length: %s\n", str);
drivers/scsi/qla2xxx/qla_init.c
4134
memset(str, 0, STR_LEN);
drivers/scsi/qla2xxx/qla_init.c
4135
ptr = str;
drivers/scsi/qla2xxx/qla_init.c
4144
"SFP FC Link Tech: %s\n", str);
drivers/scsi/qla2xxx/qla_mbx.c
20
const char *str;
drivers/scsi/qla2xxx/qla_mbx.c
36
return e->str;
drivers/scsi/qla2xxx/qla_mbx.c
4903
__le16 *str;
drivers/scsi/qla2xxx/qla_mbx.c
4912
str = (__force __le16 *)version;
drivers/scsi/qla2xxx/qla_mbx.c
4918
for (i = 4; i < 16 && len; i++, str++, len -= 2) {
drivers/scsi/qla2xxx/qla_mbx.c
4919
mcp->mb[i] = le16_to_cpup(str);
drivers/scsi/qla2xxx/qla_mbx.c
4950
uint8_t *str;
drivers/scsi/qla2xxx/qla_mbx.c
4961
str = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &str_dma);
drivers/scsi/qla2xxx/qla_mbx.c
4962
if (!str) {
drivers/scsi/qla2xxx/qla_mbx.c
4968
memcpy(str, "\x7\x3\x11\x0", 4);
drivers/scsi/qla2xxx/qla_mbx.c
4969
dwlen = str[0];
drivers/scsi/qla2xxx/qla_mbx.c
4971
memset(str + 4, 0, len);
drivers/scsi/qla2xxx/qla_mbx.c
4974
memcpy(str + 4, version, len);
drivers/scsi/qla2xxx/qla_mbx.c
4996
dma_pool_free(ha->s_dma_pool, str, str_dma);
drivers/scsi/qla2xxx/qla_mr.c
689
qlafx00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len)
drivers/scsi/qla2xxx/qla_mr.c
694
strscpy(str, "PCIe iSA", str_len);
drivers/scsi/qla2xxx/qla_mr.c
695
return str;
drivers/scsi/qla2xxx/qla_mr.c
699
qlafx00_fw_version_str(struct scsi_qla_host *vha, char *str, size_t size)
drivers/scsi/qla2xxx/qla_mr.c
703
snprintf(str, size, "%s", ha->mr.fw_version);
drivers/scsi/qla2xxx/qla_mr.c
704
return str;
drivers/scsi/qla2xxx/qla_os.c
590
qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len)
drivers/scsi/qla2xxx/qla_os.c
600
snprintf(str, str_len, "PCI-X (%s MHz)",
drivers/scsi/qla2xxx/qla_os.c
604
snprintf(str, str_len, "PCI (%s MHz)", pci_bus_modes[pci_bus]);
drivers/scsi/qla2xxx/qla_os.c
607
return str;
drivers/scsi/qla2xxx/qla_os.c
611
qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len)
drivers/scsi/qla2xxx/qla_os.c
644
snprintf(str, str_len, "PCIe (%s x%d)", speed_str, lwidth);
drivers/scsi/qla2xxx/qla_os.c
646
return str;
drivers/scsi/qla2xxx/qla_os.c
651
snprintf(str, str_len, "PCI (%s MHz)",
drivers/scsi/qla2xxx/qla_os.c
654
snprintf(str, str_len, "PCI-X Mode %d (%s MHz)",
drivers/scsi/qla2xxx/qla_os.c
658
return str;
drivers/scsi/qla2xxx/qla_os.c
662
qla2x00_fw_version_str(struct scsi_qla_host *vha, char *str, size_t size)
drivers/scsi/qla2xxx/qla_os.c
667
snprintf(str, size, "%d.%02d.%02d ", ha->fw_major_version,
drivers/scsi/qla2xxx/qla_os.c
671
strcat(str, "FLX");
drivers/scsi/qla2xxx/qla_os.c
672
return (str);
drivers/scsi/qla2xxx/qla_os.c
677
strcat(str, "EF");
drivers/scsi/qla2xxx/qla_os.c
680
strcat(str, "TP");
drivers/scsi/qla2xxx/qla_os.c
683
strcat(str, "IP");
drivers/scsi/qla2xxx/qla_os.c
686
strcat(str, "VI");
drivers/scsi/qla2xxx/qla_os.c
690
strcat(str, un_str);
drivers/scsi/qla2xxx/qla_os.c
694
strcat(str, "X");
drivers/scsi/qla2xxx/qla_os.c
696
return (str);
drivers/scsi/qla2xxx/qla_os.c
700
qla24xx_fw_version_str(struct scsi_qla_host *vha, char *str, size_t size)
drivers/scsi/qla2xxx/qla_os.c
704
snprintf(str, size, "%d.%02d.%02d (%x)", ha->fw_major_version,
drivers/scsi/qla2xxx/qla_os.c
706
return str;
drivers/scsi/qla2xxx/qla_sup.c
3638
qla2xxx_get_vpd_field(scsi_qla_host_t *vha, char *key, char *str, size_t size)
drivers/scsi/qla2xxx/qla_sup.c
3661
return scnprintf(str, size, "%.*s", len, pos + 3);
drivers/scsi/qla4xxx/ql4_os.c
5745
char *str = buf;
drivers/scsi/qla4xxx/ql4_os.c
5750
rc = sprintf(str, "%d\n", (char)SYSFS_FLAG_FW_SEL_BOOT);
drivers/scsi/qla4xxx/ql4_os.c
5753
rc = sprintf(str, "0\n");
drivers/scsi/qla4xxx/ql4_os.c
5756
rc = sysfs_format_mac(str, ha->my_mac,
drivers/scsi/qla4xxx/ql4_os.c
5786
char *str = buf;
drivers/scsi/qla4xxx/ql4_os.c
5791
rc = sprintf(str, "%s\n", ha->name_string);
drivers/scsi/qla4xxx/ql4_os.c
5820
char *str = buf;
drivers/scsi/qla4xxx/ql4_os.c
5832
rc = sprintf(str, "%pI6\n",
drivers/scsi/qla4xxx/ql4_os.c
5836
rc = sprintf(str, "%d\n", boot_conn->dest_port);
drivers/scsi/qla4xxx/ql4_os.c
5839
rc = sprintf(str, "%.*s\n",
drivers/scsi/qla4xxx/ql4_os.c
5844
rc = sprintf(str, "%.*s\n",
drivers/scsi/qla4xxx/ql4_os.c
5849
rc = sprintf(str, "%.*s\n",
drivers/scsi/qla4xxx/ql4_os.c
5854
rc = sprintf(str, "%.*s\n",
drivers/scsi/qla4xxx/ql4_os.c
5859
rc = sprintf(str, "%d\n", (char)SYSFS_FLAG_FW_SEL_BOOT);
drivers/scsi/qla4xxx/ql4_os.c
5862
rc = sprintf(str, "0\n");
drivers/scsi/scsi_sysfs.c
133
static int scsi_scan(struct Scsi_Host *shost, const char *str)
drivers/scsi/scsi_sysfs.c
139
res = sscanf(str, "%10s %10s %16s %c", s1, s2, s3, &junk);
drivers/scsi/scsi_sysfs.c
284
static int check_reset_type(const char *str)
drivers/scsi/scsi_sysfs.c
286
if (sysfs_streq(str, "adapter"))
drivers/scsi/scsi_sysfs.c
288
else if (sysfs_streq(str, "firmware"))
drivers/scsi/sim710.c
51
param_setup(char *str)
drivers/scsi/sim710.c
53
char *pos = str, *next;
drivers/scsi/st.c
4202
static int __init st_setup(char *str)
drivers/scsi/st.c
4207
stp = get_options(str, ARRAY_SIZE(ints), ints);
drivers/scsi/wd33c93.c
1707
wd33c93_setup(char *str)
drivers/scsi/wd33c93.c
1723
if (str)
drivers/scsi/wd33c93.c
1724
strscpy(p1, str, SETUP_BUFFER_SIZE);
drivers/scsi/xen-scsifront.c
1044
char str[64];
drivers/scsi/xen-scsifront.c
1064
snprintf(str, sizeof(str), "vscsi-devs/%s/state", dir[i]);
drivers/scsi/xen-scsifront.c
1065
err = xenbus_scanf(XBT_NIL, dev->otherend, str, "%u",
drivers/scsi/xen-scsifront.c
1071
snprintf(str, sizeof(str), "vscsi-devs/%s/v-dev", dir[i]);
drivers/scsi/xen-scsifront.c
1072
err = xenbus_scanf(XBT_NIL, dev->otherend, str,
drivers/soc/hisilicon/kunpeng_hccs.c
964
char *str;
drivers/soc/hisilicon/kunpeng_hccs.c
983
link_fsm_str = link_fsm_map[i].str;
drivers/staging/fbtft/fbtft-sysfs.c
21
const char *str, int size)
drivers/staging/fbtft/fbtft-sysfs.c
30
if (!str || !curves)
drivers/staging/fbtft/fbtft-sysfs.c
33
tmp = kmemdup(str, size + 1, GFP_KERNEL);
drivers/staging/fbtft/internal.h
11
const char *str, int size);
drivers/staging/iio/frequency/ad9834.c
284
char *str;
drivers/staging/iio/frequency/ad9834.c
287
str = "sine triangle square";
drivers/staging/iio/frequency/ad9834.c
289
str = "sine";
drivers/staging/iio/frequency/ad9834.c
291
str = "sine triangle";
drivers/staging/iio/frequency/ad9834.c
293
return sprintf(buf, "%s\n", str);
drivers/staging/iio/frequency/ad9834.c
306
char *str;
drivers/staging/iio/frequency/ad9834.c
309
str = "";
drivers/staging/iio/frequency/ad9834.c
311
str = "square";
drivers/staging/iio/frequency/ad9834.c
313
return sprintf(buf, "%s\n", str);
drivers/staging/rtl8723bs/include/hal_com.h
146
bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in);
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
211
char *str;
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
217
char *str;
drivers/target/iscsi/iscsi_target_configfs.c
161
char *str, *str2, *ip_str, *port_str;
drivers/target/iscsi/iscsi_target_configfs.c
173
str = strstr(buf, "[");
drivers/target/iscsi/iscsi_target_configfs.c
174
if (str) {
drivers/target/iscsi/iscsi_target_configfs.c
175
str2 = strstr(str, "]");
drivers/target/iscsi/iscsi_target_configfs.c
182
ip_str = str + 1; /* Skip over leading "[" */
drivers/target/target_core_configfs.c
3610
char *se_plugin_str, *str, *str2;
drivers/target/target_core_configfs.c
3624
str = strstr(buf, "_");
drivers/target/target_core_configfs.c
3625
if (!str) {
drivers/target/target_core_configfs.c
3634
str2 = strstr(str+1, "_");
drivers/target/target_core_configfs.c
3638
str = str2;
drivers/target/target_core_configfs.c
3640
*str = '\0'; /* Terminate for *se_plugin_str */
drivers/target/target_core_configfs.c
3641
str++; /* Skip to start of plugin dependent ID */
drivers/target/target_core_configfs.c
3644
ret = kstrtoul(str, 0, &plugin_dep_id);
drivers/target/target_core_transport.c
3106
static void target_append_str(char **str, const char *txt)
drivers/target/target_core_transport.c
3108
char *prev = *str;
drivers/target/target_core_transport.c
3110
*str = *str ? kasprintf(GFP_ATOMIC, "%s,%s", *str, txt) :
drivers/target/target_core_transport.c
3121
char *str = NULL;
drivers/target/target_core_transport.c
3124
target_append_str(&str, "aborted");
drivers/target/target_core_transport.c
3126
target_append_str(&str, "active");
drivers/target/target_core_transport.c
3128
target_append_str(&str, "complete");
drivers/target/target_core_transport.c
3130
target_append_str(&str, "sent");
drivers/target/target_core_transport.c
3132
target_append_str(&str, "stop");
drivers/target/target_core_transport.c
3134
target_append_str(&str, "fabric_stop");
drivers/target/target_core_transport.c
3136
return str;
drivers/target/target_core_user.c
2177
char *str;
drivers/target/target_core_user.c
2182
str = kasprintf(GFP_KERNEL, "tcm-user/%u/%s/%s", hba->host_id,
drivers/target/target_core_user.c
2185
str = kasprintf(GFP_KERNEL, "tcm-user/%u/%s", hba->host_id,
drivers/target/target_core_user.c
2187
if (!str)
drivers/target/target_core_user.c
2192
info->name = str;
drivers/target/target_core_user.c
229
static int tcmu_set_global_max_data_area(const char *str,
drivers/target/target_core_user.c
234
ret = kstrtoint(str, 10, &max_area_mb);
drivers/target/target_core_user.c
276
static int tcmu_set_block_netlink(const char *str,
drivers/target/target_core_user.c
282
ret = kstrtou8(str, 0, &val);
drivers/target/target_core_user.c
321
static int tcmu_set_reset_netlink(const char *str,
drivers/target/target_core_user.c
328
ret = kstrtou8(str, 0, &val);
drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c
196
char *str;\
drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c
213
err = get_mapped_string(mapping, attr->attr.name, ret, &str);\
drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c
215
return sysfs_emit(buf, "%s\n", str);\
drivers/thunderbolt/domain.c
165
char *str, *s, *uuid_str;
drivers/thunderbolt/domain.c
180
str = kstrdup(buf, GFP_KERNEL);
drivers/thunderbolt/domain.c
181
if (!str)
drivers/thunderbolt/domain.c
190
uuid_str = strim(str);
drivers/thunderbolt/domain.c
231
kfree(str);
drivers/tty/hvc/hvc_xen.c
238
static ssize_t dom0_write_console(uint32_t vtermno, const u8 *str, size_t len)
drivers/tty/hvc/hvc_xen.c
240
int rc = HYPERVISOR_console_io(CONSOLEIO_write, len, (u8 *)str);
drivers/tty/hvc/hvc_xen.c
696
static void xen_hvm_early_write(uint32_t vtermno, const char *str, int len)
drivers/tty/hvc/hvc_xen.c
699
outsb(0xe9, str, len);
drivers/tty/hvc/hvc_xen.c
702
static void xen_hvm_early_write(uint32_t vtermno, const char *str, int len) { }
drivers/tty/hvc/hvc_xen.c
753
void xen_raw_console_write(const char *str)
drivers/tty/hvc/hvc_xen.c
755
ssize_t len = strlen(str);
drivers/tty/hvc/hvc_xen.c
759
rc = dom0_write_console(0, str, len);
drivers/tty/hvc/hvc_xen.c
763
xen_hvm_early_write(0, str, len);
drivers/tty/serial/8250/8250_pci.c
162
static void moan_device(const char *str, struct pci_dev *dev)
drivers/tty/serial/8250/8250_pci.c
169
str, dev->vendor, dev->device,
drivers/tty/serial/dz.c
852
const char *str,
drivers/tty/serial/dz.c
857
prom_printf((char *) str);
drivers/tty/serial/dz.c
859
uart_console_write(&dport->port, str, count, dz_console_putchar);
drivers/tty/serial/mxs-auart.c
1308
auart_console_write(struct console *co, const char *str, unsigned int count)
drivers/tty/serial/mxs-auart.c
1330
uart_console_write(port, str, count, mxs_auart_console_putchar);
drivers/tty/serial/serial_core.c
1958
const char *str = NULL;
drivers/tty/serial/serial_core.c
1961
str = port->ops->type(port);
drivers/tty/serial/serial_core.c
1963
if (!str)
drivers/tty/serial/serial_core.c
1964
str = "unknown";
drivers/tty/serial/serial_core.c
1966
return str;
drivers/tty/serial/serial_core.c
2021
#define INFOBIT(bit, str) \
drivers/tty/serial/serial_core.c
2023
strncat(stat_buf, (str), sizeof(stat_buf) - \
drivers/tty/serial/serial_core.c
2025
#define STATBIT(bit, str) \
drivers/tty/serial/serial_core.c
2027
strncat(stat_buf, (str), sizeof(stat_buf) - \
drivers/tty/sysrq.c
90
static int __init sysrq_always_enabled_setup(char *str)
drivers/tty/tty_io.c
339
const char *str;
drivers/tty/tty_io.c
341
for (str = name; *str && !isdigit(*str); str++)
drivers/tty/tty_io.c
344
if (!*str)
drivers/tty/tty_io.c
347
ret = kstrtoint(str, 10, &index);
drivers/tty/tty_io.c
351
prefix_length = str - name;
drivers/tty/tty_io.c
383
char *str, *stp;
drivers/tty/tty_io.c
385
for (str = name; *str; str++)
drivers/tty/tty_io.c
386
if ((*str >= '0' && *str <= '9') || *str == ',')
drivers/tty/tty_io.c
388
if (!*str)
drivers/tty/tty_io.c
391
len = str - name;
drivers/tty/tty_io.c
392
tty_line = simple_strtoul(str, &str, 10);
drivers/tty/tty_io.c
400
stp = str;
drivers/ufs/core/ufshcd.c
3787
u8 *str;
drivers/ufs/core/ufshcd.c
3802
str = NULL;
drivers/ufs/core/ufshcd.c
3808
str = NULL;
drivers/ufs/core/ufshcd.c
3818
str = kzalloc(ascii_len, GFP_KERNEL);
drivers/ufs/core/ufshcd.c
3819
if (!str) {
drivers/ufs/core/ufshcd.c
3830
UTF16_BIG_ENDIAN, str, ascii_len - 1);
drivers/ufs/core/ufshcd.c
3834
str[i] = ufshcd_remove_non_printable(str[i]);
drivers/ufs/core/ufshcd.c
3836
str[ret++] = '\0';
drivers/ufs/core/ufshcd.c
3839
str = kmemdup(uc_str->uc, uc_str->len, GFP_KERNEL);
drivers/ufs/core/ufshcd.c
3840
if (!str) {
drivers/ufs/core/ufshcd.c
3847
*buf = str;
drivers/ufs/host/ufs-mediatek.c
227
char *str)
drivers/ufs/host/ufs-mediatek.c
229
*rc = devm_reset_control_get(hba->dev, str);
drivers/ufs/host/ufs-mediatek.c
232
str, PTR_ERR(*rc));
drivers/usb/atm/cxacru.c
255
static char *str[] = { "no", "yes" };
drivers/usb/atm/cxacru.c
257
if (unlikely(value >= ARRAY_SIZE(str)))
drivers/usb/atm/cxacru.c
259
return sprintf(buf, "%s\n", str[value]);
drivers/usb/atm/cxacru.c
264
static char *str[] = { NULL, "not connected", "connected", "lost" };
drivers/usb/atm/cxacru.c
266
if (unlikely(value >= ARRAY_SIZE(str) || str[value] == NULL))
drivers/usb/atm/cxacru.c
268
return sprintf(buf, "%s\n", str[value]);
drivers/usb/atm/cxacru.c
273
static char *str[] = { "down", "attempting to activate",
drivers/usb/atm/cxacru.c
277
if (unlikely(value >= ARRAY_SIZE(str)))
drivers/usb/atm/cxacru.c
279
return sprintf(buf, "%s\n", str[value]);
drivers/usb/atm/cxacru.c
284
static char *str[] = {
drivers/usb/atm/cxacru.c
290
if (unlikely(value >= ARRAY_SIZE(str)))
drivers/usb/atm/cxacru.c
292
return sprintf(buf, "%s\n", str[value]);
drivers/usb/atm/cxacru.c
318
static char *str[] = { "running", "stopped" };
drivers/usb/atm/cxacru.c
327
if (unlikely(value >= ARRAY_SIZE(str)))
drivers/usb/atm/cxacru.c
329
return sprintf(buf, "%s\n", str[value]);
drivers/usb/cdns3/cdns3-debug.h
100
return cdns3_decode_ep_irq(str, ep_sts,
drivers/usb/cdns3/cdns3-debug.h
110
static inline char *cdns3_dbg_ring(struct cdns3_endpoint *priv_ep, char *str)
drivers/usb/cdns3/cdns3-debug.h
121
ret += sprintf(str + ret, "\n\t\tRing contents for %s:", priv_ep->name);
drivers/usb/cdns3/cdns3-debug.h
123
ret += sprintf(str + ret,
drivers/usb/cdns3/cdns3-debug.h
129
ret += sprintf(str + ret,
drivers/usb/cdns3/cdns3-debug.h
134
ret += sprintf(str + ret,
drivers/usb/cdns3/cdns3-debug.h
139
sprintf(str + ret, "\t\tTransfer ring %d too big\n",
drivers/usb/cdns3/cdns3-debug.h
141
return str;
drivers/usb/cdns3/cdns3-debug.h
146
ret += sprintf(str + ret,
drivers/usb/cdns3/cdns3-debug.h
15
static inline char *cdns3_decode_usb_irq(char *str,
drivers/usb/cdns3/cdns3-debug.h
154
return str;
drivers/usb/cdns3/cdns3-debug.h
21
ret = sprintf(str, "IRQ %08x = ", usb_ists);
drivers/usb/cdns3/cdns3-debug.h
24
ret += sprintf(str + ret, "Connection %s\n",
drivers/usb/cdns3/cdns3-debug.h
28
ret += sprintf(str + ret, "Disconnection ");
drivers/usb/cdns3/cdns3-debug.h
30
ret += sprintf(str + ret, "suspended ");
drivers/usb/cdns3/cdns3-debug.h
32
ret += sprintf(str + ret, "L1 enter ");
drivers/usb/cdns3/cdns3-debug.h
34
ret += sprintf(str + ret, "L1 exit ");
drivers/usb/cdns3/cdns3-debug.h
36
ret += sprintf(str + ret, "L2 enter ");
drivers/usb/cdns3/cdns3-debug.h
38
ret += sprintf(str + ret, "L2 exit ");
drivers/usb/cdns3/cdns3-debug.h
40
ret += sprintf(str + ret, "U3 exit ");
drivers/usb/cdns3/cdns3-debug.h
42
ret += sprintf(str + ret, "Warm Reset ");
drivers/usb/cdns3/cdns3-debug.h
44
ret += sprintf(str + ret, "Hot Reset ");
drivers/usb/cdns3/cdns3-debug.h
46
ret += sprintf(str + ret, "Reset");
drivers/usb/cdns3/cdns3-debug.h
48
return str;
drivers/usb/cdns3/cdns3-debug.h
51
static inline char *cdns3_decode_ep_irq(char *str,
drivers/usb/cdns3/cdns3-debug.h
57
ret = sprintf(str, "IRQ for %s: %08x ", ep_name, ep_sts);
drivers/usb/cdns3/cdns3-debug.h
60
ret += sprintf(str + ret, "SETUP ");
drivers/usb/cdns3/cdns3-debug.h
62
ret += sprintf(str + ret, "IOC ");
drivers/usb/cdns3/cdns3-debug.h
64
ret += sprintf(str + ret, "ISP ");
drivers/usb/cdns3/cdns3-debug.h
66
ret += sprintf(str + ret, "DESCMIS ");
drivers/usb/cdns3/cdns3-debug.h
68
ret += sprintf(str + ret, "STREAMR ");
drivers/usb/cdns3/cdns3-debug.h
70
ret += sprintf(str + ret, "MD_EXIT ");
drivers/usb/cdns3/cdns3-debug.h
72
ret += sprintf(str + ret, "TRBERR ");
drivers/usb/cdns3/cdns3-debug.h
74
ret += sprintf(str + ret, "NRDY ");
drivers/usb/cdns3/cdns3-debug.h
76
ret += sprintf(str + ret, "PRIME ");
drivers/usb/cdns3/cdns3-debug.h
78
ret += sprintf(str + ret, "SIDERRT ");
drivers/usb/cdns3/cdns3-debug.h
80
ret += sprintf(str + ret, "OUTSMM ");
drivers/usb/cdns3/cdns3-debug.h
82
ret += sprintf(str + ret, "ISOERR ");
drivers/usb/cdns3/cdns3-debug.h
84
ret += sprintf(str + ret, "IOT ");
drivers/usb/cdns3/cdns3-debug.h
86
return str;
drivers/usb/cdns3/cdns3-debug.h
89
static inline char *cdns3_decode_epx_irq(char *str,
drivers/usb/cdns3/cdns3-debug.h
93
return cdns3_decode_ep_irq(str, ep_sts, ep_name);
drivers/usb/cdns3/cdns3-debug.h
96
static inline char *cdns3_decode_ep0_irq(char *str,
drivers/usb/cdns3/cdnsp-debug.h
177
static inline const char *cdnsp_decode_trb(char *str, size_t size, u32 field0,
drivers/usb/cdns3/cdnsp-debug.h
190
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
203
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
215
ret = scnprintf(str, size, "%s: flags %c",
drivers/usb/cdns3/cdnsp-debug.h
220
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
242
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
258
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
274
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
294
ret = scnprintf(str, size, "%s: flags %c",
drivers/usb/cdns3/cdnsp-debug.h
299
ret = scnprintf(str, size, "%s: slot %ld flags %c",
drivers/usb/cdns3/cdnsp-debug.h
305
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
313
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
321
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
329
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
339
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
349
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
359
ret = scnprintf(str, size, "%s: slot %ld flags %c",
drivers/usb/cdns3/cdnsp-debug.h
367
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
379
ret = scnprintf(str, size,
drivers/usb/cdns3/cdnsp-debug.h
388
return str;
drivers/usb/cdns3/cdnsp-debug.h
394
static char str[1024];
drivers/usb/cdns3/cdnsp-debug.h
418
ret = sprintf(str, "%s Ctx Entries %d",
drivers/usb/cdns3/cdnsp-debug.h
421
ret += sprintf(str + ret, " [Intr %ld] Addr %ld State %s",
drivers/usb/cdns3/cdnsp-debug.h
425
return str;
drivers/usb/cdns3/cdnsp-debug.h
464
static inline const char *cdnsp_decode_portsc(char *str, size_t size,
drivers/usb/cdns3/cdnsp-debug.h
469
ret = scnprintf(str, size, "%s %s %s Link:%s PortSpeed:%d ",
drivers/usb/cdns3/cdnsp-debug.h
477
ret += scnprintf(str + ret, size - ret, "In-Reset ");
drivers/usb/cdns3/cdnsp-debug.h
479
ret += scnprintf(str + ret, size - ret, "Change: ");
drivers/usb/cdns3/cdnsp-debug.h
481
ret += scnprintf(str + ret, size - ret, "CSC ");
drivers/usb/cdns3/cdnsp-debug.h
483
ret += scnprintf(str + ret, size - ret, "WRC ");
drivers/usb/cdns3/cdnsp-debug.h
485
ret += scnprintf(str + ret, size - ret, "PRC ");
drivers/usb/cdns3/cdnsp-debug.h
487
ret += scnprintf(str + ret, size - ret, "PLC ");
drivers/usb/cdns3/cdnsp-debug.h
489
ret += scnprintf(str + ret, size - ret, "CEC ");
drivers/usb/cdns3/cdnsp-debug.h
490
ret += scnprintf(str + ret, size - ret, "Wake: ");
drivers/usb/cdns3/cdnsp-debug.h
492
ret += scnprintf(str + ret, size - ret, "WCE ");
drivers/usb/cdns3/cdnsp-debug.h
494
ret += scnprintf(str + ret, size - ret, "WDE ");
drivers/usb/cdns3/cdnsp-debug.h
496
return str;
drivers/usb/cdns3/cdnsp-debug.h
539
static inline const char *cdnsp_decode_ep_context(char *str, size_t size,
drivers/usb/cdns3/cdnsp-debug.h
566
ret = scnprintf(str, size, "State %s mult %d max P. Streams %d %s",
drivers/usb/cdns3/cdnsp-debug.h
570
ret += scnprintf(str + ret, size - ret,
drivers/usb/cdns3/cdnsp-debug.h
574
ret += scnprintf(str + ret, size - ret,
drivers/usb/cdns3/cdnsp-debug.h
579
ret += scnprintf(str + ret, size - ret, "avg trb len %d", avg);
drivers/usb/cdns3/cdnsp-debug.h
581
return str;
drivers/usb/common/common.c
196
static enum usb_dr_mode usb_get_dr_mode_from_string(const char *str)
drivers/usb/common/common.c
200
ret = match_string(usb_dr_modes, ARRAY_SIZE(usb_dr_modes), str);
drivers/usb/common/common.c
226
const char *str;
drivers/usb/common/common.c
229
ret = device_property_read_string(dev, "role-switch-default-mode", &str);
drivers/usb/common/common.c
233
return usb_get_dr_mode_from_string(str);
drivers/usb/common/debug.c
100
static void usb_decode_set_address(__u16 wValue, char *str, size_t size)
drivers/usb/common/debug.c
102
snprintf(str, size, "Set Address(Addr = %02x)", wValue);
drivers/usb/common/debug.c
107
__u16 wLength, char *str, size_t size)
drivers/usb/common/debug.c
15
__u16 wLength, char *str, size_t size)
drivers/usb/common/debug.c
165
snprintf(str, size, "%s %s Descriptor(Index = %d, Length = %d)",
drivers/usb/common/debug.c
170
static void usb_decode_get_configuration(__u16 wLength, char *str, size_t size)
drivers/usb/common/debug.c
172
snprintf(str, size, "Get Configuration(Length = %d)", wLength);
drivers/usb/common/debug.c
175
static void usb_decode_set_configuration(__u8 wValue, char *str, size_t size)
drivers/usb/common/debug.c
177
snprintf(str, size, "Set Configuration(Config = %d)", wValue);
drivers/usb/common/debug.c
180
static void usb_decode_get_intf(__u16 wIndex, __u16 wLength, char *str,
drivers/usb/common/debug.c
183
snprintf(str, size, "Get Interface(Intf = %d, Length = %d)",
drivers/usb/common/debug.c
187
static void usb_decode_set_intf(__u8 wValue, __u16 wIndex, char *str,
drivers/usb/common/debug.c
19
snprintf(str, size, "Get Device Status(Length = %d)", wLength);
drivers/usb/common/debug.c
190
snprintf(str, size, "Set Interface(Intf = %d, Alt.Setting = %d)",
drivers/usb/common/debug.c
195
char *str, size_t size)
drivers/usb/common/debug.c
197
snprintf(str, size, "Synch Frame(Endpoint = %d, Length = %d)",
drivers/usb/common/debug.c
201
static void usb_decode_set_sel(__u16 wLength, char *str, size_t size)
drivers/usb/common/debug.c
203
snprintf(str, size, "Set SEL(Length = %d)", wLength);
drivers/usb/common/debug.c
206
static void usb_decode_set_isoch_delay(__u8 wValue, char *str, size_t size)
drivers/usb/common/debug.c
208
snprintf(str, size, "Set Isochronous Delay(Delay = %d ns)", wValue);
drivers/usb/common/debug.c
211
static void usb_decode_ctrl_generic(char *str, size_t size, __u8 bRequestType,
drivers/usb/common/debug.c
218
snprintf(str, size,
drivers/usb/common/debug.c
22
snprintf(str, size,
drivers/usb/common/debug.c
230
static void usb_decode_ctrl_standard(char *str, size_t size, __u8 bRequestType,
drivers/usb/common/debug.c
236
usb_decode_get_status(bRequestType, wIndex, wLength, str, size);
drivers/usb/common/debug.c
241
wIndex, str, size);
drivers/usb/common/debug.c
244
usb_decode_set_address(wValue, str, size);
drivers/usb/common/debug.c
249
wIndex, wLength, str, size);
drivers/usb/common/debug.c
252
usb_decode_get_configuration(wLength, str, size);
drivers/usb/common/debug.c
255
usb_decode_set_configuration(wValue, str, size);
drivers/usb/common/debug.c
258
usb_decode_get_intf(wIndex, wLength, str, size);
drivers/usb/common/debug.c
261
usb_decode_set_intf(wValue, wIndex, str, size);
drivers/usb/common/debug.c
264
usb_decode_synch_frame(wIndex, wLength, str, size);
drivers/usb/common/debug.c
267
usb_decode_set_sel(wLength, str, size);
drivers/usb/common/debug.c
27
snprintf(str, size, "Get Endpoint Status(ep%d%s)",
drivers/usb/common/debug.c
270
usb_decode_set_isoch_delay(wValue, str, size);
drivers/usb/common/debug.c
273
usb_decode_ctrl_generic(str, size, bRequestType, bRequest,
drivers/usb/common/debug.c
300
const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
drivers/usb/common/debug.c
306
usb_decode_ctrl_standard(str, size, bRequestType, bRequest,
drivers/usb/common/debug.c
312
usb_decode_ctrl_generic(str, size, bRequestType, bRequest,
drivers/usb/common/debug.c
317
return str;
drivers/usb/common/debug.c
74
__u16 wIndex, char *str, size_t size)
drivers/usb/common/debug.c
78
snprintf(str, size, "%s Device Feature(%s%s)",
drivers/usb/common/debug.c
85
snprintf(str, size, "%s Interface Feature(%s)",
drivers/usb/common/debug.c
91
snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)",
drivers/usb/dwc2/debugfs.c
719
char str[32];
drivers/usb/dwc2/debugfs.c
721
snprintf(str, 32, "g_tx_fifo_size[%d]", i);
drivers/usb/dwc2/debugfs.c
722
seq_printf(seq, "%-30s: %d\n", str, p->g_tx_fifo_size[i]);
drivers/usb/dwc2/hcd_queue.c
379
void (*print_fn)(const char *str, void *data),
drivers/usb/dwc2/hcd_queue.c
436
static void dwc2_qh_print(const char *str, void *data)
drivers/usb/dwc2/hcd_queue.c
440
dwc2_sch_dbg(print_data->hsotg, "QH=%p ...%s\n", print_data->qh, str);
drivers/usb/dwc3/debug.h
218
static inline const char *dwc3_gadget_event_string(char *str, size_t size,
drivers/usb/dwc3/debug.h
225
snprintf(str, size, "Disconnect: [%s]",
drivers/usb/dwc3/debug.h
229
snprintf(str, size, "Reset [%s]",
drivers/usb/dwc3/debug.h
233
snprintf(str, size, "Connection Done [%s]",
drivers/usb/dwc3/debug.h
237
snprintf(str, size, "Link Change [%s]",
drivers/usb/dwc3/debug.h
241
snprintf(str, size, "WakeUp [%s]",
drivers/usb/dwc3/debug.h
245
snprintf(str, size, "Suspend [%s]",
drivers/usb/dwc3/debug.h
249
snprintf(str, size, "Start-Of-Frame [%s]",
drivers/usb/dwc3/debug.h
253
snprintf(str, size, "Erratic Error [%s]",
drivers/usb/dwc3/debug.h
257
snprintf(str, size, "Command Complete [%s]",
drivers/usb/dwc3/debug.h
261
snprintf(str, size, "Overflow [%s]",
drivers/usb/dwc3/debug.h
265
snprintf(str, size, "UNKNOWN");
drivers/usb/dwc3/debug.h
268
return str;
drivers/usb/dwc3/debug.h
275
static inline const char *dwc3_ep_event_string(char *str, size_t size,
drivers/usb/dwc3/debug.h
282
len = scnprintf(str, size, "ep%d%s: ", epnum >> 1,
drivers/usb/dwc3/debug.h
289
len += scnprintf(str + len, size - len,
drivers/usb/dwc3/debug.h
296
scnprintf(str + len, size - len, " [%s]",
drivers/usb/dwc3/debug.h
300
scnprintf(str + len, size - len,
drivers/usb/dwc3/debug.h
308
len += scnprintf(str + len, size - len,
drivers/usb/dwc3/debug.h
320
scnprintf(str + len, size - len,
drivers/usb/dwc3/debug.h
324
scnprintf(str + len, size - len,
drivers/usb/dwc3/debug.h
330
scnprintf(str + len, size - len, "FIFO");
drivers/usb/dwc3/debug.h
337
scnprintf(str + len, size - len, " Stream %d Found",
drivers/usb/dwc3/debug.h
342
scnprintf(str + len, size - len, " Stream Not Found");
drivers/usb/dwc3/debug.h
348
scnprintf(str + len, size - len, "Endpoint Command Complete");
drivers/usb/dwc3/debug.h
351
scnprintf(str + len, size - len, "UNKNOWN");
drivers/usb/dwc3/debug.h
354
return str;
drivers/usb/dwc3/debug.h
391
static inline const char *dwc3_decode_event(char *str, size_t size, u32 event,
drivers/usb/dwc3/debug.h
399
return dwc3_gadget_event_string(str, size, &evt.devt);
drivers/usb/dwc3/debug.h
401
return dwc3_ep_event_string(str, size, &evt.depevt, ep0state);
drivers/usb/early/ehci-dbgp.c
1042
static int __init kgdbdbgp_parse_config(char *str)
drivers/usb/early/ehci-dbgp.c
1047
if (early_dbgp_init(str))
drivers/usb/early/ehci-dbgp.c
1050
ptr = strchr(str, ',');
drivers/usb/early/ehci-dbgp.c
77
static void dbgp_ehci_status(char *str)
drivers/usb/early/ehci-dbgp.c
81
dbgp_printk("dbgp: %s\n", str);
drivers/usb/early/ehci-dbgp.c
908
static void early_dbgp_write(struct console *con, const char *str, u32 n)
drivers/usb/early/ehci-dbgp.c
91
static inline void dbgp_ehci_status(char *str) { }
drivers/usb/early/ehci-dbgp.c
936
str++, chunk++, n--) {
drivers/usb/early/ehci-dbgp.c
937
if (!use_cr && *str == '\n') {
drivers/usb/early/ehci-dbgp.c
940
str--;
drivers/usb/early/ehci-dbgp.c
946
buf[chunk] = *str;
drivers/usb/early/xhci-dbc.c
878
static void early_xdbc_write(struct console *con, const char *str, u32 n)
drivers/usb/early/xhci-dbc.c
889
for (chunk = 0; chunk < XDBC_MAX_PACKET && n > 0; str++, chunk++, n--) {
drivers/usb/early/xhci-dbc.c
891
if (!use_cr && *str == '\n') {
drivers/usb/early/xhci-dbc.c
894
str--;
drivers/usb/early/xhci-dbc.c
901
buf[chunk] = *str;
drivers/usb/gadget/composite.c
1389
int usb_string_ids_tab(struct usb_composite_dev *cdev, struct usb_string *str)
drivers/usb/gadget/composite.c
1393
for (; str->s; ++str) {
drivers/usb/gadget/composite.c
1396
str->id = ++next;
drivers/usb/gadget/configfs.c
116
char *str;
drivers/usb/gadget/configfs.c
126
str = copy;
drivers/usb/gadget/configfs.c
128
str = kmalloc(USB_MAX_STRING_WITH_NULL_LEN, GFP_KERNEL);
drivers/usb/gadget/configfs.c
129
if (!str)
drivers/usb/gadget/configfs.c
132
strcpy(str, s);
drivers/usb/gadget/configfs.c
133
if (str[ret - 1] == '\n')
drivers/usb/gadget/configfs.c
134
str[ret - 1] = '\0';
drivers/usb/gadget/configfs.c
135
*s_copy = str;
drivers/usb/gadget/function/f_fs.c
2299
struct usb_string *str = (*lang)->strings;
drivers/usb/gadget/function/f_fs.c
2301
for (; str->s; ++id, ++str)
drivers/usb/gadget/function/f_fs.c
2302
str->id = id;
drivers/usb/gadget/function/f_midi2.c
2181
const char *str, char *page)
drivers/usb/gadget/function/f_midi2.c
2186
if (str)
drivers/usb/gadget/function/f_midi2.c
2187
result = scnprintf(page, PAGE_SIZE, "%s\n", str);
drivers/usb/gadget/function/f_uac2.c
1938
char *str; \
drivers/usb/gadget/function/f_uac2.c
1943
str = "async"; \
drivers/usb/gadget/function/f_uac2.c
1946
str = "adaptive"; \
drivers/usb/gadget/function/f_uac2.c
1949
str = "unknown"; \
drivers/usb/gadget/function/f_uac2.c
1952
result = sprintf(page, "%s\n", str); \
drivers/usb/gadget/function/u_ether.c
686
static int get_ether_addr(const char *str, u8 *dev_addr)
drivers/usb/gadget/function/u_ether.c
688
if (str) {
drivers/usb/gadget/function/u_ether.c
694
if ((*str == '.') || (*str == ':'))
drivers/usb/gadget/function/u_ether.c
695
str++;
drivers/usb/gadget/function/u_ether.c
696
num = hex_to_bin(*str++) << 4;
drivers/usb/gadget/function/u_ether.c
697
num |= hex_to_bin(*str++);
drivers/usb/gadget/function/u_ether.c
707
static int get_ether_addr_str(u8 dev_addr[ETH_ALEN], char *str, int len)
drivers/usb/gadget/function/u_ether.c
712
snprintf(str, len, "%pM", dev_addr);
drivers/usb/gadget/udc/aspeed-vhub/hub.c
1001
const char *str;
drivers/usb/gadget/udc/aspeed-vhub/hub.c
1017
str = of_get_property(child, str_id_map[i].name, NULL);
drivers/usb/gadget/udc/aspeed-vhub/hub.c
1018
if (str) {
drivers/usb/gadget/udc/aspeed-vhub/hub.c
1019
str_array[offset].s = str;
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
100
char *str, size_t size)
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
108
ret = scnprintf(str, size, "\n\t\tTR for %s:", pep->name);
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
112
ret += scnprintf(str + ret, size - ret,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
118
ret += scnprintf(str + ret, size - ret,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
122
ret += scnprintf(str + ret, size - ret,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
127
ret += scnprintf(str + ret, size - ret,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
129
return str;
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
135
ret += scnprintf(str + ret, size - ret,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
14
static inline const char *cdns2_decode_usb_irq(char *str, size_t size,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
146
return str;
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
161
static inline const char *cdns2_decode_trb(char *str, size_t size, u32 flags,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
169
ret = scnprintf(str, size,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
179
ret = scnprintf(str, size,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
19
ret = scnprintf(str, size, "usbirq: 0x%02x - ", usb_irq);
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
192
ret = scnprintf(str, size, "type '%s' -> raw %08x %08x %08x",
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
200
return str;
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
22
ret += scnprintf(str + ret, size - ret, "SOF ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
24
ret += scnprintf(str + ret, size - ret, "SUTOK ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
26
ret += scnprintf(str + ret, size - ret, "SETUP ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
28
ret += scnprintf(str + ret, size - ret, "Suspend ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
30
ret += scnprintf(str + ret, size - ret, "Reset ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
32
ret += scnprintf(str + ret, size - ret, "HS ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
34
ret += scnprintf(str + ret, size - ret, "LPM ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
36
ret += scnprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq);
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
39
ret += scnprintf(str + ret, size - ret, "Wakeup ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
41
ret += scnprintf(str + ret, size - ret, "VBUS_FALL ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
43
ret += scnprintf(str + ret, size - ret, "VBUS_RISE ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
48
return str;
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
51
static inline const char *cdns2_decode_dma_irq(char *str, size_t size,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
57
ret = scnprintf(str, size, "ISTS: %08x, %s: %08x ",
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
61
ret += scnprintf(str + ret, size - ret, "IOC ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
63
ret += scnprintf(str + ret, size - ret, "ISP ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
65
ret += scnprintf(str + ret, size - ret, "DESCMIS ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
67
ret += scnprintf(str + ret, size - ret, "TRBERR ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
69
ret += scnprintf(str + ret, size - ret, "OUTSMM ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
71
ret += scnprintf(str + ret, size - ret, "ISOERR ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
73
ret += scnprintf(str + ret, size - ret, "DBUSY ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
75
ret += scnprintf(str + ret, size - ret, "CCS ");
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
80
return str;
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
83
static inline const char *cdns2_decode_epx_irq(char *str, size_t size,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
87
return cdns2_decode_dma_irq(str, size, ep_ists, ep_sts, ep_name);
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
90
static inline const char *cdns2_decode_ep0_irq(char *str, size_t size,
drivers/usb/gadget/udc/cdns2/cdns2-debug.h
94
return cdns2_decode_dma_irq(str, size, ep_ists, ep_sts,
drivers/usb/gadget/udc/gr_udc.c
111
static void gr_dbgprint_request(const char *str, struct gr_ep *ep,
drivers/usb/gadget/udc/gr_udc.c
90
static void gr_dbgprint_request(const char *str, struct gr_ep *ep,
drivers/usb/gadget/udc/gr_udc.c
97
dev_dbg(ep->dev->dev, "%s: 0x%p, %d bytes data%s:\n", str, req, buflen,
drivers/usb/host/xhci-dbgcap.c
1220
return sysfs_emit(buf, "%s\n", dbc->str.manufacturer);
drivers/usb/host/xhci-dbgcap.c
124
struct dbc_str *str)
drivers/usb/host/xhci-dbgcap.c
1241
memcpy(dbc->str.manufacturer, buf, len);
drivers/usb/host/xhci-dbgcap.c
1242
dbc->str.manufacturer[len] = '\0';
drivers/usb/host/xhci-dbgcap.c
1254
return sysfs_emit(buf, "%s\n", dbc->str.product);
drivers/usb/host/xhci-dbgcap.c
127
xhci_dbc_populate_str_desc(str_descs->serial, str->serial);
drivers/usb/host/xhci-dbgcap.c
1275
memcpy(dbc->str.product, buf, len);
drivers/usb/host/xhci-dbgcap.c
1276
dbc->str.product[len] = '\0';
drivers/usb/host/xhci-dbgcap.c
1288
return sysfs_emit(buf, "%s\n", dbc->str.serial);
drivers/usb/host/xhci-dbgcap.c
130
xhci_dbc_populate_str_desc(str_descs->product, str->product);
drivers/usb/host/xhci-dbgcap.c
1309
memcpy(dbc->str.serial, buf, len);
drivers/usb/host/xhci-dbgcap.c
1310
dbc->str.serial[len] = '\0';
drivers/usb/host/xhci-dbgcap.c
133
xhci_dbc_populate_str_desc(str_descs->manufacturer, str->manufacturer);
drivers/usb/host/xhci-dbgcap.c
1442
dbc->str = dbc_str_default;
drivers/usb/host/xhci-dbgcap.c
584
xhci_dbc_populate_str_descs(dbc->str_descs, &dbc->str);
drivers/usb/host/xhci-dbgcap.h
155
struct dbc_str str;
drivers/usb/host/xhci-debugfs.c
202
char str[XHCI_MSG_MAX];
drivers/usb/host/xhci-debugfs.c
208
xhci_decode_trb(str, XHCI_MSG_MAX, le32_to_cpu(trb->generic.field[0]),
drivers/usb/host/xhci-debugfs.c
253
char str[XHCI_MSG_MAX];
drivers/usb/host/xhci-debugfs.c
258
xhci_decode_slot_context(str,
drivers/usb/host/xhci-debugfs.c
275
char str[XHCI_MSG_MAX];
drivers/usb/host/xhci-debugfs.c
283
xhci_decode_ep_context(str,
drivers/usb/host/xhci-debugfs.c
330
char str[XHCI_MSG_MAX];
drivers/usb/host/xhci-debugfs.c
333
seq_printf(s, "%s\n", xhci_decode_portsc(str, portsc));
drivers/usb/host/xhci-ring.c
1721
char str[XHCI_MSG_MAX];
drivers/usb/host/xhci-ring.c
1741
xhci_dbg(xhci, "Command timeout, USBSTS:%s\n", xhci_decode_usbsts(str, usbsts));
drivers/usb/host/xhci.h
2043
static inline const char *xhci_decode_trb(char *str, size_t size,
drivers/usb/host/xhci.h
2050
snprintf(str, size,
drivers/usb/host/xhci.h
2067
snprintf(str, size,
drivers/usb/host/xhci.h
2079
snprintf(str, size,
drivers/usb/host/xhci.h
2097
snprintf(str, size,
drivers/usb/host/xhci.h
2111
snprintf(str, size,
drivers/usb/host/xhci.h
2124
snprintf(str, size,
drivers/usb/host/xhci.h
2139
snprintf(str, size,
drivers/usb/host/xhci.h
2159
snprintf(str, size,
drivers/usb/host/xhci.h
2166
snprintf(str, size,
drivers/usb/host/xhci.h
2173
snprintf(str, size,
drivers/usb/host/xhci.h
2182
snprintf(str, size,
drivers/usb/host/xhci.h
2191
snprintf(str, size,
drivers/usb/host/xhci.h
2199
snprintf(str, size,
drivers/usb/host/xhci.h
2209
snprintf(str, size,
drivers/usb/host/xhci.h
2218
snprintf(str, size,
drivers/usb/host/xhci.h
2228
snprintf(str, size,
drivers/usb/host/xhci.h
2235
snprintf(str, size,
drivers/usb/host/xhci.h
2244
snprintf(str, size,
drivers/usb/host/xhci.h
2251
snprintf(str, size,
drivers/usb/host/xhci.h
2260
snprintf(str, size,
drivers/usb/host/xhci.h
2269
snprintf(str, size,
drivers/usb/host/xhci.h
2275
return str;
drivers/usb/host/xhci.h
2278
static inline const char *xhci_decode_ctrl_ctx(char *str,
drivers/usb/host/xhci.h
2284
str[0] = '\0';
drivers/usb/host/xhci.h
2287
ret = sprintf(str, "Drop:");
drivers/usb/host/xhci.h
2289
ret += sprintf(str + ret, " %d%s",
drivers/usb/host/xhci.h
2292
ret += sprintf(str + ret, ", ");
drivers/usb/host/xhci.h
2296
ret += sprintf(str + ret, "Add:%s%s",
drivers/usb/host/xhci.h
2301
ret += sprintf(str + ret, " %d%s",
drivers/usb/host/xhci.h
2305
return str;
drivers/usb/host/xhci.h
2308
static inline const char *xhci_decode_slot_context(char *str,
drivers/usb/host/xhci.h
2320
ret = sprintf(str, "RS %05x %s%s%s Ctx Entries %d MEL %d us Port# %d/%d",
drivers/usb/host/xhci.h
2349
ret += sprintf(str + ret, " [TT Slot %d Port# %d TTT %d Intr %d] Addr %d State %s",
drivers/usb/host/xhci.h
2355
return str;
drivers/usb/host/xhci.h
2394
static inline const char *xhci_decode_portsc(char *str, u32 portsc)
drivers/usb/host/xhci.h
2398
ret = sprintf(str, "0x%08x ", portsc);
drivers/usb/host/xhci.h
2401
return str;
drivers/usb/host/xhci.h
2403
ret += sprintf(str + ret, "Speed=%d ", DEV_PORT_SPEED(portsc));
drivers/usb/host/xhci.h
2404
ret += sprintf(str + ret, "Link=%s ", xhci_portsc_link_state_string(portsc));
drivers/usb/host/xhci.h
2408
ret += sprintf(str + ret, "CCS ");
drivers/usb/host/xhci.h
2410
ret += sprintf(str + ret, "OCA "); /* No set for USB2 ports */
drivers/usb/host/xhci.h
2412
ret += sprintf(str + ret, "CAS ");
drivers/usb/host/xhci.h
2414
ret += sprintf(str + ret, "DR ");
drivers/usb/host/xhci.h
2418
ret += sprintf(str + ret, "PP ");
drivers/usb/host/xhci.h
2420
ret += sprintf(str + ret, "WCE ");
drivers/usb/host/xhci.h
2422
ret += sprintf(str + ret, "WDE ");
drivers/usb/host/xhci.h
2424
ret += sprintf(str + ret, "WOE ");
drivers/usb/host/xhci.h
2428
ret += sprintf(str + ret, "LWS "); /* LWS 0 write is ignored */
drivers/usb/host/xhci.h
2432
ret += sprintf(str + ret, "PR ");
drivers/usb/host/xhci.h
2434
ret += sprintf(str + ret, "WPR "); /* RsvdZ for USB2 ports */
drivers/usb/host/xhci.h
2438
ret += sprintf(str + ret, "PED ");
drivers/usb/host/xhci.h
2440
ret += sprintf(str + ret, "CSC ");
drivers/usb/host/xhci.h
2442
ret += sprintf(str + ret, "PEC "); /* No set for USB3 ports */
drivers/usb/host/xhci.h
2444
ret += sprintf(str + ret, "WRC "); /* RsvdZ for USB2 ports */
drivers/usb/host/xhci.h
2446
ret += sprintf(str + ret, "OCC ");
drivers/usb/host/xhci.h
2448
ret += sprintf(str + ret, "PRC ");
drivers/usb/host/xhci.h
2450
ret += sprintf(str + ret, "PLC ");
drivers/usb/host/xhci.h
2452
ret += sprintf(str + ret, "CEC "); /* RsvdZ for USB2 ports */
drivers/usb/host/xhci.h
2454
return str;
drivers/usb/host/xhci.h
2457
static inline const char *xhci_decode_usbsts(char *str, u32 usbsts)
drivers/usb/host/xhci.h
2461
ret = sprintf(str, " 0x%08x", usbsts);
drivers/usb/host/xhci.h
2464
return str;
drivers/usb/host/xhci.h
2467
ret += sprintf(str + ret, " HCHalted");
drivers/usb/host/xhci.h
2469
ret += sprintf(str + ret, " HSE");
drivers/usb/host/xhci.h
2471
ret += sprintf(str + ret, " EINT");
drivers/usb/host/xhci.h
2473
ret += sprintf(str + ret, " PCD");
drivers/usb/host/xhci.h
2475
ret += sprintf(str + ret, " SSS");
drivers/usb/host/xhci.h
2477
ret += sprintf(str + ret, " RSS");
drivers/usb/host/xhci.h
2479
ret += sprintf(str + ret, " SRE");
drivers/usb/host/xhci.h
2481
ret += sprintf(str + ret, " CNR");
drivers/usb/host/xhci.h
2483
ret += sprintf(str + ret, " HCE");
drivers/usb/host/xhci.h
2485
return str;
drivers/usb/host/xhci.h
2488
static inline const char *xhci_decode_doorbell(char *str, u32 slot, u32 doorbell)
drivers/usb/host/xhci.h
2498
sprintf(str, "Command Ring %d", doorbell);
drivers/usb/host/xhci.h
2499
return str;
drivers/usb/host/xhci.h
2501
ret = sprintf(str, "Slot %d ", slot);
drivers/usb/host/xhci.h
2503
ret = sprintf(str + ret, "ep%d%s",
drivers/usb/host/xhci.h
2507
ret = sprintf(str + ret, "Reserved %d", ep);
drivers/usb/host/xhci.h
2509
ret = sprintf(str + ret, "Vendor Defined %d", ep);
drivers/usb/host/xhci.h
2511
ret = sprintf(str + ret, " Stream %d", stream);
drivers/usb/host/xhci.h
2513
return str;
drivers/usb/host/xhci.h
2556
static inline const char *xhci_decode_ep_context(char *str, u32 info,
drivers/usb/host/xhci.h
2593
ret = sprintf(str, "State %s mult %d max P. Streams %d %s",
drivers/usb/host/xhci.h
2597
ret += sprintf(str + ret, "interval %d us max ESIT payload %d CErr %d ",
drivers/usb/host/xhci.h
2600
ret += sprintf(str + ret, "Type %s %sburst %d maxp %d deq %016llx ",
drivers/usb/host/xhci.h
2604
ret += sprintf(str + ret, "avg trb len %d", avg);
drivers/usb/host/xhci.h
2606
return str;
drivers/usb/misc/usb251xb.c
416
char str[USB251XB_STRING_BUFSIZE / 2];
drivers/usb/misc/usb251xb.c
552
strscpy(str, cproperty_char ? : USB251XB_DEF_MANUFACTURER_STRING,
drivers/usb/misc/usb251xb.c
553
sizeof(str));
drivers/usb/misc/usb251xb.c
554
hub->manufacturer_len = strlen(str) & 0xFF;
drivers/usb/misc/usb251xb.c
556
len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str));
drivers/usb/misc/usb251xb.c
557
len = utf8s_to_utf16s(str, len, UTF16_LITTLE_ENDIAN,
drivers/usb/misc/usb251xb.c
562
strscpy(str, cproperty_char ? : data->product_str, sizeof(str));
drivers/usb/misc/usb251xb.c
563
hub->product_len = strlen(str) & 0xFF;
drivers/usb/misc/usb251xb.c
565
len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str));
drivers/usb/misc/usb251xb.c
566
len = utf8s_to_utf16s(str, len, UTF16_LITTLE_ENDIAN,
drivers/usb/misc/usb251xb.c
571
strscpy(str, cproperty_char ? : USB251XB_DEF_SERIAL_STRING,
drivers/usb/misc/usb251xb.c
572
sizeof(str));
drivers/usb/misc/usb251xb.c
573
hub->serial_len = strlen(str) & 0xFF;
drivers/usb/misc/usb251xb.c
575
len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str));
drivers/usb/misc/usb251xb.c
576
len = utf8s_to_utf16s(str, len, UTF16_LITTLE_ENDIAN,
drivers/usb/mon/mon_stat.c
24
char str[STAT_BUF_SIZE];
drivers/usb/mon/mon_stat.c
38
sp->slen = scnprintf(sp->str, STAT_BUF_SIZE,
drivers/usb/mon/mon_stat.c
51
return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen);
drivers/usb/musb/musb_cppi41.c
682
const char *str;
drivers/usb/musb/musb_cppi41.c
686
ret = of_property_read_string_index(np, "dma-names", i, &str);
drivers/usb/musb/musb_cppi41.c
689
if (strstarts(str, "tx"))
drivers/usb/musb/musb_cppi41.c
691
else if (strstarts(str, "rx"))
drivers/usb/musb/musb_cppi41.c
694
dev_err(dev, "Wrong dmatype %s\n", str);
drivers/usb/musb/musb_cppi41.c
697
ret = kstrtouint(str + 2, 0, &port);
drivers/usb/musb/musb_cppi41.c
719
dc = dma_request_chan(dev->parent, str);
drivers/usb/musb/musb_cppi41.c
722
"Failed to request %s.\n", str);
drivers/usb/storage/usb.c
105
memcpy(buf, str, n);
drivers/usb/storage/usb.c
128
char *str, int size)
drivers/usb/storage/usb.c
135
ret = scnprintf(str, size, "%u%s\n", val, suffix);
drivers/usb/storage/usb.c
137
ret = scnprintf(str, size, "%u\n", (unsigned int)delay_ms);
drivers/usb/storage/usb.c
86
static int parse_delay_str(const char *str, int ndecimals, const char *suffix,
drivers/usb/storage/usb.c
93
n = strlen(str);
drivers/usb/storage/usb.c
94
if (n > 0 && str[n - 1] == '\n')
drivers/usb/storage/usb.c
96
if (n >= l && !strncmp(&str[n - l], suffix, l)) {
drivers/usb/typec/mux/intel_pmc_mux.c
579
const char *str;
drivers/usb/typec/mux/intel_pmc_mux.c
590
ret = fwnode_property_read_string(fwnode, "sbu-orientation", &str);
drivers/usb/typec/mux/intel_pmc_mux.c
592
port->sbu_orientation = typec_find_orientation(str);
drivers/usb/typec/mux/intel_pmc_mux.c
594
ret = fwnode_property_read_string(fwnode, "hsl-orientation", &str);
drivers/usb/typec/mux/intel_pmc_mux.c
596
port->hsl_orientation = typec_find_orientation(str);
drivers/vdpa/solidrun/snet_hwmon.c
129
int channel, const char **str)
drivers/vdpa/solidrun/snet_hwmon.c
135
*str = "main_vin";
drivers/vdpa/solidrun/snet_hwmon.c
138
*str = "soc_pin";
drivers/vdpa/solidrun/snet_hwmon.c
141
*str = "soc_iin";
drivers/vdpa/solidrun/snet_hwmon.c
145
*str = "power_stage_temp";
drivers/vdpa/solidrun/snet_hwmon.c
147
*str = "ic_junction_temp";
drivers/vfio/mdev/mdev_sysfs.c
65
char *str;
drivers/vfio/mdev/mdev_sysfs.c
72
str = kstrndup(buf, count, GFP_KERNEL);
drivers/vfio/mdev/mdev_sysfs.c
73
if (!str)
drivers/vfio/mdev/mdev_sysfs.c
76
ret = guid_parse(str, &uuid);
drivers/vfio/mdev/mdev_sysfs.c
77
kfree(str);
drivers/video/console/mdacon.c
177
static int __init mdacon_setup(char *str)
drivers/video/console/mdacon.c
183
str = get_options(str, ARRAY_SIZE(ints), ints);
drivers/video/console/vgacon.c
97
static int __init no_scroll(char *str)
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4318
static void print_dsi_vm(const char *str,
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4333
str,
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4351
static void print_dispc_vm(const char *str, const struct omap_video_timings *t)
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4364
str,
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4379
static void print_dsi_dispc_vm(const char *str,
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4399
print_dispc_vm(str, &vm);
drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c
39
const char *str = data;
drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c
41
return sysfs_streq(dssdev->name, str);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2151
char *str, *options, *this_opt;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2154
str = kstrdup(def_mode, GFP_KERNEL);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2155
if (!str)
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2157
options = str;
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
2193
kfree(str);
drivers/video/fbdev/sh_mobile_lcdcfb.c
360
char *str;
drivers/video/fbdev/sh_mobile_lcdcfb.c
364
str = "bus_clk";
drivers/video/fbdev/sh_mobile_lcdcfb.c
368
str = "peripheral_clk";
drivers/video/fbdev/sh_mobile_lcdcfb.c
372
str = NULL;
drivers/video/fbdev/sh_mobile_lcdcfb.c
379
if (str == NULL)
drivers/video/fbdev/sh_mobile_lcdcfb.c
382
clk = clk_get(priv->dev, str);
drivers/video/fbdev/sh_mobile_lcdcfb.c
384
dev_err(priv->dev, "cannot get dot clock %s\n", str);
drivers/video/fbdev/via/viafbdev.c
1625
static int parse_mode(const char *str, u32 devices, u32 *xres, u32 *yres)
drivers/video/fbdev/via/viafbdev.c
1630
if (!str) {
drivers/video/fbdev/via/viafbdev.c
1651
*xres = simple_strtoul(str, &ptr, 10);
drivers/video/nomodeset.c
16
static int __init disable_modeset(char *str)
drivers/video/sticore.c
331
static int __init sti_setup(char *str)
drivers/video/sticore.c
333
if (str)
drivers/video/sticore.c
334
strscpy(default_sti_path, str, sizeof(default_sti_path));
drivers/video/sticore.c
355
static int sti_font_setup(char *str)
drivers/video/sticore.c
365
if (*str >= '0' && *str <= '9') {
drivers/video/sticore.c
368
if ((x = strchr(str, 'x')) || (x = strchr(str, '*'))) {
drivers/video/sticore.c
369
font_height = simple_strtoul(str, NULL, 0);
drivers/video/sticore.c
372
font_index = simple_strtoul(str, NULL, 0);
drivers/video/sticore.c
375
font_name = str; /* fb font name */
drivers/virtio/virtio_mmio.c
677
char *str;
drivers/virtio/virtio_mmio.c
684
size = memparse(device, &str);
drivers/virtio/virtio_mmio.c
687
processed = sscanf(str, "@%lli:%u%n:%d%n",
drivers/virtio/virtio_mmio.c
696
if (processed < 2 || str[consumed] || irq == 0)
drivers/watchdog/machzwd.c
386
static const char * const str[] = { "RESET", "SMI", "NMI", "SCI" };
drivers/watchdog/machzwd.c
388
pr_info("Watchdog using action = %s\n", str[act]);
drivers/watchdog/octeon-wdt-main.c
161
static void octeon_wdt_write_string(const char *str)
drivers/watchdog/octeon-wdt-main.c
164
while (*str)
drivers/watchdog/octeon-wdt-main.c
165
prom_putchar(*str++);
drivers/xen/manage.c
227
char *str;
drivers/xen/manage.c
240
str = (char *)xenbus_read(xbt, "control", "shutdown", NULL);
drivers/xen/manage.c
242
if (XENBUS_IS_ERR_READ(str)) {
drivers/xen/manage.c
248
if (strcmp(str, shutdown_handlers[idx].command) == 0)
drivers/xen/manage.c
258
kfree(str);
drivers/xen/manage.c
265
pr_info("Ignoring shutdown request: %s\n", str);
drivers/xen/manage.c
269
kfree(str);
drivers/xen/xen-pciback/xenbus.c
209
char str[64];
drivers/xen/xen-pciback/xenbus.c
211
len = snprintf(str, sizeof(str), "vdev-%d", devid);
drivers/xen/xen-pciback/xenbus.c
212
if (unlikely(len >= (sizeof(str) - 1))) {
drivers/xen/xen-pciback/xenbus.c
218
err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str,
drivers/xen/xen-pciback/xenbus.c
307
char str[64];
drivers/xen/xen-pciback/xenbus.c
320
len = snprintf(str, sizeof(str), "root-%d", i);
drivers/xen/xen-pciback/xenbus.c
321
if (unlikely(len >= (sizeof(str) - 1))) {
drivers/xen/xen-pciback/xenbus.c
327
str, "%x:%x", &d, &b);
drivers/xen/xen-pciback/xenbus.c
341
len = snprintf(str, sizeof(str), "root-%d", root_num);
drivers/xen/xen-pciback/xenbus.c
342
if (unlikely(len >= (sizeof(str) - 1))) {
drivers/xen/xen-pciback/xenbus.c
350
err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str,
drivers/xen/xen-scsiback.c
1086
char str[64];
drivers/xen/xen-scsiback.c
1097
snprintf(str, sizeof(str), "vscsi-devs/%s/p-dev", ent);
drivers/xen/xen-scsiback.c
1098
val = xenbus_read(XBT_NIL, dev->nodename, str, NULL);
drivers/xen/xen-scsiback.c
1111
snprintf(str, sizeof(str), "vscsi-devs/%s/v-dev", ent);
drivers/xen/xen-scsiback.c
1112
err = xenbus_scanf(XBT_NIL, dev->nodename, str, "%u:%u:%u:%u",
drivers/xen/xen-scsiback.c
1145
pr_err("xenbus_printf error %s\n", str);
drivers/xen/xenbus/xenbus_probe.c
613
static unsigned int char_count(const char *str, char c)
drivers/xen/xenbus/xenbus_probe.c
617
for (i = 0; str[i]; i++)
drivers/xen/xenbus/xenbus_probe.c
618
if (str[i] == c)
drivers/xen/xenbus/xenbus_probe.c
623
static int strsep_len(const char *str, char c, unsigned int len)
drivers/xen/xenbus/xenbus_probe.c
627
for (i = 0; str[i]; i++)
drivers/xen/xenbus/xenbus_probe.c
628
if (str[i] == c) {
drivers/xen/xenfs/xenstored.c
15
const char *str = (const char *)file->private_data;
drivers/xen/xenfs/xenstored.c
16
return simple_read_from_buffer(buf, size, off, str, strlen(str));
fs/adfs/dir.c
334
const char *str, u32 len)
fs/adfs/dir.c
342
if (adfs_tolower(qstr[i]) != adfs_tolower(str[i]))
fs/adfs/dir.c
420
const char *str, const struct qstr *qstr)
fs/adfs/dir.c
422
return __adfs_compare(qstr->name, qstr->len, str, len);
fs/affs/namei.c
117
unsigned int len, const char *str, const struct qstr *name)
fs/affs/namei.c
120
return __affs_compare_dentry(len, str, name, affs_toupper,
fs/affs/namei.c
126
unsigned int len, const char *str, const struct qstr *name)
fs/affs/namei.c
128
return __affs_compare_dentry(len, str, name, affs_intl_toupper,
fs/affs/namei.c
83
const char *str, const struct qstr *name, toupper_t fn,
fs/affs/namei.c
86
const u8 *aname = str;
fs/autofs/dev-ioctl.c
42
static int invalid_str(char *str, size_t size)
fs/autofs/dev-ioctl.c
44
if (memchr(str, 0, size))
fs/autofs/root.c
138
const unsigned char *str = name->name;
fs/autofs/root.c
168
if (memcmp(qstr->name, str, len))
fs/autofs/root.c
193
const unsigned char *str = name->name;
fs/autofs/root.c
228
if (memcmp(qstr->name, str, len))
fs/btrfs/compression.c
1654
int btrfs_compress_str2level(unsigned int type, const char *str, int *level_ret)
fs/btrfs/compression.c
1664
if (str[0] == ':') {
fs/btrfs/compression.c
1665
ret = kstrtoint(str + 1, 10, &level);
fs/btrfs/compression.c
73
bool btrfs_compress_is_valid_type(const char *str, size_t len)
fs/btrfs/compression.c
83
if (!strncmp(btrfs_compress_types[i], str, comp_len))
fs/btrfs/compression.h
134
bool btrfs_compress_is_valid_type(const char *str, size_t len);
fs/btrfs/compression.h
99
int btrfs_compress_str2level(unsigned int type, const char *str, int *level_ret);
fs/btrfs/send.c
694
const char *str, int len)
fs/btrfs/send.c
697
len = strlen(str);
fs/btrfs/send.c
698
return tlv_put(sctx, attr, str, len);
fs/btrfs/send.c
735
#define TLV_PUT_STRING(sctx, attrtype, str, len) \
fs/btrfs/send.c
737
ret = tlv_put_string(sctx, attrtype, str, len); \
fs/btrfs/sysfs.c
1269
const char *str;
fs/btrfs/sysfs.c
1273
str = "none\n";
fs/btrfs/sysfs.c
1276
str = "balance\n";
fs/btrfs/sysfs.c
1279
str = "balance paused\n";
fs/btrfs/sysfs.c
1282
str = "device add\n";
fs/btrfs/sysfs.c
1285
str = "device remove\n";
fs/btrfs/sysfs.c
1288
str = "device replace\n";
fs/btrfs/sysfs.c
1291
str = "resize\n";
fs/btrfs/sysfs.c
1294
str = "swap activate\n";
fs/btrfs/sysfs.c
1297
str = "UNKNOWN\n";
fs/btrfs/sysfs.c
1300
return sysfs_emit(buf, "%s", str);
fs/btrfs/sysfs.c
1345
int btrfs_read_policy_to_enum(const char *str, s64 *value_ret)
fs/btrfs/sysfs.c
1350
if (!str || strlen(str) == 0)
fs/btrfs/sysfs.c
1353
strscpy(param, str);
fs/btrfs/sysfs.c
1755
char *str;
fs/btrfs/sysfs.c
1757
str = kmalloc(bufsize, GFP_KERNEL);
fs/btrfs/sysfs.c
1758
if (!str)
fs/btrfs/sysfs.c
1759
return str;
fs/btrfs/sysfs.c
1768
len += scnprintf(str + len, bufsize - len, "%s%s",
fs/btrfs/sysfs.c
1772
return str;
fs/btrfs/sysfs.h
50
int btrfs_read_policy_to_enum(const char *str, s64 *value);
fs/ceph/addr.c
2404
(int)pool_ns->len, pool_ns->str);
fs/ceph/addr.c
2516
memcpy(perm->pool_ns, pool_ns->str, pool_ns_len);
fs/ceph/addr.c
2532
(int)pool_ns->len, pool_ns->str, err);
fs/ceph/crypto.c
173
char *str __free(kfree) = kmemdup_nul(name + 1, *name_len - 1, GFP_KERNEL);
fs/ceph/crypto.c
174
if (!str)
fs/ceph/crypto.c
176
name_end = strrchr(str, '_');
fs/ceph/crypto.c
178
doutc(cl, "failed to parse long snapshot name: %s\n", str);
fs/ceph/crypto.c
181
*name_len = (name_end - str);
fs/ceph/crypto.c
191
doutc(cl, "failed to parse inode number: %s\n", str);
fs/ceph/file.c
723
iinfo.pool_ns_data = pool_ns->str;
fs/ceph/xattr.c
106
memcpy(val + ret, pool_ns->str, pool_ns->len);
fs/ceph/xattr.c
192
memcpy(val, ns->str, ret);
fs/crypto/fname.c
77
static inline bool fscrypt_is_dot_dotdot(const struct qstr *str)
fs/crypto/fname.c
79
return name_is_dot_dotdot(str->name, str->len);
fs/crypto/fscrypt_private.h
20
#define CONST_STRLEN(str) (sizeof(str) - 1)
fs/d_path.c
57
static bool prepend(struct prepend_buffer *p, const char *str, int namelen)
fs/d_path.c
66
str += namelen - p->len;
fs/d_path.c
68
prepend_copy(p->buf, str, p->len);
fs/d_path.c
76
return prepend_copy(p->buf, str, namelen);
fs/dcache.c
2304
const unsigned char *str = name->name;
fs/dcache.c
2357
if (unlikely(dentry_cmp(dentry, str, hashlen_len(hashlen)) != 0))
fs/dcache.c
3238
static int __init set_dhash_entries(char *str)
fs/dcache.c
3240
return kstrtoul(str, 0, &dhash_entries) == 0;
fs/debugfs/file.c
1020
char *str, *copy = NULL;
fs/debugfs/file.c
1028
str = *(char **)file->private_data;
fs/debugfs/file.c
1029
len = strlen(str) + 1;
fs/debugfs/file.c
1036
copy_len = strscpy(copy, str, len);
fs/debugfs/inode.c
882
static int __init debugfs_kernel(char *str)
fs/debugfs/inode.c
884
if (str) {
fs/debugfs/inode.c
885
if (!strcmp(str, "on"))
fs/debugfs/inode.c
887
else if (!strcmp(str, "off"))
fs/debugfs/inode.c
889
else if (!strcmp(str, "no-mount")) {
fs/ecryptfs/crypto.c
865
int ecryptfs_cipher_code_to_string(char *str, size_t size, u8 cipher_code)
fs/ecryptfs/crypto.c
870
str[0] = '\0';
fs/ecryptfs/crypto.c
873
strscpy(str, ecryptfs_cipher_code_str_map[i].cipher_str,
fs/ecryptfs/crypto.c
875
if (str[0] == '\0') {
fs/ecryptfs/ecryptfs_kernel.h
575
int ecryptfs_cipher_code_to_string(char *str, size_t size, u8 cipher_code);
fs/efivarfs/inode.c
54
static bool efivarfs_valid_name(const char *str, int len)
fs/efivarfs/inode.c
56
const char *s = str + len - EFI_VARIABLE_GUID_LEN;
fs/efivarfs/super.c
150
unsigned int len, const char *str,
fs/efivarfs/super.c
163
if (memcmp(str, name->name, guid))
fs/efivarfs/super.c
167
return strncasecmp(name->name + guid, str + guid, EFI_VARIABLE_GUID_LEN);
fs/exec.c
457
const char __user *str;
fs/exec.c
462
str = get_user_arg_ptr(argv, argc);
fs/exec.c
463
if (IS_ERR(str))
fs/exec.c
466
len = strnlen_user(str, MAX_ARG_STRLEN);
fs/exec.c
476
str += len;
fs/exec.c
500
str -= bytes_to_copy;
fs/exec.c
522
if (copy_from_user(kaddr+offset, str, bytes_to_copy)) {
fs/exfat/namei.c
102
const char *str, const struct qstr *name)
fs/exfat/namei.c
108
unsigned int blen = exfat_striptail_len(len, str,
fs/exfat/namei.c
120
if (charlen != t->char2uni(&str[i], blen - i, &c2))
fs/exfat/namei.c
163
const char *str, const struct qstr *name)
fs/exfat/namei.c
168
unsigned int blen = exfat_striptail_len(len, str,
fs/exfat/namei.c
181
if (charlen != utf8_to_utf32(&str[i], blen - i, &u_b))
fs/exfat/nls.c
459
static unsigned short *exfat_wstrchr(unsigned short *str, unsigned short wchar)
fs/exfat/nls.c
461
while (*str) {
fs/exfat/nls.c
462
if (*(str++) == wchar)
fs/exfat/nls.c
463
return str;
fs/ext4/super.c
2963
#define SEQ_OPTS_PUTS(str) seq_printf(seq, "%c" str, sep)
fs/ext4/super.c
2964
#define SEQ_OPTS_PRINT(str, arg) seq_printf(seq, "%c" str, sep, arg)
fs/f2fs/segment.c
35
static unsigned long __reverse_ulong(unsigned char *str)
fs/f2fs/segment.c
44
tmp |= (unsigned long)str[idx++] << shift;
fs/f2fs/super.c
707
static int f2fs_set_lz4hc_level(struct f2fs_fs_context *ctx, const char *str)
fs/f2fs/super.c
712
if (strlen(str) == 3) {
fs/f2fs/super.c
718
str += 3;
fs/f2fs/super.c
720
if (str[0] != ':') {
fs/f2fs/super.c
724
if (kstrtouint(str + 1, 10, &level))
fs/f2fs/super.c
736
if (strlen(str) == 3) {
fs/f2fs/super.c
748
static int f2fs_set_zstd_level(struct f2fs_fs_context *ctx, const char *str)
fs/f2fs/super.c
753
if (strlen(str) == len) {
fs/f2fs/super.c
759
str += len;
fs/f2fs/super.c
761
if (str[0] != ':') {
fs/f2fs/super.c
765
if (kstrtoint(str + 1, 10, &level))
fs/fat/namei_msdos.c
168
unsigned int len, const char *str, const struct qstr *name)
fs/fat/namei_msdos.c
177
error = msdos_format_name(str, len, b_msdos_name, options);
fs/fat/namei_msdos.c
187
error = memcmp(name->name, str, len);
fs/fat/namei_vfat.c
154
unsigned int len, const char *str, const struct qstr *name)
fs/fat/namei_vfat.c
161
blen = __vfat_striptail_len(len, str);
fs/fat/namei_vfat.c
163
if (nls_strnicmp(t, name->name, str, alen) == 0)
fs/fat/namei_vfat.c
173
unsigned int len, const char *str, const struct qstr *name)
fs/fat/namei_vfat.c
179
blen = __vfat_striptail_len(len, str);
fs/fat/namei_vfat.c
181
if (strncmp(name->name, str, alen) == 0)
fs/gfs2/dentry.c
75
static int gfs2_dhash(const struct dentry *dentry, struct qstr *str)
fs/gfs2/dentry.c
77
str->hash = gfs2_disk_hash(str->name, str->len);
fs/gfs2/dir.c
1088
struct qstr str;
fs/gfs2/dir.c
1090
str.name = (char*)(dent+1);
fs/gfs2/dir.c
1091
str.len = be16_to_cpu(dent->de_name_len);
fs/gfs2/dir.c
1092
str.hash = be32_to_cpu(dent->de_hash);
fs/gfs2/dir.c
1093
new = gfs2_dirent_split_alloc(inode, nbh, &str, ptr);
fs/gfs2/glops.c
390
const struct gfs2_dinode *str = buf;
fs/gfs2/glops.c
393
umode_t mode = be32_to_cpu(str->di_mode);
fs/gfs2/glops.c
397
if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) {
fs/gfs2/glops.c
405
ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino);
fs/gfs2/glops.c
412
inode->i_rdev = MKDEV(be32_to_cpu(str->di_major),
fs/gfs2/glops.c
413
be32_to_cpu(str->di_minor));
fs/gfs2/glops.c
418
i_uid_write(inode, be32_to_cpu(str->di_uid));
fs/gfs2/glops.c
419
i_gid_write(inode, be32_to_cpu(str->di_gid));
fs/gfs2/glops.c
420
set_nlink(inode, be32_to_cpu(str->di_nlink));
fs/gfs2/glops.c
421
i_size_write(inode, be64_to_cpu(str->di_size));
fs/gfs2/glops.c
422
gfs2_set_inode_blocks(inode, be64_to_cpu(str->di_blocks));
fs/gfs2/glops.c
423
atime.tv_sec = be64_to_cpu(str->di_atime);
fs/gfs2/glops.c
424
atime.tv_nsec = be32_to_cpu(str->di_atime_nsec);
fs/gfs2/glops.c
428
inode_set_mtime(inode, be64_to_cpu(str->di_mtime),
fs/gfs2/glops.c
429
be32_to_cpu(str->di_mtime_nsec));
fs/gfs2/glops.c
430
inode_set_ctime(inode, be64_to_cpu(str->di_ctime),
fs/gfs2/glops.c
431
be32_to_cpu(str->di_ctime_nsec));
fs/gfs2/glops.c
433
ip->i_goal = be64_to_cpu(str->di_goal_meta);
fs/gfs2/glops.c
434
ip->i_generation = be64_to_cpu(str->di_generation);
fs/gfs2/glops.c
436
ip->i_diskflags = be32_to_cpu(str->di_flags);
fs/gfs2/glops.c
437
ip->i_eattr = be64_to_cpu(str->di_eattr);
fs/gfs2/glops.c
440
height = be16_to_cpu(str->di_height);
fs/gfs2/glops.c
447
depth = be16_to_cpu(str->di_depth);
fs/gfs2/glops.c
458
ip->i_entries = be32_to_cpu(str->di_entries);
fs/gfs2/ops_fstype.c
179
static void gfs2_sb_in(struct gfs2_sbd *sdp, const struct gfs2_sb *str)
fs/gfs2/ops_fstype.c
184
sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic);
fs/gfs2/ops_fstype.c
185
sb->sb_type = be32_to_cpu(str->sb_header.mh_type);
fs/gfs2/ops_fstype.c
186
sb->sb_fs_format = be32_to_cpu(str->sb_fs_format);
fs/gfs2/ops_fstype.c
187
sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format);
fs/gfs2/ops_fstype.c
188
sb->sb_bsize = be32_to_cpu(str->sb_bsize);
fs/gfs2/ops_fstype.c
189
sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift);
fs/gfs2/ops_fstype.c
190
sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr);
fs/gfs2/ops_fstype.c
191
sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino);
fs/gfs2/ops_fstype.c
192
sb->sb_root_dir.no_addr = be64_to_cpu(str->sb_root_dir.no_addr);
fs/gfs2/ops_fstype.c
193
sb->sb_root_dir.no_formal_ino = be64_to_cpu(str->sb_root_dir.no_formal_ino);
fs/gfs2/ops_fstype.c
195
memcpy(sb->sb_lockproto, str->sb_lockproto, GFS2_LOCKNAME_LEN);
fs/gfs2/ops_fstype.c
196
memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN);
fs/gfs2/ops_fstype.c
197
super_set_uuid(s, str->sb_uuid, 16);
fs/gfs2/rgrp.c
1061
const struct gfs2_rgrp *str = buf;
fs/gfs2/rgrp.c
1064
rg_flags = be32_to_cpu(str->rg_flags);
fs/gfs2/rgrp.c
1068
rgd->rd_free = be32_to_cpu(str->rg_free);
fs/gfs2/rgrp.c
1069
rgd->rd_dinodes = be32_to_cpu(str->rg_dinodes);
fs/gfs2/rgrp.c
1070
rgd->rd_igeneration = be64_to_cpu(str->rg_igeneration);
fs/gfs2/rgrp.c
1076
const struct gfs2_rgrp *str = buf;
fs/gfs2/rgrp.c
1079
rgl->rl_flags = str->rg_flags;
fs/gfs2/rgrp.c
1080
rgl->rl_free = str->rg_free;
fs/gfs2/rgrp.c
1081
rgl->rl_dinodes = str->rg_dinodes;
fs/gfs2/rgrp.c
1082
rgl->rl_igeneration = str->rg_igeneration;
fs/gfs2/rgrp.c
1089
struct gfs2_rgrp *str = buf;
fs/gfs2/rgrp.c
1092
str->rg_flags = cpu_to_be32(rgd->rd_flags & ~GFS2_RDF_MASK);
fs/gfs2/rgrp.c
1093
str->rg_free = cpu_to_be32(rgd->rd_free);
fs/gfs2/rgrp.c
1094
str->rg_dinodes = cpu_to_be32(rgd->rd_dinodes);
fs/gfs2/rgrp.c
1096
str->rg_skip = 0;
fs/gfs2/rgrp.c
1098
str->rg_skip = cpu_to_be32(next->rd_addr - rgd->rd_addr);
fs/gfs2/rgrp.c
1099
str->rg_igeneration = cpu_to_be64(rgd->rd_igeneration);
fs/gfs2/rgrp.c
1100
str->rg_data0 = cpu_to_be64(rgd->rd_data0);
fs/gfs2/rgrp.c
1101
str->rg_data = cpu_to_be32(rgd->rd_data);
fs/gfs2/rgrp.c
1102
str->rg_bitbytes = cpu_to_be32(rgd->rd_bitbytes);
fs/gfs2/rgrp.c
1103
str->rg_crc = 0;
fs/gfs2/rgrp.c
1105
str->rg_crc = cpu_to_be32(crc);
fs/gfs2/rgrp.c
1107
memset(&str->rg_reserved, 0, sizeof(str->rg_reserved));
fs/gfs2/rgrp.c
1114
struct gfs2_rgrp *str = (struct gfs2_rgrp *)rgd->rd_bits[0].bi_bh->b_data;
fs/gfs2/rgrp.c
1118
if (rgl->rl_flags != str->rg_flags) {
fs/gfs2/rgrp.c
1121
be32_to_cpu(rgl->rl_flags), be32_to_cpu(str->rg_flags));
fs/gfs2/rgrp.c
1124
if (rgl->rl_free != str->rg_free) {
fs/gfs2/rgrp.c
1127
be32_to_cpu(rgl->rl_free), be32_to_cpu(str->rg_free));
fs/gfs2/rgrp.c
1130
if (rgl->rl_dinodes != str->rg_dinodes) {
fs/gfs2/rgrp.c
1134
be32_to_cpu(str->rg_dinodes));
fs/gfs2/rgrp.c
1137
if (rgl->rl_igeneration != str->rg_igeneration) {
fs/gfs2/rgrp.c
1141
(unsigned long long)be64_to_cpu(str->rg_igeneration));
fs/gfs2/super.c
161
const struct gfs2_statfs_change *str = buf;
fs/gfs2/super.c
163
sc->sc_total = be64_to_cpu(str->sc_total);
fs/gfs2/super.c
164
sc->sc_free = be64_to_cpu(str->sc_free);
fs/gfs2/super.c
165
sc->sc_dinodes = be64_to_cpu(str->sc_dinodes);
fs/gfs2/super.c
170
struct gfs2_statfs_change *str = buf;
fs/gfs2/super.c
172
str->sc_total = cpu_to_be64(sc->sc_total);
fs/gfs2/super.c
173
str->sc_free = cpu_to_be64(sc->sc_free);
fs/gfs2/super.c
174
str->sc_dinodes = cpu_to_be64(sc->sc_dinodes);
fs/gfs2/super.c
396
struct gfs2_dinode *str = buf;
fs/gfs2/super.c
398
str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
fs/gfs2/super.c
399
str->di_header.mh_type = cpu_to_be32(GFS2_METATYPE_DI);
fs/gfs2/super.c
400
str->di_header.mh_format = cpu_to_be32(GFS2_FORMAT_DI);
fs/gfs2/super.c
401
str->di_num.no_addr = cpu_to_be64(ip->i_no_addr);
fs/gfs2/super.c
402
str->di_num.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino);
fs/gfs2/super.c
403
str->di_mode = cpu_to_be32(inode->i_mode);
fs/gfs2/super.c
404
str->di_uid = cpu_to_be32(i_uid_read(inode));
fs/gfs2/super.c
405
str->di_gid = cpu_to_be32(i_gid_read(inode));
fs/gfs2/super.c
406
str->di_nlink = cpu_to_be32(inode->i_nlink);
fs/gfs2/super.c
407
str->di_size = cpu_to_be64(i_size_read(inode));
fs/gfs2/super.c
408
str->di_blocks = cpu_to_be64(gfs2_get_inode_blocks(inode));
fs/gfs2/super.c
409
str->di_atime = cpu_to_be64(inode_get_atime_sec(inode));
fs/gfs2/super.c
410
str->di_mtime = cpu_to_be64(inode_get_mtime_sec(inode));
fs/gfs2/super.c
411
str->di_ctime = cpu_to_be64(inode_get_ctime_sec(inode));
fs/gfs2/super.c
413
str->di_goal_meta = cpu_to_be64(ip->i_goal);
fs/gfs2/super.c
414
str->di_goal_data = cpu_to_be64(ip->i_goal);
fs/gfs2/super.c
415
str->di_generation = cpu_to_be64(ip->i_generation);
fs/gfs2/super.c
417
str->di_flags = cpu_to_be32(ip->i_diskflags);
fs/gfs2/super.c
418
str->di_height = cpu_to_be16(ip->i_height);
fs/gfs2/super.c
419
str->di_payload_format = cpu_to_be32(S_ISDIR(inode->i_mode) &&
fs/gfs2/super.c
422
str->di_depth = cpu_to_be16(ip->i_depth);
fs/gfs2/super.c
423
str->di_entries = cpu_to_be32(ip->i_entries);
fs/gfs2/super.c
425
str->di_eattr = cpu_to_be64(ip->i_eattr);
fs/gfs2/super.c
426
str->di_atime_nsec = cpu_to_be32(inode_get_atime_nsec(inode));
fs/gfs2/super.c
427
str->di_mtime_nsec = cpu_to_be32(inode_get_mtime_nsec(inode));
fs/gfs2/super.c
428
str->di_ctime_nsec = cpu_to_be32(inode_get_ctime_nsec(inode));
fs/hfs/catalog.c
111
dir->i_ino, str);
fs/hfs/catalog.c
122
hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str);
fs/hfs/catalog.c
339
int hfs_cat_delete(u32 cnid, struct inode *dir, const struct qstr *str)
fs/hfs/catalog.c
346
hfs_dbg("name %s, cnid %u\n", str ? str->name : NULL, cnid);
fs/hfs/catalog.c
352
hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str);
fs/hfs/catalog.c
82
int hfs_cat_create(u32 cnid, struct inode *dir, const struct qstr *str, struct inode *inode)
fs/hfs/catalog.c
91
str->name, cnid, inode->i_nlink);
fs/hfs/hfs_fs.h
151
const struct qstr *str, struct inode *inode);
fs/hfs/hfs_fs.h
152
extern int hfs_cat_delete(u32 cnid, struct inode *dir, const struct qstr *str);
fs/hfs/hfs_fs.h
219
unsigned int len, const char *str,
fs/hfs/string.c
100
unsigned int len, const char *str, const struct qstr *name)
fs/hfs/string.c
111
n1 = str;
fs/hfsplus/catalog.c
178
u32 parentid, const struct qstr *str)
fs/hfsplus/catalog.c
186
str->name, str->len);
fs/hfsplus/catalog.c
254
const struct qstr *str, struct inode *inode)
fs/hfsplus/catalog.c
263
str->name, cnid, inode->i_nlink);
fs/hfsplus/catalog.c
280
dir->i_ino, str);
fs/hfsplus/catalog.c
296
err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str);
fs/hfsplus/catalog.c
330
int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str)
fs/hfsplus/catalog.c
339
hfs_dbg("name %s, cnid %u\n", str ? str->name : NULL, cnid);
fs/hfsplus/catalog.c
352
if (!str) {
fs/hfsplus/catalog.c
371
err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str);
fs/hfsplus/catalog.c
44
hfsplus_btree_key *key, u32 parent, const struct qstr *str)
fs/hfsplus/catalog.c
50
str->name, str->len);
fs/hfsplus/dir.c
101
str.len = sprintf(name, "iNode%d", linkid);
fs/hfsplus/dir.c
102
str.name = name;
fs/hfsplus/dir.c
105
&str);
fs/hfsplus/dir.c
306
struct qstr str;
fs/hfsplus/dir.c
324
str.name = name;
fs/hfsplus/dir.c
325
str.len = sprintf(name, "iNode%d", id);
fs/hfsplus/dir.c
328
sbi->hidden_dir, &str);
fs/hfsplus/dir.c
380
struct qstr str;
fs/hfsplus/dir.c
395
str.name = name;
fs/hfsplus/dir.c
396
str.len = sprintf(name, "temp%lu", inode->i_ino);
fs/hfsplus/dir.c
399
sbi->hidden_dir, &str);
fs/hfsplus/dir.c
87
struct qstr str;
fs/hfsplus/hfsplus_fs.h
413
u32 parent, const struct qstr *str);
fs/hfsplus/hfsplus_fs.h
419
int hfsplus_create_cat(u32 cnid, struct inode *dir, const struct qstr *str,
fs/hfsplus/hfsplus_fs.h
421
int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str);
fs/hfsplus/hfsplus_fs.h
503
int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str);
fs/hfsplus/hfsplus_fs.h
505
const char *str, const struct qstr *name);
fs/hfsplus/super.c
434
struct qstr str;
fs/hfsplus/super.c
566
str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
fs/hfsplus/super.c
567
str.name = HFSP_HIDDENDIR_NAME;
fs/hfsplus/super.c
571
err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
fs/hfsplus/super.c
606
&str, sbi->hidden_dir);
fs/hfsplus/super.c
613
root, &str);
fs/hfsplus/super.c
622
root, &str);
fs/hfsplus/unicode.c
437
int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str)
fs/hfsplus/unicode.c
451
astr = str->name;
fs/hfsplus/unicode.c
452
len = str->len;
fs/hfsplus/unicode.c
479
str->hash = end_name_hash(hash);
fs/hfsplus/unicode.c
491
unsigned int len, const char *str, const struct qstr *name)
fs/hfsplus/unicode.c
504
astr1 = str;
fs/hfsplus/unicode_test.c
1175
struct qstr str;
fs/hfsplus/unicode_test.c
1191
create_qstr(&str, mock_env->buf);
fs/hfsplus/unicode_test.c
1192
result = hfsplus_hash_dentry(&test_dentry, &str);
fs/hfsplus/unicode_test.c
1195
KUNIT_EXPECT_NE(test, 0, str.hash);
fs/hfsplus/unicode_test.c
1198
create_qstr(&str, "!@#$%^&*()_+-=[]{}|;':\",./<>?");
fs/hfsplus/unicode_test.c
1199
result = hfsplus_hash_dentry(&test_dentry, &str);
fs/hfsplus/unicode_test.c
1202
KUNIT_EXPECT_NE(test, 0, str.hash);
fs/hfsplus/unicode_test.c
1205
str.name = "file\0hidden";
fs/hfsplus/unicode_test.c
1206
str.len = 11; /* Include the null and text after it */
fs/hfsplus/unicode_test.c
1207
str.hash = 0;
fs/hfsplus/unicode_test.c
1208
result = hfsplus_hash_dentry(&test_dentry, &str);
fs/hfsplus/unicode_test.c
1211
KUNIT_EXPECT_NE(test, 0, str.hash);
fs/hfsplus/unicode_test.c
944
static void create_qstr(struct qstr *str, const char *name)
fs/hfsplus/unicode_test.c
946
str->name = name;
fs/hfsplus/unicode_test.c
947
str->len = strlen(name);
fs/hfsplus/unicode_test.c
948
str->hash = 0; /* Will be set by hash function */
fs/hpfs/dentry.c
39
unsigned int len, const char *str, const struct qstr *name)
fs/hpfs/dentry.c
44
hpfs_adjust_length(str, &al);
fs/hpfs/dentry.c
54
if (hpfs_compare_names(dentry->d_sb, str, al, name->name, bl, 0))
fs/inode.c
2569
static int __init set_ihash_entries(char *str)
fs/inode.c
2571
return kstrtoul(str, 0, &ihash_entries) == 0;
fs/iomap/swapfile.c
77
static int iomap_swapfile_fail(struct iomap_swapfile_info *isi, const char *str)
fs/iomap/swapfile.c
84
pr_err("swapon: file %s %s\n", IS_ERR(p) ? "<unknown>" : p, str);
fs/isofs/inode.c
203
unsigned int len, const char *str,
fs/isofs/inode.c
214
while (blen && str[blen-1] == '.')
fs/isofs/inode.c
219
if (strncasecmp(name->name, str, alen) == 0)
fs/isofs/inode.c
222
if (strncmp(name->name, str, alen) == 0)
fs/isofs/inode.c
237
unsigned int len, const char *str, const struct qstr *name)
fs/isofs/inode.c
239
return isofs_dentry_cmp_common(len, str, name, 0, 1);
fs/isofs/inode.c
278
unsigned int len, const char *str, const struct qstr *name)
fs/isofs/inode.c
280
return isofs_dentry_cmp_common(len, str, name, 1, 0);
fs/isofs/inode.c
285
unsigned int len, const char *str, const struct qstr *name)
fs/isofs/inode.c
287
return isofs_dentry_cmp_common(len, str, name, 1, 1);
fs/isofs/inode.c
41
unsigned int len, const char *str, const struct qstr *name);
fs/isofs/inode.c
47
unsigned int len, const char *str, const struct qstr *name);
fs/isofs/inode.c
49
unsigned int len, const char *str, const struct qstr *name);
fs/jfs/namei.c
1568
unsigned int len, const char *str, const struct qstr *name)
fs/jfs/namei.c
1575
if (tolower(str[i]) != tolower(name->name[i]))
fs/libfs.c
1806
const char *str, const struct qstr *name)
fs/libfs.c
1822
if (len == name->len && !memcmp(str, name->name, len))
fs/libfs.c
1831
qstr.name = str;
fs/libfs.c
1859
int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str)
fs/libfs.c
1869
ret = utf8_casefold_hash(um, dentry, str);
fs/namespace.c
50
static int __init set_mhash_entries(char *str)
fs/namespace.c
52
return kstrtoul(str, 0, &mhash_entries) == 0;
fs/namespace.c
5607
char __user *str = ((char __user *)s->buf) + sizeof(*sm);
fs/namespace.c
5610
if (seq->count && copy_to_user(str, seq->buf, seq->count))
fs/namespace.c
57
static int __init set_mphash_entries(char *str)
fs/namespace.c
59
return kstrtoul(str, 0, &mphash_entries) == 0;
fs/namespace.c
64
static int __init initramfs_options_setup(char *str)
fs/namespace.c
66
initramfs_options = str;
fs/nfs/callback_xdr.c
585
static __be32 encode_string(struct xdr_stream *xdr, unsigned int len, const char *str)
fs/nfs/callback_xdr.c
587
if (unlikely(xdr_stream_encode_opaque(xdr, str, len) < 0))
fs/nfs/callback_xdr.c
75
const char **str, size_t maxlen)
fs/nfs/callback_xdr.c
79
err = xdr_stream_decode_opaque_inline(xdr, (void **)str, maxlen);
fs/nfs/nfs4proc.c
6426
char *str;
fs/nfs/nfs4proc.c
6451
str = kmalloc(len, GFP_KERNEL);
fs/nfs/nfs4proc.c
6452
if (!str)
fs/nfs/nfs4proc.c
6457
scnprintf(str, len, "Linux NFSv4.0 %s/%s/%s",
fs/nfs/nfs4proc.c
6462
scnprintf(str, len, "Linux NFSv4.0 %s/%s",
fs/nfs/nfs4proc.c
6468
clp->cl_owner_id = str;
fs/nfs/nfs4proc.c
6478
char *str;
fs/nfs/nfs4proc.c
6498
str = kmalloc(len, GFP_KERNEL);
fs/nfs/nfs4proc.c
6499
if (!str)
fs/nfs/nfs4proc.c
6503
scnprintf(str, len, "Linux NFSv%u.%u %s/%s",
fs/nfs/nfs4proc.c
6507
scnprintf(str, len, "Linux NFSv%u.%u %s",
fs/nfs/nfs4proc.c
6510
clp->cl_owner_id = str;
fs/nfs/nfs4xdr.c
3300
char *str;
fs/nfs/nfs4xdr.c
3305
return decode_opaque_inline(xdr, &strlen, &str);
fs/nfs/nfs4xdr.c
978
static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str)
fs/nfs/nfs4xdr.c
980
WARN_ON_ONCE(xdr_stream_encode_opaque(xdr, str, len) < 0);
fs/nfs/super.c
314
const char *str;
fs/nfs/super.c
336
return sec_flavours[i].str;
fs/nfs/super.c
437
const char *str;
fs/nfs/super.c
480
seq_puts(m, nfs_infop->str);
fs/nfsd/nfs4xdr.c
101
if (isdotent(str, len))
fs/nfsd/nfs4xdr.c
104
if (str[i] == '/')
fs/nfsd/nfs4xdr.c
2770
char *str, *end, *next;
fs/nfsd/nfs4xdr.c
2779
end = str = components;
fs/nfsd/nfs4xdr.c
2784
if (*str == esc_enter) {
fs/nfsd/nfs4xdr.c
2789
str++;
fs/nfsd/nfs4xdr.c
2798
if (end > str) {
fs/nfsd/nfs4xdr.c
2799
if (xdr_stream_encode_opaque(xdr, str, end - str) < 0)
fs/nfsd/nfs4xdr.c
2807
str = end;
fs/nfsd/nfs4xdr.c
93
check_filename(char *str, int len)
fs/ntfs3/namei.c
439
const char *str, const struct qstr *name)
fs/ntfs3/namei.c
443
const char *n1 = str;
fs/ntfs3/namei.c
474
ret = ntfs_nls_to_utf16(sbi, str, len1, uni1, NTFS_NAME_LEN,
fs/overlayfs/params.c
210
static ssize_t ovl_parse_param_split_lowerdirs(char *str)
fs/overlayfs/params.c
215
for (s = d = str;; s++, d++) {
fs/overlayfs/readdir.c
73
static int ovl_casefold(struct ovl_readdir_data *rdd, const char *str, int len,
fs/overlayfs/readdir.c
76
const struct qstr qstr = { .name = str, .len = len };
fs/overlayfs/readdir.c
81
name_is_dot_dotdot(str, len))
fs/proc/base.c
2166
const char *str = dentry->d_name.name;
fs/proc/base.c
2170
if (str[0] == '0' && str[1] != '-')
fs/proc/base.c
2172
len = _parse_integer(str, 16, &sval);
fs/proc/base.c
2177
str += len;
fs/proc/base.c
2179
if (*str != '-')
fs/proc/base.c
2181
str++;
fs/proc/base.c
2183
if (str[0] == '0' && str[1])
fs/proc/base.c
2185
len = _parse_integer(str, 16, &eval);
fs/proc/base.c
2190
str += len;
fs/proc/base.c
2192
if (*str != '\0')
fs/proc/proc_sysctl.c
915
unsigned int len, const char *str, const struct qstr *name)
fs/proc/proc_sysctl.c
922
if (memcmp(name->name, str, len))
fs/proc/task_mmu.c
1326
#define SEQ_PUT_DEC(str, val) \
fs/proc/task_mmu.c
1327
seq_put_decimal_ull_width(m, str, (val) >> 10, 8)
fs/proc/task_mmu.c
35
#define SEQ_PUT_DEC(str, val) \
fs/proc/task_mmu.c
36
seq_put_decimal_ull_width(m, str, (val) << (PAGE_SHIFT-10), 8)
fs/proc_namespace.c
42
const char *str;
fs/proc_namespace.c
58
seq_puts(m, fs_infop->str);
fs/proc_namespace.c
80
seq_puts(m, fs_infop->str);
fs/pstore/ram_core.c
256
char *str, size_t len)
fs/pstore/ram_core.c
264
ret = snprintf(str, len, ""
fs/pstore/ram_core.c
268
ret = snprintf(str, len, "\nECC: No errors detected\n");
fs/pstore/ram_internal.h
98
char *str, size_t len);
fs/romfs/internal.h
43
const char *str, size_t size);
fs/romfs/storage.c
164
const char *str, size_t size)
fs/romfs/storage.c
178
matched = (memcmp(bh->b_data + offset, str, segment) == 0);
fs/romfs/storage.c
182
str += segment;
fs/romfs/storage.c
266
const char *str, size_t size)
fs/romfs/storage.c
280
return romfs_mtd_strcmp(sb, pos, str, size);
fs/romfs/storage.c
284
return romfs_blk_strcmp(sb, pos, str, size);
fs/romfs/storage.c
67
const char *str, size_t size)
fs/romfs/storage.c
83
if (memcmp(buf, str, len) != 0)
fs/romfs/storage.c
88
str += len;
fs/smb/client/dir.c
916
unsigned int len, const char *str, const struct qstr *name)
fs/smb/client/dir.c
933
l1 = codepage->char2uni(&str[i], len - i, &c1);
fs/smb/client/dir.c
941
if (str[i] != name->name[i])
fs/smb/client/inode.c
1034
static __u64 simple_hashstr(const char *str)
fs/smb/client/inode.c
1039
while (*str)
fs/smb/client/inode.c
1040
hash = (hash + (__u64) *str++) * hash_mult;
fs/smb/client/readdir.c
448
static int cifs_unicode_bytelen(const char *str)
fs/smb/client/readdir.c
451
const __le16 *ustr = (const __le16 *)str;
fs/smb/server/misc.c
30
int match_pattern(const char *str, size_t len, const char *pattern)
fs/smb/server/misc.c
32
const char *s = str;
fs/smb/server/misc.c
45
str = s;
fs/smb/server/misc.c
58
str++;
fs/smb/server/misc.c
59
s = str;
fs/smb/server/misc.h
17
int match_pattern(const char *str, size_t len, const char *pattern);
fs/smb/server/smb_common.c
125
int ksmbd_lookup_protocol_idx(char *str)
fs/smb/server/smb_common.c
128
int len = strlen(str);
fs/smb/server/smb_common.c
131
if (!strncmp(str, smb1_protos[offt].prot, len)) {
fs/smb/server/smb_common.c
141
if (!strncmp(str, smb2_protos[offt].prot, len)) {
fs/smb/server/smb_common.h
171
int ksmbd_lookup_protocol_idx(char *str);
fs/squashfs/super.c
118
static int squashfs_parse_param_threads(const char *str, struct squashfs_mount_opts *opts)
fs/squashfs/super.c
120
int ret = squashfs_parse_param_threads_str(str, opts);
fs/squashfs/super.c
124
return squashfs_parse_param_threads_num(str, opts);
fs/squashfs/super.c
72
static int squashfs_parse_param_threads_str(const char *str, struct squashfs_mount_opts *opts)
fs/squashfs/super.c
75
if (strcmp(str, "single") == 0) {
fs/squashfs/super.c
79
if (strcmp(str, "multi") == 0) {
fs/squashfs/super.c
83
if (strcmp(str, "percpu") == 0) {
fs/squashfs/super.c
91
static int squashfs_parse_param_threads_num(const char *str, struct squashfs_mount_opts *opts)
fs/squashfs/super.c
97
ret = kstrtoul(str, 0, &num);
fs/ubifs/key.h
58
const signed char *str = (const signed char *)s;
fs/ubifs/key.h
61
a += *str << 4;
fs/ubifs/key.h
62
a += *str >> 4;
fs/ubifs/key.h
64
str++;
fs/ubifs/key.h
75
static inline uint32_t key_test_hash(const char *str, int len)
fs/ubifs/key.h
80
memcpy(&a, str, len);
fs/ubifs/ubifs.h
1358
uint32_t (*key_hash)(const char *str, int len);
fs/unicode/mkutf8data.c
262
static int utf8encode(char *str, unsigned int val)
fs/unicode/mkutf8data.c
2662
static utf8leaf_t *utf8hangul(const char *str, unsigned char *hangul)
fs/unicode/mkutf8data.c
267
str[0] = val;
fs/unicode/mkutf8data.c
2671
si = utf8decode(str) - SB;
fs/unicode/mkutf8data.c
270
str[1] = val & UTF8_V_MASK;
fs/unicode/mkutf8data.c
271
str[1] |= UTF8_N_BITS;
fs/unicode/mkutf8data.c
273
str[0] = val;
fs/unicode/mkutf8data.c
274
str[0] |= UTF8_2_BITS;
fs/unicode/mkutf8data.c
277
str[2] = val & UTF8_V_MASK;
fs/unicode/mkutf8data.c
278
str[2] |= UTF8_N_BITS;
fs/unicode/mkutf8data.c
280
str[1] = val & UTF8_V_MASK;
fs/unicode/mkutf8data.c
281
str[1] |= UTF8_N_BITS;
fs/unicode/mkutf8data.c
283
str[0] = val;
fs/unicode/mkutf8data.c
284
str[0] |= UTF8_3_BITS;
fs/unicode/mkutf8data.c
287
str[3] = val & UTF8_V_MASK;
fs/unicode/mkutf8data.c
288
str[3] |= UTF8_N_BITS;
fs/unicode/mkutf8data.c
290
str[2] = val & UTF8_V_MASK;
fs/unicode/mkutf8data.c
291
str[2] |= UTF8_N_BITS;
fs/unicode/mkutf8data.c
293
str[1] = val & UTF8_V_MASK;
fs/unicode/mkutf8data.c
294
str[1] |= UTF8_N_BITS;
fs/unicode/mkutf8data.c
296
str[0] = val;
fs/unicode/mkutf8data.c
297
str[0] |= UTF8_4_BITS;
fs/unicode/mkutf8data.c
306
static unsigned int utf8decode(const char *str)
fs/unicode/mkutf8data.c
308
const unsigned char *s = (const unsigned char*)str;
fs/unicode/tests/utf8_kunit.c
102
.str = {0xea, 0xad, 0xb0, 0x00},
fs/unicode/tests/utf8_kunit.c
107
.str = {0xe1, 0x8f, 0xb8, 0x00},
fs/unicode/tests/utf8_kunit.c
113
.str = {0xf0, 0x90, 0xb2, 0x83, 0x00},
fs/unicode/tests/utf8_kunit.c
120
.str = {0xf0, 0x90, 0x92, 0xb5, 0x00},
fs/unicode/tests/utf8_kunit.c
126
.str = {0xea, 0x9e, 0xae, 0x00},
fs/unicode/tests/utf8_kunit.c
133
.str = {0xe1, 0xb2, 0x90, 0x00},
fs/unicode/tests/utf8_kunit.c
15
unsigned char str[10];
fs/unicode/tests/utf8_kunit.c
157
int len = strlen(nfdi_test_data[i].str);
fs/unicode/tests/utf8_kunit.c
163
KUNIT_EXPECT_EQ(test, utf8len(um, UTF8_NFDI, nfdi_test_data[i].str), nlen);
fs/unicode/tests/utf8_kunit.c
164
KUNIT_EXPECT_EQ(test, utf8nlen(um, UTF8_NFDI, nfdi_test_data[i].str, len),
fs/unicode/tests/utf8_kunit.c
168
ret = utf8cursor(&u8c, um, UTF8_NFDI, nfdi_test_data[i].str);
fs/unicode/tests/utf8_kunit.c
189
int len = strlen(nfdicf_test_data[i].str);
fs/unicode/tests/utf8_kunit.c
195
KUNIT_EXPECT_EQ(test, utf8len(um, UTF8_NFDICF, nfdicf_test_data[i].str),
fs/unicode/tests/utf8_kunit.c
197
KUNIT_EXPECT_EQ(test, utf8nlen(um, UTF8_NFDICF, nfdicf_test_data[i].str, len),
fs/unicode/tests/utf8_kunit.c
200
ret = utf8cursor(&u8c, um, UTF8_NFDICF, nfdicf_test_data[i].str);
fs/unicode/tests/utf8_kunit.c
21
.str = "aBba",
fs/unicode/tests/utf8_kunit.c
220
const struct qstr s1 = {.name = nfdi_test_data[i].str,
fs/unicode/tests/utf8_kunit.c
221
.len = sizeof(nfdi_test_data[i].str)};
fs/unicode/tests/utf8_kunit.c
231
const struct qstr s1 = {.name = nfdicf_test_data[i].str,
fs/unicode/tests/utf8_kunit.c
232
.len = sizeof(nfdicf_test_data[i].str)};
fs/unicode/tests/utf8_kunit.c
29
.str = {0xc2, 0xbc, 0x00},
fs/unicode/tests/utf8_kunit.c
35
.str = {0xc3, 0xa4, 0x00},
fs/unicode/tests/utf8_kunit.c
41
.str = {0xC7, 0x89, 0x00},
fs/unicode/tests/utf8_kunit.c
46
.str = {0xCE, 0x87, 0x00},
fs/unicode/tests/utf8_kunit.c
53
.str = {0x41, 0xcc, 0x81, 0xcc, 0xa8, 0x0},
fs/unicode/tests/utf8_kunit.c
60
.str = {0xc3, 0xa4, 0xCC, 0xA8, 0x00},
fs/unicode/tests/utf8_kunit.c
69
unsigned char str[30];
fs/unicode/tests/utf8_kunit.c
75
.str = {0x41, 0x42, 0x62, 0x61, 0x00},
fs/unicode/tests/utf8_kunit.c
80
.str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0.1",
fs/unicode/tests/utf8_kunit.c
86
.str = {0xc3, 0x9f, 0x00},
fs/unicode/tests/utf8_kunit.c
92
.str = {0xC3, 0x85, 0x00},
fs/unicode/utf8-core.c
105
if (utf8ncursor(&cur, um, UTF8_NFDICF, str->name, str->len) < 0)
fs/unicode/utf8-core.c
12
int utf8_validate(const struct unicode_map *um, const struct qstr *str)
fs/unicode/utf8-core.c
122
struct qstr *str)
fs/unicode/utf8-core.c
128
if (utf8ncursor(&cur, um, UTF8_NFDICF, str->name, str->len) < 0)
fs/unicode/utf8-core.c
136
str->hash = end_name_hash(hash);
fs/unicode/utf8-core.c
14
if (utf8nlen(um, UTF8_NFDI, str->name, str->len) < 0)
fs/unicode/utf8-core.c
141
int utf8_normalize(const struct unicode_map *um, const struct qstr *str,
fs/unicode/utf8-core.c
147
if (utf8ncursor(&cur, um, UTF8_NFDI, str->name, str->len) < 0)
fs/unicode/utf8-core.c
99
int utf8_casefold(const struct unicode_map *um, const struct qstr *str,
fs/unicode/utf8-norm.c
102
utf8encode3(char *str, unsigned int val)
fs/unicode/utf8-norm.c
104
str[2] = (val & 0x3F) | 0x80;
fs/unicode/utf8-norm.c
106
str[1] = (val & 0x3F) | 0x80;
fs/unicode/utf8-norm.c
108
str[0] = val | 0xE0;
fs/unicode/utf8-norm.c
258
utf8hangul(const char *str, unsigned char *hangul)
fs/unicode/utf8-norm.c
267
si = utf8decode3(str) - SB;
fs/unicode/utf8-norm.c
85
utf8decode3(const char *str)
fs/unicode/utf8-norm.c
89
uc = *str++ & 0x0F;
fs/unicode/utf8-norm.c
91
uc |= *str++ & 0x3F;
fs/unicode/utf8-norm.c
93
uc |= *str++ & 0x3F;
fs/xfs/xfs_super.c
183
char *str;
fs/xfs/xfs_super.c
212
seq_puts(m, xfs_infop->str);
include/drm/drm_edid.h
172
struct detailed_data_string str;
include/drm/drm_edid.h
96
u8 str[13];
include/drm/drm_print.h
177
void (*puts)(struct drm_printer *p, const char *str);
include/drm/drm_print.h
189
void __drm_puts_coredump(struct drm_printer *p, const char *str);
include/drm/drm_print.h
191
void __drm_puts_seq_file(struct drm_printer *p, const char *str);
include/drm/drm_print.h
199
void drm_puts(struct drm_printer *p, const char *str);
include/kunit/test.h
558
static inline char *kunit_kstrdup(struct kunit *test, const char *str, gfp_t gfp)
include/kunit/test.h
563
if (!str)
include/kunit/test.h
566
len = strlen(str) + 1;
include/kunit/test.h
569
memcpy(buf, str, len);
include/kunit/test.h
584
const char *kunit_kstrdup_const(struct kunit *test, const char *str, gfp_t gfp);
include/linux/acpi.h
442
extern void acpi_osi_setup(char *str);
include/linux/bpf.h
1635
char str[];
include/linux/ceph/ceph_fs.h
211
char str[];
include/linux/ceph/libceph.h
290
extern int ceph_parse_fsid(const char *str, struct ceph_fsid *fsid);
include/linux/ceph/osdmap.h
218
char *ceph_osdmap_state_str(char *str, int len, u32 state);
include/linux/ceph/string_table.h
17
char str[];
include/linux/ceph/string_table.h
21
extern struct ceph_string *ceph_find_or_create_string(const char *str,
include/linux/ceph/string_table.h
25
static inline struct ceph_string *ceph_get_string(struct ceph_string *str)
include/linux/ceph/string_table.h
27
kref_get(&str->kref);
include/linux/ceph/string_table.h
28
return str;
include/linux/ceph/string_table.h
31
static inline void ceph_put_string(struct ceph_string *str)
include/linux/ceph/string_table.h
33
if (!str)
include/linux/ceph/string_table.h
35
kref_put(&str->kref, ceph_release_string);
include/linux/ceph/string_table.h
39
const char* str, size_t len)
include/linux/ceph/string_table.h
46
return strncmp(cs->str, str, len);
include/linux/device/class.h
202
char *str;
include/linux/dmi.h
108
extern int dmi_name_in_vendors(const char *str);
include/linux/dmi.h
109
extern int dmi_name_in_serial(const char *str);
include/linux/dmi.h
113
extern bool dmi_match(enum dmi_field f, const char *str);
include/linux/dmi.h
142
static inline bool dmi_match(enum dmi_field f, const char *str)
include/linux/ethtool.h
1483
extern void ethtool_puts(u8 **data, const char *str);
include/linux/ethtool.h
1490
#define ethtool_cpy(data, str) do { \
include/linux/ethtool.h
1491
BUILD_BUG_ON(sizeof(str) != ETH_GSTRING_LEN); \
include/linux/ethtool.h
1492
memcpy(*(data), str, ETH_GSTRING_LEN); \
include/linux/ethtool.h
249
enum ethtool_link_medium ethtool_str_to_medium(const char *str);
include/linux/fault-inject.h
54
int setup_fault_attr(struct fault_attr *attr, char *str);
include/linux/fault-inject.h
65
static inline int setup_fault_attr(struct fault_attr *attr, char *str)
include/linux/fs.h
3310
int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str);
include/linux/fs.h
3312
const char *str, const struct qstr *name);
include/linux/ftrace.h
44
char *arch_ftrace_match_adjust(char *str, const char *search);
include/linux/glob.h
8
bool __pure glob_match(char const *pat, char const *str);
include/linux/hp_sdc.h
165
#define HP_SDC_XTD_REV_STRINGS(val, str) \
include/linux/hp_sdc.h
167
case 0x1: str = "1820-3712"; break; \
include/linux/hp_sdc.h
168
case 0x2: str = "1820-4379"; break; \
include/linux/hp_sdc.h
169
case 0x3: str = "1820-4784"; break; \
include/linux/hp_sdc.h
170
default: str = "unknown"; \
include/linux/hwmon.h
424
u32 attr, int channel, const char **str);
include/linux/i8042.h
70
typedef bool (*i8042_filter_t)(unsigned char data, unsigned char str, struct serio *serio,
include/linux/iio/iio.h
1070
int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer,
include/linux/inet.h
52
extern __be32 in_aton(const char *str);
include/linux/init.h
319
const char *str;
include/linux/init.h
332
#define __setup_param(str, unique_id, fn, early) \
include/linux/init.h
334
__aligned(1) = str; \
include/linux/init.h
345
#define __setup(str, fn) \
include/linux/init.h
346
__setup_param(str, fn, fn, 0)
include/linux/init.h
354
#define early_param(str, fn) \
include/linux/init.h
355
__setup_param(str, fn, fn, 1)
include/linux/init.h
382
#define __setup_param(str, unique_id, fn) /* nothing */
include/linux/init.h
383
#define __setup(str, func) /* nothing */
include/linux/irq.h
707
extern int noirqdebug_setup(char *str);
include/linux/kbuild.h
10
#define OFFSET(sym, str, mem) \
include/linux/kbuild.h
11
DEFINE(sym, offsetof(struct str, mem))
include/linux/kdebug.h
11
const char *str;
include/linux/kdebug.h
20
int notify_die(enum die_val val, const char *str,
include/linux/kernel_read_file.h
21
#define __fid_stringify(dummy, str) #str,
include/linux/memory_hotplug.h
129
extern int mhp_online_type_from_str(const char *str);
include/linux/mempolicy.h
164
extern int mpol_parse_str(char *str, struct mempolicy **mpol);
include/linux/mempolicy.h
284
static inline int mpol_parse_str(char *str, struct mempolicy **mpol)
include/linux/module_symbol.h
10
if (str[0] == 'L' && str[1] == '0')
include/linux/module_symbol.h
12
return str[0] == '$';
include/linux/module_symbol.h
6
static inline bool is_mapping_symbol(const char *str)
include/linux/module_symbol.h
8
if (str[0] == '.' && str[1] == 'L')
include/linux/moduleparam.h
390
.str = &__param_string_##name, perm, -1, 0);\
include/linux/moduleparam.h
91
const struct kparam_string *str;
include/linux/mtd/nand.h
199
#define NAND_ECCREQ(str, stp) { .strength = (str), .step_size = (stp) }
include/linux/netfilter/ipset/ip_set.h
101
char str[];
include/linux/nmi.h
106
extern void hardlockup_config_perf_event(const char *str);
include/linux/nmi.h
111
static inline void hardlockup_config_perf_event(const char *str) { }
include/linux/numa_memblks.h
37
int numa_emu_cmdline(char *str);
include/linux/numa_memblks.h
47
static inline int numa_emu_cmdline(char *str)
include/linux/of.h
1684
const char *prop_name, const char *str);
include/linux/of.h
1703
const char *prop_name, const char *str);
include/linux/of.h
394
extern ssize_t of_modalias(const struct device_node *np, char *str, ssize_t len);
include/linux/of.h
807
static inline ssize_t of_modalias(const struct device_node *np, char *str,
include/linux/of_device.h
26
extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len);
include/linux/of_device.h
55
char *str, ssize_t len)
include/linux/parport_pc.h
85
static inline void dump_parport_state (char *str, struct parport *p)
include/linux/parport_pc.h
95
printk (KERN_DEBUG "*** parport state (%s): ecr=[%s", str, ecr_modes[(ecr & 0xe0) >> 5]);
include/linux/parser.h
36
bool match_wildcard(const char *pattern, const char *str);
include/linux/pci.h
1206
char *pcibios_setup(char *str);
include/linux/profile.h
33
int profile_setup(char *str);
include/linux/property.h
404
const char *str[sizeof(u64) / sizeof(char *)];
include/linux/property.h
431
__PROPERTY_ENTRY_ARRAY_LEN(_name_, str, STRING, _val_, _len_)
include/linux/property.h
472
__PROPERTY_ENTRY_ELEMENT(_name_, str, STRING, _val_)
include/linux/ras.h
20
int __init parse_cec_param(char *str);
include/linux/security.h
278
#define __data_id_stringify(dummy, str) #str,
include/linux/seq_buf.h
176
extern int seq_buf_puts(struct seq_buf *s, const char *str);
include/linux/string.h
189
static inline __must_check char *strstrip(char *str)
include/linux/string.h
191
return strim(str);
include/linux/string.h
285
char *strreplace(char *str, char old, char new);
include/linux/string.h
313
extern char **argv_split(gfp_t gfp, const char *str, int *argcp);
include/linux/string.h
319
extern int get_option(char **str, int *pint);
include/linux/string.h
320
extern char *get_options(const char *str, int nints, int *ints);
include/linux/string.h
322
extern bool parse_option_str(const char *str, const char *option);
include/linux/string.h
553
static __always_inline size_t str_has_prefix(const char *str, const char *prefix)
include/linux/string.h
556
return strncmp(str, prefix, len) == 0 ? len : 0;
include/linux/string.h
567
static inline bool strstarts(const char *str, const char *prefix)
include/linux/string.h
569
return strncmp(str, prefix, strlen(prefix)) == 0;
include/linux/string.h
581
strends(const char *str, const char *suffix)
include/linux/string.h
583
unsigned int str_len = strlen(str), suffix_len = strlen(suffix);
include/linux/string.h
588
return !(strcmp(str + str_len - suffix_len, suffix));
include/linux/sunrpc/cache.h
251
extern void qword_add(char **bpp, int *lp, char *str);
include/linux/sunrpc/xdr.h
342
ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str,
include/linux/sys_info.h
21
unsigned long sys_info_parse_param(char *str);
include/linux/tnum.h
114
int tnum_strn(char *str, size_t size, struct tnum a);
include/linux/tnum.h
116
int tnum_sbin(char *str, size_t size, struct tnum a);
include/linux/trace.h
41
#define trace_array_puts(tr, str) \
include/linux/trace.h
43
str ? __trace_array_puts(tr, _THIS_IP_, str, strlen(str)) : -1; \
include/linux/trace.h
46
const char *str, int size);
include/linux/trace_printk.h
141
#define trace_puts(str) ({ \
include/linux/trace_printk.h
144
__builtin_constant_p(str) ? str : NULL; \
include/linux/trace_printk.h
146
if (__builtin_constant_p(str)) \
include/linux/trace_printk.h
149
__trace_puts(_THIS_IP_, str); \
include/linux/trace_printk.h
151
extern int __trace_bputs(unsigned long ip, const char *str);
include/linux/trace_printk.h
152
extern int __trace_puts(unsigned long ip, const char *str);
include/linux/trace_seq.h
109
extern void trace_seq_puts(struct trace_seq *s, const char *str);
include/linux/trace_seq.h
159
static inline void trace_seq_puts(struct trace_seq *s, const char *str)
include/linux/tracepoint.h
484
#define tracepoint_string(str) \
include/linux/tracepoint.h
486
static const char *___tp_str __tracepoint_string = str; \
include/linux/tracepoint.h
496
# define tracepoint_string(str) str
include/linux/unicode.h
58
int utf8_validate(const struct unicode_map *um, const struct qstr *str);
include/linux/unicode.h
69
int utf8_normalize(const struct unicode_map *um, const struct qstr *str,
include/linux/unicode.h
72
int utf8_casefold(const struct unicode_map *um, const struct qstr *str,
include/linux/unicode.h
76
struct qstr *str);
include/linux/usb/ch9.h
55
extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
include/linux/usb/composite.h
509
struct usb_string *str);
include/linux/wmi.h
65
ssize_t wmi_string_to_utf8s(const struct wmi_string *str, u8 *dst, size_t length);
include/linux/wmi.h
67
ssize_t wmi_string_from_utf8s(struct wmi_string *str, size_t max_chars, const u8 *src,
include/linux/zstd_lib.h
101
#define ZSTD_QUOTE(str) #str
include/linux/zstd_lib.h
102
#define ZSTD_EXPAND_AND_QUOTE(str) ZSTD_QUOTE(str)
include/net/bond_options.h
156
#define bond_opt_initstr(optval, str) __bond_opt_init(optval, str, ULLONG_MAX, NULL, 0)
include/net/cfg802154.h
548
struct wpan_phy *wpan_phy_find(const char *str);
include/net/netlink.h
1655
const char *str)
include/net/netlink.h
1657
return nla_put(skb, attrtype, strlen(str) + 1, str);
include/net/netlink.h
553
int nla_strcmp(const struct nlattr *nla, const char *str);
include/net/tcp.h
2606
static inline void tcp_warn_once(const struct sock *sk, bool cond, const char *str)
include/net/tcp.h
2610
str,
include/pcmcia/cistpl.h
128
char str[254];
include/pcmcia/cistpl.h
506
char str[244];
include/pcmcia/cistpl.h
87
char str[254];
include/rdma/ib_verbs.h
2421
void (*get_dev_fw_str)(struct ib_device *device, char *str);
include/rdma/ib_verbs.h
2994
void ib_get_device_fw_str(struct ib_device *device, char *str);
include/rdma/ib_verbs.h
884
const char *str;
include/rdma/restrack.h
160
const char *str);
include/sound/info.h
152
int snd_info_check_reserved_words(const char *str);
include/sound/info.h
190
static inline int snd_info_check_reserved_words(const char *str) { return 1; }
include/trace/events/amdxdna.h
16
TP_PROTO(const char *name, u64 number, const char *str),
include/trace/events/amdxdna.h
18
TP_ARGS(name, number, str),
include/trace/events/amdxdna.h
22
__string(str, str)),
include/trace/events/amdxdna.h
26
__assign_str(str);),
include/trace/events/amdxdna.h
29
__get_str(str))
include/trace/events/amdxdna.h
33
TP_PROTO(struct drm_sched_job *sched_job, const char *name, const char *str, u64 seq),
include/trace/events/amdxdna.h
35
TP_ARGS(sched_job, name, str, seq),
include/trace/events/amdxdna.h
38
__string(str, str)
include/trace/events/amdxdna.h
44
__assign_str(str);
include/trace/events/amdxdna.h
52
__get_str(str))
include/trace/stages/stage5_get_offsets.h
14
static inline const char *__string_src(const char *str)
include/trace/stages/stage5_get_offsets.h
16
if (!str)
include/trace/stages/stage5_get_offsets.h
18
return str;
include/uapi/drm/armada_drm.h
23
#define ARMADA_IOCTL(dir, name, str) \
include/uapi/drm/armada_drm.h
24
DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str)
include/uapi/linux/mount.h
189
char str[]; /* Variable size part containing strings */
include/uapi/linux/tipc_config.h
198
char str[TIPC_MAX_LINK_NAME]; /* link name */
include/xen/arm/hypercall.h
48
int HYPERVISOR_console_io(int cmd, int count, char *str);
include/xen/hvc-console.h
14
static inline void xen_raw_console_write(const char *str) { }
include/xen/hvc-console.h
9
void xen_raw_console_write(const char *str);
include/xen/xenbus.h
195
#define XENBUS_IS_ERR_READ(str) ({ \
include/xen/xenbus.h
196
if (!IS_ERR(str) && strlen(str) == 0) { \
include/xen/xenbus.h
197
kfree(str); \
include/xen/xenbus.h
198
str = ERR_PTR(-ERANGE); \
include/xen/xenbus.h
200
IS_ERR(str); \
init/calibrate.c
21
static int __init lpj_setup(char *str)
init/calibrate.c
23
return kstrtoul(str, 0, &preset_lpj) == 0;
init/do_mounts.c
100
static int __init root_data_setup(char *str)
init/do_mounts.c
102
root_mount_data = str;
init/do_mounts.c
107
static int __init fs_names_setup(char *str)
init/do_mounts.c
109
root_fs_names = str;
init/do_mounts.c
114
static int __init root_delay_setup(char *str)
init/do_mounts.c
116
if (kstrtouint(str, 0, &root_delay))
init/do_mounts.c
37
static int __init readonly(char *str)
init/do_mounts.c
39
if (*str)
init/do_mounts.c
45
static int __init readwrite(char *str)
init/do_mounts.c
47
if (*str)
init/do_mounts.c
64
static int __init rootwait_setup(char *str)
init/do_mounts.c
66
if (*str)
init/do_mounts.c
74
static int __init rootwait_timeout_setup(char *str)
init/do_mounts.c
78
if (kstrtoint(str, 0, &sec) || sec < 0) {
init/do_mounts_initrd.c
16
static int __init no_initrd(char *str)
init/do_mounts_rd.c
23
static int __init ramdisk_start_setup(char *str)
init/do_mounts_rd.c
26
return kstrtoint(str, 0, &rd_image_start) == 0;
init/initramfs.c
576
static int __init retain_initrd_param(char *str)
init/initramfs.c
578
if (*str)
init/initramfs.c
595
static int __init initramfs_async_setup(char *str)
init/initramfs.c
597
return kstrtobool(str, &initramfs_async) == 0;
init/main.c
1246
static int __init initcall_blacklist(char *str)
init/main.c
1253
str_entry = strsep(&str, ",");
init/main.c
1296
static int __init initcall_blacklist(char *str)
init/main.c
1526
static inline bool arch_parse_debug_rodata(char *str) { return false; }
init/main.c
1529
static int __init set_debug_rodata(char *str)
init/main.c
1531
if (arch_parse_debug_rodata(str))
init/main.c
1534
if (str && !strcmp(str, "on"))
init/main.c
1536
else if (str && !strcmp(str, "off"))
init/main.c
1539
pr_warn("Invalid option string for rodata: '%s'\n", str);
init/main.c
187
static int __init set_reset_devices(char *str)
init/main.c
206
int n = strlen(p->str);
init/main.c
207
if (parameqn(line, p->str, n)) {
init/main.c
217
p->str);
init/main.c
235
static int __init debug_kernel(char *str)
init/main.c
241
static int __init quiet_kernel(char *str)
init/main.c
250
static int __init loglevel(char *str)
init/main.c
259
if (get_option(&str, &newlevel)) {
init/main.c
411
static int __init warn_bootconfig(char *str)
init/main.c
488
static int __init warn_bootconfig(char *str)
init/main.c
606
static int __init init_setup(char *str)
init/main.c
610
execute_command = str;
init/main.c
623
static int __init rdinit_setup(char *str)
init/main.c
627
ramdisk_execute_command = str;
init/main.c
770
if (p->early && parameq(param, p->str)) {
ipc/ipc_sysctl.c
326
static int __init ipc_mni_extend(char *str)
kernel/audit.c
1425
char *str = data;
kernel/audit.c
1436
str[data_len - 1] = '\0';
kernel/audit.c
1439
str);
kernel/audit.c
1442
if (str[data_len - 1] == '\0')
kernel/audit.c
1444
audit_log_n_untrustedstring(ab, str, data_len);
kernel/audit.c
1772
static int __init audit_enable(char *str)
kernel/audit.c
1774
if (!strcasecmp(str, "off") || !strcmp(str, "0"))
kernel/audit.c
1776
else if (!strcasecmp(str, "on") || !strcmp(str, "1"))
kernel/audit.c
1779
pr_err("audit: invalid 'audit' parameter value (%s)\n", str);
kernel/audit.c
1798
static int __init audit_backlog_limit_set(char *str)
kernel/audit.c
1803
if (kstrtouint(str, 0, &audit_backlog_limit_arg)) {
kernel/audit.c
1805
audit_backlog_limit, str);
kernel/audit.h
331
#define audit_make_tree(rule, str, op) -EINVAL
kernel/auditfilter.c
129
char *str;
kernel/auditfilter.c
140
str = kmalloc(len + 1, GFP_KERNEL);
kernel/auditfilter.c
141
if (unlikely(!str))
kernel/auditfilter.c
144
memcpy(str, *bufp, len);
kernel/auditfilter.c
145
str[len] = 0;
kernel/auditfilter.c
149
return str;
kernel/auditfilter.c
457
char *str;
kernel/auditfilter.c
524
str = audit_unpack_string(&bufp, &remain, f_val);
kernel/auditfilter.c
525
if (IS_ERR(str)) {
kernel/auditfilter.c
526
err = PTR_ERR(str);
kernel/auditfilter.c
530
f->lsm_str = str;
kernel/auditfilter.c
531
err = security_audit_rule_init(f->type, f->op, str,
kernel/auditfilter.c
538
str);
kernel/auditfilter.c
544
str = audit_unpack_string(&bufp, &remain, f_val);
kernel/auditfilter.c
545
if (IS_ERR(str)) {
kernel/auditfilter.c
546
err = PTR_ERR(str);
kernel/auditfilter.c
549
err = audit_to_watch(&entry->rule, str, f_val, f->op);
kernel/auditfilter.c
551
kfree(str);
kernel/auditfilter.c
557
str = audit_unpack_string(&bufp, &remain, f_val);
kernel/auditfilter.c
558
if (IS_ERR(str)) {
kernel/auditfilter.c
559
err = PTR_ERR(str);
kernel/auditfilter.c
562
err = audit_make_tree(&entry->rule, str, f->op);
kernel/auditfilter.c
563
kfree(str);
kernel/auditfilter.c
577
str = audit_unpack_string(&bufp, &remain, f_val);
kernel/auditfilter.c
578
if (IS_ERR(str)) {
kernel/auditfilter.c
579
err = PTR_ERR(str);
kernel/auditfilter.c
583
entry->rule.filterkey = str;
kernel/auditfilter.c
588
str = audit_unpack_string(&bufp, &remain, f_val);
kernel/auditfilter.c
589
if (IS_ERR(str)) {
kernel/auditfilter.c
590
err = PTR_ERR(str);
kernel/auditfilter.c
593
audit_mark = audit_alloc_mark(&entry->rule, str, f_val);
kernel/auditfilter.c
595
kfree(str);
kernel/auditfilter.c
624
static inline size_t audit_pack_string(void **bufp, const char *str)
kernel/auditfilter.c
626
size_t len = strlen(str);
kernel/auditfilter.c
628
memcpy(*bufp, str, len);
kernel/bpf/helpers.c
1049
BPF_CALL_5(bpf_snprintf, char *, str, u32, str_size, char *, fmt,
kernel/bpf/helpers.c
1069
err = bstr_printf(str, str_size, fmt, data.bin_args);
kernel/bpf/helpers.c
458
char str[64];
kernel/bpf/helpers.c
481
cur_len = min(cur_len, sizeof(str) - 1);
kernel/bpf/helpers.c
482
memcpy(str, cur_buf, cur_len);
kernel/bpf/helpers.c
483
str[cur_len] = '\0';
kernel/bpf/helpers.c
484
cur_buf = str;
kernel/bpf/helpers.c
496
consumed += cur_buf - str;
kernel/bpf/inode.c
638
const char *prefix, const char *str, int *value)
kernel/bpf/inode.c
657
if (strcasecmp(name + pfx_len, str) == 0) {
kernel/bpf/inode.c
870
char *p, *str;
kernel/bpf/inode.c
901
str = param->string;
kernel/bpf/inode.c
902
while ((p = strsep(&str, ":"))) {
kernel/bpf/log.c
443
static const char * const str[] = {
kernel/bpf/log.c
487
prefix, str[base_type(type)], postfix);
kernel/bpf/log.c
578
int tnum_strn(char *str, size_t size, struct tnum a)
kernel/bpf/log.c
583
return snprintf(str, size, "%llu", a.value);
kernel/bpf/log.c
585
return snprintf(str, size, "%#llx", a.value);
kernel/bpf/log.c
587
return snprintf(str, size, "(%#llx; %#llx)", a.value, a.mask);
kernel/bpf/preload/iterators/iterators.bpf.c
63
const char *str;
kernel/bpf/preload/iterators/iterators.bpf.c
67
str = btf->strings;
kernel/bpf/preload/iterators/iterators.bpf.c
73
return str + name_off;
kernel/bpf/rqspinlock.c
672
static void bpf_prog_report_rqspinlock_violation(const char *str, void *lock, bool irqsave)
kernel/bpf/rqspinlock.c
682
bpf_stream_printk(ss, "ERROR: %s for bpf_res_spin_lock%s\n", str, irqsave ? "_irqsave" : "");
kernel/bpf/stream.c
179
ret = copy_to_user(buf + pos, elem->str + cons_len,
kernel/bpf/stream.c
32
alloc_size = offsetof(struct bpf_stream_elem, str[len]);
kernel/bpf/stream.c
42
static int __bpf_stream_push_str(struct llist_head *log, const char *str, int len)
kernel/bpf/stream.c
54
memcpy(elem->str, str, len);
kernel/bpf/stream.c
78
static int bpf_stream_push_str(struct bpf_stream *stream, const char *str, int len)
kernel/bpf/stream.c
82
return ret ?: __bpf_stream_push_str(&stream->log, str, len);
kernel/bpf/tnum.c
218
int tnum_sbin(char *str, size_t size, struct tnum a)
kernel/bpf/tnum.c
225
str[n - 1] = 'x';
kernel/bpf/tnum.c
227
str[n - 1] = '1';
kernel/bpf/tnum.c
229
str[n - 1] = '0';
kernel/bpf/tnum.c
234
str[min(size - 1, (size_t)64)] = 0;
kernel/capability.c
25
static int __init file_caps_disable(char *str)
kernel/cgroup/cgroup-v1.c
1335
static int __init cgroup_no_v1(char *str)
kernel/cgroup/cgroup-v1.c
1341
while ((token = strsep(&str, ",")) != NULL) {
kernel/cgroup/cgroup-v1.c
1368
static int __init cgroup_v1_proc(char *str)
kernel/cgroup/cgroup-v1.c
1370
return (kstrtobool(str, &proc_show_all) == 0);
kernel/cgroup/cgroup.c
7179
static int __init cgroup_disable(char *str)
kernel/cgroup/cgroup.c
7185
while ((token = strsep(&str, ",")) != NULL) {
kernel/cgroup/cgroup.c
7214
static int __init enable_cgroup_debug(char *str)
kernel/cgroup/cgroup.c
7222
static int __init cgroup_favordynmods_setup(char *str)
kernel/cgroup/cgroup.c
7224
return (kstrtobool(str, &have_favordynmods) == 0);
kernel/cpu.c
656
static int __init smt_cmdline_disable(char *str)
kernel/cpu.c
658
cpu_smt_disable(str && !strcmp(str, "force"));
kernel/debug/debug_core.c
1219
static int __init opt_kgdb_wait(char *str)
kernel/debug/debug_core.c
139
static int __init opt_nokgdbroundup(char *str)
kernel/debug/debug_core.c
948
static int __init opt_kgdb_con(char *str)
kernel/debug/kdb/kdb_main.c
796
static void parse_grep(const char *str)
kernel/debug/kdb/kdb_main.c
799
char *cp = (char *)str, *cp2;
kernel/debug/kdb/kdb_private.h
113
extern char *kdb_strdup(const char *str, gfp_t type);
kernel/debug/kdb/kdb_private.h
114
extern char *kdb_strdup_dequote(const char *str, gfp_t type);
kernel/debug/kdb/kdb_support.c
245
char *kdb_strdup(const char *str, gfp_t type)
kernel/debug/kdb/kdb_support.c
247
size_t n = strlen(str) + 1;
kernel/debug/kdb/kdb_support.c
251
memcpy(s, str, n);
kernel/debug/kdb/kdb_support.c
261
char *kdb_strdup_dequote(const char *str, gfp_t type)
kernel/debug/kdb/kdb_support.c
263
size_t len = strlen(str);
kernel/debug/kdb/kdb_support.c
266
if (str[0] == '"' && len > 1 && str[len - 1] == '"') {
kernel/debug/kdb/kdb_support.c
268
str++;
kernel/debug/kdb/kdb_support.c
278
memcpy(s, str, len - 1);
kernel/delayacct.c
43
static int __init delayacct_setup_enable(char *str)
kernel/dma/debug.c
1610
static int __init dma_debug_driver_setup(char *str)
kernel/dma/debug.c
1614
for (i = 0; i < NAME_MAX_LEN - 1; ++i, ++str) {
kernel/dma/debug.c
1615
current_driver_name[i] = *str;
kernel/dma/debug.c
1616
if (*str == 0)
kernel/dma/debug.c
953
static __init int dma_debug_cmdline(char *str)
kernel/dma/debug.c
955
if (!str)
kernel/dma/debug.c
958
if (strncmp(str, "off", 3) == 0) {
kernel/dma/debug.c
966
static __init int dma_debug_entries_cmdline(char *str)
kernel/dma/debug.c
968
if (!str)
kernel/dma/debug.c
970
if (!get_option(&str, &nr_prealloc_entries))
kernel/dma/swiotlb.c
184
setup_io_tlb_npages(char *str)
kernel/dma/swiotlb.c
186
if (isdigit(*str)) {
kernel/dma/swiotlb.c
189
ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE);
kernel/dma/swiotlb.c
191
if (*str == ',')
kernel/dma/swiotlb.c
192
++str;
kernel/dma/swiotlb.c
193
if (isdigit(*str))
kernel/dma/swiotlb.c
194
swiotlb_adjust_nareas(simple_strtoul(str, &str, 0));
kernel/dma/swiotlb.c
195
if (*str == ',')
kernel/dma/swiotlb.c
196
++str;
kernel/dma/swiotlb.c
197
if (!strcmp(str, "force"))
kernel/dma/swiotlb.c
199
else if (!strcmp(str, "noforce"))
kernel/futex/core.c
89
static int __init setup_fail_futex(char *str)
kernel/futex/core.c
91
return setup_fault_attr(&fail_futex.attr, str);
kernel/gcov/fs.c
74
static int __init gcov_persist_setup(char *str)
kernel/gcov/fs.c
78
if (kstrtoul(str, 0, &val)) {
kernel/gcov/fs.c
79
pr_warn("invalid gcov_persist parameter '%s'\n", str);
kernel/irq/irqdesc.c
28
static int __init irq_affinity_setup(char *str)
kernel/irq/irqdesc.c
31
cpulist_parse(str, irq_default_affinity);
kernel/irq/spurious.c
384
int noirqdebug_setup(char *str)
kernel/irq/spurious.c
394
static int __init irqfixup_setup(char *str)
kernel/irq/spurious.c
408
static int __init irqpoll_setup(char *str)
kernel/locking/lockdep.c
668
const char *__get_key_name(const struct lockdep_subclass_key *key, char *str)
kernel/locking/lockdep.c
670
return kallsyms_lookup((unsigned long)key, NULL, NULL, NULL, str);
kernel/locking/lockdep.c
719
char str[KSYM_NAME_LEN];
kernel/locking/lockdep.c
724
name = __get_key_name(class->key, str);
kernel/locking/lockdep.c
753
char str[KSYM_NAME_LEN];
kernel/locking/lockdep.c
757
name = __get_key_name(lock->key->subkeys, str);
kernel/locking/lockdep_internals.h
135
char *str);
kernel/locking/lockdep_proc.c
487
char str[KSYM_NAME_LEN];
kernel/locking/lockdep_proc.c
490
key_name = __get_key_name(ckey, str);
kernel/locking/lockdep_proc.c
62
char str[KSYM_NAME_LEN];
kernel/locking/lockdep_proc.c
66
name = __get_key_name(class->key, str);
kernel/module/internal.h
87
unsigned int str;
kernel/module/kallsyms.c
116
Elf_Shdr *strsect = info->sechdrs + info->index.str;
kernel/module/kallsyms.c
152
strsect, info->index.str);
kernel/module/kallsyms.c
187
kallsyms->strtab = (void *)info->sechdrs[info->index.str].sh_addr;
kernel/module/main.c
2168
info->index.str = str_idx;
kernel/module/main.c
2313
Elf_Shdr *str_shdr = &info->sechdrs[info->index.str];
kernel/notifier.c
575
int notrace notify_die(enum die_val val, const char *str,
kernel/notifier.c
580
.str = str,
kernel/panic.c
311
static int __init panic_force_cpu_setup(char *str)
kernel/panic.c
315
if (!str)
kernel/panic.c
318
if (kstrtoint(str, 0, &cpu) || cpu < 0 || cpu >= nr_cpu_ids) {
kernel/panic.c
319
pr_warn("panic_force_cpu: invalid value '%s'\n", str);
kernel/params.c
515
const struct kparam_string *kps = kp->str;
kernel/params.c
530
const struct kparam_string *kps = kp->str;
kernel/power/hibernate.c
1430
static int __init resume_setup(char *str)
kernel/power/hibernate.c
1435
strscpy(resume_file, str);
kernel/power/hibernate.c
1439
static int __init resume_offset_setup(char *str)
kernel/power/hibernate.c
1446
if (sscanf(str, "%llu", &offset) == 1)
kernel/power/hibernate.c
1452
static int __init hibernate_setup(char *str)
kernel/power/hibernate.c
1454
if (!strncmp(str, "noresume", 8)) {
kernel/power/hibernate.c
1456
} else if (!strncmp(str, "nocompress", 10)) {
kernel/power/hibernate.c
1458
} else if (!strncmp(str, "no", 2)) {
kernel/power/hibernate.c
1462
&& !strncmp(str, "protect_image", 13)) {
kernel/power/hibernate.c
1468
static int __init noresume_setup(char *str)
kernel/power/hibernate.c
1474
static int __init resumewait_setup(char *str)
kernel/power/hibernate.c
1480
static int __init resumedelay_setup(char *str)
kernel/power/hibernate.c
1482
int rc = kstrtouint(str, 0, &resume_delay);
kernel/power/hibernate.c
1485
pr_warn("resumedelay: bad option string '%s'\n", str);
kernel/power/hibernate.c
1489
static int __init nohibernate_setup(char *str)
kernel/power/main.c
185
static int __init pm_async_setup(char *str)
kernel/power/main.c
187
if (!strcmp(str, "off"))
kernel/power/main.c
726
static int __init pm_debug_messages_setup(char *str)
kernel/power/suspend.c
200
static int __init mem_sleep_default_setup(char *str)
kernel/power/suspend.c
206
!strcmp(str, mem_sleep_labels[state])) {
kernel/power/swap.c
1703
static int __init hibernate_compression_threads_setup(char *str)
kernel/power/swap.c
1705
int rc = kstrtouint(str, 0, &hibernate_compression_threads);
kernel/power/wakelock.c
208
const char *str = buf;
kernel/power/wakelock.c
217
while (*str && !isspace(*str))
kernel/power/wakelock.c
218
str++;
kernel/power/wakelock.c
220
len = str - buf;
kernel/power/wakelock.c
224
if (*str && *str != '\n') {
kernel/power/wakelock.c
226
ret = kstrtou64(skip_spaces(str), 10, &timeout_ns);
kernel/printk/braille.c
12
int _braille_console_setup(char **str, char **brl_options)
kernel/printk/braille.c
16
len = str_has_prefix(*str, "brl,");
kernel/printk/braille.c
19
*str += len;
kernel/printk/braille.c
23
len = str_has_prefix(*str, "brl=");
kernel/printk/braille.c
25
*brl_options = *str + len;
kernel/printk/braille.c
26
*str = strchr(*brl_options, ',');
kernel/printk/braille.c
27
if (!*str) {
kernel/printk/braille.c
31
*((*str)++) = 0;
kernel/printk/braille.h
21
_braille_console_setup(char **str, char **brl_options);
kernel/printk/braille.h
37
_braille_console_setup(char **str, char **brl_options)
kernel/printk/printk.c
1058
static int __init log_buf_len_setup(char *str)
kernel/printk/printk.c
1062
if (!str)
kernel/printk/printk.c
1065
size = memparse(str, &str);
kernel/printk/printk.c
1274
static int __init ignore_loglevel_setup(char *str)
kernel/printk/printk.c
1297
static int __init boot_delay_setup(char *str)
kernel/printk/printk.c
1304
get_option(&str, &boot_delay);
kernel/printk/printk.c
144
static int __control_devkmsg(char *str)
kernel/printk/printk.c
148
if (!str)
kernel/printk/printk.c
151
len = str_has_prefix(str, "on");
kernel/printk/printk.c
157
len = str_has_prefix(str, "off");
kernel/printk/printk.c
163
len = str_has_prefix(str, "ratelimit");
kernel/printk/printk.c
172
static int __init control_devkmsg(char *str)
kernel/printk/printk.c
174
if (__control_devkmsg(str) < 0) {
kernel/printk/printk.c
175
pr_warn("printk.devkmsg: bad option string '%s'\n", str);
kernel/printk/printk.c
2410
static int __init debug_non_panic_cpus_setup(char *str)
kernel/printk/printk.c
2611
static int __init console_msg_format_setup(char *str)
kernel/printk/printk.c
2613
if (!strcmp(str, "syslog"))
kernel/printk/printk.c
2615
if (!strcmp(str, "default"))
kernel/printk/printk.c
2625
static int __init console_setup(char *str)
kernel/printk/printk.c
2641
if (str[0] == 0 || strcmp(str, "null") == 0) {
kernel/printk/printk.c
2646
if (_braille_console_setup(&str, &brl_options))
kernel/printk/printk.c
2650
if (strchr(str, ':'))
kernel/printk/printk.c
2658
if (ttyname && isdigit(str[0]))
kernel/printk/printk.c
2659
scnprintf(buf, sizeof(buf), "ttyS%s", str);
kernel/printk/printk.c
2661
strscpy(buf, str);
kernel/printk/printk.c
2663
options = strchr(str, ',');
kernel/printk/printk.c
2668
if (!strcmp(str, "ttya"))
kernel/printk/printk.c
2670
if (!strcmp(str, "ttyb"))
kernel/printk/printk.c
2757
static int __init console_suspend_disable(char *str)
kernel/printk/printk.c
3863
static int __init keep_bootcon_setup(char *str)
kernel/profile.c
50
int profile_setup(char *str)
kernel/profile.c
57
if (!strncmp(str, schedstr, strlen(schedstr))) {
kernel/profile.c
60
} else if (!strncmp(str, kvmstr, strlen(kvmstr))) {
kernel/profile.c
63
} else if (get_option(&str, &par)) {
kernel/profile.c
71
if (str[strlen(select)] == ',')
kernel/profile.c
72
str += strlen(select) + 1;
kernel/profile.c
73
if (get_option(&str, &par))
kernel/rcu/tree_nocb.h
59
static int __init rcu_nocb_setup(char *str)
kernel/rcu/tree_nocb.h
62
if (*str == '=') {
kernel/rcu/tree_nocb.h
63
if (cpulist_parse(++str, rcu_nocb_mask)) {
kernel/reboot.c
1055
static bool hw_protection_action_parse(const char *str,
kernel/reboot.c
1058
if (sysfs_streq(str, "shutdown"))
kernel/reboot.c
1060
else if (sysfs_streq(str, "reboot"))
kernel/reboot.c
1068
static int __init hw_protection_setup(char *str)
kernel/reboot.c
1070
hw_protection_action_parse(str, &hw_protection_action);
kernel/reboot.c
1097
static int __init reboot_setup(char *str)
kernel/reboot.c
1109
if (!strncmp(str, "panic_", 6)) {
kernel/reboot.c
1111
str += 6;
kernel/reboot.c
1116
switch (*str) {
kernel/reboot.c
1134
str += str[1] == 'm' && str[2] == 'p' ? 3 : 1;
kernel/reboot.c
1136
if (isdigit(str[0])) {
kernel/reboot.c
1137
int cpu = simple_strtoul(str, NULL, 0);
kernel/reboot.c
1160
reboot_type = *str;
kernel/reboot.c
1168
str = strchr(str, ',');
kernel/reboot.c
1169
if (str)
kernel/reboot.c
1170
str++;
kernel/resource.c
1792
static int __init reserve_setup(char *str)
kernel/resource.c
1802
if (get_option(&str, &io_start) != 2)
kernel/resource.c
1804
if (get_option(&str, &io_num) == 0)
kernel/resource.c
2152
static int __init strict_iomem(char *str)
kernel/resource.c
2154
if (strstr(str, "relaxed"))
kernel/resource.c
2156
if (strstr(str, "strict"))
kernel/rseq.c
103
if (kstrtobool(str, &on))
kernel/rseq.c
813
static int __init rseq_slice_cmdline(char *str)
kernel/rseq.c
817
if (kstrtobool(str, &on))
kernel/rseq.c
99
static int __init rseq_setup_debug(char *str)
kernel/sched/autogroup.c
223
static int __init setup_autogroup(char *str)
kernel/sched/core.c
10000
static int __init setup_rt_group_sched(char *str)
kernel/sched/core.c
10004
if (kstrtol(str, 0, &val) || val < 0 || val > 1) {
kernel/sched/core.c
131
static int __init setup_proxy_exec(char *str)
kernel/sched/core.c
135
if (*str && kstrtobool(str + 1, &proxy_enable)) {
kernel/sched/core.c
150
static int __init setup_proxy_exec(char *str)
kernel/sched/core.c
4524
static int __init setup_schedstats(char *str)
kernel/sched/core.c
4527
if (!str)
kernel/sched/core.c
4530
if (!strcmp(str, "enable")) {
kernel/sched/core.c
4533
} else if (!strcmp(str, "disable")) {
kernel/sched/core.c
5528
static int __init setup_resched_latency_warn_ms(char *str)
kernel/sched/core.c
5532
if ((kstrtol(str, 0, &val))) {
kernel/sched/core.c
7597
int sched_dynamic_mode(const char *str)
kernel/sched/core.c
7600
if (!strcmp(str, "none"))
kernel/sched/core.c
7603
if (!strcmp(str, "voluntary"))
kernel/sched/core.c
7607
if (!strcmp(str, "full"))
kernel/sched/core.c
7611
if (!strcmp(str, "lazy"))
kernel/sched/core.c
7702
static int __init setup_preempt_mode(char *str)
kernel/sched/core.c
7704
int mode = sched_dynamic_mode(str);
kernel/sched/core.c
7706
pr_warn("Dynamic Preempt: unsupported mode: %s\n", str);
kernel/sched/debug.c
678
SDM(str, 0444, name);
kernel/sched/fair.c
84
static int __init setup_sched_thermal_decay_shift(char *str)
kernel/sched/isolation.c
205
static int __init housekeeping_setup(char *str, unsigned long flags)
kernel/sched/isolation.c
220
if (cpulist_parse(str, non_housekeeping_mask) < 0) {
kernel/sched/isolation.c
280
"ignoring setting %s\n", str);
kernel/sched/isolation.c
304
static int __init housekeeping_nohz_full_setup(char *str)
kernel/sched/isolation.c
310
return housekeeping_setup(str, flags);
kernel/sched/isolation.c
314
static int __init housekeeping_isolcpus_setup(char *str)
kernel/sched/isolation.c
321
while (isalpha(*str)) {
kernel/sched/isolation.c
325
if (!strncmp(str, "nohz,", 5)) {
kernel/sched/isolation.c
326
str += 5;
kernel/sched/isolation.c
331
if (!strncmp(str, "domain,", 7)) {
kernel/sched/isolation.c
332
str += 7;
kernel/sched/isolation.c
337
if (!strncmp(str, "managed_irq,", 12)) {
kernel/sched/isolation.c
338
str += 12;
kernel/sched/isolation.c
347
for (par = str, len = 0; *str && *str != ','; str++, len++) {
kernel/sched/isolation.c
348
if (!isalpha(*str) && *str != '_')
kernel/sched/isolation.c
358
str++;
kernel/sched/isolation.c
365
return housekeeping_setup(str, flags);
kernel/sched/psi.c
154
static int __init setup_psi(char *str)
kernel/sched/psi.c
156
return kstrtobool(str, &psi_enable) == 0;
kernel/sched/sched.h
3770
extern int sched_dynamic_mode(const char *str);
kernel/sched/topology.c
1507
static int __init setup_relax_domain_level(char *str)
kernel/sched/topology.c
1509
if (kstrtoint(str, 0, &default_relax_domain_level))
kernel/sched/topology.c
1832
static void sched_numa_warn(const char *str)
kernel/sched/topology.c
1842
printk(KERN_WARNING "ERROR: %s\n\n", str);
kernel/sched/topology.c
24
static int __init sched_debug_setup(char *str)
kernel/signal.c
1253
static int __init setup_print_fatal_signals(char *str)
kernel/signal.c
1255
get_option (&str, &print_fatal_signals);
kernel/smp.c
153
static int __init csdlock_debug(char *str)
kernel/smp.c
158
ret = get_option(&str, &val);
kernel/smp.c
945
static int __init nosmp(char *str)
kernel/smp.c
956
static int __init nrcpus(char *str)
kernel/smp.c
960
if (get_option(&str, &nr_cpus) && nr_cpus > 0 && nr_cpus < nr_cpu_ids)
kernel/smp.c
968
static int __init maxcpus(char *str)
kernel/smp.c
970
get_option(&str, &setup_max_cpus);
kernel/time/clocksource.c
1501
static int __init boot_override_clocksource(char* str)
kernel/time/clocksource.c
1504
if (str)
kernel/time/clocksource.c
1505
strscpy(override_name, str);
kernel/time/clocksource.c
1519
static int __init boot_override_clock(char* str)
kernel/time/clocksource.c
1521
if (!strcmp(str, "pmtmr")) {
kernel/time/clocksource.c
1526
return boot_override_clocksource(str);
kernel/time/hrtimer.c
720
static int __init setup_hrtimer_hres(char *str)
kernel/time/hrtimer.c
722
return (kstrtobool(str, &hrtimer_hres_enabled) == 0);
kernel/time/ntp.c
1092
static int __init ntp_tick_adj_setup(char *str)
kernel/time/ntp.c
1094
int rc = kstrtos64(str, 0, &tk_ntp_data[TIMEKEEPER_CORE].ntp_tick_adj);
kernel/time/tick-sched.c
1589
static int __init skew_tick(char *str)
kernel/time/tick-sched.c
1591
get_option(&str, &sched_skew_tick);
kernel/time/tick-sched.c
703
static int __init setup_tick_nohz(char *str)
kernel/time/tick-sched.c
705
return (kstrtobool(str, &tick_nohz_enabled) == 0);
kernel/trace/blktrace.c
1965
const char *str;
kernel/trace/blktrace.c
1986
static int blk_trace_str2mask(const char *str)
kernel/trace/blktrace.c
1992
buf = kstrdup(str, GFP_KERNEL);
kernel/trace/blktrace.c
2006
if (strcasecmp(token, mask_maps[i].str) == 0) {
kernel/trace/blktrace.c
2029
(p == buf) ? "" : ",", mask_maps[i].str);
kernel/trace/bpf_trace.c
1006
BPF_CALL_5(bpf_snprintf_btf, char *, str, u32, str_size, struct btf_ptr *, ptr,
kernel/trace/bpf_trace.c
1017
return btf_type_snprintf_show(btf, btf_id, ptr->ptr, str, str_size,
kernel/trace/ftrace.c
4340
char str[KSYM_SYMBOL_LEN];
kernel/trace/ftrace.c
4344
ret = kallsyms_lookup(rec->ip, NULL, &offset, NULL, str);
kernel/trace/ftrace.c
4396
char str[KSYM_SYMBOL_LEN];
kernel/trace/ftrace.c
4400
ret = kallsyms_lookup(ip, NULL, &offset, &modname, str);
kernel/trace/ftrace.c
4403
snprintf(str, KSYM_SYMBOL_LEN, "%s_%ld",
kernel/trace/ftrace.c
4408
seq_puts(m, str);
kernel/trace/ftrace.c
4796
char * __weak arch_ftrace_match_adjust(char *str, const char *search)
kernel/trace/ftrace.c
4798
return str;
kernel/trace/ftrace.c
4801
static int ftrace_match(char *str, struct ftrace_glob *g)
kernel/trace/ftrace.c
4806
str = arch_ftrace_match_adjust(str, g->search);
kernel/trace/ftrace.c
4810
if (strcmp(str, g->search) == 0)
kernel/trace/ftrace.c
4814
if (strncmp(str, g->search, g->len) == 0)
kernel/trace/ftrace.c
4818
if (strstr(str, g->search))
kernel/trace/ftrace.c
4822
slen = strlen(str);
kernel/trace/ftrace.c
4824
memcmp(str + slen - g->len, g->search, g->len) == 0)
kernel/trace/ftrace.c
4828
if (glob_match(g->search, str))
kernel/trace/ftrace.c
4885
static int lookup_ip(unsigned long ip, char **modname, char *str)
kernel/trace/ftrace.c
4889
kallsyms_lookup(ip, NULL, &offset, modname, str);
kernel/trace/ftrace.c
4895
static int lookup_ip(unsigned long ip, char **modname, char *str)
kernel/trace/ftrace.c
4897
kallsyms_lookup(ip, NULL, NULL, modname, str);
kernel/trace/ftrace.c
4906
char str[KSYM_SYMBOL_LEN];
kernel/trace/ftrace.c
4909
if (lookup_ip(rec->ip, &modname, str)) {
kernel/trace/ftrace.c
4942
return ftrace_match(str, func_g);
kernel/trace/ftrace.c
539
char str[KSYM_SYMBOL_LEN];
kernel/trace/ftrace.c
5603
char str[KSYM_SYMBOL_LEN];
kernel/trace/ftrace.c
5666
NULL, str);
kernel/trace/ftrace.c
5667
if (!ftrace_match(str, &func_g))
kernel/trace/ftrace.c
576
snprintf(str, sizeof(str), " %s+%#lx", refsymbol, offset);
kernel/trace/ftrace.c
579
kallsyms_lookup(rec->ip, NULL, NULL, NULL, str);
kernel/trace/ftrace.c
581
seq_printf(m, " %-30.30s %10lu", str, rec->counter);
kernel/trace/ftrace.c
6841
static int __init set_ftrace_notrace(char *str)
kernel/trace/ftrace.c
6844
strscpy(ftrace_notrace_buf, str, FTRACE_FILTER_SIZE);
kernel/trace/ftrace.c
6849
static int __init set_ftrace_filter(char *str)
kernel/trace/ftrace.c
6852
strscpy(ftrace_filter_buf, str, FTRACE_FILTER_SIZE);
kernel/trace/ftrace.c
6862
static int __init set_graph_function(char *str)
kernel/trace/ftrace.c
6864
strscpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE);
kernel/trace/ftrace.c
6869
static int __init set_graph_notrace_function(char *str)
kernel/trace/ftrace.c
6871
strscpy(ftrace_graph_notrace_buf, str, FTRACE_FILTER_SIZE);
kernel/trace/ftrace.c
6876
static int __init set_graph_max_depth_function(char *str)
kernel/trace/ftrace.c
6878
if (!str || kstrtouint(str, 0, &fgraph_max_depth))
kernel/trace/ftrace.c
8038
char str[KSYM_SYMBOL_LEN];
kernel/trace/ftrace.c
8042
ret = kallsyms_lookup(rec->ip, &symsize, &offset, &modname, str);
kernel/trace/ftrace.c
8050
mod_func->name = kstrdup(str, GFP_KERNEL);
kernel/trace/ring_buffer.c
7564
char str[];
kernel/trace/ring_buffer.c
7608
memcpy(item->str, rb_string, size);
kernel/trace/ring_buffer.c
7790
if (memcmp(&item->str[0], rb_string, item->size) != 0) {
kernel/trace/ring_buffer.c
7792
pr_info("buffer had: %.*s\n", item->size, item->str);
kernel/trace/trace.c
10640
char *str;
kernel/trace/trace.c
10645
str = boot_instance_info;
kernel/trace/trace.c
10647
while ((curr_str = strsep(&str, "\t"))) {
kernel/trace/trace.c
1282
static int __init set_buf_size(char *str)
kernel/trace/trace.c
1286
if (!str)
kernel/trace/trace.c
1288
buf_size = memparse(str, &str);
kernel/trace/trace.c
1299
static int __init set_tracing_thresh(char *str)
kernel/trace/trace.c
1304
if (!str)
kernel/trace/trace.c
1306
ret = kstrtoul(str, 0, &threshold);
kernel/trace/trace.c
231
static int __init set_cmdline_ftrace(char *str)
kernel/trace/trace.c
233
strscpy(bootup_tracer_buf, str, MAX_TRACER_SIZE);
kernel/trace/trace.c
249
static int __init set_ftrace_dump_on_oops(char *str)
kernel/trace/trace.c
251
if (!*str) {
kernel/trace/trace.c
256
if (*str == ',') {
kernel/trace/trace.c
258
strscpy(ftrace_dump_on_oops + 1, str, MAX_TRACER_SIZE - 1);
kernel/trace/trace.c
262
if (*str++ == '=') {
kernel/trace/trace.c
263
strscpy(ftrace_dump_on_oops, str, MAX_TRACER_SIZE);
kernel/trace/trace.c
271
static int __init stop_trace_on_warning(char *str)
kernel/trace/trace.c
273
if ((strcmp(str, "=0") != 0 && strcmp(str, "=off") != 0))
kernel/trace/trace.c
279
static int __init boot_alloc_snapshot(char *str)
kernel/trace/trace.c
285
if (str[0] == '=') {
kernel/trace/trace.c
286
str++;
kernel/trace/trace.c
287
if (strlen(str) >= left)
kernel/trace/trace.c
290
ret = snprintf(slot, left, "%s\t", str);
kernel/trace/trace.c
2928
static bool trace_safe_str(struct trace_iterator *iter, const char *str)
kernel/trace/trace.c
2930
unsigned long addr = (unsigned long)str;
kernel/trace/trace.c
2948
if (trace_is_tracepoint_string(str))
kernel/trace/trace.c
302
static int __init boot_snapshot(char *str)
kernel/trace/trace.c
3027
const char *str;
kernel/trace/trace.c
3033
str = *(const char **)(ptr + field->offset);
kernel/trace/trace.c
3035
good = trace_safe_str(iter, str);
kernel/trace/trace.c
305
boot_alloc_snapshot(str);
kernel/trace/trace.c
311
static int __init boot_instance(char *str)
kernel/trace/trace.c
317
if (strlen(str) >= left)
kernel/trace/trace.c
320
ret = snprintf(slot, left, "%s\t", str);
kernel/trace/trace.c
330
static int __init set_trace_boot_options(char *str)
kernel/trace/trace.c
332
strscpy(trace_boot_options_buf, str, MAX_TRACER_SIZE);
kernel/trace/trace.c
340
static int __init set_trace_boot_clock(char *str)
kernel/trace/trace.c
342
strscpy(trace_boot_clock_buf, str, MAX_TRACER_SIZE);
kernel/trace/trace.c
348
static int __init set_tracepoint_printk(char *str)
kernel/trace/trace.c
351
if (*str == '_')
kernel/trace/trace.c
354
if ((strcmp(str, "=0") != 0 && strcmp(str, "=off") != 0))
kernel/trace/trace.c
360
static int __init set_tracepoint_printk_stop(char *str)
kernel/trace/trace.c
367
static int __init set_traceoff_after_boot(char *str)
kernel/trace/trace.c
7619
unsigned int err_pos(char *cmd, const char *str)
kernel/trace/trace.c
7626
found = strstr(cmd, str);
kernel/trace/trace.h
1737
typedef int (*regex_match_func)(char *str, struct regex *r, int len);
kernel/trace/trace.h
2172
extern unsigned int err_pos(char *cmd, const char *str);
kernel/trace/trace.h
2186
#define internal_trace_puts(str) __trace_puts(_THIS_IP_, str)
kernel/trace/trace.h
729
bool trace_is_tracepoint_string(const char *str);
kernel/trace/trace_benchmark.h
17
TP_PROTO(const char *str, u64 delta),
kernel/trace/trace_benchmark.h
19
TP_ARGS(str, delta),
kernel/trace/trace_benchmark.h
22
__array( char, str, BENCHMARK_EVENT_STRLEN )
kernel/trace/trace_benchmark.h
27
memcpy(__entry->str, str, BENCHMARK_EVENT_STRLEN);
kernel/trace/trace_benchmark.h
31
TP_printk("%s delta=%llu", __entry->str, __entry->delta),
kernel/trace/trace_boot.c
198
append_str_nospace(char **bufp, char *end, const char *str)
kernel/trace/trace_boot.c
203
while (p < end - 1 && *str != '\0') {
kernel/trace/trace_boot.c
204
if (!isspace(*str))
kernel/trace/trace_boot.c
205
*(p++) = *str;
kernel/trace/trace_boot.c
206
str++;
kernel/trace/trace_dynevent.c
319
ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator);
kernel/trace/trace_dynevent.c
321
pr_err("String is too long: %s%c\n", arg->str, arg->separator);
kernel/trace/trace_dynevent.c
387
int dynevent_str_add(struct dynevent_cmd *cmd, const char *str)
kernel/trace/trace_dynevent.c
391
ret = seq_buf_puts(&cmd->seq, str);
kernel/trace/trace_dynevent.c
393
pr_err("String is too long: %s\n", str);
kernel/trace/trace_dynevent.h
130
const char *str;
kernel/trace/trace_dynevent.h
153
extern int dynevent_str_add(struct dynevent_cmd *cmd, const char *str);
kernel/trace/trace_entries.h
304
__field( const char *, str )
kernel/trace/trace_entries.h
308
(void *)__entry->ip, __entry->str)
kernel/trace/trace_events.c
293
static bool find_print_string(const char *arg, const char *str, const char *end)
kernel/trace/trace_events.c
297
r = strstr(arg, str);
kernel/trace/trace_events.c
3404
static void add_str_to_module(struct module *module, char *str)
kernel/trace/trace_events.c
3420
modstr->str = str;
kernel/trace/trace_events.c
3503
char *str;
kernel/trace/trace_events.c
3516
str = sanitize_field_type(field->type);
kernel/trace/trace_events.c
3517
if (!str)
kernel/trace/trace_events.c
3520
ptr = find_replacable_eval(str, eval_string, len);
kernel/trace/trace_events.c
3522
if (str == field->type) {
kernel/trace/trace_events.c
3523
str = kstrdup(field->type, GFP_KERNEL);
kernel/trace/trace_events.c
3524
if (WARN_ON_ONCE(!str))
kernel/trace/trace_events.c
3526
ptr = str + (ptr - field->type);
kernel/trace/trace_events.c
3532
kfree(str);
kernel/trace/trace_events.c
3537
if (str == field->type)
kernel/trace/trace_events.c
3545
add_str_to_module(call->module, str);
kernel/trace/trace_events.c
3547
field->type = str;
kernel/trace/trace_events.c
3684
static __init int setup_trace_triggers(char *str)
kernel/trace/trace_events.c
3690
strscpy(bootup_trigger_buf, str, COMMAND_LINE_SIZE);
kernel/trace/trace_events.c
3947
kfree(modstr->str);
kernel/trace/trace_events.c
4494
static __init int setup_trace_event(char *str)
kernel/trace/trace_events.c
4499
strlcat(bootup_event_buf, str, COMMAND_LINE_SIZE);
kernel/trace/trace_events.c
48
char *str;
kernel/trace/trace_events_filter.c
1024
static int regex_match_full(char *str, struct regex *r, int len)
kernel/trace/trace_events_filter.c
1028
return strcmp(str, r->pattern) == 0;
kernel/trace/trace_events_filter.c
1030
return strncmp(str, r->pattern, len) == 0;
kernel/trace/trace_events_filter.c
1033
static int regex_match_front(char *str, struct regex *r, int len)
kernel/trace/trace_events_filter.c
1038
return strncmp(str, r->pattern, r->len) == 0;
kernel/trace/trace_events_filter.c
1041
static int regex_match_middle(char *str, struct regex *r, int len)
kernel/trace/trace_events_filter.c
1044
return strstr(str, r->pattern) != NULL;
kernel/trace/trace_events_filter.c
1046
return strnstr(str, r->pattern, len) != NULL;
kernel/trace/trace_events_filter.c
1049
static int regex_match_end(char *str, struct regex *r, int len)
kernel/trace/trace_events_filter.c
1054
memcmp(str + strlen - r->len, r->pattern, r->len) == 0)
kernel/trace/trace_events_filter.c
1059
static int regex_match_glob(char *str, struct regex *r, int len __maybe_unused)
kernel/trace/trace_events_filter.c
1061
if (glob_match(r->pattern, str))
kernel/trace/trace_events_filter.c
134
static bool is_not(const char *str)
kernel/trace/trace_events_filter.c
136
switch (str[1]) {
kernel/trace/trace_events_filter.c
1628
static int parse_pred(const char *str, void *data,
kernel/trace/trace_events_filter.c
1652
while (isspace(str[i]))
kernel/trace/trace_events_filter.c
1656
while (isalnum(str[i]) || str[i] == '_')
kernel/trace/trace_events_filter.c
1664
field_name = kmemdup_nul(str + s, len, GFP_KERNEL);
kernel/trace/trace_events_filter.c
1678
if ((len = str_has_prefix(str + i, ".ustring"))) {
kernel/trace/trace_events_filter.c
1684
if ((len = str_has_prefix(str + i, ".function"))) {
kernel/trace/trace_events_filter.c
1689
while (isspace(str[i]))
kernel/trace/trace_events_filter.c
1695
if (strncmp(str + i, ops[op], strlen(ops[op])) == 0)
kernel/trace/trace_events_filter.c
1706
while (isspace(str[i]))
kernel/trace/trace_events_filter.c
1736
if (isdigit(str[i])) {
kernel/trace/trace_events_filter.c
1738
while (isalnum(str[i]))
kernel/trace/trace_events_filter.c
1748
memcpy(num_buf, str + s, len);
kernel/trace/trace_events_filter.c
1758
for (; str[i] && !isspace(str[i]); i++)
kernel/trace/trace_events_filter.c
1762
name = kmemdup_nul(str + s, len, GFP_KERNEL);
kernel/trace/trace_events_filter.c
1801
if (str[i] == '\'' || str[i] == '"')
kernel/trace/trace_events_filter.c
1802
q = str[i];
kernel/trace/trace_events_filter.c
1806
for (i++; str[i]; i++) {
kernel/trace/trace_events_filter.c
1807
if (q && str[i] == q)
kernel/trace/trace_events_filter.c
1809
if (!q && (str[i] == ')' || str[i] == '&' ||
kernel/trace/trace_events_filter.c
1810
str[i] == '|'))
kernel/trace/trace_events_filter.c
1826
memcpy(pred->regex->pattern, str + s, len);
kernel/trace/trace_events_filter.c
1829
} else if (!strncmp(str + i, "CPUS", 4)) {
kernel/trace/trace_events_filter.c
1856
if (str[i++] != '{') {
kernel/trace/trace_events_filter.c
1863
for (; str[i] && str[i] != '}'; i++)
kernel/trace/trace_events_filter.c
1866
if (str[i] != '}') {
kernel/trace/trace_events_filter.c
1881
strscpy(tmp, str + maskstart, (i - maskstart) + 1);
kernel/trace/trace_events_filter.c
190
typedef int (*parse_pred_fn)(const char *str, void *data, int pos,
kernel/trace/trace_events_filter.c
1948
} else if (str[i] == '\'' || str[i] == '"') {
kernel/trace/trace_events_filter.c
1949
char q = str[i];
kernel/trace/trace_events_filter.c
1970
for (i++; str[i]; i++) {
kernel/trace/trace_events_filter.c
1971
if (str[i] == q)
kernel/trace/trace_events_filter.c
1974
if (!str[i]) {
kernel/trace/trace_events_filter.c
1991
memcpy(pred->regex->pattern, str + s, len);
kernel/trace/trace_events_filter.c
2024
} else if (isdigit(str[i]) || str[i] == '-') {
kernel/trace/trace_events_filter.c
2037
if (str[i] == '-')
kernel/trace/trace_events_filter.c
2041
while (isalnum(str[i]))
kernel/trace/trace_events_filter.c
2051
memcpy(num_buf, str + s, len);
kernel/trace/trace_events_filter.c
2107
static int calc_stack(const char *str, int *parens, int *preds, int *err)
kernel/trace/trace_events_filter.c
2119
for (i = 0; str[i]; i++) {
kernel/trace/trace_events_filter.c
2120
if (isspace(str[i]))
kernel/trace/trace_events_filter.c
2123
if (str[i] == quote)
kernel/trace/trace_events_filter.c
2128
switch (str[i]) {
kernel/trace/trace_events_filter.c
2131
quote = str[i];
kernel/trace/trace_events_filter.c
2136
if (str[i+1] != str[i])
kernel/trace/trace_events_filter.c
2172
if (str[i] == quote)
kernel/trace/trace_events_filter.c
2176
switch (str[i]) {
kernel/trace/trace_events_filter.c
2189
quote = str[i];
kernel/trace/trace_events_filter.c
2561
char *str, **re;
kernel/trace/trace_events_filter.c
2563
str = kstrndup(buf, len, GFP_KERNEL);
kernel/trace/trace_events_filter.c
2564
if (!str)
kernel/trace/trace_events_filter.c
2571
strreplace(str, ',', ' ');
kernel/trace/trace_events_filter.c
2573
re = argv_split(GFP_KERNEL, str, count);
kernel/trace/trace_events_filter.c
2574
kfree(str);
kernel/trace/trace_events_filter.c
470
predicate_parse(const char *str, int nr_parens, int nr_preds,
kernel/trace/trace_events_filter.c
476
const char *ptr = str;
kernel/trace/trace_events_filter.c
529
parse_error(pe, FILT_ERR_TOO_MANY_PREDS, next - str);
kernel/trace/trace_events_filter.c
536
len = parse_pred(next, data, ptr - str, pe, &prog[N].pred);
kernel/trace/trace_events_filter.c
565
next - str);
kernel/trace/trace_events_filter.c
593
parse_error(pe, FILT_ERR_TOO_MANY_CLOSE, ptr - str);
kernel/trace/trace_events_filter.c
602
parse_error(pe, FILT_ERR_TOO_MANY_OPEN, ptr - str);
kernel/trace/trace_events_filter.c
609
parse_error(pe, FILT_ERR_NO_FILTER, ptr - str);
kernel/trace/trace_events_filter.c
799
static __always_inline char *test_string(char *str)
kernel/trace/trace_events_filter.c
811
if (strncpy_from_kernel_nofault(kstr, str, USTRING_BUF_SIZE) < 0)
kernel/trace/trace_events_filter.c
816
static __always_inline char *test_ustring(char *str)
kernel/trace/trace_events_filter.c
829
ustr = (char __user *)str;
kernel/trace/trace_events_filter.c
849
static __always_inline int filter_pchar(struct filter_pred *pred, char *str)
kernel/trace/trace_events_filter.c
854
len = strlen(str) + 1; /* including tailing '\0' */
kernel/trace/trace_events_filter.c
855
cmp = pred->regex->match(str, pred->regex, len);
kernel/trace/trace_events_filter.c
865
char *str;
kernel/trace/trace_events_filter.c
867
str = test_string(*addr);
kernel/trace/trace_events_filter.c
868
if (!str)
kernel/trace/trace_events_filter.c
871
return filter_pchar(pred, str);
kernel/trace/trace_events_filter.c
878
char *str;
kernel/trace/trace_events_filter.c
880
str = test_ustring(*addr);
kernel/trace/trace_events_filter.c
881
if (!str)
kernel/trace/trace_events_filter.c
884
return filter_pchar(pred, str);
kernel/trace/trace_events_hist.c
1414
static int parse_map_size(char *str)
kernel/trace/trace_events_hist.c
1419
ret = kstrtoul(str, 0, &size);
kernel/trace/trace_events_hist.c
1454
static int parse_action(char *str, struct hist_trigger_attrs *attrs)
kernel/trace/trace_events_hist.c
1461
if ((str_has_prefix(str, "onmatch(")) ||
kernel/trace/trace_events_hist.c
1462
(str_has_prefix(str, "onmax(")) ||
kernel/trace/trace_events_hist.c
1463
(str_has_prefix(str, "onchange("))) {
kernel/trace/trace_events_hist.c
1464
attrs->action_str[attrs->n_actions] = kstrdup(str, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1476
char *str, struct hist_trigger_attrs *attrs)
kernel/trace/trace_events_hist.c
1480
if ((len = str_has_prefix(str, "key=")) ||
kernel/trace/trace_events_hist.c
1481
(len = str_has_prefix(str, "keys="))) {
kernel/trace/trace_events_hist.c
1482
attrs->keys_str = kstrdup(str + len, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1487
} else if ((len = str_has_prefix(str, "val=")) ||
kernel/trace/trace_events_hist.c
1488
(len = str_has_prefix(str, "vals=")) ||
kernel/trace/trace_events_hist.c
1489
(len = str_has_prefix(str, "values="))) {
kernel/trace/trace_events_hist.c
1490
attrs->vals_str = kstrdup(str + len, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1495
} else if ((len = str_has_prefix(str, "sort="))) {
kernel/trace/trace_events_hist.c
1496
attrs->sort_key_str = kstrdup(str + len, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1501
} else if (str_has_prefix(str, "name=")) {
kernel/trace/trace_events_hist.c
1502
attrs->name = kstrdup(str, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1507
} else if ((len = str_has_prefix(str, "clock="))) {
kernel/trace/trace_events_hist.c
1508
str += len;
kernel/trace/trace_events_hist.c
1510
str = strstrip(str);
kernel/trace/trace_events_hist.c
1511
attrs->clock = kstrdup(str, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1516
} else if ((len = str_has_prefix(str, "size="))) {
kernel/trace/trace_events_hist.c
1517
int map_bits = parse_map_size(str + len);
kernel/trace/trace_events_hist.c
1528
hist_err(tr, HIST_ERR_TOO_MANY_VARS, errpos(str));
kernel/trace/trace_events_hist.c
1533
assignment = kstrdup(str, GFP_KERNEL);
kernel/trace/trace_events_hist.c
1556
char *str = strsep(&trigger_str, ":");
kernel/trace/trace_events_hist.c
1559
rhs = strchr(str, '=');
kernel/trace/trace_events_hist.c
1563
hist_err(tr, HIST_ERR_EMPTY_ASSIGNMENT, errpos(str));
kernel/trace/trace_events_hist.c
1566
ret = parse_assignment(tr, str, attrs);
kernel/trace/trace_events_hist.c
1569
} else if (strcmp(str, "nohitcount") == 0 ||
kernel/trace/trace_events_hist.c
1570
strcmp(str, "NOHC") == 0)
kernel/trace/trace_events_hist.c
1572
else if (strcmp(str, "pause") == 0)
kernel/trace/trace_events_hist.c
1574
else if ((strcmp(str, "cont") == 0) ||
kernel/trace/trace_events_hist.c
1575
(strcmp(str, "continue") == 0))
kernel/trace/trace_events_hist.c
1577
else if (strcmp(str, "clear") == 0)
kernel/trace/trace_events_hist.c
1580
ret = parse_action(str, attrs);
kernel/trace/trace_events_hist.c
1746
char str[HIST_CONST_DIGITS_MAX];
kernel/trace/trace_events_hist.c
1748
snprintf(str, HIST_CONST_DIGITS_MAX, "%llu", field->constant);
kernel/trace/trace_events_hist.c
1749
strcat(expr, str);
kernel/trace/trace_events_hist.c
1826
static int contains_operator(char *str, char **sep)
kernel/trace/trace_events_hist.c
1846
minus_op = strrchr(str, '-');
kernel/trace/trace_events_hist.c
1852
if (minus_op == str) {
kernel/trace/trace_events_hist.c
1860
plus_op = strrchr(str, '+');
kernel/trace/trace_events_hist.c
1875
div_op = strrchr(str, '/');
kernel/trace/trace_events_hist.c
1879
mult_op = strrchr(str, '*');
kernel/trace/trace_events_hist.c
2330
char *field_name, *modifier, *str;
kernel/trace/trace_events_hist.c
2333
modifier = str = kstrdup(field_str, GFP_KERNEL);
kernel/trace/trace_events_hist.c
2428
kfree(str);
kernel/trace/trace_events_hist.c
2458
char *str, char *var_name,
kernel/trace/trace_events_hist.c
2465
if (kstrtoull(str, 0, &constant)) {
kernel/trace/trace_events_hist.c
2466
hist_err(tr, HIST_ERR_EXPECT_NUMBER, errpos(str));
kernel/trace/trace_events_hist.c
2481
struct trace_event_file *file, char *str,
kernel/trace/trace_events_hist.c
2484
char *s, *ref_system = NULL, *ref_event = NULL, *ref_var = str;
kernel/trace/trace_events_hist.c
2490
if (isdigit(str[0])) {
kernel/trace/trace_events_hist.c
2491
hist_field = parse_const(hist_data, str, var_name, flags);
kernel/trace/trace_events_hist.c
2499
s = strchr(str, '.');
kernel/trace/trace_events_hist.c
2503
ref_system = strsep(&str, ".");
kernel/trace/trace_events_hist.c
2504
if (!str) {
kernel/trace/trace_events_hist.c
2508
ref_event = strsep(&str, ".");
kernel/trace/trace_events_hist.c
2509
if (!str) {
kernel/trace/trace_events_hist.c
2513
ref_var = str;
kernel/trace/trace_events_hist.c
2532
str = s;
kernel/trace/trace_events_hist.c
2534
field = parse_field(hist_data, file, str, flags, &buckets);
kernel/trace/trace_events_hist.c
2554
char *str, unsigned long flags,
kernel/trace/trace_events_hist.c
2559
char *str, unsigned long flags,
kernel/trace/trace_events_hist.c
2573
hist_err(file->tr, HIST_ERR_TOO_MANY_SUBEXPR, errpos(str));
kernel/trace/trace_events_hist.c
2578
str++; /* skip leading '-' */
kernel/trace/trace_events_hist.c
2580
s = strchr(str, '(');
kernel/trace/trace_events_hist.c
2582
str++;
kernel/trace/trace_events_hist.c
2588
s = strrchr(str, ')');
kernel/trace/trace_events_hist.c
2593
errpos(str));
kernel/trace/trace_events_hist.c
2612
operand1 = parse_expr(hist_data, file, str, operand_flags, NULL, n_subexprs);
kernel/trace/trace_events_hist.c
2619
hist_err(file->tr, HIST_ERR_INVALID_STR_OPERAND, errpos(str));
kernel/trace/trace_events_hist.c
2691
char *str, unsigned long flags,
kernel/trace/trace_events_hist.c
2703
hist_err(file->tr, HIST_ERR_TOO_MANY_SUBEXPR, errpos(str));
kernel/trace/trace_events_hist.c
2707
field_op = contains_operator(str, &sep);
kernel/trace/trace_events_hist.c
2710
return parse_atom(hist_data, file, str, &flags, var_name);
kernel/trace/trace_events_hist.c
2713
return parse_unary(hist_data, file, str, flags, var_name, n_subexprs);
kernel/trace/trace_events_hist.c
2723
operand1_str = str;
kernel/trace/trace_events_hist.c
2724
str = sep+1;
kernel/trace/trace_events_hist.c
2727
if (*operand1_str == '\0' || *str == '\0')
kernel/trace/trace_events_hist.c
2745
operand2 = parse_expr(hist_data, file, str, operand_flags, NULL, n_subexprs);
kernel/trace/trace_events_hist.c
2751
hist_err(file->tr, HIST_ERR_INVALID_STR_OPERAND, errpos(str));
kernel/trace/trace_events_hist.c
2810
hist_err(file->tr, HIST_ERR_DIVISION_BY_ZERO, errpos(str));
kernel/trace/trace_events_hist.c
3178
char *str = elt_data->field_var_str[j++];
kernel/trace/trace_events_hist.c
3184
strscpy(str, val_str, size);
kernel/trace/trace_events_hist.c
3186
char *stack_start = str + sizeof(unsigned long);
kernel/trace/trace_events_hist.c
3194
*((unsigned long *)str) = e;
kernel/trace/trace_events_hist.c
3196
var_val = (u64)(uintptr_t)str;
kernel/trace/trace_events_hist.c
3722
static int action_parse(struct trace_array *tr, char *str, struct action_data *data,
kernel/trace/trace_events_hist.c
3728
strsep(&str, ".");
kernel/trace/trace_events_hist.c
3729
if (!str) {
kernel/trace/trace_events_hist.c
3735
action_name = strsep(&str, "(");
kernel/trace/trace_events_hist.c
3736
if (!action_name || !str) {
kernel/trace/trace_events_hist.c
3743
char *params = strsep(&str, ")");
kernel/trace/trace_events_hist.c
3769
char *params = strsep(&str, ")");
kernel/trace/trace_events_hist.c
3771
if (!str) {
kernel/trace/trace_events_hist.c
3791
char *params = strsep(&str, ")");
kernel/trace/trace_events_hist.c
3828
char *str, enum handler_id handler)
kernel/trace/trace_events_hist.c
3838
var_str = strsep(&str, ")");
kernel/trace/trace_events_hist.c
3839
if (!var_str || !str) {
kernel/trace/trace_events_hist.c
3850
ret = action_parse(hist_data->event_file->tr, str, data, handler);
kernel/trace/trace_events_hist.c
4195
static struct action_data *onmatch_parse(struct trace_array *tr, char *str)
kernel/trace/trace_events_hist.c
4205
match_event = strsep(&str, ")");
kernel/trace/trace_events_hist.c
4206
if (!match_event || !str) {
kernel/trace/trace_events_hist.c
4234
ret = action_parse(tr, str, data, HANDLER_ONMATCH);
kernel/trace/trace_events_hist.c
4641
char *s, *str, *var_name, *field_str;
kernel/trace/trace_events_hist.c
4646
str = hist_data->attrs->assignment_str[i];
kernel/trace/trace_events_hist.c
4648
field_str = strsep(&str, ",");
kernel/trace/trace_events_hist.c
4718
static int is_descending(struct trace_array *tr, const char *str)
kernel/trace/trace_events_hist.c
4720
if (!str)
kernel/trace/trace_events_hist.c
4723
if (strcmp(str, "descending") == 0)
kernel/trace/trace_events_hist.c
4726
if (strcmp(str, "ascending") == 0)
kernel/trace/trace_events_hist.c
4729
hist_err(tr, HIST_ERR_INVALID_SORT_MODIFIER, errpos((char *)str));
kernel/trace/trace_events_hist.c
4844
char *str;
kernel/trace/trace_events_hist.c
4851
str = hist_data->attrs->action_str[i];
kernel/trace/trace_events_hist.c
4853
if ((len = str_has_prefix(str, "onmatch(")))
kernel/trace/trace_events_hist.c
4855
else if ((len = str_has_prefix(str, "onmax(")))
kernel/trace/trace_events_hist.c
4857
else if ((len = str_has_prefix(str, "onchange(")))
kernel/trace/trace_events_hist.c
4860
action_str = str + len;
kernel/trace/trace_events_hist.c
5207
char *str, *val_str;
kernel/trace/trace_events_hist.c
5215
str = elt_data->field_var_str[idx];
kernel/trace/trace_events_hist.c
5220
strscpy(str, val_str, size);
kernel/trace/trace_events_hist.c
5222
char *stack_start = str + sizeof(unsigned long);
kernel/trace/trace_events_hist.c
5230
*((unsigned long *)str) = e;
kernel/trace/trace_events_hist.c
5232
hist_val = (u64)(uintptr_t)str;
kernel/trace/trace_events_hist.c
773
static int errpos(char *str)
kernel/trace/trace_events_hist.c
775
if (!str || !last_cmd)
kernel/trace/trace_events_hist.c
778
return err_pos(last_cmd, str);
kernel/trace/trace_events_hist.c
781
static void last_cmd_set(struct trace_event_file *file, char *str)
kernel/trace/trace_events_hist.c
786
if (!str)
kernel/trace/trace_events_hist.c
791
last_cmd = kasprintf(GFP_KERNEL, HIST_PREFIX "%s", str);
kernel/trace/trace_events_inject.c
104
} else if (str[i] == '\'' || str[i] == '"') {
kernel/trace/trace_events_inject.c
105
char q = str[i];
kernel/trace/trace_events_inject.c
111
for (i++; str[i]; i++) {
kernel/trace/trace_events_inject.c
112
if (str[i] == '\\' && str[i + 1]) {
kernel/trace/trace_events_inject.c
116
if (str[i] == q)
kernel/trace/trace_events_inject.c
119
if (!str[i])
kernel/trace/trace_events_inject.c
128
*pv = (unsigned long)(str + s);
kernel/trace/trace_events_inject.c
129
str[i] = 0;
kernel/trace/trace_events_inject.c
196
static int parse_entry(char *str, struct trace_event_call *call, void **pentry)
kernel/trace/trace_events_inject.c
212
while ((len = parse_field(str, call, &field, &val)) > 0) {
kernel/trace/trace_events_inject.c
274
str += len;
kernel/trace/trace_events_inject.c
36
parse_field(char *str, struct trace_event_call *call,
kernel/trace/trace_events_inject.c
45
if (!str[i])
kernel/trace/trace_events_inject.c
48
while (isspace(str[i]))
kernel/trace/trace_events_inject.c
51
while (isalnum(str[i]) || str[i] == '_')
kernel/trace/trace_events_inject.c
57
field_name = kmemdup_nul(str + s, len, GFP_KERNEL);
kernel/trace/trace_events_inject.c
66
while (isspace(str[i]))
kernel/trace/trace_events_inject.c
68
if (str[i] != '=')
kernel/trace/trace_events_inject.c
71
while (isspace(str[i]))
kernel/trace/trace_events_inject.c
74
if (isdigit(str[i]) || str[i] == '-') {
kernel/trace/trace_events_inject.c
82
if (str[i] == '-')
kernel/trace/trace_events_inject.c
86
while (isalnum(str[i]))
kernel/trace/trace_events_inject.c
88
num = str + s;
kernel/trace/trace_events_inject.c
89
c = str[i];
kernel/trace/trace_events_inject.c
92
str[i] = '\0';
kernel/trace/trace_events_inject.c
98
str[i] = c;
kernel/trace/trace_events_synth.c
1110
arg.str = type_name;
kernel/trace/trace_events_synth.c
1204
arg.str = name;
kernel/trace/trace_events_synth.c
1279
arg.str = name;
kernel/trace/trace_events_synth.c
50
static int errpos(const char *str)
kernel/trace/trace_events_synth.c
53
if (!str || !last_cmd)
kernel/trace/trace_events_synth.c
56
return err_pos(last_cmd, str);
kernel/trace/trace_events_synth.c
59
static void last_cmd_set(const char *str)
kernel/trace/trace_events_synth.c
61
if (!str)
kernel/trace/trace_events_synth.c
66
last_cmd = kstrdup(str, GFP_KERNEL);
kernel/trace/trace_kprobe.c
1182
arg.str = loc;
kernel/trace/trace_kprobe.c
1200
arg.str = field;
kernel/trace/trace_kprobe.c
1251
arg.str = field;
kernel/trace/trace_kprobe.c
32
static int __init set_kprobe_boot_events(char *str)
kernel/trace/trace_kprobe.c
34
strscpy(kprobe_boot_events_buf, str, COMMAND_LINE_SIZE);
kernel/trace/trace_output.c
1006
str = (char *)iter->ent + offset;
kernel/trace/trace_output.c
1009
if (str[i] && !(isascii(str[i]) && isprint(str[i])))
kernel/trace/trace_output.c
1014
if (isascii(str[i]) && isprint(str[i]))
kernel/trace/trace_output.c
1015
trace_seq_putc(&iter->seq, str[i]);
kernel/trace/trace_output.c
1023
trace_seq_printf(&iter->seq, "%02x", str[i]);
kernel/trace/trace_output.c
1027
trace_seq_printf(&iter->seq, "%.*s", len, str);
kernel/trace/trace_output.c
139
const char *str;
kernel/trace/trace_output.c
149
str = flag_array[i].name;
kernel/trace/trace_output.c
155
trace_seq_puts(p, str);
kernel/trace/trace_output.c
1701
trace_seq_puts(s, field->str);
kernel/trace/trace_output.c
1717
trace_seq_puts(s, field->str);
kernel/trace/trace_output.c
38
trace_seq_puts(s, field->str);
kernel/trace/trace_output.c
397
char str[KSYM_SYMBOL_LEN];
kernel/trace/trace_output.c
401
sprint_symbol(str, address);
kernel/trace/trace_output.c
403
kallsyms_lookup(address, NULL, NULL, NULL, str);
kernel/trace/trace_output.c
404
name = kretprobed(str, address);
kernel/trace/trace_output.c
75
const char *str;
kernel/trace/trace_output.c
85
str = flag_array[i].name;
kernel/trace/trace_output.c
91
trace_seq_puts(p, str);
kernel/trace/trace_output.c
979
char *str;
kernel/trace/trace_printk.c
254
bool trace_is_tracepoint_string(const char *str)
kernel/trace/trace_printk.c
259
if (str == *ptr)
kernel/trace/trace_printk.c
314
const char *str = *fmt;
kernel/trace/trace_printk.c
325
for (i = 0; str[i]; i++) {
kernel/trace/trace_printk.c
326
switch (str[i]) {
kernel/trace/trace_printk.c
340
seq_putc(m, str[i]);
kernel/trace/trace_printk.c
391
const char *str, int size)
kernel/trace/trace_printk.c
422
memcpy(&entry->buf, str, size);
kernel/trace/trace_printk.c
442
int __trace_puts(unsigned long ip, const char *str)
kernel/trace/trace_printk.c
444
return __trace_array_puts(printk_trace, ip, str, strlen(str));
kernel/trace/trace_printk.c
453
int __trace_bputs(unsigned long ip, const char *str)
kernel/trace/trace_printk.c
463
return __trace_puts(ip, str);
kernel/trace/trace_printk.c
482
entry->str = str;
kernel/trace/trace_probe.c
1056
static int str_to_immediate(char *str, unsigned long *imm)
kernel/trace/trace_probe.c
1058
if (isdigit(str[0]))
kernel/trace/trace_probe.c
1059
return kstrtoul(str, 0, imm);
kernel/trace/trace_probe.c
1060
else if (str[0] == '-')
kernel/trace/trace_probe.c
1061
return kstrtol(str, 0, (long *)imm);
kernel/trace/trace_probe.c
1062
else if (str[0] == '+')
kernel/trace/trace_probe.c
1063
return kstrtol(str + 1, 0, (long *)imm);
kernel/trace/trace_probe.c
1067
static int __parse_imm_string(char *str, char **pbuf, int offs)
kernel/trace/trace_probe.c
1069
size_t len = strlen(str);
kernel/trace/trace_probe.c
1071
if (str[len - 1] != '"') {
kernel/trace/trace_probe.c
1075
*pbuf = kstrndup(str, len - 1, GFP_KERNEL);
kernel/trace/trace_probe.h
190
#define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \
kernel/trace/trace_probe.h
194
.is_string = (bool)str, \
kernel/trace/trace_seq.c
230
void trace_seq_puts(struct trace_seq *s, const char *str)
kernel/trace/trace_seq.c
232
unsigned int len = strlen(str);
kernel/trace/trace_seq.c
244
seq_buf_putmem(&s->seq, str, len);
kernel/trace/trace_stack.c
540
static __init int enable_stacktrace(char *str)
kernel/trace/trace_stack.c
544
if ((len = str_has_prefix(str, "_filter=")))
kernel/trace/trace_stack.c
545
strscpy(stack_trace_filter_buf, str + len);
kernel/trace/trace_syscalls.c
278
char *str;
kernel/trace/trace_syscalls.c
310
str = ptr;
kernel/trace/trace_syscalls.c
330
if (isascii(str[x]) && isprint(str[x]))
kernel/trace/trace_syscalls.c
331
trace_seq_putc(s, str[x]);
kernel/trace/trace_syscalls.c
88
char str[KSYM_SYMBOL_LEN];
kernel/trace/trace_syscalls.c
93
kallsyms_lookup(syscall, NULL, NULL, NULL, str);
kernel/trace/trace_syscalls.c
95
if (arch_syscall_match_sym_name(str, "sys_ni_syscall"))
kernel/trace/trace_syscalls.c
99
if ((*start)->name && arch_syscall_match_sym_name(str, (*start)->name))
kernel/watchdog.c
111
static int __init hardlockup_panic_setup(char *str)
kernel/watchdog.c
114
if (!strncmp(str, "panic", 5))
kernel/watchdog.c
116
else if (!strncmp(str, "nopanic", 7))
kernel/watchdog.c
118
else if (!strncmp(str, "0", 1))
kernel/watchdog.c
120
else if (!strncmp(str, "1", 1))
kernel/watchdog.c
122
else if (!strncmp(str, "r", 1))
kernel/watchdog.c
123
hardlockup_config_perf_event(str + 1);
kernel/watchdog.c
124
while (*(str++)) {
kernel/watchdog.c
125
if (*str == ',') {
kernel/watchdog.c
126
str++;
kernel/watchdog.c
401
static int __init softlockup_panic_setup(char *str)
kernel/watchdog.c
403
softlockup_panic = simple_strtoul(str, NULL, 0);
kernel/watchdog.c
408
static int __init nowatchdog_setup(char *str)
kernel/watchdog.c
415
static int __init nosoftlockup_setup(char *str)
kernel/watchdog.c
422
static int __init watchdog_thresh_setup(char *str)
kernel/watchdog.c
424
get_option(&str, &watchdog_thresh);
kernel/watchdog_perf.c
292
void __init hardlockup_config_perf_event(const char *str)
kernel/watchdog_perf.c
296
char *comma = strchr(str, ',');
kernel/watchdog_perf.c
299
if (kstrtoull(str, 16, &config))
kernel/watchdog_perf.c
302
unsigned int len = comma - str;
kernel/watchdog_perf.c
307
strscpy(buf, str, len);
kernel/workqueue.c
8181
static int __init workqueue_unbound_cpus_setup(char *str)
kernel/workqueue.c
8183
if (cpulist_parse(str, &wq_cmdline_cpumask) < 0) {
lib/alloc_tag.c
706
static int __init setup_early_mem_profiling(char *str)
lib/alloc_tag.c
711
if (!str || !str[0])
lib/alloc_tag.c
714
if (!strncmp(str, "never", 5)) {
lib/alloc_tag.c
719
char *token = strsep(&str, ",");
lib/alloc_tag.c
724
if (str) {
lib/alloc_tag.c
726
if (strcmp(str, "compressed"))
lib/argv_split.c
12
static int count_argc(const char *str)
lib/argv_split.c
17
for (was_space = true; *str; str++) {
lib/argv_split.c
18
if (isspace(*str)) {
lib/argv_split.c
60
char **argv_split(gfp_t gfp, const char *str, int *argcp)
lib/argv_split.c
67
argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp);
lib/bitmap-str.c
239
static const char *bitmap_getnum(const char *str, unsigned int *num,
lib/bitmap-str.c
245
if (str[0] == 'N') {
lib/bitmap-str.c
247
return str + 1;
lib/bitmap-str.c
250
len = _parse_integer(str, 10, &n);
lib/bitmap-str.c
257
return str + len;
lib/bitmap-str.c
279
static const char *bitmap_find_region(const char *str)
lib/bitmap-str.c
281
while (__end_of_region(*str))
lib/bitmap-str.c
282
str++;
lib/bitmap-str.c
284
return end_of_str(*str) ? NULL : str;
lib/bitmap-str.c
295
static const char *bitmap_parse_region(const char *str, struct region *r)
lib/bitmap-str.c
299
if (!strncasecmp(str, "all", 3)) {
lib/bitmap-str.c
302
str += 3;
lib/bitmap-str.c
307
str = bitmap_getnum(str, &r->start, lastbit);
lib/bitmap-str.c
308
if (IS_ERR(str))
lib/bitmap-str.c
309
return str;
lib/bitmap-str.c
311
if (end_of_region(*str))
lib/bitmap-str.c
314
if (*str != '-')
lib/bitmap-str.c
317
str = bitmap_getnum(str + 1, &r->end, lastbit);
lib/bitmap-str.c
318
if (IS_ERR(str))
lib/bitmap-str.c
319
return str;
lib/bitmap-str.c
322
if (end_of_region(*str))
lib/bitmap-str.c
325
if (*str != ':')
lib/bitmap-str.c
328
str = bitmap_getnum(str + 1, &r->off, lastbit);
lib/bitmap-str.c
329
if (IS_ERR(str))
lib/bitmap-str.c
330
return str;
lib/bitmap-str.c
332
if (*str != '/')
lib/bitmap-str.c
335
return bitmap_getnum(str + 1, &r->group_len, lastbit);
lib/bitmap-str.c
343
return end_of_str(*str) ? NULL : str;
lib/cmdline.c
107
char *get_options(const char *str, int nints, int *ints)
lib/cmdline.c
115
res = get_option((char **)&str, pint);
lib/cmdline.c
122
range_nums = get_range((char **)&str, pint, n);
lib/cmdline.c
137
return (char *)str;
lib/cmdline.c
203
bool parse_option_str(const char *str, const char *option)
lib/cmdline.c
205
while (*str) {
lib/cmdline.c
206
if (!strncmp(str, option, strlen(option))) {
lib/cmdline.c
207
str += strlen(option);
lib/cmdline.c
208
if (!*str || *str == ',')
lib/cmdline.c
212
while (*str && *str != ',')
lib/cmdline.c
213
str++;
lib/cmdline.c
215
if (*str == ',')
lib/cmdline.c
216
str++;
lib/cmdline.c
23
static int get_range(char **str, int *pint, int n)
lib/cmdline.c
27
(*str)++;
lib/cmdline.c
28
upper_range = simple_strtol((*str), NULL, 0);
lib/cmdline.c
56
int get_option(char **str, int *pint)
lib/cmdline.c
58
char *cur = *str;
lib/cmdline.c
64
value = -simple_strtoull(++cur, str, 0);
lib/cmdline.c
66
value = simple_strtoull(cur, str, 0);
lib/cmdline.c
69
if (cur == *str)
lib/cmdline.c
71
if (**str == ',') {
lib/cmdline.c
72
(*str)++;
lib/cmdline.c
75
if (**str == '-')
lib/debugobjects.c
114
static int __init enable_object_debug(char *str)
lib/debugobjects.c
121
static int __init disable_object_debug(char *str)
lib/dynamic_debug.c
340
static inline int parse_lineno(const char *str, unsigned int *val)
lib/dynamic_debug.c
342
BUG_ON(str == NULL);
lib/dynamic_debug.c
343
if (*str == '\0') {
lib/dynamic_debug.c
347
if (kstrtouint(str, 10, val) < 0) {
lib/dynamic_debug.c
348
pr_err("bad line-number: %s\n", str);
lib/dynamic_debug.c
489
static int ddebug_parse_flags(const char *str, struct flag_settings *modifiers)
lib/dynamic_debug.c
493
switch (*str) {
lib/dynamic_debug.c
497
op = *str++;
lib/dynamic_debug.c
500
pr_err("bad flag-op %c, at start of %s\n", *str, str);
lib/dynamic_debug.c
505
for (; *str ; ++str) {
lib/dynamic_debug.c
507
if (*str == opt_array[i].opt_char) {
lib/dynamic_debug.c
513
pr_err("unknown flag '%c'\n", *str);
lib/dynamic_debug.c
993
static __init int dyndbg_setup(char *str)
lib/fault-inject-usercopy.c
11
static int __init setup_fail_usercopy(char *str)
lib/fault-inject-usercopy.c
13
return setup_fault_attr(&fail_usercopy.attr, str);
lib/fault-inject.c
37
int setup_fault_attr(struct fault_attr *attr, char *str)
lib/fault-inject.c
45
if (sscanf(str, "%lu,%lu,%d,%d",
lib/glob.c
120
str = ++back_str;
lib/glob.c
40
bool __pure glob_match(char const *pat, char const *str)
lib/glob.c
56
unsigned char c = *str++;
lib/glob.c
68
back_str = --str; /* Allow zero-length match */
lib/kunit/assert_test.c
11
#define ASSERT_TEST_EXPECT_CONTAIN(test, str, substr) KUNIT_EXPECT_TRUE(test, strstr(str, substr))
lib/kunit/assert_test.c
12
#define ASSERT_TEST_EXPECT_NCONTAIN(test, str, substr) KUNIT_EXPECT_FALSE(test, strstr(str, substr))
lib/kunit/assert_test.c
305
char *str;
lib/kunit/assert_test.c
313
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
317
ASSERT_TEST_EXPECT_CONTAIN(test, str, buf);
lib/kunit/assert_test.c
322
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
323
ASSERT_TEST_EXPECT_NCONTAIN(test, str, "<");
lib/kunit/assert_test.c
324
ASSERT_TEST_EXPECT_NCONTAIN(test, str, ">");
lib/kunit/assert_test.c
43
char *str = string_stream_get_string(stream);
lib/kunit/assert_test.c
45
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, str);
lib/kunit/assert_test.c
46
kunit_add_action(test, kfree_wrapper, (void *)str);
lib/kunit/assert_test.c
48
return str;
lib/kunit/assert_test.c
54
char *str;
lib/kunit/assert_test.c
65
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
66
ASSERT_TEST_EXPECT_CONTAIN(test, str, "EXPECTATION");
lib/kunit/assert_test.c
67
ASSERT_TEST_EXPECT_CONTAIN(test, str, "testfile.c");
lib/kunit/assert_test.c
68
ASSERT_TEST_EXPECT_CONTAIN(test, str, "1337");
lib/kunit/assert_test.c
73
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
74
ASSERT_TEST_EXPECT_CONTAIN(test, str, "ASSERTION");
lib/kunit/assert_test.c
75
ASSERT_TEST_EXPECT_CONTAIN(test, str, "testfile.c");
lib/kunit/assert_test.c
76
ASSERT_TEST_EXPECT_CONTAIN(test, str, "1337");
lib/kunit/attributes.c
159
char *str = attr;
lib/kunit/attributes.c
170
return (strcmp(input + 2, str) != 0);
lib/kunit/attributes.c
172
return (strcmp(input + 1, str) == 0);
lib/kunit/string-stream-test.c
33
char *str = string_stream_get_string(stream);
lib/kunit/string-stream-test.c
35
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, str);
lib/kunit/string-stream-test.c
36
kunit_add_action(test, kfree_wrapper, (void *)str);
lib/kunit/string-stream-test.c
38
return str;
lib/kunit/test.c
1013
const char *kunit_kstrdup_const(struct kunit *test, const char *str, gfp_t gfp)
lib/kunit/test.c
1016
if (is_kernel_rodata((unsigned long)str))
lib/kunit/test.c
1017
return str;
lib/kunit/test.c
1019
return kunit_kstrdup(test, str, gfp);
lib/locking-selftest.c
43
static int __init setup_debug_locks_verbose(char *str)
lib/locking-selftest.c
45
get_option(&str, &debug_locks_verbose);
lib/nlattr.c
871
int nla_strcmp(const struct nlattr *nla, const char *str)
lib/nlattr.c
873
int len = strlen(str);
lib/nlattr.c
883
d = memcmp(nla_data(nla), str, len);
lib/parser.c
284
bool match_wildcard(const char *pattern, const char *str)
lib/parser.c
286
const char *s = str;
lib/parser.c
298
str = s;
lib/parser.c
310
str++;
lib/parser.c
311
s = str;
lib/refcount.c
11
#define REFCOUNT_WARN(str) WARN_ONCE(1, "refcount_t: " str ".\n")
lib/seq_buf.c
182
int seq_buf_puts(struct seq_buf *s, const char *str)
lib/seq_buf.c
184
size_t len = strlen(str);
lib/seq_buf.c
192
memcpy(s->buffer + s->len, str, len);
lib/stackdepot.c
100
return kstrtobool(str, &stack_depot_disabled);
lib/stackdepot.c
104
static int __init parse_max_pools(char *str)
lib/stackdepot.c
110
rv = kstrtouint(str, 0, &max_pools);
lib/stackdepot.c
98
static int __init disable_stack_depot(char *str)
lib/string_helpers.c
846
char *skip_spaces(const char *str)
lib/string_helpers.c
848
while (isspace(*str))
lib/string_helpers.c
849
++str;
lib/string_helpers.c
850
return (char *)str;
lib/string_helpers.c
958
int __sysfs_match_string(const char * const *array, size_t n, const char *str)
lib/string_helpers.c
967
if (sysfs_streq(item, str))
lib/string_helpers.c
985
char *strreplace(char *str, char old, char new)
lib/string_helpers.c
987
char *s = str;
lib/string_helpers.c
992
return str;
lib/strnlen_user.c
102
str = masked_user_read_access_begin(str);
lib/strnlen_user.c
103
retval = do_strnlen_user(str, count, count);
lib/strnlen_user.c
109
src_addr = (unsigned long)untagged_addr(str);
lib/strnlen_user.c
121
if (user_read_access_begin(str, max)) {
lib/strnlen_user.c
122
retval = do_strnlen_user(str, count, max);
lib/strnlen_user.c
92
long strnlen_user(const char __user *str, long count)
lib/sys_info.c
35
unsigned long sys_info_parse_param(char *str)
lib/sys_info.c
41
s = str;
lib/test-kstrtox.c
18
const char *str; \
lib/test-kstrtox.c
36
rv = fn(t->str, t->base, &tmp); \
lib/test-kstrtox.c
39
t->str, t->base, rv, tmp); \
lib/test-kstrtox.c
54
rv = fn(t->str, t->base, &res); \
lib/test-kstrtox.c
57
t->str, t->base, t->expected_res, rv); \
lib/test-kstrtox.c
62
t->str, t->base, t->expected_res, res); \
lib/test-kstrtox.c
9
const char *str;
lib/test_bitmap.c
135
const char *exp_str, const char *str,
lib/test_bitmap.c
140
eq = strncmp(exp_str, str, len) == 0;
lib/test_bitmap.c
142
pr_err("[%s:%u] expected %s, got %s\n", srcfile, line, exp_str, str);
lib/test_bitmap.c
165
#define expect_eq_str(...) __expect_eq(str, ##__VA_ARGS__)
lib/tests/bitops_kunit.c
130
const char *str;
lib/tests/bitops_kunit.c
145
KUNIT_ARRAY_PARAM_DESC(order, order_test_cases, str);
lib/tests/bitops_kunit.c
157
const char *str;
lib/tests/bitops_kunit.c
172
KUNIT_ARRAY_PARAM_DESC(order_long, order_long_test_cases, str);
lib/tests/bitops_kunit.c
22
const char *str;
lib/tests/bitops_kunit.c
28
.str = "BITOPS_4",
lib/tests/bitops_kunit.c
32
.str = "BITOPS_7",
lib/tests/bitops_kunit.c
36
.str = "BITOPS_11",
lib/tests/bitops_kunit.c
40
.str = "BITOPS_31",
lib/tests/bitops_kunit.c
44
.str = "BITOPS_88",
lib/tests/bitops_kunit.c
49
KUNIT_ARRAY_PARAM_DESC(bitops, bitops_cases, str);
lib/tests/cmdline_kunit.c
102
offset = rc ? strlen(in) : !!(*str == '-');
lib/tests/cmdline_kunit.c
135
const char *str = cmdline_test_range_strings[i];
lib/tests/cmdline_kunit.c
138
cmdline_do_one_range_test(test, str, i, e);
lib/tests/cmdline_kunit.c
59
const char *str = cmdline_test_strings[i];
lib/tests/cmdline_kunit.c
64
offset = !!(*str == '-');
lib/tests/cmdline_kunit.c
65
cmdline_do_one_test(test, str, rc, offset);
lib/tests/cmdline_kunit.c
75
const char *str = cmdline_test_strings[i];
lib/tests/cmdline_kunit.c
79
sprintf(in, "%u%s", get_random_u8(), str);
lib/tests/cmdline_kunit.c
81
offset = strlen(in) - strlen(str) + !!(rc == 2);
lib/tests/cmdline_kunit.c
92
const char *str = cmdline_test_strings[i];
lib/tests/cmdline_kunit.c
94
int rc = strcmp(str, "") ? (strcmp(str, "-") ? 0 : 1) : 1;
lib/tests/cmdline_kunit.c
97
sprintf(in, "%s%u", str, get_random_u8());
lib/tests/fortify_kunit.c
118
const char *str;
lib/tests/fortify_kunit.c
122
str = "4444";
lib/tests/fortify_kunit.c
125
str = "333";
lib/tests/fortify_kunit.c
128
str = "1";
lib/tests/fortify_kunit.c
131
return __compiletime_strlen(str);
lib/tests/glob_kunit.c
107
glob_match(params->pat, params->str),
lib/tests/glob_kunit.c
110
params->pat, params->str, params->expected);
lib/tests/glob_kunit.c
18
const char *str;
lib/tests/glob_kunit.c
24
{ .pat = "a", .str = "a", .expected = true },
lib/tests/glob_kunit.c
25
{ .pat = "a", .str = "b", .expected = false },
lib/tests/glob_kunit.c
26
{ .pat = "a", .str = "aa", .expected = false },
lib/tests/glob_kunit.c
27
{ .pat = "a", .str = "", .expected = false },
lib/tests/glob_kunit.c
28
{ .pat = "", .str = "", .expected = true },
lib/tests/glob_kunit.c
29
{ .pat = "", .str = "a", .expected = false },
lib/tests/glob_kunit.c
31
{ .pat = "[a]", .str = "a", .expected = true },
lib/tests/glob_kunit.c
32
{ .pat = "[a]", .str = "b", .expected = false },
lib/tests/glob_kunit.c
33
{ .pat = "[!a]", .str = "a", .expected = false },
lib/tests/glob_kunit.c
34
{ .pat = "[!a]", .str = "b", .expected = true },
lib/tests/glob_kunit.c
35
{ .pat = "[ab]", .str = "a", .expected = true },
lib/tests/glob_kunit.c
36
{ .pat = "[ab]", .str = "b", .expected = true },
lib/tests/glob_kunit.c
37
{ .pat = "[ab]", .str = "c", .expected = false },
lib/tests/glob_kunit.c
38
{ .pat = "[!ab]", .str = "c", .expected = true },
lib/tests/glob_kunit.c
39
{ .pat = "[a-c]", .str = "b", .expected = true },
lib/tests/glob_kunit.c
40
{ .pat = "[a-c]", .str = "d", .expected = false },
lib/tests/glob_kunit.c
42
{ .pat = "[a-c-e-g]", .str = "-", .expected = true },
lib/tests/glob_kunit.c
43
{ .pat = "[a-c-e-g]", .str = "d", .expected = false },
lib/tests/glob_kunit.c
44
{ .pat = "[a-c-e-g]", .str = "f", .expected = true },
lib/tests/glob_kunit.c
45
{ .pat = "[]a-ceg-ik[]", .str = "a", .expected = true },
lib/tests/glob_kunit.c
46
{ .pat = "[]a-ceg-ik[]", .str = "]", .expected = true },
lib/tests/glob_kunit.c
47
{ .pat = "[]a-ceg-ik[]", .str = "[", .expected = true },
lib/tests/glob_kunit.c
48
{ .pat = "[]a-ceg-ik[]", .str = "h", .expected = true },
lib/tests/glob_kunit.c
49
{ .pat = "[]a-ceg-ik[]", .str = "f", .expected = false },
lib/tests/glob_kunit.c
50
{ .pat = "[!]a-ceg-ik[]", .str = "h", .expected = false },
lib/tests/glob_kunit.c
51
{ .pat = "[!]a-ceg-ik[]", .str = "]", .expected = false },
lib/tests/glob_kunit.c
52
{ .pat = "[!]a-ceg-ik[]", .str = "f", .expected = true },
lib/tests/glob_kunit.c
54
{ .pat = "?", .str = "a", .expected = true },
lib/tests/glob_kunit.c
55
{ .pat = "?", .str = "aa", .expected = false },
lib/tests/glob_kunit.c
56
{ .pat = "??", .str = "a", .expected = false },
lib/tests/glob_kunit.c
57
{ .pat = "?x?", .str = "axb", .expected = true },
lib/tests/glob_kunit.c
58
{ .pat = "?x?", .str = "abx", .expected = false },
lib/tests/glob_kunit.c
59
{ .pat = "?x?", .str = "xab", .expected = false },
lib/tests/glob_kunit.c
61
{ .pat = "*??", .str = "a", .expected = false },
lib/tests/glob_kunit.c
62
{ .pat = "*??", .str = "ab", .expected = true },
lib/tests/glob_kunit.c
63
{ .pat = "*??", .str = "abc", .expected = true },
lib/tests/glob_kunit.c
64
{ .pat = "*??", .str = "abcd", .expected = true },
lib/tests/glob_kunit.c
65
{ .pat = "??*", .str = "a", .expected = false },
lib/tests/glob_kunit.c
66
{ .pat = "??*", .str = "ab", .expected = true },
lib/tests/glob_kunit.c
67
{ .pat = "??*", .str = "abc", .expected = true },
lib/tests/glob_kunit.c
68
{ .pat = "??*", .str = "abcd", .expected = true },
lib/tests/glob_kunit.c
69
{ .pat = "?*?", .str = "a", .expected = false },
lib/tests/glob_kunit.c
70
{ .pat = "?*?", .str = "ab", .expected = true },
lib/tests/glob_kunit.c
71
{ .pat = "?*?", .str = "abc", .expected = true },
lib/tests/glob_kunit.c
72
{ .pat = "?*?", .str = "abcd", .expected = true },
lib/tests/glob_kunit.c
73
{ .pat = "*b", .str = "b", .expected = true },
lib/tests/glob_kunit.c
74
{ .pat = "*b", .str = "ab", .expected = true },
lib/tests/glob_kunit.c
75
{ .pat = "*b", .str = "ba", .expected = false },
lib/tests/glob_kunit.c
76
{ .pat = "*b", .str = "bb", .expected = true },
lib/tests/glob_kunit.c
77
{ .pat = "*b", .str = "abb", .expected = true },
lib/tests/glob_kunit.c
78
{ .pat = "*b", .str = "bab", .expected = true },
lib/tests/glob_kunit.c
79
{ .pat = "*bc", .str = "abbc", .expected = true },
lib/tests/glob_kunit.c
80
{ .pat = "*bc", .str = "bc", .expected = true },
lib/tests/glob_kunit.c
81
{ .pat = "*bc", .str = "bbc", .expected = true },
lib/tests/glob_kunit.c
82
{ .pat = "*bc", .str = "bcbc", .expected = true },
lib/tests/glob_kunit.c
84
{ .pat = "*ac*", .str = "abacadaeafag", .expected = true },
lib/tests/glob_kunit.c
85
{ .pat = "*ac*ae*ag*", .str = "abacadaeafag", .expected = true },
lib/tests/glob_kunit.c
86
{ .pat = "*a*b*[bc]*[ef]*g*", .str = "abacadaeafag", .expected = true },
lib/tests/glob_kunit.c
87
{ .pat = "*a*b*[ef]*[cd]*g*", .str = "abacadaeafag", .expected = false },
lib/tests/glob_kunit.c
88
{ .pat = "*abcd*", .str = "abcabcabcabcdefg", .expected = true },
lib/tests/glob_kunit.c
89
{ .pat = "*ab*cd*", .str = "abcabcabcabcdefg", .expected = true },
lib/tests/glob_kunit.c
90
{ .pat = "*abcd*abcdef*", .str = "abcabcdabcdeabcdefg", .expected = true },
lib/tests/glob_kunit.c
91
{ .pat = "*abcd*", .str = "abcabcabcabcefg", .expected = false },
lib/tests/glob_kunit.c
92
{ .pat = "*ab*cd*", .str = "abcabcabcabcefg", .expected = false },
lib/tests/glob_kunit.c
97
snprintf(desc, KUNIT_PARAM_DESC_SIZE, "pat:\"%s\" str:\"%s\"", t->pat, t->str);
lib/tests/min_heap_kunit.c
12
const char *str;
lib/tests/min_heap_kunit.c
18
.str = "min",
lib/tests/min_heap_kunit.c
22
.str = "max",
lib/tests/min_heap_kunit.c
27
KUNIT_ARRAY_PARAM_DESC(min_heap, min_heap_cases, str);
lib/tests/printf_kunit.c
712
const char *str;
lib/tests/printf_kunit.c
721
test(fc[i].str, fmt, &fc[i].code);
lib/tests/scanf_kunit.c
47
#define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \
lib/tests/scanf_kunit.c
54
file, line, str, fmt, *expect, got); \
lib/tests/scanf_kunit.c
606
#define test_number_prefix(T, str, scan_fmt, expect0, expect1, n_args, fn) \
lib/tests/scanf_kunit.c
611
_test(test, __FILE__, __LINE__, fn, &expect, str, scan_fmt, n_args, &result[0], &result[1]);\
lib/tests/string_kunit.c
166
const char str[16];
lib/tests/string_kunit.c
181
KUNIT_ASSERT_EQ_MSG(test, s->a, strspn(s->str, s->accept),
lib/tests/string_kunit.c
183
KUNIT_ASSERT_EQ_MSG(test, s->r, strcspn(s->str, s->reject),
lib/ubsan.c
193
static void val_to_string(char *str, size_t size, struct type_descriptor *type,
lib/ubsan.c
201
scnprintf(str, size, "0x%08x%08x%08x%08x",
lib/ubsan.c
210
scnprintf(str, size, "%lld",
lib/ubsan.c
213
scnprintf(str, size, "%llu",
lib/vsprintf.c
2359
static int __init hash_pointers_mode_parse(char *str)
lib/vsprintf.c
2361
if (!str) {
lib/vsprintf.c
2364
} else if (strncmp(str, "auto", 4) == 0) {
lib/vsprintf.c
2367
} else if (strncmp(str, "never", 5) == 0) {
lib/vsprintf.c
2370
} else if (strncmp(str, "always", 6) == 0) {
lib/vsprintf.c
2374
pr_warn("Unknown hash_pointers mode '%s' specified; assuming auto.\n", str);
lib/vsprintf.c
2382
static int __init no_hash_pointers_enable(char *str)
lib/vsprintf.c
2624
const char *str;
lib/vsprintf.c
2667
const char *start = fmt.str;
lib/vsprintf.c
2692
for (; *fmt.str ; fmt.str++) {
lib/vsprintf.c
2693
if (*fmt.str == '%')
lib/vsprintf.c
2698
if (fmt.str != start || !*fmt.str)
lib/vsprintf.c
2705
flag = spec_flag(*++fmt.str);
lib/vsprintf.c
2712
if (isdigit(*fmt.str))
lib/vsprintf.c
2713
spec->field_width = skip_atoi(&fmt.str);
lib/vsprintf.c
2714
else if (unlikely(*fmt.str == '*')) {
lib/vsprintf.c
2717
fmt.str++;
lib/vsprintf.c
2724
if (unlikely(*fmt.str == '.')) {
lib/vsprintf.c
2725
fmt.str++;
lib/vsprintf.c
2726
if (isdigit(*fmt.str)) {
lib/vsprintf.c
2727
spec->precision = skip_atoi(&fmt.str);
lib/vsprintf.c
2730
} else if (*fmt.str == '*') {
lib/vsprintf.c
2733
fmt.str++;
lib/vsprintf.c
2778
const struct format_state *p = lookup_state + (u8)*fmt.str;
lib/vsprintf.c
2781
if (p->flags_or_double_size && fmt.str[0] == fmt.str[1]) {
lib/vsprintf.c
2783
fmt.str++;
lib/vsprintf.c
2785
fmt.str++;
lib/vsprintf.c
2786
p = lookup_state + *fmt.str;
lib/vsprintf.c
2793
fmt.str++;
lib/vsprintf.c
2797
WARN_ONCE(1, "Please remove unsupported %%%c in format string\n", *fmt.str);
lib/vsprintf.c
2866
char *str, *end;
lib/vsprintf.c
2869
.str = fmt_str,
lib/vsprintf.c
2878
str = buf;
lib/vsprintf.c
2887
while (*fmt.str) {
lib/vsprintf.c
2888
const char *old_fmt = fmt.str;
lib/vsprintf.c
2894
int read = fmt.str - old_fmt;
lib/vsprintf.c
2895
if (str < end) {
lib/vsprintf.c
2897
if (copy > end - str)
lib/vsprintf.c
2898
copy = end - str;
lib/vsprintf.c
2899
memcpy(str, old_fmt, copy);
lib/vsprintf.c
2901
str += read;
lib/vsprintf.c
2912
str = number(str, end, num, spec);
lib/vsprintf.c
2929
if (str < end)
lib/vsprintf.c
2930
*str = ' ';
lib/vsprintf.c
2931
++str;
lib/vsprintf.c
2936
if (str < end)
lib/vsprintf.c
2937
*str = c;
lib/vsprintf.c
2938
++str;
lib/vsprintf.c
2940
if (str < end)
lib/vsprintf.c
2941
*str = ' ';
lib/vsprintf.c
2942
++str;
lib/vsprintf.c
2948
str = string(str, end, va_arg(args, char *), spec);
lib/vsprintf.c
2952
str = pointer(fmt.str, str, end, va_arg(args, void *),
lib/vsprintf.c
2954
while (isalnum(*fmt.str))
lib/vsprintf.c
2955
fmt.str++;
lib/vsprintf.c
2959
if (str < end)
lib/vsprintf.c
2960
*str = '%';
lib/vsprintf.c
2961
++str;
lib/vsprintf.c
2979
if (str < end)
lib/vsprintf.c
2980
*str = '\0';
lib/vsprintf.c
2986
return str-buf;
lib/vsprintf.c
3145
.str = fmt_str,
lib/vsprintf.c
3149
char *str, *end;
lib/vsprintf.c
3152
str = (char *)bin_buf;
lib/vsprintf.c
3160
str = PTR_ALIGN(str, sizeof(u32)); \
lib/vsprintf.c
3162
if (str + sizeof(type) <= end) { \
lib/vsprintf.c
3163
*(u32 *)str = *(u32 *)&val8; \
lib/vsprintf.c
3164
*(u32 *)(str + 4) = *((u32 *)&val8 + 1); \
lib/vsprintf.c
3169
str = PTR_ALIGN(str, sizeof(type)); \
lib/vsprintf.c
3171
if (str + sizeof(type) <= end) \
lib/vsprintf.c
3172
*(typeof(type) *)str = (type)(long)val4; \
lib/vsprintf.c
3175
str += sizeof(type); \
lib/vsprintf.c
3179
while (*fmt.str) {
lib/vsprintf.c
3193
if (*fmt.str == 'p')
lib/vsprintf.c
3211
if (str + len < end)
lib/vsprintf.c
3212
memcpy(str, save_str, len);
lib/vsprintf.c
3213
str += len;
lib/vsprintf.c
3219
switch (*fmt.str) {
lib/vsprintf.c
3229
if (!isalnum(*fmt.str)) {
lib/vsprintf.c
3233
str = pointer(fmt.str, str, end, va_arg(args, void *),
lib/vsprintf.c
3235
if (str + 1 < end)
lib/vsprintf.c
3236
*str++ = '\0';
lib/vsprintf.c
3241
while (isalnum(*fmt.str))
lib/vsprintf.c
3242
fmt.str++;
lib/vsprintf.c
3255
return (u32 *)(PTR_ALIGN(str, sizeof(u32))) - bin_buf;
lib/vsprintf.c
3285
.str = fmt_str,
lib/vsprintf.c
3289
char *str, *end;
lib/vsprintf.c
3295
str = buf;
lib/vsprintf.c
3319
while (*fmt.str) {
lib/vsprintf.c
3320
const char *old_fmt = fmt.str;
lib/vsprintf.c
3326
int read = fmt.str - old_fmt;
lib/vsprintf.c
3327
if (str < end) {
lib/vsprintf.c
3329
if (copy > end - str)
lib/vsprintf.c
3330
copy = end - str;
lib/vsprintf.c
3331
memcpy(str, old_fmt, copy);
lib/vsprintf.c
3333
str += read;
lib/vsprintf.c
3350
if (str < end)
lib/vsprintf.c
3351
*str = ' ';
lib/vsprintf.c
3352
++str;
lib/vsprintf.c
3356
if (str < end)
lib/vsprintf.c
3357
*str = c;
lib/vsprintf.c
3358
++str;
lib/vsprintf.c
3360
if (str < end)
lib/vsprintf.c
3361
*str = ' ';
lib/vsprintf.c
3362
++str;
lib/vsprintf.c
3370
str = string(str, end, (char *)str_arg, spec);
lib/vsprintf.c
3378
switch (*fmt.str) {
lib/vsprintf.c
3387
if (!isalnum(*fmt.str)) {
lib/vsprintf.c
3392
if (str < end) {
lib/vsprintf.c
3394
if (copy > end - str)
lib/vsprintf.c
3395
copy = end - str;
lib/vsprintf.c
3396
memcpy(str, args, copy);
lib/vsprintf.c
3397
str += len;
lib/vsprintf.c
3402
str = pointer(fmt.str, str, end, get_arg(void *), spec);
lib/vsprintf.c
3404
while (isalnum(*fmt.str))
lib/vsprintf.c
3405
fmt.str++;
lib/vsprintf.c
3410
if (str < end)
lib/vsprintf.c
3411
*str = '%';
lib/vsprintf.c
3412
++str;
lib/vsprintf.c
3423
str = number(str, end, num, spec);
lib/vsprintf.c
3430
if (str < end)
lib/vsprintf.c
3431
*str = '\0';
lib/vsprintf.c
3439
return str - buf;
lib/vsprintf.c
3453
const char *str = buf;
lib/vsprintf.c
3473
str = skip_spaces(str);
lib/vsprintf.c
3478
if (*fmt++ != *str++)
lib/vsprintf.c
3491
if (!*str)
lib/vsprintf.c
3499
while (!isspace(*str) && *str)
lib/vsprintf.c
3500
str++;
lib/vsprintf.c
3533
*va_arg(args, int *) = str - buf;
lib/vsprintf.c
3538
if (!*str)
lib/vsprintf.c
3551
*s++ = *str++;
lib/vsprintf.c
3552
} while (--field_width > 0 && *str);
lib/vsprintf.c
3562
str = skip_spaces(str);
lib/vsprintf.c
3565
while (*str && !isspace(*str) && field_width--)
lib/vsprintf.c
3566
*s++ = *str++;
lib/vsprintf.c
3615
if (!test_bit((u8)*str, set))
lib/vsprintf.c
3618
while (test_bit((u8)*str, set) && field_width--)
lib/vsprintf.c
3619
*s++ = *str++;
lib/vsprintf.c
3641
if (*str++ != '%')
lib/vsprintf.c
3652
str = skip_spaces(str);
lib/vsprintf.c
3654
digit = *str;
lib/vsprintf.c
3659
digit = *(str + 1);
lib/vsprintf.c
3670
val.s = simple_strntoll(str, &next, base,
lib/vsprintf.c
3673
val.u = simple_strntoull(str, &next, base,
lib/vsprintf.c
3715
str = next;
lib/vsprintf.c
757
static int __init debug_boot_weak_hash_enable(char *str)
lib/vsprintf.c
819
const char *str = sizeof(ptr) == 8 ? "(____ptrval____)" : "(ptrval)";
lib/vsprintf.c
840
return error_string(buf, end, str, spec);
lib/zlib_deflate/deflate.c
171
#define INSERT_STRING(s, str, match_head) \
lib/zlib_deflate/deflate.c
172
(UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
lib/zlib_deflate/deflate.c
173
s->prev[(str) & s->w_mask] = match_head = s->head[s->ins_h], \
lib/zlib_deflate/deflate.c
174
s->head[s->ins_h] = (Pos)(str))
lib/zlib_deflate/defutil.h
6
#define Assert(err, str)
lib/zstd/common/error_private.h
97
#define ERR_QUOTE(str) #str
lib/zstd/common/fse.h
43
#define FSE_QUOTE(str) #str
lib/zstd/common/fse.h
44
#define FSE_EXPAND_AND_QUOTE(str) FSE_QUOTE(str)
mm/debug.c
313
static int __init setup_vm_debug(char *str)
mm/debug.c
321
if (*str++ != '=' || !*str)
mm/debug.c
325
if (*str == '-')
mm/debug.c
328
while (*str) {
mm/debug.c
329
switch (tolower(*str)) {
mm/debug.c
335
*str);
mm/debug.c
338
str++;
mm/early_ioremap.c
25
static int __init early_ioremap_debug_setup(char *str)
mm/fail_page_alloc.c
20
static int __init setup_fail_page_alloc(char *str)
mm/fail_page_alloc.c
22
return setup_fault_attr(&fail_page_alloc.attr, str);
mm/failslab.c
50
static int __init setup_failslab(char *str)
mm/failslab.c
52
return setup_fault_attr(&failslab.attr, str);
mm/huge_memory.c
1001
strscpy(str_dup, str);
mm/huge_memory.c
1071
pr_warn("thp_anon=%s: error parsing string, ignoring setting\n", str);
mm/huge_memory.c
959
static int __init setup_transparent_hugepage(char *str)
mm/huge_memory.c
962
if (!str)
mm/huge_memory.c
964
if (!strcmp(str, "always")) {
mm/huge_memory.c
970
} else if (!strcmp(str, "madvise")) {
mm/huge_memory.c
976
} else if (!strcmp(str, "never")) {
mm/huge_memory.c
991
static int __init setup_thp_anon(char *str)
mm/huge_memory.c
999
if (!str || strlen(str) + 1 > PAGE_SIZE)
mm/hugetlb.c
101
early_param(str, func##args)
mm/hugetlb.c
96
#define hugetlb_early_param(str, func) \
mm/kasan/report.c
72
static int __init kasan_set_multi_shot(char *str)
mm/kmemleak.c
2052
static int dump_str_object_info(const char *str)
mm/kmemleak.c
2057
if (kstrtoul(str, 0, &addr))
mm/kmemleak.c
2266
static int __init kmemleak_boot_config(char *str)
mm/kmemleak.c
2268
if (!str)
mm/kmemleak.c
2270
if (strcmp(str, "off") == 0)
mm/kmemleak.c
2272
else if (strcmp(str, "on") == 0) {
mm/memory_hotplug.c
248
static int __init setup_memhp_default_state(char *str)
mm/memory_hotplug.c
250
const int online_type = mhp_online_type_from_str(str);
mm/mempolicy.c
3309
static int __init setup_numabalancing(char *str)
mm/mempolicy.c
3312
if (!str)
mm/mempolicy.c
3315
if (!strcmp(str, "enable")) {
mm/mempolicy.c
3318
} else if (!strcmp(str, "disable")) {
mm/mempolicy.c
3419
int mpol_parse_str(char *str, struct mempolicy **mpol)
mm/mempolicy.c
3424
char *nodelist = strchr(str, ':');
mm/mempolicy.c
3425
char *flags = strchr(str, '=');
mm/mempolicy.c
3441
mode = match_string(policy_modes, MPOL_MAX, str);
mm/mm_init.c
167
static __init int set_mminit_loglevel(char *str)
mm/mm_init.c
169
get_option(&str, &mminit_loglevel);
mm/mm_init.c
651
static int __init set_hashdist(char *str)
mm/mm_init.c
653
return kstrtobool(str, &hashdist) == 0;
mm/numa_emulation.c
19
int __init numa_emu_cmdline(char *str)
mm/numa_emulation.c
21
emu_cmdline = str;
mm/page_ext.c
112
static int __init setup_early_page_ext(char *str)
mm/percpu.c
2745
static int __init percpu_alloc_setup(char *str)
mm/percpu.c
2747
if (!str)
mm/percpu.c
2753
else if (!strcmp(str, "embed"))
mm/percpu.c
2757
else if (!strcmp(str, "page"))
mm/percpu.c
2761
pr_warn("unknown allocator %s specified\n", str);
mm/shmem.c
5617
static int __init setup_transparent_hugepage_shmem(char *str)
mm/shmem.c
5621
huge = shmem_parse_huge(str);
mm/shmem.c
5632
static int __init setup_transparent_hugepage_tmpfs(char *str)
mm/shmem.c
5636
huge = shmem_parse_huge(str);
mm/shmem.c
5648
static int __init setup_thp_shmem(char *str)
mm/shmem.c
5656
if (!str || strlen(str) + 1 > PAGE_SIZE)
mm/shmem.c
5658
strscpy(str_dup, str);
mm/shmem.c
5743
pr_warn("thp_shmem=%s: error parsing string, ignoring setting\n", str);
mm/shmem.c
670
static int shmem_parse_huge(const char *str)
mm/shmem.c
674
if (!str)
mm/shmem.c
677
if (!strcmp(str, "never"))
mm/shmem.c
679
else if (!strcmp(str, "always"))
mm/shmem.c
681
else if (!strcmp(str, "within_size"))
mm/shmem.c
683
else if (!strcmp(str, "advise"))
mm/shmem.c
685
else if (!strcmp(str, "deny"))
mm/shmem.c
687
else if (!strcmp(str, "force"))
mm/slab_common.c
62
static int __init setup_slab_nomerge(char *str)
mm/slab_common.c
68
static int __init setup_slab_merge(char *str)
mm/slub.c
1789
parse_slub_debug_flags(const char *str, slab_flags_t *flags, const char **slabs, bool init)
mm/slub.c
1794
while (*str && *str == ';')
mm/slub.c
1795
str++;
mm/slub.c
1797
if (*str == ',') {
mm/slub.c
1808
for (; *str && *str != ',' && *str != ';'; str++) {
mm/slub.c
1809
switch (tolower(*str)) {
mm/slub.c
1840
pr_err("slab_debug option '%c' unknown. skipped\n", *str);
mm/slub.c
1844
if (*str == ',')
mm/slub.c
1845
*slabs = ++str;
mm/slub.c
1850
while (*str && *str != ';')
mm/slub.c
1851
str++;
mm/slub.c
1854
while (*str && *str == ';')
mm/slub.c
1855
str++;
mm/slub.c
1860
if (*str)
mm/slub.c
1861
return str;
mm/slub.c
1866
static int __init setup_slub_debug(const char *str, const struct kernel_param *kp)
mm/slub.c
1876
if (!str || !*str)
mm/slub.c
1882
saved_str = str;
mm/slub.c
1883
while (str) {
mm/slub.c
1884
str = parse_slub_debug_flags(str, &flags, &slab_list, true);
mm/slub.c
7969
static int __init setup_slub_min_order(const char *str, const struct kernel_param *kp)
mm/slub.c
7973
ret = kstrtouint(str, 0, &slub_min_order);
mm/slub.c
7989
static int __init setup_slub_max_order(const char *str, const struct kernel_param *kp)
mm/slub.c
7993
ret = kstrtouint(str, 0, &slub_max_order);
mm/slub.c
8015
static int __init setup_slab_strict_numa(const char *str, const struct kernel_param *kp)
mm/usercopy.c
268
static int __init parse_hardened_usercopy(char *str)
mm/usercopy.c
270
if (kstrtobool(str, &enable_checks))
mm/usercopy.c
272
str);
mm/vmalloc.c
56
static int __init set_nohugeiomap(char *str)
mm/vmalloc.c
69
static int __init set_nohugevmalloc(char *str)
net/9p/trans_xen.c
453
char str[16];
net/9p/trans_xen.c
456
sprintf(str, "ring-ref%d", i);
net/9p/trans_xen.c
457
ret = xenbus_printf(xbt, dev->nodename, str, "%d",
net/9p/trans_xen.c
462
sprintf(str, "event-channel-%d", i);
net/9p/trans_xen.c
463
ret = xenbus_printf(xbt, dev->nodename, str, "%u",
net/ceph/ceph_common.c
193
int ceph_parse_fsid(const char *str, struct ceph_fsid *fsid)
net/ceph/ceph_common.c
200
dout("%s '%s'\n", __func__, str);
net/ceph/ceph_common.c
202
while (*str && i < 16) {
net/ceph/ceph_common.c
203
if (ispunct(*str)) {
net/ceph/ceph_common.c
204
str++;
net/ceph/ceph_common.c
207
if (!isxdigit(str[0]) || !isxdigit(str[1]))
net/ceph/ceph_common.c
209
tmp[0] = str[0];
net/ceph/ceph_common.c
210
tmp[1] = str[1];
net/ceph/ceph_common.c
215
str += 2;
net/ceph/ceph_hash.c
100
c = *str++;
net/ceph/ceph_hash.c
23
unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length)
net/ceph/ceph_hash.c
25
const unsigned char *k = (const unsigned char *)str;
net/ceph/ceph_hash.c
94
unsigned int ceph_str_hash_linux(const char *str, unsigned int length)
net/ceph/ceph_strings.c
52
#define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str);
net/ceph/debugfs.c
205
t->target_oloc.pool_ns->str,
net/ceph/messenger.c
1221
static int ceph_pton(const char *str, size_t len, struct ceph_entity_addr *addr,
net/ceph/messenger.c
1226
if (in4_pton(str, len, (u8 *)&((struct sockaddr_in *)&addr->in_addr)->sin_addr.s_addr, delim, ipend)) {
net/ceph/messenger.c
1231
if (in6_pton(str, len, (u8 *)&((struct sockaddr_in6 *)&addr->in_addr)->sin6_addr.s6_addr, delim, ipend)) {
net/ceph/mon_client.c
1002
len = vsprintf(h->str, fmt, ap);
net/ceph/osd_client.c
2006
hoid->nspace = t->target_oloc.pool_ns->str;
net/ceph/osd_client.c
2138
ceph_encode_string(p, end, oloc->pool_ns->str,
net/ceph/osd_client.c
644
#define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true;
net/ceph/osdmap.c
2411
memcpy(buf, oloc->pool_ns->str, nsl);
net/ceph/osdmap.c
2419
oid->name, nsl, oloc->pool_ns->str,
net/ceph/osdmap.c
30
char *ceph_osdmap_state_str(char *str, int len, u32 state)
net/ceph/osdmap.c
33
return str;
net/ceph/osdmap.c
36
snprintf(str, len, "exists, up");
net/ceph/osdmap.c
38
snprintf(str, len, "exists");
net/ceph/osdmap.c
40
snprintf(str, len, "up");
net/ceph/osdmap.c
42
snprintf(str, len, "doesn't exist");
net/ceph/osdmap.c
44
return str;
net/ceph/string_table.c
11
struct ceph_string *ceph_find_or_create_string(const char* str, size_t len)
net/ceph/string_table.c
22
ret = ceph_compare_string(exist, str, len);
net/ceph/string_table.c
46
memcpy(cs->str, str, len);
net/ceph/string_table.c
47
cs->str[len] = 0;
net/ceph/string_table.c
57
ret = ceph_compare_string(exist, str, len);
net/core/skb_fault_injection.c
42
static int __init fail_skb_realloc_setup(char *str)
net/core/skb_fault_injection.c
44
return setup_fault_attr(&skb_realloc.attr, str);
net/core/sysctl_net_core.c
746
static int __init fb_tunnels_only_for_init_net_sysctl_setup(char *str)
net/core/sysctl_net_core.c
749
if (!strncmp(str, "initns", 6))
net/core/sysctl_net_core.c
752
else if (!strncmp(str, "none", 4))
net/core/utils.c
51
__be32 in_aton(const char *str)
net/core/utils.c
60
if (*str != '\0') {
net/core/utils.c
62
while (*str != '\0' && *str != '.' && *str != '\n') {
net/core/utils.c
64
val += *str - '0';
net/core/utils.c
65
str++;
net/core/utils.c
68
if (*str != '\0')
net/core/utils.c
69
str++;
net/core/xdp.c
978
#define XDP_METADATA_KFUNC(name, _, str, __) BTF_ID(func, str)
net/ethtool/common.c
1207
enum ethtool_link_medium ethtool_str_to_medium(const char *str)
net/ethtool/common.c
1212
if (!strcmp(ethtool_link_medium_names[i], str))
net/ethtool/ioctl.c
2428
void ethtool_puts(u8 **data, const char *str)
net/ethtool/ioctl.c
2430
strscpy(*data, str, ETH_GSTRING_LEN);
net/ethtool/strset.c
354
const char *str = info->strings[i];
net/ethtool/strset.c
358
ethnl_strz_size(str));
net/ieee802154/core.c
26
struct wpan_phy *wpan_phy_find(const char *str)
net/ieee802154/core.c
30
if (WARN_ON(!str))
net/ieee802154/core.c
33
dev = class_find_device_by_name(&wpan_phy_class, str);
net/ipv4/ipconfig.c
1834
static int __init set_carrier_timeout(char *str)
net/ipv4/ipconfig.c
1838
if (!str)
net/ipv4/ipconfig.c
1841
ret = kstrtouint(str, 0, &carrier_timeout);
net/ipv4/tcp.c
5146
static int __init set_thash_entries(char *str)
net/ipv4/tcp.c
5150
if (!str)
net/ipv4/tcp.c
5153
ret = kstrtoul(str, 0, &thash_entries);
net/ipv4/tcp_metrics.c
1002
static int __init set_tcpmhash_entries(char *str)
net/ipv4/tcp_metrics.c
1006
if (!str)
net/ipv4/tcp_metrics.c
1009
ret = kstrtouint(str, 0, &tcpmhash_entries);
net/ipv4/udp.c
3794
static int __init set_uhash_entries(char *str)
net/ipv4/udp.c
3798
if (!str)
net/ipv4/udp.c
3801
ret = kstrtoul(str, 0, &uhash_entries);
net/ipv6/addrconf.c
6567
char str[IPV6_MAX_STRLEN];
net/ipv6/addrconf.c
6576
lctl.data = str;
net/ipv6/addrconf.c
6586
err = snprintf(str, sizeof(str), "%pI6", &secret->secret);
net/ipv6/addrconf.c
6587
if (err >= sizeof(str)) {
net/ipv6/addrconf.c
6596
if (in6_pton(str, -1, addr.in6_u.u6_addr8, -1, NULL) != 1) {
net/netfilter/ipset/ip_set_core.c
353
set->ext_size -= sizeof(*c) + strlen(c->str) + 1;
net/netfilter/ipset/ip_set_core.c
364
strscpy(c->str, ext->comment, len + 1);
net/netfilter/ipset/ip_set_core.c
365
set->ext_size += sizeof(*c) + strlen(c->str) + 1;
net/netfilter/ipset/ip_set_core.c
378
return nla_put_string(skb, IPSET_ATTR_COMMENT, c->str);
net/netfilter/ipset/ip_set_core.c
395
set->ext_size -= sizeof(*c) + strlen(c->str) + 1;
net/netfilter/nf_tables_api.c
4869
char str[40];
net/netfilter/nf_tables_api.c
4872
ret = snprintf(str, sizeof(str), "%ps", set->ops);
net/netfilter/nf_tables_api.c
4877
DEBUG_NET_WARN_ON_ONCE(ret >= sizeof(str));
net/netfilter/nf_tables_api.c
4879
if (nla_put_string(skb, NFTA_SET_TYPE, str))
net/sunrpc/auth_tls.c
124
void *str;
net/sunrpc/auth_tls.c
131
if (xdr_stream_decode_opaque_inline(xdr, &str, starttls_len) != starttls_len)
net/sunrpc/auth_tls.c
133
if (memcmp(str, starttls_token, starttls_len))
net/sunrpc/cache.c
1148
void qword_add(char **bpp, int *lp, char *str)
net/sunrpc/cache.c
1156
ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t");
net/sunrpc/svc.c
153
char str[16];
net/sunrpc/svc.c
156
len = sunrpc_get_pool_mode(str, ARRAY_SIZE(str));
net/sunrpc/svc.c
159
len = min_t(int, len, ARRAY_SIZE(str) - 2);
net/sunrpc/svc.c
162
str[len] = '\n';
net/sunrpc/svc.c
163
str[len + 1] = '\0';
net/sunrpc/svc.c
165
return sysfs_emit(buf, "%s", str);
net/sunrpc/xdr.c
2232
ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str,
net/sunrpc/xdr.c
2242
*str = s;
net/sunrpc/xdr.c
2247
*str = NULL;
net/tipc/addr.c
110
memcpy(str, id, NODE_ID_LEN);
net/tipc/addr.c
111
str[NODE_ID_LEN] = 0;
net/tipc/addr.c
117
sprintf(&str[2 * i], "%02x", id[i]);
net/tipc/addr.c
120
for (i = NODE_ID_STR_LEN - 2; str[i] == '0'; i--)
net/tipc/addr.c
121
str[i] = 0;
net/tipc/addr.c
82
int tipc_nodeid2string(char *str, u8 *id)
net/tipc/addr.h
133
int tipc_nodeid2string(char *str, u8 *id);
net/tipc/link.c
250
static void link_print(struct tipc_link *l, const char *str);
net/tipc/link.c
2553
static void link_print(struct tipc_link *l, const char *str)
net/tipc/link.c
2559
pr_info("%s Link <%s> state %x\n", str, l->name, l->state);
net/tipc/netlink_compat.c
166
static struct sk_buff *tipc_get_err_tlv(char *str)
net/tipc/netlink_compat.c
168
int str_len = strlen(str) + 1;
net/tipc/netlink_compat.c
173
tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len);
net/tipc/netlink_compat.c
695
nla_strscpy(link_info.str, link[TIPC_NLA_LINK_NAME],
samples/bpf/lathist_user.c
23
static void stars(char *str, long val, long max, int width)
samples/bpf/lathist_user.c
28
str[i] = '*';
samples/bpf/lathist_user.c
30
str[i - 1] = '+';
samples/bpf/lathist_user.c
31
str[i] = '\0';
samples/bpf/lwt_len_hist_user.c
18
static void stars(char *str, long val, long max, int width)
samples/bpf/lwt_len_hist_user.c
23
str[i] = '*';
samples/bpf/lwt_len_hist_user.c
25
str[i - 1] = '+';
samples/bpf/lwt_len_hist_user.c
26
str[i] = '\0';
samples/bpf/xdp_sample_user.c
1020
char str[128];
samples/bpf/xdp_sample_user.c
1066
snprintf(str, sizeof(str), "xmit %s->%s", fstr ?: "?",
samples/bpf/xdp_sample_user.c
1072
__COLUMN(".2f") "\n", str, XMIT(pps), DROP(drop),
samples/bpf/xdp_sample_user.c
1079
char str[64];
samples/bpf/xdp_sample_user.c
1090
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
1096
__COLUMN(".2f") "\n", str, XMIT(pps),
samples/bpf/xdp_sample_user.c
1106
const char *str;
samples/bpf/xdp_sample_user.c
1122
str = (sample_log_level & LL_DEFAULT) && out->rx_cnt.pps ?
samples/bpf/xdp_sample_user.c
1127
str, PPS(out->rx_cnt.pps), DROP(out->rx_cnt.drop),
samples/bpf/xdp_sample_user.c
1142
str = out->redir_cnt.suc ? "redirect total" : "redirect";
samples/bpf/xdp_sample_user.c
1143
print_default(" %-20s " FMT_COLUMNl "\n", str,
samples/bpf/xdp_sample_user.c
1150
str = (sample_log_level & LL_DEFAULT) && out->redir_cnt.err ?
samples/bpf/xdp_sample_user.c
1153
print_err(out->redir_cnt.err, " %-20s " FMT_COLUMNl "\n", str,
samples/bpf/xdp_sample_user.c
1160
str = out->except_cnt.hits ? "xdp_exception total" :
samples/bpf/xdp_sample_user.c
1163
print_err(out->except_cnt.hits, " %-20s " FMT_COLUMNl "\n", str,
samples/bpf/xdp_sample_user.c
1170
str = (sample_log_level & LL_DEFAULT) && out->xmit_cnt.pps ?
samples/bpf/xdp_sample_user.c
1177
str, XMIT(out->xmit_cnt.pps),
samples/bpf/xdp_sample_user.c
663
char str[64];
samples/bpf/xdp_sample_user.c
671
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
674
str, PPS(pps), DROP(drop), ERR(err));
samples/bpf/xdp_sample_user.c
710
char str[64];
samples/bpf/xdp_sample_user.c
712
snprintf(str, sizeof(str), "enqueue to cpu %d", to_cpu);
samples/bpf/xdp_sample_user.c
720
str, PPS(pps), DROP(drop), err, "bulk-avg");
samples/bpf/xdp_sample_user.c
726
char str[64];
samples/bpf/xdp_sample_user.c
734
snprintf(str, sizeof(str), "cpu:%d->%d", i, to_cpu);
samples/bpf/xdp_sample_user.c
740
str, PPS(pps), DROP(drop), err, "bulk-avg");
samples/bpf/xdp_sample_user.c
770
char str[64];
samples/bpf/xdp_sample_user.c
776
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
779
str, PASS(xdp_pass), DROP(xdp_drop),
samples/bpf/xdp_sample_user.c
807
char str[64];
samples/bpf/xdp_sample_user.c
815
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
818
str, PPS(pps), DROP(drop), err, "sched");
samples/bpf/xdp_sample_user.c
837
char str[64];
samples/bpf/xdp_sample_user.c
843
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
844
print_default(" %-18s " FMT_COLUMNf "\n", str, REDIR(pps));
samples/bpf/xdp_sample_user.c
864
char str[64];
samples/bpf/xdp_sample_user.c
872
snprintf(str, sizeof(str),
samples/bpf/xdp_sample_user.c
876
print_err(drop, " %-18s " FMT_COLUMNf "\n", str,
samples/bpf/xdp_sample_user.c
889
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
890
print_default(" %-16s" FMT_COLUMNf "\n", str,
samples/bpf/xdp_sample_user.c
928
char str[64];
samples/bpf/xdp_sample_user.c
935
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
937
str, ERR(drop));
samples/bpf/xdp_sample_user.c
964
char str[64];
samples/bpf/xdp_sample_user.c
973
snprintf(str, sizeof(str), "cpu:%d", i);
samples/bpf/xdp_sample_user.c
979
str, XMIT(pps), DROP(drop), err, "drv_err/s",
samples/trace_events/trace-events-sample.h
303
__string( str, string )
samples/trace_events/trace-events-sample.h
315
__assign_str(str);
samples/trace_events/trace-events-sample.h
372
__get_str(str), __get_str(lstr),
samples/vfs/mountinfo.c
149
&buf->str[buf->mnt_root],
samples/vfs/mountinfo.c
150
&buf->str[buf->mnt_point]);
samples/vfs/mountinfo.c
154
printf(" - %s", &buf->str[buf->fs_type]);
samples/vfs/mountinfo.c
156
printf(".%s", &buf->str[buf->fs_subtype]);
samples/vfs/mountinfo.c
158
printf(" %s ", &buf->str[buf->sb_source]);
samples/vfs/mountinfo.c
164
printf(",%s", &buf->str[buf->mnt_opts]);
samples/vfs/samples-vfs.h
50
char str[]; /* Variable size part containing strings */
samples/vfs/test-list-all-mounts.c
143
(stmnt->mask & STATMOUNT_FS_TYPE) ? stmnt->str + stmnt->fs_type : "",
samples/vfs/test-list-all-mounts.c
144
(stmnt->mask & STATMOUNT_MNT_ROOT) ? stmnt->str + stmnt->mnt_root : "",
samples/vfs/test-list-all-mounts.c
145
(stmnt->mask & STATMOUNT_MNT_POINT) ? stmnt->str + stmnt->mnt_point : "",
samples/vfs/test-list-all-mounts.c
146
(stmnt->mask & STATMOUNT_MNT_OPTS) ? stmnt->str + stmnt->mnt_opts : "");
samples/vfs/test-list-all-mounts.c
149
const char *idmap = stmnt->str + stmnt->mnt_uidmap;
samples/vfs/test-list-all-mounts.c
158
const char *idmap = stmnt->str + stmnt->mnt_gidmap;
scripts/basic/fixdep.c
120
static unsigned int strhash(const char *str, unsigned int sz)
scripts/basic/fixdep.c
126
hash = (hash ^ str[i]) * 0x01000193;
scripts/dtc/checks.c
100
xavsprintf_append(&str, fmt, ap);
scripts/dtc/checks.c
103
xasprintf_append(&str, "\n");
scripts/dtc/checks.c
111
xasprintf_append(&str, " also defined at %s\n", file_str);
scripts/dtc/checks.c
116
fputs(str, stderr);
scripts/dtc/checks.c
117
free(str);
scripts/dtc/checks.c
1261
char *str = prop->val.val;
scripts/dtc/checks.c
1262
if (streq("disabled", str))
scripts/dtc/checks.c
231
char *str;
scripts/dtc/checks.c
237
str = prop->val.val;
scripts/dtc/checks.c
240
l = strnlen(str, rem);
scripts/dtc/checks.c
246
str += l + 1;
scripts/dtc/checks.c
67
char *str = NULL;
scripts/dtc/checks.c
81
xasprintf(&str, "%s", file_str);
scripts/dtc/checks.c
84
xasprintf(&str, "<stdout>");
scripts/dtc/checks.c
86
xasprintf(&str, "%s", dti->outname);
scripts/dtc/checks.c
89
xasprintf_append(&str, ": %s (%s): ",
scripts/dtc/checks.c
94
xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name);
scripts/dtc/checks.c
96
xasprintf_append(&str, "%s: ", node->fullpath);
scripts/dtc/checks.c
965
const char *str, *end;
scripts/dtc/checks.c
971
for (str = prop->val.val, end = str + prop->val.len; str < end;
scripts/dtc/checks.c
972
str += strnlen(str, end - str) + 1) {
scripts/dtc/checks.c
973
if (streq(str, compat))
scripts/dtc/dtc.h
102
return streq(str + len - suffix_len, suffix);
scripts/dtc/dtc.h
94
static inline bool strends(const char *str, const char *suffix)
scripts/dtc/dtc.h
98
len = strlen(str);
scripts/dtc/flattree.c
133
static void asm_emit_string(void *e, const char *str, int len)
scripts/dtc/flattree.c
138
fprintf(f, "\t.asciz\t\"%.*s\"\n", len, str);
scripts/dtc/flattree.c
140
fprintf(f, "\t.asciz\t\"%s\"\n", str);
scripts/dtc/flattree.c
221
static int stringtable_insert(struct data *d, const char *str)
scripts/dtc/flattree.c
228
if (streq(str, d->val + i))
scripts/dtc/flattree.c
232
*d = data_append_data(*d, str, strlen(str)+1);
scripts/dtc/flattree.c
52
static void bin_emit_string(void *e, const char *str, int len)
scripts/dtc/flattree.c
57
len = strlen(str);
scripts/dtc/flattree.c
59
*dtbuf = data_append_data(*dtbuf, str, len);
scripts/dtc/flattree.c
611
const char *str;
scripts/dtc/flattree.c
619
str = inb->ptr;
scripts/dtc/flattree.c
625
return str;
scripts/dtc/libfdt/fdt_ro.c
735
int fdt_stringlist_contains(const char *strlist, int listlen, const char *str)
scripts/dtc/libfdt/fdt_ro.c
737
int len = strlen(str);
scripts/dtc/libfdt/fdt_ro.c
741
if (memcmp(str, strlist, len+1) == 0)
scripts/dtc/libfdt/fdt_strerror.c
15
const char *str;
scripts/dtc/libfdt/fdt_strerror.c
19
[(val)] = { .str = #val, }
scripts/dtc/libfdt/fdt_strerror.c
53
const char *s = fdt_errtable[-errval].str;
scripts/dtc/libfdt/libfdt.h
1225
int fdt_stringlist_contains(const char *strlist, int listlen, const char *str);
scripts/dtc/libfdt/libfdt.h
1706
#define fdt_property_string(fdt, name, str) \
scripts/dtc/libfdt/libfdt.h
1707
fdt_property(fdt, name, str, strlen(str)+1)
scripts/dtc/libfdt/libfdt.h
2123
#define fdt_setprop_string(fdt, nodeoffset, name, str) \
scripts/dtc/libfdt/libfdt.h
2124
fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
scripts/dtc/libfdt/libfdt.h
2155
#define fdt_setprop_namelen_string(fdt, nodeoffset, name, namelen, str) \
scripts/dtc/libfdt/libfdt.h
2156
fdt_setprop_namelen((fdt), (nodeoffset), (name), (namelen), (str), \
scripts/dtc/libfdt/libfdt.h
2157
strlen(str) + 1)
scripts/dtc/libfdt/libfdt.h
2332
#define fdt_appendprop_string(fdt, nodeoffset, name, str) \
scripts/dtc/libfdt/libfdt.h
2333
fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
scripts/dtc/util.c
117
char *str;
scripts/dtc/util.c
125
str = xmalloc(len);
scripts/dtc/util.c
126
memcpy(str, path, lenp);
scripts/dtc/util.c
128
str[lenp] = '/';
scripts/dtc/util.c
131
memcpy(str+lenp, name, lenn+1);
scripts/dtc/util.c
132
return str;
scripts/dtc/util.h
34
static inline void NORETURN PRINTF(1, 2) die(const char *str, ...)
scripts/dtc/util.h
38
va_start(ap, str);
scripts/dtc/util.h
40
vfprintf(stderr, str, ap);
scripts/dtc/yamltree.c
101
assert(str[len-1] == '\0');
scripts/dtc/yamltree.c
105
assert(isascii(str[i]));
scripts/dtc/yamltree.c
108
(yaml_char_t *)YAML_STR_TAG, (yaml_char_t*)str,
scripts/dtc/yamltree.c
96
static void yaml_propval_string(yaml_emitter_t *emitter, char *str, int len)
scripts/gcc-plugins/gcc-common.h
103
static inline tree build_const_char_string(int len, const char *str)
scripts/gcc-plugins/gcc-common.h
107
cstr = build_string(len, str);
scripts/gcc-plugins/stackleak_plugin.c
447
#define STRING_EQUAL(node, str) string_equal(node, str, strlen(str))
scripts/gendwarfksyms/die.c
132
void die_map_add_string(struct die *cd, const char *str)
scripts/gendwarfksyms/die.c
140
df->data.str = xstrdup(str);
scripts/gendwarfksyms/die.c
78
free(df->data.str);
scripts/gendwarfksyms/dwarf.c
816
df->data.str);
scripts/gendwarfksyms/dwarf.c
817
process(NULL, df->data.str);
scripts/gendwarfksyms/examples/kabi.h
107
#define KABI_TYPE_STRING(type, str) ___KABI_RULE(type_string, type, str)
scripts/gendwarfksyms/gendwarfksyms.h
159
char *str;
scripts/gendwarfksyms/gendwarfksyms.h
197
void die_map_add_string(struct die *pd, const char *str);
scripts/gendwarfksyms/gendwarfksyms.h
285
bool kabi_get_type_string(const char *type, const char **str);
scripts/gendwarfksyms/kabi.c
348
bool kabi_get_type_string(const char *type, const char **str)
scripts/gendwarfksyms/kabi.c
354
*str = rule->value;
scripts/gendwarfksyms/types.c
158
static void type_parse(const char *name, const char *str,
scripts/gendwarfksyms/types.c
22
const char *str;
scripts/gendwarfksyms/types.c
330
if (is_type_prefix(entry->str)) {
scripts/gendwarfksyms/types.c
331
if (type_map_get(entry->str, &e))
scripts/gendwarfksyms/types.c
333
entry->str, type->name);
scripts/gendwarfksyms/types.c
340
version_add(version, entry->str);
scripts/gendwarfksyms/types.c
346
version_add(version, entry->str);
scripts/gendwarfksyms/types.c
368
type_expansion_append(type, df->data.str, NULL);
scripts/gendwarfksyms/types.c
415
static void type_parse(const char *name, const char *str,
scripts/gendwarfksyms/types.c
423
if (!*str)
scripts/gendwarfksyms/types.c
426
for (pos = 0; str[pos]; ++pos) {
scripts/gendwarfksyms/types.c
430
if (!is_type_prefix(&str[pos]))
scripts/gendwarfksyms/types.c
439
if (str[end] == '\'') {
scripts/gendwarfksyms/types.c
443
while (str[end] && str[end] != marker)
scripts/gendwarfksyms/types.c
448
if (str[end] != marker)
scripts/gendwarfksyms/types.c
450
str[pos], name, str);
scripts/gendwarfksyms/types.c
458
str[pos], name, str);
scripts/gendwarfksyms/types.c
462
fragment = xstrndup(&str[start], pos - start);
scripts/gendwarfksyms/types.c
471
fragment = xstrndup(&str[pos], end - pos);
scripts/gendwarfksyms/types.c
479
if (str[start])
scripts/gendwarfksyms/types.c
480
type_expansion_append(type, &str[start], NULL);
scripts/gendwarfksyms/types.c
49
entry->str = s;
scripts/gendwarfksyms/types.c
53
return strlen(entry->str);
scripts/gendwarfksyms/types.c
61
if (entry->str)
scripts/gendwarfksyms/types.c
62
checkp(fputs(entry->str, file));
scripts/genksyms/genksyms.h
81
#define xstrdup(str) ({ char *__str = strdup(str); \
scripts/genksyms/keywords.c
75
static int is_reserved_word(register const char *str, register unsigned int len)
scripts/genksyms/keywords.c
81
if (len == l && !memcmp(str, r->name, len))
scripts/kallsyms.c
487
static unsigned char *find_token(unsigned char *str, int len,
scripts/kallsyms.c
493
if (str[i] == token[0] && str[i+1] == token[1])
scripts/kallsyms.c
494
return &str[i];
scripts/kallsyms.c
501
static void compress_symbols(const unsigned char *str, int idx)
scripts/kallsyms.c
512
p2 = find_token(p1, len, str);
scripts/kallsyms.c
531
p2 = find_token(p1, size, str);
scripts/kconfig/conf.c
60
static void strip(char *str)
scripts/kconfig/conf.c
62
char *p = str;
scripts/kconfig/conf.c
68
if (p != str)
scripts/kconfig/conf.c
69
memmove(str, p, l + 1);
scripts/kconfig/conf.c
72
p = str + l - 1;
scripts/kconfig/conf.c
78
static void xfgets(char *str, int size, FILE *in)
scripts/kconfig/conf.c
80
if (!fgets(str, size, in))
scripts/kconfig/conf.c
84
printf("%s", str);
scripts/kconfig/confdata.c
809
const char *str;
scripts/kconfig/confdata.c
853
str = menu_get_prompt(menu);
scripts/kconfig/confdata.c
857
"#\n", str);
scripts/kconfig/expr.c
1107
static void expr_print_file_helper(void *data, struct symbol *sym, const char *str)
scripts/kconfig/expr.c
1109
xfwrite(str, strlen(str), 1, data);
scripts/kconfig/expr.c
1117
static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *str)
scripts/kconfig/expr.c
1126
unsigned extra_length = strlen(str);
scripts/kconfig/expr.c
1142
str_append(gs, str);
scripts/kconfig/expr.c
859
static enum string_value_kind expr_parse_string(const char *str,
scripts/kconfig/expr.c
870
val->s = !strcmp(str, "n") ? 0 :
scripts/kconfig/expr.c
871
!strcmp(str, "m") ? 1 :
scripts/kconfig/expr.c
872
!strcmp(str, "y") ? 2 : -1;
scripts/kconfig/expr.c
875
val->s = strtoll(str, &tail, 10);
scripts/kconfig/expr.c
879
val->u = strtoull(str, &tail, 16);
scripts/kconfig/expr.c
883
val->s = strtoll(str, &tail, 0);
scripts/kconfig/expr.c
887
return !errno && !*tail && tail > str && isxdigit(tail[-1])
scripts/kconfig/lkc.h
45
static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out)
scripts/kconfig/lkc.h
49
if (fwrite(str, len, count, out) != count)
scripts/kconfig/lkc_proto.h
34
bool sym_string_within_range(struct symbol *sym, const char *str);
scripts/kconfig/lxdialog/dialog.h
134
char str[MAXITEMSTR]; /* prompt displayed */
scripts/kconfig/lxdialog/util.c
578
vsnprintf(item_cur->node.str, sizeof(item_cur->node.str), fmt, ap);
scripts/kconfig/lxdialog/util.c
587
avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str);
scripts/kconfig/lxdialog/util.c
590
vsnprintf(item_cur->node.str + strlen(item_cur->node.str),
scripts/kconfig/lxdialog/util.c
592
item_cur->node.str[sizeof(item_cur->node.str) - 1] = '\0';
scripts/kconfig/lxdialog/util.c
661
return item_cur->node.str;
scripts/kconfig/nconf.c
258
char str[256];
scripts/kconfig/nconf.c
523
char *str = k_menu_items[index].str;
scripts/kconfig/nconf.c
524
if (strcasestr(str, match_str) != NULL)
scripts/kconfig/nconf.c
555
vsnprintf(k_menu_items[items_num].str,
scripts/kconfig/nconf.c
556
sizeof(k_menu_items[items_num].str),
scripts/kconfig/nconf.c
561
memcpy(k_menu_items[items_num].str, "XXX", 3);
scripts/kconfig/nconf.c
564
k_menu_items[items_num].str,
scripts/kconfig/nconf.c
565
k_menu_items[items_num].str);
scripts/kconfig/nconf.c
592
k_menu_items[index].str, new_str);
scripts/kconfig/nconf.c
593
strncpy(k_menu_items[index].str,
scripts/kconfig/nconf.c
595
sizeof(k_menu_items[index].str));
scripts/kconfig/nconf.c
597
k_menu_items[index].str[sizeof(k_menu_items[index].str) - 1] = '\0';
scripts/kconfig/nconf.c
601
k_menu_items[index].str,
scripts/kconfig/nconf.c
602
k_menu_items[index].str);
scripts/kconfig/nconf.gui.c
121
void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs)
scripts/kconfig/nconf.gui.c
124
mvwprintw(win, y, (width - strlen(str)) / 2, "%s", str);
scripts/kconfig/nconf.h
73
void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs);
scripts/kconfig/parser.y
658
static void print_quoted_string(FILE *out, const char *str)
scripts/kconfig/parser.y
664
while ((p = strchr(str, '"'))) {
scripts/kconfig/parser.y
665
len = p - str;
scripts/kconfig/parser.y
667
fprintf(out, "%.*s", len, str);
scripts/kconfig/parser.y
669
str = p + 1;
scripts/kconfig/parser.y
671
fputs(str, out);
scripts/kconfig/preprocess.c
350
static char *eval_clause(const char *str, size_t len, int argc, char *argv[])
scripts/kconfig/preprocess.c
359
tmp = xstrndup(str, len);
scripts/kconfig/preprocess.c
460
static char *expand_dollar_with_args(const char **str, int argc, char *argv[])
scripts/kconfig/preprocess.c
462
const char *p = *str;
scripts/kconfig/preprocess.c
472
*str = p;
scripts/kconfig/preprocess.c
492
*str = q + 1;
scripts/kconfig/preprocess.c
497
char *expand_dollar(const char **str)
scripts/kconfig/preprocess.c
499
return expand_dollar_with_args(str, 0, NULL);
scripts/kconfig/preprocess.c
502
static char *__expand_string(const char **str, bool (*is_end)(char c),
scripts/kconfig/preprocess.c
513
p = in = *str;
scripts/kconfig/preprocess.c
541
*str = p;
scripts/kconfig/preprocess.c
578
char *expand_one_token(const char **str)
scripts/kconfig/preprocess.c
580
return __expand_string(str, is_end_of_token, 0, NULL);
scripts/kconfig/preprocess.h
16
char *expand_dollar(const char **str);
scripts/kconfig/preprocess.h
17
char *expand_one_token(const char **str);
scripts/kconfig/qconf.cc
1112
QString ConfigInfoView::print_filter(const QString &str)
scripts/kconfig/qconf.cc
1115
QString res = str;
scripts/kconfig/qconf.cc
1134
void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char *str)
scripts/kconfig/qconf.cc
1140
*stream << print_filter(str);
scripts/kconfig/qconf.cc
1143
*stream << print_filter(str);
scripts/kconfig/qconf.cc
1491
QString str;
scripts/kconfig/qconf.cc
1493
str = QFileDialog::getOpenFileName(this, QString(), configname);
scripts/kconfig/qconf.cc
1494
if (str.isEmpty())
scripts/kconfig/qconf.cc
1497
if (conf_read(str.toLocal8Bit().constData()))
scripts/kconfig/qconf.cc
1500
configname = str;
scripts/kconfig/qconf.cc
1518
QString str;
scripts/kconfig/qconf.cc
1520
str = QFileDialog::getSaveFileName(this, QString(), configname);
scripts/kconfig/qconf.cc
1521
if (str.isEmpty())
scripts/kconfig/qconf.cc
1524
if (conf_write(str.toLocal8Bit().constData())) {
scripts/kconfig/qconf.cc
1529
configname = str;
scripts/kconfig/qconf.cc
1726
static const QString str =
scripts/kconfig/qconf.cc
1747
QMessageBox::information(this, "qconf", str);
scripts/kconfig/qconf.cc
1752
static const QString str = "qconf is Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>.\n"
scripts/kconfig/qconf.cc
1759
QMessageBox::information(this, "qconf", str + qVersion());
scripts/kconfig/qconf.cc
987
QString str;
scripts/kconfig/qconf.cc
989
str += "<big>Symbol: <b>";
scripts/kconfig/qconf.cc
990
str += print_filter(sym->name);
scripts/kconfig/qconf.cc
991
str += "</b></big><br><br>value: ";
scripts/kconfig/qconf.cc
992
str += print_filter(sym_get_string_value(sym));
scripts/kconfig/qconf.cc
993
str += "<br>visibility: ";
scripts/kconfig/qconf.cc
994
str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n";
scripts/kconfig/qconf.cc
995
str += "<br>";
scripts/kconfig/qconf.cc
996
str += debug_info(sym);
scripts/kconfig/qconf.cc
998
setText(str);
scripts/kconfig/qconf.h
206
static QString print_filter(const QString &str);
scripts/kconfig/qconf.h
207
static void expr_print_help(void *data, struct symbol *sym, const char *str);
scripts/kconfig/symbol.c
671
bool sym_string_valid(struct symbol *sym, const char *str)
scripts/kconfig/symbol.c
679
ch = *str++;
scripts/kconfig/symbol.c
681
ch = *str++;
scripts/kconfig/symbol.c
684
if (ch == '0' && *str != 0)
scripts/kconfig/symbol.c
686
while ((ch = *str++)) {
scripts/kconfig/symbol.c
692
if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X'))
scripts/kconfig/symbol.c
693
str += 2;
scripts/kconfig/symbol.c
694
ch = *str++;
scripts/kconfig/symbol.c
698
} while ((ch = *str++));
scripts/kconfig/symbol.c
702
switch (str[0]) {
scripts/kconfig/symbol.c
714
bool sym_string_within_range(struct symbol *sym, const char *str)
scripts/kconfig/symbol.c
721
return sym_string_valid(sym, str);
scripts/kconfig/symbol.c
723
if (!sym_string_valid(sym, str))
scripts/kconfig/symbol.c
728
val = strtoll(str, NULL, 10);
scripts/kconfig/symbol.c
732
if (!sym_string_valid(sym, str))
scripts/kconfig/symbol.c
737
val = strtoll(str, NULL, 16);
scripts/kconfig/symbol.c
742
switch (str[0]) {
scripts/kconfig/symbol.c
816
const char *str = "";
scripts/kconfig/symbol.c
841
str = (const char *)ds->curr.val;
scripts/kconfig/symbol.c
871
if (!str[0])
scripts/kconfig/symbol.c
872
str = "0";
scripts/kconfig/symbol.c
875
if (!str[0])
scripts/kconfig/symbol.c
876
str = "0x0";
scripts/kconfig/symbol.c
881
return str;
scripts/mod/file2alias.c
146
#define ADD(str, sep, cond, field) \
scripts/mod/file2alias.c
148
strcat(str, sep); \
scripts/mod/file2alias.c
150
sprintf(str + strlen(str), \
scripts/mod/file2alias.c
156
sprintf(str + strlen(str), "*"); \
scripts/mod/file2alias.c
159
static inline void add_uuid(char *str, uuid_le uuid)
scripts/mod/file2alias.c
161
int len = strlen(str);
scripts/mod/file2alias.c
163
sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
scripts/mod/file2alias.c
170
static inline void add_guid(char *str, guid_t guid)
scripts/mod/file2alias.c
172
int len = strlen(str);
scripts/mod/file2alias.c
174
sprintf(str + len, "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",
scripts/mod/file2alias.c
75
n = vsnprintf(new->str, len, fmt, ap);
scripts/mod/file2alias.c
84
if (append_wildcard && (n == 0 || new->str[n - 1] != '*')) {
scripts/mod/file2alias.c
85
new->str[n] = '*';
scripts/mod/file2alias.c
86
new->str[n + 1] = '\0';
scripts/mod/file2alias.c
91
if (!strcmp(als->str, new->str)) {
scripts/mod/modpost.c
100
return strcmp(str + strlen(str) - strlen(postfix), postfix) == 0;
scripts/mod/modpost.c
2093
alias->builtin_modname, alias->str);
scripts/mod/modpost.c
2119
buf_printf(&buf, "MODULE_ALIAS(\"%s\");\n", alias->str);
scripts/mod/modpost.c
95
static inline bool strends(const char *str, const char *postfix)
scripts/mod/modpost.c
97
if (strlen(str) < strlen(postfix))
scripts/mod/modpost.h
108
char str[];
scripts/mod/modpost.h
84
#define strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0)
scripts/tracepoint-update.c
112
static int find_event(const char *str, void *array, size_t size)
scripts/tracepoint-update.c
114
return bsearch(&str, array, size, sizeof(char *), compare_strings) != NULL;
scripts/tracepoint-update.c
133
if (!find_event(str, etrace->array, etrace->count)) {
scripts/tracepoint-update.c
134
fprintf(stderr, "warning: tracepoint '%s' is unused", str);
scripts/tracepoint-update.c
42
static int add_string(const char *str, const char ***vals, int *count)
scripts/tracepoint-update.c
59
array[(*count)++] = str;
scripts/tracepoint-update.c
75
for (const char *str = (void *)(ehdr) + shdr_offset(sec), \
scripts/tracepoint-update.c
76
*end = str + shdr_size(sec); \
scripts/tracepoint-update.c
77
len = strlen(str), str < end; \
scripts/tracepoint-update.c
78
str += (len) + 1)
scripts/tracepoint-update.c
98
if (add_string(str, &vals, &count) < 0)
scripts/unifdef.c
1121
findsym(const char *str)
scripts/unifdef.c
1126
cp = skipsym(str);
scripts/unifdef.c
1127
if (cp == str)
scripts/unifdef.c
1135
(int)(cp-str), str,
scripts/unifdef.c
1141
if (strlcmp(symname[symind], str, cp-str) == 0) {
scripts/unifdef.c
805
const char *str;
scripts/unifdef.c
927
for (op = ops->op; op->str != NULL; op++)
scripts/unifdef.c
928
if (strncmp(cp, op->str, strlen(op->str)) == 0)
scripts/unifdef.c
930
if (op->str == NULL)
scripts/unifdef.c
932
cp += strlen(op->str);
scripts/unifdef.c
933
debug("eval%d %s", ops - eval_ops, op->str);
security/apparmor/file.c
50
char str[10];
security/apparmor/file.c
53
aa_perm_mask_to_str(str, sizeof(str), aa_file_perm_chrs,
security/apparmor/file.c
55
audit_log_format(ab, " requested_mask=\"%s\"", str);
security/apparmor/file.c
58
aa_perm_mask_to_str(str, sizeof(str), aa_file_perm_chrs,
security/apparmor/file.c
60
audit_log_format(ab, " denied_mask=\"%s\"", str);
security/apparmor/include/label.h
297
int aa_label_snxprint(char *str, size_t size, struct aa_ns *view,
security/apparmor/include/label.h
311
struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str,
security/apparmor/include/label.h
314
struct aa_label *aa_label_parse(struct aa_label *base, const char *str,
security/apparmor/include/label.h
317
static inline const char *aa_label_strn_split(const char *str, int n)
security/apparmor/include/label.h
322
state = aa_dfa_matchn_until(stacksplitdfa, DFA_START, str, n, &pos);
security/apparmor/include/label.h
329
static inline const char *aa_label_str_split(const char *str)
security/apparmor/include/label.h
334
state = aa_dfa_match_until(stacksplitdfa, DFA_START, str, &pos);
security/apparmor/include/lib.h
100
void aa_info_message(const char *str);
security/apparmor/include/lib.h
125
static inline bool aa_strneq(const char *str, const char *sub, int len)
security/apparmor/include/lib.h
127
return !strncmp(str, sub, len) && !str[len];
security/apparmor/include/lib.h
170
#define str_to_counted(str) \
security/apparmor/include/lib.h
171
((struct counted_str *)(str - offsetof(struct counted_str, name)))
security/apparmor/include/lib.h
179
static inline __counted char *aa_get_str(__counted char *str)
security/apparmor/include/lib.h
181
if (str)
security/apparmor/include/lib.h
182
kref_get(&(str_to_counted(str)->count));
security/apparmor/include/lib.h
184
return str;
security/apparmor/include/lib.h
187
static inline void aa_put_str(__counted char *str)
security/apparmor/include/lib.h
189
if (str)
security/apparmor/include/lib.h
190
kref_put(&str_to_counted(str)->count, aa_str_kref);
security/apparmor/include/lib.h
259
const char *str, int len)
security/apparmor/include/lib.h
264
if (aa_strneq(policy->name, str, len))
security/apparmor/include/lib.h
74
int aa_parse_debug_params(const char *str);
security/apparmor/include/lib.h
97
const char *skipn_spaces(const char *str, size_t n);
security/apparmor/include/match.h
130
const char *str, int len);
security/apparmor/include/match.h
132
const char *str);
security/apparmor/include/match.h
136
const char *str, const char **retpos);
security/apparmor/include/match.h
138
const char *str, int n, const char **retpos);
security/apparmor/include/match.h
156
const char *str, unsigned int *count);
security/apparmor/include/perms.h
203
void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs,
security/apparmor/label.c
1476
#define update_for_len(total, len, size, str) \
security/apparmor/label.c
1484
str += ulen; \
security/apparmor/label.c
1501
static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view,
security/apparmor/label.c
1507
AA_BUG(!str && size != 0);
security/apparmor/label.c
1521
return snprintf(str, size, "%s", "unconfined");
security/apparmor/label.c
1522
return snprintf(str, size, "%s", ns_name);
security/apparmor/label.c
1530
return snprintf(str, size, ":%s:%s (%s)", ns_name,
security/apparmor/label.c
1532
return snprintf(str, size, "%s (%s)", profile->base.hname,
security/apparmor/label.c
1537
return snprintf(str, size, ":%s:%s", ns_name,
security/apparmor/label.c
1539
return snprintf(str, size, "%s", profile->base.hname);
security/apparmor/label.c
1612
int aa_label_snxprint(char *str, size_t size, struct aa_ns *ns,
security/apparmor/label.c
1621
AA_BUG(!str && size != 0);
security/apparmor/label.c
1626
len = snprintf(str, size, "_");
security/apparmor/label.c
1627
update_for_len(total, len, size, str);
security/apparmor/label.c
1635
len = snprintf(str, size, "//&");
security/apparmor/label.c
1636
update_for_len(total, len, size, str);
security/apparmor/label.c
1638
len = aa_profile_snxprint(str, size, ns, profile,
security/apparmor/label.c
1641
update_for_len(total, len, size, str);
security/apparmor/label.c
1648
return snprintf(str, size, "%s", "unconfined");
security/apparmor/label.c
1649
return snprintf(str, size, "%s", aa_hidden_ns_name);
security/apparmor/label.c
1656
len = snprintf(str, size, " (%s)",
security/apparmor/label.c
1658
update_for_len(total, len, size, str);
security/apparmor/label.c
1727
const char *str;
security/apparmor/label.c
1741
str = name;
security/apparmor/label.c
1743
str = (char *) label->hname;
security/apparmor/label.c
1744
len = strlen(str);
security/apparmor/label.c
1746
if (audit_string_contains_control(str, len))
security/apparmor/label.c
1747
audit_log_n_hex(ab, str, len);
security/apparmor/label.c
1749
audit_log_n_string(ab, str, len);
security/apparmor/label.c
1761
char *str;
security/apparmor/label.c
1764
len = aa_label_asxprint(&str, ns, label, flags, gfp);
security/apparmor/label.c
1769
seq_puts(f, str);
security/apparmor/label.c
1770
kfree(str);
security/apparmor/label.c
1784
char *str;
security/apparmor/label.c
1787
len = aa_label_asxprint(&str, ns, label, flags, gfp);
security/apparmor/label.c
1792
pr_info("%s", str);
security/apparmor/label.c
1793
kfree(str);
security/apparmor/label.c
1809
static int label_count_strn_entries(const char *str, size_t n)
security/apparmor/label.c
1811
const char *end = str + n;
security/apparmor/label.c
1815
AA_BUG(!str);
security/apparmor/label.c
1817
for (split = aa_label_strn_split(str, end - str);
security/apparmor/label.c
1819
split = aa_label_strn_split(str, end - str)) {
security/apparmor/label.c
1821
str = split + 3;
security/apparmor/label.c
1836
const char *str, size_t n)
security/apparmor/label.c
1838
const char *first = skipn_spaces(str, n);
security/apparmor/label.c
1841
return aa_fqlookupn_profile(base, str, n);
security/apparmor/label.c
1843
return aa_fqlookupn_profile(currentbase, str, n);
security/apparmor/label.c
1858
struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str,
security/apparmor/label.c
1865
const char *end = str + n;
security/apparmor/label.c
1869
AA_BUG(!str);
security/apparmor/label.c
1871
str = skipn_spaces(str, n);
security/apparmor/label.c
1872
if (str == NULL || (DEBUG_ABS_ROOT && *str == '_' &&
security/apparmor/label.c
1876
len = label_count_strn_entries(str, end - str);
security/apparmor/label.c
1877
if (*str == '&' || force_stack) {
security/apparmor/label.c
1881
if (*str == '&')
security/apparmor/label.c
1882
str++;
security/apparmor/label.c
1892
for (split = aa_label_strn_split(str, end - str), i = stack;
security/apparmor/label.c
1894
vec[i] = fqlookupn_profile(base, currbase, str, split - str);
security/apparmor/label.c
1903
str = split + 3;
security/apparmor/label.c
1904
split = aa_label_strn_split(str, end - str);
security/apparmor/label.c
1908
vec[i] = fqlookupn_profile(base, currbase, str, end - str);
security/apparmor/label.c
1940
struct aa_label *aa_label_parse(struct aa_label *base, const char *str,
security/apparmor/label.c
1943
return aa_label_strn_parse(base, str, strlen(str), gfp, create,
security/apparmor/lib.c
101
int len = scnprintf(str, size, "%s%s", total ? "," : "",
security/apparmor/lib.c
102
ent->str);
security/apparmor/lib.c
104
str += len;
security/apparmor/lib.c
173
const char *skipn_spaces(const char *str, size_t n)
security/apparmor/lib.c
175
for (; n && isspace(*str); --n)
security/apparmor/lib.c
176
++str;
security/apparmor/lib.c
178
return (char *)str;
security/apparmor/lib.c
223
void aa_info_message(const char *str)
security/apparmor/lib.c
228
ad.info = str;
security/apparmor/lib.c
231
printk(KERN_INFO "AppArmor: %s\n", str);
security/apparmor/lib.c
236
struct counted_str *str;
security/apparmor/lib.c
238
str = kmalloc_flex(*str, name, size, gfp);
security/apparmor/lib.c
239
if (!str)
security/apparmor/lib.c
242
kref_init(&str->count);
security/apparmor/lib.c
243
return str->name;
security/apparmor/lib.c
29
const char *str;
security/apparmor/lib.c
302
void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, u32 mask)
security/apparmor/lib.c
313
*str++ = chrs[i];
security/apparmor/lib.c
317
*str = '\0';
security/apparmor/lib.c
341
char str[33];
security/apparmor/lib.c
345
aa_perm_mask_to_str(str, sizeof(str), chrs, mask & chrsmask);
security/apparmor/lib.c
347
audit_log_format(ab, "%s", str);
security/apparmor/lib.c
57
for (entry = table; entry->str != NULL; entry++) {
security/apparmor/lib.c
58
if (strncmp(entry->str, name, len) == 0 &&
security/apparmor/lib.c
59
strlen(entry->str) == len)
security/apparmor/lib.c
65
int aa_parse_debug_params(const char *str)
security/apparmor/lib.c
72
size_t n = strcspn(str, "\r\n,");
security/apparmor/lib.c
74
next = str + n;
security/apparmor/lib.c
75
ent = val_table_find_ent(debug_values_table, str, next - str);
security/apparmor/lib.c
80
(int)(next - str), str);
security/apparmor/lib.c
81
str = next + 1;
security/apparmor/lib.c
93
static int val_mask_to_str(char *str, size_t size,
security/apparmor/lib.c
99
for (ent = table; ent->str; ent++) {
security/apparmor/lsm.c
1898
static int __init apparmor_enabled_setup(char *str)
security/apparmor/lsm.c
1901
int error = kstrtoul(str, 0, &enabled);
security/apparmor/match.c
467
const char *str, int len)
security/apparmor/match.c
483
u8 c = equiv[(u8) *str];
security/apparmor/match.c
486
str++;
security/apparmor/match.c
491
match_char(state, def, base, next, check, (u8) *str);
security/apparmor/match.c
492
str++;
security/apparmor/match.c
511
aa_state_t aa_dfa_match(struct aa_dfa *dfa, aa_state_t start, const char *str)
security/apparmor/match.c
527
while (*str) {
security/apparmor/match.c
528
u8 c = equiv[(u8) *str];
security/apparmor/match.c
531
str++;
security/apparmor/match.c
535
while (*str) {
security/apparmor/match.c
536
match_char(state, def, base, next, check, (u8) *str);
security/apparmor/match.c
537
str++;
security/apparmor/match.c
603
const char *str, const char **retpos)
security/apparmor/match.c
620
while (*str) {
security/apparmor/match.c
621
pos = base_idx(base[state]) + equiv[(u8) *str++];
security/apparmor/match.c
631
while (*str) {
security/apparmor/match.c
632
pos = base_idx(base[state]) + (u8) *str++;
security/apparmor/match.c
642
*retpos = str;
security/apparmor/match.c
664
const char *str, int n, const char **retpos)
security/apparmor/match.c
683
pos = base_idx(base[state]) + equiv[(u8) *str++];
security/apparmor/match.c
694
pos = base_idx(base[state]) + (u8) *str++;
security/apparmor/match.c
704
*retpos = str;
security/apparmor/match.c
740
const char *str, struct match_workbuf *wb,
security/apparmor/match.c
750
AA_BUG(!str);
security/apparmor/match.c
763
while (*str) {
security/apparmor/match.c
767
pos = base_idx(base[state]) + equiv[(u8) *str++];
security/apparmor/match.c
773
state = aa_dfa_match(dfa, state, str);
security/apparmor/match.c
782
while (*str) {
security/apparmor/match.c
786
pos = base_idx(base[state]) + (u8) *str++;
security/apparmor/match.c
792
state = aa_dfa_match(dfa, state, str);
security/apparmor/match.c
821
const char *str, unsigned int *count)
security/apparmor/match.c
827
return leftmatch_fb(dfa, start, str, &wb, count);
security/apparmor/net.c
106
audit_unix_addr(ab, str, addr, addrlen);
security/apparmor/net.c
108
audit_unix_addr(ab, str, NULL, 0);
security/apparmor/net.c
76
static void audit_unix_addr(struct audit_buffer *ab, const char *str,
security/apparmor/net.c
82
audit_log_format(ab, " %s=none", str);
security/apparmor/net.c
84
audit_log_format(ab, " %s=", str);
security/apparmor/net.c
87
audit_log_format(ab, " %s=\"@", str);
security/apparmor/net.c
97
static void audit_unix_sk_addr(struct audit_buffer *ab, const char *str,
security/apparmor/path.c
203
char *str = NULL;
security/apparmor/path.c
204
int error = d_namespace_path(path, buffer, &str, flags, disconnected);
security/apparmor/path.c
217
*name = str;
security/apparmor/path.c
25
static int prepend(char **buffer, int buflen, const char *str, int namelen)
security/apparmor/path.c
31
memcpy(*buffer, str, namelen);
security/apparmor/policy_unpack.c
469
static int process_strs_entry(char *str, int size, bool multi)
security/apparmor/policy_unpack.c
479
if (str[size - 2])
security/apparmor/policy_unpack.c
483
char *save = str;
security/apparmor/policy_unpack.c
484
char *pos = str;
security/apparmor/policy_unpack.c
485
char *end = multi ? str + size - 2 : str + size - 1;
security/apparmor/policy_unpack.c
487
while (str < end) {
security/apparmor/policy_unpack.c
488
if (str == pos) {
security/apparmor/policy_unpack.c
490
if (!*str) {
security/apparmor/policy_unpack.c
493
(unsigned long)(str - save), size, c);
security/apparmor/policy_unpack.c
496
if (isspace(*str))
security/apparmor/policy_unpack.c
498
if (*str == ':') {
security/apparmor/policy_unpack.c
502
if (!str[1])
security/apparmor/policy_unpack.c
505
} else if (!*str) {
security/apparmor/policy_unpack.c
507
*str = ':';
security/apparmor/policy_unpack.c
510
pos = str + 1;
security/apparmor/policy_unpack.c
512
str++;
security/apparmor/policy_unpack.c
555
char *str;
security/apparmor/policy_unpack.c
556
int c, size2 = aa_unpack_strdup(e, &str, NULL);
security/apparmor/policy_unpack.c
560
c = process_strs_entry(str, size2, multi);
security/apparmor/policy_unpack.c
572
table[i].strs = str;
security/inode.c
319
static char *str;
security/inode.c
325
if (unlikely(!str || !len)) {
security/inode.c
345
if (!str) {
security/inode.c
346
str = str_tmp;
security/inode.c
353
return simple_read_from_buffer(buf, count, ppos, str, len);
security/integrity/evm/evm_main.c
76
static int __init evm_set_fixmode(char *str)
security/integrity/evm/evm_main.c
78
if (strncmp(str, "fix", 3) == 0)
security/integrity/evm/evm_main.c
81
pr_err("invalid \"%s\" mode", str);
security/integrity/ima/ima.h
332
#define __ima_hook_enumify(ENUM, str) ENUM,
security/integrity/ima/ima.h
334
#define __ima_hook_measuring_stringify(ENUM, str) \
security/integrity/ima/ima.h
335
(__ima_stringify(measuring_ ##str)),
security/integrity/ima/ima_appraise.c
29
const char *str = ima_appraise_cmdline_default;
security/integrity/ima/ima_appraise.c
33
if (!str)
security/integrity/ima/ima_appraise.c
36
if (strncmp(str, "off", 3) == 0)
security/integrity/ima/ima_appraise.c
38
else if (strncmp(str, "log", 3) == 0)
security/integrity/ima/ima_appraise.c
40
else if (strncmp(str, "fix", 3) == 0)
security/integrity/ima/ima_appraise.c
42
else if (strncmp(str, "enforce", 7) == 0)
security/integrity/ima/ima_appraise.c
45
pr_err("invalid \"%s\" appraise option", str);
security/integrity/ima/ima_appraise.c
52
str);
security/integrity/ima/ima_fs.c
30
static int __init default_canonical_fmt_setup(char *str)
security/integrity/ima/ima_main.c
48
static int __init ima_setup(char *str)
security/integrity/ima/ima_main.c
55
if (strncmp(str, "off", 3) == 0)
security/integrity/ima/ima_main.c
57
else if (strncmp(str, "on", 2) == 0)
security/integrity/ima/ima_main.c
60
pr_err("Invalid ima setup option: \"%s\" , please specify ima=on|off.", str);
security/integrity/ima/ima_main.c
66
static int __init hash_setup(char *str)
security/integrity/ima/ima_main.c
75
if (strncmp(str, "sha1", 4) == 0) {
security/integrity/ima/ima_main.c
77
} else if (strncmp(str, "md5", 3) == 0) {
security/integrity/ima/ima_main.c
81
str, IMA_TEMPLATE_IMA_NAME);
security/integrity/ima/ima_main.c
87
i = match_string(hash_algo_name, HASH_ALGO__LAST, str);
security/integrity/ima/ima_main.c
89
pr_err("invalid hash algorithm \"%s\"", str);
security/integrity/ima/ima_policy.c
2019
#define __ima_hook_stringify(func, str) (#func),
security/integrity/ima/ima_policy.c
271
static int __init default_measure_policy_setup(char *str)
security/integrity/ima/ima_policy.c
285
static int __init policy_setup(char *str)
security/integrity/ima/ima_policy.c
289
while ((p = strsep(&str, " |\n")) != NULL) {
security/integrity/ima/ima_policy.c
310
static int __init default_appraise_policy_setup(char *str)
security/integrity/ima/ima_template.c
104
static int __init ima_template_setup(char *str)
security/integrity/ima/ima_template.c
107
int template_len = strlen(str);
security/integrity/ima/ima_template.c
119
template_desc = lookup_template_desc(str);
security/integrity/ima/ima_template.c
122
str, CONFIG_IMA_DEFAULT_TEMPLATE);
security/integrity/ima/ima_template.c
130
if (template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 &&
security/integrity/ima/ima_template.c
142
static int __init ima_template_fmt_setup(char *str)
security/integrity/ima/ima_template.c
149
if (template_desc_init_fields(str, NULL, NULL) < 0) {
security/integrity/ima/ima_template.c
151
str, CONFIG_IMA_DEFAULT_TEMPLATE);
security/integrity/ima/ima_template.c
155
builtin_templates[num_templates - 1].fmt = str;
security/integrity/integrity_audit.c
18
static int __init integrity_audit_setup(char *str)
security/integrity/integrity_audit.c
22
if (!kstrtoul(str, 0, &audit))
security/ipe/policy_fs.c
261
const char *str;
security/ipe/policy_fs.c
274
str = (p == rcu_access_pointer(ipe_active_policy)) ? "1" : "0";
security/ipe/policy_fs.c
275
rc = simple_read_from_buffer(data, len, offset, str, 1);
security/keys/encrypted-keys/encrypted.h
40
static inline void dump_hmac(const char *str, const u8 *digest,
security/keys/encrypted-keys/encrypted.h
43
if (str)
security/keys/encrypted-keys/encrypted.h
44
pr_info("encrypted_key: %s", str);
security/keys/encrypted-keys/encrypted.h
62
static inline void dump_hmac(const char *str, const u8 *digest,
security/lsm_init.c
67
static int __init lsm_choose_security(char *str)
security/lsm_init.c
69
lsm_order_legacy = str;
security/lsm_init.c
78
static int __init lsm_choose_lsm(char *str)
security/lsm_init.c
80
lsm_order_cmdline = str;
security/lsm_init.c
92
static int __init lsm_debug_enable(char *str)
security/selinux/hooks.c
120
static int __init enforcing_setup(char *str)
security/selinux/hooks.c
123
if (!kstrtoul(str, 0, &enforcing))
security/selinux/hooks.c
134
static int __init selinux_enabled_setup(char *str)
security/selinux/hooks.c
137
if (!kstrtoul(str, 0, &enabled))
security/selinux/hooks.c
144
static int __init checkreqprot_setup(char *str)
security/selinux/hooks.c
148
if (!kstrtoul(str, 0, &checkreqprot)) {
security/selinux/hooks.c
3392
const char *str = value;
security/selinux/hooks.c
3394
if (str[size - 1] == '\0')
security/selinux/hooks.c
6615
char *str = value;
security/selinux/hooks.c
6649
if (size && str[0] && str[0] != '\n') {
security/selinux/hooks.c
6650
if (str[size-1] == '\n') {
security/selinux/hooks.c
6651
str[size-1] = 0;
security/selinux/hooks.c
6664
if (str[size - 1] == '\0')
security/selinux/ss/context.c
27
return full_name_hash(NULL, c->str, c->len);
security/selinux/ss/context.h
163
if (src->str) {
security/selinux/ss/context.h
164
dst->str = kstrdup(src->str, GFP_ATOMIC);
security/selinux/ss/context.h
165
if (!dst->str)
security/selinux/ss/context.h
169
dst->str = NULL;
security/selinux/ss/context.h
174
kfree(dst->str);
security/selinux/ss/context.h
175
dst->str = NULL;
security/selinux/ss/context.h
185
kfree(c->str);
security/selinux/ss/context.h
186
c->str = NULL;
security/selinux/ss/context.h
195
return (c1->len == c2->len && !strcmp(c1->str, c2->str));
security/selinux/ss/context.h
34
char *str; /* string representation if context cannot be mapped. */
security/selinux/ss/mls.c
355
int mls_from_string(struct policydb *p, char *str, struct context *context,
security/selinux/ss/mls.c
364
tmpstr = kstrdup(str, gfp_mask);
security/selinux/ss/mls.h
37
int mls_from_string(struct policydb *p, char *str, struct context *context,
security/selinux/ss/policydb.c
1105
char *str;
security/selinux/ss/policydb.c
1110
str = kmalloc(len + 1, flags | __GFP_NOWARN);
security/selinux/ss/policydb.c
1111
if (!str)
security/selinux/ss/policydb.c
1114
rc = next_entry(str, fp, len);
security/selinux/ss/policydb.c
1116
kfree(str);
security/selinux/ss/policydb.c
1120
str[len] = '\0';
security/selinux/ss/policydb.c
1121
*strp = str;
security/selinux/ss/services.c
1274
*scontext = kstrdup(context->str, GFP_ATOMIC);
security/selinux/ss/services.c
1559
char *scontext2, *str = NULL;
security/selinux/ss/services.c
1591
str = kstrdup(scontext2, gfp_flags);
security/selinux/ss/services.c
1592
if (!str)
security/selinux/ss/services.c
1603
context.str = str;
security/selinux/ss/services.c
1604
context.len = strlen(str) + 1;
security/selinux/ss/services.c
1605
str = NULL;
security/selinux/ss/services.c
1611
if (context.str) {
security/selinux/ss/services.c
1612
str = context.str;
security/selinux/ss/services.c
1613
context.str = NULL;
security/selinux/ss/services.c
1623
kfree(str);
security/selinux/ss/services.c
2068
if (oldc->str) {
security/selinux/ss/services.c
2069
s = kstrdup(oldc->str, gfp_flags);
security/selinux/ss/services.c
2082
memcpy(s, oldc->str, oldc->len);
security/selinux/ss/services.c
2084
newc->str = s;
security/selinux/ss/services.c
2092
oldc->str, -rc);
security/selinux/ss/services.c
2096
oldc->str);
security/selinux/ss/services.c
2163
newc->str = s;
security/selinux/ss/services.c
2166
newc->str);
security/selinux/ss/sidtab.c
29
char str[] __counted_by(len);
security/selinux/ss/sidtab.c
349
context->str);
security/selinux/ss/sidtab.c
564
const char *str, u32 str_len)
security/selinux/ss/sidtab.c
583
cache = kmalloc_flex(*cache, str, str_len, GFP_ATOMIC);
security/selinux/ss/sidtab.c
598
memcpy(cache->str, str, str_len);
security/selinux/ss/sidtab.c
625
*out = kmemdup(cache->str, cache->len, GFP_ATOMIC);
security/selinux/ss/sidtab.h
143
const char *str, u32 str_len);
security/selinux/ss/sidtab.h
149
const char *str, u32 str_len)
security/tomoyo/common.c
2006
static int tomoyo_truncate(char *str)
security/tomoyo/common.c
2008
char *start = str;
security/tomoyo/common.c
2010
while (*(unsigned char *) str > (unsigned char) ' ')
security/tomoyo/common.c
2011
str++;
security/tomoyo/common.c
2012
*str = '\0';
security/tomoyo/common.c
2026
static bool tomoyo_numscan(const char *str, const char *head, int *width, const char tail)
security/tomoyo/common.c
2031
if (!strncmp(str, head, n)) {
security/tomoyo/common.c
2032
cp = str + n;
security/tomoyo/common.c
2036
*width = cp - (str + n);
security/tomoyo/common.h
1072
u8 tomoyo_parse_ulong(unsigned long *result, char **str);
security/tomoyo/common.h
985
char *tomoyo_encode(const char *str);
security/tomoyo/common.h
986
char *tomoyo_encode2(const char *str, int str_len);
security/tomoyo/load_policy.c
24
static int __init tomoyo_loader_setup(char *str)
security/tomoyo/load_policy.c
26
tomoyo_loader = str;
security/tomoyo/load_policy.c
64
static int __init tomoyo_trigger_setup(char *str)
security/tomoyo/load_policy.c
66
tomoyo_trigger = str;
security/tomoyo/realpath.c
23
char *tomoyo_encode2(const char *str, int str_len)
security/tomoyo/realpath.c
27
const char *p = str;
security/tomoyo/realpath.c
49
p = str;
security/tomoyo/realpath.c
78
char *tomoyo_encode(const char *str)
security/tomoyo/realpath.c
80
return str ? tomoyo_encode2(str, strlen(str)) : NULL;
security/tomoyo/util.c
185
u8 tomoyo_parse_ulong(unsigned long *result, char **str)
security/tomoyo/util.c
187
const char *cp = *str;
security/tomoyo/util.c
205
*str = ep;
security/tomoyo/util.c
316
static inline bool tomoyo_byte_range(const char *str)
security/tomoyo/util.c
318
return *str >= '0' && *str++ <= '3' &&
security/tomoyo/util.c
319
*str >= '0' && *str++ <= '7' &&
security/tomoyo/util.c
320
*str >= '0' && *str <= '7';
sound/core/control_led.c
383
const char *str = NULL;
sound/core/control_led.c
386
case MODE_FOLLOW_MUTE: str = "follow-mute"; break;
sound/core/control_led.c
387
case MODE_FOLLOW_ROUTE: str = "follow-route"; break;
sound/core/control_led.c
388
case MODE_ON: str = "on"; break;
sound/core/control_led.c
389
case MODE_OFF: str = "off"; break;
sound/core/control_led.c
391
return sysfs_emit(buf, "%s\n", str);
sound/core/info.c
20
int snd_info_check_reserved_words(const char *str)
sound/core/info.c
40
if (!strcmp(*xstr, str))
sound/core/info.c
44
if (!strncmp(str, "card", 4))
sound/core/info.c
481
char str[8];
sound/core/info.c
487
sprintf(str, "card%i", card->number);
sound/core/info.c
488
entry = create_subdir(card->module, str);
sound/core/info_oss.c
50
char *str;
sound/core/info_oss.c
55
str = snd_sndstat_strings[idx][dev];
sound/core/info_oss.c
56
if (str) {
sound/core/info_oss.c
61
snd_iprintf(buf, "%i: %s\n", idx, str);
sound/core/oss/mixer_oss.c
1012
const char *str;
sound/core/oss/mixer_oss.c
1037
str = ptr->name;
sound/core/oss/mixer_oss.c
1038
if (!strcmp(str, "Master"))
sound/core/oss/mixer_oss.c
1039
str = "Mix";
sound/core/oss/mixer_oss.c
1040
else if (!strcmp(str, "Master Mono"))
sound/core/oss/mixer_oss.c
1041
str = "Mix Mono";
sound/core/oss/mixer_oss.c
1043
if (!strcmp(uinfo->value.enumerated.name, str)) {
sound/core/oss/mixer_oss.c
1050
if (!strcmp(uinfo->value.enumerated.name, str)) {
sound/core/oss/mixer_oss.c
1150
char line[128], str[32], idxstr[16];
sound/core/oss/mixer_oss.c
1158
cptr = snd_info_get_str(str, line, sizeof(str));
sound/core/oss/mixer_oss.c
1160
if (oss_mixer_names[ch] && strcmp(oss_mixer_names[ch], str) == 0)
sound/core/oss/mixer_oss.c
1164
str);
sound/core/oss/mixer_oss.c
1167
cptr = snd_info_get_str(str, cptr, sizeof(str));
sound/core/oss/mixer_oss.c
1168
if (! *str) {
sound/core/oss/mixer_oss.c
1183
slot->assigned->index == idx && !strcmp(slot->assigned->name, str))
sound/core/oss/mixer_oss.c
1190
tbl->name = kstrdup(str, GFP_KERNEL);
sound/core/oss/mixer_oss.c
943
char str[64];
sound/core/oss/mixer_oss.c
950
sprintf(str, "%s Switch", ptr->name);
sound/core/oss/mixer_oss.c
951
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
955
sprintf(str, "%s Route", ptr->name);
sound/core/oss/mixer_oss.c
956
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
960
sprintf(str, "%s Volume", ptr->name);
sound/core/oss/mixer_oss.c
961
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
965
sprintf(str, "%s Playback Switch", ptr->name);
sound/core/oss/mixer_oss.c
966
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
970
sprintf(str, "%s Playback Route", ptr->name);
sound/core/oss/mixer_oss.c
971
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
975
sprintf(str, "%s Playback Volume", ptr->name);
sound/core/oss/mixer_oss.c
976
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
980
sprintf(str, "%s Capture Switch", ptr->name);
sound/core/oss/mixer_oss.c
981
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
985
sprintf(str, "%s Capture Route", ptr->name);
sound/core/oss/mixer_oss.c
986
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/mixer_oss.c
990
sprintf(str, "%s Capture Volume", ptr->name);
sound/core/oss/mixer_oss.c
991
err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index,
sound/core/oss/pcm_oss.c
2988
char line[128], str[32], task_name[32];
sound/core/oss/pcm_oss.c
3007
ptr = snd_info_get_str(str, ptr, sizeof(str));
sound/core/oss/pcm_oss.c
3008
template.periods = simple_strtoul(str, NULL, 10);
sound/core/oss/pcm_oss.c
3009
ptr = snd_info_get_str(str, ptr, sizeof(str));
sound/core/oss/pcm_oss.c
3010
template.period_size = simple_strtoul(str, NULL, 10);
sound/core/oss/pcm_oss.c
3017
ptr = snd_info_get_str(str, ptr, sizeof(str));
sound/core/oss/pcm_oss.c
3018
if (!strcmp(str, "disable")) {
sound/core/oss/pcm_oss.c
3020
} else if (!strcmp(str, "direct")) {
sound/core/oss/pcm_oss.c
3022
} else if (!strcmp(str, "block")) {
sound/core/oss/pcm_oss.c
3024
} else if (!strcmp(str, "non-block")) {
sound/core/oss/pcm_oss.c
3026
} else if (!strcmp(str, "partial-frag")) {
sound/core/oss/pcm_oss.c
3028
} else if (!strcmp(str, "no-silence")) {
sound/core/oss/pcm_oss.c
3030
} else if (!strcmp(str, "buggy-ptr")) {
sound/core/oss/pcm_oss.c
3033
} while (*str);
sound/core/pcm.c
1014
const char *str;
sound/core/pcm.c
1023
str = "none";
sound/core/pcm.c
1025
str = strs[pcm->dev_class];
sound/core/pcm.c
1026
return sysfs_emit(buf, "%s\n", str);
sound/core/pcm_local.h
71
#define for_each_pcm_substream(pcm, str, subs) \
sound/core/pcm_local.h
72
for ((str) = 0; (str) < 2; (str)++) \
sound/core/pcm_local.h
73
for ((subs) = (pcm)->streams[str].substream; (subs); \
sound/core/pcm_memory.c
185
char line[64], str[64];
sound/core/pcm_memory.c
195
snd_info_get_str(str, line, sizeof(str));
sound/core/pcm_memory.c
196
buffer->error = kstrtoul(str, 10, &size);
sound/core/pcm_memory.c
52
int str, size_t size, struct snd_dma_buffer *dmab)
sound/core/pcm_memory.c
65
if (str == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/seq/oss/seq_oss_init.c
455
static const char * const str[] = {
sound/core/seq/oss/seq_oss_init.c
458
return str[val & SNDRV_SEQ_OSS_FILE_ACMODE];
sound/core/seq/seq_timer.c
247
char str[32];
sound/core/seq/seq_timer.c
255
sprintf(str, "sequencer queue %i", q->queue);
sound/core/seq/seq_timer.c
260
t = snd_timer_instance_new(str);
sound/core/sound.c
72
char *str;
sound/core/sound.c
75
case SNDRV_MINOR_SEQUENCER: str = "snd-seq"; break;
sound/core/sound.c
76
case SNDRV_MINOR_TIMER: str = "snd-timer"; break;
sound/core/sound.c
79
request_module(str);
sound/core/timer.c
1716
char str[32];
sound/core/timer.c
1729
sprintf(str, "application %i", current->pid);
sound/core/timer.c
1732
tu->timeri = snd_timer_instance_new(str);
sound/drivers/aloop.c
1088
static int loopback_parse_timer_id(const char *str,
sound/drivers/aloop.c
1094
const char *name = str;
sound/drivers/aloop.c
1099
sep = strpbrk(str, sep_pref);
sound/drivers/opl3/opl3_midi.c
120
const char *str = "x.24";
sound/drivers/opl3/opl3_midi.c
124
buf[i] = str[opl3->voices[i].state + 1];
sound/firewire/bebob/bebob_midi.c
100
struct snd_rawmidi_str *str;
sound/firewire/bebob/bebob_midi.c
120
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/bebob/bebob_midi.c
122
set_midi_substream_names(bebob, str);
sound/firewire/bebob/bebob_midi.c
131
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/bebob/bebob_midi.c
133
set_midi_substream_names(bebob, str);
sound/firewire/bebob/bebob_midi.c
76
struct snd_rawmidi_str *str)
sound/firewire/bebob/bebob_midi.c
80
list_for_each_entry(subs, &str->substreams, list) {
sound/firewire/dice/dice-midi.c
131
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/dice/dice-midi.c
133
set_midi_substream_names(dice, str);
sound/firewire/dice/dice-midi.c
142
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/dice/dice-midi.c
144
set_midi_substream_names(dice, str);
sound/firewire/dice/dice-midi.c
76
struct snd_rawmidi_str *str)
sound/firewire/dice/dice-midi.c
80
list_for_each_entry(subs, &str->substreams, list) {
sound/firewire/dice/dice-midi.c
99
struct snd_rawmidi_str *str;
sound/firewire/digi00x/digi00x-midi.c
89
struct snd_rawmidi_str *str;
sound/firewire/digi00x/digi00x-midi.c
93
str = &rmidi->streams[i];
sound/firewire/digi00x/digi00x-midi.c
95
list_for_each_entry(subs, &str->substreams, list) {
sound/firewire/fireworks/fireworks_midi.c
118
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/fireworks/fireworks_midi.c
120
set_midi_substream_names(efw, str);
sound/firewire/fireworks/fireworks_midi.c
129
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/fireworks/fireworks_midi.c
131
set_midi_substream_names(efw, str);
sound/firewire/fireworks/fireworks_midi.c
75
struct snd_rawmidi_str *str)
sound/firewire/fireworks/fireworks_midi.c
79
list_for_each_entry(subs, &str->substreams, list) {
sound/firewire/fireworks/fireworks_midi.c
98
struct snd_rawmidi_str *str;
sound/firewire/motu/motu-midi.c
117
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/motu/motu-midi.c
118
set_midi_substream_names(motu, str);
sound/firewire/motu/motu-midi.c
122
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/motu/motu-midi.c
123
set_midi_substream_names(motu, str);
sound/firewire/motu/motu-midi.c
76
struct snd_rawmidi_str *str)
sound/firewire/motu/motu-midi.c
80
list_for_each_entry(subs, &str->substreams, list) {
sound/firewire/motu/motu-midi.c
99
struct snd_rawmidi_str *str;
sound/firewire/oxfw/oxfw-midi.c
113
struct snd_rawmidi_str *str)
sound/firewire/oxfw/oxfw-midi.c
117
list_for_each_entry(subs, &str->substreams, list) {
sound/firewire/oxfw/oxfw-midi.c
137
struct snd_rawmidi_str *str;
sound/firewire/oxfw/oxfw-midi.c
160
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/oxfw/oxfw-midi.c
162
set_midi_substream_names(oxfw, str);
sound/firewire/oxfw/oxfw-midi.c
171
str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/oxfw/oxfw-midi.c
173
set_midi_substream_names(oxfw, str);
sound/hda/codecs/generic.c
5682
static void fill_pcm_stream_name(char *str, size_t len, const char *sfx,
sound/hda/codecs/generic.c
5687
if (*str)
sound/hda/codecs/generic.c
5689
strscpy(str, chip_name, len);
sound/hda/codecs/generic.c
5692
for (p = strchr(str, ' '); p; p = strchr(p + 1, ' ')) {
sound/hda/codecs/generic.c
5698
strlcat(str, sfx, len);
sound/hda/codecs/generic.c
5704
static void setup_pcm_stream(struct hda_pcm_stream *str,
sound/hda/codecs/generic.c
5709
*str = *default_str;
sound/hda/codecs/generic.c
5711
str->nid = nid;
sound/hda/codecs/generic.c
5714
str->substreams = spec_str->substreams;
sound/hda/codecs/generic.c
5716
str->channels_min = spec_str->channels_min;
sound/hda/codecs/generic.c
5718
str->channels_max = spec_str->channels_max;
sound/hda/codecs/generic.c
5720
str->rates = spec_str->rates;
sound/hda/codecs/generic.c
5722
str->formats = spec_str->formats;
sound/hda/codecs/generic.c
5724
str->maxbps = spec_str->maxbps;
sound/hda/common/codec.c
3025
int str, err;
sound/hda/common/codec.c
3028
for (str = 0; str < 2; str++) {
sound/hda/common/codec.c
3029
struct hda_pcm_stream *hinfo = &pcm->stream[str];
sound/hda/common/codec.c
3036
err = snd_pcm_add_chmap_ctls(pcm->pcm, str, elem,
sound/hda/common/sysfs.c
285
static void remove_trail_spaces(char *str)
sound/hda/common/sysfs.c
288
if (!*str)
sound/hda/common/sysfs.c
290
p = str + strlen(str) - 1;
sound/hda/common/sysfs.c
293
if (p == str)
sound/isa/es18xx.c
1646
char str[16];
sound/isa/es18xx.c
1649
sprintf(str, "ES%x", chip->version);
sound/isa/es18xx.c
1651
err = snd_pcm_new(card, str, device, 2, 1, &pcm);
sound/isa/es18xx.c
1653
err = snd_pcm_new(card, str, device, 1, 1, &pcm);
sound/isa/gus/interwave.c
639
char *str;
sound/isa/gus/interwave.c
736
str = "AMD InterWave";
sound/isa/gus/interwave.c
738
str = "Dynasonic 3-D";
sound/isa/gus/interwave.c
740
str = "InterWave STB";
sound/isa/gus/interwave.c
742
strscpy(card->driver, str);
sound/isa/gus/interwave.c
743
strscpy(card->shortname, str);
sound/isa/gus/interwave.c
745
str,
sound/isa/opl3sa2.c
202
char str[2];
sound/isa/opl3sa2.c
230
str[0] = chip->version + '0';
sound/isa/opl3sa2.c
231
str[1] = 0;
sound/isa/opl3sa2.c
232
strcat(card->shortname, str);
sound/isa/sb/sb_common.c
119
str = "1.0";
sound/isa/sb/sb_common.c
124
str = "2.01+";
sound/isa/sb/sb_common.c
127
str = "2.0";
sound/isa/sb/sb_common.c
132
str = "Pro";
sound/isa/sb/sb_common.c
136
str = "16";
sound/isa/sb/sb_common.c
145
str = "16 (ALS-100)";
sound/isa/sb/sb_common.c
148
str = "16 (ALS-4000)";
sound/isa/sb/sb_common.c
151
str = "(DT019X/ALS007)";
sound/isa/sb/sb_common.c
154
str = "16 (CS5530)";
sound/isa/sb/sb_common.c
157
str = "Pro (Jazz16)";
sound/isa/sb/sb_common.c
162
sprintf(chip->name, "Sound Blaster %s", str);
sound/isa/sb/sb_common.c
96
char *str;
sound/oss/dmasound/dmasound_core.c
1426
static int __maybe_unused dmasound_setup(char *str)
sound/oss/dmasound/dmasound_core.c
1430
str = get_options(str, ARRAY_SIZE(ints), ints);
sound/pci/lola/lola_pcm.c
103
unsigned int reg = lola_dsd_read(chip, str->dsd, STS);
sound/pci/lola/lola_pcm.c
108
dev_warn(chip->card->dev, "FIFO not ready (stream %d)\n", str->dsd);
sound/pci/lola/lola_pcm.c
127
struct lola_stream *str;
sound/pci/lola/lola_pcm.c
130
str = lola_get_stream(s);
sound/pci/lola/lola_pcm.c
131
if (str->prepared && str->paused) {
sound/pci/lola/lola_pcm.c
133
reg = lola_dsd_read(chip, str->dsd, STS);
sound/pci/lola/lola_pcm.c
135
pending = str->dsd + 1;
sound/pci/lola/lola_pcm.c
139
str->paused = 0;
sound/pci/lola/lola_pcm.c
158
struct lola_stream *str;
sound/pci/lola/lola_pcm.c
161
str = lola_get_stream(s);
sound/pci/lola/lola_pcm.c
162
if (str->paused && str->prepared)
sound/pci/lola/lola_pcm.c
163
lola_dsd_write(chip, str->dsd, CTL, LOLA_DSD_CTL_SRUN |
sound/pci/lola/lola_pcm.c
169
static void lola_stream_reset(struct lola *chip, struct lola_stream *str)
sound/pci/lola/lola_pcm.c
171
if (str->prepared) {
sound/pci/lola/lola_pcm.c
172
if (str->paused)
sound/pci/lola/lola_pcm.c
173
lola_sync_pause(chip, str->substream);
sound/pci/lola/lola_pcm.c
174
str->prepared = 0;
sound/pci/lola/lola_pcm.c
175
lola_dsd_write(chip, str->dsd, CTL,
sound/pci/lola/lola_pcm.c
177
lola_stream_wait_for_fifo(chip, str, false);
sound/pci/lola/lola_pcm.c
178
lola_stream_clear_pending_irq(chip, str);
sound/pci/lola/lola_pcm.c
179
lola_dsd_write(chip, str->dsd, CTL, LOLA_DSD_CTL_SRST);
sound/pci/lola/lola_pcm.c
180
lola_dsd_write(chip, str->dsd, LVI, 0);
sound/pci/lola/lola_pcm.c
181
lola_dsd_write(chip, str->dsd, BDPU, 0);
sound/pci/lola/lola_pcm.c
182
lola_dsd_write(chip, str->dsd, BDPL, 0);
sound/pci/lola/lola_pcm.c
183
wait_for_srst_clear(chip, str);
sound/pci/lola/lola_pcm.c
214
struct lola_stream *str = lola_get_stream(substream);
sound/pci/lola/lola_pcm.c
218
if (str->opened)
sound/pci/lola/lola_pcm.c
220
str->substream = substream;
sound/pci/lola/lola_pcm.c
221
str->master = NULL;
sound/pci/lola/lola_pcm.c
222
str->opened = 1;
sound/pci/lola/lola_pcm.c
224
runtime->hw.channels_max = pcm->num_streams - str->index;
sound/pci/lola/lola_pcm.c
244
struct lola_stream *str)
sound/pci/lola/lola_pcm.c
247
for (i = str->index + 1; i < pcm->num_streams; i++) {
sound/pci/lola/lola_pcm.c
249
if (s->master != str)
sound/pci/lola/lola_pcm.c
259
struct lola_stream *str = lola_get_stream(substream);
sound/pci/lola/lola_pcm.c
262
if (str->substream == substream) {
sound/pci/lola/lola_pcm.c
263
str->substream = NULL;
sound/pci/lola/lola_pcm.c
264
str->opened = 0;
sound/pci/lola/lola_pcm.c
276
struct lola_stream *str = lola_get_stream(substream);
sound/pci/lola/lola_pcm.c
278
str->bufsize = 0;
sound/pci/lola/lola_pcm.c
279
str->period_bytes = 0;
sound/pci/lola/lola_pcm.c
280
str->format_verb = 0;
sound/pci/lola/lola_pcm.c
288
struct lola_stream *str = lola_get_stream(substream);
sound/pci/lola/lola_pcm.c
291
lola_stream_reset(chip, str);
sound/pci/lola/lola_pcm.c
292
lola_cleanup_slave_streams(pcm, str);
sound/pci/lola/lola_pcm.c
300
struct lola_stream *str, __le32 **bdlp,
sound/pci/lola/lola_pcm.c
309
if (str->frags >= LOLA_MAX_BDL_ENTRIES)
sound/pci/lola/lola_pcm.c
325
str->frags++;
sound/pci/lola/lola_pcm.c
337
struct lola_stream *str)
sound/pci/lola/lola_pcm.c
342
period_bytes = str->period_bytes;
sound/pci/lola/lola_pcm.c
343
periods = str->bufsize / period_bytes;
sound/pci/lola/lola_pcm.c
346
bdl = (__le32 *)(pcm->bdl->area + LOLA_BDL_ENTRY_SIZE * str->index);
sound/pci/lola/lola_pcm.c
348
str->frags = 0;
sound/pci/lola/lola_pcm.c
350
ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes);
sound/pci/lola/lola_pcm.c
358
str->bufsize, period_bytes);
sound/pci/lola/lola_pcm.c
387
struct lola_stream *str,
sound/pci/lola/lola_pcm.c
396
err = lola_codec_read(chip, str->nid, LOLA_VERB_SET_STREAM_FORMAT,
sound/pci/lola/lola_pcm.c
397
str->format_verb, 0, &val, NULL);
sound/pci/lola/lola_pcm.c
400
str->format_verb);
sound/pci/lola/lola_pcm.c
406
verb = (str->index << 6) | i;
sound/pci/lola/lola_pcm.c
407
err = lola_codec_read(chip, str[i].nid,
sound/pci/lola/lola_pcm.c
423
struct lola_stream *str)
sound/pci/lola/lola_pcm.c
427
if (str->prepared)
sound/pci/lola/lola_pcm.c
431
bdl = pcm->bdl->addr + LOLA_BDL_ENTRY_SIZE * str->index;
sound/pci/lola/lola_pcm.c
432
lola_dsd_write(chip, str->dsd, BDPL, (u32)bdl);
sound/pci/lola/lola_pcm.c
433
lola_dsd_write(chip, str->dsd, BDPU, upper_32_bits(bdl));
sound/pci/lola/lola_pcm.c
435
lola_dsd_write(chip, str->dsd, LVI, str->frags - 1);
sound/pci/lola/lola_pcm.c
436
lola_stream_clear_pending_irq(chip, str);
sound/pci/lola/lola_pcm.c
438
lola_dsd_write(chip, str->dsd, CTL,
sound/pci/lola/lola_pcm.c
441
str->prepared = 1;
sound/pci/lola/lola_pcm.c
443
return lola_stream_wait_for_fifo(chip, str, true);
sound/pci/lola/lola_pcm.c
450
struct lola_stream *str = lola_get_stream(substream);
sound/pci/lola/lola_pcm.c
456
lola_stream_reset(chip, str);
sound/pci/lola/lola_pcm.c
457
lola_cleanup_slave_streams(pcm, str);
sound/pci/lola/lola_pcm.c
458
if (str->index + runtime->channels > pcm->num_streams)
sound/pci/lola/lola_pcm.c
461
str[i].master = str;
sound/pci/lola/lola_pcm.c
462
str[i].opened = 1;
sound/pci/lola/lola_pcm.c
470
str->bufsize = bufsize;
sound/pci/lola/lola_pcm.c
471
str->period_bytes = period_bytes;
sound/pci/lola/lola_pcm.c
472
str->format_verb = format_verb;
sound/pci/lola/lola_pcm.c
474
err = lola_setup_periods(chip, pcm, substream, str);
sound/pci/lola/lola_pcm.c
483
err = lola_set_stream_config(chip, str, runtime->channels);
sound/pci/lola/lola_pcm.c
487
err = lola_setup_controller(chip, pcm, str);
sound/pci/lola/lola_pcm.c
489
lola_stream_reset(chip, str);
sound/pci/lola/lola_pcm.c
499
struct lola_stream *str;
sound/pci/lola/lola_pcm.c
52
struct lola_stream *str)
sound/pci/lola/lola_pcm.c
530
str = lola_get_stream(s);
sound/pci/lola/lola_pcm.c
532
lola_stream_start(chip, str, tstamp);
sound/pci/lola/lola_pcm.c
534
lola_stream_stop(chip, str, tstamp);
sound/pci/lola/lola_pcm.c
535
str->running = start;
sound/pci/lola/lola_pcm.c
536
str->paused = !start;
sound/pci/lola/lola_pcm.c
54
unsigned int val = lola_dsd_read(chip, str->dsd, STS);
sound/pci/lola/lola_pcm.c
545
struct lola_stream *str = lola_get_stream(substream);
sound/pci/lola/lola_pcm.c
546
unsigned int pos = lola_dsd_read(chip, str->dsd, LPIB);
sound/pci/lola/lola_pcm.c
548
if (pos >= str->bufsize)
sound/pci/lola/lola_pcm.c
560
struct lola_stream *str = &pcm->streams[i];
sound/pci/lola/lola_pcm.c
561
if (str->substream && str->running)
sound/pci/lola/lola_pcm.c
562
snd_pcm_period_elapsed(str->substream);
sound/pci/lola/lola_pcm.c
57
lola_dsd_write(chip, str->dsd, STS, val);
sound/pci/lola/lola_pcm.c
60
static void lola_stream_start(struct lola *chip, struct lola_stream *str,
sound/pci/lola/lola_pcm.c
613
static int lola_init_stream(struct lola *chip, struct lola_stream *str,
sound/pci/lola/lola_pcm.c
619
str->nid = nid;
sound/pci/lola/lola_pcm.c
620
str->index = idx;
sound/pci/lola/lola_pcm.c
621
str->dsd = idx;
sound/pci/lola/lola_pcm.c
623
str->dsd += MAX_STREAM_IN_COUNT;
sound/pci/lola/lola_pcm.c
63
lola_stream_clear_pending_irq(chip, str);
sound/pci/lola/lola_pcm.c
64
lola_dsd_write(chip, str->dsd, CTL,
sound/pci/lola/lola_pcm.c
659
str->can_float = true;
sound/pci/lola/lola_pcm.c
72
static void lola_stream_stop(struct lola *chip, struct lola_stream *str,
sound/pci/lola/lola_pcm.c
75
lola_dsd_write(chip, str->dsd, CTL,
sound/pci/lola/lola_pcm.c
80
lola_stream_clear_pending_irq(chip, str);
sound/pci/lola/lola_pcm.c
83
static void wait_for_srst_clear(struct lola *chip, struct lola_stream *str)
sound/pci/lola/lola_pcm.c
88
val = lola_dsd_read(chip, str->dsd, CTL);
sound/pci/lola/lola_pcm.c
93
dev_warn(chip->card->dev, "SRST not clear (stream %d)\n", str->dsd);
sound/pci/lola/lola_pcm.c
97
struct lola_stream *str,
sound/pci/trident/trident.c
55
const char *str;
sound/pci/trident/trident.c
80
str = "TRID4DWAVEDX";
sound/pci/trident/trident.c
83
str = "TRID4DWAVENX";
sound/pci/trident/trident.c
86
str = "SI7018";
sound/pci/trident/trident.c
89
str = "Unknown";
sound/pci/trident/trident.c
91
strscpy(card->driver, str);
sound/pci/trident/trident.c
97
strcat(card->shortname, str);
sound/pci/ymfpci/ymfpci.c
164
const char *str, *model;
sound/pci/ymfpci/ymfpci.c
182
case 0x0004: str = "YMF724"; model = "DS-1"; break;
sound/pci/ymfpci/ymfpci.c
183
case 0x000d: str = "YMF724F"; model = "DS-1"; break;
sound/pci/ymfpci/ymfpci.c
184
case 0x000a: str = "YMF740"; model = "DS-1L"; break;
sound/pci/ymfpci/ymfpci.c
185
case 0x000c: str = "YMF740C"; model = "DS-1L"; break;
sound/pci/ymfpci/ymfpci.c
186
case 0x0010: str = "YMF744"; model = "DS-1S"; break;
sound/pci/ymfpci/ymfpci.c
187
case 0x0012: str = "YMF754"; model = "DS-1E"; break;
sound/pci/ymfpci/ymfpci.c
188
default: model = str = "???"; break;
sound/pci/ymfpci/ymfpci.c
191
strscpy(card->driver, str);
sound/pci/ymfpci/ymfpci.c
192
sprintf(card->shortname, "Yamaha %s (%s)", model, str);
sound/soc/codecs/da7213.c
1904
da7213_of_dmic_data_sel(struct snd_soc_component *component, const char *str)
sound/soc/codecs/da7213.c
1906
if (!strcmp(str, "lrise_rfall")) {
sound/soc/codecs/da7213.c
1908
} else if (!strcmp(str, "lfall_rrise")) {
sound/soc/codecs/da7213.c
1917
da7213_of_dmic_samplephase(struct snd_soc_component *component, const char *str)
sound/soc/codecs/da7213.c
1919
if (!strcmp(str, "on_clkedge")) {
sound/soc/codecs/da7213.c
1921
} else if (!strcmp(str, "between_clkedge")) {
sound/soc/codecs/da7218.c
2317
da7218_of_mic_amp_in_sel(struct snd_soc_component *component, const char *str)
sound/soc/codecs/da7218.c
2319
if (!strcmp(str, "diff")) {
sound/soc/codecs/da7218.c
2321
} else if (!strcmp(str, "se_p")) {
sound/soc/codecs/da7218.c
2323
} else if (!strcmp(str, "se_n")) {
sound/soc/codecs/da7218.c
2332
da7218_of_dmic_data_sel(struct snd_soc_component *component, const char *str)
sound/soc/codecs/da7218.c
2334
if (!strcmp(str, "lrise_rfall")) {
sound/soc/codecs/da7218.c
2336
} else if (!strcmp(str, "lfall_rrise")) {
sound/soc/codecs/da7218.c
2345
da7218_of_dmic_samplephase(struct snd_soc_component *component, const char *str)
sound/soc/codecs/da7218.c
2347
if (!strcmp(str, "on_clkedge")) {
sound/soc/codecs/da7218.c
2349
} else if (!strcmp(str, "between_clkedge")) {
sound/soc/codecs/da7219-aad.c
578
da7219_aad_fw_jack_ins_det_pty(struct device *dev, const char *str)
sound/soc/codecs/da7219-aad.c
580
if (!strcmp(str, "low")) {
sound/soc/codecs/da7219-aad.c
582
} else if (!strcmp(str, "high")) {
sound/soc/codecs/da7219-aad.c
591
da7219_aad_fw_jack_det_rate(struct device *dev, const char *str)
sound/soc/codecs/da7219-aad.c
593
if (!strcmp(str, "32_64")) {
sound/soc/codecs/da7219-aad.c
595
} else if (!strcmp(str, "64_128")) {
sound/soc/codecs/da7219-aad.c
597
} else if (!strcmp(str, "128_256")) {
sound/soc/codecs/da7219-aad.c
599
} else if (!strcmp(str, "256_512")) {
sound/soc/codecs/da7219.c
1753
da7219_fw_mic_amp_in_sel(struct device *dev, const char *str)
sound/soc/codecs/da7219.c
1755
if (!strcmp(str, "diff")) {
sound/soc/codecs/da7219.c
1757
} else if (!strcmp(str, "se_p")) {
sound/soc/codecs/da7219.c
1759
} else if (!strcmp(str, "se_n")) {
sound/soc/codecs/pcm6240.c
2038
static char *str_to_upper(char *str)
sound/soc/codecs/pcm6240.c
2040
char *orig = str;
sound/soc/codecs/pcm6240.c
2042
if (!str)
sound/soc/codecs/pcm6240.c
2045
while (*str) {
sound/soc/codecs/pcm6240.c
2046
*str = toupper(*str);
sound/soc/codecs/pcm6240.c
2047
str++;
sound/soc/codecs/wm8958-dsp2.c
124
str = kzalloc(block_len + 1, GFP_KERNEL);
sound/soc/codecs/wm8958-dsp2.c
125
if (str) {
sound/soc/codecs/wm8958-dsp2.c
126
memcpy(str, data + 8, block_len);
sound/soc/codecs/wm8958-dsp2.c
127
dev_info(component->dev, "%s: %s\n", name, str);
sound/soc/codecs/wm8958-dsp2.c
128
kfree(str);
sound/soc/codecs/wm8958-dsp2.c
48
char *str;
sound/soc/fsl/fsl_sai.c
1429
const char *str = NULL;
sound/soc/fsl/fsl_sai.c
1605
!of_property_read_string(np, "fsl,sai-amix-mode", &str)) {
sound/soc/fsl/fsl_sai.c
1606
if (!strcmp(str, "bypass"))
sound/soc/fsl/fsl_sai.c
1608
else if (!strcmp(str, "audmix"))
sound/soc/generic/audio-graph-card2.c
314
const char *str = "Normal";
sound/soc/generic/audio-graph-card2.c
319
str = "DPCM Front-End";
sound/soc/generic/audio-graph-card2.c
321
str = "DPCM Back-End";
sound/soc/generic/audio-graph-card2.c
324
str = "Codec2Codec";
sound/soc/generic/audio-graph-card2.c
330
dev_dbg(dev, "%pOF (%s)", lnk, str);
sound/soc/generic/test-component.c
101
str = "continuous";
sound/soc/generic/test-component.c
103
str = "gated";
sound/soc/generic/test-component.c
104
dev_info(dai->dev, "clock : %s", str);
sound/soc/generic/test-component.c
106
str = "unknown";
sound/soc/generic/test-component.c
109
str = "clk provider, frame provider";
sound/soc/generic/test-component.c
112
str = "clk consumer, frame provider";
sound/soc/generic/test-component.c
115
str = "clk provider, frame consumer";
sound/soc/generic/test-component.c
118
str = "clk consumer, frame consumer";
sound/soc/generic/test-component.c
121
dev_info(dai->dev, "clock : codec is %s", str);
sound/soc/generic/test-component.c
123
str = "unknown";
sound/soc/generic/test-component.c
126
str = "normal bit, normal frame";
sound/soc/generic/test-component.c
129
str = "normal bit, invert frame";
sound/soc/generic/test-component.c
132
str = "invert bit, normal frame";
sound/soc/generic/test-component.c
135
str = "invert bit, invert frame";
sound/soc/generic/test-component.c
138
dev_info(dai->dev, "signal : %s", str);
sound/soc/generic/test-component.c
70
char *str;
sound/soc/generic/test-component.c
74
str = "unknown";
sound/soc/generic/test-component.c
77
str = "i2s";
sound/soc/generic/test-component.c
80
str = "right_j";
sound/soc/generic/test-component.c
83
str = "left_j";
sound/soc/generic/test-component.c
86
str = "dsp_a";
sound/soc/generic/test-component.c
89
str = "dsp_b";
sound/soc/generic/test-component.c
92
str = "ac97";
sound/soc/generic/test-component.c
95
str = "pdm";
sound/soc/generic/test-component.c
98
dev_info(dai->dev, "format : %s", str);
sound/soc/mediatek/common/mtk-soundcard-driver.c
53
const char *str;
sound/soc/mediatek/common/mtk-soundcard-driver.c
73
ret = of_property_read_string(sub_node, "mediatek,clk-provider", &str);
sound/soc/mediatek/common/mtk-soundcard-driver.c
78
if (strcmp(str, of_clk_table[i].name) == 0) {
sound/soc/soc-core.c
1561
const char *str;
sound/soc/soc-core.c
1578
ret = of_property_read_string(of_node, "sound-name-prefix", &str);
sound/soc/soc-core.c
1582
component->name_prefix = str;
sound/soc/soc-core.c
1887
static void append_dmi_string(struct snd_soc_card *card, const char *str)
sound/soc/soc-core.c
1894
snprintf(dst + len, dst_len - len, "-%s", str);
sound/soc/soc-core.c
3210
const char *str;
sound/soc/soc-core.c
3213
ret = of_property_read_string(np, propname, &str);
sound/soc/soc-core.c
3220
codec_conf->name_prefix = str;
sound/soc/soc-core.c
3359
const char *str;
sound/soc/soc-core.c
3383
ret = of_property_read_string(np, "dai-format", &str);
sound/soc/soc-core.c
3386
ret = of_property_read_string(np, prop, &str);
sound/soc/soc-core.c
3392
if (strcmp(str, of_fmt_table[i].name) == 0) {
sound/soc/sof/ipc3.c
101
str = "GLB_STREAM_MSG";
sound/soc/sof/ipc3.c
133
str = "FW_READY"; break;
sound/soc/sof/ipc3.c
135
str = "GLB_DAI_MSG";
sound/soc/sof/ipc3.c
146
str = "GLB_TRACE_MSG";
sound/soc/sof/ipc3.c
165
str = "GLB_TEST_MSG";
sound/soc/sof/ipc3.c
174
str = "GLB_DEBUG";
sound/soc/sof/ipc3.c
183
str = "GLB_PROBE";
sound/soc/sof/ipc3.c
206
str = "unknown GLB command"; break;
sound/soc/sof/ipc3.c
213
dev_dbg(dev, "%s: 0x%x: %s: %s\n", text, cmd, str, str2);
sound/soc/sof/ipc3.c
215
dev_dbg(dev, "%s: 0x%x: %s\n", text, cmd, str);
sound/soc/sof/ipc3.c
23
u8 *str;
sound/soc/sof/ipc3.c
34
str = "GLB_REPLY"; break;
sound/soc/sof/ipc3.c
36
str = "GLB_COMPOUND"; break;
sound/soc/sof/ipc3.c
38
str = "GLB_TPLG_MSG";
sound/soc/sof/ipc3.c
63
str = "GLB_PM_MSG";
sound/soc/sof/ipc3.c
86
str = "GLB_COMP_MSG";
sound/soc/sof/ipc4.c
189
const u8 *str = NULL;
sound/soc/sof/ipc4.c
197
str = ipc4_dbg_mod_msg_type[type];
sound/soc/sof/ipc4.c
198
if (!str)
sound/soc/sof/ipc4.c
199
str = "Unknown Module message type";
sound/soc/sof/ipc4.c
203
str = ipc4_dbg_glb_msg_type[type];
sound/soc/sof/ipc4.c
204
if (!str)
sound/soc/sof/ipc4.c
205
str = "Unknown Global message type";
sound/soc/sof/ipc4.c
226
text, msg->primary, msg->extension, str, str2,
sound/soc/sof/ipc4.c
230
msg->extension, str, str2);
sound/soc/sof/ipc4.c
234
text, msg->primary, msg->extension, str,
sound/soc/sof/ipc4.c
238
msg->extension, str);
sound/soc/sof/sof-audio.c
679
char *str;
sound/soc/sof/sof-audio.c
699
str = "set up";
sound/soc/sof/sof-audio.c
703
str = "free";
sound/soc/sof/sof-audio.c
709
str = "prepare";
sound/soc/sof/sof-audio.c
730
dev_err(sdev->dev, "Failed to %s connected widgets\n", str);
sound/usb/mixer.c
1619
static size_t append_ctl_name(struct snd_kcontrol *kctl, const char *str)
sound/usb/mixer.c
1621
return strlcat(kctl->id.name, str, sizeof(kctl->id.name));
sound/usb/quirks.c
2589
const char *str)
sound/usb/quirks.c
2598
char *val __free(kfree) = kstrdup(str, GFP_KERNEL);
sound/usb/quirks.h
57
const char *str);
sound/xen/xen_snd_front_cfg.c
294
char *str = NULL;
sound/xen/xen_snd_front_cfg.c
306
str = xenbus_read(XBT_NIL, stream_path, XENSND_FIELD_TYPE, NULL);
sound/xen/xen_snd_front_cfg.c
307
if (IS_ERR(str)) {
sound/xen/xen_snd_front_cfg.c
308
ret = PTR_ERR(str);
sound/xen/xen_snd_front_cfg.c
309
str = NULL;
sound/xen/xen_snd_front_cfg.c
313
if (!strncasecmp(str, XENSND_STREAM_TYPE_PLAYBACK,
sound/xen/xen_snd_front_cfg.c
316
} else if (!strncasecmp(str, XENSND_STREAM_TYPE_CAPTURE,
sound/xen/xen_snd_front_cfg.c
327
kfree(str);
sound/xen/xen_snd_front_cfg.c
336
char *str = NULL;
sound/xen/xen_snd_front_cfg.c
348
str = xenbus_read(XBT_NIL, stream_path, XENSND_FIELD_TYPE, NULL);
sound/xen/xen_snd_front_cfg.c
349
if (IS_ERR(str)) {
sound/xen/xen_snd_front_cfg.c
350
ret = PTR_ERR(str);
sound/xen/xen_snd_front_cfg.c
351
str = NULL;
sound/xen/xen_snd_front_cfg.c
355
if (!strncasecmp(str, XENSND_STREAM_TYPE_PLAYBACK,
sound/xen/xen_snd_front_cfg.c
358
} else if (!strncasecmp(str, XENSND_STREAM_TYPE_CAPTURE,
sound/xen/xen_snd_front_cfg.c
379
kfree(str);
sound/xen/xen_snd_front_cfg.c
388
char *str;
sound/xen/xen_snd_front_cfg.c
399
str = xenbus_read(XBT_NIL, device_path, XENSND_FIELD_DEVICE_NAME, NULL);
sound/xen/xen_snd_front_cfg.c
400
if (!IS_ERR(str)) {
sound/xen/xen_snd_front_cfg.c
401
strscpy(pcm_instance->name, str, sizeof(pcm_instance->name));
sound/xen/xen_snd_front_cfg.c
402
kfree(str);
tools/arch/x86/kcpuid/kcpuid.c
315
char *str;
tools/arch/x86/kcpuid/kcpuid.c
345
str = buffer;
tools/arch/x86/kcpuid/kcpuid.c
347
tokens[i] = strtok(str, ",");
tools/arch/x86/kcpuid/kcpuid.c
350
str = NULL;
tools/arch/x86/kcpuid/kcpuid.c
352
tokens[5] = strtok(str, "\n");
tools/bootconfig/include/linux/bootconfig.h
25
static inline char *skip_spaces(const char *str)
tools/bootconfig/include/linux/bootconfig.h
27
while (isspace(*str))
tools/bootconfig/include/linux/bootconfig.h
28
++str;
tools/bootconfig/include/linux/bootconfig.h
29
return (char *)str;
tools/bpf/bpf_exp.y
40
extern void yyerror(const char *str);
tools/bpf/bpf_exp.y
664
void yyerror(const char *str)
tools/bpf/bpf_exp.y
666
fprintf(stderr, "error: %s at line %d\n", str, yylineno);
tools/bpf/bpftool/cgroup.c
101
if (is_prefix(str, attach_type_str))
tools/bpf/bpftool/cgroup.c
81
static enum bpf_attach_type parse_attach_type(const char *str)
tools/bpf/bpftool/cgroup.c
90
if (!strcmp(str, attach_type_str))
tools/bpf/bpftool/feature.c
64
static void uppercase(char *str, size_t len)
tools/bpf/bpftool/feature.c
68
for (i = 0; i < len && str[i] != '\0'; i++)
tools/bpf/bpftool/feature.c
69
str[i] = toupper(str[i]);
tools/bpf/bpftool/gen.c
38
static bool str_has_prefix(const char *str, const char *prefix)
tools/bpf/bpftool/gen.c
40
return strncmp(str, prefix, strlen(prefix)) == 0;
tools/bpf/bpftool/gen.c
43
static bool str_has_suffix(const char *str, const char *suffix)
tools/bpf/bpftool/gen.c
45
size_t i, n1 = strlen(str), n2 = strlen(suffix);
tools/bpf/bpftool/gen.c
51
if (str[n1 - i - 1] != suffix[n2 - i - 1])
tools/bpf/bpftool/json_writer.c
57
static void jsonw_puts(json_writer_t *self, const char *str)
tools/bpf/bpftool/json_writer.c
60
for (; *str; ++str)
tools/bpf/bpftool/json_writer.c
61
switch (*str) {
tools/bpf/bpftool/json_writer.c
84
putc(*str, self->out);
tools/bpf/bpftool/link.c
440
char *str = malloc(PERF_HW_CACHE_LEN);
tools/bpf/bpftool/link.c
442
if (!str) {
tools/bpf/bpftool/link.c
449
snprintf(str, PERF_HW_CACHE_LEN, "%s-", hw_cache);
tools/bpf/bpftool/link.c
451
snprintf(str, PERF_HW_CACHE_LEN, "%llu-", config & 0xff);
tools/bpf/bpftool/link.c
455
snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str),
tools/bpf/bpftool/link.c
458
snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str),
tools/bpf/bpftool/link.c
463
snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str),
tools/bpf/bpftool/link.c
466
snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str),
tools/bpf/bpftool/link.c
468
return str;
tools/bpf/bpftool/main.c
219
bool is_prefix(const char *pfx, const char *str)
tools/bpf/bpftool/main.c
223
if (strlen(str) < strlen(pfx))
tools/bpf/bpftool/main.c
226
return !memcmp(str, pfx, strlen(pfx));
tools/bpf/bpftool/main.h
101
bool is_prefix(const char *pfx, const char *str);
tools/bpf/bpftool/net.c
92
static enum net_attach_type parse_attach_type(const char *str)
tools/bpf/bpftool/net.c
98
is_prefix(str, attach_type_strings[type]))
tools/bpf/bpftool/netlink_dumper.h
100
fprintf(stdout, "%s ", str); \
tools/bpf/bpftool/netlink_dumper.h
79
#define NET_DUMP_UINT_ONLY(str) \
tools/bpf/bpftool/netlink_dumper.h
82
jsonw_uint(json_wtr, str); \
tools/bpf/bpftool/netlink_dumper.h
84
fprintf(stdout, "%u ", str); \
tools/bpf/bpftool/netlink_dumper.h
87
#define NET_DUMP_STR(name, fmt_str, str) \
tools/bpf/bpftool/netlink_dumper.h
90
jsonw_string_field(json_wtr, name, str);\
tools/bpf/bpftool/netlink_dumper.h
92
fprintf(stdout, fmt_str, str); \
tools/bpf/bpftool/netlink_dumper.h
95
#define NET_DUMP_STR_ONLY(str) \
tools/bpf/bpftool/netlink_dumper.h
98
jsonw_string(json_wtr, str); \
tools/bpf/bpftool/prog.c
69
static enum bpf_attach_type parse_attach_type(const char *str)
tools/bpf/bpftool/prog.c
78
if (!strcmp(str, attach_type_str))
tools/bpf/bpftool/prog.c
83
is_prefix(str, attach_type_strings[type]))
tools/bpf/bpftool/token.c
100
char *str, *rest;
tools/bpf/bpftool/token.c
109
for (str = strtok_r(input, ":", &rest); str;
tools/bpf/bpftool/token.c
110
str = strtok_r(NULL, ":", &rest)) {
tools/bpf/bpftool/token.c
111
jsonw_string(json_wtr, str);
tools/bpf/bpftool/token.c
62
char *str, *rest;
tools/bpf/bpftool/token.c
68
for (str = strtok_r(input, ":", &rest); str;
tools/bpf/bpftool/token.c
69
str = strtok_r(NULL, ":", &rest)) {
tools/bpf/bpftool/token.c
73
printf("%-20s", str);
tools/bpf/resolve_btfids/main.c
637
const char *str;
tools/bpf/resolve_btfids/main.c
662
str = btf__name_by_offset(btf, type->name_off);
tools/bpf/resolve_btfids/main.c
663
if (!str) {
tools/bpf/resolve_btfids/main.c
669
id = btf_id__find(root, str);
tools/bpf/resolve_btfids/main.c
673
str, id->id, type_id, id->id);
tools/gpio/gpio-utils.h
21
static inline int check_prefix(const char *str, const char *prefix)
tools/gpio/gpio-utils.h
23
return strlen(str) > strlen(prefix) &&
tools/gpio/gpio-utils.h
24
strncmp(str, prefix, strlen(prefix)) == 0;
tools/hv/hv_kvp_daemon.c
1219
char str[256];
tools/hv/hv_kvp_daemon.c
1232
snprintf(str, sizeof(str), "%s", "IPADDR");
tools/hv/hv_kvp_daemon.c
1235
snprintf(str, sizeof(str), "%s", "NETMASK");
tools/hv/hv_kvp_daemon.c
1238
snprintf(str, sizeof(str), "%s", "GATEWAY");
tools/hv/hv_kvp_daemon.c
1241
snprintf(str, sizeof(str), "%s", "DNS");
tools/hv/hv_kvp_daemon.c
1257
snprintf(str, sizeof(str), "%s", "IPV6ADDR");
tools/hv/hv_kvp_daemon.c
1260
snprintf(str, sizeof(str), "%s", "IPV6NETMASK");
tools/hv/hv_kvp_daemon.c
1263
snprintf(str, sizeof(str), "%s",
tools/hv/hv_kvp_daemon.c
1267
snprintf(str, sizeof(str), "%s", "DNS");
tools/hv/hv_kvp_daemon.c
1282
error = kvp_write_file(f, str, sub_str, addr);
tools/hv/hv_kvp_daemon.c
889
const char *str;
tools/hv/hv_kvp_daemon.c
893
str = inet_ntop(family, &addr->sin_addr, tmp, 50);
tools/hv/hv_kvp_daemon.c
897
str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50);
tools/hv/hv_kvp_daemon.c
903
if (str == NULL) {
tools/hv/hv_kvp_daemon.c
914
*offset += strlen(str) + 1;
tools/iio/iio_utils.c
951
int read_sysfs_string(const char *filename, const char *basedir, char *str)
tools/iio/iio_utils.c
973
if (fscanf(sysfsfp, "%s\n", str) != 1) {
tools/iio/iio_utils.h
53
static inline int iioutils_check_suffix(const char *str, const char *suffix)
tools/iio/iio_utils.h
55
return strlen(str) >= strlen(suffix) &&
tools/iio/iio_utils.h
56
strncmp(str+strlen(str)-strlen(suffix),
tools/iio/iio_utils.h
77
int read_sysfs_string(const char *filename, const char *basedir, char *str);
tools/iio/lsiio.c
28
static inline int check_prefix(const char *str, const char *prefix)
tools/iio/lsiio.c
30
return strlen(str) > strlen(prefix) &&
tools/iio/lsiio.c
31
strncmp(str, prefix, strlen(prefix)) == 0;
tools/iio/lsiio.c
34
static inline int check_postfix(const char *str, const char *postfix)
tools/iio/lsiio.c
36
return strlen(str) > strlen(postfix) &&
tools/iio/lsiio.c
37
strcmp(str + strlen(str) - strlen(postfix), postfix) == 0;
tools/include/linux/init.h
24
const char *str;
tools/include/linux/init.h
29
#define __setup_param(str, unique_id, fn, early) \
tools/include/linux/init.h
31
__aligned(1) = str; \
tools/include/linux/init.h
37
#define __setup(str, fn) \
tools/include/linux/init.h
38
__setup_param(str, fn, fn, 0)
tools/include/linux/init.h
40
#define early_param(str, fn) \
tools/include/linux/init.h
41
__setup_param(str, fn, fn, 1)
tools/include/linux/refcount.h
45
#define REFCOUNT_WARN(cond, str) (void)(cond)
tools/include/linux/refcount.h
48
#define REFCOUNT_WARN(cond, str) BUG_ON(cond)
tools/include/linux/string.h
10
char **argv_split(const char *str, int *argcp);
tools/include/linux/string.h
42
static inline bool strstarts(const char *str, const char *prefix)
tools/include/linux/string.h
44
return strncmp(str, prefix, strlen(prefix)) == 0;
tools/include/linux/string.h
50
static inline bool str_ends_with(const char *str, const char *substr)
tools/include/linux/string.h
52
size_t len = strlen(str);
tools/include/linux/string.h
58
return !strcmp(str + len - sublen, substr);
tools/include/nolibc/stdio.h
556
int vsscanf(const char *str, const char *format, va_list args)
tools/include/nolibc/stdio.h
585
if ('%' != *str)
tools/include/nolibc/stdio.h
587
str++;
tools/include/nolibc/stdio.h
591
ival = strtoll(str, &endptr, 10);
tools/include/nolibc/stdio.h
600
uval = strtoull(str, &endptr, base);
tools/include/nolibc/stdio.h
608
*va_arg(args, void **) = (void *)strtoul(str, &endptr, 16);
tools/include/nolibc/stdio.h
615
str = endptr;
tools/include/nolibc/stdio.h
624
while (isspace(*str))
tools/include/nolibc/stdio.h
625
str++;
tools/include/nolibc/stdio.h
626
} else if (*format == *str) {
tools/include/nolibc/stdio.h
629
str++;
tools/include/nolibc/stdio.h
642
int sscanf(const char *str, const char *format, ...)
tools/include/nolibc/stdio.h
648
ret = vsscanf(str, format, args);
tools/include/nolibc/string.h
148
size_t strlen(const char *str);
tools/include/nolibc/string.h
150
size_t strlen(const char *str)
tools/include/nolibc/string.h
154
for (len = 0; str[len]; len++)
tools/include/nolibc/string.h
164
#define strlen(str) ({ \
tools/include/nolibc/string.h
165
__builtin_constant_p((str)) ? \
tools/include/nolibc/string.h
166
__builtin_strlen((str)) : \
tools/include/nolibc/string.h
167
nolibc_strlen((str)); \
tools/include/nolibc/string.h
172
size_t strnlen(const char *str, size_t maxlen)
tools/include/nolibc/string.h
176
for (len = 0; (len < maxlen) && str[len]; len++);
tools/include/nolibc/string.h
181
char *strdup(const char *str)
tools/include/nolibc/string.h
186
len = strlen(str);
tools/include/nolibc/string.h
189
memcpy(ret, str, len + 1);
tools/include/nolibc/string.h
195
char *strndup(const char *str, size_t maxlen)
tools/include/nolibc/string.h
200
len = strnlen(str, maxlen);
tools/include/nolibc/string.h
203
memcpy(ret, str, len);
tools/include/uapi/linux/mount.h
188
char str[]; /* Variable size part containing strings */
tools/laptop/freefall/freefall.c
82
const char *str = (seconds == 0) ? "Unparked" : "Parked";
tools/laptop/freefall/freefall.c
85
syslog(LOG_INFO, "%s %s disk head\n", str, device_path);
tools/lib/argv_split.c
19
static int count_argc(const char *str)
tools/lib/argv_split.c
23
while (*str) {
tools/lib/argv_split.c
24
str = skip_spaces(str);
tools/lib/argv_split.c
25
if (*str) {
tools/lib/argv_split.c
27
str = skip_arg(str);
tools/lib/argv_split.c
63
char **argv_split(const char *str, int *argcp)
tools/lib/argv_split.c
65
int argc = count_argc(str);
tools/lib/argv_split.c
77
while (*str) {
tools/lib/argv_split.c
78
str = skip_spaces(str);
tools/lib/argv_split.c
80
if (*str) {
tools/lib/argv_split.c
81
const char *p = str;
tools/lib/argv_split.c
84
str = skip_arg(str);
tools/lib/argv_split.c
86
t = strndup(p, str-p);
tools/lib/bpf/libbpf.c
11789
bool glob_match(const char *str, const char *pat)
tools/lib/bpf/libbpf.c
11791
while (*str && *pat && *pat != '*') {
tools/lib/bpf/libbpf.c
11793
str++;
tools/lib/bpf/libbpf.c
11797
if (*str != *pat)
tools/lib/bpf/libbpf.c
11799
str++;
tools/lib/bpf/libbpf.c
11808
while (*str)
tools/lib/bpf/libbpf.c
11809
if (glob_match(str++, pat))
tools/lib/bpf/libbpf.c
11812
return !*str && !*pat;
tools/lib/bpf/libbpf.c
6973
const char *str = "exception_callback:";
tools/lib/bpf/libbpf.c
6974
size_t pfx_len = strlen(str);
tools/lib/bpf/libbpf.c
6990
if (strncmp(name, str, pfx_len) != 0)
tools/lib/bpf/libbpf_internal.h
121
#define str_has_pfx(str, pfx) \
tools/lib/bpf/libbpf_internal.h
122
(strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0)
tools/lib/bpf/libbpf_internal.h
125
static inline bool str_has_sfx(const char *str, const char *sfx)
tools/lib/bpf/libbpf_internal.h
127
size_t str_len = strlen(str);
tools/lib/bpf/libbpf_internal.h
132
return strcmp(str + str_len - sfx_len, sfx) == 0;
tools/lib/bpf/libbpf_internal.h
737
bool glob_match(const char *str, const char *pat);
tools/lib/bpf/strset.c
25
const char *str = s->strs_data + key;
tools/lib/bpf/strset.c
27
return str_hash(str);
tools/lib/string.c
124
char *skip_spaces(const char *str)
tools/lib/string.c
126
while (isspace(*str))
tools/lib/string.c
127
++str;
tools/lib/string.c
128
return (char *)str;
tools/lib/subcmd/parse-options.c
32
static const char *skip_prefix(const char *str, const char *prefix)
tools/lib/subcmd/parse-options.c
35
return strncmp(str, prefix, len) ? NULL : str + len;
tools/mm/page-types.c
1170
static uint64_t parse_flag_name(const char *str, int len)
tools/mm/page-types.c
1174
if (!*str || !len)
tools/mm/page-types.c
1177
if (len <= 8 && !strncmp(str, "compound", len))
tools/mm/page-types.c
1183
if (!strncmp(str, page_flag_names[i] + 2, len))
tools/mm/page-types.c
1187
return parse_number(str);
tools/mm/page-types.c
1190
static uint64_t parse_flag_names(const char *str, int all)
tools/mm/page-types.c
1192
const char *p = str;
tools/mm/page-types.c
1197
if ((*str != '~') || (*str == '~' && all && *++str))
tools/mm/page-types.c
1198
flags |= parse_flag_name(str, p - str);
tools/mm/page-types.c
1201
str = p + 1;
tools/mm/page-types.c
878
static unsigned long long parse_number(const char *str)
tools/mm/page-types.c
882
n = strtoll(str, NULL, 0);
tools/mm/page-types.c
884
if (n == 0 && str[0] != '0')
tools/mm/page-types.c
885
fatal("invalid name or number: %s\n", str);
tools/mm/page-types.c
890
static void parse_pid(const char *str)
tools/mm/page-types.c
895
opt_pid = parse_number(str);
tools/mm/page_owner_sort.c
263
static char **explode(char sep, const char *str, int *size)
tools/mm/page_owner_sort.c
265
int count = 0, len = strlen(str);
tools/mm/page_owner_sort.c
269
if (str[i] == sep)
tools/mm/page_owner_sort.c
274
if (str[i] == sep) {
tools/mm/page_owner_sort.c
276
memcpy(ret[j++], str + lastindex + 1, i - lastindex - 1);
tools/mm/page_owner_sort.c
282
memcpy(ret[j++], str + lastindex + 1, strlen(str) - 1 - lastindex);
tools/mm/page_owner_sort.c
445
static bool match_str_list(const char *str, char **list, int list_size)
tools/mm/page_owner_sort.c
448
if (!strcmp(list[i], str))
tools/net/ynl/lib/ynl-priv.h
311
ynl_attr_put_str(struct nlmsghdr *nlh, unsigned int attr_type, const char *str)
tools/net/ynl/lib/ynl-priv.h
316
len = strlen(str) + 1;
tools/net/ynl/lib/ynl-priv.h
323
strcpy((char *)ynl_attr_data(attr), str);
tools/net/ynl/lib/ynl.c
104
sz = snprintf(str, str_sz - *n,
tools/net/ynl/lib/ynl.c
107
str += sz;
tools/net/ynl/lib/ynl.c
113
*n += snprintf(str, str_sz, "(!selector)");
tools/net/ynl/lib/ynl.c
120
*n += snprintf(str, str_sz, "(!=selector)");
tools/net/ynl/lib/ynl.c
125
*n += snprintf(str, str_sz - *n, "(%s)",
tools/net/ynl/lib/ynl.c
134
const struct ynl_policy_nest *policy, char *str, int str_sz,
tools/net/ynl/lib/ynl.c
148
n += snprintf(str, str_sz, "!policy");
tools/net/ynl/lib/ynl.c
174
if (ynl_err_walk_report_one(policy, selector, type, str, str_sz, &n))
tools/net/ynl/lib/ynl.c
189
n += snprintf(str, str_sz, "!nest");
tools/net/ynl/lib/ynl.c
198
&str[n], str_sz - n, nest_pol);
tools/net/ynl/lib/ynl.c
213
const char *str = NULL;
tools/net/ynl/lib/ynl.c
239
str = ynl_attr_get_str(attr);
tools/net/ynl/lib/ynl.c
240
if (str[len - 1])
tools/net/ynl/lib/ynl.c
258
str ? " (" : "");
tools/net/ynl/lib/ynl.c
283
bad_attr[0] ? ", " : (str ? " (" : ""));
tools/net/ynl/lib/ynl.c
310
if (str)
tools/net/ynl/lib/ynl.c
313
str, bad_attr, miss_attr,
tools/net/ynl/lib/ynl.c
81
char *str, int str_sz, int *n)
tools/net/ynl/lib/ynl.c
85
*n += snprintf(str, str_sz, "!policy");
tools/net/ynl/lib/ynl.c
91
*n += snprintf(str, str_sz, "!oob");
tools/net/ynl/lib/ynl.c
97
*n += snprintf(str, str_sz, "!name");
tools/net/ynl/lib/ynl.h
100
char str[];
tools/net/ynl/samples/rt-link.c
32
printf("%s ", r->prop_list.alt_ifname[i]->str);
tools/net/ynl/ynltool/json_writer.c
51
static void jsonw_puts(json_writer_t *self, const char *str)
tools/net/ynl/ynltool/json_writer.c
54
for (; *str; ++str)
tools/net/ynl/ynltool/json_writer.c
55
switch (*str) {
tools/net/ynl/ynltool/json_writer.c
78
putc(*str, self->out);
tools/net/ynl/ynltool/main.c
107
bool is_prefix(const char *pfx, const char *str)
tools/net/ynl/ynltool/main.c
111
if (strlen(str) < strlen(pfx))
tools/net/ynl/ynltool/main.c
114
return !memcmp(str, pfx, strlen(pfx));
tools/net/ynl/ynltool/main.h
50
bool is_prefix(const char *pfx, const char *str);
tools/objtool/builtin-check.c
35
static int parse_dump(const struct option *opt, const char *str, int unset)
tools/objtool/builtin-check.c
37
if (!str || !strcmp(str, "orc")) {
tools/objtool/builtin-check.c
45
static int parse_hacks(const struct option *opt, const char *str, int unset)
tools/objtool/builtin-check.c
56
if (!str || strstr(str, "jump_label")) {
tools/objtool/builtin-check.c
61
if (!str || strstr(str, "noinstr")) {
tools/objtool/builtin-check.c
66
if (!str || strstr(str, "skylake")) {
tools/objtool/check.c
3728
char *str;
tools/objtool/check.c
3730
str = sym->sec->data->d_buf + sym->offset + offset;
tools/objtool/check.c
3731
checksum_update(func, insn, str, strlen(str));
tools/objtool/disas.c
1003
if (!dalts[i].insn[j].str)
tools/objtool/disas.c
1007
"| %s\n", dalts[i].insn[j].str);
tools/objtool/disas.c
102
len = sprintf(str, "%s+0x%lx", name, offset);
tools/objtool/disas.c
1038
if (!dalt->insn[j].str || !dalt->insn[j].nops)
tools/objtool/disas.c
104
len = sprintf(str, "%s", name);
tools/objtool/disas.c
1041
free(dalt->insn[j].str);
tools/objtool/disas.c
1043
dalt->insn[j].str = NULL;
tools/objtool/disas.c
1056
dalt->insn[j + 1].str = strfmt("nop%s%d", s, nops);
tools/objtool/disas.c
1171
free(dalts[i].insn[j].str);
tools/objtool/disas.c
171
char *str;
tools/objtool/disas.c
177
str = offstr(sec, addr);
tools/objtool/disas.c
178
DINFO_FPRINTF(dinfo, bfd_vma_fmt, addr, str);
tools/objtool/disas.c
179
free(str);
tools/objtool/disas.c
245
char *str;
tools/objtool/disas.c
268
str = offstr(reloc->sym->sec, reloc->sym->offset + offset);
tools/objtool/disas.c
269
DINFO_FPRINTF(dinfo, bfd_vma_fmt, addr, str);
tools/objtool/disas.c
270
free(str);
tools/objtool/disas.c
53
char *str; /* instruction string */
tools/objtool/disas.c
658
char *str = NULL;
tools/objtool/disas.c
667
str = strdup("EXCEPTION");
tools/objtool/disas.c
671
str = strdup("JUMP");
tools/objtool/disas.c
695
str = pfx;
tools/objtool/disas.c
698
*str++ = '?';
tools/objtool/disas.c
700
*str++ = '+';
tools/objtool/disas.c
702
*str++ = '!';
tools/objtool/disas.c
706
str = strfmt("%sFEATURE 0x%X", pfx, num);
tools/objtool/disas.c
708
str = strfmt("%s%s", pfx, name);
tools/objtool/disas.c
713
return str;
tools/objtool/disas.c
747
dalt->insn[index].str = insn_str;
tools/objtool/disas.c
761
char *str;
tools/objtool/disas.c
770
str = strfmt("jmp%-3s %lx <%s+0x%lx>", suffix,
tools/objtool/disas.c
775
str = strfmt("nop%d", orig_insn->len);
tools/objtool/disas.c
779
if (!str)
tools/objtool/disas.c
782
disas_alt_add_insn(dalt, 0, str, 0, nops);
tools/objtool/disas.c
793
char *str;
tools/objtool/disas.c
796
str = strfmt("resume at 0x%lx <%s+0x%lx>",
tools/objtool/disas.c
799
if (!str)
tools/objtool/disas.c
802
disas_alt_add_insn(dalt, 0, str, 0, 0);
tools/objtool/disas.c
816
char *str;
tools/objtool/disas.c
829
str = strdup(disas_result(dctx));
tools/objtool/disas.c
830
if (!str)
tools/objtool/disas.c
834
err = disas_alt_add_insn(dalt, count, str, offset, nops);
tools/objtool/disas.c
849
char *str;
tools/objtool/disas.c
863
str = strdup(disas_result(dctx));
tools/objtool/disas.c
864
if (!str)
tools/objtool/disas.c
867
err = disas_alt_add_insn(dalt, 0, str, 0, nops);
tools/objtool/disas.c
87
char *str;
tools/objtool/disas.c
887
char *str;
tools/objtool/disas.c
901
str = dalt->insn[j].str;
tools/objtool/disas.c
902
printf("| %-*s ", dalt->width, str ?: "");
tools/objtool/disas.c
91
rv = vasprintf(&str, fmt, ap);
tools/objtool/disas.c
94
return rv == -1 ? NULL : str;
tools/objtool/disas.c
97
static int sprint_name(char *str, const char *name, unsigned long offset)
tools/objtool/disas.c
994
dalts[i].insn[0].str, dalts[i].name);
tools/objtool/elf.c
1305
unsigned int elf_add_string(struct elf *elf, struct section *strtab, const char *str)
tools/objtool/elf.c
1323
if (!elf_add_data(elf, strtab, str, strlen(str) + 1))
tools/objtool/elf.c
28
static inline u32 str_hash(const char *str)
tools/objtool/elf.c
30
return jhash(str, strlen(str), 0);
tools/objtool/elf.c
445
char *str;
tools/objtool/elf.c
456
str = strdup(sym->name);
tools/objtool/elf.c
457
if (!str) {
tools/objtool/elf.c
462
for (int i = strlen(str) - 1; i >= 0; i--) {
tools/objtool/elf.c
463
char c = str[i];
tools/objtool/elf.c
466
str[i + 1] = '\0';
tools/objtool/elf.c
471
return str;
tools/objtool/include/objtool/elf.h
156
unsigned int elf_add_string(struct elf *elf, struct section *strtab, const char *str);
tools/objtool/include/objtool/util.h
7
#define snprintf_check(str, size, format, args...) \
tools/objtool/include/objtool/util.h
9
int __ret = snprintf(str, size, format, args); \
tools/objtool/include/objtool/warn.h
24
char *str;
tools/objtool/include/objtool/warn.h
33
str = malloc(strlen(sym->name) + strlen(sec->name) + 40);
tools/objtool/include/objtool/warn.h
34
len = sprintf(str, "%s+0x%lx", sym->name, offset - sym->offset);
tools/objtool/include/objtool/warn.h
36
sprintf(str+len, " (%s+0x%lx)", sec->name, offset);
tools/objtool/include/objtool/warn.h
38
str = malloc(strlen(sec->name) + 20);
tools/objtool/include/objtool/warn.h
39
sprintf(str, "%s+0x%lx", sec->name, offset);
tools/objtool/include/objtool/warn.h
42
return str;
tools/objtool/klp-diff.c
1106
const char *str = patched_sym->sec->data->d_buf + addend;
tools/objtool/klp-diff.c
1108
__dbg_indent("\"%s\"", escape_str(str));
tools/objtool/klp-diff.c
1110
addend = elf_add_string(e->out, out_sym->sec, str);
tools/objtool/klp-diff.c
49
static inline u32 str_hash(const char *str)
tools/objtool/klp-diff.c
51
return jhash(str, strlen(str), 0);
tools/objtool/objtool.c
100
memcpy(str, self, self_len);
tools/objtool/objtool.c
101
str[self_len] = '/';
tools/objtool/objtool.c
102
strcpy(str + self_len + 1, file);
tools/objtool/objtool.c
104
return str;
tools/objtool/objtool.c
78
char self[PATH_MAX], *str;
tools/objtool/objtool.c
96
str = malloc(self_len + file_len + 2);
tools/objtool/objtool.c
97
if (!str)
tools/perf/arch/arm/util/cs-etm.c
241
const char *str)
tools/perf/arch/arm/util/cs-etm.c
248
if (str) {
tools/perf/arch/arm/util/cs-etm.c
249
snapshot_size = strtoull(str, &endptr, 0);
tools/perf/arch/arm/util/cs-etm.c
279
sink = term->val.str;
tools/perf/arch/arm64/util/arm-spe.c
447
const char *str)
tools/perf/arch/arm64/util/arm-spe.c
452
if (str) {
tools/perf/arch/arm64/util/arm-spe.c
453
snapshot_size = strtoull(str, &endptr, 0);
tools/perf/arch/s390/util/auxtrace.c
79
const char *str __maybe_unused)
tools/perf/arch/x86/util/intel-bts.c
253
const char *str)
tools/perf/arch/x86/util/intel-bts.c
260
if (str) {
tools/perf/arch/x86/util/intel-bts.c
261
snapshot_size = strtoull(str, &endptr, 0);
tools/perf/arch/x86/util/intel-pt.c
116
static int intel_pt_read_config(struct perf_pmu *intel_pt_pmu, const char *str,
tools/perf/arch/x86/util/intel-pt.c
124
mask = perf_pmu__format_bits(intel_pt_pmu, str);
tools/perf/arch/x86/util/intel-pt.c
242
const char *str)
tools/perf/arch/x86/util/intel-pt.c
249
if (str) {
tools/perf/arch/x86/util/intel-pt.c
250
snapshot_size = strtoull(str, &endptr, 0);
tools/perf/arch/x86/util/intel-pt.c
445
static void intel_pt_valid_str(char *str, size_t len, u64 valid)
tools/perf/arch/x86/util/intel-pt.c
450
str[0] = '\0';
tools/perf/arch/x86/util/intel-pt.c
457
p += scnprintf(str + p, len - p, ",");
tools/perf/arch/x86/util/intel-pt.c
460
p += scnprintf(str + p, len - p, "%u", val);
tools/perf/arch/x86/util/intel-pt.c
475
p += scnprintf(str + p, len - p, ",%u", last);
tools/perf/arch/x86/util/intel-pt.c
479
p += scnprintf(str + p, len - p, "-%u", last);
tools/perf/arch/x86/util/intel-pt.c
67
const char *str,
tools/perf/arch/x86/util/intel-pt.c
75
err = parse_events_terms(&terms, str);
tools/perf/arch/x86/util/intel-pt.c
91
static int intel_pt_parse_terms(const struct perf_pmu *pmu, const char *str, u64 *config)
tools/perf/arch/x86/util/intel-pt.c
94
return intel_pt_parse_terms_with_default(pmu, str, config);
tools/perf/arch/x86/util/iostat.c
226
static int iio_root_port_parse_str(u32 *domain, u8 *bus, char *str)
tools/perf/arch/x86/util/iostat.c
237
ret = regexec(®ex, str, 0, NULL, 0);
tools/perf/arch/x86/util/iostat.c
238
if (ret || sscanf(str, "%08x:%02hhx", domain, bus) != 2)
tools/perf/arch/x86/util/iostat.c
242
"\t for example: 0000:3d\n", str);
tools/perf/arch/x86/util/iostat.c
352
int iostat_parse(const struct option *opt, const char *str,
tools/perf/arch/x86/util/iostat.c
361
if (!str)
tools/perf/arch/x86/util/iostat.c
363
else if (!strcmp(str, "list"))
tools/perf/arch/x86/util/iostat.c
367
ret = iio_root_ports_list_filter(&root_ports, str);
tools/perf/arch/x86/util/pmu.c
74
static bool starts_with(const char *str, const char *prefix)
tools/perf/arch/x86/util/pmu.c
76
return !strncmp(prefix, str, strlen(prefix));
tools/perf/bench/numa.c
548
char *str;
tools/perf/bench/numa.c
580
if (sysfs__read_str(buf, &str, &strlen) < 0)
tools/perf/bench/numa.c
583
status = atoi(str);
tools/perf/bench/numa.c
585
free(str);
tools/perf/bench/numa.c
592
char *str0, *str;
tools/perf/bench/numa.c
600
str0 = str = strdup(g->p.cpu_list_str);
tools/perf/bench/numa.c
603
BUG_ON(!str);
tools/perf/bench/numa.c
615
tok = strsep(&str, ",");
tools/perf/bench/numa.c
740
char *str0, *str;
tools/perf/bench/numa.c
748
str0 = str = strdup(g->p.node_list_str);
tools/perf/bench/numa.c
751
BUG_ON(!str);
tools/perf/bench/numa.c
762
tok = strsep(&str, ",");
tools/perf/bench/sched-pipe.c
55
const char *str, int unset __maybe_unused)
tools/perf/bench/sched-pipe.c
57
char *p = strdup(str);
tools/perf/builtin-annotate.c
674
static int parse_percent_limit(const struct option *opt, const char *str,
tools/perf/builtin-annotate.c
678
double pcnt = strtof(str, NULL);
tools/perf/builtin-annotate.c
684
static int parse_data_type(const struct option *opt, const char *str, int unset)
tools/perf/builtin-annotate.c
689
if (str)
tools/perf/builtin-annotate.c
690
ann->target_data_type = strdup(str);
tools/perf/builtin-bench.c
196
static int bench_str2int(const char *str)
tools/perf/builtin-bench.c
198
if (!str)
tools/perf/builtin-bench.c
201
if (!strcmp(str, BENCH_FORMAT_DEFAULT_STR))
tools/perf/builtin-bench.c
203
else if (!strcmp(str, BENCH_FORMAT_SIMPLE_STR))
tools/perf/builtin-c2c.c
2952
static int setup_display(const char *str)
tools/perf/builtin-c2c.c
2954
const char *display = str;
tools/perf/builtin-c2c.c
2965
pr_err("failed: unknown display type: %s\n", str);
tools/perf/builtin-c2c.c
3358
const char *str, int unset __maybe_unused)
tools/perf/builtin-c2c.c
3369
if (!strcmp(str, "list")) {
tools/perf/builtin-c2c.c
3373
if (perf_pmu__mem_events_parse(pmu, str))
tools/perf/builtin-diff.c
1064
char *str = NULL;
tools/perf/builtin-diff.c
1067
str = strdup(pdiff.time_str);
tools/perf/builtin-diff.c
1068
if (!str)
tools/perf/builtin-diff.c
1072
*pstr = str;
tools/perf/builtin-diff.c
228
static int setup_compute(const struct option *opt, const char *str,
tools/perf/builtin-diff.c
232
char *cstr = (char *) str;
tools/perf/builtin-diff.c
237
if (!str) {
tools/perf/builtin-diff.c
242
option = strchr(str, ':');
tools/perf/builtin-diff.c
244
unsigned len = option++ - str;
tools/perf/builtin-diff.c
255
strncpy(buf, str, len);
tools/perf/builtin-diff.c
267
"(use 'delta','ratio' or 'wdiff')\n", str);
tools/perf/builtin-ftrace.c
1545
static void list_function_cb(char *str, void *arg)
tools/perf/builtin-ftrace.c
1549
if (strfilter__compare(filter, str))
tools/perf/builtin-ftrace.c
1550
printf("%s", str);
tools/perf/builtin-ftrace.c
1554
const char *str, int unset)
tools/perf/builtin-ftrace.c
1560
if (unset || !str)
tools/perf/builtin-ftrace.c
1563
filter = strfilter__new(str, &err);
tools/perf/builtin-ftrace.c
1567
ret = strfilter__or(filter, str, &err);
tools/perf/builtin-ftrace.c
1569
pr_err("Filter parse error at %td.\n", err - str + 1);
tools/perf/builtin-ftrace.c
1570
pr_err("Source: \"%s\"\n", str);
tools/perf/builtin-ftrace.c
1571
pr_err(" %*c\n", (int)(err - str + 1), '^');
tools/perf/builtin-ftrace.c
1585
static int parse_filter_func(const struct option *opt, const char *str,
tools/perf/builtin-ftrace.c
1591
entry = malloc(sizeof(*entry) + strlen(str) + 1);
tools/perf/builtin-ftrace.c
1595
strcpy(entry->name, str);
tools/perf/builtin-ftrace.c
1611
static int parse_filter_event(const struct option *opt, const char *str,
tools/perf/builtin-ftrace.c
1619
s = strdup(str);
tools/perf/builtin-ftrace.c
1639
const char *str, int unset)
tools/perf/builtin-ftrace.c
1656
val = parse_tag_value(str, tags_size);
tools/perf/builtin-ftrace.c
1670
const char *str, int unset)
tools/perf/builtin-ftrace.c
1683
ret = perf_parse_sublevel_options(str, func_tracer_opts);
tools/perf/builtin-ftrace.c
1691
const char *str, int unset)
tools/perf/builtin-ftrace.c
1712
ret = perf_parse_sublevel_options(str, graph_tracer_opts);
tools/perf/builtin-ftrace.c
1719
static int parse_sort_key(const struct option *opt, const char *str, int unset)
tools/perf/builtin-ftrace.c
1726
if (!strcmp(str, "total"))
tools/perf/builtin-ftrace.c
1728
else if (!strcmp(str, "avg"))
tools/perf/builtin-ftrace.c
1730
else if (!strcmp(str, "max"))
tools/perf/builtin-ftrace.c
1732
else if (!strcmp(str, "count"))
tools/perf/builtin-ftrace.c
1734
else if (!strcmp(str, "name"))
tools/perf/builtin-ftrace.c
1737
pr_err("Unknown sort key: %s\n", str);
tools/perf/builtin-ftrace.c
236
void (*cb)(char *str, void *arg),
tools/perf/builtin-inject.c
2008
static int parse_vm_time_correlation(const struct option *opt, const char *str, int unset)
tools/perf/builtin-inject.c
2021
if (!str)
tools/perf/builtin-inject.c
2024
dry_run = skip_spaces(str);
tools/perf/builtin-inject.c
2030
args = str;
tools/perf/builtin-inject.c
2038
static int parse_guest_data(const struct option *opt, const char *str, int unset)
tools/perf/builtin-inject.c
2048
if (!str)
tools/perf/builtin-inject.c
2051
s = strdup(str);
tools/perf/builtin-inject.c
213
const char *str __maybe_unused)
tools/perf/builtin-kmem.c
1720
char *str = strdup(arg);
tools/perf/builtin-kmem.c
1721
char *pos = str;
tools/perf/builtin-kmem.c
1723
if (!str) {
tools/perf/builtin-kmem.c
1734
free(str);
tools/perf/builtin-kmem.c
1739
free(str);
tools/perf/builtin-kmem.c
1746
char *str = strdup(arg);
tools/perf/builtin-kmem.c
1747
char *pos = str;
tools/perf/builtin-kmem.c
1749
if (!str) {
tools/perf/builtin-kmem.c
1760
free(str);
tools/perf/builtin-kmem.c
1765
free(str);
tools/perf/builtin-kmem.c
693
char *str, *pos = NULL;
tools/perf/builtin-kmem.c
699
str = strtok_r(orig_flags, "|", &pos);
tools/perf/builtin-kmem.c
700
while (str) {
tools/perf/builtin-kmem.c
706
if (strcmp(gfp_compact_table[i].original, str))
tools/perf/builtin-kmem.c
730
str = strtok_r(NULL, "|", &pos);
tools/perf/builtin-kmem.c
763
char *str, *pos = NULL;
tools/perf/builtin-kmem.c
780
str = strtok_r(seq.buffer, " ", &pos);
tools/perf/builtin-kmem.c
781
while (str) {
tools/perf/builtin-kmem.c
782
if (!strncmp(str, "gfp_flags=", 10)) {
tools/perf/builtin-kmem.c
793
new->human_readable = strdup(str + 10);
tools/perf/builtin-kmem.c
794
new->compact_str = compact_gfp_flags(str + 10);
tools/perf/builtin-kmem.c
801
str = strtok_r(NULL, " ", &pos);
tools/perf/builtin-kwork.c
1116
(strlen(sym->str) != 0)) {
tools/perf/builtin-kwork.c
1125
name = strdup(sym->str);
tools/perf/builtin-kwork.c
2245
char *tmp, *tok, *str;
tools/perf/builtin-kwork.c
2253
str = strdup(kwork->event_list_str);
tools/perf/builtin-kwork.c
2254
for (tok = strtok_r(str, ", ", &tmp);
tools/perf/builtin-kwork.c
2268
free(str);
tools/perf/builtin-kwork.c
227
char *tmp, *tok, *str = strdup(kwork->sort_order);
tools/perf/builtin-kwork.c
229
for (tok = strtok_r(str, ", ", &tmp);
tools/perf/builtin-kwork.c
237
free(str);
tools/perf/builtin-list.c
83
static const char *skip_spaces_or_commas(const char *str)
tools/perf/builtin-list.c
85
while (isspace(*str) || *str == ',')
tools/perf/builtin-list.c
86
++str;
tools/perf/builtin-list.c
87
return str;
tools/perf/builtin-lock.c
2232
static int parse_map_entry(const struct option *opt, const char *str,
tools/perf/builtin-lock.c
2240
val = strtoul(str, &endptr, 0);
tools/perf/builtin-lock.c
2242
pr_err("invalid BPF map length: %s\n", str);
tools/perf/builtin-lock.c
2250
static int parse_max_stack(const struct option *opt, const char *str,
tools/perf/builtin-lock.c
2258
val = strtol(str, &endptr, 0);
tools/perf/builtin-lock.c
2260
pr_err("invalid max stack depth: %s\n", str);
tools/perf/builtin-lock.c
2286
static int parse_lock_type(const struct option *opt __maybe_unused, const char *str,
tools/perf/builtin-lock.c
2291
s = strdup(str);
tools/perf/builtin-lock.c
2405
static int parse_lock_addr(const struct option *opt __maybe_unused, const char *str,
tools/perf/builtin-lock.c
2412
s = strdup(str);
tools/perf/builtin-lock.c
2450
static int parse_output(const struct option *opt __maybe_unused, const char *str,
tools/perf/builtin-lock.c
2455
if (str == NULL)
tools/perf/builtin-lock.c
2458
lock_output = fopen(str, "w");
tools/perf/builtin-lock.c
2460
pr_err("Cannot open %s\n", str);
tools/perf/builtin-lock.c
2464
*name = str;
tools/perf/builtin-lock.c
2497
static int parse_cgroup_filter(const struct option *opt __maybe_unused, const char *str,
tools/perf/builtin-lock.c
2503
s = strdup(str);
tools/perf/builtin-lock.c
2570
static int parse_lock_delay(const struct option *opt __maybe_unused, const char *str,
tools/perf/builtin-lock.c
2576
s = strdup(str);
tools/perf/builtin-lock.c
346
static int setup_output_field(bool contention, const char *str)
tools/perf/builtin-lock.c
356
if (str == NULL) {
tools/perf/builtin-lock.c
365
orig = tmp = strdup(str);
tools/perf/builtin-mem.c
189
char str[PAGE_SIZE_NAME_LEN];
tools/perf/builtin-mem.c
234
get_page_size_name(sample->data_page_size, str),
tools/perf/builtin-mem.c
420
parse_mem_ops(const struct option *opt, const char *str, int unset)
tools/perf/builtin-mem.c
431
if (str) {
tools/perf/builtin-mem.c
433
s = os = strdup(str);
tools/perf/builtin-mem.c
50
const char *str, int unset __maybe_unused)
tools/perf/builtin-mem.c
61
if (!strcmp(str, "list")) {
tools/perf/builtin-mem.c
65
if (perf_pmu__mem_events_parse(pmu, str))
tools/perf/builtin-probe.c
167
static int opt_set_target(const struct option *opt, const char *str,
tools/perf/builtin-probe.c
173
if (str) {
tools/perf/builtin-probe.c
182
if (params->uprobes || strchr(str, '/')) {
tools/perf/builtin-probe.c
183
tmp = nsinfo__realpath(str, params->nsi);
tools/perf/builtin-probe.c
185
pr_warning("Failed to get the absolute path of %s: %m\n", str);
tools/perf/builtin-probe.c
189
tmp = strdup(str);
tools/perf/builtin-probe.c
203
const char *str, int unset __maybe_unused)
tools/perf/builtin-probe.c
209
if (str) {
tools/perf/builtin-probe.c
211
ns_pid = (pid_t)strtol(str, NULL, 10);
tools/perf/builtin-probe.c
214
pr_warning("Failed to parse %s as a pid: %m\n", str);
tools/perf/builtin-probe.c
233
const char *str, int unset __maybe_unused)
tools/perf/builtin-probe.c
237
if (!str)
tools/perf/builtin-probe.c
247
ret = parse_line_range_desc(str, ¶ms->line_range);
tools/perf/builtin-probe.c
253
const char *str, int unset __maybe_unused)
tools/perf/builtin-probe.c
258
if (!str)
tools/perf/builtin-probe.c
261
ret = parse_probe_event(str);
tools/perf/builtin-probe.c
275
const char *str, int unset __maybe_unused)
tools/perf/builtin-probe.c
277
if (str) {
tools/perf/builtin-probe.c
279
return parse_probe_event(str);
tools/perf/builtin-probe.c
286
const char *str, int unset)
tools/perf/builtin-probe.c
291
if (str)
tools/perf/builtin-probe.c
292
return params_add_filter(str);
tools/perf/builtin-probe.c
298
const char *str, int unset __maybe_unused)
tools/perf/builtin-probe.c
300
if (str)
tools/perf/builtin-probe.c
301
return params_add_filter(str);
tools/perf/builtin-probe.c
443
char *str = strfilter__string(filter);
tools/perf/builtin-probe.c
447
if (!str)
tools/perf/builtin-probe.c
450
pr_debug("Delete filter: \'%s\'\n", str);
tools/perf/builtin-probe.c
490
pr_warning("\"%s\" does not hit any event.\n", str);
tools/perf/builtin-probe.c
502
free(str);
tools/perf/builtin-probe.c
53
static int parse_probe_event(const char *str)
tools/perf/builtin-probe.c
58
pr_debug("probe-definition(%d): %s\n", params->nevents, str);
tools/perf/builtin-probe.c
75
ret = parse_perf_probe_command(str, pev);
tools/perf/builtin-probe.c
81
static int params_add_filter(const char *str)
tools/perf/builtin-probe.c
86
pr_debug2("Add filter: %s\n", str);
tools/perf/builtin-probe.c
88
params->filter = strfilter__new(str, &err);
tools/perf/builtin-probe.c
92
ret = strfilter__or(params->filter, str, &err);
tools/perf/builtin-probe.c
95
pr_err("Filter parse error at %td.\n", err - str + 1);
tools/perf/builtin-probe.c
96
pr_err("Source: \"%s\"\n", str);
tools/perf/builtin-probe.c
97
pr_err(" %*c\n", (int)(err - str + 1), '^');
tools/perf/builtin-record.c
2981
static const char *str[CALLCHAIN_MAX] = { "NONE", "FP", "DWARF", "LBR" };
tools/perf/builtin-record.c
2983
pr_debug("callchain: type %s\n", str[callchain->record_mode]);
tools/perf/builtin-record.c
3078
static int record__parse_event_enable_time(const struct option *opt, const char *str, int unset)
tools/perf/builtin-record.c
3082
return evlist__parse_event_enable_time(rec->evlist, &rec->opts, str, unset);
tools/perf/builtin-record.c
3085
static int record__parse_affinity(const struct option *opt, const char *str, int unset)
tools/perf/builtin-record.c
3089
if (unset || !str)
tools/perf/builtin-record.c
3092
if (!strcasecmp(str, "node"))
tools/perf/builtin-record.c
3094
else if (!strcasecmp(str, "cpu"))
tools/perf/builtin-record.c
3141
static int record__parse_threads(const struct option *opt, const char *str, int unset)
tools/perf/builtin-record.c
3146
if (unset || !str || !strlen(str)) {
tools/perf/builtin-record.c
3151
opts->threads_user_spec = strdup(str);
tools/perf/builtin-record.c
3157
if (!strncasecmp(str, thread_spec_tags[s], strlen(thread_spec_tags[s]))) {
tools/perf/builtin-record.c
3173
const char *str, int unset)
tools/perf/builtin-record.c
3190
val = parse_tag_value(str, tags_size);
tools/perf/builtin-record.c
3200
const char *str,
tools/perf/builtin-record.c
3208
if (!str)
tools/perf/builtin-record.c
3211
s = strdup(str);
tools/perf/builtin-record.c
3243
const char *str,
tools/perf/builtin-record.c
3250
if (!str)
tools/perf/builtin-record.c
3253
off_cpu_thresh_ms = strtoull(str, &endptr, 10);
tools/perf/builtin-record.c
3256
if (*endptr || (off_cpu_thresh_ms == 0 && strcmp(str, "0")))
tools/perf/builtin-record.c
3269
const char *str,
tools/perf/builtin-record.c
3274
return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close);
tools/perf/builtin-record.c
3334
if (!strcmp(s->str, "signal")) {
tools/perf/builtin-record.c
3341
val = parse_tag_value(s->str, tags_size);
tools/perf/builtin-record.c
3344
pr_debug("switch-output with %s size threshold\n", s->str);
tools/perf/builtin-record.c
3348
val = parse_tag_value(s->str, tags_time);
tools/perf/builtin-record.c
3352
s->str, s->time);
tools/perf/builtin-record.c
3412
const char *str,
tools/perf/builtin-record.c
3416
char *p = strdup(str);
tools/perf/builtin-record.c
3425
pr_err("Invalid synth option: %s\n", str);
tools/perf/builtin-record.c
3632
OPT_STRING_OPTARG_SET(0, "switch-output", &record.switch_output.str,
tools/perf/builtin-record.c
521
const char *str,
tools/perf/builtin-record.c
529
if (str)
tools/perf/builtin-record.c
530
opts->nr_cblocks = strtol(str, NULL, 0);
tools/perf/builtin-record.c
567
const char *str,
tools/perf/builtin-record.c
583
if (str) {
tools/perf/builtin-record.c
584
opts->mmap_flush = parse_tag_value(str, tags);
tools/perf/builtin-record.c
586
opts->mmap_flush = strtol(str, NULL, 0);
tools/perf/builtin-record.c
603
static int record__parse_comp_level(const struct option *opt, const char *str, int unset)
tools/perf/builtin-record.c
610
if (str)
tools/perf/builtin-record.c
611
opts->comp_level = strtol(str, NULL, 0);
tools/perf/builtin-record.c
91
const char *str;
tools/perf/builtin-report.c
1254
const char *str __maybe_unused, int unset)
tools/perf/builtin-report.c
1263
parse_percent_limit(const struct option *opt, const char *str,
tools/perf/builtin-report.c
1267
double pcnt = strtof(str, NULL);
tools/perf/builtin-sched.c
1647
const char *str;
tools/perf/builtin-sched.c
1693
str = thread__comm_str(sched_in);
tools/perf/builtin-sched.c
1703
} else if (!sched->map.task_name || sched_match_task(sched, str)) {
tools/perf/builtin-sched.c
1727
str = thread__comm_str(sched_in);
tools/perf/builtin-sched.c
1732
if (sched->map.task_name && !sched_match_task(sched, str)) {
tools/perf/builtin-sched.c
1739
str = thread__comm_str(sched_out);
tools/perf/builtin-sched.c
1740
if (!(sched->map.task_name && !sched_match_task(sched, str)))
tools/perf/builtin-sched.c
2048
static char str[32];
tools/perf/builtin-sched.c
2055
n = scnprintf(str, sizeof(str), "%s", comm);
tools/perf/builtin-sched.c
2058
n = scnprintf(str, sizeof(str), "%s[%d/%d]", comm, tid, pid);
tools/perf/builtin-sched.c
2061
n = scnprintf(str, sizeof(str), "%s[%d]", comm, tid);
tools/perf/builtin-sched.c
2066
return str;
tools/perf/builtin-sched.c
3238
const char *str = sched->prio_str;
tools/perf/builtin-sched.c
3240
if (!str)
tools/perf/builtin-sched.c
3243
while (isdigit(*str)) {
tools/perf/builtin-sched.c
3245
start_prio = strtoul(str, &p, 0);
tools/perf/builtin-sched.c
3250
str = ++p;
tools/perf/builtin-sched.c
3252
end_prio = strtoul(str, &p, 0);
tools/perf/builtin-sched.c
3269
str = p;
tools/perf/builtin-sched.c
3729
char *tmp, *tok, *str = strdup(sched->sort_order);
tools/perf/builtin-sched.c
3731
for (tok = strtok_r(str, ", ", &tmp);
tools/perf/builtin-sched.c
3739
free(str);
tools/perf/builtin-script.c
170
const char *str;
tools/perf/builtin-script.c
1728
char str[SAMPLE_FLAGS_BUF_SIZE];
tools/perf/builtin-script.c
173
{.str = "comm", .field = PERF_OUTPUT_COMM},
tools/perf/builtin-script.c
1731
ret = perf_sample__sprintf_flags(flags, str, sizeof(str));
tools/perf/builtin-script.c
1736
return fprintf(fp, " %-*s ", SAMPLE_FLAGS_STR_ALIGNED_SIZE, str);
tools/perf/builtin-script.c
174
{.str = "tid", .field = PERF_OUTPUT_TID},
tools/perf/builtin-script.c
175
{.str = "pid", .field = PERF_OUTPUT_PID},
tools/perf/builtin-script.c
176
{.str = "time", .field = PERF_OUTPUT_TIME},
tools/perf/builtin-script.c
177
{.str = "cpu", .field = PERF_OUTPUT_CPU},
tools/perf/builtin-script.c
178
{.str = "event", .field = PERF_OUTPUT_EVNAME},
tools/perf/builtin-script.c
179
{.str = "trace", .field = PERF_OUTPUT_TRACE},
tools/perf/builtin-script.c
180
{.str = "ip", .field = PERF_OUTPUT_IP},
tools/perf/builtin-script.c
181
{.str = "sym", .field = PERF_OUTPUT_SYM},
tools/perf/builtin-script.c
182
{.str = "dso", .field = PERF_OUTPUT_DSO},
tools/perf/builtin-script.c
183
{.str = "dsoff", .field = PERF_OUTPUT_DSOFF},
tools/perf/builtin-script.c
184
{.str = "addr", .field = PERF_OUTPUT_ADDR},
tools/perf/builtin-script.c
185
{.str = "symoff", .field = PERF_OUTPUT_SYMOFFSET},
tools/perf/builtin-script.c
1856
char str[sizeof(u64) + 1] = "";
tools/perf/builtin-script.c
186
{.str = "srcline", .field = PERF_OUTPUT_SRCLINE},
tools/perf/builtin-script.c
1865
memcpy(str, &val, sizeof(val));
tools/perf/builtin-script.c
1866
str[sizeof(val)] = 0;
tools/perf/builtin-script.c
1869
data->ip, val, str);
tools/perf/builtin-script.c
187
{.str = "period", .field = PERF_OUTPUT_PERIOD},
tools/perf/builtin-script.c
188
{.str = "iregs", .field = PERF_OUTPUT_IREGS},
tools/perf/builtin-script.c
189
{.str = "uregs", .field = PERF_OUTPUT_UREGS},
tools/perf/builtin-script.c
190
{.str = "brstack", .field = PERF_OUTPUT_BRSTACK},
tools/perf/builtin-script.c
191
{.str = "brstacksym", .field = PERF_OUTPUT_BRSTACKSYM},
tools/perf/builtin-script.c
192
{.str = "data_src", .field = PERF_OUTPUT_DATA_SRC},
tools/perf/builtin-script.c
193
{.str = "weight", .field = PERF_OUTPUT_WEIGHT},
tools/perf/builtin-script.c
194
{.str = "bpf-output", .field = PERF_OUTPUT_BPF_OUTPUT},
tools/perf/builtin-script.c
195
{.str = "callindent", .field = PERF_OUTPUT_CALLINDENT},
tools/perf/builtin-script.c
196
{.str = "insn", .field = PERF_OUTPUT_INSN},
tools/perf/builtin-script.c
197
{.str = "disasm", .field = PERF_OUTPUT_DISASM},
tools/perf/builtin-script.c
198
{.str = "insnlen", .field = PERF_OUTPUT_INSNLEN},
tools/perf/builtin-script.c
199
{.str = "brstackinsn", .field = PERF_OUTPUT_BRSTACKINSN},
tools/perf/builtin-script.c
200
{.str = "brstackoff", .field = PERF_OUTPUT_BRSTACKOFF},
tools/perf/builtin-script.c
201
{.str = "synth", .field = PERF_OUTPUT_SYNTH},
tools/perf/builtin-script.c
202
{.str = "phys_addr", .field = PERF_OUTPUT_PHYS_ADDR},
tools/perf/builtin-script.c
203
{.str = "metric", .field = PERF_OUTPUT_METRIC},
tools/perf/builtin-script.c
204
{.str = "misc", .field = PERF_OUTPUT_MISC},
tools/perf/builtin-script.c
205
{.str = "srccode", .field = PERF_OUTPUT_SRCCODE},
tools/perf/builtin-script.c
206
{.str = "ipc", .field = PERF_OUTPUT_IPC},
tools/perf/builtin-script.c
207
{.str = "tod", .field = PERF_OUTPUT_TOD},
tools/perf/builtin-script.c
208
{.str = "data_page_size", .field = PERF_OUTPUT_DATA_PAGE_SIZE},
tools/perf/builtin-script.c
209
{.str = "code_page_size", .field = PERF_OUTPUT_CODE_PAGE_SIZE},
tools/perf/builtin-script.c
210
{.str = "ins_lat", .field = PERF_OUTPUT_INS_LAT},
tools/perf/builtin-script.c
211
{.str = "brstackinsnlen", .field = PERF_OUTPUT_BRSTACKINSNLEN},
tools/perf/builtin-script.c
212
{.str = "machine_pid", .field = PERF_OUTPUT_MACHINE_PID},
tools/perf/builtin-script.c
213
{.str = "vcpu", .field = PERF_OUTPUT_VCPU},
tools/perf/builtin-script.c
214
{.str = "cgroup", .field = PERF_OUTPUT_CGROUP},
tools/perf/builtin-script.c
215
{.str = "retire_lat", .field = PERF_OUTPUT_RETIRE_LAT},
tools/perf/builtin-script.c
216
{.str = "brstackdisasm", .field = PERF_OUTPUT_BRSTACKDISASM},
tools/perf/builtin-script.c
217
{.str = "brcntr", .field = PERF_OUTPUT_BRCNTR},
tools/perf/builtin-script.c
2427
char str[PAGE_SIZE_NAME_LEN];
tools/perf/builtin-script.c
2544
fprintf(fp, " %s", get_page_size_name(sample->data_page_size, str));
tools/perf/builtin-script.c
2547
fprintf(fp, " %s", get_page_size_name(sample->code_page_size, str));
tools/perf/builtin-script.c
3290
const char *str, int unset __maybe_unused)
tools/perf/builtin-script.c
3296
if (strcmp(str, "lang") == 0) {
tools/perf/builtin-script.c
3301
script = strchr(str, ':');
tools/perf/builtin-script.c
3303
len = script - str;
tools/perf/builtin-script.c
3308
strncpy(spec, str, len);
tools/perf/builtin-script.c
3317
script = str;
tools/perf/builtin-script.c
3344
char *str = strdup(arg);
tools/perf/builtin-script.c
3348
if (!str)
tools/perf/builtin-script.c
3355
tok = strchr(str, ':');
tools/perf/builtin-script.c
3359
if (!strcmp(str, "hw"))
tools/perf/builtin-script.c
3361
else if (!strcmp(str, "sw"))
tools/perf/builtin-script.c
3363
else if (!strcmp(str, "trace"))
tools/perf/builtin-script.c
3365
else if (!strcmp(str, "raw"))
tools/perf/builtin-script.c
3367
else if (!strcmp(str, "break"))
tools/perf/builtin-script.c
3369
else if (!strcmp(str, "synth"))
tools/perf/builtin-script.c
3390
tok = str;
tools/perf/builtin-script.c
3391
if (strlen(str) == 0) {
tools/perf/builtin-script.c
3399
if (strchr(str, '+') || strchr(str, '-'))
tools/perf/builtin-script.c
3431
if (strcmp(tok, all_output_options[i].str) == 0)
tools/perf/builtin-script.c
3458
all_output_options[i].str, event_type(j));
tools/perf/builtin-script.c
3476
all_output_options[i].str, event_type(type));
tools/perf/builtin-script.c
3502
free(str);
tools/perf/builtin-script.c
3582
static const char *ends_with(const char *str, const char *suffix)
tools/perf/builtin-script.c
3585
const char *p = str;
tools/perf/builtin-script.c
3587
if (strlen(str) > suffix_len) {
tools/perf/builtin-script.c
3588
p = str + strlen(str) - suffix_len;
tools/perf/builtin-script.c
3639
char *script_root, *str;
tools/perf/builtin-script.c
3645
str = (char *)ends_with(script_root, suffix);
tools/perf/builtin-script.c
3646
if (!str) {
tools/perf/builtin-script.c
3651
*str = '\0';
tools/perf/builtin-script.c
3967
const char *str, int unset __maybe_unused)
tools/perf/builtin-script.c
3972
if (str) {
tools/perf/builtin-script.c
3973
if (strcmp(str, "disasm") == 0)
tools/perf/builtin-script.c
3975
else if (strlen(str) != 0 && strcmp(str, "raw") != 0) {
tools/perf/builtin-script.c
3991
const char *str __maybe_unused,
tools/perf/builtin-script.c
4002
const char *str __maybe_unused,
tools/perf/builtin-script.c
4013
const char *str __maybe_unused,
tools/perf/builtin-script.c
426
const char *str = "";
tools/perf/builtin-script.c
430
str = all_output_options[i].str;
tools/perf/builtin-script.c
434
return str;
tools/perf/builtin-stat.c
1157
const char *str,
tools/perf/builtin-stat.c
1163
if (asprintf(&tmp, "%s,%s", metrics, str) < 0)
tools/perf/builtin-stat.c
1168
metrics = strdup(str);
tools/perf/builtin-stat.c
1176
const char *str,
tools/perf/builtin-stat.c
1181
return evlist__parse_control(str, &config->ctl_fd, &config->ctl_fd_ack, &config->ctl_fd_close);
tools/perf/builtin-stat.c
1185
const char *str, int unset)
tools/perf/builtin-stat.c
1192
return parse_cgroups(opt, str, unset);
tools/perf/builtin-stat.c
1196
const char *str,
tools/perf/builtin-stat.c
1207
pmu = perf_pmus__pmu_for_pmu_filter(str);
tools/perf/builtin-stat.c
1209
fprintf(stderr, "--cputype %s is not supported!\n", str);
tools/perf/builtin-stat.c
1218
const char *str,
tools/perf/builtin-stat.c
1231
if (str == NULL) {
tools/perf/builtin-stat.c
1240
if (strlen(str) != 2 || (str[0] != 'l' && str[0] != 'L')) {
tools/perf/builtin-stat.c
1247
level = atoi(&str[1]);
tools/perf/builtin-stat.c
2022
char str[] = "TopdownL1";
tools/perf/builtin-stat.c
2045
str[8] = stat_config.topdown_level + '0';
tools/perf/builtin-stat.c
2047
pmu, str,
tools/perf/builtin-stat.c
2401
static int parse_tpebs_mode(const struct option *opt, const char *str,
tools/perf/builtin-stat.c
2406
if (!strcasecmp("mean", str)) {
tools/perf/builtin-stat.c
2410
if (!strcasecmp("min", str)) {
tools/perf/builtin-stat.c
2414
if (!strcasecmp("max", str)) {
tools/perf/builtin-stat.c
2418
if (!strcasecmp("last", str)) {
tools/perf/builtin-trace.c
5008
static int trace__set_duration(const struct option *opt, const char *str,
tools/perf/builtin-trace.c
5013
trace->duration_filter = atof(str);
tools/perf/builtin-trace.c
5017
static int trace__set_filter_pids_from_option(const struct option *opt, const char *str,
tools/perf/builtin-trace.c
5027
struct intlist *list = intlist__new(str);
tools/perf/builtin-trace.c
5066
static int parse_pagefaults(const struct option *opt, const char *str,
tools/perf/builtin-trace.c
5071
if (strcmp(str, "all") == 0)
tools/perf/builtin-trace.c
5073
else if (strcmp(str, "maj") == 0)
tools/perf/builtin-trace.c
5075
else if (strcmp(str, "min") == 0)
tools/perf/builtin-trace.c
5171
static int trace__parse_events_option(const struct option *opt, const char *str,
tools/perf/builtin-trace.c
5177
int len = strlen(str) + 1, err = -1, list, idx;
tools/perf/builtin-trace.c
5185
s = strd = strdup(str);
tools/perf/builtin-trace.c
5268
static int trace__parse_cgroups(const struct option *opt, const char *str, int unset)
tools/perf/builtin-trace.c
5276
return parse_cgroups(&o, str, unset);
tools/perf/builtin-trace.c
5278
trace->cgroup = evlist__findnew_cgroup(trace->evlist, str);
tools/perf/builtin-trace.c
5283
static int trace__parse_summary_mode(const struct option *opt, const char *str,
tools/perf/builtin-trace.c
5288
if (!strcmp(str, "thread")) {
tools/perf/builtin-trace.c
5290
} else if (!strcmp(str, "total")) {
tools/perf/builtin-trace.c
5292
} else if (!strcmp(str, "cgroup")) {
tools/perf/builtin-trace.c
5295
pr_err("Unknown summary mode: %s\n", str);
tools/perf/jvmti/jvmti_agent.c
132
char str[32];
tools/perf/jvmti/jvmti_agent.c
147
strftime(str, sizeof(str), JIT_LANG"-jit-%Y%m%d", &tm);
tools/perf/jvmti/jvmti_agent.c
179
ret = snprintf(jit_path, PATH_MAX, "%s/.debug/jit/%s.XXXXXXXX", base, str);
tools/perf/jvmti/jvmti_agent.c
184
base, str);
tools/perf/jvmti/jvmti_agent.c
238
char *str = getenv("JITDUMP_USE_ARCH_TIMESTAMP");
tools/perf/jvmti/jvmti_agent.c
240
if (!str || !*str || !strcmp(str, "0"))
tools/perf/jvmti/libjvmti.c
303
char str[len];
tools/perf/jvmti/libjvmti.c
304
snprintf(str, len, "%s%s%s", class_sign, func_name, func_sign);
tools/perf/jvmti/libjvmti.c
306
if (jvmti_write_code(jvmti_agent, str, addr, code_addr, code_size))
tools/perf/scripts/python/Perf-Trace-Util/Context.c
109
PyObject *str;
tools/perf/scripts/python/Perf-Trace-Util/Context.c
111
c = get_args(args, "itrace_options", &str);
tools/perf/scripts/python/Perf-Trace-Util/Context.c
123
itrace_options = _PyUnicode_AsUTF8(str);
tools/perf/tests/bitmap.c
11
static unsigned long *get_bitmap(const char *str, int nbits)
tools/perf/tests/bitmap.c
13
struct perf_cpu_map *map = perf_cpu_map__new(str);
tools/perf/tests/bitmap.c
30
static int test_bitmap(const char *str)
tools/perf/tests/bitmap.c
32
unsigned long *bm = get_bitmap(str, NBITS);
tools/perf/tests/bitmap.c
39
ret = !strcmp(buf, str);
tools/perf/tests/code-reading.c
772
const char *str;
tools/perf/tests/code-reading.c
782
str = events[evidx];
tools/perf/tests/code-reading.c
783
pr_debug("Parsing event '%s'\n", str);
tools/perf/tests/code-reading.c
784
ret = parse_event(evlist, str);
tools/perf/tests/cpumap.c
133
static int cpu_map_print(const char *str)
tools/perf/tests/cpumap.c
135
struct perf_cpu_map *map = perf_cpu_map__new(str);
tools/perf/tests/cpumap.c
144
return !strcmp(buf, str);
tools/perf/tests/hwmon_pmu.c
157
char str[128];
tools/perf/tests/hwmon_pmu.c
166
snprintf(str, sizeof(str), "hwmon_a_test_hwmon_pmu/%s/", test_event);
tools/perf/tests/hwmon_pmu.c
168
strlcpy(str, test_event, sizeof(str));
tools/perf/tests/hwmon_pmu.c
170
pr_debug("Testing '%s'\n", str);
tools/perf/tests/hwmon_pmu.c
172
ret = parse_events(evlist, str, &err);
tools/perf/tests/hwmon_pmu.c
175
__FILE__, __LINE__, str, ret);
tools/perf/tests/hwmon_pmu.c
176
parse_events_error__print(&err, str);
tools/perf/tests/hwmon_pmu.c
184
__FILE__, __LINE__, str, evlist->core.nr_entries);
tools/perf/tests/hwmon_pmu.c
196
__FILE__, __LINE__, str,
tools/perf/tests/hwmon_pmu.c
207
__FILE__, __LINE__, str);
tools/perf/tests/mem2node.c
24
static unsigned long *get_bitmap(const char *str, int nbits)
tools/perf/tests/mem2node.c
26
struct perf_cpu_map *map = perf_cpu_map__new(str);
tools/perf/tests/parse-events.c
2524
const char *str;
tools/perf/tests/parse-events.c
2530
.str = "config=10,config1,config2=3,config3=4,config4=5,umask=1,read,r0xead",
tools/perf/tests/parse-events.c
2569
static int test_event_fake_pmu(const char *str)
tools/perf/tests/parse-events.c
2580
ret = __parse_events(evlist, str, /*pmu_filter=*/NULL, &err,
tools/perf/tests/parse-events.c
2585
str, ret);
tools/perf/tests/parse-events.c
2586
parse_events_error__print(&err, str);
tools/perf/tests/parse-events.c
2650
ret = parse_events_terms(&terms, t->str);
tools/perf/tests/parse-events.c
2653
t->str , ret);
tools/perf/tests/parse-events.c
2670
pr_debug("running test %d '%s'\n", i, t->str);
tools/perf/tests/parse-events.c
884
TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "read"));
tools/perf/tests/parse-events.c
898
TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "r0xead"));
tools/perf/tests/pmu-events.c
1009
err = metric_parse_fake("", metrics[i].str);
tools/perf/tests/pmu-events.c
357
if (!is_same(alias->str, test_event->event.event)) {
tools/perf/tests/pmu-events.c
359
pmu_name, alias->str, test_event->event.event);
tools/perf/tests/pmu-events.c
365
pmu_name, alias->str, test_event->alias_long_desc);
tools/perf/tests/pmu-events.c
764
static bool is_number(const char *str)
tools/perf/tests/pmu-events.c
770
v = strtod(str, &end_ptr);
tools/perf/tests/pmu-events.c
772
return errno == 0 && end_ptr != str;
tools/perf/tests/pmu-events.c
918
const char *str;
tools/perf/tests/pmu-events.c
929
static int metric_parse_fake(const char *metric_name, const char *str)
tools/perf/tests/pmu-events.c
938
pr_debug("parsing '%s': '%s'\n", metric_name, str);
tools/perf/tests/pmu-events.c
946
if (expr__find_ids(str, NULL, ctx) < 0) {
tools/perf/tests/pmu-events.c
968
if (expr__parse(&result, ctx, str)) {
tools/perf/tests/pmu-events.c
976
if (expr__parse(&result, ctx, str)) {
tools/perf/tests/tests-scripts.c
142
static char *strdup_check(const char *str)
tools/perf/tests/tests-scripts.c
146
newstr = strdup(str);
tools/perf/tests/thread-map.c
113
char *str;
tools/perf/tests/thread-map.c
116
asprintf(&str, "%d,%d", getpid(), getppid()) >= 0);
tools/perf/tests/thread-map.c
118
threads = thread_map__new_str(str, /*tid=*/NULL, /*all_threads=*/false);
tools/perf/tests/thread-map.c
119
free(str);
tools/perf/tests/time-utils-test.c
12
static bool test__parse_nsec_time(const char *str, u64 expected)
tools/perf/tests/time-utils-test.c
161
.str = "1234567.123456789,1234567.123456790",
tools/perf/tests/time-utils-test.c
17
pr_debug("\nparse_nsec_time(\"%s\")\n", str);
tools/perf/tests/time-utils-test.c
176
.str = "1234567.123456789,1234567.123456790 "
tools/perf/tests/time-utils-test.c
19
err = parse_nsec_time(str, &ptime);
tools/perf/tests/time-utils-test.c
191
.str = "10%/1",
tools/perf/tests/time-utils-test.c
206
.str = "10%/2",
tools/perf/tests/time-utils-test.c
221
.str = "10%/1,10%/2",
tools/perf/tests/time-utils-test.c
236
.str = "10%/1,10%/3,10%/10",
tools/perf/tests/time-utils-test.c
61
const char *str;
tools/perf/tests/time-utils-test.c
82
pr_debug("\nperf_time__parse_for_ranges(\"%s\")\n", d->str);
tools/perf/tests/time-utils-test.c
84
if (strchr(d->str, '%'))
tools/perf/tests/time-utils-test.c
88
err = perf_time__parse_for_ranges(d->str, &session, &ptime, &range_size,
tools/perf/tests/tool_pmu.c
14
char str[128];
tools/perf/tests/tool_pmu.c
23
snprintf(str, sizeof(str), "tool/%s/", tool_pmu__event_to_str(ev));
tools/perf/tests/tool_pmu.c
25
snprintf(str, sizeof(str), "%s", tool_pmu__event_to_str(ev));
tools/perf/tests/tool_pmu.c
28
ret = parse_events(evlist, str, &err);
tools/perf/tests/tool_pmu.c
36
__FILE__, __LINE__, str, ret);
tools/perf/tests/tool_pmu.c
37
parse_events_error__print(&err, str);
tools/perf/tests/tool_pmu.c
45
__FILE__, __LINE__, str, evlist->core.nr_entries);
tools/perf/tests/tool_pmu.c
54
__FILE__, __LINE__, str, evsel->core.attr.config, ev);
tools/perf/tests/tool_pmu.c
64
__FILE__, __LINE__, str);
tools/perf/tests/unit_number__scnprintf.c
14
const char *str;
tools/perf/tests/unit_number__scnprintf.c
25
while (test[i].str) {
tools/perf/tests/unit_number__scnprintf.c
31
test[i].n, test[i].str, buf);
tools/perf/tests/unit_number__scnprintf.c
33
if (strcmp(test[i].str, buf))
tools/perf/trace/beauty/include/uapi/linux/mount.h
189
char str[]; /* Variable size part containing strings */
tools/perf/ui/browsers/header.c
16
char *str = *arg;
tools/perf/ui/browsers/header.c
21
if (offset >= strlen(str))
tools/perf/ui/browsers/header.c
22
str = empty;
tools/perf/ui/browsers/header.c
24
str = str + offset;
tools/perf/ui/browsers/header.c
29
ui_browser__write_nstring(browser, str, browser->width);
tools/perf/ui/browsers/hists.c
1003
if (asprintf(&new, "%s %s", value_str, str) < 0)
tools/perf/ui/browsers/hists.c
1006
if (asprintf(&new, "%s", str) < 0)
tools/perf/ui/browsers/hists.c
785
const char *str, int offset,
tools/perf/ui/browsers/hists.c
791
const char *str, int offset,
tools/perf/ui/browsers/hists.c
812
ui_browser__write_nstring(&browser->b, str, width);
tools/perf/ui/browsers/hists.c
817
const char *str, int offset,
tools/perf/ui/browsers/hists.c
824
folded_sign, str);
tools/perf/ui/browsers/hists.c
854
const char *str;
tools/perf/ui/browsers/hists.c
865
str = callchain_list__sym_name(chain, bf, sizeof(bf),
tools/perf/ui/browsers/hists.c
872
if (asprintf(&alloc_str2, "%s%s", str, buf) < 0)
tools/perf/ui/browsers/hists.c
873
str = "Not enough memory!";
tools/perf/ui/browsers/hists.c
875
str = alloc_str2;
tools/perf/ui/browsers/hists.c
882
if (asprintf(&alloc_str, "%s %s", buf, str) < 0)
tools/perf/ui/browsers/hists.c
883
str = "Not enough memory!";
tools/perf/ui/browsers/hists.c
885
str = alloc_str;
tools/perf/ui/browsers/hists.c
888
print(browser, chain, str, offset, row, arg);
tools/perf/ui/browsers/hists.c
992
const char *str;
tools/perf/ui/browsers/hists.c
995
str = callchain_list__sym_name(chain, bf, sizeof(bf),
tools/perf/ui/browsers/hists.c
999
symbol_conf.field_sep ?: ";", str) < 0)
tools/perf/ui/gtk/hists.c
170
char *str, *str_alloc = NULL;
tools/perf/ui/gtk/hists.c
182
if (asprintf(&str, "%s%s%s",
tools/perf/ui/gtk/hists.c
190
str_alloc = str;
tools/perf/ui/gtk/hists.c
198
if (asprintf(&str, "%s%s%s",
tools/perf/ui/gtk/hists.c
206
str_alloc = str;
tools/perf/ui/gtk/hists.c
214
gtk_tree_store_set(store, &iter, col, str, -1);
tools/perf/ui/stdio/hist.c
63
const char *str;
tools/perf/ui/stdio/hist.c
79
str = callchain_list__sym_name(chain, bf, sizeof(bf), false);
tools/perf/ui/stdio/hist.c
85
if (asprintf(&alloc_str, "%s%s", str, buf) < 0)
tools/perf/ui/stdio/hist.c
86
str = "Not enough memory!";
tools/perf/ui/stdio/hist.c
88
str = alloc_str;
tools/perf/ui/stdio/hist.c
91
fputs(str, fp);
tools/perf/util/annotate-data.c
45
char *str;
tools/perf/util/annotate-data.c
81
str = strbuf_detach(&sb, NULL);
tools/perf/util/annotate-data.c
83
str, (long)size, (long)dwarf_dieoffset(die));
tools/perf/util/annotate-data.c
84
free(str);
tools/perf/util/annotate.c
1812
int annotation_br_cntr_abbr_list(char **str, struct evsel *evsel, bool header)
tools/perf/util/annotate.c
1845
*str = strbuf_detach(&sb, NULL);
tools/perf/util/annotate.c
1856
int annotation_br_cntr_entry(char **str, int br_cntr_nr,
tools/perf/util/annotate.c
1947
*str = strbuf_detach(&sb, NULL);
tools/perf/util/annotate.c
2091
char str[32];
tools/perf/util/annotate.c
2093
scnprintf(str, sizeof(str),
tools/perf/util/annotate.c
2100
str);
tools/perf/util/annotate.c
2259
const char *str)
tools/perf/util/annotate.c
2261
while (str && *str != '\0') {
tools/perf/util/annotate.c
2262
const char *comma = strchr(str, ',');
tools/perf/util/annotate.c
2263
int len = comma ? comma - str : (int)strlen(str);
tools/perf/util/annotate.c
2269
if (len == (int)strlen(dis_str) && !strncmp(str, dis_str, len)) {
tools/perf/util/annotate.c
2276
pr_err("Invalid disassembler '%.*s'\n", len, str);
tools/perf/util/annotate.c
2279
str = comma ? comma + 1 : NULL;
tools/perf/util/annotate.c
2453
static int arch__dwarf_regnum(const struct arch *arch, const char *str)
tools/perf/util/annotate.c
2459
p = strchr(str, arch->objdump.register_char);
tools/perf/util/annotate.c
2482
static int extract_reg_offset(const struct arch *arch, const char *str,
tools/perf/util/annotate.c
2497
if (*str == arch->objdump.register_char) {
tools/perf/util/annotate.c
2500
if (!strncmp(str, "%gs:", 4))
tools/perf/util/annotate.c
2504
while (*str && !isdigit(*str) &&
tools/perf/util/annotate.c
2505
*str != arch->objdump.memory_ref_char)
tools/perf/util/annotate.c
2506
str++;
tools/perf/util/annotate.c
2509
op_loc->offset = strtol(str, &p, 0);
tools/perf/util/annotate.h
155
static const char *str[PERCENT_MAX] = {
tools/perf/util/annotate.h
165
return str[type];
tools/perf/util/annotate.h
585
int annotation_br_cntr_entry(char **str, int br_cntr_nr, u64 *br_cntr,
tools/perf/util/annotate.h
587
int annotation_br_cntr_abbr_list(char **str, struct evsel *evsel, bool header);
tools/perf/util/auxtrace.c
1547
const char *str, int unset)
tools/perf/util/auxtrace.c
1562
if (!str) {
tools/perf/util/auxtrace.c
1568
for (p = str; *p;) {
tools/perf/util/auxtrace.c
1749
pr_err("Bad Instruction Tracing options '%s'\n", str);
tools/perf/util/auxtrace.c
1753
int itrace_parse_synth_opts(const struct option *opt, const char *str, int unset)
tools/perf/util/auxtrace.c
1755
return itrace_do_parse_synth_opts(opt->value, str, unset);
tools/perf/util/auxtrace.c
2190
zfree(&filt->str);
tools/perf/util/auxtrace.c
2244
static int parse_num_or_str(char **inp, u64 *num, const char **str,
tools/perf/util/auxtrace.c
2264
if (!str)
tools/perf/util/auxtrace.c
2267
*str = *inp;
tools/perf/util/auxtrace.c
2330
static int parse_addr_size(char **inp, u64 *num, const char **str, int *idx)
tools/perf/util/auxtrace.c
2332
int err = parse_num_or_str(inp, num, str, " ");
tools/perf/util/auxtrace.c
2334
if (!err && *str)
tools/perf/util/auxtrace.c
2345
filt->str = fstr = strdup(*filter_inp);
tools/perf/util/auxtrace.c
2384
*filter_inp += fstr - filt->str;
tools/perf/util/auxtrace.c
646
struct record_opts *opts, const char *str)
tools/perf/util/auxtrace.c
648
if (!str)
tools/perf/util/auxtrace.c
652
switch (*str) {
tools/perf/util/auxtrace.c
655
str++;
tools/perf/util/auxtrace.c
662
return itr->parse_snapshot_options(itr, opts, str);
tools/perf/util/auxtrace.c
762
struct record_opts *opts, const char *str)
tools/perf/util/auxtrace.c
772
if (!str)
tools/perf/util/auxtrace.c
780
sz = strtoul(str, &endptr, 0);
tools/perf/util/auxtrace.c
782
pr_err("Bad AUX area sampling option: '%s'\n", str);
tools/perf/util/auxtrace.c
816
if (!str && !has_aux_sample_size)
tools/perf/util/auxtrace.c
828
const char *str;
tools/perf/util/auxtrace.c
835
{.str = NULL},
tools/perf/util/auxtrace.c
838
static const struct aux_action_opt *auxtrace_parse_aux_action_str(const char *str)
tools/perf/util/auxtrace.c
842
if (!str)
tools/perf/util/auxtrace.c
845
for (opt = aux_action_opts; opt->str; opt++)
tools/perf/util/auxtrace.c
846
if (!strcmp(str, opt->str))
tools/perf/util/auxtrace.c
870
opt = auxtrace_parse_aux_action_str(term->val.str);
tools/perf/util/auxtrace.c
872
pr_err("Bad aux-action '%s'\n", term->val.str);
tools/perf/util/auxtrace.c
877
term->val.str);
tools/perf/util/auxtrace.c
882
term->val.str);
tools/perf/util/auxtrace.h
405
const char *str);
tools/perf/util/auxtrace.h
442
char *str;
tools/perf/util/auxtrace.h
573
const char *str);
tools/perf/util/auxtrace.h
576
struct record_opts *opts, const char *str);
tools/perf/util/auxtrace.h
621
const char *str, int unset);
tools/perf/util/auxtrace.h
622
int itrace_parse_synth_opts(const struct option *opt, const char *str,
tools/perf/util/bpf-filter.c
654
int perf_bpf_filter__parse(struct list_head *expr_head, const char *str)
tools/perf/util/bpf-filter.c
662
buffer = perf_bpf_filter__scan_string(str);
tools/perf/util/bpf-filter.h
30
int perf_bpf_filter__parse(struct list_head *expr_head, const char *str);
tools/perf/util/bpf-filter.h
42
const char *str __maybe_unused)
tools/perf/util/branch.c
169
static int count_str_scnprintf(int idx, const char *str, char *bf, int size)
tools/perf/util/branch.c
171
return scnprintf(bf, size, "%s%s", (idx) ? " " : " (", str);
tools/perf/util/callchain.c
1348
static int count_pri64_printf(int idx, const char *str, u64 value, char *bf, int bfsize)
tools/perf/util/callchain.c
1350
return scnprintf(bf, bfsize, "%s%s:%" PRId64 "", (idx) ? " " : " (", str, value);
tools/perf/util/callchain.c
1353
static int count_float_printf(int idx, const char *str, float value,
tools/perf/util/callchain.c
1359
return scnprintf(bf, bfsize, "%s%s:%.1f%%", (idx) ? " " : " (", str, value);
tools/perf/util/callchain.c
144
static int get_stack_size(const char *str, unsigned long *_size)
tools/perf/util/callchain.c
1458
char str[256];
tools/perf/util/callchain.c
1460
counts_str_build(str, sizeof(str), branch_count,
tools/perf/util/callchain.c
1465
return fprintf(fp, "%s", str);
tools/perf/util/callchain.c
1467
return scnprintf(bf, bfsize, "%s", str);
tools/perf/util/callchain.c
150
size = strtoul(str, &endptr, 0);
tools/perf/util/callchain.c
166
max_size, str);
tools/perf/util/cgroup.c
102
static struct cgroup *evlist__find_cgroup(struct evlist *evlist, const char *str)
tools/perf/util/cgroup.c
111
if (!strcmp(counter->cgrp->name, str))
tools/perf/util/cgroup.c
154
static int add_cgroup(struct evlist *evlist, const char *str)
tools/perf/util/cgroup.c
157
struct cgroup *cgrp = evlist__findnew_cgroup(evlist, str);
tools/perf/util/cgroup.c
261
static int list_cgroups(const char *str)
tools/perf/util/cgroup.c
263
const char *p, *e, *eos = str + strlen(str);
tools/perf/util/cgroup.c
269
p = strchr(str, ',');
tools/perf/util/cgroup.c
272
if (e - str) {
tools/perf/util/cgroup.c
275
s = strndup(str, e - str);
tools/perf/util/cgroup.c
290
str = p+1;
tools/perf/util/cgroup.c
301
static int match_cgroups(const char *str)
tools/perf/util/cgroup.c
304
const char *p, *e, *eos = str + strlen(str);
tools/perf/util/cgroup.c
321
p = strchr(str, ',');
tools/perf/util/cgroup.c
325
if (e - str) {
tools/perf/util/cgroup.c
327
s = strndup(str, e - str);
tools/perf/util/cgroup.c
355
str = p+1;
tools/perf/util/cgroup.c
360
int parse_cgroups(const struct option *opt, const char *str,
tools/perf/util/cgroup.c
366
const char *p, *e, *eos = str + strlen(str);
tools/perf/util/cgroup.c
376
p = strchr(str, ',');
tools/perf/util/cgroup.c
380
if (e - str) {
tools/perf/util/cgroup.c
382
s = strndup(str, e - str);
tools/perf/util/cgroup.c
394
str = p+1;
tools/perf/util/cgroup.c
412
static bool has_pattern_string(const char *str)
tools/perf/util/cgroup.c
414
return !!strpbrk(str, "{}[]()|*+?^$");
tools/perf/util/cgroup.c
417
int evlist__expand_cgroup(struct evlist *evlist, const char *str, bool open_cgroup)
tools/perf/util/cgroup.c
446
if (has_pattern_string(str))
tools/perf/util/cgroup.c
447
prefix_len = match_cgroups(str);
tools/perf/util/cgroup.c
449
prefix_len = list_cgroups(str);
tools/perf/util/cgroup.c
499
fprintf(stderr, "no cgroup matched: %s\n", str);
tools/perf/util/cgroup.h
35
int parse_cgroups(const struct option *opt, const char *str, int unset);
tools/perf/util/clockid.c
68
int parse_clockid(const struct option *opt, const char *str, int unset)
tools/perf/util/clockid.c
72
const char *ostr = str;
tools/perf/util/clockid.c
80
if (!str)
tools/perf/util/clockid.c
90
if (sscanf(str, "%d", &opts->clockid) == 1)
tools/perf/util/clockid.c
94
if (!strncasecmp(str, "CLOCK_", 6))
tools/perf/util/clockid.c
95
str += 6;
tools/perf/util/clockid.c
98
if (!strcasecmp(str, cm->name)) {
tools/perf/util/clockid.h
7
int parse_clockid(const struct option *opt, const char *str, int unset);
tools/perf/util/comm.c
122
static struct comm_str *__comm_strs__find(struct comm_strs *comm_strs, const char *str)
tools/perf/util/comm.c
127
result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *),
tools/perf/util/comm.c
136
static struct comm_str *comm_strs__findnew(const char *str)
tools/perf/util/comm.c
14
char str[];
tools/perf/util/comm.c
145
result = __comm_strs__find(comm_strs, str);
tools/perf/util/comm.c
151
result = __comm_strs__find(comm_strs, str);
tools/perf/util/comm.c
166
result = comm_str__new(str);
tools/perf/util/comm.c
173
int cmp = strcmp(comm_str__str(comm_strs->strs[mid]), str);
tools/perf/util/comm.c
192
struct comm *comm__new(const char *str, u64 timestamp, bool exec)
tools/perf/util/comm.c
202
comm->comm_str = comm_strs__findnew(str);
tools/perf/util/comm.c
211
int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec)
tools/perf/util/comm.c
215
new = comm_strs__findnew(str);
tools/perf/util/comm.c
51
return &RC_CHK_ACCESS(cs)->str[0];
tools/perf/util/comm.c
79
static struct comm_str *comm_str__new(const char *str)
tools/perf/util/comm.c
84
cs = malloc(sizeof(*cs) + strlen(str) + 1);
tools/perf/util/comm.c
87
strcpy(&cs->str[0], str);
tools/perf/util/comm.h
23
struct comm *comm__new(const char *str, u64 timestamp, bool exec);
tools/perf/util/comm.h
25
int comm__override(struct comm *comm, const char *str, u64 timestamp,
tools/perf/util/cputopo.c
317
char str[MAXPATHLEN];
tools/perf/util/cputopo.c
327
scnprintf(str, MAXPATHLEN, NODE_MEMINFO_FMT,
tools/perf/util/cputopo.c
329
fp = fopen(str, "r");
tools/perf/util/cputopo.c
350
scnprintf(str, MAXPATHLEN, NODE_CPULIST_FMT,
tools/perf/util/cputopo.c
353
fp = fopen(str, "r");
tools/perf/util/debug.c
247
int perf_debug_option(const char *str)
tools/perf/util/debug.c
251
ret = perf_parse_sublevel_options(str, debug_opts);
tools/perf/util/debug.h
81
int perf_debug_option(const char *str);
tools/perf/util/demangle-cxx.cpp
29
char *cxx_demangle_sym(const char *str, bool params __maybe_unused,
tools/perf/util/demangle-cxx.cpp
35
return bfd_demangle(NULL, str, flags);
tools/perf/util/demangle-cxx.cpp
39
return cplus_demangle(str, flags);
tools/perf/util/demangle-cxx.cpp
44
output = abi::__cxa_demangle(str, /*output_buffer=*/NULL, /*length=*/NULL, &status);
tools/perf/util/demangle-cxx.h
11
char *cxx_demangle_sym(const char *str, bool params, bool modifiers);
tools/perf/util/demangle-java.c
158
java_demangle_sym(const char *str, int flags)
tools/perf/util/demangle-java.c
164
if (!str)
tools/perf/util/demangle-java.c
168
p = strrchr(str, ')');
tools/perf/util/demangle-java.c
175
len = strlen(str) * 3 + 1;
tools/perf/util/demangle-java.c
195
ptr = __demangle_java_sym(str, p + 1, buf + l1, len - l1, MODE_PREFIX);
tools/perf/util/demangle-java.c
45
__demangle_java_sym(const char *str, const char *end, char *buf, int maxlen, int mode)
tools/perf/util/demangle-java.c
53
end = str + strlen(str);
tools/perf/util/demangle-java.c
55
for (q = str; q != end; q++) {
tools/perf/util/demangle-java.h
9
char * java_demangle_sym(const char *str, int flags);
tools/perf/util/demangle-ocaml.h
5
char * ocaml_demangle_sym(const char *str);
tools/perf/util/drm_pmu.c
132
static bool starts_with(const char *str, const char *prefix)
tools/perf/util/drm_pmu.c
134
return !strncmp(prefix, str, strlen(prefix));
tools/perf/util/event.h
414
char *get_page_size_name(u64 size, char *str);
tools/perf/util/evlist.c
1798
struct evsel *evlist__find_evsel_by_str(struct evlist *evlist, const char *str)
tools/perf/util/evlist.c
1805
if (evsel__name_is(evsel, str))
tools/perf/util/evlist.c
1936
static int evlist__parse_control_fifo(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close)
tools/perf/util/evlist.c
1941
if (strncmp(str, "fifo:", 5))
tools/perf/util/evlist.c
1944
str += 5;
tools/perf/util/evlist.c
1945
if (!*str || *str == ',')
tools/perf/util/evlist.c
1948
s = strdup(str);
tools/perf/util/evlist.c
1985
int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close)
tools/perf/util/evlist.c
1992
if (strncmp(str, "fd:", 3))
tools/perf/util/evlist.c
1993
return evlist__parse_control_fifo(str, ctl_fd, ctl_fd_ack, ctl_fd_close);
tools/perf/util/evlist.c
1995
*ctl_fd = strtoul(&str[3], &endptr, 0);
tools/perf/util/evlist.c
1996
if (endptr == &str[3])
tools/perf/util/evlist.c
1999
comma = strchr(str, ',');
tools/perf/util/evlist.c
2293
static int parse_event_enable_time(const char *str, struct event_enable_time *range, bool first)
tools/perf/util/evlist.c
2298
ret = sscanf(str, fmt, &start, &end, &n);
tools/perf/util/evlist.c
2308
static ssize_t parse_event_enable_times(const char *str, struct event_enable_time *range)
tools/perf/util/evlist.c
2314
for (cnt = 0; *str; cnt++) {
tools/perf/util/evlist.c
2315
ret = parse_event_enable_time(str, range, first);
tools/perf/util/evlist.c
2321
str += ret;
tools/perf/util/evlist.c
2351
static int str_to_delay(const char *str)
tools/perf/util/evlist.c
2356
d = strtol(str, &endptr, 10);
tools/perf/util/evlist.c
2363
const char *str, int unset)
tools/perf/util/evlist.c
2374
opts->target.initial_delay = str_to_delay(str);
tools/perf/util/evlist.c
2378
ret = parse_event_enable_times(str, NULL);
tools/perf/util/evlist.c
2396
if (parse_event_enable_times(str, eet->times) != times_cnt) {
tools/perf/util/evlist.c
923
static long parse_pages_arg(const char *str, unsigned long min,
tools/perf/util/evlist.c
935
if (str == NULL)
tools/perf/util/evlist.c
938
val = parse_tag_value(str, tags);
tools/perf/util/evlist.c
945
pages = strtoul(str, &eptr, 10);
tools/perf/util/evlist.c
971
int __evlist__parse_mmap_pages(unsigned int *mmap_pages, const char *str)
tools/perf/util/evlist.c
979
pages = parse_pages_arg(str, 1, max);
tools/perf/util/evlist.c
989
int evlist__parse_mmap_pages(const struct option *opt, const char *str, int unset __maybe_unused)
tools/perf/util/evlist.c
991
return __evlist__parse_mmap_pages(opt->value, str);
tools/perf/util/evlist.h
192
int __evlist__parse_mmap_pages(unsigned int *mmap_pages, const char *str);
tools/perf/util/evlist.h
193
int evlist__parse_mmap_pages(const struct option *opt, const char *str, int unset);
tools/perf/util/evlist.h
263
bool evlist__can_select_event(struct evlist *evlist, const char *str);
tools/perf/util/evlist.h
407
struct evsel *evlist__find_evsel_by_str(struct evlist *evlist, const char *str);
tools/perf/util/evlist.h
438
int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close);
tools/perf/util/evlist.h
450
const char *str, int unset);
tools/perf/util/evsel.c
104
#define __WRITE_ASS(str, fmt, data) \
tools/perf/util/evsel.c
106
if (fprintf(file, #str "=%"fmt "\n", data) < 0) { \
tools/perf/util/evsel.c
1210
callgraph_buf = term->val.str;
tools/perf/util/evsel.c
1213
if (term->val.str && strcmp(term->val.str, "no")) {
tools/perf/util/evsel.c
1215
parse_branch_str(term->val.str,
tools/perf/util/evsel.c
1261
rtp_buf = term->val.str;
tools/perf/util/evsel.c
1832
zfree(&term->val.str);
tools/perf/util/evsel.c
449
tmp->val.str = strdup(pos->val.str);
tools/perf/util/evsel.c
450
if (tmp->val.str == NULL) {
tools/perf/util/evsel_config.h
55
char *str;
tools/perf/util/expr.c
50
const char *str = (const char *)key;
tools/perf/util/expr.c
53
while (*str != '\0') {
tools/perf/util/expr.c
55
hash += *str;
tools/perf/util/expr.c
56
str++;
tools/perf/util/expr.y
26
char *str;
tools/perf/util/expr.y
54
%type <str> ID
tools/perf/util/expr.y
55
%destructor { free ($$); } <str>
tools/perf/util/header.c
180
#define string_size(str) \
tools/perf/util/header.c
181
(PERF_ALIGN((strlen(str) + 1), NAME_ALIGN) + sizeof(u32))
tools/perf/util/header.c
184
static int do_write_string(struct feat_fd *ff, const char *str)
tools/perf/util/header.c
1859
char *str;
tools/perf/util/header.c
1862
str = ph->env.sibling_cores;
tools/perf/util/header.c
1865
fprintf(fp, "# sibling sockets : %s\n", str);
tools/perf/util/header.c
1866
str += strlen(str) + 1;
tools/perf/util/header.c
1871
str = ph->env.sibling_dies;
tools/perf/util/header.c
1874
fprintf(fp, "# sibling dies : %s\n", str);
tools/perf/util/header.c
1875
str += strlen(str) + 1;
tools/perf/util/header.c
1880
str = ph->env.sibling_threads;
tools/perf/util/header.c
1883
fprintf(fp, "# sibling threads : %s\n", str);
tools/perf/util/header.c
1884
str += strlen(str) + 1;
tools/perf/util/header.c
189
olen = strlen(str) + 1;
tools/perf/util/header.c
197
return write_padded(ff, str, olen, len);
tools/perf/util/header.c
2320
char *str, *tmp;
tools/perf/util/header.c
2330
str = env->pmu_mappings;
tools/perf/util/header.c
2333
type = strtoul(str, &tmp, 0);
tools/perf/util/header.c
2337
str = tmp + 1;
tools/perf/util/header.c
2338
fprintf(fp, "%s%s = %" PRIu32, delimiter, str, type);
tools/perf/util/header.c
2341
str += strlen(str) + 1;
tools/perf/util/header.c
2752
char *str, *cmdline = NULL, **argv = NULL;
tools/perf/util/header.c
2769
str = do_read_string(ff);
tools/perf/util/header.c
2770
if (!str)
tools/perf/util/header.c
2774
memcpy(argv[i], str, strlen(str) + 1);
tools/perf/util/header.c
2775
len += strlen(str) + 1;
tools/perf/util/header.c
2776
free(str);
tools/perf/util/header.c
2791
char *str = NULL;
tools/perf/util/header.c
2810
str = do_read_string(ff);
tools/perf/util/header.c
2811
if (!str)
tools/perf/util/header.c
2815
if (strbuf_add(&sb, str, strlen(str) + 1) < 0)
tools/perf/util/header.c
2817
size += string_size(str);
tools/perf/util/header.c
2818
zfree(&str);
tools/perf/util/header.c
2829
str = do_read_string(ff);
tools/perf/util/header.c
2830
if (!str)
tools/perf/util/header.c
2834
if (strbuf_add(&sb, str, strlen(str) + 1) < 0)
tools/perf/util/header.c
2836
size += string_size(str);
tools/perf/util/header.c
2837
zfree(&str);
tools/perf/util/header.c
2878
str = do_read_string(ff);
tools/perf/util/header.c
2879
if (!str)
tools/perf/util/header.c
2883
if (strbuf_add(&sb, str, strlen(str) + 1) < 0)
tools/perf/util/header.c
2885
size += string_size(str);
tools/perf/util/header.c
2886
zfree(&str);
tools/perf/util/header.c
2901
zfree(&str);
tools/perf/util/header.c
2912
char *str;
tools/perf/util/header.c
2935
str = do_read_string(ff);
tools/perf/util/header.c
2936
if (!str)
tools/perf/util/header.c
2939
n->map = perf_cpu_map__new(str);
tools/perf/util/header.c
2940
free(str);
tools/perf/util/intel-pt.c
4394
static void intel_pt_print_info_str(const char *name, const char *str)
tools/perf/util/intel-pt.c
4399
fprintf(stdout, " %-20s%s\n", name, str ? str : "");
tools/perf/util/iostat.c
14
const char *str __maybe_unused,
tools/perf/util/iostat.h
34
int iostat_parse(const struct option *opt, const char *str,
tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c
105
static int is_tracepoint_available(const char *str, struct evlist *evlist)
tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c
111
ret = parse_events(evlist, str, &err);
tools/perf/util/lock-contention.c
25
int parse_call_stack(const struct option *opt __maybe_unused, const char *str,
tools/perf/util/lock-contention.c
31
s = strdup(str);
tools/perf/util/lock-contention.h
164
int parse_call_stack(const struct option *opt, const char *str, int unset);
tools/perf/util/mem-events.c
142
int perf_pmu__mem_events_parse(struct perf_pmu *pmu, const char *str)
tools/perf/util/mem-events.c
150
buf = malloc(strlen(str) + 1);
tools/perf/util/mem-events.c
154
strcpy(buf, str);
tools/perf/util/mem-events.c
177
pr_err("failed: event '%s' not found, use '-e list' to get list of available events\n", str);
tools/perf/util/mem-events.h
32
int perf_pmu__mem_events_parse(struct perf_pmu *pmu, const char *str);
tools/perf/util/metricgroup.c
1382
const char *pmu, const char *str,
tools/perf/util/metricgroup.c
1395
bool is_default = !strcmp(str, "Default");
tools/perf/util/metricgroup.c
1398
ret = metricgroup__add_metric_list(pmu, str, metric_no_group, metric_no_threshold,
tools/perf/util/metricgroup.c
1555
const char *str,
tools/perf/util/metricgroup.c
1568
return parse_groups(perf_evlist, pmu, str, metric_no_group, metric_no_merge,
tools/perf/util/metricgroup.c
1575
const char *str)
tools/perf/util/metricgroup.c
1577
return parse_groups(evlist, "all", str,
tools/perf/util/metricgroup.h
74
const char *str,
tools/perf/util/metricgroup.h
83
const char *str);
tools/perf/util/ordered-events.c
270
static const char * const str[] = {
tools/perf/util/ordered-events.c
321
str[how], oe->nr_events);
tools/perf/util/ordered-events.c
334
str[how], oe->nr_events);
tools/perf/util/parse-branch-options.c
114
return parse_branch_str(str, mode);
tools/perf/util/parse-branch-options.c
43
int parse_branch_str(const char *str, __u64 *mode)
tools/perf/util/parse-branch-options.c
55
if (str == NULL) {
tools/perf/util/parse-branch-options.c
61
s = os = strdup(str);
tools/perf/util/parse-branch-options.c
99
parse_branch_stack(const struct option *opt, const char *str, int unset)
tools/perf/util/parse-branch-options.h
5
int parse_branch_stack(const struct option *opt, const char *str, int unset);
tools/perf/util/parse-branch-options.h
6
int parse_branch_str(const char *str, __u64 *mode);
tools/perf/util/parse-events.c
105
struct perf_pmu *pmu = perf_pmus__find(term->val.str);
tools/perf/util/parse-events.c
112
term_cpus = perf_cpu_map__new(term->val.str);
tools/perf/util/parse-events.c
1120
bool weak, char *str, u64 val)
tools/perf/util/parse-events.c
1172
if (str) {
tools/perf/util/parse-events.c
1173
t->val.str = strdup(str);
tools/perf/util/parse-events.c
1174
if (!t->val.str) {
tools/perf/util/parse-events.c
1297
str_type ? term->val.str : NULL, val);
tools/perf/util/parse-events.c
150
if (perf_pmu__have_event(pmu, term->val.str)) {
tools/perf/util/parse-events.c
152
term->config = term->val.str;
tools/perf/util/parse-events.c
163
num = strtoull(term->val.str + 1, NULL, 16);
tools/perf/util/parse-events.c
165
free(term->val.str);
tools/perf/util/parse-events.c
1936
static int parse_events__scanner(const char *str,
tools/perf/util/parse-events.c
1947
buffer = parse_events__scan_string(str, scanner);
tools/perf/util/parse-events.c
1964
int parse_events_terms(struct parse_events_terms *terms, const char *str)
tools/perf/util/parse-events.c
1972
ret = parse_events__scanner(str, &parse_state);
tools/perf/util/parse-events.c
2264
int __parse_events(struct evlist *evlist, const char *str, const char *pmu_filter,
tools/perf/util/parse-events.c
2280
ret = parse_events__scanner(str, &parse_state);
tools/perf/util/parse-events.c
2325
int parse_event(struct evlist *evlist, const char *str)
tools/perf/util/parse-events.c
2331
ret = parse_events(evlist, str, &err);
tools/perf/util/parse-events.c
2333
parse_events_error__print(&err, str);
tools/perf/util/parse-events.c
2344
char *str;
tools/perf/util/parse-events.c
2359
zfree(&pos->str);
tools/perf/util/parse-events.c
2367
char *str, char *help)
tools/perf/util/parse-events.c
2371
if (WARN(!str || !err, "WARNING: failed to provide error string or struct\n"))
tools/perf/util/parse-events.c
2377
str, help ?: "<no help>");
tools/perf/util/parse-events.c
2381
entry->str = str;
tools/perf/util/parse-events.c
2386
free(str);
tools/perf/util/parse-events.c
2402
const char *str = "invalid or unsupported event: ";
tools/perf/util/parse-events.c
2422
str = "event syntax error: ";
tools/perf/util/parse-events.c
2423
len_str = strlen(str);
tools/perf/util/parse-events.c
2446
fprintf(stderr, "%s'%s'\n", str, buf);
tools/perf/util/parse-events.c
2463
__parse_events_error__print(pos->idx, pos->str, pos->help, event);
tools/perf/util/parse-events.c
2478
if (strstr(pos->str, needle) != NULL)
tools/perf/util/parse-events.c
2486
int parse_events_option(const struct option *opt, const char *str,
tools/perf/util/parse-events.c
2494
ret = __parse_events(*args->evlistp, str, args->pmu_filter, &err,
tools/perf/util/parse-events.c
2499
parse_events_error__print(&err, str);
tools/perf/util/parse-events.c
2507
int parse_events_option_new_evlist(const struct option *opt, const char *str, int unset)
tools/perf/util/parse-events.c
2520
ret = parse_events_option(opt, str, unset);
tools/perf/util/parse-events.c
2563
static bool is_possible_tp_filter(const char *str)
tools/perf/util/parse-events.c
2565
return strstr(str, "uid") == NULL;
tools/perf/util/parse-events.c
2570
const char *str = arg;
tools/perf/util/parse-events.c
2580
if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT && is_possible_tp_filter(str)) {
tools/perf/util/parse-events.c
2581
if (evsel__append_tp_filter(evsel, str) < 0) {
tools/perf/util/parse-events.c
2596
return perf_bpf_filter__parse(&evsel->bpf_filters, str);
tools/perf/util/parse-events.c
2598
if (evsel__append_addr_filter(evsel, str) < 0) {
tools/perf/util/parse-events.c
2607
int parse_filter(const struct option *opt, const char *str,
tools/perf/util/parse-events.c
2613
(const void *)str);
tools/perf/util/parse-events.c
2679
char *str, u64 num)
tools/perf/util/parse-events.c
2696
term->val.str = str;
tools/perf/util/parse-events.c
2730
char *config, char *str,
tools/perf/util/parse-events.c
2744
return new_term(term, &temp, str, /*num=*/0);
tools/perf/util/parse-events.c
2760
char *str;
tools/perf/util/parse-events.c
2772
str = strdup(term->val.str);
tools/perf/util/parse-events.c
2773
if (!str) {
tools/perf/util/parse-events.c
2777
return new_term(new, &temp, str, /*num=*/0);
tools/perf/util/parse-events.c
2783
zfree(&term->val.str);
tools/perf/util/parse-events.c
2866
ret = strbuf_addf(sb, "%s", term->val.str);
tools/perf/util/parse-events.c
2907
char *str;
tools/perf/util/parse-events.c
2915
if (asprintf(&str, "valid terms: %s,%s",
tools/perf/util/parse-events.c
2919
if (asprintf(&str, "valid terms: %s", static_terms) < 0)
tools/perf/util/parse-events.c
2922
return str;
tools/perf/util/parse-events.c
326
static int parse_aliases(const char *str, const char *const names[][EVSEL__MAX_ALIASES], int size,
tools/perf/util/parse-events.c
334
if (n > *longest && !strncasecmp(str, names[i][j], n))
tools/perf/util/parse-events.c
369
const char *str = name;
tools/perf/util/parse-events.c
371
cache_type = parse_aliases(str, evsel__hw_cache, PERF_COUNT_HW_CACHE_MAX, &len);
tools/perf/util/parse-events.c
374
str += len + 1;
tools/perf/util/parse-events.c
376
if (str < name_end) {
tools/perf/util/parse-events.c
377
cache_op = parse_aliases(str, evsel__hw_cache_op,
tools/perf/util/parse-events.c
382
str += len + 1;
tools/perf/util/parse-events.c
384
cache_result = parse_aliases(str, evsel__hw_cache_result,
tools/perf/util/parse-events.c
387
str += len + 1;
tools/perf/util/parse-events.c
390
if (str < name_end) {
tools/perf/util/parse-events.c
392
cache_op = parse_aliases(str, evsel__hw_cache_op,
tools/perf/util/parse-events.c
399
cache_result = parse_aliases(str, evsel__hw_cache_result,
tools/perf/util/parse-events.c
443
const char *str;
tools/perf/util/parse-events.c
457
str = "can't access trace events";
tools/perf/util/parse-events.c
460
str = "unknown tracepoint";
tools/perf/util/parse-events.c
463
str = "failed to add tracepoint";
tools/perf/util/parse-events.c
468
parse_events_error__handle(e, column, strdup(str), strdup(help));
tools/perf/util/parse-events.c
72
return term->val.str;
tools/perf/util/parse-events.c
842
if (strcmp(term->val.str, "no") &&
tools/perf/util/parse-events.c
843
parse_branch_str(term->val.str,
tools/perf/util/parse-events.c
930
if (perf_pmus__find(term->val.str) != NULL)
tools/perf/util/parse-events.c
933
map = perf_cpu_map__new(term->val.str);
tools/perf/util/parse-events.c
945
if (strtod(term->val.str, NULL) <= 0) {
tools/perf/util/parse-events.h
103
char *str;
tools/perf/util/parse-events.h
183
char *config, char *str,
tools/perf/util/parse-events.h
196
int parse_events_terms(struct parse_events_terms *terms, const char *str);
tools/perf/util/parse-events.h
264
char *str, char *help);
tools/perf/util/parse-events.h
275
static inline bool is_sdt_event(char *str)
tools/perf/util/parse-events.h
277
return (str[0] == '%' ||
tools/perf/util/parse-events.h
278
(!strncmp(str, "sdt_", 4) &&
tools/perf/util/parse-events.h
279
!!strchr(str, ':') && !strchr(str, '=')));
tools/perf/util/parse-events.h
282
static inline bool is_sdt_event(char *str __maybe_unused)
tools/perf/util/parse-events.h
30
int parse_events_option(const struct option *opt, const char *str, int unset);
tools/perf/util/parse-events.h
31
int parse_events_option_new_evlist(const struct option *opt, const char *str, int unset);
tools/perf/util/parse-events.h
33
int __parse_events(struct evlist *evlist, const char *str, const char *pmu_filter,
tools/perf/util/parse-events.h
38
static inline int parse_events(struct evlist *evlist, const char *str,
tools/perf/util/parse-events.h
41
return __parse_events(evlist, str, /*pmu_filter=*/NULL, err, /*fake_pmu=*/false,
tools/perf/util/parse-events.h
45
int parse_event(struct evlist *evlist, const char *str);
tools/perf/util/parse-events.h
47
int parse_filter(const struct option *opt, const char *str, int unset);
tools/perf/util/parse-events.y
100
char *str;
tools/perf/util/parse-events.y
68
%type <str> PE_RAW
tools/perf/util/parse-events.y
69
%type <str> PE_NAME
tools/perf/util/parse-events.y
70
%type <str> PE_MODIFIER_BP
tools/perf/util/parse-events.y
71
%type <str> PE_EVENT_NAME
tools/perf/util/parse-events.y
72
%type <str> PE_DRV_CFG_TERM
tools/perf/util/parse-events.y
73
%type <str> name_or_raw
tools/perf/util/parse-events.y
74
%destructor { free ($$); } <str>
tools/perf/util/parse-regs-options.c
115
parse_user_regs(const struct option *opt, const char *str, int unset)
tools/perf/util/parse-regs-options.c
117
return __parse_regs(opt, str, unset, false);
tools/perf/util/parse-regs-options.c
121
parse_intr_regs(const struct option *opt, const char *str, int unset)
tools/perf/util/parse-regs-options.c
123
return __parse_regs(opt, str, unset, true);
tools/perf/util/parse-regs-options.c
53
__parse_regs(const struct option *opt, const char *str, int unset, bool intr)
tools/perf/util/parse-regs-options.c
72
if (!str) {
tools/perf/util/parse-regs-options.c
78
s = os = strdup(str);
tools/perf/util/parse-regs-options.h
5
int parse_user_regs(const struct option *opt, const char *str, int unset);
tools/perf/util/parse-regs-options.h
6
int parse_intr_regs(const struct option *opt, const char *str, int unset);
tools/perf/util/parse-sublevel-options.c
13
char *vstr, *s = strdup(str);
tools/perf/util/parse-sublevel-options.c
46
int perf_parse_sublevel_options(const char *str, struct sublevel_option *opts)
tools/perf/util/parse-sublevel-options.c
48
char *s = strdup(str);
tools/perf/util/parse-sublevel-options.c
9
static int parse_one_sublevel_option(const char *str,
tools/perf/util/parse-sublevel-options.h
9
int perf_parse_sublevel_options(const char *str, struct sublevel_option *opts);
tools/perf/util/perf_api_probe.c
14
static int perf_do_probe_api(setup_probe_fn_t fn, struct perf_cpu cpu, const char *str)
tools/perf/util/perf_api_probe.c
26
if (parse_event(evlist, str))
tools/perf/util/perf_event_attr_fprintf.c
243
char *str = tracepoint_id_to_name(id);
tools/perf/util/perf_event_attr_fprintf.c
245
print_id_hex(buf, size, id, str);
tools/perf/util/perf_event_attr_fprintf.c
246
free(str);
tools/perf/util/pfm.c
34
int parse_libpfm_events_option(const struct option *opt, const char *str,
tools/perf/util/pfm.c
48
p_orig = p = strdup(str);
tools/perf/util/pfm.c
53
sep = p ? str + (p - p_orig - 1) : "";
tools/perf/util/pfm.c
82
ui__error("failed to parse event %s : %s\n", str,
tools/perf/util/pfm.h
14
int parse_libpfm_events_option(const struct option *opt, const char *str,
tools/perf/util/pfm.h
24
const char *str __maybe_unused,
tools/perf/util/pmu.c
1464
char *str = NULL;
tools/perf/util/pmu.c
1476
str = strbuf_detach(&buf, NULL);
tools/perf/util/pmu.c
1480
return str;
tools/perf/util/pmu.c
1639
if (strcmp(term->val.str, "?")) {
tools/perf/util/pmu.c
1642
term->config, term->val.str);
tools/perf/util/pmu.c
1739
name = term->val.str;
tools/perf/util/pmu.c
2141
term->val.str);
tools/perf/util/pmu.c
2248
info.str = event->terms;
tools/perf/util/pmu.c
860
char path[PATH_MAX], *str;
tools/perf/util/pmu.c
865
if (filename__read_str(path, &str, &len) < 0)
tools/perf/util/pmu.c
868
str[len - 1] = 0; /* remove line feed */
tools/perf/util/pmu.c
870
return str;
tools/perf/util/pmu.h
232
const char *str;
tools/perf/util/pmus.c
489
const struct perf_pmu *perf_pmus__pmu_for_pmu_filter(const char *str)
tools/perf/util/pmus.c
494
if (!strcmp(pmu->name, str))
tools/perf/util/pmus.c
498
if (!strcmp(pmu->name + 7, str))
tools/perf/util/pmus.c
503
if (!strcmp(pmu->name + 4, str))
tools/perf/util/pmus.c
588
#define COPY_STR(str) s->str = info->str ? strdup(info->str) : NULL
tools/perf/util/pmus.c
65
size_t pmu_name_len_no_suffix(const char *str)
tools/perf/util/pmus.c
70
orig_len = len = strlen(str);
tools/perf/util/pmus.c
73
while (len > 0 && isxdigit(str[len - 1])) {
tools/perf/util/pmus.c
74
if (!isdigit(str[len - 1]))
tools/perf/util/pmus.c
79
if (len > 0 && len != orig_len && str[len - 1] == '_') {
tools/perf/util/pmus.h
12
size_t pmu_name_len_no_suffix(const char *str);
tools/perf/util/pmus.h
27
const struct perf_pmu *perf_pmus__pmu_for_pmu_filter(const char *str);
tools/perf/util/probe-event.c
1710
static int parse_perf_probe_arg(char *str, struct perf_probe_arg *arg)
tools/perf/util/probe-event.c
1715
pr_debug("parsing arg: %s into ", str);
tools/perf/util/probe-event.c
1717
tmp = strchr(str, '=');
tools/perf/util/probe-event.c
1719
arg->name = strndup(str, tmp - str);
tools/perf/util/probe-event.c
1723
str = tmp + 1;
tools/perf/util/probe-event.c
1726
tmp = strchr(str, '@');
tools/perf/util/probe-event.c
1727
if (tmp && tmp != str && !strcmp(tmp + 1, "user")) { /* user attr */
tools/perf/util/probe-event.c
1737
tmp = strchr(str, ':');
tools/perf/util/probe-event.c
1746
tmp = strpbrk(str, "-.[");
tools/perf/util/probe-event.c
1747
if (!is_c_varname(str) || !tmp) {
tools/perf/util/probe-event.c
1749
arg->var = strdup(str);
tools/perf/util/probe-event.c
1757
arg->var = strndup(str, tmp - str);
tools/perf/util/probe-event.c
1769
str = tmp;
tools/perf/util/probe-event.c
1770
(*fieldp)->index = strtol(str + 1, &tmp, 0);
tools/perf/util/probe-event.c
1772
if (*tmp != ']' || tmp == str + 1) {
tools/perf/util/probe-event.c
1782
str = tmp + 1;
tools/perf/util/probe-event.c
1785
str = tmp + 2;
tools/perf/util/probe-event.c
1789
str);
tools/perf/util/probe-event.c
1792
tmp = strpbrk(str, "-.[");
tools/perf/util/probe-event.c
1795
(*fieldp)->name = strndup(str, tmp - str);
tools/perf/util/probe-event.c
1798
if (*str != '[')
tools/perf/util/probe-event.c
1804
(*fieldp)->name = strdup(str);
tools/perf/util/probe-event.c
1807
if (*str != '[')
tools/perf/util/probe-event.c
2425
#define strdup_or_goto(str, label) \
tools/perf/util/probe-event.c
2426
({ char *__p = NULL; if (str && !(__p = strdup(str))) goto label; __p; })
tools/perf/util/probe-event.c
3800
char *str = strfilter__string(_filter);
tools/perf/util/probe-event.c
3802
str);
tools/perf/util/probe-event.c
3803
free(str);
tools/perf/util/probe-event.c
65
int e_snprintf(char *str, size_t size, const char *format, ...)
tools/perf/util/probe-event.c
70
ret = vsnprintf(str, size, format, ap);
tools/perf/util/probe-event.h
186
int e_snprintf(char *str, size_t size, const char *format, ...) __printf(3, 4);
tools/perf/util/python.c
1322
PyObject *str = PyUnicode_FromString(expr->metric_name);
tools/perf/util/python.c
1324
if (!str || PyList_Append(list, str) != 0) {
tools/perf/util/python.c
1328
Py_DECREF(str);
tools/perf/util/python.c
353
const char *str = PyUnicode_AsUTF8(obj);
tools/perf/util/python.c
354
if (str == NULL) {
tools/perf/util/python.c
359
field = tep_find_any_field(tp_format, str);
tools/perf/util/python.c
707
!add_to_dict(dict, "str", info->str) ||
tools/perf/util/record.c
221
bool evlist__can_select_event(struct evlist *evlist, const char *str)
tools/perf/util/record.c
234
err = parse_event(temp_evlist, str);
tools/perf/util/record.c
271
int record__parse_freq(const struct option *opt, const char *str, int unset __maybe_unused)
tools/perf/util/record.c
276
if (!str)
tools/perf/util/record.c
279
if (strcasecmp(str, "max") == 0) {
tools/perf/util/record.c
286
freq = atoi(str);
tools/perf/util/record.h
91
int record__parse_freq(const struct option *opt, const char *str, int unset);
tools/perf/util/s390-sample-raw.c
147
if (info->str == NULL)
tools/perf/util/s390-sample-raw.c
150
event_str = strstr(info->str, "event=");
tools/perf/util/scripting-engines/trace-event-perl.c
107
define_symbolic_value(ev_name, field_name, field->value, field->str);
tools/perf/util/scripting-engines/trace-event-perl.c
165
define_flag_value(ev_name, field_name, field->value, field->str);
tools/perf/util/scripting-engines/trace-event-python.c
1647
static void get_handler_name(char *str, size_t size,
tools/perf/util/scripting-engines/trace-event-python.c
1650
char *p = str;
tools/perf/util/scripting-engines/trace-event-python.c
1652
scnprintf(str, size, "stat__%s", evsel__name(evsel));
tools/perf/util/scripting-engines/trace-event-python.c
218
field->str);
tools/perf/util/scripting-engines/trace-event-python.c
813
char *p, str[33];
tools/perf/util/scripting-engines/trace-event-python.c
815
for (p = str; *ch; ch++, flags >>= 1) {
tools/perf/util/scripting-engines/trace-event-python.c
820
pydict_set_item_string_decref(dict, "flags", _PyUnicode_FromString(str));
tools/perf/util/session.c
1105
char *get_page_size_name(u64 size, char *str)
tools/perf/util/session.c
1107
if (!size || !unit_number__scnprintf(str, PAGE_SIZE_NAME_LEN, size))
tools/perf/util/session.c
1108
snprintf(str, PAGE_SIZE_NAME_LEN, "%s", "N/A");
tools/perf/util/session.c
1110
return str;
tools/perf/util/session.c
1117
char str[PAGE_SIZE_NAME_LEN];
tools/perf/util/session.c
1167
printf(" .. data page size: %s\n", get_page_size_name(sample->data_page_size, str));
tools/perf/util/session.c
1170
printf(" .. code page size: %s\n", get_page_size_name(sample->code_page_size, str));
tools/perf/util/sort.c
2065
char str[PAGE_SIZE_NAME_LEN];
tools/perf/util/sort.c
2068
get_page_size_name(mem_info__daddr(he->mem_info)->data_page_size, str));
tools/perf/util/sort.c
2090
char str[PAGE_SIZE_NAME_LEN];
tools/perf/util/sort.c
2093
get_page_size_name(he->code_page_size, str));
tools/perf/util/sort.c
2173
static inline char *add_str(char *p, const char *str)
tools/perf/util/sort.c
2175
strcpy(p, str);
tools/perf/util/sort.c
2176
return p + strlen(str);
tools/perf/util/sort.c
3030
char *str, *pos;
tools/perf/util/sort.c
3043
str = he->trace_output;
tools/perf/util/sort.c
3045
while (str) {
tools/perf/util/sort.c
3046
pos = strchr(str, ' ');
tools/perf/util/sort.c
3049
pos = str + strlen(str);
tools/perf/util/sort.c
3052
if (!strncmp(str, field->name, namelen)) {
tools/perf/util/sort.c
3055
str += namelen + 1;
tools/perf/util/sort.c
3056
len = pos - str;
tools/perf/util/sort.c
3064
str = NULL;
tools/perf/util/sort.c
3066
str = pos + 1;
tools/perf/util/sort.c
3115
char *str, *pos;
tools/perf/util/sort.c
3134
str = he->trace_output;
tools/perf/util/sort.c
3136
while (str) {
tools/perf/util/sort.c
3137
pos = strchr(str, ' ');
tools/perf/util/sort.c
3140
pos = str + strlen(str);
tools/perf/util/sort.c
3143
if (!strncmp(str, field->name, namelen)) {
tools/perf/util/sort.c
3144
str += namelen + 1;
tools/perf/util/sort.c
3145
str = strndup(str, pos - str);
tools/perf/util/sort.c
3147
if (str == NULL)
tools/perf/util/sort.c
3154
str = NULL;
tools/perf/util/sort.c
3156
str = pos + 1;
tools/perf/util/sort.c
3159
if (str == NULL) {
tools/perf/util/sort.c
3164
str = seq.buffer;
tools/perf/util/sort.c
3167
ret = scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, str);
tools/perf/util/sort.c
3168
free(str);
tools/perf/util/sort.c
3309
static int parse_field_name(char *str, char **event, char **field, char **opt)
tools/perf/util/sort.c
3313
event_name = str;
tools/perf/util/sort.c
3314
field_name = strchr(str, '.');
tools/perf/util/sort.c
3320
field_name = str;
tools/perf/util/sort.c
3459
char *str, *event_name, *field_name, *opt_name;
tools/perf/util/sort.c
3467
str = strdup(tok);
tools/perf/util/sort.c
3468
if (str == NULL)
tools/perf/util/sort.c
3471
if (parse_field_name(str, &event_name, &field_name, &opt_name) < 0) {
tools/perf/util/sort.c
3544
free(str);
tools/perf/util/sort.c
3789
static int setup_sort_list(struct perf_hpp_list *list, char *str,
tools/perf/util/sort.c
3801
tok = str;
tools/perf/util/sort.c
3802
tmp = strpbrk(str, "{}, ");
tools/perf/util/sort.c
3815
str = tmp + 1;
tools/perf/util/sort.c
3920
static char *prefix_if_not_in(const char *pre, char *str)
tools/perf/util/sort.c
3924
if (!str || strstr(str, pre))
tools/perf/util/sort.c
3925
return str;
tools/perf/util/sort.c
3927
if (asprintf(&n, "%s,%s", pre, str) < 0)
tools/perf/util/sort.c
3930
free(str);
tools/perf/util/sort.c
3963
char *str;
tools/perf/util/sort.c
3984
str = strdup(sort_keys);
tools/perf/util/sort.c
3985
if (str == NULL) {
tools/perf/util/sort.c
3994
str = setup_overhead(str);
tools/perf/util/sort.c
3995
if (str == NULL) {
tools/perf/util/sort.c
4001
ret = setup_sort_list(&perf_hpp_list, str, evlist, env);
tools/perf/util/sort.c
4003
free(str);
tools/perf/util/sort.c
4165
static int setup_output_list(struct perf_hpp_list *list, char *str)
tools/perf/util/sort.c
4171
for (tok = strtok_r(str, ", ", &tmp);
tools/perf/util/sort.c
4210
char *str, *strp;
tools/perf/util/sort.c
4216
strp = str = strdup(field_order);
tools/perf/util/sort.c
4217
if (str == NULL) {
tools/perf/util/sort.c
4233
free(str);
tools/perf/util/sort.c
4295
static void add_key(struct strbuf *sb, const char *str, int *llen)
tools/perf/util/sort.c
4297
if (!str)
tools/perf/util/sort.c
4304
strbuf_addf(sb, " %s", str);
tools/perf/util/sort.c
4305
*llen += strlen(str) + 1;
tools/perf/util/sort.c
731
char str[32];
tools/perf/util/sort.c
739
snprintf(str, sizeof(str), "%.1f%%", percent);
tools/perf/util/sort.c
740
return repsep_snprintf(bf, size, "%-*.*s", width, width, str);
tools/perf/util/sort.c
764
char str[32];
tools/perf/util/sort.c
769
snprintf(str, sizeof(str), "%" PRId64, abort_count);
tools/perf/util/sort.c
770
return repsep_snprintf(bf, size, "%-*.*s", width, width, str);
tools/perf/util/sort.c
794
char str[32];
tools/perf/util/sort.c
802
snprintf(str, sizeof(str), "%" PRId64 "", cycles);
tools/perf/util/sort.c
803
return repsep_snprintf(bf, size, "%-*.*s", width, width, str);
tools/perf/util/stat-display.c
601
char str[1024];
tools/perf/util/stat-display.c
613
color_snprintf(str, sizeof(str), color ?: "", fmt ?: "", val);
tools/perf/util/stat-display.c
614
fprintf(out, "%*s ", mlen, str);
tools/perf/util/strfilter.c
219
const char *str)
tools/perf/util/strfilter.c
226
return strfilter_node__compare(node->l, str) ||
tools/perf/util/strfilter.c
227
strfilter_node__compare(node->r, str);
tools/perf/util/strfilter.c
229
return strfilter_node__compare(node->l, str) &&
tools/perf/util/strfilter.c
230
strfilter_node__compare(node->r, str);
tools/perf/util/strfilter.c
232
return !strfilter_node__compare(node->r, str);
tools/perf/util/strfilter.c
234
return strglobmatch(str, node->p);
tools/perf/util/strfilter.c
239
bool strfilter__compare(struct strfilter *filter, const char *str)
tools/perf/util/strfilter.c
243
return strfilter_node__compare(filter->root, str);
tools/perf/util/strfilter.h
65
bool strfilter__compare(struct strfilter *filter, const char *str);
tools/perf/util/string.c
110
static bool __match_glob(const char *str, const char *pat, bool ignore_space,
tools/perf/util/string.c
113
while (*str && *pat && *pat != '*') {
tools/perf/util/string.c
116
if (isspace(*str)) {
tools/perf/util/string.c
117
str++;
tools/perf/util/string.c
126
str++;
tools/perf/util/string.c
130
if (__match_charclass(pat + 1, *str, &pat)) {
tools/perf/util/string.c
131
str++;
tools/perf/util/string.c
138
if (tolower(*str) != tolower(*pat))
tools/perf/util/string.c
140
} else if (*str != *pat)
tools/perf/util/string.c
142
str++;
tools/perf/util/string.c
151
while (*str)
tools/perf/util/string.c
152
if (__match_glob(str++, pat, ignore_space, case_ins))
tools/perf/util/string.c
155
return !*str && !*pat;
tools/perf/util/string.c
170
bool strglobmatch(const char *str, const char *pat)
tools/perf/util/string.c
172
return __match_glob(str, pat, false, false);
tools/perf/util/string.c
175
bool strglobmatch_nocase(const char *str, const char *pat)
tools/perf/util/string.c
177
return __match_glob(str, pat, false, true);
tools/perf/util/string.c
188
bool strlazymatch(const char *str, const char *pat)
tools/perf/util/string.c
190
return __match_glob(str, pat, true, false);
tools/perf/util/string.c
23
s64 perf_atoll(const char *str)
tools/perf/util/string.c
251
char *strpbrk_esc(char *str, const char *stopset)
tools/perf/util/string.c
256
ptr = strpbrk(str, stopset);
tools/perf/util/string.c
261
if (ptr == str) {
tools/perf/util/string.c
265
if (ptr == str + 1 && str[0] != '\\') {
tools/perf/util/string.c
269
str = ptr + 1;
tools/perf/util/string.c
276
char *strpbrk_esq(char *str, const char *stopset)
tools/perf/util/string.c
287
ptr = strpbrk_esc(str, _stopset);
tools/perf/util/string.c
29
if (!isdigit(str[0]))
tools/perf/util/string.c
296
str = ptr + 1;
tools/perf/util/string.c
304
char *strdup_esc(const char *str)
tools/perf/util/string.c
306
char *s, *d, *p, *ret = strdup(str);
tools/perf/util/string.c
32
length = strtoll(str, &p, 10);
tools/perf/util/string.c
334
static char *remove_consumed_esc(char *str, int len, int quote)
tools/perf/util/string.c
336
char *ptr = str, *end = str + len;
tools/perf/util/string.c
354
char *strdup_esq(const char *str)
tools/perf/util/string.c
359
d = strpbrk_esc((char *)str, "\"'");
tools/perf/util/string.c
361
return strdup_esc(str);
tools/perf/util/string.c
363
ret = strdup(str);
tools/perf/util/string2.h
14
s64 perf_atoll(const char *str);
tools/perf/util/string2.h
15
bool strglobmatch(const char *str, const char *pat);
tools/perf/util/string2.h
16
bool strglobmatch_nocase(const char *str, const char *pat);
tools/perf/util/string2.h
17
bool strlazymatch(const char *str, const char *pat);
tools/perf/util/string2.h
18
static inline bool strisglob(const char *str)
tools/perf/util/string2.h
20
return strpbrk(str, "*?[") != NULL;
tools/perf/util/string2.h
38
char *strpbrk_esc(char *str, const char *stopset);
tools/perf/util/string2.h
39
char *strdup_esc(const char *str);
tools/perf/util/string2.h
40
char *strpbrk_esq(char *str, const char *stopset);
tools/perf/util/string2.h
41
char *strdup_esq(const char *str);
tools/perf/util/strlist.c
51
const char *str = entry;
tools/perf/util/strlist.c
54
return strcmp(snode->s, str);
tools/perf/util/strlist.h
35
int strlist__add(struct strlist *slist, const char *str);
tools/perf/util/symbol-elf.c
197
char *str;
tools/perf/util/symbol-elf.c
200
str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name);
tools/perf/util/symbol-elf.c
201
if (str && !strcmp(name, str)) {
tools/perf/util/symbol.c
113
static int prefix_underscores_count(const char *str)
tools/perf/util/symbol.c
115
const char *tail = str;
tools/perf/util/symbol.c
120
return tail - str;
tools/perf/util/symbol.c
2545
char *cxx_demangle_sym(const char *str __maybe_unused, bool params __maybe_unused,
tools/perf/util/symbol.c
2551
return bfd_demangle(NULL, str, flags);
tools/perf/util/symbol.c
2555
return cplus_demangle(str, flags);
tools/perf/util/symbol.c
483
int symbol__match_symbol_name(const char *name, const char *str,
tools/perf/util/symbol.c
490
int len = strlen(str);
tools/perf/util/symbol.c
495
return arch__compare_symbol_names_n(name, str, len);
tools/perf/util/symbol.c
497
return arch__compare_symbol_names(name, str);
tools/perf/util/synthetic-events.h
42
int parse_synth_opt(char *str);
tools/perf/util/target.c
69
uid_t parse_uid(const char *str)
tools/perf/util/target.c
74
if (str == NULL)
tools/perf/util/target.c
78
getpwnam_r(str, &pwd, buf, sizeof(buf), &result);
tools/perf/util/target.c
85
int uid = strtol(str, &endptr, 10);
tools/perf/util/target.h
48
uid_t parse_uid(const char *str);
tools/perf/util/thread.c
250
static int ____thread__set_comm(struct thread *thread, const char *str,
tools/perf/util/thread.c
258
int err = comm__override(curr, str, timestamp, exec);
tools/perf/util/thread.c
262
new = comm__new(str, timestamp, exec);
tools/perf/util/thread.c
276
int __thread__set_comm(struct thread *thread, const char *str, u64 timestamp,
tools/perf/util/thread.c
282
ret = ____thread__set_comm(thread, str, timestamp, exec);
tools/perf/util/thread.c
317
const char *str;
tools/perf/util/thread.c
320
str = __thread__comm_str(thread);
tools/perf/util/thread.c
323
return str;
tools/perf/util/time-utils.c
124
char *str, *arg, *p;
tools/perf/util/time-utils.c
136
str = strdup(ostr);
tools/perf/util/time-utils.c
137
if (!str)
tools/perf/util/time-utils.c
141
for (i = 0, p = str; i < num - 1; i++) {
tools/perf/util/time-utils.c
175
free(str);
tools/perf/util/time-utils.c
18
int parse_nsec_time(const char *str, u64 *ptime)
tools/perf/util/time-utils.c
180
static int parse_percent(double *pcnt, char *str)
tools/perf/util/time-utils.c
185
c = strchr(str, '%');
tools/perf/util/time-utils.c
191
d = strtod(str, &endptr);
tools/perf/util/time-utils.c
192
if (endptr != str + strlen(str))
tools/perf/util/time-utils.c
218
static int percent_slash_split(char *str, struct perf_time_interval *ptime,
tools/perf/util/time-utils.c
23
time_sec = strtoull(str, &end, 10);
tools/perf/util/time-utils.c
231
p = strchr(str, '/');
tools/perf/util/time-utils.c
236
if (parse_percent(&pcnt, str) < 0)
tools/perf/util/time-utils.c
253
static int percent_dash_split(char *str, struct perf_time_interval *ptime,
tools/perf/util/time-utils.c
264
ret = split_start_end(&start_str, &end_str, str, '-');
tools/perf/util/time-utils.c
286
char *str, *p1, *p2;
tools/perf/util/time-utils.c
289
str = strdup(ostr);
tools/perf/util/time-utils.c
290
if (str == NULL)
tools/perf/util/time-utils.c
293
len = strlen(str);
tools/perf/util/time-utils.c
294
p1 = str;
tools/perf/util/time-utils.c
296
while (p1 < str + len) {
tools/perf/util/time-utils.c
298
free(str);
tools/perf/util/time-utils.c
308
free(str);
tools/perf/util/time-utils.c
323
free(str);
tools/perf/util/time-utils.c
330
char *str;
tools/perf/util/time-utils.c
343
str = malloc(len + 3);
tools/perf/util/time-utils.c
344
if (str == NULL)
tools/perf/util/time-utils.c
347
memcpy(str, ostr, len);
tools/perf/util/time-utils.c
348
strcpy(str + len, "/1");
tools/perf/util/time-utils.c
350
ret = percent_slash_split(str, ptime_buf, start, end);
tools/perf/util/time-utils.c
354
free(str);
tools/perf/util/time-utils.c
70
char *d, *str;
tools/perf/util/time-utils.c
76
str = strdup(ostr);
tools/perf/util/time-utils.c
77
if (str == NULL)
tools/perf/util/time-utils.c
80
start_str = str;
tools/perf/util/time-utils.h
13
int parse_nsec_time(const char *str, u64 *ptime);
tools/perf/util/time-utils.h
29
int perf_time__parse_for_ranges_reltime(const char *str, struct perf_session *session,
tools/perf/util/time-utils.h
34
int perf_time__parse_for_ranges(const char *str, struct perf_session *session,
tools/perf/util/tool.c
454
const char *str) \
tools/perf/util/tool.c
458
return delegate->name(delegate, session, event, data, str); \
tools/perf/util/tool.h
34
union perf_event *event, u64 data, const char *str);
tools/perf/util/tool_pmu.c
75
enum tool_pmu_event tool_pmu__str_to_event(const char *str)
tools/perf/util/tool_pmu.c
79
if (tool_pmu__skip_event(str))
tools/perf/util/tool_pmu.c
83
if (!strcasecmp(str, tool_pmu__event_names[i]))
tools/perf/util/tool_pmu.h
35
enum tool_pmu_event tool_pmu__str_to_event(const char *str);
tools/perf/util/trace-event-info.c
485
const char *str = strchr(name, ':');
tools/perf/util/trace-event-info.c
487
if (path == NULL || str == NULL) {
tools/perf/util/trace-event-info.c
492
path->system = strndup(name, str - name);
tools/perf/util/trace-event-info.c
493
path->name = strdup(str+1);
tools/perf/util/trace-event-parse.c
144
save_states[i] = sym->str[0];
tools/perf/util/trace-event-read.c
104
char *str = NULL;
tools/perf/util/trace-event-read.c
138
str = malloc(size);
tools/perf/util/trace-event-read.c
139
if (str)
tools/perf/util/trace-event-read.c
140
memcpy(str, buf, size);
tools/perf/util/trace-event-read.c
142
return str;
tools/perf/util/trace-event-scripting.c
308
static int sample_flags_to_name(u32 flags, char *str, size_t size)
tools/perf/util/trace-event-scripting.c
327
ret = snprintf(str + pos, size - pos, "%s", prefix);
tools/perf/util/trace-event-scripting.c
339
ret = snprintf(str + pos, size - pos, "%s", sample_flags[i].name);
tools/perf/util/trace-event-scripting.c
351
ret = snprintf(str + pos, size - pos, !ev_idx ? "/%s" : ",%s",
tools/perf/util/trace-event-scripting.c
361
ret = snprintf(str + pos, size - pos, "/");
tools/perf/util/trace-event-scripting.c
377
ret = snprintf(str + pos, size - pos, "%*s",
tools/perf/util/trace-event-scripting.c
380
ret = snprintf(str + pos, size - pos, " %s", xs);
tools/perf/util/trace-event-scripting.c
387
int perf_sample__sprintf_flags(u32 flags, char *str, size_t sz)
tools/perf/util/trace-event-scripting.c
394
ret = sample_flags_to_name(flags, str, sz);
tools/perf/util/trace-event-scripting.c
400
str[pos++] = chars[i];
tools/perf/util/trace-event-scripting.c
404
str[pos++] = '?';
tools/perf/util/trace-event-scripting.c
407
str[pos] = 0;
tools/perf/util/trace-event.h
147
int perf_sample__sprintf_flags(u32 flags, char *str, size_t sz);
tools/perf/util/units.c
10
unsigned long parse_tag_value(const char *str, struct parse_tag *tags)
tools/perf/util/units.c
15
const char *s = strchr(str, i->tag);
tools/perf/util/units.c
21
value = strtoul(str, &endptr, 10);
tools/perf/util/units.h
13
unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
tools/perf/util/util.h
117
unsigned char str[] = { 0x1, 0x2, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0};
tools/perf/util/util.h
120
ptr = (unsigned int *)(void *)str;
tools/power/cpupower/bench/parse.c
31
enum sched_prio string_to_prio(const char *str)
tools/power/cpupower/bench/parse.c
33
if (strncasecmp("high", str, strlen(str)) == 0)
tools/power/cpupower/bench/parse.c
35
else if (strncasecmp("default", str, strlen(str)) == 0)
tools/power/cpupower/bench/parse.c
37
else if (strncasecmp("low", str, strlen(str)) == 0)
tools/power/cpupower/bench/parse.h
34
enum sched_prio string_to_prio(const char *str);
tools/power/cpupower/utils/cpufreq-set.c
101
if (str[cp] == '.') {
tools/power/cpupower/utils/cpufreq-set.c
102
while (power > -1 && isdigit(str[cp+1])) {
tools/power/cpupower/utils/cpufreq-set.c
118
for (i = 0; i < cp; i++, str++) {
tools/power/cpupower/utils/cpufreq-set.c
119
if (*str == '.')
tools/power/cpupower/utils/cpufreq-set.c
120
str++;
tools/power/cpupower/utils/cpufreq-set.c
121
normalized[i] = *str;
tools/power/cpupower/utils/cpufreq-set.c
62
static unsigned long string_to_frequency(const char *str)
tools/power/cpupower/utils/cpufreq-set.c
71
while (*str == '0')
tools/power/cpupower/utils/cpufreq-set.c
72
str++;
tools/power/cpupower/utils/cpufreq-set.c
74
for (scan = str; isdigit(*scan) || *scan == '.'; scan++) {
tools/power/cpupower/utils/cpufreq-set.c
98
for (cp = 0; isdigit(str[cp]); cp++)
tools/power/x86/intel-speed-select/isst-config.c
1000
index = snprintf(&str[curr_index], str_len - curr_index, "%d",
tools/power/x86/intel-speed-select/isst-config.c
1009
debug_printf("isolated CPUs list: package:%d curr_index:%d [%s]\n", id->pkg, curr_index ,str);
tools/power/x86/intel-speed-select/isst-config.c
1018
ret = write(fd, str, strlen(str));
tools/power/x86/intel-speed-select/isst-config.c
1054
char str[2];
tools/power/x86/intel-speed-select/isst-config.c
1068
len = read(fd, str, sizeof(str));
tools/power/x86/intel-speed-select/isst-config.c
1075
if (str[0] != '0') {
tools/power/x86/intel-speed-select/isst-config.c
1088
len = read(fd1, str, sizeof(str));
tools/power/x86/intel-speed-select/isst-config.c
1089
if (len != -1 && str[0] == 'm') {
tools/power/x86/intel-speed-select/isst-config.c
938
static char str[512], dir_name[64];
tools/power/x86/intel-speed-select/isst-config.c
940
int str_len = sizeof(str);
tools/power/x86/intel-speed-select/isst-config.c
979
str[0] = '\0';
tools/power/x86/intel-speed-select/isst-config.c
982
snprintf(str, str_len, "0");
tools/power/x86/intel-speed-select/isst-config.c
994
index = snprintf(&str[curr_index],
tools/power/x86/intel-speed-select/isst-daemon.c
150
char str[10];
tools/power/x86/intel-speed-select/isst-daemon.c
218
snprintf(str, sizeof(str), "%d\n", getpid());
tools/power/x86/intel-speed-select/isst-daemon.c
219
ret = write(pid_file_handle, str, strlen(str));
tools/power/x86/intel-speed-select/isst-display.c
15
snprintf(str, str_len, "none");
tools/power/x86/intel-speed-select/isst-display.c
25
index = snprintf(&str[curr_index],
tools/power/x86/intel-speed-select/isst-display.c
31
index = snprintf(&str[curr_index], str_len - curr_index, "%d",
tools/power/x86/intel-speed-select/isst-display.c
40
static void printcpumask(int str_len, char *str, int mask_size,
tools/power/x86/intel-speed-select/isst-display.c
68
index = snprintf(&str[curr_index], str_len - curr_index, "%08x",
tools/power/x86/intel-speed-select/isst-display.c
74
strncat(&str[curr_index], ",", str_len - curr_index);
tools/power/x86/intel-speed-select/isst-display.c
9
static void printcpulist(int str_len, char *str, int mask_size,
tools/power/x86/turbostat/turbostat.c
10893
bool starts_with(const char *str, const char *prefix)
tools/power/x86/turbostat/turbostat.c
10895
return strncmp(prefix, str, strlen(prefix)) == 0;
tools/power/x86/turbostat/turbostat.c
7886
char str[PATH_MAX];
tools/power/x86/turbostat/turbostat.c
7893
ret = fread_str(path, str, PATH_MAX);
tools/power/x86/turbostat/turbostat.c
7897
fprintf(outf, "%s: %s", domain_path + strlen(PATH_RAPL_SYSFS) + 1, str);
tools/power/x86/turbostat/turbostat.c
7942
char str[PATH_MAX];
tools/power/x86/turbostat/turbostat.c
7959
fread_str(path, str, PATH_MAX);
tools/power/x86/turbostat/turbostat.c
7960
if (strncmp(str, "package", strlen("package")) && strncmp(str, "psys", strlen("psys")))
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
780
void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str)
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
800
void print_hwp_request(int cpu, struct msr_hwp_request *h, char *str)
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
805
if (str)
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
806
printf("%s", str);
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
812
void print_hwp_request_pkg(int pkg, struct msr_hwp_request *h, char *str)
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
816
if (str)
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
817
printf("%s", str);
tools/spi/spidev_test.c
340
static void transfer_escaped_string(int fd, char *str)
tools/spi/spidev_test.c
342
size_t size = strlen(str);
tools/spi/spidev_test.c
354
size = unescape((char *)tx, str, size);
tools/testing/selftests/arm64/bti/test.c
29
static void fdputs(int fd, const char *str)
tools/testing/selftests/arm64/bti/test.c
32
const char *p = str;
tools/testing/selftests/arm64/bti/test.c
37
write(fd, str, len);
tools/testing/selftests/arm64/bti/test.c
40
static void putstr(const char *str)
tools/testing/selftests/arm64/bti/test.c
42
fdputs(1, str);
tools/testing/selftests/arm64/mte/check_hugetlb_options.c
71
static void write_sysfs(char *str, unsigned long val)
tools/testing/selftests/arm64/mte/check_hugetlb_options.c
75
f = fopen(str, "w");
tools/testing/selftests/arm64/mte/check_hugetlb_options.c
77
ksft_print_msg("ERR: missing %s\n", str);
tools/testing/selftests/arm64/mte/check_ksm_options.c
26
static unsigned long read_sysfs(char *str)
tools/testing/selftests/arm64/mte/check_ksm_options.c
31
f = fopen(str, "r");
tools/testing/selftests/arm64/mte/check_ksm_options.c
33
ksft_print_msg("ERR: missing %s\n", str);
tools/testing/selftests/arm64/mte/check_ksm_options.c
37
ksft_print_msg("ERR: parsing %s\n", str);
tools/testing/selftests/arm64/mte/check_ksm_options.c
44
static void write_sysfs(char *str, unsigned long val)
tools/testing/selftests/arm64/mte/check_ksm_options.c
48
f = fopen(str, "w");
tools/testing/selftests/arm64/mte/check_ksm_options.c
50
ksft_print_msg("ERR: missing %s\n", str);
tools/testing/selftests/bpf/benchs/bench_strncmp.c
33
args.cmp_str_len >= sizeof(ctx.skel->bss->str)) {
tools/testing/selftests/bpf/benchs/bench_strncmp.c
35
sizeof(ctx.skel->bss->str));
tools/testing/selftests/bpf/benchs/bench_strncmp.c
66
if (!sz || sz < sizeof(ctx.skel->bss->str)) {
tools/testing/selftests/bpf/benchs/bench_strncmp.c
68
sz, sizeof(ctx.skel->bss->str));
tools/testing/selftests/bpf/benchs/bench_strncmp.c
88
memcpy(ctx.skel->bss->str, target, args.cmp_str_len);
tools/testing/selftests/bpf/benchs/bench_strncmp.c
89
ctx.skel->bss->str[args.cmp_str_len] = '\0';
tools/testing/selftests/bpf/benchs/bench_strncmp.c
91
ctx.skel->bss->str[args.cmp_str_len - 1] -= 1;
tools/testing/selftests/bpf/bpf_arena_strsearch.h
122
str = ++back_str;
tools/testing/selftests/bpf/bpf_arena_strsearch.h
43
__noinline bool glob_match(char const __arena *pat __arg_arena, char const __arena *str __arg_arena)
tools/testing/selftests/bpf/bpf_arena_strsearch.h
59
unsigned char c = *str++;
tools/testing/selftests/bpf/bpf_arena_strsearch.h
71
back_str = --str; /* Allow zero-length match */
tools/testing/selftests/bpf/json_writer.c
57
static void jsonw_puts(json_writer_t *self, const char *str)
tools/testing/selftests/bpf/json_writer.c
60
for (; *str; ++str)
tools/testing/selftests/bpf/json_writer.c
61
switch (*str) {
tools/testing/selftests/bpf/json_writer.c
84
putc(*str, self->out);
tools/testing/selftests/bpf/netlink_helpers.c
307
int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *str)
tools/testing/selftests/bpf/netlink_helpers.c
309
return addattr_l(n, maxlen, type, str, strlen(str)+1);
tools/testing/selftests/bpf/network_helpers.c
455
int append_tid(char *str, size_t sz)
tools/testing/selftests/bpf/network_helpers.c
459
if (!str)
tools/testing/selftests/bpf/network_helpers.c
462
end = strlen(str);
tools/testing/selftests/bpf/network_helpers.c
466
sprintf(&str[end], "%07ld", sys_gettid());
tools/testing/selftests/bpf/network_helpers.c
467
str[end + 7] = '\0';
tools/testing/selftests/bpf/network_helpers.h
115
int append_tid(char *str, size_t sz);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1465
static void str_strip_first_line(char *str)
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1467
char *dst = str, *src = str;
tools/testing/selftests/bpf/prog_tests/btf.c
4282
const char *str,
tools/testing/selftests/bpf/prog_tests/btf.c
4287
const char *next_str = str, *end_str = str + str_sec_size;
tools/testing/selftests/bpf/prog_tests/btf.c
4336
ret_types[i] = strs_idx[next_str_idx++] - str;
tools/testing/selftests/bpf/prog_tests/btf.c
4346
ret_types[i] = strs_idx[idx-1] - str;
tools/testing/selftests/bpf/prog_tests/btf.c
4354
memcpy(raw_btf + offset, str, str_sec_size);
tools/testing/selftests/bpf/prog_tests/btf.c
6499
const char *str, __u32 str_off,
tools/testing/selftests/bpf/prog_tests/btf.c
6504
const char *end_str = str + str_sec_size;
tools/testing/selftests/bpf/prog_tests/btf.c
6505
const char *next_str = str + str_off;
tools/testing/selftests/bpf/prog_tests/btf.c
6527
new_u32[i] = next_str - str;
tools/testing/selftests/bpf/prog_tests/btf.c
85
#define BTF_STR_SEC(str) \
tools/testing/selftests/bpf/prog_tests/btf.c
86
.str_sec = str, .str_sec_size = sizeof(str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1016
str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1020
cmp = strcmp(str, expected_val);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1024
static void test_btf_dump_datasec_data(char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1034
d = btf_dump__new(btf, btf_dump_snprintf, str, NULL);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1038
test_btf_datasec(btf, d, str, "license",
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1047
char str[STRSIZE];
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1070
d = btf_dump__new(btf, btf_dump_snprintf, str, NULL);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1076
test_btf_dump_int_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1078
test_btf_dump_float_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1080
test_btf_dump_char_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1082
test_btf_dump_typedef_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1084
test_btf_dump_enum_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1086
test_btf_dump_struct_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1088
test_btf_dump_var_data(btf, d, str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1095
test_btf_dump_datasec_data(str);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
341
size_t ptr_sz, char *str, const char *expected_val)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
363
str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/btf_dump.c
372
if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match"))
tools/testing/selftests/bpf/prog_tests/btf_dump.c
421
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
432
TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, int, BTF_F_COMPACT, 1234);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
433
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
435
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, 0, "(int)1234", 1234);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
438
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT, "(int)0", 0);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
439
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
441
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_ZERO,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
443
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
446
TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, int, BTF_F_COMPACT, -4567);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
447
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
449
TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, 0, "(int)-4567", -4567);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
451
TEST_BTF_DUMP_DATA_OVER(btf, d, NULL, str, int, sizeof(int)-1, "", 1);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
459
TEST_BTF_DUMP_DATA(btf, d, NULL, str, unsigned __int128, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
462
ASSERT_OK(btf_dump_data(btf, d, "unsigned __int128", NULL, 0, &i, 16, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
466
TEST_BTF_DUMP_DATA(btf, d, NULL, str, __int128 unsigned, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
469
ASSERT_OK(btf_dump_data(btf, d, "__int128 unsigned", NULL, 0, &i, 16, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
479
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
496
ASSERT_OK(btf_dump_data(btf, d, "test_float", NULL, 0, &t1, 4, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
498
ASSERT_OK(btf_dump_data(btf, d, "test_float", NULL, 0, &t2, 4, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
500
ASSERT_OK(btf_dump_data(btf, d, "test_float", NULL, 0, &t3, 4, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
504
ASSERT_OK(btf_dump_data(btf, d, "test_double", NULL, 0, &t4, 8, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
506
ASSERT_OK(btf_dump_data(btf, d, "test_double", NULL, 0, &t5, 8, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
508
ASSERT_OK(btf_dump_data(btf, d, "test_double", NULL, 0, &t6, 8, str,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
513
str, "(test_long_double)9.876543"),
tools/testing/selftests/bpf/prog_tests/btf_dump.c
516
str, "(test_long_double)-9.876543"),
tools/testing/selftests/bpf/prog_tests/btf_dump.c
519
str, "(test_long_double)0.000000"),
tools/testing/selftests/bpf/prog_tests/btf_dump.c
524
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
527
TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, char, BTF_F_COMPACT, 100);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
528
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
530
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, 0, "(char)100", 100);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
532
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
534
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
536
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, BTF_F_COMPACT | BTF_F_ZERO,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
538
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, BTF_F_COMPACT | BTF_F_NONAME | BTF_F_ZERO,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
540
TEST_BTF_DUMP_DATA(btf, d, NULL, str, char, 0, "(char)0", 0);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
542
TEST_BTF_DUMP_DATA_OVER(btf, d, NULL, str, char, sizeof(char)-1, "", 100);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
546
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
549
TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, uint64_t, BTF_F_COMPACT, 100);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
550
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
552
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64, 0, "(u64)1", 1);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
554
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64, BTF_F_COMPACT, "(u64)0", 0);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
555
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
557
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64, BTF_F_COMPACT | BTF_F_ZERO,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
559
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
562
TEST_BTF_DUMP_DATA(btf, d, NULL, str, u64, 0, "(u64)0", 0);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
565
TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, atomic_t, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
567
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
569
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
575
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT, "(atomic_t){}",
tools/testing/selftests/bpf/prog_tests/btf_dump.c
577
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT | BTF_F_NONAME,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
579
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
583
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT | BTF_F_ZERO,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
586
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
589
TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_ZERO,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
596
TEST_BTF_DUMP_DATA_OVER(btf, d, NULL, str, atomic_t, sizeof(atomic_t)-1,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
601
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
604
TEST_BTF_DUMP_DATA_C(btf, d, "enum", str, enum bpf_cmd, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
606
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
608
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
612
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
615
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
618
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
622
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
625
TEST_BTF_DUMP_DATA_C(btf, d, "enum", str, enum bpf_cmd, BTF_F_COMPACT, 2000);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
626
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
629
TEST_BTF_DUMP_DATA(btf, d, "enum", str, enum bpf_cmd, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
632
TEST_BTF_DUMP_DATA_OVER(btf, d, "enum", str, enum bpf_cmd,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
637
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
652
TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
654
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
658
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
664
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
668
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
673
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
676
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
680
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
684
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
688
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct btf_enum,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
697
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct list_head, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
700
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct list_head, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
706
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct list_head, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
709
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct list_head, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
718
str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/btf_dump.c
728
ASSERT_STRNEQ(str, cmpstr, strlen(cmpstr), "file_operations");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
732
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_prog_info, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
735
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_prog_info,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
739
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_prog_info, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
749
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_prog_info, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
753
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_prog_info, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
758
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct __sk_buff, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
761
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct __sk_buff,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
765
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct __sk_buff, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
777
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct __sk_buff, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
780
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct __sk_buff, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
793
TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct bpf_insn, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
795
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
800
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
811
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
819
str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/btf_dump.c
826
ASSERT_NEQ(strstr(str, "FS_CONTEXT_FOR_MOUNT"), NULL,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
831
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_sock_ops, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
836
TEST_BTF_DUMP_DATA(btf, d, "union", str, union bpf_iter_link_info, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
847
str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/btf_dump.c
861
TEST_BTF_DUMP_DATA_OVER(btf, d, "struct", str, struct bpf_sock_ops,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
865
TEST_BTF_DUMP_DATA_OVER(btf, d, "struct", str, struct bpf_sock_ops,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
872
char *str)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
875
TEST_BTF_DUMP_VAR(btf, d, NULL, str, "cpu_number", int, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
878
TEST_BTF_DUMP_VAR(btf, d, NULL, str, "bpf_bprintf_nest_level", int, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
885
char *str;
tools/testing/selftests/bpf/prog_tests/btf_dump.c
897
ctx->str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/btf_dump.c
904
if (!ASSERT_STREQ(ctx->str, expected_val, "ensure expected/actual match"))
tools/testing/selftests/bpf/prog_tests/btf_dump.c
965
char str[STRSIZE];
tools/testing/selftests/bpf/prog_tests/btf_dump.c
974
d = btf_dump__new(t.btf, btf_dump_snprintf, str, NULL);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
988
ctx.str = str;
tools/testing/selftests/bpf/prog_tests/btf_dump.c
998
static void test_btf_datasec(struct btf *btf, struct btf_dump *d, char *str,
tools/testing/selftests/bpf/prog_tests/btf_field_iter.c
143
const char *str = btf__str_by_offset(btf, *next_str);
tools/testing/selftests/bpf/prog_tests/btf_field_iter.c
145
if (!ASSERT_OK(strcmp(fields[id].strs[str_idx], str), "field_str_match"))
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
216
static char *skip_space(char *str)
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
218
while (*str && isspace(*str))
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
219
++str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
220
return str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
223
static char *skip_space_and_semi(char *str)
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
225
while (*str && (isspace(*str) || *str == ';'))
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
226
++str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
227
return str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
230
static char *match_str(char *str, char *prefix)
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
232
while (*str && *prefix && *str == *prefix) {
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
233
++str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
238
return str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
241
static char *match_number(char *str, int num)
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
244
int snum = strtol(str, &next, 10);
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
246
if (next - str == 0 || num != snum)
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
363
static u32 max_line_len(char *str)
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
366
char *next = str;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
369
next = strchr(str, '\n');
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
371
max_line = max_t(u32, max_line, (next - str));
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
372
str = next + 1;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
374
max_line = max_t(u32, max_line, strlen(str));
tools/testing/selftests/bpf/prog_tests/fd_array.c
27
__u32 str;
tools/testing/selftests/bpf/prog_tests/fd_array.c
34
.str_off = offsetof(struct btf_blob, str) - offsetof(struct btf_blob, types),
tools/testing/selftests/bpf/prog_tests/fd_array.c
35
.str_len = sizeof(raw_btf.str),
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
258
char str[INET6_ADDRSTRLEN];
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
280
inet_ntop(family, addr, str, sizeof(str));
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
281
PRINT_FAIL("expected %s actual %s ", expected_str, str);
tools/testing/selftests/bpf/prog_tests/global_data.c
43
char str[32];
tools/testing/selftests/bpf/prog_tests/global_data.c
52
char str[32];
tools/testing/selftests/bpf/prog_tests/global_data.c
62
err = bpf_map_lookup_elem(map_fd, &tests[i].key, str);
tools/testing/selftests/bpf/prog_tests/global_data.c
63
CHECK(err || memcmp(str, tests[i].str, sizeof(str)),
tools/testing/selftests/bpf/prog_tests/global_data.c
65
err, str, tests[i].str);
tools/testing/selftests/bpf/prog_tests/probe_read_user_str.c
17
memcpy(buf, str, len);
tools/testing/selftests/bpf/prog_tests/probe_read_user_str.c
31
err = memcmp(skel->bss->buf, str, len);
tools/testing/selftests/bpf/prog_tests/probe_read_user_str.c
9
static int test_one_str(struct test_probe_read_user_str *skel, const char *str,
tools/testing/selftests/bpf/prog_tests/reg_bounds.c
1061
#define str_has_pfx(str, pfx) (strncmp(str, pfx, strlen(pfx)) == 0)
tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
69
const char *str;
tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
85
str = btf__name_by_offset(btf, type->name_off);
tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
86
if (!str) {
tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
91
if (!strcmp(str, test_symbols[i].name))
tools/testing/selftests/bpf/prog_tests/task_work_stress.c
31
static int get_env_int(const char *str, int def)
tools/testing/selftests/bpf/prog_tests/task_work_stress.c
33
const char *s = getenv(str);
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
27
size_t nr = sizeof(skel->bss->str);
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
28
char *str = skel->bss->str;
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
33
memcpy(str, skel->rodata->target, nr);
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
35
str[i] += delta;
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
40
str[i] -= delta;
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
66
skel->bss->str[0] = '\0';
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
71
memcpy(skel->bss->str, skel->rodata->target, sizeof(skel->bss->str));
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
76
memcpy(skel->bss->str, skel->rodata->target, sizeof(skel->bss->str));
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
77
skel->bss->str[sizeof(skel->bss->str) - 1] = 'A';
tools/testing/selftests/bpf/prog_tests/test_veristat.c
7
#define __CHECK_STR(str, name) \
tools/testing/selftests/bpf/prog_tests/test_veristat.c
9
if (!ASSERT_HAS_SUBSTR(fix->output, (str), (name))) \
tools/testing/selftests/bpf/prog_tests/trace_printk.c
10
static void trace_pipe_cb(const char *str, void *data)
tools/testing/selftests/bpf/prog_tests/trace_printk.c
12
if (strstr(str, SEARCHMSG) != NULL)
tools/testing/selftests/bpf/prog_tests/trace_vprintk.c
10
static void trace_pipe_cb(const char *str, void *data)
tools/testing/selftests/bpf/prog_tests/trace_vprintk.c
12
if (strstr(str, SEARCHMSG) != NULL)
tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c
39
static bool expect_str(char *buf, size_t size, const char *str, const char *name)
tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c
46
ok = size == strlen(str) && !memcmp(buf, str, size);
tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c
49
escape_str(escbuf_expected, str, strlen(str));
tools/testing/selftests/bpf/progs/arena_strsearch.c
15
char const __arena *pat, *str;
tools/testing/selftests/bpf/progs/arena_strsearch.c
19
static bool test(char const __arena *pat, char const __arena *str, bool expected)
tools/testing/selftests/bpf/progs/arena_strsearch.c
21
bool match = glob_match(pat, str);
tools/testing/selftests/bpf/progs/bpf_misc.h
10
#define EXPAND_QUOTE(str) QUOTE(str)
tools/testing/selftests/bpf/progs/bpf_misc.h
9
#define QUOTE(str) #str
tools/testing/selftests/bpf/progs/iters.c
1554
static __noinline bool nest_2(char *str)
tools/testing/selftests/bpf/progs/iters.c
1559
if (str[0] == 't')
tools/testing/selftests/bpf/progs/iters.c
1561
if (str[1] == 'e')
tools/testing/selftests/bpf/progs/iters.c
1563
if (str[2] == 's')
tools/testing/selftests/bpf/progs/iters.c
1565
if (str[3] == 't')
tools/testing/selftests/bpf/progs/netif_receive_skb.c
100
char *str;
tools/testing/selftests/bpf/progs/netif_receive_skb.c
103
str = bpf_map_lookup_elem(&strdata, &key);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
104
if (!str)
tools/testing/selftests/bpf/progs/netif_receive_skb.c
112
ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
120
__ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
130
TEST_BTF_C(str, int, 0, 1234);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
131
TEST_BTF(str, int, BTF_F_NONAME, "1234", 1234);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
133
TEST_BTF(str, int, 0, "(int)0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
134
TEST_BTF(str, int, BTF_F_NONAME, "0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
135
TEST_BTF(str, int, BTF_F_ZERO, "(int)0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
136
TEST_BTF(str, int, BTF_F_NONAME | BTF_F_ZERO, "0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
137
TEST_BTF_C(str, int, 0, -4567);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
138
TEST_BTF(str, int, BTF_F_NONAME, "-4567", -4567);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
141
TEST_BTF_C(str, char, 0, 100);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
142
TEST_BTF(str, char, BTF_F_NONAME, "100", 100);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
144
TEST_BTF(str, char, 0, "(char)0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
145
TEST_BTF(str, char, BTF_F_NONAME, "0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
146
TEST_BTF(str, char, BTF_F_ZERO, "(char)0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
147
TEST_BTF(str, char, BTF_F_NONAME | BTF_F_ZERO, "0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
150
TEST_BTF_C(str, uint64_t, 0, 100);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
151
TEST_BTF(str, u64, BTF_F_NONAME, "1", 1);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
153
TEST_BTF(str, u64, 0, "(u64)0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
154
TEST_BTF(str, u64, BTF_F_NONAME, "0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
155
TEST_BTF(str, u64, BTF_F_ZERO, "(u64)0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
156
TEST_BTF(str, u64, BTF_F_NONAME|BTF_F_ZERO, "0", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
159
TEST_BTF_C(str, atomic_t, 0, {.counter = (int)1,});
tools/testing/selftests/bpf/progs/netif_receive_skb.c
160
TEST_BTF(str, atomic_t, BTF_F_NONAME, "{1,}", {.counter = 1,});
tools/testing/selftests/bpf/progs/netif_receive_skb.c
162
TEST_BTF(str, atomic_t, 0, "(atomic_t){}", {.counter = 0,});
tools/testing/selftests/bpf/progs/netif_receive_skb.c
163
TEST_BTF(str, atomic_t, BTF_F_NONAME, "{}", {.counter = 0,});
tools/testing/selftests/bpf/progs/netif_receive_skb.c
164
TEST_BTF(str, atomic_t, BTF_F_ZERO, "(atomic_t){.counter = (int)0,}",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
166
TEST_BTF(str, atomic_t, BTF_F_NONAME|BTF_F_ZERO,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
170
TEST_BTF_C(str, enum bpf_cmd, 0, BPF_MAP_CREATE);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
171
TEST_BTF(str, enum bpf_cmd, 0, "(enum bpf_cmd)BPF_MAP_CREATE", 0);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
172
TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME, "BPF_MAP_CREATE",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
174
TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME|BTF_F_ZERO,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
177
TEST_BTF(str, enum bpf_cmd, BTF_F_ZERO, "(enum bpf_cmd)BPF_MAP_CREATE",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
179
TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME|BTF_F_ZERO,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
181
TEST_BTF_C(str, enum bpf_cmd, 0, 2000);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
182
TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME, "2000", 2000);
tools/testing/selftests/bpf/progs/netif_receive_skb.c
185
TEST_BTF_C(str, struct btf_enum, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
187
TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
189
TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
191
TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
194
TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
196
TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}",
tools/testing/selftests/bpf/progs/netif_receive_skb.c
198
TEST_BTF(str, struct btf_enum, BTF_F_ZERO,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
203
TEST_BTF(str, struct list_head, BTF_F_PTR_RAW,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
207
TEST_BTF(str, struct list_head, BTF_F_PTR_RAW,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
212
TEST_BTF(str, struct bpf_prog_info, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
215
TEST_BTF(str, struct bpf_prog_info, BTF_F_NONAME,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
219
TEST_BTF(str, struct bpf_prog_info, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
223
TEST_BTF(str, struct bpf_prog_info, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
228
TEST_BTF(str, struct __sk_buff, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
231
TEST_BTF(str, struct __sk_buff, BTF_F_NONAME,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
235
TEST_BTF(str, struct __sk_buff, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
240
TEST_BTF_C(str, struct bpf_insn, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
242
TEST_BTF(str, struct bpf_insn, BTF_F_NONAME, "{1,0x2,0x3,4,5,}",
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
13
__test(0) int test_strcmp_eq(void *ctx) { return bpf_strcmp(str, "hello world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
14
__test(1) int test_strcmp_neq(void *ctx) { return bpf_strcmp(str, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
15
__test(0) int test_strcasecmp_eq1(void *ctx) { return bpf_strcasecmp(str, "hello world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
16
__test(0) int test_strcasecmp_eq2(void *ctx) { return bpf_strcasecmp(str, "HELLO WORLD"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
17
__test(0) int test_strcasecmp_eq3(void *ctx) { return bpf_strcasecmp(str, "HELLO world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
18
__test(1) int test_strcasecmp_neq1(void *ctx) { return bpf_strcasecmp(str, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
19
__test(1) int test_strcasecmp_neq2(void *ctx) { return bpf_strcasecmp(str, "HELLO"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
20
__test(0) int test_strncasecmp_eq1(void *ctx) { return bpf_strncasecmp(str, "hello world", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
21
__test(0) int test_strncasecmp_eq2(void *ctx) { return bpf_strncasecmp(str, "HELLO WORLD", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
22
__test(0) int test_strncasecmp_eq3(void *ctx) { return bpf_strncasecmp(str, "HELLO world", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
23
__test(0) int test_strncasecmp_eq4(void *ctx) { return bpf_strncasecmp(str, "hello", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
24
__test(0) int test_strncasecmp_eq5(void *ctx) { return bpf_strncasecmp(str, "hello world!", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
25
__test(-1) int test_strncasecmp_neq1(void *ctx) { return bpf_strncasecmp(str, "hello!", 6); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
26
__test(1) int test_strncasecmp_neq2(void *ctx) { return bpf_strncasecmp(str, "abc", 3); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
27
__test(1) int test_strchr_found(void *ctx) { return bpf_strchr(str, 'e'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
28
__test(11) int test_strchr_null(void *ctx) { return bpf_strchr(str, '\0'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
29
__test(-ENOENT) int test_strchr_notfound(void *ctx) { return bpf_strchr(str, 'x'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
30
__test(1) int test_strchrnul_found(void *ctx) { return bpf_strchrnul(str, 'e'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
31
__test(11) int test_strchrnul_notfound(void *ctx) { return bpf_strchrnul(str, 'x'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
32
__test(1) int test_strnchr_found(void *ctx) { return bpf_strnchr(str, 5, 'e'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
33
__test(11) int test_strnchr_null(void *ctx) { return bpf_strnchr(str, 12, '\0'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
34
__test(-ENOENT) int test_strnchr_notfound(void *ctx) { return bpf_strnchr(str, 5, 'w'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
35
__test(9) int test_strrchr_found(void *ctx) { return bpf_strrchr(str, 'l'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
36
__test(11) int test_strrchr_null(void *ctx) { return bpf_strrchr(str, '\0'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
37
__test(-ENOENT) int test_strrchr_notfound(void *ctx) { return bpf_strrchr(str, 'x'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
38
__test(11) int test_strlen(void *ctx) { return bpf_strlen(str); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
39
__test(11) int test_strnlen(void *ctx) { return bpf_strnlen(str, 12); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
40
__test(5) int test_strspn(void *ctx) { return bpf_strspn(str, "ehlo"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
41
__test(2) int test_strcspn(void *ctx) { return bpf_strcspn(str, "lo"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
42
__test(6) int test_strstr_found(void *ctx) { return bpf_strstr(str, "world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
43
__test(6) int test_strcasestr_found(void *ctx) { return bpf_strcasestr(str, "woRLD"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
44
__test(-ENOENT) int test_strstr_notfound(void *ctx) { return bpf_strstr(str, "hi"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
45
__test(-ENOENT) int test_strcasestr_notfound(void *ctx) { return bpf_strcasestr(str, "hi"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
46
__test(0) int test_strstr_empty(void *ctx) { return bpf_strstr(str, ""); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
47
__test(0) int test_strcasestr_empty(void *ctx) { return bpf_strcasestr(str, ""); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
49
__test(0) int test_strnstr_found2(void *ctx) { return bpf_strnstr(str, "hello", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
50
__test(0) int test_strnstr_found3(void *ctx) { return bpf_strnstr(str, "hello", 6); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
51
__test(-ENOENT) int test_strnstr_notfound1(void *ctx) { return bpf_strnstr(str, "hi", 10); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
52
__test(-ENOENT) int test_strnstr_notfound2(void *ctx) { return bpf_strnstr(str, "hello", 4); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
54
__test(0) int test_strnstr_empty(void *ctx) { return bpf_strnstr(str, "", 1); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
56
__test(0) int test_strncasestr_found2(void *ctx) { return bpf_strncasestr(str, "heLLO", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
57
__test(0) int test_strncasestr_found3(void *ctx) { return bpf_strncasestr(str, "heLLO", 6); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
58
__test(-ENOENT) int test_strncasestr_notfound1(void *ctx) { return bpf_strncasestr(str, "hi", 10); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
59
__test(-ENOENT) int test_strncasestr_notfound2(void *ctx) { return bpf_strncasestr(str, "hello", 4); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
61
__test(0) int test_strncasestr_empty(void *ctx) { return bpf_strncasestr(str, "", 1); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
8
char str[] = "hello world";
tools/testing/selftests/bpf/progs/strncmp_bench.c
15
char str[STRNCMP_STR_SZ];
tools/testing/selftests/bpf/progs/strncmp_bench.c
41
if (local_strncmp(str, cmp_str_len + 1, target_str) < 0)
tools/testing/selftests/bpf/progs/strncmp_bench.c
49
if (bpf_strncmp(str, cmp_str_len + 1, target) < 0)
tools/testing/selftests/bpf/progs/strncmp_test.c
12
char str[STRNCMP_STR_SZ];
tools/testing/selftests/bpf/progs/strncmp_test.c
28
cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, target);
tools/testing/selftests/bpf/progs/strncmp_test.c
36
cmp_ret = bpf_strncmp(str, no_const_str_size, target);
tools/testing/selftests/bpf/progs/strncmp_test.c
44
cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, writable_target);
tools/testing/selftests/bpf/progs/strncmp_test.c
52
cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, no_str_target);
tools/testing/selftests/bpf/progs/syscall.c
73
__u32 str;
tools/testing/selftests/bpf/progs/syscall.c
80
.str_off = offsetof(struct btf_blob, str) - offsetof(struct btf_blob, types),
tools/testing/selftests/bpf/progs/syscall.c
81
.str_len = sizeof(raw_btf.str),
tools/testing/selftests/bpf/test_loader.c
14
#define str_has_pfx(str, pfx) \
tools/testing/selftests/bpf/test_loader.c
15
(strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0)
tools/testing/selftests/bpf/test_loader.c
273
static int parse_int(const char *str, int *val, const char *name)
tools/testing/selftests/bpf/test_loader.c
279
if (str_has_pfx(str, "0x"))
tools/testing/selftests/bpf/test_loader.c
280
tmp = strtol(str + 2, &end, 16);
tools/testing/selftests/bpf/test_loader.c
282
tmp = strtol(str, &end, 10);
tools/testing/selftests/bpf/test_loader.c
284
PRINT_FAIL("failed to parse %s from '%s'\n", name, str);
tools/testing/selftests/bpf/test_loader.c
291
static int parse_caps(const char *str, __u64 *val, const char *name)
tools/testing/selftests/bpf/test_loader.c
296
char *str_cpy = strdup(str);
tools/testing/selftests/bpf/test_loader.c
322
static int parse_retval(const char *str, int *val, const char *name)
tools/testing/selftests/bpf/test_loader.c
330
if (strcmp(str, "_INT_MIN") == 0) {
tools/testing/selftests/bpf/test_loader.c
335
return parse_int(str, val, name);
tools/testing/selftests/bpf/test_progs.c
135
static bool glob_match(const char *str, const char *pat)
tools/testing/selftests/bpf/test_progs.c
137
while (*str && *pat && *pat != '*') {
tools/testing/selftests/bpf/test_progs.c
138
if (*str != *pat)
tools/testing/selftests/bpf/test_progs.c
140
str++;
tools/testing/selftests/bpf/test_progs.c
149
while (*str)
tools/testing/selftests/bpf/test_progs.c
150
if (glob_match(str++, pat))
tools/testing/selftests/bpf/test_progs.c
153
return !*str && !*pat;
tools/testing/selftests/bpf/test_progs.h
338
#define ASSERT_HAS_SUBSTR(str, substr, name) ({ \
tools/testing/selftests/bpf/test_progs.h
340
const char *___str = str; \
tools/testing/selftests/bpf/trace_helpers.c
481
int read_trace_pipe_iter(void (*cb)(const char *str, void *data), void *data, int iter)
tools/testing/selftests/bpf/trace_helpers.c
511
static void trace_pipe_cb(const char *str, void *data)
tools/testing/selftests/bpf/trace_helpers.c
513
printf("%s", str);
tools/testing/selftests/bpf/trace_helpers.h
55
int read_trace_pipe_iter(void (*cb)(const char *str, void *data),
tools/testing/selftests/bpf/veristat.c
2495
const char **str, long *val)
tools/testing/selftests/bpf/veristat.c
2499
*str = s ? s->file_name : "N/A";
tools/testing/selftests/bpf/veristat.c
2502
*str = s ? s->prog_name : "N/A";
tools/testing/selftests/bpf/veristat.c
2506
*str = "N/A";
tools/testing/selftests/bpf/veristat.c
2508
*str = s->stats[VERDICT] ? "success" : "failure";
tools/testing/selftests/bpf/veristat.c
2512
*str = "N/A";
tools/testing/selftests/bpf/veristat.c
2514
*str = libbpf_bpf_attach_type_str(s->stats[ATTACH_TYPE]) ?: "N/A";
tools/testing/selftests/bpf/veristat.c
2518
*str = "N/A";
tools/testing/selftests/bpf/veristat.c
2520
*str = libbpf_bpf_prog_type_str(s->stats[PROG_TYPE]) ?: "N/A";
tools/testing/selftests/bpf/veristat.c
2547
const char *str = NULL;
tools/testing/selftests/bpf/veristat.c
2550
prepare_value(s, id, &str, &val);
tools/testing/selftests/bpf/veristat.c
2554
if (str)
tools/testing/selftests/bpf/veristat.c
2555
len = snprintf(NULL, 0, "%s", str);
tools/testing/selftests/bpf/veristat.c
2562
if (str)
tools/testing/selftests/bpf/veristat.c
2563
printf("%s%-*s", i == 0 ? "" : COLUMN_SEP, *max_len, str);
tools/testing/selftests/bpf/veristat.c
2570
if (str)
tools/testing/selftests/bpf/veristat.c
2571
printf("%s%s", i == 0 ? "" : ",", str);
tools/testing/selftests/bpf/veristat.c
2587
static int parse_stat_value(const char *str, enum stat_id id, struct verif_stats *st)
tools/testing/selftests/bpf/veristat.c
2591
st->file_name = strdup(str);
tools/testing/selftests/bpf/veristat.c
2596
st->prog_name = strdup(str);
tools/testing/selftests/bpf/veristat.c
2601
if (strcmp(str, "success") == 0) {
tools/testing/selftests/bpf/veristat.c
2603
} else if (strcmp(str, "failure") == 0) {
tools/testing/selftests/bpf/veristat.c
2606
fprintf(stderr, "Unrecognized verification verdict '%s'\n", str);
tools/testing/selftests/bpf/veristat.c
2623
if (sscanf(str, "%ld %n", &val, &n) != 1 || n != strlen(str)) {
tools/testing/selftests/bpf/veristat.c
2625
fprintf(stderr, "Failed to parse '%s' as integer\n", str);
tools/testing/selftests/bpf/veristat.c
2637
if (strcmp(type, str) == 0) {
tools/testing/selftests/bpf/veristat.c
2645
fprintf(stderr, "Unrecognized prog type %s\n", str);
tools/testing/selftests/bpf/veristat.c
2655
if (strcmp(type, str) == 0) {
tools/testing/selftests/bpf/veristat.c
2663
fprintf(stderr, "Unrecognized attach type %s\n", str);
tools/testing/selftests/bpf/veristat.c
2966
const char *str = NULL;
tools/testing/selftests/bpf/veristat.c
2969
fetch_join_stat_value(stats, f->stat_id, f->stat_var, &str, &value);
tools/testing/selftests/bpf/veristat.c
311
static int append_filter(struct filter **filters, int *cnt, const char *str);
tools/testing/selftests/bpf/veristat.c
463
static bool glob_matches(const char *str, const char *pat)
tools/testing/selftests/bpf/veristat.c
465
while (*str && *pat && *pat != '*') {
tools/testing/selftests/bpf/veristat.c
466
if (*str != *pat)
tools/testing/selftests/bpf/veristat.c
468
str++;
tools/testing/selftests/bpf/veristat.c
477
while (*str)
tools/testing/selftests/bpf/veristat.c
478
if (glob_matches(str++, pat))
tools/testing/selftests/bpf/veristat.c
481
return !*str && !*pat;
tools/testing/selftests/bpf/veristat.c
589
static int append_filter(struct filter **filters, int *cnt, const char *str)
tools/testing/selftests/bpf/veristat.c
618
const char *end = str;
tools/testing/selftests/bpf/veristat.c
623
p = strstr(str, op_str);
tools/testing/selftests/bpf/veristat.c
627
if (!parse_stat_id_var(str, p - str, &id, &var, &is_abs)) {
tools/testing/selftests/bpf/veristat.c
628
fprintf(stderr, "Unrecognized stat name in '%s'!\n", str);
tools/testing/selftests/bpf/veristat.c
632
fprintf(stderr, "Non-integer stat is specified in '%s'!\n", str);
tools/testing/selftests/bpf/veristat.c
657
fprintf(stderr, "Invalid integer value in '%s'!\n", str);
tools/testing/selftests/bpf/veristat.c
682
p = strchr(str, '/');
tools/testing/selftests/bpf/veristat.c
684
f->any_glob = strdup(str);
tools/testing/selftests/bpf/veristat.c
688
if (str != p) {
tools/testing/selftests/bpf/veristat.c
690
f->file_glob = strndup(str, p - str);
tools/testing/selftests/bpf/veristat.c
913
static char *rtrim(char *str)
tools/testing/selftests/bpf/veristat.c
917
for (i = strlen(str) - 1; i > 0; --i) {
tools/testing/selftests/bpf/veristat.c
918
if (!isspace(str[i]))
tools/testing/selftests/bpf/veristat.c
920
str[i] = '\0';
tools/testing/selftests/bpf/veristat.c
922
return str;
tools/testing/selftests/bpf/xdp_features.c
23
#define RED(str) "\033[0;31m" str "\033[0m"
tools/testing/selftests/bpf/xdp_features.c
24
#define GREEN(str) "\033[0;32m" str "\033[0m"
tools/testing/selftests/bpf/xdp_features.c
25
#define YELLOW(str) "\033[0;33m" str "\033[0m"
tools/testing/selftests/bpf/xskxceiver.c
175
const char *str =
tools/testing/selftests/bpf/xskxceiver.c
186
ksft_print_msg(str, basename(argv[0]));
tools/testing/selftests/drivers/net/hw/iou-zcrx.c
107
static int parse_address(const char *str, int port, struct sockaddr_in6 *sin6)
tools/testing/selftests/drivers/net/hw/iou-zcrx.c
114
ret = inet_pton(sin6->sin6_family, str, &sin6->sin6_addr);
tools/testing/selftests/drivers/net/hw/iou-zcrx.c
117
ret = inet_pton(AF_INET, str, &sin6->sin6_addr.s6_addr32[3]);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
791
static int parse_address(const char *str, int port, struct sockaddr_in6 *sin6)
tools/testing/selftests/drivers/net/hw/ncdevmem.c
798
ret = inet_pton(sin6->sin6_family, str, &sin6->sin6_addr);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
801
ret = inet_pton(AF_INET, str, &sin6->sin6_addr.s6_addr32[3]);
tools/testing/selftests/drivers/net/hw/toeplitz.c
483
static void parse_toeplitz_key(const char *str, int slen, unsigned char *key)
tools/testing/selftests/drivers/net/hw/toeplitz.c
492
ret = sscanf(str + off, "%hhx", &key[i]);
tools/testing/selftests/exec/null-argv.c
51
static char * const str[] = { "", NULL };
tools/testing/selftests/exec/null-argv.c
71
FORK(execve(argv[0], str, NULL));
tools/testing/selftests/filesystems/eventfd/eventfd_test.c
107
static inline void trim_newline(char *str)
tools/testing/selftests/filesystems/eventfd/eventfd_test.c
109
char *pos = strrchr(str, '\n');
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
1012
mnt_point = sm->str + sm->mnt_point;
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
753
mnt_point = sm->str + sm->mnt_point;
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
85
fs_type = sm->str + sm->fs_type;
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
87
mnt_root = sm->str + sm->mnt_root;
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
870
mnt_point = sm->str + sm->mnt_point;
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
89
mnt_point = sm->str + sm->mnt_point;
tools/testing/selftests/filesystems/statmount/statmount_test.c
398
if (strcmp(sm->str + sm->mnt_point, "/") != 0) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
400
sm->str + sm->mnt_point);
tools/testing/selftests/filesystems/statmount/statmount_test.c
427
mnt_root = sm->str + sm->mnt_root;
tools/testing/selftests/filesystems/statmount/statmount_test.c
460
fs_type = sm->str + sm->fs_type;
tools/testing/selftests/filesystems/statmount/statmount_test.c
543
statmount_opts = sm->str + sm->mnt_opts;
tools/testing/selftests/filesystems/statmount/statmount_test.c
592
if (!sm->str[i])
tools/testing/selftests/filesystems/statmount/statmount_test.c
740
if (strcmp(root, sm->str + sm->mnt_root) != 0) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
743
sm->str + sm->mnt_root, root);
tools/testing/selftests/filesystems/statmount/statmount_test.c
775
if (strcmp(subdir, sm->str + sm->mnt_point) != 0) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
777
"statmount mnt_point: %s != %s\n", sm->str + sm->mnt_point, subdir);
tools/testing/selftests/filesystems/statmount/statmount_test.c
781
if (strcmp(root, sm->str + sm->mnt_root) != 0) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
783
"statmount mnt_root: %s != %s\n", sm->str + sm->mnt_root, root);
tools/testing/selftests/filesystems/statmount/statmount_test.c
870
if (strcmp(sm->str + sm->mnt_root, root) != 0) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
873
sm->str + sm->mnt_root, root);
tools/testing/selftests/kvm/include/x86/processor.h
1139
#define TEST_ASSERT_MSR(cond, fmt, msr, str, args...) \
tools/testing/selftests/kvm/include/x86/processor.h
1142
TEST_ASSERT(cond, fmt, str, args); \
tools/testing/selftests/kvm/lib/guest_sprintf.c
101
APPEND_BUFFER_SAFE(str, end, '0');
tools/testing/selftests/kvm/lib/guest_sprintf.c
102
APPEND_BUFFER_SAFE(str, end, 'x');
tools/testing/selftests/kvm/lib/guest_sprintf.c
107
APPEND_BUFFER_SAFE(str, end, c);
tools/testing/selftests/kvm/lib/guest_sprintf.c
109
APPEND_BUFFER_SAFE(str, end, '0');
tools/testing/selftests/kvm/lib/guest_sprintf.c
111
APPEND_BUFFER_SAFE(str, end, tmp[i]);
tools/testing/selftests/kvm/lib/guest_sprintf.c
113
APPEND_BUFFER_SAFE(str, end, ' ');
tools/testing/selftests/kvm/lib/guest_sprintf.c
115
return str;
tools/testing/selftests/kvm/lib/guest_sprintf.c
120
char *str, *end;
tools/testing/selftests/kvm/lib/guest_sprintf.c
139
for (str = buf; *fmt; ++fmt) {
tools/testing/selftests/kvm/lib/guest_sprintf.c
141
APPEND_BUFFER_SAFE(str, end, *fmt);
tools/testing/selftests/kvm/lib/guest_sprintf.c
217
APPEND_BUFFER_SAFE(str, end, ' ');
tools/testing/selftests/kvm/lib/guest_sprintf.c
218
APPEND_BUFFER_SAFE(str, end,
tools/testing/selftests/kvm/lib/guest_sprintf.c
221
APPEND_BUFFER_SAFE(str, end, ' ');
tools/testing/selftests/kvm/lib/guest_sprintf.c
230
APPEND_BUFFER_SAFE(str, end, ' ');
tools/testing/selftests/kvm/lib/guest_sprintf.c
232
APPEND_BUFFER_SAFE(str, end, *s++);
tools/testing/selftests/kvm/lib/guest_sprintf.c
234
APPEND_BUFFER_SAFE(str, end, ' ');
tools/testing/selftests/kvm/lib/guest_sprintf.c
242
str = number(str, end,
tools/testing/selftests/kvm/lib/guest_sprintf.c
250
*ip = (str - buf);
tools/testing/selftests/kvm/lib/guest_sprintf.c
253
*ip = (str - buf);
tools/testing/selftests/kvm/lib/guest_sprintf.c
258
APPEND_BUFFER_SAFE(str, end, '%');
tools/testing/selftests/kvm/lib/guest_sprintf.c
279
APPEND_BUFFER_SAFE(str, end, '%');
tools/testing/selftests/kvm/lib/guest_sprintf.c
281
APPEND_BUFFER_SAFE(str, end, *fmt);
tools/testing/selftests/kvm/lib/guest_sprintf.c
296
str = number(str, end, num, base, field_width, precision, flags);
tools/testing/selftests/kvm/lib/guest_sprintf.c
299
GUEST_ASSERT(str < end);
tools/testing/selftests/kvm/lib/guest_sprintf.c
300
*str = '\0';
tools/testing/selftests/kvm/lib/guest_sprintf.c
301
return str - buf;
tools/testing/selftests/kvm/lib/guest_sprintf.c
43
static char *number(char *str, const char *end, long num, int base, int size,
tools/testing/selftests/kvm/lib/guest_sprintf.c
6
#define APPEND_BUFFER_SAFE(str, end, v) \
tools/testing/selftests/kvm/lib/guest_sprintf.c
8
GUEST_ASSERT(str < end); \
tools/testing/selftests/kvm/lib/guest_sprintf.c
9
*str++ = (v); \
tools/testing/selftests/kvm/lib/guest_sprintf.c
94
APPEND_BUFFER_SAFE(str, end, ' ');
tools/testing/selftests/kvm/lib/guest_sprintf.c
96
APPEND_BUFFER_SAFE(str, end, sign);
tools/testing/selftests/kvm/lib/guest_sprintf.c
99
APPEND_BUFFER_SAFE(str, end, '0');
tools/testing/selftests/kvm/lib/lru_gen_util.c
127
struct split_iterator it = { .str = my_line };
tools/testing/selftests/kvm/lib/lru_gen_util.c
133
TEST_ASSERT(it.str, "failed to copy input line");
tools/testing/selftests/kvm/lib/lru_gen_util.c
39
char *str;
tools/testing/selftests/kvm/lib/lru_gen_util.c
45
char *ret = strtok_r(it->str, " \t\n\r", &it->save);
tools/testing/selftests/kvm/lib/lru_gen_util.c
47
it->str = NULL;
tools/testing/selftests/kvm/lib/lru_gen_util.c
55
struct split_iterator it = { .str = line };
tools/testing/selftests/kvm/lib/lru_gen_util.c
86
struct split_iterator it = { .str = line };
tools/testing/selftests/kvm/lib/test_util.c
412
char *str;
tools/testing/selftests/kvm/lib/test_util.c
415
TEST_ASSERT(vasprintf(&str, fmt, ap) >= 0, "vasprintf() failed");
tools/testing/selftests/kvm/lib/test_util.c
418
return str;
tools/testing/selftests/kvm/x86/msrs_test.c
23
#define ____MSR_TEST(msr, str, val, rsvd, reset, feat, f2, is_kvm) \
tools/testing/selftests/kvm/x86/msrs_test.c
26
.name = str, \
tools/testing/selftests/kvm/x86/msrs_test.c
35
#define __MSR_TEST(msr, str, val, rsvd, reset, feat) \
tools/testing/selftests/kvm/x86/msrs_test.c
36
____MSR_TEST(msr, str, val, rsvd, reset, feat, feat, false)
tools/testing/selftests/landlock/fs_test.c
132
static bool fgrep(FILE *const inf, const char *const str)
tools/testing/selftests/landlock/fs_test.c
135
const int slen = strlen(str);
tools/testing/selftests/landlock/fs_test.c
140
if (strncmp(line, str, slen))
tools/testing/selftests/landlock/fs_test.c
151
char str[32];
tools/testing/selftests/landlock/fs_test.c
167
len = snprintf(str, sizeof(str), "nodev\t%s\n", filesystem);
tools/testing/selftests/landlock/fs_test.c
168
if (len >= sizeof(str))
tools/testing/selftests/landlock/fs_test.c
172
res = fgrep(inf, str);
tools/testing/selftests/mm/khugepaged.c
134
char *str, *end;
tools/testing/selftests/mm/khugepaged.c
187
str = strstr(buf, "DEVNAME=");
tools/testing/selftests/mm/khugepaged.c
188
if (!str) {
tools/testing/selftests/mm/khugepaged.c
192
str += 8;
tools/testing/selftests/mm/khugepaged.c
193
end = str;
tools/testing/selftests/mm/khugepaged.c
200
str) >= sizeof(finfo.dev_queue_read_ahead_path)) {
tools/testing/selftests/mm/pkey_sighandler_tests.c
401
char str[] = {'R', 'e', 's', 'u', 'm', 'i', 'n', 'g', ' ',
tools/testing/selftests/mm/pkey_sighandler_tests.c
423
syscall_raw(SYS_write, 1, (long) str, sizeof(str) - 1, 0, 0, 0);
tools/testing/selftests/mm/protection_keys.c
64
static void cat_into_file(char *str, char *file)
tools/testing/selftests/mm/protection_keys.c
69
dprintf2("%s(): writing '%s' to '%s'\n", __func__, str, file);
tools/testing/selftests/mm/protection_keys.c
75
fprintf(stderr, "error opening '%s'\n", str);
tools/testing/selftests/mm/protection_keys.c
80
ret = write(fd, str, strlen(str));
tools/testing/selftests/mm/protection_keys.c
81
if (ret != strlen(str)) {
tools/testing/selftests/mm/protection_keys.c
83
fprintf(stderr, "filename: '%s' str: '%s'\n", file, str);
tools/testing/selftests/net/af_unix/so_peek_off.c
61
#define sendeq(fd, str, flags) \
tools/testing/selftests/net/af_unix/so_peek_off.c
63
int bytes, len = strlen(str); \
tools/testing/selftests/net/af_unix/so_peek_off.c
65
bytes = send(fd, str, len, flags); \
tools/testing/selftests/net/af_unix/so_peek_off.c
69
#define recveq(fd, str, buflen, flags) \
tools/testing/selftests/net/af_unix/so_peek_off.c
76
ASSERT_STREQ(str, buf); \
tools/testing/selftests/net/lib/csum.c
399
static void eth_str_to_addr(const char *str, unsigned char *eth)
tools/testing/selftests/net/lib/csum.c
401
if (sscanf(str, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
tools/testing/selftests/net/lib/csum.c
403
error(1, 0, "cannot parse mac addr %s", str);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1000
inet_ntop(AF_INET6, RTA_DATA(attrs), str, sizeof(str));
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1001
printf("%s", str);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1428
char *tok, *str;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1434
for (str = argv[arg]; (tok = strtok(str, ","));
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1435
str = NULL) {
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
822
char *tok, *str;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
829
for (str = argv[arg]; (tok = strtok(str, ","));
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
830
str = NULL) {
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
978
char str[1024];
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
991
inet_ntop(AF_INET, RTA_DATA(attrs), str, sizeof(str));
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
992
printf("%s", str);
tools/testing/selftests/net/netfilter/conntrack_reverse_clash.c
39
char str[INET_ADDRSTRLEN];
tools/testing/selftests/net/netfilter/conntrack_reverse_clash.c
41
inet_ntop(AF_INET, &sin->sin_addr, str, sizeof(str));
tools/testing/selftests/net/netfilter/conntrack_reverse_clash.c
43
fprintf(stderr, "Port number changed, wanted %d got %d from %s\n", want, got, str);
tools/testing/selftests/net/netlink-dumps.c
31
const char *str;
tools/testing/selftests/net/netlink-dumps.c
79
ea->str = ynl_attr_get_str(attr);
tools/testing/selftests/net/nettest.c
628
static int str_to_uint(const char *str, int min, int max, unsigned int *value)
tools/testing/selftests/net/nettest.c
634
number = (unsigned int) strtoul(str, &end, 0);
tools/testing/selftests/net/nettest.c
639
if (((*end == '\0') || (*end == '\n')) && (end != str) &&
tools/testing/selftests/net/nettest.c
766
char *str, *dev, *sep;
tools/testing/selftests/net/nettest.c
773
str = strdup(_str);
tools/testing/selftests/net/nettest.c
774
if (!str)
tools/testing/selftests/net/nettest.c
809
sep = strchr(str, '/');
tools/testing/selftests/net/nettest.c
830
if (str) {
tools/testing/selftests/net/nettest.c
831
if (inet_pton(AF_INET, str, in) == 0) {
tools/testing/selftests/net/nettest.c
842
dev = strchr(str, '%');
tools/testing/selftests/net/nettest.c
849
if (str) {
tools/testing/selftests/net/nettest.c
850
if (inet_pton(AF_INET6, str, in6) == 0) {
tools/testing/selftests/net/nettest.c
874
free(str);
tools/testing/selftests/net/tcp_port_share.c
147
ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
156
ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
159
ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
168
ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
176
ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
179
ASSERT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str);
tools/testing/selftests/net/tcp_port_share.c
186
EXPECT_EQ(connect(c2, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
209
ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
218
ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
221
ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
229
ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
237
ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
247
ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
250
EXPECT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str);
tools/testing/selftests/net/tcp_port_share.c
26
char str[INET6_ADDRSTRLEN + __builtin_strlen("[]:65535") + 1];
tools/testing/selftests/net/tcp_port_share.c
81
snprintf(addr->str, sizeof(addr->str), fmt, ip, port);
tools/testing/selftests/net/tfo.c
22
static int parse_address(const char *str, int port, struct sockaddr_in6 *sin6)
tools/testing/selftests/net/tfo.c
29
ret = inet_pton(sin6->sin6_family, str, &sin6->sin6_addr);
tools/testing/selftests/net/tfo.c
32
ret = inet_pton(AF_INET, str, &sin6->sin6_addr.s6_addr32[3]);
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
157
static inline void trim_newline(char *str)
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
159
char *pos = strrchr(str, '\n');
tools/testing/selftests/pidfd/pidfd_test.c
440
execl("/bin/sleep", "sleep", str(CHILD_THREAD_MIN_WAIT), (char *)NULL);
tools/testing/selftests/powerpc/copyloops/exc_validate.c
123
return test_harness(test_copy_exception, str(COPY_LOOP));
tools/testing/selftests/powerpc/copyloops/validate.c
112
return test_harness(test_copy_loop, str(COPY_LOOP));
tools/testing/selftests/powerpc/dexcr/dexcr.h
26
str(.long (0x7C0005A4 | PPC_RAW_HASH_ARGS(b, i, a));)
tools/testing/selftests/powerpc/dexcr/dexcr.h
28
str(.long (0x7C0005E4 | PPC_RAW_HASH_ARGS(b, i, a));)
tools/testing/selftests/powerpc/dscr/dscr_user_test.c
21
static int check_dscr(char *str)
tools/testing/selftests/powerpc/dscr/dscr_user_test.c
29
str, cur_dscr, cur_dscr_usr);
tools/testing/selftests/powerpc/include/instructions.h
16
asm volatile(str(COPY(0, %0, 0))";"
tools/testing/selftests/powerpc/include/instructions.h
25
asm volatile(str(COPY(0, %0, 1))";"
tools/testing/selftests/powerpc/include/instructions.h
42
asm volatile(str(PASTE(0, %1, 0, 0))";"
tools/testing/selftests/powerpc/include/instructions.h
55
asm volatile(str(PASTE(0, %1, 1, 1))";"
tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
56
printf(str(_reg) " corrupted! Expected 0x%lx != 0x%lx\n", _reg##_orig, \
tools/testing/selftests/powerpc/nx-gzip/include/nx_dbg.h
92
uint64_t str_to_num(char *str);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
124
memset(lc.str, 'x', ARRAY_SIZE(lc.str));
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
157
struct papr_location_code lc = { .str = "", };
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
180
struct papr_location_code lc = { .str = "", };
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
245
snprintf(lc->str, sizeof(lc->str),
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
32
struct papr_location_code lc = { .str = "", };
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
71
struct papr_location_code lc = { .str = "", };
tools/testing/selftests/powerpc/pmu/ebb/trace.c
120
int trace_log_string(struct trace_buffer *tb, char *str)
tools/testing/selftests/powerpc/pmu/ebb/trace.c
126
len = strlen(str);
tools/testing/selftests/powerpc/pmu/ebb/trace.c
135
memcpy(p, str, len);
tools/testing/selftests/powerpc/pmu/ebb/trace.c
226
char *str;
tools/testing/selftests/powerpc/pmu/ebb/trace.c
228
str = (char *)e->data;
tools/testing/selftests/powerpc/pmu/ebb/trace.c
229
puts(str);
tools/testing/selftests/powerpc/pmu/ebb/trace.h
35
int trace_log_string(struct trace_buffer *tb, char *str);
tools/testing/selftests/resctrl/resctrl.h
178
char *fgrep(FILE *inf, const char *str);
tools/testing/selftests/resctrl/resctrlfs.c
802
char *fgrep(FILE *inf, const char *str)
tools/testing/selftests/resctrl/resctrlfs.c
805
int slen = strlen(str);
tools/testing/selftests/resctrl/resctrlfs.c
810
if (strncmp(line, str, slen))
tools/testing/selftests/ring-buffer/map_test.c
41
char *str;
tools/testing/selftests/ring-buffer/map_test.c
44
if (asprintf(&str, "%d", value) < 0)
tools/testing/selftests/ring-buffer/map_test.c
47
ret = __tracefs_write(path, str);
tools/testing/selftests/ring-buffer/map_test.c
49
free(str);
tools/testing/selftests/sgx/sigstruct.c
138
char str[256];
tools/testing/selftests/sgx/sigstruct.c
146
ERR_error_string_n(err, str, sizeof(str));
tools/testing/selftests/sgx/sigstruct.c
147
fprintf(stderr, "crypto: %s: %s:%d\n", str, filename, line);
tools/testing/selftests/vfio/lib/libvfio.c
12
static bool is_bdf(const char *str)
tools/testing/selftests/vfio/lib/libvfio.c
17
count = sscanf(str, "%4x:%2x:%2x.%2x%n", &s, &b, &d, &f, &length);
tools/testing/selftests/vfio/lib/libvfio.c
18
return count == 4 && length == strlen(str);
tools/testing/vsock/control.c
111
void control_writeln(const char *str)
tools/testing/vsock/control.c
113
ssize_t len = strlen(str);
tools/testing/vsock/control.c
119
ret = send(control_fd, str, len, MSG_MORE);
tools/testing/vsock/control.c
143
char str[32];
tools/testing/vsock/control.c
145
if (snprintf(str, sizeof(str), "%lu", value) >= sizeof(str)) {
tools/testing/vsock/control.c
150
control_writeln(str);
tools/testing/vsock/control.c
156
char *str;
tools/testing/vsock/control.c
158
str = control_readln();
tools/testing/vsock/control.c
160
if (!str)
tools/testing/vsock/control.c
163
value = strtoul(str, NULL, 10);
tools/testing/vsock/control.c
164
free(str);
tools/testing/vsock/control.c
228
void control_expectln(const char *str)
tools/testing/vsock/control.c
234
control_cmpln(line, str, true);
tools/testing/vsock/control.c
239
bool control_cmpln(char *line, const char *str, bool fail)
tools/testing/vsock/control.c
241
if (strcmp(str, line) == 0)
tools/testing/vsock/control.c
246
str, line);
tools/testing/vsock/control.h
10
void control_writeln(const char *str);
tools/testing/vsock/control.h
13
void control_expectln(const char *str);
tools/testing/vsock/control.h
14
bool control_cmpln(char *line, const char *str, bool fail);
tools/testing/vsock/util.c
42
static unsigned int parse_uint(const char *str, const char *err_str)
tools/testing/vsock/util.c
48
n = strtoul(str, &endptr, 10);
tools/testing/vsock/util.c
50
fprintf(stderr, "malformed %s \"%s\"\n", err_str, str);
tools/testing/vsock/util.c
57
unsigned int parse_cid(const char *str)
tools/testing/vsock/util.c
59
return parse_uint(str, "CID");
tools/testing/vsock/util.c
63
unsigned int parse_port(const char *str)
tools/testing/vsock/util.c
65
return parse_uint(str, "port");
tools/testing/vsock/util.h
72
unsigned int parse_cid(const char *str);
tools/testing/vsock/util.h
73
unsigned int parse_port(const char *str);
tools/thermal/tmon/sysfs.c
76
static int sysfs_get_string(char *path, char *filename, char *str)
tools/thermal/tmon/sysfs.c
89
ret = fscanf(fd, "%256s", str);
tools/tracing/latency/latency-collector.c
1075
const char *str)
tools/tracing/latency/latency-collector.c
1095
sec, us, req->ticket, str);
tools/tracing/latency/latency-collector.c
1279
char *str;
tools/tracing/latency/latency-collector.c
1286
str = find_next_optstr(next, &next);
tools/tracing/latency/latency-collector.c
1287
if (str == NULL)
tools/tracing/latency/latency-collector.c
1289
if (!strcmp(str, opt)) {
tools/tracing/latency/latency-collector.c
1292
free(str);
tools/tracing/latency/latency-collector.c
1295
if (!strcmp(str, no_opt)) {
tools/tracing/latency/latency-collector.c
1298
free(str);
tools/tracing/latency/latency-collector.c
1301
free(str);
tools/tracing/latency/latency-collector.c
1310
char *str;
tools/tracing/latency/latency-collector.c
1314
str = strdup(opt);
tools/tracing/latency/latency-collector.c
1316
str = get_no_opt(opt);
tools/tracing/latency/latency-collector.c
1318
r = tracefs_instance_file_write(NULL, TR_OPTIONS, str);
tools/tracing/latency/latency-collector.c
1319
free(str);
tools/usb/testusb.c
358
static int parse_num(unsigned *num, const char *str)
tools/usb/testusb.c
364
val = strtoul(str, &end, 0);
usr/gen_init_cpio.c
169
if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &uid, &gid)) {
usr/gen_init_cpio.c
247
if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) {
usr/gen_init_cpio.c
325
if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u",
usr/gen_init_cpio.c
530
if (5 > sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX)
usr/gen_init_cpio.c
551
if (sscanf(line + end, "%" str(PATH_MAX) "s %n",