sdw 55 drivers/base/regmap/regmap-sdw.c struct regmap *__regmap_init_sdw(struct sdw_slave *sdw, sdw 66 drivers/base/regmap/regmap-sdw.c return __regmap_init(&sdw->dev, ®map_sdw, sdw 67 drivers/base/regmap/regmap-sdw.c &sdw->dev, config, lock_key, lock_name); sdw 71 drivers/base/regmap/regmap-sdw.c struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, sdw 82 drivers/base/regmap/regmap-sdw.c return __devm_regmap_init(&sdw->dev, ®map_sdw, sdw 83 drivers/base/regmap/regmap-sdw.c &sdw->dev, config, lock_key, lock_name); sdw 194 drivers/soundwire/intel.c struct sdw_intel *sdw = s_file->private; sdw 195 drivers/soundwire/intel.c void __iomem *s = sdw->res->shim; sdw 196 drivers/soundwire/intel.c void __iomem *a = sdw->res->alh; sdw 260 drivers/soundwire/intel.c static void intel_debugfs_init(struct sdw_intel *sdw) sdw 262 drivers/soundwire/intel.c struct dentry *root = sdw->cdns.bus.debugfs; sdw 267 drivers/soundwire/intel.c sdw->debugfs = debugfs_create_dir("intel-sdw", root); sdw 269 drivers/soundwire/intel.c debugfs_create_file("intel-registers", 0400, sdw->debugfs, sdw, sdw 272 drivers/soundwire/intel.c sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); sdw 275 drivers/soundwire/intel.c static void intel_debugfs_exit(struct sdw_intel *sdw) sdw 277 drivers/soundwire/intel.c debugfs_remove_recursive(sdw->debugfs); sdw 280 drivers/soundwire/intel.c static void intel_debugfs_init(struct sdw_intel *sdw) {} sdw 281 drivers/soundwire/intel.c static void intel_debugfs_exit(struct sdw_intel *sdw) {} sdw 288 drivers/soundwire/intel.c static int intel_link_power_up(struct sdw_intel *sdw) sdw 290 drivers/soundwire/intel.c unsigned int link_id = sdw->instance; sdw 291 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 305 drivers/soundwire/intel.c sdw->cdns.link_up = true; sdw 309 drivers/soundwire/intel.c static int intel_shim_init(struct sdw_intel *sdw) sdw 311 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 312 drivers/soundwire/intel.c unsigned int link_id = sdw->instance; sdw 361 drivers/soundwire/intel.c dev_err(sdw->cdns.dev, "Failed to set sync period: %d\n", ret); sdw 369 drivers/soundwire/intel.c static void intel_pdi_init(struct sdw_intel *sdw, sdw 372 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 373 drivers/soundwire/intel.c unsigned int link_id = sdw->instance; sdw 386 drivers/soundwire/intel.c dev_dbg(sdw->cdns.dev, "PCM cap bd:%d in:%d out:%d\n", sdw 399 drivers/soundwire/intel.c dev_dbg(sdw->cdns.dev, "PDM cap bd:%d in:%d out:%d\n", sdw 404 drivers/soundwire/intel.c intel_pdi_get_ch_cap(struct sdw_intel *sdw, unsigned int pdi_num, bool pcm) sdw 406 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 407 drivers/soundwire/intel.c unsigned int link_id = sdw->instance; sdw 434 drivers/soundwire/intel.c static int intel_pdi_get_ch_update(struct sdw_intel *sdw, sdw 442 drivers/soundwire/intel.c pdi->ch_count = intel_pdi_get_ch_cap(sdw, pdi->num, pcm); sdw 451 drivers/soundwire/intel.c static int intel_pdi_stream_ch_update(struct sdw_intel *sdw, sdw 454 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->bd, stream->num_bd, sdw 457 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->in, stream->num_in, sdw 460 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->out, stream->num_out, sdw 466 drivers/soundwire/intel.c static int intel_pdi_ch_update(struct sdw_intel *sdw) sdw 469 drivers/soundwire/intel.c intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm, true); sdw 470 drivers/soundwire/intel.c intel_pdi_stream_ch_update(sdw, &sdw->cdns.pdm, false); sdw 476 drivers/soundwire/intel.c intel_pdi_shim_configure(struct sdw_intel *sdw, struct sdw_cdns_pdi *pdi) sdw 478 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 479 drivers/soundwire/intel.c unsigned int link_id = sdw->instance; sdw 508 drivers/soundwire/intel.c intel_pdi_alh_configure(struct sdw_intel *sdw, struct sdw_cdns_pdi *pdi) sdw 510 drivers/soundwire/intel.c void __iomem *alh = sdw->res->alh; sdw 511 drivers/soundwire/intel.c unsigned int link_id = sdw->instance; sdw 531 drivers/soundwire/intel.c static int intel_config_stream(struct sdw_intel *sdw, sdw 536 drivers/soundwire/intel.c struct sdw_intel_link_res *res = sdw->res; sdw 552 drivers/soundwire/intel.c struct sdw_intel *sdw = cdns_to_intel(cdns); sdw 553 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 562 drivers/soundwire/intel.c sync_reg |= SDW_SHIM_SYNC_CMDSYNC << sdw->instance; sdw 571 drivers/soundwire/intel.c struct sdw_intel *sdw = cdns_to_intel(cdns); sdw 572 drivers/soundwire/intel.c void __iomem *shim = sdw->res->shim; sdw 603 drivers/soundwire/intel.c dev_err(sdw->cdns.dev, "Post bank switch failed: %d\n", ret); sdw 612 drivers/soundwire/intel.c static struct sdw_cdns_port *intel_alloc_port(struct sdw_intel *sdw, sdw 615 drivers/soundwire/intel.c struct sdw_cdns *cdns = &sdw->cdns; sdw 640 drivers/soundwire/intel.c intel_pdi_shim_configure(sdw, port->pdi); sdw 643 drivers/soundwire/intel.c intel_pdi_alh_configure(sdw, port->pdi); sdw 677 drivers/soundwire/intel.c struct sdw_intel *sdw = cdns_to_intel(cdns); sdw 712 drivers/soundwire/intel.c dma->port[i] = intel_alloc_port(sdw, ch, dir, pcm); sdw 721 drivers/soundwire/intel.c ret = intel_config_stream(sdw, substream, dai, params, sdw 892 drivers/soundwire/intel.c static int intel_register_dai(struct sdw_intel *sdw) sdw 894 drivers/soundwire/intel.c struct sdw_cdns *cdns = &sdw->cdns; sdw 1008 drivers/soundwire/intel.c struct sdw_intel *sdw; sdw 1011 drivers/soundwire/intel.c sdw = devm_kzalloc(&pdev->dev, sizeof(*sdw), GFP_KERNEL); sdw 1012 drivers/soundwire/intel.c if (!sdw) sdw 1015 drivers/soundwire/intel.c sdw->instance = pdev->id; sdw 1016 drivers/soundwire/intel.c sdw->res = dev_get_platdata(&pdev->dev); sdw 1017 drivers/soundwire/intel.c sdw->cdns.dev = &pdev->dev; sdw 1018 drivers/soundwire/intel.c sdw->cdns.registers = sdw->res->registers; sdw 1019 drivers/soundwire/intel.c sdw->cdns.instance = sdw->instance; sdw 1020 drivers/soundwire/intel.c sdw->cdns.msg_count = 0; sdw 1021 drivers/soundwire/intel.c sdw->cdns.bus.dev = &pdev->dev; sdw 1022 drivers/soundwire/intel.c sdw->cdns.bus.link_id = pdev->id; sdw 1024 drivers/soundwire/intel.c sdw_cdns_probe(&sdw->cdns); sdw 1028 drivers/soundwire/intel.c sdw->cdns.bus.ops = &sdw_intel_ops; sdw 1030 drivers/soundwire/intel.c platform_set_drvdata(pdev, sdw); sdw 1032 drivers/soundwire/intel.c ret = sdw_add_bus_master(&sdw->cdns.bus); sdw 1038 drivers/soundwire/intel.c if (sdw->cdns.bus.prop.hw_disabled) { sdw 1040 drivers/soundwire/intel.c sdw->cdns.bus.link_id); sdw 1045 drivers/soundwire/intel.c intel_link_power_up(sdw); sdw 1046 drivers/soundwire/intel.c intel_shim_init(sdw); sdw 1048 drivers/soundwire/intel.c ret = sdw_cdns_init(&sdw->cdns); sdw 1052 drivers/soundwire/intel.c ret = sdw_cdns_enable_interrupt(&sdw->cdns); sdw 1055 drivers/soundwire/intel.c intel_pdi_init(sdw, &config); sdw 1056 drivers/soundwire/intel.c ret = sdw_cdns_pdi_init(&sdw->cdns, config); sdw 1060 drivers/soundwire/intel.c intel_pdi_ch_update(sdw); sdw 1063 drivers/soundwire/intel.c ret = request_threaded_irq(sdw->res->irq, sdw_cdns_irq, sdw_cdns_thread, sdw 1064 drivers/soundwire/intel.c IRQF_SHARED, KBUILD_MODNAME, &sdw->cdns); sdw 1066 drivers/soundwire/intel.c dev_err(sdw->cdns.dev, "unable to grab IRQ %d, disabling device\n", sdw 1067 drivers/soundwire/intel.c sdw->res->irq); sdw 1072 drivers/soundwire/intel.c ret = intel_register_dai(sdw); sdw 1074 drivers/soundwire/intel.c dev_err(sdw->cdns.dev, "DAI registration failed: %d\n", ret); sdw 1075 drivers/soundwire/intel.c snd_soc_unregister_component(sdw->cdns.dev); sdw 1079 drivers/soundwire/intel.c intel_debugfs_init(sdw); sdw 1084 drivers/soundwire/intel.c free_irq(sdw->res->irq, sdw); sdw 1086 drivers/soundwire/intel.c sdw_delete_bus_master(&sdw->cdns.bus); sdw 1093 drivers/soundwire/intel.c struct sdw_intel *sdw; sdw 1095 drivers/soundwire/intel.c sdw = platform_get_drvdata(pdev); sdw 1097 drivers/soundwire/intel.c if (!sdw->cdns.bus.prop.hw_disabled) { sdw 1098 drivers/soundwire/intel.c intel_debugfs_exit(sdw); sdw 1099 drivers/soundwire/intel.c free_irq(sdw->res->irq, sdw); sdw 1100 drivers/soundwire/intel.c snd_soc_unregister_component(sdw->cdns.dev); sdw 1102 drivers/soundwire/intel.c sdw_delete_bus_master(&sdw->cdns.bus); sdw 572 include/linux/regmap.h struct regmap *__regmap_init_sdw(struct sdw_slave *sdw, sdw 617 include/linux/regmap.h struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, sdw 811 include/linux/regmap.h #define regmap_init_sdw(sdw, config) \ sdw 813 include/linux/regmap.h sdw, config) sdw 970 include/linux/regmap.h #define devm_regmap_init_sdw(sdw, config) \ sdw 972 include/linux/regmap.h sdw, config) sdw 527 include/linux/soundwire/sdw.h int (*read_prop)(struct sdw_slave *sdw); sdw 572 include/linux/soundwire/sdw.h int (*probe)(struct sdw_slave *sdw, sdw 574 include/linux/soundwire/sdw.h int (*remove)(struct sdw_slave *sdw); sdw 575 include/linux/soundwire/sdw.h void (*shutdown)(struct sdw_slave *sdw);