Lines Matching full:soc
14 struct brcmnand_soc soc; member
41 static inline struct brcmnand_bcma_soc *to_bcma_soc(struct brcmnand_soc *soc) in to_bcma_soc() argument
43 return container_of(soc, struct brcmnand_bcma_soc, soc); in to_bcma_soc()
46 static u32 brcmnand_bcma_read_reg(struct brcmnand_soc *soc, u32 offset) in brcmnand_bcma_read_reg() argument
48 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc); in brcmnand_bcma_read_reg()
65 static void brcmnand_bcma_write_reg(struct brcmnand_soc *soc, u32 val, in brcmnand_bcma_write_reg() argument
68 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc); in brcmnand_bcma_write_reg()
88 static void brcmnand_bcma_prepare_data_bus(struct brcmnand_soc *soc, bool prepare, in brcmnand_bcma_prepare_data_bus() argument
91 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc); in brcmnand_bcma_prepare_data_bus()
102 struct brcmnand_bcma_soc *soc; in brcmnand_bcma_nand_probe() local
104 soc = devm_kzalloc(&pdev->dev, sizeof(*soc), GFP_KERNEL); in brcmnand_bcma_nand_probe()
105 if (!soc) in brcmnand_bcma_nand_probe()
108 soc->cc = container_of(nflash, struct bcma_drv_cc, nflash); in brcmnand_bcma_nand_probe()
109 soc->soc.prepare_data_bus = brcmnand_bcma_prepare_data_bus; in brcmnand_bcma_nand_probe()
110 soc->soc.ops = &brcmnand_bcma_io_ops; in brcmnand_bcma_nand_probe()
112 if (soc->cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) { in brcmnand_bcma_nand_probe()
117 return brcmnand_probe(pdev, &soc->soc); in brcmnand_bcma_nand_probe()