Lines Matching refs:owned_head
209 z_erofs_next_pcluster_t owned_head; member
227 .owned_head = Z_EROFS_PCLUSTER_TAIL, \
398 z_erofs_next_pcluster_t *owned_head) in try_to_claim_pcluster() argument
405 *owned_head) != Z_EROFS_PCLUSTER_NIL) in try_to_claim_pcluster()
408 *owned_head = &pcl->next; in try_to_claim_pcluster()
418 *owned_head) != Z_EROFS_PCLUSTER_TAIL) in try_to_claim_pcluster()
420 *owned_head = Z_EROFS_PCLUSTER_TAIL; in try_to_claim_pcluster()
435 if (clt->owned_head == &pcl->next || pcl == clt->tailpcl) { in z_erofs_lookup_collection()
466 if (clt->owned_head == Z_EROFS_PCLUSTER_TAIL) in z_erofs_lookup_collection()
468 clt->mode = try_to_claim_pcluster(pcl, &clt->owned_head); in z_erofs_lookup_collection()
470 if (clt->owned_head == Z_EROFS_PCLUSTER_TAIL) in z_erofs_lookup_collection()
503 pcl->next = clt->owned_head; in z_erofs_register_collection()
528 if (clt->owned_head == Z_EROFS_PCLUSTER_TAIL) in z_erofs_register_collection()
530 clt->owned_head = &pcl->next; in z_erofs_register_collection()
551 DBG_BUGON(clt->owned_head == Z_EROFS_PCLUSTER_NIL); in z_erofs_collector_begin()
552 DBG_BUGON(clt->owned_head == Z_EROFS_PCLUSTER_TAIL_CLOSED); in z_erofs_collector_begin()
1245 z_erofs_next_pcluster_t owned_head) in move_to_bypass_jobqueue() argument
1250 DBG_BUGON(owned_head == Z_EROFS_PCLUSTER_TAIL_CLOSED); in move_to_bypass_jobqueue()
1251 if (owned_head == Z_EROFS_PCLUSTER_TAIL) in move_to_bypass_jobqueue()
1252 owned_head = Z_EROFS_PCLUSTER_TAIL_CLOSED; in move_to_bypass_jobqueue()
1256 WRITE_ONCE(*submit_qtail, owned_head); in move_to_bypass_jobqueue()
1272 z_erofs_next_pcluster_t owned_head = f->clt.owned_head; in z_erofs_submit_queue() local
1283 q[JQ_SUBMIT]->head = owned_head; in z_erofs_submit_queue()
1292 DBG_BUGON(owned_head == Z_EROFS_PCLUSTER_TAIL_CLOSED); in z_erofs_submit_queue()
1293 DBG_BUGON(owned_head == Z_EROFS_PCLUSTER_NIL); in z_erofs_submit_queue()
1295 pcl = container_of(owned_head, struct z_erofs_pcluster, next); in z_erofs_submit_queue()
1301 owned_head = cmpxchg(&pcl->next, Z_EROFS_PCLUSTER_TAIL, in z_erofs_submit_queue()
1343 move_to_bypass_jobqueue(pcl, qtail, owned_head); in z_erofs_submit_queue()
1344 } while (owned_head != Z_EROFS_PCLUSTER_TAIL); in z_erofs_submit_queue()
1366 if (f->clt.owned_head == Z_EROFS_PCLUSTER_TAIL) in z_erofs_runqueue()