Home
last modified time | relevance | path

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

/linux-4.1.27/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()
/linux-4.1.27/drivers/pwm/
Dpwm-atmel-hlcdc.c63 int pres; in atmel_hlcdc_pwm_config() local
86 for (pres = 0; pres <= ATMEL_HLCDC_PWMPS_MAX; pres++) { in atmel_hlcdc_pwm_config()
88 if (!pres && chip->errata && chip->errata->div1_clk_erratum) in atmel_hlcdc_pwm_config()
91 if ((clk_period_ns << pres) >= period_ns) in atmel_hlcdc_pwm_config()
95 if (pres > ATMEL_HLCDC_PWMPS_MAX) in atmel_hlcdc_pwm_config()
98 pwmcfg = ATMEL_HLCDC_PWMPS(pres); in atmel_hlcdc_pwm_config()
Dpwm-atmel.c107 unsigned int pres = 0; in atmel_pwm_config() local
122 pres++; in atmel_pwm_config()
125 if (pres > PRD_MAX_PRES) { in atmel_pwm_config()
144 val = (val & ~PWM_CMR_CPRE_MSK) | (pres & PWM_CMR_CPRE_MSK); in atmel_pwm_config()
/linux-4.1.27/drivers/clk/at91/
Dclk-master.c87 u8 pres; in clk_master_recalc_rate() local
101 pres = (tmp >> layout->pres_shift) & MASTER_PRES_MASK; in clk_master_recalc_rate()
104 if (characteristics->have_div3_pres && pres == MASTER_PRES_MAX) in clk_master_recalc_rate()
107 rate >>= pres; in clk_master_recalc_rate()
Dclk-programmable.c47 u32 pres; in clk_programmable_recalc_rate() local
52 pres = (pmc_read(pmc, AT91_PMC_PCKR(prog->id)) >> layout->pres_shift) & in clk_programmable_recalc_rate()
54 return parent_rate >> pres; in clk_programmable_recalc_rate()
/linux-4.1.27/drivers/input/mouse/
Delantech.c331 unsigned int width = 0, pres = 0; in elantech_report_absolute_v2() local
357 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in elantech_report_absolute_v2()
382 pres = 127; in elantech_report_absolute_v2()
400 input_report_abs(dev, ABS_PRESSURE, pres); in elantech_report_absolute_v2()
472 unsigned int width = 0, pres = 0; in elantech_report_absolute_v3() local
519 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in elantech_report_absolute_v3()
540 input_report_abs(dev, ABS_PRESSURE, pres); in elantech_report_absolute_v3()
590 int pres, traces; in process_packet_head_v4() local
597 pres = (packet[1] & 0xf0) | ((packet[4] & 0xf0) >> 4); in process_packet_head_v4()
605 input_report_abs(dev, ABS_MT_PRESSURE, pres); in process_packet_head_v4()
/linux-4.1.27/sound/oss/
Dsb_card.c305 int pres = 0; in sb_init() local
323 pres = sb_pnp_devices; in sb_init()
330 if (pres == 0 && lres <= 0) { in sb_init()
/linux-4.1.27/arch/arm/boot/dts/
Darmada-xp-netgear-rn2120.dts346 sata1_pres_pin: sata1-pres-pin {
351 sata2_pres_pin: sata2-pres-pin {
356 sata3_pres_pin: sata3-pres-pin {
361 sata4_pres_pin: sata4-pres-pin {
Darmada-xp-synology-ds414.dts318 sata1_pres_pin: sata1-pres-pin {
323 sata2_pres_pin: sata2-pres-pin {
328 sata3_pres_pin: sata3-pres-pin {
333 sata4_pres_pin: sata4-pres-pin {
Darmada-370-synology-ds213j.dts299 sata1_pres_pin: sata1-pres-pin {
304 sata2_pres_pin: sata2-pres-pin {
Dat91sam9n12.dtsi172 atmel,master-clk-have-div3-pres;
Dat91sam9x5.dtsi176 atmel,master-clk-have-div3-pres;
/linux-4.1.27/arch/microblaze/pci/
Dpci-common.c1136 struct resource *res, *pres; in pcibios_reserve_legacy_regions() local
1164 pres = &hose->mem_resources[i]; in pcibios_reserve_legacy_regions()
1165 if (!(pres->flags & IORESOURCE_MEM)) in pcibios_reserve_legacy_regions()
1167 pr_debug("hose mem res: %pR\n", pres); in pcibios_reserve_legacy_regions()
1168 if ((pres->start - offset) <= 0xa0000 && in pcibios_reserve_legacy_regions()
1169 (pres->end - offset) >= 0xbffff) in pcibios_reserve_legacy_regions()
1181 if (request_resource(pres, res)) { in pcibios_reserve_legacy_regions()
/linux-4.1.27/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()
/linux-4.1.27/arch/powerpc/kernel/
Dpci-common.c1330 struct resource *res, *pres; in pcibios_reserve_legacy_regions() local
1356 pres = &hose->mem_resources[i]; in pcibios_reserve_legacy_regions()
1358 if (!(pres->flags & IORESOURCE_MEM)) in pcibios_reserve_legacy_regions()
1360 pr_debug("hose mem res: %pR\n", pres); in pcibios_reserve_legacy_regions()
1361 if ((pres->start - offset) <= 0xa0000 && in pcibios_reserve_legacy_regions()
1362 (pres->end - offset) >= 0xbffff) in pcibios_reserve_legacy_regions()
1374 if (request_resource(pres, res)) { in pcibios_reserve_legacy_regions()
/linux-4.1.27/drivers/iio/adc/
Dat91_adc.c287 unsigned int x, y, pres, xpos, ypos; in at91_ts_sample() local
324 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample()
327 pres = st->ts_pressure_threshold; /* no pen contacted */ in at91_ts_sample()
330 xpos, xscale, ypos, yscale, z1, z2, pres); in at91_ts_sample()
332 if (pres < st->ts_pressure_threshold) { in at91_ts_sample()
334 x, y, pres / factor); in at91_ts_sample()
337 input_report_abs(st->ts_input, ABS_PRESSURE, pres); in at91_ts_sample()
/linux-4.1.27/net/bluetooth/
Dsmp.c407 const u8 r[16], const u8 preq[7], const u8 pres[7], u8 _iat, in smp_c1()
419 memcpy(p1 + 9, pres, 7); in smp_c1()
3354 const u8 pres[7] = { 0x02, 0x03, 0x00, 0x00, 0x08, 0x00, 0x05 }; in test_c1() local
3365 err = smp_c1(tfm_aes, k, r, preq, pres, _iat, &ia, _rat, &ra, res); in test_c1()
/linux-4.1.27/Documentation/devicetree/bindings/clock/
Dat91-clock.txt233 - atmel,master-clk-have-div3-pres : some SoC use the reserved value 7 in the