Lines Matching refs:felix
11 #include "felix.h"
71 struct felix *felix;
74 felix = kzalloc(sizeof(*felix), GFP_KERNEL);
75 if (!felix)
78 dev_set_drvdata(dev, felix);
80 ocelot = &felix->ocelot;
85 felix->info = &vsc7512_info;
95 ds->num_ports = felix->info->num_ports;
96 ds->num_tx_queues = felix->info->num_tx_queues;
100 felix->ds = ds;
101 felix->tag_proto = DSA_TAG_PROTO_OCELOT;
114 kfree(felix);
120 struct felix *felix = dev_get_drvdata(&pdev->dev);
122 if (!felix)
125 dsa_unregister_switch(felix->ds);
127 kfree(felix->ds);
128 kfree(felix);
133 struct felix *felix = dev_get_drvdata(&pdev->dev);
135 if (!felix)
138 dsa_switch_shutdown(felix->ds);