Searched refs:fsg_lun (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/usb/gadget/function/ |
H A D | storage_common.h | 98 struct fsg_lun { struct 125 static inline bool fsg_lun_is_open(struct fsg_lun *curlun) in fsg_lun_is_open() argument 175 static inline struct fsg_lun *fsg_lun_from_dev(struct device *dev) in fsg_lun_from_dev() 177 return container_of(dev, struct fsg_lun, dev); in fsg_lun_from_dev() 200 void fsg_lun_close(struct fsg_lun *curlun); 201 int fsg_lun_open(struct fsg_lun *curlun, const char *filename); 202 int fsg_lun_fsync_sub(struct fsg_lun *curlun); 204 ssize_t fsg_show_ro(struct fsg_lun *curlun, char *buf); 205 ssize_t fsg_show_nofua(struct fsg_lun *curlun, char *buf); 206 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, [all …]
|
H A D | storage_common.c | 169 void fsg_lun_close(struct fsg_lun *curlun) in fsg_lun_close() 179 int fsg_lun_open(struct fsg_lun *curlun, const char *filename) in fsg_lun_open() 285 int fsg_lun_fsync_sub(struct fsg_lun *curlun) in fsg_lun_fsync_sub() 319 ssize_t fsg_show_ro(struct fsg_lun *curlun, char *buf) in fsg_show_ro() 327 ssize_t fsg_show_nofua(struct fsg_lun *curlun, char *buf) in fsg_show_nofua() 333 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file() 359 ssize_t fsg_show_cdrom(struct fsg_lun *curlun, char *buf) in fsg_show_cdrom() 365 ssize_t fsg_show_removable(struct fsg_lun *curlun, char *buf) in fsg_show_removable() 371 ssize_t fsg_show_inquiry_string(struct fsg_lun *curlun, char *buf) in fsg_show_inquiry_string() 380 static ssize_t _fsg_store_ro(struct fsg_lun *curlun, bool ro) in _fsg_store_ro() [all …]
|
H A D | f_mass_storage.c | 260 struct fsg_lun *luns[FSG_MAX_LUNS]; 261 struct fsg_lun *curlun; 608 struct fsg_lun *curlun = common->curlun; in do_read() 739 struct fsg_lun *curlun = common->curlun; in do_write() 928 struct fsg_lun *curlun = common->curlun; in do_synchronize_cache() 942 static void invalidate_sub(struct fsg_lun *curlun) in invalidate_sub() 954 struct fsg_lun *curlun = common->curlun; in do_verify() 1055 struct fsg_lun *curlun = common->curlun; in do_inquiry() 1085 struct fsg_lun *curlun = common->curlun; in do_request_sense() 1138 struct fsg_lun *curlun = common->curlun; in do_read_capacity() [all …]
|
H A D | f_mass_storage.h | 66 struct fsg_lun *lun; 127 void fsg_common_remove_lun(struct fsg_lun *lun);
|