/drivers/gpu/host1x/ |
H A D | debug.h | 27 void (*fn)(void *ctx, const char *str, size_t len); 32 static inline void write_to_seqfile(void *ctx, const char *str, size_t len) argument 34 seq_write((struct seq_file *)ctx, str, len); 37 static inline void write_to_printk(void *ctx, const char *str, size_t len) argument 39 pr_info("%s", str);
|
/drivers/net/wan/lmc/ |
H A D | lmc_debug.c | 15 char str[80], *pstr; local 17 sprintf(str, KERN_DEBUG "lmc: %s: ", type); 18 pstr = str+strlen(str); 36 printk(str); 37 sprintf(str, KERN_DEBUG "lmc: %s: ", type); 38 pstr=str+strlen(str); 44 printk(str);
|
/drivers/staging/lustre/lustre/libcfs/ |
H A D | libcfs_string.c | 46 int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), argument 53 /* <str> must be a list of tokens separated by whitespace 55 * appears first in <str>, '*oldmask' is used as the starting point 58 while (*str != 0) { 59 while (isspace(*str)) 60 str++; 61 if (*str == 0) 63 if (*str == '+' || *str == '-') { 64 op = *str 114 cfs_firststr(char *str, size_t size) argument 142 cfs_trimwhite(char *str) argument 226 cfs_str2num_check(char *str, int nob, unsigned *num, unsigned min, unsigned max) argument 417 cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max, struct cfs_expr_list **elpp) argument 494 cfs_ip_addr_parse(char *str, int len, struct list_head *list) argument [all...] |
H A D | nidstrings.c | 71 char *str; local 76 str = libcfs_nidstrings[libcfs_nidstring_idx++]; 81 return str; 84 static int libcfs_lo_str2addr(const char *str, int nob, __u32 *addr); 85 static void libcfs_ip_addr2str(__u32 addr, char *str); 86 static int libcfs_ip_str2addr(const char *str, int nob, __u32 *addr); 87 static void libcfs_decnum_addr2str(__u32 addr, char *str); 88 static void libcfs_hexnum_addr2str(__u32 addr, char *str); 89 static int libcfs_num_str2addr(const char *str, int nob, __u32 *addr); 90 static int libcfs_num_parse(char *str, in 203 libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) argument 210 libcfs_ip_addr2str(__u32 addr, char *str) argument 227 libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) argument 248 libcfs_decnum_addr2str(__u32 addr, char *str) argument 254 libcfs_hexnum_addr2str(__u32 addr, char *str) argument 260 libcfs_num_str2addr(const char *str, int nob, __u32 *addr) argument 339 char *str; local 352 libcfs_str2lnd(const char *str) argument 369 char *str = libcfs_next_nidstring(); local 390 char *str; local 417 libcfs_str2net_internal(const char *str, __u32 *net) argument 454 libcfs_str2net(const char *str) argument 466 libcfs_str2nid(const char *str) argument 494 char *str = libcfs_next_nidstring(); local 510 libcfs_str2anynid(lnet_nid_t *nidp, const char *str) argument 597 libcfs_num_parse(char *str, int len, struct list_head *list) argument 790 cfs_parse_nidlist(char *str, int len, struct list_head *nidlist) argument [all...] |
/drivers/gpu/drm/nouveau/core/include/core/ |
H A D | option.h | 11 /* compares unterminated string 'str' with zero-terminated string 'cmp' */ 13 strncasecmpz(const char *str, const char *cmp, size_t len) argument 17 return strncasecmp(str, cmp, len);
|
/drivers/scsi/ |
H A D | fdomain.h | 22 extern int fdomain_setup(char *str);
|
H A D | sym53c416.h | 32 static void sym53c416_setup(char *str, int *ints);
|
/drivers/staging/board/ |
H A D | board.h | 9 #define board_staging(str, fn) \ 12 if (of_machine_is_compatible(str)) \
|
/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_string.h | 50 int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), 53 char *cfs_firststr(char *str, size_t size); 81 char *cfs_trimwhite(char *str); 83 int cfs_str2num_check(char *str, int nob, unsigned *num, 98 int cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max, 101 int cfs_ip_addr_parse(char *str, int len, struct list_head *list); 105 #define strtoul(str, endp, base) simple_strtoul(str, endp, base)
|
/drivers/mmc/core/ |
H A D | debugfs.c | 57 const char *str; local 74 str = "open drain"; 77 str = "push-pull"; 80 str = "invalid"; 83 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); 87 str = "don't care"; 90 str = "active high"; 93 str = "active low"; 96 str = "invalid"; 99 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); [all...] |
/drivers/firmware/ |
H A D | iscsi_ibft.c | 196 char *str = buf; local 204 str += sprintf(buf, "%pI4", ip + 12); 209 str += sprintf(str, "%pI6", ip); 211 str += sprintf(str, "\n"); 212 return str - buf; 215 static ssize_t sprintf_string(char *str, int len, char *buf) argument 217 return sprintf(str, "%.*s\n", len, buf); 249 char *str local 290 char *str = buf; local 347 char *str = buf; local [all...] |
/drivers/firmware/efi/libstub/ |
H A D | efi-stub-helper.c | 49 void efi_printk(efi_system_table_t *sys_table_arg, char *str) argument 53 for (s8 = str; *s8; s8++) { 318 char *str; local 324 str = strstr(cmdline, "efi="); 325 if (!str) 329 str += strlen("efi="); 335 while (*str) { 336 if (!strncmp(str, "nochunk", 7)) { 337 str += strlen("nochunk"); 342 while (*str 371 char *str; local [all...] |
/drivers/char/tpm/ |
H A D | tpm-sysfs.c | 56 char *str = buf; local 77 str += 78 sprintf(str, 96 str += sprintf(str, "%02X ", data[i + 28]); 98 str += sprintf(str, "\n"); 101 rc = str - buf; 113 char *str = buf; local 126 str 204 char *str = buf; local [all...] |
/drivers/edac/ |
H A D | edac_stub.c | 35 static int __init edac_report_setup(char *str) argument 37 if (!str) 40 if (!strncmp(str, "on", 2)) 42 else if (!strncmp(str, "off", 3)) 44 else if (!strncmp(str, "force", 5))
|
/drivers/char/ |
H A D | hangcheck-timer.c | 82 static int __init hangcheck_parse_tick(char *str) argument 85 if (get_option(&str,&par)) 90 static int __init hangcheck_parse_margin(char *str) argument 93 if (get_option(&str,&par)) 98 static int __init hangcheck_parse_reboot(char *str) argument 101 if (get_option(&str,&par)) 106 static int __init hangcheck_parse_dump_tasks(char *str) argument 109 if (get_option(&str,&par))
|
/drivers/s390/char/ |
H A D | tape_proc.c | 42 const char *str; local 66 str = tape_state_verbose[device->tape_state]; 68 str = "UNKNOWN"; 69 seq_printf(m, "%s\t", str); 73 str = tape_op_verbose[request->op]; 75 str = "---"; 76 seq_printf(m, "%s\t", str);
|
H A D | hmcdrv_ftp.c | 53 const char *str; /* command string */ member in struct:hmcdrv_ftp_cmd_desc 68 {.str = "get", /* [0] get (CRC = 0x68eb) */ 70 {.str = "dir", /* [1] dir (CRC = 0x6a9e) */ 72 {.str = "delete", /* [2] delete (CRC = 0x53ae) */ 74 {.str = "nls", /* [3] nls (CRC = 0xf87c) */ 76 {.str = "put", /* [4] put (CRC = 0xac56) */ 78 {.str = "append", /* [5] append (CRC = 0xf56e) */ 80 {.str = NULL} /* [6] unused */ 95 if (!pdesc->str || strncmp(pdesc->str, cm [all...] |
/drivers/staging/iio/Documentation/ |
H A D | lsiio.c | 33 static inline int check_prefix(const char *str, const char *prefix) argument 35 return strlen(str) > strlen(prefix) && 36 strncmp(str, prefix, strlen(prefix)) == 0; 39 static inline int check_postfix(const char *str, const char *postfix) argument 41 return strlen(str) > strlen(postfix) && 42 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0;
|
/drivers/pnp/ |
H A D | support.c | 39 void pnp_eisa_id_to_string(u32 id, char *str) argument 51 str[0] = 'A' + ((id >> 26) & 0x3f) - 1; 52 str[1] = 'A' + ((id >> 21) & 0x1f) - 1; 53 str[2] = 'A' + ((id >> 16) & 0x1f) - 1; 54 str[3] = hex_asc_hi(id >> 8); 55 str[4] = hex_asc_lo(id >> 8); 56 str[5] = hex_asc_hi(id); 57 str[6] = hex_asc_lo(id); 58 str[7] = '\0';
|
/drivers/media/usb/stkwebcam/ |
H A D | stk-webcam.h | 40 #define STK_INFO(str, args...) printk(KERN_INFO PREFIX str, ##args) 41 #define STK_ERROR(str, args...) printk(KERN_ERR PREFIX str, ##args) 42 #define STK_WARNING(str, args...) printk(KERN_WARNING PREFIX str, ##args)
|
/drivers/firmware/efi/ |
H A D | efi.c | 58 static int __init parse_efi_cmdline(char *str) argument 60 if (parse_option_str(str, "noruntime")) 77 char *str = buf; local 83 str += sprintf(str, "MPS=0x%lx\n", efi.mps); 85 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20); 87 str += sprintf(str, "ACPI=0x%lx\n", efi.acpi); 89 str 275 u8 str[EFI_VARIABLE_GUID_LEN + 1]; local [all...] |
/drivers/staging/lustre/lnet/lnet/ |
H A D | config.c | 51 lnet_syntax(char *name, char *str, int offset, int width) argument 61 LCONSOLE_ERROR_MSG(0x10f, "Error parsing '%s=\"%s\"'\n", name, str); 183 char *str; local 205 str = tmp = tokens; 212 while (str != NULL && *str != 0) { 213 char *comma = strchr(str, ','); 214 char *bracket = strchr(str, '('); 215 char *square = strchr(str, '['); 255 net = libcfs_str2net(cfs_trimwhite(str)); 418 lnet_str2tbs_sep(struct list_head *tbs, char *str) argument 476 lnet_expand1tb(struct list_head *list, char *str, char *sep1, char *sep2, char *item, int itemlen) argument 501 lnet_str2tbs_expand(struct list_head *tbs, char *str) argument 581 lnet_parse_hops(char *str, unsigned int *hops) argument 594 lnet_parse_priority(char *str, unsigned int *priority, char **token) argument 624 lnet_parse_route(char *str, int *im_a_router) argument [all...] |
/drivers/pci/hotplug/ |
H A D | cpcihp_generic.c | 81 char *str; local 89 str = bridge; 90 if (!*str) 93 tmp = simple_strtoul(str, &p, 16); 94 if (p == str || tmp > 0xff) { 104 str = p + 1; 105 tmp = simple_strtoul(str, &p, 16); 106 if (p == str || tmp > 0x1f) {
|
/drivers/usb/mon/ |
H A D | mon_stat.c | 23 char str[STAT_BUF_SIZE]; member in struct:snap 36 sp->slen = snprintf(sp->str, STAT_BUF_SIZE, 49 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen);
|
/drivers/xen/xenfs/ |
H A D | xenstored.c | 14 const char *str = (const char *)file->private_data; local 15 return simple_read_from_buffer(buf, size, off, str, strlen(str));
|