Searched defs:chip (Results 1 - 25 of 485) sorted by relevance

1234567891011>>

/drivers/staging/rts5208/
H A Drtsx_transport.h39 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip);
42 #define rtsx_init_cmd(chip) ((chip)->ci = 0)
44 void rtsx_add_cmd(struct rtsx_chip *chip,
46 void rtsx_send_cmd_no_wait(struct rtsx_chip *chip);
47 int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout);
49 extern inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip) argument
52 return (u8 *)(chip->host_sg_tbl_ptr);
54 return (u8 *)(chip->host_cmds_ptr);
58 int rtsx_transfer_data(struct rtsx_chip *chip, u
[all...]
H A Drtsx_sys.h33 static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip) argument
35 struct rtsx_dev *dev = chip->rtsx;
38 rtsx_enter_ss(chip);
42 static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag) argument
44 rtsx_reset_cards(chip);
/drivers/dma/dw/
H A Dpci.c26 struct dw_dma_chip *chip; local
51 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL);
52 if (!chip)
55 chip->dev = &pdev->dev;
56 chip->regs = pcim_iomap_table(pdev)[0];
57 chip->irq = pdev->irq;
59 ret = dw_dma_probe(chip, pdata);
63 pci_set_drvdata(pdev, chip);
70 struct dw_dma_chip *chip local
83 struct dw_dma_chip *chip = pci_get_drvdata(pci); local
91 struct dw_dma_chip *chip = pci_get_drvdata(pci); local
[all...]
/drivers/gpio/
H A Dgpio-sa1100.c17 static int sa1100_gpio_get(struct gpio_chip *chip, unsigned offset) argument
22 static void sa1100_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
30 static int sa1100_direction_input(struct gpio_chip *chip, unsigned offset) argument
40 static int sa1100_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
45 sa1100_gpio_set(chip, offset, value);
51 static int sa1100_to_irq(struct gpio_chip *chip, unsigned offset) argument
H A Dgpio-twl6040.c2 * Access to GPOs on TWL6040 chip
37 static int twl6040gpo_get(struct gpio_chip *chip, unsigned offset) argument
39 struct twl6040 *twl6040 = dev_get_drvdata(chip->dev->parent);
49 static int twl6040gpo_direction_out(struct gpio_chip *chip, unsigned offset, argument
56 static void twl6040gpo_set(struct gpio_chip *chip, unsigned offset, int value) argument
58 struct twl6040 *twl6040 = dev_get_drvdata(chip->dev->parent);
H A Dgpio-arizona.c31 static inline struct arizona_gpio *to_arizona_gpio(struct gpio_chip *chip) argument
33 return container_of(chip, struct arizona_gpio, gpio_chip);
36 static int arizona_gpio_direction_in(struct gpio_chip *chip, unsigned offset) argument
38 struct arizona_gpio *arizona_gpio = to_arizona_gpio(chip);
45 static int arizona_gpio_get(struct gpio_chip *chip, unsigned offset) argument
47 struct arizona_gpio *arizona_gpio = to_arizona_gpio(chip);
62 static int arizona_gpio_direction_out(struct gpio_chip *chip, argument
65 struct arizona_gpio *arizona_gpio = to_arizona_gpio(chip);
75 static void arizona_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
77 struct arizona_gpio *arizona_gpio = to_arizona_gpio(chip);
[all...]
H A Dgpio-74x164.c34 static int __gen_74x164_write_config(struct gen_74x164_chip *chip) argument
36 struct spi_device *spi = to_spi_device(chip->gpio_chip.dev);
41 msg_buf = kzalloc(chip->registers * sizeof(struct spi_transfer),
56 for (i = chip->registers - 1; i >= 0; i--) {
57 msg_buf[i].tx_buf = chip->buffer + i;
71 struct gen_74x164_chip *chip = gpio_to_74x164_chip(gc); local
76 mutex_lock(&chip->lock);
77 ret = (chip->buffer[bank] >> pin) & 0x1;
78 mutex_unlock(&chip->lock);
86 struct gen_74x164_chip *chip local
109 struct gen_74x164_chip *chip; local
169 struct gen_74x164_chip *chip = spi_get_drvdata(spi); local
[all...]
H A Dgpio-adp5520.c25 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) argument
30 dev = container_of(chip, struct adp5520_gpio, gpio_chip);
45 static void adp5520_gpio_set_value(struct gpio_chip *chip, argument
49 dev = container_of(chip, struct adp5520_gpio, gpio_chip);
57 static int adp5520_gpio_direction_input(struct gpio_chip *chip, unsigned off) argument
60 dev = container_of(chip, struct adp5520_gpio, gpio_chip);
68 static int adp5520_gpio_direction_output(struct gpio_chip *chip, argument
73 dev = container_of(chip, struct adp5520_gpio, gpio_chip);
H A Dgpio-ge.c36 static void gef_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
38 struct of_mm_gpio_chip *mmchip = to_of_mm_gpio_chip(chip);
49 static int gef_gpio_dir_in(struct gpio_chip *chip, unsigned offset) argument
52 struct of_mm_gpio_chip *mmchip = to_of_mm_gpio_chip(chip);
61 static int gef_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int value) argument
64 struct of_mm_gpio_chip *mmchip = to_of_mm_gpio_chip(chip);
76 static int gef_gpio_get(struct gpio_chip *chip, unsigned offset) argument
78 struct of_mm_gpio_chip *mmchip = to_of_mm_gpio_chip(chip);
108 /* Setup pointers to chip functions */
116 /* This function adds a memory mapped GPIO chip */
[all...]
H A Dgpio-max730x.c51 static int max7301_direction_input(struct gpio_chip *chip, unsigned offset) argument
53 struct max7301 *ts = container_of(chip, struct max7301, chip);
92 static int max7301_direction_output(struct gpio_chip *chip, unsigned offset, argument
95 struct max7301 *ts = container_of(chip, struct max7301, chip);
121 static int max7301_get(struct gpio_chip *chip, unsigned offset) argument
123 struct max7301 *ts = container_of(chip, struct max7301, chip);
149 static void max7301_set(struct gpio_chip *chip, unsigne argument
[all...]
/drivers/gpu/drm/nouveau/core/include/subdev/
H A Dbios.h17 u8 chip; member in struct:nouveau_bios::__anon858
/drivers/media/pci/cx23885/
H A Dcx23885-ioctl.c25 struct v4l2_dbg_chip_info *chip)
29 if (chip->match.addr > 1)
31 if (chip->match.addr == 1) {
34 strlcpy(chip->name, "cx23417", sizeof(chip->name));
36 strlcpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name));
24 cx23885_g_chip_info(struct file *file, void *fh, struct v4l2_dbg_chip_info *chip) argument
/drivers/mmc/host/
H A Dsdhci-pci-o2micro.c24 static void o2_pci_set_baseclk(struct sdhci_pci_chip *chip, u32 value) argument
27 pci_read_config_dword(chip->pdev,
33 pci_write_config_dword(chip->pdev,
37 static void o2_pci_led_enable(struct sdhci_pci_chip *chip) argument
43 ret = pci_read_config_dword(chip->pdev,
49 pci_write_config_dword(chip->pdev,
52 ret = pci_read_config_dword(chip->pdev,
58 pci_write_config_dword(chip->pdev,
63 void sdhci_pci_o2_fujin2_pci_init(struct sdhci_pci_chip *chip) argument
68 ret = pci_read_config_dword(chip
154 struct sdhci_pci_chip *chip; local
186 sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) argument
392 sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) argument
[all...]
/drivers/mtd/nand/
H A Dplat_nand.c22 struct nand_chip chip; member in struct:plat_nand_data
46 if (pdata->chip.nr_chips < 1) {
62 data->chip.priv = &data;
63 data->mtd.priv = &data->chip;
67 data->chip.IO_ADDR_R = data->io_base;
68 data->chip.IO_ADDR_W = data->io_base;
69 data->chip.cmd_ctrl = pdata->ctrl.cmd_ctrl;
70 data->chip.dev_ready = pdata->ctrl.dev_ready;
71 data->chip.select_chip = pdata->ctrl.select_chip;
72 data->chip
[all...]
H A Dsm_common.c105 struct nand_chip *chip = mtd->priv; local
108 chip->options |= NAND_SKIP_BBTSCAN;
118 chip->badblockpos = 0x05;
119 chip->badblockbits = 7;
120 chip->block_markbad = sm_block_markbad;
124 chip->ecc.layout = &nand_oob_sm;
126 chip->ecc.layout = &nand_oob_sm_small;
/drivers/net/wireless/rt2x00/
H A Drt2x00pci.c81 u16 chip; local
132 * Because rt3290 chip use different efuse offset to read efuse data.
136 pci_read_config_word(pci_dev, PCI_DEVICE_ID, &chip);
137 rt2x00dev->chip.rt = chip;
/drivers/net/wireless/zd1211rw/
H A Dzd_rf_rf2959.c151 struct zd_chip *chip = zd_rf_to_chip(rf); local
223 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
227 return zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS);
234 struct zd_chip *chip = zd_rf_to_chip(rf); local
237 r = zd_rfwrite_locked(chip, rv[i], RF_RV_BITS);
250 struct zd_chip *chip = zd_rf_to_chip(rf); local
252 return zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
261 struct zd_chip *chip = zd_rf_to_chip(rf); local
263 return zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
268 struct zd_chip *chip local
[all...]
H A Dzd_rf.c74 struct zd_chip *chip = zd_rf_to_chip(rf); local
76 ZD_ASSERT(mutex_is_locked(&chip->mutex));
93 dev_err(zd_chip_dev(chip),
104 r = zd_chip_lock_phy_regs(chip);
108 r = zd_chip_unlock_phy_regs(chip);
139 struct zd_chip *chip = zd_rf_to_chip(rf); local
141 ZD_ASSERT(mutex_is_locked(&chip->mutex));
142 r = zd_chip_lock_phy_regs(chip);
146 r = zd_chip_unlock_phy_regs(chip);
155 struct zd_chip *chip local
[all...]
/drivers/input/misc/
H A D88pm860x_onkey.c38 struct pm860x_chip *chip; member in struct:pm860x_onkey_info
62 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); local
76 info->chip = chip;
77 info->i2c = (chip->id == CHIP_PM8607) ? chip->client : chip->companion;
83 dev_err(chip->dev, "Failed to allocate input dev\n");
96 dev_err(chip->dev, "Can't register input device: %d\n", ret);
104 dev_err(chip
119 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); local
128 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); local
[all...]
H A Dad714x-i2c.c30 static int ad714x_i2c_write(struct ad714x_chip *chip, argument
33 struct i2c_client *client = to_i2c_client(chip->dev);
36 chip->xfer_buf[0] = cpu_to_be16(reg);
37 chip->xfer_buf[1] = cpu_to_be16(data);
39 error = i2c_master_send(client, (u8 *)chip->xfer_buf,
40 2 * sizeof(*chip->xfer_buf));
49 static int ad714x_i2c_read(struct ad714x_chip *chip, argument
52 struct i2c_client *client = to_i2c_client(chip->dev);
56 chip->xfer_buf[0] = cpu_to_be16(reg);
58 error = i2c_master_send(client, (u8 *)chip
78 struct ad714x_chip *chip; local
92 struct ad714x_chip *chip = i2c_get_clientdata(client); local
[all...]
H A Dad714x-spi.c33 static int ad714x_spi_read(struct ad714x_chip *chip, argument
36 struct spi_device *spi = to_spi_device(chip->dev);
45 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX |
47 xfer[0].tx_buf = &chip->xfer_buf[0];
48 xfer[0].len = sizeof(chip->xfer_buf[0]);
51 xfer[1].rx_buf = &chip->xfer_buf[1];
52 xfer[1].len = sizeof(chip->xfer_buf[1]) * len;
57 dev_err(chip->dev, "SPI read error: %d\n", error);
62 data[i] = be16_to_cpu(chip->xfer_buf[i + 1]);
67 static int ad714x_spi_write(struct ad714x_chip *chip, argument
88 struct ad714x_chip *chip; local
108 struct ad714x_chip *chip = spi_get_drvdata(spi); local
[all...]
H A Dmax8925_onkey.c68 struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); local
95 info->i2c = chip->i2c;
110 dev_err(chip->dev, "Failed to request IRQ: #%d: %d\n",
119 dev_err(chip->dev, "Failed to request IRQ: #%d: %d\n",
126 dev_err(chip->dev, "Can't register input device: %d\n", error);
141 struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); local
144 chip->wakeup_flag |= 1 << info->irq[0];
145 chip->wakeup_flag |= 1 << info->irq[1];
155 struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); local
158 chip
[all...]
/drivers/misc/cb710/
H A Ddebug.c84 static void cb710_read_and_dump_regs_##t(struct cb710_chip *chip, \
90 cb710_read_regs_##t(chip->iobase, regs, select); \
91 cb710_dump_regs_##t(cb710_chip_dev(chip), regs, select); \
103 void cb710_dump_regs(struct cb710_chip *chip, unsigned select) argument
111 cb710_read_and_dump_regs_32(chip, select);
113 cb710_read_and_dump_regs_16(chip, select);
115 cb710_read_and_dump_regs_8(chip, select);
/drivers/staging/vme/devices/
H A Dvme_pio2_gpio.c29 static struct pio2_card *gpio_to_pio2_card(struct gpio_chip *chip) argument
31 return container_of(chip, struct pio2_card, gc);
34 static int pio2_gpio_get(struct gpio_chip *chip, unsigned int offset) argument
38 struct pio2_card *card = gpio_to_pio2_card(chip);
71 static void pio2_gpio_set(struct gpio_chip *chip, unsigned int offset, argument
76 struct pio2_card *card = gpio_to_pio2_card(chip);
103 static int pio2_gpio_dir_in(struct gpio_chip *chip, unsigned offset) argument
106 struct pio2_card *card = gpio_to_pio2_card(chip);
122 static int pio2_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int value) argument
125 struct pio2_card *card = gpio_to_pio2_card(chip);
[all...]
/drivers/video/fbdev/riva/
H A Dnv_driver.c157 RIVA_HW_INST *chip = &par->riva; local
163 switch (chip->Architecture) {
165 if (NV_RD32(chip->PFB, 0x00000000) & 0x00000020) {
166 if (((NV_RD32(chip->PMC, 0x00000000) & 0xF0) == 0x20)
167 && ((NV_RD32(chip->PMC, 0x00000000)&0x0F)>=0x02)) {
171 switch (NV_RD32(chip->PFB,0x00000000) & 0x03) {
189 switch (NV_RD32(chip->PFB, 0x00000000) & 0x00000003) {
203 if (NV_RD32(chip->PFB, 0x00000000) & 0x00000100) {
204 memlen = ((NV_RD32(chip->PFB, 0x00000000)>>12)&0x0F) *
207 switch (NV_RD32(chip
274 RIVA_HW_INST *chip = &par->riva; local
[all...]

Completed in 615 milliseconds

1234567891011>>