/drivers/accessibility/braille/ |
H A D | braille_console.c | 242 unsigned char val = KVAL(param->value); local 245 switch (val) {
|
/drivers/acpi/ |
H A D | ac.c | 131 union power_supply_propval *val) 143 val->intval = ac->state; 129 get_ac_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument
|
H A D | battery.c | 183 union power_supply_propval *val) 196 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; 198 val->intval = POWER_SUPPLY_STATUS_CHARGING; 200 val->intval = POWER_SUPPLY_STATUS_FULL; 202 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; 205 val->intval = acpi_battery_present(battery); 208 val->intval = acpi_battery_technology(battery); 211 val->intval = battery->cycle_count; 217 val->intval = battery->design_voltage * 1000; 223 val 181 acpi_battery_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument [all...] |
H A D | ec.c | 400 int ec_read(u8 addr, u8 * val) argument 411 *val = temp_data; 419 int ec_write(u8 addr, u8 val) argument 426 err = acpi_ec_write(first_ec, addr, val);
|
H A D | numa.c | 166 u8 val = slit->entry[d*i + j]; local 168 if (val != LOCAL_DISTANCE) 170 } else if (val <= LOCAL_DISTANCE)
|
H A D | osl.c | 776 static inline void write64(u64 val, volatile void __iomem *addr) argument 778 writeq(val, addr); 781 static inline void write64(u64 val, volatile void __iomem *addr) argument 783 writel(val, addr); 784 writel(val>>32, addr+4);
|
H A D | proc.c | 160 u32 val = CMOS_READ(offset); local 162 val = bcd2bin(val); 163 return val; 167 static void cmos_bcd_write(u32 val, int offset, int rtc_control) argument 170 val = bin2bcd(val); 171 CMOS_WRITE(val, offset);
|
H A D | sbs.c | 167 union power_supply_propval *val) 172 val->intval = sbs->charger_present; 195 union power_supply_propval *val) 206 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; 208 val->intval = POWER_SUPPLY_STATUS_CHARGING; 210 val->intval = POWER_SUPPLY_STATUS_FULL; 213 val->intval = battery->present; 216 val->intval = acpi_battery_technology(battery); 219 val->intval = battery->cycle_count; 222 val 165 sbs_get_ac_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument 193 acpi_sbs_battery_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument [all...] |
H A D | sbshc.c | 264 unsigned long long val; local 270 status = acpi_evaluate_integer(device->handle, "_EC", NULL, &val); 286 hc->offset = (val >> 8) & 0xff; 287 hc->query_bit = val & 0xff;
|
H A D | sleep.c | 33 static int set_param_wake_flag(const char *val, struct kernel_param *kp) argument 35 int ret = param_set_int(val, kp);
|
H A D | sysfs.c | 172 static int param_set_trace_state(const char *val, struct kernel_param *kp) argument 176 if (!strncmp(val, "enable", strlen("enable"))) { 184 if (!strncmp(val, "disable", strlen("disable"))) { 193 if (!strncmp(val, "1", 1)) {
|
H A D | video.c | 1560 unsigned long val, void *ign) 1566 switch (val) { 1559 acpi_video_resume(struct notifier_block *nb, unsigned long val, void *ign) argument
|
/drivers/acpi/acpica/ |
H A D | acmacros.h | 280 #define ACPI_REGISTER_PREPARE_BITS(val, pos, mask) ((val << pos) & mask) 281 #define ACPI_REGISTER_INSERT_VALUE(reg, pos, mask, val) reg = (reg & (~(mask))) | ACPI_REGISTER_PREPARE_BITS(val, pos, mask)
|
H A D | nsaccess.c | 72 acpi_string val = NULL; local 124 if (init_val->val) { 125 status = acpi_os_predefined_override(init_val, &val); 132 if (!val) { 133 val = init_val->val; 155 (u8) ACPI_TO_INTEGER(val); 175 obj_desc->integer.value = ACPI_TO_INTEGER(val); 183 (u32) ACPI_STRLEN(val); 184 obj_desc->string.pointer = val; [all...] |
/drivers/acpi/apei/ |
H A D | apei-base.c | 69 int __apei_exec_read_register(struct acpi_whea_header *entry, u64 *val) argument 73 rc = apei_read(val, &entry->register_region); 76 *val >>= entry->register_region.bit_offset; 77 *val &= entry->mask; 86 u64 val = 0; local 88 rc = __apei_exec_read_register(entry, &val); 91 ctx->value = val; 111 int __apei_exec_write_register(struct acpi_whea_header *entry, u64 val) argument 115 val &= entry->mask; 116 val << 623 apei_read(u64 *val, struct acpi_generic_address *reg) argument 657 apei_write(u64 val, struct acpi_generic_address *reg) argument [all...] |
H A D | apei-internal.h | 80 int apei_read(u64 *val, struct acpi_generic_address *reg); 81 int apei_write(u64 val, struct acpi_generic_address *reg); 83 int __apei_exec_read_register(struct acpi_whea_header *entry, u64 *val); 84 int __apei_exec_write_register(struct acpi_whea_header *entry, u64 val);
|
H A D | einj.c | 417 u64 val, trigger_paddr, timeout = FIRMWARE_TIMEOUT; local 484 val = apei_exec_ctx_get_output(&ctx); 485 if (!(val & EINJ_OP_BUSY)) 493 val = apei_exec_ctx_get_output(&ctx); 494 if (val != EINJ_STATUS_SUCCESS) 576 static int error_type_get(void *data, u64 *val) argument 578 *val = error_type; 583 static int error_type_set(void *data, u64 val) argument 593 vendor = val & 0x80000000; 594 tval = val 614 error_inject_set(void *data, u64 val) argument [all...] |
H A D | erst.c | 158 u64 val; local 160 rc = __apei_exec_read_register(entry, &val); 163 val += ctx->value; 164 rc = __apei_exec_write_register(entry, val); 172 u64 val; local 174 rc = __apei_exec_read_register(entry, &val); 177 val -= ctx->value; 178 rc = __apei_exec_write_register(entry, val); 203 u64 val; local 217 rc = __apei_exec_read_register(entry, &val); 233 u64 val; local 641 u64 val; local 680 u64 val; local 723 u64 val; local [all...] |
/drivers/ata/ |
H A D | ahci.c | 981 unsigned int val; local 986 val = (unsigned long)dmi->driver_data; 988 return pdev->bus->number == (val >> 8) && pdev->devfn == (val & 0xff);
|
H A D | ata_piix.c | 177 unsigned int reg, u32 *val); 179 unsigned int reg, u32 val); 981 unsigned int reg, u32 *val) 989 *val = ioread32(hpriv->sidpr + PIIX_SIDPR_DATA); 994 unsigned int reg, u32 val) 1002 iowrite32(val, hpriv->sidpr + PIIX_SIDPR_DATA); 980 piix_sidpr_scr_read(struct ata_link *link, unsigned int reg, u32 *val) argument 993 piix_sidpr_scr_write(struct ata_link *link, unsigned int reg, u32 val) argument
|
H A D | libahci.c | 69 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); 70 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val); 98 enum sw_activity val); 537 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) argument 543 *val = readl(port_mmio + offset); 549 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) argument 555 writel(val, port_mmio + offset); 1034 static ssize_t ahci_activity_store(struct ata_device *dev, enum sw_activity val) argument 1043 if (val == OFF) { 1053 if (val [all...] |
H A D | libata-core.c | 5063 * @val: Place to store read value 5065 * Read SCR register @reg of @link into *@val. This function is 5075 int sata_scr_read(struct ata_link *link, int reg, u32 *val) argument 5079 return link->ap->ops->scr_read(link, reg, val); 5083 return sata_pmp_scr_read(link, reg, val); 5090 * @val: value to write 5092 * Write @val to SCR register @reg of @link. This function is 5102 int sata_scr_write(struct ata_link *link, int reg, u32 val) argument 5106 return link->ap->ops->scr_write(link, reg, val); 5110 return sata_pmp_scr_write(link, reg, val); 5128 sata_scr_write_flush(struct ata_link *link, int reg, u32 val) argument 6390 char *id, *val, *endp; local 6605 ata_wait_register(struct ata_port *ap, void __iomem *reg, u32 mask, u32 val, unsigned long interval, unsigned long timeout) argument [all...] |
H A D | libata-pmp.c | 76 static unsigned int sata_pmp_write(struct ata_link *link, int reg, u32 val) argument 88 tf.nsect = val & 0xff; 89 tf.lbal = (val >> 8) & 0xff; 90 tf.lbam = (val >> 16) & 0xff; 91 tf.lbah = (val >> 24) & 0xff; 162 * @val: value to be written 164 * Write @val to PSCR @reg for @link, to be called from 173 int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val) argument 180 err_mask = sata_pmp_write(link, reg, val);
|
H A D | libata-scsi.c | 324 enum sw_activity val; local 328 val = simple_strtoul(buf, NULL, 0); 329 switch (val) { 331 rc = ap->ops->sw_activity_store(atadev, val); 661 int val = -EINVAL, rc = -EINVAL; local 667 val = ata_ioc32(ap); 669 if (copy_to_user(arg, &val, 1)) 674 val = (unsigned long) arg; 678 if (val) 683 if (val ! [all...] |
H A D | libata.h | 181 extern int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val); 182 extern int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val); 187 static inline int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val) argument 192 static inline int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val) argument
|