• Home
  • Raw
  • Download

Lines Matching refs:dst

78 dsa_switch_setup(struct dsa_switch_tree *dst, int index,  in dsa_switch_setup()  argument
81 struct dsa_chip_data *pd = dst->pd->chip + index; in dsa_switch_setup()
95 dst->master_netdev->name, index); in dsa_switch_setup()
99 dst->master_netdev->name, index, name); in dsa_switch_setup()
109 ds->dst = dst; in dsa_switch_setup()
111 ds->pd = dst->pd->chip + index; in dsa_switch_setup()
127 if (dst->cpu_switch != -1) { in dsa_switch_setup()
132 dst->cpu_switch = index; in dsa_switch_setup()
133 dst->cpu_port = i; in dsa_switch_setup()
152 if (ds->dst->cpu_switch == index) in dsa_switch_setup()
153 ds->dst->tag_protocol = drv->tag_protocol; in dsa_switch_setup()
163 ret = drv->set_addr(ds, dst->master_netdev->dev_addr); in dsa_switch_setup()
192 dst->master_netdev->name, in dsa_switch_setup()
217 struct dsa_switch_tree *dst; in dsa_link_poll_work() local
220 dst = container_of(ugly, struct dsa_switch_tree, link_poll_work); in dsa_link_poll_work()
222 for (i = 0; i < dst->pd->nr_chips; i++) { in dsa_link_poll_work()
223 struct dsa_switch *ds = dst->ds[i]; in dsa_link_poll_work()
229 mod_timer(&dst->link_poll_timer, round_jiffies(jiffies + HZ)); in dsa_link_poll_work()
234 struct dsa_switch_tree *dst = (void *)_dst; in dsa_link_poll_timer() local
236 schedule_work(&dst->link_poll_work); in dsa_link_poll_timer()
492 struct dsa_switch_tree *dst; in dsa_probe() local
522 dst = kzalloc(sizeof(*dst), GFP_KERNEL); in dsa_probe()
523 if (dst == NULL) { in dsa_probe()
529 platform_set_drvdata(pdev, dst); in dsa_probe()
531 dst->pd = pd; in dsa_probe()
532 dst->master_netdev = dev; in dsa_probe()
533 dst->cpu_switch = -1; in dsa_probe()
534 dst->cpu_port = -1; in dsa_probe()
547 ds = dsa_switch_setup(dst, i, &pdev->dev, bus); in dsa_probe()
555 dst->ds[i] = ds; in dsa_probe()
557 dst->link_poll_needed = 1; in dsa_probe()
566 dev->dsa_ptr = (void *)dst; in dsa_probe()
568 if (dst->link_poll_needed) { in dsa_probe()
569 INIT_WORK(&dst->link_poll_work, dsa_link_poll_work); in dsa_probe()
570 init_timer(&dst->link_poll_timer); in dsa_probe()
571 dst->link_poll_timer.data = (unsigned long)dst; in dsa_probe()
572 dst->link_poll_timer.function = dsa_link_poll_timer; in dsa_probe()
573 dst->link_poll_timer.expires = round_jiffies(jiffies + HZ); in dsa_probe()
574 add_timer(&dst->link_poll_timer); in dsa_probe()
587 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); in dsa_remove() local
590 if (dst->link_poll_needed) in dsa_remove()
591 del_timer_sync(&dst->link_poll_timer); in dsa_remove()
593 flush_work(&dst->link_poll_work); in dsa_remove()
595 for (i = 0; i < dst->pd->nr_chips; i++) { in dsa_remove()
596 struct dsa_switch *ds = dst->ds[i]; in dsa_remove()