/Zephyr-latest/tests/bsim/bluetooth/host/adv/long_ad/src/ |
D | advertiser.c | 22 struct bt_le_adv_param params; in create_adv() local 24 memset(¶ms, 0, sizeof(struct bt_le_adv_param)); in create_adv() 26 params.options |= BT_LE_ADV_OPT_EXT_ADV; in create_adv() 28 params.id = BT_ID_DEFAULT; in create_adv() 29 params.sid = 0; in create_adv() 30 params.interval_min = BT_GAP_ADV_SLOW_INT_MIN; in create_adv() 31 params.interval_max = BT_GAP_ADV_SLOW_INT_MAX; in create_adv() 33 err = bt_le_ext_adv_create(¶ms, NULL, adv); in create_adv()
|
/Zephyr-latest/drivers/dai/intel/hda/ |
D | hda.c | 39 hda->params.channels = config->channels; in dai_hda_set_config_tplg() 43 hda->params.rate = config->rate; in dai_hda_set_config_tplg() 51 struct dai_config *params = (struct dai_config *)dev->config; in dai_hda_config_get() local 59 params->rate = hda->params.rate; in dai_hda_config_get() 60 params->channels = hda->params.channels; in dai_hda_config_get() 62 params->word_size = DAI_INTEL_HDA_DEFAULT_WORD_SIZE; in dai_hda_config_get() 64 *cfg = *params; in dai_hda_config_get()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | wpa_supp_if.c | 482 int nrf_wifi_wpa_supp_scan2(void *if_priv, struct wpa_driver_scan_params *params) in nrf_wifi_wpa_supp_scan2() argument 492 if (!if_priv || !params) { in nrf_wifi_wpa_supp_scan2() 516 if (params->freqs) { in nrf_wifi_wpa_supp_scan2() 517 for (indx = 0; params->freqs[indx]; indx++) { in nrf_wifi_wpa_supp_scan2() 533 if (params->freqs) { in nrf_wifi_wpa_supp_scan2() 534 for (indx = 0; params->freqs[indx]; indx++) { in nrf_wifi_wpa_supp_scan2() 536 params->freqs[indx]; in nrf_wifi_wpa_supp_scan2() 541 if (params->filter_ssids) { in nrf_wifi_wpa_supp_scan2() 542 scan_info->scan_params.num_scan_ssids = params->num_filter_ssids; in nrf_wifi_wpa_supp_scan2() 544 for (indx = 0; indx < params->num_filter_ssids; indx++) { in nrf_wifi_wpa_supp_scan2() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify/src/ |
D | gatt_client_test.c | 105 struct bt_gatt_discover_params *params) in discover_func() argument 115 (void)memset(params, 0, sizeof(*params)); in discover_func() 124 if (params->type == BT_GATT_DISCOVER_PRIMARY && in discover_func() 125 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func() 127 params->uuid = NULL; in discover_func() 128 params->start_handle = attr->handle + 1; in discover_func() 129 params->type = BT_GATT_DISCOVER_CHARACTERISTIC; in discover_func() 131 err = bt_gatt_discover(conn, params); in discover_func() 137 } else if (params->type == BT_GATT_DISCOVER_CHARACTERISTIC) { in discover_func() 176 struct bt_gatt_subscribe_params *params) in test_short_subscribed() argument [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/retry_on_sec_err/client/ |
D | main.c | 25 struct bt_gatt_read_params *params, const void *data, uint16_t len) in gatt_attr_read_cb() argument 36 static struct bt_gatt_read_params params; in gatt_attr_read() local 40 memset(¶ms, 0, sizeof(params)); in gatt_attr_read() 41 params.func = gatt_attr_read_cb; in gatt_attr_read() 42 params.by_uuid.start_handle = BT_ATT_FIRST_ATTRIBUTE_HANDLE; in gatt_attr_read() 43 params.by_uuid.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in gatt_attr_read() 45 params.by_uuid.uuid = &uuid.uuid; in gatt_attr_read() 47 err = bt_gatt_read(conn, ¶ms); in gatt_attr_read()
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/peripheral/src/ |
D | dut_rpa_expired.c | 78 struct bt_le_adv_param params; in create_adv() local 82 memset(¶ms, 0, sizeof(struct bt_le_adv_param)); in create_adv() 84 params.options |= BT_LE_ADV_OPT_EXT_ADV; in create_adv() 85 params.id = id; in create_adv() 86 params.sid = 0; in create_adv() 87 params.interval_min = BT_GAP_ADV_FAST_INT_MIN_1; in create_adv() 88 params.interval_max = BT_GAP_ADV_FAST_INT_MAX_1; in create_adv() 90 err = bt_le_ext_adv_create(¶ms, &cb_adv, adv); in create_adv()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_shell.c | 28 struct ieee802154_req_params params; variable 100 params = (struct ieee802154_req_params){0}; in cmd_ieee802154_associate() 101 params.pan_id = atoi(argv[1]); in cmd_ieee802154_associate() 105 if (parse_extended_address(ext_addr, params.addr) < 0) { in cmd_ieee802154_associate() 110 params.len = IEEE802154_EXT_ADDR_LENGTH; in cmd_ieee802154_associate() 112 params.short_addr = (uint16_t) atoi(ext_addr); in cmd_ieee802154_associate() 113 params.len = IEEE802154_SHORT_ADDR_LENGTH; in cmd_ieee802154_associate() 117 ¶ms, sizeof(struct ieee802154_req_params))) { in cmd_ieee802154_associate() 120 argv[2], params.pan_id); in cmd_ieee802154_associate() 125 "Associated to PAN ID %u\n", params.pan_id); in cmd_ieee802154_associate() [all …]
|
/Zephyr-latest/samples/bluetooth/encrypted_advertising/central/src/ |
D | central_ead.c | 194 struct bt_gatt_read_params *params, const void *data, uint16_t read_len) in gatt_read_cb() argument 198 gatt_read_handle = params->by_uuid.start_handle; in gatt_read_cb() 216 struct bt_gatt_read_params params; in gatt_read() local 220 params.handle_count = 0; in gatt_read() 221 params.by_uuid.start_handle = start_handle; in gatt_read() 222 params.by_uuid.end_handle = end_handle; in gatt_read() 223 params.by_uuid.uuid = uuid; in gatt_read() 224 params.func = gatt_read_cb; in gatt_read() 228 err = bt_gatt_read(conn, ¶ms); in gatt_read() 242 params.handle_count = 1; in gatt_read() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/caching/src/ |
D | gatt_client_test.c | 109 struct bt_gatt_discover_params *params) in discover_func() argument 118 (void)memset(params, 0, sizeof(*params)); in discover_func() 127 if (params->type == BT_GATT_DISCOVER_PRIMARY && in discover_func() 128 bt_uuid_cmp(params->uuid, TEST_SERVICE_UUID) == 0) { in discover_func() 130 params->uuid = NULL; in discover_func() 131 params->start_handle = attr->handle + 1; in discover_func() 132 params->type = BT_GATT_DISCOVER_CHARACTERISTIC; in discover_func() 134 err = bt_gatt_discover(conn, params); in discover_func() 140 } else if (params->type == BT_GATT_DISCOVER_CHARACTERISTIC) { in discover_func() 214 struct bt_gatt_read_params *params, const void *data, in gatt_read_expect_success_cb() argument [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | bs_bt_utils.c | 130 struct bt_le_adv_param params = {}; in create_adv() local 132 params.options |= BT_LE_ADV_OPT_CONN; in create_adv() 133 params.options |= BT_LE_ADV_OPT_EXT_ADV; in create_adv() 135 params.id = BT_ID_DEFAULT; in create_adv() 136 params.sid = 0; in create_adv() 137 params.interval_min = BT_GAP_ADV_FAST_INT_MIN_2; in create_adv() 138 params.interval_max = BT_GAP_ADV_FAST_INT_MAX_2; in create_adv() 140 err = bt_le_ext_adv_create(¶ms, NULL, adv); in create_adv()
|
/Zephyr-latest/tests/bluetooth/df/connection_cte_tx_params/src/ |
D | test_set_conn_cte_tx_params.c | 56 const struct ut_bt_df_conn_cte_tx_params *params) in send_set_conn_cte_tx_params() argument 63 sizeof(*cp) + params->switch_pattern_len); in send_set_conn_cte_tx_params() 72 cp->cte_types = params->cte_types; in send_set_conn_cte_tx_params() 74 dest_ant_ids = net_buf_add(buf, params->switch_pattern_len); in send_set_conn_cte_tx_params() 76 if (params->ant_ids) { in send_set_conn_cte_tx_params() 77 (void)memcpy(dest_ant_ids, params->ant_ids, params->switch_pattern_len); in send_set_conn_cte_tx_params() 79 cp->switch_pattern_len = params->switch_pattern_len; in send_set_conn_cte_tx_params()
|
/Zephyr-latest/tests/net/virtual/src/ |
D | main.c | 656 struct virtual_interface_req_params params = { 0 }; in ZTEST() local 664 params.mtu = MTU; in ZTEST() 667 iface, ¶ms, sizeof(params)); in ZTEST() 669 net_if_get_by_iface(iface), params.mtu, ret); in ZTEST() 676 iface, ¶ms, sizeof(params)); in ZTEST() 678 net_if_get_by_iface(iface), params.mtu, ret); in ZTEST() 683 struct virtual_interface_req_params params = { 0 }; in ZTEST() local 687 params.mtu = 0; in ZTEST() 690 iface, ¶ms, sizeof(params)); in ZTEST() 692 net_if_get_by_iface(iface), params.mtu, ret); in ZTEST() [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_miwu.c | 94 BUILD_ASSERT(offsetof(struct miwu_callback, io_cb.params) + 98 BUILD_ASSERT(offsetof(struct miwu_callback, io_cb.params.cb_type) == 99 offsetof(struct miwu_callback, dev_cb.params.cb_type), 109 if (cb->io_cb.params.cb_type == NPCX_MIWU_CALLBACK_GPIO) { in intc_miwu_dispatch_isr() 110 if (BIT(cb->io_cb.params.wui.bit) & mask) { in intc_miwu_dispatch_isr() 113 npcx_get_gpio_dev(cb->io_cb.params.gpio_port), in intc_miwu_dispatch_isr() 115 cb->io_cb.params.pin_mask); in intc_miwu_dispatch_isr() 118 if (BIT(cb->dev_cb.params.wui.bit) & mask) { in intc_miwu_dispatch_isr() 121 cb->dev_cb.handler(cb->dev_cb.params.source, in intc_miwu_dispatch_isr() 122 &cb->dev_cb.params.wui); in intc_miwu_dispatch_isr() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/bap_broadcast_source/src/ |
D | main.c | 119 subgroup_param[i].params = stream_params + i * streams_per_subgroup; in bap_broadcast_source_test_suite_fixture_init() 131 fixture->param->params = subgroup_param; in bap_broadcast_source_test_suite_fixture_init() 178 free(param->params[0].params[0].data); in bap_broadcast_source_test_suite_after() 179 free(param->params[0].params[0].stream); in bap_broadcast_source_test_suite_after() 180 free(param->params[0].params); in bap_broadcast_source_test_suite_after() 181 free(param->params[0].codec_cfg); in bap_broadcast_source_test_suite_after() 182 free(param->params); in bap_broadcast_source_test_suite_after() 210 for (size_t j = 0u; j < create_param->params[i].params_count; j++) { in ZTEST_F() 212 create_param->params[i].params[j].stream; in ZTEST_F() 251 for (size_t j = 0U; j < create_param->params[i].params_count; j++) { in ZTEST_F() [all …]
|
/Zephyr-latest/samples/net/virtual/src/ |
D | main.c | 231 struct virtual_interface_req_params params = { 0 }; in setup_iface() local 257 params.family = AF_INET6; in setup_iface() 263 net_ipaddr_copy(¶ms.peer6addr, &addr6); in setup_iface() 267 iface, ¶ms, sizeof(params)); in setup_iface() 277 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in setup_iface() 280 iface, ¶ms, sizeof(params)); in setup_iface() 283 net_if_get_by_iface(iface), params.mtu, ret); in setup_iface() 319 params.family = AF_INET; in setup_iface() 325 net_ipaddr_copy(¶ms.peer4addr, &addr4); in setup_iface() 329 iface, ¶ms, sizeof(params)); in setup_iface() [all …]
|
/Zephyr-latest/samples/bluetooth/periodic_sync_rsp/src/ |
D | main.c | 30 struct bt_le_per_adv_sync_subevent_params params; in sync_cb() local 40 params.properties = 0; in sync_cb() 41 params.num_subevents = 1; in sync_cb() 42 params.subevents = subevents; in sync_cb() 45 err = bt_le_per_adv_sync_subevent(sync, ¶ms); in sync_cb() 84 const struct bt_le_per_adv_response_params *params, 149 struct bt_le_per_adv_sync_subevent_params params; in write_timing() local 153 params.properties = 0; in write_timing() 154 params.num_subevents = 1; in write_timing() 155 params.subevents = subevents; in write_timing() [all …]
|
/Zephyr-latest/tests/boards/espressif/ethernet/src/ |
D | main.c | 91 struct net_icmp_ping_params params; in ZTEST() local 106 params.identifier = 1234; in ZTEST() 107 params.sequence = 5678; in ZTEST() 108 params.tc_tos = 1; in ZTEST() 109 params.priority = 2; in ZTEST() 110 params.data = TEST_DATA; in ZTEST() 111 params.data_size = sizeof(TEST_DATA); in ZTEST() 115 ret = net_icmp_send_echo_request(&ctx, iface, (struct sockaddr *)&dst4, ¶ms, NULL); in ZTEST()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/ |
D | wpa_supp_if.h | 25 int nrf_wifi_wpa_supp_scan2(void *if_priv, struct wpa_driver_scan_params *params); 33 int nrf_wifi_wpa_supp_authenticate(void *if_priv, struct wpa_driver_auth_params *params, 36 int nrf_wifi_wpa_supp_associate(void *if_priv, struct wpa_driver_associate_params *params); 131 int nrf_wifi_wpa_supp_init_ap(void *if_priv, struct wpa_driver_associate_params *params); 132 int nrf_wifi_wpa_supp_start_ap(void *if_priv, struct wpa_driver_ap_params *params); 133 int nrf_wifi_wpa_supp_change_beacon(void *if_priv, struct wpa_driver_ap_params *params); 136 int nrf_wifi_wpa_supp_sta_add(void *if_priv, struct hostapd_sta_add_params *params);
|
/Zephyr-latest/tests/lib/cmsis_dsp/bayes/src/ |
D | f32.c | 29 const float32_t *params = (const float32_t *)in_param; in ZTEST() local 38 inst.theta = params; in ZTEST() 39 inst.sigma = params + (class_count * vec_dims); in ZTEST() 40 inst.classPriors = params + (2 * class_count * vec_dims); in ZTEST() 41 inst.epsilon = params[class_count + (2 * class_count * vec_dims)]; in ZTEST()
|
D | f16.c | 31 const float16_t *params = (const float16_t *)in_param; in ZTEST() local 40 inst.theta = params; in ZTEST() 41 inst.sigma = params + (class_count * vec_dims); in ZTEST() 42 inst.classPriors = params + (2 * class_count * vec_dims); in ZTEST() 43 inst.epsilon = params[class_count + (2 * class_count * vec_dims)]; in ZTEST()
|
/Zephyr-latest/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn.c | 420 p.params.subscribe.msg_id = topic->con.msg_id; in mqtt_sn_do_subscribe() 421 p.params.subscribe.qos = topic->qos; in mqtt_sn_do_subscribe() 422 p.params.subscribe.topic_type = topic->type; in mqtt_sn_do_subscribe() 423 p.params.subscribe.dup = dup; in mqtt_sn_do_subscribe() 426 p.params.subscribe.topic.topic_name.data = topic->name; in mqtt_sn_do_subscribe() 427 p.params.subscribe.topic.topic_name.size = topic->namelen; in mqtt_sn_do_subscribe() 431 p.params.subscribe.topic.topic_id = topic->topic_id; in mqtt_sn_do_subscribe() 454 p.params.unsubscribe.msg_id = topic->con.msg_id; in mqtt_sn_do_unsubscribe() 455 p.params.unsubscribe.topic_type = topic->type; in mqtt_sn_do_unsubscribe() 458 p.params.unsubscribe.topic.topic_name.data = topic->name; in mqtt_sn_do_unsubscribe() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | has_client_test.c | 318 static uint8_t notify_handler(struct bt_conn *conn, struct bt_gatt_subscribe_params *params, in notify_handler() argument 321 LOG_DBG("conn %p params %p data %p length %u", (void *)conn, params, data, length); in notify_handler() 323 if (params == &features_sub) { in notify_handler() 331 } else if (params == &active_preset_index_sub) { in notify_handler() 339 } else if (params == &control_point_sub) { in notify_handler() 408 static void subscribe_cb(struct bt_conn *conn, uint8_t err, struct bt_gatt_subscribe_params *params) in subscribe_cb() argument 416 if (params == &features_sub) { in subscribe_cb() 421 if (params == &control_point_sub) { in subscribe_cb() 426 if (params == &active_preset_index_sub) { in subscribe_cb() 433 struct bt_gatt_discover_params *params) in discover_features_cb() argument [all …]
|
/Zephyr-latest/drivers/wifi/esp32/src/ |
D | esp_wifi_drv.c | 482 struct wifi_connect_req_params *params) in esp32_wifi_connect() argument 525 memcpy(data->status.ssid, params->ssid, params->ssid_length); in esp32_wifi_connect() 526 data->status.ssid[params->ssid_length] = '\0'; in esp32_wifi_connect() 532 memcpy(wifi_config.sta.ssid, params->ssid, params->ssid_length); in esp32_wifi_connect() 533 wifi_config.sta.ssid[params->ssid_length] = '\0'; in esp32_wifi_connect() 534 switch (params->security) { in esp32_wifi_connect() 541 memcpy(wifi_config.sta.password, params->psk, params->psk_length); in esp32_wifi_connect() 542 wifi_config.sta.password[params->psk_length] = '\0'; in esp32_wifi_connect() 549 if (params->sae_password) { in esp32_wifi_connect() 550 memcpy(wifi_config.sta.password, params->sae_password, in esp32_wifi_connect() [all …]
|
/Zephyr-latest/tests/bluetooth/df/connection_cte_req/src/ |
D | test_cte_set_rx_params.c | 44 const struct ut_bt_df_conn_cte_rx_params *params, bool enable) in send_set_conn_cte_rx_params() argument 49 uint8_t ant_ids_num = (params != NULL ? params->switch_pattern_len : 0); in send_set_conn_cte_rx_params() 61 if (params != NULL) { in send_set_conn_cte_rx_params() 62 cp->slot_durations = params->slot_durations; in send_set_conn_cte_rx_params() 67 if (params->ant_ids) { in send_set_conn_cte_rx_params() 68 (void)memcpy(dest_ant_ids, params->ant_ids, ant_ids_num); in send_set_conn_cte_rx_params() 71 cp->switch_pattern_len = params->switch_pattern_len; in send_set_conn_cte_rx_params()
|
/Zephyr-latest/drivers/dai/intel/ssp/ |
D | ssp.c | 865 pcmsycm = pcmsycm | (dp->ssp_plat_data->params.tdm_slots - 1) << 4; in dai_ssp_program_channel_map() 1002 uint64_t sample_ticks = ssp_plat_data->params.fsync_rate ? in ssp_empty_rx_fifo_on_stop() 1003 1000000 / ssp_plat_data->params.fsync_rate : 0; in ssp_empty_rx_fifo_on_stop() 1080 uint64_t sample_ticks = ssp_plat_data->params.fsync_rate ? in ssp_empty_rx_fifo_on_stop() 1081 1000000 / ssp_plat_data->params.fsync_rate : 0; in ssp_empty_rx_fifo_on_stop() 1132 ret = dai_ssp_mn_set_mclk(dp, ssp_plat_data->params.mclk_id, in dai_ssp_mclk_prepare_enable() 1133 ssp_plat_data->params.mclk_rate); in dai_ssp_mclk_prepare_enable() 1135 LOG_ERR("invalid mclk_rate = %d for mclk_id = %d", ssp_plat_data->params.mclk_rate, in dai_ssp_mclk_prepare_enable() 1136 ssp_plat_data->params.mclk_id); in dai_ssp_mclk_prepare_enable() 1152 dai_ssp_mn_release_mclk(dp, ssp_plat_data->params.mclk_id); in dai_ssp_mclk_disable_unprepare() [all …]
|