Home
last modified time | relevance | path

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

12345678910>>...29

/linux-6.12.1/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_RMAPS_PER_BLOCK(mp) \ argument
19 (((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0]))
22 #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels) argument
32 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
33 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
34 XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \
35 XFS_RMAPADD_SPACE_RES(mp))
37 #define XFS_MAX_CONTIG_EXTENTS_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()
126 struct xfs_mount *mp, in xfs_calc_inode_res() argument
132 mp->m_sb.sb_inodesize + in xfs_calc_inode_res()
133 2 * xfs_bmbt_block_len(mp)); in xfs_calc_inode_res()
148 struct xfs_mount *mp) in xfs_calc_inobt_res() argument
[all …]
Dxfs_rtbitmap.h10 struct xfs_mount *mp; member
22 struct xfs_mount *mp, in xfs_rtx_to_rtb() argument
25 if (mp->m_rtxblklog >= 0) in xfs_rtx_to_rtb()
26 return rtx << mp->m_rtxblklog; in xfs_rtx_to_rtb()
28 return rtx * mp->m_sb.sb_rextsize; in xfs_rtx_to_rtb()
33 struct xfs_mount *mp, in xfs_rtxlen_to_extlen() argument
36 if (mp->m_rtxblklog >= 0) in xfs_rtxlen_to_extlen()
37 return rtxlen << mp->m_rtxblklog; in xfs_rtxlen_to_extlen()
39 return rtxlen * mp->m_sb.sb_rextsize; in xfs_rtxlen_to_extlen()
45 struct xfs_mount *mp, in xfs_extlen_to_rtxmod() argument
[all …]
Dxfs_ag.c43 struct xfs_mount *mp, in xfs_perag_get() argument
49 pag = xa_load(&mp->m_perags, agno); in xfs_perag_get()
89 struct xfs_mount *mp, in xfs_perag_grab() argument
95 pag = xa_load(&mp->m_perags, agno); in xfs_perag_grab()
124 struct xfs_mount *mp, in xfs_initialize_perag_data() argument
129 struct xfs_sb *sbp = &mp->m_sb; in xfs_initialize_perag_data()
143 pag = xfs_perag_get(mp, index); in xfs_initialize_perag_data()
168 xfs_alert(mp, "AGF corruption. Please run xfs_repair."); in xfs_initialize_perag_data()
169 xfs_fs_mark_sick(mp, XFS_SICK_FS_COUNTERS); in xfs_initialize_perag_data()
175 spin_lock(&mp->m_sb_lock); 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 …]
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.c190 struct xfs_mount *mp, in xfs_validate_sb_read() argument
201 xfs_warn(mp, in xfs_validate_sb_read()
204 xfs_warn(mp, in xfs_validate_sb_read()
209 xfs_alert(mp, in xfs_validate_sb_read()
213 if (!xfs_is_readonly(mp)) { in xfs_validate_sb_read()
214 xfs_warn(mp, in xfs_validate_sb_read()
216 xfs_warn(mp, in xfs_validate_sb_read()
223 xfs_warn(mp, in xfs_validate_sb_read()
227 xfs_warn(mp, in xfs_validate_sb_read()
270 struct xfs_mount *mp, in xfs_validate_sb_write() argument
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_mount.c60 struct xfs_mount *mp) in xfs_uuid_mount() argument
62 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
66 super_set_uuid(mp->m_super, uuid->b, sizeof(*uuid)); in xfs_uuid_mount()
68 if (xfs_has_nouuid(mp)) in xfs_uuid_mount()
72 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
99 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
105 struct xfs_mount *mp) in xfs_uuid_unmount() argument
107 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
110 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount()
155 struct xfs_mount *mp, in xfs_readsb() argument
[all …]
Dxfs_super.c71 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument
76 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode()
79 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
80 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
83 mp->m_features |= XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
84 mp->m_features &= ~XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
183 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local
187 if (mp->m_features & xfs_infop->flag) in xfs_fs_show_options()
191 seq_printf(m, ",inode%d", xfs_has_small_inums(mp) ? 32 : 64); in xfs_fs_show_options()
193 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 …]
Dxfs_qm.c37 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp);
38 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
53 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument
58 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk()
191 struct xfs_mount *mp) in xfs_qm_dqpurge_all() argument
193 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
194 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
195 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all()
203 struct xfs_mount *mp) in xfs_qm_unmount() argument
205 if (mp->m_quotainfo) { in xfs_qm_unmount()
[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_rtalloc.c41 struct xfs_mount *mp = args->mp; in xfs_rtany_summary() local
47 if (mp->m_rsum_cache) { in xfs_rtany_summary()
48 high = min(high, mp->m_rsum_cache[bbno] - 1); in xfs_rtany_summary()
80 if (mp->m_rsum_cache && log + 1 < mp->m_rsum_cache[bbno]) in xfs_rtany_summary()
81 mp->m_rsum_cache[bbno] = log + 1; in xfs_rtany_summary()
100 for (log = oargs->mp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary()
101 for (bbno = oargs->mp->m_sb.sb_rbmblocks - 1; in xfs_rtcopy_summary()
133 struct xfs_mount *mp = args->mp; in xfs_rtallocate_range() local
152 error = xfs_rtfind_forw(args, end, mp->m_sb.sb_rextents - 1, in xfs_rtallocate_range()
163 xfs_rtx_to_rbmblock(mp, preblock), -1); in xfs_rtallocate_range()
[all …]
Dxfs_notify_failure.c36 struct xfs_mount *mp, in xfs_failure_pgoff() argument
40 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset); in xfs_failure_pgoff()
43 pos += XFS_FSB_TO_B(mp, in xfs_failure_pgoff()
50 struct xfs_mount *mp, in xfs_failure_pgcnt() argument
65 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT; in xfs_failure_pgcnt()
74 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn() local
92 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE, in xfs_dax_failure_fn()
103 pgoff = xfs_failure_pgoff(mp, rec, notify); in xfs_dax_failure_fn()
104 pgcnt = xfs_failure_pgcnt(mp, rec, notify); in xfs_dax_failure_fn()
122 struct xfs_mount *mp) in xfs_dax_notify_failure_freeze() argument
[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 …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/fs/xfs/scrub/
Drtsummary.c44 struct xfs_mount *mp = sc->mp; in xchk_setup_rtsummary() local
49 rts = kvzalloc(struct_size(rts, words, mp->m_blockwsize), in xchk_setup_rtsummary()
66 error = xfile_create(descr, XFS_FSB_TO_B(mp, mp->m_rsumblocks), in xchk_setup_rtsummary()
76 error = xchk_install_live_inode(sc, mp->m_rsumip); in xchk_setup_rtsummary()
90 xfs_ilock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_setup_rtsummary()
98 if (mp->m_sb.sb_rblocks) { in xchk_setup_rtsummary()
101 rts->rextents = xfs_rtb_to_rtx(mp, mp->m_sb.sb_rblocks); in xchk_setup_rtsummary()
104 rts->rbmblocks = xfs_rtbitmap_blockcount(mp, rts->rextents); in xchk_setup_rtsummary()
105 rts->rsumblocks = xfs_rtsummary_blockcount(mp, rts->rsumlevels, in xchk_setup_rtsummary()
148 struct xfs_mount *mp, in xchk_rtsum_inc() argument
[all …]
/linux-6.12.1/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