/linux-6.1.9/drivers/staging/greybus/ |
D | gbphy.c | 32 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in protocol_id_show() local 34 return sprintf(buf, "0x%02x\n", gbphy_dev->cport_desc->protocol_id); in protocol_id_show() 43 ATTRIBUTE_GROUPS(gbphy_dev); 47 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in gbphy_dev_release() local 49 ida_simple_remove(&gbphy_id, gbphy_dev->id); in gbphy_dev_release() 50 kfree(gbphy_dev); in gbphy_dev_release() 76 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in gbphy_dev_uevent() local 77 struct greybus_descriptor_cport *cport_desc = gbphy_dev->cport_desc; in gbphy_dev_uevent() 78 struct gb_bundle *bundle = gbphy_dev->bundle; in gbphy_dev_uevent() 92 if (add_uevent_var(env, "BUNDLE=%u", gbphy_dev->bundle->id)) in gbphy_dev_uevent() [all …]
|
D | pwm.c | 45 struct gbphy_device *gbphy_dev; in gb_pwm_activate_operation() local 53 gbphy_dev = to_gbphy_dev(pwmc->chip.dev); in gb_pwm_activate_operation() 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 78 gbphy_dev = to_gbphy_dev(pwmc->chip.dev); in gb_pwm_deactivate_operation() 79 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_pwm_deactivate_operation() 86 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_pwm_deactivate_operation() 95 struct gbphy_device *gbphy_dev; in gb_pwm_config_operation() local 105 gbphy_dev = to_gbphy_dev(pwmc->chip.dev); in gb_pwm_config_operation() [all …]
|
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() 102 static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev) { return 0; } in gbphy_runtime_get_sync() argument 103 static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) {} in gbphy_runtime_put_autosuspend() argument [all …]
|
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()
|
D | i2c.c | 19 struct gbphy_device *gbphy_dev; member 94 dev_err(&gb_i2c_dev->gbphy_dev->dev, "msg_count (%u) too big\n", in gb_i2c_operation_create() 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() 200 gbphy_runtime_put_autosuspend(gb_i2c_dev->gbphy_dev); in gb_i2c_transfer_operation() 230 static int gb_i2c_probe(struct gbphy_device *gbphy_dev, in gb_i2c_probe() argument 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() [all …]
|
D | gpio.c | 35 struct gbphy_device *gbphy_dev; member 63 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_activate_operation() local 66 ret = gbphy_runtime_get_sync(gbphy_dev); in gb_gpio_activate_operation() 74 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_gpio_activate_operation() 86 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; in gb_gpio_deactivate_operation() local 87 struct device *dev = &gbphy_dev->dev; in gb_gpio_deactivate_operation() 102 gbphy_runtime_put_autosuspend(gbphy_dev); in gb_gpio_deactivate_operation() 108 struct device *dev = &ggc->gbphy_dev->dev; in gb_gpio_get_direction_operation() 162 struct device *dev = &ggc->gbphy_dev->dev; in gb_gpio_get_value_operation() 189 struct device *dev = &ggc->gbphy_dev->dev; in gb_gpio_set_value_operation() [all …]
|
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 …]
|
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() 262 dev_err(&gb_tty->gbphy_dev->dev, in gb_uart_tx_write_work() 303 dev_err(&gb_tty->gbphy_dev->dev, in send_break() [all …]
|
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() 512 gbphy_runtime_put_autosuspend(host->gbphy_dev); in gb_sdio_mrq_work() 548 gbphy_runtime_put_autosuspend(host->gbphy_dev); in gb_sdio_mrq_work() 762 static int gb_sdio_probe(struct gbphy_device *gbphy_dev, in gb_sdio_probe() argument 770 mmc = mmc_alloc_host(sizeof(*host), &gbphy_dev->dev); in gb_sdio_probe() 774 connection = gb_connection_create(gbphy_dev->bundle, in gb_sdio_probe() 775 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_sdio_probe() [all …]
|