Lines Matching full:cd

169 				   struct channel_detector *cd)  in channel_detector_reset()  argument
172 if (cd == NULL) in channel_detector_reset()
175 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); in channel_detector_reset()
180 struct channel_detector *cd) in channel_detector_exit() argument
183 if (cd == NULL) in channel_detector_exit()
185 list_del(&cd->head); in channel_detector_exit()
187 struct pri_detector *de = cd->detectors[i]; in channel_detector_exit()
191 kfree(cd->detectors); in channel_detector_exit()
192 kfree(cd); in channel_detector_exit()
199 struct channel_detector *cd; in channel_detector_create() local
201 cd = kmalloc(sizeof(*cd), GFP_ATOMIC); in channel_detector_create()
202 if (cd == NULL) in channel_detector_create()
205 INIT_LIST_HEAD(&cd->head); in channel_detector_create()
206 cd->freq = freq; in channel_detector_create()
207 sz = sizeof(cd->detectors) * dpd->num_radar_types; in channel_detector_create()
208 cd->detectors = kzalloc(sz, GFP_ATOMIC); in channel_detector_create()
209 if (cd->detectors == NULL) in channel_detector_create()
217 cd->detectors[i] = de; in channel_detector_create()
219 list_add(&cd->head, &dpd->channel_detectors); in channel_detector_create()
220 return cd; in channel_detector_create()
225 channel_detector_exit(dpd, cd); in channel_detector_create()
242 struct channel_detector *cd; in channel_detector_get() local
243 list_for_each_entry(cd, &dpd->channel_detectors, head) { in channel_detector_get()
244 if (cd->freq == freq) in channel_detector_get()
245 return cd; in channel_detector_get()
257 struct channel_detector *cd; in dpd_reset() local
258 list_for_each_entry(cd, &dpd->channel_detectors, head) in dpd_reset()
259 channel_detector_reset(dpd, cd); in dpd_reset()
264 struct channel_detector *cd, *cd0; in dpd_exit() local
265 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) in dpd_exit()
266 channel_detector_exit(dpd, cd); in dpd_exit()
275 struct channel_detector *cd; in dpd_add_pulse() local
284 cd = channel_detector_get(dpd, event->freq); in dpd_add_pulse()
285 if (cd == NULL) in dpd_add_pulse()
295 struct pri_detector *pd = cd->detectors[i]; in dpd_add_pulse()
322 struct channel_detector *cd, *cd0; in dpd_set_domain() local
334 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) in dpd_set_domain()
335 channel_detector_exit(dpd, cd); in dpd_set_domain()