Lines Matching refs:ahci_req_queue
14 struct block_device_request_queue ahci_req_queue; variable
95 ahci_gendisk0.request_queue = &ahci_req_queue; in ahci_init_gendisk()
130 ahci_gendisk0.partition[cnt].bd_queue = &ahci_req_queue; in ahci_init_gendisk()
179 ahci_req_queue.in_service = NULL; in ahci_init()
180 wait_queue_init(&ahci_req_queue.wait_queue_list, NULL); in ahci_init()
181 ahci_req_queue.request_count = 0; in ahci_init()
587 ahci_req_queue.in_service->wait_queue.pcb->state = PROC_RUNNING; in ahci_end_request()
590 kfree((uint64_t *)ahci_req_queue.in_service); in ahci_end_request()
591 ahci_req_queue.in_service = NULL; in ahci_end_request()
594 if (ahci_req_queue.request_count > 0) in ahci_end_request()
600 …wait_queue_node_t *wait_queue_tmp = container_of(list_next(&ahci_req_queue.wait_queue_list.wait_li… in ahci_query_disk()
603 ahci_req_queue.in_service = (struct block_device_request_packet *)pack; in ahci_query_disk()
604 list_del(&(ahci_req_queue.in_service->wait_queue.wait_list)); in ahci_query_disk()
605 --ahci_req_queue.request_count; in ahci_query_disk()
634 list_append(&(ahci_req_queue.wait_queue_list.wait_list), &(pack->blk_pak.wait_queue.wait_list)); in ahci_submit()
635 ++ahci_req_queue.request_count; in ahci_submit()
637 if (ahci_req_queue.in_service == NULL) // 当前没有正在请求的io包,立即执行磁盘请求 in ahci_submit()