Lines Matching refs:rc
16 int rc; in fcb_getnext_in_sector() local
18 rc = fcb_elem_info(fcb, loc); in fcb_getnext_in_sector()
19 if (rc == 0 || rc == -EBADMSG) { in fcb_getnext_in_sector()
24 rc = fcb_elem_info(fcb, loc); in fcb_getnext_in_sector()
25 if (rc != -EBADMSG) { in fcb_getnext_in_sector()
28 } while (rc == -EBADMSG); in fcb_getnext_in_sector()
30 return rc; in fcb_getnext_in_sector()
46 int rc; in fcb_getnext_nolock() local
59 rc = fcb_elem_info(fcb, loc); in fcb_getnext_nolock()
60 switch (rc) { in fcb_getnext_nolock()
69 rc = fcb_getnext_in_sector(fcb, loc); in fcb_getnext_nolock()
70 if (rc == 0) { in fcb_getnext_nolock()
73 if (rc == -ENOTSUP) { in fcb_getnext_nolock()
77 while (rc == -EBADMSG) { in fcb_getnext_nolock()
78 rc = fcb_getnext_in_sector(fcb, loc); in fcb_getnext_nolock()
79 if (rc == 0) { in fcb_getnext_nolock()
83 if (rc != -EBADMSG) { in fcb_getnext_nolock()
93 rc = fcb_elem_info(fcb, loc); in fcb_getnext_nolock()
94 switch (rc) { in fcb_getnext_nolock()
111 int rc; in fcb_getnext() local
113 rc = k_mutex_lock(&fcb->f_mtx, K_FOREVER); in fcb_getnext()
114 if (rc) { in fcb_getnext()
117 rc = fcb_getnext_nolock(fcb, loc); in fcb_getnext()
120 return rc; in fcb_getnext()