/Linux-v5.10/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-v5.10/tools/testing/selftests/bpf/progs/ |
D | netif_receive_skb.c | 97 char *str; in BPF_PROG() local 100 str = bpf_map_lookup_elem(&strdata, &key); in BPF_PROG() 101 if (!str) in BPF_PROG() 109 ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG() 117 __ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG() 127 TEST_BTF_C(str, int, 0, 1234); in BPF_PROG() 128 TEST_BTF(str, int, BTF_F_NONAME, "1234", 1234); in BPF_PROG() 130 TEST_BTF(str, int, 0, "(int)0", 0); in BPF_PROG() 131 TEST_BTF(str, int, BTF_F_NONAME, "0", 0); in BPF_PROG() 132 TEST_BTF(str, int, BTF_F_ZERO, "(int)0", 0); in BPF_PROG() [all …]
|
/Linux-v5.10/drivers/usb/cdns3/ |
D | 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-v5.10/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-v5.10/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 | 24 s64 perf_atoll(const char *str) in perf_atoll() argument 30 if (!isdigit(str[0])) in perf_atoll() 33 length = strtoll(str, &p, 10); in perf_atoll() 111 static bool __match_glob(const char *str, const char *pat, bool ignore_space, in __match_glob() argument 114 while (*str && *pat && *pat != '*') { in __match_glob() 117 if (isspace(*str)) { in __match_glob() 118 str++; in __match_glob() 127 str++; in __match_glob() 131 if (__match_charclass(pat + 1, *str, &pat)) { in __match_glob() 132 str++; in __match_glob() [all …]
|
D | expr.l | 13 static double __value(YYSTYPE *yylval, char *str, int token) in __value() argument 18 num = strtod(str, NULL); in __value() 38 static char *normalize(char *str, int runtime) in normalize() argument 40 char *ret = str; in normalize() 41 char *dst = str; in normalize() 43 while (*str) { in normalize() 44 if (*str == '@') in normalize() 46 else if (*str == '\\') in normalize() 47 *dst++ = *++str; in normalize() 48 else if (*str == '?') { in normalize() [all …]
|
/Linux-v5.10/drivers/mmc/core/ |
D | debugfs.c | 56 const char *str; in mmc_ios_show() local 73 str = "open drain"; in mmc_ios_show() 76 str = "push-pull"; in mmc_ios_show() 79 str = "invalid"; in mmc_ios_show() 82 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show() 86 str = "don't care"; in mmc_ios_show() 89 str = "active high"; in mmc_ios_show() 92 str = "active low"; in mmc_ios_show() 95 str = "invalid"; in mmc_ios_show() 98 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show() [all …]
|
/Linux-v5.10/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 show_segments() local 58 build_segment_config(str, segcfg); in show_segments() 59 seq_printf(m, " 0 e0000000 512M %s", str); in show_segments() [all …]
|
/Linux-v5.10/drivers/usb/common/ |
D | debug.c | 14 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument 18 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status() 21 snprintf(str, size, in usb_decode_get_status() 26 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status() 73 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument 77 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature() 84 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature() 90 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature() 99 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument 101 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address() [all …]
|
/Linux-v5.10/drivers/firmware/ |
D | iscsi_ibft.c | 204 char *str = buf; in sprintf_ipaddr() local 212 str += sprintf(buf, "%pI4", ip + 12); in sprintf_ipaddr() 217 str += sprintf(str, "%pI6", ip); in sprintf_ipaddr() 219 str += sprintf(str, "\n"); in sprintf_ipaddr() 220 return str - buf; in sprintf_ipaddr() 223 static ssize_t sprintf_string(char *str, int len, char *buf) in sprintf_string() argument 225 return sprintf(str, "%.*s\n", len, buf); in sprintf_string() 257 char *str = buf; in ibft_attr_show_initiator() local 264 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator() 267 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator() [all …]
|
/Linux-v5.10/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() 50 int get_option(char **str, int *pint) in get_option() argument 52 char *cur = *str; in get_option() 56 *pint = simple_strtol(cur, str, 0); in get_option() 57 if (cur == *str) in get_option() 59 if (**str == ',') { in get_option() 60 (*str)++; in get_option() 63 if (**str == '-') in get_option() [all …]
|
/Linux-v5.10/drivers/memory/ |
D | ti-emif-sram-pm.S | 58 str r1, [r2, #EMIF_SDCFG_VAL_OFFSET] 61 str r1, [r2, #EMIF_REF_CTRL_VAL_OFFSET] 64 str r1, [r2, #EMIF_TIMING1_VAL_OFFSET] 67 str r1, [r2, #EMIF_TIMING2_VAL_OFFSET] 70 str r1, [r2, #EMIF_TIMING3_VAL_OFFSET] 73 str r1, [r2, #EMIF_PMCR_VAL_OFFSET] 76 str r1, [r2, #EMIF_PMCR_SHDW_VAL_OFFSET] 79 str r1, [r2, #EMIF_ZQCFG_VAL_OFFSET] 82 str r1, [r2, #EMIF_DDR_PHY_CTLR_1_OFFSET] 85 str r1, [r2, #EMIF_COS_CONFIG_OFFSET] [all …]
|
/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/fs/unicode/ |
D | utf8-selftest.c | 40 unsigned char str[10]; member 46 .str = "aBba", 54 .str = {0xc2, 0xbc, 0x00}, 60 .str = {0xc3, 0xa4, 0x00}, 66 .str = {0xC7, 0x89, 0x00}, 71 .str = {0xCE, 0x87, 0x00}, 78 .str = {0x41, 0xcc, 0x81, 0xcc, 0xa8, 0x0}, 85 .str = {0xc3, 0xa4, 0xCC, 0xA8, 0x00}, 94 unsigned char str[30]; member 100 .str = {0x41, 0x42, 0x62, 0x61, 0x00}, [all …]
|
/Linux-v5.10/drivers/usb/dwc3/ |
D | debug.h | 198 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, "End-Of-Frame [%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-v5.10/tools/perf/arch/arm/tests/ |
D | regs_load.S | 41 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-v5.10/arch/powerpc/boot/ |
D | stdio.c | 79 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-v5.10/kernel/sched/ |
D | isolation.c | 80 static int __init housekeeping_setup(char *str, enum hk_flags flags) in housekeeping_setup() argument 87 err = cpulist_parse(str, non_housekeeping_mask); in housekeeping_setup() 139 static int __init housekeeping_nohz_full_setup(char *str) in housekeeping_nohz_full_setup() argument 146 return housekeeping_setup(str, flags); in housekeeping_nohz_full_setup() 150 static int __init housekeeping_isolcpus_setup(char *str) in housekeeping_isolcpus_setup() argument 157 while (isalpha(*str)) { in housekeeping_isolcpus_setup() 158 if (!strncmp(str, "nohz,", 5)) { in housekeeping_isolcpus_setup() 159 str += 5; in housekeeping_isolcpus_setup() 164 if (!strncmp(str, "domain,", 7)) { in housekeeping_isolcpus_setup() 165 str += 7; in housekeeping_isolcpus_setup() [all …]
|
/Linux-v5.10/arch/arm/mach-at91/ |
D | pm_suspend.S | 57 str tmp1, [pmc, #AT91_PMC_SCDR] 88 str tmp1, .pmc_base 90 str tmp1, .sramc_base 92 str tmp1, .sramc1_base 94 str tmp1, .memtype 96 str tmp1, .pm_mode 98 str tmp1, .mckr_offset 100 str tmp1, .pmc_version 103 str tmp1, .shdwc 107 str tmp1, .sfrbu [all …]
|
/Linux-v5.10/kernel/trace/ |
D | trace_events_inject.c | 36 parse_field(char *str, struct trace_event_call *call, in parse_field() argument 45 if (!str[i]) in parse_field() 48 while (isspace(str[i])) in parse_field() 51 while (isalnum(str[i]) || str[i] == '_') in parse_field() 57 field_name = kmemdup_nul(str + s, len, GFP_KERNEL); in parse_field() 66 while (isspace(str[i])) in parse_field() 68 if (str[i] != '=') in parse_field() 71 while (isspace(str[i])) in parse_field() 74 if (isdigit(str[i]) || str[i] == '-') { in parse_field() 82 if (str[i] == '-') in parse_field() [all …]
|
/Linux-v5.10/arch/x86/kernel/acpi/ |
D | sleep.c | 132 static int __init acpi_sleep_setup(char *str) in acpi_sleep_setup() argument 134 while ((str != NULL) && (*str != '\0')) { in acpi_sleep_setup() 135 if (strncmp(str, "s3_bios", 7) == 0) in acpi_sleep_setup() 137 if (strncmp(str, "s3_mode", 7) == 0) in acpi_sleep_setup() 139 if (strncmp(str, "s3_beep", 7) == 0) in acpi_sleep_setup() 142 if (strncmp(str, "s4_nohwsig", 10) == 0) in acpi_sleep_setup() 145 if (strncmp(str, "nonvs", 5) == 0) in acpi_sleep_setup() 147 if (strncmp(str, "nonvs_s3", 8) == 0) in acpi_sleep_setup() 149 if (strncmp(str, "old_ordering", 12) == 0) in acpi_sleep_setup() 151 if (strncmp(str, "nobl", 4) == 0) in acpi_sleep_setup() [all …]
|
/Linux-v5.10/drivers/acpi/ |
D | osi.c | 93 void __init acpi_osi_setup(char *str) in acpi_osi_setup() argument 102 if (str == NULL || *str == '\0') { in acpi_osi_setup() 108 if (*str == '!') { in acpi_osi_setup() 109 str++; in acpi_osi_setup() 110 if (*str == '\0') { in acpi_osi_setup() 116 } else if (*str == '*') { in acpi_osi_setup() 123 } else if (*str == '!') { in acpi_osi_setup() 132 if (!strcmp(osi->string, str)) { in acpi_osi_setup() 137 strncpy(osi->string, str, OSI_STRING_LENGTH_MAX); in acpi_osi_setup() 219 char *str; in acpi_osi_setup_late() local [all …]
|