Home
last modified time | relevance | path

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

1234567891011

/drivers/staging/epl/
DDebug.h176 #define DEBUG_TRACE0(lvl,str) TraceLvl((lvl),str) argument
177 #define DEBUG_TRACE1(lvl,str,p1) TraceLvl((lvl),str,p1) argument
178 #define DEBUG_TRACE2(lvl,str,p1,p2) TraceLvl((lvl),str,p1,p2) argument
179 #define DEBUG_TRACE3(lvl,str,p1,p2,p3) TraceLvl((lvl),str,p1,p2,p3) argument
180 #define DEBUG_TRACE4(lvl,str,p1,p2,p3,p4) TraceLvl((lvl),str,p1,p2,p3,p4) argument
193 #define DEBUG_LVL_ALWAYS_TRACE0(str) TRACE0(str) argument
194 #define DEBUG_LVL_ALWAYS_TRACE1(str,p1) TRACE1(str,p1) argument
195 #define DEBUG_LVL_ALWAYS_TRACE2(str,p1,p2) TRACE2(str,p1,p2) argument
196 #define DEBUG_LVL_ALWAYS_TRACE3(str,p1,p2,p3) TRACE3(str,p1,p2,p3) argument
197 #define DEBUG_LVL_ALWAYS_TRACE4(str,p1,p2,p3,p4) TRACE4(str,p1,p2,p3,p4) argument
[all …]
/drivers/s390/block/
Ddasd_proc.c183 dasd_statistics_array(char *str, unsigned int *array, int factor) in dasd_statistics_array() argument
188 str += sprintf(str, "%7d ", array[i] / factor); in dasd_statistics_array()
190 str += sprintf(str, "\n"); in dasd_statistics_array()
192 str += sprintf(str,"\n"); in dasd_statistics_array()
193 return str; in dasd_statistics_array()
204 char *str; in dasd_statistics_read() local
220 str = page; in dasd_statistics_read()
221 str += sprintf(str, "%d dasd I/O requests\n", prof->dasd_io_reqs); in dasd_statistics_read()
222 str += sprintf(str, "with %u sectors(512B each)\n", in dasd_statistics_read()
224 str += sprintf(str, "Scale Factor is %d\n", factor); in dasd_statistics_read()
[all …]
Ddasd_devmap.c110 dasd_call_setup(char *str) in dasd_call_setup() argument
115 dasd[count++] = str; in dasd_call_setup()
128 dasd_busid(char **str, int *id0, int *id1, int *devno) in dasd_busid() argument
133 if (strncmp(DASD_IPLDEV, *str, strlen(DASD_IPLDEV)) == 0) { in dasd_busid()
142 *str += strlen(DASD_IPLDEV); in dasd_busid()
148 if ((*str)[0] == '0' && (*str)[1] == 'x') { in dasd_busid()
149 *str += 2; in dasd_busid()
152 if (!isxdigit((*str)[0])) /* We require at least one hex digit */ in dasd_busid()
154 val = simple_strtoul(*str, str, 16); in dasd_busid()
155 if (old_style || (*str)[0] != '.') { in dasd_busid()
[all …]
/drivers/firmware/
Discsi_ibft.c279 char *str = buf; in sprintf_ipaddr() local
287 str += sprintf(buf, "%pI4", ip + 12); in sprintf_ipaddr()
292 str += sprintf(str, "%pI6", ip); in sprintf_ipaddr()
294 str += sprintf(str, "\n"); in sprintf_ipaddr()
295 return str - buf; in sprintf_ipaddr()
298 static ssize_t sprintf_string(char *str, int len, char *buf) in sprintf_string() argument
300 return sprintf(str, "%.*s\n", len, buf); in sprintf_string()
340 char *str = buf; in ibft_attr_show_initiator() local
347 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator()
350 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator()
[all …]
Defivars.c195 char *str = buf; in efivar_guid_read() local
200 efi_guid_unparse(&var->VendorGuid, str); in efivar_guid_read()
201 str += strlen(str); in efivar_guid_read()
202 str += sprintf(str, "\n"); in efivar_guid_read()
204 return str - buf; in efivar_guid_read()
211 char *str = buf; in efivar_attr_read() local
222 str += sprintf(str, "EFI_VARIABLE_NON_VOLATILE\n"); in efivar_attr_read()
224 str += sprintf(str, "EFI_VARIABLE_BOOTSERVICE_ACCESS\n"); in efivar_attr_read()
226 str += sprintf(str, "EFI_VARIABLE_RUNTIME_ACCESS\n"); in efivar_attr_read()
227 return str - buf; in efivar_attr_read()
[all …]
Ddmi_scan.c50 char *str; in dmi_string() local
57 str = dmi_alloc(len); in dmi_string()
58 if (str != NULL) in dmi_string()
59 strcpy(str, bp); in dmi_string()
63 return str; in dmi_string()
510 int dmi_name_in_serial(const char *str) in dmi_name_in_serial() argument
513 if (dmi_ident[f] && strstr(dmi_ident[f], str)) in dmi_name_in_serial()
522 int dmi_name_in_vendors(const char *str) in dmi_name_in_vendors() argument
530 if (dmi_ident[f] && strstr(dmi_ident[f], str)) in dmi_name_in_vendors()
629 bool dmi_match(enum dmi_field f, const char *str) in dmi_match() argument
[all …]
/drivers/mmc/core/
Ddebugfs.c45 const char *str; in mmc_ios_show() local
60 str = "open drain"; in mmc_ios_show()
63 str = "push-pull"; in mmc_ios_show()
66 str = "invalid"; in mmc_ios_show()
69 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show()
73 str = "don't care"; in mmc_ios_show()
76 str = "active high"; in mmc_ios_show()
79 str = "active low"; in mmc_ios_show()
82 str = "invalid"; in mmc_ios_show()
85 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show()
[all …]
/drivers/telephony/
Dixj_pcmcia.c70 char *str; in ixj_get_serial() local
74 str = link->prod_id[0]; in ixj_get_serial()
75 if (!str) in ixj_get_serial()
77 printk("%s", str); in ixj_get_serial()
78 str = link->prod_id[1]; in ixj_get_serial()
79 if (!str) in ixj_get_serial()
81 printk(" %s", str); in ixj_get_serial()
82 str = link->prod_id[2]; in ixj_get_serial()
83 if (!str) in ixj_get_serial()
86 for (i = strlen(str) - 1; i >= 0; i--) { in ixj_get_serial()
[all …]
/drivers/net/wan/lmc/
Dlmc_debug.c15 char str[80], *pstr; in lmcConsoleLog() local
17 sprintf(str, KERN_DEBUG "lmc: %s: ", type); in lmcConsoleLog()
18 pstr = str+strlen(str); in lmcConsoleLog()
36 printk(str); in lmcConsoleLog()
37 sprintf(str, KERN_DEBUG "lmc: %s: ", type); in lmcConsoleLog()
38 pstr=str+strlen(str); in lmcConsoleLog()
44 printk(str); in lmcConsoleLog()
/drivers/xen/
Dmanage.c138 char *str; in shutdown_handler() local
150 str = (char *)xenbus_read(xbt, "control", "shutdown", NULL); in shutdown_handler()
152 if (XENBUS_IS_ERR_READ(str)) { in shutdown_handler()
161 kfree(str); in shutdown_handler()
165 if (strcmp(str, "poweroff") == 0 || in shutdown_handler()
166 strcmp(str, "halt") == 0) { in shutdown_handler()
169 } else if (strcmp(str, "reboot") == 0) { in shutdown_handler()
173 } else if (strcmp(str, "suspend") == 0) { in shutdown_handler()
177 printk(KERN_INFO "Ignoring shutdown request: %s\n", str); in shutdown_handler()
181 kfree(str); in shutdown_handler()
/drivers/acpi/
Dosl.c941 static int __init acpi_os_name_setup(char *str) in acpi_os_name_setup() argument
946 if (!str || !*str) in acpi_os_name_setup()
949 for (; count-- && str && *str; str++) { in acpi_os_name_setup()
950 if (isalnum(*str) || *str == ' ' || *str == ':') in acpi_os_name_setup()
951 *p++ = *str; in acpi_os_name_setup()
952 else if (*str == '\'' || *str == '"') in acpi_os_name_setup()
1006 int __init acpi_osi_setup(char *str) in acpi_osi_setup() argument
1008 if (str == NULL || *str == '\0') { in acpi_osi_setup()
1011 } else if (!strcmp("!Linux", str)) { in acpi_osi_setup()
1013 } else if (*str == '!') { in acpi_osi_setup()
[all …]
Dvideo_detect.c237 static int __init acpi_backlight(char *str) in acpi_backlight() argument
239 if (str == NULL || *str == '\0') in acpi_backlight()
242 if (!strcmp("vendor", str)) in acpi_backlight()
245 if (!strcmp("video", str)) in acpi_backlight()
253 static int __init acpi_display_output(char *str) in acpi_display_output() argument
255 if (str == NULL || *str == '\0') in acpi_display_output()
258 if (!strcmp("vendor", str)) in acpi_display_output()
261 if (!strcmp("video", str)) in acpi_display_output()
/drivers/char/
Dhangcheck-timer.c81 static int __init hangcheck_parse_tick(char *str) in hangcheck_parse_tick() argument
84 if (get_option(&str,&par)) in hangcheck_parse_tick()
89 static int __init hangcheck_parse_margin(char *str) in hangcheck_parse_margin() argument
92 if (get_option(&str,&par)) in hangcheck_parse_margin()
97 static int __init hangcheck_parse_reboot(char *str) in hangcheck_parse_reboot() argument
100 if (get_option(&str,&par)) in hangcheck_parse_reboot()
105 static int __init hangcheck_parse_dump_tasks(char *str) in hangcheck_parse_dump_tasks() argument
108 if (get_option(&str,&par)) in hangcheck_parse_dump_tasks()
/drivers/pnp/
Dsupport.c39 void pnp_eisa_id_to_string(u32 id, char *str) in pnp_eisa_id_to_string() argument
51 str[0] = 'A' + ((id >> 26) & 0x3f) - 1; in pnp_eisa_id_to_string()
52 str[1] = 'A' + ((id >> 21) & 0x1f) - 1; in pnp_eisa_id_to_string()
53 str[2] = 'A' + ((id >> 16) & 0x1f) - 1; in pnp_eisa_id_to_string()
54 str[3] = hex_asc_hi(id >> 8); in pnp_eisa_id_to_string()
55 str[4] = hex_asc_lo(id >> 8); in pnp_eisa_id_to_string()
56 str[5] = hex_asc_hi(id); in pnp_eisa_id_to_string()
57 str[6] = hex_asc_lo(id); in pnp_eisa_id_to_string()
58 str[7] = '\0'; in pnp_eisa_id_to_string()
/drivers/pnp/pnpbios/
Dcore.c409 static int __init pnpbios_setup(char *str) in pnpbios_setup() argument
413 while ((str != NULL) && (*str != '\0')) { in pnpbios_setup()
414 if (strncmp(str, "off", 3) == 0) in pnpbios_setup()
416 if (strncmp(str, "on", 2) == 0) in pnpbios_setup()
418 invert = (strncmp(str, "no-", 3) == 0); in pnpbios_setup()
420 str += 3; in pnpbios_setup()
421 if (strncmp(str, "curr", 4) == 0) in pnpbios_setup()
423 str = strchr(str, ','); in pnpbios_setup()
424 if (str != NULL) in pnpbios_setup()
425 str += strspn(str, ", \t"); in pnpbios_setup()
/drivers/s390/char/
Dtape_proc.c42 const char *str; in tape_proc_show() local
66 str = tape_state_verbose[device->tape_state]; in tape_proc_show()
68 str = "UNKNOWN"; in tape_proc_show()
69 seq_printf(m, "%s\t", str); in tape_proc_show()
73 str = tape_op_verbose[request->op]; in tape_proc_show()
75 str = "---"; in tape_proc_show()
76 seq_printf(m, "%s\t", str); in tape_proc_show()
Dsclp.h164 sclp_ebcasc_str(unsigned char *str, int nr) in sclp_ebcasc_str() argument
166 (MACHINE_IS_VM) ? EBCASC(str, nr) : EBCASC_500(str, nr); in sclp_ebcasc_str()
171 sclp_ascebc_str(unsigned char *str, int nr) in sclp_ascebc_str() argument
173 (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr); in sclp_ascebc_str()
/drivers/char/tpm/
Dtpm.c734 char *str = buf; in tpm_show_pcrs() local
764 str += sprintf(str, "PCR-%02d: ", i); in tpm_show_pcrs()
766 str += sprintf(str, "%02X ", *(data + 10 + j)); in tpm_show_pcrs()
767 str += sprintf(str, "\n"); in tpm_show_pcrs()
771 return str - buf; in tpm_show_pcrs()
788 char *str = buf; in tpm_show_pubek() local
816 str += in tpm_show_pubek()
817 sprintf(str, in tpm_show_pubek()
829 str += sprintf(str, "%02X ", data[i + 38]); in tpm_show_pubek()
831 str += sprintf(str, "\n"); in tpm_show_pubek()
[all …]
/drivers/pci/hotplug/
Dcpcihp_generic.c81 char* str; in validate_parameters() local
89 str = bridge; in validate_parameters()
90 if(!*str) in validate_parameters()
93 tmp = simple_strtoul(str, &p, 16); in validate_parameters()
94 if(p == str || tmp > 0xff) { in validate_parameters()
104 str = p + 1; in validate_parameters()
105 tmp = simple_strtoul(str, &p, 16); in validate_parameters()
106 if(p == str || tmp > 0x1f) { in validate_parameters()
/drivers/staging/wlan-ng/
Dwlan_compat.h160 #define wlan_mkprintstr(buf, buflen, str, strlen) \ argument
164 memset(str, 0, (strlen)); \
167 (str)[j] = (buf)[i]; \
170 (str)[j] = '\\'; \
171 (str)[j+1] = 'x'; \
172 (str)[j+2] = wlan_hexchar(((buf)[i] & 0xf0) >> 4); \
173 (str)[j+3] = wlan_hexchar(((buf)[i] & 0x0f)); \
/drivers/input/serio/
Di8042.c149 unsigned char data, str; in i8042_flush() local
154 while (((str = i8042_read_status()) & I8042_STR_OBF) && (i < I8042_BUFFER_SIZE)) { in i8042_flush()
159 str & I8042_STR_AUXDATA ? "aux" : "kbd"); in i8042_flush()
309 unsigned char str, data; in i8042_interrupt() local
315 str = i8042_read_status(); in i8042_interrupt()
316 if (unlikely(~str & I8042_STR_OBF)) { in i8042_interrupt()
325 if (i8042_mux_present && (str & I8042_STR_AUXDATA)) { in i8042_interrupt()
330 if (str & I8042_STR_MUXERR) { in i8042_interrupt()
331 dbg("MUX error, status is %02x, data is %02x", str, data); in i8042_interrupt()
348 str = last_str; in i8042_interrupt()
[all …]
/drivers/s390/cio/
Dblacklist.c105 static int parse_busid(char *str, unsigned int *cssid, unsigned int *ssid, in parse_busid() argument
113 if (*str == '\0') in parse_busid()
117 str_work = str; in parse_busid()
118 val = simple_strtoul(str, &str_work, 16); in parse_busid()
131 str_work = str; in parse_busid()
148 "kernel parameter\n", str); in parse_busid()
153 static int blacklist_parse_parameters(char *str, range_action action, in blacklist_parse_parameters() argument
163 while ((parm = strsep(&str, ","))) { in blacklist_parse_parameters()
208 blacklist_setup (char *str) in blacklist_setup() argument
211 if (blacklist_parse_parameters(str, add, 1)) in blacklist_setup()
/drivers/media/video/
Dstk-webcam.h38 #define STK_INFO(str, args...) printk(KERN_INFO PREFIX str, ##args) argument
39 #define STK_ERROR(str, args...) printk(KERN_ERR PREFIX str, ##args) argument
40 #define STK_WARNING(str, args...) printk(KERN_WARNING PREFIX str, ##args) argument
/drivers/of/
Ddevice.c128 char *str, ssize_t len) in of_device_get_modalias() argument
135 csize = snprintf(str, len, "of:N%sT%s", in of_device_get_modalias()
163 memcpy(&str[csize + 1], compat, cplen); in of_device_get_modalias()
165 char c = str[i]; in of_device_get_modalias()
167 str[i] = 'C'; in of_device_get_modalias()
169 str[i] = '_'; in of_device_get_modalias()
/drivers/mtd/
Dafs.c171 char *str; in parse_afs_partitions() local
212 str = (char *)(parts + idx); in parse_afs_partitions()
235 strcpy(str, iis.name); in parse_afs_partitions()
237 parts[idx].name = str; in parse_afs_partitions()
244 iis.imageNumber, str); in parse_afs_partitions()
247 str = str + strlen(iis.name) + 1; in parse_afs_partitions()

1234567891011