diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 06:59:30 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-01 04:00:22 -0500 |
commit | 7034228792cc561e79ff8600f02884bd4c80e287 (patch) | |
tree | 89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/include/asm/octeon/cvmx-fpa.h | |
parent | 405ab01c70e18058d9c01a1256769a61fc65413e (diff) |
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/octeon/cvmx-fpa.h')
-rw-r--r-- | arch/mips/include/asm/octeon/cvmx-fpa.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/mips/include/asm/octeon/cvmx-fpa.h b/arch/mips/include/asm/octeon/cvmx-fpa.h index 541a1ae02b6f..aa26a2ce5a0e 100644 --- a/arch/mips/include/asm/octeon/cvmx-fpa.h +++ b/arch/mips/include/asm/octeon/cvmx-fpa.h | |||
@@ -39,9 +39,9 @@ | |||
39 | #include <asm/octeon/cvmx-address.h> | 39 | #include <asm/octeon/cvmx-address.h> |
40 | #include <asm/octeon/cvmx-fpa-defs.h> | 40 | #include <asm/octeon/cvmx-fpa-defs.h> |
41 | 41 | ||
42 | #define CVMX_FPA_NUM_POOLS 8 | 42 | #define CVMX_FPA_NUM_POOLS 8 |
43 | #define CVMX_FPA_MIN_BLOCK_SIZE 128 | 43 | #define CVMX_FPA_MIN_BLOCK_SIZE 128 |
44 | #define CVMX_FPA_ALIGNMENT 128 | 44 | #define CVMX_FPA_ALIGNMENT 128 |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Structure describing the data format used for stores to the FPA. | 47 | * Structure describing the data format used for stores to the FPA. |
@@ -186,8 +186,8 @@ static inline void *cvmx_fpa_alloc(uint64_t pool) | |||
186 | /** | 186 | /** |
187 | * Asynchronously get a new block from the FPA | 187 | * Asynchronously get a new block from the FPA |
188 | * | 188 | * |
189 | * @scr_addr: Local scratch address to put response in. This is a byte address, | 189 | * @scr_addr: Local scratch address to put response in. This is a byte address, |
190 | * but must be 8 byte aligned. | 190 | * but must be 8 byte aligned. |
191 | * @pool: Pool to get the block from | 191 | * @pool: Pool to get the block from |
192 | */ | 192 | */ |
193 | static inline void cvmx_fpa_async_alloc(uint64_t scr_addr, uint64_t pool) | 193 | static inline void cvmx_fpa_async_alloc(uint64_t scr_addr, uint64_t pool) |
@@ -212,7 +212,7 @@ static inline void cvmx_fpa_async_alloc(uint64_t scr_addr, uint64_t pool) | |||
212 | * @ptr: Block to free | 212 | * @ptr: Block to free |
213 | * @pool: Pool to put it in | 213 | * @pool: Pool to put it in |
214 | * @num_cache_lines: | 214 | * @num_cache_lines: |
215 | * Cache lines to invalidate | 215 | * Cache lines to invalidate |
216 | */ | 216 | */ |
217 | static inline void cvmx_fpa_free_nosync(void *ptr, uint64_t pool, | 217 | static inline void cvmx_fpa_free_nosync(void *ptr, uint64_t pool, |
218 | uint64_t num_cache_lines) | 218 | uint64_t num_cache_lines) |
@@ -234,7 +234,7 @@ static inline void cvmx_fpa_free_nosync(void *ptr, uint64_t pool, | |||
234 | * @ptr: Block to free | 234 | * @ptr: Block to free |
235 | * @pool: Pool to put it in | 235 | * @pool: Pool to put it in |
236 | * @num_cache_lines: | 236 | * @num_cache_lines: |
237 | * Cache lines to invalidate | 237 | * Cache lines to invalidate |
238 | */ | 238 | */ |
239 | static inline void cvmx_fpa_free(void *ptr, uint64_t pool, | 239 | static inline void cvmx_fpa_free(void *ptr, uint64_t pool, |
240 | uint64_t num_cache_lines) | 240 | uint64_t num_cache_lines) |
@@ -245,7 +245,7 @@ static inline void cvmx_fpa_free(void *ptr, uint64_t pool, | |||
245 | CVMX_ADDR_DIDSPACE(CVMX_FULL_DID(CVMX_OCT_DID_FPA, pool)); | 245 | CVMX_ADDR_DIDSPACE(CVMX_FULL_DID(CVMX_OCT_DID_FPA, pool)); |
246 | /* | 246 | /* |
247 | * Make sure that any previous writes to memory go out before | 247 | * Make sure that any previous writes to memory go out before |
248 | * we free this buffer. This also serves as a barrier to | 248 | * we free this buffer. This also serves as a barrier to |
249 | * prevent GCC from reordering operations to after the | 249 | * prevent GCC from reordering operations to after the |
250 | * free. | 250 | * free. |
251 | */ | 251 | */ |
@@ -259,17 +259,17 @@ static inline void cvmx_fpa_free(void *ptr, uint64_t pool, | |||
259 | * This can only be called once per pool. Make sure proper | 259 | * This can only be called once per pool. Make sure proper |
260 | * locking enforces this. | 260 | * locking enforces this. |
261 | * | 261 | * |
262 | * @pool: Pool to initialize | 262 | * @pool: Pool to initialize |
263 | * 0 <= pool < 8 | 263 | * 0 <= pool < 8 |
264 | * @name: Constant character string to name this pool. | 264 | * @name: Constant character string to name this pool. |
265 | * String is not copied. | 265 | * String is not copied. |
266 | * @buffer: Pointer to the block of memory to use. This must be | 266 | * @buffer: Pointer to the block of memory to use. This must be |
267 | * accessible by all processors and external hardware. | 267 | * accessible by all processors and external hardware. |
268 | * @block_size: Size for each block controlled by the FPA | 268 | * @block_size: Size for each block controlled by the FPA |
269 | * @num_blocks: Number of blocks | 269 | * @num_blocks: Number of blocks |
270 | * | 270 | * |
271 | * Returns 0 on Success, | 271 | * Returns 0 on Success, |
272 | * -1 on failure | 272 | * -1 on failure |
273 | */ | 273 | */ |
274 | extern int cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, | 274 | extern int cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, |
275 | uint64_t block_size, uint64_t num_blocks); | 275 | uint64_t block_size, uint64_t num_blocks); |
@@ -282,8 +282,8 @@ extern int cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, | |||
282 | * | 282 | * |
283 | * @pool: Pool to shutdown | 283 | * @pool: Pool to shutdown |
284 | * Returns Zero on success | 284 | * Returns Zero on success |
285 | * - Positive is count of missing buffers | 285 | * - Positive is count of missing buffers |
286 | * - Negative is too many buffers or corrupted pointers | 286 | * - Negative is too many buffers or corrupted pointers |
287 | */ | 287 | */ |
288 | extern uint64_t cvmx_fpa_shutdown_pool(uint64_t pool); | 288 | extern uint64_t cvmx_fpa_shutdown_pool(uint64_t pool); |
289 | 289 | ||