Lines Matching refs:opcode
228 switch (hdr->opcode) { in control_point_notify_cb()
307 hdr->opcode = BT_HAS_OP_READ_PRESET_REQ; in read_presets_req()
329 static int preset_set(struct bt_has_client *inst, uint8_t opcode, uint8_t index) in preset_set() argument
336 LOG_DBG("conn %p opcode 0x%02x index 0x%02x", (void *)inst->conn, opcode, index); in preset_set()
339 hdr->opcode = opcode; in preset_set()
346 static int preset_set_next_or_prev(struct bt_has_client *inst, uint8_t opcode) in preset_set_next_or_prev() argument
352 LOG_DBG("conn %p opcode 0x%02x", (void *)inst->conn, opcode); in preset_set_next_or_prev()
355 hdr->opcode = opcode; in preset_set_next_or_prev()
914 uint8_t opcode; in bt_has_client_preset_set() local
935 opcode = sync ? BT_HAS_OP_SET_ACTIVE_PRESET_SYNC : BT_HAS_OP_SET_ACTIVE_PRESET; in bt_has_client_preset_set()
937 return preset_set(inst, opcode, index); in bt_has_client_preset_set()
943 uint8_t opcode; in bt_has_client_preset_next() local
960 opcode = sync ? BT_HAS_OP_SET_NEXT_PRESET_SYNC : BT_HAS_OP_SET_NEXT_PRESET; in bt_has_client_preset_next()
962 return preset_set_next_or_prev(inst, opcode); in bt_has_client_preset_next()
968 uint8_t opcode; in bt_has_client_preset_prev() local
985 opcode = sync ? BT_HAS_OP_SET_PREV_PRESET_SYNC : BT_HAS_OP_SET_PREV_PRESET; in bt_has_client_preset_prev()
987 return preset_set_next_or_prev(inst, opcode); in bt_has_client_preset_prev()