Home
last modified time | relevance | path

Searched refs:chan (Results 1 – 25 of 141) sorted by relevance

123456

/external/wpa_supplicant_8/src/ap/
Dacs.c248 static void acs_clean_chan_surveys(struct hostapd_channel_data *chan) in acs_clean_chan_surveys() argument
252 if (dl_list_empty(&chan->survey_list)) in acs_clean_chan_surveys()
255 dl_list_for_each_safe(survey, tmp, &chan->survey_list, in acs_clean_chan_surveys()
266 struct hostapd_channel_data *chan; in acs_cleanup() local
269 chan = &iface->current_mode->channels[i]; in acs_cleanup()
271 if (chan->flag & HOSTAPD_CHAN_SURVEY_LIST_INITIALIZED) in acs_cleanup()
272 acs_clean_chan_surveys(chan); in acs_cleanup()
274 dl_list_init(&chan->survey_list); in acs_cleanup()
275 chan->flag |= HOSTAPD_CHAN_SURVEY_LIST_INITIALIZED; in acs_cleanup()
276 chan->min_nf = 0; in acs_cleanup()
[all …]
Ddfs.c54 static int dfs_channel_available(struct hostapd_channel_data *chan, in dfs_channel_available() argument
62 if (skip_radar && (chan->flag & HOSTAPD_CHAN_RADAR) && in dfs_channel_available()
63 ((chan->flag & HOSTAPD_CHAN_DFS_MASK) != in dfs_channel_available()
67 if (chan->flag & HOSTAPD_CHAN_DISABLED) in dfs_channel_available()
69 if ((chan->flag & HOSTAPD_CHAN_RADAR) && in dfs_channel_available()
70 ((chan->flag & HOSTAPD_CHAN_DFS_MASK) == in dfs_channel_available()
77 static int dfs_is_chan_allowed(struct hostapd_channel_data *chan, int n_chans) in dfs_is_chan_allowed() argument
117 if (chan->chan == allowed[i]) in dfs_is_chan_allowed()
143 struct hostapd_channel_data *first_chan, *chan; in dfs_chan_range_available() local
152 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
[all …]
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.c778 static int ieee80211_chan_to_freq_us(u8 op_class, u8 chan) in ieee80211_chan_to_freq_us() argument
784 if (chan < 1 || chan > 11) in ieee80211_chan_to_freq_us()
786 return 2407 + 5 * chan; in ieee80211_chan_to_freq_us()
793 if (chan < 36 || chan > 64) in ieee80211_chan_to_freq_us()
795 return 5000 + 5 * chan; in ieee80211_chan_to_freq_us()
798 if (chan < 100 || chan > 144) in ieee80211_chan_to_freq_us()
800 return 5000 + 5 * chan; in ieee80211_chan_to_freq_us()
806 if (chan < 149 || chan > 161) in ieee80211_chan_to_freq_us()
808 return 5000 + 5 * chan; in ieee80211_chan_to_freq_us()
810 if (chan < 149 || chan > 165) in ieee80211_chan_to_freq_us()
[all …]
Dhw_features_common.c20 int chan, int *freq) in hw_get_channel_chan() argument
32 if (ch->chan == chan) { in hw_get_channel_chan()
44 int freq, int *chan) in hw_get_channel_freq() argument
48 if (chan) in hw_get_channel_freq()
49 *chan = 0; in hw_get_channel_freq()
57 if (chan) in hw_get_channel_freq()
58 *chan = ch->chan; in hw_get_channel_freq()
67 int hw_get_freq(struct hostapd_hw_modes *mode, int chan) in hw_get_freq() argument
71 hw_get_channel_chan(mode, chan, &freq); in hw_get_freq()
79 int chan; in hw_get_chan() local
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi_info.c63 unsigned chan) in analyse_src() argument
67 unsigned swizzle = tgsi_util_get_src_register_swizzle(src, chan); in analyse_src()
105 unsigned chan; in analyse_tex() local
152 for (chan = 0; chan < 4; ++chan) { in analyse_tex()
153 struct lp_tgsi_channel_info *chan_info = &tex_info->coord[chan]; in analyse_tex()
154 if (readmask & (1 << chan)) { in analyse_tex()
155 analyse_src(ctx, chan_info, &inst->Src[0].Register, chan); in analyse_tex()
187 unsigned chan; in analyse_instruction() local
244 for (chan = 0; chan < 4; ++chan) { in analyse_instruction()
245 if (dst->WriteMask & (1 << chan)) { in analyse_instruction()
[all …]
Dlp_bld_format_soa.c67 unsigned chan; in lp_build_format_swizzle_soa() local
68 for (chan = 0; chan < 4; ++chan) { in lp_build_format_swizzle_soa()
69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; in lp_build_format_swizzle_soa()
70 swizzled_out[chan] = lp_build_swizzle_soa_channel(bld, unswizzled, swizzle); in lp_build_format_swizzle_soa()
110 unsigned chan; in lp_build_unpack_rgba_soa() local
124 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_unpack_rgba_soa()
125 const unsigned width = format_desc->channel[chan].size; in lp_build_unpack_rgba_soa()
131 switch(format_desc->channel[chan].type) { in lp_build_unpack_rgba_soa()
159 if(format_desc->channel[chan].normalized) in lp_build_unpack_rgba_soa()
188 if (format_desc->channel[chan].size < type.width) { in lp_build_unpack_rgba_soa()
[all …]
Dlp_bld_tgsi_action.c94 emit_data->output[emit_data->chan] = LLVMBuildFAdd( in add_emit()
107 emit_data->output[emit_data->chan] = LLVMBuildFPToSI(bld_base->base.gallivm->builder, tmp, in arr_emit()
122 emit_data->output[emit_data->chan] = lp_build_emit_llvm_binary(bld_base, in clamp_emit()
134 unsigned chan, src; in dp_fetch_args() local
136 for (chan = 0; chan < dp_components; chan++) { in dp_fetch_args()
137 emit_data->args[(src * dp_components) + chan] = in dp_fetch_args()
138 lp_build_emit_fetch(bld_base, emit_data->inst, src, chan); in dp_fetch_args()
166 emit_data->output[emit_data->chan] = lp_build_emit_llvm_binary(bld_base, in dp2_emit()
194 emit_data->output[emit_data->chan] = lp_build_emit_llvm_binary(bld_base, TGSI_OPCODE_ADD, in dp2a_emit()
229 emit_data->output[emit_data->chan] = lp_build_emit_llvm_binary(bld_base, in dp3_emit()
[all …]
Dlp_bld_sample_soa.c182 int chan; in lp_build_sample_texel_soa() local
183 for (chan = 0; chan < 4; chan++) { in lp_build_sample_texel_soa()
186 lp_build_const_int32(bld->gallivm, chan)); in lp_build_sample_texel_soa()
189 texel_out[chan] = lp_build_select(&bld->texel_bld, use_border, in lp_build_sample_texel_soa()
190 border_chan_vec, texel_out[chan]); in lp_build_sample_texel_soa()
695 int chan; in lp_build_sample_image_linear() local
768 for (chan = 0; chan < 4; chan++) { in lp_build_sample_image_linear()
769 colors_out[chan] = lp_build_lerp(&bld->texel_bld, s_fpart, in lp_build_sample_image_linear()
770 neighbors[0][0][chan], in lp_build_sample_image_linear()
771 neighbors[0][1][chan]); in lp_build_sample_image_linear()
[all …]
Dlp_bld_swizzle.c359 unsigned chan; in lp_build_swizzle_aos() local
365 for (chan = 0; chan < 4; ++chan) { in lp_build_swizzle_aos()
366 if (swizzles[chan] == PIPE_SWIZZLE_ONE) { in lp_build_swizzle_aos()
367 cond |= 1 << chan; in lp_build_swizzle_aos()
393 for (chan = 0; chan < 4; ++chan) { in lp_build_swizzle_aos()
395 if (swizzles[chan] < 4 && in lp_build_swizzle_aos()
396 chan - swizzles[chan] == shift) { in lp_build_swizzle_aos()
397 mask |= ((1ULL << type.width) - 1) << (swizzles[chan] * type.width); in lp_build_swizzle_aos()
475 unsigned chan; in lp_build_swizzle_soa() local
477 for (chan = 0; chan < 4; ++chan) { in lp_build_swizzle_soa()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_llvm.c41 unsigned chan; in llvm_load_system_value() local
44 case TGSI_SEMANTIC_INSTANCEID: chan = 3; break; in llvm_load_system_value()
45 case TGSI_SEMANTIC_VERTEXID: chan = 0; break; in llvm_load_system_value()
50 ctx->soa.bld_base.base.gallivm, chan); in llvm_load_system_value()
74 unsigned chan; in llvm_load_input() local
76 for (chan = 0; chan < 4; chan++) { in llvm_load_input()
78 chan); in llvm_load_input()
100 unsigned chan; in llvm_emit_prologue() local
101 for (chan = 0; chan < TGSI_NUM_CHANNELS; chan++) { in llvm_emit_prologue()
104 radeon_llvm_reg_index_soa(i, chan)); in llvm_emit_prologue()
[all …]
Dr600_shader.c280 alu->src[src_idx].chan = bytes[bytes_read++]; in r600_src_from_byte_stream()
305 alu.dst.chan = bytes[bytes_read++]; in r600_alu_from_byte_stream()
329 alu.src[1].chan = 0; in r600_alu_from_byte_stream()
635 alu.dst.chan = i % 4; in evergreen_interp_alu()
638 alu.src[0].chan = (base_chan - (i % 2)); in evergreen_interp_alu()
665 alu.dst.chan = i; in evergreen_interp_flat()
668 alu.src[0].chan = i; in evergreen_interp_flat()
776 alu.dst.chan = i; in select_twoside_color()
777 alu.src[1].chan = i; in select_twoside_color()
778 alu.src[2].chan = i; in select_twoside_color()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_dataflow_swizzles.c42 for(unsigned int chan = 0; chan < 4; ++chan) { in rewrite_source() local
43 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source()
44 usemask |= 1 << chan; in rewrite_source()
62 for(unsigned int chan = 0; chan < 4; ++chan) { in rewrite_source() local
63 if (!GET_BIT(split.Phase[phase], chan)) in rewrite_source()
64 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED); in rewrite_source()
66 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source()
84 for(unsigned int chan = 0; chan < 4; ++chan) { in rewrite_source() local
85 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan, in rewrite_source()
86 GET_BIT(usemask, chan) ? chan : RC_SWIZZLE_UNUSED); in rewrite_source()
Dradeon_compiler_util.c119 for (unsigned chan = 0; chan < 4; ++chan) { in swizzle_mask() local
120 unsigned swz = GET_SWZ(swizzle, chan); in swizzle_mask()
122 ret |= GET_BIT(mask, swz) << chan; in swizzle_mask()
265 unsigned int chan; in rc_rewrite_swizzle() local
268 for (chan = 0; chan < 4; chan++) { in rc_rewrite_swizzle()
269 unsigned int swz = GET_SWZ(swizzle, chan); in rc_rewrite_swizzle()
272 SET_SWZ(out_swizzle, chan, swz); in rc_rewrite_swizzle()
276 SET_SWZ(out_swizzle, chan, new_swz); in rc_rewrite_swizzle()
278 SET_SWZ(out_swizzle, chan, swz); in rc_rewrite_swizzle()
332 unsigned int chan; in rc_source_type_swz() local
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mashups/
Dinteractive.py32 def interactive_shell(chan): argument
34 posix_shell(chan)
36 windows_shell(chan)
39 def posix_shell(chan): argument
46 chan.settimeout(0.0)
49 r, w, e = select.select([chan, sys.stdin], [], [])
50 if chan in r:
52 x = chan.recv(1024)
64 chan.send(x)
71 def windows_shell(chan): argument
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.c515 check_inf_or_nan(const union tgsi_exec_channel *chan) in check_inf_or_nan() argument
517 assert(!util_is_inf_or_nan((chan)->f[0])); in check_inf_or_nan()
518 assert(!util_is_inf_or_nan((chan)->f[1])); in check_inf_or_nan()
519 assert(!util_is_inf_or_nan((chan)->f[2])); in check_inf_or_nan()
520 assert(!util_is_inf_or_nan((chan)->f[3])); in check_inf_or_nan()
526 print_chan(const char *msg, const union tgsi_exec_channel *chan) in print_chan() argument
529 msg, chan->f[0], chan->f[1], chan->f[2], chan->f[3]); in print_chan()
583 uint i, chan; in tgsi_check_soa_dependencies() local
605 for (chan = 0; chan < TGSI_NUM_CHANNELS; chan++) { in tgsi_check_soa_dependencies()
606 if (inst->Dst[0].Register.WriteMask & (1 << chan)) { in tgsi_check_soa_dependencies()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_interp.c118 attrib_name(LLVMValueRef val, unsigned attrib, unsigned chan, const char *suffix) in attrib_name() argument
121 lp_build_name(val, "pos.%c%s", "xyzw"[chan], suffix); in attrib_name()
123 lp_build_name(val, "input%u.%c%s", attrib - 1, "xyzw"[chan], suffix); in attrib_name()
275 unsigned chan; in attribs_update_simple() local
277 for (chan = 0; chan < TGSI_NUM_CHANNELS; chan++) { in attribs_update_simple()
278 if (mask & (1 << chan)) { in attribs_update_simple()
284 index = lp_build_const_int32(gallivm, chan); in attribs_update_simple()
290 if (attrib == 0 && chan == 0) { in attribs_update_simple()
293 else if (attrib == 0 && chan == 1) { in attribs_update_simple()
335 a = bld->attribs[0][chan]; in attribs_update_simple()
[all …]
Dlp_state_fs.c247 unsigned chan; in generate_fs() local
297 for(chan = 0; chan < TGSI_NUM_CHANNELS; ++chan) { in generate_fs()
298 color[cbuf][chan] = lp_build_alloca(gallivm, vec_type, "color"); in generate_fs()
417 for(chan = 0; chan < TGSI_NUM_CHANNELS; ++chan) { in generate_fs()
418 if(outputs[attrib][chan]) { in generate_fs()
422 LLVMValueRef out = LLVMBuildLoad(builder, outputs[attrib][chan], ""); in generate_fs()
423 lp_build_name(out, "color%u.%u.%c", i, attrib, "rgba"[chan]); in generate_fs()
424 LLVMBuildStore(builder, out, color[cbuf][chan]); in generate_fs()
475 unsigned chan; in generate_fs_loop() local
540 for(chan = 0; chan < TGSI_NUM_CHANNELS; ++chan) { in generate_fs_loop()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dmbo.c26 static int wpas_mbo_validate_non_pref_chan(u8 oper_class, u8 chan, u8 reason) in wpas_mbo_validate_non_pref_chan() argument
32 if (ieee80211_chan_to_freq(NULL, oper_class, chan) == -1) in wpas_mbo_validate_non_pref_chan()
66 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[i].chan); in wpas_mbo_non_pref_chan_attr_body()
243 return a->oper_class == b->oper_class && a->chan == b->chan; in wpa_non_pref_chan_is_eq()
294 struct wpa_mbo_non_pref_channel *chan; in wpas_mbo_update_non_pref_chan() local
314 chan = &chans[num]; in wpas_mbo_update_non_pref_chan()
327 chan->oper_class = _oper_class; in wpas_mbo_update_non_pref_chan()
328 chan->chan = _chan; in wpas_mbo_update_non_pref_chan()
329 chan->preference = _preference; in wpas_mbo_update_non_pref_chan()
330 chan->reason = _reason; in wpas_mbo_update_non_pref_chan()
[all …]
/external/speex/libspeex/
Dmdf.c694 int i,j, chan, speak; in speex_echo_cancellation() local
722 for (chan = 0; chan < C; chan++) in speex_echo_cancellation()
725 …filter_dc_notch16(in+chan, st->notch_radius, st->input+chan*st->frame_size, st->frame_size, st->no… in speex_echo_cancellation()
732 …tmp32 = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(MULT16_16_P15(st->preemph, st->… in speex_echo_cancellation()
747 st->memD[chan] = st->input[chan*st->frame_size+i]; in speex_echo_cancellation()
748 st->input[chan*st->frame_size+i] = EXTRACT16(tmp32); in speex_echo_cancellation()
797 for (chan = 0; chan < C; chan++) in speex_echo_cancellation()
801 spectral_mul_accum16(st->X, st->foreground+chan*N*K*M, st->Y+chan*N, N, M*K); in speex_echo_cancellation()
802 spx_ifft(st->fft_table, st->Y+chan*N, st->e+chan*N); in speex_echo_cancellation()
804 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->e[chan*N+i+st->frame_size]); in speex_echo_cancellation()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dradeonsi_shader.c215 unsigned chan; in declare_input_vs() local
244 for (chan = 0; chan < 4; chan++) { in declare_input_vs()
245 LLVMValueRef llvm_chan = lp_build_const_int32(base->gallivm, chan); in declare_input_vs()
248 si_shader_ctx->radeon_bld.inputs[radeon_llvm_reg_index_soa(input_index, chan)] = in declare_input_vs()
260 unsigned chan; in declare_input_fs() local
323 for (chan = 0; chan < TGSI_NUM_CHANNELS; chan++) { in declare_input_fs()
325 LLVMValueRef llvm_chan = lp_build_const_int32(gallivm, chan); in declare_input_fs()
326 unsigned soa_index = radeon_llvm_reg_index_soa(input_index, chan); in declare_input_fs()
391 unsigned chan; in si_llvm_init_export_args() local
404 for (chan = 0; chan < 2; chan++ ) { in si_llvm_init_export_args()
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_capa.c1035 struct hostapd_channel_data *chan, in phy_info_freq() argument
1039 chan->freq = nla_get_u32(tb_freq[NL80211_FREQUENCY_ATTR_FREQ]); in phy_info_freq()
1040 chan->flag = 0; in phy_info_freq()
1041 chan->dfs_cac_ms = 0; in phy_info_freq()
1042 if (ieee80211_freq_to_chan(chan->freq, &channel) != NUM_HOSTAPD_MODES) in phy_info_freq()
1043 chan->chan = channel; in phy_info_freq()
1046 chan->flag |= HOSTAPD_CHAN_DISABLED; in phy_info_freq()
1048 chan->flag |= HOSTAPD_CHAN_NO_IR; in phy_info_freq()
1050 chan->flag |= HOSTAPD_CHAN_RADAR; in phy_info_freq()
1052 chan->flag |= HOSTAPD_CHAN_INDOOR_ONLY; in phy_info_freq()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_setup_tgsi_llvm.c55 unsigned radeon_llvm_reg_index_soa(unsigned index, unsigned chan) in radeon_llvm_reg_index_soa() argument
57 return (index * 4) + chan; in radeon_llvm_reg_index_soa()
141 unsigned chan; in emit_fetch_input() local
142 for (chan = 0; chan < TGSI_NUM_CHANNELS; chan++) { in emit_fetch_input()
143 values[chan] = ctx->inputs[radeon_llvm_reg_index_soa( in emit_fetch_input()
144 reg->Register.Index, chan)]; in emit_fetch_input()
164 unsigned chan; in emit_fetch_temporary() local
165 for (chan = 0; chan < TGSI_NUM_CHANNELS; chan++) { in emit_fetch_temporary()
166 values[chan] = emit_fetch_temporary(bld_base, reg, type, chan); in emit_fetch_temporary()
215 unsigned chan; in emit_declaration() local
[all …]
DR600GenRegisterInfo.pl178 my $chan= get_chan_str($i);
179 my $name = "$prefix$hw_index\_$chan";
180 print qq{def $name : R600Reg <"$prefix$hw_index.$chan">;\n};
194 my $chan = $index % 4;
195 if ($chan == 0 ) {
197 } elsif ($chan == 1) {
199 } elsif ($chan == 2) {
201 } elsif ($chan == 3) {
204 die("Unknown chan value: $chan");
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_fs_exec.c88 uint chan; in setup_pos_vector() local
102 for (chan = 2; chan < 4; chan++) { in setup_pos_vector()
103 const float dadx = coef->dadx[chan]; in setup_pos_vector()
104 const float dady = coef->dady[chan]; in setup_pos_vector()
105 const float a0 = coef->a0[chan] + dadx * x + dady * y; in setup_pos_vector()
106 quadpos->xyzw[chan].f[0] = a0; in setup_pos_vector()
107 quadpos->xyzw[chan].f[1] = a0 + dadx; in setup_pos_vector()
108 quadpos->xyzw[chan].f[2] = a0 + dady; in setup_pos_vector()
109 quadpos->xyzw[chan].f[3] = a0 + dadx + dady; in setup_pos_vector()
/external/mesa3d/src/gallium/auxiliary/util/
Du_format.c164 unsigned chan; in util_format_is_array() local
173 for (chan = 0; chan < desc->nr_channels; ++chan) { in util_format_is_array()
174 if (desc->swizzle[chan] != chan) in util_format_is_array()
177 if (desc->channel[chan].type != desc->channel[0].type) in util_format_is_array()
180 if (desc->channel[chan].normalized != desc->channel[0].normalized) in util_format_is_array()
183 if (desc->channel[chan].pure_integer != desc->channel[0].pure_integer) in util_format_is_array()
186 if (desc->channel[chan].size != desc->channel[0].size) in util_format_is_array()
418 unsigned chan; in util_is_format_compatible() local
435 for (chan = 0; chan < 4; ++chan) { in util_is_format_compatible()
436 if (src_desc->channel[chan].size != in util_is_format_compatible()
[all …]

123456