Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 186) sorted by relevance

12345678

/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/
H A DCOW.py38 def __str__(cls): argument
40 return "<COWDict Level: %i Current Keys: %i>" % (cls.__count__, len(cls.__dict__) - 3)
44 def cow(cls): argument
45 class C(cls):
46 __count__ = cls.__count__ + 1
53 def __setitem__(cls, key, value): argument
56 cls.__hasmutable__ = True
58 setattr(cls, key, value)
60 def __getmutable__(cls, key, readonly=False): argument
63 return cls.__dict__[nkey]
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/runtime/cases/
H A Dstorage.py13 def storage_mount(cls, tmo=1): argument
15 (status, output) = cls.target.run('mkdir -p %s' % cls.mount_point)
16 (status, output) = cls.target.run('mount %s %s' % (cls.device, cls.mount_point))
18 cls.assertFalse(output, msg = msg)
20 (status, output) = cls.target.run('cat /proc/mounts')
21 match = re.search('%s' % cls.device, output)
23 msg = ('Device %s not mounted.' % cls.device)
24 cls.assertTrue(match, msg = msg)
26 (status, output) = cls.target.run('mkdir -p %s' % cls.test_dir)
28 (status, output) = cls.target.run('rm -f %s/*' % cls.test_dir)
[all …]
H A Dltp_compliance.py20 def setUpClass(cls): argument
21 cls.ltp_startup()
24 def tearDownClass(cls): argument
25 cls.ltp_finishup()
28 def ltp_startup(cls): argument
29 cls.sections = {}
30 cls.failmsg = ""
31 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
34 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpcomp_log')
35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
[all …]
H A Dltp_stress.py21 def setUpClass(cls): argument
22 cls.ltp_startup()
25 def tearDownClass(cls): argument
26 cls.ltp_finishup()
29 def ltp_startup(cls): argument
30 cls.sections = {}
31 cls.failmsg = ""
32 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
35 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpstress_log')
36 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
[all …]
H A Dltp.py20 def setUpClass(cls): argument
21 cls.ltp_startup()
24 def tearDownClass(cls): argument
25 cls.ltp_finishup()
28 def ltp_startup(cls): argument
29 cls.sections = {}
30 cls.failmsg = ""
31 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
34 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltp_log')
35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
[all …]
H A Dopkg.py23 def setUp(cls): argument
25 if cls.tc.td["MULTILIB_VARIANTS"]:
26 allarchfeed = cls.tc.td["TUNE_PKGARCH"]
27 service_repo = os.path.join(cls.tc.td['DEPLOY_DIR_IPK'], allarchfeed)
28 cls.repo_server = HTTPService(service_repo,
29 '0.0.0.0', port=cls.tc.target.server_port,
30 logger=cls.tc.logger)
31 cls.repo_server.start()
34 def tearDown(cls): argument
35 cls.repo_server.stop()
H A Dgcc.py14 def setUp(cls): argument
16 src = os.path.join(cls.tc.files_dir, 'test.c')
17 cls.tc.target.copyTo(src, dst)
19 src = os.path.join(cls.tc.runtime_files_dir, 'testmakefile')
20 cls.tc.target.copyTo(src, dst)
22 src = os.path.join(cls.tc.files_dir, 'test.cpp')
23 cls.tc.target.copyTo(src, dst)
26 def tearDown(cls): argument
28 cls.tc.target.run('rm %s' % files)
H A Dkernelmodule.py15 def setUp(cls): argument
16 src = os.path.join(cls.tc.runtime_files_dir, 'hellomod.c')
18 cls.tc.target.copyTo(src, dst)
20 src = os.path.join(cls.tc.runtime_files_dir, 'hellomod_makefile')
22 cls.tc.target.copyTo(src, dst)
25 def tearDown(cls): argument
27 cls.tc.target.run('rm %s' % files)
/OK3568_Linux_fs/kernel/drivers/base/
H A Dclass.c88 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns() argument
93 if (cls) in class_create_file_ns()
94 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns()
101 void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, in class_remove_file_ns() argument
104 if (cls) in class_remove_file_ns()
105 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
108 static struct class *class_get(struct class *cls) in class_get() argument
110 if (cls) in class_get()
111 kset_get(&cls->p->subsys); in class_get()
112 return cls; in class_get()
[all …]
/OK3568_Linux_fs/yocto/poky/scripts/lib/wic/plugins/source/
H A Dbootimg-biosplusefi.py87 def __init__(cls): argument
95 cls.__instanciateSubClasses()
98 def __instanciateSubClasses(cls): argument
105 cls.__PCBIOS_MODULE_NAME + ".py")
106 loader = SourceFileLoader(cls.__PCBIOS_MODULE_NAME, modulePath)
109 cls.__imgBiosObj = mod.BootimgPcbiosPlugin()
113 cls.__EFI_MODULE_NAME + ".py")
114 loader = SourceFileLoader(cls.__EFI_MODULE_NAME, modulePath)
117 cls.__imgEFIObj = mod.BootimgEFIPlugin()
120 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/selftest/cases/
H A DeSDK.py55 def update_configuration(cls, image, tmpdir_eSDKQA, env_eSDK, ext_sdk_path): argument
58 oeSDKExtSelfTest.generate_eSDK(cls.image)
60 cls.ext_sdk_path = oeSDKExtSelfTest.get_eSDK_toolchain(cls.image)
61 runCmd("%s -y -d \"%s\"" % (cls.ext_sdk_path, cls.tmpdir_eSDKQA))
63 cls.env_eSDK = oeSDKExtSelfTest.get_esdk_environment('', cls.tmpdir_eSDKQA)
71 with open(os.path.join(cls.tmpdir_eSDKQA, 'conf', 'local.conf'), 'a+') as f:
75 def setUpClass(cls): argument
76 super(oeSDKExtSelfTest, cls).setUpClass()
77 cls.image = 'core-image-minimal'
79 bb_vars = get_bb_vars(['SSTATE_DIR', 'WORKDIR'], cls.image)
[all …]
H A Dkerneldevelopment.py9 def setUpClass(cls): argument
10 super(KernelDev, cls).setUpClass()
12 cls.layername = 'meta-kerneltest'
13 runCmd('bitbake-layers create-layer %s' % cls.layername)
14 runCmd('mkdir -p %s/recipes-kernel/linux/linux-yocto' % cls.layername)
15 cls.recipes_linuxyocto_dir = os.path.join \
16 (cls.builddir, cls.layername, 'recipes-kernel', 'linux', 'linux-yocto')
17 cls.recipeskernel_dir = os.path.dirname(cls.recipes_linuxyocto_dir)
18 runCmd('bitbake-layers add-layer %s' % cls.layername)
21 def tearDownClass(cls): argument
[all …]
H A Dgotoolchain.py33 def setUpClass(cls): argument
34 super(oeGoToolchainSelfTest, cls).setUpClass()
35 cls.tmpdir_SDKQA = tempfile.mkdtemp(prefix='SDKQA')
36 cls.go_path = os.path.join(cls.tmpdir_SDKQA, "go")
39 cls.sdk_path = oeGoToolchainSelfTest.get_sdk_toolchain()
41 runCmd("sh %s -y -d \"%s\"" % (cls.sdk_path, cls.tmpdir_SDKQA))
42 cls.env_SDK = oeGoToolchainSelfTest.get_sdk_environment(cls.tmpdir_SDKQA)
45 def tearDownClass(cls): argument
46 shutil.rmtree(cls.tmpdir_SDKQA, ignore_errors=True)
47 super(oeGoToolchainSelfTest, cls).tearDownClass()
H A Dmeta_ide.py16 def setUpClass(cls): argument
17 super(MetaIDE, cls).setUpClass()
20 cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS']
21 cls.tmpdir = bb_vars['TMPDIR']
22 cls.environment_script_path = '%s/%s' % (cls.tmpdir, cls.environment_script)
23 cls.corebasedir = bb_vars['COREBASE']
24 cls.tmpdir_metaideQA = tempfile.mkdtemp(prefix='metaide')
27 def tearDownClass(cls): argument
28 shutil.rmtree(cls.tmpdir_metaideQA, ignore_errors=True)
29 super(MetaIDE, cls).tearDownClass()
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/selftest/
H A Dcase.py25 def setUpClass(cls): argument
26 super(OESelftestTestCase, cls).setUpClass()
28 cls.testlayer_path = cls.tc.config_paths['testlayer_path']
29 cls.builddir = cls.tc.config_paths['builddir']
31 cls.localconf_path = cls.tc.config_paths['localconf']
32 cls.local_bblayers_path = cls.tc.config_paths['bblayers']
34 cls.testinc_path = os.path.join(cls.tc.config_paths['builddir'],
36 cls.testinc_bblayers_path = os.path.join(cls.tc.config_paths['builddir'],
38 cls.machineinc_path = os.path.join(cls.tc.config_paths['builddir'],
41 cls._track_for_cleanup = [
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/oe/
H A Dclassutils.py7 def __init__(cls, name, bases, attrs): argument
8 cls.registry = {}
9 type.__init__(cls, name, bases, attrs)
25 def __init__(cls, name, bases, attrs): argument
26 super(ClassRegistry, cls).__init__(name, bases, attrs)
28 if not cls.implemented:
34 cls.name
36 cls.name = name
37 cls.registry[cls.name] = cls
44 def unregister(cls): argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields() argument
55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
56 off = cls->knode.sel->keys[i].off; in fill_match_fields()
57 val = cls->knode.sel->keys[i].val; in fill_match_fields()
58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
92 struct tc_cls_u32_offload *cls) in fill_action_fields() argument
99 exts = cls->knode.exts; in fill_action_fields()
149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/sdkext/cases/
H A Ddevtool.py19 def setUpClass(cls): argument
20 myapp_src = os.path.join(cls.tc.esdk_files_dir, "myapp")
21 cls.myapp_dst = os.path.join(cls.tc.sdk_dir, "myapp")
22 shutil.copytree(myapp_src, cls.myapp_dst)
23 subprocess.check_output(['git', 'init', '.'], cwd=cls.myapp_dst)
24 subprocess.check_output(['git', 'add', '.'], cwd=cls.myapp_dst)
25 subprocess.check_output(['git', 'commit', '-m', "'test commit'"], cwd=cls.myapp_dst)
27 myapp_cmake_src = os.path.join(cls.tc.esdk_files_dir, "myapp_cmake")
28 cls.myapp_cmake_dst = os.path.join(cls.tc.sdk_dir, "myapp_cmake")
29 shutil.copytree(myapp_cmake_src, cls.myapp_cmake_dst)
[all …]
/OK3568_Linux_fs/kernel/fs/cifs/
H A Dasn1.c157 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_id_decode() argument
164 *cls = (ch & 0xC0) >> 6; in asn1_id_decode()
214 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_header_decode() argument
219 if (!asn1_id_decode(ctx, cls, con, tag)) in asn1_header_decode()
490 unsigned int cls, con, tag, oidlen, rc; in decode_negTokenInit() local
497 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
500 } else if ((cls != ASN1_APL) || (con != ASN1_CON) in decode_negTokenInit()
502 cifs_dbg(FYI, "cls = %d con = %d tag = %d\n", cls, con, tag); in decode_negTokenInit()
507 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); in decode_negTokenInit()
510 (cls == ASN1_UNI)) { in decode_negTokenInit()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c29 struct tc_cls_u32_offload *cls, in tc_find_entry() argument
33 u32 loc = cls->knode.handle; in tc_find_entry()
59 struct tc_cls_u32_offload *cls) in tc_fill_actions() argument
66 exts = cls->knode.exts; in tc_fill_actions()
92 struct tc_cls_u32_offload *cls) in tc_fill_entry() argument
95 struct tc_u32_sel *sel = cls->knode.sel; in tc_fill_entry()
97 u32 prio = cls->common.prio << 16; in tc_fill_entry()
108 switch (ntohs(cls->common.protocol)) { in tc_fill_entry()
124 entry = tc_find_entry(priv, cls, true); in tc_fill_entry()
129 frag = tc_find_entry(priv, cls, true); in tc_fill_entry()
[all …]
/OK3568_Linux_fs/yocto/poky/scripts/lib/wic/
H A Dpluginbase.py33 def get_plugins(cls, ptype): argument
39 if not cls._plugin_dirs:
40 cls._plugin_dirs = [os.path.join(os.path.dirname(__file__), 'plugins')]
46 if path not in cls._plugin_dirs and os.path.isdir(path):
47 cls._plugin_dirs.insert(0, path)
51 for pdir in cls._plugin_dirs:
66 def __new__(cls, name, bases, attrs): argument
67 class_type = type.__new__(cls, name, bases, attrs)
89 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument
99 def do_stage_partition(cls, part, source_params, creator, cr_workdir, argument
[all …]
/OK3568_Linux_fs/yocto/poky/meta-selftest/lib/oeqa/runtime/cases/
H A Ddnf_runtime.py9 def setUpClass(cls): argument
11 cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-")
12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'),
13 cls.tc.target.server_ip)
14 cls.repo_server.start()
17 def tearDownClass(cls): argument
18 cls.repo_server.stop()
19 cls.temp_dir.cleanup()
/OK3568_Linux_fs/kernel/scripts/gdb/linux/
H A Ddevice.py78 def class_for_each_device(cls): argument
79 for kn in klist_for_each(cls['p']['klist_devices']):
125 for cls in for_each_class():
126 gdb.write("class {}:\t{}\n".format(cls['name'].string(), cls))
127 for dev in class_for_each_device(cls):
130 cls = get_class_by_name(arg)
131 for dev in class_for_each_device(cls):
170 def invoke(self, cls, name): argument
172 cls = get_class_by_name(cls.string())
173 for dev in class_for_each_device(cls):
/OK3568_Linux_fs/yocto/poky/bitbake/lib/toaster/tests/browser/
H A Dselenium_helpers_base.py28 def create_selenium_driver(cls,browser='chrome'): argument
55 driver.get("http://%s:%s"%(cls.server_thread.host,cls.server_thread.port))
126 def setUpClass(cls): argument
129 super(SeleniumTestCaseBase, cls).setUpClass()
133 cls.driver = create_selenium_driver(cls)
134 cls.driver.maximize_window()
137 def tearDownClass(cls): argument
140 cls.driver.quit()
141 super(SeleniumTestCaseBase, cls).tearDownClass()
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/
H A Ddammit.py82 def _substitute_html_entity(cls, matchobj): argument
83 entity = cls.CHARACTER_TO_HTML_ENTITY.get(matchobj.group(0))
87 def _substitute_xml_entity(cls, matchobj): argument
90 entity = cls.CHARACTER_TO_XML_ENTITY[matchobj.group(0)]
131 def substitute_xml(cls, value, make_quoted_attribute=False): argument
144 value = cls.AMPERSAND_OR_BRACKET.sub(
145 cls._substitute_xml_entity, value)
148 value = cls.quoted_attribute_value(value)
153 cls, value, make_quoted_attribute=False): argument
166 value = cls.BARE_AMPERSAND_OR_BRACKET.sub(
[all …]

12345678