Lines Matching refs:ds
69 struct dsa_switch *ds;
87 ds = kzalloc(sizeof(*ds), GFP_KERNEL);
88 if (!ds) {
94 ds->dev = dev;
95 ds->num_ports = felix->info->num_ports;
96 ds->num_tx_queues = felix->info->num_tx_queues;
98 ds->ops = &felix_switch_ops;
99 ds->priv = ocelot;
100 felix->ds = ds;
103 err = dsa_register_switch(ds);
112 kfree(ds);
125 dsa_unregister_switch(felix->ds);
127 kfree(felix->ds);
138 dsa_switch_shutdown(felix->ds);