| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/bridge/ |
| H A D | sdiobridge.c | 58 static struct ssv_sdiobridge_glue *glue; variable 71 static long ssv_sdiobridge_ioctl_getFuncfocus(struct ssv_sdiobridge_glue *glue,unsigned int cmd, st… in ssv_sdiobridge_ioctl_getFuncfocus() argument 80 u8 out_data = glue->funcFocus; in ssv_sdiobridge_ioctl_getFuncfocus() 92 static long ssv_sdiobridge_ioctl_setFuncfocus(struct ssv_sdiobridge_glue *glue,unsigned int cmd, st… in ssv_sdiobridge_ioctl_setFuncfocus() argument 98 dev_err(glue->dev, "%s : input length must < 0",__FUNCTION__); in ssv_sdiobridge_ioctl_setFuncfocus() 104 …CHECK_RET(copy_from_user(&glue->funcFocus,(int __user *)compat_ptr((unsigned long)pcmd_data->in_da… in ssv_sdiobridge_ioctl_setFuncfocus() 108 …CHECK_RET(copy_from_user(&glue->funcFocus,(int __user *)pcmd_data->in_data,sizeof(glue->funcFocus)… in ssv_sdiobridge_ioctl_setFuncfocus() 113 static long ssv_sdiobridge_ioctl_getBusWidth(struct ssv_sdiobridge_glue *glue,unsigned int cmd, str… in ssv_sdiobridge_ioctl_getBusWidth() argument 115 struct sdio_func *func = dev_to_sdio_func(glue->dev); in ssv_sdiobridge_ioctl_getBusWidth() 140 static long ssv_sdiobridge_ioctl_setBusWidth(struct ssv_sdiobridge_glue *glue,unsigned int cmd, str… [all …]
|
| H A D | debug.c | 22 int ssv_sdiobridge_init_debug(struct ssv_sdiobridge_glue *glue) in ssv_sdiobridge_init_debug() argument 24 glue->debugfs = debugfs_create_dir("ssv", in ssv_sdiobridge_init_debug() 26 if (!glue->debugfs) in ssv_sdiobridge_init_debug() 28 glue->dump_entry = debugfs_create_bool("sdiobridge_dump", S_IRUSR, glue->debugfs, &glue->dump); in ssv_sdiobridge_init_debug() 31 void ssv_sdiobridge_deinit_debug(struct ssv_sdiobridge_glue *glue) in ssv_sdiobridge_deinit_debug() argument 33 if (!glue->dump_entry) in ssv_sdiobridge_deinit_debug() 34 debugfs_remove(glue->dump_entry); in ssv_sdiobridge_deinit_debug()
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | mediatek.c | 54 static int mtk_musb_clks_get(struct mtk_glue *glue) in mtk_musb_clks_get() argument 56 struct device *dev = glue->dev; in mtk_musb_clks_get() 58 glue->main = devm_clk_get(dev, "main"); in mtk_musb_clks_get() 59 if (IS_ERR(glue->main)) { in mtk_musb_clks_get() 61 return PTR_ERR(glue->main); in mtk_musb_clks_get() 64 glue->mcu = devm_clk_get(dev, "mcu"); in mtk_musb_clks_get() 65 if (IS_ERR(glue->mcu)) { in mtk_musb_clks_get() 67 return PTR_ERR(glue->mcu); in mtk_musb_clks_get() 70 glue->univpll = devm_clk_get(dev, "univpll"); in mtk_musb_clks_get() 71 if (IS_ERR(glue->univpll)) { in mtk_musb_clks_get() [all …]
|
| H A D | sunxi.c | 92 struct sunxi_glue *glue = container_of(work, struct sunxi_glue, work); in sunxi_musb_work() local 95 if (!test_bit(SUNXI_MUSB_FL_ENABLED, &glue->flags)) in sunxi_musb_work() 98 if (test_and_clear_bit(SUNXI_MUSB_FL_HOSTMODE_PEND, &glue->flags)) { in sunxi_musb_work() 99 struct musb *musb = glue->musb; in sunxi_musb_work() 106 if (test_bit(SUNXI_MUSB_FL_HOSTMODE, &glue->flags)) { in sunxi_musb_work() 107 set_bit(SUNXI_MUSB_FL_VBUS_ON, &glue->flags); in sunxi_musb_work() 112 clear_bit(SUNXI_MUSB_FL_VBUS_ON, &glue->flags); in sunxi_musb_work() 122 vbus_on = test_bit(SUNXI_MUSB_FL_VBUS_ON, &glue->flags); in sunxi_musb_work() 123 phy_on = test_bit(SUNXI_MUSB_FL_PHY_ON, &glue->flags); in sunxi_musb_work() 127 phy_power_on(glue->phy); in sunxi_musb_work() [all …]
|
| H A D | musb_dsps.c | 134 static void dsps_mod_timer(struct dsps_glue *glue, int wait_ms) in dsps_mod_timer() argument 136 struct musb *musb = platform_get_drvdata(glue->musb); in dsps_mod_timer() 140 wait = msecs_to_jiffies(glue->wrp->poll_timeout); in dsps_mod_timer() 150 static void dsps_mod_timer_optional(struct dsps_glue *glue) in dsps_mod_timer_optional() argument 152 if (glue->vbus_irq) in dsps_mod_timer_optional() 155 dsps_mod_timer(glue, -1); in dsps_mod_timer_optional() 171 struct dsps_glue *glue = dev_get_drvdata(dev->parent); in dsps_musb_enable() local 172 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable() 188 dsps_mod_timer(glue, -1); in dsps_musb_enable() 197 struct dsps_glue *glue = dev_get_drvdata(dev->parent); in dsps_musb_disable() local [all …]
|
| H A D | omap2430.c | 62 struct omap2430_glue *glue = _glue; in omap2430_musb_mailbox() local 64 if (!glue) { in omap2430_musb_mailbox() 68 glue->status = status; in omap2430_musb_mailbox() 70 if (!glue_to_musb(glue)) { in omap2430_musb_mailbox() 75 schedule_work(&glue->omap_musb_mailbox_work); in omap2430_musb_mailbox() 87 static void omap_musb_set_mailbox(struct omap2430_glue *glue) in omap_musb_set_mailbox() argument 89 struct musb *musb = glue_to_musb(glue); in omap_musb_set_mailbox() 98 switch (glue->status) { in omap_musb_set_mailbox() 121 omap_control_usb_set_mode(glue->control_otghs, in omap_musb_set_mailbox() 134 omap_control_usb_set_mode(glue->control_otghs, USB_MODE_DEVICE); in omap_musb_set_mailbox() [all …]
|
| H A D | da8xx.c | 327 struct da8xx_glue *glue = dev_get_drvdata(musb->controller->parent); in da8xx_musb_set_mode() local 335 return phy_set_mode(glue->phy, PHY_MODE_USB_OTG); in da8xx_musb_set_mode() 351 return phy_set_mode(glue->phy, phy_mode); in da8xx_musb_set_mode() 356 struct da8xx_glue *glue = dev_get_drvdata(musb->controller->parent); in da8xx_musb_init() local 363 ret = clk_prepare_enable(glue->clk); in da8xx_musb_init() 365 dev_err(glue->dev, "failed to enable clock\n"); in da8xx_musb_init() 386 ret = phy_init(glue->phy); in da8xx_musb_init() 388 dev_err(glue->dev, "Failed to init phy.\n"); in da8xx_musb_init() 392 ret = phy_power_on(glue->phy); in da8xx_musb_init() 394 dev_err(glue->dev, "Failed to power on phy.\n"); in da8xx_musb_init() [all …]
|
| H A D | jz4740.c | 81 struct jz4740_glue *glue = usb_role_switch_get_drvdata(sw); in jz4740_musb_role_switch_set() local 82 struct usb_phy *phy = glue->musb->xceiv; in jz4740_musb_role_switch_set() 102 struct jz4740_glue *glue = dev_get_drvdata(dev); in jz4740_musb_init() local 105 .driver_data = glue, in jz4740_musb_init() 110 glue->musb = musb; in jz4740_musb_init() 123 glue->role_sw = usb_role_switch_register(dev, &role_sw_desc); in jz4740_musb_init() 124 if (IS_ERR(glue->role_sw)) { in jz4740_musb_init() 126 return PTR_ERR(glue->role_sw); in jz4740_musb_init() 142 struct jz4740_glue *glue = dev_get_drvdata(musb->controller->parent); in jz4740_musb_exit() local 144 usb_role_switch_unregister(glue->role_sw); in jz4740_musb_exit() [all …]
|
| H A D | davinci.c | 143 struct davinci_glue *glue = container_of(work, struct davinci_glue, in evm_deferred_drvvbus() local 146 gpiod_set_value_cansleep(glue->vbus, glue->vbus_state); in evm_deferred_drvvbus() 147 glue->vbus_state = !glue->vbus_state; in evm_deferred_drvvbus() 153 struct davinci_glue *glue = dev_get_drvdata(musb->controller->parent); in davinci_musb_source_power() local 156 if (!glue->vbus) in davinci_musb_source_power() 162 if (glue->vbus_state == is_on) in davinci_musb_source_power() 165 glue->vbus_state = !is_on; in davinci_musb_source_power() 169 gpiod_set_value_cansleep(glue->vbus, glue->vbus_state); in davinci_musb_source_power() 171 schedule_work(&glue->vbus_work); in davinci_musb_source_power() 174 glue->vbus_state = is_on; in davinci_musb_source_power() [all …]
|
| H A D | am35x.c | 447 struct am35x_glue *glue; in am35x_probe() local 454 glue = kzalloc(sizeof(*glue), GFP_KERNEL); in am35x_probe() 455 if (!glue) in am35x_probe() 484 glue->dev = &pdev->dev; in am35x_probe() 485 glue->phy_clk = phy_clk; in am35x_probe() 486 glue->clk = clk; in am35x_probe() 490 glue->phy = usb_phy_generic_register(); in am35x_probe() 491 if (IS_ERR(glue->phy)) { in am35x_probe() 492 ret = PTR_ERR(glue->phy); in am35x_probe() 495 platform_set_drvdata(pdev, glue); in am35x_probe() [all …]
|
| H A D | ux500.c | 223 struct ux500_glue *glue; in ux500_probe() local 240 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); in ux500_probe() 241 if (!glue) in ux500_probe() 267 glue->dev = &pdev->dev; in ux500_probe() 268 glue->musb = musb; in ux500_probe() 269 glue->clk = clk; in ux500_probe() 274 platform_set_drvdata(pdev, glue); in ux500_probe() 322 struct ux500_glue *glue = platform_get_drvdata(pdev); in ux500_remove() local 324 platform_device_unregister(glue->musb); in ux500_remove() 325 clk_disable_unprepare(glue->clk); in ux500_remove() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/hwif/sdio/ |
| H A D | sdio.c | 99 struct ssv6xxx_sdio_glue *glue = dev_get_drvdata(child->parent); in ssv6xxx_is_ready() local 101 || (glue == NULL) in ssv6xxx_is_ready() 102 || (glue->dev_ready == false)) in ssv6xxx_is_ready() 104 return glue->dev_ready; in ssv6xxx_is_ready() 110 struct ssv6xxx_sdio_glue *glue = dev_get_drvdata(child->parent); in ssv6xxx_sdio_cmd52_read() local 113 || (glue == NULL) in ssv6xxx_sdio_cmd52_read() 114 || (glue->dev_ready == false)) in ssv6xxx_sdio_cmd52_read() 116 if ( glue != NULL ) in ssv6xxx_sdio_cmd52_read() 118 func = dev_to_sdio_func(glue->dev); in ssv6xxx_sdio_cmd52_read() 129 struct ssv6xxx_sdio_glue *glue = dev_get_drvdata(child->parent); in ssv6xxx_sdio_cmd52_write() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wlcore/ |
| H A D | spi.c | 92 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset() local 113 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_reset() 120 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init() local 123 struct spi_device *spi = to_spi_device(glue->dev); in wl12xx_spi_init() 168 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init() 187 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init() 198 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy() local 220 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_read_busy() 234 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_raw_read() local 271 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_raw_read() [all …]
|
| H A D | sdio.c | 45 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size() local 46 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl1271_sdio_set_block_size() 57 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read() local 58 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_read() 95 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write() local 96 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_write() 129 static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_on() argument 132 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_power_on() 138 dev_err(glue->dev, "%s: failed to get_sync(%d)\n", in wl12xx_sdio_power_on() 157 static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_off() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/crypto/ |
| H A D | Makefile | 9 sha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 12 sha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 15 sha512-ce-y := sha512-ce-glue.o sha512-ce-core.o 18 sha3-ce-y := sha3-ce-glue.o sha3-ce-core.o 21 sm3-ce-y := sm3-ce-glue.o sm3-ce-core.o 24 sm4-ce-y := sm4-ce-glue.o sm4-ce-core.o 27 ghash-ce-y := ghash-ce-glue.o ghash-ce-core.o 30 crct10dif-ce-y := crct10dif-ce-core.o crct10dif-ce-glue.o 33 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 36 aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o [all …]
|
| H A D | Kbuild.fips140 | 7 sha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 8 sha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 9 sha512-ce-y := sha512-ce-glue.o sha512-ce-core.o 10 ghash-ce-y := ghash-ce-glue.o ghash-ce-core.o 11 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 12 aes-ce-blk-y := aes-glue-ce.o aes-ce.o 13 aes-neon-blk-y := aes-glue-neon.o aes-neon.o 14 sha256-arm64-y := sha256-glue.o sha256-core.o 15 sha512-arm64-y := sha512-glue.o sha512-core.o 16 aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/musb-new/ |
| H A D | musb_dsps.c | 154 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_enable() local 155 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable() 187 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_disable() local 188 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_disable() 206 struct dsps_glue *glue = platform_get_drvdata(pdev); in otg_timer() local 207 const struct dsps_musb_wrapper *wrp = glue->wrp; in otg_timer() 245 mod_timer(&glue->timer, in otg_timer() 260 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_try_idle() local 274 del_timer(&glue->timer); in dsps_musb_try_idle() 279 if (time_after(last_timer, timeout) && timer_pending(&glue->timer)) { in dsps_musb_try_idle() [all …]
|
| H A D | am35x.c | 508 struct am35x_glue *glue; in am35x_probe() local 515 glue = kzalloc(sizeof(*glue), GFP_KERNEL); in am35x_probe() 516 if (!glue) { in am35x_probe() 557 glue->dev = &pdev->dev; in am35x_probe() 558 glue->musb = musb; in am35x_probe() 559 glue->phy_clk = phy_clk; in am35x_probe() 560 glue->clk = clk; in am35x_probe() 564 platform_set_drvdata(pdev, glue); in am35x_probe() 603 kfree(glue); in am35x_probe() 611 struct am35x_glue *glue = platform_get_drvdata(pdev); in am35x_remove() local [all …]
|
| H A D | sunxi.c | 266 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_init() local 272 setbits_le32(&glue->ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_USB0); in sunxi_musb_init() 274 setbits_le32(&glue->ccm->ahb_reset0_cfg, 1 << AHB_GATE_OFFSET_USB0); in sunxi_musb_init() 320 struct sunxi_glue *glue = dev_get_priv(dev); in musb_usb_probe() local 321 struct musb_host_data *host = &glue->mdata; in musb_usb_probe() 329 glue->ccm = (struct sunxi_ccm_reg *)SUNXI_CCM_BASE; in musb_usb_probe() 330 if (IS_ERR(glue->ccm)) in musb_usb_probe() 331 return PTR_ERR(glue->ccm); in musb_usb_probe() 336 host->host = musb_init_controller(&musb_plat, &glue->dev, base); in musb_usb_probe() 344 ret = musb_register(&musb_plat, &glue->dev, base); in musb_usb_probe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i2c/ |
| H A D | tda9950.c | 66 struct tda9950_glue *glue; member 262 if (priv->glue && priv->glue->open) in tda9950_glue_open() 263 ret = priv->glue->open(priv->glue->data); in tda9950_glue_open() 274 if (priv->glue && priv->glue->release) in tda9950_glue_release() 275 priv->glue->release(priv->glue->data); in tda9950_glue_release() 348 struct tda9950_glue *glue = data; in tda9950_devm_glue_exit() local 350 if (glue && glue->exit) in tda9950_devm_glue_exit() 351 glue->exit(glue->data); in tda9950_devm_glue_exit() 354 static int tda9950_devm_glue_init(struct device *dev, struct tda9950_glue *glue) in tda9950_devm_glue_init() argument 358 if (glue && glue->init) { in tda9950_devm_glue_init() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | cpu_rmap.c | 227 struct irq_glue *glue; in free_irq_cpu_rmap() local 234 glue = rmap->obj[index]; in free_irq_cpu_rmap() 235 irq_set_affinity_notifier(glue->notify.irq, NULL); in free_irq_cpu_rmap() 252 struct irq_glue *glue = in irq_cpu_rmap_notify() local 256 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify() 267 struct irq_glue *glue = in irq_cpu_rmap_release() local 270 cpu_rmap_put(glue->rmap); in irq_cpu_rmap_release() 271 kfree(glue); in irq_cpu_rmap_release() 287 struct irq_glue *glue = kzalloc(sizeof(*glue), GFP_KERNEL); in irq_cpu_rmap_add() local 290 if (!glue) in irq_cpu_rmap_add() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/crypto/ |
| H A D | Makefile | 27 aes-arm-y := aes-cipher-core.o aes-cipher-glue.o 28 aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o 33 sha512-arm-neon-$(CONFIG_KERNEL_MODE_NEON) := sha512-neon-glue.o 34 sha512-arm-y := sha512-core.o sha512-glue.o $(sha512-arm-neon-y) 36 libblake2s-arm-y:= blake2s-core.o blake2s-glue.o 37 blake2b-neon-y := blake2b-neon-core.o blake2b-neon-glue.o 38 sha1-arm-ce-y := sha1-ce-core.o sha1-ce-glue.o 39 sha2-arm-ce-y := sha2-ce-core.o sha2-ce-glue.o 40 aes-arm-ce-y := aes-ce-core.o aes-ce-glue.o 41 ghash-arm-ce-y := ghash-ce-core.o ghash-ce-glue.o [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/dwc3/ |
| H A D | dwc3-generic.c | 56 struct dwc3_glue_data *glue = dev_get_platdata(dev->parent); in dwc3_generic_probe() local 70 reset_assert_bulk(&glue->resets); in dwc3_generic_probe() 79 reset_deassert_bulk(&glue->resets); in dwc3_generic_probe() 243 struct dwc3_glue_data *glue = dev_get_platdata(dev); in dwc3_ti_select_dr_mode() local 244 void *base = map_physmem(glue->regs, 0x10000, MAP_NOCACHE); in dwc3_ti_select_dr_mode() 356 struct dwc3_glue_data *glue) in dwc3_glue_reset_init() argument 360 ret = reset_get_bulk(dev, &glue->resets); in dwc3_glue_reset_init() 366 ret = reset_deassert_bulk(&glue->resets); in dwc3_glue_reset_init() 368 reset_release_bulk(&glue->resets); in dwc3_glue_reset_init() 376 struct dwc3_glue_data *glue) in dwc3_glue_clk_init() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc2/ |
| H A D | pci.c | 88 struct dwc2_pci_glue *glue = pci_get_drvdata(pci); in dwc2_pci_remove() local 90 platform_device_unregister(glue->dwc2); in dwc2_pci_remove() 91 usb_phy_generic_unregister(glue->phy); in dwc2_pci_remove() 103 struct dwc2_pci_glue *glue; in dwc2_pci_probe() local 150 glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL); in dwc2_pci_probe() 151 if (!glue) { in dwc2_pci_probe() 162 glue->phy = phy; in dwc2_pci_probe() 163 glue->dwc2 = dwc2; in dwc2_pci_probe() 164 pci_set_drvdata(pci, glue); in dwc2_pci_probe()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_pci.c | 45 struct bdc_pci *glue; in bdc_pci_probe() local 48 glue = devm_kzalloc(&pci->dev, sizeof(*glue), GFP_KERNEL); in bdc_pci_probe() 49 if (!glue) in bdc_pci_probe() 52 glue->dev = &pci->dev; in bdc_pci_probe() 84 pci_set_drvdata(pci, glue); in bdc_pci_probe() 91 glue->bdc = bdc; in bdc_pci_probe() 105 struct bdc_pci *glue = pci_get_drvdata(pci); in bdc_pci_remove() local 107 platform_device_unregister(glue->bdc); in bdc_pci_remove()
|