Lines Matching refs:n_ports
194 int n_ports; member
217 static int rp2_alloc_ports(int n_ports) in rp2_alloc_ports() argument
222 if (rp2_minor_next + n_ports <= CONFIG_SERIAL_RP2_NR_UARTS) { in rp2_alloc_ports()
225 rp2_minor_next += n_ports; in rp2_alloc_ports()
508 if (card->n_ports >= PORTS_PER_ASIC) in rp2_uart_interrupt()
627 if (card->n_ports >= PORTS_PER_ASIC) in rp2_init_card()
684 for (i = 0; i < card->n_ports; i++) { in rp2_fw_cb()
768 rp2_decode_cap(id, &card->n_ports, &card->smpte); in rp2_probe()
769 dev_info(&pdev->dev, "found new card with %d ports\n", card->n_ports); in rp2_probe()
771 card->minor_start = rp2_alloc_ports(card->n_ports); in rp2_probe()
780 ports = devm_kzalloc(&pdev->dev, sizeof(*ports) * card->n_ports, in rp2_probe()