Searched refs:filesem (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/usb/gadget/function/ |
D | storage_common.c | 333 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 …]
|
D | storage_common.h | 206 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,
|
D | f_mass_storage.c | 242 struct rw_semaphore filesem; member 1388 up_read(&common->filesem); in do_start_stop() 1389 down_write(&common->filesem); in do_start_stop() 1391 up_write(&common->filesem); in do_start_stop() 1392 down_read(&common->filesem); in do_start_stop() 1866 down_read(&common->filesem); /* We're using the backing file */ in do_scsi_command() 2145 up_read(&common->filesem); in do_scsi_command() 2589 down_write(&common->filesem); in fsg_main_thread() 2596 up_write(&common->filesem); in fsg_main_thread() 2624 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_show() local [all …]
|