/openbmc/qemu/hw/i3c/ |
H A D | remote-i3c.c | 68 RemoteI3C *i3c = REMOTE_I3C(t); in remote_i3c_recv() local 72 qemu_chr_fe_write_all(&i3c->chr, &type, 1); in remote_i3c_recv() 74 qemu_chr_fe_write_all(&i3c->chr, (uint8_t *)&num_to_read_le, in remote_i3c_recv() 79 qemu_chr_fe_read_all(&i3c->chr, (uint8_t *)&num_read, sizeof(num_read)); in remote_i3c_recv() 82 qemu_chr_fe_read_all(&i3c->chr, data, num_read); in remote_i3c_recv() 83 trace_remote_i3c_recv(i3c->cfg.name, num_read, num_to_read); in remote_i3c_recv() 87 static inline bool remote_i3c_tx_in_progress(RemoteI3C *i3c) in remote_i3c_tx_in_progress() argument 89 return !fifo8_is_empty(&i3c->tx_fifo); in remote_i3c_tx_in_progress() 92 static int remote_i3c_chr_send_bytes(RemoteI3C *i3c) in remote_i3c_chr_send_bytes() argument 95 uint32_t num_bytes = fifo8_num_used(&i3c->tx_fifo); in remote_i3c_chr_send_bytes() [all …]
|
H A D | mock-target.c | 53 static uint32_t mock_target_rx(I3CTarget *i3c, uint8_t *data, in mock_target_rx() argument 56 MockTargetState *s = MOCK_TARGET(i3c); in mock_target_rx() 83 static int mock_target_tx(I3CTarget *i3c, const uint8_t *data, in mock_target_tx() argument 86 MockTargetState *s = MOCK_TARGET(i3c); in mock_target_tx() 111 static int mock_target_event(I3CTarget *i3c, enum I3CEvent event) in mock_target_event() argument 113 MockTargetState *s = MOCK_TARGET(i3c); in mock_target_event() 126 static int mock_target_handle_ccc_read(I3CTarget *i3c, uint8_t *data, in mock_target_handle_ccc_read() argument 129 MockTargetState *s = MOCK_TARGET(i3c); in mock_target_handle_ccc_read() 187 static int mock_target_handle_ccc_write(I3CTarget *i3c, const uint8_t *data, in mock_target_handle_ccc_write() argument 191 MockTargetState *s = MOCK_TARGET(i3c); in mock_target_handle_ccc_write() [all …]
|
H A D | Kconfig | 5 # Device group for i3c devices which can reasonably be user-plugged to any 6 # board's i3c bus.
|
/openbmc/linux/drivers/i3c/master/ |
H A D | ast2600-i3c-master.c | 79 struct ast2600_i3c *i3c = to_ast2600_i3c(dw); in ast2600_i3c_init() local 84 rc = ast2600_i3c_pullup_to_reg(i3c->sda_pullup, ®); in ast2600_i3c_init() 88 rc = regmap_write(i3c->global_regs, in ast2600_i3c_init() 89 AST2600_I3CG_REG0(i3c->global_idx), reg); in ast2600_i3c_init() 96 reg = AST2600_I3CG_REG1_INST_ID(i3c->global_idx); in ast2600_i3c_init() 97 rc = regmap_write(i3c->global_regs, in ast2600_i3c_init() 98 AST2600_I3CG_REG1(i3c->global_idx), reg); in ast2600_i3c_init() 103 static void ast2600_i3c_set_dat_ibi(struct dw_i3c_master *i3c, in ast2600_i3c_set_dat_ibi() argument 114 dev_warn_once(&i3c->base.dev, in ast2600_i3c_set_dat_ibi() 129 struct ast2600_i3c *i3c; in ast2600_i3c_probe() local [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_CDNS_I3C_MASTER) += i3c-master-cdns.o 3 obj-$(CONFIG_DW_I3C_MASTER) += dw-i3c-master.o 4 obj-$(CONFIG_AST2600_I3C_MASTER) += ast2600-i3c-master.o 5 obj-$(CONFIG_SVC_I3C_MASTER) += svc-i3c-master.o 6 obj-$(CONFIG_MIPI_I3C_HCI) += mipi-i3c-hci/
|
H A D | Kconfig | 23 will be called dw-i3c-master. 37 will be called ast2600-i3c-master. 56 https://www.mipi.org/specifications/i3c-hci 59 called mipi-i3c-hci.
|
H A D | dw-i3c-master.h | 68 int (*init)(struct dw_i3c_master *i3c); 77 void (*set_dat_ibi)(struct dw_i3c_master *i3c,
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-i3c | 1 What: /sys/bus/i3c/devices/i3c-<bus-id> 3 Contact: linux-i3c@vger.kernel.org 8 What: /sys/bus/i3c/devices/i3c-<bus-id>/current_master 10 Contact: linux-i3c@vger.kernel.org 17 What: /sys/bus/i3c/devices/i3c-<bus-id>/mode 19 Contact: linux-i3c@vger.kernel.org 25 What: /sys/bus/i3c/devices/i3c-<bus-id>/i3c_scl_frequency 27 Contact: linux-i3c@vger.kernel.org 32 What: /sys/bus/i3c/devices/i3c-<bus-id>/i2c_scl_frequency 34 Contact: linux-i3c@vger.kernel.org [all …]
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap-i3c.c | 12 struct i3c_device *i3c = dev_to_i3cdev(dev); in regmap_i3c_write() local 21 return i3c_device_do_priv_xfers(i3c, xfers, 1); in regmap_i3c_write() 29 struct i3c_device *i3c = dev_to_i3cdev(dev); in regmap_i3c_read() local 40 return i3c_device_do_priv_xfers(i3c, xfers, 2); in regmap_i3c_read() 48 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c, in __devm_regmap_init_i3c() argument 53 return __devm_regmap_init(&i3c->dev, ®map_i3c, &i3c->dev, config, in __devm_regmap_init_i3c()
|
/openbmc/linux/drivers/net/mctp/ |
H A D | mctp-i3c.c | 73 struct i3c_device *i3c; member 128 rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1); in mctp_i3c_read() 175 static void mctp_i3c_ibi_handler(struct i3c_device *i3c, in mctp_i3c_ibi_handler() argument 178 struct mctp_i3c_device *mi = i3cdev_get_drvdata(i3c); in mctp_i3c_ibi_handler() 193 dev_warn_once(i3cdev_to_dev(i3c), "IBI with missing MDB"); in mctp_i3c_ibi_handler() 210 i3c_device_get_info(mi->i3c, &info); in mctp_i3c_setup() 217 rc = i3c_device_request_ibi(mi->i3c, &ibi); in mctp_i3c_setup() 223 dev_warn(i3cdev_to_dev(mi->i3c), in mctp_i3c_setup() 227 dev_err(i3cdev_to_dev(mi->i3c), in mctp_i3c_setup() 232 rc = i3c_device_enable_ibi(mi->i3c); in mctp_i3c_setup() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/ |
H A D | phosphor-gpio-monitor_%.bbappend | 23 file://disable-i3c-hub \ 24 file://disable-i3c-hub@.service \ 29 file://en-i3c-hub-scan-fru \ 30 file://en-i3c-hub-scan-fru@.service \ 53 disable-i3c-hub@.service \ 55 en-i3c-hub-scan-fru@.service \ 76 install -m 0644 ${UNPACKDIR}/disable-i3c-hub@.service ${D}${systemd_system_unitdir}/ 79 install -m 0644 ${UNPACKDIR}/en-i3c-hub-scan-fru@.service ${D}${systemd_system_unitdir}/ 89 install -m 0755 ${UNPACKDIR}/disable-i3c-hub ${D}${libexecdir}/${PN}/ 92 install -m 0755 ${UNPACKDIR}/en-i3c-hub-scan-fru ${D}${libexecdir}/${PN}/
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | disable-i3c-hub@.service | 2 Description=slot-disable-i3c-hub:%i 6 ExecStart=/usr/libexec/phosphor-gpio-monitor/disable-i3c-hub %i 7 SyslogIdentifier=slot-disable-i3c-hub %i
|
H A D | en-i3c-hub-scan-fru@.service | 2 Description=slot-en-i3c-hub-scan-fru:%i 6 ExecStart=/usr/libexec/phosphor-gpio-monitor/en-i3c-hub-scan-fru %i 7 SyslogIdentifier=slot-en-i3c-hub-scan-fru %i
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-yosemite4/plat-svc/files/ |
H A D | yosemite4-early-sys-init | 40 echo "1" > /sys/bus/i3c/devices/i3c-0/hotjoin 41 echo "1" > /sys/bus/i3c/devices/i3c-1/hotjoin
|
/openbmc/linux/drivers/i3c/ |
H A D | Makefile | 2 i3c-y := device.o master.o 3 obj-$(CONFIG_I3C) += i3c.o
|
H A D | Kconfig | 20 will be called i3c. 23 source "drivers/i3c/master/Kconfig"
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | check-i3c-hub@.service | 2 Description=Check chassis%i i3c hub 6 ExecStart=/usr/libexec/phosphor-state-manager/check-i3c-hub %i
|
/openbmc/linux/Documentation/driver-api/i3c/ |
H A D | device-driver-api.rst | 7 .. kernel-doc:: include/linux/i3c/device.h 9 .. kernel-doc:: drivers/i3c/device.c
|
H A D | master-driver-api.rst | 7 .. kernel-doc:: drivers/i3c/master.c 9 .. kernel-doc:: include/linux/i3c/master.h
|
/openbmc/linux/drivers/i3c/master/mipi-i3c-hci/ |
H A D | Makefile | 3 obj-$(CONFIG_MIPI_I3C_HCI) += mipi-i3c-hci.o 4 mipi-i3c-hci-y := core.o ext_caps.o pio.o dma.o \
|
H A D | cmd_v2.c | 70 if (bus->scl_rate.i3c >= 12000000) in get_i3c_rate_idx() 72 if (bus->scl_rate.i3c > 8000000) in get_i3c_rate_idx() 74 if (bus->scl_rate.i3c > 6000000) in get_i3c_rate_idx() 76 if (bus->scl_rate.i3c > 4000000) in get_i3c_rate_idx() 78 if (bus->scl_rate.i3c > 2000000) in get_i3c_rate_idx()
|
H A D | cmd_v1.c | 126 if (bus->scl_rate.i3c >= 12500000) in get_i3c_mode() 128 if (bus->scl_rate.i3c > 8000000) in get_i3c_mode() 130 if (bus->scl_rate.i3c > 6000000) in get_i3c_mode() 132 if (bus->scl_rate.i3c > 4000000) in get_i3c_mode() 134 if (bus->scl_rate.i3c > 2000000) in get_i3c_mode()
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | multi-gpios-sys-init | 91 set_gpio i3c-cpu-mux0-oe-n 0 93 set_gpio i3c-cpu-mux0-select 0 95 set_gpio i3c-cpu-mux1-oe-n 0 98 set_gpio i3c-cpu-mux1-select 0
|
/openbmc/linux/include/linux/i3c/ |
H A D | master.h | 363 unsigned long i3c; member 367 struct list_head i3c; member 524 struct list_head i3c; member 551 list_for_each_entry(dev, &(bus)->devs.i3c, common.node)
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 39 file://check-i3c-hub@.service \ 53 file://check-i3c-hub \ 76 install -m 0755 ${UNPACKDIR}/check-i3c-hub ${D}${libexecdir}/${PN}/
|