Home
last modified time | relevance | path

Searched defs:bit (Results 1 – 25 of 63) sorted by relevance

123

/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dsupport.h66 #define test_bit(bit, var) ((var) & (1 << (bit))) argument
67 #define set_bit(bit, var) (var) |= 1 << (bit) argument
68 #define clear_bit(bit, var) (var) &= ~(1 << (bit)) argument
70 #define test_and_set_bit(bit, var) \ argument
77 #define test_and_clear_bit(bit, var) \ argument
H A Dbitmap.c56 void ntfs_bit_set(u8 *bitmap, const u64 bit, const u8 new_value) in ntfs_bit_set()
74 char ntfs_bit_get(const u8 *bitmap, const u64 bit) in ntfs_bit_get()
90 char ntfs_bit_get_and_set(u8 *bitmap, const u64 bit, const u8 new_value) in ntfs_bit_get_and_set()
120 int bit, firstbyte, lastbyte, lastbyte_pos, tmp, ret = -1; in ntfs_bitmap_set_bits_in_run() local
H A Dbitmap.h54 static __inline__ int ntfs_bitmap_set_bit(ntfs_attr *na, s64 bit) in ntfs_bitmap_set_bit()
68 static __inline__ int ntfs_bitmap_clear_bit(ntfs_attr *na, s64 bit) in ntfs_bitmap_clear_bit()
H A Dlcnalloc.c148 int bit = *buf & (1 << j); in max_empty_bit_range() local
244 u8 *buf, *byte, bit, writeback; in ntfs_cluster_alloc() local
H A Dmft.c550 s64 pass_end, ll, data_pos, pass_start, ofs, bit; in ntfs_mft_bitmap_find_free_rec() local
1428 s64 ll, bit; in ntfs_mft_rec_alloc() local
1713 s64 ll, bit; in ntfs_mft_record_alloc() local
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBitmapBlock.cpp259 uint32 bit = pos & 0x1F; in _FindNext() local
329 int32 bit = pos & 0x1F; in FindPreviousMarked() local
439 for (int32 bit = 31; bit >= 0; --bit) { in FindLargestUnmarkedRange() local
447 for (int32 bit = 0; bit < 32; ++bit) { in FindLargestUnmarkedRange() local
488 for (int32 bit = 31; bit >= 0; --bit) { in FindLargestUnmarkedRange() local
501 for (int32 bit = 0; bit < 32; ++bit) { in FindLargestUnmarkedRange() local
/haiku/headers/libs/agg/
H A Dagg_bitset_iterator.h42 unsigned bit() const in bit() function
/haiku/src/add-ons/kernel/drivers/audio/echo/generic/
H A DCChannelMask.cpp167 CH_MASK bit; in GetIndexFromMask() local
467 CH_MASK_DSP bit,temp; in SetIndexInMask() local
480 CH_MASK_DSP bit,temp; in ClearIndexInMask() local
498 CH_MASK_DSP temp,bit; in TestIndexInMask() local
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_common.h365 static inline int test_bit(__u8 *bitmap, unsigned int bit) in test_bit()
373 static inline void set_bit(__u8 *bitmap, unsigned int bit) in set_bit()
381 static inline void clear_bit(__u8 *bitmap, unsigned int bit) in clear_bit()
393 unsigned int i, j, bit, count = (nr_bits + 63) >> 6; in find_first_zero_bit() local
/haiku/src/add-ons/input_server/devices/virtio/
H A DVirtioInputDevice.cpp35 inline static void SetBit(Type &val, int bit) {val |= Type(1) << bit;} in SetBit()
38 inline static void ClearBit(Type &val, int bit) {val &= ~(Type(1) << bit);} in ClearBit()
41 inline static void InvertBit(Type &val, int bit) {val ^= Type(1) << bit;} in InvertBit()
44 inline static void SetBitTo(Type &val, int bit, bool isSet) { in SetBitTo()
48 inline static bool IsBitSet(Type val, int bit) { in IsBitSet()
/haiku/src/add-ons/accelerants/common/
H A Di2c.c172 send_bit(const i2c_bus *bus, uint8 bit, int timeout) in send_bit()
301 receive_bit(const i2c_bus *bus, bool *bit, int timeout) in receive_bit()
348 bool bit; in receive_byte() local
/haiku/src/system/libroot/os/arch/sparc/
H A Dfpu_mul.c103 u_int a3, a2, a1, a0, x3, x2, x1, x0, bit, m; local
H A Dfpu_div.c156 u_int q, bit; local
H A Dfpu_sqrt.c190 u_int bit, q, tt; local
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_ether.c96 int bit; in ether_crc32_be() local
/haiku/src/system/kernel/arch/arm/
H A Dsoc_omap3.cpp32 uint32 bit = irq % 32, bank = irq / 32; in EnableInterrupt() local
40 uint32 bit = irq % 32, bank = irq / 32; in DisableInterrupt() local
/haiku/src/bin/network/ping/
H A Dping.c113 #define A(bit) rcvd_tbl[(bit)>>3] /* identify byte in array */ argument
114 #define B(bit) (1 << ((bit) & 0x07)) /* identify bit in byte */ argument
115 #define SET(bit) (A(bit) |= B(bit)) argument
116 #define CLR(bit) (A(bit) &= (~B(bit))) argument
117 #define TST(bit) (A(bit) & B(bit)) argument
H A Dping6.c158 #define A(bit) rcvd_tbl[(bit)>>3] /* identify byte in array */ argument
159 #define B(bit) (1 << ((bit) & 0x07)) /* identify bit in byte */ argument
160 #define SET(bit) (A(bit) |= B(bit)) argument
161 #define CLR(bit) (A(bit) &= (~B(bit))) argument
162 #define TST(bit) (A(bit) & B(bit)) argument
/haiku/src/system/libroot/posix/glibc/wctype/
H A Dwctype.h77 # define _ISwbit(bit) (1 << (bit)) argument
/haiku/src/system/kernel/platform/atari_m68k/
H A Dplatform.cpp211 uint8 bit = 1 << (irq % 8); in EnableIOInterrupt() local
225 uint8 bit = 1 << (irq % 8); in DisableIOInterrupt() local
239 uint8 bit = 1 << (irq % 8); in AcknowledgeIOInterrupt() local
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4_address.cpp223 int8 bit = 0; in ipv4_first_mask_bit() local
249 int8 bit = 0; in ipv4_check_mask() local
/haiku/src/add-ons/accelerants/nvidia/engine/
H A Dnv_i2c.c311 uint8 cnt, bit, byte = 0; in i2c_readbyte() local
334 bool bit; in i2c_writebyte() local
/haiku/src/system/kernel/slab/
H A DHashedObjectCache.cpp24 int bit; in RANGE_MARKER_FUNCTION_BEGIN() local
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6_address.cpp252 for (uint8 bit = 0; bit < 8; bit++) { in ipv6_first_mask_bit() local
282 for (int8 bit = 7; bit >= 0; bit--) { in ipv6_check_mask() local
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DCC.cpp79 int bit = 0; in DecodeBits() local
217 for (int bit = 0; bit < 7; bit++) { in Decode() local

123