| /linux/fs/xfs/libxfs/ |
| H A D | xfs_trans_space.h | 14 #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 …]
|
| H A D | xfs_rtbitmap.h | 13 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 …]
|
| H A D | xfs_metafile.c | 89 struct xfs_mount *mp, in xfs_metafile_resv_can_cover() argument 98 if (mp->m_metafile_resv_avail >= rhs) in xfs_metafile_resv_can_cover() 105 return xfs_compare_freecounter(mp, XC_FREE_BLOCKS, in xfs_metafile_resv_can_cover() 106 rhs - mp->m_metafile_resv_avail, 2048) >= 0; in xfs_metafile_resv_can_cover() 116 struct xfs_mount *mp) in xfs_metafile_resv_critical() argument 118 ASSERT(xfs_has_metadir(mp)); in xfs_metafile_resv_critical() 120 trace_xfs_metafile_resv_critical(mp, 0); in xfs_metafile_resv_critical() 122 if (!xfs_metafile_resv_can_cover(mp, mp->m_rtbtree_maxlevels)) in xfs_metafile_resv_critical() 125 if (!xfs_metafile_resv_can_cover(mp, in xfs_metafile_resv_critical() 126 div_u64(mp->m_metafile_resv_target, 10))) in xfs_metafile_resv_critical() [all …]
|
| H A D | xfs_sb.c | 195 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() 325 struct xfs_mount *mp, in xfs_validate_sb_write() argument [all …]
|
| H A D | xfs_rtgroup.h | 115 struct xfs_mount *mp, in xfs_rtgroup_get() argument 118 return to_rtg(xfs_group_get(mp, rgno, XG_TYPE_RTG)); in xfs_rtgroup_get() 138 struct xfs_mount *mp, in xfs_rtgroup_grab() argument 141 return to_rtg(xfs_group_grab(mp, rgno, XG_TYPE_RTG)); in xfs_rtgroup_grab() 153 struct xfs_mount *mp, in xfs_rtgroup_next_range() argument 158 return to_rtg(xfs_group_next_range(mp, rtg ? rtg_group(rtg) : NULL, in xfs_rtgroup_next_range() 164 struct xfs_mount *mp, in xfs_rtgroup_next() argument 167 return xfs_rtgroup_next_range(mp, rtg, 0, mp->m_sb.sb_rgcount - 1); in xfs_rtgroup_next() 206 struct xfs_mount *mp, in xfs_rtb_to_rgno() argument 209 return xfs_fsb_to_gno(mp, rtbno, XG_TYPE_RTG); in xfs_rtb_to_rgno() [all …]
|
| H A D | xfs_dquot_buf.c | 41 struct xfs_mount *mp, in xfs_dquot_verify() argument 76 !xfs_has_bigtime(mp)) in xfs_dquot_verify() 108 struct xfs_mount *mp, in xfs_dqblk_verify() argument 112 if (xfs_has_crc(mp) && in xfs_dqblk_verify() 113 !uuid_equal(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dqblk_verify() 116 return xfs_dquot_verify(mp, &dqb->dd_diskdq, id); in xfs_dqblk_verify() 124 struct xfs_mount *mp, in xfs_dqblk_repair() argument 140 if (xfs_has_crc(mp)) { in xfs_dqblk_repair() 141 uuid_copy(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid); in xfs_dqblk_repair() 149 struct xfs_mount *mp, in xfs_dquot_buf_verify_crc() argument [all …]
|
| /linux/drivers/media/usb/pvrusb2/ |
| H A 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/fs/xfs/ |
| H A D | xfs_super.c | 80 struct xfs_mount *mp, in xfs_mount_set_dax_mode() argument 85 mp->m_features &= ~(XFS_FEAT_DAX_ALWAYS | XFS_FEAT_DAX_NEVER); in xfs_mount_set_dax_mode() 88 mp->m_features |= XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 89 mp->m_features &= ~XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode() 92 mp->m_features |= XFS_FEAT_DAX_NEVER; in xfs_mount_set_dax_mode() 93 mp->m_features &= ~XFS_FEAT_DAX_ALWAYS; in xfs_mount_set_dax_mode() 207 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options() local 211 if (mp->m_features & xfs_infop->flag) in xfs_fs_show_options() 215 seq_printf(m, ",inode%d", xfs_has_small_inums(mp) ? 32 : 64); in xfs_fs_show_options() 217 if (xfs_has_allocsize(mp)) in xfs_fs_show_options() [all …]
|
| H A D | xfs_qm.c | 40 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() 204 struct xfs_mount *mp) in xfs_qm_dqpurge_all() argument 206 xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 207 xfs_qm_dquot_walk(mp, XFS_DQTYPE_GROUP, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 208 xfs_qm_dquot_walk(mp, XFS_DQTYPE_PROJ, xfs_qm_dqpurge, NULL); in xfs_qm_dqpurge_all() 216 struct xfs_mount *mp) in xfs_qm_unmount() argument 218 if (mp->m_quotainfo) { in xfs_qm_unmount() [all …]
|
| H A D | xfs_rtalloc.c | 108 for (log = oargs->mp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary() 109 for (bbno = oargs->mp->m_sb.sb_rbmblocks - 1; in xfs_rtcopy_summary() 115 if (XFS_IS_CORRUPT(oargs->mp, sum < 0)) { in xfs_rtcopy_summary() 144 struct xfs_mount *mp = args->mp; in xfs_rtallocate_range() local 174 xfs_rtx_to_rbmblock(mp, preblock), -1); in xfs_rtallocate_range() 185 xfs_rtx_to_rbmblock(mp, preblock), 1); in xfs_rtallocate_range() 197 xfs_rtx_to_rbmblock(mp, end + 1), 1); in xfs_rtallocate_range() 253 struct xfs_mount *mp = args->mp; in xfs_rtallocate_extent_block() local 267 end = min(args->rtg->rtg_extents, xfs_rbmblock_to_rtx(mp, bbno + 1)) - in xfs_rtallocate_extent_block() 269 for (i = xfs_rbmblock_to_rtx(mp, bbno); i <= end; i++) { in xfs_rtallocate_extent_block() [all …]
|
| H A D | xfs_notify_failure.c | 41 struct xfs_mount *mp, in xfs_failure_pgoff() argument 45 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset); in xfs_failure_pgoff() 48 pos += XFS_FSB_TO_B(mp, in xfs_failure_pgoff() 55 struct xfs_mount *mp, in xfs_failure_pgcnt() argument 70 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT; in xfs_failure_pgcnt() 79 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn() local 97 error = xfs_iget(mp, cur->bc_tp, rec->rm_owner, XFS_IGET_INCORE, in xfs_dax_failure_fn() 108 pgoff = xfs_failure_pgoff(mp, rec, notify); in xfs_dax_failure_fn() 109 pgcnt = xfs_failure_pgcnt(mp, rec, notify); in xfs_dax_failure_fn() 130 struct xfs_mount *mp) in xfs_dax_notify_failure_freeze() argument [all …]
|
| H A D | xfs_zone_alloc.c | 50 struct xfs_mount *mp, in xfs_zone_bucket() argument 54 mp->m_groups[XG_TYPE_RTG].blocks; in xfs_zone_bucket() 83 struct xfs_mount *mp = rtg_mount(rtg); in xfs_zone_account_reclaimable() local 84 struct xfs_zone_info *zi = mp->m_zone_info; in xfs_zone_account_reclaimable() 87 uint32_t from_bucket = xfs_zone_bucket(mp, used + freed); in xfs_zone_account_reclaimable() 88 uint32_t to_bucket = xfs_zone_bucket(mp, used); in xfs_zone_account_reclaimable() 128 if (zi->zi_gc_thread && xfs_zoned_need_gc(mp)) in xfs_zone_account_reclaimable() 169 struct xfs_mount *mp = rtg_mount(rtg); in xfs_open_zone_mark_full() local 170 struct xfs_zone_info *zi = mp->m_zone_info; in xfs_open_zone_mark_full() 326 struct xfs_mount *mp in xfs_zoned_end_io() local 381 struct xfs_mount *mp = tp->t_mountp; xfs_zone_free_blocks() local 445 xfs_open_zone(struct xfs_mount * mp,enum rw_hint write_hint,bool is_gc) xfs_open_zone() argument 476 xfs_try_open_zone(struct xfs_mount * mp,enum rw_hint write_hint) xfs_try_open_zone() argument 649 struct xfs_mount *mp = ip->i_mount; xfs_zoned_pack_tight() local 666 xfs_select_zone_nowait(struct xfs_mount * mp,enum rw_hint write_hint,bool pack_tight) xfs_select_zone_nowait() argument 719 xfs_select_zone(struct xfs_mount * mp,enum rw_hint write_hint,bool pack_tight) xfs_select_zone() argument 750 struct xfs_mount *mp = rtg_mount(rtg); xfs_zone_alloc_blocks() local 777 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; xfs_mark_rtg_boundary() local 902 struct xfs_mount *mp = ip->i_mount; xfs_zone_alloc_and_submit() local 959 xfs_zoned_wake_all(struct xfs_mount * mp) xfs_zoned_wake_all() argument 1041 struct xfs_mount *mp = rtg_mount(rtg); xfs_query_write_pointer() local 1089 struct xfs_mount *mp = rtg_mount(rtg); xfs_init_zone() local 1163 xfs_max_open_zones(struct xfs_mount * mp) xfs_max_open_zones() argument 1201 xfs_calc_open_zones(struct xfs_mount * mp) xfs_calc_open_zones() argument 1237 xfs_alloc_bucket_bitmap(struct xfs_mount * mp) xfs_alloc_bucket_bitmap() argument 1245 xfs_alloc_zone_info(struct xfs_mount * mp) xfs_alloc_zone_info() argument 1288 xfs_report_zones(struct xfs_mount * mp,struct xfs_init_zones * iz) xfs_report_zones() argument 1319 xfs_find_fullest_conventional_open_zone(struct xfs_mount * mp) xfs_find_fullest_conventional_open_zone() argument 1350 xfs_finish_spurious_open_zones(struct xfs_mount * mp,struct xfs_init_zones * iz) xfs_finish_spurious_open_zones() argument 1382 xfs_mount_zones(struct xfs_mount * mp) xfs_mount_zones() argument 1482 xfs_unmount_zones(struct xfs_mount * mp) xfs_unmount_zones() argument [all...] |
| H A D | xfs_zone_gc.c | 128 struct xfs_mount *mp; member 173 struct xfs_mount *mp) in xfs_zoned_need_gc() argument 179 if (!xfs_zoned_have_reclaimable(mp->m_zone_info)) in xfs_zoned_need_gc() 188 available = xfs_estimate_freecounter(mp, XC_FREE_RTAVAILABLE); in xfs_zoned_need_gc() 190 xfs_rtgs_to_rfsbs(mp, mp->m_max_open_zones - XFS_OPEN_GC_ZONES)) in xfs_zoned_need_gc() 200 if (!mp->m_zonegc_low_space) in xfs_zoned_need_gc() 203 free = xfs_estimate_freecounter(mp, XC_FREE_RTEXTENTS); in xfs_zoned_need_gc() 205 threshold = threshold * mp->m_zonegc_low_space + in xfs_zoned_need_gc() 206 remainder * div_s64(mp->m_zonegc_low_space, 100); in xfs_zoned_need_gc() 213 struct xfs_mount *mp) in xfs_zone_gc_data_alloc() argument [all …]
|
| H A D | xfs_ioctl.c | 61 xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat); in xfs_fsbulkstat_one_fmt() 86 struct xfs_mount *mp = XFS_I(file_inode(file))->i_mount; in xfs_ioc_fsbulkstat() local 89 .mp = mp, in xfs_ioc_fsbulkstat() 102 if (xfs_is_shutdown(mp)) in xfs_ioc_fsbulkstat() 178 struct xfs_mount *mp, in xfs_bulk_ireq_setup() argument 205 breq->startino = mp->m_sb.sb_rootino; in xfs_bulk_ireq_setup() 219 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup() 223 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0); in xfs_bulk_ireq_setup() 224 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno) in xfs_bulk_ireq_setup() 230 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno) in xfs_bulk_ireq_setup() [all …]
|
| H A D | xfs_icache.c | 51 static int xfs_icwalk(struct xfs_mount *mp, 91 struct xfs_mount *mp, in xfs_inode_alloc() argument 97 ip = alloc_inode_sb(mp->m_super, xfs_inode_cache, gfp); in xfs_inode_alloc() 98 inode_init_always_gfp(mp->m_super, VFS_I(ip), gfp); in xfs_inode_alloc() 104 M_IGEO(mp)->min_folio_order); in xfs_inode_alloc() 106 XFS_STATS_INC(mp, xs_inodes_active); in xfs_inode_alloc() 110 ip->i_mount = mp; in xfs_inode_alloc() 118 ip->i_diflags2 = mp->m_ino_geo.new_diflags2; in xfs_inode_alloc() 203 struct xfs_mount *mp) in xfs_reclaim_work_queue() argument 207 if (xfs_group_marked(mp, XG_TYPE_A in xfs_reclaim_work_queue() 222 struct xfs_mount *mp = pag_mount(pag); xfs_blockgc_queue() local 304 xfs_perag_grab_next_tag(struct xfs_mount * mp,struct xfs_perag * pag,int tag) xfs_perag_grab_next_tag() argument 323 xfs_reinit_inode(struct xfs_mount * mp,struct inode * inode) xfs_reinit_inode() argument 362 struct xfs_mount *mp = ip->i_mount; xfs_iget_recycle() local 453 xfs_inodegc_queue_all(struct xfs_mount * mp) xfs_inodegc_queue_all() argument 473 xfs_inodegc_wait_all(struct xfs_mount * mp) xfs_inodegc_wait_all() argument 503 struct xfs_mount *mp = ip->i_mount; xfs_iget_cache_hit() local 620 xfs_iget_cache_miss(struct xfs_mount * mp,struct xfs_perag * pag,xfs_trans_t * tp,xfs_ino_t ino,struct xfs_inode ** ipp,int flags,int lock_flags) xfs_iget_cache_miss() argument 762 xfs_iget(struct xfs_mount * mp,struct xfs_trans * tp,xfs_ino_t ino,uint flags,uint lock_flags,struct xfs_inode ** ipp) xfs_iget() argument 847 struct xfs_mount *mp = tp->t_mountp; xfs_trans_metafile_iget() local 888 xfs_metafile_iget(struct xfs_mount * mp,xfs_ino_t ino,enum xfs_metafile_type metafile_type,struct xfs_inode ** ipp) xfs_metafile_iget() argument 1061 xfs_want_reclaim_sick(struct xfs_mount * mp) xfs_want_reclaim_sick() argument 1069 xfs_reclaim_inodes(struct xfs_mount * mp) xfs_reclaim_inodes() argument 1093 xfs_reclaim_inodes_nr(struct xfs_mount * mp,unsigned long nr_to_scan) xfs_reclaim_inodes_nr() argument 1118 xfs_reclaim_inodes_count(struct xfs_mount * mp) xfs_reclaim_inodes_count() argument 1218 struct xfs_mount *mp = container_of(to_delayed_work(work), xfs_reclaim_worker() local 1273 struct xfs_mount *mp = ip->i_mount; xfs_blockgc_set_iflag() local 1311 struct xfs_mount *mp = ip->i_mount; xfs_blockgc_clear_iflag() local 1463 xfs_blockgc_stop(struct xfs_mount * mp) xfs_blockgc_stop() argument 1478 xfs_blockgc_start(struct xfs_mount * mp) xfs_blockgc_start() argument 1562 struct xfs_mount *mp = pag_mount(pag); xfs_blockgc_worker() local 1580 xfs_blockgc_free_space(struct xfs_mount * mp,struct xfs_icwalk * icw) xfs_blockgc_free_space() argument 1600 xfs_blockgc_flush_all(struct xfs_mount * mp) xfs_blockgc_flush_all() argument 1631 xfs_blockgc_free_dquots(struct xfs_mount * mp,struct xfs_dquot * udqp,struct xfs_dquot * gdqp,struct xfs_dquot * pdqp,unsigned int iwalk_flags) xfs_blockgc_free_dquots() argument 1750 struct xfs_mount *mp = pag_mount(pag); xfs_icwalk_ag() local 1855 xfs_icwalk(struct xfs_mount * mp,enum xfs_icwalk_goal goal,struct xfs_icwalk * icw) xfs_icwalk() argument 1908 struct xfs_mount *mp = ip->i_mount; xfs_inodegc_set_reclaimable() local 1958 struct xfs_mount *mp = gc->mp; xfs_inodegc_worker() local 2004 xfs_inodegc_push(struct xfs_mount * mp) xfs_inodegc_push() argument 2018 xfs_inodegc_flush(struct xfs_mount * mp) xfs_inodegc_flush() argument 2032 xfs_inodegc_stop(struct xfs_mount * mp) xfs_inodegc_stop() argument 2065 xfs_inodegc_start(struct xfs_mount * mp) xfs_inodegc_start() argument 2079 struct xfs_mount *mp = ip->i_mount; xfs_inodegc_want_queue_rt_file() local 2107 struct xfs_mount *mp = ip->i_mount; xfs_inodegc_want_queue_work() local 2176 struct xfs_mount *mp = ip->i_mount; xfs_inodegc_queue() local 2241 struct xfs_mount *mp = ip->i_mount; xfs_inode_mark_reclaimable() local 2280 struct xfs_mount *mp = shrink->private_data; xfs_inodegc_shrinker_count() local 2301 struct xfs_mount *mp = shrink->private_data; xfs_inodegc_shrinker_scan() local 2335 xfs_inodegc_register_shrinker(struct xfs_mount * mp) xfs_inodegc_register_shrinker() argument [all...] |
| H A D | xfs_mount.h | 64 struct xfs_mount *mp; member 361 #define M_IGEO(mp) (&(mp)->m_ino_geo) argument 418 static inline bool xfs_has_ ## name (const struct xfs_mount *mp) \ 420 return mp->m_features & XFS_FEAT_ ## NAME; \ 426 static inline void xfs_add_ ## name (struct xfs_mount *mp) \ 428 mp->m_features |= XFS_FEAT_ ## NAME; \ 429 xfs_sb_version_add ## name(&mp->m_sb); \ 456 static inline bool xfs_has_rtgroups(const struct xfs_mount *mp) in __XFS_ADD_FEAT() 459 return xfs_has_metadir(mp); in __XFS_ADD_FEAT() 462 static inline bool xfs_has_rtsb(const struct xfs_mount *mp) in xfs_has_rtsb() argument [all …]
|
| H A D | xfs_fsmap.c | 213 struct xfs_mount *mp = tp->t_mountp; in xfs_getfsmap_is_shared() local 220 if (!xfs_has_reflink(mp) || !info->group) in xfs_getfsmap_is_shared() 226 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, in xfs_getfsmap_is_shared() 231 XFS_BB_TO_FSBT(mp, frec->len_daddr), &fbno, &flen, in xfs_getfsmap_is_shared() 244 struct xfs_mount *mp, in xfs_getfsmap_format() argument 250 trace_xfs_getfsmap_mapping(mp, xfm); in xfs_getfsmap_format() 288 struct xfs_mount *mp = tp->t_mountp; in xfs_getfsmap_helper() local 332 xfs_getfsmap_format(mp, &fmr, info); in xfs_getfsmap_helper() 342 trace_xfs_fsmap_mapping(mp, info->dev, in xfs_getfsmap_helper() 351 fmr.fmr_offset = XFS_FSB_TO_BB(mp, frec->offset); in xfs_getfsmap_helper() [all …]
|
| /linux/drivers/net/ethernet/apple/ |
| H A 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 …]
|
| /linux/drivers/pci/controller/dwc/ |
| H A D | pci-meson.c | 73 static struct reset_control *meson_pcie_get_reset(struct meson_pcie *mp, in meson_pcie_get_reset() argument 77 struct device *dev = mp->pci.dev; in meson_pcie_get_reset() 88 static int meson_pcie_get_resets(struct meson_pcie *mp) in meson_pcie_get_resets() argument 90 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets() 92 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets() 97 mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET); in meson_pcie_get_resets() 106 struct meson_pcie *mp) in meson_pcie_get_mems() argument 108 struct dw_pcie *pci = &mp->pci; in meson_pcie_get_mems() 126 mp->cfg_base = devm_platform_ioremap_resource_byname(pdev, "cfg"); in meson_pcie_get_mems() 127 if (IS_ERR(mp->cfg_base)) in meson_pcie_get_mems() [all …]
|
| /linux/drivers/scsi/sym53c8xx_2/ |
| H A 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/fs/jfs/ |
| H A 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/fs/xfs/scrub/ |
| H A D | agheader.c | 41 struct xfs_mount *mp = sc->mp; in xchk_superblock_xref() local 49 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 72 struct xfs_mount *mp) in xchk_superblock_ondisk_size() argument 74 if (xfs_has_zoned(mp)) in xchk_superblock_ondisk_size() 76 if (xfs_has_metadir(mp)) in xchk_superblock_ondisk_size() 78 if (xfs_has_metauuid(mp)) in xchk_superblock_ondisk_size() 80 if (xfs_has_crc(mp)) in xchk_superblock_ondisk_size() 82 if (xfs_sb_version_hasmorebits(&mp->m_sb)) in xchk_superblock_ondisk_size() 84 if (xfs_has_logv2(mp)) in xchk_superblock_ondisk_size() 104 struct xfs_mount *mp = sc->mp; xchk_superblock() local 505 struct xfs_mount *mp = sc->mp; xchk_agf_xref_btreeblks() local 573 struct xfs_mount *mp = sc->mp; xchk_agf_xref() local 601 struct xfs_mount *mp = sc->mp; xchk_agf() local 724 xchk_agfl_block(struct xfs_mount * mp,xfs_agblock_t agbno,void * priv) xchk_agfl_block() argument 761 struct xfs_mount *mp = sc->mp; xchk_agfl_xref() local 916 struct xfs_mount *mp = sc->mp; xchk_agi_xref() local 1023 struct xfs_mount *mp = sc->mp; xchk_agi() local [all...] |
| H A D | rtsummary.c | 45 struct xfs_mount *mp = sc->mp; in xchk_setup_rtsummary() local 52 rts = kvzalloc_flex(*rts, words, mp->m_blockwsize, XCHK_GFP_FLAGS); in xchk_setup_rtsummary() 72 XFS_FSB_TO_B(mp, mp->m_rsumblocks), &sc->xfile); in xchk_setup_rtsummary() 102 if (mp->m_sb.sb_rblocks) { in xchk_setup_rtsummary() 103 rts->rextents = xfs_blen_to_rtbxlen(mp, mp->m_sb.sb_rblocks); in xchk_setup_rtsummary() 104 rts->rbmblocks = xfs_rtbitmap_blockcount(mp); in xchk_setup_rtsummary() 106 xfs_rtsummary_blockcount(mp, &rts->rsumlevels); in xchk_setup_rtsummary() 149 struct xfs_mount *mp, in xchk_rtsum_inc() argument 152 if (xfs_has_rtgroups(mp)) { in xchk_rtsum_inc() 169 struct xfs_mount *mp = rtg_mount(rtg); in xchk_rtsum_record_free() local [all …]
|
| H A D | rtbitmap_repair.c | 52 xrep_rtbitmap_calc_blocks(struct xfs_mount *mp, unsigned long long blocks) in xrep_rtbitmap_calc_blocks() argument 54 return blocks + (xfs_bmbt_calc_size(mp, blocks) * 2); in xrep_rtbitmap_calc_blocks() 63 struct xfs_mount *mp = sc->mp; in xrep_setup_rtbitmap() local 64 unsigned long long blocks = mp->m_sb.sb_rbmblocks; in xrep_setup_rtbitmap() 73 blocks * mp->m_sb.sb_blocksize, &sc->xfile); in xrep_setup_rtbitmap() 77 blocks = xrep_rtbitmap_calc_blocks(mp, mp->m_sb.sb_rbmblocks); in xrep_setup_rtbitmap() 87 struct xfs_mount *mp, in rtx_to_wordoff() argument 111 ASSERT(xfs_has_rtgroups(rtb->sc->mp)); in xfbmp_load() 131 ASSERT(xfs_has_rtgroups(rtb->sc->mp)); in xfbmp_store() 175 trace_xrep_rtbitmap_or(rtb->sc->mp, wordoff, mask, word); in xrep_rtbitmap_or() [all …]
|
| /linux/fs/gfs2/ |
| H A D | bmap.c | 178 * @mp: The metapath to return the result in 234 struct metapath *mp, unsigned int height) in find_metapath() argument 238 mp->mp_fheight = height; in find_metapath() 240 mp->mp_list[i] = do_div(block, sdp->sd_inptrs); in find_metapath() 243 static inline unsigned int metapath_branch_start(const struct metapath *mp) in metapath_branch_start() argument 245 if (mp->mp_list[0] == 0) in metapath_branch_start() 253 * @mp: The metapath 255 static inline __be64 *metaptr1(unsigned int height, const struct metapath *mp) in metaptr1() argument 257 struct buffer_head *bh = mp->mp_bh[height]; in metaptr1() 266 * @mp: The metapath [all …]
|