diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2006-03-30 07:49:40 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-04-01 06:36:57 -0500 |
commit | 706c8c93ba4865a19e981b9770151a7a63c15794 (patch) | |
tree | 63cbae3a74bfe40adcb1efa9ea5a6e7f6898b8ca /arch/powerpc/platforms/pseries/lpar.c | |
parent | 8df83028cf52e3bf68dfd35a4b1a044b326a4a99 (diff) |
[PATCH] powerpc/pseries: Change H_StudlyCaps to H_SHOUTING_CAPS
Also cleans up some nearby whitespace problems.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/lpar.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/lpar.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index 8952528d31ac..c72c0918b44b 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c | |||
@@ -72,7 +72,7 @@ static void udbg_hvsi_putc(char c) | |||
72 | 72 | ||
73 | do { | 73 | do { |
74 | rc = plpar_put_term_char(vtermno, sizeof(packet), packet); | 74 | rc = plpar_put_term_char(vtermno, sizeof(packet), packet); |
75 | } while (rc == H_Busy); | 75 | } while (rc == H_BUSY); |
76 | } | 76 | } |
77 | 77 | ||
78 | static long hvsi_udbg_buf_len; | 78 | static long hvsi_udbg_buf_len; |
@@ -85,7 +85,7 @@ static int udbg_hvsi_getc_poll(void) | |||
85 | 85 | ||
86 | if (hvsi_udbg_buf_len == 0) { | 86 | if (hvsi_udbg_buf_len == 0) { |
87 | rc = plpar_get_term_char(vtermno, &hvsi_udbg_buf_len, hvsi_udbg_buf); | 87 | rc = plpar_get_term_char(vtermno, &hvsi_udbg_buf_len, hvsi_udbg_buf); |
88 | if (rc != H_Success || hvsi_udbg_buf[0] != 0xff) { | 88 | if (rc != H_SUCCESS || hvsi_udbg_buf[0] != 0xff) { |
89 | /* bad read or non-data packet */ | 89 | /* bad read or non-data packet */ |
90 | hvsi_udbg_buf_len = 0; | 90 | hvsi_udbg_buf_len = 0; |
91 | } else { | 91 | } else { |
@@ -139,7 +139,7 @@ static void udbg_putcLP(char c) | |||
139 | buf[0] = c; | 139 | buf[0] = c; |
140 | do { | 140 | do { |
141 | rc = plpar_put_term_char(vtermno, 1, buf); | 141 | rc = plpar_put_term_char(vtermno, 1, buf); |
142 | } while(rc == H_Busy); | 142 | } while(rc == H_BUSY); |
143 | } | 143 | } |
144 | 144 | ||
145 | /* Buffered chars getc */ | 145 | /* Buffered chars getc */ |
@@ -158,7 +158,7 @@ static int udbg_getc_pollLP(void) | |||
158 | /* get some more chars. */ | 158 | /* get some more chars. */ |
159 | inbuflen = 0; | 159 | inbuflen = 0; |
160 | rc = plpar_get_term_char(vtermno, &inbuflen, buf); | 160 | rc = plpar_get_term_char(vtermno, &inbuflen, buf); |
161 | if (rc != H_Success) | 161 | if (rc != H_SUCCESS) |
162 | inbuflen = 0; /* otherwise inbuflen is garbage */ | 162 | inbuflen = 0; /* otherwise inbuflen is garbage */ |
163 | } | 163 | } |
164 | if (inbuflen <= 0 || inbuflen > 16) { | 164 | if (inbuflen <= 0 || inbuflen > 16) { |
@@ -304,7 +304,7 @@ long pSeries_lpar_hpte_insert(unsigned long hpte_group, | |||
304 | 304 | ||
305 | lpar_rc = plpar_hcall(H_ENTER, flags, hpte_group, hpte_v, | 305 | lpar_rc = plpar_hcall(H_ENTER, flags, hpte_group, hpte_v, |
306 | hpte_r, &slot, &dummy0, &dummy1); | 306 | hpte_r, &slot, &dummy0, &dummy1); |
307 | if (unlikely(lpar_rc == H_PTEG_Full)) { | 307 | if (unlikely(lpar_rc == H_PTEG_FULL)) { |
308 | if (!(vflags & HPTE_V_BOLTED)) | 308 | if (!(vflags & HPTE_V_BOLTED)) |
309 | DBG_LOW(" full\n"); | 309 | DBG_LOW(" full\n"); |
310 | return -1; | 310 | return -1; |
@@ -315,7 +315,7 @@ long pSeries_lpar_hpte_insert(unsigned long hpte_group, | |||
315 | * will fail. However we must catch the failure in hash_page | 315 | * will fail. However we must catch the failure in hash_page |
316 | * or we will loop forever, so return -2 in this case. | 316 | * or we will loop forever, so return -2 in this case. |
317 | */ | 317 | */ |
318 | if (unlikely(lpar_rc != H_Success)) { | 318 | if (unlikely(lpar_rc != H_SUCCESS)) { |
319 | if (!(vflags & HPTE_V_BOLTED)) | 319 | if (!(vflags & HPTE_V_BOLTED)) |
320 | DBG_LOW(" lpar err %d\n", lpar_rc); | 320 | DBG_LOW(" lpar err %d\n", lpar_rc); |
321 | return -2; | 321 | return -2; |
@@ -346,9 +346,9 @@ static long pSeries_lpar_hpte_remove(unsigned long hpte_group) | |||
346 | /* don't remove a bolted entry */ | 346 | /* don't remove a bolted entry */ |
347 | lpar_rc = plpar_pte_remove(H_ANDCOND, hpte_group + slot_offset, | 347 | lpar_rc = plpar_pte_remove(H_ANDCOND, hpte_group + slot_offset, |
348 | (0x1UL << 4), &dummy1, &dummy2); | 348 | (0x1UL << 4), &dummy1, &dummy2); |
349 | if (lpar_rc == H_Success) | 349 | if (lpar_rc == H_SUCCESS) |
350 | return i; | 350 | return i; |
351 | BUG_ON(lpar_rc != H_Not_Found); | 351 | BUG_ON(lpar_rc != H_NOT_FOUND); |
352 | 352 | ||
353 | slot_offset++; | 353 | slot_offset++; |
354 | slot_offset &= 0x7; | 354 | slot_offset &= 0x7; |
@@ -391,14 +391,14 @@ static long pSeries_lpar_hpte_updatepp(unsigned long slot, | |||
391 | 391 | ||
392 | lpar_rc = plpar_pte_protect(flags, slot, want_v & HPTE_V_AVPN); | 392 | lpar_rc = plpar_pte_protect(flags, slot, want_v & HPTE_V_AVPN); |
393 | 393 | ||
394 | if (lpar_rc == H_Not_Found) { | 394 | if (lpar_rc == H_NOT_FOUND) { |
395 | DBG_LOW("not found !\n"); | 395 | DBG_LOW("not found !\n"); |
396 | return -1; | 396 | return -1; |
397 | } | 397 | } |
398 | 398 | ||
399 | DBG_LOW("ok\n"); | 399 | DBG_LOW("ok\n"); |
400 | 400 | ||
401 | BUG_ON(lpar_rc != H_Success); | 401 | BUG_ON(lpar_rc != H_SUCCESS); |
402 | 402 | ||
403 | return 0; | 403 | return 0; |
404 | } | 404 | } |
@@ -417,7 +417,7 @@ static unsigned long pSeries_lpar_hpte_getword0(unsigned long slot) | |||
417 | 417 | ||
418 | lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1); | 418 | lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1); |
419 | 419 | ||
420 | BUG_ON(lpar_rc != H_Success); | 420 | BUG_ON(lpar_rc != H_SUCCESS); |
421 | 421 | ||
422 | return dword0; | 422 | return dword0; |
423 | } | 423 | } |
@@ -468,7 +468,7 @@ static void pSeries_lpar_hpte_updateboltedpp(unsigned long newpp, | |||
468 | flags = newpp & 7; | 468 | flags = newpp & 7; |
469 | lpar_rc = plpar_pte_protect(flags, slot, 0); | 469 | lpar_rc = plpar_pte_protect(flags, slot, 0); |
470 | 470 | ||
471 | BUG_ON(lpar_rc != H_Success); | 471 | BUG_ON(lpar_rc != H_SUCCESS); |
472 | } | 472 | } |
473 | 473 | ||
474 | static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va, | 474 | static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va, |
@@ -484,10 +484,10 @@ static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va, | |||
484 | want_v = hpte_encode_v(va, psize); | 484 | want_v = hpte_encode_v(va, psize); |
485 | lpar_rc = plpar_pte_remove(H_AVPN, slot, want_v & HPTE_V_AVPN, | 485 | lpar_rc = plpar_pte_remove(H_AVPN, slot, want_v & HPTE_V_AVPN, |
486 | &dummy1, &dummy2); | 486 | &dummy1, &dummy2); |
487 | if (lpar_rc == H_Not_Found) | 487 | if (lpar_rc == H_NOT_FOUND) |
488 | return; | 488 | return; |
489 | 489 | ||
490 | BUG_ON(lpar_rc != H_Success); | 490 | BUG_ON(lpar_rc != H_SUCCESS); |
491 | } | 491 | } |
492 | 492 | ||
493 | /* | 493 | /* |