Searched refs:bit (Results 26 - 50 of 75) sorted by path

123

/haiku/headers/private/interface/
H A DViewPrivate.h97 inline bool IsValid(uint32 bit) const;
169 ViewState::IsValid(uint32 bit) const
171 return valid_flags & bit;
/haiku/src/add-ons/accelerants/common/
H A Di2c.c170 //! Send one bit
172 send_bit(const i2c_bus *bus, uint8 bit, int timeout) argument
176 //TRACE("send_bit(bit = %d)\n", bit & 1);
178 bus->set_signals(bus->cookie, 0, bit & 1);
180 bus->set_signals(bus->cookie, 1, bit & 1);
184 TRACE("%s: Timeout when sending next bit\n", __func__);
189 bus->set_signals(bus->cookie, 0, bit & 1);
269 //! Send slave address, obeying 10-bit addresses and general call addresses
288 // - 1111 0xxx - 10 bit addres
301 receive_bit(const i2c_bus *bus, bool *bit, int timeout) argument
348 bool bit; local
[all...]
/haiku/src/add-ons/accelerants/intel_extreme/
H A Dmode.cpp397 // (use AUX VDD enable bit)
450 iv. Read PCH FDI Receiver ISR ([DevIBX-B+] IIR) for bit lock in bit 8 (retry at least once if no lock)
453 vii. Read PCH FDI Receiver ISR ([DevIBX-B+] IIR) for symbol lock in bit 9 (retry at least once if no
619 // at least a little bit on for now.
650 // The low bit must be masked out because
/haiku/src/add-ons/accelerants/nvidia/engine/
H A Dnv_i2c.c20 //4 - SDA not released for master to generate STOP bit
311 uint8 cnt, bit, byte = 0; local
319 bit = RXBit (BusNR);
320 byte += bit;
334 bool bit; local
342 bit = (tmp & 0x80);
343 TXBit (BusNR, bit);
347 bit = RXBit (BusNR);
348 if (bit) i2c_flag_error (3);
353 return bit;
[all...]
/haiku/src/add-ons/accelerants/radeon_hd/
H A Dencoder.cpp702 int bit; local
703 for (bit = 0; bit < 6; bit++)
704 id[bit] = dpcd_reg_read(dp->auxPin, 0x503 + bit);
/haiku/src/add-ons/input_server/devices/virtio/
H A DVirtioInputDevice.cpp35 inline static void SetBit(Type &val, int bit) {val |= Type(1) << bit;} argument
38 inline static void ClearBit(Type &val, int bit) {val &= ~(Type(1) << bit);} argument
41 inline static void InvertBit(Type &val, int bit) {val ^= Type(1) << bit;} argument
44 inline static void SetBitTo(Type &val, int bit, bool isSet) { argument
45 val ^= ((isSet? -1: 0) ^ val) & (Type(1) << bit);}
48 inline static bool IsBitSet(Type val, int bit) { argument
49 return (val & (Type(1) << bit)) !
[all...]
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/include/
H A Dactypes.h159 * header and must be either 32 or 64. 16-bit ACPICA is no longer
169 * working around problems that some 32-bit compilers have with 64-bit
183 * 16-bit, 32-bit, and 64-bit targets.
189 * UINT8 8-bit (1 byte) unsigned value
190 * UINT16 16-bit (2 byte) unsigned value
191 * UINT32 32-bit (4 byte) unsigned value
192 * UINT64 64-bit (
[all...]
/haiku/src/add-ons/kernel/bus_managers/scsi/
H A Ddevices.cpp259 #define SET_BIT(field, bit) field[(bit) >> 3] |= 1 << ((bit) & 7)
/haiku/src/add-ons/kernel/drivers/graphics/intel_extreme/
H A Dintel_extreme.cpp331 const uint32 bit = intel_get_interrupt_mask(info, pipe, false); local
333 write32(info, regIdentity, identity | bit);
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom440x/dev/bfe/
H A Dif_bfe.c977 /* Reset or clear powerdown control bit */
1170 bfe_wait_bit(struct bfe_softc *sc, u_int32_t reg, u_int32_t bit, argument
1178 if (clear && !(val & bit))
1180 if (!clear && (val & bit))
1186 "BUG! Timeout waiting for bit %08x of register "
1187 "%x to %s.\n", bit, reg, (clear ? "clear" : "set"));
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom570x/dev/bge/
H A Dif_bge.c55 * function in a 32-bit/64-bit 33/66Mhz bus, or a 64-bit/133Mhz bus.
642 uint32_t bit, regbase; local
657 bit = BGE_APE_LOCK_GRANT_DRIVER0;
661 bit = BGE_APE_LOCK_GRANT_DRIVER0;
663 bit = (1 << sc->bge_func_addr);
665 APE_WRITE_4(sc, regbase + 4 * i, bit);
738 uint32_t bit, gnt, req, status; local
761 bit
818 uint32_t bit, gnt; local
5965 bge_stop_block(struct bge_softc *sc, bus_size_t reg, uint32_t bit) argument
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/dev/de/
H A Dif_de.c1692 bit longer anyways) */
1862 * Code the read the SROM and MII bit streams (I2C)
1869 unsigned bit, csr; local
1879 for (bit = 3 + SROM_BITWIDTH + 16; bit > 0; bit--) {
1900 unsigned lastbit, data, bits, bit, csr; local
1907 for (bits = idx|cmdmask, bit = bitwidth + 3; bit > 0; bit
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A De1000_82575.c930 * Set the EEPROM access request bit and wait for EEPROM access grant bit.
931 * Return successful if access grant bit set, else clear the request for
955 DEBUGOUT("Nvm bit banging access error detected and cleared.\n");
965 DEBUGOUT("Nvm bit banging access error detected and cleared.\n");
981 * Stop any current commands to the EEPROM and clear the EEPROM request bit,
994 * e1000_get_cfg_done_82575 - Read config done bit
997 * Read the management control register for the config done bit for
999 * to read the config done bit, so an error is *ONLY* logged and returns
1217 * The link up bit determine
3251 bool bit = 0; local
3274 bool bit = 0; local
[all...]
H A Dif_em.c1424 * Starting with the 82571 chip, bit 31 should be used to
1841 /* Check if we must disable SPEED_MODE bit on PCI-E */
1990 /* check for 64bit BAR */
2045 * Set the bit to enable interrupt
2072 * Set the bit to enable interrupt
2616 * drained a bit. Here we use an arbitrary value of 1500 which will
3082 txdctl |= 1 << 22; /* Reserved bit 22 must always be 1 */
3428 u32 index, bit; local
3431 bit = vtag & 0x1F;
3432 sc->shadow_vfta[index] |= (1 << bit);
3441 u32 index, bit; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/sis900/dev/sis/
H A Dif_sis.c54 * 128-bit multicast hash table. The SiS 900 has a built-in MII-based
56 * Both chips offer the standard bit-bang MII interface as well as
169 * MII bit-bang glue
266 * Feed in each bit and stobe the clock.
435 * Read the MII serial port for the MII bit-bang module.
452 * Write the MII serial port for the MII bit-bang module.
482 * confuse the miibus code a bit during the probe
668 * return the filter bit position
670 * The NatSemi chip has a 512-bit filter, which is
700 int bit, inde local
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/usb_asix/
H A DASIXDevice.cpp229 // the device pushes packets 16bit aligned
626 for (int bit = 0; bit < 8; bit++, data >>= 1) {
/haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/
H A DDavicomDevice.cpp745 for (int bit = 0; bit < 8; bit++, data >>= 1) {
796 // clear/set pass all multicast bit as required
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/
H A Dah_regdomain.c51 * Enumerated Regulatory Domain Information 8 bit values indicate that
52 * the regdomain is really a pair of unitary regdomains. 12 bit values
63 * an 8 bit regdomain value to the individual unitary reg domains
253 IS_BIT_SET(int bit, const uint64_t bitmask[]) argument
258 byteOffset = bit/64;
259 bitnum = bit - byteOffset*64;
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi4965/dev/iwn/
H A Dif_iwn.c1645 /* Set auto clock gate disable bit for HW with OTP shadow RAM. */
1716 /* Correctable ECC error, clear bit. */
2763 * The '2 stream' setup is a bit .. odd.
3766 int bit, shift; local
3768 bit = idx - start;
3770 if (bit >= 64) {
3771 shift = 0x100 - bit;
3772 bit = 0;
3773 } else if (bit <= -64)
3774 bit
3883 int bit, i, idx, shift, start, tx_err; local
[all...]
/haiku/src/add-ons/kernel/drivers/ports/pc_serial/
H A DSerialDevice.cpp331 uint8 bit = op == TTYSETDTR ? MCR_DTR : MCR_RTS; local
333 OrReg8(MCR, bit);
335 MaskReg8(MCR, bit);
344 // XXX: toggle the bit to make VirtualBox happy !?
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DSerialDevice.cpp264 uint8 bit = op == TTYSETDTR ? USB_CDC_CONTROL_SIGNAL_STATE_DTR local
267 fControlOut |= bit;
269 fControlOut &= ~bit;
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DBlockAllocator.cpp268 // the block bitmap is accessed in 32-bit blocks
656 int32 numBits = groups[i].fNumBits, bit = 0;
660 for (int32 j = 0; j < 32 && bit < numBits; j++, bit++) {
669 start = bit;
807 for (uint32 bit = start % bitsPerFullBlock;
808 bit < cached.NumBlockBits(); bit++) {
809 if (!cached.IsUsed(bit)) {
1112 for (uint32 bit
[all...]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBitmapBlock.cpp147 TRACE("BitmapBlock::_Update(): start index: %" B_PRIu32 ", start bit: %"
259 uint32 bit = pos & 0x1F; local
262 uint32 mask = ~((1 << bit) - 1);
265 TRACE("BitmapBlock::_FindNext(): index: %" B_PRIu32 ", bit: %" B_PRIu32
266 ", mask: %" B_PRIx32 ", bits: %" B_PRIx32 "\n", index, bit, mask,
271 // Find a 32 bits block that has a marked bit
275 bit = 0;
301 for (; bit < maxBit; ++bit) {
302 // Find the marked bit
329 int32 bit = pos & 0x1F; local
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dindex.c1002 u32 bit = 1 << (pos % 8); local
1029 byte |= bit;
1031 byte &= ~bit;
1058 int bit; local
1073 for (bit = 0; bit < 8; bit++) {
1074 if (!(bm[byte] & (1 << bit))) {
1075 vcn = ntfs_ibm_pos_to_vcn(icx, byte * 8 + bit);
H A Dlcnalloc.c148 int bit = *buf & (1 << j); local
150 if (bit) {
240 LCN bmp_pos; /* current bit position inside the bitmap */
244 u8 *buf, *byte, bit, writeback; local
340 bit = 1 << (lcn & 7);
342 if (*byte & bit) {
354 /* First free bit is at lcn + bmp_pos. */
368 /* Allocate the bitmap bit. */
369 *byte |= bit;

Completed in 357 milliseconds

123