Home
last modified time | relevance | path

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

12345678910>>...60

/Linux-v5.10/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
35 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_recalc_rate() local
41 if (layout->is_pres_direct) in clk_programmable_recalc_rate()
42 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate()
44 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate()
53 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_determine_rate() local
67 if (layout->is_pres_direct) { in clk_programmable_determine_rate()
68 for (shift = 0; shift <= layout->pres_mask; shift++) { in clk_programmable_determine_rate()
74 for (shift = 0; shift < layout->pres_mask; shift++) { in clk_programmable_determine_rate()
[all …]
Dclk-generated.c29 const struct clk_pcr_layout *layout; member
46 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_enable()
47 (gck->id & gck->layout->pid_mask)); in clk_generated_enable()
48 regmap_update_bits(gck->regmap, gck->layout->offset, in clk_generated_enable()
49 AT91_PMC_PCR_GCKDIV_MASK | gck->layout->gckcss_mask | in clk_generated_enable()
50 gck->layout->cmd | AT91_PMC_PCR_GCKEN, in clk_generated_enable()
51 field_prep(gck->layout->gckcss_mask, gck->parent_id) | in clk_generated_enable()
52 gck->layout->cmd | in clk_generated_enable()
65 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_disable()
66 (gck->id & gck->layout->pid_mask)); in clk_generated_disable()
[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
58 const struct clk_pll_layout *layout = pll->layout; in clk_pll_prepare() local
72 mul = PLL_MUL(pllr, layout); in clk_pll_prepare()
86 regmap_update_bits(regmap, offset, layout->pllr_mask, in clk_pll_prepare()
89 ((pll->mul & layout->mul_mask) << layout->mul_shift)); in clk_pll_prepare()
107 unsigned int mask = pll->layout->pllr_mask; in clk_pll_unprepare()
[all …]
Dclk-peripheral.c39 const struct clk_pcr_layout *layout; member
167 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_enable()
168 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_enable()
169 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_enable()
170 periph->layout->div_mask | periph->layout->cmd | in clk_sam9x5_peripheral_enable()
172 field_prep(periph->layout->div_mask, periph->div) | in clk_sam9x5_peripheral_enable()
173 periph->layout->cmd | in clk_sam9x5_peripheral_enable()
189 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable()
190 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable()
191 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable()
[all …]
Dclk-sam9x60-pll.c34 const struct clk_pll_layout *layout; member
91 cmul = (val & core->layout->mul_mask) >> core->layout->mul_shift; in sam9x60_frac_pll_prepare()
92 cfrac = (val & core->layout->frac_mask) >> core->layout->frac_shift; in sam9x60_frac_pll_prepare()
106 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_prepare()
107 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_prepare()
253 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_prepare()
256 if (!!(val & core->layout->endiv_mask) && cdiv == div->div) in sam9x60_div_pll_prepare()
260 core->layout->div_mask | core->layout->endiv_mask, in sam9x60_div_pll_prepare()
261 (div->div << core->layout->div_shift) | in sam9x60_div_pll_prepare()
262 (1 << core->layout->endiv_shift)); in sam9x60_div_pll_prepare()
[all …]
/Linux-v5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_formats.c602 struct dpu_hw_fmt_layout *layout) in _dpu_format_get_plane_sizes_ubwc() argument
608 memset(layout, 0, sizeof(struct dpu_hw_fmt_layout)); in _dpu_format_get_plane_sizes_ubwc()
609 layout->format = fmt; in _dpu_format_get_plane_sizes_ubwc()
610 layout->width = width; in _dpu_format_get_plane_sizes_ubwc()
611 layout->height = height; in _dpu_format_get_plane_sizes_ubwc()
612 layout->num_planes = fmt->num_planes; in _dpu_format_get_plane_sizes_ubwc()
621 if (DPU_FORMAT_IS_YUV(layout->format)) { in _dpu_format_get_plane_sizes_ubwc()
626 layout->num_planes = 2; in _dpu_format_get_plane_sizes_ubwc()
627 layout->plane_pitch[0] = VENUS_Y_STRIDE(color, width); in _dpu_format_get_plane_sizes_ubwc()
629 layout->plane_size[0] = MSM_MEDIA_ALIGN(layout->plane_pitch[0] * in _dpu_format_get_plane_sizes_ubwc()
[all …]
/Linux-v5.10/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-v5.10/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 …]
DMakefile2 snd-aoa-fabric-layout-objs += layout.o
4 obj-$(CONFIG_SND_AOA_FABRIC_LAYOUT) += snd-aoa-fabric-layout.o
/Linux-v5.10/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-v5.10/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 …]
Dutil.c9 * return true if @layout appears to be valid
11 int ceph_file_layout_is_valid(const struct ceph_file_layout *layout) in ceph_file_layout_is_valid() argument
13 __u32 su = layout->stripe_unit; in ceph_file_layout_is_valid()
14 __u32 sc = layout->stripe_count; in ceph_file_layout_is_valid()
15 __u32 os = layout->object_size; in ceph_file_layout_is_valid()
/Linux-v5.10/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
206 * then V), but the exact Linear layout is undefined.
346 * When adding a new token please document the layout with a code comment,
362 * In future cases where a generic layout is identified before merging with a
386 * Linear Layout
388 * Just plain linear layout. Note that this is different from no specifying any
398 * Intel X-tiling layout
400 * This is a tiled layout using 4Kb tiles (except on gen2 where the tiles 2Kb)
401 * in row-major layout. Within the tile bytes are laid out row-major, with
[all …]
/Linux-v5.10/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c289 if (!desc->layout.scaler_config) in atmel_hlcdc_plane_setup_scaler()
294 desc->layout.scaler_config, 0); in atmel_hlcdc_plane_setup_scaler()
298 if (desc->layout.phicoeffs.x) { in atmel_hlcdc_plane_setup_scaler()
312 desc->layout.phicoeffs.x); in atmel_hlcdc_plane_setup_scaler()
319 desc->layout.phicoeffs.y); in atmel_hlcdc_plane_setup_scaler()
325 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.scaler_config, in atmel_hlcdc_plane_setup_scaler()
337 if (desc->layout.size) in atmel_hlcdc_plane_update_pos_and_size()
338 atmel_hlcdc_layer_write_cfg(&plane->layer, desc->layout.size, in atmel_hlcdc_plane_update_pos_and_size()
342 if (desc->layout.memsize) in atmel_hlcdc_plane_update_pos_and_size()
344 desc->layout.memsize, in atmel_hlcdc_plane_update_pos_and_size()
[all …]
Datmel_hlcdc_dc.c41 .layout = {
71 .layout = {
87 .layout = {
106 .layout = {
130 .layout = {
164 .layout = {
180 .layout = {
199 .layout = {
218 .layout = {
246 .layout = {
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/fs/nfs/
Dpnfs.c2 * pNFS functions to call and manage layout drivers.
65 /* Return the registered pnfs layout driver module matching given id */
110 * When the server sends a list of layout types, we choose one in the order
143 * Try to set the server's pnfs module to the pnfs layout type specified by id.
144 * Currently only one pNFS layout driver per filesystem is supported.
146 * @ids array of layout types supported by MDS.
188 printk(KERN_ERR "NFS: %s: Error initializing pNFS layout " in set_pnfs_layoutdriver()
215 printk(KERN_ERR "NFS: %s Layout driver must provide " in pnfs_register_layoutdriver()
248 * pNFS client layout cache
286 dprintk("%s: freeing layout cache %p\n", __func__, lo); in pnfs_detach_layout_hdr()
[all …]
/Linux-v5.10/Documentation/userspace-api/media/v4l/
Dpixfmt-nv12mt.rst12 memory layout. Pixels are grouped in macroblocks of 64x32 size. The
31 Layout of macroblocks in memory is presented in the following figure.
40 V4L2_PIX_FMT_NV12MT macroblock Z shape memory layout
47 In case of chroma the layout is identical. Cb and Cr samples are
57 Example V4L2_PIX_FMT_NV12MT memory layout of macroblocks
59 Memory layout of macroblocks of ``V4L2_PIX_FMT_NV12MT`` format in most
/Linux-v5.10/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()
/Linux-v5.10/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()
158 int i, layout = 0, rlen, ok = force; in i2sbus_add_dev() local
186 const u32 *id = of_get_property(sound, "layout-id", NULL); in i2sbus_add_dev()
189 layout = *id; in i2sbus_add_dev()
191 "sound-layout-%d", layout); in i2sbus_add_dev()
204 layout = -1; in i2sbus_add_dev()
[all …]
/Linux-v5.10/drivers/md/
Ddm-raid.c220 * raid set level, layout and chunk sectors backup/restore
298 …aid4 (dedicated first parity disk)", 1, 2, 5, ALGORITHM_PARITY_0}, /* raid4 layout = raid5_0 */
429 static bool __is_raid10_far(int layout);
525 #define RAID10_FAR_COPIES_SHIFT 8 /* raid10 # far copies shift (2nd byte of layout) */
527 /* Return md raid10 near copies for @layout */
528 static unsigned int __raid10_near_copies(int layout) in __raid10_near_copies() argument
530 return layout & 0xFF; in __raid10_near_copies()
533 /* Return md raid10 far copies for @layout */
534 static unsigned int __raid10_far_copies(int layout) in __raid10_far_copies() argument
536 return __raid10_near_copies(layout >> RAID10_FAR_COPIES_SHIFT); in __raid10_far_copies()
[all …]
Draid0.h12 * the RAID0 layout for multi-zone arrays (where devices aren't all
14 * RAID0_ORIG_LAYOUT restores the original layout
15 * RAID0_ALT_MULTIZONE_LAYOUT uses the altered layout
29 enum r0layout layout; member
/Linux-v5.10/include/linux/
Dpnfs_osd_xdr.h49 /* Layout Structure */
256 /* Layout helpers */
257 /* Layout decoding is done in two parts:
259 * of the layout. @iter members need not be initialized.
261 * @layout members are set. (@layout->olo_comps set to NULL).
272 * struct pnfs_osd_layout layout;
276 * status = pnfs_osd_xdr_decode_layout_map(&layout, &iter, xdr);
293 extern int pnfs_osd_xdr_decode_layout_map(struct pnfs_osd_layout *layout,

12345678910>>...60