/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_trans_space.h | 14 #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 …]
|
D | xfs_trans_resv.c | 67 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 …]
|
D | xfs_ag.c | 43 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() 126 pag = xfs_perag_get(mp, index); in xfs_initialize_perag_data() 151 xfs_alert(mp, "AGF corruption. Please run xfs_repair."); in xfs_initialize_perag_data() [all …]
|
D | xfs_types.c | 23 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 …]
|
D | xfs_sb.c | 183 struct xfs_mount *mp, in xfs_validate_sb_read() argument 194 xfs_warn(mp, in xfs_validate_sb_read() 197 xfs_warn(mp, in xfs_validate_sb_read() 202 xfs_alert(mp, in xfs_validate_sb_read() 206 if (!xfs_is_readonly(mp)) { in xfs_validate_sb_read() 207 xfs_warn(mp, in xfs_validate_sb_read() 209 xfs_warn(mp, in xfs_validate_sb_read() 216 xfs_warn(mp, in xfs_validate_sb_read() 220 xfs_warn(mp, in xfs_validate_sb_read() 231 struct xfs_mount *mp, in xfs_validate_sb_write() argument [all …]
|
/Linux-v6.1/fs/xfs/ |
D | xfs_mount.c | 58 struct xfs_mount *mp) in xfs_uuid_mount() argument 60 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount() 64 uuid_copy(&mp->m_super->s_uuid, uuid); in xfs_uuid_mount() 66 if (xfs_has_nouuid(mp)) in xfs_uuid_mount() 70 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount() 97 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount() 103 struct xfs_mount *mp) in xfs_uuid_unmount() argument 105 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount() 108 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount() 149 struct xfs_mount *mp, in xfs_readsb() argument [all …]
|
D | xfs_super.c | 60 static inline void xfs_mount_list_add(struct xfs_mount *mp) in xfs_mount_list_add() argument 63 list_add(&mp->m_mount_list, &xfs_mount_list); in xfs_mount_list_add() 67 static inline void xfs_mount_list_del(struct xfs_mount *mp) in xfs_mount_list_del() argument 70 list_del(&mp->m_mount_list); in xfs_mount_list_del() 74 static inline void xfs_mount_list_add(struct xfs_mount *mp) {} in xfs_mount_list_add() argument 75 static inline void xfs_mount_list_del(struct xfs_mount *mp) {} in xfs_mount_list_del() argument 86 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument 91 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode() 94 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 95 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode() [all …]
|
D | xfs_fsops.c | 47 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 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() 109 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private() [all …]
|
D | xfs_qm_syscalls.c | 24 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 …]
|
D | xfs_qm.c | 36 STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp); 37 STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp); 52 struct xfs_mount *mp, in xfs_qm_dquot_walk() argument 57 struct xfs_quotainfo *qi = mp->m_quotainfo; in xfs_qm_dquot_walk() 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() 193 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 194 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 202 struct xfs_mount *mp) in xfs_qm_unmount() argument 204 if (mp->m_quotainfo) { in xfs_qm_unmount() [all …]
|
D | xfs_rtalloc.c | 31 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 …]
|
D | xfs_notify_failure.c | 35 struct xfs_mount *mp, in xfs_failure_pgoff() argument 39 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset); in xfs_failure_pgoff() 42 pos += XFS_FSB_TO_B(mp, in xfs_failure_pgoff() 49 struct xfs_mount *mp, in xfs_failure_pgcnt() argument 64 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT; in xfs_failure_pgcnt() 73 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn() local 85 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE, in xfs_dax_failure_fn() 96 xfs_failure_pgoff(mp, rec, notify), in xfs_dax_failure_fn() 97 xfs_failure_pgcnt(mp, rec, notify), in xfs_dax_failure_fn() 105 struct xfs_mount *mp, in xfs_dax_notify_ddev_failure() argument [all …]
|
D | xfs_quotaops.c | 22 struct xfs_mount *mp, in xfs_qm_fill_state() argument 33 if (xfs_iget(mp, NULL, ino, 0, 0, &ip)) in xfs_qm_fill_state() 59 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_quota_state() local 60 struct xfs_quotainfo *q = mp->m_quotainfo; in xfs_fs_get_quota_state() 63 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_quota_state() 66 if (XFS_IS_UQUOTA_ON(mp)) in xfs_fs_get_quota_state() 68 if (XFS_IS_UQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state() 70 if (XFS_IS_GQUOTA_ON(mp)) in xfs_fs_get_quota_state() 72 if (XFS_IS_GQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state() 74 if (XFS_IS_PQUOTA_ON(mp)) in xfs_fs_get_quota_state() [all …]
|
D | xfs_message.h | 10 void xfs_printk_level(const char *kern_level, const struct xfs_mount *mp, 13 #define xfs_printk_index_wrap(kern_level, mp, fmt, ...) \ argument 16 xfs_printk_level(kern_level, mp, fmt, ##__VA_ARGS__); \ 18 #define xfs_emerg(mp, fmt, ...) \ argument 19 xfs_printk_index_wrap(KERN_EMERG, mp, fmt, ##__VA_ARGS__) 20 #define xfs_alert(mp, fmt, ...) \ argument 21 xfs_printk_index_wrap(KERN_ALERT, mp, fmt, ##__VA_ARGS__) 22 #define xfs_crit(mp, fmt, ...) \ argument 23 xfs_printk_index_wrap(KERN_CRIT, mp, fmt, ##__VA_ARGS__) 24 #define xfs_err(mp, fmt, ...) \ argument [all …]
|
D | xfs_health.c | 25 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 …]
|
/Linux-v6.1/drivers/media/usb/pvrusb2/ |
D | pvrusb2-context.c | 30 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-v6.1/fs/jfs/ |
D | jfs_metapage.c | 32 #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 …]
|
D | jfs_metapage.h | 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() 87 set_bit(META_discard, &mp->flag); in discard_metapage() [all …]
|
/Linux-v6.1/drivers/net/ethernet/apple/ |
D | mace.c | 91 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 …]
|
D | macmace.c | 103 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-v6.1/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 418 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-v6.1/drivers/pci/controller/dwc/ |
D | pci-meson.c | 76 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-v6.1/drivers/scsi/sym53c8xx_2/ |
D | sym_malloc.c | 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 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-v6.1/drivers/isdn/capi/ |
D | capi.c | 145 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-v6.1/drivers/video/fbdev/omap2/omapfb/dss/ |
D | apply.c | 131 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 …]
|