| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | composite.c | 99 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local 102 if (cdev->deactivations == 0) in usb_function_deactivate() 103 status = usb_gadget_disconnect(cdev->gadget); in usb_function_deactivate() 105 cdev->deactivations++; in usb_function_deactivate() 122 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_activate() local 125 if (cdev->deactivations == 0) in usb_function_activate() 128 cdev->deactivations--; in usb_function_activate() 129 if (cdev->deactivations == 0) in usb_function_activate() 130 status = usb_gadget_connect(cdev->gadget); in usb_function_activate() 231 static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) in config_desc() argument [all …]
|
| H A D | g_dnl.c | 94 static int g_dnl_unbind(struct usb_composite_dev *cdev) in g_dnl_unbind() argument 96 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind() 119 const char *s = c->cdev->driver->name; in g_dnl_do_config() 123 __func__, c, c->cdev); in g_dnl_do_config() 131 static int g_dnl_config_register(struct usb_composite_dev *cdev) in g_dnl_config_register() argument 148 return usb_add_config(cdev, config); in g_dnl_config_register() 196 static int g_dnl_get_bcd_device_number(struct usb_composite_dev *cdev) in g_dnl_get_bcd_device_number() argument 198 struct usb_gadget *gadget = cdev->gadget; in g_dnl_get_bcd_device_number() 221 static int g_dnl_bind(struct usb_composite_dev *cdev) in g_dnl_bind() argument 223 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind() [all …]
|
| H A D | f_sdp.c | 417 struct usb_gadget *gadget = f->config->cdev->gadget; in sdp_setup() 418 struct usb_request *req = f->config->cdev->req; in sdp_setup() 419 struct f_sdp *sdp = f->config->cdev->req->context; in sdp_setup() 472 struct usb_gadget *gadget = c->cdev->gadget; in sdp_bind() 473 struct usb_composite_dev *cdev = c->cdev; in sdp_bind() local 493 cdev->req->context = sdp; in sdp_bind() 542 struct usb_composite_dev *cdev = f->config->cdev; in sdp_set_alt() local 553 sdp->in_ep->driver_data = cdev; /* claim */ in sdp_set_alt() 780 id = usb_string_id(c->cdev); in sdp_add() 787 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0); in sdp_add()
|
| H 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() 587 struct usb_gadget *gadget = f->config->cdev->gadget; in dfu_handle() 588 struct usb_request *req = f->config->cdev->req; in dfu_handle() 589 struct f_dfu *f_dfu = f->config->cdev->req->context; in dfu_handle() 692 struct usb_composite_dev *cdev = c->cdev; in dfu_bind() local 714 id = usb_string_id(cdev); in dfu_bind() 726 cdev->req->context = f_dfu; in dfu_bind() 826 id = usb_string_id(c->cdev); in dfu_add() 833 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0); in dfu_add()
|
| /rk3399_rockchip-uboot/board/compulab/cm_t335/ |
| H A D | cm_t335.c | 88 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()
|
| H A D | spl.c | 66 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in am33xx_spl_board_init() local 69 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init()
|
| /rk3399_rockchip-uboot/board/grinn/chiliboard/ |
| H A D | board.c | 29 static __maybe_unused struct ctrl_dev *cdev = variable 120 mac_lo = readl(&cdev->macid0l); in board_late_init() 121 mac_hi = readl(&cdev->macid0h); in board_late_init() 136 mac_lo = readl(&cdev->macid1l); in board_late_init() 137 mac_hi = readl(&cdev->macid1h); in board_late_init() 195 writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/silica/pengwyn/ |
| H A D | board.c | 22 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()
|
| /rk3399_rockchip-uboot/board/tcl/sl50/ |
| H A D | board.c | 38 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 97 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init() 314 mac_lo = readl(&cdev->macid0l); in board_eth_init() 315 mac_hi = readl(&cdev->macid0h); in board_eth_init() 334 mac_lo = readl(&cdev->macid1l); in board_eth_init() 335 mac_hi = readl(&cdev->macid1h); in board_eth_init() 349 writel(MII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/ti/am43xx/ |
| H A D | board.c | 38 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 584 mreqprio_0 = readl(&cdev->mreqprio_0) & MREQPRIO_0_SAB_INIT1_MASK & in board_init() 587 mreqprio_1 = readl(&cdev->mreqprio_1) & MREQPRIO_1_DSS_MASK; in board_init() 608 writel(mreqprio_0, &cdev->mreqprio_0); in board_init() 609 writel(mreqprio_1, &cdev->mreqprio_1); in board_init() 785 mac_lo = readl(&cdev->macid0l); in board_eth_init() 786 mac_hi = readl(&cdev->macid0h); in board_eth_init() 800 mac_lo = readl(&cdev->macid1l); in board_eth_init() 801 mac_hi = readl(&cdev->macid1h); in board_eth_init() 815 writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | cros_ec.c | 359 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_scan_keyboard() local 361 if (ec_command(cdev, EC_CMD_MKBP_STATE, 0, NULL, 0, scan, in cros_ec_scan_keyboard() 552 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_interrupt_pending() local 555 if (!dm_gpio_is_valid(&cdev->ec_int)) in cros_ec_interrupt_pending() 558 return dm_gpio_get_value(&cdev->ec_int); in cros_ec_interrupt_pending() 966 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_set_ldo() local 972 if (ec_command_inptr(cdev, EC_CMD_LDO_SET, 0, ¶ms, sizeof(params), in cros_ec_set_ldo() 981 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_get_ldo() local 987 if (ec_command_inptr(cdev, EC_CMD_LDO_GET, 0, ¶ms, sizeof(params), in cros_ec_get_ldo() 999 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_register() local [all …]
|
| /rk3399_rockchip-uboot/board/ti/am335x/ |
| H A D | board.c | 56 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 293 int freq = am335x_get_efuse_mpu_max_freq(cdev); in get_dpll_mpu_params() 430 sil_rev = readl(&cdev->deviceid) >> 28; in scale_vcores_generic() 464 freq = am335x_get_efuse_mpu_max_freq(cdev); in scale_vcores() 739 mac_lo = readl(&cdev->macid0l); in board_late_init() 740 mac_hi = readl(&cdev->macid0h); in board_late_init() 755 mac_lo = readl(&cdev->macid1l); in board_late_init() 756 mac_hi = readl(&cdev->macid1h); in board_late_init() 847 mac_lo = readl(&cdev->macid0l); in board_eth_init() 848 mac_hi = readl(&cdev->macid0h); in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/board/ti/ti814x/ |
| H A D | evm.c | 30 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()
|
| /rk3399_rockchip-uboot/board/ti/ti816x/ |
| H A D | evm.c | 39 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()
|
| /rk3399_rockchip-uboot/arch/arm/mach-omap2/am33xx/ |
| H A D | sys_info.c | 137 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()
|
| H A D | board.c | 154 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 182 am33xx_usb_set_phy_power(on, &cdev->usb_ctrl0); in am33xx_otg0_set_phy_power() 201 am33xx_usb_set_phy_power(on, &cdev->usb_ctrl1); in am33xx_otg1_set_phy_power()
|
| /rk3399_rockchip-uboot/board/phytec/pcm051/ |
| H A D | board.c | 36 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()
|
| /rk3399_rockchip-uboot/board/gumstix/pepper/ |
| H A D | board.c | 198 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 244 mac_lo = readl(&cdev->macid0l); in board_eth_init() 245 mac_hi = readl(&cdev->macid0h); in board_eth_init() 256 writel((RGMII_MODE_ENABLE | RGMII_INT_DELAY), &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/isee/igep003x/ |
| H A D | board.c | 44 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 269 mac_lo = readl(&cdev->macid0l); in board_eth_init() 270 mac_hi = readl(&cdev->macid0h); in board_eth_init() 282 &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/vscom/baltos/ |
| H A D | board.c | 44 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 179 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init() 200 sil_rev = readl(&cdev->deviceid) >> 28; in am33xx_spl_board_init() 445 mac_lo = readl(&cdev->macid1l); in board_eth_init() 446 mac_hi = readl(&cdev->macid1h); in board_eth_init() 464 writel((GMII1_SEL_RMII | GMII2_SEL_RGMII | RGMII2_IDMODE), &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/bosch/shc/ |
| H A D | board.c | 44 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 321 sil_rev = readl(&cdev->deviceid) >> 28; in am33xx_spl_board_init() 327 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in am33xx_spl_board_init() 537 mac_lo = readl(&cdev->macid0l); in board_eth_init() 538 mac_hi = readl(&cdev->macid0h); in board_eth_init() 555 writel(MII_MODE_ENABLE, &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | vmt.c | 265 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_create_volume() 266 vol->cdev.owner = THIS_MODULE; in ubi_create_volume() 267 dev = MKDEV(MAJOR(ubi->cdev.dev), vol_id + 1); in ubi_create_volume() 268 err = cdev_add(&vol->cdev, dev, 1); in ubi_create_volume() 327 cdev_del(&vol->cdev); in ubi_create_volume() 392 cdev_del(&vol->cdev); in ubi_remove_volume() 593 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_add_volume() 594 vol->cdev.owner = THIS_MODULE; in ubi_add_volume() 595 dev = MKDEV(MAJOR(ubi->cdev.dev), vol->vol_id + 1); in ubi_add_volume() 596 err = cdev_add(&vol->cdev, dev, 1); in ubi_add_volume() [all …]
|
| /rk3399_rockchip-uboot/board/siemens/draco/ |
| H A D | board.c | 112 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in print_chip_data() local 113 dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); in print_chip_data() 329 struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; in board_eth_init() local 336 writel((RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE), &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/compulab/cm_t43/ |
| H A D | cm_t43.c | 22 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; variable 156 writel(RGMII_MODE_ENABLE | RGMII_INT_DELAY, &cdev->miisel); in board_eth_init()
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | ubi.h | 115 dev_t cdev; member 189 dev_t cdev; member
|