/linux-6.12.1/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_event.c | 13 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.12.1/tools/testing/selftests/bpf/progs/ |
D | netif_receive_skb.c | 100 char *str; in BPF_PROG() local 103 str = bpf_map_lookup_elem(&strdata, &key); in BPF_PROG() 104 if (!str) in BPF_PROG() 112 ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG() 120 __ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG() 130 TEST_BTF_C(str, int, 0, 1234); in BPF_PROG() 131 TEST_BTF(str, int, BTF_F_NONAME, "1234", 1234); in BPF_PROG() 133 TEST_BTF(str, int, 0, "(int)0", 0); in BPF_PROG() 134 TEST_BTF(str, int, BTF_F_NONAME, "0", 0); in BPF_PROG() 135 TEST_BTF(str, int, BTF_F_ZERO, "(int)0", 0); in BPF_PROG() [all …]
|
/linux-6.12.1/sound/pci/lola/ |
D | lola_pcm.c | 52 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.12.1/drivers/usb/cdns3/ |
D | cdns3-debug.h | 15 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-6.12.1/arch/mips/kernel/ |
D | segment.c | 16 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.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | btf_dump.c | 271 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.12.1/tools/perf/util/ |
D | demangle-rust.c | 100 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 …]
|
D | string.c | 23 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.12.1/drivers/media/platform/amphion/ |
D | vpu_dbg.c | 63 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-6.12.1/drivers/usb/common/ |
D | debug.c | 15 __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.12.1/tools/net/ynl/ |
D | ynl-gen-rst.py | 34 def headroom(level: int) -> str: 39 def bold(text: str) -> str: argument 44 def inline(text: str) -> str: 49 def sanitize(text: str) -> str: argument 52 return str(text).replace("\n", " ").strip() 55 def rst_fields(key: str, value: str, level: int = 0) -> str: argument 60 def rst_definition(key: str, value: Any, level: int = 0) -> str: argument 62 return headroom(level) + key + "\n" + headroom(level + 1) + str(value) 65 def rst_paragraph(paragraph: str, level: int = 0) -> str: argument 70 def rst_bullet(item: str, level: int = 0) -> str: argument [all …]
|
/linux-6.12.1/drivers/firmware/ |
D | iscsi_ibft.c | 202 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.12.1/drivers/usb/gadget/udc/cdns2/ |
D | cdns2-debug.h | 14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size, in cdns2_decode_usb_irq() argument 19 ret = scnprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq() 22 ret += scnprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq() 24 ret += scnprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq() 26 ret += scnprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq() 28 ret += scnprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq() 30 ret += scnprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq() 32 ret += scnprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq() 34 ret += scnprintf(str + ret, size - ret, "LPM "); in cdns2_decode_usb_irq() 36 ret += scnprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq); in cdns2_decode_usb_irq() [all …]
|
/linux-6.12.1/lib/ |
D | cmdline.c | 23 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.12.1/drivers/memory/ |
D | ti-emif-sram-pm.S | 51 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-6.12.1/drivers/mmc/core/ |
D | debugfs.c | 60 const char *str; in mmc_ios_show() local 77 str = "open drain"; in mmc_ios_show() 80 str = "push-pull"; in mmc_ios_show() 83 str = "invalid"; in mmc_ios_show() 86 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show() 90 str = "don't care"; in mmc_ios_show() 93 str = "active high"; in mmc_ios_show() 96 str = "active low"; in mmc_ios_show() 99 str = "invalid"; in mmc_ios_show() 102 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show() [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | guest_sprintf.c | 6 #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-6.12.1/arch/x86/boot/ |
D | printf.c | 41 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.12.1/arch/alpha/boot/ |
D | stdio.c | 43 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.12.1/tools/lib/ |
D | argv_split.c | 19 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.12.1/arch/loongarch/kernel/ |
D | relocate.c | 132 char *str; in kaslr_disabled() local 135 str = strstr(builtin_cmdline, "nokaslr"); in kaslr_disabled() 136 if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' ')) in kaslr_disabled() 139 str = strstr(boot_command_line, "nokaslr"); in kaslr_disabled() 140 if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' ')) in kaslr_disabled() 144 str = strstr(builtin_cmdline, "nohibernate"); in kaslr_disabled() 145 if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' ')) in kaslr_disabled() 148 str = strstr(boot_command_line, "nohibernate"); in kaslr_disabled() 149 if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' ')) in kaslr_disabled() 152 str = strstr(builtin_cmdline, "noresume"); in kaslr_disabled() [all …]
|
/linux-6.12.1/drivers/usb/dwc3/ |
D | debug.h | 200 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-6.12.1/fs/unicode/ |
D | utf8-selftest.c | 38 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.12.1/tools/testing/selftests/arm64/fp/ |
D | fp-ptrace-asm.S | 173 str x11, [x6, :lo12:sme_vl_out] 177 str x7, [x6, :lo12:svcr_out] 208 str x7, [x6, :lo12:sve_vl_out] 212 str z0, [x7, #0, MUL VL] 213 str z1, [x7, #1, MUL VL] 214 str z2, [x7, #2, MUL VL] 215 str z3, [x7, #3, MUL VL] 216 str z4, [x7, #4, MUL VL] 217 str z5, [x7, #5, MUL VL] 218 str z6, [x7, #6, MUL VL] [all …]
|
/linux-6.12.1/tools/testing/kunit/ |
D | kunit_kernel.py | 45 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 76 'O=' + build_dir, '--jobs=' + str(jobs)] 87 raise BuildError('Could not call execute make: ' + str(e)) 96 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: argument 102 def __init__(self, qemu_arch_params: qemu_config.QemuArchParams, cross_compile: Optional[str]): argument 117 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: argument [all …]
|