Home
last modified time | relevance | path

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

12345678910>>...26

/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 …]
/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.h177 static inline const char *cdnsp_decode_trb(char *str, size_t size, u32 field0, in cdnsp_decode_trb() argument
190 ret = scnprintf(str, size, in cdnsp_decode_trb()
203 ret = scnprintf(str, size, in cdnsp_decode_trb()
215 ret = scnprintf(str, size, "%s: flags %c", in cdnsp_decode_trb()
220 ret = scnprintf(str, size, in cdnsp_decode_trb()
242 ret = scnprintf(str, size, in cdnsp_decode_trb()
258 ret = scnprintf(str, size, in cdnsp_decode_trb()
274 ret = scnprintf(str, size, in cdnsp_decode_trb()
294 ret = scnprintf(str, size, "%s: flags %c", in cdnsp_decode_trb()
299 ret = scnprintf(str, size, "%s: slot %ld flags %c", in cdnsp_decode_trb()
[all …]
/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 …]
/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 …]
/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 …]
/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 = 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 …]
/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 …]
/drivers/mmc/core/
Ddebugfs.c60 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 …]
/drivers/usb/dwc3/
Ddebug.h218 static inline const char *dwc3_gadget_event_string(char *str, size_t size, in dwc3_gadget_event_string() argument
225 snprintf(str, size, "Disconnect: [%s]", in dwc3_gadget_event_string()
229 snprintf(str, size, "Reset [%s]", in dwc3_gadget_event_string()
233 snprintf(str, size, "Connection Done [%s]", in dwc3_gadget_event_string()
237 snprintf(str, size, "Link Change [%s]", in dwc3_gadget_event_string()
241 snprintf(str, size, "WakeUp [%s]", in dwc3_gadget_event_string()
245 snprintf(str, size, "Suspend [%s]", in dwc3_gadget_event_string()
249 snprintf(str, size, "Start-Of-Frame [%s]", in dwc3_gadget_event_string()
253 snprintf(str, size, "Erratic Error [%s]", in dwc3_gadget_event_string()
257 snprintf(str, size, "Command Complete [%s]", in dwc3_gadget_event_string()
[all …]
/drivers/acpi/
Dosi.c68 void __init acpi_osi_setup(char *str) in acpi_osi_setup() argument
77 if (str == NULL || *str == '\0') { in acpi_osi_setup()
83 if (*str == '!') { in acpi_osi_setup()
84 str++; in acpi_osi_setup()
85 if (*str == '\0') { in acpi_osi_setup()
91 } else if (*str == '*') { in acpi_osi_setup()
98 } else if (*str == '!') { in acpi_osi_setup()
107 if (!strcmp(osi->string, str)) { in acpi_osi_setup()
112 strscpy(osi->string, str, OSI_STRING_LENGTH_MAX); in acpi_osi_setup()
194 char *str; in acpi_osi_setup_late() local
[all …]
Dacpi_configfs.c99 static ssize_t acpi_table_signature_show(struct config_item *cfg, char *str) in acpi_table_signature_show() argument
106 return sysfs_emit(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->signature); in acpi_table_signature_show()
109 static ssize_t acpi_table_length_show(struct config_item *cfg, char *str) in acpi_table_length_show() argument
116 return sysfs_emit(str, "%d\n", h->length); in acpi_table_length_show()
119 static ssize_t acpi_table_revision_show(struct config_item *cfg, char *str) in acpi_table_revision_show() argument
126 return sysfs_emit(str, "%d\n", h->revision); in acpi_table_revision_show()
129 static ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str) in acpi_table_oem_id_show() argument
136 return sysfs_emit(str, "%.*s\n", ACPI_OEM_ID_SIZE, h->oem_id); in acpi_table_oem_id_show()
139 static ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str) in acpi_table_oem_table_id_show() argument
146 return sysfs_emit(str, "%.*s\n", ACPI_OEM_TABLE_ID_SIZE, h->oem_table_id); in acpi_table_oem_table_id_show()
[all …]
/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-common.c514 char __maybe_unused *str = NULL; in xlgmac_print_all_hw_features() local
547 str = "RESERVED"; in xlgmac_print_all_hw_features()
550 str = "INTERNAL"; in xlgmac_print_all_hw_features()
553 str = "EXTERNAL"; in xlgmac_print_all_hw_features()
556 str = "BOTH"; in xlgmac_print_all_hw_features()
559 XLGMAC_PR("Timestamp System Time Source : %s\n", str); in xlgmac_print_all_hw_features()
567 str = "128 bytes"; in xlgmac_print_all_hw_features()
570 str = "256 bytes"; in xlgmac_print_all_hw_features()
573 str = "512 bytes"; in xlgmac_print_all_hw_features()
576 str = "1 KBytes"; in xlgmac_print_all_hw_features()
[all …]
/drivers/of/
Dmodule.c11 ssize_t of_modalias(const struct device_node *np, char *str, ssize_t len) in of_modalias() argument
24 if ((len > 0 && !str) || len < 0) in of_modalias()
29 csize = snprintf(str, len, "of:N%pOFn%c%s", np, 'T', in of_modalias()
35 str += csize; in of_modalias()
43 csize = snprintf(str, len, "C%s", compat); in of_modalias()
44 for (c = str; c; ) { in of_modalias()
50 str += csize; in of_modalias()
58 char *str; in of_request_module() local
72 str = kmalloc(size, GFP_KERNEL); in of_request_module()
73 if (!str) in of_request_module()
[all …]
/drivers/iommu/
Dirq_remapping.c50 static __init int setup_nointremap(char *str) in setup_nointremap() argument
57 static __init int setup_irqremap(char *str) in setup_irqremap() argument
59 if (!str) in setup_irqremap()
62 while (*str) { in setup_irqremap()
63 if (!strncmp(str, "on", 2)) { in setup_irqremap()
66 } else if (!strncmp(str, "off", 3)) { in setup_irqremap()
69 } else if (!strncmp(str, "nosid", 5)) in setup_irqremap()
71 else if (!strncmp(str, "no_x2apic_optout", 16)) in setup_irqremap()
73 else if (!strncmp(str, "nopost", 6)) in setup_irqremap()
75 else if (IS_ENABLED(CONFIG_X86_POSTED_MSI) && !strncmp(str, "posted_msi", 10)) in setup_irqremap()
[all …]
/drivers/md/
Ddm-init.c88 static char __init *str_field_delimit(char **str, char separator) in str_field_delimit() argument
93 *str = skip_spaces(*str); in str_field_delimit()
94 s = strchr(*str, separator); in str_field_delimit()
98 *str = strim(*str); in str_field_delimit()
111 static char __init *dm_parse_table_entry(struct dm_device *dev, char *str) in dm_parse_table_entry() argument
120 field[0] = str; in dm_parse_table_entry()
162 static int __init dm_parse_table(struct dm_device *dev, char *str) in dm_parse_table() argument
164 char *table_entry = str; in dm_parse_table()
167 DMDEBUG("parsing table \"%s\"", str); in dm_parse_table()
192 static char __init *dm_parse_device_entry(struct dm_device *dev, char *str) in dm_parse_device_entry() argument
[all …]
Dmd-autodetect.c60 static int __init md_setup(char *str) in md_setup() argument
67 if (*str == 'd') { in md_setup()
69 str++; in md_setup()
71 if (get_option(&str, &minor) != 2) { /* MD Number */ in md_setup()
75 str1 = str; in md_setup()
89 switch (get_option(&str, &level)) { /* RAID level */ in md_setup()
92 if (get_option(&str, &factor) != 2 || /* Chunk Size */ in md_setup()
93 get_option(&str, &fault) != 2) { in md_setup()
107 str = str1; in md_setup()
115 minor, pername, str); in md_setup()
[all …]
/drivers/usb/host/
Dxhci.h2042 static inline const char *xhci_decode_trb(char *str, size_t size, in xhci_decode_trb() argument
2049 snprintf(str, size, in xhci_decode_trb()
2066 snprintf(str, size, in xhci_decode_trb()
2078 snprintf(str, size, in xhci_decode_trb()
2096 snprintf(str, size, in xhci_decode_trb()
2110 snprintf(str, size, in xhci_decode_trb()
2124 snprintf(str, size, in xhci_decode_trb()
2141 snprintf(str, size, in xhci_decode_trb()
2148 snprintf(str, size, in xhci_decode_trb()
2155 snprintf(str, size, in xhci_decode_trb()
[all …]
/drivers/platform/x86/dell/dell-wmi-sysman/
Dstring-attributes.c13 get_instance_id(str);
54 attribute_s_property_show(display_name_language_code, str);
58 attribute_s_property_show(display_name, str);
62 attribute_s_property_show(default_value, str);
66 attribute_property_store(current_value, str);
70 attribute_s_property_show(dell_modifier, str);
74 attribute_n_property_show(min_length, str);
78 attribute_n_property_show(max_length, str);
129 if (check_property_type(str, ATTR_NAME, ACPI_TYPE_STRING)) in populate_str_data()
133 if (check_property_type(str, DISPL_NAME_LANG_CODE, ACPI_TYPE_STRING)) in populate_str_data()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth_sysfs.c37 char *str; in dpaa_eth_show_fqids() local
42 str = "Rx default"; in dpaa_eth_show_fqids()
45 str = "Rx error"; in dpaa_eth_show_fqids()
48 str = "Rx PCD"; in dpaa_eth_show_fqids()
51 str = "Tx default confirmation"; in dpaa_eth_show_fqids()
54 str = "Tx confirmation (mq)"; in dpaa_eth_show_fqids()
57 str = "Tx error"; in dpaa_eth_show_fqids()
60 str = "Tx"; in dpaa_eth_show_fqids()
63 str = "Unknown"; in dpaa_eth_show_fqids()
67 str != prevstr)) { in dpaa_eth_show_fqids()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ethtool.c265 char str[ETH_GSTRING_LEN]; member
272 .str = "a_frames_transmitted_ok",
276 .str = "a_frames_received_ok",
280 .str = "a_frame_check_sequence_errors",
284 .str = "a_alignment_errors",
288 .str = "a_octets_transmitted_ok",
292 .str = "a_octets_received_ok",
296 .str = "a_multicast_frames_xmitted_ok",
300 .str = "a_broadcast_frames_xmitted_ok",
304 .str = "a_multicast_frames_received_ok",
[all …]
/drivers/char/tpm/
Dtpm-sysfs.c38 char *str = buf; in pubek_show() local
57 str += in pubek_show()
58 sprintf(str, in pubek_show()
72 str += sprintf(str, "%16ph\n", &out->modulus[i]); in pubek_show()
78 return str - buf; in pubek_show()
88 char *str = buf; in pcrs_show() local
104 str = buf; in pcrs_show()
107 str += sprintf(str, "PCR-%02d: ", i); in pcrs_show()
109 str += sprintf(str, "%02X ", digest[j]); in pcrs_show()
110 str += sprintf(str, "\n"); in pcrs_show()
[all …]
/drivers/media/platform/st/sti/delta/
Ddelta-debug.c12 char *delta_streaminfo_str(struct delta_streaminfo *s, char *str, in delta_streaminfo_str() argument
18 snprintf(str, len, in delta_streaminfo_str()
31 return str; in delta_streaminfo_str()
34 char *delta_frameinfo_str(struct delta_frameinfo *f, char *str, in delta_frameinfo_str() argument
40 snprintf(str, len, in delta_frameinfo_str()
52 return str; in delta_frameinfo_str()
59 unsigned char str[100] = ""; in delta_trace_summary() local
66 delta_streaminfo_str(s, str, sizeof(str)), in delta_trace_summary()
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_mbox.c18 char *str = "Unknown"; in get_mbox_opcode_str() local
22 str = "UP"; in get_mbox_opcode_str()
26 str = "DOWN"; in get_mbox_opcode_str()
30 str = "READY"; in get_mbox_opcode_str()
34 str = "QLEN"; in get_mbox_opcode_str()
38 str = "QBIND_GRP"; in get_mbox_opcode_str()
42 str = "VQ_PRIORITY"; in get_mbox_opcode_str()
46 str = "PF_TYPE"; in get_mbox_opcode_str()
50 str = "ACK"; in get_mbox_opcode_str()
54 str = "NACK"; in get_mbox_opcode_str()
[all …]
/drivers/char/ipmi/
Dipmi_si_hardcode.c96 char *str; in ipmi_hardcode_init() local
102 str = si_type_str; in ipmi_hardcode_init()
103 if (*str != '\0') { in ipmi_hardcode_init()
104 for (i = 0; (i < SI_MAX_PARMS) && (*str != '\0'); i++) { in ipmi_hardcode_init()
105 si_type[i] = str; in ipmi_hardcode_init()
106 str = strchr(str, ','); in ipmi_hardcode_init()
107 if (str) { in ipmi_hardcode_init()
108 *str = '\0'; in ipmi_hardcode_init()
109 str++; in ipmi_hardcode_init()

12345678910>>...26