Lines Matching refs:bcmdev
1488 struct bcm_device *bcmdev; in bcm_serdev_probe() local
1492 bcmdev = devm_kzalloc(&serdev->dev, sizeof(*bcmdev), GFP_KERNEL); in bcm_serdev_probe()
1493 if (!bcmdev) in bcm_serdev_probe()
1496 bcmdev->dev = &serdev->dev; in bcm_serdev_probe()
1498 bcmdev->hu = &bcmdev->serdev_hu; in bcm_serdev_probe()
1500 bcmdev->serdev_hu.serdev = serdev; in bcm_serdev_probe()
1501 serdev_device_set_drvdata(serdev, bcmdev); in bcm_serdev_probe()
1504 bcmdev->pcm_int_params[0] = 0xff; in bcm_serdev_probe()
1507 err = bcm_acpi_probe(bcmdev); in bcm_serdev_probe()
1509 err = bcm_of_probe(bcmdev); in bcm_serdev_probe()
1513 err = bcm_get_resources(bcmdev); in bcm_serdev_probe()
1517 if (!bcmdev->shutdown) { in bcm_serdev_probe()
1520 bcmdev->oper_speed = bcmdev->init_speed; in bcm_serdev_probe()
1523 err = bcm_gpio_set_power(bcmdev, false); in bcm_serdev_probe()
1527 data = device_get_match_data(bcmdev->dev); in bcm_serdev_probe()
1529 bcmdev->max_autobaud_speed = data->max_autobaud_speed; in bcm_serdev_probe()
1530 bcmdev->no_early_set_baudrate = data->no_early_set_baudrate; in bcm_serdev_probe()
1531 bcmdev->drive_rts_on_open = data->drive_rts_on_open; in bcm_serdev_probe()
1534 return hci_uart_register_device(&bcmdev->serdev_hu, &bcm_proto); in bcm_serdev_probe()
1539 struct bcm_device *bcmdev = serdev_device_get_drvdata(serdev); in bcm_serdev_remove() local
1541 hci_uart_unregister_device(&bcmdev->serdev_hu); in bcm_serdev_remove()