Lines Matching refs: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()
188 struct pri_detector *de = cd->detectors[i]; in channel_detector_exit()
193 kfree(cd); in channel_detector_exit()
200 struct channel_detector *cd; in channel_detector_create() local
202 cd = kzalloc(struct_size(cd, detectors, dpd->num_radar_types), GFP_ATOMIC); in channel_detector_create()
203 if (cd == NULL) in channel_detector_create()
206 INIT_LIST_HEAD(&cd->head); in channel_detector_create()
207 cd->freq = freq; in channel_detector_create()
214 cd->detectors[i] = de; in channel_detector_create()
216 list_add(&cd->head, &dpd->channel_detectors); in channel_detector_create()
217 return cd; in channel_detector_create()
222 channel_detector_exit(dpd, cd); in channel_detector_create()
239 struct channel_detector *cd; in channel_detector_get() local
240 list_for_each_entry(cd, &dpd->channel_detectors, head) { in channel_detector_get()
241 if (cd->freq == freq) in channel_detector_get()
242 return cd; in channel_detector_get()
254 struct channel_detector *cd; in dpd_reset() local
255 list_for_each_entry(cd, &dpd->channel_detectors, head) in dpd_reset()
256 channel_detector_reset(dpd, cd); in dpd_reset()
261 struct channel_detector *cd, *cd0; in dpd_exit() local
262 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) in dpd_exit()
263 channel_detector_exit(dpd, cd); in dpd_exit()
272 struct channel_detector *cd; in dpd_add_pulse() local
281 cd = channel_detector_get(dpd, event->freq); in dpd_add_pulse()
282 if (cd == NULL) in dpd_add_pulse()
292 struct pri_detector *pd = cd->detectors[i]; in dpd_add_pulse()
319 struct channel_detector *cd, *cd0; in dpd_set_domain() local
331 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) in dpd_set_domain()
332 channel_detector_exit(dpd, cd); in dpd_set_domain()