/openbmc/u-boot/drivers/net/phy/ |
H A D | miiphybb.c | 32 static int bb_mii_init_wrap(struct bb_miiphy_bus *bus) in bb_mii_init_wrap() argument 40 static int bb_mdio_active_wrap(struct bb_miiphy_bus *bus) in bb_mdio_active_wrap() argument 49 static int bb_mdio_tristate_wrap(struct bb_miiphy_bus *bus) in bb_mdio_tristate_wrap() argument 58 static int bb_set_mdio_wrap(struct bb_miiphy_bus *bus, int v) in bb_set_mdio_wrap() argument 67 static int bb_get_mdio_wrap(struct bb_miiphy_bus *bus, int *v) in bb_get_mdio_wrap() argument 76 static int bb_set_mdc_wrap(struct bb_miiphy_bus *bus, int v) in bb_set_mdc_wrap() argument 85 static int bb_delay_wrap(struct bb_miiphy_bus *bus) in bb_delay_wrap() argument 134 /* Search the correct bus */ in bb_miiphy_getbus() 142 /* We have just one bitbanging bus */ in bb_miiphy_getbus() 152 static void miiphy_pre(struct bb_miiphy_bus *bus, char read, in miiphy_pre() argument [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-npcm7xx.c | 30 * of the bus. 126 #define NPCM_I2CT_OUT 0x14 /* Bus T.O. */ 153 #define NPCM_I2CST_BER BIT(5) /* Bus error */ 159 #define NPCM_I2CCST_BB BIT(1) /* Bus busy */ 338 static inline void npcm_i2c_select_bank(struct npcm_i2c *bus, in npcm_i2c_select_bank() argument 341 u8 i2cctl3 = ioread8(bus->reg + NPCM_I2CCTL3); in npcm_i2c_select_bank() 347 iowrite8(i2cctl3, bus->reg + NPCM_I2CCTL3); in npcm_i2c_select_bank() 350 static void npcm_i2c_init_params(struct npcm_i2c *bus) in npcm_i2c_init_params() argument 352 bus->stop_ind = I2C_NO_STATUS_IND; in npcm_i2c_init_params() 353 bus->rd_size = 0; in npcm_i2c_init_params() [all …]
|
H A D | i2c-aspeed.c | 171 static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus); 173 /* precondition: bus.lock has been acquired. */ 174 static void aspeed_i2c_do_stop(struct aspeed_i2c_bus *bus) in aspeed_i2c_do_stop() argument 176 bus->master_state = ASPEED_I2C_MASTER_STOP; in aspeed_i2c_do_stop() 177 writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_do_stop() 180 static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) in aspeed_i2c_recover_bus() argument 186 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus() 187 command = readl(bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus() 190 /* Bus is idle: no recovery needed. */ in aspeed_i2c_recover_bus() 193 dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", in aspeed_i2c_recover_bus() [all …]
|
/openbmc/linux/sound/hda/ |
H A D | hdac_controller.c | 15 static void azx_clear_corbrp(struct hdac_bus *bus) in azx_clear_corbrp() argument 20 if (snd_hdac_chip_readw(bus, CORBRP) & AZX_CORBRP_RST) in azx_clear_corbrp() 25 dev_err(bus->dev, "CORB reset timeout#1, CORBRP = %d\n", in azx_clear_corbrp() 26 snd_hdac_chip_readw(bus, CORBRP)); in azx_clear_corbrp() 28 snd_hdac_chip_writew(bus, CORBRP, 0); in azx_clear_corbrp() 30 if (snd_hdac_chip_readw(bus, CORBRP) == 0) in azx_clear_corbrp() 35 dev_err(bus->dev, "CORB reset timeout#2, CORBRP = %d\n", in azx_clear_corbrp() 36 snd_hdac_chip_readw(bus, CORBRP)); in azx_clear_corbrp() 41 * @bus: HD-audio core bus 43 void snd_hdac_bus_init_cmd_io(struct hdac_bus *bus) in snd_hdac_bus_init_cmd_io() argument [all …]
|
H A D | hdac_bus.c | 3 * HD-audio core bus driver 24 * snd_hdac_bus_init - initialize a HD-audio bas bus 25 * @bus: the pointer to bus object 27 * @ops: bus verb operators 31 int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, in snd_hdac_bus_init() argument 34 memset(bus, 0, sizeof(*bus)); in snd_hdac_bus_init() 35 bus->dev = dev; in snd_hdac_bus_init() 37 bus->ops = ops; in snd_hdac_bus_init() 39 bus->ops = &default_ops; in snd_hdac_bus_init() 40 bus->dma_type = SNDRV_DMA_TYPE_DEV; in snd_hdac_bus_init() [all …]
|
/openbmc/linux/sound/i2c/ |
H A D | i2c.c | 25 static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, 34 static int snd_i2c_bus_free(struct snd_i2c_bus *bus) in snd_i2c_bus_free() argument 39 if (snd_BUG_ON(!bus)) in snd_i2c_bus_free() 41 while (!list_empty(&bus->devices)) { in snd_i2c_bus_free() 42 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free() 45 if (bus->master) in snd_i2c_bus_free() 46 list_del(&bus->buses); in snd_i2c_bus_free() 48 while (!list_empty(&bus->buses)) { in snd_i2c_bus_free() 49 slave = snd_i2c_slave_bus(bus->buses.next); in snd_i2c_bus_free() 50 snd_device_free(bus->card, slave); in snd_i2c_bus_free() [all …]
|
/openbmc/entity-manager/configurations/meta/ |
H A D | minerva_fanboard.json | 6 "Bus": "$bus", string 8 "Name": "FCB_$bus - 15 FAN $bus * 4 - 64 + 1 TACH_IL", 10 "PwmName": "FCB_$bus - 15 FAN_PWM", 16 "Name": "FCB_$bus - 15 FAN $bus * 4 - 64 + 1 TACH_IL_SPEED_RPM", 38 "Bus": "$bus", string 40 "Name": "FCB_$bus - 15 FAN $bus * 4 - 64 + 1 TACH_OL", 42 "PwmName": "FCB_$bus - 15 FAN_PWM", 48 "Name": "FCB_$bus - 15 FAN $bus * 4 - 64 + 1 TACH_OL_SPEED_RPM", 70 "Bus": "$bus", string 72 "Name": "FCB_$bus - 15 FAN $bus * 4 - 64 + 2 TACH_IL", [all …]
|
H A D | yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_mps.json | 5 "Bus": "$bus", string 6 "Name": "Fan Board $bus % 30 FRU", 11 "Bus": "$bus", string 13 "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 TACH_INLET_SPEED_RPM", 15 "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 PWM_PCT", 21 "Name": "FANBOARD$bus 50 "Bus": "$bus", global() string 89 "Bus": "$bus", global() string 128 "Bus": "$bus", global() string 167 "Bus": "$bus", global() string 206 "Bus": "$bus", global() string 245 "Bus": "$bus", global() string 284 "Bus": "$bus", global() string 323 "Bus": "$bus", global() string 362 "Bus": "$bus", global() string 401 "Bus": "$bus", global() string 440 "Bus": "$bus", global() string 479 "Bus": "$bus", global() string [all...] |
H A D | yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_mps.json | 5 "Bus": "$bus", string 16 "Name": "FANBOARD$bus % 30 ADC", 261 "in0_Name": "FANBOARD$bus % 30 ADC_FAN$bus % 30 * 2 + 8 48V_CURR_A", 264 "in1_Name": "FANBOARD$bus % 30 ADC_FAN$bus % 30 * 2 + 4 48V_CURR_A", 267 "in2_Name": "FANBOARD$bus % 30 ADC_FAN$bus % 30 * 2 + 0 48V_CURR_A", 270 "in3_Name": "FANBOARD$bus 285 "Bus": "$bus", global() string 291 "Bus": "$bus", global() string 330 "Bus": "$bus", global() string 369 "Bus": "$bus", global() string 408 "Bus": "$bus", global() string 447 "Bus": "$bus", global() string 486 "Bus": "$bus", global() string 525 "Bus": "$bus", global() string 564 "Bus": "$bus", global() string 603 "Bus": "$bus", global() string 642 "Bus": "$bus", global() string 681 "Bus": "$bus", global() string 720 "Bus": "$bus", global() string [all...] |
H A D | yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_max.json | 5 "Bus": "$bus", string 6 "Name": "Fan Board $bus % 30 FRU", 11 "Bus": "$bus", string 13 "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 TACH_INLET_SPEED_RPM", 15 "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 PWM_PCT", 21 "Name": "FANBOARD$bus 50 "Bus": "$bus", global() string 89 "Bus": "$bus", global() string 128 "Bus": "$bus", global() string 167 "Bus": "$bus", global() string 206 "Bus": "$bus", global() string 245 "Bus": "$bus", global() string 284 "Bus": "$bus", global() string 323 "Bus": "$bus", global() string 362 "Bus": "$bus", global() string 401 "Bus": "$bus", global() string 440 "Bus": "$bus", global() string 479 "Bus": "$bus", global() string [all...] |
H A D | yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json | 5 "Bus": "$bus", string 16 "Name": "FANBOARD$bus % 30 ADC", 261 "in0_Name": "FANBOARD$bus % 30 ADC_FAN$bus % 30 * 2 + 8 48V_CURR_A", 264 "in1_Name": "FANBOARD$bus % 30 ADC_FAN$bus % 30 * 2 + 4 48V_CURR_A", 267 "in2_Name": "FANBOARD$bus % 30 ADC_FAN$bus % 30 * 2 + 0 48V_CURR_A", 270 "in3_Name": "FANBOARD$bus 285 "Bus": "$bus", global() string 291 "Bus": "$bus", global() string 330 "Bus": "$bus", global() string 369 "Bus": "$bus", global() string 408 "Bus": "$bus", global() string 447 "Bus": "$bus", global() string 486 "Bus": "$bus", global() string 525 "Bus": "$bus", global() string 564 "Bus": "$bus", global() string 603 "Bus": "$bus", global() string 642 "Bus": "$bus", global() string 681 "Bus": "$bus", global() string 720 "Bus": "$bus", global() string [all...] |
/openbmc/qemu/tests/qtest/libqos/ |
H A D | pci-spapr.c | 25 static uint8_t qpci_spapr_pio_readb(QPCIBus *bus, uint32_t addr) in qpci_spapr_pio_readb() argument 27 QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus); in qpci_spapr_pio_readb() 28 return qtest_readb(bus->qts, s->pio_cpu_base + addr); in qpci_spapr_pio_readb() 31 static void qpci_spapr_pio_writeb(QPCIBus *bus, uint32_t addr, uint8_t val) in qpci_spapr_pio_writeb() argument 33 QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus); in qpci_spapr_pio_writeb() 34 qtest_writeb(bus->qts, s->pio_cpu_base + addr, val); in qpci_spapr_pio_writeb() 37 static uint16_t qpci_spapr_pio_readw(QPCIBus *bus, uint32_t addr) in qpci_spapr_pio_readw() argument 39 QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus); in qpci_spapr_pio_readw() 40 return bswap16(qtest_readw(bus->qts, s->pio_cpu_base + addr)); in qpci_spapr_pio_readw() 43 static void qpci_spapr_pio_writew(QPCIBus *bus, uint32_t addr, uint16_t val) in qpci_spapr_pio_writew() argument [all …]
|
H A D | generic-pcihost.c | 27 if (!g_strcmp0(device, "pci-bus-generic")) { in generic_pcihost_get_device() 42 static uint8_t qpci_generic_pio_readb(QPCIBus *bus, uint32_t addr) in qpci_generic_pio_readb() argument 44 QGenericPCIBus *s = container_of(bus, QGenericPCIBus, bus); in qpci_generic_pio_readb() 46 return qtest_readb(bus->qts, s->gpex_pio_base + addr); in qpci_generic_pio_readb() 49 static void qpci_generic_pio_writeb(QPCIBus *bus, uint32_t addr, uint8_t val) in qpci_generic_pio_writeb() argument 51 QGenericPCIBus *s = container_of(bus, QGenericPCIBus, bus); in qpci_generic_pio_writeb() 53 qtest_writeb(bus->qts, s->gpex_pio_base + addr, val); in qpci_generic_pio_writeb() 56 static uint16_t qpci_generic_pio_readw(QPCIBus *bus, uint32_t addr) in qpci_generic_pio_readw() argument 58 QGenericPCIBus *s = container_of(bus, QGenericPCIBus, bus); in qpci_generic_pio_readw() 60 return qtest_readw(bus->qts, s->gpex_pio_base + addr); in qpci_generic_pio_readw() [all …]
|
H A D | pci-pc.c | 24 static uint8_t qpci_pc_pio_readb(QPCIBus *bus, uint32_t addr) in qpci_pc_pio_readb() argument 26 return qtest_inb(bus->qts, addr); in qpci_pc_pio_readb() 29 static void qpci_pc_pio_writeb(QPCIBus *bus, uint32_t addr, uint8_t val) in qpci_pc_pio_writeb() argument 31 qtest_outb(bus->qts, addr, val); in qpci_pc_pio_writeb() 34 static uint16_t qpci_pc_pio_readw(QPCIBus *bus, uint32_t addr) in qpci_pc_pio_readw() argument 36 return qtest_inw(bus->qts, addr); in qpci_pc_pio_readw() 39 static void qpci_pc_pio_writew(QPCIBus *bus, uint32_t addr, uint16_t val) in qpci_pc_pio_writew() argument 41 qtest_outw(bus->qts, addr, val); in qpci_pc_pio_writew() 44 static uint32_t qpci_pc_pio_readl(QPCIBus *bus, uint32_t addr) in qpci_pc_pio_readl() argument 46 return qtest_inl(bus->qts, addr); in qpci_pc_pio_readl() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | bus.c | 26 void qbus_set_hotplug_handler(BusState *bus, Object *handler) in qbus_set_hotplug_handler() argument 28 object_property_set_link(OBJECT(bus), QDEV_HOTPLUG_HANDLER_PROPERTY, in qbus_set_hotplug_handler() 32 void qbus_set_bus_hotplug_handler(BusState *bus) in qbus_set_bus_hotplug_handler() argument 34 qbus_set_hotplug_handler(bus, OBJECT(bus)); in qbus_set_bus_hotplug_handler() 37 int qbus_walk_children(BusState *bus, in qbus_walk_children() argument 46 err = pre_busfn(bus, opaque); in qbus_walk_children() 53 QTAILQ_FOREACH_RCU(kid, &bus->children, sibling) { in qbus_walk_children() 64 err = post_busfn(bus, opaque); in qbus_walk_children() 73 void bus_cold_reset(BusState *bus) in bus_cold_reset() argument 75 resettable_reset(OBJECT(bus), RESET_TYPE_COLD); in bus_cold_reset() [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | aspeed_i2c.c | 38 static inline void aspeed_i2c_bus_raise_interrupt(AspeedI2CBus *bus) in aspeed_i2c_bus_raise_interrupt() argument 40 AspeedI2CClass *aic = ASPEED_I2C_GET_CLASS(bus->controller); in aspeed_i2c_bus_raise_interrupt() 41 uint32_t reg_intr_sts = aspeed_i2c_bus_intr_sts_offset(bus); in aspeed_i2c_bus_raise_interrupt() 42 uint32_t intr_ctrl_reg = aspeed_i2c_bus_intr_ctrl_offset(bus); in aspeed_i2c_bus_raise_interrupt() 43 uint32_t intr_ctrl_mask = bus->regs[intr_ctrl_reg] | in aspeed_i2c_bus_raise_interrupt() 49 aspeed_i2c_bus_pkt_mode_en(bus) && in aspeed_i2c_bus_raise_interrupt() 50 ARRAY_FIELD_EX32(bus->regs, I2CM_INTR_STS, PKT_CMD_DONE) ? in aspeed_i2c_bus_raise_interrupt() 52 SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, TX_NAK) ? in aspeed_i2c_bus_raise_interrupt() 54 SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, TX_ACK) ? in aspeed_i2c_bus_raise_interrupt() 56 SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, RX_DONE) ? in aspeed_i2c_bus_raise_interrupt() [all …]
|
H A D | smbus_master.c | 19 int smbus_quick_command(I2CBus *bus, uint8_t addr, int read) in smbus_quick_command() argument 21 if (i2c_start_transfer(bus, addr, read)) { in smbus_quick_command() 24 i2c_end_transfer(bus); in smbus_quick_command() 28 int smbus_receive_byte(I2CBus *bus, uint8_t addr) in smbus_receive_byte() argument 32 if (i2c_start_recv(bus, addr)) { in smbus_receive_byte() 35 data = i2c_recv(bus); in smbus_receive_byte() 36 i2c_nack(bus); in smbus_receive_byte() 37 i2c_end_transfer(bus); in smbus_receive_byte() 41 int smbus_send_byte(I2CBus *bus, uint8_t addr, uint8_t data) in smbus_send_byte() argument 43 if (i2c_start_send(bus, addr)) { in smbus_send_byte() [all …]
|
H A D | core.c | 2 * QEMU I2C bus interface. 34 I2CBus *bus = opaque; in i2c_bus_pre_save() local 36 bus->saved_address = -1; in i2c_bus_pre_save() 37 if (!QLIST_EMPTY(&bus->current_devs)) { in i2c_bus_pre_save() 38 if (!bus->broadcast) { in i2c_bus_pre_save() 39 bus->saved_address = QLIST_FIRST(&bus->current_devs)->elt->address; in i2c_bus_pre_save() 41 bus->saved_address = I2C_BROADCAST; in i2c_bus_pre_save() 59 /* Create a new I2C bus. */ 62 I2CBus *bus; in i2c_init_bus() local 64 bus = I2C_BUS(qbus_new(TYPE_I2C_BUS, parent, name)); in i2c_init_bus() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | bit.c | 24 #include "bus.h" 32 nvkm_i2c_drive_scl(struct nvkm_i2c_bus *bus, int state) in nvkm_i2c_drive_scl() argument 34 bus->func->drive_scl(bus, state); in nvkm_i2c_drive_scl() 38 nvkm_i2c_drive_sda(struct nvkm_i2c_bus *bus, int state) in nvkm_i2c_drive_sda() argument 40 bus->func->drive_sda(bus, state); in nvkm_i2c_drive_sda() 44 nvkm_i2c_sense_scl(struct nvkm_i2c_bus *bus) in nvkm_i2c_sense_scl() argument 46 return bus->func->sense_scl(bus); in nvkm_i2c_sense_scl() 50 nvkm_i2c_sense_sda(struct nvkm_i2c_bus *bus) in nvkm_i2c_sense_sda() argument 52 return bus->func->sense_sda(bus); in nvkm_i2c_sense_sda() 56 nvkm_i2c_delay(struct nvkm_i2c_bus *bus, u32 nsec) in nvkm_i2c_delay() argument [all …]
|
H A D | bus.c | 24 #include "bus.h" 35 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_pre_xfer() local 36 return nvkm_i2c_bus_acquire(bus); in nvkm_i2c_bus_pre_xfer() 42 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_post_xfer() local 43 return nvkm_i2c_bus_release(bus); in nvkm_i2c_bus_post_xfer() 49 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_setscl() local 50 bus->func->drive_scl(bus, state); in nvkm_i2c_bus_setscl() 56 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_setsda() local 57 bus->func->drive_sda(bus, state); in nvkm_i2c_bus_setsda() 63 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_getscl() local [all …]
|
/openbmc/linux/include/sound/ |
H A D | hda-mlink.h | 14 int hda_bus_ml_init(struct hdac_bus *bus); 15 void hda_bus_ml_free(struct hdac_bus *bus); 17 int hdac_bus_eml_get_count(struct hdac_bus *bus, bool alt, int elid); 18 void hdac_bus_eml_enable_interrupt(struct hdac_bus *bus, bool alt, int elid, bool enable); 19 bool hdac_bus_eml_check_interrupt(struct hdac_bus *bus, bool alt, int elid); 21 int hdac_bus_eml_set_syncprd_unlocked(struct hdac_bus *bus, bool alt, int elid, u32 syncprd); 22 int hdac_bus_eml_sdw_set_syncprd_unlocked(struct hdac_bus *bus, u32 syncprd); 24 int hdac_bus_eml_wait_syncpu_unlocked(struct hdac_bus *bus, bool alt, int elid); 25 int hdac_bus_eml_sdw_wait_syncpu_unlocked(struct hdac_bus *bus); 27 void hdac_bus_eml_sync_arm_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink); [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_gpio.c | 28 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_to_irq() local 30 if (bus->bustype == SSB_BUSTYPE_SSB) in ssb_gpio_to_irq() 31 return irq_find_mapping(bus->irq_domain, gpio); in ssb_gpio_to_irq() 43 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_get_value() local 45 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); in ssb_gpio_chipco_get_value() 51 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_set_value() local 53 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); in ssb_gpio_chipco_set_value() 59 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_direction_input() local 61 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 0); in ssb_gpio_chipco_direction_input() 68 struct ssb_bus *bus = gpiochip_get_data(chip); in ssb_gpio_chipco_direction_output() local [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-i3c | 1 What: /sys/bus/i3c/devices/i3c-<bus-id> 5 An I3C bus. This directory will contain one sub-directory per 6 I3C device present on the bus. 8 What: /sys/bus/i3c/devices/i3c-<bus-id>/current_master 12 Expose the master that owns the bus (<bus-id>-<master-pid>) at 13 the time this file is read. Note that bus ownership can change 17 What: /sys/bus/i3c/devices/i3c-<bus-id>/mode 21 I3C bus mode. Can be "pure", "mixed-fast" or "mixed-slow". See 25 What: /sys/bus/i3c/devices/i3c-<bus-id>/i3c_scl_frequency 32 What: /sys/bus/i3c/devices/i3c-<bus-id>/i2c_scl_frequency [all …]
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | core.c | 39 avs_hda_update_config_dword(struct hdac_bus *bus, u32 reg, u32 mask, u32 value) in avs_hda_update_config_dword() argument 41 struct pci_dev *pci = to_pci_dev(bus->dev); in avs_hda_update_config_dword() 57 static void avs_hdac_clock_gating_enable(struct hdac_bus *bus, bool enable) in avs_hdac_clock_gating_enable() argument 61 avs_hda_update_config_dword(bus, AZX_PCIREG_CGCTL, cgctl_mask, value); in avs_hdac_clock_gating_enable() 76 static int avs_hdac_bus_init_streams(struct hdac_bus *bus) in avs_hdac_bus_init_streams() argument 81 gcap = snd_hdac_chip_readw(bus, GCAP); in avs_hdac_bus_init_streams() 84 bus->num_streams = cp_streams + pb_streams; in avs_hdac_bus_init_streams() 86 snd_hdac_ext_stream_init_all(bus, 0, cp_streams, SNDRV_PCM_STREAM_CAPTURE); in avs_hdac_bus_init_streams() 87 snd_hdac_ext_stream_init_all(bus, cp_streams, pb_streams, SNDRV_PCM_STREAM_PLAYBACK); in avs_hdac_bus_init_streams() 89 return snd_hdac_bus_alloc_stream_pages(bus); in avs_hdac_bus_init_streams() [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | mdio_bus.c | 2 /* MDIO Bus interface 75 if (mdiodev->bus->mdio_map[mdiodev->addr]) in mdiobus_register_device() 91 mdiodev->bus->mdio_map[mdiodev->addr] = mdiodev; in mdiobus_register_device() 99 if (mdiodev->bus->mdio_map[mdiodev->addr] != mdiodev) in mdiobus_unregister_device() 104 mdiodev->bus->mdio_map[mdiodev->addr] = NULL; in mdiobus_unregister_device() 110 static struct mdio_device *mdiobus_find_device(struct mii_bus *bus, int addr) in mdiobus_find_device() argument 112 bool addr_valid = addr >= 0 && addr < ARRAY_SIZE(bus->mdio_map); in mdiobus_find_device() 117 return bus->mdio_map[addr]; in mdiobus_find_device() 120 struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr) in mdiobus_get_phy() argument 124 mdiodev = mdiobus_find_device(bus, addr); in mdiobus_get_phy() [all …]
|