1ATA_QC_COMPLETE_MULT(9) libata Library ATA_QC_COMPLETE_MULT(9)
2
3
4
6 ata_qc_complete_multiple - Complete multiple qcs successfully
7
9 int ata_qc_complete_multiple(struct ata_port * ap, u32 qc_active);
10
12 ap
13 port in question
14
15 qc_active
16 new qc_active mask
17
19 Complete in-flight commands. This functions is meant to be called from
20 low-level driver's interrupt routine to complete requests normally.
21 ap->qc_active and qc_active is compared and commands are completed
22 accordingly.
23
24 Always use this function when completing multiple NCQ commands from IRQ
25 handlers instead of calling ata_qc_complete multiple times to keep IRQ
26 expect status properly in sync.
27
29 spin_lock_irqsave(host lock)
30
32 Number of completed commands on success, -errno otherwise.
33
35 Jeff Garzik
36 Author.
37
39Kernel Hackers Manual 3.10 June 2019 ATA_QC_COMPLETE_MULT(9)