Home
last modified time | relevance | path

Searched refs:psc (Results 1 – 25 of 47) sorted by relevance

12

/drivers/spi/
Dspi-mpc52xx-psc.c35 struct mpc52xx_psc __iomem *psc; member
75 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_activate_cs() local
79 sicr = in_be32(&psc->sicr); in mpc52xx_psc_spi_activate_cs()
95 out_be32(&psc->sicr, sicr); in mpc52xx_psc_spi_activate_cs()
101 ccr = in_be16((u16 __iomem *)&psc->ccr); in mpc52xx_psc_spi_activate_cs()
107 out_be16((u16 __iomem *)&psc->ccr, ccr); in mpc52xx_psc_spi_activate_cs()
130 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_transfer_rxtx() local
145 out_8(&psc->command, MPC52xx_PSC_TX_ENABLE | MPC52xx_PSC_RX_ENABLE); in mpc52xx_psc_spi_transfer_rxtx()
160 out_8(&psc->ircr2, 0x01); in mpc52xx_psc_spi_transfer_rxtx()
163 out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]); in mpc52xx_psc_spi_transfer_rxtx()
[all …]
Dspi-mpc512x-psc.c42 struct mpc52xx_psc __iomem *psc = mps->psc; \
43 __ret = &psc->regname; \
47 struct mpc5125_psc __iomem *psc = mps->psc; \
48 __ret = &psc->regname; \
59 void __iomem *psc; member
526 mps->psc = tempp; in mpc512x_psc_spi_do_probe()
DMakefile59 obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o
60 obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o
/drivers/clk/keystone/
Dgate.c106 struct clk_psc *psc = to_clk_psc(hw); in keystone_clk_is_enabled() local
107 struct clk_psc_data *data = psc->psc_data; in keystone_clk_is_enabled()
115 struct clk_psc *psc = to_clk_psc(hw); in keystone_clk_enable() local
116 struct clk_psc_data *data = psc->psc_data; in keystone_clk_enable()
119 if (psc->lock) in keystone_clk_enable()
120 spin_lock_irqsave(psc->lock, flags); in keystone_clk_enable()
125 if (psc->lock) in keystone_clk_enable()
126 spin_unlock_irqrestore(psc->lock, flags); in keystone_clk_enable()
133 struct clk_psc *psc = to_clk_psc(hw); in keystone_clk_disable() local
134 struct clk_psc_data *data = psc->psc_data; in keystone_clk_disable()
[all …]
/drivers/clk/davinci/
Dpsc.c309 struct davinci_psc_data *psc = to_davinci_psc_data(rcdev); in davinci_psc_reset_assert() local
310 struct clk *clk = psc->clk_data.clks[id]; in davinci_psc_reset_assert()
318 struct davinci_psc_data *psc = to_davinci_psc_data(rcdev); in davinci_psc_reset_deassert() local
319 struct clk *clk = psc->clk_data.clks[id]; in davinci_psc_reset_deassert()
365 struct davinci_psc_data *psc; in __davinci_psc_register_clocks() local
371 psc = kzalloc(sizeof(*psc), GFP_KERNEL); in __davinci_psc_register_clocks()
372 if (!psc) in __davinci_psc_register_clocks()
381 psc->clk_data.clks = clks; in __davinci_psc_register_clocks()
382 psc->clk_data.clk_num = num_clks; in __davinci_psc_register_clocks()
397 psc->pm_data.domains = pm_domains; in __davinci_psc_register_clocks()
[all …]
DMakefile14 obj-y += psc.o
15 obj-$(CONFIG_ARCH_DAVINCI_DA830) += psc-da830.o
16 obj-$(CONFIG_ARCH_DAVINCI_DA850) += psc-da850.o
17 obj-$(CONFIG_ARCH_DAVINCI_DM355) += psc-dm355.o
18 obj-$(CONFIG_ARCH_DAVINCI_DM365) += psc-dm365.o
19 obj-$(CONFIG_ARCH_DAVINCI_DM644x) += psc-dm644x.o
20 obj-$(CONFIG_ARCH_DAVINCI_DM646x) += psc-dm646x.o
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dsw.c114 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl88e_init_sw_vars()
115 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl88e_init_sw_vars()
116 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl88e_init_sw_vars()
120 if (!rtlpriv->psc.inactiveps) in rtl88e_init_sw_vars()
122 if (!rtlpriv->psc.fwctrl_lps) in rtl88e_init_sw_vars()
124 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl88e_init_sw_vars()
125 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl88e_init_sw_vars()
131 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl88e_init_sw_vars()
132 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl88e_init_sw_vars()
133 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl88e_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dps.c480 if (!rtlpriv->psc.swctrl_lps) in rtl_swlps_beacon()
486 if (!rtlpriv->psc.sw_ps_enabled) in rtl_swlps_beacon()
489 if (rtlpriv->psc.fwctrl_lps) in rtl_swlps_beacon()
507 rtlpriv->psc.last_beacon = jiffies; in rtl_swlps_beacon()
520 rtlpriv->psc.dtim_counter = tim_ie->dtim_count; in rtl_swlps_beacon()
530 rtlpriv->psc.multi_buffered = m_buffed; in rtl_swlps_beacon()
553 if (!rtlpriv->psc.swctrl_lps) in rtl_swlps_rf_awake()
585 if (!rtlpriv->psc.sw_ps_enabled) in rtl_swlps_rf_sleep()
600 if (rtlpriv->psc.rfchange_inprogress) { in rtl_swlps_rf_sleep()
622 if (rtlpriv->psc.dtim_counter == 0) { in rtl_swlps_rf_sleep()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dsw.c113 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92c_init_sw_vars()
114 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92c_init_sw_vars()
115 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92c_init_sw_vars()
116 if (!rtlpriv->psc.inactiveps) in rtl92c_init_sw_vars()
118 if (!rtlpriv->psc.fwctrl_lps) in rtl92c_init_sw_vars()
120 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92c_init_sw_vars()
121 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92c_init_sw_vars()
126 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92c_init_sw_vars()
127 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92c_init_sw_vars()
128 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92c_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dsw.c123 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92d_init_sw_vars()
124 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92d_init_sw_vars()
125 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92d_init_sw_vars()
126 if (!rtlpriv->psc.inactiveps) in rtl92d_init_sw_vars()
128 if (!rtlpriv->psc.fwctrl_lps) in rtl92d_init_sw_vars()
130 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92d_init_sw_vars()
131 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92d_init_sw_vars()
136 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92d_init_sw_vars()
137 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92d_init_sw_vars()
138 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92d_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dsw.c161 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92s_init_sw_vars()
162 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92s_init_sw_vars()
163 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92s_init_sw_vars()
164 if (!rtlpriv->psc.inactiveps) in rtl92s_init_sw_vars()
166 if (!rtlpriv->psc.fwctrl_lps) in rtl92s_init_sw_vars()
168 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92s_init_sw_vars()
169 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92s_init_sw_vars()
174 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92s_init_sw_vars()
175 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92s_init_sw_vars()
176 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92s_init_sw_vars()
[all …]
Dhw.c1124 if (rtlpriv->psc.rfpwr_state != ERFON) in rtl92se_set_check_bssid()
1380 if (rtlpriv->psc.rfoff_reason == RF_CHANGE_BY_IPS) in _rtl92se_gen_refreshledstate()
1393 rtlpriv->psc.pwrdomain_protect = true; in _rtl92se_power_domain_init()
1399 rtlpriv->psc.pwrdomain_protect = false; in _rtl92se_power_domain_init()
1412 if (rtlpriv->psc.rfoff_reason & (RF_CHANGE_BY_IPS | RF_CHANGE_BY_HW)) in _rtl92se_power_domain_init()
1492 rtlpriv->psc.pwrdomain_protect = false; in _rtl92se_power_domain_init()
1501 rtlpriv->psc.pwrdomain_protect = false; in _rtl92se_power_domain_init()
1524 while (wait-- >= 10 && rtlpriv->psc.pwrdomain_protect) { in rtl92se_card_disable()
1525 if (rtlpriv->psc.pwrdomain_protect) in rtl92se_card_disable()
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dsw.c127 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl8723be_init_sw_vars()
128 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl8723be_init_sw_vars()
129 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl8723be_init_sw_vars()
133 rtlpriv->psc.reg_fwctrl_lps = 2; in rtl8723be_init_sw_vars()
134 rtlpriv->psc.reg_max_lps_awakeintvl = 2; in rtl8723be_init_sw_vars()
140 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl8723be_init_sw_vars()
141 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl8723be_init_sw_vars()
142 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl8723be_init_sw_vars()
143 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl8723be_init_sw_vars()
144 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl8723be_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dsw.c116 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92ee_init_sw_vars()
117 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92ee_init_sw_vars()
118 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92ee_init_sw_vars()
122 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92ee_init_sw_vars()
123 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92ee_init_sw_vars()
129 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92ee_init_sw_vars()
130 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92ee_init_sw_vars()
131 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92ee_init_sw_vars()
132 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl92ee_init_sw_vars()
133 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl92ee_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dsw.c139 rtlpriv->psc.wo_wlan_mode = WAKE_ON_MAGIC_PACKET | in rtl8821ae_init_sw_vars()
143 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl8821ae_init_sw_vars()
144 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl8821ae_init_sw_vars()
145 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl8821ae_init_sw_vars()
150 rtlpriv->psc.reg_fwctrl_lps = 2; in rtl8821ae_init_sw_vars()
151 rtlpriv->psc.reg_max_lps_awakeintvl = 2; in rtl8821ae_init_sw_vars()
158 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl8821ae_init_sw_vars()
159 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl8821ae_init_sw_vars()
160 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl8821ae_init_sw_vars()
161 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl8821ae_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dsw.c128 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl8723e_init_sw_vars()
129 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl8723e_init_sw_vars()
130 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl8723e_init_sw_vars()
134 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl8723e_init_sw_vars()
135 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl8723e_init_sw_vars()
138 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl8723e_init_sw_vars()
139 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl8723e_init_sw_vars()
140 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl8723e_init_sw_vars()
141 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl8723e_init_sw_vars()
142 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl8723e_init_sw_vars()
[all …]
/drivers/pwm/
Dpwm-stm32.c172 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local
199 while ((div > priv->max_arr) && (psc < MAX_TIM_PSC)) { in stm32_pwm_capture()
200 psc++; in stm32_pwm_capture()
202 do_div(div, psc + 1); in stm32_pwm_capture()
205 regmap_write(priv->regmap, TIM_PSC, psc); in stm32_pwm_capture()
236 if (psc && scale > 1) { in stm32_pwm_capture()
238 psc /= scale; in stm32_pwm_capture()
239 regmap_write(priv->regmap, TIM_PSC, psc); in stm32_pwm_capture()
247 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
303 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
[all …]
/drivers/acpi/
Ddevice_pm.c50 unsigned long long psc; in acpi_dev_pm_explicit_get() local
53 status = acpi_evaluate_integer(device->handle, "_PSC", NULL, &psc); in acpi_dev_pm_explicit_get()
57 *state = psc; in acpi_dev_pm_explicit_get()
100 int psc; in acpi_device_get_power() local
102 error = acpi_dev_pm_explicit_get(device, &psc); in acpi_device_get_power()
114 if (psc > result && psc < ACPI_STATE_D3_COLD) in acpi_device_get_power()
115 result = psc; in acpi_device_get_power()
117 result = psc > ACPI_STATE_D2 ? ACPI_STATE_D3_HOT : psc; in acpi_device_get_power()
248 int psc; in acpi_device_set_power() local
265 result = acpi_dev_pm_explicit_get(device, &psc); in acpi_device_set_power()
[all …]
/drivers/leds/
Dleds-pca9532.c48 u8 psc[2]; member
136 data->psc[pwm] = blink; in pca9532_calcpwm()
149 data->psc[pwm]); in pca9532_setpwm()
199 int psc; in pca9532_set_blink() local
211 psc = (*delay_on * 152-1)/1000; in pca9532_set_blink()
212 err = pca9532_calcpwm(client, 0, psc, led_cdev->brightness); in pca9532_set_blink()
360 data->psc[i] = pdata->psc[i]; in pca9532_configure()
364 data->psc[i]); in pca9532_configure()
/drivers/media/dvb-frontends/
Dix2505v.c126 u8 gain, cc, ref, psc, local_osc, lpf; in ix2505v_set_params() local
145 psc = 32; /* PSC = 0 */ in ix2505v_set_params()
148 x = div_factor / psc; in ix2505v_set_params()
150 A = ((x - (N * 100)) * psc) / 100; in ix2505v_set_params()
/drivers/tty/serial/
Dmpc52xx_uart.c126 static inline void mpc52xx_set_divisor(struct mpc52xx_psc __iomem *psc, in mpc52xx_set_divisor() argument
130 out_be16(&psc->mpc52xx_psc_clock_select, prescaler); in mpc52xx_set_divisor()
131 out_8(&psc->ctur, divisor >> 8); in mpc52xx_set_divisor()
132 out_8(&psc->ctlr, divisor & 0xff); in mpc52xx_set_divisor()
167 struct mpc52xx_psc __iomem *psc = PSC(port); in mpc52xx_psc_enable_ms() local
170 in_8(&psc->mpc52xx_psc_ipcr); in mpc52xx_psc_enable_ms()
172 out_8(&psc->mpc52xx_psc_acr, MPC52xx_PSC_IEC_CTS | MPC52xx_PSC_IEC_DCD); in mpc52xx_psc_enable_ms()
175 out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_enable_ms()
198 struct mpc52xx_psc __iomem *psc = PSC(port); in mpc52xx_psc_fifo_init() local
207 out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_fifo_init()
[all …]
/drivers/i2c/busses/
Di2c-davinci.c172 u16 psc; in i2c_davinci_calc_clk_dividers() local
207 psc = (input_clock / 12000000) - 1; in i2c_davinci_calc_clk_dividers()
208 if ((input_clock / (psc + 1)) > 12000000) in i2c_davinci_calc_clk_dividers()
209 psc++; /* better to run under spec than over */ in i2c_davinci_calc_clk_dividers()
210 d = (psc >= 2) ? 5 : 7 - psc; in i2c_davinci_calc_clk_dividers()
215 clk = ((input_clock / (psc + 1)) / (pdata->bus_freq * 1000)); in i2c_davinci_calc_clk_dividers()
217 if (input_clock / (psc + 1) / clk > pdata->bus_freq * 1000) in i2c_davinci_calc_clk_dividers()
244 davinci_i2c_write_reg(dev, DAVINCI_I2C_PSC_REG, psc); in i2c_davinci_calc_clk_dividers()
Di2c-omap.c351 u16 psc = 0, scll = 0, sclh = 0; in omap_i2c_init() local
395 psc = fclk_rate / 12000000; in omap_i2c_init()
424 psc = fclk_rate / internal_clk; in omap_i2c_init()
425 psc = psc - 1; in omap_i2c_init()
456 fclk_rate /= (psc + 1) * 1000; in omap_i2c_init()
457 if (psc > 2) in omap_i2c_init()
458 psc = 2; in omap_i2c_init()
459 scll = fclk_rate / (omap->speed * 2) - 7 + psc; in omap_i2c_init()
460 sclh = fclk_rate / (omap->speed * 2) - 7 + psc; in omap_i2c_init()
468 omap->pscstate = psc; in omap_i2c_init()
/drivers/infiniband/hw/hfi1/
Dverbs_txreq.h66 struct send_context *psc; member
93 tx->psc = priv->s_sendcontext; in get_txreq()
/drivers/iio/trigger/
Dstm32-timer-trigger.c215 u32 psc, arr, cr1; in stm32_tt_read_frequency() local
219 regmap_read(priv->regmap, TIM_PSC, &psc); in stm32_tt_read_frequency()
224 do_div(freq, psc + 1); in stm32_tt_read_frequency()

12