Searched refs:bitmask (Results 1 – 3 of 3) sorted by relevance
/system/core/include/cutils/ |
D | bitops.h | 54 static inline void bitmask_init(unsigned int *bitmask, int num_bits) in bitmask_init() argument 56 memset(bitmask, 0, BITS_TO_WORDS(num_bits)*sizeof(unsigned int)); in bitmask_init() 59 static inline int bitmask_ffz(unsigned int *bitmask, int num_bits) in bitmask_ffz() argument 65 bit = ffs(~bitmask[i]); in bitmask_ffz() 78 static inline int bitmask_weight(unsigned int *bitmask, int num_bits) in bitmask_weight() argument 84 weight += __builtin_popcount(bitmask[i]); in bitmask_weight() 88 static inline void bitmask_set(unsigned int *bitmask, int bit) in bitmask_set() argument 90 bitmask[BIT_WORD(bit)] |= BIT_MASK(bit); in bitmask_set() 93 static inline void bitmask_clear(unsigned int *bitmask, int bit) in bitmask_clear() argument 95 bitmask[BIT_WORD(bit)] &= ~BIT_MASK(bit); in bitmask_clear() [all …]
|
/system/bt/btcore/src/ |
D | device_class.c | 55 static bool device_class_get_major_service_(const bt_device_class_t *dc, int bitmask); 56 static void device_class_clr_major_service_(bt_device_class_t *dc, int bitmask); 57 static void device_class_set_major_service_(bt_device_class_t *dc, int bitmask); 148 static bool device_class_get_major_service_(const bt_device_class_t *dc, int bitmask) { in device_class_get_major_service_() argument 149 return (DC(dc)->major_service & bitmask); in device_class_get_major_service_() 152 static void device_class_clr_major_service_(bt_device_class_t *dc, int bitmask) { in device_class_clr_major_service_() argument 153 DC(dc)->major_service &= ~bitmask; in device_class_clr_major_service_() 156 static void device_class_set_major_service_(bt_device_class_t *dc, int bitmask) { in device_class_set_major_service_() argument 157 DC(dc)->major_service |= bitmask; in device_class_set_major_service_()
|
/system/bt/service/doc/ |
D | IBluetoothGattClientCallback.txt | 49 * |characteristic_id| structure. |properties| contains the bitmask of GATT
|