Home
last modified time | relevance | path

Searched refs:cfile (Results 1 – 2 of 2) sorted by relevance

/drivers/misc/genwqe/
Dcard_dev.c51 static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_add_file() argument
55 cfile->owner = current; in genwqe_add_file()
57 list_add(&cfile->list, &cd->file_list); in genwqe_add_file()
61 static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_del_file() argument
66 list_del(&cfile->list); in genwqe_del_file()
72 static void genwqe_add_pin(struct genwqe_file *cfile, struct dma_mapping *m) in genwqe_add_pin() argument
76 spin_lock_irqsave(&cfile->pin_lock, flags); in genwqe_add_pin()
77 list_add(&m->pin_list, &cfile->pin_list); in genwqe_add_pin()
78 spin_unlock_irqrestore(&cfile->pin_lock, flags); in genwqe_add_pin()
81 static int genwqe_del_pin(struct genwqe_file *cfile, struct dma_mapping *m) in genwqe_del_pin() argument
[all …]
/drivers/mtd/nand/
Dnandsim.c364 struct file *cfile; /* Open file */ member
571 struct file *cfile; in alloc_device() local
575 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in alloc_device()
576 if (IS_ERR(cfile)) in alloc_device()
577 return PTR_ERR(cfile); in alloc_device()
578 if (!(cfile->f_mode & FMODE_CAN_READ)) { in alloc_device()
583 if (!(cfile->f_mode & FMODE_CAN_WRITE)) { in alloc_device()
601 ns->cfile = cfile; in alloc_device()
625 filp_close(cfile, NULL); in alloc_device()
636 if (ns->cfile) { in free_device()
[all …]