Home
last modified time | relevance | path

Searched refs:filesem (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/usb/gadget/function/
H A Dstorage_common.c333 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file() argument
339 down_read(filesem); in fsg_show_file()
354 up_read(filesem); in fsg_show_file()
394 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_ro() argument
408 down_read(filesem); in fsg_store_ro()
412 up_read(filesem); in fsg_store_ro()
437 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_file() argument
452 down_write(filesem); in fsg_store_file()
463 up_write(filesem); in fsg_store_file()
468 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_cdrom() argument
[all …]
H A Dstorage_common.h206 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem,
211 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem,
214 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem,
216 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem,
222 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem,
H A Df_mass_storage.c242 struct rw_semaphore filesem; member
1404 up_read(&common->filesem); in do_start_stop()
1405 down_write(&common->filesem); in do_start_stop()
1407 up_write(&common->filesem); in do_start_stop()
1408 down_read(&common->filesem); in do_start_stop()
1882 down_read(&common->filesem); /* We're using the backing file */ in do_scsi_command()
2161 up_read(&common->filesem); in do_scsi_command()
2605 down_write(&common->filesem); in fsg_main_thread()
2612 up_write(&common->filesem); in fsg_main_thread()
2640 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_show() local
[all …]