Lines Matching refs:bus_num
825 if (ctlr->bus_num != bi->bus_num) in spi_match_controller_to_boardinfo()
2900 ctlr->bus_num = -1; in __spi_alloc_controller()
3095 if (ctlr->bus_num >= 0) { in spi_register_controller()
3098 id = idr_alloc(&spi_master_idr, ctlr, ctlr->bus_num, in spi_register_controller()
3099 ctlr->bus_num + 1, GFP_KERNEL); in spi_register_controller()
3103 ctlr->bus_num = id; in spi_register_controller()
3108 ctlr->bus_num = id; in spi_register_controller()
3110 id = idr_alloc(&spi_master_idr, ctlr, ctlr->bus_num, in spi_register_controller()
3111 ctlr->bus_num + 1, GFP_KERNEL); in spi_register_controller()
3117 if (ctlr->bus_num < 0) { in spi_register_controller()
3130 ctlr->bus_num = id; in spi_register_controller()
3142 dev_set_name(&ctlr->dev, "spi%u", ctlr->bus_num); in spi_register_controller()
3211 idr_remove(&spi_master_idr, ctlr->bus_num); in spi_register_controller()
3278 int id = ctlr->bus_num; in spi_unregister_controller()