diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2017-07-03 09:59:06 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-07 20:04:00 +0200 |
commit | ab2ace2df9b20f0c1111560b275ad38ed36703fc (patch) | |
tree | 3e7161d96ff443621bf0d4777054b79848ae73f8 /drivers/scsi/g_NCR5380.c | |
parent | scsi: g_NCR5380: Cleanup comments and whitespace (diff) | |
download | linux-ab2ace2df9b20f0c1111560b275ad38ed36703fc.tar.xz linux-ab2ace2df9b20f0c1111560b275ad38ed36703fc.zip |
scsi: g_NCR5380: Use unambiguous terminology for PDMA send and receive
The word "read" may be used to mean "DMA read operation" or "SCSI READ
command", though a READ command implies writing to memory.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/g_NCR5380.c')
-rw-r--r-- | drivers/scsi/g_NCR5380.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index 97e80375c5d9..3cae34632cf8 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c @@ -48,8 +48,8 @@ int pdma_residual #define NCR5380_dma_xfer_len generic_NCR5380_dma_xfer_len -#define NCR5380_dma_recv_setup generic_NCR5380_pread -#define NCR5380_dma_send_setup generic_NCR5380_pwrite +#define NCR5380_dma_recv_setup generic_NCR5380_precv +#define NCR5380_dma_send_setup generic_NCR5380_psend #define NCR5380_dma_residual generic_NCR5380_dma_residual #define NCR5380_intr generic_NCR5380_intr @@ -481,7 +481,7 @@ static void generic_NCR5380_release_resources(struct Scsi_Host *instance) } /** - * generic_NCR5380_pread - pseudo DMA read + * generic_NCR5380_precv - pseudo DMA receive * @hostdata: scsi host private data * @dst: buffer to write into * @len: transfer size @@ -489,7 +489,7 @@ static void generic_NCR5380_release_resources(struct Scsi_Host *instance) * Perform a pseudo DMA mode receive from a 53C400 or equivalent device. */ -static inline int generic_NCR5380_pread(struct NCR5380_hostdata *hostdata, +static inline int generic_NCR5380_precv(struct NCR5380_hostdata *hostdata, unsigned char *dst, int len) { int blocks = len / 128; @@ -557,7 +557,7 @@ out_wait: } /** - * generic_NCR5380_pwrite - pseudo DMA write + * generic_NCR5380_psend - pseudo DMA send * @hostdata: scsi host private data * @src: buffer to read from * @len: transfer size @@ -565,8 +565,8 @@ out_wait: * Perform a pseudo DMA mode send to a 53C400 or equivalent device. */ -static inline int generic_NCR5380_pwrite(struct NCR5380_hostdata *hostdata, - unsigned char *src, int len) +static inline int generic_NCR5380_psend(struct NCR5380_hostdata *hostdata, + unsigned char *src, int len) { int blocks = len / 128; int start = 0; |