Home
last modified time | relevance | path

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

12345678910>>...13

/linux/fs/xfs/
H A Dxfs_mount.c66 struct xfs_mount *mp) in xfs_uuid_mount()
68 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount()
72 super_set_uuid(mp->m_super, uuid->b, sizeof(*uuid)); in xfs_uuid_mount()
74 if (xfs_has_nouuid(mp)) in xfs_uuid_mount()
78 xfs_warn(mp, "Filesystem has null UUID - can't mount"); in xfs_uuid_mount()
105 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
111 struct xfs_mount *mp) in xfs_uuid_unmount()
113 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount()
116 if (xfs_has_nouuid(mp)) in xfs_uuid_unmount()
161 struct xfs_mount *mp, in xfs_readsb()
65 xfs_uuid_mount(struct xfs_mount * mp) xfs_uuid_mount() argument
110 xfs_uuid_unmount(struct xfs_mount * mp) xfs_uuid_unmount() argument
160 xfs_readsb(struct xfs_mount * mp,int flags) xfs_readsb() argument
268 xfs_check_new_dalign(struct xfs_mount * mp,int new_dalign,bool * update_sb) xfs_check_new_dalign() argument
304 xfs_validate_new_dalign(struct xfs_mount * mp) xfs_validate_new_dalign() argument
353 xfs_update_alignment(struct xfs_mount * mp) xfs_update_alignment() argument
385 xfs_set_low_space_thresholds(struct xfs_mount * mp) xfs_set_low_space_thresholds() argument
405 xfs_check_sizes(struct xfs_mount * mp) xfs_check_sizes() argument
449 xfs_mount_reset_sbqflags(struct xfs_mount * mp) xfs_mount_reset_sbqflags() argument
474 xfs_default_resblks(struct xfs_mount * mp,enum xfs_free_counter ctr) xfs_default_resblks() argument
503 xfs_check_summary_counts(struct xfs_mount * mp) xfs_check_summary_counts() argument
575 xfs_unmount_check(struct xfs_mount * mp) xfs_unmount_check() argument
615 xfs_unmount_flush_inodes(struct xfs_mount * mp) xfs_unmount_flush_inodes() argument
632 xfs_mount_setup_inode_geom(struct xfs_mount * mp) xfs_mount_setup_inode_geom() argument
645 xfs_mount_setup_metadir(struct xfs_mount * mp) xfs_mount_setup_metadir() argument
661 xfs_agbtree_compute_maxlevels(struct xfs_mount * mp) xfs_agbtree_compute_maxlevels() argument
671 xfs_calc_atomic_write_max(struct xfs_mount * mp) xfs_calc_atomic_write_max() argument
689 xfs_calc_group_awu_max(struct xfs_mount * mp,enum xfs_group_type type) xfs_calc_group_awu_max() argument
705 xfs_calc_atomic_write_unit_max(struct xfs_mount * mp,enum xfs_group_type type) xfs_calc_atomic_write_unit_max() argument
725 xfs_set_max_atomic_write_opt(struct xfs_mount * mp,unsigned long long new_max_bytes) xfs_set_max_atomic_write_opt() argument
819 xfs_rtbtree_compute_maxlevels(struct xfs_mount * mp) xfs_rtbtree_compute_maxlevels() argument
837 xfs_mountfs(struct xfs_mount * mp) xfs_mountfs() argument
1296 xfs_unmountfs(struct xfs_mount * mp) xfs_unmountfs() argument
1374 xfs_fs_writable(struct xfs_mount * mp,int level) xfs_fs_writable() argument
1395 xfs_freecounter_unavailable(struct xfs_mount * mp,enum xfs_free_counter ctr) xfs_freecounter_unavailable() argument
1405 xfs_add_freecounter(struct xfs_mount * mp,enum xfs_free_counter ctr,uint64_t delta) xfs_add_freecounter() argument
1437 xfs_dec_freecounter(struct xfs_mount * mp,enum xfs_free_counter ctr,uint64_t delta,bool rsvd) xfs_dec_freecounter() argument
1509 xfs_freesb(struct xfs_mount * mp) xfs_freesb() argument
1524 xfs_dev_is_read_only(struct xfs_mount * mp,char * message) xfs_dev_is_read_only() argument
1540 xfs_force_summary_recalc(struct xfs_mount * mp) xfs_force_summary_recalc() argument
1554 xfs_add_incompat_log_feature(struct xfs_mount * mp,uint32_t feature) xfs_add_incompat_log_feature() argument
1629 xfs_clear_incompat_log_features(struct xfs_mount * mp) xfs_clear_incompat_log_features() argument
1676 struct xfs_mount *mp = ip->i_mount; xfs_mod_delalloc() local
[all...]
H A Dxfs_super.c80 struct xfs_mount *mp, in xfs_mount_set_dax_mode()
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;
207 struct xfs_mount *mp = XFS_M(root->d_sb); in xfs_fs_show_options()
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()
76 xfs_mount_set_dax_mode(struct xfs_mount * mp,enum xfs_dax_mode mode) xfs_mount_set_dax_mode() argument
202 struct xfs_mount *mp = XFS_M(root->d_sb); xfs_fs_show_options() local
303 xfs_set_inode_alloc(struct xfs_mount * mp,xfs_agnumber_t agcount) xfs_set_inode_alloc() argument
359 xfs_setup_dax_always(struct xfs_mount * mp) xfs_setup_dax_always() argument
390 xfs_blkdev_get(xfs_mount_t * mp,const char * name,struct file ** bdev_filep) xfs_blkdev_get() argument
411 xfs_shutdown_devices(struct xfs_mount * mp) xfs_shutdown_devices() argument
463 xfs_open_devices(struct xfs_mount * mp) xfs_open_devices() argument
548 xfs_setup_devices(struct xfs_mount * mp) xfs_setup_devices() argument
587 xfs_init_mount_workqueues(struct xfs_mount * mp) xfs_init_mount_workqueues() argument
643 xfs_destroy_mount_workqueues(struct xfs_mount * mp) xfs_destroy_mount_workqueues() argument
657 struct xfs_mount *mp = container_of(work, struct xfs_mount, xfs_flush_inodes_worker() local
675 xfs_flush_inodes(struct xfs_mount * mp) xfs_flush_inodes() argument
721 struct xfs_mount *mp = ip->i_mount; xfs_fs_dirty_inode() local
813 xfs_mount_free(struct xfs_mount * mp) xfs_mount_free() argument
833 struct xfs_mount *mp = XFS_M(sb); xfs_fs_sync_fs() local
882 xfs_internal_log_size(struct xfs_mount * mp) xfs_internal_log_size() argument
891 xfs_statfs_data(struct xfs_mount * mp,struct kstatfs * st) xfs_statfs_data() argument
915 xfs_statfs_rt(struct xfs_mount * mp,struct kstatfs * st) xfs_statfs_rt() argument
926 xfs_statfs_inodes(struct xfs_mount * mp,struct kstatfs * st) xfs_statfs_inodes() argument
951 struct xfs_mount *mp = XFS_M(dentry->d_sb); xfs_fs_statfs() local
987 xfs_save_resvblks(struct xfs_mount * mp) xfs_save_resvblks() argument
999 xfs_restore_resvblks(struct xfs_mount * mp) xfs_restore_resvblks() argument
1024 struct xfs_mount *mp = XFS_M(sb); xfs_fs_freeze() local
1058 struct xfs_mount *mp = XFS_M(sb); xfs_fs_unfreeze() local
1084 xfs_finish_flags(struct xfs_mount * mp) xfs_finish_flags() argument
1141 xfs_init_percpu_counters(struct xfs_mount * mp) xfs_init_percpu_counters() argument
1186 xfs_reinit_percpu_counters(struct xfs_mount * mp) xfs_reinit_percpu_counters() argument
1198 xfs_destroy_percpu_counters(struct xfs_mount * mp) xfs_destroy_percpu_counters() argument
1216 xfs_inodegc_init_percpu(struct xfs_mount * mp) xfs_inodegc_init_percpu() argument
1239 xfs_inodegc_free_percpu(struct xfs_mount * mp) xfs_inodegc_free_percpu() argument
1250 struct xfs_mount *mp = XFS_M(sb); xfs_fs_put_super() local
1297 struct xfs_mount *mp = XFS_M(root->d_sb); xfs_fs_show_stats() local
1590 xfs_fs_validate_params(struct xfs_mount * mp) xfs_fs_validate_params() argument
1674 struct xfs_mount *mp = sb->s_fs_info; xfs_fs_fill_super() local
2012 xfs_remount_rw(struct xfs_mount * mp) xfs_remount_rw() argument
2084 xfs_remount_ro(struct xfs_mount * mp) xfs_remount_ro() argument
2160 struct xfs_mount *mp = XFS_M(fc->root->d_sb); xfs_fs_reconfigure() local
2227 struct xfs_mount *mp = fc->s_fs_info; xfs_fs_free() local
2255 struct xfs_mount *mp; xfs_init_fs_context() local
[all...]
H A Dxfs_fsops.c54 struct xfs_mount *mp = tp->t_mountp; in xfs_resizefs_init_new_ags()
55 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags()
67 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags()
69 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags()
71 error = xfs_ag_init_headers(mp, id); in xfs_resizefs_init_new_ags()
94 struct xfs_mount *mp, /* mount point for filesystem */ in xfs_growfs_data_private()
97 xfs_agnumber_t oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
110 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb); in xfs_growfs_data_private()
114 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private()
115 error = xfs_buf_read_uncached(mp in xfs_growfs_data_private()
51 struct xfs_mount *mp = tp->t_mountp; xfs_resizefs_init_new_ags() local
91 xfs_growfs_data_private(struct xfs_mount * mp,struct xfs_growfs_data * in) xfs_growfs_data_private() argument
251 xfs_growfs_log_private(struct xfs_mount * mp,struct xfs_growfs_log * in) xfs_growfs_log_private() argument
273 xfs_growfs_imaxpct(struct xfs_mount * mp,__u32 imaxpct) xfs_growfs_imaxpct() argument
301 xfs_growfs_data(struct xfs_mount * mp,struct xfs_growfs_data * in) xfs_growfs_data() argument
353 xfs_growfs_log(xfs_mount_t * mp,struct xfs_growfs_log * in) xfs_growfs_log() argument
374 xfs_reserve_blocks(struct xfs_mount * mp,enum xfs_free_counter ctr,uint64_t request) xfs_reserve_blocks() argument
460 xfs_fs_goingdown(xfs_mount_t * mp,uint32_t inflags) xfs_fs_goingdown() argument
498 xfs_do_force_shutdown(struct xfs_mount * mp,uint32_t flags,char * fname,int lnnum) xfs_do_force_shutdown() argument
550 xfs_fs_reserve_ag_blocks(struct xfs_mount * mp) xfs_fs_reserve_ag_blocks() argument
588 xfs_fs_unreserve_ag_blocks(struct xfs_mount * mp) xfs_fs_unreserve_ag_blocks() argument
[all...]
H A Dxfs_rtalloc.c108 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()
141 struct xfs_mount *mp = args->mp; in xfs_rtallocate_range() local
171 xfs_rtx_to_rbmblock(mp, preblock), -1); in xfs_rtallocate_range()
182 xfs_rtx_to_rbmblock(mp, preblock), 1); in xfs_rtallocate_range()
194 xfs_rtx_to_rbmblock(mp, end + 1), 1); in xfs_rtallocate_range()
250 struct xfs_mount *mp = args->mp; in xfs_rtallocate_extent_block() local
264 end = min(args->rtg->rtg_extents, xfs_rbmblock_to_rtx(mp, bbn in xfs_rtallocate_extent_block()
411 struct xfs_mount *mp = args->mp; xfs_rtallocate_extent_near() local
695 xfs_growfs_rt_fixup_extsize(struct xfs_mount * mp) xfs_growfs_rt_fixup_extsize() argument
743 xfs_growfs_rt_alloc_fake_mount(const struct xfs_mount * mp,xfs_rfsblock_t rblocks,xfs_agblock_t rextsize) xfs_growfs_rt_alloc_fake_mount() argument
779 struct xfs_mount *mp = rtg_mount(rtg); xfs_growfs_rt_free_new() local
804 struct xfs_mount *mp = rtg_mount(rtg); xfs_growfs_rt_nrblocks() local
828 struct xfs_mount *mp = args->mp; xfs_growfs_rt_init_rtsb() local
866 struct xfs_mount *mp = tp->t_mountp; xfs_growfs_rt_sb_fields() local
893 struct xfs_mount *mp = rtg_mount(rtg); xfs_growfs_rt_zoned() local
946 struct xfs_mount *mp = rtg_mount(rtg); xfs_growfs_rt_bmblock() local
1074 xfs_last_rtgroup_extents(struct xfs_mount * mp) xfs_last_rtgroup_extents() argument
1090 struct xfs_mount *mp = rtg_mount(rtg); xfs_last_rt_bmblock() local
1118 struct xfs_mount *mp = rtg_mount(rtg); xfs_growfs_rt_alloc_blocks() local
1169 xfs_growfs_rtg(struct xfs_mount * mp,xfs_rgnumber_t rgno,xfs_rfsblock_t nrblocks,xfs_agblock_t rextsize) xfs_growfs_rtg() argument
1233 xfs_growfs_check_rtgeom(const struct xfs_mount * mp,xfs_rfsblock_t dblocks,xfs_rfsblock_t rblocks,xfs_extlen_t rextsize) xfs_growfs_check_rtgeom() argument
1293 xfs_growfs_rt_prep_groups(struct xfs_mount * mp,xfs_rfsblock_t rblocks,xfs_extlen_t rextsize,xfs_rgnumber_t * new_rgcount) xfs_growfs_rt_prep_groups() argument
1323 xfs_grow_last_rtg(struct xfs_mount * mp) xfs_grow_last_rtg() argument
1338 xfs_rt_check_size(struct xfs_mount * mp,xfs_rfsblock_t last_block) xfs_rt_check_size() argument
1367 xfs_growfs_rt(struct xfs_mount * mp,struct xfs_growfs_rt * in) xfs_growfs_rt() argument
1497 xfs_rtmount_readsb(struct xfs_mount * mp) xfs_rtmount_readsb() argument
1532 xfs_rtmount_freesb(struct xfs_mount * mp) xfs_rtmount_freesb() argument
1549 xfs_rtmount_init(struct xfs_mount * mp) xfs_rtmount_init() argument
1583 xfs_rtalloc_reinit_frextents(struct xfs_mount * mp) xfs_rtalloc_reinit_frextents() argument
1639 xfs_rtmount_rtg(struct xfs_mount * mp,struct xfs_trans * tp,struct xfs_rtgroup * rtg) xfs_rtmount_rtg() argument
1669 xfs_rtmount_inodes(struct xfs_mount * mp) xfs_rtmount_inodes() argument
1698 xfs_rtunmount_inodes(struct xfs_mount * mp) xfs_rtunmount_inodes() argument
1720 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtpick_extent() local
1797 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtalloc_check_busy() local
2017 struct xfs_mount *mp = tp->t_mountp; xfs_rtallocate_rtgs() local
2060 struct xfs_mount *mp = ap->ip->i_mount; xfs_rtallocate_align() local
[all...]
H A Dxfs_mount.h64 struct xfs_mount *mp;
351 #define M_IGEO(mp) (&(mp)->m_ino_geo)
408 static inline bool xfs_has_ ## name (const struct xfs_mount *mp) \
410 return mp->m_features & XFS_FEAT_ ## NAME; \
416 static inline void xfs_add_ ## name (struct xfs_mount *mp) \
418 mp->m_features |= XFS_FEAT_ ## NAME; \
419 xfs_sb_version_add ## name(&mp->m_sb); \ in __XFS_ADD_FEAT()
446 static inline bool xfs_has_rtgroups(const struct xfs_mount *mp) in __XFS_ADD_FEAT()
449 return xfs_has_metadir(mp); in xfs_has_rtsb()
63 struct xfs_mount *mp; global() member
347 M_IGEO(mp) global() argument
448 xfs_has_rtsb(const struct xfs_mount * mp) xfs_has_rtsb() argument
456 xfs_has_rtrmapbt(const struct xfs_mount * mp) xfs_has_rtrmapbt() argument
462 xfs_has_rtreflink(const struct xfs_mount * mp) xfs_has_rtreflink() argument
468 xfs_has_nonzoned(const struct xfs_mount * mp) xfs_has_nonzoned() argument
473 xfs_can_sw_atomic_write(struct xfs_mount * mp) xfs_can_sw_atomic_write() argument
678 xfs_daddr_to_agno(struct xfs_mount * mp,xfs_daddr_t d) xfs_daddr_to_agno() argument
686 xfs_daddr_to_agbno(struct xfs_mount * mp,xfs_daddr_t d) xfs_daddr_to_agbno() argument
713 xfs_sum_freecounter(struct xfs_mount * mp,enum xfs_free_counter ctr) xfs_sum_freecounter() argument
723 xfs_sum_freecounter_raw(struct xfs_mount * mp,enum xfs_free_counter ctr) xfs_sum_freecounter_raw() argument
733 xfs_estimate_freecounter(struct xfs_mount * mp,enum xfs_free_counter ctr) xfs_estimate_freecounter() argument
739 xfs_compare_freecounter(struct xfs_mount * mp,enum xfs_free_counter ctr,s64 rhs,s32 batch) xfs_compare_freecounter() argument
745 xfs_set_freecounter(struct xfs_mount * mp,enum xfs_free_counter ctr,uint64_t val) xfs_set_freecounter() argument
756 xfs_dec_fdblocks(struct xfs_mount * mp,uint64_t delta,bool reserved) xfs_dec_fdblocks() argument
762 xfs_add_fdblocks(struct xfs_mount * mp,uint64_t delta) xfs_add_fdblocks() argument
767 xfs_dec_frextents(struct xfs_mount * mp,uint64_t delta) xfs_dec_frextents() argument
772 xfs_add_frextents(struct xfs_mount * mp,uint64_t delta) xfs_add_frextents() argument
796 xfs_mod_sb_delalloc(struct xfs_mount * mp,int64_t delta) xfs_mod_sb_delalloc() argument
806 xfs_group_type_buftarg(struct xfs_mount * mp,enum xfs_group_type type) xfs_group_type_buftarg() argument
[all...]
H A Dxfs_error.c57 struct xfs_mount *mp = to_mp(kobject); in xfs_errortag_attr_store()
70 WRITE_ONCE(mp->m_errortag[error_tag], val); in xfs_errortag_attr_show()
80 struct xfs_mount *mp = to_mp(kobject);
83 READ_ONCE(mp->m_errortag[to_attr(attr)->tag]));
122 struct xfs_mount *mp) in xfs_errortag_init()
124 return xfs_sysfs_init(&mp->m_errortag_kobj, &xfs_errortag_ktype, in xfs_errortag_init()
125 &mp->m_kobj, "errortag"); in xfs_errortag_init()
130 struct xfs_mount *mp)
132 xfs_sysfs_del(&mp->m_errortag_kobj); in xfs_errortag_del()
137 struct xfs_mount *mp, in xfs_errortag_del()
51 struct xfs_mount *mp = to_mp(kobject); xfs_errortag_attr_store() local
73 struct xfs_mount *mp = to_mp(kobject); xfs_errortag_attr_show() local
115 xfs_errortag_init(struct xfs_mount * mp) xfs_errortag_init() argument
133 xfs_errortag_del(struct xfs_mount * mp) xfs_errortag_del() argument
154 xfs_errortag_enabled(struct xfs_mount * mp,unsigned int tag) xfs_errortag_enabled() argument
167 xfs_errortag_test(struct xfs_mount * mp,const char * file,int line,unsigned int error_tag) xfs_errortag_test() argument
200 xfs_errortag_add(struct xfs_mount * mp,unsigned int error_tag) xfs_errortag_add() argument
213 xfs_errortag_clearall(struct xfs_mount * mp) xfs_errortag_clearall() argument
224 xfs_error_report(const char * tag,int level,struct xfs_mount * mp,const char * filename,int linenum,xfs_failaddr_t failaddr) xfs_error_report() argument
242 xfs_corruption_error(const char * tag,int level,struct xfs_mount * mp,const void * buf,size_t bufsize,const char * filename,int linenum,xfs_failaddr_t failaddr) xfs_corruption_error() argument
267 struct xfs_mount *mp = bp->b_mount; xfs_buf_corruption_error() local
292 struct xfs_mount *mp = bp->b_mount; xfs_buf_verifier_error() local
344 struct xfs_mount *mp = ip->i_mount; xfs_inode_verifier_error() local
[all...]
H A Dxfs_zone_alloc.c49 struct xfs_mount *mp, in xfs_zone_bucket() argument
53 mp->m_groups[XG_TYPE_RTG].blocks; in xfs_zone_bucket()
82 struct xfs_mount *mp = rtg_mount(rtg); in xfs_zone_account_reclaimable() local
83 struct xfs_zone_info *zi = mp->m_zone_info; in xfs_zone_account_reclaimable()
86 uint32_t from_bucket = xfs_zone_bucket(mp, used + freed); in xfs_zone_account_reclaimable()
87 uint32_t to_bucket = xfs_zone_bucket(mp, used); in xfs_zone_account_reclaimable()
127 if (zi->zi_gc_thread && xfs_zoned_need_gc(mp)) in xfs_zone_account_reclaimable()
168 struct xfs_mount *mp = rtg_mount(rtg); in xfs_open_zone_mark_full() local
169 struct xfs_zone_info *zi = mp->m_zone_info; in xfs_open_zone_mark_full()
199 struct xfs_mount *mp in xfs_zone_record_blocks() local
326 struct xfs_mount *mp = ip->i_mount; xfs_zoned_end_io() local
381 struct xfs_mount *mp = tp->t_mountp; xfs_zone_free_blocks() local
413 xfs_find_free_zone(struct xfs_mount * mp,unsigned long start,unsigned long end) xfs_find_free_zone() argument
470 xfs_open_zone(struct xfs_mount * mp,enum rw_hint write_hint,bool is_gc) xfs_open_zone() argument
489 xfs_try_open_zone(struct xfs_mount * mp,enum rw_hint write_hint) xfs_try_open_zone() argument
659 struct xfs_mount *mp = ip->i_mount; xfs_zoned_pack_tight() local
676 xfs_select_zone_nowait(struct xfs_mount * mp,enum rw_hint write_hint,bool pack_tight) xfs_select_zone_nowait() argument
728 xfs_select_zone(struct xfs_mount * mp,enum rw_hint write_hint,bool pack_tight) xfs_select_zone() argument
759 struct xfs_mount *mp = rtg_mount(rtg); xfs_zone_alloc_blocks() local
786 struct xfs_mount *mp = XFS_I(ioend->io_inode)->i_mount; xfs_mark_rtg_boundary() local
870 struct xfs_mount *mp = ip->i_mount; xfs_zone_alloc_and_submit() local
928 xfs_zoned_wake_all(struct xfs_mount * mp) xfs_zoned_wake_all() argument
979 struct xfs_mount *mp; global() member
990 struct xfs_mount *mp = rtg_mount(rtg); xfs_init_zone() local
1066 struct xfs_mount *mp = iz->mp; xfs_get_zone_info_cb() local
1094 xfs_max_open_zones(struct xfs_mount * mp) xfs_max_open_zones() argument
1132 xfs_calc_open_zones(struct xfs_mount * mp) xfs_calc_open_zones() argument
1168 xfs_alloc_bucket_bitmap(struct xfs_mount * mp) xfs_alloc_bucket_bitmap() argument
1176 xfs_alloc_zone_info(struct xfs_mount * mp) xfs_alloc_zone_info() argument
1219 xfs_mount_zones(struct xfs_mount * mp) xfs_mount_zones() argument
1324 xfs_unmount_zones(struct xfs_mount * mp) xfs_unmount_zones() argument
[all...]
H A Dxfs_notify_failure.c41 struct xfs_mount *mp, in xfs_failure_pgoff()
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()
70 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT;
79 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn()
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()
39 xfs_failure_pgoff(struct xfs_mount * mp,const struct xfs_rmap_irec * rec,const struct xfs_failure_info * notify) xfs_failure_pgoff() argument
53 xfs_failure_pgcnt(struct xfs_mount * mp,const struct xfs_rmap_irec * rec,const struct xfs_failure_info * notify) xfs_failure_pgcnt() argument
77 struct xfs_mount *mp = cur->bc_mp; xfs_dax_failure_fn() local
125 xfs_dax_notify_failure_freeze(struct xfs_mount * mp) xfs_dax_notify_failure_freeze() argument
139 xfs_dax_notify_failure_thaw(struct xfs_mount * mp,bool kernel_frozen) xfs_dax_notify_failure_thaw() argument
200 xfs_dax_notify_logdev_failure(struct xfs_mount * mp,u64 offset,u64 len,int mf_flags) xfs_dax_notify_logdev_failure() argument
234 xfs_dax_notify_dev_failure(struct xfs_mount * mp,u64 offset,u64 len,int mf_flags,enum xfs_group_type type) xfs_dax_notify_dev_failure() argument
367 struct xfs_mount *mp = dax_holder(dax_dev); xfs_dax_notify_failure() local
[all...]
H A Dxfs_error.h11 void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
13 void xfs_corruption_error(const char *tag, int level, struct xfs_mount *mp,
23 #define XFS_ERROR_REPORT(e, lvl, mp) \ argument
24 xfs_error_report(e, lvl, mp, __FILE__, __LINE__, __return_address)
25 #define XFS_CORRUPTION_ERROR(e, lvl, mp, buf, bufsize) \ argument
26 xfs_corruption_error(e, lvl, mp, buf, bufsize, \
37 int xfs_errortag_init(struct xfs_mount *mp);
38 void xfs_errortag_del(struct xfs_mount *mp);
39 bool xfs_errortag_test(struct xfs_mount *mp, const char *file, int line,
41 #define XFS_TEST_ERROR(mp, ta argument
44 XFS_ERRORTAG_DELAY(mp,tag) global() argument
59 xfs_errortag_init(mp) global() argument
60 xfs_errortag_del(mp) global() argument
61 XFS_TEST_ERROR(mp,tag) global() argument
62 XFS_ERRORTAG_DELAY(mp,tag) global() argument
63 xfs_errortag_add(mp,tag) global() argument
64 xfs_errortag_clearall(mp) global() argument
[all...]
/linux/fs/xfs/libxfs/
H A 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 …]
H A Dxfs_metafile.c84 struct xfs_mount *mp, in xfs_metafile_resv_can_cover() argument
93 if (mp->m_metafile_resv_avail >= rhs) in xfs_metafile_resv_can_cover()
100 return xfs_compare_freecounter(mp, XC_FREE_BLOCKS, in xfs_metafile_resv_can_cover()
101 rhs - mp->m_metafile_resv_avail, 2048) >= 0; in xfs_metafile_resv_can_cover()
111 struct xfs_mount *mp) in xfs_metafile_resv_critical() argument
113 ASSERT(xfs_has_metadir(mp)); in xfs_metafile_resv_critical()
115 trace_xfs_metafile_resv_critical(mp, 0); in xfs_metafile_resv_critical()
117 if (!xfs_metafile_resv_can_cover(mp, mp->m_rtbtree_maxlevels)) in xfs_metafile_resv_critical()
120 if (!xfs_metafile_resv_can_cover(mp, in xfs_metafile_resv_critical()
133 struct xfs_mount *mp = ip->i_mount; xfs_metafile_resv_alloc_space() local
191 struct xfs_mount *mp = ip->i_mount; xfs_metafile_resv_free_space() local
229 __xfs_metafile_resv_free(struct xfs_mount * mp) __xfs_metafile_resv_free() argument
243 xfs_metafile_resv_free(struct xfs_mount * mp) xfs_metafile_resv_free() argument
258 xfs_metafile_resv_init(struct xfs_mount * mp) xfs_metafile_resv_init() argument
[all...]
H A 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 …]
H A 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
139 __xfs_ag_block_count(struct xfs_mount * mp,xfs_agnumber_t agno,xfs_agnumber_t agcount,xfs_rfsblock_t dblocks) __xfs_ag_block_count() argument
153 xfs_ag_block_count(struct xfs_mount * mp,xfs_agnumber_t agno) xfs_ag_block_count() argument
163 __xfs_agino_range(struct xfs_mount * mp,xfs_agblock_t eoag,xfs_agino_t * first,xfs_agino_t * last) __xfs_agino_range() argument
187 xfs_agino_range(struct xfs_mount * mp,xfs_agnumber_t agno,xfs_agino_t * first,xfs_agino_t * last) xfs_agino_range() argument
201 xfs_update_last_ag_size(struct xfs_mount * mp,xfs_agnumber_t prev_agcount) xfs_update_last_ag_size() argument
219 xfs_perag_alloc(struct xfs_mount * mp,xfs_agnumber_t index,xfs_agnumber_t agcount,xfs_rfsblock_t dblocks) xfs_perag_alloc() argument
266 xfs_initialize_perag(struct xfs_mount * mp,xfs_agnumber_t orig_agcount,xfs_agnumber_t new_agcount,xfs_rfsblock_t dblocks,xfs_agnumber_t * maxagi) xfs_initialize_perag() argument
295 xfs_get_aghdr_buf(struct xfs_mount * mp,xfs_daddr_t blkno,size_t numblks,struct xfs_buf ** bpp,const struct xfs_buf_ops * ops) xfs_get_aghdr_buf() argument
320 xfs_btroot_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_btroot_init() argument
330 xfs_freesp_init_recs(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_freesp_init_recs() argument
386 xfs_bnoroot_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_bnoroot_init() argument
399 xfs_rmaproot_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_rmaproot_init() argument
478 xfs_sbblock_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_sbblock_init() argument
490 xfs_agfblock_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_agfblock_init() argument
537 xfs_agflblock_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_agflblock_init() argument
558 xfs_agiblock_init(struct xfs_mount * mp,struct xfs_buf * bp,struct aghdr_init_data * id) xfs_agiblock_init() argument
594 xfs_ag_init_hdr(struct xfs_mount * mp,struct aghdr_init_data * id,aghdr_init_work_f work,const struct xfs_buf_ops * ops) xfs_ag_init_hdr() argument
634 xfs_ag_init_headers(struct xfs_mount * mp,struct aghdr_init_data * id) xfs_ag_init_headers() argument
744 struct xfs_mount *mp = pag_mount(pag); xfs_ag_shrink_space() local
884 struct xfs_mount *mp = pag_mount(pag); xfs_ag_extend_space() local
[all...]
H A 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()
325 struct xfs_mount *mp, in xfs_validate_sb_write() argument
402 xfs_validate_sb_rtgroups(struct xfs_mount * mp,struct xfs_sb * sbp) xfs_validate_sb_rtgroups() argument
464 xfs_validate_sb_zoned(struct xfs_mount * mp,struct xfs_sb * sbp) xfs_validate_sb_zoned() argument
493 xfs_validate_sb_common(struct xfs_mount * mp,struct xfs_buf * bp,struct xfs_sb * sbp) xfs_validate_sb_common() argument
1093 struct xfs_mount *mp = bp->b_mount; xfs_sb_read_verify() local
1159 struct xfs_mount *mp = bp->b_mount; xfs_sb_write_verify() local
1206 xfs_sb_mount_rextsize(struct xfs_mount * mp,struct xfs_sb * sbp) xfs_sb_mount_rextsize() argument
1233 xfs_mount_sb_set_rextsize(struct xfs_mount * mp,struct xfs_sb * sbp,xfs_agblock_t rextsize) xfs_mount_sb_set_rextsize() argument
1257 xfs_sb_mount_common(struct xfs_mount * mp,struct xfs_sb * sbp) xfs_sb_mount_common() argument
1326 struct xfs_mount *mp = tp->t_mountp; xfs_log_sb() local
1374 xfs_sync_sb(struct xfs_mount * mp,bool wait) xfs_sync_sb() argument
1403 xfs_update_secondary_sbs(struct xfs_mount * mp) xfs_update_secondary_sbs() argument
1466 xfs_sync_sb_buf(struct xfs_mount * mp,bool update_rtsb) xfs_sync_sb_buf() argument
1505 xfs_fs_geometry(struct xfs_mount * mp,struct xfs_fsop_geom * geo,int struct_version) xfs_fs_geometry() argument
1617 xfs_sb_read_secondary(struct xfs_mount * mp,struct xfs_trans * tp,xfs_agnumber_t agno,struct xfs_buf ** bpp) xfs_sb_read_secondary() argument
1641 xfs_sb_get_secondary(struct xfs_mount * mp,struct xfs_trans * tp,xfs_agnumber_t agno,struct xfs_buf ** bpp) xfs_sb_get_secondary() argument
1669 xfs_validate_stripe_geometry(struct xfs_mount * mp,__s64 sunit,__s64 swidth,int sectorsize,bool may_repair,bool silent) xfs_validate_stripe_geometry() argument
[all...]
H A Dxfs_rtbitmap.c37 struct xfs_mount *mp = bp->b_mount; in xfs_rtbuf_verify() local
42 if (!xfs_has_rtgroups(mp)) in xfs_rtbuf_verify()
44 if (!xfs_has_crc(mp)) in xfs_rtbuf_verify()
46 if (!uuid_equal(&hdr->rt_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_rtbuf_verify()
57 struct xfs_mount *mp = bp->b_mount; in xfs_rtbuf_verify_read() local
61 if (!xfs_has_rtgroups(mp)) in xfs_rtbuf_verify_read()
64 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr->rt_lsn))) { in xfs_rtbuf_verify_read()
87 struct xfs_mount *mp = bp->b_mount; in xfs_rtbuf_verify_write() local
92 if (!xfs_has_rtgroups(mp)) in xfs_rtbuf_verify_write()
156 struct xfs_mount *mp in xfs_rtbuf_get() local
236 struct xfs_mount *mp = args->mp; xfs_rtbitmap_read_buf() local
251 struct xfs_mount *mp = args->mp; xfs_rtsummary_read_buf() local
270 struct xfs_mount *mp = args->mp; xfs_rtfind_back() local
424 struct xfs_mount *mp = args->mp; xfs_rtfind_forw() local
592 struct xfs_mount *mp = args->mp; xfs_rtmodify_summary() local
628 struct xfs_mount *mp = args->mp; xfs_rtget_summary() local
665 struct xfs_mount *mp = args->mp; xfs_rtmodify_range() local
803 struct xfs_mount *mp = args->mp; xfs_rtfree_range() local
879 struct xfs_mount *mp = args->mp; xfs_rtcheck_range() local
1057 struct xfs_mount *mp = tp->t_mountp; xfs_rtfree_extent() local
1122 struct xfs_mount *mp = tp->t_mountp; xfs_rtfree_blocks() local
1163 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtalloc_query_range() local
1256 xfs_rtbitmap_rtx_per_rbmblock(struct xfs_mount * mp) xfs_rtbitmap_rtx_per_rbmblock() argument
1272 xfs_rtbitmap_blockcount_len(struct xfs_mount * mp,xfs_rtbxlen_t rtextents) xfs_rtbitmap_blockcount_len() argument
1283 xfs_rtbitmap_bitcount(struct xfs_mount * mp) xfs_rtbitmap_bitcount() argument
1300 xfs_rtbitmap_blockcount(struct xfs_mount * mp) xfs_rtbitmap_blockcount() argument
1311 xfs_rtsummary_blockcount(struct xfs_mount * mp,unsigned int * rsumlevels) xfs_rtsummary_blockcount() argument
1334 struct xfs_mount *mp = ip->i_mount; xfs_rtfile_alloc_blocks() local
1372 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtfile_initialize_block() local
1441 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtfile_initialize_blocks() local
1481 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtbitmap_create() local
1499 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtsummary_create() local
[all...]
H A Dxfs_format.h467 #define XFS_SB_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_SB_DADDR) argument
469 #define XFS_HDR_BLOCK(mp,d) ((xfs_agblock_t)XFS_BB_TO_FSBT(mp,d)) argument
470 #define XFS_DADDR_TO_FSB(mp,d) XFS_AGB_TO_FSB(mp, \ argument
471 xfs_daddr_to_agno(mp,d), xfs_daddr_to_agbno(mp,d))
472 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
473 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
478 #define XFS_FSS_TO_BB(mp,sec) ((sec) << (mp)->m_sectbb_log) argument
483 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument
484 #define XFS_BB_TO_FSB(mp,bb) \ argument
485 (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
[all …]
H A Dxfs_rtgroup.h115 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
214 xfs_rtb_to_rgbno(struct xfs_mount * mp,xfs_rtblock_t rtbno) xfs_rtb_to_rgbno() argument
223 xfs_rtbno_is_group_start(struct xfs_mount * mp,xfs_rtblock_t rtbno) xfs_rtbno_is_group_start() argument
235 struct xfs_mount *mp = rtg_mount(rtg); xfs_rtx_to_rgbno() local
244 xfs_rtb_to_daddr(struct xfs_mount * mp,xfs_rtblock_t rtbno) xfs_rtb_to_daddr() argument
260 xfs_daddr_to_rtb(struct xfs_mount * mp,xfs_daddr_t daddr) xfs_daddr_to_rtb() argument
344 xfs_free_rtgroups(struct xfs_mount * mp,xfs_rgnumber_t first_rgno,xfs_rgnumber_t end_rgno) xfs_free_rtgroups() argument
349 xfs_initialize_rtgroups(struct xfs_mount * mp,xfs_rgnumber_t first_rgno,xfs_rgnumber_t end_rgno,xfs_rtbxlen_t rextents) xfs_initialize_rtgroups() argument
356 xfs_rtgroup_extents(mp,rgno) global() argument
357 xfs_update_last_rtgroup_size(mp,rgno) global() argument
368 xfs_rtgs_to_rfsbs(struct xfs_mount * mp,uint32_t nr_groups) xfs_rtgs_to_rfsbs() argument
[all...]
/linux/drivers/media/usb/pvrusb2/
H A 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/fs/jfs/
H A Djfs_metapage.c34 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument
35 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument
37 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument
39 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
40 wake_up(&mp->wait); in unlock_metapage()
43 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument
47 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
50 if (metapage_locked(mp)) { in __lock_metapage()
51 folio_unlock(mp->folio); in __lock_metapage()
53 folio_lock(mp->folio); in __lock_metapage()
[all …]
H A 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/drivers/net/ethernet/apple/
H A 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 …]
/linux/drivers/net/ethernet/marvell/
H A 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/drivers/scsi/sym53c8xx_2/
H A 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/drivers/pci/controller/dwc/
H A Dpci-meson.c74 static struct reset_control *meson_pcie_get_reset(struct meson_pcie *mp, in meson_pcie_get_reset() argument
78 struct device *dev = mp->pci.dev; in meson_pcie_get_reset()
89 static int meson_pcie_get_resets(struct meson_pcie *mp) in meson_pcie_get_resets() argument
91 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets()
93 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets()
98 mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET); in meson_pcie_get_resets()
107 struct meson_pcie *mp) in meson_pcie_get_mems() argument
109 struct dw_pcie *pci = &mp->pci; in meson_pcie_get_mems()
127 mp->cfg_base = devm_platform_ioremap_resource_byname(pdev, "cfg"); in meson_pcie_get_mems()
128 if (IS_ERR(mp->cfg_base)) in meson_pcie_get_mems()
[all …]
/linux/drivers/isdn/capi/
H A 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 …]

12345678910>>...13