Home
last modified time | relevance | path

Searched refs:gpio_detect (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/
H A Dvehicle_gpio.c32 struct gpio_detect *gpiod = container_of(work, struct gpio_detect, in gpio_det_work_func()
47 struct gpio_detect *gpiod = dev_id; in gpio_det_interrupt()
63 static int vehicle_gpio_init_check(struct gpio_detect *gpiod) in vehicle_gpio_init_check()
78 bool vehicle_gpio_reverse_check(struct gpio_detect *gpiod) in vehicle_gpio_reverse_check()
88 static int gpio_parse_dt(struct gpio_detect *gpiod, const char *ad_name) in gpio_parse_dt()
130 int vehicle_gpio_init(struct gpio_detect *gpiod, const char *ad_name) in vehicle_gpio_init()
174 int vehicle_gpio_deinit(struct gpio_detect *gpiod) in vehicle_gpio_deinit()
H A Dvehicle_gpio.h12 struct gpio_detect { struct
27 bool vehicle_gpio_reverse_check(struct gpio_detect *gpiod); argument
29 int vehicle_gpio_init(struct gpio_detect *gpiod, const char *ad_name);
31 int vehicle_gpio_deinit(struct gpio_detect *gpiod);
H A Dvehicle_main.c59 struct gpio_detect gpio_data;
146 struct gpio_detect *gpiod = &v->gpio_data; in vehicle_state_change()
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dsbs-battery.c195 struct gpio_desc *gpio_detect; member
861 if (chip->gpio_detect) { in sbs_get_property()
862 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_get_property()
968 if (!chip->gpio_detect && chip->is_present != (ret >= 0)) { in sbs_get_property()
999 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_supply_changed()
1124 chip->gpio_detect = devm_gpiod_get_optional(&client->dev, in sbs_probe()
1126 if (IS_ERR(chip->gpio_detect)) { in sbs_probe()
1128 PTR_ERR(chip->gpio_detect)); in sbs_probe()
1129 return PTR_ERR(chip->gpio_detect); in sbs_probe()
1134 if (!chip->gpio_detect) in sbs_probe()
[all …]
/OK3568_Linux_fs/kernel/drivers/pcmcia/
H A Delectra_cf.c46 int gpio_detect; member
60 return !(gpio & (1 << cf->gpio_detect)); in electra_cf_present()
235 cf->gpio_detect = *prop; in electra_cf_probe()
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3566-evb2-lp4x-v10-eink.dts279 gpio_detect = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
H A Drk3566-rk817-eink.dts556 gpio_detect = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
H A Drk3566-rk817-eink-w103.dts692 gpio_detect = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;