/linux/drivers/clk/at91/ |
A D | clk-master.c | 386 u32 pres; in clk_master_pres_determine_rate() local 398 pres = 3; in clk_master_pres_determine_rate() 400 pres = 1 << i; in clk_master_pres_determine_rate() 429 else if (pres) in clk_master_pres_set_rate() 430 pres = ffs(pres) - 1; in clk_master_pres_set_rate() 472 pres = 3; in clk_master_pres_recalc_rate() 474 pres = (1 << pres); in clk_master_pres_recalc_rate() 508 pres = 3; in clk_master_pres_save_context() 510 pres = (1 << pres); in clk_master_pres_save_context() 532 pres = 3; in clk_master_pres_restore_context() [all …]
|
/linux/drivers/net/can/softing/ |
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 …]
|
A D | softing_main.c | 756 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()
|
/linux/drivers/pwm/ |
A D | pwm-atmel.c | 217 *pres = shift; in atmel_pwm_calculate_cprd_and_pres() 218 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres() 220 *pres = 0; in atmel_pwm_calculate_cprd_and_pres() 236 cycles >>= pres; in atmel_pwm_calculate_cdty() 300 u32 pres, val; in atmel_pwm_apply() local 315 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_apply() 323 &pres); in atmel_pwm_apply() 370 u32 cdty, cprd, pres; in atmel_pwm_get_state() local 373 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_get_state() 378 tmp <<= pres; in atmel_pwm_get_state() [all …]
|
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 && 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()
|
/linux/drivers/clocksource/ |
A D | timer-microchip-pit64b.c | 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() 313 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode() [all …]
|
/linux/drivers/gpu/ipu-v3/ |
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], *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()
|
/linux/arch/arm/boot/dts/ |
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 {
|
A D | imx6qp.dtsi | 64 fsl,pres = <&pre1>, <&pre2>, <&pre3>; 73 fsl,pres = <&pre4>, <&pre2>, <&pre3>;
|
A D | armada-xp-synology-ds414.dts | 228 sata1_pres_pin: sata1-pres-pin { 233 sata2_pres_pin: sata2-pres-pin { 238 sata3_pres_pin: sata3-pres-pin { 243 sata4_pres_pin: sata4-pres-pin {
|
A D | armada-370-synology-ds213j.dts | 207 sata1_pres_pin: sata1-pres-pin { 212 sata2_pres_pin: sata2-pres-pin {
|
/linux/arch/microblaze/pci/ |
A D | pci-common.c | 817 struct resource *res, *pres; in pcibios_reserve_legacy_regions() local 845 pres = &hose->mem_resources[i]; in pcibios_reserve_legacy_regions() 846 if (!(pres->flags & IORESOURCE_MEM)) in pcibios_reserve_legacy_regions() 848 pr_debug("hose mem res: %pR\n", pres); in pcibios_reserve_legacy_regions() 849 if ((pres->start - offset) <= 0xa0000 && in pcibios_reserve_legacy_regions() 850 (pres->end - offset) >= 0xbffff) in pcibios_reserve_legacy_regions() 862 if (request_resource(pres, res)) { in pcibios_reserve_legacy_regions()
|
/linux/drivers/net/ethernet/broadcom/genet/ |
A D | bcmmii.c | 454 struct resource *pres, res; in bcmgenet_mii_register() local 457 pres = platform_get_resource(pdev, IORESOURCE_MEM, 0); in bcmgenet_mii_register() 458 if (!pres) { in bcmgenet_mii_register() 472 res.start = pres->start + GENET_UMAC_OFF + UMAC_MDIO_CMD; in bcmgenet_mii_register()
|
/linux/drivers/input/mouse/ |
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 685 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in process_packet_head_v4() 693 input_report_abs(dev, ABS_MT_PRESSURE, pres); in process_packet_head_v4()
|
/linux/drivers/iio/adc/ |
A D | at91_adc.c | 313 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()
|
A D | at91-sama5d2_adc.c | 899 u32 pres; in at91_adc_touch_pressure() local 909 pres = rxp * (st->touch_st.x_pos * factor / 1024) * in at91_adc_touch_pressure() 913 pres = 0xFFFF; /* no pen contact */ in at91_adc_touch_pressure() 920 return 0xFFFF - pres; in at91_adc_touch_pressure()
|
/linux/arch/powerpc/kernel/ |
A D | pci-common.c | 1344 struct resource *res, *pres; in pcibios_reserve_legacy_regions() local 1370 pres = &hose->mem_resources[i]; in pcibios_reserve_legacy_regions() 1372 if (!(pres->flags & IORESOURCE_MEM)) in pcibios_reserve_legacy_regions() 1374 pr_debug("hose mem res: %pR\n", pres); in pcibios_reserve_legacy_regions() 1375 if ((pres->start - offset) <= 0xa0000 && in pcibios_reserve_legacy_regions() 1376 (pres->end - offset) >= 0xbffff) in pcibios_reserve_legacy_regions() 1388 if (request_resource(pres, res)) { in pcibios_reserve_legacy_regions()
|
/linux/drivers/i3c/master/ |
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_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_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/drivers/char/mwave/ |
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/Documentation/devicetree/bindings/display/imx/ |
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/net/bluetooth/ |
A D | smp.c | 406 const u8 r[16], const u8 preq[7], const u8 pres[7], u8 _iat, in smp_c1() 414 SMP_DBG("preq %7phN pres %7phN", preq, pres); in smp_c1() 422 memcpy(p1 + 9, pres, 7); in smp_c1() 3515 const u8 pres[7] = { 0x02, 0x03, 0x00, 0x00, 0x08, 0x00, 0x05 }; in test_c1() local 3526 err = smp_c1(k, r, preq, pres, _iat, &ia, _rat, &ra, res); in test_c1()
|