• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/wlags49_h2/

Lines Matching defs:hcf_16

120 	{ *(hcf_16 FAR*)addr = IN_PORT_WORD( port ); ((hcf_8 FAR*)addr)+=2; }
124 { hcf_16 i = IN_PORT_WORD(port); *((hcf_8 FAR*)addr)++ = (hcf_8)i; *((hcf_8 FAR*)addr)++ = (hcf_8)(i>>8);}
144 { OUT_PORT_WORD( port, *(hcf_16 FAR*)addr ) ; ((hcf_8 FAR*)addr)+=2; }
196 * by combining two Host memory hcf_8 values at a time to a single hcf_16 value to be passed to the NIC and
197 * IN_PORT_STRING_8_16 the single hcf_16 retrieved from the NIC must be split in two hcf_8 values to be stored
202 * hcf_16 IN_PORT_WORD( hcf_16 port )
205 * void OUT_PORT_WORD( hcf_16 port, hcf_16 value)
208 * hcf_16 IN_PORT_DWORD( hcf_16 port )
211 * void OUT_PORT_DWORD( hcf_16 port, hcf_32 value)
246 typedef unsigned short hcf_16;
494 extern hcf_16 CE_IN_PORT_WORD(hcf_32 port);
495 extern void CE_OUT_PORT_WORD(hcf_32 port, hcf_16 value);
496 extern void CE_IN_PORT_STRING(hcf_32 port, void *addr, hcf_16 len);
497 extern void CE_OUT_PORT_STRING(hcf_32 port, void *addr, hcf_16 len);
613 #define IN_PORT_WORD(port) ((hcf_16)_inpw( (hcf_io)(port) ))
617 { *(hcf_16 FAR*)addr = IN_PORT_WORD( port ); ((hcf_8 FAR*)addr)+=2; }
619 { OUT_PORT_WORD( port, *(hcf_16 FAR*)addr ) ; ((hcf_8 FAR*)addr)+=2; }
725 extern hcf_16 IN_PORT_WORD(hcf_16 port);
726 extern void OUT_PORT_WORD(hcf_16 port, hcf_16 value);
727 extern void IN_PORT_STRING_16(hcf_16 port, void *addr, hcf_16 len);
728 extern void OUT_PORT_STRING_16(hcf_16 port, void *addr, hcf_16 len);
855 #define IN_PORT_WORD(port) ((hcf_16)inw( (hcf_io)(port) ))
857 #define OUT_PORT_WORD(port, value) (outw((hcf_16) (value), (hcf_io)(port) ))
906 #define IN_PORT_WORD(port) ((hcf_16)inpw( (hcf_io)(port) ))
907 #define OUT_PORT_WORD(port, value) (outpw( (hcf_io)(port), (hcf_16) (value) ))
910 while ( n-- ) { *(hcf_16*)addr = IN_PORT_WORD( port ); (cast)addr += 2; }
912 while ( n-- ) { OUT_PORT_WORD( port, *(hcf_16*)addr ) ; (cast)addr += 2; }
938 #define IN_PORT_WORD(port) ((hcf_16)read_io_16( (hcf_io)(port) ))
939 #define OUT_PORT_WORD(port, value) (write_io_16( (hcf_io)(port), (hcf_16) (value) ))
942 while ( n-- ) { *(hcf_16*)addr = IN_PORT_WORD( port ); (cast)addr += 2; }
944 while ( n-- ) { OUT_PORT_WORD( port, *(hcf_16*)addr ) ; (cast)addr += 2; }
961 #define OUT_PORT_WORD(port, value) (Hermes_IO_Write( (hcf_8)port, /*(hcf_16)*/(value) ) )
963 * as a consequence the IN_/OUT_PORT_STRING_16 macros use hcf_16* rather than hcf_8 pointers
967 //#define IN_PORT_STRING_16( port, addr, n) while ( n-- ) { *((hcf_16*)addr)++ = IN_PORT_WORD( port ); }
968 //#define OUT_PORT_STRING_16( port, addr, n) while ( n-- ) { OUT_PORT_WORD( port, *((hcf_16*)addr)++ ); }
993 #define IN_PORT_WORD(port) ((hcf_16)inw( (hcf_io)(port) ))
994 #define OUT_PORT_WORD(port, value) (outw((hcf_io)(port), (hcf_16)(value)))
998 while ( n-- ) { *(hcf_16*)addr = IN_PORT_WORD( port ); (cast)addr += 2; }
1000 while ( n-- ) { OUT_PORT_WORD( port, *(hcf_16*)addr ) ; (cast)addr += 2; }
1057 while ( n-- ) { *(hcf_16 FAR*)addr = IN_PORT_WORD( port ); (cast)addr += 2; }
1059 while ( n-- ) { OUT_PORT_WORD( port, *(hcf_16 FAR*)addr ) ; (cast)addr += 2; }
1098 #define OUT_PORT_WORD(port, value) outw( (hcf_io)(port), (hcf_16)(value) )
1099 #define OUT_PORT_DWORD(port, value) outl( (hcf_io)(port), (hcf_16)(value) )
1112 hcf_16 ipw( hcf_16 port );
1113 hcf_8 ipb( hcf_16 port );
1114 void opw( hcf_16 port, hcf_16 value );
1115 void opb( hcf_16 port, hcf_8 value );
1118 #define OUT_PORT_WORD(port, value) opw( (hcf_io)(port), (hcf_16)(value) )
1120 #define IN_PORT_WORD(port) ((hcf_16)_inpw( (hcf_io)(port) ))
1152 { *(hcf_16 FAR*)addr = IN_PORT_WORD( port ); ((hcf_16 FAR*)addr)++; }
1154 { OUT_PORT_WORD( port, *(hcf_16 FAR*)addr ); ((hcf_16 FAR*)addr)++; }
1181 typedef o_uint16_t hcf_16;
1189 asm hcf_16 IN_PORT_WORD(int port)
1200 asm void OUT_PORT_WORD(int port, hcf_16 value)
1213 hcf_16 *d = (volatile hcf_16 *)(addr); \
1216 *d++ = *(volatile hcf_16 *)(port); \
1224 hcf_16 *s = (volatile hcf_16 *)(addr); \
1227 *(volatile hcf_16 *)(port) = *s++; \
1265 static hcf_16 IN_PORT_WORD(int port) {
1266 hcf_16 value = *(volatile hcf_16 *)(port); EIEIO();
1272 { *(volatile hcf_16 *)(port) = SwapBytes(value); EIEIO(); }
1274 #define IN_PORT_WORD(port) (*(volatile hcf_16 *)(port))
1275 #define OUT_PORT_WORD(port, value) (*(volatile hcf_16 *)(port) = (value))
1282 hcf_16 t, *d = (volatile hcf_16 *)(addr); \
1291 hcf_16 t, *s = (volatile hcf_16 *)(addr); \
1336 static hcf_16 IN_PORT_WORD(int port) {
1337 hcf_16 value = *(volatile hcf_16 *)(port); EIEIO();
1348 { *(volatile hcf_16 *)(port) = SwapBytes(value); EIEIO(); }
1354 hcf_16 t; \
1355 volatile hcf_16 *d = (volatile hcf_16 *)(addr); \
1364 hcf_16 t; \
1365 volatile hcf_16 *s = (volatile hcf_16 *)(addr); \
1412 #define IN_PORT_2BYTES(port) (*(hcf_16 *)(port))
1413 static hcf_16 swap_var;
1416 #define OUT_PORT_2BYTES(port, value) (*(hcf_16 *)(port) = (hcf_16)(value))
1421 while ((len)--) {*(hcf_16 *)(addr) = IN_PORT_2BYTES(port); ((cast)addr) += 2; }
1423 while ((len)--) {OUT_PORT_2BYTES((port), *(hcf_16 *)(addr)) ; ((cast)addr) += 2; }
1454 #define OUT_PORT_WORD(port, value) (sysOutWord ((hcf_io)(port), (hcf_16) (value)))
1486 hcf_16 *p; \
1488 for ( p = (hcf_16 *)(buf); p < &( (hcf_16 *)(buf) )[ (int)len ]; p++ ) { \
1495 const hcf_16 *p; \
1497 for ( p = (const hcf_16 *)( buf ); p < &( (const hcf_16 *)(buf) )[ (int)len ]; p++ ) { \
1518 static hcf_16 IN_PORT_WORD(int port) {
1519 hcf_16 value = *(volatile hcf_16 *)(port); EIEIO();
1531 { *(volatile hcf_16 *)(port) = CNV_SHORT_TO_LITTLE(value); EIEIO(); }
1537 volatile hcf_16 *d = (volatile hcf_16 *)(addr); \
1539 *d++ = *(volatile hcf_16 *)(port); \
1546 volatile hcf_16 *s = (volatile hcf_16 *)(addr); \
1548 *(volatile hcf_16 *)(port) = *s++; \
1688 #define OUT_PORT_WORD(port, value) (sysOutWord( (hcf_io)(port), (hcf_16)(value) ))
1690 #define OUT_PORT_DWORD(port, value) (sysOutLong( (hcf_io)(port), (hcf_16)(value) ))
1691 #define IN_PORT_STRING_16(port, dst, n) (sysInWordString((hcf_io)(port), (hcf_16 *)dst, n))
1692 #define OUT_PORT_STRING_16(port, src, n) (sysOutWordString((hcf_io)(port), (hcf_16 *)src, n))
1708 #define CNV_END_INT(w) ( ((hcf_16)(w) & 0x00FF) << 8 | ((hcf_16)(w) & 0xFF00) >> 8 )
1804 #define CNV_END(w) ( ((hcf_16)(w) & 0x00FF) << 8 | ((hcf_16)(w) & 0xFF00) >> 8 )
1821 #define IN_PORT_WORD( port ) *((volatile hcf_16 *)( port ))
1822 #define OUT_PORT_WORD( port, value ) *((volatile hcf_16 *)( port )) = ((hcf_16)( value ))
1827 hcf_16 *d = (hcf_16 *)(addr); \
1828 hcf_16 t; \
1837 hcf_16 *s = (hcf_16 *)(addr); \
1838 hcf_16 t; \
1848 hcf_16 *d = (hcf_16 *)(dst); \
1855 hcf_16 t; \
1857 hcf_16 *s = (hcf_16 *)(src); \
1994 typedef hcf_16 FAR *wci_recordp; // segmented 16-bits or flat 32-bits pointer to 16 bits unit
2006 typedef hcf_16 hcf_io;