Lines Matching refs:cmd
37 static long ahci_ioctl(long cmd, long arg);
38 static long ahci_transfer(struct blk_gendisk *gd, long cmd, uint64_t base_addr, uint64_t count, uin…
260 while ((port->cmd) & HBA_PxCMD_CR) in start_cmd()
264 port->cmd |= HBA_PxCMD_FRE; in start_cmd()
265 port->cmd |= HBA_PxCMD_ST; in start_cmd()
272 port->cmd &= ~HBA_PxCMD_ST; in stop_cmd()
275 port->cmd &= ~HBA_PxCMD_FRE; in stop_cmd()
280 if (port->cmd & HBA_PxCMD_FR) in stop_cmd()
282 if (port->cmd & HBA_PxCMD_CR) in stop_cmd()
549 static struct ahci_request_packet_t *ahci_make_request(long cmd, uint64_t base_addr, uint64_t count… in ahci_make_request() argument
557 switch (cmd) in ahci_make_request()
561 pack->blk_pak.cmd = AHCI_CMD_READ_DMA_EXT; in ahci_make_request()
565 pack->blk_pak.cmd = AHCI_CMD_WRITE_DMA_EXT; in ahci_make_request()
569 pack->blk_pak.cmd = cmd; in ahci_make_request()
610 switch (pack->blk_pak.cmd) in ahci_query_disk()
619 kerror("Unsupport ahci command: %#05lx", pack->blk_pak.cmd); in ahci_query_disk()
652 static long ahci_transfer(struct blk_gendisk *gd, long cmd, uint64_t base_addr, uint64_t count, uin… in ahci_transfer() argument
657 if (cmd == AHCI_CMD_READ_DMA_EXT || cmd == AHCI_CMD_WRITE_DMA_EXT) in ahci_transfer()
659 … pack = ahci_make_request(cmd, base_addr, count, buf, pdata->ahci_ctrl_num, pdata->ahci_port_num); in ahci_transfer()
675 static long ahci_ioctl(long cmd, long arg) in ahci_ioctl() argument