Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/Zephyr-latest/drivers/display/
Ddisplay_rm68200.c174 uint8_t param; in rm68200_init() local
208 param = DCS_CMD_PAGE_SET_PAGE0; in rm68200_init()
209 rm68200_dcs_write(dev, DCS_CMD_PAGE, &param, 1); in rm68200_init()
211 param = 0xC0; in rm68200_init()
212 rm68200_dcs_write(dev, MCS_EXT_PWR_IC_TYPE, &param, 1); in rm68200_init()
214 param = 0x53; in rm68200_init()
215 rm68200_dcs_write(dev, MCS_EXT_PWR_SET_AVDD, &param, 1); in rm68200_init()
217 param = 0x00; in rm68200_init()
218 rm68200_dcs_write(dev, MCS_AVEE_FROM_PFM, &param, 1); in rm68200_init()
220 param = 0xE5; in rm68200_init()
[all …]
Ddisplay_rm67162.c28 uint8_t param; member
31 {.cmd = 0xFE, .param = 0x01},
32 {.cmd = 0x06, .param = 0x62},
33 {.cmd = 0x0E, .param = 0x80},
34 {.cmd = 0x0F, .param = 0x80},
35 {.cmd = 0x10, .param = 0x71},
36 {.cmd = 0x13, .param = 0x81},
37 {.cmd = 0x14, .param = 0x81},
38 {.cmd = 0x15, .param = 0x82},
39 {.cmd = 0x16, .param = 0x82},
[all …]
/Zephyr-latest/tests/bluetooth/controller/common/include/
Dhelper_pdu.h8 void helper_pdu_encode_ping_req(struct pdu_data *pdu, void *param);
9 void helper_pdu_encode_ping_rsp(struct pdu_data *pdu, void *param);
11 void helper_pdu_encode_feature_req(struct pdu_data *pdu, void *param);
12 void helper_pdu_encode_peripheral_feature_req(struct pdu_data *pdu, void *param);
13 void helper_pdu_encode_feature_rsp(struct pdu_data *pdu, void *param);
15 void helper_pdu_encode_min_used_chans_ind(struct pdu_data *pdu, void *param);
17 void helper_pdu_encode_version_ind(struct pdu_data *pdu, void *param);
19 void helper_pdu_encode_enc_req(struct pdu_data *pdu, void *param);
21 void helper_pdu_encode_enc_rsp(struct pdu_data *pdu, void *param);
23 void helper_pdu_encode_start_enc_req(struct pdu_data *pdu, void *param);
[all …]
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_mock.c25 static void free_parameter(struct parameter *param) in free_parameter() argument
27 free(param); in free_parameter()
32 struct parameter *param; in alloc_parameter() local
34 param = calloc(1, sizeof(struct parameter)); in alloc_parameter()
35 if (!param) { in alloc_parameter()
40 return param; in alloc_parameter()
117 static void free_parameter(struct parameter *param) in free_parameter() argument
119 unsigned int allocation_index = param - params; in free_parameter()
121 if (param == NULL) { in free_parameter()
125 "param %p given to free is not in the static buffer %p:%u", param, params, in free_parameter()
[all …]
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/
Dztest_mock.h36 #define ztest_expect_value(func, param, value) \ argument
37 z_ztest_expect_value(STRINGIFY(func), STRINGIFY(param), \
51 #define ztest_check_expected_value(param) \ argument
52 z_ztest_check_expected_value(__func__, STRINGIFY(param), \
53 (uintptr_t)(param))
67 #define ztest_expect_data(func, param, data) \ argument
68 z_ztest_expect_data(STRINGIFY(func), STRINGIFY(param), (void *)(data))
82 #define ztest_check_expected_data(param, length) \ argument
83 z_ztest_check_expected_data(__func__, STRINGIFY(param), \
84 (void *)(param), (length))
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dcap_commander.c190 const struct bt_cap_commander_broadcast_reception_start_param *param) in valid_broadcast_reception_start_param() argument
194 CHECKIF(param == NULL) { in valid_broadcast_reception_start_param()
199 CHECKIF(param->count == 0) { in valid_broadcast_reception_start_param()
200 LOG_DBG("Invalid param->count: %zu", param->count); in valid_broadcast_reception_start_param()
204 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_broadcast_reception_start_param()
205 LOG_DBG("param->count (%zu) is larger than CONFIG_BT_MAX_CONN (%d)", param->count, in valid_broadcast_reception_start_param()
210 CHECKIF(param->param == NULL) { in valid_broadcast_reception_start_param()
215 for (size_t i = 0; i < param->count; i++) { in valid_broadcast_reception_start_param()
217 &param->param[i]; in valid_broadcast_reception_start_param()
218 const union bt_cap_set_member *member = &param->param[i].member; in valid_broadcast_reception_start_param()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_central.c181 static void set_cig_defaults(struct bt_iso_cig_param *param) in set_cig_defaults() argument
183 param->cis_channels = &default_chan; in set_cig_defaults()
184 param->num_cis = 1U; in set_cig_defaults()
185 param->sca = BT_GAP_SCA_UNKNOWN; in set_cig_defaults()
186 param->packing = BT_ISO_PACKING_SEQUENTIAL; in set_cig_defaults()
187 param->framing = BT_ISO_FRAMING_UNFRAMED; in set_cig_defaults()
188 param->c_to_p_latency = latency_ms; /* ms */ in set_cig_defaults()
189 param->p_to_c_latency = latency_ms; /* ms */ in set_cig_defaults()
190 param->c_to_p_interval = interval_us; /* us */ in set_cig_defaults()
191 param->p_to_c_interval = interval_us; /* us */ in set_cig_defaults()
[all …]
/Zephyr-latest/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c50 struct bt_bap_broadcast_source_param *param; member
82 fixture->param = malloc(sizeof(struct bt_bap_broadcast_source_param)); in bap_broadcast_source_test_suite_fixture_init()
99 memset(fixture->param, 0, sizeof(*fixture->param)); in bap_broadcast_source_test_suite_fixture_init()
130 fixture->param->params_count = CONFIG_BT_BAP_BROADCAST_SRC_SUBGROUP_COUNT; in bap_broadcast_source_test_suite_fixture_init()
131 fixture->param->params = subgroup_param; in bap_broadcast_source_test_suite_fixture_init()
132 fixture->param->qos = qos_cfg; in bap_broadcast_source_test_suite_fixture_init()
133 fixture->param->encryption = false; in bap_broadcast_source_test_suite_fixture_init()
134 memset(fixture->param->broadcast_code, 0, sizeof(fixture->param->broadcast_code)); in bap_broadcast_source_test_suite_fixture_init()
135 fixture->param->packing = BT_ISO_PACKING_SEQUENTIAL; in bap_broadcast_source_test_suite_fixture_init()
137 fixture->stream_cnt = fixture->param->params_count * streams_per_subgroup; in bap_broadcast_source_test_suite_fixture_init()
[all …]
/Zephyr-latest/tests/drivers/mipi_dsi/api/src/
Dmain.c25 uint8_t param[2]; in ZTEST() local
28 param[0] = MIPI_DCS_SET_DISPLAY_ON; in ZTEST()
29 ret = mipi_dsi_generic_write(mipi_dev, CONFIG_MIPI_DSI_TEST_CHANNEL, param, 1); in ZTEST()
32 param[0] = MIPI_DCS_SET_DISPLAY_BRIGHTNESS; in ZTEST()
33 param[1] = 200; in ZTEST()
34 ret = mipi_dsi_generic_write(mipi_dev, CONFIG_MIPI_DSI_TEST_CHANNEL, param, 2); in ZTEST()
39 param[0] = MIPI_DCS_GET_DISPLAY_BRIGHTNESS; in ZTEST()
40 ret = mipi_dsi_generic_read(mipi_dev, CONFIG_MIPI_DSI_TEST_CHANNEL, param, 1, rx_buf, 2); in ZTEST()
54 uint8_t param[2]; in ZTEST() local
61 param[0] = 200; in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_internal.h113 #define NULL_PARAM_CHECK(param) \ argument
115 if ((param) == NULL) { \
120 #define NULL_PARAM_CHECK_VOID(param) \ argument
122 if ((param) == NULL) { \
192 int publish_encode(const struct mqtt_publish_param *param, struct buf_ctx *buf);
204 int publish_ack_encode(const struct mqtt_puback_param *param,
217 int publish_receive_encode(const struct mqtt_pubrec_param *param,
230 int publish_release_encode(const struct mqtt_pubrel_param *param,
243 int publish_complete_encode(const struct mqtt_pubcomp_param *param,
267 int subscribe_encode(const struct mqtt_subscription_list *param,
[all …]
Dmqtt_decoder.c212 struct mqtt_connack_param *param) in connect_ack_decode() argument
228 param->session_present_flag = in connect_ack_decode()
232 param->session_present_flag); in connect_ack_decode()
235 param->return_code = (enum mqtt_conn_return_code)ret_code; in connect_ack_decode()
241 struct mqtt_publish_param *param) in publish_decode() argument
246 param->dup_flag = flags & MQTT_HEADER_DUP_MASK; in publish_decode()
247 param->retain_flag = flags & MQTT_HEADER_RETAIN_MASK; in publish_decode()
248 param->message.topic.qos = ((flags & MQTT_HEADER_QOS_MASK) >> 1); in publish_decode()
250 err_code = unpack_utf8_str(buf, &param->message.topic.topic); in publish_decode()
255 var_header_length = param->message.topic.topic.size + sizeof(uint16_t); in publish_decode()
[all …]
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_uploader.c125 int zperf_tcp_upload(const struct zperf_upload_params *param, in zperf_tcp_upload() argument
131 if (param == NULL || result == NULL) { in zperf_tcp_upload()
135 sock = zperf_prepare_upload_sock(&param->peer_addr, param->options.tos, in zperf_tcp_upload()
136 param->options.priority, param->options.tcp_nodelay, in zperf_tcp_upload()
142 ret = tcp_upload(sock, param->duration_ms, param->packet_size, result); in zperf_tcp_upload()
155 struct zperf_upload_params param = upload_ctx->param; in tcp_upload_async_work() local
161 sock = zperf_prepare_upload_sock(&param.peer_addr, param.options.tos, in tcp_upload_async_work()
162 param.options.priority, param.options.tcp_nodelay, in tcp_upload_async_work()
171 if (param.options.report_interval_ms > 0) { in tcp_upload_async_work()
172 uint32_t report_interval = param.options.report_interval_ms; in tcp_upload_async_work()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll.c39 void *param; member
62 static void ticker_stop_op_cb(uint32_t status, void *param);
63 static void ticker_start_op_cb(uint32_t status, void *param);
64 static void ticker_start_next_op_cb(uint32_t status, void *param);
69 void *param);
70 static void preempt(void *param);
73 static void mfy_ticker_job_idle_get(void *param);
213 void lll_disable(void *param) in lll_disable() argument
216 if (!param || (param == event.curr.param)) { in lll_disable()
217 if (event.curr.abort_cb && event.curr.param) { in lll_disable()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_internal.h7 int lll_prepare_done(void *param);
8 int lll_done(void *param);
9 bool lll_is_done(void *param, bool *is_resume);
11 void lll_abort_cb(struct lll_prepare_param *prepare_param, void *param);
24 void lll_isr_abort(void *param);
25 void lll_isr_done(void *param);
26 void lll_isr_cleanup(void *param);
27 void lll_isr_early_abort(void *param);
Dlll.c47 void *param; member
75 static void isr_race(void *param);
84 void *param);
85 static void preempt(void *param);
88 static void mfy_ticker_job_idle_get(void *param);
440 void lll_disable(void *param) argument
443 if (!param || (param == event.curr.param)) {
444 if (event.curr.abort_cb && event.curr.param) {
445 event.curr.abort_cb(NULL, event.curr.param);
447 LL_ASSERT(!param);
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp_chmu.c105 static void lp_chmu_complete(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in lp_chmu_complete() argument
113 uint8_t evt, void *param) in lp_chmu_send_channel_map_update_ind() argument
130 void *param) in lp_chmu_st_wait_tx_chan_map_ind() argument
134 lp_chmu_send_channel_map_update_ind(conn, ctx, evt, param); in lp_chmu_st_wait_tx_chan_map_ind()
143 void *param) in lp_chmu_check_instant() argument
149 lp_chmu_complete(conn, ctx, evt, param); in lp_chmu_check_instant()
154 void *param) in lp_chmu_st_wait_instant() argument
158 lp_chmu_check_instant(conn, ctx, evt, param); in lp_chmu_st_wait_instant()
167 void *param) in lp_chmu_execute_fsm() argument
175 lp_chmu_st_wait_tx_chan_map_ind(conn, ctx, evt, param); in lp_chmu_execute_fsm()
[all …]
Dull_llcp_enc.c254 static void lp_enc_complete(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in lp_enc_complete() argument
273 void *param) in lp_enc_send_enc_req() argument
293 void *param) in lp_enc_send_pause_enc_req() argument
306 void *param) in lp_enc_send_pause_enc_rsp() argument
326 void *param) in lp_enc_send_start_enc_rsp() argument
347 void *param) in lp_enc_st_wait_tx_enc_req() argument
351 lp_enc_send_enc_req(conn, ctx, evt, param); in lp_enc_st_wait_tx_enc_req()
398 void *param) in lp_enc_st_wait_rx_enc_rsp() argument
400 struct pdu_data *pdu = (struct pdu_data *)param; in lp_enc_st_wait_rx_enc_rsp()
433 lp_enc_complete(conn, ctx, evt, param); in lp_enc_st_wait_rx_enc_rsp()
[all …]
Dull_llcp_cc.c71 ntf->rx_ftr.param = ll_conn_iso_stream_get(ctx->data.cis_create.cis_handle); in cc_ntf_established()
130 void *param);
233 static void rp_cc_complete(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in rp_cc_complete() argument
241 void *param) in rp_cc_send_cis_rsp() argument
255 void *param) in rp_cc_send_reject_ind() argument
280 rp_cc_complete(conn, ctx, evt, param); in rp_cc_send_reject_ind()
290 void *param) in rp_cc_state_idle() argument
325 void *param) in rp_cc_state_wait_rx_cis_req() argument
327 struct pdu_data *pdu = (struct pdu_data *)param; in rp_cc_state_wait_rx_cis_req()
349 rp_cc_send_reject_ind(conn, ctx, evt, param); in rp_cc_state_wait_rx_cis_req()
[all …]
Dull_llcp_conn_upd.c358 void *param) in lp_cu_ntf_complete() argument
366 void *param) in lp_cu_send_reject_ext_ind() argument
378 void *param) in lp_cu_send_conn_param_req() argument
420 uint8_t evt, void *param) in lp_cu_send_conn_update_ind_finalize() argument
439 void *param) in lp_cu_send_conn_update_ind() argument
450 lp_cu_send_conn_update_ind_finalize(conn, ctx, evt, param); in lp_cu_send_conn_update_ind()
456 void *param) in lp_cu_st_wait_ntf_avail() argument
461 lp_cu_send_conn_update_ind_finalize(conn, ctx, evt, param); in lp_cu_st_wait_ntf_avail()
471 static void lp_cu_st_idle(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in lp_cu_st_idle() argument
478 lp_cu_send_conn_param_req(conn, ctx, evt, param); in lp_cu_st_idle()
[all …]
/Zephyr-latest/drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/
Dadc_cmp_npcx.c65 struct adc_npcx_threshold_param param; in adc_cmp_npcx_init() local
73 param.type = ADC_NPCX_THRESHOLD_PARAM_CHNSEL; in adc_cmp_npcx_init()
74 param.val = (uint32_t)config->chnsel; in adc_cmp_npcx_init()
76 &param); in adc_cmp_npcx_init()
83 param.type = ADC_NPCX_THRESHOLD_PARAM_WORK; in adc_cmp_npcx_init()
84 param.val = (uint32_t)&data->work; in adc_cmp_npcx_init()
86 &param); in adc_cmp_npcx_init()
93 param.type = ADC_NPCX_THRESHOLD_PARAM_THVAL; in adc_cmp_npcx_init()
96 &param.val); in adc_cmp_npcx_init()
102 config->th_sel, &param); in adc_cmp_npcx_init()
[all …]
/Zephyr-latest/drivers/wifi/winc1500/
Dwifi_winc1500_nm_bus_wrapper.c134 struct nm_i2c_default *param = in nm_bus_ioctl() local
137 ret = nm_i2c_read(param->buffer, param->size); in nm_bus_ioctl()
141 struct nm_i2c_default *param = in nm_bus_ioctl() local
144 ret = nm_i2c_write(param->buffer, param->size); in nm_bus_ioctl()
148 struct nm_i2c_special *param = in nm_bus_ioctl() local
151 ret = nm_i2c_write_special(param->buffer1, param->size1, in nm_bus_ioctl()
152 param->buffer2, param->size2); in nm_bus_ioctl()
157 tstrNmSpiRw *param = (tstrNmSpiRw *)parameter; in nm_bus_ioctl()
159 ret = spi_rw(param->pu8InBuf, param->pu8OutBuf, param->u16Sz); in nm_bus_ioctl()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c80 const struct bt_bap_broadcast_assistant_add_src_param *param) in bt_bap_broadcast_assistant_add_src() argument
88 zassert_not_null(param, "param is NULL"); in bt_bap_broadcast_assistant_add_src()
96 inst->recv_states.adv_sid = param->adv_sid; in bt_bap_broadcast_assistant_add_src()
97 inst->recv_states.broadcast_id = param->broadcast_id; in bt_bap_broadcast_assistant_add_src()
98 inst->pa_sync_state = param->pa_sync; in bt_bap_broadcast_assistant_add_src()
99 inst->num_subgroups = param->num_subgroups; in bt_bap_broadcast_assistant_add_src()
100 state.pa_sync_state = param->pa_sync; in bt_bap_broadcast_assistant_add_src()
102 state.num_subgroups = param->num_subgroups; in bt_bap_broadcast_assistant_add_src()
103 for (size_t i = 0; i < param->num_subgroups; i++) { in bt_bap_broadcast_assistant_add_src()
104 state.subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_add_src()
[all …]
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_register.c70 struct bt_bap_unicast_server_register_param param = { in ZTEST() local
76 err = bt_bap_unicast_server_register(&param); in ZTEST()
80 err = bt_bap_unicast_server_register(&param); in ZTEST()
90 struct bt_bap_unicast_server_register_param param = { in ZTEST() local
95 err = bt_bap_unicast_server_register(&param); in ZTEST()
102 struct bt_bap_unicast_server_register_param param = { in ZTEST() local
107 err = bt_bap_unicast_server_register(&param); in ZTEST()
114 struct bt_bap_unicast_server_register_param param = {0, 0}; in ZTEST() local
116 err = bt_bap_unicast_server_register(&param); in ZTEST()
123 struct bt_bap_unicast_server_register_param param = { in ZTEST() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcap_initiator_unicast_test.c608 struct bt_cap_unicast_audio_start_param param; in unicast_audio_start() local
611 param.type = BT_CAP_SET_TYPE_AD_HOC; in unicast_audio_start()
612 param.count = ARRAY_SIZE(stream_param); in unicast_audio_start()
613 param.stream_params = stream_param; in unicast_audio_start()
626 err = bt_cap_initiator_unicast_audio_start(&param); in unicast_audio_start()
643 struct bt_cap_unicast_audio_update_param param = {0}; in unicast_audio_update_inval() local
649 param.count = ARRAY_SIZE(stream_params); in unicast_audio_update_inval()
650 param.stream_params = stream_params; in unicast_audio_update_inval()
651 param.type = BT_CAP_SET_TYPE_AD_HOC; in unicast_audio_update_inval()
659 param.count = 0U; in unicast_audio_update_inval()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dcap_commander.c211 struct bt_cap_commander_change_volume_param param = { in cmd_cap_commander_change_volume() local
234 param.volume = (uint8_t)volume; in cmd_cap_commander_change_volume()
236 param.type = BT_CAP_SET_TYPE_AD_HOC; in cmd_cap_commander_change_volume()
242 param.count = 0U; in cmd_cap_commander_change_volume()
243 param.members = members; in cmd_cap_commander_change_volume()
251 param.members[i].member = conn; in cmd_cap_commander_change_volume()
252 param.count++; in cmd_cap_commander_change_volume()
255 shell_print(sh, "Setting volume to %u on %zu connections", param.volume, param.count); in cmd_cap_commander_change_volume()
257 err = bt_cap_commander_change_volume(&param); in cmd_cap_commander_change_volume()
271 struct bt_cap_commander_change_volume_mute_state_param param = { in cmd_cap_commander_change_volume_mute() local
[all …]

12345678910>>...20