Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 45) sorted by relevance

12

/drivers/input/misc/
Dpowermate.c88 struct powermate_device *pm = urb->context; in powermate_irq() local
107 input_report_key(pm->input, BTN_0, pm->data[0] & 0x01); in powermate_irq()
108 input_report_rel(pm->input, REL_DIAL, pm->data[1]); in powermate_irq()
109 input_sync(pm->input); in powermate_irq()
119 static void powermate_sync_state(struct powermate_device *pm) in powermate_sync_state() argument
121 if (pm->requires_update == 0) in powermate_sync_state()
123 if (pm->config->status == -EINPROGRESS) in powermate_sync_state()
126 if (pm->requires_update & UPDATE_PULSE_ASLEEP){ in powermate_sync_state()
127 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state()
128 pm->configcr->wIndex = cpu_to_le16( pm->pulse_asleep ? 1 : 0 ); in powermate_sync_state()
[all …]
/drivers/input/touchscreen/
Dpenmount.c40 struct pm { struct
51 struct pm *pm = serio_get_drvdata(serio); in pm_interrupt() local
52 struct input_dev *dev = pm->dev; in pm_interrupt()
54 pm->data[pm->idx] = data; in pm_interrupt()
56 if (pm->data[0] & 0x80) { in pm_interrupt()
57 if (PM_MAX_LENGTH == ++pm->idx) { in pm_interrupt()
58 input_report_abs(dev, ABS_X, pm->data[2] * 128 + pm->data[1]); in pm_interrupt()
59 input_report_abs(dev, ABS_Y, pm->data[4] * 128 + pm->data[3]); in pm_interrupt()
60 input_report_key(dev, BTN_TOUCH, !!(pm->data[0] & 0x40)); in pm_interrupt()
62 pm->idx = 0; in pm_interrupt()
[all …]
/drivers/pci/
Dpci-driver.c460 WARN_ON(ret && drv->driver.pm); in pci_has_legacy_pm_support()
472 if (drv && drv->pm && drv->pm->prepare) in pci_pm_prepare()
473 error = drv->pm->prepare(dev); in pci_pm_prepare()
482 if (drv && drv->pm && drv->pm->complete) in pci_pm_complete()
483 drv->pm->complete(dev); in pci_pm_complete()
491 struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
496 if (!pm) { in pci_pm_suspend()
503 if (pm->suspend) { in pci_pm_suspend()
507 error = pm->suspend(dev); in pci_pm_suspend()
508 suspend_report_result(pm->suspend, error); in pci_pm_suspend()
[all …]
Dquirks.c599 u16 pm, smb; in quirk_vt8235_acpi() local
601 pci_read_config_word(dev, 0x88, &pm); in quirk_vt8235_acpi()
602 pm &= PCI_BASE_ADDRESS_IO_MASK; in quirk_vt8235_acpi()
603 quirk_io_region(dev, pm, 128, PCI_BRIDGE_RESOURCES, "vt8235 PM"); in quirk_vt8235_acpi()
1690 int pm; in quirk_e100_interrupt() local
1728 pm = pci_find_capability(dev, PCI_CAP_ID_PM); in quirk_e100_interrupt()
1729 if (pm) { in quirk_e100_interrupt()
1730 pci_read_config_word(dev, pm + PCI_PM_CTRL, &pmcsr); in quirk_e100_interrupt()
Dpci.c1262 int pm; in pci_pm_init() local
1268 pm = pci_find_capability(dev, PCI_CAP_ID_PM); in pci_pm_init()
1269 if (!pm) in pci_pm_init()
1272 pci_read_config_word(dev, pm + PCI_PM_PMC, &pmc); in pci_pm_init()
1280 dev->pm_cap = pm; in pci_pm_init()
/drivers/base/
Dplatform.c665 if (drv && drv->pm && drv->pm->prepare) in platform_pm_prepare()
666 ret = drv->pm->prepare(dev); in platform_pm_prepare()
675 if (drv && drv->pm && drv->pm->complete) in platform_pm_complete()
676 drv->pm->complete(dev); in platform_pm_complete()
689 if (drv->pm) { in platform_pm_suspend()
690 if (drv->pm->suspend) in platform_pm_suspend()
691 ret = drv->pm->suspend(dev); in platform_pm_suspend()
707 if (drv->pm) { in platform_pm_suspend_noirq()
708 if (drv->pm->suspend_noirq) in platform_pm_suspend_noirq()
709 ret = drv->pm->suspend_noirq(dev); in platform_pm_suspend_noirq()
[all …]
/drivers/base/power/
Dmain.c293 if (dev->bus->pm) { in resume_device_noirq()
295 error = pm_noirq_op(dev, dev->bus->pm, state); in resume_device_noirq()
359 if (dev->bus->pm) { in resume_device()
361 error = pm_op(dev, dev->bus->pm, state); in resume_device()
371 if (dev->type->pm) { in resume_device()
373 error = pm_op(dev, dev->type->pm, state); in resume_device()
383 if (dev->class->pm) { in resume_device()
385 error = pm_op(dev, dev->class->pm, state); in resume_device()
487 if (dev->class && dev->class->pm && dev->class->pm->complete) { in complete_device()
489 dev->class->pm->complete(dev); in complete_device()
[all …]
/drivers/ide/
Dide-pm.c81 struct request_pm_state *pm = rq->data; in ide_complete_power_step() local
85 drive->name, pm->pm_step); in ide_complete_power_step()
90 switch (pm->pm_step) { in ide_complete_power_step()
92 if (pm->pm_state == PM_EVENT_FREEZE) in ide_complete_power_step()
93 pm->pm_step = IDE_PM_COMPLETED; in ide_complete_power_step()
95 pm->pm_step = IDE_PM_STANDBY; in ide_complete_power_step()
98 pm->pm_step = IDE_PM_COMPLETED; in ide_complete_power_step()
101 pm->pm_step = IDE_PM_IDLE; in ide_complete_power_step()
104 pm->pm_step = IDE_PM_RESTORE_DMA; in ide_complete_power_step()
111 struct request_pm_state *pm = rq->data; in ide_start_power_step() local
[all …]
Dide-io.c181 struct request_pm_state *pm = rq->data; in ide_end_drive_cmd() local
184 if (pm->pm_step == IDE_PM_COMPLETED) in ide_end_drive_cmd()
615 struct request_pm_state *pm = rq->data; in start_request() local
618 drive->name, pm->pm_step); in start_request()
622 pm->pm_step == IDE_PM_COMPLETED) in start_request()
/drivers/net/ixp2000/
Dpm3386.c21 static u16 pm3386_reg_read(int pm, int reg) in pm3386_reg_read() argument
27 if (pm == 1) in pm3386_reg_read()
41 static void pm3386_reg_write(int pm, int reg, u16 value) in pm3386_reg_write() argument
49 if (pm == 1) in pm3386_reg_write()
149 int pm = port >> 1; in pm3386_init_port() local
186 pm3386_reg_write(pm, 0x103, 0x0003); in pm3386_init_port()
187 while (!(pm3386_reg_read(pm, 0x103) & 0x80)) in pm3386_init_port()
201 pm3386_reg_write(pm, 0x203, 0x000d & ~(4 << (port & 1))); in pm3386_init_port()
202 while ((pm3386_reg_read(pm, 0x203) & 0x000c) != 0x000c) in pm3386_init_port()
/drivers/net/skfp/
Dsmtdef.c167 struct fddi_mib_p *pm ; in smt_init_mib() local
253 pm = mib->p ; in smt_init_mib()
263 pm->fddiPORTIndex = port+INDEX_PORT ; in smt_init_mib()
264 pm->fddiPORTHardwarePresent = TRUE ; in smt_init_mib()
266 pm->fddiPORTLer_Alarm = DEFAULT_LEM_ALARM ; in smt_init_mib()
267 pm->fddiPORTLer_Cutoff = DEFAULT_LEM_CUTOFF ; in smt_init_mib()
273 pm->fddiPORTRequestedPaths[1] = 0 ; in smt_init_mib()
274 pm->fddiPORTRequestedPaths[2] = 0 ; in smt_init_mib()
275 pm->fddiPORTRequestedPaths[3] = 0 ; in smt_init_mib()
276 pm->fddiPORTAvailablePaths = MIB_PATH_P ; in smt_init_mib()
[all …]
/drivers/usb/host/
Dohci-tmio.c81 u16 pm; in tmio_write_pm() local
86 pm = CCR_PM_GKEN | CCR_PM_CKRNEN | in tmio_write_pm()
89 tmio_iowrite16(pm, tmio->ccr + CCR_PM); in tmio_write_pm()
98 u16 pm; in tmio_stop_hc() local
100 pm = CCR_PM_GKEN | CCR_PM_CKRNEN; in tmio_stop_hc()
105 pm |= CCR_PM_USBPW3; in tmio_stop_hc()
107 pm |= CCR_PM_USBPW2; in tmio_stop_hc()
109 pm |= CCR_PM_USBPW1; in tmio_stop_hc()
115 tmio_iowrite16(pm, tmio->ccr + CCR_PM); in tmio_stop_hc()
/drivers/gpu/drm/i915/
Ddvo_ch7xxx.c235 uint8_t cdet, orig_pm, pm; in ch7xxx_detect() local
239 pm = orig_pm; in ch7xxx_detect()
240 pm &= ~CH7xxx_PM_FPD; in ch7xxx_detect()
241 pm |= CH7xxx_PM_DVIL | CH7xxx_PM_DVIP; in ch7xxx_detect()
243 ch7xxx_writeb(dvo, CH7xxx_PM, pm); in ch7xxx_detect()
/drivers/spi/
Dspi_mpc83xx.c197 u8 bits_per_word, pm; in mpc83xx_spi_setup_transfer() local
271 pm = mpc83xx_spi->spibrg / (hz * 64); in mpc83xx_spi_setup_transfer()
272 if (pm > 16) { in mpc83xx_spi_setup_transfer()
276 pm = 16; in mpc83xx_spi_setup_transfer()
279 pm = mpc83xx_spi->spibrg / (hz * 4); in mpc83xx_spi_setup_transfer()
280 if (pm) in mpc83xx_spi_setup_transfer()
281 pm--; in mpc83xx_spi_setup_transfer()
283 cs->hw_mode |= SPMODE_PM(pm); in mpc83xx_spi_setup_transfer()
/drivers/isdn/hardware/eicon/
Ddsp_tst.h45 #define dsp_make_address_ex(pm,address) ((word)((pm) ? (address) : (address) + 0x4000)) argument
/drivers/media/video/pvrusb2/
Dpvrusb2-i2c-core.c719 unsigned long pm; in pvr2_i2c_core_sync() local
725 pm = hdw->i2c_pend_mask; in pvr2_i2c_core_sync()
727 for (idx = 0, msk = 1; pm; idx++, msk <<= 1) { in pvr2_i2c_core_sync()
728 if (!(pm & msk)) continue; in pvr2_i2c_core_sync()
729 pm &= ~msk; in pvr2_i2c_core_sync()
752 unsigned long msk,sm,pm; in pvr2_i2c_core_check_stale() local
760 pm = hdw->i2c_active_mask; in pvr2_i2c_core_check_stale()
762 for (idx = 0, msk = 1; pm; idx++, msk <<= 1) { in pvr2_i2c_core_check_stale()
763 if (!(msk & pm)) continue; in pvr2_i2c_core_check_stale()
764 pm &= ~msk; in pvr2_i2c_core_check_stale()
/drivers/video/aty/
Datyfb_base.c1929 u32 pm; in aty_power_mgmt() local
1932 pm = aty_ld_lcd(POWER_MANAGEMENT, par); in aty_power_mgmt()
1933 pm = (pm & ~PWR_MGT_MODE_MASK) | PWR_MGT_MODE_REG; in aty_power_mgmt()
1934 aty_st_lcd(POWER_MANAGEMENT, pm, par); in aty_power_mgmt()
1935 pm = aty_ld_lcd(POWER_MANAGEMENT, par); in aty_power_mgmt()
1940 pm &= ~PWR_MGT_ON; in aty_power_mgmt()
1941 aty_st_lcd(POWER_MANAGEMENT, pm, par); in aty_power_mgmt()
1942 pm = aty_ld_lcd(POWER_MANAGEMENT, par); in aty_power_mgmt()
1944 pm &= ~(PWR_BLON | AUTO_PWR_UP); in aty_power_mgmt()
1945 pm |= SUSPEND_NOW; in aty_power_mgmt()
[all …]
/drivers/net/wan/
Dwanxl.c120 const char *cable, *pm, *dte = "", *dsr = "", *dcd = ""; in wanxl_cable_intr() local
132 case STATUS_CABLE_V35: pm = "V.35"; break; in wanxl_cable_intr()
133 case STATUS_CABLE_X21: pm = "X.21"; break; in wanxl_cable_intr()
134 case STATUS_CABLE_V24: pm = "V.24"; break; in wanxl_cable_intr()
135 case STATUS_CABLE_EIA530: pm = "EIA530"; break; in wanxl_cable_intr()
136 case STATUS_CABLE_NONE: pm = "no personality"; valid = 0; break; in wanxl_cable_intr()
137 default: pm = "invalid personality"; valid = 0; in wanxl_cable_intr()
150 port->dev->name, pm, dte, cable, dsr, dcd); in wanxl_cable_intr()
/drivers/message/i2o/
Dexec-osm.c463 u32 pm; in i2o_exec_reply() local
470 pm = le32_to_cpu(msg->body[3]); in i2o_exec_reply()
471 pmsg = i2o_msg_in_to_virt(c, pm); in i2o_exec_reply()
477 i2o_msg_nop_mfa(c, pm); in i2o_exec_reply()
/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c2372 struct sym_pmc *pm; local
2555 pm = &cp->phys.pm0;
2559 pm = &cp->phys.pm1;
2570 pm->sg.addr = cpu_to_scr(oadr + olen - rest);
2571 pm->sg.size = cpu_to_scr(rest);
2572 pm->ret = cpu_to_scr(nxtdsp);
2590 tmp = scr_to_cpu(pm->sg.addr);
2592 pm->sg.addr = cpu_to_scr(tmp + 1);
2593 tmp = scr_to_cpu(pm->sg.size);
2595 pm->sg.size = cpu_to_scr(tmp - 1);
[all …]
/drivers/media/video/saa7134/
Dsaa7134-video.c109 .pm = 0x06,
114 .pm = 0x13 | 0x80,
119 .pm = 0x13 | 0x80,
125 .pm = 0x10 | 0x80,
130 .pm = 0x10 | 0x80,
136 .pm = 0x11,
141 .pm = 0x11,
147 .pm = 0x12,
152 .pm = 0x12,
159 .pm = 0x00,
[all …]
/drivers/i2c/busses/
Di2c-ibm_iic.c460 static int iic_xfer_bytes(struct ibm_iic_private* dev, struct i2c_msg* pm, in iic_xfer_bytes() argument
464 char* buf = pm->buf; in iic_xfer_bytes()
466 int len = pm->len; in iic_xfer_bytes()
469 if (pm->flags & I2C_M_RD) in iic_xfer_bytes()
/drivers/s390/
Ds390mach.h37 __u32 pm : 1; /* 22 psw program mask and cc validity */ member
/drivers/serial/
Dm32r_sio.c131 void (*pm)(struct uart_port *port, member
805 if (up->pm) in m32r_sio_pm()
806 up->pm(port, state, oldstate); in m32r_sio_pm()
954 .pm = m32r_sio_pm,
/drivers/video/backlight/
Dtosa_bl.c143 static int tosa_bl_suspend(struct i2c_client *client, pm_message_t pm) in tosa_bl_suspend() argument

12