Lines Matching full:const
68 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()
96 const struct hid_device_config *dcfg = dev->config; in hid_get_out_ep()
102 static int usbd_hid_request(struct usbd_class_data *const c_data, in usbd_hid_request()
103 struct net_buf *const buf, const int err) in usbd_hid_request()
106 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_request()
108 const struct hid_device_ops *ops = ddata->ops; in usbd_hid_request()
134 static int handle_set_idle(const struct device *dev, in handle_set_idle()
135 const struct usb_setup_packet *const setup) in handle_set_idle()
137 const uint32_t duration = HID_GET_IDLE_DURATION(setup->wValue); in handle_set_idle()
138 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_set_idle()
139 struct hid_device_data *const ddata = dev->data; in handle_set_idle()
140 const struct hid_device_ops *ops = ddata->ops; in handle_set_idle()
158 static int handle_get_idle(const struct device *dev, in handle_get_idle()
159 const struct usb_setup_packet *const setup, in handle_get_idle()
160 struct net_buf *const buf) in handle_get_idle()
162 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_get_idle()
163 struct hid_device_data *const ddata = dev->data; in handle_get_idle()
164 const struct hid_device_ops *ops = ddata->ops; in handle_get_idle()
194 static int handle_set_report(const struct device *dev, in handle_set_report()
195 const struct usb_setup_packet *const setup, in handle_set_report()
196 const struct net_buf *const buf) in handle_set_report()
198 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_set_report()
199 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_set_report()
200 struct hid_device_data *const ddata = dev->data; in handle_set_report()
201 const struct hid_device_ops *ops = ddata->ops; in handle_set_report()
230 static int handle_get_report(const struct device *dev, in handle_get_report()
231 const struct usb_setup_packet *const setup, in handle_get_report()
232 struct net_buf *const buf) in handle_get_report()
234 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_get_report()
235 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_get_report()
236 struct hid_device_data *const ddata = dev->data; in handle_get_report()
237 const struct hid_device_ops *ops = ddata->ops; in handle_get_report()
238 const size_t size = setup->wLength; in handle_get_report()
270 static int handle_set_protocol(const struct device *dev, in handle_set_protocol()
271 const struct usb_setup_packet *const setup) in handle_set_protocol()
273 const struct hid_device_config *dcfg = dev->config; in handle_set_protocol()
274 struct hid_device_data *const ddata = dev->data; in handle_set_protocol()
275 struct usbd_hid_descriptor *const desc = dcfg->desc; in handle_set_protocol()
276 const struct hid_device_ops *const ops = ddata->ops; in handle_set_protocol()
277 const uint16_t protocol = setup->wValue; in handle_set_protocol()
307 static int handle_get_protocol(const struct device *dev, in handle_get_protocol()
308 const struct usb_setup_packet *const setup, in handle_get_protocol()
309 struct net_buf *const buf) in handle_get_protocol()
311 const struct hid_device_config *dcfg = dev->config; in handle_get_protocol()
312 struct hid_device_data *const ddata = dev->data; in handle_get_protocol()
313 struct usbd_hid_descriptor *const desc = dcfg->desc; in handle_get_protocol()
332 static int handle_get_descriptor(const struct device *dev, in handle_get_descriptor()
333 const struct usb_setup_packet *const setup, in handle_get_descriptor()
334 struct net_buf *const buf) in handle_get_descriptor()
336 const struct hid_device_config *dcfg = dev->config; in handle_get_descriptor()
337 struct hid_device_data *const ddata = dev->data; in handle_get_descriptor()
340 struct usbd_hid_descriptor *const desc = dcfg->desc; in handle_get_descriptor()
363 static int usbd_hid_ctd(struct usbd_class_data *const c_data, in usbd_hid_ctd()
364 const struct usb_setup_packet *const setup, in usbd_hid_ctd()
365 const struct net_buf *const buf) in usbd_hid_ctd()
367 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_ctd()
388 static int usbd_hid_cth(struct usbd_class_data *const c_data, in usbd_hid_cth()
389 const struct usb_setup_packet *const setup, in usbd_hid_cth()
390 struct net_buf *const buf) in usbd_hid_cth()
392 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_cth()
416 static void usbd_hid_sof(struct usbd_class_data *const c_data) in usbd_hid_sof()
418 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_sof()
420 const struct hid_device_ops *const ops = ddata->ops; in usbd_hid_sof()
427 static void usbd_hid_enable(struct usbd_class_data *const c_data) in usbd_hid_enable()
429 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_enable()
430 const struct hid_device_config *dcfg = dev->config; in usbd_hid_enable()
432 const struct hid_device_ops *const ops = ddata->ops; in usbd_hid_enable()
433 struct usbd_hid_descriptor *const desc = dcfg->desc; in usbd_hid_enable()
448 static void usbd_hid_disable(struct usbd_class_data *const c_data) in usbd_hid_disable()
450 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_disable()
452 const struct hid_device_ops *const ops = ddata->ops; in usbd_hid_disable()
462 static void usbd_hid_suspended(struct usbd_class_data *const c_data) in usbd_hid_suspended()
464 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_suspended()
469 static void usbd_hid_resumed(struct usbd_class_data *const c_data) in usbd_hid_resumed()
471 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_resumed()
476 static void *usbd_hid_get_desc(struct usbd_class_data *const c_data, in usbd_hid_get_desc()
477 const enum usbd_speed speed) in usbd_hid_get_desc()
479 const struct device *dev = usbd_class_get_private(c_data); in usbd_hid_get_desc()
480 const struct hid_device_config *dcfg = dev->config; in usbd_hid_get_desc()
489 static int usbd_hid_init(struct usbd_class_data *const c_data) in usbd_hid_init()
496 static void usbd_hid_shutdown(struct usbd_class_data *const c_data) in usbd_hid_shutdown()
501 static struct net_buf *hid_buf_alloc_ext(const struct hid_device_config *const dcfg, in hid_buf_alloc_ext()
502 const uint16_t size, void *const data, in hid_buf_alloc_ext()
503 const uint8_t ep) in hid_buf_alloc_ext()
521 static struct net_buf *hid_buf_alloc(const struct hid_device_config *const dcfg, in hid_buf_alloc()
522 const uint8_t ep) in hid_buf_alloc()
543 const struct device *dev = ddata->dev; in hid_dev_output_handler()
544 const struct hid_device_config *dcfg = dev->config; in hid_dev_output_handler()
564 static int hid_dev_submit_report(const struct device *dev, in hid_dev_submit_report()
565 const uint16_t size, const uint8_t *const report) in hid_dev_submit_report()
567 const struct hid_device_config *dcfg = dev->config; in hid_dev_submit_report()
568 struct hid_device_data *const ddata = dev->data; in hid_dev_submit_report()
569 const struct hid_device_ops *ops = ddata->ops; in hid_dev_submit_report()
599 static int hid_dev_register(const struct device *dev, in hid_dev_register()
600 const uint8_t *const rdesc, const uint16_t rsize, in hid_dev_register()
601 const struct hid_device_ops *const ops) in hid_dev_register()
603 const struct hid_device_config *dcfg = dev->config; in hid_dev_register()
604 struct hid_device_data *const ddata = dev->data; in hid_dev_register()
605 struct usbd_hid_descriptor *const desc = dcfg->desc; in hid_dev_register()
641 static int hid_device_init(const struct device *dev) in hid_device_init()
643 struct hid_device_data *const ddata = dev->data; in hid_device_init()
670 static const struct hid_device_driver_api hid_device_api = {
687 const static struct usb_desc_header *hid_fs_desc_##n[] = { \
695 const static struct usb_desc_header *hid_hs_desc_##n[] = { \
716 const static struct usb_desc_header *hid_fs_desc_##n[] = { \
724 const static struct usb_desc_header *hid_hs_desc_##n[] = { \
757 static const struct hid_device_config hid_config_##n = { \