/openbmc/linux/drivers/spi/ |
H A D | spi-mpc52xx.c | 86 int (*state)(int irq, struct mpc52xx_spi *ms, u8 status, u8 data); 99 static void mpc52xx_spi_chipsel(struct mpc52xx_spi *ms, int value) in mpc52xx_spi_chipsel() argument 103 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel() 104 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel() 105 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel() 107 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel() 116 static void mpc52xx_spi_start_transfer(struct mpc52xx_spi *ms) in mpc52xx_spi_start_transfer() argument 118 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 119 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 120 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | mesh.c | 186 static void mesh_done(struct mesh_state *ms, int start_next); 187 static void mesh_interrupt(struct mesh_state *ms); 188 static void cmd_complete(struct mesh_state *ms); 189 static void set_dma_cmds(struct mesh_state *ms, struct scsi_cmnd *cmd); 190 static void halt_dma(struct mesh_state *ms); 191 static void phase_mismatch(struct mesh_state *ms); 213 static void dlog(struct mesh_state *ms, char *fmt, int a) in dlog() argument 215 struct mesh_target *tp = &ms->tgts[ms->conn_tgt]; in dlog() 219 slp = &ms->log[ms->log_ix]; in dlog() 222 tlp->phase = (ms->msgphase << 4) + ms->phase; in dlog() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-raid1.c | 51 struct mirror_set *ms; member 99 struct mirror_set *ms = context; in wakeup_mirrord() local 101 queue_work(ms->kmirrord_wq, &ms->kmirrord_work); in wakeup_mirrord() 106 struct mirror_set *ms = from_timer(ms, t, timer); in delayed_wake_fn() local 108 clear_bit(0, &ms->timer_pending); in delayed_wake_fn() 109 wakeup_mirrord(ms); in delayed_wake_fn() 112 static void delayed_wake(struct mirror_set *ms) in delayed_wake() argument 114 if (test_and_set_bit(0, &ms->timer_pending)) in delayed_wake() 117 ms->timer.expires = jiffies + HZ / 5; in delayed_wake() 118 add_timer(&ms->timer); in delayed_wake() [all …]
|
/openbmc/qemu/hw/riscv/ |
H A D | numa.c | 28 static bool numa_enabled(const MachineState *ms) in numa_enabled() argument 30 return (ms->numa_state && ms->numa_state->num_nodes) ? true : false; in numa_enabled() 33 int riscv_socket_count(const MachineState *ms) in riscv_socket_count() argument 35 return (numa_enabled(ms)) ? ms->numa_state->num_nodes : 1; in riscv_socket_count() 38 int riscv_socket_first_hartid(const MachineState *ms, int socket_id) in riscv_socket_first_hartid() argument 40 int i, first_hartid = ms->smp.cpus; in riscv_socket_first_hartid() 42 if (!numa_enabled(ms)) { in riscv_socket_first_hartid() 46 for (i = 0; i < ms->smp.cpus; i++) { in riscv_socket_first_hartid() 47 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_first_hartid() 55 return (first_hartid < ms->smp.cpus) ? first_hartid : -1; in riscv_socket_first_hartid() [all …]
|
H A D | virt.c | 226 MachineState *ms = MACHINE(s); in create_fdt_socket_cpus() local 241 qemu_fdt_add_subnode(ms->fdt, cpu_name); in create_fdt_socket_cpus() 247 qemu_fdt_setprop_string(ms->fdt, cpu_name, "mmu-type", sv_name); in create_fdt_socket_cpus() 250 riscv_isa_write_fdt(cpu_ptr, ms->fdt, cpu_name); in create_fdt_socket_cpus() 253 qemu_fdt_setprop_cell(ms->fdt, cpu_name, "riscv,cbom-block-size", in create_fdt_socket_cpus() 258 qemu_fdt_setprop_cell(ms->fdt, cpu_name, "riscv,cboz-block-size", in create_fdt_socket_cpus() 263 qemu_fdt_setprop_cell(ms->fdt, cpu_name, "riscv,cbop-block-size", in create_fdt_socket_cpus() 267 qemu_fdt_setprop_string(ms->fdt, cpu_name, "compatible", "riscv"); in create_fdt_socket_cpus() 268 qemu_fdt_setprop_string(ms->fdt, cpu_name, "status", "okay"); in create_fdt_socket_cpus() 269 qemu_fdt_setprop_cell(ms->fdt, cpu_name, "reg", in create_fdt_socket_cpus() [all …]
|
/openbmc/telemetry/tests/src/ |
H A D | test_numeric_threshold.cpp | 52 makeThreshold(0ms, numeric::Direction::increasing, 90.0, in SetUp() 91 Milliseconds sleepAfter = 0ms) : in UpdateParams() 103 Milliseconds waitMin = 0ms) : in ExpectedParams() 173 Milliseconds dwellTime = 0ms; 186 if (duration != 0ms) in sleep() 219 sut->sensorUpdated(*sensorMocks[idx], 0ms, value); in testBodySensorIsUpdatedMultipleTimes() 228 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in testBodySensorIsUpdatedMultipleTimes() 251 makeThreshold(0ms, GetParam().direction, GetParam().thresholdValue); in SetUp() 386 .DwellTime(200ms) 390 .Updates({{0, 89.0, 200ms}}) [all …]
|
H A D | test_discrete_threshold.cpp | 54 sut = makeThreshold(0ms, "90.0", discrete::Severity::critical); in SetUp() 86 sut = makeThreshold(0ms, GetParam(), discrete::Severity::critical); in TEST_P() 102 EXPECT_THROW(makeThreshold(0ms, GetParam()), std::invalid_argument); in TEST_P() 112 auto sut = makeThreshold(0ms, "12.3", discrete::Severity::ok, "non-empty"); in TEST_F() 121 auto sut = makeThreshold(0ms, "12.3", discrete::Severity::ok, ""); in TEST_F() 137 Milliseconds sleepAfter = 0ms) : in UpdateParams() 149 Milliseconds waitMin = 0ms) : in ExpectedParams() 200 Milliseconds dwellTime = 0ms; 210 if (duration != 0ms) in sleep() 243 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in testBodySensorIsUpdatedMultipleTimes() [all …]
|
H A D | test_metric.cpp | 18 constexpr Milliseconds systemTimestamp = 42ms; 55 .collectionDuration(CollectionDuration(0ms)); 220 ret.emplace_back(0ms, std::numeric_limits<double>::quiet_NaN()); in defaultReadings() 221 ret.emplace_back(10ms, 14.); in defaultReadings() 222 ret.emplace_back(1ms, 3.); in defaultReadings() 223 ret.emplace_back(5ms, 7.); in defaultReadings() 232 .expectedReading(systemTimestamp + 16ms, 7.0); in defaultCollectionFunctionParams() 258 .collectionDuration(CollectionDuration(100ms)) 259 .expectedReading(systemTimestamp + 16ms, 3.0), 262 .collectionDuration(CollectionDuration(3ms)) [all …]
|
/openbmc/linux/Documentation/fb/ |
H A D | viafb.modes | 15 # Sync Width 3.813 us 0.064 ms 17 # Front Porch 0.636 us 0.318 ms 19 # Back Porch 1.907 us 1.048 ms 21 # Active Time 25.422 us 15.253 ms 23 # Blank Time 6.356 us 1.430 ms 40 # Sync Width 2.032 us 0.080 ms 42 # Front Porch 0.508 us 0.027 ms 44 # Back Porch 3.810 us 0.427 ms 46 # Active Time 20.317 us 12.800 ms 48 # Blank Time 6.349 us 0.533 ms [all …]
|
/openbmc/qemu/hw/loongarch/ |
H A D | virt.c | 141 MachineState *ms = MACHINE(lvms); in fdt_add_cpuic_node() local 144 *cpuintc_phandle = qemu_fdt_alloc_phandle(ms->fdt); in fdt_add_cpuic_node() 146 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_cpuic_node() 147 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", *cpuintc_phandle); in fdt_add_cpuic_node() 148 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_cpuic_node() 150 qemu_fdt_setprop(ms->fdt, nodename, "interrupt-controller", NULL, 0); in fdt_add_cpuic_node() 151 qemu_fdt_setprop_cell(ms->fdt, nodename, "#interrupt-cells", 1); in fdt_add_cpuic_node() 159 MachineState *ms = MACHINE(lvms); in fdt_add_eiointc_node() local 164 *eiointc_phandle = qemu_fdt_alloc_phandle(ms->fdt); in fdt_add_eiointc_node() 166 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_eiointc_node() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | machine.c | 292 MachineState *ms = MACHINE(obj); in machine_get_kernel() local 294 return g_strdup(ms->kernel_filename); in machine_get_kernel() 299 MachineState *ms = MACHINE(obj); in machine_set_kernel() local 301 g_free(ms->kernel_filename); in machine_set_kernel() 302 ms->kernel_filename = g_strdup(value); in machine_set_kernel() 307 MachineState *ms = MACHINE(obj); in machine_get_initrd() local 309 return g_strdup(ms->initrd_filename); in machine_get_initrd() 314 MachineState *ms = MACHINE(obj); in machine_set_initrd() local 316 g_free(ms->initrd_filename); in machine_set_initrd() 317 ms->initrd_filename = g_strdup(value); in machine_set_initrd() [all …]
|
H A D | machine-smp.c | 31 static char *cpu_hierarchy_to_string(MachineState *ms) in cpu_hierarchy_to_string() argument 33 MachineClass *mc = MACHINE_GET_CLASS(ms); in cpu_hierarchy_to_string() 37 g_string_append_printf(s, "drawers (%u) * ", ms->smp.drawers); in cpu_hierarchy_to_string() 41 g_string_append_printf(s, "books (%u) * ", ms->smp.books); in cpu_hierarchy_to_string() 44 g_string_append_printf(s, "sockets (%u)", ms->smp.sockets); in cpu_hierarchy_to_string() 47 g_string_append_printf(s, " * dies (%u)", ms->smp.dies); in cpu_hierarchy_to_string() 51 g_string_append_printf(s, " * clusters (%u)", ms->smp.clusters); in cpu_hierarchy_to_string() 55 g_string_append_printf(s, " * modules (%u)", ms->smp.modules); in cpu_hierarchy_to_string() 58 g_string_append_printf(s, " * cores (%u)", ms->smp.cores); in cpu_hierarchy_to_string() 59 g_string_append_printf(s, " * threads (%u)", ms->smp.threads); in cpu_hierarchy_to_string() [all …]
|
H A D | numa.c | 62 static void parse_numa_node(MachineState *ms, NumaNodeOptions *node, in parse_numa_node() argument 68 MachineClass *mc = MACHINE_GET_CLASS(ms); in parse_numa_node() 69 unsigned int max_cpus = ms->smp.max_cpus; in parse_numa_node() 70 NodeInfo *numa_info = ms->numa_state->nodes; in parse_numa_node() 75 nodenr = ms->numa_state->num_nodes; in parse_numa_node() 95 if (!ms->numa_state->hmat_enabled) { in parse_numa_node() 121 props = mc->cpu_index_to_instance_props(ms, cpus->value); in parse_numa_node() 124 machine_set_cpu_numa_node(ms, &props, &err); in parse_numa_node() 168 ms->numa_state->num_nodes++; in parse_numa_node() 172 void parse_numa_distance(MachineState *ms, NumaDistOptions *dist, Error **errp) in parse_numa_distance() argument [all …]
|
/openbmc/qemu/hw/mem/ |
H A D | memory-device.c | 85 static unsigned int get_reserved_memslots(MachineState *ms) in get_reserved_memslots() argument 87 if (ms->device_memory->used_memslots > in get_reserved_memslots() 88 ms->device_memory->required_memslots) { in get_reserved_memslots() 92 return ms->device_memory->required_memslots - in get_reserved_memslots() 93 ms->device_memory->used_memslots; in get_reserved_memslots() 113 static unsigned int memory_device_memslot_decision_limit(MachineState *ms, in memory_device_memslot_decision_limit() argument 116 const unsigned int reserved = get_reserved_memslots(ms); in memory_device_memslot_decision_limit() 141 ms->device_memory->required_memslots) { in memory_device_memslot_decision_limit() 145 ms->device_memory->required_memslots; in memory_device_memslot_decision_limit() 159 if (size == ms->maxram_size - ms->ram_size) { in memory_device_memslot_decision_limit() [all …]
|
/openbmc/linux/Documentation/translations/zh_CN/scheduler/ |
H A D | sched-bwc.rst | 78 cpu.cfs_period_us=100ms 86 小配额是1ms。周期长度也有一个1s的上限。当带宽限制以分层方式使用时,存在额外的限制,这些在下 104 /proc/sys/kernel/sched_cfs_bandwidth_slice_us (default=5ms) 144 1ms以外的所有时间片都可以返回到全局池中。这是在编译时由min_cfs_rq_runtime变量配置的。这 154 即任务组正在运行的每个cpu上未使用的片断量(通常每个cpu最多1ms或由min_cfs_rq_runtime定 157 长的时间窗口。这也限制了突发能力,每个cpu不超过1ms。这为在高核数机器上有小配额限制的高线程 164 可能在某些时期使用多达1ms的额外配额,从而阻止cpu绑定的应用程序完全使用其配额,这也是同样的数 172 如果周期是250ms,配额也是250ms,那么该组将每250ms获得价值1个CPU的运行时间。 174 # echo 250000 > cpu.cfs_quota_us /* quota = 250ms */ 175 # echo 250000 > cpu.cfs_period_us /* period = 250ms */ [all …]
|
/openbmc/linux/lib/zstd/compress/ |
H A D | zstd_lazy.h | 25 U32 ZSTD_insertAndFindFirstIndex(ZSTD_matchState_t* ms, const BYTE* ip); 26 void ZSTD_row_update(ZSTD_matchState_t* const ms, const BYTE* ip); 28 void ZSTD_dedicatedDictSearch_lazy_loadDictionary(ZSTD_matchState_t* ms, const BYTE* const ip); 33 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 36 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 39 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 42 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 45 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 48 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], 51 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], [all …]
|
H A D | zstd_lazy.c | 20 ZSTD_updateDUBT(ZSTD_matchState_t* ms, in ZSTD_updateDUBT() argument 24 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_updateDUBT() 25 U32* const hashTable = ms->hashTable; in ZSTD_updateDUBT() 28 U32* const bt = ms->chainTable; in ZSTD_updateDUBT() 32 const BYTE* const base = ms->window.base; in ZSTD_updateDUBT() 34 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT() 38 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT() 42 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT() 55 ms->nextToUpdate = target; in ZSTD_updateDUBT() 64 ZSTD_insertDUBT1(const ZSTD_matchState_t* ms, in ZSTD_insertDUBT1() argument [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | virt.c | 232 static void create_randomness(MachineState *ms, const char *node) in create_randomness() argument 242 qemu_fdt_setprop_u64(ms->fdt, node, "kaslr-seed", seed.kaslr); in create_randomness() 243 qemu_fdt_setprop(ms->fdt, node, "rng-seed", seed.rng, sizeof(seed.rng)); in create_randomness() 262 MachineState *ms = MACHINE(vms); in create_fdt() local 263 int nb_numa_nodes = ms->numa_state->num_nodes; in create_fdt() 271 ms->fdt = fdt; in create_fdt() 293 create_randomness(ms, "/chosen"); in create_fdt() 299 create_randomness(ms, "/secure-chosen"); in create_fdt() 319 if (nb_numa_nodes > 0 && ms->numa_state->have_numa_distance) { in create_fdt() 330 cpu_to_be32(ms->numa_state->nodes[i].distance[j]); in create_fdt() [all …]
|
/openbmc/qemu/include/hw/riscv/ |
H A D | numa.h | 32 int riscv_socket_count(const MachineState *ms); 41 int riscv_socket_first_hartid(const MachineState *ms, int socket_id); 50 int riscv_socket_last_hartid(const MachineState *ms, int socket_id); 59 int riscv_socket_hart_count(const MachineState *ms, int socket_id); 68 uint64_t riscv_socket_mem_offset(const MachineState *ms, int socket_id); 77 uint64_t riscv_socket_mem_size(const MachineState *ms, int socket_id); 86 bool riscv_socket_check_hartids(const MachineState *ms, int socket_id); 95 void riscv_socket_fdt_write_id(const MachineState *ms, const char *node_name, 105 void riscv_socket_fdt_write_distance_matrix(const MachineState *ms); 108 riscv_numa_cpu_index_to_props(MachineState *ms, unsigned cpu_index); [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | x86.c | 45 MachineState *ms = MACHINE(x86ms); in init_topo_info() local 47 topo_info->dies_per_pkg = ms->smp.dies; in init_topo_info() 54 topo_info->modules_per_die = ms->smp.modules; in init_topo_info() 55 topo_info->cores_per_module = ms->smp.cores; in init_topo_info() 56 topo_info->threads_per_core = ms->smp.threads; in init_topo_info() 78 x86_cpu_index_to_props(MachineState *ms, unsigned cpu_index) in x86_cpu_index_to_props() argument 80 MachineClass *mc = MACHINE_GET_CLASS(ms); in x86_cpu_index_to_props() 81 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(ms); in x86_cpu_index_to_props() 87 static int64_t x86_get_default_cpu_node_id(const MachineState *ms, int idx) in x86_get_default_cpu_node_id() argument 90 X86MachineState *x86ms = X86_MACHINE(ms); in x86_get_default_cpu_node_id() [all …]
|
/openbmc/linux/mm/ |
H A D | sparse.c | 164 static void __section_mark_present(struct mem_section *ms, in __section_mark_present() argument 170 ms->section_mem_map |= SECTION_MARKED_PRESENT; in __section_mark_present() 202 struct mem_section *ms; in subsection_map_init() local 207 ms = __nr_to_section(nr); in subsection_map_init() 208 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init() 246 struct mem_section *ms; in memory_present() local 251 ms = __nr_to_section(section); in memory_present() 252 if (!ms->section_mem_map) { in memory_present() 253 ms->section_mem_map = sparse_encode_early_nid(nid) | in memory_present() 255 __section_mark_present(ms, section); in memory_present() [all …]
|
/openbmc/linux/kernel/ |
H A D | module_signature.c | 21 int mod_check_sig(const struct module_signature *ms, size_t file_len, in mod_check_sig() argument 24 if (be32_to_cpu(ms->sig_len) >= file_len - sizeof(*ms)) in mod_check_sig() 27 if (ms->id_type != PKEY_ID_PKCS7) { in mod_check_sig() 33 if (ms->algo != 0 || in mod_check_sig() 34 ms->hash != 0 || in mod_check_sig() 35 ms->signer_len != 0 || in mod_check_sig() 36 ms->key_id_len != 0 || in mod_check_sig() 37 ms->__pad[0] != 0 || in mod_check_sig() 38 ms->__pad[1] != 0 || in mod_check_sig() 39 ms->__pad[2] != 0) { in mod_check_sig()
|
/openbmc/linux/fs/dlm/ |
H A D | requestqueue.c | 34 const struct dlm_message *ms) in dlm_add_requestqueue() argument 37 int length = le16_to_cpu(ms->m_header.h_length) - in dlm_add_requestqueue() 48 memcpy(&e->request, ms, sizeof(*ms)); in dlm_add_requestqueue() 49 memcpy(&e->request.m_extra, ms->m_extra, length); in dlm_add_requestqueue() 71 struct dlm_message *ms; in dlm_process_requestqueue() local 85 ms = &e->request; in dlm_process_requestqueue() 89 le32_to_cpu(ms->m_type), in dlm_process_requestqueue() 90 le32_to_cpu(ms->m_header.h_nodeid), in dlm_process_requestqueue() 91 le32_to_cpu(ms->m_lkid), le32_to_cpu(ms->m_remid), in dlm_process_requestqueue() 92 from_dlm_errno(le32_to_cpu(ms->m_result)), in dlm_process_requestqueue() [all …]
|
/openbmc/linux/include/asm-generic/ |
H A D | mmiowb.h | 37 struct mmiowb_state *ms = __mmiowb_state(); in mmiowb_set_pending() local 39 if (likely(ms->nesting_count)) in mmiowb_set_pending() 40 ms->mmiowb_pending = ms->nesting_count; in mmiowb_set_pending() 45 struct mmiowb_state *ms = __mmiowb_state(); in mmiowb_spin_lock() local 46 ms->nesting_count++; in mmiowb_spin_lock() 51 struct mmiowb_state *ms = __mmiowb_state(); in mmiowb_spin_unlock() local 53 if (unlikely(ms->mmiowb_pending)) { in mmiowb_spin_unlock() 54 ms->mmiowb_pending = 0; in mmiowb_spin_unlock() 58 ms->nesting_count--; in mmiowb_spin_unlock()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-microsoft.c | 62 struct ms_data *ms = hid_get_drvdata(hdev); in ms_report_fixup() local 63 unsigned long quirks = ms->quirks; in ms_report_fixup() 186 struct ms_data *ms = hid_get_drvdata(hdev); in ms_input_mapping() local 187 unsigned long quirks = ms->quirks; in ms_input_mapping() 213 struct ms_data *ms = hid_get_drvdata(hdev); in ms_input_mapped() local 214 unsigned long quirks = ms->quirks; in ms_input_mapped() 225 struct ms_data *ms = hid_get_drvdata(hdev); in ms_event() local 226 unsigned long quirks = ms->quirks; in ms_event() 283 struct ms_data *ms = container_of(work, struct ms_data, ff_worker); in ms_ff_worker() local 284 struct hid_device *hdev = ms->hdev; in ms_ff_worker() [all …]
|