Lines Matching full:cascade

94 	u8 val = readb(docg3->cascade->base + reg);  in doc_readb()
102 u16 val = readw(docg3->cascade->base + reg); in doc_readw()
110 writeb(val, docg3->cascade->base + reg); in doc_writeb()
116 writew(val, docg3->cascade->base + reg); in doc_writew()
650 numerrs = bch_decode(docg3->cascade->bch, NULL, in doc_ecc_bch_fix_data()
898 mutex_lock(&docg3->cascade->lock); in doc_read_oob()
977 mutex_unlock(&docg3->cascade->lock); in doc_read_oob()
1199 mutex_lock(&docg3->cascade->lock); in doc_erase()
1207 mutex_unlock(&docg3->cascade->lock); in doc_erase()
1436 mutex_lock(&docg3->cascade->lock); in doc_write_oob()
1459 mutex_unlock(&docg3->cascade->lock); in doc_write_oob()
1482 mutex_lock(&docg3->cascade->lock); in dps0_is_key_locked()
1486 mutex_unlock(&docg3->cascade->lock); in dps0_is_key_locked()
1497 mutex_lock(&docg3->cascade->lock); in dps1_is_key_locked()
1501 mutex_unlock(&docg3->cascade->lock); in dps1_is_key_locked()
1516 mutex_lock(&docg3->cascade->lock); in dps0_insert_key()
1521 mutex_unlock(&docg3->cascade->lock); in dps0_insert_key()
1535 mutex_lock(&docg3->cascade->lock); in dps1_insert_key()
1540 mutex_unlock(&docg3->cascade->lock); in dps1_insert_key()
1556 struct docg3_cascade *cascade) in doc_register_sysfs() argument
1564 floor < DOC_MAX_NBFLOORS && cascade->floors[floor]; in doc_register_sysfs()
1586 struct docg3_cascade *cascade) in doc_unregister_sysfs() argument
1591 for (floor = 0; floor < DOC_MAX_NBFLOORS && cascade->floors[floor]; in doc_unregister_sysfs()
1606 mutex_lock(&docg3->cascade->lock); in flashcontrol_show()
1608 mutex_unlock(&docg3->cascade->lock); in flashcontrol_show()
1628 mutex_lock(&docg3->cascade->lock); in asic_mode_show()
1631 mutex_unlock(&docg3->cascade->lock); in asic_mode_show()
1664 mutex_lock(&docg3->cascade->lock); in device_id_show()
1666 mutex_unlock(&docg3->cascade->lock); in device_id_show()
1678 mutex_lock(&docg3->cascade->lock); in protection_show()
1686 mutex_unlock(&docg3->cascade->lock); in protection_show()
1794 * @cascade: the cascade of chips this devices will belong to
1805 doc_probe_device(struct docg3_cascade *cascade, int floor, struct device *dev) in doc_probe_device() argument
1829 docg3->cascade = cascade; in doc_probe_device()
1846 docg3->cascade->base, floor); in doc_probe_device()
1894 struct docg3_cascade *cascade; in docg3_resume() local
1898 cascade = platform_get_drvdata(pdev); in docg3_resume()
1899 docg3_floors = cascade->floors; in docg3_resume()
1921 struct docg3_cascade *cascade; in docg3_suspend() local
1926 cascade = platform_get_drvdata(pdev); in docg3_suspend()
1927 docg3_floors = cascade->floors; in docg3_suspend()
1977 struct docg3_cascade *cascade; in docg3_probe() local
1993 cascade = devm_kcalloc(dev, DOC_MAX_NBFLOORS, sizeof(*cascade), in docg3_probe()
1995 if (!cascade) in docg3_probe()
1997 cascade->base = base; in docg3_probe()
1998 mutex_init(&cascade->lock); in docg3_probe()
1999 cascade->bch = bch_init(DOC_ECC_BCH_M, DOC_ECC_BCH_T, in docg3_probe()
2001 if (!cascade->bch) in docg3_probe()
2005 mtd = doc_probe_device(cascade, floor, dev); in docg3_probe()
2016 cascade->floors[floor] = mtd; in docg3_probe()
2022 doc_dbg_register(cascade->floors[floor]); in docg3_probe()
2025 ret = doc_register_sysfs(pdev, cascade); in docg3_probe()
2029 platform_set_drvdata(pdev, cascade); in docg3_probe()
2036 bch_free(cascade->bch); in docg3_probe()
2038 if (cascade->floors[floor]) in docg3_probe()
2039 doc_release_device(cascade->floors[floor]); in docg3_probe()
2051 struct docg3_cascade *cascade = platform_get_drvdata(pdev); in docg3_release() local
2052 struct docg3 *docg3 = cascade->floors[0]->priv; in docg3_release()
2055 doc_unregister_sysfs(pdev, cascade); in docg3_release()
2057 if (cascade->floors[floor]) in docg3_release()
2058 doc_release_device(cascade->floors[floor]); in docg3_release()
2060 bch_free(docg3->cascade->bch); in docg3_release()