Home
last modified time | relevance | path

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

12345678910>>...62

/linux/drivers/clk/at91/
H A 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 …]
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()
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 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 …]
H A 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 …]
/linux/drivers/net/can/spi/mcp251xfd/
H A 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 …]
H A 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/drivers/gpio/
H A 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/sound/soc/intel/avs/
H A Dapl.c72 struct avs_apl_log_buffer_layout layout; in avs_apl_log_buffer_status()
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 in avs_apl_log_buffer_status()
71 struct avs_apl_log_buffer_layout layout; avs_apl_log_buffer_status() local
99 avs_apl_wait_log_entry(struct avs_dev * adev,u32 core,struct avs_apl_log_buffer_layout * layout) avs_apl_wait_log_entry() argument
125 struct avs_apl_log_buffer_layout layout; avs_apl_coredump() local
[all...]
/linux/drivers/nvmem/
H A 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/sound/aoa/fabrics/
H A 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/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
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/drivers/md/dm-vdo/indexer/
H A 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/drivers/gpu/drm/atmel-hlcdc/
H A 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 …]
H A Datmel_hlcdc_dc.c43 .layout = {
74 .layout = {
90 .layout = {
109 .layout = {
133 .layout = {
168 .layout = {
184 .layout = {
203 .layout = {
222 .layout = {
250 .layout = {
[all …]
/linux/fs/ceph/
H A 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
H A Dioctl.c16 * get and set the file layout
78 /* validate changed params against current layout */ in ceph_ioctl_set_layout()
118 req->r_args.setlayout.layout.fl_stripe_unit = in ceph_ioctl_set_layout()
120 req->r_args.setlayout.layout.fl_stripe_count = in ceph_ioctl_set_layout()
122 req->r_args.setlayout.layout.fl_object_size = in ceph_ioctl_set_layout()
124 req->r_args.setlayout.layout.fl_pg_pool = cpu_to_le32(l.data_pool); in ceph_ioctl_set_layout()
132 * Set a layout policy on a directory inode. All items in the tree
133 * rooted at this inode will inherit this layout on creation,
135 * unless a subdirectory has its own layout policy.
162 req->r_args.setlayout.layout.fl_stripe_unit = in ceph_ioctl_set_layout_policy()
[all …]
/linux/drivers/mfd/
H A Datmel-smc.c258 * @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()
299 * @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/Documentation/devicetree/bindings/nvmem/layouts/
H A Dfixed-layout.yaml4 $id: http://devicetree.org/schemas/nvmem/layouts/fixed-layout.yaml#
7 title: NVMEM layout for fixed NVMEM cells
10 Many NVMEM devices have hardcoded cells layout (offset and size of defined
13 This binding allows defining such NVMEM layout with its cells. It can be used
21 const: fixed-layout
42 nvmem-layout {
43 compatible = "fixed-layout";
H A Donie,tlv-layout.yaml4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml#
7 title: NVMEM layout of the ONIE tlv table
26 const: onie,tlv-layout
116 nvmem-layout {
117 compatible = "onie,tlv-layout";
137 nvmem-layout {
138 compatible = "onie,tlv-layout";
/linux/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/include/uapi/drm/
H A 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
287 * then V), but the exact Linear layout is undefined.
441 * When adding a new token please document the layout with a code comment,
457 * In future cases where a generic layout is identified before merging with a
481 * Linear Layout
483 * Just plain linear layout. Note that this is different from no specifying any
494 * implicit, instead it means that the layout is linear. Whether modifiers are
503 * Intel X-tiling layout
[all …]
/linux/drivers/nvmem/layouts/
H A Du-boot-env.c168 static int u_boot_env_add_cells(struct nvmem_layout *layout) in u_boot_env_add_cells() argument
170 struct device *dev = &layout->dev; in u_boot_env_add_cells()
175 return u_boot_env_parse(dev, layout->nvmem, format); in u_boot_env_add_cells()
178 static int u_boot_env_probe(struct nvmem_layout *layout) in u_boot_env_probe() argument
180 layout->add_cells = u_boot_env_add_cells; in u_boot_env_probe()
182 return nvmem_layout_register(layout); in u_boot_env_probe()
185 static void u_boot_env_remove(struct nvmem_layout *layout) in u_boot_env_remove() argument
187 nvmem_layout_unregister(layout); in u_boot_env_remove()
200 .name = "u-boot-env-layout",
211 MODULE_DESCRIPTION("NVMEM layout driver for U-Boot environment variables");
/linux/fs/nfs/
H A Dpnfs.c2 * pNFS functions to call and manage layout drivers.
66 /* Return the registered pnfs layout driver module matching given id */
122 * When the server sends a list of layout types, we choose one in the order
155 * Try to set the server's pnfs module to the pnfs layout type specified by id.
156 * Currently only one pNFS layout driver per filesystem is supported.
158 * @ids array of layout types supported by MDS.
200 printk(KERN_ERR "NFS: %s: Error initializing pNFS layout " in set_pnfs_layoutdriver()
227 printk(KERN_ERR "NFS: %s Layout driver must provide " in pnfs_register_layoutdriver()
260 * pNFS client layout cache
298 dprintk("%s: freeing layout cache %p\n", __func__, lo); in pnfs_detach_layout_hdr()
[all …]
/linux/drivers/md/
H A Draid0.h9 int disk_shift; /* start disk for the original layout */
13 * the RAID0 layout for multi-zone arrays (where devices aren't all
15 * RAID0_ORIG_LAYOUT restores the original layout
16 * RAID0_ALT_MULTIZONE_LAYOUT uses the altered layout
30 enum r0layout layout; member
/linux/fs/bcachefs/
H A Dsuper-io.c187 u64 max_bytes = 512 << sb->sb->layout.sb_max_size_bits; in bch2_sb_realloc()
278 static int validate_sb_layout(struct bch_sb_layout *layout, struct printbuf *out) in validate_sb_layout() argument
285 if (!uuid_equal(&layout->magic, &BCACHE_MAGIC) && in validate_sb_layout()
286 !uuid_equal(&layout->magic, &BCHFS_MAGIC)) { in validate_sb_layout()
287 prt_printf(out, "Not a bcachefs superblock layout"); in validate_sb_layout()
291 if (layout->layout_type != 0) { in validate_sb_layout()
292 prt_printf(out, "Invalid superblock layout type %u", in validate_sb_layout()
293 layout->layout_type); in validate_sb_layout()
297 if (!layout->nr_superblocks) { in validate_sb_layout()
298 prt_printf(out, "Invalid superblock layout: no superblocks"); in validate_sb_layout()
[all …]

12345678910>>...62