Lines Matching refs:filesem
265 struct rw_semaphore filesem; member
1362 up_read(&common->filesem); in do_start_stop()
1363 down_write(&common->filesem); in do_start_stop()
1365 up_write(&common->filesem); in do_start_stop()
1366 down_read(&common->filesem); in do_start_stop()
1848 down_read(&common->filesem); /* We're using the backing file */ in do_scsi_command()
2087 up_read(&common->filesem); in do_scsi_command()
2567 down_write(&common->filesem); in fsg_main_thread()
2576 up_write(&common->filesem); in fsg_main_thread()
2605 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_show() local
2607 return fsg_show_file(curlun, filesem, buf); in file_show()
2614 struct rw_semaphore *filesem = dev_get_drvdata(dev); in ro_store() local
2616 return fsg_store_ro(curlun, filesem, buf, count); in ro_store()
2631 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_store() local
2633 return fsg_store_file(curlun, filesem, buf, count); in file_store()
2682 init_rwsem(&common->filesem); in fsg_common_setup()
2890 dev_set_drvdata(&lun->dev, &common->filesem); in fsg_common_create_lun()
3156 return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); in fsg_lun_opts_file_show()
3166 return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_file_store()
3185 return fsg_store_ro(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_ro_store()
3221 return fsg_store_cdrom(opts->lun, &fsg_opts->common->filesem, page, in fsg_lun_opts_cdrom_store()