Home
last modified time | relevance | path

Searched refs:str (Results 1176 - 1200 of 14584) sorted by relevance

1...<<41424344454647484950>>...584

/kernel/linux/linux-5.10/arch/um/drivers/
H A Dssl.c37 static int ssl_config(char *str, char **error_out);
38 static int ssl_get_config(char *dev, char *str, int size, char **error_out);
71 static int ssl_config(char *str, char **error_out) in ssl_config() argument
73 return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts, in ssl_config()
77 static int ssl_get_config(char *dev, char *str, int size, char **error_out) in ssl_get_config() argument
79 return line_get_config(dev, serial_lines, ARRAY_SIZE(serial_lines), str, in ssl_get_config()
190 static int ssl_chan_setup(char *str) in ssl_chan_setup() argument
192 line_setup(conf, NR_PORTS, &def_conf, str, "serial line"); in ssl_chan_setup()
199 static int ssl_non_raw_setup(char *str) in ssl_non_raw_setup() argument
H A Dstdio_console.c43 static int con_config(char *str, char **error_out);
44 static int con_get_config(char *dev, char *str, int size, char **error_out);
77 static int con_config(char *str, char **error_out) in con_config() argument
79 return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out); in con_config()
82 static int con_get_config(char *dev, char *str, int size, char **error_out) in con_get_config() argument
84 return line_get_config(dev, vts, ARRAY_SIZE(vts), str, size, error_out); in con_get_config()
192 static int console_chan_setup(char *str) in console_chan_setup() argument
194 if (!strncmp(str, "sole=", 5)) /* console= option specifies tty */ in console_chan_setup()
197 line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console"); in console_chan_setup()
H A Dubd_kern.c235 static int fake_ide_setup(char *str) in fake_ide_setup() argument
250 char *str = *ptr, *end; in parse_unit() local
253 if(isdigit(*str)) { in parse_unit()
254 n = simple_strtoul(str, &end, 0); in parse_unit()
255 if(end == str) in parse_unit()
259 else if (('a' <= *str) && (*str <= 'z')) { in parse_unit()
260 n = *str - 'a'; in parse_unit()
261 str++; in parse_unit()
262 *ptr = str; in parse_unit()
271 ubd_setup_common(char *str, int *index_out, char **error_out) ubd_setup_common() argument
395 ubd_setup(char *str) ubd_setup() argument
434 udb_setup(char *str) udb_setup() argument
980 ubd_config(char *str, char **error_out) ubd_config() argument
1017 ubd_get_config(char *name, char *str, int size, char **error_out) ubd_get_config() argument
1049 ubd_id(char **str, int *start_out, int *end_out) ubd_id() argument
[all...]
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Drelocate.c115 char *str; in kaslr_disabled() local
118 str = strstr(builtin_cmdline, "nokaslr"); in kaslr_disabled()
119 if (str == builtin_cmdline || (str > builtin_cmdline && *(str - 1) == ' ')) in kaslr_disabled()
122 str = strstr(boot_command_line, "nokaslr"); in kaslr_disabled()
123 if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' ')) in kaslr_disabled()
/kernel/linux/linux-6.6/arch/um/drivers/
H A Dstdio_console.c43 static int con_config(char *str, char **error_out);
44 static int con_get_config(char *dev, char *str, int size, char **error_out);
75 static int con_config(char *str, char **error_out) in con_config() argument
77 return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out); in con_config()
80 static int con_get_config(char *dev, char *str, int size, char **error_out) in con_get_config() argument
82 return line_get_config(dev, vts, ARRAY_SIZE(vts), str, size, error_out); in con_get_config()
189 static int console_chan_setup(char *str) in console_chan_setup() argument
191 if (!strncmp(str, "sole=", 5)) /* console= option specifies tty */ in console_chan_setup()
194 line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console"); in console_chan_setup()
H A Dssl.c37 static int ssl_config(char *str, char **error_out);
38 static int ssl_get_config(char *dev, char *str, int size, char **error_out);
69 static int ssl_config(char *str, char **error_out) in ssl_config() argument
71 return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts, in ssl_config()
75 static int ssl_get_config(char *dev, char *str, int size, char **error_out) in ssl_get_config() argument
77 return line_get_config(dev, serial_lines, ARRAY_SIZE(serial_lines), str, in ssl_get_config()
187 static int ssl_chan_setup(char *str) in ssl_chan_setup() argument
189 line_setup(conf, NR_PORTS, &def_conf, str, "serial line"); in ssl_chan_setup()
196 static int ssl_non_raw_setup(char *str) in ssl_non_raw_setup() argument
/kernel/linux/linux-5.10/drivers/pnp/
H A Dsupport.c40 void pnp_eisa_id_to_string(u32 id, char *str) in pnp_eisa_id_to_string() argument
52 str[0] = 'A' + ((id >> 26) & 0x3f) - 1; in pnp_eisa_id_to_string()
53 str[1] = 'A' + ((id >> 21) & 0x1f) - 1; in pnp_eisa_id_to_string()
54 str[2] = 'A' + ((id >> 16) & 0x1f) - 1; in pnp_eisa_id_to_string()
55 str[3] = hex_asc_hi(id >> 8); in pnp_eisa_id_to_string()
56 str[4] = hex_asc_lo(id >> 8); in pnp_eisa_id_to_string()
57 str[5] = hex_asc_hi(id); in pnp_eisa_id_to_string()
58 str[6] = hex_asc_lo(id); in pnp_eisa_id_to_string()
59 str[7] = '\0'; in pnp_eisa_id_to_string()
/kernel/linux/linux-6.6/drivers/pnp/
H A 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()
/test/testfwk/xdevice/src/xdevice/_core/context/
H A Dlife_stage.py33 self._event_type: str = self._stage_name()
51 def _stage_name(self) -> str:
58 def __init__(self, action: str):
60 self.action: str = action
62 def _stage_name(self) -> str:
79 self._report_path: str = report_path
83 def _stage_name(self) -> str:
144 def _stage_name(self) -> str:
166 def _stage_name(self) -> str:
/third_party/libinput/src/
H A Devdev-tablet.h246 const char *str; in tablet_tool_type_to_string() local
249 case LIBINPUT_TABLET_TOOL_TYPE_PEN: str = "pen"; break; in tablet_tool_type_to_string()
250 case LIBINPUT_TABLET_TOOL_TYPE_ERASER: str = "eraser"; break; in tablet_tool_type_to_string()
251 case LIBINPUT_TABLET_TOOL_TYPE_BRUSH: str = "brush"; break; in tablet_tool_type_to_string()
252 case LIBINPUT_TABLET_TOOL_TYPE_PENCIL: str = "pencil"; break; in tablet_tool_type_to_string()
253 case LIBINPUT_TABLET_TOOL_TYPE_AIRBRUSH: str = "airbrush"; break; in tablet_tool_type_to_string()
254 case LIBINPUT_TABLET_TOOL_TYPE_MOUSE: str = "mouse"; break; in tablet_tool_type_to_string()
255 case LIBINPUT_TABLET_TOOL_TYPE_LENS: str = "lens"; break; in tablet_tool_type_to_string()
260 return str; in tablet_tool_type_to_string()
/third_party/python/Tools/peg_generator/pegen/
H A Dtestutil.py33 ns: Dict[str, Any] = {}
49 source: str, parser_class: Type[Parser], *, dedent: bool = True, verbose: bool = False
58 def make_parser(source: str) -> Type[Parser]:
64 def import_file(full_name: str, path: str) -> Any:
78 def generate_c_parser_source(grammar: Grammar) -> str:
87 library_dir: Optional[str] = None,
106 str(source),
107 build_dir=str(path),
/third_party/skia/third_party/externals/spirv-tools/test/tools/
H A Dplaceholder.py64 assert isinstance(source, str)
65 assert isinstance(suffix, str)
95 assert isinstance(content, str)
96 assert isinstance(suffix, str)
123 assert isinstance(source, str)
124 assert isinstance(suffix, str)
166 assert isinstance(source, str)
185 assert isinstance(filename, str)
205 assert isinstance(filename, str)
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
H A Dplaceholder.py64 assert isinstance(source, str)
65 assert isinstance(suffix, str)
95 assert isinstance(content, str)
96 assert isinstance(suffix, str)
123 assert isinstance(source, str)
124 assert isinstance(suffix, str)
166 assert isinstance(source, str)
185 assert isinstance(filename, str)
205 assert isinstance(filename, str)
/third_party/skia/third_party/externals/tint/src/transform/
H A Drenamer_test.cc36 EXPECT_EQ(expect, str(got)); in TEST_F()
71 EXPECT_EQ(expect, str(got)); in TEST_F()
107 EXPECT_EQ(expect, str(got)); in TEST_F()
140 EXPECT_EQ(expect, str(got)); in TEST_F()
175 EXPECT_EQ(expect, str(got)); in TEST_F()
210 EXPECT_EQ(expect, str(got)); in TEST_F()
250 EXPECT_EQ(expect, str(got)); in TEST_P()
275 EXPECT_EQ(expect, str(got)); in TEST_P()
300 EXPECT_EQ(expect, str(got)); in TEST_P()
/third_party/skia/third_party/externals/tint/src/writer/
H A Dtext_generator.cc43 std::string TextGenerator::TrimSuffix(std::string str, in TrimSuffix() argument
45 if (str.size() >= suffix.size()) { in TrimSuffix()
46 if (str.substr(str.size() - suffix.size(), suffix.size()) == suffix) { in TrimSuffix()
47 return str.substr(0, str.size() - suffix.size()); in TrimSuffix()
50 return str; in TrimSuffix()
62 buffer->Append(os.str()); in ~LineWriter()
133 return ss.str(); in String()
/third_party/python/Lib/test/
H A D_testcppext.cpp103 PyObject *str = PyUnicode_FromString("abc"); in Py_UNUSED() local
104 if (str == _Py_NULL) { in Py_UNUSED()
108 assert(PyUnicode_Check(str)); in Py_UNUSED()
109 assert(PyUnicode_GET_LENGTH(str) == 3); in Py_UNUSED()
112 const void* data = PyUnicode_DATA(str); in Py_UNUSED()
114 int kind = PyUnicode_KIND(str); in Py_UNUSED()
119 const void* const_data = PyUnicode_DATA(str); in Py_UNUSED()
123 assert(PyUnicode_READ_CHAR(str, 1) == 'b'); in Py_UNUSED()
125 Py_DECREF(str); in Py_UNUSED()
/third_party/selinux/libselinux/src/
H A Dcontext.c18 * Allocate a new context, initialized from str. There must be 3 or
22 context_t context_new(const char *str) in context_new() argument
40 for (count = 0, p = str; *p; p++) { in context_new()
63 for (i = 0, tok = str; *tok; i++) { in context_new()
145 static int set_comp(context_private_t * n, int idx, const char *str) in set_comp() argument
149 if (str) { in set_comp()
150 for (p = str; *p; p++) { in set_comp()
158 t = strdup(str); in set_comp()
180 int context_ ## name ## _set(context_t context, const char* str) \
182 return set_comp(context->ptr,tag,str);\
[all...]
/third_party/spirv-tools/test/tools/
H A Dplaceholder.py64 assert isinstance(source, str)
65 assert isinstance(suffix, str)
95 assert isinstance(content, str)
96 assert isinstance(suffix, str)
123 assert isinstance(source, str)
124 assert isinstance(suffix, str)
166 assert isinstance(source, str)
185 assert isinstance(filename, str)
205 assert isinstance(filename, str)
/kernel/linux/linux-6.6/arch/arm/kernel/
H A Dhead.S196 1: str r3, [r0], #4
197 str r3, [r0], #4
198 str r3, [r0], #4
199 str r3, [r0], #4
215 str r7, [r0], #4 @ set top PGD entry bits
216 str r3, [r0], #4 @ set bottom PGD entry bits
218 str r3, [r0], #4 @ set bottom PGD entry bits
219 str r7, [r0], #4 @ set top PGD entry bits
243 str r3, [r4, r5, lsl #PMD_ENTRY_ORDER] @ identity mapping
257 str r
[all...]
/kernel/linux/linux-5.10/fs/gfs2/
H A Dglops.c409 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
413 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in()
415 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in()
416 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
421 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in()
422 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
426 i_uid_write(&ip->i_inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in()
427 i_gid_write(&ip->i_inode, be32_to_cpu(str->di_gid)); in gfs2_dinode_in()
428 set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in()
429 i_size_write(&ip->i_inode, be64_to_cpu(str in gfs2_dinode_in()
[all...]
/kernel/linux/linux-6.6/fs/gfs2/
H A Dglops.c405 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
408 umode_t mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
412 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in()
416 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in()
423 inode->i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in()
424 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
429 i_uid_write(inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in()
430 i_gid_write(inode, be32_to_cpu(str->di_gid)); in gfs2_dinode_in()
431 set_nlink(inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in()
432 i_size_write(inode, be64_to_cpu(str in gfs2_dinode_in()
[all...]
/test/xts/hats/hdf/camera/cameraMg/v1_2/src/
H A Dcamera_tag_test_v1_2.cpp180 printf("OHOS_ABILITY_DEFERRED_IMAGE_DELIVERY %s\n", ss.str().c_str()); in HWTEST_F()
181 ss.str(""); in HWTEST_F()
205 printf("OHOS_ABILITY_AVAILABLE_COLOR_SPACES %s\n", ss.str().c_str()); in HWTEST_F()
206 ss.str(""); in HWTEST_F()
230 printf("OHOS_ABILITY_NIGHT_MODE_SUPPORTED_EXPOSURE_TIME %s\n", ss.str().c_str()); in HWTEST_F()
231 ss.str(""); in HWTEST_F()
259 CAMERA_LOGI("%{public}s\n", ss.str().c_str()); in HWTEST_F()
260 printf("OHOS_ABILITY_CAMERA_VIRTUAL_APERTURE_RANGE%s\n", ss.str().c_str()); in HWTEST_F()
262 ss.str(""); in HWTEST_F()
289 CAMERA_LOGI("%{public}s\n", ss.str() in HWTEST_F()
[all...]
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
H A Dgenerator_impl_type_test.cc37 EXPECT_EQ(out.str(), "alias"); in TEST_F()
48 EXPECT_EQ(out.str(), "array<bool, 4>"); in TEST_F()
59 EXPECT_EQ(out.str(), "[[stride(16)]] array<bool, 4>"); in TEST_F()
70 EXPECT_EQ(out.str(), "array<bool>"); in TEST_F()
81 EXPECT_EQ(out.str(), "bool"); in TEST_F()
92 EXPECT_EQ(out.str(), "f32"); in TEST_F()
103 EXPECT_EQ(out.str(), "i32"); in TEST_F()
114 EXPECT_EQ(out.str(), "mat2x3<f32>"); in TEST_F()
125 EXPECT_EQ(out.str(), "ptr<workgroup, f32>"); in TEST_F()
137 EXPECT_EQ(out.str(), "pt in TEST_F()
[all...]
/third_party/selinux/libsepol/src/
H A Dkernel_to_common.c59 char *str = NULL; in create_str_helper() local
74 str = malloc(len); in create_str_helper()
75 if (!str) { in create_str_helper()
80 rc = vsnprintf(str, len, fmt, vargs2); in create_str_helper()
87 return str; in create_str_helper()
90 free(str); in create_str_helper()
97 char *str = NULL; in create_str() local
101 str = create_str_helper(fmt, num, vargs); in create_str()
104 return str; in create_str()
187 char *str; in strs_create_and_add() local
290 char *str = NULL; strs_to_str() local
385 char *str = NULL; ebitmap_to_str() local
[all...]
/third_party/googletest/googletest/test/
H A Dgoogletest-printers-test.cc284 return ss.str(); in Print()
294 return ss.str(); in PrintByRef()
489 return expected_result_stream.str(); in PrintPointer()
734 AssertionResult HasPrefix(const StringType& str, const StringType& prefix) { in HasPrefix() argument
735 if (str.find(prefix, 0) == 0) return AssertionSuccess(); in HasPrefix()
741 << begin_string_quote << str << "\"\n"; in HasPrefix()
893 const ::std::string str(s, sizeof(s)); in TEST()
895 Print(str)); in TEST()
920 const ::std::wstring str(s, sizeof(s) / sizeof(wchar_t)); in TEST()
924 Print(str)); in TEST()
941 std::u8string str = u8"Hello, 世界"; TEST() local
948 std::u16string str = u"Hello, 世界"; TEST() local
954 std::u32string str = U"Hello, 🗺️"; TEST() local
1027 const char str[] = "NUL (\\0) and \\r\\t"; TEST() local
1233 const char* const str = "8"; TEST() local
1484 char str[] = "hi\\1"; TEST() local
1498 wchar_t str[] = L"hi\\1"; TEST() local
1511 char str[] = "hi \\"world\\""; TEST() local
1519 const char str[] = "hi \\"world\\""; TEST() local
1526 wchar_t str[] = L"hi \\"world\\""; TEST() local
1534 const wchar_t str[] = L"hi \\"world\\""; TEST() local
1544 const char str[] = "hi \\"world\\""; TEST() local
1552 const wchar_t str[] = L"hi \\"w\\0rld\\""; TEST() local
1769 const char str[] = "\\"Line\\0 1\\"\\nLine 2"; TEST() local
[all...]

Completed in 21 milliseconds

1...<<41424344454647484950>>...584