Lines Matching refs:p2p
287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq() argument
292 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, in p2p_supported_freq()
297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_go() argument
302 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, in p2p_supported_freq_go()
304 !freq_range_list_includes(&p2p->no_go_freq, freq); in p2p_supported_freq_go()
308 int p2p_supported_freq_cli(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_cli() argument
313 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class, in p2p_supported_freq_cli()
315 p2p_channels_includes(&p2p->cfg->cli_channels, op_reg_class, in p2p_supported_freq_cli()
320 unsigned int p2p_get_pref_freq(struct p2p_data *p2p, in p2p_get_pref_freq() argument
326 channels : &p2p->cfg->channels; in p2p_get_pref_freq()
331 for (i = 0; p2p->cfg->pref_chan && i < p2p->cfg->num_pref_chan; i++) { in p2p_get_pref_freq()
332 freq = p2p_channel_to_freq(p2p->cfg->pref_chan[i].op_class, in p2p_get_pref_freq()
333 p2p->cfg->pref_chan[i].chan); in p2p_get_pref_freq()
341 void p2p_channels_dump(struct p2p_data *p2p, const char *title, in p2p_channels_dump() argument
370 p2p_dbg(p2p, "%s:%s", title, buf); in p2p_channels_dump()