| /OK3568_Linux_fs/external/xserver/hw/dmx/glxProxy/ |
| H A D | g_renderswap.c | 38 __glXDispSwap_CallList(GLbyte * pc) in __glXDispSwap_CallList() argument 42 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_CallList() 47 __glXDispSwap_ListBase(GLbyte * pc) in __glXDispSwap_ListBase() argument 51 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_ListBase() 56 __glXDispSwap_Begin(GLbyte * pc) in __glXDispSwap_Begin() argument 60 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_Begin() 65 __glXDispSwap_Color3bv(GLbyte * pc) in __glXDispSwap_Color3bv() argument 70 __glXDispSwap_Color3dv(GLbyte * pc) in __glXDispSwap_Color3dv() argument 76 if ((unsigned long) (pc) & 7) { in __glXDispSwap_Color3dv() 77 __GLX_MEM_COPY(pc - 4, pc, 24); in __glXDispSwap_Color3dv() [all …]
|
| H A D | render2swap.c | 67 __glXDispSwap_Map1f(GLbyte * pc) in __glXDispSwap_Map1f() argument 77 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_Map1f() 78 __GLX_SWAP_INT(pc + 12); in __glXDispSwap_Map1f() 79 __GLX_SWAP_FLOAT(pc + 4); in __glXDispSwap_Map1f() 80 __GLX_SWAP_FLOAT(pc + 8); in __glXDispSwap_Map1f() 82 target = *(GLenum *) (pc + 0); in __glXDispSwap_Map1f() 83 order = *(GLint *) (pc + 12); in __glXDispSwap_Map1f() 84 points = (GLfloat *) (pc + 16); in __glXDispSwap_Map1f() 99 __glXDispSwap_Map2f(GLbyte * pc) in __glXDispSwap_Map2f() argument 109 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_Map2f() [all …]
|
| H A D | unpack.h | 37 ** Fetch the context-id out of a SingleReq request pointed to by pc. 39 #define __GLX_GET_SINGLE_CONTEXT_TAG(pc) (((xGLXSingleReq*)pc)->contextTag) argument 40 #define __GLX_GET_VENDPRIV_CONTEXT_TAG(pc) (((xGLXVendorPrivateReq*)pc)->contextTag) argument 146 #define __GLX_SWAP_INT(pc) \ argument 147 sw = ((GLbyte *)(pc))[0]; \ 148 ((GLbyte *)(pc))[0] = ((GLbyte *)(pc))[3]; \ 149 ((GLbyte *)(pc))[3] = sw; \ 150 sw = ((GLbyte *)(pc))[1]; \ 151 ((GLbyte *)(pc))[1] = ((GLbyte *)(pc))[2]; \ 152 ((GLbyte *)(pc))[2] = sw; [all …]
|
| /OK3568_Linux_fs/external/xserver/glx/ |
| H A D | indirect_dispatch.h | 35 extern _X_HIDDEN void __glXDisp_MapGrid1d(GLbyte * pc); 36 extern _X_HIDDEN void __glXDispSwap_MapGrid1d(GLbyte * pc); 37 extern _X_HIDDEN void __glXDisp_MapGrid1f(GLbyte * pc); 38 extern _X_HIDDEN void __glXDispSwap_MapGrid1f(GLbyte * pc); 42 extern _X_HIDDEN void __glXDisp_LoadIdentity(GLbyte * pc); 43 extern _X_HIDDEN void __glXDispSwap_LoadIdentity(GLbyte * pc); 44 extern _X_HIDDEN void __glXDisp_ConvolutionFilter1D(GLbyte * pc); 45 extern _X_HIDDEN void __glXDispSwap_ConvolutionFilter1D(GLbyte * pc); 46 extern _X_HIDDEN void __glXDisp_RasterPos3dv(GLbyte * pc); 47 extern _X_HIDDEN void __glXDispSwap_RasterPos3dv(GLbyte * pc); [all …]
|
| H A D | indirect_dispatch.c | 49 __glXDisp_NewList(__GLXclientState * cl, GLbyte * pc) in __glXDisp_NewList() argument 51 xGLXSingleReq *const req = (xGLXSingleReq *) pc; in __glXDisp_NewList() 55 pc += __GLX_SINGLE_HDR_SIZE; in __glXDisp_NewList() 57 glNewList(*(GLuint *) (pc + 0), *(GLenum *) (pc + 4)); in __glXDisp_NewList() 65 __glXDisp_EndList(__GLXclientState * cl, GLbyte * pc) in __glXDisp_EndList() argument 67 xGLXSingleReq *const req = (xGLXSingleReq *) pc; in __glXDisp_EndList() 71 pc += __GLX_SINGLE_HDR_SIZE; in __glXDisp_EndList() 81 __glXDisp_CallList(GLbyte * pc) in __glXDisp_CallList() argument 83 glCallList(*(GLuint *) (pc + 0)); in __glXDisp_CallList() 87 __glXDisp_CallLists(GLbyte * pc) in __glXDisp_CallLists() argument [all …]
|
| H A D | indirect_dispatch_swap.c | 163 __glXDispSwap_NewList(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_NewList() argument 165 xGLXSingleReq *const req = (xGLXSingleReq *) pc; in __glXDispSwap_NewList() 170 pc += __GLX_SINGLE_HDR_SIZE; in __glXDispSwap_NewList() 172 glNewList((GLuint) bswap_CARD32(pc + 0), (GLenum) bswap_ENUM(pc + 4)); in __glXDispSwap_NewList() 180 __glXDispSwap_EndList(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_EndList() argument 182 xGLXSingleReq *const req = (xGLXSingleReq *) pc; in __glXDispSwap_EndList() 187 pc += __GLX_SINGLE_HDR_SIZE; in __glXDispSwap_EndList() 197 __glXDispSwap_CallList(GLbyte * pc) in __glXDispSwap_CallList() argument 199 glCallList((GLuint) bswap_CARD32(pc + 0)); in __glXDispSwap_CallList() 203 __glXDispSwap_CallLists(GLbyte * pc) in __glXDispSwap_CallLists() argument [all …]
|
| H A D | indirect_reqsize.c | 39 GLint __glX ## from ## ReqSize( const GLbyte * pc, Bool swap, int reqlen ) \ 44 GLint __glX ## from ## ReqSize( const GLbyte * pc, Bool swap, int reqlen ) \ 45 { return __glX ## to ## ReqSize( pc, swap, reqlen ); } 49 __glXCallListsReqSize(const GLbyte * pc, Bool swap, int reqlen) in __glXCallListsReqSize() argument 51 GLsizei n = *(GLsizei *) (pc + 0); in __glXCallListsReqSize() 52 GLenum type = *(GLenum *) (pc + 4); in __glXCallListsReqSize() 65 __glXBitmapReqSize(const GLbyte * pc, Bool swap, int reqlen) in __glXBitmapReqSize() argument 67 GLint row_length = *(GLint *) (pc + 4); in __glXBitmapReqSize() 70 GLint skip_rows = *(GLint *) (pc + 8); in __glXBitmapReqSize() 71 GLint alignment = *(GLint *) (pc + 16); in __glXBitmapReqSize() [all …]
|
| H A D | render2swap.c | 41 __glXDispSwap_Map1f(GLbyte * pc) in __glXDispSwap_Map1f() argument 51 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_Map1f() 52 __GLX_SWAP_INT(pc + 12); in __glXDispSwap_Map1f() 53 __GLX_SWAP_FLOAT(pc + 4); in __glXDispSwap_Map1f() 54 __GLX_SWAP_FLOAT(pc + 8); in __glXDispSwap_Map1f() 56 target = *(GLenum *) (pc + 0); in __glXDispSwap_Map1f() 57 order = *(GLint *) (pc + 12); in __glXDispSwap_Map1f() 58 u1 = *(GLfloat *) (pc + 4); in __glXDispSwap_Map1f() 59 u2 = *(GLfloat *) (pc + 8); in __glXDispSwap_Map1f() 60 points = (GLfloat *) (pc + 16); in __glXDispSwap_Map1f() [all …]
|
| H A D | singlepixswap.c | 43 __glXDispSwap_ReadPixels(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_ReadPixels() argument 59 __GLX_SWAP_INT(&((xGLXSingleReq *) pc)->contextTag); in __glXDispSwap_ReadPixels() 60 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error); in __glXDispSwap_ReadPixels() 65 pc += __GLX_SINGLE_HDR_SIZE; in __glXDispSwap_ReadPixels() 66 __GLX_SWAP_INT(pc + 0); in __glXDispSwap_ReadPixels() 67 __GLX_SWAP_INT(pc + 4); in __glXDispSwap_ReadPixels() 68 __GLX_SWAP_INT(pc + 8); in __glXDispSwap_ReadPixels() 69 __GLX_SWAP_INT(pc + 12); in __glXDispSwap_ReadPixels() 70 __GLX_SWAP_INT(pc + 16); in __glXDispSwap_ReadPixels() 71 __GLX_SWAP_INT(pc + 20); in __glXDispSwap_ReadPixels() [all …]
|
| H A D | indirect_reqsize.h | 39 extern PURE _X_HIDDEN int __glXCallListsReqSize(const GLbyte * pc, Bool swap, 41 extern PURE _X_HIDDEN int __glXBitmapReqSize(const GLbyte * pc, Bool swap, 43 extern PURE _X_HIDDEN int __glXFogfvReqSize(const GLbyte * pc, Bool swap, 45 extern PURE _X_HIDDEN int __glXFogivReqSize(const GLbyte * pc, Bool swap, 47 extern PURE _X_HIDDEN int __glXLightfvReqSize(const GLbyte * pc, Bool swap, 49 extern PURE _X_HIDDEN int __glXLightivReqSize(const GLbyte * pc, Bool swap, 51 extern PURE _X_HIDDEN int __glXLightModelfvReqSize(const GLbyte * pc, Bool swap, 53 extern PURE _X_HIDDEN int __glXLightModelivReqSize(const GLbyte * pc, Bool swap, 55 extern PURE _X_HIDDEN int __glXMaterialfvReqSize(const GLbyte * pc, Bool swap, 57 extern PURE _X_HIDDEN int __glXMaterialivReqSize(const GLbyte * pc, Bool swap, [all …]
|
| H A D | glxcmdsswap.c | 57 __glXDispSwap_CreateContext(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_CreateContext() argument 59 xGLXCreateContextReq *req = (xGLXCreateContextReq *) pc; in __glXDispSwap_CreateContext() 69 return __glXDisp_CreateContext(cl, pc); in __glXDispSwap_CreateContext() 73 __glXDispSwap_CreateNewContext(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_CreateNewContext() argument 75 xGLXCreateNewContextReq *req = (xGLXCreateNewContextReq *) pc; in __glXDispSwap_CreateNewContext() 86 return __glXDisp_CreateNewContext(cl, pc); in __glXDispSwap_CreateNewContext() 90 __glXDispSwap_CreateContextWithConfigSGIX(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_CreateContextWithConfigSGIX() argument 94 (xGLXCreateContextWithConfigSGIXReq *) pc; in __glXDispSwap_CreateContextWithConfigSGIX() 106 return __glXDisp_CreateContextWithConfigSGIX(cl, pc); in __glXDispSwap_CreateContextWithConfigSGIX() 110 __glXDispSwap_DestroyContext(__GLXclientState * cl, GLbyte * pc) in __glXDispSwap_DestroyContext() argument [all …]
|
| H A D | singlepix.c | 43 __glXDisp_ReadPixels(__GLXclientState * cl, GLbyte * pc) in __glXDisp_ReadPixels() argument 57 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error); in __glXDisp_ReadPixels() 62 pc += __GLX_SINGLE_HDR_SIZE; in __glXDisp_ReadPixels() 63 width = *(GLsizei *) (pc + 8); in __glXDisp_ReadPixels() 64 height = *(GLsizei *) (pc + 12); in __glXDisp_ReadPixels() 65 format = *(GLenum *) (pc + 16); in __glXDisp_ReadPixels() 66 type = *(GLenum *) (pc + 20); in __glXDisp_ReadPixels() 67 swapBytes = *(GLboolean *) (pc + 24); in __glXDisp_ReadPixels() 68 lsbFirst = *(GLboolean *) (pc + 25); in __glXDisp_ReadPixels() 77 glReadPixels(*(GLint *) (pc + 0), *(GLint *) (pc + 4), in __glXDisp_ReadPixels() [all …]
|
| H A D | render2.c | 41 __glXDisp_Map1f(GLbyte * pc) in __glXDisp_Map1f() argument 47 target = *(GLenum *) (pc + 0); in __glXDisp_Map1f() 48 order = *(GLint *) (pc + 12); in __glXDisp_Map1f() 49 u1 = *(GLfloat *) (pc + 4); in __glXDisp_Map1f() 50 u2 = *(GLfloat *) (pc + 8); in __glXDisp_Map1f() 51 points = (GLfloat *) (pc + 16); in __glXDisp_Map1f() 58 __glXDisp_Map2f(GLbyte * pc) in __glXDisp_Map2f() argument 64 target = *(GLenum *) (pc + 0); in __glXDisp_Map2f() 65 uorder = *(GLint *) (pc + 12); in __glXDisp_Map2f() 66 vorder = *(GLint *) (pc + 24); in __glXDisp_Map2f() [all …]
|
| H A D | unpack.h | 41 ** Fetch the context-id out of a SingleReq request pointed to by pc. 43 #define __GLX_GET_SINGLE_CONTEXT_TAG(pc) (((xGLXSingleReq*)pc)->contextTag) argument 44 #define __GLX_GET_VENDPRIV_CONTEXT_TAG(pc) (((xGLXVendorPrivateReq*)pc)->contextTag) argument 129 #define __GLX_SWAP_INT(pc) \ argument 130 sw = ((GLbyte *)(pc))[0]; \ 131 ((GLbyte *)(pc))[0] = ((GLbyte *)(pc))[3]; \ 132 ((GLbyte *)(pc))[3] = sw; \ 133 sw = ((GLbyte *)(pc))[1]; \ 134 ((GLbyte *)(pc))[1] = ((GLbyte *)(pc))[2]; \ 135 ((GLbyte *)(pc))[2] = sw; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/meson/ |
| H A D | pinctrl-meson.c | 66 * @pc: the pinctrl instance 72 static int meson_get_bank(struct meson_pinctrl *pc, unsigned int pin, in meson_get_bank() argument 77 for (i = 0; i < pc->data->num_banks; i++) { in meson_get_bank() 78 if (pin >= pc->data->banks[i].first && in meson_get_bank() 79 pin <= pc->data->banks[i].last) { in meson_get_bank() 80 *bank = &pc->data->banks[i]; in meson_get_bank() 110 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_groups_count() local 112 return pc->data->num_groups; in meson_get_groups_count() 118 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_name() local 120 return pc->data->groups[selector].name; in meson_get_group_name() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | pwm-rockchip.c | 103 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); in rockchip_pwm_get_state() local 104 u32 enable_conf = pc->data->enable_conf; in rockchip_pwm_get_state() 110 if (!pc->oneshot_en) { in rockchip_pwm_get_state() 111 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state() 116 dclk_div = pc->oneshot_en ? 2 : 1; in rockchip_pwm_get_state() 118 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state() 119 tmp *= dclk_div * pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state() 120 state->period = DIV_ROUND_CLOSEST_ULL(tmp, pc->clk_rate); in rockchip_pwm_get_state() 122 tmp = readl_relaxed(pc->base + pc->data->regs.duty); in rockchip_pwm_get_state() 123 tmp *= dclk_div * pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state() [all …]
|
| H A D | pwm-sti.c | 122 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, in sti_pwm_get_prescale() argument 125 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_get_prescale() 130 clk_rate = clk_get_rate(pc->pwm_clk); in sti_pwm_get_prescale() 132 dev_err(pc->dev, "failed to get clock rate\n"); in sti_pwm_get_prescale() 166 struct sti_pwm_chip *pc = to_sti_pwmchip(chip); in sti_pwm_config() local 167 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_config() 169 struct pwm_device *cur = pc->cur; in sti_pwm_config() 170 struct device *dev = pc->dev; in sti_pwm_config() 174 ncfg = hweight_long(pc->configured); in sti_pwm_config() 195 ret = clk_enable(pc->pwm_clk); in sti_pwm_config() [all …]
|
| H A D | pwm-gpio.c | 48 static void gpio_pwm_off(struct gpio_pwm_chip *pc) in gpio_pwm_off() argument 50 enum pwm_polarity polarity = pwm_get_polarity(pc->chip.pwms); in gpio_pwm_off() 52 gpiod_set_value(pc->gpiod, polarity ? 1 : 0); in gpio_pwm_off() 55 static void gpio_pwm_on(struct gpio_pwm_chip *pc) in gpio_pwm_on() argument 57 enum pwm_polarity polarity = pwm_get_polarity(pc->chip.pwms); in gpio_pwm_on() 59 gpiod_set_value(pc->gpiod, polarity ? 0 : 1); in gpio_pwm_on() 64 struct gpio_pwm_chip *pc = container_of(timer, in gpio_pwm_timer() local 67 if (!pwm_is_enabled(pc->chip.pwms)) { in gpio_pwm_timer() 68 gpio_pwm_off(pc); in gpio_pwm_timer() 69 pc->pin_on = false; in gpio_pwm_timer() [all …]
|
| H A D | pwm-rockchip-i2s.c | 110 struct rockchip_i2s_pwm_chip *pc = to_rockchip_i2s_pwm_chip(chip); in rockchip_i2s_pwm_get_state() local 114 ret = clk_enable(pc->hclk); in rockchip_i2s_pwm_get_state() 118 memcpy(state, &pc->pwm_state, sizeof(struct pwm_state)); in rockchip_i2s_pwm_get_state() 120 ctrl = readl_relaxed(pc->base + I2S_XFER); in rockchip_i2s_pwm_get_state() 126 clk_disable(pc->hclk); in rockchip_i2s_pwm_get_state() 133 struct rockchip_i2s_pwm_chip *pc = to_rockchip_i2s_pwm_chip(chip); in rockchip_i2s_pwm_config() local 140 ret = clk_enable(pc->hclk); in rockchip_i2s_pwm_config() 147 mclk_rate = clk_get_rate(pc->mclk); in rockchip_i2s_pwm_config() 167 div_val = readl_relaxed(pc->base + pc->data->reg_clkdiv); in rockchip_i2s_pwm_config() 168 div_val &= ~pc->data->mask_clkdiv; in rockchip_i2s_pwm_config() [all …]
|
| H A D | pwm-tiecap.c | 53 struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); in ecap_pwm_config() local 61 c = pc->clk_rate; in ecap_pwm_config() 70 c = pc->clk_rate; in ecap_pwm_config() 76 pm_runtime_get_sync(pc->chip.dev); in ecap_pwm_config() 78 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config() 83 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_config() 87 writel(duty_cycles, pc->mmio_base + CAP2); in ecap_pwm_config() 88 writel(period_cycles, pc->mmio_base + CAP1); in ecap_pwm_config() 95 writel(duty_cycles, pc->mmio_base + CAP4); in ecap_pwm_config() 96 writel(period_cycles, pc->mmio_base + CAP3); in ecap_pwm_config() [all …]
|
| H A D | pwm-tiehrpwm.c | 181 static void configure_polarity(struct ehrpwm_pwm_chip *pc, int chan) in configure_polarity() argument 196 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) in configure_polarity() 204 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) in configure_polarity() 211 ehrpwm_modify(pc->mmio_base, aqctl_reg, aqctl_mask, aqctl_val); in configure_polarity() 221 struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); in ehrpwm_pwm_config() local 230 c = pc->clk_rate; in ehrpwm_pwm_config() 239 c = pc->clk_rate; in ehrpwm_pwm_config() 250 if (pc->period_cycles[i] && in ehrpwm_pwm_config() 251 (pc->period_cycles[i] != period_cycles)) { in ehrpwm_pwm_config() 266 pc->period_cycles[pwm->hwpwm] = period_cycles; in ehrpwm_pwm_config() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bcma/ |
| H A D | driver_pci.c | 20 u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) in bcma_pcie_read() argument 22 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); in bcma_pcie_read() 23 pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); in bcma_pcie_read() 24 return pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_DATA); in bcma_pcie_read() 27 static void bcma_pcie_write(struct bcma_drv_pci *pc, u32 address, u32 data) in bcma_pcie_write() argument 29 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); in bcma_pcie_write() 30 pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); in bcma_pcie_write() 31 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_DATA, data); in bcma_pcie_write() 34 static void bcma_pcie_mdio_set_phy(struct bcma_drv_pci *pc, u16 phy) in bcma_pcie_mdio_set_phy() argument 47 pcicore_write32(pc, BCMA_CORE_PCI_MDIO_DATA, v); in bcma_pcie_mdio_set_phy() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/bcm/ |
| H A D | pinctrl-bcm2835.c | 244 static inline u32 bcm2835_gpio_rd(struct bcm2835_pinctrl *pc, unsigned reg) in bcm2835_gpio_rd() argument 246 return readl(pc->base + reg); in bcm2835_gpio_rd() 249 static inline void bcm2835_gpio_wr(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_wr() argument 252 writel(val, pc->base + reg); in bcm2835_gpio_wr() 255 static inline int bcm2835_gpio_get_bit(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_get_bit() argument 259 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit() 263 static inline void bcm2835_gpio_set_bit(struct bcm2835_pinctrl *pc, in bcm2835_gpio_set_bit() argument 267 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit() 271 struct bcm2835_pinctrl *pc, unsigned pin) in bcm2835_pinctrl_fsel_get() argument 273 u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); in bcm2835_pinctrl_fsel_get() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ssb/ |
| H A D | driver_pcicore.c | 19 static u32 ssb_pcie_read(struct ssb_pcicore *pc, u32 address); 20 static void ssb_pcie_write(struct ssb_pcicore *pc, u32 address, u32 data); 21 static u16 ssb_pcie_mdio_read(struct ssb_pcicore *pc, u8 device, u8 address); 22 static void ssb_pcie_mdio_write(struct ssb_pcicore *pc, u8 device, 26 u32 pcicore_read32(struct ssb_pcicore *pc, u16 offset) in pcicore_read32() argument 28 return ssb_read32(pc->dev, offset); in pcicore_read32() 32 void pcicore_write32(struct ssb_pcicore *pc, u16 offset, u32 value) in pcicore_write32() argument 34 ssb_write32(pc->dev, offset, value); in pcicore_write32() 38 u16 pcicore_read16(struct ssb_pcicore *pc, u16 offset) in pcicore_read16() argument 40 return ssb_read16(pc->dev, offset); in pcicore_read16() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/dma/mediatek/ |
| H A D | mtk-cqdma.c | 93 * channel (PC) 94 * @queue: Queue for the PDs issued to this PC 95 * @base: The mapped register I/O base of this PC 96 * @irq: The IRQ that this PC are using 97 * @refcnt: Track how many VCs are using this PC 98 * @tasklet: Tasklet for this PC 99 * @lock: Lock protect agaisting multiple VCs access PC 110 /* lock to protect PC */ 118 * @pc: The pointer to the underlying PC 124 struct mtk_cqdma_pchan *pc; member [all …]
|