Home
last modified time | relevance | path

Searched refs:duty_cycle (Results 1 – 18 of 18) sorted by relevance

/drivers/pwm/
Dpwm-twl-led.c71 int duty_cycle = DIV_ROUND_UP(duty_ns * TWL4030_LED_MAX, period_ns) + 1; in twl4030_pwmled_config() local
86 if (duty_cycle == 1) in twl4030_pwmled_config()
87 duty_cycle = 2; in twl4030_pwmled_config()
88 else if (duty_cycle > TWL4030_LED_MAX) in twl4030_pwmled_config()
89 duty_cycle = 1; in twl4030_pwmled_config()
93 pwm_config[1] = duty_cycle; in twl4030_pwmled_config()
153 int duty_cycle = (duty_ns * TWL6030_LED_MAX) / period_ns; in twl6030_pwmled_config() local
157 on_time = duty_cycle & 0xff; in twl6030_pwmled_config()
Dpwm-twl.c73 int duty_cycle = DIV_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1; in twl_pwm_config() local
88 if (duty_cycle == 1) in twl_pwm_config()
89 duty_cycle = 2; in twl_pwm_config()
90 else if (duty_cycle > TWL_PWM_MAX) in twl_pwm_config()
91 duty_cycle = 1; in twl_pwm_config()
95 pwm_config[1] = duty_cycle; in twl_pwm_config()
/drivers/media/rc/
Drc-loopback.c75 static int loop_set_tx_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in loop_set_tx_duty_cycle() argument
79 if (duty_cycle < 1 || duty_cycle > 99) { in loop_set_tx_duty_cycle()
80 dprintk("invalid duty cycle: %u\n", duty_cycle); in loop_set_tx_duty_cycle()
84 dprintk("setting duty cycle: %u\n", duty_cycle); in loop_set_tx_duty_cycle()
85 lodev->txduty = duty_cycle; in loop_set_tx_duty_cycle()
Dir-rx51.c55 unsigned int duty_cycle; /* carrier duty cycle */ member
81 match = -(lirc_rx51->duty_cycle * -load / 100); in init_timing_params()
334 lirc_rx51->duty_cycle = ivalue; in lirc_rx51_ioctl()
391 .duty_cycle = 50,
Dene_ir.c336 int carrier, duty_cycle; in ene_rx_sense_carrier() local
352 duty_cycle = (hperiod * 100) / period; in ene_rx_sense_carrier()
354 carrier, duty_cycle); in ene_rx_sense_carrier()
358 ev.duty_cycle = duty_cycle; in ene_rx_sense_carrier()
905 static int ene_set_tx_duty_cycle(struct rc_dev *rdev, u32 duty_cycle) in ene_set_tx_duty_cycle() argument
908 dbg("TX: setting duty cycle to %d%%", duty_cycle); in ene_set_tx_duty_cycle()
909 dev->tx_duty_cycle = duty_cycle; in ene_set_tx_duty_cycle()
Dite-cir.c129 static u8 ite_get_pulse_width_bits(unsigned int freq, int duty_cycle) in ite_get_pulse_width_bits() argument
140 on_ns = period_ns * duty_cycle / 100; in ite_get_pulse_width_bits()
369 static int ite_set_tx_duty_cycle(struct rc_dev *rcdev, u32 duty_cycle) in ite_set_tx_duty_cycle() argument
375 dev->params.tx_duty_cycle = duty_cycle; in ite_set_tx_duty_cycle()
/drivers/leds/
Dleds-lp3944.c140 u8 duty_cycle) in lp3944_dim_set_dutycycle() argument
154 if (duty_cycle > LP3944_DUTY_CYCLE_MAX) in lp3944_dim_set_dutycycle()
157 pwm_value = (duty_cycle * 255) / LP3944_DUTY_CYCLE_MAX; in lp3944_dim_set_dutycycle()
233 u8 duty_cycle; in lp3944_led_set_blink() local
252 duty_cycle = 100 * (*delay_on) / period; in lp3944_led_set_blink()
258 duty_cycle = 100 - duty_cycle; in lp3944_led_set_blink()
271 err = lp3944_dim_set_dutycycle(led->client, LP3944_DIM0, duty_cycle); in lp3944_led_set_blink()
/drivers/net/wireless/ath/ath9k/
Dmci.c106 (100 - btcoex->duty_cycle) / 100; in ath_mci_adjust_aggr_limit()
132 btcoex->duty_cycle = ath_mci_duty_cycle[num_profile]; in ath_mci_update_scheme()
149 btcoex->duty_cycle = 30; in ath_mci_update_scheme()
160 btcoex->duty_cycle = AR_SREV_9565(sc->sc_ah) ? 40 : 35; in ath_mci_update_scheme()
164 btcoex->duty_cycle, btcoex->btcoex_period); in ath_mci_update_scheme()
166 btcoex->duty_cycle = 30; in ath_mci_update_scheme()
174 btcoex->duty_cycle = 30; in ath_mci_update_scheme()
178 btcoex->duty_cycle); in ath_mci_update_scheme()
199 btcoex->duty_cycle += (mci->num_bdr ? ATH_MCI_BDR_DUTY_CYCLE : 0); in ath_mci_update_scheme()
200 if (btcoex->duty_cycle > ATH_MCI_MAX_DUTY_CYCLE) in ath_mci_update_scheme()
[all …]
Dgpio.c481 sc->btcoex.duty_cycle = ATH_BTCOEX_DEF_DUTY_CYCLE; in ath9k_init_btcoex()
520 ATH_DUMP_BTCOEX("Duty Cycle", btcoex->duty_cycle); in ath9k_dump_mci_btcoex()
553 ATH_DUMP_BTCOEX("Duty Cycle", btcoex->duty_cycle); in ath9k_dump_legacy_btcoex()
Dath9k.h481 u32 duty_cycle; member
/drivers/video/backlight/
Dpwm_bl.c56 int duty_cycle; in pwm_backlight_update_status() local
59 duty_cycle = pb->levels[brightness]; in pwm_backlight_update_status()
62 duty_cycle = brightness; in pwm_backlight_update_status()
65 duty_cycle = pb->lth_brightness + in pwm_backlight_update_status()
66 (duty_cycle * (pb->period - pb->lth_brightness) / max); in pwm_backlight_update_status()
67 pwm_config(pb->pwm, duty_cycle, pb->period); in pwm_backlight_update_status()
/drivers/staging/media/lirc/
Dlirc_serial.c250 static unsigned int duty_cycle = 50; variable
384 duty_cycle = new_duty_cycle; in init_timing_params()
403 pulse_width = period * duty_cycle / 100; in init_timing_params()
408 freq, duty_cycle, __this_cpu_read(cpu_info.loops_per_jiffy), in init_timing_params()
426 duty_cycle = new_duty_cycle; in init_timing_params()
429 pulse_width = period * duty_cycle / 100; in init_timing_params()
449 if (duty_cycle > 50) in send_pulse_irdeo()
878 init_timing_params(duty_cycle, freq); in lirc_serial_probe()
1054 return init_timing_params(duty_cycle, value); in lirc_ioctl()
Dlirc_sir.c122 static unsigned int duty_cycle = 50; /* duty cycle of 50% */ variable
382 duty_cycle = value; in lirc_ioctl()
383 pulse_width = (unsigned long) duty_cycle*10000/freq; in lirc_ioctl()
397 pulse_width = (unsigned long) duty_cycle*10000/freq; in lirc_ioctl()
/drivers/media/i2c/cx25840/
Dcx25840-ir.c473 unsigned int duty_cycle) in cduty_tx_s_duty_cycle() argument
476 n = DIV_ROUND_CLOSEST(duty_cycle * 100, 625); /* 16ths of 100% */ in cduty_tx_s_duty_cycle()
805 p->duty_cycle = 50; in cx25840_ir_rx_s_parameters()
806 o->duty_cycle = p->duty_cycle; in cx25840_ir_rx_s_parameters()
991 p->duty_cycle = cduty_tx_s_duty_cycle(c, p->duty_cycle); in cx25840_ir_tx_s_parameters()
992 o->duty_cycle = p->duty_cycle; in cx25840_ir_tx_s_parameters()
1218 .duty_cycle = 25, /* 25 % - RC-5 carrier */
/drivers/media/pci/cx23885/
Dcx23888-ir.c496 unsigned int duty_cycle) in cduty_tx_s_duty_cycle() argument
499 n = DIV_ROUND_CLOSEST(duty_cycle * 100, 625); /* 16ths of 100% */ in cduty_tx_s_duty_cycle()
787 o->duty_cycle = p->duty_cycle = 50; in cx23888_ir_rx_s_parameters()
914 p->duty_cycle = cduty_tx_s_duty_cycle(dev, p->duty_cycle); in cx23888_ir_tx_s_parameters()
915 o->duty_cycle = p->duty_cycle; in cx23888_ir_tx_s_parameters()
1199 .duty_cycle = 25, /* 25 % - RC-5 carrier */
Dcx23885-input.c184 params.duty_cycle = 33; /* percent, 33 percent for NEC */ in cx23885_input_ir_start()
/drivers/video/
Dfbmon.c1142 u32 c_val, m_val, duty_cycle, hblank; in fb_get_hblank_by_hfreq() local
1148 duty_cycle = c_val - m_val; in fb_get_hblank_by_hfreq()
1149 hblank = (xres * duty_cycle)/(100000 - duty_cycle); in fb_get_hblank_by_hfreq()
1176 u32 duty_cycle, h_period, hblank; in fb_get_hblank_by_dclk() local
1189 duty_cycle = C_VAL * 1000 - (M_VAL * h_period)/100; in fb_get_hblank_by_dclk()
1190 hblank = (xres * duty_cycle)/(100000 - duty_cycle) + 8; in fb_get_hblank_by_dclk()
/drivers/net/wireless/brcm80211/brcmsmac/
Dmain.c3723 brcms_c_duty_cycle_set(struct brcms_c_info *wlc, int duty_cycle, bool isOFDM, in brcms_c_duty_cycle_set() argument
3730 if (duty_cycle > 100 || duty_cycle < 0) { in brcms_c_duty_cycle_set()
3736 if (duty_cycle) in brcms_c_duty_cycle_set()
3737 idle_busy_ratio_x_16 = (100 - duty_cycle) * 16 / duty_cycle; in brcms_c_duty_cycle_set()
3743 wlc->tx_duty_cycle_ofdm = (u16) duty_cycle; in brcms_c_duty_cycle_set()
3745 wlc->tx_duty_cycle_cck = (u16) duty_cycle; in brcms_c_duty_cycle_set()