Home
last modified time | relevance | path

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

123

/openbmc/u-boot/drivers/usb/gadget/
H A Dcomposite.c88 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local
91 if (cdev->deactivations == 0) in usb_function_deactivate()
92 status = usb_gadget_disconnect(cdev->gadget); in usb_function_deactivate()
94 cdev->deactivations++; in usb_function_deactivate()
111 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_activate() local
114 if (cdev->deactivations == 0) in usb_function_activate()
117 cdev->deactivations--; in usb_function_activate()
118 if (cdev->deactivations == 0) in usb_function_activate()
119 status = usb_gadget_connect(cdev->gadget); in usb_function_activate()
213 static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) in config_desc() argument
[all …]
H A Dg_dnl.c92 static int g_dnl_unbind(struct usb_composite_dev *cdev) in g_dnl_unbind() argument
94 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind()
117 const char *s = c->cdev->driver->name; in g_dnl_do_config()
121 __func__, c, c->cdev); in g_dnl_do_config()
129 static int g_dnl_config_register(struct usb_composite_dev *cdev) in g_dnl_config_register() argument
146 return usb_add_config(cdev, config); in g_dnl_config_register()
194 static int g_dnl_get_bcd_device_number(struct usb_composite_dev *cdev) in g_dnl_get_bcd_device_number() argument
196 struct usb_gadget *gadget = cdev->gadget; in g_dnl_get_bcd_device_number()
219 static int g_dnl_bind(struct usb_composite_dev *cdev) in g_dnl_bind() argument
221 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind()
[all …]
H A Df_sdp.c416 struct usb_gadget *gadget = f->config->cdev->gadget; in sdp_setup()
417 struct usb_request *req = f->config->cdev->req; in sdp_setup()
418 struct f_sdp *sdp = f->config->cdev->req->context; in sdp_setup()
471 struct usb_gadget *gadget = c->cdev->gadget; in sdp_bind()
472 struct usb_composite_dev *cdev = c->cdev; in sdp_bind() local
492 cdev->req->context = sdp; in sdp_bind()
541 struct usb_composite_dev *cdev = f->config->cdev; in sdp_set_alt() local
552 sdp->in_ep->driver_data = cdev; /* claim */ in sdp_set_alt()
738 id = usb_string_id(c->cdev); in sdp_add()
745 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0); in sdp_add()
H A Df_fastboot.c151 struct usb_gadget *gadget = c->cdev->gadget; in fastboot_bind()
161 id = usb_string_id(c->cdev); in fastboot_bind()
170 f_fb->in_ep->driver_data = c->cdev; in fastboot_bind()
175 f_fb->out_ep->driver_data = c->cdev; in fastboot_bind()
241 struct usb_composite_dev *cdev = f->config->cdev; in fastboot_set_alt() local
242 struct usb_gadget *gadget = cdev->gadget; in fastboot_set_alt()
294 debug("%s: cdev: 0x%p\n", __func__, c->cdev); in fastboot_add()
H A Df_dfu.c249 struct usb_composite_dev *cdev = get_gadget_data(gadget); in handle_dnload() local
250 struct usb_request *req = cdev->req; in handle_dnload()
586 struct usb_gadget *gadget = f->config->cdev->gadget; in dfu_handle()
587 struct usb_request *req = f->config->cdev->req; in dfu_handle()
588 struct f_dfu *f_dfu = f->config->cdev->req->context; in dfu_handle()
691 struct usb_composite_dev *cdev = c->cdev; in dfu_bind() local
713 id = usb_string_id(cdev); in dfu_bind()
725 cdev->req->context = f_dfu; in dfu_bind()
824 id = usb_string_id(c->cdev); in dfu_add()
831 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0); in dfu_add()
/openbmc/qemu/util/
H A Dchardev_open.c43 static int open_cdev_internal(const char *path, dev_t cdev) in open_cdev_internal() argument
53 (cdev != 0 && st.st_rdev != cdev)) { in open_cdev_internal()
60 static int open_cdev_robust(dev_t cdev) in open_cdev_robust() argument
68 devpath = g_strdup_printf("/dev/char/%u:%u", major(cdev), minor(cdev)); in open_cdev_robust()
69 return open_cdev_internal(devpath, cdev); in open_cdev_robust()
72 int open_cdev(const char *devpath, dev_t cdev) in open_cdev() argument
76 fd = open_cdev_internal(devpath, cdev); in open_cdev()
77 if (fd == -1 && cdev != 0) { in open_cdev()
78 return open_cdev_robust(cdev); in open_cdev()
/openbmc/qemu/hw/s390x/
H A Ds390-ccw.c74 static bool s390_ccw_get_dev_info(S390CCWDevice *cdev, in s390_ccw_get_dev_info() argument
95 cdev->mdevid = g_path_get_basename(dev_path); in s390_ccw_get_dev_info()
104 cdev->hostid.cssid = cssid; in s390_ccw_get_dev_info()
105 cdev->hostid.ssid = ssid; in s390_ccw_get_dev_info()
106 cdev->hostid.devid = devid; in s390_ccw_get_dev_info()
107 cdev->hostid.valid = true; in s390_ccw_get_dev_info()
111 static bool s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp) in s390_ccw_realize() argument
113 CcwDevice *ccw_dev = CCW_DEVICE(cdev); in s390_ccw_realize()
119 if (!s390_ccw_get_dev_info(cdev, sysfsdev, errp)) { in s390_ccw_realize()
127 sch->driver_data = cdev; in s390_ccw_realize()
[all …]
H A D3270-ccw.c103 CcwDevice *cdev = CCW_DEVICE(ds); in emulated_ccw_3270_realize() local
104 CCWDeviceClass *cdk = CCW_DEVICE_GET_CLASS(cdev); in emulated_ccw_3270_realize()
108 sch = css_create_sch(cdev->devno, errp); in emulated_ccw_3270_realize()
118 cdev->sch = sch; in emulated_ccw_3270_realize()
139 cdk->realize(cdev, &err); in emulated_ccw_3270_realize()
149 cdev->sch = NULL; in emulated_ccw_3270_realize()
/openbmc/qemu/hw/acpi/
H A Dcpu.c26 static ACPIOSTInfo *acpi_cpu_device_status(int idx, AcpiCpuStatus *cdev) in acpi_cpu_device_status() argument
32 info->source = cdev->ost_event; in acpi_cpu_device_status()
33 info->status = cdev->ost_status; in acpi_cpu_device_status()
34 if (cdev->cpu) { in acpi_cpu_device_status()
35 DeviceState *dev = DEVICE(cdev->cpu); in acpi_cpu_device_status()
57 AcpiCpuStatus *cdev; in cpu_hotplug_rd() local
63 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_rd()
66 val |= cdev->cpu ? 1 : 0; in cpu_hotplug_rd()
67 val |= cdev->is_inserting ? 2 : 0; in cpu_hotplug_rd()
68 val |= cdev->is_removing ? 4 : 0; in cpu_hotplug_rd()
[all …]
/openbmc/u-boot/drivers/video/sunxi/
H A Dsunxi_lcd.c80 struct udevice *cdev; in sunxi_lcd_probe() local
87 ret = uclass_get_device(UCLASS_VIDEO_BRIDGE, 0, &cdev); in sunxi_lcd_probe()
92 ret = video_bridge_attach(cdev); in sunxi_lcd_probe()
97 ret = video_bridge_read_edid(cdev, edid, EDID_SIZE); in sunxi_lcd_probe()
111 ret = uclass_get_device(UCLASS_PANEL, 0, &cdev); in sunxi_lcd_probe()
117 if (fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
122 timing_node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
/openbmc/u-boot/board/compulab/cm_t335/
H A Dcm_t335.c88 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in get_efuse_mac_addr() local
90 mac_lo = readl(&cdev->macid0l); in get_efuse_mac_addr()
91 mac_hi = readl(&cdev->macid0h); in get_efuse_mac_addr()
132 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in board_eth_init() local
138 writel(RGMII_MODE_ENABLE | RGMII_INT_DELAY, &cdev->miisel); in board_eth_init()
/openbmc/u-boot/board/grinn/chiliboard/
H A Dboard.c27 static __maybe_unused struct ctrl_dev *cdev = variable
111 mac_lo = readl(&cdev->macid0l); in board_late_init()
112 mac_hi = readl(&cdev->macid0h); in board_late_init()
127 mac_lo = readl(&cdev->macid1l); in board_late_init()
128 mac_hi = readl(&cdev->macid1h); in board_late_init()
/openbmc/u-boot/drivers/misc/
H A Dcros_ec.c136 static int create_proto3_request(struct cros_ec_dev *cdev, in create_proto3_request() argument
140 struct ec_host_request *rq = (struct ec_host_request *)cdev->dout; in create_proto3_request()
144 if (out_bytes > (int)sizeof(cdev->dout)) { in create_proto3_request()
161 rq->checksum = (uint8_t)(-cros_ec_calc_checksum(cdev->dout, out_bytes)); in create_proto3_request()
163 cros_ec_dump_data("out", cmd, cdev->dout, out_bytes); in create_proto3_request()
176 static int prepare_proto3_response_buffer(struct cros_ec_dev *cdev, int din_len) in prepare_proto3_response_buffer() argument
181 if (in_bytes > (int)sizeof(cdev->din)) { in prepare_proto3_response_buffer()
250 static int send_command_proto3(struct cros_ec_dev *cdev, in send_command_proto3() argument
260 out_bytes = create_proto3_request(cdev, cmd, cmd_version, in send_command_proto3()
266 in_bytes = prepare_proto3_response_buffer(cdev, din_len); in send_command_proto3()
[all …]
/openbmc/u-boot/board/silica/pengwyn/
H A Dboard.c22 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
89 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
177 mac_lo = readl(&cdev->macid0l); in board_eth_init()
178 mac_hi = readl(&cdev->macid0h); in board_eth_init()
192 writel(MII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
/openbmc/u-boot/board/tcl/sl50/
H A Dboard.c37 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
96 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
313 mac_lo = readl(&cdev->macid0l); in board_eth_init()
314 mac_hi = readl(&cdev->macid0h); in board_eth_init()
333 mac_lo = readl(&cdev->macid1l); in board_eth_init()
334 mac_hi = readl(&cdev->macid1h); in board_eth_init()
348 writel(MII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
/openbmc/u-boot/board/ti/am43xx/
H A Dboard.c39 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
674 mreqprio_0 = readl(&cdev->mreqprio_0) & MREQPRIO_0_SAB_INIT1_MASK & in board_init()
677 mreqprio_1 = readl(&cdev->mreqprio_1) & MREQPRIO_1_DSS_MASK; in board_init()
698 writel(mreqprio_0, &cdev->mreqprio_0); in board_init()
699 writel(mreqprio_1, &cdev->mreqprio_1); in board_init()
897 mac_lo = readl(&cdev->macid0l); in board_eth_init()
898 mac_hi = readl(&cdev->macid0h); in board_eth_init()
912 mac_lo = readl(&cdev->macid1l); in board_eth_init()
913 mac_hi = readl(&cdev->macid1h); in board_eth_init()
927 writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); in board_eth_init()
[all …]
/openbmc/u-boot/board/eets/pdu001/
H A Dboard.c128 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in set_mpu_and_core_voltage() local
141 sil_rev = readl(&cdev->deviceid) >> 28; in set_mpu_and_core_voltage()
194 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in am33xx_spl_board_init() local
197 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
/openbmc/u-boot/board/ti/am335x/
H A Dboard.c55 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
295 int freq = am335x_get_efuse_mpu_max_freq(cdev); in get_dpll_mpu_params()
442 sil_rev = readl(&cdev->deviceid) >> 28; in scale_vcores_generic()
478 freq = am335x_get_efuse_mpu_max_freq(cdev); in scale_vcores()
833 mac_lo = readl(&cdev->macid0l); in board_late_init()
834 mac_hi = readl(&cdev->macid0h); in board_late_init()
849 mac_lo = readl(&cdev->macid1l); in board_late_init()
850 mac_hi = readl(&cdev->macid1h); in board_late_init()
951 mac_lo = readl(&cdev->macid0l); in board_eth_init()
952 mac_hi = readl(&cdev->macid0h); in board_eth_init()
[all …]
/openbmc/u-boot/board/ti/ti814x/
H A Devm.c30 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
172 mac_lo = readl(&cdev->macid0l); in board_eth_init()
173 mac_hi = readl(&cdev->macid0h); in board_eth_init()
/openbmc/u-boot/board/ti/ti816x/
H A Devm.c39 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in board_eth_init() local
44 mac_lo = readl(&cdev->macid0l); in board_eth_init()
45 mac_hi = readl(&cdev->macid0h); in board_eth_init()
/openbmc/u-boot/board/phytec/pcm051/
H A Dboard.c36 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
222 mac_lo = readl(&cdev->macid0l); in board_eth_init()
223 mac_hi = readl(&cdev->macid0h); in board_eth_init()
237 writel(RMII_RGMII2_MODE_ENABLE, &cdev->miisel); in board_eth_init()
/openbmc/u-boot/arch/arm/mach-omap2/am33xx/
H A Dsys_info.c136 int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev) in am335x_get_efuse_mpu_max_freq() argument
140 sil_rev = readl(&cdev->deviceid) >> 28; in am335x_get_efuse_mpu_max_freq()
148 efuse_arm_mpu_max_freq = readl(&cdev->efuse_sma); in am335x_get_efuse_mpu_max_freq()
/openbmc/u-boot/board/gumstix/pepper/
H A Dboard.c197 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
243 mac_lo = readl(&cdev->macid0l); in board_eth_init()
244 mac_hi = readl(&cdev->macid0h); in board_eth_init()
255 writel((RGMII_MODE_ENABLE | RGMII_INT_DELAY), &cdev->miisel); in board_eth_init()
/openbmc/u-boot/board/isee/igep003x/
H A Dboard.c43 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
268 mac_lo = readl(&cdev->macid0l); in board_eth_init()
269 mac_hi = readl(&cdev->macid0h); in board_eth_init()
281 &cdev->miisel); in board_eth_init()
/openbmc/u-boot/board/vscom/baltos/
H A Dboard.c41 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable
176 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
197 sil_rev = readl(&cdev->deviceid) >> 28; in am33xx_spl_board_init()
439 mac_lo = readl(&cdev->macid1l); in board_eth_init()
440 mac_hi = readl(&cdev->macid1h); in board_eth_init()
458 writel((GMII1_SEL_RMII | GMII2_SEL_RGMII | RGMII2_IDMODE), &cdev->miisel); in board_eth_init()

123