Lines Matching defs:link

30 /* alloc, init and add link devices */
38 struct sdw_intel_link_res *link;
52 /* we don't use an IDA since we already have a link ID */
62 /* Add link information used in the driver probe */
63 link = &ldev->link_res;
64 link->hw_ops = res->hw_ops;
65 link->mmio_base = res->mmio_base;
67 link->registers = res->mmio_base + SDW_LINK_BASE
69 link->ip_offset = 0;
70 link->shim = res->mmio_base + res->shim_base;
71 link->alh = res->mmio_base + res->alh_base;
72 link->shim_lock = &ctx->shim_lock;
74 link->registers = res->mmio_base + SDW_IP_BASE(link_id);
75 link->ip_offset = SDW_CADENCE_MCP_IP_OFFSET;
76 link->shim = res->mmio_base + SDW_SHIM2_GENERIC_BASE(link_id);
77 link->shim_vs = res->mmio_base + SDW_SHIM2_VS_BASE(link_id);
78 link->shim_lock = res->eml_lock;
81 link->ops = res->ops;
82 link->dev = res->dev;
84 link->clock_stop_quirks = res->clock_stop_quirks;
85 link->shim_mask = &ctx->shim_mask;
86 link->link_mask = ctx->link_mask;
88 link->hbus = res->hbus;
93 dev_err(res->parent, "failed to initialize link dev %s link_id %d\n",
101 dev_err(res->parent, "failed to add link dev %s link_id %d\n",
144 struct sdw_intel_link_res *link;
146 list_for_each_entry(link, &ctx->link_list, list)
147 sdw_cdns_irq(irq, link->cdns);
156 struct sdw_intel_link_res *link;
194 * allocate the array of pointers. The link-specific data is allocated
196 * If some links are disabled, the link pointer will remain NULL. Given that the
221 * init and add a device for each link
223 * The name of the device will be soundwire_intel.link.[i],
230 "link",
235 link = &ldev->link_res;
236 link->cdns = auxiliary_get_drvdata(&ldev->auxdev);
238 if (!link->cdns) {
239 dev_err(&adev->dev, "failed to get link->cdns\n");
247 list_add_tail(&link->list, &ctx->link_list);
248 bus = &link->cdns->bus;
260 list_for_each_entry(link, &ctx->link_list, list) {
261 bus = &link->cdns->bus;