Lines Matching refs:FF_FS_LOCK
192 #if FF_FS_LOCK
194 #error FF_FS_LOCK must be 0 at read-only configuration
383 #if FF_FS_LOCK != 0
384 static FILESEM Files[FF_FS_LOCK]; /* Open object lock semaphores */
763 #if FF_FS_LOCK
777 for (i = 0; i < FF_FS_LOCK; i++) { in chk_share()
786 if (i == FF_FS_LOCK) { /* The object has not been opened */ in chk_share()
799 for (i = 0; i < FF_FS_LOCK && Files[i].fs; i++) ; /* Find a free entry */ in enq_share()
800 return (i == FF_FS_LOCK) ? 0 : 1; in enq_share()
812 for (i = 0; i < FF_FS_LOCK; i++) { /* Find the object */ in inc_share()
818 if (i == FF_FS_LOCK) { /* Not opened. Register it as new. */ in inc_share()
819 for (i = 0; i < FF_FS_LOCK && Files[i].fs; i++) ; /* Find a free entry */ in inc_share()
820 if (i == FF_FS_LOCK) return 0; /* No free entry to register (int err) */ in inc_share()
843 if (--i < FF_FS_LOCK) { /* Index number origin from 0 */ in dec_share()
865 for (i = 0; i < FF_FS_LOCK; i++) { in clear_share()
875 for (i = 0; i < FF_FS_LOCK; i++) { in empty_lock()
885 #if FF_FS_LOCK != 0 in f_checkopenlock()
2958 #if FF_FS_LOCK /* Clear file lock semaphores */ in mount_volume()
3076 #if FF_FS_LOCK in f_mount()
3330 #if FF_FS_LOCK in f_open()
3340 #if FF_FS_LOCK in f_open()
3417 #if FF_FS_LOCK in f_open()
3452 #if FF_FS_LOCK != 0 in f_open()
3517 #if FF_FS_LOCK in f_open()
3872 #if FF_FS_LOCK in f_close()
4241 #if FF_FS_LOCK in f_opendir()
4278 #if FF_FS_LOCK in f_closedir()
4692 #if FF_FS_LOCK in f_unlink()
4926 #if FF_FS_LOCK