Home
last modified time | relevance | path

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

12345678910>>...29

/linux-6.14.4/fs/xfs/libxfs/
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 …]
Dxfs_trans_resv.c70 struct xfs_mount *mp, in xfs_allocfree_block_count() argument
75 blocks = num_ops * 2 * (2 * mp->m_alloc_maxlevels - 1); in xfs_allocfree_block_count()
76 if (xfs_has_rmapbt(mp)) in xfs_allocfree_block_count()
77 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_block_count()
89 struct xfs_mount *mp, in xfs_refcountbt_block_count() argument
92 return num_ops * (2 * mp->m_refc_maxlevels - 1); in xfs_refcountbt_block_count()
97 struct xfs_mount *mp, in xfs_rtrefcountbt_block_count() argument
100 return num_ops * (2 * mp->m_rtrefc_maxlevels - 1); in xfs_rtrefcountbt_block_count()
134 struct xfs_mount *mp, in xfs_calc_inode_res() argument
140 mp->m_sb.sb_inodesize + in xfs_calc_inode_res()
[all …]
Dxfs_rtbitmap.h13 struct xfs_mount *mp; member
28 struct xfs_mount *mp = rtg_mount(rtg); in xfs_rtx_to_rtb() local
31 if (mp->m_rtxblklog >= 0) in xfs_rtx_to_rtb()
32 return start + (rtx << mp->m_rtxblklog); in xfs_rtx_to_rtb()
33 return start + (rtx * mp->m_sb.sb_rextsize); in xfs_rtx_to_rtb()
39 struct xfs_mount *mp, in xfs_rgbno_to_rtx() argument
42 if (likely(mp->m_rtxblklog >= 0)) in xfs_rgbno_to_rtx()
43 return rgbno >> mp->m_rtxblklog; in xfs_rgbno_to_rtx()
44 return rgbno / mp->m_sb.sb_rextsize; in xfs_rgbno_to_rtx()
49 struct xfs_mount *mp, in xfs_rtbxlen_to_blen() argument
[all …]
Dxfs_types.c25 struct xfs_mount *mp, in xfs_verify_agno_agbno() argument
31 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agno_agbno()
34 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agno_agbno()
45 struct xfs_mount *mp, in xfs_verify_fsbno() argument
48 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno()
50 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
52 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
61 struct xfs_mount *mp, in xfs_verify_fsbext() argument
68 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_verify_fsbext()
71 if (!xfs_verify_fsbno(mp, fsbno + len - 1)) in xfs_verify_fsbext()
[all …]
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()
125 struct xfs_mount *mp, in xfs_free_perag_range() argument
[all …]
Dxfs_trans_space.c21 struct xfs_mount *mp, in xfs_parent_calc_space_res() argument
28 return XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK) + in xfs_parent_calc_space_res()
29 XFS_NEXTENTADD_SPACE_RES(mp, namelen, XFS_ATTR_FORK); in xfs_parent_calc_space_res()
34 struct xfs_mount *mp, in xfs_create_space_res() argument
39 ret = XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp, namelen); in xfs_create_space_res()
40 if (xfs_has_parent(mp)) in xfs_create_space_res()
41 ret += xfs_parent_calc_space_res(mp, namelen); in xfs_create_space_res()
48 struct xfs_mount *mp, in xfs_mkdir_space_res() argument
51 return xfs_create_space_res(mp, namelen); in xfs_mkdir_space_res()
56 struct xfs_mount *mp, in xfs_link_space_res() argument
[all …]
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()
301 struct xfs_mount *mp, in xfs_validate_sb_write() argument
[all …]
/linux-6.14.4/fs/xfs/
Dxfs_mount.c64 struct xfs_mount *mp) in xfs_uuid_mount() argument
66 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
70 super_set_uuid(mp->m_super, uuid->b, sizeof(*uuid)); in xfs_uuid_mount()
72 if (xfs_has_nouuid(mp)) in xfs_uuid_mount()
76 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", uuid); in xfs_uuid_mount()
109 struct xfs_mount *mp) in xfs_uuid_unmount() argument
111 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
114 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount()
159 struct xfs_mount *mp, in xfs_readsb() argument
[all …]
Dxfs_super.c75 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument
80 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode()
83 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
84 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
87 mp->m_features |= XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
88 mp->m_features &= ~XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
187 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local
191 if (mp->m_features & xfs_infop->flag) in xfs_fs_show_options()
195 seq_printf(m, ",inode%d", xfs_has_small_inums(mp) ? 32 : 64); in xfs_fs_show_options()
197 if (xfs_has_allocsize(mp)) in xfs_fs_show_options()
[all …]
Dxfs_fsops.c50 struct xfs_mount *mp = tp->t_mountp; in xfs_resizefs_init_new_ags() local
51 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags()
63 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags()
65 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags()
67 error = xfs_ag_init_headers(mp, id); in xfs_resizefs_init_new_ags()
90 struct xfs_mount *mp, /* mount point for filesystem */ in xfs_growfs_data_private() argument
93 xfs_agnumber_t oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
106 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb); in xfs_growfs_data_private()
110 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private()
111 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private()
[all …]
Dxfs_qm_syscalls.c24 xfs_mount_t *mp, in xfs_qm_scall_quotaoff() argument
32 if ((mp->m_qflags & flags) == 0) in xfs_qm_scall_quotaoff()
40 xfs_info(mp, "disabling of quota accounting not supported."); in xfs_qm_scall_quotaoff()
42 mutex_lock(&mp->m_quotainfo->qi_quotaofflock); in xfs_qm_scall_quotaoff()
43 mp->m_qflags &= ~(flags & XFS_ALL_QUOTA_ENFD); in xfs_qm_scall_quotaoff()
44 spin_lock(&mp->m_sb_lock); in xfs_qm_scall_quotaoff()
45 mp->m_sb.sb_qflags = mp->m_qflags; in xfs_qm_scall_quotaoff()
46 spin_unlock(&mp->m_sb_lock); in xfs_qm_scall_quotaoff()
47 mutex_unlock(&mp->m_quotainfo->qi_quotaofflock); in xfs_qm_scall_quotaoff()
50 return xfs_sync_sb(mp, false); in xfs_qm_scall_quotaoff()
[all …]
Dxfs_qm.c40 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp);
41 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
55 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument
60 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk()
205 struct xfs_mount *mp) in xfs_qm_dqpurge_all() argument
207 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
208 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
209 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
217 struct xfs_mount *mp) in xfs_qm_unmount() argument
219 if (mp->m_quotainfo) { in xfs_qm_unmount()
[all …]
Dxfs_rtalloc.c107 for (log = oargs->mp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary()
108 for (bbno = oargs->mp->m_sb.sb_rbmblocks - 1; in xfs_rtcopy_summary()
140 struct xfs_mount *mp = args->mp; in xfs_rtallocate_range() local
170 xfs_rtx_to_rbmblock(mp, preblock), -1); in xfs_rtallocate_range()
181 xfs_rtx_to_rbmblock(mp, preblock), 1); in xfs_rtallocate_range()
193 xfs_rtx_to_rbmblock(mp, end + 1), 1); in xfs_rtallocate_range()
249 struct xfs_mount *mp = args->mp; in xfs_rtallocate_extent_block() local
263 end = min(args->rtg->rtg_extents, xfs_rbmblock_to_rtx(mp, bbno + 1)) - in xfs_rtallocate_extent_block()
265 for (i = xfs_rbmblock_to_rtx(mp, bbno); i <= end; i++) { in xfs_rtallocate_extent_block()
410 struct xfs_mount *mp = args->mp; in xfs_rtallocate_extent_near() local
[all …]
Dxfs_error.h11 extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
15 struct xfs_mount *mp, const void *buf, size_t bufsize,
28 #define XFS_ERROR_REPORT(e, lvl, mp) \ argument
29 xfs_error_report(e, lvl, mp, __FILE__, __LINE__, __return_address)
30 #define XFS_CORRUPTION_ERROR(e, lvl, mp, buf, bufsize) \ argument
31 xfs_corruption_error(e, lvl, mp, buf, bufsize, \
42 extern int xfs_errortag_init(struct xfs_mount *mp);
43 extern void xfs_errortag_del(struct xfs_mount *mp);
44 extern bool xfs_errortag_test(struct xfs_mount *mp, const char *expression,
46 #define XFS_TEST_ERROR(expr, mp, tag) \ argument
[all …]
Dxfs_notify_failure.c39 struct xfs_mount *mp, in xfs_failure_pgoff() argument
43 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset); in xfs_failure_pgoff()
46 pos += XFS_FSB_TO_B(mp, in xfs_failure_pgoff()
53 struct xfs_mount *mp, in xfs_failure_pgcnt() argument
68 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT; in xfs_failure_pgcnt()
77 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn() local
95 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE, in xfs_dax_failure_fn()
106 pgoff = xfs_failure_pgoff(mp, rec, notify); in xfs_dax_failure_fn()
107 pgcnt = xfs_failure_pgcnt(mp, rec, notify); in xfs_dax_failure_fn()
125 struct xfs_mount *mp) in xfs_dax_notify_failure_freeze() argument
[all …]
Dxfs_quotaops.c22 struct xfs_mount *mp, in xfs_qm_fill_state() argument
29 error = xfs_qm_qino_load(mp, type, &ip); in xfs_qm_fill_state()
35 defq = xfs_get_defquota(mp->m_quotainfo, type); in xfs_qm_fill_state()
61 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_quota_state() local
62 struct xfs_quotainfo *q = mp->m_quotainfo; in xfs_fs_get_quota_state()
66 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_quota_state()
69 if (XFS_IS_UQUOTA_ON(mp)) in xfs_fs_get_quota_state()
71 if (XFS_IS_UQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
73 if (XFS_IS_GQUOTA_ON(mp)) in xfs_fs_get_quota_state()
75 if (XFS_IS_GQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
[all …]
/linux-6.14.4/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 …]
/linux-6.14.4/fs/jfs/
Djfs_metapage.c33 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument
34 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument
36 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument
38 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
39 wake_up(&mp->wait); in unlock_metapage()
42 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument
46 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
49 if (metapage_locked(mp)) { in __lock_metapage()
50 folio_unlock(mp->folio); in __lock_metapage()
52 folio_lock(mp->folio); in __lock_metapage()
[all …]
/linux-6.14.4/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 …]
Dmacmace.c103 struct mace_data *mp = netdev_priv(dev); in mace_load_rxdma_base() local
106 psc_write_long(PSC_ENETRD_ADDR + set, (u32) mp->rx_ring_phys); in mace_load_rxdma_base()
109 mp->rx_tail = 0; in mace_load_rxdma_base()
118 struct mace_data *mp = netdev_priv(dev); in mace_rxdma_reset() local
119 volatile struct mace *mace = mp->mace; in mace_rxdma_reset()
133 mp->rx_slot = 0; in mace_rxdma_reset()
145 struct mace_data *mp = netdev_priv(dev); in mace_txdma_reset() local
146 volatile struct mace *mace = mp->mace; in mace_txdma_reset()
154 mp->tx_slot = mp->tx_sloti = 0; in mace_txdma_reset()
155 mp->tx_count = N_TX_RING; in mace_txdma_reset()
[all …]
/linux-6.14.4/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 …]
/linux-6.14.4/drivers/pci/controller/dwc/
Dpci-meson.c75 static struct reset_control *meson_pcie_get_reset(struct meson_pcie *mp, in meson_pcie_get_reset() argument
79 struct device *dev = mp->pci.dev; in meson_pcie_get_reset()
90 static int meson_pcie_get_resets(struct meson_pcie *mp) in meson_pcie_get_resets() argument
92 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets()
94 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets()
99 mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET); in meson_pcie_get_resets()
108 struct meson_pcie *mp) in meson_pcie_get_mems() argument
110 struct dw_pcie *pci = &mp->pci; in meson_pcie_get_mems()
116 mp->cfg_base = devm_platform_ioremap_resource_byname(pdev, "cfg"); in meson_pcie_get_mems()
117 if (IS_ERR(mp->cfg_base)) in meson_pcie_get_mems()
[all …]
/linux-6.14.4/drivers/scsi/sym53c8xx_2/
Dsym_malloc.c47 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
171 ___sym_mfree(mp, ptr, size); in __sym_mfree()
180 static void *___mp0_get_mem_cluster(m_pool_p mp) in ___mp0_get_mem_cluster() argument
[all …]
/linux-6.14.4/drivers/isdn/capi/
Dcapi.c147 static int capiminor_add_ack(struct capiminor *mp, u16 datahandle) in capiminor_add_ack() argument
158 spin_lock_bh(&mp->ackqlock); in capiminor_add_ack()
159 list_add_tail(&n->list, &mp->ackqueue); in capiminor_add_ack()
160 mp->nack++; in capiminor_add_ack()
161 spin_unlock_bh(&mp->ackqlock); in capiminor_add_ack()
165 static int capiminor_del_ack(struct capiminor *mp, u16 datahandle) in capiminor_del_ack() argument
169 spin_lock_bh(&mp->ackqlock); in capiminor_del_ack()
170 list_for_each_entry_safe(p, tmp, &mp->ackqueue, list) { in capiminor_del_ack()
173 mp->nack--; in capiminor_del_ack()
174 spin_unlock_bh(&mp->ackqlock); in capiminor_del_ack()
[all …]
/linux-6.14.4/drivers/video/fbdev/omap2/omapfb/dss/
Dapply.c131 struct mgr_priv_data *mp; in apply_init_priv() local
169 mp = &dss_data.mgr_priv_data_array[OMAP_DSS_CHANNEL_DIGIT]; in apply_init_priv()
171 mp->lcd_config.video_port_width = 24; in apply_init_priv()
172 mp->lcd_config.clock_info.lck_div = 1; in apply_init_priv()
173 mp->lcd_config.clock_info.pck_div = 1; in apply_init_priv()
183 struct mgr_priv_data *mp = get_mgr_priv(ovl->manager); in ovl_manual_update() local
185 return mp->lcd_config.stallmode; in ovl_manual_update()
190 struct mgr_priv_data *mp = get_mgr_priv(mgr); in mgr_manual_update() local
192 return mp->lcd_config.stallmode; in mgr_manual_update()
203 struct mgr_priv_data *mp; in dss_check_settings_low() local
[all …]

12345678910>>...29