Home
last modified time | relevance | path

Searched refs:gsb (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.15/drivers/i2c/
Di2c-core-acpi.c611 struct gsb_buffer *gsb = (struct gsb_buffer *)value64; in i2c_acpi_space_handler() local
649 gsb->bdata = status; in i2c_acpi_space_handler()
653 status = i2c_smbus_write_byte(client, gsb->bdata); in i2c_acpi_space_handler()
661 gsb->bdata = status; in i2c_acpi_space_handler()
666 gsb->bdata); in i2c_acpi_space_handler()
674 gsb->wdata = status; in i2c_acpi_space_handler()
679 gsb->wdata); in i2c_acpi_space_handler()
686 gsb->data); in i2c_acpi_space_handler()
688 gsb->len = status; in i2c_acpi_space_handler()
693 gsb->len, gsb->data); in i2c_acpi_space_handler()
[all …]
/Linux-v5.15/drivers/platform/surface/
Dsurface3_power.c372 struct gsb_buffer *gsb = (struct gsb_buffer *)value64; in mshw0011_space_handler() local
397 if (gsb->cmd.arg0 == MSHW0011_CMD_DEST_ADP1 && in mshw0011_space_handler()
398 gsb->cmd.arg1 == MSHW0011_CMD_ADP1_PSR) { in mshw0011_space_handler()
409 if (gsb->cmd.arg0 != MSHW0011_CMD_DEST_BAT0) { in mshw0011_space_handler()
414 switch (gsb->cmd.arg1) { in mshw0011_space_handler()
418 ret = mshw0011_bix(cdata, &gsb->bix); in mshw0011_space_handler()
421 cdata->trip_point = gsb->cmd.arg2; in mshw0011_space_handler()
424 ret = mshw0011_bst(cdata, &gsb->bst); in mshw0011_space_handler()
427 dev_info(&cdata->bat0->dev, "command(0x%02x) is not supported.\n", gsb->cmd.arg1); in mshw0011_space_handler()
433 gsb->ret = status; in mshw0011_space_handler()
[all …]
Dsurface_acpi_notify.c510 static void gsb_rqsx_response_error(struct gsb_buffer *gsb, int status) in gsb_rqsx_response_error() argument
512 gsb->status = 0x00; in gsb_rqsx_response_error()
513 gsb->len = 0x02; in gsb_rqsx_response_error()
514 gsb->data.out.status = (u8)(-status); in gsb_rqsx_response_error()
515 gsb->data.out.len = 0x00; in gsb_rqsx_response_error()
518 static void gsb_rqsx_response_success(struct gsb_buffer *gsb, u8 *ptr, size_t len) in gsb_rqsx_response_success() argument
520 gsb->status = 0x00; in gsb_rqsx_response_success()
521 gsb->len = len + 2; in gsb_rqsx_response_success()
522 gsb->data.out.status = 0x00; in gsb_rqsx_response_success()
523 gsb->data.out.len = len; in gsb_rqsx_response_success()
[all …]