/Zephyr-latest/subsys/mgmt/mcumgr/smp/src/ |
D | smp.c | 334 void *req, void *rsp, int status, const char *rsn) in smp_on_err() argument 341 if (rsp == NULL) { in smp_on_err() 342 rsp = req; in smp_on_err() 347 cbor_nb_writer_init(streamer->writer, rsp); in smp_on_err() 352 streamer->smpt->functions.output(rsp); in smp_on_err() 353 rsp = NULL; in smp_on_err() 358 smp_free_buf(rsp, streamer->smpt); in smp_on_err() 384 void *rsp; in smp_process_request_packet() local 397 rsp = NULL; in smp_process_request_packet() 420 rsp = smp_alloc_rsp(req, streamer->smpt); in smp_process_request_packet() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfu_srv.c | 149 NET_BUF_SIMPLE_DEFINE(rsp, BT_MESH_TX_SDU_MAX); in handle_info_get() 150 bt_mesh_model_msg_init(&rsp, BT_MESH_DFU_OP_UPDATE_INFO_STATUS); in handle_info_get() 151 net_buf_simple_add_u8(&rsp, srv->img_count); in handle_info_get() 152 net_buf_simple_add_u8(&rsp, idx); in handle_info_get() 166 if (net_buf_simple_tailroom(&rsp) + BT_MESH_MIC_SHORT < entry_len) { in handle_info_get() 170 net_buf_simple_add_u8(&rsp, srv->imgs[idx].fwid_len); in handle_info_get() 171 net_buf_simple_add_mem(&rsp, srv->imgs[idx].fwid, in handle_info_get() 177 net_buf_simple_add_u8(&rsp, len); in handle_info_get() 178 net_buf_simple_add_mem(&rsp, srv->imgs[idx].uri, len); in handle_info_get() 180 net_buf_simple_add_u8(&rsp, 0); in handle_info_get() [all …]
|
D | dfd_srv.c | 172 rsp, BT_MESH_MODEL_BUF_LEN(BT_MESH_DFD_OP_RECEIVERS_LIST, in handle_receivers_get() 174 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_RECEIVERS_LIST); in handle_receivers_get() 176 net_buf_simple_add_le16(&rsp, srv->target_cnt); in handle_receivers_get() 177 net_buf_simple_add_le16(&rsp, first); in handle_receivers_get() 182 for (i = 0; i < cnt && net_buf_simple_tailroom(&rsp) >= 5 + BT_MESH_MIC_SHORT; i++) { in handle_receivers_get() 186 &rsp, ((t->blob.addr & BIT_MASK(15)) | in handle_receivers_get() 191 net_buf_simple_add_u8(&rsp, t->img_idx); in handle_receivers_get() 194 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in handle_receivers_get() 214 BT_MESH_MODEL_BUF_DEFINE(rsp, BT_MESH_DFD_OP_CAPABILITIES_STATUS, 17); in handle_capabilities_get() 215 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_CAPABILITIES_STATUS); in handle_capabilities_get() [all …]
|
D | health_cli.c | 200 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_health_cli_attention_get() local 207 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, attention ? &rsp : NULL); in bt_mesh_health_cli_attention_get() 221 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_health_cli_attention_set() local 228 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_attention ? &rsp : NULL); in bt_mesh_health_cli_attention_set() 252 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_health_cli_period_get() local 259 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, divisor ? &rsp : NULL); in bt_mesh_health_cli_period_get() 273 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_health_cli_period_set() local 280 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_divisor ? &rsp : NULL); in bt_mesh_health_cli_period_set() 310 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_health_cli_fault_test() local 317 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, &rsp); in bt_mesh_health_cli_fault_test() [all …]
|
D | rpr_srv.c | 155 BT_MESH_MODEL_BUF_DEFINE(rsp, RPR_OP_SCAN_STATUS, 4); in scan_status_send() 156 bt_mesh_model_msg_init(&rsp, RPR_OP_SCAN_STATUS); in scan_status_send() 157 net_buf_simple_add_u8(&rsp, status); in scan_status_send() 158 net_buf_simple_add_u8(&rsp, srv.scan.state); in scan_status_send() 159 net_buf_simple_add_u8(&rsp, srv.scan.max_devs); in scan_status_send() 160 net_buf_simple_add_u8(&rsp, timeout); in scan_status_send() 162 bt_mesh_model_send(srv.mod, ctx, &rsp, NULL, NULL); in scan_status_send() 542 BT_MESH_MODEL_BUF_DEFINE(rsp, RPR_OP_SCAN_CAPS_STATUS, 2); in handle_scan_caps_get() 543 bt_mesh_model_msg_init(&rsp, RPR_OP_SCAN_CAPS_STATUS); in handle_scan_caps_get() 544 net_buf_simple_add_u8(&rsp, CONFIG_BT_MESH_RPR_SRV_SCANNED_ITEMS_MAX); in handle_scan_caps_get() [all …]
|
D | blob_srv.c | 469 goto rsp; in handle_xfer_start() 479 goto rsp; in handle_xfer_start() 489 goto rsp; in handle_xfer_start() 500 goto rsp; in handle_xfer_start() 506 goto rsp; in handle_xfer_start() 513 goto rsp; in handle_xfer_start() 531 goto rsp; in handle_xfer_start() 544 goto rsp; in handle_xfer_start() 553 goto rsp; in handle_xfer_start() 562 rsp: in handle_xfer_start() [all …]
|
D | od_priv_proxy_cli.c | 60 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_od_priv_proxy_cli_get() local 70 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, val_rsp ? &rsp : NULL); in bt_mesh_od_priv_proxy_cli_get() 76 const struct bt_mesh_msg_rsp_ctx rsp = { in bt_mesh_od_priv_proxy_cli_set() local 88 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, val_rsp ? &rsp : NULL); in bt_mesh_od_priv_proxy_cli_set()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 472 void *rsp, uint16_t *rsp_len) in supported_commands() argument 474 struct btp_mesh_read_supported_commands_rp *rp = rsp; in supported_commands() 779 void *rsp, uint16_t *rsp_len) in dfu_srv_apply() argument 791 void *rsp, uint16_t *rsp_len) in priv_beacon_get() argument 809 void *rsp, uint16_t *rsp_len) in priv_beacon_set() argument 828 void *rsp, uint16_t *rsp_len) in priv_gatt_proxy_get() argument 846 void *rsp, uint16_t *rsp_len) in priv_gatt_proxy_set() argument 865 void *rsp, uint16_t *rsp_len) in priv_node_id_get() argument 885 void *rsp, uint16_t *rsp_len) in priv_node_id_set() argument 904 void *rsp, uint16_t *rsp_len) in proxy_private_identity_enable() argument [all …]
|
D | btp_gap.c | 238 void *rsp, uint16_t *rsp_len) in supported_commands() argument 240 struct btp_gap_read_supported_commands_rp *rp = rsp; in supported_commands() 285 void *rsp, uint16_t *rsp_len) in controller_index_list() argument 287 struct btp_gap_read_controller_index_list_rp *rp = rsp; in controller_index_list() 298 void *rsp, uint16_t *rsp_len) in controller_info() argument 300 struct btp_gap_read_controller_info_rp *rp = rsp; in controller_info() 435 void *rsp, uint16_t *rsp_len) in get_oob_sc_local_data() argument 437 struct btp_gap_oob_sc_get_local_data_rp *rp = rsp; in get_oob_sc_local_data() 449 void *rsp, uint16_t *rsp_len) in set_oob_sc_remote_data() argument 469 void *rsp, uint16_t *rsp_len) in set_powered() argument [all …]
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_unicast.c | 113 struct bt_bap_ascs_rsp *rsp) in unicast_server_config_cb() argument 124 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_NO_MEM, BT_BAP_ASCS_REASON_NONE); in unicast_server_config_cb() 141 struct bt_bap_ascs_rsp *rsp) in unicast_server_reconfig_cb() argument 151 struct bt_bap_ascs_rsp *rsp) in unicast_server_qos_cb() argument 161 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_enable_cb() argument 168 static int unicast_server_start_cb(struct bt_bap_stream *bap_stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_start_cb() argument 176 struct bt_bap_ascs_rsp *rsp; member 192 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_metadata_cb() argument 195 .rsp = rsp, in unicast_server_metadata_cb() 209 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED, in unicast_server_metadata_cb() [all …]
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | bap_unicast_sr.c | 204 struct bt_bap_qos_cfg_pref *const pref, struct bt_bap_ascs_rsp *rsp) in lc3_config() argument 213 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_NO_MEM, BT_BAP_ASCS_REASON_NONE); in lc3_config() 230 struct bt_bap_qos_cfg_pref *const pref, struct bt_bap_ascs_rsp *rsp) in lc3_reconfig() argument 236 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_CONF_UNSUPPORTED, BT_BAP_ASCS_REASON_NONE); in lc3_reconfig() 243 struct bt_bap_ascs_rsp *rsp) in lc3_qos() argument 253 struct bt_bap_ascs_rsp *rsp) in lc3_enable() argument 260 static int lc3_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_start() argument 285 struct bt_bap_ascs_rsp *rsp = (struct bt_bap_ascs_rsp *)user_data; in data_func_cb() local 289 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED, data->type); in data_func_cb() 298 struct bt_bap_ascs_rsp *rsp) in lc3_metadata() argument [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | smp_null.c | 45 struct bt_smp_pairing_fail *rsp; in bt_smp_recv() local 63 rsp = net_buf_add(buf, sizeof(*rsp)); in bt_smp_recv() 64 rsp->reason = BT_SMP_ERR_PAIRING_NOTSUPP; in bt_smp_recv()
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_native_posix_adapt.c | 436 struct usbip_submit_rsp rsp; in usbip_send_common() local 440 rsp.common.command = htonl(USBIP_RET_SUBMIT); in usbip_send_common() 441 rsp.common.seqnum = htonl(seqnum_global); in usbip_send_common() 442 rsp.common.devid = htonl(0); in usbip_send_common() 443 rsp.common.direction = htonl(ep_dir); in usbip_send_common() 444 rsp.common.ep = htonl(ep_idx); in usbip_send_common() 446 rsp.status = htonl(0); in usbip_send_common() 447 rsp.actual_length = htonl(data_len); in usbip_send_common() 448 rsp.start_frame = htonl(0); in usbip_send_common() 449 rsp.number_of_packets = htonl(0); in usbip_send_common() [all …]
|
/Zephyr-latest/tests/bluetooth/hci_codecs_info/src/ |
D | main.c | 76 struct net_buf *rsp; in ZTEST() local 87 err = bt_hci_cmd_send_sync(BT_HCI_OP_READ_CODECS_V2, NULL, &rsp); in ZTEST() 91 codecs = (const struct bt_hci_rp_read_codecs_v2 *)rsp->data; in ZTEST() 129 net_buf_unref(rsp); in ZTEST() 180 struct net_buf *rsp; in ZTEST() local 198 buf, &rsp); in ZTEST() 203 rp = (struct bt_hci_rp_read_codec_capabilities *)rsp->data; in ZTEST() 262 struct net_buf *rsp; in ZTEST() local 281 err = bt_hci_cmd_send_sync(BT_HCI_OP_READ_CTLR_DELAY, buf, &rsp); in ZTEST() 286 rp = (struct bt_hci_rp_read_ctlr_delay *)rsp->data; in ZTEST()
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_bus_spi.c | 106 char *rsp, size_t rlen) in eswifi_spi_request() argument 113 LOG_DBG("cmd=%p (%u byte), rsp=%p (%u byte)", cmd, clen, rsp, rlen); in eswifi_spi_request() 167 memset(rsp + offset, 0, to_read); in eswifi_spi_request() 168 eswifi_spi_read(eswifi, rsp + offset, to_read); in eswifi_spi_request() 193 char *rsp; in eswifi_spi_read_msg() local 200 ret = eswifi_at_cmd_rsp(eswifi, cmd, &rsp); in eswifi_spi_read_msg() 207 if (strncmp(rsp, startstr, sizeof(endstr) - 1)) { in eswifi_spi_read_msg() 216 eswifi_async_msg(eswifi, rsp + sizeof(endstr) - 1, msg_len); in eswifi_spi_read_msg()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_unicast_server.c | 103 struct bt_bap_ascs_rsp rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_SUCCESS, in bt_bap_unicast_server_reconfig() local 111 err = unicast_server_cb->reconfig(stream, ep->dir, codec_cfg, &ep->qos_pref, &rsp); in bt_bap_unicast_server_reconfig() 152 struct bt_bap_ascs_rsp rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_SUCCESS, in bt_bap_unicast_server_metadata() local 161 err = unicast_server_cb->metadata(stream, meta, meta_len, &rsp); in bt_bap_unicast_server_metadata() 168 LOG_ERR("Metadata failed: err %d, code %u, reason %u", err, rsp.code, rsp.reason); in bt_bap_unicast_server_metadata()
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | l2cap_br.c | 491 struct bt_l2cap_info_rsp *rsp; in l2cap_br_info_rsp() local 508 if (buf->len < sizeof(*rsp)) { in l2cap_br_info_rsp() 520 rsp = net_buf_pull_mem(buf, sizeof(*rsp)); in l2cap_br_info_rsp() 521 result = sys_le16_to_cpu(rsp->result); in l2cap_br_info_rsp() 528 type = sys_le16_to_cpu(rsp->type); in l2cap_br_info_rsp() 594 struct bt_l2cap_info_rsp *rsp; in l2cap_br_info_req() local 613 rsp = net_buf_add(rsp_buf, sizeof(*rsp)); in l2cap_br_info_req() 617 rsp->type = sys_cpu_to_le16(BT_L2CAP_INFO_FEAT_MASK); in l2cap_br_info_req() 618 rsp->result = sys_cpu_to_le16(BT_L2CAP_INFO_SUCCESS); in l2cap_br_info_req() 620 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp) + sizeof(uint32_t)); in l2cap_br_info_req() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_has.c | 20 void *rsp, uint16_t *rsp_len) in has_supported_commands() argument 22 struct btp_has_read_supported_commands_rp *rp = rsp; in has_supported_commands() 37 void *rsp, uint16_t *rsp_len) in has_set_active_index() argument 49 void *rsp, uint16_t *rsp_len) in has_set_preset_name() argument 66 void *rsp, uint16_t *rsp_len) in has_remove_preset() argument 100 void *rsp, uint16_t *rsp_len) in has_add_preset() argument 123 void *rsp, uint16_t *rsp_len) in has_set_properties() argument
|
D | btp_bap.c | 64 void *rsp, uint16_t *rsp_len) in btp_ascs_supported_commands() argument 66 struct btp_ascs_read_supported_commands_rp *rp = rsp; in btp_ascs_supported_commands() 195 void *rsp, uint16_t *rsp_len) in pacs_supported_commands() argument 197 struct btp_pacs_read_supported_commands_rp *rp = rsp; in pacs_supported_commands() 212 void *rsp, uint16_t *rsp_len) in pacs_update_characteristic() argument 254 void *rsp, uint16_t *rsp_len) in pacs_set_location() argument 266 void *rsp, uint16_t *rsp_len) in pacs_set_available_contexts() argument 283 void *rsp, uint16_t *rsp_len) in pacs_set_supported_contexts() argument 329 void *rsp, uint16_t *rsp_len) in btp_bap_supported_commands() argument 331 struct btp_bap_read_supported_commands_rp *rp = rsp; in btp_bap_supported_commands() [all …]
|
D | btp_hap.c | 21 static uint8_t read_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp, in read_supported_commands() argument 24 struct btp_hap_read_supported_commands_rp *rp = rsp; in read_supported_commands() 39 static uint8_t ha_init(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in ha_init() argument 121 static uint8_t hauc_init(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in hauc_init() argument 155 static uint8_t iac_init(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in iac_init() argument 167 static uint8_t iac_discover(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in iac_discover() argument 186 static uint8_t iac_set_alert(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in iac_set_alert() argument 205 static uint8_t hauc_discover(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in hauc_discover() argument
|
D | btp_ccp.c | 27 void *rsp, uint16_t *rsp_len) in ccp_supported_commands() argument 29 struct btp_ccp_read_supported_commands_rp *rp = rsp; in ccp_supported_commands() 308 void *rsp, uint16_t *rsp_len) in ccp_discover_tbs() argument 324 void *rsp, uint16_t *rsp_len) in ccp_accept_call() argument 340 void *rsp, uint16_t *rsp_len) in ccp_terminate_call() argument 357 void *rsp, uint16_t *rsp_len) in ccp_originate_call() argument 373 void *rsp, uint16_t *rsp_len) in ccp_read_call_state() argument 388 static uint8_t ccp_read_bearer_name(const void *cmd, uint16_t cmd_len, void *rsp, in ccp_read_bearer_name() argument 409 static uint8_t ccp_read_bearer_uci(const void *cmd, uint16_t cmd_len, void *rsp, in ccp_read_bearer_uci() argument 430 static uint8_t ccp_read_bearer_tech(const void *cmd, uint16_t cmd_len, void *rsp, in ccp_read_bearer_tech() argument [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_unicast_server_test.c | 113 struct bt_bap_qos_cfg_pref *const pref, struct bt_bap_ascs_rsp *rsp) in lc3_config() argument 122 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_NO_MEM, BT_BAP_ASCS_REASON_NONE); in lc3_config() 139 struct bt_bap_qos_cfg_pref *const pref, struct bt_bap_ascs_rsp *rsp) in lc3_reconfig() argument 144 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_CONF_UNSUPPORTED, BT_BAP_ASCS_REASON_NONE); in lc3_reconfig() 151 struct bt_bap_ascs_rsp *rsp) in lc3_qos() argument 165 struct bt_bap_ascs_rsp *rsp) in lc3_enable() argument 172 static int lc3_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_start() argument 181 struct bt_bap_ascs_rsp *rsp = (struct bt_bap_ascs_rsp *)user_data; in data_func_cb() local 185 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED, data->type); in data_func_cb() 193 struct bt_bap_ascs_rsp *rsp) in lc3_metadata() argument [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_brg.c | 217 struct bt_mesh_brg_cfg_table_status rsp; in bridge_entry_add() local 226 err = bt_mesh_brg_cfg_cli_table_add(0, BRIDGE_ADDR, &entry, &rsp); in bridge_entry_add() 227 if (err || rsp.status || rsp.entry.directions != dir || rsp.entry.net_idx1 != net_idx1 || in bridge_entry_add() 228 rsp.entry.net_idx2 != net_idx2 || rsp.entry.addr1 != src || rsp.entry.addr2 != dst) { in bridge_entry_add() 229 FAIL("Bridging table add failed (err %d) (status %u)", err, rsp.status); in bridge_entry_add() 236 struct bt_mesh_brg_cfg_table_status rsp; in bridge_entry_remove() local 239 &rsp)); in bridge_entry_remove() 240 if (rsp.status) { in bridge_entry_remove() 241 FAIL("Bridging table remove failed (status %u)", rsp.status); in bridge_entry_remove() 346 struct bt_mesh_brg_cfg_table_list rsp = { in bridge_table_verify() local [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/ |
D | main.c | 62 struct net_buf **rsp) in bt_hci_cmd_send_sync_custom_fake() argument 69 zassert_not_null(rsp, "'%s()' was called with incorrect '%s' value", func_name, "rsp"); in bt_hci_cmd_send_sync_custom_fake() 71 *rsp = &hci_cmd_rsp; in bt_hci_cmd_send_sync_custom_fake()
|
/Zephyr-latest/samples/boards/st/bluetooth/interactive_gui/src/ |
D | main.c | 102 struct bt_vendor_rsp_hdr *rsp = (struct bt_vendor_rsp_hdr *) (buffer_out + 1); in parse_cmd() local 105 rsp->vendor_code = VENDOR_CODE_RESPONSE; in parse_cmd() 106 rsp->opcode = hdr->opcode; in parse_cmd() 107 rsp->status = 0; in parse_cmd() 111 rsp->params[0] = KERNEL_VERSION_MAJOR; in parse_cmd() 113 rsp->params[1] = (KERNEL_VERSION_MINOR * 10) + 9; in parse_cmd() 115 rsp->params[1] = (KERNEL_VERSION_MINOR * 10) + KERNEL_PATCHLEVEL; in parse_cmd() 128 rsp->vendor_code = VENDOR_CODE_ERROR; in parse_cmd() 129 rsp->status = BT_HCI_ERR_UNKNOWN_CMD; in parse_cmd() 133 rsp->param_len = sys_cpu_to_le16(len); in parse_cmd()
|