Home
last modified time | relevance | path

Searched refs:US_TO_NS (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.4/drivers/media/rc/
Dstreamzap.c140 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
154 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
175 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_space()
406 sz->rdev->timeout = ((US_TO_NS(SZ_TIMEOUT * SZ_RESOLUTION) & in streamzap_probe()
411 sz->min_timeout = US_TO_NS(SZ_TIMEOUT * SZ_RESOLUTION); in streamzap_probe()
412 sz->max_timeout = US_TO_NS(SZ_TIMEOUT * SZ_RESOLUTION); in streamzap_probe()
Dir-hix5hd2.c184 ev.duration = US_TO_NS(data_l); in hix5hd2_ir_rx_interrupt()
189 ev.duration = US_TO_NS(data_h); in hix5hd2_ir_rx_interrupt()
266 rdev->rx_resolution = US_TO_NS(10); in hix5hd2_ir_probe()
267 rdev->timeout = US_TO_NS(IR_CFG_SYMBOL_MAXWIDTH * 10); in hix5hd2_ir_probe()
Dene_ir.c435 dev->rdev->rx_resolution = US_TO_NS(ENE_FW_SAMPLE_PERIOD_FAN); in ene_rx_setup()
440 US_TO_NS(ENE_FW_SMPL_BUF_FAN_MSK * in ene_rx_setup()
443 dev->rdev->rx_resolution = US_TO_NS(sample_period); in ene_rx_setup()
450 dev->rdev->min_timeout = US_TO_NS(127 * sample_period); in ene_rx_setup()
451 dev->rdev->max_timeout = US_TO_NS(200000); in ene_rx_setup()
455 dev->rdev->tx_resolution = US_TO_NS(sample_period); in ene_rx_setup()
801 ev.duration = US_TO_NS(hw_sample); in ene_isr()
821 dev->rdev->timeout = US_TO_NS(150000); in ene_setup_default_settings()
Dst_rc.c137 ev.duration = US_TO_NS(mark); in st_rc_rx_interrupt()
142 ev.duration = US_TO_NS(symbol); in st_rc_rx_interrupt()
295 rdev->timeout = US_TO_NS(MAX_SYMB_TIME); in st_rc_probe()
Dir-rx51.c84 ns = US_TO_NS(ir_rx51->wbuf[ir_rx51->wbuf_index]); in ir_rx51_timer_cb()
129 ns_to_ktime(US_TO_NS(ir_rx51->wbuf[0])), in ir_rx51_tx()
Dmeson-ir.c89 rawir.duration = US_TO_NS(duration * MESON_TRATE); in meson_ir_irq()
136 ir->rc->rx_resolution = US_TO_NS(MESON_TRATE); in meson_ir_probe()
Dfintek-cir.c309 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data()
534 rdev->timeout = US_TO_NS(1000); in fintek_probe()
536 rdev->rx_resolution = US_TO_NS(CIR_SAMPLE_PERIOD); in fintek_probe()
Dnuvoton-cir.h97 #define CIR_RX_LIMIT_COUNT (IR_DEFAULT_TIMEOUT / US_TO_NS(SAMPLE_PERIOD))
Dredrat3.c372 rawir.duration = US_TO_NS(single_len); in redrat3_process_ir_data()
952 rc->timeout = US_TO_NS(redrat3_get_timeout(rr3)); in redrat3_init_rc_dev()
958 rc->rx_resolution = US_TO_NS(2); in redrat3_init_rc_dev()
Dwinbond-cir.c368 rawir.duration = US_TO_NS(duration); in wbcir_irq_rx()
522 data->dev->rx_resolution = US_TO_NS(enable ? 2 : 10); in wbcir_set_carrier_report()
1079 data->dev->rx_resolution = US_TO_NS(2); in wbcir_probe()
Dmceusb.c1064 units = DIV_ROUND_CLOSEST(timeout, US_TO_NS(MCE_TIME_UNIT)); in mceusb_set_timeout()
1160 ir->rc->timeout = US_TO_NS((hi << 8 | lo) * MCE_TIME_UNIT); in mceusb_handle_command()
1254 rawir.duration *= US_TO_NS(MCE_TIME_UNIT); in mceusb_process_ir_data()
1553 rc->min_timeout = US_TO_NS(MCE_TIME_UNIT); in mceusb_init_rc_dev()
Dsir_ir.c113 ev.duration = US_TO_NS(val); in add_read_queue()
Dnuvoton-cir.c755 rawir.duration = US_TO_NS((sample & BUF_LEN_MASK) in nvt_process_rx_ir_data()
1037 rdev->rx_resolution = US_TO_NS(CIR_SAMPLE_PERIOD); in nvt_probe()
Diguanair.c130 rawir.duration = US_TO_NS(21845); in process_ir_data()
/Linux-v5.4/drivers/hid/
Dhid-picolcd_cir.c62 rawir.duration = US_TO_NS(rawir.pulse ? (65536 - w) : w); in picolcd_raw_cir()
118 rdev->rx_resolution = US_TO_NS(1); in picolcd_init_cir()
/Linux-v5.4/drivers/media/pci/smipcie/
Dsmipcie-ir.c90 rawir.duration = US_TO_NS(SMI_SAMPLE_PERIOD * in smi_ir_decode()
155 rc_dev->rx_resolution = US_TO_NS(SMI_SAMPLE_PERIOD); in smi_ir_init()
/Linux-v5.4/include/media/
Drc-core.h314 #define US_TO_NS(usec) ((usec) * 1000) macro