Searched refs:dpd (Results 1 - 7 of 7) sorted by relevance
/linux-4.4.14/drivers/net/wireless/ath/ |
H A D | dfs_pattern_detector.c | 167 static void channel_detector_reset(struct dfs_pattern_detector *dpd, channel_detector_reset() argument 173 for (i = 0; i < dpd->num_radar_types; i++) channel_detector_reset() 174 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); channel_detector_reset() 178 static void channel_detector_exit(struct dfs_pattern_detector *dpd, channel_detector_exit() argument 185 for (i = 0; i < dpd->num_radar_types; i++) { channel_detector_exit() 195 channel_detector_create(struct dfs_pattern_detector *dpd, u16 freq) channel_detector_create() argument 206 sz = sizeof(cd->detectors) * dpd->num_radar_types; channel_detector_create() 211 for (i = 0; i < dpd->num_radar_types; i++) { channel_detector_create() 212 const struct radar_detector_specs *rs = &dpd->radar_spec[i]; channel_detector_create() 218 list_add(&cd->head, &dpd->channel_detectors); channel_detector_create() 222 ath_dbg(dpd->common, DFS, channel_detector_create() 224 channel_detector_exit(dpd, cd); channel_detector_create() 230 * @param dpd instance pointer 238 channel_detector_get(struct dfs_pattern_detector *dpd, u16 freq) channel_detector_get() argument 241 list_for_each_entry(cd, &dpd->channel_detectors, head) { channel_detector_get() 245 return channel_detector_create(dpd, freq); channel_detector_get() 253 static void dpd_reset(struct dfs_pattern_detector *dpd) dpd_reset() argument 256 if (!list_empty(&dpd->channel_detectors)) dpd_reset() 257 list_for_each_entry(cd, &dpd->channel_detectors, head) dpd_reset() 258 channel_detector_reset(dpd, cd); dpd_reset() 261 static void dpd_exit(struct dfs_pattern_detector *dpd) dpd_exit() argument 264 if (!list_empty(&dpd->channel_detectors)) dpd_exit() 265 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) dpd_exit() 266 channel_detector_exit(dpd, cd); dpd_exit() 267 kfree(dpd); dpd_exit() 271 dpd_add_pulse(struct dfs_pattern_detector *dpd, struct pulse_event *event) dpd_add_pulse() argument 280 if (dpd->region == NL80211_DFS_UNSET) dpd_add_pulse() 283 cd = channel_detector_get(dpd, event->freq); dpd_add_pulse() 288 if (event->ts < dpd->last_pulse_ts) dpd_add_pulse() 289 dpd_reset(dpd); dpd_add_pulse() 290 dpd->last_pulse_ts = event->ts; dpd_add_pulse() 293 for (i = 0; i < dpd->num_radar_types; i++) { dpd_add_pulse() 297 ath_dbg(dpd->common, DFS, dpd_add_pulse() 302 pd->reset(pd, dpd->last_pulse_ts); dpd_add_pulse() 310 dpd_get_stats(struct dfs_pattern_detector *dpd) dpd_get_stats() argument 315 static bool dpd_set_domain(struct dfs_pattern_detector *dpd, dpd_set_domain() argument 321 if (dpd->region == region) dpd_set_domain() 324 dpd->region = NL80211_DFS_UNSET; dpd_set_domain() 331 if (!list_empty(&dpd->channel_detectors)) dpd_set_domain() 332 list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) dpd_set_domain() 333 channel_detector_exit(dpd, cd); dpd_set_domain() 334 dpd->radar_spec = rt->radar_types; dpd_set_domain() 335 dpd->num_radar_types = rt->num_radar_types; dpd_set_domain() 337 dpd->region = region; dpd_set_domain() 353 struct dfs_pattern_detector *dpd; dfs_pattern_detector_init() local 358 dpd = kmalloc(sizeof(*dpd), GFP_KERNEL); dfs_pattern_detector_init() 359 if (dpd == NULL) dfs_pattern_detector_init() 362 *dpd = default_dpd; dfs_pattern_detector_init() 363 INIT_LIST_HEAD(&dpd->channel_detectors); dfs_pattern_detector_init() 365 dpd->common = common; dfs_pattern_detector_init() 366 if (dpd->set_dfs_domain(dpd, region)) dfs_pattern_detector_init() 367 return dpd; dfs_pattern_detector_init() 370 kfree(dpd); dfs_pattern_detector_init()
|
H A D | dfs_pattern_detector.h | 96 void (*exit)(struct dfs_pattern_detector *dpd); 97 bool (*set_dfs_domain)(struct dfs_pattern_detector *dpd, 99 bool (*add_pulse)(struct dfs_pattern_detector *dpd, 102 struct ath_dfs_pool_stats (*get_stats)(struct dfs_pattern_detector *dpd);
|
/linux-4.4.14/arch/mips/bcm63xx/ |
H A D | dev-enet.c | 206 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 D | dev-dsp.c | 41 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.4.14/drivers/gpu/drm/i915/ |
H A D | intel_i2c.c | 49 [GMBUS_PIN_DPD] = { "dpd", GPIOF }, 56 [GMBUS_PIN_DPD] = { "dpd", GPIOF }, 62 [GMBUS_PIN_DPD] = { "dpd", GPIOF },
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
H A D | intel_gmbus.c | 394 "dpd", gma_intel_setup_gmbus()
|
/linux-4.4.14/drivers/memory/tegra/ |
H A D | tegra124-emc.c | 930 EMC_READ_PROP(emc_sel_dpd_ctrl, "nvidia,emc-sel-dpd-ctrl") load_one_timing_from_dt()
|
Completed in 251 milliseconds