Lines Matching refs:desc
29 struct mii_timestamping_desc *desc; in register_mii_tstamp_controller() local
31 desc = kzalloc(sizeof(*desc), GFP_KERNEL); in register_mii_tstamp_controller()
32 if (!desc) in register_mii_tstamp_controller()
35 INIT_LIST_HEAD(&desc->list); in register_mii_tstamp_controller()
36 desc->ctrl = ctrl; in register_mii_tstamp_controller()
37 desc->device = device; in register_mii_tstamp_controller()
40 list_add_tail(&mii_timestamping_devices, &desc->list); in register_mii_tstamp_controller()
54 struct mii_timestamping_desc *desc; in unregister_mii_tstamp_controller() local
59 desc = list_entry(this, struct mii_timestamping_desc, list); in unregister_mii_tstamp_controller()
60 if (desc->device == device) { in unregister_mii_tstamp_controller()
61 list_del_init(&desc->list); in unregister_mii_tstamp_controller()
62 kfree(desc); in unregister_mii_tstamp_controller()
82 struct mii_timestamping_desc *desc; in register_mii_timestamper() local
87 desc = list_entry(this, struct mii_timestamping_desc, list); in register_mii_timestamper()
88 if (desc->device->of_node == node) { in register_mii_timestamper()
89 mii_ts = desc->ctrl->probe_channel(desc->device, port); in register_mii_timestamper()
91 mii_ts->device = desc->device; in register_mii_timestamper()
92 get_device(desc->device); in register_mii_timestamper()
111 struct mii_timestamping_desc *desc; in unregister_mii_timestamper() local
126 desc = list_entry(this, struct mii_timestamping_desc, list); in unregister_mii_timestamper()
127 if (desc->device == mii_ts->device) { in unregister_mii_timestamper()
128 desc->ctrl->release_channel(desc->device, mii_ts); in unregister_mii_timestamper()
129 put_device(desc->device); in unregister_mii_timestamper()