Home
last modified time | relevance | path

Searched refs:cb_data (Results 1 – 25 of 128) sorted by relevance

123456

/Zephyr-latest/subsys/bluetooth/mesh/
Dpb_gatt.c27 void *cb_data; member
33 void *cb_data; member
54 void *cb_data = link.cb_data; in link_closed() local
58 cb->link_closed(&bt_mesh_pb_gatt, cb_data, status); in link_closed()
99 link.cb->recv(&bt_mesh_pb_gatt, link.cb_data, buf); in bt_mesh_pb_gatt_recv()
115 link.cb->link_opened(&bt_mesh_pb_gatt, link.cb_data); in bt_mesh_pb_gatt_start()
158 link.cb->link_opened(&bt_mesh_pb_gatt, link.cb_data); in bt_mesh_pb_gatt_cli_open()
164 const struct prov_bearer_cb *cb, void *cb_data) in prov_link_open() argument
169 link.cb_data = cb_data; in prov_link_open()
183 static int link_accept(const struct prov_bearer_cb *cb, void *cb_data) in link_accept() argument
[all …]
Dprov_bearer.h48 void (*link_opened)(const struct prov_bearer *bearer, void *cb_data);
50 void (*link_closed)(const struct prov_bearer *bearer, void *cb_data,
53 void (*error)(const struct prov_bearer *bearer, void *cb_data,
56 void (*recv)(const struct prov_bearer *bearer, void *cb_data,
60 typedef void (*prov_bearer_send_complete_t)(int err, void *cb_data);
77 int (*link_accept)(const struct prov_bearer_cb *cb, void *cb_data);
89 void *cb_data);
113 const struct prov_bearer_cb *cb, void *cb_data);
Dapp_keys.h59 const struct bt_mesh_key *key, void *cb_data),
60 void *cb_data);
Dpb_adv.c82 void *cb_data; member
113 void *cb_data; member
124 void *cb_data; member
173 void *cb_data) in send_unacked() argument
182 link.tx.unacked[i].cb_data = cb_data; in send_unacked()
208 unacked_adv->cb(err, unacked_adv->cb_data); in delayed_adv_send_end()
374 void *cb_data = link.cb_data; in close_link() local
377 cb->link_closed(&bt_mesh_pb_adv, cb_data, reason); in close_link()
409 link.cb->error(&bt_mesh_pb_adv, link.cb_data, err); in prov_failed()
430 link.cb->recv(&bt_mesh_pb_adv, link.cb_data, link.rx.buf); in prov_msg_recv()
[all …]
Ddelayable_msg.c37 void *cb_data; member
190 err = bt_mesh_access_send(&msg->ctx, &buf, msg->src_addr, msg->cb, msg->cb_data); in push_msg_from_delayable_msgs()
201 msg->cb->start(0, err, msg->cb_data); in push_msg_from_delayable_msgs()
222 uint16_t src_addr, const struct bt_mesh_send_cb *cb, void *cb_data) in bt_mesh_delayable_msg_manage() argument
277 msg->cb_data = cb_data; in bt_mesh_delayable_msg_manage()
313 ctx->cb->start(0, -ENODEV, ctx->cb_data); in bt_mesh_delayable_msg_stop()
Drpr_cli.c81 static void tx_complete(struct bt_mesh_rpr_cli *cli, int err, void *cb_data) in tx_complete() argument
89 bearer.tx.cb(err, cb_data); in tx_complete()
203 void *cb_data; in handle_pdu_outbound_report() local
218 srv.addr, &cb_data) || in handle_pdu_outbound_report()
224 tx_complete(cli, 0, cb_data); in handle_pdu_outbound_report()
390 static void pdu_send_start(uint16_t duration, int err, void *cb_data) in pdu_send_start() argument
392 struct bt_mesh_rpr_cli *cli = cb_data; in pdu_send_start()
402 static void pdu_send_end(int err, void *cb_data) in pdu_send_end() argument
404 struct bt_mesh_rpr_cli *cli = cb_data; in pdu_send_end()
640 void *cb_data) in send() argument
[all …]
Dnet.h303 const struct bt_mesh_send_cb *cb, void *cb_data);
331 void *cb_data) in send_cb_finalize() argument
338 cb->start(0, 0, cb_data); in send_cb_finalize()
342 cb->end(0, cb_data); in send_cb_finalize()
Ddelayable_msg.h12 void *cb_data);
Dtransport.h86 void *cb_data);
99 const struct bt_mesh_send_cb *cb, void *cb_data);
Dheartbeat.c59 static void hb_publish_end_cb(int err, void *cb_data) in hb_publish_end_cb() argument
101 static int heartbeat_send(const struct bt_mesh_send_cb *cb, void *cb_data) in heartbeat_send() argument
151 cb, cb_data); in heartbeat_send()
154 static void hb_publish_start_cb(uint16_t duration, int err, void *cb_data) in hb_publish_start_cb() argument
157 hb_publish_end_cb(err, cb_data); in hb_publish_start_cb()
357 static void hb_unsolicited_pub_end_cb(int err, void *cb_data) in hb_unsolicited_pub_end_cb() argument
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/
Dtest_callback_manage.c10 static struct drv_data cb_data[2]; variable
54 gpio_init_callback(&cb_data[0].gpio_cb, handler_1, BIT(PIN_IN)); in init_callback()
55 rc = gpio_add_callback(dev_in, &cb_data[0].gpio_cb); in init_callback()
59 gpio_init_callback(&cb_data[1].gpio_cb, handler_2, BIT(PIN_IN)); in init_callback()
60 rc = gpio_add_callback(dev_in, &cb_data[1].gpio_cb); in init_callback()
108 gpio_remove_callback(dev_in, &cb_data[0].gpio_cb); in test_callback_add_remove()
118 gpio_remove_callback(dev_in, &cb_data[1].gpio_cb); in test_callback_add_remove()
128 gpio_remove_callback(dev_in, &cb_data[0].gpio_cb); in test_callback_add_remove()
129 gpio_remove_callback(dev_in, &cb_data[1].gpio_cb); in test_callback_add_remove()
152 cb_data[0].aux = INT_MAX; in test_callback_self_remove()
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_enable_disable_interrupt/src/
Dmain.c14 static struct gpio_callback cb_data; variable
48 gpio_init_callback(&cb_data, callback, BIT(fixture->irq_spec->pin)); in gpio_enable_disable_interrupt_before()
49 zassert_ok(gpio_add_callback(fixture->irq_spec->port, &cb_data), "failed to add callback"); in gpio_enable_disable_interrupt_before()
57 zassert_ok(gpio_remove_callback(fixture->irq_spec->port, &cb_data), in gpio_enable_disable_interrupt_after()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_advertiser.c116 static void single_start_cb(uint16_t duration, int err, void *cb_data) in single_start_cb() argument
124 ASSERT_EQUAL(cb_msg, cb_data); in single_start_cb()
129 static void single_end_cb(int err, void *cb_data) in single_end_cb() argument
136 ASSERT_EQUAL(cb_msg, cb_data); in single_end_cb()
142 static void realloc_end_cb(int err, void *cb_data) in realloc_end_cb() argument
144 struct bt_mesh_adv *adv = (struct bt_mesh_adv *)cb_data; in realloc_end_cb()
154 static void seq_start_cb(uint16_t duration, int err, void *cb_data) in seq_start_cb() argument
157 ASSERT_EQUAL(seq_checker, (intptr_t)cb_data); in seq_start_cb()
160 static void seq_end_cb(int err, void *cb_data) in seq_end_cb() argument
163 ASSERT_EQUAL(seq_checker, (intptr_t)cb_data); in seq_end_cb()
[all …]
/Zephyr-latest/drivers/ethernet/phy/
Dphy_dm8806.c36 void *cb_data; member
57 void *cb_data) in phy_dm8806_thread_cb() argument
64 drv_data->link_speed_chenge_cb(dev, state, cb_data); in phy_dm8806_thread_cb()
78 void *cb_data = p2; in phy_dm8806_thread() local
83 phy_dm8806_thread_cb(drv_data->dev, state, cb_data); in phy_dm8806_thread()
121 void *cb_data = drv_data->cb_data; in phy_dm8806_init_interrupt() local
180 CONFIG_PHY_DM8806_THREAD_STACK_SIZE, phy_dm8806_thread, drv_data, cb_data, in phy_dm8806_init_interrupt()
428 data->cb_data = user_data; in phy_dm8806_link_cb_set()
/Zephyr-latest/drivers/serial/
Duart_nxp_s32_linflexd.c145 data->callback(dev, data->cb_data); in uart_nxp_s32_irq_tx_enable()
241 void *cb_data) in uart_nxp_s32_irq_callback_set() argument
246 data->cb_data = cb_data; in uart_nxp_s32_irq_callback_set()
275 data->callback(dev, data->cb_data); in uart_nxp_s32_event_handler()
281 data->callback(dev, data->cb_data); in uart_nxp_s32_event_handler()
285 data->callback(dev, data->cb_data); in uart_nxp_s32_event_handler()
Duart_sifive.c67 void *cb_data; member
304 void *cb_data) in uart_sifive_irq_callback_set() argument
309 data->cb_data = cb_data; in uart_sifive_irq_callback_set()
317 data->callback(dev, data->cb_data); in uart_sifive_irq_handler()
Duart_cdns.c84 data->callback(dev, data->cb_data); in uart_cdns_irq_handler()
131 data->callback(dev, data->cb_data); in uart_cdns_enable_tx_irq()
206 void *cb_data) in uart_cdns_set_irq_callback() argument
212 data->cb_data = cb_data; in uart_cdns_set_irq_callback()
Duart_imx.c42 void *cb_data; member
242 void *cb_data) in uart_imx_irq_callback_set() argument
247 data->cb_data = cb_data; in uart_imx_irq_callback_set()
265 data->callback(dev, data->cb_data); in uart_imx_isr()
Duart_msp432p4xx.c32 void *cb_data; /**< Callback function arg */ member
296 void *cb_data) in uart_msp432p4xx_irq_callback_set() argument
301 dev_data->cb_data = cb_data; in uart_msp432p4xx_irq_callback_set()
320 dev_data->cb(dev, dev_data->cb_data); in uart_msp432p4xx_isr()
Duart_bcm2711.c66 void *cb_data; member
250 void *cb_data) in uart_bcm2711_irq_callback_set() argument
255 data->cb_data = cb_data; in uart_bcm2711_irq_callback_set()
273 data->callback(dev, data->cb_data); in uart_isr()
Duart_cc32xx.c36 void *cb_data; /**< Callback function arg */ member
255 void *cb_data) in uart_cc32xx_irq_callback_set() argument
260 dev_data->cb_data = cb_data; in uart_cc32xx_irq_callback_set()
281 dev_data->cb(dev, dev_data->cb_data); in uart_cc32xx_isr()
Duart_litex.c41 void *cb_data; member
271 void *cb_data) in uart_litex_irq_callback_set() argument
277 data->cb_data = cb_data; in uart_litex_irq_callback_set()
287 data->callback(dev, data->cb_data); in uart_litex_irq_handler()
Duart_miv.c146 void *cb_data; member
301 data->callback(dev, data->cb_data); in uart_miv_irq_handler()
335 void *cb_data) in uart_miv_irq_callback_set() argument
340 data->cb_data = cb_data; in uart_miv_irq_callback_set()
/Zephyr-latest/tests/bluetooth/mesh/delayable_msg/src/
Dmain.c19 static void start_cb(uint16_t duration, int err, void *cb_data);
52 const struct bt_mesh_send_cb *cb, void *cb_data) in bt_mesh_access_send() argument
60 ztest_check_expected_data(cb_data, sizeof(uint32_t)); in bt_mesh_access_send()
65 cb->start(0x0, cb_err_status, cb_data); in bt_mesh_access_send()
82 static void start_cb(uint16_t duration, int err, void *cb_data) in start_cb() argument
88 id_mask |= 1 << *(uint16_t *)cb_data; in start_cb()
99 ztest_expect_data(bt_mesh_access_send, cb_data, buf_id); in set_expectation()
/Zephyr-latest/drivers/input/
Dinput_gpio_keys.c34 struct gpio_keys_callback cb_data; member
75 pin_data->cb_data.pin_state, new_pressed, key_index); in gpio_keys_poll_pin()
78 if (new_pressed != pin_data->cb_data.pin_state) { in gpio_keys_poll_pin()
79 pin_data->cb_data.pin_state = new_pressed; in gpio_keys_poll_pin()
133 keys_cb, struct gpio_keys_pin_data, cb_data); in gpio_keys_interrupt()
196 &pin_data[i].cb_data, in gpio_keys_init()

123456