Searched refs:cmdtable (Results 1 – 5 of 5) sorted by relevance
77 dev->cmdtable->fis[ 0] = FIS_HOST_TO_DEVICE; in ahci_ata_read_sectors()78 dev->cmdtable->fis[ 1] = FIS_H2D_CMD; in ahci_ata_read_sectors()79 dev->cmdtable->fis[ 2] = ata_dev->read_cmd; in ahci_ata_read_sectors()80 dev->cmdtable->fis[ 4] = (start >> 0) & 0xff; in ahci_ata_read_sectors()81 dev->cmdtable->fis[ 5] = (start >> 8) & 0xff; in ahci_ata_read_sectors()82 dev->cmdtable->fis[ 6] = (start >> 16) & 0xff; in ahci_ata_read_sectors()83 dev->cmdtable->fis[ 7] = FIS_H2D_DEV_LBA; in ahci_ata_read_sectors()84 dev->cmdtable->fis[ 8] = (start >> 24) & 0xff; in ahci_ata_read_sectors()87 dev->cmdtable->fis[ 9] = (start >> 32) & 0xff; in ahci_ata_read_sectors()88 dev->cmdtable->fis[10] = (start >> 40) & 0xff; in ahci_ata_read_sectors()[all …]
56 dev->cmdtable->fis[0] = FIS_HOST_TO_DEVICE; in ahci_packet_read_cmd()57 dev->cmdtable->fis[1] = FIS_H2D_CMD; in ahci_packet_read_cmd()58 dev->cmdtable->fis[2] = ATA_PACKET; in ahci_packet_read_cmd()59 dev->cmdtable->fis[5] = byte_limit & 0xff; in ahci_packet_read_cmd()60 dev->cmdtable->fis[6] = byte_limit >> 8; in ahci_packet_read_cmd()61 memcpy((void *)dev->cmdtable->atapi_cmd, cmd, cmdlen); in ahci_packet_read_cmd()
196 memset((void *)dev->cmdtable, in ahci_cmdslot_prepare()197 '\0', sizeof(*dev->cmdtable)); in ahci_cmdslot_prepare()199 dev->cmdlist[slotnum].cmdtable_base = virt_to_phys(dev->cmdtable); in ahci_cmdslot_prepare()207 const size_t max_prdt_len = ARRAY_SIZE(dev->cmdtable->prdt); in ahci_cmdslot_prepare()223 dev->cmdtable->prdt[i].data_base = virt_to_phys(buf); in ahci_cmdslot_prepare()224 dev->cmdtable->prdt[i].flags = PRD_TABLE_BYTES(bytes); in ahci_cmdslot_prepare()239 dev->cmdtable->fis[0] = FIS_HOST_TO_DEVICE; in ahci_identify_device()240 dev->cmdtable->fis[1] = FIS_H2D_CMD; in ahci_identify_device()241 dev->cmdtable->fis[2] = ata_dev->identify_cmd; in ahci_identify_device()
113 cmdtable_t *const cmdtable = memalign(128, sizeof(cmdtable_t)); in ahci_dev_init() local117 if (!cmdlist || !cmdtable || !rcvd_fis || !dev) in ahci_dev_init()120 memset((void *)cmdtable, '\0', sizeof(*cmdtable)); in ahci_dev_init()134 dev->cmdtable = cmdtable; in ahci_dev_init()186 if (cmdtable) in ahci_dev_init()187 free((void *)cmdtable); in ahci_dev_init()
192 cmdtable_t *cmdtable; member