Home
last modified time | relevance | path

Searched full:const (Results 1 – 25 of 3440) sorted by relevance

12345678910>>...138

/Zephyr-latest/subsys/usb/host/
Dusbh_ch9.h15 int usbh_req_setup(struct usb_device *const udev,
16 const uint8_t bmRequestType,
17 const uint8_t bRequest,
18 const uint16_t wValue,
19 const uint16_t wIndex,
20 const uint16_t wLength,
21 struct net_buf *const data);
23 int usbh_req_desc(struct usb_device *const udev,
24 const uint8_t type, const uint8_t index,
25 const uint16_t id,
[all …]
Dusbh_ch9.c29 static int ch9_req_cb(struct usb_device *const udev, struct uhc_transfer *const xfer) in ch9_req_cb()
37 int usbh_req_setup(struct usb_device *const udev, in usbh_req_setup()
38 const uint8_t bmRequestType, in usbh_req_setup()
39 const uint8_t bRequest, in usbh_req_setup()
40 const uint16_t wValue, in usbh_req_setup()
41 const uint16_t wIndex, in usbh_req_setup()
42 const uint16_t wLength, in usbh_req_setup()
43 struct net_buf *const buf) in usbh_req_setup()
86 int usbh_req_desc(struct usb_device *const udev, in usbh_req_desc()
87 const uint8_t type, const uint8_t index, in usbh_req_desc()
[all …]
Dusbh_device.h32 typedef int (*usbh_udev_cb_t)(struct usb_device *const udev,
33 struct uhc_transfer *const xfer);
39 struct usb_device *usbh_device_get_any(struct usbh_contex *const ctx);
43 const uint8_t ep, in usbh_xfer_alloc()
44 const uint8_t attrib, in usbh_xfer_alloc()
45 const uint16_t mps, in usbh_xfer_alloc()
46 const uint16_t timeout, in usbh_xfer_alloc()
47 usbh_udev_cb_t *const cb) in usbh_xfer_alloc()
49 struct usbh_contex *const ctx = udev->ctx; in usbh_xfer_alloc()
54 static inline int usbh_xfer_buf_add(const struct usb_device *udev, in usbh_xfer_buf_add()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto.h17 const void *data;
23 int bt_mesh_encrypt(const struct bt_mesh_key *key, const uint8_t plaintext[16],
26 int bt_mesh_ccm_encrypt(const struct bt_mesh_key *key, uint8_t nonce[13], const uint8_t *plaintext,
27 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *enc_data,
30 int bt_mesh_ccm_decrypt(const struct bt_mesh_key *key, uint8_t nonce[13], const uint8_t *enc_data,
31 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *plaintext,
34 int bt_mesh_aes_cmac_mesh_key(const struct bt_mesh_key *key, struct bt_mesh_sg *sg, size_t sg_len,
37 int bt_mesh_aes_cmac_raw_key(const uint8_t key[16], struct bt_mesh_sg *sg, size_t sg_len,
40 int bt_mesh_sha256_hmac_raw_key(const uint8_t key[32], struct bt_mesh_sg *sg, size_t sg_len,
43 int bt_mesh_s1(const char *m, size_t m_len, uint8_t salt[16]);
[all …]
/Zephyr-latest/include/zephyr/drivers/uart/
Duart_internal.h36 typedef void (*uart_irq_config_func_t)(const struct device *dev);
43 int (*callback_set)(const struct device *dev, uart_callback_t callback, void *user_data);
45 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len, int32_t timeout);
46 int (*tx_abort)(const struct device *dev);
48 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len, int32_t timeout);
49 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len);
50 int (*rx_disable)(const struct device *dev);
53 int (*tx_u16)(const struct device *dev, const uint16_t *buf, size_t len, int32_t timeout);
54 int (*rx_enable_u16)(const struct device *dev, uint16_t *buf, size_t len, int32_t timeout);
55 int (*rx_buf_rsp_u16)(const struct device *dev, uint16_t *buf, size_t len);
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dsettings.h25 int bt_settings_store(const char *key, uint8_t id, const bt_addr_le_t *addr, const void *value,
27 int bt_settings_delete(const char *key, uint8_t id, const bt_addr_le_t *addr);
29 void bt_testing_settings_store_hook(const char *key, const void *value, size_t val_len);
30 void bt_testing_settings_delete_hook(const char *key);
33 void bt_settings_encode_key(char *path, size_t path_size, const char *subsys,
34 const bt_addr_le_t *addr, const char *key);
35 int bt_settings_decode_key(const char *key, bt_addr_le_t *addr);
41 int bt_settings_store_sc(uint8_t id, const bt_addr_le_t *addr, const void *value, size_t val_len);
42 int bt_settings_delete_sc(uint8_t id, const bt_addr_le_t *addr);
44 int bt_settings_store_cf(uint8_t id, const bt_addr_le_t *addr, const void *value, size_t val_len);
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_hid_api.c20 int hid_device_submit_report(const struct device *dev, in hid_device_submit_report()
21 const uint16_t size, const uint8_t *const report) in hid_device_submit_report()
23 const struct hid_device_driver_api *api = dev->api; in hid_device_submit_report()
28 int hid_device_register(const struct device *dev, in hid_device_register()
29 const uint8_t *const rdesc, const uint16_t rsize, in hid_device_register()
30 const struct hid_device_ops *const ops) in hid_device_register()
32 const struct hid_device_driver_api *api = dev->api; in hid_device_register()
40 const struct device *dev;
41 const struct hid_ops *legacy_ops;
59 static const struct hid_ops *get_legacy_ops(const struct device *dev) in get_legacy_ops()
[all …]
Dusbd_hid.c68 const struct usb_desc_header **fs_desc;
69 const struct usb_desc_header **hs_desc;
73 const struct device *dev;
74 const struct hid_device_ops *ops;
75 const uint8_t *rdesc;
84 static inline uint8_t hid_get_in_ep(struct usbd_class_data *const c_data) in hid_get_in_ep()
86 const struct device *dev = usbd_class_get_private(c_data); in hid_get_in_ep()
87 const struct hid_device_config *dcfg = dev->config; in hid_get_in_ep()
93 static inline uint8_t hid_get_out_ep(struct usbd_class_data *const c_data) in hid_get_out_ep()
95 const struct device *dev = usbd_class_get_private(c_data); in hid_get_out_ep()
[all …]
Dusbd_hid_internal.h17 int (*enable_output)(const struct device *dev, const bool enable);
18 int (*submit_report)(const struct device *dev,
19 const uint16_t size, const uint8_t *const report);
20 int (*dev_register)(const struct device *dev,
21 const uint8_t *const rdesc, const uint16_t rsize,
22 const struct hid_device_ops *const ops);
/Zephyr-latest/subsys/dsp/arcmwdt/public/
Dzdsp_backend.h22 static inline void zdsp_mult_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b, in zdsp_mult_q7()
27 static inline void zdsp_mult_q15(const DSP_DATA q15_t *src_a, const DSP_DATA q15_t *src_b, in zdsp_mult_q15()
32 static inline void zdsp_mult_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b, in zdsp_mult_q31()
37 static inline void zdsp_mult_f32(const DSP_DATA float32_t *src_a, const DSP_DATA float32_t *src_b, in zdsp_mult_f32()
43 static inline void zdsp_add_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b, in zdsp_add_q7()
48 static inline void zdsp_add_q15(const DSP_DATA q15_t *src_a, const DSP_DATA q15_t *src_b, in zdsp_add_q15()
53 static inline void zdsp_add_q31(const DSP_DATA q31_t *src_a, const DSP_DATA q31_t *src_b, in zdsp_add_q31()
58 static inline void zdsp_add_f32(const DSP_DATA float32_t *src_a, const DSP_DATA float32_t *src_b, in zdsp_add_f32()
64 static inline void zdsp_sub_q7(const DSP_DATA q7_t *src_a, const DSP_DATA q7_t *src_b, in zdsp_sub_q7()
69 static inline void zdsp_sub_q15(const DSP_DATA q15_t *src_a, const DSP_DATA q15_t *src_b, in zdsp_sub_q15()
[all …]
/Zephyr-latest/subsys/dsp/cmsis/public/
Dzdsp_backend.h19 static inline void zdsp_mult_q7(const q7_t *src_a, const q7_t *src_b, q7_t *dst, in zdsp_mult_q7()
24 static inline void zdsp_mult_q15(const q15_t *src_a, const q15_t *src_b, q15_t *dst, in zdsp_mult_q15()
29 static inline void zdsp_mult_q31(const q31_t *src_a, const q31_t *src_b, q31_t *dst, in zdsp_mult_q31()
34 static inline void zdsp_mult_f32(const float32_t *src_a, const float32_t *src_b, float32_t *dst, in zdsp_mult_f32()
40 static inline void zdsp_add_q7(const q7_t *src_a, const q7_t *src_b, q7_t *dst, uint32_t block_size) in zdsp_add_q7()
44 static inline void zdsp_add_q15(const q15_t *src_a, const q15_t *src_b, q15_t *dst, in zdsp_add_q15()
49 static inline void zdsp_add_q31(const q31_t *src_a, const q31_t *src_b, q31_t *dst, in zdsp_add_q31()
54 static inline void zdsp_add_f32(const float32_t *src_a, const float32_t *src_b, float32_t *dst, in zdsp_add_f32()
60 static inline void zdsp_sub_q7(const q7_t *src_a, const q7_t *src_b, q7_t *dst, uint32_t block_size) in zdsp_sub_q7()
64 static inline void zdsp_sub_q15(const q15_t *src_a, const q15_t *src_b, q15_t *dst, in zdsp_sub_q15()
[all …]
/Zephyr-latest/drivers/serial/
Duart_sam.c27 const struct atmel_sam_pmc_config clock_cfg;
28 const struct pinctrl_dev_config *pcfg;
45 static int uart_sam_poll_in(const struct device *dev, unsigned char *c) in uart_sam_poll_in()
47 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_poll_in()
49 Uart * const uart = cfg->regs; in uart_sam_poll_in()
61 static void uart_sam_poll_out(const struct device *dev, unsigned char c) in uart_sam_poll_out()
63 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_poll_out()
65 Uart * const uart = cfg->regs; in uart_sam_poll_out()
75 static int uart_sam_err_check(const struct device *dev) in uart_sam_err_check()
77 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_err_check()
[all …]
Dusart_sam.c27 const struct atmel_sam_pmc_config clock_cfg;
28 const struct pinctrl_dev_config *pcfg;
46 static int usart_sam_poll_in(const struct device *dev, unsigned char *c) in usart_sam_poll_in()
48 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_poll_in()
50 Usart * const usart = config->regs; in usart_sam_poll_in()
62 static void usart_sam_poll_out(const struct device *dev, unsigned char c) in usart_sam_poll_out()
64 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_poll_out()
66 Usart * const usart = config->regs; in usart_sam_poll_out()
76 static int usart_sam_err_check(const struct device *dev) in usart_sam_err_check()
78 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_err_check()
[all …]
Dusart_gd32.c28 const struct pinctrl_dev_config *pcfg;
44 static void usart_gd32_isr(const struct device *dev) in usart_gd32_isr()
46 struct gd32_usart_data *const data = dev->data; in usart_gd32_isr()
54 static int usart_gd32_init(const struct device *dev) in usart_gd32_init()
56 const struct gd32_usart_config *const cfg = dev->config; in usart_gd32_init()
57 struct gd32_usart_data *const data = dev->data; in usart_gd32_init()
109 static int usart_gd32_poll_in(const struct device *dev, unsigned char *c) in usart_gd32_poll_in()
111 const struct gd32_usart_config *const cfg = dev->config; in usart_gd32_poll_in()
125 static void usart_gd32_poll_out(const struct device *dev, unsigned char c) in usart_gd32_poll_out()
127 const struct gd32_usart_config *const cfg = dev->config; in usart_gd32_poll_out()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_filter.h8 bool ull_filter_ull_pal_addr_match(const uint8_t addr_type,
9 const uint8_t *const addr);
10 bool ull_filter_ull_pal_match(const uint8_t addr_type,
11 const uint8_t *const addr, const uint8_t sid);
12 bool ull_filter_ull_pal_listed(const uint8_t rl_idx, uint8_t *const addr_type,
13 uint8_t *const addr);
19 const uint8_t *ull_filter_adva_get(uint8_t rl_idx);
20 const uint8_t *ull_filter_tgta_get(uint8_t rl_idx);
21 uint8_t ull_filter_rl_find(uint8_t id_addr_type, uint8_t const *const id_addr,
22 uint8_t *const free);
/Zephyr-latest/lib/libc/minimal/include/
Dstring.h19 extern char *strcpy(char *ZRESTRICT d, const char *ZRESTRICT s);
22 extern char *strncpy(char *ZRESTRICT d, const char *ZRESTRICT s,
24 extern char *strchr(const char *s, int c);
25 extern char *strrchr(const char *s, int c);
26 extern size_t strlen(const char *s);
27 extern size_t strnlen(const char *s, size_t maxlen);
28 extern int strcmp(const char *s1, const char *s2);
29 extern int strncmp(const char *s1, const char *s2, size_t n);
30 extern char *strtok_r(char *str, const char *sep, char **state);
32 const char *ZRESTRICT src);
[all …]
/Zephyr-latest/include/zephyr/drivers/can/
Dcan_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_can_start, const struct device *);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_can_stop, const struct device *);
21 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *);
23 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing_data, const struct device *,
24 const struct can_timing *);
26 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *);
28 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
30 DECLARE_FAKE_VALUE_FUNC(int, fake_can_send, const struct device *, const struct can_frame *,
33 DECLARE_FAKE_VALUE_FUNC(int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t,
34 void *, const struct can_filter *);
[all …]
/Zephyr-latest/drivers/usb_c/ppc/
Dusbc_ppc_numaker.c34 const struct device *tcpc_dev;
43 static int numaker_ppc_init(const struct device *dev) in numaker_ppc_init()
45 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_init()
46 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_init()
64 static int numaker_ppc_is_dead_battery_mode(const struct device *dev) in numaker_ppc_is_dead_battery_mode()
66 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_dead_battery_mode()
67 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_dead_battery_mode()
78 static int numaker_ppc_exit_dead_battery_mode(const struct device *dev) in numaker_ppc_exit_dead_battery_mode()
80 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_exit_dead_battery_mode()
81 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_exit_dead_battery_mode()
[all …]
/Zephyr-latest/subsys/net/ip/
Dtp.h52 const char *msg;
55 static const struct json_obj_descr tp_msg_dsc[] = {
61 const char *msg;
62 const char *status;
63 const char *state;
66 const char *rcv;
67 const char *data;
68 const char *op;
76 static const struct json_obj_descr tp_descr[] = {
88 const char *key;
[all …]
/Zephyr-latest/subsys/tracing/user/
Dtracing_user.c26 void __weak sys_trace_sys_init_enter_user(const struct init_entry *entry, int level) {} in sys_trace_sys_init_enter_user()
27 void __weak sys_trace_sys_init_exit_user(const struct init_entry *entry, int level, int result) {} in sys_trace_sys_init_exit_user()
28 void __weak sys_trace_gpio_pin_interrupt_configure_enter_user(const struct device *port, in sys_trace_gpio_pin_interrupt_configure_enter_user()
30 void __weak sys_trace_gpio_pin_interrupt_configure_exit_user(const struct device *port, in sys_trace_gpio_pin_interrupt_configure_exit_user()
32 void __weak sys_trace_gpio_pin_configure_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_enter_user()
34 void __weak sys_trace_gpio_pin_configure_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_exit_user()
36 void __weak sys_trace_gpio_port_get_direction_enter_user(const struct device *port, in sys_trace_gpio_port_get_direction_enter_user()
40 void __weak sys_trace_gpio_port_get_direction_exit_user(const struct device *port, int ret) {} in sys_trace_gpio_port_get_direction_exit_user()
41 void __weak sys_trace_gpio_pin_get_config_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_get_config_enter_user()
43 void __weak sys_trace_gpio_pin_get_config_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_get_config_exit_user()
[all …]
/Zephyr-latest/subsys/shell/
Dshell_ops.h18 static inline void z_shell_raw_fprintf(const struct shell_fprintf *const ctx, in z_shell_raw_fprintf()
19 const char *fmt, ...) in z_shell_raw_fprintf()
53 static inline bool z_flag_insert_mode_get(const struct shell *sh) in z_flag_insert_mode_get()
58 static inline bool z_flag_insert_mode_set(const struct shell *sh, bool val) in z_flag_insert_mode_set()
66 static inline bool z_flag_use_colors_get(const struct shell *sh) in z_flag_use_colors_get()
71 static inline bool z_flag_use_colors_set(const struct shell *sh, bool val) in z_flag_use_colors_set()
79 static inline bool z_flag_use_vt100_get(const struct shell *sh) in z_flag_use_vt100_get()
84 static inline bool z_flag_use_vt100_set(const struct shell *sh, bool val) in z_flag_use_vt100_set()
92 static inline bool z_flag_echo_get(const struct shell *sh) in z_flag_echo_get()
97 static inline bool z_flag_echo_set(const struct shell *sh, bool val) in z_flag_echo_set()
[all …]
/Zephyr-latest/scripts/coccinelle/
Dconst_config_info.cocci4 // Enforce preservation of const qualifier on config_info casts
7 // structure. The object is const-qualified; make sure the cast
29 +const
32 // bare const: (struct T* const)E
41 +const
42 struct T * const)E->config_info
44 // asg: struct T *D = (const struct T*)
53 +const
54 struct T * D = (const struct T*)E->config_info;
56 // asg to const local: struct T * const D = (const struct T*)
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_ifx_cat1.c42 const struct device *dev;
48 static int gpio_cat1_configure(const struct device *dev, gpio_pin_t pin, gpio_flags_t flags) in gpio_cat1_configure()
52 const struct gpio_cat1_config *const cfg = dev->config; in gpio_cat1_configure()
53 GPIO_PRT_Type *const base = cfg->regs; in gpio_cat1_configure()
99 static int gpio_cat1_port_get_raw(const struct device *dev, in gpio_cat1_port_get_raw()
102 const struct gpio_cat1_config *const cfg = dev->config; in gpio_cat1_port_get_raw()
103 GPIO_PRT_Type *const base = cfg->regs; in gpio_cat1_port_get_raw()
110 static int gpio_cat1_port_set_masked_raw(const struct device *dev, in gpio_cat1_port_set_masked_raw()
113 const struct gpio_cat1_config *const cfg = dev->config; in gpio_cat1_port_set_masked_raw()
114 GPIO_PRT_Type *const base = cfg->regs; in gpio_cat1_port_set_masked_raw()
[all …]
/Zephyr-latest/include/zephyr/drivers/virtualization/
Divshmem.h29 typedef size_t (*ivshmem_get_mem_f)(const struct device *dev,
32 typedef uint32_t (*ivshmem_get_id_f)(const struct device *dev);
34 typedef uint16_t (*ivshmem_get_vectors_f)(const struct device *dev);
36 typedef int (*ivshmem_int_peer_f)(const struct device *dev,
39 typedef int (*ivshmem_register_handler_f)(const struct device *dev,
45 typedef size_t (*ivshmem_get_rw_mem_section_f)(const struct device *dev,
48 typedef size_t (*ivshmem_get_output_mem_section_f)(const struct device *dev,
52 typedef uint32_t (*ivshmem_get_state_f)(const struct device *dev,
55 typedef int (*ivshmem_set_state_f)(const struct device *dev,
58 typedef uint32_t (*ivshmem_get_max_peers_f)(const struct device *dev);
[all …]
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dgicv3_its.h19 typedef unsigned int (*its_api_alloc_intid_t)(const struct device *dev);
20 typedef int (*its_api_setup_deviceid_t)(const struct device *dev, uint32_t device_id,
22 typedef int (*its_api_map_intid_t)(const struct device *dev, uint32_t device_id,
24 typedef int (*its_api_send_int_t)(const struct device *dev, uint32_t device_id, uint32_t event_id);
25 typedef uint32_t (*its_api_get_msi_addr_t)(const struct device *dev);
35 static inline int its_alloc_intid(const struct device *dev) in its_alloc_intid()
37 const struct its_driver_api *api = in its_alloc_intid()
38 (const struct its_driver_api *)dev->api; in its_alloc_intid()
43 static inline int its_setup_deviceid(const struct device *dev, uint32_t device_id, in its_setup_deviceid()
46 const struct its_driver_api *api = in its_setup_deviceid()
[all …]

12345678910>>...138