| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_formats.c | 59 struct dpu_hw_fmt_layout *layout) in _dpu_format_populate_plane_sizes_ubwc() argument 92 layout->plane_pitch[0] = stride; in _dpu_format_populate_plane_sizes_ubwc() 93 layout->plane_size[0] = round_up(layout->plane_pitch[0] * in _dpu_format_populate_plane_sizes_ubwc() 96 layout->plane_pitch[1] = stride; in _dpu_format_populate_plane_sizes_ubwc() 97 layout->plane_size[1] = round_up(layout->plane_pitch[1] * in _dpu_format_populate_plane_sizes_ubwc() 104 layout->plane_pitch[2] = round_up(y_meta_stride, 64); in _dpu_format_populate_plane_sizes_ubwc() 108 layout->plane_size[2] = round_up(layout->plane_pitch[2] * in _dpu_format_populate_plane_sizes_ubwc() 112 layout->plane_pitch[3] = round_up(uv_meta_stride, 64); in _dpu_format_populate_plane_sizes_ubwc() 116 layout->plane_size[3] = round_up(layout->plane_pitch[3] * in _dpu_format_populate_plane_sizes_ubwc() 121 layout->plane_pitch[0] = round_up(fb->width * fmt->bpp, 256); in _dpu_format_populate_plane_sizes_ubwc() [all …]
|
| /linux/drivers/clk/at91/ |
| H A D | clk-programmable.c | 18 #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 D | clk-pll.c | 20 #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 128 const struct clk_pll_layout *layout = pll->layout; clk_pll_get_best_div_mul() local 316 at91_clk_register_pll(struct regmap * regmap,const char * name,const char * parent_name,u8 id,const struct clk_pll_layout * layout,const struct clk_pll_characteristics * characteristics) at91_clk_register_pll() argument [all...] |
| H A D | clk-generated.c | 29 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 D | clk-sam9x60-pll.c | 32 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() 111 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_set() 112 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_set() 269 cmul = (val & core->layout->mul_mask) >> core->layout->mul_shift; in sam9x60_frac_pll_set_rate_chg() 270 cfrac = (val & core->layout->frac_mask) >> core->layout->frac_shift; in sam9x60_frac_pll_set_rate_chg() 276 (frac->mul << core->layout->mul_shift) | in sam9x60_frac_pll_set_rate_chg() 277 (frac->frac << core->layout->frac_shift)); in sam9x60_frac_pll_set_rate_chg() [all …]
|
| H A D | clk-peripheral.c | 40 const struct clk_pcr_layout *layout; member 174 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_set() 175 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_set() 176 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_set() 177 periph->layout->div_mask | periph->layout->cmd | in clk_sam9x5_peripheral_set() 179 field_prep(periph->layout->div_mask, periph->div) | in clk_sam9x5_peripheral_set() 180 periph->layout->cmd | enable); in clk_sam9x5_peripheral_set() 202 regmap_write(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable() 203 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable() 204 regmap_update_bits(periph->regmap, periph->layout->offset, in clk_sam9x5_peripheral_disable() [all …]
|
| H A D | clk-master.c | 31 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/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd-ethtool.c | 22 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 D | mcp251xfd-ram.c | 60 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/nvmem/ |
| H A D | layouts.c | 3 * 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() 61 .name = "nvmem-layout", 86 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_release_device() local 88 of_node_put(layout->dev.of_node); in nvmem_layout_release_device() 89 kfree(layout); in nvmem_layout_release_device() 95 struct nvmem_layout *layout; in nvmem_layout_create_device() local [all...] |
| /linux/rust/kernel/ |
| H A D | alloc.rs | 8 pub mod layout; module 28 alloc::Layout, 151 /// via [`Layout`]. 175 /// the requested layout has a smaller alignment. 178 /// Allocate memory based on `layout`, `flags` and `nid`. 180 /// On success, returns a buffer represented as `NonNull<[u8]>` that satisfies the layout 181 /// constraints (i.e. minimum size and alignment as specified by `layout`). 188 /// - valid for reads and writes for `layout.size()` bytes, until it is passed to in alloc() 190 /// - aligned to `layout.align()`, 194 fn alloc(layout 184 alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> alloc() argument 232 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 233 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 247 free(ptr: NonNull<u8>, layout: Layout) free() argument [all...] |
| /linux/sound/aoa/fabrics/ |
| H A D | layout.c | 3 * 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 64 device_idlayout global() argument 612 struct layout *layout; global() member 998 struct layout *layout = NULL; aoa_fabric_layout_probe() local [all...] |
| /linux/rust/kernel/alloc/ |
| H A D | allocator.rs | 24 alloc::Layout, 98 layout: Layout, in call() 99 old_layout: Layout, in call() 103 let size = layout.size(); in call() 125 self.0(ptr.cast(), size, layout.align(), flags.0, nid.0).cast() 129 crate::alloc::dangling_from_layout(layout) 139 /// Returns a [`Layout`] that makes [`Kmalloc`] fulfill the requested size and alignment of 140 /// `layout`. 141 pub fn aligned_layout(layout 87 call( &self, ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> call() argument 88 call( &self, ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> call() argument 130 aligned_layout(layout: Layout) -> Layout aligned_layout() argument 148 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 149 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 153 let layout = Kmalloc::aligned_layout(layout); realloc() localVariable 218 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 219 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 239 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 240 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument 246 let layout = Kmalloc::aligned_layout(layout); realloc() localVariable [all...] |
| /linux/drivers/nvmem/layouts/ |
| H A D | fixed-layout.c | 13 static int fixed_layout_add_cells(struct nvmem_layout *layout) in fixed_layout_add_cells() argument 18 np = of_nvmem_layout_get_container(layout->nvmem); in fixed_layout_add_cells() 22 ret = nvmem_add_cells_from_dt(layout->nvmem, np); in fixed_layout_add_cells() 28 static int fixed_layout_probe(struct nvmem_layout *layout) in fixed_layout_probe() argument 30 layout->add_cells = fixed_layout_add_cells; in fixed_layout_probe() 32 return nvmem_layout_register(layout); in fixed_layout_probe() 35 static void fixed_layout_remove(struct nvmem_layout *layout) in fixed_layout_remove() argument 37 nvmem_layout_unregister(layout); in fixed_layout_remove() 41 { .compatible = "fixed-layout", }, 47 .name = "fixed-layout", [all …]
|
| /linux/Documentation/filesystems/nfs/ |
| H A D | pnfs.rst | 17 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/rust/zerocopy/src/ |
| H A D | layout.rs | 19 /// The layout of a type which might be dynamically-sized. 21 /// `DstLayout` describes the layout of sized types, slice types, and "slice 28 /// the layout of real Rust types or instances of types. 180 /// For a completed layout, this value is a multiple of `DstLayout::align`. 196 /// For a completed layout, `size_align` is at least `DstLayout::align`. in new_zst() 199 /// a nested DST's own layout. For example, a `repr(packed(2))` wrapper 241 /// whole number of elements, even for a valid Rust layout. For example, a 417 /// Computes the size described by this layout for `elems` trailing slice in extend() 436 // `size_rounding_align_and_phase`. The normalized layout formula, in extend() 479 // `usize::MAX + 1`. This sum need not fit: a raw layout nee 285 let mut layout = DstLayout::new_zst(repr_align); for_repr_c_struct() localVariable 1109 let layout = DstLayout::for_slice::<u32>(); test_dst_layout_for_slice() localVariable 1236 let layout = DstLayout { test_dst_layout_pad_to_align_with_sized() localVariable 1301 let layout = DstLayout { test_dst_layout_pad_to_align_with_dst() localVariable 1332 fn layout<S: Into<SizeInfo>>(s: S, align: usize) -> DstLayout { test_validate_cast_and_convert_metadata() function 1514 validate_behavior( (layout, addr, bytes_len, cast_type): (DstLayout, usize, usize, CastType), ) test_validate_cast_and_convert_metadata() argument 1632 let layout = { test_validate_rust_layout() localVariable 2017 let layout: DstLayout = kani::any(); prove_requires_dynamic_padding() localVariable 2196 let layout: DstLayout = kani::any(); prove_dst_layout_pad_to_align() localVariable [all...] |
| /linux/include/linux/ |
| H A D | nvmem-provider.h | 102 * @layout: Fixed layout associated with this nvmem device. 127 struct nvmem_layout *layout; member 141 * struct nvmem_layout - NVMEM layout definitions 143 * @dev: Device-model layout device. 146 * has this layout. The function will add layout 151 * pairs. A nvmem layout can parse the nvmem device and add appropriate 157 int (*add_cells)(struct nvmem_layout *layout); 162 int (*probe)(struct nvmem_layout *layout); 163 void (*remove)(struct nvmem_layout *layout); 177 int nvmem_layout_register(struct nvmem_layout *layout); [all …]
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | index-layout.h | 14 * 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/fs/ceph/ |
| H A D | ioctl.h | 11 * 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/drivers/mfd/ |
| H A D | atmel-smc.c | 264 * @layout: the layout of registers 272 const struct atmel_hsmc_reg_layout *layout, in atmel_hsmc_cs_conf_apply() argument 275 regmap_write(regmap, ATMEL_HSMC_SETUP(layout, cs), conf->setup); in atmel_hsmc_cs_conf_apply() 276 regmap_write(regmap, ATMEL_HSMC_PULSE(layout, cs), conf->pulse); in atmel_hsmc_cs_conf_apply() 277 regmap_write(regmap, ATMEL_HSMC_CYCLE(layout, cs), conf->cycle); in atmel_hsmc_cs_conf_apply() 278 regmap_write(regmap, ATMEL_HSMC_TIMINGS(layout, cs), conf->timings); in atmel_hsmc_cs_conf_apply() 279 regmap_write(regmap, ATMEL_HSMC_MODE(layout, cs), conf->mode); in atmel_hsmc_cs_conf_apply() 305 * @layout: the layout of registers 313 const struct atmel_hsmc_reg_layout *layout, in atmel_hsmc_cs_conf_get() argument 316 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 D | fixed-layout.yaml | 4 $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 D | onie,tlv-layout.yaml | 4 $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/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt792x_dma.c | 89 const struct mt792x_dma_layout *layout) in mt792x_dma_alloc_queues() argument 100 ret = mt76_connac_init_tx_queues(dev->phy.mt76, layout->tx_data0.qid, in mt792x_dma_alloc_queues() 101 layout->tx_data0.n_desc, in mt792x_dma_alloc_queues() 102 layout->tx_data0.ring_base, in mt792x_dma_alloc_queues() 111 layout->tx_mcu.qid, in mt792x_dma_alloc_queues() 112 layout->tx_mcu.n_desc, in mt792x_dma_alloc_queues() 113 layout->tx_mcu.ring_base); in mt792x_dma_alloc_queues() 119 layout->tx_fwdl.qid, in mt792x_dma_alloc_queues() 120 layout->tx_fwdl.n_desc, in mt792x_dma_alloc_queues() 121 layout->tx_fwdl.ring_base); in mt792x_dma_alloc_queues() [all …]
|
| /linux/fs/nfs/ |
| H A D | pnfs.c | 2 * 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 cach in pnfs_detach_layout_hdr() [all...] |
| /linux/drivers/md/ |
| H A D | raid0.h | 9 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
|