• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sparc/include/asm/

Lines Matching refs:__name

20 #define BTFIXUP_SIMM13(__name) ___illegal_use_of_BTFIXUP_SIMM13_in_module()
21 #define BTFIXUP_HALF(__name) ___illegal_use_of_BTFIXUP_HALF_in_module()
22 #define BTFIXUP_SETHI(__name) ___illegal_use_of_BTFIXUP_SETHI_in_module()
23 #define BTFIXUP_INT(__name) ___illegal_use_of_BTFIXUP_INT_in_module()
24 #define BTFIXUP_BLACKBOX(__name) ___illegal_use_of_BTFIXUP_BLACKBOX_in_module
28 #define BTFIXUP_SIMM13(__name) ___sf_##__name()
29 #define BTFIXUP_HALF(__name) ___af_##__name()
30 #define BTFIXUP_SETHI(__name) ___hf_##__name()
31 #define BTFIXUP_INT(__name) ((unsigned int)&___i_##__name)
33 #define BTFIXUP_BLACKBOX(__name) ___b_##__name
38 #define BTFIXUPDEF_CALL(__type, __name, __args...) \
39 extern __type ___f_##__name(__args); \
40 extern unsigned ___fs_##__name[3];
41 #define BTFIXUPDEF_CALL_CONST(__type, __name, __args...) \
42 extern __type ___f_##__name(__args) __attribute_const__; \
43 extern unsigned ___fs_##__name[3];
44 #define BTFIXUP_CALL(__name) ___f_##__name
46 #define BTFIXUPDEF_BLACKBOX(__name) \
47 extern unsigned ___bs_##__name[2];
51 #define BTFIXUPDEF_SIMM13(__name) \
52 static inline unsigned int ___sf_##__name(void) __attribute_const__; \
53 extern unsigned ___ss_##__name[2]; \
54 static inline unsigned int ___sf_##__name(void) { \
56 __asm__ ("or %%g0, ___s_" #__name ", %0" : "=r"(ret)); \
59 #define BTFIXUPDEF_SIMM13_INIT(__name,__val) \
60 static inline unsigned int ___sf_##__name(void) __attribute_const__; \
61 extern unsigned ___ss_##__name[2]; \
62 static inline unsigned int ___sf_##__name(void) { \
64 __asm__ ("or %%g0, ___s_" #__name "__btset_" #__val ", %0" : "=r"(ret));\
73 #define BTFIXUPDEF_HALF(__name) \
74 static inline unsigned int ___af_##__name(void) __attribute_const__; \
75 extern unsigned ___as_##__name[2]; \
76 static inline unsigned int ___af_##__name(void) { \
78 __asm__ ("or %%g0, ___a_" #__name ", %0" : "=r"(ret)); \
81 #define BTFIXUPDEF_HALF_INIT(__name,__val) \
82 static inline unsigned int ___af_##__name(void) __attribute_const__; \
83 extern unsigned ___as_##__name[2]; \
84 static inline unsigned int ___af_##__name(void) { \
86 __asm__ ("or %%g0, ___a_" #__name "__btset_" #__val ", %0" : "=r"(ret));\
92 #define BTFIXUPDEF_SETHI(__name) \
93 static inline unsigned int ___hf_##__name(void) __attribute_const__; \
94 extern unsigned ___hs_##__name[2]; \
95 static inline unsigned int ___hf_##__name(void) { \
97 __asm__ ("sethi %%hi(___h_" #__name "), %0" : "=r"(ret)); \
100 #define BTFIXUPDEF_SETHI_INIT(__name,__val) \
101 static inline unsigned int ___hf_##__name(void) __attribute_const__; \
102 extern unsigned ___hs_##__name[2]; \
103 static inline unsigned int ___hf_##__name(void) { \
105 __asm__ ("sethi %%hi(___h_" #__name "__btset_" #__val "), %0" : \
112 #define BTFIXUPDEF_INT(__name) \
113 extern unsigned char ___i_##__name; \
114 extern unsigned ___is_##__name[2];
128 #define BTFIXUPSET_CALL(__name, __addr, __insn) \
130 ___fs_##__name[0] |= 1; \
131 ___fs_##__name[1] = (unsigned long)__addr; \
132 ___fs_##__name[2] = __insn; \
135 #define BTFIXUPSET_BLACKBOX(__name, __func) \
137 ___bs_##__name[0] |= 1; \
138 ___bs_##__name[1] = (unsigned long)__func; \
141 #define BTFIXUPCOPY_CALL(__name, __from) \
143 ___fs_##__name[0] |= 1; \
144 ___fs_##__name[1] = ___fs_##__from[1]; \
145 ___fs_##__name[2] = ___fs_##__from[2]; \
148 #define BTFIXUPSET_SIMM13(__name, __val) \
150 ___ss_##__name[0] |= 1; \
151 ___ss_##__name[1] = (unsigned)__val; \
154 #define BTFIXUPCOPY_SIMM13(__name, __from) \
156 ___ss_##__name[0] |= 1; \
157 ___ss_##__name[1] = ___ss_##__from[1]; \
160 #define BTFIXUPSET_HALF(__name, __val) \
162 ___as_##__name[0] |= 1; \
163 ___as_##__name[1] = (unsigned)__val; \
166 #define BTFIXUPCOPY_HALF(__name, __from) \
168 ___as_##__name[0] |= 1; \
169 ___as_##__name[1] = ___as_##__from[1]; \
172 #define BTFIXUPSET_SETHI(__name, __val) \
174 ___hs_##__name[0] |= 1; \
175 ___hs_##__name[1] = (unsigned)__val; \
178 #define BTFIXUPCOPY_SETHI(__name, __from) \
180 ___hs_##__name[0] |= 1; \
181 ___hs_##__name[1] = ___hs_##__from[1]; \
184 #define BTFIXUPSET_INT(__name, __val) \
186 ___is_##__name[0] |= 1; \
187 ___is_##__name[1] = (unsigned)__val; \
190 #define BTFIXUPCOPY_INT(__name, __from) \
192 ___is_##__name[0] |= 1; \
193 ___is_##__name[1] = ___is_##__from[1]; \
196 #define BTFIXUPVAL_CALL(__name) \
197 ((unsigned long)___fs_##__name[1])
203 #define BTFIXUP_SETHI(__name) %hi(___h_ ## __name)
204 #define BTFIXUP_SETHI_INIT(__name,__val) %hi(___h_ ## __name ## __btset_ ## __val)