Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/can/softing/
H A 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()
230 struct resource *pres; in softingcs_probe() local
252 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe()
253 if (!pres) { in softingcs_probe()
275 pdev->resource[0].start = pres->start; in softingcs_probe()
[all …]
H A Dsofting_main.c758 struct resource *pres; in softing_pdev_probe() local
781 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in softing_pdev_probe()
782 if (!pres) in softing_pdev_probe()
784 card->dpram_phys = pres->start; in softing_pdev_probe()
785 card->dpram_size = resource_size(pres); in softing_pdev_probe()
792 pres = platform_get_resource(pdev, IORESOURCE_IRQ, 0); in softing_pdev_probe()
793 if (pres) in softing_pdev_probe()
794 card->irq.nr = pres->start; in softing_pdev_probe()
/openbmc/linux/drivers/pwm/
H A Dpwm-atmel.c216 *pres = shift; in atmel_pwm_calculate_cprd_and_pres()
217 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres()
219 *pres = 0; in atmel_pwm_calculate_cprd_and_pres()
235 cycles >>= pres; in atmel_pwm_calculate_cdty()
299 u32 pres, val; in atmel_pwm_apply() local
314 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_apply()
322 &pres); in atmel_pwm_apply()
369 u32 cdty, cprd, pres; in atmel_pwm_get_state() local
372 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_get_state()
377 tmp <<= pres; in atmel_pwm_get_state()
[all …]
H A Dpwm-atmel-hlcdc.c56 int pres; in atmel_hlcdc_pwm_apply() local
79 for (pres = 0; pres <= ATMEL_HLCDC_PWMPS_MAX; pres++) { in atmel_hlcdc_pwm_apply()
81 if (!pres && atmel->errata && in atmel_hlcdc_pwm_apply()
85 if ((clk_period_ns << pres) >= state->period) in atmel_hlcdc_pwm_apply()
89 if (pres > ATMEL_HLCDC_PWMPS_MAX) in atmel_hlcdc_pwm_apply()
92 pwmcfg = ATMEL_HLCDC_PWMPS(pres); in atmel_hlcdc_pwm_apply()
/openbmc/linux/drivers/clocksource/
H A Dtimer-microchip-pit64b.c244 for (*pres = 0; *pres < MCHP_PIT64B_PRES_MAX; (*pres)++) { in mchp_pit64b_pres_compute()
245 tmp = clk_rate / (*pres + 1); in mchp_pit64b_pres_compute()
251 if (*pres == MCHP_PIT64B_PRES_MAX) in mchp_pit64b_pres_compute()
252 *pres = MCHP_PIT64B_PRES_MAX - 1; in mchp_pit64b_pres_compute()
296 u32 pres, best_pres = 0; in mchp_pit64b_init_mode() local
312 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode()
313 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
314 best_pres = pres; in mchp_pit64b_init_mode()
324 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode()
325 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
[all …]
/openbmc/linux/drivers/clk/at91/
H A Dclk-master.c384 unsigned int val, pres; in clk_master_pres_recalc_rate() local
393 pres = 3; in clk_master_pres_recalc_rate()
395 pres = (1 << pres); in clk_master_pres_recalc_rate()
397 return DIV_ROUND_CLOSEST_ULL(parent_rate, pres); in clk_master_pres_recalc_rate()
420 unsigned int val, pres; in clk_master_pres_save_context() local
429 pres = 3; in clk_master_pres_save_context()
431 pres = (1 << pres); in clk_master_pres_save_context()
444 unsigned int val, pres; in clk_master_pres_restore_context() local
453 pres = 3; in clk_master_pres_restore_context()
455 pres = (1 << pres); in clk_master_pres_restore_context()
[all …]
/openbmc/linux/drivers/gpu/ipu-v3/
H A 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()
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()
/openbmc/u-boot/drivers/i2c/
H A Ds3c24x0_i2c.c59 ulong freq, pres = 16, div; in i2c_ch_init() local
66 if ((freq / pres / (16 + 1)) > speed) in i2c_ch_init()
68 pres = 512; in i2c_ch_init()
71 while ((freq / pres / (div + 1)) > speed) in i2c_ch_init()
75 writel((div & 0x0F) | 0xA0 | ((pres == 512) ? 0x40 : 0), &i2c->iiccon); in i2c_ch_init()
/openbmc/linux/arch/arm/boot/dts/marvell/
H A Darmada-xp-netgear-rn2120.dts283 sata1_pres_pin: sata1-pres-pin {
288 sata2_pres_pin: sata2-pres-pin {
293 sata3_pres_pin: sata3-pres-pin {
298 sata4_pres_pin: sata4-pres-pin {
H A Darmada-xp-synology-ds414.dts223 sata1_pres_pin: sata1-pres-pin {
228 sata2_pres_pin: sata2-pres-pin {
233 sata3_pres_pin: sata3-pres-pin {
238 sata4_pres_pin: sata4-pres-pin {
H A Darmada-370-synology-ds213j.dts201 sata1_pres_pin: sata1-pres-pin {
206 sata2_pres_pin: sata2-pres-pin {
/openbmc/u-boot/arch/arm/dts/
H A Dimx6qp.dtsi64 fsl,pres = <&pre1>, <&pre2>, <&pre3>;
73 fsl,pres = <&pre4>, <&pre2>, <&pre3>;
H A Darmada-xp-synology-ds414.dts293 sata1_pres_pin: sata1-pres-pin {
298 sata2_pres_pin: sata2-pres-pin {
303 sata3_pres_pin: sata3-pres-pin {
308 sata4_pres_pin: sata4-pres-pin {
H A Dat91sam9n12.dtsi173 atmel,master-clk-have-div3-pres;
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qp.dtsi70 fsl,pres = <&pre1>, <&pre2>, <&pre3>;
79 fsl,pres = <&pre4>, <&pre2>, <&pre3>;
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmmii.c468 struct resource *pres, res; in bcmgenet_mii_register() local
471 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcmgenet_mii_register()
472 if (!pres) { in bcmgenet_mii_register()
486 res.start = pres->start + GENET_UMAC_OFF + UMAC_MDIO_CMD; in bcmgenet_mii_register()
/openbmc/linux/drivers/input/mouse/
H A 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()
/openbmc/linux/drivers/char/mwave/
H A 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()
/openbmc/linux/arch/powerpc/kernel/
H A Dpci-common.c1363 struct resource *res, *pres; in pcibios_reserve_legacy_regions() local
1389 pres = &hose->mem_resources[i]; in pcibios_reserve_legacy_regions()
1391 if (!(pres->flags & IORESOURCE_MEM)) in pcibios_reserve_legacy_regions()
1393 pr_debug("hose mem res: %pR\n", pres); in pcibios_reserve_legacy_regions()
1394 if ((pres->start - offset) <= 0xa0000 && in pcibios_reserve_legacy_regions()
1395 (pres->end - offset) >= 0xbffff) in pcibios_reserve_legacy_regions()
1407 if (request_resource(pres, res)) { in pcibios_reserve_legacy_regions()
/openbmc/linux/drivers/iio/adc/
H A Dat91_adc.c312 unsigned int x, y, pres, xpos, ypos; in at91_ts_sample() local
348 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample()
351 pres = st->ts_pressure_threshold; /* no pen contacted */ in at91_ts_sample()
354 xpos, xscale, ypos, yscale, z1, z2, pres); in at91_ts_sample()
356 if (pres < st->ts_pressure_threshold) { in at91_ts_sample()
358 x, y, pres / factor); in at91_ts_sample()
361 input_report_abs(st->ts_input, ABS_PRESSURE, pres); in at91_ts_sample()
H A Dat91-sama5d2_adc.c1060 u32 pres; in at91_adc_touch_pressure() local
1070 pres = rxp * (st->touch_st.x_pos * factor / 1024) * in at91_adc_touch_pressure()
1074 pres = 0xFFFF; /* no pen contact */ in at91_adc_touch_pressure()
1081 return 0xFFFF - pres; in at91_adc_touch_pressure()
/openbmc/linux/drivers/i3c/master/
H A Di3c-master-cdns.c1211 u32 ctrl, prescl0, prescl1, pres, low; in cdns_i3c_master_bus_init() local
1236 pres = DIV_ROUND_UP(sysclk_rate, (bus->scl_rate.i3c * 4)) - 1; in cdns_i3c_master_bus_init()
1237 if (pres > PRESCL_CTRL0_I3C_MAX) in cdns_i3c_master_bus_init()
1240 bus->scl_rate.i3c = sysclk_rate / ((pres + 1) * 4); in cdns_i3c_master_bus_init()
1242 prescl0 = PRESCL_CTRL0_I3C(pres); in cdns_i3c_master_bus_init()
1244 low = ((I3C_BUS_TLOW_OD_MIN_NS * sysclk_rate) / (pres + 1)) - 2; in cdns_i3c_master_bus_init()
1249 pres = (sysclk_rate / (max_i2cfreq * 5)) - 1; in cdns_i3c_master_bus_init()
1250 if (pres > PRESCL_CTRL0_I2C_MAX) in cdns_i3c_master_bus_init()
1253 bus->scl_rate.i2c = sysclk_rate / ((pres + 1) * 5); in cdns_i3c_master_bus_init()
1255 prescl0 |= PRESCL_CTRL0_I2C(pres); in cdns_i3c_master_bus_init()
/openbmc/linux/Documentation/devicetree/bindings/display/imx/
H A Dfsl-imx-drm.txt99 - fsl,pres: phandles to the PRE units attached to this PRG, with the fixed
110 fsl,pres = <&pre1>, <&pre2>, <&pre3>;
/openbmc/linux/drivers/iio/pressure/
H A Dmprls0025pa.c91 s32 pres; /* pressure value */ member
269 ret = mpr_read_pressure(data, &data->chan.pres); in mpr_trigger_handler()
/openbmc/linux/net/bluetooth/
H A Dsmp.c408 const u8 r[16], const u8 preq[7], const u8 pres[7], u8 _iat, in smp_c1()
416 SMP_DBG("preq %7phN pres %7phN", preq, pres); in smp_c1()
424 memcpy(p1 + 9, pres, 7); in smp_c1()
3529 const u8 pres[7] = { 0x02, 0x03, 0x00, 0x00, 0x08, 0x00, 0x05 }; in test_c1() local
3540 err = smp_c1(k, r, preq, pres, _iat, &ia, _rat, &ra, res); in test_c1()

12