Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/Zephyr-latest/samples/bluetooth/channel_sounding/include/
Dcs_test_params.h15 struct bt_le_cs_test_param params; in test_params_get() local
17 params.role = role; in test_params_get()
18 params.main_mode = BT_CONN_LE_CS_MAIN_MODE_2; in test_params_get()
19 params.sub_mode = BT_CONN_LE_CS_SUB_MODE_1; in test_params_get()
20 params.main_mode_repetition = 1; in test_params_get()
21 params.mode_0_steps = NUM_MODE_0_STEPS; in test_params_get()
22 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_AA_ONLY; in test_params_get()
23 params.cs_sync_phy = BT_CONN_LE_CS_SYNC_1M_PHY; in test_params_get()
24 params.cs_sync_antenna_selection = BT_LE_CS_TEST_CS_SYNC_ANTENNA_SELECTION_ONE; in test_params_get()
25 params.subevent_len = 5000; in test_params_get()
[all …]
/Zephyr-latest/subsys/bluetooth/host/shell/
Dcs.c66 struct bt_le_cs_set_default_settings_param params; in cmd_set_default_settings() local
75 params.enable_initiator_role = shell_strtobool(argv[1], 10, &err); in cmd_set_default_settings()
82 params.enable_reflector_role = shell_strtobool(argv[2], 10, &err); in cmd_set_default_settings()
110 params.cs_sync_antenna_selection = antenna_input; in cmd_set_default_settings()
111 params.max_tx_power = tx_power_input; in cmd_set_default_settings()
113 err = bt_le_cs_set_default_settings(default_conn, &params); in cmd_set_default_settings()
189 struct bt_le_cs_test_param params; in cmd_cs_test_simple() local
191 params.main_mode = BT_CONN_LE_CS_MAIN_MODE_1; in cmd_cs_test_simple()
192 params.sub_mode = BT_CONN_LE_CS_SUB_MODE_UNUSED; in cmd_cs_test_simple()
193 params.main_mode_repetition = 0; in cmd_cs_test_simple()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_decoder.c102 static int decode_msg_advertise(struct net_buf_simple *buf, struct mqtt_sn_param_advertise *params) in decode_msg_advertise() argument
108 params->gw_id = net_buf_simple_pull_u8(buf); in decode_msg_advertise()
109 params->duration = net_buf_simple_pull_be16(buf); in decode_msg_advertise()
114 static int decode_msg_searchgw(struct net_buf_simple *buf, struct mqtt_sn_param_searchgw *params) in decode_msg_searchgw() argument
120 params->radius = net_buf_simple_pull_u8(buf); in decode_msg_searchgw()
125 static int decode_msg_gwinfo(struct net_buf_simple *buf, struct mqtt_sn_param_gwinfo *params) in decode_msg_gwinfo() argument
131 params->gw_id = net_buf_simple_pull_u8(buf); in decode_msg_gwinfo()
134 decode_data(buf, &params->gw_add); in decode_msg_gwinfo()
136 params->gw_add.size = 0; in decode_msg_gwinfo()
142 static int decode_msg_connack(struct net_buf_simple *buf, struct mqtt_sn_param_connack *params) in decode_msg_connack() argument
[all …]
Dmqtt_sn_encoder.c81 struct mqtt_sn_param_searchgw *params) in mqtt_sn_encode_msg_searchgw() argument
91 net_buf_simple_add_u8(buf, params->radius); in mqtt_sn_encode_msg_searchgw()
97 struct mqtt_sn_param_gwinfo *params) in mqtt_sn_encode_msg_gwinfo() argument
99 size_t msgsz = 1 + params->gw_add.size; in mqtt_sn_encode_msg_gwinfo()
107 net_buf_simple_add_u8(buf, params->gw_id); in mqtt_sn_encode_msg_gwinfo()
108 net_buf_simple_add_data(buf, &params->gw_add); in mqtt_sn_encode_msg_gwinfo()
114 struct mqtt_sn_param_connect *params) in mqtt_sn_encode_msg_connect() argument
116 size_t msgsz = 4 + params->client_id.size; in mqtt_sn_encode_msg_connect()
117 struct mqtt_sn_flags flags = {.will = params->will, .clean_session = params->clean_session}; in mqtt_sn_encode_msg_connect()
129 net_buf_simple_add_be16(buf, params->duration); in mqtt_sn_encode_msg_connect()
[all …]
/Zephyr-latest/tests/net/ethernet_mgmt/src/
Dmain.c591 struct ethernet_req_params params; in change_mac_when_up() local
594 memcpy(params.mac_address.addr, mac_addr_change, 6); in change_mac_when_up()
599 &params, sizeof(struct ethernet_req_params)); in change_mac_when_up()
608 struct ethernet_req_params params; in change_mac_when_down() local
611 memcpy(params.mac_address.addr, mac_addr_change, 6); in change_mac_when_down()
616 &params, sizeof(struct ethernet_req_params)); in change_mac_when_down()
637 struct ethernet_req_params params; in change_auto_neg() local
640 params.auto_negotiation = is_auto_neg; in change_auto_neg()
643 &params, sizeof(struct ethernet_req_params)); in change_auto_neg()
651 struct ethernet_req_params params; in change_to_same_auto_neg() local
[all …]
/Zephyr-latest/drivers/flash/
Dflash_cadence_nand_ll.c34 static void row_address_set(struct cadence_nand_params *params, uint32_t *local_row_address, in row_address_set() argument
39 block_number = ((page_set) / (params->npages_per_block)); in row_address_set()
41 *local_row_address |= ROW_VAL_SET((params->page_size_bit) - 1, 0, in row_address_set()
42 ((page_set) % (params->npages_per_block))); in row_address_set()
44 ROW_VAL_SET((params->block_size_bit) - 1, (params->page_size_bit), block_number); in row_address_set()
45 *local_row_address |= ROW_VAL_SET((params->lun_size_bit) - 1, (params->block_size_bit), in row_address_set()
46 (block_number / params->nblocks_per_lun)); in row_address_set()
55 static int cdns_nand_device_info(struct cadence_nand_params *params) in cdns_nand_device_info() argument
62 base_address = params->nand_base; in cdns_nand_device_info()
81 params->nluns = CNF_GET_NLUNS(reg_value); in cdns_nand_device_info()
[all …]
/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_shell.c122 struct wifi_enterprise_creds_params params = {0}; in cmd_wifi_set_enterprise_creds() local
124 params.ca_cert = (uint8_t *)ca_cert_test; in cmd_wifi_set_enterprise_creds()
125 params.ca_cert_len = ARRAY_SIZE(ca_cert_test); in cmd_wifi_set_enterprise_creds()
126 params.client_cert = (uint8_t *)client_cert_test; in cmd_wifi_set_enterprise_creds()
127 params.client_cert_len = ARRAY_SIZE(client_cert_test); in cmd_wifi_set_enterprise_creds()
128 params.client_key = (uint8_t *)client_key_test; in cmd_wifi_set_enterprise_creds()
129 params.client_key_len = ARRAY_SIZE(client_key_test); in cmd_wifi_set_enterprise_creds()
130 params.ca_cert2 = (uint8_t *)ca_cert2_test; in cmd_wifi_set_enterprise_creds()
131 params.ca_cert2_len = ARRAY_SIZE(ca_cert2_test); in cmd_wifi_set_enterprise_creds()
132 params.client_cert2 = (uint8_t *)client_cert2_test; in cmd_wifi_set_enterprise_creds()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dgmap_client.c59 } params; member
121 struct bt_gatt_read_params *params, const void *data, uint16_t len) in bgr_feat_read_cb() argument
129 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in bgr_feat_read_cb()
156 memset(&gmap_cli->params.read, 0, sizeof(gmap_cli->params.read)); in gmap_read_bgr_feat()
158 gmap_cli->params.read.func = bgr_feat_read_cb; in gmap_read_bgr_feat()
159 gmap_cli->params.read.handle_count = 1u; in gmap_read_bgr_feat()
160 gmap_cli->params.read.single.handle = handle; in gmap_read_bgr_feat()
161 gmap_cli->params.read.single.offset = 0u; in gmap_read_bgr_feat()
163 return bt_gatt_read(gmap_cli->conn, &gmap_cli->params.read); in gmap_read_bgr_feat()
167 struct bt_gatt_discover_params *params) in bgr_feat_discover_func() argument
[all …]
Dhas_client.c200 struct bt_gatt_subscribe_params *params, const void *data, in control_point_notify_cb() argument
203 struct bt_has_client *inst = CONTAINER_OF(params, struct bt_has_client, in control_point_notify_cb()
208 LOG_DBG("conn %p params %p data %p len %u", (void *)conn, params, data, len); in control_point_notify_cb()
215 params->value_handle = 0u; in control_point_notify_cb()
273 inst->params.write.func = func; in cp_write()
274 inst->params.write.handle = value_handle; in cp_write()
275 inst->params.write.offset = 0U; in cp_write()
276 inst->params.write.data = buf->data; in cp_write()
277 inst->params.write.length = buf->len; in cp_write()
279 return bt_gatt_write(inst->conn, &inst->params.write); in cp_write()
[all …]
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet_mgmt.c32 struct ethernet_req_params *params = (struct ethernet_req_params *)data; in ethernet_set_config() local
56 config.auto_negotiation = params->auto_negotiation; in ethernet_set_config()
59 if (params->l.link_10bt) { in ethernet_set_config()
66 } else if (params->l.link_100bt) { in ethernet_set_config()
73 } else if (params->l.link_1000bt) { in ethernet_set_config()
90 config.full_duplex = params->full_duplex; in ethernet_set_config()
114 memcpy(&config.mac_address, &params->mac_address, in ethernet_set_config()
123 switch (params->qav_param.type) { in ethernet_set_config()
125 if (params->qav_param.delta_bandwidth > 100) { in ethernet_set_config()
138 memcpy(&config.qav_param, &params->qav_param, in ethernet_set_config()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dcs.c411 const struct bt_le_cs_set_default_settings_param *params) in bt_le_cs_set_default_settings() argument
423 cp->max_tx_power = params->max_tx_power; in bt_le_cs_set_default_settings()
424 cp->cs_sync_antenna_selection = params->cs_sync_antenna_selection; in bt_le_cs_set_default_settings()
427 if (params->enable_initiator_role) { in bt_le_cs_set_default_settings()
431 if (params->enable_reflector_role) { in bt_le_cs_set_default_settings()
490 int bt_le_cs_start_test(const struct bt_le_cs_test_param *params) in bt_le_cs_start_test() argument
502 cp->main_mode_type = params->main_mode; in bt_le_cs_start_test()
503 cp->sub_mode_type = params->sub_mode; in bt_le_cs_start_test()
504 cp->main_mode_repetition = params->main_mode_repetition; in bt_le_cs_start_test()
505 cp->mode_0_steps = params->mode_0_steps; in bt_le_cs_start_test()
[all …]
Ddirection.c56 static bool valid_cl_cte_rx_params(const struct bt_df_per_adv_sync_cte_rx_param *params);
59 const struct bt_df_per_adv_sync_cte_rx_param *params,
62 const struct bt_df_per_adv_sync_cte_rx_param *params);
67 const struct bt_df_conn_cte_rx_param *params,
70 const struct bt_df_conn_cte_rx_param *params);
89 const struct bt_df_adv_cte_tx_param *params) in hci_df_set_cl_cte_tx_params() argument
97 if (params->cte_type == BT_DF_CTE_TYPE_AOD_1US || in hci_df_set_cl_cte_tx_params()
98 params->cte_type == BT_DF_CTE_TYPE_AOD_2US) { in hci_df_set_cl_cte_tx_params()
103 if (params->cte_type == BT_DF_CTE_TYPE_AOD_1US && in hci_df_set_cl_cte_tx_params()
108 if (params->num_ant_ids < BT_HCI_LE_SWITCH_PATTERN_LEN_MIN || in hci_df_set_cl_cte_tx_params()
[all …]
Dgatt.c301 struct bt_gatt_indicate_params params; member
1296 struct bt_gatt_indicate_params *params, uint8_t err) in sc_indicate_rsp() argument
1347 sc->params.attr = &_1_gatt_svc.attrs[2]; in sc_process()
1348 sc->params.func = sc_indicate_rsp; in sc_process()
1349 sc->params.data = &sc_range[0]; in sc_process()
1350 sc->params.len = sizeof(sc_range); in sc_process()
1352 sc->params.chan_opt = BT_ATT_CHAN_OPT_NONE; in sc_process()
1355 if (bt_gatt_indicate(NULL, &sc->params)) { in sc_process()
2423 struct bt_gatt_notify_params *params) in gatt_add_nfy_to_buf() argument
2427 nfy = net_buf_add(buf, sizeof(*nfy) + params->len); in gatt_add_nfy_to_buf()
[all …]
/Zephyr-latest/subsys/net/ip/
Dicmp.c123 struct net_icmp_ping_params *params, in send_icmpv4_echo_request() argument
142 + params->data_size, in send_icmpv4_echo_request()
150 params->priority >= NET_MAX_PRIORITIES) { in send_icmpv4_echo_request()
152 params->priority, NET_MAX_PRIORITIES - 1); in send_icmpv4_echo_request()
157 if (params->priority < 0) { in send_icmpv4_echo_request()
158 net_pkt_set_ip_dscp(pkt, net_ipv4_get_dscp(params->tc_tos)); in send_icmpv4_echo_request()
159 net_pkt_set_ip_ecn(pkt, net_ipv4_get_ecn(params->tc_tos)); in send_icmpv4_echo_request()
161 net_pkt_set_priority(pkt, params->priority); in send_icmpv4_echo_request()
175 echo_req->identifier = htons(params->identifier); in send_icmpv4_echo_request()
176 echo_req->sequence = htons(params->sequence); in send_icmpv4_echo_request()
[all …]
/Zephyr-latest/modules/hostap/src/
Dsupp_api.c487 int process_cipher_config(struct wifi_connect_req_params *params, in process_cipher_config() argument
494 if (params->suiteb_type == WIFI_SUITEB) { in process_cipher_config()
500 } else if (params->suiteb_type == WIFI_SUITEB_192) { in process_cipher_config()
503 if (params->ft_used) { in process_cipher_config()
513 if (params->ft_used) { in process_cipher_config()
520 if (params->security == WIFI_SECURITY_TYPE_EAP_TLS_SHA256) { in process_cipher_config()
589 static int hapd_get_eap_config(struct wifi_connect_req_params *params, in hapd_get_eap_config() argument
595 if (params->security == eap_config[index].type) { in hapd_get_eap_config()
603 params->security); in hapd_get_eap_config()
611 struct wifi_connect_req_params *params, struct hostapd_eap_user **pnew_user) in hostapd_process_eap_user_phase1() argument
[all …]
Dsupp_api.h31 int supplicant_get_version(const struct device *dev, struct wifi_version *params);
41 int supplicant_connect(const struct device *dev, struct wifi_connect_req_params *params);
72 int supplicant_scan(const struct device *dev, struct wifi_scan_params *params,
110 int supplicant_11k_cfg(const struct device *dev, struct wifi_11k_params *params);
119 int supplicant_11k_neighbor_request(const struct device *dev, struct wifi_11k_params *params);
129 int supplicant_candidate_scan(const struct device *dev, struct wifi_scan_params *params);
148 int supplicant_set_power_save(const struct device *dev, struct wifi_ps_params *params);
157 int supplicant_set_twt(const struct device *dev, struct wifi_twt_params *params);
166 int supplicant_set_btwt(const struct device *dev, struct wifi_twt_params *params);
280 struct wifi_connect_req_params *params);
[all …]
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dcoex.c130 struct coex_ch_configuration params = { 0 }; in nrf_wifi_coex_config_non_pta() local
153 params.message_id = HW_CONFIGURATION; in nrf_wifi_coex_config_non_pta()
154 params.num_reg_to_config = num_reg_to_config; in nrf_wifi_coex_config_non_pta()
155 params.hw_to_config = COEX_HARDWARE; in nrf_wifi_coex_config_non_pta()
156 params.hw_block_base_addr = CH_BASE_ADDRESS; in nrf_wifi_coex_config_non_pta()
159 params.configbuf[index] = (start_offset << COEX_REG_CFG_OFFSET_SHIFT) | in nrf_wifi_coex_config_non_pta()
166 (void *)(&params), cmd_len); in nrf_wifi_coex_config_non_pta()
178 struct coex_ch_configuration params = { 0 }; in nrf_wifi_coex_config_pta() local
212 params.message_id = HW_CONFIGURATION; in nrf_wifi_coex_config_pta()
213 params.num_reg_to_config = num_reg_to_config; in nrf_wifi_coex_config_pta()
[all …]
/Zephyr-latest/subsys/settings/src/
Dsettings_shell.c30 struct settings_list_callback_params *params = param; in settings_list_callback() local
32 if (params->subtree != NULL) { in settings_list_callback()
33 shell_print(params->shell_ptr, "%s/%s", params->subtree, key); in settings_list_callback()
35 shell_print(params->shell_ptr, "%s", key); in settings_list_callback()
45 struct settings_list_callback_params params = { in cmd_list() local
50 err = settings_load_subtree_direct(params.subtree, settings_list_callback, &params); in cmd_list()
78 struct settings_read_callback_params *params = param; in settings_read_callback() local
85 params->value_found = true; in settings_read_callback()
89 shell_error(params->shell_ptr, "Failed to read value: %d", (int) num_read_bytes); in settings_read_callback()
94 shell_warn(params->shell_ptr, "Value is empty"); in settings_read_callback()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dbeacon.c94 struct beacon_params *params; in beacon_cache_match() local
97 params = data; in beacon_cache_match()
98 beacon = subnet_beacon_get_by_type(sub, params->private); in beacon_cache_match()
100 return !memcmp(beacon->cache, params->auth, sizeof(beacon->cache)); in beacon_cache_match()
523 const struct beacon_params *params) in auth_match() argument
527 if (memcmp(params->net_id, keys->net_id, 8)) { in auth_match()
531 if (bt_mesh_beacon_auth(&keys->beacon, params->flags, keys->net_id, params->iv_index, in auth_match()
536 if (memcmp(params->auth, net_auth, 8)) { in auth_match()
537 LOG_WRN("Invalid auth value. Received auth: %s", bt_hex(params->auth, 8)); in auth_match()
547 struct beacon_params *params = cb_data; in secure_beacon_authenticate() local
[all …]
/Zephyr-latest/tests/bluetooth/common/testlib/src/
Datt_read.c23 struct bt_gatt_read_params params; member
33 static bool bt_gatt_read_params_is_by_uuid(const struct bt_gatt_read_params *params) in bt_gatt_read_params_is_by_uuid() argument
35 return params->handle_count == 0; in bt_gatt_read_params_is_by_uuid()
39 struct bt_gatt_read_params *params, const void *read_data, in att_read_cb() argument
43 CONTAINER_OF(params, struct bt_testlib_att_read_closure, params); in att_read_cb()
50 __ASSERT_NO_MSG(bt_gatt_read_params_is_by_uuid(params)); in att_read_cb()
51 *ctx->result_handle = params->by_uuid.start_handle; in att_read_cb()
70 *ctx->att_mtu = params->_att_mtu; in att_read_cb()
97 ctx->params.func = att_read_cb; in bt_testlib_sync_bt_gatt_read()
105 api_err = bt_gatt_read(ctx->conn, &ctx->params); in bt_testlib_sync_bt_gatt_read()
[all …]
/Zephyr-latest/subsys/net/l2/virtual/
Dvirtual_mgmt.c20 struct virtual_interface_req_params *params = in virtual_interface_set_config() local
44 config.family = params->family; in virtual_interface_set_config()
45 memcpy(&config.peer6addr, &params->peer6addr, in virtual_interface_set_config()
54 config.family = params->family; in virtual_interface_set_config()
55 config.mtu = params->mtu; in virtual_interface_set_config()
60 config.family = params->family; in virtual_interface_set_config()
61 memcpy(&config.link_types, &params->link_types, in virtual_interface_set_config()
84 struct virtual_interface_req_params *params = in virtual_interface_get_config() local
112 params->family = config.family; in virtual_interface_get_config()
113 memcpy(&params->peer6addr, &config.peer6addr, in virtual_interface_get_config()
[all …]
/Zephyr-latest/tests/bluetooth/audio/mocks/include/
Dgatt_expects.h18 struct bt_gatt_notify_params *params; \
25 params = mock_bt_gatt_notify_cb_fake.arg1_val; \
28 if (params->uuid) { \
30 zassert_true(bt_uuid_cmp(_uuid, params->uuid) == 0, \
35 zassert_equal_ptr(_attr, params->attr, \
44 zassert_equal(_len, params->len, \
47 expect_data(func_name, "params->data", _data, params->data, _len);)) \
/Zephyr-latest/tests/net/lib/mqtt_sn_packet/src/
Dmqtt_sn_packet.c104 .params.advertise = {
114 .params.gwinfo = {
127 .params.connack = {
136 .params.connack = {
157 .params.reg = {
171 .params.regack = {
182 .params.publish = {
200 .params.puback = {
211 .params.puback = {
220 .params.pubrel = {
[all …]
/Zephyr-latest/tests/net/icmp/src/
Dmain.c177 struct net_icmp_ping_params *params, in get_ipv4_reply() argument
196 params->data_size, in get_ipv4_reply()
212 ret = net_ipv4_create_full(reply, src4, dest4, params->tc_tos, in get_ipv4_reply()
213 params->identifier, 0, 0); in get_ipv4_reply()
228 ret = net_pkt_write(reply, params->data, params->data_size); in get_ipv4_reply()
244 struct net_icmp_ping_params *params, in get_ipv4_reply() argument
256 struct net_icmp_ping_params *params, in get_ipv6_reply() argument
270 params->data_size, in get_ipv6_reply()
299 ret = net_pkt_write(reply, params->data, params->data_size); in get_ipv6_reply()
315 struct net_icmp_ping_params *params, in get_ipv6_reply() argument
[all …]
/Zephyr-latest/tests/boards/espressif/wifi/src/
Dmain.c166 struct wifi_connect_req_params params = {0}; in wifi_connect() local
170 params.band = WIFI_FREQ_BAND_UNKNOWN; in wifi_connect()
171 params.channel = WIFI_CHANNEL_ANY; in wifi_connect()
172 params.mfp = WIFI_MFP_OPTIONAL; in wifi_connect()
175 params.ssid = CONFIG_WIFI_TEST_SSID; in wifi_connect()
176 params.ssid_length = strlen(params.ssid); in wifi_connect()
178 params.security = WIFI_SECURITY_TYPE_PSK; in wifi_connect()
179 params.psk = CONFIG_WIFI_TEST_PSK; in wifi_connect()
180 params.psk_length = strlen(CONFIG_WIFI_TEST_PSK); in wifi_connect()
182 params.security = WIFI_SECURITY_TYPE_SAE; in wifi_connect()
[all …]

12345678910>>...12