Searched refs:attached_device (Results 1 – 3 of 3) sorted by relevance
20 #define to_mcp(d) container_of(d, struct mcp, attached_device)166 struct mcp *mcp = container_of(dev, struct mcp, attached_device); in mcp_release()178 device_initialize(&mcp->attached_device); in mcp_host_alloc()179 mcp->attached_device.parent = parent; in mcp_host_alloc()180 mcp->attached_device.bus = &mcp_bus_type; in mcp_host_alloc()181 mcp->attached_device.dma_mask = parent->dma_mask; in mcp_host_alloc()182 mcp->attached_device.release = mcp_release; in mcp_host_alloc()190 mcp->attached_device.platform_data = pdata; in mcp_host_add()191 dev_set_name(&mcp->attached_device, "mcp0"); in mcp_host_add()192 return device_add(&mcp->attached_device); in mcp_host_add()[all …]
365 struct ucb1x00_plat_data *pdata = ucb->mcp->attached_device.platform_data; in ucb1x00_irq_set_wake()494 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_probe()520 ucb->dev.parent = &mcp->attached_device; in ucb1x00_probe()613 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_remove()
21 struct device attached_device; member55 #define mcp_get_drvdata(mcp) dev_get_drvdata(&(mcp)->attached_device)56 #define mcp_set_drvdata(mcp,d) dev_set_drvdata(&(mcp)->attached_device, d)