aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_hw.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-04-17 00:01:09 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-17 00:01:09 -0400
commit1a855fbfb65e0b7b5cce00d7c6a61185ed765edf (patch)
tree7f6bfd3a7e17abf99fa6d529f9dec3842f701a38 /drivers/infiniband/hw/nes/nes_hw.c
parent71e0957c6291da030e6f89351846225876731df3 (diff)
RDMA/nes: Make symbols used only in a single source file static
Avoid namespace pollution and allow the compiler to optimize better. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_hw.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_hw.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c
index 49e53e4c1ebe..8b29bd82f3a5 100644
--- a/drivers/infiniband/hw/nes/nes_hw.c
+++ b/drivers/infiniband/hw/nes/nes_hw.c
@@ -41,7 +41,7 @@
41 41
42#include "nes.h" 42#include "nes.h"
43 43
44u32 crit_err_count = 0; 44static u32 crit_err_count;
45u32 int_mod_timer_init; 45u32 int_mod_timer_init;
46u32 int_mod_cq_depth_256; 46u32 int_mod_cq_depth_256;
47u32 int_mod_cq_depth_128; 47u32 int_mod_cq_depth_128;
@@ -53,6 +53,17 @@ u32 int_mod_cq_depth_1;
53 53
54#include "nes_cm.h" 54#include "nes_cm.h"
55 55
56static void nes_cqp_ce_handler(struct nes_device *nesdev, struct nes_hw_cq *cq);
57static void nes_init_csr_ne020(struct nes_device *nesdev, u8 hw_rev, u8 port_count);
58static int nes_init_serdes(struct nes_device *nesdev, u8 hw_rev, u8 port_count,
59 u8 OneG_Mode);
60static void nes_nic_napi_ce_handler(struct nes_device *nesdev, struct nes_hw_nic_cq *cq);
61static void nes_process_aeq(struct nes_device *nesdev, struct nes_hw_aeq *aeq);
62static void nes_process_ceq(struct nes_device *nesdev, struct nes_hw_ceq *ceq);
63static void nes_process_iwarp_aeqe(struct nes_device *nesdev,
64 struct nes_hw_aeqe *aeqe);
65static void nes_process_mac_intr(struct nes_device *nesdev, u32 mac_number);
66static unsigned int nes_reset_adapter_ne020(struct nes_device *nesdev, u8 *OneG_Mode);
56 67
57#ifdef CONFIG_INFINIBAND_NES_DEBUG 68#ifdef CONFIG_INFINIBAND_NES_DEBUG
58static unsigned char *nes_iwarp_state_str[] = { 69static unsigned char *nes_iwarp_state_str[] = {
@@ -583,7 +594,7 @@ struct nes_adapter *nes_init_adapter(struct nes_device *nesdev, u8 hw_rev) {
583/** 594/**
584 * nes_reset_adapter_ne020 595 * nes_reset_adapter_ne020
585 */ 596 */
586unsigned int nes_reset_adapter_ne020(struct nes_device *nesdev, u8 *OneG_Mode) 597static unsigned int nes_reset_adapter_ne020(struct nes_device *nesdev, u8 *OneG_Mode)
587{ 598{
588 u32 port_count; 599 u32 port_count;
589 u32 u32temp; 600 u32 u32temp;
@@ -691,7 +702,8 @@ unsigned int nes_reset_adapter_ne020(struct nes_device *nesdev, u8 *OneG_Mode)
691/** 702/**
692 * nes_init_serdes 703 * nes_init_serdes
693 */ 704 */
694int nes_init_serdes(struct nes_device *nesdev, u8 hw_rev, u8 port_count, u8 OneG_Mode) 705static int nes_init_serdes(struct nes_device *nesdev, u8 hw_rev, u8 port_count,
706 u8 OneG_Mode)
695{ 707{
696 int i; 708 int i;
697 u32 u32temp; 709 u32 u32temp;
@@ -760,7 +772,7 @@ int nes_init_serdes(struct nes_device *nesdev, u8 hw_rev, u8 port_count, u8 One
760 * nes_init_csr_ne020 772 * nes_init_csr_ne020
761 * Initialize registers for ne020 hardware 773 * Initialize registers for ne020 hardware
762 */ 774 */
763void nes_init_csr_ne020(struct nes_device *nesdev, u8 hw_rev, u8 port_count) 775static void nes_init_csr_ne020(struct nes_device *nesdev, u8 hw_rev, u8 port_count)
764{ 776{
765 u32 u32temp; 777 u32 u32temp;
766 778
@@ -1909,7 +1921,7 @@ void nes_dpc(unsigned long param)
1909/** 1921/**
1910 * nes_process_ceq 1922 * nes_process_ceq
1911 */ 1923 */
1912void nes_process_ceq(struct nes_device *nesdev, struct nes_hw_ceq *ceq) 1924static void nes_process_ceq(struct nes_device *nesdev, struct nes_hw_ceq *ceq)
1913{ 1925{
1914 u64 u64temp; 1926 u64 u64temp;
1915 struct nes_hw_cq *cq; 1927 struct nes_hw_cq *cq;
@@ -1949,7 +1961,7 @@ void nes_process_ceq(struct nes_device *nesdev, struct nes_hw_ceq *ceq)
1949/** 1961/**
1950 * nes_process_aeq 1962 * nes_process_aeq
1951 */ 1963 */
1952void nes_process_aeq(struct nes_device *nesdev, struct nes_hw_aeq *aeq) 1964static void nes_process_aeq(struct nes_device *nesdev, struct nes_hw_aeq *aeq)
1953{ 1965{
1954// u64 u64temp; 1966// u64 u64temp;
1955 u32 head; 1967 u32 head;
@@ -2060,7 +2072,7 @@ static void nes_reset_link(struct nes_device *nesdev, u32 mac_index)
2060/** 2072/**
2061 * nes_process_mac_intr 2073 * nes_process_mac_intr
2062 */ 2074 */
2063void nes_process_mac_intr(struct nes_device *nesdev, u32 mac_number) 2075static void nes_process_mac_intr(struct nes_device *nesdev, u32 mac_number)
2064{ 2076{
2065 unsigned long flags; 2077 unsigned long flags;
2066 u32 pcs_control_status; 2078 u32 pcs_control_status;
@@ -2205,7 +2217,7 @@ void nes_process_mac_intr(struct nes_device *nesdev, u32 mac_number)
2205 2217
2206 2218
2207 2219
2208void nes_nic_napi_ce_handler(struct nes_device *nesdev, struct nes_hw_nic_cq *cq) 2220static void nes_nic_napi_ce_handler(struct nes_device *nesdev, struct nes_hw_nic_cq *cq)
2209{ 2221{
2210 struct nes_vnic *nesvnic = container_of(cq, struct nes_vnic, nic_cq); 2222 struct nes_vnic *nesvnic = container_of(cq, struct nes_vnic, nic_cq);
2211 2223
@@ -2428,7 +2440,7 @@ void nes_nic_ce_handler(struct nes_device *nesdev, struct nes_hw_nic_cq *cq)
2428/** 2440/**
2429 * nes_cqp_ce_handler 2441 * nes_cqp_ce_handler
2430 */ 2442 */
2431void nes_cqp_ce_handler(struct nes_device *nesdev, struct nes_hw_cq *cq) 2443static void nes_cqp_ce_handler(struct nes_device *nesdev, struct nes_hw_cq *cq)
2432{ 2444{
2433 u64 u64temp; 2445 u64 u64temp;
2434 unsigned long flags; 2446 unsigned long flags;
@@ -2567,7 +2579,8 @@ void nes_cqp_ce_handler(struct nes_device *nesdev, struct nes_hw_cq *cq)
2567/** 2579/**
2568 * nes_process_iwarp_aeqe 2580 * nes_process_iwarp_aeqe
2569 */ 2581 */
2570void nes_process_iwarp_aeqe(struct nes_device *nesdev, struct nes_hw_aeqe *aeqe) 2582static void nes_process_iwarp_aeqe(struct nes_device *nesdev,
2583 struct nes_hw_aeqe *aeqe)
2571{ 2584{
2572 u64 context; 2585 u64 context;
2573 u64 aeqe_context = 0; 2586 u64 aeqe_context = 0;