/drivers/gpu/drm/amd/display/dc/gpio/ |
D | gpio_base.c | 53 struct gpio *gpio, in dal_gpio_open() argument 56 return dal_gpio_open_ex(gpio, mode); in dal_gpio_open() 60 struct gpio *gpio, in dal_gpio_open_ex() argument 63 if (gpio->pin) { in dal_gpio_open_ex() 69 if (!gpio->hw_container.ddc) { in dal_gpio_open_ex() 73 gpio->mode = mode; in dal_gpio_open_ex() 75 return dal_gpio_service_open(gpio); in dal_gpio_open_ex() 79 const struct gpio *gpio, in dal_gpio_get_value() argument 82 if (!gpio->pin) { in dal_gpio_get_value() 87 return gpio->pin->funcs->get_value(gpio->pin, value); in dal_gpio_get_value() [all …]
|
/drivers/gpio/ |
D | Makefile | 15 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o 16 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o 19 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o 21 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o 22 obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o 23 obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o 24 obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o 25 obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o 26 obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o 27 obj-$(CONFIG_GPIO_ADP5520) += gpio-adp5520.o [all …]
|
D | gpio-regmap.c | 27 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base, 42 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() argument 46 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate() 47 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate() 49 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate() 57 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local 62 if (gpio->reg_dat_base) in gpio_regmap_get() 63 base = gpio_regmap_addr(gpio->reg_dat_base); in gpio_regmap_get() 65 base = gpio_regmap_addr(gpio->reg_set_base); in gpio_regmap_get() 67 ret = gpio->reg_mask_xlate(gpio, base, offset, ®, &mask); in gpio_regmap_get() [all …]
|
D | gpio-aspeed.c | 208 static inline void __iomem *bank_reg(struct aspeed_gpio *gpio, in bank_reg() argument 214 return gpio->base + bank->val_regs + GPIO_VAL_VALUE; in bank_reg() 216 return gpio->base + bank->rdata_reg; in bank_reg() 218 return gpio->base + bank->val_regs + GPIO_VAL_DIR; in bank_reg() 220 return gpio->base + bank->irq_regs + GPIO_IRQ_ENABLE; in bank_reg() 222 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE0; in bank_reg() 224 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE1; in bank_reg() 226 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE2; in bank_reg() 228 return gpio->base + bank->irq_regs + GPIO_IRQ_STATUS; in bank_reg() 230 return gpio->base + bank->debounce_regs + GPIO_DEBOUNCE_SEL1; in bank_reg() [all …]
|
D | gpio-pcf857x.c | 124 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local 127 mutex_lock(&gpio->lock); in pcf857x_input() 128 gpio->out |= (1 << offset); in pcf857x_input() 129 status = gpio->write(gpio->client, gpio->out); in pcf857x_input() 130 mutex_unlock(&gpio->lock); in pcf857x_input() 137 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local 140 value = gpio->read(gpio->client); in pcf857x_get() 146 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local 150 mutex_lock(&gpio->lock); in pcf857x_output() 152 gpio->out |= bit; in pcf857x_output() [all …]
|
D | gpio-dwapb.c | 105 struct dwapb_gpio *gpio; member 112 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio) 142 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument 144 if ((gpio->flags & GPIO_REG_OFFSET_MASK) == GPIO_REG_OFFSET_V2) in gpio_reg_convert() 150 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read() argument 152 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_read() 153 void __iomem *reg_base = gpio->regs; in dwapb_read() 155 return gc->read_reg(reg_base + gpio_reg_convert(gpio, offset)); in dwapb_read() 158 static inline void dwapb_write(struct dwapb_gpio *gpio, unsigned int offset, in dwapb_write() argument 161 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_write() [all …]
|
D | gpio-zynq.c | 163 static int zynq_gpio_is_zynq(struct zynq_gpio *gpio) in zynq_gpio_is_zynq() argument 165 return !!(gpio->p_data->quirks & ZYNQ_GPIO_QUIRK_IS_ZYNQ); in zynq_gpio_is_zynq() 174 static int gpio_data_ro_bug(struct zynq_gpio *gpio) in gpio_data_ro_bug() argument 176 return !!(gpio->p_data->quirks & GPIO_QUIRK_DATA_RO_BUG); in gpio_data_ro_bug() 194 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin() argument 198 for (bank = 0; bank < gpio->p_data->max_bank; bank++) { in zynq_gpio_get_bank_pin() 199 if ((pin_num >= gpio->p_data->bank_min[bank]) && in zynq_gpio_get_bank_pin() 200 (pin_num <= gpio->p_data->bank_max[bank])) { in zynq_gpio_get_bank_pin() 203 gpio->p_data->bank_min[bank]; in zynq_gpio_get_bank_pin() 206 if (gpio->p_data->quirks & GPIO_QUIRK_VERSAL) in zynq_gpio_get_bank_pin() [all …]
|
D | gpio-tegra186.c | 86 struct gpio_chip gpio; member 99 tegra186_gpio_get_port(struct tegra_gpio *gpio, unsigned int *pin) in tegra186_gpio_get_port() argument 103 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port() 104 const struct tegra_gpio_port *port = &gpio->soc->ports[i]; in tegra186_gpio_get_port() 117 static void __iomem *tegra186_gpio_get_base(struct tegra_gpio *gpio, in tegra186_gpio_get_base() argument 123 port = tegra186_gpio_get_port(gpio, &pin); in tegra186_gpio_get_base() 129 return gpio->base + offset + pin * 0x20; in tegra186_gpio_get_base() 135 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get_direction() local 139 base = tegra186_gpio_get_base(gpio, offset); in tegra186_gpio_get_direction() 153 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_input() local [all …]
|
D | gpio-aspeed-sgpio.c | 103 static void __iomem *bank_reg(struct aspeed_sgpio *gpio, in bank_reg() argument 109 return gpio->base + bank->val_regs + GPIO_VAL_VALUE; in bank_reg() 111 return gpio->base + bank->rdata_reg; in bank_reg() 113 return gpio->base + bank->irq_regs + GPIO_IRQ_ENABLE; in bank_reg() 115 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE0; in bank_reg() 117 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE1; in bank_reg() 119 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE2; in bank_reg() 121 return gpio->base + bank->irq_regs + GPIO_IRQ_STATUS; in bank_reg() 123 return gpio->base + bank->tolerance_regs; in bank_reg() 170 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); in aspeed_sgpio_get() local [all …]
|
D | gpio-pisosr.c | 36 static int pisosr_gpio_refresh(struct pisosr_gpio *gpio) in pisosr_gpio_refresh() argument 40 mutex_lock(&gpio->lock); in pisosr_gpio_refresh() 42 if (gpio->load_gpio) { in pisosr_gpio_refresh() 43 gpiod_set_value_cansleep(gpio->load_gpio, 1); in pisosr_gpio_refresh() 45 gpiod_set_value_cansleep(gpio->load_gpio, 0); in pisosr_gpio_refresh() 49 ret = spi_read(gpio->spi, gpio->buffer, gpio->buffer_size); in pisosr_gpio_refresh() 51 mutex_unlock(&gpio->lock); in pisosr_gpio_refresh() 79 struct pisosr_gpio *gpio = gpiochip_get_data(chip); in pisosr_gpio_get() local 82 pisosr_gpio_refresh(gpio); in pisosr_gpio_get() 84 return (gpio->buffer[offset / 8] >> (offset % 8)) & 0x1; in pisosr_gpio_get() [all …]
|
D | gpio-pca9570.c | 30 static int pca9570_read(struct pca9570 *gpio, u8 *value) in pca9570_read() argument 32 struct i2c_client *client = to_i2c_client(gpio->chip.parent); in pca9570_read() 43 static int pca9570_write(struct pca9570 *gpio, u8 value) in pca9570_write() argument 45 struct i2c_client *client = to_i2c_client(gpio->chip.parent); in pca9570_write() 59 struct pca9570 *gpio = gpiochip_get_data(chip); in pca9570_get() local 63 ret = pca9570_read(gpio, &buffer); in pca9570_get() 72 struct pca9570 *gpio = gpiochip_get_data(chip); in pca9570_set() local 76 mutex_lock(&gpio->lock); in pca9570_set() 78 buffer = gpio->out; in pca9570_set() 84 ret = pca9570_write(gpio, buffer); in pca9570_set() [all …]
|
D | gpio-raspberrypi-exp.c | 33 u32 gpio; member 42 u32 gpio; member 50 u32 gpio; member 56 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_polarity() local 60 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_get_polarity() 62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_polarity() 64 ret = rpi_firmware_property(gpio->fw, RPI_FIRMWARE_GET_GPIO_CONFIG, in rpi_exp_gpio_get_polarity() 66 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_polarity() 68 off, ret, get.gpio); in rpi_exp_gpio_get_polarity() 76 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_in() local [all …]
|
D | gpio-tqmx86.c | 57 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_get() local 59 return !!(tqmx86_gpio_read(gpio, TQMX86_GPIOD) & BIT(offset)); in tqmx86_gpio_get() 65 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_set() local 69 raw_spin_lock_irqsave(&gpio->spinlock, flags); in tqmx86_gpio_set() 70 val = tqmx86_gpio_read(gpio, TQMX86_GPIOD); in tqmx86_gpio_set() 75 tqmx86_gpio_write(gpio, val, TQMX86_GPIOD); in tqmx86_gpio_set() 76 raw_spin_unlock_irqrestore(&gpio->spinlock, flags); in tqmx86_gpio_set() 113 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_mask() local 120 raw_spin_lock_irqsave(&gpio->spinlock, flags); in tqmx86_gpio_irq_mask() 121 gpiic = tqmx86_gpio_read(gpio, TQMX86_GPIIC); in tqmx86_gpio_irq_mask() [all …]
|
D | gpio-da9052.c | 56 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_get() local 60 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get() 75 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get() 78 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get() 95 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_set() local 99 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_set() 104 dev_err(gpio->da9052->dev, in da9052_gpio_set() 108 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_set() 113 dev_err(gpio->da9052->dev, in da9052_gpio_set() 121 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_direction_input() local [all …]
|
D | gpio-wcove.c | 102 static inline int to_reg(int gpio, enum ctrl_register type) in to_reg() argument 106 if (gpio >= WCOVE_GPIO_NUM) in to_reg() 109 return reg + gpio; in to_reg() 112 static inline int to_ireg(int gpio, enum ctrl_register type, unsigned int *mask) in to_ireg() argument 116 if (gpio < GROUP0_NR_IRQS) { in to_ireg() 118 *mask = BIT(gpio); in to_ireg() 121 *mask = BIT(gpio - GROUP0_NR_IRQS); in to_ireg() 127 static void wcove_update_irq_mask(struct wcove_gpio *wg, irq_hw_number_t gpio) in wcove_update_irq_mask() argument 129 unsigned int mask, reg = to_ireg(gpio, IRQ_MASK, &mask); in wcove_update_irq_mask() 137 static void wcove_update_irq_ctrl(struct wcove_gpio *wg, irq_hw_number_t gpio) in wcove_update_irq_ctrl() argument [all …]
|
D | gpio-lp87565.c | 23 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get() local 26 ret = regmap_read(gpio->map, LP87565_REG_GPIO_IN, &val); in lp87565_gpio_get() 36 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_set() local 38 regmap_update_bits(gpio->map, LP87565_REG_GPIO_OUT, in lp87565_gpio_set() 45 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get_direction() local 48 ret = regmap_read(gpio->map, LP87565_REG_GPIO_CONFIG, &val); in lp87565_gpio_get_direction() 61 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_input() local 63 return regmap_update_bits(gpio->map, in lp87565_gpio_direction_input() 71 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_output() local 75 return regmap_update_bits(gpio->map, in lp87565_gpio_direction_output() [all …]
|
/drivers/gpu/drm/amd/display/include/ |
D | gpio_interface.h | 32 struct gpio; 36 struct gpio *gpio, 40 struct gpio *gpio, 45 const struct gpio *gpio, 50 const struct gpio *gpio, 55 const struct gpio *gpio); 59 struct gpio *gpio, 64 struct gpio *gpio); 68 struct gpio *gpio); 72 const struct gpio *gpio); [all …]
|
/drivers/ssb/ |
D | driver_gpio.c | 26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_to_irq() argument 31 return irq_find_mapping(bus->irq_domain, gpio); in ssb_gpio_to_irq() 41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_get_value() argument 45 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); in ssb_gpio_chipco_get_value() 48 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value() argument 53 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); in ssb_gpio_chipco_set_value() 57 unsigned int gpio) in ssb_gpio_chipco_direction_input() argument 61 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 0); in ssb_gpio_chipco_direction_input() 66 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output() argument 70 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 1 << gpio); in ssb_gpio_chipco_direction_output() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
D | base.c | 30 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive() argument 32 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive() 36 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense() argument 38 return gpio->func->sense(gpio, line); in nvkm_gpio_sense() 42 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument 44 if (gpio->func->reset) in nvkm_gpio_reset() 45 gpio->func->reset(gpio, func); in nvkm_gpio_reset() 49 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find() argument 52 struct nvkm_device *device = gpio->subdev.device; in nvkm_gpio_find() 81 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) in nvkm_gpio_set() argument [all …]
|
/drivers/mfd/ |
D | wm8350-gpio.c | 18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir() argument 26 1 << gpio); in gpio_set_dir() 30 1 << gpio); in gpio_set_dir() 35 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce() argument 39 1 << gpio); in wm8350_gpio_set_debounce() 42 WM8350_GPIO_DEBOUNCE, 1 << gpio); in wm8350_gpio_set_debounce() 45 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func() argument 50 switch (gpio) { in gpio_set_func() 138 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up() argument 143 1 << gpio); in gpio_set_pull_up() [all …]
|
/drivers/pinctrl/qcom/ |
D | pinctrl-qdf2xxx.c | 98 unsigned int gpio = gpios[i]; in qdf2xxx_pinctrl_probe() local 100 groups[gpio].npins = 1; in qdf2xxx_pinctrl_probe() 101 snprintf(names[i], NAME_SIZE, "gpio%u", gpio); in qdf2xxx_pinctrl_probe() 102 pins[gpio].name = names[i]; in qdf2xxx_pinctrl_probe() 103 groups[gpio].name = names[i]; in qdf2xxx_pinctrl_probe() 105 groups[gpio].ctl_reg = 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 106 groups[gpio].io_reg = 0x04 + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 107 groups[gpio].intr_cfg_reg = 0x08 + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 108 groups[gpio].intr_status_reg = 0x0c + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 109 groups[gpio].intr_target_reg = 0x08 + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() [all …]
|
/drivers/bcma/ |
D | driver_gpio.c | 22 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value() argument 26 return !!bcma_chipco_gpio_in(cc, 1 << gpio); in bcma_gpio_get_value() 29 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value() argument 34 bcma_chipco_gpio_out(cc, 1 << gpio, value ? 1 << gpio : 0); in bcma_gpio_set_value() 37 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input() argument 41 bcma_chipco_gpio_outen(cc, 1 << gpio, 0); in bcma_gpio_direction_input() 45 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output() argument 50 bcma_chipco_gpio_outen(cc, 1 << gpio, 1 << gpio); in bcma_gpio_direction_output() 51 bcma_chipco_gpio_out(cc, 1 << gpio, value ? 1 << gpio : 0); in bcma_gpio_direction_output() 55 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request() argument [all …]
|
/drivers/gpu/drm/gma500/ |
D | intel_gmbus.c | 103 static u32 get_reserved(struct intel_gpio *gpio) in get_reserved() argument 105 struct drm_psb_private *dev_priv = gpio->dev_priv; in get_reserved() 109 reserved = GMBUS_REG_READ(gpio->reg) & in get_reserved() 118 struct intel_gpio *gpio = data; in get_clock() local 119 struct drm_psb_private *dev_priv = gpio->dev_priv; in get_clock() 120 u32 reserved = get_reserved(gpio); in get_clock() 121 GMBUS_REG_WRITE(gpio->reg, reserved | GPIO_CLOCK_DIR_MASK); in get_clock() 122 GMBUS_REG_WRITE(gpio->reg, reserved); in get_clock() 123 return (GMBUS_REG_READ(gpio->reg) & GPIO_CLOCK_VAL_IN) != 0; in get_clock() 128 struct intel_gpio *gpio = data; in get_data() local [all …]
|
/drivers/pinctrl/bcm/ |
D | pinctrl-nsp-gpio.c | 94 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit() argument 106 val |= BIT(gpio); in nsp_set_bit() 108 val &= ~BIT(gpio); in nsp_set_bit() 118 unsigned int reg, unsigned gpio) in nsp_get_bit() argument 121 return !!(readl(chip->io_ctrl + reg) & BIT(gpio)); in nsp_get_bit() 123 return !!(readl(chip->base + reg) & BIT(gpio)); in nsp_get_bit() 158 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local 159 u32 val = BIT(gpio); in nsp_gpio_irq_ack() 177 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local 182 nsp_set_bit(chip, REG, NSP_GPIO_EVENT_INT_MASK, gpio, unmask); in nsp_gpio_irq_set_mask() [all …]
|
/drivers/net/wireless/ath/ath5k/ |
D | gpio.c | 106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input() argument 108 if (gpio >= AR5K_NUM_GPIO) in ath5k_hw_set_gpio_input() 112 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) in ath5k_hw_set_gpio_input() 113 | AR5K_GPIOCR_IN(gpio), AR5K_GPIOCR); in ath5k_hw_set_gpio_input() 124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_output() argument 126 if (gpio >= AR5K_NUM_GPIO) in ath5k_hw_set_gpio_output() 130 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) in ath5k_hw_set_gpio_output() 131 | AR5K_GPIOCR_OUT(gpio), AR5K_GPIOCR); in ath5k_hw_set_gpio_output() 142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_get_gpio() argument 144 if (gpio >= AR5K_NUM_GPIO) in ath5k_hw_get_gpio() [all …]
|