Skip to content

Commit 47000e8

Browse files
damien-lemoalfloatious
authored andcommitted
ata: libata-scsi: Document all VPD page inquiry actors
Add the missing kdoc comments for the ata_scsiop_inq_XX functions used to emulate access to VPD pages. Signed-off-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
1 parent 4ab7bb9 commit 47000e8

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

drivers/ata/libata-scsi.c

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,16 @@ static unsigned int ata_scsiop_inq_89(struct ata_scsi_args *args, u8 *rbuf)
20522052
return 0;
20532053
}
20542054

2055+
/**
2056+
* ata_scsiop_inq_b0 - Simulate INQUIRY VPD page B0, Block Limits
2057+
* @args: device IDENTIFY data / SCSI command of interest.
2058+
* @rbuf: Response buffer, to which simulated SCSI cmd output is sent.
2059+
*
2060+
* Return data for the VPD page B0h (Block Limits).
2061+
*
2062+
* LOCKING:
2063+
* spin_lock_irqsave(host lock)
2064+
*/
20552065
static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
20562066
{
20572067
struct ata_device *dev = args->dev;
@@ -2092,6 +2102,17 @@ static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
20922102
return 0;
20932103
}
20942104

2105+
/**
2106+
* ata_scsiop_inq_b1 - Simulate INQUIRY VPD page B1, Block Device
2107+
* Characteristics
2108+
* @args: device IDENTIFY data / SCSI command of interest.
2109+
* @rbuf: Response buffer, to which simulated SCSI cmd output is sent.
2110+
*
2111+
* Return data for the VPD page B1h (Block Device Characteristics).
2112+
*
2113+
* LOCKING:
2114+
* spin_lock_irqsave(host lock)
2115+
*/
20952116
static unsigned int ata_scsiop_inq_b1(struct ata_scsi_args *args, u8 *rbuf)
20962117
{
20972118
int form_factor = ata_id_form_factor(args->id);
@@ -2109,6 +2130,17 @@ static unsigned int ata_scsiop_inq_b1(struct ata_scsi_args *args, u8 *rbuf)
21092130
return 0;
21102131
}
21112132

2133+
/**
2134+
* ata_scsiop_inq_b2 - Simulate INQUIRY VPD page B2, Logical Block
2135+
* Provisioning
2136+
* @args: device IDENTIFY data / SCSI command of interest.
2137+
* @rbuf: Response buffer, to which simulated SCSI cmd output is sent.
2138+
*
2139+
* Return data for the VPD page B2h (Logical Block Provisioning).
2140+
*
2141+
* LOCKING:
2142+
* spin_lock_irqsave(host lock)
2143+
*/
21122144
static unsigned int ata_scsiop_inq_b2(struct ata_scsi_args *args, u8 *rbuf)
21132145
{
21142146
/* SCSI Thin Provisioning VPD page: SBC-3 rev 22 or later */
@@ -2119,6 +2151,17 @@ static unsigned int ata_scsiop_inq_b2(struct ata_scsi_args *args, u8 *rbuf)
21192151
return 0;
21202152
}
21212153

2154+
/**
2155+
* ata_scsiop_inq_b6 - Simulate INQUIRY VPD page B6, Zoned Block Device
2156+
* Characteristics
2157+
* @args: device IDENTIFY data / SCSI command of interest.
2158+
* @rbuf: Response buffer, to which simulated SCSI cmd output is sent.
2159+
*
2160+
* Return data for the VPD page B2h (Zoned Block Device Characteristics).
2161+
*
2162+
* LOCKING:
2163+
* spin_lock_irqsave(host lock)
2164+
*/
21222165
static unsigned int ata_scsiop_inq_b6(struct ata_scsi_args *args, u8 *rbuf)
21232166
{
21242167
if (!(args->dev->flags & ATA_DFLAG_ZAC)) {
@@ -2144,6 +2187,17 @@ static unsigned int ata_scsiop_inq_b6(struct ata_scsi_args *args, u8 *rbuf)
21442187
return 0;
21452188
}
21462189

2190+
/**
2191+
* ata_scsiop_inq_b9 - Simulate INQUIRY VPD page B9, Concurrent Positioning
2192+
* Ranges
2193+
* @args: device IDENTIFY data / SCSI command of interest.
2194+
* @rbuf: Response buffer, to which simulated SCSI cmd output is sent.
2195+
*
2196+
* Return data for the VPD page B9h (Concurrent Positioning Ranges).
2197+
*
2198+
* LOCKING:
2199+
* spin_lock_irqsave(host lock)
2200+
*/
21472201
static unsigned int ata_scsiop_inq_b9(struct ata_scsi_args *args, u8 *rbuf)
21482202
{
21492203
struct ata_cpr_log *cpr_log = args->dev->cpr_log;

0 commit comments

Comments
 (0)