/Linux-v6.6/drivers/usb/typec/ucsi/ |
D | ucsi_glink.c | 57 struct ucsi *ucsi; member 72 static int pmic_glink_ucsi_read(struct ucsi *__ucsi, unsigned int offset, in pmic_glink_ucsi_read() 75 struct pmic_glink_ucsi *ucsi = ucsi_get_drvdata(__ucsi); in pmic_glink_ucsi_read() local 84 mutex_lock(&ucsi->lock); in pmic_glink_ucsi_read() 85 memset(ucsi->read_buf, 0, sizeof(ucsi->read_buf)); in pmic_glink_ucsi_read() 86 reinit_completion(&ucsi->read_ack); in pmic_glink_ucsi_read() 88 ret = pmic_glink_send(ucsi->client, &req, sizeof(req)); in pmic_glink_ucsi_read() 90 dev_err(ucsi->dev, "failed to send UCSI read request: %d\n", ret); in pmic_glink_ucsi_read() 94 left = wait_for_completion_timeout(&ucsi->read_ack, 5 * HZ); in pmic_glink_ucsi_read() 96 dev_err(ucsi->dev, "timeout waiting for UCSI read response\n"); in pmic_glink_ucsi_read() [all …]
|
D | debugfs.c | 24 struct ucsi *ucsi = data; in ucsi_cmd() local 27 memset(&ucsi->debugfs->response, 0, sizeof(ucsi->debugfs->response)); in ucsi_cmd() 28 ucsi->debugfs->status = 0; in ucsi_cmd() 35 ret = ucsi_send_command(ucsi, val, NULL, 0); in ucsi_cmd() 44 ret = ucsi_send_command(ucsi, val, in ucsi_cmd() 45 &ucsi->debugfs->response, in ucsi_cmd() 46 sizeof(ucsi->debugfs->response)); in ucsi_cmd() 53 ucsi->debugfs->status = ret; in ucsi_cmd() 63 struct ucsi *ucsi = s->private; in ucsi_resp_show() local 65 if (ucsi->debugfs->status) in ucsi_resp_show() [all …]
|
D | ucsi.c | 39 static int ucsi_acknowledge_command(struct ucsi *ucsi) in ucsi_acknowledge_command() argument 46 return ucsi->ops->sync_write(ucsi, UCSI_CONTROL, &ctrl, sizeof(ctrl)); in ucsi_acknowledge_command() 49 static int ucsi_acknowledge_connector_change(struct ucsi *ucsi) in ucsi_acknowledge_connector_change() argument 56 return ucsi->ops->sync_write(ucsi, UCSI_CONTROL, &ctrl, sizeof(ctrl)); in ucsi_acknowledge_connector_change() 59 static int ucsi_exec_command(struct ucsi *ucsi, u64 command); 61 static int ucsi_read_error(struct ucsi *ucsi) in ucsi_read_error() argument 67 ret = ucsi_acknowledge_command(ucsi); in ucsi_read_error() 71 ret = ucsi_exec_command(ucsi, UCSI_GET_ERROR_STATUS); in ucsi_read_error() 75 ret = ucsi->ops->read(ucsi, UCSI_MESSAGE_IN, &error, sizeof(error)); in ucsi_read_error() 79 ret = ucsi_acknowledge_command(ucsi); in ucsi_read_error() [all …]
|
D | ucsi_stm32g0.c | 68 struct ucsi *ucsi; member 83 static int ucsi_stm32g0_bl_check_ack(struct ucsi *ucsi) in ucsi_stm32g0_bl_check_ack() argument 85 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_check_ack() 120 static int ucsi_stm32g0_bl_cmd_check_ack(struct ucsi *ucsi, unsigned int cmd, bool check_ack) in ucsi_stm32g0_bl_cmd_check_ack() argument 122 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_cmd_check_ack() 151 return ucsi_stm32g0_bl_check_ack(ucsi); in ucsi_stm32g0_bl_cmd_check_ack() 156 static int ucsi_stm32g0_bl_cmd(struct ucsi *ucsi, unsigned int cmd) in ucsi_stm32g0_bl_cmd() argument 158 return ucsi_stm32g0_bl_cmd_check_ack(ucsi, cmd, true); in ucsi_stm32g0_bl_cmd() 161 static int ucsi_stm32g0_bl_rcv_check_ack(struct ucsi *ucsi, void *data, size_t len, bool check_ack) in ucsi_stm32g0_bl_rcv_check_ack() argument 163 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_rcv_check_ack() [all …]
|
D | ucsi_acpi.c | 22 struct ucsi *ucsi; member 46 static int ucsi_acpi_read(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_read() argument 49 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_read() 61 static int ucsi_acpi_async_write(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_async_write() argument 64 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_async_write() 72 static int ucsi_acpi_sync_write(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_sync_write() argument 75 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_sync_write() 80 ret = ucsi_acpi_async_write(ucsi, offset, val, val_len); in ucsi_acpi_sync_write() 100 ucsi_zenbook_read(struct ucsi *ucsi, unsigned int offset, void *val, size_t val_len) in ucsi_zenbook_read() argument 102 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_zenbook_read() [all …]
|
D | ucsi.h | 16 struct ucsi; 50 int (*read)(struct ucsi *ucsi, unsigned int offset, 52 int (*sync_write)(struct ucsi *ucsi, unsigned int offset, 54 int (*async_write)(struct ucsi *ucsi, unsigned int offset, 56 bool (*update_altmodes)(struct ucsi *ucsi, struct ucsi_altmode *orig, 60 struct ucsi *ucsi_create(struct device *dev, const struct ucsi_operations *ops); 61 void ucsi_destroy(struct ucsi *ucsi); 62 int ucsi_register(struct ucsi *ucsi); 63 void ucsi_unregister(struct ucsi *ucsi); 64 void *ucsi_get_drvdata(struct ucsi *ucsi); [all …]
|
D | ucsi_ccg.c | 197 struct ucsi *ucsi; member 356 static bool ucsi_ccg_update_altmodes(struct ucsi *ucsi, in ucsi_ccg_update_altmodes() argument 360 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_update_altmodes() 516 static int ucsi_ccg_read(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_read() argument 519 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_read() 559 static int ucsi_ccg_async_write(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_async_write() argument 564 return ccg_write(ucsi_get_drvdata(ucsi), reg, val, val_len); in ucsi_ccg_async_write() 567 static int ucsi_ccg_sync_write(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_sync_write() argument 570 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_sync_write() 586 con = &uc->ucsi->connector[con_index - 1]; in ucsi_ccg_sync_write() [all …]
|
D | displayport.c | 51 struct ucsi *ucsi = dp->con->ucsi; in ucsi_displayport_enter() local 69 ret = ucsi_send_command(ucsi, command, &cur, sizeof(cur)); in ucsi_displayport_enter() 71 if (ucsi->version > 0x0100) in ucsi_displayport_enter() 127 ret = ucsi_send_command(dp->con->ucsi, command, NULL, 0); in ucsi_displayport_exit() 194 return ucsi_send_command(dp->con->ucsi, command, NULL, 0); in ucsi_displayport_configure()
|
D | psy.c | 37 struct device *dev = con->ucsi->dev; in ucsi_psy_get_scope() 44 if (con->ucsi->cap.attributes & mask) in ucsi_psy_get_scope() 234 struct device *dev = con->ucsi->dev; in ucsi_register_port_psy()
|
D | Makefile | 6 typec_ucsi-y := ucsi.o
|
D | trace.h | 4 #define TRACE_SYSTEM ucsi
|
D | Kconfig | 23 https://www.intel.com/content/www/us/en/io/universal-serial-bus/usb-type-c-ucsi-spec.html
|
/Linux-v6.6/drivers/usb/typec/ |
D | Makefile | 7 obj-$(CONFIG_TYPEC_UCSI) += ucsi/
|
D | Kconfig | 51 source "drivers/usb/typec/ucsi/Kconfig"
|
/Linux-v6.6/arch/arm/boot/dts/st/ |
D | stm32mp135f-dk.dts | 131 firmware-name = "stm32g0-ucsi.mp135f-dk.fw";
|
/Linux-v6.6/drivers/i2c/busses/ |
D | Makefile | 10 obj-$(CONFIG_I2C_CCGX_UCSI) += i2c-ccgx-ucsi.o
|
/Linux-v6.6/drivers/pci/ |
D | quirks.c | 5635 static void quirk_gpu_usb_typec_ucsi(struct pci_dev *ucsi) in quirk_gpu_usb_typec_ucsi() argument 5637 pci_create_device_link(ucsi, 3, 0, PCI_BASE_CLASS_DISPLAY, 16); in quirk_gpu_usb_typec_ucsi()
|