Lines Matching refs:list_ptr
91 PriorityInsert(RF_DiskQueueData_t **list_ptr, RF_DiskQueueData_t *req) in PriorityInsert() argument
97 for (; (*list_ptr) != NULL && (*list_ptr)->priority > req->priority; in PriorityInsert()
98 list_ptr = &((*list_ptr)->next)) { in PriorityInsert()
100 req->next = (*list_ptr); in PriorityInsert()
101 (*list_ptr) = req; in PriorityInsert()
107 ReqInsert(RF_DiskQueueData_t **list_ptr, RF_DiskQueueData_t *req, RF_CvscanArmDir_t order) in ReqInsert() argument
113 for (; (*list_ptr) != NULL && in ReqInsert()
114 ((order == rf_cvscan_RIGHT && (*list_ptr)->sectorOffset <= req->sectorOffset) in ReqInsert()
115 || (order == rf_cvscan_LEFT && (*list_ptr)->sectorOffset > req->sectorOffset)); in ReqInsert()
116 list_ptr = &((*list_ptr)->next)) { in ReqInsert()
118 req->next = (*list_ptr); in ReqInsert()
119 (*list_ptr) = req; in ReqInsert()
125 ReqDequeue(RF_DiskQueueData_t **list_ptr) in ReqDequeue() argument
127 RF_DiskQueueData_t *ret = (*list_ptr); in ReqDequeue()
128 if ((*list_ptr) != NULL) { in ReqDequeue()
129 (*list_ptr) = (*list_ptr)->next; in ReqDequeue()