Home
last modified time | relevance | path

Searched refs:dchip (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/mtd/nand/raw/
Ddenali_pci.c35 struct denali_chip *dchip; in denali_pci_probe() local
95 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_pci_probe()
97 if (!dchip) { in denali_pci_probe()
102 dchip->chip.base.ecc.user_conf.flags |= NAND_ECC_MAXIMIZE_STRENGTH; in denali_pci_probe()
104 dchip->nsels = nsels; in denali_pci_probe()
107 dchip->sels[i].bank = i; in denali_pci_probe()
109 ret = denali_chip_init(denali, dchip); in denali_pci_probe()
Ddenali_dt.c85 struct denali_chip *dchip; in denali_dt_chip_init() local
93 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_dt_chip_init()
95 if (!dchip) in denali_dt_chip_init()
98 dchip->nsels = nsels; in denali_dt_chip_init()
105 dchip->sels[i].bank = bank; in denali_dt_chip_init()
107 nand_set_flash_node(&dchip->chip, chip_np); in denali_dt_chip_init()
110 return denali_chip_init(denali, dchip); in denali_dt_chip_init()
Ddenali.c1180 struct denali_chip *dchip) in denali_chip_init() argument
1182 struct nand_chip *chip = &dchip->chip; in denali_chip_init()
1190 for (i = 0; i < dchip->nsels; i++) { in denali_chip_init()
1191 unsigned int bank = dchip->sels[i].bank; in denali_chip_init()
1199 if (bank == dchip->sels[j].bank) { in denali_chip_init()
1251 ret = nand_scan(chip, dchip->nsels); in denali_chip_init()
1261 list_add_tail(&dchip->node, &denali->chips); in denali_chip_init()
1363 struct denali_chip *dchip, *tmp; in denali_remove() local
1367 list_for_each_entry_safe(dchip, tmp, &denali->chips, node) { in denali_remove()
1368 chip = &dchip->chip; in denali_remove()
[all …]
Ddenali.h394 struct denali_chip *dchip);