Searched refs:dpd (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/drivers/net/wireless/ath/
H A Ddfs_pattern_detector.c157 static void channel_detector_reset(struct dfs_pattern_detector *dpd, channel_detector_reset() argument
163 for (i = 0; i < dpd->num_radar_types; i++) channel_detector_reset()
164 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); channel_detector_reset()
168 static void channel_detector_exit(struct dfs_pattern_detector *dpd, channel_detector_exit() argument
175 for (i = 0; i < dpd->num_radar_types; i++) { channel_detector_exit()
185 channel_detector_create(struct dfs_pattern_detector *dpd, u16 freq) channel_detector_create() argument
196 sz = sizeof(cd->detectors) * dpd->num_radar_types; channel_detector_create()
201 for (i = 0; i < dpd->num_radar_types; i++) { channel_detector_create()
202 const struct radar_detector_specs *rs = &dpd->radar_spec[i]; channel_detector_create()
208 list_add(&cd->head, &dpd->channel_detectors); channel_detector_create()
212 ath_dbg(dpd->common, DFS, channel_detector_create()
214 channel_detector_exit(dpd, cd); channel_detector_create()
220 * @param dpd instance pointer
228 channel_detector_get(struct dfs_pattern_detector *dpd, u16 freq) channel_detector_get() argument
231 list_for_each_entry(cd, &dpd->channel_detectors, head) { channel_detector_get()
235 return channel_detector_create(dpd, freq); channel_detector_get()
243 static void dpd_reset(struct dfs_pattern_detector *dpd) dpd_reset() argument
246 if (!list_empty(&dpd->channel_detectors)) dpd_reset()
247 list_for_each_entry(cd, &dpd->channel_detectors, head) dpd_reset()
248 channel_detector_reset(dpd, cd); dpd_reset()
251 static void dpd_exit(struct dfs_pattern_detector *dpd) dpd_exit() argument
254 if (!list_empty(&dpd->channel_detectors)) dpd_exit()
255 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) dpd_exit()
256 channel_detector_exit(dpd, cd); dpd_exit()
257 kfree(dpd); dpd_exit()
261 dpd_add_pulse(struct dfs_pattern_detector *dpd, struct pulse_event *event) dpd_add_pulse() argument
270 if (dpd->region == NL80211_DFS_UNSET) dpd_add_pulse()
273 cd = channel_detector_get(dpd, event->freq); dpd_add_pulse()
277 dpd->last_pulse_ts = event->ts; dpd_add_pulse()
279 if (event->ts < dpd->last_pulse_ts) dpd_add_pulse()
280 dpd_reset(dpd); dpd_add_pulse()
283 for (i = 0; i < dpd->num_radar_types; i++) { dpd_add_pulse()
287 ath_dbg(dpd->common, DFS, dpd_add_pulse()
292 pd->reset(pd, dpd->last_pulse_ts); dpd_add_pulse()
300 dpd_get_stats(struct dfs_pattern_detector *dpd) dpd_get_stats() argument
305 static bool dpd_set_domain(struct dfs_pattern_detector *dpd, dpd_set_domain() argument
311 if (dpd->region == region) dpd_set_domain()
314 dpd->region = NL80211_DFS_UNSET; dpd_set_domain()
321 if (!list_empty(&dpd->channel_detectors)) dpd_set_domain()
322 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) dpd_set_domain()
323 channel_detector_exit(dpd, cd); dpd_set_domain()
324 dpd->radar_spec = rt->radar_types; dpd_set_domain()
325 dpd->num_radar_types = rt->num_radar_types; dpd_set_domain()
327 dpd->region = region; dpd_set_domain()
343 struct dfs_pattern_detector *dpd; dfs_pattern_detector_init() local
348 dpd = kmalloc(sizeof(*dpd), GFP_KERNEL); dfs_pattern_detector_init()
349 if (dpd == NULL) dfs_pattern_detector_init()
352 *dpd = default_dpd; dfs_pattern_detector_init()
353 INIT_LIST_HEAD(&dpd->channel_detectors); dfs_pattern_detector_init()
355 dpd->common = common; dfs_pattern_detector_init()
356 if (dpd->set_dfs_domain(dpd, region)) dfs_pattern_detector_init()
357 return dpd; dfs_pattern_detector_init()
360 kfree(dpd); dfs_pattern_detector_init()
H A Ddfs_pattern_detector.h87 void (*exit)(struct dfs_pattern_detector *dpd);
88 bool (*set_dfs_domain)(struct dfs_pattern_detector *dpd,
90 bool (*add_pulse)(struct dfs_pattern_detector *dpd,
93 struct ath_dfs_pool_stats (*get_stats)(struct dfs_pattern_detector *dpd);
/linux-4.1.27/arch/mips/bcm63xx/
H A Ddev-enet.c206 struct bcm63xx_enet_platform_data *dpd; bcm63xx_enet_register() local
238 dpd = pdev->dev.platform_data; bcm63xx_enet_register()
239 memcpy(dpd, pd, sizeof(*pd)); bcm63xx_enet_register()
242 if (dpd->use_internal_phy) { bcm63xx_enet_register()
248 dpd->phy_id = 1; bcm63xx_enet_register()
249 dpd->has_phy_interrupt = 1; bcm63xx_enet_register()
250 dpd->phy_interrupt = bcm63xx_get_irq_number(IRQ_ENET_PHY); bcm63xx_enet_register()
253 dpd->dma_chan_en_mask = ENETDMAC_CHANCFG_EN_MASK; bcm63xx_enet_register()
254 dpd->dma_chan_int_mask = ENETDMAC_IR_PKTDONE_MASK; bcm63xx_enet_register()
256 dpd->dma_chan_en_mask |= ENETDMAC_CHANCFG_CHAINING_MASK; bcm63xx_enet_register()
257 dpd->dma_chan_en_mask |= ENETDMAC_CHANCFG_WRAP_EN_MASK; bcm63xx_enet_register()
258 dpd->dma_chan_en_mask |= ENETDMAC_CHANCFG_FLOWC_EN_MASK; bcm63xx_enet_register()
259 dpd->dma_chan_int_mask |= ENETDMA_IR_BUFDONE_MASK; bcm63xx_enet_register()
260 dpd->dma_chan_int_mask |= ENETDMA_IR_NOTOWNER_MASK; bcm63xx_enet_register()
261 dpd->dma_chan_width = ENETDMA_6345_CHAN_WIDTH; bcm63xx_enet_register()
262 dpd->dma_desc_shift = ENETDMA_6345_DESC_SHIFT; bcm63xx_enet_register()
264 dpd->dma_has_sram = true; bcm63xx_enet_register()
265 dpd->dma_chan_width = ENETDMA_CHAN_WIDTH; bcm63xx_enet_register()
H A Ddev-dsp.c41 struct bcm63xx_dsp_platform_data *dpd; bcm63xx_dsp_register() local
52 dpd = bcm63xx_voip_dsp_device.dev.platform_data; bcm63xx_dsp_register()
53 memcpy(dpd, pd, sizeof (*pd)); bcm63xx_dsp_register()
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dintel_gmbus.c394 "dpd", gma_intel_setup_gmbus()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_i2c.c48 { "dpd", GPIOF },

Completed in 134 milliseconds