Home
last modified time | relevance | path

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

12

/drivers/media/usb/cx231xx/
Dcx231xx-avcore.c2670 static int cx231xx_set_gpio_bit(struct cx231xx *dev, u32 gpio_bit, u32 gpio_val) in cx231xx_set_gpio_bit() argument
2674 gpio_val = (__force u32)cpu_to_le32(gpio_val); in cx231xx_set_gpio_bit()
2675 status = cx231xx_send_gpio_cmd(dev, gpio_bit, (u8 *)&gpio_val, 4, 0, 0); in cx231xx_set_gpio_bit()
2680 static int cx231xx_get_gpio_bit(struct cx231xx *dev, u32 gpio_bit, u32 *gpio_val) in cx231xx_get_gpio_bit() argument
2686 *gpio_val = le32_to_cpu(tmp); in cx231xx_get_gpio_bit()
2718 status = cx231xx_set_gpio_bit(dev, value, dev->gpio_val); in cx231xx_set_gpio_direction()
2752 dev->gpio_val); in cx231xx_set_gpio_value()
2757 value = dev->gpio_val & (~(1 << pin_number)); in cx231xx_set_gpio_value()
2759 value = dev->gpio_val | (1 << pin_number); in cx231xx_set_gpio_value()
2762 dev->gpio_val = value; in cx231xx_set_gpio_value()
[all …]
Dcx231xx.h711 u32 gpio_val; member
862 int cx231xx_send_gpio_cmd(struct cx231xx *dev, u32 gpio_bit, u8 *gpio_val,
Dcx231xx-core.c1486 int cx231xx_send_gpio_cmd(struct cx231xx *dev, u32 gpio_bit, u8 *gpio_val, in cx231xx_send_gpio_cmd() argument
1518 ven_req.pBuff = gpio_val; in cx231xx_send_gpio_cmd()
/drivers/media/pci/cx18/
Dcx18-gpio.c50 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write()
52 u32 val_hi = cx->gpio_val >> 16; in gpio_write()
70 cx->gpio_val = (cx->gpio_val & ~mask) | (data & mask); in gpio_update()
109 cx->gpio_dir, cx->gpio_val); in gpiomux_log_status()
208 cx->gpio_dir, cx->gpio_val); in resetctrl_log_status()
267 cx->gpio_val = cx->card->gpio_init.initial_value; in cx18_gpio_init()
271 cx->gpio_val |= 1 << cx->card->xceive_pin; in cx18_gpio_init()
Dcx18-driver.h656 u32 gpio_val; member
/drivers/iio/dac/
Dad5592r-base.c35 val = st->gpio_val; in ad5592r_gpio_get()
54 st->gpio_val |= BIT(offset); in ad5592r_gpio_set()
56 st->gpio_val &= ~BIT(offset); in ad5592r_gpio_set()
58 st->ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_gpio_set()
94 st->gpio_val |= BIT(offset); in ad5592r_gpio_direction_output()
96 st->gpio_val &= ~BIT(offset); in ad5592r_gpio_direction_output()
101 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_gpio_direction_output()
240 st->gpio_val |= BIT(i); in ad5592r_set_channel_modes()
272 ret = ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_set_channel_modes()
Dad5592r-base.h66 u8 gpio_val; member
/drivers/regulator/
Dmax8973-regulator.c146 int req_vsel, int *vout_reg, int *gpio_val) in find_voltage_set_register() argument
167 *gpio_val = new_vout_reg; in find_voltage_set_register()
194 int gpio_val = max->curr_gpio_val; in max8973_dcdc_set_voltage_sel() local
202 &vout_reg, &gpio_val); in max8973_dcdc_set_voltage_sel()
213 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
218 gpio_set_value_cansleep(max->dvs_gpio, gpio_val & 0x1); in max8973_dcdc_set_voltage_sel()
219 max->curr_gpio_val = gpio_val; in max8973_dcdc_set_voltage_sel()
/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c73 int gpio_val = !!gpio_get_value(arb->their_gpio); in i2c_arbitrator_select() local
75 if (gpio_val == arb->their_gpio_release) { in i2c_arbitrator_select()
/drivers/media/usb/dvb-usb/
Ddib0700_devices.c249 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
261 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
415 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
685 .gpio_val = DIB7000M_GPIO_DEFAULT_VALUES,
697 .gpio_val = DIB7000M_GPIO_DEFAULT_VALUES,
977 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
1034 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
1203 .gpio_val = DIB8000_GPIO_DEFAULT_VALUES,
1220 .gpio_val = DIB8000_GPIO_DEFAULT_VALUES,
1564 .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.c111 int dib0700_set_gpio(struct dvb_usb_device *d, enum dib07x0_gpios gpio, u8 gpio_dir, u8 gpio_val) in dib0700_set_gpio() argument
123 st->buf[2] = ((gpio_dir & 0x01) << 7) | ((gpio_val & 0x01) << 6); in dib0700_set_gpio()
/drivers/media/dvb-frontends/
Ddib7000m.h23 u16 gpio_val; member
Ddib7000p.h20 u16 gpio_val; member
Ddib8000.h20 u16 gpio_val; member
Ddib7000p.c66 u16 gpio_val; member
531 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()
534 dib7000p_write_word(st, 1030, st->gpio_val); in dib7000p_reset_gpio()
551 st->gpio_val = dib7000p_read_word(st, 1030); in dib7000p_cfg_gpio()
552 st->gpio_val &= ~(1 << num); /* reset the direction bit */ in dib7000p_cfg_gpio()
553 st->gpio_val |= (val & 0x01) << num; /* set the new value */ in dib7000p_cfg_gpio()
554 dib7000p_write_word(st, 1030, st->gpio_val); in dib7000p_cfg_gpio()
2745 st->gpio_val = cfg->gpio_val; in dib7000p_init()
Ddib9000.c70 u16 gpio_val; member
1764 st->gpio_val = dib9000_read_word(st, 774); in dib9000_cfg_gpio()
1765 st->gpio_val &= ~(1 << num); /* reset the direction bit */ in dib9000_cfg_gpio()
1766 st->gpio_val |= (val & 0x01) << num; /* set the new value */ in dib9000_cfg_gpio()
1767 dib9000_write_word(st, 774, st->gpio_val); in dib9000_cfg_gpio()
1769 dprintk("gpio dir: %04x: gpio val: %04x\n", st->gpio_dir, st->gpio_val); in dib9000_cfg_gpio()
2496 st->gpio_val = DIB9000_GPIO_DEFAULT_VALUES; in dib9000_attach()
Ddib8000.c93 u16 gpio_val; member
829 dib8000_write_word(st, 1030, st->cfg.gpio_val); in dib8000_reset_gpio()
846 st->cfg.gpio_val = dib8000_read_word(st, 1030); in dib8000_cfg_gpio()
847 st->cfg.gpio_val &= ~(1 << num); /* reset the direction bit */ in dib8000_cfg_gpio()
848 st->cfg.gpio_val |= (val & 0x01) << num; /* set the new value */ in dib8000_cfg_gpio()
849 dib8000_write_word(st, 1030, st->cfg.gpio_val); in dib8000_cfg_gpio()
851 dprintk("gpio dir: %x: gpio val: %x\n", st->cfg.gpio_dir, st->cfg.gpio_val); in dib8000_cfg_gpio()
4440 state->gpio_val = cfg->gpio_val; in dib8000_init()
/drivers/net/ethernet/intel/i40e/
Di40e_common.c1420 u32 gpio_val = 0; in i40e_led_is_mine() local
1426 gpio_val = rd32(hw, I40E_GLGEN_GPIO_CTL(idx)); in i40e_led_is_mine()
1427 port = (gpio_val & I40E_GLGEN_GPIO_CTL_PRT_NUM_MASK) >> in i40e_led_is_mine()
1433 if ((gpio_val & I40E_GLGEN_GPIO_CTL_PRT_NUM_NA_MASK) || in i40e_led_is_mine()
1437 return gpio_val; in i40e_led_is_mine()
1465 u32 gpio_val = i40e_led_is_mine(hw, i); in i40e_led_get() local
1467 if (!gpio_val) in i40e_led_get()
1473 current_mode = ((gpio_val & I40E_GLGEN_GPIO_CTL_LED_MODE_MASK) in i40e_led_get()
1484 mode = (gpio_val & I40E_GLGEN_GPIO_CTL_LED_MODE_MASK) >> in i40e_led_get()
1513 u32 gpio_val = i40e_led_is_mine(hw, i); in i40e_led_set() local
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramnv50.c196 u32 reg, sh, gpio_val; in nv50_ram_gpio() local
206 gpio_val = ram_rd32(hwsq, gpio[reg]); in nv50_ram_gpio()
208 if (gpio_val & (8 << sh)) in nv50_ram_gpio()
Dramgt215.c470 u32 reg, sh, gpio_val; in gt215_ram_gpio() local
480 gpio_val = ram_rd32(fuc, gpio[reg]); in gt215_ram_gpio()
481 if (gpio_val & (8 << sh)) in gt215_ram_gpio()
/drivers/net/wireless/ath/ath9k/
Dinit.c529 ah->gpio_val = pdata->gpio_val; in ath9k_init_platform()
Dhw.h905 u32 gpio_val; member
/drivers/media/pci/bt8xx/
Dbttv-driver.c1003 int gpio_val, signal, mute_gpio; in audio_mux_gpio() local
1014 gpio_val = bttv_tvcards[btv->c.type].gpiomute; in audio_mux_gpio()
1016 gpio_val = bttv_tvcards[btv->c.type].gpiomux[input]; in audio_mux_gpio()
1021 gpio_val = bttv_tda9880_setnorm(btv, gpio_val); in audio_mux_gpio()
1025 gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpio_val); in audio_mux_gpio()
/drivers/media/pci/cx23885/
Dcx23885-dvb.c451 .gpio_val = DIB7000P_GPIO_DEFAULT_VALUES,
1070 .gpio_val = 0x0110, /* DIB7000P_GPIO_DEFAULT_VALUES, */

12