Lines Matching refs:cmdtbl
354 HBA_CMD_TBL *cmdtbl = (HBA_CMD_TBL *)phys_2_virt(cmdheader->ctba); in ahci_read() local
355 memset(cmdtbl, 0, sizeof(HBA_CMD_TBL) + (cmdheader->prdtl - 1) * sizeof(HBA_PRDT_ENTRY)); in ahci_read()
361 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_read()
362 …cmdtbl->prdt_entry[i].dbc = 8 * 1024 - 1; // 8K bytes (this value should always be set to 1 less t… in ahci_read()
363 cmdtbl->prdt_entry[i].i = 1; in ahci_read()
369 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_read()
370 cmdtbl->prdt_entry[i].dbc = (count << 9) - 1; // 512 bytes per sector in ahci_read()
371 cmdtbl->prdt_entry[i].i = 1; in ahci_read()
374 FIS_REG_H2D *cmdfis = (FIS_REG_H2D *)(&cmdtbl->cfis); in ahci_read()
451 HBA_CMD_TBL *cmdtbl = (HBA_CMD_TBL *)phys_2_virt(cmdheader->ctba); in ahci_write() local
452 memset(cmdtbl, 0, sizeof(HBA_CMD_TBL) + (cmdheader->prdtl - 1) * sizeof(HBA_PRDT_ENTRY)); in ahci_write()
457 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_write()
458 cmdtbl->prdt_entry[i].dbc = 8 * 1024 - 1; // 8K bytes in ahci_write()
459 cmdtbl->prdt_entry[i].i = 0; in ahci_write()
463 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_write()
465 cmdtbl->prdt_entry[i].dbc = count << 9; // 512 bytes per sector in ahci_write()
466 cmdtbl->prdt_entry[i].i = 0; in ahci_write()
467 FIS_REG_H2D *cmdfis = (FIS_REG_H2D *)(&cmdtbl->cfis); in ahci_write()