/openbmc/linux/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 …]
|
/openbmc/qemu/hw/gpio/ |
H A D | zaurus.c | 41 uint32_t gpio_dir; member 68 level = s->gpio_level & s->gpio_dir; in scoop_gpio_handler_update() 101 return s->gpio_dir; in scoop_read() 146 s->gpio_dir = value; in scoop_write() 151 s->gpio_level = value & s->gpio_dir; in scoop_write() 198 level = s->gpio_level & s->gpio_dir; in scoop_post_load() 220 !(s->gpio_dir & 0xffff0000); in vmstate_scoop_validate() 232 VMSTATE_UINT32(gpio_dir, ScoopInfo),
|
/openbmc/linux/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 …]
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | mxc_gpio.c | 80 l = readl(®s->gpio_dir); in mxc_gpio_direction() 89 writel(l, ®s->gpio_dir); in mxc_gpio_direction() 170 val = readl(®s->gpio_dir); in mxc_gpio_is_output() 180 l = readl(®s->gpio_dir); in mxc_gpio_bank_direction() 189 writel(l, ®s->gpio_dir); in mxc_gpio_bank_direction()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-mcp2200.c | 88 u8 gpio_dir; member 194 return (mcp->gpio_dir & (MCP2200_DIR_IN << gpio_nr)) in mcp_get_direction() 205 unsigned long mask = ~(mcp->gpio_dir); /* only set outputs */ in mcp_set_direction() 221 conf->io_bmap = (mcp->gpio_dir & ~(1 << gpio_nr)) in mcp_set_direction() 237 mcp->gpio_dir = conf->io_bmap; in mcp_set_direction()
|
/openbmc/linux/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()
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
H A D | generic.c | 226 writel(readl(®s->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode() 227 ®s->port[port].gpio_dir); in imx_gpio_mode() 229 writel(readl(®s->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode() 230 ®s->port[port].gpio_dir); in imx_gpio_mode()
|
/openbmc/linux/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() 1799 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref() 2192 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = in stac92hd83xxx_fixup_gpio10_eapd() [all …]
|
H A D | patch_cirrus.c | 27 unsigned int gpio_dir; member 310 spec->gpio_dir); in cs_init() 502 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_13() 515 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_23() 660 spec->gpio_mask = spec->gpio_dir = in cs4208_fixup_gpio0() 1079 spec->gpio_dir); in cs421x_init()
|
H A D | patch_cs8409.c | 1044 spec->gpio_dir); in cs8409_cs42l42_hw_init() 1146 spec->gpio_dir = spec->scodecs[CS8409_CODEC0]->reset_gpio; in cs8409_cs42l42_fixups() 1181 spec->gpio_dir |= spec->speaker_pdn_gpio; in cs8409_cs42l42_fixups() 1290 spec->gpio_dir); in dolphin_hw_init() 1379 spec->gpio_dir = spec->scodecs[CS8409_CODEC0]->reset_gpio | in dolphin_fixups()
|
/openbmc/u-boot/board/armadeus/apf27/ |
H A D | apf27.c | 62 u32 icr1, u32 icr2, u32 imr, u32 gpio_dir, u32 gpr, in apf27_port_init() argument 77 writel(gpio_dir, ®s->port[port].gpio_dir); in apf27_port_init()
|
/openbmc/u-boot/arch/arm/include/asm/arch-imx8/ |
H A D | gpio.h | 13 u32 gpio_dir; /* direction */ member
|
/openbmc/u-boot/arch/arm/include/asm/mach-imx/ |
H A D | gpio.h | 15 u32 gpio_dir; /* direction */ member
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-pl061.c | 43 u8 gpio_dir; member 375 pl061->csave_regs.gpio_dir = readb(pl061->base + GPIODIR); in pl061_suspend() 382 if (pl061->csave_regs.gpio_dir & (BIT(offset))) in pl061_suspend() 396 if (pl061->csave_regs.gpio_dir & (BIT(offset))) in pl061_resume()
|
/openbmc/u-boot/arch/arm/include/asm/arch-mx27/ |
H A D | gpio.h | 13 u32 gpio_dir; /* DDIR */ member
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | dib0700.h | 58 u8 gpio_dir, u8 gpio_val);
|
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 …]
|
/openbmc/u-boot/arch/arm/include/asm/arch-rockchip/ |
H A D | grf_rk3188.h | 15 struct rk3188_grf_gpio_lh gpio_dir[4]; member
|
/openbmc/u-boot/board/freescale/common/ |
H A D | qixis.h | 67 u8 gpio_dir[4]; member
|