Lines Matching refs:pdev

36 	struct platform_device *pdev;  in mv64x60_mpsc_register_shared_pdev()  local
65 pdev = platform_device_alloc(MPSC_SHARED_NAME, 0); in mv64x60_mpsc_register_shared_pdev()
66 if (!pdev) in mv64x60_mpsc_register_shared_pdev()
69 err = platform_device_add_resources(pdev, r, 2); in mv64x60_mpsc_register_shared_pdev()
73 err = platform_device_add_data(pdev, &pdata, sizeof(pdata)); in mv64x60_mpsc_register_shared_pdev()
77 err = platform_device_add(pdev); in mv64x60_mpsc_register_shared_pdev()
84 platform_device_put(pdev); in mv64x60_mpsc_register_shared_pdev()
93 struct platform_device *pdev; in mv64x60_mpsc_device_setup() local
186 pdev = platform_device_alloc(MPSC_CTLR_NAME, port_number); in mv64x60_mpsc_device_setup()
187 if (!pdev) in mv64x60_mpsc_device_setup()
189 pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); in mv64x60_mpsc_device_setup()
191 err = platform_device_add_resources(pdev, r, 5); in mv64x60_mpsc_device_setup()
195 err = platform_device_add_data(pdev, &pdata, sizeof(pdata)); in mv64x60_mpsc_device_setup()
199 err = platform_device_add(pdev); in mv64x60_mpsc_device_setup()
206 platform_device_put(pdev); in mv64x60_mpsc_device_setup()
216 struct platform_device *pdev; in mv64x60_eth_register_shared_pdev() local
230 pdev = platform_device_register_simple("orion-mdio", -1, &r[1], 1); in mv64x60_eth_register_shared_pdev()
231 if (IS_ERR(pdev)) in mv64x60_eth_register_shared_pdev()
232 return pdev; in mv64x60_eth_register_shared_pdev()
235 pdev = platform_device_register_simple(MV643XX_ETH_SHARED_NAME, id, in mv64x60_eth_register_shared_pdev()
238 return pdev; in mv64x60_eth_register_shared_pdev()
246 struct platform_device *pdev; in mv64x60_eth_device_setup() local
311 pdev = platform_device_alloc(MV643XX_ETH_NAME, id); in mv64x60_eth_device_setup()
312 if (!pdev) in mv64x60_eth_device_setup()
315 pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); in mv64x60_eth_device_setup()
316 err = platform_device_add_resources(pdev, r, 1); in mv64x60_eth_device_setup()
320 err = platform_device_add_data(pdev, &pdata, sizeof(pdata)); in mv64x60_eth_device_setup()
324 err = platform_device_add(pdev); in mv64x60_eth_device_setup()
331 platform_device_put(pdev); in mv64x60_eth_device_setup()
341 struct platform_device *pdev; in mv64x60_i2c_device_setup() local
368 pdev = platform_device_alloc(MV64XXX_I2C_CTLR_NAME, id); in mv64x60_i2c_device_setup()
369 if (!pdev) in mv64x60_i2c_device_setup()
372 err = platform_device_add_resources(pdev, r, 2); in mv64x60_i2c_device_setup()
376 err = platform_device_add_data(pdev, &pdata, sizeof(pdata)); in mv64x60_i2c_device_setup()
380 err = platform_device_add(pdev); in mv64x60_i2c_device_setup()
387 platform_device_put(pdev); in mv64x60_i2c_device_setup()
397 struct platform_device *pdev; in mv64x60_wdt_device_setup() local
420 pdev = platform_device_alloc(MV64x60_WDT_NAME, id); in mv64x60_wdt_device_setup()
421 if (!pdev) in mv64x60_wdt_device_setup()
424 err = platform_device_add_resources(pdev, &r, 1); in mv64x60_wdt_device_setup()
428 err = platform_device_add_data(pdev, &pdata, sizeof(pdata)); in mv64x60_wdt_device_setup()
432 err = platform_device_add(pdev); in mv64x60_wdt_device_setup()
439 platform_device_put(pdev); in mv64x60_wdt_device_setup()
446 struct platform_device *pdev; in mv64x60_device_setup() local
462 pdev = mv64x60_eth_register_shared_pdev(np, id++); in mv64x60_device_setup()
463 if (IS_ERR(pdev)) { in mv64x60_device_setup()
464 err = PTR_ERR(pdev); in mv64x60_device_setup()
474 err = mv64x60_eth_device_setup(np2, id2++, pdev); in mv64x60_device_setup()