Lines Matching refs:pack
551 …struct ahci_request_packet_t *pack = (struct ahci_request_packet_t *)kmalloc(sizeof(struct ahci_re… in ahci_make_request() local
553 wait_queue_init(&pack->blk_pak.wait_queue, current_pcb); in ahci_make_request()
554 pack->blk_pak.device_type = BLK_TYPE_AHCI; in ahci_make_request()
560 pack->blk_pak.end_handler = NULL; in ahci_make_request()
561 pack->blk_pak.cmd = AHCI_CMD_READ_DMA_EXT; in ahci_make_request()
564 pack->blk_pak.end_handler = NULL; in ahci_make_request()
565 pack->blk_pak.cmd = AHCI_CMD_WRITE_DMA_EXT; in ahci_make_request()
568 pack->blk_pak.end_handler = NULL; in ahci_make_request()
569 pack->blk_pak.cmd = cmd; in ahci_make_request()
573 pack->blk_pak.LBA_start = base_addr; in ahci_make_request()
574 pack->blk_pak.count = count; in ahci_make_request()
575 pack->blk_pak.buffer_vaddr = buffer; in ahci_make_request()
577 pack->ahci_ctrl_num = ahci_ctrl_num; in ahci_make_request()
578 pack->port_num = port_num; in ahci_make_request()
579 return pack; in ahci_make_request()
602 …struct ahci_request_packet_t *pack = (struct ahci_request_packet_t *)container_of(wait_queue_tmp, … in ahci_query_disk() local
604 ahci_req_queue.in_service = (struct block_device_request_packet *)pack; in ahci_query_disk()
610 switch (pack->blk_pak.cmd) in ahci_query_disk()
613 …pack->ahci_ctrl_num].hba_mem->ports[pack->port_num]), pack->blk_pak.LBA_start & 0xFFFFFFFF, ((pack… in ahci_query_disk()
616 …pack->ahci_ctrl_num].hba_mem->ports[pack->port_num]), pack->blk_pak.LBA_start & 0xFFFFFFFF, ((pack… in ahci_query_disk()
619 kerror("Unsupport ahci command: %#05lx", pack->blk_pak.cmd); in ahci_query_disk()
633 static void ahci_submit(struct ahci_request_packet_t *pack) in ahci_submit() argument
635 list_append(&(ahci_req_queue.wait_queue_list.wait_list), &(pack->blk_pak.wait_queue.wait_list)); in ahci_submit()
654 struct ahci_request_packet_t *pack = NULL; in ahci_transfer() local
659 … pack = ahci_make_request(cmd, base_addr, count, buf, pdata->ahci_ctrl_num, pdata->ahci_port_num); in ahci_transfer()
660 ahci_submit(pack); in ahci_transfer()