Home
last modified time | relevance | path

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

12345678910>>...67

/Linux-v6.1/rust/alloc/
Dalloc.rs75 /// use std::alloc::{alloc, dealloc, Layout};
78 /// let layout = Layout::new::<u16>();
79 /// let ptr = alloc(layout);
84 /// dealloc(ptr, layout);
90 pub unsafe fn alloc(layout: Layout) -> *mut u8 { in alloc()
91 unsafe { __rust_alloc(layout.size(), layout.align()) } in alloc()
108 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) { in dealloc() argument
109 unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) } in dealloc()
127 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() argument
128 unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) } in realloc()
[all …]
Draw_vec.rs15 use crate::alloc::{Allocator, Global, Layout};
178 let layout = match Layout::array::<T>(capacity) { in allocate_in() localVariable
179 Ok(layout) => layout, in allocate_in()
182 match alloc_guard(layout.size()) { in allocate_in()
187 AllocInit::Uninitialized => alloc.allocate(layout), in allocate_in()
188 AllocInit::Zeroed => alloc.allocate_zeroed(layout), in allocate_in()
192 Err(_) => handle_alloc_error(layout), in allocate_in()
242 fn current_memory(&self) -> Option<(NonNull<u8>, Layout)> { in current_memory() argument
247 // checks to get our current layout. in current_memory()
249 let layout = Layout::array::<T>(self.cap).unwrap_unchecked(); in current_memory() localVariable
[all …]
/Linux-v6.1/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-peripheral.c39 const struct clk_pcr_layout *layout; member
169 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_set()
170 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_set()
171 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_set()
172 periph->layout->div_mask | periph->layout->cmd | in clk_sam9x5_peripheral_set()
174 field_prep(periph->layout->div_mask, periph->div) | in clk_sam9x5_peripheral_set()
175 periph->layout->cmd | enable); in clk_sam9x5_peripheral_set()
197 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable()
198 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable()
199 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable()
[all …]
Dclk-sam9x60-pll.c35 const struct clk_pll_layout *layout; member
96 cmul = (val & core->layout->mul_mask) >> core->layout->mul_shift; in sam9x60_frac_pll_set()
97 cfrac = (val & core->layout->frac_mask) >> core->layout->frac_shift; in sam9x60_frac_pll_set()
111 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_set()
112 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_set()
263 cmul = (val & core->layout->mul_mask) >> core->layout->mul_shift; in sam9x60_frac_pll_set_rate_chg()
264 cfrac = (val & core->layout->frac_mask) >> core->layout->frac_shift; in sam9x60_frac_pll_set_rate_chg()
270 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_set_rate_chg()
271 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_set_rate_chg()
341 u32 ena_msk = enable ? core->layout->endiv_mask : 0; in sam9x60_div_pll_set_div()
[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-v6.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_formats.c603 struct dpu_hw_fmt_layout *layout) in _dpu_format_get_plane_sizes_ubwc() argument
609 memset(layout, 0, sizeof(struct dpu_hw_fmt_layout)); in _dpu_format_get_plane_sizes_ubwc()
610 layout->format = fmt; in _dpu_format_get_plane_sizes_ubwc()
611 layout->width = width; in _dpu_format_get_plane_sizes_ubwc()
612 layout->height = height; in _dpu_format_get_plane_sizes_ubwc()
613 layout->num_planes = fmt->num_planes; in _dpu_format_get_plane_sizes_ubwc()
622 if (DPU_FORMAT_IS_YUV(layout->format)) { in _dpu_format_get_plane_sizes_ubwc()
627 layout->num_planes = 2; in _dpu_format_get_plane_sizes_ubwc()
628 layout->plane_pitch[0] = VENUS_Y_STRIDE(color, width); in _dpu_format_get_plane_sizes_ubwc()
630 layout->plane_size[0] = MSM_MEDIA_ALIGN(layout->plane_pitch[0] * in _dpu_format_get_plane_sizes_ubwc()
[all …]
/Linux-v6.1/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()
143 layout->cur_rx = num_rx; in can_ram_get_layout()
144 layout->cur_tx = num_tx; in can_ram_get_layout()
145 layout->rx_coalesce = num_rx_coalesce; in can_ram_get_layout()
146 layout->tx_coalesce = num_tx_coalesce; in can_ram_get_layout()
148 layout->cur_rx = layout->default_rx; in can_ram_get_layout()
[all …]
/Linux-v6.1/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-v6.1/sound/soc/intel/avs/
Dapl.c52 struct apl_log_buffer_layout layout; in apl_log_buffer_status() local
60 memcpy_fromio(&layout, addr, sizeof(layout)); in apl_log_buffer_status()
69 if (layout.read_ptr > layout.write_ptr) { in apl_log_buffer_status()
70 __kfifo_fromio_locked(&adev->dbg.trace_fifo, buf + layout.read_ptr, in apl_log_buffer_status()
71 apl_log_payload_size(adev) - layout.read_ptr, in apl_log_buffer_status()
73 layout.read_ptr = 0; in apl_log_buffer_status()
75 __kfifo_fromio_locked(&adev->dbg.trace_fifo, buf + layout.read_ptr, in apl_log_buffer_status()
76 layout.write_ptr - layout.read_ptr, &adev->dbg.fifo_lock); in apl_log_buffer_status()
82 writel(layout.write_ptr, addr); in apl_log_buffer_status()
86 static int apl_wait_log_entry(struct avs_dev *adev, u32 core, struct apl_log_buffer_layout *layout) in apl_wait_log_entry() argument
[all …]
/Linux-v6.1/kernel/module/
Dstrict_rwx.c18 * General layout of module is:
35 static void frob_text(const struct module_layout *layout, in frob_text() argument
38 set_memory((unsigned long)layout->base, in frob_text()
39 PAGE_ALIGN(layout->text_size) >> PAGE_SHIFT); in frob_text()
42 static void frob_rodata(const struct module_layout *layout, in frob_rodata() argument
45 set_memory((unsigned long)layout->base + layout->text_size, in frob_rodata()
46 (layout->ro_size - layout->text_size) >> PAGE_SHIFT); in frob_rodata()
49 static void frob_ro_after_init(const struct module_layout *layout, in frob_ro_after_init() argument
52 set_memory((unsigned long)layout->base + layout->ro_size, in frob_ro_after_init()
53 (layout->ro_after_init_size - layout->ro_size) >> PAGE_SHIFT); in frob_ro_after_init()
[all …]
/Linux-v6.1/sound/aoa/fabrics/
Dlayout.c3 * 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 …]
/Linux-v6.1/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-v6.1/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
Dioctl.c15 * get and set the file layout
77 /* validate changed params against current layout */ in ceph_ioctl_set_layout()
117 req->r_args.setlayout.layout.fl_stripe_unit = in ceph_ioctl_set_layout()
119 req->r_args.setlayout.layout.fl_stripe_count = in ceph_ioctl_set_layout()
121 req->r_args.setlayout.layout.fl_object_size = in ceph_ioctl_set_layout()
123 req->r_args.setlayout.layout.fl_pg_pool = cpu_to_le32(l.data_pool); in ceph_ioctl_set_layout()
131 * Set a layout policy on a directory inode. All items in the tree
132 * rooted at this inode will inherit this layout on creation,
134 * unless a subdirectory has its own layout policy.
161 req->r_args.setlayout.layout.fl_stripe_unit = in ceph_ioctl_set_layout_policy()
[all …]
/Linux-v6.1/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c291 if (!desc->layout.scaler_config) in atmel_hlcdc_plane_setup_scaler()
296 desc->layout.scaler_config, 0); in atmel_hlcdc_plane_setup_scaler()
300 if (desc->layout.phicoeffs.x) { in atmel_hlcdc_plane_setup_scaler()
314 desc->layout.phicoeffs.x); in atmel_hlcdc_plane_setup_scaler()
321 desc->layout.phicoeffs.y); in atmel_hlcdc_plane_setup_scaler()
327 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.scaler_config, in atmel_hlcdc_plane_setup_scaler()
339 if (desc->layout.size) in atmel_hlcdc_plane_update_pos_and_size()
340 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.size, in atmel_hlcdc_plane_update_pos_and_size()
344 if (desc->layout.memsize) in atmel_hlcdc_plane_update_pos_and_size()
346 desc->layout.memsize, in atmel_hlcdc_plane_update_pos_and_size()
[all …]
/Linux-v6.1/drivers/mfd/
Datmel-smc.c259 * @layout: the layout of registers
266 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()
300 * @layout: the layout of registers
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()
[all …]
/Linux-v6.1/include/linux/mfd/syscon/
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-v6.1/include/uapi/drm/
Ddrm_fourcc.h46 * format and data layout of the buffer, and should be the only way to describe
49 * Having multiple fourcc:modifier pairs which describe the same layout should
61 * Modifiers must uniquely encode buffer layout. In other words, a buffer must
275 * then V), but the exact Linear layout is undefined.
427 * When adding a new token please document the layout with a code comment,
443 * In future cases where a generic layout is identified before merging with a
467 * Linear Layout
469 * Just plain linear layout. Note that this is different from no specifying any
480 * implicit, instead it means that the layout is linear. Whether modifiers are
489 * Intel X-tiling layout
[all …]
/Linux-v6.1/fs/nfs/
Dpnfs.c2 * pNFS functions to call and manage layout drivers.
65 /* Return the registered pnfs layout driver module matching given id */
121 * When the server sends a list of layout types, we choose one in the order
154 * Try to set the server's pnfs module to the pnfs layout type specified by id.
155 * Currently only one pNFS layout driver per filesystem is supported.
157 * @ids array of layout types supported by MDS.
199 printk(KERN_ERR "NFS: %s: Error initializing pNFS layout " in set_pnfs_layoutdriver()
226 printk(KERN_ERR "NFS: %s Layout driver must provide " in pnfs_register_layoutdriver()
259 * pNFS client layout cache
297 dprintk("%s: freeing layout cache %p\n", __func__, lo); in pnfs_detach_layout_hdr()
[all …]
/Linux-v6.1/sound/aoa/soundbus/i2sbus/
Dcore.c31 " no layout-id property is present");
115 int layout, struct resource *res) in i2sbus_get_and_fixup_rsrc() argument
121 /* Machines with layout 76 and 36 (K2 based) have a weird device in i2sbus_get_and_fixup_rsrc()
128 * normal layout in i2sbus_get_and_fixup_rsrc()
130 if (layout != 76 && layout != 36) in i2sbus_get_and_fixup_rsrc()
159 int i, layout = 0, rlen, ok = force; in i2sbus_add_dev() local
187 const u32 *id = of_get_property(sound, "layout-id", NULL); in i2sbus_add_dev()
190 layout = *id; in i2sbus_add_dev()
192 "sound-layout-%d", layout); in i2sbus_add_dev()
205 layout = -1; in i2sbus_add_dev()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_flavors.c22 /* local flavor with reversed layout */
29 /* local flavor with nested/overlapping layout */
53 /* read a using weird layout */ in test_core_flavors()
56 /* read b using reversed layout */ in test_core_flavors()
59 /* read c using original layout */ in test_core_flavors()

12345678910>>...67