Home
last modified time | relevance | path

Searched refs:busnum (Results 1 – 25 of 28) sorted by relevance

12

/u-boot/test/dm/
A Dspi.c26 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 Di2c.c22 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 Dtee.c52 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 Dpci_compat.c41 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 Dpci_internal.h59 int pci_get_bus(int busnum, struct udevice **busp);
A Dpci_common.c282 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 Dsandbox_spi.c78 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 Dspi-uclass.c281 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 Dsf-uclass.c54 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 Dsandbox.c521 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 Dsf_probe.c57 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 Dspi_flash.h91 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 Dw1.h29 int w1_get_bus(int busnum, struct udevice **busp);
A Dspi.h566 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 Drtc.h219 int rtc_enable_32khz_output(int busnum, int chip_addr);
A Di2c.h520 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len,
/u-boot/drivers/w1/
A Dw1-uclass.c108 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 Daxi.c56 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 Dpci.c300 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 Di2c.c136 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 Di2c-uclass.c348 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 Dfsl_i2c.c265 slaveadd, int i2c_clk, int busnum) in __i2c_init() argument
291 busnum); in __i2c_init()
/u-boot/drivers/rtc/
A Dds3231.c258 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 Dcm_fx6.c256 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 Dmax3420_udc.c824 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()

Completed in 53 milliseconds

12