diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-06-28 15:14:46 -0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-08-27 17:28:14 -0400 |
commit | 64a27752dc249bf2ccae53457e6d72e1281d758d (patch) | |
tree | 578d745c2c8ddf984dc04788dd105ab1b614c048 /drivers/net/ethernet/sfc | |
parent | ba388fdd08ff458fabc8588e565b5d031191c50a (diff) |
sfc: Rename EFX_PAGE_BLOCK_SIZE to EFX_VI_PAGE_SIZE and adjust comments
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/io.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sfc/io.h b/drivers/net/ethernet/sfc/io.h index 39f60983954e..19e8b95b7af6 100644 --- a/drivers/net/ethernet/sfc/io.h +++ b/drivers/net/ethernet/sfc/io.h | |||
@@ -204,12 +204,12 @@ static inline void efx_reado_table(struct efx_nic *efx, efx_oword_t *value, | |||
204 | efx_reado(efx, value, reg + index * sizeof(efx_oword_t)); | 204 | efx_reado(efx, value, reg + index * sizeof(efx_oword_t)); |
205 | } | 205 | } |
206 | 206 | ||
207 | /* Page-mapped register block size */ | 207 | /* Page size used as step between per-VI registers */ |
208 | #define EFX_PAGE_BLOCK_SIZE 0x2000 | 208 | #define EFX_VI_PAGE_SIZE 0x2000 |
209 | 209 | ||
210 | /* Calculate offset to page-mapped register block */ | 210 | /* Calculate offset to page-mapped register */ |
211 | #define EFX_PAGED_REG(page, reg) \ | 211 | #define EFX_PAGED_REG(page, reg) \ |
212 | ((page) * EFX_PAGE_BLOCK_SIZE + (reg)) | 212 | ((page) * EFX_VI_PAGE_SIZE + (reg)) |
213 | 213 | ||
214 | /* Write the whole of RX_DESC_UPD or TX_DESC_UPD */ | 214 | /* Write the whole of RX_DESC_UPD or TX_DESC_UPD */ |
215 | static inline void _efx_writeo_page(struct efx_nic *efx, efx_oword_t *value, | 215 | static inline void _efx_writeo_page(struct efx_nic *efx, efx_oword_t *value, |