/Zephyr-latest/subsys/bindesc/ |
D | bindesc_read.c | 56 static inline int get_entry(struct bindesc_handle *handle, const uint8_t *address, in get_entry() argument 63 if (IS_ENABLED(CONFIG_BINDESC_READ_FLASH) && handle->type == BINDESC_HANDLE_TYPE_FLASH) { in get_entry() 64 flash_retval = flash_read(handle->flash_device, (size_t)address, in get_entry() 65 handle->buffer, BINDESC_ENTRY_HEADER_SIZE); in get_entry() 72 if (((const struct bindesc_entry *)handle->buffer)->len + BINDESC_ENTRY_HEADER_SIZE in get_entry() 73 > sizeof(handle->buffer)) { in get_entry() 77 flash_retval = flash_read(handle->flash_device, in get_entry() 79 handle->buffer + BINDESC_ENTRY_HEADER_SIZE, in get_entry() 80 ((const struct bindesc_entry *)handle->buffer)->len); in get_entry() 86 *entry = (const struct bindesc_entry *)handle->buffer; in get_entry() [all …]
|
/Zephyr-latest/subsys/sensing/ |
D | sensing.c | 18 sensing_sensor_handle_t *handle) in sensing_open_sensor() argument 22 if (sensor_info == NULL || handle == NULL) { in sensing_open_sensor() 28 ret = open_sensor(sensor, (struct sensing_connection **)handle); in sensing_open_sensor() 36 return sensing_register_callback(*handle, cb_list); in sensing_open_sensor() 41 sensing_sensor_handle_t *handle) in sensing_open_sensor_by_dt() argument 46 if (handle == NULL) { in sensing_open_sensor_by_dt() 56 ret = open_sensor(sensor, (struct sensing_connection **)handle); in sensing_open_sensor_by_dt() 61 return sensing_register_callback(*handle, cb_list); in sensing_open_sensor_by_dt() 65 int sensing_close_sensor(sensing_sensor_handle_t *handle) in sensing_close_sensor() argument 67 if (handle == NULL) { in sensing_close_sensor() [all …]
|
/Zephyr-latest/tests/subsys/bindesc/reading/src/ |
D | main.c | 49 static void test_bindesc_read(struct bindesc_handle *handle) in test_bindesc_read() argument 53 bindesc_find_str(handle, BINDESC_ID_KERNEL_VERSION_STRING, &result); in test_bindesc_read() 56 bindesc_find_str(handle, BINDESC_ID_APP_VERSION_STRING, &result); in test_bindesc_read() 59 bindesc_find_str(handle, BINDESC_ID_C_COMPILER_NAME, &result); in test_bindesc_read() 62 bindesc_find_str(handle, BINDESC_ID_C_COMPILER_VERSION, &result); in test_bindesc_read() 68 struct bindesc_handle handle; in ZTEST() local 70 bindesc_open_flash(&handle, 0, flash_dev); in ZTEST() 72 test_bindesc_read(&handle); in ZTEST() 77 struct bindesc_handle handle; in ZTEST() local 79 bindesc_open_ram(&handle, descriptors, sizeof(descriptors)); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/include/ |
D | ll.h | 20 uint8_t ll_adv_set_by_hci_handle_get(uint8_t hci_handle, uint8_t *handle); 22 uint8_t *handle); 23 uint8_t ll_adv_set_hci_handle_get(uint8_t handle); 24 uint8_t ll_adv_iso_by_hci_handle_get(uint8_t hci_handle, uint8_t *handle); 25 uint8_t ll_adv_iso_by_hci_handle_new(uint8_t hci_handle, uint8_t *handle); 28 uint8_t *handle) in ll_adv_set_by_hci_handle_get() argument 30 *handle = hci_handle; in ll_adv_set_by_hci_handle_get() 35 uint8_t *handle) in ll_adv_set_by_hci_handle_get_or_new() argument 37 *handle = hci_handle; in ll_adv_set_by_hci_handle_get_or_new() 41 static inline uint8_t ll_adv_set_hci_handle_get(uint8_t handle) in ll_adv_set_hci_handle_get() argument [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ll_tx_pwr.c | 47 uint16_t handle, uint8_t type, int8_t *tx_pwr_lvl) in ll_tx_pwr_lvl_get() argument 57 handle = 0; in ll_tx_pwr_lvl_get() 62 adv = ull_adv_set_get(handle); in ll_tx_pwr_lvl_get() 80 handle = 0; in ll_tx_pwr_lvl_get() 84 scan = ull_scan_set_get(handle); in ll_tx_pwr_lvl_get() 96 conn = ll_connected_get(handle); in ll_tx_pwr_lvl_get() 130 uint8_t ll_tx_pwr_lvl_set(uint8_t handle_type, uint16_t handle, in ll_tx_pwr_lvl_set() argument 155 handle = 0; in ll_tx_pwr_lvl_set() 160 adv = ull_adv_set_get(handle); in ll_tx_pwr_lvl_set() 177 handle = 0; in ll_tx_pwr_lvl_set() [all …]
|
D | ull_scan_internal.h | 42 uint8_t ull_scan_disable(uint8_t handle, struct ll_scan_set *scan); 48 void ull_scan_term_dequeue(uint8_t handle); 51 struct ll_scan_set *ull_scan_set_get(uint8_t handle); 60 struct ll_scan_set *ull_scan_is_enabled_get(uint8_t handle); 63 struct ll_scan_set *ull_scan_is_disabled_get(uint8_t handle); 70 uint32_t ull_scan_is_enabled(uint8_t handle); 73 uint32_t ull_scan_filter_pol_get(uint8_t handle); 85 struct ll_scan_aux_set *ull_scan_aux_set_get(uint8_t handle);
|
D | ull_iso.c | 96 const uint16_t handle); 98 const uint16_t handle, 166 uint8_t ll_read_iso_tx_sync(uint16_t handle, uint16_t *seq, in ll_read_iso_tx_sync() argument 169 if (IS_CIS_HANDLE(handle)) { in ll_read_iso_tx_sync() 173 cis = ll_conn_iso_stream_get(handle); in ll_read_iso_tx_sync() 187 } else if (IS_ADV_ISO_HANDLE(handle)) { in ll_read_iso_tx_sync() 191 stream_handle = LL_BIS_ADV_IDX_FROM_HANDLE(handle); in ll_read_iso_tx_sync() 201 } else if (IS_SYNC_ISO_HANDLE(handle)) { in ll_read_iso_tx_sync() 214 uint8_t ll_setup_iso_path(uint16_t handle, uint8_t path_dir, uint8_t path_id, in ll_setup_iso_path() argument 239 } else if (IS_CIS_HANDLE(handle)) { in ll_setup_iso_path() [all …]
|
D | ull_scan.c | 59 static uint8_t disable(uint8_t handle); 64 static uint8_t is_scan_update(uint8_t handle, uint16_t duration, 330 uint8_t handle; local 333 for (handle = 0U; handle < BT_CTLR_SCAN_SET; handle++) { 334 (void)disable(handle); 341 ll_scan[handle].lll.phy = 0U; 393 uint8_t handle; local 428 handle = ull_scan_handle_get(scan); 439 ll_scan_ticker_ext[handle].ticks_slot_window = 454 ll_scan_ticker_ext[handle].ticks_slot_window = ticks_interval; [all …]
|
D | ll_feat.c | 52 uint16_t handle; in ll_set_host_feature() local 55 for (handle = 0U; handle < CONFIG_BT_MAX_CONN; handle++) { in ll_set_host_feature() 56 if (ll_connected_get(handle)) { in ll_set_host_feature()
|
D | ull_conn_iso.c | 80 static void disable(uint16_t handle); 114 struct ll_conn_iso_group *ll_conn_iso_group_get(uint16_t handle) in ll_conn_iso_group_get() argument 116 return mem_get(cig_pool, sizeof(struct ll_conn_iso_group), handle); in ll_conn_iso_group_get() 159 struct ll_conn_iso_stream *ll_conn_iso_stream_get(uint16_t handle) in ll_conn_iso_stream_get() argument 161 return mem_get(cis_pool, sizeof(struct ll_conn_iso_stream), handle - in ll_conn_iso_stream_get() 165 struct lll_conn_iso_stream *ull_conn_iso_lll_stream_get(uint16_t handle) in ull_conn_iso_lll_stream_get() argument 169 cis = ll_conn_iso_stream_get(handle); in ull_conn_iso_lll_stream_get() 177 struct ll_conn_iso_stream *ll_iso_stream_connected_get(uint16_t handle) in ll_iso_stream_connected_get() argument 181 if (handle >= CONFIG_BT_CTLR_CONN_ISO_STREAMS + in ll_iso_stream_connected_get() 186 cis = ll_conn_iso_stream_get(handle); in ll_iso_stream_connected_get() [all …]
|
D | ull_peripheral_iso.c | 57 static struct ll_conn *ll_cis_get_acl_awaiting_reply(uint16_t handle, uint8_t *error) in ll_cis_get_acl_awaiting_reply() argument 61 if (!IS_CIS_HANDLE(handle) || ll_conn_iso_stream_get(handle)->group == NULL) { in ll_cis_get_acl_awaiting_reply() 62 LOG_ERR("Unknown CIS handle %u", handle); in ll_cis_get_acl_awaiting_reply() 71 if (handle == cis_handle) { in ll_cis_get_acl_awaiting_reply() 79 LOG_ERR("No connection found for handle %u", handle); in ll_cis_get_acl_awaiting_reply() 99 uint8_t ll_cis_accept(uint16_t handle) in ll_cis_accept() argument 102 struct ll_conn *conn = ll_cis_get_acl_awaiting_reply(handle, &status); in ll_cis_accept() 127 uint8_t ll_cis_reject(uint16_t handle, uint8_t reason) in ll_cis_reject() argument 130 struct ll_conn *acl_conn = ll_cis_get_acl_awaiting_reply(handle, &status); in ll_cis_reject() 179 uint16_t handle; in ull_peripheral_iso_acquire() local [all …]
|
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_chains/src/ |
D | test_add_cte_to_chain.c | 52 uint8_t handle; in ZTEST() local 61 handle = ull_adv_handle_get(adv); in ZTEST() 63 err = ll_df_set_cl_cte_tx_enable(handle, true); in ZTEST() 77 uint8_t handle; in ZTEST() local 87 handle = ull_adv_handle_get(adv); in ZTEST() 89 err = ll_df_set_cl_cte_tx_enable(handle, true); in ZTEST() 103 uint8_t handle; in ZTEST() local 113 handle = ull_adv_handle_get(adv); in ZTEST() 115 err = ll_df_set_cl_cte_tx_enable(handle, true); in ZTEST() 130 uint8_t handle; in ZTEST() local [all …]
|
D | test_remove_cte_from_chain.c | 54 uint8_t handle; in ZTEST() local 62 handle = ull_adv_handle_get(adv); in ZTEST() 64 ll_df_set_cl_cte_tx_enable(handle, true); in ZTEST() 66 err = ll_df_set_cl_cte_tx_enable(handle, false); in ZTEST() 79 uint8_t handle; in ZTEST() local 88 handle = ull_adv_handle_get(adv); in ZTEST() 90 err = ll_df_set_cl_cte_tx_enable(handle, true); in ZTEST() 95 err = ll_df_set_cl_cte_tx_enable(handle, false); in ZTEST() 108 uint8_t handle; in ZTEST() local 117 handle = ull_adv_handle_get(adv); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/ |
D | ull_scan.c | 44 struct ll_scan_set *ull_scan_set_get(uint8_t handle) in ull_scan_set_get() argument 46 if (handle >= BT_CTLR_SCAN_MAX) { in ull_scan_set_get() 50 return &ll_scan[handle]; in ull_scan_set_get() 53 struct ll_scan_set *ull_scan_is_enabled_get(uint8_t handle) in ull_scan_is_enabled_get() argument 57 scan = ull_scan_set_get(handle); in ull_scan_is_enabled_get() 65 struct ll_scan_set *ull_scan_is_disabled_get(uint8_t handle) in ull_scan_is_disabled_get() argument 69 scan = ull_scan_set_get(handle); in ull_scan_is_disabled_get() 89 uint8_t ull_scan_disable(uint8_t handle, struct ll_scan_set *scan) in ull_scan_disable() argument
|
D | ull_sync.c | 35 struct ll_sync_set *ull_sync_set_get(uint16_t handle) in ull_sync_set_get() argument 37 if (handle >= BT_PER_ADV_SYNC_MAX) { in ull_sync_set_get() 41 return &ll_sync[handle]; in ull_sync_set_get() 44 struct ll_sync_set *ull_sync_is_enabled_get(uint16_t handle) in ull_sync_is_enabled_get() argument 48 sync = ull_sync_set_get(handle); in ull_sync_is_enabled_get()
|
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_tx/src/ |
D | test_set_cl_cte_tx_enable.c | 46 cp->handle = adv_handle; in send_set_cl_cte_tx_enable() 73 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, true); in ZTEST() 92 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, true); in ZTEST() 112 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, true); in ZTEST() 116 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, false); in ZTEST() 133 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, true); in ZTEST() 138 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, false); in ZTEST() 153 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, false); in ZTEST() 170 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, true); in ZTEST() 174 err = send_set_cl_cte_tx_enable(g_adv->handle, g_adv->flags, false); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/mocks/src/ |
D | gatt.c | 205 uint16_t handle, uint16_t start_handle, in gatt_foreach_iter() argument 214 if (handle > end_handle) { in gatt_foreach_iter() 219 if (handle < start_handle) { in gatt_foreach_iter() 235 result = func(attr, handle, user_data); in gatt_foreach_iter() 258 if (next->attrs[0].handle <= start_handle) { in foreach_attr_type_dyndb() 266 if (gatt_foreach_iter(attr, attr->handle, start_handle, end_handle, uuid, in foreach_attr_type_dyndb() 290 uint16_t handle = 1; in bt_gatt_foreach_attr_type() local 294 if (handle + static_svc->attr_count < start_handle) { in bt_gatt_foreach_attr_type() 295 handle += static_svc->attr_count; in bt_gatt_foreach_attr_type() 299 for (i = 0; i < static_svc->attr_count; i++, handle++) { in bt_gatt_foreach_attr_type() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/ |
D | ecb.c | 30 cau3_handle_t handle; in ecb_encrypt_be() local 35 handle.keySlot = kCAU3_KeySlot1; in ecb_encrypt_be() 40 handle.taskDone = kCAU3_TaskDonePoll; in ecb_encrypt_be() 43 status = CAU3_AES_SetKey(CAU3, &handle, keyAes, sizeof(keyAes)); in ecb_encrypt_be() 49 status = CAU3_AES_Encrypt(CAU3, &handle, clear_text_be, cipher_text_be); in ecb_encrypt_be() 64 cau3_handle_t handle; in ecb_encrypt() local 77 handle.keySlot = kCAU3_KeySlot1; in ecb_encrypt() 82 handle.taskDone = kCAU3_TaskDonePoll; in ecb_encrypt() 85 status = CAU3_AES_SetKey(CAU3, &handle, keyAes, sizeof(keyAes)); in ecb_encrypt() 91 status = CAU3_AES_Encrypt(CAU3, &handle, clear, cipher); in ecb_encrypt()
|
/Zephyr-latest/samples/tfm_integration/tfm_secure_partition/dummy_partition/ |
D | dummy_partition.c | 28 typedef void (*psa_write_callback_t)(void *handle, uint8_t *digest, 33 psa_write_callback_t callback, void *handle) in tfm_dp_secret_digest() argument 59 callback(handle, digest, digest_size); in tfm_dp_secret_digest() 66 static void psa_write_digest(void *handle, uint8_t *digest, in psa_write_digest() argument 69 psa_write((psa_handle_t)handle, 0, digest, digest_size); in psa_write_digest() 82 num = psa_read(msg->handle, 0, &secret_index, msg->in_size[0]); in tfm_dp_secret_digest_ipc() 89 (void *)msg->handle); in tfm_dp_secret_digest_ipc() 100 psa_reply(msg.handle, PSA_SUCCESS); in dp_signal_handle() 104 psa_reply(msg.handle, status); in dp_signal_handle() 107 psa_reply(msg.handle, PSA_SUCCESS); in dp_signal_handle()
|
/Zephyr-latest/samples/subsys/bindesc/read_bindesc/src/ |
D | main.c | 58 struct bindesc_handle handle; in main() local 89 bindesc_open_memory_mapped_flash(&handle, bindesc_offset); in main() 90 bindesc_foreach(&handle, dump_descriptors_callback, NULL); in main() 92 bindesc_find_str(&handle, BINDESC_ID_KERNEL_VERSION_STRING, &version); in main() 95 bindesc_get_size(&handle, &size); in main() 104 bindesc_open_ram(&handle, buffer, sizeof(buffer)); in main() 107 retval = bindesc_find_str(&handle, 123, &version); in main() 112 bindesc_find_uint(&handle, BINDESC_ID_KERNEL_VERSION_MAJOR, &version_number); in main() 119 bindesc_open_flash(&handle, bindesc_offset, flash); in main() 121 bindesc_find_bytes(&handle, 3, &bytes, &size); in main()
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_esp32.c | 718 int IRAM_ATTR esp_intr_set_in_iram(struct intr_handle_data_t *handle, bool is_in_iram) in esp_intr_set_in_iram() argument 720 if (!handle) { in esp_intr_set_in_iram() 723 struct vector_desc_t *vd = handle->vector_desc; in esp_intr_set_in_iram() 742 int esp_intr_free(struct intr_handle_data_t *handle) in esp_intr_free() argument 746 if (!handle) { in esp_intr_free() 751 esp_intr_disable(handle); in esp_intr_free() 752 if (handle->vector_desc->flags & VECDESC_FL_SHARED) { in esp_intr_free() 754 struct shared_vector_desc_t *svd = handle->vector_desc->shared_vec_info; in esp_intr_free() 759 if (svd == handle->shared_vector_desc) { in esp_intr_free() 764 handle->vector_desc->shared_vec_info = svd->next; in esp_intr_free() [all …]
|
/Zephyr-latest/include/zephyr/sensing/ |
D | sensing.h | 123 sensing_sensor_handle_t handle, 223 sensing_sensor_handle_t *handle); 241 sensing_sensor_handle_t *handle); 250 sensing_sensor_handle_t *handle); 261 sensing_sensor_handle_t handle, 273 sensing_sensor_handle_t handle, 283 sensing_sensor_handle_t handle);
|
/Zephyr-latest/tests/bsim/bluetooth/ll/advx/src/ |
D | main.c | 174 uint16_t handle; in test_advx_main() local 216 handle = 0U; in test_advx_main() 217 err = ll_adv_data_set(handle, sizeof(adv_data), adv_data); in test_advx_main() 224 err = ll_adv_params_set(handle, 0, 0, BT_HCI_ADV_DIRECT_IND, in test_advx_main() 234 err = ll_adv_params_set(handle, 0, ADV_INTERVAL, BT_HCI_ADV_NONCONN_IND, in test_advx_main() 244 err = ll_adv_enable(handle, 1, 0, 0); in test_advx_main() 253 err = ll_adv_enable(handle, 0, 0, 0); in test_advx_main() 260 err = ll_adv_params_set(handle, 0, 0, BT_HCI_ADV_DIRECT_IND, in test_advx_main() 270 handle = 0U; in test_advx_main() 271 err = ll_adv_data_set(handle, sizeof(adv_data1), adv_data1); in test_advx_main() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/shell/ |
D | ll.c | 150 uint16_t handle = 0U; in cmd_advx() local 194 handle = strtoul(argv[2], NULL, 16); in cmd_advx() 195 if (handle >= CONFIG_BT_CTLR_ADV_SET) { in cmd_advx() 209 handle = strtoul(argv[3], NULL, 16); in cmd_advx() 210 if (handle >= CONFIG_BT_CTLR_ADV_SET) { in cmd_advx() 222 handle = strtoul(argv[4], NULL, 16); in cmd_advx() 223 if (handle >= CONFIG_BT_CTLR_ADV_SET) { in cmd_advx() 233 handle = strtoul(argv[5], NULL, 16); in cmd_advx() 234 if (handle >= CONFIG_BT_CTLR_ADV_SET) { in cmd_advx() 241 handle = strtoul(argv[6], NULL, 16); in cmd_advx() [all …]
|
/Zephyr-latest/samples/tfm_integration/tfm_secure_partition/src/ |
D | dummy_partition.c | 20 psa_handle_t handle; in dp_secret_digest() local 30 handle = psa_connect(TFM_DP_SECRET_DIGEST_SID, in dp_secret_digest() 32 if (!PSA_HANDLE_IS_VALID(handle)) { in dp_secret_digest() 36 status = psa_call(handle, PSA_IPC_CALL, in_vec, IOVEC_LEN(in_vec), in dp_secret_digest() 39 psa_close(handle); in dp_secret_digest()
|