Home
last modified time | relevance | path

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

12

/drivers/spi/
Dspi-mpc52xx-psc.c36 struct mpc52xx_psc __iomem *psc; member
70 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_activate_cs() local
74 sicr = in_be32(&psc->sicr); in mpc52xx_psc_spi_activate_cs()
90 out_be32(&psc->sicr, sicr); in mpc52xx_psc_spi_activate_cs()
96 ccr = in_be16((u16 __iomem *)&psc->ccr); in mpc52xx_psc_spi_activate_cs()
102 out_be16((u16 __iomem *)&psc->ccr, ccr); in mpc52xx_psc_spi_activate_cs()
125 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_transfer_rxtx() local
140 out_8(&psc->command, MPC52xx_PSC_TX_ENABLE | MPC52xx_PSC_RX_ENABLE); in mpc52xx_psc_spi_transfer_rxtx()
155 out_8(&psc->ircr2, 0x01); in mpc52xx_psc_spi_transfer_rxtx()
158 out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]); in mpc52xx_psc_spi_transfer_rxtx()
[all …]
Dspi-mpc512x-psc.c41 struct mpc52xx_psc __iomem *psc = mps->psc; \
42 __ret = &psc->regname; \
46 struct mpc5125_psc __iomem *psc = mps->psc; \
47 __ret = &psc->regname; \
58 void __iomem *psc; member
514 mps->psc = tempp; in mpc512x_psc_spi_do_probe()
DMakefile77 obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o
78 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 …]
DMakefile12 obj-y += psc.o
13 obj-$(CONFIG_ARCH_DAVINCI_DA830) += psc-da830.o
14 obj-$(CONFIG_ARCH_DAVINCI_DA850) += psc-da850.o
15 obj-$(CONFIG_ARCH_DAVINCI_DM355) += psc-dm355.o
16 obj-$(CONFIG_ARCH_DAVINCI_DM365) += psc-dm365.o
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dsw.c113 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl88e_init_sw_vars()
114 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl88e_init_sw_vars()
115 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl88e_init_sw_vars()
119 if (!rtlpriv->psc.inactiveps) in rtl88e_init_sw_vars()
121 if (!rtlpriv->psc.fwctrl_lps) in rtl88e_init_sw_vars()
123 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl88e_init_sw_vars()
124 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl88e_init_sw_vars()
130 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl88e_init_sw_vars()
131 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl88e_init_sw_vars()
132 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl88e_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dps.c476 if (!rtlpriv->psc.swctrl_lps) in rtl_swlps_beacon()
482 if (!rtlpriv->psc.sw_ps_enabled) in rtl_swlps_beacon()
485 if (rtlpriv->psc.fwctrl_lps) in rtl_swlps_beacon()
503 rtlpriv->psc.last_beacon = jiffies; in rtl_swlps_beacon()
516 rtlpriv->psc.dtim_counter = tim_ie->dtim_count; in rtl_swlps_beacon()
526 rtlpriv->psc.multi_buffered = m_buffed; in rtl_swlps_beacon()
549 if (!rtlpriv->psc.swctrl_lps) in rtl_swlps_rf_awake()
581 if (!rtlpriv->psc.sw_ps_enabled) in rtl_swlps_rf_sleep()
596 if (rtlpriv->psc.rfchange_inprogress) { in rtl_swlps_rf_sleep()
618 if (rtlpriv->psc.dtim_counter == 0) { in rtl_swlps_rf_sleep()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dsw.c112 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92c_init_sw_vars()
113 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92c_init_sw_vars()
114 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92c_init_sw_vars()
115 if (!rtlpriv->psc.inactiveps) in rtl92c_init_sw_vars()
117 if (!rtlpriv->psc.fwctrl_lps) in rtl92c_init_sw_vars()
119 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92c_init_sw_vars()
120 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92c_init_sw_vars()
125 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92c_init_sw_vars()
126 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92c_init_sw_vars()
127 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.c160 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92s_init_sw_vars()
161 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92s_init_sw_vars()
162 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92s_init_sw_vars()
163 if (!rtlpriv->psc.inactiveps) in rtl92s_init_sw_vars()
165 if (!rtlpriv->psc.fwctrl_lps) in rtl92s_init_sw_vars()
167 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92s_init_sw_vars()
168 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92s_init_sw_vars()
173 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92s_init_sw_vars()
174 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92s_init_sw_vars()
175 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92s_init_sw_vars()
[all …]
Dhw.c1123 if (rtlpriv->psc.rfpwr_state != ERFON) in rtl92se_set_check_bssid()
1379 if (rtlpriv->psc.rfoff_reason == RF_CHANGE_BY_IPS) in _rtl92se_gen_refreshledstate()
1392 rtlpriv->psc.pwrdomain_protect = true; in _rtl92se_power_domain_init()
1398 rtlpriv->psc.pwrdomain_protect = false; in _rtl92se_power_domain_init()
1411 if (rtlpriv->psc.rfoff_reason & (RF_CHANGE_BY_IPS | RF_CHANGE_BY_HW)) in _rtl92se_power_domain_init()
1491 rtlpriv->psc.pwrdomain_protect = false; in _rtl92se_power_domain_init()
1500 rtlpriv->psc.pwrdomain_protect = false; in _rtl92se_power_domain_init()
1523 while (wait-- >= 10 && rtlpriv->psc.pwrdomain_protect) { in rtl92se_card_disable()
1524 if (rtlpriv->psc.pwrdomain_protect) in rtl92se_card_disable()
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dsw.c115 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92ee_init_sw_vars()
116 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92ee_init_sw_vars()
117 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92ee_init_sw_vars()
121 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92ee_init_sw_vars()
122 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92ee_init_sw_vars()
128 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92ee_init_sw_vars()
129 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92ee_init_sw_vars()
130 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92ee_init_sw_vars()
131 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl92ee_init_sw_vars()
132 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl92ee_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dsw.c126 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl8723be_init_sw_vars()
127 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl8723be_init_sw_vars()
128 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl8723be_init_sw_vars()
132 rtlpriv->psc.reg_fwctrl_lps = 2; in rtl8723be_init_sw_vars()
133 rtlpriv->psc.reg_max_lps_awakeintvl = 2; in rtl8723be_init_sw_vars()
139 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl8723be_init_sw_vars()
140 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl8723be_init_sw_vars()
141 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl8723be_init_sw_vars()
142 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl8723be_init_sw_vars()
143 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl8723be_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dsw.c138 rtlpriv->psc.wo_wlan_mode = WAKE_ON_MAGIC_PACKET | in rtl8821ae_init_sw_vars()
142 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl8821ae_init_sw_vars()
143 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl8821ae_init_sw_vars()
144 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl8821ae_init_sw_vars()
149 rtlpriv->psc.reg_fwctrl_lps = 2; in rtl8821ae_init_sw_vars()
150 rtlpriv->psc.reg_max_lps_awakeintvl = 2; in rtl8821ae_init_sw_vars()
157 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl8821ae_init_sw_vars()
158 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl8821ae_init_sw_vars()
159 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl8821ae_init_sw_vars()
160 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl8821ae_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dsw.c127 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl8723e_init_sw_vars()
128 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl8723e_init_sw_vars()
129 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl8723e_init_sw_vars()
133 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl8723e_init_sw_vars()
134 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl8723e_init_sw_vars()
137 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl8723e_init_sw_vars()
138 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl8723e_init_sw_vars()
139 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl8723e_init_sw_vars()
140 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl8723e_init_sw_vars()
141 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl8723e_init_sw_vars()
[all …]
/drivers/pwm/
Dpwm-stm32.c175 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local
202 while ((div > priv->max_arr) && (psc < MAX_TIM_PSC)) { in stm32_pwm_capture()
203 psc++; in stm32_pwm_capture()
205 do_div(div, psc + 1); in stm32_pwm_capture()
208 regmap_write(priv->regmap, TIM_PSC, psc); in stm32_pwm_capture()
239 if (psc && scale > 1) { in stm32_pwm_capture()
241 psc /= scale; in stm32_pwm_capture()
242 regmap_write(priv->regmap, TIM_PSC, psc); in stm32_pwm_capture()
250 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
306 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
[all …]
/drivers/leds/
Dleds-pca9532.c50 u8 psc[2]; member
138 data->psc[pwm] = blink; in pca9532_calcpwm()
151 data->psc[pwm]); in pca9532_setpwm()
201 int psc; in pca9532_set_blink() local
213 psc = (*delay_on * 152-1)/1000; in pca9532_set_blink()
214 err = pca9532_calcpwm(client, 0, psc, led_cdev->brightness); in pca9532_set_blink()
357 data->psc[i] = pdata->psc[i]; in pca9532_configure()
361 data->psc[i]); in pca9532_configure()
482 of_property_read_u8_array(np, "nxp,psc", &pdata->psc[0], in pca9532_of_populate_pdata()
483 ARRAY_SIZE(pdata->psc)); in pca9532_of_populate_pdata()
/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()
102 int psc; in acpi_device_get_power() local
104 error = acpi_dev_pm_explicit_get(device, &psc); in acpi_device_get_power()
116 if (psc > result && psc < ACPI_STATE_D3_COLD) in acpi_device_get_power()
117 result = psc; in acpi_device_get_power()
119 result = psc > ACPI_STATE_D2 ? ACPI_STATE_D3_HOT : psc; in acpi_device_get_power()
251 int psc; in acpi_device_set_power() local
268 result = acpi_dev_pm_explicit_get(device, &psc); in acpi_device_set_power()
[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/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.c124 static inline void mpc52xx_set_divisor(struct mpc52xx_psc __iomem *psc, in mpc52xx_set_divisor() argument
128 out_be16(&psc->mpc52xx_psc_clock_select, prescaler); in mpc52xx_set_divisor()
129 out_8(&psc->ctur, divisor >> 8); in mpc52xx_set_divisor()
130 out_8(&psc->ctlr, divisor & 0xff); in mpc52xx_set_divisor()
165 struct mpc52xx_psc __iomem *psc = PSC(port); in mpc52xx_psc_enable_ms() local
168 in_8(&psc->mpc52xx_psc_ipcr); in mpc52xx_psc_enable_ms()
170 out_8(&psc->mpc52xx_psc_acr, MPC52xx_PSC_IEC_CTS | MPC52xx_PSC_IEC_DCD); in mpc52xx_psc_enable_ms()
173 out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_enable_ms()
196 struct mpc52xx_psc __iomem *psc = PSC(port); in mpc52xx_psc_fifo_init() local
205 out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_fifo_init()
[all …]
/drivers/infiniband/hw/hfi1/
Dverbs_txreq.h24 struct send_context *psc; member
51 tx->psc = priv->s_sendcontext; in get_txreq()
/drivers/iio/trigger/
Dstm32-timer-trigger.c82 u32 psc; member
242 u32 psc, arr, cr1; in stm32_tt_read_frequency() local
246 regmap_read(priv->regmap, TIM_PSC, &psc); in stm32_tt_read_frequency()
251 do_div(freq, psc + 1); in stm32_tt_read_frequency()
840 regmap_read(priv->regmap, TIM_PSC, &priv->bak.psc); in stm32_timer_trigger_suspend()
868 regmap_write(priv->regmap, TIM_PSC, priv->bak.psc); in stm32_timer_trigger_resume()

12