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

/linux-master/drivers/staging/greybus/
H A Dspi.c17 static int gb_spi_probe(struct gbphy_device *gbphy_dev, argument
23 connection = gb_connection_create(gbphy_dev->bundle,
24 le16_to_cpu(gbphy_dev->cport_desc->id),
33 ret = gb_spilib_master_init(connection, &gbphy_dev->dev, spilib_ops);
37 gb_gbphy_set_data(gbphy_dev, connection);
39 gbphy_runtime_put_autosuspend(gbphy_dev);
50 static void gb_spi_remove(struct gbphy_device *gbphy_dev) argument
52 struct gb_connection *connection = gb_gbphy_get_data(gbphy_dev);
55 ret = gbphy_runtime_get_sync(gbphy_dev);
57 gbphy_runtime_get_noresume(gbphy_dev);
[all...]
H A Dgbphy.h69 static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev) argument
71 struct device *dev = &gbphy_dev->dev;
84 static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) argument
86 struct device *dev = &gbphy_dev->dev;
92 static inline void gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev) argument
94 pm_runtime_get_noresume(&gbphy_dev->dev);
97 static inline void gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev) argument
99 pm_runtime_put_noidle(&gbphy_dev->dev);
102 static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev) { return 0; } argument
103 static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) {} argument
104 gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev) argument
105 gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev) argument
[all...]
H A Dgbphy.c32 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); local
34 return sprintf(buf, "0x%02x\n", gbphy_dev->cport_desc->protocol_id);
43 ATTRIBUTE_GROUPS(gbphy_dev); variable
47 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); local
49 ida_free(&gbphy_id, gbphy_dev->id);
50 kfree(gbphy_dev);
76 const struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); local
77 const struct greybus_descriptor_cport *cport_desc = gbphy_dev->cport_desc;
78 const struct gb_bundle *bundle = gbphy_dev->bundle;
92 if (add_uevent_var(env, "BUNDLE=%u", gbphy_dev
105 gbphy_dev_match_id(struct gbphy_device *gbphy_dev, struct gbphy_driver *gbphy_drv) argument
123 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); local
136 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); local
175 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); local
224 struct gbphy_device *gbphy_dev; local
260 struct gbphy_device *gbphy_dev, *temp; local
279 struct gbphy_device *gbphy_dev; local
[all...]
H A Dpwm.c48 struct gbphy_device *gbphy_dev; local
53 gbphy_dev = to_gbphy_dev(pwmchip_parent(chip));
54 ret = gbphy_runtime_get_sync(gbphy_dev);
61 gbphy_runtime_put_autosuspend(gbphy_dev);
70 struct gbphy_device *gbphy_dev; local
75 gbphy_dev = to_gbphy_dev(pwmchip_parent(chip));
76 ret = gbphy_runtime_get_sync(gbphy_dev);
83 gbphy_runtime_put_autosuspend(gbphy_dev);
93 struct gbphy_device *gbphy_dev; local
100 gbphy_dev
118 struct gbphy_device *gbphy_dev; local
141 struct gbphy_device *gbphy_dev; local
163 struct gbphy_device *gbphy_dev; local
244 gb_pwm_probe(struct gbphy_device *gbphy_dev, const struct gbphy_device_id *id) argument
299 gb_pwm_remove(struct gbphy_device *gbphy_dev) argument
[all...]
H A Di2c.c19 struct gbphy_device *gbphy_dev; member in struct:gb_i2c_device
94 dev_err(&gb_i2c_dev->gbphy_dev->dev, "msg_count (%u) too big\n",
177 struct device *dev = &gb_i2c_dev->gbphy_dev->dev;
185 ret = gbphy_runtime_get_sync(gb_i2c_dev->gbphy_dev);
200 gbphy_runtime_put_autosuspend(gb_i2c_dev->gbphy_dev);
230 static int gb_i2c_probe(struct gbphy_device *gbphy_dev, argument
243 gb_connection_create(gbphy_dev->bundle,
244 le16_to_cpu(gbphy_dev->cport_desc->id),
253 gb_i2c_dev->gbphy_dev = gbphy_dev;
291 gb_i2c_remove(struct gbphy_device *gbphy_dev) argument
[all...]
H A Dusb.c35 struct gbphy_device *gbphy_dev; member in struct:gb_usb_device
56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret);
68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret);
158 static int gb_usb_probe(struct gbphy_device *gbphy_dev, argument
162 struct device *dev = &gbphy_dev->dev;
171 connection = gb_connection_create(gbphy_dev->bundle,
172 le16_to_cpu(gbphy_dev->cport_desc->id),
182 gb_usb_dev->gbphy_dev = gbphy_dev;
183 gb_gbphy_set_data(gbphy_dev, gb_usb_de
219 gb_usb_remove(struct gbphy_device *gbphy_dev) argument
[all...]
H A Dgpio.c35 struct gbphy_device *gbphy_dev; member in struct:gb_gpio_controller
70 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; local
73 ret = gbphy_runtime_get_sync(gbphy_dev);
81 gbphy_runtime_put_autosuspend(gbphy_dev);
93 struct gbphy_device *gbphy_dev = ggc->gbphy_dev; local
94 struct device *dev = &gbphy_dev->dev;
109 gbphy_runtime_put_autosuspend(gbphy_dev);
115 struct device *dev = &ggc->gbphy_dev
505 gb_gpio_probe(struct gbphy_device *gbphy_dev, const struct gbphy_device_id *id) argument
602 gb_gpio_remove(struct gbphy_device *gbphy_dev) argument
[all...]
H A Duart.c44 struct gbphy_device *gbphy_dev; member in struct:gb_tty
85 dev_err(&gb_tty->gbphy_dev->dev,
95 dev_err(&gb_tty->gbphy_dev->dev,
120 dev_err(&gb_tty->gbphy_dev->dev,
137 dev_err(&gb_tty->gbphy_dev->dev,
160 dev_err(&gb_tty->gbphy_dev->dev,
179 dev_err(&gb_tty->gbphy_dev->dev,
217 dev_err(&gb_tty->gbphy_dev->dev,
262 dev_err(&gb_tty->gbphy_dev->dev,
303 dev_err(&gb_tty->gbphy_dev
802 gb_uart_probe(struct gbphy_device *gbphy_dev, const struct gbphy_device_id *id) argument
913 gb_uart_remove(struct gbphy_device *gbphy_dev) argument
[all...]
H A Dsdio.c21 struct gbphy_device *gbphy_dev; member in struct:gb_sdio_host
242 ret = gbphy_runtime_get_sync(host->gbphy_dev);
249 gbphy_runtime_put_autosuspend(host->gbphy_dev);
504 ret = gbphy_runtime_get_sync(host->gbphy_dev);
512 gbphy_runtime_put_autosuspend(host->gbphy_dev);
548 gbphy_runtime_put_autosuspend(host->gbphy_dev);
762 static int gb_sdio_probe(struct gbphy_device *gbphy_dev, argument
770 mmc = mmc_alloc_host(sizeof(*host), &gbphy_dev->dev);
774 connection = gb_connection_create(gbphy_dev->bundle,
775 le16_to_cpu(gbphy_dev
844 gb_sdio_remove(struct gbphy_device *gbphy_dev) argument
[all...]

Completed in 146 milliseconds