Lines Matching refs:bi
521 struct spi_board_info *bi) in spi_match_master_to_boardinfo() argument
525 if (master->bus_num != bi->bus_num) in spi_match_master_to_boardinfo()
528 dev = spi_new_device(master, bi); in spi_match_master_to_boardinfo()
531 bi->modalias); in spi_match_master_to_boardinfo()
555 struct boardinfo *bi; in spi_register_board_info() local
561 bi = kzalloc(n * sizeof(*bi), GFP_KERNEL); in spi_register_board_info()
562 if (!bi) in spi_register_board_info()
565 for (i = 0; i < n; i++, bi++, info++) { in spi_register_board_info()
568 memcpy(&bi->board_info, info, sizeof(*info)); in spi_register_board_info()
570 list_add_tail(&bi->list, &board_list); in spi_register_board_info()
572 spi_match_master_to_boardinfo(master, &bi->board_info); in spi_register_board_info()
1570 struct boardinfo *bi; in spi_register_master() local
1629 list_for_each_entry(bi, &board_list, list) in spi_register_master()
1630 spi_match_master_to_boardinfo(master, &bi->board_info); in spi_register_master()