Lines Matching refs:gpc
24 #define GPCF(gpc) (gpc & 0x03) argument
34 #define START_LAST_SEG(gpc) (gpc >> 2) argument
35 #define CONT_SEG_INDEX(gpc) (gpc >> 2) argument
37 #define BEARER_CTL(gpc) (gpc >> 2) argument
138 uint8_t gpc; member
483 uint8_t seg = CONT_SEG_INDEX(rx->gpc); in gen_prov_cont()
608 LOG_DBG("len %u last_seg %u total_len %u fcs 0x%02x", buf->len, START_LAST_SEG(rx->gpc), in gen_prov_start()
623 if (START_LAST_SEG(rx->gpc) > 0 && link.rx.buf->len <= 20U) { in gen_prov_start()
629 if (START_LAST_SEG(rx->gpc) != last_seg(link.rx.buf->len)) { in gen_prov_start()
630 LOG_ERR("Invalid SegN (%u, calculated %u)", START_LAST_SEG(rx->gpc), in gen_prov_start()
638 link.rx.last_seg = START_LAST_SEG(rx->gpc); in gen_prov_start()
651 link.rx.seg = seg & ((1 << (START_LAST_SEG(rx->gpc) + 1)) - 1); in gen_prov_start()
662 LOG_DBG("op 0x%02x len %u", BEARER_CTL(rx->gpc), buf->len); in gen_prov_ctl()
664 switch (BEARER_CTL(rx->gpc)) { in gen_prov_ctl()
683 LOG_ERR("Unknown bearer opcode: 0x%02x", BEARER_CTL(rx->gpc)); in gen_prov_ctl()
686 bt_mesh_test_prov_invalid_bearer(BEARER_CTL(rx->gpc)); in gen_prov_ctl()
706 if (buf->len < gen_prov[GPCF(rx->gpc)].min_len) { in gen_prov_recv()
707 LOG_ERR("Too short GPC message type %u", GPCF(rx->gpc)); in gen_prov_recv()
712 gen_prov[GPCF(rx->gpc)].require_link) { in gen_prov_recv()
717 gen_prov[GPCF(rx->gpc)].func(rx, buf); in gen_prov_recv()
979 rx.gpc = net_buf_simple_pull_u8(buf); in bt_mesh_pb_adv_recv()