Home
last modified time | relevance | path

Searched refs:chans (Results 1 – 25 of 29) sorted by relevance

12

/external/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_logic_ops.c120 v3d_nir_swizzle_and_pack(nir_builder *b, nir_ssa_def **chans, in v3d_nir_swizzle_and_pack() argument
125 c[i] = v3d_nir_get_swizzled_channel(b, chans, swiz[i]); in v3d_nir_swizzle_and_pack()
153 nir_ssa_def *chans[4]; in pack_unorm_rgb10a2() local
155 chans[i] = nir_channel(b, unorm, i); in pack_unorm_rgb10a2()
157 nir_ssa_def *result = nir_mov(b, chans[0]); in pack_unorm_rgb10a2()
161 nir_ishl(b, chans[i], nir_imm_int(b, offset)); in pack_unorm_rgb10a2()
177 nir_ssa_def *chans[4]; in unpack_unorm_rgb10a2() local
180 chans[i] = nir_format_unorm_to_float(b, unorm, &bits[i]); in unpack_unorm_rgb10a2()
184 return nir_vec4(b, chans[0], chans[1], chans[2], chans[3]); in unpack_unorm_rgb10a2()
Dv3d_nir_lower_scratch.c60 nir_ssa_def *chans[NIR_MAX_VEC_COMPONENTS]; in v3d_nir_lower_load_scratch() local
77 chans[i] = &chan_instr->dest.ssa; in v3d_nir_lower_load_scratch()
80 nir_ssa_def *result = nir_vec(b, chans, instr->num_components); in v3d_nir_lower_load_scratch()
/external/wpa_supplicant_8/wpa_supplicant/
Dmbo.c345 struct wpa_mbo_non_pref_channel *chans = NULL, *tmp_chans; in wpas_mbo_update_non_pref_chan() local
373 tmp_chans = os_realloc_array(chans, size, in wpas_mbo_update_non_pref_chan()
374 sizeof(*chans)); in wpas_mbo_update_non_pref_chan()
380 chans = tmp_chans; in wpas_mbo_update_non_pref_chan()
383 chan = &chans[num]; in wpas_mbo_update_non_pref_chan()
408 if (wpa_non_pref_chan_is_eq(chan, &chans[i])) in wpas_mbo_update_non_pref_chan()
422 if (chans) { in wpas_mbo_update_non_pref_chan()
423 qsort(chans, num, sizeof(struct wpa_mbo_non_pref_channel), in wpas_mbo_update_non_pref_chan()
429 wpa_s->non_pref_chan = chans; in wpas_mbo_update_non_pref_chan()
436 os_free(chans); in wpas_mbo_update_non_pref_chan()
/external/wpa_supplicant_8/src/p2p/
Dp2p_utils.c384 int p2p_channel_select(struct p2p_channels *chans, const int *classes, in p2p_channel_select() argument
390 for (i = 0; i < chans->reg_classes; i++) { in p2p_channel_select()
391 struct p2p_reg_class *c = &chans->reg_class[i]; in p2p_channel_select()
415 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class, in p2p_channel_random_social() argument
429 if (p2p_channels_includes(chans, 81, 1) || in p2p_channel_random_social()
433 if (p2p_channels_includes(chans, 81, 6) || in p2p_channel_random_social()
437 if (p2p_channels_includes(chans, 81, 11) || in p2p_channel_random_social()
443 if (p2p_channels_includes(chans, 180, 2)) in p2p_channel_random_social()
Dp2p_i.h706 int p2p_channel_select(struct p2p_channels *chans, const int *classes,
708 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class,
/external/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc_dump.cpp34 static const char* chans = "xyzw01?_"; variable
139 s << chans[n.bc.sel[k]]; in dump()
149 s << ((n.bc.comp_mask & (1 << k)) ? chans[k] : '_'); in dump()
247 s << chans[alu.dst_chan]; in print_dst()
369 s << "." << chans[src->chan]; in print_src()
493 s << chans[n.bc.dst_sel[k]]; in dump()
505 s << chans[n.bc.src_sel[k]]; in dump()
547 s << " O" << chans[k] << ":" << n.bc.offset[k]; in dump()
Dsb_valtable.cpp42 static const char * chans = "xyzw01?_"; variable
70 << chans[v.select.chan()]; in operator <<()
74 o << "C" << v.select.sel() << "." << chans[v.select.chan()]; in operator <<()
83 << chans[v.select.chan()]; in operator <<()
128 o << "@R" << g.sel() << "." << chans[g.chan()]; in operator <<()
Dsb_ra_init.cpp841 unsigned chans = prev_chans; in get_preferable_chan_mask() local
844 used_chans |= chans; in get_preferable_chan_mask()
845 chans >>= 4; in get_preferable_chan_mask()
/external/mesa3d/src/compiler/nir/
Dnir_format_convert.h349 nir_ssa_def *chans[3]; in nir_format_unpack_11f11f10f() local
350 chans[0] = nir_mask_shift(b, packed, 0x000007ff, 4); in nir_format_unpack_11f11f10f()
351 chans[1] = nir_mask_shift(b, packed, 0x003ff800, -7); in nir_format_unpack_11f11f10f()
352 chans[2] = nir_mask_shift(b, packed, 0xffc00000, -17); in nir_format_unpack_11f11f10f()
355 chans[i] = nir_unpack_half_2x16_split_x(b, chans[i]); in nir_format_unpack_11f11f10f()
357 return nir_vec(b, chans, 3); in nir_format_unpack_11f11f10f()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_lower_image_load_store.c240 unsigned chans; member
251 .chans = isl_format_get_num_channels(fmt), in get_format_info()
289 color = nir_format_unpack_sint(b, color, image.bits, image.chans); in convert_color_for_load()
291 color = nir_format_unpack_uint(b, color, image.bits, image.chans); in convert_color_for_load()
294 for (unsigned i = 1; i < image.chans; i++) in convert_color_for_load()
462 color = nir_channels(b, color, (1 << image.chans) - 1); in convert_color_for_store()
506 color = nir_format_pack_uint(b, color, image.bits, image.chans); in convert_color_for_store()
509 for (unsigned i = 1; i < image.chans; i++) in convert_color_for_store()
Dbrw_schedule_instructions.cpp120 int chans = 8; in set_latency_gen4() local
125 this->latency = 1 * chans * math_latency; in set_latency_gen4()
128 this->latency = 2 * chans * math_latency; in set_latency_gen4()
134 this->latency = 3 * chans * math_latency; in set_latency_gen4()
139 this->latency = 4 * chans * math_latency; in set_latency_gen4()
142 this->latency = 8 * chans * math_latency; in set_latency_gen4()
147 this->latency = 5 * chans * math_latency; in set_latency_gen4()
/external/mesa3d/src/compiler/glsl/
Dopt_copy_propagation_elements.cpp413 int chans; in handle_rvalue() local
429 chans = swizzle->type->vector_elements; in handle_rvalue()
439 chans = deref_var->type->vector_elements; in handle_rvalue()
453 for (int c = 0; c < chans; c++) { in handle_rvalue()
468 for (int c = 1; c < chans; c++) { in handle_rvalue()
493 chans); in handle_rvalue()
/external/mesa3d/src/mesa/program/
Dprog_to_nir.c216 nir_ssa_def *chans[4]; in ptn_get_src() local
220 chans[i] = nir_imm_float(b, 0.0); in ptn_get_src()
222 chans[i] = nir_imm_float(b, 1.0); in ptn_get_src()
232 chans[i] = &mov->dest.dest.ssa; in ptn_get_src()
236 chans[i] = nir_fneg(b, chans[i]); in ptn_get_src()
238 def = nir_vec4(b, chans[0], chans[1], chans[2], chans[3]); in ptn_get_src()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c538 LLVMValueRef packed, res = NULL, chans[4], rgba[4]; in lp_build_fetch_rgba_aos() local
566 chans[j] = LLVMBuildLShr(builder, packed, in lp_build_fetch_rgba_aos()
570 chans[j] = LLVMBuildAnd(builder, chans[j], in lp_build_fetch_rgba_aos()
576 chans[j] = scale_bits_up(gallivm, format_desc->channel[j].size, in lp_build_fetch_rgba_aos()
577 type.width, chans[j], conv_type); in lp_build_fetch_rgba_aos()
589 rgba[j] = lp_build_swizzle_soa_channel(&bld_conv, chans, swizzle); in lp_build_fetch_rgba_aos()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c1885 LLVMValueRef chans[4]; in convert_to_blend_type() local
1902 chans[j] = LLVMBuildLShr(builder, in convert_to_blend_type()
1907 chans[j] = LLVMBuildAnd(builder, in convert_to_blend_type()
1908 chans[j], in convert_to_blend_type()
1914 chans[j] = scale_bits(gallivm, src_fmt->channel[j].size, in convert_to_blend_type()
1915 blend_type.width, chans[j], src_type); in convert_to_blend_type()
1919 chans[j] = LLVMBuildShl(builder, in convert_to_blend_type()
1920 chans[j], in convert_to_blend_type()
1925 res = chans[j]; in convert_to_blend_type()
1927 res = LLVMBuildOr(builder, res, chans[j], ""); in convert_to_blend_type()
[all …]
/external/libxaac/decoder/
Dixheaacd_main.h115 WORD32 *coef_save[chans];
173 WORD32 arr_coef_save[chans][(LN2 + LN2 / 8)];
Dixheaacd_info.h23 #define chans 51 macro
/external/iw/
Dscan.c65 } __attribute__ ((packed)) chans; member
568 if (triplet->chans.first_channel <= 14) in print_country()
569 end_channel = triplet->chans.first_channel + (triplet->chans.num_channels - 1); in print_country()
571 end_channel = triplet->chans.first_channel + (4 * (triplet->chans.num_channels - 1)); in print_country()
573 …rintf("\t\tChannels [%d - %d] @ %d dBm\n", triplet->chans.first_channel, end_channel, triplet->cha… in print_country()
/external/kernel-headers/original/uapi/linux/
Dipmi.h356 unsigned int chans; member
/external/mesa3d/src/intel/blorp/
Dblorp_blit.c903 nir_ssa_def *chans[4] = { }; in bit_cast_color() local
906 chans[c] = nir_imm_int(b, 0); in bit_cast_color()
912 chans[c] = nir_iand(b, nir_shift(b, packed, -(int)chan_start_bit), in bit_cast_color()
916 chans[c] = nir_format_unorm_to_float(b, chans[c], &chan_bits); in bit_cast_color()
918 color = nir_vec(b, chans, 4); in bit_cast_color()
950 nir_ssa_def *chans[4] = { u, u, u, u }; in bit_cast_color() local
952 chans[i] = nir_channel(b, color, i); in bit_cast_color()
953 return nir_vec4(b, chans[0], chans[1], chans[2], chans[3]); in bit_cast_color()
/external/mesa3d/src/intel/isl/
Disl.c2887 enum isl_channel_select chans[4] = { in isl_swizzle_invert() enum
2899 chans[swizzle.a - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_ALPHA; in isl_swizzle_invert()
2901 chans[swizzle.b - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_BLUE; in isl_swizzle_invert()
2903 chans[swizzle.g - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_GREEN; in isl_swizzle_invert()
2905 chans[swizzle.r - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_RED; in isl_swizzle_invert()
2907 return (struct isl_swizzle) { chans[0], chans[1], chans[2], chans[3] }; in isl_swizzle_invert()
/external/mesa3d/src/amd/vulkan/
Dradv_meta_blit2d.c512 nir_ssa_def *chans[3]; in build_nir_texel_fetch() local
513 chans[0] = nir_channel(b, tex_pos, 0); in build_nir_texel_fetch()
514 chans[1] = nir_channel(b, tex_pos, 1); in build_nir_texel_fetch()
515 chans[2] = &layer->dest.ssa; in build_nir_texel_fetch()
516 tex_pos_3d = nir_vec(b, chans, 3); in build_nir_texel_fetch()
/external/mesa3d/src/panfrost/util/
Dpan_lower_framebuffer.c415 nir_ssa_def *chans [4] = { in pan_unpack_unorm_1010102() local
423 return nir_f2fmp(b, nir_fmul(b, nir_u2f32(b, nir_vec(b, chans, 4)), scale)); in pan_unpack_unorm_1010102()
/external/llvm/lib/Target/AMDGPU/InstPrinter/
DAMDGPUInstPrinter.cpp688 const char * chans = "XYZW"; in printSel() local
707 O << '.' << chans[chan]; in printSel()
/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_sse.c238 struct x86_reg arg0, unsigned out_chans, unsigned chans) in emit_load_float32() argument
240 switch (chans) { in emit_load_float32()
286 struct x86_reg arg0, unsigned out_chans, unsigned chans) in emit_load_float64to32() argument
289 switch (chans) { in emit_load_float64to32()

12