Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 25 of 48) sorted by relevance

12

/u-boot/drivers/usb/gadget/
A Dcomposite.c122 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 Dg_dnl.c103 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind()
126 const char *s = c->cdev->driver->name; in g_dnl_do_config()
130 __func__, c, c->cdev); in g_dnl_do_config()
155 return usb_add_config(cdev, config); in g_dnl_config_register()
205 struct usb_gadget *gadget = cdev->gadget; in g_dnl_get_bcd_device_number()
230 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind()
236 id = usb_string_id(cdev); in g_dnl_bind()
243 id = usb_string_id(cdev); in g_dnl_bind()
253 id = usb_string_id(cdev); in g_dnl_bind()
261 ret = g_dnl_config_register(cdev); in g_dnl_bind()
[all …]
A Df_sdp.c470 struct usb_request *req = f->config->cdev->req; in sdp_setup()
471 struct f_sdp *sdp = f->config->cdev->req->context; in sdp_setup()
526 struct usb_gadget *gadget = c->cdev->gadget; in sdp_bind()
527 struct usb_composite_dev *cdev = c->cdev; in sdp_bind() local
560 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()
944 id = usb_string_id(c->cdev); in sdp_add()
[all …]
A Df_dfu.c251 struct usb_composite_dev *cdev = get_gadget_data(gadget); in handle_dnload() local
252 struct usb_request *req = cdev->req; in handle_dnload()
588 struct usb_gadget *gadget = f->config->cdev->gadget; in dfu_handle()
589 struct usb_request *req = f->config->cdev->req; in dfu_handle()
590 struct f_dfu *f_dfu = f->config->cdev->req->context; in dfu_handle()
698 struct usb_composite_dev *cdev = c->cdev; in dfu_bind() local
720 id = usb_string_id(cdev); in dfu_bind()
732 cdev->req->context = f_dfu; in dfu_bind()
832 id = usb_string_id(c->cdev); in dfu_add()
839 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0); in dfu_add()
A Df_fastboot.c208 struct usb_gadget *gadget = c->cdev->gadget; in fastboot_bind()
219 c->cdev->use_os_string = 1; in fastboot_bind()
231 id = usb_string_id(c->cdev); in fastboot_bind()
240 f_fb->in_ep->driver_data = c->cdev; in fastboot_bind()
245 f_fb->out_ep->driver_data = c->cdev; in fastboot_bind()
319 struct usb_composite_dev *cdev = f->config->cdev; in fastboot_set_alt() local
320 struct usb_gadget *gadget = cdev->gadget; in fastboot_set_alt()
372 debug("%s: cdev: 0x%p\n", __func__, c->cdev); in fastboot_add()
/u-boot/drivers/video/sunxi/
A Dsunxi_lcd.c82 struct udevice *cdev; in sunxi_lcd_probe() local
89 ret = uclass_get_device(UCLASS_VIDEO_BRIDGE, 0, &cdev); in sunxi_lcd_probe()
94 ret = video_bridge_attach(cdev); in sunxi_lcd_probe()
99 ret = video_bridge_read_edid(cdev, edid, EDID_SIZE); in sunxi_lcd_probe()
113 ret = uclass_get_device(UCLASS_PANEL, 0, &cdev); in sunxi_lcd_probe()
119 if (fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
124 timing_node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
/u-boot/board/compulab/cm_t335/
A Dcm_t335.c92 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in get_efuse_mac_addr() local
94 mac_lo = readl(&cdev->macid0l); in get_efuse_mac_addr()
95 mac_hi = readl(&cdev->macid0h); in get_efuse_mac_addr()
136 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in board_eth_init() local
142 writel(RGMII_MODE_ENABLE | RGMII_INT_DELAY, &cdev->miisel); in board_eth_init()
A Dspl.c68 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in am33xx_spl_board_init() local
71 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
/u-boot/board/grinn/chiliboard/
A Dboard.c30 static __maybe_unused struct ctrl_dev *cdev = variable
114 mac_lo = readl(&cdev->macid0l); in board_late_init()
115 mac_hi = readl(&cdev->macid0h); in board_late_init()
130 mac_lo = readl(&cdev->macid1l); in board_late_init()
131 mac_hi = readl(&cdev->macid1h); in board_late_init()
/u-boot/arch/arm/mach-nexell/
A Dclock.c589 if (!cdev->name) in clk_get()
591 if (!strncmp(cdev->name, str, strlen(cdev->name))) { in clk_get()
593 if (!c || !cdev->peri) in clk_get()
596 if (cdev->peri->dev_id == devid) in clk_get()
601 clk = &cdev->clk; in clk_get()
709 if (cdev->link) in clk_get_rate()
710 clk = cdev->link; in clk_get_rate()
839 cdev->name = clk_core[i]; in clk_init()
840 clk = &cdev->clk; in clk_init()
848 cdev->peri = peri; in clk_init()
[all …]
/u-boot/drivers/pwm/
A Dpwm-meson.c283 struct udevice *cdev; in meson_pwm_probe() local
303 uclass_foreach_dev(cdev, uc) { in meson_pwm_probe()
314 dev_ofnode(cdev), in meson_pwm_probe()
315 &cdev); in meson_pwm_probe()
325 if (!cdev) { in meson_pwm_probe()
330 channel->clk.dev = cdev; in meson_pwm_probe()
339 uclass_foreach_dev(cdev, uc) { in meson_pwm_probe()
344 if (!cdev) { in meson_pwm_probe()
350 dev_ofnode(cdev), in meson_pwm_probe()
351 &cdev); in meson_pwm_probe()
[all …]
/u-boot/board/tcl/sl50/
A Dboard.c41 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
100 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
317 mac_lo = readl(&cdev->macid0l); in board_eth_init()
318 mac_hi = readl(&cdev->macid0h); in board_eth_init()
337 mac_lo = readl(&cdev->macid1l); in board_eth_init()
338 mac_hi = readl(&cdev->macid1h); in board_eth_init()
352 writel(MII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
/u-boot/drivers/misc/
A Dcros_ec.c151 if (out_bytes > (int)sizeof(cdev->dout)) { in create_proto3_request()
188 if (in_bytes > (int)sizeof(cdev->din)) { in prepare_proto3_response_buffer()
277 ops = dm_cros_ec_get_ops(cdev->dev); in send_command_proto3()
659 if (!dm_gpio_is_valid(&cdev->ec_int)) in cros_ec_interrupt_pending()
662 return dm_gpio_get_value(&cdev->ec_int); in cros_ec_interrupt_pending()
798 cdev->protocol_version = 3; in cros_ec_check_version()
805 cdev->protocol_version = 2; in cros_ec_check_version()
816 cdev->protocol_version = 0; in cros_ec_check_version()
982 if (cdev->optimise_flash_write && in cros_ec_flash_write()
1209 cdev->dev = dev; in cros_ec_register()
[all …]
/u-boot/board/phytec/phycore_am335x_r2/
A Dboard.c31 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
170 int freq = am335x_get_efuse_mpu_max_freq(cdev); in get_dpll_mpu_params()
206 sil_rev = readl(&cdev->deviceid) >> 28; in scale_vcores_generic()
225 freq = am335x_get_efuse_mpu_max_freq(cdev); in scale_vcores()
/u-boot/board/eets/pdu001/
A Dboard.c131 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in set_mpu_and_core_voltage() local
144 sil_rev = readl(&cdev->deviceid) >> 28; in set_mpu_and_core_voltage()
197 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in am33xx_spl_board_init() local
200 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
/u-boot/board/ti/ti816x/
A Devm.c41 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in board_eth_init() local
46 mac_lo = readl(&cdev->macid0l); in board_eth_init()
47 mac_hi = readl(&cdev->macid0h); in board_eth_init()
/u-boot/arch/arm/mach-omap2/am33xx/
A Dsys_info.c137 int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev) in am335x_get_efuse_mpu_max_freq() argument
141 sil_rev = readl(&cdev->deviceid) >> 28; in am335x_get_efuse_mpu_max_freq()
149 efuse_arm_mpu_max_freq = readl(&cdev->efuse_sma); in am335x_get_efuse_mpu_max_freq()
/u-boot/board/isee/igep003x/
A Dboard.c48 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
273 mac_lo = readl(&cdev->macid0l); in board_eth_init()
274 mac_hi = readl(&cdev->macid0h); in board_eth_init()
286 &cdev->miisel); in board_eth_init()
/u-boot/board/vscom/baltos/
A Dboard.c45 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
180 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
201 sil_rev = readl(&cdev->deviceid) >> 28; in am33xx_spl_board_init()
443 mac_lo = readl(&cdev->macid1l); in board_eth_init()
444 mac_hi = readl(&cdev->macid1h); in board_eth_init()
462 writel((GMII1_SEL_RMII | GMII2_SEL_RGMII | RGMII2_IDMODE), &cdev->miisel); in board_eth_init()
/u-boot/board/compulab/cm_t43/
A Dcm_t43.c24 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
158 writel(RGMII_MODE_ENABLE | RGMII_INT_DELAY, &cdev->miisel); in board_eth_init()
/u-boot/board/siemens/draco/
A Dboard.c114 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in print_chip_data() local
115 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in print_chip_data()
331 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in board_eth_init() local
338 writel((RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE), &cdev->miisel); in board_eth_init()
/u-boot/drivers/mtd/ubi/
A Dvmt.c269 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 …]
/u-boot/include/linux/mtd/
A Dubi.h114 dev_t cdev; member
188 dev_t cdev; member
/u-boot/board/bosch/guardian/
A Dboard.c44 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
84 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
/u-boot/board/ti/am335x/
A Dboard.c62 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
302 int freq = am335x_get_efuse_mpu_max_freq(cdev); in get_dpll_mpu_params()
449 sil_rev = readl(&cdev->deviceid) >> 28; in scale_vcores_generic()
485 freq = am335x_get_efuse_mpu_max_freq(cdev); in scale_vcores()
841 mac_lo = readl(&cdev->macid0l); in board_late_init()
842 mac_hi = readl(&cdev->macid0h); in board_late_init()
857 mac_lo = readl(&cdev->macid1l); in board_late_init()
858 mac_hi = readl(&cdev->macid1h); in board_late_init()

Completed in 55 milliseconds

12