| /drivers/usb/gadget/ |
| A D | composite.c | 122 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local 145 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_activate() local 380 if (cdev->config) in set_config() 420 cdev->config = c; in set_config() 505 config->cdev = cdev; in usb_add_config() 1322 if (cdev->config) in composite_disconnect() 1369 if (cdev->req) { in composite_unbind() 1373 kfree(cdev); in composite_unbind() 1384 cdev = calloc(sizeof *cdev, 1); in composite_bind() 1385 if (!cdev) in composite_bind() [all …]
|
| A D | g_dnl.c | 102 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind() 125 const char *s = c->cdev->driver->name; in g_dnl_do_config() 129 __func__, c, c->cdev); in g_dnl_do_config() 154 return usb_add_config(cdev, config); in g_dnl_config_register() 218 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind() 224 id = usb_string_id(cdev); in g_dnl_bind() 231 id = usb_string_id(cdev); in g_dnl_bind() 238 g_dnl_bind_fixup(&device_desc, cdev->driver->name); in g_dnl_bind() 241 id = usb_string_id(cdev); in g_dnl_bind() 249 ret = g_dnl_config_register(cdev); in g_dnl_bind() [all …]
|
| A D | f_sdp.c | 471 struct usb_request *req = f->config->cdev->req; in sdp_setup() 472 struct f_sdp *sdp = f->config->cdev->req->context; in sdp_setup() 527 struct usb_gadget *gadget = c->cdev->gadget; in sdp_bind() 528 struct usb_composite_dev *cdev = c->cdev; in sdp_bind() local 561 cdev->req->context = sdp; in sdp_bind() 620 struct usb_composite_dev *cdev = f->config->cdev; in sdp_set_alt() local 621 struct usb_gadget *gadget = cdev->gadget; in sdp_set_alt() 641 sdp->in_ep->driver_data = cdev; /* claim */ in sdp_set_alt() 642 sdp->out_ep->driver_data = cdev; /* claim */ in sdp_set_alt() 945 id = usb_string_id(c->cdev); in sdp_add() [all …]
|
| A D | f_dfu.c | 250 struct usb_composite_dev *cdev = get_gadget_data(gadget); in handle_dnload() local 251 struct usb_request *req = cdev->req; in handle_dnload() 603 struct usb_gadget *gadget = f->config->cdev->gadget; in dfu_handle() 604 struct usb_request *req = f->config->cdev->req; in dfu_handle() 605 struct f_dfu *f_dfu = f->config->cdev->req->context; in dfu_handle() 715 struct usb_composite_dev *cdev = c->cdev; in dfu_bind() local 737 id = usb_string_id(cdev); in dfu_bind() 749 cdev->req->context = f_dfu; in dfu_bind() 849 id = usb_string_id(c->cdev); in dfu_add() 856 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0); in dfu_add()
|
| A D | f_fastboot.c | 209 struct usb_gadget *gadget = c->cdev->gadget; in fastboot_bind() 220 c->cdev->use_os_string = 1; in fastboot_bind() 232 id = usb_string_id(c->cdev); in fastboot_bind() 241 f_fb->in_ep->driver_data = c->cdev; in fastboot_bind() 246 f_fb->out_ep->driver_data = c->cdev; in fastboot_bind() 320 struct usb_composite_dev *cdev = f->config->cdev; in fastboot_set_alt() local 321 struct usb_gadget *gadget = cdev->gadget; in fastboot_set_alt() 373 debug("%s: cdev: 0x%p\n", __func__, c->cdev); in fastboot_add()
|
| A D | f_acm.c | 210 struct usb_gadget *gadget = c->cdev->gadget; in acm_bind() 241 ep->driver_data = c->cdev; /* claim */ in acm_bind() 248 ep->driver_data = c->cdev; /* claim */ in acm_bind() 255 ep->driver_data = c->cdev; /* claim */ in acm_bind() 371 struct usb_gadget *gadget = f->config->cdev->gadget; in acm_set_alt() 388 struct usb_gadget *gadget = f->config->cdev->gadget; in acm_setup() 389 struct usb_request *req = f->config->cdev->req; in acm_setup()
|
| A D | f_thor.c | 758 struct usb_gadget *gadget = c->cdev->gadget; in thor_func_bind() 909 struct usb_composite_dev *cdev = f->config->cdev; in thor_eps_setup() local 910 struct usb_gadget *gadget = cdev->gadget; in thor_eps_setup() 925 ep->driver_data = cdev; /* claim */ in thor_eps_setup() 943 ep->driver_data = cdev; /* claim */ in thor_eps_setup() 961 ep->driver_data = cdev; /* claim */ in thor_eps_setup() 1009 debug("%s: cdev: 0x%p\n", __func__, c->cdev); in thor_func_init()
|
| A D | f_rockusb.c | 152 struct usb_gadget *gadget = c->cdev->gadget; in rockusb_bind() 161 id = usb_string_id(c->cdev); in rockusb_bind() 171 f_rkusb->in_ep->driver_data = c->cdev; in rockusb_bind() 176 f_rkusb->out_ep->driver_data = c->cdev; in rockusb_bind() 246 struct usb_composite_dev *cdev = f->config->cdev; in rockusb_set_alt() local 247 struct usb_gadget *gadget = cdev->gadget; in rockusb_set_alt() 299 debug("%s: cdev: 0x%p\n", __func__, c->cdev); in rockusb_add()
|
| A D | f_mass_storage.c | 2439 struct usb_composite_dev *cdev) in fsg_common_init() argument 2441 struct usb_gadget *gadget = cdev->gadget; in fsg_common_init() 2469 common->ep0req = cdev->req; in fsg_common_init() 2473 rc = usb_string_id(cdev); in fsg_common_init() 2651 struct usb_gadget *gadget = c->cdev->gadget; in fsg_bind() 2707 static int fsg_bind_config(struct usb_composite_dev *cdev, in fsg_bind_config() argument 2745 fsg_common = fsg_common_init(NULL, c->cdev); in fsg_add() 2758 return fsg_bind_config(c->cdev, c, fsg_common); in fsg_add()
|
| /drivers/video/sunxi/ |
| A D | sunxi_lcd.c | 81 struct udevice *cdev; in sunxi_lcd_probe() local 88 ret = uclass_get_device(UCLASS_VIDEO_BRIDGE, 0, &cdev); in sunxi_lcd_probe() 93 ret = video_bridge_attach(cdev); in sunxi_lcd_probe() 98 ret = video_bridge_read_edid(cdev, edid, EDID_SIZE); in sunxi_lcd_probe() 112 ret = uclass_get_device(UCLASS_PANEL, 0, &cdev); in sunxi_lcd_probe() 118 if (fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe() 123 timing_node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
|
| /drivers/pwm/ |
| A D | pwm-meson.c | 281 struct udevice *cdev; in meson_pwm_probe() local 301 uclass_foreach_dev(cdev, uc) { in meson_pwm_probe() 312 dev_ofnode(cdev), in meson_pwm_probe() 313 &cdev); in meson_pwm_probe() 323 if (!cdev) { in meson_pwm_probe() 328 channel->clk.dev = cdev; in meson_pwm_probe() 337 uclass_foreach_dev(cdev, uc) { in meson_pwm_probe() 342 if (!cdev) { in meson_pwm_probe() 348 dev_ofnode(cdev), in meson_pwm_probe() 349 &cdev); in meson_pwm_probe() [all …]
|
| /drivers/misc/ |
| A D | cros_ec.c | 150 if (out_bytes > (int)sizeof(cdev->dout)) { in create_proto3_request() 187 if (in_bytes > (int)sizeof(cdev->din)) { in prepare_proto3_response_buffer() 276 ops = dm_cros_ec_get_ops(cdev->dev); in send_command_proto3() 658 if (!dm_gpio_is_valid(&cdev->ec_int)) in cros_ec_interrupt_pending() 661 return dm_gpio_get_value(&cdev->ec_int); in cros_ec_interrupt_pending() 786 cdev->protocol_version = 3; in cros_ec_check_version() 793 cdev->protocol_version = 2; in cros_ec_check_version() 804 cdev->protocol_version = 0; in cros_ec_check_version() 970 if (cdev->optimise_flash_write && in cros_ec_flash_write() 1217 cdev->dev = dev; in cros_ec_register() [all …]
|
| A D | cros_ec_sandbox.c | 676 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_probe() local 724 cdev->dev = dev; in cros_ec_probe()
|
| /drivers/mtd/ubi/ |
| A D | vmt.c | 269 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_create_volume() 270 vol->cdev.owner = THIS_MODULE; in ubi_create_volume() 271 dev = MKDEV(MAJOR(ubi->cdev.dev), vol_id + 1); in ubi_create_volume() 272 err = cdev_add(&vol->cdev, dev, 1); in ubi_create_volume() 335 cdev_del(&vol->cdev); in ubi_create_volume() 400 cdev_del(&vol->cdev); in ubi_remove_volume() 601 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_add_volume() 602 vol->cdev.owner = THIS_MODULE; in ubi_add_volume() 604 err = cdev_add(&vol->cdev, dev, 1); in ubi_add_volume() 627 cdev_del(&vol->cdev); in ubi_add_volume() [all …]
|
| A D | build.c | 326 if (ubi && MAJOR(ubi->cdev.dev) == major) { in ubi_get_by_major() 355 if (ubi && MAJOR(ubi->cdev.dev) == major) { in ubi_major2num() 454 ubi->dev.devt = ubi->cdev.dev; in ubi_sysfs_init() 532 cdev_init(&ubi->cdev, &ubi_cdev_operations); in uif_init() 534 ubi->cdev.owner = THIS_MODULE; in uif_init() 536 err = cdev_add(&ubi->cdev, dev, 1); in uif_init() 563 cdev_del(&ubi->cdev); in uif_init() 565 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_init() 583 cdev_del(&ubi->cdev); in uif_close() 584 unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1); in uif_close()
|
| A D | kapi.c | 41 di->cdev = ubi->cdev.dev; in ubi_do_get_device_info() 89 vi->cdev = vol->cdev.dev; in ubi_do_get_volume_info()
|
| A D | ubi.h | 317 struct cdev cdev; member 535 struct cdev cdev; member
|
| /drivers/clk/renesas/ |
| A D | clk-rcar-gen3.c | 541 struct udevice *cdev = (struct udevice *)dev_get_driver_data(reset_ctl->dev); in gen3_reset_assert() local 542 struct gen3_clk_priv *priv = dev_get_priv(cdev); in gen3_reset_assert() 555 struct udevice *cdev = (struct udevice *)dev_get_driver_data(reset_ctl->dev); in gen3_reset_deassert() local 556 struct gen3_clk_priv *priv = dev_get_priv(cdev); in gen3_reset_deassert() 583 struct udevice *cdev, *rdev; in gen3_cpg_bind() local 597 dev_ofnode(parent), &cdev); in gen3_cpg_bind() 601 ret = device_bind_with_driver_data(parent, rdrv, "rst_gen3", (ulong)cdev, in gen3_cpg_bind() 604 device_unbind(cdev); in gen3_cpg_bind()
|
| A D | rzg2l-cpg.c | 476 struct udevice *cdev, *rdev; in rzg2l_cpg_bind() local 499 &cdev); in rzg2l_cpg_bind() 505 device_unbind(cdev); in rzg2l_cpg_bind() 513 device_unbind(cdev); in rzg2l_cpg_bind()
|
| /drivers/mtd/nand/raw/ |
| A D | stm32_fmc2_nand.c | 876 struct udevice *cdev = NULL; in stm32_fmc2_nfc_get_cdev() local 886 cdev = pdev; in stm32_fmc2_nfc_get_cdev() 888 return cdev; in stm32_fmc2_nfc_get_cdev() 892 cdev = dev; in stm32_fmc2_nfc_get_cdev() 894 return cdev; in stm32_fmc2_nfc_get_cdev() 904 struct udevice *cdev; in stm32_fmc2_nfc_probe() local 919 cdev = nfc->data->get_cdev(dev); in stm32_fmc2_nfc_probe() 920 if (!cdev) in stm32_fmc2_nfc_probe() 923 cdev = dev->parent; in stm32_fmc2_nfc_probe() 930 nfc->io_base = dev_read_addr(cdev); in stm32_fmc2_nfc_probe() [all …]
|
| /drivers/remoteproc/ |
| A D | renesas_apmu.c | 241 struct udevice *cdev; in renesas_apmu_rproc_bind() local 254 i, pnode, &cdev); in renesas_apmu_rproc_bind()
|
| /drivers/pinctrl/renesas/ |
| A D | pinctrl-rza1.c | 122 struct udevice *cdev; in r7s72100_pfc_probe() local 129 node, &cdev); in r7s72100_pfc_probe()
|
| /drivers/mailbox/ |
| A D | zynqmp-ipi.c | 227 struct udevice *cdev; in zynqmp_ipi_probe() local 236 cnode, &cdev); in zynqmp_ipi_probe()
|
| /drivers/clk/imx/ |
| A D | clk-composite-8m.c | 119 static int imx8m_clk_mux_fetch_parent_index(struct udevice *cdev, struct clk *clk, struct clk *pare… in imx8m_clk_mux_fetch_parent_index() argument 130 ret = clk_get_by_name(cdev, mux->parent_names[i], &cclk); in imx8m_clk_mux_fetch_parent_index()
|