Home
last modified time | relevance | path

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

/drivers/net/can/softing/
Dsofting_cs.c198 struct resource *pres; in softingcs_probe_config() local
202 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe_config()
203 if (resource_size(pres) < 0x1000) in softingcs_probe_config()
206 pres->flags |= WIN_MEMORY_TYPE_CM | WIN_ENABLE; in softingcs_probe_config()
208 pres->flags |= WIN_USE_WAIT | WIN_DATA_WIDTH_8; in softingcs_probe_config()
211 pres->flags |= WIN_DATA_WIDTH_16; in softingcs_probe_config()
213 return pcmcia_request_window(pcmcia, pres, memspeed); in softingcs_probe_config()
241 struct resource *pres; in softingcs_probe() local
263 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe()
264 if (!pres) { in softingcs_probe()
[all …]
Dsofting_main.c763 struct resource *pres; in softing_pdev_probe() local
786 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in softing_pdev_probe()
787 if (!pres) in softing_pdev_probe()
789 card->dpram_phys = pres->start; in softing_pdev_probe()
790 card->dpram_size = resource_size(pres); in softing_pdev_probe()
797 pres = platform_get_resource(pdev, IORESOURCE_IRQ, 0); in softing_pdev_probe()
798 if (pres) in softing_pdev_probe()
799 card->irq.nr = pres->start; in softing_pdev_probe()
/drivers/pwm/
Dpwm-atmel-hlcdc.c66 int pres; in atmel_hlcdc_pwm_apply() local
89 for (pres = 0; pres <= ATMEL_HLCDC_PWMPS_MAX; pres++) { in atmel_hlcdc_pwm_apply()
91 if (!pres && chip->errata && in atmel_hlcdc_pwm_apply()
95 if ((clk_period_ns << pres) >= state->period) in atmel_hlcdc_pwm_apply()
99 if (pres > ATMEL_HLCDC_PWMPS_MAX) in atmel_hlcdc_pwm_apply()
102 pwmcfg = ATMEL_HLCDC_PWMPS(pres); in atmel_hlcdc_pwm_apply()
Dpwm-atmel.c115 unsigned long *cprd, u32 *pres) in atmel_pwm_calculate_cprd_and_pres() argument
124 for (*pres = 0; cycles > PWM_MAX_PRD; cycles >>= 1) in atmel_pwm_calculate_cprd_and_pres()
125 (*pres)++; in atmel_pwm_calculate_cprd_and_pres()
127 if (*pres > PRD_MAX_PRES) { in atmel_pwm_calculate_cprd_and_pres()
218 u32 pres, val; in atmel_pwm_apply() local
235 &pres); in atmel_pwm_apply()
256 val = (val & ~PWM_CMR_CPRE_MSK) | (pres & PWM_CMR_CPRE_MSK); in atmel_pwm_apply()
/drivers/gpu/ipu-v3/
Dipu-prg.c83 struct ipu_pre *pres[3]; member
204 ret = ipu_pre_get(prg->pres[0]); in ipu_prg_get_pre()
212 ret = ipu_pre_get(prg->pres[i]); in ipu_prg_get_pre()
247 ipu_pre_put(prg->pres[chan->used_pre]); in ipu_prg_put_pre()
299 ipu_pre_update(prg->pres[chan->used_pre], *eba); in ipu_prg_channel_configure()
307 ipu_pre_configure(prg->pres[chan->used_pre], in ipu_prg_channel_configure()
326 val = ipu_pre_get_baddr(prg->pres[chan->used_pre]); in ipu_prg_channel_configure()
387 prg->pres[i] = ipu_pre_lookup_by_phandle(dev, "fsl,pres", i); in ipu_prg_probe()
388 if (!prg->pres[i]) in ipu_prg_probe()
/drivers/clk/at91/
Dclk-master.c76 u8 pres; in clk_master_recalc_rate() local
88 pres = (mckr >> layout->pres_shift) & MASTER_PRES_MASK; in clk_master_recalc_rate()
91 if (characteristics->have_div3_pres && pres == MASTER_PRES_MAX) in clk_master_recalc_rate()
94 rate >>= pres; in clk_master_recalc_rate()
/drivers/input/mouse/
Delantech.c327 unsigned int width = 0, pres = 0; in elantech_report_absolute_v2() local
353 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in elantech_report_absolute_v2()
378 pres = 127; in elantech_report_absolute_v2()
396 input_report_abs(dev, ABS_PRESSURE, pres); in elantech_report_absolute_v2()
468 unsigned int width = 0, pres = 0; in elantech_report_absolute_v3() local
515 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in elantech_report_absolute_v3()
536 input_report_abs(dev, ABS_PRESSURE, pres); in elantech_report_absolute_v3()
586 int pres, traces; in process_packet_head_v4() local
593 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in process_packet_head_v4()
601 input_report_abs(dev, ABS_MT_PRESSURE, pres); in process_packet_head_v4()
/drivers/char/mwave/
Dtp3780i.c242 struct resource *pres; in tp3780I_ClaimResources() local
247 pres = request_region(pSettings->usDspBaseIO, 16, "mwave_3780i"); in tp3780I_ClaimResources()
248 if ( pres == NULL ) retval = -EIO; in tp3780I_ClaimResources()
/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c413 struct resource *pres, res; in bcmgenet_mii_register() local
416 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcmgenet_mii_register()
427 res.start = pres->start + GENET_UMAC_OFF + UMAC_MDIO_CMD; in bcmgenet_mii_register()
/drivers/iio/adc/
Dat91_adc.c294 unsigned int x, y, pres, xpos, ypos; in at91_ts_sample() local
331 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample()
334 pres = st->ts_pressure_threshold; /* no pen contacted */ in at91_ts_sample()
337 xpos, xscale, ypos, yscale, z1, z2, pres); in at91_ts_sample()
339 if (pres < st->ts_pressure_threshold) { in at91_ts_sample()
341 x, y, pres / factor); in at91_ts_sample()
344 input_report_abs(st->ts_input, ABS_PRESSURE, pres); in at91_ts_sample()