Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/sm750fb/
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 …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-xilinx.c47 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 …]
Dgpio-f7188x.c167 #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()
Dgpio-pl061.c42 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()
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
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 …]
Dcx231xx.h685 u32 gpio_dir; member
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
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()
Dcx18-driver.h646 u32 gpio_dir; member
Dcx18-ioctl.c1031 cx->gpio_dir, cx->gpio_val); in cx18_log_status()
/kernel/linux/linux-5.10/arch/mips/ar7/
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()
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
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()
/kernel/linux/linux-5.10/sound/pci/hda/
Dpatch_sigmatel.c183 unsigned int gpio_dir; member
333 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_capture_led_update()
389 spec->gpio_dir, spec->gpio_data); in stac_update_led_status()
427 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs()
549 spec->eapd_mask = spec->gpio_dir = spec->gpio_data = in stac_store_hints()
552 if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) in stac_store_hints()
553 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints()
1359 spec->gpio_mask = spec->gpio_dir = 0x09; in stac9200_fixup_panasonic()
1790 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref()
2181 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = in stac92hd83xxx_fixup_gpio10_eapd()
[all …]
Dpatch_cirrus.c26 unsigned int gpio_dir; member
313 spec->gpio_dir); in cs_init()
501 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_13()
513 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_23()
657 spec->gpio_mask = spec->gpio_dir = in cs4208_fixup_gpio0()
1074 spec->gpio_dir); in cs421x_init()
Dpatch_realtek.c86 unsigned int gpio_dir; member
219 spec->gpio_dir |= mask; in alc_setup_gpio()
255 AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir); in alc_write_gpio()
4365 spec->gpio_dir |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4396 spec->gpio_dir |= 0x01; in alc245_fixup_hp_x360_amp()
4431 spec->gpio_dir |= 0x04; in alc274_fixup_hp_envy_gpio()
4626 spec->gpio_dir |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
5708 spec->gpio_dir |= 0x40; in alc_fixup_headset_mode_dell_alc288()
6123 spec->gpio_dir |= 0x10; in alc280_fixup_hp_9480m()
6136 spec->gpio_dir |= 0x04; in alc275_fixup_gpio4_off()
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Ddib7000m.h21 u16 gpio_dir; member
Ddib7000p.h18 u16 gpio_dir; member
Ddib8000.h18 u16 gpio_dir; member
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()
Ddib9000.c65 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()
Ddib8000.c89 u16 gpio_dir; member
825 dib8000_write_word(st, 1029, st->cfg.gpio_dir); in dib8000_reset_gpio()
838 st->cfg.gpio_dir = dib8000_read_word(st, 1029); in dib8000_cfg_gpio()
839 st->cfg.gpio_dir &= ~(1 << num); /* reset the direction bit */ in dib8000_cfg_gpio()
840 st->cfg.gpio_dir |= (dir & 0x1) << num; /* set the new direction */ in dib8000_cfg_gpio()
841 dib8000_write_word(st, 1029, st->cfg.gpio_dir); in dib8000_cfg_gpio()
848 dprintk("gpio dir: %x: gpio val: %x\n", st->cfg.gpio_dir, st->cfg.gpio_val); in dib8000_cfg_gpio()
4462 state->gpio_dir = cfg->gpio_dir; in dib8000_init()
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Ddib0700.h58 u8 gpio_dir, u8 gpio_val);
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 …]
Ddib0700_core.c108 int dib0700_set_gpio(struct dvb_usb_device *d, enum dib07x0_gpios gpio, u8 gpio_dir, u8 gpio_val) in dib0700_set_gpio() argument
120 st->buf[2] = ((gpio_dir & 0x01) << 7) | ((gpio_val & 0x01) << 6); in dib0700_set_gpio()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-mcp2221.c99 u8 gpio_dir; member
665 if (mcp->gpio_dir == MCP2221_DIR_IN) in mcp_gpio_get_direction()
791 mcp->gpio_dir = data[mcp->gp_idx + 1]; in mcp2221_raw_event()
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_scsi.c2564 u8 gpio_dir; in spi_vendor_cmd() local
2581 rtsx_read_register(chip, CARD_GPIO_DIR, &gpio_dir); in spi_vendor_cmd()
2582 rtsx_write_register(chip, CARD_GPIO_DIR, 0x07, gpio_dir & 0x06); in spi_vendor_cmd()
2614 rtsx_write_register(chip, CARD_GPIO_DIR, 0x07, gpio_dir); in spi_vendor_cmd()
2620 rtsx_write_register(chip, CARD_GPIO_DIR, 0x07, gpio_dir); in spi_vendor_cmd()

12