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

12

/openwrt/target/linux/adm8668/files-3.18/arch/mips/adm8668/
H A Dgpio.c23 struct gpio_chip chip; member in struct:adm8668_gpio_chip
26 static int adm8668_gpio_dir_out(struct gpio_chip *chip, argument
30 container_of(chip, struct adm8668_gpio_chip, chip);
46 static int adm8668_gpio_dir_in(struct gpio_chip *chip, argument
50 container_of(chip, struct adm8668_gpio_chip, chip);
61 static void adm8668_gpio_set(struct gpio_chip *chip, argument
65 container_of(chip, struct adm8668_gpio_chip, chip);
76 adm8668_gpio_get(struct gpio_chip *chip, unsigned offset) argument
[all...]
/openwrt/target/linux/mcs814x/files-3.18/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...]
/openwrt/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/
H A Dgpio.c48 struct gpio_chip chip; member in struct:cns3xxx_gpio_chip
73 static int cns3xxx_gpio_direction_input(struct gpio_chip *chip, unsigned pin) argument
76 container_of(chip, struct cns3xxx_gpio_chip, chip);
86 static int cns3xxx_gpio_get(struct gpio_chip *chip, unsigned pin) argument
89 container_of(chip, struct cns3xxx_gpio_chip, chip);
97 static int cns3xxx_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int level) argument
100 container_of(chip, struct cns3xxx_gpio_chip, chip);
114 cns3xxx_gpio_set(struct gpio_chip *chip, unsigned pin, int level) argument
126 cns3xxx_gpio_to_irq(struct gpio_chip *chip, unsigned pin) argument
145 struct irq_chip *chip = irq_desc_get_chip(desc); local
[all...]
/openwrt/target/linux/ar71xx/files/arch/mips/ath79/
H A Ddev-dsa.c34 d->chip[i].mii_bus = miidev;
36 d->chip[i].host_dev = miidev;
H A Dmach-tl-wr941nd.c90 .chip = &tl_wr941nd_dsa_chip,
H A Dmach-rb922.c144 struct nand_chip *chip = mtd->priv; local
151 chip->ecc.layout = &rb922gs_nand_ecclayout;
H A Dmach-rb95x.c158 struct nand_chip *chip = mtd->priv; local
165 chip->ecc.layout = &rb95x_nand_ecclayout;
H A Dmach-rbsxtlite.c174 struct nand_chip *chip = mtd->priv; local
181 chip->ecc.layout = &rbsxtlite_nand_ecclayout;
H A Dmach-tl-wr841n.c110 .chip = &tl_wr841n_v1_dsa_chip,
H A Dmach-rb2011.c200 struct nand_chip *chip = mtd->priv; local
207 chip->ecc.layout = &rb2011_nand_ecclayout;
/openwrt/package/boot/uboot-oxnas/files/board/ox820/
H A Dox820.c199 struct nand_chip *chip = mtd->priv; local
201 udelay(chip->chip_delay);
209 struct nand_chip *chip = mtd->priv; local
212 buf[i] = readb(chip->IO_ADDR_R);
215 void nand_dev_reset(struct nand_chip *chip) argument
217 writeb(NAND_CMD_RESET, chip->IO_ADDR_W + BIT(NAND_CLE_ADDR_PIN));
218 udelay(chip->chip_delay);
219 writeb(NAND_CMD_STATUS, chip->IO_ADDR_W + BIT(NAND_CLE_ADDR_PIN));
220 while (!(readb(chip->IO_ADDR_R) & NAND_STATUS_READY)) {
227 #define nand_dev_reset(chip) /* framewor
233 board_nand_init(struct nand_chip *chip) argument
[all...]
/openwrt/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...]
/openwrt/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.chip_delay = 25;
220 info->chip
[all...]
H A Drb750_nand.c42 struct nand_chip chip; member in struct:rb750_nand_info
137 static void rb750_nand_select_chip(struct mtd_info *mtd, int chip) argument
143 if (chip >= 0) {
267 info->chip.priv = &info;
268 info->mtd.priv = &info->chip;
271 info->chip.select_chip = rb750_nand_select_chip;
272 info->chip.cmd_ctrl = rb750_nand_cmd_ctrl;
273 info->chip.dev_ready = rb750_nand_dev_ready;
274 info->chip.read_byte = rb750_nand_read_byte;
275 info->chip
[all...]
H A Drb91x_nand.c41 struct nand_chip chip; member in struct:rb91x_nand_info
312 rbni->chip.priv = &rbni;
313 rbni->mtd.priv = &rbni->chip;
316 rbni->chip.cmd_ctrl = rb91x_nand_cmd_ctrl;
317 rbni->chip.dev_ready = rb91x_nand_dev_ready;
318 rbni->chip.read_byte = rb91x_nand_read_byte;
319 rbni->chip.write_buf = rb91x_nand_write_buf;
320 rbni->chip.read_buf = rb91x_nand_read_buf;
322 rbni->chip.chip_delay = 25;
323 rbni->chip
[all...]
H A Dar934x_nfc.c853 ar934x_nfc_read_oob(struct mtd_info *mtd, struct nand_chip *chip, argument
866 memcpy(chip->oob_poi, nfc->buf, mtd->oobsize);
872 ar934x_nfc_write_oob(struct mtd_info *mtd, struct nand_chip *chip, argument
879 memcpy(nfc->buf, chip->oob_poi, mtd->oobsize);
886 ar934x_nfc_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, argument
906 memcpy(chip->oob_poi, &nfc->buf[mtd->writesize], mtd->oobsize);
912 ar934x_nfc_read_page(struct mtd_info *mtd, struct nand_chip *chip, argument
947 memcpy(chip->oob_poi, nfc->buf, mtd->oobsize);
959 if (!is_all_ff(&nfc->buf[nfc->ecc_oob_pos], chip->ecc.total) ||
973 max_bitflips = chip
985 ar934x_nfc_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required) argument
1008 ar934x_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required) argument
1128 struct nand_chip *chip = &nfc->nand_chip; local
[all...]
/openwrt/target/linux/oxnas/files/drivers/pinctrl/
H A Dpinctrl-oxnas.c40 struct gpio_chip chip; member in struct:oxnas_gpio_chip
48 #define to_oxnas_gpio_chip(c) container_of(c, struct oxnas_gpio_chip, chip)
601 struct gpio_chip *chip; local
609 dev_err(npct->dev, "missing GPIO chip in range\n");
612 chip = range->gc;
613 oxnas_chip = container_of(chip, struct oxnas_gpio_chip, chip);
617 mask = 1 << (offset - chip->base);
620 offset, 'A' + range->id, offset - chip->base, mask);
959 "GPIO chip
1013 oxnas_gpio_request(struct gpio_chip *chip, unsigned offset) argument
1028 oxnas_gpio_free(struct gpio_chip *chip, unsigned offset) argument
1035 oxnas_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument
1044 oxnas_gpio_get(struct gpio_chip *chip, unsigned offset) argument
1055 oxnas_gpio_set(struct gpio_chip *chip, unsigned offset, int val) argument
1068 oxnas_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int val) argument
1084 oxnas_gpio_to_irq(struct gpio_chip *chip, unsigned offset) argument
1100 oxnas_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) argument
1209 struct irq_chip *chip = irq_desc_get_chip(desc); local
1332 struct gpio_chip *chip; local
[all...]
/openwrt/target/linux/adm5120/files-3.18/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 = {
127 /* initialize NAND chip */
/openwrt/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/
H A Dirq.c30 panic("unable to allocate domain generic irq chip");
34 panic("unable to get generic irq chip");
38 ct->chip.irq_ack = irq_gc_unmask_enable_reg;
39 ct->chip.irq_mask = irq_gc_mask_clr_bit;
40 ct->chip.irq_unmask = irq_gc_mask_set_bit;
/openwrt/target/linux/adm5120/files-3.18/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
322 panic("cannot add ADM5120 GPIO0 chip, error=%d", err);
326 panic("cannot add ADM5120 GPIO1 chip, erro
[all...]
/openwrt/target/linux/generic/files/drivers/net/phy/
H A Dar8216.c193 if (priv->chip->phy_fixup)
194 priv->chip->phy_fixup(priv, i);
228 if (priv->chip->mii_lo_first)
366 unsigned mib_func = priv->chip->mib_func;
408 base = priv->chip->reg_port_stats_start +
409 priv->chip->reg_port_stats_length * port;
411 mib_stats = &priv->mib_stats[port * priv->chip->num_mibs];
412 for (i = 0; i < priv->chip->num_mibs; i++) {
416 mib = &priv->chip->mib_decs[i];
441 status = priv->chip
1105 const struct ar8xxx_chip *chip = priv->chip; local
1163 const struct ar8xxx_chip *chip = priv->chip; local
1379 const struct ar8xxx_chip *chip = priv->chip; local
1472 const struct ar8xxx_chip *chip = priv->chip; local
1925 const struct ar8xxx_chip *chip; local
[all...]
/openwrt/target/linux/oxnas/files/drivers/irqchip/
H A Dirq-rps.c19 struct irq_chip chip; member in struct:rps_chip_data
106 struct irq_chip *chip = irq_desc_get_chip(desc); local
110 chained_irq_enter(chip, desc);
125 chained_irq_exit(chip, desc);
/openwrt/package/kernel/linux/modules/
H A Dhwmon.mk60 Kernel module for ADT7410/7420 I2C thermal monitor chip
75 Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
90 Kernel module for NCT6106D/6775F/6776F/6779D/6791D/6792D/6793D thermal monitor chip
105 Kernel module for Intel Core/Core2/Atom thermal monitor chip
135 Kernel module for it87 thermal and voltage monitor chip
149 Kernel module for lm63 and lm64 thermal monitor chip
164 Kernel module for lm75 thermal monitor chip
179 Kernel module for LM77 thermal monitor chip
194 Kernel module for LM85 thermal monitor chip
209 Kernel module for LM90 thermal monitor chip
[all...]
/openwrt/target/linux/oxnas/files/drivers/mtd/nand/
H A Doxnas_nand.c60 .chip = {
/openwrt/target/linux/generic/files/drivers/net/phy/b53/
H A Db53_common.c1317 const struct b53_chip_data *chip = &b53_switch_chips[i]; local
1319 if (chip->chip_id == dev->chip_id) {
1320 sw_dev->name = chip->dev_name;
1322 sw_dev->alias = chip->alias;
1324 dev->enabled_ports = chip->enabled_ports;
1325 dev->duplex_reg = chip->duplex_reg;
1326 dev->vta_regs[0] = chip->vta_regs[0];
1327 dev->vta_regs[1] = chip->vta_regs[1];
1328 dev->vta_regs[2] = chip->vta_regs[2];
1329 dev->jumbo_pm_reg = chip
[all...]

Completed in 96 milliseconds

12