Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/Linux-v5.15/fs/xfs/
Dxfs_mount.c57 struct xfs_mount *mp) in xfs_uuid_mount() argument
59 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
63 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount()
65 if (xfs_has_nouuid(mp)) in xfs_uuid_mount()
69 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
96 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
102 struct xfs_mount *mp) in xfs_uuid_unmount() argument
104 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
107 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount()
148 struct xfs_mount *mp, in xfs_readsb() argument
[all …]
Dxfs_super.c56 static inline void xfs_mount_list_add(struct xfs_mount *mp) in xfs_mount_list_add() argument
59 list_add(&mp->m_mount_list, &xfs_mount_list); in xfs_mount_list_add()
63 static inline void xfs_mount_list_del(struct xfs_mount *mp) in xfs_mount_list_del() argument
66 list_del(&mp->m_mount_list); in xfs_mount_list_del()
70 static inline void xfs_mount_list_add(struct xfs_mount *mp) {} in xfs_mount_list_add() argument
71 static inline void xfs_mount_list_del(struct xfs_mount *mp) {} in xfs_mount_list_del() argument
82 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument
87 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode()
90 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode()
91 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode()
[all …]
Dxfs_fsops.c45 struct xfs_mount *mp = tp->t_mountp; in xfs_resizefs_init_new_ags() local
46 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags()
58 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags()
60 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags()
62 error = xfs_ag_init_headers(mp, id); in xfs_resizefs_init_new_ags()
75 error = xfs_ag_extend_space(mp, tp, id, delta); in xfs_resizefs_init_new_ags()
85 struct xfs_mount *mp, /* mount point for filesystem */ in xfs_growfs_data_private() argument
100 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb); in xfs_growfs_data_private()
104 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private()
105 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private()
[all …]
Dxfs_rtalloc.c31 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtget_summary() argument
39 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary()
48 xfs_mount_t *mp, /* file system mount structure */ in xfs_rtany_summary() argument
62 if (mp->m_rsum_cache && low < mp->m_rsum_cache[bbno]) in xfs_rtany_summary()
63 low = mp->m_rsum_cache[bbno]; in xfs_rtany_summary()
72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
90 if (mp->m_rsum_cache && log > mp->m_rsum_cache[bbno]) in xfs_rtany_summary()
91 mp->m_rsum_cache[bbno] = log; in xfs_rtany_summary()
143 xfs_mount_t *mp, /* file system mount point */ in xfs_rtallocate_range() argument
161 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtallocate_range()
[all …]
Dxfs_qm.c35 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp);
36 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
51 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument
56 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk()
124 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge() local
125 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dqpurge()
160 ASSERT(xfs_is_shutdown(mp) || in xfs_qm_dqpurge()
175 XFS_STATS_DEC(mp, xs_qm_dquot_unused); in xfs_qm_dqpurge()
190 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 …]
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_health.c25 struct xfs_mount *mp) in xfs_health_unmount() argument
33 if (xfs_is_shutdown(mp)) in xfs_health_unmount()
37 for_each_perag(mp, agno, pag) { in xfs_health_unmount()
40 trace_xfs_ag_unfixed_corruption(mp, agno, sick); in xfs_health_unmount()
46 xfs_rt_measure_sickness(mp, &sick, &checked); in xfs_health_unmount()
48 trace_xfs_rt_unfixed_corruption(mp, sick); in xfs_health_unmount()
56 xfs_fs_measure_sickness(mp, &sick, &checked); in xfs_health_unmount()
58 trace_xfs_fs_unfixed_corruption(mp, sick); in xfs_health_unmount()
63 xfs_warn(mp, in xfs_health_unmount()
86 xfs_fs_mark_healthy(mp, XFS_SICK_FS_COUNTERS); in xfs_health_unmount()
[all …]
Dxfs_icache.c46 static int xfs_icwalk(struct xfs_mount *mp,
71 struct xfs_mount *mp, in xfs_inode_alloc() argument
82 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc()
91 XFS_STATS_INC(mp, vn_active); in xfs_inode_alloc()
97 ip->i_mount = mp; in xfs_inode_alloc()
104 ip->i_diflags2 = mp->m_ino_geo.new_diflags2; in xfs_inode_alloc()
187 struct xfs_mount *mp) in xfs_reclaim_work_queue() argument
191 if (radix_tree_tagged(&mp->m_perag_tree, XFS_ICI_RECLAIM_TAG)) { in xfs_reclaim_work_queue()
192 queue_delayed_work(mp->m_reclaim_workqueue, &mp->m_reclaim_work, in xfs_reclaim_work_queue()
206 struct xfs_mount *mp = pag->pag_mount; in xfs_blockgc_queue() local
[all …]
/Linux-v5.15/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_has_rmapbt(mp)) in xfs_allocfree_log_count()
75 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_log_count()
76 if (xfs_has_reflink(mp)) 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_types.c19 struct xfs_mount *mp, in xfs_ag_block_count() argument
22 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count()
24 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count()
25 return mp->m_sb.sb_agblocks; in xfs_ag_block_count()
26 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count()
35 struct xfs_mount *mp, in xfs_verify_agbno() argument
41 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agbno()
44 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agbno()
55 struct xfs_mount *mp, in xfs_verify_fsbno() argument
58 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno()
[all …]
Dxfs_ag.c43 struct xfs_mount *mp, in xfs_perag_get() argument
50 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
56 trace_xfs_perag_get(mp, agno, ref, _RET_IP_); in xfs_perag_get()
65 struct xfs_mount *mp, in xfs_perag_get_tag() argument
74 found = radix_tree_gang_lookup_tag(&mp->m_perag_tree, in xfs_perag_get_tag()
82 trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_); in xfs_perag_get_tag()
107 struct xfs_mount *mp, in xfs_initialize_perag_data() argument
112 struct xfs_sb *sbp = &mp->m_sb; in xfs_initialize_perag_data()
127 error = xfs_alloc_pagf_init(mp, NULL, index, 0); in xfs_initialize_perag_data()
131 error = xfs_ialloc_pagi_init(mp, NULL, index); in xfs_initialize_perag_data()
[all …]
Dxfs_format.h426 #define XFS_SB_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_SB_DADDR) argument
428 #define XFS_HDR_BLOCK(mp,d) ((xfs_agblock_t)XFS_BB_TO_FSBT(mp,d)) argument
429 #define XFS_DADDR_TO_FSB(mp,d) XFS_AGB_TO_FSB(mp, \ argument
430 xfs_daddr_to_agno(mp,d), xfs_daddr_to_agbno(mp,d))
431 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
432 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
437 #define XFS_FSS_TO_BB(mp,sec) ((sec) << (mp)->m_sectbb_log) argument
442 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument
443 #define XFS_BB_TO_FSB(mp,bb) \ argument
444 (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
[all …]
Dxfs_sb.c133 struct xfs_mount *mp, in xfs_validate_sb_read() argument
144 xfs_warn(mp, in xfs_validate_sb_read()
147 xfs_warn(mp, in xfs_validate_sb_read()
152 xfs_alert(mp, in xfs_validate_sb_read()
156 if (!xfs_is_readonly(mp)) { in xfs_validate_sb_read()
157 xfs_warn(mp, in xfs_validate_sb_read()
159 xfs_warn(mp, in xfs_validate_sb_read()
166 xfs_warn(mp, in xfs_validate_sb_read()
170 xfs_warn(mp, in xfs_validate_sb_read()
181 struct xfs_mount *mp, in xfs_validate_sb_write() argument
[all …]
Dxfs_ialloc.c76 struct xfs_mount *mp, in xfs_inobt_btrec_to_irec() argument
81 if (xfs_has_sparseinodes(mp)) { in xfs_inobt_btrec_to_irec()
107 struct xfs_mount *mp = cur->bc_mp; in xfs_inobt_get_rec() local
117 xfs_inobt_btrec_to_irec(mp, rec, irec); in xfs_inobt_get_rec()
119 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec()
138 xfs_warn(mp, in xfs_inobt_get_rec()
141 xfs_warn(mp, in xfs_inobt_get_rec()
172 struct xfs_mount *mp, in xfs_inobt_insert() argument
185 cur = xfs_inobt_init_cursor(mp, tp, agbp, pag, btnum); in xfs_inobt_insert()
261 struct xfs_mount *mp, in xfs_ialloc_inode_init() argument
[all …]
/Linux-v5.15/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-v5.15/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 …]
Djfs_metapage.h45 #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()
87 set_bit(META_discard, &mp->flag); in discard_metapage()
[all …]
/Linux-v5.15/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 …]
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-v5.15/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 …]
/Linux-v5.15/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-v5.15/drivers/pci/controller/dwc/
Dpci-meson.c76 static struct reset_control *meson_pcie_get_reset(struct meson_pcie *mp, in meson_pcie_get_reset() argument
80 struct device *dev = mp->pci.dev; in meson_pcie_get_reset()
91 static int meson_pcie_get_resets(struct meson_pcie *mp) in meson_pcie_get_resets() argument
93 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets()
95 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets()
100 mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET); in meson_pcie_get_resets()
109 struct meson_pcie *mp) in meson_pcie_get_mems() argument
111 struct dw_pcie *pci = &mp->pci; in meson_pcie_get_mems()
117 mp->cfg_base = devm_platform_ioremap_resource_byname(pdev, "cfg"); in meson_pcie_get_mems()
118 if (IS_ERR(mp->cfg_base)) in meson_pcie_get_mems()
[all …]
/Linux-v5.15/drivers/isdn/capi/
Dcapi.c145 static int capiminor_add_ack(struct capiminor *mp, u16 datahandle) in capiminor_add_ack() argument
156 spin_lock_bh(&mp->ackqlock); in capiminor_add_ack()
157 list_add_tail(&n->list, &mp->ackqueue); in capiminor_add_ack()
158 mp->nack++; in capiminor_add_ack()
159 spin_unlock_bh(&mp->ackqlock); in capiminor_add_ack()
163 static int capiminor_del_ack(struct capiminor *mp, u16 datahandle) in capiminor_del_ack() argument
167 spin_lock_bh(&mp->ackqlock); in capiminor_del_ack()
168 list_for_each_entry_safe(p, tmp, &mp->ackqueue, list) { in capiminor_del_ack()
171 mp->nack--; in capiminor_del_ack()
172 spin_unlock_bh(&mp->ackqlock); in capiminor_del_ack()
[all …]
/Linux-v5.15/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>>...14