• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/ahci/

Lines Matching refs:port

29 int ahci_find_free_command_slot(struct ahci_port_info *port)
31 for (int i = 0; i < ahci_hba_cap_ncs_extract(port->hba_capabilities) + 1; i++) {
32 if (!port->command_slots[i].in_use) {
40 errval_t ahci_port_alloc_dma_structs(ahci_port_t *port,
52 ahci_port_clb_wr(port, (*command_list)->paddr);
60 ahci_port_fb_wr(port, (*receive_fis)->paddr);
65 void ahci_port_free_dma_structs(struct ahci_port_info *port)
68 err = ahci_dma_region_free(port->command_list);
70 USER_PANIC_ERR(err, "ahci_dma_region_free failed for port command list");
72 err = ahci_dma_region_free(port->receive_fis);
74 USER_PANIC_ERR(err, "ahci_dma_region_free failed for port receive fis");
78 errval_t ahci_setup_command(int *command, struct ahci_port_info *port,
83 command, port, fis, fis_length, num_prds, is_write);
85 int command_slot = ahci_find_free_command_slot(port);
87 port->command_slots[command_slot].in_use = true;
98 port->command_slots[command_slot].command_table = ct;
104 ((uint8_t*)port->command_list->vaddr) + command_slot*ahci_port_chdr_size;
144 errval_t ahci_add_physical_regions(struct ahci_port_info *port,
149 ((uint8_t*)port->command_list->vaddr) + command*ahci_port_chdr_size;
159 (uint8_t*)port->command_slots[command].command_table->vaddr +
207 void ahci_dump_command(int command, struct ahci_port_info *port)
211 (ahci_port_chdr_t)((uint8_t*) port->command_list->vaddr) +
218 uint8_t *cmd_table_base = (uint8_t*) port->command_slots[command].command_table->vaddr;
225 void ahci_dump_command(int command, struct ahci_port_info *port) {}
229 void ahci_dump_rfis(struct ahci_port_info *port)
234 *(((uint8_t*)port->receive_fis->vaddr) + i),
235 *(((uint8_t*)port->receive_fis->vaddr) + i + 1),
236 *(((uint8_t*)port->receive_fis->vaddr) + i + 2),
237 *(((uint8_t*)port->receive_fis->vaddr) + i + 3)
242 void ahci_dump_rfis(struct ahci_port_info *port) {}