/openbmc/linux/drivers/staging/greybus/ |
H A D | gbphy.c | 43 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 …]
|
H A D | pwm.c | 46 struct gbphy_device *gbphy_dev; in gb_pwm_activate_operation() local 54 gbphy_dev = to_gbphy_dev(pwmc->chip.dev); in gb_pwm_activate_operation() 55 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_pwm_activate_operation() 71 struct gbphy_device *gbphy_dev; in gb_pwm_deactivate_operation() local 96 struct gbphy_device *gbphy_dev; in gb_pwm_config_operation() local 123 struct gbphy_device *gbphy_dev; in gb_pwm_set_polarity_operation() local 149 struct gbphy_device *gbphy_dev; in gb_pwm_enable_operation() local 174 struct gbphy_device *gbphy_dev; in gb_pwm_disable_operation() local 286 gb_gbphy_set_data(gbphy_dev, pwmc); in gb_pwm_probe() 299 chip->dev = &gbphy_dev->dev; in gb_pwm_probe() [all …]
|
H A D | gbphy.h | 69 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 …]
|
H A D | spi.c | 17 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()
|
H A D | i2c.c | 19 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 …]
|
H A D | gpio.c | 35 struct gbphy_device *gbphy_dev; member 70 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_activate_operation() local 73 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_gpio_activate_operation() 81 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_gpio_activate_operation() 93 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_deactivate_operation() local 94 struct device *dev = &gbphy_dev->dev; in gb_gpio_deactivate_operation() 109 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_gpio_deactivate_operation() 115 struct device *dev = &ggc->gbphy_dev->dev; in gb_gpio_get_direction_operation() 530 ggc->gbphy_dev = gbphy_dev; in gb_gpio_probe() 531 gb_gbphy_set_data(gbphy_dev, ggc); in gb_gpio_probe() [all …]
|
H A D | usb.c | 35 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 …]
|
H A D | uart.c | 44 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() 856 dev_err(&gbphy_dev->dev, in gb_uart_probe() 872 gb_tty->gbphy_dev = gbphy_dev; in gb_uart_probe() [all …]
|
H A D | sdio.c | 21 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 …]
|