Home
last modified time | relevance | path

Searched refs:gbphy_dev (Results 1 – 9 of 9) sorted by relevance

/drivers/staging/greybus/
A Dgbphy.c43 ATTRIBUTE_GROUPS(gbphy_dev);
50 kfree(gbphy_dev); in gbphy_dev_release()
177 gbphy_drv->remove(gbphy_dev); in gbphy_dev_remove()
232 gbphy_dev = kzalloc(sizeof(*gbphy_dev), GFP_KERNEL); in gb_gbphy_create_dev()
233 if (!gbphy_dev) { in gb_gbphy_create_dev()
238 gbphy_dev->id = id; in gb_gbphy_create_dev()
239 gbphy_dev->bundle = bundle; in gb_gbphy_create_dev()
254 return gbphy_dev; in gb_gbphy_create_dev()
268 list_del(&gbphy_dev->list); in gb_gbphy_disconnect()
299 if (IS_ERR(gbphy_dev)) { in gb_gbphy_probe()
[all …]
A Dpwm.c48 struct gbphy_device *gbphy_dev; in gb_pwm_activate_operation() local
54 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_pwm_activate_operation()
61 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_pwm_activate_operation()
70 struct gbphy_device *gbphy_dev; in gb_pwm_deactivate_operation() local
76 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_pwm_deactivate_operation()
93 struct gbphy_device *gbphy_dev; in gb_pwm_config_operation() local
118 struct gbphy_device *gbphy_dev; in gb_pwm_set_polarity_operation() local
141 struct gbphy_device *gbphy_dev; in gb_pwm_enable_operation() local
163 struct gbphy_device *gbphy_dev; in gb_pwm_disable_operation() local
273 gb_gbphy_set_data(gbphy_dev, chip); in gb_pwm_probe()
[all …]
A Dgbphy.h69 static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev) in gbphy_runtime_get_sync() argument
71 struct device *dev = &gbphy_dev->dev; in gbphy_runtime_get_sync()
84 static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) in gbphy_runtime_put_autosuspend() argument
86 struct device *dev = &gbphy_dev->dev; in gbphy_runtime_put_autosuspend()
92 static inline void gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev) in gbphy_runtime_get_noresume() argument
94 pm_runtime_get_noresume(&gbphy_dev->dev); in gbphy_runtime_get_noresume()
97 static inline void gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev) in gbphy_runtime_put_noidle() argument
99 pm_runtime_put_noidle(&gbphy_dev->dev); in gbphy_runtime_put_noidle()
103 static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) {} in gbphy_runtime_put_autosuspend() argument
104 static inline void gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev) {} in gbphy_runtime_get_noresume() argument
[all …]
A Dspi.c17 static int gb_spi_probe(struct gbphy_device *gbphy_dev, in gb_spi_probe() argument
23 connection = gb_connection_create(gbphy_dev->bundle, in gb_spi_probe()
24 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_spi_probe()
33 ret = gb_spilib_master_init(connection, &gbphy_dev->dev, spilib_ops); in gb_spi_probe()
37 gb_gbphy_set_data(gbphy_dev, connection); in gb_spi_probe()
39 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_spi_probe()
50 static void gb_spi_remove(struct gbphy_device *gbphy_dev) in gb_spi_remove() argument
52 struct gb_connection *connection = gb_gbphy_get_data(gbphy_dev); in gb_spi_remove()
55 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_spi_remove()
57 gbphy_runtime_get_noresume(gbphy_dev); in gb_spi_remove()
A Di2c.c19 struct gbphy_device *gbphy_dev; member
177 struct device *dev = &gb_i2c_dev->gbphy_dev->dev; in gb_i2c_transfer_operation()
185 ret = gbphy_runtime_get_sync(gb_i2c_dev->gbphy_dev); in gb_i2c_transfer_operation()
243 gb_connection_create(gbphy_dev->bundle, in gb_i2c_probe()
244 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_i2c_probe()
253 gb_i2c_dev->gbphy_dev = gbphy_dev; in gb_i2c_probe()
254 gb_gbphy_set_data(gbphy_dev, gb_i2c_dev); in gb_i2c_probe()
270 adapter->dev.parent = &gbphy_dev->dev; in gb_i2c_probe()
278 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_i2c_probe()
297 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_i2c_remove()
[all …]
A Dgpio.c35 struct gbphy_device *gbphy_dev; member
65 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_activate_operation() local
68 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_gpio_activate_operation()
76 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_gpio_activate_operation()
88 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_deactivate_operation() local
89 struct device *dev = &gbphy_dev->dev; in gb_gpio_deactivate_operation()
104 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_gpio_deactivate_operation()
110 struct device *dev = &ggc->gbphy_dev->dev; in gb_gpio_get_direction_operation()
521 ggc->gbphy_dev = gbphy_dev; in gb_gpio_probe()
522 gb_gbphy_set_data(gbphy_dev, ggc); in gb_gpio_probe()
[all …]
A Dusb.c35 struct gbphy_device *gbphy_dev; member
56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret); in hcd_stop()
68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret); in hcd_start()
158 static int gb_usb_probe(struct gbphy_device *gbphy_dev, in gb_usb_probe() argument
162 struct device *dev = &gbphy_dev->dev; in gb_usb_probe()
171 connection = gb_connection_create(gbphy_dev->bundle, in gb_usb_probe()
172 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_usb_probe()
182 gb_usb_dev->gbphy_dev = gbphy_dev; in gb_usb_probe()
183 gb_gbphy_set_data(gbphy_dev, gb_usb_dev); in gb_usb_probe()
219 static void gb_usb_remove(struct gbphy_device *gbphy_dev) in gb_usb_remove() argument
[all …]
A Duart.c44 struct gbphy_device *gbphy_dev; member
85 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_receive_data_handler()
95 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_receive_data_handler()
120 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_receive_data_handler()
137 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_serial_state_handler()
160 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_receive_credits_handler()
179 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_receive_credits_handler()
217 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_request_handler()
858 dev_err(&gbphy_dev->dev, in gb_uart_probe()
874 gb_tty->gbphy_dev = gbphy_dev; in gb_uart_probe()
[all …]
A Dsdio.c21 struct gbphy_device *gbphy_dev; member
242 ret = gbphy_runtime_get_sync(host->gbphy_dev); in gb_sdio_set_ios()
249 gbphy_runtime_put_autosuspend(host->gbphy_dev); in gb_sdio_set_ios()
504 ret = gbphy_runtime_get_sync(host->gbphy_dev); in gb_sdio_mrq_work()
775 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_sdio_probe()
788 host->gbphy_dev = gbphy_dev; in gb_sdio_probe()
789 gb_gbphy_set_data(gbphy_dev, host); in gb_sdio_probe()
810 dev_name(&gbphy_dev->dev)); in gb_sdio_probe()
828 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_sdio_probe()
851 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_sdio_remove()
[all …]

Completed in 20 milliseconds