Lines Matching refs:bcmdev
1511 struct bcm_device *bcmdev; in bcm_serdev_probe() local
1515 bcmdev = devm_kzalloc(&serdev->dev, sizeof(*bcmdev), GFP_KERNEL); in bcm_serdev_probe()
1516 if (!bcmdev) in bcm_serdev_probe()
1519 bcmdev->dev = &serdev->dev; in bcm_serdev_probe()
1521 bcmdev->hu = &bcmdev->serdev_hu; in bcm_serdev_probe()
1523 bcmdev->serdev_hu.serdev = serdev; in bcm_serdev_probe()
1524 serdev_device_set_drvdata(serdev, bcmdev); in bcm_serdev_probe()
1527 bcmdev->pcm_int_params[0] = 0xff; in bcm_serdev_probe()
1530 err = bcm_acpi_probe(bcmdev); in bcm_serdev_probe()
1532 err = bcm_of_probe(bcmdev); in bcm_serdev_probe()
1536 err = bcm_get_resources(bcmdev); in bcm_serdev_probe()
1540 if (!bcmdev->shutdown) { in bcm_serdev_probe()
1543 bcmdev->oper_speed = bcmdev->init_speed; in bcm_serdev_probe()
1546 err = bcm_gpio_set_power(bcmdev, false); in bcm_serdev_probe()
1550 data = device_get_match_data(bcmdev->dev); in bcm_serdev_probe()
1552 bcmdev->max_autobaud_speed = data->max_autobaud_speed; in bcm_serdev_probe()
1553 bcmdev->no_early_set_baudrate = data->no_early_set_baudrate; in bcm_serdev_probe()
1554 bcmdev->drive_rts_on_open = data->drive_rts_on_open; in bcm_serdev_probe()
1555 bcmdev->no_uart_clock_set = data->no_uart_clock_set; in bcm_serdev_probe()
1556 if (data->max_speed && bcmdev->oper_speed > data->max_speed) in bcm_serdev_probe()
1557 bcmdev->oper_speed = data->max_speed; in bcm_serdev_probe()
1560 return hci_uart_register_device(&bcmdev->serdev_hu, &bcm_proto); in bcm_serdev_probe()
1565 struct bcm_device *bcmdev = serdev_device_get_drvdata(serdev); in bcm_serdev_remove() local
1567 hci_uart_unregister_device(&bcmdev->serdev_hu); in bcm_serdev_remove()