Home
last modified time | relevance | path

Searched refs:cpr_log (Results 1 – 2 of 2) sorted by relevance

/drivers/ata/
Dlibata-scsi.c2174 struct ata_cpr_log *cpr_log = args->dev->cpr_log; in ata_scsiop_inq_b9() local
2180 put_unaligned_be16(64 + (int)cpr_log->nr_cpr * 32 - 4, &rbuf[2]); in ata_scsiop_inq_b9()
2182 for (i = 0; i < cpr_log->nr_cpr; i++, desc += 32) { in ata_scsiop_inq_b9()
2183 desc[0] = cpr_log->cpr[i].num; in ata_scsiop_inq_b9()
2184 desc[1] = cpr_log->cpr[i].num_storage_elements; in ata_scsiop_inq_b9()
2185 put_unaligned_be64(cpr_log->cpr[i].start_lba, &desc[8]); in ata_scsiop_inq_b9()
2186 put_unaligned_be64(cpr_log->cpr[i].num_lbas, &desc[16]); in ata_scsiop_inq_b9()
4325 if (dev->cpr_log) in ata_scsi_simulate()
Dlibata-core.c2734 struct ata_cpr_log *cpr_log = NULL; in ata_dev_config_cpr() local
2764 cpr_log = kzalloc(struct_size(cpr_log, cpr, nr_cpr), GFP_KERNEL); in ata_dev_config_cpr()
2765 if (!cpr_log) in ata_dev_config_cpr()
2768 cpr_log->nr_cpr = nr_cpr; in ata_dev_config_cpr()
2771 cpr_log->cpr[i].num = desc[0]; in ata_dev_config_cpr()
2772 cpr_log->cpr[i].num_storage_elements = desc[1]; in ata_dev_config_cpr()
2773 cpr_log->cpr[i].start_lba = get_unaligned_le64(&desc[8]); in ata_dev_config_cpr()
2774 cpr_log->cpr[i].num_lbas = get_unaligned_le64(&desc[16]); in ata_dev_config_cpr()
2778 swap(dev->cpr_log, cpr_log); in ata_dev_config_cpr()
2779 kfree(cpr_log); in ata_dev_config_cpr()
[all …]