/openbmc/phosphor-led-manager/test/ |
H A D | led-test-map.hpp | 8 {"One", phosphor::led::Layout::Action::On, 0, 0, 9 phosphor::led::Layout::Action::Blink}, 17 {"One", phosphor::led::Layout::Action::Blink, 0, 0, 18 phosphor::led::Layout::Action::Blink}, 26 {"One", phosphor::led::Layout::Action::Blink, 0, 0, 27 phosphor::led::Layout::Action::On}, 35 {"One", phosphor::led::Layout::Action::On, 0, 0, 36 phosphor::led::Layout::Action::On}, 37 {"Two", phosphor::led::Layout::Action::On, 0, 0, 38 phosphor::led::Layout::Action::On}, [all …]
|
H A D | utest-group-priority.cpp | 23 static void assertMap(std::map<LedName, Layout::LedAction> map, in assertMap() 24 std::map<LedName, Layout::Action> expect) in assertMap() 38 {"led1", Layout::Action::On, 0, 0, std::nullopt}, 39 {"led2", Layout::Action::On, 0, 0, std::nullopt}, 44 {"led3", Layout::Action::On, 0, 0, std::nullopt}, 45 {"led4", Layout::Action::On, 0, 0, std::nullopt}, 54 std::set<const Layout::GroupLayout*> assertedGroups; in TEST_F() 56 Layout::GroupLayout mygroup = in TEST_F() 61 std::map<LedName, Layout::LedAction> map = in TEST_F() 65 {"led1", Layout::Action::On}, in TEST_F() [all …]
|
H A D | utest-config-validator.cpp | 26 {"led1", Layout::Action::On, 0, 0, Layout::Action::On}, in TEST() 27 {"led2", Layout::Action::On, 0, 0, Layout::Action::Blink}, in TEST() 29 Layout::GroupLayout group1 = {0, group1ActionSet}; in TEST() 38 {"led1", Layout::Action::On, 0, 0, std::nullopt}, in TEST() 39 {"led2", Layout::Action::On, 0, 0, std::nullopt}, in TEST() 42 {"led1", Layout::Action::On, 0, 0, std::nullopt}, in TEST() 43 {"led2", Layout::Action::On, 0, 0, std::nullopt}, in TEST() 45 Layout::GroupLayout group1 = {1, group1ActionSet}; in TEST() 46 Layout::GroupLayout group2 = {2, group1ActionSet}; in TEST() 58 {"led1", Layout::Action::On, 0, 0, Layout::Action::On}, in TEST() [all …]
|
H A D | utest.cpp | 39 {"One", phosphor::led::Layout::Action::On, 0, 0, in TEST_F() 40 phosphor::led::Layout::Action::Blink}, in TEST_F() 71 {"One", phosphor::led::Layout::Action::Blink, 0, 0, in TEST_F() 72 phosphor::led::Layout::Action::Blink}, in TEST_F() 103 {"One", phosphor::led::Layout::Action::On, 0, 0, in TEST_F() 104 phosphor::led::Layout::Action::Blink}, in TEST_F() 149 {"One", phosphor::led::Layout::Action::On, 0, 0, in TEST_F() 150 phosphor::led::Layout::Action::On}, in TEST_F() 151 {"Two", phosphor::led::Layout::Action::On, 0, 0, in TEST_F() 152 phosphor::led::Layout::Action::On}, in TEST_F() [all …]
|
H A D | utest-led-json.cpp | 29 ASSERT_EQ(group.action, phosphor::led::Layout::Action::On); in TEST() 32 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Blink); in TEST() 38 ASSERT_EQ(group.action, phosphor::led::Layout::Action::On); in TEST() 41 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::On); in TEST() 46 ASSERT_EQ(group.action, phosphor::led::Layout::Action::Off); in TEST() 47 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Off); in TEST() 54 ASSERT_EQ(group.action, phosphor::led::Layout::Action::Blink); in TEST() 57 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Blink); in TEST() 61 ASSERT_EQ(group.action, phosphor::led::Layout::Action::Blink); in TEST() 64 ASSERT_EQ(group.priority, phosphor::led::Layout::Action::Blink); in TEST()
|
/openbmc/u-boot/common/eeprom/ |
H A D | eeprom_layout.c | 14 #define NO_LAYOUT_FIELDS "Unknown layout. Dumping raw data\n" 22 * eeprom_layout_detect() - detect layout based on the contents of the data. 25 * Returns: the detected layout version. 33 * __eeprom_layout_assign() - set the layout fields 34 * @layout: A pointer to an existing struct layout. 35 * @layout_version: The version number of the desired layout 37 __weak void __eeprom_layout_assign(struct eeprom_layout *layout, in __eeprom_layout_assign() argument 40 layout->fields = layout_unknown; in __eeprom_layout_assign() 41 layout->num_of_fields = ARRAY_SIZE(layout_unknown); in __eeprom_layout_assign() 43 void eeprom_layout_assign(struct eeprom_layout *layout, int layout_version) \ [all …]
|
/openbmc/linux/rust/kernel/ |
H A D | allocator.rs | 5 use core::alloc::{GlobalAlloc, Layout}; 18 unsafe fn krealloc_aligned(ptr: *mut u8, new_layout: Layout, flags: bindings::gfp_t) -> *mut u8 { in krealloc_aligned() argument 19 // Customized layouts from `Layout::from_size_align()` can have size < align, so pad first. in krealloc_aligned() 20 let layout = new_layout.pad_to_align(); in krealloc_aligned() localVariable 22 let mut size = layout.size(); in krealloc_aligned() 24 if layout.align() > bindings::BINDINGS_ARCH_SLAB_MINALIGN { in krealloc_aligned() 29 // Note that `layout.size()` (after padding) is guaranteed to be a multiple of in krealloc_aligned() 30 // `layout.align()`, so `next_power_of_two` gives enough alignment guarantee. in krealloc_aligned() 37 // - `size` is greater than 0 since it's either a `layout.size()` (which cannot be zero in krealloc_aligned() 43 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() [all …]
|
/openbmc/linux/drivers/clk/at91/ |
H A D | clk-programmable.c | 18 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & layout->pres_mask) argument 26 const struct clk_programmable_layout *layout; member 36 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_recalc_rate() local 42 if (layout->is_pres_direct) in clk_programmable_recalc_rate() 43 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate() 45 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate() 54 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_determine_rate() local 68 if (layout->is_pres_direct) { in clk_programmable_determine_rate() 69 for (shift = 0; shift <= layout->pres_mask; shift++) { in clk_programmable_determine_rate() 75 for (shift = 0; shift < layout->pres_mask; shift++) { in clk_programmable_determine_rate() [all …]
|
H A D | clk-pll.c | 20 #define PLL_MUL(reg, layout) (((reg) >> (layout)->mul_shift) & \ argument 21 (layout)->mul_mask) 23 #define PLL_MUL_MASK(layout) ((layout)->mul_mask) argument 24 #define PLL_MUL_MAX(layout) (PLL_MUL_MASK(layout) + 1) argument 41 const struct clk_pll_layout *layout; member 59 const struct clk_pll_layout *layout = pll->layout; in clk_pll_prepare() local 73 mul = PLL_MUL(pllr, layout); in clk_pll_prepare() 87 regmap_update_bits(regmap, offset, layout->pllr_mask, in clk_pll_prepare() 90 ((pll->mul & layout->mul_mask) << layout->mul_shift)); in clk_pll_prepare() 108 unsigned int mask = pll->layout->pllr_mask; in clk_pll_unprepare() [all …]
|
H A D | clk-generated.c | 29 const struct clk_pcr_layout *layout; member 44 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_set() 45 (gck->id & gck->layout->pid_mask)); in clk_generated_set() 46 regmap_update_bits(gck->regmap, gck->layout->offset, in clk_generated_set() 47 AT91_PMC_PCR_GCKDIV_MASK | gck->layout->gckcss_mask | in clk_generated_set() 48 gck->layout->cmd | enable, in clk_generated_set() 49 field_prep(gck->layout->gckcss_mask, gck->parent_id) | in clk_generated_set() 50 gck->layout->cmd | in clk_generated_set() 76 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_disable() 77 (gck->id & gck->layout->pid_mask)); in clk_generated_disable() [all …]
|
H A D | clk-peripheral.c | 39 const struct clk_pcr_layout *layout; member 173 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_set() 174 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_set() 175 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_set() 176 periph->layout->div_mask | periph->layout->cmd | in clk_sam9x5_peripheral_set() 178 field_prep(periph->layout->div_mask, periph->div) | in clk_sam9x5_peripheral_set() 179 periph->layout->cmd | enable); in clk_sam9x5_peripheral_set() 201 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable() 202 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable() 203 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable() [all …]
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ethtool.c | 22 struct can_ram_layout layout; in mcp251xfd_ring_get_ringparam() local 24 can_ram_get_layout(&layout, &mcp251xfd_ram_config, NULL, NULL, fd_mode); in mcp251xfd_ring_get_ringparam() 25 ring->rx_max_pending = layout.max_rx; in mcp251xfd_ring_get_ringparam() 26 ring->tx_max_pending = layout.max_tx; in mcp251xfd_ring_get_ringparam() 40 struct can_ram_layout layout; in mcp251xfd_ring_set_ringparam() local 42 can_ram_get_layout(&layout, &mcp251xfd_ram_config, ring, NULL, fd_mode); in mcp251xfd_ring_set_ringparam() 43 if ((layout.cur_rx != priv->rx_obj_num || in mcp251xfd_ring_set_ringparam() 44 layout.cur_tx != priv->tx->obj_num) && in mcp251xfd_ring_set_ringparam() 48 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_ringparam() 49 priv->rx_obj_num_coalesce_irq = layout.rx_coalesce; in mcp251xfd_ring_set_ringparam() [all …]
|
H A D | mcp251xfd-ram.c | 60 void can_ram_get_layout(struct can_ram_layout *layout, in can_ram_get_layout() argument 79 layout->default_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout() 80 layout->default_tx = num_tx; in can_ram_get_layout() 92 layout->max_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout() 93 layout->max_tx = can_ram_rounddown_pow_of_two(config, &config->tx, 0, num_tx); in can_ram_get_layout() 106 if (num_rx > layout->max_rx) in can_ram_get_layout() 107 num_rx = layout->default_rx; in can_ram_get_layout() 152 layout->cur_rx = num_rx; in can_ram_get_layout() 153 layout->cur_tx = num_tx; in can_ram_get_layout() 154 layout->rx_coalesce = num_rx_coalesce; in can_ram_get_layout() [all …]
|
/openbmc/linux/rust/alloc/ |
H A D | alloc.rs | 76 /// use std::alloc::{alloc, dealloc, handle_alloc_error, Layout}; 79 /// let layout = Layout::new::<u16>(); 80 /// let ptr = alloc(layout); 82 /// handle_alloc_error(layout); 88 /// dealloc(ptr, layout); 94 pub unsafe fn alloc(layout: Layout) -> *mut u8 { in alloc() 100 __rust_alloc(layout.size(), layout.align()) in alloc() 118 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) { in dealloc() argument 119 unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) } in dealloc() 137 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_formats.c | 636 struct dpu_hw_fmt_layout *layout) in _dpu_format_get_plane_sizes_ubwc() argument 642 memset(layout, 0, sizeof(struct dpu_hw_fmt_layout)); in _dpu_format_get_plane_sizes_ubwc() 643 layout->format = fmt; in _dpu_format_get_plane_sizes_ubwc() 644 layout->width = width; in _dpu_format_get_plane_sizes_ubwc() 645 layout->height = height; in _dpu_format_get_plane_sizes_ubwc() 646 layout->num_planes = fmt->num_planes; in _dpu_format_get_plane_sizes_ubwc() 655 if (DPU_FORMAT_IS_YUV(layout->format)) { in _dpu_format_get_plane_sizes_ubwc() 660 layout->num_planes = 2; in _dpu_format_get_plane_sizes_ubwc() 661 layout->plane_pitch[0] = VENUS_Y_STRIDE(color, width); in _dpu_format_get_plane_sizes_ubwc() 663 layout->plane_size[0] = MSM_MEDIA_ALIGN(layout->plane_pitch[0] * in _dpu_format_get_plane_sizes_ubwc() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-creg-snps.c | 27 const struct creg_layout *layout; member 33 const struct creg_layout *layout = hcg->layout; in creg_gpio_set() local 38 value = val ? hcg->layout->on[offset] : hcg->layout->off[offset]; in creg_gpio_set() 40 reg_shift = layout->shift[offset]; in creg_gpio_set() 42 reg_shift += layout->bit_per_gpio[i] + layout->shift[i]; in creg_gpio_set() 46 reg &= ~(GENMASK(layout->bit_per_gpio[i] - 1, 0) << reg_shift); in creg_gpio_set() 62 const struct creg_layout *layout = hcg->layout; in creg_gpio_validate_pg() local 64 if (layout->bit_per_gpio[i] < 1 || layout->bit_per_gpio[i] > 8) in creg_gpio_validate_pg() 68 if (GENMASK(31, layout->bit_per_gpio[i]) & layout->on[i]) in creg_gpio_validate_pg() 72 if (GENMASK(31, layout->bit_per_gpio[i]) & layout->off[i]) in creg_gpio_validate_pg() [all …]
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | apl.c | 53 struct apl_log_buffer_layout layout; in apl_log_buffer_status() local 60 memcpy_fromio(&layout, addr, sizeof(layout)); in apl_log_buffer_status() 68 if (layout.read_ptr > layout.write_ptr) { in apl_log_buffer_status() 69 avs_dump_fw_log(adev, buf + layout.read_ptr, in apl_log_buffer_status() 70 apl_log_payload_size(adev) - layout.read_ptr); in apl_log_buffer_status() 71 layout.read_ptr = 0; in apl_log_buffer_status() 73 avs_dump_fw_log_wakeup(adev, buf + layout.read_ptr, layout.write_ptr - layout.read_ptr); in apl_log_buffer_status() 76 writel(layout.write_ptr, addr); in apl_log_buffer_status() 80 static int apl_wait_log_entry(struct avs_dev *adev, u32 core, struct apl_log_buffer_layout *layout) in apl_wait_log_entry() argument 92 memcpy_fromio(layout, addr, sizeof(*layout)); in apl_wait_log_entry() [all …]
|
/openbmc/libmctp/ |
H A D | astlpc.c | 125 struct mctp_astlpc_layout layout; member 282 } layout; member 395 struct mctp_astlpc_layout *layout) in mctp_astlpc_layout_read() argument 406 layout->rx.offset = be32toh(hdr.layout.tx_offset); in mctp_astlpc_layout_read() 407 layout->rx.size = be32toh(hdr.layout.tx_size); in mctp_astlpc_layout_read() 408 layout->tx.offset = be32toh(hdr.layout.rx_offset); in mctp_astlpc_layout_read() 409 layout->tx.size = be32toh(hdr.layout.rx_size); in mctp_astlpc_layout_read() 413 layout->rx.offset = be32toh(hdr.layout.rx_offset); in mctp_astlpc_layout_read() 414 layout->rx.size = be32toh(hdr.layout.rx_size); in mctp_astlpc_layout_read() 415 layout->tx.offset = be32toh(hdr.layout.tx_offset); in mctp_astlpc_layout_read() [all …]
|
/openbmc/linux/sound/aoa/fabrics/ |
H A D | layout.c | 3 * Apple Onboard Audio driver -- layout/machine id fabric 8 * layout-id or device-id property in the device tree. 19 MODULE_DESCRIPTION("Layout-ID fabric for snd-aoa"); 23 /* These are the connections the layout fabric 62 struct layout { struct 68 * so that our layout table doesn't need to be filled argument 72 * multiple layout-ids */ 77 MODULE_ALIAS("sound-layout-36"); argument 78 MODULE_ALIAS("sound-layout-41"); 79 MODULE_ALIAS("sound-layout-45"); [all …]
|
/openbmc/linux/Documentation/filesystems/nfs/ |
H A D | pnfs.rst | 17 Each nfs_inode may hold a pointer to a cache of these layout 18 segments in nfsi->layout, of type struct pnfs_layout_hdr. 26 the reference count, as the layout is kept around by the lseg that 33 layout driver type. The device ids are held in a RCU cache (struct 62 layout drivers 65 PNFS utilizes what is called layout drivers. The STD defines 4 basic 66 layout types: "files", "objects", "blocks", and "flexfiles". For each 67 of these types there is a layout-driver with a common function-vectors 69 different layout types. 71 Files-layout-driver code is in: fs/nfs/filelayout/.. directory [all …]
|
/openbmc/phosphor-led-manager/manager/ |
H A D | manager.cpp | 18 static void applyGroupAction(std::map<LedName, Layout::LedAction>& newState, in applyGroupAction() 19 Layout::LedAction action) in applyGroupAction() 43 std::set<const Layout::GroupLayout*, Layout::CompareGroupLayout> sorted) in getNewMapWithGroupPriorities() 44 -> std::map<LedName, Layout::LedAction> in getNewMapWithGroupPriorities() 46 std::map<LedName, Layout::LedAction> newState; in getNewMapWithGroupPriorities() 52 for (const Layout::LedAction& action : it->actionSet) in getNewMapWithGroupPriorities() 60 static std::map<LedName, Layout::LedAction> getNewMapWithLEDPriorities( in getNewMapWithLEDPriorities() 61 std::set<const Layout::GroupLayout*> assertedGroups) in getNewMapWithLEDPriorities() 63 std::map<LedName, Layout::LedAction> newState; in getNewMapWithLEDPriorities() 65 for (const Layout::GroupLayout* it : assertedGroups) in getNewMapWithLEDPriorities() [all …]
|
H A D | manager.hpp | 41 static bool ledComp(const phosphor::led::Layout::LedAction& left, in ledComp() 42 const phosphor::led::Layout::LedAction& right) in ledComp() 58 static bool ledLess(const phosphor::led::Layout::LedAction& left, in ledLess() 59 const phosphor::led::Layout::LedAction& right) in ledLess() 65 static bool ledEqual(const phosphor::led::Layout::LedAction& left, in ledEqual() 66 const phosphor::led::Layout::LedAction& right) in ledEqual() 74 /** @brief Refer the user supplied LED layout and sdbusplus handler 77 * @param [in] GroupMap - LEDs group layout 90 static auto getNewMap(std::set<const Layout::GroupLayout*> assertedGroups) 91 -> std::map<LedName, Layout::LedAction>; [all …]
|
/openbmc/qemu/docs/system/devices/ |
H A D | keyboard.rst | 5 SUN Type 4, 5 and 5c keyboards have dip switches to choose the language layout 7 and uses that value to select keyboard layout. Also the SUN bios like the one 10 US keyboard layout. 12 With the escc.chnA-sunkbd-layout driver property it is possible to select 13 keyboard layout. Example: 15 -global escc.chnA-sunkbd-layout=de 18 select keyboard layout, giving up to 64 different layouts. Not all 24 -global escc.chnA-sunkbd-layout=0x2b 26 -global escc.chnA-sunkbd-layout=43 28 -global escc.chnA-sunkbd-layout=sv [all …]
|
/openbmc/linux/include/linux/ |
H A D | nvmem-provider.h | 100 * @layout: Fixed layout associated with this nvmem device. 123 struct nvmem_layout *layout; member 157 * struct nvmem_layout - NVMEM layout definitions 159 * @name: Layout name. 162 * has this layout. The function will add layout 171 * pairs. A nvmem layout can parse the nvmem device and add appropriate 178 struct nvmem_layout *layout); 180 struct nvmem_layout *layout, 202 int __nvmem_layout_register(struct nvmem_layout *layout, struct module *owner); 203 #define nvmem_layout_register(layout) \ argument [all …]
|
/openbmc/linux/fs/ceph/ |
H A D | ioctl.h | 11 * CEPH_IOC_GET_LAYOUT - get file layout or dir layout policy 12 * CEPH_IOC_SET_LAYOUT - set file layout 13 * CEPH_IOC_SET_LAYOUT_POLICY - set dir layout policy 15 * The file layout specifies how file data is striped over objects in 20 * Files get a new layout based on the policy set on the containing 22 * you examine the layout for a file or the policy on a directory. 24 * SET_LAYOUT will let you set a layout on a newly created file. This 28 * SET_LAYOUT_POLICY will let you set a layout policy (default layout) 30 * directory (or any child directory that doesn't specify a layout of
|