Home
last modified time | relevance | path

Searched refs:gpio_desc (Results 1 – 25 of 903) sorted by relevance

12345678910>>...37

/OK3568_Linux_fs/kernel/include/linux/gpio/
H A Dconsumer.h19 struct gpio_desc;
36 struct gpio_desc *desc[];
65 struct gpio_desc *__must_check gpiod_get(struct device *dev,
68 struct gpio_desc *__must_check gpiod_get_index(struct device *dev,
72 struct gpio_desc *__must_check gpiod_get_optional(struct device *dev,
75 struct gpio_desc *__must_check gpiod_get_index_optional(struct device *dev,
85 void gpiod_put(struct gpio_desc *desc);
88 struct gpio_desc *__must_check devm_gpiod_get(struct device *dev,
91 struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev,
95 struct gpio_desc *__must_check devm_gpiod_get_optional(struct device *dev,
[all …]
/OK3568_Linux_fs/u-boot/include/asm-generic/
H A Dgpio.h117 struct gpio_desc { struct
140 static inline bool dm_gpio_is_valid(const struct gpio_desc *desc) in dm_gpio_is_valid() argument
219 int gpio_xlate_offs_flags(struct udevice *dev, struct gpio_desc *desc,
291 int (*xlate)(struct udevice *dev, struct gpio_desc *desc,
349 int dm_gpio_lookup_name(const char *name, struct gpio_desc *desc);
358 int gpio_hog_lookup_name(const char *name, struct gpio_desc **desc);
403 int dm_gpio_get_values_as_int(const struct gpio_desc *desc_list, int count);
452 int index, struct gpio_desc *desc, int flags);
476 struct gpio_desc *desc_list, int max_count,
489 int dm_gpio_request(struct gpio_desc *desc, const char *label);
[all …]
/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Di2c-gpio.c34 struct gpio_desc gpios[PIN_COUNT];
37 static int i2c_gpio_sda_get(struct gpio_desc *sda) in i2c_gpio_sda_get()
42 static void i2c_gpio_sda_set(struct gpio_desc *sda, int bit) in i2c_gpio_sda_set()
50 static void i2c_gpio_scl_set(struct gpio_desc *scl, int bit) in i2c_gpio_scl_set()
59 static void i2c_gpio_write_bit(struct gpio_desc *scl, struct gpio_desc *sda, in i2c_gpio_write_bit()
70 static int i2c_gpio_read_bit(struct gpio_desc *scl, struct gpio_desc *sda, in i2c_gpio_read_bit()
86 static void i2c_gpio_send_start(struct gpio_desc *scl, struct gpio_desc *sda, in i2c_gpio_send_start()
99 static void i2c_gpio_send_stop(struct gpio_desc *scl, struct gpio_desc *sda, in i2c_gpio_send_stop()
113 static void i2c_gpio_send_ack(struct gpio_desc *scl, struct gpio_desc *sda, in i2c_gpio_send_ack()
126 static void i2c_gpio_send_reset(struct gpio_desc *scl, struct gpio_desc *sda, in i2c_gpio_send_reset()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-pxa/
H A Dmfp-pxa2xx.c38 struct gpio_desc { struct
48 static struct gpio_desc gpio_desc[MFP_PIN_GPIO127 + 1]; argument
73 if (is_out ^ gpio_desc[gpio].dir_inverted) in __mfp_config_gpio()
98 if (is_out ^ gpio_desc[gpio].dir_inverted) in __mfp_config_gpio()
106 if ((c & MFP_LPM_CAN_WAKEUP) && !gpio_desc[gpio].can_wakeup) { in __mfp_config_gpio()
123 if ((mfp > MFP_PIN_GPIO127) || !gpio_desc[gpio].valid) { in __mfp_validate()
145 gpio_desc[gpio].config = *c; in pxa2xx_mfp_config()
163 c = gpio_desc[gpio].config; in pxa2xx_mfp_set_lpm()
172 struct gpio_desc *d; in gpio_set_wake()
178 d = &gpio_desc[gpio]; in gpio_set_wake()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpiolib-devres.c20 struct gpio_desc **desc = res; in devm_gpiod_release()
27 struct gpio_desc **this = res, **gpio = data; in devm_gpiod_match()
56 struct gpio_desc *__must_check devm_gpiod_get(struct device *dev, in devm_gpiod_get()
74 struct gpio_desc *__must_check devm_gpiod_get_optional(struct device *dev, in devm_gpiod_get_optional()
93 struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev, in devm_gpiod_get_index()
98 struct gpio_desc **dr; in devm_gpiod_get_index()
99 struct gpio_desc *desc; in devm_gpiod_get_index()
118 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index()
147 struct gpio_desc *devm_gpiod_get_from_of_node(struct device *dev, in devm_gpiod_get_from_of_node()
153 struct gpio_desc **dr; in devm_gpiod_get_from_of_node()
[all …]
H A Dgpiolib.h53 struct gpio_desc *descs;
76 struct gpio_desc **desc;
84 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, unsigned int hwnum);
87 struct gpio_desc **desc_array,
92 struct gpio_desc **desc_array,
99 struct gpio_desc { struct
133 int gpiod_request(struct gpio_desc *desc, const char *label); argument
134 void gpiod_free(struct gpio_desc *desc);
135 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
137 int gpiod_hog(struct gpio_desc *desc, const char *name,
[all …]
H A Dgpiolib.c95 static inline void desc_set_label(struct gpio_desc *d, const char *label) in desc_set_label()
108 struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc()
142 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, in gpiochip_get_desc()
164 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio()
175 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip()
215 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction()
303 static struct gpio_desc *gpio_name_to_desc(const char * const name) in gpio_name_to_desc()
317 struct gpio_desc *desc = &gdev->descs[i]; in gpio_name_to_desc()
349 struct gpio_desc *gpio; in gpiochip_set_desc_names()
525 struct gpio_desc *desc; in gpiochip_machine_hog()
[all …]
H A Dgpiolib-of.c99 static struct gpio_desc *of_xlate_and_get_gpiod_flags(struct gpio_chip *chip, in of_xlate_and_get_gpiod_flags()
239 static struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, in of_get_named_gpiod_flags()
244 struct gpio_desc *desc; in of_get_named_gpiod_flags()
281 struct gpio_desc *desc; in of_get_named_gpio_flags()
306 struct gpio_desc *gpiod_get_from_of_node(struct device_node *node, in gpiod_get_from_of_node()
312 struct gpio_desc *desc; in gpiod_get_from_of_node()
372 static struct gpio_desc *of_find_spi_gpio(struct device *dev, const char *con_id, in of_find_spi_gpio()
377 struct gpio_desc *desc; in of_find_spi_gpio()
402 static struct gpio_desc *of_find_spi_cs_gpio(struct device *dev, in of_find_spi_cs_gpio()
434 static struct gpio_desc *of_find_regulator_gpio(struct device *dev, const char *con_id, in of_find_regulator_gpio()
[all …]
H A Dgpiolib-sysfs.c22 struct gpio_desc *desc;
63 struct gpio_desc *desc = data->desc; in direction_show()
82 struct gpio_desc *desc = data->desc; in direction_store()
106 struct gpio_desc *desc = data->desc; in value_show()
128 struct gpio_desc *desc = data->desc; in value_store()
168 struct gpio_desc *desc = data->desc; in gpio_sysfs_request_irq()
224 struct gpio_desc *desc = data->desc; in gpio_sysfs_free_irq()
308 struct gpio_desc *desc = data->desc; in gpio_sysfs_set_active_low()
334 struct gpio_desc *desc = data->desc; in active_low_show()
371 struct gpio_desc *desc = data->desc; in gpio_is_visible()
[all …]
H A Dgpiolib-acpi.h45 struct gpio_desc *acpi_find_gpio(struct device *dev,
50 struct gpio_desc *acpi_node_get_gpiod(struct fwnode_handle *fwnode,
77 static inline struct gpio_desc *
84 static inline struct gpio_desc *
/OK3568_Linux_fs/u-boot/drivers/gpio/
H A Dgpio-uclass.c33 static int gpio_to_device(unsigned int gpio, struct gpio_desc *desc) in gpio_to_device()
56 int dm_gpio_lookup_name(const char *name, struct gpio_desc *desc) in dm_gpio_lookup_name()
98 struct gpio_desc desc; in gpio_lookup_name()
120 int gpio_xlate_offs_flags(struct udevice *dev, struct gpio_desc *desc, in gpio_xlate_offs_flags()
137 static int gpio_find_and_xlate(struct gpio_desc *desc, in gpio_find_and_xlate()
151 struct gpio_desc gpiod;
240 int gpio_hog_lookup_name(const char *name, struct gpio_desc **desc) in gpio_hog_lookup_name()
265 int gpio_hog_lookup_name(const char *name, struct gpio_desc **desc) in gpio_hog_lookup_name()
271 int dm_gpio_request(struct gpio_desc *desc, const char *label) in dm_gpio_request()
296 static int dm_gpio_requestf(struct gpio_desc *desc, const char *fmt, ...) in dm_gpio_requestf()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dtc358749x.h44 struct gpio_desc *gpio_power;
45 struct gpio_desc *gpio_power18;
46 struct gpio_desc *gpio_power33;
47 struct gpio_desc *gpio_csi_ctl;
48 struct gpio_desc *gpio_reset;
49 struct gpio_desc *gpio_stanby;
50 struct gpio_desc *gpio_int;
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Difx6x60.h13 struct gpio_desc;
99 struct gpio_desc *srdy; /* slave-ready gpio */
100 struct gpio_desc *mrdy; /* master-ready gpio */
101 struct gpio_desc *reset; /* modem-reset gpio */
102 struct gpio_desc *po; /* modem-on gpio */
103 struct gpio_desc *reset_out; /* modem-in-reset gpio */
104 struct gpio_desc *pmu_reset; /* PMU reset gpio */
/OK3568_Linux_fs/u-boot/drivers/demo/
H A Ddemo-shape.c24 struct gpio_desc gpio_desc[8]; member
98 struct gpio_desc *desc; in set_light()
102 desc = priv->gpio_desc; in set_light()
117 struct gpio_desc *desc; in get_light()
122 desc = priv->gpio_desc; in get_light()
165 ret = gpio_request_list_by_name(dev, "light-gpios", priv->gpio_desc, in dm_shape_probe()
166 ARRAY_SIZE(priv->gpio_desc), in dm_shape_probe()
180 return gpio_free_list(dev, priv->gpio_desc, priv->gpio_count); in dm_shape_remove()
/OK3568_Linux_fs/kernel/drivers/input/mouse/
H A Dgpio_mouse.c33 struct gpio_desc *up;
34 struct gpio_desc *down;
35 struct gpio_desc *left;
36 struct gpio_desc *right;
37 struct gpio_desc *bleft;
38 struct gpio_desc *bmiddle;
39 struct gpio_desc *bright;
/OK3568_Linux_fs/kernel/drivers/staging/fbtft/
H A Dfbtft.h30 struct gpio_desc *gpio;
209 struct gpio_desc *reset;
210 struct gpio_desc *dc;
211 struct gpio_desc *rd;
212 struct gpio_desc *wr;
213 struct gpio_desc *latch;
214 struct gpio_desc *cs;
215 struct gpio_desc *db[16];
216 struct gpio_desc *led[16];
217 struct gpio_desc *aux[16];
/OK3568_Linux_fs/kernel/Documentation/driver-api/gpio/
H A Dconsumer.rst49 struct gpio_desc *gpiod_get(struct device *dev, const char *con_id,
55 struct gpio_desc *gpiod_get_index(struct device *dev,
90 struct gpio_desc *gpiod_get_optional(struct device *dev,
94 struct gpio_desc *gpiod_get_index_optional(struct device *dev,
118 struct gpio_desc *desc[];
130 struct gpio_desc *devm_gpiod_get(struct device *dev, const char *con_id,
133 struct gpio_desc *devm_gpiod_get_index(struct device *dev,
138 struct gpio_desc *devm_gpiod_get_optional(struct device *dev,
142 struct gpio_desc *devm_gpiod_get_index_optional(struct device *dev,
157 void gpiod_put(struct gpio_desc *desc)
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A Darche-apb-ctrl.c26 struct gpio_desc *resetn;
27 struct gpio_desc *boot_ret;
28 struct gpio_desc *pwroff;
29 struct gpio_desc *wake_in;
30 struct gpio_desc *wake_out;
31 struct gpio_desc *pwrdn;
39 struct gpio_desc *clk_en;
46 struct gpio_desc *spi_en;
53 static inline void deassert_reset(struct gpio_desc *gpio) in deassert_reset()
58 static inline void assert_reset(struct gpio_desc *gpio) in assert_reset()
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dad7606.h109 struct gpio_desc *gpio_convst;
110 struct gpio_desc *gpio_reset;
111 struct gpio_desc *gpio_range;
112 struct gpio_desc *gpio_standby;
113 struct gpio_desc *gpio_frstdata;
/OK3568_Linux_fs/kernel/drivers/phy/motorola/
H A Dphy-mapphone-mdm6600.c94 struct gpio_desc *ctrl_gpios[PHY_MDM6600_NR_CTRL_LINES];
111 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_init()
124 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_on()
147 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_off()
247 struct gpio_desc *mode_gpio1; in phy_mdm6600_wakeirq_thread()
281 struct gpio_desc *gpio = ddata->status_gpios->desc[i]; in phy_mdm6600_init_irq()
325 struct gpio_desc **gpio = &ddata->ctrl_gpios[i]; in phy_mdm6600_init_lines()
377 struct gpio_desc *mode_gpio0, *mode_gpio1, *reset_gpio, *power_gpio; in phy_mdm6600_device_power_on()
457 struct gpio_desc *reset_gpio = in phy_mdm6600_device_power_off()
497 struct gpio_desc *mode_gpio0; in phy_mdm6600_wake_modem()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dlte.h11 struct gpio_desc *reset_gpio;
12 struct gpio_desc *power_gpio;
13 struct gpio_desc *vbat_gpio;
H A Dw1-gpio.h10 struct gpio_desc;
16 struct gpio_desc *gpiod;
17 struct gpio_desc *pullup_gpiod;
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-sharp-ls037v7dw01.c28 struct gpio_desc *resb_gpio; /* low = reset active min 20 us */
29 struct gpio_desc *ini_gpio; /* high = power on */
30 struct gpio_desc *mo_gpio; /* low = 480x640, high = 240x320 */
31 struct gpio_desc *lr_gpio; /* high = conventional horizontal scanning */
32 struct gpio_desc *ud_gpio; /* high = conventional vertical scanning */
197 const char *desc, struct gpio_desc **gpiod) in sharp_ls_get_gpio_of()
199 struct gpio_desc *gd; in sharp_ls_get_gpio_of()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dcolibri-vf50-ts.c40 struct gpio_desc *gpio_xp;
41 struct gpio_desc *gpio_xm;
42 struct gpio_desc *gpio_yp;
43 struct gpio_desc *gpio_ym;
53 struct gpio_desc *plate_p, struct gpio_desc *plate_m) in adc_ts_measure()
239 static int vf50_ts_get_gpiod(struct device *dev, struct gpio_desc **gpio_d, in vf50_ts_get_gpiod()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/panel/
H A Dpanel-sharp-ls037v7dw01.c29 struct gpio_desc *resb_gpio; /* low = reset active min 20 us */
30 struct gpio_desc *ini_gpio; /* high = power on */
31 struct gpio_desc *mo_gpio; /* low = 480x640, high = 240x320 */
32 struct gpio_desc *lr_gpio; /* high = conventional horizontal scanning */
33 struct gpio_desc *ud_gpio; /* high = conventional vertical scanning */

12345678910>>...37