sdc 2180 drivers/clk/bcm/clk-bcm2835.c static int bcm2835_mark_sdc_parent_critical(struct clk *sdc) sdc 2182 drivers/clk/bcm/clk-bcm2835.c struct clk *parent = clk_get_parent(sdc); sdc 1236 drivers/dma/sun6i-dma.c struct sun6i_dma_dev *sdc; sdc 1240 drivers/dma/sun6i-dma.c sdc = devm_kzalloc(&pdev->dev, sizeof(*sdc), GFP_KERNEL); sdc 1241 drivers/dma/sun6i-dma.c if (!sdc) sdc 1244 drivers/dma/sun6i-dma.c sdc->cfg = of_device_get_match_data(&pdev->dev); sdc 1245 drivers/dma/sun6i-dma.c if (!sdc->cfg) sdc 1249 drivers/dma/sun6i-dma.c sdc->base = devm_ioremap_resource(&pdev->dev, res); sdc 1250 drivers/dma/sun6i-dma.c if (IS_ERR(sdc->base)) sdc 1251 drivers/dma/sun6i-dma.c return PTR_ERR(sdc->base); sdc 1253 drivers/dma/sun6i-dma.c sdc->irq = platform_get_irq(pdev, 0); sdc 1254 drivers/dma/sun6i-dma.c if (sdc->irq < 0) sdc 1255 drivers/dma/sun6i-dma.c return sdc->irq; sdc 1257 drivers/dma/sun6i-dma.c sdc->clk = devm_clk_get(&pdev->dev, NULL); sdc 1258 drivers/dma/sun6i-dma.c if (IS_ERR(sdc->clk)) { sdc 1260 drivers/dma/sun6i-dma.c return PTR_ERR(sdc->clk); sdc 1263 drivers/dma/sun6i-dma.c if (sdc->cfg->has_mbus_clk) { sdc 1264 drivers/dma/sun6i-dma.c sdc->clk_mbus = devm_clk_get(&pdev->dev, "mbus"); sdc 1265 drivers/dma/sun6i-dma.c if (IS_ERR(sdc->clk_mbus)) { sdc 1267 drivers/dma/sun6i-dma.c return PTR_ERR(sdc->clk_mbus); sdc 1271 drivers/dma/sun6i-dma.c sdc->rstc = devm_reset_control_get(&pdev->dev, NULL); sdc 1272 drivers/dma/sun6i-dma.c if (IS_ERR(sdc->rstc)) { sdc 1274 drivers/dma/sun6i-dma.c return PTR_ERR(sdc->rstc); sdc 1277 drivers/dma/sun6i-dma.c sdc->pool = dmam_pool_create(dev_name(&pdev->dev), &pdev->dev, sdc 1279 drivers/dma/sun6i-dma.c if (!sdc->pool) { sdc 1284 drivers/dma/sun6i-dma.c platform_set_drvdata(pdev, sdc); sdc 1285 drivers/dma/sun6i-dma.c INIT_LIST_HEAD(&sdc->pending); sdc 1286 drivers/dma/sun6i-dma.c spin_lock_init(&sdc->lock); sdc 1288 drivers/dma/sun6i-dma.c dma_cap_set(DMA_PRIVATE, sdc->slave.cap_mask); sdc 1289 drivers/dma/sun6i-dma.c dma_cap_set(DMA_MEMCPY, sdc->slave.cap_mask); sdc 1290 drivers/dma/sun6i-dma.c dma_cap_set(DMA_SLAVE, sdc->slave.cap_mask); sdc 1291 drivers/dma/sun6i-dma.c dma_cap_set(DMA_CYCLIC, sdc->slave.cap_mask); sdc 1293 drivers/dma/sun6i-dma.c INIT_LIST_HEAD(&sdc->slave.channels); sdc 1294 drivers/dma/sun6i-dma.c sdc->slave.device_free_chan_resources = sun6i_dma_free_chan_resources; sdc 1295 drivers/dma/sun6i-dma.c sdc->slave.device_tx_status = sun6i_dma_tx_status; sdc 1296 drivers/dma/sun6i-dma.c sdc->slave.device_issue_pending = sun6i_dma_issue_pending; sdc 1297 drivers/dma/sun6i-dma.c sdc->slave.device_prep_slave_sg = sun6i_dma_prep_slave_sg; sdc 1298 drivers/dma/sun6i-dma.c sdc->slave.device_prep_dma_memcpy = sun6i_dma_prep_dma_memcpy; sdc 1299 drivers/dma/sun6i-dma.c sdc->slave.device_prep_dma_cyclic = sun6i_dma_prep_dma_cyclic; sdc 1300 drivers/dma/sun6i-dma.c sdc->slave.copy_align = DMAENGINE_ALIGN_4_BYTES; sdc 1301 drivers/dma/sun6i-dma.c sdc->slave.device_config = sun6i_dma_config; sdc 1302 drivers/dma/sun6i-dma.c sdc->slave.device_pause = sun6i_dma_pause; sdc 1303 drivers/dma/sun6i-dma.c sdc->slave.device_resume = sun6i_dma_resume; sdc 1304 drivers/dma/sun6i-dma.c sdc->slave.device_terminate_all = sun6i_dma_terminate_all; sdc 1305 drivers/dma/sun6i-dma.c sdc->slave.src_addr_widths = sdc->cfg->src_addr_widths; sdc 1306 drivers/dma/sun6i-dma.c sdc->slave.dst_addr_widths = sdc->cfg->dst_addr_widths; sdc 1307 drivers/dma/sun6i-dma.c sdc->slave.directions = BIT(DMA_DEV_TO_MEM) | sdc 1309 drivers/dma/sun6i-dma.c sdc->slave.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; sdc 1310 drivers/dma/sun6i-dma.c sdc->slave.dev = &pdev->dev; sdc 1312 drivers/dma/sun6i-dma.c sdc->num_pchans = sdc->cfg->nr_max_channels; sdc 1313 drivers/dma/sun6i-dma.c sdc->num_vchans = sdc->cfg->nr_max_vchans; sdc 1314 drivers/dma/sun6i-dma.c sdc->max_request = sdc->cfg->nr_max_requests; sdc 1316 drivers/dma/sun6i-dma.c ret = of_property_read_u32(np, "dma-channels", &sdc->num_pchans); sdc 1317 drivers/dma/sun6i-dma.c if (ret && !sdc->num_pchans) { sdc 1322 drivers/dma/sun6i-dma.c ret = of_property_read_u32(np, "dma-requests", &sdc->max_request); sdc 1323 drivers/dma/sun6i-dma.c if (ret && !sdc->max_request) { sdc 1326 drivers/dma/sun6i-dma.c sdc->max_request = DMA_CHAN_MAX_DRQ_A31; sdc 1333 drivers/dma/sun6i-dma.c if (!sdc->num_vchans) sdc 1334 drivers/dma/sun6i-dma.c sdc->num_vchans = 2 * (sdc->max_request + 1); sdc 1336 drivers/dma/sun6i-dma.c sdc->pchans = devm_kcalloc(&pdev->dev, sdc->num_pchans, sdc 1338 drivers/dma/sun6i-dma.c if (!sdc->pchans) sdc 1341 drivers/dma/sun6i-dma.c sdc->vchans = devm_kcalloc(&pdev->dev, sdc->num_vchans, sdc 1343 drivers/dma/sun6i-dma.c if (!sdc->vchans) sdc 1346 drivers/dma/sun6i-dma.c tasklet_init(&sdc->task, sun6i_dma_tasklet, (unsigned long)sdc); sdc 1348 drivers/dma/sun6i-dma.c for (i = 0; i < sdc->num_pchans; i++) { sdc 1349 drivers/dma/sun6i-dma.c struct sun6i_pchan *pchan = &sdc->pchans[i]; sdc 1352 drivers/dma/sun6i-dma.c pchan->base = sdc->base + 0x100 + i * 0x40; sdc 1355 drivers/dma/sun6i-dma.c for (i = 0; i < sdc->num_vchans; i++) { sdc 1356 drivers/dma/sun6i-dma.c struct sun6i_vchan *vchan = &sdc->vchans[i]; sdc 1360 drivers/dma/sun6i-dma.c vchan_init(&vchan->vc, &sdc->slave); sdc 1363 drivers/dma/sun6i-dma.c ret = reset_control_deassert(sdc->rstc); sdc 1369 drivers/dma/sun6i-dma.c ret = clk_prepare_enable(sdc->clk); sdc 1375 drivers/dma/sun6i-dma.c if (sdc->cfg->has_mbus_clk) { sdc 1376 drivers/dma/sun6i-dma.c ret = clk_prepare_enable(sdc->clk_mbus); sdc 1383 drivers/dma/sun6i-dma.c ret = devm_request_irq(&pdev->dev, sdc->irq, sun6i_dma_interrupt, 0, sdc 1384 drivers/dma/sun6i-dma.c dev_name(&pdev->dev), sdc); sdc 1390 drivers/dma/sun6i-dma.c ret = dma_async_device_register(&sdc->slave); sdc 1397 drivers/dma/sun6i-dma.c sdc); sdc 1403 drivers/dma/sun6i-dma.c if (sdc->cfg->clock_autogate_enable) sdc 1404 drivers/dma/sun6i-dma.c sdc->cfg->clock_autogate_enable(sdc); sdc 1409 drivers/dma/sun6i-dma.c dma_async_device_unregister(&sdc->slave); sdc 1411 drivers/dma/sun6i-dma.c sun6i_kill_tasklet(sdc); sdc 1413 drivers/dma/sun6i-dma.c clk_disable_unprepare(sdc->clk_mbus); sdc 1415 drivers/dma/sun6i-dma.c clk_disable_unprepare(sdc->clk); sdc 1417 drivers/dma/sun6i-dma.c reset_control_assert(sdc->rstc); sdc 1419 drivers/dma/sun6i-dma.c sun6i_dma_free(sdc); sdc 1425 drivers/dma/sun6i-dma.c struct sun6i_dma_dev *sdc = platform_get_drvdata(pdev); sdc 1428 drivers/dma/sun6i-dma.c dma_async_device_unregister(&sdc->slave); sdc 1430 drivers/dma/sun6i-dma.c sun6i_kill_tasklet(sdc); sdc 1432 drivers/dma/sun6i-dma.c clk_disable_unprepare(sdc->clk_mbus); sdc 1433 drivers/dma/sun6i-dma.c clk_disable_unprepare(sdc->clk); sdc 1434 drivers/dma/sun6i-dma.c reset_control_assert(sdc->rstc); sdc 1436 drivers/dma/sun6i-dma.c sun6i_dma_free(sdc); sdc 36 drivers/mmc/host/sdhci-of-aspeed.c static void aspeed_sdc_configure_8bit_mode(struct aspeed_sdc *sdc, sdc 43 drivers/mmc/host/sdhci-of-aspeed.c spin_lock(&sdc->lock); sdc 44 drivers/mmc/host/sdhci-of-aspeed.c info = readl(sdc->regs + ASPEED_SDC_INFO); sdc 49 drivers/mmc/host/sdhci-of-aspeed.c writel(info, sdc->regs + ASPEED_SDC_INFO); sdc 50 drivers/mmc/host/sdhci-of-aspeed.c spin_unlock(&sdc->lock); sdc 241 drivers/mmc/host/sdhci-of-aspeed.c struct aspeed_sdc *sdc; sdc 244 drivers/mmc/host/sdhci-of-aspeed.c sdc = devm_kzalloc(&pdev->dev, sizeof(*sdc), GFP_KERNEL); sdc 245 drivers/mmc/host/sdhci-of-aspeed.c if (!sdc) sdc 248 drivers/mmc/host/sdhci-of-aspeed.c spin_lock_init(&sdc->lock); sdc 250 drivers/mmc/host/sdhci-of-aspeed.c sdc->clk = devm_clk_get(&pdev->dev, NULL); sdc 251 drivers/mmc/host/sdhci-of-aspeed.c if (IS_ERR(sdc->clk)) sdc 252 drivers/mmc/host/sdhci-of-aspeed.c return PTR_ERR(sdc->clk); sdc 254 drivers/mmc/host/sdhci-of-aspeed.c ret = clk_prepare_enable(sdc->clk); sdc 260 drivers/mmc/host/sdhci-of-aspeed.c sdc->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); sdc 261 drivers/mmc/host/sdhci-of-aspeed.c sdc->regs = devm_ioremap_resource(&pdev->dev, sdc->res); sdc 262 drivers/mmc/host/sdhci-of-aspeed.c if (IS_ERR(sdc->regs)) { sdc 263 drivers/mmc/host/sdhci-of-aspeed.c ret = PTR_ERR(sdc->regs); sdc 267 drivers/mmc/host/sdhci-of-aspeed.c dev_set_drvdata(&pdev->dev, sdc); sdc 284 drivers/mmc/host/sdhci-of-aspeed.c clk_disable_unprepare(sdc->clk); sdc 290 drivers/mmc/host/sdhci-of-aspeed.c struct aspeed_sdc *sdc = dev_get_drvdata(&pdev->dev); sdc 292 drivers/mmc/host/sdhci-of-aspeed.c clk_disable_unprepare(sdc->clk); sdc 2132 drivers/pinctrl/tegra/pinctrl-tegra20.c MUX_PG(sdc, PWM, TWC, SDIO3, SPI3, 0x18, 1, 0x8c, 12, 0xac, 28), sdc 45 fs/xfs/scrub/dir.c struct xchk_dir_ctx *sdc, sdc 50 fs/xfs/scrub/dir.c struct xfs_mount *mp = sdc->sc->mp; sdc 57 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, sdc 70 fs/xfs/scrub/dir.c error = xfs_iget(mp, sdc->sc->tp, inum, 0, 0, &ip); sdc 71 fs/xfs/scrub/dir.c if (!xchk_fblock_xref_process_error(sdc->sc, XFS_DATA_FORK, offset, sdc 79 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); sdc 104 fs/xfs/scrub/dir.c struct xchk_dir_ctx *sdc; sdc 110 fs/xfs/scrub/dir.c sdc = container_of(dir_iter, struct xchk_dir_ctx, dir_iter); sdc 111 fs/xfs/scrub/dir.c ip = sdc->sc->ip; sdc 118 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); sdc 124 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); sdc 131 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, sdc 134 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, sdc 142 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, sdc 145 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, sdc 154 fs/xfs/scrub/dir.c error = xfs_dir_lookup(sdc->sc->tp, ip, &xname, &lookup_ino, NULL); sdc 155 fs/xfs/scrub/dir.c if (!xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, offset, sdc 159 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); sdc 164 fs/xfs/scrub/dir.c error = xchk_dir_check_ftype(sdc, offset, lookup_ino, type); sdc 173 fs/xfs/scrub/dir.c if (error == 0 && sdc->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) sdc 771 fs/xfs/scrub/dir.c struct xchk_dir_ctx sdc = { sdc 832 fs/xfs/scrub/dir.c error = xfs_readdir(sc->tp, sc->ip, &sdc.dir_iter, bufsize); sdc 836 fs/xfs/scrub/dir.c if (oldpos == sdc.dir_iter.pos) sdc 838 fs/xfs/scrub/dir.c oldpos = sdc.dir_iter.pos;