Searched refs:chip (Results 1 - 25 of 47) sorted by relevance

12

/netgear-R7800-V1.0.2.28/target/linux/ramips/files/arch/mips/ralink/common/
H A Dgpio.c16 static inline struct ramips_gpio_chip *to_ramips_gpio(struct gpio_chip *chip) argument
20 rg = container_of(chip, struct ramips_gpio_chip, chip);
34 static int ramips_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument
36 struct ramips_gpio_chip *rg = to_ramips_gpio(chip);
49 static int ramips_gpio_direction_output(struct gpio_chip *chip, argument
52 struct ramips_gpio_chip *rg = to_ramips_gpio(chip);
70 static void ramips_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
72 struct ramips_gpio_chip *rg = to_ramips_gpio(chip);
79 static int ramips_gpio_get(struct gpio_chip *chip, unsigne argument
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ubicom32/files/drivers/mtd/devices/
H A Dnand-spi-er.c108 static int nand_spi_er_get_feature(struct nand_spi_er *chip, int reg, uint8_t *data) argument
116 res = spi_write_then_read(chip->spi, txbuf, 2, rxbuf, 1);
118 DEBUG(MTD_DEBUG_LEVEL1, "%s: failed get feature res=%d\n", chip->name, res);
127 * Wait until the chip is not busy
129 static int nand_spi_er_busywait(struct nand_spi_er *chip, uint8_t *data) argument
134 int res = nand_spi_er_get_feature(chip, 0xC0, data);
152 struct nand_spi_er *chip = mtd->priv; local
153 struct spi_device *spi = chip->spi;
157 DEBUG(MTD_DEBUG_LEVEL3, "%s: erase addr:%x len:%x\n", chip->name, instr->addr, instr->len);
163 if (instr->addr & (chip
285 struct nand_spi_er *chip = mtd->priv; local
447 struct nand_spi_er *chip = mtd->priv; local
613 struct nand_spi_er *chip = mtd->priv; local
631 struct nand_spi_er *chip = mtd->priv; local
745 nand_spi_er_read_bbt(struct nand_spi_er *chip) argument
857 struct nand_spi_er *chip; local
973 struct nand_spi_er *chip = spi_get_drvdata(spi); local
[all...]
H A Dubi32-nand-spi-er.c316 * Wait until the chip is not busy
345 struct ubi32_nand_spi_er *chip = mtd->priv; local
348 DEBUG(MTD_DEBUG_LEVEL3, "%s: erase addr:%x len:%x\n", chip->name, instr->addr, instr->len);
354 if (instr->addr & (chip->device->erase_size - 1)) {
355 DEBUG(MTD_DEBUG_LEVEL1, "%s: erase address is not aligned %x\n", chip->name, instr->addr);
359 if (instr->len & (chip->device->erase_size - 1)) {
360 DEBUG(MTD_DEBUG_LEVEL1, "%s: erase len is not aligned %x\n", chip->name, instr->len);
364 mutex_lock(&chip->lock);
365 chip->last_row = UBI32_NAND_SPI_ER_LAST_ROW_INVALID;
371 DEBUG(MTD_DEBUG_LEVEL3, "%s: block erase row:%x block:%x addr:%x rem:%x\n", chip
447 struct ubi32_nand_spi_er *chip = mtd->priv; local
619 struct ubi32_nand_spi_er *chip = mtd->priv; local
765 struct ubi32_nand_spi_er *chip = mtd->priv; local
783 struct ubi32_nand_spi_er *chip = mtd->priv; local
893 ubi32_nand_spi_er_read_bbt(struct ubi32_nand_spi_er *chip) argument
986 struct ubi32_nand_spi_er *chip; local
1121 struct ubi32_nand_spi_er *chip = dev_get_drvdata(&pdev->dev); local
[all...]
/netgear-R7800-V1.0.2.28/target/linux/mcs814x/files-3.3/drivers/gpio/
H A Dgpio-mcs814x.c21 struct gpio_chip chip; member in struct:mcs814x_gpio_chip
27 #define to_mcs814x_gpio_chip(x) container_of(x, struct mcs814x_gpio_chip, chip)
29 static int mcs814x_gpio_get(struct gpio_chip *chip, unsigned offset) argument
31 struct mcs814x_gpio_chip *mcs814x = to_mcs814x_gpio_chip(chip);
36 static void mcs814x_gpio_set(struct gpio_chip *chip, argument
39 struct mcs814x_gpio_chip *mcs814x = to_mcs814x_gpio_chip(chip);
50 static int mcs814x_gpio_direction_output(struct gpio_chip *chip, argument
53 struct mcs814x_gpio_chip *mcs814x = to_mcs814x_gpio_chip(chip);
63 static int mcs814x_gpio_direction_input(struct gpio_chip *chip, argument
66 struct mcs814x_gpio_chip *mcs814x = to_mcs814x_gpio_chip(chip);
[all...]
/netgear-R7800-V1.0.2.28/target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/
H A Dglamo-gpio.c41 struct gpio_chip chip; member in struct:glamo_gpio
53 static inline struct glamo_core *chip_to_glamo(struct gpio_chip *chip) argument
55 return container_of(chip, struct glamo_gpio, chip)->glamo;
58 static void glamo_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
60 struct glamo_core *glamo = chip_to_glamo(chip);
74 static int glamo_gpio_get(struct gpio_chip *chip, unsigned offset) argument
76 struct glamo_core *glamo = chip_to_glamo(chip);
80 static int glamo_gpio_request(struct gpio_chip *chip, unsigned offset) argument
82 struct glamo_core *glamo = chip_to_glamo(chip);
97 glamo_gpio_free(struct gpio_chip *chip, unsigned offset) argument
112 glamo_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
134 glamo_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ar71xx/files/drivers/spi/
H A Dspi-rb4xx-cpld.c2 * SPI driver for the CPLD chip on the Mikrotik RB4xx boards
41 struct gpio_chip chip; member in struct:rb4xx_cpld
47 static inline struct rb4xx_cpld *gpio_to_cpld(struct gpio_chip *chip) argument
49 return container_of(chip, struct rb4xx_cpld, chip);
286 static int rb4xx_cpld_gpio_get(struct gpio_chip *chip, unsigned offset) argument
288 struct rb4xx_cpld *cpld = gpio_to_cpld(chip);
298 static void rb4xx_cpld_gpio_set(struct gpio_chip *chip, unsigned offset, argument
301 struct rb4xx_cpld *cpld = gpio_to_cpld(chip);
308 static int rb4xx_cpld_gpio_direction_input(struct gpio_chip *chip, argument
314 rb4xx_cpld_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ar71xx/files/drivers/mtd/nand/
H A Drb4xx_nand.c40 struct nand_chip chip; member in struct:rb4xx_nand_info
209 info->chip.priv = &info;
210 info->mtd.priv = &info->chip;
213 info->chip.cmd_ctrl = rb4xx_nand_cmd_ctrl;
214 info->chip.dev_ready = rb4xx_nand_dev_ready;
215 info->chip.read_byte = rb4xx_nand_read_byte;
216 info->chip.write_buf = rb4xx_nand_write_buf;
217 info->chip.read_buf = rb4xx_nand_read_buf;
219 info->chip.verify_buf = rb4xx_nand_verify_buf;
222 info->chip
[all...]
H A Drb750_nand.c42 struct nand_chip chip; member in struct:rb750_nand_info
143 static void rb750_nand_select_chip(struct mtd_info *mtd, int chip) argument
149 if (chip >= 0) {
278 info->chip.priv = &info;
279 info->mtd.priv = &info->chip;
282 info->chip.select_chip = rb750_nand_select_chip;
283 info->chip.cmd_ctrl = rb750_nand_cmd_ctrl;
284 info->chip.dev_ready = rb750_nand_dev_ready;
285 info->chip.read_byte = rb750_nand_read_byte;
286 info->chip
[all...]
H A Dath79_nand.c127 /***** NAND chip internal functions *****/
129 static int ath79_rw_oob(struct mtd_info *mtd, struct nand_chip *chip, int rw,
134 struct nand_chip *chip = mtd->priv; local
135 uint8_t *p = chip->oob_poi;
148 struct nand_chip *chip = mtd->priv; local
149 uint8_t *p = chip->oob_poi;
152 ath79_rw_oob(mtd, chip, 1 /*read */ , page);
195 static int ath79_rw_oob(struct mtd_info *mtd, struct nand_chip *chip, int rw, argument
204 pa = dma_map_single(NULL, chip->oob_poi, mtd->oobsize, dir);
258 status = chip
293 ath79_rw_page(struct mtd_info *mtd, struct nand_chip *chip, int rw, uint8_t * buf, int len, int page) argument
582 struct nand_chip *chip = mtd->priv; local
593 ath79_read_oob(struct mtd_info *mtd, struct nand_chip *chip, int page, int sndcmd) argument
601 ath79_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument
607 ath79_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, uint8_t * buf, int page) argument
614 ath79_read_page(struct mtd_info *mtd, struct nand_chip *chip, uint8_t * buf, int page) argument
621 ath79_write_page(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t * buf, int page, int cached, int raw) argument
[all...]
/netgear-R7800-V1.0.2.28/target/linux/lantiq/files/arch/mips/lantiq/falcon/
H A Dgpio.c126 falcon_gpio_direction_input(struct gpio_chip *chip, unsigned int offset) argument
128 ltq_port_w32(ctop(chip), 1 << offset, LTQ_GPIO_DIRCLR);
134 falcon_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) argument
137 ltq_port_w32(ctop(chip), 1 << offset, LTQ_GPIO_OUTSET);
139 ltq_port_w32(ctop(chip), 1 << offset, LTQ_GPIO_OUTCLR);
143 falcon_gpio_direction_output(struct gpio_chip *chip, argument
146 falcon_gpio_set(chip, offset, value);
147 ltq_port_w32(ctop(chip), 1 << offset, LTQ_GPIO_DIRSET);
153 falcon_gpio_get(struct gpio_chip *chip, unsigned int offset) argument
155 if ((ltq_port_r32(ctop(chip), LTQ_GPIO_DI
162 falcon_gpio_request(struct gpio_chip *chip, unsigned offset) argument
176 falcon_gpio_free(struct gpio_chip *chip, unsigned offset) argument
187 falcon_gpio_to_irq(struct gpio_chip *chip, unsigned offset) argument
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/
H A Dramips_gpio.h32 struct gpio_chip chip; member in struct:ramips_gpio_chip
/netgear-R7800-V1.0.2.28/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/
H A Dirq.c30 panic("unable to allocate generic irq chip");
33 ct->chip.irq_ack = irq_gc_unmask_enable_reg;
34 ct->chip.irq_mask = irq_gc_mask_clr_bit;
35 ct->chip.irq_unmask = irq_gc_mask_set_bit;
/netgear-R7800-V1.0.2.28/target/linux/ubicom32/files/arch/ubicom32/mach-common/
H A Dubi32-gpio.c169 static int ubi_gpio_request(struct gpio_chip *chip, unsigned gpio) argument
197 static void ubi_gpio_free(struct gpio_chip *chip, unsigned gpio) argument
224 static int ubi_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument
250 static int ubi_gpio_direction_output(struct gpio_chip *chip, argument
285 static int ubi_gpio_get_value(struct gpio_chip *chip, unsigned gpio) argument
294 static void ubi_gpio_set_value(struct gpio_chip *chip, unsigned gpio, argument
313 static int ubi_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) argument
326 struct ubi_gpio_chip *chip; local
331 chip = kzalloc(sizeof(struct ubi_gpio_chip), GFP_KERNEL);
332 if (chip
[all...]
/netgear-R7800-V1.0.2.28/target/linux/adm5120/files/arch/mips/adm5120/mikrotik/
H A Drb-1xx.c72 struct nand_chip *chip = mtd->priv; local
75 chip->ecc.layout = &rb1xx_nand_ecclayout;
81 .chip = {
128 /* initialize NAND chip */
/netgear-R7800-V1.0.2.28/target/linux/ar71xx/files/arch/mips/ath79/
H A Ddev-dsa.c32 d->chip[i].mii_bus = miidev;
H A Dmach-tl-wr941nd.c90 .chip = &tl_wr941nd_dsa_chip,
H A Dmach-rb2011.c184 struct nand_chip *chip = mtd->priv; local
191 chip->ecc.layout = &rb2011_nand_ecclayout;
H A Dmach-tl-wr841n.c110 .chip = &tl_wr841n_v1_dsa_chip,
/netgear-R7800-V1.0.2.28/target/linux/adm5120/files/arch/mips/adm5120/common/
H A Dgpio.c133 static int adm5120_gpio0_get_value(struct gpio_chip *chip, unsigned offset) argument
138 static void adm5120_gpio0_set_value(struct gpio_chip *chip, argument
144 static int adm5120_gpio0_direction_input(struct gpio_chip *chip, argument
160 static int adm5120_gpio0_direction_output(struct gpio_chip *chip, argument
245 static int adm5120_gpio1_get_value(struct gpio_chip *chip, unsigned offset) argument
250 static void adm5120_gpio1_set_value(struct gpio_chip *chip, argument
256 static int adm5120_gpio1_direction_input(struct gpio_chip *chip, argument
270 static int adm5120_gpio1_direction_output(struct gpio_chip *chip, argument
324 panic("cannot add ADM5120 GPIO0 chip, error=%d", err);
328 panic("cannot add ADM5120 GPIO1 chip, erro
[all...]
/netgear-R7800-V1.0.2.28/target/linux/lantiq/files/arch/mips/lantiq/xway/
H A Dnand.c70 static void xway_select_chip(struct mtd_info *mtd, int chip) argument
72 switch (chip) {
80 /* reset the nand chip */
182 .chip = {
213 falcon_flash_nand_data.chip.partitions = parts;
214 falcon_flash_nand_data.chip.nr_partitions = count;
/netgear-R7800-V1.0.2.28/target/linux/ramips/files/arch/mips/ralink/rt288x/
H A Drt288x.c53 .chip = {
74 .chip = {
95 .chip = {
/netgear-R7800-V1.0.2.28/target/linux/ramips/files/arch/mips/ralink/rt3883/
H A Drt3883.c52 .chip = {
73 .chip = {
94 .chip = {
115 .chip = {
/netgear-R7800-V1.0.2.28/package/kernel/modules/
H A Dhwmon.mk57 Kernel module for ADT7473/7475/7476/7490 thermal monitor chip.
72 Kernel module for lm63 and lm64 thermal monitor chip
87 Kernel module for lm75 thermal monitor chip
102 Kernel module for LM77 thermal monitor chip
117 Kernel module for LM85 thermal monitor chip
132 Kernel module for LM90 thermal monitor chip
146 Kernel module for LM95241 thermal monitor chip
160 Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
/netgear-R7800-V1.0.2.28/target/linux/ramips/files/arch/mips/ralink/rt305x/
H A Drt305x.c123 .chip = {
144 .chip = {
165 .chip = {
/netgear-R7800-V1.0.2.28/target/linux/lantiq/files/arch/mips/lantiq/svip/
H A Dgpio.c358 static int ltq_gpio_direction_input(struct gpio_chip *chip, unsigned int offset) argument
364 static int ltq_gpio_direction_output(struct gpio_chip *chip, argument
371 static int ltq_gpio_get(struct gpio_chip *chip, unsigned int offset) argument
376 static void ltq_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) argument
384 static int svip_gpio_request(struct gpio_chip *chip, unsigned offset) argument
389 static void ltq_gpio_free(struct gpio_chip *chip, unsigned offset) argument

Completed in 90 milliseconds

12