Lines Matching refs:opcode
62 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument
67 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd()
77 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd()
87 uint16_t opcode; in handle_cmd_complete() local
100 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
108 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
114 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete()
118 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete()
301 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument
305 LOG_DBG("opcode %x", opcode); in send_cmd()
308 cmd = create_cmd(opcode, 0); in send_cmd()
314 active_opcode = opcode; in send_cmd()
397 static void set_event_mask(uint16_t opcode) in set_event_mask() argument
404 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask()
412 send_cmd(opcode, buf, NULL); in set_event_mask()