Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/linux-6.15/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_formats.c165 layout->total_size += layout->plane_size[i]; in _dpu_format_populate_plane_sizes_ubwc()
206 layout->plane_size[0] = layout->plane_pitch[0] * fb->height; in _dpu_format_populate_plane_sizes_linear()
207 layout->plane_size[1] = layout->plane_pitch[1] * in _dpu_format_populate_plane_sizes_linear()
217 layout->plane_size[2] = layout->plane_size[1]; in _dpu_format_populate_plane_sizes_linear()
218 layout->plane_pitch[2] = layout->plane_pitch[1]; in _dpu_format_populate_plane_sizes_linear()
239 layout->total_size += layout->plane_size[i]; in _dpu_format_populate_plane_sizes_linear()
313 layout->plane_addr[0] = base_addr + layout->plane_size[2]; in _dpu_format_populate_addrs_ubwc()
316 layout->plane_addr[1] = base_addr + layout->plane_size[0] in _dpu_format_populate_addrs_ubwc()
317 + layout->plane_size[2] + layout->plane_size[3]; in _dpu_format_populate_addrs_ubwc()
326 layout->plane_addr[3] = base_addr + layout->plane_size[0] in _dpu_format_populate_addrs_ubwc()
[all …]
/linux-6.15/drivers/clk/at91/
H A Dclk-programmable.c18 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & layout->pres_mask) argument
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()
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()
106 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent() local
110 if (layout->have_slck_mck) in clk_programmable_set_parent()
131 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_get_parent() local
152 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_rate() local
175 layout->pres_mask << layout->pres_shift, in clk_programmable_set_rate()
[all …]
H A 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()
48 gck->layout->cmd | enable, in clk_generated_set()
50 gck->layout->cmd | in clk_generated_set()
77 (gck->id & gck->layout->pid_mask)); in clk_generated_disable()
79 gck->layout->cmd | AT91_PMC_PCR_GCKEN, in clk_generated_disable()
80 gck->layout->cmd); in clk_generated_disable()
92 (gck->id & gck->layout->pid_mask)); in clk_generated_is_enabled()
310 (gck->id & gck->layout->pid_mask)); in clk_generated_startup()
[all …]
H A 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()
90 ((pll->mul & layout->mul_mask) << layout->mul_shift)); in clk_pll_prepare()
128 const struct clk_pll_layout *layout = pll->layout; in clk_pll_get_best_div_mul() local
339 pll->layout = layout; in at91_clk_register_pll()
[all …]
H A Dclk-sam9x60-pll.c81 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()
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()
372 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_set()
524 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_set_rate_chg()
580 cdiv = (val & core.layout->div_mask) >> core.layout->div_shift; in sam9x60_div_pll_notifier_fn()
668 frac->core.layout = layout; in sam9x60_clk_register_frac_pll()
751 if (layout->div2) in sam9x60_clk_register_div_pll()
[all …]
H A Dclk-peripheral.c39 const struct clk_pcr_layout *layout; member
174 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_set()
176 periph->layout->div_mask | periph->layout->cmd | in clk_sam9x5_peripheral_set()
179 periph->layout->cmd | enable); in clk_sam9x5_peripheral_set()
202 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable()
204 AT91_PMC_PCR_EN | periph->layout->cmd, in clk_sam9x5_peripheral_disable()
205 periph->layout->cmd); in clk_sam9x5_peripheral_disable()
220 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_is_enabled()
449 const struct clk_pcr_layout *layout, in at91_clk_register_sam9x5_peripheral() argument
487 if (layout->div_mask) in at91_clk_register_sam9x5_peripheral()
[all …]
H A Dclk-master.c90 const struct clk_master_layout *layout = master->layout; in clk_master_div_recalc_rate() local
99 mckr &= layout->mask; in clk_master_div_recalc_rate()
124 mckr &= master->layout->mask; in clk_master_div_save_context()
145 mckr &= master->layout->mask; in clk_master_div_restore_context()
192 mckr &= master->layout->mask; in clk_master_div_set()
390 val &= master->layout->mask; in clk_master_pres_recalc_rate()
410 mckr &= master->layout->mask; in clk_master_pres_get_parent()
426 val &= master->layout->mask; in clk_master_pres_save_context()
450 val &= master->layout->mask; in clk_master_pres_restore_context()
505 master->layout = layout; in at91_clk_register_master_internal()
[all …]
/linux-6.15/drivers/md/dm-vdo/indexer/
H A Dindex-layout.c307 return open_layout_reader(layout, region, -layout->super.start_offset, in open_region_reader()
322 return open_layout_writer(layout, region, -layout->super.start_offset, in open_region_writer()
620 result = invalidate_old_save(layout, &layout->index.saves[i]); in discard_index_state_data()
660 *lr++ = layout->seal; in make_layout_region_table()
731 result = open_layout_writer(layout, &layout->config, offset, &writer); in write_uds_index_config()
761 result = open_layout_writer(layout, &layout->header, offset, &writer); in save_layout()
1031 instantiate_index_save_layout(isl, &layout->super, layout->index.nonce, in setup_uds_index_save_slot()
1601 offset = layout->super.volume_offset - layout->super.start_offset; in verify_uds_index_config()
1602 result = open_layout_reader(layout, &layout->config, offset, &reader); in verify_uds_index_config()
1708 if (layout == NULL) in uds_free_index_layout()
[all …]
H A Dindex-layout.h24 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.15/drivers/gpio/
H A Dgpio-creg-snps.c33 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()
42 reg_shift += layout->bit_per_gpio[i] + layout->shift[i]; 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()
75 if (layout->on[i] == layout->off[i]) in creg_gpio_validate_pg()
87 if (hcg->layout->ngpio < 1 || hcg->layout->ngpio > MAX_GPIO) in creg_gpio_validate()
99 reg_len += hcg->layout->shift[i] + hcg->layout->bit_per_gpio[i]; in creg_gpio_validate()
[all …]
/linux-6.15/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ethtool.c22 struct can_ram_layout layout; in mcp251xfd_ring_get_ringparam() local
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
48 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_ringparam()
50 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_ringparam()
97 struct can_ram_layout layout; in mcp251xfd_ring_set_coalesce() local
108 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_coalesce()
112 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_coalesce()
133 struct can_ram_layout layout; in mcp251xfd_ethtool_init() local
[all …]
H A Dmcp251xfd-ram.c80 layout->default_tx = 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()
155 layout->tx_coalesce = num_tx_coalesce; in can_ram_get_layout()
157 layout->cur_rx = layout->default_rx; in can_ram_get_layout()
158 layout->cur_tx = layout->default_tx; in can_ram_get_layout()
159 layout->rx_coalesce = 0; in can_ram_get_layout()
[all …]
/linux-6.15/sound/soc/intel/avs/
H A Dapl.c79 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()
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()
112 memcpy_fromio(layout, addr, sizeof(*layout)); in avs_apl_wait_log_entry()
113 if (layout->read_ptr != layout->write_ptr) in avs_apl_wait_log_entry()
148 memcpy_fromio(&layout, addr, sizeof(layout)); in avs_apl_coredump()
168 if (layout.read_ptr > layout.write_ptr) { in avs_apl_coredump()
171 layout.read_ptr = 0; in avs_apl_coredump()
[all …]
/linux-6.15/drivers/nvmem/
H A Dlayouts.c37 return drv->probe(layout); in nvmem_layout_bus_probe()
45 return drv->remove(layout); in nvmem_layout_bus_remove()
76 kfree(layout); in nvmem_layout_release_device()
82 struct nvmem_layout *layout; in nvmem_layout_create_device() local
86 layout = kzalloc(sizeof(*layout), GFP_KERNEL); in nvmem_layout_create_device()
87 if (!layout) in nvmem_layout_create_device()
91 layout->nvmem = nvmem; in nvmem_layout_create_device()
92 nvmem->layout = layout; in nvmem_layout_create_device()
95 dev = &layout->dev; in nvmem_layout_create_device()
187 if (!nvmem->layout) in nvmem_destroy_layout()
[all …]
/linux-6.15/rust/kernel/alloc/
H A Dallocator_test.rs40 layout: Layout, in realloc()
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()
91 unsafe { dst.as_ptr().write_bytes(0, layout.size()) }; in realloc()
103 cmp::min(layout.size(), old_layout.size()), in realloc()
111 Ok(NonNull::slice_from_raw_parts(dst, layout.size())) in realloc()
H A Dallocator.rs49 let layout = new_layout.pad_to_align(); in aligned_size() localVariable
54 layout.size() in aligned_size()
87 layout: Layout, in call()
91 let size = aligned_size(layout); in call()
117 crate::alloc::dangling_from_layout(layout) in call()
134 layout: Layout, in realloc()
139 unsafe { ReallocFunc::KREALLOC.call(ptr, layout, old_layout, flags) } in realloc()
151 layout: Layout, in realloc()
156 if layout.align() > bindings::PAGE_SIZE { in realloc()
175 layout: Layout, in realloc()
[all …]
H A Dkvec.rs10 layout::ArrayLayout,
104 layout: ArrayLayout<T>, field
179 self.layout.len() in capacity()
382 layout, in from_raw_parts()
444 layout.into(), in reserve()
445 self.layout.into(), in reserve()
454 self.layout = layout; in reserve()
694 layout: ArrayLayout<T>, field
707 let cap = me.layout.len(); in into_raw_parts()
905 let layout = self.layout; in into_iter() localVariable
[all …]
/linux-6.15/drivers/md/dm-vdo/
H A Dencodings.c781 static int allocate_partition(struct layout *layout, u8 id, in allocate_partition() argument
816 block_count_t free_blocks = layout->last_free - layout->first_free; in make_partition()
830 offset = beginning ? layout->first_free : (layout->last_free - size); in make_partition()
840 layout->last_free = layout->last_free - size; in make_partition()
858 block_count_t summary_blocks, struct layout *layout) in vdo_initialize_layout() argument
868 *layout = (struct layout) { in vdo_initialize_layout()
910 void vdo_uninitialize_layout(struct layout *layout) in vdo_uninitialize_layout() argument
919 memset(layout, 0, sizeof(struct layout)); in vdo_uninitialize_layout()
930 int vdo_get_partition(struct layout *layout, enum partition_id id, in vdo_get_partition() argument
996 block_count_t size, struct layout *layout) in decode_layout() argument
[all …]
/linux-6.15/include/linux/mfd/syscon/
H A Datmel-smc.h19 #define ATMEL_HSMC_SETUP(layout, cs) \ argument
20 ((layout)->timing_regs_offset + ((cs) * 0x14))
22 #define ATMEL_HSMC_PULSE(layout, cs) \ argument
23 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x4)
25 #define ATMEL_HSMC_CYCLE(layout, cs) \ argument
26 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x8)
33 #define ATMEL_HSMC_MODE(layout, cs) \ argument
34 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x10)
64 #define ATMEL_HSMC_TIMINGS(layout, cs) \ argument
65 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0xc)
/linux-6.15/drivers/nvmem/layouts/
H A Donie-tlv.c102 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()
187 struct nvmem_device *nvmem = layout->nvmem; in onie_tlv_parse_table()
188 struct device *dev = &layout->dev; in onie_tlv_parse_table()
232 layout->add_cells = onie_tlv_parse_table; in onie_tlv_probe()
234 return nvmem_layout_register(layout); in onie_tlv_probe()
[all …]
/linux-6.15/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c390 if (desc->layout.size) in atmel_hlcdc_plane_update_pos_and_size()
395 if (desc->layout.memsize) in atmel_hlcdc_plane_update_pos_and_size()
397 desc->layout.memsize, in atmel_hlcdc_plane_update_pos_and_size()
401 if (desc->layout.pos) in atmel_hlcdc_plane_update_pos_and_size()
633 layout = &primary->layer.desc->layout; in atmel_hlcdc_plane_prepare_disc_area()
634 if (!layout->disc_pos || !layout->disc_size) in atmel_hlcdc_plane_prepare_disc_area()
687 layout = &plane->layer.desc->layout; in atmel_hlcdc_plane_update_disc_area()
688 if (!layout->disc_pos || !layout->disc_size) in atmel_hlcdc_plane_update_disc_area()
970 if (desc->layout.vxs_config && desc->layout.hxs_config) { in atmel_xlcdc_csc_init()
1005 if (desc->layout.xstride[0] && desc->layout.pstride[0]) { in atmel_hlcdc_plane_init_properties()
[all …]
/linux-6.15/drivers/mfd/
H A Datmel-smc.c266 const struct atmel_hsmc_reg_layout *layout, in atmel_hsmc_cs_conf_apply() argument
269 regmap_write(regmap, ATMEL_HSMC_SETUP(layout, cs), conf->setup); in atmel_hsmc_cs_conf_apply()
270 regmap_write(regmap, ATMEL_HSMC_PULSE(layout, cs), conf->pulse); in atmel_hsmc_cs_conf_apply()
271 regmap_write(regmap, ATMEL_HSMC_CYCLE(layout, cs), conf->cycle); in atmel_hsmc_cs_conf_apply()
272 regmap_write(regmap, ATMEL_HSMC_TIMINGS(layout, cs), conf->timings); in atmel_hsmc_cs_conf_apply()
273 regmap_write(regmap, ATMEL_HSMC_MODE(layout, cs), conf->mode); in atmel_hsmc_cs_conf_apply()
307 const struct atmel_hsmc_reg_layout *layout, in atmel_hsmc_cs_conf_get() argument
310 regmap_read(regmap, ATMEL_HSMC_SETUP(layout, cs), &conf->setup); in atmel_hsmc_cs_conf_get()
311 regmap_read(regmap, ATMEL_HSMC_PULSE(layout, cs), &conf->pulse); in atmel_hsmc_cs_conf_get()
312 regmap_read(regmap, ATMEL_HSMC_CYCLE(layout, cs), &conf->cycle); in atmel_hsmc_cs_conf_get()
[all …]
/linux-6.15/Documentation/filesystems/nfs/
H A 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
69 different layout types.
71 Files-layout-driver code is in: fs/nfs/filelayout/.. directory
72 Blocks-layout-driver code is in: fs/nfs/blocklayout/.. directory
75 blocks-layout setup
[all …]
/linux-6.15/rust/kernel/
H A Dalloc.rs9 pub mod layout; module
156 fn alloc(layout: Layout, flags: Flags) -> Result<NonNull<[u8]>, AllocError> { in alloc()
159 unsafe { Self::realloc(None, layout, Layout::new::<()>(), flags) } in alloc()
196 layout: Layout, in realloc()
210 unsafe fn free(ptr: NonNull<u8>, layout: Layout) { in free()
214 let _ = unsafe { Self::realloc(Some(ptr), Layout::new::<()>(), layout, Flags(0)) }; in free()
219 pub(crate) fn dangling_from_layout(layout: Layout) -> NonNull<u8> { in dangling_from_layout()
220 let ptr = layout.align() as *mut u8; in dangling_from_layout()
/linux-6.15/drivers/mtd/nand/spi/
H A Dotp.c25 const struct spinand_otp_layout *layout) in spinand_otp_size() argument
27 return layout->npages * spinand_otp_page_size(spinand); in spinand_otp_size()
54 const struct spinand_otp_layout *layout) in spinand_otp_check_bounds() argument
66 &spinand->user_otp->layout); in spinand_user_otp_check_bounds()
71 const struct spinand_otp_layout *layout) in spinand_otp_rw() argument
92 req.pos.page = page + layout->start_page; in spinand_otp_rw()
141 &spinand->fact_otp->layout); in spinand_fact_otp_read()
158 &spinand->user_otp->layout); in spinand_user_otp_read()
175 &spinand->user_otp->layout); in spinand_user_otp_write()
223 is_fact ? &spinand->fact_otp->layout : in spinand_mtd_otp_read()
[all …]

12345678910>>...22