Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/Zephyr-Core-2.7.6/subsys/net/l2/ppp/
Dlink.c19 static void lcp_up(struct ppp_context *ctx) in lcp_up()
32 static void do_network(struct ppp_context *ctx) in do_network()
70 static void do_auth(struct ppp_context *ctx) in do_auth()
97 void ppp_link_established(struct ppp_context *ctx, struct ppp_fsm *fsm) in ppp_link_established()
108 void ppp_link_authenticated(struct ppp_context *ctx) in ppp_link_authenticated()
115 void ppp_link_terminated(struct ppp_context *ctx) in ppp_link_terminated()
128 void ppp_link_down(struct ppp_context *ctx) in ppp_link_down()
139 void ppp_link_needed(struct ppp_context *ctx) in ppp_link_needed()
Dpap.c14 static enum net_verdict pap_handle(struct ppp_context *ctx, in pap_handle()
53 static void pap_lower_down(struct ppp_context *ctx) in pap_lower_down()
58 static void pap_lower_up(struct ppp_context *ctx) in pap_lower_up()
63 static void pap_open(struct ppp_context *ctx) in pap_open()
68 static void pap_close(struct ppp_context *ctx, const uint8_t *reason) in pap_close()
75 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in pap_up() local
92 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in pap_down() local
104 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in pap_finished() local
119 static void pap_init(struct ppp_context *ctx) in pap_init()
Dipcp.c21 static enum net_verdict ipcp_handle(struct ppp_context *ctx, in ipcp_handle()
33 static int ipcp_add_address(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_add_address()
40 static int ipcp_add_ip_address(struct ppp_context *ctx, struct net_pkt *pkt) in ipcp_add_ip_address()
45 static int ipcp_add_dns1(struct ppp_context *ctx, struct net_pkt *pkt) in ipcp_add_dns1()
50 static int ipcp_add_dns2(struct ppp_context *ctx, struct net_pkt *pkt) in ipcp_add_dns2()
77 static int ipcp_ack_ip_address(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_ack_ip_address()
84 static int ipcp_ack_dns1(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_ack_dns1()
91 static int ipcp_ack_dns2(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_ack_dns2()
108 static int ipcp_nak_ip_address(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_nak_ip_address()
115 static int ipcp_nak_dns1(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_nak_dns1()
[all …]
Dnetwork.c19 void ppp_network_up(struct ppp_context *ctx, int proto) in ppp_network_up()
31 void ppp_network_down(struct ppp_context *ctx, int proto) in ppp_network_down()
44 void ppp_network_done(struct ppp_context *ctx, int proto) in ppp_network_done()
56 void ppp_network_all_down(struct ppp_context *ctx) in ppp_network_all_down()
Dppp_l2.c74 struct ppp_context *ctx = net_if_l2_data(iface); in process_ppp_msg() local
169 struct ppp_context *ctx = net_if_l2_data(iface); in ppp_send() local
193 static void ppp_lower_down(struct ppp_context *ctx) in ppp_lower_down()
200 static void ppp_lower_up(struct ppp_context *ctx) in ppp_lower_up()
207 static void start_ppp(struct ppp_context *ctx) in start_ppp()
223 struct ppp_context *ctx = net_if_l2_data(iface); in ppp_enable() local
255 struct ppp_context *ctx = net_if_l2_data(iface); in ppp_flags() local
264 struct ppp_context *ctx = CONTAINER_OF(work, struct ppp_context, in carrier_on_off() local
297 struct ppp_context *ctx = net_if_l2_data(iface); in net_ppp_carrier_on() local
306 struct ppp_context *ctx = net_if_l2_data(iface); in net_ppp_carrier_off() local
[all …]
Dlcp.c53 static enum net_verdict lcp_handle(struct ppp_context *ctx, in lcp_handle()
116 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in lcp_config_info_req() local
143 static void lcp_lower_down(struct ppp_context *ctx) in lcp_lower_down()
148 static void lcp_lower_up(struct ppp_context *ctx) in lcp_lower_up()
153 static void lcp_open(struct ppp_context *ctx) in lcp_open()
158 static void lcp_close(struct ppp_context *ctx, const uint8_t *reason) in lcp_close()
169 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in lcp_down() local
182 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in lcp_up() local
192 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in lcp_starting() local
200 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in lcp_finished() local
[all …]
Dipv6cp.c20 static enum net_verdict ipv6cp_handle(struct ppp_context *ctx, in ipv6cp_handle()
30 static int ipv6cp_add_iid(struct ppp_context *ctx, struct net_pkt *pkt) in ipv6cp_add_iid()
50 static int ipv6cp_ack_iid(struct ppp_context *ctx, struct net_pkt *pkt, in ipv6cp_ack_iid()
128 struct ppp_context *ctx = in ipv6cp_config_info_req() local
159 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in ipv6cp_config_info_ack() local
188 static void ipv6cp_lower_down(struct ppp_context *ctx) in ipv6cp_lower_down()
193 static void ipv6cp_lower_up(struct ppp_context *ctx) in ipv6cp_lower_up()
198 static void ipv6cp_open(struct ppp_context *ctx) in ipv6cp_open()
203 static void ipv6cp_close(struct ppp_context *ctx, const uint8_t *reason) in ipv6cp_close()
241 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in ipv6cp_up() local
[all …]
/Zephyr-Core-2.7.6/subsys/modbus/
Dmodbus_serial.c31 static void modbus_serial_tx_on(struct modbus_context *ctx) in modbus_serial_tx_on()
42 static void modbus_serial_tx_off(struct modbus_context *ctx) in modbus_serial_tx_off()
52 static void modbus_serial_rx_on(struct modbus_context *ctx) in modbus_serial_rx_on()
63 static void modbus_serial_rx_off(struct modbus_context *ctx) in modbus_serial_rx_off()
98 static int modbus_ascii_rx_adu(struct modbus_context *ctx) in modbus_ascii_rx_adu()
184 static void modbus_ascii_tx_adu(struct modbus_context *ctx) in modbus_ascii_tx_adu()
231 static int modbus_ascii_rx_adu(struct modbus_context *ctx) in modbus_ascii_rx_adu()
236 static void modbus_ascii_tx_adu(struct modbus_context *ctx) in modbus_ascii_tx_adu()
273 static int modbus_rtu_rx_adu(struct modbus_context *ctx) in modbus_rtu_rx_adu()
310 static void rtu_tx_adu(struct modbus_context *ctx) in rtu_tx_adu()
[all …]
Dmodbus_core.c70 struct modbus_context *ctx; in modbus_rx_handler() local
121 void modbus_tx_adu(struct modbus_context *ctx) in modbus_tx_adu()
142 int modbus_tx_wait_rx_adu(struct modbus_context *ctx) in modbus_tx_wait_rx_adu()
156 struct modbus_context *ctx; in modbus_get_context() local
173 int modbus_iface_get_by_ctx(const struct modbus_context *ctx) in modbus_iface_get_by_ctx()
197 struct modbus_context *ctx; in modbus_init_iface() local
220 struct modbus_context *ctx = NULL; in modbus_init_server() local
286 struct modbus_context *ctx = NULL; in modbus_init_client() local
342 struct modbus_context *ctx; in modbus_disable() local
Dmodbus_server.c34 void modbus_reset_stats(struct modbus_context *ctx) in modbus_reset_stats()
44 static void update_msg_ctr(struct modbus_context *ctx) in update_msg_ctr()
49 static void update_crcerr_ctr(struct modbus_context *ctx) in update_crcerr_ctr()
54 static void update_excep_ctr(struct modbus_context *ctx) in update_excep_ctr()
59 static void update_server_msg_ctr(struct modbus_context *ctx) in update_server_msg_ctr()
64 static void update_noresp_ctr(struct modbus_context *ctx) in update_noresp_ctr()
81 static void mbs_exception_rsp(struct modbus_context *ctx, uint8_t excep_code) in mbs_exception_rsp()
107 static bool mbs_fc01_coil_read(struct modbus_context *ctx) in mbs_fc01_coil_read()
206 static bool mbs_fc02_di_read(struct modbus_context *ctx) in mbs_fc02_di_read()
307 static bool mbs_fc03_hreg_read(struct modbus_context *ctx) in mbs_fc03_hreg_read()
[all …]
Dmodbus_raw.c18 int modbus_raw_rx_adu(struct modbus_context *ctx) in modbus_raw_rx_adu()
34 int modbus_raw_tx_adu(struct modbus_context *ctx) in modbus_raw_tx_adu()
53 struct modbus_context *ctx; in modbus_raw_submit_rx() local
124 struct modbus_context *ctx; in modbus_raw_backend_txn() local
158 int modbus_raw_init(struct modbus_context *ctx, in modbus_raw_init()
170 void modbus_raw_disable(struct modbus_context *ctx) in modbus_raw_disable()
/Zephyr-Core-2.7.6/drivers/spi/
Dspi_context.h60 static inline bool spi_context_configured(struct spi_context *ctx, in spi_context_configured()
66 static inline bool spi_context_is_slave(struct spi_context *ctx) in spi_context_is_slave()
71 static inline void spi_context_lock(struct spi_context *ctx, in spi_context_lock()
91 static inline void spi_context_release(struct spi_context *ctx, int status) in spi_context_release()
112 static inline int spi_context_wait_for_completion(struct spi_context *ctx) in spi_context_wait_for_completion()
158 static inline void spi_context_complete(struct spi_context *ctx, int status) in spi_context_complete()
189 gpio_dt_flags_t spi_context_cs_active_level(struct spi_context *ctx) in spi_context_cs_active_level()
198 static inline void spi_context_cs_configure(struct spi_context *ctx) in spi_context_cs_configure()
214 static inline void _spi_context_cs_control(struct spi_context *ctx, in _spi_context_cs_control()
235 static inline void spi_context_cs_control(struct spi_context *ctx, bool on) in spi_context_cs_control()
[all …]
/Zephyr-Core-2.7.6/subsys/canbus/isotp/
Disotp.c49 struct isotp_recv_ctx *ctx; in receive_pool_free() local
62 struct isotp_recv_ctx *ctx; in receive_ff_sf_pool_free() local
84 static inline void receive_report_error(struct isotp_recv_ctx *ctx, int err) in receive_report_error()
92 struct isotp_recv_ctx *ctx = (struct isotp_recv_ctx *)arg; in receive_can_tx_isr() local
128 static void receive_send_fc(struct isotp_recv_ctx *ctx, uint8_t fs) in receive_send_fc()
203 struct isotp_recv_ctx *ctx = CONTAINER_OF(to, struct isotp_recv_ctx, in receive_timeout_handler() local
220 static int receive_alloc_buffer(struct isotp_recv_ctx *ctx) in receive_alloc_buffer()
267 static void receive_state_machine(struct isotp_recv_ctx *ctx) in receive_state_machine()
381 struct isotp_recv_ctx *ctx = CONTAINER_OF(item, struct isotp_recv_ctx, in receive_work_handler() local
387 static void process_ff_sf(struct isotp_recv_ctx *ctx, struct zcan_frame *frame) in process_ff_sf()
[all …]
/Zephyr-Core-2.7.6/drivers/modem/
Dmodem_receiver.c59 static int mdm_receiver_get(struct mdm_receiver_context *ctx) in mdm_receiver_get()
82 static void mdm_receiver_flush(struct mdm_receiver_context *ctx) in mdm_receiver_flush()
106 struct mdm_receiver_context *ctx; in mdm_receiver_isr() local
144 static void mdm_receiver_setup(struct mdm_receiver_context *ctx) in mdm_receiver_setup()
164 int mdm_receiver_recv(struct mdm_receiver_context *ctx, in mdm_receiver_recv()
180 int mdm_receiver_send(struct mdm_receiver_context *ctx, in mdm_receiver_send()
198 int mdm_receiver_sleep(struct mdm_receiver_context *ctx) in mdm_receiver_sleep()
207 int mdm_receiver_wake(struct mdm_receiver_context *ctx) in mdm_receiver_wake()
217 int mdm_receiver_register(struct mdm_receiver_context *ctx, in mdm_receiver_register()
Dmodem_pin.c19 int modem_pin_read(struct modem_context *ctx, uint32_t pin) in modem_pin_read()
29 int modem_pin_write(struct modem_context *ctx, uint32_t pin, uint32_t value) in modem_pin_write()
39 int modem_pin_config(struct modem_context *ctx, uint32_t pin, bool enable) in modem_pin_config()
51 int modem_pin_init(struct modem_context *ctx) in modem_pin_init()
/Zephyr-Core-2.7.6/drivers/adc/
Dadc_context.h76 static inline void adc_context_request_next_sampling(struct adc_context *ctx) in adc_context_request_next_sampling()
93 static inline void adc_context_enable_timer(struct adc_context *ctx) in adc_context_enable_timer()
98 static inline void adc_context_disable_timer(struct adc_context *ctx) in adc_context_disable_timer()
105 struct adc_context *ctx = in adc_context_on_timer_expired() local
113 static inline void adc_context_lock(struct adc_context *ctx, in adc_context_lock()
125 static inline void adc_context_release(struct adc_context *ctx, int status) in adc_context_release()
136 static inline void adc_context_unlock_unconditionally(struct adc_context *ctx) in adc_context_unlock_unconditionally()
143 static inline int adc_context_wait_for_completion(struct adc_context *ctx) in adc_context_wait_for_completion()
155 static inline void adc_context_complete(struct adc_context *ctx, int status) in adc_context_complete()
179 static inline void adc_context_start_read(struct adc_context *ctx, in adc_context_start_read()
[all …]
/Zephyr-Core-2.7.6/subsys/dfu/img_util/
Dflash_img.c39 int flash_img_buffered_write(struct flash_img_context *ctx, const uint8_t *data, in flash_img_buffered_write()
64 size_t flash_img_bytes_written(struct flash_img_context *ctx) in flash_img_bytes_written()
69 int flash_img_init_id(struct flash_img_context *ctx, uint8_t area_id) in flash_img_init_id()
87 int flash_img_init(struct flash_img_context *ctx) in flash_img_init()
93 int flash_img_check(struct flash_img_context *ctx, in flash_img_check()
/Zephyr-Core-2.7.6/subsys/net/l2/virtual/
Dvirtual.c48 struct virtual_interface_context *ctx, *tmp, *ctx_up, *ctx_orig; in virtual_enable() local
120 struct virtual_interface_context *ctx = net_if_l2_data(iface); in virtual_flags() local
141 struct virtual_interface_context *ctx; in net_virtual_interface_attach() local
225 struct virtual_interface_context *ctx, *tmp; in net_virtual_disable() local
245 struct virtual_interface_context *ctx; in net_virtual_get_iface() local
262 struct virtual_interface_context *ctx; in net_virtual_get_name() local
282 struct virtual_interface_context *ctx; in net_virtual_set_name() local
301 struct virtual_interface_context *ctx; in net_virtual_set_flags() local
323 struct virtual_interface_context *ctx, *tmp; in net_virtual_input() local
375 struct virtual_interface_context *ctx; in net_virtual_init() local
/Zephyr-Core-2.7.6/subsys/ipc/rpmsg_multi_instance/
Drpmsg_multi_instance.c29 struct rpmsg_mi_ctx *ctx = metal_container_of(p_vdev, struct rpmsg_mi_ctx, vdev); in virtio_get_status() local
50 struct rpmsg_mi_ctx *ctx = metal_container_of(p_vdev, struct rpmsg_mi_ctx, vdev); in virtio_set_status() local
65 struct rpmsg_mi_ctx *ctx = metal_container_of(vq->vq_dev, struct rpmsg_mi_ctx, vdev); in virtio_notify() local
88 struct rpmsg_mi_ctx *ctx = CONTAINER_OF(item, struct rpmsg_mi_ctx, ipm_work); in ipm_callback_process() local
97 struct rpmsg_mi_ctx *ctx = (struct rpmsg_mi_ctx *)context; in ipm_callback() local
102 static void rpmsg_mi_configure_shm(struct rpmsg_mi_ctx *ctx, const struct rpmsg_mi_ctx_cfg *cfg) in rpmsg_mi_configure_shm()
166 struct rpmsg_mi_ctx *ctx = metal_container_of(p_rvdev, struct rpmsg_mi_ctx, rvdev); in ns_bind_cb() local
204 static int libmetal_setup(struct rpmsg_mi_ctx *ctx) in libmetal_setup()
237 static int ipm_setup(struct rpmsg_mi_ctx *ctx, const struct rpmsg_mi_ctx_cfg *cfg) in ipm_setup()
272 static int vq_setup(struct rpmsg_mi_ctx *ctx, size_t vring_size) in vq_setup()
[all …]
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
Ddevice_composition.c72 struct bt_mesh_msg_ctx *ctx, in gen_onoff_get()
123 struct bt_mesh_msg_ctx *ctx, in gen_onoff_set_unack()
192 struct bt_mesh_msg_ctx *ctx, in gen_onoff_set()
265 struct bt_mesh_msg_ctx *ctx, in gen_onoff_status()
281 struct bt_mesh_msg_ctx *ctx, in gen_level_get()
332 struct bt_mesh_msg_ctx *ctx, in gen_level_set_unack()
398 struct bt_mesh_msg_ctx *ctx, in gen_level_set()
467 struct bt_mesh_msg_ctx *ctx, in gen_delta_set_unack()
549 struct bt_mesh_msg_ctx *ctx, in gen_delta_set()
634 struct bt_mesh_msg_ctx *ctx, in gen_move_set_unack()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/socketpair/src/
Dsocketpair_example.c35 struct ctx { struct
36 int spair[2];
37 pthread_t thread;
38 char *name;
70 struct ctx *const ctx = (struct ctx *)arg; in fun() local
85 static int fd_to_idx(int fd, struct ctx *ctx, size_t n) in fd_to_idx()
117 struct ctx ctx[NUM_SOCKETPAIRS] = {}; local
/Zephyr-Core-2.7.6/subsys/storage/stream/
Dstream_flash.c26 struct stream_flash_ctx *ctx = (struct stream_flash_ctx *) param; in settings_direct_loader() local
77 int stream_flash_erase_page(struct stream_flash_ctx *ctx, off_t off) in stream_flash_erase_page()
107 static int flash_sync(struct stream_flash_ctx *ctx) in flash_sync()
178 int stream_flash_buffered_write(struct stream_flash_ctx *ctx, const uint8_t *data, in stream_flash_buffered_write()
222 size_t stream_flash_bytes_written(struct stream_flash_ctx *ctx) in stream_flash_bytes_written()
235 struct _inspect_flash *ctx = (struct _inspect_flash *) data; in find_flash_total_size() local
248 int stream_flash_init(struct stream_flash_ctx *ctx, const struct device *fdev, in stream_flash_init()
308 int stream_flash_progress_load(struct stream_flash_ctx *ctx, in stream_flash_progress_load()
327 int stream_flash_progress_save(struct stream_flash_ctx *ctx, in stream_flash_progress_save()
346 int stream_flash_progress_clear(struct stream_flash_ctx *ctx, in stream_flash_progress_clear()
/Zephyr-Core-2.7.6/drivers/can/
Dcan_net.c31 struct mcast_filter_mapping *can_get_mcast_filter(struct net_can_context *ctx, in can_get_mcast_filter()
95 struct net_can_context *ctx = dev->data; in net_can_send() local
103 struct net_can_context *ctx = (struct net_can_context *)arg; in net_can_recv() local
143 static inline int attach_mcast_filter(struct net_can_context *ctx, in attach_mcast_filter()
177 struct net_can_context *ctx = dev->data; in mcast_cb() local
210 struct net_can_context *ctx = dev->data; in net_can_iface_init() local
225 struct net_can_context *ctx = dev->data; in can_attach_filter() local
232 struct net_can_context *ctx = dev->data; in can_detach_filter() local
239 static inline int can_attach_unicast_filter(struct net_can_context *ctx) in can_attach_unicast_filter()
266 static inline int can_attach_eth_bridge_filter(struct net_can_context *ctx) in can_attach_eth_bridge_filter()
[all …]
/Zephyr-Core-2.7.6/subsys/net/l2/ieee802154/
Dieee802154_mgmt.c29 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_handle_beacon() local
67 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_cancel_scan() local
85 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_scan() local
190 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_handle_mac_command() local
229 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_associate() local
309 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_disassociate() local
356 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_set_ack() local
380 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_set_parameters() local
456 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_get_parameters() local
508 struct ieee802154_context *ctx = net_if_l2_data(iface); in ieee802154_set_security_settings() local
[all …]
/Zephyr-Core-2.7.6/include/crypto/
Dcipher.h117 struct cipher_ctx *ctx, in cipher_begin_session()
159 struct cipher_ctx *ctx) in cipher_free_session()
206 static inline int cipher_block_op(struct cipher_ctx *ctx, in cipher_block_op()
227 static inline int cipher_cbc_op(struct cipher_ctx *ctx, in cipher_cbc_op()
254 static inline int cipher_ctr_op(struct cipher_ctx *ctx, in cipher_ctr_op()
276 static inline int cipher_ccm_op(struct cipher_ctx *ctx, in cipher_ccm_op()
298 static inline int cipher_gcm_op(struct cipher_ctx *ctx, in cipher_gcm_op()

12345678910>>...12