/openbmc/linux/block/ |
H A D | badblocks.c | 53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument 58 u64 *p = bb->page; in badblocks_check() 63 if (bb->shift > 0) { in badblocks_check() 65 s >>= bb->shift; in badblocks_check() 66 target += (1<<bb->shift) - 1; in badblocks_check() 67 target >>= bb->shift; in badblocks_check() 72 seq = read_seqbegin(&bb->lock); in badblocks_check() 75 hi = bb->count; in badblocks_check() 120 if (read_seqretry(&bb->lock, seq)) in badblocks_check() 127 static void badblocks_update_acked(struct badblocks *bb) in badblocks_update_acked() argument [all …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | cfg.c | 50 #define bb_prev(bb) list_prev_entry(bb, l) argument 51 #define bb_next(bb) list_next_entry(bb, l) argument 91 struct bb_node *new_bb, *bb; in func_append_bb() local 93 list_for_each_entry(bb, &func->bbs, l) { in func_append_bb() 94 if (bb->head == insn) in func_append_bb() 95 return bb; in func_append_bb() 96 else if (bb->head > insn) in func_append_bb() 100 bb = bb_prev(bb); in func_append_bb() 109 list_add(&new_bb->l, &bb->l); in func_append_bb() 116 struct bb_node *bb; in func_insert_dummy_bb() local [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
H A D | event.py | 20 import bb 21 import bb.event 22 from bb.msg import BBLogFormatter 36 self.event_calls.append(bb.event.getName(event)) 76 importlib.reload(bb.event) 88 bb.event.set_class_handlers(test_handlers) 90 bb.event.get_class_handlers()) 95 bb.event.set_handlers(test_handlers) 97 bb.event.get_handlers()) 103 bb.event.clean_class_handlers()) [all …]
|
H A D | parse.py | 12 import bb 17 import bb.parse 18 import bb.data 19 import bb.siggen 35 self.d = bb.data.init() 36 bb.parse.siggen = bb.siggen.init(self.d) 51 d = bb.parse.handle(f.name, self.d)[''] 59 with self.assertRaises(bb.parse.ParseError): 60 d = bb.parse.handle(f.name, self.d)[''] 73 d = bb.parse.handle(f.name, self.d)[''] [all …]
|
H A D | data.py | 11 import bb 12 import bb.data 13 import bb.parse 42 self.d = bb.data.init() 83 context = bb.utils.get_context() 99 self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) 103 self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) 108 self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) 126 self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) 132 self.assertRaises(bb.data_smart.ExpansionError, self.d.getVar, "FOO", True) [all …]
|
H A D | utils.py | 10 import bb 18 result = bb.utils.vercmp_string('1', '2') 20 result = bb.utils.vercmp_string('2', '1') 22 result = bb.utils.vercmp_string('1', '1.0') 24 result = bb.utils.vercmp_string('1', '1.1') 26 result = bb.utils.vercmp_string('1.1', '1_p2') 28 result = bb.utils.vercmp_string('1.0', '1.0+1.1-beta1') 30 result = bb.utils.vercmp_string('1.1', '1.0+1.1-beta1') 32 result = bb.utils.vercmp_string('1a', '1a1') 34 result = bb.utils.vercmp_string('1a1', '1a') [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ui/ |
H A D | toasterui.py | 17 import bb 21 from bb.ui import uihelper 22 from bb.ui.buildinfohelper import BuildInfoHelper 24 import bb.msg 32 featureSet = [bb.cooker.CookerFeatures.HOB_EXTRA_CACHES, bb.cooker.CookerFeatures.BASEDATASTORE_TRA… 70 logformat = bb.msg.BBLogFormatter(format_str) 73 bb.msg.addDefaultlogFilter(build_log) 146 formatter = bb.msg.BBLogFormatter(format_str) 147 bb.msg.addDefaultlogFilter(console) 151 llevel, debug_domains = bb.msg.constructLogOptions() [all …]
|
H A D | teamcity.py | 28 import bb 29 import bb.build 30 import bb.command 31 import bb.cooker 32 import bb.event 33 import bb.runqueue 34 from bb.ui import uihelper 105 if record.levelno in [bb.msg.BBLogFormatter.ERROR, bb.msg.BBLogFormatter.CRITICAL]: 113 if record.levelno == bb.msg.BBLogFormatter.PLAIN: 115 elif record.levelno == bb.msg.BBLogFormatter.WARNING: [all …]
|
H A D | knotty.py | 18 import bb.msg 26 from bb.ui import uihelper 27 import bb.build 28 import bb.command 29 import bb.cooker 30 import bb.event 31 import bb.runqueue 32 import bb.utils 34 featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS, bb.cooker.CookerFeatures.BASEDATASTORE_TR… 124 …if record.levelno == bb.msg.BBLogFormatter.NOTE and (record.msg.startswith("Running") or record.ms… [all …]
|
/openbmc/linux/net/tipc/ |
H A D | bcast.c | 98 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_calc_bc_threshold() local 101 bb->bc_threshold = 1 + (cluster_size * bb->rc_ratio / 100); in tipc_bcbase_calc_bc_threshold() 109 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_select_primary() local 110 int all_dests = tipc_link_bc_peers(bb->link); in tipc_bcbase_select_primary() 111 int max_win = tipc_link_max_win(bb->link); in tipc_bcbase_select_primary() 112 int min_win = tipc_link_min_win(bb->link); in tipc_bcbase_select_primary() 115 bb->primary_bearer = INVALID_BEARER_ID; in tipc_bcbase_select_primary() 116 bb->bcast_support = true; in tipc_bcbase_select_primary() 122 if (!bb->dests[i]) in tipc_bcbase_select_primary() 126 if (mtu < tipc_link_mtu(bb->link)) { in tipc_bcbase_select_primary() [all …]
|
/openbmc/linux/crypto/ |
H A D | rmd160.c | 51 u32 aa, bb, cc, dd, ee, aaa, bbb, ccc, ddd, eee; in rmd160_transform() local 55 bb = state[1]; in rmd160_transform() 68 ROUND(aa, bb, cc, dd, ee, F1, K1, in[0], 11); in rmd160_transform() 69 ROUND(ee, aa, bb, cc, dd, F1, K1, in[1], 14); in rmd160_transform() 70 ROUND(dd, ee, aa, bb, cc, F1, K1, in[2], 15); in rmd160_transform() 71 ROUND(cc, dd, ee, aa, bb, F1, K1, in[3], 12); in rmd160_transform() 72 ROUND(bb, cc, dd, ee, aa, F1, K1, in[4], 5); in rmd160_transform() 73 ROUND(aa, bb, cc, dd, ee, F1, K1, in[5], 8); in rmd160_transform() 74 ROUND(ee, aa, bb, cc, dd, F1, K1, in[6], 7); in rmd160_transform() 75 ROUND(dd, ee, aa, bb, cc, F1, K1, in[7], 9); in rmd160_transform() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | cookerdata.py | 19 import bb 20 from bb import data 21 import bb.parse 71 options['default_loglevel'] = bb.msg.loggerDefaultLogLevel 72 options['debug_domains'] = bb.msg.loggerDefaultDomains 122 self.debug_domains = bb.msg.loggerDefaultDomains 123 self.default_loglevel = bb.msg.loggerDefaultLogLevel 175 raise bb.BBHandledException() 180 return bb.parse.handle(fn, data, include, baseconfig=True) 184 bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data) [all …]
|
H A D | cooker.py | 20 import bb, bb.command 21 from bb import utils, data, parse, event, cache, providers, taskdata, runqueue, build 36 class NoSpecificMatch(bb.BBHandledException): 46 class CollectionError(bb.BBHandledException): 146 self.configuration = bb.cookerdata.CookerConfiguration() 155 bb.debug(1, "BBCooker starting %s" % time.time()) 162 bb.parse.clear_cache() 163 bb.parse.BBHandler.cached_statements = {} 182 self.command = bb.command.Command(self, self.process_server) 191 bb.debug(1, "BBCooker startup complete %s" % time.time()) [all …]
|
H A D | main.py | 22 import bb 23 from bb import event 24 import bb.msg 25 from bb import cooker 26 from bb import ui 27 from bb import server 28 from bb import cookerdata 30 import bb.server.process 31 import bb.server.xmlrpcclient 38 class BBMainFatal(bb.BBHandledException): [all …]
|
/openbmc/qemu/contrib/plugins/ |
H A D | drcov.c | 71 bb_entry_t *bb = (bb_entry_t *)data; in printf_el() local 72 if (bb->exec) { in printf_el() 73 printf_char_array32(bb->start); in printf_el() 74 printf_char_array16(bb->size); in printf_el() 75 printf_char_array16(bb->mod_id); in printf_el() 77 g_free(bb); in printf_el() 83 bb_entry_t *bb = (bb_entry_t *)data; in count_block() local 84 if (bb->exec) { in count_block() 115 bb_entry_t *bb = (bb_entry_t *) udata; in vcpu_tb_exec() local 118 bb->exec = true; in vcpu_tb_exec() [all …]
|
H A D | bbv.c | 53 static qemu_plugin_u64 bb_count_u64(Bb *bb) in bb_count_u64() argument 55 return qemu_plugin_scoreboard_u64(bb->count); in bb_count_u64() 85 Bb *bb = value; in vcpu_interval_exec() local 86 uint64_t bb_count = qemu_plugin_u64_get(bb_count_u64(bb), vcpu_index); in vcpu_interval_exec() 92 fprintf(vcpu->file, ":%u:%" PRIu64 " ", bb->index, bb_count); in vcpu_interval_exec() 93 qemu_plugin_u64_set(bb_count_u64(bb), vcpu_index, 0); in vcpu_interval_exec() 104 Bb *bb; in vcpu_tb_trans() local 107 bb = g_hash_table_lookup(bbs, &vaddr); in vcpu_tb_trans() 108 if (!bb) { in vcpu_tb_trans() 109 bb = g_new(Bb, 1); in vcpu_tb_trans() [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/package_manager/ |
H A D | common_deb_ipk.py | 12 import bb 38 bb.fatal("Unable to list available packages. Command '%s' " 41 bb.note("Command '%s' returned stderr: %s" % (cmd, proc.stderr)) 53 bb.fatal("Unable to get information for package '%s' while " 56 ar_cmd = bb.utils.which(os.getenv("PATH"), "ar") 57 tar_cmd = bb.utils.which(os.getenv("PATH"), "tar") 61 bb.fatal("Unable to extract package for '%s'." 73 bb.fatal("Unable to extract %s package. Failed to identify " 80 bb.utils.remove(tmp_dir, recurse=True) 81 bb.fatal("Unable to extract %s package. Command '%s' " [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | rootfs.py | 82 bb.fatal(msg) 84 bb.warn(msg) 93 if bb.utils.contains("IMAGE_FEATURES", "package-management", 114 bb.note(" Renaming the original rootfs...") 119 bb.utils.rename(self.image_rootfs, self.image_rootfs + '-orig') 121 bb.note(" Creating debug rootfs...") 122 bb.utils.mkdirhier(self.image_rootfs) 124 bb.note(" Copying back package database...") 126 bb.utils.mkdirhier(self.image_rootfs + os.path.dirname(path)) 137 bb.utils.mkdirhier(os.path.dirname(dst)) [all …]
|
H A D | buildcfg.py | 4 import bb.process 19 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path) 20 except bb.process.ExecutionError: 26 rev, _ = bb.process.run('git rev-parse HEAD', cwd=path) 27 except bb.process.ExecutionError: 33 toplevel, _ = bb.process.run('git rev-parse --show-toplevel', cwd=path) 34 except bb.process.ExecutionError: 40 remotes_list, _ = bb.process.run('git remote', cwd=path) 42 except bb.process.ExecutionError: 48 uri, _ = bb.process.run('git remote get-url {remote}'.format(remote=remote), cwd=path) [all …]
|
/openbmc/linux/include/linux/ |
H A D | badblocks.h | 44 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, 46 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, 48 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors); 49 void ack_all_badblocks(struct badblocks *bb); 50 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack); 51 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, 53 int badblocks_init(struct badblocks *bb, int enable); 54 void badblocks_exit(struct badblocks *bb); 56 int devm_init_badblocks(struct device *dev, struct badblocks *bb); 57 static inline void devm_exit_badblocks(struct device *dev, struct badblocks *bb) in devm_exit_badblocks() argument [all …]
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/optee/ |
H A D | optee-os-ts.inc | 16 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-its', \ 18 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-its', \ 22 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-storage', \ 24 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-storage', \ 28 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-crypto', \ 30 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-crypto', \ 34 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-attestation', \ 36 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-attestation', \ 40 DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-env-test', \ 42 SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-env-test', \ [all …]
|
/openbmc/openbmc/poky/meta/classes/ |
H A D | prexport.bbclass | 16 import bb.event 17 if not e.data or bb.data.inherits_class('native', e.data) or \ 18 bb.data.inherits_class('crosssdk', e.data): 21 if isinstance(e, bb.event.RecipeParsed): 28 bb.fatal("prexport_handler: export failed!") 31 bb.note("prexport_handler: No AUTOPR values found for %s" % ver) 36 srcpv = bb.fetch2.get_srcrev(e.data) 41 bb.fatal("prexport_handler: export failed!") 44 elif isinstance(e, bb.event.ParseStarted): 45 import bb.utils [all …]
|
H A D | icecc.bbclass | 21 # If ICECC_PATH is not set in local.conf then the class will try to locate it using 'bb.utils.which' 25 # or the default one provided by icecc-create-env_0.1.bb will be used. 116 def get_cross_kernel_cc(bb,d): 117 if not icecc_is_kernel(bb, d): 132 return d.getVar('ICECC_PATH') or bb.utils.which(os.getenv("PATH"), "icecc") 134 def use_icecc(bb,d): 140 if icecc_is_allarch(bb, d): 143 if icecc_is_cross_canadian(bb, d): 158 if bb.data.inherits_class(bbclass, d): 159 bb.debug(1, "%s: bbclass %s found in disable, disable icecc" % (pn, bbclass)) [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/packagegroups/ |
H A D | packagegroup-base.bb | 16 ${@bb.utils.contains("MACHINE_FEATURES", "acpi", "packagegroup-base-acpi", "",d)} \ 17 ${@bb.utils.contains("MACHINE_FEATURES", "alsa", "packagegroup-base-alsa", "", d)} \ 18 ${@bb.utils.contains("MACHINE_FEATURES", "ext2", "packagegroup-base-ext2", "", d)} \ 19 ${@bb.utils.contains("MACHINE_FEATURES", "vfat", "packagegroup-base-vfat", "", d)} \ 20 … ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "packagegroup-base-keyboard", "", d)} \ 21 ${@bb.utils.contains("MACHINE_FEATURES", "pci", "packagegroup-base-pci", "",d)} \ 22 ${@bb.utils.contains("MACHINE_FEATURES", "pcmcia", "packagegroup-base-pcmcia", "", d)} \ 23 ${@bb.utils.contains("MACHINE_FEATURES", "phone", "packagegroup-base-phone", "", d)} \ 24 ${@bb.utils.contains("MACHINE_FEATURES", "serial", "packagegroup-base-serial", "", d)} \ 25 … ${@bb.utils.contains("MACHINE_FEATURES", "usbgadget", "packagegroup-base-usbgadget", "", d)} \ [all …]
|
/openbmc/openbmc/poky/meta-selftest/classes/ |
H A D | test_events.bbclass | 2 bb.note("Test for bb.event.BuildStarted") 5 bb.note("Test for bb.event.BuildCompleted") 8 bb.note("Test for bb.event.InvalidEvent") 12 test1_eventhandler[eventmask] = "bb.event.BuildStarted" 14 test2_eventhandler[eventmask] = "bb.event.BuildCompleted" 16 test3_eventhandler[eventmask] = "bb.event.InvalidEvent"
|