Lines Matching refs:prd_size
91 uint32_t prd_size; member
714 opts->size, opts->prd_size); in ahci_exec()
851 hdr->prdtl = size_to_prdtl(cmd->xbytes, cmd->prd_size); in command_header_init()
918 cmd->prd_size = 4096; in ahci_command_create()
1137 unsigned prd_size) in ahci_command_set_sizes() argument
1142 g_assert_cmphex(prd_size, <=, 4096 * 1024); in ahci_command_set_sizes()
1143 g_assert_cmphex(prd_size & 0x01, ==, 0x00); in ahci_command_set_sizes()
1144 if (prd_size) { in ahci_command_set_sizes()
1145 cmd->prd_size = prd_size; in ahci_command_set_sizes()
1165 cmd->header.prdtl = size_to_prdtl(cmd->xbytes, cmd->prd_size); in ahci_command_set_sizes()
1170 ahci_command_set_sizes(cmd, xbytes, cmd->prd_size); in ahci_command_set_size()
1173 void ahci_command_set_prd_size(AHCICommand *cmd, unsigned prd_size) in ahci_command_set_prd_size() argument
1175 ahci_command_set_sizes(cmd, cmd->xbytes, prd_size); in ahci_command_set_prd_size()
1179 uint64_t xbytes, unsigned prd_size) in ahci_command_adjust() argument
1181 ahci_command_set_sizes(cmd, xbytes, prd_size); in ahci_command_adjust()
1202 prdtl = size_to_prdtl(cmd->xbytes, cmd->prd_size); in ahci_command_commit()
1223 prd.dba = cpu_to_le64(cmd->buffer + (cmd->prd_size * i)); in ahci_command_commit()
1225 if (remaining > cmd->prd_size) { in ahci_command_commit()
1227 prd.dbc = cpu_to_le32(cmd->prd_size - 1); in ahci_command_commit()
1228 remaining -= cmd->prd_size; in ahci_command_commit()