• Home
  • Raw
  • Download

Lines Matching refs:op

246 static void __init build_device_resources(struct platform_device *op,  in build_device_resources()  argument
260 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources()
262 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
272 op->resource = op->archdata.resource; in build_device_resources()
273 op->num_resources = num_reg; in build_device_resources()
275 struct resource *r = &op->resource[index]; in build_device_resources()
278 struct device_node *dp = op->dev.of_node; in build_device_resources()
328 op->dev.of_node, index, in build_device_resources()
336 r->name = op->dev.of_node->full_name; in build_device_resources()
343 struct platform_device *op = kzalloc(sizeof(*op), GFP_KERNEL); in scan_one_device() local
348 if (!op) in scan_one_device()
351 sd = &op->dev.archdata; in scan_one_device()
352 sd->op = op; in scan_one_device()
354 op->dev.of_node = dp; in scan_one_device()
358 op->archdata.num_irqs = len / sizeof(struct linux_prom_irqs); in scan_one_device()
359 for (i = 0; i < op->archdata.num_irqs; i++) in scan_one_device()
360 op->archdata.irqs[i] = in scan_one_device()
361 sparc_config.build_device_irq(op, intr[i].pri); in scan_one_device()
367 op->archdata.num_irqs = len / sizeof(unsigned int); in scan_one_device()
368 for (i = 0; i < op->archdata.num_irqs; i++) in scan_one_device()
369 op->archdata.irqs[i] = in scan_one_device()
370 sparc_config.build_device_irq(op, irq[i]); in scan_one_device()
372 op->archdata.num_irqs = 0; in scan_one_device()
376 build_device_resources(op, parent); in scan_one_device()
378 op->dev.parent = parent; in scan_one_device()
379 op->dev.bus = &platform_bus_type; in scan_one_device()
381 dev_set_name(&op->dev, "root"); in scan_one_device()
383 dev_set_name(&op->dev, "%08x", dp->phandle); in scan_one_device()
385 op->dev.coherent_dma_mask = DMA_BIT_MASK(32); in scan_one_device()
386 op->dev.dma_mask = &op->dev.coherent_dma_mask; in scan_one_device()
388 if (of_device_register(op)) { in scan_one_device()
390 kfree(op); in scan_one_device()
391 op = NULL; in scan_one_device()
394 return op; in scan_one_device()
400 struct platform_device *op = scan_one_device(dp, parent); in scan_tree() local
402 if (op) in scan_tree()
403 scan_tree(dp->child, &op->dev); in scan_tree()