mp                253 arch/arc/include/asm/entry.h 	GET_CPU_ID  \tmp
mp                254 arch/arc/include/asm/entry.h 	add2 \tmp, @_current_task, \tmp
mp                255 arch/arc/include/asm/entry.h 	st   \tsk, [\tmp]
mp                 81 arch/arc/kernel/mcip.c 	struct mcip_bcr mp;
mp                 83 arch/arc/kernel/mcip.c 	READ_BCR(ARC_REG_MCIP_BCR, mp);
mp                 89 arch/arc/kernel/mcip.c 	if (mp.gfrc)
mp                 93 arch/arc/kernel/mcip.c 	if (mp.dbg)
mp                157 arch/arc/kernel/mcip.c 	struct mcip_bcr mp;
mp                159 arch/arc/kernel/mcip.c 	READ_BCR(ARC_REG_MCIP_BCR, mp);
mp                163 arch/arc/kernel/mcip.c 		mp.ver, mp.num_cores,
mp                164 arch/arc/kernel/mcip.c 		IS_AVAIL1(mp.ipi, "IPI "),
mp                165 arch/arc/kernel/mcip.c 		IS_AVAIL1(mp.idu, "IDU "),
mp                166 arch/arc/kernel/mcip.c 		IS_AVAIL1(mp.dbg, "DEBUG "),
mp                167 arch/arc/kernel/mcip.c 		IS_AVAIL1(mp.gfrc, "GFRC"));
mp                169 arch/arc/kernel/mcip.c 	cpuinfo_arc700[0].extn.gfrc = mp.gfrc;
mp                385 arch/arc/kernel/mcip.c 	struct mcip_bcr mp;
mp                388 arch/arc/kernel/mcip.c 	READ_BCR(ARC_REG_MCIP_BCR, mp);
mp                390 arch/arc/kernel/mcip.c 	if (!mp.idu)
mp                217 arch/arm/include/asm/assembler.h 	ldr	\tmp, [\ti, #TI_PREEMPT]	@ get preempt count
mp                218 arch/arm/include/asm/assembler.h 	add	\tmp, \tmp, #1			@ increment it
mp                219 arch/arm/include/asm/assembler.h 	str	\tmp, [\ti, #TI_PREEMPT]
mp                223 arch/arm/include/asm/assembler.h 	ldr	\tmp, [\ti, #TI_PREEMPT]	@ get preempt count
mp                224 arch/arm/include/asm/assembler.h 	sub	\tmp, \tmp, #1			@ decrement it
mp                225 arch/arm/include/asm/assembler.h 	str	\tmp, [\ti, #TI_PREEMPT]
mp                230 arch/arm/include/asm/assembler.h 	dec_preempt_count \ti, \tmp
mp                 21 arch/arm/include/asm/uaccess-asm.h 	adds	\tmp, \addr, #\size - 1
mp                 22 arch/arm/include/asm/uaccess-asm.h 	sbcscc	\tmp, \tmp, \limit
mp                 33 arch/arm/include/asm/uaccess-asm.h 	sub	\tmp, \limit, #1
mp                 34 arch/arm/include/asm/uaccess-asm.h 	subs	\tmp, \tmp, \addr	@ tmp = limit - 1 - addr
mp                 35 arch/arm/include/asm/uaccess-asm.h 	addhs	\tmp, \tmp, #1		@ if (tmp >= 0) {
mp                 36 arch/arm/include/asm/uaccess-asm.h 	subshs	\tmp, \tmp, \size	@ tmp = limit - (addr + size) }
mp                 48 arch/arm/include/asm/uaccess-asm.h 	mov	\tmp, #DACR_UACCESS_DISABLE
mp                 49 arch/arm/include/asm/uaccess-asm.h 	mcr	p15, 0, \tmp, c3, c0, 0		@ Set domain register
mp                 62 arch/arm/include/asm/uaccess-asm.h 	mov	\tmp, #DACR_UACCESS_ENABLE
mp                 63 arch/arm/include/asm/uaccess-asm.h 	mcr	p15, 0, \tmp, c3, c0, 0
mp                 29 arch/arm/include/asm/vfpmacros.h 	ldr	\tmp, =elf_hwcap		    @ may not have MVFR regs
mp                 30 arch/arm/include/asm/vfpmacros.h 	ldr	\tmp, [\tmp, #0]
mp                 31 arch/arm/include/asm/vfpmacros.h 	tst	\tmp, #HWCAP_VFPD32
mp                 35 arch/arm/include/asm/vfpmacros.h 	VFPFMRX	\tmp, MVFR0			    @ Media and VFP Feature Register 0
mp                 36 arch/arm/include/asm/vfpmacros.h 	and	\tmp, \tmp, #MVFR0_A_SIMD_MASK	    @ A_SIMD field
mp                 37 arch/arm/include/asm/vfpmacros.h 	cmp	\tmp, #2			    @ 32 x 64bit registers?
mp                 53 arch/arm/include/asm/vfpmacros.h 	ldr	\tmp, =elf_hwcap		    @ may not have MVFR regs
mp                 54 arch/arm/include/asm/vfpmacros.h 	ldr	\tmp, [\tmp, #0]
mp                 55 arch/arm/include/asm/vfpmacros.h 	tst	\tmp, #HWCAP_VFPD32
mp                 59 arch/arm/include/asm/vfpmacros.h 	VFPFMRX	\tmp, MVFR0			    @ Media and VFP Feature Register 0
mp                 60 arch/arm/include/asm/vfpmacros.h 	and	\tmp, \tmp, #MVFR0_A_SIMD_MASK	    @ A_SIMD field
mp                 61 arch/arm/include/asm/vfpmacros.h 	cmp	\tmp, #2			    @ 32 x 64bit registers?
mp                 16 arch/arm/lib/bitops.h 	.arch_extension	mp
mp                 43 arch/arm/lib/bitops.h 	.arch_extension	mp
mp                 45 arch/arm/mach-tegra/sleep.h 1001:	ldr	\tmp, [\base]
mp                 46 arch/arm/mach-tegra/sleep.h 	cmp	\tmp, \rn
mp                 45 arch/arm64/include/asm/assembler.h 	and	\tmp, \pstate, #(PSR_D_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT)
mp                 46 arch/arm64/include/asm/assembler.h 	msr	daif, \tmp
mp                 72 arch/arm64/include/asm/assembler.h 	mrs	\tmp, mdscr_el1
mp                 73 arch/arm64/include/asm/assembler.h 	bic	\tmp, \tmp, #DBG_MDSCR_SS
mp                 74 arch/arm64/include/asm/assembler.h 	msr	mdscr_el1, \tmp
mp                 82 arch/arm64/include/asm/assembler.h 	mrs	\tmp, mdscr_el1
mp                 83 arch/arm64/include/asm/assembler.h 	orr	\tmp, \tmp, #DBG_MDSCR_SS
mp                 84 arch/arm64/include/asm/assembler.h 	msr	mdscr_el1, \tmp
mp                214 arch/arm64/include/asm/assembler.h 	.ifb	\tmp
mp                218 arch/arm64/include/asm/assembler.h 	adrp	\tmp, \sym
mp                219 arch/arm64/include/asm/assembler.h 	ldr	\dst, [\tmp, :lo12:\sym]
mp                230 arch/arm64/include/asm/assembler.h 	adrp	\tmp, \sym
mp                231 arch/arm64/include/asm/assembler.h 	str	\src, [\tmp, :lo12:\sym]
mp                240 arch/arm64/include/asm/assembler.h 	adrp	\tmp, \sym
mp                241 arch/arm64/include/asm/assembler.h 	add	\dst, \tmp, #:lo12:\sym
mp                243 arch/arm64/include/asm/assembler.h 	mrs	\tmp, tpidr_el1
mp                245 arch/arm64/include/asm/assembler.h 	mrs	\tmp, tpidr_el2
mp                247 arch/arm64/include/asm/assembler.h 	add	\dst, \dst, \tmp
mp                258 arch/arm64/include/asm/assembler.h 	mrs	\tmp, tpidr_el1
mp                260 arch/arm64/include/asm/assembler.h 	mrs	\tmp, tpidr_el2
mp                262 arch/arm64/include/asm/assembler.h 	ldr	\dst, [\dst, \tmp]
mp                297 arch/arm64/include/asm/assembler.h 	mrs	\tmp, ctr_el0			// read CTR
mp                298 arch/arm64/include/asm/assembler.h 	ubfm	\tmp, \tmp, #16, #19		// cache line size encoding
mp                300 arch/arm64/include/asm/assembler.h 	lsl	\reg, \reg, \tmp		// actual cache line size
mp                307 arch/arm64/include/asm/assembler.h 	read_ctr	\tmp
mp                308 arch/arm64/include/asm/assembler.h 	ubfm		\tmp, \tmp, #16, #19	// cache line size encoding
mp                310 arch/arm64/include/asm/assembler.h 	lsl		\reg, \reg, \tmp	// actual cache line size
mp                318 arch/arm64/include/asm/assembler.h 	mrs	\tmp, ctr_el0			// read CTR
mp                319 arch/arm64/include/asm/assembler.h 	and	\tmp, \tmp, #0xf		// cache line size encoding
mp                321 arch/arm64/include/asm/assembler.h 	lsl	\reg, \reg, \tmp		// actual cache line size
mp                328 arch/arm64/include/asm/assembler.h 	read_ctr	\tmp
mp                329 arch/arm64/include/asm/assembler.h 	and		\tmp, \tmp, #0xf	// cache line size encoding
mp                331 arch/arm64/include/asm/assembler.h 	lsl		\reg, \reg, \tmp	// actual cache line size
mp                539 arch/arm64/include/asm/assembler.h 	mrs_s	\tmp, SYS_ID_AA64MMFR2_EL1
mp                540 arch/arm64/include/asm/assembler.h 	and	\tmp, \tmp, #(0xf << ID_AA64MMFR2_LVA_SHIFT)
mp                541 arch/arm64/include/asm/assembler.h 	cbnz	\tmp, .Lskipoffs_\@
mp                 37 arch/arm64/include/asm/fpsimdmacros.h 	mrs	\tmp, fpcr
mp                 38 arch/arm64/include/asm/fpsimdmacros.h 	cmp	\tmp, \state
mp                 95 arch/arm64/include/asm/kvm_asm.h 	mrs	\tmp, tpidr_el2
mp                 96 arch/arm64/include/asm/kvm_asm.h 	add	\reg, \reg, \tmp
mp                101 arch/arm64/include/asm/kvm_asm.h 	mrs	\tmp, tpidr_el2
mp                102 arch/arm64/include/asm/kvm_asm.h 	ldr	\reg,  [\reg, \tmp]
mp                106 arch/arm64/include/asm/kvm_asm.h 	hyp_adr_this_cpu \reg, kvm_host_data, \tmp
mp                 19 arch/mips/include/asm/asmmacro-32.h 	cfc1	\tmp,  fcr31
mp                 36 arch/mips/include/asm/asmmacro-32.h 	sw	\tmp, THREAD_FCR31(\thread)
mp                 43 arch/mips/include/asm/asmmacro-32.h 	lw	\tmp, THREAD_FCR31(\thread)
mp                 60 arch/mips/include/asm/asmmacro-32.h 	ctc1	\tmp, fcr31
mp                 87 arch/mips/include/asm/asmmacro.h 	cfc1	\tmp, fcr31
mp                104 arch/mips/include/asm/asmmacro.h 	sw	\tmp, THREAD_FCR31(\thread)
mp                135 arch/mips/include/asm/asmmacro.h 	sll	\tmp, \status, 5
mp                136 arch/mips/include/asm/asmmacro.h 	bgez	\tmp, 10f
mp                140 arch/mips/include/asm/asmmacro.h 	fpu_save_16even \thread \tmp
mp                146 arch/mips/include/asm/asmmacro.h 	lw	\tmp, THREAD_FCR31(\thread)
mp                163 arch/mips/include/asm/asmmacro.h 	ctc1	\tmp, fcr31
mp                194 arch/mips/include/asm/asmmacro.h 	sll	\tmp, \status, 5
mp                195 arch/mips/include/asm/asmmacro.h 	bgez	\tmp, 10f				# 16 register mode?
mp                200 arch/mips/include/asm/asmmacro.h 	fpu_restore_16even \thread \tmp
mp                120 arch/powerpc/mm/book3s32/tlb.c 	struct vm_area_struct *mp;
mp                133 arch/powerpc/mm/book3s32/tlb.c 	for (mp = mm->mmap; mp != NULL; mp = mp->vm_next)
mp                134 arch/powerpc/mm/book3s32/tlb.c 		flush_range(mp->vm_mm, mp->vm_start, mp->vm_end);
mp                333 arch/sparc/include/asm/vio.h 	u64			mp;
mp                253 arch/sparc/kernel/chmc.c 		struct chmc_obp_map *mp;
mp                258 arch/sparc/kernel/chmc.c 			mp = &p->map[0];
mp                260 arch/sparc/kernel/chmc.c 			mp = &p->map[1];
mp                266 arch/sparc/kernel/chmc.c 		map_val = mp->dimm_map[dimm_map_index];
mp                269 arch/sparc/kernel/chmc.c 		*pin_p = mp->pin_map[cache_line_offset];
mp               1181 arch/sparc/kernel/ds.c 	val = mdesc_get_property(hp, vdev->mp, "id", NULL);
mp               2392 arch/sparc/kernel/ldc.c 	u64 mp;
mp               2398 arch/sparc/kernel/ldc.c 	mp = mdesc_node_by_name(hp, MDESC_NODE_NULL, "platform");
mp               2400 arch/sparc/kernel/ldc.c 	if (mp == MDESC_NODE_NULL)
mp               2403 arch/sparc/kernel/ldc.c 	v = mdesc_get_property(hp, mp, "domaining-enabled", NULL);
mp                817 arch/sparc/kernel/mdesc.c static void fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp)
mp                819 arch/sparc/kernel/mdesc.c 	const u64 *level = mdesc_get_property(hp, mp, "level", NULL);
mp                820 arch/sparc/kernel/mdesc.c 	const u64 *size = mdesc_get_property(hp, mp, "size", NULL);
mp                821 arch/sparc/kernel/mdesc.c 	const u64 *line_size = mdesc_get_property(hp, mp, "line-size", NULL);
mp                825 arch/sparc/kernel/mdesc.c 	type = mdesc_get_property(hp, mp, "type", &type_len);
mp                850 arch/sparc/kernel/mdesc.c 		mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) {
mp                907 arch/sparc/kernel/mdesc.c static void mark_core_ids(struct mdesc_handle *hp, u64 mp,
mp                910 arch/sparc/kernel/mdesc.c 	find_back_node_value(hp, mp, "cpu", __mark_core_id, core_id, 10);
mp                913 arch/sparc/kernel/mdesc.c static void mark_max_cache_ids(struct mdesc_handle *hp, u64 mp,
mp                916 arch/sparc/kernel/mdesc.c 	find_back_node_value(hp, mp, "cpu", __mark_max_cache_id,
mp                923 arch/sparc/kernel/mdesc.c 	u64 mp;
mp                930 arch/sparc/kernel/mdesc.c 	mdesc_for_each_node_by_name(hp, mp, "cache") {
mp                935 arch/sparc/kernel/mdesc.c 		level = mdesc_get_property(hp, mp, "level", NULL);
mp                939 arch/sparc/kernel/mdesc.c 		type = mdesc_get_property(hp, mp, "type", &len);
mp                943 arch/sparc/kernel/mdesc.c 		mark_core_ids(hp, mp, idx);
mp                950 arch/sparc/kernel/mdesc.c 	u64 mp;
mp                958 arch/sparc/kernel/mdesc.c 	mdesc_for_each_node_by_name(hp, mp, "cache") {
mp                961 arch/sparc/kernel/mdesc.c 		cur_lvl = mdesc_get_property(hp, mp, "level", NULL);
mp                964 arch/sparc/kernel/mdesc.c 		mark_max_cache_ids(hp, mp, idx);
mp                971 arch/sparc/kernel/mdesc.c static void set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp)
mp                975 arch/sparc/kernel/mdesc.c 	mdesc_for_each_node_by_name(hp, mp, "socket") {
mp                978 arch/sparc/kernel/mdesc.c 		mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) {
mp                997 arch/sparc/kernel/mdesc.c 	u64 mp;
mp               1007 arch/sparc/kernel/mdesc.c 	mp = mdesc_node_by_name(hp, MDESC_NODE_NULL, "sockets");
mp               1008 arch/sparc/kernel/mdesc.c 	if (mp != MDESC_NODE_NULL)
mp               1009 arch/sparc/kernel/mdesc.c 		set_sock_ids_by_socket(hp, mp);
mp               1012 arch/sparc/kernel/mdesc.c static void mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id)
mp               1016 arch/sparc/kernel/mdesc.c 	mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_BACK) {
mp               1034 arch/sparc/kernel/mdesc.c 	u64 mp;
mp               1037 arch/sparc/kernel/mdesc.c 	mdesc_for_each_node_by_name(hp, mp, exec_unit_name) {
mp               1041 arch/sparc/kernel/mdesc.c 		type = mdesc_get_property(hp, mp, "type", &len);
mp               1046 arch/sparc/kernel/mdesc.c 		mark_proc_ids(hp, mp, idx);
mp               1079 arch/sparc/kernel/mdesc.c static void get_mondo_data(struct mdesc_handle *hp, u64 mp,
mp               1085 arch/sparc/kernel/mdesc.c 	val = mdesc_get_property(hp, mp, "q-cpu-mondo-#bits", NULL);
mp               1088 arch/sparc/kernel/mdesc.c 	val = mdesc_get_property(hp, mp, "q-dev-mondo-#bits", NULL);
mp               1091 arch/sparc/kernel/mdesc.c 	val = mdesc_get_property(hp, mp, "q-resumable-#bits", NULL);
mp               1094 arch/sparc/kernel/mdesc.c 	val = mdesc_get_property(hp, mp, "q-nonresumable-#bits", NULL);
mp               1110 arch/sparc/kernel/mdesc.c 	u64 mp;
mp               1112 arch/sparc/kernel/mdesc.c 	mdesc_for_each_node_by_name(hp, mp, "cpu") {
mp               1113 arch/sparc/kernel/mdesc.c 		const u64 *id = mdesc_get_property(hp, mp, "id", NULL);
mp               1127 arch/sparc/kernel/mdesc.c 		ret = func(hp, mp, cpuid, arg);
mp               1136 arch/sparc/kernel/mdesc.c static void *record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid,
mp               1155 arch/sparc/kernel/mdesc.c static void * __init check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg)
mp               1157 arch/sparc/kernel/mdesc.c 	const u64 *pgsz_prop = mdesc_get_property(hp, mp, "mmu-page-size-list", NULL);
mp               1179 arch/sparc/kernel/mdesc.c static void *fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid,
mp               1182 arch/sparc/kernel/mdesc.c 	const u64 *cfreq = mdesc_get_property(hp, mp, "clock-frequency", NULL);
mp               1201 arch/sparc/kernel/mdesc.c 	get_mondo_data(hp, mp, tb);
mp               1203 arch/sparc/kernel/mdesc.c 	mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) {
mp                252 arch/sparc/kernel/vio.c static void vio_fill_channel_info(struct mdesc_handle *hp, u64 mp,
mp                260 arch/sparc/kernel/vio.c 	mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) {
mp                292 arch/sparc/kernel/vio.c static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp,
mp                302 arch/sparc/kernel/vio.c 	type = mdesc_get_property(hp, mp, "device-type", &tlen);
mp                304 arch/sparc/kernel/vio.c 		type = mdesc_get_property(hp, mp, "name", &tlen);
mp                306 arch/sparc/kernel/vio.c 			type = mdesc_node_name(hp, mp);
mp                316 arch/sparc/kernel/vio.c 	id = mdesc_get_property(hp, mp, "id", NULL);
mp                318 arch/sparc/kernel/vio.c 	cfg_handle = vio_cfg_handle(hp, mp);
mp                320 arch/sparc/kernel/vio.c 	compat = mdesc_get_property(hp, mp, "device-type", &clen);
mp                335 arch/sparc/kernel/vio.c 	vdev->mp = mp;
mp                347 arch/sparc/kernel/vio.c 	vio_fill_channel_info(hp, mp, vdev);
mp                386 arch/sparc/kernel/vio.c 		err = mdesc_get_node_info(hp, mp, node_name,
mp                 38 arch/x86/kernel/mpparse.c static int __init mpf_checksum(unsigned char *mp, int len)
mp                 43 arch/x86/kernel/mpparse.c 		sum += *mp++;
mp                148 crypto/vmac.c  #define nh_16(mp, kp, nw, rh, rl)					\
mp                153 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
mp                154 crypto/vmac.c  				pe64_to_cpup((mp)+i+1)+(kp)[i+1]);	\
mp                159 crypto/vmac.c  #define nh_16_2(mp, kp, nw, rh, rl, rh1, rl1)				\
mp                164 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
mp                165 crypto/vmac.c  				pe64_to_cpup((mp)+i+1)+(kp)[i+1]);	\
mp                167 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2],	\
mp                168 crypto/vmac.c  				pe64_to_cpup((mp)+i+1)+(kp)[i+3]);	\
mp                174 crypto/vmac.c  #define nh_vmac_nhbytes(mp, kp, nw, rh, rl)				\
mp                179 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
mp                180 crypto/vmac.c  				pe64_to_cpup((mp)+i+1)+(kp)[i+1]);	\
mp                182 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+2],	\
mp                183 crypto/vmac.c  				pe64_to_cpup((mp)+i+3)+(kp)[i+3]);	\
mp                185 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+4],	\
mp                186 crypto/vmac.c  				pe64_to_cpup((mp)+i+5)+(kp)[i+5]);	\
mp                188 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+6],	\
mp                189 crypto/vmac.c  				pe64_to_cpup((mp)+i+7)+(kp)[i+7]);	\
mp                194 crypto/vmac.c  #define nh_vmac_nhbytes_2(mp, kp, nw, rh, rl, rh1, rl1)			\
mp                199 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
mp                200 crypto/vmac.c  				pe64_to_cpup((mp)+i+1)+(kp)[i+1]);	\
mp                202 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2],	\
mp                203 crypto/vmac.c  				pe64_to_cpup((mp)+i+1)+(kp)[i+3]);	\
mp                205 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+2],	\
mp                206 crypto/vmac.c  				pe64_to_cpup((mp)+i+3)+(kp)[i+3]);	\
mp                208 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+4],	\
mp                209 crypto/vmac.c  				pe64_to_cpup((mp)+i+3)+(kp)[i+5]);	\
mp                211 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+4],	\
mp                212 crypto/vmac.c  				pe64_to_cpup((mp)+i+5)+(kp)[i+5]);	\
mp                214 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+6],	\
mp                215 crypto/vmac.c  				pe64_to_cpup((mp)+i+5)+(kp)[i+7]);	\
mp                217 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+6],	\
mp                218 crypto/vmac.c  				pe64_to_cpup((mp)+i+7)+(kp)[i+7]);	\
mp                220 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+8],	\
mp                221 crypto/vmac.c  				pe64_to_cpup((mp)+i+7)+(kp)[i+9]);	\
mp                253 crypto/vmac.c  #define nh_16(mp, kp, nw, rh, rl)					\
mp                259 crypto/vmac.c  			t1 = pe64_to_cpup(mp+i) + kp[i];		\
mp                260 crypto/vmac.c  			t2 = pe64_to_cpup(mp+i+1) + kp[i+1];		\
mp                340 crypto/vmac.c  #define nh_16_2(mp, kp, nw, rh, rl, rh2, rl2)				\
mp                342 crypto/vmac.c  		nh_16(mp, kp, nw, rh, rl);				\
mp                343 crypto/vmac.c  		nh_16(mp, ((kp)+2), nw, rh2, rl2);			\
mp                347 crypto/vmac.c  #define nh_vmac_nhbytes(mp, kp, nw, rh, rl)				\
mp                348 crypto/vmac.c  	nh_16(mp, kp, nw, rh, rl)
mp                351 crypto/vmac.c  #define nh_vmac_nhbytes_2(mp, kp, nw, rh, rl, rh2, rl2)			\
mp                353 crypto/vmac.c  		nh_vmac_nhbytes(mp, kp, nw, rh, rl);			\
mp                354 crypto/vmac.c  		nh_vmac_nhbytes(mp, ((kp)+2), nw, rh2, rl2);		\
mp                346 drivers/block/aoe/aoeblk.c 	mempool_t *mp;
mp                372 drivers/block/aoe/aoeblk.c 	mp = mempool_create(MIN_BUFS, mempool_alloc_slab, mempool_free_slab,
mp                374 drivers/block/aoe/aoeblk.c 	if (mp == NULL) {
mp                411 drivers/block/aoe/aoeblk.c 	d->bufpool = mp;
mp                440 drivers/block/aoe/aoeblk.c 	mempool_destroy(mp);
mp                129 drivers/block/aoe/aoechr.c 	char *mp;
mp                142 drivers/block/aoe/aoechr.c 	mp = kmemdup(msg, n, GFP_ATOMIC);
mp                143 drivers/block/aoe/aoechr.c 	if (mp == NULL) {
mp                148 drivers/block/aoe/aoechr.c 	em->msg = mp;
mp                216 drivers/block/aoe/aoechr.c 	char *mp;
mp                254 drivers/block/aoe/aoechr.c 	mp = em->msg;
mp                264 drivers/block/aoe/aoechr.c 	n = copy_to_user(buf, mp, len);
mp                265 drivers/block/aoe/aoechr.c 	kfree(mp);
mp               1023 drivers/block/sunvdc.c 	ldc_timeout = mdesc_get_property(hp, vdev->mp, "vdc-timeout", NULL);
mp                105 drivers/clocksource/arc_timer.c 	struct mcip_bcr mp;
mp                108 drivers/clocksource/arc_timer.c 	READ_BCR(ARC_REG_MCIP_BCR, mp);
mp                109 drivers/clocksource/arc_timer.c 	if (!mp.gfrc) {
mp               2076 drivers/crypto/n2_core.c 	struct n2_mau *mp = kzalloc(sizeof(struct n2_mau), GFP_KERNEL);
mp               2078 drivers/crypto/n2_core.c 	if (mp)
mp               2079 drivers/crypto/n2_core.c 		INIT_LIST_HEAD(&mp->mau_list);
mp               2081 drivers/crypto/n2_core.c 	return mp;
mp               2084 drivers/crypto/n2_core.c static void free_ncp(struct n2_mau *mp)
mp               2086 drivers/crypto/n2_core.c 	kfree(mp->mau_info.ino_table);
mp               2087 drivers/crypto/n2_core.c 	mp->mau_info.ino_table = NULL;
mp               2089 drivers/crypto/n2_core.c 	kfree(mp);
mp               2095 drivers/crypto/n2_core.c 	struct n2_mau *mp;
mp               2102 drivers/crypto/n2_core.c 	mp = alloc_ncp();
mp               2103 drivers/crypto/n2_core.c 	if (!mp) {
mp               2125 drivers/crypto/n2_core.c 	err = grab_mdesc_irq_props(mdesc, dev, &mp->mau_info, "ncp");
mp               2133 drivers/crypto/n2_core.c 	err = spu_mdesc_scan(mdesc, dev, &mp->mau_info, &mp->mau_list,
mp               2144 drivers/crypto/n2_core.c 	dev_set_drvdata(&dev->dev, mp);
mp               2152 drivers/crypto/n2_core.c 	free_ncp(mp);
mp               2159 drivers/crypto/n2_core.c 	struct n2_mau *mp = dev_get_drvdata(&dev->dev);
mp               2161 drivers/crypto/n2_core.c 	spu_list_destroy(&mp->mau_list);
mp               2165 drivers/crypto/n2_core.c 	free_ncp(mp);
mp                272 drivers/gpu/drm/arm/malidp_crtc.c 		struct malidp_plane *mp = to_malidp_plane(plane);
mp                275 drivers/gpu/drm/arm/malidp_crtc.c 		if (!(mp->layer->id & scaling))
mp                322 drivers/gpu/drm/arm/malidp_crtc.c 		s->plane_src_id = mp->layer->id;
mp                391 drivers/gpu/drm/arm/malidp_crtc.c 		struct malidp_plane *mp = to_malidp_plane(plane);
mp                403 drivers/gpu/drm/arm/malidp_crtc.c 				if ((mp->layer->id != DE_VIDEO1) ||
mp                 72 drivers/gpu/drm/arm/malidp_planes.c 	struct malidp_plane *mp = to_malidp_plane(plane);
mp                 75 drivers/gpu/drm/arm/malidp_planes.c 	kfree(mp);
mp                270 drivers/gpu/drm/arm/malidp_planes.c static int malidp_se_check_scaling(struct malidp_plane *mp,
mp                299 drivers/gpu/drm/arm/malidp_planes.c 		mc->scaled_planes_mask &= ~(mp->layer->id);
mp                303 drivers/gpu/drm/arm/malidp_planes.c 	if (mp->layer->id & (DE_SMART | DE_GRAPHICS2))
mp                306 drivers/gpu/drm/arm/malidp_planes.c 	mc->scaled_planes_mask |= mp->layer->id;
mp                311 drivers/gpu/drm/arm/malidp_planes.c static u32 malidp_get_pgsize_bitmap(struct malidp_plane *mp)
mp                317 drivers/gpu/drm/arm/malidp_planes.c 			iommu_get_domain_for_dev(mp->base.dev->dev);
mp                492 drivers/gpu/drm/arm/malidp_planes.c static void malidp_de_prefetch_settings(struct malidp_plane *mp,
mp                495 drivers/gpu/drm/arm/malidp_planes.c 	if (!mp->layer->mmu_ctrl_offset)
mp                499 drivers/gpu/drm/arm/malidp_planes.c 	ms->mmu_prefetch_pgsize = malidp_get_pgsize_bitmap(mp);
mp                507 drivers/gpu/drm/arm/malidp_planes.c 	struct malidp_plane *mp = to_malidp_plane(plane);
mp                520 drivers/gpu/drm/arm/malidp_planes.c 	ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map,
mp                521 drivers/gpu/drm/arm/malidp_planes.c 					     mp->layer->id, fb->format->format,
mp                528 drivers/gpu/drm/arm/malidp_planes.c 		u8 alignment = malidp_hw_get_pitch_align(mp->hwdev, rotated);
mp                549 drivers/gpu/drm/arm/malidp_planes.c 	if ((state->crtc_w > mp->hwdev->max_line_size) ||
mp                550 drivers/gpu/drm/arm/malidp_planes.c 	    (state->crtc_h > mp->hwdev->max_line_size) ||
mp                551 drivers/gpu/drm/arm/malidp_planes.c 	    (state->crtc_w < mp->hwdev->min_line_size) ||
mp                552 drivers/gpu/drm/arm/malidp_planes.c 	    (state->crtc_h < mp->hwdev->min_line_size))
mp                561 drivers/gpu/drm/arm/malidp_planes.c 	    !(mp->hwdev->hw->features & MALIDP_DEVICE_LV_HAS_3_STRIDES) &&
mp                565 drivers/gpu/drm/arm/malidp_planes.c 	ret = malidp_se_check_scaling(mp, state);
mp                571 drivers/gpu/drm/arm/malidp_planes.c 		if (mp->layer->rot == ROTATE_NONE)
mp                573 drivers/gpu/drm/arm/malidp_planes.c 		if ((mp->layer->rot == ROTATE_COMPRESSED) && !(fb->modifier))
mp                585 drivers/gpu/drm/arm/malidp_planes.c 	if (mp->layer->id == DE_SMART && fb->modifier) {
mp                594 drivers/gpu/drm/arm/malidp_planes.c 		val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_w,
mp                610 drivers/gpu/drm/arm/malidp_planes.c 	malidp_de_prefetch_settings(mp, ms);
mp                615 drivers/gpu/drm/arm/malidp_planes.c static void malidp_de_set_plane_pitches(struct malidp_plane *mp,
mp                621 drivers/gpu/drm/arm/malidp_planes.c 	if (!mp->layer->stride_offset)
mp                625 drivers/gpu/drm/arm/malidp_planes.c 		num_strides = (mp->hwdev->hw->features &
mp                634 drivers/gpu/drm/arm/malidp_planes.c 		unsigned int block_h = drm_format_info_block_height(mp->base.state->fb->format, i);
mp                636 drivers/gpu/drm/arm/malidp_planes.c 		malidp_hw_write(mp->hwdev, pitches[i] * block_h,
mp                637 drivers/gpu/drm/arm/malidp_planes.c 				mp->layer->base +
mp                638 drivers/gpu/drm/arm/malidp_planes.c 				mp->layer->stride_offset + i * 4);
mp                696 drivers/gpu/drm/arm/malidp_planes.c static void malidp_de_set_mmu_control(struct malidp_plane *mp,
mp                702 drivers/gpu/drm/arm/malidp_planes.c 	if (!mp->layer->mmu_ctrl_offset)
mp                710 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, mmu_ctrl,
mp                711 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->base + mp->layer->mmu_ctrl_offset);
mp                715 drivers/gpu/drm/arm/malidp_planes.c 				       struct malidp_plane *mp,
mp                720 drivers/gpu/drm/arm/malidp_planes.c 	struct drm_plane *plane = &mp->base;
mp                723 drivers/gpu/drm/arm/malidp_planes.c 	ptr = mp->layer->ptr + (plane_index << 4);
mp                745 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, lower_32_bits(paddr), ptr);
mp                746 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, upper_32_bits(paddr), ptr + 4);
mp                751 drivers/gpu/drm/arm/malidp_planes.c 	struct malidp_plane *mp;
mp                755 drivers/gpu/drm/arm/malidp_planes.c 	mp = to_malidp_plane(plane);
mp                758 drivers/gpu/drm/arm/malidp_planes.c 	if (!mp->layer->afbc_decoder_offset)
mp                762 drivers/gpu/drm/arm/malidp_planes.c 		malidp_hw_write(mp->hwdev, 0, mp->layer->afbc_decoder_offset);
mp                774 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, val,
mp                775 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->afbc_decoder_offset + MALIDP_AD_CROP_H);
mp                779 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, val,
mp                780 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->afbc_decoder_offset + MALIDP_AD_CROP_V);
mp                788 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, val, mp->layer->afbc_decoder_offset);
mp                794 drivers/gpu/drm/arm/malidp_planes.c 	struct malidp_plane *mp;
mp                803 drivers/gpu/drm/arm/malidp_planes.c 	mp = to_malidp_plane(plane);
mp                821 drivers/gpu/drm/arm/malidp_planes.c 	val = malidp_hw_read(mp->hwdev, mp->layer->base);
mp                823 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, val, mp->layer->base);
mp                826 drivers/gpu/drm/arm/malidp_planes.c 		malidp_set_plane_base_addr(fb, mp, i);
mp                828 drivers/gpu/drm/arm/malidp_planes.c 	malidp_de_set_mmu_control(mp, ms);
mp                830 drivers/gpu/drm/arm/malidp_planes.c 	malidp_de_set_plane_pitches(mp, ms->n_planes,
mp                835 drivers/gpu/drm/arm/malidp_planes.c 		malidp_de_set_color_encoding(mp, plane->state->color_encoding,
mp                838 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, LAYER_H_VAL(src_w) | LAYER_V_VAL(src_h),
mp                839 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->base + MALIDP_LAYER_SIZE);
mp                841 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, LAYER_H_VAL(dest_w) | LAYER_V_VAL(dest_h),
mp                842 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->base + MALIDP_LAYER_COMP_SIZE);
mp                844 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, LAYER_H_VAL(state->crtc_x) |
mp                846 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->base + MALIDP_LAYER_OFFSET);
mp                848 drivers/gpu/drm/arm/malidp_planes.c 	if (mp->layer->id == DE_SMART) {
mp                853 drivers/gpu/drm/arm/malidp_planes.c 		malidp_hw_write(mp->hwdev, 1,
mp                854 drivers/gpu/drm/arm/malidp_planes.c 				mp->layer->base + MALIDP550_LS_ENABLE);
mp                855 drivers/gpu/drm/arm/malidp_planes.c 		malidp_hw_write(mp->hwdev,
mp                857 drivers/gpu/drm/arm/malidp_planes.c 				mp->layer->base + MALIDP550_LS_R1_IN_SIZE);
mp                863 drivers/gpu/drm/arm/malidp_planes.c 	val = malidp_hw_read(mp->hwdev, mp->layer->base + MALIDP_LAYER_CONTROL);
mp                898 drivers/gpu/drm/arm/malidp_planes.c 		    m->scaler_config.plane_src_id == mp->layer->id)
mp                905 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_write(mp->hwdev, val,
mp                906 drivers/gpu/drm/arm/malidp_planes.c 			mp->layer->base + MALIDP_LAYER_CONTROL);
mp                912 drivers/gpu/drm/arm/malidp_planes.c 	struct malidp_plane *mp = to_malidp_plane(plane);
mp                914 drivers/gpu/drm/arm/malidp_planes.c 	malidp_hw_clearbits(mp->hwdev,
mp                916 drivers/gpu/drm/arm/malidp_planes.c 			    mp->layer->base + MALIDP_LAYER_CONTROL);
mp                135 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 			struct dss_module_power *mp)
mp                141 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	if (!pdev || !mp)
mp                144 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	mp->num_clk = 0;
mp                151 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	mp->clk_config = devm_kcalloc(&pdev->dev,
mp                154 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	if (!mp->clk_config)
mp                166 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		strlcpy(mp->clk_config[i].clk_name, clock_name,
mp                167 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 			sizeof(mp->clk_config[i].clk_name));
mp                169 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		mp->clk_config[i].type = DSS_CLK_AHB;
mp                172 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	rc = msm_dss_get_clk(&pdev->dev, mp->clk_config, num_clk);
mp                185 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		u32 rate = clk_get_rate(mp->clk_config[i].clk);
mp                188 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		mp->clk_config[i].rate = rate;
mp                189 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 		mp->clk_config[i].type = DSS_CLK_PCLK;
mp                192 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	mp->num_clk = num_clk;
mp                196 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c 	msm_dss_put_clk(mp->clk_config, num_clk);
mp                 39 drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.h 		struct dss_module_power *mp);
mp                770 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	struct dss_module_power *mp = &dpu_kms->mp;
mp                773 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	for (i = 0; i < mp->num_clk; i++) {
mp                774 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 		if (!strcmp(mp->clk_config[i].clk_name, clock_name))
mp                775 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 			return &mp->clk_config[i];
mp               1001 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	struct dss_module_power *mp;
mp               1008 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	mp = &dpu_kms->mp;
mp               1009 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	ret = msm_dss_parse_clock(pdev, mp);
mp               1032 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	struct dss_module_power *mp = &dpu_kms->mp;
mp               1034 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	msm_dss_put_clk(mp->clk_config, mp->num_clk);
mp               1035 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	devm_kfree(&pdev->dev, mp->clk_config);
mp               1036 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	mp->num_clk = 0;
mp               1064 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	struct dss_module_power *mp = &dpu_kms->mp;
mp               1072 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	rc = msm_dss_enable_clk(mp->clk_config, mp->num_clk, false);
mp               1086 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	struct dss_module_power *mp = &dpu_kms->mp;
mp               1094 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	rc = msm_dss_enable_clk(mp->clk_config, mp->num_clk, true);
mp                124 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h 	struct dss_module_power mp;
mp                 29 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	struct dss_module_power mp;
mp                175 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	struct dss_module_power *mp = &dpu_mdss->mp;
mp                180 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	ret = msm_dss_enable_clk(mp->clk_config, mp->num_clk, true);
mp                190 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	struct dss_module_power *mp = &dpu_mdss->mp;
mp                193 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	ret = msm_dss_enable_clk(mp->clk_config, mp->num_clk, false);
mp                208 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	struct dss_module_power *mp = &dpu_mdss->mp;
mp                217 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	msm_dss_put_clk(mp->clk_config, mp->num_clk);
mp                218 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	devm_kfree(&pdev->dev, mp->clk_config);
mp                241 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	struct dss_module_power *mp;
mp                266 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	mp = &dpu_mdss->mp;
mp                267 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	ret = msm_dss_parse_clock(pdev, mp);
mp                298 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	msm_dss_put_clk(mp->clk_config, mp->num_clk);
mp                300 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c 	devm_kfree(&pdev->dev, mp->clk_config);
mp                770 drivers/hid/hid-wiimote-core.c 	wdata->state.mp = mode;
mp                779 drivers/hid/hid-wiimote-core.c 	if (wdata->state.mp < 2)
mp                785 drivers/hid/hid-wiimote-core.c 	wdata->state.mp = 0;
mp                911 drivers/hid/hid-wiimote-core.c 	bool mp;
mp                916 drivers/hid/hid-wiimote-core.c 	mp = wiimote_cmd_read_mp(wdata, mpdata);
mp                920 drivers/hid/hid-wiimote-core.c 	if (mp) {
mp                921 drivers/hid/hid-wiimote-core.c 		if (!wdata->state.mp) {
mp                925 drivers/hid/hid-wiimote-core.c 	} else if (wdata->state.mp) {
mp                962 drivers/hid/hid-wiimote-core.c 	    wdata->state.mp > 0 && (flags & WIIPROTO_FLAG_MP_USED)) {
mp               1041 drivers/hid/hid-wiimote-core.c 	    wdata->state.mp > 0 && (flags & WIIPROTO_FLAG_MP_USED)) {
mp               1099 drivers/hid/hid-wiimote-core.c 	bool mp;
mp               1119 drivers/hid/hid-wiimote-core.c 		mp = false;
mp               1122 drivers/hid/hid-wiimote-core.c 		mp = wiimote_cmd_read_mp(wdata, mpdata);
mp               1149 drivers/hid/hid-wiimote-core.c 	if (mp) {
mp               1150 drivers/hid/hid-wiimote-core.c 		if (!wdata->state.mp) {
mp               1154 drivers/hid/hid-wiimote-core.c 	} else if (wdata->state.mp) {
mp               1160 drivers/hid/hid-wiimote-core.c 		mp = false;
mp               1163 drivers/hid/hid-wiimote-core.c 	if (mp) {
mp               1180 drivers/hid/hid-wiimote-core.c 	if (mp) {
mp               1200 drivers/hid/hid-wiimote-core.c 		wdata->state.mp, wdata->state.exttype);
mp               2522 drivers/hid/hid-wiimote-modules.c 	input_report_abs(wdata->mp, ABS_RX, x);
mp               2523 drivers/hid/hid-wiimote-modules.c 	input_report_abs(wdata->mp, ABS_RY, y);
mp               2524 drivers/hid/hid-wiimote-modules.c 	input_report_abs(wdata->mp, ABS_RZ, z);
mp               2525 drivers/hid/hid-wiimote-modules.c 	input_sync(wdata->mp);
mp               2559 drivers/hid/hid-wiimote-modules.c 	wdata->mp = input_allocate_device();
mp               2560 drivers/hid/hid-wiimote-modules.c 	if (!wdata->mp)
mp               2563 drivers/hid/hid-wiimote-modules.c 	input_set_drvdata(wdata->mp, wdata);
mp               2564 drivers/hid/hid-wiimote-modules.c 	wdata->mp->open = wiimod_mp_open;
mp               2565 drivers/hid/hid-wiimote-modules.c 	wdata->mp->close = wiimod_mp_close;
mp               2566 drivers/hid/hid-wiimote-modules.c 	wdata->mp->dev.parent = &wdata->hdev->dev;
mp               2567 drivers/hid/hid-wiimote-modules.c 	wdata->mp->id.bustype = wdata->hdev->bus;
mp               2568 drivers/hid/hid-wiimote-modules.c 	wdata->mp->id.vendor = wdata->hdev->vendor;
mp               2569 drivers/hid/hid-wiimote-modules.c 	wdata->mp->id.product = wdata->hdev->product;
mp               2570 drivers/hid/hid-wiimote-modules.c 	wdata->mp->id.version = wdata->hdev->version;
mp               2571 drivers/hid/hid-wiimote-modules.c 	wdata->mp->name = WIIMOTE_NAME " Motion Plus";
mp               2573 drivers/hid/hid-wiimote-modules.c 	set_bit(EV_ABS, wdata->mp->evbit);
mp               2574 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_RX, wdata->mp->absbit);
mp               2575 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_RY, wdata->mp->absbit);
mp               2576 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_RZ, wdata->mp->absbit);
mp               2577 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->mp,
mp               2579 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->mp,
mp               2581 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->mp,
mp               2584 drivers/hid/hid-wiimote-modules.c 	ret = input_register_device(wdata->mp);
mp               2591 drivers/hid/hid-wiimote-modules.c 	input_free_device(wdata->mp);
mp               2592 drivers/hid/hid-wiimote-modules.c 	wdata->mp = NULL;
mp               2599 drivers/hid/hid-wiimote-modules.c 	if (!wdata->mp)
mp               2602 drivers/hid/hid-wiimote-modules.c 	input_unregister_device(wdata->mp);
mp               2603 drivers/hid/hid-wiimote-modules.c 	wdata->mp = NULL;
mp                122 drivers/hid/hid-wiimote.h 	__u8 mp;
mp                152 drivers/hid/hid-wiimote.h 	struct input_dev *mp;
mp                199 drivers/hid/hid-wiimote.h 	void (*in_mp) (struct wiimote_data *wdata, const __u8 *mp);
mp                777 drivers/infiniband/core/mad.c static size_t mad_priv_size(const struct ib_mad_private *mp)
mp                779 drivers/infiniband/core/mad.c 	return sizeof(struct ib_mad_private) + mp->mad_size;
mp                798 drivers/infiniband/core/mad.c static size_t mad_priv_dma_size(const struct ib_mad_private *mp)
mp                800 drivers/infiniband/core/mad.c 	return sizeof(struct ib_grh) + mp->mad_size;
mp               1082 drivers/infiniband/hw/hfi1/chip.c static int qos_rmt_entries(struct hfi1_devdata *dd, unsigned int *mp,
mp               14194 drivers/infiniband/hw/hfi1/chip.c static int qos_rmt_entries(struct hfi1_devdata *dd, unsigned int *mp,
mp               14222 drivers/infiniband/hw/hfi1/chip.c 	if (mp)
mp               14223 drivers/infiniband/hw/hfi1/chip.c 		*mp = m;
mp               14230 drivers/infiniband/hw/hfi1/chip.c 	if (mp)
mp               14231 drivers/infiniband/hw/hfi1/chip.c 		*mp = 0;
mp                323 drivers/infiniband/hw/mlx5/main.c 	spin_lock(&port->mp.mpi_lock);
mp                324 drivers/infiniband/hw/mlx5/main.c 	mpi = ibdev->port[ib_port_num - 1].mp.mpi;
mp                333 drivers/infiniband/hw/mlx5/main.c 	spin_unlock(&port->mp.mpi_lock);
mp                350 drivers/infiniband/hw/mlx5/main.c 	spin_lock(&port->mp.mpi_lock);
mp                351 drivers/infiniband/hw/mlx5/main.c 	mpi = ibdev->port[port_num - 1].mp.mpi;
mp                359 drivers/infiniband/hw/mlx5/main.c 	spin_unlock(&port->mp.mpi_lock);
mp               5842 drivers/infiniband/hw/mlx5/main.c 	spin_lock(&port->mp.mpi_lock);
mp               5844 drivers/infiniband/hw/mlx5/main.c 		spin_unlock(&port->mp.mpi_lock);
mp               5850 drivers/infiniband/hw/mlx5/main.c 	spin_unlock(&port->mp.mpi_lock);
mp               5855 drivers/infiniband/hw/mlx5/main.c 	spin_lock(&port->mp.mpi_lock);
mp               5861 drivers/infiniband/hw/mlx5/main.c 		spin_unlock(&port->mp.mpi_lock);
mp               5866 drivers/infiniband/hw/mlx5/main.c 		spin_lock(&port->mp.mpi_lock);
mp               5870 drivers/infiniband/hw/mlx5/main.c 	port->mp.mpi = NULL;
mp               5874 drivers/infiniband/hw/mlx5/main.c 	spin_unlock(&port->mp.mpi_lock);
mp               5897 drivers/infiniband/hw/mlx5/main.c 	spin_lock(&ibdev->port[port_num].mp.mpi_lock);
mp               5898 drivers/infiniband/hw/mlx5/main.c 	if (ibdev->port[port_num].mp.mpi) {
mp               5901 drivers/infiniband/hw/mlx5/main.c 		spin_unlock(&ibdev->port[port_num].mp.mpi_lock);
mp               5905 drivers/infiniband/hw/mlx5/main.c 	ibdev->port[port_num].mp.mpi = mpi;
mp               5908 drivers/infiniband/hw/mlx5/main.c 	spin_unlock(&ibdev->port[port_num].mp.mpi_lock);
mp               5974 drivers/infiniband/hw/mlx5/main.c 			dev->port[i].mp.mpi = mpi;
mp               6019 drivers/infiniband/hw/mlx5/main.c 		if (dev->port[i].mp.mpi) {
mp               6022 drivers/infiniband/hw/mlx5/main.c 				kfree(dev->port[i].mp.mpi);
mp               6023 drivers/infiniband/hw/mlx5/main.c 				dev->port[i].mp.mpi = NULL;
mp               6026 drivers/infiniband/hw/mlx5/main.c 				mlx5_ib_unbind_slave_port(dev, dev->port[i].mp.mpi);
mp               6159 drivers/infiniband/hw/mlx5/main.c 		spin_lock_init(&dev->port[i].mp.mpi_lock);
mp                752 drivers/infiniband/hw/mlx5/mlx5_ib.h 	struct mlx5_ib_multiport mp;
mp                142 drivers/isdn/capi/capi.c static int capiminor_add_ack(struct capiminor *mp, u16 datahandle)
mp                153 drivers/isdn/capi/capi.c 	spin_lock_bh(&mp->ackqlock);
mp                154 drivers/isdn/capi/capi.c 	list_add_tail(&n->list, &mp->ackqueue);
mp                155 drivers/isdn/capi/capi.c 	mp->nack++;
mp                156 drivers/isdn/capi/capi.c 	spin_unlock_bh(&mp->ackqlock);
mp                160 drivers/isdn/capi/capi.c static int capiminor_del_ack(struct capiminor *mp, u16 datahandle)
mp                164 drivers/isdn/capi/capi.c 	spin_lock_bh(&mp->ackqlock);
mp                165 drivers/isdn/capi/capi.c 	list_for_each_entry_safe(p, tmp, &mp->ackqueue, list) {
mp                168 drivers/isdn/capi/capi.c 			mp->nack--;
mp                169 drivers/isdn/capi/capi.c 			spin_unlock_bh(&mp->ackqlock);
mp                174 drivers/isdn/capi/capi.c 	spin_unlock_bh(&mp->ackqlock);
mp                178 drivers/isdn/capi/capi.c static void capiminor_del_all_ack(struct capiminor *mp)
mp                182 drivers/isdn/capi/capi.c 	list_for_each_entry_safe(p, tmp, &mp->ackqueue, list) {
mp                185 drivers/isdn/capi/capi.c 		mp->nack--;
mp                194 drivers/isdn/capi/capi.c 	struct capiminor *mp = container_of(port, struct capiminor, port);
mp                196 drivers/isdn/capi/capi.c 	kfree_skb(mp->outskb);
mp                197 drivers/isdn/capi/capi.c 	skb_queue_purge(&mp->inqueue);
mp                198 drivers/isdn/capi/capi.c 	skb_queue_purge(&mp->outqueue);
mp                199 drivers/isdn/capi/capi.c 	capiminor_del_all_ack(mp);
mp                200 drivers/isdn/capi/capi.c 	kfree(mp);
mp                209 drivers/isdn/capi/capi.c 	struct capiminor *mp;
mp                213 drivers/isdn/capi/capi.c 	mp = kzalloc(sizeof(*mp), GFP_KERNEL);
mp                214 drivers/isdn/capi/capi.c 	if (!mp) {
mp                219 drivers/isdn/capi/capi.c 	mp->ap = ap;
mp                220 drivers/isdn/capi/capi.c 	mp->ncci = ncci;
mp                221 drivers/isdn/capi/capi.c 	INIT_LIST_HEAD(&mp->ackqueue);
mp                222 drivers/isdn/capi/capi.c 	spin_lock_init(&mp->ackqlock);
mp                224 drivers/isdn/capi/capi.c 	skb_queue_head_init(&mp->inqueue);
mp                225 drivers/isdn/capi/capi.c 	skb_queue_head_init(&mp->outqueue);
mp                226 drivers/isdn/capi/capi.c 	spin_lock_init(&mp->outlock);
mp                228 drivers/isdn/capi/capi.c 	tty_port_init(&mp->port);
mp                229 drivers/isdn/capi/capi.c 	mp->port.ops = &capiminor_port_ops;
mp                235 drivers/isdn/capi/capi.c 			capiminors[minor] = mp;
mp                245 drivers/isdn/capi/capi.c 	mp->minor = minor;
mp                247 drivers/isdn/capi/capi.c 	dev = tty_port_register_device(&mp->port, capinc_tty_driver, minor,
mp                252 drivers/isdn/capi/capi.c 	return mp;
mp                260 drivers/isdn/capi/capi.c 	tty_port_put(&mp->port);
mp                266 drivers/isdn/capi/capi.c 	struct capiminor *mp;
mp                269 drivers/isdn/capi/capi.c 	mp = capiminors[minor];
mp                270 drivers/isdn/capi/capi.c 	if (mp)
mp                271 drivers/isdn/capi/capi.c 		tty_port_get(&mp->port);
mp                274 drivers/isdn/capi/capi.c 	return mp;
mp                277 drivers/isdn/capi/capi.c static inline void capiminor_put(struct capiminor *mp)
mp                279 drivers/isdn/capi/capi.c 	tty_port_put(&mp->port);
mp                282 drivers/isdn/capi/capi.c static void capiminor_free(struct capiminor *mp)
mp                284 drivers/isdn/capi/capi.c 	tty_unregister_device(capinc_tty_driver, mp->minor);
mp                287 drivers/isdn/capi/capi.c 	capiminors[mp->minor] = NULL;
mp                290 drivers/isdn/capi/capi.c 	capiminor_put(mp);
mp                303 drivers/isdn/capi/capi.c 	struct capiminor *mp = np->minorp;
mp                306 drivers/isdn/capi/capi.c 	if (mp) {
mp                307 drivers/isdn/capi/capi.c 		tty = tty_port_tty_get(&mp->port);
mp                313 drivers/isdn/capi/capi.c 		capiminor_free(mp);
mp                319 drivers/isdn/capi/capi.c 	struct capiminor *mp = np->minorp;
mp                323 drivers/isdn/capi/capi.c 	if (mp) {
mp                324 drivers/isdn/capi/capi.c 		tty = tty_port_tty_get(&mp->port);
mp                384 drivers/isdn/capi/capi.c gen_data_b3_resp_for(struct capiminor *mp, struct sk_buff *skb)
mp                392 drivers/isdn/capi/capi.c 		capimsg_setu16(s, 2, mp->ap->applid);
mp                395 drivers/isdn/capi/capi.c 		capimsg_setu16(s, 6, atomic_inc_return(&mp->msgid));
mp                396 drivers/isdn/capi/capi.c 		capimsg_setu32(s, 8, mp->ncci);
mp                402 drivers/isdn/capi/capi.c static int handle_recv_skb(struct capiminor *mp, struct sk_buff *skb)
mp                411 drivers/isdn/capi/capi.c 	tty = tty_port_tty_get(&mp->port);
mp                430 drivers/isdn/capi/capi.c 	if (mp->ttyinstop) {
mp                440 drivers/isdn/capi/capi.c 	nskb = gen_data_b3_resp_for(mp, skb);
mp                448 drivers/isdn/capi/capi.c 	errcode = capi20_put_message(mp->ap, nskb);
mp                476 drivers/isdn/capi/capi.c static void handle_minor_recv(struct capiminor *mp)
mp                480 drivers/isdn/capi/capi.c 	while ((skb = skb_dequeue(&mp->inqueue)) != NULL)
mp                481 drivers/isdn/capi/capi.c 		if (handle_recv_skb(mp, skb) < 0) {
mp                482 drivers/isdn/capi/capi.c 			skb_queue_head(&mp->inqueue, skb);
mp                487 drivers/isdn/capi/capi.c static void handle_minor_send(struct capiminor *mp)
mp                495 drivers/isdn/capi/capi.c 	tty = tty_port_tty_get(&mp->port);
mp                499 drivers/isdn/capi/capi.c 	if (mp->ttyoutstop) {
mp                506 drivers/isdn/capi/capi.c 		spin_lock_bh(&mp->outlock);
mp                507 drivers/isdn/capi/capi.c 		skb = __skb_dequeue(&mp->outqueue);
mp                509 drivers/isdn/capi/capi.c 			spin_unlock_bh(&mp->outlock);
mp                513 drivers/isdn/capi/capi.c 		mp->outbytes -= len;
mp                514 drivers/isdn/capi/capi.c 		spin_unlock_bh(&mp->outlock);
mp                516 drivers/isdn/capi/capi.c 		datahandle = atomic_inc_return(&mp->datahandle);
mp                520 drivers/isdn/capi/capi.c 		capimsg_setu16(skb->data, 2, mp->ap->applid);
mp                523 drivers/isdn/capi/capi.c 		capimsg_setu16(skb->data, 6, atomic_inc_return(&mp->msgid));
mp                524 drivers/isdn/capi/capi.c 		capimsg_setu32(skb->data, 8, mp->ncci);	/* NCCI */
mp                530 drivers/isdn/capi/capi.c 		if (capiminor_add_ack(mp, datahandle) < 0) {
mp                533 drivers/isdn/capi/capi.c 			spin_lock_bh(&mp->outlock);
mp                534 drivers/isdn/capi/capi.c 			__skb_queue_head(&mp->outqueue, skb);
mp                535 drivers/isdn/capi/capi.c 			mp->outbytes += len;
mp                536 drivers/isdn/capi/capi.c 			spin_unlock_bh(&mp->outlock);
mp                540 drivers/isdn/capi/capi.c 		errcode = capi20_put_message(mp->ap, skb);
mp                546 drivers/isdn/capi/capi.c 		capiminor_del_ack(mp, datahandle);
mp                551 drivers/isdn/capi/capi.c 			spin_lock_bh(&mp->outlock);
mp                552 drivers/isdn/capi/capi.c 			__skb_queue_head(&mp->outqueue, skb);
mp                553 drivers/isdn/capi/capi.c 			mp->outbytes += len;
mp                554 drivers/isdn/capi/capi.c 			spin_unlock_bh(&mp->outlock);
mp                573 drivers/isdn/capi/capi.c 	struct capiminor *mp;
mp                608 drivers/isdn/capi/capi.c 	mp = np->minorp;
mp                609 drivers/isdn/capi/capi.c 	if (!mp) {
mp                618 drivers/isdn/capi/capi.c 		skb_queue_tail(&mp->inqueue, skb);
mp                620 drivers/isdn/capi/capi.c 		handle_minor_recv(mp);
mp                629 drivers/isdn/capi/capi.c 		capiminor_del_ack(mp, datahandle);
mp                630 drivers/isdn/capi/capi.c 		tty_port_tty_wakeup(&mp->port);
mp                631 drivers/isdn/capi/capi.c 		handle_minor_send(mp);
mp                917 drivers/isdn/capi/capi.c 		struct capiminor *mp;
mp                927 drivers/isdn/capi/capi.c 			mp = nccip->minorp;
mp                928 drivers/isdn/capi/capi.c 			if (mp)
mp                929 drivers/isdn/capi/capi.c 				unit = mp->minor;
mp               1009 drivers/isdn/capi/capi.c 	struct capiminor *mp = capiminor_get(tty->index);
mp               1013 drivers/isdn/capi/capi.c 		tty->driver_data = mp;
mp               1015 drivers/isdn/capi/capi.c 		capiminor_put(mp);
mp               1021 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1023 drivers/isdn/capi/capi.c 	capiminor_put(mp);
mp               1028 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1031 drivers/isdn/capi/capi.c 	err = tty_port_open(&mp->port, tty, filp);
mp               1035 drivers/isdn/capi/capi.c 	handle_minor_recv(mp);
mp               1041 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1043 drivers/isdn/capi/capi.c 	tty_port_close(&mp->port, tty, filp);
mp               1049 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1054 drivers/isdn/capi/capi.c 	spin_lock_bh(&mp->outlock);
mp               1055 drivers/isdn/capi/capi.c 	skb = mp->outskb;
mp               1057 drivers/isdn/capi/capi.c 		mp->outskb = NULL;
mp               1058 drivers/isdn/capi/capi.c 		__skb_queue_tail(&mp->outqueue, skb);
mp               1059 drivers/isdn/capi/capi.c 		mp->outbytes += skb->len;
mp               1065 drivers/isdn/capi/capi.c 		spin_unlock_bh(&mp->outlock);
mp               1072 drivers/isdn/capi/capi.c 	__skb_queue_tail(&mp->outqueue, skb);
mp               1073 drivers/isdn/capi/capi.c 	mp->outbytes += skb->len;
mp               1074 drivers/isdn/capi/capi.c 	spin_unlock_bh(&mp->outlock);
mp               1076 drivers/isdn/capi/capi.c 	handle_minor_send(mp);
mp               1083 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1090 drivers/isdn/capi/capi.c 	spin_lock_bh(&mp->outlock);
mp               1091 drivers/isdn/capi/capi.c 	skb = mp->outskb;
mp               1097 drivers/isdn/capi/capi.c 		mp->outskb = NULL;
mp               1098 drivers/isdn/capi/capi.c 		__skb_queue_tail(&mp->outqueue, skb);
mp               1099 drivers/isdn/capi/capi.c 		mp->outbytes += skb->len;
mp               1107 drivers/isdn/capi/capi.c 		mp->outskb = skb;
mp               1114 drivers/isdn/capi/capi.c 	spin_unlock_bh(&mp->outlock);
mp               1117 drivers/isdn/capi/capi.c 		handle_minor_send(mp);
mp               1124 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1129 drivers/isdn/capi/capi.c 	spin_lock_bh(&mp->outlock);
mp               1130 drivers/isdn/capi/capi.c 	skb = mp->outskb;
mp               1132 drivers/isdn/capi/capi.c 		mp->outskb = NULL;
mp               1133 drivers/isdn/capi/capi.c 		__skb_queue_tail(&mp->outqueue, skb);
mp               1134 drivers/isdn/capi/capi.c 		mp->outbytes += skb->len;
mp               1135 drivers/isdn/capi/capi.c 		spin_unlock_bh(&mp->outlock);
mp               1137 drivers/isdn/capi/capi.c 		handle_minor_send(mp);
mp               1139 drivers/isdn/capi/capi.c 		spin_unlock_bh(&mp->outlock);
mp               1141 drivers/isdn/capi/capi.c 	handle_minor_recv(mp);
mp               1146 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1149 drivers/isdn/capi/capi.c 	room = CAPINC_MAX_SENDQUEUE-skb_queue_len(&mp->outqueue);
mp               1157 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1160 drivers/isdn/capi/capi.c 		 mp->outbytes, mp->nack,
mp               1161 drivers/isdn/capi/capi.c 		 skb_queue_len(&mp->outqueue),
mp               1162 drivers/isdn/capi/capi.c 		 skb_queue_len(&mp->inqueue));
mp               1163 drivers/isdn/capi/capi.c 	return mp->outbytes;
mp               1173 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1175 drivers/isdn/capi/capi.c 	mp->ttyinstop = 1;
mp               1180 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1183 drivers/isdn/capi/capi.c 	mp->ttyinstop = 0;
mp               1184 drivers/isdn/capi/capi.c 	handle_minor_recv(mp);
mp               1189 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1192 drivers/isdn/capi/capi.c 	mp->ttyoutstop = 1;
mp               1197 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1200 drivers/isdn/capi/capi.c 	mp->ttyoutstop = 0;
mp               1201 drivers/isdn/capi/capi.c 	handle_minor_send(mp);
mp               1206 drivers/isdn/capi/capi.c 	struct capiminor *mp = tty->driver_data;
mp               1209 drivers/isdn/capi/capi.c 	tty_port_hangup(&mp->port);
mp                179 drivers/isdn/hardware/mISDN/mISDNisar.c 	u8	*mp;
mp                242 drivers/isdn/hardware/mISDN/mISDNisar.c 			mp  = isar->buf;
mp                244 drivers/isdn/hardware/mISDN/mISDNisar.c 			*mp++ = blk_head.sadr >> 8;
mp                245 drivers/isdn/hardware/mISDN/mISDNisar.c 			*mp++ = blk_head.sadr & 0xFF;
mp                248 drivers/isdn/hardware/mISDN/mISDNisar.c 			*mp++ = noc;
mp                254 drivers/isdn/hardware/mISDN/mISDNisar.c 				*mp++ = val >> 8;
mp                255 drivers/isdn/hardware/mISDN/mISDNisar.c 				*mp++ = val & 0xFF;
mp                319 drivers/media/pci/bt8xx/bt878.c bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp)
mp                331 drivers/media/pci/bt8xx/bt878.c 				mp->enb.mask,
mp                332 drivers/media/pci/bt8xx/bt878.c 				mp->enb.enable);
mp                337 drivers/media/pci/bt8xx/bt878.c 				mp->outp.mask,
mp                338 drivers/media/pci/bt8xx/bt878.c 				mp->outp.highvals);
mp                343 drivers/media/pci/bt8xx/bt878.c 		retval =  bttv_read_gpio(bt->bttv_nr, &mp->rd.value);
mp                348 drivers/media/pci/bt8xx/bt878.c 		bt->TS_Size = mp->psize;
mp                 36 drivers/media/pci/bt8xx/dst_priv.h int bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp);
mp               1197 drivers/media/platform/exynos4-is/fimc-capture.c 	ret = media_pipeline_start(entity, &vc->ve.pipe->mp);
mp                493 drivers/media/platform/exynos4-is/fimc-isp-video.c 	ret = media_pipeline_start(me, &ve->pipe->mp);
mp                821 drivers/media/platform/exynos4-is/fimc-lite.c 	ret = media_pipeline_start(entity, &fimc->ve.pipe->mp);
mp                527 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
mp                530 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->width        = dev->fmt_cap_rect.width;
mp                531 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->height       = dev->fmt_cap_rect.height;
mp                532 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->field        = dev->field_cap;
mp                533 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->pixelformat  = dev->fmt_cap->fourcc;
mp                534 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->colorspace   = vivid_colorspace_cap(dev);
mp                535 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->xfer_func    = vivid_xfer_func_cap(dev);
mp                537 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->hsv_enc    = vivid_hsv_enc_cap(dev);
mp                539 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->ycbcr_enc    = vivid_ycbcr_enc_cap(dev);
mp                540 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->quantization = vivid_quantization_cap(dev);
mp                541 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->num_planes = dev->fmt_cap->buffers;
mp                542 drivers/media/platform/vivid/vivid-vid-cap.c 	for (p = 0; p < mp->num_planes; p++) {
mp                543 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->plane_fmt[p].bytesperline = tpg_g_bytesperline(&dev->tpg, p);
mp                544 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->plane_fmt[p].sizeimage =
mp                545 drivers/media/platform/vivid/vivid-vid-cap.c 			(tpg_g_line_width(&dev->tpg, p) * mp->height) /
mp                555 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
mp                556 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_plane_pix_format *pfmt = mp->plane_fmt;
mp                564 drivers/media/platform/vivid/vivid-vid-cap.c 	fmt = vivid_get_format(dev, mp->pixelformat);
mp                567 drivers/media/platform/vivid/vivid-vid-cap.c 			mp->pixelformat);
mp                568 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->pixelformat = V4L2_PIX_FMT_YUYV;
mp                569 drivers/media/platform/vivid/vivid-vid-cap.c 		fmt = vivid_get_format(dev, mp->pixelformat);
mp                572 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->field = vivid_field_cap(dev, mp->field);
mp                577 drivers/media/platform/vivid/vivid-vid-cap.c 					       height, mp->width, mp->height);
mp                588 drivers/media/platform/vivid/vivid-vid-cap.c 	if (V4L2_FIELD_HAS_T_OR_B(mp->field))
mp                592 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->width = w;
mp                593 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->height = h / factor;
mp                595 drivers/media/platform/vivid/vivid-vid-cap.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor };
mp                608 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->width = r.width;
mp                609 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->height = r.height / factor;
mp                614 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->num_planes = fmt->buffers;
mp                617 drivers/media/platform/vivid/vivid-vid-cap.c 		bytesperline = (mp->width * fmt->bit_depth[p]) >> 3;
mp                626 drivers/media/platform/vivid/vivid-vid-cap.c 		pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) /
mp                632 drivers/media/platform/vivid/vivid-vid-cap.c 		pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height *
mp                636 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->colorspace = vivid_colorspace_cap(dev);
mp                638 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->hsv_enc = vivid_hsv_enc_cap(dev);
mp                640 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->ycbcr_enc = vivid_ycbcr_enc_cap(dev);
mp                641 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->xfer_func = vivid_xfer_func_cap(dev);
mp                642 drivers/media/platform/vivid/vivid-vid-cap.c 	mp->quantization = vivid_quantization_cap(dev);
mp                643 drivers/media/platform/vivid/vivid-vid-cap.c 	memset(mp->reserved, 0, sizeof(mp->reserved));
mp                650 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
mp                668 drivers/media/platform/vivid/vivid-vid-cap.c 	if (dev->overlay_cap_owner && dev->fb_cap.fmt.pixelformat != mp->pixelformat) {
mp                673 drivers/media/platform/vivid/vivid-vid-cap.c 	dev->fmt_cap = vivid_get_format(dev, mp->pixelformat);
mp                674 drivers/media/platform/vivid/vivid-vid-cap.c 	if (V4L2_FIELD_HAS_T_OR_B(mp->field))
mp                681 drivers/media/platform/vivid/vivid-vid-cap.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
mp                742 drivers/media/platform/vivid/vivid-vid-cap.c 			if (webcam_sizes[i].width == mp->width &&
mp                743 drivers/media/platform/vivid/vivid-vid-cap.c 					webcam_sizes[i].height == mp->height)
mp                750 drivers/media/platform/vivid/vivid-vid-cap.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
mp                757 drivers/media/platform/vivid/vivid-vid-cap.c 	dev->fmt_cap_rect.width = mp->width;
mp                758 drivers/media/platform/vivid/vivid-vid-cap.c 	dev->fmt_cap_rect.height = mp->height;
mp                759 drivers/media/platform/vivid/vivid-vid-cap.c 	tpg_s_buf_height(&dev->tpg, mp->height);
mp                762 drivers/media/platform/vivid/vivid-vid-cap.c 		tpg_s_bytesperline(&dev->tpg, p, mp->plane_fmt[p].bytesperline);
mp                763 drivers/media/platform/vivid/vivid-vid-cap.c 	dev->field_cap = mp->field;
mp                770 drivers/media/platform/vivid/vivid-vid-cap.c 		dev->tv_field_cap = mp->field;
mp                809 drivers/media/platform/vivid/vivid-vid-common.c 	struct v4l2_pix_format_mplane *mp = &mp_fmt->fmt.pix_mp;
mp                810 drivers/media/platform/vivid/vivid-vid-common.c 	struct v4l2_plane_pix_format *ppix = &mp->plane_fmt[0];
mp                814 drivers/media/platform/vivid/vivid-vid-common.c 	memset(mp->reserved, 0, sizeof(mp->reserved));
mp                817 drivers/media/platform/vivid/vivid-vid-common.c 	mp->width = pix->width;
mp                818 drivers/media/platform/vivid/vivid-vid-common.c 	mp->height = pix->height;
mp                819 drivers/media/platform/vivid/vivid-vid-common.c 	mp->pixelformat = pix->pixelformat;
mp                820 drivers/media/platform/vivid/vivid-vid-common.c 	mp->field = pix->field;
mp                821 drivers/media/platform/vivid/vivid-vid-common.c 	mp->colorspace = pix->colorspace;
mp                822 drivers/media/platform/vivid/vivid-vid-common.c 	mp->xfer_func = pix->xfer_func;
mp                824 drivers/media/platform/vivid/vivid-vid-common.c 	mp->ycbcr_enc = pix->ycbcr_enc;
mp                825 drivers/media/platform/vivid/vivid-vid-common.c 	mp->quantization = pix->quantization;
mp                826 drivers/media/platform/vivid/vivid-vid-common.c 	mp->num_planes = 1;
mp                827 drivers/media/platform/vivid/vivid-vid-common.c 	mp->flags = pix->flags;
mp                837 drivers/media/platform/vivid/vivid-vid-common.c 	struct v4l2_pix_format_mplane *mp = &fmt.fmt.pix_mp;
mp                838 drivers/media/platform/vivid/vivid-vid-common.c 	struct v4l2_plane_pix_format *ppix = &mp->plane_fmt[0];
mp                847 drivers/media/platform/vivid/vivid-vid-common.c 	pix->width = mp->width;
mp                848 drivers/media/platform/vivid/vivid-vid-common.c 	pix->height = mp->height;
mp                849 drivers/media/platform/vivid/vivid-vid-common.c 	pix->pixelformat = mp->pixelformat;
mp                850 drivers/media/platform/vivid/vivid-vid-common.c 	pix->field = mp->field;
mp                851 drivers/media/platform/vivid/vivid-vid-common.c 	pix->colorspace = mp->colorspace;
mp                852 drivers/media/platform/vivid/vivid-vid-common.c 	pix->xfer_func = mp->xfer_func;
mp                854 drivers/media/platform/vivid/vivid-vid-common.c 	pix->ycbcr_enc = mp->ycbcr_enc;
mp                855 drivers/media/platform/vivid/vivid-vid-common.c 	pix->quantization = mp->quantization;
mp                858 drivers/media/platform/vivid/vivid-vid-common.c 	pix->flags = mp->flags;
mp                321 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
mp                325 drivers/media/platform/vivid/vivid-vid-out.c 	mp->width        = dev->fmt_out_rect.width;
mp                326 drivers/media/platform/vivid/vivid-vid-out.c 	mp->height       = dev->fmt_out_rect.height;
mp                327 drivers/media/platform/vivid/vivid-vid-out.c 	mp->field        = dev->field_out;
mp                328 drivers/media/platform/vivid/vivid-vid-out.c 	mp->pixelformat  = fmt->fourcc;
mp                329 drivers/media/platform/vivid/vivid-vid-out.c 	mp->colorspace   = dev->colorspace_out;
mp                330 drivers/media/platform/vivid/vivid-vid-out.c 	mp->xfer_func    = dev->xfer_func_out;
mp                331 drivers/media/platform/vivid/vivid-vid-out.c 	mp->ycbcr_enc    = dev->ycbcr_enc_out;
mp                332 drivers/media/platform/vivid/vivid-vid-out.c 	mp->quantization = dev->quantization_out;
mp                333 drivers/media/platform/vivid/vivid-vid-out.c 	mp->num_planes = fmt->buffers;
mp                334 drivers/media/platform/vivid/vivid-vid-out.c 	for (p = 0; p < mp->num_planes; p++) {
mp                335 drivers/media/platform/vivid/vivid-vid-out.c 		mp->plane_fmt[p].bytesperline = dev->bytesperline_out[p];
mp                336 drivers/media/platform/vivid/vivid-vid-out.c 		mp->plane_fmt[p].sizeimage =
mp                337 drivers/media/platform/vivid/vivid-vid-out.c 			mp->plane_fmt[p].bytesperline * mp->height +
mp                343 drivers/media/platform/vivid/vivid-vid-out.c 		mp->plane_fmt[0].sizeimage +=
mp                344 drivers/media/platform/vivid/vivid-vid-out.c 			(stride * mp->height) / fmt->vdownsampling[p];
mp                354 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
mp                355 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_plane_pix_format *pfmt = mp->plane_fmt;
mp                362 drivers/media/platform/vivid/vivid-vid-out.c 	fmt = vivid_get_format(dev, mp->pixelformat);
mp                365 drivers/media/platform/vivid/vivid-vid-out.c 			mp->pixelformat);
mp                366 drivers/media/platform/vivid/vivid-vid-out.c 		mp->pixelformat = V4L2_PIX_FMT_YUYV;
mp                367 drivers/media/platform/vivid/vivid-vid-out.c 		fmt = vivid_get_format(dev, mp->pixelformat);
mp                370 drivers/media/platform/vivid/vivid-vid-out.c 	mp->field = vivid_field_out(dev, mp->field);
mp                378 drivers/media/platform/vivid/vivid-vid-out.c 	if (V4L2_FIELD_HAS_T_OR_B(mp->field))
mp                381 drivers/media/platform/vivid/vivid-vid-out.c 		mp->width = w;
mp                382 drivers/media/platform/vivid/vivid-vid-out.c 		mp->height = h / factor;
mp                384 drivers/media/platform/vivid/vivid-vid-out.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor };
mp                397 drivers/media/platform/vivid/vivid-vid-out.c 		mp->width = r.width;
mp                398 drivers/media/platform/vivid/vivid-vid-out.c 		mp->height = r.height / factor;
mp                403 drivers/media/platform/vivid/vivid-vid-out.c 	mp->num_planes = fmt->buffers;
mp                406 drivers/media/platform/vivid/vivid-vid-out.c 		bytesperline = (mp->width * fmt->bit_depth[p]) >> 3;
mp                415 drivers/media/platform/vivid/vivid-vid-out.c 		pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) /
mp                421 drivers/media/platform/vivid/vivid-vid-out.c 		pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height *
mp                425 drivers/media/platform/vivid/vivid-vid-out.c 	mp->xfer_func = V4L2_XFER_FUNC_DEFAULT;
mp                426 drivers/media/platform/vivid/vivid-vid-out.c 	mp->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
mp                427 drivers/media/platform/vivid/vivid-vid-out.c 	mp->quantization = V4L2_QUANTIZATION_DEFAULT;
mp                429 drivers/media/platform/vivid/vivid-vid-out.c 		mp->colorspace = V4L2_COLORSPACE_SMPTE170M;
mp                431 drivers/media/platform/vivid/vivid-vid-out.c 		mp->colorspace = V4L2_COLORSPACE_SRGB;
mp                433 drivers/media/platform/vivid/vivid-vid-out.c 			mp->quantization = V4L2_QUANTIZATION_LIM_RANGE;
mp                435 drivers/media/platform/vivid/vivid-vid-out.c 		mp->colorspace = V4L2_COLORSPACE_SMPTE170M;
mp                436 drivers/media/platform/vivid/vivid-vid-out.c 	} else if (mp->colorspace != V4L2_COLORSPACE_SMPTE170M &&
mp                437 drivers/media/platform/vivid/vivid-vid-out.c 		   mp->colorspace != V4L2_COLORSPACE_REC709 &&
mp                438 drivers/media/platform/vivid/vivid-vid-out.c 		   mp->colorspace != V4L2_COLORSPACE_OPRGB &&
mp                439 drivers/media/platform/vivid/vivid-vid-out.c 		   mp->colorspace != V4L2_COLORSPACE_BT2020 &&
mp                440 drivers/media/platform/vivid/vivid-vid-out.c 		   mp->colorspace != V4L2_COLORSPACE_SRGB) {
mp                441 drivers/media/platform/vivid/vivid-vid-out.c 		mp->colorspace = V4L2_COLORSPACE_REC709;
mp                443 drivers/media/platform/vivid/vivid-vid-out.c 	memset(mp->reserved, 0, sizeof(mp->reserved));
mp                450 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
mp                464 drivers/media/platform/vivid/vivid-vid-out.c 	     mp->width != dev->fmt_out_rect.width ||
mp                465 drivers/media/platform/vivid/vivid-vid-out.c 	     mp->height != dev->fmt_out_rect.height ||
mp                466 drivers/media/platform/vivid/vivid-vid-out.c 	     mp->pixelformat != dev->fmt_out->fourcc ||
mp                467 drivers/media/platform/vivid/vivid-vid-out.c 	     mp->field != dev->field_out)) {
mp                480 drivers/media/platform/vivid/vivid-vid-out.c 	dev->fmt_out = vivid_get_format(dev, mp->pixelformat);
mp                481 drivers/media/platform/vivid/vivid-vid-out.c 	if (V4L2_FIELD_HAS_T_OR_B(mp->field))
mp                485 drivers/media/platform/vivid/vivid-vid-out.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
mp                544 drivers/media/platform/vivid/vivid-vid-out.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
mp                551 drivers/media/platform/vivid/vivid-vid-out.c 	dev->fmt_out_rect.width = mp->width;
mp                552 drivers/media/platform/vivid/vivid-vid-out.c 	dev->fmt_out_rect.height = mp->height;
mp                553 drivers/media/platform/vivid/vivid-vid-out.c 	for (p = 0; p < mp->num_planes; p++)
mp                554 drivers/media/platform/vivid/vivid-vid-out.c 		dev->bytesperline_out[p] = mp->plane_fmt[p].bytesperline;
mp                559 drivers/media/platform/vivid/vivid-vid-out.c 	dev->field_out = mp->field;
mp                561 drivers/media/platform/vivid/vivid-vid-out.c 		dev->tv_field_out = mp->field;
mp                564 drivers/media/platform/vivid/vivid-vid-out.c 	dev->colorspace_out = mp->colorspace;
mp                565 drivers/media/platform/vivid/vivid-vid-out.c 	dev->xfer_func_out = mp->xfer_func;
mp                566 drivers/media/platform/vivid/vivid-vid-out.c 	dev->ycbcr_enc_out = mp->ycbcr_enc;
mp                567 drivers/media/platform/vivid/vivid-vid-out.c 	dev->quantization_out = mp->quantization;
mp                 58 drivers/media/platform/vsp1/vsp1_uds.c 		unsigned int mp;
mp                 60 drivers/media/platform/vsp1/vsp1_uds.c 		mp = ratio / 4096;
mp                 61 drivers/media/platform/vsp1/vsp1_uds.c 		mp = mp < 4 ? 1 : (mp < 8 ? 2 : 4);
mp                 63 drivers/media/platform/vsp1/vsp1_uds.c 		return (input - 1) / mp * mp * 4096 / ratio + 1;
mp                 91 drivers/media/platform/vsp1/vsp1_uds.c 		unsigned int mp;
mp                 93 drivers/media/platform/vsp1/vsp1_uds.c 		mp = ratio / 4096;
mp                 94 drivers/media/platform/vsp1/vsp1_uds.c 		mp = mp < 4 ? 1 : (mp < 8 ? 2 : 4);
mp                 96 drivers/media/platform/vsp1/vsp1_uds.c 		return 64 * 4096 * mp / ratio;
mp                 30 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_set_notify(struct pvr2_context *mp, int fl)
mp                 35 drivers/media/usb/pvrusb2/pvrusb2-context.c 		if (!mp->notify_flag) {
mp                 37 drivers/media/usb/pvrusb2/pvrusb2-context.c 			mp->notify_prev = pvr2_context_notify_last;
mp                 38 drivers/media/usb/pvrusb2/pvrusb2-context.c 			mp->notify_next = NULL;
mp                 39 drivers/media/usb/pvrusb2/pvrusb2-context.c 			pvr2_context_notify_last = mp;
mp                 40 drivers/media/usb/pvrusb2/pvrusb2-context.c 			if (mp->notify_prev) {
mp                 41 drivers/media/usb/pvrusb2/pvrusb2-context.c 				mp->notify_prev->notify_next = mp;
mp                 43 drivers/media/usb/pvrusb2/pvrusb2-context.c 				pvr2_context_notify_first = mp;
mp                 45 drivers/media/usb/pvrusb2/pvrusb2-context.c 			mp->notify_flag = !0;
mp                 48 drivers/media/usb/pvrusb2/pvrusb2-context.c 		if (mp->notify_flag) {
mp                 49 drivers/media/usb/pvrusb2/pvrusb2-context.c 			mp->notify_flag = 0;
mp                 50 drivers/media/usb/pvrusb2/pvrusb2-context.c 			if (mp->notify_next) {
mp                 51 drivers/media/usb/pvrusb2/pvrusb2-context.c 				mp->notify_next->notify_prev = mp->notify_prev;
mp                 53 drivers/media/usb/pvrusb2/pvrusb2-context.c 				pvr2_context_notify_last = mp->notify_prev;
mp                 55 drivers/media/usb/pvrusb2/pvrusb2-context.c 			if (mp->notify_prev) {
mp                 56 drivers/media/usb/pvrusb2/pvrusb2-context.c 				mp->notify_prev->notify_next = mp->notify_next;
mp                 58 drivers/media/usb/pvrusb2/pvrusb2-context.c 				pvr2_context_notify_first = mp->notify_next;
mp                 67 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_destroy(struct pvr2_context *mp)
mp                 69 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_trace(PVR2_TRACE_CTXT,"pvr2_context %p (destroy)",mp);
mp                 70 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_hdw_destroy(mp->hdw);
mp                 71 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_set_notify(mp, 0);
mp                 73 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (mp->exist_next) {
mp                 74 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->exist_next->exist_prev = mp->exist_prev;
mp                 76 drivers/media/usb/pvrusb2/pvrusb2-context.c 		pvr2_context_exist_last = mp->exist_prev;
mp                 78 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (mp->exist_prev) {
mp                 79 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->exist_prev->exist_next = mp->exist_next;
mp                 81 drivers/media/usb/pvrusb2/pvrusb2-context.c 		pvr2_context_exist_first = mp->exist_next;
mp                 89 drivers/media/usb/pvrusb2/pvrusb2-context.c 	kfree(mp);
mp                 93 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_notify(struct pvr2_context *mp)
mp                 95 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_set_notify(mp,!0);
mp                 99 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_check(struct pvr2_context *mp)
mp                103 drivers/media/usb/pvrusb2/pvrusb2-context.c 		   "pvr2_context %p (notify)", mp);
mp                104 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (!mp->initialized_flag && !mp->disconnect_flag) {
mp                105 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->initialized_flag = !0;
mp                107 drivers/media/usb/pvrusb2/pvrusb2-context.c 			   "pvr2_context %p (initialize)", mp);
mp                109 drivers/media/usb/pvrusb2/pvrusb2-context.c 		if (pvr2_hdw_initialize(mp->hdw,
mp                111 drivers/media/usb/pvrusb2/pvrusb2-context.c 					mp)) {
mp                112 drivers/media/usb/pvrusb2/pvrusb2-context.c 			mp->video_stream.stream =
mp                113 drivers/media/usb/pvrusb2/pvrusb2-context.c 				pvr2_hdw_get_video_stream(mp->hdw);
mp                117 drivers/media/usb/pvrusb2/pvrusb2-context.c 			if (mp->setup_func) mp->setup_func(mp);
mp                121 drivers/media/usb/pvrusb2/pvrusb2-context.c 				   mp);
mp                130 drivers/media/usb/pvrusb2/pvrusb2-context.c 	for (ch1 = mp->mc_first; ch1; ch1 = ch2) {
mp                135 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (mp->disconnect_flag && !mp->mc_first) {
mp                137 drivers/media/usb/pvrusb2/pvrusb2-context.c 		pvr2_context_destroy(mp);
mp                151 drivers/media/usb/pvrusb2/pvrusb2-context.c 	struct pvr2_context *mp;
mp                156 drivers/media/usb/pvrusb2/pvrusb2-context.c 		while ((mp = pvr2_context_notify_first) != NULL) {
mp                157 drivers/media/usb/pvrusb2/pvrusb2-context.c 			pvr2_context_set_notify(mp, 0);
mp                158 drivers/media/usb/pvrusb2/pvrusb2-context.c 			pvr2_context_check(mp);
mp                206 drivers/media/usb/pvrusb2/pvrusb2-context.c 	struct pvr2_context *mp = NULL;
mp                207 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp = kzalloc(sizeof(*mp),GFP_KERNEL);
mp                208 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (!mp) goto done;
mp                209 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_trace(PVR2_TRACE_CTXT,"pvr2_context %p (create)",mp);
mp                210 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp->setup_func = setup_func;
mp                211 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mutex_init(&mp->mutex);
mp                213 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp->exist_prev = pvr2_context_exist_last;
mp                214 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp->exist_next = NULL;
mp                215 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_exist_last = mp;
mp                216 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (mp->exist_prev) {
mp                217 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->exist_prev->exist_next = mp;
mp                219 drivers/media/usb/pvrusb2/pvrusb2-context.c 		pvr2_context_exist_first = mp;
mp                222 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp->hdw = pvr2_hdw_create(intf,devid);
mp                223 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (!mp->hdw) {
mp                224 drivers/media/usb/pvrusb2/pvrusb2-context.c 		pvr2_context_destroy(mp);
mp                225 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp = NULL;
mp                228 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_set_notify(mp, !0);
mp                230 drivers/media/usb/pvrusb2/pvrusb2-context.c 	return mp;
mp                234 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_reset_input_limits(struct pvr2_context *mp)
mp                238 drivers/media/usb/pvrusb2/pvrusb2-context.c 	struct pvr2_hdw *hdw = mp->hdw;
mp                241 drivers/media/usb/pvrusb2/pvrusb2-context.c 	for (cp = mp->mc_first; cp; cp = cp->mc_next) {
mp                250 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_enter(struct pvr2_context *mp)
mp                252 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mutex_lock(&mp->mutex);
mp                256 drivers/media/usb/pvrusb2/pvrusb2-context.c static void pvr2_context_exit(struct pvr2_context *mp)
mp                259 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (!(mp->mc_first || !mp->disconnect_flag)) {
mp                262 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mutex_unlock(&mp->mutex);
mp                263 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (destroy_flag) pvr2_context_notify(mp);
mp                267 drivers/media/usb/pvrusb2/pvrusb2-context.c void pvr2_context_disconnect(struct pvr2_context *mp)
mp                269 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_hdw_disconnect(mp->hdw);
mp                270 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp->disconnect_flag = !0;
mp                271 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_notify(mp);
mp                275 drivers/media/usb/pvrusb2/pvrusb2-context.c void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp)
mp                277 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_enter(mp);
mp                278 drivers/media/usb/pvrusb2/pvrusb2-context.c 	cp->hdw = mp->hdw;
mp                279 drivers/media/usb/pvrusb2/pvrusb2-context.c 	cp->mc_head = mp;
mp                281 drivers/media/usb/pvrusb2/pvrusb2-context.c 	cp->mc_prev = mp->mc_last;
mp                282 drivers/media/usb/pvrusb2/pvrusb2-context.c 	if (mp->mc_last) {
mp                283 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->mc_last->mc_next = cp;
mp                285 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->mc_first = cp;
mp                287 drivers/media/usb/pvrusb2/pvrusb2-context.c 	mp->mc_last = cp;
mp                288 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_exit(mp);
mp                303 drivers/media/usb/pvrusb2/pvrusb2-context.c 	struct pvr2_context *mp = cp->mc_head;
mp                304 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_enter(mp);
mp                307 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_reset_input_limits(mp);
mp                311 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->mc_last = cp->mc_prev;
mp                316 drivers/media/usb/pvrusb2/pvrusb2-context.c 		mp->mc_first = cp->mc_next;
mp                319 drivers/media/usb/pvrusb2/pvrusb2-context.c 	pvr2_context_exit(mp);
mp                756 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c struct pvr2_sysfs *pvr2_sysfs_create(struct pvr2_context *mp,
mp                763 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c 	pvr2_channel_init(&sfp->channel,mp);
mp                280 drivers/media/v4l2-core/v4l2-ioctl.c 	const struct v4l2_pix_format_mplane *mp;
mp                307 drivers/media/v4l2-core/v4l2-ioctl.c 		mp = &p->fmt.pix_mp;
mp                309 drivers/media/v4l2-core/v4l2-ioctl.c 			mp->width, mp->height,
mp                310 drivers/media/v4l2-core/v4l2-ioctl.c 			(mp->pixelformat & 0xff),
mp                311 drivers/media/v4l2-core/v4l2-ioctl.c 			(mp->pixelformat >>  8) & 0xff,
mp                312 drivers/media/v4l2-core/v4l2-ioctl.c 			(mp->pixelformat >> 16) & 0xff,
mp                313 drivers/media/v4l2-core/v4l2-ioctl.c 			(mp->pixelformat >> 24) & 0xff,
mp                314 drivers/media/v4l2-core/v4l2-ioctl.c 			prt_names(mp->field, v4l2_field_names),
mp                315 drivers/media/v4l2-core/v4l2-ioctl.c 			mp->colorspace, mp->num_planes, mp->flags,
mp                316 drivers/media/v4l2-core/v4l2-ioctl.c 			mp->ycbcr_enc, mp->quantization, mp->xfer_func);
mp                317 drivers/media/v4l2-core/v4l2-ioctl.c 		planes = min_t(u32, mp->num_planes, VIDEO_MAX_PLANES);
mp                320 drivers/media/v4l2-core/v4l2-ioctl.c 					mp->plane_fmt[i].bytesperline,
mp                321 drivers/media/v4l2-core/v4l2-ioctl.c 					mp->plane_fmt[i].sizeimage);
mp                 56 drivers/mtd/devices/ms02-nv.c 	struct ms02nv_private *mp = mtd->priv;
mp                 58 drivers/mtd/devices/ms02-nv.c 	memcpy(buf, mp->uaddr + from, len);
mp                 66 drivers/mtd/devices/ms02-nv.c 	struct ms02nv_private *mp = mtd->priv;
mp                 68 drivers/mtd/devices/ms02-nv.c 	memcpy(mp->uaddr + to, buf, len);
mp                107 drivers/mtd/devices/ms02-nv.c 	struct ms02nv_private *mp;
mp                144 drivers/mtd/devices/ms02-nv.c 	mp = kzalloc(sizeof(*mp), GFP_KERNEL);
mp                145 drivers/mtd/devices/ms02-nv.c 	if (!mp)
mp                148 drivers/mtd/devices/ms02-nv.c 	mtd->priv = mp;
mp                149 drivers/mtd/devices/ms02-nv.c 	mp->resource.module = mod_res;
mp                162 drivers/mtd/devices/ms02-nv.c 	mp->resource.diag_ram = diag_res;
mp                175 drivers/mtd/devices/ms02-nv.c 	mp->resource.user_ram = user_res;
mp                188 drivers/mtd/devices/ms02-nv.c 	mp->resource.csr = csr_res;
mp                190 drivers/mtd/devices/ms02-nv.c 	mp->addr = phys_to_virt(addr);
mp                191 drivers/mtd/devices/ms02-nv.c 	mp->size = size;
mp                199 drivers/mtd/devices/ms02-nv.c 	mp->uaddr = phys_to_virt(fixaddr);
mp                220 drivers/mtd/devices/ms02-nv.c 	mp->next = root_ms02nv_mtd;
mp                236 drivers/mtd/devices/ms02-nv.c 	kfree(mp);
mp                249 drivers/mtd/devices/ms02-nv.c 	struct ms02nv_private *mp = mtd->priv;
mp                251 drivers/mtd/devices/ms02-nv.c 	root_ms02nv_mtd = mp->next;
mp                255 drivers/mtd/devices/ms02-nv.c 	release_resource(mp->resource.csr);
mp                256 drivers/mtd/devices/ms02-nv.c 	kfree(mp->resource.csr);
mp                257 drivers/mtd/devices/ms02-nv.c 	release_resource(mp->resource.user_ram);
mp                258 drivers/mtd/devices/ms02-nv.c 	kfree(mp->resource.user_ram);
mp                259 drivers/mtd/devices/ms02-nv.c 	release_resource(mp->resource.diag_ram);
mp                260 drivers/mtd/devices/ms02-nv.c 	kfree(mp->resource.diag_ram);
mp                261 drivers/mtd/devices/ms02-nv.c 	release_resource(mp->resource.module);
mp                262 drivers/mtd/devices/ms02-nv.c 	kfree(mp->resource.module);
mp                263 drivers/mtd/devices/ms02-nv.c 	kfree(mp);
mp                 92 drivers/net/ethernet/apple/mace.c static inline void mace_clean_rings(struct mace_data *mp);
mp                113 drivers/net/ethernet/apple/mace.c 	struct mace_data *mp;
mp                155 drivers/net/ethernet/apple/mace.c 	mp = netdev_priv(dev);
mp                156 drivers/net/ethernet/apple/mace.c 	mp->mdev = mdev;
mp                160 drivers/net/ethernet/apple/mace.c 	mp->mace = ioremap(dev->base_addr, 0x1000);
mp                161 drivers/net/ethernet/apple/mace.c 	if (mp->mace == NULL) {
mp                172 drivers/net/ethernet/apple/mace.c 	mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) |
mp                173 drivers/net/ethernet/apple/mace.c 			in_8(&mp->mace->chipid_lo);
mp                176 drivers/net/ethernet/apple/mace.c 	mp = netdev_priv(dev);
mp                177 drivers/net/ethernet/apple/mace.c 	mp->maccc = ENXMT | ENRCV;
mp                179 drivers/net/ethernet/apple/mace.c 	mp->tx_dma = ioremap(macio_resource_start(mdev, 1), 0x1000);
mp                180 drivers/net/ethernet/apple/mace.c 	if (mp->tx_dma == NULL) {
mp                185 drivers/net/ethernet/apple/mace.c 	mp->tx_dma_intr = macio_irq(mdev, 1);
mp                187 drivers/net/ethernet/apple/mace.c 	mp->rx_dma = ioremap(macio_resource_start(mdev, 2), 0x1000);
mp                188 drivers/net/ethernet/apple/mace.c 	if (mp->rx_dma == NULL) {
mp                193 drivers/net/ethernet/apple/mace.c 	mp->rx_dma_intr = macio_irq(mdev, 2);
mp                195 drivers/net/ethernet/apple/mace.c 	mp->tx_cmds = (volatile struct dbdma_cmd *) DBDMA_ALIGN(mp + 1);
mp                196 drivers/net/ethernet/apple/mace.c 	mp->rx_cmds = mp->tx_cmds + NCMDS_TX * N_TX_RING + 1;
mp                198 drivers/net/ethernet/apple/mace.c 	memset((char *) mp->tx_cmds, 0,
mp                200 drivers/net/ethernet/apple/mace.c 	timer_setup(&mp->tx_timeout, mace_tx_timeout, 0);
mp                201 drivers/net/ethernet/apple/mace.c 	spin_lock_init(&mp->lock);
mp                202 drivers/net/ethernet/apple/mace.c 	mp->timeout_active = 0;
mp                205 drivers/net/ethernet/apple/mace.c 		mp->port_aaui = port_aaui;
mp                209 drivers/net/ethernet/apple/mace.c 			mp->port_aaui = 1;
mp                212 drivers/net/ethernet/apple/mace.c 			mp->port_aaui = 1;
mp                214 drivers/net/ethernet/apple/mace.c 			mp->port_aaui = 0;
mp                231 drivers/net/ethernet/apple/mace.c 	rc = request_irq(mp->tx_dma_intr, mace_txdma_intr, 0, "MACE-txdma", dev);
mp                233 drivers/net/ethernet/apple/mace.c 		printk(KERN_ERR "MACE: can't get irq %d\n", mp->tx_dma_intr);
mp                236 drivers/net/ethernet/apple/mace.c 	rc = request_irq(mp->rx_dma_intr, mace_rxdma_intr, 0, "MACE-rxdma", dev);
mp                238 drivers/net/ethernet/apple/mace.c 		printk(KERN_ERR "MACE: can't get irq %d\n", mp->rx_dma_intr);
mp                250 drivers/net/ethernet/apple/mace.c 	       mp->chipid >> 8, mp->chipid & 0xff);
mp                261 drivers/net/ethernet/apple/mace.c 	iounmap(mp->rx_dma);
mp                263 drivers/net/ethernet/apple/mace.c 	iounmap(mp->tx_dma);
mp                265 drivers/net/ethernet/apple/mace.c 	iounmap(mp->mace);
mp                277 drivers/net/ethernet/apple/mace.c 	struct mace_data *mp;
mp                283 drivers/net/ethernet/apple/mace.c 	mp = netdev_priv(dev);
mp                288 drivers/net/ethernet/apple/mace.c 	free_irq(mp->tx_dma_intr, dev);
mp                289 drivers/net/ethernet/apple/mace.c 	free_irq(mp->rx_dma_intr, dev);
mp                291 drivers/net/ethernet/apple/mace.c 	iounmap(mp->rx_dma);
mp                292 drivers/net/ethernet/apple/mace.c 	iounmap(mp->tx_dma);
mp                293 drivers/net/ethernet/apple/mace.c 	iounmap(mp->mace);
mp                319 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                320 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                352 drivers/net/ethernet/apple/mace.c     if (mp->chipid == BROKEN_ADDRCHG_REV)
mp                363 drivers/net/ethernet/apple/mace.c     if (mp->chipid != BROKEN_ADDRCHG_REV)
mp                366 drivers/net/ethernet/apple/mace.c     if (mp->port_aaui)
mp                374 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                375 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                380 drivers/net/ethernet/apple/mace.c     if (mp->chipid == BROKEN_ADDRCHG_REV)
mp                389 drivers/net/ethernet/apple/mace.c     if (mp->chipid != BROKEN_ADDRCHG_REV)
mp                395 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                396 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                399 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                404 drivers/net/ethernet/apple/mace.c     out_8(&mb->maccc, mp->maccc);
mp                406 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                410 drivers/net/ethernet/apple/mace.c static inline void mace_clean_rings(struct mace_data *mp)
mp                416 drivers/net/ethernet/apple/mace.c 	if (mp->rx_bufs[i] != NULL) {
mp                417 drivers/net/ethernet/apple/mace.c 	    dev_kfree_skb(mp->rx_bufs[i]);
mp                418 drivers/net/ethernet/apple/mace.c 	    mp->rx_bufs[i] = NULL;
mp                421 drivers/net/ethernet/apple/mace.c     for (i = mp->tx_empty; i != mp->tx_fill; ) {
mp                422 drivers/net/ethernet/apple/mace.c 	dev_kfree_skb(mp->tx_bufs[i]);
mp                430 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                431 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                432 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *rd = mp->rx_dma;
mp                433 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *td = mp->tx_dma;
mp                443 drivers/net/ethernet/apple/mace.c     mace_clean_rings(mp);
mp                444 drivers/net/ethernet/apple/mace.c     memset((char *)mp->rx_cmds, 0, N_RX_RING * sizeof(struct dbdma_cmd));
mp                445 drivers/net/ethernet/apple/mace.c     cp = mp->rx_cmds;
mp                454 drivers/net/ethernet/apple/mace.c 	mp->rx_bufs[i] = skb;
mp                461 drivers/net/ethernet/apple/mace.c     mp->rx_bufs[i] = NULL;
mp                463 drivers/net/ethernet/apple/mace.c     mp->rx_fill = i;
mp                464 drivers/net/ethernet/apple/mace.c     mp->rx_empty = 0;
mp                469 drivers/net/ethernet/apple/mace.c     cp->cmd_dep = cpu_to_le32(virt_to_bus(mp->rx_cmds));
mp                473 drivers/net/ethernet/apple/mace.c     out_le32(&rd->cmdptr, virt_to_bus(mp->rx_cmds));
mp                477 drivers/net/ethernet/apple/mace.c     cp = mp->tx_cmds + NCMDS_TX * N_TX_RING;
mp                479 drivers/net/ethernet/apple/mace.c     cp->cmd_dep = cpu_to_le32(virt_to_bus(mp->tx_cmds));
mp                483 drivers/net/ethernet/apple/mace.c     out_le32(&td->cmdptr, virt_to_bus(mp->tx_cmds));
mp                484 drivers/net/ethernet/apple/mace.c     mp->tx_fill = 0;
mp                485 drivers/net/ethernet/apple/mace.c     mp->tx_empty = 0;
mp                486 drivers/net/ethernet/apple/mace.c     mp->tx_fullup = 0;
mp                487 drivers/net/ethernet/apple/mace.c     mp->tx_active = 0;
mp                488 drivers/net/ethernet/apple/mace.c     mp->tx_bad_runt = 0;
mp                491 drivers/net/ethernet/apple/mace.c     out_8(&mb->maccc, mp->maccc);
mp                500 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                501 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                502 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *rd = mp->rx_dma;
mp                503 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *td = mp->tx_dma;
mp                513 drivers/net/ethernet/apple/mace.c     mace_clean_rings(mp);
mp                520 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                522 drivers/net/ethernet/apple/mace.c     if (mp->timeout_active)
mp                523 drivers/net/ethernet/apple/mace.c 	del_timer(&mp->tx_timeout);
mp                524 drivers/net/ethernet/apple/mace.c     mp->tx_timeout.expires = jiffies + TX_TIMEOUT;
mp                525 drivers/net/ethernet/apple/mace.c     add_timer(&mp->tx_timeout);
mp                526 drivers/net/ethernet/apple/mace.c     mp->timeout_active = 1;
mp                531 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                532 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *td = mp->tx_dma;
mp                538 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                539 drivers/net/ethernet/apple/mace.c     fill = mp->tx_fill;
mp                543 drivers/net/ethernet/apple/mace.c     if (next == mp->tx_empty) {
mp                545 drivers/net/ethernet/apple/mace.c 	mp->tx_fullup = 1;
mp                546 drivers/net/ethernet/apple/mace.c 	spin_unlock_irqrestore(&mp->lock, flags);
mp                549 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                557 drivers/net/ethernet/apple/mace.c     mp->tx_bufs[fill] = skb;
mp                558 drivers/net/ethernet/apple/mace.c     cp = mp->tx_cmds + NCMDS_TX * fill;
mp                562 drivers/net/ethernet/apple/mace.c     np = mp->tx_cmds + NCMDS_TX * next;
mp                566 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                567 drivers/net/ethernet/apple/mace.c     mp->tx_fill = next;
mp                568 drivers/net/ethernet/apple/mace.c     if (!mp->tx_bad_runt && mp->tx_active < MAX_TX_ACTIVE) {
mp                572 drivers/net/ethernet/apple/mace.c 	++mp->tx_active;
mp                577 drivers/net/ethernet/apple/mace.c     if (next == mp->tx_empty)
mp                579 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                586 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                587 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                592 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                593 drivers/net/ethernet/apple/mace.c     mp->maccc &= ~PROM;
mp                595 drivers/net/ethernet/apple/mace.c 	mp->maccc |= PROM;
mp                619 drivers/net/ethernet/apple/mace.c 	if (mp->chipid == BROKEN_ADDRCHG_REV)
mp                628 drivers/net/ethernet/apple/mace.c 	if (mp->chipid != BROKEN_ADDRCHG_REV)
mp                632 drivers/net/ethernet/apple/mace.c     out_8(&mb->maccc, mp->maccc);
mp                633 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                636 drivers/net/ethernet/apple/mace.c static void mace_handle_misc_intrs(struct mace_data *mp, int intr, struct net_device *dev)
mp                638 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                660 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                661 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                662 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *td = mp->tx_dma;
mp                669 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                672 drivers/net/ethernet/apple/mace.c     mace_handle_misc_intrs(mp, intr, dev);
mp                674 drivers/net/ethernet/apple/mace.c     i = mp->tx_empty;
mp                676 drivers/net/ethernet/apple/mace.c 	del_timer(&mp->tx_timeout);
mp                677 drivers/net/ethernet/apple/mace.c 	mp->timeout_active = 0;
mp                685 drivers/net/ethernet/apple/mace.c 	    mace_handle_misc_intrs(mp, intr, dev);
mp                686 drivers/net/ethernet/apple/mace.c 	if (mp->tx_bad_runt) {
mp                688 drivers/net/ethernet/apple/mace.c 	    mp->tx_bad_runt = 0;
mp                724 drivers/net/ethernet/apple/mace.c 	cp = mp->tx_cmds + NCMDS_TX * i;
mp                735 drivers/net/ethernet/apple/mace.c 		mp->tx_bad_runt = 1;
mp                752 drivers/net/ethernet/apple/mace.c 	if (i == mp->tx_fill) {
mp                765 drivers/net/ethernet/apple/mace.c 	    dev->stats.tx_bytes += mp->tx_bufs[i]->len;
mp                768 drivers/net/ethernet/apple/mace.c 	dev_consume_skb_irq(mp->tx_bufs[i]);
mp                769 drivers/net/ethernet/apple/mace.c 	--mp->tx_active;
mp                778 drivers/net/ethernet/apple/mace.c     if (i != mp->tx_empty) {
mp                779 drivers/net/ethernet/apple/mace.c 	mp->tx_fullup = 0;
mp                782 drivers/net/ethernet/apple/mace.c     mp->tx_empty = i;
mp                783 drivers/net/ethernet/apple/mace.c     i += mp->tx_active;
mp                786 drivers/net/ethernet/apple/mace.c     if (!mp->tx_bad_runt && i != mp->tx_fill && mp->tx_active < MAX_TX_ACTIVE) {
mp                789 drivers/net/ethernet/apple/mace.c 	    cp = mp->tx_cmds + NCMDS_TX * i;
mp                792 drivers/net/ethernet/apple/mace.c 	    ++mp->tx_active;
mp                795 drivers/net/ethernet/apple/mace.c 	} while (i != mp->tx_fill && mp->tx_active < MAX_TX_ACTIVE);
mp                799 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                805 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = from_timer(mp, t, tx_timeout);
mp                806 drivers/net/ethernet/apple/mace.c     struct net_device *dev = macio_get_drvdata(mp->mdev);
mp                807 drivers/net/ethernet/apple/mace.c     volatile struct mace __iomem *mb = mp->mace;
mp                808 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *td = mp->tx_dma;
mp                809 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *rd = mp->rx_dma;
mp                814 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                815 drivers/net/ethernet/apple/mace.c     mp->timeout_active = 0;
mp                816 drivers/net/ethernet/apple/mace.c     if (mp->tx_active == 0 && !mp->tx_bad_runt)
mp                820 drivers/net/ethernet/apple/mace.c     mace_handle_misc_intrs(mp, in_8(&mb->ir), dev);
mp                822 drivers/net/ethernet/apple/mace.c     cp = mp->tx_cmds + NCMDS_TX * mp->tx_empty;
mp                838 drivers/net/ethernet/apple/mace.c     i = mp->tx_empty;
mp                839 drivers/net/ethernet/apple/mace.c     mp->tx_active = 0;
mp                841 drivers/net/ethernet/apple/mace.c     if (mp->tx_bad_runt) {
mp                842 drivers/net/ethernet/apple/mace.c 	mp->tx_bad_runt = 0;
mp                843 drivers/net/ethernet/apple/mace.c     } else if (i != mp->tx_fill) {
mp                844 drivers/net/ethernet/apple/mace.c 	dev_kfree_skb(mp->tx_bufs[i]);
mp                847 drivers/net/ethernet/apple/mace.c 	mp->tx_empty = i;
mp                849 drivers/net/ethernet/apple/mace.c     mp->tx_fullup = 0;
mp                851 drivers/net/ethernet/apple/mace.c     if (i != mp->tx_fill) {
mp                852 drivers/net/ethernet/apple/mace.c 	cp = mp->tx_cmds + NCMDS_TX * i;
mp                857 drivers/net/ethernet/apple/mace.c 	++mp->tx_active;
mp                863 drivers/net/ethernet/apple/mace.c     out_8(&mb->maccc, mp->maccc);
mp                866 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                877 drivers/net/ethernet/apple/mace.c     struct mace_data *mp = netdev_priv(dev);
mp                878 drivers/net/ethernet/apple/mace.c     volatile struct dbdma_regs __iomem *rd = mp->rx_dma;
mp                887 drivers/net/ethernet/apple/mace.c     spin_lock_irqsave(&mp->lock, flags);
mp                888 drivers/net/ethernet/apple/mace.c     for (i = mp->rx_empty; i != mp->rx_fill; ) {
mp                889 drivers/net/ethernet/apple/mace.c 	cp = mp->rx_cmds + i;
mp                895 drivers/net/ethernet/apple/mace.c 	    np = mp->rx_cmds + next;
mp                896 drivers/net/ethernet/apple/mace.c 	    if (next != mp->rx_fill &&
mp                906 drivers/net/ethernet/apple/mace.c 	skb = mp->rx_bufs[i];
mp                933 drivers/net/ethernet/apple/mace.c 		mp->rx_bufs[i] = NULL;
mp                945 drivers/net/ethernet/apple/mace.c     mp->rx_empty = i;
mp                947 drivers/net/ethernet/apple/mace.c     i = mp->rx_fill;
mp                952 drivers/net/ethernet/apple/mace.c 	if (next == mp->rx_empty)
mp                954 drivers/net/ethernet/apple/mace.c 	cp = mp->rx_cmds + i;
mp                955 drivers/net/ethernet/apple/mace.c 	skb = mp->rx_bufs[i];
mp                960 drivers/net/ethernet/apple/mace.c 		mp->rx_bufs[i] = skb;
mp                977 drivers/net/ethernet/apple/mace.c     if (i != mp->rx_fill) {
mp                979 drivers/net/ethernet/apple/mace.c 	mp->rx_fill = i;
mp                981 drivers/net/ethernet/apple/mace.c     spin_unlock_irqrestore(&mp->lock, flags);
mp                103 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                106 drivers/net/ethernet/apple/macmace.c 	psc_write_long(PSC_ENETRD_ADDR + set, (u32) mp->rx_ring_phys);
mp                109 drivers/net/ethernet/apple/macmace.c 	mp->rx_tail = 0;
mp                118 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                119 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mace = mp->mace;
mp                133 drivers/net/ethernet/apple/macmace.c 	mp->rx_slot = 0;
mp                145 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                146 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mace = mp->mace;
mp                154 drivers/net/ethernet/apple/macmace.c 	mp->tx_slot = mp->tx_sloti = 0;
mp                155 drivers/net/ethernet/apple/macmace.c 	mp->tx_count = N_TX_RING;
mp                196 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp;
mp                206 drivers/net/ethernet/apple/macmace.c 	mp = netdev_priv(dev);
mp                208 drivers/net/ethernet/apple/macmace.c 	mp->device = &pdev->dev;
mp                213 drivers/net/ethernet/apple/macmace.c 	mp->mace = MACE_BASE;
mp                216 drivers/net/ethernet/apple/macmace.c 	mp->dma_intr = IRQ_MAC_MACE_DMA;
mp                218 drivers/net/ethernet/apple/macmace.c 	mp->chipid = mp->mace->chipid_hi << 8 | mp->mace->chipid_lo;
mp                247 drivers/net/ethernet/apple/macmace.c 		dev->dev_addr, mp->chipid);
mp                263 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                264 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                297 drivers/net/ethernet/apple/macmace.c 	if (mp->chipid == BROKEN_ADDRCHG_REV)
mp                308 drivers/net/ethernet/apple/macmace.c 	if (mp->chipid != BROKEN_ADDRCHG_REV)
mp                320 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                321 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                326 drivers/net/ethernet/apple/macmace.c 	if (mp->chipid == BROKEN_ADDRCHG_REV)
mp                335 drivers/net/ethernet/apple/macmace.c 	if (mp->chipid != BROKEN_ADDRCHG_REV)
mp                341 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                342 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                366 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                367 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                376 drivers/net/ethernet/apple/macmace.c 	if (request_irq(mp->dma_intr, mace_dma_intr, 0, dev->name, dev)) {
mp                377 drivers/net/ethernet/apple/macmace.c 		printk(KERN_ERR "%s: can't get irq %d\n", dev->name, mp->dma_intr);
mp                384 drivers/net/ethernet/apple/macmace.c 	mp->tx_ring = dma_alloc_coherent(mp->device,
mp                386 drivers/net/ethernet/apple/macmace.c 					 &mp->tx_ring_phys, GFP_KERNEL);
mp                387 drivers/net/ethernet/apple/macmace.c 	if (mp->tx_ring == NULL)
mp                390 drivers/net/ethernet/apple/macmace.c 	mp->rx_ring = dma_alloc_coherent(mp->device,
mp                392 drivers/net/ethernet/apple/macmace.c 					 &mp->rx_ring_phys, GFP_KERNEL);
mp                393 drivers/net/ethernet/apple/macmace.c 	if (mp->rx_ring == NULL)
mp                415 drivers/net/ethernet/apple/macmace.c 	dma_free_coherent(mp->device, N_TX_RING * MACE_BUFF_SIZE,
mp                416 drivers/net/ethernet/apple/macmace.c 	                  mp->tx_ring, mp->tx_ring_phys);
mp                419 drivers/net/ethernet/apple/macmace.c 	free_irq(mp->dma_intr, dev);
mp                429 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                430 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                445 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                452 drivers/net/ethernet/apple/macmace.c 	if (!mp->tx_count) {
mp                457 drivers/net/ethernet/apple/macmace.c 	mp->tx_count--;
mp                464 drivers/net/ethernet/apple/macmace.c 	skb_copy_from_linear_data(skb, mp->tx_ring, skb->len);
mp                468 drivers/net/ethernet/apple/macmace.c 	psc_write_long(PSC_ENETWR_ADDR + mp->tx_slot, (u32)  mp->tx_ring_phys);
mp                469 drivers/net/ethernet/apple/macmace.c 	psc_write_long(PSC_ENETWR_LEN + mp->tx_slot, skb->len);
mp                470 drivers/net/ethernet/apple/macmace.c 	psc_write_word(PSC_ENETWR_CMD + mp->tx_slot, 0x9800);
mp                472 drivers/net/ethernet/apple/macmace.c 	mp->tx_slot ^= 0x10;
mp                481 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                482 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                513 drivers/net/ethernet/apple/macmace.c 		if (mp->chipid == BROKEN_ADDRCHG_REV)
mp                522 drivers/net/ethernet/apple/macmace.c 		if (mp->chipid != BROKEN_ADDRCHG_REV)
mp                532 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                533 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                555 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                556 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                577 drivers/net/ethernet/apple/macmace.c 		if (!mp->tx_count) {
mp                595 drivers/net/ethernet/apple/macmace.c 	if (mp->tx_count)
mp                605 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                606 drivers/net/ethernet/apple/macmace.c 	volatile struct mace *mb = mp->mace;
mp                620 drivers/net/ethernet/apple/macmace.c 	mp->tx_count = N_TX_RING;
mp                675 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                694 drivers/net/ethernet/apple/macmace.c 		psc_write_word(PSC_ENETRD_CMD + mp->rx_slot, 0x1100);
mp                696 drivers/net/ethernet/apple/macmace.c 		left = psc_read_long(PSC_ENETRD_LEN + mp->rx_slot);
mp                701 drivers/net/ethernet/apple/macmace.c 		while (mp->rx_tail < head) {
mp                702 drivers/net/ethernet/apple/macmace.c 			mace_dma_rx_frame(dev, (struct mace_frame*) (mp->rx_ring
mp                703 drivers/net/ethernet/apple/macmace.c 				+ (mp->rx_tail * MACE_BUFF_SIZE)));
mp                704 drivers/net/ethernet/apple/macmace.c 			mp->rx_tail++;
mp                711 drivers/net/ethernet/apple/macmace.c 			mace_load_rxdma_base(dev, mp->rx_slot);
mp                712 drivers/net/ethernet/apple/macmace.c 			mp->rx_slot ^= 0x10;
mp                714 drivers/net/ethernet/apple/macmace.c 			psc_write_word(PSC_ENETRD_CMD + mp->rx_slot, 0x9800);
mp                727 drivers/net/ethernet/apple/macmace.c 		psc_write_word(PSC_ENETWR_CMD + mp->tx_sloti, 0x0100);
mp                728 drivers/net/ethernet/apple/macmace.c 		mp->tx_sloti ^= 0x10;
mp                729 drivers/net/ethernet/apple/macmace.c 		mp->tx_count++;
mp                741 drivers/net/ethernet/apple/macmace.c 	struct mace_data *mp = netdev_priv(dev);
mp                748 drivers/net/ethernet/apple/macmace.c 	dma_free_coherent(mp->device, N_RX_RING * MACE_BUFF_SIZE,
mp                749 drivers/net/ethernet/apple/macmace.c 	                  mp->rx_ring, mp->rx_ring_phys);
mp                750 drivers/net/ethernet/apple/macmace.c 	dma_free_coherent(mp->device, N_TX_RING * MACE_BUFF_SIZE,
mp                751 drivers/net/ethernet/apple/macmace.c 	                  mp->tx_ring, mp->tx_ring_phys);
mp                327 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *mp = o->macs_pool;
mp                329 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	WARN_ON(!mp);
mp                331 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return mp->get_entry(mp, offset);
mp                336 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *mp = o->macs_pool;
mp                338 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	WARN_ON(!mp);
mp                340 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return mp->get(mp, 1);
mp                363 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *mp = o->macs_pool;
mp                366 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (!mp->get(mp, 1))
mp                370 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		mp->put(mp, 1);
mp                379 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *mp = o->macs_pool;
mp                381 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return mp->put_entry(mp, offset);
mp                386 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *mp = o->macs_pool;
mp                388 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return mp->put(mp, 1);
mp                407 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *mp = o->macs_pool;
mp                410 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (!mp->put(mp, 1))
mp                414 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		mp->get(mp, 1);
mp               3048 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	u32 mp;
mp               3113 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		mp = dsaf_read_dev(dsaf_dev, DSAF_ROCE_PORT_MAP_REG);
mp               3115 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 			dsaf_set_field(mp, 7 << i * 3, i * 3,
mp               3117 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_set_field(mp, 3 << i * 3, i * 3, 0);
mp               3118 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_write_dev(dsaf_dev, DSAF_ROCE_PORT_MAP_REG, mp);
mp                418 drivers/net/ethernet/marvell/mv643xx_eth.c static inline u32 rdl(struct mv643xx_eth_private *mp, int offset)
mp                420 drivers/net/ethernet/marvell/mv643xx_eth.c 	return readl(mp->shared->base + offset);
mp                423 drivers/net/ethernet/marvell/mv643xx_eth.c static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset)
mp                425 drivers/net/ethernet/marvell/mv643xx_eth.c 	return readl(mp->base + offset);
mp                428 drivers/net/ethernet/marvell/mv643xx_eth.c static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data)
mp                430 drivers/net/ethernet/marvell/mv643xx_eth.c 	writel(data, mp->shared->base + offset);
mp                433 drivers/net/ethernet/marvell/mv643xx_eth.c static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data)
mp                435 drivers/net/ethernet/marvell/mv643xx_eth.c 	writel(data, mp->base + offset);
mp                452 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = rxq_to_mp(rxq);
mp                453 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, RXQ_COMMAND, 1 << rxq->index);
mp                458 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = rxq_to_mp(rxq);
mp                461 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, RXQ_COMMAND, mask << 8);
mp                462 drivers/net/ethernet/marvell/mv643xx_eth.c 	while (rdlp(mp, RXQ_COMMAND) & mask)
mp                468 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                473 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, TXQ_CURRENT_DESC_PTR(txq->index), addr);
mp                478 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                479 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, TXQ_COMMAND, 1 << txq->index);
mp                484 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                487 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, TXQ_COMMAND, mask << 8);
mp                488 drivers/net/ethernet/marvell/mv643xx_eth.c 	while (rdlp(mp, TXQ_COMMAND) & mask)
mp                494 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                495 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index);
mp                507 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = rxq_to_mp(rxq);
mp                508 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device_stats *stats = &mp->dev->stats;
mp                532 drivers/net/ethernet/marvell/mv643xx_eth.c 		dma_unmap_single(mp->dev->dev.parent, rx_desc->buf_ptr,
mp                537 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_rx_refill |= 1 << rxq->index;
mp                569 drivers/net/ethernet/marvell/mv643xx_eth.c 		skb->protocol = eth_type_trans(skb, mp->dev);
mp                571 drivers/net/ethernet/marvell/mv643xx_eth.c 		napi_gro_receive(&mp->napi, skb);
mp                581 drivers/net/ethernet/marvell/mv643xx_eth.c 				netdev_err(mp->dev,
mp                592 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_rx &= ~(1 << rxq->index);
mp                599 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = rxq_to_mp(rxq);
mp                609 drivers/net/ethernet/marvell/mv643xx_eth.c 		skb = netdev_alloc_skb(mp->dev, mp->skb_size);
mp                612 drivers/net/ethernet/marvell/mv643xx_eth.c 			mp->oom = 1;
mp                629 drivers/net/ethernet/marvell/mv643xx_eth.c 		rx_desc->buf_ptr = dma_map_single(mp->dev->dev.parent,
mp                647 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_rx_refill &= ~(1 << rxq->index);
mp                674 drivers/net/ethernet/marvell/mv643xx_eth.c static int skb_tx_csum(struct mv643xx_eth_private *mp, struct sk_buff *skb,
mp                690 drivers/net/ethernet/marvell/mv643xx_eth.c 		if (length - hdr_len > mp->shared->tx_csum_limit ||
mp                781 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                793 drivers/net/ethernet/marvell/mv643xx_eth.c 	ret = skb_tx_csum(mp, skb, &l4i_chk, &cmd_csum, length);
mp                823 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                880 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->work_tx_end &= ~(1 << txq->index);
mp                896 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                926 drivers/net/ethernet/marvell/mv643xx_eth.c 		desc->buf_ptr = skb_frag_dma_map(mp->dev->dev.parent,
mp                935 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp                952 drivers/net/ethernet/marvell/mv643xx_eth.c 	ret = skb_tx_csum(mp, skb, &l4i_chk, &cmd_sts, skb->len);
mp                973 drivers/net/ethernet/marvell/mv643xx_eth.c 	desc->buf_ptr = dma_map_single(mp->dev->dev.parent, skb->data,
mp                985 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->work_tx_end &= ~(1 << txq->index);
mp                998 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1004 drivers/net/ethernet/marvell/mv643xx_eth.c 	txq = mp->txq + queue;
mp               1037 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp               1038 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index);
mp               1044 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (rdlp(mp, TXQ_COMMAND) & (1 << txq->index))
mp               1047 drivers/net/ethernet/marvell/mv643xx_eth.c 	hw_desc_ptr = rdlp(mp, TXQ_CURRENT_DESC_PTR(txq->index));
mp               1057 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->work_tx_end &= ~(1 << txq->index);
mp               1062 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp               1063 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index);
mp               1097 drivers/net/ethernet/marvell/mv643xx_eth.c 				dma_unmap_page(mp->dev->dev.parent,
mp               1102 drivers/net/ethernet/marvell/mv643xx_eth.c 				dma_unmap_single(mp->dev->dev.parent,
mp               1116 drivers/net/ethernet/marvell/mv643xx_eth.c 			netdev_info(mp->dev, "tx error\n");
mp               1117 drivers/net/ethernet/marvell/mv643xx_eth.c 			mp->dev->stats.tx_errors++;
mp               1125 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_tx &= ~(1 << txq->index);
mp               1136 drivers/net/ethernet/marvell/mv643xx_eth.c static void tx_set_rate(struct mv643xx_eth_private *mp, int rate, int burst)
mp               1142 drivers/net/ethernet/marvell/mv643xx_eth.c 	token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000);
mp               1146 drivers/net/ethernet/marvell/mv643xx_eth.c 	mtu = (mp->dev->mtu + 255) >> 8;
mp               1154 drivers/net/ethernet/marvell/mv643xx_eth.c 	switch (mp->shared->tx_bw_control) {
mp               1156 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, TX_BW_RATE, token_rate);
mp               1157 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, TX_BW_MTU, mtu);
mp               1158 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, TX_BW_BURST, bucket_size);
mp               1161 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, TX_BW_RATE_MOVED, token_rate);
mp               1162 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, TX_BW_MTU_MOVED, mtu);
mp               1163 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, TX_BW_BURST_MOVED, bucket_size);
mp               1170 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp               1174 drivers/net/ethernet/marvell/mv643xx_eth.c 	token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000);
mp               1182 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, TXQ_BW_TOKENS(txq->index), token_rate << 14);
mp               1183 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, TXQ_BW_CONF(txq->index), (bucket_size << 10) | token_rate);
mp               1188 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp               1196 drivers/net/ethernet/marvell/mv643xx_eth.c 	switch (mp->shared->tx_bw_control) {
mp               1206 drivers/net/ethernet/marvell/mv643xx_eth.c 		val = rdlp(mp, off);
mp               1208 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, off, val);
mp               1216 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1217 drivers/net/ethernet/marvell/mv643xx_eth.c 	u32 pscr = rdlp(mp, PORT_SERIAL_CONTROL);
mp               1251 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_SERIAL_CONTROL, pscr);
mp               1257 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1264 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->txq_count; i++) {
mp               1265 drivers/net/ethernet/marvell/mv643xx_eth.c 		struct tx_queue *txq = mp->txq + i;
mp               1279 drivers/net/ethernet/marvell/mv643xx_eth.c static inline u32 mib_read(struct mv643xx_eth_private *mp, int offset)
mp               1281 drivers/net/ethernet/marvell/mv643xx_eth.c 	return rdl(mp, MIB_COUNTERS(mp->port_num) + offset);
mp               1284 drivers/net/ethernet/marvell/mv643xx_eth.c static void mib_counters_clear(struct mv643xx_eth_private *mp)
mp               1289 drivers/net/ethernet/marvell/mv643xx_eth.c 		mib_read(mp, i);
mp               1292 drivers/net/ethernet/marvell/mv643xx_eth.c 	rdlp(mp, RX_DISCARD_FRAME_CNT);
mp               1293 drivers/net/ethernet/marvell/mv643xx_eth.c 	rdlp(mp, RX_OVERRUN_FRAME_CNT);
mp               1296 drivers/net/ethernet/marvell/mv643xx_eth.c static void mib_counters_update(struct mv643xx_eth_private *mp)
mp               1298 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mib_counters *p = &mp->mib_counters;
mp               1300 drivers/net/ethernet/marvell/mv643xx_eth.c 	spin_lock_bh(&mp->mib_counters_lock);
mp               1301 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->good_octets_received += mib_read(mp, 0x00);
mp               1302 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->bad_octets_received += mib_read(mp, 0x08);
mp               1303 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->internal_mac_transmit_err += mib_read(mp, 0x0c);
mp               1304 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->good_frames_received += mib_read(mp, 0x10);
mp               1305 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->bad_frames_received += mib_read(mp, 0x14);
mp               1306 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->broadcast_frames_received += mib_read(mp, 0x18);
mp               1307 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->multicast_frames_received += mib_read(mp, 0x1c);
mp               1308 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->frames_64_octets += mib_read(mp, 0x20);
mp               1309 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->frames_65_to_127_octets += mib_read(mp, 0x24);
mp               1310 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->frames_128_to_255_octets += mib_read(mp, 0x28);
mp               1311 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->frames_256_to_511_octets += mib_read(mp, 0x2c);
mp               1312 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->frames_512_to_1023_octets += mib_read(mp, 0x30);
mp               1313 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->frames_1024_to_max_octets += mib_read(mp, 0x34);
mp               1314 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->good_octets_sent += mib_read(mp, 0x38);
mp               1315 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->good_frames_sent += mib_read(mp, 0x40);
mp               1316 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->excessive_collision += mib_read(mp, 0x44);
mp               1317 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->multicast_frames_sent += mib_read(mp, 0x48);
mp               1318 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->broadcast_frames_sent += mib_read(mp, 0x4c);
mp               1319 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->unrec_mac_control_received += mib_read(mp, 0x50);
mp               1320 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->fc_sent += mib_read(mp, 0x54);
mp               1321 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->good_fc_received += mib_read(mp, 0x58);
mp               1322 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->bad_fc_received += mib_read(mp, 0x5c);
mp               1323 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->undersize_received += mib_read(mp, 0x60);
mp               1324 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->fragments_received += mib_read(mp, 0x64);
mp               1325 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->oversize_received += mib_read(mp, 0x68);
mp               1326 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->jabber_received += mib_read(mp, 0x6c);
mp               1327 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->mac_receive_error += mib_read(mp, 0x70);
mp               1328 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->bad_crc_event += mib_read(mp, 0x74);
mp               1329 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->collision += mib_read(mp, 0x78);
mp               1330 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->late_collision += mib_read(mp, 0x7c);
mp               1332 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->rx_discard += rdlp(mp, RX_DISCARD_FRAME_CNT);
mp               1333 drivers/net/ethernet/marvell/mv643xx_eth.c 	p->rx_overrun += rdlp(mp, RX_OVERRUN_FRAME_CNT);
mp               1334 drivers/net/ethernet/marvell/mv643xx_eth.c 	spin_unlock_bh(&mp->mib_counters_lock);
mp               1339 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = from_timer(mp, t, mib_counters_timer);
mp               1340 drivers/net/ethernet/marvell/mv643xx_eth.c 	mib_counters_update(mp);
mp               1341 drivers/net/ethernet/marvell/mv643xx_eth.c 	mod_timer(&mp->mib_counters_timer, jiffies + 30 * HZ);
mp               1357 drivers/net/ethernet/marvell/mv643xx_eth.c static unsigned int get_rx_coal(struct mv643xx_eth_private *mp)
mp               1359 drivers/net/ethernet/marvell/mv643xx_eth.c 	u32 val = rdlp(mp, SDMA_CONFIG);
mp               1362 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->shared->extended_rx_coal_limit)
mp               1368 drivers/net/ethernet/marvell/mv643xx_eth.c 	temp += mp->t_clk / 2;
mp               1369 drivers/net/ethernet/marvell/mv643xx_eth.c 	do_div(temp, mp->t_clk);
mp               1374 drivers/net/ethernet/marvell/mv643xx_eth.c static void set_rx_coal(struct mv643xx_eth_private *mp, unsigned int usec)
mp               1379 drivers/net/ethernet/marvell/mv643xx_eth.c 	temp = (u64)usec * mp->t_clk;
mp               1383 drivers/net/ethernet/marvell/mv643xx_eth.c 	val = rdlp(mp, SDMA_CONFIG);
mp               1384 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->shared->extended_rx_coal_limit) {
mp               1396 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, SDMA_CONFIG, val);
mp               1399 drivers/net/ethernet/marvell/mv643xx_eth.c static unsigned int get_tx_coal(struct mv643xx_eth_private *mp)
mp               1403 drivers/net/ethernet/marvell/mv643xx_eth.c 	temp = (rdlp(mp, TX_FIFO_URGENT_THRESHOLD) & 0x3fff0) >> 4;
mp               1405 drivers/net/ethernet/marvell/mv643xx_eth.c 	temp += mp->t_clk / 2;
mp               1406 drivers/net/ethernet/marvell/mv643xx_eth.c 	do_div(temp, mp->t_clk);
mp               1411 drivers/net/ethernet/marvell/mv643xx_eth.c static void set_tx_coal(struct mv643xx_eth_private *mp, unsigned int usec)
mp               1415 drivers/net/ethernet/marvell/mv643xx_eth.c 	temp = (u64)usec * mp->t_clk;
mp               1422 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, TX_FIFO_URGENT_THRESHOLD, temp << 4);
mp               1486 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_get_link_ksettings_phy(struct mv643xx_eth_private *mp,
mp               1489 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               1505 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_get_link_ksettings_phyless(struct mv643xx_eth_private *mp,
mp               1511 drivers/net/ethernet/marvell/mv643xx_eth.c 	port_status = rdlp(mp, PORT_STATUS);
mp               1573 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1576 drivers/net/ethernet/marvell/mv643xx_eth.c 		return mv643xx_eth_get_link_ksettings_phy(mp, cmd);
mp               1578 drivers/net/ethernet/marvell/mv643xx_eth.c 		return mv643xx_eth_get_link_ksettings_phyless(mp, cmd);
mp               1621 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1623 drivers/net/ethernet/marvell/mv643xx_eth.c 	ec->rx_coalesce_usecs = get_rx_coal(mp);
mp               1624 drivers/net/ethernet/marvell/mv643xx_eth.c 	ec->tx_coalesce_usecs = get_tx_coal(mp);
mp               1632 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1634 drivers/net/ethernet/marvell/mv643xx_eth.c 	set_rx_coal(mp, ec->rx_coalesce_usecs);
mp               1635 drivers/net/ethernet/marvell/mv643xx_eth.c 	set_tx_coal(mp, ec->tx_coalesce_usecs);
mp               1643 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1648 drivers/net/ethernet/marvell/mv643xx_eth.c 	er->rx_pending = mp->rx_ring_size;
mp               1649 drivers/net/ethernet/marvell/mv643xx_eth.c 	er->tx_pending = mp->tx_ring_size;
mp               1655 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1660 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->rx_ring_size = er->rx_pending < 4096 ? er->rx_pending : 4096;
mp               1661 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->tx_ring_size = clamp_t(unsigned int, er->tx_pending,
mp               1663 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->tx_ring_size != er->tx_pending)
mp               1665 drivers/net/ethernet/marvell/mv643xx_eth.c 			    mp->tx_ring_size, er->tx_pending);
mp               1683 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1686 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_CONFIG, rx_csum ? 0x02000000 : 0x00000000);
mp               1709 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1713 drivers/net/ethernet/marvell/mv643xx_eth.c 	mib_counters_update(mp);
mp               1722 drivers/net/ethernet/marvell/mv643xx_eth.c 			p = ((void *)mp->dev) + stat->netdev_off;
mp               1724 drivers/net/ethernet/marvell/mv643xx_eth.c 			p = ((void *)mp) + stat->mp_off;
mp               1759 drivers/net/ethernet/marvell/mv643xx_eth.c static void uc_addr_get(struct mv643xx_eth_private *mp, unsigned char *addr)
mp               1761 drivers/net/ethernet/marvell/mv643xx_eth.c 	unsigned int mac_h = rdlp(mp, MAC_ADDR_HIGH);
mp               1762 drivers/net/ethernet/marvell/mv643xx_eth.c 	unsigned int mac_l = rdlp(mp, MAC_ADDR_LOW);
mp               1772 drivers/net/ethernet/marvell/mv643xx_eth.c static void uc_addr_set(struct mv643xx_eth_private *mp, unsigned char *addr)
mp               1774 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, MAC_ADDR_HIGH,
mp               1776 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, MAC_ADDR_LOW, (addr[4] << 8) | addr[5]);
mp               1802 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1807 drivers/net/ethernet/marvell/mv643xx_eth.c 	uc_addr_set(mp, dev->dev_addr);
mp               1809 drivers/net/ethernet/marvell/mv643xx_eth.c 	port_config = rdlp(mp, PORT_CONFIG) & ~UNICAST_PROMISCUOUS_MODE;
mp               1818 drivers/net/ethernet/marvell/mv643xx_eth.c 		int off = UNICAST_TABLE(mp->port_num) + i;
mp               1832 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, off, v);
mp               1835 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_CONFIG, port_config);
mp               1858 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               1890 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, SPECIAL_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
mp               1892 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, OTHER_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
mp               1901 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, SPECIAL_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
mp               1903 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, OTHER_MCAST_TABLE(mp->port_num) + i * sizeof(u32),
mp               1932 drivers/net/ethernet/marvell/mv643xx_eth.c static int rxq_init(struct mv643xx_eth_private *mp, int index)
mp               1934 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct rx_queue *rxq = mp->rxq + index;
mp               1941 drivers/net/ethernet/marvell/mv643xx_eth.c 	rxq->rx_ring_size = mp->rx_ring_size;
mp               1949 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (index == 0 && size <= mp->rx_desc_sram_size) {
mp               1950 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq->rx_desc_area = ioremap(mp->rx_desc_sram_addr,
mp               1951 drivers/net/ethernet/marvell/mv643xx_eth.c 						mp->rx_desc_sram_size);
mp               1952 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq->rx_desc_dma = mp->rx_desc_sram_addr;
mp               1954 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq->rx_desc_area = dma_alloc_coherent(mp->dev->dev.parent,
mp               1960 drivers/net/ethernet/marvell/mv643xx_eth.c 		netdev_err(mp->dev,
mp               1988 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (index == 0 && size <= mp->rx_desc_sram_size)
mp               1991 drivers/net/ethernet/marvell/mv643xx_eth.c 		dma_free_coherent(mp->dev->dev.parent, size,
mp               2001 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = rxq_to_mp(rxq);
mp               2014 drivers/net/ethernet/marvell/mv643xx_eth.c 		netdev_err(mp->dev, "error freeing rx ring -- %d skbs stuck\n",
mp               2019 drivers/net/ethernet/marvell/mv643xx_eth.c 	    rxq->rx_desc_area_size <= mp->rx_desc_sram_size)
mp               2022 drivers/net/ethernet/marvell/mv643xx_eth.c 		dma_free_coherent(mp->dev->dev.parent, rxq->rx_desc_area_size,
mp               2028 drivers/net/ethernet/marvell/mv643xx_eth.c static int txq_init(struct mv643xx_eth_private *mp, int index)
mp               2030 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct tx_queue *txq = mp->txq + index;
mp               2038 drivers/net/ethernet/marvell/mv643xx_eth.c 	txq->tx_ring_size = mp->tx_ring_size;
mp               2053 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (index == 0 && size <= mp->tx_desc_sram_size) {
mp               2054 drivers/net/ethernet/marvell/mv643xx_eth.c 		txq->tx_desc_area = ioremap(mp->tx_desc_sram_addr,
mp               2055 drivers/net/ethernet/marvell/mv643xx_eth.c 						mp->tx_desc_sram_size);
mp               2056 drivers/net/ethernet/marvell/mv643xx_eth.c 		txq->tx_desc_dma = mp->tx_desc_sram_addr;
mp               2058 drivers/net/ethernet/marvell/mv643xx_eth.c 		txq->tx_desc_area = dma_alloc_coherent(mp->dev->dev.parent,
mp               2064 drivers/net/ethernet/marvell/mv643xx_eth.c 		netdev_err(mp->dev,
mp               2094 drivers/net/ethernet/marvell/mv643xx_eth.c 	txq->tso_hdrs = dma_alloc_coherent(mp->dev->dev.parent,
mp               2108 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (index == 0 && size <= mp->tx_desc_sram_size)
mp               2111 drivers/net/ethernet/marvell/mv643xx_eth.c 		dma_free_coherent(mp->dev->dev.parent, txq->tx_desc_area_size,
mp               2118 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = txq_to_mp(txq);
mp               2126 drivers/net/ethernet/marvell/mv643xx_eth.c 	    txq->tx_desc_area_size <= mp->tx_desc_sram_size)
mp               2129 drivers/net/ethernet/marvell/mv643xx_eth.c 		dma_free_coherent(mp->dev->dev.parent, txq->tx_desc_area_size,
mp               2134 drivers/net/ethernet/marvell/mv643xx_eth.c 		dma_free_coherent(mp->dev->dev.parent,
mp               2141 drivers/net/ethernet/marvell/mv643xx_eth.c static int mv643xx_eth_collect_events(struct mv643xx_eth_private *mp)
mp               2146 drivers/net/ethernet/marvell/mv643xx_eth.c 	int_cause = rdlp(mp, INT_CAUSE) & mp->int_mask;
mp               2153 drivers/net/ethernet/marvell/mv643xx_eth.c 		int_cause_ext = rdlp(mp, INT_CAUSE_EXT);
mp               2157 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, INT_CAUSE, ~int_cause);
mp               2158 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_tx_end |= ((int_cause & INT_TX_END) >> 19) &
mp               2159 drivers/net/ethernet/marvell/mv643xx_eth.c 				~(rdlp(mp, TXQ_COMMAND) & 0xff);
mp               2160 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_rx |= (int_cause & INT_RX) >> 2;
mp               2165 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, INT_CAUSE_EXT, ~int_cause_ext);
mp               2167 drivers/net/ethernet/marvell/mv643xx_eth.c 			mp->work_link = 1;
mp               2168 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->work_tx |= int_cause_ext & INT_EXT_TX;
mp               2177 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               2179 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (unlikely(!mv643xx_eth_collect_events(mp)))
mp               2182 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK, 0);
mp               2183 drivers/net/ethernet/marvell/mv643xx_eth.c 	napi_schedule(&mp->napi);
mp               2188 drivers/net/ethernet/marvell/mv643xx_eth.c static void handle_link_event(struct mv643xx_eth_private *mp)
mp               2190 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               2196 drivers/net/ethernet/marvell/mv643xx_eth.c 	port_status = rdlp(mp, PORT_STATUS);
mp               2205 drivers/net/ethernet/marvell/mv643xx_eth.c 			for (i = 0; i < mp->txq_count; i++) {
mp               2206 drivers/net/ethernet/marvell/mv643xx_eth.c 				struct tx_queue *txq = mp->txq + i;
mp               2241 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp;
mp               2244 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp = container_of(napi, struct mv643xx_eth_private, napi);
mp               2246 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (unlikely(mp->oom)) {
mp               2247 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->oom = 0;
mp               2248 drivers/net/ethernet/marvell/mv643xx_eth.c 		del_timer(&mp->rx_oom);
mp               2257 drivers/net/ethernet/marvell/mv643xx_eth.c 		if (mp->work_link) {
mp               2258 drivers/net/ethernet/marvell/mv643xx_eth.c 			mp->work_link = 0;
mp               2259 drivers/net/ethernet/marvell/mv643xx_eth.c 			handle_link_event(mp);
mp               2264 drivers/net/ethernet/marvell/mv643xx_eth.c 		queue_mask = mp->work_tx | mp->work_tx_end | mp->work_rx;
mp               2265 drivers/net/ethernet/marvell/mv643xx_eth.c 		if (likely(!mp->oom))
mp               2266 drivers/net/ethernet/marvell/mv643xx_eth.c 			queue_mask |= mp->work_rx_refill;
mp               2269 drivers/net/ethernet/marvell/mv643xx_eth.c 			if (mv643xx_eth_collect_events(mp))
mp               2281 drivers/net/ethernet/marvell/mv643xx_eth.c 		if (mp->work_tx_end & queue_mask) {
mp               2282 drivers/net/ethernet/marvell/mv643xx_eth.c 			txq_kick(mp->txq + queue);
mp               2283 drivers/net/ethernet/marvell/mv643xx_eth.c 		} else if (mp->work_tx & queue_mask) {
mp               2284 drivers/net/ethernet/marvell/mv643xx_eth.c 			work_done += txq_reclaim(mp->txq + queue, work_tbd, 0);
mp               2285 drivers/net/ethernet/marvell/mv643xx_eth.c 			txq_maybe_wake(mp->txq + queue);
mp               2286 drivers/net/ethernet/marvell/mv643xx_eth.c 		} else if (mp->work_rx & queue_mask) {
mp               2287 drivers/net/ethernet/marvell/mv643xx_eth.c 			work_done += rxq_process(mp->rxq + queue, work_tbd);
mp               2288 drivers/net/ethernet/marvell/mv643xx_eth.c 		} else if (!mp->oom && (mp->work_rx_refill & queue_mask)) {
mp               2289 drivers/net/ethernet/marvell/mv643xx_eth.c 			work_done += rxq_refill(mp->rxq + queue, work_tbd);
mp               2296 drivers/net/ethernet/marvell/mv643xx_eth.c 		if (mp->oom)
mp               2297 drivers/net/ethernet/marvell/mv643xx_eth.c 			mod_timer(&mp->rx_oom, jiffies + (HZ / 10));
mp               2299 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, INT_MASK, mp->int_mask);
mp               2307 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = from_timer(mp, t, rx_oom);
mp               2309 drivers/net/ethernet/marvell/mv643xx_eth.c 	napi_schedule(&mp->napi);
mp               2312 drivers/net/ethernet/marvell/mv643xx_eth.c static void port_start(struct mv643xx_eth_private *mp)
mp               2314 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               2334 drivers/net/ethernet/marvell/mv643xx_eth.c 	pscr = rdlp(mp, PORT_SERIAL_CONTROL);
mp               2337 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_SERIAL_CONTROL, pscr);
mp               2342 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_SERIAL_CONTROL, pscr);
mp               2347 drivers/net/ethernet/marvell/mv643xx_eth.c 	tx_set_rate(mp, 1000000000, 16777216);
mp               2348 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->txq_count; i++) {
mp               2349 drivers/net/ethernet/marvell/mv643xx_eth.c 		struct tx_queue *txq = mp->txq + i;
mp               2361 drivers/net/ethernet/marvell/mv643xx_eth.c 	mv643xx_eth_set_features(mp->dev, mp->dev->features);
mp               2366 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_CONFIG_EXT, 0x00000000);
mp               2371 drivers/net/ethernet/marvell/mv643xx_eth.c 	mv643xx_eth_program_unicast_filter(mp->dev);
mp               2376 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->rxq_count; i++) {
mp               2377 drivers/net/ethernet/marvell/mv643xx_eth.c 		struct rx_queue *rxq = mp->rxq + i;
mp               2382 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, RXQ_CURRENT_DESC_PTR(i), addr);
mp               2388 drivers/net/ethernet/marvell/mv643xx_eth.c static void mv643xx_eth_recalc_skb_size(struct mv643xx_eth_private *mp)
mp               2398 drivers/net/ethernet/marvell/mv643xx_eth.c 	skb_size = mp->dev->mtu + 36;
mp               2405 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->skb_size = (skb_size + 7) & ~7;
mp               2413 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->skb_size += SKB_DMA_REALIGN;
mp               2418 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               2422 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_CAUSE, 0);
mp               2423 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_CAUSE_EXT, 0);
mp               2424 drivers/net/ethernet/marvell/mv643xx_eth.c 	rdlp(mp, INT_CAUSE_EXT);
mp               2433 drivers/net/ethernet/marvell/mv643xx_eth.c 	mv643xx_eth_recalc_skb_size(mp);
mp               2435 drivers/net/ethernet/marvell/mv643xx_eth.c 	napi_enable(&mp->napi);
mp               2437 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->int_mask = INT_EXT;
mp               2439 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->rxq_count; i++) {
mp               2440 drivers/net/ethernet/marvell/mv643xx_eth.c 		err = rxq_init(mp, i);
mp               2443 drivers/net/ethernet/marvell/mv643xx_eth.c 				rxq_deinit(mp->rxq + i);
mp               2447 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq_refill(mp->rxq + i, INT_MAX);
mp               2448 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->int_mask |= INT_RX_0 << i;
mp               2451 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->oom) {
mp               2452 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->rx_oom.expires = jiffies + (HZ / 10);
mp               2453 drivers/net/ethernet/marvell/mv643xx_eth.c 		add_timer(&mp->rx_oom);
mp               2456 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->txq_count; i++) {
mp               2457 drivers/net/ethernet/marvell/mv643xx_eth.c 		err = txq_init(mp, i);
mp               2460 drivers/net/ethernet/marvell/mv643xx_eth.c 				txq_deinit(mp->txq + i);
mp               2463 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->int_mask |= INT_TX_END_0 << i;
mp               2466 drivers/net/ethernet/marvell/mv643xx_eth.c 	add_timer(&mp->mib_counters_timer);
mp               2467 drivers/net/ethernet/marvell/mv643xx_eth.c 	port_start(mp);
mp               2469 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK_EXT, INT_EXT_LINK_PHY | INT_EXT_TX);
mp               2470 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK, mp->int_mask);
mp               2476 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->rxq_count; i++)
mp               2477 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq_deinit(mp->rxq + i);
mp               2484 drivers/net/ethernet/marvell/mv643xx_eth.c static void port_reset(struct mv643xx_eth_private *mp)
mp               2489 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->rxq_count; i++)
mp               2490 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq_disable(mp->rxq + i);
mp               2491 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->txq_count; i++)
mp               2492 drivers/net/ethernet/marvell/mv643xx_eth.c 		txq_disable(mp->txq + i);
mp               2495 drivers/net/ethernet/marvell/mv643xx_eth.c 		u32 ps = rdlp(mp, PORT_STATUS);
mp               2503 drivers/net/ethernet/marvell/mv643xx_eth.c 	data = rdlp(mp, PORT_SERIAL_CONTROL);
mp               2507 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_SERIAL_CONTROL, data);
mp               2512 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               2515 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK_EXT, 0x00000000);
mp               2516 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK, 0x00000000);
mp               2517 drivers/net/ethernet/marvell/mv643xx_eth.c 	rdlp(mp, INT_MASK);
mp               2519 drivers/net/ethernet/marvell/mv643xx_eth.c 	napi_disable(&mp->napi);
mp               2521 drivers/net/ethernet/marvell/mv643xx_eth.c 	del_timer_sync(&mp->rx_oom);
mp               2528 drivers/net/ethernet/marvell/mv643xx_eth.c 	port_reset(mp);
mp               2530 drivers/net/ethernet/marvell/mv643xx_eth.c 	mib_counters_update(mp);
mp               2531 drivers/net/ethernet/marvell/mv643xx_eth.c 	del_timer_sync(&mp->mib_counters_timer);
mp               2533 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->rxq_count; i++)
mp               2534 drivers/net/ethernet/marvell/mv643xx_eth.c 		rxq_deinit(mp->rxq + i);
mp               2535 drivers/net/ethernet/marvell/mv643xx_eth.c 	for (i = 0; i < mp->txq_count; i++)
mp               2536 drivers/net/ethernet/marvell/mv643xx_eth.c 		txq_deinit(mp->txq + i);
mp               2556 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               2559 drivers/net/ethernet/marvell/mv643xx_eth.c 	mv643xx_eth_recalc_skb_size(mp);
mp               2560 drivers/net/ethernet/marvell/mv643xx_eth.c 	tx_set_rate(mp, 1000000000, 16777216);
mp               2582 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp;
mp               2584 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp = container_of(ugly, struct mv643xx_eth_private, tx_timeout_task);
mp               2585 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (netif_running(mp->dev)) {
mp               2586 drivers/net/ethernet/marvell/mv643xx_eth.c 		netif_tx_stop_all_queues(mp->dev);
mp               2587 drivers/net/ethernet/marvell/mv643xx_eth.c 		port_reset(mp);
mp               2588 drivers/net/ethernet/marvell/mv643xx_eth.c 		port_start(mp);
mp               2589 drivers/net/ethernet/marvell/mv643xx_eth.c 		netif_tx_wake_all_queues(mp->dev);
mp               2595 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               2599 drivers/net/ethernet/marvell/mv643xx_eth.c 	schedule_work(&mp->tx_timeout_task);
mp               2605 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = netdev_priv(dev);
mp               2607 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK, 0x00000000);
mp               2608 drivers/net/ethernet/marvell/mv643xx_eth.c 	rdlp(mp, INT_MASK);
mp               2612 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK, mp->int_mask);
mp               2904 drivers/net/ethernet/marvell/mv643xx_eth.c static void phy_addr_set(struct mv643xx_eth_private *mp, int phy_addr)
mp               2906 drivers/net/ethernet/marvell/mv643xx_eth.c 	int addr_shift = 5 * mp->port_num;
mp               2909 drivers/net/ethernet/marvell/mv643xx_eth.c 	data = rdl(mp, PHY_ADDR);
mp               2912 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrl(mp, PHY_ADDR, data);
mp               2915 drivers/net/ethernet/marvell/mv643xx_eth.c static int phy_addr_get(struct mv643xx_eth_private *mp)
mp               2919 drivers/net/ethernet/marvell/mv643xx_eth.c 	data = rdl(mp, PHY_ADDR);
mp               2921 drivers/net/ethernet/marvell/mv643xx_eth.c 	return (data >> (5 * mp->port_num)) & 0x1f;
mp               2924 drivers/net/ethernet/marvell/mv643xx_eth.c static void set_params(struct mv643xx_eth_private *mp,
mp               2927 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               2933 drivers/net/ethernet/marvell/mv643xx_eth.c 		uc_addr_get(mp, dev->dev_addr);
mp               2935 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->rx_ring_size = DEFAULT_RX_QUEUE_SIZE;
mp               2937 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->rx_ring_size = pd->rx_queue_size;
mp               2938 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->rx_desc_sram_addr = pd->rx_sram_addr;
mp               2939 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->rx_desc_sram_size = pd->rx_sram_size;
mp               2941 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->rxq_count = pd->rx_queue_count ? : 1;
mp               2947 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->tx_ring_size = clamp_t(unsigned int, tx_ring_size,
mp               2949 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->tx_ring_size != tx_ring_size)
mp               2951 drivers/net/ethernet/marvell/mv643xx_eth.c 			    mp->tx_ring_size, tx_ring_size);
mp               2953 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->tx_desc_sram_addr = pd->tx_sram_addr;
mp               2954 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->tx_desc_sram_size = pd->tx_sram_size;
mp               2956 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->txq_count = pd->tx_queue_count ? : 1;
mp               2959 drivers/net/ethernet/marvell/mv643xx_eth.c static int get_phy_mode(struct mv643xx_eth_private *mp)
mp               2961 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct device *dev = mp->dev->dev.parent;
mp               2975 drivers/net/ethernet/marvell/mv643xx_eth.c static struct phy_device *phy_scan(struct mv643xx_eth_private *mp,
mp               2985 drivers/net/ethernet/marvell/mv643xx_eth.c 		start = phy_addr_get(mp) & 0x1f;
mp               3000 drivers/net/ethernet/marvell/mv643xx_eth.c 		phydev = phy_connect(mp->dev, phy_id, mv643xx_eth_adjust_link,
mp               3001 drivers/net/ethernet/marvell/mv643xx_eth.c 				     get_phy_mode(mp));
mp               3003 drivers/net/ethernet/marvell/mv643xx_eth.c 			phy_addr_set(mp, addr);
mp               3011 drivers/net/ethernet/marvell/mv643xx_eth.c static void phy_init(struct mv643xx_eth_private *mp, int speed, int duplex)
mp               3013 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               3032 drivers/net/ethernet/marvell/mv643xx_eth.c static void init_pscr(struct mv643xx_eth_private *mp, int speed, int duplex)
mp               3034 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               3037 drivers/net/ethernet/marvell/mv643xx_eth.c 	pscr = rdlp(mp, PORT_SERIAL_CONTROL);
mp               3040 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, PORT_SERIAL_CONTROL, pscr);
mp               3058 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, PORT_SERIAL_CONTROL, pscr);
mp               3081 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp;
mp               3103 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp = netdev_priv(dev);
mp               3104 drivers/net/ethernet/marvell/mv643xx_eth.c 	platform_set_drvdata(pdev, mp);
mp               3106 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->shared = platform_get_drvdata(pd->shared);
mp               3107 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->base = mp->shared->base + 0x0400 + (pd->port_number << 10);
mp               3108 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->port_num = pd->port_number;
mp               3110 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->dev = dev;
mp               3118 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrlp(mp, PORT_SERIAL_CONTROL1,
mp               3119 drivers/net/ethernet/marvell/mv643xx_eth.c 		     rdlp(mp, PORT_SERIAL_CONTROL1) & ~CLK125_BYPASS_EN);
mp               3125 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->t_clk = 133000000;
mp               3126 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->clk = devm_clk_get(&pdev->dev, NULL);
mp               3127 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (!IS_ERR(mp->clk)) {
mp               3128 drivers/net/ethernet/marvell/mv643xx_eth.c 		clk_prepare_enable(mp->clk);
mp               3129 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->t_clk = clk_get_rate(mp->clk);
mp               3130 drivers/net/ethernet/marvell/mv643xx_eth.c 	} else if (!IS_ERR(mp->shared->clk)) {
mp               3131 drivers/net/ethernet/marvell/mv643xx_eth.c 		mp->t_clk = clk_get_rate(mp->shared->clk);
mp               3134 drivers/net/ethernet/marvell/mv643xx_eth.c 	set_params(mp, pd);
mp               3135 drivers/net/ethernet/marvell/mv643xx_eth.c 	netif_set_real_num_tx_queues(dev, mp->txq_count);
mp               3136 drivers/net/ethernet/marvell/mv643xx_eth.c 	netif_set_real_num_rx_queues(dev, mp->rxq_count);
mp               3140 drivers/net/ethernet/marvell/mv643xx_eth.c 		phydev = of_phy_connect(mp->dev, pd->phy_node,
mp               3142 drivers/net/ethernet/marvell/mv643xx_eth.c 					get_phy_mode(mp));
mp               3146 drivers/net/ethernet/marvell/mv643xx_eth.c 			phy_addr_set(mp, phydev->mdio.addr);
mp               3148 drivers/net/ethernet/marvell/mv643xx_eth.c 		phydev = phy_scan(mp, pd->phy_addr);
mp               3153 drivers/net/ethernet/marvell/mv643xx_eth.c 			phy_init(mp, pd->speed, pd->duplex);
mp               3164 drivers/net/ethernet/marvell/mv643xx_eth.c 	init_pscr(mp, pd->speed, pd->duplex);
mp               3167 drivers/net/ethernet/marvell/mv643xx_eth.c 	mib_counters_clear(mp);
mp               3169 drivers/net/ethernet/marvell/mv643xx_eth.c 	timer_setup(&mp->mib_counters_timer, mib_counters_timer_wrapper, 0);
mp               3170 drivers/net/ethernet/marvell/mv643xx_eth.c 	mp->mib_counters_timer.expires = jiffies + 30 * HZ;
mp               3172 drivers/net/ethernet/marvell/mv643xx_eth.c 	spin_lock_init(&mp->mib_counters_lock);
mp               3174 drivers/net/ethernet/marvell/mv643xx_eth.c 	INIT_WORK(&mp->tx_timeout_task, tx_timeout_task);
mp               3176 drivers/net/ethernet/marvell/mv643xx_eth.c 	netif_napi_add(dev, &mp->napi, mv643xx_eth_poll, NAPI_POLL_WEIGHT);
mp               3178 drivers/net/ethernet/marvell/mv643xx_eth.c 	timer_setup(&mp->rx_oom, oom_timer_wrapper, 0);
mp               3203 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->shared->win_protect)
mp               3204 drivers/net/ethernet/marvell/mv643xx_eth.c 		wrl(mp, WINDOW_PROTECT(mp->port_num), mp->shared->win_protect);
mp               3208 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, SDMA_CONFIG, PORT_SDMA_CONFIG_DEFAULT_VALUE);
mp               3210 drivers/net/ethernet/marvell/mv643xx_eth.c 	set_rx_coal(mp, 250);
mp               3211 drivers/net/ethernet/marvell/mv643xx_eth.c 	set_tx_coal(mp, 0);
mp               3218 drivers/net/ethernet/marvell/mv643xx_eth.c 		      mp->port_num, dev->dev_addr);
mp               3220 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (mp->tx_desc_sram_size > 0)
mp               3226 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (!IS_ERR(mp->clk))
mp               3227 drivers/net/ethernet/marvell/mv643xx_eth.c 		clk_disable_unprepare(mp->clk);
mp               3235 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = platform_get_drvdata(pdev);
mp               3236 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct net_device *dev = mp->dev;
mp               3238 drivers/net/ethernet/marvell/mv643xx_eth.c 	unregister_netdev(mp->dev);
mp               3241 drivers/net/ethernet/marvell/mv643xx_eth.c 	cancel_work_sync(&mp->tx_timeout_task);
mp               3243 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (!IS_ERR(mp->clk))
mp               3244 drivers/net/ethernet/marvell/mv643xx_eth.c 		clk_disable_unprepare(mp->clk);
mp               3246 drivers/net/ethernet/marvell/mv643xx_eth.c 	free_netdev(mp->dev);
mp               3253 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_private *mp = platform_get_drvdata(pdev);
mp               3256 drivers/net/ethernet/marvell/mv643xx_eth.c 	wrlp(mp, INT_MASK, 0);
mp               3257 drivers/net/ethernet/marvell/mv643xx_eth.c 	rdlp(mp, INT_MASK);
mp               3259 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (netif_running(mp->dev))
mp               3260 drivers/net/ethernet/marvell/mv643xx_eth.c 		port_reset(mp);
mp                 93 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct lag_mp *mp = container_of(nb, struct lag_mp, fib_nb);
mp                 94 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct mlx5_lag *ldev = container_of(mp, struct mlx5_lag, lag_mp);
mp                113 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct lag_mp *mp = &ldev->lag_mp;
mp                120 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 		if (mp->mfi == fi)
mp                121 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 			mp->mfi = NULL;
mp                153 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	if (!mp->mfi && !__mlx5_lag_is_active(ldev)) {
mp                161 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	mp->mfi = fi;
mp                169 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct lag_mp *mp = &ldev->lag_mp;
mp                172 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	if (!mp->mfi || mp->mfi != fi)
mp                242 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct lag_mp *mp = container_of(nb, struct lag_mp, fib_nb);
mp                243 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct mlx5_lag *ldev = container_of(mp, struct mlx5_lag, lag_mp);
mp                307 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct lag_mp *mp = &ldev->lag_mp;
mp                310 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	if (mp->fib_nb.notifier_call)
mp                313 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	mp->fib_nb.notifier_call = mlx5_lag_fib_event;
mp                314 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	err = register_fib_notifier(&mp->fib_nb,
mp                317 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 		mp->fib_nb.notifier_call = NULL;
mp                324 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	struct lag_mp *mp = &ldev->lag_mp;
mp                326 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	if (!mp->fib_nb.notifier_call)
mp                329 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	unregister_fib_notifier(&mp->fib_nb);
mp                330 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c 	mp->fib_nb.notifier_call = NULL;
mp                293 drivers/net/ethernet/sun/ldmvsw.c 	rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len);
mp                301 drivers/net/ethernet/sun/ldmvsw.c 	port_id = mdesc_get_property(hp, vdev->mp, id_prop, NULL);
mp                310 drivers/net/ethernet/sun/ldmvsw.c 	vp = vsw_get_vnet(hp, vdev->mp, &handle);
mp               3902 drivers/net/ethernet/sun/niu.c 	struct niu_xmac_stats *mp = &np->mac_stats.xmac;
mp               3907 drivers/net/ethernet/sun/niu.c 		mp->tx_frames += TXMAC_FRM_CNT_COUNT;
mp               3909 drivers/net/ethernet/sun/niu.c 		mp->tx_bytes += TXMAC_BYTE_CNT_COUNT;
mp               3911 drivers/net/ethernet/sun/niu.c 		mp->tx_fifo_errors++;
mp               3913 drivers/net/ethernet/sun/niu.c 		mp->tx_overflow_errors++;
mp               3915 drivers/net/ethernet/sun/niu.c 		mp->tx_max_pkt_size_errors++;
mp               3917 drivers/net/ethernet/sun/niu.c 		mp->tx_underflow_errors++;
mp               3921 drivers/net/ethernet/sun/niu.c 		mp->rx_local_faults++;
mp               3923 drivers/net/ethernet/sun/niu.c 		mp->rx_remote_faults++;
mp               3925 drivers/net/ethernet/sun/niu.c 		mp->rx_link_faults += LINK_FAULT_CNT_COUNT;
mp               3927 drivers/net/ethernet/sun/niu.c 		mp->rx_align_errors += RXMAC_ALIGN_ERR_CNT_COUNT;
mp               3929 drivers/net/ethernet/sun/niu.c 		mp->rx_frags += RXMAC_FRAG_CNT_COUNT;
mp               3931 drivers/net/ethernet/sun/niu.c 		mp->rx_mcasts += RXMAC_MC_FRM_CNT_COUNT;
mp               3933 drivers/net/ethernet/sun/niu.c 		mp->rx_bcasts += RXMAC_BC_FRM_CNT_COUNT;
mp               3935 drivers/net/ethernet/sun/niu.c 		mp->rx_bcasts += RXMAC_BC_FRM_CNT_COUNT;
mp               3937 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt1 += RXMAC_HIST_CNT1_COUNT;
mp               3939 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt2 += RXMAC_HIST_CNT2_COUNT;
mp               3941 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt3 += RXMAC_HIST_CNT3_COUNT;
mp               3943 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt4 += RXMAC_HIST_CNT4_COUNT;
mp               3945 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt5 += RXMAC_HIST_CNT5_COUNT;
mp               3947 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt6 += RXMAC_HIST_CNT6_COUNT;
mp               3949 drivers/net/ethernet/sun/niu.c 		mp->rx_hist_cnt7 += RXMAC_HIST_CNT7_COUNT;
mp               3951 drivers/net/ethernet/sun/niu.c 		mp->rx_octets += RXMAC_BT_CNT_COUNT;
mp               3953 drivers/net/ethernet/sun/niu.c 		mp->rx_code_violations += RXMAC_CD_VIO_CNT_COUNT;
mp               3955 drivers/net/ethernet/sun/niu.c 		mp->rx_len_errors += RXMAC_MPSZER_CNT_COUNT;
mp               3957 drivers/net/ethernet/sun/niu.c 		mp->rx_crc_errors += RXMAC_CRC_ER_CNT_COUNT;
mp               3959 drivers/net/ethernet/sun/niu.c 		mp->rx_underflows++;
mp               3961 drivers/net/ethernet/sun/niu.c 		mp->rx_overflows++;
mp               3965 drivers/net/ethernet/sun/niu.c 		mp->pause_off_state++;
mp               3967 drivers/net/ethernet/sun/niu.c 		mp->pause_on_state++;
mp               3969 drivers/net/ethernet/sun/niu.c 		mp->pause_received++;
mp               3974 drivers/net/ethernet/sun/niu.c 	struct niu_bmac_stats *mp = &np->mac_stats.bmac;
mp               3979 drivers/net/ethernet/sun/niu.c 		mp->tx_underflow_errors++;
mp               3981 drivers/net/ethernet/sun/niu.c 		mp->tx_max_pkt_size_errors++;
mp               3983 drivers/net/ethernet/sun/niu.c 		mp->tx_bytes += BTXMAC_BYTE_CNT_COUNT;
mp               3985 drivers/net/ethernet/sun/niu.c 		mp->tx_frames += BTXMAC_FRM_CNT_COUNT;
mp               3989 drivers/net/ethernet/sun/niu.c 		mp->rx_overflows++;
mp               3991 drivers/net/ethernet/sun/niu.c 		mp->rx_frames += BRXMAC_FRAME_CNT_COUNT;
mp               3993 drivers/net/ethernet/sun/niu.c 		mp->rx_align_errors += BRXMAC_ALIGN_ERR_CNT_COUNT;
mp               3995 drivers/net/ethernet/sun/niu.c 		mp->rx_crc_errors += BRXMAC_ALIGN_ERR_CNT_COUNT;
mp               3997 drivers/net/ethernet/sun/niu.c 		mp->rx_len_errors += BRXMAC_CODE_VIOL_ERR_CNT_COUNT;
mp               4001 drivers/net/ethernet/sun/niu.c 		mp->pause_off_state++;
mp               4003 drivers/net/ethernet/sun/niu.c 		mp->pause_on_state++;
mp               4005 drivers/net/ethernet/sun/niu.c 		mp->pause_received++;
mp               6175 drivers/net/ethernet/sun/niu.c 	struct niu_xmac_stats *mp = &np->mac_stats.xmac;
mp               6177 drivers/net/ethernet/sun/niu.c 	mp->tx_frames += nr64_mac(TXMAC_FRM_CNT);
mp               6178 drivers/net/ethernet/sun/niu.c 	mp->tx_bytes += nr64_mac(TXMAC_BYTE_CNT);
mp               6180 drivers/net/ethernet/sun/niu.c 	mp->rx_link_faults += nr64_mac(LINK_FAULT_CNT);
mp               6181 drivers/net/ethernet/sun/niu.c 	mp->rx_align_errors += nr64_mac(RXMAC_ALIGN_ERR_CNT);
mp               6182 drivers/net/ethernet/sun/niu.c 	mp->rx_frags += nr64_mac(RXMAC_FRAG_CNT);
mp               6183 drivers/net/ethernet/sun/niu.c 	mp->rx_mcasts += nr64_mac(RXMAC_MC_FRM_CNT);
mp               6184 drivers/net/ethernet/sun/niu.c 	mp->rx_bcasts += nr64_mac(RXMAC_BC_FRM_CNT);
mp               6185 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt1 += nr64_mac(RXMAC_HIST_CNT1);
mp               6186 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt2 += nr64_mac(RXMAC_HIST_CNT2);
mp               6187 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt3 += nr64_mac(RXMAC_HIST_CNT3);
mp               6188 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt4 += nr64_mac(RXMAC_HIST_CNT4);
mp               6189 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt5 += nr64_mac(RXMAC_HIST_CNT5);
mp               6190 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt6 += nr64_mac(RXMAC_HIST_CNT6);
mp               6191 drivers/net/ethernet/sun/niu.c 	mp->rx_hist_cnt7 += nr64_mac(RXMAC_HIST_CNT7);
mp               6192 drivers/net/ethernet/sun/niu.c 	mp->rx_octets += nr64_mac(RXMAC_BT_CNT);
mp               6193 drivers/net/ethernet/sun/niu.c 	mp->rx_code_violations += nr64_mac(RXMAC_CD_VIO_CNT);
mp               6194 drivers/net/ethernet/sun/niu.c 	mp->rx_len_errors += nr64_mac(RXMAC_MPSZER_CNT);
mp               6195 drivers/net/ethernet/sun/niu.c 	mp->rx_crc_errors += nr64_mac(RXMAC_CRC_ER_CNT);
mp               6200 drivers/net/ethernet/sun/niu.c 	struct niu_bmac_stats *mp = &np->mac_stats.bmac;
mp               6202 drivers/net/ethernet/sun/niu.c 	mp->tx_bytes += nr64_mac(BTXMAC_BYTE_CNT);
mp               6203 drivers/net/ethernet/sun/niu.c 	mp->tx_frames += nr64_mac(BTXMAC_FRM_CNT);
mp               6205 drivers/net/ethernet/sun/niu.c 	mp->rx_frames += nr64_mac(BRXMAC_FRAME_CNT);
mp               6206 drivers/net/ethernet/sun/niu.c 	mp->rx_align_errors += nr64_mac(BRXMAC_ALIGN_ERR_CNT);
mp               6207 drivers/net/ethernet/sun/niu.c 	mp->rx_crc_errors += nr64_mac(BRXMAC_ALIGN_ERR_CNT);
mp               6208 drivers/net/ethernet/sun/niu.c 	mp->rx_len_errors += nr64_mac(BRXMAC_CODE_VIOL_ERR_CNT);
mp                434 drivers/net/ethernet/sun/sunvnet.c 	vp = vnet_find_parent(hp, vdev->mp, vdev);
mp                441 drivers/net/ethernet/sun/sunvnet.c 	rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len);
mp                475 drivers/net/ethernet/sun/sunvnet.c 	if (mdesc_get_property(hp, vdev->mp, "switch-port", NULL))
mp               1042 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.iobase = dev->base_addr;
mp               1043 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.irq = dev->irq;
mp               1044 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.dma = dev->dma;
mp               1045 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.dma2 = 0;
mp               1046 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.seriobase = 0;
mp               1047 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.pariobase = 0;
mp               1048 drivers/net/hamradio/baycom_epp.c 		hi.data.mp.midiiobase = 0;
mp               1054 drivers/net/hamradio/baycom_epp.c 		dev->base_addr = hi.data.mp.iobase;
mp                525 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.iobase = dev->base_addr;
mp                526 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.irq = dev->irq;
mp                527 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.dma = dev->dma;
mp                528 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.dma2 = s->ptt_out.dma2;
mp                529 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.seriobase = s->ptt_out.seriobase;
mp                530 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.pariobase = s->ptt_out.pariobase;
mp                531 drivers/net/hamradio/hdlcdrv.c 		bi.data.mp.midiiobase = s->ptt_out.midiiobase;
mp                537 drivers/net/hamradio/hdlcdrv.c 		dev->base_addr = bi.data.mp.iobase;
mp                538 drivers/net/hamradio/hdlcdrv.c 		dev->irq = bi.data.mp.irq;
mp                539 drivers/net/hamradio/hdlcdrv.c 		dev->dma = bi.data.mp.dma;
mp                540 drivers/net/hamradio/hdlcdrv.c 		s->ptt_out.dma2 = bi.data.mp.dma2;
mp                541 drivers/net/hamradio/hdlcdrv.c 		s->ptt_out.seriobase = bi.data.mp.seriobase;
mp                542 drivers/net/hamradio/hdlcdrv.c 		s->ptt_out.pariobase = bi.data.mp.pariobase;
mp                543 drivers/net/hamradio/hdlcdrv.c 		s->ptt_out.midiiobase = bi.data.mp.midiiobase;
mp                107 drivers/pci/controller/dwc/pci-meson.c static struct reset_control *meson_pcie_get_reset(struct meson_pcie *mp,
mp                111 drivers/pci/controller/dwc/pci-meson.c 	struct device *dev = mp->pci.dev;
mp                122 drivers/pci/controller/dwc/pci-meson.c static int meson_pcie_get_resets(struct meson_pcie *mp)
mp                124 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie_rc_reset *mrst = &mp->mrst;
mp                126 drivers/pci/controller/dwc/pci-meson.c 	mrst->phy = meson_pcie_get_reset(mp, "phy", PCIE_SHARED_RESET);
mp                131 drivers/pci/controller/dwc/pci-meson.c 	mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET);
mp                136 drivers/pci/controller/dwc/pci-meson.c 	mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET);
mp                145 drivers/pci/controller/dwc/pci-meson.c 					struct meson_pcie *mp,
mp                148 drivers/pci/controller/dwc/pci-meson.c 	struct device *dev = mp->pci.dev;
mp                157 drivers/pci/controller/dwc/pci-meson.c 					       struct meson_pcie *mp,
mp                160 drivers/pci/controller/dwc/pci-meson.c 	struct device *dev = mp->pci.dev;
mp                173 drivers/pci/controller/dwc/pci-meson.c 			       struct meson_pcie *mp)
mp                175 drivers/pci/controller/dwc/pci-meson.c 	mp->mem_res.elbi_base = meson_pcie_get_mem(pdev, mp, "elbi");
mp                176 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(mp->mem_res.elbi_base))
mp                177 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(mp->mem_res.elbi_base);
mp                179 drivers/pci/controller/dwc/pci-meson.c 	mp->mem_res.cfg_base = meson_pcie_get_mem(pdev, mp, "cfg");
mp                180 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(mp->mem_res.cfg_base))
mp                181 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(mp->mem_res.cfg_base);
mp                184 drivers/pci/controller/dwc/pci-meson.c 	mp->mem_res.phy_base = meson_pcie_get_mem_shared(pdev, mp, "phy");
mp                185 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(mp->mem_res.phy_base))
mp                186 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(mp->mem_res.phy_base);
mp                191 drivers/pci/controller/dwc/pci-meson.c static void meson_pcie_power_on(struct meson_pcie *mp)
mp                193 drivers/pci/controller/dwc/pci-meson.c 	writel(MESON_PCIE_PHY_POWERUP, mp->mem_res.phy_base);
mp                196 drivers/pci/controller/dwc/pci-meson.c static void meson_pcie_reset(struct meson_pcie *mp)
mp                198 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie_rc_reset *mrst = &mp->mrst;
mp                244 drivers/pci/controller/dwc/pci-meson.c static int meson_pcie_probe_clocks(struct meson_pcie *mp)
mp                246 drivers/pci/controller/dwc/pci-meson.c 	struct device *dev = mp->pci.dev;
mp                247 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie_clk_res *res = &mp->clk_res;
mp                268 drivers/pci/controller/dwc/pci-meson.c static inline void meson_elb_writel(struct meson_pcie *mp, u32 val, u32 reg)
mp                270 drivers/pci/controller/dwc/pci-meson.c 	writel(val, mp->mem_res.elbi_base + reg);
mp                273 drivers/pci/controller/dwc/pci-meson.c static inline u32 meson_elb_readl(struct meson_pcie *mp, u32 reg)
mp                275 drivers/pci/controller/dwc/pci-meson.c 	return readl(mp->mem_res.elbi_base + reg);
mp                278 drivers/pci/controller/dwc/pci-meson.c static inline u32 meson_cfg_readl(struct meson_pcie *mp, u32 reg)
mp                280 drivers/pci/controller/dwc/pci-meson.c 	return readl(mp->mem_res.cfg_base + reg);
mp                283 drivers/pci/controller/dwc/pci-meson.c static inline void meson_cfg_writel(struct meson_pcie *mp, u32 val, u32 reg)
mp                285 drivers/pci/controller/dwc/pci-meson.c 	writel(val, mp->mem_res.cfg_base + reg);
mp                288 drivers/pci/controller/dwc/pci-meson.c static void meson_pcie_assert_reset(struct meson_pcie *mp)
mp                290 drivers/pci/controller/dwc/pci-meson.c 	gpiod_set_value_cansleep(mp->reset_gpio, 0);
mp                292 drivers/pci/controller/dwc/pci-meson.c 	gpiod_set_value_cansleep(mp->reset_gpio, 1);
mp                295 drivers/pci/controller/dwc/pci-meson.c static void meson_pcie_init_dw(struct meson_pcie *mp)
mp                299 drivers/pci/controller/dwc/pci-meson.c 	val = meson_cfg_readl(mp, PCIE_CFG0);
mp                301 drivers/pci/controller/dwc/pci-meson.c 	meson_cfg_writel(mp, val, PCIE_CFG0);
mp                303 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_PORT_LINK_CTRL_OFF);
mp                305 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_PORT_LINK_CTRL_OFF);
mp                307 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_PORT_LINK_CTRL_OFF);
mp                309 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_PORT_LINK_CTRL_OFF);
mp                311 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_GEN2_CTRL_OFF);
mp                313 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_GEN2_CTRL_OFF);
mp                315 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_GEN2_CTRL_OFF);
mp                317 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_GEN2_CTRL_OFF);
mp                319 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, 0x0, PCIE_BASE_ADDR0);
mp                320 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, 0x0, PCIE_BASE_ADDR1);
mp                323 drivers/pci/controller/dwc/pci-meson.c static int meson_size_to_payload(struct meson_pcie *mp, int size)
mp                325 drivers/pci/controller/dwc/pci-meson.c 	struct device *dev = mp->pci.dev;
mp                340 drivers/pci/controller/dwc/pci-meson.c static void meson_set_max_payload(struct meson_pcie *mp, int size)
mp                343 drivers/pci/controller/dwc/pci-meson.c 	int max_payload_size = meson_size_to_payload(mp, size);
mp                345 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_DEV_CTRL_DEV_STUS);
mp                347 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_DEV_CTRL_DEV_STUS);
mp                349 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_DEV_CTRL_DEV_STUS);
mp                351 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_DEV_CTRL_DEV_STUS);
mp                354 drivers/pci/controller/dwc/pci-meson.c static void meson_set_max_rd_req_size(struct meson_pcie *mp, int size)
mp                357 drivers/pci/controller/dwc/pci-meson.c 	int max_rd_req_size = meson_size_to_payload(mp, size);
mp                359 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_DEV_CTRL_DEV_STUS);
mp                361 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_DEV_CTRL_DEV_STUS);
mp                363 drivers/pci/controller/dwc/pci-meson.c 	val = meson_elb_readl(mp, PCIE_DEV_CTRL_DEV_STUS);
mp                365 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, val, PCIE_DEV_CTRL_DEV_STUS);
mp                368 drivers/pci/controller/dwc/pci-meson.c static inline void meson_enable_memory_space(struct meson_pcie *mp)
mp                371 drivers/pci/controller/dwc/pci-meson.c 	meson_elb_writel(mp, PCI_IO_EN | PCI_MEM_SPACE_EN | PCI_BUS_MASTER_EN,
mp                375 drivers/pci/controller/dwc/pci-meson.c static int meson_pcie_establish_link(struct meson_pcie *mp)
mp                377 drivers/pci/controller/dwc/pci-meson.c 	struct dw_pcie *pci = &mp->pci;
mp                380 drivers/pci/controller/dwc/pci-meson.c 	meson_pcie_init_dw(mp);
mp                381 drivers/pci/controller/dwc/pci-meson.c 	meson_set_max_payload(mp, MAX_PAYLOAD_SIZE);
mp                382 drivers/pci/controller/dwc/pci-meson.c 	meson_set_max_rd_req_size(mp, MAX_READ_REQ_SIZE);
mp                385 drivers/pci/controller/dwc/pci-meson.c 	meson_enable_memory_space(mp);
mp                387 drivers/pci/controller/dwc/pci-meson.c 	meson_pcie_assert_reset(mp);
mp                392 drivers/pci/controller/dwc/pci-meson.c static void meson_pcie_enable_interrupts(struct meson_pcie *mp)
mp                395 drivers/pci/controller/dwc/pci-meson.c 		dw_pcie_msi_init(&mp->pci.pp);
mp                435 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie *mp = to_meson_pcie(pci);
mp                442 drivers/pci/controller/dwc/pci-meson.c 		state12 = meson_cfg_readl(mp, PCIE_CFG_STATUS12);
mp                443 drivers/pci/controller/dwc/pci-meson.c 		state17 = meson_cfg_readl(mp, PCIE_CFG_STATUS17);
mp                475 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie *mp = to_meson_pcie(pci);
mp                478 drivers/pci/controller/dwc/pci-meson.c 	ret = meson_pcie_establish_link(mp);
mp                482 drivers/pci/controller/dwc/pci-meson.c 	meson_pcie_enable_interrupts(mp);
mp                493 drivers/pci/controller/dwc/pci-meson.c static int meson_add_pcie_port(struct meson_pcie *mp,
mp                496 drivers/pci/controller/dwc/pci-meson.c 	struct dw_pcie *pci = &mp->pci;
mp                510 drivers/pci/controller/dwc/pci-meson.c 	pci->dbi_base = mp->mem_res.elbi_base;
mp                529 drivers/pci/controller/dwc/pci-meson.c 	struct meson_pcie *mp;
mp                532 drivers/pci/controller/dwc/pci-meson.c 	mp = devm_kzalloc(dev, sizeof(*mp), GFP_KERNEL);
mp                533 drivers/pci/controller/dwc/pci-meson.c 	if (!mp)
mp                536 drivers/pci/controller/dwc/pci-meson.c 	pci = &mp->pci;
mp                540 drivers/pci/controller/dwc/pci-meson.c 	mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
mp                541 drivers/pci/controller/dwc/pci-meson.c 	if (IS_ERR(mp->reset_gpio)) {
mp                543 drivers/pci/controller/dwc/pci-meson.c 		return PTR_ERR(mp->reset_gpio);
mp                546 drivers/pci/controller/dwc/pci-meson.c 	ret = meson_pcie_get_resets(mp);
mp                552 drivers/pci/controller/dwc/pci-meson.c 	ret = meson_pcie_get_mems(pdev, mp);
mp                558 drivers/pci/controller/dwc/pci-meson.c 	meson_pcie_power_on(mp);
mp                559 drivers/pci/controller/dwc/pci-meson.c 	meson_pcie_reset(mp);
mp                561 drivers/pci/controller/dwc/pci-meson.c 	ret = meson_pcie_probe_clocks(mp);
mp                567 drivers/pci/controller/dwc/pci-meson.c 	platform_set_drvdata(pdev, mp);
mp                569 drivers/pci/controller/dwc/pci-meson.c 	ret = meson_add_pcie_port(mp, pdev);
mp                438 drivers/pinctrl/intel/pinctrl-merrifield.c static const struct mrfld_family *mrfld_get_family(struct mrfld_pinctrl *mp,
mp                444 drivers/pinctrl/intel/pinctrl-merrifield.c 	for (i = 0; i < mp->nfamilies; i++) {
mp                445 drivers/pinctrl/intel/pinctrl-merrifield.c 		family = &mp->families[i];
mp                451 drivers/pinctrl/intel/pinctrl-merrifield.c 	dev_warn(mp->dev, "failed to find family for pin %u\n", pin);
mp                455 drivers/pinctrl/intel/pinctrl-merrifield.c static bool mrfld_buf_available(struct mrfld_pinctrl *mp, unsigned int pin)
mp                459 drivers/pinctrl/intel/pinctrl-merrifield.c 	family = mrfld_get_family(mp, pin);
mp                466 drivers/pinctrl/intel/pinctrl-merrifield.c static void __iomem *mrfld_get_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin)
mp                471 drivers/pinctrl/intel/pinctrl-merrifield.c 	family = mrfld_get_family(mp, pin);
mp                479 drivers/pinctrl/intel/pinctrl-merrifield.c static int mrfld_read_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin, u32 *value)
mp                483 drivers/pinctrl/intel/pinctrl-merrifield.c 	if (!mrfld_buf_available(mp, pin))
mp                486 drivers/pinctrl/intel/pinctrl-merrifield.c 	bufcfg = mrfld_get_bufcfg(mp, pin);
mp                492 drivers/pinctrl/intel/pinctrl-merrifield.c static void mrfld_update_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin,
mp                498 drivers/pinctrl/intel/pinctrl-merrifield.c 	bufcfg = mrfld_get_bufcfg(mp, pin);
mp                509 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                511 drivers/pinctrl/intel/pinctrl-merrifield.c 	return mp->ngroups;
mp                517 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                519 drivers/pinctrl/intel/pinctrl-merrifield.c 	return mp->groups[group].name;
mp                525 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                527 drivers/pinctrl/intel/pinctrl-merrifield.c 	*pins = mp->groups[group].pins;
mp                528 drivers/pinctrl/intel/pinctrl-merrifield.c 	*npins = mp->groups[group].npins;
mp                535 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                539 drivers/pinctrl/intel/pinctrl-merrifield.c 	ret = mrfld_read_bufcfg(mp, pin, &value);
mp                563 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                565 drivers/pinctrl/intel/pinctrl-merrifield.c 	return mp->nfunctions;
mp                571 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                573 drivers/pinctrl/intel/pinctrl-merrifield.c 	return mp->functions[function].name;
mp                581 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                583 drivers/pinctrl/intel/pinctrl-merrifield.c 	*groups = mp->functions[function].groups;
mp                584 drivers/pinctrl/intel/pinctrl-merrifield.c 	*ngroups = mp->functions[function].ngroups;
mp                592 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                593 drivers/pinctrl/intel/pinctrl-merrifield.c 	const struct intel_pingroup *grp = &mp->groups[group];
mp                604 drivers/pinctrl/intel/pinctrl-merrifield.c 		if (!mrfld_buf_available(mp, grp->pins[i]))
mp                609 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_lock_irqsave(&mp->lock, flags);
mp                611 drivers/pinctrl/intel/pinctrl-merrifield.c 		mrfld_update_bufcfg(mp, grp->pins[i], bits, mask);
mp                612 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_unlock_irqrestore(&mp->lock, flags);
mp                621 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                626 drivers/pinctrl/intel/pinctrl-merrifield.c 	if (!mrfld_buf_available(mp, pin))
mp                629 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_lock_irqsave(&mp->lock, flags);
mp                630 drivers/pinctrl/intel/pinctrl-merrifield.c 	mrfld_update_bufcfg(mp, pin, bits, mask);
mp                631 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_unlock_irqrestore(&mp->lock, flags);
mp                647 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                653 drivers/pinctrl/intel/pinctrl-merrifield.c 	ret = mrfld_read_bufcfg(mp, pin, &value);
mp                727 drivers/pinctrl/intel/pinctrl-merrifield.c static int mrfld_config_set_pin(struct mrfld_pinctrl *mp, unsigned int pin,
mp                793 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_lock_irqsave(&mp->lock, flags);
mp                794 drivers/pinctrl/intel/pinctrl-merrifield.c 	mrfld_update_bufcfg(mp, pin, bits, mask);
mp                795 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_unlock_irqrestore(&mp->lock, flags);
mp                803 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
mp                807 drivers/pinctrl/intel/pinctrl-merrifield.c 	if (!mrfld_buf_available(mp, pin))
mp                817 drivers/pinctrl/intel/pinctrl-merrifield.c 			ret = mrfld_config_set_pin(mp, pin, configs[i]);
mp                887 drivers/pinctrl/intel/pinctrl-merrifield.c 	struct mrfld_pinctrl *mp;
mp                892 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp = devm_kzalloc(&pdev->dev, sizeof(*mp), GFP_KERNEL);
mp                893 drivers/pinctrl/intel/pinctrl-merrifield.c 	if (!mp)
mp                896 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->dev = &pdev->dev;
mp                897 drivers/pinctrl/intel/pinctrl-merrifield.c 	raw_spin_lock_init(&mp->lock);
mp                921 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->families = families;
mp                922 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->nfamilies = nfamilies;
mp                923 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->functions = mrfld_functions;
mp                924 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->nfunctions = ARRAY_SIZE(mrfld_functions);
mp                925 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->groups = mrfld_groups;
mp                926 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->ngroups = ARRAY_SIZE(mrfld_groups);
mp                927 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->pctldesc = mrfld_pinctrl_desc;
mp                928 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->pctldesc.name = dev_name(&pdev->dev);
mp                929 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->pctldesc.pins = mrfld_pins;
mp                930 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->pctldesc.npins = ARRAY_SIZE(mrfld_pins);
mp                932 drivers/pinctrl/intel/pinctrl-merrifield.c 	mp->pctldev = devm_pinctrl_register(&pdev->dev, &mp->pctldesc, mp);
mp                933 drivers/pinctrl/intel/pinctrl-merrifield.c 	if (IS_ERR(mp->pctldev)) {
mp                935 drivers/pinctrl/intel/pinctrl-merrifield.c 		return PTR_ERR(mp->pctldev);
mp                938 drivers/pinctrl/intel/pinctrl-merrifield.c 	platform_set_drvdata(pdev, mp);
mp                975 drivers/s390/char/tape_3590.c 			sense->fmt.f70.mp);
mp                982 drivers/s390/char/tape_3590.c 			sense->fmt.f70.mp);
mp                100 drivers/s390/char/tape_3590.h 			unsigned int mp:16;
mp                386 drivers/s390/cio/cio.c 	schib->pmcw.mp = sch->config.mp;
mp                400 drivers/s390/cio/cio.c 		(schib->pmcw.mp == sch->config.mp) &&
mp                 26 drivers/s390/cio/cio.h 	u32 mp	 : 1;		/* multipath mode */
mp                 69 drivers/s390/cio/cio.h 	u32 mp:1;
mp                 43 drivers/s390/cio/device_pgid.c 	if (sch->config.mp != mpath) {
mp                 44 drivers/s390/cio/device_pgid.c 		sch->config.mp = mpath;
mp                583 drivers/s390/cio/device_pgid.c 	if (sch->config.mp) {
mp                584 drivers/s390/cio/device_pgid.c 		sch->config.mp = 0;
mp                933 drivers/scsi/aacraid/aachba.c 		struct aac_driver_ident *mp = aac_get_driver_ident(dev->cardtype);
mp                935 drivers/scsi/aacraid/aachba.c 		inqstrcpy (mp->vname, str->vid);
mp                937 drivers/scsi/aacraid/aachba.c 		inqstrcpy (mp->model, str->pid);
mp               1314 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fip_mac_desc *mp;
mp               1404 drivers/scsi/fcoe/fcoe_ctlr.c 			mp = (struct fip_mac_desc *)desc;
mp               1405 drivers/scsi/fcoe/fcoe_ctlr.c 			if (dlen < sizeof(*mp))
mp               1407 drivers/scsi/fcoe/fcoe_ctlr.c 			if (!ether_addr_equal(mp->fd_mac, fcf->fcf_mac))
mp                116 drivers/scsi/libfc/fc_exch.c 	struct fc_exch_mgr *mp;
mp                312 drivers/scsi/libfc/fc_exch.c 	struct fc_exch_mgr *mp;
mp                315 drivers/scsi/libfc/fc_exch.c 		mp = ep->em;
mp                319 drivers/scsi/libfc/fc_exch.c 		mempool_free(ep, mp->ep_pool);
mp                809 drivers/scsi/libfc/fc_exch.c 					struct fc_exch_mgr *mp)
mp                817 drivers/scsi/libfc/fc_exch.c 	ep = mempool_alloc(mp->ep_pool, GFP_ATOMIC);
mp                819 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.no_free_exch);
mp                825 drivers/scsi/libfc/fc_exch.c 	pool = per_cpu_ptr(mp->pool, cpu);
mp                848 drivers/scsi/libfc/fc_exch.c 		index = index == mp->pool_max_index ? 0 : index + 1;
mp                852 drivers/scsi/libfc/fc_exch.c 	pool->next_index = index == mp->pool_max_index ? 0 : index + 1;
mp                872 drivers/scsi/libfc/fc_exch.c 	ep->oxid = ep->xid = (index << fc_cpu_order | cpu) + mp->min_xid;
mp                873 drivers/scsi/libfc/fc_exch.c 	ep->em = mp;
mp                878 drivers/scsi/libfc/fc_exch.c 	ep->class = mp->class;
mp                886 drivers/scsi/libfc/fc_exch.c 	atomic_inc(&mp->stats.no_free_exch_xid);
mp                887 drivers/scsi/libfc/fc_exch.c 	mempool_free(ep, mp->ep_pool);
mp                910 drivers/scsi/libfc/fc_exch.c 			ep = fc_exch_em_alloc(lport, ema->mp);
mp                923 drivers/scsi/libfc/fc_exch.c static struct fc_exch *fc_exch_find(struct fc_exch_mgr *mp, u16 xid)
mp                925 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport = mp->lport;
mp                939 drivers/scsi/libfc/fc_exch.c 	if ((xid >= mp->min_xid) && (xid <= mp->max_xid)) {
mp                940 drivers/scsi/libfc/fc_exch.c 		pool = per_cpu_ptr(mp->pool, cpu);
mp                942 drivers/scsi/libfc/fc_exch.c 		ep = fc_exch_ptr_get(pool, (xid - mp->min_xid) >> fc_cpu_order);
mp                988 drivers/scsi/libfc/fc_exch.c 				    struct fc_exch_mgr *mp,
mp               1036 drivers/scsi/libfc/fc_exch.c 						 struct fc_exch_mgr *mp,
mp               1054 drivers/scsi/libfc/fc_exch.c 		ep = fc_exch_find(mp, xid);
mp               1056 drivers/scsi/libfc/fc_exch.c 			atomic_inc(&mp->stats.xid_not_found);
mp               1083 drivers/scsi/libfc/fc_exch.c 		ep = fc_exch_find(mp, xid);
mp               1086 drivers/scsi/libfc/fc_exch.c 				atomic_inc(&mp->stats.xid_busy);
mp               1090 drivers/scsi/libfc/fc_exch.c 			ep = fc_exch_resp(lport, mp, fp);
mp               1097 drivers/scsi/libfc/fc_exch.c 			atomic_inc(&mp->stats.xid_not_found);
mp               1115 drivers/scsi/libfc/fc_exch.c 			atomic_inc(&mp->stats.seq_not_found);
mp               1165 drivers/scsi/libfc/fc_exch.c static struct fc_seq *fc_seq_lookup_orig(struct fc_exch_mgr *mp,
mp               1177 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_find(mp, xid);
mp               1481 drivers/scsi/libfc/fc_exch.c 		    fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE)
mp               1506 drivers/scsi/libfc/fc_exch.c static void fc_exch_recv_req(struct fc_lport *lport, struct fc_exch_mgr *mp,
mp               1533 drivers/scsi/libfc/fc_exch.c 	reject = fc_seq_lookup_recip(lport, mp, fp);
mp               1568 drivers/scsi/libfc/fc_exch.c static void fc_exch_recv_seq_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
mp               1577 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_find(mp, ntohs(fh->fh_ox_id));
mp               1579 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.xid_not_found);
mp               1583 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.xid_not_found);
mp               1589 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.xid_not_found);
mp               1594 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.xid_not_found);
mp               1656 drivers/scsi/libfc/fc_exch.c static void fc_exch_recv_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
mp               1660 drivers/scsi/libfc/fc_exch.c 	sp = fc_seq_lookup_orig(mp, fp);	/* doesn't hold sequence */
mp               1663 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.xid_not_found);
mp               1665 drivers/scsi/libfc/fc_exch.c 		atomic_inc(&mp->stats.non_bls_resp);
mp               1754 drivers/scsi/libfc/fc_exch.c static void fc_exch_recv_bls(struct fc_exch_mgr *mp, struct fc_frame *fp)
mp               1764 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ?
mp               1971 drivers/scsi/libfc/fc_exch.c 					   per_cpu_ptr(ema->mp->pool, cpu),
mp               1989 drivers/scsi/libfc/fc_exch.c 		if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid)
mp               1990 drivers/scsi/libfc/fc_exch.c 			return fc_exch_find(ema->mp, xid);
mp               2349 drivers/scsi/libfc/fc_exch.c 	struct fc_exch_mgr *mp;
mp               2354 drivers/scsi/libfc/fc_exch.c 		mp = ema->mp;
mp               2355 drivers/scsi/libfc/fc_exch.c 		st->fc_no_free_exch += atomic_read(&mp->stats.no_free_exch);
mp               2357 drivers/scsi/libfc/fc_exch.c 				atomic_read(&mp->stats.no_free_exch_xid);
mp               2358 drivers/scsi/libfc/fc_exch.c 		st->fc_xid_not_found += atomic_read(&mp->stats.xid_not_found);
mp               2359 drivers/scsi/libfc/fc_exch.c 		st->fc_xid_busy += atomic_read(&mp->stats.xid_busy);
mp               2360 drivers/scsi/libfc/fc_exch.c 		st->fc_seq_not_found += atomic_read(&mp->stats.seq_not_found);
mp               2361 drivers/scsi/libfc/fc_exch.c 		st->fc_non_bls_resp += atomic_read(&mp->stats.non_bls_resp);
mp               2373 drivers/scsi/libfc/fc_exch.c 					   struct fc_exch_mgr *mp,
mp               2382 drivers/scsi/libfc/fc_exch.c 	ema->mp = mp;
mp               2386 drivers/scsi/libfc/fc_exch.c 	kref_get(&mp->kref);
mp               2397 drivers/scsi/libfc/fc_exch.c 	struct fc_exch_mgr *mp = container_of(kref, struct fc_exch_mgr, kref);
mp               2399 drivers/scsi/libfc/fc_exch.c 	mempool_destroy(mp->ep_pool);
mp               2400 drivers/scsi/libfc/fc_exch.c 	free_percpu(mp->pool);
mp               2401 drivers/scsi/libfc/fc_exch.c 	kfree(mp);
mp               2412 drivers/scsi/libfc/fc_exch.c 	kref_put(&ema->mp->kref, fc_exch_mgr_destroy);
mp               2427 drivers/scsi/libfc/fc_exch.c 		if (!fc_exch_mgr_add(dst, ema->mp, ema->match))
mp               2451 drivers/scsi/libfc/fc_exch.c 	struct fc_exch_mgr *mp;
mp               2467 drivers/scsi/libfc/fc_exch.c 	mp = kzalloc(sizeof(struct fc_exch_mgr), GFP_ATOMIC);
mp               2468 drivers/scsi/libfc/fc_exch.c 	if (!mp)
mp               2471 drivers/scsi/libfc/fc_exch.c 	mp->class = class;
mp               2472 drivers/scsi/libfc/fc_exch.c 	mp->lport = lport;
mp               2474 drivers/scsi/libfc/fc_exch.c 	mp->min_xid = min_xid;
mp               2480 drivers/scsi/libfc/fc_exch.c 		mp->max_xid = pool_exch_range * (fc_cpu_mask + 1) +
mp               2483 drivers/scsi/libfc/fc_exch.c 		mp->max_xid = max_xid;
mp               2484 drivers/scsi/libfc/fc_exch.c 		pool_exch_range = (mp->max_xid - mp->min_xid + 1) /
mp               2488 drivers/scsi/libfc/fc_exch.c 	mp->ep_pool = mempool_create_slab_pool(2, fc_em_cachep);
mp               2489 drivers/scsi/libfc/fc_exch.c 	if (!mp->ep_pool)
mp               2497 drivers/scsi/libfc/fc_exch.c 	mp->pool_max_index = pool_exch_range - 1;
mp               2503 drivers/scsi/libfc/fc_exch.c 	mp->pool = __alloc_percpu(pool_size, __alignof__(struct fc_exch_pool));
mp               2504 drivers/scsi/libfc/fc_exch.c 	if (!mp->pool)
mp               2507 drivers/scsi/libfc/fc_exch.c 		pool = per_cpu_ptr(mp->pool, cpu);
mp               2515 drivers/scsi/libfc/fc_exch.c 	kref_init(&mp->kref);
mp               2516 drivers/scsi/libfc/fc_exch.c 	if (!fc_exch_mgr_add(lport, mp, match)) {
mp               2517 drivers/scsi/libfc/fc_exch.c 		free_percpu(mp->pool);
mp               2526 drivers/scsi/libfc/fc_exch.c 	kref_put(&mp->kref, fc_exch_mgr_destroy);
mp               2527 drivers/scsi/libfc/fc_exch.c 	return mp;
mp               2530 drivers/scsi/libfc/fc_exch.c 	mempool_destroy(mp->ep_pool);
mp               2532 drivers/scsi/libfc/fc_exch.c 	kfree(mp);
mp               2575 drivers/scsi/libfc/fc_exch.c 		if ((xid >= ema->mp->min_xid) &&
mp               2576 drivers/scsi/libfc/fc_exch.c 		    (xid <= ema->mp->max_xid))
mp               2623 drivers/scsi/libfc/fc_exch.c 			fc_exch_recv_bls(ema->mp, fp);
mp               2626 drivers/scsi/libfc/fc_exch.c 			fc_exch_recv_seq_resp(ema->mp, fp);
mp               2628 drivers/scsi/libfc/fc_exch.c 			fc_exch_recv_resp(ema->mp, fp);
mp               2630 drivers/scsi/libfc/fc_exch.c 			fc_exch_recv_req(lport, ema->mp, fp);
mp                383 drivers/scsi/libfc/fc_lport.c 	__be32 *mp;
mp                385 drivers/scsi/libfc/fc_lport.c 	mp = &lport->fcts.ff_type_map[type / FC_NS_BPW];
mp                386 drivers/scsi/libfc/fc_lport.c 	*mp = htonl(ntohl(*mp) | 1UL << (type % FC_NS_BPW));
mp                162 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *mp;
mp                176 drivers/scsi/lpfc/lpfc_bsg.c 		mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp                177 drivers/scsi/lpfc/lpfc_bsg.c 		if (!mp) {
mp                183 drivers/scsi/lpfc/lpfc_bsg.c 		INIT_LIST_HEAD(&mp->list);
mp                184 drivers/scsi/lpfc/lpfc_bsg.c 		mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys));
mp                186 drivers/scsi/lpfc/lpfc_bsg.c 		if (!mp->virt) {
mp                187 drivers/scsi/lpfc/lpfc_bsg.c 			kfree(mp);
mp                195 drivers/scsi/lpfc/lpfc_bsg.c 			mlist = mp;
mp                197 drivers/scsi/lpfc/lpfc_bsg.c 			list_add_tail(&mp->list, &mlist->list);
mp                204 drivers/scsi/lpfc/lpfc_bsg.c 		bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys));
mp                205 drivers/scsi/lpfc/lpfc_bsg.c 		bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys));
mp                222 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *mp;
mp                243 drivers/scsi/lpfc/lpfc_bsg.c 	list_for_each_entry(mp, &temp_list, list) {
mp                247 drivers/scsi/lpfc/lpfc_bsg.c 			dma_address = mp->virt + dma_offset;
mp               2963 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *mp[2] = {NULL, NULL};
mp               2999 drivers/scsi/lpfc/lpfc_bsg.c 		mp[i] = list_entry(curr, struct lpfc_dmabuf, list);
mp               3003 drivers/scsi/lpfc/lpfc_bsg.c 			mp[i]->buffer_tag = lpfc_sli_get_buffer_tag(phba);
mp               3005 drivers/scsi/lpfc/lpfc_bsg.c 				putPaddrHigh(mp[i]->phys);
mp               3007 drivers/scsi/lpfc/lpfc_bsg.c 				putPaddrLow(mp[i]->phys);
mp               3009 drivers/scsi/lpfc/lpfc_bsg.c 				((struct lpfc_dmabufext *)mp[i])->size;
mp               3010 drivers/scsi/lpfc/lpfc_bsg.c 			cmd->un.quexri64cx.buff.buffer_tag = mp[i]->buffer_tag;
mp               3018 drivers/scsi/lpfc/lpfc_bsg.c 			cmd->un.cont64[i].addrHigh = putPaddrHigh(mp[i]->phys);
mp               3019 drivers/scsi/lpfc/lpfc_bsg.c 			cmd->un.cont64[i].addrLow = putPaddrLow(mp[i]->phys);
mp               3021 drivers/scsi/lpfc/lpfc_bsg.c 				((struct lpfc_dmabufext *)mp[i])->size;
mp               3038 drivers/scsi/lpfc/lpfc_bsg.c 				(struct lpfc_dmabufext *)mp[0]);
mp               3039 drivers/scsi/lpfc/lpfc_bsg.c 			if (mp[1])
mp               3041 drivers/scsi/lpfc/lpfc_bsg.c 					  (struct lpfc_dmabufext *)mp[1]);
mp               3047 drivers/scsi/lpfc/lpfc_bsg.c 		lpfc_sli_ringpostbuf_put(phba, pring, mp[0]);
mp               3048 drivers/scsi/lpfc/lpfc_bsg.c 		if (mp[1]) {
mp               3049 drivers/scsi/lpfc/lpfc_bsg.c 			lpfc_sli_ringpostbuf_put(phba, pring, mp[1]);
mp               3050 drivers/scsi/lpfc/lpfc_bsg.c 			mp[1] = NULL;
mp                385 drivers/scsi/lpfc/lpfc_crtn.h void lpfc_rq_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp);
mp                 82 drivers/scsi/lpfc/lpfc_ct.c 			  struct lpfc_dmabuf *mp, uint32_t size)
mp                 84 drivers/scsi/lpfc/lpfc_ct.c 	if (!mp) {
mp                 98 drivers/scsi/lpfc/lpfc_ct.c 		     struct lpfc_dmabuf *mp, uint32_t size)
mp                100 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_ct_ignore_hbq_buffer(phba, piocbq, mp, size);
mp                107 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp = NULL;
mp                169 drivers/scsi/lpfc/lpfc_ct.c 				mp = lpfc_sli_ringpostbuf_get(phba, pring,
mp                172 drivers/scsi/lpfc/lpfc_ct.c 				lpfc_ct_unsol_buffer(phba, iocbq, mp, size);
mp                173 drivers/scsi/lpfc/lpfc_ct.c 				lpfc_in_buf_free(phba, mp);
mp                222 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp;
mp                230 drivers/scsi/lpfc/lpfc_ct.c 		mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp                231 drivers/scsi/lpfc/lpfc_ct.c 		if (!mp) {
mp                237 drivers/scsi/lpfc/lpfc_ct.c 		INIT_LIST_HEAD(&mp->list);
mp                241 drivers/scsi/lpfc/lpfc_ct.c 			mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys));
mp                243 drivers/scsi/lpfc/lpfc_ct.c 			mp->virt = lpfc_mbuf_alloc(phba, 0, &(mp->phys));
mp                245 drivers/scsi/lpfc/lpfc_ct.c 		if (!mp->virt) {
mp                246 drivers/scsi/lpfc/lpfc_ct.c 			kfree(mp);
mp                254 drivers/scsi/lpfc/lpfc_ct.c 			mlist = mp;
mp                256 drivers/scsi/lpfc/lpfc_ct.c 			list_add_tail(&mp->list, &mlist->list);
mp                260 drivers/scsi/lpfc/lpfc_ct.c 		bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys) );
mp                261 drivers/scsi/lpfc/lpfc_ct.c 		bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys) );
mp                592 drivers/scsi/lpfc/lpfc_ct.c lpfc_ns_rsp(struct lpfc_vport *vport, struct lpfc_dmabuf *mp, uint8_t fc4_type,
mp                596 drivers/scsi/lpfc/lpfc_ct.c 		(struct lpfc_sli_ct_request *) mp->virt;
mp                610 drivers/scsi/lpfc/lpfc_ct.c 	list_add_tail(&head, &mp->list);
mp                611 drivers/scsi/lpfc/lpfc_ct.c 	list_for_each_entry_safe(mp, next_mp, &head, list) {
mp                612 drivers/scsi/lpfc/lpfc_ct.c 		mlast = mp;
mp               1538 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp;
mp               1541 drivers/scsi/lpfc/lpfc_ct.c 	mp = cmdiocb->context1;
mp               1542 drivers/scsi/lpfc/lpfc_ct.c 	if (mp == NULL)
mp               1544 drivers/scsi/lpfc/lpfc_ct.c 	CtReq = (struct lpfc_sli_ct_request *)mp->virt;
mp               1564 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp, *bmp;
mp               1583 drivers/scsi/lpfc/lpfc_ct.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               1584 drivers/scsi/lpfc/lpfc_ct.c 	if (!mp) {
mp               1589 drivers/scsi/lpfc/lpfc_ct.c 	INIT_LIST_HEAD(&mp->list);
mp               1590 drivers/scsi/lpfc/lpfc_ct.c 	mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys));
mp               1591 drivers/scsi/lpfc/lpfc_ct.c 	if (!mp->virt) {
mp               1618 drivers/scsi/lpfc/lpfc_ct.c 	bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys) );
mp               1619 drivers/scsi/lpfc/lpfc_ct.c 	bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys) );
mp               1645 drivers/scsi/lpfc/lpfc_ct.c 	CtReq = (struct lpfc_sli_ct_request *) mp->virt;
mp               1808 drivers/scsi/lpfc/lpfc_ct.c 	if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry)) {
mp               1827 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               1829 drivers/scsi/lpfc/lpfc_ct.c 	kfree(mp);
mp               3019 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp, *bmp;
mp               3041 drivers/scsi/lpfc/lpfc_ct.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               3042 drivers/scsi/lpfc/lpfc_ct.c 	if (!mp)
mp               3045 drivers/scsi/lpfc/lpfc_ct.c 	mp->virt = lpfc_mbuf_alloc(phba, 0, &(mp->phys));
mp               3046 drivers/scsi/lpfc/lpfc_ct.c 	if (!mp->virt)
mp               3058 drivers/scsi/lpfc/lpfc_ct.c 	INIT_LIST_HEAD(&mp->list);
mp               3065 drivers/scsi/lpfc/lpfc_ct.c 	CtReq = (struct lpfc_sli_ct_request *)mp->virt;
mp               3215 drivers/scsi/lpfc/lpfc_ct.c 	bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys));
mp               3216 drivers/scsi/lpfc/lpfc_ct.c 	bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys));
mp               3224 drivers/scsi/lpfc/lpfc_ct.c 	if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, 0))
mp               3238 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3240 drivers/scsi/lpfc/lpfc_ct.c 	kfree(mp);
mp                373 drivers/scsi/lpfc/lpfc_els.c 	struct lpfc_dmabuf *mp;
mp                435 drivers/scsi/lpfc/lpfc_els.c 	mp = (struct lpfc_dmabuf *)mbox->ctx_buf;
mp                436 drivers/scsi/lpfc/lpfc_els.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                437 drivers/scsi/lpfc/lpfc_els.c 	kfree(mp);
mp               4243 drivers/scsi/lpfc/lpfc_els.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               4249 drivers/scsi/lpfc/lpfc_els.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               4250 drivers/scsi/lpfc/lpfc_els.c 	kfree(mp);
mp               4299 drivers/scsi/lpfc/lpfc_els.c 	struct lpfc_dmabuf *mp = NULL;
mp               4323 drivers/scsi/lpfc/lpfc_els.c 			mp = (struct lpfc_dmabuf *)mbox->ctx_buf;
mp               4324 drivers/scsi/lpfc/lpfc_els.c 			if (mp) {
mp               4325 drivers/scsi/lpfc/lpfc_els.c 				lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               4326 drivers/scsi/lpfc/lpfc_els.c 				kfree(mp);
mp               4368 drivers/scsi/lpfc/lpfc_els.c 				mp = mbox->ctx_buf;
mp               4369 drivers/scsi/lpfc/lpfc_els.c 				if (mp) {
mp               4370 drivers/scsi/lpfc/lpfc_els.c 					lpfc_mbuf_free(phba, mp->virt,
mp               4371 drivers/scsi/lpfc/lpfc_els.c 						       mp->phys);
mp               4372 drivers/scsi/lpfc/lpfc_els.c 					kfree(mp);
mp               4435 drivers/scsi/lpfc/lpfc_els.c 		mp = (struct lpfc_dmabuf *)mbox->ctx_buf;
mp               4436 drivers/scsi/lpfc/lpfc_els.c 		if (mp) {
mp               4437 drivers/scsi/lpfc/lpfc_els.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               4438 drivers/scsi/lpfc/lpfc_els.c 			kfree(mp);
mp               3059 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp               3076 drivers/scsi/lpfc/lpfc_hbadisc.c 	memcpy((uint8_t *) &vport->fc_sparam, (uint8_t *) mp->virt,
mp               3097 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3098 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp               3112 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3113 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp               3126 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp;
mp               3268 drivers/scsi/lpfc/lpfc_hbadisc.c 		mp = (struct lpfc_dmabuf *)sparam_mbox->ctx_buf;
mp               3269 drivers/scsi/lpfc/lpfc_hbadisc.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3270 drivers/scsi/lpfc/lpfc_hbadisc.c 		kfree(mp);
mp               3392 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               3414 drivers/scsi/lpfc/lpfc_hbadisc.c 	memcpy(&phba->alpa_map[0], mp->virt, 128);
mp               3534 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3535 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp               3550 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               3591 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3592 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp               3738 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp;
mp               3764 drivers/scsi/lpfc/lpfc_hbadisc.c 			mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp               3765 drivers/scsi/lpfc/lpfc_hbadisc.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3766 drivers/scsi/lpfc/lpfc_hbadisc.c 			kfree(mp);
mp               3786 drivers/scsi/lpfc/lpfc_hbadisc.c 			mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp               3791 drivers/scsi/lpfc/lpfc_hbadisc.c 			memcpy(vport_buff + offset, mp->virt, byte_count);
mp               3852 drivers/scsi/lpfc/lpfc_hbadisc.c 			mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp               3853 drivers/scsi/lpfc/lpfc_hbadisc.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3854 drivers/scsi/lpfc/lpfc_hbadisc.c 			kfree(mp);
mp               3873 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               3885 drivers/scsi/lpfc/lpfc_hbadisc.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3886 drivers/scsi/lpfc/lpfc_hbadisc.c 		kfree(mp);
mp               3930 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               3931 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp               4024 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               4042 drivers/scsi/lpfc/lpfc_hbadisc.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               4043 drivers/scsi/lpfc/lpfc_hbadisc.c 		kfree(mp);
mp               4107 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               4108 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp               5096 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf *mp;
mp               5150 drivers/scsi/lpfc/lpfc_hbadisc.c 			mp = (struct lpfc_dmabuf *)(mb->ctx_buf);
mp               5151 drivers/scsi/lpfc/lpfc_hbadisc.c 			if (mp) {
mp               5152 drivers/scsi/lpfc/lpfc_hbadisc.c 				__lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               5153 drivers/scsi/lpfc/lpfc_hbadisc.c 				kfree(mp);
mp               6042 drivers/scsi/lpfc/lpfc_hbadisc.c 	struct lpfc_dmabuf   *mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               6075 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               6076 drivers/scsi/lpfc/lpfc_hbadisc.c 	kfree(mp);
mp                416 drivers/scsi/lpfc/lpfc_init.c 	struct lpfc_dmabuf *mp;
mp                452 drivers/scsi/lpfc/lpfc_init.c 		mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp                454 drivers/scsi/lpfc/lpfc_init.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                455 drivers/scsi/lpfc/lpfc_init.c 		kfree(mp);
mp                459 drivers/scsi/lpfc/lpfc_init.c 	mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp                461 drivers/scsi/lpfc/lpfc_init.c 	memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm));
mp                462 drivers/scsi/lpfc/lpfc_init.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                463 drivers/scsi/lpfc/lpfc_init.c 	kfree(mp);
mp                924 drivers/scsi/lpfc/lpfc_init.c 	struct lpfc_dmabuf *mp, *next_mp;
mp                938 drivers/scsi/lpfc/lpfc_init.c 		list_for_each_entry_safe(mp, next_mp, &buflist, list) {
mp                939 drivers/scsi/lpfc/lpfc_init.c 			list_del(&mp->list);
mp                941 drivers/scsi/lpfc/lpfc_init.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                942 drivers/scsi/lpfc/lpfc_init.c 			kfree(mp);
mp               2036 drivers/scsi/lpfc/lpfc_init.c 	struct lpfc_dmabuf *mp;
mp               2045 drivers/scsi/lpfc/lpfc_init.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               2046 drivers/scsi/lpfc/lpfc_init.c 	if (!mp) {
mp               2051 drivers/scsi/lpfc/lpfc_init.c 	mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp               2052 drivers/scsi/lpfc/lpfc_init.c 	if (!mp->virt) {
mp               2061 drivers/scsi/lpfc/lpfc_init.c 	lpfc_read_topology(phba, pmb, mp);
mp               2082 drivers/scsi/lpfc/lpfc_init.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               2084 drivers/scsi/lpfc/lpfc_init.c 	kfree(mp);
mp               4871 drivers/scsi/lpfc/lpfc_init.c 	struct lpfc_dmabuf *mp;
mp               4888 drivers/scsi/lpfc/lpfc_init.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               4889 drivers/scsi/lpfc/lpfc_init.c 	if (!mp) {
mp               4894 drivers/scsi/lpfc/lpfc_init.c 	mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp               4895 drivers/scsi/lpfc/lpfc_init.c 	if (!mp->virt) {
mp               4911 drivers/scsi/lpfc/lpfc_init.c 	lpfc_read_topology(phba, pmb, mp);
mp               4986 drivers/scsi/lpfc/lpfc_init.c 	kfree(mp);
mp               5133 drivers/scsi/lpfc/lpfc_init.c 	struct lpfc_dmabuf *mp;
mp               5193 drivers/scsi/lpfc/lpfc_init.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               5194 drivers/scsi/lpfc/lpfc_init.c 	if (!mp) {
mp               5199 drivers/scsi/lpfc/lpfc_init.c 	mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp               5200 drivers/scsi/lpfc/lpfc_init.c 	if (!mp->virt) {
mp               5216 drivers/scsi/lpfc/lpfc_init.c 	lpfc_read_topology(phba, pmb, mp);
mp               5265 drivers/scsi/lpfc/lpfc_init.c 	kfree(mp);
mp                 63 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp;
mp                 83 drivers/scsi/lpfc/lpfc_mbox.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp                 84 drivers/scsi/lpfc/lpfc_mbox.c 	if (mp)
mp                 85 drivers/scsi/lpfc/lpfc_mbox.c 		mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp                 87 drivers/scsi/lpfc/lpfc_mbox.c 	if (!mp || !mp->virt) {
mp                 88 drivers/scsi/lpfc/lpfc_mbox.c 		kfree(mp);
mp                 94 drivers/scsi/lpfc/lpfc_mbox.c 	memset(mp->virt, 0, LPFC_BPL_SIZE);
mp                 95 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp                 97 drivers/scsi/lpfc/lpfc_mbox.c 	pmb->ctx_buf = (uint8_t *)mp;
mp                 98 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varWords[3] = putPaddrLow(mp->phys);
mp                 99 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varWords[4] = putPaddrHigh(mp->phys);
mp                291 drivers/scsi/lpfc/lpfc_mbox.c 		   struct lpfc_dmabuf *mp)
mp                298 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp                301 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varReadTop.lilpBde64.addrHigh = putPaddrHigh(mp->phys);
mp                302 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varReadTop.lilpBde64.addrLow = putPaddrLow(mp->phys);
mp                307 drivers/scsi/lpfc/lpfc_mbox.c 	pmb->ctx_buf = (uint8_t *)mp;
mp                604 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp;
mp                614 drivers/scsi/lpfc/lpfc_mbox.c 	mp = kmalloc(sizeof (struct lpfc_dmabuf), GFP_KERNEL);
mp                615 drivers/scsi/lpfc/lpfc_mbox.c 	if (mp)
mp                616 drivers/scsi/lpfc/lpfc_mbox.c 		mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp                617 drivers/scsi/lpfc/lpfc_mbox.c 	if (!mp || !mp->virt) {
mp                618 drivers/scsi/lpfc/lpfc_mbox.c 		kfree(mp);
mp                625 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp                628 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varRdSparm.un.sp64.addrHigh = putPaddrHigh(mp->phys);
mp                629 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varRdSparm.un.sp64.addrLow = putPaddrLow(mp->phys);
mp                634 drivers/scsi/lpfc/lpfc_mbox.c 	pmb->ctx_buf = mp;
mp                755 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp;
mp                767 drivers/scsi/lpfc/lpfc_mbox.c 	mp = kmalloc(sizeof (struct lpfc_dmabuf), GFP_KERNEL);
mp                768 drivers/scsi/lpfc/lpfc_mbox.c 	if (mp)
mp                769 drivers/scsi/lpfc/lpfc_mbox.c 		mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp                770 drivers/scsi/lpfc/lpfc_mbox.c 	if (!mp || !mp->virt) {
mp                771 drivers/scsi/lpfc/lpfc_mbox.c 		kfree(mp);
mp                779 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp                780 drivers/scsi/lpfc/lpfc_mbox.c 	sparam = mp->virt;
mp                786 drivers/scsi/lpfc/lpfc_mbox.c 	pmb->ctx_buf = (uint8_t *)mp;
mp                790 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varRegLogin.un.sp64.addrHigh = putPaddrHigh(mp->phys);
mp                791 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varRegLogin.un.sp64.addrLow = putPaddrLow(mp->phys);
mp               2268 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp = NULL;
mp               2274 drivers/scsi/lpfc/lpfc_mbox.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               2275 drivers/scsi/lpfc/lpfc_mbox.c 	if (mp)
mp               2276 drivers/scsi/lpfc/lpfc_mbox.c 		mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp               2278 drivers/scsi/lpfc/lpfc_mbox.c 	if (!mp || !mp->virt) {
mp               2279 drivers/scsi/lpfc/lpfc_mbox.c 		kfree(mp);
mp               2287 drivers/scsi/lpfc/lpfc_mbox.c 	memset(mp->virt, 0, LPFC_BPL_SIZE);
mp               2288 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp               2291 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->ctx_buf = (uint8_t *)mp;
mp               2297 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varWords[3] = putPaddrLow(mp->phys);
mp               2298 drivers/scsi/lpfc/lpfc_mbox.c 	mb->un.varWords[4] = putPaddrHigh(mp->phys);
mp               2326 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)mbox->ctx_buf;
mp               2333 drivers/scsi/lpfc/lpfc_mbox.c 	lpfc_sli_bemem_bcopy(mp->virt, &rdp_context->page_a2,
mp               2337 drivers/scsi/lpfc/lpfc_mbox.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               2338 drivers/scsi/lpfc/lpfc_mbox.c 	kfree(mp);
mp               2351 drivers/scsi/lpfc/lpfc_mbox.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               2352 drivers/scsi/lpfc/lpfc_mbox.c 	kfree(mp);
mp               2362 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(mbox->ctx_buf);
mp               2369 drivers/scsi/lpfc/lpfc_mbox.c 	lpfc_sli_bemem_bcopy(mp->virt, &rdp_context->page_a0,
mp               2374 drivers/scsi/lpfc/lpfc_mbox.c 	memset(mp->virt, 0, DMP_SFF_PAGE_A2_SIZE);
mp               2375 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp               2378 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->ctx_buf = mp;
mp               2390 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->u.mqe.un.mem_dump_type3.addr_lo = putPaddrLow(mp->phys);
mp               2391 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->u.mqe.un.mem_dump_type3.addr_hi = putPaddrHigh(mp->phys);
mp               2402 drivers/scsi/lpfc/lpfc_mbox.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               2403 drivers/scsi/lpfc/lpfc_mbox.c 	kfree(mp);
mp               2420 drivers/scsi/lpfc/lpfc_mbox.c 	struct lpfc_dmabuf *mp = NULL;
mp               2424 drivers/scsi/lpfc/lpfc_mbox.c 	mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
mp               2425 drivers/scsi/lpfc/lpfc_mbox.c 	if (mp)
mp               2426 drivers/scsi/lpfc/lpfc_mbox.c 		mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys);
mp               2427 drivers/scsi/lpfc/lpfc_mbox.c 	if (!mp || !mp->virt) {
mp               2428 drivers/scsi/lpfc/lpfc_mbox.c 		kfree(mp);
mp               2434 drivers/scsi/lpfc/lpfc_mbox.c 	memset(mp->virt, 0, LPFC_BPL_SIZE);
mp               2435 drivers/scsi/lpfc/lpfc_mbox.c 	INIT_LIST_HEAD(&mp->list);
mp               2439 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->ctx_buf = mp;
mp               2449 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->u.mqe.un.mem_dump_type3.addr_lo = putPaddrLow(mp->phys);
mp               2450 drivers/scsi/lpfc/lpfc_mbox.c 	mbox->u.mqe.un.mem_dump_type3.addr_hi = putPaddrHigh(mp->phys);
mp                295 drivers/scsi/lpfc/lpfc_mem.c 	struct lpfc_dmabuf   *mp;
mp                299 drivers/scsi/lpfc/lpfc_mem.c 		mp = (struct lpfc_dmabuf *)(mbox->ctx_buf);
mp                300 drivers/scsi/lpfc/lpfc_mem.c 		if (mp) {
mp                301 drivers/scsi/lpfc/lpfc_mem.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                302 drivers/scsi/lpfc/lpfc_mem.c 			kfree(mp);
mp                309 drivers/scsi/lpfc/lpfc_mem.c 		mp = (struct lpfc_dmabuf *)(mbox->ctx_buf);
mp                310 drivers/scsi/lpfc/lpfc_mem.c 		if (mp) {
mp                311 drivers/scsi/lpfc/lpfc_mem.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                312 drivers/scsi/lpfc/lpfc_mem.c 			kfree(mp);
mp                323 drivers/scsi/lpfc/lpfc_mem.c 		mp = (struct lpfc_dmabuf *)(mbox->ctx_buf);
mp                324 drivers/scsi/lpfc/lpfc_mem.c 		if (mp) {
mp                325 drivers/scsi/lpfc/lpfc_mem.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                326 drivers/scsi/lpfc/lpfc_mem.c 			kfree(mp);
mp                663 drivers/scsi/lpfc/lpfc_mem.c lpfc_in_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp)
mp                668 drivers/scsi/lpfc/lpfc_mem.c 	if (!mp)
mp                672 drivers/scsi/lpfc/lpfc_mem.c 		hbq_entry = container_of(mp, struct hbq_dmabuf, dbuf);
mp                688 drivers/scsi/lpfc/lpfc_mem.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                689 drivers/scsi/lpfc/lpfc_mem.c 		kfree(mp);
mp                707 drivers/scsi/lpfc/lpfc_mem.c lpfc_rq_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp)
mp                716 drivers/scsi/lpfc/lpfc_mem.c 	if (!mp)
mp                719 drivers/scsi/lpfc/lpfc_mem.c 	rqb_entry = container_of(mp, struct rqb_dmabuf, hbuf);
mp               1152 drivers/scsi/lpfc/lpfc_nportdisc.c 	struct lpfc_dmabuf *pcmd, *prsp, *mp;
mp               1309 drivers/scsi/lpfc/lpfc_nportdisc.c 		mp = (struct lpfc_dmabuf *)mbox->ctx_buf;
mp               1310 drivers/scsi/lpfc/lpfc_nportdisc.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               1311 drivers/scsi/lpfc/lpfc_nportdisc.c 		kfree(mp);
mp               1671 drivers/scsi/lpfc/lpfc_nportdisc.c 	struct lpfc_dmabuf *mp;
mp               1691 drivers/scsi/lpfc/lpfc_nportdisc.c 			mp = (struct lpfc_dmabuf *)(mb->ctx_buf);
mp               1692 drivers/scsi/lpfc/lpfc_nportdisc.c 			if (mp) {
mp               1693 drivers/scsi/lpfc/lpfc_nportdisc.c 				__lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               1694 drivers/scsi/lpfc/lpfc_nportdisc.c 				kfree(mp);
mp               2462 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp;
mp               2468 drivers/scsi/lpfc/lpfc_sli.c 	mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               2470 drivers/scsi/lpfc/lpfc_sli.c 	if (mp) {
mp               2471 drivers/scsi/lpfc/lpfc_sli.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               2472 drivers/scsi/lpfc/lpfc_sli.c 		kfree(mp);
mp               5204 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp;
mp               5225 drivers/scsi/lpfc/lpfc_sli.c 	mp = (struct lpfc_dmabuf *)mboxq->ctx_buf;
mp               5250 drivers/scsi/lpfc/lpfc_sli.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               5251 drivers/scsi/lpfc/lpfc_sli.c 		kfree(mp);
mp               5257 drivers/scsi/lpfc/lpfc_sli.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               5258 drivers/scsi/lpfc/lpfc_sli.c 		kfree(mp);
mp               5263 drivers/scsi/lpfc/lpfc_sli.c 	lpfc_parse_fcoe_conf(phba, mp->virt, data_length);
mp               5264 drivers/scsi/lpfc/lpfc_sli.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               5265 drivers/scsi/lpfc/lpfc_sli.c 	kfree(mp);
mp               7169 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp;
mp               7443 drivers/scsi/lpfc/lpfc_sli.c 	mp = (struct lpfc_dmabuf *)mboxq->ctx_buf;
mp               7445 drivers/scsi/lpfc/lpfc_sli.c 		memcpy(&vport->fc_sparam, mp->virt, sizeof(struct serv_parm));
mp               7453 drivers/scsi/lpfc/lpfc_sli.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               7454 drivers/scsi/lpfc/lpfc_sli.c 	kfree(mp);
mp               10890 drivers/scsi/lpfc/lpfc_sli.c 			 struct lpfc_dmabuf *mp)
mp               10895 drivers/scsi/lpfc/lpfc_sli.c 	list_add_tail(&mp->list, &pring->postbufq);
mp               10945 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp, *next_mp;
mp               10950 drivers/scsi/lpfc/lpfc_sli.c 	list_for_each_entry_safe(mp, next_mp, &pring->postbufq, list) {
mp               10951 drivers/scsi/lpfc/lpfc_sli.c 		if (mp->buffer_tag == tag) {
mp               10952 drivers/scsi/lpfc/lpfc_sli.c 			list_del_init(&mp->list);
mp               10955 drivers/scsi/lpfc/lpfc_sli.c 			return mp;
mp               10989 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp, *next_mp;
mp               10994 drivers/scsi/lpfc/lpfc_sli.c 	list_for_each_entry_safe(mp, next_mp, &pring->postbufq, list) {
mp               10995 drivers/scsi/lpfc/lpfc_sli.c 		if (mp->phys == phys) {
mp               10996 drivers/scsi/lpfc/lpfc_sli.c 			list_del_init(&mp->list);
mp               10999 drivers/scsi/lpfc/lpfc_sli.c 			return mp;
mp               12349 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp;
mp               12546 drivers/scsi/lpfc/lpfc_sli.c 						mp = (struct lpfc_dmabuf *)
mp               12562 drivers/scsi/lpfc/lpfc_sli.c 						pmb->ctx_buf = mp;
mp               13089 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp;
mp               13139 drivers/scsi/lpfc/lpfc_sli.c 			mp = (struct lpfc_dmabuf *)(pmb->ctx_buf);
mp               13147 drivers/scsi/lpfc/lpfc_sli.c 			pmb->ctx_buf = mp;
mp               19212 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp = NULL;
mp               19230 drivers/scsi/lpfc/lpfc_sli.c 	mp = (struct lpfc_dmabuf *)mboxq->ctx_buf;
mp               19241 drivers/scsi/lpfc/lpfc_sli.c 	lpfc_sli_pcimem_bcopy((char *)mp->virt, rgn23_data, data_length);
mp               19244 drivers/scsi/lpfc/lpfc_sli.c 	if (mp) {
mp               19245 drivers/scsi/lpfc/lpfc_sli.c 		lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               19246 drivers/scsi/lpfc/lpfc_sli.c 		kfree(mp);
mp               19486 drivers/scsi/lpfc/lpfc_sli.c 	struct lpfc_dmabuf *mp;
mp               19558 drivers/scsi/lpfc/lpfc_sli.c 			mp = (struct lpfc_dmabuf *)(mb->ctx_buf);
mp               19559 drivers/scsi/lpfc/lpfc_sli.c 			if (mp) {
mp               19560 drivers/scsi/lpfc/lpfc_sli.c 				__lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp               19561 drivers/scsi/lpfc/lpfc_sli.c 				kfree(mp);
mp                122 drivers/scsi/lpfc/lpfc_vport.c 	struct lpfc_dmabuf *mp;
mp                141 drivers/scsi/lpfc/lpfc_vport.c 	mp = (struct lpfc_dmabuf *)pmb->ctx_buf;
mp                151 drivers/scsi/lpfc/lpfc_vport.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                152 drivers/scsi/lpfc/lpfc_vport.c 			kfree(mp);
mp                161 drivers/scsi/lpfc/lpfc_vport.c 			lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                162 drivers/scsi/lpfc/lpfc_vport.c 			kfree(mp);
mp                169 drivers/scsi/lpfc/lpfc_vport.c 	memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm));
mp                175 drivers/scsi/lpfc/lpfc_vport.c 	lpfc_mbuf_free(phba, mp->virt, mp->phys);
mp                176 drivers/scsi/lpfc/lpfc_vport.c 	kfree(mp);
mp                222 drivers/scsi/ncr53c8xx.c static void *___m_alloc(m_pool_s *mp, int size)
mp                228 drivers/scsi/ncr53c8xx.c 	m_link_s *h = mp->h;
mp                241 drivers/scsi/ncr53c8xx.c 			h[j].next = (m_link_s *)mp->getp(mp);
mp                265 drivers/scsi/ncr53c8xx.c static void ___m_free(m_pool_s *mp, void *ptr, int size)
mp                271 drivers/scsi/ncr53c8xx.c 	m_link_s *h = mp->h;
mp                290 drivers/scsi/ncr53c8xx.c 			mp->freep(mp, a);
mp                313 drivers/scsi/ncr53c8xx.c static void *__m_calloc2(m_pool_s *mp, int size, char *name, int uflags)
mp                317 drivers/scsi/ncr53c8xx.c 	p = ___m_alloc(mp, size);
mp                330 drivers/scsi/ncr53c8xx.c #define __m_calloc(mp, s, n)	__m_calloc2(mp, s, n, MEMO_WARN)
mp                332 drivers/scsi/ncr53c8xx.c static void __m_free(m_pool_s *mp, void *ptr, int size, char *name)
mp                337 drivers/scsi/ncr53c8xx.c 	___m_free(mp, ptr, size);
mp                347 drivers/scsi/ncr53c8xx.c static m_addr_t ___mp0_getp(m_pool_s *mp)
mp                351 drivers/scsi/ncr53c8xx.c 		++mp->nump;
mp                355 drivers/scsi/ncr53c8xx.c static void ___mp0_freep(m_pool_s *mp, m_addr_t m)
mp                358 drivers/scsi/ncr53c8xx.c 	--mp->nump;
mp                371 drivers/scsi/ncr53c8xx.c static m_addr_t ___dma_getp(m_pool_s *mp)
mp                379 drivers/scsi/ncr53c8xx.c 		vp = (m_addr_t) dma_alloc_coherent(mp->bush,
mp                386 drivers/scsi/ncr53c8xx.c 			vbp->next = mp->vtob[hc];
mp                387 drivers/scsi/ncr53c8xx.c 			mp->vtob[hc] = vbp;
mp                388 drivers/scsi/ncr53c8xx.c 			++mp->nump;
mp                397 drivers/scsi/ncr53c8xx.c static void ___dma_freep(m_pool_s *mp, m_addr_t m)
mp                402 drivers/scsi/ncr53c8xx.c 	vbpp = &mp->vtob[hc];
mp                408 drivers/scsi/ncr53c8xx.c 		dma_free_coherent(mp->bush, PAGE_SIZE<<MEMO_PAGE_ORDER,
mp                411 drivers/scsi/ncr53c8xx.c 		--mp->nump;
mp                417 drivers/scsi/ncr53c8xx.c 	m_pool_s *mp;
mp                418 drivers/scsi/ncr53c8xx.c 	for (mp = mp0.next; mp && mp->bush != bush; mp = mp->next);
mp                419 drivers/scsi/ncr53c8xx.c 	return mp;
mp                424 drivers/scsi/ncr53c8xx.c 	m_pool_s *mp;
mp                425 drivers/scsi/ncr53c8xx.c 	mp = __m_calloc(&mp0, sizeof(*mp), "MPOOL");
mp                426 drivers/scsi/ncr53c8xx.c 	if (mp) {
mp                427 drivers/scsi/ncr53c8xx.c 		memset(mp, 0, sizeof(*mp));
mp                428 drivers/scsi/ncr53c8xx.c 		mp->bush = bush;
mp                429 drivers/scsi/ncr53c8xx.c 		mp->getp = ___dma_getp;
mp                430 drivers/scsi/ncr53c8xx.c 		mp->freep = ___dma_freep;
mp                431 drivers/scsi/ncr53c8xx.c 		mp->next = mp0.next;
mp                432 drivers/scsi/ncr53c8xx.c 		mp0.next = mp;
mp                434 drivers/scsi/ncr53c8xx.c 	return mp;
mp                452 drivers/scsi/ncr53c8xx.c 	struct m_pool *mp;
mp                456 drivers/scsi/ncr53c8xx.c 	mp = ___get_dma_pool(bush);
mp                457 drivers/scsi/ncr53c8xx.c 	if (!mp)
mp                458 drivers/scsi/ncr53c8xx.c 		mp = ___cre_dma_pool(bush);
mp                459 drivers/scsi/ncr53c8xx.c 	if (mp)
mp                460 drivers/scsi/ncr53c8xx.c 		m = __m_calloc(mp, size, name);
mp                461 drivers/scsi/ncr53c8xx.c 	if (mp && !mp->nump)
mp                462 drivers/scsi/ncr53c8xx.c 		___del_dma_pool(mp);
mp                471 drivers/scsi/ncr53c8xx.c 	struct m_pool *mp;
mp                474 drivers/scsi/ncr53c8xx.c 	mp = ___get_dma_pool(bush);
mp                475 drivers/scsi/ncr53c8xx.c 	if (mp)
mp                476 drivers/scsi/ncr53c8xx.c 		__m_free(mp, m, size, name);
mp                477 drivers/scsi/ncr53c8xx.c 	if (mp && !mp->nump)
mp                478 drivers/scsi/ncr53c8xx.c 		___del_dma_pool(mp);
mp                485 drivers/scsi/ncr53c8xx.c 	m_pool_s *mp;
mp                491 drivers/scsi/ncr53c8xx.c 	mp = ___get_dma_pool(bush);
mp                492 drivers/scsi/ncr53c8xx.c 	if (mp) {
mp                493 drivers/scsi/ncr53c8xx.c 		vp = mp->vtob[hc];
mp                173 drivers/scsi/qedf/qedf_fip.c 	struct fip_mac_desc *mp;
mp                237 drivers/scsi/qedf/qedf_fip.c 				mp = (struct fip_mac_desc *)desc;
mp                239 drivers/scsi/qedf/qedf_fip.c 					  "Switch fd_mac=%pM.\n", mp->fd_mac);
mp                240 drivers/scsi/qedf/qedf_fip.c 				if (ether_addr_equal(mp->fd_mac,
mp               1156 drivers/scsi/sym53c8xx_2/sym_hipd.h #define M_GET_MEM_CLUSTER()		mp->get_mem_cluster(mp)
mp               1157 drivers/scsi/sym53c8xx_2/sym_hipd.h #define M_FREE_MEM_CLUSTER(p)		mp->free_mem_cluster(mp, p)
mp               1193 drivers/scsi/sym53c8xx_2/sym_hipd.h static inline void *sym_m_get_dma_mem_cluster(m_pool_p mp, m_vtob_p vbp)
mp               1198 drivers/scsi/sym53c8xx_2/sym_hipd.h 	vaddr = dma_alloc_coherent(mp->dev_dmat, SYM_MEM_CLUSTER_SIZE, &baddr,
mp               1207 drivers/scsi/sym53c8xx_2/sym_hipd.h static inline void sym_m_free_dma_mem_cluster(m_pool_p mp, m_vtob_p vbp)
mp               1209 drivers/scsi/sym53c8xx_2/sym_hipd.h 	dma_free_coherent(mp->dev_dmat, SYM_MEM_CLUSTER_SIZE, vbp->vaddr,
mp                 47 drivers/scsi/sym53c8xx_2/sym_malloc.c static void *___sym_malloc(m_pool_p mp, int size)
mp                 53 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_link_p h = mp->h;
mp                 93 drivers/scsi/sym53c8xx_2/sym_malloc.c static void ___sym_mfree(m_pool_p mp, void *ptr, int size)
mp                 99 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_link_p h = mp->h;
mp                145 drivers/scsi/sym53c8xx_2/sym_malloc.c static void *__sym_calloc2(m_pool_p mp, int size, char *name, int uflags)
mp                149 drivers/scsi/sym53c8xx_2/sym_malloc.c 	p = ___sym_malloc(mp, size);
mp                161 drivers/scsi/sym53c8xx_2/sym_malloc.c #define __sym_calloc(mp, s, n)	__sym_calloc2(mp, s, n, SYM_MEM_WARN)
mp                166 drivers/scsi/sym53c8xx_2/sym_malloc.c static void __sym_mfree(m_pool_p mp, void *ptr, int size, char *name)
mp                171 drivers/scsi/sym53c8xx_2/sym_malloc.c 	___sym_mfree(mp, ptr, size);
mp                180 drivers/scsi/sym53c8xx_2/sym_malloc.c static void *___mp0_get_mem_cluster(m_pool_p mp)
mp                184 drivers/scsi/sym53c8xx_2/sym_malloc.c 		++mp->nump;
mp                189 drivers/scsi/sym53c8xx_2/sym_malloc.c static void ___mp0_free_mem_cluster(m_pool_p mp, void *m)
mp                192 drivers/scsi/sym53c8xx_2/sym_malloc.c 	--mp->nump;
mp                210 drivers/scsi/sym53c8xx_2/sym_malloc.c static void * ___get_dma_mem_cluster(m_pool_p mp)
mp                219 drivers/scsi/sym53c8xx_2/sym_malloc.c 	vaddr = sym_m_get_dma_mem_cluster(mp, vbp);
mp                222 drivers/scsi/sym53c8xx_2/sym_malloc.c 		vbp->next = mp->vtob[hc];
mp                223 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp->vtob[hc] = vbp;
mp                224 drivers/scsi/sym53c8xx_2/sym_malloc.c 		++mp->nump;
mp                233 drivers/scsi/sym53c8xx_2/sym_malloc.c static void ___free_dma_mem_cluster(m_pool_p mp, void *m)
mp                238 drivers/scsi/sym53c8xx_2/sym_malloc.c 	vbpp = &mp->vtob[hc];
mp                244 drivers/scsi/sym53c8xx_2/sym_malloc.c 		sym_m_free_dma_mem_cluster(mp, vbp);
mp                246 drivers/scsi/sym53c8xx_2/sym_malloc.c 		--mp->nump;
mp                254 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_pool_p mp;
mp                255 drivers/scsi/sym53c8xx_2/sym_malloc.c 	for (mp = mp0.next;
mp                256 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp && !sym_m_pool_match(mp->dev_dmat, dev_dmat);
mp                257 drivers/scsi/sym53c8xx_2/sym_malloc.c 			mp = mp->next);
mp                258 drivers/scsi/sym53c8xx_2/sym_malloc.c 	return mp;
mp                264 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_pool_p mp = __sym_calloc(&mp0, sizeof(*mp), "MPOOL");
mp                265 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (mp) {
mp                266 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp->dev_dmat = dev_dmat;
mp                267 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp->get_mem_cluster = ___get_dma_mem_cluster;
mp                269 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp->free_mem_cluster = ___free_dma_mem_cluster;
mp                271 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp->next = mp0.next;
mp                272 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp0.next = mp;
mp                273 drivers/scsi/sym53c8xx_2/sym_malloc.c 		return mp;
mp                302 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_pool_p mp;
mp                306 drivers/scsi/sym53c8xx_2/sym_malloc.c 	mp = ___get_dma_pool(dev_dmat);
mp                307 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (!mp)
mp                308 drivers/scsi/sym53c8xx_2/sym_malloc.c 		mp = ___cre_dma_pool(dev_dmat);
mp                309 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (!mp)
mp                311 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m = __sym_calloc(mp, size, name);
mp                313 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (!mp->nump)
mp                314 drivers/scsi/sym53c8xx_2/sym_malloc.c 		___del_dma_pool(mp);
mp                325 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_pool_p mp;
mp                328 drivers/scsi/sym53c8xx_2/sym_malloc.c 	mp = ___get_dma_pool(dev_dmat);
mp                329 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (!mp)
mp                331 drivers/scsi/sym53c8xx_2/sym_malloc.c 	__sym_mfree(mp, m, size, name);
mp                333 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (!mp->nump)
mp                334 drivers/scsi/sym53c8xx_2/sym_malloc.c 		___del_dma_pool(mp);
mp                347 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_pool_p mp;
mp                354 drivers/scsi/sym53c8xx_2/sym_malloc.c 	mp = ___get_dma_pool(dev_dmat);
mp                355 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (mp) {
mp                356 drivers/scsi/sym53c8xx_2/sym_malloc.c 		vp = mp->vtob[hc];
mp                 46 drivers/tee/optee/core.c 		const struct optee_msg_param *mp = msg_params + n;
mp                 47 drivers/tee/optee/core.c 		u32 attr = mp->attr & OPTEE_MSG_ATTR_TYPE_MASK;
mp                 59 drivers/tee/optee/core.c 			p->u.value.a = mp->u.value.a;
mp                 60 drivers/tee/optee/core.c 			p->u.value.b = mp->u.value.b;
mp                 61 drivers/tee/optee/core.c 			p->u.value.c = mp->u.value.c;
mp                 68 drivers/tee/optee/core.c 			p->u.memref.size = mp->u.tmem.size;
mp                 70 drivers/tee/optee/core.c 				mp->u.tmem.shm_ref;
mp                 79 drivers/tee/optee/core.c 			p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa;
mp                 97 drivers/tee/optee/core.c 			p->u.memref.size = mp->u.rmem.size;
mp                 99 drivers/tee/optee/core.c 				mp->u.rmem.shm_ref;
mp                106 drivers/tee/optee/core.c 			p->u.memref.shm_offs = mp->u.rmem.offs;
mp                118 drivers/tee/optee/core.c static int to_msg_param_tmp_mem(struct optee_msg_param *mp,
mp                124 drivers/tee/optee/core.c 	mp->attr = OPTEE_MSG_ATTR_TYPE_TMEM_INPUT + p->attr -
mp                127 drivers/tee/optee/core.c 	mp->u.tmem.shm_ref = (unsigned long)p->u.memref.shm;
mp                128 drivers/tee/optee/core.c 	mp->u.tmem.size = p->u.memref.size;
mp                131 drivers/tee/optee/core.c 		mp->u.tmem.buf_ptr = 0;
mp                139 drivers/tee/optee/core.c 	mp->u.tmem.buf_ptr = pa;
mp                140 drivers/tee/optee/core.c 	mp->attr |= OPTEE_MSG_ATTR_CACHE_PREDEFINED <<
mp                146 drivers/tee/optee/core.c static int to_msg_param_reg_mem(struct optee_msg_param *mp,
mp                149 drivers/tee/optee/core.c 	mp->attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT + p->attr -
mp                152 drivers/tee/optee/core.c 	mp->u.rmem.shm_ref = (unsigned long)p->u.memref.shm;
mp                153 drivers/tee/optee/core.c 	mp->u.rmem.size = p->u.memref.size;
mp                154 drivers/tee/optee/core.c 	mp->u.rmem.offs = p->u.memref.shm_offs;
mp                173 drivers/tee/optee/core.c 		struct optee_msg_param *mp = msg_params + n;
mp                177 drivers/tee/optee/core.c 			mp->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE;
mp                178 drivers/tee/optee/core.c 			memset(&mp->u, 0, sizeof(mp->u));
mp                183 drivers/tee/optee/core.c 			mp->attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT + p->attr -
mp                185 drivers/tee/optee/core.c 			mp->u.value.a = p->u.value.a;
mp                186 drivers/tee/optee/core.c 			mp->u.value.b = p->u.value.b;
mp                187 drivers/tee/optee/core.c 			mp->u.value.c = p->u.value.c;
mp                193 drivers/tee/optee/core.c 				rc = to_msg_param_reg_mem(mp, p);
mp                195 drivers/tee/optee/core.c 				rc = to_msg_param_tmp_mem(mp, p);
mp                549 drivers/tty/mxser.c 	struct mxser_port *mp = container_of(port, struct mxser_port, port);
mp                550 drivers/tty/mxser.c 	return (inb(mp->ioaddr + UART_MSR) & UART_MSR_DCD)?1:0;
mp                555 drivers/tty/mxser.c 	struct mxser_port *mp = container_of(port, struct mxser_port, port);
mp                558 drivers/tty/mxser.c 	spin_lock_irqsave(&mp->slock, flags);
mp                560 drivers/tty/mxser.c 		outb(inb(mp->ioaddr + UART_MCR) |
mp                561 drivers/tty/mxser.c 			UART_MCR_DTR | UART_MCR_RTS, mp->ioaddr + UART_MCR);
mp                563 drivers/tty/mxser.c 		outb(inb(mp->ioaddr + UART_MCR)&~(UART_MCR_DTR | UART_MCR_RTS),
mp                564 drivers/tty/mxser.c 			mp->ioaddr + UART_MCR);
mp                565 drivers/tty/mxser.c 	spin_unlock_irqrestore(&mp->slock, flags);
mp                131 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                171 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = &dss_data.mgr_priv_data_array[OMAP_DSS_CHANNEL_DIGIT];
mp                173 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->lcd_config.video_port_width = 24;
mp                174 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->lcd_config.clock_info.lck_div = 1;
mp                175 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->lcd_config.clock_info.pck_div = 1;
mp                185 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(ovl->manager);
mp                187 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return mp->lcd_config.stallmode;
mp                192 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp                194 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return mp->lcd_config.stallmode;
mp                205 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                207 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(mgr);
mp                209 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->enabled)
mp                212 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (applying && mp->user_info_dirty)
mp                213 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mi = &mp->user_info;
mp                215 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mi = &mp->info;
mp                231 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return dss_mgr_check(mgr, mi, &mp->timings, &mp->lcd_config, ois);
mp                258 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		struct mgr_priv_data *mp;
mp                262 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp = get_mgr_priv(mgr);
mp                264 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mp->enabled)
mp                269 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (mp->updating)
mp                273 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (mp->busy)
mp                277 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (mp->info_dirty)
mp                281 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (mp->shadow_info_dirty)
mp                291 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (mp->extra_info_dirty)
mp                295 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (mp->shadow_extra_info_dirty)
mp                337 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                340 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(mgr);
mp                342 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->shadow_info_dirty || mp->shadow_extra_info_dirty)
mp                363 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		struct mgr_priv_data *mp;
mp                366 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp = get_mgr_priv(mgr);
mp                368 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mp->enabled)
mp                371 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mp->updating)
mp                374 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (mp->extra_info_dirty || mp->shadow_extra_info_dirty)
mp                472 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp                485 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->enabled) {
mp                503 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		dirty = mp->info_dirty;
mp                504 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		shadow_dirty = mp->shadow_info_dirty;
mp                543 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                552 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(ovl->manager);
mp                561 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->enabled) {
mp                621 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                631 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(ovl->manager);
mp                633 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	replication = dss_ovl_use_replication(mp->lcd_config, oi->color_mode);
mp                635 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dispc_ovl_setup(ovl->id, oi, replication, &mp->timings, false);
mp                650 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->updating)
mp                657 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                670 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(ovl->manager);
mp                673 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->updating)
mp                679 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp                684 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->enabled)
mp                687 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	WARN_ON(mp->busy);
mp                695 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->info_dirty) {
mp                696 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		dispc_mgr_setup(mgr->id, &mp->info);
mp                698 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp->info_dirty = false;
mp                699 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (mp->updating)
mp                700 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			mp->shadow_info_dirty = true;
mp                706 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp                710 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->extra_info_dirty)
mp                713 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	dispc_mgr_set_timings(mgr->id, &mp->timings);
mp                717 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		dispc_mgr_set_lcd_config(mgr->id, &mp->lcd_config);
mp                719 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->extra_info_dirty = false;
mp                720 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->updating)
mp                721 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp->shadow_extra_info_dirty = true;
mp                731 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		struct mgr_priv_data *mp;
mp                735 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp = get_mgr_priv(mgr);
mp                737 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mp->enabled || mgr_manual_update(mgr) || mp->busy)
mp                759 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		struct mgr_priv_data *mp;
mp                762 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp = get_mgr_priv(mgr);
mp                764 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mp->enabled || mgr_manual_update(mgr) || mp->busy)
mp                770 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp->busy = true;
mp                783 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                786 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(mgr);
mp                787 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->shadow_info_dirty = false;
mp                788 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->shadow_extra_info_dirty = false;
mp                811 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp                817 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	WARN_ON(mp->updating);
mp                829 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->updating = true;
mp                890 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		struct mgr_priv_data *mp;
mp                893 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp = get_mgr_priv(mgr);
mp                895 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mp->enabled)
mp                898 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp->updating = dispc_mgr_is_enabled(i);
mp                901 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			bool was_busy = mp->busy;
mp                902 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			mp->busy = dispc_mgr_go_busy(i);
mp                904 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			if (was_busy && !mp->busy)
mp                919 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		struct mgr_priv_data *mp;
mp                922 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp = get_mgr_priv(mgr);
mp                924 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (!mgr_manual_update(mgr) || !mp->framedone_handler)
mp                928 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			mp->framedone_handler(mp->framedone_handler_data);
mp                953 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp                955 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(mgr);
mp                957 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->user_info_dirty)
mp                960 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->user_info_dirty = false;
mp                961 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->info_dirty = true;
mp                962 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->info = mp->user_info;
mp               1041 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp;
mp               1043 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp = get_mgr_priv(mgr);
mp               1045 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->enabled)
mp               1066 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1072 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->enabled)
mp               1077 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->enabled = true;
mp               1092 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		mp->updating = true;
mp               1108 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->enabled = false;
mp               1116 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1121 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (!mp->enabled)
mp               1131 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->updating = false;
mp               1132 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->enabled = false;
mp               1143 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1153 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->user_info = *info;
mp               1154 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->user_info_dirty = true;
mp               1164 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1169 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	*info = mp->user_info;
mp               1209 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1222 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->enabled) {
mp               1247 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1249 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->timings = *timings;
mp               1250 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->extra_info_dirty = true;
mp               1257 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1261 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->updating) {
mp               1275 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1277 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->lcd_config = *config;
mp               1278 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->extra_info_dirty = true;
mp               1285 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1289 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->enabled) {
mp               1549 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1551 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (mp->framedone_handler)
mp               1554 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->framedone_handler = handler;
mp               1555 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->framedone_handler_data = data;
mp               1563 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	struct mgr_priv_data *mp = get_mgr_priv(mgr);
mp               1565 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	WARN_ON(mp->framedone_handler != handler ||
mp               1566 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			mp->framedone_handler_data != data);
mp               1568 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->framedone_handler = NULL;
mp               1569 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	mp->framedone_handler_data = NULL;
mp                574 drivers/watchdog/cpwd.c 		struct miscdevice *mp = &p->devs[i].misc;
mp                576 drivers/watchdog/cpwd.c 		mp->minor = WD0_MINOR + i;
mp                577 drivers/watchdog/cpwd.c 		mp->name = cpwd_names[i];
mp                578 drivers/watchdog/cpwd.c 		mp->fops = &cpwd_fops;
mp                104 fs/autofs/waitq.c 		struct autofs_packet_missing *mp = &pkt.v4_pkt.missing;
mp                106 fs/autofs/waitq.c 		pktsz = sizeof(*mp);
mp                108 fs/autofs/waitq.c 		mp->wait_queue_token = wq->wait_queue_token;
mp                109 fs/autofs/waitq.c 		mp->len = wq->name.len;
mp                110 fs/autofs/waitq.c 		memcpy(mp->name, wq->name.name, wq->name.len);
mp                111 fs/autofs/waitq.c 		mp->name[wq->name.len] = '\0';
mp                239 fs/gfs2/bmap.c 			  struct metapath *mp, unsigned int height)
mp                243 fs/gfs2/bmap.c 	mp->mp_fheight = height;
mp                245 fs/gfs2/bmap.c 		mp->mp_list[i] = do_div(block, sdp->sd_inptrs);
mp                248 fs/gfs2/bmap.c static inline unsigned int metapath_branch_start(const struct metapath *mp)
mp                250 fs/gfs2/bmap.c 	if (mp->mp_list[0] == 0)
mp                260 fs/gfs2/bmap.c static inline __be64 *metaptr1(unsigned int height, const struct metapath *mp)
mp                262 fs/gfs2/bmap.c 	struct buffer_head *bh = mp->mp_bh[height];
mp                278 fs/gfs2/bmap.c static inline __be64 *metapointer(unsigned int height, const struct metapath *mp)
mp                280 fs/gfs2/bmap.c 	__be64 *p = metaptr1(height, mp);
mp                281 fs/gfs2/bmap.c 	return p + mp->mp_list[height];
mp                284 fs/gfs2/bmap.c static inline const __be64 *metaend(unsigned int height, const struct metapath *mp)
mp                286 fs/gfs2/bmap.c 	const struct buffer_head *bh = mp->mp_bh[height];
mp                290 fs/gfs2/bmap.c static void clone_metapath(struct metapath *clone, struct metapath *mp)
mp                294 fs/gfs2/bmap.c 	*clone = *mp;
mp                295 fs/gfs2/bmap.c 	for (hgt = 0; hgt < mp->mp_aheight; hgt++)
mp                324 fs/gfs2/bmap.c static int __fillup_metapath(struct gfs2_inode *ip, struct metapath *mp,
mp                328 fs/gfs2/bmap.c 		__be64 *ptr = metapointer(x, mp);
mp                334 fs/gfs2/bmap.c 		ret = gfs2_meta_indirect_buffer(ip, x + 1, dblock, &mp->mp_bh[x + 1]);
mp                338 fs/gfs2/bmap.c 	mp->mp_aheight = x + 1;
mp                359 fs/gfs2/bmap.c static int lookup_metapath(struct gfs2_inode *ip, struct metapath *mp)
mp                361 fs/gfs2/bmap.c 	return __fillup_metapath(ip, mp, 0, ip->i_height - 1);
mp                375 fs/gfs2/bmap.c static int fillup_metapath(struct gfs2_inode *ip, struct metapath *mp, int h)
mp                383 fs/gfs2/bmap.c 			if (mp->mp_bh[x])
mp                387 fs/gfs2/bmap.c 	ret = __fillup_metapath(ip, mp, x, h);
mp                390 fs/gfs2/bmap.c 	return mp->mp_aheight - x - 1;
mp                393 fs/gfs2/bmap.c static sector_t metapath_to_block(struct gfs2_sbd *sdp, struct metapath *mp)
mp                398 fs/gfs2/bmap.c 	for (hgt = mp->mp_fheight - 1; hgt >= 0; hgt--) {
mp                399 fs/gfs2/bmap.c 		if (hgt < mp->mp_aheight)
mp                400 fs/gfs2/bmap.c 			block += mp->mp_list[hgt] * factor;
mp                406 fs/gfs2/bmap.c static void release_metapath(struct metapath *mp)
mp                411 fs/gfs2/bmap.c 		if (mp->mp_bh[i] == NULL)
mp                413 fs/gfs2/bmap.c 		brelse(mp->mp_bh[i]);
mp                414 fs/gfs2/bmap.c 		mp->mp_bh[i] = NULL;
mp                484 fs/gfs2/bmap.c 	for (hgt = mp->mp_fheight - 1; hgt >= mp->mp_aheight; hgt--) {
mp                485 fs/gfs2/bmap.c 		max_len += mp->mp_list[hgt] * factor;
mp                486 fs/gfs2/bmap.c 		mp->mp_list[hgt] = 0;
mp                491 fs/gfs2/bmap.c 		u16 start = mp->mp_list[hgt];
mp                501 fs/gfs2/bmap.c 		status = walker(mp, ptrs);
mp                506 fs/gfs2/bmap.c 			BUG_ON(mp->mp_aheight == mp->mp_fheight);
mp                507 fs/gfs2/bmap.c 			ptrs = mp->mp_list[hgt] - start;
mp                521 fs/gfs2/bmap.c 		brelse(mp->mp_bh[hgt]);
mp                522 fs/gfs2/bmap.c 		mp->mp_bh[hgt] = NULL;
mp                523 fs/gfs2/bmap.c 		mp->mp_list[hgt] = 0;
mp                530 fs/gfs2/bmap.c 		(mp->mp_list[hgt])++;
mp                532 fs/gfs2/bmap.c 			if (mp->mp_list[hgt] >= sdp->sd_inptrs)
mp                535 fs/gfs2/bmap.c 			if (mp->mp_list[hgt] >= sdp->sd_diptrs)
mp                541 fs/gfs2/bmap.c 		ret = fillup_metapath(ip, mp, ip->i_height - 1);
mp                547 fs/gfs2/bmap.c 		mp->mp_aheight = hgt + 1;
mp                552 fs/gfs2/bmap.c static enum walker_status gfs2_hole_walker(struct metapath *mp,
mp                558 fs/gfs2/bmap.c 	hgt = mp->mp_aheight - 1;
mp                559 fs/gfs2/bmap.c 	start = metapointer(hgt, mp);
mp                564 fs/gfs2/bmap.c 			mp->mp_list[hgt] += ptr - start;
mp                565 fs/gfs2/bmap.c 			if (mp->mp_aheight == mp->mp_fheight)
mp                586 fs/gfs2/bmap.c 			  struct metapath *mp, struct iomap *iomap)
mp                592 fs/gfs2/bmap.c 	clone_metapath(&clone, mp);
mp                609 fs/gfs2/bmap.c static inline __be64 *gfs2_indirect_init(struct metapath *mp,
mp                613 fs/gfs2/bmap.c 	__be64 *ptr = (__be64 *)(mp->mp_bh[i - 1]->b_data +
mp                617 fs/gfs2/bmap.c 	BUG_ON(mp->mp_bh[i] != NULL);
mp                618 fs/gfs2/bmap.c 	mp->mp_bh[i] = gfs2_meta_new(gl, bn);
mp                619 fs/gfs2/bmap.c 	gfs2_trans_add_meta(gl, mp->mp_bh[i]);
mp                620 fs/gfs2/bmap.c 	gfs2_metatype_set(mp->mp_bh[i], GFS2_METATYPE_IN, GFS2_FORMAT_IN);
mp                621 fs/gfs2/bmap.c 	gfs2_buffer_clear_tail(mp->mp_bh[i], sizeof(struct gfs2_meta_header));
mp                664 fs/gfs2/bmap.c 			    struct metapath *mp)
mp                668 fs/gfs2/bmap.c 	struct buffer_head *dibh = mp->mp_bh[0];
mp                672 fs/gfs2/bmap.c 	const unsigned end_of_metadata = mp->mp_fheight - 1;
mp                678 fs/gfs2/bmap.c 	BUG_ON(mp->mp_aheight < 1);
mp                686 fs/gfs2/bmap.c 	if (mp->mp_fheight == mp->mp_aheight) {
mp                691 fs/gfs2/bmap.c 		if (mp->mp_fheight == ip->i_height) {
mp                693 fs/gfs2/bmap.c 			iblks = mp->mp_fheight - mp->mp_aheight;
mp                698 fs/gfs2/bmap.c 			iblks = mp->mp_fheight - ip->i_height;
mp                699 fs/gfs2/bmap.c 			branch_start = metapath_branch_start(mp);
mp                700 fs/gfs2/bmap.c 			iblks += (mp->mp_fheight - branch_start);
mp                707 fs/gfs2/bmap.c 	i = mp->mp_aheight;
mp                724 fs/gfs2/bmap.c 			for (; i - 1 < mp->mp_fheight - ip->i_height && n > 0;
mp                726 fs/gfs2/bmap.c 				gfs2_indirect_init(mp, ip->i_gl, i, 0, bn++);
mp                727 fs/gfs2/bmap.c 			if (i - 1 == mp->mp_fheight - ip->i_height) {
mp                729 fs/gfs2/bmap.c 				gfs2_buffer_copy_tail(mp->mp_bh[i],
mp                735 fs/gfs2/bmap.c 				ptr = (__be64 *)(mp->mp_bh[i]->b_data +
mp                739 fs/gfs2/bmap.c 				for(i = branch_start; i < mp->mp_fheight; i++) {
mp                740 fs/gfs2/bmap.c 					if (mp->mp_bh[i] == NULL)
mp                742 fs/gfs2/bmap.c 					brelse(mp->mp_bh[i]);
mp                743 fs/gfs2/bmap.c 					mp->mp_bh[i] = NULL;
mp                751 fs/gfs2/bmap.c 			if (i > 1 && i < mp->mp_fheight)
mp                752 fs/gfs2/bmap.c 				gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[i-1]);
mp                753 fs/gfs2/bmap.c 			for (; i < mp->mp_fheight && n > 0; i++, n--)
mp                754 fs/gfs2/bmap.c 				gfs2_indirect_init(mp, ip->i_gl, i,
mp                755 fs/gfs2/bmap.c 						   mp->mp_list[i-1], bn++);
mp                756 fs/gfs2/bmap.c 			if (i == mp->mp_fheight)
mp                763 fs/gfs2/bmap.c 			BUG_ON(mp->mp_bh[end_of_metadata] == NULL);
mp                764 fs/gfs2/bmap.c 			gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[end_of_metadata]);
mp                766 fs/gfs2/bmap.c 			ptr = metapointer(end_of_metadata, mp);
mp                777 fs/gfs2/bmap.c 	ip->i_height = mp->mp_fheight;
mp                797 fs/gfs2/bmap.c static u64 gfs2_alloc_size(struct inode *inode, struct metapath *mp, u64 size)
mp                811 fs/gfs2/bmap.c 	if (gfs2_is_stuffed(ip) || mp->mp_fheight != mp->mp_aheight) {
mp                812 fs/gfs2/bmap.c 		unsigned int maxsize = mp->mp_fheight > 1 ?
mp                814 fs/gfs2/bmap.c 		maxsize -= mp->mp_list[mp->mp_fheight - 1];
mp                820 fs/gfs2/bmap.c 	first = metapointer(ip->i_height - 1, mp);
mp                821 fs/gfs2/bmap.c 	end = metaend(ip->i_height - 1, mp);
mp                844 fs/gfs2/bmap.c 			  struct metapath *mp)
mp                866 fs/gfs2/bmap.c 	mp->mp_bh[0] = dibh;
mp                905 fs/gfs2/bmap.c 	find_metapath(sdp, lblock, mp, height);
mp                909 fs/gfs2/bmap.c 	ret = lookup_metapath(ip, mp);
mp                913 fs/gfs2/bmap.c 	if (mp->mp_aheight != ip->i_height)
mp                916 fs/gfs2/bmap.c 	ptr = metapointer(ip->i_height - 1, mp);
mp                920 fs/gfs2/bmap.c 	bh = mp->mp_bh[ip->i_height - 1];
mp                941 fs/gfs2/bmap.c 			ret = gfs2_hole_size(inode, lblock, len, mp, iomap);
mp                950 fs/gfs2/bmap.c 		len = gfs2_alloc_size(inode, mp, len);
mp                956 fs/gfs2/bmap.c 			ret = gfs2_hole_size(inode, lblock, len, mp, iomap);
mp                978 fs/gfs2/bmap.c 	struct metapath mp = { .mp_aheight = 1, };
mp                982 fs/gfs2/bmap.c 	ret = gfs2_iomap_get(inode, pos, i_blocksize(inode), 0, &iomap, &mp);
mp                983 fs/gfs2/bmap.c 	release_metapath(&mp);
mp               1066 fs/gfs2/bmap.c 				  struct metapath *mp)
mp               1111 fs/gfs2/bmap.c 			release_metapath(mp);
mp               1113 fs/gfs2/bmap.c 					     iomap->length, flags, iomap, mp);
mp               1119 fs/gfs2/bmap.c 			ret = gfs2_iomap_alloc(inode, iomap, mp);
mp               1157 fs/gfs2/bmap.c 	struct metapath mp = { .mp_aheight = 1, };
mp               1169 fs/gfs2/bmap.c 	ret = gfs2_iomap_get(inode, pos, length, flags, iomap, &mp);
mp               1193 fs/gfs2/bmap.c 	ret = gfs2_iomap_begin_write(inode, pos, length, flags, iomap, &mp);
mp               1198 fs/gfs2/bmap.c 	release_metapath(&mp);
mp               1291 fs/gfs2/bmap.c 	struct metapath mp = { .mp_aheight = 1, };
mp               1301 fs/gfs2/bmap.c 		ret = gfs2_iomap_get(inode, pos, length, IOMAP_WRITE, &iomap, &mp);
mp               1303 fs/gfs2/bmap.c 			ret = gfs2_iomap_alloc(inode, &iomap, &mp);
mp               1304 fs/gfs2/bmap.c 		release_metapath(&mp);
mp               1306 fs/gfs2/bmap.c 		ret = gfs2_iomap_get(inode, pos, length, 0, &iomap, &mp);
mp               1307 fs/gfs2/bmap.c 		release_metapath(&mp);
mp               1462 fs/gfs2/bmap.c 	struct metapath mp = { .mp_aheight = 1, };
mp               1465 fs/gfs2/bmap.c 	ret = gfs2_iomap_get(inode, pos, length, IOMAP_WRITE, iomap, &mp);
mp               1467 fs/gfs2/bmap.c 		ret = gfs2_iomap_alloc(inode, iomap, &mp);
mp               1468 fs/gfs2/bmap.c 	release_metapath(&mp);
mp               1647 fs/gfs2/bmap.c static bool mp_eq_to_hgt(struct metapath *mp, __u16 *list, unsigned int h)
mp               1649 fs/gfs2/bmap.c 	if (memcmp(mp->mp_list, list, h * sizeof(mp->mp_list[0])))
mp               1663 fs/gfs2/bmap.c static bool find_nonnull_ptr(struct gfs2_sbd *sdp, struct metapath *mp,
mp               1667 fs/gfs2/bmap.c 	struct buffer_head *bh = mp->mp_bh[h];
mp               1670 fs/gfs2/bmap.c 	first = metaptr1(h, mp);
mp               1671 fs/gfs2/bmap.c 	ptr = first + mp->mp_list[h];
mp               1673 fs/gfs2/bmap.c 	if (end_list && mp_eq_to_hgt(mp, end_list, h)) {
mp               1680 fs/gfs2/bmap.c 			mp->mp_list[h] = ptr - first;
mp               1683 fs/gfs2/bmap.c 				mp->mp_list[h] = 0;
mp               1699 fs/gfs2/bmap.c metapointer_range(struct metapath *mp, int height,
mp               1704 fs/gfs2/bmap.c 	struct buffer_head *bh = mp->mp_bh[height];
mp               1707 fs/gfs2/bmap.c 	first = metaptr1(height, mp);
mp               1709 fs/gfs2/bmap.c 	if (mp_eq_to_hgt(mp, start_list, height)) {
mp               1714 fs/gfs2/bmap.c 	if (end_list && mp_eq_to_hgt(mp, end_list, height)) {
mp               1721 fs/gfs2/bmap.c 			     struct metapath *mp, int height,
mp               1728 fs/gfs2/bmap.c 		if (!mp_eq_to_hgt(mp, end_list, height))
mp               1733 fs/gfs2/bmap.c 	return mp->mp_list[height] >= end;
mp               1756 fs/gfs2/bmap.c 	struct metapath mp = {};
mp               1807 fs/gfs2/bmap.c 		find_metapath(sdp, lend, &mp, ip->i_height);
mp               1809 fs/gfs2/bmap.c 		memcpy(end_list, mp.mp_list, sizeof(mp.mp_list));
mp               1818 fs/gfs2/bmap.c 	find_metapath(sdp, lblock, &mp, ip->i_height);
mp               1819 fs/gfs2/bmap.c 	memcpy(start_list, mp.mp_list, sizeof(start_list));
mp               1831 fs/gfs2/bmap.c 	mp.mp_bh[0] = dibh;
mp               1832 fs/gfs2/bmap.c 	ret = lookup_metapath(ip, &mp);
mp               1837 fs/gfs2/bmap.c 	for (mp_h = 0; mp_h < mp.mp_aheight - 1; mp_h++) {
mp               1838 fs/gfs2/bmap.c 		metapointer_range(&mp, mp_h, start_list, start_aligned,
mp               1843 fs/gfs2/bmap.c 	if (mp.mp_aheight == ip->i_height)
mp               1864 fs/gfs2/bmap.c 			bh = mp.mp_bh[mp_h];
mp               1888 fs/gfs2/bmap.c 			metapointer_range(&mp, mp_h, start_list, start_aligned,
mp               1891 fs/gfs2/bmap.c 			ret = sweep_bh_for_rgrps(ip, &rd_gh, mp.mp_bh[mp_h],
mp               1911 fs/gfs2/bmap.c 				brelse(mp.mp_bh[mp_h]);
mp               1912 fs/gfs2/bmap.c 				mp.mp_bh[mp_h] = NULL;
mp               1919 fs/gfs2/bmap.c 				memcpy(mp.mp_list, start_list, sizeof(start_list));
mp               1924 fs/gfs2/bmap.c 			mp.mp_list[mp_h] = 0;
mp               1926 fs/gfs2/bmap.c 			mp.mp_list[mp_h]++;
mp               1927 fs/gfs2/bmap.c 			if (walk_done(sdp, &mp, mp_h, end_list, end_aligned))
mp               1932 fs/gfs2/bmap.c 			if (find_nonnull_ptr(sdp, &mp, mp_h, end_list, end_aligned)) {
mp               1943 fs/gfs2/bmap.c 			ret = fillup_metapath(ip, &mp, mp_h);
mp               1948 fs/gfs2/bmap.c 			if (mp.mp_aheight > 1 && strip_h == ip->i_height - 1) {
mp               1949 fs/gfs2/bmap.c 				unsigned int height = mp.mp_aheight - 1;
mp               1952 fs/gfs2/bmap.c 				if (mp.mp_aheight - 1 == strip_h)
mp               1955 fs/gfs2/bmap.c 				for (; height >= mp.mp_aheight - ret; height--) {
mp               1956 fs/gfs2/bmap.c 					metapointer_range(&mp, height,
mp               1965 fs/gfs2/bmap.c 			if (mp.mp_aheight - 1 == strip_h) {
mp               1969 fs/gfs2/bmap.c 			if (mp.mp_aheight < ip->i_height) /* We have a partial height */
mp               1970 fs/gfs2/bmap.c 				mp_h = mp.mp_aheight - 1;
mp               1975 fs/gfs2/bmap.c 			if (find_nonnull_ptr(sdp, &mp, mp_h, end_list, end_aligned))
mp               2011 fs/gfs2/bmap.c 	release_metapath(&mp);
mp                102 fs/jfs/jfs_btree.h 	struct metapage *mp;	/* 4/8: */
mp                145 fs/jfs/jfs_btree.h 	MP = (LEAF)->mp;\
mp                156 fs/jfs/jfs_btree.h 	if (! BT_IS_ROOT((BTSTACK)->top->mp))\
mp                157 fs/jfs/jfs_btree.h 		release_metapage((BTSTACK)->top->mp);\
mp                156 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp                168 fs/jfs/jfs_dmap.c 	mp = read_metapage(ipbmap,
mp                171 fs/jfs/jfs_dmap.c 	if (mp == NULL) {
mp                177 fs/jfs/jfs_dmap.c 	dbmp_le = (struct dbmap_disk *) mp->data;
mp                196 fs/jfs/jfs_dmap.c 	release_metapage(mp);
mp                254 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp                261 fs/jfs/jfs_dmap.c 	mp = read_metapage(ipbmap,
mp                264 fs/jfs/jfs_dmap.c 	if (mp == NULL) {
mp                269 fs/jfs/jfs_dmap.c 	dbmp_le = (struct dbmap_disk *) mp->data;
mp                288 fs/jfs/jfs_dmap.c 	write_metapage(mp);
mp                320 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp                350 fs/jfs/jfs_dmap.c 	mp = NULL;
mp                353 fs/jfs/jfs_dmap.c 		if (mp) {
mp                354 fs/jfs/jfs_dmap.c 			write_metapage(mp);
mp                359 fs/jfs/jfs_dmap.c 		mp = read_metapage(ipbmap, lblkno, PSIZE, 0);
mp                360 fs/jfs/jfs_dmap.c 		if (mp == NULL) {
mp                364 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp                374 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp                381 fs/jfs/jfs_dmap.c 	write_metapage(mp);
mp                420 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp                442 fs/jfs/jfs_dmap.c 	mp = NULL;
mp                448 fs/jfs/jfs_dmap.c 			if (mp) {
mp                449 fs/jfs/jfs_dmap.c 				write_metapage(mp);
mp                452 fs/jfs/jfs_dmap.c 			mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE,
mp                454 fs/jfs/jfs_dmap.c 			if (mp == NULL)
mp                456 fs/jfs/jfs_dmap.c 			metapage_wait_for_io(mp);
mp                458 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp                529 fs/jfs/jfs_dmap.c 		if (mp->lsn != 0) {
mp                531 fs/jfs/jfs_dmap.c 			logdiff(diffp, mp->lsn, log);
mp                533 fs/jfs/jfs_dmap.c 				mp->lsn = lsn;
mp                536 fs/jfs/jfs_dmap.c 				list_move(&mp->synclist, &tblk->synclist);
mp                541 fs/jfs/jfs_dmap.c 			logdiff(diffp, mp->clsn, log);
mp                543 fs/jfs/jfs_dmap.c 				mp->clsn = tblk->clsn;
mp                545 fs/jfs/jfs_dmap.c 			mp->log = log;
mp                546 fs/jfs/jfs_dmap.c 			mp->lsn = lsn;
mp                550 fs/jfs/jfs_dmap.c 			list_add(&mp->synclist, &tblk->synclist);
mp                552 fs/jfs/jfs_dmap.c 			mp->clsn = tblk->clsn;
mp                558 fs/jfs/jfs_dmap.c 	if (mp) {
mp                559 fs/jfs/jfs_dmap.c 		write_metapage(mp);
mp                692 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp                769 fs/jfs/jfs_dmap.c 		mp = read_metapage(ipbmap, lblkno, PSIZE, 0);
mp                770 fs/jfs/jfs_dmap.c 		if (mp == NULL)
mp                773 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp                782 fs/jfs/jfs_dmap.c 				mark_metapage_dirty(mp);
mp                785 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp                796 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp                808 fs/jfs/jfs_dmap.c 				mark_metapage_dirty(mp);
mp                810 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp                820 fs/jfs/jfs_dmap.c 				mark_metapage_dirty(mp);
mp                822 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp                826 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp                887 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp                911 fs/jfs/jfs_dmap.c 	mp = read_metapage(ipbmap, lblkno, PSIZE, 0);
mp                912 fs/jfs/jfs_dmap.c 	if (mp == NULL) {
mp                916 fs/jfs/jfs_dmap.c 	dp = (struct dmap *) mp->data;
mp                924 fs/jfs/jfs_dmap.c 		mark_metapage_dirty(mp);
mp                926 fs/jfs/jfs_dmap.c 	release_metapage(mp);
mp               1018 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp               1067 fs/jfs/jfs_dmap.c 	mp = read_metapage(ipbmap, lblkno, PSIZE, 0);
mp               1068 fs/jfs/jfs_dmap.c 	if (mp == NULL) {
mp               1073 fs/jfs/jfs_dmap.c 	dp = (struct dmap *) mp->data;
mp               1084 fs/jfs/jfs_dmap.c 		write_metapage(mp);
mp               1087 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp               1355 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp               1410 fs/jfs/jfs_dmap.c 	mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
mp               1411 fs/jfs/jfs_dmap.c 	if (mp == NULL)
mp               1413 fs/jfs/jfs_dmap.c 	dcp = (struct dmapctl *) mp->data;
mp               1418 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp               1459 fs/jfs/jfs_dmap.c 				release_metapage(mp);
mp               1480 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp               1519 fs/jfs/jfs_dmap.c 	release_metapage(mp);
mp               1720 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp               1732 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
mp               1733 fs/jfs/jfs_dmap.c 		if (mp == NULL)
mp               1735 fs/jfs/jfs_dmap.c 		dcp = (struct dmapctl *) mp->data;
mp               1741 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp               1754 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp               1837 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp               1846 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
mp               1847 fs/jfs/jfs_dmap.c 		if (mp == NULL)
mp               1849 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp               1855 fs/jfs/jfs_dmap.c 			mark_metapage_dirty(mp);
mp               1857 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp               1873 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
mp               1874 fs/jfs/jfs_dmap.c 		if (mp == NULL) {
mp               1878 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp               1883 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp               1897 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp               1903 fs/jfs/jfs_dmap.c 		write_metapage(mp);
mp               1926 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
mp               1927 fs/jfs/jfs_dmap.c 		if (mp == NULL) {
mp               1935 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp               1943 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp               1950 fs/jfs/jfs_dmap.c 		write_metapage(mp);
mp               2497 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp               2508 fs/jfs/jfs_dmap.c 	mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
mp               2509 fs/jfs/jfs_dmap.c 	if (mp == NULL)
mp               2511 fs/jfs/jfs_dmap.c 	dcp = (struct dmapctl *) mp->data;
mp               2515 fs/jfs/jfs_dmap.c 		release_metapage(mp);
mp               2604 fs/jfs/jfs_dmap.c 				release_metapage(mp);
mp               2623 fs/jfs/jfs_dmap.c 	write_metapage(mp);
mp               3197 fs/jfs/jfs_dmap.c 	struct metapage *mp;
mp               3212 fs/jfs/jfs_dmap.c 	mp = NULL;
mp               3215 fs/jfs/jfs_dmap.c 		if (mp) {
mp               3216 fs/jfs/jfs_dmap.c 			write_metapage(mp);
mp               3221 fs/jfs/jfs_dmap.c 		mp = read_metapage(ipbmap, lblkno, PSIZE, 0);
mp               3222 fs/jfs/jfs_dmap.c 		if (mp == NULL) {
mp               3226 fs/jfs/jfs_dmap.c 		dp = (struct dmap *) mp->data;
mp               3235 fs/jfs/jfs_dmap.c 			release_metapage(mp);
mp               3242 fs/jfs/jfs_dmap.c 	write_metapage(mp);
mp               3378 fs/jfs/jfs_dmap.c 	struct metapage *mp, *l2mp, *l1mp = NULL, *l0mp = NULL;
mp               3542 fs/jfs/jfs_dmap.c 					mp = read_metapage(ipbmap, p,
mp               3544 fs/jfs/jfs_dmap.c 					if (mp == NULL)
mp               3549 fs/jfs/jfs_dmap.c 					mp = read_metapage(ipbmap, p,
mp               3551 fs/jfs/jfs_dmap.c 					if (mp == NULL)
mp               3557 fs/jfs/jfs_dmap.c 				dp = (struct dmap *) mp->data;
mp               3564 fs/jfs/jfs_dmap.c 				write_metapage(mp);
mp                103 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp                237 fs/jfs/jfs_dtree.c 					 struct metapage ** mp, s64 *lblock)
mp                263 fs/jfs/jfs_dtree.c 		*mp = NULL;
mp                271 fs/jfs/jfs_dtree.c 		if (*mp && (*lblock != blkno)) {
mp                272 fs/jfs/jfs_dtree.c 			release_metapage(*mp);
mp                273 fs/jfs/jfs_dtree.c 			*mp = NULL;
mp                275 fs/jfs/jfs_dtree.c 		if (!(*mp)) {
mp                277 fs/jfs/jfs_dtree.c 			*mp = read_index_page(ip, blkno);
mp                279 fs/jfs/jfs_dtree.c 		if (!(*mp)) {
mp                285 fs/jfs/jfs_dtree.c 		    (struct dir_table_slot *) ((char *) (*mp)->data +
mp                291 fs/jfs/jfs_dtree.c static inline void lock_index(tid_t tid, struct inode *ip, struct metapage * mp,
mp                298 fs/jfs/jfs_dtree.c 	tlck = txLock(tid, ip, mp, tlckDATA);
mp                331 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp                404 fs/jfs/jfs_dtree.c 		mp = get_index_page(ip, 0);
mp                405 fs/jfs/jfs_dtree.c 		if (!mp) {
mp                412 fs/jfs/jfs_dtree.c 		tlck = txLock(tid, ip, mp, tlckDATA);
mp                421 fs/jfs/jfs_dtree.c 		memcpy(mp->data, temp_table, sizeof(temp_table));
mp                423 fs/jfs/jfs_dtree.c 		mark_metapage_dirty(mp);
mp                424 fs/jfs/jfs_dtree.c 		release_metapage(mp);
mp                446 fs/jfs/jfs_dtree.c 		if ((mp = get_index_page(ip, blkno)))
mp                447 fs/jfs/jfs_dtree.c 			memset(mp->data, 0, PSIZE);	/* Just looks better */
mp                451 fs/jfs/jfs_dtree.c 		mp = read_index_page(ip, blkno);
mp                453 fs/jfs/jfs_dtree.c 	if (!mp) {
mp                458 fs/jfs/jfs_dtree.c 	lock_index(tid, ip, mp, index);
mp                461 fs/jfs/jfs_dtree.c 	    (struct dir_table_slot *) ((char *) mp->data + page_offset);
mp                466 fs/jfs/jfs_dtree.c 	mark_metapage_dirty(mp);
mp                467 fs/jfs/jfs_dtree.c 	release_metapage(mp);
mp                487 fs/jfs/jfs_dtree.c 	struct metapage *mp = NULL;
mp                489 fs/jfs/jfs_dtree.c 	dirtab_slot = find_index(ip, index, &mp, &lblock);
mp                498 fs/jfs/jfs_dtree.c 	if (mp) {
mp                499 fs/jfs/jfs_dtree.c 		lock_index(tid, ip, mp, index);
mp                500 fs/jfs/jfs_dtree.c 		mark_metapage_dirty(mp);
mp                501 fs/jfs/jfs_dtree.c 		release_metapage(mp);
mp                512 fs/jfs/jfs_dtree.c 			 int slot, struct metapage ** mp, s64 *lblock)
mp                516 fs/jfs/jfs_dtree.c 	dirtab_slot = find_index(ip, index, mp, lblock);
mp                524 fs/jfs/jfs_dtree.c 	if (*mp) {
mp                525 fs/jfs/jfs_dtree.c 		lock_index(tid, ip, *mp, index);
mp                526 fs/jfs/jfs_dtree.c 		mark_metapage_dirty(*mp);
mp                540 fs/jfs/jfs_dtree.c 	struct metapage *mp = NULL;
mp                543 fs/jfs/jfs_dtree.c 	slot = find_index(ip, index, &mp, &lblock);
mp                550 fs/jfs/jfs_dtree.c 	if (mp)
mp                551 fs/jfs/jfs_dtree.c 		release_metapage(mp);
mp                573 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp                623 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, bn, mp, psize, p, rc);
mp                695 fs/jfs/jfs_dtree.c 					btsp->mp = mp;
mp                744 fs/jfs/jfs_dtree.c 			btsp->mp = mp;
mp                783 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp                787 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp                813 fs/jfs/jfs_dtree.c 	struct metapage *mp;	/* meta-page buffer */
mp                831 fs/jfs/jfs_dtree.c 	DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
mp                838 fs/jfs/jfs_dtree.c 			DT_PUTPAGE(mp);
mp                858 fs/jfs/jfs_dtree.c 		split.mp = mp;
mp                872 fs/jfs/jfs_dtree.c 	BT_MARK_DIRTY(mp, ip);
mp                876 fs/jfs/jfs_dtree.c 	tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
mp                901 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp                945 fs/jfs/jfs_dtree.c 	smp = split->mp;
mp               1222 fs/jfs/jfs_dtree.c 			split->mp = smp;
mp               1327 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               1345 fs/jfs/jfs_dtree.c 	smp = split->mp;
mp               1463 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, nextbn, mp, PSIZE, p, rc);
mp               1469 fs/jfs/jfs_dtree.c 		BT_MARK_DIRTY(mp, ip);
mp               1473 fs/jfs/jfs_dtree.c 		tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK);
mp               1475 fs/jfs/jfs_dtree.c 			tlck, ip, mp);
mp               1486 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               1572 fs/jfs/jfs_dtree.c 		mp = NULL;
mp               1577 fs/jfs/jfs_dtree.c 				     rbn, n, &mp, &lblock);
mp               1579 fs/jfs/jfs_dtree.c 		if (mp)
mp               1580 fs/jfs/jfs_dtree.c 			release_metapage(mp);
mp               1635 fs/jfs/jfs_dtree.c 	struct metapage *smp, *pmp, *mp;
mp               1656 fs/jfs/jfs_dtree.c 	smp = split->mp;
mp               1696 fs/jfs/jfs_dtree.c 			mp = NULL;
mp               1703 fs/jfs/jfs_dtree.c 					     xaddr, n, &mp, &lblock);
mp               1705 fs/jfs/jfs_dtree.c 			if (mp)
mp               1706 fs/jfs/jfs_dtree.c 				release_metapage(mp);
mp               1887 fs/jfs/jfs_dtree.c 	smp = split->mp;
mp               1985 fs/jfs/jfs_dtree.c 		struct metapage *mp = NULL;
mp               1992 fs/jfs/jfs_dtree.c 				     rbn, n, &mp, &lblock);
mp               1994 fs/jfs/jfs_dtree.c 		if (mp)
mp               1995 fs/jfs/jfs_dtree.c 			release_metapage(mp);
mp               2075 fs/jfs/jfs_dtree.c 	struct metapage *mp, *imp;
mp               2098 fs/jfs/jfs_dtree.c 	DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               2144 fs/jfs/jfs_dtree.c 		rc = dtDeleteUp(tid, ip, mp, p, &btstack);
mp               2152 fs/jfs/jfs_dtree.c 		BT_MARK_DIRTY(mp, ip);
mp               2156 fs/jfs/jfs_dtree.c 		tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
mp               2208 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               2229 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               2296 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc);
mp               2327 fs/jfs/jfs_dtree.c 				DT_PUTPAGE(mp);
mp               2350 fs/jfs/jfs_dtree.c 					DT_PUTPAGE(mp);
mp               2360 fs/jfs/jfs_dtree.c 				discard_metapage(mp);
mp               2372 fs/jfs/jfs_dtree.c 		BT_MARK_DIRTY(mp, ip);
mp               2378 fs/jfs/jfs_dtree.c 		tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
mp               2414 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               2437 fs/jfs/jfs_dtree.c 	struct metapage *mp, *pmp, *lmp, *rmp;
mp               2474 fs/jfs/jfs_dtree.c 	DT_GETPAGE(ip, oxaddr, mp, PSIZE, p, rc);
mp               2489 fs/jfs/jfs_dtree.c 			DT_PUTPAGE(mp);
mp               2500 fs/jfs/jfs_dtree.c 			DT_PUTPAGE(mp);
mp               2550 fs/jfs/jfs_dtree.c 	tlck = txLock(tid, ip, mp, tlckDTREE | tlckNEW);
mp               2571 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp               2635 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               2652 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, bn, mp, psize, p, rc);
mp               2669 fs/jfs/jfs_dtree.c 			DT_PUTPAGE(mp);
mp               2681 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               2698 fs/jfs/jfs_dtree.c 			btsp->mp = mp;
mp               2708 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               2713 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp               2716 fs/jfs/jfs_dtree.c 	DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               2738 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               2749 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, nextbn, mp, PSIZE, p, rc);
mp               2753 fs/jfs/jfs_dtree.c 		BT_MARK_DIRTY(mp, ip);
mp               2759 fs/jfs/jfs_dtree.c 		tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK);
mp               2761 fs/jfs/jfs_dtree.c 			tlck, ip, mp);
mp               2773 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               2778 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, prevbn, mp, PSIZE, p, rc);
mp               2782 fs/jfs/jfs_dtree.c 		BT_MARK_DIRTY(mp, ip);
mp               2788 fs/jfs/jfs_dtree.c 		tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK);
mp               2790 fs/jfs/jfs_dtree.c 			tlck, ip, mp);
mp               2802 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               2913 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               2922 fs/jfs/jfs_dtree.c 	DT_GETPAGE(inode, bn, mp, PSIZE, p, rc);
mp               2928 fs/jfs/jfs_dtree.c 	BT_MARK_DIRTY(mp, inode);
mp               2932 fs/jfs/jfs_dtree.c 	tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY);
mp               2933 fs/jfs/jfs_dtree.c 	if (BT_IS_ROOT(mp))
mp               2953 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp               3005 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               3076 fs/jfs/jfs_dtree.c 			DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3083 fs/jfs/jfs_dtree.c 				DT_PUTPAGE(mp);
mp               3114 fs/jfs/jfs_dtree.c 			DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               3160 fs/jfs/jfs_dtree.c 		DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               3171 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               3289 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               3311 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3335 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               3349 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, bn, mp, psize, p, rc);
mp               3361 fs/jfs/jfs_dtree.c 			btsp->mp = mp;
mp               3370 fs/jfs/jfs_dtree.c 			DT_PUTPAGE(mp);
mp               3387 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               3412 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               3427 fs/jfs/jfs_dtree.c 	DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
mp               3465 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp               3480 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp               3486 fs/jfs/jfs_dtree.c 	DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3498 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               3507 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3521 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp               3527 fs/jfs/jfs_dtree.c 	DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3539 fs/jfs/jfs_dtree.c 		DT_PUTPAGE(mp);
mp               3548 fs/jfs/jfs_dtree.c 		DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3562 fs/jfs/jfs_dtree.c 	btsp->mp = mp;
mp               3908 fs/jfs/jfs_dtree.c 	struct metapage *mp = NULL;
mp               4024 fs/jfs/jfs_dtree.c 			mp = NULL;
mp               4029 fs/jfs/jfs_dtree.c 					     &mp, &lblock);
mp               4031 fs/jfs/jfs_dtree.c 			if (mp)
mp               4032 fs/jfs/jfs_dtree.c 				release_metapage(mp);
mp               4512 fs/jfs/jfs_dtree.c 	struct metapage *mp;
mp               4532 fs/jfs/jfs_dtree.c 	DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               4534 fs/jfs/jfs_dtree.c 	BT_MARK_DIRTY(mp, ip);
mp               4538 fs/jfs/jfs_dtree.c 	tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
mp               4559 fs/jfs/jfs_dtree.c 	DT_PUTPAGE(mp);
mp                 97 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp                113 fs/jfs/jfs_imap.c 	mp = read_metapage(ipimap,
mp                116 fs/jfs/jfs_imap.c 	if (mp == NULL) {
mp                122 fs/jfs/jfs_imap.c 	dinom_le = (struct dinomap_disk *) mp->data;
mp                141 fs/jfs/jfs_imap.c 	release_metapage(mp);
mp                210 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp                217 fs/jfs/jfs_imap.c 	mp = get_metapage(ipimap,
mp                220 fs/jfs/jfs_imap.c 	if (mp == NULL) {
mp                226 fs/jfs/jfs_imap.c 	dinom_le = (struct dinomap_disk *) mp->data;
mp                245 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp                298 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp                317 fs/jfs/jfs_imap.c 	rc = diIAGRead(imap, iagno, &mp);
mp                324 fs/jfs/jfs_imap.c 	iagp = (struct iag *) mp->data;
mp                332 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp                344 fs/jfs/jfs_imap.c 	release_metapage(mp);
mp                365 fs/jfs/jfs_imap.c 	mp = read_metapage(ipimap, pageno << sbi->l2nbperpage, PSIZE, 1);
mp                366 fs/jfs/jfs_imap.c 	if (!mp) {
mp                372 fs/jfs/jfs_imap.c 	dp = (struct dinode *) mp->data;
mp                384 fs/jfs/jfs_imap.c 	release_metapage(mp);
mp                422 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp                445 fs/jfs/jfs_imap.c 	mp = read_metapage(ip, address << sbi->l2nbperpage, PSIZE, 1);
mp                446 fs/jfs/jfs_imap.c 	if (mp == NULL) {
mp                453 fs/jfs/jfs_imap.c 	dp = (struct dinode *) (mp->data);
mp                462 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp                479 fs/jfs/jfs_imap.c 	release_metapage(mp);
mp                504 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp                516 fs/jfs/jfs_imap.c 	mp = read_metapage(ip, address << sbi->l2nbperpage, PSIZE, 1);
mp                517 fs/jfs/jfs_imap.c 	if (mp == NULL) {
mp                523 fs/jfs/jfs_imap.c 	dp = (struct dinode *) (mp->data);
mp                534 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp                589 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp                637 fs/jfs/jfs_imap.c 	mp = read_metapage(ipimap, pageno << sbi->l2nbperpage, PSIZE, 1);
mp                638 fs/jfs/jfs_imap.c 	if (!mp)
mp                642 fs/jfs/jfs_imap.c 	dp = (struct dinode *) mp->data;
mp                652 fs/jfs/jfs_imap.c 	     txLock(tid, ipimap, mp, tlckINODE | tlckENTRY)) == NULL)
mp                681 fs/jfs/jfs_imap.c 		tlck->mp = mp;
mp                710 fs/jfs/jfs_imap.c 	tlck->mp = mp;
mp                799 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp                848 fs/jfs/jfs_imap.c 	struct metapage *mp, *amp, *bmp, *cmp, *dmp;
mp                896 fs/jfs/jfs_imap.c 	if ((rc = diIAGRead(imap, iagno, &mp))) {
mp                901 fs/jfs/jfs_imap.c 	iagp = (struct iag *) mp->data;
mp                916 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp                928 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp                960 fs/jfs/jfs_imap.c 					release_metapage(mp);
mp               1010 fs/jfs/jfs_imap.c 		write_metapage(mp);
mp               1239 fs/jfs/jfs_imap.c 	tlck = txLock(tid, ipimap, mp, tlckINODE | tlckFREE);
mp               1245 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp               1284 fs/jfs/jfs_imap.c 	release_metapage(mp);
mp               1327 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp               1387 fs/jfs/jfs_imap.c 	if ((rc = diIAGRead(imap, iagno, &mp))) {
mp               1392 fs/jfs/jfs_imap.c 	iagp = (struct iag *) mp->data;
mp               1435 fs/jfs/jfs_imap.c 					mark_metapage_dirty(mp);
mp               1437 fs/jfs/jfs_imap.c 				release_metapage(mp);
mp               1496 fs/jfs/jfs_imap.c 					release_metapage(mp);
mp               1518 fs/jfs/jfs_imap.c 					mark_metapage_dirty(mp);
mp               1520 fs/jfs/jfs_imap.c 				release_metapage(mp);
mp               1558 fs/jfs/jfs_imap.c 					mark_metapage_dirty(mp);
mp               1560 fs/jfs/jfs_imap.c 				release_metapage(mp);
mp               1579 fs/jfs/jfs_imap.c 	release_metapage(mp);
mp               1766 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp               1779 fs/jfs/jfs_imap.c 	if ((rc = diIAGRead(imap, iagno, &mp))) {
mp               1783 fs/jfs/jfs_imap.c 	iagp = (struct iag *) mp->data;
mp               1790 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp               1801 fs/jfs/jfs_imap.c 			release_metapage(mp);
mp               1817 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp               1828 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp               1842 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp               1849 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp               1890 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp               1900 fs/jfs/jfs_imap.c 		if ((rc = diNewIAG(imap, &iagno, agno, &mp))) {
mp               1903 fs/jfs/jfs_imap.c 		iagp = (struct iag *) mp->data;
mp               1913 fs/jfs/jfs_imap.c 		if ((rc = diIAGRead(imap, iagno, &mp))) {
mp               1918 fs/jfs/jfs_imap.c 		iagp = (struct iag *) mp->data;
mp               1925 fs/jfs/jfs_imap.c 			release_metapage(mp);
mp               1938 fs/jfs/jfs_imap.c 		release_metapage(mp);
mp               1960 fs/jfs/jfs_imap.c 		write_metapage(mp);
mp               1968 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp               2439 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp               2537 fs/jfs/jfs_imap.c 		mp = get_metapage(ipimap, blkno, PSIZE, 0);
mp               2538 fs/jfs/jfs_imap.c 		if (!mp) {
mp               2556 fs/jfs/jfs_imap.c 		iagp = (struct iag *) mp->data;
mp               2576 fs/jfs/jfs_imap.c 		flush_metapage(mp);
mp               2612 fs/jfs/jfs_imap.c 	if ((rc = diIAGRead(imap, iagno, &mp))) {
mp               2617 fs/jfs/jfs_imap.c 	iagp = (struct iag *) mp->data;
mp               2625 fs/jfs/jfs_imap.c 	*mpp = mp;
mp               2722 fs/jfs/jfs_imap.c 	struct metapage *mp;
mp               2740 fs/jfs/jfs_imap.c 	rc = diIAGRead(imap, iagno, &mp);
mp               2744 fs/jfs/jfs_imap.c 	metapage_wait_for_io(mp);
mp               2745 fs/jfs/jfs_imap.c 	iagp = (struct iag *) mp->data;
mp               2783 fs/jfs/jfs_imap.c 			release_metapage(mp);
mp               2789 fs/jfs/jfs_imap.c 			release_metapage(mp);
mp               2803 fs/jfs/jfs_imap.c 	if (mp->lsn != 0) {
mp               2806 fs/jfs/jfs_imap.c 		logdiff(diffp, mp->lsn, log);
mp               2808 fs/jfs/jfs_imap.c 			mp->lsn = lsn;
mp               2810 fs/jfs/jfs_imap.c 			list_move(&mp->synclist, &tblk->synclist);
mp               2813 fs/jfs/jfs_imap.c 		assert(mp->clsn);
mp               2815 fs/jfs/jfs_imap.c 		logdiff(diffp, mp->clsn, log);
mp               2817 fs/jfs/jfs_imap.c 			mp->clsn = tblk->clsn;
mp               2819 fs/jfs/jfs_imap.c 		mp->log = log;
mp               2820 fs/jfs/jfs_imap.c 		mp->lsn = lsn;
mp               2823 fs/jfs/jfs_imap.c 		list_add(&mp->synclist, &tblk->synclist);
mp               2824 fs/jfs/jfs_imap.c 		mp->clsn = tblk->clsn;
mp               2827 fs/jfs/jfs_imap.c 	write_metapage(mp);
mp               2844 fs/jfs/jfs_imap.c 	struct bmap *mp = JFS_SBI(ipbmap->i_sb)->bmap;
mp               2894 fs/jfs/jfs_imap.c 		n = agstart >> mp->db_agl2size;
mp               2895 fs/jfs/jfs_imap.c 		iagp->agstart = cpu_to_le64((s64)n << mp->db_agl2size);
mp                230 fs/jfs/jfs_logmgr.c 	struct metapage *mp = NULL;
mp                244 fs/jfs/jfs_logmgr.c 	    tlck->type & tlckBTROOT || (mp = tlck->mp) == NULL)
mp                257 fs/jfs/jfs_logmgr.c 	if (mp->lsn == 0) {
mp                258 fs/jfs/jfs_logmgr.c 		mp->log = log;
mp                259 fs/jfs/jfs_logmgr.c 		mp->lsn = lsn;
mp                263 fs/jfs/jfs_logmgr.c 		list_add_tail(&mp->synclist, &log->synclist);
mp                286 fs/jfs/jfs_logmgr.c 		tblk->lsn = mp->lsn;
mp                290 fs/jfs/jfs_logmgr.c 		list_add(&tblk->synclist, &mp->synclist);
mp                297 fs/jfs/jfs_logmgr.c 		logdiff(diffp, mp->lsn, log);
mp                301 fs/jfs/jfs_logmgr.c 			tblk->lsn = mp->lsn;
mp                304 fs/jfs/jfs_logmgr.c 			list_move(&tblk->synclist, &mp->synclist);
mp                380 fs/jfs/jfs_logmgr.c 		p = (caddr_t) (tlck->mp->data);
mp               1604 fs/jfs/jfs_logmgr.c 				struct metapage *mp = (struct metapage *)lp;
mp               1607 fs/jfs/jfs_logmgr.c 					       mp, sizeof(struct metapage), 0);
mp               1610 fs/jfs/jfs_logmgr.c 					       sizeof(long), mp->page,
mp                 31 fs/jfs/jfs_metapage.c #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag)
mp                 32 fs/jfs/jfs_metapage.c #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag)
mp                 34 fs/jfs/jfs_metapage.c static inline void unlock_metapage(struct metapage *mp)
mp                 36 fs/jfs/jfs_metapage.c 	clear_bit_unlock(META_locked, &mp->flag);
mp                 37 fs/jfs/jfs_metapage.c 	wake_up(&mp->wait);
mp                 40 fs/jfs/jfs_metapage.c static inline void __lock_metapage(struct metapage *mp)
mp                 44 fs/jfs/jfs_metapage.c 	add_wait_queue_exclusive(&mp->wait, &wait);
mp                 47 fs/jfs/jfs_metapage.c 		if (metapage_locked(mp)) {
mp                 48 fs/jfs/jfs_metapage.c 			unlock_page(mp->page);
mp                 50 fs/jfs/jfs_metapage.c 			lock_page(mp->page);
mp                 52 fs/jfs/jfs_metapage.c 	} while (trylock_metapage(mp));
mp                 54 fs/jfs/jfs_metapage.c 	remove_wait_queue(&mp->wait, &wait);
mp                 60 fs/jfs/jfs_metapage.c static inline void lock_metapage(struct metapage *mp)
mp                 62 fs/jfs/jfs_metapage.c 	if (trylock_metapage(mp))
mp                 63 fs/jfs/jfs_metapage.c 		__lock_metapage(mp);
mp                 77 fs/jfs/jfs_metapage.c 	struct metapage *mp[MPS_PER_PAGE];
mp                 85 fs/jfs/jfs_metapage.c 	return mp_anchor(page)->mp[offset >> L2PSIZE];
mp                 88 fs/jfs/jfs_metapage.c static inline int insert_metapage(struct page *page, struct metapage *mp)
mp                105 fs/jfs/jfs_metapage.c 	if (mp) {
mp                107 fs/jfs/jfs_metapage.c 		index = (mp->index >> l2mp_blocks) & (MPS_PER_PAGE - 1);
mp                109 fs/jfs/jfs_metapage.c 		a->mp[index] = mp;
mp                115 fs/jfs/jfs_metapage.c static inline void remove_metapage(struct page *page, struct metapage *mp)
mp                121 fs/jfs/jfs_metapage.c 	index = (mp->index >> l2mp_blocks) & (MPS_PER_PAGE - 1);
mp                123 fs/jfs/jfs_metapage.c 	BUG_ON(a->mp[index] != mp);
mp                125 fs/jfs/jfs_metapage.c 	a->mp[index] = NULL;
mp                151 fs/jfs/jfs_metapage.c static inline int insert_metapage(struct page *page, struct metapage *mp)
mp                153 fs/jfs/jfs_metapage.c 	if (mp) {
mp                154 fs/jfs/jfs_metapage.c 		set_page_private(page, (unsigned long)mp);
mp                161 fs/jfs/jfs_metapage.c static inline void remove_metapage(struct page *page, struct metapage *mp)
mp                175 fs/jfs/jfs_metapage.c 	struct metapage *mp = mempool_alloc(metapage_mempool, gfp_mask);
mp                177 fs/jfs/jfs_metapage.c 	if (mp) {
mp                178 fs/jfs/jfs_metapage.c 		mp->lid = 0;
mp                179 fs/jfs/jfs_metapage.c 		mp->lsn = 0;
mp                180 fs/jfs/jfs_metapage.c 		mp->data = NULL;
mp                181 fs/jfs/jfs_metapage.c 		mp->clsn = 0;
mp                182 fs/jfs/jfs_metapage.c 		mp->log = NULL;
mp                183 fs/jfs/jfs_metapage.c 		init_waitqueue_head(&mp->wait);
mp                185 fs/jfs/jfs_metapage.c 	return mp;
mp                188 fs/jfs/jfs_metapage.c static inline void free_metapage(struct metapage *mp)
mp                190 fs/jfs/jfs_metapage.c 	mempool_free(mp, metapage_mempool);
mp                220 fs/jfs/jfs_metapage.c static inline void drop_metapage(struct page *page, struct metapage *mp)
mp                222 fs/jfs/jfs_metapage.c 	if (mp->count || mp->nohomeok || test_bit(META_dirty, &mp->flag) ||
mp                223 fs/jfs/jfs_metapage.c 	    test_bit(META_io, &mp->flag))
mp                225 fs/jfs/jfs_metapage.c 	remove_metapage(page, mp);
mp                227 fs/jfs/jfs_metapage.c 	free_metapage(mp);
mp                279 fs/jfs/jfs_metapage.c static void remove_from_logsync(struct metapage *mp)
mp                281 fs/jfs/jfs_metapage.c 	struct jfs_log *log = mp->log;
mp                291 fs/jfs/jfs_metapage.c 	if (mp->lsn) {
mp                292 fs/jfs/jfs_metapage.c 		mp->log = NULL;
mp                293 fs/jfs/jfs_metapage.c 		mp->lsn = 0;
mp                294 fs/jfs/jfs_metapage.c 		mp->clsn = 0;
mp                296 fs/jfs/jfs_metapage.c 		list_del(&mp->synclist);
mp                303 fs/jfs/jfs_metapage.c 	struct metapage *mp;
mp                307 fs/jfs/jfs_metapage.c 		mp = page_to_mp(page, offset);
mp                308 fs/jfs/jfs_metapage.c 		if (mp && test_bit(META_io, &mp->flag)) {
mp                309 fs/jfs/jfs_metapage.c 			if (mp->lsn)
mp                310 fs/jfs/jfs_metapage.c 				remove_from_logsync(mp);
mp                311 fs/jfs/jfs_metapage.c 			clear_bit(META_io, &mp->flag);
mp                343 fs/jfs/jfs_metapage.c 	struct metapage *mp;
mp                362 fs/jfs/jfs_metapage.c 		mp = page_to_mp(page, offset);
mp                364 fs/jfs/jfs_metapage.c 		if (!mp || !test_bit(META_dirty, &mp->flag))
mp                367 fs/jfs/jfs_metapage.c 		if (mp->nohomeok && !test_bit(META_forcewrite, &mp->flag)) {
mp                373 fs/jfs/jfs_metapage.c 			if (mp->log && !(mp->log->cflag & logGC_PAGEOUT))
mp                374 fs/jfs/jfs_metapage.c 				jfs_flush_journal(mp->log, 0);
mp                378 fs/jfs/jfs_metapage.c 		clear_bit(META_dirty, &mp->flag);
mp                379 fs/jfs/jfs_metapage.c 		set_bit(META_io, &mp->flag);
mp                530 fs/jfs/jfs_metapage.c 	struct metapage *mp;
mp                535 fs/jfs/jfs_metapage.c 		mp = page_to_mp(page, offset);
mp                537 fs/jfs/jfs_metapage.c 		if (!mp)
mp                540 fs/jfs/jfs_metapage.c 		jfs_info("metapage_releasepage: mp = 0x%p", mp);
mp                541 fs/jfs/jfs_metapage.c 		if (mp->count || mp->nohomeok ||
mp                542 fs/jfs/jfs_metapage.c 		    test_bit(META_dirty, &mp->flag)) {
mp                543 fs/jfs/jfs_metapage.c 			jfs_info("count = %ld, nohomeok = %d", mp->count,
mp                544 fs/jfs/jfs_metapage.c 				 mp->nohomeok);
mp                548 fs/jfs/jfs_metapage.c 		if (mp->lsn)
mp                549 fs/jfs/jfs_metapage.c 			remove_from_logsync(mp);
mp                550 fs/jfs/jfs_metapage.c 		remove_metapage(page, mp);
mp                552 fs/jfs/jfs_metapage.c 		free_metapage(mp);
mp                582 fs/jfs/jfs_metapage.c 	struct metapage *mp = NULL;
mp                629 fs/jfs/jfs_metapage.c 	mp = page_to_mp(page, page_offset);
mp                630 fs/jfs/jfs_metapage.c 	if (mp) {
mp                631 fs/jfs/jfs_metapage.c 		if (mp->logical_size != size) {
mp                635 fs/jfs/jfs_metapage.c 				mp->logical_size, size);
mp                639 fs/jfs/jfs_metapage.c 		mp->count++;
mp                640 fs/jfs/jfs_metapage.c 		lock_metapage(mp);
mp                641 fs/jfs/jfs_metapage.c 		if (test_bit(META_discard, &mp->flag)) {
mp                645 fs/jfs/jfs_metapage.c 				discard_metapage(mp);
mp                648 fs/jfs/jfs_metapage.c 			clear_bit(META_discard, &mp->flag);
mp                652 fs/jfs/jfs_metapage.c 		mp = alloc_metapage(GFP_NOFS);
mp                653 fs/jfs/jfs_metapage.c 		if (!mp)
mp                655 fs/jfs/jfs_metapage.c 		mp->page = page;
mp                656 fs/jfs/jfs_metapage.c 		mp->sb = inode->i_sb;
mp                657 fs/jfs/jfs_metapage.c 		mp->flag = 0;
mp                658 fs/jfs/jfs_metapage.c 		mp->xflag = COMMIT_PAGE;
mp                659 fs/jfs/jfs_metapage.c 		mp->count = 1;
mp                660 fs/jfs/jfs_metapage.c 		mp->nohomeok = 0;
mp                661 fs/jfs/jfs_metapage.c 		mp->logical_size = size;
mp                662 fs/jfs/jfs_metapage.c 		mp->data = page_address(page) + page_offset;
mp                663 fs/jfs/jfs_metapage.c 		mp->index = lblock;
mp                664 fs/jfs/jfs_metapage.c 		if (unlikely(insert_metapage(page, mp))) {
mp                665 fs/jfs/jfs_metapage.c 			free_metapage(mp);
mp                668 fs/jfs/jfs_metapage.c 		lock_metapage(mp);
mp                672 fs/jfs/jfs_metapage.c 		jfs_info("zeroing mp = 0x%p", mp);
mp                673 fs/jfs/jfs_metapage.c 		memset(mp->data, 0, PSIZE);
mp                677 fs/jfs/jfs_metapage.c 	jfs_info("__get_metapage: returning = 0x%p data = 0x%p", mp, mp->data);
mp                678 fs/jfs/jfs_metapage.c 	return mp;
mp                685 fs/jfs/jfs_metapage.c void grab_metapage(struct metapage * mp)
mp                687 fs/jfs/jfs_metapage.c 	jfs_info("grab_metapage: mp = 0x%p", mp);
mp                688 fs/jfs/jfs_metapage.c 	get_page(mp->page);
mp                689 fs/jfs/jfs_metapage.c 	lock_page(mp->page);
mp                690 fs/jfs/jfs_metapage.c 	mp->count++;
mp                691 fs/jfs/jfs_metapage.c 	lock_metapage(mp);
mp                692 fs/jfs/jfs_metapage.c 	unlock_page(mp->page);
mp                695 fs/jfs/jfs_metapage.c void force_metapage(struct metapage *mp)
mp                697 fs/jfs/jfs_metapage.c 	struct page *page = mp->page;
mp                698 fs/jfs/jfs_metapage.c 	jfs_info("force_metapage: mp = 0x%p", mp);
mp                699 fs/jfs/jfs_metapage.c 	set_bit(META_forcewrite, &mp->flag);
mp                700 fs/jfs/jfs_metapage.c 	clear_bit(META_sync, &mp->flag);
mp                705 fs/jfs/jfs_metapage.c 		jfs_error(mp->sb, "write_one_page() failed\n");
mp                706 fs/jfs/jfs_metapage.c 	clear_bit(META_forcewrite, &mp->flag);
mp                710 fs/jfs/jfs_metapage.c void hold_metapage(struct metapage *mp)
mp                712 fs/jfs/jfs_metapage.c 	lock_page(mp->page);
mp                715 fs/jfs/jfs_metapage.c void put_metapage(struct metapage *mp)
mp                717 fs/jfs/jfs_metapage.c 	if (mp->count || mp->nohomeok) {
mp                719 fs/jfs/jfs_metapage.c 		unlock_page(mp->page);
mp                722 fs/jfs/jfs_metapage.c 	get_page(mp->page);
mp                723 fs/jfs/jfs_metapage.c 	mp->count++;
mp                724 fs/jfs/jfs_metapage.c 	lock_metapage(mp);
mp                725 fs/jfs/jfs_metapage.c 	unlock_page(mp->page);
mp                726 fs/jfs/jfs_metapage.c 	release_metapage(mp);
mp                729 fs/jfs/jfs_metapage.c void release_metapage(struct metapage * mp)
mp                731 fs/jfs/jfs_metapage.c 	struct page *page = mp->page;
mp                732 fs/jfs/jfs_metapage.c 	jfs_info("release_metapage: mp = 0x%p, flag = 0x%lx", mp, mp->flag);
mp                737 fs/jfs/jfs_metapage.c 	unlock_metapage(mp);
mp                739 fs/jfs/jfs_metapage.c 	assert(mp->count);
mp                740 fs/jfs/jfs_metapage.c 	if (--mp->count || mp->nohomeok) {
mp                746 fs/jfs/jfs_metapage.c 	if (test_bit(META_dirty, &mp->flag)) {
mp                748 fs/jfs/jfs_metapage.c 		if (test_bit(META_sync, &mp->flag)) {
mp                749 fs/jfs/jfs_metapage.c 			clear_bit(META_sync, &mp->flag);
mp                751 fs/jfs/jfs_metapage.c 				jfs_error(mp->sb, "write_one_page() failed\n");
mp                754 fs/jfs/jfs_metapage.c 	} else if (mp->lsn)	/* discard_metapage doesn't remove it */
mp                755 fs/jfs/jfs_metapage.c 		remove_from_logsync(mp);
mp                758 fs/jfs/jfs_metapage.c 	drop_metapage(page, mp);
mp                772 fs/jfs/jfs_metapage.c 	struct metapage *mp;
mp                786 fs/jfs/jfs_metapage.c 			mp = page_to_mp(page, offset);
mp                787 fs/jfs/jfs_metapage.c 			if (!mp)
mp                789 fs/jfs/jfs_metapage.c 			if (mp->index < addr)
mp                791 fs/jfs/jfs_metapage.c 			if (mp->index >= addr + len)
mp                794 fs/jfs/jfs_metapage.c 			clear_bit(META_dirty, &mp->flag);
mp                795 fs/jfs/jfs_metapage.c 			set_bit(META_discard, &mp->flag);
mp                796 fs/jfs/jfs_metapage.c 			if (mp->lsn)
mp                797 fs/jfs/jfs_metapage.c 				remove_from_logsync(mp);
mp                 45 fs/jfs/jfs_metapage.h #define mark_metapage_dirty(mp) set_bit(META_dirty, &(mp)->flag)
mp                 72 fs/jfs/jfs_metapage.h static inline void write_metapage(struct metapage *mp)
mp                 74 fs/jfs/jfs_metapage.h 	set_bit(META_dirty, &mp->flag);
mp                 75 fs/jfs/jfs_metapage.h 	release_metapage(mp);
mp                 78 fs/jfs/jfs_metapage.h static inline void flush_metapage(struct metapage *mp)
mp                 80 fs/jfs/jfs_metapage.h 	set_bit(META_sync, &mp->flag);
mp                 81 fs/jfs/jfs_metapage.h 	write_metapage(mp);
mp                 84 fs/jfs/jfs_metapage.h static inline void discard_metapage(struct metapage *mp)
mp                 86 fs/jfs/jfs_metapage.h 	clear_bit(META_dirty, &mp->flag);
mp                 87 fs/jfs/jfs_metapage.h 	set_bit(META_discard, &mp->flag);
mp                 88 fs/jfs/jfs_metapage.h 	release_metapage(mp);
mp                 91 fs/jfs/jfs_metapage.h static inline void metapage_nohomeok(struct metapage *mp)
mp                 93 fs/jfs/jfs_metapage.h 	struct page *page = mp->page;
mp                 95 fs/jfs/jfs_metapage.h 	if (!mp->nohomeok++) {
mp                 96 fs/jfs/jfs_metapage.h 		mark_metapage_dirty(mp);
mp                107 fs/jfs/jfs_metapage.h static inline void metapage_wait_for_io(struct metapage *mp)
mp                109 fs/jfs/jfs_metapage.h 	if (test_bit(META_io, &mp->flag))
mp                110 fs/jfs/jfs_metapage.h 		wait_on_page_writeback(mp->page);
mp                116 fs/jfs/jfs_metapage.h static inline void _metapage_homeok(struct metapage *mp)
mp                118 fs/jfs/jfs_metapage.h 	if (!--mp->nohomeok)
mp                119 fs/jfs/jfs_metapage.h 		put_page(mp->page);
mp                122 fs/jfs/jfs_metapage.h static inline void metapage_homeok(struct metapage *mp)
mp                124 fs/jfs/jfs_metapage.h 	hold_metapage(mp);
mp                125 fs/jfs/jfs_metapage.h 	_metapage_homeok(mp);
mp                126 fs/jfs/jfs_metapage.h 	put_metapage(mp);
mp                168 fs/jfs/jfs_txnmgr.c static void LogSyncRelease(struct metapage * mp);
mp                577 fs/jfs/jfs_txnmgr.c struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp,
mp                593 fs/jfs/jfs_txnmgr.c 	    !(mp->xflag & COMMIT_PAGE)) {
mp                601 fs/jfs/jfs_txnmgr.c 		lid = mp->lid;
mp                607 fs/jfs/jfs_txnmgr.c 	jfs_info("txLock: tid:%d ip:0x%p mp:0x%p lid:%d", tid, ip, mp, lid);
mp                692 fs/jfs/jfs_txnmgr.c 	if (mp->xflag & COMMIT_PAGE) {
mp                697 fs/jfs/jfs_txnmgr.c 		metapage_nohomeok(mp);
mp                700 fs/jfs/jfs_txnmgr.c 			 mp, mp->nohomeok, tid, tlck);
mp                707 fs/jfs/jfs_txnmgr.c 		if ((tid == 0) && mp->lsn)
mp                721 fs/jfs/jfs_txnmgr.c 	tlck->mp = mp;
mp                725 fs/jfs/jfs_txnmgr.c 		mp->lid = lid;
mp                778 fs/jfs/jfs_txnmgr.c 			if (mp->xflag & COMMIT_PAGE)
mp                779 fs/jfs/jfs_txnmgr.c 				p = (xtpage_t *) mp->data;
mp                823 fs/jfs/jfs_txnmgr.c 			       mp, sizeof(*mp), 0);
mp                833 fs/jfs/jfs_txnmgr.c 	release_metapage(mp);
mp                841 fs/jfs/jfs_txnmgr.c 	if (xtid && (tlck->mp == mp) && (mp->lid == lid))
mp                865 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp                873 fs/jfs/jfs_txnmgr.c 		if ((mp = tlck->mp) != NULL &&
mp                875 fs/jfs/jfs_txnmgr.c 			assert(mp->xflag & COMMIT_PAGE);
mp                876 fs/jfs/jfs_txnmgr.c 			mp->lid = 0;
mp                900 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp                918 fs/jfs/jfs_txnmgr.c 		if ((mp = tlck->mp) != NULL &&
mp                920 fs/jfs/jfs_txnmgr.c 			assert(mp->xflag & COMMIT_PAGE);
mp                924 fs/jfs/jfs_txnmgr.c 			hold_metapage(mp);
mp                926 fs/jfs/jfs_txnmgr.c 			assert(mp->nohomeok > 0);
mp                927 fs/jfs/jfs_txnmgr.c 			_metapage_homeok(mp);
mp                931 fs/jfs/jfs_txnmgr.c 			if (mp->clsn) {
mp                933 fs/jfs/jfs_txnmgr.c 				logdiff(diffp, mp->clsn, log);
mp                935 fs/jfs/jfs_txnmgr.c 					mp->clsn = tblk->clsn;
mp                937 fs/jfs/jfs_txnmgr.c 				mp->clsn = tblk->clsn;
mp                942 fs/jfs/jfs_txnmgr.c 			put_metapage(mp);
mp               1008 fs/jfs/jfs_txnmgr.c 	tlck->mp = NULL;
mp               1429 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp               1433 fs/jfs/jfs_txnmgr.c 	mp = tlck->mp;
mp               1447 fs/jfs/jfs_txnmgr.c 		PXDaddress(pxd, mp->index);
mp               1449 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
mp               1541 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp               1544 fs/jfs/jfs_txnmgr.c 	mp = tlck->mp;
mp               1560 fs/jfs/jfs_txnmgr.c 		mp->lid = 0;
mp               1561 fs/jfs/jfs_txnmgr.c 		grab_metapage(mp);
mp               1562 fs/jfs/jfs_txnmgr.c 		metapage_homeok(mp);
mp               1563 fs/jfs/jfs_txnmgr.c 		discard_metapage(mp);
mp               1564 fs/jfs/jfs_txnmgr.c 		tlck->mp = NULL;
mp               1568 fs/jfs/jfs_txnmgr.c 	PXDaddress(pxd, mp->index);
mp               1569 fs/jfs/jfs_txnmgr.c 	PXDlength(pxd, mp->logical_size >> tblk->sb->s_blocksize_bits);
mp               1587 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp               1591 fs/jfs/jfs_txnmgr.c 	mp = tlck->mp;
mp               1618 fs/jfs/jfs_txnmgr.c 		PXDaddress(pxd, mp->index);
mp               1620 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
mp               1647 fs/jfs/jfs_txnmgr.c 		PXDaddress(pxd, mp->index);
mp               1649 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
mp               1691 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp               1701 fs/jfs/jfs_txnmgr.c 	mp = tlck->mp;
mp               1716 fs/jfs/jfs_txnmgr.c 		p = (xtpage_t *) mp->data;
mp               1737 fs/jfs/jfs_txnmgr.c 		PXDaddress(page_pxd, mp->index);
mp               1739 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
mp               1789 fs/jfs/jfs_txnmgr.c 			 tlck->ip, mp, tlck, lwm, xadlock->count);
mp               1826 fs/jfs/jfs_txnmgr.c 			PXDaddress(page_pxd, mp->index);
mp               1828 fs/jfs/jfs_txnmgr.c 				  mp->logical_size >> tblk->sb->
mp               1892 fs/jfs/jfs_txnmgr.c 			 tlck->ip, mp, xadlock->count);
mp               1947 fs/jfs/jfs_txnmgr.c 		PXDaddress(page_pxd, mp->index);
mp               1949 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
mp               2015 fs/jfs/jfs_txnmgr.c 				 tlck->ip, mp, xadlock->count, lwm, next);
mp               2036 fs/jfs/jfs_txnmgr.c 				 ip, mp, pxdlock->count, hwm);
mp               2055 fs/jfs/jfs_txnmgr.c 				 tlck->ip, mp, xadlock->count, next, hwm);
mp               2213 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp               2239 fs/jfs/jfs_txnmgr.c 		if ((mp = tlck->mp) != NULL &&
mp               2241 fs/jfs/jfs_txnmgr.c 			assert(mp->xflag & COMMIT_PAGE);
mp               2247 fs/jfs/jfs_txnmgr.c 				force_metapage(mp);
mp               2260 fs/jfs/jfs_txnmgr.c 				assert(mp->nohomeok);
mp               2261 fs/jfs/jfs_txnmgr.c 				set_bit(META_dirty, &mp->flag);
mp               2262 fs/jfs/jfs_txnmgr.c 				set_bit(META_sync, &mp->flag);
mp               2287 fs/jfs/jfs_txnmgr.c 	struct metapage *mp = NULL;
mp               2320 fs/jfs/jfs_txnmgr.c 			mp = tlck->mp;
mp               2321 fs/jfs/jfs_txnmgr.c 			ASSERT(mp->xflag & COMMIT_PAGE);
mp               2322 fs/jfs/jfs_txnmgr.c 			grab_metapage(mp);
mp               2369 fs/jfs/jfs_txnmgr.c 				ASSERT(mp->lid == lid);
mp               2370 fs/jfs/jfs_txnmgr.c 				tlck->mp->lid = 0;
mp               2372 fs/jfs/jfs_txnmgr.c 			assert(mp->nohomeok == 1);
mp               2373 fs/jfs/jfs_txnmgr.c 			metapage_homeok(mp);
mp               2374 fs/jfs/jfs_txnmgr.c 			discard_metapage(mp);
mp               2375 fs/jfs/jfs_txnmgr.c 			tlck->mp = NULL;
mp               2628 fs/jfs/jfs_txnmgr.c 	struct metapage *mp;
mp               2638 fs/jfs/jfs_txnmgr.c 		mp = tlck->mp;
mp               2641 fs/jfs/jfs_txnmgr.c 		if (mp) {
mp               2642 fs/jfs/jfs_txnmgr.c 			mp->lid = 0;
mp               2652 fs/jfs/jfs_txnmgr.c 			if (mp->xflag & COMMIT_PAGE && mp->lsn)
mp               2653 fs/jfs/jfs_txnmgr.c 				LogSyncRelease(mp);
mp               2823 fs/jfs/jfs_txnmgr.c static void LogSyncRelease(struct metapage * mp)
mp               2825 fs/jfs/jfs_txnmgr.c 	struct jfs_log *log = mp->log;
mp               2827 fs/jfs/jfs_txnmgr.c 	assert(mp->nohomeok);
mp               2829 fs/jfs/jfs_txnmgr.c 	metapage_homeok(mp);
mp                 91 fs/jfs/jfs_txnmgr.h 	struct metapage *mp;	/* 4/8: object page buffer locked */
mp                 79 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp                140 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp                175 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp                203 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp                233 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* page buffer */
mp                266 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp                349 fs/jfs/jfs_xtree.c 			btsp->mp = mp;
mp                396 fs/jfs/jfs_xtree.c 					btsp->mp = mp;
mp                454 fs/jfs/jfs_xtree.c 			btsp->mp = mp;
mp                491 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp                500 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp                530 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* meta-page buffer */
mp                556 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp                597 fs/jfs/jfs_xtree.c 		split.mp = mp;
mp                625 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp                641 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW);
mp                654 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp                698 fs/jfs/jfs_xtree.c 	smp = split->mp;
mp                842 fs/jfs/jfs_xtree.c 			split->mp = smp;
mp                954 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp                965 fs/jfs/jfs_xtree.c 	smp = split->mp;
mp               1076 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, nextbn, mp, PSIZE, p, rc);
mp               1082 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               1089 fs/jfs/jfs_xtree.c 			tlck = txLock(tid, ip, mp, tlckXTREE | tlckRELINK);
mp               1097 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1312 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(split->mp, ip);
mp               1324 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, split->mp, tlckXTREE | tlckGROW);
mp               1354 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* meta-page buffer */
mp               1372 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               1375 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1383 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1393 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp               1395 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW);
mp               1420 fs/jfs/jfs_xtree.c 		split.mp = mp;
mp               1431 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               1444 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               1447 fs/jfs/jfs_xtree.c 			XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               1451 fs/jfs/jfs_xtree.c 			BT_MARK_DIRTY(mp, ip);
mp               1453 fs/jfs/jfs_xtree.c 				tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW);
mp               1491 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               1517 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* meta-page buffer */
mp               1539 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               1542 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1550 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1555 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp               1560 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW);
mp               1585 fs/jfs/jfs_xtree.c 		split.mp = mp;
mp               1596 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               1609 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               1612 fs/jfs/jfs_xtree.c 			XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               1616 fs/jfs/jfs_xtree.c 			BT_MARK_DIRTY(mp, ip);
mp               1618 fs/jfs/jfs_xtree.c 				tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW);
mp               1673 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               1696 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* meta-page buffer */
mp               1720 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index0);
mp               1723 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1728 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp               1733 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW);
mp               1746 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1896 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               1918 fs/jfs/jfs_xtree.c 		split.mp = mp;
mp               1929 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               1942 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               1945 fs/jfs/jfs_xtree.c 			XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               1949 fs/jfs/jfs_xtree.c 			BT_MARK_DIRTY(mp, ip);
mp               1951 fs/jfs/jfs_xtree.c 				tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW);
mp               2003 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               2006 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               2010 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               2012 fs/jfs/jfs_xtree.c 			tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW);
mp               2028 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               2034 fs/jfs/jfs_xtree.c 		XT_GETSEARCH(ip, btstack.top, bn, mp, p, index0);
mp               2037 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               2043 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               2071 fs/jfs/jfs_xtree.c 		split.mp = mp;
mp               2082 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               2096 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               2099 fs/jfs/jfs_xtree.c 			XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               2103 fs/jfs/jfs_xtree.c 			BT_MARK_DIRTY(mp, ip);
mp               2105 fs/jfs/jfs_xtree.c 				tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW);
mp               2133 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               2163 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* meta-page buffer */
mp               2195 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               2251 fs/jfs/jfs_xtree.c 	split.mp = mp;
mp               2278 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp               2284 fs/jfs/jfs_xtree.c 	tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW);
mp               2304 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               2332 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp               2344 fs/jfs/jfs_xtree.c 	XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               2347 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               2361 fs/jfs/jfs_xtree.c 		return (xtDeleteUp(tid, ip, mp, p, &btstack));
mp               2363 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp               2369 fs/jfs/jfs_xtree.c 	tlck = txLock(tid, ip, mp, tlckXTREE);
mp               2379 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               2401 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp               2450 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc);
mp               2486 fs/jfs/jfs_xtree.c 				discard_metapage(mp);
mp               2497 fs/jfs/jfs_xtree.c 			BT_MARK_DIRTY(mp, ip);
mp               2503 fs/jfs/jfs_xtree.c 			tlck = txLock(tid, ip, mp, tlckXTREE);
mp               2524 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               2554 fs/jfs/jfs_xtree.c 	struct metapage *mp, *pmp, *lmp, *rmp;	/* meta-page buffer */
mp               2706 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, oxaddr, mp, PSIZE, p, rc);
mp               2721 fs/jfs/jfs_xtree.c 				XT_PUTPAGE(mp);
mp               2732 fs/jfs/jfs_xtree.c 				XT_PUTPAGE(mp);
mp               2779 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               2781 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckNEW);
mp               2794 fs/jfs/jfs_xtree.c 		bmSetXD(mp, nxaddr, xsize);
mp               2797 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               2886 fs/jfs/jfs_xtree.c 	struct metapage *mp;	/* meta-page buffer */
mp               2916 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               2920 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               2947 fs/jfs/jfs_xtree.c 					btsp->mp = mp;
mp               2980 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3001 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp               3010 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, nextbn, mp, PSIZE, p, rc);
mp               3019 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               3020 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckRELINK);
mp               3026 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3031 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, prevbn, mp, PSIZE, p, rc);
mp               3040 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               3041 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE | tlckRELINK);
mp               3047 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3153 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp               3232 fs/jfs/jfs_xtree.c 	XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3251 fs/jfs/jfs_xtree.c 			tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW);
mp               3252 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               3269 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3280 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               3284 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE);
mp               3289 fs/jfs/jfs_xtree.c 	BT_MARK_DIRTY(mp, ip);
mp               3404 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3436 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);	/* debug */
mp               3442 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               3445 fs/jfs/jfs_xtree.c 			if (mp->lid)
mp               3446 fs/jfs/jfs_xtree.c 				lid_to_tlock(mp->lid)->flag |= tlckFREELOCK;
mp               3449 fs/jfs/jfs_xtree.c 			discard_metapage(mp);
mp               3470 fs/jfs/jfs_xtree.c 	XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3487 fs/jfs/jfs_xtree.c 				tlck = txLock(tid, ip, mp, tlckXTREE);
mp               3506 fs/jfs/jfs_xtree.c 			BT_MARK_DIRTY(mp, ip);
mp               3510 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3532 fs/jfs/jfs_xtree.c 	if (log && mp->lid && (tblk->last != mp->lid) &&
mp               3533 fs/jfs/jfs_xtree.c 	    lid_to_tlock(mp->lid)->tid) {
mp               3534 fs/jfs/jfs_xtree.c 		lid_t lid = mp->lid;
mp               3563 fs/jfs/jfs_xtree.c 			tlck = txLock(tid, ip, mp, tlckXTREE);
mp               3578 fs/jfs/jfs_xtree.c 		BT_MARK_DIRTY(mp, ip);
mp               3594 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);	/* debug */
mp               3600 fs/jfs/jfs_xtree.c 				XT_PUTPAGE(mp);
mp               3603 fs/jfs/jfs_xtree.c 				if (mp->lid)
mp               3604 fs/jfs/jfs_xtree.c 					lid_to_tlock(mp->lid)->flag |=
mp               3608 fs/jfs/jfs_xtree.c 				discard_metapage(mp);
mp               3640 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3653 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               3712 fs/jfs/jfs_xtree.c 	struct metapage *mp;
mp               3736 fs/jfs/jfs_xtree.c 		XT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
mp               3739 fs/jfs/jfs_xtree.c 			XT_PUTPAGE(mp);
mp               3755 fs/jfs/jfs_xtree.c 		XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3778 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3781 fs/jfs/jfs_xtree.c 	tlck = txLock(tid, ip, mp, tlckXTREE);
mp               3787 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp               3800 fs/jfs/jfs_xtree.c 	XT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
mp               3814 fs/jfs/jfs_xtree.c 		tlck = txLock(tid, ip, mp, tlckXTREE);
mp               3819 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3840 fs/jfs/jfs_xtree.c 		XT_PUTPAGE(mp);
mp               3853 fs/jfs/jfs_xtree.c 	XT_PUTPAGE(mp);
mp                884 fs/jfs/namei.c 	struct metapage *mp;
mp                991 fs/jfs/namei.c 			mp = get_metapage(ip, xaddr, PSIZE, 1);
mp                993 fs/jfs/namei.c 			if (mp == NULL) {
mp                999 fs/jfs/namei.c 			memcpy(mp->data, name, copy_size);
mp               1000 fs/jfs/namei.c 			flush_metapage(mp);
mp                 63 fs/jfs/xattr.c 	struct metapage *mp;	/* metapage containing ea list */
mp                213 fs/jfs/xattr.c 	struct metapage *mp;
mp                256 fs/jfs/xattr.c 		if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) {
mp                261 fs/jfs/xattr.c 		memcpy(mp->data, cp, nb);
mp                270 fs/jfs/xattr.c 		if ((rc = flush_metapage(mp))) {
mp                280 fs/jfs/xattr.c 		flush_metapage(mp);
mp                362 fs/jfs/xattr.c 	struct metapage *mp;
mp                396 fs/jfs/xattr.c 		if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1)))
mp                399 fs/jfs/xattr.c 		memcpy(cp, mp->data, nb);
mp                400 fs/jfs/xattr.c 		release_metapage(mp);
mp                526 fs/jfs/xattr.c 		ea_buf->mp = get_metapage(inode, blkno,
mp                529 fs/jfs/xattr.c 		if (ea_buf->mp == NULL) {
mp                534 fs/jfs/xattr.c 		ea_buf->xattr = ea_buf->mp->data;
mp                540 fs/jfs/xattr.c 			discard_metapage(ea_buf->mp);
mp                547 fs/jfs/xattr.c 	ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea),
mp                550 fs/jfs/xattr.c 	if (ea_buf->mp == NULL) {
mp                554 fs/jfs/xattr.c 	ea_buf->xattr = ea_buf->mp->data;
mp                583 fs/jfs/xattr.c 		assert(ea_buf->mp);
mp                584 fs/jfs/xattr.c 		release_metapage(ea_buf->mp);
mp                614 fs/jfs/xattr.c 		flush_metapage(ea_buf->mp);
mp                618 fs/jfs/xattr.c 		discard_metapage(ea_buf->mp);
mp                689 fs/namespace.c 	struct mountpoint *mp;
mp                691 fs/namespace.c 	hlist_for_each_entry(mp, chain, m_hash) {
mp                692 fs/namespace.c 		if (mp->m_dentry == dentry) {
mp                693 fs/namespace.c 			mp->m_count++;
mp                694 fs/namespace.c 			return mp;
mp                702 fs/namespace.c 	struct mountpoint *mp, *new = NULL;
mp                711 fs/namespace.c 		mp = lookup_mountpoint(dentry);
mp                713 fs/namespace.c 		if (mp)
mp                731 fs/namespace.c 	mp = ERR_PTR(ret);
mp                743 fs/namespace.c 	mp = new;
mp                747 fs/namespace.c 	return mp;
mp                754 fs/namespace.c static void __put_mountpoint(struct mountpoint *mp, struct list_head *list)
mp                756 fs/namespace.c 	if (!--mp->m_count) {
mp                757 fs/namespace.c 		struct dentry *dentry = mp->m_dentry;
mp                758 fs/namespace.c 		BUG_ON(!hlist_empty(&mp->m_list));
mp                763 fs/namespace.c 		hlist_del(&mp->m_hash);
mp                764 fs/namespace.c 		kfree(mp);
mp                769 fs/namespace.c static void put_mountpoint(struct mountpoint *mp)
mp                771 fs/namespace.c 	__put_mountpoint(mp, &ex_mountpoints);
mp                806 fs/namespace.c 	struct mountpoint *mp;
mp                812 fs/namespace.c 	mp = mnt->mnt_mp;
mp                814 fs/namespace.c 	return mp;
mp                829 fs/namespace.c 			struct mountpoint *mp,
mp                832 fs/namespace.c 	mp->m_count++;
mp                834 fs/namespace.c 	child_mnt->mnt_mountpoint = mp->m_dentry;
mp                836 fs/namespace.c 	child_mnt->mnt_mp = mp;
mp                837 fs/namespace.c 	hlist_add_head(&child_mnt->mnt_mp_list, &mp->m_list);
mp                852 fs/namespace.c 			struct mountpoint *mp)
mp                854 fs/namespace.c 	mnt_set_mountpoint(parent, mp, mnt);
mp                858 fs/namespace.c void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt)
mp                867 fs/namespace.c 	attach_mnt(mnt, parent, mp);
mp               1614 fs/namespace.c 	struct mountpoint *mp;
mp               1619 fs/namespace.c 	mp = lookup_mountpoint(dentry);
mp               1620 fs/namespace.c 	if (!mp)
mp               1624 fs/namespace.c 	while (!hlist_empty(&mp->m_list)) {
mp               1625 fs/namespace.c 		mnt = hlist_entry(mp->m_list.first, struct mount, mnt_mp_list);
mp               1632 fs/namespace.c 	put_mountpoint(mp);
mp               2142 fs/namespace.c 		struct mountpoint *mp = get_mountpoint(dentry);
mp               2143 fs/namespace.c 		if (IS_ERR(mp)) {
mp               2146 fs/namespace.c 			return mp;
mp               2148 fs/namespace.c 		return mp;
mp               2170 fs/namespace.c static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp)
mp               2175 fs/namespace.c 	if (d_is_dir(mp->m_dentry) !=
mp               2179 fs/namespace.c 	return attach_recursive_mnt(mnt, p, mp, false);
mp               2279 fs/namespace.c 	struct mountpoint *mp;
mp               2291 fs/namespace.c 	mp = lock_mount(path);
mp               2292 fs/namespace.c 	if (IS_ERR(mp)) {
mp               2293 fs/namespace.c 		err = PTR_ERR(mp);
mp               2307 fs/namespace.c 	err = graft_tree(mnt, parent, mp);
mp               2314 fs/namespace.c 	unlock_mount(mp);
mp               2604 fs/namespace.c 	struct mountpoint *mp, *old_mp;
mp               2608 fs/namespace.c 	mp = lock_mount(new_path);
mp               2609 fs/namespace.c 	if (IS_ERR(mp))
mp               2610 fs/namespace.c 		return PTR_ERR(mp);
mp               2659 fs/namespace.c 	err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp,
mp               2670 fs/namespace.c 	unlock_mount(mp);
mp               2702 fs/namespace.c 	struct mountpoint *mp;
mp               2708 fs/namespace.c 	mp = lock_mount(path);
mp               2709 fs/namespace.c 	if (IS_ERR(mp))
mp               2710 fs/namespace.c 		return PTR_ERR(mp);
mp               2734 fs/namespace.c 	err = graft_tree(newmnt, parent, mp);
mp               2737 fs/namespace.c 	unlock_mount(mp);
mp                217 fs/pnode.c     static struct mountpoint *mp;
mp                233 fs/pnode.c     	if (!is_subdir(mp->m_dentry, m->mnt.mnt_root))
mp                265 fs/pnode.c     	mnt_set_mountpoint(m, mp, child);
mp                302 fs/pnode.c     	mp = dest_mp;
mp                501 fs/pnode.c     		struct mountpoint *mp;
mp                508 fs/pnode.c     		mp = mnt->mnt_mp;
mp                511 fs/pnode.c     			mp = parent->mnt_mp;
mp                515 fs/pnode.c     			mnt_change_mountpoint(parent, mp, mnt);
mp                 50 fs/pnode.h     void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp,
mp                 28 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                 35 fs/xfs/libxfs/xfs_ag.c 	bp = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0);
mp                 47 fs/xfs/libxfs/xfs_ag.c static inline bool is_log_ag(struct xfs_mount *mp, struct aghdr_init_data *id)
mp                 49 fs/xfs/libxfs/xfs_ag.c 	return mp->m_sb.sb_logstart > 0 &&
mp                 50 fs/xfs/libxfs/xfs_ag.c 	       id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart);
mp                 58 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                 62 fs/xfs/libxfs/xfs_ag.c 	xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno);
mp                 68 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                 75 fs/xfs/libxfs/xfs_ag.c 	arec = XFS_ALLOC_REC_ADDR(mp, XFS_BUF_TO_BLOCK(bp), 1);
mp                 76 fs/xfs/libxfs/xfs_ag.c 	arec->ar_startblock = cpu_to_be32(mp->m_ag_prealloc_blocks);
mp                 78 fs/xfs/libxfs/xfs_ag.c 	if (is_log_ag(mp, id)) {
mp                 80 fs/xfs/libxfs/xfs_ag.c 		xfs_agblock_t		start = XFS_FSB_TO_AGBNO(mp,
mp                 81 fs/xfs/libxfs/xfs_ag.c 							mp->m_sb.sb_logstart);
mp                 83 fs/xfs/libxfs/xfs_ag.c 		ASSERT(start >= mp->m_ag_prealloc_blocks);
mp                 84 fs/xfs/libxfs/xfs_ag.c 		if (start != mp->m_ag_prealloc_blocks) {
mp                 89 fs/xfs/libxfs/xfs_ag.c 						mp->m_ag_prealloc_blocks);
mp                105 fs/xfs/libxfs/xfs_ag.c 		be32_add_cpu(&arec->ar_startblock, mp->m_sb.sb_logblocks);
mp                125 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                129 fs/xfs/libxfs/xfs_ag.c 	xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno);
mp                130 fs/xfs/libxfs/xfs_ag.c 	xfs_freesp_init_recs(mp, bp, id);
mp                135 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                139 fs/xfs/libxfs/xfs_ag.c 	xfs_btree_init_block(mp, bp, XFS_BTNUM_CNT, 0, 1, id->agno);
mp                140 fs/xfs/libxfs/xfs_ag.c 	xfs_freesp_init_recs(mp, bp, id);
mp                148 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                155 fs/xfs/libxfs/xfs_ag.c 	xfs_btree_init_block(mp, bp, XFS_BTNUM_RMAP, 0, 4, id->agno);
mp                168 fs/xfs/libxfs/xfs_ag.c 	rrec->rm_blockcount = cpu_to_be32(XFS_BNO_BLOCK(mp));
mp                174 fs/xfs/libxfs/xfs_ag.c 	rrec->rm_startblock = cpu_to_be32(XFS_BNO_BLOCK(mp));
mp                181 fs/xfs/libxfs/xfs_ag.c 	rrec->rm_startblock = cpu_to_be32(XFS_IBT_BLOCK(mp));
mp                182 fs/xfs/libxfs/xfs_ag.c 	rrec->rm_blockcount = cpu_to_be32(XFS_RMAP_BLOCK(mp) -
mp                183 fs/xfs/libxfs/xfs_ag.c 					  XFS_IBT_BLOCK(mp));
mp                189 fs/xfs/libxfs/xfs_ag.c 	rrec->rm_startblock = cpu_to_be32(XFS_RMAP_BLOCK(mp));
mp                195 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp                197 fs/xfs/libxfs/xfs_ag.c 		rrec->rm_startblock = cpu_to_be32(xfs_refc_block(mp));
mp                205 fs/xfs/libxfs/xfs_ag.c 	if (is_log_ag(mp, id)) {
mp                209 fs/xfs/libxfs/xfs_ag.c 				XFS_FSB_TO_AGBNO(mp, mp->m_sb.sb_logstart));
mp                210 fs/xfs/libxfs/xfs_ag.c 		rrec->rm_blockcount = cpu_to_be32(mp->m_sb.sb_logblocks);
mp                227 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                233 fs/xfs/libxfs/xfs_ag.c 	xfs_sb_to_disk(dsb, &mp->m_sb);
mp                239 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                250 fs/xfs/libxfs/xfs_ag.c 	agf->agf_roots[XFS_BTNUM_BNOi] = cpu_to_be32(XFS_BNO_BLOCK(mp));
mp                251 fs/xfs/libxfs/xfs_ag.c 	agf->agf_roots[XFS_BTNUM_CNTi] = cpu_to_be32(XFS_CNT_BLOCK(mp));
mp                254 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
mp                256 fs/xfs/libxfs/xfs_ag.c 					cpu_to_be32(XFS_RMAP_BLOCK(mp));
mp                264 fs/xfs/libxfs/xfs_ag.c 	tmpsize = id->agsize - mp->m_ag_prealloc_blocks;
mp                267 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                268 fs/xfs/libxfs/xfs_ag.c 		uuid_copy(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid);
mp                269 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp                271 fs/xfs/libxfs/xfs_ag.c 				xfs_refc_block(mp));
mp                276 fs/xfs/libxfs/xfs_ag.c 	if (is_log_ag(mp, id)) {
mp                277 fs/xfs/libxfs/xfs_ag.c 		int64_t	logblocks = mp->m_sb.sb_logblocks;
mp                281 fs/xfs/libxfs/xfs_ag.c 			XFS_FSB_TO_AGBNO(mp, mp->m_sb.sb_logstart) - logblocks);
mp                287 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                295 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                298 fs/xfs/libxfs/xfs_ag.c 		uuid_copy(&agfl->agfl_uuid, &mp->m_sb.sb_meta_uuid);
mp                301 fs/xfs/libxfs/xfs_ag.c 	agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, bp);
mp                302 fs/xfs/libxfs/xfs_ag.c 	for (bucket = 0; bucket < xfs_agfl_size(mp); bucket++)
mp                308 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                320 fs/xfs/libxfs/xfs_ag.c 	agi->agi_root = cpu_to_be32(XFS_IBT_BLOCK(mp));
mp                325 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                326 fs/xfs/libxfs/xfs_ag.c 		uuid_copy(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid);
mp                327 fs/xfs/libxfs/xfs_ag.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb)) {
mp                328 fs/xfs/libxfs/xfs_ag.c 		agi->agi_free_root = cpu_to_be32(XFS_FIBT_BLOCK(mp));
mp                335 fs/xfs/libxfs/xfs_ag.c typedef void (*aghdr_init_work_f)(struct xfs_mount *mp, struct xfs_buf *bp,
mp                339 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                347 fs/xfs/libxfs/xfs_ag.c 	bp = xfs_get_aghdr_buf(mp, id->daddr, id->numblks, ops);
mp                351 fs/xfs/libxfs/xfs_ag.c 	(*work)(mp, bp, id);
mp                379 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                385 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AG_DADDR(mp, id->agno, XFS_SB_DADDR),
mp                386 fs/xfs/libxfs/xfs_ag.c 		.numblks = XFS_FSS_TO_BB(mp, 1),
mp                392 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGF_DADDR(mp)),
mp                393 fs/xfs/libxfs/xfs_ag.c 		.numblks = XFS_FSS_TO_BB(mp, 1),
mp                399 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGFL_DADDR(mp)),
mp                400 fs/xfs/libxfs/xfs_ag.c 		.numblks = XFS_FSS_TO_BB(mp, 1),
mp                406 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGI_DADDR(mp)),
mp                407 fs/xfs/libxfs/xfs_ag.c 		.numblks = XFS_FSS_TO_BB(mp, 1),
mp                413 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_BNO_BLOCK(mp)),
mp                414 fs/xfs/libxfs/xfs_ag.c 		.numblks = BTOBB(mp->m_sb.sb_blocksize),
mp                420 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_CNT_BLOCK(mp)),
mp                421 fs/xfs/libxfs/xfs_ag.c 		.numblks = BTOBB(mp->m_sb.sb_blocksize),
mp                427 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_IBT_BLOCK(mp)),
mp                428 fs/xfs/libxfs/xfs_ag.c 		.numblks = BTOBB(mp->m_sb.sb_blocksize),
mp                435 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_FIBT_BLOCK(mp)),
mp                436 fs/xfs/libxfs/xfs_ag.c 		.numblks = BTOBB(mp->m_sb.sb_blocksize),
mp                440 fs/xfs/libxfs/xfs_ag.c 		.need_init =  xfs_sb_version_hasfinobt(&mp->m_sb)
mp                443 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AGB_TO_DADDR(mp, id->agno, XFS_RMAP_BLOCK(mp)),
mp                444 fs/xfs/libxfs/xfs_ag.c 		.numblks = BTOBB(mp->m_sb.sb_blocksize),
mp                447 fs/xfs/libxfs/xfs_ag.c 		.need_init = xfs_sb_version_hasrmapbt(&mp->m_sb)
mp                450 fs/xfs/libxfs/xfs_ag.c 		.daddr = XFS_AGB_TO_DADDR(mp, id->agno, xfs_refc_block(mp)),
mp                451 fs/xfs/libxfs/xfs_ag.c 		.numblks = BTOBB(mp->m_sb.sb_blocksize),
mp                455 fs/xfs/libxfs/xfs_ag.c 		.need_init = xfs_sb_version_hasreflink(&mp->m_sb)
mp                465 fs/xfs/libxfs/xfs_ag.c 	id->nfree += id->agsize - mp->m_ag_prealloc_blocks;
mp                473 fs/xfs/libxfs/xfs_ag.c 		error = xfs_ag_init_hdr(mp, id, dp->work, dp->ops);
mp                485 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                498 fs/xfs/libxfs/xfs_ag.c 	error = xfs_ialloc_read_agi(mp, tp, id->agno, &bp);
mp                504 fs/xfs/libxfs/xfs_ag.c 	ASSERT(id->agno == mp->m_sb.sb_agcount - 1 ||
mp                505 fs/xfs/libxfs/xfs_ag.c 	       be32_to_cpu(agi->agi_length) == mp->m_sb.sb_agblocks);
mp                511 fs/xfs/libxfs/xfs_ag.c 	error = xfs_alloc_read_agf(mp, tp, id->agno, 0, &bp);
mp                532 fs/xfs/libxfs/xfs_ag.c 	return  xfs_free_extent(tp, XFS_AGB_TO_FSB(mp, id->agno,
mp                541 fs/xfs/libxfs/xfs_ag.c 	struct xfs_mount	*mp,
mp                553 fs/xfs/libxfs/xfs_ag.c 	if (agno >= mp->m_sb.sb_agcount)
mp                557 fs/xfs/libxfs/xfs_ag.c 	error = xfs_ialloc_read_agi(mp, NULL, agno, &agi_bp);
mp                560 fs/xfs/libxfs/xfs_ag.c 	error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agf_bp);
mp                563 fs/xfs/libxfs/xfs_ag.c 	pag = xfs_perag_get(mp, agno);
mp                 26 fs/xfs/libxfs/xfs_ag.h int xfs_ag_init_headers(struct xfs_mount *mp, struct aghdr_init_data *id);
mp                 27 fs/xfs/libxfs/xfs_ag.h int xfs_ag_extend_space(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 29 fs/xfs/libxfs/xfs_ag.h int xfs_ag_get_geometry(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                182 fs/xfs/libxfs/xfs_ag_resv.c 	struct xfs_mount		*mp = pag->pag_mount;
mp                212 fs/xfs/libxfs/xfs_ag_resv.c 	error = xfs_mod_fdblocks(mp, -(int64_t)hidden_space, true);
mp                216 fs/xfs/libxfs/xfs_ag_resv.c 		xfs_warn(mp,
mp                229 fs/xfs/libxfs/xfs_ag_resv.c 		mp->m_ag_max_usable -= ask;
mp                246 fs/xfs/libxfs/xfs_ag_resv.c 	struct xfs_mount		*mp = pag->pag_mount;
mp                256 fs/xfs/libxfs/xfs_ag_resv.c 		error = xfs_refcountbt_calc_reserves(mp, tp, agno, &ask, &used);
mp                260 fs/xfs/libxfs/xfs_ag_resv.c 		error = xfs_finobt_calc_reserves(mp, tp, agno, &ask, &used);
mp                276 fs/xfs/libxfs/xfs_ag_resv.c 			mp->m_finobt_nores = true;
mp                278 fs/xfs/libxfs/xfs_ag_resv.c 			error = xfs_refcountbt_calc_reserves(mp, tp, agno, &ask,
mp                294 fs/xfs/libxfs/xfs_ag_resv.c 		error = xfs_rmapbt_calc_reserves(mp, tp, agno, &ask, &used);
mp                 28 fs/xfs/libxfs/xfs_ag_resv.h 	struct xfs_mount	*mp,
mp                 35 fs/xfs/libxfs/xfs_ag_resv.h 	pag = xfs_perag_get(mp, agno);
mp                 42 fs/xfs/libxfs/xfs_ag_resv.h 	struct xfs_mount	*mp,
mp                 47 fs/xfs/libxfs/xfs_ag_resv.h 	pag = xfs_perag_get(mp, agno);
mp                 50 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp)
mp                 52 fs/xfs/libxfs/xfs_alloc.c 	unsigned int		size = mp->m_sb.sb_sectsize;
mp                 54 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                 62 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp)
mp                 64 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                 65 fs/xfs/libxfs/xfs_alloc.c 		return XFS_RMAP_BLOCK(mp) + 1;
mp                 66 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb))
mp                 67 fs/xfs/libxfs/xfs_alloc.c 		return XFS_FIBT_BLOCK(mp) + 1;
mp                 68 fs/xfs/libxfs/xfs_alloc.c 	return XFS_IBT_BLOCK(mp) + 1;
mp                 73 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp)
mp                 75 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                 76 fs/xfs/libxfs/xfs_alloc.c 		return xfs_refc_block(mp) + 1;
mp                 77 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                 78 fs/xfs/libxfs/xfs_alloc.c 		return XFS_RMAP_BLOCK(mp) + 1;
mp                 79 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb))
mp                 80 fs/xfs/libxfs/xfs_alloc.c 		return XFS_FIBT_BLOCK(mp) + 1;
mp                 81 fs/xfs/libxfs/xfs_alloc.c 	return XFS_IBT_BLOCK(mp) + 1;
mp                101 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp)
mp                103 fs/xfs/libxfs/xfs_alloc.c 	return mp->m_sb.sb_agcount * (XFS_ALLOC_AGFL_RESERVE + 4);
mp                122 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp)
mp                126 fs/xfs/libxfs/xfs_alloc.c 	blocks = XFS_BB_TO_FSB(mp, XFS_FSS_TO_BB(mp, 4)); /* ag headers */
mp                129 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb))
mp                131 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                133 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                136 fs/xfs/libxfs/xfs_alloc.c 	return mp->m_sb.sb_agblocks - blocks;
mp                214 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                230 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_verify_agbno(mp, agno, *bno))
mp                234 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_verify_agbno(mp, agno, *bno + *len - 1))
mp                240 fs/xfs/libxfs/xfs_alloc.c 	xfs_warn(mp,
mp                243 fs/xfs/libxfs/xfs_alloc.c 	xfs_warn(mp,
mp                425 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount *mp;
mp                427 fs/xfs/libxfs/xfs_alloc.c 	mp = cnt_cur->bc_mp;
mp                436 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp,
mp                442 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                451 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp,
mp                457 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                468 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp,
mp                499 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                506 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 0);
mp                509 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                514 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 0);
mp                517 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                528 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                542 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 0);
mp                545 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp                554 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount *mp = bp->b_mount;
mp                564 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                569 fs/xfs/libxfs/xfs_alloc.c 	if (!uuid_equal(&agfl->agfl_uuid, &mp->m_sb.sb_meta_uuid))
mp                580 fs/xfs/libxfs/xfs_alloc.c 	for (i = 0; i < xfs_agfl_size(mp); i++) {
mp                582 fs/xfs/libxfs/xfs_alloc.c 		    be32_to_cpu(agfl->agfl_bno[i]) >= mp->m_sb.sb_agblocks)
mp                586 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_log_check_lsn(mp, be64_to_cpu(XFS_BUF_TO_AGFL(bp)->agfl_lsn)))
mp                595 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount *mp = bp->b_mount;
mp                604 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                620 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp = bp->b_mount;
mp                625 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                653 fs/xfs/libxfs/xfs_alloc.c 	xfs_mount_t	*mp,		/* mount point structure */
mp                663 fs/xfs/libxfs/xfs_alloc.c 			mp, tp, mp->m_ddev_targp,
mp                664 fs/xfs/libxfs/xfs_alloc.c 			XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)),
mp                665 fs/xfs/libxfs/xfs_alloc.c 			XFS_FSS_TO_BB(mp, 1), 0, &bp, &xfs_agfl_buf_ops);
mp                730 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error);
mp                746 fs/xfs/libxfs/xfs_alloc.c 	xfs_extent_busy_reuse(args->mp, args->agno, fbno, 1,
mp                752 fs/xfs/libxfs/xfs_alloc.c 		bp = xfs_btree_get_bufs(args->mp, args->tp, args->agno, fbno);
mp                761 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(args->mp,
mp                861 fs/xfs/libxfs/xfs_alloc.c 		ASSERT(!xfs_extent_busy_search(args->mp, args->agno,
mp                867 fs/xfs/libxfs/xfs_alloc.c 	XFS_STATS_INC(args->mp, xs_allocx);
mp                868 fs/xfs/libxfs/xfs_alloc.c 	XFS_STATS_ADD(args->mp, xs_allocb, args->len);
mp                898 fs/xfs/libxfs/xfs_alloc.c 	bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
mp                918 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp                955 fs/xfs/libxfs/xfs_alloc.c 	cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
mp               1019 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1123 fs/xfs/libxfs/xfs_alloc.c 		args->max_agbno = args->mp->m_sb.sb_agblocks - 1;
mp               1143 fs/xfs/libxfs/xfs_alloc.c 	cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
mp               1200 fs/xfs/libxfs/xfs_alloc.c 				XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1220 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1255 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1268 fs/xfs/libxfs/xfs_alloc.c 		bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp,
mp               1297 fs/xfs/libxfs/xfs_alloc.c 	bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
mp               1339 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1355 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1420 fs/xfs/libxfs/xfs_alloc.c 			xfs_extent_busy_flush(args->mp, args->pag, busy_gen);
mp               1508 fs/xfs/libxfs/xfs_alloc.c 	cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
mp               1548 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1568 fs/xfs/libxfs/xfs_alloc.c 				xfs_extent_busy_flush(args->mp,
mp               1582 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(args->mp, rlen == 0 ||
mp               1602 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1608 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(args->mp, rlen == 0 ||
mp               1623 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(args->mp, i == 1, error0);
mp               1638 fs/xfs/libxfs/xfs_alloc.c 			xfs_extent_busy_flush(args->mp, args->pag, busy_gen);
mp               1646 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(args->mp, rlen <= flen, error0);
mp               1650 fs/xfs/libxfs/xfs_alloc.c 	bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
mp               1660 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(args->mp,
mp               1695 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount		*mp;
mp               1711 fs/xfs/libxfs/xfs_alloc.c 	mp = tp->t_mountp;
mp               1722 fs/xfs/libxfs/xfs_alloc.c 	bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO);
mp               1735 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1747 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(mp,
mp               1763 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1775 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(mp, gtbno >= bno + len, error0);
mp               1781 fs/xfs/libxfs/xfs_alloc.c 	cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT);
mp               1792 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1795 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1801 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1804 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1810 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1816 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1829 fs/xfs/libxfs/xfs_alloc.c 			XFS_WANT_CORRUPTED_GOTO(mp,
mp               1852 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1855 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1862 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1878 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1881 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1900 fs/xfs/libxfs/xfs_alloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1909 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 0, error0);
mp               1912 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1919 fs/xfs/libxfs/xfs_alloc.c 	pag = xfs_perag_get(mp, agno);
mp               1926 fs/xfs/libxfs/xfs_alloc.c 	XFS_STATS_INC(mp, xs_freex);
mp               1927 fs/xfs/libxfs/xfs_alloc.c 	XFS_STATS_ADD(mp, xs_freeb, len);
mp               1929 fs/xfs/libxfs/xfs_alloc.c 	trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright);
mp               1934 fs/xfs/libxfs/xfs_alloc.c 	trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1);
mp               1952 fs/xfs/libxfs/xfs_alloc.c 	xfs_mount_t	*mp)	/* file system mount structure */
mp               1954 fs/xfs/libxfs/xfs_alloc.c 	mp->m_ag_maxlevels = xfs_btree_compute_maxlevels(mp->m_alloc_mnr,
mp               1955 fs/xfs/libxfs/xfs_alloc.c 			(mp->m_sb.sb_agblocks + 1) / 2);
mp               2000 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp,
mp               2007 fs/xfs/libxfs/xfs_alloc.c 				       mp->m_ag_maxlevels);
mp               2010 fs/xfs/libxfs/xfs_alloc.c 				       mp->m_ag_maxlevels);
mp               2012 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb))
mp               2015 fs/xfs/libxfs/xfs_alloc.c 				  mp->m_rmap_maxlevels);
mp               2110 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp,
mp               2116 fs/xfs/libxfs/xfs_alloc.c 	int			agfl_size = xfs_agfl_size(mp);
mp               2120 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               2163 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2167 fs/xfs/libxfs/xfs_alloc.c 	trace_xfs_agfl_reset(mp, agf, 0, _RET_IP_);
mp               2169 fs/xfs/libxfs/xfs_alloc.c 	xfs_warn(mp,
mp               2175 fs/xfs/libxfs/xfs_alloc.c 	agf->agf_fllast = cpu_to_be32(xfs_agfl_size(mp) - 1);
mp               2202 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               2209 fs/xfs/libxfs/xfs_alloc.c 	new->xefi_startblock = XFS_AGB_TO_FSB(mp, agno, agbno);
mp               2213 fs/xfs/libxfs/xfs_alloc.c 	trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1);
mp               2227 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp = args->mp;
mp               2241 fs/xfs/libxfs/xfs_alloc.c 		error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp);
mp               2262 fs/xfs/libxfs/xfs_alloc.c 	need = xfs_alloc_min_freelist(mp, pag);
mp               2272 fs/xfs/libxfs/xfs_alloc.c 		error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp);
mp               2287 fs/xfs/libxfs/xfs_alloc.c 	need = xfs_alloc_min_freelist(mp, pag);
mp               2331 fs/xfs/libxfs/xfs_alloc.c 	targs.mp = mp;
mp               2337 fs/xfs/libxfs/xfs_alloc.c 	error = xfs_alloc_read_agfl(mp, tp, targs.agno, &agflbp);
mp               2403 fs/xfs/libxfs/xfs_alloc.c 	xfs_mount_t	*mp = tp->t_mountp;
mp               2417 fs/xfs/libxfs/xfs_alloc.c 	error = xfs_alloc_read_agfl(mp, tp, be32_to_cpu(agf->agf_seqno),
mp               2426 fs/xfs/libxfs/xfs_alloc.c 	agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agflbp);
mp               2430 fs/xfs/libxfs/xfs_alloc.c 	if (be32_to_cpu(agf->agf_flfirst) == xfs_agfl_size(mp))
mp               2433 fs/xfs/libxfs/xfs_alloc.c 	pag = xfs_perag_get(mp, be32_to_cpu(agf->agf_seqno));
mp               2500 fs/xfs/libxfs/xfs_alloc.c 	xfs_mount_t		*mp,	/* file system mount structure */
mp               2508 fs/xfs/libxfs/xfs_alloc.c 	if ((error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp)))
mp               2530 fs/xfs/libxfs/xfs_alloc.c 	xfs_mount_t		*mp;	/* mount structure */
mp               2536 fs/xfs/libxfs/xfs_alloc.c 	mp = tp->t_mountp;
mp               2538 fs/xfs/libxfs/xfs_alloc.c 	if (!agflbp && (error = xfs_alloc_read_agfl(mp, tp,
mp               2542 fs/xfs/libxfs/xfs_alloc.c 	if (be32_to_cpu(agf->agf_fllast) == xfs_agfl_size(mp))
mp               2545 fs/xfs/libxfs/xfs_alloc.c 	pag = xfs_perag_get(mp, be32_to_cpu(agf->agf_seqno));
mp               2561 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(be32_to_cpu(agf->agf_flcount) <= xfs_agfl_size(mp));
mp               2563 fs/xfs/libxfs/xfs_alloc.c 	agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agflbp);
mp               2580 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp = bp->b_mount;
mp               2583 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               2584 fs/xfs/libxfs/xfs_alloc.c 		if (!uuid_equal(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid))
mp               2586 fs/xfs/libxfs/xfs_alloc.c 		if (!xfs_log_check_lsn(mp,
mp               2596 fs/xfs/libxfs/xfs_alloc.c 	      be32_to_cpu(agf->agf_flfirst) < xfs_agfl_size(mp) &&
mp               2597 fs/xfs/libxfs/xfs_alloc.c 	      be32_to_cpu(agf->agf_fllast) < xfs_agfl_size(mp) &&
mp               2598 fs/xfs/libxfs/xfs_alloc.c 	      be32_to_cpu(agf->agf_flcount) <= xfs_agfl_size(mp)))
mp               2607 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb) &&
mp               2621 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_haslazysbcount(&mp->m_sb) &&
mp               2625 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hasreflink(&mp->m_sb) &&
mp               2638 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount *mp = bp->b_mount;
mp               2641 fs/xfs/libxfs/xfs_alloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp               2646 fs/xfs/libxfs/xfs_alloc.c 		if (XFS_TEST_ERROR(fa, mp, XFS_ERRTAG_ALLOC_READ_AGF))
mp               2655 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp = bp->b_mount;
mp               2665 fs/xfs/libxfs/xfs_alloc.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               2687 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp,	/* mount point structure */
mp               2695 fs/xfs/libxfs/xfs_alloc.c 	trace_xfs_read_agf(mp, agno);
mp               2699 fs/xfs/libxfs/xfs_alloc.c 			mp, tp, mp->m_ddev_targp,
mp               2700 fs/xfs/libxfs/xfs_alloc.c 			XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)),
mp               2701 fs/xfs/libxfs/xfs_alloc.c 			XFS_FSS_TO_BB(mp, 1), flags, bpp, &xfs_agf_buf_ops);
mp               2717 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp,	/* mount point structure */
mp               2727 fs/xfs/libxfs/xfs_alloc.c 	trace_xfs_alloc_read_agf(mp, agno);
mp               2730 fs/xfs/libxfs/xfs_alloc.c 	error = xfs_read_agf(mp, tp, agno,
mp               2740 fs/xfs/libxfs/xfs_alloc.c 	pag = xfs_perag_get(mp, agno);
mp               2754 fs/xfs/libxfs/xfs_alloc.c 		pag->pagf_agflreset = xfs_agfl_needs_reset(mp, agf);
mp               2757 fs/xfs/libxfs/xfs_alloc.c 	else if (!XFS_FORCED_SHUTDOWN(mp)) {
mp               2784 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp;	/* mount structure pointer */
mp               2790 fs/xfs/libxfs/xfs_alloc.c 	mp = args->mp;
mp               2798 fs/xfs/libxfs/xfs_alloc.c 	agsize = mp->m_sb.sb_agblocks;
mp               2803 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(XFS_FSB_TO_AGNO(mp, args->fsbno) < mp->m_sb.sb_agcount);
mp               2804 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(XFS_FSB_TO_AGBNO(mp, args->fsbno) < agsize);
mp               2808 fs/xfs/libxfs/xfs_alloc.c 	if (XFS_FSB_TO_AGNO(mp, args->fsbno) >= mp->m_sb.sb_agcount ||
mp               2809 fs/xfs/libxfs/xfs_alloc.c 	    XFS_FSB_TO_AGBNO(mp, args->fsbno) >= agsize ||
mp               2824 fs/xfs/libxfs/xfs_alloc.c 		args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno);
mp               2825 fs/xfs/libxfs/xfs_alloc.c 		args->pag = xfs_perag_get(mp, args->agno);
mp               2835 fs/xfs/libxfs/xfs_alloc.c 		args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno);
mp               2845 fs/xfs/libxfs/xfs_alloc.c 		    (mp->m_flags & XFS_MOUNT_32BITINODES)) {
mp               2846 fs/xfs/libxfs/xfs_alloc.c 			args->fsbno = XFS_AGB_TO_FSB(mp,
mp               2847 fs/xfs/libxfs/xfs_alloc.c 					((mp->m_agfrotor / rotorstep) %
mp               2848 fs/xfs/libxfs/xfs_alloc.c 					mp->m_sb.sb_agcount), 0);
mp               2851 fs/xfs/libxfs/xfs_alloc.c 		args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno);
mp               2862 fs/xfs/libxfs/xfs_alloc.c 			args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno);
mp               2870 fs/xfs/libxfs/xfs_alloc.c 			args->agno = sagno = XFS_FSB_TO_AGNO(mp, args->fsbno);
mp               2878 fs/xfs/libxfs/xfs_alloc.c 			args->pag = xfs_perag_get(mp, args->agno);
mp               2908 fs/xfs/libxfs/xfs_alloc.c 			if (++(args->agno) == mp->m_sb.sb_agcount) {
mp               2927 fs/xfs/libxfs/xfs_alloc.c 					args->agbno = XFS_FSB_TO_AGBNO(mp,
mp               2936 fs/xfs/libxfs/xfs_alloc.c 				mp->m_agfrotor = (mp->m_agfrotor + 1) %
mp               2937 fs/xfs/libxfs/xfs_alloc.c 					(mp->m_sb.sb_agcount * rotorstep);
mp               2939 fs/xfs/libxfs/xfs_alloc.c 				mp->m_agfrotor = (args->agno * rotorstep + 1) %
mp               2940 fs/xfs/libxfs/xfs_alloc.c 					(mp->m_sb.sb_agcount * rotorstep);
mp               2950 fs/xfs/libxfs/xfs_alloc.c 		args->fsbno = XFS_AGB_TO_FSB(mp, args->agno, args->agbno);
mp               2955 fs/xfs/libxfs/xfs_alloc.c 		XFS_AG_CHECK_DADDR(mp, XFS_FSB_TO_DADDR(mp, args->fsbno),
mp               2986 fs/xfs/libxfs/xfs_alloc.c 	args.mp = tp->t_mountp;
mp               2993 fs/xfs/libxfs/xfs_alloc.c 	if (args.agno >= args.mp->m_sb.sb_agcount)
mp               2996 fs/xfs/libxfs/xfs_alloc.c 	args.pag = xfs_perag_get(args.mp, args.agno);
mp               3023 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               3025 fs/xfs/libxfs/xfs_alloc.c 	xfs_agnumber_t			agno = XFS_FSB_TO_AGNO(mp, bno);
mp               3026 fs/xfs/libxfs/xfs_alloc.c 	xfs_agblock_t			agbno = XFS_FSB_TO_AGBNO(mp, bno);
mp               3033 fs/xfs/libxfs/xfs_alloc.c 	if (XFS_TEST_ERROR(false, mp,
mp               3041 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, agbno < mp->m_sb.sb_agblocks, err);
mp               3044 fs/xfs/libxfs/xfs_alloc.c 	XFS_WANT_CORRUPTED_GOTO(mp,
mp               3144 fs/xfs/libxfs/xfs_alloc.c 	struct xfs_mount	*mp,
mp               3154 fs/xfs/libxfs/xfs_alloc.c 	agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agflbp);
mp               3163 fs/xfs/libxfs/xfs_alloc.c 		error = walk_fn(mp, be32_to_cpu(agfl_bno[i]), priv);
mp               3168 fs/xfs/libxfs/xfs_alloc.c 		if (++i == xfs_agfl_size(mp))
mp                 17 fs/xfs/libxfs/xfs_alloc.h unsigned int xfs_agfl_size(struct xfs_mount *mp);
mp                 54 fs/xfs/libxfs/xfs_alloc.h 	struct xfs_mount *mp;		/* file system mount point */
mp                103 fs/xfs/libxfs/xfs_alloc.h unsigned int xfs_alloc_set_aside(struct xfs_mount *mp);
mp                104 fs/xfs/libxfs/xfs_alloc.h unsigned int xfs_alloc_ag_max_usable(struct xfs_mount *mp);
mp                108 fs/xfs/libxfs/xfs_alloc.h unsigned int xfs_alloc_min_freelist(struct xfs_mount *mp,
mp                116 fs/xfs/libxfs/xfs_alloc.h 	struct xfs_mount	*mp);	/* file system mount structure */
mp                143 fs/xfs/libxfs/xfs_alloc.h 	struct xfs_mount *mp,	/* file system mount structure */
mp                164 fs/xfs/libxfs/xfs_alloc.h 	struct xfs_mount *mp,		/* mount point structure */
mp                221 fs/xfs/libxfs/xfs_alloc.h int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp,
mp                223 fs/xfs/libxfs/xfs_alloc.h int xfs_alloc_read_agfl(struct xfs_mount *mp, struct xfs_trans *tp,
mp                231 fs/xfs/libxfs/xfs_alloc.h xfs_extlen_t xfs_prealloc_blocks(struct xfs_mount *mp);
mp                248 fs/xfs/libxfs/xfs_alloc.h typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno,
mp                250 fs/xfs/libxfs/xfs_alloc.h int xfs_agfl_walk(struct xfs_mount *mp, struct xfs_agf *agf,
mp                294 fs/xfs/libxfs/xfs_alloc_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                304 fs/xfs/libxfs/xfs_alloc_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                325 fs/xfs/libxfs/xfs_alloc_btree.c 	} else if (level >= mp->m_ag_maxlevels)
mp                328 fs/xfs/libxfs/xfs_alloc_btree.c 	return xfs_btree_sblock_verify(bp, mp->m_alloc_mxr[level != 0]);
mp                479 fs/xfs/libxfs/xfs_alloc_btree.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                493 fs/xfs/libxfs/xfs_alloc_btree.c 	cur->bc_mp = mp;
mp                495 fs/xfs/libxfs/xfs_alloc_btree.c 	cur->bc_blocklog = mp->m_sb.sb_blocklog;
mp                511 fs/xfs/libxfs/xfs_alloc_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                522 fs/xfs/libxfs/xfs_alloc_btree.c 	struct xfs_mount	*mp,
mp                526 fs/xfs/libxfs/xfs_alloc_btree.c 	blocklen -= XFS_ALLOC_BLOCK_LEN(mp);
mp                536 fs/xfs/libxfs/xfs_alloc_btree.c 	struct xfs_mount	*mp,
mp                539 fs/xfs/libxfs/xfs_alloc_btree.c 	return xfs_btree_calc_size(mp->m_alloc_mnr, len);
mp                 20 fs/xfs/libxfs/xfs_alloc_btree.h #define XFS_ALLOC_BLOCK_LEN(mp) \
mp                 21 fs/xfs/libxfs/xfs_alloc_btree.h 	(xfs_sb_version_hascrc(&((mp)->m_sb)) ? \
mp                 29 fs/xfs/libxfs/xfs_alloc_btree.h #define XFS_ALLOC_REC_ADDR(mp, block, index) \
mp                 32 fs/xfs/libxfs/xfs_alloc_btree.h 		 XFS_ALLOC_BLOCK_LEN(mp) + \
mp                 35 fs/xfs/libxfs/xfs_alloc_btree.h #define XFS_ALLOC_KEY_ADDR(mp, block, index) \
mp                 38 fs/xfs/libxfs/xfs_alloc_btree.h 		 XFS_ALLOC_BLOCK_LEN(mp) + \
mp                 41 fs/xfs/libxfs/xfs_alloc_btree.h #define XFS_ALLOC_PTR_ADDR(mp, block, index, maxrecs) \
mp                 44 fs/xfs/libxfs/xfs_alloc_btree.h 		 XFS_ALLOC_BLOCK_LEN(mp) + \
mp                 52 fs/xfs/libxfs/xfs_alloc_btree.h extern xfs_extlen_t xfs_allocbt_calc_size(struct xfs_mount *mp,
mp                194 fs/xfs/libxfs/xfs_attr.c 	struct xfs_mount	*mp = args->dp->i_mount;
mp                203 fs/xfs/libxfs/xfs_attr.c 	nblks = XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK);
mp                214 fs/xfs/libxfs/xfs_attr.c 		uint	dblocks = xfs_attr3_rmt_blocks(mp, args->valuelen);
mp                216 fs/xfs/libxfs/xfs_attr.c 		nblks += XFS_NEXTENTADD_SPACE_RES(mp, dblocks, XFS_ATTR_FORK);
mp                228 fs/xfs/libxfs/xfs_attr.c 	struct xfs_mount	*mp = dp->i_mount;
mp                242 fs/xfs/libxfs/xfs_attr.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp                345 fs/xfs/libxfs/xfs_attr.c 	struct xfs_mount	*mp = dp->i_mount;
mp                351 fs/xfs/libxfs/xfs_attr.c 	XFS_STATS_INC(mp, xs_attr_set);
mp                382 fs/xfs/libxfs/xfs_attr.c 	tres.tr_logres = M_RES(mp)->tr_attrsetm.tr_logres +
mp                383 fs/xfs/libxfs/xfs_attr.c 			 M_RES(mp)->tr_attrsetrt.tr_logres * args.total;
mp                391 fs/xfs/libxfs/xfs_attr.c 	error = xfs_trans_alloc(mp, &tres, args.total, 0,
mp                416 fs/xfs/libxfs/xfs_attr.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp                447 fs/xfs/libxfs/xfs_attr.c 	struct xfs_mount	*mp = dp->i_mount;
mp                451 fs/xfs/libxfs/xfs_attr.c 	XFS_STATS_INC(mp, xs_attr_remove);
mp                475 fs/xfs/libxfs/xfs_attr.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_attrrm,
mp                476 fs/xfs/libxfs/xfs_attr.c 			XFS_ATTRRM_SPACE_RES(mp), 0,
mp                497 fs/xfs/libxfs/xfs_attr.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp                851 fs/xfs/libxfs/xfs_attr.c 	struct xfs_mount	*mp;
mp                860 fs/xfs/libxfs/xfs_attr.c 	mp = dp->i_mount;
mp                864 fs/xfs/libxfs/xfs_attr.c 	state->mp = mp;
mp               1013 fs/xfs/libxfs/xfs_attr.c 		state->mp = mp;
mp               1089 fs/xfs/libxfs/xfs_attr.c 	state->mp = dp->i_mount;
mp               1323 fs/xfs/libxfs/xfs_attr.c 	state->mp = args->dp->i_mount;
mp                240 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount		*mp = bp->b_mount;
mp                247 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf);
mp                258 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!xfs_log_in_recovery(mp) && ichdr.count == 0)
mp                265 fs/xfs/libxfs/xfs_attr_leaf.c 	if (ichdr.firstused > mp->m_attr_geo->blksize)
mp                289 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].base > mp->m_attr_geo->blksize)
mp                293 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].size > mp->m_attr_geo->blksize)
mp                302 fs/xfs/libxfs/xfs_attr_leaf.c 		if (end > mp->m_attr_geo->blksize)
mp                313 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                324 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                343 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                346 fs/xfs/libxfs/xfs_attr_leaf.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                462 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_mount_t *mp = dp->i_mount;
mp                465 fs/xfs/libxfs/xfs_attr_leaf.c 	offset = (XFS_LITINO(mp, dp->i_d.di_version) - bytes) >> 3;
mp                490 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!(mp->m_flags & XFS_MOUNT_ATTR2))
mp                520 fs/xfs/libxfs/xfs_attr_leaf.c 		dsize = XFS_BMAP_BROOT_SPACE(mp, dp->i_df.if_broot);
mp                532 fs/xfs/libxfs/xfs_attr_leaf.c 	maxforkoff = XFS_LITINO(mp, dp->i_d.di_version) -
mp                547 fs/xfs/libxfs/xfs_attr_leaf.c xfs_sbversion_add_attr2(xfs_mount_t *mp, xfs_trans_t *tp)
mp                549 fs/xfs/libxfs/xfs_attr_leaf.c 	if ((mp->m_flags & XFS_MOUNT_ATTR2) &&
mp                550 fs/xfs/libxfs/xfs_attr_leaf.c 	    !(xfs_sb_version_hasattr2(&mp->m_sb))) {
mp                551 fs/xfs/libxfs/xfs_attr_leaf.c 		spin_lock(&mp->m_sb_lock);
mp                552 fs/xfs/libxfs/xfs_attr_leaf.c 		if (!xfs_sb_version_hasattr2(&mp->m_sb)) {
mp                553 fs/xfs/libxfs/xfs_attr_leaf.c 			xfs_sb_version_addattr2(&mp->m_sb);
mp                554 fs/xfs/libxfs/xfs_attr_leaf.c 			spin_unlock(&mp->m_sb_lock);
mp                557 fs/xfs/libxfs/xfs_attr_leaf.c 			spin_unlock(&mp->m_sb_lock);
mp                602 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_mount_t *mp;
mp                609 fs/xfs/libxfs/xfs_attr_leaf.c 	mp = dp->i_mount;
mp                643 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_sbversion_add_attr2(mp, args->trans);
mp                674 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_mount_t *mp;
mp                680 fs/xfs/libxfs/xfs_attr_leaf.c 	mp = dp->i_mount;
mp                714 fs/xfs/libxfs/xfs_attr_leaf.c 	    (mp->m_flags & XFS_MOUNT_ATTR2) &&
mp                724 fs/xfs/libxfs/xfs_attr_leaf.c 				!(mp->m_flags & XFS_MOUNT_ATTR2) ||
mp                730 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_sbversion_add_attr2(mp, args->trans);
mp                888 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                891 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf);
mp               1087 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount	*mp = dp->i_mount;
mp               1110 fs/xfs/libxfs/xfs_attr_leaf.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               1158 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount	*mp = dp->i_mount;
mp               1176 fs/xfs/libxfs/xfs_attr_leaf.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               1183 fs/xfs/libxfs/xfs_attr_leaf.c 		uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid);
mp               1351 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount	*mp;
mp               1377 fs/xfs/libxfs/xfs_attr_leaf.c 	mp = args->trans->t_mountp;
mp               1429 fs/xfs/libxfs/xfs_attr_leaf.c 		args->rmtblkcnt = xfs_attr3_rmt_blocks(mp, args->valuelen);
mp               1548 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount *mp = leaf1_bp->b_mount;
mp               1550 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr1, leaf1_bp->b_addr);
mp               1551 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr2, leaf2_bp->b_addr);
mp               2577 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_mount *mp = bp->b_mount;
mp               2579 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, bp->b_addr);
mp                 33 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount *mp,
mp                 36 fs/xfs/libxfs/xfs_attr_remote.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                 37 fs/xfs/libxfs/xfs_attr_remote.c 		int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize);
mp                 40 fs/xfs/libxfs/xfs_attr_remote.c 	return XFS_B_TO_FSB(mp, attrlen);
mp                 73 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount	*mp,
mp                 81 fs/xfs/libxfs/xfs_attr_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                 85 fs/xfs/libxfs/xfs_attr_remote.c 	if (!uuid_equal(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid))
mp                106 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount *mp = bp->b_mount;
mp                110 fs/xfs/libxfs/xfs_attr_remote.c 	int		blksize = mp->m_attr_geo->blksize;
mp                113 fs/xfs/libxfs/xfs_attr_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                127 fs/xfs/libxfs/xfs_attr_remote.c 		*failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno);
mp                170 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount *mp = bp->b_mount;
mp                172 fs/xfs/libxfs/xfs_attr_remote.c 	int		blksize = mp->m_attr_geo->blksize;
mp                178 fs/xfs/libxfs/xfs_attr_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                189 fs/xfs/libxfs/xfs_attr_remote.c 		fa = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno);
mp                224 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount	*mp,
mp                233 fs/xfs/libxfs/xfs_attr_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                239 fs/xfs/libxfs/xfs_attr_remote.c 	uuid_copy(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid);
mp                263 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount *mp,
mp                273 fs/xfs/libxfs/xfs_attr_remote.c 	int		blksize = mp->m_attr_geo->blksize;
mp                279 fs/xfs/libxfs/xfs_attr_remote.c 		int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize);
mp                283 fs/xfs/libxfs/xfs_attr_remote.c 		if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                286 fs/xfs/libxfs/xfs_attr_remote.c 				xfs_alert(mp,
mp                311 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount *mp,
mp                321 fs/xfs/libxfs/xfs_attr_remote.c 	int		blksize = mp->m_attr_geo->blksize;
mp                327 fs/xfs/libxfs/xfs_attr_remote.c 		int byte_cnt = XFS_ATTR3_RMT_BUF_SPACE(mp, blksize);
mp                330 fs/xfs/libxfs/xfs_attr_remote.c 		hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset,
mp                369 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount	*mp = args->dp->i_mount;
mp                401 fs/xfs/libxfs/xfs_attr_remote.c 			dblkno = XFS_FSB_TO_DADDR(mp, map[i].br_startblock);
mp                402 fs/xfs/libxfs/xfs_attr_remote.c 			dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount);
mp                403 fs/xfs/libxfs/xfs_attr_remote.c 			error = xfs_trans_read_buf(mp, args->trans,
mp                404 fs/xfs/libxfs/xfs_attr_remote.c 						   mp->m_ddev_targp,
mp                410 fs/xfs/libxfs/xfs_attr_remote.c 			error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino,
mp                435 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount	*mp = dp->i_mount;
mp                454 fs/xfs/libxfs/xfs_attr_remote.c 	blkcnt = xfs_attr3_rmt_blocks(mp, args->rmtvaluelen);
mp                529 fs/xfs/libxfs/xfs_attr_remote.c 		dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock),
mp                530 fs/xfs/libxfs/xfs_attr_remote.c 		dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount);
mp                532 fs/xfs/libxfs/xfs_attr_remote.c 		bp = xfs_buf_get(mp->m_ddev_targp, dblkno, dblkcnt);
mp                537 fs/xfs/libxfs/xfs_attr_remote.c 		xfs_attr_rmtval_copyin(mp, bp, args->dp->i_ino, &offset,
mp                562 fs/xfs/libxfs/xfs_attr_remote.c 	struct xfs_mount	*mp = args->dp->i_mount;
mp                594 fs/xfs/libxfs/xfs_attr_remote.c 		dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock),
mp                595 fs/xfs/libxfs/xfs_attr_remote.c 		dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount);
mp                600 fs/xfs/libxfs/xfs_attr_remote.c 		bp = xfs_buf_incore(mp->m_ddev_targp, dblkno, dblkcnt, XBF_TRYLOCK);
mp                  9 fs/xfs/libxfs/xfs_attr_remote.h int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
mp                 51 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                 84 fs/xfs/libxfs/xfs_bmap.c 	minleafrecs = mp->m_bmap_dmnr[0];
mp                 85 fs/xfs/libxfs/xfs_bmap.c 	minnoderecs = mp->m_bmap_dmnr[1];
mp                 93 fs/xfs/libxfs/xfs_bmap.c 	mp->m_bm_maxlevels[whichfork] = level;
mp                165 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t	*mp;		/* mount structure */
mp                168 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp                169 fs/xfs/libxfs/xfs_bmap.c 	maxrecs = mp->m_bmap_dmxr[0];
mp                171 fs/xfs/libxfs/xfs_bmap.c 	     level < XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK);
mp                177 fs/xfs/libxfs/xfs_bmap.c 			return rval + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) -
mp                180 fs/xfs/libxfs/xfs_bmap.c 			maxrecs = mp->m_bmap_dmxr[1];
mp                192 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                195 fs/xfs/libxfs/xfs_bmap.c 	if (mp->m_sb.sb_inodesize == 256) {
mp                196 fs/xfs/libxfs/xfs_bmap.c 		offset = XFS_LITINO(mp, ip->i_d.di_version) -
mp                202 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(offset < XFS_LITINO(mp, ip->i_d.di_version));
mp                260 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t		*mp,
mp                272 fs/xfs/libxfs/xfs_bmap.c 		dmxr = mp->m_bmap_dmxr[0];
mp                273 fs/xfs/libxfs/xfs_bmap.c 		keyp = XFS_BMBT_KEY_ADDR(mp, block, i);
mp                285 fs/xfs/libxfs/xfs_bmap.c 			pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, i, sz);
mp                287 fs/xfs/libxfs/xfs_bmap.c 			pp = XFS_BMBT_PTR_ADDR(mp, block, i, dmxr);
mp                291 fs/xfs/libxfs/xfs_bmap.c 				thispa = XFS_BMAP_BROOT_PTR_ADDR(mp, block, j, sz);
mp                293 fs/xfs/libxfs/xfs_bmap.c 				thispa = XFS_BMBT_PTR_ADDR(mp, block, j, dmxr);
mp                295 fs/xfs/libxfs/xfs_bmap.c 				xfs_warn(mp, "%s: thispa(%d) == pp(%d) %Ld",
mp                298 fs/xfs/libxfs/xfs_bmap.c 				xfs_err(mp, "%s: ptrs are equal in node\n",
mp                300 fs/xfs/libxfs/xfs_bmap.c 				xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp                326 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t		*mp;	/* file system mount structure */
mp                342 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp                350 fs/xfs/libxfs/xfs_bmap.c 	xfs_check_block(block, mp, 1, ifp->if_broot_bytes);
mp                351 fs/xfs/libxfs/xfs_bmap.c 	pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, 1, ifp->if_broot_bytes);
mp                355 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
mp                356 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
mp                365 fs/xfs/libxfs/xfs_bmap.c 		bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno));
mp                368 fs/xfs/libxfs/xfs_bmap.c 			error = xfs_btree_read_bufl(mp, NULL, bno, &bp,
mp                383 fs/xfs/libxfs/xfs_bmap.c 		xfs_check_block(block, mp, 0, 0);
mp                384 fs/xfs/libxfs/xfs_bmap.c 		pp = XFS_BMBT_PTR_ADDR(mp, block, 1, mp->m_bmap_dmxr[1]);
mp                386 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp,
mp                387 fs/xfs/libxfs/xfs_bmap.c 					xfs_verify_fsbno(mp, bno), error0);
mp                421 fs/xfs/libxfs/xfs_bmap.c 		ep = XFS_BMBT_REC_ADDR(mp, block, 1);
mp                428 fs/xfs/libxfs/xfs_bmap.c 			nextp = XFS_BMBT_REC_ADDR(mp, block, j + 1);
mp                449 fs/xfs/libxfs/xfs_bmap.c 		bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno));
mp                452 fs/xfs/libxfs/xfs_bmap.c 			error = xfs_btree_read_bufl(mp, NULL, bno, &bp,
mp                464 fs/xfs/libxfs/xfs_bmap.c 	xfs_warn(mp, "%s: at error0", __func__);
mp                468 fs/xfs/libxfs/xfs_bmap.c 	xfs_warn(mp, "%s: BAD after btree leaves for %d extents",
mp                470 fs/xfs/libxfs/xfs_bmap.c 	xfs_err(mp, "%s: CORRUPTED BTREE OR SOMETHING", __func__);
mp                471 fs/xfs/libxfs/xfs_bmap.c 	xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp                539 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                547 fs/xfs/libxfs/xfs_bmap.c 	agno = XFS_FSB_TO_AGNO(mp, bno);
mp                548 fs/xfs/libxfs/xfs_bmap.c 	agbno = XFS_FSB_TO_AGBNO(mp, bno);
mp                549 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(agno < mp->m_sb.sb_agcount);
mp                550 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(agbno < mp->m_sb.sb_agblocks);
mp                551 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(len < mp->m_sb.sb_agblocks);
mp                552 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(agbno + len <= mp->m_sb.sb_agblocks);
mp                590 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                609 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, 0) == 1);
mp                611 fs/xfs/libxfs/xfs_bmap.c 	pp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, ifp->if_broot_bytes);
mp                617 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_btree_read_bufl(mp, tp, cbno, &cbp, XFS_BMAP_BTREE_REF,
mp                661 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp;		/* mount structure */
mp                667 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp                683 fs/xfs/libxfs/xfs_bmap.c 	xfs_btree_init_block_int(mp, block, XFS_BUF_DADDR_NULL,
mp                689 fs/xfs/libxfs/xfs_bmap.c 	cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
mp                697 fs/xfs/libxfs/xfs_bmap.c 	args.mp = mp;
mp                701 fs/xfs/libxfs/xfs_bmap.c 		args.fsbno = XFS_INO_TO_FSB(mp, ip->i_ino);
mp                725 fs/xfs/libxfs/xfs_bmap.c 	       args.agno >= XFS_FSB_TO_AGNO(mp, tp->t_firstblock));
mp                730 fs/xfs/libxfs/xfs_bmap.c 	abp = xfs_btree_get_bufl(mp, tp, args.fsbno);
mp                741 fs/xfs/libxfs/xfs_bmap.c 	xfs_btree_init_block_int(mp, ablock, abp->b_bn,
mp                748 fs/xfs/libxfs/xfs_bmap.c 		arp = XFS_BMBT_REC_ADDR(mp, ablock, 1 + cnt);
mp                758 fs/xfs/libxfs/xfs_bmap.c 	kp = XFS_BMBT_KEY_ADDR(mp, block, 1);
mp                759 fs/xfs/libxfs/xfs_bmap.c 	arp = XFS_BMBT_REC_ADDR(mp, ablock, 1);
mp                761 fs/xfs/libxfs/xfs_bmap.c 	pp = XFS_BMBT_PTR_ADDR(mp, block, 1, xfs_bmbt_get_maxrecs(cur,
mp                855 fs/xfs/libxfs/xfs_bmap.c 	args.mp = ip->i_mount;
mp                862 fs/xfs/libxfs/xfs_bmap.c 		args.fsbno = XFS_INO_TO_FSB(args.mp, ip->i_ino);
mp                878 fs/xfs/libxfs/xfs_bmap.c 	bp = xfs_btree_get_bufl(args.mp, tp, args.fsbno);
mp                927 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t		*mp;		/* file system mount struct */
mp                930 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp                934 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, XFS_DATA_FORK);
mp                939 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, stat == 1, error0);
mp               1059 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t		*mp;		/* mount structure */
mp               1068 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp               1069 fs/xfs/libxfs/xfs_bmap.c 	ASSERT(!XFS_NOT_DQATTACHED(mp, ip));
mp               1071 fs/xfs/libxfs/xfs_bmap.c 	blks = XFS_ADDAFORK_SPACE_RES(mp);
mp               1073 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_addafork, blks, 0,
mp               1125 fs/xfs/libxfs/xfs_bmap.c 	if (!xfs_sb_version_hasattr(&mp->m_sb) ||
mp               1126 fs/xfs/libxfs/xfs_bmap.c 	   (!xfs_sb_version_hasattr2(&mp->m_sb) && version == 2)) {
mp               1129 fs/xfs/libxfs/xfs_bmap.c 		spin_lock(&mp->m_sb_lock);
mp               1130 fs/xfs/libxfs/xfs_bmap.c 		if (!xfs_sb_version_hasattr(&mp->m_sb)) {
mp               1131 fs/xfs/libxfs/xfs_bmap.c 			xfs_sb_version_addattr(&mp->m_sb);
mp               1134 fs/xfs/libxfs/xfs_bmap.c 		if (!xfs_sb_version_hasattr2(&mp->m_sb) && version == 2) {
mp               1135 fs/xfs/libxfs/xfs_bmap.c 			xfs_sb_version_addattr2(&mp->m_sb);
mp               1138 fs/xfs/libxfs/xfs_bmap.c 		spin_unlock(&mp->m_sb_lock);
mp               1166 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1183 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp               1192 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp               1195 fs/xfs/libxfs/xfs_bmap.c 	pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, 1, ifp->if_broot_bytes);
mp               1203 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_btree_read_bufl(mp, tp, bno, &bp,
mp               1210 fs/xfs/libxfs/xfs_bmap.c 		pp = XFS_BMBT_PTR_ADDR(mp, block, 1, mp->m_bmap_dmxr[1]);
mp               1212 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp,
mp               1213 fs/xfs/libxfs/xfs_bmap.c 			xfs_verify_fsbno(mp, bno), out_brelse);
mp               1247 fs/xfs/libxfs/xfs_bmap.c 			xfs_btree_reada_bufl(mp, nextbno, 1,
mp               1252 fs/xfs/libxfs/xfs_bmap.c 		frp = XFS_BMBT_REC_ADDR(mp, block, 1);
mp               1276 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_btree_read_bufl(mp, tp, bno, &bp,
mp               1546 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp;
mp               1550 fs/xfs/libxfs/xfs_bmap.c 	mp = bma->ip->i_mount;
mp               1560 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_add_exlist);
mp               1655 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1659 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1663 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1689 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1719 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1744 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               1748 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1779 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1800 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               1804 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1845 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1877 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               1881 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1957 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               1961 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2007 fs/xfs/libxfs/xfs_bmap.c 		xfs_mod_delalloc(mp, (int64_t)da_new - da_old);
mp               2017 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_mod_fdblocks(mp, (int64_t)(da_old - da_new),
mp               2053 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               2063 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_add_exlist);
mp               2155 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2158 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2161 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2164 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2167 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2193 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2196 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2199 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2228 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2231 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2234 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2257 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2287 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2321 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2328 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2355 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2389 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2396 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               2399 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2433 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2442 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2451 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               2455 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2473 fs/xfs/libxfs/xfs_bmap.c 	xfs_rmap_convert_extent(mp, tp, ip, whichfork, new);
mp               2657 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               2670 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_add_exlist);
mp               2738 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2742 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2746 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2772 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2799 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2822 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               2826 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               2867 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t	*mp,
mp               2986 fs/xfs/libxfs/xfs_bmap.c 	if (rt && (temp = (align_alen % mp->m_sb.sb_rextsize))) {
mp               3013 fs/xfs/libxfs/xfs_bmap.c 			align_alen -= align_alen % mp->m_sb.sb_rextsize;
mp               3047 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t	*mp;		/* mount point structure */
mp               3053 fs/xfs/libxfs/xfs_bmap.c 		(x) < mp->m_sb.sb_rblocks : \
mp               3054 fs/xfs/libxfs/xfs_bmap.c 		XFS_FSB_TO_AGNO(mp, x) == XFS_FSB_TO_AGNO(mp, y) && \
mp               3055 fs/xfs/libxfs/xfs_bmap.c 		XFS_FSB_TO_AGNO(mp, x) < mp->m_sb.sb_agcount && \
mp               3056 fs/xfs/libxfs/xfs_bmap.c 		XFS_FSB_TO_AGBNO(mp, x) < mp->m_sb.sb_agblocks)
mp               3058 fs/xfs/libxfs/xfs_bmap.c 	mp = ap->ip->i_mount;
mp               3062 fs/xfs/libxfs/xfs_bmap.c 	fb_agno = nullfb ? NULLAGNUMBER : XFS_FSB_TO_AGNO(mp,
mp               3127 fs/xfs/libxfs/xfs_bmap.c 			    XFS_FSB_TO_AGNO(mp, prevbno) != fb_agno)
mp               3169 fs/xfs/libxfs/xfs_bmap.c 			    XFS_FSB_TO_AGNO(mp, gotbno) != fb_agno)
mp               3198 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               3203 fs/xfs/libxfs/xfs_bmap.c 	pag = xfs_perag_get(mp, ag);
mp               3205 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_alloc_pagf_init(mp, tp, ag, XFS_ALLOC_FLAG_TRYLOCK);
mp               3216 fs/xfs/libxfs/xfs_bmap.c 				xfs_alloc_min_freelist(mp, pag),
mp               3260 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ap->ip->i_mount;
mp               3268 fs/xfs/libxfs/xfs_bmap.c 	startag = ag = XFS_FSB_TO_AGNO(mp, args->fsbno);
mp               3278 fs/xfs/libxfs/xfs_bmap.c 		if (++ag == mp->m_sb.sb_agcount)
mp               3294 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ap->ip->i_mount;
mp               3302 fs/xfs/libxfs/xfs_bmap.c 	ag = XFS_FSB_TO_AGNO(mp, args->fsbno);
mp               3328 fs/xfs/libxfs/xfs_bmap.c 	ap->blkno = args->fsbno = XFS_AGB_TO_FSB(mp, ag, 0);
mp               3383 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t	*mp;		/* mount point structure */
mp               3403 fs/xfs/libxfs/xfs_bmap.c 	mp = ap->ip->i_mount;
mp               3407 fs/xfs/libxfs/xfs_bmap.c 	if (mp->m_swidth && (mp->m_flags & XFS_MOUNT_SWALLOC))
mp               3408 fs/xfs/libxfs/xfs_bmap.c 		stripe_align = mp->m_swidth;
mp               3409 fs/xfs/libxfs/xfs_bmap.c 	else if (mp->m_dalign)
mp               3410 fs/xfs/libxfs/xfs_bmap.c 		stripe_align = mp->m_dalign;
mp               3417 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev,
mp               3426 fs/xfs/libxfs/xfs_bmap.c 	fb_agno = nullfb ? NULLAGNUMBER : XFS_FSB_TO_AGNO(mp,
mp               3433 fs/xfs/libxfs/xfs_bmap.c 			ap->blkno = XFS_AGB_TO_FSB(mp, ag, 0);
mp               3435 fs/xfs/libxfs/xfs_bmap.c 			ap->blkno = XFS_INO_TO_FSB(mp, ap->ip->i_ino);
mp               3446 fs/xfs/libxfs/xfs_bmap.c 	if (nullfb || XFS_FSB_TO_AGNO(mp, ap->blkno) == fb_agno)
mp               3456 fs/xfs/libxfs/xfs_bmap.c 	args.mp = mp;
mp               3461 fs/xfs/libxfs/xfs_bmap.c 	args.maxlen = min(ap->length, mp->m_ag_max_usable);
mp               3493 fs/xfs/libxfs/xfs_bmap.c 	} else if (mp->m_sb.sb_blocksize >= PAGE_SIZE) {
mp               3497 fs/xfs/libxfs/xfs_bmap.c 		args.prod = PAGE_SIZE >> mp->m_sb.sb_blocklog;
mp               3611 fs/xfs/libxfs/xfs_bmap.c 		       XFS_FSB_TO_AGNO(mp, ap->tp->t_firstblock) <=
mp               3612 fs/xfs/libxfs/xfs_bmap.c 		       XFS_FSB_TO_AGNO(mp, args.fsbno));
mp               3802 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               3821 fs/xfs/libxfs/xfs_bmap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp               3822 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT("xfs_bmapi_read", XFS_ERRLEVEL_LOW, mp);
mp               3826 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               3829 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_blk_mapr);
mp               3850 fs/xfs/libxfs/xfs_bmap.c 		xfs_alert(mp, "%s: inode %llu missing fork %d",
mp               3925 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               3950 fs/xfs/libxfs/xfs_bmap.c 		error = xfs_bmap_extsize_align(mp, got, &prev, extsz, 0, eof,
mp               3972 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_mod_fdblocks(mp, -((int64_t)alen), false);
mp               3976 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_mod_fdblocks(mp, -((int64_t)indlen), false);
mp               4004 fs/xfs/libxfs/xfs_bmap.c 	xfs_mod_fdblocks(mp, alen, false);
mp               4006 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_IS_QUOTA_ON(mp))
mp               4016 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = bma->ip->i_mount;
mp               4063 fs/xfs/libxfs/xfs_bmap.c 	if (mp->m_dalign && bma->length >= mp->m_dalign &&
mp               4077 fs/xfs/libxfs/xfs_bmap.c 		bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork);
mp               4271 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               4318 fs/xfs/libxfs/xfs_bmap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp               4319 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT("xfs_bmapi_write", XFS_ERRLEVEL_LOW, mp);
mp               4323 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               4328 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_blk_mapw);
mp               4464 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               4473 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, 0, 0,
mp               4527 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, bma.length));
mp               4528 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_xstrat_quick);
mp               4564 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               4584 fs/xfs/libxfs/xfs_bmap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp               4585 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT("xfs_bmapi_remap", XFS_ERRLEVEL_LOW, mp);
mp               4589 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               4608 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
mp               4733 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               4743 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_del_exlist);
mp               4756 fs/xfs/libxfs/xfs_bmap.c 		uint64_t rtexts = XFS_FSB_TO_B(mp, del->br_blockcount);
mp               4758 fs/xfs/libxfs/xfs_bmap.c 		do_div(rtexts, mp->m_sb.sb_rextsize);
mp               4759 fs/xfs/libxfs/xfs_bmap.c 		xfs_mod_frextents(mp, rtexts);
mp               4848 fs/xfs/libxfs/xfs_bmap.c 		xfs_mod_fdblocks(mp, da_diff, false);
mp               4849 fs/xfs/libxfs/xfs_bmap.c 		xfs_mod_delalloc(mp, -da_diff);
mp               4861 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               4867 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_del_exlist);
mp               4949 fs/xfs/libxfs/xfs_bmap.c 	xfs_mount_t		*mp;	/* mount structure */
mp               4957 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp               4958 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_del_exlist);
mp               4992 fs/xfs/libxfs/xfs_bmap.c 		bno = div_u64_rem(del->br_startblock, mp->m_sb.sb_rextsize,
mp               4995 fs/xfs/libxfs/xfs_bmap.c 		len = div_u64_rem(del->br_blockcount, mp->m_sb.sb_rextsize,
mp               5003 fs/xfs/libxfs/xfs_bmap.c 		nblks = len * mp->m_sb.sb_rextsize;
mp               5016 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               5040 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               5111 fs/xfs/libxfs/xfs_bmap.c 				XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               5128 fs/xfs/libxfs/xfs_bmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               5195 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp;		/* mount structure */
mp               5219 fs/xfs/libxfs/xfs_bmap.c 	mp = ip->i_mount;
mp               5220 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               5244 fs/xfs/libxfs/xfs_bmap.c 	XFS_STATS_INC(mp, xs_blk_unmap);
mp               5257 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
mp               5266 fs/xfs/libxfs/xfs_bmap.c 		xfs_ilock(mp->m_rbmip, XFS_ILOCK_EXCL|XFS_ILOCK_RTBITMAP);
mp               5267 fs/xfs/libxfs/xfs_bmap.c 		xfs_trans_ijoin(tp, mp->m_rbmip, XFS_ILOCK_EXCL);
mp               5268 fs/xfs/libxfs/xfs_bmap.c 		xfs_ilock(mp->m_rsumip, XFS_ILOCK_EXCL|XFS_ILOCK_RTSUM);
mp               5269 fs/xfs/libxfs/xfs_bmap.c 		xfs_trans_ijoin(tp, mp->m_rsumip, XFS_ILOCK_EXCL);
mp               5304 fs/xfs/libxfs/xfs_bmap.c 			agno = XFS_FSB_TO_AGNO(mp, del.br_startblock);
mp               5330 fs/xfs/libxfs/xfs_bmap.c 		div_u64_rem(sum, mp->m_sb.sb_rextsize, &mod);
mp               5377 fs/xfs/libxfs/xfs_bmap.c 		div_u64_rem(del.br_startblock, mp->m_sb.sb_rextsize, &mod);
mp               5384 fs/xfs/libxfs/xfs_bmap.c 			mod = mp->m_sb.sb_rextsize - mod;
mp               5586 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount		*mp = ip->i_mount;
mp               5613 fs/xfs/libxfs/xfs_bmap.c 	XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp               5618 fs/xfs/libxfs/xfs_bmap.c 	XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp               5624 fs/xfs/libxfs/xfs_bmap.c 	XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp               5660 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               5672 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
mp               5699 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               5711 fs/xfs/libxfs/xfs_bmap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp               5712 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp               5716 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               5728 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
mp               5736 fs/xfs/libxfs/xfs_bmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, !isnullstartblock(got.br_startblock),
mp               5817 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               5829 fs/xfs/libxfs/xfs_bmap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp               5830 fs/xfs/libxfs/xfs_bmap.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp               5834 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               5846 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
mp               5863 fs/xfs/libxfs/xfs_bmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, !isnullstartblock(got.br_startblock),
mp               5924 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount		*mp = ip->i_mount;
mp               5935 fs/xfs/libxfs/xfs_bmap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp               5937 fs/xfs/libxfs/xfs_bmap.c 				 XFS_ERRLEVEL_LOW, mp);
mp               5941 fs/xfs/libxfs/xfs_bmap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               5966 fs/xfs/libxfs/xfs_bmap.c 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
mp               5971 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, del_cursor);
mp               5996 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 0, del_cursor);
mp               6000 fs/xfs/libxfs/xfs_bmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, del_cursor);
mp               6031 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount        *mp = ip->i_mount;
mp               6035 fs/xfs/libxfs/xfs_bmap.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write,
mp               6036 fs/xfs/libxfs/xfs_bmap.c 			XFS_DIOSTRAT_SPACE_RES(mp, 0), 0, 0, &tp);
mp               6176 fs/xfs/libxfs/xfs_bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               6183 fs/xfs/libxfs/xfs_bmap.c 		if (!xfs_verify_rtbno(mp, irec->br_startblock))
mp               6185 fs/xfs/libxfs/xfs_bmap.c 		if (!xfs_verify_rtbno(mp, endfsb))
mp               6188 fs/xfs/libxfs/xfs_bmap.c 		if (!xfs_verify_fsbno(mp, irec->br_startblock))
mp               6190 fs/xfs/libxfs/xfs_bmap.c 		if (!xfs_verify_fsbno(mp, endfsb))
mp               6192 fs/xfs/libxfs/xfs_bmap.c 		if (XFS_FSB_TO_AGNO(mp, irec->br_startblock) !=
mp               6193 fs/xfs/libxfs/xfs_bmap.c 		    XFS_FSB_TO_AGNO(mp, endfsb))
mp                190 fs/xfs/libxfs/xfs_bmap.h void	xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork);
mp                 36 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 43 fs/xfs/libxfs/xfs_bmap_btree.c 	xfs_btree_init_block_int(mp, rblock, XFS_BUF_DADDR_NULL,
mp                 51 fs/xfs/libxfs/xfs_bmap_btree.c 	tkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1);
mp                 53 fs/xfs/libxfs/xfs_bmap_btree.c 	tpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen);
mp                127 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp,
mp                139 fs/xfs/libxfs/xfs_bmap_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                142 fs/xfs/libxfs/xfs_bmap_btree.c 		       &mp->m_sb.sb_meta_uuid));
mp                153 fs/xfs/libxfs/xfs_bmap_btree.c 	fkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1);
mp                155 fs/xfs/libxfs/xfs_bmap_btree.c 	fpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen);
mp                206 fs/xfs/libxfs/xfs_bmap_btree.c 	args.mp = cur->bc_mp;
mp                282 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                285 fs/xfs/libxfs/xfs_bmap_btree.c 	xfs_fsblock_t		fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp));
mp                423 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                431 fs/xfs/libxfs/xfs_bmap_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                449 fs/xfs/libxfs/xfs_bmap_btree.c 	if (level > max(mp->m_bm_maxlevels[0], mp->m_bm_maxlevels[1]))
mp                452 fs/xfs/libxfs/xfs_bmap_btree.c 	return xfs_btree_lblock_verify(bp, mp->m_bmap_dmxr[level != 0]);
mp                546 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                558 fs/xfs/libxfs/xfs_bmap_btree.c 	cur->bc_mp = mp;
mp                561 fs/xfs/libxfs/xfs_bmap_btree.c 	cur->bc_blocklog = mp->m_sb.sb_blocklog;
mp                566 fs/xfs/libxfs/xfs_bmap_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                583 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp,
mp                587 fs/xfs/libxfs/xfs_bmap_btree.c 	blocklen -= XFS_BMBT_BLOCK_LEN(mp);
mp                657 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_mount	*mp,
mp                660 fs/xfs/libxfs/xfs_bmap_btree.c 	return xfs_btree_calc_size(mp->m_bmap_dmnr, len);
mp                 18 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMBT_BLOCK_LEN(mp) \
mp                 19 fs/xfs/libxfs/xfs_bmap_btree.h 	(xfs_sb_version_hascrc(&((mp)->m_sb)) ? \
mp                 22 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMBT_REC_ADDR(mp, block, index) \
mp                 25 fs/xfs/libxfs/xfs_bmap_btree.h 		 XFS_BMBT_BLOCK_LEN(mp) + \
mp                 28 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMBT_KEY_ADDR(mp, block, index) \
mp                 31 fs/xfs/libxfs/xfs_bmap_btree.h 		 XFS_BMBT_BLOCK_LEN(mp) + \
mp                 34 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \
mp                 37 fs/xfs/libxfs/xfs_bmap_btree.h 		 XFS_BMBT_BLOCK_LEN(mp) + \
mp                 64 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMAP_BROOT_PTR_ADDR(mp, bb, i, sz) \
mp                 65 fs/xfs/libxfs/xfs_bmap_btree.h 	XFS_BMBT_PTR_ADDR(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, 0))
mp                 67 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMAP_BROOT_SPACE_CALC(mp, nrecs) \
mp                 68 fs/xfs/libxfs/xfs_bmap_btree.h 	(int)(XFS_BMBT_BLOCK_LEN(mp) + \
mp                 71 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BMAP_BROOT_SPACE(mp, bb) \
mp                 72 fs/xfs/libxfs/xfs_bmap_btree.h 	(XFS_BMAP_BROOT_SPACE_CALC(mp, be16_to_cpu((bb)->bb_numrecs)))
mp                 82 fs/xfs/libxfs/xfs_bmap_btree.h #define XFS_BM_MAXLEVELS(mp,w)		((mp)->m_bm_maxlevels[(w)])
mp                109 fs/xfs/libxfs/xfs_bmap_btree.h extern unsigned long long xfs_bmbt_calc_size(struct xfs_mount *mp,
mp                 63 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                 65 fs/xfs/libxfs/xfs_btree.c 	int			crc = xfs_sb_version_hascrc(&mp->m_sb);
mp                 68 fs/xfs/libxfs/xfs_btree.c 		if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid))
mp                104 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                108 fs/xfs/libxfs/xfs_btree.c 	if (unlikely(XFS_TEST_ERROR(fa != NULL, mp,
mp                112 fs/xfs/libxfs/xfs_btree.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp                129 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                131 fs/xfs/libxfs/xfs_btree.c 	int			crc = xfs_sb_version_hascrc(&mp->m_sb);
mp                134 fs/xfs/libxfs/xfs_btree.c 		if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid))
mp                168 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                172 fs/xfs/libxfs/xfs_btree.c 	if (unlikely(XFS_TEST_ERROR(fa != NULL, mp,
mp                176 fs/xfs/libxfs/xfs_btree.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp                288 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                290 fs/xfs/libxfs/xfs_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                291 fs/xfs/libxfs/xfs_btree.c 		if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.l.bb_lsn)))
mp                326 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                328 fs/xfs/libxfs/xfs_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                329 fs/xfs/libxfs/xfs_btree.c 		if (!xfs_log_check_lsn(mp, be64_to_cpu(block->bb_u.s.bb_lsn)))
mp                402 fs/xfs/libxfs/xfs_btree.c 	xfs_mount_t	*mp;		/* mount structure for filesystem */
mp                407 fs/xfs/libxfs/xfs_btree.c 	mp = cur->bc_mp;
mp                427 fs/xfs/libxfs/xfs_btree.c 			error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp,
mp                428 fs/xfs/libxfs/xfs_btree.c 						   XFS_BUF_ADDR(bp), mp->m_bsize,
mp                689 fs/xfs/libxfs/xfs_btree.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                696 fs/xfs/libxfs/xfs_btree.c 	d = XFS_FSB_TO_DADDR(mp, fsbno);
mp                697 fs/xfs/libxfs/xfs_btree.c 	return xfs_trans_get_buf(tp, mp->m_ddev_targp, d, mp->m_bsize, 0);
mp                706 fs/xfs/libxfs/xfs_btree.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                715 fs/xfs/libxfs/xfs_btree.c 	d = XFS_AGB_TO_DADDR(mp, agno, agbno);
mp                716 fs/xfs/libxfs/xfs_btree.c 	return xfs_trans_get_buf(tp, mp->m_ddev_targp, d, mp->m_bsize, 0);
mp                840 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                851 fs/xfs/libxfs/xfs_btree.c 	if (!xfs_verify_fsbno(mp, fsbno))
mp                853 fs/xfs/libxfs/xfs_btree.c 	d = XFS_FSB_TO_DADDR(mp, fsbno);
mp                854 fs/xfs/libxfs/xfs_btree.c 	error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, d,
mp                855 fs/xfs/libxfs/xfs_btree.c 				   mp->m_bsize, 0, &bp, ops);
mp                871 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                879 fs/xfs/libxfs/xfs_btree.c 	d = XFS_FSB_TO_DADDR(mp, fsbno);
mp                880 fs/xfs/libxfs/xfs_btree.c 	xfs_buf_readahead(mp->m_ddev_targp, d, mp->m_bsize * count, ops);
mp                890 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                900 fs/xfs/libxfs/xfs_btree.c 	d = XFS_AGB_TO_DADDR(mp, agno, agbno);
mp                901 fs/xfs/libxfs/xfs_btree.c 	xfs_buf_readahead(mp->m_ddev_targp, d, mp->m_bsize * count, ops);
mp               1134 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp,
mp               1143 fs/xfs/libxfs/xfs_btree.c 	int			crc = xfs_sb_version_hascrc(&mp->m_sb);
mp               1156 fs/xfs/libxfs/xfs_btree.c 			uuid_copy(&buf->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid);
mp               1169 fs/xfs/libxfs/xfs_btree.c 			uuid_copy(&buf->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid);
mp               1177 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount *mp,
mp               1184 fs/xfs/libxfs/xfs_btree.c 	xfs_btree_init_block_int(mp, XFS_BUF_TO_BLOCK(bp), bp->b_bn,
mp               1287 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp               1294 fs/xfs/libxfs/xfs_btree.c 	*bpp = xfs_trans_get_buf(cur->bc_tp, mp->m_ddev_targp, d,
mp               1295 fs/xfs/libxfs/xfs_btree.c 				 mp->m_bsize, 0);
mp               1317 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp               1327 fs/xfs/libxfs/xfs_btree.c 	error = xfs_trans_read_buf(mp, cur->bc_tp, mp->m_ddev_targp, d,
mp               1328 fs/xfs/libxfs/xfs_btree.c 				   mp->m_bsize, flags, bpp,
mp               4425 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp               4428 fs/xfs/libxfs/xfs_btree.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               4430 fs/xfs/libxfs/xfs_btree.c 	if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid))
mp               4446 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp               4455 fs/xfs/libxfs/xfs_btree.c 	    !xfs_verify_fsbno(mp, be64_to_cpu(block->bb_u.l.bb_leftsib)))
mp               4458 fs/xfs/libxfs/xfs_btree.c 	    !xfs_verify_fsbno(mp, be64_to_cpu(block->bb_u.l.bb_rightsib)))
mp               4474 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp               4478 fs/xfs/libxfs/xfs_btree.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               4480 fs/xfs/libxfs/xfs_btree.c 	if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid))
mp               4500 fs/xfs/libxfs/xfs_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp               4509 fs/xfs/libxfs/xfs_btree.c 	agno = xfs_daddr_to_agno(mp, XFS_BUF_ADDR(bp));
mp               4511 fs/xfs/libxfs/xfs_btree.c 	    !xfs_verify_agbno(mp, agno, be32_to_cpu(block->bb_u.s.bb_leftsib)))
mp               4514 fs/xfs/libxfs/xfs_btree.c 	    !xfs_verify_agbno(mp, agno, be32_to_cpu(block->bb_u.s.bb_rightsib)))
mp                302 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount	*mp,	/* file system mount point */
mp                312 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount	*mp,	/* file system mount point */
mp                343 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount	*mp,	/* file system mount point */
mp                356 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount	*mp,	/* file system mount point */
mp                367 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount	*mp,	/* file system mount point */
mp                378 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount *mp,
mp                387 fs/xfs/libxfs/xfs_btree.h 	struct xfs_mount	*mp,
mp                123 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                129 fs/xfs/libxfs/xfs_da_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                130 fs/xfs/libxfs/xfs_da_btree.c 		if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid))
mp                134 fs/xfs/libxfs/xfs_da_btree.c 		if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn)))
mp                145 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                151 fs/xfs/libxfs/xfs_da_btree.c 	ops = xfs_dir_get_ops(mp, NULL);
mp                170 fs/xfs/libxfs/xfs_da_btree.c 	if (ichdr.count > mp->m_dir_geo->node_ents &&
mp                171 fs/xfs/libxfs/xfs_da_btree.c 	    ichdr.count > mp->m_attr_geo->node_ents)
mp                183 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                194 fs/xfs/libxfs/xfs_da_btree.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                337 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp = tp->t_mountp;
mp                353 fs/xfs/libxfs/xfs_da_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                360 fs/xfs/libxfs/xfs_da_btree.c 		uuid_copy(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid);
mp               2186 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp;
mp               2211 fs/xfs/libxfs/xfs_da_btree.c 	mp = dp->i_mount;
mp               2218 fs/xfs/libxfs/xfs_da_btree.c 				 mp);
mp               2269 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2291 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2314 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2327 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2354 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2365 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2469 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp,
mp               2494 fs/xfs/libxfs/xfs_da_btree.c 		map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock);
mp               2495 fs/xfs/libxfs/xfs_da_btree.c 		map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount);
mp               2517 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_mount	*mp = dp->i_mount;
mp               2528 fs/xfs/libxfs/xfs_da_btree.c 		nfsb = mp->m_dir_geo->fsbcount;
mp               2530 fs/xfs/libxfs/xfs_da_btree.c 		nfsb = mp->m_attr_geo->fsbcount;
mp               2550 fs/xfs/libxfs/xfs_da_btree.c 		irecs->br_startblock = XFS_DADDR_TO_FSB(mp, mappedbno);
mp               2562 fs/xfs/libxfs/xfs_da_btree.c 				xfs_alert(mp, "%s: bno %lld dir: inode %lld",
mp               2566 fs/xfs/libxfs/xfs_da_btree.c 					xfs_alert(mp,
mp               2576 fs/xfs/libxfs/xfs_da_btree.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2580 fs/xfs/libxfs/xfs_da_btree.c 	error = xfs_buf_map_from_irec(mp, map, nmaps, irecs, nirecs);
mp                117 fs/xfs/libxfs/xfs_da_btree.h 	struct xfs_mount	*mp;		/* filesystem mount point */
mp                862 fs/xfs/libxfs/xfs_da_format.c 	struct xfs_mount	*mp,
mp                867 fs/xfs/libxfs/xfs_da_format.c 	if (mp->m_dir_inode_ops)
mp                868 fs/xfs/libxfs/xfs_da_format.c 		return mp->m_dir_inode_ops;
mp                869 fs/xfs/libxfs/xfs_da_format.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                871 fs/xfs/libxfs/xfs_da_format.c 	if (xfs_sb_version_hasftype(&mp->m_sb))
mp                878 fs/xfs/libxfs/xfs_da_format.c 	struct xfs_mount	*mp,
mp                883 fs/xfs/libxfs/xfs_da_format.c 	if (mp->m_nondir_inode_ops)
mp                884 fs/xfs/libxfs/xfs_da_format.c 		return mp->m_nondir_inode_ops;
mp                885 fs/xfs/libxfs/xfs_da_format.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                862 fs/xfs/libxfs/xfs_da_format.h #define XFS_ATTR3_RMT_BUF_SPACE(mp, bufsize)	\
mp                863 fs/xfs/libxfs/xfs_da_format.h 	((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \
mp                321 fs/xfs/libxfs/xfs_defer.c 	struct xfs_mount		*mp,
mp                336 fs/xfs/libxfs/xfs_defer.c 		trace_xfs_defer_cancel_list(mp, dfp);
mp                486 fs/xfs/libxfs/xfs_defer.c 	struct xfs_mount	*mp = tp->t_mountp;
mp                489 fs/xfs/libxfs/xfs_defer.c 	xfs_defer_cancel_list(mp, &tp->t_dfops);
mp                 99 fs/xfs/libxfs/xfs_dir2.c 	struct xfs_mount	*mp)
mp                105 fs/xfs/libxfs/xfs_dir2.c 	ASSERT(mp->m_sb.sb_versionnum & XFS_SB_VERSION_DIRV2BIT);
mp                106 fs/xfs/libxfs/xfs_dir2.c 	ASSERT(xfs_dir2_dirblock_bytes(&mp->m_sb) <= XFS_MAX_BLOCKSIZE);
mp                108 fs/xfs/libxfs/xfs_dir2.c 	mp->m_dir_inode_ops = xfs_dir_get_ops(mp, NULL);
mp                109 fs/xfs/libxfs/xfs_dir2.c 	mp->m_nondir_inode_ops = xfs_nondir_get_ops(mp, NULL);
mp                111 fs/xfs/libxfs/xfs_dir2.c 	nodehdr_size = mp->m_dir_inode_ops->node_hdr_size;
mp                112 fs/xfs/libxfs/xfs_dir2.c 	mp->m_dir_geo = kmem_zalloc(sizeof(struct xfs_da_geometry),
mp                114 fs/xfs/libxfs/xfs_dir2.c 	mp->m_attr_geo = kmem_zalloc(sizeof(struct xfs_da_geometry),
mp                116 fs/xfs/libxfs/xfs_dir2.c 	if (!mp->m_dir_geo || !mp->m_attr_geo) {
mp                117 fs/xfs/libxfs/xfs_dir2.c 		kmem_free(mp->m_dir_geo);
mp                118 fs/xfs/libxfs/xfs_dir2.c 		kmem_free(mp->m_attr_geo);
mp                123 fs/xfs/libxfs/xfs_dir2.c 	dageo = mp->m_dir_geo;
mp                124 fs/xfs/libxfs/xfs_dir2.c 	dageo->blklog = mp->m_sb.sb_blocklog + mp->m_sb.sb_dirblklog;
mp                125 fs/xfs/libxfs/xfs_dir2.c 	dageo->fsblog = mp->m_sb.sb_blocklog;
mp                126 fs/xfs/libxfs/xfs_dir2.c 	dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb);
mp                127 fs/xfs/libxfs/xfs_dir2.c 	dageo->fsbcount = 1 << mp->m_sb.sb_dirblklog;
mp                141 fs/xfs/libxfs/xfs_dir2.c 	dageo = mp->m_attr_geo;
mp                142 fs/xfs/libxfs/xfs_dir2.c 	dageo->blklog = mp->m_sb.sb_blocklog;
mp                143 fs/xfs/libxfs/xfs_dir2.c 	dageo->fsblog = mp->m_sb.sb_blocklog;
mp                150 fs/xfs/libxfs/xfs_dir2.c 	if (xfs_sb_version_hasasciici(&mp->m_sb))
mp                151 fs/xfs/libxfs/xfs_dir2.c 		mp->m_dirnameops = &xfs_ascii_ci_nameops;
mp                153 fs/xfs/libxfs/xfs_dir2.c 		mp->m_dirnameops = &xfs_default_nameops;
mp                160 fs/xfs/libxfs/xfs_dir2.c 	struct xfs_mount	*mp)
mp                162 fs/xfs/libxfs/xfs_dir2.c 	kmem_free(mp->m_dir_geo);
mp                163 fs/xfs/libxfs/xfs_dir2.c 	kmem_free(mp->m_attr_geo);
mp                189 fs/xfs/libxfs/xfs_dir2.c 	xfs_mount_t	*mp,
mp                192 fs/xfs/libxfs/xfs_dir2.c 	bool		ino_ok = xfs_verify_dir_ino(mp, ino);
mp                194 fs/xfs/libxfs/xfs_dir2.c 	if (unlikely(XFS_TEST_ERROR(!ino_ok, mp, XFS_ERRTAG_DIR_INO_VALIDATE))) {
mp                195 fs/xfs/libxfs/xfs_dir2.c 		xfs_warn(mp, "Invalid inode number 0x%Lx",
mp                197 fs/xfs/libxfs/xfs_dir2.c 		XFS_ERROR_REPORT("xfs_dir_ino_validate", XFS_ERRLEVEL_LOW, mp);
mp                555 fs/xfs/libxfs/xfs_dir2.c 	struct xfs_mount	*mp = dp->i_mount;
mp                565 fs/xfs/libxfs/xfs_dir2.c 	bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE);
mp                580 fs/xfs/libxfs/xfs_dir2.c 		size = XFS_FSB_TO_B(mp, bno + count);
mp                642 fs/xfs/libxfs/xfs_dir2.c 	struct xfs_mount	*mp;
mp                648 fs/xfs/libxfs/xfs_dir2.c 	mp = dp->i_mount;
mp                698 fs/xfs/libxfs/xfs_dir2.c 	dp->i_d.di_size = XFS_FSB_TO_B(mp, bno);
mp                104 fs/xfs/libxfs/xfs_dir2.h 	xfs_dir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
mp                106 fs/xfs/libxfs/xfs_dir2.h 	xfs_nondir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
mp                112 fs/xfs/libxfs/xfs_dir2.h extern int xfs_da_mount(struct xfs_mount *mp);
mp                113 fs/xfs/libxfs/xfs_dir2.h extern void xfs_da_unmount(struct xfs_mount *mp);
mp                169 fs/xfs/libxfs/xfs_dir2.h extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino);
mp                326 fs/xfs/libxfs/xfs_dir2.h unsigned char xfs_dir3_get_dtype(struct xfs_mount *mp, uint8_t filetype);
mp                 50 fs/xfs/libxfs/xfs_dir2_block.c 	struct xfs_mount	*mp = bp->b_mount;
mp                 56 fs/xfs/libxfs/xfs_dir2_block.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                 57 fs/xfs/libxfs/xfs_dir2_block.c 		if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid))
mp                 61 fs/xfs/libxfs/xfs_dir2_block.c 		if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn)))
mp                 71 fs/xfs/libxfs/xfs_dir2_block.c 	struct xfs_mount	*mp = bp->b_mount;
mp                 74 fs/xfs/libxfs/xfs_dir2_block.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                 88 fs/xfs/libxfs/xfs_dir2_block.c 	struct xfs_mount	*mp = bp->b_mount;
mp                 99 fs/xfs/libxfs/xfs_dir2_block.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                123 fs/xfs/libxfs/xfs_dir2_block.c 	struct xfs_mount	*mp = dp->i_mount;
mp                126 fs/xfs/libxfs/xfs_dir2_block.c 	err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, -1, bpp,
mp                135 fs/xfs/libxfs/xfs_dir2_block.c 	struct xfs_mount	*mp,
mp                145 fs/xfs/libxfs/xfs_dir2_block.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                150 fs/xfs/libxfs/xfs_dir2_block.c 		uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid);
mp                663 fs/xfs/libxfs/xfs_dir2_block.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp                669 fs/xfs/libxfs/xfs_dir2_block.c 	mp = dp->i_mount;
mp                721 fs/xfs/libxfs/xfs_dir2_block.c 		cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen);
mp                909 fs/xfs/libxfs/xfs_dir2_block.c 	xfs_mount_t		*mp;		/* file system mount point */
mp                924 fs/xfs/libxfs/xfs_dir2_block.c 	mp = dp->i_mount;
mp                984 fs/xfs/libxfs/xfs_dir2_block.c 	xfs_dir3_block_init(mp, tp, dbp, dp);
mp               1056 fs/xfs/libxfs/xfs_dir2_block.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp               1073 fs/xfs/libxfs/xfs_dir2_block.c 	mp = dp->i_mount;
mp               1080 fs/xfs/libxfs/xfs_dir2_block.c 		ASSERT(XFS_FORCED_SHUTDOWN(mp));
mp               1114 fs/xfs/libxfs/xfs_dir2_block.c 	xfs_dir3_block_init(mp, tp, bp, dp);
mp               1227 fs/xfs/libxfs/xfs_dir2_block.c 		blp[2 + i].hashval = cpu_to_be32(mp->m_dirnameops->
mp                 50 fs/xfs/libxfs/xfs_dir2_data.c 	struct xfs_mount	*mp = bp->b_mount;
mp                 57 fs/xfs/libxfs/xfs_dir2_data.c 	geo = mp->m_dir_geo;
mp                 63 fs/xfs/libxfs/xfs_dir2_data.c 	ops = xfs_dir_get_ops(mp, dp);
mp                 70 fs/xfs/libxfs/xfs_dir2_data.c 	    ops != xfs_dir_get_ops(mp, NULL))
mp                174 fs/xfs/libxfs/xfs_dir2_data.c 		if (xfs_dir_ino_validate(mp, be64_to_cpu(dep->inumber)))
mp                192 fs/xfs/libxfs/xfs_dir2_data.c 			hash = mp->m_dirnameops->hashname(&name);
mp                248 fs/xfs/libxfs/xfs_dir2_data.c 	struct xfs_mount	*mp = bp->b_mount;
mp                254 fs/xfs/libxfs/xfs_dir2_data.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                255 fs/xfs/libxfs/xfs_dir2_data.c 		if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid))
mp                259 fs/xfs/libxfs/xfs_dir2_data.c 		if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn)))
mp                297 fs/xfs/libxfs/xfs_dir2_data.c 	struct xfs_mount	*mp = bp->b_mount;
mp                300 fs/xfs/libxfs/xfs_dir2_data.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                314 fs/xfs/libxfs/xfs_dir2_data.c 	struct xfs_mount	*mp = bp->b_mount;
mp                325 fs/xfs/libxfs/xfs_dir2_data.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                645 fs/xfs/libxfs/xfs_dir2_data.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp                650 fs/xfs/libxfs/xfs_dir2_data.c 	mp = dp->i_mount;
mp                666 fs/xfs/libxfs/xfs_dir2_data.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                673 fs/xfs/libxfs/xfs_dir2_data.c 		uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid);
mp                 79 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_mount	*mp,
mp                 90 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_da_geometry	*geo = mp->m_dir_geo;
mp                 96 fs/xfs/libxfs/xfs_dir2_leaf.c 	ops = xfs_dir_get_ops(mp, dp);
mp                144 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                152 fs/xfs/libxfs/xfs_dir2_leaf.c 	return xfs_dir3_leaf_check_int(mp, NULL, NULL, leaf);
mp                159 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                162 fs/xfs/libxfs/xfs_dir2_leaf.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                176 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                187 fs/xfs/libxfs/xfs_dir2_leaf.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                253 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_mount	*mp,
mp                263 fs/xfs/libxfs/xfs_dir2_leaf.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                273 fs/xfs/libxfs/xfs_dir2_leaf.c 		uuid_copy(&leaf3->info.uuid, &mp->m_sb.sb_meta_uuid);
mp                286 fs/xfs/libxfs/xfs_dir2_leaf.c 		ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf);
mp                305 fs/xfs/libxfs/xfs_dir2_leaf.c 	struct xfs_mount	*mp = dp->i_mount;
mp                318 fs/xfs/libxfs/xfs_dir2_leaf.c 	xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic);
mp               1180 fs/xfs/libxfs/xfs_dir2_leaf.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp               1190 fs/xfs/libxfs/xfs_dir2_leaf.c 	mp = dp->i_mount;
mp               1250 fs/xfs/libxfs/xfs_dir2_leaf.c 		cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen);
mp               1646 fs/xfs/libxfs/xfs_dir2_leaf.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp               1662 fs/xfs/libxfs/xfs_dir2_leaf.c 	mp = state->mp;
mp               1696 fs/xfs/libxfs/xfs_dir2_leaf.c 	if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize)
mp                 83 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_mount	*mp = bp->b_mount;
mp                 89 fs/xfs/libxfs/xfs_dir2_node.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                 92 fs/xfs/libxfs/xfs_dir2_node.c 		if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid))
mp                 96 fs/xfs/libxfs/xfs_dir2_node.c 		if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn)))
mp                109 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_mount	*mp = bp->b_mount;
mp                112 fs/xfs/libxfs/xfs_dir2_node.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                126 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_mount	*mp = bp->b_mount;
mp                137 fs/xfs/libxfs/xfs_dir2_node.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                162 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_mount	*mp = dp->i_mount;
mp                166 fs/xfs/libxfs/xfs_dir2_node.c 	maxbests = dp->d_ops->free_max_bests(mp->m_dir_geo);
mp                167 fs/xfs/libxfs/xfs_dir2_node.c 	firstdb = (xfs_dir2_da_to_db(mp->m_dir_geo, fbno) -
mp                168 fs/xfs/libxfs/xfs_dir2_node.c 		   xfs_dir2_byte_to_db(mp->m_dir_geo, XFS_DIR2_FREE_OFFSET)) *
mp                170 fs/xfs/libxfs/xfs_dir2_node.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                251 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_mount	*mp = dp->i_mount;
mp                271 fs/xfs/libxfs/xfs_dir2_node.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                278 fs/xfs/libxfs/xfs_dir2_node.c 		uuid_copy(&hdr3->hdr.uuid, &mp->m_sb.sb_meta_uuid);
mp                575 fs/xfs/libxfs/xfs_dir2_node.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp                584 fs/xfs/libxfs/xfs_dir2_node.c 	mp = dp->i_mount;
mp                671 fs/xfs/libxfs/xfs_dir2_node.c 							XFS_ERRLEVEL_LOW, mp);
mp                727 fs/xfs/libxfs/xfs_dir2_node.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp                736 fs/xfs/libxfs/xfs_dir2_node.c 	mp = dp->i_mount;
mp                816 fs/xfs/libxfs/xfs_dir2_node.c 		cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen);
mp               1626 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_mount	*mp = dp->i_mount;
mp               1669 fs/xfs/libxfs/xfs_dir2_node.c 			xfs_alert(mp,
mp               1675 fs/xfs/libxfs/xfs_dir2_node.c 				xfs_alert(mp,
mp               1680 fs/xfs/libxfs/xfs_dir2_node.c 				xfs_alert(mp, " ... fblk is NULL");
mp               1682 fs/xfs/libxfs/xfs_dir2_node.c 			XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp               1977 fs/xfs/libxfs/xfs_dir2_node.c 	state->mp = args->dp->i_mount;
mp               2048 fs/xfs/libxfs/xfs_dir2_node.c 	state->mp = args->dp->i_mount;
mp               2101 fs/xfs/libxfs/xfs_dir2_node.c 	state->mp = args->dp->i_mount;
mp               2170 fs/xfs/libxfs/xfs_dir2_node.c 	state->mp = args->dp->i_mount;
mp                 81 fs/xfs/libxfs/xfs_dir2_priv.h extern xfs_failaddr_t xfs_dir3_leaf_check_int(struct xfs_mount *mp,
mp                 61 fs/xfs/libxfs/xfs_dir2_sf.c 	xfs_mount_t		*mp;		/* mount structure pointer */
mp                 68 fs/xfs/libxfs/xfs_dir2_sf.c 	mp = dp->i_mount;
mp                 69 fs/xfs/libxfs/xfs_dir2_sf.c 	geo = mp->m_dir_geo;
mp                 75 fs/xfs/libxfs/xfs_dir2_sf.c 	has_ftype = xfs_sb_version_hasftype(&mp->m_sb) ? 1 : 0;
mp                150 fs/xfs/libxfs/xfs_dir2_sf.c 	xfs_mount_t		*mp;		/* filesystem mount point */
mp                159 fs/xfs/libxfs/xfs_dir2_sf.c 	mp = dp->i_mount;
mp                167 fs/xfs/libxfs/xfs_dir2_sf.c 	dst = kmem_alloc(mp->m_sb.sb_inodesize, 0);
mp                620 fs/xfs/libxfs/xfs_dir2_sf.c 	struct xfs_mount		*mp = ip->i_mount;
mp                640 fs/xfs/libxfs/xfs_dir2_sf.c 	dops = xfs_dir_get_ops(mp, NULL);
mp                658 fs/xfs/libxfs/xfs_dir2_sf.c 	error = xfs_dir_ino_validate(mp, ino);
mp                694 fs/xfs/libxfs/xfs_dir2_sf.c 		error = xfs_dir_ino_validate(mp, ino);
mp                715 fs/xfs/libxfs/xfs_dir2_sf.c 	    (uint)sizeof(xfs_dir2_block_tail_t) > mp->m_dir_geo->blksize)
mp                 38 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount *mp,
mp                 96 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp,
mp                101 fs/xfs/libxfs/xfs_dquot_buf.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                102 fs/xfs/libxfs/xfs_dquot_buf.c 	    !uuid_equal(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid))
mp                105 fs/xfs/libxfs/xfs_dquot_buf.c 	return xfs_dquot_verify(mp, &dqb->dd_diskdq, id, type);
mp                113 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp,
mp                129 fs/xfs/libxfs/xfs_dquot_buf.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                130 fs/xfs/libxfs/xfs_dquot_buf.c 		uuid_copy(&dqb->dd_uuid, &mp->m_sb.sb_meta_uuid);
mp                138 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp,
mp                146 fs/xfs/libxfs/xfs_dquot_buf.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                154 fs/xfs/libxfs/xfs_dquot_buf.c 	if (mp->m_quotainfo)
mp                155 fs/xfs/libxfs/xfs_dquot_buf.c 		ndquots = mp->m_quotainfo->qi_dqperchunk;
mp                173 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp,
mp                188 fs/xfs/libxfs/xfs_dquot_buf.c 	if (mp->m_quotainfo)
mp                189 fs/xfs/libxfs/xfs_dquot_buf.c 		ndquots = mp->m_quotainfo->qi_dqperchunk;
mp                208 fs/xfs/libxfs/xfs_dquot_buf.c 		fa = xfs_dqblk_verify(mp, &dqb[i], id + i, 0);
mp                225 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                227 fs/xfs/libxfs/xfs_dquot_buf.c 	return xfs_dquot_buf_verify(mp, bp, false);
mp                234 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                236 fs/xfs/libxfs/xfs_dquot_buf.c 	if (!xfs_dquot_buf_verify_crc(mp, bp, false))
mp                238 fs/xfs/libxfs/xfs_dquot_buf.c 	xfs_dquot_buf_verify(mp, bp, false);
mp                251 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                253 fs/xfs/libxfs/xfs_dquot_buf.c 	if (!xfs_dquot_buf_verify_crc(mp, bp, true) ||
mp                254 fs/xfs/libxfs/xfs_dquot_buf.c 	    xfs_dquot_buf_verify(mp, bp, true) != NULL) {
mp                269 fs/xfs/libxfs/xfs_dquot_buf.c 	struct xfs_mount	*mp = bp->b_mount;
mp                271 fs/xfs/libxfs/xfs_dquot_buf.c 	xfs_dquot_buf_verify(mp, bp, false);
mp                562 fs/xfs/libxfs/xfs_format.h #define	XFS_SB_BLOCK(mp)	XFS_HDR_BLOCK(mp, XFS_SB_DADDR)
mp                565 fs/xfs/libxfs/xfs_format.h #define	XFS_HDR_BLOCK(mp,d)	((xfs_agblock_t)XFS_BB_TO_FSBT(mp,d))
mp                566 fs/xfs/libxfs/xfs_format.h #define	XFS_DADDR_TO_FSB(mp,d)	XFS_AGB_TO_FSB(mp, \
mp                567 fs/xfs/libxfs/xfs_format.h 			xfs_daddr_to_agno(mp,d), xfs_daddr_to_agbno(mp,d))
mp                568 fs/xfs/libxfs/xfs_format.h #define	XFS_FSB_TO_DADDR(mp,fsbno)	XFS_AGB_TO_DADDR(mp, \
mp                569 fs/xfs/libxfs/xfs_format.h 			XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
mp                574 fs/xfs/libxfs/xfs_format.h #define XFS_FSS_TO_BB(mp,sec)	((sec) << (mp)->m_sectbb_log)
mp                579 fs/xfs/libxfs/xfs_format.h #define	XFS_FSB_TO_BB(mp,fsbno)	((fsbno) << (mp)->m_blkbb_log)
mp                580 fs/xfs/libxfs/xfs_format.h #define	XFS_BB_TO_FSB(mp,bb)	\
mp                581 fs/xfs/libxfs/xfs_format.h 	(((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
mp                582 fs/xfs/libxfs/xfs_format.h #define	XFS_BB_TO_FSBT(mp,bb)	((bb) >> (mp)->m_blkbb_log)
mp                587 fs/xfs/libxfs/xfs_format.h #define XFS_FSB_TO_B(mp,fsbno)	((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog)
mp                588 fs/xfs/libxfs/xfs_format.h #define XFS_B_TO_FSB(mp,b)	\
mp                589 fs/xfs/libxfs/xfs_format.h 	((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog)
mp                590 fs/xfs/libxfs/xfs_format.h #define XFS_B_TO_FSBT(mp,b)	(((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog)
mp                591 fs/xfs/libxfs/xfs_format.h #define XFS_B_FSB_OFFSET(mp,b)	((b) & (mp)->m_blockmask)
mp                708 fs/xfs/libxfs/xfs_format.h #define XFS_AGF_DADDR(mp)	((xfs_daddr_t)(1 << (mp)->m_sectbb_log))
mp                709 fs/xfs/libxfs/xfs_format.h #define	XFS_AGF_BLOCK(mp)	XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp))
mp                776 fs/xfs/libxfs/xfs_format.h #define XFS_AGI_DADDR(mp)	((xfs_daddr_t)(2 << (mp)->m_sectbb_log))
mp                777 fs/xfs/libxfs/xfs_format.h #define	XFS_AGI_BLOCK(mp)	XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp))
mp                784 fs/xfs/libxfs/xfs_format.h #define XFS_AGFL_DADDR(mp)	((xfs_daddr_t)(3 << (mp)->m_sectbb_log))
mp                785 fs/xfs/libxfs/xfs_format.h #define	XFS_AGFL_BLOCK(mp)	XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp))
mp                788 fs/xfs/libxfs/xfs_format.h #define XFS_BUF_TO_AGFL_BNO(mp, bp) \
mp                789 fs/xfs/libxfs/xfs_format.h 	(xfs_sb_version_hascrc(&((mp)->m_sb)) ? \
mp                804 fs/xfs/libxfs/xfs_format.h #define XFS_AGB_TO_FSB(mp,agno,agbno)	\
mp                805 fs/xfs/libxfs/xfs_format.h 	(((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
mp                806 fs/xfs/libxfs/xfs_format.h #define	XFS_FSB_TO_AGNO(mp,fsbno)	\
mp                807 fs/xfs/libxfs/xfs_format.h 	((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
mp                808 fs/xfs/libxfs/xfs_format.h #define	XFS_FSB_TO_AGBNO(mp,fsbno)	\
mp                809 fs/xfs/libxfs/xfs_format.h 	((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
mp                810 fs/xfs/libxfs/xfs_format.h #define	XFS_AGB_TO_DADDR(mp,agno,agbno)	\
mp                811 fs/xfs/libxfs/xfs_format.h 	((xfs_daddr_t)XFS_FSB_TO_BB(mp, \
mp                812 fs/xfs/libxfs/xfs_format.h 		(xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
mp                813 fs/xfs/libxfs/xfs_format.h #define	XFS_AG_DADDR(mp,agno,d)		(XFS_AGB_TO_DADDR(mp, agno, 0) + (d))
mp                819 fs/xfs/libxfs/xfs_format.h #define	XFS_AG_CHECK_DADDR(mp,d,len)	\
mp                822 fs/xfs/libxfs/xfs_format.h 		   xfs_daddr_to_agbno(mp, d) != XFS_SB_DADDR) : \
mp                823 fs/xfs/libxfs/xfs_format.h 	    ASSERT(xfs_daddr_to_agno(mp, d) == \
mp                824 fs/xfs/libxfs/xfs_format.h 		   xfs_daddr_to_agno(mp, (d) + (len) - 1)))
mp                949 fs/xfs/libxfs/xfs_format.h #define XFS_LITINO(mp, version) \
mp                950 fs/xfs/libxfs/xfs_format.h 	((int)(((mp)->m_sb.sb_inodesize) - xfs_dinode_size(version)))
mp                958 fs/xfs/libxfs/xfs_format.h #define XFS_DFORK_DSIZE(dip,mp) \
mp                961 fs/xfs/libxfs/xfs_format.h 		XFS_LITINO(mp, (dip)->di_version))
mp                962 fs/xfs/libxfs/xfs_format.h #define XFS_DFORK_ASIZE(dip,mp) \
mp                964 fs/xfs/libxfs/xfs_format.h 		XFS_LITINO(mp, (dip)->di_version) - XFS_DFORK_BOFF(dip) : \
mp                966 fs/xfs/libxfs/xfs_format.h #define XFS_DFORK_SIZE(dip,mp,w) \
mp                968 fs/xfs/libxfs/xfs_format.h 		XFS_DFORK_DSIZE(dip, mp) : \
mp                969 fs/xfs/libxfs/xfs_format.h 		XFS_DFORK_ASIZE(dip, mp))
mp                971 fs/xfs/libxfs/xfs_format.h #define XFS_DFORK_MAXEXT(dip, mp, w) \
mp                972 fs/xfs/libxfs/xfs_format.h 	(XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
mp               1072 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_OFFSET_BITS(mp)		(mp)->m_sb.sb_inopblog
mp               1073 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_AGBNO_BITS(mp)		(mp)->m_sb.sb_agblklog
mp               1074 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_AGINO_BITS(mp)		((mp)->m_ino_geo.agino_log)
mp               1075 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_AGNO_BITS(mp)		(mp)->m_agno_log
mp               1076 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_BITS(mp)		\
mp               1077 fs/xfs/libxfs/xfs_format.h 	XFS_INO_AGNO_BITS(mp) + XFS_INO_AGINO_BITS(mp)
mp               1078 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_TO_AGNO(mp,i)		\
mp               1079 fs/xfs/libxfs/xfs_format.h 	((xfs_agnumber_t)((i) >> XFS_INO_AGINO_BITS(mp)))
mp               1080 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_TO_AGINO(mp,i)		\
mp               1081 fs/xfs/libxfs/xfs_format.h 	((xfs_agino_t)(i) & XFS_INO_MASK(XFS_INO_AGINO_BITS(mp)))
mp               1082 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_TO_AGBNO(mp,i)		\
mp               1083 fs/xfs/libxfs/xfs_format.h 	(((xfs_agblock_t)(i) >> XFS_INO_OFFSET_BITS(mp)) & \
mp               1084 fs/xfs/libxfs/xfs_format.h 		XFS_INO_MASK(XFS_INO_AGBNO_BITS(mp)))
mp               1085 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_TO_OFFSET(mp,i)		\
mp               1086 fs/xfs/libxfs/xfs_format.h 	((int)(i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))
mp               1087 fs/xfs/libxfs/xfs_format.h #define	XFS_INO_TO_FSB(mp,i)		\
mp               1088 fs/xfs/libxfs/xfs_format.h 	XFS_AGB_TO_FSB(mp, XFS_INO_TO_AGNO(mp,i), XFS_INO_TO_AGBNO(mp,i))
mp               1089 fs/xfs/libxfs/xfs_format.h #define	XFS_AGINO_TO_INO(mp,a,i)	\
mp               1090 fs/xfs/libxfs/xfs_format.h 	(((xfs_ino_t)(a) << XFS_INO_AGINO_BITS(mp)) | (i))
mp               1091 fs/xfs/libxfs/xfs_format.h #define	XFS_AGINO_TO_AGBNO(mp,i)	((i) >> XFS_INO_OFFSET_BITS(mp))
mp               1092 fs/xfs/libxfs/xfs_format.h #define	XFS_AGINO_TO_OFFSET(mp,i)	\
mp               1093 fs/xfs/libxfs/xfs_format.h 	((i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))
mp               1094 fs/xfs/libxfs/xfs_format.h #define	XFS_OFFBNO_TO_AGINO(mp,b,o)	\
mp               1095 fs/xfs/libxfs/xfs_format.h 	((xfs_agino_t)(((b) << XFS_INO_OFFSET_BITS(mp)) | (o)))
mp               1096 fs/xfs/libxfs/xfs_format.h #define	XFS_FSB_TO_INO(mp, b)	((xfs_ino_t)((b) << XFS_INO_OFFSET_BITS(mp)))
mp               1097 fs/xfs/libxfs/xfs_format.h #define	XFS_AGB_TO_AGINO(mp, b)	((xfs_agino_t)((b) << XFS_INO_OFFSET_BITS(mp)))
mp               1111 fs/xfs/libxfs/xfs_format.h #define	XFS_BLOCKSIZE(mp)	((mp)->m_sb.sb_blocksize)
mp               1112 fs/xfs/libxfs/xfs_format.h #define	XFS_BLOCKMASK(mp)	((mp)->m_blockmask)
mp               1113 fs/xfs/libxfs/xfs_format.h #define	XFS_BLOCKWSIZE(mp)	((mp)->m_blockwsize)
mp               1114 fs/xfs/libxfs/xfs_format.h #define	XFS_BLOCKWMASK(mp)	((mp)->m_blockwmask)
mp               1119 fs/xfs/libxfs/xfs_format.h #define	XFS_SUMOFFS(mp,ls,bb)	((int)((ls) * (mp)->m_sb.sb_rbmblocks + (bb)))
mp               1120 fs/xfs/libxfs/xfs_format.h #define	XFS_SUMOFFSTOBLOCK(mp,s)	\
mp               1121 fs/xfs/libxfs/xfs_format.h 	(((s) * (uint)sizeof(xfs_suminfo_t)) >> (mp)->m_sb.sb_blocklog)
mp               1122 fs/xfs/libxfs/xfs_format.h #define	XFS_SUMPTR(mp,bp,so)	\
mp               1124 fs/xfs/libxfs/xfs_format.h 		(((so) * (uint)sizeof(xfs_suminfo_t)) & XFS_BLOCKMASK(mp))))
mp               1126 fs/xfs/libxfs/xfs_format.h #define	XFS_BITTOBLOCK(mp,bi)	((bi) >> (mp)->m_blkbit_log)
mp               1127 fs/xfs/libxfs/xfs_format.h #define	XFS_BLOCKTOBIT(mp,bb)	((bb) << (mp)->m_blkbit_log)
mp               1128 fs/xfs/libxfs/xfs_format.h #define	XFS_BITTOWORD(mp,bi)	\
mp               1129 fs/xfs/libxfs/xfs_format.h 	((int)(((bi) >> XFS_NBWORDLOG) & XFS_BLOCKWMASK(mp)))
mp               1220 fs/xfs/libxfs/xfs_format.h #define XFS_SYMLINK_BUF_SPACE(mp, bufsize)	\
mp               1221 fs/xfs/libxfs/xfs_format.h 	((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \
mp               1257 fs/xfs/libxfs/xfs_format.h #define	XFS_BNO_BLOCK(mp)	((xfs_agblock_t)(XFS_AGFL_BLOCK(mp) + 1))
mp               1258 fs/xfs/libxfs/xfs_format.h #define	XFS_CNT_BLOCK(mp)	((xfs_agblock_t)(XFS_BNO_BLOCK(mp) + 1))
mp               1339 fs/xfs/libxfs/xfs_format.h #define	XFS_IBT_BLOCK(mp)		((xfs_agblock_t)(XFS_CNT_BLOCK(mp) + 1))
mp               1340 fs/xfs/libxfs/xfs_format.h #define	XFS_FIBT_BLOCK(mp)		((xfs_agblock_t)(XFS_IBT_BLOCK(mp) + 1))
mp               1452 fs/xfs/libxfs/xfs_format.h #define	XFS_RMAP_BLOCK(mp) \
mp               1453 fs/xfs/libxfs/xfs_format.h 	(xfs_sb_version_hasfinobt(&((mp)->m_sb)) ? \
mp               1454 fs/xfs/libxfs/xfs_format.h 	 XFS_FIBT_BLOCK(mp) + 1 : \
mp               1455 fs/xfs/libxfs/xfs_format.h 	 XFS_IBT_BLOCK(mp) + 1)
mp               1463 fs/xfs/libxfs/xfs_format.h unsigned int xfs_refc_block(struct xfs_mount *mp);
mp               1677 fs/xfs/libxfs/xfs_format.h #define XFS_ACL_MAX_ENTRIES(mp)	\
mp               1678 fs/xfs/libxfs/xfs_format.h 	(xfs_sb_version_hascrc(&mp->m_sb) \
mp               1687 fs/xfs/libxfs/xfs_format.h #define XFS_ACL_MAX_SIZE(mp) \
mp               1688 fs/xfs/libxfs/xfs_format.h 	XFS_ACL_SIZE(XFS_ACL_MAX_ENTRIES((mp)))
mp                102 fs/xfs/libxfs/xfs_health.h void xfs_fs_mark_sick(struct xfs_mount *mp, unsigned int mask);
mp                103 fs/xfs/libxfs/xfs_health.h void xfs_fs_mark_healthy(struct xfs_mount *mp, unsigned int mask);
mp                104 fs/xfs/libxfs/xfs_health.h void xfs_fs_measure_sickness(struct xfs_mount *mp, unsigned int *sick,
mp                107 fs/xfs/libxfs/xfs_health.h void xfs_rt_mark_sick(struct xfs_mount *mp, unsigned int mask);
mp                108 fs/xfs/libxfs/xfs_health.h void xfs_rt_mark_healthy(struct xfs_mount *mp, unsigned int mask);
mp                109 fs/xfs/libxfs/xfs_health.h void xfs_rt_measure_sickness(struct xfs_mount *mp, unsigned int *sick,
mp                122 fs/xfs/libxfs/xfs_health.h void xfs_health_unmount(struct xfs_mount *mp);
mp                127 fs/xfs/libxfs/xfs_health.h xfs_fs_has_sickness(struct xfs_mount *mp, unsigned int mask)
mp                131 fs/xfs/libxfs/xfs_health.h 	xfs_fs_measure_sickness(mp, &sick, &checked);
mp                136 fs/xfs/libxfs/xfs_health.h xfs_rt_has_sickness(struct xfs_mount *mp, unsigned int mask)
mp                140 fs/xfs/libxfs/xfs_health.h 	xfs_rt_measure_sickness(mp, &sick, &checked);
mp                163 fs/xfs/libxfs/xfs_health.h xfs_fs_is_healthy(struct xfs_mount *mp)
mp                165 fs/xfs/libxfs/xfs_health.h 	return !xfs_fs_has_sickness(mp, -1U);
mp                169 fs/xfs/libxfs/xfs_health.h xfs_rt_is_healthy(struct xfs_mount *mp)
mp                171 fs/xfs/libxfs/xfs_health.h 	return !xfs_rt_has_sickness(mp, -1U);
mp                186 fs/xfs/libxfs/xfs_health.h void xfs_fsop_geom_health(struct xfs_mount *mp, struct xfs_fsop_geom *geo);
mp                 76 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp,
mp                 81 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hassparseinodes(&mp->m_sb)) {
mp                107 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                117 fs/xfs/libxfs/xfs_ialloc.c 	xfs_inobt_btrec_to_irec(mp, rec, irec);
mp                119 fs/xfs/libxfs/xfs_ialloc.c 	if (!xfs_verify_agino(mp, agno, irec->ir_startino))
mp                138 fs/xfs/libxfs/xfs_ialloc.c 	xfs_warn(mp,
mp                141 fs/xfs/libxfs/xfs_ialloc.c 	xfs_warn(mp,
mp                172 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp,
mp                186 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum);
mp                263 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp,
mp                285 fs/xfs/libxfs/xfs_ialloc.c 	nbufs = length / M_IGEO(mp)->blocks_per_cluster;
mp                306 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                308 fs/xfs/libxfs/xfs_ialloc.c 		ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno));
mp                320 fs/xfs/libxfs/xfs_ialloc.c 					mp->m_sb.sb_inodesize, length, gen);
mp                328 fs/xfs/libxfs/xfs_ialloc.c 		d = XFS_AGB_TO_DADDR(mp, agno, agbno +
mp                329 fs/xfs/libxfs/xfs_ialloc.c 				(j * M_IGEO(mp)->blocks_per_cluster));
mp                330 fs/xfs/libxfs/xfs_ialloc.c 		fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d,
mp                331 fs/xfs/libxfs/xfs_ialloc.c 					 mp->m_bsize *
mp                332 fs/xfs/libxfs/xfs_ialloc.c 					 M_IGEO(mp)->blocks_per_cluster,
mp                340 fs/xfs/libxfs/xfs_ialloc.c 		for (i = 0; i < M_IGEO(mp)->inodes_per_cluster; i++) {
mp                341 fs/xfs/libxfs/xfs_ialloc.c 			int	ioffset = i << mp->m_sb.sb_inodelog;
mp                344 fs/xfs/libxfs/xfs_ialloc.c 			free = xfs_make_iptr(mp, fbuf, i);
mp                354 fs/xfs/libxfs/xfs_ialloc.c 					  &mp->m_sb.sb_meta_uuid);
mp                355 fs/xfs/libxfs/xfs_ialloc.c 				xfs_dinode_calc_crc(mp, free);
mp                416 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp,
mp                424 fs/xfs/libxfs/xfs_ialloc.c 	agbno = XFS_AGINO_TO_AGBNO(mp, *startino);
mp                425 fs/xfs/libxfs/xfs_ialloc.c 	mod = agbno % mp->m_sb.sb_inoalignmt;
mp                430 fs/xfs/libxfs/xfs_ialloc.c 	offset = XFS_AGB_TO_AGINO(mp, mod);
mp                520 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp,
mp                534 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum);
mp                547 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error);
mp                560 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error);
mp                561 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp,
mp                569 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, __xfs_inobt_can_merge(nrec, &rec),
mp                572 fs/xfs/libxfs/xfs_ialloc.c 		trace_xfs_irec_merge_pre(mp, agno, rec.ir_startino,
mp                579 fs/xfs/libxfs/xfs_ialloc.c 		trace_xfs_irec_merge_post(mp, agno, nrec->ir_startino,
mp                582 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_inobt_rec_check_count(mp, nrec);
mp                626 fs/xfs/libxfs/xfs_ialloc.c 	args.mp = tp->t_mountp;
mp                643 fs/xfs/libxfs/xfs_ialloc.c 	    percpu_counter_read_positive(&args.mp->m_icount) + newlen >
mp                655 fs/xfs/libxfs/xfs_ialloc.c 	args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) +
mp                661 fs/xfs/libxfs/xfs_ialloc.c 		args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno);
mp                710 fs/xfs/libxfs/xfs_ialloc.c 			ASSERT(!(args.mp->m_flags & XFS_MOUNT_NOALIGN));
mp                711 fs/xfs/libxfs/xfs_ialloc.c 			args.alignment = args.mp->m_dalign;
mp                721 fs/xfs/libxfs/xfs_ialloc.c 		args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno);
mp                742 fs/xfs/libxfs/xfs_ialloc.c 		args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno);
mp                752 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hassparseinodes(&args.mp->m_sb) &&
mp                758 fs/xfs/libxfs/xfs_ialloc.c 		args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno);
mp                759 fs/xfs/libxfs/xfs_ialloc.c 		args.alignment = args.mp->m_sb.sb_spino_align;
mp                775 fs/xfs/libxfs/xfs_ialloc.c 		args.min_agbno = args.mp->m_sb.sb_inoalignmt;
mp                776 fs/xfs/libxfs/xfs_ialloc.c 		args.max_agbno = round_down(args.mp->m_sb.sb_agblocks,
mp                777 fs/xfs/libxfs/xfs_ialloc.c 					    args.mp->m_sb.sb_inoalignmt) -
mp                784 fs/xfs/libxfs/xfs_ialloc.c 		newlen = XFS_AGB_TO_AGINO(args.mp, args.len);
mp                804 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, agno,
mp                812 fs/xfs/libxfs/xfs_ialloc.c 	newino = XFS_AGB_TO_AGINO(args.mp, args.agbno);
mp                818 fs/xfs/libxfs/xfs_ialloc.c 		xfs_align_sparse_ino(args.mp, &newino, &allocmask);
mp                831 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_inobt_insert_sprec(args.mp, tp, agbp, XFS_BTNUM_INO,
mp                834 fs/xfs/libxfs/xfs_ialloc.c 			xfs_alert(args.mp,
mp                836 fs/xfs/libxfs/xfs_ialloc.c 				  XFS_AGINO_TO_INO(args.mp, agno,
mp                839 fs/xfs/libxfs/xfs_ialloc.c 			xfs_force_shutdown(args.mp, SHUTDOWN_CORRUPT_INCORE);
mp                855 fs/xfs/libxfs/xfs_ialloc.c 		if (xfs_sb_version_hasfinobt(&args.mp->m_sb)) {
mp                856 fs/xfs/libxfs/xfs_ialloc.c 			error = xfs_inobt_insert_sprec(args.mp, tp, agbp,
mp                864 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen,
mp                869 fs/xfs/libxfs/xfs_ialloc.c 		if (xfs_sb_version_hasfinobt(&args.mp->m_sb)) {
mp                870 fs/xfs/libxfs/xfs_ialloc.c 			error = xfs_inobt_insert(args.mp, tp, agbp, newino,
mp                882 fs/xfs/libxfs/xfs_ialloc.c 	pag = xfs_perag_get(args.mp, agno);
mp                904 fs/xfs/libxfs/xfs_ialloc.c 	xfs_mount_t	*mp)
mp                908 fs/xfs/libxfs/xfs_ialloc.c 	spin_lock(&mp->m_agirotor_lock);
mp                909 fs/xfs/libxfs/xfs_ialloc.c 	agno = mp->m_agirotor;
mp                910 fs/xfs/libxfs/xfs_ialloc.c 	if (++mp->m_agirotor >= mp->m_maxagi)
mp                911 fs/xfs/libxfs/xfs_ialloc.c 		mp->m_agirotor = 0;
mp                912 fs/xfs/libxfs/xfs_ialloc.c 	spin_unlock(&mp->m_agirotor_lock);
mp                932 fs/xfs/libxfs/xfs_ialloc.c 	xfs_mount_t	*mp;		/* mount point structure */
mp                943 fs/xfs/libxfs/xfs_ialloc.c 	mp = tp->t_mountp;
mp                944 fs/xfs/libxfs/xfs_ialloc.c 	agcount = mp->m_maxagi;
mp                946 fs/xfs/libxfs/xfs_ialloc.c 		pagno = xfs_ialloc_next_ag(mp);
mp                948 fs/xfs/libxfs/xfs_ialloc.c 		pagno = XFS_INO_TO_AGNO(mp, parent);
mp                965 fs/xfs/libxfs/xfs_ialloc.c 		pag = xfs_perag_get(mp, agno);
mp                967 fs/xfs/libxfs/xfs_ialloc.c 			xfs_ialloc_next_ag(mp);
mp                972 fs/xfs/libxfs/xfs_ialloc.c 			error = xfs_ialloc_pagi_init(mp, tp, agno);
mp                983 fs/xfs/libxfs/xfs_ialloc.c 			error = xfs_alloc_pagf_init(mp, tp, agno, flags);
mp               1004 fs/xfs/libxfs/xfs_ialloc.c 		ineed = M_IGEO(mp)->ialloc_min_blks;
mp               1006 fs/xfs/libxfs/xfs_ialloc.c 			ineed += M_IGEO(mp)->cluster_align;
mp               1022 fs/xfs/libxfs/xfs_ialloc.c 		if (XFS_FORCED_SHUTDOWN(mp))
mp               1121 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               1124 fs/xfs/libxfs/xfs_ialloc.c 	xfs_agnumber_t		pagno = XFS_INO_TO_AGNO(mp, parent);
mp               1125 fs/xfs/libxfs/xfs_ialloc.c 	xfs_agino_t		pagino = XFS_INO_TO_AGINO(mp, parent);
mp               1135 fs/xfs/libxfs/xfs_ialloc.c 	pag = xfs_perag_get(mp, agno);
mp               1142 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO);
mp               1164 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1169 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, j == 1, error0);
mp               1324 fs/xfs/libxfs/xfs_ialloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1330 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1336 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1343 fs/xfs/libxfs/xfs_ialloc.c 	ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) %
mp               1345 fs/xfs/libxfs/xfs_ialloc.c 	ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset);
mp               1545 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               1548 fs/xfs/libxfs/xfs_ialloc.c 	xfs_agnumber_t			pagno = XFS_INO_TO_AGNO(mp, parent);
mp               1549 fs/xfs/libxfs/xfs_ialloc.c 	xfs_agino_t			pagino = XFS_INO_TO_AGINO(mp, parent);
mp               1559 fs/xfs/libxfs/xfs_ialloc.c 	if (!xfs_sb_version_hasfinobt(&mp->m_sb))
mp               1562 fs/xfs/libxfs/xfs_ialloc.c 	pag = xfs_perag_get(mp, agno);
mp               1571 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO);
mp               1592 fs/xfs/libxfs/xfs_ialloc.c 	ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) %
mp               1594 fs/xfs/libxfs/xfs_ialloc.c 	ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset);
mp               1614 fs/xfs/libxfs/xfs_ialloc.c 	icur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO);
mp               1684 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               1692 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_ino_geometry	*igeo = M_IGEO(mp);
mp               1724 fs/xfs/libxfs/xfs_ialloc.c 	    percpu_counter_read_positive(&mp->m_icount) + igeo->ialloc_inos
mp               1737 fs/xfs/libxfs/xfs_ialloc.c 		pag = xfs_perag_get(mp, agno);
mp               1739 fs/xfs/libxfs/xfs_ialloc.c 			xfs_ialloc_next_ag(mp);
mp               1744 fs/xfs/libxfs/xfs_ialloc.c 			error = xfs_ialloc_pagi_init(mp, tp, agno);
mp               1759 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_ialloc_read_agi(mp, tp, agno, &agbp);
mp               1803 fs/xfs/libxfs/xfs_ialloc.c 		if (++agno == mp->m_sb.sb_agcount)
mp               1830 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               1831 fs/xfs/libxfs/xfs_ialloc.c 	xfs_agblock_t			sagbno = XFS_AGINO_TO_AGBNO(mp,
mp               1841 fs/xfs/libxfs/xfs_ialloc.c 		xfs_bmap_add_free(tp, XFS_AGB_TO_FSB(mp, agno, sagbno),
mp               1842 fs/xfs/libxfs/xfs_ialloc.c 				  M_IGEO(mp)->ialloc_blks,
mp               1879 fs/xfs/libxfs/xfs_ialloc.c 				  mp->m_sb.sb_inopblock;
mp               1882 fs/xfs/libxfs/xfs_ialloc.c 			    mp->m_sb.sb_inopblock;
mp               1884 fs/xfs/libxfs/xfs_ialloc.c 		ASSERT(agbno % mp->m_sb.sb_spino_align == 0);
mp               1885 fs/xfs/libxfs/xfs_ialloc.c 		ASSERT(contigblk % mp->m_sb.sb_spino_align == 0);
mp               1886 fs/xfs/libxfs/xfs_ialloc.c 		xfs_bmap_add_free(tp, XFS_AGB_TO_FSB(mp, agno, agbno),
mp               1899 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp,
mp               1917 fs/xfs/libxfs/xfs_ialloc.c 	ASSERT(XFS_AGINO_TO_AGBNO(mp, agino) < be32_to_cpu(agi->agi_length));
mp               1922 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO);
mp               1932 fs/xfs/libxfs/xfs_ialloc.c 		xfs_warn(mp, "%s: xfs_inobt_lookup() returned error %d.",
mp               1936 fs/xfs/libxfs/xfs_ialloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1939 fs/xfs/libxfs/xfs_ialloc.c 		xfs_warn(mp, "%s: xfs_inobt_get_rec() returned error %d.",
mp               1943 fs/xfs/libxfs/xfs_ialloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0);
mp               1961 fs/xfs/libxfs/xfs_ialloc.c 	if (!(mp->m_flags & XFS_MOUNT_IKEEP) &&
mp               1963 fs/xfs/libxfs/xfs_ialloc.c 	    mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK) {
mp               1965 fs/xfs/libxfs/xfs_ialloc.c 		xic->first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino);
mp               1977 fs/xfs/libxfs/xfs_ialloc.c 		pag = xfs_perag_get(mp, agno);
mp               1985 fs/xfs/libxfs/xfs_ialloc.c 			xfs_warn(mp, "%s: xfs_btree_delete returned error %d.",
mp               1996 fs/xfs/libxfs/xfs_ialloc.c 			xfs_warn(mp, "%s: xfs_inobt_update returned error %d.",
mp               2006 fs/xfs/libxfs/xfs_ialloc.c 		pag = xfs_perag_get(mp, agno);
mp               2030 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount		*mp,
mp               2044 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO);
mp               2055 fs/xfs/libxfs/xfs_ialloc.c 		XFS_WANT_CORRUPTED_GOTO(mp, ibtrec->ir_freecount == 1, error);
mp               2078 fs/xfs/libxfs/xfs_ialloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error);
mp               2083 fs/xfs/libxfs/xfs_ialloc.c 	XFS_WANT_CORRUPTED_GOTO(mp, (rec.ir_free == ibtrec->ir_free) &&
mp               2100 fs/xfs/libxfs/xfs_ialloc.c 	    mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK &&
mp               2101 fs/xfs/libxfs/xfs_ialloc.c 	    !(mp->m_flags & XFS_MOUNT_IKEEP)) {
mp               2143 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp;	/* mount structure for filesystem */
mp               2146 fs/xfs/libxfs/xfs_ialloc.c 	mp = tp->t_mountp;
mp               2151 fs/xfs/libxfs/xfs_ialloc.c 	agno = XFS_INO_TO_AGNO(mp, inode);
mp               2152 fs/xfs/libxfs/xfs_ialloc.c 	if (agno >= mp->m_sb.sb_agcount)  {
mp               2153 fs/xfs/libxfs/xfs_ialloc.c 		xfs_warn(mp, "%s: agno >= mp->m_sb.sb_agcount (%d >= %d).",
mp               2154 fs/xfs/libxfs/xfs_ialloc.c 			__func__, agno, mp->m_sb.sb_agcount);
mp               2158 fs/xfs/libxfs/xfs_ialloc.c 	agino = XFS_INO_TO_AGINO(mp, inode);
mp               2159 fs/xfs/libxfs/xfs_ialloc.c 	if (inode != XFS_AGINO_TO_INO(mp, agno, agino))  {
mp               2160 fs/xfs/libxfs/xfs_ialloc.c 		xfs_warn(mp, "%s: inode != XFS_AGINO_TO_INO() (%llu != %llu).",
mp               2162 fs/xfs/libxfs/xfs_ialloc.c 			(unsigned long long)XFS_AGINO_TO_INO(mp, agno, agino));
mp               2166 fs/xfs/libxfs/xfs_ialloc.c 	agbno = XFS_AGINO_TO_AGBNO(mp, agino);
mp               2167 fs/xfs/libxfs/xfs_ialloc.c 	if (agbno >= mp->m_sb.sb_agblocks)  {
mp               2168 fs/xfs/libxfs/xfs_ialloc.c 		xfs_warn(mp, "%s: agbno >= mp->m_sb.sb_agblocks (%d >= %d).",
mp               2169 fs/xfs/libxfs/xfs_ialloc.c 			__func__, agbno, mp->m_sb.sb_agblocks);
mp               2176 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_ialloc_read_agi(mp, tp, agno, &agbp);
mp               2178 fs/xfs/libxfs/xfs_ialloc.c 		xfs_warn(mp, "%s: xfs_ialloc_read_agi() returned error %d.",
mp               2186 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_difree_inobt(mp, tp, agbp, agino, xic, &rec);
mp               2193 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb)) {
mp               2194 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_difree_finobt(mp, tp, agbp, agino, &rec);
mp               2207 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp,
mp               2222 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_ialloc_read_agi(mp, tp, agno, &agbp);
mp               2224 fs/xfs/libxfs/xfs_ialloc.c 		xfs_alert(mp,
mp               2236 fs/xfs/libxfs/xfs_ialloc.c 	cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO);
mp               2252 fs/xfs/libxfs/xfs_ialloc.c 	    rec.ir_startino + M_IGEO(mp)->ialloc_inos <= agino)
mp               2260 fs/xfs/libxfs/xfs_ialloc.c 	*chunk_agbno = XFS_AGINO_TO_AGBNO(mp, rec.ir_startino);
mp               2270 fs/xfs/libxfs/xfs_ialloc.c 	xfs_mount_t	 *mp,	/* file system mount structure */
mp               2290 fs/xfs/libxfs/xfs_ialloc.c 	agno = XFS_INO_TO_AGNO(mp, ino);
mp               2291 fs/xfs/libxfs/xfs_ialloc.c 	agino = XFS_INO_TO_AGINO(mp, ino);
mp               2292 fs/xfs/libxfs/xfs_ialloc.c 	agbno = XFS_AGINO_TO_AGBNO(mp, agino);
mp               2293 fs/xfs/libxfs/xfs_ialloc.c 	if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks ||
mp               2294 fs/xfs/libxfs/xfs_ialloc.c 	    ino != XFS_AGINO_TO_INO(mp, agno, agino)) {
mp               2302 fs/xfs/libxfs/xfs_ialloc.c 		if (agno >= mp->m_sb.sb_agcount) {
mp               2303 fs/xfs/libxfs/xfs_ialloc.c 			xfs_alert(mp,
mp               2305 fs/xfs/libxfs/xfs_ialloc.c 				__func__, agno, mp->m_sb.sb_agcount);
mp               2307 fs/xfs/libxfs/xfs_ialloc.c 		if (agbno >= mp->m_sb.sb_agblocks) {
mp               2308 fs/xfs/libxfs/xfs_ialloc.c 			xfs_alert(mp,
mp               2311 fs/xfs/libxfs/xfs_ialloc.c 				(unsigned long)mp->m_sb.sb_agblocks);
mp               2313 fs/xfs/libxfs/xfs_ialloc.c 		if (ino != XFS_AGINO_TO_INO(mp, agno, agino)) {
mp               2314 fs/xfs/libxfs/xfs_ialloc.c 			xfs_alert(mp,
mp               2317 fs/xfs/libxfs/xfs_ialloc.c 				XFS_AGINO_TO_INO(mp, agno, agino));
mp               2332 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_imap_lookup(mp, tp, agno, agino, agbno,
mp               2343 fs/xfs/libxfs/xfs_ialloc.c 	if (M_IGEO(mp)->blocks_per_cluster == 1) {
mp               2344 fs/xfs/libxfs/xfs_ialloc.c 		offset = XFS_INO_TO_OFFSET(mp, ino);
mp               2345 fs/xfs/libxfs/xfs_ialloc.c 		ASSERT(offset < mp->m_sb.sb_inopblock);
mp               2347 fs/xfs/libxfs/xfs_ialloc.c 		imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno);
mp               2348 fs/xfs/libxfs/xfs_ialloc.c 		imap->im_len = XFS_FSB_TO_BB(mp, 1);
mp               2350 fs/xfs/libxfs/xfs_ialloc.c 							mp->m_sb.sb_inodelog);
mp               2359 fs/xfs/libxfs/xfs_ialloc.c 	if (M_IGEO(mp)->inoalign_mask) {
mp               2360 fs/xfs/libxfs/xfs_ialloc.c 		offset_agbno = agbno & M_IGEO(mp)->inoalign_mask;
mp               2363 fs/xfs/libxfs/xfs_ialloc.c 		error = xfs_imap_lookup(mp, tp, agno, agino, agbno,
mp               2372 fs/xfs/libxfs/xfs_ialloc.c 		((offset_agbno / M_IGEO(mp)->blocks_per_cluster) *
mp               2373 fs/xfs/libxfs/xfs_ialloc.c 		 M_IGEO(mp)->blocks_per_cluster);
mp               2374 fs/xfs/libxfs/xfs_ialloc.c 	offset = ((agbno - cluster_agbno) * mp->m_sb.sb_inopblock) +
mp               2375 fs/xfs/libxfs/xfs_ialloc.c 		XFS_INO_TO_OFFSET(mp, ino);
mp               2377 fs/xfs/libxfs/xfs_ialloc.c 	imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, cluster_agbno);
mp               2378 fs/xfs/libxfs/xfs_ialloc.c 	imap->im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster);
mp               2379 fs/xfs/libxfs/xfs_ialloc.c 	imap->im_boffset = (unsigned short)(offset << mp->m_sb.sb_inodelog);
mp               2388 fs/xfs/libxfs/xfs_ialloc.c 	    XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)) {
mp               2389 fs/xfs/libxfs/xfs_ialloc.c 		xfs_alert(mp,
mp               2393 fs/xfs/libxfs/xfs_ialloc.c 			XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks));
mp               2470 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount *mp = bp->b_mount;
mp               2474 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               2475 fs/xfs/libxfs/xfs_ialloc.c 		if (!uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid))
mp               2477 fs/xfs/libxfs/xfs_ialloc.c 		if (!xfs_log_check_lsn(mp,
mp               2494 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb) &&
mp               2511 fs/xfs/libxfs/xfs_ialloc.c 		if (!xfs_verify_ino(mp, be32_to_cpu(agi->agi_unlinked[i])))
mp               2522 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount *mp = bp->b_mount;
mp               2525 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp               2530 fs/xfs/libxfs/xfs_ialloc.c 		if (XFS_TEST_ERROR(fa, mp, XFS_ERRTAG_IALLOC_READ_AGI))
mp               2539 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp = bp->b_mount;
mp               2549 fs/xfs/libxfs/xfs_ialloc.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               2570 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp,	/* file system mount structure */
mp               2577 fs/xfs/libxfs/xfs_ialloc.c 	trace_xfs_read_agi(mp, agno);
mp               2580 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp,
mp               2581 fs/xfs/libxfs/xfs_ialloc.c 			XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)),
mp               2582 fs/xfs/libxfs/xfs_ialloc.c 			XFS_FSS_TO_BB(mp, 1), 0, bpp, &xfs_agi_buf_ops);
mp               2594 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp,	/* file system mount structure */
mp               2603 fs/xfs/libxfs/xfs_ialloc.c 	trace_xfs_ialloc_read_agi(mp, agno);
mp               2605 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_read_agi(mp, tp, agno, bpp);
mp               2610 fs/xfs/libxfs/xfs_ialloc.c 	pag = xfs_perag_get(mp, agno);
mp               2622 fs/xfs/libxfs/xfs_ialloc.c 		XFS_FORCED_SHUTDOWN(mp));
mp               2632 fs/xfs/libxfs/xfs_ialloc.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp               2639 fs/xfs/libxfs/xfs_ialloc.c 	error = xfs_ialloc_read_agi(mp, tp, agno, &bp);
mp               2762 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_mount	*mp)
mp               2764 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_sb		*sbp = &mp->m_sb;
mp               2765 fs/xfs/libxfs/xfs_ialloc.c 	struct xfs_ino_geometry	*igeo = M_IGEO(mp);
mp               2771 fs/xfs/libxfs/xfs_ialloc.c 	igeo->inobt_mxr[0] = xfs_inobt_maxrecs(mp, sbp->sb_blocksize, 1);
mp               2772 fs/xfs/libxfs/xfs_ialloc.c 	igeo->inobt_mxr[1] = xfs_inobt_maxrecs(mp, sbp->sb_blocksize, 0);
mp               2786 fs/xfs/libxfs/xfs_ialloc.c 	inodes = (1LL << XFS_INO_AGINO_BITS(mp)) >> XFS_INODES_PER_CHUNK_LOG;
mp               2804 fs/xfs/libxfs/xfs_ialloc.c 		igeo->maxicount = XFS_FSB_TO_INO(mp,
mp               2821 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               2824 fs/xfs/libxfs/xfs_ialloc.c 		new_size *= mp->m_sb.sb_inodesize / XFS_DINODE_MIN_SIZE;
mp               2825 fs/xfs/libxfs/xfs_ialloc.c 		if (mp->m_sb.sb_inoalignmt >= XFS_B_TO_FSBT(mp, new_size))
mp               2830 fs/xfs/libxfs/xfs_ialloc.c 	if (igeo->inode_cluster_size_raw > mp->m_sb.sb_blocksize)
mp               2831 fs/xfs/libxfs/xfs_ialloc.c 		igeo->blocks_per_cluster = XFS_B_TO_FSBT(mp,
mp               2835 fs/xfs/libxfs/xfs_ialloc.c 	igeo->inode_cluster_size = XFS_FSB_TO_B(mp, igeo->blocks_per_cluster);
mp               2836 fs/xfs/libxfs/xfs_ialloc.c 	igeo->inodes_per_cluster = XFS_FSB_TO_INO(mp, igeo->blocks_per_cluster);
mp               2839 fs/xfs/libxfs/xfs_ialloc.c 	if (xfs_sb_version_hasalign(&mp->m_sb) &&
mp               2840 fs/xfs/libxfs/xfs_ialloc.c 	    mp->m_sb.sb_inoalignmt >= igeo->blocks_per_cluster)
mp               2841 fs/xfs/libxfs/xfs_ialloc.c 		igeo->cluster_align = mp->m_sb.sb_inoalignmt;
mp               2845 fs/xfs/libxfs/xfs_ialloc.c 	igeo->cluster_align_inodes = XFS_FSB_TO_INO(mp, igeo->cluster_align);
mp               2851 fs/xfs/libxfs/xfs_ialloc.c 	if (mp->m_dalign && igeo->inoalign_mask &&
mp               2852 fs/xfs/libxfs/xfs_ialloc.c 	    !(mp->m_dalign & igeo->inoalign_mask))
mp               2853 fs/xfs/libxfs/xfs_ialloc.c 		igeo->ialloc_align = mp->m_dalign;
mp                 30 fs/xfs/libxfs/xfs_ialloc.h xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o)
mp                 32 fs/xfs/libxfs/xfs_ialloc.h 	return xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog);
mp                 82 fs/xfs/libxfs/xfs_ialloc.h 	struct xfs_mount *mp,		/* file system mount structure */
mp                102 fs/xfs/libxfs/xfs_ialloc.h 	struct xfs_mount *mp,		/* file system mount structure */
mp                113 fs/xfs/libxfs/xfs_ialloc.h 	struct xfs_mount *mp,		/* file system mount structure */
mp                132 fs/xfs/libxfs/xfs_ialloc.h int xfs_ialloc_inode_init(struct xfs_mount *mp, struct xfs_trans *tp,
mp                137 fs/xfs/libxfs/xfs_ialloc.h int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp,
mp                141 fs/xfs/libxfs/xfs_ialloc.h void xfs_inobt_btrec_to_irec(struct xfs_mount *mp, union xfs_btree_rec *rec,
mp                153 fs/xfs/libxfs/xfs_ialloc.h int xfs_ialloc_cluster_alignment(struct xfs_mount *mp);
mp                154 fs/xfs/libxfs/xfs_ialloc.h void xfs_ialloc_setup_geometry(struct xfs_mount *mp);
mp                 84 fs/xfs/libxfs/xfs_ialloc_btree.c 	args.mp = cur->bc_mp;
mp                 86 fs/xfs/libxfs/xfs_ialloc_btree.c 	args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno);
mp                103 fs/xfs/libxfs/xfs_ialloc_btree.c 	new->s = cpu_to_be32(XFS_FSB_TO_AGBNO(args.mp, args.fsbno));
mp                256 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                274 fs/xfs/libxfs/xfs_ialloc_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                282 fs/xfs/libxfs/xfs_ialloc_btree.c 	if (level >= M_IGEO(mp)->inobt_maxlevels)
mp                286 fs/xfs/libxfs/xfs_ialloc_btree.c 			M_IGEO(mp)->inobt_mxr[level != 0]);
mp                407 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                419 fs/xfs/libxfs/xfs_ialloc_btree.c 	cur->bc_mp = mp;
mp                431 fs/xfs/libxfs/xfs_ialloc_btree.c 	cur->bc_blocklog = mp->m_sb.sb_blocklog;
mp                433 fs/xfs/libxfs/xfs_ialloc_btree.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                447 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,
mp                451 fs/xfs/libxfs/xfs_ialloc_btree.c 	blocklen -= XFS_INOBT_BLOCK_LEN(mp);
mp                515 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount		*mp,
mp                542 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,
mp                545 fs/xfs/libxfs/xfs_ialloc_btree.c 	xfs_agblock_t		agblocks = xfs_ag_block_count(mp, agno);
mp                548 fs/xfs/libxfs/xfs_ialloc_btree.c 	if (M_IGEO(mp)->inobt_mxr[0] == 0)
mp                556 fs/xfs/libxfs/xfs_ialloc_btree.c 	if (mp->m_sb.sb_logstart &&
mp                557 fs/xfs/libxfs/xfs_ialloc_btree.c 	    XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno)
mp                558 fs/xfs/libxfs/xfs_ialloc_btree.c 		agblocks -= mp->m_sb.sb_logblocks;
mp                560 fs/xfs/libxfs/xfs_ialloc_btree.c 	return xfs_btree_calc_size(M_IGEO(mp)->inobt_mnr,
mp                561 fs/xfs/libxfs/xfs_ialloc_btree.c 				(uint64_t)agblocks * mp->m_sb.sb_inopblock /
mp                568 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,
mp                581 fs/xfs/libxfs/xfs_ialloc_btree.c 	error = xfs_ialloc_read_agi(mp, tp, agno, agi_bpp);
mp                585 fs/xfs/libxfs/xfs_ialloc_btree.c 	cur = xfs_inobt_init_cursor(mp, tp, *agi_bpp, agno, which);
mp                597 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,
mp                607 fs/xfs/libxfs/xfs_ialloc_btree.c 	error = xfs_inobt_cur(mp, tp, agno, btnum, &cur, &agbp);
mp                623 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,
mp                632 fs/xfs/libxfs/xfs_ialloc_btree.c 	if (!xfs_sb_version_hasfinobt(&mp->m_sb))
mp                635 fs/xfs/libxfs/xfs_ialloc_btree.c 	error = xfs_inobt_count_blocks(mp, tp, agno, XFS_BTNUM_FINO, &tree_len);
mp                639 fs/xfs/libxfs/xfs_ialloc_btree.c 	*ask += xfs_inobt_max_size(mp, agno);
mp                647 fs/xfs/libxfs/xfs_ialloc_btree.c 	struct xfs_mount	*mp,
mp                650 fs/xfs/libxfs/xfs_ialloc_btree.c 	return xfs_btree_calc_size(M_IGEO(mp)->inobt_mnr, len);
mp                 20 fs/xfs/libxfs/xfs_ialloc_btree.h #define XFS_INOBT_BLOCK_LEN(mp) \
mp                 21 fs/xfs/libxfs/xfs_ialloc_btree.h 	(xfs_sb_version_hascrc(&((mp)->m_sb)) ? \
mp                 29 fs/xfs/libxfs/xfs_ialloc_btree.h #define XFS_INOBT_REC_ADDR(mp, block, index) \
mp                 32 fs/xfs/libxfs/xfs_ialloc_btree.h 		 XFS_INOBT_BLOCK_LEN(mp) + \
mp                 35 fs/xfs/libxfs/xfs_ialloc_btree.h #define XFS_INOBT_KEY_ADDR(mp, block, index) \
mp                 38 fs/xfs/libxfs/xfs_ialloc_btree.h 		 XFS_INOBT_BLOCK_LEN(mp) + \
mp                 41 fs/xfs/libxfs/xfs_ialloc_btree.h #define XFS_INOBT_PTR_ADDR(mp, block, index, maxrecs) \
mp                 44 fs/xfs/libxfs/xfs_ialloc_btree.h 		 XFS_INOBT_BLOCK_LEN(mp) + \
mp                 60 fs/xfs/libxfs/xfs_ialloc_btree.h #define xfs_inobt_rec_check_count(mp, rec)	0
mp                 63 fs/xfs/libxfs/xfs_ialloc_btree.h int xfs_finobt_calc_reserves(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 65 fs/xfs/libxfs/xfs_ialloc_btree.h extern xfs_extlen_t xfs_iallocbt_calc_size(struct xfs_mount *mp,
mp                 67 fs/xfs/libxfs/xfs_ialloc_btree.h int xfs_inobt_cur(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 30 fs/xfs/libxfs/xfs_inode_buf.c 	xfs_mount_t	*mp,
mp                 36 fs/xfs/libxfs/xfs_inode_buf.c 	for (i = 0; i < M_IGEO(mp)->inodes_per_cluster; i++) {
mp                 37 fs/xfs/libxfs/xfs_inode_buf.c 		dip = xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize);
mp                 39 fs/xfs/libxfs/xfs_inode_buf.c 			xfs_alert(mp,
mp                 49 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount *mp,
mp                 52 fs/xfs/libxfs/xfs_inode_buf.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                 78 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount *mp = bp->b_mount;
mp                 86 fs/xfs/libxfs/xfs_inode_buf.c 	agno = xfs_daddr_to_agno(mp, XFS_BUF_ADDR(bp));
mp                 87 fs/xfs/libxfs/xfs_inode_buf.c 	ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock;
mp                 93 fs/xfs/libxfs/xfs_inode_buf.c 		dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog));
mp                 96 fs/xfs/libxfs/xfs_inode_buf.c 			xfs_dinode_good_version(mp, dip->di_version) &&
mp                 97 fs/xfs/libxfs/xfs_inode_buf.c 			xfs_verify_agino_or_null(mp, agno, unlinked_ino);
mp                 98 fs/xfs/libxfs/xfs_inode_buf.c 		if (unlikely(XFS_TEST_ERROR(!di_ok, mp,
mp                107 fs/xfs/libxfs/xfs_inode_buf.c 			xfs_alert(mp,
mp                170 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount	*mp,
mp                182 fs/xfs/libxfs/xfs_inode_buf.c 	error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno,
mp                190 fs/xfs/libxfs/xfs_inode_buf.c 		xfs_warn(mp, "%s: xfs_trans_read_buf() returned error %d.",
mp                378 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount	*mp,
mp                392 fs/xfs/libxfs/xfs_inode_buf.c 					XFS_DFORK_SIZE(dip, mp, whichfork))
mp                399 fs/xfs/libxfs/xfs_inode_buf.c 		if (di_nextents > XFS_DFORK_MAXEXT(dip, mp, whichfork))
mp                419 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount	*mp)
mp                432 fs/xfs/libxfs/xfs_inode_buf.c 		if (dip->di_forkoff >= (XFS_LITINO(mp, dip->di_version) >> 3))
mp                443 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount	*mp,
mp                458 fs/xfs/libxfs/xfs_inode_buf.c 		if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                460 fs/xfs/libxfs/xfs_inode_buf.c 		if (!xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize,
mp                465 fs/xfs/libxfs/xfs_inode_buf.c 		if (!uuid_equal(&dip->di_uuid, &mp->m_sb.sb_meta_uuid))
mp                488 fs/xfs/libxfs/xfs_inode_buf.c 	if (mode && XFS_DFORK_BOFF(dip) > mp->m_sb.sb_inodesize)
mp                493 fs/xfs/libxfs/xfs_inode_buf.c 	if (mode && (flags & XFS_DIFLAG_REALTIME) && !mp->m_rtdev_targp)
mp                497 fs/xfs/libxfs/xfs_inode_buf.c 	fa = xfs_dinode_verify_forkoff(dip, mp);
mp                513 fs/xfs/libxfs/xfs_inode_buf.c 		fa = xfs_dinode_verify_fork(dip, mp, XFS_DATA_FORK);
mp                525 fs/xfs/libxfs/xfs_inode_buf.c 		fa = xfs_dinode_verify_fork(dip, mp, XFS_ATTR_FORK);
mp                547 fs/xfs/libxfs/xfs_inode_buf.c 	fa = xfs_inode_validate_extsize(mp, be32_to_cpu(dip->di_extsize),
mp                560 fs/xfs/libxfs/xfs_inode_buf.c 	     !xfs_sb_version_hasreflink(&mp->m_sb))
mp                576 fs/xfs/libxfs/xfs_inode_buf.c 	fa = xfs_inode_validate_cowextsize(mp, be32_to_cpu(dip->di_cowextsize),
mp                586 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount	*mp,
mp                594 fs/xfs/libxfs/xfs_inode_buf.c 	ASSERT(xfs_sb_version_hascrc(&mp->m_sb));
mp                595 fs/xfs/libxfs/xfs_inode_buf.c 	crc = xfs_start_cksum_update((char *)dip, mp->m_sb.sb_inodesize,
mp                614 fs/xfs/libxfs/xfs_inode_buf.c 	xfs_mount_t	*mp,
mp                627 fs/xfs/libxfs/xfs_inode_buf.c 	error = xfs_imap(mp, tp, ip->i_ino, &ip->i_imap, iget_flags);
mp                633 fs/xfs/libxfs/xfs_inode_buf.c 	    xfs_sb_version_hascrc(&mp->m_sb) &&
mp                634 fs/xfs/libxfs/xfs_inode_buf.c 	    !(mp->m_flags & XFS_MOUNT_IKEEP)) {
mp                645 fs/xfs/libxfs/xfs_inode_buf.c 	error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &bp, 0, iget_flags);
mp                650 fs/xfs/libxfs/xfs_inode_buf.c 	fa = xfs_dinode_verify(mp, ip->i_ino, dip);
mp                670 fs/xfs/libxfs/xfs_inode_buf.c 			xfs_alert(mp, "%s: xfs_iformat() returned error %d",
mp                729 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount		*mp,
mp                743 fs/xfs/libxfs/xfs_inode_buf.c 	extsize_bytes = XFS_FSB_TO_B(mp, extsize);
mp                746 fs/xfs/libxfs/xfs_inode_buf.c 		blocksize_bytes = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog;
mp                748 fs/xfs/libxfs/xfs_inode_buf.c 		blocksize_bytes = mp->m_sb.sb_blocksize;
mp                772 fs/xfs/libxfs/xfs_inode_buf.c 	if (!rt_flag && extsize > mp->m_sb.sb_agblocks / 2)
mp                786 fs/xfs/libxfs/xfs_inode_buf.c 	struct xfs_mount		*mp,
mp                798 fs/xfs/libxfs/xfs_inode_buf.c 	cowextsize_bytes = XFS_FSB_TO_B(mp, cowextsize);
mp                800 fs/xfs/libxfs/xfs_inode_buf.c 	if (hint_flag && !xfs_sb_version_hasreflink(&mp->m_sb))
mp                816 fs/xfs/libxfs/xfs_inode_buf.c 	if (cowextsize_bytes % mp->m_sb.sb_blocksize)
mp                822 fs/xfs/libxfs/xfs_inode_buf.c 	if (cowextsize > mp->m_sb.sb_agblocks / 2)
mp                 65 fs/xfs/libxfs/xfs_inode_buf.h bool	xfs_dinode_good_version(struct xfs_mount *mp, __u8 version);
mp                 70 fs/xfs/libxfs/xfs_inode_buf.h #define	xfs_inobp_check(mp, bp)
mp                 73 fs/xfs/libxfs/xfs_inode_buf.h xfs_failaddr_t xfs_dinode_verify(struct xfs_mount *mp, xfs_ino_t ino,
mp                 75 fs/xfs/libxfs/xfs_inode_buf.h xfs_failaddr_t xfs_inode_validate_extsize(struct xfs_mount *mp,
mp                 77 fs/xfs/libxfs/xfs_inode_buf.h xfs_failaddr_t xfs_inode_validate_cowextsize(struct xfs_mount *mp,
mp                203 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_mount	*mp = ip->i_mount;
mp                217 fs/xfs/libxfs/xfs_inode_fork.c 	if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) {
mp                268 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_mount	*mp = ip->i_mount;
mp                278 fs/xfs/libxfs/xfs_inode_fork.c 	size = XFS_BMAP_BROOT_SPACE(mp, dfp);
mp                293 fs/xfs/libxfs/xfs_inode_fork.c 					XFS_DFORK_SIZE(dip, mp, whichfork) ||
mp                296 fs/xfs/libxfs/xfs_inode_fork.c 		xfs_warn(mp, "corrupt inode %Lu (btree).",
mp                346 fs/xfs/libxfs/xfs_inode_fork.c 	struct xfs_mount	*mp = ip->i_mount;
mp                369 fs/xfs/libxfs/xfs_inode_fork.c 			new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, rec_diff);
mp                381 fs/xfs/libxfs/xfs_inode_fork.c 		cur_max = xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, 0);
mp                383 fs/xfs/libxfs/xfs_inode_fork.c 		new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max);
mp                386 fs/xfs/libxfs/xfs_inode_fork.c 		op = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1,
mp                388 fs/xfs/libxfs/xfs_inode_fork.c 		np = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1,
mp                403 fs/xfs/libxfs/xfs_inode_fork.c 	cur_max = xfs_bmbt_maxrecs(mp, ifp->if_broot_bytes, 0);
mp                407 fs/xfs/libxfs/xfs_inode_fork.c 		new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max);
mp                429 fs/xfs/libxfs/xfs_inode_fork.c 		op = (char *)XFS_BMBT_REC_ADDR(mp, ifp->if_broot, 1);
mp                430 fs/xfs/libxfs/xfs_inode_fork.c 		np = (char *)XFS_BMBT_REC_ADDR(mp, new_broot, 1);
mp                436 fs/xfs/libxfs/xfs_inode_fork.c 		op = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1,
mp                438 fs/xfs/libxfs/xfs_inode_fork.c 		np = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, new_broot, 1,
mp                594 fs/xfs/libxfs/xfs_inode_fork.c 	xfs_mount_t		*mp;
mp                614 fs/xfs/libxfs/xfs_inode_fork.c 	mp = ip->i_mount;
mp                642 fs/xfs/libxfs/xfs_inode_fork.c 			xfs_bmbt_to_bmdr(mp, ifp->if_broot, ifp->if_broot_bytes,
mp                644 fs/xfs/libxfs/xfs_inode_fork.c 				XFS_DFORK_SIZE(dip, mp, whichfork));
mp                 24 fs/xfs/libxfs/xfs_log_rlimit.c 	struct xfs_mount	*mp)
mp                 29 fs/xfs/libxfs/xfs_log_rlimit.c 	size = xfs_attr_leaf_entsize_local_max(mp->m_attr_geo->blksize) -
mp                 31 fs/xfs/libxfs/xfs_log_rlimit.c 	nblks = XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK);
mp                 32 fs/xfs/libxfs/xfs_log_rlimit.c 	nblks += XFS_B_TO_FSB(mp, size);
mp                 33 fs/xfs/libxfs/xfs_log_rlimit.c 	nblks += XFS_NEXTENTADD_SPACE_RES(mp, size, XFS_ATTR_FORK);
mp                 35 fs/xfs/libxfs/xfs_log_rlimit.c 	return  M_RES(mp)->tr_attrsetm.tr_logres +
mp                 36 fs/xfs/libxfs/xfs_log_rlimit.c 		M_RES(mp)->tr_attrsetrt.tr_logres * nblks;
mp                 46 fs/xfs/libxfs/xfs_log_rlimit.c 	struct xfs_mount	*mp,
mp                 54 fs/xfs/libxfs/xfs_log_rlimit.c 	attr_space = xfs_log_calc_max_attrsetm_res(mp);
mp                 56 fs/xfs/libxfs/xfs_log_rlimit.c 	resp = (struct xfs_trans_res *)M_RES(mp);
mp                 57 fs/xfs/libxfs/xfs_log_rlimit.c 	end_resp = (struct xfs_trans_res *)(M_RES(mp) + 1);
mp                 69 fs/xfs/libxfs/xfs_log_rlimit.c 		*max_resp = M_RES(mp)->tr_attrsetm;	/* struct copy */
mp                 82 fs/xfs/libxfs/xfs_log_rlimit.c 	struct xfs_mount	*mp)
mp                 89 fs/xfs/libxfs/xfs_log_rlimit.c 	xfs_log_get_max_trans_res(mp, &tres);
mp                 91 fs/xfs/libxfs/xfs_log_rlimit.c 	max_logres = xfs_log_calc_unit_res(mp, tres.tr_logres);
mp                 95 fs/xfs/libxfs/xfs_log_rlimit.c 	if (xfs_sb_version_haslogv2(&mp->m_sb) && mp->m_sb.sb_logsunit > 1)
mp                 96 fs/xfs/libxfs/xfs_log_rlimit.c 		lsunit = BTOBB(mp->m_sb.sb_logsunit);
mp                133 fs/xfs/libxfs/xfs_log_rlimit.c 	return XFS_BB_TO_FSB(mp, min_logblks);
mp                 60 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_DQUOT_LOGRES(mp)	\
mp                 63 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_QUOTA_RUNNING(mp)	((mp)->m_qflags & XFS_ALL_QUOTA_ACCT)
mp                 64 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_UQUOTA_RUNNING(mp)	((mp)->m_qflags & XFS_UQUOTA_ACCT)
mp                 65 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_PQUOTA_RUNNING(mp)	((mp)->m_qflags & XFS_PQUOTA_ACCT)
mp                 66 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_GQUOTA_RUNNING(mp)	((mp)->m_qflags & XFS_GQUOTA_ACCT)
mp                 67 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_UQUOTA_ENFORCED(mp)	((mp)->m_qflags & XFS_UQUOTA_ENFD)
mp                 68 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_GQUOTA_ENFORCED(mp)	((mp)->m_qflags & XFS_GQUOTA_ENFD)
mp                 69 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_PQUOTA_ENFORCED(mp)	((mp)->m_qflags & XFS_PQUOTA_ENFD)
mp                 86 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_QUOTA_ON(mp)	((mp)->m_qflags & (XFS_UQUOTA_ACTIVE | \
mp                 89 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_UQUOTA_ON(mp)	((mp)->m_qflags & XFS_UQUOTA_ACTIVE)
mp                 90 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_GQUOTA_ON(mp)	((mp)->m_qflags & XFS_GQUOTA_ACTIVE)
mp                 91 fs/xfs/libxfs/xfs_quota_defs.h #define XFS_IS_PQUOTA_ON(mp)	((mp)->m_qflags & XFS_PQUOTA_ACTIVE)
mp                140 fs/xfs/libxfs/xfs_quota_defs.h extern xfs_failaddr_t xfs_dquot_verify(struct xfs_mount *mp,
mp                142 fs/xfs/libxfs/xfs_quota_defs.h extern xfs_failaddr_t xfs_dqblk_verify(struct xfs_mount *mp,
mp                145 fs/xfs/libxfs/xfs_quota_defs.h extern void xfs_dqblk_repair(struct xfs_mount *mp, struct xfs_dqblk *dqb,
mp                110 fs/xfs/libxfs/xfs_refcount.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                137 fs/xfs/libxfs/xfs_refcount.c 	if (!xfs_verify_agbno(mp, agno, realstart))
mp                141 fs/xfs/libxfs/xfs_refcount.c 	if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1))
mp                151 fs/xfs/libxfs/xfs_refcount.c 	xfs_warn(mp,
mp                153 fs/xfs/libxfs/xfs_refcount.c 	xfs_warn(mp,
mp               1086 fs/xfs/libxfs/xfs_refcount.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               1096 fs/xfs/libxfs/xfs_refcount.c 	agno = XFS_FSB_TO_AGNO(mp, startblock);
mp               1098 fs/xfs/libxfs/xfs_refcount.c 	bno = XFS_FSB_TO_AGBNO(mp, startblock);
mp               1100 fs/xfs/libxfs/xfs_refcount.c 	trace_xfs_refcount_deferred(mp, XFS_FSB_TO_AGNO(mp, startblock),
mp               1101 fs/xfs/libxfs/xfs_refcount.c 			type, XFS_FSB_TO_AGBNO(mp, startblock),
mp               1104 fs/xfs/libxfs/xfs_refcount.c 	if (XFS_TEST_ERROR(false, mp,
mp               1128 fs/xfs/libxfs/xfs_refcount.c 		rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno);
mp               1142 fs/xfs/libxfs/xfs_refcount.c 		*new_fsb = XFS_AGB_TO_FSB(mp, agno, new_agbno);
mp               1147 fs/xfs/libxfs/xfs_refcount.c 		*new_fsb = XFS_AGB_TO_FSB(mp, agno, new_agbno);
mp               1164 fs/xfs/libxfs/xfs_refcount.c 		trace_xfs_refcount_finish_one_leftover(mp, agno, type,
mp               1549 fs/xfs/libxfs/xfs_refcount.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               1551 fs/xfs/libxfs/xfs_refcount.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp               1557 fs/xfs/libxfs/xfs_refcount.c 	xfs_rmap_alloc_extent(tp, XFS_FSB_TO_AGNO(mp, fsb),
mp               1558 fs/xfs/libxfs/xfs_refcount.c 			XFS_FSB_TO_AGBNO(mp, fsb), len, XFS_RMAP_OWN_COW);
mp               1568 fs/xfs/libxfs/xfs_refcount.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               1570 fs/xfs/libxfs/xfs_refcount.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp               1574 fs/xfs/libxfs/xfs_refcount.c 	xfs_rmap_free_extent(tp, XFS_FSB_TO_AGNO(mp, fsb),
mp               1575 fs/xfs/libxfs/xfs_refcount.c 			XFS_FSB_TO_AGBNO(mp, fsb), len, XFS_RMAP_OWN_COW);
mp               1607 fs/xfs/libxfs/xfs_refcount.c 	struct xfs_mount		*mp,
mp               1621 fs/xfs/libxfs/xfs_refcount.c 	if (mp->m_sb.sb_agblocks >= XFS_REFC_COW_START)
mp               1636 fs/xfs/libxfs/xfs_refcount.c 	error = xfs_trans_alloc_empty(mp, &tp);
mp               1640 fs/xfs/libxfs/xfs_refcount.c 	error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp);
mp               1647 fs/xfs/libxfs/xfs_refcount.c 	cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno);
mp               1665 fs/xfs/libxfs/xfs_refcount.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, 0, 0, 0, &tp);
mp               1669 fs/xfs/libxfs/xfs_refcount.c 		trace_xfs_refcount_recover_extent(mp, agno, &rr->rr_rrec);
mp               1673 fs/xfs/libxfs/xfs_refcount.c 		fsb = XFS_AGB_TO_FSB(mp, agno, agbno);
mp                 52 fs/xfs/libxfs/xfs_refcount.h extern int xfs_refcount_recover_cow_leftovers(struct xfs_mount *mp,
mp                 67 fs/xfs/libxfs/xfs_refcount_btree.c 	args.mp = cur->bc_mp;
mp                 70 fs/xfs/libxfs/xfs_refcount_btree.c 			xfs_refc_block(args.mp));
mp                103 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                106 fs/xfs/libxfs/xfs_refcount_btree.c 	xfs_fsblock_t		fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp));
mp                204 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                213 fs/xfs/libxfs/xfs_refcount_btree.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp                223 fs/xfs/libxfs/xfs_refcount_btree.c 	} else if (level >= mp->m_refc_maxlevels)
mp                226 fs/xfs/libxfs/xfs_refcount_btree.c 	return xfs_btree_sblock_verify(bp, mp->m_refc_mxr[level != 0]);
mp                318 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount	*mp,
mp                327 fs/xfs/libxfs/xfs_refcount_btree.c 	ASSERT(agno < mp->m_sb.sb_agcount);
mp                331 fs/xfs/libxfs/xfs_refcount_btree.c 	cur->bc_mp = mp;
mp                333 fs/xfs/libxfs/xfs_refcount_btree.c 	cur->bc_blocklog = mp->m_sb.sb_blocklog;
mp                368 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount		*mp)
mp                370 fs/xfs/libxfs/xfs_refcount_btree.c 	mp->m_refc_maxlevels = xfs_btree_compute_maxlevels(
mp                371 fs/xfs/libxfs/xfs_refcount_btree.c 			mp->m_refc_mnr, mp->m_sb.sb_agblocks);
mp                377 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount	*mp,
mp                380 fs/xfs/libxfs/xfs_refcount_btree.c 	return xfs_btree_calc_size(mp->m_refc_mnr, len);
mp                388 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount	*mp,
mp                392 fs/xfs/libxfs/xfs_refcount_btree.c 	if (mp->m_refc_mxr[0] == 0)
mp                395 fs/xfs/libxfs/xfs_refcount_btree.c 	return xfs_refcountbt_calc_size(mp, agblocks);
mp                403 fs/xfs/libxfs/xfs_refcount_btree.c 	struct xfs_mount	*mp,
mp                415 fs/xfs/libxfs/xfs_refcount_btree.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp                419 fs/xfs/libxfs/xfs_refcount_btree.c 	error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp);
mp                433 fs/xfs/libxfs/xfs_refcount_btree.c 	if (mp->m_sb.sb_logstart &&
mp                434 fs/xfs/libxfs/xfs_refcount_btree.c 	    XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno)
mp                435 fs/xfs/libxfs/xfs_refcount_btree.c 		agblocks -= mp->m_sb.sb_logblocks;
mp                437 fs/xfs/libxfs/xfs_refcount_btree.c 	*ask += xfs_refcountbt_max_size(mp, agblocks);
mp                 46 fs/xfs/libxfs/xfs_refcount_btree.h extern struct xfs_btree_cur *xfs_refcountbt_init_cursor(struct xfs_mount *mp,
mp                 50 fs/xfs/libxfs/xfs_refcount_btree.h extern void xfs_refcountbt_compute_maxlevels(struct xfs_mount *mp);
mp                 52 fs/xfs/libxfs/xfs_refcount_btree.h extern xfs_extlen_t xfs_refcountbt_calc_size(struct xfs_mount *mp,
mp                 54 fs/xfs/libxfs/xfs_refcount_btree.h extern xfs_extlen_t xfs_refcountbt_max_size(struct xfs_mount *mp,
mp                 57 fs/xfs/libxfs/xfs_refcount_btree.h extern int xfs_refcountbt_calc_reserves(struct xfs_mount *mp,
mp                187 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount	*mp = cur->bc_mp;
mp                201 fs/xfs/libxfs/xfs_rmap.c 	if (irec->rm_startblock <= XFS_AGFL_BLOCK(mp)) {
mp                204 fs/xfs/libxfs/xfs_rmap.c 		if (irec->rm_blockcount != XFS_AGFL_BLOCK(mp) + 1)
mp                208 fs/xfs/libxfs/xfs_rmap.c 		if (!xfs_verify_agbno(mp, agno, irec->rm_startblock))
mp                213 fs/xfs/libxfs/xfs_rmap.c 		if (!xfs_verify_agbno(mp, agno,
mp                218 fs/xfs/libxfs/xfs_rmap.c 	if (!(xfs_verify_ino(mp, irec->rm_owner) ||
mp                225 fs/xfs/libxfs/xfs_rmap.c 	xfs_warn(mp,
mp                228 fs/xfs/libxfs/xfs_rmap.c 	xfs_warn(mp,
mp                395 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount	*mp,
mp                409 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, (flags & XFS_RMAP_UNWRITTEN) ==
mp                413 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, owner == rec->rm_owner, out);
mp                420 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, rec->rm_flags & XFS_RMAP_BMBT_BLOCK,
mp                423 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, rec->rm_offset <= offset, out);
mp                424 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp,
mp                459 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                474 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_unmap(mp, cur->bc_private.a.agno, bno, len,
mp                485 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp                490 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp                505 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, bno >= ltrec.rm_startblock +
mp                529 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp                535 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, ltrec.rm_startblock <= bno &&
mp                540 fs/xfs/libxfs/xfs_rmap.c 	error = xfs_rmap_free_check_owner(mp, ltoff, &ltrec, len, owner,
mp                547 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_delete(mp, cur->bc_private.a.agno,
mp                554 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp                622 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_insert(mp, cur->bc_private.a.agno,
mp                634 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_unmap_done(mp, cur->bc_private.a.agno, bno, len,
mp                638 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_unmap_error(mp, cur->bc_private.a.agno,
mp                655 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                659 fs/xfs/libxfs/xfs_rmap.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                662 fs/xfs/libxfs/xfs_rmap.c 	cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno);
mp                711 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                729 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_map(mp, cur->bc_private.a.agno, bno, len,
mp                746 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, have_lt == 1, out_error);
mp                756 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp,
mp                772 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, have_gt == 1, out_error);
mp                773 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, bno + len <= gtrec.rm_startblock,
mp                815 fs/xfs/libxfs/xfs_rmap.c 			trace_xfs_rmap_delete(mp, cur->bc_private.a.agno,
mp                824 fs/xfs/libxfs/xfs_rmap.c 			XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp                863 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno, len,
mp                868 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp                871 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_map_done(mp, cur->bc_private.a.agno, bno, len,
mp                875 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_map_error(mp, cur->bc_private.a.agno,
mp                892 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                896 fs/xfs/libxfs/xfs_rmap.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                899 fs/xfs/libxfs/xfs_rmap.c 	cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno);
mp                930 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                949 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_convert(mp, cur->bc_private.a.agno, bno, len,
mp                960 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp                965 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp                998 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp                999 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp,
mp               1020 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1029 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1030 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, bno + len <= RIGHT.rm_startblock,
mp               1051 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_convert_state(mp, cur->bc_private.a.agno, state,
mp               1058 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1074 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1075 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_delete(mp, cur->bc_private.a.agno,
mp               1082 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1086 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1087 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_delete(mp, cur->bc_private.a.agno,
mp               1094 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1098 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1111 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_delete(mp, cur->bc_private.a.agno,
mp               1118 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1122 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1138 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1139 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_delete(mp, cur->bc_private.a.agno,
mp               1146 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1150 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1212 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno,
mp               1217 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1256 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               1263 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno,
mp               1268 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1291 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_insert(mp, cur->bc_private.a.agno,
mp               1298 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1308 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 0, done);
mp               1312 fs/xfs/libxfs/xfs_rmap.c 		trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno, len,
mp               1317 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1333 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_convert_done(mp, cur->bc_private.a.agno, bno, len,
mp               1355 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp               1374 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_convert(mp, cur->bc_private.a.agno, bno, len,
mp               1386 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1409 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp,
mp               1426 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1427 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, bno + len <= RIGHT.rm_startblock,
mp               1446 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_convert_state(mp, cur->bc_private.a.agno, state,
mp               1475 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1498 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1521 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1541 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1573 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1615 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1647 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1682 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
mp               1713 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_convert_done(mp, cur->bc_private.a.agno, bno, len,
mp               1744 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp               1756 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_unmap(mp, cur->bc_private.a.agno, bno, len,
mp               1768 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp               1772 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, ltrec.rm_startblock <= bno &&
mp               1777 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, owner == ltrec.rm_owner, out_error);
mp               1780 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, (flags & XFS_RMAP_UNWRITTEN) ==
mp               1784 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, ltrec.rm_offset <= offset, out_error);
mp               1785 fs/xfs/libxfs/xfs_rmap.c 	XFS_WANT_CORRUPTED_GOTO(mp, offset <= ltoff + ltrec.rm_blockcount,
mp               1839 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp               1865 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp               1880 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_unmap_done(mp, cur->bc_private.a.agno, bno, len,
mp               1906 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp               1920 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_map(mp, cur->bc_private.a.agno, bno, len,
mp               1941 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, have_gt == 1, out_error);
mp               1990 fs/xfs/libxfs/xfs_rmap.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_error);
mp               2033 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_map_done(mp, cur->bc_private.a.agno, bno, len,
mp               2163 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               2172 fs/xfs/libxfs/xfs_rmap.c 	agno = XFS_FSB_TO_AGNO(mp, startblock);
mp               2174 fs/xfs/libxfs/xfs_rmap.c 	bno = XFS_FSB_TO_AGBNO(mp, startblock);
mp               2176 fs/xfs/libxfs/xfs_rmap.c 	trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork,
mp               2179 fs/xfs/libxfs/xfs_rmap.c 	if (XFS_TEST_ERROR(false, mp,
mp               2205 fs/xfs/libxfs/xfs_rmap.c 		rcur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno);
mp               2260 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount	*mp,
mp               2263 fs/xfs/libxfs/xfs_rmap.c 	return xfs_sb_version_hasrmapbt(&mp->m_sb) && whichfork != XFS_COW_FORK;
mp               2339 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_mount	*mp,
mp               2345 fs/xfs/libxfs/xfs_rmap.c 	if (!xfs_rmap_update_is_needed(mp, whichfork))
mp                169 fs/xfs/libxfs/xfs_rmap.h void xfs_rmap_convert_extent(struct xfs_mount *mp, struct xfs_trans *tp,
mp                291 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_mount	*mp = bp->b_mount;
mp                312 fs/xfs/libxfs/xfs_rmap_btree.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                322 fs/xfs/libxfs/xfs_rmap_btree.c 	} else if (level >= mp->m_rmap_maxlevels)
mp                325 fs/xfs/libxfs/xfs_rmap_btree.c 	return xfs_btree_sblock_verify(bp, mp->m_rmap_mxr[level != 0]);
mp                456 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_mount	*mp,
mp                466 fs/xfs/libxfs/xfs_rmap_btree.c 	cur->bc_mp = mp;
mp                470 fs/xfs/libxfs/xfs_rmap_btree.c 	cur->bc_blocklog = mp->m_sb.sb_blocklog;
mp                500 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_mount		*mp)
mp                517 fs/xfs/libxfs/xfs_rmap_btree.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                518 fs/xfs/libxfs/xfs_rmap_btree.c 		mp->m_rmap_maxlevels = XFS_BTREE_MAXLEVELS;
mp                520 fs/xfs/libxfs/xfs_rmap_btree.c 		mp->m_rmap_maxlevels = xfs_btree_compute_maxlevels(
mp                521 fs/xfs/libxfs/xfs_rmap_btree.c 				mp->m_rmap_mnr, mp->m_sb.sb_agblocks);
mp                527 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_mount	*mp,
mp                530 fs/xfs/libxfs/xfs_rmap_btree.c 	return xfs_btree_calc_size(mp->m_rmap_mnr, len);
mp                538 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_mount	*mp,
mp                542 fs/xfs/libxfs/xfs_rmap_btree.c 	if (mp->m_rmap_mxr[0] == 0)
mp                545 fs/xfs/libxfs/xfs_rmap_btree.c 	return xfs_rmapbt_calc_size(mp, agblocks);
mp                553 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_mount	*mp,
mp                565 fs/xfs/libxfs/xfs_rmap_btree.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                568 fs/xfs/libxfs/xfs_rmap_btree.c 	error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp);
mp                582 fs/xfs/libxfs/xfs_rmap_btree.c 	if (mp->m_sb.sb_logstart &&
mp                583 fs/xfs/libxfs/xfs_rmap_btree.c 	    XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno)
mp                584 fs/xfs/libxfs/xfs_rmap_btree.c 		agblocks -= mp->m_sb.sb_logblocks;
mp                587 fs/xfs/libxfs/xfs_rmap_btree.c 	*ask += max(agblocks / 100, xfs_rmapbt_max_size(mp, agblocks));
mp                 43 fs/xfs/libxfs/xfs_rmap_btree.h struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp,
mp                 47 fs/xfs/libxfs/xfs_rmap_btree.h extern void xfs_rmapbt_compute_maxlevels(struct xfs_mount *mp);
mp                 49 fs/xfs/libxfs/xfs_rmap_btree.h extern xfs_extlen_t xfs_rmapbt_calc_size(struct xfs_mount *mp,
mp                 51 fs/xfs/libxfs/xfs_rmap_btree.h extern xfs_extlen_t xfs_rmapbt_max_size(struct xfs_mount *mp,
mp                 54 fs/xfs/libxfs/xfs_rmap_btree.h extern int xfs_rmapbt_calc_reserves(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 55 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                 67 fs/xfs/libxfs/xfs_rtbitmap.c 	ip = issum ? mp->m_rsumip : mp->m_rbmip;
mp                 77 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp,
mp                 78 fs/xfs/libxfs/xfs_rtbitmap.c 				   XFS_FSB_TO_DADDR(mp, map.br_startblock),
mp                 79 fs/xfs/libxfs/xfs_rtbitmap.c 				   mp->m_bsize, 0, &bp, &xfs_rtbuf_ops);
mp                 95 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                118 fs/xfs/libxfs/xfs_rtbitmap.c 	block = XFS_BITTOBLOCK(mp, start);
mp                119 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
mp                127 fs/xfs/libxfs/xfs_rtbitmap.c 	word = XFS_BITTOWORD(mp, start);
mp                171 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, --block, 0, &bp);
mp                176 fs/xfs/libxfs/xfs_rtbitmap.c 			word = XFS_BLOCKWMASK(mp);
mp                217 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, --block, 0, &bp);
mp                222 fs/xfs/libxfs/xfs_rtbitmap.c 			word = XFS_BLOCKWMASK(mp);
mp                270 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                293 fs/xfs/libxfs/xfs_rtbitmap.c 	block = XFS_BITTOBLOCK(mp, start);
mp                294 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
mp                302 fs/xfs/libxfs/xfs_rtbitmap.c 	word = XFS_BITTOWORD(mp, start);
mp                340 fs/xfs/libxfs/xfs_rtbitmap.c 		if (++word == XFS_BLOCKWSIZE(mp) && i < len) {
mp                345 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
mp                385 fs/xfs/libxfs/xfs_rtbitmap.c 		if (++word == XFS_BLOCKWSIZE(mp) && i < len) {
mp                390 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
mp                445 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                463 fs/xfs/libxfs/xfs_rtbitmap.c 	so = XFS_SUMOFFS(mp, log, bbno);
mp                467 fs/xfs/libxfs/xfs_rtbitmap.c 	sb = XFS_SUMOFFSTOBLOCK(mp, so);
mp                482 fs/xfs/libxfs/xfs_rtbitmap.c 		error = xfs_rtbuf_get(mp, tp, sb, 1, &bp);
mp                495 fs/xfs/libxfs/xfs_rtbitmap.c 	sp = XFS_SUMPTR(mp, bp, so);
mp                500 fs/xfs/libxfs/xfs_rtbitmap.c 		if (mp->m_rsum_cache) {
mp                501 fs/xfs/libxfs/xfs_rtbitmap.c 			if (*sp == 0 && log == mp->m_rsum_cache[bbno])
mp                502 fs/xfs/libxfs/xfs_rtbitmap.c 				mp->m_rsum_cache[bbno]++;
mp                503 fs/xfs/libxfs/xfs_rtbitmap.c 			if (*sp != 0 && log < mp->m_rsum_cache[bbno])
mp                504 fs/xfs/libxfs/xfs_rtbitmap.c 				mp->m_rsum_cache[bbno] = log;
mp                515 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                523 fs/xfs/libxfs/xfs_rtbitmap.c 	return xfs_rtmodify_summary_int(mp, tp, log, bbno,
mp                533 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                554 fs/xfs/libxfs/xfs_rtbitmap.c 	block = XFS_BITTOBLOCK(mp, start);
mp                558 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
mp                566 fs/xfs/libxfs/xfs_rtbitmap.c 	word = XFS_BITTOWORD(mp, start);
mp                595 fs/xfs/libxfs/xfs_rtbitmap.c 		if (++word == XFS_BLOCKWSIZE(mp) && i < len) {
mp                603 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
mp                635 fs/xfs/libxfs/xfs_rtbitmap.c 		if (++word == XFS_BLOCKWSIZE(mp) && i < len) {
mp                643 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
mp                689 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                705 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtmodify_range(mp, tp, start, len, 1);
mp                714 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtfind_back(mp, tp, start, 0, &preblock);
mp                721 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1,
mp                730 fs/xfs/libxfs/xfs_rtbitmap.c 		error = xfs_rtmodify_summary(mp, tp,
mp                732 fs/xfs/libxfs/xfs_rtbitmap.c 			XFS_BITTOBLOCK(mp, preblock), -1, rbpp, rsb);
mp                742 fs/xfs/libxfs/xfs_rtbitmap.c 		error = xfs_rtmodify_summary(mp, tp,
mp                744 fs/xfs/libxfs/xfs_rtbitmap.c 			XFS_BITTOBLOCK(mp, end + 1), -1, rbpp, rsb);
mp                753 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtmodify_summary(mp, tp,
mp                755 fs/xfs/libxfs/xfs_rtbitmap.c 		XFS_BITTOBLOCK(mp, preblock), 1, rbpp, rsb);
mp                765 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                788 fs/xfs/libxfs/xfs_rtbitmap.c 	block = XFS_BITTOBLOCK(mp, start);
mp                792 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtbuf_get(mp, tp, block, 0, &bp);
mp                800 fs/xfs/libxfs/xfs_rtbitmap.c 	word = XFS_BITTOWORD(mp, start);
mp                838 fs/xfs/libxfs/xfs_rtbitmap.c 		if (++word == XFS_BLOCKWSIZE(mp) && i < len) {
mp                843 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
mp                884 fs/xfs/libxfs/xfs_rtbitmap.c 		if (++word == XFS_BLOCKWSIZE(mp) && i < len) {
mp                889 fs/xfs/libxfs/xfs_rtbitmap.c 			error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp);
mp                941 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                950 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtcheck_range(mp, tp, bno, len, 0, &new, &stat);
mp                970 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_mount_t	*mp;		/* file system mount structure */
mp                974 fs/xfs/libxfs/xfs_rtbitmap.c 	mp = tp->t_mountp;
mp                976 fs/xfs/libxfs/xfs_rtbitmap.c 	ASSERT(mp->m_rbmip->i_itemp != NULL);
mp                977 fs/xfs/libxfs/xfs_rtbitmap.c 	ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL));
mp                979 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtcheck_alloc_range(mp, tp, bno, len);
mp                986 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb);
mp                998 fs/xfs/libxfs/xfs_rtbitmap.c 	if (tp->t_frextents_delta + mp->m_sb.sb_frextents ==
mp                999 fs/xfs/libxfs/xfs_rtbitmap.c 	    mp->m_sb.sb_rextents) {
mp               1000 fs/xfs/libxfs/xfs_rtbitmap.c 		if (!(mp->m_rbmip->i_d.di_flags & XFS_DIFLAG_NEWRTBM))
mp               1001 fs/xfs/libxfs/xfs_rtbitmap.c 			mp->m_rbmip->i_d.di_flags |= XFS_DIFLAG_NEWRTBM;
mp               1002 fs/xfs/libxfs/xfs_rtbitmap.c 		*(uint64_t *)&VFS_I(mp->m_rbmip)->i_atime = 0;
mp               1003 fs/xfs/libxfs/xfs_rtbitmap.c 		xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE);
mp               1018 fs/xfs/libxfs/xfs_rtbitmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp               1027 fs/xfs/libxfs/xfs_rtbitmap.c 	if (low_rec->ar_startext >= mp->m_sb.sb_rextents ||
mp               1030 fs/xfs/libxfs/xfs_rtbitmap.c 	if (high_rec->ar_startext > mp->m_sb.sb_rextents)
mp               1031 fs/xfs/libxfs/xfs_rtbitmap.c 		high_rec->ar_startext = mp->m_sb.sb_rextents;
mp               1038 fs/xfs/libxfs/xfs_rtbitmap.c 		error = xfs_rtcheck_range(mp, tp, rtstart, 1, 1, &rtend,
mp               1044 fs/xfs/libxfs/xfs_rtbitmap.c 		error = xfs_rtfind_forw(mp, tp, rtstart,
mp               1084 fs/xfs/libxfs/xfs_rtbitmap.c 	struct xfs_mount		*mp,
mp               1094 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtcheck_range(mp, tp, start, len, 1, &end, &matches);
mp                 39 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                 46 fs/xfs/libxfs/xfs_sb.c 	pag = radix_tree_lookup(&mp->m_perag_tree, agno);
mp                 52 fs/xfs/libxfs/xfs_sb.c 	trace_xfs_perag_get(mp, agno, ref, _RET_IP_);
mp                 61 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                 70 fs/xfs/libxfs/xfs_sb.c 	found = radix_tree_gang_lookup_tag(&mp->m_perag_tree,
mp                 78 fs/xfs/libxfs/xfs_sb.c 	trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_);
mp                 96 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                107 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                110 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                115 fs/xfs/libxfs/xfs_sb.c 		xfs_alert(mp,
mp                119 fs/xfs/libxfs/xfs_sb.c 		if (!(mp->m_flags & XFS_MOUNT_RDONLY)) {
mp                120 fs/xfs/libxfs/xfs_sb.c 			xfs_warn(mp,
mp                122 fs/xfs/libxfs/xfs_sb.c 			xfs_warn(mp,
mp                129 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                133 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                144 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                160 fs/xfs/libxfs/xfs_sb.c 	     !xfs_verify_icount(mp, sbp->sb_icount) ||
mp                162 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp, "SB summary counter sanity check failed");
mp                175 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                182 fs/xfs/libxfs/xfs_sb.c 		xfs_alert(mp,
mp                189 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                197 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                209 fs/xfs/libxfs/xfs_sb.c 	if (!xfs_log_check_lsn(mp, sbp->sb_lsn))
mp                218 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                227 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp, "bad magic number");
mp                232 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp, "bad version");
mp                238 fs/xfs/libxfs/xfs_sb.c 			xfs_notice(mp,
mp                244 fs/xfs/libxfs/xfs_sb.c 			xfs_notice(mp,
mp                260 fs/xfs/libxfs/xfs_sb.c 			xfs_warn(mp,
mp                268 fs/xfs/libxfs/xfs_sb.c 	    sbp->sb_logstart == 0 && mp->m_logdev_targp == mp->m_ddev_targp)) {
mp                269 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                276 fs/xfs/libxfs/xfs_sb.c 	    sbp->sb_logstart != 0 && mp->m_logdev_targp != mp->m_ddev_targp)) {
mp                277 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                314 fs/xfs/libxfs/xfs_sb.c 	    XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES	||
mp                315 fs/xfs/libxfs/xfs_sb.c 	    XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES	||
mp                326 fs/xfs/libxfs/xfs_sb.c 		xfs_notice(mp, "SB sanity check failed");
mp                334 fs/xfs/libxfs/xfs_sb.c 			xfs_notice(mp, "SB stripe unit sanity check failed");
mp                338 fs/xfs/libxfs/xfs_sb.c 		xfs_notice(mp, "SB stripe alignment sanity check failed");
mp                341 fs/xfs/libxfs/xfs_sb.c 		xfs_notice(mp, "SB stripe width sanity check failed");
mp                346 fs/xfs/libxfs/xfs_sb.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp                348 fs/xfs/libxfs/xfs_sb.c 		xfs_notice(mp, "v5 SB sanity check failed");
mp                356 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                373 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp, "inode size of %d bytes not supported",
mp                380 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp                391 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp, "Offline file system operation in progress!");
mp                682 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp = bp->b_mount;
mp                698 fs/xfs/libxfs/xfs_sb.c 			    xfs_sb_version_hascrc(&mp->m_sb)) {
mp                710 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_common(mp, bp, &sb);
mp                713 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_read(mp, &sb);
mp                748 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp = bp->b_mount;
mp                757 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_common(mp, bp, &sb);
mp                760 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_write(mp, bp, &sb);
mp                764 fs/xfs/libxfs/xfs_sb.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                802 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                805 fs/xfs/libxfs/xfs_sb.c 	mp->m_agfrotor = mp->m_agirotor = 0;
mp                806 fs/xfs/libxfs/xfs_sb.c 	mp->m_maxagi = mp->m_sb.sb_agcount;
mp                807 fs/xfs/libxfs/xfs_sb.c 	mp->m_blkbit_log = sbp->sb_blocklog + XFS_NBBYLOG;
mp                808 fs/xfs/libxfs/xfs_sb.c 	mp->m_blkbb_log = sbp->sb_blocklog - BBSHIFT;
mp                809 fs/xfs/libxfs/xfs_sb.c 	mp->m_sectbb_log = sbp->sb_sectlog - BBSHIFT;
mp                810 fs/xfs/libxfs/xfs_sb.c 	mp->m_agno_log = xfs_highbit32(sbp->sb_agcount - 1) + 1;
mp                811 fs/xfs/libxfs/xfs_sb.c 	mp->m_blockmask = sbp->sb_blocksize - 1;
mp                812 fs/xfs/libxfs/xfs_sb.c 	mp->m_blockwsize = sbp->sb_blocksize >> XFS_WORDLOG;
mp                813 fs/xfs/libxfs/xfs_sb.c 	mp->m_blockwmask = mp->m_blockwsize - 1;
mp                815 fs/xfs/libxfs/xfs_sb.c 	mp->m_alloc_mxr[0] = xfs_allocbt_maxrecs(mp, sbp->sb_blocksize, 1);
mp                816 fs/xfs/libxfs/xfs_sb.c 	mp->m_alloc_mxr[1] = xfs_allocbt_maxrecs(mp, sbp->sb_blocksize, 0);
mp                817 fs/xfs/libxfs/xfs_sb.c 	mp->m_alloc_mnr[0] = mp->m_alloc_mxr[0] / 2;
mp                818 fs/xfs/libxfs/xfs_sb.c 	mp->m_alloc_mnr[1] = mp->m_alloc_mxr[1] / 2;
mp                820 fs/xfs/libxfs/xfs_sb.c 	mp->m_bmap_dmxr[0] = xfs_bmbt_maxrecs(mp, sbp->sb_blocksize, 1);
mp                821 fs/xfs/libxfs/xfs_sb.c 	mp->m_bmap_dmxr[1] = xfs_bmbt_maxrecs(mp, sbp->sb_blocksize, 0);
mp                822 fs/xfs/libxfs/xfs_sb.c 	mp->m_bmap_dmnr[0] = mp->m_bmap_dmxr[0] / 2;
mp                823 fs/xfs/libxfs/xfs_sb.c 	mp->m_bmap_dmnr[1] = mp->m_bmap_dmxr[1] / 2;
mp                825 fs/xfs/libxfs/xfs_sb.c 	mp->m_rmap_mxr[0] = xfs_rmapbt_maxrecs(sbp->sb_blocksize, 1);
mp                826 fs/xfs/libxfs/xfs_sb.c 	mp->m_rmap_mxr[1] = xfs_rmapbt_maxrecs(sbp->sb_blocksize, 0);
mp                827 fs/xfs/libxfs/xfs_sb.c 	mp->m_rmap_mnr[0] = mp->m_rmap_mxr[0] / 2;
mp                828 fs/xfs/libxfs/xfs_sb.c 	mp->m_rmap_mnr[1] = mp->m_rmap_mxr[1] / 2;
mp                830 fs/xfs/libxfs/xfs_sb.c 	mp->m_refc_mxr[0] = xfs_refcountbt_maxrecs(sbp->sb_blocksize, true);
mp                831 fs/xfs/libxfs/xfs_sb.c 	mp->m_refc_mxr[1] = xfs_refcountbt_maxrecs(sbp->sb_blocksize, false);
mp                832 fs/xfs/libxfs/xfs_sb.c 	mp->m_refc_mnr[0] = mp->m_refc_mxr[0] / 2;
mp                833 fs/xfs/libxfs/xfs_sb.c 	mp->m_refc_mnr[1] = mp->m_refc_mxr[1] / 2;
mp                835 fs/xfs/libxfs/xfs_sb.c 	mp->m_bsize = XFS_FSB_TO_BB(mp, 1);
mp                836 fs/xfs/libxfs/xfs_sb.c 	mp->m_alloc_set_aside = xfs_alloc_set_aside(mp);
mp                837 fs/xfs/libxfs/xfs_sb.c 	mp->m_ag_max_usable = xfs_alloc_ag_max_usable(mp);
mp                850 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount *mp,
mp                855 fs/xfs/libxfs/xfs_sb.c 	xfs_sb_t	*sbp = &mp->m_sb;
mp                870 fs/xfs/libxfs/xfs_sb.c 		error = xfs_alloc_pagf_init(mp, NULL, index, 0);
mp                874 fs/xfs/libxfs/xfs_sb.c 		error = xfs_ialloc_pagi_init(mp, NULL, index);
mp                877 fs/xfs/libxfs/xfs_sb.c 		pag = xfs_perag_get(mp, index);
mp                894 fs/xfs/libxfs/xfs_sb.c 		xfs_alert(mp, "AGF corruption. Please run xfs_repair.");
mp                900 fs/xfs/libxfs/xfs_sb.c 	spin_lock(&mp->m_sb_lock);
mp                904 fs/xfs/libxfs/xfs_sb.c 	spin_unlock(&mp->m_sb_lock);
mp                906 fs/xfs/libxfs/xfs_sb.c 	xfs_reinit_percpu_counters(mp);
mp                908 fs/xfs/libxfs/xfs_sb.c 	xfs_fs_mark_healthy(mp, XFS_SICK_FS_COUNTERS);
mp                922 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp = tp->t_mountp;
mp                923 fs/xfs/libxfs/xfs_sb.c 	struct xfs_buf		*bp = xfs_trans_getsb(tp, mp);
mp                925 fs/xfs/libxfs/xfs_sb.c 	mp->m_sb.sb_icount = percpu_counter_sum(&mp->m_icount);
mp                926 fs/xfs/libxfs/xfs_sb.c 	mp->m_sb.sb_ifree = percpu_counter_sum(&mp->m_ifree);
mp                927 fs/xfs/libxfs/xfs_sb.c 	mp->m_sb.sb_fdblocks = percpu_counter_sum(&mp->m_fdblocks);
mp                929 fs/xfs/libxfs/xfs_sb.c 	xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb);
mp                947 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp                953 fs/xfs/libxfs/xfs_sb.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0,
mp                976 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp)
mp                984 fs/xfs/libxfs/xfs_sb.c 	for (agno = 1; agno < mp->m_sb.sb_agcount; agno++) {
mp                987 fs/xfs/libxfs/xfs_sb.c 		bp = xfs_buf_get(mp->m_ddev_targp,
mp                988 fs/xfs/libxfs/xfs_sb.c 				 XFS_AG_DADDR(mp, agno, XFS_SB_DADDR),
mp                989 fs/xfs/libxfs/xfs_sb.c 				 XFS_FSS_TO_BB(mp, 1));
mp                998 fs/xfs/libxfs/xfs_sb.c 			xfs_warn(mp,
mp               1009 fs/xfs/libxfs/xfs_sb.c 		xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb);
mp               1019 fs/xfs/libxfs/xfs_sb.c 			xfs_warn(mp,
mp               1029 fs/xfs/libxfs/xfs_sb.c 		xfs_warn(mp,
mp               1043 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp)
mp               1049 fs/xfs/libxfs/xfs_sb.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0, 0, &tp);
mp               1053 fs/xfs/libxfs/xfs_sb.c 	bp = xfs_trans_getsb(tp, mp);
mp               1159 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp               1168 fs/xfs/libxfs/xfs_sb.c 	error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp,
mp               1169 fs/xfs/libxfs/xfs_sb.c 			XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)),
mp               1170 fs/xfs/libxfs/xfs_sb.c 			XFS_FSS_TO_BB(mp, 1), 0, &bp, &xfs_sb_buf_ops);
mp               1181 fs/xfs/libxfs/xfs_sb.c 	struct xfs_mount	*mp,
mp               1189 fs/xfs/libxfs/xfs_sb.c 	bp = xfs_trans_get_buf(tp, mp->m_ddev_targp,
mp               1190 fs/xfs/libxfs/xfs_sb.c 			XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)),
mp               1191 fs/xfs/libxfs/xfs_sb.c 			XFS_FSS_TO_BB(mp, 1), 0);
mp                 26 fs/xfs/libxfs/xfs_sb.h extern int	xfs_sync_sb(struct xfs_mount *mp, bool wait);
mp                 27 fs/xfs/libxfs/xfs_sb.h extern int	xfs_sync_sb_buf(struct xfs_mount *mp);
mp                 28 fs/xfs/libxfs/xfs_sb.h extern void	xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
mp                 33 fs/xfs/libxfs/xfs_sb.h extern int	xfs_update_secondary_sbs(struct xfs_mount *mp);
mp                 38 fs/xfs/libxfs/xfs_sb.h extern int	xfs_sb_read_secondary(struct xfs_mount *mp,
mp                 41 fs/xfs/libxfs/xfs_sb.h extern int	xfs_sb_get_secondary(struct xfs_mount *mp,
mp                 51 fs/xfs/libxfs/xfs_shared.h int	xfs_log_calc_unit_res(struct xfs_mount *mp, int unit_bytes);
mp                 55 fs/xfs/libxfs/xfs_shared.h void	xfs_log_get_max_trans_res(struct xfs_mount *mp,
mp                129 fs/xfs/libxfs/xfs_shared.h int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
mp                130 fs/xfs/libxfs/xfs_shared.h int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
mp                 27 fs/xfs/libxfs/xfs_symlink_remote.c 	struct xfs_mount *mp,
mp                 30 fs/xfs/libxfs/xfs_symlink_remote.c 	int buflen = XFS_SYMLINK_BUF_SPACE(mp, mp->m_sb.sb_blocksize);
mp                 37 fs/xfs/libxfs/xfs_symlink_remote.c 	struct xfs_mount	*mp,
mp                 45 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                 52 fs/xfs/libxfs/xfs_symlink_remote.c 	uuid_copy(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid);
mp                 89 fs/xfs/libxfs/xfs_symlink_remote.c 	struct xfs_mount	*mp = bp->b_mount;
mp                 92 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                 96 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!uuid_equal(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid))
mp                105 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!xfs_log_check_lsn(mp, be64_to_cpu(dsl->sl_lsn)))
mp                115 fs/xfs/libxfs/xfs_symlink_remote.c 	struct xfs_mount *mp = bp->b_mount;
mp                119 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                135 fs/xfs/libxfs/xfs_symlink_remote.c 	struct xfs_mount *mp = bp->b_mount;
mp                140 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                171 fs/xfs/libxfs/xfs_symlink_remote.c 	struct xfs_mount	*mp = ip->i_mount;
mp                176 fs/xfs/libxfs/xfs_symlink_remote.c 	if (!xfs_sb_version_hascrc(&mp->m_sb)) {
mp                193 fs/xfs/libxfs/xfs_symlink_remote.c 	buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp);
mp                 68 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount *mp,
mp                 73 fs/xfs/libxfs/xfs_trans_resv.c 	blocks = num_ops * 2 * (2 * mp->m_ag_maxlevels - 1);
mp                 74 fs/xfs/libxfs/xfs_trans_resv.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                 75 fs/xfs/libxfs/xfs_trans_resv.c 		blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1);
mp                 76 fs/xfs/libxfs/xfs_trans_resv.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                 77 fs/xfs/libxfs/xfs_trans_resv.c 		blocks += num_ops * (2 * mp->m_refc_maxlevels - 1);
mp                113 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp,
mp                119 fs/xfs/libxfs/xfs_trans_resv.c 		 mp->m_sb.sb_inodesize +
mp                120 fs/xfs/libxfs/xfs_trans_resv.c 		 2 * XFS_BMBT_BLOCK_LEN(mp));
mp                135 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                137 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(M_IGEO(mp)->inobt_maxlevels,
mp                138 fs/xfs/libxfs/xfs_trans_resv.c 			XFS_FSB_TO_B(mp, 1)) +
mp                139 fs/xfs/libxfs/xfs_trans_resv.c 				xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
mp                140 fs/xfs/libxfs/xfs_trans_resv.c 			XFS_FSB_TO_B(mp, 1));
mp                156 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                158 fs/xfs/libxfs/xfs_trans_resv.c 	if (!xfs_sb_version_hasfinobt(&mp->m_sb))
mp                161 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_inobt_res(mp);
mp                181 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp,
mp                186 fs/xfs/libxfs/xfs_trans_resv.c 	res = xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
mp                187 fs/xfs/libxfs/xfs_trans_resv.c 			       XFS_FSB_TO_B(mp, 1));
mp                190 fs/xfs/libxfs/xfs_trans_resv.c 		if (xfs_sb_version_hascrc(&mp->m_sb))
mp                192 fs/xfs/libxfs/xfs_trans_resv.c 		size = XFS_FSB_TO_B(mp, 1);
mp                195 fs/xfs/libxfs/xfs_trans_resv.c 	res += xfs_calc_buf_res(M_IGEO(mp)->ialloc_blks, size);
mp                235 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                237 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                238 fs/xfs/libxfs/xfs_trans_resv.c 		max((xfs_calc_inode_res(mp, 1) +
mp                239 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK),
mp                240 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1)) +
mp                241 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) +
mp                242 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 2),
mp                243 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))),
mp                244 fs/xfs/libxfs/xfs_trans_resv.c 		    (xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) +
mp                245 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 2),
mp                246 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))));
mp                262 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                264 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                265 fs/xfs/libxfs/xfs_trans_resv.c 		max((xfs_calc_inode_res(mp, 1) +
mp                266 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1,
mp                267 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))),
mp                268 fs/xfs/libxfs/xfs_trans_resv.c 		    (xfs_calc_buf_res(9, mp->m_sb.sb_sectsize) +
mp                269 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 4),
mp                270 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))));
mp                287 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                289 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                290 fs/xfs/libxfs/xfs_trans_resv.c 		max((xfs_calc_inode_res(mp, 4) +
mp                291 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(2 * XFS_DIROP_LOG_COUNT(mp),
mp                292 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))),
mp                293 fs/xfs/libxfs/xfs_trans_resv.c 		    (xfs_calc_buf_res(7, mp->m_sb.sb_sectsize) +
mp                294 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 3),
mp                295 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))));
mp                306 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount        *mp)
mp                308 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
mp                309 fs/xfs/libxfs/xfs_trans_resv.c 	       2 * M_IGEO(mp)->inode_cluster_size;
mp                326 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                328 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                329 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_iunlink_remove_reservation(mp) +
mp                330 fs/xfs/libxfs/xfs_trans_resv.c 		max((xfs_calc_inode_res(mp, 2) +
mp                331 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp),
mp                332 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))),
mp                333 fs/xfs/libxfs/xfs_trans_resv.c 		    (xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) +
mp                334 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
mp                335 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))));
mp                344 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_iunlink_add_reservation(xfs_mount_t *mp)
mp                346 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
mp                347 fs/xfs/libxfs/xfs_trans_resv.c 			M_IGEO(mp)->inode_cluster_size;
mp                364 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                366 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                367 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_iunlink_add_reservation(mp) +
mp                368 fs/xfs/libxfs/xfs_trans_resv.c 		max((xfs_calc_inode_res(mp, 1) +
mp                369 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp),
mp                370 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))),
mp                371 fs/xfs/libxfs/xfs_trans_resv.c 		    (xfs_calc_buf_res(4, mp->m_sb.sb_sectsize) +
mp                372 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 2),
mp                373 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))));
mp                394 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                396 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_inode_res(mp, 2) +
mp                397 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
mp                398 fs/xfs/libxfs/xfs_trans_resv.c 		(uint)XFS_FSB_TO_B(mp, 1) +
mp                399 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1)) +
mp                400 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_finobt_res(mp);
mp                413 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                415 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) +
mp                416 fs/xfs/libxfs/xfs_trans_resv.c 		mp->m_sb.sb_sectsize +
mp                417 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_chunk_res(mp, _ALLOC) +
mp                418 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inobt_res(mp) +
mp                419 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_finobt_res(mp);
mp                423 fs/xfs/libxfs/xfs_trans_resv.c xfs_calc_icreate_reservation(xfs_mount_t *mp)
mp                425 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                426 fs/xfs/libxfs/xfs_trans_resv.c 		max(xfs_calc_icreate_resv_alloc(mp),
mp                427 fs/xfs/libxfs/xfs_trans_resv.c 		    xfs_calc_create_resv_modify(mp));
mp                432 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount        *mp)
mp                434 fs/xfs/libxfs/xfs_trans_resv.c 	uint	res = XFS_DQUOT_LOGRES(mp);
mp                436 fs/xfs/libxfs/xfs_trans_resv.c 	res += xfs_calc_icreate_resv_alloc(mp);
mp                437 fs/xfs/libxfs/xfs_trans_resv.c 	return res + xfs_calc_iunlink_add_reservation(mp);
mp                445 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                447 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_icreate_reservation(mp);
mp                458 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                460 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_icreate_reservation(mp) +
mp                481 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                483 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                484 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_res(mp, 1) +
mp                485 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) +
mp                486 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_iunlink_remove_reservation(mp) +
mp                487 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_chunk_res(mp, _FREE) +
mp                488 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inobt_res(mp) +
mp                489 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_finobt_res(mp);
mp                498 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                500 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                501 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_res(mp, 1) +
mp                502 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_sb.sb_sectsize);
mp                514 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                516 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(3, mp->m_sb.sb_sectsize) +
mp                517 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
mp                518 fs/xfs/libxfs/xfs_trans_resv.c 				 XFS_FSB_TO_B(mp, 1));
mp                533 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                535 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) +
mp                536 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK),
mp                537 fs/xfs/libxfs/xfs_trans_resv.c 				 XFS_FSB_TO_B(mp, 1)) +
mp                538 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_res(mp, 1) +
mp                539 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
mp                540 fs/xfs/libxfs/xfs_trans_resv.c 				 XFS_FSB_TO_B(mp, 1));
mp                550 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                552 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_blocksize);
mp                567 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                569 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
mp                570 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_res(mp, 2) +
mp                571 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_sb.sb_blocksize) +
mp                572 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_rsumsize);
mp                581 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                583 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_inode_res(mp, 1);
mp                592 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                594 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_inode_res(mp, 1);
mp                607 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                609 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                610 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_res(mp, 1) +
mp                611 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(2, mp->m_sb.sb_sectsize) +
mp                612 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_dir_geo->blksize) +
mp                613 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1,
mp                614 fs/xfs/libxfs/xfs_trans_resv.c 				 XFS_FSB_TO_B(mp, 1)) +
mp                615 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(xfs_allocfree_log_count(mp, 1),
mp                616 fs/xfs/libxfs/xfs_trans_resv.c 				 XFS_FSB_TO_B(mp, 1));
mp                632 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                634 fs/xfs/libxfs/xfs_trans_resv.c 	return max((xfs_calc_inode_res(mp, 1) +
mp                635 fs/xfs/libxfs/xfs_trans_resv.c 		    xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK),
mp                636 fs/xfs/libxfs/xfs_trans_resv.c 				     XFS_FSB_TO_B(mp, 1))),
mp                637 fs/xfs/libxfs/xfs_trans_resv.c 		   (xfs_calc_buf_res(9, mp->m_sb.sb_sectsize) +
mp                638 fs/xfs/libxfs/xfs_trans_resv.c 		    xfs_calc_buf_res(xfs_allocfree_log_count(mp, 4),
mp                639 fs/xfs/libxfs/xfs_trans_resv.c 				     XFS_FSB_TO_B(mp, 1))));
mp                655 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                657 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                658 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_inode_res(mp, 1) +
mp                659 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
mp                660 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(XFS_DA_NODE_MAXDEPTH, XFS_FSB_TO_B(mp, 1));
mp                675 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                677 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize) +
mp                678 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK),
mp                679 fs/xfs/libxfs/xfs_trans_resv.c 				 XFS_FSB_TO_B(mp, 1));
mp                695 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                697 fs/xfs/libxfs/xfs_trans_resv.c 	return XFS_DQUOT_LOGRES(mp) +
mp                698 fs/xfs/libxfs/xfs_trans_resv.c 		max((xfs_calc_inode_res(mp, 1) +
mp                700 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1)) +
mp                701 fs/xfs/libxfs/xfs_trans_resv.c 		     (uint)XFS_FSB_TO_B(mp,
mp                702 fs/xfs/libxfs/xfs_trans_resv.c 					XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)) +
mp                703 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK), 0)),
mp                704 fs/xfs/libxfs/xfs_trans_resv.c 		    (xfs_calc_buf_res(5, mp->m_sb.sb_sectsize) +
mp                705 fs/xfs/libxfs/xfs_trans_resv.c 		     xfs_calc_buf_res(xfs_allocfree_log_count(mp, 2),
mp                706 fs/xfs/libxfs/xfs_trans_resv.c 				      XFS_FSB_TO_B(mp, 1))));
mp                714 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                716 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize);
mp                736 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                738 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_write_reservation(mp) +
mp                740 fs/xfs/libxfs/xfs_trans_resv.c 			XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) - 1);
mp                750 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                753 fs/xfs/libxfs/xfs_trans_resv.c 		xfs_calc_buf_res(1, mp->m_sb.sb_sectsize);
mp                772 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp)
mp                774 fs/xfs/libxfs/xfs_trans_resv.c 	return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize);
mp                779 fs/xfs/libxfs/xfs_trans_resv.c 	struct xfs_mount	*mp,
mp                786 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_write.tr_logres = xfs_calc_write_reservation(mp);
mp                787 fs/xfs/libxfs/xfs_trans_resv.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                793 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_itruncate.tr_logres = xfs_calc_itruncate_reservation(mp);
mp                794 fs/xfs/libxfs/xfs_trans_resv.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                801 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_rename.tr_logres = xfs_calc_rename_reservation(mp);
mp                805 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_link.tr_logres = xfs_calc_link_reservation(mp);
mp                809 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_remove.tr_logres = xfs_calc_remove_reservation(mp);
mp                813 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_symlink.tr_logres = xfs_calc_symlink_reservation(mp);
mp                817 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_create.tr_logres = xfs_calc_icreate_reservation(mp);
mp                822 fs/xfs/libxfs/xfs_trans_resv.c 			xfs_calc_create_tmpfile_reservation(mp);
mp                826 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_mkdir.tr_logres = xfs_calc_mkdir_reservation(mp);
mp                830 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_ifree.tr_logres = xfs_calc_ifree_reservation(mp);
mp                834 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_addafork.tr_logres = xfs_calc_addafork_reservation(mp);
mp                838 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_attrinval.tr_logres = xfs_calc_attrinval_reservation(mp);
mp                842 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_attrsetm.tr_logres = xfs_calc_attrsetm_reservation(mp);
mp                846 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_attrrm.tr_logres = xfs_calc_attrrm_reservation(mp);
mp                850 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_growrtalloc.tr_logres = xfs_calc_growrtalloc_reservation(mp);
mp                854 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_qm_dqalloc.tr_logres = xfs_calc_qm_dqalloc_reservation(mp);
mp                855 fs/xfs/libxfs/xfs_trans_resv.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                868 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_qm_quotaoff.tr_logres = xfs_calc_qm_quotaoff_reservation(mp);
mp                875 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_sb.tr_logres = xfs_calc_sb_reservation(mp);
mp                879 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_growdata.tr_logres = xfs_calc_growdata_reservation(mp);
mp                884 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_ichange.tr_logres = xfs_calc_ichange_reservation(mp);
mp                885 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_fsyncts.tr_logres = xfs_calc_swrite_reservation(mp);
mp                886 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_writeid.tr_logres = xfs_calc_writeid_reservation(mp);
mp                887 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_attrsetrt.tr_logres = xfs_calc_attrsetrt_reservation(mp);
mp                888 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_clearagi.tr_logres = xfs_calc_clear_agi_bucket_reservation(mp);
mp                889 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_growrtzero.tr_logres = xfs_calc_growrtzero_reservation(mp);
mp                890 fs/xfs/libxfs/xfs_trans_resv.c 	resp->tr_growrtfree.tr_logres = xfs_calc_growrtfree_reservation(mp);
mp                 56 fs/xfs/libxfs/xfs_trans_resv.h #define M_RES(mp)	(&(mp)->m_resv)
mp                 65 fs/xfs/libxfs/xfs_trans_resv.h #define	XFS_DIROP_LOG_RES(mp)	\
mp                 66 fs/xfs/libxfs/xfs_trans_resv.h 	(XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \
mp                 67 fs/xfs/libxfs/xfs_trans_resv.h 	 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)))
mp                 68 fs/xfs/libxfs/xfs_trans_resv.h #define	XFS_DIROP_LOG_COUNT(mp)	\
mp                 69 fs/xfs/libxfs/xfs_trans_resv.h 	(XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK) + \
mp                 70 fs/xfs/libxfs/xfs_trans_resv.h 	 XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)
mp                 94 fs/xfs/libxfs/xfs_trans_resv.h void xfs_trans_resv_calc(struct xfs_mount *mp, struct xfs_trans_resv *resp);
mp                 95 fs/xfs/libxfs/xfs_trans_resv.h uint xfs_allocfree_log_count(struct xfs_mount *mp, uint num_ops);
mp                 14 fs/xfs/libxfs/xfs_trans_space.h #define XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)    \
mp                 15 fs/xfs/libxfs/xfs_trans_space.h 		(((mp)->m_rmap_mxr[0]) - ((mp)->m_rmap_mnr[0]))
mp                 18 fs/xfs/libxfs/xfs_trans_space.h #define XFS_RMAPADD_SPACE_RES(mp) ((mp)->m_rmap_maxlevels)
mp                 21 fs/xfs/libxfs/xfs_trans_space.h #define XFS_NRMAPADD_SPACE_RES(mp, b)\
mp                 22 fs/xfs/libxfs/xfs_trans_space.h 	(((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
mp                 23 fs/xfs/libxfs/xfs_trans_space.h 	  XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp)) * \
mp                 24 fs/xfs/libxfs/xfs_trans_space.h 	  XFS_RMAPADD_SPACE_RES(mp))
mp                 26 fs/xfs/libxfs/xfs_trans_space.h #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)    \
mp                 27 fs/xfs/libxfs/xfs_trans_space.h 		(((mp)->m_alloc_mxr[0]) - ((mp)->m_alloc_mnr[0]))
mp                 28 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_EXTENTADD_SPACE_RES(mp,w)	(XFS_BM_MAXLEVELS(mp,w) - 1)
mp                 29 fs/xfs/libxfs/xfs_trans_space.h #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\
mp                 30 fs/xfs/libxfs/xfs_trans_space.h 	(((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \
mp                 31 fs/xfs/libxfs/xfs_trans_space.h 	  XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)) * \
mp                 32 fs/xfs/libxfs/xfs_trans_space.h 	  XFS_EXTENTADD_SPACE_RES(mp,w))
mp                 35 fs/xfs/libxfs/xfs_trans_space.h #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\
mp                 36 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
mp                 37 fs/xfs/libxfs/xfs_trans_space.h 	 XFS_NRMAPADD_SPACE_RES((mp), (b)))
mp                 39 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAENTER_1B(mp,w)	\
mp                 40 fs/xfs/libxfs/xfs_trans_space.h 	((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1)
mp                 41 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAENTER_DBS(mp,w)	\
mp                 43 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAENTER_BLOCKS(mp,w)	\
mp                 44 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_DAENTER_1B(mp,w) * XFS_DAENTER_DBS(mp,w))
mp                 45 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAENTER_BMAP1B(mp,w)	\
mp                 46 fs/xfs/libxfs/xfs_trans_space.h 	XFS_NEXTENTADD_SPACE_RES(mp, XFS_DAENTER_1B(mp, w), w)
mp                 47 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAENTER_BMAPS(mp,w)		\
mp                 48 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_DAENTER_DBS(mp,w) * XFS_DAENTER_BMAP1B(mp,w))
mp                 49 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAENTER_SPACE_RES(mp,w)	\
mp                 50 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_DAENTER_BLOCKS(mp,w) + XFS_DAENTER_BMAPS(mp,w))
mp                 51 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DAREMOVE_SPACE_RES(mp,w)	XFS_DAENTER_BMAPS(mp,w)
mp                 52 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DIRENTER_MAX_SPLIT(mp,nl)	1
mp                 53 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DIRENTER_SPACE_RES(mp,nl)	\
mp                 54 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_DAENTER_SPACE_RES(mp, XFS_DATA_FORK) * \
mp                 55 fs/xfs/libxfs/xfs_trans_space.h 	 XFS_DIRENTER_MAX_SPLIT(mp,nl))
mp                 56 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DIRREMOVE_SPACE_RES(mp)	\
mp                 57 fs/xfs/libxfs/xfs_trans_space.h 	XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK)
mp                 58 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_IALLOC_SPACE_RES(mp)	\
mp                 59 fs/xfs/libxfs/xfs_trans_space.h 	(M_IGEO(mp)->ialloc_blks + \
mp                 60 fs/xfs/libxfs/xfs_trans_space.h 	 (xfs_sb_version_hasfinobt(&mp->m_sb) ? 2 : 1 * \
mp                 61 fs/xfs/libxfs/xfs_trans_space.h 	  (M_IGEO(mp)->inobt_maxlevels - 1)))
mp                 66 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_ADDAFORK_SPACE_RES(mp)	\
mp                 67 fs/xfs/libxfs/xfs_trans_space.h 	((mp)->m_dir_geo->fsbcount + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK))
mp                 68 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_ATTRRM_SPACE_RES(mp)	\
mp                 69 fs/xfs/libxfs/xfs_trans_space.h 	XFS_DAREMOVE_SPACE_RES(mp, XFS_ATTR_FORK)
mp                 71 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_ATTRSET_SPACE_RES(mp, v)	\
mp                 72 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK) + XFS_B_TO_FSB(mp, v))
mp                 73 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_CREATE_SPACE_RES(mp,nl)	\
mp                 74 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl))
mp                 75 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_DIOSTRAT_SPACE_RES(mp, v)	\
mp                 76 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + (v))
mp                 77 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_GROWFS_SPACE_RES(mp)	\
mp                 78 fs/xfs/libxfs/xfs_trans_space.h 	(2 * (mp)->m_ag_maxlevels)
mp                 79 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_GROWFSRT_SPACE_RES(mp,b)	\
mp                 80 fs/xfs/libxfs/xfs_trans_space.h 	((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK))
mp                 81 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_LINK_SPACE_RES(mp,nl)	\
mp                 82 fs/xfs/libxfs/xfs_trans_space.h 	XFS_DIRENTER_SPACE_RES(mp,nl)
mp                 83 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_MKDIR_SPACE_RES(mp,nl)	\
mp                 84 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl))
mp                 85 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_QM_DQALLOC_SPACE_RES(mp)	\
mp                 86 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK) + \
mp                 88 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_QM_QINOCREATE_SPACE_RES(mp)	\
mp                 89 fs/xfs/libxfs/xfs_trans_space.h 	XFS_IALLOC_SPACE_RES(mp)
mp                 90 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_REMOVE_SPACE_RES(mp)	\
mp                 91 fs/xfs/libxfs/xfs_trans_space.h 	XFS_DIRREMOVE_SPACE_RES(mp)
mp                 92 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_RENAME_SPACE_RES(mp,nl)	\
mp                 93 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_DIRREMOVE_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl))
mp                 94 fs/xfs/libxfs/xfs_trans_space.h #define	XFS_SYMLINK_SPACE_RES(mp,nl,b)	\
mp                 95 fs/xfs/libxfs/xfs_trans_space.h 	(XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl) + (b))
mp                 96 fs/xfs/libxfs/xfs_trans_space.h #define XFS_IFREE_SPACE_RES(mp)		\
mp                 97 fs/xfs/libxfs/xfs_trans_space.h 	(xfs_sb_version_hasfinobt(&mp->m_sb) ? \
mp                 98 fs/xfs/libxfs/xfs_trans_space.h 			M_IGEO(mp)->inobt_maxlevels : 0)
mp                 18 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                 21 fs/xfs/libxfs/xfs_types.c 	ASSERT(agno < mp->m_sb.sb_agcount);
mp                 23 fs/xfs/libxfs/xfs_types.c 	if (agno < mp->m_sb.sb_agcount - 1)
mp                 24 fs/xfs/libxfs/xfs_types.c 		return mp->m_sb.sb_agblocks;
mp                 25 fs/xfs/libxfs/xfs_types.c 	return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks);
mp                 34 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                 40 fs/xfs/libxfs/xfs_types.c 	eoag = xfs_ag_block_count(mp, agno);
mp                 43 fs/xfs/libxfs/xfs_types.c 	if (agbno <= XFS_AGFL_BLOCK(mp))
mp                 54 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                 57 fs/xfs/libxfs/xfs_types.c 	xfs_agnumber_t		agno = XFS_FSB_TO_AGNO(mp, fsbno);
mp                 59 fs/xfs/libxfs/xfs_types.c 	if (agno >= mp->m_sb.sb_agcount)
mp                 61 fs/xfs/libxfs/xfs_types.c 	return xfs_verify_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno));
mp                 67 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                 75 fs/xfs/libxfs/xfs_types.c 	eoag = xfs_ag_block_count(mp, agno);
mp                 81 fs/xfs/libxfs/xfs_types.c 	bno = round_up(XFS_AGFL_BLOCK(mp) + 1, M_IGEO(mp)->cluster_align);
mp                 82 fs/xfs/libxfs/xfs_types.c 	*first = XFS_AGB_TO_AGINO(mp, bno);
mp                 88 fs/xfs/libxfs/xfs_types.c 	bno = round_down(eoag, M_IGEO(mp)->cluster_align);
mp                 89 fs/xfs/libxfs/xfs_types.c 	*last = XFS_AGB_TO_AGINO(mp, bno) - 1;
mp                 98 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                105 fs/xfs/libxfs/xfs_types.c 	xfs_agino_range(mp, agno, &first, &last);
mp                115 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                119 fs/xfs/libxfs/xfs_types.c 	return agino == NULLAGINO || xfs_verify_agino(mp, agno, agino);
mp                128 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                131 fs/xfs/libxfs/xfs_types.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, ino);
mp                132 fs/xfs/libxfs/xfs_types.c 	xfs_agino_t		agino = XFS_INO_TO_AGINO(mp, ino);
mp                134 fs/xfs/libxfs/xfs_types.c 	if (agno >= mp->m_sb.sb_agcount)
mp                136 fs/xfs/libxfs/xfs_types.c 	if (XFS_AGINO_TO_INO(mp, agno, agino) != ino)
mp                138 fs/xfs/libxfs/xfs_types.c 	return xfs_verify_agino(mp, agno, agino);
mp                144 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                147 fs/xfs/libxfs/xfs_types.c 	return ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino ||
mp                148 fs/xfs/libxfs/xfs_types.c 		(xfs_sb_version_hasquota(&mp->m_sb) &&
mp                149 fs/xfs/libxfs/xfs_types.c 		 xfs_is_quota_inode(&mp->m_sb, ino));
mp                158 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                161 fs/xfs/libxfs/xfs_types.c 	if (xfs_internal_inum(mp, ino))
mp                163 fs/xfs/libxfs/xfs_types.c 	return xfs_verify_ino(mp, ino);
mp                172 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                175 fs/xfs/libxfs/xfs_types.c 	return rtbno < mp->m_sb.sb_rblocks;
mp                181 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                191 fs/xfs/libxfs/xfs_types.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                194 fs/xfs/libxfs/xfs_types.c 		xfs_agino_range(mp, agno, &first, &last);
mp                203 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                208 fs/xfs/libxfs/xfs_types.c 	xfs_icount_range(mp, &min, &max);
mp                215 fs/xfs/libxfs/xfs_types.c 	struct xfs_mount	*mp,
mp                185 fs/xfs/libxfs/xfs_types.h xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
mp                186 fs/xfs/libxfs/xfs_types.h bool xfs_verify_agbno(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                188 fs/xfs/libxfs/xfs_types.h bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno);
mp                190 fs/xfs/libxfs/xfs_types.h void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                192 fs/xfs/libxfs/xfs_types.h bool xfs_verify_agino(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                194 fs/xfs/libxfs/xfs_types.h bool xfs_verify_agino_or_null(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                196 fs/xfs/libxfs/xfs_types.h bool xfs_verify_ino(struct xfs_mount *mp, xfs_ino_t ino);
mp                197 fs/xfs/libxfs/xfs_types.h bool xfs_internal_inum(struct xfs_mount *mp, xfs_ino_t ino);
mp                198 fs/xfs/libxfs/xfs_types.h bool xfs_verify_dir_ino(struct xfs_mount *mp, xfs_ino_t ino);
mp                199 fs/xfs/libxfs/xfs_types.h bool xfs_verify_rtbno(struct xfs_mount *mp, xfs_rtblock_t rtbno);
mp                200 fs/xfs/libxfs/xfs_types.h bool xfs_verify_icount(struct xfs_mount *mp, unsigned long long icount);
mp                201 fs/xfs/libxfs/xfs_types.h bool xfs_verify_dablk(struct xfs_mount *mp, xfs_fileoff_t off);
mp                202 fs/xfs/libxfs/xfs_types.h void xfs_icount_range(struct xfs_mount *mp, unsigned long long *min,
mp                 28 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                 36 fs/xfs/scrub/agheader.c 	agbno = XFS_SB_BLOCK(mp);
mp                 62 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                 75 fs/xfs/scrub/agheader.c 	error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp);
mp                 92 fs/xfs/scrub/agheader.c 	if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error))
mp                103 fs/xfs/scrub/agheader.c 	if (sb->sb_blocksize != cpu_to_be32(mp->m_sb.sb_blocksize))
mp                106 fs/xfs/scrub/agheader.c 	if (sb->sb_dblocks != cpu_to_be64(mp->m_sb.sb_dblocks))
mp                109 fs/xfs/scrub/agheader.c 	if (sb->sb_rblocks != cpu_to_be64(mp->m_sb.sb_rblocks))
mp                112 fs/xfs/scrub/agheader.c 	if (sb->sb_rextents != cpu_to_be64(mp->m_sb.sb_rextents))
mp                115 fs/xfs/scrub/agheader.c 	if (!uuid_equal(&sb->sb_uuid, &mp->m_sb.sb_uuid))
mp                118 fs/xfs/scrub/agheader.c 	if (sb->sb_logstart != cpu_to_be64(mp->m_sb.sb_logstart))
mp                121 fs/xfs/scrub/agheader.c 	if (sb->sb_rootino != cpu_to_be64(mp->m_sb.sb_rootino))
mp                124 fs/xfs/scrub/agheader.c 	if (sb->sb_rbmino != cpu_to_be64(mp->m_sb.sb_rbmino))
mp                127 fs/xfs/scrub/agheader.c 	if (sb->sb_rsumino != cpu_to_be64(mp->m_sb.sb_rsumino))
mp                130 fs/xfs/scrub/agheader.c 	if (sb->sb_rextsize != cpu_to_be32(mp->m_sb.sb_rextsize))
mp                133 fs/xfs/scrub/agheader.c 	if (sb->sb_agblocks != cpu_to_be32(mp->m_sb.sb_agblocks))
mp                136 fs/xfs/scrub/agheader.c 	if (sb->sb_agcount != cpu_to_be32(mp->m_sb.sb_agcount))
mp                139 fs/xfs/scrub/agheader.c 	if (sb->sb_rbmblocks != cpu_to_be32(mp->m_sb.sb_rbmblocks))
mp                142 fs/xfs/scrub/agheader.c 	if (sb->sb_logblocks != cpu_to_be32(mp->m_sb.sb_logblocks))
mp                156 fs/xfs/scrub/agheader.c 	    (cpu_to_be16(mp->m_sb.sb_versionnum) & vernum_mask))
mp                164 fs/xfs/scrub/agheader.c 	    (cpu_to_be16(mp->m_sb.sb_versionnum) & vernum_mask))
mp                167 fs/xfs/scrub/agheader.c 	if (sb->sb_sectsize != cpu_to_be16(mp->m_sb.sb_sectsize))
mp                170 fs/xfs/scrub/agheader.c 	if (sb->sb_inodesize != cpu_to_be16(mp->m_sb.sb_inodesize))
mp                173 fs/xfs/scrub/agheader.c 	if (sb->sb_inopblock != cpu_to_be16(mp->m_sb.sb_inopblock))
mp                176 fs/xfs/scrub/agheader.c 	if (memcmp(sb->sb_fname, mp->m_sb.sb_fname, sizeof(sb->sb_fname)))
mp                179 fs/xfs/scrub/agheader.c 	if (sb->sb_blocklog != mp->m_sb.sb_blocklog)
mp                182 fs/xfs/scrub/agheader.c 	if (sb->sb_sectlog != mp->m_sb.sb_sectlog)
mp                185 fs/xfs/scrub/agheader.c 	if (sb->sb_inodelog != mp->m_sb.sb_inodelog)
mp                188 fs/xfs/scrub/agheader.c 	if (sb->sb_inopblog != mp->m_sb.sb_inopblog)
mp                191 fs/xfs/scrub/agheader.c 	if (sb->sb_agblklog != mp->m_sb.sb_agblklog)
mp                194 fs/xfs/scrub/agheader.c 	if (sb->sb_rextslog != mp->m_sb.sb_rextslog)
mp                197 fs/xfs/scrub/agheader.c 	if (sb->sb_imax_pct != mp->m_sb.sb_imax_pct)
mp                205 fs/xfs/scrub/agheader.c 	if (sb->sb_uquotino != cpu_to_be64(mp->m_sb.sb_uquotino))
mp                208 fs/xfs/scrub/agheader.c 	if (sb->sb_gquotino != cpu_to_be64(mp->m_sb.sb_gquotino))
mp                216 fs/xfs/scrub/agheader.c 	if (sb->sb_flags != mp->m_sb.sb_flags)
mp                219 fs/xfs/scrub/agheader.c 	if (sb->sb_shared_vn != mp->m_sb.sb_shared_vn)
mp                222 fs/xfs/scrub/agheader.c 	if (sb->sb_inoalignmt != cpu_to_be32(mp->m_sb.sb_inoalignmt))
mp                225 fs/xfs/scrub/agheader.c 	if (sb->sb_unit != cpu_to_be32(mp->m_sb.sb_unit))
mp                228 fs/xfs/scrub/agheader.c 	if (sb->sb_width != cpu_to_be32(mp->m_sb.sb_width))
mp                231 fs/xfs/scrub/agheader.c 	if (sb->sb_dirblklog != mp->m_sb.sb_dirblklog)
mp                234 fs/xfs/scrub/agheader.c 	if (sb->sb_logsectlog != mp->m_sb.sb_logsectlog)
mp                237 fs/xfs/scrub/agheader.c 	if (sb->sb_logsectsize != cpu_to_be16(mp->m_sb.sb_logsectsize))
mp                240 fs/xfs/scrub/agheader.c 	if (sb->sb_logsunit != cpu_to_be32(mp->m_sb.sb_logsunit))
mp                244 fs/xfs/scrub/agheader.c 	if (!xfs_sb_version_hasmorebits(&mp->m_sb)) {
mp                249 fs/xfs/scrub/agheader.c 		if (XFS_SB_VERSION_NUM(&mp->m_sb) >= XFS_SB_VERSION_5)
mp                265 fs/xfs/scrub/agheader.c 	    (cpu_to_be32(mp->m_sb.sb_features2) & features_mask))
mp                271 fs/xfs/scrub/agheader.c 	    (cpu_to_be32(mp->m_sb.sb_features2) & features_mask))
mp                274 fs/xfs/scrub/agheader.c 	if (!xfs_sb_version_hascrc(&mp->m_sb)) {
mp                284 fs/xfs/scrub/agheader.c 		    (cpu_to_be32(mp->m_sb.sb_features_compat) & features_mask))
mp                293 fs/xfs/scrub/agheader.c 		    (cpu_to_be32(mp->m_sb.sb_features_ro_compat) &
mp                303 fs/xfs/scrub/agheader.c 		    (cpu_to_be32(mp->m_sb.sb_features_incompat) &
mp                310 fs/xfs/scrub/agheader.c 		    (cpu_to_be32(mp->m_sb.sb_features_log_incompat) &
mp                316 fs/xfs/scrub/agheader.c 		if (sb->sb_spino_align != cpu_to_be32(mp->m_sb.sb_spino_align))
mp                319 fs/xfs/scrub/agheader.c 		if (sb->sb_pquotino != cpu_to_be64(mp->m_sb.sb_pquotino))
mp                325 fs/xfs/scrub/agheader.c 	if (xfs_sb_version_hasmetauuid(&mp->m_sb)) {
mp                327 fs/xfs/scrub/agheader.c 		if (!uuid_equal(&sb->sb_meta_uuid, &mp->m_sb.sb_meta_uuid))
mp                414 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                435 fs/xfs/scrub/agheader.c 	if ((xfs_sb_version_hasrmapbt(&mp->m_sb) && !sc->sa.rmap_cur) ||
mp                478 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                485 fs/xfs/scrub/agheader.c 	agbno = XFS_AGF_BLOCK(mp);
mp                508 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                524 fs/xfs/scrub/agheader.c 	if (!xchk_process_error(sc, agno, XFS_AGF_BLOCK(sc->mp), &error))
mp                532 fs/xfs/scrub/agheader.c 	if (eoag != xfs_ag_block_count(mp, agno))
mp                537 fs/xfs/scrub/agheader.c 	if (!xfs_verify_agbno(mp, agno, agbno))
mp                541 fs/xfs/scrub/agheader.c 	if (!xfs_verify_agbno(mp, agno, agbno))
mp                552 fs/xfs/scrub/agheader.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
mp                554 fs/xfs/scrub/agheader.c 		if (!xfs_verify_agbno(mp, agno, agbno))
mp                562 fs/xfs/scrub/agheader.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp                564 fs/xfs/scrub/agheader.c 		if (!xfs_verify_agbno(mp, agno, agbno))
mp                579 fs/xfs/scrub/agheader.c 		fl_count = xfs_agfl_size(mp) - agfl_first + agfl_last + 1;
mp                584 fs/xfs/scrub/agheader.c 	pag = xfs_perag_get(mp, agno);
mp                625 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp,
mp                633 fs/xfs/scrub/agheader.c 	if (xfs_verify_agbno(mp, agno, agbno) &&
mp                663 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                670 fs/xfs/scrub/agheader.c 	agbno = XFS_AGFL_BLOCK(mp);
mp                702 fs/xfs/scrub/agheader.c 	if (!xchk_process_error(sc, agno, XFS_AGFL_BLOCK(sc->mp), &error))
mp                716 fs/xfs/scrub/agheader.c 	if (agflcount > xfs_agfl_size(sc->mp)) {
mp                731 fs/xfs/scrub/agheader.c 	error = xfs_agfl_walk(sc->mp, XFS_BUF_TO_AGF(sc->sa.agf_bp),
mp                789 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                796 fs/xfs/scrub/agheader.c 	agbno = XFS_AGI_BLOCK(mp);
mp                816 fs/xfs/scrub/agheader.c 	struct xfs_mount	*mp = sc->mp;
mp                833 fs/xfs/scrub/agheader.c 	if (!xchk_process_error(sc, agno, XFS_AGI_BLOCK(sc->mp), &error))
mp                841 fs/xfs/scrub/agheader.c 	if (eoag != xfs_ag_block_count(mp, agno))
mp                846 fs/xfs/scrub/agheader.c 	if (!xfs_verify_agbno(mp, agno, agbno))
mp                853 fs/xfs/scrub/agheader.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb)) {
mp                855 fs/xfs/scrub/agheader.c 		if (!xfs_verify_agbno(mp, agno, agbno))
mp                864 fs/xfs/scrub/agheader.c 	xfs_agino_range(mp, agno, &first_agino, &last_agino);
mp                872 fs/xfs/scrub/agheader.c 	if (!xfs_verify_agino_or_null(mp, agno, agino))
mp                876 fs/xfs/scrub/agheader.c 	if (!xfs_verify_agino_or_null(mp, agno, agino))
mp                882 fs/xfs/scrub/agheader.c 		if (!xfs_verify_agino_or_null(mp, agno, agino))
mp                890 fs/xfs/scrub/agheader.c 	pag = xfs_perag_get(mp, agno);
mp                 36 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                 46 fs/xfs/scrub/agheader_repair.c 	error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp);
mp                 52 fs/xfs/scrub/agheader_repair.c 	xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb);
mp                 90 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp,
mp                 96 fs/xfs/scrub/agheader_repair.c 	if (!xfs_verify_agbno(mp, sc->sa.agno, agbno))
mp                120 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount		*mp = sc->mp;
mp                123 fs/xfs/scrub/agheader_repair.c 	return xfs_verify_agbno(mp, agno, fab->root) &&
mp                166 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hasreflink(&sc->mp->m_sb) &&
mp                183 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                191 fs/xfs/scrub/agheader_repair.c 	agf->agf_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno));
mp                195 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                196 fs/xfs/scrub/agheader_repair.c 		uuid_copy(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid);
mp                225 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hasreflink(&sc->mp->m_sb)) {
mp                242 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                248 fs/xfs/scrub/agheader_repair.c 	cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno,
mp                262 fs/xfs/scrub/agheader_repair.c 	cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno,
mp                271 fs/xfs/scrub/agheader_repair.c 	cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno);
mp                282 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp                283 fs/xfs/scrub/agheader_repair.c 		cur = xfs_refcountbt_init_cursor(mp, sc->tp, agf_bp,
mp                308 fs/xfs/scrub/agheader_repair.c 	xfs_force_summary_recalc(sc->mp);
mp                358 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount		*mp = sc->mp;
mp                365 fs/xfs/scrub/agheader_repair.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                368 fs/xfs/scrub/agheader_repair.c 	xchk_perag_get(sc->mp, &sc->sa);
mp                373 fs/xfs/scrub/agheader_repair.c 	error = xfs_trans_read_buf(mp, sc->tp, mp->m_ddev_targp,
mp                374 fs/xfs/scrub/agheader_repair.c 			XFS_AG_DADDR(mp, sc->sa.agno, XFS_AGF_DADDR(mp)),
mp                375 fs/xfs/scrub/agheader_repair.c 			XFS_FSS_TO_BB(mp, 1), 0, &agf_bp, NULL);
mp                390 fs/xfs/scrub/agheader_repair.c 	error = xfs_alloc_read_agfl(mp, sc->tp, sc->sa.agno, &agfl_bp);
mp                398 fs/xfs/scrub/agheader_repair.c 	error = xfs_agfl_walk(sc->mp, XFS_BUF_TO_AGF(agf_bp), agfl_bp,
mp                483 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                494 fs/xfs/scrub/agheader_repair.c 	cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno);
mp                501 fs/xfs/scrub/agheader_repair.c 	cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno,
mp                509 fs/xfs/scrub/agheader_repair.c 	cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno,
mp                533 fs/xfs/scrub/agheader_repair.c 		if (*flcount > xfs_agfl_size(mp))
mp                536 fs/xfs/scrub/agheader_repair.c 	if (*flcount > xfs_agfl_size(mp))
mp                537 fs/xfs/scrub/agheader_repair.c 		*flcount = xfs_agfl_size(mp);
mp                555 fs/xfs/scrub/agheader_repair.c 	ASSERT(flcount <= xfs_agfl_size(sc->mp));
mp                558 fs/xfs/scrub/agheader_repair.c 	xfs_force_summary_recalc(sc->mp);
mp                579 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                587 fs/xfs/scrub/agheader_repair.c 	ASSERT(flcount <= xfs_agfl_size(mp));
mp                597 fs/xfs/scrub/agheader_repair.c 	uuid_copy(&agfl->agfl_uuid, &mp->m_sb.sb_meta_uuid);
mp                605 fs/xfs/scrub/agheader_repair.c 	agfl_bno = XFS_BUF_TO_AGFL_BNO(mp, agfl_bp);
mp                607 fs/xfs/scrub/agheader_repair.c 		agbno = XFS_FSB_TO_AGBNO(mp, br->start);
mp                609 fs/xfs/scrub/agheader_repair.c 		trace_xrep_agfl_insert(mp, sc->sa.agno, agbno, br->len);
mp                641 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                648 fs/xfs/scrub/agheader_repair.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                651 fs/xfs/scrub/agheader_repair.c 	xchk_perag_get(sc->mp, &sc->sa);
mp                659 fs/xfs/scrub/agheader_repair.c 	error = xfs_alloc_read_agf(mp, sc->tp, sc->sa.agno, 0, &agf_bp);
mp                669 fs/xfs/scrub/agheader_repair.c 	error = xfs_trans_read_buf(mp, sc->tp, mp->m_ddev_targp,
mp                670 fs/xfs/scrub/agheader_repair.c 			XFS_AG_DADDR(mp, sc->sa.agno, XFS_AGFL_DADDR(mp)),
mp                671 fs/xfs/scrub/agheader_repair.c 			XFS_FSS_TO_BB(mp, 1), 0, &agfl_bp, NULL);
mp                731 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount		*mp = sc->mp;
mp                735 fs/xfs/scrub/agheader_repair.c 	error = xfs_alloc_read_agf(mp, sc->tp, sc->sa.agno, 0, &agf_bp);
mp                751 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb) &&
mp                769 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                776 fs/xfs/scrub/agheader_repair.c 	agi->agi_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno));
mp                779 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp                780 fs/xfs/scrub/agheader_repair.c 		uuid_copy(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid);
mp                801 fs/xfs/scrub/agheader_repair.c 	if (xfs_sb_version_hasfinobt(&sc->mp->m_sb)) {
mp                815 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount	*mp = sc->mp;
mp                820 fs/xfs/scrub/agheader_repair.c 	cur = xfs_inobt_init_cursor(mp, sc->tp, agi_bp, sc->sa.agno,
mp                845 fs/xfs/scrub/agheader_repair.c 	xfs_force_summary_recalc(sc->mp);
mp                879 fs/xfs/scrub/agheader_repair.c 	struct xfs_mount		*mp = sc->mp;
mp                885 fs/xfs/scrub/agheader_repair.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                888 fs/xfs/scrub/agheader_repair.c 	xchk_perag_get(sc->mp, &sc->sa);
mp                893 fs/xfs/scrub/agheader_repair.c 	error = xfs_trans_read_buf(mp, sc->tp, mp->m_ddev_targp,
mp                894 fs/xfs/scrub/agheader_repair.c 			XFS_AG_DADDR(mp, sc->sa.agno, XFS_AGI_DADDR(mp)),
mp                895 fs/xfs/scrub/agheader_repair.c 			XFS_FSS_TO_BB(mp, 1), 0, &agi_bp, NULL);
mp                 96 fs/xfs/scrub/alloc.c 	struct xfs_mount	*mp = bs->cur->bc_mp;
mp                105 fs/xfs/scrub/alloc.c 	    !xfs_verify_agbno(mp, agno, bno) ||
mp                106 fs/xfs/scrub/alloc.c 	    !xfs_verify_agbno(mp, agno, bno + len - 1))
mp                 42 fs/xfs/scrub/attr.c 	sz = 3 * sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize);
mp                192 fs/xfs/scrub/attr.c 	unsigned int		mapsize = sc->mp->m_attr_geo->blksize;
mp                221 fs/xfs/scrub/attr.c 	unsigned int			mapsize = sc->mp->m_attr_geo->blksize;
mp                253 fs/xfs/scrub/attr.c 	struct xfs_mount		*mp = ds->state->mp;
mp                271 fs/xfs/scrub/attr.c 	    nameidx >= mp->m_attr_geo->blksize) {
mp                307 fs/xfs/scrub/attr.c 	struct xfs_mount		*mp = ds->state->mp;
mp                335 fs/xfs/scrub/attr.c 	bitmap_zero(usedmap, mp->m_attr_geo->blksize);
mp                338 fs/xfs/scrub/attr.c 	if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb)) {
mp                350 fs/xfs/scrub/attr.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf);
mp                353 fs/xfs/scrub/attr.c 	if (leafhdr.usedbytes > mp->m_attr_geo->blksize)
mp                355 fs/xfs/scrub/attr.c 	if (leafhdr.firstused > mp->m_attr_geo->blksize)
mp                369 fs/xfs/scrub/attr.c 	buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize;
mp                404 fs/xfs/scrub/attr.c 	struct xfs_mount		*mp = ds->state->mp;
mp                435 fs/xfs/scrub/attr.c 	if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) {
mp                 56 fs/xfs/scrub/attr.h 			BITS_TO_LONGS(sc->mp->m_attr_geo->blksize);
mp                 65 fs/xfs/scrub/attr.h 			BITS_TO_LONGS(sc->mp->m_attr_geo->blksize);
mp                233 fs/xfs/scrub/bmap.c 	struct xfs_mount	*mp = info->sc->mp;
mp                239 fs/xfs/scrub/bmap.c 	agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock);
mp                240 fs/xfs/scrub/bmap.c 	agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock);
mp                279 fs/xfs/scrub/bmap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                285 fs/xfs/scrub/bmap.c 	if (!xfs_verify_dablk(mp, irec->br_startoff))
mp                290 fs/xfs/scrub/bmap.c 	if (!xfs_verify_dablk(mp, off))
mp                301 fs/xfs/scrub/bmap.c 	struct xfs_mount	*mp = info->sc->mp;
mp                337 fs/xfs/scrub/bmap.c 	    (!xfs_verify_rtbno(mp, irec->br_startblock) ||
mp                338 fs/xfs/scrub/bmap.c 	     !xfs_verify_rtbno(mp, end)))
mp                342 fs/xfs/scrub/bmap.c 	    (!xfs_verify_fsbno(mp, irec->br_startblock) ||
mp                343 fs/xfs/scrub/bmap.c 	     !xfs_verify_fsbno(mp, end) ||
mp                344 fs/xfs/scrub/bmap.c 	     XFS_FSB_TO_AGNO(mp, irec->br_startblock) !=
mp                345 fs/xfs/scrub/bmap.c 				XFS_FSB_TO_AGNO(mp, end)))
mp                430 fs/xfs/scrub/bmap.c 	struct xfs_mount	*mp = sc->mp;
mp                444 fs/xfs/scrub/bmap.c 	cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork);
mp                503 fs/xfs/scrub/bmap.c 		if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp,
mp                541 fs/xfs/scrub/bmap.c 	error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf);
mp                545 fs/xfs/scrub/bmap.c 	cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, agno);
mp                573 fs/xfs/scrub/bmap.c 	if (!xfs_sb_version_hasrmapbt(&sc->mp->m_sb) ||
mp                604 fs/xfs/scrub/bmap.c 	for (agno = 0; agno < sc->mp->m_sb.sb_agcount; agno++) {
mp                628 fs/xfs/scrub/bmap.c 	struct xfs_mount	*mp = sc->mp;
mp                656 fs/xfs/scrub/bmap.c 		if (!xfs_sb_version_hasattr(&mp->m_sb) &&
mp                657 fs/xfs/scrub/bmap.c 		    !xfs_sb_version_hasattr2(&mp->m_sb))
mp                409 fs/xfs/scrub/common.c 	struct xfs_mount	*mp = sc->mp;
mp                412 fs/xfs/scrub/common.c 	error = xfs_ialloc_read_agi(mp, sc->tp, agno, agi);
mp                416 fs/xfs/scrub/common.c 	error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, agf);
mp                420 fs/xfs/scrub/common.c 	error = xfs_alloc_read_agfl(mp, sc->tp, agno, agfl);
mp                460 fs/xfs/scrub/common.c 	struct xfs_mount	*mp = sc->mp;
mp                463 fs/xfs/scrub/common.c 	xchk_perag_get(sc->mp, sa);
mp                467 fs/xfs/scrub/common.c 		sa->bno_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp,
mp                476 fs/xfs/scrub/common.c 		sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp,
mp                485 fs/xfs/scrub/common.c 		sa->ino_cur = xfs_inobt_init_cursor(mp, sc->tp, sa->agi_bp,
mp                492 fs/xfs/scrub/common.c 	if (sa->agi_bp && xfs_sb_version_hasfinobt(&mp->m_sb) &&
mp                494 fs/xfs/scrub/common.c 		sa->fino_cur = xfs_inobt_init_cursor(mp, sc->tp, sa->agi_bp,
mp                501 fs/xfs/scrub/common.c 	if (sa->agf_bp && xfs_sb_version_hasrmapbt(&mp->m_sb) &&
mp                503 fs/xfs/scrub/common.c 		sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp,
mp                510 fs/xfs/scrub/common.c 	if (sa->agf_bp && xfs_sb_version_hasreflink(&mp->m_sb) &&
mp                512 fs/xfs/scrub/common.c 		sa->refc_cur = xfs_refcountbt_init_cursor(mp, sc->tp,
mp                579 fs/xfs/scrub/common.c 	struct xfs_mount	*mp,
mp                583 fs/xfs/scrub/common.c 		sa->pag = xfs_perag_get(mp, sa->agno);
mp                604 fs/xfs/scrub/common.c 		return xfs_trans_alloc(sc->mp, &M_RES(sc->mp)->tr_itruncate,
mp                607 fs/xfs/scrub/common.c 	return xfs_trans_alloc_empty(sc->mp, &sc->tp);
mp                629 fs/xfs/scrub/common.c 	struct xfs_mount	*mp = sc->mp;
mp                639 fs/xfs/scrub/common.c 		error = xchk_checkpoint_log(mp);
mp                654 fs/xfs/scrub/common.c 	struct xfs_mount	*mp)
mp                658 fs/xfs/scrub/common.c 	error = xfs_log_force(mp, XFS_LOG_SYNC);
mp                661 fs/xfs/scrub/common.c 	xfs_ail_push_all_sync(mp->m_ail);
mp                676 fs/xfs/scrub/common.c 	struct xfs_mount	*mp = sc->mp;
mp                687 fs/xfs/scrub/common.c 	if (xfs_internal_inum(mp, sc->sm->sm_ino))
mp                689 fs/xfs/scrub/common.c 	error = xfs_iget(mp, NULL, sc->sm->sm_ino,
mp                711 fs/xfs/scrub/common.c 		error = xfs_imap(sc->mp, sc->tp, sc->sm->sm_ino, &imap,
mp                719 fs/xfs/scrub/common.c 				XFS_INO_TO_AGNO(mp, sc->sm->sm_ino),
mp                720 fs/xfs/scrub/common.c 				XFS_INO_TO_AGBNO(mp, sc->sm->sm_ino),
mp                864 fs/xfs/scrub/common.c 	if (xfs_sb_version_hasreflink(&sc->mp->m_sb)) {
mp                905 fs/xfs/scrub/common.c 	xfs_stop_block_reaping(sc->mp);
mp                913 fs/xfs/scrub/common.c 	xfs_start_block_reaping(sc->mp);
mp                 68 fs/xfs/scrub/common.h int xchk_checkpoint_log(struct xfs_mount *mp);
mp                121 fs/xfs/scrub/common.h void xchk_perag_get(struct xfs_mount *mp, struct xchk_ag *sa);
mp                386 fs/xfs/scrub/dabtree.c 	if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb) && hdr3->hdr.pad)
mp                479 fs/xfs/scrub/dabtree.c 	struct xfs_mount		*mp = sc->mp;
mp                499 fs/xfs/scrub/dabtree.c 	ds.state->mp = mp;
mp                503 fs/xfs/scrub/dabtree.c 		ds.dargs.geo = mp->m_attr_geo;
mp                507 fs/xfs/scrub/dabtree.c 		ds.dargs.geo = mp->m_dir_geo;
mp                 50 fs/xfs/scrub/dir.c 	struct xfs_mount	*mp = sdc->sc->mp;
mp                 55 fs/xfs/scrub/dir.c 	if (!xfs_sb_version_hasftype(&mp->m_sb)) {
mp                 70 fs/xfs/scrub/dir.c 	error = xfs_iget(mp, sdc->sc->tp, inum, 0, 0, &ip);
mp                 76 fs/xfs/scrub/dir.c 	ino_dtype = xfs_dir3_get_dtype(mp,
mp                102 fs/xfs/scrub/dir.c 	struct xfs_mount	*mp;
mp                112 fs/xfs/scrub/dir.c 	mp = ip->i_mount;
mp                113 fs/xfs/scrub/dir.c 	offset = xfs_dir2_db_to_da(mp->m_dir_geo,
mp                114 fs/xfs/scrub/dir.c 			xfs_dir2_dataptr_to_db(mp->m_dir_geo, pos));
mp                117 fs/xfs/scrub/dir.c 	if (!xfs_verify_dir_ino(mp, ino)) {
mp                130 fs/xfs/scrub/dir.c 		if (xfs_sb_version_hasftype(&mp->m_sb) && type != DT_DIR)
mp                141 fs/xfs/scrub/dir.c 		if (xfs_sb_version_hasftype(&mp->m_sb) && type != DT_DIR)
mp                144 fs/xfs/scrub/dir.c 		if (ip->i_ino == mp->m_sb.sb_rootino && ino != ip->i_ino)
mp                185 fs/xfs/scrub/dir.c 	struct xfs_mount		*mp = ds->state->mp;
mp                212 fs/xfs/scrub/dir.c 	db = xfs_dir2_dataptr_to_db(mp->m_dir_geo, ptr);
mp                213 fs/xfs/scrub/dir.c 	off = xfs_dir2_dataptr_to_off(mp->m_dir_geo, ptr);
mp                214 fs/xfs/scrub/dir.c 	rec_bno = xfs_dir2_db_to_da(mp->m_dir_geo, db);
mp                216 fs/xfs/scrub/dir.c 	if (rec_bno >= mp->m_dir_geo->leafblk) {
mp                236 fs/xfs/scrub/dir.c 	p = (char *)mp->m_dir_inode_ops->data_entry_p(bp->b_addr);
mp                237 fs/xfs/scrub/dir.c 	endp = xfs_dir3_data_endp(mp->m_dir_geo, bp->b_addr);
mp                254 fs/xfs/scrub/dir.c 		p += mp->m_dir_inode_ops->data_entsize(dep->namelen);
mp                265 fs/xfs/scrub/dir.c 	if (!xfs_verify_dir_ino(mp, ino) || tag != off)
mp                321 fs/xfs/scrub/dir.c 	struct xfs_mount		*mp = sc->mp;
mp                337 fs/xfs/scrub/dir.c 		if (lblk != XFS_B_TO_FSBT(mp, XFS_DIR2_DATA_OFFSET))
mp                360 fs/xfs/scrub/dir.c 		if (offset >= mp->m_dir_geo->blksize) {
mp                387 fs/xfs/scrub/dir.c 	endptr = xfs_dir3_data_endp(mp->m_dir_geo, bp->b_addr);
mp                484 fs/xfs/scrub/dir.c 	struct xfs_da_geometry		*geo = sc->mp->m_dir_geo;
mp                507 fs/xfs/scrub/dir.c 	if (xfs_sb_version_hascrc(&sc->mp->m_sb)) {
mp                590 fs/xfs/scrub/dir.c 	if (xfs_sb_version_hascrc(&sc->mp->m_sb)) {
mp                630 fs/xfs/scrub/dir.c 	struct xfs_mount	*mp = sc->mp;
mp                646 fs/xfs/scrub/dir.c 	lblk = XFS_B_TO_FSB(mp, XFS_DIR2_DATA_OFFSET);
mp                647 fs/xfs/scrub/dir.c 	leaf_lblk = XFS_B_TO_FSB(mp, XFS_DIR2_LEAF_OFFSET);
mp                648 fs/xfs/scrub/dir.c 	free_lblk = XFS_B_TO_FSB(mp, XFS_DIR2_FREE_OFFSET);
mp                652 fs/xfs/scrub/dir.c 	args.geo = mp->m_dir_geo;
mp                 66 fs/xfs/scrub/fscounters.c 	struct xfs_mount	*mp = sc->mp;
mp                 73 fs/xfs/scrub/fscounters.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                 74 fs/xfs/scrub/fscounters.c 		pag = xfs_perag_get(mp, agno);
mp                 80 fs/xfs/scrub/fscounters.c 		error = xfs_ialloc_read_agi(mp, sc->tp, agno, &agi_bp);
mp                 83 fs/xfs/scrub/fscounters.c 		error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &agf_bp);
mp                133 fs/xfs/scrub/fscounters.c 	xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max);
mp                161 fs/xfs/scrub/fscounters.c 	struct xfs_mount	*mp = sc->mp;
mp                172 fs/xfs/scrub/fscounters.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                173 fs/xfs/scrub/fscounters.c 		pag = xfs_perag_get(mp, agno);
mp                207 fs/xfs/scrub/fscounters.c 	fsc->fdblocks -= mp->m_resblks_avail;
mp                214 fs/xfs/scrub/fscounters.c 	delayed = percpu_counter_sum(&mp->m_delalloc_blks);
mp                217 fs/xfs/scrub/fscounters.c 	trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks,
mp                223 fs/xfs/scrub/fscounters.c 	    fsc->fdblocks > mp->m_sb.sb_dblocks ||
mp                265 fs/xfs/scrub/fscounters.c 	trace_xchk_fscounters_within_range(sc->mp, expected, curr_value,
mp                306 fs/xfs/scrub/fscounters.c 	struct xfs_mount	*mp = sc->mp;
mp                312 fs/xfs/scrub/fscounters.c 	icount = percpu_counter_sum(&mp->m_icount);
mp                313 fs/xfs/scrub/fscounters.c 	ifree = percpu_counter_sum(&mp->m_ifree);
mp                314 fs/xfs/scrub/fscounters.c 	fdblocks = percpu_counter_sum(&mp->m_fdblocks);
mp                325 fs/xfs/scrub/fscounters.c 	if (fdblocks > mp->m_sb.sb_dblocks)
mp                337 fs/xfs/scrub/fscounters.c 	if (!xchk_process_error(sc, 0, XFS_SB_BLOCK(mp), &error))
mp                343 fs/xfs/scrub/fscounters.c 	if (!xchk_fscount_within_range(sc, icount, &mp->m_icount, fsc->icount))
mp                346 fs/xfs/scrub/fscounters.c 	if (!xchk_fscount_within_range(sc, ifree, &mp->m_ifree, fsc->ifree))
mp                349 fs/xfs/scrub/fscounters.c 	if (!xchk_fscount_within_range(sc, fdblocks, &mp->m_fdblocks,
mp                138 fs/xfs/scrub/health.c 		pag = xfs_perag_get(sc->mp, sc->sm->sm_agno);
mp                155 fs/xfs/scrub/health.c 			xfs_fs_mark_sick(sc->mp, sc->sick_mask);
mp                157 fs/xfs/scrub/health.c 			xfs_fs_mark_healthy(sc->mp, sc->sick_mask);
mp                161 fs/xfs/scrub/health.c 			xfs_rt_mark_sick(sc->mp, sc->sick_mask);
mp                163 fs/xfs/scrub/health.c 			xfs_rt_mark_healthy(sc->mp, sc->sick_mask);
mp                106 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
mp                110 fs/xfs/scrub/ialloc.c 	bno = XFS_AGINO_TO_AGBNO(mp, agino);
mp                112 fs/xfs/scrub/ialloc.c 	    !xfs_verify_agbno(mp, agno, bno) ||
mp                113 fs/xfs/scrub/ialloc.c 	    !xfs_verify_agbno(mp, agno, bno + len - 1))
mp                151 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
mp                167 fs/xfs/scrub/ialloc.c 	fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_private.a.agno, agino);
mp                176 fs/xfs/scrub/ialloc.c 	error = xfs_icache_inode_is_allocated(mp, bs->cur->bc_tp, fsino,
mp                214 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
mp                226 fs/xfs/scrub/ialloc.c 			M_IGEO(mp)->inodes_per_cluster);
mp                229 fs/xfs/scrub/ialloc.c 	agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base);
mp                246 fs/xfs/scrub/ialloc.c 	imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno);
mp                247 fs/xfs/scrub/ialloc.c 	imap.im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster);
mp                248 fs/xfs/scrub/ialloc.c 	imap.im_boffset = XFS_INO_TO_OFFSET(mp, irec->ir_startino) <<
mp                249 fs/xfs/scrub/ialloc.c 			mp->m_sb.sb_inodelog;
mp                257 fs/xfs/scrub/ialloc.c 	trace_xchk_iallocbt_check_cluster(mp, agno, irec->ir_startino,
mp                260 fs/xfs/scrub/ialloc.c 			XFS_INO_TO_OFFSET(mp, irec->ir_startino +
mp                272 fs/xfs/scrub/ialloc.c 				M_IGEO(mp)->blocks_per_cluster,
mp                277 fs/xfs/scrub/ialloc.c 	xchk_xref_is_owned_by(bs->sc, agbno, M_IGEO(mp)->blocks_per_cluster,
mp                281 fs/xfs/scrub/ialloc.c 	error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &dip, &cluster_bp,
mp                300 fs/xfs/scrub/ialloc.c 		imap.im_boffset += mp->m_sb.sb_inodesize;
mp                329 fs/xfs/scrub/ialloc.c 	     cluster_base += M_IGEO(bs->sc->mp)->inodes_per_cluster) {
mp                349 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->sc->mp;
mp                351 fs/xfs/scrub/ialloc.c 	struct xfs_ino_geometry		*igeo = M_IGEO(mp);
mp                425 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
mp                438 fs/xfs/scrub/ialloc.c 	xfs_inobt_btrec_to_irec(mp, rec, &irec);
mp                451 fs/xfs/scrub/ialloc.c 	if (!xfs_verify_agino(mp, agno, agino) ||
mp                452 fs/xfs/scrub/ialloc.c 	    !xfs_verify_agino(mp, agno, agino + XFS_INODES_PER_CHUNK - 1)) {
mp                465 fs/xfs/scrub/ialloc.c 		len = XFS_B_TO_FSB(mp,
mp                466 fs/xfs/scrub/ialloc.c 				XFS_INODES_PER_CHUNK * mp->m_sb.sb_inodesize);
mp                478 fs/xfs/scrub/ialloc.c 	len = XFS_B_TO_FSB(mp,
mp                479 fs/xfs/scrub/ialloc.c 			XFS_INODES_PER_HOLEMASK_BIT * mp->m_sb.sb_inodesize);
mp                522 fs/xfs/scrub/ialloc.c 	    (xfs_sb_version_hasfinobt(&sc->mp->m_sb) && !sc->sa.fino_cur) ||
mp                567 fs/xfs/scrub/ialloc.c 	inode_blocks = XFS_B_TO_FSB(sc->mp, inodes * sc->mp->m_sb.sb_inodesize);
mp                 78 fs/xfs/scrub/inode.c 	fa = xfs_inode_validate_extsize(sc->mp, be32_to_cpu(dip->di_extsize),
mp                101 fs/xfs/scrub/inode.c 	fa = xfs_inode_validate_cowextsize(sc->mp,
mp                117 fs/xfs/scrub/inode.c 	struct xfs_mount	*mp = sc->mp;
mp                125 fs/xfs/scrub/inode.c 	    !mp->m_rtdev_targp)
mp                129 fs/xfs/scrub/inode.c 	if ((flags & XFS_DIFLAG_NEWRTBM) && ino != mp->m_sb.sb_rbmino)
mp                164 fs/xfs/scrub/inode.c 	struct xfs_mount	*mp = sc->mp;
mp                172 fs/xfs/scrub/inode.c 	    !xfs_sb_version_hasreflink(&mp->m_sb))
mp                205 fs/xfs/scrub/inode.c 	struct xfs_mount	*mp = sc->mp;
mp                254 fs/xfs/scrub/inode.c 		    !xfs_sb_version_hasprojid32bit(&mp->m_sb))
mp                330 fs/xfs/scrub/inode.c 	if (isize >= mp->m_super->s_maxbytes)
mp                345 fs/xfs/scrub/inode.c 		    mp->m_sb.sb_dblocks + mp->m_sb.sb_rblocks)
mp                348 fs/xfs/scrub/inode.c 		if (be64_to_cpu(dip->di_nblocks) >= mp->m_sb.sb_dblocks)
mp                358 fs/xfs/scrub/inode.c 	fork_recs =  XFS_DFORK_DSIZE(dip, mp) / sizeof(struct xfs_bmbt_rec);
mp                375 fs/xfs/scrub/inode.c 	if (XFS_DFORK_APTR(dip) >= (char *)dip + mp->m_sb.sb_inodesize)
mp                390 fs/xfs/scrub/inode.c 	fork_recs =  XFS_DFORK_ASIZE(dip, mp) / sizeof(struct xfs_bmbt_rec);
mp                432 fs/xfs/scrub/inode.c 	agino = XFS_INO_TO_AGINO(sc->mp, ino);
mp                509 fs/xfs/scrub/inode.c 	agno = XFS_INO_TO_AGNO(sc->mp, ino);
mp                510 fs/xfs/scrub/inode.c 	agbno = XFS_INO_TO_AGBNO(sc->mp, ino);
mp                536 fs/xfs/scrub/inode.c 	struct xfs_mount	*mp = sc->mp;
mp                540 fs/xfs/scrub/inode.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp                545 fs/xfs/scrub/inode.c 	if (!xchk_xref_process_error(sc, XFS_INO_TO_AGNO(mp, ino),
mp                546 fs/xfs/scrub/inode.c 			XFS_INO_TO_AGBNO(mp, ino), &error))
mp                120 fs/xfs/scrub/parent.c 	struct xfs_mount	*mp = sc->mp;
mp                157 fs/xfs/scrub/parent.c 	error = xfs_iget(mp, sc->tp, dnum, XFS_IGET_UNTRUSTED, 0, &dp);
mp                252 fs/xfs/scrub/parent.c 	struct xfs_mount	*mp = sc->mp;
mp                266 fs/xfs/scrub/parent.c 	if (!xfs_verify_dir_ino(mp, sc->ip->i_ino)) {
mp                285 fs/xfs/scrub/parent.c 	if (!xfs_verify_dir_ino(mp, dnum)) {
mp                291 fs/xfs/scrub/parent.c 	if (sc->ip == mp->m_rootip) {
mp                292 fs/xfs/scrub/parent.c 		if (sc->ip->i_ino != mp->m_sb.sb_rootino ||
mp                 46 fs/xfs/scrub/quota.c 	if (!XFS_IS_QUOTA_RUNNING(sc->mp) || !XFS_IS_QUOTA_ON(sc->mp))
mp                 53 fs/xfs/scrub/quota.c 	mutex_lock(&sc->mp->m_quotainfo->qi_quotaofflock);
mp                 54 fs/xfs/scrub/quota.c 	if (!xfs_this_quota_on(sc->mp, dqtype))
mp                 59 fs/xfs/scrub/quota.c 	sc->ip = xfs_quota_inode(sc->mp, dqtype);
mp                 81 fs/xfs/scrub/quota.c 	struct xfs_mount	*mp = sc->mp;
mp                 83 fs/xfs/scrub/quota.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp                131 fs/xfs/scrub/quota.c 	if (bhard > mp->m_sb.sb_dblocks)
mp                136 fs/xfs/scrub/quota.c 	if (ihard > M_IGEO(mp)->maxicount)
mp                141 fs/xfs/scrub/quota.c 	if (rhard > mp->m_sb.sb_rblocks)
mp                150 fs/xfs/scrub/quota.c 	fs_icount = percpu_counter_sum(&mp->m_icount);
mp                157 fs/xfs/scrub/quota.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp                158 fs/xfs/scrub/quota.c 		if (mp->m_sb.sb_dblocks < bcount)
mp                162 fs/xfs/scrub/quota.c 		if (mp->m_sb.sb_dblocks < bcount)
mp                166 fs/xfs/scrub/quota.c 	if (icount > fs_icount || rcount > mp->m_sb.sb_rblocks)
mp                191 fs/xfs/scrub/quota.c 	struct xfs_quotainfo	*qi = sc->mp->m_quotainfo;
mp                229 fs/xfs/scrub/quota.c 	struct xfs_mount	*mp = sc->mp;
mp                230 fs/xfs/scrub/quota.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp                252 fs/xfs/scrub/quota.c 	error = xfs_qm_dqiterate(mp, dqtype, xchk_quota_item, &sqi);
mp                337 fs/xfs/scrub/refcount.c 	struct xfs_mount	*mp = bs->cur->bc_mp;
mp                359 fs/xfs/scrub/refcount.c 	    !xfs_verify_agbno(mp, agno, bno) ||
mp                360 fs/xfs/scrub/refcount.c 	    !xfs_verify_agbno(mp, agno, bno + len - 1))
mp                 91 fs/xfs/scrub/repair.c 	struct xfs_mount	*mp)
mp                 93 fs/xfs/scrub/repair.c 	xfs_alert_ratelimited(mp,
mp                178 fs/xfs/scrub/repair.c 	struct xfs_mount		*mp = sc->mp;
mp                195 fs/xfs/scrub/repair.c 	pag = xfs_perag_get(mp, sm->sm_agno);
mp                201 fs/xfs/scrub/repair.c 		error = xfs_ialloc_read_agi(mp, NULL, sm->sm_agno, &bp);
mp                209 fs/xfs/scrub/repair.c 	error = xfs_alloc_read_agf(mp, NULL, sm->sm_agno, 0, &bp);
mp                220 fs/xfs/scrub/repair.c 	    !xfs_verify_agino(mp, sm->sm_agno, icount)) {
mp                223 fs/xfs/scrub/repair.c 		xfs_agino_range(mp, sm->sm_agno, &first, &last);
mp                229 fs/xfs/scrub/repair.c 	    aglen != xfs_ag_block_count(mp, sm->sm_agno) ||
mp                231 fs/xfs/scrub/repair.c 		aglen = xfs_ag_block_count(mp, sm->sm_agno);
mp                236 fs/xfs/scrub/repair.c 	trace_xrep_calc_ag_resblks(mp, sm->sm_agno, icount, aglen,
mp                244 fs/xfs/scrub/repair.c 	bnobt_sz = 2 * xfs_allocbt_calc_size(mp, freelen);
mp                245 fs/xfs/scrub/repair.c 	if (xfs_sb_version_hassparseinodes(&mp->m_sb))
mp                246 fs/xfs/scrub/repair.c 		inobt_sz = xfs_iallocbt_calc_size(mp, icount /
mp                249 fs/xfs/scrub/repair.c 		inobt_sz = xfs_iallocbt_calc_size(mp, icount /
mp                251 fs/xfs/scrub/repair.c 	if (xfs_sb_version_hasfinobt(&mp->m_sb))
mp                253 fs/xfs/scrub/repair.c 	if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                254 fs/xfs/scrub/repair.c 		refcbt_sz = xfs_refcountbt_calc_size(mp, usedlen);
mp                257 fs/xfs/scrub/repair.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
mp                266 fs/xfs/scrub/repair.c 		if (xfs_sb_version_hasreflink(&mp->m_sb))
mp                267 fs/xfs/scrub/repair.c 			rmapbt_sz = xfs_rmapbt_calc_size(mp,
mp                270 fs/xfs/scrub/repair.c 			rmapbt_sz = xfs_rmapbt_calc_size(mp, usedlen);
mp                275 fs/xfs/scrub/repair.c 	trace_xrep_calc_ag_resblks_btsize(mp, sm->sm_agno, bnobt_sz,
mp                301 fs/xfs/scrub/repair.c 		xfs_extent_busy_reuse(sc->mp, sc->sa.agno, bno,
mp                303 fs/xfs/scrub/repair.c 		*fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.agno, bno);
mp                305 fs/xfs/scrub/repair.c 			xfs_ag_resv_rmapbt_alloc(sc->mp, sc->sa.agno);
mp                312 fs/xfs/scrub/repair.c 	args.mp = sc->mp;
mp                314 fs/xfs/scrub/repair.c 	args.fsbno = XFS_AGB_TO_FSB(args.mp, sc->sa.agno, 0);
mp                342 fs/xfs/scrub/repair.c 	struct xfs_mount		*mp = sc->mp;
mp                345 fs/xfs/scrub/repair.c 	trace_xrep_init_btblock(mp, XFS_FSB_TO_AGNO(mp, fsb),
mp                346 fs/xfs/scrub/repair.c 			XFS_FSB_TO_AGBNO(mp, fsb), btnum);
mp                348 fs/xfs/scrub/repair.c 	ASSERT(XFS_FSB_TO_AGNO(mp, fsb) == sc->sa.agno);
mp                349 fs/xfs/scrub/repair.c 	bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, XFS_FSB_TO_DADDR(mp, fsb),
mp                350 fs/xfs/scrub/repair.c 			XFS_FSB_TO_BB(mp, 1), 0);
mp                352 fs/xfs/scrub/repair.c 	xfs_btree_init_block(mp, bp, btnum, 0, 0, sc->sa.agno);
mp                450 fs/xfs/scrub/repair.c 		if (!xfs_verify_fsbno(sc->mp, fsbno))
mp                452 fs/xfs/scrub/repair.c 		bp = xfs_buf_incore(sc->mp->m_ddev_targp,
mp                453 fs/xfs/scrub/repair.c 				XFS_FSB_TO_DADDR(sc->mp, fsbno),
mp                454 fs/xfs/scrub/repair.c 				XFS_FSB_TO_BB(sc->mp, 1), XBF_TRYLOCK);
mp                472 fs/xfs/scrub/repair.c 	args.mp = sc->mp;
mp                533 fs/xfs/scrub/repair.c 	agno = XFS_FSB_TO_AGNO(sc->mp, fsbno);
mp                534 fs/xfs/scrub/repair.c 	agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno);
mp                542 fs/xfs/scrub/repair.c 		error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf_bp);
mp                550 fs/xfs/scrub/repair.c 	cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf_bp, agno);
mp                605 fs/xfs/scrub/repair.c 	ASSERT(xfs_sb_version_hasrmapbt(&sc->mp->m_sb));
mp                609 fs/xfs/scrub/repair.c 		       XFS_FSB_TO_AGNO(sc->mp, fsbno) == sc->sa.agno);
mp                610 fs/xfs/scrub/repair.c 		trace_xrep_dispose_btree_extent(sc->mp,
mp                611 fs/xfs/scrub/repair.c 				XFS_FSB_TO_AGNO(sc->mp, fsbno),
mp                612 fs/xfs/scrub/repair.c 				XFS_FSB_TO_AGBNO(sc->mp, fsbno), 1);
mp                661 fs/xfs/scrub/repair.c 	struct xfs_mount	*mp,
mp                679 fs/xfs/scrub/repair.c 	struct xfs_mount		*mp = ri->sc->mp;
mp                686 fs/xfs/scrub/repair.c 	daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.agno, agbno);
mp                695 fs/xfs/scrub/repair.c 		error = xfs_agfl_walk(mp, ri->agf, ri->agfl_bp,
mp                721 fs/xfs/scrub/repair.c 	error = xfs_trans_read_buf(mp, ri->sc->tp, mp->m_ddev_targp, daddr,
mp                722 fs/xfs/scrub/repair.c 			mp->m_bsize, 0, &bp, NULL);
mp                752 fs/xfs/scrub/repair.c 				&mp->m_sb.sb_meta_uuid))
mp                815 fs/xfs/scrub/repair.c 	trace_xrep_findroot_block(mp, ri->sc->sa.agno, agbno,
mp                869 fs/xfs/scrub/repair.c 	struct xfs_mount		*mp = sc->mp;
mp                889 fs/xfs/scrub/repair.c 	cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno);
mp                905 fs/xfs/scrub/repair.c 	if (!(flag & sc->mp->m_qflags))
mp                908 fs/xfs/scrub/repair.c 	sc->mp->m_qflags &= ~flag;
mp                909 fs/xfs/scrub/repair.c 	spin_lock(&sc->mp->m_sb_lock);
mp                910 fs/xfs/scrub/repair.c 	sc->mp->m_sb.sb_qflags &= ~flag;
mp                911 fs/xfs/scrub/repair.c 	spin_unlock(&sc->mp->m_sb_lock);
mp                936 fs/xfs/scrub/repair.c 		xfs_err_ratelimited(sc->mp,
mp                939 fs/xfs/scrub/repair.c 		if (XFS_IS_UQUOTA_ON(sc->mp) && !sc->ip->i_udquot)
mp                941 fs/xfs/scrub/repair.c 		if (XFS_IS_GQUOTA_ON(sc->mp) && !sc->ip->i_gdquot)
mp                943 fs/xfs/scrub/repair.c 		if (XFS_IS_PQUOTA_ON(sc->mp) && !sc->ip->i_pdquot)
mp                 19 fs/xfs/scrub/repair.h void xrep_failure(struct xfs_mount *mp);
mp                 72 fs/xfs/scrub/repair.h static inline void xrep_failure(struct xfs_mount *mp) {}
mp                 93 fs/xfs/scrub/rmap.c 	struct xfs_mount	*mp = bs->cur->bc_mp;
mp                117 fs/xfs/scrub/rmap.c 		    irec.rm_blockcount != XFS_AGFL_BLOCK(mp) + 1)
mp                124 fs/xfs/scrub/rmap.c 		if (!xfs_verify_agbno(mp, agno, irec.rm_startblock) ||
mp                125 fs/xfs/scrub/rmap.c 		    !xfs_verify_agbno(mp, agno, irec.rm_startblock +
mp                149 fs/xfs/scrub/rmap.c 		if (!xfs_verify_ino(mp, irec.rm_owner))
mp                 32 fs/xfs/scrub/rtbitmap.c 	sc->ip = sc->mp->m_rbmip;
mp                 55 fs/xfs/scrub/rtbitmap.c 	    !xfs_verify_rtbno(sc->mp, startblock) ||
mp                 56 fs/xfs/scrub/rtbitmap.c 	    !xfs_verify_rtbno(sc->mp, startblock + blockcount - 1))
mp                 86 fs/xfs/scrub/rtbitmap.c 	struct xfs_inode	*rsumip = sc->mp->m_rsumip;
mp                136 fs/xfs/scrub/rtbitmap.c 	do_div(startext, sc->mp->m_sb.sb_rextsize);
mp                137 fs/xfs/scrub/rtbitmap.c 	do_div(endext, sc->mp->m_sb.sb_rextsize);
mp                139 fs/xfs/scrub/rtbitmap.c 	xfs_ilock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP);
mp                140 fs/xfs/scrub/rtbitmap.c 	error = xfs_rtalloc_extent_is_free(sc->mp, sc->tp, startext, extcount,
mp                145 fs/xfs/scrub/rtbitmap.c 		xchk_ino_xref_set_corrupt(sc, sc->mp->m_rbmip->i_ino);
mp                147 fs/xfs/scrub/rtbitmap.c 	xfs_iunlock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP);
mp                166 fs/xfs/scrub/scrub.c 		    !xfs_internal_inum(sc->mp, sc->ip->i_ino))
mp                173 fs/xfs/scrub/scrub.c 		mutex_unlock(&sc->mp->m_quotainfo->qi_quotaofflock);
mp                346 fs/xfs/scrub/scrub.c 	struct xfs_mount	*mp)
mp                353 fs/xfs/scrub/scrub.c 		xfs_alert(mp,
mp                359 fs/xfs/scrub/scrub.c 	struct xfs_mount		*mp,
mp                382 fs/xfs/scrub/scrub.c 	if (ops->has && !ops->has(&mp->m_sb))
mp                395 fs/xfs/scrub/scrub.c 		    sm->sm_agno >= mp->m_sb.sb_agcount)
mp                414 fs/xfs/scrub/scrub.c 		if (!xfs_sb_version_hascrc(&mp->m_sb))
mp                418 fs/xfs/scrub/scrub.c 		if (mp->m_flags & XFS_MOUNT_RDONLY)
mp                438 fs/xfs/scrub/scrub.c 		xrep_failure(sc->mp);
mp                449 fs/xfs/scrub/scrub.c 		xfs_alert_ratelimited(sc->mp,
mp                461 fs/xfs/scrub/scrub.c 		.mp			= ip->i_mount,
mp                467 fs/xfs/scrub/scrub.c 	struct xfs_mount		*mp = ip->i_mount;
mp                477 fs/xfs/scrub/scrub.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                480 fs/xfs/scrub/scrub.c 	if (mp->m_flags & XFS_MOUNT_NORECOVERY)
mp                483 fs/xfs/scrub/scrub.c 	error = xchk_validate_inputs(mp, sm);
mp                487 fs/xfs/scrub/scrub.c 	xchk_experimental_warning(mp);
mp                520 fs/xfs/scrub/scrub.c 		if (XFS_TEST_ERROR(false, mp, XFS_ERRTAG_FORCE_SCRUB_REPAIR))
mp                548 fs/xfs/scrub/scrub.c 				xrep_failure(mp);
mp                 58 fs/xfs/scrub/scrub.h 	struct xfs_mount		*mp;
mp                141 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                204 fs/xfs/scrub/trace.h 		fsbno = XFS_DADDR_TO_FSB(sc->mp, daddr);
mp                205 fs/xfs/scrub/trace.h 		agno = XFS_FSB_TO_AGNO(sc->mp, fsbno);
mp                206 fs/xfs/scrub/trace.h 		bno = XFS_FSB_TO_AGBNO(sc->mp, fsbno);
mp                208 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                242 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                311 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                339 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                380 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                422 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                460 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                501 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                539 fs/xfs/scrub/trace.h 		__entry->dev = sc->mp->m_super->s_dev;
mp                552 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                557 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, startino, map_daddr, map_len, chunk_ino, nr_inodes,
mp                572 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                597 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, uint64_t icount, uint64_t ifree,
mp                599 fs/xfs/scrub/trace.h 	TP_ARGS(mp, icount, ifree, fdblocks, delalloc),
mp                611 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                612 fs/xfs/scrub/trace.h 		__entry->icount_sb = mp->m_sb.sb_icount;
mp                614 fs/xfs/scrub/trace.h 		__entry->ifree_sb = mp->m_sb.sb_ifree;
mp                616 fs/xfs/scrub/trace.h 		__entry->fdblocks_sb = mp->m_sb.sb_fdblocks;
mp                632 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, uint64_t expected, int64_t curr_value,
mp                634 fs/xfs/scrub/trace.h 	TP_ARGS(mp, expected, curr_value, old_value),
mp                642 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                658 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                660 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, agbno, len),
mp                668 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                681 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp                683 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, agbno, len))
mp                688 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                691 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, agbno, len, owner, offset, flags),
mp                702 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                721 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp                724 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, agbno, len, owner, offset, flags))
mp                731 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                733 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, irec),
mp                742 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                757 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
mp                759 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, agbno, btnum),
mp                767 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                779 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
mp                781 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, agbno, magic, level),
mp                790 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                804 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                807 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, icount, aglen, freelen, usedlen),
mp                817 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                833 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                836 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, bnobt_sz, inobt_sz, rmapbt_sz, refcbt_sz),
mp                846 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                862 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp),
mp                863 fs/xfs/scrub/trace.h 	TP_ARGS(mp),
mp                868 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                875 fs/xfs/scrub/trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                878 fs/xfs/scrub/trace.h 	TP_ARGS(mp, agno, startino, holemask, count, freecount, freemask),
mp                889 fs/xfs/scrub/trace.h 		__entry->dev = mp->m_super->s_dev;
mp                 37 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 40 fs/xfs/xfs_aops.c 		return mp->m_rtdev_targp->bt_bdev;
mp                 42 fs/xfs/xfs_aops.c 		return mp->m_ddev_targp->bt_bdev;
mp                 50 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 53 fs/xfs/xfs_aops.c 		return mp->m_rtdev_targp->bt_daxdev;
mp                 55 fs/xfs/xfs_aops.c 		return mp->m_ddev_targp->bt_daxdev;
mp                132 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = XFS_I(ioend->io_inode)->i_mount;
mp                136 fs/xfs/xfs_aops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp);
mp                190 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                194 fs/xfs/xfs_aops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp);
mp                402 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                410 fs/xfs/xfs_aops.c 			WARN_ON_ONCE(!queue_work(mp->m_unwritten_workqueue,
mp                494 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                496 fs/xfs/xfs_aops.c 	xfs_fileoff_t		offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                497 fs/xfs/xfs_aops.c 	xfs_fileoff_t		end_fsb = XFS_B_TO_FSB(mp, offset + count);
mp                504 fs/xfs/xfs_aops.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                765 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                773 fs/xfs/xfs_aops.c 		((offset - XFS_FSB_TO_B(mp, wpc->imap.br_startoff)) >> 9);
mp                829 fs/xfs/xfs_aops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                831 fs/xfs/xfs_aops.c 	xfs_fileoff_t		start_fsb = XFS_B_TO_FSBT(mp, offset);
mp                834 fs/xfs/xfs_aops.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                837 fs/xfs/xfs_aops.c 	xfs_alert(mp,
mp                843 fs/xfs/xfs_aops.c 	if (error && !XFS_FORCED_SHUTDOWN(mp))
mp                844 fs/xfs/xfs_aops.c 		xfs_alert(mp, "page discard unable to remove delalloc mapping.");
mp                119 fs/xfs/xfs_attr_inactive.c 	struct xfs_mount	*mp = bp->b_mount;
mp                122 fs/xfs/xfs_attr_inactive.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf);
mp                379 fs/xfs/xfs_attr_inactive.c 	struct xfs_mount	*mp;
mp                383 fs/xfs/xfs_attr_inactive.c 	mp = dp->i_mount;
mp                384 fs/xfs/xfs_attr_inactive.c 	ASSERT(! XFS_NOT_DQATTACHED(mp, dp));
mp                393 fs/xfs/xfs_attr_inactive.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_attrinval, 0, 0, 0, &trans);
mp                205 fs/xfs/xfs_attr_list.c 	struct xfs_mount		*mp = dp->i_mount;
mp                227 fs/xfs/xfs_attr_list.c 			XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp,
mp                286 fs/xfs/xfs_attr_list.c 	struct xfs_mount		*mp = dp->i_mount;
mp                319 fs/xfs/xfs_attr_list.c 				xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo,
mp                362 fs/xfs/xfs_attr_list.c 		xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf);
mp                389 fs/xfs/xfs_attr_list.c 	struct xfs_mount		*mp = context->dp->i_mount;
mp                394 fs/xfs/xfs_attr_list.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf);
mp                139 fs/xfs/xfs_bmap_item.c 	struct xfs_mount		*mp)
mp                146 fs/xfs/xfs_bmap_item.c 	xfs_log_item_init(mp, &buip->bui_item, XFS_LI_BUI, &xfs_bui_item_ops);
mp                451 fs/xfs/xfs_bmap_item.c 	struct xfs_mount		*mp = parent_tp->t_mountp;
mp                467 fs/xfs/xfs_bmap_item.c 	startblock_fsb = XFS_BB_TO_FSB(mp,
mp                468 fs/xfs/xfs_bmap_item.c 			   XFS_FSB_TO_DADDR(mp, bmap->me_startblock));
mp                469 fs/xfs/xfs_bmap_item.c 	inode_fsb = XFS_BB_TO_FSB(mp, XFS_FSB_TO_DADDR(mp,
mp                470 fs/xfs/xfs_bmap_item.c 			XFS_INO_TO_FSB(mp, bmap->me_owner)));
mp                483 fs/xfs/xfs_bmap_item.c 	    startblock_fsb >= mp->m_sb.sb_dblocks ||
mp                484 fs/xfs/xfs_bmap_item.c 	    bmap->me_len >= mp->m_sb.sb_agblocks ||
mp                485 fs/xfs/xfs_bmap_item.c 	    inode_fsb >= mp->m_sb.sb_dblocks ||
mp                496 fs/xfs/xfs_bmap_item.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate,
mp                497 fs/xfs/xfs_bmap_item.c 			XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK), 0, 0, &tp);
mp                509 fs/xfs/xfs_bmap_item.c 	error = xfs_iget(mp, tp, bmap->me_owner, 0, XFS_ILOCK_EXCL, &ip);
mp                 60 fs/xfs/xfs_bmap_util.c 	struct xfs_mount *mp = ip->i_mount;
mp                 62 fs/xfs/xfs_bmap_util.c 	sector_t	block = XFS_BB_TO_FSBT(mp, sector);
mp                 65 fs/xfs/xfs_bmap_util.c 		block << (mp->m_super->s_blocksize_bits - 9),
mp                 66 fs/xfs/xfs_bmap_util.c 		count_fsb << (mp->m_super->s_blocksize_bits - 9),
mp                 76 fs/xfs/xfs_bmap_util.c 	xfs_mount_t	*mp;		/* mount point structure */
mp                 83 fs/xfs/xfs_bmap_util.c 	mp = ap->ip->i_mount;
mp                 85 fs/xfs/xfs_bmap_util.c 	prod = align / mp->m_sb.sb_rextsize;
mp                 86 fs/xfs/xfs_bmap_util.c 	error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev,
mp                 92 fs/xfs/xfs_bmap_util.c 	ASSERT(ap->length % mp->m_sb.sb_rextsize == 0);
mp                104 fs/xfs/xfs_bmap_util.c 	ralen = ap->length / mp->m_sb.sb_rextsize;
mp                112 fs/xfs/xfs_bmap_util.c 	if (ralen * mp->m_sb.sb_rextsize >= MAXEXTLEN)
mp                113 fs/xfs/xfs_bmap_util.c 		ralen = MAXEXTLEN / mp->m_sb.sb_rextsize;
mp                118 fs/xfs/xfs_bmap_util.c 	xfs_ilock(mp->m_rbmip, XFS_ILOCK_EXCL|XFS_ILOCK_RTBITMAP);
mp                119 fs/xfs/xfs_bmap_util.c 	xfs_trans_ijoin(ap->tp, mp->m_rbmip, XFS_ILOCK_EXCL);
mp                120 fs/xfs/xfs_bmap_util.c 	xfs_ilock(mp->m_rsumip, XFS_ILOCK_EXCL|XFS_ILOCK_RTSUM);
mp                121 fs/xfs/xfs_bmap_util.c 	xfs_trans_ijoin(ap->tp, mp->m_rsumip, XFS_ILOCK_EXCL);
mp                130 fs/xfs/xfs_bmap_util.c 		error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx);
mp                133 fs/xfs/xfs_bmap_util.c 		ap->blkno = rtx * mp->m_sb.sb_rextsize;
mp                143 fs/xfs/xfs_bmap_util.c 	do_div(ap->blkno, mp->m_sb.sb_rextsize);
mp                153 fs/xfs/xfs_bmap_util.c 		ap->blkno *= mp->m_sb.sb_rextsize;
mp                154 fs/xfs/xfs_bmap_util.c 		ralen *= mp->m_sb.sb_rextsize;
mp                237 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp,
mp                246 fs/xfs/xfs_bmap_util.c 		frp = XFS_BMBT_REC_ADDR(mp, block, b);
mp                257 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp,
mp                274 fs/xfs/xfs_bmap_util.c 	error = xfs_btree_read_bufl(mp, tp, bno, &bp, XFS_BMAP_BTREE_REF,
mp                285 fs/xfs/xfs_bmap_util.c 			error = xfs_btree_read_bufl(mp, tp, nextbno, &nbp,
mp                297 fs/xfs/xfs_bmap_util.c 		pp = XFS_BMBT_PTR_ADDR(mp, block, 1, mp->m_bmap_dmxr[1]);
mp                299 fs/xfs/xfs_bmap_util.c 		error = xfs_bmap_count_tree(mp, tp, ifp, bno, level, nextents,
mp                304 fs/xfs/xfs_bmap_util.c 					 XFS_ERRLEVEL_LOW, mp);
mp                314 fs/xfs/xfs_bmap_util.c 			xfs_bmap_disk_count_leaves(mp, block, numrecs, count);
mp                319 fs/xfs/xfs_bmap_util.c 			error = xfs_btree_read_bufl(mp, tp, bno, &bp,
mp                343 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp;	/* file system mount structure */
mp                352 fs/xfs/xfs_bmap_util.c 	mp = ip->i_mount;
mp                376 fs/xfs/xfs_bmap_util.c 		pp = XFS_BMAP_BROOT_PTR_ADDR(mp, block, 1, ifp->if_broot_bytes);
mp                379 fs/xfs/xfs_bmap_util.c 		ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount);
mp                380 fs/xfs/xfs_bmap_util.c 		ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks);
mp                382 fs/xfs/xfs_bmap_util.c 		error = xfs_bmap_count_tree(mp, tp, ifp, bno, level,
mp                386 fs/xfs/xfs_bmap_util.c 					XFS_ERRLEVEL_LOW, mp);
mp                507 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp                556 fs/xfs/xfs_bmap_util.c 			max_len = mp->m_super->s_maxbytes;
mp                583 fs/xfs/xfs_bmap_util.c 			max_len = mp->m_super->s_maxbytes;
mp                604 fs/xfs/xfs_bmap_util.c 		max_len = XFS_FSB_TO_BB(mp, XFS_B_TO_FSB(mp, max_len));
mp                610 fs/xfs/xfs_bmap_util.c 	first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset);
mp                611 fs/xfs/xfs_bmap_util.c 	len = XFS_BB_TO_FSB(mp, bmv->bmv_length);
mp                626 fs/xfs/xfs_bmap_util.c 					XFS_B_TO_FSB(mp, XFS_ISIZE(ip)));
mp                659 fs/xfs/xfs_bmap_util.c 			xfs_fileoff_t	end = XFS_B_TO_FSB(mp, XFS_ISIZE(ip));
mp                785 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp                791 fs/xfs/xfs_bmap_util.c 	end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)XFS_ISIZE(ip));
mp                792 fs/xfs/xfs_bmap_util.c 	last_fsb = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
mp                819 fs/xfs/xfs_bmap_util.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0,
mp                822 fs/xfs/xfs_bmap_util.c 			ASSERT(XFS_FORCED_SHUTDOWN(mp));
mp                861 fs/xfs/xfs_bmap_util.c 	xfs_mount_t		*mp = ip->i_mount;
mp                878 fs/xfs/xfs_bmap_util.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                894 fs/xfs/xfs_bmap_util.c 	startoffset_fsb	= XFS_B_TO_FSBT(mp, offset);
mp                895 fs/xfs/xfs_bmap_util.c 	endoffset_fsb = XFS_B_TO_FSB(mp, offset + count);
mp                933 fs/xfs/xfs_bmap_util.c 			resrtextents /= mp->m_sb.sb_rextsize;
mp                934 fs/xfs/xfs_bmap_util.c 			resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0);
mp                938 fs/xfs/xfs_bmap_util.c 			resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks);
mp                945 fs/xfs/xfs_bmap_util.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks,
mp                955 fs/xfs/xfs_bmap_util.c 			ASSERT(error == -ENOSPC || XFS_FORCED_SHUTDOWN(mp));
mp               1009 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1011 fs/xfs/xfs_bmap_util.c 	uint			resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0);
mp               1014 fs/xfs/xfs_bmap_util.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp);
mp               1016 fs/xfs/xfs_bmap_util.c 		ASSERT(error == -ENOSPC || XFS_FORCED_SHUTDOWN(mp));
mp               1021 fs/xfs/xfs_bmap_util.c 	error = xfs_trans_reserve_quota(tp, mp, ip->i_udquot, ip->i_gdquot,
mp               1048 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1056 fs/xfs/xfs_bmap_util.c 	rounding = max_t(xfs_off_t, 1 << mp->m_sb.sb_blocklog, PAGE_SIZE);
mp               1073 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1091 fs/xfs/xfs_bmap_util.c 	startoffset_fsb = XFS_B_TO_FSB(mp, offset);
mp               1092 fs/xfs/xfs_bmap_util.c 	endoffset_fsb = XFS_B_TO_FSBT(mp, offset + len);
mp               1144 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1150 fs/xfs/xfs_bmap_util.c 	blksize = 1 << mp->m_sb.sb_blocklog;
mp               1229 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1232 fs/xfs/xfs_bmap_util.c 	xfs_fileoff_t		next_fsb = XFS_B_TO_FSB(mp, offset + len);
mp               1233 fs/xfs/xfs_bmap_util.c 	xfs_fileoff_t		shift_fsb = XFS_B_TO_FSB(mp, len);
mp               1234 fs/xfs/xfs_bmap_util.c 	uint			resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0);
mp               1251 fs/xfs/xfs_bmap_util.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0,
mp               1257 fs/xfs/xfs_bmap_util.c 		error = xfs_trans_reserve_quota(tp, mp, ip->i_udquot,
mp               1297 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1300 fs/xfs/xfs_bmap_util.c 	xfs_fileoff_t		stop_fsb = XFS_B_TO_FSB(mp, offset);
mp               1302 fs/xfs/xfs_bmap_util.c 	xfs_fileoff_t		shift_fsb = XFS_B_TO_FSB(mp, len);
mp               1328 fs/xfs/xfs_bmap_util.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, 0, 0, 0,
mp               1722 fs/xfs/xfs_bmap_util.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1771 fs/xfs/xfs_bmap_util.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
mp               1781 fs/xfs/xfs_bmap_util.c 		resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w);
mp               1782 fs/xfs/xfs_bmap_util.c 		resblks +=  XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w);
mp               1795 fs/xfs/xfs_bmap_util.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp);
mp               1823 fs/xfs/xfs_bmap_util.c 		xfs_notice(mp,
mp               1854 fs/xfs/xfs_bmap_util.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb))
mp               1873 fs/xfs/xfs_bmap_util.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp               1914 fs/xfs/xfs_bmap_util.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp                 48 fs/xfs/xfs_bmap_util.h int	xfs_bmap_extsize_align(struct xfs_mount *mp, struct xfs_bmbt_irec *gotp,
mp               1372 fs/xfs/xfs_buf.c 			struct xfs_mount *mp = bp->b_mount;
mp               1378 fs/xfs/xfs_buf.c 			if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               1379 fs/xfs/xfs_buf.c 				xfs_warn(mp,
mp               1749 fs/xfs/xfs_buf.c 	struct xfs_mount	*mp,
mp               1757 fs/xfs/xfs_buf.c 	btp->bt_mount = mp;
mp               2106 fs/xfs/xfs_buf.c 	struct xfs_mount	*mp = bp->b_mount;
mp               2109 fs/xfs/xfs_buf.c 	idx = xfs_sb_version_hascrc(&mp->m_sb);
mp               2124 fs/xfs/xfs_buf.c 	struct xfs_mount	*mp = bp->b_mount;
mp               2127 fs/xfs/xfs_buf.c 	idx = xfs_sb_version_hascrc(&mp->m_sb);
mp                729 fs/xfs/xfs_buf_item.c 	struct xfs_mount *mp)
mp                742 fs/xfs/xfs_buf_item.c 	ASSERT(bp->b_mount == mp);
mp                751 fs/xfs/xfs_buf_item.c 	xfs_log_item_init(mp, &bip->bli_item, XFS_LI_BUF, &xfs_buf_item_ops);
mp               1073 fs/xfs/xfs_buf_item.c 	struct xfs_mount	*mp;
mp               1085 fs/xfs/xfs_buf_item.c 	mp = lip ? lip->li_mountp : bip->bli_item.li_mountp;
mp               1091 fs/xfs/xfs_buf_item.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               1108 fs/xfs/xfs_buf_item.c 	cfg = xfs_error_get_cfg(mp, XFS_ERR_METADATA, bp->b_error);
mp               1143 fs/xfs/xfs_buf_item.c 	if ((mp->m_flags & XFS_MOUNT_UNMOUNTING) && mp->m_fail_unmount)
mp               1160 fs/xfs/xfs_buf_item.c 	xfs_force_shutdown(mp, SHUTDOWN_META_IO_ERROR);
mp                 31 fs/xfs/xfs_dir2_readdir.c 	struct xfs_mount	*mp,
mp                 34 fs/xfs/xfs_dir2_readdir.c 	if (!xfs_sb_version_hasftype(&mp->m_sb))
mp                 23 fs/xfs/xfs_discard.c 	struct xfs_mount	*mp,
mp                 30 fs/xfs/xfs_discard.c 	struct block_device	*bdev = mp->m_ddev_targp->bt_bdev;
mp                 37 fs/xfs/xfs_discard.c 	pag = xfs_perag_get(mp, agno);
mp                 44 fs/xfs/xfs_discard.c 	xfs_log_force(mp, XFS_LOG_SYNC);
mp                 46 fs/xfs/xfs_discard.c 	error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp);
mp                 50 fs/xfs/xfs_discard.c 	cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT);
mp                 73 fs/xfs/xfs_discard.c 		XFS_WANT_CORRUPTED_GOTO(mp, i == 1, out_del_cursor);
mp                 81 fs/xfs/xfs_discard.c 		dbno = XFS_AGB_TO_DADDR(mp, agno, fbno);
mp                 82 fs/xfs/xfs_discard.c 		dlen = XFS_FSB_TO_BB(mp, flen);
mp                 88 fs/xfs/xfs_discard.c 			trace_xfs_discard_toosmall(mp, agno, fbno, flen);
mp                 98 fs/xfs/xfs_discard.c 			trace_xfs_discard_exclude(mp, agno, fbno, flen);
mp                106 fs/xfs/xfs_discard.c 		if (xfs_extent_busy_search(mp, agno, fbno, flen)) {
mp                107 fs/xfs/xfs_discard.c 			trace_xfs_discard_busy(mp, agno, fbno, flen);
mp                111 fs/xfs/xfs_discard.c 		trace_xfs_discard_extent(mp, agno, fbno, flen);
mp                147 fs/xfs/xfs_discard.c 	struct xfs_mount		*mp,
mp                150 fs/xfs/xfs_discard.c 	struct request_queue	*q = bdev_get_queue(mp->m_ddev_targp->bt_bdev);
mp                167 fs/xfs/xfs_discard.c 	if (mp->m_flags & XFS_MOUNT_NORECOVERY)
mp                182 fs/xfs/xfs_discard.c 	if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) ||
mp                183 fs/xfs/xfs_discard.c 	    range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) ||
mp                184 fs/xfs/xfs_discard.c 	    range.len < mp->m_sb.sb_blocksize)
mp                190 fs/xfs/xfs_discard.c 	if (end > XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks) - 1)
mp                191 fs/xfs/xfs_discard.c 		end = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)- 1;
mp                193 fs/xfs/xfs_discard.c 	start_agno = xfs_daddr_to_agno(mp, start);
mp                194 fs/xfs/xfs_discard.c 	end_agno = xfs_daddr_to_agno(mp, end);
mp                197 fs/xfs/xfs_discard.c 		error = xfs_trim_extents(mp, agno, start, end, minlen,
mp                209 fs/xfs/xfs_discard.c 	range.len = XFS_FSB_TO_B(mp, blocks_trimmed);
mp                 69 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                 72 fs/xfs/xfs_dquot.c 	struct xfs_quotainfo	*q = mp->m_quotainfo;
mp                116 fs/xfs/xfs_dquot.c 	xfs_mount_t		*mp,
mp                141 fs/xfs/xfs_dquot.c 					mp->m_quotainfo->qi_btimelimit);
mp                164 fs/xfs/xfs_dquot.c 					mp->m_quotainfo->qi_itimelimit);
mp                187 fs/xfs/xfs_dquot.c 					mp->m_quotainfo->qi_rtbtimelimit);
mp                209 fs/xfs/xfs_dquot.c 	xfs_mount_t	*mp,
mp                214 fs/xfs/xfs_dquot.c 	struct xfs_quotainfo	*q = mp->m_quotainfo;
mp                234 fs/xfs/xfs_dquot.c 		if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                235 fs/xfs/xfs_dquot.c 			uuid_copy(&d->dd_uuid, &mp->m_sb.sb_meta_uuid);
mp                287 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp = tp->t_mountp;
mp                289 fs/xfs/xfs_dquot.c 	struct xfs_inode	*quotip = xfs_quota_inode(mp, dqp->dq_flags);
mp                309 fs/xfs/xfs_dquot.c 			XFS_QM_DQALLOC_SPACE_RES(mp), &map, &nmaps);
mp                320 fs/xfs/xfs_dquot.c 	dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock);
mp                323 fs/xfs/xfs_dquot.c 	bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, dqp->q_blkno,
mp                324 fs/xfs/xfs_dquot.c 			mp->m_quotainfo->qi_dqchunklen, 0);
mp                333 fs/xfs/xfs_dquot.c 	xfs_qm_init_dquot_blk(tp, mp, be32_to_cpu(dqp->q_core.d_id),
mp                375 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                381 fs/xfs/xfs_dquot.c 	struct xfs_inode	*quotip = xfs_quota_inode(mp, dqp->dq_flags);
mp                387 fs/xfs/xfs_dquot.c 	if (!xfs_this_quota_on(mp, dqp->dq_flags)) {
mp                417 fs/xfs/xfs_dquot.c 	dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock);
mp                419 fs/xfs/xfs_dquot.c 	error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno,
mp                420 fs/xfs/xfs_dquot.c 			mp->m_quotainfo->qi_dqchunklen, 0, &bp,
mp                437 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                447 fs/xfs/xfs_dquot.c 	dqp->q_mount = mp;
mp                451 fs/xfs/xfs_dquot.c 	dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk;
mp                455 fs/xfs/xfs_dquot.c 	dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) *
mp                487 fs/xfs/xfs_dquot.c 	XFS_STATS_INC(mp, xs_qm_dquot);
mp                517 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                524 fs/xfs/xfs_dquot.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_dqalloc,
mp                525 fs/xfs/xfs_dquot.c 			XFS_QM_DQALLOC_SPACE_RES(mp), 0, 0, &tp);
mp                558 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                568 fs/xfs/xfs_dquot.c 	dqp = xfs_dquot_alloc(mp, id, type);
mp                572 fs/xfs/xfs_dquot.c 	error = xfs_dquot_disk_read(mp, dqp, &bp);
mp                574 fs/xfs/xfs_dquot.c 		error = xfs_qm_dqread_alloc(mp, dqp, &bp);
mp                605 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                609 fs/xfs/xfs_dquot.c 	struct xfs_inode	*quotip = xfs_quota_inode(mp, type);
mp                622 fs/xfs/xfs_dquot.c 	if (next_id % mp->m_quotainfo->qi_dqperchunk) {
mp                628 fs/xfs/xfs_dquot.c 	start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk;
mp                641 fs/xfs/xfs_dquot.c 		*id = got.br_startoff * mp->m_quotainfo->qi_dqperchunk;
mp                657 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                669 fs/xfs/xfs_dquot.c 		XFS_STATS_INC(mp, xs_qm_dqcachemisses);
mp                686 fs/xfs/xfs_dquot.c 	XFS_STATS_INC(mp, xs_qm_dqcachehits);
mp                698 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                729 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                732 fs/xfs/xfs_dquot.c 	if (WARN_ON_ONCE(!XFS_IS_QUOTA_RUNNING(mp)))
mp                737 fs/xfs/xfs_dquot.c 		if (!XFS_IS_UQUOTA_ON(mp))
mp                741 fs/xfs/xfs_dquot.c 		if (!XFS_IS_GQUOTA_ON(mp))
mp                745 fs/xfs/xfs_dquot.c 		if (!XFS_IS_PQUOTA_ON(mp))
mp                760 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                766 fs/xfs/xfs_dquot.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp                771 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqget_checks(mp, type);
mp                776 fs/xfs/xfs_dquot.c 	dqp = xfs_qm_dqget_cache_lookup(mp, qi, tree, id);
mp                782 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp);
mp                786 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp);
mp                793 fs/xfs/xfs_dquot.c 		XFS_STATS_INC(mp, xs_qm_dquot_dups);
mp                810 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                817 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqget_checks(mp, type);
mp                821 fs/xfs/xfs_dquot.c 	return xfs_qm_dqread(mp, id, type, 0, dqpp);
mp                854 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp = ip->i_mount;
mp                855 fs/xfs/xfs_dquot.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp                861 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqget_checks(mp, type);
mp                871 fs/xfs/xfs_dquot.c 	dqp = xfs_qm_dqget_cache_lookup(mp, qi, tree, id);
mp                885 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp);
mp                894 fs/xfs/xfs_dquot.c 	if (xfs_this_quota_on(mp, type)) {
mp                910 fs/xfs/xfs_dquot.c 	error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp);
mp                917 fs/xfs/xfs_dquot.c 		XFS_STATS_INC(mp, xs_qm_dquot_dups);
mp                934 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp                943 fs/xfs/xfs_dquot.c 	for (; !error; error = xfs_dq_get_next_id(mp, type, &id)) {
mp                944 fs/xfs/xfs_dquot.c 		error = xfs_qm_dqget(mp, id, type, false, &dqp);
mp               1070 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp = dqp->q_mount;
mp               1094 fs/xfs/xfs_dquot.c 	if (XFS_FORCED_SHUTDOWN(mp)) {
mp               1107 fs/xfs/xfs_dquot.c 	error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno,
mp               1108 fs/xfs/xfs_dquot.c 				   mp->m_quotainfo->qi_dqchunklen, 0, &bp,
mp               1122 fs/xfs/xfs_dquot.c 	fa = xfs_dqblk_verify(mp, dqb, be32_to_cpu(ddqp->d_id), 0);
mp               1124 fs/xfs/xfs_dquot.c 		xfs_alert(mp, "corrupt dquot ID 0x%x in memory at %pS",
mp               1128 fs/xfs/xfs_dquot.c 		xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               1140 fs/xfs/xfs_dquot.c 	xfs_trans_ail_copy_lsn(mp->m_ail, &dqp->q_logitem.qli_flush_lsn,
mp               1152 fs/xfs/xfs_dquot.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               1171 fs/xfs/xfs_dquot.c 		xfs_log_force(mp, 0);
mp               1246 fs/xfs/xfs_dquot.c 	struct xfs_mount	*mp,
mp               1256 fs/xfs/xfs_dquot.c 		error = xfs_qm_dqget_next(mp, id, dqtype, &dq);
mp                101 fs/xfs/xfs_dquot.h static inline int xfs_this_quota_on(struct xfs_mount *mp, int type)
mp                105 fs/xfs/xfs_dquot.h 		return XFS_IS_UQUOTA_ON(mp);
mp                107 fs/xfs/xfs_dquot.h 		return XFS_IS_GQUOTA_ON(mp);
mp                109 fs/xfs/xfs_dquot.h 		return XFS_IS_PQUOTA_ON(mp);
mp                159 fs/xfs/xfs_dquot.h extern int		xfs_qm_dqget(struct xfs_mount *mp, xfs_dqid_t id,
mp                165 fs/xfs/xfs_dquot.h extern int		xfs_qm_dqget_next(struct xfs_mount *mp, xfs_dqid_t id,
mp                167 fs/xfs/xfs_dquot.h extern int		xfs_qm_dqget_uncached(struct xfs_mount *mp,
mp                186 fs/xfs/xfs_dquot.h int xfs_qm_dqiterate(struct xfs_mount *mp, uint dqtype,
mp                344 fs/xfs/xfs_dquot_item.c 	struct xfs_mount	*mp,
mp                352 fs/xfs/xfs_dquot_item.c 	xfs_log_item_init(mp, &qf->qql_item, XFS_LI_QUOTAOFF, start ?
mp                354 fs/xfs/xfs_dquot_item.c 	qf->qql_item.li_mountp = mp;
mp                 84 fs/xfs/xfs_error.c 	struct xfs_mount	*mp = to_mp(kobject);
mp                 97 fs/xfs/xfs_error.c 	ret = xfs_errortag_set(mp, xfs_attr->tag, val);
mp                109 fs/xfs/xfs_error.c 	struct xfs_mount	*mp = to_mp(kobject);
mp                113 fs/xfs/xfs_error.c 			xfs_errortag_get(mp, xfs_attr->tag));
mp                213 fs/xfs/xfs_error.c 	struct xfs_mount	*mp)
mp                215 fs/xfs/xfs_error.c 	mp->m_errortag = kmem_zalloc(sizeof(unsigned int) * XFS_ERRTAG_MAX,
mp                217 fs/xfs/xfs_error.c 	if (!mp->m_errortag)
mp                220 fs/xfs/xfs_error.c 	return xfs_sysfs_init(&mp->m_errortag_kobj, &xfs_errortag_ktype,
mp                221 fs/xfs/xfs_error.c 			       &mp->m_kobj, "errortag");
mp                226 fs/xfs/xfs_error.c 	struct xfs_mount	*mp)
mp                228 fs/xfs/xfs_error.c 	xfs_sysfs_del(&mp->m_errortag_kobj);
mp                229 fs/xfs/xfs_error.c 	kmem_free(mp->m_errortag);
mp                234 fs/xfs/xfs_error.c 	struct xfs_mount	*mp,
mp                250 fs/xfs/xfs_error.c 	if (!mp->m_errortag)
mp                254 fs/xfs/xfs_error.c 	randfactor = mp->m_errortag[error_tag];
mp                258 fs/xfs/xfs_error.c 	xfs_warn_ratelimited(mp,
mp                260 fs/xfs/xfs_error.c 			expression, file, line, mp->m_fsname);
mp                266 fs/xfs/xfs_error.c 	struct xfs_mount	*mp,
mp                272 fs/xfs/xfs_error.c 	return mp->m_errortag[error_tag];
mp                277 fs/xfs/xfs_error.c 	struct xfs_mount	*mp,
mp                284 fs/xfs/xfs_error.c 	mp->m_errortag[error_tag] = tag_value;
mp                290 fs/xfs/xfs_error.c 	struct xfs_mount	*mp,
mp                296 fs/xfs/xfs_error.c 	return xfs_errortag_set(mp, error_tag,
mp                302 fs/xfs/xfs_error.c 	struct xfs_mount	*mp)
mp                304 fs/xfs/xfs_error.c 	memset(mp->m_errortag, 0, sizeof(unsigned int) * XFS_ERRTAG_MAX);
mp                313 fs/xfs/xfs_error.c 	struct xfs_mount	*mp,
mp                319 fs/xfs/xfs_error.c 		xfs_alert_tag(mp, XFS_PTAG_ERROR_REPORT,
mp                331 fs/xfs/xfs_error.c 	struct xfs_mount	*mp,
mp                340 fs/xfs/xfs_error.c 	xfs_error_report(tag, level, mp, filename, linenum, failaddr);
mp                341 fs/xfs/xfs_error.c 	xfs_alert(mp, "Corruption detected. Unmount and run xfs_repair");
mp                357 fs/xfs/xfs_error.c 	struct xfs_mount	*mp = bp->b_mount;
mp                364 fs/xfs/xfs_error.c 	xfs_alert_tag(mp, XFS_PTAG_VERIFIER_ERROR,
mp                369 fs/xfs/xfs_error.c 	xfs_alert(mp, "Unmount and run xfs_repair");
mp                373 fs/xfs/xfs_error.c 		xfs_alert(mp, "First %d bytes of corrupted metadata buffer:",
mp                409 fs/xfs/xfs_error.c 	struct xfs_mount	*mp = ip->i_mount;
mp                415 fs/xfs/xfs_error.c 	xfs_alert(mp, "Metadata %s detected at %pS, inode 0x%llx %s",
mp                419 fs/xfs/xfs_error.c 	xfs_alert(mp, "Unmount and run xfs_repair");
mp                423 fs/xfs/xfs_error.c 		xfs_alert(mp, "First %d bytes of corrupted metadata buffer:",
mp                 11 fs/xfs/xfs_error.h extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
mp                 15 fs/xfs/xfs_error.h 			struct xfs_mount *mp, void *buf, size_t bufsize,
mp                 27 fs/xfs/xfs_error.h #define	XFS_ERROR_REPORT(e, lvl, mp)	\
mp                 28 fs/xfs/xfs_error.h 	xfs_error_report(e, lvl, mp, __FILE__, __LINE__, __return_address)
mp                 29 fs/xfs/xfs_error.h #define	XFS_CORRUPTION_ERROR(e, lvl, mp, buf, bufsize)	\
mp                 30 fs/xfs/xfs_error.h 	xfs_corruption_error(e, lvl, mp, buf, bufsize, \
mp                 43 fs/xfs/xfs_error.h #define	XFS_WANT_CORRUPTED_GOTO(mp, x, l)	\
mp                 49 fs/xfs/xfs_error.h 					 XFS_ERRLEVEL_LOW, mp); \
mp                 55 fs/xfs/xfs_error.h #define	XFS_WANT_CORRUPTED_RETURN(mp, x)	\
mp                 61 fs/xfs/xfs_error.h 					 XFS_ERRLEVEL_LOW, mp); \
mp                 67 fs/xfs/xfs_error.h extern int xfs_errortag_init(struct xfs_mount *mp);
mp                 68 fs/xfs/xfs_error.h extern void xfs_errortag_del(struct xfs_mount *mp);
mp                 69 fs/xfs/xfs_error.h extern bool xfs_errortag_test(struct xfs_mount *mp, const char *expression,
mp                 71 fs/xfs/xfs_error.h #define XFS_TEST_ERROR(expr, mp, tag)		\
mp                 72 fs/xfs/xfs_error.h 	((expr) || xfs_errortag_test((mp), #expr, __FILE__, __LINE__, (tag)))
mp                 74 fs/xfs/xfs_error.h extern int xfs_errortag_get(struct xfs_mount *mp, unsigned int error_tag);
mp                 75 fs/xfs/xfs_error.h extern int xfs_errortag_set(struct xfs_mount *mp, unsigned int error_tag,
mp                 77 fs/xfs/xfs_error.h extern int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag);
mp                 78 fs/xfs/xfs_error.h extern int xfs_errortag_clearall(struct xfs_mount *mp);
mp                 80 fs/xfs/xfs_error.h #define xfs_errortag_init(mp)			(0)
mp                 81 fs/xfs/xfs_error.h #define xfs_errortag_del(mp)
mp                 82 fs/xfs/xfs_error.h #define XFS_TEST_ERROR(expr, mp, tag)		(expr)
mp                 83 fs/xfs/xfs_error.h #define xfs_errortag_set(mp, tag, val)		(ENOSYS)
mp                 84 fs/xfs/xfs_error.h #define xfs_errortag_add(mp, tag)		(ENOSYS)
mp                 85 fs/xfs/xfs_error.h #define xfs_errortag_clearall(mp)		(ENOSYS)
mp                112 fs/xfs/xfs_export.c  	xfs_mount_t		*mp = XFS_M(sb);
mp                127 fs/xfs/xfs_export.c 	error = xfs_iget(mp, NULL, ino, XFS_IGET_UNTRUSTED, 0, &ip);
mp                225 fs/xfs/xfs_export.c 	struct xfs_mount	*mp = ip->i_mount;
mp                235 fs/xfs/xfs_export.c 	return xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
mp                 83 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp,
mp                 93 fs/xfs/xfs_extent_busy.c 	pag = xfs_perag_get(mp, agno);
mp                135 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp,
mp                266 fs/xfs/xfs_extent_busy.c 	trace_xfs_extent_busy_reuse(mp, pag->pag_agno, fbno, flen);
mp                271 fs/xfs/xfs_extent_busy.c 	xfs_log_force(mp, XFS_LOG_SYNC);
mp                272 fs/xfs/xfs_extent_busy.c 	trace_xfs_extent_busy_force(mp, pag->pag_agno, fbno, flen);
mp                283 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp,
mp                294 fs/xfs/xfs_extent_busy.c 	pag = xfs_perag_get(mp, agno);
mp                312 fs/xfs/xfs_extent_busy.c 		if (!xfs_extent_busy_update_extent(mp, pag, busyp, fbno, flen,
mp                372 fs/xfs/xfs_extent_busy.c 			if (!xfs_extent_busy_update_extent(args->mp, args->pag,
mp                504 fs/xfs/xfs_extent_busy.c 		trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len,
mp                524 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp,
mp                529 fs/xfs/xfs_extent_busy.c 		trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno,
mp                560 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp,
mp                574 fs/xfs/xfs_extent_busy.c 			pag = xfs_perag_get(mp, agno);
mp                583 fs/xfs/xfs_extent_busy.c 			xfs_extent_busy_clear_one(mp, pag, busyp);
mp                597 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp,
mp                604 fs/xfs/xfs_extent_busy.c 	error = xfs_log_force(mp, XFS_LOG_SYNC);
mp                620 fs/xfs/xfs_extent_busy.c 	struct xfs_mount	*mp)
mp                625 fs/xfs/xfs_extent_busy.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                626 fs/xfs/xfs_extent_busy.c 		struct xfs_perag *pag = xfs_perag_get(mp, agno);
mp                 38 fs/xfs/xfs_extent_busy.h xfs_extent_busy_clear(struct xfs_mount *mp, struct list_head *list,
mp                 42 fs/xfs/xfs_extent_busy.h xfs_extent_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                 46 fs/xfs/xfs_extent_busy.h xfs_extent_busy_reuse(struct xfs_mount *mp, xfs_agnumber_t agno,
mp                 54 fs/xfs/xfs_extent_busy.h xfs_extent_busy_flush(struct xfs_mount *mp, struct xfs_perag *pag,
mp                 58 fs/xfs/xfs_extent_busy.h xfs_extent_busy_wait_all(struct xfs_mount *mp);
mp                155 fs/xfs/xfs_extfree_item.c 	struct xfs_mount	*mp,
mp                171 fs/xfs/xfs_extfree_item.c 	xfs_log_item_init(mp, &efip->efi_item, XFS_LI_EFI, &xfs_efi_item_ops);
mp                365 fs/xfs/xfs_extfree_item.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                368 fs/xfs/xfs_extfree_item.c 	xfs_agnumber_t			agno = XFS_FSB_TO_AGNO(mp, start_block);
mp                369 fs/xfs/xfs_extfree_item.c 	xfs_agblock_t			agbno = XFS_FSB_TO_AGBNO(mp,
mp                404 fs/xfs/xfs_extfree_item.c 	struct xfs_mount		*mp = priv;
mp                410 fs/xfs/xfs_extfree_item.c 	return  XFS_FSB_TO_AGNO(mp, ra->xefi_startblock) -
mp                411 fs/xfs/xfs_extfree_item.c 		XFS_FSB_TO_AGNO(mp, rb->xefi_startblock);
mp                535 fs/xfs/xfs_extfree_item.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                547 fs/xfs/xfs_extfree_item.c 	agno = XFS_FSB_TO_AGNO(mp, free->xefi_startblock);
mp                548 fs/xfs/xfs_extfree_item.c 	agbno = XFS_FSB_TO_AGBNO(mp, free->xefi_startblock);
mp                550 fs/xfs/xfs_extfree_item.c 	trace_xfs_agfl_free_deferred(mp, agno, 0, agbno, free->xefi_blockcount);
mp                552 fs/xfs/xfs_extfree_item.c 	error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp);
mp                596 fs/xfs/xfs_extfree_item.c 	struct xfs_mount	*mp,
mp                615 fs/xfs/xfs_extfree_item.c 		startblock_fsb = XFS_BB_TO_FSB(mp,
mp                616 fs/xfs/xfs_extfree_item.c 				   XFS_FSB_TO_DADDR(mp, extp->ext_start));
mp                619 fs/xfs/xfs_extfree_item.c 		    startblock_fsb >= mp->m_sb.sb_dblocks ||
mp                620 fs/xfs/xfs_extfree_item.c 		    extp->ext_len >= mp->m_sb.sb_agblocks) {
mp                631 fs/xfs/xfs_extfree_item.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp);
mp                 87 fs/xfs/xfs_extfree_item.h int			xfs_efi_recover(struct xfs_mount *mp,
mp                 83 fs/xfs/xfs_file.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 95 fs/xfs/xfs_file.c 	return xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
mp                107 fs/xfs/xfs_file.c 	struct xfs_mount	*mp = ip->i_mount;
mp                118 fs/xfs/xfs_file.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                130 fs/xfs/xfs_file.c 		xfs_blkdev_issue_flush(mp->m_rtdev_targp);
mp                131 fs/xfs/xfs_file.c 	else if (mp->m_logdev_targp != mp->m_ddev_targp)
mp                132 fs/xfs/xfs_file.c 		xfs_blkdev_issue_flush(mp->m_ddev_targp);
mp                155 fs/xfs/xfs_file.c 		error = xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed);
mp                168 fs/xfs/xfs_file.c 	    mp->m_logdev_targp == mp->m_ddev_targp)
mp                169 fs/xfs/xfs_file.c 		xfs_blkdev_issue_flush(mp->m_ddev_targp);
mp                253 fs/xfs/xfs_file.c 	struct xfs_mount	*mp = XFS_I(inode)->i_mount;
mp                256 fs/xfs/xfs_file.c 	XFS_STATS_INC(mp, xs_read_calls);
mp                258 fs/xfs/xfs_file.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                269 fs/xfs/xfs_file.c 		XFS_STATS_ADD(mp, xs_read_bytes, ret);
mp                484 fs/xfs/xfs_file.c 	struct xfs_mount	*mp = ip->i_mount;
mp                490 fs/xfs/xfs_file.c 					mp->m_rtdev_targp : mp->m_ddev_targp;
mp                503 fs/xfs/xfs_file.c 	if ((iocb->ki_pos & mp->m_blockmask) ||
mp                504 fs/xfs/xfs_file.c 	    ((iocb->ki_pos + count) & mp->m_blockmask)) {
mp                981 fs/xfs/xfs_file.c 	struct xfs_mount	*mp = src->i_mount;
mp                989 fs/xfs/xfs_file.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp                992 fs/xfs/xfs_file.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                 71 fs/xfs/xfs_filestream.c 	xfs_mount_t	*mp,
mp                 77 fs/xfs/xfs_filestream.c 	pag = xfs_perag_get(mp, agno);
mp                 85 fs/xfs/xfs_filestream.c 	xfs_mount_t	*mp,
mp                 91 fs/xfs/xfs_filestream.c 	pag = xfs_perag_get(mp, agno);
mp                 99 fs/xfs/xfs_filestream.c 	xfs_mount_t	*mp,
mp                104 fs/xfs/xfs_filestream.c 	pag = xfs_perag_get(mp, agno);
mp                114 fs/xfs/xfs_filestream.c 	struct xfs_mount	*mp = data;
mp                118 fs/xfs/xfs_filestream.c 	xfs_filestream_put_ag(mp, item->ag);
mp                119 fs/xfs/xfs_filestream.c 	trace_xfs_filestream_free(mp, mru->key, item->ag);
mp                136 fs/xfs/xfs_filestream.c 	struct xfs_mount	*mp = ip->i_mount;
mp                146 fs/xfs/xfs_filestream.c 	minfree = mp->m_sb.sb_agblocks / 50;
mp                155 fs/xfs/xfs_filestream.c 		trace_xfs_filestream_scan(mp, ip->i_ino, ag);
mp                157 fs/xfs/xfs_filestream.c 		pag = xfs_perag_get(mp, ag);
mp                160 fs/xfs/xfs_filestream.c 			err = xfs_alloc_pagf_init(mp, NULL, ag, trylock);
mp                183 fs/xfs/xfs_filestream.c 		if (xfs_filestream_get_ag(mp, ag) > 1) {
mp                184 fs/xfs/xfs_filestream.c 			xfs_filestream_put_ag(mp, ag);
mp                189 fs/xfs/xfs_filestream.c 				xfs_alloc_min_freelist(mp, pag),
mp                204 fs/xfs/xfs_filestream.c 		xfs_filestream_put_ag(mp, ag);
mp                208 fs/xfs/xfs_filestream.c 		if (++ag >= mp->m_sb.sb_agcount)
mp                232 fs/xfs/xfs_filestream.c 			xfs_filestream_get_ag(mp, max_ag);
mp                256 fs/xfs/xfs_filestream.c 	err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru);
mp                268 fs/xfs/xfs_filestream.c 	xfs_filestream_put_ag(mp, *agp);
mp                306 fs/xfs/xfs_filestream.c 	struct xfs_mount	*mp = ip->i_mount;
mp                317 fs/xfs/xfs_filestream.c 	mru = xfs_mru_cache_lookup(mp->m_filestream, pip->i_ino);
mp                320 fs/xfs/xfs_filestream.c 		xfs_mru_cache_done(mp->m_filestream);
mp                322 fs/xfs/xfs_filestream.c 		trace_xfs_filestream_lookup(mp, ip->i_ino, ag);
mp                330 fs/xfs/xfs_filestream.c 	if (mp->m_flags & XFS_MOUNT_32BITINODES) {
mp                332 fs/xfs/xfs_filestream.c 		startag = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount;
mp                333 fs/xfs/xfs_filestream.c 		mp->m_agfrotor = (mp->m_agfrotor + 1) %
mp                334 fs/xfs/xfs_filestream.c 		                 (mp->m_sb.sb_agcount * rotorstep);
mp                336 fs/xfs/xfs_filestream.c 		startag = XFS_INO_TO_AGNO(mp, pip->i_ino);
mp                357 fs/xfs/xfs_filestream.c 	struct xfs_mount	*mp = ip->i_mount;
mp                370 fs/xfs/xfs_filestream.c 	mru = xfs_mru_cache_remove(mp->m_filestream, pip->i_ino);
mp                374 fs/xfs/xfs_filestream.c 		startag = (item->ag + 1) % mp->m_sb.sb_agcount;
mp                388 fs/xfs/xfs_filestream.c 		xfs_fstrm_free_func(mp, mru);
mp                406 fs/xfs/xfs_filestream.c 	xfs_mount_t	*mp)
mp                415 fs/xfs/xfs_filestream.c 	return xfs_mru_cache_create(&mp->m_filestream, mp,
mp                421 fs/xfs/xfs_filestream.c 	xfs_mount_t	*mp)
mp                423 fs/xfs/xfs_filestream.c 	xfs_mru_cache_destroy(mp->m_filestream);
mp                 13 fs/xfs/xfs_filestream.h int xfs_filestream_mount(struct xfs_mount *mp);
mp                 14 fs/xfs/xfs_filestream.h void xfs_filestream_unmount(struct xfs_mount *mp);
mp                 18 fs/xfs/xfs_filestream.h int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
mp                197 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                204 fs/xfs/xfs_fsmap.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp                212 fs/xfs/xfs_fsmap.c 	cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp,
mp                238 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                250 fs/xfs/xfs_fsmap.c 		rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount);
mp                266 fs/xfs/xfs_fsmap.c 		rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount);
mp                300 fs/xfs/xfs_fsmap.c 	trace_xfs_fsmap_mapping(mp, info->dev, info->agno, rec);
mp                307 fs/xfs/xfs_fsmap.c 	fmr.fmr_offset = XFS_FSB_TO_BB(mp, rec->rm_offset);
mp                308 fs/xfs/xfs_fsmap.c 	fmr.fmr_length = XFS_FSB_TO_BB(mp, rec->rm_blockcount);
mp                328 fs/xfs/xfs_fsmap.c 	rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount);
mp                341 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                346 fs/xfs/xfs_fsmap.c 	fsb = XFS_AGB_TO_FSB(mp, cur->bc_private.a.agno, rec->rm_startblock);
mp                347 fs/xfs/xfs_fsmap.c 	rec_daddr = XFS_FSB_TO_DADDR(mp, fsb);
mp                359 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = cur->bc_mp;
mp                364 fs/xfs/xfs_fsmap.c 	rec_daddr = XFS_AGB_TO_DADDR(mp, cur->bc_private.a.agno,
mp                398 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                403 fs/xfs/xfs_fsmap.c 	info->low.rm_startblock = XFS_BB_TO_FSBT(mp, keys[0].fmr_physical);
mp                404 fs/xfs/xfs_fsmap.c 	info->low.rm_offset = XFS_BB_TO_FSBT(mp, keys[0].fmr_offset);
mp                421 fs/xfs/xfs_fsmap.c 	trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low);
mp                422 fs/xfs/xfs_fsmap.c 	trace_xfs_fsmap_high_key(mp, info->dev, info->agno, &info->high);
mp                429 fs/xfs/xfs_fsmap.c 	rmap.rm_blockcount = mp->m_sb.sb_logblocks;
mp                445 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                450 fs/xfs/xfs_fsmap.c 	irec.rm_startblock = rec->ar_startext * mp->m_sb.sb_rextsize;
mp                451 fs/xfs/xfs_fsmap.c 	rec_daddr = XFS_FSB_TO_BB(mp, irec.rm_startblock);
mp                452 fs/xfs/xfs_fsmap.c 	irec.rm_blockcount = rec->ar_extcount * mp->m_sb.sb_rextsize;
mp                469 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                475 fs/xfs/xfs_fsmap.c 	eofs = XFS_FSB_TO_BB(mp, mp->m_sb.sb_rblocks);
mp                480 fs/xfs/xfs_fsmap.c 	start_fsb = XFS_BB_TO_FSBT(mp, keys[0].fmr_physical);
mp                481 fs/xfs/xfs_fsmap.c 	end_fsb = XFS_BB_TO_FSB(mp, keys[1].fmr_physical);
mp                488 fs/xfs/xfs_fsmap.c 	info->low.rm_offset = XFS_BB_TO_FSBT(mp, keys[0].fmr_offset);
mp                496 fs/xfs/xfs_fsmap.c 	info->high.rm_offset = XFS_BB_TO_FSBT(mp, keys[1].fmr_offset);
mp                500 fs/xfs/xfs_fsmap.c 	trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low);
mp                501 fs/xfs/xfs_fsmap.c 	trace_xfs_fsmap_high_key(mp, info->dev, info->agno, &info->high);
mp                563 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp = tp->t_mountp;
mp                572 fs/xfs/xfs_fsmap.c 	eofs = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks);
mp                577 fs/xfs/xfs_fsmap.c 	start_fsb = XFS_DADDR_TO_FSB(mp, keys[0].fmr_physical);
mp                578 fs/xfs/xfs_fsmap.c 	end_fsb = XFS_DADDR_TO_FSB(mp, keys[1].fmr_physical);
mp                585 fs/xfs/xfs_fsmap.c 	info->low.rm_startblock = XFS_FSB_TO_AGBNO(mp, start_fsb);
mp                586 fs/xfs/xfs_fsmap.c 	info->low.rm_offset = XFS_BB_TO_FSBT(mp, keys[0].fmr_offset);
mp                599 fs/xfs/xfs_fsmap.c 	start_ag = XFS_FSB_TO_AGNO(mp, start_fsb);
mp                600 fs/xfs/xfs_fsmap.c 	end_ag = XFS_FSB_TO_AGNO(mp, end_fsb);
mp                609 fs/xfs/xfs_fsmap.c 			info->high.rm_startblock = XFS_FSB_TO_AGBNO(mp,
mp                611 fs/xfs/xfs_fsmap.c 			info->high.rm_offset = XFS_BB_TO_FSBT(mp,
mp                626 fs/xfs/xfs_fsmap.c 		error = xfs_alloc_read_agf(mp, tp, info->agno, 0,
mp                631 fs/xfs/xfs_fsmap.c 		trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low);
mp                632 fs/xfs/xfs_fsmap.c 		trace_xfs_fsmap_high_key(mp, info->dev, info->agno,
mp                740 fs/xfs/xfs_fsmap.c 	struct xfs_mount	*mp,
mp                744 fs/xfs/xfs_fsmap.c 	    fm->fmr_device == new_encode_dev(mp->m_ddev_targp->bt_dev))
mp                746 fs/xfs/xfs_fsmap.c 	if (mp->m_logdev_targp &&
mp                747 fs/xfs/xfs_fsmap.c 	    fm->fmr_device == new_encode_dev(mp->m_logdev_targp->bt_dev))
mp                749 fs/xfs/xfs_fsmap.c 	if (mp->m_rtdev_targp &&
mp                750 fs/xfs/xfs_fsmap.c 	    fm->fmr_device == new_encode_dev(mp->m_rtdev_targp->bt_dev))
mp                816 fs/xfs/xfs_fsmap.c 	struct xfs_mount		*mp,
mp                831 fs/xfs/xfs_fsmap.c 	if (!xfs_getfsmap_is_valid_device(mp, &head->fmh_keys[0]) ||
mp                832 fs/xfs/xfs_fsmap.c 	    !xfs_getfsmap_is_valid_device(mp, &head->fmh_keys[1]))
mp                836 fs/xfs/xfs_fsmap.c 		   xfs_sb_version_hasrmapbt(&mp->m_sb);
mp                841 fs/xfs/xfs_fsmap.c 	handlers[0].dev = new_encode_dev(mp->m_ddev_targp->bt_dev);
mp                846 fs/xfs/xfs_fsmap.c 	if (mp->m_logdev_targp != mp->m_ddev_targp) {
mp                847 fs/xfs/xfs_fsmap.c 		handlers[1].dev = new_encode_dev(mp->m_logdev_targp->bt_dev);
mp                851 fs/xfs/xfs_fsmap.c 	if (mp->m_rtdev_targp) {
mp                852 fs/xfs/xfs_fsmap.c 		handlers[2].dev = new_encode_dev(mp->m_rtdev_targp->bt_dev);
mp                920 fs/xfs/xfs_fsmap.c 		error = xfs_trans_alloc_empty(mp, &tp);
mp                 36 fs/xfs/xfs_fsmap.h int xfs_getfsmap(struct xfs_mount *mp, struct xfs_fsmap_head *head,
mp                 28 fs/xfs/xfs_fsops.c 	xfs_mount_t		*mp,		/* mount point for filesystem */
mp                 42 fs/xfs/xfs_fsops.c 	if (nb < mp->m_sb.sb_dblocks)
mp                 44 fs/xfs/xfs_fsops.c 	if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb)))
mp                 46 fs/xfs/xfs_fsops.c 	error = xfs_buf_read_uncached(mp->m_ddev_targp,
mp                 47 fs/xfs/xfs_fsops.c 				XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1),
mp                 48 fs/xfs/xfs_fsops.c 				XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL);
mp                 54 fs/xfs/xfs_fsops.c 	nb_mod = do_div(new, mp->m_sb.sb_agblocks);
mp                 58 fs/xfs/xfs_fsops.c 		nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks;
mp                 59 fs/xfs/xfs_fsops.c 		if (nb < mp->m_sb.sb_dblocks)
mp                 62 fs/xfs/xfs_fsops.c 	new = nb - mp->m_sb.sb_dblocks;
mp                 63 fs/xfs/xfs_fsops.c 	oagcount = mp->m_sb.sb_agcount;
mp                 67 fs/xfs/xfs_fsops.c 		error = xfs_initialize_perag(mp, nagcount, &nagimax);
mp                 72 fs/xfs/xfs_fsops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growdata,
mp                 73 fs/xfs/xfs_fsops.c 			XFS_GROWFS_SPACE_RES(mp), 0, XFS_TRANS_RESERVE, &tp);
mp                 96 fs/xfs/xfs_fsops.c 				(id.agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks);
mp                 98 fs/xfs/xfs_fsops.c 			id.agsize = mp->m_sb.sb_agblocks;
mp                100 fs/xfs/xfs_fsops.c 		error = xfs_ag_init_headers(mp, &id);
mp                114 fs/xfs/xfs_fsops.c 		error = xfs_ag_extend_space(mp, tp, &id, new);
mp                126 fs/xfs/xfs_fsops.c 	if (nb > mp->m_sb.sb_dblocks)
mp                128 fs/xfs/xfs_fsops.c 				 nb - mp->m_sb.sb_dblocks);
mp                138 fs/xfs/xfs_fsops.c 		mp->m_maxagi = nagimax;
mp                139 fs/xfs/xfs_fsops.c 	xfs_set_low_space_thresholds(mp);
mp                140 fs/xfs/xfs_fsops.c 	mp->m_alloc_set_aside = xfs_alloc_set_aside(mp);
mp                149 fs/xfs/xfs_fsops.c 		pag = xfs_perag_get(mp, id.agno);
mp                161 fs/xfs/xfs_fsops.c 	error = xfs_fs_reserve_ag_blocks(mp);
mp                173 fs/xfs/xfs_fsops.c 	xfs_mount_t		*mp,	/* mount point for filesystem */
mp                179 fs/xfs/xfs_fsops.c 	if (nb < XFS_MIN_LOG_BLOCKS || nb < XFS_B_TO_FSB(mp, XFS_MIN_LOG_BYTES))
mp                181 fs/xfs/xfs_fsops.c 	if (nb == mp->m_sb.sb_logblocks &&
mp                182 fs/xfs/xfs_fsops.c 	    in->isint == (mp->m_sb.sb_logstart != 0))
mp                195 fs/xfs/xfs_fsops.c 	struct xfs_mount	*mp,
mp                205 fs/xfs/xfs_fsops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growdata,
mp                206 fs/xfs/xfs_fsops.c 			XFS_GROWFS_SPACE_RES(mp), 0, XFS_TRANS_RESERVE, &tp);
mp                210 fs/xfs/xfs_fsops.c 	dpct = imaxpct - mp->m_sb.sb_imax_pct;
mp                223 fs/xfs/xfs_fsops.c 	struct xfs_mount	*mp,
mp                230 fs/xfs/xfs_fsops.c 	if (!mutex_trylock(&mp->m_growlock))
mp                234 fs/xfs/xfs_fsops.c 	if (in->imaxpct != mp->m_sb.sb_imax_pct) {
mp                235 fs/xfs/xfs_fsops.c 		error = xfs_growfs_imaxpct(mp, in->imaxpct);
mp                240 fs/xfs/xfs_fsops.c 	if (in->newblocks != mp->m_sb.sb_dblocks) {
mp                241 fs/xfs/xfs_fsops.c 		error = xfs_growfs_data_private(mp, in);
mp                247 fs/xfs/xfs_fsops.c 	if (mp->m_sb.sb_imax_pct) {
mp                248 fs/xfs/xfs_fsops.c 		uint64_t icount = mp->m_sb.sb_dblocks * mp->m_sb.sb_imax_pct;
mp                250 fs/xfs/xfs_fsops.c 		M_IGEO(mp)->maxicount = XFS_FSB_TO_INO(mp, icount);
mp                252 fs/xfs/xfs_fsops.c 		M_IGEO(mp)->maxicount = 0;
mp                255 fs/xfs/xfs_fsops.c 	error = xfs_update_secondary_sbs(mp);
mp                263 fs/xfs/xfs_fsops.c 	mp->m_generation++;
mp                264 fs/xfs/xfs_fsops.c 	mutex_unlock(&mp->m_growlock);
mp                270 fs/xfs/xfs_fsops.c 	xfs_mount_t		*mp,
mp                277 fs/xfs/xfs_fsops.c 	if (!mutex_trylock(&mp->m_growlock))
mp                279 fs/xfs/xfs_fsops.c 	error = xfs_growfs_log_private(mp, in);
mp                280 fs/xfs/xfs_fsops.c 	mutex_unlock(&mp->m_growlock);
mp                290 fs/xfs/xfs_fsops.c 	xfs_mount_t		*mp,
mp                293 fs/xfs/xfs_fsops.c 	cnt->allocino = percpu_counter_read_positive(&mp->m_icount);
mp                294 fs/xfs/xfs_fsops.c 	cnt->freeino = percpu_counter_read_positive(&mp->m_ifree);
mp                295 fs/xfs/xfs_fsops.c 	cnt->freedata = percpu_counter_read_positive(&mp->m_fdblocks) -
mp                296 fs/xfs/xfs_fsops.c 						mp->m_alloc_set_aside;
mp                298 fs/xfs/xfs_fsops.c 	spin_lock(&mp->m_sb_lock);
mp                299 fs/xfs/xfs_fsops.c 	cnt->freertx = mp->m_sb.sb_frextents;
mp                300 fs/xfs/xfs_fsops.c 	spin_unlock(&mp->m_sb_lock);
mp                320 fs/xfs/xfs_fsops.c 	xfs_mount_t             *mp,
mp                334 fs/xfs/xfs_fsops.c 		outval->resblks = mp->m_resblks;
mp                335 fs/xfs/xfs_fsops.c 		outval->resblks_avail = mp->m_resblks_avail;
mp                351 fs/xfs/xfs_fsops.c 	spin_lock(&mp->m_sb_lock);
mp                359 fs/xfs/xfs_fsops.c 	if (mp->m_resblks > request) {
mp                360 fs/xfs/xfs_fsops.c 		lcounter = mp->m_resblks_avail - request;
mp                363 fs/xfs/xfs_fsops.c 			mp->m_resblks_avail -= lcounter;
mp                365 fs/xfs/xfs_fsops.c 		mp->m_resblks = request;
mp                367 fs/xfs/xfs_fsops.c 			spin_unlock(&mp->m_sb_lock);
mp                368 fs/xfs/xfs_fsops.c 			error = xfs_mod_fdblocks(mp, fdblks_delta, 0);
mp                369 fs/xfs/xfs_fsops.c 			spin_lock(&mp->m_sb_lock);
mp                382 fs/xfs/xfs_fsops.c 		free = percpu_counter_sum(&mp->m_fdblocks) -
mp                383 fs/xfs/xfs_fsops.c 						mp->m_alloc_set_aside;
mp                387 fs/xfs/xfs_fsops.c 		delta = request - mp->m_resblks;
mp                405 fs/xfs/xfs_fsops.c 		spin_unlock(&mp->m_sb_lock);
mp                406 fs/xfs/xfs_fsops.c 		error = xfs_mod_fdblocks(mp, -fdblks_delta, 0);
mp                407 fs/xfs/xfs_fsops.c 		spin_lock(&mp->m_sb_lock);
mp                415 fs/xfs/xfs_fsops.c 		mp->m_resblks += fdblks_delta;
mp                416 fs/xfs/xfs_fsops.c 		mp->m_resblks_avail += fdblks_delta;
mp                421 fs/xfs/xfs_fsops.c 		outval->resblks = mp->m_resblks;
mp                422 fs/xfs/xfs_fsops.c 		outval->resblks_avail = mp->m_resblks_avail;
mp                425 fs/xfs/xfs_fsops.c 	spin_unlock(&mp->m_sb_lock);
mp                431 fs/xfs/xfs_fsops.c 	xfs_mount_t	*mp,
mp                436 fs/xfs/xfs_fsops.c 		struct super_block *sb = freeze_bdev(mp->m_super->s_bdev);
mp                439 fs/xfs/xfs_fsops.c 			xfs_force_shutdown(mp, SHUTDOWN_FORCE_UMOUNT);
mp                446 fs/xfs/xfs_fsops.c 		xfs_force_shutdown(mp, SHUTDOWN_FORCE_UMOUNT);
mp                449 fs/xfs/xfs_fsops.c 		xfs_force_shutdown(mp,
mp                467 fs/xfs/xfs_fsops.c 	struct xfs_mount *mp,
mp                477 fs/xfs/xfs_fsops.c 	if (XFS_FORCED_SHUTDOWN(mp) && !logerror)
mp                486 fs/xfs/xfs_fsops.c 	if (xfs_log_force_umount(mp, logerror))
mp                490 fs/xfs/xfs_fsops.c 		xfs_alert(mp,
mp                495 fs/xfs/xfs_fsops.c 	xfs_notice(mp,
mp                500 fs/xfs/xfs_fsops.c 		xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_CORRUPT,
mp                505 fs/xfs/xfs_fsops.c 		xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_LOGERROR,
mp                508 fs/xfs/xfs_fsops.c 		xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_IOERROR,
mp                511 fs/xfs/xfs_fsops.c 		xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_IOERROR,
mp                515 fs/xfs/xfs_fsops.c 	xfs_alert(mp,
mp                524 fs/xfs/xfs_fsops.c 	struct xfs_mount	*mp)
mp                531 fs/xfs/xfs_fsops.c 	mp->m_finobt_nores = false;
mp                532 fs/xfs/xfs_fsops.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                533 fs/xfs/xfs_fsops.c 		pag = xfs_perag_get(mp, agno);
mp                541 fs/xfs/xfs_fsops.c 		xfs_warn(mp,
mp                543 fs/xfs/xfs_fsops.c 		xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp                554 fs/xfs/xfs_fsops.c 	struct xfs_mount	*mp)
mp                561 fs/xfs/xfs_fsops.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                562 fs/xfs/xfs_fsops.c 		pag = xfs_perag_get(mp, agno);
mp                570 fs/xfs/xfs_fsops.c 		xfs_warn(mp,
mp                  9 fs/xfs/xfs_fsops.h extern int xfs_growfs_data(xfs_mount_t *mp, xfs_growfs_data_t *in);
mp                 10 fs/xfs/xfs_fsops.h extern int xfs_growfs_log(xfs_mount_t *mp, xfs_growfs_log_t *in);
mp                 11 fs/xfs/xfs_fsops.h extern void xfs_fs_counts(xfs_mount_t *mp, xfs_fsop_counts_t *cnt);
mp                 12 fs/xfs/xfs_fsops.h extern int xfs_reserve_blocks(xfs_mount_t *mp, uint64_t *inval,
mp                 14 fs/xfs/xfs_fsops.h extern int xfs_fs_goingdown(xfs_mount_t *mp, uint32_t inflags);
mp                 16 fs/xfs/xfs_fsops.h extern int xfs_fs_reserve_ag_blocks(struct xfs_mount *mp);
mp                 17 fs/xfs/xfs_fsops.h extern int xfs_fs_unreserve_ag_blocks(struct xfs_mount *mp);
mp                 25 fs/xfs/xfs_health.c 	struct xfs_mount	*mp)
mp                 33 fs/xfs/xfs_health.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                 37 fs/xfs/xfs_health.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                 38 fs/xfs/xfs_health.c 		pag = xfs_perag_get(mp, agno);
mp                 41 fs/xfs/xfs_health.c 			trace_xfs_ag_unfixed_corruption(mp, agno, sick);
mp                 48 fs/xfs/xfs_health.c 	xfs_rt_measure_sickness(mp, &sick, &checked);
mp                 50 fs/xfs/xfs_health.c 		trace_xfs_rt_unfixed_corruption(mp, sick);
mp                 58 fs/xfs/xfs_health.c 	xfs_fs_measure_sickness(mp, &sick, &checked);
mp                 60 fs/xfs/xfs_health.c 		trace_xfs_fs_unfixed_corruption(mp, sick);
mp                 65 fs/xfs/xfs_health.c 		xfs_warn(mp,
mp                 88 fs/xfs/xfs_health.c 			xfs_fs_mark_healthy(mp, XFS_SICK_FS_COUNTERS);
mp                 95 fs/xfs/xfs_health.c 	struct xfs_mount	*mp,
mp                 99 fs/xfs/xfs_health.c 	trace_xfs_fs_mark_sick(mp, mask);
mp                101 fs/xfs/xfs_health.c 	spin_lock(&mp->m_sb_lock);
mp                102 fs/xfs/xfs_health.c 	mp->m_fs_sick |= mask;
mp                103 fs/xfs/xfs_health.c 	mp->m_fs_checked |= mask;
mp                104 fs/xfs/xfs_health.c 	spin_unlock(&mp->m_sb_lock);
mp                110 fs/xfs/xfs_health.c 	struct xfs_mount	*mp,
mp                114 fs/xfs/xfs_health.c 	trace_xfs_fs_mark_healthy(mp, mask);
mp                116 fs/xfs/xfs_health.c 	spin_lock(&mp->m_sb_lock);
mp                117 fs/xfs/xfs_health.c 	mp->m_fs_sick &= ~mask;
mp                118 fs/xfs/xfs_health.c 	mp->m_fs_checked |= mask;
mp                119 fs/xfs/xfs_health.c 	spin_unlock(&mp->m_sb_lock);
mp                125 fs/xfs/xfs_health.c 	struct xfs_mount	*mp,
mp                129 fs/xfs/xfs_health.c 	spin_lock(&mp->m_sb_lock);
mp                130 fs/xfs/xfs_health.c 	*sick = mp->m_fs_sick;
mp                131 fs/xfs/xfs_health.c 	*checked = mp->m_fs_checked;
mp                132 fs/xfs/xfs_health.c 	spin_unlock(&mp->m_sb_lock);
mp                138 fs/xfs/xfs_health.c 	struct xfs_mount	*mp,
mp                142 fs/xfs/xfs_health.c 	trace_xfs_rt_mark_sick(mp, mask);
mp                144 fs/xfs/xfs_health.c 	spin_lock(&mp->m_sb_lock);
mp                145 fs/xfs/xfs_health.c 	mp->m_rt_sick |= mask;
mp                146 fs/xfs/xfs_health.c 	mp->m_rt_checked |= mask;
mp                147 fs/xfs/xfs_health.c 	spin_unlock(&mp->m_sb_lock);
mp                153 fs/xfs/xfs_health.c 	struct xfs_mount	*mp,
mp                157 fs/xfs/xfs_health.c 	trace_xfs_rt_mark_healthy(mp, mask);
mp                159 fs/xfs/xfs_health.c 	spin_lock(&mp->m_sb_lock);
mp                160 fs/xfs/xfs_health.c 	mp->m_rt_sick &= ~mask;
mp                161 fs/xfs/xfs_health.c 	mp->m_rt_checked |= mask;
mp                162 fs/xfs/xfs_health.c 	spin_unlock(&mp->m_sb_lock);
mp                168 fs/xfs/xfs_health.c 	struct xfs_mount	*mp,
mp                172 fs/xfs/xfs_health.c 	spin_lock(&mp->m_sb_lock);
mp                173 fs/xfs/xfs_health.c 	*sick = mp->m_rt_sick;
mp                174 fs/xfs/xfs_health.c 	*checked = mp->m_rt_checked;
mp                175 fs/xfs/xfs_health.c 	spin_unlock(&mp->m_sb_lock);
mp                301 fs/xfs/xfs_health.c 	struct xfs_mount		*mp,
mp                311 fs/xfs/xfs_health.c 	xfs_fs_measure_sickness(mp, &sick, &checked);
mp                315 fs/xfs/xfs_health.c 	xfs_rt_measure_sickness(mp, &sick, &checked);
mp                 33 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                 46 fs/xfs/xfs_icache.c 	if (inode_init_always(mp->m_super, VFS_I(ip))) {
mp                 54 fs/xfs/xfs_icache.c 	XFS_STATS_INC(mp, vn_active);
mp                 61 fs/xfs/xfs_icache.c 	ip->i_mount = mp;
mp                150 fs/xfs/xfs_icache.c 	struct xfs_mount        *mp)
mp                154 fs/xfs/xfs_icache.c 	if (radix_tree_tagged(&mp->m_perag_tree, XFS_ICI_RECLAIM_TAG)) {
mp                155 fs/xfs/xfs_icache.c 		queue_delayed_work(mp->m_reclaim_workqueue, &mp->m_reclaim_work,
mp                172 fs/xfs/xfs_icache.c 	struct xfs_mount *mp = container_of(to_delayed_work(work),
mp                175 fs/xfs/xfs_icache.c 	xfs_reclaim_inodes(mp, SYNC_TRYLOCK);
mp                176 fs/xfs/xfs_icache.c 	xfs_reclaim_work_queue(mp);
mp                183 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp = pag->pag_mount;
mp                190 fs/xfs/xfs_icache.c 	spin_lock(&mp->m_perag_lock);
mp                191 fs/xfs/xfs_icache.c 	radix_tree_tag_set(&mp->m_perag_tree, pag->pag_agno,
mp                193 fs/xfs/xfs_icache.c 	spin_unlock(&mp->m_perag_lock);
mp                196 fs/xfs/xfs_icache.c 	xfs_reclaim_work_queue(mp);
mp                198 fs/xfs/xfs_icache.c 	trace_xfs_perag_set_reclaim(mp, pag->pag_agno, -1, _RET_IP_);
mp                205 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp = pag->pag_mount;
mp                212 fs/xfs/xfs_icache.c 	spin_lock(&mp->m_perag_lock);
mp                213 fs/xfs/xfs_icache.c 	radix_tree_tag_clear(&mp->m_perag_tree, pag->pag_agno,
mp                215 fs/xfs/xfs_icache.c 	spin_unlock(&mp->m_perag_lock);
mp                216 fs/xfs/xfs_icache.c 	trace_xfs_perag_clear_reclaim(mp, pag->pag_agno, -1, _RET_IP_);
mp                229 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp = ip->i_mount;
mp                232 fs/xfs/xfs_icache.c 	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino));
mp                236 fs/xfs/xfs_icache.c 	radix_tree_tag_set(&pag->pag_ici_root, XFS_INO_TO_AGINO(mp, ip->i_ino),
mp                283 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                293 fs/xfs/xfs_icache.c 	error = inode_init_always(mp->m_super, inode);
mp                355 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp = ip->i_mount;
mp                368 fs/xfs/xfs_icache.c 		XFS_STATS_INC(mp, xs_ig_frecycle);
mp                386 fs/xfs/xfs_icache.c 		XFS_STATS_INC(mp, xs_ig_frecycle);
mp                422 fs/xfs/xfs_icache.c 		error = xfs_reinit_inode(mp, inode);
mp                479 fs/xfs/xfs_icache.c 	XFS_STATS_INC(mp, xs_ig_found);
mp                492 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                502 fs/xfs/xfs_icache.c 	xfs_agino_t		agino = XFS_INO_TO_AGINO(mp, ino);
mp                505 fs/xfs/xfs_icache.c 	ip = xfs_inode_alloc(mp, ino);
mp                509 fs/xfs/xfs_icache.c 	error = xfs_iread(mp, tp, ip, flags);
mp                571 fs/xfs/xfs_icache.c 		XFS_STATS_INC(mp, xs_ig_dup);
mp                616 fs/xfs/xfs_icache.c 	xfs_mount_t	*mp,
mp                638 fs/xfs/xfs_icache.c 	if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount)
mp                641 fs/xfs/xfs_icache.c 	XFS_STATS_INC(mp, xs_ig_attempts);
mp                644 fs/xfs/xfs_icache.c 	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino));
mp                645 fs/xfs/xfs_icache.c 	agino = XFS_INO_TO_AGINO(mp, ino);
mp                662 fs/xfs/xfs_icache.c 		XFS_STATS_INC(mp, xs_ig_missed);
mp                664 fs/xfs/xfs_icache.c 		error = xfs_iget_cache_miss(mp, pag, tp, ino, &ip,
mp                711 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                719 fs/xfs/xfs_icache.c 	error = xfs_iget(mp, tp, ino, XFS_IGET_INCORE, 0, &ip);
mp                783 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                847 fs/xfs/xfs_icache.c 			if (XFS_INO_TO_AGNO(mp, ip->i_ino) != pag->pag_agno)
mp                849 fs/xfs/xfs_icache.c 			first_index = XFS_INO_TO_AGINO(mp, ip->i_ino + 1);
mp                850 fs/xfs/xfs_icache.c 			if (first_index < XFS_INO_TO_AGINO(mp, ip->i_ino))
mp                894 fs/xfs/xfs_icache.c 	struct xfs_mount *mp)
mp                897 fs/xfs/xfs_icache.c 	if (radix_tree_tagged(&mp->m_perag_tree, XFS_ICI_EOFBLOCKS_TAG))
mp                898 fs/xfs/xfs_icache.c 		queue_delayed_work(mp->m_eofblocks_workqueue,
mp                899 fs/xfs/xfs_icache.c 				   &mp->m_eofblocks_work,
mp                908 fs/xfs/xfs_icache.c 	struct xfs_mount *mp = container_of(to_delayed_work(work),
mp                911 fs/xfs/xfs_icache.c 	if (!sb_start_write_trylock(mp->m_super))
mp                913 fs/xfs/xfs_icache.c 	xfs_icache_free_eofblocks(mp, NULL);
mp                914 fs/xfs/xfs_icache.c 	sb_end_write(mp->m_super);
mp                916 fs/xfs/xfs_icache.c 	xfs_queue_eofblocks(mp);
mp                926 fs/xfs/xfs_icache.c 	struct xfs_mount *mp)
mp                929 fs/xfs/xfs_icache.c 	if (radix_tree_tagged(&mp->m_perag_tree, XFS_ICI_COWBLOCKS_TAG))
mp                930 fs/xfs/xfs_icache.c 		queue_delayed_work(mp->m_eofblocks_workqueue,
mp                931 fs/xfs/xfs_icache.c 				   &mp->m_cowblocks_work,
mp                940 fs/xfs/xfs_icache.c 	struct xfs_mount *mp = container_of(to_delayed_work(work),
mp                943 fs/xfs/xfs_icache.c 	if (!sb_start_write_trylock(mp->m_super))
mp                945 fs/xfs/xfs_icache.c 	xfs_icache_free_cowblocks(mp, NULL);
mp                946 fs/xfs/xfs_icache.c 	sb_end_write(mp->m_super);
mp                948 fs/xfs/xfs_icache.c 	xfs_queue_cowblocks(mp);
mp                953 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                966 fs/xfs/xfs_icache.c 	while ((pag = xfs_perag_get(mp, ag))) {
mp                968 fs/xfs/xfs_icache.c 		error = xfs_inode_ag_walk(mp, pag, execute, flags, args, -1,
mp                982 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp                988 fs/xfs/xfs_icache.c 	return xfs_inode_ag_iterator_flags(mp, execute, flags, args, 0);
mp                993 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp               1006 fs/xfs/xfs_icache.c 	while ((pag = xfs_perag_get_tag(mp, ag, tag))) {
mp               1008 fs/xfs/xfs_icache.c 		error = xfs_inode_ag_walk(mp, pag, execute, flags, args, tag,
mp               1249 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp               1263 fs/xfs/xfs_icache.c 	while ((pag = xfs_perag_get_tag(mp, ag, XFS_ICI_RECLAIM_TAG))) {
mp               1320 fs/xfs/xfs_icache.c 				if (XFS_INO_TO_AGNO(mp, ip->i_ino) !=
mp               1323 fs/xfs/xfs_icache.c 				first_index = XFS_INO_TO_AGINO(mp, ip->i_ino + 1);
mp               1324 fs/xfs/xfs_icache.c 				if (first_index < XFS_INO_TO_AGINO(mp, ip->i_ino))
mp               1369 fs/xfs/xfs_icache.c 	xfs_mount_t	*mp,
mp               1374 fs/xfs/xfs_icache.c 	return xfs_reclaim_inodes_ag(mp, mode, &nr_to_scan);
mp               1388 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp               1392 fs/xfs/xfs_icache.c 	xfs_reclaim_work_queue(mp);
mp               1393 fs/xfs/xfs_icache.c 	xfs_ail_push_all(mp->m_ail);
mp               1395 fs/xfs/xfs_icache.c 	return xfs_reclaim_inodes_ag(mp, SYNC_TRYLOCK | SYNC_WAIT, &nr_to_scan);
mp               1404 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp)
mp               1410 fs/xfs/xfs_icache.c 	while ((pag = xfs_perag_get_tag(mp, ag, XFS_ICI_RECLAIM_TAG))) {
mp               1518 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp               1529 fs/xfs/xfs_icache.c 	return xfs_inode_ag_iterator_tag(mp, execute, flags,
mp               1535 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp               1538 fs/xfs/xfs_icache.c 	return __xfs_icache_free_eofblocks(mp, eofb, xfs_inode_free_eofblocks,
mp               1551 fs/xfs/xfs_icache.c 	int			(*execute)(struct xfs_mount *mp,
mp               1613 fs/xfs/xfs_icache.c 	void		(*execute)(struct xfs_mount *mp),
mp               1614 fs/xfs/xfs_icache.c 	void		(*set_tp)(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               1618 fs/xfs/xfs_icache.c 	struct xfs_mount *mp = ip->i_mount;
mp               1632 fs/xfs/xfs_icache.c 	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino));
mp               1669 fs/xfs/xfs_icache.c 	void		(*clear_tp)(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               1673 fs/xfs/xfs_icache.c 	struct xfs_mount *mp = ip->i_mount;
mp               1680 fs/xfs/xfs_icache.c 	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino));
mp               1798 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp,
mp               1801 fs/xfs/xfs_icache.c 	return __xfs_icache_free_eofblocks(mp, eofb, xfs_inode_free_cowblocks,
mp               1834 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp)
mp               1836 fs/xfs/xfs_icache.c 	cancel_delayed_work_sync(&mp->m_eofblocks_work);
mp               1837 fs/xfs/xfs_icache.c 	cancel_delayed_work_sync(&mp->m_cowblocks_work);
mp               1843 fs/xfs/xfs_icache.c 	struct xfs_mount	*mp)
mp               1845 fs/xfs/xfs_icache.c 	xfs_queue_eofblocks(mp);
mp               1846 fs/xfs/xfs_icache.c 	xfs_queue_cowblocks(mp);
mp                 45 fs/xfs/xfs_icache.h int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino,
mp                 49 fs/xfs/xfs_icache.h struct xfs_inode * xfs_inode_alloc(struct xfs_mount *mp, xfs_ino_t ino);
mp                 54 fs/xfs/xfs_icache.h int xfs_reclaim_inodes(struct xfs_mount *mp, int mode);
mp                 55 fs/xfs/xfs_icache.h int xfs_reclaim_inodes_count(struct xfs_mount *mp);
mp                 56 fs/xfs/xfs_icache.h long xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan);
mp                 74 fs/xfs/xfs_icache.h int xfs_inode_ag_iterator(struct xfs_mount *mp,
mp                 77 fs/xfs/xfs_icache.h int xfs_inode_ag_iterator_flags(struct xfs_mount *mp,
mp                 80 fs/xfs/xfs_icache.h int xfs_inode_ag_iterator_tag(struct xfs_mount *mp,
mp                119 fs/xfs/xfs_icache.h int xfs_icache_inode_is_allocated(struct xfs_mount *mp, struct xfs_trans *tp,
mp                122 fs/xfs/xfs_icache.h void xfs_stop_block_reaping(struct xfs_mount *mp);
mp                123 fs/xfs/xfs_icache.h void xfs_start_block_reaping(struct xfs_mount *mp);
mp                753 fs/xfs/xfs_inode.c 	struct xfs_mount *mp = tp->t_mountp;
mp                782 fs/xfs/xfs_inode.c 	if ((pip && ino == pip->i_ino) || !xfs_verify_dir_ino(mp, ino)) {
mp                783 fs/xfs/xfs_inode.c 		xfs_alert(mp, "Allocated a known in-use inode 0x%llx!", ino);
mp                792 fs/xfs/xfs_inode.c 	error = xfs_iget(mp, tp, ino, XFS_IGET_CREATE,
mp               1134 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = dp->i_mount;
mp               1148 fs/xfs/xfs_inode.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               1164 fs/xfs/xfs_inode.c 		resblks = XFS_MKDIR_SPACE_RES(mp, name->len);
mp               1165 fs/xfs/xfs_inode.c 		tres = &M_RES(mp)->tr_mkdir;
mp               1167 fs/xfs/xfs_inode.c 		resblks = XFS_CREATE_SPACE_RES(mp, name->len);
mp               1168 fs/xfs/xfs_inode.c 		tres = &M_RES(mp)->tr_create;
mp               1177 fs/xfs/xfs_inode.c 	error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp);
mp               1180 fs/xfs/xfs_inode.c 		xfs_flush_inodes(mp);
mp               1181 fs/xfs/xfs_inode.c 		error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp);
mp               1192 fs/xfs/xfs_inode.c 	error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp,
mp               1218 fs/xfs/xfs_inode.c 					resblks - XFS_IALLOC_SPACE_RES(mp) : 0);
mp               1239 fs/xfs/xfs_inode.c 	if (mp->m_flags & (XFS_MOUNT_WSYNC|XFS_MOUNT_DIRSYNC))
mp               1288 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = dp->i_mount;
mp               1299 fs/xfs/xfs_inode.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               1314 fs/xfs/xfs_inode.c 	resblks = XFS_IALLOC_SPACE_RES(mp);
mp               1315 fs/xfs/xfs_inode.c 	tres = &M_RES(mp)->tr_create_tmpfile;
mp               1317 fs/xfs/xfs_inode.c 	error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp);
mp               1321 fs/xfs/xfs_inode.c 	error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp,
mp               1330 fs/xfs/xfs_inode.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp               1381 fs/xfs/xfs_inode.c 	xfs_mount_t		*mp = tdp->i_mount;
mp               1390 fs/xfs/xfs_inode.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               1401 fs/xfs/xfs_inode.c 	resblks = XFS_LINK_SPACE_RES(mp, target_name->len);
mp               1402 fs/xfs/xfs_inode.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_link, resblks, 0, 0, &tp);
mp               1405 fs/xfs/xfs_inode.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_link, 0, 0, 0, &tp);
mp               1455 fs/xfs/xfs_inode.c 	if (mp->m_flags & (XFS_MOUNT_WSYNC|XFS_MOUNT_DIRSYNC))
mp               1513 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1528 fs/xfs/xfs_inode.c 	ASSERT(!XFS_NOT_DQATTACHED(mp, ip));
mp               1543 fs/xfs/xfs_inode.c 	first_unmap_block = XFS_B_TO_FSB(mp, (xfs_ufsize_t)new_size);
mp               1544 fs/xfs/xfs_inode.c 	last_block = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
mp               1597 fs/xfs/xfs_inode.c 	xfs_mount_t	*mp = ip->i_mount;
mp               1604 fs/xfs/xfs_inode.c 	if (mp->m_flags & XFS_MOUNT_RDONLY)
mp               1607 fs/xfs/xfs_inode.c 	if (!XFS_FORCED_SHUTDOWN(mp)) {
mp               1682 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1686 fs/xfs/xfs_inode.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp);
mp               1688 fs/xfs/xfs_inode.c 		ASSERT(XFS_FORCED_SHUTDOWN(mp));
mp               1731 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1746 fs/xfs/xfs_inode.c 	if (unlikely(mp->m_finobt_nores)) {
mp               1747 fs/xfs/xfs_inode.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ifree,
mp               1748 fs/xfs/xfs_inode.c 				XFS_IFREE_SPACE_RES(mp), 0, XFS_TRANS_RESERVE,
mp               1751 fs/xfs/xfs_inode.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ifree, 0, 0, 0, &tp);
mp               1755 fs/xfs/xfs_inode.c 			xfs_warn_ratelimited(mp,
mp               1759 fs/xfs/xfs_inode.c 			ASSERT(XFS_FORCED_SHUTDOWN(mp));
mp               1774 fs/xfs/xfs_inode.c 		if (!XFS_FORCED_SHUTDOWN(mp)) {
mp               1775 fs/xfs/xfs_inode.c 			xfs_notice(mp, "%s: xfs_ifree returned error %d",
mp               1777 fs/xfs/xfs_inode.c 			xfs_force_shutdown(mp, SHUTDOWN_META_IO_ERROR);
mp               1795 fs/xfs/xfs_inode.c 		xfs_notice(mp, "%s: xfs_trans_commit returned error %d",
mp               1814 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp;
mp               1827 fs/xfs/xfs_inode.c 	mp = ip->i_mount;
mp               1831 fs/xfs/xfs_inode.c 	if (mp->m_flags & XFS_MOUNT_RDONLY)
mp               2154 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2157 fs/xfs/xfs_inode.c 	ASSERT(xfs_verify_agino_or_null(mp, agno, next_agino));
mp               2159 fs/xfs/xfs_inode.c 	trace_xfs_iunlink_update_dinode(mp, agno, agino,
mp               2167 fs/xfs/xfs_inode.c 	xfs_dinode_calc_crc(mp, dip);
mp               2170 fs/xfs/xfs_inode.c 	xfs_inobp_check(mp, ibp);
mp               2182 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2188 fs/xfs/xfs_inode.c 	ASSERT(xfs_verify_agino_or_null(mp, agno, next_agino));
mp               2190 fs/xfs/xfs_inode.c 	error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &ibp, 0, 0);
mp               2196 fs/xfs/xfs_inode.c 	if (!xfs_verify_agino_or_null(mp, agno, old_value)) {
mp               2214 fs/xfs/xfs_inode.c 	xfs_iunlink_update_dinode(tp, agno, XFS_INO_TO_AGINO(mp, ip->i_ino),
mp               2234 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2238 fs/xfs/xfs_inode.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, ip->i_ino);
mp               2239 fs/xfs/xfs_inode.c 	xfs_agino_t		agino = XFS_INO_TO_AGINO(mp, ip->i_ino);
mp               2248 fs/xfs/xfs_inode.c 	error = xfs_read_agi(mp, tp, agno, &agibp);
mp               2260 fs/xfs/xfs_inode.c 	    !xfs_verify_agino_or_null(mp, agno, next_agino))
mp               2281 fs/xfs/xfs_inode.c 		pag = xfs_perag_get(mp, agno);
mp               2302 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2306 fs/xfs/xfs_inode.c 	error = xfs_imap(mp, tp, XFS_AGINO_TO_INO(mp, agno, agino), imap, 0);
mp               2308 fs/xfs/xfs_inode.c 		xfs_warn(mp, "%s: xfs_imap returned error %d.",
mp               2313 fs/xfs/xfs_inode.c 	error = xfs_imap_to_bp(mp, tp, imap, dipp, bpp, 0, 0);
mp               2315 fs/xfs/xfs_inode.c 		xfs_warn(mp, "%s: xfs_imap_to_bp returned error %d.",
mp               2345 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2371 fs/xfs/xfs_inode.c 	trace_xfs_iunlink_map_prev_fallback(mp, agno);
mp               2392 fs/xfs/xfs_inode.c 		if (!xfs_verify_agino(mp, agno, unlinked_agino) ||
mp               2395 fs/xfs/xfs_inode.c 					XFS_ERRLEVEL_LOW, mp,
mp               2414 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2420 fs/xfs/xfs_inode.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, ip->i_ino);
mp               2421 fs/xfs/xfs_inode.c 	xfs_agino_t		agino = XFS_INO_TO_AGINO(mp, ip->i_ino);
mp               2430 fs/xfs/xfs_inode.c 	error = xfs_read_agi(mp, tp, agno, &agibp);
mp               2440 fs/xfs/xfs_inode.c 	if (!xfs_verify_agino(mp, agno, head_agino)) {
mp               2441 fs/xfs/xfs_inode.c 		XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp,
mp               2463 fs/xfs/xfs_inode.c 		pag = xfs_perag_get(mp, agno);
mp               2481 fs/xfs/xfs_inode.c 			pag = xfs_perag_get(mp, agno);
mp               2524 fs/xfs/xfs_inode.c 	xfs_mount_t		*mp = free_ip->i_mount;
mp               2534 fs/xfs/xfs_inode.c 	struct xfs_ino_geometry	*igeo = M_IGEO(mp);
mp               2538 fs/xfs/xfs_inode.c 	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, inum));
mp               2553 fs/xfs/xfs_inode.c 		blkno = XFS_AGB_TO_DADDR(mp, XFS_INO_TO_AGNO(mp, inum),
mp               2554 fs/xfs/xfs_inode.c 					 XFS_INO_TO_AGBNO(mp, inum));
mp               2564 fs/xfs/xfs_inode.c 		bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno,
mp               2565 fs/xfs/xfs_inode.c 					mp->m_bsize * igeo->blocks_per_cluster,
mp               2594 fs/xfs/xfs_inode.c 				xfs_trans_ail_copy_lsn(mp->m_ail,
mp               2616 fs/xfs/xfs_inode.c 					XFS_INO_TO_AGINO(mp, (inum + i)));
mp               2688 fs/xfs/xfs_inode.c 			xfs_trans_ail_copy_lsn(mp->m_ail, &iip->ili_flush_lsn,
mp               2863 fs/xfs/xfs_inode.c 	xfs_mount_t		*mp = dp->i_mount;
mp               2871 fs/xfs/xfs_inode.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               2891 fs/xfs/xfs_inode.c 	resblks = XFS_REMOVE_SPACE_RES(mp);
mp               2892 fs/xfs/xfs_inode.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_remove, resblks, 0, 0, &tp);
mp               2895 fs/xfs/xfs_inode.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_remove, 0, 0, 0,
mp               2957 fs/xfs/xfs_inode.c 	if (mp->m_flags & (XFS_MOUNT_WSYNC|XFS_MOUNT_DIRSYNC))
mp               3195 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = src_dp->i_mount;
mp               3228 fs/xfs/xfs_inode.c 	spaceres = XFS_RENAME_SPACE_RES(mp, target_name->len);
mp               3229 fs/xfs/xfs_inode.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_rename, spaceres, 0, 0, &tp);
mp               3232 fs/xfs/xfs_inode.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_rename, 0, 0, 0,
mp               3468 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = ip->i_mount;
mp               3474 fs/xfs/xfs_inode.c 	struct xfs_ino_geometry	*igeo = M_IGEO(mp);
mp               3479 fs/xfs/xfs_inode.c 	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino));
mp               3487 fs/xfs/xfs_inode.c 	first_index = XFS_INO_TO_AGINO(mp, ip->i_ino) & mask;
mp               3518 fs/xfs/xfs_inode.c 		if ((XFS_INO_TO_AGINO(mp, cip->i_ino) & mask) != first_index) {
mp               3581 fs/xfs/xfs_inode.c 		XFS_STATS_INC(mp, xs_icluster_flushcnt);
mp               3582 fs/xfs/xfs_inode.c 		XFS_STATS_ADD(mp, xs_icluster_flushinode, clcount);
mp               3614 fs/xfs/xfs_inode.c 	xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               3637 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = ip->i_mount;
mp               3642 fs/xfs/xfs_inode.c 	XFS_STATS_INC(mp, xs_iflush_count);
mp               3674 fs/xfs/xfs_inode.c 	if (XFS_FORCED_SHUTDOWN(mp)) {
mp               3688 fs/xfs/xfs_inode.c 	error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &bp, XBF_TRYLOCK,
mp               3709 fs/xfs/xfs_inode.c 		xfs_log_force(mp, 0);
mp               3730 fs/xfs/xfs_inode.c 	xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               3774 fs/xfs/xfs_inode.c 	struct xfs_mount	*mp = ip->i_mount;
mp               3787 fs/xfs/xfs_inode.c 			       mp, XFS_ERRTAG_IFLUSH_1)) {
mp               3788 fs/xfs/xfs_inode.c 		xfs_alert_tag(mp, XFS_PTAG_IFLUSH,
mp               3797 fs/xfs/xfs_inode.c 		    mp, XFS_ERRTAG_IFLUSH_3)) {
mp               3798 fs/xfs/xfs_inode.c 			xfs_alert_tag(mp, XFS_PTAG_IFLUSH,
mp               3808 fs/xfs/xfs_inode.c 		    mp, XFS_ERRTAG_IFLUSH_4)) {
mp               3809 fs/xfs/xfs_inode.c 			xfs_alert_tag(mp, XFS_PTAG_IFLUSH,
mp               3816 fs/xfs/xfs_inode.c 				ip->i_d.di_nblocks, mp, XFS_ERRTAG_IFLUSH_5)) {
mp               3817 fs/xfs/xfs_inode.c 		xfs_alert_tag(mp, XFS_PTAG_IFLUSH,
mp               3825 fs/xfs/xfs_inode.c 	if (XFS_TEST_ERROR(ip->i_d.di_forkoff > mp->m_sb.sb_inodesize,
mp               3826 fs/xfs/xfs_inode.c 				mp, XFS_ERRTAG_IFLUSH_6)) {
mp               3827 fs/xfs/xfs_inode.c 		xfs_alert_tag(mp, XFS_PTAG_IFLUSH,
mp               3863 fs/xfs/xfs_inode.c 	xfs_inobp_check(mp, bp);
mp               3895 fs/xfs/xfs_inode.c 	xfs_trans_ail_copy_lsn(mp->m_ail, &iip->ili_flush_lsn,
mp               3907 fs/xfs/xfs_inode.c 	xfs_dinode_calc_crc(mp, dip);
mp                649 fs/xfs/xfs_inode_item.c 	struct xfs_mount	*mp)
mp                657 fs/xfs/xfs_inode_item.c 	xfs_log_item_init(mp, &iip->ili_item, XFS_LI_INODE,
mp                299 fs/xfs/xfs_ioctl.c 	xfs_mount_t	*mp = ip->i_mount;
mp                306 fs/xfs/xfs_ioctl.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                309 fs/xfs/xfs_ioctl.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
mp                726 fs/xfs/xfs_ioctl.c 	xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat);
mp                747 fs/xfs/xfs_ioctl.c 	xfs_mount_t		*mp,
mp                753 fs/xfs/xfs_ioctl.c 		.mp		= mp,
mp                765 fs/xfs/xfs_ioctl.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                841 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp,
mp                868 fs/xfs/xfs_ioctl.c 			hdr->ino = mp->m_sb.sb_rootino;
mp                882 fs/xfs/xfs_ioctl.c 		if (hdr->agno >= mp->m_sb.sb_agcount)
mp                886 fs/xfs/xfs_ioctl.c 			breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0);
mp                887 fs/xfs/xfs_ioctl.c 		else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno)
mp                893 fs/xfs/xfs_ioctl.c 		if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno)
mp                899 fs/xfs/xfs_ioctl.c 	if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount)
mp                921 fs/xfs/xfs_ioctl.c 	struct xfs_mount		*mp,
mp                927 fs/xfs/xfs_ioctl.c 		.mp			= mp,
mp                934 fs/xfs/xfs_ioctl.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                940 fs/xfs/xfs_ioctl.c 	error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat);
mp                971 fs/xfs/xfs_ioctl.c 	struct xfs_mount		*mp,
mp                977 fs/xfs/xfs_ioctl.c 		.mp			= mp,
mp                984 fs/xfs/xfs_ioctl.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                990 fs/xfs/xfs_ioctl.c 	error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers);
mp               1010 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp,
mp               1017 fs/xfs/xfs_ioctl.c 	xfs_fs_geometry(&mp->m_sb, &fsgeo, struct_version);
mp               1024 fs/xfs/xfs_ioctl.c 		xfs_fsop_geom_health(mp, &fsgeo);
mp               1035 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp,
mp               1048 fs/xfs/xfs_ioctl.c 	error = xfs_ag_get_geometry(mp, ageo.ag_number, &ageo);
mp               1251 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1261 fs/xfs/xfs_ioctl.c 		if (mp->m_sb.sb_rblocks == 0 || mp->m_sb.sb_rextsize == 0 ||
mp               1262 fs/xfs/xfs_ioctl.c 		    (ip->i_d.di_extsize % mp->m_sb.sb_rextsize))
mp               1285 fs/xfs/xfs_ioctl.c 	XFS_STATS_INC(mp, xs_ig_attrchg);
mp               1367 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1371 fs/xfs/xfs_ioctl.c 	if (mp->m_flags & XFS_MOUNT_RDONLY)
mp               1374 fs/xfs/xfs_ioctl.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               1377 fs/xfs/xfs_ioctl.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
mp               1396 fs/xfs/xfs_ioctl.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp               1430 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1435 fs/xfs/xfs_ioctl.c 	    ((ip->i_d.di_extsize << mp->m_sb.sb_blocklog) != fa->fsx_extsize))
mp               1441 fs/xfs/xfs_ioctl.c 	extsize_fsb = XFS_B_TO_FSB(mp, fa->fsx_extsize);
mp               1447 fs/xfs/xfs_ioctl.c 		size = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog;
mp               1449 fs/xfs/xfs_ioctl.c 		size = mp->m_sb.sb_blocksize;
mp               1450 fs/xfs/xfs_ioctl.c 		if (extsize_fsb > mp->m_sb.sb_agblocks / 2)
mp               1480 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1494 fs/xfs/xfs_ioctl.c 	cowextsize_fsb = XFS_B_TO_FSB(mp, fa->fsx_cowextsize);
mp               1498 fs/xfs/xfs_ioctl.c 	size = mp->m_sb.sb_blocksize;
mp               1499 fs/xfs/xfs_ioctl.c 	if (cowextsize_fsb > mp->m_sb.sb_agblocks / 2)
mp               1526 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1548 fs/xfs/xfs_ioctl.c 	if (XFS_IS_QUOTA_ON(mp)) {
mp               1573 fs/xfs/xfs_ioctl.c 	if (XFS_IS_QUOTA_RUNNING(mp) && XFS_IS_PQUOTA_ON(mp) &&
mp               1612 fs/xfs/xfs_ioctl.c 		if (XFS_IS_QUOTA_RUNNING(mp) && XFS_IS_PQUOTA_ON(mp)) {
mp               1626 fs/xfs/xfs_ioctl.c 		ip->i_d.di_extsize = fa->fsx_extsize >> mp->m_sb.sb_blocklog;
mp               1632 fs/xfs/xfs_ioctl.c 				mp->m_sb.sb_blocklog;
mp               1835 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp;
mp               1847 fs/xfs/xfs_ioctl.c 	trace_xfs_getfsmap_mapping(info->mp, xfm);
mp               1886 fs/xfs/xfs_ioctl.c 	info.mp = ip->i_mount;
mp               2018 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp,
mp               2021 fs/xfs/xfs_ioctl.c 	struct xfs_sb		*sbp = &mp->m_sb;
mp               2029 fs/xfs/xfs_ioctl.c 	spin_lock(&mp->m_sb_lock);
mp               2031 fs/xfs/xfs_ioctl.c 	spin_unlock(&mp->m_sb_lock);
mp               2041 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp,
mp               2044 fs/xfs/xfs_ioctl.c 	struct xfs_sb		*sbp = &mp->m_sb;
mp               2067 fs/xfs/xfs_ioctl.c 	spin_lock(&mp->m_sb_lock);
mp               2070 fs/xfs/xfs_ioctl.c 	spin_unlock(&mp->m_sb_lock);
mp               2081 fs/xfs/xfs_ioctl.c 	error = xfs_sync_sb_buf(mp);
mp               2087 fs/xfs/xfs_ioctl.c 	mutex_lock(&mp->m_growlock);
mp               2088 fs/xfs/xfs_ioctl.c 	error = xfs_update_secondary_sbs(mp);
mp               2089 fs/xfs/xfs_ioctl.c 	mutex_unlock(&mp->m_growlock);
mp               2091 fs/xfs/xfs_ioctl.c 	invalidate_bdev(mp->m_ddev_targp->bt_bdev);
mp               2112 fs/xfs/xfs_ioctl.c 	struct xfs_mount	*mp = ip->i_mount;
mp               2120 fs/xfs/xfs_ioctl.c 		return xfs_ioc_trim(mp, arg);
mp               2122 fs/xfs/xfs_ioctl.c 		return xfs_ioc_getlabel(mp, arg);
mp               2124 fs/xfs/xfs_ioctl.c 		return xfs_ioc_setlabel(filp, mp, arg);
mp               2144 fs/xfs/xfs_ioctl.c 			mp->m_rtdev_targp : mp->m_ddev_targp;
mp               2157 fs/xfs/xfs_ioctl.c 		return xfs_ioc_fsbulkstat(mp, cmd, arg);
mp               2160 fs/xfs/xfs_ioctl.c 		return xfs_ioc_bulkstat(mp, cmd, arg);
mp               2162 fs/xfs/xfs_ioctl.c 		return xfs_ioc_inumbers(mp, cmd, arg);
mp               2165 fs/xfs/xfs_ioctl.c 		return xfs_ioc_fsgeometry(mp, arg, 3);
mp               2167 fs/xfs/xfs_ioctl.c 		return xfs_ioc_fsgeometry(mp, arg, 4);
mp               2169 fs/xfs/xfs_ioctl.c 		return xfs_ioc_fsgeometry(mp, arg, 5);
mp               2172 fs/xfs/xfs_ioctl.c 		return xfs_ioc_ag_geometry(mp, arg);
mp               2263 fs/xfs/xfs_ioctl.c 		xfs_fs_counts(mp, &out);
mp               2277 fs/xfs/xfs_ioctl.c 		if (mp->m_flags & XFS_MOUNT_RDONLY)
mp               2289 fs/xfs/xfs_ioctl.c 		error = xfs_reserve_blocks(mp, &in, &inout);
mp               2305 fs/xfs/xfs_ioctl.c 		error = xfs_reserve_blocks(mp, NULL, &out);
mp               2324 fs/xfs/xfs_ioctl.c 		error = xfs_growfs_data(mp, &in);
mp               2338 fs/xfs/xfs_ioctl.c 		error = xfs_growfs_log(mp, &in);
mp               2352 fs/xfs/xfs_ioctl.c 		error = xfs_growfs_rt(mp, &in);
mp               2366 fs/xfs/xfs_ioctl.c 		return xfs_fs_goingdown(mp, in);
mp               2378 fs/xfs/xfs_ioctl.c 		return xfs_errortag_add(mp, in.errtag);
mp               2385 fs/xfs/xfs_ioctl.c 		return xfs_errortag_clearall(mp);
mp               2394 fs/xfs/xfs_ioctl.c 		if (mp->m_flags & XFS_MOUNT_RDONLY)
mp               2404 fs/xfs/xfs_ioctl.c 		sb_start_write(mp->m_super);
mp               2405 fs/xfs/xfs_ioctl.c 		error = xfs_icache_free_eofblocks(mp, &keofb);
mp               2406 fs/xfs/xfs_ioctl.c 		sb_end_write(mp->m_super);
mp                 48 fs/xfs/xfs_ioctl32.c 	struct xfs_mount	  *mp,
mp                 53 fs/xfs/xfs_ioctl32.c 	xfs_fs_geometry(&mp->m_sb, &fsgeo, 3);
mp                180 fs/xfs/xfs_ioctl32.c 	xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat);
mp                212 fs/xfs/xfs_ioctl32.c 	xfs_mount_t		  *mp,
mp                219 fs/xfs/xfs_ioctl32.c 		.mp		= mp,
mp                255 fs/xfs/xfs_ioctl32.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                551 fs/xfs/xfs_ioctl32.c 	struct xfs_mount	*mp = ip->i_mount;
mp                576 fs/xfs/xfs_ioctl32.c 		return xfs_compat_ioc_fsgeometry_v1(mp, arg);
mp                585 fs/xfs/xfs_ioctl32.c 		error = xfs_growfs_data(mp, &in);
mp                597 fs/xfs/xfs_ioctl32.c 		error = xfs_growfs_rt(mp, &in);
mp                627 fs/xfs/xfs_ioctl32.c 		return xfs_compat_ioc_fsbulkstat(mp, cmd, arg);
mp                 32 fs/xfs/xfs_iomap.c #define XFS_WRITEIO_ALIGN(mp,off)	(((off) >> mp->m_writeio_log) \
mp                 33 fs/xfs/xfs_iomap.c 						<< mp->m_writeio_log)
mp                 59 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 78 fs/xfs/xfs_iomap.c 	iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff);
mp                 79 fs/xfs/xfs_iomap.c 	iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount);
mp                111 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                123 fs/xfs/xfs_iomap.c 		if (mp->m_swidth && (mp->m_flags & XFS_MOUNT_SWALLOC))
mp                124 fs/xfs/xfs_iomap.c 			align = mp->m_swidth;
mp                125 fs/xfs/xfs_iomap.c 		else if (mp->m_dalign)
mp                126 fs/xfs/xfs_iomap.c 			align = mp->m_dalign;
mp                128 fs/xfs/xfs_iomap.c 		if (align && XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, align))
mp                175 fs/xfs/xfs_iomap.c 	xfs_mount_t	*mp = ip->i_mount;
mp                196 fs/xfs/xfs_iomap.c 	offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                197 fs/xfs/xfs_iomap.c 	last_fsb = XFS_B_TO_FSB(mp, ((xfs_ufsize_t)(offset + count)));
mp                223 fs/xfs/xfs_iomap.c 		resrtextents /= mp->m_sb.sb_rextsize;
mp                224 fs/xfs/xfs_iomap.c 		resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0);
mp                228 fs/xfs/xfs_iomap.c 		resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned);
mp                258 fs/xfs/xfs_iomap.c 			resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1;
mp                261 fs/xfs/xfs_iomap.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, resrtextents,
mp                400 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                402 fs/xfs/xfs_iomap.c 	xfs_fileoff_t		offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                413 fs/xfs/xfs_iomap.c 	if (!(mp->m_flags & XFS_MOUNT_DFLT_IOSIZE) &&
mp                414 fs/xfs/xfs_iomap.c 	    (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_writeio_blocks)))
mp                421 fs/xfs/xfs_iomap.c 	if ((mp->m_flags & XFS_MOUNT_DFLT_IOSIZE) ||
mp                422 fs/xfs/xfs_iomap.c 	    XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_dalign) ||
mp                425 fs/xfs/xfs_iomap.c 		return mp->m_writeio_blocks;
mp                446 fs/xfs/xfs_iomap.c 		alloc_blocks = XFS_B_TO_FSB(mp, offset);
mp                461 fs/xfs/xfs_iomap.c 	freesp = percpu_counter_read_positive(&mp->m_fdblocks);
mp                462 fs/xfs/xfs_iomap.c 	if (freesp < mp->m_low_space[XFS_LOWSP_5_PCNT]) {
mp                464 fs/xfs/xfs_iomap.c 		if (freesp < mp->m_low_space[XFS_LOWSP_4_PCNT])
mp                466 fs/xfs/xfs_iomap.c 		if (freesp < mp->m_low_space[XFS_LOWSP_3_PCNT])
mp                468 fs/xfs/xfs_iomap.c 		if (freesp < mp->m_low_space[XFS_LOWSP_2_PCNT])
mp                470 fs/xfs/xfs_iomap.c 		if (freesp < mp->m_low_space[XFS_LOWSP_1_PCNT])
mp                518 fs/xfs/xfs_iomap.c 	if (alloc_blocks < mp->m_writeio_blocks)
mp                519 fs/xfs/xfs_iomap.c 		alloc_blocks = mp->m_writeio_blocks;
mp                521 fs/xfs/xfs_iomap.c 				      mp->m_writeio_blocks);
mp                534 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                535 fs/xfs/xfs_iomap.c 	xfs_fileoff_t		offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                537 fs/xfs/xfs_iomap.c 		XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
mp                554 fs/xfs/xfs_iomap.c 	     mp, XFS_ERRTAG_BMAPIFORMAT))) {
mp                555 fs/xfs/xfs_iomap.c 		XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, mp);
mp                560 fs/xfs/xfs_iomap.c 	XFS_STATS_INC(mp, xs_blk_mapw);
mp                568 fs/xfs/xfs_iomap.c 	end_fsb = min(XFS_B_TO_FSB(mp, offset + count), maxbytes_fsb);
mp                652 fs/xfs/xfs_iomap.c 		end_fsb = min(XFS_B_TO_FSB(mp, offset + count), maxbytes_fsb);
mp                670 fs/xfs/xfs_iomap.c 			end_offset = XFS_WRITEIO_ALIGN(mp, offset + count - 1);
mp                671 fs/xfs/xfs_iomap.c 			p_end_fsb = XFS_B_TO_FSBT(mp, end_offset) +
mp                738 fs/xfs/xfs_iomap.c 	xfs_mount_t	*mp = ip->i_mount;
mp                752 fs/xfs/xfs_iomap.c 	offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                753 fs/xfs/xfs_iomap.c 	count_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + count);
mp                766 fs/xfs/xfs_iomap.c 	resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1;
mp                778 fs/xfs/xfs_iomap.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0,
mp                801 fs/xfs/xfs_iomap.c 		i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb);
mp                928 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp                935 fs/xfs/xfs_iomap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                955 fs/xfs/xfs_iomap.c 	ASSERT(offset <= mp->m_super->s_maxbytes);
mp                956 fs/xfs/xfs_iomap.c 	if (offset > mp->m_super->s_maxbytes - length)
mp                957 fs/xfs/xfs_iomap.c 		length = mp->m_super->s_maxbytes - offset;
mp                958 fs/xfs/xfs_iomap.c 	offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                959 fs/xfs/xfs_iomap.c 	end_fsb = XFS_B_TO_FSB(mp, offset + length);
mp               1010 fs/xfs/xfs_iomap.c 		length = XFS_FSB_TO_B(mp, end_fsb) - offset;
mp               1073 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1082 fs/xfs/xfs_iomap.c 	if (XFS_TEST_ERROR(false, mp, XFS_ERRTAG_DROP_WRITES)) {
mp               1093 fs/xfs/xfs_iomap.c 		start_fsb = XFS_B_TO_FSBT(mp, offset);
mp               1095 fs/xfs/xfs_iomap.c 		start_fsb = XFS_B_TO_FSB(mp, offset + written);
mp               1096 fs/xfs/xfs_iomap.c 	end_fsb = XFS_B_TO_FSB(mp, offset + length);
mp               1107 fs/xfs/xfs_iomap.c 		truncate_pagecache_range(VFS_I(ip), XFS_FSB_TO_B(mp, start_fsb),
mp               1108 fs/xfs/xfs_iomap.c 					 XFS_FSB_TO_B(mp, end_fsb) - 1);
mp               1112 fs/xfs/xfs_iomap.c 		if (error && !XFS_FORCED_SHUTDOWN(mp)) {
mp               1113 fs/xfs/xfs_iomap.c 			xfs_alert(mp, "%s: unable to clean up ino %lld",
mp               1151 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1152 fs/xfs/xfs_iomap.c 	xfs_fileoff_t		offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp               1153 fs/xfs/xfs_iomap.c 	xfs_fileoff_t		end_fsb = XFS_B_TO_FSB(mp, offset + length);
mp               1160 fs/xfs/xfs_iomap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp               1181 fs/xfs/xfs_iomap.c 		data_fsb = min(XFS_B_TO_FSB(mp, offset + length),
mp               1182 fs/xfs/xfs_iomap.c 			       XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes));
mp               1237 fs/xfs/xfs_iomap.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1238 fs/xfs/xfs_iomap.c 	xfs_fileoff_t		offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp               1239 fs/xfs/xfs_iomap.c 	xfs_fileoff_t		end_fsb = XFS_B_TO_FSB(mp, offset + length);
mp               1244 fs/xfs/xfs_iomap.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                496 fs/xfs/xfs_iops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                500 fs/xfs/xfs_iops.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                514 fs/xfs/xfs_iops.c 		XFS_FSB_TO_BB(mp, ip->i_d.di_nblocks + ip->i_delayed_blks);
mp                553 fs/xfs/xfs_iops.c 				xfs_get_extsz_hint(ip) << mp->m_sb.sb_blocklog;
mp                555 fs/xfs/xfs_iops.c 			stat->blksize = xfs_preferred_iosize(mp);
mp                599 fs/xfs/xfs_iops.c 	struct xfs_mount	*mp = XFS_I(d_inode(dentry))->i_mount;
mp                601 fs/xfs/xfs_iops.c 	if (mp->m_flags & XFS_MOUNT_RDONLY)
mp                604 fs/xfs/xfs_iops.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                622 fs/xfs/xfs_iops.c 	xfs_mount_t		*mp = ip->i_mount;
mp                642 fs/xfs/xfs_iops.c 	if (XFS_IS_QUOTA_ON(mp) && (mask & (ATTR_UID|ATTR_GID))) {
mp                645 fs/xfs/xfs_iops.c 		if ((mask & ATTR_UID) && XFS_IS_UQUOTA_ON(mp)) {
mp                651 fs/xfs/xfs_iops.c 		if ((mask & ATTR_GID) && XFS_IS_GQUOTA_ON(mp)) {
mp                673 fs/xfs/xfs_iops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
mp                699 fs/xfs/xfs_iops.c 		if (XFS_IS_QUOTA_RUNNING(mp) &&
mp                700 fs/xfs/xfs_iops.c 		    ((XFS_IS_UQUOTA_ON(mp) && !uid_eq(iuid, uid)) ||
mp                701 fs/xfs/xfs_iops.c 		     (XFS_IS_GQUOTA_ON(mp) && !gid_eq(igid, gid)))) {
mp                730 fs/xfs/xfs_iops.c 			if (XFS_IS_QUOTA_RUNNING(mp) && XFS_IS_UQUOTA_ON(mp)) {
mp                740 fs/xfs/xfs_iops.c 			if (XFS_IS_QUOTA_RUNNING(mp) && XFS_IS_GQUOTA_ON(mp)) {
mp                741 fs/xfs/xfs_iops.c 				ASSERT(xfs_sb_version_has_pquotino(&mp->m_sb) ||
mp                742 fs/xfs/xfs_iops.c 				       !XFS_IS_PQUOTA_ON(mp));
mp                760 fs/xfs/xfs_iops.c 	XFS_STATS_INC(mp, xs_ig_attrchg);
mp                762 fs/xfs/xfs_iops.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp                830 fs/xfs/xfs_iops.c 	struct xfs_mount	*mp = ip->i_mount;
mp                934 fs/xfs/xfs_iops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp);
mp                999 fs/xfs/xfs_iops.c 	XFS_STATS_INC(mp, xs_ig_attrchg);
mp               1001 fs/xfs/xfs_iops.c 	if (mp->m_flags & XFS_MOUNT_WSYNC)
mp               1068 fs/xfs/xfs_iops.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1084 fs/xfs/xfs_iops.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp);
mp               1214 fs/xfs/xfs_iops.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1221 fs/xfs/xfs_iops.c 	if (!(mp->m_flags & XFS_MOUNT_DAX) &&
mp               1226 fs/xfs/xfs_iops.c 	if (mp->m_sb.sb_blocksize != PAGE_SIZE)
mp                 56 fs/xfs/xfs_itable.c 	struct xfs_mount	*mp,
mp                 67 fs/xfs/xfs_itable.c 	if (xfs_internal_inum(mp, ino))
mp                 70 fs/xfs/xfs_itable.c 	error = xfs_iget(mp, tp, ino,
mp                126 fs/xfs/xfs_itable.c 		buf->bs_blksize = mp->m_sb.sb_blocksize;
mp                132 fs/xfs/xfs_itable.c 		buf->bs_blksize = mp->m_sb.sb_blocksize;
mp                176 fs/xfs/xfs_itable.c 	error = xfs_bulkstat_one_int(breq->mp, NULL, breq->startino, &bc);
mp                192 fs/xfs/xfs_itable.c 	struct xfs_mount	*mp,
mp                199 fs/xfs/xfs_itable.c 	error = xfs_bulkstat_one_int(mp, tp, ino, data);
mp                220 fs/xfs/xfs_itable.c 	struct xfs_mount	*mp,
mp                223 fs/xfs/xfs_itable.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, startino);
mp                224 fs/xfs/xfs_itable.c 	xfs_agino_t		agino = XFS_INO_TO_AGINO(mp, startino);
mp                226 fs/xfs/xfs_itable.c 	return agno >= mp->m_sb.sb_agcount ||
mp                227 fs/xfs/xfs_itable.c 	       startino != XFS_AGINO_TO_INO(mp, agno, agino);
mp                242 fs/xfs/xfs_itable.c 	if (xfs_bulkstat_already_done(breq->mp, breq->startino))
mp                250 fs/xfs/xfs_itable.c 	error = xfs_iwalk(breq->mp, NULL, breq->startino, breq->flags,
mp                271 fs/xfs/xfs_itable.c 	struct xfs_mount		*mp,
mp                293 fs/xfs/xfs_itable.c 	bs1->bs_extsize = XFS_FSB_TO_B(mp, bstat->bs_extsize_blks);
mp                301 fs/xfs/xfs_itable.c 	bs1->bs_cowextsize = XFS_FSB_TO_B(mp, bstat->bs_cowextsize_blks);
mp                329 fs/xfs/xfs_itable.c 	struct xfs_mount	*mp,
mp                336 fs/xfs/xfs_itable.c 		.xi_startino	= XFS_AGINO_TO_INO(mp, agno, irec->ir_startino),
mp                348 fs/xfs/xfs_itable.c 	ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) +
mp                367 fs/xfs/xfs_itable.c 	if (xfs_bulkstat_already_done(breq->mp, breq->startino))
mp                370 fs/xfs/xfs_itable.c 	error = xfs_inobt_walk(breq->mp, NULL, breq->startino, breq->flags,
mp                 10 fs/xfs/xfs_itable.h 	struct xfs_mount	*mp;
mp                 54 fs/xfs/xfs_itable.h void xfs_bulkstat_to_bstat(struct xfs_mount *mp, struct xfs_bstat *bs1,
mp                 52 fs/xfs/xfs_iwalk.c 	struct xfs_mount		*mp;
mp                 89 fs/xfs/xfs_iwalk.c 	struct xfs_mount		*mp,
mp                 93 fs/xfs/xfs_iwalk.c 	struct xfs_ino_geometry		*igeo = M_IGEO(mp);
mp                 98 fs/xfs/xfs_iwalk.c 	agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino);
mp                106 fs/xfs/xfs_iwalk.c 			xfs_btree_reada_bufs(mp, agno, agbno,
mp                176 fs/xfs/xfs_iwalk.c 	struct xfs_mount		*mp = iwag->mp;
mp                183 fs/xfs/xfs_iwalk.c 	agno = XFS_INO_TO_AGNO(mp, iwag->startino);
mp                187 fs/xfs/xfs_iwalk.c 		trace_xfs_iwalk_ag_rec(mp, agno, irec);
mp                193 fs/xfs/xfs_iwalk.c 			error = iwag->inobt_walk_fn(mp, tp, agno, irec,
mp                211 fs/xfs/xfs_iwalk.c 			ino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino + j);
mp                212 fs/xfs/xfs_iwalk.c 			error = iwag->iwalk_fn(mp, tp, ino, iwag->data);
mp                263 fs/xfs/xfs_iwalk.c 	struct xfs_mount	*mp = iwag->mp;
mp                270 fs/xfs/xfs_iwalk.c 	error = xfs_inobt_cur(mp, tp, agno, XFS_BTNUM_INO, curpp, agi_bpp);
mp                301 fs/xfs/xfs_iwalk.c 	XFS_WANT_CORRUPTED_RETURN(mp, *has_more == 1);
mp                346 fs/xfs/xfs_iwalk.c 	struct xfs_mount		*mp = iwag->mp;
mp                370 fs/xfs/xfs_iwalk.c 	error = xfs_inobt_cur(mp, tp, agno, XFS_BTNUM_INO, curpp, agi_bpp);
mp                382 fs/xfs/xfs_iwalk.c 	struct xfs_mount		*mp = iwag->mp;
mp                392 fs/xfs/xfs_iwalk.c 	agno = XFS_INO_TO_AGNO(mp, iwag->startino);
mp                393 fs/xfs/xfs_iwalk.c 	agino = XFS_INO_TO_AGINO(mp, iwag->startino);
mp                422 fs/xfs/xfs_iwalk.c 			xfs_iwalk_ichunk_ra(mp, agno, irec);
mp                519 fs/xfs/xfs_iwalk.c 	struct xfs_mount	*mp,
mp                528 fs/xfs/xfs_iwalk.c 		.mp		= mp,
mp                538 fs/xfs/xfs_iwalk.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, startino);
mp                541 fs/xfs/xfs_iwalk.c 	ASSERT(agno < mp->m_sb.sb_agcount);
mp                548 fs/xfs/xfs_iwalk.c 	for (; agno < mp->m_sb.sb_agcount; agno++) {
mp                552 fs/xfs/xfs_iwalk.c 		iwag.startino = XFS_AGINO_TO_INO(mp, agno + 1, 0);
mp                564 fs/xfs/xfs_iwalk.c 	struct xfs_mount	*mp,
mp                591 fs/xfs/xfs_iwalk.c 	struct xfs_mount	*mp,
mp                600 fs/xfs/xfs_iwalk.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, startino);
mp                604 fs/xfs/xfs_iwalk.c 	ASSERT(agno < mp->m_sb.sb_agcount);
mp                607 fs/xfs/xfs_iwalk.c 	nr_threads = xfs_pwork_guess_datadev_parallelism(mp);
mp                608 fs/xfs/xfs_iwalk.c 	error = xfs_pwork_init(mp, &pctl, xfs_iwalk_ag_work, "xfs_iwalk",
mp                613 fs/xfs/xfs_iwalk.c 	for (; agno < mp->m_sb.sb_agcount; agno++) {
mp                620 fs/xfs/xfs_iwalk.c 		iwag->mp = mp;
mp                626 fs/xfs/xfs_iwalk.c 		startino = XFS_AGINO_TO_INO(mp, agno + 1, 0);
mp                682 fs/xfs/xfs_iwalk.c 	struct xfs_mount	*mp,
mp                691 fs/xfs/xfs_iwalk.c 		.mp		= mp,
mp                699 fs/xfs/xfs_iwalk.c 	xfs_agnumber_t		agno = XFS_INO_TO_AGNO(mp, startino);
mp                702 fs/xfs/xfs_iwalk.c 	ASSERT(agno < mp->m_sb.sb_agcount);
mp                709 fs/xfs/xfs_iwalk.c 	for (; agno < mp->m_sb.sb_agcount; agno++) {
mp                713 fs/xfs/xfs_iwalk.c 		iwag.startino = XFS_AGINO_TO_INO(mp, agno + 1, 0);
mp                 18 fs/xfs/xfs_iwalk.h typedef int (*xfs_iwalk_fn)(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 21 fs/xfs/xfs_iwalk.h int xfs_iwalk(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t startino,
mp                 24 fs/xfs/xfs_iwalk.h int xfs_iwalk_threaded(struct xfs_mount *mp, xfs_ino_t startino,
mp                 34 fs/xfs/xfs_iwalk.h typedef int (*xfs_inobt_walk_fn)(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 39 fs/xfs/xfs_iwalk.h int xfs_inobt_walk(struct xfs_mount *mp, struct xfs_trans *tp,
mp                257 fs/xfs/xfs_linux.h #define XFS_IS_REALTIME_MOUNT(mp) ((mp)->m_rtdev_targp ? 1 : 0)
mp                260 fs/xfs/xfs_linux.h #define XFS_IS_REALTIME_MOUNT(mp) (0)
mp                 36 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp                377 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp                380 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp                387 fs/xfs/xfs_log.c 	XFS_STATS_INC(mp, xs_try_logspace);
mp                438 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp                445 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp                455 fs/xfs/xfs_log.c 	XFS_STATS_INC(mp, xs_try_logspace);
mp                512 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp                517 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp                557 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp                560 fs/xfs/xfs_log.c 	if (xlog_state_release_iclog(mp->m_log, iclog)) {
mp                561 fs/xfs/xfs_log.c 		xfs_force_shutdown(mp, SHUTDOWN_LOG_IO_ERROR);
mp                580 fs/xfs/xfs_log.c 	xfs_mount_t	*mp,
mp                585 fs/xfs/xfs_log.c 	bool		fatal = xfs_sb_version_hascrc(&mp->m_sb);
mp                589 fs/xfs/xfs_log.c 	if (!(mp->m_flags & XFS_MOUNT_NORECOVERY)) {
mp                590 fs/xfs/xfs_log.c 		xfs_notice(mp, "Mounting V%d Filesystem",
mp                591 fs/xfs/xfs_log.c 			   XFS_SB_VERSION_NUM(&mp->m_sb));
mp                593 fs/xfs/xfs_log.c 		xfs_notice(mp,
mp                595 fs/xfs/xfs_log.c 			   XFS_SB_VERSION_NUM(&mp->m_sb));
mp                596 fs/xfs/xfs_log.c 		ASSERT(mp->m_flags & XFS_MOUNT_RDONLY);
mp                599 fs/xfs/xfs_log.c 	mp->m_log = xlog_alloc_log(mp, log_target, blk_offset, num_bblks);
mp                600 fs/xfs/xfs_log.c 	if (IS_ERR(mp->m_log)) {
mp                601 fs/xfs/xfs_log.c 		error = PTR_ERR(mp->m_log);
mp                619 fs/xfs/xfs_log.c 	min_logfsbs = xfs_log_calc_minimum_size(mp);
mp                621 fs/xfs/xfs_log.c 	if (mp->m_sb.sb_logblocks < min_logfsbs) {
mp                622 fs/xfs/xfs_log.c 		xfs_warn(mp,
mp                624 fs/xfs/xfs_log.c 			 mp->m_sb.sb_logblocks, min_logfsbs);
mp                626 fs/xfs/xfs_log.c 	} else if (mp->m_sb.sb_logblocks > XFS_MAX_LOG_BLOCKS) {
mp                627 fs/xfs/xfs_log.c 		xfs_warn(mp,
mp                629 fs/xfs/xfs_log.c 			 mp->m_sb.sb_logblocks, XFS_MAX_LOG_BLOCKS);
mp                631 fs/xfs/xfs_log.c 	} else if (XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks) > XFS_MAX_LOG_BYTES) {
mp                632 fs/xfs/xfs_log.c 		xfs_warn(mp,
mp                634 fs/xfs/xfs_log.c 			 XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks),
mp                637 fs/xfs/xfs_log.c 	} else if (mp->m_sb.sb_logsunit > 1 &&
mp                638 fs/xfs/xfs_log.c 		   mp->m_sb.sb_logsunit % mp->m_sb.sb_blocksize) {
mp                639 fs/xfs/xfs_log.c 		xfs_warn(mp,
mp                641 fs/xfs/xfs_log.c 			 mp->m_sb.sb_logsunit);
mp                651 fs/xfs/xfs_log.c 			xfs_crit(mp, "AAIEEE! Log failed size checks. Abort!");
mp                655 fs/xfs/xfs_log.c 		xfs_crit(mp, "Log size out of supported range.");
mp                656 fs/xfs/xfs_log.c 		xfs_crit(mp,
mp                663 fs/xfs/xfs_log.c 	error = xfs_trans_ail_init(mp);
mp                665 fs/xfs/xfs_log.c 		xfs_warn(mp, "AIL initialisation failed: error %d", error);
mp                668 fs/xfs/xfs_log.c 	mp->m_log->l_ailp = mp->m_ail;
mp                674 fs/xfs/xfs_log.c 	if (!(mp->m_flags & XFS_MOUNT_NORECOVERY)) {
mp                675 fs/xfs/xfs_log.c 		int	readonly = (mp->m_flags & XFS_MOUNT_RDONLY);
mp                678 fs/xfs/xfs_log.c 			mp->m_flags &= ~XFS_MOUNT_RDONLY;
mp                680 fs/xfs/xfs_log.c 		error = xlog_recover(mp->m_log);
mp                683 fs/xfs/xfs_log.c 			mp->m_flags |= XFS_MOUNT_RDONLY;
mp                685 fs/xfs/xfs_log.c 			xfs_warn(mp, "log mount/recovery failed: error %d",
mp                687 fs/xfs/xfs_log.c 			xlog_recover_cancel(mp->m_log);
mp                692 fs/xfs/xfs_log.c 	error = xfs_sysfs_init(&mp->m_log->l_kobj, &xfs_log_ktype, &mp->m_kobj,
mp                698 fs/xfs/xfs_log.c 	mp->m_log->l_flags &= ~XLOG_ACTIVE_RECOVERY;
mp                705 fs/xfs/xfs_log.c 	xlog_cil_init_post_recovery(mp->m_log);
mp                710 fs/xfs/xfs_log.c 	xfs_trans_ail_destroy(mp);
mp                712 fs/xfs/xfs_log.c 	xlog_dealloc_log(mp->m_log);
mp                729 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp                732 fs/xfs/xfs_log.c 	bool	readonly = (mp->m_flags & XFS_MOUNT_RDONLY);
mp                733 fs/xfs/xfs_log.c 	bool	recovered = mp->m_log->l_flags & XLOG_RECOVERY_NEEDED;
mp                735 fs/xfs/xfs_log.c 	if (mp->m_flags & XFS_MOUNT_NORECOVERY) {
mp                736 fs/xfs/xfs_log.c 		ASSERT(mp->m_flags & XFS_MOUNT_RDONLY);
mp                740 fs/xfs/xfs_log.c 		mp->m_flags &= ~XFS_MOUNT_RDONLY;
mp                763 fs/xfs/xfs_log.c 	mp->m_super->s_flags |= SB_ACTIVE;
mp                764 fs/xfs/xfs_log.c 	error = xlog_recover_finish(mp->m_log);
mp                766 fs/xfs/xfs_log.c 		xfs_log_work_queue(mp);
mp                767 fs/xfs/xfs_log.c 	mp->m_super->s_flags &= ~SB_ACTIVE;
mp                768 fs/xfs/xfs_log.c 	evict_inodes(mp->m_super);
mp                780 fs/xfs/xfs_log.c 		xfs_log_force(mp, XFS_LOG_SYNC);
mp                781 fs/xfs/xfs_log.c 		xfs_ail_push_all_sync(mp->m_ail);
mp                783 fs/xfs/xfs_log.c 	xfs_wait_buftarg(mp->m_ddev_targp);
mp                786 fs/xfs/xfs_log.c 		mp->m_flags |= XFS_MOUNT_RDONLY;
mp                797 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp                799 fs/xfs/xfs_log.c 	xlog_recover_cancel(mp->m_log);
mp                800 fs/xfs/xfs_log.c 	xfs_log_unmount(mp);
mp                814 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp                829 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp                836 fs/xfs/xfs_log.c 	error = xfs_log_reserve(mp, 600, 1, &tic, XFS_LOG, 0);
mp                846 fs/xfs/xfs_log.c 	if (XFS_TEST_ERROR(xfs_fs_has_sickness(mp, XFS_SICK_FS_COUNTERS), mp,
mp                848 fs/xfs/xfs_log.c 		xfs_alert(mp, "%s: will fix summary counters at next mount",
mp                863 fs/xfs/xfs_log.c 		xfs_alert(mp, "%s: unmount record failed", __func__);
mp                902 fs/xfs/xfs_log.c xfs_log_unmount_write(xfs_mount_t *mp)
mp                904 fs/xfs/xfs_log.c 	struct xlog	 *log = mp->m_log;
mp                915 fs/xfs/xfs_log.c 	if (mp->m_flags & XFS_MOUNT_NORECOVERY ||
mp                917 fs/xfs/xfs_log.c 		ASSERT(mp->m_flags & XFS_MOUNT_RDONLY);
mp                921 fs/xfs/xfs_log.c 	error = xfs_log_force(mp, XFS_LOG_SYNC);
mp                935 fs/xfs/xfs_log.c 		xfs_log_write_unmount_record(mp);
mp                985 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp                987 fs/xfs/xfs_log.c 	cancel_delayed_work_sync(&mp->m_log->l_work);
mp                988 fs/xfs/xfs_log.c 	xfs_log_force(mp, XFS_LOG_SYNC);
mp                997 fs/xfs/xfs_log.c 	xfs_ail_push_all_sync(mp->m_ail);
mp                998 fs/xfs/xfs_log.c 	xfs_wait_buftarg(mp->m_ddev_targp);
mp                999 fs/xfs/xfs_log.c 	xfs_buf_lock(mp->m_sb_bp);
mp               1000 fs/xfs/xfs_log.c 	xfs_buf_unlock(mp->m_sb_bp);
mp               1002 fs/xfs/xfs_log.c 	xfs_log_unmount_write(mp);
mp               1014 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp               1016 fs/xfs/xfs_log.c 	xfs_log_quiesce(mp);
mp               1018 fs/xfs/xfs_log.c 	xfs_trans_ail_destroy(mp);
mp               1020 fs/xfs/xfs_log.c 	xfs_sysfs_del(&mp->m_log->l_kobj);
mp               1022 fs/xfs/xfs_log.c 	xlog_dealloc_log(mp->m_log);
mp               1027 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               1032 fs/xfs/xfs_log.c 	item->li_mountp = mp;
mp               1033 fs/xfs/xfs_log.c 	item->li_ailp = mp->m_ail;
mp               1049 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp               1051 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp               1094 fs/xfs/xfs_log.c xfs_log_need_covered(xfs_mount_t *mp)
mp               1096 fs/xfs/xfs_log.c 	struct xlog	*log = mp->m_log;
mp               1099 fs/xfs/xfs_log.c 	if (!xfs_fs_writable(mp, SB_FREEZE_WRITE))
mp               1137 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp               1139 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp               1143 fs/xfs/xfs_log.c 	assert_spin_locked(&mp->m_ail->ail_lock);
mp               1150 fs/xfs/xfs_log.c 	lip = xfs_ail_min(mp->m_ail);
mp               1162 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp               1166 fs/xfs/xfs_log.c 	spin_lock(&mp->m_ail->ail_lock);
mp               1167 fs/xfs/xfs_log.c 	tail_lsn = xlog_assign_tail_lsn_locked(mp);
mp               1168 fs/xfs/xfs_log.c 	spin_unlock(&mp->m_ail->ail_lock);
mp               1283 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               1286 fs/xfs/xfs_log.c 	if (mp->m_logbufs <= 0)
mp               1287 fs/xfs/xfs_log.c 		mp->m_logbufs = XLOG_MAX_ICLOGS;
mp               1288 fs/xfs/xfs_log.c 	if (mp->m_logbsize <= 0)
mp               1289 fs/xfs/xfs_log.c 		mp->m_logbsize = XLOG_BIG_RECORD_BSIZE;
mp               1291 fs/xfs/xfs_log.c 	log->l_iclog_bufs = mp->m_logbufs;
mp               1292 fs/xfs/xfs_log.c 	log->l_iclog_size = mp->m_logbsize;
mp               1298 fs/xfs/xfs_log.c 		DIV_ROUND_UP(mp->m_logbsize, XLOG_HEADER_CYCLE_SIZE);
mp               1304 fs/xfs/xfs_log.c 	struct xfs_mount        *mp)
mp               1306 fs/xfs/xfs_log.c 	queue_delayed_work(mp->m_sync_workqueue, &mp->m_log->l_work,
mp               1321 fs/xfs/xfs_log.c 	struct xfs_mount	*mp = log->l_mp;
mp               1324 fs/xfs/xfs_log.c 	if (xfs_log_need_covered(mp)) {
mp               1336 fs/xfs/xfs_log.c 		xfs_sync_sb(mp, true);
mp               1338 fs/xfs/xfs_log.c 		xfs_log_force(mp, 0);
mp               1341 fs/xfs/xfs_log.c 	xfs_ail_push_all(mp->m_ail);
mp               1344 fs/xfs/xfs_log.c 	xfs_log_work_queue(mp);
mp               1354 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               1369 fs/xfs/xfs_log.c 		xfs_warn(mp, "Log allocation failed: No memory!");
mp               1373 fs/xfs/xfs_log.c 	log->l_mp	   = mp;
mp               1392 fs/xfs/xfs_log.c 	if (xfs_sb_version_hassector(&mp->m_sb)) {
mp               1393 fs/xfs/xfs_log.c 	        log2_size = mp->m_sb.sb_logsectlog;
mp               1395 fs/xfs/xfs_log.c 			xfs_warn(mp, "Log sector size too small (0x%x < 0x%x)",
mp               1401 fs/xfs/xfs_log.c 		if (log2_size > mp->m_sectbb_log) {
mp               1402 fs/xfs/xfs_log.c 			xfs_warn(mp, "Log sector size too large (0x%x > 0x%x)",
mp               1403 fs/xfs/xfs_log.c 				log2_size, mp->m_sectbb_log);
mp               1409 fs/xfs/xfs_log.c 			    !xfs_sb_version_haslogv2(&mp->m_sb)) {
mp               1410 fs/xfs/xfs_log.c 			xfs_warn(mp,
mp               1418 fs/xfs/xfs_log.c 	xlog_get_iclog_buffer_size(mp, log);
mp               1433 fs/xfs/xfs_log.c 		int align_mask = xfs_buftarg_dma_alignment(mp->m_logdev_targp);
mp               1460 fs/xfs/xfs_log.c 		memcpy(&head->h_fs_uuid, &mp->m_sb.sb_uuid, sizeof(uuid_t));
mp               1482 fs/xfs/xfs_log.c 			mp->m_fsname);
mp               1519 fs/xfs/xfs_log.c 	struct xfs_mount *mp = log->l_mp;
mp               1535 fs/xfs/xfs_log.c 		xfs_force_shutdown(mp, SHUTDOWN_LOG_IO_ERROR);
mp               1999 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               2038 fs/xfs/xfs_log.c 	xfs_warn(mp, "ticket reservation summary:");
mp               2039 fs/xfs/xfs_log.c 	xfs_warn(mp, "  unit res    = %d bytes",
mp               2041 fs/xfs/xfs_log.c 	xfs_warn(mp, "  current res = %d bytes",
mp               2043 fs/xfs/xfs_log.c 	xfs_warn(mp, "  total reg   = %u bytes (o/flow = %u bytes)",
mp               2045 fs/xfs/xfs_log.c 	xfs_warn(mp, "  ophdrs      = %u (ophdr space = %u bytes)",
mp               2047 fs/xfs/xfs_log.c 	xfs_warn(mp, "  ophdr + reg = %u bytes",
mp               2049 fs/xfs/xfs_log.c 	xfs_warn(mp, "  num regions = %u",
mp               2054 fs/xfs/xfs_log.c 		xfs_warn(mp, "region[%u]: %s - %u bytes", i,
mp               2068 fs/xfs/xfs_log.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               2072 fs/xfs/xfs_log.c 	xfs_warn(mp, "transaction summary:");
mp               2073 fs/xfs/xfs_log.c 	xfs_warn(mp, "  log res   = %d", tp->t_log_res);
mp               2074 fs/xfs/xfs_log.c 	xfs_warn(mp, "  log count = %d", tp->t_log_count);
mp               2075 fs/xfs/xfs_log.c 	xfs_warn(mp, "  flags     = 0x%x", tp->t_flags);
mp               2077 fs/xfs/xfs_log.c 	xlog_print_tic_res(mp, tp->t_ticket);
mp               2085 fs/xfs/xfs_log.c 		xfs_warn(mp, "log item: ");
mp               2086 fs/xfs/xfs_log.c 		xfs_warn(mp, "  type	= 0x%x", lip->li_type);
mp               2087 fs/xfs/xfs_log.c 		xfs_warn(mp, "  flags	= 0x%lx", lip->li_flags);
mp               2090 fs/xfs/xfs_log.c 		xfs_warn(mp, "  niovecs	= %d", lv->lv_niovecs);
mp               2091 fs/xfs/xfs_log.c 		xfs_warn(mp, "  size	= %d", lv->lv_size);
mp               2092 fs/xfs/xfs_log.c 		xfs_warn(mp, "  bytes	= %d", lv->lv_bytes);
mp               2093 fs/xfs/xfs_log.c 		xfs_warn(mp, "  buf len	= %d", lv->lv_buf_len);
mp               2100 fs/xfs/xfs_log.c 			xfs_warn(mp, "  iovec[%d]", i);
mp               2101 fs/xfs/xfs_log.c 			xfs_warn(mp, "    type	= 0x%x", vec->i_type);
mp               2102 fs/xfs/xfs_log.c 			xfs_warn(mp, "    len	= %d", vec->i_len);
mp               2103 fs/xfs/xfs_log.c 			xfs_warn(mp, "    first %d bytes of iovec[%d]:", dumplen, i);
mp               3298 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               3301 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp               3305 fs/xfs/xfs_log.c 	XFS_STATS_INC(mp, xs_log_force);
mp               3306 fs/xfs/xfs_log.c 	trace_xfs_log_force(mp, 0, _RET_IP_);
mp               3374 fs/xfs/xfs_log.c 	XFS_STATS_INC(mp, xs_log_force_sleep);
mp               3390 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               3396 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp               3434 fs/xfs/xfs_log.c 			XFS_STATS_INC(mp, xs_log_force_sleep);
mp               3457 fs/xfs/xfs_log.c 	XFS_STATS_INC(mp, xs_log_force_sleep);
mp               3487 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               3495 fs/xfs/xfs_log.c 	XFS_STATS_INC(mp, xs_log_force);
mp               3496 fs/xfs/xfs_log.c 	trace_xfs_log_force(mp, lsn, _RET_IP_);
mp               3498 fs/xfs/xfs_log.c 	lsn = xlog_cil_force_lsn(mp->m_log, lsn);
mp               3502 fs/xfs/xfs_log.c 	ret = __xfs_log_force_lsn(mp, lsn, flags, log_flushed, false);
mp               3504 fs/xfs/xfs_log.c 		ret = __xfs_log_force_lsn(mp, lsn, flags, log_flushed, true);
mp               3562 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               3565 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp               3642 fs/xfs/xfs_log.c 	if (xfs_sb_version_haslogv2(&mp->m_sb) && mp->m_sb.sb_logsunit > 1) {
mp               3644 fs/xfs/xfs_log.c 		unit_bytes += 2 * mp->m_sb.sb_logsunit;
mp               3936 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               3942 fs/xfs/xfs_log.c 	log = mp->m_log;
mp               3950 fs/xfs/xfs_log.c 		mp->m_flags |= XFS_MOUNT_FS_SHUTDOWN;
mp               3951 fs/xfs/xfs_log.c 		if (mp->m_sb_bp)
mp               3952 fs/xfs/xfs_log.c 			mp->m_sb_bp->b_flags |= XBF_DONE;
mp               3973 fs/xfs/xfs_log.c 		xfs_log_force(mp, XFS_LOG_SYNC);
mp               3980 fs/xfs/xfs_log.c 	mp->m_flags |= XFS_MOUNT_FS_SHUTDOWN;
mp               3981 fs/xfs/xfs_log.c 	if (mp->m_sb_bp)
mp               3982 fs/xfs/xfs_log.c 		mp->m_sb_bp->b_flags |= XBF_DONE;
mp               4054 fs/xfs/xfs_log.c 	struct xfs_mount	*mp,
mp               4057 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp               4065 fs/xfs/xfs_log.c 	if (mp->m_flags & XFS_MOUNT_NORECOVERY)
mp               4075 fs/xfs/xfs_log.c 	valid = xlog_valid_lsn(mp->m_log, lsn);
mp               4080 fs/xfs/xfs_log.c 		xfs_warn(mp,
mp               4093 fs/xfs/xfs_log.c 	struct xfs_mount	*mp)
mp               4095 fs/xfs/xfs_log.c 	struct xlog		*log = mp->m_log;
mp                108 fs/xfs/xfs_log.h xfs_lsn_t xfs_log_done(struct xfs_mount *mp,
mp                112 fs/xfs/xfs_log.h int	  xfs_log_force(struct xfs_mount *mp, uint flags);
mp                113 fs/xfs/xfs_log.h int	  xfs_log_force_lsn(struct xfs_mount *mp, xfs_lsn_t lsn, uint flags,
mp                115 fs/xfs/xfs_log.h int	  xfs_log_mount(struct xfs_mount	*mp,
mp                119 fs/xfs/xfs_log.h int	  xfs_log_mount_finish(struct xfs_mount *mp);
mp                121 fs/xfs/xfs_log.h xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp);
mp                122 fs/xfs/xfs_log.h xfs_lsn_t xlog_assign_tail_lsn_locked(struct xfs_mount *mp);
mp                123 fs/xfs/xfs_log.h void	  xfs_log_space_wake(struct xfs_mount *mp);
mp                124 fs/xfs/xfs_log.h int	  xfs_log_release_iclog(struct xfs_mount *mp,
mp                126 fs/xfs/xfs_log.h int	  xfs_log_reserve(struct xfs_mount *mp,
mp                132 fs/xfs/xfs_log.h int	  xfs_log_regrant(struct xfs_mount *mp, struct xlog_ticket *tic);
mp                133 fs/xfs/xfs_log.h void      xfs_log_unmount(struct xfs_mount *mp);
mp                134 fs/xfs/xfs_log.h int	  xfs_log_force_umount(struct xfs_mount *mp, int logerror);
mp                139 fs/xfs/xfs_log.h void	xfs_log_commit_cil(struct xfs_mount *mp, struct xfs_trans *tp,
mp                144 fs/xfs/xfs_log.h void	xfs_log_work_queue(struct xfs_mount *mp);
mp                145 fs/xfs/xfs_log.h void	xfs_log_quiesce(struct xfs_mount *mp);
mp                506 fs/xfs/xfs_log_cil.c 	struct xfs_mount	*mp = ctx->cil->xc_log->l_mp;
mp                508 fs/xfs/xfs_log_cil.c 	xfs_extent_busy_clear(mp, &ctx->busy_extents, false);
mp                530 fs/xfs/xfs_log_cil.c 	struct xfs_mount	*mp,
mp                539 fs/xfs/xfs_log_cil.c 	ASSERT(mp->m_flags & XFS_MOUNT_DISCARD);
mp                543 fs/xfs/xfs_log_cil.c 		trace_xfs_discard_extent(mp, busyp->agno, busyp->bno,
mp                546 fs/xfs/xfs_log_cil.c 		error = __blkdev_issue_discard(mp->m_ddev_targp->bt_bdev,
mp                547 fs/xfs/xfs_log_cil.c 				XFS_AGB_TO_DADDR(mp, busyp->agno, busyp->bno),
mp                548 fs/xfs/xfs_log_cil.c 				XFS_FSB_TO_BB(mp, busyp->length),
mp                551 fs/xfs/xfs_log_cil.c 			xfs_info(mp,
mp                580 fs/xfs/xfs_log_cil.c 	struct xfs_mount	*mp = ctx->cil->xc_log->l_mp;
mp                599 fs/xfs/xfs_log_cil.c 	xfs_extent_busy_clear(mp, &ctx->busy_extents,
mp                600 fs/xfs/xfs_log_cil.c 			     (mp->m_flags & XFS_MOUNT_DISCARD) && !abort);
mp                609 fs/xfs/xfs_log_cil.c 		xlog_discard_busy_extents(mp, ctx);
mp                994 fs/xfs/xfs_log_cil.c 	struct xfs_mount	*mp,
mp                999 fs/xfs/xfs_log_cil.c 	struct xlog		*log = mp->m_log;
mp               1020 fs/xfs/xfs_log_cil.c 	xfs_log_done(mp, tp->t_ticket, NULL, regrant);
mp                446 fs/xfs/xfs_log_priv.h void	xlog_print_tic_res(struct xfs_mount *mp, struct xlog_ticket *ticket);
mp                220 fs/xfs/xfs_log_recover.c 	xfs_mount_t		*mp,
mp                223 fs/xfs/xfs_log_recover.c 	xfs_debug(mp, "%s:  SB : uuid = %pU, fmt = %d",
mp                224 fs/xfs/xfs_log_recover.c 		__func__, &mp->m_sb.sb_uuid, XLOG_FMT);
mp                225 fs/xfs/xfs_log_recover.c 	xfs_debug(mp, "    log : uuid = %pU, fmt = %d",
mp                229 fs/xfs/xfs_log_recover.c #define xlog_header_check_dump(mp, head)
mp                237 fs/xfs/xfs_log_recover.c 	xfs_mount_t		*mp,
mp                248 fs/xfs/xfs_log_recover.c 		xfs_warn(mp,
mp                250 fs/xfs/xfs_log_recover.c 		xlog_header_check_dump(mp, head);
mp                252 fs/xfs/xfs_log_recover.c 				 XFS_ERRLEVEL_HIGH, mp);
mp                254 fs/xfs/xfs_log_recover.c 	} else if (unlikely(!uuid_equal(&mp->m_sb.sb_uuid, &head->h_fs_uuid))) {
mp                255 fs/xfs/xfs_log_recover.c 		xfs_warn(mp,
mp                257 fs/xfs/xfs_log_recover.c 		xlog_header_check_dump(mp, head);
mp                259 fs/xfs/xfs_log_recover.c 				 XFS_ERRLEVEL_HIGH, mp);
mp                270 fs/xfs/xfs_log_recover.c 	xfs_mount_t		*mp,
mp                281 fs/xfs/xfs_log_recover.c 		xfs_warn(mp, "null uuid in log - IRIX style log");
mp                282 fs/xfs/xfs_log_recover.c 	} else if (unlikely(!uuid_equal(&mp->m_sb.sb_uuid, &head->h_fs_uuid))) {
mp                283 fs/xfs/xfs_log_recover.c 		xfs_warn(mp, "log has mismatched uuid - can't recover");
mp                284 fs/xfs/xfs_log_recover.c 		xlog_header_check_dump(mp, head);
mp                286 fs/xfs/xfs_log_recover.c 				 XFS_ERRLEVEL_HIGH, mp);
mp               2062 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp,
mp               2078 fs/xfs/xfs_log_recover.c 	trace_xfs_log_recover_buf_inode_buf(mp->m_log, buf_f);
mp               2084 fs/xfs/xfs_log_recover.c 	if (xfs_sb_version_hascrc(&mp->m_sb))
mp               2087 fs/xfs/xfs_log_recover.c 	inodes_per_buf = BBTOB(bp->b_length) >> mp->m_sb.sb_inodelog;
mp               2089 fs/xfs/xfs_log_recover.c 		next_unlinked_offset = (i * mp->m_sb.sb_inodesize) +
mp               2139 fs/xfs/xfs_log_recover.c 			xfs_alert(mp,
mp               2144 fs/xfs/xfs_log_recover.c 					 XFS_ERRLEVEL_LOW, mp);
mp               2156 fs/xfs/xfs_log_recover.c 		xfs_dinode_calc_crc(mp,
mp               2157 fs/xfs/xfs_log_recover.c 				xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize));
mp               2186 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp,
mp               2197 fs/xfs/xfs_log_recover.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               2264 fs/xfs/xfs_log_recover.c 		if (xfs_sb_version_hasmetauuid(&mp->m_sb))
mp               2274 fs/xfs/xfs_log_recover.c 		if (!uuid_equal(&mp->m_sb.sb_meta_uuid, uuid))
mp               2292 fs/xfs/xfs_log_recover.c 		if (!uuid_equal(&mp->m_sb.sb_uuid, uuid))
mp               2334 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp,
mp               2353 fs/xfs/xfs_log_recover.c 	if (!xfs_sb_version_hascrc(&mp->m_sb))
mp               2424 fs/xfs/xfs_log_recover.c 		xfs_alert(mp,
mp               2521 fs/xfs/xfs_log_recover.c 		xfs_warn(mp, "Unknown buffer type %d!",
mp               2535 fs/xfs/xfs_log_recover.c 		xfs_warn(mp, warnmsg);
mp               2555 fs/xfs/xfs_log_recover.c 		xfs_buf_item_init(bp, mp);
mp               2569 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp,
mp               2580 fs/xfs/xfs_log_recover.c 	trace_xfs_log_recover_buf_reg_buf(mp->m_log, buf_f);
mp               2617 fs/xfs/xfs_log_recover.c 				xfs_alert(mp,
mp               2622 fs/xfs/xfs_log_recover.c 				xfs_alert(mp,
mp               2627 fs/xfs/xfs_log_recover.c 			fa = xfs_dquot_verify(mp, item->ri_buf[i].i_addr,
mp               2630 fs/xfs/xfs_log_recover.c 				xfs_alert(mp,
mp               2649 fs/xfs/xfs_log_recover.c 	xlog_recover_validate_buf_type(mp, bp, buf_f, current_lsn);
mp               2663 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               2676 fs/xfs/xfs_log_recover.c 	if (!mp->m_qflags)
mp               2692 fs/xfs/xfs_log_recover.c 	xlog_recover_do_reg_buffer(mp, item, bp, buf_f, NULLCOMMITLSN);
mp               2727 fs/xfs/xfs_log_recover.c 	xfs_mount_t		*mp = log->l_mp;
mp               2749 fs/xfs/xfs_log_recover.c 	bp = xfs_buf_read(mp->m_ddev_targp, buf_f->blf_blkno, buf_f->blf_len,
mp               2778 fs/xfs/xfs_log_recover.c 	lsn = xlog_recover_get_buf_lsn(mp, bp);
mp               2781 fs/xfs/xfs_log_recover.c 		xlog_recover_validate_buf_type(mp, bp, buf_f, NULLCOMMITLSN);
mp               2786 fs/xfs/xfs_log_recover.c 		error = xlog_recover_do_inode_buffer(mp, item, bp, buf_f);
mp               2793 fs/xfs/xfs_log_recover.c 		dirty = xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f);
mp               2797 fs/xfs/xfs_log_recover.c 		xlog_recover_do_reg_buffer(mp, item, bp, buf_f, current_lsn);
mp               2821 fs/xfs/xfs_log_recover.c 		ASSERT(bp->b_mount == mp);
mp               2863 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp,
mp               2873 fs/xfs/xfs_log_recover.c 	ip = xfs_inode_alloc(mp, in_f->ilf_ino);
mp               2919 fs/xfs/xfs_log_recover.c 	xfs_mount_t		*mp = log->l_mp;
mp               2954 fs/xfs/xfs_log_recover.c 	bp = xfs_buf_read(mp->m_ddev_targp, in_f->ilf_blkno, in_f->ilf_len, 0,
mp               2973 fs/xfs/xfs_log_recover.c 		xfs_alert(mp,
mp               2977 fs/xfs/xfs_log_recover.c 				 XFS_ERRLEVEL_LOW, mp);
mp               2983 fs/xfs/xfs_log_recover.c 		xfs_alert(mp,
mp               2987 fs/xfs/xfs_log_recover.c 				 XFS_ERRLEVEL_LOW, mp);
mp               3017 fs/xfs/xfs_log_recover.c 	if (!xfs_sb_version_hascrc(&mp->m_sb) &&
mp               3040 fs/xfs/xfs_log_recover.c 					 XFS_ERRLEVEL_LOW, mp, ldip,
mp               3042 fs/xfs/xfs_log_recover.c 			xfs_alert(mp,
mp               3054 fs/xfs/xfs_log_recover.c 					     XFS_ERRLEVEL_LOW, mp, ldip,
mp               3056 fs/xfs/xfs_log_recover.c 			xfs_alert(mp,
mp               3066 fs/xfs/xfs_log_recover.c 				     XFS_ERRLEVEL_LOW, mp, ldip,
mp               3068 fs/xfs/xfs_log_recover.c 		xfs_alert(mp,
mp               3077 fs/xfs/xfs_log_recover.c 	if (unlikely(ldip->di_forkoff > mp->m_sb.sb_inodesize)) {
mp               3079 fs/xfs/xfs_log_recover.c 				     XFS_ERRLEVEL_LOW, mp, ldip,
mp               3081 fs/xfs/xfs_log_recover.c 		xfs_alert(mp,
mp               3091 fs/xfs/xfs_log_recover.c 				     XFS_ERRLEVEL_LOW, mp, ldip,
mp               3093 fs/xfs/xfs_log_recover.c 		xfs_alert(mp,
mp               3123 fs/xfs/xfs_log_recover.c 		xfs_bmbt_to_bmdr(mp, (struct xfs_btree_block *)src, len,
mp               3125 fs/xfs/xfs_log_recover.c 				 XFS_DFORK_DSIZE(dip, mp));
mp               3155 fs/xfs/xfs_log_recover.c 			ASSERT(len <= XFS_DFORK_ASIZE(dip, mp));
mp               3161 fs/xfs/xfs_log_recover.c 			xfs_bmbt_to_bmdr(mp, (struct xfs_btree_block *)src,
mp               3163 fs/xfs/xfs_log_recover.c 					 XFS_DFORK_ASIZE(dip, mp));
mp               3178 fs/xfs/xfs_log_recover.c 		error = xfs_recover_inode_owner_change(mp, dip, in_f,
mp               3183 fs/xfs/xfs_log_recover.c 	ASSERT(bp->b_mount == mp);
mp               3232 fs/xfs/xfs_log_recover.c 	xfs_mount_t		*mp = log->l_mp;
mp               3244 fs/xfs/xfs_log_recover.c 	if (mp->m_qflags == 0)
mp               3278 fs/xfs/xfs_log_recover.c 	fa = xfs_dquot_verify(mp, recddq, dq_f->qlf_id, 0);
mp               3280 fs/xfs/xfs_log_recover.c 		xfs_alert(mp, "corrupt dquot ID 0x%x in log at %pS",
mp               3293 fs/xfs/xfs_log_recover.c 	error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dq_f->qlf_blkno,
mp               3294 fs/xfs/xfs_log_recover.c 				   XFS_FSB_TO_BB(mp, dq_f->qlf_len), 0, &bp,
mp               3306 fs/xfs/xfs_log_recover.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               3316 fs/xfs/xfs_log_recover.c 	if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp               3322 fs/xfs/xfs_log_recover.c 	ASSERT(bp->b_mount == mp);
mp               3345 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp = log->l_mp;
mp               3351 fs/xfs/xfs_log_recover.c 	efip = xfs_efi_init(mp, efi_formatp->efi_nextents);
mp               3441 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp = log->l_mp;
mp               3447 fs/xfs/xfs_log_recover.c 	ruip = xfs_rui_init(mp, rui_formatp->rui_nextents);
mp               3557 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp = log->l_mp;
mp               3563 fs/xfs/xfs_log_recover.c 	cuip = xfs_cui_init(mp, cui_formatp->cui_nextents);
mp               3674 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp = log->l_mp;
mp               3682 fs/xfs/xfs_log_recover.c 	buip = xfs_bui_init(mp);
mp               3770 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp = log->l_mp;
mp               3772 fs/xfs/xfs_log_recover.c 	struct xfs_ino_geometry	*igeo = M_IGEO(mp);
mp               3795 fs/xfs/xfs_log_recover.c 	if (agno >= mp->m_sb.sb_agcount) {
mp               3800 fs/xfs/xfs_log_recover.c 	if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) {
mp               3805 fs/xfs/xfs_log_recover.c 	if (isize != mp->m_sb.sb_inodesize) {
mp               3815 fs/xfs/xfs_log_recover.c 	if (!length || length >= mp->m_sb.sb_agblocks) {
mp               3832 fs/xfs/xfs_log_recover.c 	if ((count >> mp->m_sb.sb_inopblog) != length) {
mp               3845 fs/xfs/xfs_log_recover.c 	bb_per_cluster = XFS_FSB_TO_BB(mp, igeo->blocks_per_cluster);
mp               3850 fs/xfs/xfs_log_recover.c 		daddr = XFS_AGB_TO_DADDR(mp, agno,
mp               3869 fs/xfs/xfs_log_recover.c 			xfs_warn(mp,
mp               3876 fs/xfs/xfs_log_recover.c 	return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno,
mp               3886 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp = log->l_mp;
mp               3893 fs/xfs/xfs_log_recover.c 	xfs_buf_readahead(mp->m_ddev_targp, buf_f->blf_blkno,
mp               3904 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp = log->l_mp;
mp               3920 fs/xfs/xfs_log_recover.c 	xfs_buf_readahead(mp->m_ddev_targp, ilfp->ilf_blkno,
mp               3929 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp = log->l_mp;
mp               3936 fs/xfs/xfs_log_recover.c 	if (mp->m_qflags == 0)
mp               3954 fs/xfs/xfs_log_recover.c 	len = XFS_FSB_TO_BB(mp, dq_f->qlf_len);
mp               3958 fs/xfs/xfs_log_recover.c 	xfs_buf_readahead(mp->m_ddev_targp, dq_f->qlf_blkno, len,
mp               4569 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4584 fs/xfs/xfs_log_recover.c 	error = xfs_efi_recover(mp, efip);
mp               4593 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4609 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4624 fs/xfs/xfs_log_recover.c 	error = xfs_rui_recover(mp, ruip);
mp               4633 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4673 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4713 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4745 fs/xfs/xfs_log_recover.c 	struct xfs_mount	*mp = parent_tp->t_mountp;
mp               4759 fs/xfs/xfs_log_recover.c 	freeblks = percpu_counter_sum(&mp->m_fdblocks);
mp               4764 fs/xfs/xfs_log_recover.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, resblks,
mp               4932 fs/xfs/xfs_log_recover.c 	xfs_mount_t	*mp,
mp               4942 fs/xfs/xfs_log_recover.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_clearagi, 0, 0, 0, &tp);
mp               4946 fs/xfs/xfs_log_recover.c 	error = xfs_read_agi(mp, tp, agno, &agibp);
mp               4965 fs/xfs/xfs_log_recover.c 	xfs_warn(mp, "%s: failed to clear agi %d. Continuing.", __func__, agno);
mp               4971 fs/xfs/xfs_log_recover.c 	struct xfs_mount		*mp,
mp               4982 fs/xfs/xfs_log_recover.c 	ino = XFS_AGINO_TO_INO(mp, agno, agino);
mp               4983 fs/xfs/xfs_log_recover.c 	error = xfs_iget(mp, NULL, ino, 0, 0, &ip);
mp               4990 fs/xfs/xfs_log_recover.c 	error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &ibp, 0, 0);
mp               5022 fs/xfs/xfs_log_recover.c 	xlog_recover_clear_agi_bucket(mp, agno, bucket);
mp               5053 fs/xfs/xfs_log_recover.c 	xfs_mount_t	*mp;
mp               5061 fs/xfs/xfs_log_recover.c 	mp = log->l_mp;
mp               5063 fs/xfs/xfs_log_recover.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp               5067 fs/xfs/xfs_log_recover.c 		error = xfs_read_agi(mp, NULL, agno, &agibp);
mp               5092 fs/xfs/xfs_log_recover.c 				agino = xlog_recover_process_one_iunlink(mp,
mp               5585 fs/xfs/xfs_log_recover.c 	struct xfs_mount *mp = log->l_mp;
mp               5602 fs/xfs/xfs_log_recover.c 	if (XFS_FORCED_SHUTDOWN(mp)) {
mp               5615 fs/xfs/xfs_log_recover.c 	xlog_assign_tail_lsn(mp);
mp               5621 fs/xfs/xfs_log_recover.c 	bp = xfs_getsb(mp);
mp               5629 fs/xfs/xfs_log_recover.c 		if (!XFS_FORCED_SHUTDOWN(mp)) {
mp               5638 fs/xfs/xfs_log_recover.c 	sbp = &mp->m_sb;
mp               5643 fs/xfs/xfs_log_recover.c 	xfs_reinit_percpu_counters(mp);
mp               5644 fs/xfs/xfs_log_recover.c 	error = xfs_initialize_perag(mp, sbp->sb_agcount, &mp->m_maxagi);
mp               5646 fs/xfs/xfs_log_recover.c 		xfs_warn(mp, "Failed post-recovery per-ag init: %d", error);
mp               5649 fs/xfs/xfs_log_recover.c 	mp->m_alloc_set_aside = xfs_alloc_set_aside(mp);
mp               5811 fs/xfs/xfs_log_recover.c 	xfs_mount_t	*mp;
mp               5821 fs/xfs/xfs_log_recover.c 	mp = log->l_mp;
mp               5826 fs/xfs/xfs_log_recover.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp               5827 fs/xfs/xfs_log_recover.c 		error = xfs_read_agf(mp, NULL, agno, 0, &agfbp);
mp               5829 fs/xfs/xfs_log_recover.c 			xfs_alert(mp, "%s agf read failed agno %d error %d",
mp               5838 fs/xfs/xfs_log_recover.c 		error = xfs_read_agi(mp, NULL, agno, &agibp);
mp               5840 fs/xfs/xfs_log_recover.c 			xfs_alert(mp, "%s agi read failed agno %d error %d",
mp                 20 fs/xfs/xfs_message.c 	const struct xfs_mount	*mp,
mp                 23 fs/xfs/xfs_message.c 	if (mp && mp->m_fsname) {
mp                 24 fs/xfs/xfs_message.c 		printk("%sXFS (%s): %pV\n", level, mp->m_fsname, vaf);
mp                 31 fs/xfs/xfs_message.c void func(const struct xfs_mount *mp, const char *fmt, ...)	\
mp                 42 fs/xfs/xfs_message.c 	__xfs_printk(kern_level, mp, &vaf);			\
mp                 64 fs/xfs/xfs_message.c 	const struct xfs_mount	*mp,
mp                 73 fs/xfs/xfs_message.c 		xfs_alert(mp, "Transforming an alert into a BUG.");
mp                 82 fs/xfs/xfs_message.c 	__xfs_printk(KERN_ALERT, mp, &vaf);
mp                  8 fs/xfs/xfs_message.h void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...);
mp                 10 fs/xfs/xfs_message.h void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...);
mp                 12 fs/xfs/xfs_message.h void xfs_alert_tag(const struct xfs_mount *mp, int tag, const char *fmt, ...);
mp                 14 fs/xfs/xfs_message.h void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...);
mp                 16 fs/xfs/xfs_message.h void xfs_err(const struct xfs_mount *mp, const char *fmt, ...);
mp                 18 fs/xfs/xfs_message.h void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...);
mp                 20 fs/xfs/xfs_message.h void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...);
mp                 22 fs/xfs/xfs_message.h void xfs_info(const struct xfs_mount *mp, const char *fmt, ...);
mp                 26 fs/xfs/xfs_message.h void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...);
mp                 29 fs/xfs/xfs_message.h void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
mp                 56 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp                 58 fs/xfs/xfs_mount.c 	uuid_t			*uuid = &mp->m_sb.sb_uuid;
mp                 62 fs/xfs/xfs_mount.c 	uuid_copy(&mp->m_super->s_uuid, uuid);
mp                 64 fs/xfs/xfs_mount.c 	if (mp->m_flags & XFS_MOUNT_NOUUID)
mp                 68 fs/xfs/xfs_mount.c 		xfs_warn(mp, "Filesystem has null UUID - can't mount");
mp                 95 fs/xfs/xfs_mount.c 	xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid);
mp                101 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp                103 fs/xfs/xfs_mount.c 	uuid_t			*uuid = &mp->m_sb.sb_uuid;
mp                106 fs/xfs/xfs_mount.c 	if (mp->m_flags & XFS_MOUNT_NOUUID)
mp                138 fs/xfs/xfs_mount.c 	xfs_mount_t	*mp)
mp                143 fs/xfs/xfs_mount.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                144 fs/xfs/xfs_mount.c 		spin_lock(&mp->m_perag_lock);
mp                145 fs/xfs/xfs_mount.c 		pag = radix_tree_delete(&mp->m_perag_tree, agno);
mp                146 fs/xfs/xfs_mount.c 		spin_unlock(&mp->m_perag_lock);
mp                176 fs/xfs/xfs_mount.c 	xfs_mount_t	*mp,
mp                191 fs/xfs/xfs_mount.c 		pag = xfs_perag_get(mp, index);
mp                201 fs/xfs/xfs_mount.c 		pag->pag_mount = mp;
mp                215 fs/xfs/xfs_mount.c 		spin_lock(&mp->m_perag_lock);
mp                216 fs/xfs/xfs_mount.c 		if (radix_tree_insert(&mp->m_perag_tree, index, pag)) {
mp                218 fs/xfs/xfs_mount.c 			spin_unlock(&mp->m_perag_lock);
mp                223 fs/xfs/xfs_mount.c 		spin_unlock(&mp->m_perag_lock);
mp                234 fs/xfs/xfs_mount.c 	index = xfs_set_inode_alloc(mp, agcount);
mp                239 fs/xfs/xfs_mount.c 	mp->m_ag_prealloc_blocks = xfs_prealloc_blocks(mp);
mp                250 fs/xfs/xfs_mount.c 		pag = radix_tree_delete(&mp->m_perag_tree, index);
mp                268 fs/xfs/xfs_mount.c 	struct xfs_mount *mp,
mp                273 fs/xfs/xfs_mount.c 	struct xfs_sb	*sbp = &mp->m_sb;
mp                278 fs/xfs/xfs_mount.c 	ASSERT(mp->m_sb_bp == NULL);
mp                279 fs/xfs/xfs_mount.c 	ASSERT(mp->m_ddev_targp != NULL);
mp                288 fs/xfs/xfs_mount.c 	sector_size = xfs_getsize_buftarg(mp->m_ddev_targp);
mp                298 fs/xfs/xfs_mount.c 	error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR,
mp                303 fs/xfs/xfs_mount.c 			xfs_warn(mp, "SB validate failed with error %d.", error);
mp                321 fs/xfs/xfs_mount.c 			xfs_warn(mp, "Invalid superblock magic number");
mp                331 fs/xfs/xfs_mount.c 			xfs_warn(mp, "device supports %u byte sectors (not %u)",
mp                348 fs/xfs/xfs_mount.c 	xfs_reinit_percpu_counters(mp);
mp                353 fs/xfs/xfs_mount.c 	mp->m_sb_bp = bp;
mp                366 fs/xfs/xfs_mount.c xfs_update_alignment(xfs_mount_t *mp)
mp                368 fs/xfs/xfs_mount.c 	xfs_sb_t	*sbp = &(mp->m_sb);
mp                370 fs/xfs/xfs_mount.c 	if (mp->m_dalign) {
mp                375 fs/xfs/xfs_mount.c 		if ((BBTOB(mp->m_dalign) & mp->m_blockmask) ||
mp                376 fs/xfs/xfs_mount.c 		    (BBTOB(mp->m_swidth) & mp->m_blockmask)) {
mp                377 fs/xfs/xfs_mount.c 			xfs_warn(mp,
mp                385 fs/xfs/xfs_mount.c 			mp->m_dalign = XFS_BB_TO_FSBT(mp, mp->m_dalign);
mp                386 fs/xfs/xfs_mount.c 			if (mp->m_dalign && (sbp->sb_agblocks % mp->m_dalign)) {
mp                387 fs/xfs/xfs_mount.c 				xfs_warn(mp,
mp                391 fs/xfs/xfs_mount.c 			} else if (mp->m_dalign) {
mp                392 fs/xfs/xfs_mount.c 				mp->m_swidth = XFS_BB_TO_FSBT(mp, mp->m_swidth);
mp                394 fs/xfs/xfs_mount.c 				xfs_warn(mp,
mp                396 fs/xfs/xfs_mount.c 					 mp->m_dalign, sbp->sb_blocksize);
mp                406 fs/xfs/xfs_mount.c 			if (sbp->sb_unit != mp->m_dalign) {
mp                407 fs/xfs/xfs_mount.c 				sbp->sb_unit = mp->m_dalign;
mp                408 fs/xfs/xfs_mount.c 				mp->m_update_sb = true;
mp                410 fs/xfs/xfs_mount.c 			if (sbp->sb_width != mp->m_swidth) {
mp                411 fs/xfs/xfs_mount.c 				sbp->sb_width = mp->m_swidth;
mp                412 fs/xfs/xfs_mount.c 				mp->m_update_sb = true;
mp                415 fs/xfs/xfs_mount.c 			xfs_warn(mp,
mp                419 fs/xfs/xfs_mount.c 	} else if ((mp->m_flags & XFS_MOUNT_NOALIGN) != XFS_MOUNT_NOALIGN &&
mp                420 fs/xfs/xfs_mount.c 		    xfs_sb_version_hasdalign(&mp->m_sb)) {
mp                421 fs/xfs/xfs_mount.c 			mp->m_dalign = sbp->sb_unit;
mp                422 fs/xfs/xfs_mount.c 			mp->m_swidth = sbp->sb_width;
mp                435 fs/xfs/xfs_mount.c xfs_set_rw_sizes(xfs_mount_t *mp)
mp                437 fs/xfs/xfs_mount.c 	xfs_sb_t	*sbp = &(mp->m_sb);
mp                440 fs/xfs/xfs_mount.c 	if (!(mp->m_flags & XFS_MOUNT_DFLT_IOSIZE)) {
mp                441 fs/xfs/xfs_mount.c 		if (mp->m_flags & XFS_MOUNT_WSYNC) {
mp                449 fs/xfs/xfs_mount.c 		readio_log = mp->m_readio_log;
mp                450 fs/xfs/xfs_mount.c 		writeio_log = mp->m_writeio_log;
mp                454 fs/xfs/xfs_mount.c 		mp->m_readio_log = sbp->sb_blocklog;
mp                456 fs/xfs/xfs_mount.c 		mp->m_readio_log = readio_log;
mp                458 fs/xfs/xfs_mount.c 	mp->m_readio_blocks = 1 << (mp->m_readio_log - sbp->sb_blocklog);
mp                460 fs/xfs/xfs_mount.c 		mp->m_writeio_log = sbp->sb_blocklog;
mp                462 fs/xfs/xfs_mount.c 		mp->m_writeio_log = writeio_log;
mp                464 fs/xfs/xfs_mount.c 	mp->m_writeio_blocks = 1 << (mp->m_writeio_log - sbp->sb_blocklog);
mp                472 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp                477 fs/xfs/xfs_mount.c 		uint64_t space = mp->m_sb.sb_dblocks;
mp                480 fs/xfs/xfs_mount.c 		mp->m_low_space[i] = space * (i + 1);
mp                489 fs/xfs/xfs_mount.c 	struct xfs_mount *mp)
mp                495 fs/xfs/xfs_mount.c 	d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks);
mp                496 fs/xfs/xfs_mount.c 	if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_dblocks) {
mp                497 fs/xfs/xfs_mount.c 		xfs_warn(mp, "filesystem size mismatch detected");
mp                500 fs/xfs/xfs_mount.c 	error = xfs_buf_read_uncached(mp->m_ddev_targp,
mp                501 fs/xfs/xfs_mount.c 					d - XFS_FSS_TO_BB(mp, 1),
mp                502 fs/xfs/xfs_mount.c 					XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL);
mp                504 fs/xfs/xfs_mount.c 		xfs_warn(mp, "last sector read failed");
mp                509 fs/xfs/xfs_mount.c 	if (mp->m_logdev_targp == mp->m_ddev_targp)
mp                512 fs/xfs/xfs_mount.c 	d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_logblocks);
mp                513 fs/xfs/xfs_mount.c 	if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_logblocks) {
mp                514 fs/xfs/xfs_mount.c 		xfs_warn(mp, "log size mismatch detected");
mp                517 fs/xfs/xfs_mount.c 	error = xfs_buf_read_uncached(mp->m_logdev_targp,
mp                518 fs/xfs/xfs_mount.c 					d - XFS_FSB_TO_BB(mp, 1),
mp                519 fs/xfs/xfs_mount.c 					XFS_FSB_TO_BB(mp, 1), 0, &bp, NULL);
mp                521 fs/xfs/xfs_mount.c 		xfs_warn(mp, "log device read failed");
mp                533 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp                535 fs/xfs/xfs_mount.c 	mp->m_qflags = 0;
mp                538 fs/xfs/xfs_mount.c 	if (mp->m_sb.sb_qflags == 0)
mp                540 fs/xfs/xfs_mount.c 	spin_lock(&mp->m_sb_lock);
mp                541 fs/xfs/xfs_mount.c 	mp->m_sb.sb_qflags = 0;
mp                542 fs/xfs/xfs_mount.c 	spin_unlock(&mp->m_sb_lock);
mp                544 fs/xfs/xfs_mount.c 	if (!xfs_fs_writable(mp, SB_FREEZE_WRITE))
mp                547 fs/xfs/xfs_mount.c 	return xfs_sync_sb(mp, false);
mp                551 fs/xfs/xfs_mount.c xfs_default_resblks(xfs_mount_t *mp)
mp                562 fs/xfs/xfs_mount.c 	resblks = mp->m_sb.sb_dblocks;
mp                571 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp                577 fs/xfs/xfs_mount.c 	if (mp->m_sb.sb_inprogress) {
mp                578 fs/xfs/xfs_mount.c 		xfs_err(mp, "sb_inprogress set after log recovery??");
mp                594 fs/xfs/xfs_mount.c 	if (XFS_LAST_UNMOUNT_WAS_CLEAN(mp) &&
mp                595 fs/xfs/xfs_mount.c 	    (mp->m_sb.sb_fdblocks > mp->m_sb.sb_dblocks ||
mp                596 fs/xfs/xfs_mount.c 	     !xfs_verify_icount(mp, mp->m_sb.sb_icount) ||
mp                597 fs/xfs/xfs_mount.c 	     mp->m_sb.sb_ifree > mp->m_sb.sb_icount))
mp                598 fs/xfs/xfs_mount.c 		xfs_fs_mark_sick(mp, XFS_SICK_FS_COUNTERS);
mp                611 fs/xfs/xfs_mount.c 	if ((!xfs_sb_version_haslazysbcount(&mp->m_sb) ||
mp                612 fs/xfs/xfs_mount.c 	     XFS_LAST_UNMOUNT_WAS_CLEAN(mp)) &&
mp                613 fs/xfs/xfs_mount.c 	    !xfs_fs_has_sickness(mp, XFS_SICK_FS_COUNTERS))
mp                616 fs/xfs/xfs_mount.c 	return xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount);
mp                631 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp                633 fs/xfs/xfs_mount.c 	struct xfs_sb		*sbp = &(mp->m_sb);
mp                635 fs/xfs/xfs_mount.c 	struct xfs_ino_geometry	*igeo = M_IGEO(mp);
mp                641 fs/xfs/xfs_mount.c 	xfs_sb_mount_common(mp, sbp);
mp                660 fs/xfs/xfs_mount.c 		xfs_warn(mp, "correcting sb_features alignment problem");
mp                662 fs/xfs/xfs_mount.c 		mp->m_update_sb = true;
mp                668 fs/xfs/xfs_mount.c 		if (xfs_sb_version_hasattr2(&mp->m_sb) &&
mp                669 fs/xfs/xfs_mount.c 		   !(mp->m_flags & XFS_MOUNT_NOATTR2))
mp                670 fs/xfs/xfs_mount.c 			mp->m_flags |= XFS_MOUNT_ATTR2;
mp                673 fs/xfs/xfs_mount.c 	if (xfs_sb_version_hasattr2(&mp->m_sb) &&
mp                674 fs/xfs/xfs_mount.c 	   (mp->m_flags & XFS_MOUNT_NOATTR2)) {
mp                675 fs/xfs/xfs_mount.c 		xfs_sb_version_removeattr2(&mp->m_sb);
mp                676 fs/xfs/xfs_mount.c 		mp->m_update_sb = true;
mp                680 fs/xfs/xfs_mount.c 			mp->m_update_sb = true;
mp                684 fs/xfs/xfs_mount.c 	if (!(mp->m_sb.sb_versionnum & XFS_SB_VERSION_NLINKBIT)) {
mp                685 fs/xfs/xfs_mount.c 		mp->m_sb.sb_versionnum |= XFS_SB_VERSION_NLINKBIT;
mp                686 fs/xfs/xfs_mount.c 		mp->m_update_sb = true;
mp                695 fs/xfs/xfs_mount.c 	error = xfs_update_alignment(mp);
mp                699 fs/xfs/xfs_mount.c 	xfs_alloc_compute_maxlevels(mp);
mp                700 fs/xfs/xfs_mount.c 	xfs_bmap_compute_maxlevels(mp, XFS_DATA_FORK);
mp                701 fs/xfs/xfs_mount.c 	xfs_bmap_compute_maxlevels(mp, XFS_ATTR_FORK);
mp                702 fs/xfs/xfs_mount.c 	xfs_ialloc_setup_geometry(mp);
mp                703 fs/xfs/xfs_mount.c 	xfs_rmapbt_compute_maxlevels(mp);
mp                704 fs/xfs/xfs_mount.c 	xfs_refcountbt_compute_maxlevels(mp);
mp                707 fs/xfs/xfs_mount.c 	mp->m_fail_unmount = true;
mp                709 fs/xfs/xfs_mount.c 	error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype, NULL, mp->m_fsname);
mp                713 fs/xfs/xfs_mount.c 	error = xfs_sysfs_init(&mp->m_stats.xs_kobj, &xfs_stats_ktype,
mp                714 fs/xfs/xfs_mount.c 			       &mp->m_kobj, "stats");
mp                718 fs/xfs/xfs_mount.c 	error = xfs_error_sysfs_init(mp);
mp                722 fs/xfs/xfs_mount.c 	error = xfs_errortag_init(mp);
mp                726 fs/xfs/xfs_mount.c 	error = xfs_uuid_mount(mp);
mp                733 fs/xfs/xfs_mount.c 	xfs_set_rw_sizes(mp);
mp                736 fs/xfs/xfs_mount.c 	xfs_set_low_space_thresholds(mp);
mp                743 fs/xfs/xfs_mount.c 	if (xfs_sb_version_hassparseinodes(&mp->m_sb) &&
mp                744 fs/xfs/xfs_mount.c 	    mp->m_sb.sb_spino_align !=
mp                745 fs/xfs/xfs_mount.c 			XFS_B_TO_FSBT(mp, igeo->inode_cluster_size_raw)) {
mp                746 fs/xfs/xfs_mount.c 		xfs_warn(mp,
mp                748 fs/xfs/xfs_mount.c 			 mp->m_sb.sb_spino_align,
mp                749 fs/xfs/xfs_mount.c 			 XFS_B_TO_FSBT(mp, igeo->inode_cluster_size_raw));
mp                757 fs/xfs/xfs_mount.c 	error = xfs_check_sizes(mp);
mp                764 fs/xfs/xfs_mount.c 	error = xfs_rtmount_init(mp);
mp                766 fs/xfs/xfs_mount.c 		xfs_warn(mp, "RT mount failed");
mp                774 fs/xfs/xfs_mount.c 	mp->m_fixedfsid[0] =
mp                777 fs/xfs/xfs_mount.c 	mp->m_fixedfsid[1] = get_unaligned_be32(&sbp->sb_uuid.b[0]);
mp                779 fs/xfs/xfs_mount.c 	error = xfs_da_mount(mp);
mp                781 fs/xfs/xfs_mount.c 		xfs_warn(mp, "Failed dir/attr init: %d", error);
mp                788 fs/xfs/xfs_mount.c 	xfs_trans_init(mp);
mp                793 fs/xfs/xfs_mount.c 	error = xfs_initialize_perag(mp, sbp->sb_agcount, &mp->m_maxagi);
mp                795 fs/xfs/xfs_mount.c 		xfs_warn(mp, "Failed per-ag init: %d", error);
mp                800 fs/xfs/xfs_mount.c 		xfs_warn(mp, "no log defined");
mp                801 fs/xfs/xfs_mount.c 		XFS_ERROR_REPORT("xfs_mountfs", XFS_ERRLEVEL_LOW, mp);
mp                811 fs/xfs/xfs_mount.c 	error = xfs_log_mount(mp, mp->m_logdev_targp,
mp                812 fs/xfs/xfs_mount.c 			      XFS_FSB_TO_DADDR(mp, sbp->sb_logstart),
mp                813 fs/xfs/xfs_mount.c 			      XFS_FSB_TO_BB(mp, sbp->sb_logblocks));
mp                815 fs/xfs/xfs_mount.c 		xfs_warn(mp, "log mount failed");
mp                820 fs/xfs/xfs_mount.c 	error = xfs_check_summary_counts(mp);
mp                828 fs/xfs/xfs_mount.c 	error = xfs_iget(mp, NULL, sbp->sb_rootino, XFS_IGET_UNTRUSTED,
mp                831 fs/xfs/xfs_mount.c 		xfs_warn(mp,
mp                840 fs/xfs/xfs_mount.c 		xfs_warn(mp, "corrupted root inode %llu: not a directory",
mp                844 fs/xfs/xfs_mount.c 				 mp);
mp                848 fs/xfs/xfs_mount.c 	mp->m_rootip = rip;	/* save it */
mp                855 fs/xfs/xfs_mount.c 	error = xfs_rtmount_inodes(mp);
mp                860 fs/xfs/xfs_mount.c 		xfs_warn(mp, "failed to read RT inodes");
mp                869 fs/xfs/xfs_mount.c 	if (mp->m_update_sb && !(mp->m_flags & XFS_MOUNT_RDONLY)) {
mp                870 fs/xfs/xfs_mount.c 		error = xfs_sync_sb(mp, false);
mp                872 fs/xfs/xfs_mount.c 			xfs_warn(mp, "failed to write sb changes");
mp                880 fs/xfs/xfs_mount.c 	if (XFS_IS_QUOTA_RUNNING(mp)) {
mp                881 fs/xfs/xfs_mount.c 		error = xfs_qm_newmount(mp, &quotamount, &quotaflags);
mp                885 fs/xfs/xfs_mount.c 		ASSERT(!XFS_IS_QUOTA_ON(mp));
mp                892 fs/xfs/xfs_mount.c 		if (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_ACCT) {
mp                893 fs/xfs/xfs_mount.c 			xfs_notice(mp, "resetting quota flags");
mp                894 fs/xfs/xfs_mount.c 			error = xfs_mount_reset_sbqflags(mp);
mp                905 fs/xfs/xfs_mount.c 	error = xfs_log_mount_finish(mp);
mp                907 fs/xfs/xfs_mount.c 		xfs_warn(mp, "log mount finish failed");
mp                920 fs/xfs/xfs_mount.c 	if ((mp->m_flags & (XFS_MOUNT_RDONLY|XFS_MOUNT_NORECOVERY)) ==
mp                922 fs/xfs/xfs_mount.c 		xfs_quiesce_attr(mp);
mp                929 fs/xfs/xfs_mount.c 		ASSERT(mp->m_qflags == 0);
mp                930 fs/xfs/xfs_mount.c 		mp->m_qflags = quotaflags;
mp                932 fs/xfs/xfs_mount.c 		xfs_qm_mount_quotas(mp);
mp                946 fs/xfs/xfs_mount.c 	if (!(mp->m_flags & XFS_MOUNT_RDONLY)) {
mp                947 fs/xfs/xfs_mount.c 		resblks = xfs_default_resblks(mp);
mp                948 fs/xfs/xfs_mount.c 		error = xfs_reserve_blocks(mp, &resblks, NULL);
mp                950 fs/xfs/xfs_mount.c 			xfs_warn(mp,
mp                954 fs/xfs/xfs_mount.c 		error = xfs_reflink_recover_cow(mp);
mp                956 fs/xfs/xfs_mount.c 			xfs_err(mp,
mp                958 fs/xfs/xfs_mount.c 			xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp                963 fs/xfs/xfs_mount.c 		error = xfs_fs_reserve_ag_blocks(mp);
mp                971 fs/xfs/xfs_mount.c 	xfs_fs_unreserve_ag_blocks(mp);
mp                973 fs/xfs/xfs_mount.c 	xfs_qm_unmount_quotas(mp);
mp                975 fs/xfs/xfs_mount.c 	xfs_rtunmount_inodes(mp);
mp                979 fs/xfs/xfs_mount.c 	xfs_qm_unmount(mp);
mp                991 fs/xfs/xfs_mount.c 	cancel_delayed_work_sync(&mp->m_reclaim_work);
mp                992 fs/xfs/xfs_mount.c 	xfs_reclaim_inodes(mp, SYNC_WAIT);
mp                993 fs/xfs/xfs_mount.c 	xfs_health_unmount(mp);
mp                995 fs/xfs/xfs_mount.c 	mp->m_flags |= XFS_MOUNT_UNMOUNTING;
mp                996 fs/xfs/xfs_mount.c 	xfs_log_mount_cancel(mp);
mp                998 fs/xfs/xfs_mount.c 	if (mp->m_logdev_targp && mp->m_logdev_targp != mp->m_ddev_targp)
mp                999 fs/xfs/xfs_mount.c 		xfs_wait_buftarg(mp->m_logdev_targp);
mp               1000 fs/xfs/xfs_mount.c 	xfs_wait_buftarg(mp->m_ddev_targp);
mp               1002 fs/xfs/xfs_mount.c 	xfs_free_perag(mp);
mp               1004 fs/xfs/xfs_mount.c 	xfs_da_unmount(mp);
mp               1006 fs/xfs/xfs_mount.c 	xfs_uuid_unmount(mp);
mp               1008 fs/xfs/xfs_mount.c 	xfs_errortag_del(mp);
mp               1010 fs/xfs/xfs_mount.c 	xfs_error_sysfs_del(mp);
mp               1012 fs/xfs/xfs_mount.c 	xfs_sysfs_del(&mp->m_stats.xs_kobj);
mp               1014 fs/xfs/xfs_mount.c 	xfs_sysfs_del(&mp->m_kobj);
mp               1025 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp               1030 fs/xfs/xfs_mount.c 	xfs_stop_block_reaping(mp);
mp               1031 fs/xfs/xfs_mount.c 	xfs_fs_unreserve_ag_blocks(mp);
mp               1032 fs/xfs/xfs_mount.c 	xfs_qm_unmount_quotas(mp);
mp               1033 fs/xfs/xfs_mount.c 	xfs_rtunmount_inodes(mp);
mp               1034 fs/xfs/xfs_mount.c 	xfs_irele(mp->m_rootip);
mp               1046 fs/xfs/xfs_mount.c 	xfs_log_force(mp, XFS_LOG_SYNC);
mp               1052 fs/xfs/xfs_mount.c 	xfs_extent_busy_wait_all(mp);
mp               1061 fs/xfs/xfs_mount.c 	mp->m_flags |= XFS_MOUNT_UNMOUNTING;
mp               1066 fs/xfs/xfs_mount.c 	xfs_ail_push_all_sync(mp->m_ail);
mp               1074 fs/xfs/xfs_mount.c 	cancel_delayed_work_sync(&mp->m_reclaim_work);
mp               1075 fs/xfs/xfs_mount.c 	xfs_reclaim_inodes(mp, SYNC_WAIT);
mp               1076 fs/xfs/xfs_mount.c 	xfs_health_unmount(mp);
mp               1078 fs/xfs/xfs_mount.c 	xfs_qm_unmount(mp);
mp               1095 fs/xfs/xfs_mount.c 	error = xfs_reserve_blocks(mp, &resblks, NULL);
mp               1097 fs/xfs/xfs_mount.c 		xfs_warn(mp, "Unable to free reserved block pool. "
mp               1100 fs/xfs/xfs_mount.c 	error = xfs_log_sbcount(mp);
mp               1102 fs/xfs/xfs_mount.c 		xfs_warn(mp, "Unable to update superblock counters. "
mp               1106 fs/xfs/xfs_mount.c 	xfs_log_unmount(mp);
mp               1107 fs/xfs/xfs_mount.c 	xfs_da_unmount(mp);
mp               1108 fs/xfs/xfs_mount.c 	xfs_uuid_unmount(mp);
mp               1111 fs/xfs/xfs_mount.c 	xfs_errortag_clearall(mp);
mp               1113 fs/xfs/xfs_mount.c 	xfs_free_perag(mp);
mp               1115 fs/xfs/xfs_mount.c 	xfs_errortag_del(mp);
mp               1116 fs/xfs/xfs_mount.c 	xfs_error_sysfs_del(mp);
mp               1117 fs/xfs/xfs_mount.c 	xfs_sysfs_del(&mp->m_stats.xs_kobj);
mp               1118 fs/xfs/xfs_mount.c 	xfs_sysfs_del(&mp->m_kobj);
mp               1129 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1133 fs/xfs/xfs_mount.c 	if ((mp->m_super->s_writers.frozen >= level) ||
mp               1134 fs/xfs/xfs_mount.c 	    XFS_FORCED_SHUTDOWN(mp) || (mp->m_flags & XFS_MOUNT_RDONLY))
mp               1150 fs/xfs/xfs_mount.c xfs_log_sbcount(xfs_mount_t *mp)
mp               1153 fs/xfs/xfs_mount.c 	if (!xfs_fs_writable(mp, SB_FREEZE_COMPLETE))
mp               1160 fs/xfs/xfs_mount.c 	if (!xfs_sb_version_haslazysbcount(&mp->m_sb))
mp               1163 fs/xfs/xfs_mount.c 	return xfs_sync_sb(mp, true);
mp               1173 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1176 fs/xfs/xfs_mount.c 	percpu_counter_add_batch(&mp->m_icount, delta, XFS_ICOUNT_BATCH);
mp               1177 fs/xfs/xfs_mount.c 	if (__percpu_counter_compare(&mp->m_icount, 0, XFS_ICOUNT_BATCH) < 0) {
mp               1179 fs/xfs/xfs_mount.c 		percpu_counter_add(&mp->m_icount, -delta);
mp               1187 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1190 fs/xfs/xfs_mount.c 	percpu_counter_add(&mp->m_ifree, delta);
mp               1191 fs/xfs/xfs_mount.c 	if (percpu_counter_compare(&mp->m_ifree, 0) < 0) {
mp               1193 fs/xfs/xfs_mount.c 		percpu_counter_add(&mp->m_ifree, -delta);
mp               1209 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1222 fs/xfs/xfs_mount.c 		if (likely(mp->m_resblks == mp->m_resblks_avail)) {
mp               1223 fs/xfs/xfs_mount.c 			percpu_counter_add(&mp->m_fdblocks, delta);
mp               1227 fs/xfs/xfs_mount.c 		spin_lock(&mp->m_sb_lock);
mp               1228 fs/xfs/xfs_mount.c 		res_used = (long long)(mp->m_resblks - mp->m_resblks_avail);
mp               1231 fs/xfs/xfs_mount.c 			mp->m_resblks_avail += delta;
mp               1234 fs/xfs/xfs_mount.c 			mp->m_resblks_avail = mp->m_resblks;
mp               1235 fs/xfs/xfs_mount.c 			percpu_counter_add(&mp->m_fdblocks, delta);
mp               1237 fs/xfs/xfs_mount.c 		spin_unlock(&mp->m_sb_lock);
mp               1249 fs/xfs/xfs_mount.c 	if (__percpu_counter_compare(&mp->m_fdblocks, 2 * XFS_FDBLOCKS_BATCH,
mp               1255 fs/xfs/xfs_mount.c 	percpu_counter_add_batch(&mp->m_fdblocks, delta, batch);
mp               1256 fs/xfs/xfs_mount.c 	if (__percpu_counter_compare(&mp->m_fdblocks, mp->m_alloc_set_aside,
mp               1266 fs/xfs/xfs_mount.c 	spin_lock(&mp->m_sb_lock);
mp               1267 fs/xfs/xfs_mount.c 	percpu_counter_add(&mp->m_fdblocks, -delta);
mp               1271 fs/xfs/xfs_mount.c 	lcounter = (long long)mp->m_resblks_avail + delta;
mp               1273 fs/xfs/xfs_mount.c 		mp->m_resblks_avail = lcounter;
mp               1274 fs/xfs/xfs_mount.c 		spin_unlock(&mp->m_sb_lock);
mp               1280 fs/xfs/xfs_mount.c 		mp->m_fsname);
mp               1282 fs/xfs/xfs_mount.c 	spin_unlock(&mp->m_sb_lock);
mp               1288 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1294 fs/xfs/xfs_mount.c 	spin_lock(&mp->m_sb_lock);
mp               1295 fs/xfs/xfs_mount.c 	lcounter = mp->m_sb.sb_frextents + delta;
mp               1299 fs/xfs/xfs_mount.c 		mp->m_sb.sb_frextents = lcounter;
mp               1300 fs/xfs/xfs_mount.c 	spin_unlock(&mp->m_sb_lock);
mp               1311 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp               1313 fs/xfs/xfs_mount.c 	struct xfs_buf		*bp = mp->m_sb_bp;
mp               1326 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp               1328 fs/xfs/xfs_mount.c 	struct xfs_buf		*bp = mp->m_sb_bp;
mp               1331 fs/xfs/xfs_mount.c 	mp->m_sb_bp = NULL;
mp               1341 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1344 fs/xfs/xfs_mount.c 	if (xfs_readonly_buftarg(mp->m_ddev_targp) ||
mp               1345 fs/xfs/xfs_mount.c 	    xfs_readonly_buftarg(mp->m_logdev_targp) ||
mp               1346 fs/xfs/xfs_mount.c 	    (mp->m_rtdev_targp && xfs_readonly_buftarg(mp->m_rtdev_targp))) {
mp               1347 fs/xfs/xfs_mount.c 		xfs_notice(mp, "%s required on read-only device.", message);
mp               1348 fs/xfs/xfs_mount.c 		xfs_notice(mp, "write access unavailable, cannot proceed.");
mp               1357 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp)
mp               1359 fs/xfs/xfs_mount.c 	if (!xfs_sb_version_haslazysbcount(&mp->m_sb))
mp               1362 fs/xfs/xfs_mount.c 	xfs_fs_mark_sick(mp, XFS_SICK_FS_COUNTERS);
mp               1379 fs/xfs/xfs_mount.c 	struct xfs_mount	*mp,
mp               1382 fs/xfs/xfs_mount.c 	percpu_counter_add_batch(&mp->m_delalloc_blks, delta,
mp                213 fs/xfs/xfs_mount.h #define M_IGEO(mp)		(&(mp)->m_ino_geo)
mp                283 fs/xfs/xfs_mount.h xfs_preferred_iosize(xfs_mount_t *mp)
mp                285 fs/xfs/xfs_mount.h 	if (mp->m_flags & XFS_MOUNT_COMPAT_IOSIZE)
mp                287 fs/xfs/xfs_mount.h 	return (mp->m_swidth ?
mp                288 fs/xfs/xfs_mount.h 		(mp->m_swidth << mp->m_sb.sb_blocklog) :
mp                289 fs/xfs/xfs_mount.h 		((mp->m_flags & XFS_MOUNT_DFLT_IOSIZE) ?
mp                290 fs/xfs/xfs_mount.h 			(1 << (int)max(mp->m_readio_log, mp->m_writeio_log)) :
mp                294 fs/xfs/xfs_mount.h #define XFS_LAST_UNMOUNT_WAS_CLEAN(mp)	\
mp                295 fs/xfs/xfs_mount.h 				((mp)->m_flags & XFS_MOUNT_WAS_CLEAN)
mp                296 fs/xfs/xfs_mount.h #define XFS_FORCED_SHUTDOWN(mp)	((mp)->m_flags & XFS_MOUNT_FS_SHUTDOWN)
mp                297 fs/xfs/xfs_mount.h void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname,
mp                315 fs/xfs/xfs_mount.h xfs_daddr_to_agno(struct xfs_mount *mp, xfs_daddr_t d)
mp                317 fs/xfs/xfs_mount.h 	xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d);
mp                318 fs/xfs/xfs_mount.h 	do_div(ld, mp->m_sb.sb_agblocks);
mp                323 fs/xfs/xfs_mount.h xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d)
mp                325 fs/xfs/xfs_mount.h 	xfs_rfsblock_t ld = XFS_BB_TO_FSBT(mp, d);
mp                326 fs/xfs/xfs_mount.h 	return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks);
mp                435 fs/xfs/xfs_mount.h extern uint64_t xfs_default_resblks(xfs_mount_t *mp);
mp                436 fs/xfs/xfs_mount.h extern int	xfs_mountfs(xfs_mount_t *mp);
mp                437 fs/xfs/xfs_mount.h extern int	xfs_initialize_perag(xfs_mount_t *mp, xfs_agnumber_t agcount,
mp                441 fs/xfs/xfs_mount.h extern int	xfs_mod_icount(struct xfs_mount *mp, int64_t delta);
mp                442 fs/xfs/xfs_mount.h extern int	xfs_mod_ifree(struct xfs_mount *mp, int64_t delta);
mp                443 fs/xfs/xfs_mount.h extern int	xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta,
mp                445 fs/xfs/xfs_mount.h extern int	xfs_mod_frextents(struct xfs_mount *mp, int64_t delta);
mp                450 fs/xfs/xfs_mount.h extern bool	xfs_fs_writable(struct xfs_mount *mp, int level);
mp                460 fs/xfs/xfs_mount.h struct xfs_error_cfg * xfs_error_get_cfg(struct xfs_mount *mp,
mp                462 fs/xfs/xfs_mount.h void xfs_force_summary_recalc(struct xfs_mount *mp);
mp                463 fs/xfs/xfs_mount.h void xfs_mod_delalloc(struct xfs_mount *mp, int64_t delta);
mp                 58 fs/xfs/xfs_pnfs.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                 62 fs/xfs/xfs_pnfs.c 		mp->m_fsname);
mp                 67 fs/xfs/xfs_pnfs.c 	memcpy(buf, &mp->m_sb.sb_uuid, sizeof(uuid_t));
mp                 86 fs/xfs/xfs_pnfs.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 95 fs/xfs/xfs_pnfs.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                123 fs/xfs/xfs_pnfs.c 	limit = mp->m_super->s_maxbytes;
mp                139 fs/xfs/xfs_pnfs.c 	end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + length);
mp                140 fs/xfs/xfs_pnfs.c 	offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                182 fs/xfs/xfs_pnfs.c 	*device_generation = mp->m_generation;
mp                233 fs/xfs/xfs_pnfs.c 	struct xfs_mount	*mp = ip->i_mount;
mp                283 fs/xfs/xfs_pnfs.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
mp                 47 fs/xfs/xfs_pwork.c 	error = pctl->work_fn(pctl->mp, pwork);
mp                 61 fs/xfs/xfs_pwork.c 	struct xfs_mount	*mp,
mp                 71 fs/xfs/xfs_pwork.c 	trace_xfs_pwork_init(mp, nr_threads, current->pid);
mp                 79 fs/xfs/xfs_pwork.c 	pctl->mp = mp;
mp                127 fs/xfs/xfs_pwork.c 	struct xfs_mount	*mp)
mp                129 fs/xfs/xfs_pwork.c 	struct xfs_buftarg	*btp = mp->m_ddev_targp;
mp                 12 fs/xfs/xfs_pwork.h typedef int (*xfs_pwork_work_fn)(struct xfs_mount *mp, struct xfs_pwork *pwork);
mp                 19 fs/xfs/xfs_pwork.h 	struct xfs_mount	*mp;
mp                 53 fs/xfs/xfs_pwork.h int xfs_pwork_init(struct xfs_mount *mp, struct xfs_pwork_ctl *pctl,
mp                 59 fs/xfs/xfs_pwork.h unsigned int xfs_pwork_guess_datadev_parallelism(struct xfs_mount *mp);
mp                 48 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp,
mp                 53 fs/xfs/xfs_qm.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp                121 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = dqp->q_mount;
mp                122 fs/xfs/xfs_qm.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp                156 fs/xfs/xfs_qm.c 	ASSERT(XFS_FORCED_SHUTDOWN(mp) ||
mp                172 fs/xfs/xfs_qm.c 	XFS_STATS_DEC(mp, xs_qm_dquot_unused);
mp                183 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp,
mp                187 fs/xfs/xfs_qm.c 		xfs_qm_dquot_walk(mp, XFS_DQ_USER, xfs_qm_dqpurge, NULL);
mp                189 fs/xfs/xfs_qm.c 		xfs_qm_dquot_walk(mp, XFS_DQ_GROUP, xfs_qm_dqpurge, NULL);
mp                191 fs/xfs/xfs_qm.c 		xfs_qm_dquot_walk(mp, XFS_DQ_PROJ, xfs_qm_dqpurge, NULL);
mp                199 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp)
mp                201 fs/xfs/xfs_qm.c 	if (mp->m_quotainfo) {
mp                202 fs/xfs/xfs_qm.c 		xfs_qm_dqpurge_all(mp, XFS_QMOPT_QUOTALL);
mp                203 fs/xfs/xfs_qm.c 		xfs_qm_destroy_quotainfo(mp);
mp                212 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp)
mp                218 fs/xfs/xfs_qm.c 	ASSERT(mp->m_rootip);
mp                219 fs/xfs/xfs_qm.c 	xfs_qm_dqdetach(mp->m_rootip);
mp                220 fs/xfs/xfs_qm.c 	if (mp->m_rbmip)
mp                221 fs/xfs/xfs_qm.c 		xfs_qm_dqdetach(mp->m_rbmip);
mp                222 fs/xfs/xfs_qm.c 	if (mp->m_rsumip)
mp                223 fs/xfs/xfs_qm.c 		xfs_qm_dqdetach(mp->m_rsumip);
mp                228 fs/xfs/xfs_qm.c 	if (mp->m_quotainfo) {
mp                229 fs/xfs/xfs_qm.c 		if (mp->m_quotainfo->qi_uquotaip) {
mp                230 fs/xfs/xfs_qm.c 			xfs_irele(mp->m_quotainfo->qi_uquotaip);
mp                231 fs/xfs/xfs_qm.c 			mp->m_quotainfo->qi_uquotaip = NULL;
mp                233 fs/xfs/xfs_qm.c 		if (mp->m_quotainfo->qi_gquotaip) {
mp                234 fs/xfs/xfs_qm.c 			xfs_irele(mp->m_quotainfo->qi_gquotaip);
mp                235 fs/xfs/xfs_qm.c 			mp->m_quotainfo->qi_gquotaip = NULL;
mp                237 fs/xfs/xfs_qm.c 		if (mp->m_quotainfo->qi_pquotaip) {
mp                238 fs/xfs/xfs_qm.c 			xfs_irele(mp->m_quotainfo->qi_pquotaip);
mp                239 fs/xfs/xfs_qm.c 			mp->m_quotainfo->qi_pquotaip = NULL;
mp                294 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = ip->i_mount;
mp                296 fs/xfs/xfs_qm.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                298 fs/xfs/xfs_qm.c 	if (!XFS_IS_QUOTA_ON(mp))
mp                300 fs/xfs/xfs_qm.c 	if (!XFS_NOT_DQATTACHED(mp, ip))
mp                302 fs/xfs/xfs_qm.c 	if (xfs_is_quota_inode(&mp->m_sb, ip->i_ino))
mp                319 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp = ip->i_mount;
mp                327 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_ON(mp) && !ip->i_udquot) {
mp                335 fs/xfs/xfs_qm.c 	if (XFS_IS_GQUOTA_ON(mp) && !ip->i_gdquot) {
mp                343 fs/xfs/xfs_qm.c 	if (XFS_IS_PQUOTA_ON(mp) && !ip->i_pdquot) {
mp                542 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp,
mp                551 fs/xfs/xfs_qm.c 	error = xfs_qm_dqget_uncached(mp, 0, type, &dqp);
mp                574 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp,
mp                600 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_RUNNING(mp))
mp                602 fs/xfs/xfs_qm.c 	else if (XFS_IS_GQUOTA_RUNNING(mp))
mp                606 fs/xfs/xfs_qm.c 	error = xfs_qm_dqget_uncached(mp, 0, type, &dqp);
mp                638 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp)
mp                643 fs/xfs/xfs_qm.c 	ASSERT(XFS_IS_QUOTA_RUNNING(mp));
mp                645 fs/xfs/xfs_qm.c 	qinf = mp->m_quotainfo = kmem_zalloc(sizeof(xfs_quotainfo_t), 0);
mp                655 fs/xfs/xfs_qm.c 	error = xfs_qm_init_quotainos(mp);
mp                668 fs/xfs/xfs_qm.c 	qinf->qi_dqchunklen = XFS_FSB_TO_BB(mp, XFS_DQUOT_CLUSTER_SIZE_FSB);
mp                671 fs/xfs/xfs_qm.c 	mp->m_qflags |= (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_CHKD);
mp                673 fs/xfs/xfs_qm.c 	xfs_qm_init_timelimits(mp, qinf);
mp                675 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_RUNNING(mp))
mp                676 fs/xfs/xfs_qm.c 		xfs_qm_set_defquota(mp, XFS_DQ_USER, qinf);
mp                677 fs/xfs/xfs_qm.c 	if (XFS_IS_GQUOTA_RUNNING(mp))
mp                678 fs/xfs/xfs_qm.c 		xfs_qm_set_defquota(mp, XFS_DQ_GROUP, qinf);
mp                679 fs/xfs/xfs_qm.c 	if (XFS_IS_PQUOTA_RUNNING(mp))
mp                680 fs/xfs/xfs_qm.c 		xfs_qm_set_defquota(mp, XFS_DQ_PROJ, qinf);
mp                701 fs/xfs/xfs_qm.c 	mp->m_quotainfo = NULL;
mp                712 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp)
mp                716 fs/xfs/xfs_qm.c 	qi = mp->m_quotainfo;
mp                725 fs/xfs/xfs_qm.c 	mp->m_quotainfo = NULL;
mp                734 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp,
mp                750 fs/xfs/xfs_qm.c 	if (!xfs_sb_version_has_pquotino(&mp->m_sb) &&
mp                755 fs/xfs/xfs_qm.c 			     (mp->m_sb.sb_gquotino != NULLFSINO)) {
mp                756 fs/xfs/xfs_qm.c 			ino = mp->m_sb.sb_gquotino;
mp                757 fs/xfs/xfs_qm.c 			ASSERT(mp->m_sb.sb_pquotino == NULLFSINO);
mp                759 fs/xfs/xfs_qm.c 			     (mp->m_sb.sb_pquotino != NULLFSINO)) {
mp                760 fs/xfs/xfs_qm.c 			ino = mp->m_sb.sb_pquotino;
mp                761 fs/xfs/xfs_qm.c 			ASSERT(mp->m_sb.sb_gquotino == NULLFSINO);
mp                764 fs/xfs/xfs_qm.c 			error = xfs_iget(mp, NULL, ino, 0, 0, ip);
mp                767 fs/xfs/xfs_qm.c 			mp->m_sb.sb_gquotino = NULLFSINO;
mp                768 fs/xfs/xfs_qm.c 			mp->m_sb.sb_pquotino = NULLFSINO;
mp                773 fs/xfs/xfs_qm.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_create,
mp                774 fs/xfs/xfs_qm.c 			XFS_QM_QINOCREATE_SPACE_RES(mp), 0, 0, &tp);
mp                791 fs/xfs/xfs_qm.c 	spin_lock(&mp->m_sb_lock);
mp                793 fs/xfs/xfs_qm.c 		ASSERT(!xfs_sb_version_hasquota(&mp->m_sb));
mp                795 fs/xfs/xfs_qm.c 		xfs_sb_version_addquota(&mp->m_sb);
mp                796 fs/xfs/xfs_qm.c 		mp->m_sb.sb_uquotino = NULLFSINO;
mp                797 fs/xfs/xfs_qm.c 		mp->m_sb.sb_gquotino = NULLFSINO;
mp                798 fs/xfs/xfs_qm.c 		mp->m_sb.sb_pquotino = NULLFSINO;
mp                801 fs/xfs/xfs_qm.c 		mp->m_sb.sb_qflags = mp->m_qflags & XFS_ALL_QUOTA_ACCT;
mp                804 fs/xfs/xfs_qm.c 		mp->m_sb.sb_uquotino = (*ip)->i_ino;
mp                806 fs/xfs/xfs_qm.c 		mp->m_sb.sb_gquotino = (*ip)->i_ino;
mp                808 fs/xfs/xfs_qm.c 		mp->m_sb.sb_pquotino = (*ip)->i_ino;
mp                809 fs/xfs/xfs_qm.c 	spin_unlock(&mp->m_sb_lock);
mp                814 fs/xfs/xfs_qm.c 		ASSERT(XFS_FORCED_SHUTDOWN(mp));
mp                815 fs/xfs/xfs_qm.c 		xfs_alert(mp, "%s failed (error %d)!", __func__, error);
mp                825 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp,
mp                841 fs/xfs/xfs_qm.c 	j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) /
mp                843 fs/xfs/xfs_qm.c 	ASSERT(mp->m_quotainfo->qi_dqperchunk == j);
mp                846 fs/xfs/xfs_qm.c 	for (j = 0; j < mp->m_quotainfo->qi_dqperchunk; j++) {
mp                857 fs/xfs/xfs_qm.c 		fa = xfs_dqblk_verify(mp, &dqb[j], id + j, type);
mp                859 fs/xfs/xfs_qm.c 			xfs_dqblk_repair(mp, &dqb[j], id + j, type);
mp                876 fs/xfs/xfs_qm.c 		if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                886 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp,
mp                912 fs/xfs/xfs_qm.c 		error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp,
mp                913 fs/xfs/xfs_qm.c 			      XFS_FSB_TO_DADDR(mp, bno),
mp                914 fs/xfs/xfs_qm.c 			      mp->m_quotainfo->qi_dqchunklen, 0, &bp,
mp                925 fs/xfs/xfs_qm.c 			error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp,
mp                926 fs/xfs/xfs_qm.c 				      XFS_FSB_TO_DADDR(mp, bno),
mp                927 fs/xfs/xfs_qm.c 				      mp->m_quotainfo->qi_dqchunklen, 0, &bp,
mp                940 fs/xfs/xfs_qm.c 		xfs_qm_reset_dqcounts(mp, bp, firstid, type);
mp                946 fs/xfs/xfs_qm.c 		firstid += mp->m_quotainfo->qi_dqperchunk;
mp                958 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp,
mp                984 fs/xfs/xfs_qm.c 	maxlblkcnt = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
mp               1013 fs/xfs/xfs_qm.c 				mp->m_quotainfo->qi_dqperchunk;
mp               1022 fs/xfs/xfs_qm.c 					xfs_buf_readahead(mp->m_ddev_targp,
mp               1023 fs/xfs/xfs_qm.c 					       XFS_FSB_TO_DADDR(mp, rablkno),
mp               1024 fs/xfs/xfs_qm.c 					       mp->m_quotainfo->qi_dqchunklen,
mp               1033 fs/xfs/xfs_qm.c 			error = xfs_qm_reset_dqcounts_all(mp, firstid,
mp               1062 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1068 fs/xfs/xfs_qm.c 	error = xfs_qm_dqget(mp, id, type, true, &dqp);
mp               1101 fs/xfs/xfs_qm.c 		xfs_qm_adjust_dqlimits(mp, dqp);
mp               1102 fs/xfs/xfs_qm.c 		xfs_qm_adjust_dqtimers(mp, &dqp->q_core);
mp               1117 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp,
mp               1127 fs/xfs/xfs_qm.c 	ASSERT(XFS_IS_QUOTA_RUNNING(mp));
mp               1133 fs/xfs/xfs_qm.c 	if (xfs_is_quota_inode(&mp->m_sb, ino))
mp               1140 fs/xfs/xfs_qm.c 	error = xfs_iget(mp, tp, ino, XFS_IGET_DONTCACHE, 0, &ip);
mp               1174 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_ON(mp)) {
mp               1181 fs/xfs/xfs_qm.c 	if (XFS_IS_GQUOTA_ON(mp)) {
mp               1188 fs/xfs/xfs_qm.c 	if (XFS_IS_PQUOTA_ON(mp)) {
mp               1205 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = dqp->q_mount;
mp               1226 fs/xfs/xfs_qm.c 		bp = xfs_buf_incore(mp->m_ddev_targp, dqp->q_blkno,
mp               1227 fs/xfs/xfs_qm.c 				mp->m_quotainfo->qi_dqchunklen, 0);
mp               1258 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp)
mp               1263 fs/xfs/xfs_qm.c 	struct xfs_inode	*uip = mp->m_quotainfo->qi_uquotaip;
mp               1264 fs/xfs/xfs_qm.c 	struct xfs_inode	*gip = mp->m_quotainfo->qi_gquotaip;
mp               1265 fs/xfs/xfs_qm.c 	struct xfs_inode	*pip = mp->m_quotainfo->qi_pquotaip;
mp               1270 fs/xfs/xfs_qm.c 	ASSERT(XFS_IS_QUOTA_RUNNING(mp));
mp               1272 fs/xfs/xfs_qm.c 	xfs_notice(mp, "Quotacheck needed: Please wait.");
mp               1280 fs/xfs/xfs_qm.c 		error = xfs_qm_reset_dqcounts_buf(mp, uip, XFS_QMOPT_UQUOTA,
mp               1288 fs/xfs/xfs_qm.c 		error = xfs_qm_reset_dqcounts_buf(mp, gip, XFS_QMOPT_GQUOTA,
mp               1296 fs/xfs/xfs_qm.c 		error = xfs_qm_reset_dqcounts_buf(mp, pip, XFS_QMOPT_PQUOTA,
mp               1303 fs/xfs/xfs_qm.c 	error = xfs_iwalk_threaded(mp, 0, 0, xfs_qm_dqusage_adjust, 0, true,
mp               1312 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_ON(mp)) {
mp               1313 fs/xfs/xfs_qm.c 		error = xfs_qm_dquot_walk(mp, XFS_DQ_USER, xfs_qm_flush_one,
mp               1316 fs/xfs/xfs_qm.c 	if (XFS_IS_GQUOTA_ON(mp)) {
mp               1317 fs/xfs/xfs_qm.c 		error2 = xfs_qm_dquot_walk(mp, XFS_DQ_GROUP, xfs_qm_flush_one,
mp               1322 fs/xfs/xfs_qm.c 	if (XFS_IS_PQUOTA_ON(mp)) {
mp               1323 fs/xfs/xfs_qm.c 		error2 = xfs_qm_dquot_walk(mp, XFS_DQ_PROJ, xfs_qm_flush_one,
mp               1341 fs/xfs/xfs_qm.c 		xfs_qm_dqpurge_all(mp, XFS_QMOPT_QUOTALL);
mp               1350 fs/xfs/xfs_qm.c 	mp->m_qflags &= ~XFS_ALL_QUOTA_CHKD;
mp               1351 fs/xfs/xfs_qm.c 	mp->m_qflags |= flags;
mp               1357 fs/xfs/xfs_qm.c 		xfs_warn(mp,
mp               1363 fs/xfs/xfs_qm.c 		ASSERT(mp->m_quotainfo != NULL);
mp               1364 fs/xfs/xfs_qm.c 		xfs_qm_destroy_quotainfo(mp);
mp               1365 fs/xfs/xfs_qm.c 		if (xfs_mount_reset_sbqflags(mp)) {
mp               1366 fs/xfs/xfs_qm.c 			xfs_warn(mp,
mp               1370 fs/xfs/xfs_qm.c 		xfs_notice(mp, "Quotacheck: Done.");
mp               1385 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp)
mp               1394 fs/xfs/xfs_qm.c 	if (mp->m_sb.sb_rextents) {
mp               1395 fs/xfs/xfs_qm.c 		xfs_notice(mp, "Cannot turn on quotas for realtime filesystem");
mp               1396 fs/xfs/xfs_qm.c 		mp->m_qflags = 0;
mp               1400 fs/xfs/xfs_qm.c 	ASSERT(XFS_IS_QUOTA_RUNNING(mp));
mp               1406 fs/xfs/xfs_qm.c 	error = xfs_qm_init_quotainfo(mp);
mp               1411 fs/xfs/xfs_qm.c 		ASSERT(mp->m_quotainfo == NULL);
mp               1412 fs/xfs/xfs_qm.c 		mp->m_qflags = 0;
mp               1418 fs/xfs/xfs_qm.c 	if (XFS_QM_NEED_QUOTACHECK(mp)) {
mp               1419 fs/xfs/xfs_qm.c 		error = xfs_qm_quotacheck(mp);
mp               1430 fs/xfs/xfs_qm.c 	if (!XFS_IS_UQUOTA_ON(mp))
mp               1431 fs/xfs/xfs_qm.c 		mp->m_qflags &= ~XFS_UQUOTA_CHKD;
mp               1432 fs/xfs/xfs_qm.c 	if (!XFS_IS_GQUOTA_ON(mp))
mp               1433 fs/xfs/xfs_qm.c 		mp->m_qflags &= ~XFS_GQUOTA_CHKD;
mp               1434 fs/xfs/xfs_qm.c 	if (!XFS_IS_PQUOTA_ON(mp))
mp               1435 fs/xfs/xfs_qm.c 		mp->m_qflags &= ~XFS_PQUOTA_CHKD;
mp               1442 fs/xfs/xfs_qm.c 	spin_lock(&mp->m_sb_lock);
mp               1443 fs/xfs/xfs_qm.c 	sbf = mp->m_sb.sb_qflags;
mp               1444 fs/xfs/xfs_qm.c 	mp->m_sb.sb_qflags = mp->m_qflags & XFS_MOUNT_QUOTA_ALL;
mp               1445 fs/xfs/xfs_qm.c 	spin_unlock(&mp->m_sb_lock);
mp               1447 fs/xfs/xfs_qm.c 	if (sbf != (mp->m_qflags & XFS_MOUNT_QUOTA_ALL)) {
mp               1448 fs/xfs/xfs_qm.c 		if (xfs_sync_sb(mp, false)) {
mp               1455 fs/xfs/xfs_qm.c 			ASSERT(!(XFS_IS_QUOTA_RUNNING(mp)));
mp               1456 fs/xfs/xfs_qm.c 			xfs_alert(mp, "%s: Superblock update failed!",
mp               1462 fs/xfs/xfs_qm.c 		xfs_warn(mp, "Failed to initialize disk quotas.");
mp               1473 fs/xfs/xfs_qm.c 	xfs_mount_t	*mp)
mp               1481 fs/xfs/xfs_qm.c 	ASSERT(mp->m_quotainfo);
mp               1486 fs/xfs/xfs_qm.c 	if (xfs_sb_version_hasquota(&mp->m_sb)) {
mp               1487 fs/xfs/xfs_qm.c 		if (XFS_IS_UQUOTA_ON(mp) &&
mp               1488 fs/xfs/xfs_qm.c 		    mp->m_sb.sb_uquotino != NULLFSINO) {
mp               1489 fs/xfs/xfs_qm.c 			ASSERT(mp->m_sb.sb_uquotino > 0);
mp               1490 fs/xfs/xfs_qm.c 			error = xfs_iget(mp, NULL, mp->m_sb.sb_uquotino,
mp               1495 fs/xfs/xfs_qm.c 		if (XFS_IS_GQUOTA_ON(mp) &&
mp               1496 fs/xfs/xfs_qm.c 		    mp->m_sb.sb_gquotino != NULLFSINO) {
mp               1497 fs/xfs/xfs_qm.c 			ASSERT(mp->m_sb.sb_gquotino > 0);
mp               1498 fs/xfs/xfs_qm.c 			error = xfs_iget(mp, NULL, mp->m_sb.sb_gquotino,
mp               1503 fs/xfs/xfs_qm.c 		if (XFS_IS_PQUOTA_ON(mp) &&
mp               1504 fs/xfs/xfs_qm.c 		    mp->m_sb.sb_pquotino != NULLFSINO) {
mp               1505 fs/xfs/xfs_qm.c 			ASSERT(mp->m_sb.sb_pquotino > 0);
mp               1506 fs/xfs/xfs_qm.c 			error = xfs_iget(mp, NULL, mp->m_sb.sb_pquotino,
mp               1521 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_ON(mp) && uip == NULL) {
mp               1522 fs/xfs/xfs_qm.c 		error = xfs_qm_qino_alloc(mp, &uip,
mp               1529 fs/xfs/xfs_qm.c 	if (XFS_IS_GQUOTA_ON(mp) && gip == NULL) {
mp               1530 fs/xfs/xfs_qm.c 		error = xfs_qm_qino_alloc(mp, &gip,
mp               1537 fs/xfs/xfs_qm.c 	if (XFS_IS_PQUOTA_ON(mp) && pip == NULL) {
mp               1538 fs/xfs/xfs_qm.c 		error = xfs_qm_qino_alloc(mp, &pip,
mp               1544 fs/xfs/xfs_qm.c 	mp->m_quotainfo->qi_uquotaip = uip;
mp               1545 fs/xfs/xfs_qm.c 	mp->m_quotainfo->qi_gquotaip = gip;
mp               1546 fs/xfs/xfs_qm.c 	mp->m_quotainfo->qi_pquotaip = pip;
mp               1582 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = dqp->q_mount;
mp               1583 fs/xfs/xfs_qm.c 	struct xfs_quotainfo	*qi = mp->m_quotainfo;
mp               1619 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1626 fs/xfs/xfs_qm.c 	if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
mp               1639 fs/xfs/xfs_qm.c 	if (XFS_NOT_DQATTACHED(mp, ip)) {
mp               1647 fs/xfs/xfs_qm.c 	if ((flags & XFS_QMOPT_UQUOTA) && XFS_IS_UQUOTA_ON(mp)) {
mp               1659 fs/xfs/xfs_qm.c 			error = xfs_qm_dqget(mp, uid, XFS_DQ_USER, true, &uq);
mp               1679 fs/xfs/xfs_qm.c 	if ((flags & XFS_QMOPT_GQUOTA) && XFS_IS_GQUOTA_ON(mp)) {
mp               1682 fs/xfs/xfs_qm.c 			error = xfs_qm_dqget(mp, gid, XFS_DQ_GROUP, true, &gq);
mp               1695 fs/xfs/xfs_qm.c 	if ((flags & XFS_QMOPT_PQUOTA) && XFS_IS_PQUOTA_ON(mp)) {
mp               1698 fs/xfs/xfs_qm.c 			error = xfs_qm_dqget(mp, (xfs_dqid_t)prid, XFS_DQ_PROJ,
mp               1788 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1801 fs/xfs/xfs_qm.c 	ASSERT(XFS_IS_QUOTA_RUNNING(mp));
mp               1807 fs/xfs/xfs_qm.c 	if (XFS_IS_UQUOTA_ON(mp) && udqp &&
mp               1876 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = i_tab[0]->i_mount;
mp               1879 fs/xfs/xfs_qm.c 	if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
mp               1890 fs/xfs/xfs_qm.c 			if (XFS_NOT_DQATTACHED(mp, ip)) {
mp               1908 fs/xfs/xfs_qm.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               1910 fs/xfs/xfs_qm.c 	if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
mp               1914 fs/xfs/xfs_qm.c 	ASSERT(XFS_IS_QUOTA_RUNNING(mp));
mp               1916 fs/xfs/xfs_qm.c 	if (udqp && XFS_IS_UQUOTA_ON(mp)) {
mp               1923 fs/xfs/xfs_qm.c 	if (gdqp && XFS_IS_GQUOTA_ON(mp)) {
mp               1929 fs/xfs/xfs_qm.c 	if (pdqp && XFS_IS_PQUOTA_ON(mp)) {
mp                101 fs/xfs/xfs_qm.h xfs_quota_inode(xfs_mount_t *mp, uint dq_flags)
mp                105 fs/xfs/xfs_qm.h 		return mp->m_quotainfo->qi_uquotaip;
mp                107 fs/xfs/xfs_qm.h 		return mp->m_quotainfo->qi_gquotaip;
mp                109 fs/xfs/xfs_qm.h 		return mp->m_quotainfo->qi_pquotaip;
mp                 60 fs/xfs/xfs_qm_bhv.c 	xfs_mount_t		*mp = ip->i_mount;
mp                 63 fs/xfs/xfs_qm_bhv.c 	if (!xfs_qm_dqget(mp, xfs_get_projid(ip), XFS_DQ_PROJ, false, &dqp)) {
mp                 71 fs/xfs/xfs_qm_bhv.c 	xfs_mount_t	*mp,
mp                 78 fs/xfs/xfs_qm_bhv.c 	quotaondisk = xfs_sb_version_hasquota(&mp->m_sb) &&
mp                 79 fs/xfs/xfs_qm_bhv.c 				(mp->m_sb.sb_qflags & XFS_ALL_QUOTA_ACCT);
mp                 82 fs/xfs/xfs_qm_bhv.c 		uquotaondisk = mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT;
mp                 83 fs/xfs/xfs_qm_bhv.c 		pquotaondisk = mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT;
mp                 84 fs/xfs/xfs_qm_bhv.c 		gquotaondisk = mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT;
mp                 94 fs/xfs/xfs_qm_bhv.c 	if (((uquotaondisk && !XFS_IS_UQUOTA_ON(mp)) ||
mp                 95 fs/xfs/xfs_qm_bhv.c 	    (!uquotaondisk &&  XFS_IS_UQUOTA_ON(mp)) ||
mp                 96 fs/xfs/xfs_qm_bhv.c 	     (gquotaondisk && !XFS_IS_GQUOTA_ON(mp)) ||
mp                 97 fs/xfs/xfs_qm_bhv.c 	    (!gquotaondisk &&  XFS_IS_GQUOTA_ON(mp)) ||
mp                 98 fs/xfs/xfs_qm_bhv.c 	     (pquotaondisk && !XFS_IS_PQUOTA_ON(mp)) ||
mp                 99 fs/xfs/xfs_qm_bhv.c 	    (!pquotaondisk &&  XFS_IS_PQUOTA_ON(mp)))  &&
mp                100 fs/xfs/xfs_qm_bhv.c 	    xfs_dev_is_read_only(mp, "changing quota state")) {
mp                101 fs/xfs/xfs_qm_bhv.c 		xfs_warn(mp, "please mount with%s%s%s%s.",
mp                109 fs/xfs/xfs_qm_bhv.c 	if (XFS_IS_QUOTA_ON(mp) || quotaondisk) {
mp                114 fs/xfs/xfs_qm_bhv.c 		if (quotaondisk && !XFS_QM_NEED_QUOTACHECK(mp)) {
mp                121 fs/xfs/xfs_qm_bhv.c 			xfs_qm_mount_quotas(mp);
mp                131 fs/xfs/xfs_qm_bhv.c 			*quotaflags = mp->m_qflags;
mp                132 fs/xfs/xfs_qm_bhv.c 			mp->m_qflags = 0;
mp                 36 fs/xfs/xfs_qm_syscalls.c 	xfs_mount_t		*mp,
mp                 39 fs/xfs/xfs_qm_syscalls.c 	struct xfs_quotainfo	*q = mp->m_quotainfo;
mp                 50 fs/xfs/xfs_qm_syscalls.c 	if ((mp->m_qflags & flags) == 0)
mp                 69 fs/xfs/xfs_qm_syscalls.c 		mp->m_qflags &= ~(flags);
mp                 71 fs/xfs/xfs_qm_syscalls.c 		spin_lock(&mp->m_sb_lock);
mp                 72 fs/xfs/xfs_qm_syscalls.c 		mp->m_sb.sb_qflags = mp->m_qflags;
mp                 73 fs/xfs/xfs_qm_syscalls.c 		spin_unlock(&mp->m_sb_lock);
mp                 77 fs/xfs/xfs_qm_syscalls.c 		return xfs_sync_sb(mp, false);
mp                107 fs/xfs/xfs_qm_syscalls.c 	if ((mp->m_qflags & flags) == 0)
mp                115 fs/xfs/xfs_qm_syscalls.c 	error = xfs_qm_log_quotaoff(mp, &qoffstart, flags);
mp                130 fs/xfs/xfs_qm_syscalls.c 	mp->m_qflags &= ~inactivate_flags;
mp                142 fs/xfs/xfs_qm_syscalls.c 	xfs_qm_dqrele_all_inodes(mp, flags);
mp                149 fs/xfs/xfs_qm_syscalls.c 	mp->m_qflags &= ~flags;
mp                155 fs/xfs/xfs_qm_syscalls.c 	xfs_qm_dqpurge_all(mp, dqtype);
mp                168 fs/xfs/xfs_qm_syscalls.c 	error = xfs_qm_log_quotaoff_end(mp, qoffstart, flags);
mp                171 fs/xfs/xfs_qm_syscalls.c 		xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp                178 fs/xfs/xfs_qm_syscalls.c 	if (mp->m_qflags == 0) {
mp                180 fs/xfs/xfs_qm_syscalls.c 		xfs_qm_destroy_quotainfo(mp);
mp                207 fs/xfs/xfs_qm_syscalls.c 	struct xfs_mount	*mp,
mp                217 fs/xfs/xfs_qm_syscalls.c 	error = xfs_iget(mp, NULL, ino, 0, 0, &ip);
mp                223 fs/xfs/xfs_qm_syscalls.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp);
mp                255 fs/xfs/xfs_qm_syscalls.c 	xfs_mount_t	*mp,
mp                260 fs/xfs/xfs_qm_syscalls.c 	if (!xfs_sb_version_hasquota(&mp->m_sb) || flags == 0 ||
mp                262 fs/xfs/xfs_qm_syscalls.c 		xfs_debug(mp, "%s: flags=%x m_qflags=%x",
mp                263 fs/xfs/xfs_qm_syscalls.c 			__func__, flags, mp->m_qflags);
mp                268 fs/xfs/xfs_qm_syscalls.c 		error = xfs_qm_scall_trunc_qfile(mp, mp->m_sb.sb_uquotino);
mp                273 fs/xfs/xfs_qm_syscalls.c 		error = xfs_qm_scall_trunc_qfile(mp, mp->m_sb.sb_gquotino);
mp                278 fs/xfs/xfs_qm_syscalls.c 		error = xfs_qm_scall_trunc_qfile(mp, mp->m_sb.sb_pquotino);
mp                290 fs/xfs/xfs_qm_syscalls.c 	xfs_mount_t	*mp,
mp                303 fs/xfs/xfs_qm_syscalls.c 		xfs_debug(mp, "%s: zero flags, m_qflags=%x",
mp                304 fs/xfs/xfs_qm_syscalls.c 			__func__, mp->m_qflags);
mp                313 fs/xfs/xfs_qm_syscalls.c 	if (((mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT) == 0 &&
mp                315 fs/xfs/xfs_qm_syscalls.c 	    ((mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT) == 0 &&
mp                317 fs/xfs/xfs_qm_syscalls.c 	    ((mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT) == 0 &&
mp                319 fs/xfs/xfs_qm_syscalls.c 		xfs_debug(mp,
mp                321 fs/xfs/xfs_qm_syscalls.c 			__func__, flags, mp->m_sb.sb_qflags);
mp                327 fs/xfs/xfs_qm_syscalls.c 	if ((mp->m_qflags & flags) == flags)
mp                334 fs/xfs/xfs_qm_syscalls.c 	spin_lock(&mp->m_sb_lock);
mp                335 fs/xfs/xfs_qm_syscalls.c 	qf = mp->m_sb.sb_qflags;
mp                336 fs/xfs/xfs_qm_syscalls.c 	mp->m_sb.sb_qflags = qf | flags;
mp                337 fs/xfs/xfs_qm_syscalls.c 	spin_unlock(&mp->m_sb_lock);
mp                345 fs/xfs/xfs_qm_syscalls.c 	error = xfs_sync_sb(mp, false);
mp                351 fs/xfs/xfs_qm_syscalls.c 	if  (((mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT) !=
mp                352 fs/xfs/xfs_qm_syscalls.c 	     (mp->m_qflags & XFS_UQUOTA_ACCT)) ||
mp                353 fs/xfs/xfs_qm_syscalls.c 	     ((mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT) !=
mp                354 fs/xfs/xfs_qm_syscalls.c 	     (mp->m_qflags & XFS_PQUOTA_ACCT)) ||
mp                355 fs/xfs/xfs_qm_syscalls.c 	     ((mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT) !=
mp                356 fs/xfs/xfs_qm_syscalls.c 	     (mp->m_qflags & XFS_GQUOTA_ACCT)))
mp                359 fs/xfs/xfs_qm_syscalls.c 	if (! XFS_IS_QUOTA_RUNNING(mp))
mp                365 fs/xfs/xfs_qm_syscalls.c 	mutex_lock(&mp->m_quotainfo->qi_quotaofflock);
mp                366 fs/xfs/xfs_qm_syscalls.c 	mp->m_qflags |= (flags & XFS_ALL_QUOTA_ENFD);
mp                367 fs/xfs/xfs_qm_syscalls.c 	mutex_unlock(&mp->m_quotainfo->qi_quotaofflock);
mp                380 fs/xfs/xfs_qm_syscalls.c 	struct xfs_mount	*mp,
mp                385 fs/xfs/xfs_qm_syscalls.c 	struct xfs_quotainfo	*q = mp->m_quotainfo;
mp                412 fs/xfs/xfs_qm_syscalls.c 	error = xfs_qm_dqget(mp, id, type, true, &dqp);
mp                421 fs/xfs/xfs_qm_syscalls.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_setqlim, 0, 0, 0, &tp);
mp                433 fs/xfs/xfs_qm_syscalls.c 		(xfs_qcnt_t) XFS_B_TO_FSB(mp, newlim->d_spc_hardlimit) :
mp                436 fs/xfs/xfs_qm_syscalls.c 		(xfs_qcnt_t) XFS_B_TO_FSB(mp, newlim->d_spc_softlimit) :
mp                447 fs/xfs/xfs_qm_syscalls.c 		xfs_debug(mp, "blkhard %Ld < blksoft %Ld", hard, soft);
mp                450 fs/xfs/xfs_qm_syscalls.c 		(xfs_qcnt_t) XFS_B_TO_FSB(mp, newlim->d_rt_spc_hardlimit) :
mp                453 fs/xfs/xfs_qm_syscalls.c 		(xfs_qcnt_t) XFS_B_TO_FSB(mp, newlim->d_rt_spc_softlimit) :
mp                463 fs/xfs/xfs_qm_syscalls.c 		xfs_debug(mp, "rtbhard %Ld < rtbsoft %Ld", hard, soft);
mp                480 fs/xfs/xfs_qm_syscalls.c 		xfs_debug(mp, "ihard %Ld < isoft %Ld", hard, soft);
mp                527 fs/xfs/xfs_qm_syscalls.c 		xfs_qm_adjust_dqtimers(mp, ddq);
mp                543 fs/xfs/xfs_qm_syscalls.c 	xfs_mount_t		*mp,
mp                551 fs/xfs/xfs_qm_syscalls.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_equotaoff, 0, 0, 0, &tp);
mp                571 fs/xfs/xfs_qm_syscalls.c 	xfs_mount_t	       *mp,
mp                581 fs/xfs/xfs_qm_syscalls.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_quotaoff, 0, 0, 0, &tp);
mp                588 fs/xfs/xfs_qm_syscalls.c 	spin_lock(&mp->m_sb_lock);
mp                589 fs/xfs/xfs_qm_syscalls.c 	mp->m_sb.sb_qflags = (mp->m_qflags & ~(flags)) & XFS_MOUNT_QUOTA_ALL;
mp                590 fs/xfs/xfs_qm_syscalls.c 	spin_unlock(&mp->m_sb_lock);
mp                612 fs/xfs/xfs_qm_syscalls.c 	struct xfs_mount	*mp,
mp                619 fs/xfs/xfs_qm_syscalls.c 		XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_hardlimit));
mp                621 fs/xfs/xfs_qm_syscalls.c 		XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_softlimit));
mp                624 fs/xfs/xfs_qm_syscalls.c 	dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount);
mp                631 fs/xfs/xfs_qm_syscalls.c 		XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_hardlimit));
mp                633 fs/xfs/xfs_qm_syscalls.c 		XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_softlimit));
mp                634 fs/xfs/xfs_qm_syscalls.c 	dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_res_rtbcount);
mp                643 fs/xfs/xfs_qm_syscalls.c 	if ((!XFS_IS_UQUOTA_ENFORCED(mp) &&
mp                645 fs/xfs/xfs_qm_syscalls.c 	    (!XFS_IS_GQUOTA_ENFORCED(mp) &&
mp                647 fs/xfs/xfs_qm_syscalls.c 	    (!XFS_IS_PQUOTA_ENFORCED(mp) &&
mp                655 fs/xfs/xfs_qm_syscalls.c 	if (((XFS_IS_UQUOTA_ENFORCED(mp) && type == XFS_DQ_USER) ||
mp                656 fs/xfs/xfs_qm_syscalls.c 	     (XFS_IS_GQUOTA_ENFORCED(mp) && type == XFS_DQ_GROUP) ||
mp                657 fs/xfs/xfs_qm_syscalls.c 	     (XFS_IS_PQUOTA_ENFORCED(mp) && type == XFS_DQ_PROJ)) &&
mp                674 fs/xfs/xfs_qm_syscalls.c 	struct xfs_mount	*mp,
mp                686 fs/xfs/xfs_qm_syscalls.c 	error = xfs_qm_dqget(mp, id, type, false, &dqp);
mp                699 fs/xfs/xfs_qm_syscalls.c 	xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst);
mp                712 fs/xfs/xfs_qm_syscalls.c 	struct xfs_mount	*mp,
mp                720 fs/xfs/xfs_qm_syscalls.c 	error = xfs_qm_dqget_next(mp, *id, type, &dqp);
mp                727 fs/xfs/xfs_qm_syscalls.c 	xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst);
mp                775 fs/xfs/xfs_qm_syscalls.c 	struct xfs_mount *mp,
mp                778 fs/xfs/xfs_qm_syscalls.c 	ASSERT(mp->m_quotainfo);
mp                779 fs/xfs/xfs_qm_syscalls.c 	xfs_inode_ag_iterator_flags(mp, xfs_dqrele_inode, flags, NULL,
mp                 26 fs/xfs/xfs_quota.h #define XFS_NOT_DQATTACHED(mp, ip) \
mp                 27 fs/xfs/xfs_quota.h 	((XFS_IS_UQUOTA_ON(mp) && (ip)->i_udquot == NULL) || \
mp                 28 fs/xfs/xfs_quota.h 	 (XFS_IS_GQUOTA_ON(mp) && (ip)->i_gdquot == NULL) || \
mp                 29 fs/xfs/xfs_quota.h 	 (XFS_IS_PQUOTA_ON(mp) && (ip)->i_pdquot == NULL))
mp                 31 fs/xfs/xfs_quota.h #define XFS_QM_NEED_QUOTACHECK(mp) \
mp                 32 fs/xfs/xfs_quota.h 	((XFS_IS_UQUOTA_ON(mp) && \
mp                 33 fs/xfs/xfs_quota.h 		(mp->m_sb.sb_qflags & XFS_UQUOTA_CHKD) == 0) || \
mp                 34 fs/xfs/xfs_quota.h 	 (XFS_IS_GQUOTA_ON(mp) && \
mp                 35 fs/xfs/xfs_quota.h 		(mp->m_sb.sb_qflags & XFS_GQUOTA_CHKD) == 0) || \
mp                 36 fs/xfs/xfs_quota.h 	 (XFS_IS_PQUOTA_ON(mp) && \
mp                 37 fs/xfs/xfs_quota.h 		(mp->m_sb.sb_qflags & XFS_PQUOTA_CHKD) == 0))
mp                132 fs/xfs/xfs_quota.h 		struct xfs_mount *mp, struct xfs_dquot *udqp,
mp                147 fs/xfs/xfs_quota.h #define xfs_qm_newmount(mp, a, b)					(0)
mp                148 fs/xfs/xfs_quota.h #define xfs_qm_mount_quotas(mp)
mp                149 fs/xfs/xfs_quota.h #define xfs_qm_unmount(mp)
mp                150 fs/xfs/xfs_quota.h #define xfs_qm_unmount_quotas(mp)
mp                155 fs/xfs/xfs_quota.h #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \
mp                156 fs/xfs/xfs_quota.h 	xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \
mp                 22 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp,
mp                 26 fs/xfs/xfs_quotaops.c 	struct xfs_quotainfo *q = mp->m_quotainfo;
mp                 33 fs/xfs/xfs_quotaops.c 		if (xfs_iget(mp, NULL, ino, 0, 0, &ip))
mp                 59 fs/xfs/xfs_quotaops.c 	struct xfs_mount *mp = XFS_M(sb);
mp                 60 fs/xfs/xfs_quotaops.c 	struct xfs_quotainfo *q = mp->m_quotainfo;
mp                 63 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                 66 fs/xfs/xfs_quotaops.c 	if (XFS_IS_UQUOTA_RUNNING(mp))
mp                 68 fs/xfs/xfs_quotaops.c 	if (XFS_IS_UQUOTA_ENFORCED(mp))
mp                 70 fs/xfs/xfs_quotaops.c 	if (XFS_IS_GQUOTA_RUNNING(mp))
mp                 72 fs/xfs/xfs_quotaops.c 	if (XFS_IS_GQUOTA_ENFORCED(mp))
mp                 74 fs/xfs/xfs_quotaops.c 	if (XFS_IS_PQUOTA_RUNNING(mp))
mp                 76 fs/xfs/xfs_quotaops.c 	if (XFS_IS_PQUOTA_ENFORCED(mp))
mp                 79 fs/xfs/xfs_quotaops.c 	xfs_qm_fill_state(&state->s_state[USRQUOTA], mp, q->qi_uquotaip,
mp                 80 fs/xfs/xfs_quotaops.c 			  mp->m_sb.sb_uquotino);
mp                 81 fs/xfs/xfs_quotaops.c 	xfs_qm_fill_state(&state->s_state[GRPQUOTA], mp, q->qi_gquotaip,
mp                 82 fs/xfs/xfs_quotaops.c 			  mp->m_sb.sb_gquotino);
mp                 83 fs/xfs/xfs_quotaops.c 	xfs_qm_fill_state(&state->s_state[PRJQUOTA], mp, q->qi_pquotaip,
mp                 84 fs/xfs/xfs_quotaops.c 			  mp->m_sb.sb_pquotino);
mp                112 fs/xfs/xfs_quotaops.c 	struct xfs_mount *mp = XFS_M(sb);
mp                117 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                119 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_ON(mp))
mp                134 fs/xfs/xfs_quotaops.c 	return xfs_qm_scall_setqlim(mp, 0, xfs_quota_type(type), &newlim);
mp                163 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                167 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                170 fs/xfs/xfs_quotaops.c 	return xfs_qm_scall_quotaon(mp, xfs_quota_flags(uflags));
mp                178 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                182 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                184 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_ON(mp))
mp                187 fs/xfs/xfs_quotaops.c 	return xfs_qm_scall_quotaoff(mp, xfs_quota_flags(uflags));
mp                195 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                201 fs/xfs/xfs_quotaops.c 	if (XFS_IS_QUOTA_ON(mp))
mp                214 fs/xfs/xfs_quotaops.c 	return xfs_qm_scall_trunc_qfiles(mp, flags);
mp                223 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                226 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                228 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_ON(mp))
mp                232 fs/xfs/xfs_quotaops.c 	return xfs_qm_scall_getquota(mp, id, xfs_quota_type(qid.type), qdq);
mp                243 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                246 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                248 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_ON(mp))
mp                252 fs/xfs/xfs_quotaops.c 	ret = xfs_qm_scall_getquota_next(mp, &id, xfs_quota_type(qid->type),
mp                268 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
mp                272 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_RUNNING(mp))
mp                274 fs/xfs/xfs_quotaops.c 	if (!XFS_IS_QUOTA_ON(mp))
mp                277 fs/xfs/xfs_quotaops.c 	return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid),
mp                138 fs/xfs/xfs_refcount_item.c 	struct xfs_mount		*mp,
mp                151 fs/xfs/xfs_refcount_item.c 	xfs_log_item_init(mp, &cuip->cui_item, XFS_LI_CUI, &xfs_cui_item_ops);
mp                277 fs/xfs/xfs_refcount_item.c 	struct xfs_mount		*mp = priv;
mp                283 fs/xfs/xfs_refcount_item.c 	return  XFS_FSB_TO_AGNO(mp, ra->ri_startblock) -
mp                284 fs/xfs/xfs_refcount_item.c 		XFS_FSB_TO_AGNO(mp, rb->ri_startblock);
mp                465 fs/xfs/xfs_refcount_item.c 	struct xfs_mount		*mp = parent_tp->t_mountp;
mp                476 fs/xfs/xfs_refcount_item.c 		startblock_fsb = XFS_BB_TO_FSB(mp,
mp                477 fs/xfs/xfs_refcount_item.c 				   XFS_FSB_TO_DADDR(mp, refc->pe_startblock));
mp                491 fs/xfs/xfs_refcount_item.c 		    startblock_fsb >= mp->m_sb.sb_dblocks ||
mp                492 fs/xfs/xfs_refcount_item.c 		    refc->pe_len >= mp->m_sb.sb_agblocks ||
mp                516 fs/xfs/xfs_refcount_item.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate,
mp                517 fs/xfs/xfs_refcount_item.c 			mp->m_refc_maxlevels * 2, 0, XFS_TRANS_RESERVE, &tp);
mp                130 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp,
mp                143 fs/xfs/xfs_reflink.c 	error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp);
mp                149 fs/xfs/xfs_reflink.c 	cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno);
mp                288 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp                289 fs/xfs/xfs_reflink.c 	xfs_fileoff_t		offset_fsb = XFS_B_TO_FSBT(mp, offset);
mp                290 fs/xfs/xfs_reflink.c 	xfs_fileoff_t		end_fsb = XFS_B_TO_FSB(mp, offset + count);
mp                355 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp                378 fs/xfs/xfs_reflink.c 	resblks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned);
mp                381 fs/xfs/xfs_reflink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp);
mp                606 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp                619 fs/xfs/xfs_reflink.c 	resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK);
mp                620 fs/xfs/xfs_reflink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0,
mp                766 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp)
mp                771 fs/xfs/xfs_reflink.c 	if (!xfs_sb_version_hasreflink(&mp->m_sb))
mp                774 fs/xfs/xfs_reflink.c 	for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
mp                775 fs/xfs/xfs_reflink.c 		error = xfs_refcount_recover_cow_leftovers(mp, agno);
mp                867 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = src->i_mount;
mp                874 fs/xfs/xfs_reflink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
mp                926 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = dest->i_mount;
mp                933 fs/xfs/xfs_reflink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
mp                971 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp,
mp                977 fs/xfs/xfs_reflink.c 	if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
mp                980 fs/xfs/xfs_reflink.c 	pag = xfs_perag_get(mp, agno);
mp               1000 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1015 fs/xfs/xfs_reflink.c 		error = xfs_reflink_ag_has_free_space(mp,
mp               1016 fs/xfs/xfs_reflink.c 				XFS_FSB_TO_AGNO(mp, irec->br_startblock));
mp               1023 fs/xfs/xfs_reflink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp);
mp               1077 fs/xfs/xfs_reflink.c 		newlen = XFS_FSB_TO_B(mp,
mp               1400 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1428 fs/xfs/xfs_reflink.c 			agno = XFS_FSB_TO_AGNO(mp, map[1].br_startblock);
mp               1429 fs/xfs/xfs_reflink.c 			agbno = XFS_FSB_TO_AGBNO(mp, map[1].br_startblock);
mp               1432 fs/xfs/xfs_reflink.c 			error = xfs_reflink_find_shared(mp, NULL, agno, agbno,
mp               1441 fs/xfs/xfs_reflink.c 			fpos = XFS_FSB_TO_B(mp, map[1].br_startoff +
mp               1443 fs/xfs/xfs_reflink.c 			flen = XFS_FSB_TO_B(mp, rlen);
mp               1472 fs/xfs/xfs_reflink.c 	struct xfs_mount		*mp = ip->i_mount;
mp               1496 fs/xfs/xfs_reflink.c 		agno = XFS_FSB_TO_AGNO(mp, got.br_startblock);
mp               1497 fs/xfs/xfs_reflink.c 		agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock);
mp               1500 fs/xfs/xfs_reflink.c 		error = xfs_reflink_find_shared(mp, tp, agno, agbno, aglen,
mp               1561 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1566 fs/xfs/xfs_reflink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, 0, 0, 0, &tp);
mp               1600 fs/xfs/xfs_reflink.c 	struct xfs_mount	*mp = ip->i_mount;
mp               1615 fs/xfs/xfs_reflink.c 	fbno = XFS_B_TO_FSBT(mp, offset);
mp               1617 fs/xfs/xfs_reflink.c 	end = XFS_B_TO_FSB(mp, offset + len);
mp                 20 fs/xfs/xfs_reflink.h extern int xfs_reflink_find_shared(struct xfs_mount *mp, struct xfs_trans *tp,
mp                 41 fs/xfs/xfs_reflink.h extern int xfs_reflink_recover_cow(struct xfs_mount *mp);
mp                137 fs/xfs/xfs_rmap_item.c 	struct xfs_mount		*mp,
mp                149 fs/xfs/xfs_rmap_item.c 	xfs_log_item_init(mp, &ruip->rui_item, XFS_LI_RUI, &xfs_rui_item_ops);
mp                343 fs/xfs/xfs_rmap_item.c 	struct xfs_mount		*mp = priv;
mp                349 fs/xfs/xfs_rmap_item.c 	return  XFS_FSB_TO_AGNO(mp, ra->ri_bmap.br_startblock) -
mp                350 fs/xfs/xfs_rmap_item.c 		XFS_FSB_TO_AGNO(mp, rb->ri_bmap.br_startblock);
mp                490 fs/xfs/xfs_rmap_item.c 	struct xfs_mount		*mp,
mp                514 fs/xfs/xfs_rmap_item.c 		startblock_fsb = XFS_BB_TO_FSB(mp,
mp                515 fs/xfs/xfs_rmap_item.c 				   XFS_FSB_TO_DADDR(mp, rmap->me_startblock));
mp                533 fs/xfs/xfs_rmap_item.c 		    startblock_fsb >= mp->m_sb.sb_dblocks ||
mp                534 fs/xfs/xfs_rmap_item.c 		    rmap->me_len >= mp->m_sb.sb_agblocks ||
mp                546 fs/xfs/xfs_rmap_item.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate,
mp                547 fs/xfs/xfs_rmap_item.c 			mp->m_rmap_maxlevels, 0, XFS_TRANS_RESERVE, &tp);
mp                 85 fs/xfs/xfs_rmap_item.h int xfs_rui_recover(struct xfs_mount *mp, struct xfs_rui_log_item *ruip);
mp                 31 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                 39 fs/xfs/xfs_rtalloc.c 	return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum);
mp                 48 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                 62 fs/xfs/xfs_rtalloc.c 	if (mp->m_rsum_cache && low < mp->m_rsum_cache[bbno])
mp                 63 fs/xfs/xfs_rtalloc.c 		low = mp->m_rsum_cache[bbno];
mp                 72 fs/xfs/xfs_rtalloc.c 		error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum);
mp                 90 fs/xfs/xfs_rtalloc.c 	if (mp->m_rsum_cache && log > mp->m_rsum_cache[bbno])
mp                 91 fs/xfs/xfs_rtalloc.c 		mp->m_rsum_cache[bbno] = log;
mp                143 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                161 fs/xfs/xfs_rtalloc.c 	error = xfs_rtfind_back(mp, tp, start, 0, &preblock);
mp                168 fs/xfs/xfs_rtalloc.c 	error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1,
mp                177 fs/xfs/xfs_rtalloc.c 	error = xfs_rtmodify_summary(mp, tp,
mp                179 fs/xfs/xfs_rtalloc.c 		XFS_BITTOBLOCK(mp, preblock), -1, rbpp, rsb);
mp                188 fs/xfs/xfs_rtalloc.c 		error = xfs_rtmodify_summary(mp, tp,
mp                190 fs/xfs/xfs_rtalloc.c 			XFS_BITTOBLOCK(mp, preblock), 1, rbpp, rsb);
mp                200 fs/xfs/xfs_rtalloc.c 		error = xfs_rtmodify_summary(mp, tp,
mp                202 fs/xfs/xfs_rtalloc.c 			XFS_BITTOBLOCK(mp, end + 1), 1, rbpp, rsb);
mp                210 fs/xfs/xfs_rtalloc.c 	error = xfs_rtmodify_range(mp, tp, start, len, 0);
mp                222 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                246 fs/xfs/xfs_rtalloc.c 	for (i = XFS_BLOCKTOBIT(mp, bbno), besti = -1, bestlen = 0,
mp                247 fs/xfs/xfs_rtalloc.c 		end = XFS_BLOCKTOBIT(mp, bbno + 1) - 1;
mp                254 fs/xfs/xfs_rtalloc.c 		error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat);
mp                262 fs/xfs/xfs_rtalloc.c 			error = xfs_rtallocate_range(mp, tp, i, maxlen, rbpp,
mp                290 fs/xfs/xfs_rtalloc.c 			error = xfs_rtfind_forw(mp, tp, next, end, &i);
mp                315 fs/xfs/xfs_rtalloc.c 		error = xfs_rtallocate_range(mp, tp, besti, bestlen, rbpp, rsb);
mp                339 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                359 fs/xfs/xfs_rtalloc.c 	error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree);
mp                367 fs/xfs/xfs_rtalloc.c 		error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb);
mp                402 fs/xfs/xfs_rtalloc.c 	error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb);
mp                418 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                443 fs/xfs/xfs_rtalloc.c 	if (bno >= mp->m_sb.sb_rextents)
mp                444 fs/xfs/xfs_rtalloc.c 		bno = mp->m_sb.sb_rextents - 1;
mp                448 fs/xfs/xfs_rtalloc.c 	error = xfs_rtallocate_extent_exact(mp, tp, bno, minlen, maxlen, len,
mp                460 fs/xfs/xfs_rtalloc.c 	bbno = XFS_BITTOBLOCK(mp, bno);
mp                472 fs/xfs/xfs_rtalloc.c 		error = xfs_rtany_summary(mp, tp, log2len, mp->m_rsumlevels - 1,
mp                490 fs/xfs/xfs_rtalloc.c 				error = xfs_rtallocate_extent_block(mp, tp,
mp                519 fs/xfs/xfs_rtalloc.c 					error = xfs_rtany_summary(mp, tp,
mp                520 fs/xfs/xfs_rtalloc.c 						log2len, mp->m_rsumlevels - 1,
mp                535 fs/xfs/xfs_rtalloc.c 					error = xfs_rtallocate_extent_block(mp,
mp                557 fs/xfs/xfs_rtalloc.c 				error = xfs_rtallocate_extent_block(mp, tp,
mp                582 fs/xfs/xfs_rtalloc.c 		else if (i > 0 && (int)bbno + i < mp->m_sb.sb_rbmblocks - 1)
mp                588 fs/xfs/xfs_rtalloc.c 		else if (i <= 0 && (int)bbno - i < mp->m_sb.sb_rbmblocks - 1)
mp                613 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount point */
mp                640 fs/xfs/xfs_rtalloc.c 	for (l = xfs_highbit32(maxlen); l < mp->m_rsumlevels; l++) {
mp                644 fs/xfs/xfs_rtalloc.c 		for (i = 0; i < mp->m_sb.sb_rbmblocks; i++) {
mp                648 fs/xfs/xfs_rtalloc.c 			error = xfs_rtget_summary(mp, tp, l, i, rbpp, rsb,
mp                661 fs/xfs/xfs_rtalloc.c 			error = xfs_rtallocate_extent_block(mp, tp, i, maxlen,
mp                678 fs/xfs/xfs_rtalloc.c 			if (XFS_BITTOBLOCK(mp, n) > i + 1)
mp                679 fs/xfs/xfs_rtalloc.c 				i = XFS_BITTOBLOCK(mp, n) - 1;
mp                703 fs/xfs/xfs_rtalloc.c 		for (i = 0; i < mp->m_sb.sb_rbmblocks; i++) {
mp                707 fs/xfs/xfs_rtalloc.c 			error =	xfs_rtget_summary(mp, tp, l, i, rbpp, rsb,
mp                722 fs/xfs/xfs_rtalloc.c 			error = xfs_rtallocate_extent_block(mp, tp, i,
mp                741 fs/xfs/xfs_rtalloc.c 			if (XFS_BITTOBLOCK(mp, n) > i + 1)
mp                742 fs/xfs/xfs_rtalloc.c 				i = XFS_BITTOBLOCK(mp, n) - 1;
mp                757 fs/xfs/xfs_rtalloc.c 	struct xfs_mount	*mp,		/* file system mount point */
mp                776 fs/xfs/xfs_rtalloc.c 		resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks);
mp                780 fs/xfs/xfs_rtalloc.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtalloc, resblks,
mp                817 fs/xfs/xfs_rtalloc.c 			error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtzero,
mp                829 fs/xfs/xfs_rtalloc.c 			d = XFS_FSB_TO_DADDR(mp, fsbno);
mp                830 fs/xfs/xfs_rtalloc.c 			bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, d,
mp                831 fs/xfs/xfs_rtalloc.c 				mp->m_bsize, 0);
mp                836 fs/xfs/xfs_rtalloc.c 			memset(bp->b_addr, 0, mp->m_sb.sb_blocksize);
mp                837 fs/xfs/xfs_rtalloc.c 			xfs_trans_log_buf(tp, bp, 0, mp->m_sb.sb_blocksize - 1);
mp                860 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount structure */
mp                868 fs/xfs/xfs_rtalloc.c 	mp->m_rsum_cache = kmem_zalloc_large(rbmblocks, 0);
mp                869 fs/xfs/xfs_rtalloc.c 	if (!mp->m_rsum_cache)
mp                870 fs/xfs/xfs_rtalloc.c 		xfs_warn(mp, "could not allocate realtime summary cache");
mp                882 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* mount point for filesystem */
mp                903 fs/xfs/xfs_rtalloc.c 	sbp = &mp->m_sb;
mp                909 fs/xfs/xfs_rtalloc.c 	if (mp->m_rtdev_targp == NULL || mp->m_rbmip == NULL ||
mp                918 fs/xfs/xfs_rtalloc.c 	error = xfs_buf_read_uncached(mp->m_rtdev_targp,
mp                919 fs/xfs/xfs_rtalloc.c 				XFS_FSB_TO_BB(mp, nrblocks - 1),
mp                920 fs/xfs/xfs_rtalloc.c 				XFS_FSB_TO_BB(mp, 1), 0, &bp, NULL);
mp                934 fs/xfs/xfs_rtalloc.c 	nrsumblocks = XFS_B_TO_FSB(mp, nrsumsize);
mp                935 fs/xfs/xfs_rtalloc.c 	nrsumsize = XFS_FSB_TO_B(mp, nrsumblocks);
mp                941 fs/xfs/xfs_rtalloc.c 	if (nrsumblocks > (mp->m_sb.sb_logblocks >> 1))
mp                947 fs/xfs/xfs_rtalloc.c 	rbmblocks = XFS_B_TO_FSB(mp, mp->m_rbmip->i_d.di_size);
mp                948 fs/xfs/xfs_rtalloc.c 	rsumblocks = XFS_B_TO_FSB(mp, mp->m_rsumip->i_d.di_size);
mp                952 fs/xfs/xfs_rtalloc.c 	error = xfs_growfs_rt_alloc(mp, rbmblocks, nrbmblocks, mp->m_rbmip);
mp                955 fs/xfs/xfs_rtalloc.c 	error = xfs_growfs_rt_alloc(mp, rsumblocks, nrsumblocks, mp->m_rsumip);
mp                959 fs/xfs/xfs_rtalloc.c 	rsum_cache = mp->m_rsum_cache;
mp                961 fs/xfs/xfs_rtalloc.c 		xfs_alloc_rsum_cache(mp, nrbmblocks);
mp                974 fs/xfs/xfs_rtalloc.c 		     ((sbp->sb_rextents & ((1 << mp->m_blkbit_log) - 1)) != 0);
mp                979 fs/xfs/xfs_rtalloc.c 		*nmp = *mp;
mp                998 fs/xfs/xfs_rtalloc.c 		nrsumblocks = XFS_B_TO_FSB(mp, nrsumsize);
mp                999 fs/xfs/xfs_rtalloc.c 		nmp->m_rsumsize = nrsumsize = XFS_FSB_TO_B(mp, nrsumblocks);
mp               1003 fs/xfs/xfs_rtalloc.c 		error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtfree, 0, 0, 0,
mp               1010 fs/xfs/xfs_rtalloc.c 		xfs_ilock(mp->m_rbmip, XFS_ILOCK_EXCL);
mp               1011 fs/xfs/xfs_rtalloc.c 		xfs_trans_ijoin(tp, mp->m_rbmip, XFS_ILOCK_EXCL);
mp               1015 fs/xfs/xfs_rtalloc.c 		mp->m_rbmip->i_d.di_size =
mp               1017 fs/xfs/xfs_rtalloc.c 		xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE);
mp               1021 fs/xfs/xfs_rtalloc.c 		xfs_ilock(mp->m_rsumip, XFS_ILOCK_EXCL);
mp               1022 fs/xfs/xfs_rtalloc.c 		xfs_trans_ijoin(tp, mp->m_rsumip, XFS_ILOCK_EXCL);
mp               1026 fs/xfs/xfs_rtalloc.c 		mp->m_rsumip->i_d.di_size = nmp->m_rsumsize;
mp               1027 fs/xfs/xfs_rtalloc.c 		xfs_trans_log_inode(tp, mp->m_rsumip, XFS_ILOG_CORE);
mp               1033 fs/xfs/xfs_rtalloc.c 		    mp->m_rsumlevels != nmp->m_rsumlevels) {
mp               1034 fs/xfs/xfs_rtalloc.c 			error = xfs_rtcopy_summary(mp, nmp, tp);
mp               1075 fs/xfs/xfs_rtalloc.c 		mp->m_rsumlevels = nrsumlevels;
mp               1076 fs/xfs/xfs_rtalloc.c 		mp->m_rsumsize = nrsumsize;
mp               1093 fs/xfs/xfs_rtalloc.c 	if (rsum_cache != mp->m_rsum_cache) {
mp               1095 fs/xfs/xfs_rtalloc.c 			kmem_free(mp->m_rsum_cache);
mp               1096 fs/xfs/xfs_rtalloc.c 			mp->m_rsum_cache = rsum_cache;
mp               1121 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp = tp->t_mountp;
mp               1127 fs/xfs/xfs_rtalloc.c 	ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL));
mp               1149 fs/xfs/xfs_rtalloc.c 		error = xfs_rtallocate_extent_size(mp, tp, minlen, maxlen, len,
mp               1152 fs/xfs/xfs_rtalloc.c 		error = xfs_rtallocate_extent_near(mp, tp, bno, minlen, maxlen,
mp               1184 fs/xfs/xfs_rtalloc.c 	struct xfs_mount	*mp)	/* file system mount structure */
mp               1191 fs/xfs/xfs_rtalloc.c 	sbp = &mp->m_sb;
mp               1194 fs/xfs/xfs_rtalloc.c 	if (mp->m_rtdev_targp == NULL) {
mp               1195 fs/xfs/xfs_rtalloc.c 		xfs_warn(mp,
mp               1199 fs/xfs/xfs_rtalloc.c 	mp->m_rsumlevels = sbp->sb_rextslog + 1;
mp               1200 fs/xfs/xfs_rtalloc.c 	mp->m_rsumsize =
mp               1201 fs/xfs/xfs_rtalloc.c 		(uint)sizeof(xfs_suminfo_t) * mp->m_rsumlevels *
mp               1203 fs/xfs/xfs_rtalloc.c 	mp->m_rsumsize = roundup(mp->m_rsumsize, sbp->sb_blocksize);
mp               1204 fs/xfs/xfs_rtalloc.c 	mp->m_rbmip = mp->m_rsumip = NULL;
mp               1208 fs/xfs/xfs_rtalloc.c 	d = (xfs_daddr_t)XFS_FSB_TO_BB(mp, mp->m_sb.sb_rblocks);
mp               1209 fs/xfs/xfs_rtalloc.c 	if (XFS_BB_TO_FSB(mp, d) != mp->m_sb.sb_rblocks) {
mp               1210 fs/xfs/xfs_rtalloc.c 		xfs_warn(mp, "realtime mount -- %llu != %llu",
mp               1211 fs/xfs/xfs_rtalloc.c 			(unsigned long long) XFS_BB_TO_FSB(mp, d),
mp               1212 fs/xfs/xfs_rtalloc.c 			(unsigned long long) mp->m_sb.sb_rblocks);
mp               1215 fs/xfs/xfs_rtalloc.c 	error = xfs_buf_read_uncached(mp->m_rtdev_targp,
mp               1216 fs/xfs/xfs_rtalloc.c 					d - XFS_FSB_TO_BB(mp, 1),
mp               1217 fs/xfs/xfs_rtalloc.c 					XFS_FSB_TO_BB(mp, 1), 0, &bp, NULL);
mp               1219 fs/xfs/xfs_rtalloc.c 		xfs_warn(mp, "realtime device size check failed");
mp               1232 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp)		/* file system mount structure */
mp               1237 fs/xfs/xfs_rtalloc.c 	sbp = &mp->m_sb;
mp               1238 fs/xfs/xfs_rtalloc.c 	error = xfs_iget(mp, NULL, sbp->sb_rbmino, 0, 0, &mp->m_rbmip);
mp               1241 fs/xfs/xfs_rtalloc.c 	ASSERT(mp->m_rbmip != NULL);
mp               1243 fs/xfs/xfs_rtalloc.c 	error = xfs_iget(mp, NULL, sbp->sb_rsumino, 0, 0, &mp->m_rsumip);
mp               1245 fs/xfs/xfs_rtalloc.c 		xfs_irele(mp->m_rbmip);
mp               1248 fs/xfs/xfs_rtalloc.c 	ASSERT(mp->m_rsumip != NULL);
mp               1249 fs/xfs/xfs_rtalloc.c 	xfs_alloc_rsum_cache(mp, sbp->sb_rbmblocks);
mp               1255 fs/xfs/xfs_rtalloc.c 	struct xfs_mount	*mp)
mp               1257 fs/xfs/xfs_rtalloc.c 	kmem_free(mp->m_rsum_cache);
mp               1258 fs/xfs/xfs_rtalloc.c 	if (mp->m_rbmip)
mp               1259 fs/xfs/xfs_rtalloc.c 		xfs_irele(mp->m_rbmip);
mp               1260 fs/xfs/xfs_rtalloc.c 	if (mp->m_rsumip)
mp               1261 fs/xfs/xfs_rtalloc.c 		xfs_irele(mp->m_rsumip);
mp               1273 fs/xfs/xfs_rtalloc.c 	xfs_mount_t	*mp,		/* file system mount point */
mp               1284 fs/xfs/xfs_rtalloc.c 	ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL));
mp               1286 fs/xfs/xfs_rtalloc.c 	seqp = (uint64_t *)&VFS_I(mp->m_rbmip)->i_atime;
mp               1287 fs/xfs/xfs_rtalloc.c 	if (!(mp->m_rbmip->i_d.di_flags & XFS_DIFLAG_NEWRTBM)) {
mp               1288 fs/xfs/xfs_rtalloc.c 		mp->m_rbmip->i_d.di_flags |= XFS_DIFLAG_NEWRTBM;
mp               1296 fs/xfs/xfs_rtalloc.c 		b = (mp->m_sb.sb_rextents * ((resid << 1) + 1ULL)) >>
mp               1298 fs/xfs/xfs_rtalloc.c 		if (b >= mp->m_sb.sb_rextents)
mp               1299 fs/xfs/xfs_rtalloc.c 			div64_u64_rem(b, mp->m_sb.sb_rextents, &b);
mp               1300 fs/xfs/xfs_rtalloc.c 		if (b + len > mp->m_sb.sb_rextents)
mp               1301 fs/xfs/xfs_rtalloc.c 			b = mp->m_sb.sb_rextents - len;
mp               1304 fs/xfs/xfs_rtalloc.c 	xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE);
mp                 65 fs/xfs/xfs_rtalloc.h 	struct xfs_mount	*mp);	/* file system mount structure */
mp                 68 fs/xfs/xfs_rtalloc.h 	struct xfs_mount	*mp);
mp                 76 fs/xfs/xfs_rtalloc.h 	struct xfs_mount	*mp);	/* file system mount structure */
mp                 87 fs/xfs/xfs_rtalloc.h 	struct xfs_mount	*mp,	/* file system mount point */
mp                 97 fs/xfs/xfs_rtalloc.h 	struct xfs_mount	*mp,	/* file system mount structure */
mp                103 fs/xfs/xfs_rtalloc.h int xfs_rtbuf_get(struct xfs_mount *mp, struct xfs_trans *tp,
mp                105 fs/xfs/xfs_rtalloc.h int xfs_rtcheck_range(struct xfs_mount *mp, struct xfs_trans *tp,
mp                108 fs/xfs/xfs_rtalloc.h int xfs_rtfind_back(struct xfs_mount *mp, struct xfs_trans *tp,
mp                111 fs/xfs/xfs_rtalloc.h int xfs_rtfind_forw(struct xfs_mount *mp, struct xfs_trans *tp,
mp                114 fs/xfs/xfs_rtalloc.h int xfs_rtmodify_range(struct xfs_mount *mp, struct xfs_trans *tp,
mp                116 fs/xfs/xfs_rtalloc.h int xfs_rtmodify_summary_int(struct xfs_mount *mp, struct xfs_trans *tp,
mp                120 fs/xfs/xfs_rtalloc.h int xfs_rtmodify_summary(struct xfs_mount *mp, struct xfs_trans *tp, int log,
mp                123 fs/xfs/xfs_rtalloc.h int xfs_rtfree_range(struct xfs_mount *mp, struct xfs_trans *tp,
mp                134 fs/xfs/xfs_rtalloc.h bool xfs_verify_rtbno(struct xfs_mount *mp, xfs_rtblock_t rtbno);
mp                135 fs/xfs/xfs_rtalloc.h int xfs_rtalloc_extent_is_free(struct xfs_mount *mp, struct xfs_trans *tp,
mp                142 fs/xfs/xfs_rtalloc.h # define xfs_growfs_rt(mp,in)                           (ENOSYS)
mp                150 fs/xfs/xfs_rtalloc.h 	xfs_mount_t	*mp)	/* file system mount structure */
mp                152 fs/xfs/xfs_rtalloc.h 	if (mp->m_sb.sb_rblocks == 0)
mp                155 fs/xfs/xfs_rtalloc.h 	xfs_warn(mp, "Not built with CONFIG_XFS_RT");
mp                158 fs/xfs/xfs_rtalloc.h # define xfs_rtmount_inodes(m)  (((mp)->m_sb.sb_rblocks == 0)? 0 : (ENOSYS))
mp                162 fs/xfs/xfs_stats.h #define XFS_STATS_INC(mp, v)					\
mp                165 fs/xfs/xfs_stats.h 	per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->s.v++;	\
mp                168 fs/xfs/xfs_stats.h #define XFS_STATS_DEC(mp, v)					\
mp                171 fs/xfs/xfs_stats.h 	per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->s.v--;	\
mp                174 fs/xfs/xfs_stats.h #define XFS_STATS_ADD(mp, v, inc)					\
mp                177 fs/xfs/xfs_stats.h 	per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->s.v += (inc);	\
mp                180 fs/xfs/xfs_stats.h #define XFS_STATS_INC_OFF(mp, off)				\
mp                183 fs/xfs/xfs_stats.h 	per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]++;	\
mp                186 fs/xfs/xfs_stats.h #define XFS_STATS_DEC_OFF(mp, off)					\
mp                189 fs/xfs/xfs_stats.h 	per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off];	\
mp                192 fs/xfs/xfs_stats.h #define XFS_STATS_ADD_OFF(mp, off, inc)					\
mp                195 fs/xfs/xfs_stats.h 	per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off] += (inc);	\
mp                158 fs/xfs/xfs_super.c 	struct xfs_mount	*mp,
mp                161 fs/xfs/xfs_super.c 	const struct super_block *sb = mp->m_super;
mp                173 fs/xfs/xfs_super.c 	mp->m_fsname = kstrndup(sb->s_id, MAXNAMELEN, GFP_KERNEL);
mp                174 fs/xfs/xfs_super.c 	if (!mp->m_fsname)
mp                176 fs/xfs/xfs_super.c 	mp->m_fsname_len = strlen(mp->m_fsname) + 1;
mp                182 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_RDONLY;
mp                184 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_DIRSYNC;
mp                186 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_WSYNC;
mp                192 fs/xfs/xfs_super.c 	mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE;
mp                197 fs/xfs/xfs_super.c 	mp->m_logbufs = -1;
mp                198 fs/xfs/xfs_super.c 	mp->m_logbsize = -1;
mp                212 fs/xfs/xfs_super.c 			if (match_int(args, &mp->m_logbufs))
mp                216 fs/xfs/xfs_super.c 			if (suffix_kstrtoint(args, 10, &mp->m_logbsize))
mp                220 fs/xfs/xfs_super.c 			kfree(mp->m_logname);
mp                221 fs/xfs/xfs_super.c 			mp->m_logname = match_strdup(args);
mp                222 fs/xfs/xfs_super.c 			if (!mp->m_logname)
mp                226 fs/xfs/xfs_super.c 			kfree(mp->m_rtname);
mp                227 fs/xfs/xfs_super.c 			mp->m_rtname = match_strdup(args);
mp                228 fs/xfs/xfs_super.c 			if (!mp->m_rtname)
mp                239 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_GRPID;
mp                243 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_GRPID;
mp                246 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_WSYNC;
mp                249 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_NORECOVERY;
mp                252 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_NOALIGN;
mp                255 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_SWALLOC;
mp                266 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_SMALL_INUMS;
mp                269 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_SMALL_INUMS;
mp                272 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_NOUUID;
mp                275 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_IKEEP;
mp                278 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_IKEEP;
mp                281 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_COMPAT_IOSIZE;
mp                284 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE;
mp                287 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_ATTR2;
mp                290 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_ATTR2;
mp                291 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_NOATTR2;
mp                294 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_FILESTREAMS;
mp                297 fs/xfs/xfs_super.c 			mp->m_qflags &= ~XFS_ALL_QUOTA_ACCT;
mp                298 fs/xfs/xfs_super.c 			mp->m_qflags &= ~XFS_ALL_QUOTA_ENFD;
mp                299 fs/xfs/xfs_super.c 			mp->m_qflags &= ~XFS_ALL_QUOTA_ACTIVE;
mp                304 fs/xfs/xfs_super.c 			mp->m_qflags |= (XFS_UQUOTA_ACCT | XFS_UQUOTA_ACTIVE |
mp                309 fs/xfs/xfs_super.c 			mp->m_qflags |= (XFS_UQUOTA_ACCT | XFS_UQUOTA_ACTIVE);
mp                310 fs/xfs/xfs_super.c 			mp->m_qflags &= ~XFS_UQUOTA_ENFD;
mp                314 fs/xfs/xfs_super.c 			mp->m_qflags |= (XFS_PQUOTA_ACCT | XFS_PQUOTA_ACTIVE |
mp                318 fs/xfs/xfs_super.c 			mp->m_qflags |= (XFS_PQUOTA_ACCT | XFS_PQUOTA_ACTIVE);
mp                319 fs/xfs/xfs_super.c 			mp->m_qflags &= ~XFS_PQUOTA_ENFD;
mp                323 fs/xfs/xfs_super.c 			mp->m_qflags |= (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE |
mp                327 fs/xfs/xfs_super.c 			mp->m_qflags |= (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE);
mp                328 fs/xfs/xfs_super.c 			mp->m_qflags &= ~XFS_GQUOTA_ENFD;
mp                331 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_DISCARD;
mp                334 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_DISCARD;
mp                338 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_DAX;
mp                342 fs/xfs/xfs_super.c 			xfs_warn(mp, "unknown mount option [%s].", p);
mp                350 fs/xfs/xfs_super.c 	if ((mp->m_flags & XFS_MOUNT_NORECOVERY) &&
mp                351 fs/xfs/xfs_super.c 	    !(mp->m_flags & XFS_MOUNT_RDONLY)) {
mp                352 fs/xfs/xfs_super.c 		xfs_warn(mp, "no-recovery mounts must be read-only.");
mp                356 fs/xfs/xfs_super.c 	if ((mp->m_flags & XFS_MOUNT_NOALIGN) && (dsunit || dswidth)) {
mp                357 fs/xfs/xfs_super.c 		xfs_warn(mp,
mp                363 fs/xfs/xfs_super.c 	if (XFS_IS_QUOTA_RUNNING(mp)) {
mp                364 fs/xfs/xfs_super.c 		xfs_warn(mp, "quota support not available in this kernel.");
mp                370 fs/xfs/xfs_super.c 		xfs_warn(mp, "sunit and swidth must be specified together");
mp                375 fs/xfs/xfs_super.c 		xfs_warn(mp,
mp                382 fs/xfs/xfs_super.c 	if (dsunit && !(mp->m_flags & XFS_MOUNT_NOALIGN)) {
mp                389 fs/xfs/xfs_super.c 		mp->m_dalign = dsunit;
mp                390 fs/xfs/xfs_super.c 		mp->m_swidth = dswidth;
mp                393 fs/xfs/xfs_super.c 	if (mp->m_logbufs != -1 &&
mp                394 fs/xfs/xfs_super.c 	    mp->m_logbufs != 0 &&
mp                395 fs/xfs/xfs_super.c 	    (mp->m_logbufs < XLOG_MIN_ICLOGS ||
mp                396 fs/xfs/xfs_super.c 	     mp->m_logbufs > XLOG_MAX_ICLOGS)) {
mp                397 fs/xfs/xfs_super.c 		xfs_warn(mp, "invalid logbufs value: %d [not %d-%d]",
mp                398 fs/xfs/xfs_super.c 			mp->m_logbufs, XLOG_MIN_ICLOGS, XLOG_MAX_ICLOGS);
mp                401 fs/xfs/xfs_super.c 	if (mp->m_logbsize != -1 &&
mp                402 fs/xfs/xfs_super.c 	    mp->m_logbsize !=  0 &&
mp                403 fs/xfs/xfs_super.c 	    (mp->m_logbsize < XLOG_MIN_RECORD_BSIZE ||
mp                404 fs/xfs/xfs_super.c 	     mp->m_logbsize > XLOG_MAX_RECORD_BSIZE ||
mp                405 fs/xfs/xfs_super.c 	     !is_power_of_2(mp->m_logbsize))) {
mp                406 fs/xfs/xfs_super.c 		xfs_warn(mp,
mp                408 fs/xfs/xfs_super.c 			mp->m_logbsize);
mp                415 fs/xfs/xfs_super.c 			xfs_warn(mp, "invalid log iosize: %d [not %d-%d]",
mp                421 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_DFLT_IOSIZE;
mp                422 fs/xfs/xfs_super.c 		mp->m_readio_log = iosizelog;
mp                423 fs/xfs/xfs_super.c 		mp->m_writeio_log = iosizelog;
mp                436 fs/xfs/xfs_super.c 	struct xfs_mount	*mp,
mp                464 fs/xfs/xfs_super.c 		if (mp->m_flags & xfs_infop->flag)
mp                468 fs/xfs/xfs_super.c 		if (!(mp->m_flags & xfs_infop->flag))
mp                472 fs/xfs/xfs_super.c 	if (mp->m_flags & XFS_MOUNT_DFLT_IOSIZE)
mp                474 fs/xfs/xfs_super.c 				(int)(1 << mp->m_writeio_log) >> 10);
mp                476 fs/xfs/xfs_super.c 	if (mp->m_logbufs > 0)
mp                477 fs/xfs/xfs_super.c 		seq_printf(m, ",logbufs=%d", mp->m_logbufs);
mp                478 fs/xfs/xfs_super.c 	if (mp->m_logbsize > 0)
mp                479 fs/xfs/xfs_super.c 		seq_printf(m, ",logbsize=%dk", mp->m_logbsize >> 10);
mp                481 fs/xfs/xfs_super.c 	if (mp->m_logname)
mp                482 fs/xfs/xfs_super.c 		seq_show_option(m, "logdev", mp->m_logname);
mp                483 fs/xfs/xfs_super.c 	if (mp->m_rtname)
mp                484 fs/xfs/xfs_super.c 		seq_show_option(m, "rtdev", mp->m_rtname);
mp                486 fs/xfs/xfs_super.c 	if (mp->m_dalign > 0)
mp                488 fs/xfs/xfs_super.c 				(int)XFS_FSB_TO_BB(mp, mp->m_dalign));
mp                489 fs/xfs/xfs_super.c 	if (mp->m_swidth > 0)
mp                491 fs/xfs/xfs_super.c 				(int)XFS_FSB_TO_BB(mp, mp->m_swidth));
mp                493 fs/xfs/xfs_super.c 	if (mp->m_qflags & (XFS_UQUOTA_ACCT|XFS_UQUOTA_ENFD))
mp                495 fs/xfs/xfs_super.c 	else if (mp->m_qflags & XFS_UQUOTA_ACCT)
mp                498 fs/xfs/xfs_super.c 	if (mp->m_qflags & XFS_PQUOTA_ACCT) {
mp                499 fs/xfs/xfs_super.c 		if (mp->m_qflags & XFS_PQUOTA_ENFD)
mp                504 fs/xfs/xfs_super.c 	if (mp->m_qflags & XFS_GQUOTA_ACCT) {
mp                505 fs/xfs/xfs_super.c 		if (mp->m_qflags & XFS_GQUOTA_ENFD)
mp                511 fs/xfs/xfs_super.c 	if (!(mp->m_qflags & XFS_ALL_QUOTA_ACCT))
mp                558 fs/xfs/xfs_super.c 	struct xfs_mount *mp,
mp                563 fs/xfs/xfs_super.c 	xfs_sb_t	*sbp = &mp->m_sb;
mp                572 fs/xfs/xfs_super.c 	if (M_IGEO(mp)->maxicount) {
mp                585 fs/xfs/xfs_super.c 	agino =	XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1);
mp                586 fs/xfs/xfs_super.c 	ino = XFS_AGINO_TO_INO(mp, agcount - 1, agino);
mp                593 fs/xfs/xfs_super.c 	if ((mp->m_flags & XFS_MOUNT_SMALL_INUMS) && ino > XFS_MAXINUMBER_32)
mp                594 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_32BITINODES;
mp                596 fs/xfs/xfs_super.c 		mp->m_flags &= ~XFS_MOUNT_32BITINODES;
mp                601 fs/xfs/xfs_super.c 		ino = XFS_AGINO_TO_INO(mp, index, agino);
mp                603 fs/xfs/xfs_super.c 		pag = xfs_perag_get(mp, index);
mp                605 fs/xfs/xfs_super.c 		if (mp->m_flags & XFS_MOUNT_32BITINODES) {
mp                625 fs/xfs/xfs_super.c 	return (mp->m_flags & XFS_MOUNT_32BITINODES) ? maxagi : agcount;
mp                630 fs/xfs/xfs_super.c 	xfs_mount_t		*mp,
mp                637 fs/xfs/xfs_super.c 				    mp);
mp                640 fs/xfs/xfs_super.c 		xfs_warn(mp, "Invalid device [%s], error=%d", name, error);
mp                663 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp                665 fs/xfs/xfs_super.c 	struct dax_device *dax_ddev = mp->m_ddev_targp->bt_daxdev;
mp                667 fs/xfs/xfs_super.c 	if (mp->m_logdev_targp && mp->m_logdev_targp != mp->m_ddev_targp) {
mp                668 fs/xfs/xfs_super.c 		struct block_device *logdev = mp->m_logdev_targp->bt_bdev;
mp                669 fs/xfs/xfs_super.c 		struct dax_device *dax_logdev = mp->m_logdev_targp->bt_daxdev;
mp                671 fs/xfs/xfs_super.c 		xfs_free_buftarg(mp->m_logdev_targp);
mp                675 fs/xfs/xfs_super.c 	if (mp->m_rtdev_targp) {
mp                676 fs/xfs/xfs_super.c 		struct block_device *rtdev = mp->m_rtdev_targp->bt_bdev;
mp                677 fs/xfs/xfs_super.c 		struct dax_device *dax_rtdev = mp->m_rtdev_targp->bt_daxdev;
mp                679 fs/xfs/xfs_super.c 		xfs_free_buftarg(mp->m_rtdev_targp);
mp                683 fs/xfs/xfs_super.c 	xfs_free_buftarg(mp->m_ddev_targp);
mp                699 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp                701 fs/xfs/xfs_super.c 	struct block_device	*ddev = mp->m_super->s_bdev;
mp                710 fs/xfs/xfs_super.c 	if (mp->m_logname) {
mp                711 fs/xfs/xfs_super.c 		error = xfs_blkdev_get(mp, mp->m_logname, &logdev);
mp                717 fs/xfs/xfs_super.c 	if (mp->m_rtname) {
mp                718 fs/xfs/xfs_super.c 		error = xfs_blkdev_get(mp, mp->m_rtname, &rtdev);
mp                723 fs/xfs/xfs_super.c 			xfs_warn(mp,
mp                735 fs/xfs/xfs_super.c 	mp->m_ddev_targp = xfs_alloc_buftarg(mp, ddev, dax_ddev);
mp                736 fs/xfs/xfs_super.c 	if (!mp->m_ddev_targp)
mp                740 fs/xfs/xfs_super.c 		mp->m_rtdev_targp = xfs_alloc_buftarg(mp, rtdev, dax_rtdev);
mp                741 fs/xfs/xfs_super.c 		if (!mp->m_rtdev_targp)
mp                746 fs/xfs/xfs_super.c 		mp->m_logdev_targp = xfs_alloc_buftarg(mp, logdev, dax_logdev);
mp                747 fs/xfs/xfs_super.c 		if (!mp->m_logdev_targp)
mp                750 fs/xfs/xfs_super.c 		mp->m_logdev_targp = mp->m_ddev_targp;
mp                756 fs/xfs/xfs_super.c 	if (mp->m_rtdev_targp)
mp                757 fs/xfs/xfs_super.c 		xfs_free_buftarg(mp->m_rtdev_targp);
mp                759 fs/xfs/xfs_super.c 	xfs_free_buftarg(mp->m_ddev_targp);
mp                778 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp                782 fs/xfs/xfs_super.c 	error = xfs_setsize_buftarg(mp->m_ddev_targp, mp->m_sb.sb_sectsize);
mp                786 fs/xfs/xfs_super.c 	if (mp->m_logdev_targp && mp->m_logdev_targp != mp->m_ddev_targp) {
mp                789 fs/xfs/xfs_super.c 		if (xfs_sb_version_hassector(&mp->m_sb))
mp                790 fs/xfs/xfs_super.c 			log_sector_size = mp->m_sb.sb_logsectsize;
mp                791 fs/xfs/xfs_super.c 		error = xfs_setsize_buftarg(mp->m_logdev_targp,
mp                796 fs/xfs/xfs_super.c 	if (mp->m_rtdev_targp) {
mp                797 fs/xfs/xfs_super.c 		error = xfs_setsize_buftarg(mp->m_rtdev_targp,
mp                798 fs/xfs/xfs_super.c 					    mp->m_sb.sb_sectsize);
mp                808 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp                810 fs/xfs/xfs_super.c 	mp->m_buf_workqueue = alloc_workqueue("xfs-buf/%s",
mp                811 fs/xfs/xfs_super.c 			WQ_MEM_RECLAIM|WQ_FREEZABLE, 1, mp->m_fsname);
mp                812 fs/xfs/xfs_super.c 	if (!mp->m_buf_workqueue)
mp                815 fs/xfs/xfs_super.c 	mp->m_unwritten_workqueue = alloc_workqueue("xfs-conv/%s",
mp                816 fs/xfs/xfs_super.c 			WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname);
mp                817 fs/xfs/xfs_super.c 	if (!mp->m_unwritten_workqueue)
mp                820 fs/xfs/xfs_super.c 	mp->m_cil_workqueue = alloc_workqueue("xfs-cil/%s",
mp                822 fs/xfs/xfs_super.c 			0, mp->m_fsname);
mp                823 fs/xfs/xfs_super.c 	if (!mp->m_cil_workqueue)
mp                826 fs/xfs/xfs_super.c 	mp->m_reclaim_workqueue = alloc_workqueue("xfs-reclaim/%s",
mp                827 fs/xfs/xfs_super.c 			WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname);
mp                828 fs/xfs/xfs_super.c 	if (!mp->m_reclaim_workqueue)
mp                831 fs/xfs/xfs_super.c 	mp->m_eofblocks_workqueue = alloc_workqueue("xfs-eofblocks/%s",
mp                832 fs/xfs/xfs_super.c 			WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname);
mp                833 fs/xfs/xfs_super.c 	if (!mp->m_eofblocks_workqueue)
mp                836 fs/xfs/xfs_super.c 	mp->m_sync_workqueue = alloc_workqueue("xfs-sync/%s", WQ_FREEZABLE, 0,
mp                837 fs/xfs/xfs_super.c 					       mp->m_fsname);
mp                838 fs/xfs/xfs_super.c 	if (!mp->m_sync_workqueue)
mp                844 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_eofblocks_workqueue);
mp                846 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_reclaim_workqueue);
mp                848 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_cil_workqueue);
mp                850 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_unwritten_workqueue);
mp                852 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_buf_workqueue);
mp                859 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp                861 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_sync_workqueue);
mp                862 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_eofblocks_workqueue);
mp                863 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_reclaim_workqueue);
mp                864 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_cil_workqueue);
mp                865 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_unwritten_workqueue);
mp                866 fs/xfs/xfs_super.c 	destroy_workqueue(mp->m_buf_workqueue);
mp                877 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp                879 fs/xfs/xfs_super.c 	struct super_block	*sb = mp->m_super;
mp                970 fs/xfs/xfs_super.c 	struct xfs_mount		*mp = ip->i_mount;
mp                978 fs/xfs/xfs_super.c 	if (xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp))
mp               1043 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp               1045 fs/xfs/xfs_super.c 	kfree(mp->m_fsname);
mp               1046 fs/xfs/xfs_super.c 	kfree(mp->m_rtname);
mp               1047 fs/xfs/xfs_super.c 	kfree(mp->m_logname);
mp               1055 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
mp               1063 fs/xfs/xfs_super.c 	xfs_log_force(mp, XFS_LOG_SYNC);
mp               1070 fs/xfs/xfs_super.c 		flush_delayed_work(&mp->m_log->l_work);
mp               1081 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(dentry->d_sb);
mp               1082 fs/xfs/xfs_super.c 	xfs_sb_t		*sbp = &mp->m_sb;
mp               1094 fs/xfs/xfs_super.c 	id = huge_encode_dev(mp->m_ddev_targp->bt_dev);
mp               1098 fs/xfs/xfs_super.c 	icount = percpu_counter_sum(&mp->m_icount);
mp               1099 fs/xfs/xfs_super.c 	ifree = percpu_counter_sum(&mp->m_ifree);
mp               1100 fs/xfs/xfs_super.c 	fdblocks = percpu_counter_sum(&mp->m_fdblocks);
mp               1102 fs/xfs/xfs_super.c 	spin_lock(&mp->m_sb_lock);
mp               1106 fs/xfs/xfs_super.c 	spin_unlock(&mp->m_sb_lock);
mp               1108 fs/xfs/xfs_super.c 	statp->f_bfree = fdblocks - mp->m_alloc_set_aside;
mp               1111 fs/xfs/xfs_super.c 	fakeinos = XFS_FSB_TO_INO(mp, statp->f_bfree);
mp               1113 fs/xfs/xfs_super.c 	if (M_IGEO(mp)->maxicount)
mp               1116 fs/xfs/xfs_super.c 					M_IGEO(mp)->maxicount);
mp               1129 fs/xfs/xfs_super.c 	    ((mp->m_qflags & (XFS_PQUOTA_ACCT|XFS_PQUOTA_ENFD))) ==
mp               1133 fs/xfs/xfs_super.c 	if (XFS_IS_REALTIME_MOUNT(mp) &&
mp               1144 fs/xfs/xfs_super.c xfs_save_resvblks(struct xfs_mount *mp)
mp               1148 fs/xfs/xfs_super.c 	mp->m_resblks_save = mp->m_resblks;
mp               1149 fs/xfs/xfs_super.c 	xfs_reserve_blocks(mp, &resblks, NULL);
mp               1153 fs/xfs/xfs_super.c xfs_restore_resvblks(struct xfs_mount *mp)
mp               1157 fs/xfs/xfs_super.c 	if (mp->m_resblks_save) {
mp               1158 fs/xfs/xfs_super.c 		resblks = mp->m_resblks_save;
mp               1159 fs/xfs/xfs_super.c 		mp->m_resblks_save = 0;
mp               1161 fs/xfs/xfs_super.c 		resblks = xfs_default_resblks(mp);
mp               1163 fs/xfs/xfs_super.c 	xfs_reserve_blocks(mp, &resblks, NULL);
mp               1179 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp               1184 fs/xfs/xfs_super.c 	while (atomic_read(&mp->m_active_trans) > 0)
mp               1188 fs/xfs/xfs_super.c 	xfs_log_force(mp, XFS_LOG_SYNC);
mp               1191 fs/xfs/xfs_super.c 	xfs_reclaim_inodes(mp, 0);
mp               1192 fs/xfs/xfs_super.c 	xfs_reclaim_inodes(mp, SYNC_WAIT);
mp               1195 fs/xfs/xfs_super.c 	error = xfs_log_sbcount(mp);
mp               1197 fs/xfs/xfs_super.c 		xfs_warn(mp, "xfs_attr_quiesce: failed to log sb changes. "
mp               1203 fs/xfs/xfs_super.c 	WARN_ON(atomic_read(&mp->m_active_trans) != 0);
mp               1205 fs/xfs/xfs_super.c 	xfs_log_quiesce(mp);
mp               1234 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
mp               1235 fs/xfs/xfs_super.c 	xfs_sb_t		*sbp = &mp->m_sb;
mp               1255 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_SMALL_INUMS;
mp               1256 fs/xfs/xfs_super.c 			mp->m_maxagi = xfs_set_inode_alloc(mp, sbp->sb_agcount);
mp               1259 fs/xfs/xfs_super.c 			mp->m_flags |= XFS_MOUNT_SMALL_INUMS;
mp               1260 fs/xfs/xfs_super.c 			mp->m_maxagi = xfs_set_inode_alloc(mp, sbp->sb_agcount);
mp               1280 fs/xfs/xfs_super.c 			xfs_info(mp,
mp               1290 fs/xfs/xfs_super.c 	if ((mp->m_flags & XFS_MOUNT_RDONLY) && !(*flags & SB_RDONLY)) {
mp               1291 fs/xfs/xfs_super.c 		if (mp->m_flags & XFS_MOUNT_NORECOVERY) {
mp               1292 fs/xfs/xfs_super.c 			xfs_warn(mp,
mp               1300 fs/xfs/xfs_super.c 			xfs_warn(mp,
mp               1307 fs/xfs/xfs_super.c 		mp->m_flags &= ~XFS_MOUNT_RDONLY;
mp               1313 fs/xfs/xfs_super.c 		if (mp->m_update_sb) {
mp               1314 fs/xfs/xfs_super.c 			error = xfs_sync_sb(mp, false);
mp               1316 fs/xfs/xfs_super.c 				xfs_warn(mp, "failed to write sb changes");
mp               1319 fs/xfs/xfs_super.c 			mp->m_update_sb = false;
mp               1326 fs/xfs/xfs_super.c 		xfs_restore_resvblks(mp);
mp               1327 fs/xfs/xfs_super.c 		xfs_log_work_queue(mp);
mp               1330 fs/xfs/xfs_super.c 		error = xfs_reflink_recover_cow(mp);
mp               1332 fs/xfs/xfs_super.c 			xfs_err(mp,
mp               1334 fs/xfs/xfs_super.c 			xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               1337 fs/xfs/xfs_super.c 		xfs_start_block_reaping(mp);
mp               1340 fs/xfs/xfs_super.c 		error = xfs_fs_reserve_ag_blocks(mp);
mp               1346 fs/xfs/xfs_super.c 	if (!(mp->m_flags & XFS_MOUNT_RDONLY) && (*flags & SB_RDONLY)) {
mp               1351 fs/xfs/xfs_super.c 		xfs_stop_block_reaping(mp);
mp               1354 fs/xfs/xfs_super.c 		error = xfs_icache_free_cowblocks(mp, NULL);
mp               1356 fs/xfs/xfs_super.c 			xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               1361 fs/xfs/xfs_super.c 		error = xfs_fs_unreserve_ag_blocks(mp);
mp               1363 fs/xfs/xfs_super.c 			xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               1374 fs/xfs/xfs_super.c 		xfs_save_resvblks(mp);
mp               1376 fs/xfs/xfs_super.c 		xfs_quiesce_attr(mp);
mp               1377 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_RDONLY;
mp               1393 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
mp               1395 fs/xfs/xfs_super.c 	xfs_stop_block_reaping(mp);
mp               1396 fs/xfs/xfs_super.c 	xfs_save_resvblks(mp);
mp               1397 fs/xfs/xfs_super.c 	xfs_quiesce_attr(mp);
mp               1398 fs/xfs/xfs_super.c 	return xfs_sync_sb(mp, true);
mp               1405 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
mp               1407 fs/xfs/xfs_super.c 	xfs_restore_resvblks(mp);
mp               1408 fs/xfs/xfs_super.c 	xfs_log_work_queue(mp);
mp               1409 fs/xfs/xfs_super.c 	xfs_start_block_reaping(mp);
mp               1428 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp               1430 fs/xfs/xfs_super.c 	int			ronly = (mp->m_flags & XFS_MOUNT_RDONLY);
mp               1433 fs/xfs/xfs_super.c 	if (xfs_sb_version_haslogv2(&mp->m_sb)) {
mp               1434 fs/xfs/xfs_super.c 		if (mp->m_logbsize <= 0 &&
mp               1435 fs/xfs/xfs_super.c 		    mp->m_sb.sb_logsunit > XLOG_BIG_RECORD_BSIZE) {
mp               1436 fs/xfs/xfs_super.c 			mp->m_logbsize = mp->m_sb.sb_logsunit;
mp               1437 fs/xfs/xfs_super.c 		} else if (mp->m_logbsize > 0 &&
mp               1438 fs/xfs/xfs_super.c 			   mp->m_logbsize < mp->m_sb.sb_logsunit) {
mp               1439 fs/xfs/xfs_super.c 			xfs_warn(mp,
mp               1445 fs/xfs/xfs_super.c 		if (mp->m_logbsize > XLOG_BIG_RECORD_BSIZE) {
mp               1446 fs/xfs/xfs_super.c 			xfs_warn(mp,
mp               1455 fs/xfs/xfs_super.c 	if (xfs_sb_version_hascrc(&mp->m_sb) &&
mp               1456 fs/xfs/xfs_super.c 	    (mp->m_flags & XFS_MOUNT_NOATTR2)) {
mp               1457 fs/xfs/xfs_super.c 		xfs_warn(mp, "Cannot mount a V5 filesystem as noattr2. "
mp               1466 fs/xfs/xfs_super.c 	if (xfs_sb_version_hasattr2(&mp->m_sb) &&
mp               1467 fs/xfs/xfs_super.c 	    !(mp->m_flags & XFS_MOUNT_NOATTR2))
mp               1468 fs/xfs/xfs_super.c 		mp->m_flags |= XFS_MOUNT_ATTR2;
mp               1473 fs/xfs/xfs_super.c 	if ((mp->m_sb.sb_flags & XFS_SBF_READONLY) && !ronly) {
mp               1474 fs/xfs/xfs_super.c 		xfs_warn(mp,
mp               1479 fs/xfs/xfs_super.c 	if ((mp->m_qflags & (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE)) &&
mp               1480 fs/xfs/xfs_super.c 	    (mp->m_qflags & (XFS_PQUOTA_ACCT | XFS_PQUOTA_ACTIVE)) &&
mp               1481 fs/xfs/xfs_super.c 	    !xfs_sb_version_has_pquotino(&mp->m_sb)) {
mp               1482 fs/xfs/xfs_super.c 		xfs_warn(mp,
mp               1492 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp               1496 fs/xfs/xfs_super.c 	error = percpu_counter_init(&mp->m_icount, 0, GFP_KERNEL);
mp               1500 fs/xfs/xfs_super.c 	error = percpu_counter_init(&mp->m_ifree, 0, GFP_KERNEL);
mp               1504 fs/xfs/xfs_super.c 	error = percpu_counter_init(&mp->m_fdblocks, 0, GFP_KERNEL);
mp               1508 fs/xfs/xfs_super.c 	error = percpu_counter_init(&mp->m_delalloc_blks, 0, GFP_KERNEL);
mp               1515 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_fdblocks);
mp               1517 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_ifree);
mp               1519 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_icount);
mp               1525 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp               1527 fs/xfs/xfs_super.c 	percpu_counter_set(&mp->m_icount, mp->m_sb.sb_icount);
mp               1528 fs/xfs/xfs_super.c 	percpu_counter_set(&mp->m_ifree, mp->m_sb.sb_ifree);
mp               1529 fs/xfs/xfs_super.c 	percpu_counter_set(&mp->m_fdblocks, mp->m_sb.sb_fdblocks);
mp               1534 fs/xfs/xfs_super.c 	struct xfs_mount	*mp)
mp               1536 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_icount);
mp               1537 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_ifree);
mp               1538 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_fdblocks);
mp               1539 fs/xfs/xfs_super.c 	ASSERT(XFS_FORCED_SHUTDOWN(mp) ||
mp               1540 fs/xfs/xfs_super.c 	       percpu_counter_sum(&mp->m_delalloc_blks) == 0);
mp               1541 fs/xfs/xfs_super.c 	percpu_counter_destroy(&mp->m_delalloc_blks);
mp               1548 fs/xfs/xfs_super.c 	struct xfs_mount	*mp;
mp               1550 fs/xfs/xfs_super.c 	mp = kzalloc(sizeof(struct xfs_mount), GFP_KERNEL);
mp               1551 fs/xfs/xfs_super.c 	if (!mp)
mp               1554 fs/xfs/xfs_super.c 	mp->m_super = sb;
mp               1555 fs/xfs/xfs_super.c 	spin_lock_init(&mp->m_sb_lock);
mp               1556 fs/xfs/xfs_super.c 	spin_lock_init(&mp->m_agirotor_lock);
mp               1557 fs/xfs/xfs_super.c 	INIT_RADIX_TREE(&mp->m_perag_tree, GFP_ATOMIC);
mp               1558 fs/xfs/xfs_super.c 	spin_lock_init(&mp->m_perag_lock);
mp               1559 fs/xfs/xfs_super.c 	mutex_init(&mp->m_growlock);
mp               1560 fs/xfs/xfs_super.c 	atomic_set(&mp->m_active_trans, 0);
mp               1561 fs/xfs/xfs_super.c 	INIT_DELAYED_WORK(&mp->m_reclaim_work, xfs_reclaim_worker);
mp               1562 fs/xfs/xfs_super.c 	INIT_DELAYED_WORK(&mp->m_eofblocks_work, xfs_eofblocks_worker);
mp               1563 fs/xfs/xfs_super.c 	INIT_DELAYED_WORK(&mp->m_cowblocks_work, xfs_cowblocks_worker);
mp               1564 fs/xfs/xfs_super.c 	mp->m_kobj.kobject.kset = xfs_kset;
mp               1571 fs/xfs/xfs_super.c 	mp->m_finobt_nores = true;
mp               1572 fs/xfs/xfs_super.c 	return mp;
mp               1583 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = NULL;
mp               1590 fs/xfs/xfs_super.c 	mp = xfs_mount_alloc(sb);
mp               1591 fs/xfs/xfs_super.c 	if (!mp)
mp               1593 fs/xfs/xfs_super.c 	sb->s_fs_info = mp;
mp               1595 fs/xfs/xfs_super.c 	error = xfs_parseargs(mp, (char *)data);
mp               1614 fs/xfs/xfs_super.c 		xfs_notice(mp, "Delaying mount for %d seconds.",
mp               1622 fs/xfs/xfs_super.c 	error = xfs_open_devices(mp);
mp               1626 fs/xfs/xfs_super.c 	error = xfs_init_mount_workqueues(mp);
mp               1630 fs/xfs/xfs_super.c 	error = xfs_init_percpu_counters(mp);
mp               1635 fs/xfs/xfs_super.c 	mp->m_stats.xs_stats = alloc_percpu(struct xfsstats);
mp               1636 fs/xfs/xfs_super.c 	if (!mp->m_stats.xs_stats) {
mp               1641 fs/xfs/xfs_super.c 	error = xfs_readsb(mp, flags);
mp               1645 fs/xfs/xfs_super.c 	error = xfs_finish_flags(mp);
mp               1649 fs/xfs/xfs_super.c 	error = xfs_setup_devices(mp);
mp               1653 fs/xfs/xfs_super.c 	error = xfs_filestream_mount(mp);
mp               1662 fs/xfs/xfs_super.c 	sb->s_blocksize = mp->m_sb.sb_blocksize;
mp               1674 fs/xfs/xfs_super.c 	if (XFS_SB_VERSION_NUM(&mp->m_sb) == XFS_SB_VERSION_5)
mp               1677 fs/xfs/xfs_super.c 	if (mp->m_flags & XFS_MOUNT_DAX) {
mp               1680 fs/xfs/xfs_super.c 		xfs_warn(mp,
mp               1683 fs/xfs/xfs_super.c 		datadev_is_dax = bdev_dax_supported(mp->m_ddev_targp->bt_bdev,
mp               1685 fs/xfs/xfs_super.c 		if (mp->m_rtdev_targp)
mp               1687 fs/xfs/xfs_super.c 				mp->m_rtdev_targp->bt_bdev, sb->s_blocksize);
mp               1689 fs/xfs/xfs_super.c 			xfs_alert(mp,
mp               1691 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_DAX;
mp               1693 fs/xfs/xfs_super.c 		if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp               1694 fs/xfs/xfs_super.c 			xfs_alert(mp,
mp               1701 fs/xfs/xfs_super.c 	if (mp->m_flags & XFS_MOUNT_DISCARD) {
mp               1705 fs/xfs/xfs_super.c 			xfs_warn(mp, "mounting with \"discard\" option, but "
mp               1707 fs/xfs/xfs_super.c 			mp->m_flags &= ~XFS_MOUNT_DISCARD;
mp               1711 fs/xfs/xfs_super.c 	if (xfs_sb_version_hasreflink(&mp->m_sb)) {
mp               1712 fs/xfs/xfs_super.c 		if (mp->m_sb.sb_rblocks) {
mp               1713 fs/xfs/xfs_super.c 			xfs_alert(mp,
mp               1720 fs/xfs/xfs_super.c 			xfs_info(mp, "using DEBUG-only always_cow mode.");
mp               1721 fs/xfs/xfs_super.c 			mp->m_always_cow = true;
mp               1725 fs/xfs/xfs_super.c 	if (xfs_sb_version_hasrmapbt(&mp->m_sb) && mp->m_sb.sb_rblocks) {
mp               1726 fs/xfs/xfs_super.c 		xfs_alert(mp,
mp               1732 fs/xfs/xfs_super.c 	error = xfs_mountfs(mp);
mp               1736 fs/xfs/xfs_super.c 	root = igrab(VFS_I(mp->m_rootip));
mp               1750 fs/xfs/xfs_super.c 	xfs_filestream_unmount(mp);
mp               1752 fs/xfs/xfs_super.c 	xfs_freesb(mp);
mp               1754 fs/xfs/xfs_super.c 	free_percpu(mp->m_stats.xs_stats);
mp               1756 fs/xfs/xfs_super.c 	xfs_destroy_percpu_counters(mp);
mp               1758 fs/xfs/xfs_super.c 	xfs_destroy_mount_workqueues(mp);
mp               1760 fs/xfs/xfs_super.c 	xfs_close_devices(mp);
mp               1763 fs/xfs/xfs_super.c 	xfs_free_fsname(mp);
mp               1764 fs/xfs/xfs_super.c 	kfree(mp);
mp               1769 fs/xfs/xfs_super.c 	xfs_filestream_unmount(mp);
mp               1770 fs/xfs/xfs_super.c 	xfs_unmountfs(mp);
mp               1778 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
mp               1784 fs/xfs/xfs_super.c 	xfs_notice(mp, "Unmounting Filesystem");
mp               1785 fs/xfs/xfs_super.c 	xfs_filestream_unmount(mp);
mp               1786 fs/xfs/xfs_super.c 	xfs_unmountfs(mp);
mp               1788 fs/xfs/xfs_super.c 	xfs_freesb(mp);
mp               1789 fs/xfs/xfs_super.c 	free_percpu(mp->m_stats.xs_stats);
mp               1790 fs/xfs/xfs_super.c 	xfs_destroy_percpu_counters(mp);
mp               1791 fs/xfs/xfs_super.c 	xfs_destroy_mount_workqueues(mp);
mp               1792 fs/xfs/xfs_super.c 	xfs_close_devices(mp);
mp               1795 fs/xfs/xfs_super.c 	xfs_free_fsname(mp);
mp               1796 fs/xfs/xfs_super.c 	kfree(mp);
mp                 73 fs/xfs/xfs_super.h extern void xfs_quiesce_attr(struct xfs_mount *mp);
mp                 74 fs/xfs/xfs_super.h extern void xfs_flush_inodes(struct xfs_mount *mp);
mp                 83 fs/xfs/xfs_super.h extern void xfs_reinit_percpu_counters(struct xfs_mount *mp);
mp                 30 fs/xfs/xfs_symlink.c 	struct xfs_mount	*mp = ip->i_mount;
mp                 45 fs/xfs/xfs_symlink.c 	fsblocks = xfs_symlink_blocks(mp, pathlen);
mp                 52 fs/xfs/xfs_symlink.c 		d = XFS_FSB_TO_DADDR(mp, mval[n].br_startblock);
mp                 53 fs/xfs/xfs_symlink.c 		byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount);
mp                 55 fs/xfs/xfs_symlink.c 		bp = xfs_buf_read(mp->m_ddev_targp, d, BTOBB(byte_cnt), 0,
mp                 69 fs/xfs/xfs_symlink.c 		byte_cnt = XFS_SYMLINK_BUF_SPACE(mp, byte_cnt);
mp                 74 fs/xfs/xfs_symlink.c 		if (xfs_sb_version_hascrc(&mp->m_sb)) {
mp                 78 fs/xfs/xfs_symlink.c 				xfs_alert(mp,
mp                110 fs/xfs/xfs_symlink.c 	struct xfs_mount *mp = ip->i_mount;
mp                118 fs/xfs/xfs_symlink.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                128 fs/xfs/xfs_symlink.c 		xfs_alert(mp, "%s: inode (%llu) bad symlink length (%lld)",
mp                152 fs/xfs/xfs_symlink.c 	struct xfs_mount	*mp = dp->i_mount;
mp                177 fs/xfs/xfs_symlink.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                206 fs/xfs/xfs_symlink.c 	if (pathlen <= XFS_LITINO(mp, dp->i_d.di_version))
mp                209 fs/xfs/xfs_symlink.c 		fs_blocks = xfs_symlink_blocks(mp, pathlen);
mp                210 fs/xfs/xfs_symlink.c 	resblks = XFS_SYMLINK_SPACE_RES(mp, link_name->len, fs_blocks);
mp                212 fs/xfs/xfs_symlink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_symlink, resblks, 0, 0, &tp);
mp                230 fs/xfs/xfs_symlink.c 	error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp,
mp                259 fs/xfs/xfs_symlink.c 		resblks -= XFS_IALLOC_SPACE_RES(mp);
mp                290 fs/xfs/xfs_symlink.c 			d = XFS_FSB_TO_DADDR(mp, mval[n].br_startblock);
mp                291 fs/xfs/xfs_symlink.c 			byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount);
mp                292 fs/xfs/xfs_symlink.c 			bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, d,
mp                300 fs/xfs/xfs_symlink.c 			byte_cnt = XFS_SYMLINK_BUF_SPACE(mp, byte_cnt);
mp                304 fs/xfs/xfs_symlink.c 			buf += xfs_symlink_hdr_set(mp, ip->i_ino, offset,
mp                334 fs/xfs/xfs_symlink.c 	if (mp->m_flags & (XFS_MOUNT_WSYNC|XFS_MOUNT_DIRSYNC)) {
mp                388 fs/xfs/xfs_symlink.c 	xfs_mount_t	*mp;
mp                394 fs/xfs/xfs_symlink.c 	mp = ip->i_mount;
mp                405 fs/xfs/xfs_symlink.c 	error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp);
mp                427 fs/xfs/xfs_symlink.c 	error = xfs_bmapi_read(ip, 0, xfs_symlink_blocks(mp, size),
mp                435 fs/xfs/xfs_symlink.c 		bp = xfs_trans_get_buf(tp, mp->m_ddev_targp,
mp                436 fs/xfs/xfs_symlink.c 			XFS_FSB_TO_DADDR(mp, mval[i].br_startblock),
mp                437 fs/xfs/xfs_symlink.c 			XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0);
mp                459 fs/xfs/xfs_symlink.c 		ASSERT(XFS_FORCED_SHUTDOWN(mp));
mp                487 fs/xfs/xfs_symlink.c 	struct xfs_mount	*mp = ip->i_mount;
mp                492 fs/xfs/xfs_symlink.c 	if (XFS_FORCED_SHUTDOWN(mp))
mp                500 fs/xfs/xfs_symlink.c 		xfs_alert(mp, "%s: inode (0x%llx) bad symlink length (%d)",
mp                504 fs/xfs/xfs_sysfs.c 	struct xfs_mount	*mp = err_to_mp(kobject);
mp                506 fs/xfs/xfs_sysfs.c 	return snprintf(buf, PAGE_SIZE, "%d\n", mp->m_fail_unmount);
mp                515 fs/xfs/xfs_sysfs.c 	struct xfs_mount	*mp = err_to_mp(kobject);
mp                526 fs/xfs/xfs_sysfs.c 	mp->m_fail_unmount = val;
mp                582 fs/xfs/xfs_sysfs.c 	struct xfs_mount	*mp,
mp                595 fs/xfs/xfs_sysfs.c 				&mp->m_error_kobj, parent_name);
mp                600 fs/xfs/xfs_sysfs.c 		cfg = &mp->m_error_cfg[class][i];
mp                618 fs/xfs/xfs_sysfs.c 		cfg = &mp->m_error_cfg[class][i];
mp                627 fs/xfs/xfs_sysfs.c 	struct xfs_mount	*mp)
mp                632 fs/xfs/xfs_sysfs.c 	error = xfs_sysfs_init(&mp->m_error_kobj, &xfs_error_ktype,
mp                633 fs/xfs/xfs_sysfs.c 				&mp->m_kobj, "error");
mp                637 fs/xfs/xfs_sysfs.c 	error = sysfs_create_file(&mp->m_error_kobj.kobject,
mp                644 fs/xfs/xfs_sysfs.c 	error = xfs_error_sysfs_init_class(mp, XFS_ERR_METADATA,
mp                645 fs/xfs/xfs_sysfs.c 				"metadata", &mp->m_error_meta_kobj,
mp                653 fs/xfs/xfs_sysfs.c 	xfs_sysfs_del(&mp->m_error_kobj);
mp                659 fs/xfs/xfs_sysfs.c 	struct xfs_mount	*mp)
mp                666 fs/xfs/xfs_sysfs.c 			cfg = &mp->m_error_cfg[i][j];
mp                671 fs/xfs/xfs_sysfs.c 	xfs_sysfs_del(&mp->m_error_meta_kobj);
mp                672 fs/xfs/xfs_sysfs.c 	xfs_sysfs_del(&mp->m_error_kobj);
mp                677 fs/xfs/xfs_sysfs.c 	struct xfs_mount	*mp,
mp                688 fs/xfs/xfs_sysfs.c 		cfg = &mp->m_error_cfg[error_class][XFS_ERR_EIO];
mp                691 fs/xfs/xfs_sysfs.c 		cfg = &mp->m_error_cfg[error_class][XFS_ERR_ENOSPC];
mp                694 fs/xfs/xfs_sysfs.c 		cfg = &mp->m_error_cfg[error_class][XFS_ERR_ENODEV];
mp                697 fs/xfs/xfs_sysfs.c 		cfg = &mp->m_error_cfg[error_class][XFS_ERR_DEFAULT];
mp                 49 fs/xfs/xfs_sysfs.h int	xfs_error_sysfs_init(struct xfs_mount *mp);
mp                 50 fs/xfs/xfs_sysfs.h void	xfs_error_sysfs_del(struct xfs_mount *mp);
mp                100 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,
mp                102 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, refcount, caller_ip),
mp                110 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp                124 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,	\
mp                126 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, refcount, caller_ip))
mp                138 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
mp                139 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno),
mp                145 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp                154 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),	\
mp                155 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno))
mp                500 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_ino_t ino, xfs_agnumber_t agno),
mp                501 fs/xfs/xfs_trace.h 	TP_ARGS(mp, ino, agno),
mp                509 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp                512 fs/xfs/xfs_trace.h 		__entry->streams = xfs_filestream_peek_ag(mp, agno);
mp                522 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_ino_t ino, xfs_agnumber_t agno), \
mp                523 fs/xfs/xfs_trace.h 	TP_ARGS(mp, ino, agno))
mp                734 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino,
mp                736 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agino, holemask, nagino, nholemask),
mp                746 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp                760 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino,
mp                762 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agino, holemask),
mp                770 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               1041 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_lsn_t lsn, unsigned long caller_ip),
mp               1042 fs/xfs/xfs_trace.h 	TP_ARGS(mp, lsn, caller_ip),
mp               1049 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               1405 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               1407 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len),
mp               1415 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               1428 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               1430 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len))
mp               1438 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               1441 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len, tbno, tlen),
mp               1451 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               1468 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags,
mp               1470 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agf, flags, caller_ip),
mp               1488 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               1525 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags, \
mp               1527 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agf, flags, caller_ip))
mp               1532 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno,
mp               1535 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len, resv, haveleft, haveright),
mp               1546 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               1591 fs/xfs/xfs_trace.h 		__entry->dev = args->mp->m_super->s_dev;
mp               2163 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2165 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len),
mp               2173 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2187 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2189 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len))
mp               2291 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, struct xfs_defer_pending *dfp),
mp               2292 fs/xfs/xfs_trace.h 	TP_ARGS(mp, dfp),
mp               2301 fs/xfs/xfs_trace.h 		__entry->dev = mp ? mp->m_super->s_dev : 0;
mp               2316 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, struct xfs_defer_pending *dfp), \
mp               2317 fs/xfs/xfs_trace.h 	TP_ARGS(mp, dfp))
mp               2320 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2322 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, type, agbno, len),
mp               2331 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2346 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2350 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, type, bno, len))
mp               2353 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2361 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state),
mp               2374 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2397 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2405 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, op, agbno, ino, whichfork, offset, len, state))
mp               2429 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2432 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len, unwritten, oinfo),
mp               2443 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2464 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2467 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len, unwritten, oinfo))
mp               2471 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int error,
mp               2473 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, error, caller_ip),
mp               2481 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2495 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int error, \
mp               2497 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, error, caller_ip))
mp               2511 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2514 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len, owner, offset, flags),
mp               2525 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2544 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2547 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, len, owner, offset, flags))
mp               2640 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2642 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, dir),
mp               2650 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2665 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2667 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agbno, dir))
mp               2671 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2673 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, irec),
mp               2682 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2698 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2700 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, irec))
mp               2704 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2706 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, irec, agbno),
mp               2716 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2734 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2736 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, irec, agbno))
mp               2740 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2742 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, i1, i2),
mp               2754 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2777 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2779 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, i1, i2))
mp               2783 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2786 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, i1, i2, agbno),
mp               2799 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2824 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2827 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, i1, i2, agbno))
mp               2831 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2834 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, i1, i2, i3),
mp               2849 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               2879 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               2882 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, i1, i2, i3))
mp               2928 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               2931 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, type, agbno, len, new_agbno, new_len),
mp               2942 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3227 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, u32 keydev, xfs_agnumber_t agno,
mp               3229 fs/xfs/xfs_trace.h 	TP_ARGS(mp, keydev, agno, rmap),
mp               3241 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3262 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, u32 keydev, xfs_agnumber_t agno, \
mp               3264 fs/xfs/xfs_trace.h 	TP_ARGS(mp, keydev, agno, rmap))
mp               3270 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, struct xfs_fsmap *fsmap),
mp               3271 fs/xfs/xfs_trace.h 	TP_ARGS(mp, fsmap),
mp               3282 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3301 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, struct xfs_fsmap *fsmap), \
mp               3302 fs/xfs/xfs_trace.h 	TP_ARGS(mp, fsmap))
mp               3308 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, unsigned int type,
mp               3310 fs/xfs/xfs_trace.h 	TP_ARGS(mp, type, res),
mp               3319 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3372 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, unsigned int bucket,
mp               3374 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, bucket, old_ptr, new_ptr),
mp               3383 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3398 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino,
mp               3400 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, agino, old_ptr, new_ptr),
mp               3409 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3450 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, unsigned int flags),
mp               3451 fs/xfs/xfs_trace.h 	TP_ARGS(mp, flags),
mp               3457 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3466 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, unsigned int flags), \
mp               3467 fs/xfs/xfs_trace.h 	TP_ARGS(mp, flags))
mp               3476 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, unsigned int flags),
mp               3477 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, flags),
mp               3484 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3494 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, \
mp               3496 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, flags))
mp               3526 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               3528 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, startino),
mp               3535 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3545 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno,
mp               3547 fs/xfs/xfs_trace.h 	TP_ARGS(mp, agno, irec),
mp               3555 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp               3566 fs/xfs/xfs_trace.h 	TP_PROTO(struct xfs_mount *mp, unsigned int nr_threads, pid_t pid),
mp               3567 fs/xfs/xfs_trace.h 	TP_ARGS(mp, nr_threads, pid),
mp               3574 fs/xfs/xfs_trace.h 		__entry->dev = mp->m_super->s_dev;
mp                 28 fs/xfs/xfs_trans.c 	struct xfs_mount	*mp)
mp                 35 fs/xfs/xfs_trans.c 	res = (struct xfs_trans_res *)M_RES(mp);
mp                 36 fs/xfs/xfs_trans.c 	end_res = (struct xfs_trans_res *)(M_RES(mp) + 1);
mp                 38 fs/xfs/xfs_trans.c 		trace_xfs_trans_resv_calc(mp, i, res);
mp                 39 fs/xfs/xfs_trans.c 	xfs_log_get_max_trans_res(mp, &resv);
mp                 40 fs/xfs/xfs_trans.c 	trace_xfs_trans_resv_calc(mp, -1, &resv);
mp                 43 fs/xfs/xfs_trans.c # define xfs_trans_trace_reservations(mp)
mp                 52 fs/xfs/xfs_trans.c 	struct xfs_mount	*mp)
mp                 54 fs/xfs/xfs_trans.c 	xfs_trans_resv_calc(mp, M_RES(mp));
mp                 55 fs/xfs/xfs_trans.c 	xfs_trans_trace_reservations(mp);
mp                251 fs/xfs/xfs_trans.c 	struct xfs_mount	*mp,
mp                268 fs/xfs/xfs_trans.c 		sb_start_intwrite(mp->m_super);
mp                275 fs/xfs/xfs_trans.c 		mp->m_super->s_writers.frozen == SB_FREEZE_COMPLETE);
mp                276 fs/xfs/xfs_trans.c 	atomic_inc(&mp->m_active_trans);
mp                280 fs/xfs/xfs_trans.c 	tp->t_mountp = mp;
mp                312 fs/xfs/xfs_trans.c 	struct xfs_mount		*mp,
mp                317 fs/xfs/xfs_trans.c 	return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp);
mp                343 fs/xfs/xfs_trans.c 	xfs_mount_t	*mp = tp->t_mountp;
mp                348 fs/xfs/xfs_trans.c 		if (xfs_sb_version_haslazysbcount(&mp->m_sb))
mp                353 fs/xfs/xfs_trans.c 		if (xfs_sb_version_haslazysbcount(&mp->m_sb))
mp                365 fs/xfs/xfs_trans.c 				xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp                368 fs/xfs/xfs_trans.c 		if (xfs_sb_version_haslazysbcount(&mp->m_sb))
mp                378 fs/xfs/xfs_trans.c 		if (xfs_sb_version_haslazysbcount(&mp->m_sb))
mp                594 fs/xfs/xfs_trans.c 	struct xfs_mount	*mp = tp->t_mountp;
mp                606 fs/xfs/xfs_trans.c 	    (xfs_sb_version_haslazysbcount(&mp->m_sb) ||
mp                616 fs/xfs/xfs_trans.c 	if (xfs_sb_version_haslazysbcount(&mp->m_sb) ||
mp                624 fs/xfs/xfs_trans.c 		error = xfs_mod_fdblocks(mp, blkdelta, rsvd);
mp                630 fs/xfs/xfs_trans.c 		error = xfs_mod_icount(mp, idelta);
mp                636 fs/xfs/xfs_trans.c 		error = xfs_mod_ifree(mp, ifreedelta);
mp                645 fs/xfs/xfs_trans.c 	spin_lock(&mp->m_sb_lock);
mp                647 fs/xfs/xfs_trans.c 		error = xfs_sb_mod64(&mp->m_sb.sb_frextents, rtxdelta);
mp                653 fs/xfs/xfs_trans.c 		error = xfs_sb_mod64(&mp->m_sb.sb_dblocks, tp->t_dblocks_delta);
mp                658 fs/xfs/xfs_trans.c 		error = xfs_sb_mod32(&mp->m_sb.sb_agcount, tp->t_agcount_delta);
mp                663 fs/xfs/xfs_trans.c 		error = xfs_sb_mod8(&mp->m_sb.sb_imax_pct, tp->t_imaxpct_delta);
mp                668 fs/xfs/xfs_trans.c 		error = xfs_sb_mod32(&mp->m_sb.sb_rextsize,
mp                674 fs/xfs/xfs_trans.c 		error = xfs_sb_mod32(&mp->m_sb.sb_rbmblocks,
mp                680 fs/xfs/xfs_trans.c 		error = xfs_sb_mod64(&mp->m_sb.sb_rblocks, tp->t_rblocks_delta);
mp                685 fs/xfs/xfs_trans.c 		error = xfs_sb_mod64(&mp->m_sb.sb_rextents,
mp                691 fs/xfs/xfs_trans.c 		error = xfs_sb_mod8(&mp->m_sb.sb_rextslog,
mp                696 fs/xfs/xfs_trans.c 	spin_unlock(&mp->m_sb_lock);
mp                701 fs/xfs/xfs_trans.c 		xfs_sb_mod64(&mp->m_sb.sb_rextents, -tp->t_rextents_delta);
mp                704 fs/xfs/xfs_trans.c 		xfs_sb_mod64(&mp->m_sb.sb_rblocks, -tp->t_rblocks_delta);
mp                707 fs/xfs/xfs_trans.c 		xfs_sb_mod32(&mp->m_sb.sb_rbmblocks, -tp->t_rbmblocks_delta);
mp                710 fs/xfs/xfs_trans.c 		xfs_sb_mod32(&mp->m_sb.sb_rextsize, -tp->t_rextsize_delta);
mp                713 fs/xfs/xfs_trans.c 		xfs_sb_mod8(&mp->m_sb.sb_imax_pct, -tp->t_imaxpct_delta);
mp                716 fs/xfs/xfs_trans.c 		xfs_sb_mod32(&mp->m_sb.sb_agcount, -tp->t_agcount_delta);
mp                719 fs/xfs/xfs_trans.c 		xfs_sb_mod64(&mp->m_sb.sb_dblocks, -tp->t_dblocks_delta);
mp                722 fs/xfs/xfs_trans.c 		xfs_sb_mod64(&mp->m_sb.sb_frextents, -rtxdelta);
mp                724 fs/xfs/xfs_trans.c 	spin_unlock(&mp->m_sb_lock);
mp                726 fs/xfs/xfs_trans.c 		xfs_mod_ifree(mp, -ifreedelta);
mp                729 fs/xfs/xfs_trans.c 		xfs_mod_icount(mp, -idelta);
mp                732 fs/xfs/xfs_trans.c 		xfs_mod_fdblocks(mp, -blkdelta, rsvd);
mp                931 fs/xfs/xfs_trans.c 	struct xfs_mount	*mp = tp->t_mountp;
mp                960 fs/xfs/xfs_trans.c 	if (XFS_FORCED_SHUTDOWN(mp)) {
mp                974 fs/xfs/xfs_trans.c 	xfs_log_commit_cil(mp, tp, &commit_lsn, regrant);
mp                984 fs/xfs/xfs_trans.c 		error = xfs_log_force_lsn(mp, commit_lsn, XFS_LOG_SYNC, NULL);
mp                985 fs/xfs/xfs_trans.c 		XFS_STATS_INC(mp, xs_trans_sync);
mp                987 fs/xfs/xfs_trans.c 		XFS_STATS_INC(mp, xs_trans_async);
mp               1002 fs/xfs/xfs_trans.c 		commit_lsn = xfs_log_done(mp, tp->t_ticket, NULL, regrant);
mp               1011 fs/xfs/xfs_trans.c 	XFS_STATS_INC(mp, xs_trans_empty);
mp               1034 fs/xfs/xfs_trans.c 	struct xfs_mount	*mp = tp->t_mountp;
mp               1047 fs/xfs/xfs_trans.c 	if (dirty && !XFS_FORCED_SHUTDOWN(mp)) {
mp               1048 fs/xfs/xfs_trans.c 		XFS_ERROR_REPORT("xfs_trans_cancel", XFS_ERRLEVEL_LOW, mp);
mp               1049 fs/xfs/xfs_trans.c 		xfs_force_shutdown(mp, SHUTDOWN_CORRUPT_INCORE);
mp               1052 fs/xfs/xfs_trans.c 	if (!dirty && !XFS_FORCED_SHUTDOWN(mp)) {
mp               1063 fs/xfs/xfs_trans.c 		xfs_log_done(mp, tp->t_ticket, NULL, false);
mp                 88 fs/xfs/xfs_trans.h void	xfs_log_item_init(struct xfs_mount *mp, struct xfs_log_item *item,
mp                165 fs/xfs/xfs_trans.h int		xfs_trans_alloc(struct xfs_mount *mp, struct xfs_trans_res *resp,
mp                168 fs/xfs/xfs_trans.h int		xfs_trans_alloc_empty(struct xfs_mount *mp,
mp                189 fs/xfs/xfs_trans.h int		xfs_trans_read_buf_map(struct xfs_mount *mp,
mp                199 fs/xfs/xfs_trans.h 	struct xfs_mount	*mp,
mp                209 fs/xfs/xfs_trans.h 	return xfs_trans_read_buf_map(mp, tp, target, &map, 1,
mp                366 fs/xfs/xfs_trans_ail.c 	xfs_mount_t		*mp = ailp->ail_mount;
mp                386 fs/xfs/xfs_trans_ail.c 		XFS_STATS_INC(mp, xs_push_ail_flush);
mp                387 fs/xfs/xfs_trans_ail.c 		xfs_log_force(mp, XFS_LOG_SYNC);
mp                408 fs/xfs/xfs_trans_ail.c 	XFS_STATS_INC(mp, xs_push_ail);
mp                422 fs/xfs/xfs_trans_ail.c 			XFS_STATS_INC(mp, xs_push_ail_success);
mp                440 fs/xfs/xfs_trans_ail.c 			XFS_STATS_INC(mp, xs_push_ail_flushing);
mp                448 fs/xfs/xfs_trans_ail.c 			XFS_STATS_INC(mp, xs_push_ail_pinned);
mp                455 fs/xfs/xfs_trans_ail.c 			XFS_STATS_INC(mp, xs_push_ail_locked);
mp                796 fs/xfs/xfs_trans_ail.c 	struct xfs_mount	*mp = ailp->ail_mount;
mp                801 fs/xfs/xfs_trans_ail.c 		if (!XFS_FORCED_SHUTDOWN(mp)) {
mp                802 fs/xfs/xfs_trans_ail.c 			xfs_alert_tag(mp, XFS_PTAG_AILDELETE,
mp                805 fs/xfs/xfs_trans_ail.c 			xfs_force_shutdown(mp, shutdown_type);
mp                812 fs/xfs/xfs_trans_ail.c 		if (!XFS_FORCED_SHUTDOWN(mp))
mp                813 fs/xfs/xfs_trans_ail.c 			xlog_assign_tail_lsn_locked(mp);
mp                825 fs/xfs/xfs_trans_ail.c 	xfs_mount_t	*mp)
mp                833 fs/xfs/xfs_trans_ail.c 	ailp->ail_mount = mp;
mp                845 fs/xfs/xfs_trans_ail.c 	mp->m_ail = ailp;
mp                855 fs/xfs/xfs_trans_ail.c 	xfs_mount_t	*mp)
mp                857 fs/xfs/xfs_trans_ail.c 	struct xfs_ail	*ailp = mp->m_ail;
mp                175 fs/xfs/xfs_trans_buf.c 	struct xfs_mount	*mp)
mp                185 fs/xfs/xfs_trans_buf.c 		return xfs_getsb(mp);
mp                193 fs/xfs/xfs_trans_buf.c 	bp = mp->m_sb_bp;
mp                203 fs/xfs/xfs_trans_buf.c 	bp = xfs_getsb(mp);
mp                224 fs/xfs/xfs_trans_buf.c 	struct xfs_mount	*mp,
mp                259 fs/xfs/xfs_trans_buf.c 		if (XFS_FORCED_SHUTDOWN(mp)) {
mp                319 fs/xfs/xfs_trans_buf.c 		if (!XFS_FORCED_SHUTDOWN(mp))
mp                334 fs/xfs/xfs_trans_buf.c 	if (XFS_FORCED_SHUTDOWN(mp)) {
mp                132 fs/xfs/xfs_trans_dquot.c 	xfs_mount_t	*mp = tp->t_mountp;
mp                134 fs/xfs/xfs_trans_dquot.c 	if (!XFS_IS_QUOTA_RUNNING(mp) ||
mp                135 fs/xfs/xfs_trans_dquot.c 	    !XFS_IS_QUOTA_ON(mp) ||
mp                136 fs/xfs/xfs_trans_dquot.c 	    xfs_is_quota_inode(&mp->m_sb, ip->i_ino))
mp                142 fs/xfs/xfs_trans_dquot.c 	if (XFS_IS_UQUOTA_ON(mp) && ip->i_udquot)
mp                144 fs/xfs/xfs_trans_dquot.c 	if (XFS_IS_GQUOTA_ON(mp) && ip->i_gdquot)
mp                146 fs/xfs/xfs_trans_dquot.c 	if (XFS_IS_PQUOTA_ON(mp) && ip->i_pdquot)
mp                548 fs/xfs/xfs_trans_dquot.c 	struct xfs_mount	*mp,
mp                563 fs/xfs/xfs_trans_dquot.c 			   mp->m_super->s_dev, type);
mp                575 fs/xfs/xfs_trans_dquot.c 	xfs_mount_t	*mp,
mp                588 fs/xfs/xfs_trans_dquot.c 	xfs_quotainfo_t	*q = mp->m_quotainfo;
mp                634 fs/xfs/xfs_trans_dquot.c 				xfs_quota_warn(mp, dqp, QUOTA_NL_BHARDWARN);
mp                640 fs/xfs/xfs_trans_dquot.c 					xfs_quota_warn(mp, dqp,
mp                645 fs/xfs/xfs_trans_dquot.c 				xfs_quota_warn(mp, dqp, QUOTA_NL_BSOFTWARN);
mp                661 fs/xfs/xfs_trans_dquot.c 				xfs_quota_warn(mp, dqp, QUOTA_NL_IHARDWARN);
mp                667 fs/xfs/xfs_trans_dquot.c 					xfs_quota_warn(mp, dqp,
mp                671 fs/xfs/xfs_trans_dquot.c 				xfs_quota_warn(mp, dqp, QUOTA_NL_ISOFTWARN);
mp                733 fs/xfs/xfs_trans_dquot.c 	struct xfs_mount	*mp,
mp                743 fs/xfs/xfs_trans_dquot.c 	if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
mp                752 fs/xfs/xfs_trans_dquot.c 		error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos,
mp                759 fs/xfs/xfs_trans_dquot.c 		error = xfs_trans_dqresv(tp, mp, gdqp, nblks, ninos, flags);
mp                765 fs/xfs/xfs_trans_dquot.c 		error = xfs_trans_dqresv(tp, mp, pdqp, nblks, ninos, flags);
mp                778 fs/xfs/xfs_trans_dquot.c 		xfs_trans_dqresv(tp, mp, gdqp, -nblks, -ninos, flags);
mp                782 fs/xfs/xfs_trans_dquot.c 		xfs_trans_dqresv(tp, mp, udqp, -nblks, -ninos, flags);
mp                800 fs/xfs/xfs_trans_dquot.c 	struct xfs_mount	*mp = ip->i_mount;
mp                802 fs/xfs/xfs_trans_dquot.c 	if (!XFS_IS_QUOTA_RUNNING(mp) || !XFS_IS_QUOTA_ON(mp))
mp                804 fs/xfs/xfs_trans_dquot.c 	if (XFS_IS_PQUOTA_ON(mp))
mp                807 fs/xfs/xfs_trans_dquot.c 	ASSERT(!xfs_is_quota_inode(&mp->m_sb, ip->i_ino));
mp                818 fs/xfs/xfs_trans_dquot.c 	return xfs_trans_reserve_quota_bydquots(tp, mp,
mp                195 include/linux/if_vlan.h 	struct vlan_priority_tci_mapping *mp;
mp                199 include/linux/if_vlan.h 	mp = vlan_dev_priv(dev)->egress_priority_map[(skprio & 0xF)];
mp                200 include/linux/if_vlan.h 	while (mp) {
mp                201 include/linux/if_vlan.h 		if (mp->priority == skprio) {
mp                202 include/linux/if_vlan.h 			return mp->vlan_qos; /* This should already be shifted
mp                206 include/linux/if_vlan.h 		mp = mp->next;
mp                 46 include/linux/module.h 	struct module_param_attrs *mp;
mp                142 include/media/drv-intf/exynos-fimc.h 	struct media_pipeline mp;
mp                 54 include/uapi/linux/hdlcdrv.h 		struct hdlcdrv_params mp;
mp                617 kernel/params.c 	if (!mk->mp) {
mp                619 kernel/params.c 		mk->mp = kzalloc(sizeof(*mk->mp), GFP_KERNEL);
mp                620 kernel/params.c 		if (!mk->mp)
mp                622 kernel/params.c 		mk->mp->grp.name = "parameters";
mp                624 kernel/params.c 		mk->mp->grp.attrs = kzalloc(sizeof(mk->mp->grp.attrs[0]),
mp                627 kernel/params.c 		if (!mk->mp->grp.attrs)
mp                632 kernel/params.c 	new_mp = krealloc(mk->mp,
mp                633 kernel/params.c 			  sizeof(*mk->mp) +
mp                634 kernel/params.c 			  sizeof(mk->mp->attrs[0]) * (mk->mp->num + 1),
mp                638 kernel/params.c 	mk->mp = new_mp;
mp                641 kernel/params.c 	new_attrs = krealloc(mk->mp->grp.attrs,
mp                642 kernel/params.c 			     sizeof(mk->mp->grp.attrs[0]) * (mk->mp->num + 2),
mp                646 kernel/params.c 	mk->mp->grp.attrs = new_attrs;
mp                649 kernel/params.c 	memset(&mk->mp->attrs[mk->mp->num], 0, sizeof(mk->mp->attrs[0]));
mp                650 kernel/params.c 	sysfs_attr_init(&mk->mp->attrs[mk->mp->num].mattr.attr);
mp                651 kernel/params.c 	mk->mp->attrs[mk->mp->num].param = kp;
mp                652 kernel/params.c 	mk->mp->attrs[mk->mp->num].mattr.show = param_attr_show;
mp                655 kernel/params.c 		mk->mp->attrs[mk->mp->num].mattr.store = param_attr_store;
mp                657 kernel/params.c 		mk->mp->attrs[mk->mp->num].mattr.store = NULL;
mp                658 kernel/params.c 	mk->mp->attrs[mk->mp->num].mattr.attr.name = (char *)name;
mp                659 kernel/params.c 	mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm;
mp                660 kernel/params.c 	mk->mp->num++;
mp                663 kernel/params.c 	for (i = 0; i < mk->mp->num; i++)
mp                664 kernel/params.c 		mk->mp->grp.attrs[i] = &mk->mp->attrs[i].mattr.attr;
mp                665 kernel/params.c 	mk->mp->grp.attrs[mk->mp->num] = NULL;
mp                672 kernel/params.c 	if (mk->mp)
mp                673 kernel/params.c 		kfree(mk->mp->grp.attrs);
mp                674 kernel/params.c 	kfree(mk->mp);
mp                675 kernel/params.c 	mk->mp = NULL;
mp                709 kernel/params.c 	err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp);
mp                724 kernel/params.c 	if (mod->mkobj.mp) {
mp                725 kernel/params.c 		sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp);
mp                789 kernel/params.c 	if (mk->mp)
mp                790 kernel/params.c 		sysfs_remove_group(&mk->kobj, &mk->mp->grp);
mp                795 kernel/params.c 	err = sysfs_create_group(&mk->kobj, &mk->mp->grp);
mp                 30 lib/mpi/mpi-pow.c 	mpi_ptr_t rp, ep, mp, bp;
mp                 70 lib/mpi/mpi-pow.c 	mp = mp_marker = mpi_alloc_limb_space(msize);
mp                 71 lib/mpi/mpi-pow.c 	if (!mp)
mp                 75 lib/mpi/mpi-pow.c 		mpihelp_lshift(mp, mod->d, msize, mod_shift_cnt);
mp                 77 lib/mpi/mpi-pow.c 		MPN_COPY(mp, mod->d, msize);
mp                 90 lib/mpi/mpi-pow.c 		mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize);
mp                108 lib/mpi/mpi-pow.c 		if (rp == ep || rp == mp || rp == bp) {
mp                134 lib/mpi/mpi-pow.c 		if (rp == mp) {
mp                137 lib/mpi/mpi-pow.c 			mp = mp_marker = mpi_alloc_limb_space(msize);
mp                138 lib/mpi/mpi-pow.c 			if (!mp)
mp                140 lib/mpi/mpi-pow.c 			MPN_COPY(mp, rp, msize);
mp                206 lib/mpi/mpi-pow.c 						       mp, msize);
mp                233 lib/mpi/mpi-pow.c 							       xp, xsize, mp,
mp                275 lib/mpi/mpi-pow.c 			mpihelp_divrem(rp + msize, 0, rp, rsize, mp, msize);
mp                287 lib/mpi/mpi-pow.c 			mpihelp_rshift(mp, mp, msize, mod_shift_cnt);
mp                288 lib/mpi/mpi-pow.c 		mpihelp_sub(rp, mp, msize, rp, rsize);
mp                174 net/8021q/vlan_dev.c 	struct vlan_priority_tci_mapping *mp = NULL;
mp                179 net/8021q/vlan_dev.c 	mp = vlan->egress_priority_map[skb_prio & 0xF];
mp                180 net/8021q/vlan_dev.c 	while (mp) {
mp                181 net/8021q/vlan_dev.c 		if (mp->priority == skb_prio) {
mp                182 net/8021q/vlan_dev.c 			if (mp->vlan_qos && !vlan_qos)
mp                184 net/8021q/vlan_dev.c 			else if (!mp->vlan_qos && vlan_qos)
mp                186 net/8021q/vlan_dev.c 			mp->vlan_qos = vlan_qos;
mp                189 net/8021q/vlan_dev.c 		mp = mp->next;
mp                193 net/8021q/vlan_dev.c 	mp = vlan->egress_priority_map[skb_prio & 0xF];
mp                198 net/8021q/vlan_dev.c 	np->next = mp;
mp                280 net/8021q/vlanproc.c 		const struct vlan_priority_tci_mapping *mp
mp                282 net/8021q/vlanproc.c 		while (mp) {
mp                284 net/8021q/vlanproc.c 				   mp->priority, ((mp->vlan_qos >> 13) & 0x7));
mp                285 net/8021q/vlanproc.c 			mp = mp->next;
mp                 81 net/bridge/br_mdb.c 			   struct net_bridge_mdb_entry *mp,
mp                 96 net/bridge/br_mdb.c 		ifindex = mp->br->dev->ifindex;
mp                 97 net/bridge/br_mdb.c 		mtimer = &mp->timer;
mp                102 net/bridge/br_mdb.c 	e.vid = mp->addr.vid;
mp                103 net/bridge/br_mdb.c 	if (mp->addr.proto == htons(ETH_P_IP))
mp                104 net/bridge/br_mdb.c 		e.addr.u.ip4 = mp->addr.u.ip4;
mp                106 net/bridge/br_mdb.c 	if (mp->addr.proto == htons(ETH_P_IPV6))
mp                107 net/bridge/br_mdb.c 		e.addr.u.ip6 = mp->addr.u.ip6;
mp                109 net/bridge/br_mdb.c 	e.addr.proto = mp->addr.proto;
mp                132 net/bridge/br_mdb.c 	struct net_bridge_mdb_entry *mp;
mp                142 net/bridge/br_mdb.c 	hlist_for_each_entry_rcu(mp, &br->mdb_list, mdb_node) {
mp                155 net/bridge/br_mdb.c 		if (mp->host_joined) {
mp                156 net/bridge/br_mdb.c 			err = __mdb_fill_info(skb, mp, NULL);
mp                163 net/bridge/br_mdb.c 		for (pp = &mp->ports; (p = rcu_dereference(*pp)) != NULL;
mp                168 net/bridge/br_mdb.c 			err = __mdb_fill_info(skb, mp, p);
mp                319 net/bridge/br_mdb.c 	struct net_bridge_mdb_entry *mp;
mp                327 net/bridge/br_mdb.c 	mp = br_mdb_ip_get(br, &data->ip);
mp                328 net/bridge/br_mdb.c 	if (!mp)
mp                330 net/bridge/br_mdb.c 	for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL;
mp                605 net/bridge/br_mdb.c 	struct net_bridge_mdb_entry *mp;
mp                611 net/bridge/br_mdb.c 	mp = br_mdb_ip_get(br, group);
mp                612 net/bridge/br_mdb.c 	if (!mp) {
mp                613 net/bridge/br_mdb.c 		mp = br_multicast_new_group(br, group);
mp                614 net/bridge/br_mdb.c 		err = PTR_ERR_OR_ZERO(mp);
mp                624 net/bridge/br_mdb.c 		if (mp->host_joined)
mp                627 net/bridge/br_mdb.c 		br_multicast_host_join(mp, false);
mp                632 net/bridge/br_mdb.c 	for (pp = &mp->ports;
mp                733 net/bridge/br_mdb.c 	struct net_bridge_mdb_entry *mp;
mp                745 net/bridge/br_mdb.c 	mp = br_mdb_ip_get(br, &ip);
mp                746 net/bridge/br_mdb.c 	if (!mp)
mp                750 net/bridge/br_mdb.c 	if (entry->ifindex == mp->br->dev->ifindex && mp->host_joined) {
mp                751 net/bridge/br_mdb.c 		br_multicast_host_leave(mp, false);
mp                753 net/bridge/br_mdb.c 		if (!mp->ports && netif_running(br->dev))
mp                754 net/bridge/br_mdb.c 			mod_timer(&mp->timer, jiffies);
mp                758 net/bridge/br_mdb.c 	for (pp = &mp->ports;
mp                774 net/bridge/br_mdb.c 		if (!mp->ports && !mp->host_joined &&
mp                776 net/bridge/br_mdb.c 			mod_timer(&mp->timer, jiffies);
mp                144 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp = from_timer(mp, t, timer);
mp                145 net/bridge/br_multicast.c 	struct net_bridge *br = mp->br;
mp                148 net/bridge/br_multicast.c 	if (!netif_running(br->dev) || timer_pending(&mp->timer))
mp                151 net/bridge/br_multicast.c 	br_multicast_host_leave(mp, true);
mp                153 net/bridge/br_multicast.c 	if (mp->ports)
mp                156 net/bridge/br_multicast.c 	rhashtable_remove_fast(&br->mdb_hash_tbl, &mp->rhnode,
mp                158 net/bridge/br_multicast.c 	hlist_del_rcu(&mp->mdb_node);
mp                160 net/bridge/br_multicast.c 	kfree_rcu(mp, rcu);
mp                169 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp                173 net/bridge/br_multicast.c 	mp = br_mdb_ip_get(br, &pg->addr);
mp                174 net/bridge/br_multicast.c 	if (WARN_ON(!mp))
mp                177 net/bridge/br_multicast.c 	for (pp = &mp->ports;
mp                190 net/bridge/br_multicast.c 		if (!mp->ports && !mp->host_joined &&
mp                192 net/bridge/br_multicast.c 			mod_timer(&mp->timer, jiffies);
mp                442 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp                445 net/bridge/br_multicast.c 	mp = br_mdb_ip_get(br, group);
mp                446 net/bridge/br_multicast.c 	if (mp)
mp                447 net/bridge/br_multicast.c 		return mp;
mp                454 net/bridge/br_multicast.c 	mp = kzalloc(sizeof(*mp), GFP_ATOMIC);
mp                455 net/bridge/br_multicast.c 	if (unlikely(!mp))
mp                458 net/bridge/br_multicast.c 	mp->br = br;
mp                459 net/bridge/br_multicast.c 	mp->addr = *group;
mp                460 net/bridge/br_multicast.c 	timer_setup(&mp->timer, br_multicast_group_expired, 0);
mp                461 net/bridge/br_multicast.c 	err = rhashtable_lookup_insert_fast(&br->mdb_hash_tbl, &mp->rhnode,
mp                464 net/bridge/br_multicast.c 		kfree(mp);
mp                465 net/bridge/br_multicast.c 		mp = ERR_PTR(err);
mp                467 net/bridge/br_multicast.c 		hlist_add_head_rcu(&mp->mdb_node, &br->mdb_list);
mp                470 net/bridge/br_multicast.c 	return mp;
mp                514 net/bridge/br_multicast.c void br_multicast_host_join(struct net_bridge_mdb_entry *mp, bool notify)
mp                516 net/bridge/br_multicast.c 	if (!mp->host_joined) {
mp                517 net/bridge/br_multicast.c 		mp->host_joined = true;
mp                519 net/bridge/br_multicast.c 			br_mdb_notify(mp->br->dev, NULL, &mp->addr,
mp                522 net/bridge/br_multicast.c 	mod_timer(&mp->timer, jiffies + mp->br->multicast_membership_interval);
mp                525 net/bridge/br_multicast.c void br_multicast_host_leave(struct net_bridge_mdb_entry *mp, bool notify)
mp                527 net/bridge/br_multicast.c 	if (!mp->host_joined)
mp                530 net/bridge/br_multicast.c 	mp->host_joined = false;
mp                532 net/bridge/br_multicast.c 		br_mdb_notify(mp->br->dev, NULL, &mp->addr, RTM_DELMDB, 0);
mp                542 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp                551 net/bridge/br_multicast.c 	mp = br_multicast_new_group(br, group);
mp                552 net/bridge/br_multicast.c 	err = PTR_ERR(mp);
mp                553 net/bridge/br_multicast.c 	if (IS_ERR(mp))
mp                557 net/bridge/br_multicast.c 		br_multicast_host_join(mp, true);
mp                561 net/bridge/br_multicast.c 	for (pp = &mp->ports;
mp               1223 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp               1266 net/bridge/br_multicast.c 	mp = br_mdb_ip4_get(br, group, vid);
mp               1267 net/bridge/br_multicast.c 	if (!mp)
mp               1272 net/bridge/br_multicast.c 	if (mp->host_joined &&
mp               1273 net/bridge/br_multicast.c 	    (timer_pending(&mp->timer) ?
mp               1274 net/bridge/br_multicast.c 	     time_after(mp->timer.expires, now + max_delay) :
mp               1275 net/bridge/br_multicast.c 	     try_to_del_timer_sync(&mp->timer) >= 0))
mp               1276 net/bridge/br_multicast.c 		mod_timer(&mp->timer, now + max_delay);
mp               1278 net/bridge/br_multicast.c 	for (pp = &mp->ports;
mp               1299 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp               1350 net/bridge/br_multicast.c 	mp = br_mdb_ip6_get(br, group, vid);
mp               1351 net/bridge/br_multicast.c 	if (!mp)
mp               1355 net/bridge/br_multicast.c 	if (mp->host_joined &&
mp               1356 net/bridge/br_multicast.c 	    (timer_pending(&mp->timer) ?
mp               1357 net/bridge/br_multicast.c 	     time_after(mp->timer.expires, now + max_delay) :
mp               1358 net/bridge/br_multicast.c 	     try_to_del_timer_sync(&mp->timer) >= 0))
mp               1359 net/bridge/br_multicast.c 		mod_timer(&mp->timer, now + max_delay);
mp               1361 net/bridge/br_multicast.c 	for (pp = &mp->ports;
mp               1384 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp               1394 net/bridge/br_multicast.c 	mp = br_mdb_ip_get(br, group);
mp               1395 net/bridge/br_multicast.c 	if (!mp)
mp               1401 net/bridge/br_multicast.c 		for (pp = &mp->ports;
mp               1417 net/bridge/br_multicast.c 			if (!mp->ports && !mp->host_joined &&
mp               1419 net/bridge/br_multicast.c 				mod_timer(&mp->timer, jiffies);
mp               1428 net/bridge/br_multicast.c 		__br_multicast_send_query(br, port, &mp->addr);
mp               1435 net/bridge/br_multicast.c 		for (p = mlock_dereference(mp->ports, br);
mp               1457 net/bridge/br_multicast.c 		if (mp->host_joined &&
mp               1458 net/bridge/br_multicast.c 		    (timer_pending(&mp->timer) ?
mp               1459 net/bridge/br_multicast.c 		     time_after(mp->timer.expires, time) :
mp               1460 net/bridge/br_multicast.c 		     try_to_del_timer_sync(&mp->timer) >= 0)) {
mp               1461 net/bridge/br_multicast.c 			mod_timer(&mp->timer, time);
mp               1467 net/bridge/br_multicast.c 	for (p = mlock_dereference(mp->ports, br);
mp               1926 net/bridge/br_multicast.c 	struct net_bridge_mdb_entry *mp;
mp               1930 net/bridge/br_multicast.c 	hlist_for_each_entry_safe(mp, tmp, &br->mdb_list, mdb_node) {
mp               1931 net/bridge/br_multicast.c 		del_timer(&mp->timer);
mp               1932 net/bridge/br_multicast.c 		rhashtable_remove_fast(&br->mdb_hash_tbl, &mp->rhnode,
mp               1934 net/bridge/br_multicast.c 		hlist_del_rcu(&mp->mdb_node);
mp               1935 net/bridge/br_multicast.c 		kfree_rcu(mp, rcu);
mp                705 net/bridge/br_private.h void br_multicast_host_join(struct net_bridge_mdb_entry *mp, bool notify);
mp                706 net/bridge/br_private.h void br_multicast_host_leave(struct net_bridge_mdb_entry *mp, bool notify);
mp                 69 net/bridge/netfilter/ebt_arp.c 		const unsigned char *mp;
mp                 75 net/bridge/netfilter/ebt_arp.c 			mp = skb_header_pointer(skb, sizeof(struct arphdr),
mp                 77 net/bridge/netfilter/ebt_arp.c 			if (mp == NULL)
mp                 80 net/bridge/netfilter/ebt_arp.c 				    !ether_addr_equal_masked(mp, info->smaddr,
mp                 86 net/bridge/netfilter/ebt_arp.c 			mp = skb_header_pointer(skb, sizeof(struct arphdr) +
mp                 89 net/bridge/netfilter/ebt_arp.c 			if (mp == NULL)
mp                 92 net/bridge/netfilter/ebt_arp.c 				    !ether_addr_equal_masked(mp, info->dmaddr,
mp               1689 net/ipv4/fib_semantics.c 	struct nlattr *mp;
mp               1691 net/ipv4/fib_semantics.c 	mp = nla_nest_start_noflag(skb, RTA_MULTIPATH);
mp               1692 net/ipv4/fib_semantics.c 	if (!mp)
mp               1713 net/ipv4/fib_semantics.c 	nla_nest_end(skb, mp);
mp               5371 net/ipv6/route.c 		struct nlattr *mp;
mp               5373 net/ipv6/route.c 		mp = nla_nest_start_noflag(skb, RTA_MULTIPATH);
mp               5374 net/ipv6/route.c 		if (!mp)
mp               5380 net/ipv6/route.c 		nla_nest_end(skb, mp);
mp               5507 net/ipv6/route.c 		struct nlattr *mp;
mp               5509 net/ipv6/route.c 		mp = nla_nest_start_noflag(skb, RTA_MULTIPATH);
mp               5510 net/ipv6/route.c 		if (!mp)
mp               5525 net/ipv6/route.c 		nla_nest_end(skb, mp);
mp               3535 net/key/af_key.c 	const struct xfrm_migrate *mp;
mp               3559 net/key/af_key.c 	for (i = 0, mp = m; i < num_bundles; i++, mp++) {
mp               3562 net/key/af_key.c 			    pfkey_sockaddr_pair_size(mp->old_family);
mp               3565 net/key/af_key.c 			    pfkey_sockaddr_pair_size(mp->new_family);
mp               3605 net/key/af_key.c 	for (i = 0, mp = m; i < num_bundles; i++, mp++) {
mp               3607 net/key/af_key.c 		int mode = pfkey_mode_from_xfrm(mp->mode);
mp               3610 net/key/af_key.c 		if (set_ipsecrequest(skb, mp->proto, mode,
mp               3611 net/key/af_key.c 				     (mp->reqid ?  IPSEC_LEVEL_UNIQUE : IPSEC_LEVEL_REQUIRE),
mp               3612 net/key/af_key.c 				     mp->reqid, mp->old_family,
mp               3613 net/key/af_key.c 				     &mp->old_saddr, &mp->old_daddr) < 0)
mp               3617 net/key/af_key.c 		if (set_ipsecrequest(skb, mp->proto, mode,
mp               3618 net/key/af_key.c 				     (mp->reqid ? IPSEC_LEVEL_UNIQUE : IPSEC_LEVEL_REQUIRE),
mp               3619 net/key/af_key.c 				     mp->reqid, mp->new_family,
mp               3620 net/key/af_key.c 				     &mp->new_saddr, &mp->new_daddr) < 0)
mp                125 net/mac80211/rc80211_minstrel.c minstrel_update_rates(struct minstrel_priv *mp, struct minstrel_sta_info *mi)
mp                137 net/mac80211/rc80211_minstrel.c 	if (mp->hw->max_rates >= 3) {
mp                142 net/mac80211/rc80211_minstrel.c 	if (mp->hw->max_rates >= 2) {
mp                149 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].count = mp->max_retry;
mp                150 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].count_cts = mp->max_retry;
mp                151 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[i].count_rts = mp->max_retry;
mp                153 net/mac80211/rc80211_minstrel.c 	rate_control_set_rates(mp->hw, mi->sta, ratetbl);
mp                188 net/mac80211/rc80211_minstrel.c minstrel_update_stats(struct minstrel_priv *mp, struct minstrel_sta_info *mi)
mp                246 net/mac80211/rc80211_minstrel.c 	if (mp->fixed_rate_idx != -1) {
mp                247 net/mac80211/rc80211_minstrel.c 		mi->max_tp_rate[0] = mp->fixed_rate_idx;
mp                248 net/mac80211/rc80211_minstrel.c 		mi->max_tp_rate[1] = mp->fixed_rate_idx;
mp                249 net/mac80211/rc80211_minstrel.c 		mi->max_prob_rate = mp->fixed_rate_idx;
mp                256 net/mac80211/rc80211_minstrel.c 	minstrel_update_rates(mp, mi);
mp                264 net/mac80211/rc80211_minstrel.c 	struct minstrel_priv *mp = priv;
mp                293 net/mac80211/rc80211_minstrel.c 				(mp->update_interval * HZ) / 1000))
mp                294 net/mac80211/rc80211_minstrel.c 		minstrel_update_stats(mp, mi);
mp                334 net/mac80211/rc80211_minstrel.c 	struct minstrel_priv *mp = priv;
mp                344 net/mac80211/rc80211_minstrel.c 	mrr_capable = mp->has_mrr &&
mp                348 net/mac80211/rc80211_minstrel.c 		sampling_ratio = mp->lookaround_rate_mrr;
mp                350 net/mac80211/rc80211_minstrel.c 		sampling_ratio = mp->lookaround_rate;
mp                356 net/mac80211/rc80211_minstrel.c 	if (mp->fixed_rate_idx != -1)
mp                361 net/mac80211/rc80211_minstrel.c 	if (mp->hw->max_rates == 1 &&
mp                480 net/mac80211/rc80211_minstrel.c 	struct minstrel_priv *mp = priv;
mp                494 net/mac80211/rc80211_minstrel.c 	rate_flags = ieee80211_chandef_rate_flags(&mp->hw->conf.chandef);
mp                503 net/mac80211/rc80211_minstrel.c 		unsigned int cw = mp->cw_min;
mp                535 net/mac80211/rc80211_minstrel.c 			cw = min((cw << 1) | 1, mp->cw_max);
mp                540 net/mac80211/rc80211_minstrel.c 			if ((tx_time_cts < mp->segment_size) &&
mp                541 net/mac80211/rc80211_minstrel.c 				(mr->retry_count_cts < mp->max_retry))
mp                543 net/mac80211/rc80211_minstrel.c 			if ((tx_time_rtscts < mp->segment_size) &&
mp                544 net/mac80211/rc80211_minstrel.c 				(mrs->retry_count_rtscts < mp->max_retry))
mp                546 net/mac80211/rc80211_minstrel.c 		} while ((tx_time < mp->segment_size) &&
mp                547 net/mac80211/rc80211_minstrel.c 				(++mr->stats.retry_count < mp->max_retry));
mp                562 net/mac80211/rc80211_minstrel.c 	minstrel_update_rates(mp, mi);
mp                240 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_rates(struct minstrel_priv *mp, struct minstrel_ht_sta *mi);
mp                302 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
mp                316 net/mac80211/rc80211_minstrel_ht.c 		for (idx = 0; idx < ARRAY_SIZE(mp->cck_rates); idx++)
mp                317 net/mac80211/rc80211_minstrel_ht.c 			if (rate->idx == mp->cck_rates[idx])
mp                602 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_rate_sample_switch(struct minstrel_priv *mp,
mp                617 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates > 1)
mp                670 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
mp                686 net/mac80211/rc80211_minstrel_ht.c 	if (!mp->sample_switch)
mp                688 net/mac80211/rc80211_minstrel_ht.c 	if (mi->total_packets_cur < SAMPLE_SWITCH_THR && mp->sample_switch != 1)
mp                692 net/mac80211/rc80211_minstrel_ht.c 		if (!ieee80211_hw_check(mp->hw, TX_STATUS_NO_AMPDU_LEN))
mp                778 net/mac80211/rc80211_minstrel_ht.c 		minstrel_ht_rate_sample_switch(mp, mi);
mp                782 net/mac80211/rc80211_minstrel_ht.c 	if (mp->fixed_rate_idx != -1) {
mp                784 net/mac80211/rc80211_minstrel_ht.c 			mi->max_tp_rate[i] = mp->fixed_rate_idx;
mp                785 net/mac80211/rc80211_minstrel_ht.c 		mi->max_prob_rate = mp->fixed_rate_idx;
mp                795 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_txstat_valid(struct minstrel_priv *mp, struct ieee80211_tx_rate *rate)
mp                807 net/mac80211/rc80211_minstrel_ht.c 	return rate->idx == mp->cck_rates[0] ||
mp                808 net/mac80211/rc80211_minstrel_ht.c 	       rate->idx == mp->cck_rates[1] ||
mp                809 net/mac80211/rc80211_minstrel_ht.c 	       rate->idx == mp->cck_rates[2] ||
mp                810 net/mac80211/rc80211_minstrel_ht.c 	       rate->idx == mp->cck_rates[3];
mp                891 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_priv *mp = priv;
mp                929 net/mac80211/rc80211_minstrel_ht.c 	last = !minstrel_ht_txstat_valid(mp, &ar[0]);
mp                932 net/mac80211/rc80211_minstrel_ht.c 		       !minstrel_ht_txstat_valid(mp, &ar[i + 1]);
mp                934 net/mac80211/rc80211_minstrel_ht.c 		rate = minstrel_ht_get_stats(mp, mi, &ar[i]);
mp                961 net/mac80211/rc80211_minstrel_ht.c 		minstrel_ht_update_stats(mp, mi, false);
mp                966 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates > 1) {
mp                989 net/mac80211/rc80211_minstrel_ht.c 				(mp->update_interval / 2 * HZ) / 1000)) {
mp                991 net/mac80211/rc80211_minstrel_ht.c 		minstrel_ht_update_stats(mp, mi, true);
mp                995 net/mac80211/rc80211_minstrel_ht.c 		minstrel_ht_update_rates(mp, mi);
mp                999 net/mac80211/rc80211_minstrel_ht.c minstrel_calc_retransmit(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
mp               1004 net/mac80211/rc80211_minstrel_ht.c 	unsigned int cw = mp->cw_min;
mp               1025 net/mac80211/rc80211_minstrel_ht.c 	cw = min((cw << 1) | 1, mp->cw_max);
mp               1027 net/mac80211/rc80211_minstrel_ht.c 	cw = min((cw << 1) | 1, mp->cw_max);
mp               1042 net/mac80211/rc80211_minstrel_ht.c 		cw = min((cw << 1) | 1, mp->cw_max);
mp               1048 net/mac80211/rc80211_minstrel_ht.c 		if (tx_time_rtscts < mp->segment_size)
mp               1050 net/mac80211/rc80211_minstrel_ht.c 	} while ((tx_time < mp->segment_size) &&
mp               1051 net/mac80211/rc80211_minstrel_ht.c 	         (++mrs->retry_count < mp->max_retry));
mp               1056 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
mp               1066 net/mac80211/rc80211_minstrel_ht.c 		minstrel_calc_retransmit(mp, mi, index);
mp               1079 net/mac80211/rc80211_minstrel_ht.c 		idx = mp->cck_rates[index % ARRAY_SIZE(mp->cck_rates)];
mp               1159 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_rates(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
mp               1173 net/mac80211/rc80211_minstrel_ht.c 	minstrel_ht_set_rate(mp, mi, rates, i++, first_rate);
mp               1175 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates >= 3) {
mp               1177 net/mac80211/rc80211_minstrel_ht.c 		minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[1]);
mp               1180 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates >= 2) {
mp               1181 net/mac80211/rc80211_minstrel_ht.c 		minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_prob_rate);
mp               1186 net/mac80211/rc80211_minstrel_ht.c 	rate_control_set_rates(mp->hw, mi->sta, rates);
mp               1190 net/mac80211/rc80211_minstrel_ht.c minstrel_get_sample_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
mp               1198 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates == 1 && mp->sample_switch &&
mp               1200 net/mac80211/rc80211_minstrel_ht.c 	     mp->sample_switch == 1))
mp               1256 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates == 1 &&
mp               1296 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_priv *mp = priv;
mp               1309 net/mac80211/rc80211_minstrel_ht.c 	if (mp->fixed_rate_idx != -1)
mp               1314 net/mac80211/rc80211_minstrel_ht.c 	if (mp->hw->max_rates == 1 &&
mp               1318 net/mac80211/rc80211_minstrel_ht.c 		sample_idx = minstrel_get_sample_rate(mp, mi);
mp               1342 net/mac80211/rc80211_minstrel_ht.c 		int idx = sample_idx % ARRAY_SIZE(mp->cck_rates);
mp               1343 net/mac80211/rc80211_minstrel_ht.c 		rate->idx = mp->cck_rates[idx];
mp               1355 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_cck(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
mp               1364 net/mac80211/rc80211_minstrel_ht.c 	if (!ieee80211_hw_check(mp->hw, SUPPORTS_HT_CCK_RATES))
mp               1370 net/mac80211/rc80211_minstrel_ht.c 		if (!rate_supported(sta, sband->band, mp->cck_rates[i]))
mp               1386 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_priv *mp = priv;
mp               1424 net/mac80211/rc80211_minstrel_ht.c 	if (mp->has_mrr) {
mp               1455 net/mac80211/rc80211_minstrel_ht.c 			minstrel_ht_update_cck(mp, mi, sband, sta);
mp               1524 net/mac80211/rc80211_minstrel_ht.c 	minstrel_ht_update_stats(mp, mi, true);
mp               1525 net/mac80211/rc80211_minstrel_ht.c 	minstrel_ht_update_rates(mp, mi);
mp               1560 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_priv *mp = priv;
mp               1561 net/mac80211/rc80211_minstrel_ht.c 	struct ieee80211_hw *hw = mp->hw;
mp               1603 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_init_cck_rates(struct minstrel_priv *mp)
mp               1607 net/mac80211/rc80211_minstrel_ht.c 	u32 rate_flags = ieee80211_chandef_rate_flags(&mp->hw->conf.chandef);
mp               1610 net/mac80211/rc80211_minstrel_ht.c 	sband = mp->hw->wiphy->bands[NL80211_BAND_2GHZ];
mp               1627 net/mac80211/rc80211_minstrel_ht.c 			mp->cck_rates[j] = i;
mp               1636 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_priv *mp;
mp               1638 net/mac80211/rc80211_minstrel_ht.c 	mp = kzalloc(sizeof(struct minstrel_priv), GFP_ATOMIC);
mp               1639 net/mac80211/rc80211_minstrel_ht.c 	if (!mp)
mp               1642 net/mac80211/rc80211_minstrel_ht.c 	mp->sample_switch = -1;
mp               1647 net/mac80211/rc80211_minstrel_ht.c 	mp->cw_min = 15;
mp               1648 net/mac80211/rc80211_minstrel_ht.c 	mp->cw_max = 1023;
mp               1653 net/mac80211/rc80211_minstrel_ht.c 	mp->lookaround_rate = 5;
mp               1654 net/mac80211/rc80211_minstrel_ht.c 	mp->lookaround_rate_mrr = 10;
mp               1657 net/mac80211/rc80211_minstrel_ht.c 	mp->segment_size = 6000;
mp               1660 net/mac80211/rc80211_minstrel_ht.c 		mp->max_retry = hw->max_rate_tries;
mp               1663 net/mac80211/rc80211_minstrel_ht.c 		mp->max_retry = 7;
mp               1666 net/mac80211/rc80211_minstrel_ht.c 		mp->has_mrr = true;
mp               1668 net/mac80211/rc80211_minstrel_ht.c 	mp->hw = hw;
mp               1669 net/mac80211/rc80211_minstrel_ht.c 	mp->update_interval = 100;
mp               1671 net/mac80211/rc80211_minstrel_ht.c 	minstrel_ht_init_cck_rates(mp);
mp               1673 net/mac80211/rc80211_minstrel_ht.c 	return mp;
mp               1680 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_priv *mp = priv;
mp               1682 net/mac80211/rc80211_minstrel_ht.c 	mp->fixed_rate_idx = (u32) -1;
mp               1684 net/mac80211/rc80211_minstrel_ht.c 			   &mp->fixed_rate_idx);
mp               1686 net/mac80211/rc80211_minstrel_ht.c 			   &mp->sample_switch);
mp               2016 net/mpls/af_mpls.c 		struct nlattr *mp;
mp               2020 net/mpls/af_mpls.c 		mp = nla_nest_start_noflag(skb, RTA_MULTIPATH);
mp               2021 net/mpls/af_mpls.c 		if (!mp)
mp               2062 net/mpls/af_mpls.c 		nla_nest_end(skb, mp);
mp               4317 net/xfrm/xfrm_policy.c 	struct xfrm_migrate *mp;
mp               4328 net/xfrm/xfrm_policy.c 		for (j = 0, mp = m; j < num_migrate; j++, mp++) {
mp               4329 net/xfrm/xfrm_policy.c 			if (!migrate_tmpl_match(mp, &pol->xfrm_vec[i]))
mp               4336 net/xfrm/xfrm_policy.c 			memcpy(&pol->xfrm_vec[i].id.daddr, &mp->new_daddr,
mp               4338 net/xfrm/xfrm_policy.c 			memcpy(&pol->xfrm_vec[i].saddr, &mp->new_saddr,
mp               4340 net/xfrm/xfrm_policy.c 			pol->xfrm_vec[i].encap_family = mp->new_family;
mp               4393 net/xfrm/xfrm_policy.c 	struct xfrm_migrate *mp;
mp               4411 net/xfrm/xfrm_policy.c 	for (i = 0, mp = m; i < num_migrate; i++, mp++) {
mp               4412 net/xfrm/xfrm_policy.c 		if ((x = xfrm_migrate_state_find(mp, net))) {
mp               4415 net/xfrm/xfrm_policy.c 			xc = xfrm_state_migrate(x, mp, encap);
mp               2458 net/xfrm/xfrm_user.c 	const struct xfrm_migrate *mp;
mp               2486 net/xfrm/xfrm_user.c 	for (i = 0, mp = m ; i < num_migrate; i++, mp++) {
mp               2487 net/xfrm/xfrm_user.c 		err = copy_to_user_migrate(mp, skb);
mp                132 scripts/dtc/data.c 	struct marker **mp = &d.markers;
mp                135 scripts/dtc/data.c 	while (*mp)
mp                136 scripts/dtc/data.c 		mp = &((*mp)->next);
mp                137 scripts/dtc/data.c 	*mp = m;
mp                612 security/security.c static int lsm_msg_msg_alloc(struct msg_msg *mp)
mp                615 security/security.c 		mp->security = NULL;
mp                619 security/security.c 	mp->security = kzalloc(blob_sizes.lbs_msg_msg, GFP_KERNEL);
mp                620 security/security.c 	if (mp->security == NULL)
mp                 67 tools/perf/util/auxtrace.c 			struct auxtrace_mmap_params *mp,
mp                 75 tools/perf/util/auxtrace.c 	mm->mask = mp->mask;
mp                 76 tools/perf/util/auxtrace.c 	mm->len = mp->len;
mp                 78 tools/perf/util/auxtrace.c 	mm->idx = mp->idx;
mp                 79 tools/perf/util/auxtrace.c 	mm->tid = mp->tid;
mp                 80 tools/perf/util/auxtrace.c 	mm->cpu = mp->cpu;
mp                 82 tools/perf/util/auxtrace.c 	if (!mp->len) {
mp                 92 tools/perf/util/auxtrace.c 	pc->aux_offset = mp->offset;
mp                 93 tools/perf/util/auxtrace.c 	pc->aux_size = mp->len;
mp                 95 tools/perf/util/auxtrace.c 	mm->base = mmap(NULL, mp->len, mp->prot, MAP_SHARED, fd, mp->offset);
mp                113 tools/perf/util/auxtrace.c void auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp,
mp                119 tools/perf/util/auxtrace.c 		mp->offset = auxtrace_offset;
mp                120 tools/perf/util/auxtrace.c 		mp->len = auxtrace_pages * (size_t)page_size;
mp                121 tools/perf/util/auxtrace.c 		mp->mask = is_power_of_2(mp->len) ? mp->len - 1 : 0;
mp                122 tools/perf/util/auxtrace.c 		mp->prot = PROT_READ | (auxtrace_overwrite ? 0 : PROT_WRITE);
mp                123 tools/perf/util/auxtrace.c 		pr_debug2("AUX area mmap length %zu\n", mp->len);
mp                125 tools/perf/util/auxtrace.c 		mp->len = 0;
mp                129 tools/perf/util/auxtrace.c void auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp,
mp                133 tools/perf/util/auxtrace.c 	mp->idx = idx;
mp                136 tools/perf/util/auxtrace.c 		mp->cpu = evlist->core.cpus->map[idx];
mp                138 tools/perf/util/auxtrace.c 			mp->tid = perf_thread_map__pid(evlist->core.threads, 0);
mp                140 tools/perf/util/auxtrace.c 			mp->tid = -1;
mp                142 tools/perf/util/auxtrace.c 		mp->cpu = -1;
mp                143 tools/perf/util/auxtrace.c 		mp->tid = perf_thread_map__pid(evlist->core.threads, idx);
mp                436 tools/perf/util/auxtrace.h 			struct auxtrace_mmap_params *mp,
mp                439 tools/perf/util/auxtrace.h void auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp,
mp                443 tools/perf/util/auxtrace.h void auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp,
mp                709 tools/perf/util/auxtrace.h 			struct auxtrace_mmap_params *mp,
mp                712 tools/perf/util/auxtrace.h void auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp,
mp                716 tools/perf/util/auxtrace.h void auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp,
mp                634 tools/perf/util/evlist.c 				       struct mmap_params *mp, int cpu_idx,
mp                647 tools/perf/util/evlist.c 		mp->prot = PROT_READ | PROT_WRITE;
mp                660 tools/perf/util/evlist.c 			mp->prot &= ~PROT_WRITE;
mp                675 tools/perf/util/evlist.c 			if (perf_mmap__mmap(&maps[idx], mp, *output, evlist_cpu) < 0)
mp                712 tools/perf/util/evlist.c 				     struct mmap_params *mp)
mp                723 tools/perf/util/evlist.c 		auxtrace_mmap_params__set_idx(&mp->auxtrace_mp, evlist, cpu,
mp                727 tools/perf/util/evlist.c 			if (evlist__mmap_per_evsel(evlist, cpu, mp, cpu,
mp                741 tools/perf/util/evlist.c 					struct mmap_params *mp)
mp                751 tools/perf/util/evlist.c 		auxtrace_mmap_params__set_idx(&mp->auxtrace_mp, evlist, thread,
mp                754 tools/perf/util/evlist.c 		if (evlist__mmap_per_evsel(evlist, thread, mp, 0, thread,
mp                901 tools/perf/util/evlist.c 	struct mmap_params mp = { .nr_cblocks = nr_cblocks, .affinity = affinity, .flush = flush,
mp                914 tools/perf/util/evlist.c 	mp.mask = evlist->core.mmap_len - page_size - 1;
mp                916 tools/perf/util/evlist.c 	auxtrace_mmap_params__init(&mp.auxtrace_mp, evlist->core.mmap_len,
mp                927 tools/perf/util/evlist.c 		return evlist__mmap_per_thread(evlist, &mp);
mp                929 tools/perf/util/evlist.c 	return evlist__mmap_per_cpu(evlist, &mp);
mp                139 tools/perf/util/mmap.c 			       struct auxtrace_mmap_params *mp __maybe_unused,
mp                150 tools/perf/util/mmap.c void __weak auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp __maybe_unused,
mp                157 tools/perf/util/mmap.c void __weak auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp __maybe_unused,
mp                232 tools/perf/util/mmap.c static int perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp)
mp                236 tools/perf/util/mmap.c 	map->aio.nr_cblocks = mp->nr_cblocks;
mp                260 tools/perf/util/mmap.c 			ret = perf_mmap__aio_bind(map, i, map->core.cpu, mp->affinity);
mp                304 tools/perf/util/mmap.c 			       struct mmap_params *mp __maybe_unused)
mp                347 tools/perf/util/mmap.c static void perf_mmap__setup_affinity_mask(struct mmap *map, struct mmap_params *mp)
mp                350 tools/perf/util/mmap.c 	if (mp->affinity == PERF_AFFINITY_NODE && cpu__max_node() > 1)
mp                352 tools/perf/util/mmap.c 	else if (mp->affinity == PERF_AFFINITY_CPU)
mp                356 tools/perf/util/mmap.c int perf_mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu)
mp                373 tools/perf/util/mmap.c 	map->core.mask = mp->mask;
mp                374 tools/perf/util/mmap.c 	map->core.base = mmap(NULL, perf_mmap__mmap_len(map), mp->prot,
mp                385 tools/perf/util/mmap.c 	perf_mmap__setup_affinity_mask(map, mp);
mp                387 tools/perf/util/mmap.c 	map->core.flush = mp->flush;
mp                389 tools/perf/util/mmap.c 	map->comp_level = mp->comp_level;
mp                403 tools/perf/util/mmap.c 				&mp->auxtrace_mp, map->core.base, fd))
mp                406 tools/perf/util/mmap.c 	return perf_mmap__aio_mmap(map, mp);
mp                 44 tools/perf/util/mmap.h int perf_mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu);
mp                950 tools/perf/util/sort.c 	unsigned char mp, p;
mp                955 tools/perf/util/sort.c 	mp = left->branch_info->flags.mispred != right->branch_info->flags.mispred;
mp                957 tools/perf/util/sort.c 	return mp || p;
mp                626 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp                666 tools/power/x86/turbostat/turbostat.c 	for (mp = sys.tp; mp; mp = mp->next) {
mp                668 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW) {
mp                669 tools/power/x86/turbostat/turbostat.c 			if (mp->width == 64)
mp                670 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%18.18s", (printed++ ? delim : ""), mp->name);
mp                672 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%10.10s", (printed++ ? delim : ""), mp->name);
mp                674 tools/power/x86/turbostat/turbostat.c 			if ((mp->type == COUNTER_ITEMS) && sums_need_wide_columns)
mp                675 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%8s", (printed++ ? delim : ""), mp->name);
mp                677 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%s", (printed++ ? delim : ""), mp->name);
mp                704 tools/power/x86/turbostat/turbostat.c 	for (mp = sys.cp; mp; mp = mp->next) {
mp                705 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW) {
mp                706 tools/power/x86/turbostat/turbostat.c 			if (mp->width == 64)
mp                707 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%18.18s", delim, mp->name);
mp                709 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%10.10s", delim, mp->name);
mp                711 tools/power/x86/turbostat/turbostat.c 			if ((mp->type == COUNTER_ITEMS) && sums_need_wide_columns)
mp                712 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%8s", delim, mp->name);
mp                714 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%s", delim, mp->name);
mp                782 tools/power/x86/turbostat/turbostat.c 	for (mp = sys.pp; mp; mp = mp->next) {
mp                783 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW) {
mp                784 tools/power/x86/turbostat/turbostat.c 			if (mp->width == 64)
mp                785 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%18.18s", delim, mp->name);
mp                787 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%10.10s", delim, mp->name);
mp                789 tools/power/x86/turbostat/turbostat.c 			if ((mp->type == COUNTER_ITEMS) && sums_need_wide_columns)
mp                790 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%8s", delim, mp->name);
mp                792 tools/power/x86/turbostat/turbostat.c 				outp += sprintf(outp, "%s%s", delim, mp->name);
mp                803 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp                820 tools/power/x86/turbostat/turbostat.c 		for (i = 0, mp = sys.tp; mp; i++, mp = mp->next) {
mp                822 tools/power/x86/turbostat/turbostat.c 				i, mp->msr_num, t->counter[i]);
mp                834 tools/power/x86/turbostat/turbostat.c 		for (i = 0, mp = sys.cp; mp; i++, mp = mp->next) {
mp                836 tools/power/x86/turbostat/turbostat.c 				i, mp->msr_num, c->counter[i]);
mp                871 tools/power/x86/turbostat/turbostat.c 		for (i = 0, mp = sys.pp; mp; i++, mp = mp->next) {
mp                873 tools/power/x86/turbostat/turbostat.c 				i, mp->msr_num, p->counter[i]);
mp                891 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1007 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.tp; mp; i++, mp = mp->next) {
mp               1008 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW) {
mp               1009 tools/power/x86/turbostat/turbostat.c 			if (mp->width == 32)
mp               1013 tools/power/x86/turbostat/turbostat.c 		} else if (mp->format == FORMAT_DELTA) {
mp               1014 tools/power/x86/turbostat/turbostat.c 			if ((mp->type == COUNTER_ITEMS) && sums_need_wide_columns)
mp               1018 tools/power/x86/turbostat/turbostat.c 		} else if (mp->format == FORMAT_PERCENT) {
mp               1019 tools/power/x86/turbostat/turbostat.c 			if (mp->type == COUNTER_USEC)
mp               1049 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.cp; mp; i++, mp = mp->next) {
mp               1050 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW) {
mp               1051 tools/power/x86/turbostat/turbostat.c 			if (mp->width == 32)
mp               1055 tools/power/x86/turbostat/turbostat.c 		} else if (mp->format == FORMAT_DELTA) {
mp               1056 tools/power/x86/turbostat/turbostat.c 			if ((mp->type == COUNTER_ITEMS) && sums_need_wide_columns)
mp               1060 tools/power/x86/turbostat/turbostat.c 		} else if (mp->format == FORMAT_PERCENT) {
mp               1152 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.pp; mp; i++, mp = mp->next) {
mp               1153 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW) {
mp               1154 tools/power/x86/turbostat/turbostat.c 			if (mp->width == 32)
mp               1158 tools/power/x86/turbostat/turbostat.c 		} else if (mp->format == FORMAT_DELTA) {
mp               1159 tools/power/x86/turbostat/turbostat.c 			if ((mp->type == COUNTER_ITEMS) && sums_need_wide_columns)
mp               1163 tools/power/x86/turbostat/turbostat.c 		} else if (mp->format == FORMAT_PERCENT) {
mp               1223 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1264 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.pp; mp; i++, mp = mp->next) {
mp               1265 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1278 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1288 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.cp; mp; i++, mp = mp->next) {
mp               1289 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1312 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1383 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.tp; mp; i++, mp = mp->next) {
mp               1384 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1417 tools/power/x86/turbostat/turbostat.c 	struct msr_counter  *mp;
mp               1472 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.tp; mp; i++, mp = mp->next)
mp               1475 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.cp; mp; i++, mp = mp->next)
mp               1478 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.pp; mp; i++, mp = mp->next)
mp               1485 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1508 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.tp; mp; i++, mp = mp->next) {
mp               1509 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1527 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.cp; mp; i++, mp = mp->next) {
mp               1528 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1573 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.pp; mp; i++, mp = mp->next) {
mp               1574 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1588 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1631 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.tp; mp; i++, mp = mp->next) {
mp               1632 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1634 tools/power/x86/turbostat/turbostat.c 		if (mp->type == COUNTER_ITEMS) {
mp               1641 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.cp; mp; i++, mp = mp->next) {
mp               1642 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1644 tools/power/x86/turbostat/turbostat.c 		if (mp->type == COUNTER_ITEMS) {
mp               1650 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.pp; mp; i++, mp = mp->next) {
mp               1651 tools/power/x86/turbostat/turbostat.c 		if (mp->format == FORMAT_RAW)
mp               1653 tools/power/x86/turbostat/turbostat.c 		if (mp->type == COUNTER_ITEMS) {
mp               1703 tools/power/x86/turbostat/turbostat.c int get_mp(int cpu, struct msr_counter *mp, unsigned long long *counterp)
mp               1705 tools/power/x86/turbostat/turbostat.c 	if (mp->msr_num != 0) {
mp               1706 tools/power/x86/turbostat/turbostat.c 		if (get_msr(cpu, mp->msr_num, counterp))
mp               1711 tools/power/x86/turbostat/turbostat.c 		if (mp->flags & SYSFS_PERCPU) {
mp               1713 tools/power/x86/turbostat/turbostat.c 				 cpu, mp->path);
mp               1717 tools/power/x86/turbostat/turbostat.c 			*counterp = snapshot_sysfs_counter(mp->path);
mp               1783 tools/power/x86/turbostat/turbostat.c 	struct msr_counter *mp;
mp               1867 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.tp; mp; i++, mp = mp->next) {
mp               1868 tools/power/x86/turbostat/turbostat.c 		if (get_mp(cpu, mp, &t->counter[i]))
mp               1909 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.cp; mp; i++, mp = mp->next) {
mp               1910 tools/power/x86/turbostat/turbostat.c 		if (get_mp(cpu, mp, &c->counter[i]))
mp               2015 tools/power/x86/turbostat/turbostat.c 	for (i = 0, mp = sys.pp; mp; i++, mp = mp->next) {
mp               2016 tools/power/x86/turbostat/turbostat.c 		if (get_mp(cpu, mp, &p->counter[i]))