/openbmc/linux/drivers/usb/musb/ |
H A D | mediatek.c | 55 static int mtk_musb_clks_get(struct mtk_glue *glue) in mtk_musb_clks_get() argument 57 struct device *dev = glue->dev; in mtk_musb_clks_get() 59 glue->clks[0].id = "main"; in mtk_musb_clks_get() 60 glue->clks[1].id = "mcu"; in mtk_musb_clks_get() 61 glue->clks[2].id = "univpll"; in mtk_musb_clks_get() 63 return devm_clk_bulk_get(dev, MTK_MUSB_CLKS_NUM, glue->clks); in mtk_musb_clks_get() 66 static int mtk_otg_switch_set(struct mtk_glue *glue, enum usb_role role) in mtk_otg_switch_set() argument 68 struct musb *musb = glue->musb; in mtk_otg_switch_set() 72 if (role == glue->role) in mtk_otg_switch_set() 78 glue->phy_mode = PHY_MODE_USB_HOST; in mtk_otg_switch_set() [all …]
|
H A D | sunxi.c | 99 struct sunxi_glue *glue = container_of(work, struct sunxi_glue, work); in sunxi_musb_work() local 102 if (!test_bit(SUNXI_MUSB_FL_ENABLED, &glue->flags)) in sunxi_musb_work() 105 if (test_and_clear_bit(SUNXI_MUSB_FL_HOSTMODE_PEND, &glue->flags)) { in sunxi_musb_work() 106 struct musb *musb = glue->musb; in sunxi_musb_work() 113 if (test_bit(SUNXI_MUSB_FL_HOSTMODE, &glue->flags)) { in sunxi_musb_work() 114 set_bit(SUNXI_MUSB_FL_VBUS_ON, &glue->flags); in sunxi_musb_work() 119 clear_bit(SUNXI_MUSB_FL_VBUS_ON, &glue->flags); in sunxi_musb_work() 129 vbus_on = test_bit(SUNXI_MUSB_FL_VBUS_ON, &glue->flags); in sunxi_musb_work() 130 phy_on = test_bit(SUNXI_MUSB_FL_PHY_ON, &glue->flags); in sunxi_musb_work() 134 phy_power_on(glue->phy); in sunxi_musb_work() [all …]
|
H A D | musb_dsps.c | 133 static void dsps_mod_timer(struct dsps_glue *glue, int wait_ms) in dsps_mod_timer() argument 135 struct musb *musb = platform_get_drvdata(glue->musb); in dsps_mod_timer() 139 wait = msecs_to_jiffies(glue->wrp->poll_timeout); in dsps_mod_timer() 149 static void dsps_mod_timer_optional(struct dsps_glue *glue) in dsps_mod_timer_optional() argument 151 if (glue->vbus_irq) in dsps_mod_timer_optional() 154 dsps_mod_timer(glue, -1); in dsps_mod_timer_optional() 170 struct dsps_glue *glue = dev_get_drvdata(dev->parent); in dsps_musb_enable() local 171 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable() 187 dsps_mod_timer(glue, -1); in dsps_musb_enable() 196 struct dsps_glue *glue = dev_get_drvdata(dev->parent); in dsps_musb_disable() local [all …]
|
H A D | omap2430.c | 66 struct omap2430_glue *glue = _glue; in omap2430_musb_mailbox() local 68 if (!glue) { in omap2430_musb_mailbox() 72 glue->status = status; in omap2430_musb_mailbox() 74 if (!glue_to_musb(glue)) { in omap2430_musb_mailbox() 79 schedule_work(&glue->omap_musb_mailbox_work); in omap2430_musb_mailbox() 91 static void omap_musb_set_mailbox(struct omap2430_glue *glue) in omap_musb_set_mailbox() argument 93 struct musb *musb = glue_to_musb(glue); in omap_musb_set_mailbox() 102 switch (glue->status) { in omap_musb_set_mailbox() 125 omap_control_usb_set_mode(glue->control_otghs, in omap_musb_set_mailbox() 138 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() 388 ret = phy_init(glue->phy); in da8xx_musb_init() 390 dev_err(glue->dev, "Failed to init phy.\n"); in da8xx_musb_init() 394 ret = phy_power_on(glue->phy); in da8xx_musb_init() 396 dev_err(glue->dev, "Failed to power on phy.\n"); in da8xx_musb_init() [all …]
|
H A D | jz4740.c | 82 struct jz4740_glue *glue = usb_role_switch_get_drvdata(sw); in jz4740_musb_role_switch_set() local 83 struct usb_phy *phy = glue->musb->xceiv; in jz4740_musb_role_switch_set() 106 struct jz4740_glue *glue = dev_get_drvdata(dev); in jz4740_musb_init() local 109 .driver_data = glue, in jz4740_musb_init() 114 glue->musb = musb; in jz4740_musb_init() 152 glue->role_sw = usb_role_switch_register(dev, &role_sw_desc); in jz4740_musb_init() 153 if (IS_ERR(glue->role_sw)) { in jz4740_musb_init() 155 err = PTR_ERR(glue->role_sw); in jz4740_musb_init() 180 struct jz4740_glue *glue = dev_get_drvdata(musb->controller->parent); in jz4740_musb_exit() local 182 usb_role_switch_unregister(glue->role_sw); in jz4740_musb_exit() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | hda-codec-common.h | 45 static const desc_param glue(common_params_audio_dac_, PARAM)[] = { 69 static const desc_param glue(common_params_audio_adc_, PARAM)[] = { 97 static const desc_param glue(common_params_audio_lineout_, PARAM)[] = { 119 static const desc_param glue(common_params_audio_linein_, PARAM)[] = { 137 static const desc_param glue(output_params_root_, PARAM)[] = { 154 static const desc_param glue(output_params_audio_func_, PARAM)[] = { 189 static const desc_node glue(output_nodes_, PARAM)[] = { 193 .params = glue(output_params_root_, PARAM), 194 .nparams = ARRAY_SIZE(glue(output_params_root_, PARAM)), 198 .params = glue(output_params_audio_func_, PARAM), [all …]
|
/openbmc/qemu/include/exec/ |
H A D | memory_ldst_phys.h.inc | 23 static inline uint16_t glue(lduw_phys, SUFFIX)(ARG1_DECL, hwaddr addr) 25 return glue(address_space_lduw, SUFFIX)(ARG1, addr, 29 static inline uint32_t glue(ldl_phys, SUFFIX)(ARG1_DECL, hwaddr addr) 31 return glue(address_space_ldl, SUFFIX)(ARG1, addr, 35 static inline uint64_t glue(ldq_phys, SUFFIX)(ARG1_DECL, hwaddr addr) 37 return glue(address_space_ldq, SUFFIX)(ARG1, addr, 41 static inline void glue(stw_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint16_t val) 43 glue(address_space_stw, SUFFIX)(ARG1, addr, val, 47 static inline void glue(stl_phys, SUFFIX)(ARG1_DECL, hwaddr addr, uint32_t val) 49 glue(address_space_stl, SUFFIX)(ARG1, addr, val, [all …]
|
H A D | helper-gen.h.inc | 14 extern TCGHelperInfo glue(helper_info_, name); \ 15 static inline void glue(gen_helper_, name)(dh_retvar_decl0(ret)) \ 17 tcg_gen_call0(glue(helper_info_,name).func, \ 18 &glue(helper_info_,name), dh_retvar(ret)); \ 22 extern TCGHelperInfo glue(helper_info_, name); \ 23 static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ 26 tcg_gen_call1(glue(helper_info_,name).func, \ 27 &glue(helper_info_,name), dh_retvar(ret), \ 32 extern TCGHelperInfo glue(helper_info_, name); \ 33 static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ [all …]
|
H A D | memory_ldst.h.inc | 23 uint16_t glue(address_space_lduw, SUFFIX)(ARG1_DECL, 25 uint32_t glue(address_space_ldl, SUFFIX)(ARG1_DECL, 27 uint64_t glue(address_space_ldq, SUFFIX)(ARG1_DECL, 29 void glue(address_space_stl_notdirty, SUFFIX)(ARG1_DECL, 31 void glue(address_space_stw, SUFFIX)(ARG1_DECL, 33 void glue(address_space_stl, SUFFIX)(ARG1_DECL, 35 void glue(address_space_stq, SUFFIX)(ARG1_DECL, 38 uint8_t glue(address_space_ldub, SUFFIX)(ARG1_DECL, 40 uint16_t glue(address_space_lduw_le, SUFFIX)(ARG1_DECL, 42 uint16_t glue(address_space_lduw_be, SUFFIX)(ARG1_DECL, [all …]
|
H A D | memory_ldst_cached.h.inc | 21 glue(glue(address_space_ld, size), glue(ENDIANNESS, _cached)) 23 glue(glue(address_space_ld, size), glue(ENDIANNESS, _cached_slow)) 25 glue(glue(ld, size), glue(ENDIANNESS, _p)) 68 glue(glue(address_space_st, size), glue(ENDIANNESS, _cached)) 70 glue(glue(address_space_st, size), glue(ENDIANNESS, _cached_slow)) 72 glue(glue(st, size), glue(ENDIANNESS, _p))
|
/openbmc/qemu/audio/ |
H A D | audio_template.h | 39 static void glue(audio_init_nb_voices_, TYPE)(AudioState *s, in glue() function 42 int max_voices = glue (drv->max_voices_, TYPE); in glue() 43 size_t voice_size = glue(drv->voice_size_, TYPE); in glue() 45 glue (s->nb_hw_voices_, TYPE) = glue(audio_get_pdo_, TYPE)(s->dev)->voices; in glue() 46 if (glue (s->nb_hw_voices_, TYPE) > max_voices) { in glue() 54 glue (s->nb_hw_voices_, TYPE), in glue() 57 glue (s->nb_hw_voices_, TYPE) = max_voices; in glue() 60 if (glue (s->nb_hw_voices_, TYPE) < min_voices) { in glue() 62 glue (s->nb_hw_voices_, TYPE), in glue() 69 glue (s->nb_hw_voices_, TYPE) = 0; in glue() [all …]
|
H A D | mixeng_template.h | 34 #define ET glue (ENDIAN_CONVERSION, glue (glue (glue (_, ITYPE), BSIZE), _t)) 35 #define IN_T glue (glue (ITYPE, BSIZE), _t) 38 static inline mixeng_real glue (conv_, ET) (IN_T v) in glue() function 57 static inline IN_T glue (clip_, ET) (mixeng_real v) in glue() function 74 static inline int64_t glue (conv_, ET) (IN_T v) in glue() function 84 static inline IN_T glue (clip_, ET) (int64_t v) in glue() function 100 static void glue (glue (conv_, ET), _to_stereo) in glue() function 107 out->l = glue (conv_, ET) (*in++); in glue() 108 out->r = glue (conv_, ET) (*in++); in glue() 113 static void glue (glue (conv_, ET), _to_mono) in glue() function [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | ops_sse_header.h.inc | 41 DEF_HELPER_4(glue(psrlw, SUFFIX), void, env, Reg, Reg, Reg) 42 DEF_HELPER_4(glue(psraw, SUFFIX), void, env, Reg, Reg, Reg) 43 DEF_HELPER_4(glue(psllw, SUFFIX), void, env, Reg, Reg, Reg) 44 DEF_HELPER_4(glue(psrld, SUFFIX), void, env, Reg, Reg, Reg) 45 DEF_HELPER_4(glue(psrad, SUFFIX), void, env, Reg, Reg, Reg) 46 DEF_HELPER_4(glue(pslld, SUFFIX), void, env, Reg, Reg, Reg) 47 DEF_HELPER_4(glue(psrlq, SUFFIX), void, env, Reg, Reg, Reg) 48 DEF_HELPER_4(glue(psllq, SUFFIX), void, env, Reg, Reg, Reg) 51 DEF_HELPER_4(glue(psrldq, SUFFIX), void, env, Reg, Reg, Reg) 52 DEF_HELPER_4(glue(pslldq, SUFFIX), void, env, Reg, Reg, Reg) [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wlcore/ |
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() 137 dev_err(glue->dev, "%s: failed to get_sync(%d)\n", in wl12xx_sdio_power_on() 156 static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_off() argument [all …]
|
H A D | spi.c | 91 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset() local 112 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_reset() 119 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init() local 122 struct spi_device *spi = to_spi_device(glue->dev); in wl12xx_spi_init() 167 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init() 186 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init() 197 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy() local 219 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_read_busy() 233 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_raw_read() local 270 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_raw_read() [all …]
|
/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | sunxi.c | 226 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_enable() local 241 ret = sun4i_usb_phy_vbus_detect(&glue->phy); in sunxi_musb_enable() 247 ret = sun4i_usb_phy_id_detect(&glue->phy); in sunxi_musb_enable() 253 ret = generic_phy_power_on(&glue->phy); in sunxi_musb_enable() 268 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_disable() local 277 ret = generic_phy_power_off(&glue->phy); in sunxi_musb_disable() 292 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_init() local 297 ret = clk_enable(&glue->clk); in sunxi_musb_init() 303 if (reset_valid(&glue->rst)) { in sunxi_musb_init() 304 ret = reset_deassert(&glue->rst); in sunxi_musb_init() [all …]
|
H A D | musb_dsps.c | 153 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_enable() local 154 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable() 186 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_disable() local 187 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_disable() 205 struct dsps_glue *glue = platform_get_drvdata(pdev); in otg_timer() local 206 const struct dsps_musb_wrapper *wrp = glue->wrp; in otg_timer() 244 mod_timer(&glue->timer, in otg_timer() 259 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_try_idle() local 273 del_timer(&glue->timer); in dsps_musb_try_idle() 278 if (time_after(last_timer, timeout) && timer_pending(&glue->timer)) { in dsps_musb_try_idle() [all …]
|
/openbmc/linux/lib/ |
H A D | cpu_rmap.c | 239 struct irq_glue *glue; in free_irq_cpu_rmap() local 246 glue = rmap->obj[index]; in free_irq_cpu_rmap() 247 if (glue) in free_irq_cpu_rmap() 248 irq_set_affinity_notifier(glue->notify.irq, NULL); in free_irq_cpu_rmap() 265 struct irq_glue *glue = in irq_cpu_rmap_notify() local 269 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify() 280 struct irq_glue *glue = in irq_cpu_rmap_release() local 283 glue->rmap->obj[glue->index] = NULL; in irq_cpu_rmap_release() 284 cpu_rmap_put(glue->rmap); in irq_cpu_rmap_release() 285 kfree(glue); in irq_cpu_rmap_release() [all …]
|
/openbmc/linux/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-neon-y := sm3-neon-glue.o sm3-neon-core.o 24 sm3-ce-y := sm3-ce-glue.o sm3-ce-core.o 27 sm4-ce-cipher-y := sm4-ce-cipher-glue.o sm4-ce-cipher-core.o 30 sm4-ce-y := sm4-ce-glue.o sm4-ce-core.o 33 sm4-ce-ccm-y := sm4-ce-ccm-glue.o sm4-ce-ccm-core.o 36 sm4-ce-gcm-y := sm4-ce-gcm-glue.o sm4-ce-gcm-core.o [all …]
|
/openbmc/linux/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 …]
|
/openbmc/qemu/system/ |
H A D | memory_ldst.c.inc | 23 static inline uint32_t glue(address_space_ldl_internal, SUFFIX)(ARG1_DECL, 70 uint32_t glue(address_space_ldl, SUFFIX)(ARG1_DECL, 73 return glue(address_space_ldl_internal, SUFFIX)(ARG1, addr, attrs, result, 77 uint32_t glue(address_space_ldl_le, SUFFIX)(ARG1_DECL, 80 return glue(address_space_ldl_internal, SUFFIX)(ARG1, addr, attrs, result, 84 uint32_t glue(address_space_ldl_be, SUFFIX)(ARG1_DECL, 87 return glue(address_space_ldl_internal, SUFFIX)(ARG1, addr, attrs, result, 92 static inline uint64_t glue(address_space_ldq_internal, SUFFIX)(ARG1_DECL, 139 uint64_t glue(address_space_ldq, SUFFIX)(ARG1_DECL, 142 return glue(address_space_ldq_internal, SUFFIX)(ARG1, addr, attrs, result, [all …]
|
/openbmc/qemu/hw/display/ |
H A D | cirrus_vga_rop.h | 25 static inline void glue(rop_8_, ROP_NAME)(CirrusVGAState *s, in glue() function 32 static inline void glue(rop_tr_8_, ROP_NAME)(CirrusVGAState *s, in glue() function 43 static inline void glue(rop_16_, ROP_NAME)(CirrusVGAState *s, in glue() function 51 static inline void glue(rop_tr_16_, ROP_NAME)(CirrusVGAState *s, in glue() function 63 static inline void glue(rop_32_, ROP_NAME)(CirrusVGAState *s, in glue() function 71 #define ROP_OP(st, d, s) glue(rop_8_, ROP_NAME)(st, d, s) 72 #define ROP_OP_TR(st, d, s, t) glue(rop_tr_8_, ROP_NAME)(st, d, s, t) 73 #define ROP_OP_16(st, d, s) glue(rop_16_, ROP_NAME)(st, d, s) 74 #define ROP_OP_TR_16(st, d, s, t) glue(rop_tr_16_, ROP_NAME)(st, d, s, t) 75 #define ROP_OP_32(st, d, s) glue(rop_32_, ROP_NAME)(st, d, s) [all …]
|
/openbmc/linux/arch/arm/crypto/ |
H A D | Makefile | 26 aes-arm-y := aes-cipher-core.o aes-cipher-glue.o 27 aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o 32 sha512-arm-neon-$(CONFIG_KERNEL_MODE_NEON) := sha512-neon-glue.o 33 sha512-arm-y := sha512-core.o sha512-glue.o $(sha512-arm-neon-y) 34 libblake2s-arm-y:= blake2s-core.o blake2s-glue.o 35 blake2b-neon-y := blake2b-neon-core.o blake2b-neon-glue.o 36 sha1-arm-ce-y := sha1-ce-core.o sha1-ce-glue.o 37 sha2-arm-ce-y := sha2-ce-core.o sha2-ce-glue.o 38 aes-arm-ce-y := aes-ce-core.o aes-ce-glue.o 39 ghash-arm-ce-y := ghash-ce-core.o ghash-ce-glue.o [all …]
|
/openbmc/qemu/accel/tcg/ |
H A D | atomic_common.c.inc | 83 TYPE HELPER(glue(atomic_,OP))(CPUArchState *env, uint64_t addr, \ 85 { return glue(glue(cpu_atomic_,OP),_mmu)(env, addr, val, oi, GETPC()); } 89 ATOMIC_HELPER(glue(OP,b), uint32_t) \ 90 ATOMIC_HELPER(glue(OP,w_be), uint32_t) \ 91 ATOMIC_HELPER(glue(OP,w_le), uint32_t) \ 92 ATOMIC_HELPER(glue(OP,l_be), uint32_t) \ 93 ATOMIC_HELPER(glue(OP,l_le), uint32_t) \ 94 ATOMIC_HELPER(glue(OP,q_be), uint64_t) \ 95 ATOMIC_HELPER(glue(OP,q_le), uint64_t) 98 ATOMIC_HELPER(glue(OP,b), uint32_t) \ [all …]
|