Home
last modified time | relevance | path

Searched refs:gpio_dir (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/staging/sm750fb/
H A Dddk750_swi2c.c118 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 Dzaurus.c41 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 Dcx231xx-avcore.c2725 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 Dcx18-gpio.c40 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 Dgpio.c69 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 Dmxc_gpio.c80 l = readl(&regs->gpio_dir); in mxc_gpio_direction()
89 writel(l, &regs->gpio_dir); in mxc_gpio_direction()
170 val = readl(&regs->gpio_dir); in mxc_gpio_is_output()
180 l = readl(&regs->gpio_dir); in mxc_gpio_bank_direction()
189 writel(l, &regs->gpio_dir); in mxc_gpio_bank_direction()
/openbmc/linux/drivers/hid/
H A Dhid-mcp2200.c88 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 Dpvrusb2-debugifc.c138 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 Dgeneric.c226 writel(readl(&regs->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode()
227 &regs->port[port].gpio_dir); in imx_gpio_mode()
229 writel(readl(&regs->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode()
230 &regs->port[port].gpio_dir); in imx_gpio_mode()
/openbmc/linux/sound/pci/hda/
H A Dpatch_sigmatel.c183 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 Dpatch_cirrus.c27 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 Dpatch_cs8409.c1044 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 Dapf27.c62 u32 icr1, u32 icr2, u32 imr, u32 gpio_dir, u32 gpr, in apf27_port_init() argument
77 writel(gpio_dir, &regs->port[port].gpio_dir); in apf27_port_init()
/openbmc/u-boot/arch/arm/include/asm/arch-imx8/
H A Dgpio.h13 u32 gpio_dir; /* direction */ member
/openbmc/u-boot/arch/arm/include/asm/mach-imx/
H A Dgpio.h15 u32 gpio_dir; /* direction */ member
/openbmc/linux/drivers/gpio/
H A Dgpio-pl061.c43 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 Dgpio.h13 u32 gpio_dir; /* DDIR */ member
/openbmc/linux/drivers/media/dvb-frontends/
H A Ddib7000m.h21 u16 gpio_dir; member
H A Ddib7000p.h18 u16 gpio_dir; member
H A Ddib8000.h18 u16 gpio_dir; member
H A Ddib7000p.c62 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 Ddib0700.h58 u8 gpio_dir, u8 gpio_val);
H A Ddib0700_devices.c248 .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 Dgrf_rk3188.h15 struct rk3188_grf_gpio_lh gpio_dir[4]; member
/openbmc/u-boot/board/freescale/common/
H A Dqixis.h67 u8 gpio_dir[4]; member

12