/linux/drivers/net/can/softing/ |
H A D | softing_cs.c | 187 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 D | softing_main.c | 758 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()
|
/linux/drivers/pwm/ |
H A D | pwm-atmel.c | 215 *pres = shift; in atmel_pwm_calculate_cprd_and_pres() 216 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres() 218 *pres = 0; in atmel_pwm_calculate_cprd_and_pres() 234 cycles >>= pres; in atmel_pwm_calculate_cdty() 297 u32 pres, val; in atmel_pwm_apply() local 310 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_apply() 318 &pres); in atmel_pwm_apply() 365 u32 cdty, cprd, pres; in atmel_pwm_get_state() local 368 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_get_state() 373 tmp <<= pres; in atmel_pwm_get_state() [all …]
|
H A D | pwm-atmel-hlcdc.c | 55 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 && atmel->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()
|
/linux/drivers/clocksource/ |
H A D | timer-microchip-pit64b.c | 244 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 …]
|
/linux/drivers/clk/at91/ |
H A D | clk-master.c | 384 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 …]
|
/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-prg.c | 76 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], modifier, *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()
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-xp-netgear-rn2120.dts | 283 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 D | armada-xp-synology-ds414.dts | 223 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 D | armada-370-synology-ds213j.dts | 201 sata1_pres_pin: sata1-pres-pin { 206 sata2_pres_pin: sata2-pres-pin {
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qp.dtsi | 70 fsl,pres = <&pre1>, <&pre2>, <&pre3>; 79 fsl,pres = <&pre4>, <&pre2>, <&pre3>;
|
/linux/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmmii.c | 469 struct resource *pres, res; in bcmgenet_mii_register() local 472 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcmgenet_mii_register() 473 if (!pres) { in bcmgenet_mii_register() 491 res.start = pres->start + GENET_UMAC_OFF + UMAC_MDIO_CMD; in bcmgenet_mii_register()
|
/linux/drivers/iio/pressure/ |
H A D | mprls0025pa.h | 43 s32 pres; member
|
H A D | mprls0025pa.c | 277 ret = mpr_read_pressure(data, &data->chan.pres); in mpr_trigger_handler()
|
/linux/drivers/input/mouse/ |
H A D | elantech.c | 414 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()
|
/linux/drivers/char/mwave/ |
H A D | tp3780i.c | 238 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()
|
/linux/arch/powerpc/kernel/ |
H A D | pci-common.c | 1362 struct resource *res, *pres; in pcibios_reserve_legacy_regions() local 1388 pres = &hose->mem_resources[i]; in pcibios_reserve_legacy_regions() 1390 if (!(pres->flags & IORESOURCE_MEM)) in pcibios_reserve_legacy_regions() 1392 pr_debug("hose mem res: %pR\n", pres); in pcibios_reserve_legacy_regions() 1393 if ((pres->start - offset) <= 0xa0000 && in pcibios_reserve_legacy_regions() 1394 (pres->end - offset) >= 0xbffff) in pcibios_reserve_legacy_regions() 1406 if (request_resource(pres, res)) { in pcibios_reserve_legacy_regions()
|
/linux/drivers/iio/adc/ |
H A D | at91_adc.c | 311 unsigned int x, y, pres, xpos, ypos; in at91_ts_sample() local 347 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample() 350 pres = st->ts_pressure_threshold; /* no pen contacted */ in at91_ts_sample() 353 xpos, xscale, ypos, yscale, z1, z2, pres); in at91_ts_sample() 355 if (pres < st->ts_pressure_threshold) { in at91_ts_sample() 357 x, y, pres / factor); in at91_ts_sample() 360 input_report_abs(st->ts_input, ABS_PRESSURE, pres); in at91_ts_sample()
|
H A D | at91-sama5d2_adc.c | 1060 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()
|
/linux/drivers/i3c/master/ |
H A D | i3c-master-cdns.c | 1211 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()
|
/linux/Documentation/devicetree/bindings/display/imx/ |
H A D | fsl-imx-drm.txt | 99 - fsl,pres: phandles to the PRE units attached to this PRG, with the fixed 110 fsl,pres = <&pre1>, <&pre2>, <&pre3>;
|
/linux/tools/testing/selftests/tc-testing/ |
H A D | tdc.py | 623 pres = p.map(__mp_runner, batches) 626 for trs in pres:
|
/linux/net/bluetooth/ |
H A D | smp.c | 407 const u8 r[16], const u8 preq[7], const u8 pres[7], u8 _iat, in smp_c1() 415 SMP_DBG("preq %7phN pres %7phN", preq, pres); in smp_c1() 423 memcpy(p1 + 9, pres, 7); in smp_c1() 3521 const u8 pres[7] = { 0x02, 0x03, 0x00, 0x00, 0x08, 0x00, 0x05 }; in test_c1() local 3532 err = smp_c1(k, r, preq, pres, _iat, &ia, _rat, &ra, res); in test_c1()
|