Home
last modified time | relevance | path

Searched full:string (Results 1 – 25 of 5440) sorted by relevance

12345678910>>...218

/kernel/liteos_m/testsuites/unittest/posix/src/string/
Dstrstr_test.c39 #include <string.h>
69 * @tc.name : find the first occurrence of sub-string in a string
74 const char destS[] = "string this is string";
75 const char srcS[] = "string";
79 LOG("[DEMO] posix string test case 1:strstr(%s) %s ok.\n", srcS, destS);
81 LOG("[DEMO] posix string test case 1:strstr(%s) %s fail.\n", srcS, destS);
89 * @tc.name : find the first occurrence of sub-string in a string
94 const char destS[] = "string this is string";
98 if (strcmp(ret, "this is string") == 0) {
99 LOG("[DEMO] posix string test case 2:strstr(%s) %s ok.\n", srcS, destS);
[all …]
Dstrchr_test.c38 #include <string.h>
70 * @tc.name : find the first occurrence of a character in a string
78 LOG("[DEMO] posix string test case 1:strchr(!) %s ok.\n", src);
80 LOG("[DEMO] posix string test case 1:strchr(!) %s fail.\n", src);
88 * @tc.name : find the first occurrence of a character in a string
96 LOG("[DEMO] posix string test case 2:strchr(l) %s ok.\n", src);
98 LOG("[DEMO] posix string test case 2:strchr(l) %s fail.\n", src);
106 * @tc.name : find the first occurrence of a character in a string
114 LOG("[DEMO] posix string test case 3:strchr(\'\\0\') %s ok.\n", src);
116 LOG("[DEMO] posix string test case 3:strchr(\'\\0\') %s fail.\n", src);
[all …]
/kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/apei/
Doutput_format.rst12 severity: <integer>, <severity string>
13 section: <integer>, severity: <integer>, <severity string>
16 fru_id: <uuid string>
17 fru_text: <string>
18 section_type: <section type string>
21 <severity string>* := recoverable | fatal | corrected | info
27 <section type string> := generic processor error | memory error | \
28 PCIe error | unknown, <uuid string>
35 [processor_type: <integer>, <proc type string>]
36 [processor_isa: <integer>, <proc isa string>]
[all …]
/kernel/linux/linux-5.10/arch/m68k/hp300/
Dhp300map.map157 string F1 = "\033[[A"
158 string F2 = "\033[[B"
159 string F3 = "\033[[C"
160 string F4 = "\033[[D"
161 string F5 = "\033[[E"
162 string F6 = "\033[17~"
163 string F7 = "\033[18~"
164 string F8 = "\033[19~"
165 string F9 = "\033[20~"
166 string F10 = "\033[21~"
[all …]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
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()
81 * PARAMETERS: string - Null terminated input string
[all …]
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 && count) { in acpi_ut_bound_string_length()
[all …]
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.
52 /* Get the size of the String to be returned, includes null terminator */ in acpi_ut_execute_HID()
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_desc->string.pointer); in acpi_ut_execute_HID()
[all …]
Dutstrtoul64.c4 * Module Name: utstrtoul64 - String-to-integer conversion support for both
17 * 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 returns a value of zero */ in acpi_ut_strtoul64()
[all …]
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()
50 * PARAMETERS: src_string - The source string to convert
54 * DESCRIPTION: Convert a string to uppercase
60 char *string; in acpi_ut_strupr() local
[all …]
Dexconvrt.c20 acpi_ex_convert_to_ascii(u64 integer, u16 base, u8 *string, u8 max_length);
27 * Integer, Buffer, or String
29 * implicit_conversion - Used for string conversion
61 /* Note: Takes advantage of common buffer/string fields */ in acpi_ex_convert_to_integer()
73 * Convert the buffer/string to an integer. Note that both buffers and in acpi_ex_convert_to_integer()
79 * 2) The end of the buffer or string has been reached in acpi_ex_convert_to_integer()
83 /* String conversion is different than Buffer conversion */ in acpi_ex_convert_to_integer()
88 * Convert string to an integer - for most cases, the string must be in acpi_ex_convert_to_integer()
94 * All other string-to-integer conversions are implicit conversions. in acpi_ex_convert_to_integer()
164 * Integer, Buffer, or String
[all …]
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()
122 * DESCRIPTION: Copy a String object to another String object
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()
153 * String will fit in existing non-static buffer. in acpi_ex_store_string_to_string()
154 * Clear old string and copy in the new one in acpi_ex_store_string_to_string()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
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, "txf%d_mcast_octets", i); in bnad_get_strings()
[all …]
/kernel/linux/linux-5.10/drivers/s390/char/
Ddefkeymap.map165 string F1 = "\033[[A"
166 string F2 = "\033[[B"
167 string F3 = "\033[[C"
168 string F4 = "\033[[D"
169 string F5 = "\033[[E"
170 string F6 = "\033[17~"
171 string F7 = "\033[18~"
172 string F8 = "\033[19~"
173 string F9 = "\033[20~"
174 string F10 = "\033[21~"
[all …]
/kernel/linux/linux-5.10/lib/
Dstring.c3 * linux/lib/string.c
10 * as inline code in <asm-xx/string.h>
24 #include <linux/string.h>
38 * strncasecmp - Case insensitive, length-limited string comparison
39 * @s1: One string
40 * @s2: The other string
84 * strcpy - Copy a %NUL terminated string
85 * @dest: Where to copy the string to
86 * @src: Where to copy the string from
102 * strncpy - Copy a length-limited, C-string
[all …]
/kernel/linux/linux-5.10/include/linux/
Dasn1.h32 ASN1_BTS = 3, /* Bit String */
33 ASN1_OTS = 4, /* Octet String */
41 ASN1_UTF8STR = 12, /* UTF8 String */
47 ASN1_NUMSTR = 18, /* Numerical String */
48 ASN1_PRNSTR = 19, /* Printable String */
49 ASN1_TEXSTR = 20, /* T61 String / Teletext String */
50 ASN1_VIDSTR = 21, /* Videotex String */
51 ASN1_IA5STR = 22, /* IA5 String */
54 ASN1_GRASTR = 25, /* Graphic String */
55 ASN1_VISSTR = 26, /* Visible String */
[all …]
/kernel/linux/linux-5.10/arch/s390/lib/
Dstring.c3 * Optimized string functions
13 #include <linux/string.h>
17 * Helper functions to find the end of a string
41 * strlen - Find the length of a string
42 * @s: The string to be sized
55 * strnlen - Find the length of a length-limited string
56 * @s: The string to be sized
70 * strcpy - Copy a %NUL terminated string
71 * @dest: Where to copy the string to
72 * @src: Where to copy the string from
[all …]
/kernel/linux/linux-5.10/drivers/tty/vt/
Ddefkeymap.map263 string F1 = "\033[[A"
264 string F2 = "\033[[B"
265 string F3 = "\033[[C"
266 string F4 = "\033[[D"
267 string F5 = "\033[[E"
268 string F6 = "\033[17~"
269 string F7 = "\033[18~"
270 string F8 = "\033[19~"
271 string F9 = "\033[20~"
272 string F10 = "\033[21~"
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dstrfilter.h9 /* A node of string filter */
16 /* String filter */
22 * strfilter__new - Create a new string filter
34 * @filter: Original string filter
47 * @filter: Original string filter
59 * strfilter__compare - compare given string and a string filter
60 * @filter: String filter
61 * @str: target string
68 * strfilter__delete - delete a string filter
69 * @filter: String filter to delete
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
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/tools/lib/traceevent/
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/kunit/
Dassert.h38 * @format: a function which formats the data in this kunit_assert to a string.
41 * format a string to a user reporting the failure.
65 * @fmt: The formatting function which builds a string out of this kunit_assert.
114 * @condition: A string representation of a conditional expression.
134 * @cond: A string representation of the expression asserted true or false.
152 * @text: A string representation of the expression passed to the expectation.
172 * @txt: A string representation of the expression passed to the expectation.
190 * @operation: A string representation of the comparison operator (e.g. "==").
191 * @left_text: A string representation of the expression in the left slot.
193 * @right_text: A string representation of the expression in the right slot.
[all …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/
Djsmn.h9 * o String
22 /* Invalid character inside JSON string */
24 /* The string is not a full JSON packet, more bytes expected */
32 * @param type type (object, array, string etc.)
33 * @param start start position in JSON data string
34 * @param end end position in JSON data string
45 * the string being parsed now and current position in that string
48 unsigned int pos; /* offset in the JSON string */
59 * Run JSON parser. It parses a JSON data string into and array of tokens,
/kernel/linux/linux-5.10/include/trace/events/
Dmmflags.h59 #define IF_HAVE_PG_PURGEABLE(flag,string) ,{1UL << flag, string} argument
61 #define IF_HAVE_PG_PURGEABLE(flag,string) argument
65 #define IF_HAVE_PG_XPM_INTEGRITY(flag,string) ,{1UL << flag, string} argument
67 #define IF_HAVE_PG_XPM_INTEGRITY(flag,string) argument
71 #define IF_HAVE_PG_MLOCK(flag,string) ,{1UL << flag, string} argument
73 #define IF_HAVE_PG_MLOCK(flag,string) argument
77 #define IF_HAVE_PG_UNCACHED(flag,string) ,{1UL << flag, string} argument
79 #define IF_HAVE_PG_UNCACHED(flag,string) argument
83 #define IF_HAVE_PG_HWPOISON(flag,string) ,{1UL << flag, string} argument
85 #define IF_HAVE_PG_HWPOISON(flag,string) argument
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Dprocattr.c22 * @string: Returns - string containing the profile info (NOT NULL)
24 * Returns: length of @string on success else error on failure
28 * Creates a string containing the namespace_name://profile_name for
31 * Returns: size of string placed in @string else error code on failure
33 int aa_getprocattr(struct aa_label *label, char **string) in aa_getprocattr() argument
49 *string = kmalloc(len + 2, GFP_KERNEL); in aa_getprocattr()
50 if (!*string) { in aa_getprocattr()
55 len = aa_label_snxprint(*string, len + 2, current_ns, label, in aa_getprocattr()
63 (*string)[len] = '\n'; in aa_getprocattr()
64 (*string)[len + 1] = 0; in aa_getprocattr()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dcifs_unicode.c157 * cifs_from_utf16 - convert utf16le string to local charset
165 * Convert a little-endian utf16le string (as sent by the server) to a string
169 * string is always properly null terminated and fits in the destination
170 * buffer. Returns the length of the destination string in bytes (including
236 /* properly null-terminate string */ in cifs_from_utf16()
246 * FUNCTION: Convert character string to unicode string
296 * cifs_utf16_bytes - how long will a string be after conversion?
297 * @utf16 - pointer to input string
298 * @maxbytes - don't go past this many bytes of input string
301 * Walk a utf16le string and return the number of bytes that the string will
[all …]

12345678910>>...218