/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-davinci.c | 195 struct davinci_gpio_controller *chips; in davinci_gpio_probe() local 228 chips = devm_kzalloc(dev, sizeof(*chips), GFP_KERNEL); in davinci_gpio_probe() 229 if (!chips) in davinci_gpio_probe() 237 chips->irqs[i] = platform_get_irq(pdev, i); in davinci_gpio_probe() 238 if (chips->irqs[i] < 0) in davinci_gpio_probe() 239 return chips->irqs[i]; in davinci_gpio_probe() 242 chips->chip.label = dev_name(dev); in davinci_gpio_probe() 244 chips->chip.direction_input = davinci_direction_in; in davinci_gpio_probe() 245 chips in davinci_gpio_probe() 431 struct davinci_gpio_controller *chips = davinci_gpio_irq_map() local 485 struct davinci_gpio_controller *chips = platform_get_drvdata(pdev); davinci_gpio_irq_setup() local 622 davinci_gpio_save_context(struct davinci_gpio_controller *chips, u32 nbank) davinci_gpio_save_context() argument 646 davinci_gpio_restore_context(struct davinci_gpio_controller *chips, u32 nbank) davinci_gpio_restore_context() argument 675 struct davinci_gpio_controller *chips = dev_get_drvdata(dev); davinci_gpio_suspend() local 686 struct davinci_gpio_controller *chips = dev_get_drvdata(dev); davinci_gpio_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-davinci.c | 194 struct davinci_gpio_controller *chips; in davinci_gpio_probe() local 230 chips = devm_kzalloc(dev, sizeof(*chips), GFP_KERNEL); in davinci_gpio_probe() 231 if (!chips) in davinci_gpio_probe() 239 chips->irqs[i] = platform_get_irq(pdev, i); in davinci_gpio_probe() 240 if (chips->irqs[i] < 0) in davinci_gpio_probe() 241 return dev_err_probe(dev, chips->irqs[i], "IRQ not populated\n"); in davinci_gpio_probe() 244 chips->chip.label = dev_name(dev); in davinci_gpio_probe() 246 chips->chip.direction_input = davinci_direction_in; in davinci_gpio_probe() 247 chips in davinci_gpio_probe() 436 struct davinci_gpio_controller *chips = davinci_gpio_irq_map() local 490 struct davinci_gpio_controller *chips = platform_get_drvdata(pdev); davinci_gpio_irq_setup() local [all...] |
/kernel/linux/linux-6.6/drivers/i2c/muxes/ |
H A D | i2c-mux-pca954x.c | 9 * chips made by NXP Semiconductors. 14 * It's also compatible to Maxims MAX735x I2C switch chips, which are controlled 15 * as the NXP PCA9548 and the MAX736x chips that act like the PCA9544. 20 * These chips are all controlled via the I2C bus itself, and all have a 108 static const struct chip_desc chips[] = { variable 258 { .compatible = "maxim,max7356", .data = &chips[max_7356] }, 259 { .compatible = "maxim,max7357", .data = &chips[max_7357] }, 260 { .compatible = "maxim,max7358", .data = &chips[max_7358] }, 261 { .compatible = "maxim,max7367", .data = &chips[max_7367] }, 262 { .compatible = "maxim,max7368", .data = &chips[max_736 [all...] |
H A D | i2c-mux-ltc4306.c | 52 static const struct chip_desc chips[] = { variable 201 { .compatible = "lltc,ltc4305", .data = &chips[ltc_4305] }, 202 { .compatible = "lltc,ltc4306", .data = &chips[ltc_4306] }, 221 chip = &chips[i2c_match_id(ltc4306_id, client)->driver_data]; in ltc4306_probe()
|
/kernel/linux/linux-5.10/drivers/i2c/muxes/ |
H A D | i2c-mux-pca954x.c | 9 * chips made by NXP Semiconductors. 14 * These chips are all controlled via the I2C bus itself, and all have a 94 static const struct chip_desc chips[] = { variable 197 { .compatible = "nxp,pca9540", .data = &chips[pca_9540] }, 198 { .compatible = "nxp,pca9542", .data = &chips[pca_9542] }, 199 { .compatible = "nxp,pca9543", .data = &chips[pca_9543] }, 200 { .compatible = "nxp,pca9544", .data = &chips[pca_9544] }, 201 { .compatible = "nxp,pca9545", .data = &chips[pca_9545] }, 202 { .compatible = "nxp,pca9546", .data = &chips[pca_9546] }, 203 { .compatible = "nxp,pca9547", .data = &chips[pca_954 [all...] |
H A D | i2c-mux-ltc4306.c | 53 static const struct chip_desc chips[] = { variable 202 { .compatible = "lltc,ltc4305", .data = &chips[ltc_4305] }, 203 { .compatible = "lltc,ltc4306", .data = &chips[ltc_4306] }, 222 chip = &chips[i2c_match_id(ltc4306_id, client)->driver_data]; in ltc4306_probe()
|
/kernel/linux/linux-5.10/sound/usb/6fire/ |
H A D | chip.c | 34 static struct sfire_chip *chips[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; variable 95 if (chips[i]) in usb6fire_chip_probe() 96 chips[i]->intf_count++; in usb6fire_chip_probe() 97 usb_set_intfdata(intf, chips[i]); in usb6fire_chip_probe() 135 chips[regidx] = chip; in usb6fire_chip_probe() 180 chips[chip->regidx] = NULL; in usb6fire_chip_disconnect()
|
/kernel/linux/linux-6.6/sound/usb/6fire/ |
H A D | chip.c | 33 static struct sfire_chip *chips[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; variable 94 if (chips[i]) in usb6fire_chip_probe() 95 chips[i]->intf_count++; in usb6fire_chip_probe() 96 usb_set_intfdata(intf, chips[i]); in usb6fire_chip_probe() 134 chips[regidx] = chip; in usb6fire_chip_probe() 179 chips[chip->regidx] = NULL; in usb6fire_chip_disconnect()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | powernv-cpufreq.c | 141 } *chips; variable 980 chips[i].restore = true; in powernv_cpufreq_occ_msg() 981 schedule_work(&chips[i].throttle); in powernv_cpufreq_occ_msg() 988 if (chips[i].id == omsg.chip) in powernv_cpufreq_occ_msg() 993 chips[i].throttle_reason = omsg.throttle_status; in powernv_cpufreq_occ_msg() 994 chips[i].reason[omsg.throttle_status]++; in powernv_cpufreq_occ_msg() 998 chips[i].restore = true; in powernv_cpufreq_occ_msg() 1000 schedule_work(&chips[i].throttle); in powernv_cpufreq_occ_msg() 1062 /* Allocate a chip cpu mask large enough to fit mask for all chips */ in init_chip_info() 1079 chips in init_chip_info() [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | powernv-cpufreq.c | 141 } *chips; variable 988 chips[i].restore = true; in powernv_cpufreq_occ_msg() 989 schedule_work(&chips[i].throttle); in powernv_cpufreq_occ_msg() 996 if (chips[i].id == omsg.chip) in powernv_cpufreq_occ_msg() 1001 chips[i].throttle_reason = omsg.throttle_status; in powernv_cpufreq_occ_msg() 1002 chips[i].reason[omsg.throttle_status]++; in powernv_cpufreq_occ_msg() 1006 chips[i].restore = true; in powernv_cpufreq_occ_msg() 1008 schedule_work(&chips[i].throttle); in powernv_cpufreq_occ_msg() 1057 /* Allocate a chip cpu mask large enough to fit mask for all chips */ in init_chip_info() 1074 chips in init_chip_info() [all...] |
/kernel/linux/linux-5.10/drivers/mtd/chips/ |
H A D | cfi_cmdset_0001.c | 44 /* Intel chips */ 49 /* STMicroelectronics chips */ 53 /* Atmel chips */ 56 /* Sharp chips */ 169 /* Atmel chips don't use the same PRI format as Intel chips */ 318 * Some chips power-up with all sectors locked by default. 563 cfi->chips[i].word_write_time = in cfi_cmdset_0001() 566 cfi->chips[i].word_write_time = 50000; in cfi_cmdset_0001() 569 cfi->chips[ in cfi_cmdset_0001() [all...] |
H A D | cfi_cmdset_0002.c | 286 /* Atmel chips don't use the same PRI format as AMD chips */ 300 /* Some chips got it backwards... */ in fixup_convert_atmel_pri() 320 /* Setup for chips with a secsi area */ in fixup_use_secsi() 337 * Some Atmel chips (e.g. the AT49BV6416) power-up with all sectors 448 /* Used to fix CFI-Tables of chips without Extended Query Tables */ 515 * Samsung K8P2815UQB and K8D6x16UxM chips in cfi_fixup_major_minor() 517 * K8D3x16UxC chips report major=3 / minor=3. in cfi_fixup_major_minor() 527 * SST 38VF640x chips report major=0xFF / minor=0xFF. in cfi_fixup_major_minor() 728 cfi->chips[ in cfi_cmdset_0002() [all...] |
H A D | cfi_cmdset_0020.c | 155 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020() 156 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020() 157 cfi->chips[i].erase_time = 1024; in cfi_cmdset_0020() 158 cfi->chips[i].ref_point_counter = 0; in cfi_cmdset_0020() 159 init_waitqueue_head(&(cfi->chips[i].wq)); in cfi_cmdset_0020() 175 //printk(KERN_DEBUG "number of CFI chips: %d\n", cfi->numchips); in cfi_staa_setup() 214 printk(KERN_WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_staa_setup() 406 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read() 633 ret = do_write_buffer(map, &cfi->chips[chipnum], in cfi_staa_write_buffers() 855 printk(KERN_WARNING "Status is not identical for all chips in do_erase_oneblock() [all...] |
H A D | gen_probe.c | 105 * Allocate memory for bitmap of valid chips. in genprobe_ident_chips() 124 * Now probe for other chips, checking sensibly for aliases while in genprobe_ident_chips() 138 retcfi = kmalloc(struct_size(retcfi, chips, cfi.numchips), GFP_KERNEL); in genprobe_ident_chips() 147 memset(&retcfi->chips[0], 0, sizeof(struct flchip) * cfi.numchips); in genprobe_ident_chips() 151 struct flchip *pchip = &retcfi->chips[j++]; in genprobe_ident_chips()
|
/kernel/linux/linux-6.6/drivers/mtd/chips/ |
H A D | cfi_cmdset_0001.c | 45 /* Intel chips */ 50 /* STMicroelectronics chips */ 54 /* Atmel chips */ 57 /* Sharp chips */ 171 /* Atmel chips don't use the same PRI format as Intel chips */ 320 * Some chips power-up with all sectors locked by default. 565 cfi->chips[i].word_write_time = in cfi_cmdset_0001() 568 cfi->chips[i].word_write_time = 50000; in cfi_cmdset_0001() 571 cfi->chips[ in cfi_cmdset_0001() [all...] |
H A D | cfi_cmdset_0002.c | 289 /* Atmel chips don't use the same PRI format as AMD chips */ 303 /* Some chips got it backwards... */ in fixup_convert_atmel_pri() 323 /* Setup for chips with a secsi area */ in fixup_use_secsi() 340 * Some Atmel chips (e.g. the AT49BV6416) power-up with all sectors 451 /* Used to fix CFI-Tables of chips without Extended Query Tables */ 518 * Samsung K8P2815UQB and K8D6x16UxM chips in cfi_fixup_major_minor() 520 * K8D3x16UxC chips report major=3 / minor=3. in cfi_fixup_major_minor() 530 * SST 38VF640x chips report major=0xFF / minor=0xFF. in cfi_fixup_major_minor() 731 cfi->chips[ in cfi_cmdset_0002() [all...] |
H A D | cfi_cmdset_0020.c | 156 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020() 157 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020() 158 cfi->chips[i].erase_time = 1024; in cfi_cmdset_0020() 159 cfi->chips[i].ref_point_counter = 0; in cfi_cmdset_0020() 160 init_waitqueue_head(&(cfi->chips[i].wq)); in cfi_cmdset_0020() 176 //printk(KERN_DEBUG "number of CFI chips: %d\n", cfi->numchips); in cfi_staa_setup() 215 printk(KERN_WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_staa_setup() 407 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read() 634 ret = do_write_buffer(map, &cfi->chips[chipnum], in cfi_staa_write_buffers() 856 printk(KERN_WARNING "Status is not identical for all chips in do_erase_oneblock() [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | oxnas_nand.c | 34 struct nand_chip *chips[OXNAS_NAND_MAX_CHIPS]; member 147 oxnas->chips[oxnas->nchips++] = chip; in oxnas_nand_probe() 150 /* Exit if no chips found */ in oxnas_nand_probe() 166 chip = oxnas->chips[i]; in oxnas_nand_probe() 183 chip = oxnas->chips[i]; in oxnas_nand_remove()
|
H A D | nand_bbt.c | 253 * @chip: read the table for a specific chip, -1 read all chips; applies only if 256 * Read the bad block table for all chips starting at a given page. We assume 380 * read_abs_bbts - [GENERIC] Read the bad block table(s) for all chips starting at a given page 386 * Read the bad block table(s) for all chips starting at a given page. We 455 * @chip: create the table for a specific chip, -1 read all chips; applies only 477 pr_warn("create_bbt(): chipnr (%d) > available chips (%d)\n", in create_bbt() 528 int i, chips; in search_bbt() local 545 chips = nanddev_ntargets(&this->base); in search_bbt() 549 chips = 1; in search_bbt() 553 for (i = 0; i < chips; in search_bbt() 920 int i, chips, writeops, create, chipsel, res, res2; check_create() local 1101 int i, j, chips, block, nrblocks, update; mark_bbt_region() local [all...] |
/kernel/linux/linux-5.10/drivers/pinctrl/ |
H A D | pinctrl-mcp23s08_spi.c | 15 * A given spi_device can represent up to eight mcp23sxx chips 17 * (e.g. chips #0 and #3 might be populated, but not #1 or #2). 152 int chips; in mcp23s08_probe() local 178 chips = hweight_long(spi_present_mask); in mcp23s08_probe() 180 data = devm_kzalloc(dev, struct_size(data, chip, chips), GFP_KERNEL); in mcp23s08_probe() 187 data->mcp[addr] = &data->chip[--chips]; in mcp23s08_probe()
|
/kernel/linux/linux-6.6/drivers/pinctrl/ |
H A D | pinctrl-mcp23s08_spi.c | 15 * A given spi_device can represent up to eight mcp23sxx chips 17 * (e.g. chips #0 and #3 might be populated, but not #1 or #2). 152 int chips; in mcp23s08_probe() local 178 chips = hweight_long(spi_present_mask); in mcp23s08_probe() 180 data = devm_kzalloc(dev, struct_size(data, chip, chips), GFP_KERNEL); in mcp23s08_probe() 187 data->mcp[addr] = &data->chip[--chips]; in mcp23s08_probe()
|
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/ |
H A D | ucd9200.c | 21 enum chips { ucd9200, ucd9220, ucd9222, ucd9224, ucd9240, ucd9244, ucd9246, enum 79 enum chips chip; in ucd9200_probe() 106 chip = (enum chips)of_device_get_match_data(&client->dev); in ucd9200_probe()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | nand_bbt.c | 253 * @chip: read the table for a specific chip, -1 read all chips; applies only if 256 * Read the bad block table for all chips starting at a given page. We assume 380 * read_abs_bbts - [GENERIC] Read the bad block table(s) for all chips starting at a given page 386 * Read the bad block table(s) for all chips starting at a given page. We 484 * @chip: create the table for a specific chip, -1 read all chips; applies only 506 pr_warn("create_bbt(): chipnr (%d) > available chips (%d)\n", in create_bbt() 557 int i, chips; in search_bbt() local 574 chips = nanddev_ntargets(&this->base); in search_bbt() 578 chips = 1; in search_bbt() 582 for (i = 0; i < chips; in search_bbt() 953 int i, chips, writeops, create, chipsel, res, res2; check_create() local 1134 int i, j, chips, block, nrblocks, update; mark_bbt_region() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 75 chip = &lpddr->chips[0]; in lpddr_cmdset() 81 *chip = lpddr->chips[i]; in lpddr_cmdset() 489 struct flchip *chip = &lpddr->chips[chipnum]; in do_erase_oneblock() 517 struct flchip *chip = &lpddr->chips[chipnum]; in lpddr_read() 542 struct flchip *chip = &lpddr->chips[chipnum]; in lpddr_point() 558 /* We cannot point across chips that are virtually disjoint */ in lpddr_point() 583 chip = &lpddr->chips[chipnum]; in lpddr_point() 602 chip = &lpddr->chips[chipnum]; in lpddr_unpoint() 674 ret = do_write_buffer(map, &lpddr->chips[chipnum], in lpddr_writev() 722 struct flchip *chip = &lpddr->chips[chipnu in do_xxlock() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 75 chip = &lpddr->chips[0]; in lpddr_cmdset() 81 *chip = lpddr->chips[i]; in lpddr_cmdset() 486 struct flchip *chip = &lpddr->chips[chipnum]; in do_erase_oneblock() 514 struct flchip *chip = &lpddr->chips[chipnum]; in lpddr_read() 539 struct flchip *chip = &lpddr->chips[chipnum]; in lpddr_point() 555 /* We cannot point across chips that are virtually disjoint */ in lpddr_point() 580 chip = &lpddr->chips[chipnum]; in lpddr_point() 599 chip = &lpddr->chips[chipnum]; in lpddr_unpoint() 671 ret = do_write_buffer(map, &lpddr->chips[chipnum], in lpddr_writev() 719 struct flchip *chip = &lpddr->chips[chipnu in do_xxlock() [all...] |