/u-boot/test/dm/ |
A D | spi.c | 26 const int busnum = 0, cs = 0, mode = 0, speed = 1000000, cs_b = 2; in dm_test_spi_find() local 49 ut_asserteq(-ENODEV, spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find() 62 sandbox_sf_unbind_emul(state_get_current(), busnum, cs); in dm_test_spi_find() 67 ut_assertok(sandbox_sf_bind_emul(state, busnum, cs, bus, node, in dm_test_spi_find() 69 ut_assertok(spi_find_bus_and_cs(busnum, cs, &bus, &dev)); in dm_test_spi_find() 70 ut_assertok(spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find() 88 sandbox_sf_unbind_emul(state_get_current(), busnum, cs); in dm_test_spi_find() 89 sandbox_sf_unbind_emul(state_get_current(), busnum, cs_b); in dm_test_spi_find() 145 const int busnum = 0, cs_a = 0, cs_b = 1, mode = 0; in dm_test_spi_claim_bus() local 181 const int busnum = 0, cs = 0, mode = 0; in dm_test_spi_xfer() local [all …]
|
A D | i2c.c | 22 static const int busnum; variable 35 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_find() 49 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_read_write() 66 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_speed() 88 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_offset_len() 104 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_probe_empty() 121 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_bytewise() 176 ut_assertok(i2c_get_chip_for_busnum(busnum, chip, 1, &dev)); in dm_test_i2c_offset() 249 ut_assertok(i2c_get_chip_for_busnum(busnum, chip, 1, &dev)); in dm_test_i2c_addr_offset()
|
A D | tee.c | 52 u64 op, u64 busnum, u64 chip_addr, in invoke_func_rpc_test() argument 74 param[0].u.value.a = busnum; in invoke_func_rpc_test()
|
/u-boot/drivers/pci/ |
A D | pci_compat.c | 41 struct pci_controller *pci_bus_to_hose(int busnum) in pci_bus_to_hose() argument 46 ret = pci_get_bus(busnum, &bus); in pci_bus_to_hose() 48 debug("%s: Cannot get bus %d: ret=%d\n", __func__, busnum, ret); in pci_bus_to_hose()
|
A D | pci_internal.h | 59 int pci_get_bus(int busnum, struct udevice **busp);
|
A D | pci_common.c | 282 pci_dev_t pci_hose_find_devices(struct pci_controller *hose, int busnum, in pci_hose_find_devices() argument 291 for (bdf = PCI_BDF(busnum, 0, 0); in pci_hose_find_devices() 292 bdf < PCI_BDF(busnum + 1, 0, 0); in pci_hose_find_devices()
|
/u-boot/drivers/spi/ |
A D | sandbox_spi.c | 78 uint busnum, cs; in sandbox_spi_xfer() local 90 busnum = dev_seq(bus); in sandbox_spi_xfer() 92 if (busnum >= CONFIG_SANDBOX_SPI_MAX_BUS || in sandbox_spi_xfer() 95 busnum, cs); in sandbox_spi_xfer() 101 __func__, busnum, cs, ret); in sandbox_spi_xfer()
|
A D | spi-uclass.c | 281 int spi_cs_is_valid(unsigned int busnum, unsigned int cs) in spi_cs_is_valid() argument 287 ret = uclass_find_device_by_seq(UCLASS_SPI, busnum, &bus); in spi_cs_is_valid() 289 log_debug("%s: No bus %d\n", __func__, busnum); in spi_cs_is_valid() 310 int spi_find_bus_and_cs(int busnum, int cs, struct udevice **busp, in spi_find_bus_and_cs() argument 316 ret = uclass_find_device_by_seq(UCLASS_SPI, busnum, &bus); in spi_find_bus_and_cs() 318 log_debug("%s: No bus %d\n", __func__, busnum); in spi_find_bus_and_cs() 332 int spi_get_bus_and_cs(int busnum, int cs, int speed, int mode, in spi_get_bus_and_cs() argument 346 ret = uclass_get_device_by_seq(UCLASS_SPI, busnum, &bus); in spi_get_bus_and_cs() 349 log_err("Invalid bus %d (err=%d)\n", busnum, ret); in spi_get_bus_and_cs() 361 __func__, dev_name, busnum, cs, drv_name); in spi_get_bus_and_cs() [all …]
|
/u-boot/drivers/mtd/spi/ |
A D | sf-uclass.c | 54 int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs, in spi_flash_probe_bus_cs() argument 68 snprintf(name, sizeof(name), "spi_flash@%d:%d", busnum, cs); in spi_flash_probe_bus_cs() 71 ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode, in spi_flash_probe_bus_cs()
|
A D | sandbox.c | 521 int sandbox_sf_bind_emul(struct sandbox_state *state, int busnum, int cs, in sandbox_sf_bind_emul() argument 548 state->spi[busnum][cs].emul = emul; in sandbox_sf_bind_emul() 553 void sandbox_sf_unbind_emul(struct sandbox_state *state, int busnum, int cs) in sandbox_sf_unbind_emul() argument 557 dev = state->spi[busnum][cs].emul; in sandbox_sf_unbind_emul() 560 state->spi[busnum][cs].emul = NULL; in sandbox_sf_unbind_emul() 568 int busnum = dev_seq(bus); in sandbox_spi_get_emul() local 572 info = &state->spi[busnum][cs]; in sandbox_spi_get_emul() 576 __func__, busnum, cs); in sandbox_spi_get_emul() 577 ret = sandbox_sf_bind_emul(state, busnum, cs, bus, in sandbox_spi_get_emul()
|
A D | sf_probe.c | 57 struct spi_flash *spi_flash_probe(unsigned int busnum, unsigned int cs, in spi_flash_probe() argument 63 bus = spi_setup_slave(busnum, cs, max_hz, spi_mode); in spi_flash_probe()
|
/u-boot/include/ |
A D | spi_flash.h | 91 int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs, 122 int sandbox_sf_bind_emul(struct sandbox_state *state, int busnum, int cs, 125 void sandbox_sf_unbind_emul(struct sandbox_state *state, int busnum, int cs);
|
A D | w1.h | 29 int w1_get_bus(int busnum, struct udevice **busp);
|
A D | spi.h | 566 int spi_find_bus_and_cs(int busnum, int cs, struct udevice **busp, 591 int spi_get_bus_and_cs(int busnum, int cs, int speed, int mode,
|
A D | rtc.h | 219 int rtc_enable_32khz_output(int busnum, int chip_addr);
|
A D | i2c.h | 520 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len,
|
/u-boot/drivers/w1/ |
A D | w1-uclass.c | 108 int w1_get_bus(int busnum, struct udevice **busp) in w1_get_bus() argument 117 if (i == busnum) { in w1_get_bus() 124 debug("Cannot find w1 bus %d\n", busnum); in w1_get_bus()
|
/u-boot/cmd/ |
A D | axi.c | 56 static int axi_set_cur_bus(unsigned int busnum) in axi_set_cur_bus() argument 68 ret = uclass_get_device_by_seq(UCLASS_AXI, busnum, &bus); in axi_set_cur_bus() 70 debug("%s: No bus %d\n", __func__, busnum); in axi_set_cur_bus()
|
A D | pci.c | 300 void pciinfo_header(int busnum, bool short_listing) in pciinfo_header() argument 302 printf("Scanning PCI devices on bus %d\n", busnum); in pciinfo_header() 669 int busnum = 0; in do_pci() local 712 busnum = simple_strtoul(argv[1], NULL, 16); in do_pci() 715 ret = uclass_get_device_by_seq(UCLASS_PCI, busnum, &bus); in do_pci() 725 pciinfo(busnum, value); in do_pci()
|
A D | i2c.c | 136 static int cmd_i2c_set_bus_num(unsigned int busnum) in cmd_i2c_set_bus_num() argument 141 ret = uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus); in cmd_i2c_set_bus_num() 143 debug("%s: No bus %d\n", __func__, busnum); in cmd_i2c_set_bus_num()
|
/u-boot/drivers/i2c/ |
A D | i2c-uclass.c | 348 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len, in i2c_get_chip_for_busnum() argument 354 ret = uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus); in i2c_get_chip_for_busnum() 356 debug("Cannot find I2C bus %d\n", busnum); in i2c_get_chip_for_busnum() 366 busnum); in i2c_get_chip_for_busnum() 373 busnum); in i2c_get_chip_for_busnum()
|
A D | fsl_i2c.c | 265 slaveadd, int i2c_clk, int busnum) in __i2c_init() argument 291 busnum); in __i2c_init()
|
/u-boot/drivers/rtc/ |
A D | ds3231.c | 258 int rtc_enable_32khz_output(int busnum, int chip_addr) in rtc_enable_32khz_output() argument 263 ret = i2c_get_chip_for_busnum(busnum, chip_addr, 1, &dev); in rtc_enable_32khz_output()
|
/u-boot/board/compulab/cm_fx6/ |
A D | cm_fx6.c | 256 static int cm_fx6_setup_one_i2c(int busnum, struct i2c_pads_info *pads) in cm_fx6_setup_one_i2c() argument 260 ret = setup_i2c(busnum, CONFIG_SYS_I2C_SPEED, 0x7f, pads); in cm_fx6_setup_one_i2c() 262 printf("Warning: I2C%d setup failed: %d\n", busnum, ret); in cm_fx6_setup_one_i2c()
|
/u-boot/drivers/usb/gadget/ |
A D | max3420_udc.c | 824 int busnum = dev_seq(bus); in max3420_udc_probe() local 833 spi_get_bus_and_cs(busnum, cs, speed, mode, "spi_generic_drv", in max3420_udc_probe()
|