| /openbmc/u-boot/lib/ |
| H A D | aes.c | 326 static void shift_rows(u8 *state) in shift_rows() argument 331 state[0] = sbox[state[0]]; in shift_rows() 332 state[4] = sbox[state[4]]; in shift_rows() 333 state[8] = sbox[state[8]]; in shift_rows() 334 state[12] = sbox[state[12]]; in shift_rows() 337 tmp = sbox[state[1]]; in shift_rows() 338 state[1] = sbox[state[5]]; in shift_rows() 339 state[5] = sbox[state[9]]; in shift_rows() 340 state[9] = sbox[state[13]]; in shift_rows() 341 state[13] = tmp; in shift_rows() [all …]
|
| /openbmc/u-boot/lib/zlib/ |
| H A D | inflate.c | 5 local void fixedtables OF((struct inflate_state FAR *state)); 10 struct inflate_state FAR *state; in inflateReset() local 12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset() 13 state = (struct inflate_state FAR *)strm->state; in inflateReset() 14 strm->total_in = strm->total_out = state->total = 0; in inflateReset() 17 state->mode = HEAD; in inflateReset() 18 state->last = 0; in inflateReset() 19 state->havedict = 0; in inflateReset() 20 state->dmax = 32768U; in inflateReset() 21 state->head = Z_NULL; in inflateReset() [all …]
|
| /openbmc/u-boot/common/ |
| H A D | bouncebuf.c | 13 static int addr_aligned(struct bounce_buffer *state) in addr_aligned() argument 18 if ((ulong)state->user_buffer & align_mask) { in addr_aligned() 19 debug("Unaligned buffer address %p\n", state->user_buffer); in addr_aligned() 24 if (state->len != state->len_aligned) { in addr_aligned() 25 debug("Unaligned buffer length %zu\n", state->len); in addr_aligned() 33 int bounce_buffer_start(struct bounce_buffer *state, void *data, in bounce_buffer_start() argument 36 state->user_buffer = data; in bounce_buffer_start() 37 state->bounce_buffer = data; in bounce_buffer_start() 38 state->len = len; in bounce_buffer_start() 39 state->len_aligned = roundup(len, ARCH_DMA_MINALIGN); in bounce_buffer_start() [all …]
|
| /openbmc/u-boot/arch/sandbox/cpu/ |
| H A D | start.c | 20 struct sandbox_state *state = state_get_current(); in sandbox_early_getopt_check() local 27 if (!state->parse_err) in sandbox_early_getopt_check() 30 if (strcmp(state->parse_err, "help")) { in sandbox_early_getopt_check() 33 state->parse_err); in sandbox_early_getopt_check() 74 static int sandbox_cmdline_cb_help(struct sandbox_state *state, const char *arg) in sandbox_cmdline_cb_help() argument 84 struct sandbox_state *state = state_get_current(); in sandbox_main_loop_init() local 87 if (state->cmd || state->run_distro_boot) { in sandbox_main_loop_init() 93 if (state->cmd) in sandbox_main_loop_init() 94 retval = run_command_list(state->cmd, -1, 0); in sandbox_main_loop_init() 96 if (state->run_distro_boot) in sandbox_main_loop_init() [all …]
|
| H A D | state.c | 14 static struct sandbox_state *state; /* Pointer to current state record */ variable 18 void *blob = state->state_fdt; in state_ensure_space() 41 state->state_fdt = buf; in state_ensure_space() 45 static int state_read_file(struct sandbox_state *state, const char *fname) in state_read_file() argument 56 state->state_fdt = os_malloc(size); in state_read_file() 57 if (!state->state_fdt) { in state_read_file() 67 if (os_read(fd, state->state_fdt, size) != size) { in state_read_file() 78 os_free(state->state_fdt); in state_read_file() 79 state->state_fdt = NULL; in state_read_file() 98 int sandbox_read_state_nodes(struct sandbox_state *state, in sandbox_read_state_nodes() argument [all …]
|
| /openbmc/qemu/hw/misc/ |
| H A D | i2c-echo.c | 32 enum i2c_echo_state state; member 41 I2CEchoState *state = opaque; in i2c_echo_bh() local 43 switch (state->state) { in i2c_echo_bh() 48 if (i2c_start_send_async(state->bus, state->data[0])) { in i2c_echo_bh() 52 state->pos++; in i2c_echo_bh() 53 state->state = I2C_ECHO_STATE_ACK; in i2c_echo_bh() 57 if (state->pos > 2) { in i2c_echo_bh() 61 if (i2c_send_async(state->bus, state->data[state->pos++])) { in i2c_echo_bh() 69 i2c_end_transfer(state->bus); in i2c_echo_bh() 71 i2c_bus_release(state->bus); in i2c_echo_bh() [all …]
|
| /openbmc/webui-vue/src/store/modules/ |
| H A D | GlobalStore.js | 37 state: { class in GlobalStore 52 assetTag: (state) => state.assetTag, 53 modelType: (state) => state.modelType, 54 serialNumber: (state) => state.serialNumber, 55 serverStatus: (state) => state.serverStatus, 56 bmcTime: (state) => state.bmcTime, 57 languagePreference: (state) => state.languagePreference, 58 isUtcDisplay: (state) => state.isUtcDisplay, 59 username: (state) => state.username, 60 isAuthorized: (state) => state.isAuthorized, [all …]
|
| /openbmc/webui-vue/src/store/modules/Authentication/ |
| H A D | AuthenticanStore.js | 8 state: { class in AuthenticationStore 17 consoleWindow: (state) => state.consoleWindow, 18 authError: (state) => state.authError, 19 isLoggedIn: (state) => { 23 state.xsrfCookie !== undefined || 24 state.isAuthenticatedCookie == 'true' || 25 state.xAuthToken !== null 29 token: (state) => state.xsrfCookie, 32 authSuccess(state, { session, token }) { argument 33 state.authError = false; [all …]
|
| /openbmc/qemu/hw/intc/ |
| H A D | grlib_irqmp.c | 71 IRQMPState *state; member 90 static void grlib_irqmp_check_irqs(IRQMPState *state) in grlib_irqmp_check_irqs() argument 94 assert(state != NULL); in grlib_irqmp_check_irqs() 95 assert(state->parent != NULL); in grlib_irqmp_check_irqs() 97 for (i = 0; i < state->parent->ncpus; i++) { in grlib_irqmp_check_irqs() 98 uint32_t pend = (state->pending | state->force[i]) & state->mask[i]; in grlib_irqmp_check_irqs() 99 uint32_t level0 = pend & ~state->level; in grlib_irqmp_check_irqs() 100 uint32_t level1 = pend & state->level; in grlib_irqmp_check_irqs() 102 trace_grlib_irqmp_check_irqs(state->pending, state->force[i], in grlib_irqmp_check_irqs() 103 state->mask[i], level1, level0); in grlib_irqmp_check_irqs() [all …]
|
| /openbmc/qemu/hw/xen/ |
| H A D | xen-hvm-common.c | 75 XenIOState *state = container_of(listener, XenIOState, memory_listener); in xen_set_memory() local 81 xen_map_memory_section(xen_domid, state->ioservid, in xen_set_memory() 84 xen_unmap_memory_section(xen_domid, state->ioservid, in xen_set_memory() 89 arch_xen_set_memory(state, section, add); in xen_set_memory() 109 XenIOState *state = container_of(listener, XenIOState, io_listener); in xen_io_add() local 118 xen_map_io_section(xen_domid, state->ioservid, section); in xen_io_add() 124 XenIOState *state = container_of(listener, XenIOState, io_listener); in xen_io_del() local 131 xen_unmap_io_section(xen_domid, state->ioservid, section); in xen_io_del() 139 XenIOState *state = container_of(listener, XenIOState, device_listener); in xen_device_realize() local 148 QLIST_INSERT_HEAD(&state->dev_list, xendev, entry); in xen_device_realize() [all …]
|
| /openbmc/webui-vue/src/store/modules/Operations/ |
| H A D | FirmwareStore.js | 6 state: { class in FirmwareStore 16 isSingleFileUploadEnabled: (state) => state.biosFirmware.length === 0, 17 activeBmcFirmware: (state) => { 18 return state.bmcFirmware.find( 19 (firmware) => firmware.id === state.bmcActiveFirmwareId, 22 activeBiosFirmware: (state) => { 23 return state.biosFirmware.find( 24 (firmware) => firmware.id === state.biosActiveFirmwareId, 27 backupBmcFirmware: (state) => { 28 return state.bmcFirmware.find( [all …]
|
| H A D | BootSettingsStore.js | 6 state: { class in BootSettingsStore 13 bootSourceOptions: (state) => state.bootSourceOptions, 14 bootSource: (state) => state.bootSource, 15 overrideEnabled: (state) => state.overrideEnabled, 16 tpmEnabled: (state) => state.tpmEnabled, 19 setBootSourceOptions: (state, bootSourceOptions) => 20 (state.bootSourceOptions = bootSourceOptions), 21 setBootSource: (state, bootSource) => (state.bootSource = bootSource), 22 setOverrideEnabled: (state, overrideEnabled) => { 24 state.overrideEnabled = true; [all …]
|
| /openbmc/webui-vue/src/store/modules/Settings/ |
| H A D | NetworkStore.js | 6 state: { class in NetworkStore 14 ethernetData: (state) => state.ethernetData, 15 firstInterfaceId: (state) => state.firstInterfaceId, 16 globalNetworkSettings: (state) => state.globalNetworkSettings, 17 selectedInterfaceId: (state) => state.selectedInterfaceId, 18 selectedInterfaceIndex: (state) => state.selectedInterfaceIndex, 21 setDomainNameState: (state, domainState) => 22 (state.domainState = domainState), 23 setDnsState: (state, dnsState) => (state.dnsState = dnsState), 24 setEthernetData: (state, ethernetData) => [all …]
|
| /openbmc/qemu/util/ |
| H A D | qemu-progress.c | 36 static struct progress_state state; variable 46 printf(" (%3.2f/100%%)\r", state.current); in progress_simple_print() 57 state.print = progress_simple_print; in progress_simple_init() 58 state.end = progress_simple_end; in progress_simple_init() 71 fprintf(stderr, " (%3.2f/100%%)\n", state.current); in progress_dummy_print() 105 state.print = progress_dummy_print; in progress_dummy_init() 106 state.end = progress_dummy_end; in progress_dummy_init() 118 state.min_skip = min_skip; in qemu_progress_init() 128 state.end(); in qemu_progress_end() 149 current = state.current + delta / 100 * max; in qemu_progress_print() [all …]
|
| /openbmc/qemu/target/i386/nvmm/ |
| H A D | nvmm-all.c | 88 struct nvmm_x64_state *state = vcpu->state; in nvmm_set_registers() local 96 state->gprs[NVMM_X64_GPR_RAX] = env->regs[R_EAX]; in nvmm_set_registers() 97 state->gprs[NVMM_X64_GPR_RCX] = env->regs[R_ECX]; in nvmm_set_registers() 98 state->gprs[NVMM_X64_GPR_RDX] = env->regs[R_EDX]; in nvmm_set_registers() 99 state->gprs[NVMM_X64_GPR_RBX] = env->regs[R_EBX]; in nvmm_set_registers() 100 state->gprs[NVMM_X64_GPR_RSP] = env->regs[R_ESP]; in nvmm_set_registers() 101 state->gprs[NVMM_X64_GPR_RBP] = env->regs[R_EBP]; in nvmm_set_registers() 102 state->gprs[NVMM_X64_GPR_RSI] = env->regs[R_ESI]; in nvmm_set_registers() 103 state->gprs[NVMM_X64_GPR_RDI] = env->regs[R_EDI]; in nvmm_set_registers() 105 state->gprs[NVMM_X64_GPR_R8] = env->regs[R_R8]; in nvmm_set_registers() [all …]
|
| /openbmc/phosphor-fan-presence/presence/ |
| H A D | anyof.cpp | 37 RedundancyPolicy(fan, std::move(e)), state(), in AnyOf() 45 state.emplace_back(sensor, false, false); in AnyOf() 64 std::find_if(state.begin(), state.end(), [&sensor](const auto& s) { in stateChanged() 67 if (sit != state.end()) in stateChanged() 70 std::any_of(state.begin(), state.end(), in stateChanged() 76 std::any_of(state.begin(), state.end(), in stateChanged() 98 std::for_each(state.begin(), state.end(), [](auto& s) { in stateChanged() 112 for (auto& s : state) in monitor() 118 auto present = std::any_of(state.begin(), state.end(), [](const auto& s) { in monitor() 140 if (std::any_of(state.begin(), state.end(), in checkSensorConflicts() [all …]
|
| /openbmc/webui-vue/src/store/modules/SecurityAndAccess/ |
| H A D | LdapStore.js | 7 state: { class in LdapStore 29 isServiceEnabled: (state) => state.isServiceEnabled, 30 ldap: (state) => state.ldap, 31 activeDirectory: (state) => state.activeDirectory, 32 isActiveDirectoryEnabled: (state) => { 33 return state.activeDirectory.serviceEnabled; 35 enabledRoleGroups: (state, getters) => { 39 return state[serviceType].roleGroups; 43 setServiceEnabled: (state, serviceEnabled) => 44 (state.isServiceEnabled = serviceEnabled), [all …]
|
| H A D | PoliciesStore.js | 6 state: { class in PoliciesStore 14 sshProtocolEnabled: (state) => state.sshProtocolEnabled, 15 ipmiProtocolEnabled: (state) => state.ipmiProtocolEnabled, 16 rtadEnabled: (state) => state.rtadEnabled, 17 vtpmEnabled: (state) => state.vtpmEnabled, 18 getSessionTimeoutValue: (state) => state.sessionTimeoutValue, 21 setSshProtocolEnabled: (state, sshProtocolEnabled) => 22 (state.sshProtocolEnabled = sshProtocolEnabled), 23 setIpmiProtocolEnabled: (state, ipmiProtocolEnabled) => 24 (state.ipmiProtocolEnabled = ipmiProtocolEnabled), [all …]
|
| /openbmc/openbmc-test-automation/bin/ |
| H A D | sol_utils.tcl | 43 set state [dict create\ 116 global state 153 dict set state ssh_logged_in 1 157 if { [dict get $state ssh_logged_in] } { 159 dprintn ; dprint_dict state 167 dict set state ssh_logged_in 1 169 dprintn ; dprint_dict state 182 global state 185 if { ! [dict get $state ssh_logged_in] } { 196 dict set state ssh_logged_in 0 [all …]
|
| /openbmc/qemu/block/ |
| H A D | curl.c | 270 CURLState *state = &s->states[i]; in curl_find_buf() local 271 uint64_t buf_end = (state->buf_start + state->buf_off); in curl_find_buf() 272 uint64_t buf_fend = (state->buf_start + state->buf_len); in curl_find_buf() 274 if (!state->orig_buf) in curl_find_buf() 276 if (!state->buf_off) in curl_find_buf() 280 if ((start >= state->buf_start) && in curl_find_buf() 282 (clamped_end >= state->buf_start) && in curl_find_buf() 285 char *buf = state->orig_buf + (start - state->buf_start); in curl_find_buf() 296 if (state->in_use && in curl_find_buf() 297 (start >= state->buf_start) && in curl_find_buf() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/directfb/directfb/ |
| H A D | 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 43 @@ -2139,7 +2145,8 @@ touchpad_translate( struct touchpad_fsm_state *state, 53 @@ -2204,7 +2211,7 @@ touchpad_fsm( struct touchpad_fsm_state *state, 62 @@ -2223,6 +2230,8 @@ touchpad_fsm( struct touchpad_fsm_state *state, 71 @@ -2233,7 +2242,7 @@ touchpad_fsm( struct touchpad_fsm_state *state, 74 if (state->fsm_state == TOUCHPAD_FSM_DRAG_START && 75 - timeout_passed( &state->timeout, &levt->time )) { 76 + timeout_passed( &state->timeout, &tval )) { 78 devt->timestamp = state->timeout; /* timeout of levt->time? */ 80 @@ -2255,7 +2264,8 @@ touchpad_fsm( struct touchpad_fsm_state *state, 83 state->fsm_state = TOUCHPAD_FSM_MAIN; [all …]
|
| /openbmc/qemu/hw/audio/ |
| H A D | gusemu_hal.c | 38 unsigned int gus_read(GUSEmuState * state, int port, int size) in gus_read() argument 43 gusptr = state->gusdatapos; in gus_read() 95 GUS_irqrequest(state, state->gusirq, 1); in gus_read() 119 if (state->gusdma >= 4) in gus_read() 126 GUS_irqclear(state, state->gusirq); in gus_read() 182 adr = state->himemaddr + (GUSregd(GUSDRAMPOS24bit) & 0xfffff); in gus_read() 190 void gus_write(GUSEmuState * state, int port, int size, unsigned int data) in gus_write() argument 193 gusptr = state->gusdatapos; in gus_write() 206 GUS_irqrequest(state, state->gusirq, 1); in gus_write() 229 GUS_irqrequest(state, state->gusirq, 1); in gus_write() [all …]
|
| /openbmc/webui-vue/src/store/modules/ResourceManagement/ |
| H A D | PowerControlStore.js | 6 state: { class in PowerControlStore 12 powerCapValue: (state) => state.powerCapValue, 13 powerCapUri: (state) => state.powerCapUri, 14 powerConsumptionValue: (state) => state.powerConsumptionValue, 17 setPowerCapValue: (state, powerCapValue) => 18 (state.powerCapValue = powerCapValue), 19 setPowerCapUri: (state, powerCapUri) => (state.powerCapUri = powerCapUri), 20 setPowerConsumptionValue: (state, powerConsumptionValue) => 21 (state.powerConsumptionValue = powerConsumptionValue), 61 async setPowerControl({ state }, powerCapValue) { field in PowerControlStore.actions.AnonymousClass0f8f22ef0401 [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench/ |
| H A D | 0001-lat_fifo-Fix-cleanup-sequence.patch | 23 - unlink(state->filename1); 24 - unlink(state->filename2); 25 - close(state->wr); 26 - close(state->rd); 28 if (state->pid > 0) { 29 - kill(state->pid, 15); 30 + kill(state->pid, SIGKILL); 31 waitpid(state->pid, NULL, 0); 32 state->pid = 0; 35 + unlink(state->filename1); [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/common/src/ |
| H A D | host_power.cpp | 22 sdbusplus::client::xyz::openbmc_project::state::Host<void, void>; 25 sdbusplus::client::xyz::openbmc_project::state::Host<>::Transition::On; 27 sdbusplus::client::xyz::openbmc_project::state::Host<>::Transition::Off; 32 const auto host0ObjectPath = sdbusplus::client::xyz::openbmc_project::state:: 44 HostState state) in setState() argument 46 if (state != stateOn && state != stateOff) in setState() 48 error("Invalid power state {STATE}", "STATE", state); in setState() 52 auto client = sdbusplus::client::xyz::openbmc_project::state::Host(ctx) in setState() 57 (state == stateOn) ? transitionOn : transitionOff); in setState() 59 debug("Requested host transition to {STATE}", "STATE", state); in setState() [all …]
|