Lines Matching refs:mfi

56 	struct mtd_file_info *mfi = file->private_data;  in mtd_lseek()  local
57 struct mtd_info *mtd = mfi->mtd; in mtd_lseek()
86 struct mtd_file_info *mfi; in mtd_open() local
131 mfi = kzalloc(sizeof(*mfi), GFP_KERNEL); in mtd_open()
132 if (!mfi) { in mtd_open()
138 mfi->ino = mtd_ino; in mtd_open()
139 mfi->mtd = mtd; in mtd_open()
140 file->private_data = mfi; in mtd_open()
151 struct mtd_file_info *mfi = file->private_data; in mtd_close() local
152 struct mtd_info *mtd = mfi->mtd; in mtd_close()
160 iput(mfi->ino); in mtd_close()
164 kfree(mfi); in mtd_close()
176 struct mtd_file_info *mfi = file->private_data; in mtd_read() local
177 struct mtd_info *mtd = mfi->mtd; in mtd_read()
210 switch (mfi->mode) { in mtd_read()
269 struct mtd_file_info *mfi = file->private_data; in mtd_write() local
270 struct mtd_info *mtd = mfi->mtd; in mtd_write()
308 switch (mfi->mode) { in mtd_write()
364 static int otp_select_filemode(struct mtd_file_info *mfi, int mode) in otp_select_filemode() argument
366 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode()
374 mfi->mode = MTD_MODE_OTP_FACTORY; in otp_select_filemode()
380 mfi->mode = MTD_MODE_OTP_USER; in otp_select_filemode()
556 struct mtd_file_info *mfi = file->private_data; in mtd_ioctl() local
557 struct mtd_info *mtd = mfi->mtd; in mtd_ioctl()
837 mfi->mode = MTD_MODE_NORMAL; in mtd_ioctl()
839 ret = otp_select_filemode(mfi, mode); in mtd_ioctl()
852 switch (mfi->mode) { in mtd_ioctl()
881 if (mfi->mode != MTD_MODE_OTP_USER) in mtd_ioctl()
922 mfi->mode = 0; in mtd_ioctl()
927 ret = otp_select_filemode(mfi, arg); in mtd_ioctl()
933 mfi->mode = arg; in mtd_ioctl()
992 struct mtd_file_info *mfi = file->private_data; in mtd_compat_ioctl() local
993 struct mtd_info *mtd = mfi->mtd; in mtd_compat_ioctl()
1051 struct mtd_file_info *mfi = file->private_data; in mtd_get_unmapped_area() local
1052 struct mtd_info *mtd = mfi->mtd; in mtd_get_unmapped_area()
1081 struct mtd_file_info *mfi = file->private_data; in mtd_mmap() local
1082 struct mtd_info *mtd = mfi->mtd; in mtd_mmap()