Home
last modified time | relevance | path

Searched +full:2 +full:mp (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/linux/fs/xfs/libxfs/
H A Dxfs_trans_space.h14 #define XFS_MAX_CONTIG_BMAPS_PER_BLOCK(mp) \ argument
15 (((mp)->m_bmap_dmxr[0]) - ((mp)->m_bmap_dmnr[0]))
18 #define XFS_MAX_CONTIG_RTRMAPS_PER_BLOCK(mp) \ argument
19 (((mp)->m_rtrmap_mxr[0]) - ((mp)->m_rtrmap_mnr[0]))
22 #define XFS_RTRMAPADD_SPACE_RES(mp) ((mp)->m_rtrmap_maxlevels) argument
25 #define XFS_NRTRMAPADD_SPACE_RES(mp, b) \ argument
26 ((((b) + XFS_MAX_CONTIG_RTRMAPS_PER_BLOCK(mp) - 1) / \
27 XFS_MAX_CONTIG_RTRMAPS_PER_BLOCK(mp)) * \
28 XFS_RTRMAPADD_SPACE_RES(mp))
31 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) \ argument
[all …]
H A Dxfs_sb.c195 struct xfs_mount *mp, in xfs_validate_sb_read() argument
206 xfs_warn(mp, in xfs_validate_sb_read()
209 xfs_warn(mp, in xfs_validate_sb_read()
214 xfs_alert(mp, in xfs_validate_sb_read()
218 if (!xfs_is_readonly(mp)) { in xfs_validate_sb_read()
219 xfs_warn(mp, in xfs_validate_sb_read()
221 xfs_warn(mp, in xfs_validate_sb_read()
228 xfs_warn(mp, in xfs_validate_sb_read()
232 xfs_warn(mp, in xfs_validate_sb_read()
325 struct xfs_mount *mp, in xfs_validate_sb_write() argument
[all …]
H A Dxfs_format.h31 #define XFS_SB_VERSION_2 2 /* 6.2 - attributes */
54 * sizes up to 2^16 bytes in length.
375 #define XFS_SB_FEAT_RO_COMPAT_REFLINK (1 << 2) /* reflinked files */
393 #define XFS_SB_FEAT_INCOMPAT_META_UUID (1 << 2) /* metadata UUID */
467 #define XFS_SB_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_SB_DADDR) argument
469 #define XFS_HDR_BLOCK(mp,d) ((xfs_agblock_t)XFS_BB_TO_FSBT(mp,d)) argument
470 #define XFS_DADDR_TO_FSB(mp,d) XFS_AGB_TO_FSB(mp, \ argument
471 xfs_daddr_to_agno(mp,d), xfs_daddr_to_agbno(mp,d))
472 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
473 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
[all …]
H A Dxfs_rtrmap_btree.h21 struct xfs_btree_cur *xfs_rtrmapbt_stage_cursor(struct xfs_mount *mp,
26 unsigned int xfs_rtrmapbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
28 void xfs_rtrmapbt_compute_maxlevels(struct xfs_mount *mp);
53 (index - 1) * 2 * sizeof(struct xfs_rmap_key)); in xfs_rtrmap_key_addr()
64 (index - 1) * 2 * sizeof(struct xfs_rmap_key)); in xfs_rtrmap_high_key_addr()
75 maxrecs * 2 * sizeof(struct xfs_rmap_key) + in xfs_rtrmap_ptr_addr()
84 xfs_filblks_t xfs_rtrmapbt_calc_reserves(struct xfs_mount *mp);
105 (index - 1) * 2 * sizeof(struct xfs_rmap_key)); in xfs_rtrmap_droot_key_addr()
116 maxrecs * 2 * sizeof(struct xfs_rmap_key) + in xfs_rtrmap_droot_ptr_addr()
128 struct xfs_mount *mp, in xfs_rtrmap_broot_ptr_addr() argument
[all …]
H A Dxfs_inode_buf.c46 struct xfs_mount *mp = bp->b_mount; in xfs_inode_buf_verify() local
53 ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock; in xfs_inode_buf_verify()
59 dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog)); in xfs_inode_buf_verify()
62 xfs_dinode_good_version(mp, dip->di_version) && in xfs_inode_buf_verify()
65 XFS_TEST_ERROR(mp, XFS_ERRTAG_ITOBP_INOTOBP))) { in xfs_inode_buf_verify()
73 xfs_alert(mp, in xfs_inode_buf_verify()
132 struct xfs_mount *mp, in xfs_imap_to_bp() argument
139 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, in xfs_imap_to_bp()
142 xfs_agno_mark_sick(mp, xfs_daddr_to_agno(mp, imap->im_blkno), in xfs_imap_to_bp()
367 to->di_version = 2; in xfs_inode_to_disk()
[all …]
H A Dxfs_rmap_btree.h31 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key)))
37 ((index) - 1) * 2 * sizeof(struct xfs_rmap_key)))
42 (maxrecs) * 2 * sizeof(struct xfs_rmap_key) + \
45 struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp,
50 unsigned int xfs_rmapbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
52 extern void xfs_rmapbt_compute_maxlevels(struct xfs_mount *mp);
54 extern xfs_extlen_t xfs_rmapbt_calc_size(struct xfs_mount *mp,
56 extern xfs_extlen_t xfs_rmapbt_max_size(struct xfs_mount *mp,
59 extern int xfs_rmapbt_calc_reserves(struct xfs_mount *mp, struct xfs_trans *tp,
69 int xfs_rmapbt_mem_init(struct xfs_mount *mp, struct xfbtree *xfbtree,
H A Dxfs_ag.c45 struct xfs_mount *mp, in xfs_initialize_perag_data() argument
50 struct xfs_sb *sbp = &mp->m_sb; in xfs_initialize_perag_data()
64 pag = xfs_perag_get(mp, index); in xfs_initialize_perag_data()
89 xfs_alert(mp, "AGF corruption. Please run xfs_repair."); in xfs_initialize_perag_data()
90 xfs_fs_mark_sick(mp, XFS_SICK_FS_COUNTERS); in xfs_initialize_perag_data()
96 spin_lock(&mp->m_sb_lock); in xfs_initialize_perag_data()
100 spin_unlock(&mp->m_sb_lock); in xfs_initialize_perag_data()
102 xfs_reinit_percpu_counters(mp); in xfs_initialize_perag_data()
104 xfs_fs_mark_healthy(mp, XFS_SICK_FS_COUNTERS); in xfs_initialize_perag_data()
122 struct xfs_mount *mp, in xfs_free_perag_range() argument
[all …]
/linux/drivers/pci/controller/dwc/
H A Dpci-meson.c74 static struct reset_control *meson_pcie_get_reset(struct meson_pcie *mp, in meson_pcie_get_reset() argument
78 struct device *dev = mp->pci.dev; in meson_pcie_get_reset()
89 static int meson_pcie_get_resets(struct meson_pcie *mp) in meson_pcie_get_resets() argument
91 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets()
93 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets()
98 mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET); in meson_pcie_get_resets()
107 struct meson_pcie *mp) in meson_pcie_get_mems() argument
109 struct dw_pcie *pci = &mp->pci; in meson_pcie_get_mems()
127 mp->cfg_base = devm_platform_ioremap_resource_byname(pdev, "cfg"); in meson_pcie_get_mems()
128 if (IS_ERR(mp->cfg_base)) in meson_pcie_get_mems()
[all …]
/linux/fs/xfs/
H A Dxfs_mount.h64 struct xfs_mount *mp; member
92 * Log(2) of the logical size of each group.
104 * equivalent to the RT groups already takes care of the power of 2
192 uint m_alloc_mxr[2]; /* max alloc btree records */
193 uint m_alloc_mnr[2]; /* min alloc btree records */
194 uint m_bmap_dmxr[2]; /* max bmap btree records */
195 uint m_bmap_dmnr[2]; /* min bmap btree records */
196 uint m_rmap_mxr[2]; /* max rmap btree records */
197 uint m_rmap_mnr[2]; /* min rmap btree records */
198 uint m_rtrmap_mxr[2]; /* max rtrmap btree records */
[all …]
H A Dxfs_icache.h24 #define XFS_ICWALK_FLAG_GID (1U << 2) /* filter by gid */
39 #define XFS_IGET_DONTCACHE (1U << 2)
45 int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino,
49 struct xfs_inode * xfs_inode_alloc(struct xfs_mount *mp, xfs_ino_t ino);
54 void xfs_reclaim_inodes(struct xfs_mount *mp);
55 long xfs_reclaim_inodes_count(struct xfs_mount *mp);
56 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, unsigned long nr_to_scan);
60 int xfs_blockgc_free_dquots(struct xfs_mount *mp, struct xfs_dquot *udqp,
64 int xfs_blockgc_free_space(struct xfs_mount *mp, struct xfs_icwalk *icm);
65 int xfs_blockgc_flush_all(struct xfs_mount *mp);
[all …]
H A Dxfs_fsmap.c46 dest->fmr_reserved[2] = 0; in xfs_fsmap_from_internal()
213 struct xfs_mount *mp = tp->t_mountp; in xfs_getfsmap_is_shared() local
220 if (!xfs_has_reflink(mp) || !info->group) in xfs_getfsmap_is_shared()
226 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, in xfs_getfsmap_is_shared()
231 XFS_BB_TO_FSBT(mp, frec->len_daddr), &fbno, &flen, in xfs_getfsmap_is_shared()
244 struct xfs_mount *mp, in xfs_getfsmap_format() argument
250 trace_xfs_getfsmap_mapping(mp, xfm); in xfs_getfsmap_format()
288 struct xfs_mount *mp = tp->t_mountp; in xfs_getfsmap_helper() local
332 xfs_getfsmap_format(mp, &fmr, info); in xfs_getfsmap_helper()
342 trace_xfs_fsmap_mapping(mp, info->dev, in xfs_getfsmap_helper()
[all …]
H A Dxfs_inode_item_recover.c78 struct xfs_mount *mp, in xfs_recover_inode_owner_change() argument
88 ip = xfs_inode_alloc(mp, in_f->ilf_ino); in xfs_recover_inode_owner_change()
223 struct xfs_mount *mp, in xlog_dinode_verify_extent_counts() argument
230 if (!xfs_has_large_extent_counts(mp) || in xlog_dinode_verify_extent_counts()
234 XFS_ERRLEVEL_LOW, mp, ldip, sizeof(*ldip)); in xlog_dinode_verify_extent_counts()
235 xfs_alert(mp, in xlog_dinode_verify_extent_counts()
237 ldip->di_ino, xfs_has_large_extent_counts(mp), in xlog_dinode_verify_extent_counts()
248 XFS_ERRLEVEL_LOW, mp, ldip, sizeof(*ldip)); in xlog_dinode_verify_extent_counts()
249 xfs_alert(mp, in xlog_dinode_verify_extent_counts()
261 XFS_ERRLEVEL_LOW, mp, ldip, sizeof(*ldip)); in xlog_dinode_verify_extent_counts()
[all …]
H A Dxfs_filestream.c31 XFS_PICK_LOWSPACE = 2,
63 struct xfs_mount *mp = args->mp; in xfs_filestream_pick_ag() local
71 /* 2% of an AG's blocks must be free for it to be chosen. */ in xfs_filestream_pick_ag()
72 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
75 for_each_perag_wrap(mp, start_agno, agno, pag) { in xfs_filestream_pick_ag()
151 for_each_perag_wrap(args->mp, 0, start_agno, pag) { in xfs_filestream_pick_ag()
209 struct xfs_mount *mp = args->mp; in xfs_filestream_lookup_association() local
215 mru = xfs_mru_cache_lookup(mp->m_filestream, pino); in xfs_filestream_lookup_association()
226 xfs_mru_cache_done(mp->m_filestream); in xfs_filestream_lookup_association()
265 struct xfs_mount *mp = args->mp; in xfs_filestream_create_association() local
[all …]
H A Dxfs_mount.c85 struct xfs_mount *mp) in xfs_uuid_mount() argument
87 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
91 super_set_uuid(mp->m_super, uuid->b, sizeof(*uuid)); in xfs_uuid_mount()
93 if (xfs_has_nouuid(mp)) in xfs_uuid_mount()
97 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
103 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", in xfs_uuid_mount()
109 ret = xa_alloc(&xfs_uuid_table, &mp->m_uuid_table_index, uuid, in xfs_uuid_mount()
117 struct xfs_mount *mp) in xfs_uuid_unmount() argument
119 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
121 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount()
[all …]
H A Dxfs_rtalloc.c108 for (log = oargs->mp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary()
109 for (bbno = oargs->mp->m_sb.sb_rbmblocks - 1; in xfs_rtcopy_summary()
115 if (XFS_IS_CORRUPT(oargs->mp, sum < 0)) { in xfs_rtcopy_summary()
144 struct xfs_mount *mp = args->mp; in xfs_rtallocate_range() local
174 xfs_rtx_to_rbmblock(mp, preblock), -1); in xfs_rtallocate_range()
185 xfs_rtx_to_rbmblock(mp, preblock), 1); in xfs_rtallocate_range()
197 xfs_rtx_to_rbmblock(mp, end + 1), 1); in xfs_rtallocate_range()
253 struct xfs_mount *mp = args->mp; in xfs_rtallocate_extent_block() local
267 end = min(args->rtg->rtg_extents, xfs_rbmblock_to_rtx(mp, bbno + 1)) - in xfs_rtallocate_extent_block()
269 for (i = xfs_rbmblock_to_rtx(mp, bbno); i <= end; i++) { in xfs_rtallocate_extent_block()
[all …]
/linux/drivers/net/ethernet/apple/
H A Dmace.c91 static inline void mace_clean_rings(struct mace_data *mp);
112 struct mace_data *mp; in mace_probe() local
138 dummy_buf = kmalloc(RX_BUFLEN+2, GFP_KERNEL); in mace_probe()
155 mp = netdev_priv(dev); in mace_probe()
156 mp->mdev = mdev; in mace_probe()
160 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe()
161 if (mp->mace == NULL) { in mace_probe()
173 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe()
174 in_8(&mp->mace->chipid_lo); in mace_probe()
177 mp = netdev_priv(dev); in mace_probe()
[all …]
/linux/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c66 #define WINDOW_REMAP_HIGH(w) (0x0280 + ((w) << 2))
72 * port #0, 0x0800 for port #1, and 0x0c00 for port #2.
136 #define TXQ_CURRENT_DESC_PTR(q) (0x02c0 + ((q) << 2))
177 #define MV643XX_MAX_SKB_DESCS (MV643XX_MAX_TSO_SEGS * 2 + MAX_SKB_FRAGS)
282 #define TX_BW_CONTROL_NEW_LAYOUT 2
419 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument
421 return readl(mp->shared->base + offset); in rdl()
424 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp() argument
426 return readl(mp->base + offset); in rdlp()
429 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl() argument
[all …]
/linux/fs/jfs/
H A Djfs_btree.h47 #define BT_IS_ROOT(MP) (((MP)->xflag & COMMIT_PAGE) == 0) argument
50 #define BT_PAGE(IP, MP, TYPE, ROOT)\ argument
51 (BT_IS_ROOT(MP) ? (TYPE *)&JFS_IP(IP)->ROOT : (TYPE *)(MP)->data)
54 #define BT_GETPAGE(IP, BN, MP, TYPE, SIZE, P, RC, ROOT)\ argument
58 MP = (struct metapage *)&JFS_IP(IP)->bxflag;\
64 MP = read_metapage((IP), BN, SIZE, 1);\
65 if (MP) {\
67 P = (MP)->data;\
76 #define BT_MARK_DIRTY(MP, IP)\ argument
78 if (BT_IS_ROOT(MP))\
[all …]
H A Djfs_metapage.h39 #define META_dirty 2
45 #define mark_metapage_dirty(mp) set_bit(META_dirty, &(mp)->flag) argument
72 static inline void write_metapage(struct metapage *mp) in write_metapage() argument
74 set_bit(META_dirty, &mp->flag); in write_metapage()
75 release_metapage(mp); in write_metapage()
78 static inline void flush_metapage(struct metapage *mp) in flush_metapage() argument
80 set_bit(META_sync, &mp->flag); in flush_metapage()
81 write_metapage(mp); in flush_metapage()
84 static inline void discard_metapage(struct metapage *mp) in discard_metapage() argument
86 clear_bit(META_dirty, &mp->flag); in discard_metapage()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_malloc.c34 * provide power of 2 aligned memory allocations.
38 * is guaranteed for power of 2 cache line size.
47 static void *___sym_malloc(m_pool_p mp, int size) in ___sym_malloc() argument
53 m_link_p h = mp->h; in ___sym_malloc()
93 static void ___sym_mfree(m_pool_p mp, void *ptr, int size) in ___sym_mfree() argument
99 m_link_p h = mp->h; in ___sym_mfree()
145 static void *__sym_calloc2(m_pool_p mp, int size, char *name, int uflags) in __sym_calloc2() argument
149 p = ___sym_malloc(mp, size); in __sym_calloc2()
161 #define __sym_calloc(mp, s, n) __sym_calloc2(mp, s, n, SYM_MEM_WARN) argument
166 static void __sym_mfree(m_pool_p mp, void *ptr, int size, char *name) in __sym_mfree() argument
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/
H A Ddml2_core_dcn4_calcs.c167 out_bpp[k] = bpc * 2; in get_stream_output_bpp()
170 out_bpp[k] = bpc * 2; in get_stream_output_bpp()
247 unsigned int plane_idx = mode_lib->mp.pipe_plane[pipe_idx]; in dml_get_is_phantom_pipe()
257 plane_idx = mode_lib->mp.pipe_plane[pipe_idx]; \
261 dml_get_per_pipe_var_func(dpte_group_size_in_bytes, unsigned int, mode_lib->mp.dpte_group_bytes);
262 dml_get_per_pipe_var_func(vm_group_size_in_bytes, unsigned int, mode_lib->mp.vm_group_bytes);
263 dml_get_per_pipe_var_func(swath_height_l, unsigned int, mode_lib->mp.SwathHeightY);
264 dml_get_per_pipe_var_func(swath_height_c, unsigned int, mode_lib->mp.SwathHeightC);
265 dml_get_per_pipe_var_func(dpte_row_height_linear_l, unsigned int, mode_lib->mp.dpte_row_height_line…
266 dml_get_per_pipe_var_func(dpte_row_height_linear_c, unsigned int, mode_lib->mp.dpte_row_height_line…
[all …]
/linux/drivers/gpu/drm/arm/
H A Dmalidp_planes.c58 * for formats with 1- or 2-bit alpha channels.
60 * opacity for 2-bit formats.
221 if (info->cpp[0] <= 2) { in malidp_format_mod_supported()
262 static int malidp_se_check_scaling(struct malidp_plane *mp, in malidp_se_check_scaling() argument
291 mc->scaled_planes_mask &= ~(mp->layer->id); in malidp_se_check_scaling()
295 if (mp->layer->id & (DE_SMART | DE_GRAPHICS2)) in malidp_se_check_scaling()
298 mc->scaled_planes_mask |= mp->layer->id; in malidp_se_check_scaling()
303 static u32 malidp_get_pgsize_bitmap(struct malidp_plane *mp) in malidp_get_pgsize_bitmap() argument
307 mmu_dom = iommu_get_domain_for_dev(mp->base.dev->dev); in malidp_get_pgsize_bitmap()
480 static void malidp_de_prefetch_settings(struct malidp_plane *mp, in malidp_de_prefetch_settings() argument
[all …]
/linux/lib/crypto/mpi/
H A Dmpi-pow.c7 * Note: This code is heavily based on the GNU MP Library.
12 * The GNU MP Library itself is published under the LGPL;
32 mpi_ptr_t rp, ep, mp, bp; in mpi_powm() local
45 size = 2 * msize; in mpi_powm()
72 mp = mp_marker = mpi_alloc_limb_space(msize); in mpi_powm()
73 if (!mp) in mpi_powm()
77 mpihelp_lshift(mp, mod->d, msize, mod_shift_cnt); in mpi_powm()
79 MPN_COPY(mp, mod->d, msize); in mpi_powm()
92 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm()
110 if (rp == ep || rp == mp || rp == bp) { in mpi_powm()
[all …]
/linux/drivers/mtd/devices/
H A Dms02-nv.c56 struct ms02nv_private *mp = mtd->priv; in ms02nv_read() local
58 memcpy(buf, mp->uaddr + from, len); in ms02nv_read()
66 struct ms02nv_private *mp = mtd->priv; in ms02nv_write() local
68 memcpy(mp->uaddr + to, buf, len); in ms02nv_write()
107 struct ms02nv_private *mp; in ms02nv_init_one() local
144 mp = kzalloc_obj(*mp); in ms02nv_init_one()
145 if (!mp) in ms02nv_init_one()
148 mtd->priv = mp; in ms02nv_init_one()
149 mp->resource.module = mod_res; in ms02nv_init_one()
162 mp->resource.diag_ram = diag_res; in ms02nv_init_one()
[all …]
/linux/drivers/hid/
H A Dhid-wiimote-core.c132 __u8 cmd[2]; in wiiproto_req_rumble()
152 __u8 cmd[2]; in wiiproto_req_leds()
251 cmd[2] = drm; in wiiproto_req_drm()
260 __u8 cmd[2]; in wiiproto_req_status()
285 __u8 cmd[2]; in wiiproto_req_ir1()
296 __u8 cmd[2]; in wiiproto_req_ir2()
323 cmd[2] = (offset >> 16) & 0xff; in wiiproto_req_wmem()
348 cmd[2] = (offset >> 16) & 0xff; in wiiproto_req_rmem()
443 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff && in wiimote_cmd_read_ext()
474 /* initialize MP */ in wiimote_cmd_init_mp()
[all …]

12345678910>>...13