Home
last modified time | relevance | path

Searched refs:gpio_val (Results 1 – 25 of 28) sorted by relevance

12

/drivers/staging/bcm/
Dled_control.h21 unsigned int gpio_val = GPIO; \
23 wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)) : \
24 wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)); \
28 unsigned int gpio_val = GPIO; \
30 wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)) : \
31 wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)); \
/drivers/media/usb/cx231xx/
Dcx231xx-avcore.c2643 static int cx231xx_set_gpio_bit(struct cx231xx *dev, u32 gpio_bit, u32 gpio_val) in cx231xx_set_gpio_bit() argument
2647 gpio_val = cpu_to_le32(gpio_val); in cx231xx_set_gpio_bit()
2648 status = cx231xx_send_gpio_cmd(dev, gpio_bit, (u8 *)&gpio_val, 4, 0, 0); in cx231xx_set_gpio_bit()
2653 static int cx231xx_get_gpio_bit(struct cx231xx *dev, u32 gpio_bit, u32 *gpio_val) in cx231xx_get_gpio_bit() argument
2659 *gpio_val = le32_to_cpu(tmp); in cx231xx_get_gpio_bit()
2691 status = cx231xx_set_gpio_bit(dev, value, dev->gpio_val); in cx231xx_set_gpio_direction()
2725 dev->gpio_val); in cx231xx_set_gpio_value()
2730 value = dev->gpio_val & (~(1 << pin_number)); in cx231xx_set_gpio_value()
2732 value = dev->gpio_val | (1 << pin_number); in cx231xx_set_gpio_value()
2735 dev->gpio_val = value; in cx231xx_set_gpio_value()
[all …]
Dcx231xx.h699 u32 gpio_val; member
847 int cx231xx_send_gpio_cmd(struct cx231xx *dev, u32 gpio_bit, u8 *gpio_val,
Dcx231xx-core.c1423 int cx231xx_send_gpio_cmd(struct cx231xx *dev, u32 gpio_bit, u8 *gpio_val, in cx231xx_send_gpio_cmd() argument
1455 ven_req.pBuff = gpio_val; in cx231xx_send_gpio_cmd()
Dcx231xx-cards.c1133 dev->gpio_val = 0; in cx231xx_usb_probe()
/drivers/media/pci/cx18/
Dcx18-gpio.c55 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write()
57 u32 val_hi = cx->gpio_val >> 16; in gpio_write()
75 cx->gpio_val = (cx->gpio_val & ~mask) | (data & mask); in gpio_update()
114 cx->gpio_dir, cx->gpio_val); in gpiomux_log_status()
209 cx->gpio_dir, cx->gpio_val); in resetctrl_log_status()
268 cx->gpio_val = cx->card->gpio_init.initial_value; in cx18_gpio_init()
272 cx->gpio_val |= 1 << cx->card->xceive_pin; in cx18_gpio_init()
Dcx18-driver.h659 u32 gpio_val; member
Dcx18-ioctl.c1089 cx->gpio_dir, cx->gpio_val); in cx18_log_status()
/drivers/regulator/
Dmax8973-regulator.c121 int req_vsel, int *vout_reg, int *gpio_val) in find_voltage_set_register() argument
142 *gpio_val = new_vout_reg; in find_voltage_set_register()
169 int gpio_val = max->curr_gpio_val; in max8973_dcdc_set_voltage_sel() local
177 &vout_reg, &gpio_val); in max8973_dcdc_set_voltage_sel()
188 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
193 gpio_set_value_cansleep(max->dvs_gpio, gpio_val & 0x1); in max8973_dcdc_set_voltage_sel()
194 max->curr_gpio_val = gpio_val; in max8973_dcdc_set_voltage_sel()
/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c79 int gpio_val = !!gpio_get_value(arb->their_gpio); in i2c_arbitrator_select() local
81 if (gpio_val == arb->their_gpio_release) { in i2c_arbitrator_select()
/drivers/media/usb/dvb-usb/
Ddib0700_devices.c239 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
251 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
392 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
657 .gpio_val = DIB7000M_GPIO_DEFAULT_VALUES,
669 .gpio_val = DIB7000M_GPIO_DEFAULT_VALUES,
929 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
980 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
1135 .gpio_val = DIB8000_GPIO_DEFAULT_VALUES,
1152 .gpio_val = DIB8000_GPIO_DEFAULT_VALUES,
1454 .gpio_val = DIB8000_GPIO_DEFAULT_VALUES,
[all …]
Ddib0700.h58 …n int dib0700_set_gpio(struct dvb_usb_device *, enum dib07x0_gpios gpio, u8 gpio_dir, u8 gpio_val);
Ddib0700_core.c114 int dib0700_set_gpio(struct dvb_usb_device *d, enum dib07x0_gpios gpio, u8 gpio_dir, u8 gpio_val) in dib0700_set_gpio() argument
126 st->buf[2] = ((gpio_dir & 0x01) << 7) | ((gpio_val & 0x01) << 6); in dib0700_set_gpio()
Dcxusb.c1022 .gpio_val = 0x0110,
/drivers/media/dvb-frontends/
Ddib7000p.c58 u16 gpio_val; member
521 dprintk("gpio dir: %x: val: %x, pwm_pos: %x", st->gpio_dir, st->gpio_val, st->cfg.gpio_pwm_pos); in dib7000p_reset_gpio()
524 dib7000p_write_word(st, 1030, st->gpio_val); in dib7000p_reset_gpio()
541 st->gpio_val = dib7000p_read_word(st, 1030); in dib7000p_cfg_gpio()
542 st->gpio_val &= ~(1 << num); /* reset the direction bit */ in dib7000p_cfg_gpio()
543 st->gpio_val |= (val & 0x01) << num; /* set the new value */ in dib7000p_cfg_gpio()
544 dib7000p_write_word(st, 1030, st->gpio_val); in dib7000p_cfg_gpio()
2388 st->gpio_val = cfg->gpio_val; in dib7000p_attach()
Ddib7000m.h24 u16 gpio_val; member
Ddib7000p.h21 u16 gpio_val; member
Ddib9000.c62 u16 gpio_val; member
1752 st->gpio_val = dib9000_read_word(st, 774); in dib9000_cfg_gpio()
1753 st->gpio_val &= ~(1 << num); /* reset the direction bit */ in dib9000_cfg_gpio()
1754 st->gpio_val |= (val & 0x01) << num; /* set the new value */ in dib9000_cfg_gpio()
1755 dib9000_write_word(st, 774, st->gpio_val); in dib9000_cfg_gpio()
1757 dprintk("gpio dir: %04x: gpio val: %04x", st->gpio_dir, st->gpio_val); in dib9000_cfg_gpio()
2501 st->gpio_val = DIB9000_GPIO_DEFAULT_VALUES; in dib9000_attach()
Ddib8000.h19 u16 gpio_val; member
Ddib8000.c85 u16 gpio_val; member
801 dib8000_write_word(st, 1030, st->cfg.gpio_val); in dib8000_reset_gpio()
818 st->cfg.gpio_val = dib8000_read_word(st, 1030); in dib8000_cfg_gpio()
819 st->cfg.gpio_val &= ~(1 << num); /* reset the direction bit */ in dib8000_cfg_gpio()
820 st->cfg.gpio_val |= (val & 0x01) << num; /* set the new value */ in dib8000_cfg_gpio()
821 dib8000_write_word(st, 1030, st->cfg.gpio_val); in dib8000_cfg_gpio()
823 dprintk("gpio dir: %x: gpio val: %x", st->cfg.gpio_dir, st->cfg.gpio_val); in dib8000_cfg_gpio()
3927 state->gpio_val = cfg->gpio_val; in dib8000_attach()
Ddib7000m.c448 dib7000m_write_word(st, 774, st->cfg.gpio_val); in dib7000m_reset_gpio()
/drivers/net/wireless/ath/ath9k/
Dinit.c587 sc->sc_ah->gpio_val = pdata->gpio_val; in ath9k_init_softc()
Dhw.h877 u32 gpio_val; member
/drivers/media/pci/bt8xx/
Dbttv-driver.c1005 int gpio_val, signal, mute_gpio; in audio_mux_gpio() local
1016 gpio_val = bttv_tvcards[btv->c.type].gpiomute; in audio_mux_gpio()
1018 gpio_val = bttv_tvcards[btv->c.type].gpiomux[input]; in audio_mux_gpio()
1023 gpio_val = bttv_tda9880_setnorm(btv, gpio_val); in audio_mux_gpio()
1027 gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpio_val); in audio_mux_gpio()
/drivers/media/pci/cx23885/
Dcx23885-dvb.c410 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,

12