Home
last modified time | relevance | path

Searched full:mp (Results 1 – 25 of 1275) sorted by relevance

12345678910>>...51

/kernel/linux/linux-6.6/fs/xfs/libxfs/
Dxfs_trans_space.h14 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) \ argument
15 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0]))
18 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) argument
28 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
29 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
30 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \
31 XFS_RMAPADD_SPACE_RES(mp))
33 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ argument
34 (((mp)->m_alloc_mxr[0]) - ((mp)->m_alloc_mnr[0]))
35 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
[all …]
Dxfs_trans_resv.c67 struct xfs_mount *mp, in xfs_allocfree_block_count() argument
72 blocks = num_ops * 2 * (2 * mp->m_alloc_maxlevels - 1); in xfs_allocfree_block_count()
73 if (xfs_has_rmapbt(mp)) in xfs_allocfree_block_count()
74 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_block_count()
86 struct xfs_mount *mp, in xfs_refcountbt_block_count() argument
89 return num_ops * (2 * mp->m_refc_maxlevels - 1); in xfs_refcountbt_block_count()
123 struct xfs_mount *mp, in xfs_calc_inode_res() argument
129 mp->m_sb.sb_inodesize + in xfs_calc_inode_res()
130 2 * XFS_BMBT_BLOCK_LEN(mp)); in xfs_calc_inode_res()
145 struct xfs_mount *mp) in xfs_calc_inobt_res() argument
[all …]
Dxfs_ag.c43 struct xfs_mount *mp, in xfs_perag_get() argument
49 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
64 struct xfs_mount *mp, in xfs_perag_get_tag() argument
72 found = radix_tree_gang_lookup_tag(&mp->m_perag_tree, in xfs_perag_get_tag()
114 struct xfs_mount *mp, in xfs_perag_grab() argument
120 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_grab()
135 struct xfs_mount *mp, in xfs_perag_grab_tag() argument
143 found = radix_tree_gang_lookup_tag(&mp->m_perag_tree, in xfs_perag_grab_tag()
175 struct xfs_mount *mp, in xfs_initialize_perag_data() argument
180 struct xfs_sb *sbp = &mp->m_sb; in xfs_initialize_perag_data()
[all …]
Dxfs_types.c23 struct xfs_mount *mp, in xfs_verify_agno_agbno() argument
29 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agno_agbno()
32 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agno_agbno()
43 struct xfs_mount *mp, in xfs_verify_fsbno() argument
46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno()
48 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
59 struct xfs_mount *mp, in xfs_verify_fsbext() argument
66 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_verify_fsbext()
69 if (!xfs_verify_fsbno(mp, fsbno + len - 1)) in xfs_verify_fsbext()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_trans_space.h14 #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) \ argument
15 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0]))
18 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) argument
21 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
22 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
23 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \
24 XFS_RMAPADD_SPACE_RES(mp))
26 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ argument
27 (((mp)->m_alloc_mxr[0]) - ((mp)->m_alloc_mnr[0]))
28 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
[all …]
Dxfs_trans_resv.c68 struct xfs_mount *mp, in xfs_allocfree_log_count() argument
73 blocks = num_ops * 2 * (2 * mp->m_ag_maxlevels - 1); in xfs_allocfree_log_count()
74 if (xfs_sb_version_hasrmapbt(&mp->m_sb)) in xfs_allocfree_log_count()
75 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_log_count()
76 if (xfs_sb_version_hasreflink(&mp->m_sb)) in xfs_allocfree_log_count()
77 blocks += num_ops * (2 * mp->m_refc_maxlevels - 1); in xfs_allocfree_log_count()
113 struct xfs_mount *mp, in xfs_calc_inode_res() argument
119 mp->m_sb.sb_inodesize + in xfs_calc_inode_res()
120 2 * XFS_BMBT_BLOCK_LEN(mp)); in xfs_calc_inode_res()
135 struct xfs_mount *mp) in xfs_calc_inobt_res() argument
[all …]
Dxfs_ag.c28 struct xfs_mount *mp, in xfs_get_aghdr_buf() argument
37 error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0, &bp); in xfs_get_aghdr_buf()
50 static inline bool is_log_ag(struct xfs_mount *mp, struct aghdr_init_data *id) in is_log_ag() argument
52 return mp->m_sb.sb_logstart > 0 && in is_log_ag()
53 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag()
61 struct xfs_mount *mp, in xfs_btroot_init() argument
65 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init()
71 struct xfs_mount *mp, in xfs_freesp_init_recs() argument
78 arec = XFS_ALLOC_REC_ADDR(mp, XFS_BUF_TO_BLOCK(bp), 1); in xfs_freesp_init_recs()
79 arec->ar_startblock = cpu_to_be32(mp->m_ag_prealloc_blocks); in xfs_freesp_init_recs()
[all …]
Dxfs_types.c18 struct xfs_mount *mp, in xfs_ag_block_count() argument
21 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count()
23 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count()
24 return mp->m_sb.sb_agblocks; in xfs_ag_block_count()
25 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count()
34 struct xfs_mount *mp, in xfs_verify_agbno() argument
40 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agbno()
43 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agbno()
54 struct xfs_mount *mp, in xfs_verify_fsbno() argument
57 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno()
[all …]
/kernel/linux/linux-6.6/fs/xfs/
Dxfs_mount.c59 struct xfs_mount *mp) in xfs_uuid_mount() argument
61 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
65 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount()
67 if (xfs_has_nouuid(mp)) in xfs_uuid_mount()
71 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
98 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
104 struct xfs_mount *mp) in xfs_uuid_unmount() argument
106 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
109 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount()
150 struct xfs_mount *mp, in xfs_readsb() argument
[all …]
Dxfs_super.c67 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument
72 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode()
75 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
76 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
79 mp->m_features |= XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
80 mp->m_features &= ~XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
179 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local
183 if (mp->m_features & xfs_infop->flag) in xfs_fs_show_options()
187 seq_printf(m, ",inode%d", xfs_has_small_inums(mp) ? 32 : 64); in xfs_fs_show_options()
189 if (xfs_has_allocsize(mp)) in xfs_fs_show_options()
[all …]
Dxfs_fsops.c47 struct xfs_mount *mp = tp->t_mountp; in xfs_resizefs_init_new_ags() local
48 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags()
60 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags()
62 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags()
64 error = xfs_ag_init_headers(mp, id); in xfs_resizefs_init_new_ags()
87 struct xfs_mount *mp, /* mount point for filesystem */ in xfs_growfs_data_private() argument
90 xfs_agnumber_t oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
103 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb); in xfs_growfs_data_private()
107 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private()
108 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private()
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_mount.c56 struct xfs_mount *mp) in xfs_uuid_mount() argument
58 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
62 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount()
64 if (mp->m_flags & XFS_MOUNT_NOUUID) in xfs_uuid_mount()
68 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
95 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
101 struct xfs_mount *mp) in xfs_uuid_unmount() argument
103 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
106 if (mp->m_flags & XFS_MOUNT_NOUUID) in xfs_uuid_unmount()
137 xfs_mount_t *mp) in xfs_free_perag() argument
[all …]
Dxfs_super.c58 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument
63 mp->m_flags &= ~(XFS_MOUNT_DAX_ALWAYS | XFS_MOUNT_DAX_NEVER); in xfs_mount_set_dax_mode()
66 mp->m_flags |= XFS_MOUNT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
67 mp->m_flags &= ~XFS_MOUNT_DAX_NEVER; in xfs_mount_set_dax_mode()
70 mp->m_flags |= XFS_MOUNT_DAX_NEVER; in xfs_mount_set_dax_mode()
71 mp->m_flags &= ~XFS_MOUNT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
170 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local
174 if (mp->m_flags & xfs_infop->flag) in xfs_fs_show_options()
179 (mp->m_flags & XFS_MOUNT_SMALL_INUMS) ? 32 : 64); in xfs_fs_show_options()
181 if (mp->m_flags & XFS_MOUNT_ALLOCSIZE) in xfs_fs_show_options()
[all …]
Dxfs_fsops.c28 xfs_mount_t *mp, /* mount point for filesystem */ in xfs_growfs_data_private() argument
42 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private()
44 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private()
46 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private()
47 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private()
48 XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL); in xfs_growfs_data_private()
54 nb_mod = do_div(new, mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
58 nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
59 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private()
62 new = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private()
[all …]
Dxfs_qm.c33 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp);
34 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
49 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument
54 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk()
122 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge() local
123 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqpurge()
158 ASSERT(XFS_FORCED_SHUTDOWN(mp) || in xfs_qm_dqpurge()
173 XFS_STATS_DEC(mp, xs_qm_dquot_unused); in xfs_qm_dqpurge()
188 struct xfs_mount *mp, in xfs_qm_dqpurge_all() argument
192 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-context.c30 static void pvr2_context_set_notify(struct pvr2_context *mp, int fl) in pvr2_context_set_notify() argument
35 if (!mp->notify_flag) { in pvr2_context_set_notify()
37 mp->notify_prev = pvr2_context_notify_last; in pvr2_context_set_notify()
38 mp->notify_next = NULL; in pvr2_context_set_notify()
39 pvr2_context_notify_last = mp; in pvr2_context_set_notify()
40 if (mp->notify_prev) { in pvr2_context_set_notify()
41 mp->notify_prev->notify_next = mp; in pvr2_context_set_notify()
43 pvr2_context_notify_first = mp; in pvr2_context_set_notify()
45 mp->notify_flag = !0; in pvr2_context_set_notify()
48 if (mp->notify_flag) { in pvr2_context_set_notify()
[all …]
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/
Dpvrusb2-context.c30 static void pvr2_context_set_notify(struct pvr2_context *mp, int fl) in pvr2_context_set_notify() argument
35 if (!mp->notify_flag) { in pvr2_context_set_notify()
37 mp->notify_prev = pvr2_context_notify_last; in pvr2_context_set_notify()
38 mp->notify_next = NULL; in pvr2_context_set_notify()
39 pvr2_context_notify_last = mp; in pvr2_context_set_notify()
40 if (mp->notify_prev) { in pvr2_context_set_notify()
41 mp->notify_prev->notify_next = mp; in pvr2_context_set_notify()
43 pvr2_context_notify_first = mp; in pvr2_context_set_notify()
45 mp->notify_flag = !0; in pvr2_context_set_notify()
48 if (mp->notify_flag) { in pvr2_context_set_notify()
[all …]
/kernel/linux/linux-6.6/fs/jfs/
Djfs_metapage.c32 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument
33 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument
35 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument
37 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
38 wake_up(&mp->wait); in unlock_metapage()
41 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument
45 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
48 if (metapage_locked(mp)) { in __lock_metapage()
49 unlock_page(mp->page); in __lock_metapage()
51 lock_page(mp->page); in __lock_metapage()
[all …]
/kernel/linux/linux-5.10/fs/jfs/
Djfs_metapage.c31 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument
32 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument
34 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument
36 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
37 wake_up(&mp->wait); in unlock_metapage()
40 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument
44 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
47 if (metapage_locked(mp)) { in __lock_metapage()
48 unlock_page(mp->page); in __lock_metapage()
50 lock_page(mp->page); in __lock_metapage()
[all …]
/kernel/uniproton/src/fs/vfs/
Dvfs_mount.c28 static void OsMpDeleteFromList(struct TagMountPoint *mp) in OsMpDeleteFromList() argument
32 if (g_mountPoints == mp) { in OsMpDeleteFromList()
33 g_mountPoints = mp->mNext; in OsMpDeleteFromList()
38 if (prev->mNext != mp) { in OsMpDeleteFromList()
42 prev->mNext = mp->mNext; in OsMpDeleteFromList()
84 struct TagMountPoint *mp = g_mountPoints; in OsVfsFindMp() local
98 while ((mp != NULL) && (mp->mPath != NULL)) { in OsVfsFindMp()
99 matches = OsVfsFindMpByPath(mp->mPath, path); in OsVfsFindMp()
102 bestMp = mp; in OsVfsFindMp()
113 mp = mp->mNext; in OsVfsFindMp()
[all …]
/kernel/liteos_m/components/fs/vfs/
Dvfs_mount.c47 static void MpDeleteFromList(struct MountPoint *mp) in MpDeleteFromList() argument
51 /* delete mp from mount list */ in MpDeleteFromList()
52 if (g_mountPoints == mp) { in MpDeleteFromList()
53 g_mountPoints = mp->mNext; in MpDeleteFromList()
56 if (prev->mNext != mp) { in MpDeleteFromList()
60 prev->mNext = mp->mNext; in MpDeleteFromList()
69 struct MountPoint *mp = g_mountPoints; in VfsMpFind() local
76 while ((mp != NULL) && (mp->mPath != NULL)) { in VfsMpFind()
77 const char *mPath = mp->mPath; in VfsMpFind()
111 bestMp = mp; in VfsMpFind()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/apple/
Dmace.c92 static inline void mace_clean_rings(struct mace_data *mp);
113 struct mace_data *mp; in mace_probe() local
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()
172 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe()
173 in_8(&mp->mace->chipid_lo); in mace_probe()
176 mp = netdev_priv(dev); in mace_probe()
177 mp->maccc = ENXMT | ENRCV; in mace_probe()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/apple/
Dmace.c91 static inline void mace_clean_rings(struct mace_data *mp);
112 struct mace_data *mp; in mace_probe() local
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()
178 mp->maccc = ENXMT | ENRCV; in mace_probe()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/
Dmv643xx_eth.c419 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
431 writel(data, mp->shared->base + offset); in wrl()
434 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp() argument
436 writel(data, mp->base + offset); in wrlp()
453 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable() local
454 wrlp(mp, RXQ_COMMAND, 1 << rxq->index); in rxq_enable()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmv643xx_eth.c418 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument
420 return readl(mp->shared->base + offset); in rdl()
423 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp() argument
425 return readl(mp->base + offset); in rdlp()
428 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl() argument
430 writel(data, mp->shared->base + offset); in wrl()
433 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp() argument
435 writel(data, mp->base + offset); in wrlp()
452 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable() local
453 wrlp(mp, RXQ_COMMAND, 1 << rxq->index); in rxq_enable()
[all …]

12345678910>>...51