Lines Matching refs:tdev

42 	struct tc_dev *tdev;  in tc_bus_add_devices()  local
85 tdev = kzalloc(sizeof(*tdev), GFP_KERNEL); in tc_bus_add_devices()
86 if (!tdev) { in tc_bus_add_devices()
90 dev_set_name(&tdev->dev, "tc%x", slot); in tc_bus_add_devices()
91 tdev->bus = tbus; in tc_bus_add_devices()
92 tdev->dev.parent = &tbus->dev; in tc_bus_add_devices()
93 tdev->dev.bus = &tc_bus_type; in tc_bus_add_devices()
94 tdev->slot = slot; in tc_bus_add_devices()
97 tdev->dma_mask = DMA_BIT_MASK(34); in tc_bus_add_devices()
98 tdev->dev.dma_mask = &tdev->dma_mask; in tc_bus_add_devices()
99 tdev->dev.coherent_dma_mask = DMA_BIT_MASK(34); in tc_bus_add_devices()
102 tdev->firmware[i] = in tc_bus_add_devices()
104 tdev->vendor[i] = in tc_bus_add_devices()
106 tdev->name[i] = in tc_bus_add_devices()
109 tdev->firmware[8] = 0; in tc_bus_add_devices()
110 tdev->vendor[8] = 0; in tc_bus_add_devices()
111 tdev->name[8] = 0; in tc_bus_add_devices()
113 pr_info("%s: %s %s %s\n", dev_name(&tdev->dev), tdev->vendor, in tc_bus_add_devices()
114 tdev->name, tdev->firmware); in tc_bus_add_devices()
119 tdev->resource.start = slotaddr; in tc_bus_add_devices()
120 tdev->resource.end = slotaddr + devsize - 1; in tc_bus_add_devices()
122 tdev->resource.start = extslotaddr; in tc_bus_add_devices()
123 tdev->resource.end = extslotaddr + devsize - 1; in tc_bus_add_devices()
127 dev_name(&tdev->dev), (long)(devsize >> 20), in tc_bus_add_devices()
129 kfree(tdev); in tc_bus_add_devices()
132 tdev->resource.name = tdev->name; in tc_bus_add_devices()
133 tdev->resource.flags = IORESOURCE_MEM; in tc_bus_add_devices()
135 tc_device_get_irq(tdev); in tc_bus_add_devices()
137 if (device_register(&tdev->dev)) { in tc_bus_add_devices()
138 put_device(&tdev->dev); in tc_bus_add_devices()
141 list_add_tail(&tdev->node, &tbus->devices); in tc_bus_add_devices()