Lines Matching refs:file

97 						struct file *file)  in mei_amthif_find_read_list_entry()  argument
102 if (cb->file_object == file) in mei_amthif_find_read_list_entry()
124 int mei_amthif_read(struct mei_device *dev, struct file *file, in mei_amthif_read() argument
127 struct mei_cl *cl = file->private_data; in mei_amthif_read()
140 cb = mei_amthif_find_read_list_entry(dev, file); in mei_amthif_read()
143 if (cb == NULL && file->f_flags & O_NONBLOCK) in mei_amthif_read()
153 (cb = mei_amthif_find_read_list_entry(dev, file))); in mei_amthif_read()
232 static int mei_amthif_read_start(struct mei_cl *cl, struct file *file) in mei_amthif_read_start() argument
238 cb = mei_io_cb_init(cl, MEI_FOP_READ, file); in mei_amthif_read_start()
359 struct file *file, poll_table *wait) in mei_amthif_poll() argument
363 poll_wait(file, &dev->iamthif_cl.wait, wait); in mei_amthif_poll()
366 dev->iamthif_file_object == file) { in mei_amthif_poll()
493 const struct file *file, struct list_head *mei_cb_list) in mei_clear_list() argument
502 if (file == cb->file_object) { in mei_clear_list()
528 static bool mei_clear_lists(struct mei_device *dev, struct file *file) in mei_clear_lists() argument
533 mei_clear_list(dev, file, &dev->amthif_cmd_list.list); in mei_clear_lists()
534 if (mei_clear_list(dev, file, &dev->amthif_rd_complete_list.list)) in mei_clear_lists()
537 mei_clear_list(dev, file, &dev->ctrl_rd_list.list); in mei_clear_lists()
539 if (mei_clear_list(dev, file, &dev->ctrl_wr_list.list)) in mei_clear_lists()
542 if (mei_clear_list(dev, file, &dev->write_waiting_list.list)) in mei_clear_lists()
545 if (mei_clear_list(dev, file, &dev->write_list.list)) in mei_clear_lists()
551 if (dev->iamthif_current_cb->file_object == file) { in mei_clear_lists()
569 int mei_amthif_release(struct mei_device *dev, struct file *file) in mei_amthif_release() argument
574 if (dev->iamthif_file_object == file && in mei_amthif_release()
586 if (mei_clear_lists(dev, file)) in mei_amthif_release()