dwsmmio 61 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio = container_of(dws, struct dw_spi_mmio, dws); dwsmmio 62 drivers/spi/spi-dw-mmio.c struct dw_spi_mscc *dwsmscc = dwsmmio->priv; dwsmmio 78 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio, dwsmmio 105 drivers/spi/spi-dw-mmio.c dwsmmio->dws.set_cs = dw_spi_mscc_set_cs; dwsmmio 106 drivers/spi/spi-dw-mmio.c dwsmmio->priv = dwsmscc; dwsmmio 112 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio) dwsmmio 114 drivers/spi/spi-dw-mmio.c return dw_spi_mscc_init(pdev, dwsmmio, "mscc,ocelot-cpu-syscon", dwsmmio 119 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio) dwsmmio 121 drivers/spi/spi-dw-mmio.c return dw_spi_mscc_init(pdev, dwsmmio, "mscc,jaguar2-cpu-syscon", dwsmmio 126 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio) dwsmmio 128 drivers/spi/spi-dw-mmio.c dwsmmio->dws.cs_override = 1; dwsmmio 136 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio); dwsmmio 137 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio; dwsmmio 142 drivers/spi/spi-dw-mmio.c dwsmmio = devm_kzalloc(&pdev->dev, sizeof(struct dw_spi_mmio), dwsmmio 144 drivers/spi/spi-dw-mmio.c if (!dwsmmio) dwsmmio 147 drivers/spi/spi-dw-mmio.c dws = &dwsmmio->dws; dwsmmio 160 drivers/spi/spi-dw-mmio.c dwsmmio->clk = devm_clk_get(&pdev->dev, NULL); dwsmmio 161 drivers/spi/spi-dw-mmio.c if (IS_ERR(dwsmmio->clk)) dwsmmio 162 drivers/spi/spi-dw-mmio.c return PTR_ERR(dwsmmio->clk); dwsmmio 163 drivers/spi/spi-dw-mmio.c ret = clk_prepare_enable(dwsmmio->clk); dwsmmio 168 drivers/spi/spi-dw-mmio.c dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk"); dwsmmio 169 drivers/spi/spi-dw-mmio.c if (IS_ERR(dwsmmio->pclk)) { dwsmmio 170 drivers/spi/spi-dw-mmio.c ret = PTR_ERR(dwsmmio->pclk); dwsmmio 173 drivers/spi/spi-dw-mmio.c ret = clk_prepare_enable(dwsmmio->pclk); dwsmmio 179 drivers/spi/spi-dw-mmio.c dws->max_freq = clk_get_rate(dwsmmio->clk); dwsmmio 191 drivers/spi/spi-dw-mmio.c ret = init_func(pdev, dwsmmio); dwsmmio 200 drivers/spi/spi-dw-mmio.c platform_set_drvdata(pdev, dwsmmio); dwsmmio 204 drivers/spi/spi-dw-mmio.c clk_disable_unprepare(dwsmmio->pclk); dwsmmio 206 drivers/spi/spi-dw-mmio.c clk_disable_unprepare(dwsmmio->clk); dwsmmio 212 drivers/spi/spi-dw-mmio.c struct dw_spi_mmio *dwsmmio = platform_get_drvdata(pdev); dwsmmio 214 drivers/spi/spi-dw-mmio.c dw_spi_remove_host(&dwsmmio->dws); dwsmmio 215 drivers/spi/spi-dw-mmio.c clk_disable_unprepare(dwsmmio->pclk); dwsmmio 216 drivers/spi/spi-dw-mmio.c clk_disable_unprepare(dwsmmio->clk);