/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | pwm.h | 73 * @pwm: global index of the PWM device 84 unsigned int pwm; member 95 * @pwm: PWM device 98 static inline void pwm_get_state(const struct pwm_device *pwm, struct pwm_state *state) in pwm_get_state() argument 100 *state = pwm->state; in pwm_get_state() 103 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled() argument 107 pwm_get_state(pwm, &state); in pwm_is_enabled() 112 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period() argument 114 if (pwm) { in pwm_set_period() 115 pwm in pwm_set_period() 119 pwm_get_period(const struct pwm_device *pwm) pwm_get_period() argument 128 pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) pwm_set_duty_cycle() argument 135 pwm_get_duty_cycle(const struct pwm_device *pwm) pwm_get_duty_cycle() argument 144 pwm_get_polarity(const struct pwm_device *pwm) pwm_get_polarity() argument 153 pwm_get_args(const struct pwm_device *pwm, struct pwm_args *args) pwm_get_args() argument 175 pwm_init_state(const struct pwm_device *pwm, struct pwm_state *state) pwm_init_state() argument 321 pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) pwm_config() argument 349 pwm_enable(struct pwm_device *pwm) pwm_enable() argument 370 pwm_disable(struct pwm_device *pwm) pwm_disable() argument 413 pwm_free(struct pwm_device *pwm) pwm_free() argument 417 pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state) pwm_apply_state() argument 422 pwm_adjust_config(struct pwm_device *pwm) pwm_adjust_config() argument 427 pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) pwm_config() argument 432 pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, unsigned long timeout) pwm_capture() argument 437 pwm_enable(struct pwm_device *pwm) pwm_enable() argument 442 pwm_disable(struct pwm_device *pwm) pwm_disable() argument 446 pwm_set_chip_data(struct pwm_device *pwm, void *data) pwm_set_chip_data() argument 451 pwm_get_chip_data(struct pwm_device *pwm) pwm_get_chip_data() argument 486 pwm_put(struct pwm_device *pwm) pwm_put() argument 506 devm_pwm_put(struct device *dev, struct pwm_device *pwm) devm_pwm_put() argument 511 pwm_apply_args(struct pwm_device *pwm) pwm_apply_args() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/pwm/ |
H A D | sysfs.c | 15 #include <linux/pwm.h> 19 struct pwm_device *pwm; member 33 return export->pwm; in child_to_pwm_device() 38 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() local 41 pwm_get_state(pwm, &state); in period_show() 49 struct pwm_device *pwm = export->pwm; in period_store() local 60 pwm_get_state(pwm, &state); in period_store() 62 ret = pwm_apply_state(pwm, &state); in period_store() 70 const struct pwm_device *pwm in duty_cycle_show() local 81 struct pwm_device *pwm = export->pwm; duty_cycle_store() local 103 const struct pwm_device *pwm = child_to_pwm_device(child); oneshot_count_show() local 114 struct pwm_device *pwm = export->pwm; oneshot_count_store() local 136 const struct pwm_device *pwm = child_to_pwm_device(child); enable_show() local 147 struct pwm_device *pwm = export->pwm; enable_store() local 181 const struct pwm_device *pwm = child_to_pwm_device(child); polarity_show() local 203 struct pwm_device *pwm = export->pwm; polarity_store() local 227 struct pwm_device *pwm = child_to_pwm_device(child); capture_show() local 254 ATTRIBUTE_GROUPS(pwm); global() variable 263 pwm_export_child(struct device *parent, struct pwm_device *pwm) pwm_export_child() argument 308 pwm_unexport_child(struct device *parent, struct pwm_device *pwm) pwm_unexport_child() argument 338 struct pwm_device *pwm; export_store() local 403 pwm_class_get_state(struct device *parent, struct pwm_device *pwm, struct pwm_state *state) pwm_class_get_state() argument 426 pwm_class_apply_state(struct pwm_export *export, struct pwm_device *pwm, struct pwm_state *state) pwm_class_apply_state() argument 443 struct pwm_device *pwm = &chip->pwms[i]; pwm_class_resume_npwm() local 469 struct pwm_device *pwm = &chip->pwms[i]; pwm_class_suspend() local 540 struct pwm_device *pwm = &chip->pwms[i]; pwmchip_sysfs_unexport() local [all...] |
H A D | pwm-rockchip.c | 16 #include <linux/pwm.h>
75 static void rockchip_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state)
in rockchip_pwm_get_state() argument 108 static void rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state)
in rockchip_pwm_config() argument 184 static int rockchip_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, bool enable)
in rockchip_pwm_enable() argument 228 static int rockchip_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state)
in rockchip_pwm_apply() argument 240 pwm_get_state(pwm, &curstate);
in rockchip_pwm_apply() 244 ret = rockchip_pwm_enable(chip, pwm, false);
in rockchip_pwm_apply() 251 rockchip_pwm_config(chip, pwm, state);
in rockchip_pwm_apply() 253 ret = rockchip_pwm_enable(chip, pwm, state->enabled);
in rockchip_pwm_apply() 338 static const struct of_device_id rockchip_pwm_dt_ids[] = {{.compatible = "rockchip,rk2928-pwm", [all...] |
/device/soc/rockchip/rk2206/adapter/hals/iot_hardware/wifiiot_lite/ |
H A D | hal_iot_pwm.c | 44 .pwm = { 59 .pwm = {.gpio = GPIO0_PB5, 73 .pwm = { 88 .pwm = { 103 .pwm = { 118 .pwm = { 133 .pwm = { 148 .pwm = { 163 .pwm = { 178 .pwm [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/video/backlight/ |
H A D | pwm_bl.c | 17 #include <linux/pwm.h>
23 struct pwm_device *pwm;
member 45 pwm_get_state(pb->pwm, &state);
in pwm_backlight_power_on() 56 pwm_apply_state(pb->pwm, &state);
in pwm_backlight_power_on() 73 pwm_get_state(pb->pwm, &state);
in pwm_backlight_power_off() 88 pwm_apply_state(pb->pwm, &state);
in pwm_backlight_power_off() 100 pwm_get_state(pb->pwm, &state);
in compute_duty_cycle() 125 pwm_get_state(pb->pwm, &state);
in pwm_backlight_update_status() 127 pwm_apply_state(pb->pwm, &state);
in pwm_backlight_update_status() 255 of_property_read_u32(node, "post-pwm in pwm_backlight_parse_dt() [all...] |
/device/soc/hisilicon/common/platform/pwm/ |
H A D | pwm_hi35xx.c | 71 HDF_LOGE("%s: pwm dumper is NULL", __func__); in PwmDumperDump() 88 int32_t HiPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in HiPwmSetConfig() argument 90 struct HiPwm *hp = (struct HiPwm *)pwm; in HiPwmSetConfig() 112 if (pwm->cfg.polarity != config->polarity && hp->supportPolarity) { in HiPwmSetConfig() 114 HDF_LOGI("%s: [HiPwmSetPolarity] done, polarity: %hhu -> %hhu.", __func__, pwm->cfg.polarity, config->polarity); in HiPwmSetConfig() 116 if (pwm->cfg.period != config->period) { in HiPwmSetConfig() 118 HDF_LOGI("%s: [HiPwmSetPeriod] done, period: %u -> %u", __func__, pwm->cfg.period, config->period); in HiPwmSetConfig() 120 if (pwm->cfg.duty != config->duty) { in HiPwmSetConfig() 122 HDF_LOGI("%s: [HiPwmSetDuty] done, duty: %u -> %u", __func__, pwm->cfg.duty, config->duty); in HiPwmSetConfig() 230 HDF_LOGI("%s: pwm ini in HdfPwmInit() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/ |
H A D | module_config.mk | 14 pwm_srcs += pwm
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/pwm/ |
H A D | pwm_drv.h | 15 * Description: pwm driver implementatioin. 39 pwm_ctl pwm[HI_PWM_PORT_MAX]; member
|
/device/soc/rockchip/rk2206/hardware/include/lz_hardware/ |
H A D | device.h | 64 Pinctrl pwm; member
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/ |
H A D | Makefile | 100 objects += pwm
|
/device/board/hisilicon/hispark_taurus/display_drivers/ |
H A D | mipi_icn9700_st7701sn.c | 445 .pwm = { BLK_PWM1, PWM_MAX_PERIOD },
|