Home
last modified time | relevance | path

Searched refs:chip (Results 1 – 25 of 1247) sorted by relevance

12345678910>>...50

/drivers/staging/rts5208/
Drtsx_chip.c23 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() argument
25 rtsx_write_phy_register(chip, 0x1B, 0x135E); in rtsx_calibration()
27 rtsx_write_phy_register(chip, 0x00, 0x0280); in rtsx_calibration()
28 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
29 rtsx_write_phy_register(chip, 0x01, 0x7110); in rtsx_calibration()
30 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
31 rtsx_write_phy_register(chip, 0x01, 0x7113); in rtsx_calibration()
32 rtsx_write_phy_register(chip, 0x00, 0x0288); in rtsx_calibration()
35 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() argument
37 u32 reg = rtsx_readl(chip, RTSX_BIER); in rtsx_enable_card_int()
[all …]
Drtsx_card.c23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument
25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work()
27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work()
29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work()
31 if (chip->card_ready & SD_CARD) { in do_remaining_work()
33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
41 if (chip->card_ready & XD_CARD) { in do_remaining_work()
43 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
51 if (chip->card_ready & MS_CARD) { in do_remaining_work()
54 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
[all …]
Dspi.c19 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code() argument
21 struct spi_info *spi = &chip->spi; in spi_set_err_code()
26 static int spi_init(struct rtsx_chip *chip) in spi_init() argument
30 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init()
35 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init()
43 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para() argument
45 struct spi_info *spi = &chip->spi; in spi_set_init_para()
48 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para()
52 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, in spi_set_init_para()
57 retval = switch_clock(chip, spi->spi_clock); in spi_set_init_para()
[all …]
Dxd.c23 static int xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no);
24 static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff,
27 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) in xd_set_err_code() argument
29 struct xd_info *xd_card = &chip->xd_card; in xd_set_err_code()
34 static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code) in xd_check_err_code() argument
36 struct xd_info *xd_card = &chip->xd_card; in xd_check_err_code()
41 static int xd_set_init_para(struct rtsx_chip *chip) in xd_set_init_para() argument
43 struct xd_info *xd_card = &chip->xd_card; in xd_set_init_para()
46 if (chip->asic_code) in xd_set_init_para()
51 retval = switch_clock(chip, xd_card->xd_clock); in xd_set_init_para()
[all …]
Dsd.c46 static inline void sd_set_err_code(struct rtsx_chip *chip, u8 err_code) in sd_set_err_code() argument
48 struct sd_info *sd_card = &chip->sd_card; in sd_set_err_code()
53 static inline void sd_clr_err_code(struct rtsx_chip *chip) in sd_clr_err_code() argument
55 struct sd_info *sd_card = &chip->sd_card; in sd_clr_err_code()
60 static inline int sd_check_err_code(struct rtsx_chip *chip, u8 err_code) in sd_check_err_code() argument
62 struct sd_info *sd_card = &chip->sd_card; in sd_check_err_code()
67 static void sd_init_reg_addr(struct rtsx_chip *chip) in sd_init_reg_addr() argument
95 static int sd_check_data0_status(struct rtsx_chip *chip) in sd_check_data0_status() argument
100 retval = rtsx_read_register(chip, REG_SD_STAT1, &stat); in sd_check_data0_status()
105 sd_set_err_code(chip, SD_BUSY); in sd_check_data0_status()
[all …]
Drtsx.c125 struct rtsx_chip *chip = dev->chip; in queuecommand_lck() local
128 if (chip->srb) { in queuecommand_lck()
130 chip->srb); in queuecommand_lck()
135 if (rtsx_chk_stat(chip, RTSX_STAT_DISCONNECT)) { in queuecommand_lck()
144 chip->srb = srb; in queuecommand_lck()
161 struct rtsx_chip *chip = dev->chip; in DEF_SCSI_QCMD() local
168 if (chip->srb != srb) { in DEF_SCSI_QCMD()
174 rtsx_set_stat(chip, RTSX_STAT_ABORT); in DEF_SCSI_QCMD()
241 struct rtsx_chip *chip = dev->chip; in rtsx_acquire_irq() local
244 __func__, chip->msi_en, dev->pci->irq); in rtsx_acquire_irq()
[all …]
Drtsx_scsi.c22 void scsi_show_command(struct rtsx_chip *chip) in scsi_show_command() argument
24 struct scsi_cmnd *srb = chip->srb; in scsi_show_command()
304 dev_dbg(rtsx_dev(chip), "Command %s (%d bytes)\n", in scsi_show_command()
309 dev_dbg(rtsx_dev(chip), "%*ph\n", len, srb->cmnd); in scsi_show_command()
313 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) in set_sense_type() argument
317 set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0); in set_sense_type()
321 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0); in set_sense_type()
325 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0); in set_sense_type()
329 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0); in set_sense_type()
333 set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0); in set_sense_type()
[all …]
Dms.c20 static inline void ms_set_err_code(struct rtsx_chip *chip, u8 err_code) in ms_set_err_code() argument
22 struct ms_info *ms_card = &chip->ms_card; in ms_set_err_code()
27 static inline int ms_check_err_code(struct rtsx_chip *chip, u8 err_code) in ms_check_err_code() argument
29 struct ms_info *ms_card = &chip->ms_card; in ms_check_err_code()
34 static int ms_parse_err_code(struct rtsx_chip *chip) in ms_parse_err_code() argument
39 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_tpc() argument
42 struct ms_info *ms_card = &chip->ms_card; in ms_transfer_tpc()
46 dev_dbg(rtsx_dev(chip), "%s: tpc = 0x%x\n", __func__, tpc); in ms_transfer_tpc()
48 rtsx_init_cmd(chip); in ms_transfer_tpc()
50 rtsx_add_cmd(chip, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_tpc()
[all …]
/drivers/char/tpm/
Dtpm-chip.c35 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument
39 if (!chip->ops->request_locality) in tpm_request_locality()
42 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality()
46 chip->locality = rc; in tpm_request_locality()
50 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument
54 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality()
57 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality()
59 dev_err(&chip->dev, "%s: : error %d\n", __func__, rc); in tpm_relinquish_locality()
61 chip->locality = -1; in tpm_relinquish_locality()
64 static int tpm_cmd_ready(struct tpm_chip *chip) in tpm_cmd_ready() argument
[all …]
/drivers/usb/typec/tcpm/
Dfusb302.c127 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full() argument
129 return chip->logbuffer_tail == in fusb302_log_full()
130 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full()
134 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log() argument
141 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
142 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log()
144 if (!chip->logbuffer[chip->logbuffer_head]) in _fusb302_log()
150 mutex_lock(&chip->logbuffer_lock); in _fusb302_log()
152 if (fusb302_log_full(chip)) { in _fusb302_log()
153 chip->logbuffer_head = max(chip->logbuffer_head - 1, 0); in _fusb302_log()
[all …]
/drivers/mtd/nand/raw/
Dnand_legacy.c28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte() argument
30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte()
40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16() argument
42 return (uint8_t) cpu_to_le16(readw(chip->legacy.IO_ADDR_R)); in nand_read_byte16()
52 static void nand_select_chip(struct nand_chip *chip, int chipnr) in nand_select_chip() argument
56 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_select_chip()
74 static void nand_write_byte(struct nand_chip *chip, uint8_t byte) in nand_write_byte() argument
76 chip->legacy.write_buf(chip, &byte, 1); in nand_write_byte()
86 static void nand_write_byte16(struct nand_chip *chip, uint8_t byte) in nand_write_byte16() argument
106 chip->legacy.write_buf(chip, (uint8_t *)&word, 2); in nand_write_byte16()
[all …]
Dnand_base.c99 static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len) in check_offs_len() argument
104 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len()
110 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len()
171 void nand_select_target(struct nand_chip *chip, unsigned int cs) in nand_select_target() argument
177 if (WARN_ON(cs > nanddev_ntargets(&chip->base))) in nand_select_target()
180 chip->cur_cs = cs; in nand_select_target()
182 if (chip->legacy.select_chip) in nand_select_target()
183 chip->legacy.select_chip(chip, cs); in nand_select_target()
194 void nand_deselect_target(struct nand_chip *chip) in nand_deselect_target() argument
196 if (chip->legacy.select_chip) in nand_deselect_target()
[all …]
/drivers/misc/
Dapds990x.c186 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte() argument
188 struct i2c_client *client = chip->client; in apds990x_read_byte()
199 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word() argument
201 struct i2c_client *client = chip->client; in apds990x_read_word()
212 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte() argument
214 struct i2c_client *client = chip->client; in apds990x_write_byte()
224 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word() argument
226 struct i2c_client *client = chip->client; in apds990x_write_word()
236 static int apds990x_mode_on(struct apds990x_chip *chip) in apds990x_mode_on() argument
242 if (chip->prox_en) in apds990x_mode_on()
[all …]
Dbh1770glc.c179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control() argument
182 chip->int_mode_lux = lux; in bh1770_lux_interrupt_control()
184 return i2c_smbus_write_byte_data(chip->client, in bh1770_lux_interrupt_control()
186 (lux << 1) | chip->int_mode_prox); in bh1770_lux_interrupt_control()
189 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control() argument
192 chip->int_mode_prox = ps; in bh1770_prox_interrupt_control()
193 return i2c_smbus_write_byte_data(chip->client, in bh1770_prox_interrupt_control()
195 (chip->int_mode_lux << 1) | (ps << 0)); in bh1770_prox_interrupt_control()
199 static int bh1770_lux_rate(struct bh1770_chip *chip, int rate_index) in bh1770_lux_rate() argument
202 if (pm_runtime_suspended(&chip->client->dev)) in bh1770_lux_rate()
[all …]
Dpch_phub.c143 static void pch_phub_read_modify_write_reg(struct pch_phub_reg *chip, in pch_phub_read_modify_write_reg() argument
147 void __iomem *reg_addr = chip->pch_phub_base_address + reg_addr_offset; in pch_phub_read_modify_write_reg()
155 struct pch_phub_reg *chip = pci_get_drvdata(pdev); in pch_phub_save_reg_conf() local
157 void __iomem *p = chip->pch_phub_base_address; in pch_phub_save_reg_conf()
159 chip->phub_id_reg = ioread32(p + PCH_PHUB_ID_REG); in pch_phub_save_reg_conf()
160 chip->q_pri_val_reg = ioread32(p + PCH_PHUB_QUEUE_PRI_VAL_REG); in pch_phub_save_reg_conf()
161 chip->rc_q_maxsize_reg = ioread32(p + PCH_PHUB_RC_QUEUE_MAXSIZE_REG); in pch_phub_save_reg_conf()
162 chip->bri_q_maxsize_reg = ioread32(p + PCH_PHUB_BRI_QUEUE_MAXSIZE_REG); in pch_phub_save_reg_conf()
163 chip->comp_resp_timeout_reg = in pch_phub_save_reg_conf()
165 chip->bus_slave_control_reg = in pch_phub_save_reg_conf()
[all …]
/drivers/input/misc/
Dmax8997_haptic.c56 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_duty_cycle() argument
60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle()
61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle()
62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle()
68 if (chip->level <= i * 100 / 64) { in max8997_haptic_set_duty_cycle()
73 switch (chip->internal_mode_pattern) { in max8997_haptic_set_duty_cycle()
75 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
79 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
83 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
87 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
[all …]
/drivers/net/dsa/mv88e6xxx/
Dglobal2.c19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument
21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument
26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument
32 return mv88e6xxx_wait_bit(chip, chip->info->global2_addr, reg, in mv88e6xxx_g2_wait_bit()
38 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source() argument
41 return mv88e6xxx_g2_read(chip, MV88E6XXX_G2_INT_SRC, src); in mv88e6xxx_g2_int_source()
46 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask() argument
48 return mv88e6xxx_g2_write(chip, MV88E6XXX_G2_INT_MASK, mask); in mv88e6xxx_g2_int_mask()
[all …]
Dphy.c16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read() argument
19 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6165_phy_read()
22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write() argument
25 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6165_phy_write()
28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read() argument
33 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_read()
37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read()
40 return chip->info->ops->phy_read(chip, bus, addr, reg, val); in mv88e6xxx_phy_read()
43 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) in mv88e6xxx_phy_write() argument
48 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_write()
[all …]
Dglobal1.c16 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read() argument
18 int addr = chip->info->global1_addr; in mv88e6xxx_g1_read()
20 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6xxx_g1_read()
23 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write() argument
25 int addr = chip->info->global1_addr; in mv88e6xxx_g1_write()
27 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6xxx_g1_write()
30 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g1_wait_bit() argument
33 return mv88e6xxx_wait_bit(chip, chip->info->global1_addr, reg, in mv88e6xxx_g1_wait_bit()
37 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g1_wait_mask() argument
40 return mv88e6xxx_wait_mask(chip, chip->info->global1_addr, reg, in mv88e6xxx_g1_wait_mask()
[all …]
/drivers/gpio/
Dgpio-ml-ioh.c95 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_set() local
98 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_set()
99 reg_val = ioread32(&chip->reg->regs[chip->ch].po); in ioh_gpio_set()
105 iowrite32(reg_val, &chip->reg->regs[chip->ch].po); in ioh_gpio_set()
106 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_set()
111 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_get() local
113 return !!(ioread32(&chip->reg->regs[chip->ch].pi) & (1 << nr)); in ioh_gpio_get()
119 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_direction_output() local
124 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_direction_output()
125 pm = ioread32(&chip->reg->regs[chip->ch].pm) & in ioh_gpio_direction_output()
[all …]
Dgpio-xilinx.c51 static inline int xgpio_index(struct xgpio_instance *chip, int gpio) in xgpio_index() argument
53 if (gpio >= chip->gpio_width[0]) in xgpio_index()
59 static inline int xgpio_regoffset(struct xgpio_instance *chip, int gpio) in xgpio_regoffset() argument
61 if (xgpio_index(chip, gpio)) in xgpio_regoffset()
67 static inline int xgpio_offset(struct xgpio_instance *chip, int gpio) in xgpio_offset() argument
69 if (xgpio_index(chip, gpio)) in xgpio_offset()
70 return gpio - chip->gpio_width[0]; in xgpio_offset()
88 struct xgpio_instance *chip = gpiochip_get_data(gc); in xgpio_get() local
91 val = xgpio_readreg(chip->regs + XGPIO_DATA_OFFSET + in xgpio_get()
92 xgpio_regoffset(chip, gpio)); in xgpio_get()
[all …]
Dgpio-pch.c101 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_set() local
104 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set()
105 reg_val = ioread32(&chip->reg->po); in pch_gpio_set()
111 iowrite32(reg_val, &chip->reg->po); in pch_gpio_set()
112 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set()
117 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_get() local
119 return !!(ioread32(&chip->reg->pi) & BIT(nr)); in pch_gpio_get()
125 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_direction_output() local
130 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output()
132 reg_val = ioread32(&chip->reg->po); in pch_gpio_direction_output()
[all …]
/drivers/net/wireless/zydas/zd1211rw/
Dzd_chip.c22 void zd_chip_init(struct zd_chip *chip, in zd_chip_init() argument
26 memset(chip, 0, sizeof(*chip)); in zd_chip_init()
27 mutex_init(&chip->mutex); in zd_chip_init()
28 zd_usb_init(&chip->usb, hw, intf); in zd_chip_init()
29 zd_rf_init(&chip->rf); in zd_chip_init()
32 void zd_chip_clear(struct zd_chip *chip) in zd_chip_clear() argument
34 ZD_ASSERT(!mutex_is_locked(&chip->mutex)); in zd_chip_clear()
35 zd_usb_clear(&chip->usb); in zd_chip_clear()
36 zd_rf_clear(&chip->rf); in zd_chip_clear()
37 mutex_destroy(&chip->mutex); in zd_chip_clear()
[all …]
/drivers/usb/typec/
Dstusb160x.c240 static bool stusb160x_get_vconn(struct stusb160x *chip) in stusb160x_get_vconn() argument
245 ret = regmap_read(chip->regmap, STUSB160X_CC_CAPABILITY_CTRL, &val); in stusb160x_get_vconn()
247 dev_err(chip->dev, "Unable to get Vconn status: %d\n", ret); in stusb160x_get_vconn()
254 static int stusb160x_set_vconn(struct stusb160x *chip, bool on) in stusb160x_set_vconn() argument
259 if (chip->vconn_supply) { in stusb160x_set_vconn()
261 ret = regulator_enable(chip->vconn_supply); in stusb160x_set_vconn()
263 dev_err(chip->dev, in stusb160x_set_vconn()
269 regulator_disable(chip->vconn_supply); in stusb160x_set_vconn()
274 ret = regmap_update_bits(chip->regmap, STUSB160X_VCONN_MONITORING_CTRL, in stusb160x_set_vconn()
283 if (chip->vconn_supply && on) in stusb160x_set_vconn()
[all …]
/drivers/video/fbdev/riva/
Driva_hw.c62 RIVA_HW_INST *chip in nv3Busy() argument
65 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv3Busy()
66 NV_RD32(&chip->PGRAPH[0x000006B0/4], 0) & 0x01); in nv3Busy()
70 RIVA_HW_INST *chip in nv4Busy() argument
73 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv4Busy()
74 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv4Busy()
78 RIVA_HW_INST *chip in nv10Busy() argument
81 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv10Busy()
82 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv10Busy()
87 RIVA_HW_INST *chip, in vgaLockUnlock() argument
[all …]

12345678910>>...50