/openbmc/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi_glink.c | 64 struct ucsi *ucsi; member 79 static int pmic_glink_ucsi_read(struct ucsi *__ucsi, unsigned int offset, in pmic_glink_ucsi_read() 82 struct pmic_glink_ucsi *ucsi = ucsi_get_drvdata(__ucsi); in pmic_glink_ucsi_read() local 91 mutex_lock(&ucsi->lock); in pmic_glink_ucsi_read() 92 memset(ucsi->read_buf, 0, sizeof(ucsi->read_buf)); in pmic_glink_ucsi_read() 93 reinit_completion(&ucsi->read_ack); in pmic_glink_ucsi_read() 95 ret = pmic_glink_send(ucsi->client, &req, sizeof(req)); in pmic_glink_ucsi_read() 97 dev_err(ucsi->dev, "failed to send UCSI read request: %d\n", ret); in pmic_glink_ucsi_read() 101 left = wait_for_completion_timeout(&ucsi->read_ack, 5 * HZ); in pmic_glink_ucsi_read() 103 dev_err(ucsi->dev, "timeout waiting for UCSI read response\n"); in pmic_glink_ucsi_read() [all …]
|
H A 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 …]
|
H A D | ucsi.c | 39 static int ucsi_read_message_in(struct ucsi *ucsi, void *buf, in ucsi_read_message_in() argument 46 if (ucsi->version <= UCSI_VERSION_1_2) in ucsi_read_message_in() 49 return ucsi->ops->read(ucsi, UCSI_MESSAGE_IN, buf, buf_size); in ucsi_read_message_in() 52 static int ucsi_acknowledge(struct ucsi *ucsi, bool conn_ack) in ucsi_acknowledge() argument 59 clear_bit(EVENT_PENDING, &ucsi->flags); in ucsi_acknowledge() 63 return ucsi->ops->sync_write(ucsi, UCSI_CONTROL, &ctrl, sizeof(ctrl)); in ucsi_acknowledge() 66 static int ucsi_exec_command(struct ucsi *ucsi, u64 command); 68 static int ucsi_read_error(struct ucsi *ucsi) in ucsi_read_error() argument 74 ret = ucsi_acknowledge(ucsi, false); in ucsi_read_error() 78 ret = ucsi_exec_command(ucsi, UCSI_GET_ERROR_STATUS); in ucsi_read_error() [all …]
|
H A D | ucsi_stm32g0.c | 69 struct ucsi *ucsi; member 84 static int ucsi_stm32g0_bl_check_ack(struct ucsi *ucsi) in ucsi_stm32g0_bl_check_ack() argument 86 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_check_ack() 121 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 123 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_cmd_check_ack() 152 return ucsi_stm32g0_bl_check_ack(ucsi); in ucsi_stm32g0_bl_cmd_check_ack() 157 static int ucsi_stm32g0_bl_cmd(struct ucsi *ucsi, unsigned int cmd) in ucsi_stm32g0_bl_cmd() argument 159 return ucsi_stm32g0_bl_cmd_check_ack(ucsi, cmd, true); in ucsi_stm32g0_bl_cmd() 162 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 164 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_rcv_check_ack() [all …]
|
H A D | ucsi_acpi.c | 22 struct ucsi *ucsi; member 49 static int ucsi_acpi_read(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_read() argument 52 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_read() 64 static int ucsi_acpi_async_write(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_async_write() argument 67 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_async_write() 75 static int ucsi_acpi_sync_write(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_sync_write() argument 78 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_sync_write() 87 ret = ucsi_acpi_async_write(ucsi, offset, val, val_len); in ucsi_acpi_sync_write() 110 ucsi_zenbook_read(struct ucsi *ucsi, unsigned int offset, void *val, size_t val_len) in ucsi_zenbook_read() argument 112 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_zenbook_read() [all …]
|
H A D | ucsi.h | 16 struct ucsi; 64 int (*read)(struct ucsi *ucsi, unsigned int offset, 66 int (*sync_write)(struct ucsi *ucsi, unsigned int offset, 68 int (*async_write)(struct ucsi *ucsi, unsigned int offset, 70 bool (*update_altmodes)(struct ucsi *ucsi, struct ucsi_altmode *orig, 76 struct ucsi *ucsi_create(struct device *dev, const struct ucsi_operations *ops); 77 void ucsi_destroy(struct ucsi *ucsi); 78 int ucsi_register(struct ucsi *ucsi); 79 void ucsi_unregister(struct ucsi *ucsi); 80 void *ucsi_get_drvdata(struct ucsi *ucsi); [all …]
|
H A 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() 518 static int ucsi_ccg_read(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_read() argument 521 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_read() 561 static int ucsi_ccg_async_write(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_async_write() argument 566 return ccg_write(ucsi_get_drvdata(ucsi), reg, val, val_len); in ucsi_ccg_async_write() 569 static int ucsi_ccg_sync_write(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_sync_write() argument 572 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_sync_write() 588 con = &uc->ucsi->connector[con_index - 1]; in ucsi_ccg_sync_write() [all …]
|
H A 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()
|
H A 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()
|
H A D | Makefile | 6 typec_ucsi-y := ucsi.o
|
H A D | trace.h | 4 #define TRACE_SYSTEM ucsi
|
H A D | Kconfig | 23 https://www.intel.com/content/www/us/en/io/universal-serial-bus/usb-type-c-ucsi-spec.html
|
/openbmc/linux/drivers/usb/typec/ |
H A D | Makefile | 7 obj-$(CONFIG_TYPEC_UCSI) += ucsi/
|
H A D | Kconfig | 51 source "drivers/usb/typec/ucsi/Kconfig"
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp135f-dk.dts | 131 firmware-name = "stm32g0-ucsi.mp135f-dk.fw";
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | Makefile | 10 obj-$(CONFIG_I2C_CCGX_UCSI) += i2c-ccgx-ucsi.o
|
/openbmc/linux/drivers/pci/ |
H A D | quirks.c | 5707 static void quirk_gpu_usb_typec_ucsi(struct pci_dev *ucsi) in quirk_gpu_usb_typec_ucsi() argument 5709 pci_create_device_link(ucsi, 3, 0, PCI_BASE_CLASS_DISPLAY, 16); in quirk_gpu_usb_typec_ucsi()
|
/openbmc/linux/ |
H A D | opengrok0.0.log | 2241 2024-12-28 20:09:06.396-0600 FINEST t1085 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/drivers/usb/typec/ucsi/ucsi_ccg.c.gz' 3032 2024-12-28 20:09:06.530-0600 FINEST t1124 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/drivers/usb/typec/ucsi/ucsi_stm32g0.c.gz' [all...] |
H A D | opengrok1.0.log | [all...] |
H A D | opengrok2.0.log | [all...] |
/openbmc/ |
D | opengrok1.0.log | 1813 2025-01-26 03:00:46.594-0600 FINEST t468 IndexDatabase.setupDeletedUids: live doc: '/openbmc/linux/drivers/i2c/busses/i2c-ccgx-ucsi.c' (188) at 20240405153048897 [all...] |
D | opengrok2.0.log | 1882 2025-01-25 03:00:41.766-0600 FINEST t502 IndexDatabase.setupDeletedUids: live doc: '/openbmc/linux/drivers/i2c/busses/i2c-ccgx-ucsi.c' (188) at 20240405153048897 [all...] |