Lines Matching refs:hdl
243 ACPI_HANDLE hdl = sc->sc_node->ad_handle; in hpacel_reg_init() local
247 rv = AcpiEvaluateObject(hdl, "_INI", NULL, NULL); in hpacel_reg_init()
275 rv = hpacel_reg_write(hdl, CTRL_REG1, val); in hpacel_reg_init()
307 rv = hpacel_reg_write(hdl, CTRL_REG2, val); in hpacel_reg_init()
318 (void)hpacel_reg_write(hdl, DD_CFG, 0x00); in hpacel_reg_init()
319 (void)hpacel_reg_write(hdl, FF_WU_CFG, 0x00); in hpacel_reg_init()
338 ACPI_HANDLE hdl = sc->sc_node->ad_handle; in hpacel_reg_info() local
342 rv = hpacel_reg_read(hdl, WHO_AM_I, &sc->sc_whoami); in hpacel_reg_info()
349 rv = hpacel_reg_read(hdl, CTRL_REG1 + i, &sc->sc_ctrl[i]); in hpacel_reg_info()
359 hpacel_reg_read(ACPI_HANDLE hdl, ACPI_INTEGER reg, uint8_t *valp) in hpacel_reg_read() argument
375 rv = AcpiEvaluateObjectTyped(hdl, "ALRD", in hpacel_reg_read()
390 hpacel_reg_write(ACPI_HANDLE hdl, ACPI_INTEGER reg, uint8_t val) in hpacel_reg_write() argument
403 return AcpiEvaluateObject(hdl, "ALWR", &arg, NULL); in hpacel_reg_write()
407 hpacel_reg_xyz(ACPI_HANDLE hdl, const int xyz, int16_t *out) in hpacel_reg_xyz() argument
434 rv[0] = hpacel_reg_read(hdl, reg[0], &lo); in hpacel_reg_xyz()
435 rv[1] = hpacel_reg_read(hdl, reg[1], &hi); in hpacel_reg_xyz()
457 ACPI_HANDLE hdl = sc->sc_node->ad_handle; in hpacel_power() local
478 rv = hpacel_reg_write(hdl, CTRL_REG1, val); in hpacel_power()
493 (void)AcpiEvaluateObject(hdl, "ALED", &arg, NULL); in hpacel_power()