/Zephyr-latest/tests/bluetooth/host/conn/mocks/ |
D | kernel.c | 11 DEFINE_FAKE_VALUE_FUNC(bool, k_is_in_isr); 12 DEFINE_FAKE_VALUE_FUNC(int, k_poll_signal_raise, struct k_poll_signal *, int); 13 DEFINE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t); 14 DEFINE_FAKE_VALUE_FUNC(unsigned int, k_sem_count_get, struct k_sem *); 16 DEFINE_FAKE_VALUE_FUNC(k_tid_t, k_sched_current_thread_query); 19 DEFINE_FAKE_VALUE_FUNC(int, k_work_cancel_delayable, struct k_work_delayable *); 20 DEFINE_FAKE_VALUE_FUNC(bool, k_work_flush, struct k_work *, struct k_work_sync *); 21 DEFINE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *); 22 DEFINE_FAKE_VALUE_FUNC(int, k_work_submit_to_queue, struct k_work_q *, struct k_work *); 23 DEFINE_FAKE_VALUE_FUNC(int, k_work_reschedule, struct k_work_delayable *, k_timeout_t); [all …]
|
D | hci_core.c | 14 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t); 15 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **); 16 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_le_read_remote_features, struct bt_conn *); 17 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_disconnect, uint16_t, uint8_t); 18 DEFINE_FAKE_VALUE_FUNC(bool, bt_le_conn_params_valid, const struct bt_le_conn_param *); 20 DEFINE_FAKE_VALUE_FUNC(int, bt_send, struct net_buf *); 23 DEFINE_FAKE_VALUE_FUNC(int, bt_le_create_conn, const struct bt_conn *); 24 DEFINE_FAKE_VALUE_FUNC(int, bt_le_create_conn_cancel); 25 DEFINE_FAKE_VALUE_FUNC(int, bt_le_create_conn_synced, const struct bt_conn *, 27 DEFINE_FAKE_VALUE_FUNC(const bt_addr_le_t *, bt_lookup_id_addr, uint8_t, const bt_addr_le_t *); [all …]
|
D | scan.c | 12 DEFINE_FAKE_VALUE_FUNC(int, bt_le_scan_user_add, enum bt_le_scan_user); 13 DEFINE_FAKE_VALUE_FUNC(int, bt_le_scan_user_remove, enum bt_le_scan_user); 14 DEFINE_FAKE_VALUE_FUNC(bool, bt_le_explicit_scanner_running);
|
D | sys_clock.c | 11 DEFINE_FAKE_VALUE_FUNC(k_timepoint_t, sys_timepoint_calc, k_timeout_t); 12 DEFINE_FAKE_VALUE_FUNC(k_timeout_t, sys_timepoint_timeout, k_timepoint_t);
|
D | spinlock.c | 11 DEFINE_FAKE_VALUE_FUNC(bool, z_spin_lock_valid, struct k_spinlock *); 12 DEFINE_FAKE_VALUE_FUNC(bool, z_spin_unlock_valid, struct k_spinlock *);
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | stubs.c | 12 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_rd_client_pause); 13 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_rd_client_resume); 14 DEFINE_FAKE_VALUE_FUNC(struct lwm2m_message *, find_msg, struct coap_pending *, 18 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_send_message_async, struct lwm2m_message *); 21 DEFINE_FAKE_VALUE_FUNC(bool, coap_pending_cycle, struct coap_pending *); 22 DEFINE_FAKE_VALUE_FUNC(size_t, coap_pendings_count, struct coap_pending *, size_t); 23 DEFINE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *, 25 DEFINE_FAKE_VALUE_FUNC(int64_t, engine_observe_shedule_next_event, struct observe_node *, uint16_t, 27 DEFINE_FAKE_VALUE_FUNC(int, handle_request, struct coap_packet *, struct lwm2m_message *); 30 DEFINE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *); [all …]
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_fake.c | 25 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *); 26 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *); 27 DEFINE_FAKE_VALUE_FUNC(unsigned int, regulator_fake_count_voltages, 29 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *, 31 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *, 33 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *, 35 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_set_current_limit, 37 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_get_current_limit, 39 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *, 41 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *, [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_rd_client/src/ |
D | stubs.c | 14 DEFINE_FAKE_VALUE_FUNC(uint8_t, coap_header_get_code, const struct coap_packet *); 32 DEFINE_FAKE_VALUE_FUNC(int, coap_append_option_int, struct coap_packet *, uint16_t, unsigned int); 33 DEFINE_FAKE_VALUE_FUNC(int, coap_packet_append_option, struct coap_packet *, uint16_t, 41 DEFINE_FAKE_VALUE_FUNC(int, coap_packet_append_payload_marker, struct coap_packet *); 42 DEFINE_FAKE_VALUE_FUNC(int, coap_find_options, const struct coap_packet *, uint16_t, 57 DEFINE_FAKE_VALUE_FUNC(uint16_t, coap_next_id); 60 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_engine_start, struct lwm2m_ctx *); 61 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_engine_stop, struct lwm2m_ctx *); 62 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_open_socket, struct lwm2m_ctx *); 63 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *); [all …]
|
/Zephyr-latest/tests/bluetooth/audio/ascs/uut/ |
D | bap_unicast_server.c | 33 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_config, struct bt_conn *, 37 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *, 40 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *, 42 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *, 44 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *, 46 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, struct bt_bap_stream *, 48 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_disable, struct bt_bap_stream *, 50 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *, 52 DEFINE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *,
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_fake.c | 18 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_set_time, const struct device *, const struct rtc_time *); 19 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_get_time, const struct device *, struct rtc_time *); 22 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_supported_fields, const struct device *, uint16_t, 24 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_time, const struct device *, uint16_t, uint16_t, 26 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_time, const struct device *, uint16_t, uint16_t *, 28 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_is_pending, const struct device *, uint16_t); 29 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_callback, const struct device *, uint16_t, 34 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_update_set_callback, const struct device *, 39 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_set_calibration, const struct device *, int32_t); 40 DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_get_calibration, const struct device *, int32_t *);
|
/Zephyr-latest/tests/bluetooth/host/id/mocks/ |
D | adv.c | 11 DEFINE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable, struct bt_le_ext_adv *, bool); 12 DEFINE_FAKE_VALUE_FUNC(struct bt_le_ext_adv *, bt_le_adv_lookup_legacy); 13 DEFINE_FAKE_VALUE_FUNC(uint8_t, bt_le_ext_adv_get_index, struct bt_le_ext_adv *); 14 DEFINE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_legacy, struct bt_le_ext_adv *, bool); 15 DEFINE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_ext, struct bt_le_ext_adv *, bool,
|
D | smp.c | 11 DEFINE_FAKE_VALUE_FUNC(int, bt_smp_irk_get, uint8_t *, uint8_t *); 12 DEFINE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_tk, struct bt_conn *, const uint8_t *); 13 DEFINE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_generate_sc_data, struct bt_le_oob_sc_data *); 14 DEFINE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_sc_data, struct bt_conn *, 16 DEFINE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_get_sc_data, struct bt_conn *,
|
D | kernel.c | 11 DEFINE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *); 12 DEFINE_FAKE_VALUE_FUNC(int, k_work_schedule, struct k_work_delayable *, k_timeout_t); 13 DEFINE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *, 16 DEFINE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *);
|
D | net_buf.c | 14 DEFINE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t); 15 DEFINE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t); 16 DEFINE_FAKE_VALUE_FUNC(void *, net_buf_simple_add_mem, struct net_buf_simple *, const void *,
|
D | hci_core.c | 18 DEFINE_FAKE_VALUE_FUNC(int, bt_unpair, uint8_t, const bt_addr_le_t *); 19 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t); 20 DEFINE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
|
D | scan.c | 11 DEFINE_FAKE_VALUE_FUNC(int, bt_le_scan_set_enable, uint8_t); 12 DEFINE_FAKE_VALUE_FUNC(bool, bt_le_scan_active_scanner_running);
|
/Zephyr-latest/tests/bluetooth/host/crypto/mocks/ |
D | aes.c | 10 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_crypto_init); 11 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t); 12 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_import_key, const psa_key_attributes_t *, const uint8_t *, 14 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_cipher_encrypt, mbedtls_svc_key_id_t, psa_algorithm_t, 16 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_destroy_key, mbedtls_svc_key_id_t);
|
D | prng.c | 10 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_crypto_init); 11 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t);
|
/Zephyr-latest/drivers/can/ |
D | can_fake.c | 27 DEFINE_FAKE_VALUE_FUNC(int, fake_can_start, const struct device *); 29 DEFINE_FAKE_VALUE_FUNC(int, fake_can_stop, const struct device *); 31 DEFINE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *); 33 DEFINE_FAKE_VALUE_FUNC(int, fake_can_set_timing_data, const struct device *, 36 DEFINE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *); 38 DEFINE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t); 40 DEFINE_FAKE_VALUE_FUNC(int, fake_can_send, const struct device *, const struct can_frame *, 43 DEFINE_FAKE_VALUE_FUNC(int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t, 48 DEFINE_FAKE_VALUE_FUNC(int, fake_can_recover, const struct device *, k_timeout_t); 50 DEFINE_FAKE_VALUE_FUNC(int, fake_can_get_state, const struct device *, enum can_state *, [all …]
|
/Zephyr-latest/drivers/stepper/ |
D | fake_stepper_controller.c | 22 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_enable, const struct device *, bool); 24 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_is_moving, const struct device *, bool *); 26 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_move_by, const struct device *, int32_t); 28 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_set_max_velocity, const struct device *, uint32_t); 30 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_set_micro_step_res, const struct device *, 33 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_get_micro_step_res, const struct device *, 36 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_set_reference_position, const struct device *, int32_t); 38 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_get_actual_position, const struct device *, int32_t *); 40 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_move_to, const struct device *, int32_t); 42 DEFINE_FAKE_VALUE_FUNC(int, fake_stepper_run, const struct device *, enum stepper_direction, [all …]
|
/Zephyr-latest/tests/drivers/i2c/i2c_emul/src/ |
D | emulated_target.cpp | 11 DEFINE_FAKE_VALUE_FUNC(int, target_read_requested_##n, struct i2c_target_config *, \ 13 DEFINE_FAKE_VALUE_FUNC(int, target_read_processed_##n, struct i2c_target_config *, \ 15 DEFINE_FAKE_VALUE_FUNC(int, target_write_requested_##n, struct i2c_target_config *); \ 16 DEFINE_FAKE_VALUE_FUNC(int, target_write_received_##n, struct i2c_target_config *, \ 18 DEFINE_FAKE_VALUE_FUNC(int, target_stop_##n, struct i2c_target_config *); \ 19 DEFINE_FAKE_VALUE_FUNC(int, target_buf_read_requested_##n, struct i2c_target_config *, \
|
/Zephyr-latest/drivers/comparator/ |
D | comparator_fake_comp.c | 15 DEFINE_FAKE_VALUE_FUNC(int, 19 DEFINE_FAKE_VALUE_FUNC(int, 24 DEFINE_FAKE_VALUE_FUNC(int, 30 DEFINE_FAKE_VALUE_FUNC(int,
|
/Zephyr-latest/tests/subsys/testsuite/fff_fake_contexts/src/fakes/ |
D | called_API.c | 11 DEFINE_FAKE_VALUE_FUNC(int, called_API_open, const struct called_API_info **); 12 DEFINE_FAKE_VALUE_FUNC(int, called_API_close, const struct called_API_info *);
|
/Zephyr-latest/tests/bluetooth/host/keys/mocks/ |
D | settings.c | 12 DEFINE_FAKE_VALUE_FUNC(int, bt_settings_decode_key, const char *, bt_addr_le_t *); 13 DEFINE_FAKE_VALUE_FUNC(int, settings_name_next, const char *, const char **);
|
D | settings_store.c | 10 DEFINE_FAKE_VALUE_FUNC(int, bt_settings_store_keys, uint8_t, struct bt_addr_le_t *, const void *, 12 DEFINE_FAKE_VALUE_FUNC(int, bt_settings_delete_keys, uint8_t, struct bt_addr_le_t *);
|