Home
last modified time | relevance | path

Searched refs:string (Results 1 - 25 of 7430) sorted by relevance

12345678910>>...298

/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dutstrsuppt.c4 * Module Name: utstrsuppt - Support functions for string-to-integer conversion
27 * PARAMETERS: string - Null terminated input string
32 * DESCRIPTION: Performs a base 8 conversion of the input string to an
40 acpi_status acpi_ut_convert_octal_string(char *string, u64 *return_value_ptr) in acpi_ut_convert_octal_string() argument
45 /* Convert each ASCII byte in the input string */ in acpi_ut_convert_octal_string()
47 while (*string) { in acpi_ut_convert_octal_string()
53 if (!(ACPI_IS_OCTAL_DIGIT(*string))) { in acpi_ut_convert_octal_string()
62 status = acpi_ut_insert_digit(&accumulated_value, 8, *string); in acpi_ut_convert_octal_string()
68 string in acpi_ut_convert_octal_string()
94 acpi_ut_convert_decimal_string(char *string, u64 *return_value_ptr) acpi_ut_convert_decimal_string() argument
148 acpi_ut_convert_hex_string(char *string, u64 *return_value_ptr) acpi_ut_convert_hex_string() argument
200 acpi_ut_remove_leading_zeros(char **string) acpi_ut_remove_leading_zeros() argument
225 acpi_ut_remove_whitespace(char **string) acpi_ut_remove_whitespace() argument
247 acpi_ut_detect_hex_prefix(char **string) acpi_ut_detect_hex_prefix() argument
271 acpi_ut_remove_hex_prefix(char **string) acpi_ut_remove_hex_prefix() argument
292 acpi_ut_detect_octal_prefix(char **string) acpi_ut_detect_octal_prefix() argument
[all...]
H A Dutstrtoul64.c17 * This module contains the top-level string to 64/32-bit unsigned integer
23 * constants than the runtime (interpreter) integer-to-string conversions.
34 * debugger - Command line input string conversion
51 * support (explicit/implicit) for octal string conversions.
58 * PARAMETERS: string - Null terminated input string,
66 * DESCRIPTION: Convert a string into an unsigned integer. Always performs a
80 acpi_status acpi_ut_strtoul64(char *string, u64 *return_value) in acpi_ut_strtoul64() argument
86 ACPI_FUNCTION_TRACE_STR(ut_strtoul64, string); in acpi_ut_strtoul64()
90 /* A NULL return string return in acpi_ut_strtoul64()
206 acpi_ut_implicit_strtoul64(char *string) acpi_ut_implicit_strtoul64() argument
287 acpi_ut_explicit_strtoul64(char *string) acpi_ut_explicit_strtoul64() argument
[all...]
H A Dutprint.c25 acpi_ut_bound_string_length(const char *string, acpi_size count);
27 static char *acpi_ut_bound_string_output(char *string, const char *end, char c);
29 static char *acpi_ut_format_number(char *string,
34 static char *acpi_ut_put_number(char *string, u64 number, u8 base, u8 upper);
40 * PARAMETERS: string - String with boundary
41 * count - Boundary of the string
43 * RETURN: Length of the string. Less than or equal to Count.
45 * DESCRIPTION: Calculate the length of a string with boundary.
50 acpi_ut_bound_string_length(const char *string, acpi_size count) in acpi_ut_bound_string_length() argument
54 while (*string in acpi_ut_bound_string_length()
77 acpi_ut_bound_string_output(char *string, const char *end, char c) acpi_ut_bound_string_output() argument
104 acpi_ut_put_number(char *string, u64 number, u8 base, u8 upper) acpi_ut_put_number() argument
140 acpi_ut_scan_number(const char *string, u64 *number_ptr) acpi_ut_scan_number() argument
166 acpi_ut_print_number(char *string, u64 number) acpi_ut_print_number() argument
201 acpi_ut_format_number(char *string, char *end, u64 number, u8 base, s32 width, s32 precision, u8 type) acpi_ut_format_number() argument
318 vsnprintf(char *string, acpi_size size, const char *format, va_list args) vsnprintf() argument
571 snprintf(char *string, acpi_size size, const char *format, ...) snprintf() argument
596 sprintf(char *string, const char *format, ...) sprintf() argument
[all...]
H A Ddbinput.c35 * This list of commands must match the string table below it
244 {1, " [0x01 0x1234 \"string\"]",
329 * PARAMETERS: command - Command string to match
384 * PARAMETERS: command - Command string to match
414 * PARAMETERS: command - Optional command string to display help.
452 * PARAMETERS: string - Command buffer
461 char *acpi_db_get_next_token(char *string, in acpi_db_get_next_token() argument
470 if (!string || !(*string)) { in acpi_db_get_next_token()
476 while (*string in acpi_db_get_next_token()
[all...]
H A Dutnonansi.c16 * string functions.
22 * PARAMETERS: src_string - The source string to convert
26 * DESCRIPTION: Convert a string to lowercase
31 char *string; in acpi_ut_strlwr() local
39 /* Walk entire string, lowercasing the letters */ in acpi_ut_strlwr()
41 for (string = src_string; *string; string++) { in acpi_ut_strlwr()
42 *string = (char)tolower((int)*string); in acpi_ut_strlwr()
60 char *string; acpi_ut_strupr() local
[all...]
H A Dexstorob.c76 * truncated if the string is smaller than the buffer. However, "other" in acpi_ex_store_buffer_to_buffer()
84 * If the original source was a string, we must truncate the buffer, in acpi_ex_store_buffer_to_buffer()
141 /* We know that source_desc is a string by now */ in acpi_ex_store_string_to_string()
143 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string()
144 length = source_desc->string.length; in acpi_ex_store_string_to_string()
147 * Replace existing string value if it will fit and the string in acpi_ex_store_string_to_string()
150 if ((length < target_desc->string.length) && in acpi_ex_store_string_to_string()
154 * Clear old string and copy in the new one in acpi_ex_store_string_to_string()
156 memset(target_desc->string in acpi_ex_store_string_to_string()
[all...]
H A Ddbconvert.c90 * PARAMETERS: string - Input string to be converted
95 * DESCRIPTION: Convert a string to a buffer object. String is treated a list
101 acpi_db_convert_to_buffer(char *string, union acpi_object *object) in acpi_db_convert_to_buffer() argument
111 acpi_ut_remove_whitespace(&string); in acpi_db_convert_to_buffer()
115 for (i = 0, length = 0; string[i];) { in acpi_db_convert_to_buffer()
119 while (string[i] && ((string[i] == ',') || (string[i] == ' '))) { in acpi_db_convert_to_buffer()
131 for (i = 0, j = 0; string[ in acpi_db_convert_to_buffer()
165 acpi_db_convert_to_package(char *string, union acpi_object *object) acpi_db_convert_to_package() argument
222 acpi_db_convert_to_object(acpi_object_type type, char *string, union acpi_object *object) acpi_db_convert_to_object() argument
[all...]
H A Dutids.c22 * return_id - Where the string HID is returned
28 * Integer or a String. A string is always returned. An EISAID
29 * is converted to a string.
57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID()
70 /* Area for the string starts after PNP_DEVICE_ID struct */ in acpi_ut_execute_HID()
72 hid->string = in acpi_ut_execute_HID()
75 /* Convert EISAID to a string or simply copy existing string */ in acpi_ut_execute_HID()
78 acpi_ex_eisa_id_to_string(hid->string, obj_desc->integer.value); in acpi_ut_execute_HID()
80 strcpy(hid->string, obj_des in acpi_ut_execute_HID()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dutstrsuppt.c4 * Module Name: utstrsuppt - Support functions for string-to-integer conversion
27 * PARAMETERS: string - Null terminated input string
32 * DESCRIPTION: Performs a base 8 conversion of the input string to an
40 acpi_status acpi_ut_convert_octal_string(char *string, u64 *return_value_ptr) in acpi_ut_convert_octal_string() argument
45 /* Convert each ASCII byte in the input string */ in acpi_ut_convert_octal_string()
47 while (*string) { in acpi_ut_convert_octal_string()
53 if (!(ACPI_IS_OCTAL_DIGIT(*string))) { in acpi_ut_convert_octal_string()
62 status = acpi_ut_insert_digit(&accumulated_value, 8, *string); in acpi_ut_convert_octal_string()
68 string in acpi_ut_convert_octal_string()
94 acpi_ut_convert_decimal_string(char *string, u64 *return_value_ptr) acpi_ut_convert_decimal_string() argument
148 acpi_ut_convert_hex_string(char *string, u64 *return_value_ptr) acpi_ut_convert_hex_string() argument
200 acpi_ut_remove_leading_zeros(char **string) acpi_ut_remove_leading_zeros() argument
225 acpi_ut_remove_whitespace(char **string) acpi_ut_remove_whitespace() argument
247 acpi_ut_detect_hex_prefix(char **string) acpi_ut_detect_hex_prefix() argument
271 acpi_ut_remove_hex_prefix(char **string) acpi_ut_remove_hex_prefix() argument
292 acpi_ut_detect_octal_prefix(char **string) acpi_ut_detect_octal_prefix() argument
[all...]
H A Dutstrtoul64.c17 * This module contains the top-level string to 64/32-bit unsigned integer
23 * constants than the runtime (interpreter) integer-to-string conversions.
34 * debugger - Command line input string conversion
51 * support (explicit/implicit) for octal string conversions.
58 * PARAMETERS: string - Null terminated input string,
66 * DESCRIPTION: Convert a string into an unsigned integer. Always performs a
80 acpi_status acpi_ut_strtoul64(char *string, u64 *return_value) in acpi_ut_strtoul64() argument
86 ACPI_FUNCTION_TRACE_STR(ut_strtoul64, string); in acpi_ut_strtoul64()
90 /* A NULL return string return in acpi_ut_strtoul64()
206 acpi_ut_implicit_strtoul64(char *string) acpi_ut_implicit_strtoul64() argument
287 acpi_ut_explicit_strtoul64(char *string) acpi_ut_explicit_strtoul64() argument
[all...]
H A Dutprint.c25 acpi_ut_bound_string_length(const char *string, acpi_size count);
27 static char *acpi_ut_bound_string_output(char *string, const char *end, char c);
29 static char *acpi_ut_format_number(char *string,
34 static char *acpi_ut_put_number(char *string, u64 number, u8 base, u8 upper);
40 * PARAMETERS: string - String with boundary
41 * count - Boundary of the string
43 * RETURN: Length of the string. Less than or equal to Count.
45 * DESCRIPTION: Calculate the length of a string with boundary.
50 acpi_ut_bound_string_length(const char *string, acpi_size count) in acpi_ut_bound_string_length() argument
54 while (*string in acpi_ut_bound_string_length()
77 acpi_ut_bound_string_output(char *string, const char *end, char c) acpi_ut_bound_string_output() argument
104 acpi_ut_put_number(char *string, u64 number, u8 base, u8 upper) acpi_ut_put_number() argument
140 acpi_ut_scan_number(const char *string, u64 *number_ptr) acpi_ut_scan_number() argument
166 acpi_ut_print_number(char *string, u64 number) acpi_ut_print_number() argument
201 acpi_ut_format_number(char *string, char *end, u64 number, u8 base, s32 width, s32 precision, u8 type) acpi_ut_format_number() argument
318 vsnprintf(char *string, acpi_size size, const char *format, va_list args) vsnprintf() argument
571 snprintf(char *string, acpi_size size, const char *format, ...) snprintf() argument
596 sprintf(char *string, const char *format, ...) sprintf() argument
[all...]
H A Ddbinput.c35 * This list of commands must match the string table below it
246 {1, " [0x01 0x1234 \"string\"]",
332 * PARAMETERS: command - Command string to match
387 * PARAMETERS: command - Command string to match
417 * PARAMETERS: command - Optional command string to display help.
455 * PARAMETERS: string - Command buffer
464 char *acpi_db_get_next_token(char *string, in acpi_db_get_next_token() argument
473 if (!string || !(*string)) { in acpi_db_get_next_token()
479 while (*string in acpi_db_get_next_token()
[all...]
H A Dutnonansi.c16 * string functions.
22 * PARAMETERS: src_string - The source string to convert
26 * DESCRIPTION: Convert a string to lowercase
31 char *string; in acpi_ut_strlwr() local
39 /* Walk entire string, lowercasing the letters */ in acpi_ut_strlwr()
41 for (string = src_string; *string; string++) { in acpi_ut_strlwr()
42 *string = (char)tolower((int)*string); in acpi_ut_strlwr()
60 char *string; acpi_ut_strupr() local
[all...]
H A Dexstorob.c76 * truncated if the string is smaller than the buffer. However, "other" in acpi_ex_store_buffer_to_buffer()
84 * If the original source was a string, we must truncate the buffer, in acpi_ex_store_buffer_to_buffer()
141 /* We know that source_desc is a string by now */ in acpi_ex_store_string_to_string()
143 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string()
144 length = source_desc->string.length; in acpi_ex_store_string_to_string()
147 * Replace existing string value if it will fit and the string in acpi_ex_store_string_to_string()
150 if ((length < target_desc->string.length) && in acpi_ex_store_string_to_string()
154 * Clear old string and copy in the new one in acpi_ex_store_string_to_string()
156 memset(target_desc->string in acpi_ex_store_string_to_string()
[all...]
H A Ddbconvert.c90 * PARAMETERS: string - Input string to be converted
95 * DESCRIPTION: Convert a string to a buffer object. String is treated a list
101 acpi_db_convert_to_buffer(char *string, union acpi_object *object) in acpi_db_convert_to_buffer() argument
111 acpi_ut_remove_whitespace(&string); in acpi_db_convert_to_buffer()
115 for (i = 0, length = 0; string[i];) { in acpi_db_convert_to_buffer()
119 while (string[i] && ((string[i] == ',') || (string[i] == ' '))) { in acpi_db_convert_to_buffer()
131 for (i = 0, j = 0; string[ in acpi_db_convert_to_buffer()
165 acpi_db_convert_to_package(char *string, union acpi_object *object) acpi_db_convert_to_package() argument
222 acpi_db_convert_to_object(acpi_object_type type, char *string, union acpi_object *object) acpi_db_convert_to_object() argument
[all...]
H A Dutids.c22 * return_id - Where the string HID is returned
28 * Integer or a String. A string is always returned. An EISAID
29 * is converted to a string.
57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID()
70 /* Area for the string starts after PNP_DEVICE_ID struct */ in acpi_ut_execute_HID()
72 hid->string = in acpi_ut_execute_HID()
75 /* Convert EISAID to a string or simply copy existing string */ in acpi_ut_execute_HID()
78 acpi_ex_eisa_id_to_string(hid->string, obj_desc->integer.value); in acpi_ut_execute_HID()
80 strcpy(hid->string, obj_des in acpi_ut_execute_HID()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c528 bnad_get_strings(struct net_device *netdev, u32 stringset, u8 *string) in bnad_get_strings() argument
541 strncpy(string, bnad_net_stats_strings[i], in bnad_get_strings()
543 string += ETH_GSTRING_LEN; in bnad_get_strings()
548 sprintf(string, "txf%d_ucast_octets", i); in bnad_get_strings()
549 string += ETH_GSTRING_LEN; in bnad_get_strings()
550 sprintf(string, "txf%d_ucast", i); in bnad_get_strings()
551 string += ETH_GSTRING_LEN; in bnad_get_strings()
552 sprintf(string, "txf%d_ucast_vlan", i); in bnad_get_strings()
553 string += ETH_GSTRING_LEN; in bnad_get_strings()
554 sprintf(string, "tx in bnad_get_strings()
[all...]
/kernel/linux/linux-5.10/tools/lib/traceevent/
H A Devent-utils.h29 static inline char *strim(char *string) in strim() argument
33 if (!string) in strim()
35 while (*string) { in strim()
36 if (!isspace(*string)) in strim()
38 string++; in strim()
40 ret = string; in strim()
42 string = ret + strlen(ret) - 1; in strim()
43 while (string > ret) { in strim()
44 if (!isspace(*string)) in strim()
46 string in strim()
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dmmflags.h59 #define IF_HAVE_PG_PURGEABLE(flag,string) ,{1UL << flag, string}
61 #define IF_HAVE_PG_PURGEABLE(flag,string)
65 #define IF_HAVE_PG_XPM_INTEGRITY(flag,string) ,{1UL << flag, string}
67 #define IF_HAVE_PG_XPM_INTEGRITY(flag,string)
71 #define IF_HAVE_PG_MLOCK(flag,string) ,{1UL << flag, string}
73 #define IF_HAVE_PG_MLOCK(flag,string)
77 #define IF_HAVE_PG_UNCACHED(flag,string) ,{
[all...]
/kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DCore.py31 string = ""
37 string += flag_fields[event_name][field_name]['values'][idx]
41 string += " " + flag_fields[event_name][field_name]['delim'] + " "
42 string += flag_fields[event_name][field_name]['values'][idx]
46 return string
49 string = ""
54 string = symbolic_fields[event_name][field_name]['values'][idx]
57 string = symbolic_fields[event_name][field_name]['values'][idx]
60 return string
70 string
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DCore.py31 string = ""
37 string += flag_fields[event_name][field_name]['values'][idx]
41 string += " " + flag_fields[event_name][field_name]['delim'] + " "
42 string += flag_fields[event_name][field_name]['values'][idx]
46 return string
49 string = ""
54 string = symbolic_fields[event_name][field_name]['values'][idx]
57 string = symbolic_fields[event_name][field_name]['values'][idx]
60 return string
70 string
[all...]
/kernel/linux/linux-5.10/drivers/s390/char/
H A Draw3270.h205 * Little memory allocator for string objects.
207 struct string struct
213 char string[]; member
216 static inline struct string *
219 struct string *cs, *tmp; in alloc_string()
226 if (cs->size > size + sizeof(struct string)) { in alloc_string()
228 tmp = (struct string *) (endaddr - size) - 1; in alloc_string()
230 cs->size -= size + sizeof(struct string); in alloc_string()
243 free_string(struct list_head *free_list, struct string *cs) in free_string()
245 struct string *tm in free_string()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/x86/
H A Dapple.c79 newsize += key->string.length + 1; in acpi_extract_apple_properties()
83 newsize += val->string.length + 1; in acpi_extract_apple_properties()
117 newprops[k].string.length = key->string.length; in acpi_extract_apple_properties()
118 newprops[k].string.pointer = free_space; in acpi_extract_apple_properties()
119 memcpy(free_space, key->string.pointer, key->string.length); in acpi_extract_apple_properties()
120 free_space += key->string.length + 1; in acpi_extract_apple_properties()
126 newprops[v].string.length = val->string in acpi_extract_apple_properties()
[all...]
/kernel/linux/linux-5.10/security/smack/
H A Dsmack_access.c281 * readable string
282 * @string : the string to fill
286 static inline void smack_str_from_perm(char *string, int access) in smack_str_from_perm() argument
291 string[i++] = 'r'; in smack_str_from_perm()
293 string[i++] = 'w'; in smack_str_from_perm()
295 string[i++] = 'x'; in smack_str_from_perm()
297 string[i++] = 'a'; in smack_str_from_perm()
299 string[i++] = 't'; in smack_str_from_perm()
301 string[ in smack_str_from_perm()
420 smk_find_entry(const char *string) smk_find_entry() argument
443 smk_parse_smack(const char *string, int len) smk_parse_smack() argument
557 smk_import_entry(const char *string, int len) smk_import_entry() argument
[all...]
/kernel/linux/linux-6.6/security/smack/
H A Dsmack_access.c281 * readable string
282 * @string : the string to fill
286 static inline void smack_str_from_perm(char *string, int access) in smack_str_from_perm() argument
291 string[i++] = 'r'; in smack_str_from_perm()
293 string[i++] = 'w'; in smack_str_from_perm()
295 string[i++] = 'x'; in smack_str_from_perm()
297 string[i++] = 'a'; in smack_str_from_perm()
299 string[i++] = 't'; in smack_str_from_perm()
301 string[ in smack_str_from_perm()
421 smk_find_entry(const char *string) smk_find_entry() argument
444 smk_parse_smack(const char *string, int len) smk_parse_smack() argument
557 smk_import_entry(const char *string, int len) smk_import_entry() argument
[all...]

Completed in 11 milliseconds

12345678910>>...298