Home
last modified time | relevance | path

Searched full:layout (Results 1 – 25 of 1873) sorted by relevance

12345678910>>...75

/linux-6.14.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_formats.c96 struct dpu_hw_fmt_layout *layout) in _dpu_format_populate_plane_sizes_ubwc() argument
102 memset(layout, 0, sizeof(struct dpu_hw_fmt_layout)); in _dpu_format_populate_plane_sizes_ubwc()
103 layout->width = fb->width; in _dpu_format_populate_plane_sizes_ubwc()
104 layout->height = fb->height; in _dpu_format_populate_plane_sizes_ubwc()
105 layout->num_planes = fmt->num_planes; in _dpu_format_populate_plane_sizes_ubwc()
119 layout->num_planes = 2; in _dpu_format_populate_plane_sizes_ubwc()
120 layout->plane_pitch[0] = VENUS_Y_STRIDE(color, fb->width); in _dpu_format_populate_plane_sizes_ubwc()
122 layout->plane_size[0] = MSM_MEDIA_ALIGN(layout->plane_pitch[0] * in _dpu_format_populate_plane_sizes_ubwc()
125 layout->plane_pitch[1] = VENUS_UV_STRIDE(color, fb->width); in _dpu_format_populate_plane_sizes_ubwc()
127 layout->plane_size[1] = MSM_MEDIA_ALIGN(layout->plane_pitch[1] * in _dpu_format_populate_plane_sizes_ubwc()
[all …]
/linux-6.14.4/drivers/md/dm-vdo/indexer/
Dindex-layout.c6 #include "index-layout.h"
21 * The UDS layout on storage media is divided into a number of fixed-size regions, the sizes of
40 * The header contains the encoded region layout table as well as some index configuration data.
53 * The header contains the encoded region layout table as well as index state data for that save.
101 static const u8 LAYOUT_MAGIC[MAGIC_SIZE] = "*ALBIREO*SINGLE*FILE*LAYOUT*001*";
295 static int __must_check open_layout_reader(struct index_layout *layout, in open_layout_reader() argument
299 return uds_make_buffered_reader(layout->factory, lr->start_block + offset, in open_layout_reader()
303 static int open_region_reader(struct index_layout *layout, struct layout_region *region, in open_region_reader() argument
306 return open_layout_reader(layout, region, -layout->super.start_offset, in open_region_reader()
310 static int __must_check open_layout_writer(struct index_layout *layout, in open_layout_writer() argument
[all …]
Dindex-layout.h14 * The index layout describes the format of the index on the underlying storage, and is responsible
24 void uds_free_index_layout(struct index_layout *layout);
26 int __must_check uds_replace_index_layout_storage(struct index_layout *layout,
29 int __must_check uds_load_index_state(struct index_layout *layout,
32 int __must_check uds_save_index_state(struct index_layout *layout,
35 int __must_check uds_discard_open_chapter(struct index_layout *layout);
37 u64 __must_check uds_get_volume_nonce(struct index_layout *layout);
39 int __must_check uds_open_volume_bufio(struct index_layout *layout, size_t block_size,
/linux-6.14.4/drivers/clk/at91/
Dclk-programmable.c18 #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 …]
Dclk-pll.c20 #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 …]
Dclk-generated.c29 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 …]
Dclk-sam9x60-pll.c32 const struct clk_pll_layout *layout; member
81 if (core->layout->div2) in sam9x60_frac_pll_recalc_rate()
99 cmul = (val & core->layout->mul_mask) >> core->layout->mul_shift; in sam9x60_frac_pll_set()
100 cfrac = (val & core->layout->frac_mask) >> core->layout->frac_shift; in sam9x60_frac_pll_set()
114 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_set()
115 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_set()
268 cmul = (val & core->layout->mul_mask) >> core->layout->mul_shift; in sam9x60_frac_pll_set_rate_chg()
269 cfrac = (val & core->layout->frac_mask) >> core->layout->frac_shift; in sam9x60_frac_pll_set_rate_chg()
275 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_set_rate_chg()
276 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_set_rate_chg()
[all …]
Dclk-peripheral.c39 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 …]
Dclk-master.c31 const struct clk_master_layout *layout; member
90 const struct clk_master_layout *layout = master->layout; in clk_master_div_recalc_rate() local
96 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_recalc_rate()
99 mckr &= layout->mask; in clk_master_div_recalc_rate()
121 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_save_context()
124 mckr &= master->layout->mask; in clk_master_div_save_context()
142 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_restore_context()
145 mckr &= master->layout->mask; in clk_master_div_restore_context()
188 ret = regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_set()
192 mckr &= master->layout->mask; in clk_master_div_set()
[all …]
/linux-6.14.4/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-ethtool.c22 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 …]
Dmcp251xfd-ram.c60 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 …]
/linux-6.14.4/drivers/gpio/
Dgpio-creg-snps.c27 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 …]
/linux-6.14.4/sound/soc/intel/avs/
Dapl.c72 struct avs_apl_log_buffer_layout layout; in avs_apl_log_buffer_status() local
79 memcpy_fromio(&layout, addr, sizeof(layout)); in avs_apl_log_buffer_status()
87 if (layout.read_ptr > layout.write_ptr) { in avs_apl_log_buffer_status()
88 avs_dump_fw_log(adev, buf + layout.read_ptr, in avs_apl_log_buffer_status()
89 avs_apl_log_payload_size(adev) - layout.read_ptr); in avs_apl_log_buffer_status()
90 layout.read_ptr = 0; in avs_apl_log_buffer_status()
92 avs_dump_fw_log_wakeup(adev, buf + layout.read_ptr, layout.write_ptr - layout.read_ptr); in avs_apl_log_buffer_status()
95 writel(layout.write_ptr, addr); in avs_apl_log_buffer_status()
100 struct avs_apl_log_buffer_layout *layout) in avs_apl_wait_log_entry() argument
112 memcpy_fromio(layout, addr, sizeof(*layout)); in avs_apl_wait_log_entry()
[all …]
/linux-6.14.4/drivers/nvmem/
Dlayouts.c3 * NVMEM layout bus handling
32 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_bus_probe() local
37 return drv->probe(layout); in nvmem_layout_bus_probe()
43 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_bus_remove() local
45 return drv->remove(layout); in nvmem_layout_bus_remove()
49 .name = "nvmem-layout",
73 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_release_device() local
75 of_node_put(layout->dev.of_node); in nvmem_layout_release_device()
76 kfree(layout); in nvmem_layout_release_device()
82 struct nvmem_layout *layout; in nvmem_layout_create_device() local
[all …]
/linux-6.14.4/rust/kernel/alloc/
Dallocator.rs12 use core::alloc::Layout;
47 fn aligned_size(new_layout: Layout) -> usize { in aligned_size()
48 // Customized layouts from `Layout::from_size_align()` can have size < align, so pad first. in aligned_size()
49 let layout = new_layout.pad_to_align(); in aligned_size() localVariable
51 // Note that `layout.size()` (after padding) is guaranteed to be a multiple of `layout.align()` in aligned_size()
54 layout.size() in aligned_size()
86 layout: Layout, in call() argument
87 old_layout: Layout, in call() argument
90 let size = aligned_size(layout); in call()
116 crate::alloc::dangling_from_layout(layout) in call()
[all …]
Dlayout.rs3 //! Memory layout.
5 //! Custom layout types extending or improving [`Layout`].
7 use core::{alloc::Layout, marker::PhantomData};
12 /// A layout for an array `[T; n]`.
32 /// Creates a new layout for `[T; 0]`.
41 /// Creates a new layout for `[T; len]`.
50 /// # use kernel::alloc::layout::{ArrayLayout, LayoutError};
51 /// let layout = ArrayLayout::<i32>::new(15)?;
52 /// assert_eq!(layout.len(), 15);
55 /// let layout = ArrayLayout::<i32>::new(isize::MAX as usize);
[all …]
Dallocator_test.rs13 use core::alloc::Layout;
40 layout: Layout, in realloc() argument
41 old_layout: Layout, in realloc() argument
55 if layout.size() == 0 { in realloc()
60 crate::alloc::dangling_from_layout(layout), in realloc()
80 let layout = layout.align_to(min_align).map_err(|_| AllocError)?; in realloc() localVariable
81 let layout = layout.pad_to_align(); in realloc() localVariable
85 let dst = unsafe { libc_aligned_alloc(layout.align(), layout.size()) } as *mut u8; in realloc()
90 // guarantee that `dst` points to memory of at least `layout.size()` bytes. in realloc()
91 unsafe { dst.as_ptr().write_bytes(0, layout.size()) }; in realloc()
[all …]
/linux-6.14.4/rust/kernel/
Dalloc.rs9 pub mod layout; module
31 use core::{alloc::Layout, ptr::NonNull};
121 /// via [`Layout`].
140 /// Allocate memory based on `layout` and `flags`.
142 /// On success, returns a buffer represented as `NonNull<[u8]>` that satisfies the layout
143 /// constraints (i.e. minimum size and alignment as specified by `layout`).
150 /// - valid for reads and writes for `layout.size()` bytes, until it is passed to
152 /// - aligned to `layout.align()`,
156 fn alloc(layout: Layout, flags: Flags) -> Result<NonNull<[u8]>, AllocError> { in alloc() argument
159 unsafe { Self::realloc(None, layout, Layout::new::<()>(), flags) } in alloc()
[all …]
/linux-6.14.4/drivers/md/dm-vdo/
Dencodings.c786 * allocate_partition() - Allocate a partition and add it to a layout.
787 * @layout: The layout containing the partition.
789 * @offset: The offset into the layout at which the partition begins.
794 static int allocate_partition(struct layout *layout, u8 id, in allocate_partition() argument
807 partition->next = layout->head; in allocate_partition()
808 layout->head = partition; in allocate_partition()
815 * layout.
816 * @layout: The layout.
824 static int __must_check make_partition(struct layout *layout, enum partition_id id, in make_partition() argument
829 block_count_t free_blocks = layout->last_free - layout->first_free; in make_partition()
[all …]
/linux-6.14.4/sound/aoa/fabrics/
Dlayout.c3 * Apple Onboard Audio driver -- layout/machine id fabric
8 * layout-id or device-id property in the device tree.
20 MODULE_DESCRIPTION("Layout-ID fabric for snd-aoa");
24 /* These are the connections the layout fabric
63 struct layout { struct
69 * so that our layout table doesn't need to be filled argument
73 * multiple layout-ids */
78 MODULE_ALIAS("sound-layout-36"); argument
79 MODULE_ALIAS("sound-layout-41");
80 MODULE_ALIAS("sound-layout-45");
[all …]
/linux-6.14.4/Documentation/filesystems/nfs/
Dpnfs.rst17 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 …]
/linux-6.14.4/drivers/nvmem/layouts/
Donie-tlv.c8 * Inspired by the first layout written by: Rafał Miłecki <[email protected]>
102 struct device_node *layout; in onie_tlv_add_cells() local
108 layout = of_nvmem_layout_get_container(nvmem); in onie_tlv_add_cells()
109 if (!layout) in onie_tlv_add_cells()
126 cell.np = of_get_child_by_name(layout, cell.name); in onie_tlv_add_cells()
131 of_node_put(layout); in onie_tlv_add_cells()
138 of_node_put(layout); in onie_tlv_add_cells()
185 static int onie_tlv_parse_table(struct nvmem_layout *layout) in onie_tlv_parse_table() argument
187 struct nvmem_device *nvmem = layout->nvmem; in onie_tlv_parse_table()
188 struct device *dev = &layout->dev; in onie_tlv_parse_table()
[all …]
/linux-6.14.4/fs/ceph/
Dioctl.h11 * 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
/linux-6.14.4/include/linux/
Dnvmem-provider.h102 * @layout: Fixed layout associated with this nvmem device.
127 struct nvmem_layout *layout; member
160 * struct nvmem_layout - NVMEM layout definitions
162 * @dev: Device-model layout device.
165 * has this layout. The function will add layout
170 * pairs. A nvmem layout can parse the nvmem device and add appropriate
176 int (*add_cells)(struct nvmem_layout *layout);
181 int (*probe)(struct nvmem_layout *layout);
182 void (*remove)(struct nvmem_layout *layout);
199 int nvmem_layout_register(struct nvmem_layout *layout);
[all …]
/linux-6.14.4/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c292 if (!desc->layout.scaler_config) in atmel_hlcdc_plane_setup_scaler()
297 desc->layout.scaler_config, 0); in atmel_hlcdc_plane_setup_scaler()
301 if (desc->layout.phicoeffs.x) { in atmel_hlcdc_plane_setup_scaler()
315 desc->layout.phicoeffs.x); in atmel_hlcdc_plane_setup_scaler()
322 desc->layout.phicoeffs.y); in atmel_hlcdc_plane_setup_scaler()
328 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.scaler_config, in atmel_hlcdc_plane_setup_scaler()
341 if (!desc->layout.scaler_config) in atmel_xlcdc_plane_setup_scaler()
346 desc->layout.scaler_config, 0); in atmel_xlcdc_plane_setup_scaler()
356 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.scaler_config, in atmel_xlcdc_plane_setup_scaler()
362 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.scaler_config + 1, in atmel_xlcdc_plane_setup_scaler()
[all …]

12345678910>>...75