hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/driver-api/libata.rst
....@@ -254,19 +254,19 @@
254254 int (*qc_issue) (struct ata_queued_cmd *qc);
255255
256256
257
-Higher-level hooks, these two hooks can potentially supercede several of
257
+Higher-level hooks, these two hooks can potentially supersede several of
258258 the above taskfile/DMA engine hooks. ``->qc_prep`` is called after the
259259 buffers have been DMA-mapped, and is typically used to populate the
260
-hardware's DMA scatter-gather table. Most drivers use the standard
261
-:c:func:`ata_qc_prep` helper function, but more advanced drivers roll their
262
-own.
260
+hardware's DMA scatter-gather table. Some drivers use the standard
261
+:c:func:`ata_bmdma_qc_prep` and :c:func:`ata_bmdma_dumb_qc_prep` helper
262
+functions, but more advanced drivers roll their own.
263263
264264 ``->qc_issue`` is used to make a command active, once the hardware and S/G
265265 tables have been prepared. IDE BMDMA drivers use the helper function
266
-:c:func:`ata_qc_issue_prot` for taskfile protocol-based dispatch. More
266
+:c:func:`ata_sff_qc_issue` for taskfile protocol-based dispatch. More
267267 advanced drivers implement their own ``->qc_issue``.
268268
269
-:c:func:`ata_qc_issue_prot` calls ``->tf_load()``, ``->bmdma_setup()``, and
269
+:c:func:`ata_sff_qc_issue` calls ``->sff_tf_load()``, ``->bmdma_setup()``, and
270270 ``->bmdma_start()`` as necessary to initiate a transfer.
271271
272272 Exception and probe handling (EH)
....@@ -401,7 +401,7 @@
401401 ==============
402402
403403 This chapter describes how errors are handled under libata. Readers are
404
-advised to read SCSI EH (Documentation/scsi/scsi_eh.txt) and ATA
404
+advised to read SCSI EH (Documentation/scsi/scsi_eh.rst) and ATA
405405 exceptions doc first.
406406
407407 Origins of commands
....@@ -508,7 +508,7 @@
508508
509509 2. ATA_QCFLAG_ACTIVE is cleared from qc->flags.
510510
511
-3. :c:func:`qc->complete_fn` callback is invoked. If the return value of the
511
+3. :c:expr:`qc->complete_fn` callback is invoked. If the return value of the
512512 callback is not zero. Completion is short circuited and
513513 :c:func:`ata_qc_complete` returns.
514514