Lines Matching refs:val

104 	void (*sio_outb)(struct nct6775_sio_data *sio_data, int reg, int val);
129 static int nct6775_asuswmi_evaluate_method(u32 method_id, u8 bank, u8 reg, u8 val, u32 *retval)
133 u32 args = bank | (reg << 8) | (val << 16);
162 static inline int nct6775_asuswmi_write(u8 bank, u8 reg, u8 val)
165 reg, val, NULL);
168 static inline int nct6775_asuswmi_read(u8 bank, u8 reg, u8 *val)
174 *val = tmp;
187 static void superio_wmi_outb(struct nct6775_sio_data *sio_data, int reg, int val)
190 reg, val, NULL);
207 static void superio_outb(struct nct6775_sio_data *sio_data, int reg, int val)
212 outb(val, ioreg + 1);
264 static int nct6775_wmi_reg_read(void *ctx, unsigned int reg, unsigned int *val)
285 *val = res;
326 static int nct6775_reg_read(void *ctx, unsigned int reg, unsigned int *val)
333 *val = inb_p(data->addr + DATA_REG_OFFSET);
337 *val = (*val << 8) + inb_p(data->addr + DATA_REG_OFFSET);
360 int val;
362 val = sio_data->sio_inb(sio_data, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE);
363 if (val & 0x10) {
366 val & ~0x10);
755 unsigned long val;
759 if (kstrtoul(buf, 10, &val) || val != 0)
987 u16 val;
998 val = (sio_data->sio_inb(sio_data, SIO_REG_DEVID) << 8) |
1000 if (force_id && val != 0xffff)
1001 val = force_id;
1003 switch (val & SIO_ID_MASK) {
1044 if (val != 0xffff)
1045 pr_debug("unsupported chip ID: 0x%04x\n", val);
1052 val = (sio_data->sio_inb(sio_data, SIO_REG_ADDR) << 8)
1054 addr = val & IOREGION_ALIGNMENT;
1062 val = sio_data->sio_inb(sio_data, SIO_REG_ENABLE);
1063 if (!(val & 0x01)) {
1065 sio_data->sio_outb(sio_data, SIO_REG_ENABLE, val | 0x01);