Lines Matching refs:bit
456 inline void TLan_ClearBit(u8 bit, u16 port)
458 outb_p(inb_p(port) & ~bit, port);
464 inline int TLan_GetBit(u8 bit, u16 port)
466 return ((int) (inb_p(port) & bit));
472 inline void TLan_SetBit(u8 bit, u16 port)
474 outb_p(inb_p(port) | bit, port);
478 #define TLan_ClearBit( bit, port ) outb_p(inb_p(port) & ~bit, port)
479 #define TLan_GetBit( bit, port ) ((int) (inb_p(port) & bit))
480 #define TLan_SetBit( bit, port ) outb_p(inb_p(port) | bit, port)
483 /* given 6 bytes, view them as 8 6-bit numbers and return the XOR of those */
507 #define DA( a, bit ) ( ( (u8) a[bit/8] ) & ( (u8) ( 1 << bit%8 ) ) )