Home
last modified time | relevance | path

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

12345678910>>...74

/Linux-v6.6/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-v6.6/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c103 char *str; in BPF_PROG() local
106 str = bpf_map_lookup_elem(&strdata, &key); in BPF_PROG()
107 if (!str) in BPF_PROG()
115 ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG()
123 __ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG()
133 TEST_BTF_C(str, int, 0, 1234); in BPF_PROG()
134 TEST_BTF(str, int, BTF_F_NONAME, "1234", 1234); in BPF_PROG()
136 TEST_BTF(str, int, 0, "(int)0", 0); in BPF_PROG()
137 TEST_BTF(str, int, BTF_F_NONAME, "0", 0); in BPF_PROG()
138 TEST_BTF(str, int, BTF_F_ZERO, "(int)0", 0); in BPF_PROG()
[all …]
/Linux-v6.6/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-v6.6/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 …]
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/media/platform/amphion/
Dvpu_dbg.c63 char str[128]; in vpu_dbg_instance() local
70 num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(inst->type)); in vpu_dbg_instance()
71 if (seq_write(s, str, num)) in vpu_dbg_instance()
74 num = scnprintf(str, sizeof(str), "tgig = %d,pid = %d\n", inst->tgid, inst->pid); in vpu_dbg_instance()
75 if (seq_write(s, str, num)) in vpu_dbg_instance()
77 num = scnprintf(str, sizeof(str), "state = %s\n", vpu_codec_state_name(inst->state)); in vpu_dbg_instance()
78 if (seq_write(s, str, num)) in vpu_dbg_instance()
80 num = scnprintf(str, sizeof(str), in vpu_dbg_instance()
83 if (seq_write(s, str, num)) in vpu_dbg_instance()
87 num = scnprintf(str, sizeof(str), in vpu_dbg_instance()
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/drivers/usb/gadget/udc/cdns2/
Dcdns2-debug.h14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size, in cdns2_decode_usb_irq() argument
19 ret = snprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq()
22 ret += snprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq()
24 ret += snprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq()
26 ret += snprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq()
28 ret += snprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq()
30 ret += snprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq()
32 ret += snprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq()
34 ret += snprintf(str + ret, size - ret, "LPM "); in cdns2_decode_usb_irq()
36 ret += snprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq); in cdns2_decode_usb_irq()
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/drivers/memory/
Dti-emif-sram-pm.S51 str r1, [r2, #EMIF_SDCFG_VAL_OFFSET]
54 str r1, [r2, #EMIF_REF_CTRL_VAL_OFFSET]
57 str r1, [r2, #EMIF_TIMING1_VAL_OFFSET]
60 str r1, [r2, #EMIF_TIMING2_VAL_OFFSET]
63 str r1, [r2, #EMIF_TIMING3_VAL_OFFSET]
66 str r1, [r2, #EMIF_PMCR_VAL_OFFSET]
69 str r1, [r2, #EMIF_PMCR_SHDW_VAL_OFFSET]
72 str r1, [r2, #EMIF_ZQCFG_VAL_OFFSET]
75 str r1, [r2, #EMIF_DDR_PHY_CTLR_1_OFFSET]
78 str r1, [r2, #EMIF_COS_CONFIG_OFFSET]
[all …]
/Linux-v6.6/tools/testing/selftests/kvm/lib/
Dguest_sprintf.c6 #define APPEND_BUFFER_SAFE(str, end, v) \ argument
8 GUEST_ASSERT(str < end); \
9 *str++ = (v); \
43 static char *number(char *str, const char *end, long num, int base, int size, in number() argument
94 APPEND_BUFFER_SAFE(str, end, ' '); in number()
96 APPEND_BUFFER_SAFE(str, end, sign); in number()
99 APPEND_BUFFER_SAFE(str, end, '0'); in number()
101 APPEND_BUFFER_SAFE(str, end, '0'); in number()
102 APPEND_BUFFER_SAFE(str, end, 'x'); in number()
107 APPEND_BUFFER_SAFE(str, end, c); in number()
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/usb/dwc3/
Ddebug.h200 static inline const char *dwc3_gadget_event_string(char *str, size_t size, in dwc3_gadget_event_string() argument
207 snprintf(str, size, "Disconnect: [%s]", in dwc3_gadget_event_string()
211 snprintf(str, size, "Reset [%s]", in dwc3_gadget_event_string()
215 snprintf(str, size, "Connection Done [%s]", in dwc3_gadget_event_string()
219 snprintf(str, size, "Link Change [%s]", in dwc3_gadget_event_string()
223 snprintf(str, size, "WakeUp [%s]", in dwc3_gadget_event_string()
227 snprintf(str, size, "Suspend [%s]", in dwc3_gadget_event_string()
231 snprintf(str, size, "Start-Of-Frame [%s]", in dwc3_gadget_event_string()
235 snprintf(str, size, "Erratic Error [%s]", in dwc3_gadget_event_string()
239 snprintf(str, size, "Command Complete [%s]", in dwc3_gadget_event_string()
[all …]
/Linux-v6.6/tools/testing/kunit/
Dkunit_kernel.py45 def __init__(self, linux_arch: str, cross_compile: Optional[str]): argument
53 raise ConfigError('Could not call make command: ' + str(e))
60 def make_olddefconfig(self, build_dir: str, make_options: Optional[List[str]]) -> None: argument
70 raise ConfigError('Could not call make command: ' + str(e))
74 def make(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> None: argument
75 command = ['make', 'ARCH=' + self._linux_arch, 'O=' + build_dir, '--jobs=' + str(jobs)]
86 raise BuildError('Could not call execute make: ' + str(e))
95 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: argument
101 def __init__(self, qemu_arch_params: qemu_config.QemuArchParams, cross_compile: Optional[str]): argument
116 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: argument
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/arch/arm/mach-at91/
Dpm_suspend.S79 str r7, [pmc, #AT91_PMC_SCDR]
109 str r9, [r7, #AT91_SFRBU_25LDOCR]
139 str tmp1, [r2, #UDDRC_PCTRL_0]
143 str tmp1, [r2, #UDDRC_PCTRL_1]
147 str tmp1, [r2, #UDDRC_PCTRL_2]
151 str tmp1, [r2, #UDDRC_PCTRL_3]
155 str tmp1, [r2, #UDDRC_PCTRL_4]
167 str tmp1, [r2, #UDDRC_PWRCTL]
183 str tmp1, [r3, DDR3PHY_ACDLLCR]
188 str tmp1, [r3, #DDR3PHY_DX0DLLCR]
[all …]

12345678910>>...74