Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/exofs/
Dore.c49 int ore_verify_layout(unsigned total_comps, struct ore_layout *layout) in ore_verify_layout() argument
53 switch (layout->raid_algorithm) { in ore_verify_layout()
55 layout->parity = 0; in ore_verify_layout()
58 layout->parity = 1; in ore_verify_layout()
61 layout->parity = 2; in ore_verify_layout()
66 layout->raid_algorithm); in ore_verify_layout()
69 if (0 != (layout->stripe_unit & ~PAGE_MASK)) { in ore_verify_layout()
72 _LLU(layout->stripe_unit), PAGE_SIZE); in ore_verify_layout()
75 if (layout->group_width) { in ore_verify_layout()
76 if (!layout->group_depth) { in ore_verify_layout()
[all …]
Dore_raid.c356 struct ore_layout *layout = ios->layout; in _alloc_read_4_write() local
363 ret = _ore_get_io_state(layout, ios->oc, in _alloc_read_4_write()
364 layout->group_width * layout->mirrors_p1, in _alloc_read_4_write()
379 (ios->layout->group_width * ios->layout->mirrors_p1)); in _add_to_r4w()
391 read_ios->numdevs = ios->layout->group_width * ios->layout->mirrors_p1; in _add_to_r4w()
428 ore_calc_stripe_info(ios->layout, ios->offset, 0, &si); in _add_to_r4w_first_page()
446 ore_calc_stripe_info(ios->layout, *offset, 0, &si); in _add_to_r4w_last_page()
521 ore_calc_stripe_info(ios->layout, offset, 0, &read_si); in _read_4_write_first_stripe()
576 ore_calc_stripe_info(ios->layout, offset, 0, &read_si); in _read_4_write_last_stripe()
613 ore_calc_stripe_info(ios->layout, offset, 0, &read_si); in _read_4_write_last_stripe()
[all …]
Dsuper.c279 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios); in __sbi_read_stats()
334 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios); in exofs_sbi_write_stats()
393 ret = ore_get_io_state(&sbi->layout, &oc, &ios); in exofs_sync_fs()
481 sbi->layout.stripe_unit = in _read_and_match_data_map()
483 sbi->layout.group_width = in _read_and_match_data_map()
485 sbi->layout.group_depth = in _read_and_match_data_map()
487 sbi->layout.mirrors_p1 = in _read_and_match_data_map()
489 sbi->layout.raid_algorithm = in _read_and_match_data_map()
492 ret = ore_verify_layout(numdevs, &sbi->layout); in _read_and_match_data_map()
498 sbi->layout.stripe_unit, in _read_and_match_data_map()
[all …]
Dexofs.h75 struct ore_layout layout; /* Default files layout */ member
153 unsigned exofs_max_io_pages(struct ore_layout *layout,
230 oc->numdevs = sbi->layout.group_width * sbi->layout.mirrors_p1 * in exofs_init_comps()
231 sbi->layout.group_count; in exofs_init_comps()
236 first_dev = (dev_mod * sbi->layout.mirrors_p1) % sbi->oc.numdevs; in exofs_init_comps()
Dinode.c40 unsigned exofs_max_io_pages(struct ore_layout *layout, in exofs_max_io_pages() argument
44 layout->max_io_length / PAGE_SIZE); in exofs_max_io_pages()
102 exofs_max_io_pages(&pcol->sbi->layout, ~0); in _pcol_reset()
110 pages = exofs_max_io_pages(&pcol->sbi->layout, pcol->expected_pages); in pcol_try_alloc()
319 int ret = ore_get_rw_state(&pcol->sbi->layout, &oi->oc, true, in read_exec()
635 ret = ore_get_rw_state(&pcol->sbi->layout, &oi->oc, false, in write_exec()
1004 ret = ore_truncate(&sbi->layout, &oi->oc, (u64)newsize); in _do_truncate()
1068 struct exofs_on_disk_inode_layout *layout; in exofs_get_inode() local
1071 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_get_inode()
1110 layout = attrs[1].val_ptr; in exofs_get_inode()
[all …]
Dore_raid.h54 int _ore_get_io_state(struct ore_layout *layout,
/linux-4.19.296/drivers/clk/at91/
Dclk-programmable.c25 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & PROG_PRES_MASK) argument
38 const struct clk_programmable_layout *layout; member
51 return parent_rate >> PROG_PRES(prog->layout, pckr); in clk_programmable_recalc_rate()
100 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent() local
101 unsigned int mask = layout->css_mask; in clk_programmable_set_parent()
104 if (layout->have_slck_mck) in clk_programmable_set_parent()
107 if (index > layout->css_mask) { in clk_programmable_set_parent()
108 if (index > PROG_MAX_RM9200_CSS && !layout->have_slck_mck) in clk_programmable_set_parent()
122 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_get_parent() local
128 ret = pckr & layout->css_mask; in clk_programmable_get_parent()
[all …]
Dclk-pll.c25 #define PLL_MUL(reg, layout) (((reg) >> (layout)->mul_shift) & \ argument
26 (layout)->mul_mask)
28 #define PLL_MUL_MASK(layout) ((layout)->mul_mask) argument
29 #define PLL_MUL_MAX(layout) (PLL_MUL_MASK(layout) + 1) argument
60 const struct clk_pll_layout *layout; member
77 const struct clk_pll_layout *layout = pll->layout; in clk_pll_prepare() local
91 mul = PLL_MUL(pllr, layout); in clk_pll_prepare()
105 regmap_update_bits(regmap, offset, layout->pllr_mask, in clk_pll_prepare()
108 ((pll->mul & layout->mul_mask) << layout->mul_shift)); in clk_pll_prepare()
126 unsigned int mask = pll->layout->pllr_mask; in clk_pll_unprepare()
[all …]
Dclk-master.c43 const struct clk_master_layout *layout; member
80 const struct clk_master_layout *layout = master->layout; in clk_master_recalc_rate() local
86 mckr &= layout->mask; in clk_master_recalc_rate()
88 pres = (mckr >> layout->pres_shift) & MASTER_PRES_MASK; in clk_master_recalc_rate()
127 const struct clk_master_layout *layout, in at91_clk_register_master() argument
149 master->layout = layout; in at91_clk_register_master()
202 const struct clk_master_layout *layout) in of_at91_clk_master_setup() argument
228 parent_names, layout, in of_at91_clk_master_setup()
/linux-4.19.296/include/linux/mfd/syscon/
Datmel-smc.h22 #define ATMEL_HSMC_SETUP(layout, cs) \ argument
23 ((layout)->timing_regs_offset + ((cs) * 0x14))
25 #define ATMEL_HSMC_PULSE(layout, cs) \ argument
26 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x4)
28 #define ATMEL_HSMC_CYCLE(layout, cs) \ argument
29 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x8)
36 #define ATMEL_HSMC_MODE(layout, cs) \ argument
37 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x10)
67 #define ATMEL_HSMC_TIMINGS(layout, cs) \ argument
68 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0xc)
/linux-4.19.296/include/scsi/
Dosd_ore.h123 struct ore_layout *layout; member
175 int ore_verify_layout(unsigned total_comps, struct ore_layout *layout);
176 void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,
178 int ore_get_rw_state(struct ore_layout *layout, struct ore_components *comps,
181 int ore_get_io_state(struct ore_layout *layout, struct ore_components *comps,
194 int ore_truncate(struct ore_layout *layout, struct ore_components *comps,
/linux-4.19.296/fs/ceph/
Dioctl.c117 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()
161 req->r_args.setlayout.layout.fl_stripe_unit = in ceph_ioctl_set_layout_policy()
163 req->r_args.setlayout.layout.fl_stripe_count = in ceph_ioctl_set_layout_policy()
165 req->r_args.setlayout.layout.fl_object_size = in ceph_ioctl_set_layout_policy()
167 req->r_args.setlayout.layout.fl_pg_pool = in ceph_ioctl_set_layout_policy()
Dxattr.c309 XATTR_LAYOUT_FIELD(dir, layout, stripe_unit),
310 XATTR_LAYOUT_FIELD(dir, layout, stripe_count),
311 XATTR_LAYOUT_FIELD(dir, layout, object_size),
312 XATTR_LAYOUT_FIELD(dir, layout, pool),
313 XATTR_LAYOUT_FIELD(dir, layout, pool_namespace),
345 XATTR_LAYOUT_FIELD(file, layout, stripe_unit),
346 XATTR_LAYOUT_FIELD(file, layout, stripe_count),
347 XATTR_LAYOUT_FIELD(file, layout, object_size),
348 XATTR_LAYOUT_FIELD(file, layout, pool),
349 XATTR_LAYOUT_FIELD(file, layout, pool_namespace),
/linux-4.19.296/fs/nfs/
Dpnfs.c298 nfsi->layout = NULL; in pnfs_detach_layout_hdr()
395 lo = NFS_I(inode)->layout; in nfs4_layoutreturn_refresh_stateid()
738 lo = nfsi->layout; in __pnfs_destroy_layout()
765 ret = nfsi->layout != lo; in pnfs_layout_removed()
786 lo = NFS_I(inode)->layout; in pnfs_layout_add_bulk_destroy_list()
1056 lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags); in pnfs_alloc_init_layoutget_args()
1057 if (!lgp->args.layout.pages) { in pnfs_alloc_init_layoutget_args()
1061 lgp->args.layout.pglen = max_pages * PAGE_SIZE; in pnfs_alloc_init_layoutget_args()
1062 lgp->res.layoutp = &lgp->args.layout; in pnfs_alloc_init_layoutget_args()
1093 size_t max_pages = lgp->args.layout.pglen / PAGE_SIZE; in pnfs_layoutget_free()
[all …]
Dnfs42proc.c549 lo = NFS_I(inode)->layout; in nfs42_layoutstat_prepare()
584 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done()
603 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done()
633 pnfs_put_layout_hdr(NFS_I(data->args.inode)->layout); in nfs42_layoutstat_release()
/linux-4.19.296/drivers/memory/
Datmel-ebi.c54 const struct atmel_hsmc_reg_layout *layout; member
88 atmel_hsmc_cs_conf_get(ebid->ebi->smc.regmap, ebid->ebi->smc.layout, in sama5_ebi_get_config()
291 atmel_hsmc_cs_conf_apply(ebid->ebi->smc.regmap, ebid->ebi->smc.layout, in sama5_ebi_apply_config()
532 ebi->smc.layout = atmel_hsmc_get_reg_layout(smc_np); in atmel_ebi_probe()
533 if (IS_ERR(ebi->smc.layout)) { in atmel_ebi_probe()
534 ret = PTR_ERR(ebi->smc.layout); in atmel_ebi_probe()
/linux-4.19.296/fs/nfsd/
DKconfig96 in the kernel's NFS server. The pNFS block layout enables NFS
110 in the kernel's NFS server. The pNFS SCSI layout enables NFS
112 the server and the clients. See draft-ietf-nfsv4-scsi-layout for
123 layouts in the kernel's NFS server. The pNFS Flex File layout
/linux-4.19.296/include/media/drv-intf/
Dsoc_mediabus.h84 enum soc_mbus_layout layout; member
/linux-4.19.296/fs/nfs/flexfilelayout/
Dflexfilelayout.c196 mirror->layout = lo; in ff_layout_add_mirror()
205 if (mirror->layout == NULL) in ff_layout_remove_mirror()
207 inode = mirror->layout->plh_inode; in ff_layout_remove_mirror()
211 mirror->layout = NULL; in ff_layout_remove_mirror()
554 static bool ff_layout_has_rw_segments(struct pnfs_layout_hdr *layout) in ff_layout_has_rw_segments() argument
558 list_for_each_entry(lseg, &layout->plh_segs, pls_list) in ff_layout_has_rw_segments()
624 struct nfs4_flexfile_layout *ffl = FF_LAYOUT_FROM_HDR(mirror->layout); in nfs4_ff_layoutstat_start_io()
1292 (unsigned long long) NFS_I(inode)->layout->plh_lwb); in ff_layout_set_layoutcommit()
1910 struct pnfs_layout_hdr *layout = NFS_I(inode)->layout; in ff_layout_get_ds_info() local
1912 if (layout == NULL) in ff_layout_get_ds_info()
[all …]
/linux-4.19.296/include/linux/ceph/
Dceph_fs.h70 extern int ceph_file_layout_is_valid(const struct ceph_file_layout *layout);
428 struct ceph_file_layout_legacy layout; member
507 struct ceph_file_layout_legacy layout; member
708 struct ceph_file_layout_legacy layout; member
Dosd_client.h466 struct ceph_file_layout *layout,
499 struct ceph_file_layout *layout,
507 struct ceph_file_layout *layout,
/linux-4.19.296/include/uapi/linux/raid/
Dmd_p.h192 __u32 layout; /* 0 the array's physical layout */ member
241 __le32 layout; /* only for raid5 and raid10 currently */ member
Dmd_u.h105 int layout; /* 0 the array's physical layout */ member
/linux-4.19.296/include/linux/
Dpnfs_osd_xdr.h293 extern int pnfs_osd_xdr_decode_layout_map(struct pnfs_osd_layout *layout,
/linux-4.19.296/fs/nfs/filelayout/
Dfilelayout.c242 (unsigned long) NFS_I(hdr->inode)->layout->plh_lwb); in filelayout_set_layoutcommit()
909 lo = NFS_I(ino)->layout; in fl_pnfs_update_layout()
1163 struct pnfs_layout_hdr *layout = NFS_I(inode)->layout; in filelayout_get_ds_info() local
1165 if (layout == NULL) in filelayout_get_ds_info()
1168 return &FILELAYOUT_FROM_HDR(layout)->commit_info; in filelayout_get_ds_info()

12