Lines Matching refs:n_ports
191 int n_ports; member
213 static int rp2_alloc_ports(int n_ports) in rp2_alloc_ports() argument
218 if (rp2_minor_next + n_ports <= CONFIG_SERIAL_RP2_NR_UARTS) { in rp2_alloc_ports()
221 rp2_minor_next += n_ports; in rp2_alloc_ports()
501 if (card->n_ports >= PORTS_PER_ASIC) in rp2_uart_interrupt()
620 if (card->n_ports >= PORTS_PER_ASIC) in rp2_init_card()
670 for (i = 0; i < card->n_ports; i++) { in rp2_load_firmware()
743 rp2_decode_cap(id, &card->n_ports, &card->smpte); in rp2_probe()
744 dev_info(&pdev->dev, "found new card with %d ports\n", card->n_ports); in rp2_probe()
746 card->minor_start = rp2_alloc_ports(card->n_ports); in rp2_probe()
755 ports = devm_kcalloc(&pdev->dev, card->n_ports, sizeof(*ports), in rp2_probe()