Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 1798) sorted by relevance

12345678910>>...72

/linux-6.1.9/drivers/gpu/drm/arm/display/komeda/
Dkomeda_event.c13 char *str; member
21 static int komeda_sprintf(struct komeda_str *str, const char *fmt, ...) in komeda_sprintf() argument
27 free_sz = str->sz - str->len - 1; in komeda_sprintf()
33 num = vsnprintf(str->str + str->len, free_sz, fmt, args); in komeda_sprintf()
38 str->len += num; in komeda_sprintf()
41 str->len = str->sz - 1; in komeda_sprintf()
48 static void evt_sprintf(struct komeda_str *str, u64 evt, const char *msg) in evt_sprintf() argument
51 komeda_sprintf(str, msg); in evt_sprintf()
54 static void evt_str(struct komeda_str *str, u64 events) in evt_str() argument
57 komeda_sprintf(str, "None"); in evt_str()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c104 char *str; in BPF_PROG() local
107 str = bpf_map_lookup_elem(&strdata, &key); in BPF_PROG()
108 if (!str) in BPF_PROG()
116 ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG()
124 __ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG()
134 TEST_BTF_C(str, int, 0, 1234); in BPF_PROG()
135 TEST_BTF(str, int, BTF_F_NONAME, "1234", 1234); in BPF_PROG()
137 TEST_BTF(str, int, 0, "(int)0", 0); in BPF_PROG()
138 TEST_BTF(str, int, BTF_F_NONAME, "0", 0); in BPF_PROG()
139 TEST_BTF(str, int, BTF_F_ZERO, "(int)0", 0); in BPF_PROG()
[all …]
/linux-6.1.9/sound/pci/lola/
Dlola_pcm.c52 struct lola_stream *str) in lola_stream_clear_pending_irq() argument
54 unsigned int val = lola_dsd_read(chip, str->dsd, STS); in lola_stream_clear_pending_irq()
57 lola_dsd_write(chip, str->dsd, STS, val); in lola_stream_clear_pending_irq()
60 static void lola_stream_start(struct lola *chip, struct lola_stream *str, in lola_stream_start() argument
63 lola_stream_clear_pending_irq(chip, str); in lola_stream_start()
64 lola_dsd_write(chip, str->dsd, CTL, in lola_stream_start()
72 static void lola_stream_stop(struct lola *chip, struct lola_stream *str, in lola_stream_stop() argument
75 lola_dsd_write(chip, str->dsd, CTL, in lola_stream_stop()
80 lola_stream_clear_pending_irq(chip, str); in lola_stream_stop()
83 static void wait_for_srst_clear(struct lola *chip, struct lola_stream *str) in wait_for_srst_clear() argument
[all …]
/linux-6.1.9/drivers/usb/cdns3/
Dcdns3-debug.h15 static inline char *cdns3_decode_usb_irq(char *str, in cdns3_decode_usb_irq() argument
21 ret = sprintf(str, "IRQ %08x = ", usb_ists); in cdns3_decode_usb_irq()
24 ret += sprintf(str + ret, "Connection %s\n", in cdns3_decode_usb_irq()
28 ret += sprintf(str + ret, "Disconnection "); in cdns3_decode_usb_irq()
30 ret += sprintf(str + ret, "suspended "); in cdns3_decode_usb_irq()
32 ret += sprintf(str + ret, "L1 enter "); in cdns3_decode_usb_irq()
34 ret += sprintf(str + ret, "L1 exit "); in cdns3_decode_usb_irq()
36 ret += sprintf(str + ret, "L2 enter "); in cdns3_decode_usb_irq()
38 ret += sprintf(str + ret, "L2 exit "); in cdns3_decode_usb_irq()
40 ret += sprintf(str + ret, "U3 exit "); in cdns3_decode_usb_irq()
[all …]
Dcdnsp-debug.h179 static inline const char *cdnsp_decode_trb(char *str, size_t size, u32 field0, in cdnsp_decode_trb() argument
192 ret = snprintf(str, size, in cdnsp_decode_trb()
205 ret = snprintf(str, size, in cdnsp_decode_trb()
217 ret = snprintf(str, size, "%s: flags %c", in cdnsp_decode_trb()
222 ret = snprintf(str, size, in cdnsp_decode_trb()
244 ret = snprintf(str, size, in cdnsp_decode_trb()
260 ret = snprintf(str, size, in cdnsp_decode_trb()
276 ret = snprintf(str, size, in cdnsp_decode_trb()
296 ret = snprintf(str, size, "%s: flags %c", in cdnsp_decode_trb()
301 ret = snprintf(str, size, "%s: slot %ld flags %c", in cdnsp_decode_trb()
[all …]
/linux-6.1.9/arch/mips/kernel/
Dsegment.c16 static void build_segment_config(char *str, unsigned int cfg) in build_segment_config() argument
25 str += sprintf(str, "%-5s", am_str[am]); in build_segment_config()
33 str += sprintf(str, " %03lx", in build_segment_config()
36 str += sprintf(str, " UND"); in build_segment_config()
39 str += sprintf(str, " %01ld", in build_segment_config()
42 str += sprintf(str, " U"); in build_segment_config()
45 str += sprintf(str, " %01ld\n", in build_segment_config()
52 char str[42]; in segments_show() local
58 build_segment_config(str, segcfg); in segments_show()
59 seq_printf(m, " 0 e0000000 512M %s", str); in segments_show()
[all …]
/linux-6.1.9/tools/perf/util/
Ddemangle-rust.c100 static bool is_prefixed_hash(const char *str) in is_prefixed_hash() argument
107 if (strncmp(str, hash_prefix, hash_prefix_len)) in is_prefixed_hash()
109 str += hash_prefix_len; in is_prefixed_hash()
112 for (end = str + hash_len; str < end; str++) in is_prefixed_hash()
113 if (*str >= '0' && *str <= '9') in is_prefixed_hash()
114 seen[*str - '0'] = true; in is_prefixed_hash()
115 else if (*str >= 'a' && *str <= 'f') in is_prefixed_hash()
116 seen[*str - 'a' + 10] = true; in is_prefixed_hash()
129 static bool looks_like_rust(const char *str, size_t len) in looks_like_rust() argument
131 const char *end = str + len; in looks_like_rust()
[all …]
Dstring.c23 s64 perf_atoll(const char *str) in perf_atoll() argument
29 if (!isdigit(str[0])) in perf_atoll()
32 length = strtoll(str, &p, 10); in perf_atoll()
110 static bool __match_glob(const char *str, const char *pat, bool ignore_space, in __match_glob() argument
113 while (*str && *pat && *pat != '*') { in __match_glob()
116 if (isspace(*str)) { in __match_glob()
117 str++; in __match_glob()
126 str++; in __match_glob()
130 if (__match_charclass(pat + 1, *str, &pat)) { in __match_glob()
131 str++; in __match_glob()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c271 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data() argument
293 str[0] = '\0'; in btf_dump_data()
302 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in btf_dump_data()
351 char *str) in test_btf_dump_int_data() argument
362 TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, int, BTF_F_COMPACT, 1234); in test_btf_dump_int_data()
363 TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_NONAME, in test_btf_dump_int_data()
365 TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, 0, "(int)1234", 1234); in test_btf_dump_int_data()
368 TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT, "(int)0", 0); in test_btf_dump_int_data()
369 TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_NONAME, in test_btf_dump_int_data()
371 TEST_BTF_DUMP_DATA(btf, d, NULL, str, int, BTF_F_COMPACT | BTF_F_ZERO, in test_btf_dump_int_data()
[all …]
/linux-6.1.9/drivers/media/platform/amphion/
Dvpu_dbg.c56 char str[128]; in vpu_dbg_instance() local
63 num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(inst->type)); in vpu_dbg_instance()
64 if (seq_write(s, str, num)) in vpu_dbg_instance()
67 num = scnprintf(str, sizeof(str), "tgig = %d,pid = %d\n", inst->tgid, inst->pid); in vpu_dbg_instance()
68 if (seq_write(s, str, num)) in vpu_dbg_instance()
70 num = scnprintf(str, sizeof(str), "state = %d\n", inst->state); in vpu_dbg_instance()
71 if (seq_write(s, str, num)) in vpu_dbg_instance()
73 num = scnprintf(str, sizeof(str), in vpu_dbg_instance()
76 if (seq_write(s, str, num)) in vpu_dbg_instance()
80 num = scnprintf(str, sizeof(str), in vpu_dbg_instance()
[all …]
/linux-6.1.9/drivers/usb/common/
Ddebug.c15 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument
19 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status()
22 snprintf(str, size, in usb_decode_get_status()
27 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status()
74 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
78 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature()
85 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature()
91 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature()
100 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument
102 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address()
[all …]
/linux-6.1.9/drivers/firmware/
Discsi_ibft.c202 char *str = buf; in sprintf_ipaddr() local
210 str += sprintf(buf, "%pI4", ip + 12); in sprintf_ipaddr()
215 str += sprintf(str, "%pI6", ip); in sprintf_ipaddr()
217 str += sprintf(str, "\n"); in sprintf_ipaddr()
218 return str - buf; in sprintf_ipaddr()
221 static ssize_t sprintf_string(char *str, int len, char *buf) in sprintf_string() argument
223 return sprintf(str, "%.*s\n", len, buf); in sprintf_string()
255 char *str = buf; in ibft_attr_show_initiator() local
262 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator()
265 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator()
[all …]
/linux-6.1.9/drivers/mmc/core/
Ddebugfs.c57 const char *str; in mmc_ios_show() local
74 str = "open drain"; in mmc_ios_show()
77 str = "push-pull"; in mmc_ios_show()
80 str = "invalid"; in mmc_ios_show()
83 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show()
87 str = "don't care"; in mmc_ios_show()
90 str = "active high"; in mmc_ios_show()
93 str = "active low"; in mmc_ios_show()
96 str = "invalid"; in mmc_ios_show()
99 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show()
[all …]
/linux-6.1.9/lib/
Dcmdline.c23 static int get_range(char **str, int *pint, int n) in get_range() argument
27 (*str)++; in get_range()
28 upper_range = simple_strtol((*str), NULL, 0); in get_range()
56 int get_option(char **str, int *pint) in get_option() argument
58 char *cur = *str; in get_option()
64 value = -simple_strtoull(++cur, str, 0); in get_option()
66 value = simple_strtoull(cur, str, 0); in get_option()
69 if (cur == *str) in get_option()
71 if (**str == ',') { in get_option()
72 (*str)++; in get_option()
[all …]
/linux-6.1.9/drivers/memory/
Dti-emif-sram-pm.S50 str r1, [r2, #EMIF_SDCFG_VAL_OFFSET]
53 str r1, [r2, #EMIF_REF_CTRL_VAL_OFFSET]
56 str r1, [r2, #EMIF_TIMING1_VAL_OFFSET]
59 str r1, [r2, #EMIF_TIMING2_VAL_OFFSET]
62 str r1, [r2, #EMIF_TIMING3_VAL_OFFSET]
65 str r1, [r2, #EMIF_PMCR_VAL_OFFSET]
68 str r1, [r2, #EMIF_PMCR_SHDW_VAL_OFFSET]
71 str r1, [r2, #EMIF_ZQCFG_VAL_OFFSET]
74 str r1, [r2, #EMIF_DDR_PHY_CTLR_1_OFFSET]
77 str r1, [r2, #EMIF_COS_CONFIG_OFFSET]
[all …]
/linux-6.1.9/arch/x86/boot/
Dprintf.c41 static char *number(char *str, long num, int base, int size, int precision, in number() argument
90 *str++ = ' '; in number()
92 *str++ = sign; in number()
95 *str++ = '0'; in number()
97 *str++ = '0'; in number()
98 *str++ = ('X' | locase); in number()
103 *str++ = c; in number()
105 *str++ = '0'; in number()
107 *str++ = tmp[i]; in number()
109 *str++ = ' '; in number()
[all …]
/linux-6.1.9/arch/alpha/boot/
Dstdio.c43 static char * number(char * str, unsigned long long num, int base, int size, int precision, int typ… in number() argument
87 *str++ = ' '; in number()
89 *str++ = sign; in number()
92 *str++ = '0'; in number()
94 *str++ = '0'; in number()
95 *str++ = digits[33]; in number()
100 *str++ = c; in number()
102 *str++ = '0'; in number()
104 *str++ = tmp[i]; in number()
106 *str++ = ' '; in number()
[all …]
/linux-6.1.9/tools/lib/
Dargv_split.c19 static int count_argc(const char *str) in count_argc() argument
23 while (*str) { in count_argc()
24 str = skip_spaces(str); in count_argc()
25 if (*str) { in count_argc()
27 str = skip_arg(str); in count_argc()
63 char **argv_split(const char *str, int *argcp) in argv_split() argument
65 int argc = count_argc(str); in argv_split()
77 while (*str) { in argv_split()
78 str = skip_spaces(str); in argv_split()
80 if (*str) { in argv_split()
[all …]
/linux-6.1.9/fs/unicode/
Dutf8-selftest.c38 unsigned char str[10]; member
44 .str = "aBba",
52 .str = {0xc2, 0xbc, 0x00},
58 .str = {0xc3, 0xa4, 0x00},
64 .str = {0xC7, 0x89, 0x00},
69 .str = {0xCE, 0x87, 0x00},
76 .str = {0x41, 0xcc, 0x81, 0xcc, 0xa8, 0x0},
83 .str = {0xc3, 0xa4, 0xCC, 0xA8, 0x00},
92 unsigned char str[30]; member
98 .str = {0x41, 0x42, 0x62, 0x61, 0x00},
[all …]
/linux-6.1.9/drivers/usb/dwc3/
Ddebug.h198 static inline const char *dwc3_gadget_event_string(char *str, size_t size, in dwc3_gadget_event_string() argument
205 snprintf(str, size, "Disconnect: [%s]", in dwc3_gadget_event_string()
209 snprintf(str, size, "Reset [%s]", in dwc3_gadget_event_string()
213 snprintf(str, size, "Connection Done [%s]", in dwc3_gadget_event_string()
217 snprintf(str, size, "Link Change [%s]", in dwc3_gadget_event_string()
221 snprintf(str, size, "WakeUp [%s]", in dwc3_gadget_event_string()
225 snprintf(str, size, "Suspend [%s]", in dwc3_gadget_event_string()
229 snprintf(str, size, "Start-Of-Frame [%s]", in dwc3_gadget_event_string()
233 snprintf(str, size, "Erratic Error [%s]", in dwc3_gadget_event_string()
237 snprintf(str, size, "Command Complete [%s]", in dwc3_gadget_event_string()
[all …]
/linux-6.1.9/tools/perf/arch/arm/tests/
Dregs_load.S41 str r0, [r0, #R0]
42 str r1, [r0, #R1]
43 str r2, [r0, #R2]
44 str r3, [r0, #R3]
45 str r4, [r0, #R4]
46 str r5, [r0, #R5]
47 str r6, [r0, #R6]
48 str r7, [r0, #R7]
49 str r8, [r0, #R8]
50 str r9, [r0, #R9]
[all …]
/linux-6.1.9/arch/powerpc/boot/
Dstdio.c79 static char * number(char * str, unsigned long long num, int base, int size, int precision, int typ… in number() argument
123 *str++ = ' '; in number()
125 *str++ = sign; in number()
128 *str++ = '0'; in number()
130 *str++ = '0'; in number()
131 *str++ = digits[33]; in number()
136 *str++ = c; in number()
138 *str++ = '0'; in number()
140 *str++ = tmp[i]; in number()
142 *str++ = ' '; in number()
[all …]
/linux-6.1.9/arch/arm/mach-at91/
Dpm_suspend.S75 str r7, [pmc, #AT91_PMC_SCDR]
105 str r9, [r7, #AT91_SFRBU_25LDOCR]
135 str tmp1, [r2, #UDDRC_PCTRL_0]
139 str tmp1, [r2, #UDDRC_PCTRL_1]
143 str tmp1, [r2, #UDDRC_PCTRL_2]
147 str tmp1, [r2, #UDDRC_PCTRL_3]
151 str tmp1, [r2, #UDDRC_PCTRL_4]
163 str tmp1, [r2, #UDDRC_PWRCTL]
179 str tmp1, [r3, DDR3PHY_ACDLLCR]
184 str tmp1, [r3, #DDR3PHY_DX0DLLCR]
[all …]
/linux-6.1.9/tools/testing/selftests/arm64/abi/
Dsyscall-abi-asm.S92 str x29, [x2], #8 // FP
93 str x30, [x2], #8 // LR
198 str x30, [x2]
226 str x2, [x3, :lo12:svcr_out]
244 str z0, [x2, #0, MUL VL]
245 str z1, [x2, #1, MUL VL]
246 str z2, [x2, #2, MUL VL]
247 str z3, [x2, #3, MUL VL]
248 str z4, [x2, #4, MUL VL]
249 str z5, [x2, #5, MUL VL]
[all …]
/linux-6.1.9/arch/x86/kernel/acpi/
Dsleep.c133 static int __init acpi_sleep_setup(char *str) in acpi_sleep_setup() argument
135 while ((str != NULL) && (*str != '\0')) { in acpi_sleep_setup()
136 if (strncmp(str, "s3_bios", 7) == 0) in acpi_sleep_setup()
138 if (strncmp(str, "s3_mode", 7) == 0) in acpi_sleep_setup()
140 if (strncmp(str, "s3_beep", 7) == 0) in acpi_sleep_setup()
143 if (strncmp(str, "s4_hwsig", 8) == 0) in acpi_sleep_setup()
145 if (strncmp(str, "s4_nohwsig", 10) == 0) in acpi_sleep_setup()
148 if (strncmp(str, "nonvs", 5) == 0) in acpi_sleep_setup()
150 if (strncmp(str, "nonvs_s3", 8) == 0) in acpi_sleep_setup()
152 if (strncmp(str, "old_ordering", 12) == 0) in acpi_sleep_setup()
[all …]

12345678910>>...72