Searched refs:BIT_MASK (Results 1 – 17 of 17) sorted by relevance
6 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) macro29 unsigned long mask = BIT_MASK(nr); in __clear_bit()37 unsigned long mask = BIT_MASK(nr); in __set_bit()
90 #define BT_MESH_PUB_PERIOD_100MS(steps) ((steps) & BIT_MASK(6))100 #define BT_MESH_PUB_PERIOD_SEC(steps) (((steps) & BIT_MASK(6)) | (1 << 6))111 #define BT_MESH_PUB_PERIOD_10SEC(steps) (((steps) & BIT_MASK(6)) | (2 << 6))122 #define BT_MESH_PUB_PERIOD_10MIN(steps) (((steps) & BIT_MASK(6)) | (3 << 6))
216 #define BT_MESH_TRANSMIT_COUNT(transmit) (((transmit) & (u8_t)BIT_MASK(3)))
13 #define TRANS_CTL_OP_MASK ((u8_t)BIT_MASK(7))
91 period = K_MSEC((mod->pub->period & BIT_MASK(6)) * 100); in bt_mesh_model_pub_period_get()95 period = K_SECONDS(mod->pub->period & BIT_MASK(6)); in bt_mesh_model_pub_period_get()99 period = K_SECONDS((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()103 period = K_MINUTES((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
49 #define PDU_TYPE(data) (data[0] & BIT_MASK(6))62 #define PDU_HDR(sar, type) (sar << 6 | (type & BIT_MASK(6)))
777 #define RSSI_FACT(crit) (((crit) >> 5) & (u8_t)BIT_MASK(2))778 #define RECV_WIN_FACT(crit) (((crit) >> 3) & (u8_t)BIT_MASK(2))779 #define MIN_QUEUE_SIZE_LOG(crit) ((crit) & (u8_t)BIT_MASK(3))
54 #define AID_MASK ((u8_t)(BIT_MASK(6)))1252 … (net_rx->seq - ((((net_rx->seq & BIT_MASK(14)) - seq_zero)) & BIT_MASK(13)))); in trans_seg()
43 #define PDU_TYPE(data) (data[0] & BIT_MASK(6))56 #define PDU_HDR(sar, type) (sar << 6 | (type & BIT_MASK(6)))
1154 cred_flag = ((pub_app_idx >> 12) & BIT_MASK(1)); in mod_pub_set()1155 pub_app_idx &= BIT_MASK(12); in mod_pub_set()1298 cred_flag = ((pub_app_idx >> 12) & BIT_MASK(1)); in mod_pub_va_set()1299 pub_app_idx &= BIT_MASK(12); in mod_pub_va_set()
698 unprov_dev[i].bearer = add_dev->bearer & BIT_MASK(2); in bt_mesh_provisioner_add_unprov_dev()699 unprov_dev[i].flags = flags & BIT_MASK(3); in bt_mesh_provisioner_add_unprov_dev()719 unprov_dev[i].bearer = add_dev->bearer & BIT_MASK(2); in bt_mesh_provisioner_add_unprov_dev()720 unprov_dev[i].flags = flags & BIT_MASK(3); in bt_mesh_provisioner_add_unprov_dev()
172 out[0] = tmp[15] & BIT_MASK(6); in bt_mesh_k4()
483 param->pub->app_idx &= BIT_MASK(12); in mod_pub_status()
142 (((int) (get_buffer >> (bits_left -= (nbits)))) & BIT_MASK(nbits))145 (((int) (get_buffer >> (bits_left - (nbits)))) & BIT_MASK(nbits))572 #define BIT_MASK(nbits) ((1<<(nbits))-1) macro577 #define BIT_MASK(nbits) bmask[nbits] macro
49 #define bt_acl_handle(h) ((h) & BIT_MASK(12))51 #define bt_acl_flags_pb(f) ((f) & BIT_MASK(2))218 #define BT_OGF(opcode) (((opcode) >> 10) & BIT_MASK(6))220 #define BT_OCF(opcode) ((opcode) & BIT_MASK(10))
222 #define BIT_MASK(n) (BIT(n) - 1) macro
9517 cp->ch_map[4] = chan_map[4] & BIT_MASK(5); in bt_le_set_chan_map()9524 ch_map[4] = chan_map[4] & BIT_MASK(5); in bt_le_set_chan_map()
Completed in 77 milliseconds