• Home
  • Raw
  • Download

Lines Matching refs:cd

158 				   struct channel_detector *cd)  in channel_detector_reset()  argument
161 if (cd == NULL) in channel_detector_reset()
164 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); in channel_detector_reset()
169 struct channel_detector *cd) in channel_detector_exit() argument
172 if (cd == NULL) in channel_detector_exit()
174 list_del(&cd->head); in channel_detector_exit()
176 struct pri_detector *de = cd->detectors[i]; in channel_detector_exit()
180 kfree(cd->detectors); in channel_detector_exit()
181 kfree(cd); in channel_detector_exit()
188 struct channel_detector *cd; in channel_detector_create() local
190 cd = kmalloc(sizeof(*cd), GFP_ATOMIC); in channel_detector_create()
191 if (cd == NULL) in channel_detector_create()
194 INIT_LIST_HEAD(&cd->head); in channel_detector_create()
195 cd->freq = freq; in channel_detector_create()
196 sz = sizeof(cd->detectors) * dpd->num_radar_types; in channel_detector_create()
197 cd->detectors = kzalloc(sz, GFP_ATOMIC); in channel_detector_create()
198 if (cd->detectors == NULL) in channel_detector_create()
206 cd->detectors[i] = de; in channel_detector_create()
208 list_add(&cd->head, &dpd->channel_detectors); in channel_detector_create()
209 return cd; in channel_detector_create()
214 channel_detector_exit(dpd, cd); in channel_detector_create()
230 struct channel_detector *cd; in channel_detector_get() local
231 list_for_each_entry(cd, &dpd->channel_detectors, head) { in channel_detector_get()
232 if (cd->freq == freq) in channel_detector_get()
233 return cd; in channel_detector_get()
245 struct channel_detector *cd; in dpd_reset() local
247 list_for_each_entry(cd, &dpd->channel_detectors, head) in dpd_reset()
248 channel_detector_reset(dpd, cd); in dpd_reset()
253 struct channel_detector *cd, *cd0; in dpd_exit() local
255 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) in dpd_exit()
256 channel_detector_exit(dpd, cd); in dpd_exit()
264 struct channel_detector *cd; in dpd_add_pulse() local
273 cd = channel_detector_get(dpd, event->freq); in dpd_add_pulse()
274 if (cd == NULL) in dpd_add_pulse()
284 struct pri_detector *pd = cd->detectors[i]; in dpd_add_pulse()
292 channel_detector_reset(dpd, cd); in dpd_add_pulse()
309 struct channel_detector *cd, *cd0; in dpd_set_domain() local
322 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) in dpd_set_domain()
323 channel_detector_exit(dpd, cd); in dpd_set_domain()