Home
last modified time | relevance | path

Searched refs:cmd_code (Results 1 – 25 of 58) sorted by relevance

123

/aosp_15_r20/packages/modules/Bluetooth/system/stack/smp/
Dsmp_utils.cc158 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
160 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
161 static BT_HDR* smp_build_confirm_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
162 static BT_HDR* smp_build_rand_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
163 static BT_HDR* smp_build_pairing_fail(uint8_t cmd_code, tSMP_CB* p_cb);
164 static BT_HDR* smp_build_identity_info_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
165 static BT_HDR* smp_build_encrypt_info_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
166 static BT_HDR* smp_build_security_request(uint8_t cmd_code, tSMP_CB* p_cb);
167 static BT_HDR* smp_build_signing_info_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
168 static BT_HDR* smp_build_central_id_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
[all …]
/aosp_15_r20/external/coreboot/src/ec/google/chromeec/
H A Dec_lpc.c201 cec_command->cmd_code); in google_chromeec_command_v3()
208 rq.command = cec_command->cmd_code | in google_chromeec_command_v3()
235 cec_command->cmd_code); in google_chromeec_command_v3()
240 cec_command->cmd_code = read_byte(EC_LPC_ADDR_HOST_DATA); in google_chromeec_command_v3()
241 if (cec_command->cmd_code) { in google_chromeec_command_v3()
243 cec_command->cmd_code); in google_chromeec_command_v3()
287 u8 cmd_code = cec_command->cmd_code; in google_chromeec_command_v1() local
296 csum = cmd_code + args.flags + args.command_version + args.data_size; in google_chromeec_command_v1()
308 write_byte(cmd_code, EC_LPC_ADDR_HOST_CMD); in google_chromeec_command_v1()
312 cec_command->cmd_code); in google_chromeec_command_v1()
[all …]
H A Dec_i2c.c192 cec_command->cmd_code = EC_RES_INVALID_PARAM; in google_chromeec_command()
198 cmd.command = cec_command->cmd_code; in google_chromeec_command()
208 cec_command->cmd_code = EC_RES_ERROR; in google_chromeec_command()
214 cec_command->cmd_code = EC_RES_ERROR; in google_chromeec_command()
219 cec_command->cmd_code = resp.response; in google_chromeec_command()
228 cec_command->cmd_code = EC_RES_INVALID_RESPONSE; in google_chromeec_command()
232 cec_command->cmd_code = EC_RES_INVALID_CHECKSUM; in google_chromeec_command()
H A Dec.c21 .cmd_code = (c), \
151 .cmd_code = hcmd, in google_chromeec_handle_non_uhepi_cmd()
528 .cmd_code = EC_CMD_FLASH_WRITE, in google_chromeec_flash_write_block()
551 .cmd_code = EC_CMD_EFS_VERIFY, in google_chromeec_efs_verify()
563 if (rv != 0 && (cmd.cmd_code == EC_RES_INVALID_COMMAND)) in google_chromeec_efs_verify()
591 .cmd_code = EC_CMD_CHARGE_STATE, in google_chromeec_read_limit_power_request()
603 if (rv != 0 && (cmd.cmd_code == EC_RES_INVALID_COMMAND || in google_chromeec_read_limit_power_request()
604 cmd.cmd_code == EC_RES_INVALID_PARAM)) { in google_chromeec_read_limit_power_request()
667 .cmd_code = EC_CMD_GET_CROS_BOARD_INFO, in cbi_get_uint32()
745 .cmd_code = EC_CMD_GET_CROS_BOARD_INFO, in cbi_get_string()
[all …]
H A Dvstore.c26 .cmd_code = EC_CMD_VSTORE_INFO, in google_chromeec_vstore_info()
51 .cmd_code = EC_CMD_VSTORE_READ, in google_chromeec_vstore_read()
81 .cmd_code = EC_CMD_VSTORE_WRITE, in google_chromeec_vstore_write()
H A Dcrosec_proto.c88 rq->command = cec_command->cmd_code; in create_proto3_request()
179 cec_command->cmd_code = rs->result; in handle_proto3_response()
234 cec_command->cmd_code = rv; in crosec_command_proto_v3()
/aosp_15_r20/device/google/trout/tools/tracing/client/
DTracingClientTestMain.cpp76 TracingCommand cmd_code = TracingCommand::INVALID_CMD_CODE; in main() local
91 cmd_code = TracingCommand::START_TRACING; in main()
93 cmd_code = TracingCommand::STOP_TRACING; in main()
95 cmd_code = TracingCommand::GET_TRACING_FILE; in main()
141 switch (cmd_code) { in main()
153 << static_cast<int>(cmd_code) << std::endl; in main()
/aosp_15_r20/packages/modules/Bluetooth/system/stack/gatt/
Datt_protocol.cc106 static BT_HDR* attp_build_err_cmd(uint8_t cmd_code, uint16_t err_handle, uint8_t reason) { in attp_build_err_cmd() argument
112 UINT8_TO_STREAM(p, cmd_code); in attp_build_err_cmd()
417 return attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, p_msg->error.reason); in attp_build_sr_msg()
467 static tGATT_STATUS attp_cl_send_cmd(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, uint8_t cmd_code, in attp_cl_send_cmd() argument
469 cmd_code &= ~GATT_AUTH_SIGN_MASK; in attp_cl_send_cmd()
471 if (gatt_tcb_is_cid_busy(tcb, p_clcb->cid) && cmd_code != GATT_HANDLE_VALUE_CONF) { in attp_cl_send_cmd()
472 if (gatt_cmd_enq(tcb, p_clcb, true, cmd_code, p_cmd)) { in attp_cl_send_cmd()
491 if (cmd_code == GATT_HANDLE_VALUE_CONF || cmd_code == GATT_CMD_WRITE) { in attp_cl_send_cmd()
498 if (!gatt_cmd_enq(tcb, p_clcb, false, cmd_code, NULL)) { in attp_cl_send_cmd()
Dgatt_cl.cc1180 static uint8_t gatt_cmd_to_rsp_code(uint8_t cmd_code) { in gatt_cmd_to_rsp_code() argument
1183 if (cmd_code > 1 && cmd_code != GATT_CMD_WRITE) { in gatt_cmd_to_rsp_code()
1184 rsp_code = cmd_code + 1; in gatt_cmd_to_rsp_code()
1261 uint8_t cmd_code = 0; in gatt_client_handle_server_rsp() local
1262 tGATT_CLCB* p_clcb = gatt_cmd_dequeue(tcb, cid, &cmd_code); in gatt_client_handle_server_rsp()
1269 uint8_t rsp_code = gatt_cmd_to_rsp_code(cmd_code); in gatt_client_handle_server_rsp()
/aosp_15_r20/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_av_api.h110 std::function<void(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, BT_HDR* p_pkt)> body{
113 void operator()(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, BT_HDR* p_pkt) { in operator()
114 body(rc_handle, label, cmd_code, p_pkt); in operator()
291 std::function<void(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code, uint8_t* p_data,
295 void operator()(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code, uint8_t* p_data, in operator()
297 body(rc_handle, label, cmd_code, p_data, len); in operator()
Dmock_bta_av_api.cc99 void BTA_AvMetaCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, BT_HDR* p_pkt) { in BTA_AvMetaCmd() argument
101 test::mock::bta_av_api::BTA_AvMetaCmd(rc_handle, label, cmd_code, p_pkt); in BTA_AvMetaCmd()
164 void BTA_AvVendorCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code, uint8_t* p_data, in BTA_AvVendorCmd() argument
167 test::mock::bta_av_api::BTA_AvVendorCmd(rc_handle, label, cmd_code, p_data, len); in BTA_AvVendorCmd()
/aosp_15_r20/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_main.cc276 uint8_t cmd_code, id; in process_l2cap_cmd() local
278 STREAM_TO_UINT8(cmd_code, p); in process_l2cap_cmd()
294 log::warn("cmd_len > pkt_len, pkt_len={}, cmd_len={}, code={}", pkt_len, cmd_len, cmd_code); in process_l2cap_cmd()
298 log::debug("cmd: {}, id:{}, cmd_len:{}", l2cap_command_code_text(cmd_code), id, cmd_len); in process_l2cap_cmd()
303 if (l2c_is_cmd_rejected(cmd_code, id, p_lcb)) { in process_l2cap_cmd()
304 log::warn("Rejected command {} due to bad packet length", cmd_code); in process_l2cap_cmd()
307 log::warn("No need to reject command {} for bad packet len", cmd_code); in process_l2cap_cmd()
312 switch (cmd_code) { in process_l2cap_cmd()
837 log::warn("Bad cmd code: {}", cmd_code); in process_l2cap_cmd()
Dl2c_ble.cc236 uint8_t cmd_code, id; in l2cble_process_sig_cmd() local
252 STREAM_TO_UINT8(cmd_code, p); in l2cble_process_sig_cmd()
259 cmd_code); in l2cble_process_sig_cmd()
263 switch (cmd_code) { in l2cble_process_sig_cmd()
929 log::warn("L2CAP - LE - unknown cmd code: {}", cmd_code); in l2cble_process_sig_cmd()
/aosp_15_r20/external/brotli/c/enc/
H A Dcompress_fragment.c428 uint16_t cmd_bits[128], size_t* cmd_code_numbits, uint8_t* cmd_code, in BrotliCompressFragmentFastImpl() argument
476 BrotliWriteBits(8, cmd_code[i >> 3], storage_ix, storage); in BrotliCompressFragmentFastImpl()
479 BrotliWriteBits(*cmd_code_numbits & 7, cmd_code[*cmd_code_numbits >> 3], in BrotliCompressFragmentFastImpl()
724 cmd_code[0] = 0; in BrotliCompressFragmentFastImpl()
727 cmd_code_numbits, cmd_code); in BrotliCompressFragmentFastImpl()
737 uint16_t cmd_bits[128], size_t* cmd_code_numbits, uint8_t* cmd_code, \
740 cmd_depth, cmd_bits, cmd_code_numbits, cmd_code, storage_ix, storage); \
748 uint16_t cmd_bits[128], size_t* cmd_code_numbits, uint8_t* cmd_code, in FOR_TABLE_BITS_()
766 cmd_code_numbits, cmd_code, storage_ix, storage); \ in FOR_TABLE_BITS_()
/aosp_15_r20/bootable/recovery/install/
H A Dadb_install.cpp70 auto cmd_code = android::base::get_unaligned<uint32_t>(cmd_code_string.c_str()); in ParseMinadbdCommand() local
71 if (cmd_code >= static_cast<uint32_t>(MinadbdCommand::kError)) { in ParseMinadbdCommand()
72 LOG(ERROR) << "Unsupported command code: " << cmd_code; in ParseMinadbdCommand()
76 return static_cast<MinadbdCommand>(cmd_code); in ParseMinadbdCommand()
/aosp_15_r20/external/autotest/client/common_lib/cros/bluetooth/
H A Dbluetooth_socket.py320 cmd_code, argument
340 self.send_command(cmd_code, cmd_index, cmd_data)
360 if code != cmd_code:
363 '0x%04d (expected 0x%04d)' % (code, cmd_code)))
390 if code != cmd_code:
393 '0x%04d (expected 0x%04d)' % (code, cmd_code)))
/aosp_15_r20/external/coreboot/src/soc/sifive/fu740/
H A Dspi.c130 config->ffmt_config.cmd_code); in fu740_spi_setup_ffmt()
142 ffmt.cmd_code = config->ffmt_config.cmd_code; // value of command byte in fu740_spi_setup_ffmt()
/aosp_15_r20/packages/modules/Bluetooth/system/bta/av/
Dbta_av_api.cc449 void BTA_AvVendorCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code, uint8_t* p_data, in BTA_AvVendorCmd() argument
455 p_buf->msg.hdr.ctype = cmd_code; in BTA_AvVendorCmd()
589 void BTA_AvMetaCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, BT_HDR* p_pkt) { in BTA_AvMetaCmd() argument
595 p_buf->rsp_code = cmd_code; in BTA_AvMetaCmd()
/aosp_15_r20/external/crosvm/devices/src/virtio/snd/
H A Dcommon.rs94 pub fn get_virtio_snd_r_pcm_cmd_name(cmd_code: u32) -> &'static str { in get_virtio_snd_r_pcm_cmd_name()
95 match cmd_code { in get_virtio_snd_r_pcm_cmd_name()
/aosp_15_r20/system/nfc/src/nfa/hci/
H A Dnfa_hci_api.cc503 uint8_t cmd_code, uint16_t cmd_size, in NFA_HciSendCommand() argument
523 hci_handle, pipe, cmd_code); in NFA_HciSendCommand()
532 p_msg->cmd_code = cmd_code; in NFA_HciSendCommand()
/aosp_15_r20/external/coreboot/src/mainboard/sifive/hifive-unmatched/
H A Dcbfs_spi.c136 fu740_spi_configs[1].ffmt_config.cmd_code = 0x6b; // quad in boot_device_init()
148 fu740_spi_configs[1].ffmt_config.cmd_code = 0x03; // Normal read in boot_device_init()
/aosp_15_r20/system/nfc/src/nfa/include/
H A Dnfa_hci_api.h215 uint8_t cmd_code; /* HCP CMD id */ member
482 uint8_t cmd_code, uint16_t cmd_size,
/aosp_15_r20/external/coreboot/src/soc/sifive/fu540/
H A Dspi.c229 || (config->cmd_code > 255) in fu540_spi_mmap()
253 ffmt.command_code = config->cmd_code; in fu540_spi_mmap()
/aosp_15_r20/external/cronet/third_party/brotli/enc/
H A Dcompress_fragment.c478 BrotliWriteBits(8, s->cmd_code[i >> 3], storage_ix, storage); in BrotliCompressFragmentFastImpl()
482 s->cmd_code[s->cmd_code_numbits >> 3], storage_ix, storage); in BrotliCompressFragmentFastImpl()
738 s->cmd_code[0] = 0; in BrotliCompressFragmentFastImpl()
740 BuildAndStoreCommandPrefixCode(s, &s->cmd_code_numbits, s->cmd_code); in BrotliCompressFragmentFastImpl()
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/host/sm/
H A Dphase_2_legacy_test.cc125 void Receive128BitCmd(Code cmd_code, const UInt128& value) { in Receive128BitCmd() argument
126 fake_chan()->Receive(Make128BitCmd(cmd_code, value)); in Receive128BitCmd()
129 DynamicByteBuffer Make128BitCmd(Code cmd_code, const UInt128& value) { in Make128BitCmd() argument
131 PacketWriter writer(cmd_code, &buffer); in Make128BitCmd()

123