Lines Matching refs:nr_addrs
229 static int aspeed_kcs_set_address(struct kcs_bmc_device *kcs_bmc, u32 addrs[2], int nr_addrs) in aspeed_kcs_set_address() argument
233 if (WARN_ON(nr_addrs < 1 || nr_addrs > 2)) in aspeed_kcs_set_address()
241 if (nr_addrs == 2) { in aspeed_kcs_set_address()
254 if (nr_addrs == 2) { in aspeed_kcs_set_address()
264 if (nr_addrs == 2) { in aspeed_kcs_set_address()
275 if (nr_addrs == 1) in aspeed_kcs_set_address()
564 int nr_addrs; in aspeed_kcs_probe() local
579 nr_addrs = aspeed_kcs_of_get_io_address(pdev, addrs); in aspeed_kcs_probe()
580 if (nr_addrs < 0) in aspeed_kcs_probe()
581 return nr_addrs; in aspeed_kcs_probe()
610 rc = aspeed_kcs_set_address(kcs_bmc, addrs, nr_addrs); in aspeed_kcs_probe()