Lines Matching refs:j
127 int j; in softing_netdev_start_xmit() local
128 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_netdev_start_xmit()
129 if (card->net[j]) in softing_netdev_start_xmit()
130 netif_stop_queue(card->net[j]); in softing_netdev_start_xmit()
176 int j; in softing_handle_1() local
187 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_handle_1()
188 netdev = card->net[j]; in softing_handle_1()
334 int j, offset, work_done; in softing_irq_thread() local
345 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_irq_thread()
348 netdev = card->net[(j + offset + 1) % card->pdat->nbus]; in softing_irq_thread()
482 int ret, j; in softing_card_boot() local
500 for (j = 0; (j + sizeof(stream)) < card->dpram_size; in softing_card_boot()
501 j += sizeof(stream)) { in softing_card_boot()
503 memcpy_toio(&card->dpram[j], stream, sizeof(stream)); in softing_card_boot()
506 memcpy_fromio(back, &card->dpram[j], sizeof(stream)); in softing_card_boot()
511 dev_alert(&card->pdev->dev, "dpram failed at 0x%04x\n", j); in softing_card_boot()
739 int j; in softing_pdev_remove() local
744 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_pdev_remove()
745 if (!card->net[j]) in softing_pdev_remove()
747 softing_netdev_cleanup(card->net[j]); in softing_pdev_remove()
748 card->net[j] = NULL; in softing_pdev_remove()
765 int j; in softing_pdev_probe() local
817 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_pdev_probe()
818 card->net[j] = netdev = in softing_pdev_probe()
819 softing_netdev_create(card, card->id.chip[j]); in softing_pdev_probe()
821 dev_alert(&pdev->dev, "failed to make can[%i]", j); in softing_pdev_probe()
825 netdev->dev_id = j; in softing_pdev_probe()
826 priv = netdev_priv(card->net[j]); in softing_pdev_probe()
827 priv->index = j; in softing_pdev_probe()
831 card->net[j] = NULL; in softing_pdev_probe()
833 "failed to register can[%i]\n", j); in softing_pdev_probe()
841 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_pdev_probe()
842 if (!card->net[j]) in softing_pdev_probe()
844 softing_netdev_cleanup(card->net[j]); in softing_pdev_probe()