| /OK3568_Linux_fs/kernel/drivers/staging/sm750fb/ |
| H A D | ddk750_swi2c.c | 118 unsigned long gpio_dir; in sw_i2c_scl() local 120 gpio_dir = peek32(sw_i2c_clk_gpio_data_dir_reg); in sw_i2c_scl() 126 gpio_dir &= ~(1 << sw_i2c_clk_gpio); in sw_i2c_scl() 127 poke32(sw_i2c_clk_gpio_data_dir_reg, gpio_dir); in sw_i2c_scl() 135 gpio_dir |= (1 << sw_i2c_clk_gpio); in sw_i2c_scl() 136 poke32(sw_i2c_clk_gpio_data_dir_reg, gpio_dir); in sw_i2c_scl() 155 unsigned long gpio_dir; in sw_i2c_sda() local 157 gpio_dir = peek32(sw_i2c_data_gpio_data_dir_reg); in sw_i2c_sda() 163 gpio_dir &= ~(1 << sw_i2c_data_gpio); in sw_i2c_sda() 164 poke32(sw_i2c_data_gpio_data_dir_reg, gpio_dir); in sw_i2c_sda() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-xilinx.c | 47 u32 gpio_dir[2]; member 193 chip->gpio_dir[index] |= BIT(offset); in xgpio_dir_in() 195 xgpio_regoffset(chip, gpio), chip->gpio_dir[index]); in xgpio_dir_in() 232 chip->gpio_dir[index] &= ~BIT(offset); in xgpio_dir_out() 234 xgpio_regoffset(chip, gpio), chip->gpio_dir[index]); in xgpio_dir_out() 248 xgpio_writereg(chip->regs + XGPIO_TRI_OFFSET, chip->gpio_dir[0]); in xgpio_save_regs() 256 chip->gpio_dir[1]); in xgpio_save_regs() 284 if (of_property_read_u32(np, "xlnx,tri-default", &chip->gpio_dir[0])) in xgpio_probe() 285 chip->gpio_dir[0] = 0xFFFFFFFF; in xgpio_probe() 306 &chip->gpio_dir[1])) in xgpio_probe() [all …]
|
| H A D | gpio-f7188x.c | 167 #define gpio_dir(base) (base + 0) macro 269 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_get_direction() 291 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_direction_in() 293 superio_outb(sio->addr, gpio_dir(bank->regbase), dir); in f7188x_gpio_direction_in() 312 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_get() 344 dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); in f7188x_gpio_direction_out() 346 superio_outb(sio->addr, gpio_dir(bank->regbase), dir); in f7188x_gpio_direction_out()
|
| H A D | gpio-pl061.c | 42 u8 gpio_dir; member 360 pl061->csave_regs.gpio_dir = readb(pl061->base + GPIODIR); in pl061_suspend() 367 if (pl061->csave_regs.gpio_dir & (BIT(offset))) in pl061_suspend() 381 if (pl061->csave_regs.gpio_dir & (BIT(offset))) in pl061_resume()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/cx231xx/ |
| H A D | cx231xx-avcore.c | 2725 value = dev->gpio_dir & (~(1 << pin_number)); /* clear */ in cx231xx_set_gpio_direction() 2727 value = dev->gpio_dir | (1 << pin_number); in cx231xx_set_gpio_direction() 2732 dev->gpio_dir = value; in cx231xx_set_gpio_direction() 2758 if ((dev->gpio_dir & (1 << pin_number)) == 0x00) { in cx231xx_set_gpio_value() 2760 value = dev->gpio_dir | (1 << pin_number); in cx231xx_set_gpio_value() 2761 dev->gpio_dir = value; in cx231xx_set_gpio_value() 2762 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, in cx231xx_set_gpio_value() 2776 status = cx231xx_set_gpio_bit(dev, dev->gpio_dir, dev->gpio_val); in cx231xx_set_gpio_value() 2789 dev->gpio_dir |= 1 << dev->board.tuner_scl_gpio; in cx231xx_gpio_i2c_start() 2790 dev->gpio_dir |= 1 << dev->board.tuner_sda_gpio; in cx231xx_gpio_i2c_start() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx18/ |
| H A D | cx18-gpio.c | 40 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write() 42 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write() 100 cx->gpio_dir, cx->gpio_val); in gpiomux_log_status() 199 cx->gpio_dir, cx->gpio_val); in resetctrl_log_status() 257 cx->gpio_dir = cx->card->gpio_init.direction; in cx18_gpio_init() 261 cx->gpio_dir |= 1 << cx->card->xceive_pin; in cx18_gpio_init() 265 if (cx->gpio_dir == 0) { in cx18_gpio_init()
|
| /OK3568_Linux_fs/kernel/arch/mips/ar7/ |
| H A D | gpio.c | 69 void __iomem *gpio_dir = gpch->regs + AR7_GPIO_DIR; in ar7_gpio_direction_input() local 71 writel(readl(gpio_dir) | (1 << gpio), gpio_dir); in ar7_gpio_direction_input() 94 void __iomem *gpio_dir = gpch->regs + AR7_GPIO_DIR; in ar7_gpio_direction_output() local 97 writel(readl(gpio_dir) & ~(1 << gpio), gpio_dir); in ar7_gpio_direction_output()
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | mxc_gpio.c | 75 l = readl(®s->gpio_dir); in mxc_gpio_direction() 84 writel(l, ®s->gpio_dir); in mxc_gpio_direction() 167 val = readl(®s->gpio_dir); in mxc_gpio_is_output() 177 l = readl(®s->gpio_dir); in mxc_gpio_bank_direction() 186 writel(l, ®s->gpio_dir); in mxc_gpio_bank_direction()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-debugifc.c | 138 u32 gpio_dir,gpio_in,gpio_out; in pvr2_debugifc_print_status() local 147 gpio_dir = 0; gpio_in = 0; gpio_out = 0; in pvr2_debugifc_print_status() 148 pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); in pvr2_debugifc_print_status() 152 gpio_dir,gpio_in,gpio_out); in pvr2_debugifc_print_status()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
| H A D | generic.c | 227 writel(readl(®s->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode() 228 ®s->port[port].gpio_dir); in imx_gpio_mode() 230 writel(readl(®s->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode() 231 ®s->port[port].gpio_dir); in imx_gpio_mode()
|
| /OK3568_Linux_fs/kernel/sound/pci/hda/ |
| H A D | patch_sigmatel.c | 183 unsigned int gpio_dir; member 334 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_capture_led_update() 390 spec->gpio_dir, spec->gpio_data); in stac_update_led_status() 428 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs() 550 spec->eapd_mask = spec->gpio_dir = spec->gpio_data = in stac_store_hints() 553 if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) in stac_store_hints() 554 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints() 1360 spec->gpio_mask = spec->gpio_dir = 0x09; in stac9200_fixup_panasonic() 1791 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref() 2182 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = in stac92hd83xxx_fixup_gpio10_eapd() [all …]
|
| H A D | patch_cirrus.c | 26 unsigned int gpio_dir; member 313 spec->gpio_dir); in cs_init() 502 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_13() 514 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_23() 658 spec->gpio_mask = spec->gpio_dir = in cs4208_fixup_gpio0() 1075 spec->gpio_dir); in cs421x_init()
|
| /OK3568_Linux_fs/u-boot/board/armadeus/apf27/ |
| H A D | apf27.c | 63 u32 icr1, u32 icr2, u32 imr, u32 gpio_dir, u32 gpr, in apf27_port_init() argument 78 writel(gpio_dir, ®s->port[port].gpio_dir); in apf27_port_init()
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/mach-imx/ |
| H A D | gpio.h | 16 u32 gpio_dir; /* direction */ member
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-mx27/ |
| H A D | gpio.h | 14 u32 gpio_dir; /* DDIR */ member
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb/ |
| H A D | dib0700_devices.c | 248 .gpio_dir = DIB7000P_GPIO_DEFAULT_DIRECTIONS, 260 .gpio_dir = DIB7000P_GPIO_DEFAULT_DIRECTIONS, 414 .gpio_dir = DIB7000P_GPIO_DEFAULT_DIRECTIONS, 684 .gpio_dir = DIB7000M_GPIO_DEFAULT_DIRECTIONS, 696 .gpio_dir = DIB7000M_GPIO_DEFAULT_DIRECTIONS, 976 .gpio_dir = DIB7000P_GPIO_DEFAULT_DIRECTIONS, 1033 .gpio_dir = DIB7000P_GPIO_DEFAULT_DIRECTIONS, 1202 .gpio_dir = DIB8000_GPIO_DEFAULT_DIRECTIONS, 1219 .gpio_dir = DIB8000_GPIO_DEFAULT_DIRECTIONS, 1563 .gpio_dir = DIB8000_GPIO_DEFAULT_DIRECTIONS, [all …]
|
| H A D | dib0700.h | 58 u8 gpio_dir, u8 gpio_val);
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | dib7000m.h | 21 u16 gpio_dir; member
|
| H A D | dib7000p.h | 18 u16 gpio_dir; member
|
| H A D | dib8000.h | 18 u16 gpio_dir; member
|
| H A D | dib7000p.c | 62 u16 gpio_dir; member 528 dprintk("gpio dir: %x: val: %x, pwm_pos: %x\n", st->gpio_dir, st->gpio_val, st->cfg.gpio_pwm_pos); in dib7000p_reset_gpio() 530 dib7000p_write_word(st, 1029, st->gpio_dir); in dib7000p_reset_gpio() 543 st->gpio_dir = dib7000p_read_word(st, 1029); in dib7000p_cfg_gpio() 544 st->gpio_dir &= ~(1 << num); /* reset the direction bit */ in dib7000p_cfg_gpio() 545 st->gpio_dir |= (dir & 0x1) << num; /* set the new direction */ in dib7000p_cfg_gpio() 546 dib7000p_write_word(st, 1029, st->gpio_dir); in dib7000p_cfg_gpio() 2749 st->gpio_dir = cfg->gpio_dir; in dib7000p_init()
|
| H A D | dib9000.c | 65 u16 gpio_dir; member 1756 st->gpio_dir = dib9000_read_word(st, 773); in dib9000_cfg_gpio() 1757 st->gpio_dir &= ~(1 << num); /* reset the direction bit */ in dib9000_cfg_gpio() 1758 st->gpio_dir |= (dir & 0x1) << num; /* set the new direction */ in dib9000_cfg_gpio() 1759 dib9000_write_word(st, 773, st->gpio_dir); in dib9000_cfg_gpio() 1766 dprintk("gpio dir: %04x: gpio val: %04x\n", st->gpio_dir, st->gpio_val); in dib9000_cfg_gpio() 2492 st->gpio_dir = DIB9000_GPIO_DEFAULT_DIRECTIONS; in dib9000_attach()
|
| /OK3568_Linux_fs/u-boot/board/freescale/common/ |
| H A D | qixis.h | 68 u8 gpio_dir[4]; member
|
| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A D | hid-mcp2221.c | 99 u8 gpio_dir; member 668 if (mcp->gpio_dir == MCP2221_DIR_IN) in mcp_gpio_get_direction() 794 mcp->gpio_dir = data[mcp->gp_idx + 1]; in mcp2221_raw_event()
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-rockchip/ |
| H A D | grf_rk3188.h | 16 struct rk3188_grf_gpio_lh gpio_dir[4]; member
|