Home
last modified time | relevance | path

Searched refs:cts (Results 1 – 25 of 79) sorted by relevance

1234

/drivers/gpu/drm/display/
A Ddrm_hdmi_helper.c263 unsigned int cts; member
281 .n_cts_32k = { .n = 4576, .cts = 28125, },
282 .n_cts_44k1 = { .n = 7007, .cts = 31250, },
283 .n_cts_48k = { .n = 6864, .cts = 28125, },
286 .n_cts_32k = { .n = 4096, .cts = 25200, },
287 .n_cts_44k1 = { .n = 6272, .cts = 28000, },
389 unsigned int n, cts, mult; in drm_hdmi_acr_get_n_cts() local
413 cts = entry->cts; in drm_hdmi_acr_get_n_cts()
417 cts = 0; in drm_hdmi_acr_get_n_cts()
420 if (!cts) in drm_hdmi_acr_get_n_cts()
[all …]
/drivers/crypto/amcc/
A Dcrypto4xx_sa.h280 + cts->sa_contents.bf.inner_size in get_dynamic_sa_offset_state_ptr_field()
281 + cts->sa_contents.bf.outer_size in get_dynamic_sa_offset_state_ptr_field()
282 + cts->sa_contents.bf.spi in get_dynamic_sa_offset_state_ptr_field()
283 + cts->sa_contents.bf.seq_num0 in get_dynamic_sa_offset_state_ptr_field()
284 + cts->sa_contents.bf.seq_num1 in get_dynamic_sa_offset_state_ptr_field()
285 + cts->sa_contents.bf.seq_num_mask0 in get_dynamic_sa_offset_state_ptr_field()
289 + cts->sa_contents.bf.iv0 in get_dynamic_sa_offset_state_ptr_field()
290 + cts->sa_contents.bf.iv1 in get_dynamic_sa_offset_state_ptr_field()
291 + cts->sa_contents.bf.iv2 in get_dynamic_sa_offset_state_ptr_field()
292 + cts->sa_contents.bf.iv3; in get_dynamic_sa_offset_state_ptr_field()
[all …]
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_afmt.c53 int n, cts; in amdgpu_afmt_calc_cts() local
58 cts = clock * 1000; in amdgpu_afmt_calc_cts()
61 div = gcd(n, cts); in amdgpu_afmt_calc_cts()
64 cts /= div; in amdgpu_afmt_calc_cts()
73 cts *= mul; in amdgpu_afmt_calc_cts()
82 *CTS = cts; in amdgpu_afmt_calc_cts()
/drivers/gpu/drm/bridge/adv7511/
A Dadv7511_audio.c18 unsigned int *cts, unsigned int *n) in adv7511_calc_cts_n() argument
34 *cts = ((f_tmds * *n) / (128 * fs)) * 1000; in adv7511_calc_cts_n()
39 unsigned int cts = 0; in adv7511_update_cts_n() local
42 adv7511_calc_cts_n(adv7511->f_tmds, adv7511->f_audio, &cts, &n); in adv7511_update_cts_n()
49 (cts >> 16) & 0xf); in adv7511_update_cts_n()
51 (cts >> 8) & 0xff); in adv7511_update_cts_n()
53 cts & 0xff); in adv7511_update_cts_n()
/drivers/gpu/drm/omapdrm/dss/
A Dhdmi_common.c52 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument
57 if (n == NULL || cts == NULL) in hdmi_compute_acr()
146 *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
A Dhdmi4_core.c489 REG_FLD_MOD(av_base, HDMI_CORE_AV_CTS_SVAL1, cfg->cts, 7, 0); in hdmi_core_audio_config()
491 HDMI_CORE_AV_CTS_SVAL2, cfg->cts >> 8, 7, 0); in hdmi_core_audio_config()
493 HDMI_CORE_AV_CTS_SVAL3, cfg->cts >> 16, 7, 0); in hdmi_core_audio_config()
638 int n, cts, channel_count; in hdmi4_audio_config() local
700 hdmi_compute_acr(pclk, fs_nr, &n, &cts); in hdmi4_audio_config()
704 acore.cts = cts; in hdmi4_audio_config()
A Dhdmi5_core.c621 REG_FLD_MOD(base, HDMI_CORE_AUD_CTS1, cfg->cts, 7, 0); in hdmi5_core_audio_config()
622 REG_FLD_MOD(base, HDMI_CORE_AUD_CTS2, cfg->cts >> 8, 7, 0); in hdmi5_core_audio_config()
623 REG_FLD_MOD(base, HDMI_CORE_AUD_CTS3, cfg->cts >> 16, 3, 0); in hdmi5_core_audio_config()
761 int n, cts, channel_count; in hdmi5_audio_config() local
804 hdmi_compute_acr(pclk, fs_nr, &n, &cts); in hdmi5_audio_config()
806 core_cfg.cts = cts; in hdmi5_audio_config()
/drivers/video/fbdev/omap2/omapfb/dss/
A Dhdmi_common.c52 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument
57 if (n == NULL || cts == NULL) in hdmi_compute_acr()
146 *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
A Dhdmi4_core.c534 REG_FLD_MOD(av_base, HDMI_CORE_AV_CTS_SVAL1, cfg->cts, 7, 0); in hdmi_core_audio_config()
536 HDMI_CORE_AV_CTS_SVAL2, cfg->cts >> 8, 7, 0); in hdmi_core_audio_config()
538 HDMI_CORE_AV_CTS_SVAL3, cfg->cts >> 16, 7, 0); in hdmi_core_audio_config()
682 int n, cts, channel_count; in hdmi4_audio_config() local
744 hdmi_compute_acr(pclk, fs_nr, &n, &cts); in hdmi4_audio_config()
748 acore.cts = cts; in hdmi4_audio_config()
A Dhdmi5_core.c634 REG_FLD_MOD(base, HDMI_CORE_AUD_CTS1, cfg->cts, 7, 0); in hdmi5_core_audio_config()
635 REG_FLD_MOD(base, HDMI_CORE_AUD_CTS2, cfg->cts >> 8, 7, 0); in hdmi5_core_audio_config()
636 REG_FLD_MOD(base, HDMI_CORE_AUD_CTS3, cfg->cts >> 16, 3, 0); in hdmi5_core_audio_config()
774 int n, cts, channel_count; in hdmi5_audio_config() local
817 hdmi_compute_acr(pclk, fs_nr, &n, &cts); in hdmi5_audio_config()
819 core_cfg.cts = cts; in hdmi5_audio_config()
/drivers/gpu/drm/msm/hdmi/
A Dhdmi_audio.c46 uint32_t n, cts, multiplier; in msm_hdmi_audio_update() local
49 drm_hdmi_acr_get_n_cts(hdmi->pixclock, audio->rate, &n, &cts); in msm_hdmi_audio_update()
61 DBG("n=%u, cts=%u, multiplier=%u", n, cts, multiplier); in msm_hdmi_audio_update()
79 HDMI_ACR_0_CTS(cts)); in msm_hdmi_audio_update()
/drivers/tty/serial/
A Dmax3100.c83 int cts; /* last CTS received for flow ctrl */ member
185 int ret = 0, cts; in max3100_handlerx_unlocked() local
214 cts = (rx & MAX3100_CTS) > 0; in max3100_handlerx_unlocked()
215 if (s->cts != cts) { in max3100_handlerx_unlocked()
216 s->cts = cts; in max3100_handlerx_unlocked()
217 uart_handle_cts_change(&s->port, cts); in max3100_handlerx_unlocked()
379 return (s->cts ? TIOCM_CTS : 0) | TIOCM_DSR | TIOCM_CAR; in max3100_get_mctrl()
A Dtimbuart.c195 u8 cts = ioread8(port->membase + TIMBUART_CTRL); in timbuart_get_mctrl() local
196 dev_dbg(port->dev, "%s - cts %x\n", __func__, cts); in timbuart_get_mctrl()
198 if (cts & TIMBUART_CTRL_CTS) in timbuart_get_mctrl()
216 unsigned int cts; in timbuart_mctrl_check() local
221 cts = timbuart_get_mctrl(port); in timbuart_mctrl_check()
222 uart_handle_cts_change(port, cts & TIOCM_CTS); in timbuart_mctrl_check()
/drivers/crypto/intel/keembay/
A DKconfig17 enabled: ecb(aes), cts(cbc(aes)), ecb(sm4) and cts(cbc(sm4)).
38 Provides OCS version of cts(cbc(aes)) and cts(cbc(sm4)).
/drivers/usb/serial/
A Dopticon.c42 bool cts; member
65 priv->cts = false; in opticon_process_status_packet()
67 priv->cts = true; in opticon_process_status_packet()
314 if (priv->cts) in opticon_tiocmget()
A Dgeneric.c519 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed()
557 icount->cts = cnow.cts; in usb_serial_generic_get_icount()
/drivers/gpu/drm/bridge/synopsys/
A Ddw-hdmi-qp.c176 static void dw_hdmi_qp_set_cts_n(struct dw_hdmi_qp *hdmi, unsigned int cts, in dw_hdmi_qp_set_cts_n() argument
183 if (cts) in dw_hdmi_qp_set_cts_n()
190 dw_hdmi_qp_mod(hdmi, AUDPKT_ACR_CTS_OVR_VAL(cts), AUDPKT_ACR_CTS_OVR_VAL_MSK, in dw_hdmi_qp_set_cts_n()
230 u64 cts = mul_u32_u32(pixel_clk, n); in dw_hdmi_qp_audio_math_diff() local
232 return do_div(cts, 128 * freq); in dw_hdmi_qp_audio_math_diff()
435 unsigned int n, cts; in dw_hdmi_qp_set_sample_rate() local
438 cts = dw_hdmi_qp_find_cts(hdmi, tmds_char_rate, sample_rate); in dw_hdmi_qp_set_sample_rate()
440 dw_hdmi_qp_set_cts_n(hdmi, cts, n); in dw_hdmi_qp_set_sample_rate()
/drivers/spi/
A Dspi-wpcm-fiu.c101 u8 cts = FIU_UMA_CTS_EXEC_DONE | FIU_UMA_CTS_CS(cs); in wpcm_fiu_do_uma() local
104 cts |= FIU_UMA_CTS_A_SIZE; in wpcm_fiu_do_uma()
106 cts |= FIU_UMA_CTS_WR; in wpcm_fiu_do_uma()
107 cts |= FIU_UMA_CTS_D_SIZE(data_bytes); in wpcm_fiu_do_uma()
109 writeb(cts, fiu->regs + FIU_UMA_CTS); in wpcm_fiu_do_uma()
/drivers/gpu/drm/mediatek/
A Dmtk_hdmi.c679 unsigned int *n, unsigned int *cts) in mtk_hdmi_get_ncts() argument
682 *cts = hdmi_expected_cts(sample_rate, clock, *n); in mtk_hdmi_get_ncts()
686 unsigned int cts) in do_hdmi_hw_aud_set_ncts() argument
696 val[0] = (cts >> 24) & 0xff; in do_hdmi_hw_aud_set_ncts()
697 val[1] = (cts >> 16) & 0xff; in do_hdmi_hw_aud_set_ncts()
698 val[2] = (cts >> 8) & 0xff; in do_hdmi_hw_aud_set_ncts()
699 val[3] = cts & 0xff; in do_hdmi_hw_aud_set_ncts()
713 unsigned int n, cts; in mtk_hdmi_hw_aud_set_ncts() local
715 mtk_hdmi_get_ncts(sample_rate, clock, &n, &cts); in mtk_hdmi_hw_aud_set_ncts()
718 __func__, sample_rate, clock, n, cts); in mtk_hdmi_hw_aud_set_ncts()
[all …]
/drivers/gpu/drm/bridge/
A Dite-it66121.c1114 unsigned int cts = 0; in it661221_set_ncts() local
1122 cts = val << 12; in it661221_set_ncts()
1124 cts |= val << 4; in it661221_set_ncts()
1126 cts |= val >> 4; in it661221_set_ncts()
1127 if (cts == 0) { in it661221_set_ncts()
1130 if (last_cts > cts) in it661221_set_ncts()
1131 diff = last_cts - cts; in it661221_set_ncts()
1133 diff = cts - last_cts; in it661221_set_ncts()
1134 last_cts = cts; in it661221_set_ncts()
1137 sum_cts += cts; in it661221_set_ncts()
/drivers/mmc/core/
A Dsdio_uart.c52 __u32 cts; member
471 port->icount.cts++; in sdio_uart_check_modem_status()
474 bool cts = status & UART_MSR_CTS; in sdio_uart_check_modem_status() local
476 if (cts) { in sdio_uart_check_modem_status()
482 if (!cts) { in sdio_uart_check_modem_status()
969 if (port->icount.cts) in sdio_uart_proc_show()
971 port->icount.cts); in sdio_uart_proc_show()
/drivers/gpu/drm/radeon/
A Dradeon_audio.c496 int n, cts; in radeon_audio_calc_cts() local
501 cts = clock * 1000; in radeon_audio_calc_cts()
504 div = gcd(n, cts); in radeon_audio_calc_cts()
507 cts /= div; in radeon_audio_calc_cts()
516 cts *= mul; in radeon_audio_calc_cts()
525 *CTS = cts; in radeon_audio_calc_cts()
/drivers/net/wireless/broadcom/b43/
A Dxmit.c439 struct ieee80211_cts *cts; in b43_generate_txhdr() local
443 cts = (struct ieee80211_cts *) in b43_generate_txhdr()
447 cts = (struct ieee80211_cts *) in b43_generate_txhdr()
451 cts = (struct ieee80211_cts *) in b43_generate_txhdr()
457 info, cts); in b43_generate_txhdr()
/drivers/net/ethernet/sfc/
A Dtc_conntrack.c442 list_add_tail(&conn->list, &ct_zone->cts); in efx_tc_ct_replace()
587 INIT_LIST_HEAD(&ct_zone->cts); in efx_tc_ct_register_zone()
614 list_for_each_entry(conn, &ct_zone->cts, list) in efx_tc_ct_unregister_zone()
618 list_for_each_entry_safe(conn, next, &ct_zone->cts, list) in efx_tc_ct_unregister_zone()
/drivers/tty/
A Damiserial.c323 icount->cts++; in check_modem_status()
1086 icount->cts = cnow.cts; in rs_get_icount()
1142 cnow.dcd == cprev.dcd && cnow.cts == cprev.cts) { in rs_ioctl()
1149 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts)) ) { in rs_ioctl()

Completed in 74 milliseconds

1234