Lines Matching refs:opcode

63 static void (*msg_cb)(uint32_t opcode, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf);
1000 cid = (uint16_t)(op->opcode & 0xffff); in bt_mesh_vnd_mod_msg_cid_check()
1008 mod->vnd.company, mod->vnd.id, op->opcode); in bt_mesh_vnd_mod_msg_cid_check()
1326 void bt_mesh_msg_cb_set(void (*cb)(uint32_t opcode, struct bt_mesh_msg_ctx *ctx, in bt_mesh_msg_cb_set() argument
1392 uint32_t opcode, const struct bt_mesh_model **model) in find_op() argument
1404 if (BT_MESH_MODEL_OP_LEN(opcode) < 3) { in find_op()
1411 cid = (uint16_t)(opcode & 0xffff); in find_op()
1427 if (op->opcode == opcode) { in find_op()
1437 static int get_opcode(struct net_buf_simple *buf, uint32_t *opcode) in get_opcode() argument
1447 *opcode = net_buf_simple_pull_u8(buf); in get_opcode()
1455 *opcode = net_buf_simple_pull_be16(buf); in get_opcode()
1463 *opcode = net_buf_simple_pull_u8(buf) << 16; in get_opcode()
1468 *opcode |= net_buf_simple_pull_le16(buf); in get_opcode()
1476 const struct bt_mesh_elem *elem, uint32_t opcode) in element_model_recv() argument
1483 op = find_op(elem, opcode, &model); in element_model_recv()
1485 LOG_DBG("No OpCode 0x%08x for elem 0x%02x", opcode, elem->rt->addr); in element_model_recv()
1501 LOG_ERR("Too short message for OpCode 0x%08x", opcode); in element_model_recv()
1504 LOG_ERR("Invalid message size for OpCode 0x%08x", opcode); in element_model_recv()
1525 uint32_t opcode; in bt_mesh_model_recv() local
1536 if (get_opcode(buf, &opcode) < 0) { in bt_mesh_model_recv()
1541 LOG_DBG("OpCode 0x%08x", opcode); in bt_mesh_model_recv()
1552 err = element_model_recv(ctx, buf, elem, opcode); in bt_mesh_model_recv()
1560 err_elem = element_model_recv(ctx, buf, elem, opcode); in bt_mesh_model_recv()
1566 msg_cb(opcode, ctx, buf); in bt_mesh_model_recv()