Home
last modified time | relevance | path

Searched refs:rsp (Results 76 – 100 of 152) sorted by relevance

1234567

/Zephyr-latest/samples/bluetooth/peripheral_esp/src/
Dmain.c194 struct read_es_measurement_rp rsp; in read_es_measurement() local
196 rsp.flags = sys_cpu_to_le16(value->flags); in read_es_measurement()
197 rsp.sampling_function = value->sampling_func; in read_es_measurement()
198 sys_put_le24(value->meas_period, rsp.measurement_period); in read_es_measurement()
199 sys_put_le24(value->update_interval, rsp.update_interval); in read_es_measurement()
200 rsp.application = value->application; in read_es_measurement()
201 rsp.measurement_uncertainty = value->meas_uncertainty; in read_es_measurement()
203 return bt_gatt_attr_read(conn, attr, buf, len, offset, &rsp, in read_es_measurement()
204 sizeof(rsp)); in read_es_measurement()
/Zephyr-latest/subsys/bluetooth/host/
Dhci_core.c374 struct net_buf **rsp) in bt_hci_cmd_send_sync() argument
462 if (rsp) { in bt_hci_cmd_send_sync()
463 *rsp = buf; in bt_hci_cmd_send_sync()
474 struct net_buf *rsp; in bt_hci_le_rand() local
487 err = bt_hci_cmd_send_sync(BT_HCI_OP_LE_RAND, NULL, &rsp); in bt_hci_le_rand()
492 rp = (void *)rsp->data; in bt_hci_le_rand()
495 net_buf_unref(rsp); in bt_hci_le_rand()
506 struct net_buf *rsp; in bt_hci_le_read_max_data_len() local
509 err = bt_hci_cmd_send_sync(BT_HCI_OP_LE_READ_MAX_DATA_LEN, NULL, &rsp); in bt_hci_le_read_max_data_len()
515 rp = (void *)rsp->data; in bt_hci_le_read_max_data_len()
[all …]
Datt.c788 struct bt_att_error_rsp *rsp; in send_err_rsp() local
796 buf = bt_att_chan_create_pdu(chan, BT_ATT_OP_ERROR_RSP, sizeof(*rsp)); in send_err_rsp()
801 rsp = net_buf_add(buf, sizeof(*rsp)); in send_err_rsp()
802 rsp->request = req; in send_err_rsp()
803 rsp->handle = sys_cpu_to_le16(handle); in send_err_rsp()
804 rsp->error = err; in send_err_rsp()
812 struct bt_att_exchange_mtu_rsp *rsp; in att_mtu_req() local
843 rsp = net_buf_add(pdu, sizeof(*rsp)); in att_mtu_req()
844 rsp->mtu = sys_cpu_to_le16(mtu_server); in att_mtu_req()
964 struct bt_att_exchange_mtu_rsp *rsp; in att_mtu_rsp() local
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/
Dtest_suite_bt_settings_enabled.c72 struct net_buf **rsp) in bt_hci_cmd_send_sync_custom_fake() argument
79 zassert_not_null(rsp, "'%s()' was called with incorrect '%s' value", func_name, "rsp"); in bt_hci_cmd_send_sync_custom_fake()
81 *rsp = &hci_cmd_rsp; in bt_hci_cmd_send_sync_custom_fake()
Dtest_suite_bt_privacy_enabled.c46 struct net_buf **rsp) in bt_hci_cmd_send_sync_custom_fake() argument
53 zassert_not_null(rsp, "'%s()' was called with incorrect '%s' value", func_name, "rsp"); in bt_hci_cmd_send_sync_custom_fake()
55 *rsp = &hci_cmd_rsp; in bt_hci_cmd_send_sync_custom_fake()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cap.c150 void *rsp, uint16_t *rsp_len) in btp_cap_supported_commands() argument
152 struct btp_cap_read_supported_commands_rp *rp = rsp; in btp_cap_supported_commands()
164 void *rsp, uint16_t *rsp_len) in btp_cap_discover() argument
231 void *rsp, uint16_t *rsp_len) in btp_cap_unicast_setup_ase() argument
282 void *rsp, uint16_t *rsp_len) in btp_cap_unicast_audio_start() argument
340 void *rsp, uint16_t *rsp_len) in btp_cap_unicast_audio_update() argument
407 void *rsp, uint16_t *rsp_len) in btp_cap_unicast_audio_stop() argument
460 void *rsp, uint16_t *rsp_len) in btp_cap_broadcast_source_setup_stream() argument
497 void *rsp, uint16_t *rsp_len) in btp_cap_broadcast_source_setup_subgroup() argument
600 void *rsp, uint16_t *rsp_len) in btp_cap_broadcast_source_setup() argument
[all …]
Dbtp_csip.c22 void *rsp, uint16_t *rsp_len) in btp_csip_supported_commands() argument
24 struct btp_csip_read_supported_commands_rp *rp = rsp; in btp_csip_supported_commands()
174 void *rsp, uint16_t *rsp_len) in btp_csip_discover() argument
218 static uint8_t btp_csip_set_coordinator_lock(const void *cmd, uint16_t cmd_len, void *rsp, in btp_csip_set_coordinator_lock() argument
249 static uint8_t btp_csip_set_coordinator_release(const void *cmd, uint16_t cmd_len, void *rsp, in btp_csip_set_coordinator_release() argument
281 void *rsp, uint16_t *rsp_len) in btp_csip_start_ordered_access() argument
Dbtp_bap_unicast.c327 struct bt_bap_qos_cfg_pref *const pref, struct bt_bap_ascs_rsp *rsp) in lc3_config() argument
339 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_CONF_REJECTED, in lc3_config()
352 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_NO_MEM, BT_BAP_ASCS_REASON_NONE); in lc3_config()
376 struct bt_bap_qos_cfg_pref *const pref, struct bt_bap_ascs_rsp *rsp) in lc3_reconfig() argument
386 struct bt_bap_ascs_rsp *rsp) in lc3_qos() argument
417 struct bt_bap_ascs_rsp *rsp = (struct bt_bap_ascs_rsp *)user_data; in data_func_cb() local
421 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED, data->type); in data_func_cb()
429 struct bt_bap_ascs_rsp *rsp) in lc3_enable() argument
436 err = bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in lc3_enable()
446 static int lc3_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in lc3_start() argument
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Davctp.c79 struct net_buf *rsp; in avctp_l2cap_recv() local
114 rsp = bt_avctp_create_pdu(session, BT_AVCTP_RESPONSE, in avctp_l2cap_recv()
117 if (!rsp) { in avctp_l2cap_recv()
120 return bt_avctp_send(session, rsp); in avctp_l2cap_recv()
/Zephyr-latest/doc/connectivity/networking/api/
Dhttp_client.rst59 static void response_cb(struct http_response *rsp,
64 LOG_INF("Partial data received (%zd bytes)", rsp->data_len);
66 LOG_INF("All the data received (%zd bytes)", rsp->data_len);
69 LOG_INF("Response status %s", rsp->http_status);
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcap_acceptor_test.c458 struct bt_bap_ascs_rsp *rsp) in unicast_server_config() argument
467 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_NO_MEM, BT_BAP_ASCS_REASON_NONE); in unicast_server_config()
484 struct bt_bap_ascs_rsp *rsp) in unicast_server_reconfig() argument
492 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_CONF_UNSUPPORTED, BT_BAP_ASCS_REASON_NONE); in unicast_server_reconfig()
499 struct bt_bap_ascs_rsp *rsp) in unicast_server_qos() argument
510 struct bt_bap_ascs_rsp *rsp = (struct bt_bap_ascs_rsp *)user_data; in ascs_data_func_cb() local
514 *rsp = BT_BAP_ASCS_RSP(BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED, data->type); in ascs_data_func_cb()
522 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_enable() argument
526 return bt_audio_data_parse(meta, meta_len, ascs_data_func_cb, rsp); in unicast_server_enable()
529 static int unicast_server_start(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) in unicast_server_start() argument
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_core.c34 void *rsp, uint16_t *rsp_len) in supported_commands() argument
36 struct btp_core_read_supported_commands_rp *rp = rsp; in supported_commands()
49 void *rsp, uint16_t *rsp_len) in supported_services() argument
51 struct btp_core_read_supported_services_rp *rp = rsp; in supported_services()
117 void *rsp, uint16_t *rsp_len) in register_service() argument
267 void *rsp, uint16_t *rsp_len) in unregister_service() argument
Dbtp_gatt.c221 void *rsp, uint16_t *rsp_len) in supported_commands() argument
223 struct btp_gatt_read_supported_commands_rp *rp = rsp; in supported_commands()
289 void *rsp, uint16_t *rsp_len) in add_service() argument
292 struct btp_gatt_add_service_rp *rp = rsp; in add_service()
494 void *rsp, uint16_t *rsp_len) in add_characteristic() argument
497 struct btp_gatt_add_characteristic_rp *rp = rsp; in add_characteristic()
683 void *rsp, uint16_t *rsp_len) in add_descriptor() argument
686 struct btp_gatt_add_descriptor_rp *rp = rsp; in add_descriptor()
754 void *rsp, uint16_t *rsp_len) in add_included() argument
757 struct btp_gatt_add_included_service_rp *rp = rsp; in add_included()
[all …]
/Zephyr-latest/subsys/net/lib/http/headers/
Dserver_internal.h46 bool http_response_is_final(struct http_response_ctx *rsp, enum http_data_status status);
47 bool http_response_is_provided(struct http_response_ctx *rsp);
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dtest_suite_invalid_cases.c91 struct net_buf **rsp) in bt_hci_cmd_send_sync_custom_fake() argument
98 zassert_not_null(rsp, "'%s()' was called with incorrect '%s' value", func_name, "rsp"); in bt_hci_cmd_send_sync_custom_fake()
100 *rsp = &hci_cmd_rsp; in bt_hci_cmd_send_sync_custom_fake()
Dtest_suite_bt_settings_enabled.c76 struct net_buf **rsp) in bt_hci_cmd_send_sync_custom_fake() argument
83 zassert_not_null(rsp, "'%s()' was called with incorrect '%s' value", func_name, "rsp"); in bt_hci_cmd_send_sync_custom_fake()
85 *rsp = &hci_cmd_rsp; in bt_hci_cmd_send_sync_custom_fake()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_init/src/
Dtest_suite_setup_static_random_identity.c43 struct net_buf **rsp) in bt_hci_cmd_send_sync_custom_fake() argument
57 zassert_not_null(rsp, "'%s()' was called with incorrect '%s' value", func_name, "rsp"); in bt_hci_cmd_send_sync_custom_fake()
59 *rsp = &hci_cmd_rsp; in bt_hci_cmd_send_sync_custom_fake()
/Zephyr-latest/subsys/bluetooth/mesh/
Ddfu_cli.c717 struct bt_mesh_dfu_target_status *rsp = cli->req.params; in handle_status() local
719 rsp->status = status; in handle_status()
720 rsp->phase = phase; in handle_status()
722 rsp->ttl = net_buf_simple_pull_u8(buf); in handle_status()
723 rsp->effect = net_buf_simple_pull_u8(buf) & BIT_MASK(5); in handle_status()
724 rsp->timeout_base = net_buf_simple_pull_le16(buf); in handle_status()
725 rsp->blob_id = net_buf_simple_pull_le64(buf); in handle_status()
726 rsp->img_idx = net_buf_simple_pull_u8(buf); in handle_status()
731 rsp->ttl = 0U; in handle_status()
732 rsp->effect = BT_MESH_DFU_EFFECT_NONE; in handle_status()
[all …]
/Zephyr-latest/subsys/net/lib/dns/
Ddns_sd.c740 struct dns_header *rsp = (struct dns_header *)buf; in dns_sd_handle_ptr_query() local
744 memset(rsp, 0, sizeof(*rsp)); in dns_sd_handle_ptr_query()
778 rsp->ancount++; in dns_sd_handle_ptr_query()
787 rsp->arcount++; in dns_sd_handle_ptr_query()
796 rsp->arcount++; in dns_sd_handle_ptr_query()
806 rsp->arcount++; in dns_sd_handle_ptr_query()
818 rsp->arcount++; in dns_sd_handle_ptr_query()
823 rsp->flags = htons(BIT(15) | BIT(10)); in dns_sd_handle_ptr_query()
824 rsp->ancount = htons(rsp->ancount); in dns_sd_handle_ptr_query()
825 rsp->arcount = htons(rsp->arcount); in dns_sd_handle_ptr_query()
[all …]
/Zephyr-latest/arch/x86/core/intel64/
Dcoredump.c23 uint64_t rsp; member
80 arch_blk.r.rsp = esf->rsp; in arch_coredump_info_dump()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Drpr_cli.h215 struct bt_mesh_rpr_link *rsp);
227 struct bt_mesh_rpr_link *rsp);
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/
Dmain.c101 struct ec_host_cmd_response_header *rsp = (struct ec_host_cmd_response_header *)tx_buf; in test_hello() local
114 memset(rsp, 0, RSP_HEADER_SIZE); in test_hello()
115 rsp->data_len = sizeof(EC_HELLO_STR); in test_hello()
116 rsp->prtcl_ver = 3; in test_hello()
117 rsp->result = 0; in test_hello()
119 rsp->checksum = cal_checksum(tx_buf, sizeof(tx_buf)); in test_hello()
/Zephyr-latest/subsys/usb/device/class/
Dbluetooth.c364 struct net_buf *rsp; in vs_read_usb_transport_mode() local
367 rsp = bt_hci_cmd_complete_create(BT_HCI_OP_VS_READ_USB_TRANSPORT_MODE, in vs_read_usb_transport_mode()
369 rp = net_buf_add(rsp, sizeof(*rp)); in vs_read_usb_transport_mode()
373 net_buf_add_u8(rsp, BT_HCI_VS_USB_H2_MODE); in vs_read_usb_transport_mode()
374 net_buf_add_u8(rsp, BT_HCI_VS_USB_H4_MODE); in vs_read_usb_transport_mode()
376 k_fifo_put(&tx_queue, rsp); in vs_read_usb_transport_mode()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c277 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument
313 if (rsp) { in send_cmd()
314 *rsp = cmd_rsp; in send_cmd()
337 static void le_read_buffer_size_complete(struct net_buf *rsp) in le_read_buffer_size_complete() argument
339 struct bt_hci_rp_le_read_buffer_size *rp = (void *)rsp->data; in le_read_buffer_size_complete()
345 net_buf_unref(rsp); in le_read_buffer_size_complete()
494 struct net_buf *rsp; in prepare_controller() local
497 send_cmd(BT_HCI_OP_LE_READ_BUFFER_SIZE, NULL, &rsp); in prepare_controller()
498 le_read_buffer_size_complete(rsp); in prepare_controller()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http1.c212 static int http1_dynamic_response(struct http_client_ctx *client, struct http_response_ctx *rsp, in http1_dynamic_response() argument
218 if (client->http1_headers_sent && (rsp->header_count > 0 || rsp->status != 0)) { in http1_dynamic_response()
225 if (rsp->status == 0) { in http1_dynamic_response()
226 rsp->status = 200; in http1_dynamic_response()
229 ret = http1_send_headers(client, rsp->status, rsp->headers, rsp->header_count, in http1_dynamic_response()
239 if (rsp->body != NULL && rsp->body_len > 0) { in http1_dynamic_response()
240 ret = snprintk(tmp, sizeof(tmp), "%zx\r\n", rsp->body_len); in http1_dynamic_response()
246 ret = http_server_sendall(client, rsp->body, rsp->body_len); in http1_dynamic_response()

1234567