Lines Matching defs:cd
169 struct channel_detector *cd)
172 if (cd == NULL)
175 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts);
180 struct channel_detector *cd)
183 if (cd == NULL)
185 list_del(&cd->head);
188 struct pri_detector *de = cd->detectors[i];
193 kfree(cd);
200 struct channel_detector *cd;
202 cd = kzalloc(struct_size(cd, detectors, dpd->num_radar_types), GFP_ATOMIC);
203 if (cd == NULL)
206 INIT_LIST_HEAD(&cd->head);
207 cd->freq = freq;
214 cd->detectors[i] = de;
216 list_add(&cd->head, &dpd->channel_detectors);
217 return cd;
222 channel_detector_exit(dpd, cd);
239 struct channel_detector *cd;
240 list_for_each_entry(cd, &dpd->channel_detectors, head) {
241 if (cd->freq == freq)
242 return cd;
254 struct channel_detector *cd;
255 list_for_each_entry(cd, &dpd->channel_detectors, head)
256 channel_detector_reset(dpd, cd);
261 struct channel_detector *cd, *cd0;
262 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head)
263 channel_detector_exit(dpd, cd);
272 struct channel_detector *cd;
281 cd = channel_detector_get(dpd, event->freq);
282 if (cd == NULL)
292 struct pri_detector *pd = cd->detectors[i];
319 struct channel_detector *cd, *cd0;
331 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head)
332 channel_detector_exit(dpd, cd);