Home
last modified time | relevance | path

Searched refs:pres (Results 1 – 13 of 13) sorted by relevance

/drivers/net/can/softing/
Dsofting_cs.c187 struct resource *pres; in softingcs_probe_config() local
191 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe_config()
192 if (resource_size(pres) < 0x1000) in softingcs_probe_config()
195 pres->flags |= WIN_MEMORY_TYPE_CM | WIN_ENABLE; in softingcs_probe_config()
197 pres->flags |= WIN_USE_WAIT | WIN_DATA_WIDTH_8; in softingcs_probe_config()
200 pres->flags |= WIN_DATA_WIDTH_16; in softingcs_probe_config()
202 return pcmcia_request_window(pcmcia, pres, memspeed); in softingcs_probe_config()
230 struct resource *pres; in softingcs_probe() local
252 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe()
253 if (!pres) { in softingcs_probe()
[all …]
Dsofting_main.c756 struct resource *pres; in softing_pdev_probe() local
779 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in softing_pdev_probe()
780 if (!pres) in softing_pdev_probe()
782 card->dpram_phys = pres->start; in softing_pdev_probe()
783 card->dpram_size = resource_size(pres); in softing_pdev_probe()
790 pres = platform_get_resource(pdev, IORESOURCE_IRQ, 0); in softing_pdev_probe()
791 if (pres) in softing_pdev_probe()
792 card->irq.nr = pres->start; in softing_pdev_probe()
/drivers/pwm/
Dpwm-atmel.c197 unsigned long *cprd, u32 *pres) in atmel_pwm_calculate_cprd_and_pres() argument
218 *pres = shift; in atmel_pwm_calculate_cprd_and_pres()
219 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres()
221 *pres = 0; in atmel_pwm_calculate_cprd_and_pres()
231 u32 pres, unsigned long *cdty) in atmel_pwm_calculate_cdty() argument
237 cycles >>= pres; in atmel_pwm_calculate_cdty()
301 u32 pres, val; in atmel_pwm_apply() local
316 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_apply()
318 atmel_pwm_calculate_cdty(state, clkrate, cprd, pres, &cdty); in atmel_pwm_apply()
324 &pres); in atmel_pwm_apply()
[all …]
Dpwm-atmel-hlcdc.c55 int pres; in atmel_hlcdc_pwm_apply() local
78 for (pres = 0; pres <= ATMEL_HLCDC_PWMPS_MAX; pres++) { in atmel_hlcdc_pwm_apply()
80 if (!pres && chip->errata && in atmel_hlcdc_pwm_apply()
84 if ((clk_period_ns << pres) >= state->period) in atmel_hlcdc_pwm_apply()
88 if (pres > ATMEL_HLCDC_PWMPS_MAX) in atmel_hlcdc_pwm_apply()
91 pwmcfg = ATMEL_HLCDC_PWMPS(pres); in atmel_hlcdc_pwm_apply()
/drivers/clocksource/
Dtimer-microchip-pit64b.c229 static void __init mchp_pit64b_pres_compute(u32 *pres, u32 clk_rate, in mchp_pit64b_pres_compute() argument
234 for (*pres = 0; *pres < MCHP_PIT64B_PRES_MAX; (*pres)++) { in mchp_pit64b_pres_compute()
235 tmp = clk_rate / (*pres + 1); in mchp_pit64b_pres_compute()
241 if (*pres == MCHP_PIT64B_PRES_MAX) in mchp_pit64b_pres_compute()
242 *pres = MCHP_PIT64B_PRES_MAX - 1; in mchp_pit64b_pres_compute()
284 u32 pres, best_pres = 0; in mchp_pit64b_init_mode() local
300 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode()
301 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
302 best_pres = pres; in mchp_pit64b_init_mode()
312 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode()
[all …]
/drivers/clk/at91/
Dclk-master.c241 u32 pres; in clk_master_pres_determine_rate() local
253 pres = 3; in clk_master_pres_determine_rate()
255 pres = 1 << i; in clk_master_pres_determine_rate()
257 req_parent.rate = req->rate * pres; in clk_master_pres_determine_rate()
262 &best_diff, &best_rate, pres); in clk_master_pres_determine_rate()
275 unsigned int pres; in clk_master_pres_set_rate() local
277 pres = DIV_ROUND_CLOSEST(parent_rate, rate); in clk_master_pres_set_rate()
278 if (pres > MASTER_PRES_MAX) in clk_master_pres_set_rate()
281 else if (pres == 3) in clk_master_pres_set_rate()
282 pres = MASTER_PRES_MAX; in clk_master_pres_set_rate()
[all …]
/drivers/gpu/ipu-v3/
Dipu-prg.c76 struct ipu_pre *pres[3]; member
195 ret = ipu_pre_get(prg->pres[0]); in ipu_prg_get_pre()
203 ret = ipu_pre_get(prg->pres[i]); in ipu_prg_get_pre()
238 ipu_pre_put(prg->pres[chan->used_pre]); in ipu_prg_put_pre()
290 ipu_pre_update(prg->pres[chan->used_pre], *eba); in ipu_prg_channel_configure()
298 ipu_pre_configure(prg->pres[chan->used_pre], in ipu_prg_channel_configure()
313 val = ipu_pre_get_baddr(prg->pres[chan->used_pre]); in ipu_prg_channel_configure()
354 return ipu_pre_update_pending(prg->pres[chan->used_pre]); in ipu_prg_channel_configure_pending()
390 prg->pres[i] = ipu_pre_lookup_by_phandle(dev, "fsl,pres", i); in ipu_prg_probe()
391 if (!prg->pres[i]) in ipu_prg_probe()
/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c424 struct resource *pres, res; in bcmgenet_mii_register() local
427 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcmgenet_mii_register()
428 if (!pres) { in bcmgenet_mii_register()
442 res.start = pres->start + GENET_UMAC_OFF + UMAC_MDIO_CMD; in bcmgenet_mii_register()
/drivers/input/mouse/
Delantech.c414 unsigned int width = 0, pres = 0; in elantech_report_absolute_v2() local
440 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in elantech_report_absolute_v2()
465 pres = 127; in elantech_report_absolute_v2()
482 input_report_abs(dev, ABS_PRESSURE, pres); in elantech_report_absolute_v2()
565 unsigned int width = 0, pres = 0; in elantech_report_absolute_v3() local
612 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in elantech_report_absolute_v3()
631 input_report_abs(dev, ABS_PRESSURE, pres); in elantech_report_absolute_v3()
678 int pres, traces; in process_packet_head_v4() local
686 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in process_packet_head_v4()
694 input_report_abs(dev, ABS_MT_PRESSURE, pres); in process_packet_head_v4()
/drivers/iio/adc/
Dat91_adc.c313 unsigned int x, y, pres, xpos, ypos; in at91_ts_sample() local
349 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample()
352 pres = st->ts_pressure_threshold; /* no pen contacted */ in at91_ts_sample()
355 xpos, xscale, ypos, yscale, z1, z2, pres); in at91_ts_sample()
357 if (pres < st->ts_pressure_threshold) { in at91_ts_sample()
359 x, y, pres / factor); in at91_ts_sample()
362 input_report_abs(st->ts_input, ABS_PRESSURE, pres); in at91_ts_sample()
Dat91-sama5d2_adc.c676 u32 pres; in at91_adc_touch_pressure() local
686 pres = rxp * (st->touch_st.x_pos * factor / 1024) * in at91_adc_touch_pressure()
690 pres = 0xFFFF; /* no pen contact */ in at91_adc_touch_pressure()
697 return 0xFFFF - pres; in at91_adc_touch_pressure()
/drivers/i3c/master/
Di3c-master-cdns.c1212 u32 ctrl, prescl0, prescl1, pres, low; in cdns_i3c_master_bus_init() local
1237 pres = DIV_ROUND_UP(sysclk_rate, (bus->scl_rate.i3c * 4)) - 1; in cdns_i3c_master_bus_init()
1238 if (pres > PRESCL_CTRL0_I3C_MAX) in cdns_i3c_master_bus_init()
1241 bus->scl_rate.i3c = sysclk_rate / ((pres + 1) * 4); in cdns_i3c_master_bus_init()
1243 prescl0 = PRESCL_CTRL0_I3C(pres); in cdns_i3c_master_bus_init()
1245 low = ((I3C_BUS_TLOW_OD_MIN_NS * sysclk_rate) / (pres + 1)) - 2; in cdns_i3c_master_bus_init()
1250 pres = (sysclk_rate / (max_i2cfreq * 5)) - 1; in cdns_i3c_master_bus_init()
1251 if (pres > PRESCL_CTRL0_I2C_MAX) in cdns_i3c_master_bus_init()
1254 bus->scl_rate.i2c = sysclk_rate / ((pres + 1) * 5); in cdns_i3c_master_bus_init()
1256 prescl0 |= PRESCL_CTRL0_I2C(pres); in cdns_i3c_master_bus_init()
/drivers/char/mwave/
Dtp3780i.c238 struct resource *pres; in tp3780I_ClaimResources() local
243 pres = request_region(pSettings->usDspBaseIO, 16, "mwave_3780i"); in tp3780I_ClaimResources()
244 if ( pres == NULL ) retval = -EIO; in tp3780I_ClaimResources()