Lines Matching refs:file
716 static ssize_t sec_debug_read(struct file *filp, char __user *buf,
719 struct sec_debug_file *file = filp->private_data;
721 struct hisi_qm *qm = file->qm;
729 spin_lock_irq(&file->lock);
731 switch (file->index) {
739 spin_unlock_irq(&file->lock);
746 spin_unlock_irq(&file->lock);
751 static ssize_t sec_debug_write(struct file *filp, const char __user *buf,
754 struct sec_debug_file *file = filp->private_data;
756 struct hisi_qm *qm = file->qm;
779 spin_lock_irq(&file->lock);
781 switch (file->index) {
795 spin_unlock_irq(&file->lock);