Lines Matching refs:busnum
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()
381 dev_err(bus, "Invalid chip select %d:%d (err=%d)\n", busnum, cs, ret); in spi_get_bus_and_cs()
426 struct spi_slave *spi_setup_slave(unsigned int busnum, unsigned int cs, in spi_setup_slave() argument
433 ret = spi_get_bus_and_cs(busnum, cs, speed, mode, NULL, 0, &dev, in spi_setup_slave()