Home
last modified time | relevance | path

Searched refs:vec (Results 51 - 75 of 1280) sorted by relevance

12345678910>>...52

/kernel/linux/linux-6.6/security/apparmor/
H A Dlabel.c158 * @vec: vector of profiles to compare (NOT NULL)
159 * @n: length of @vec
161 * Returns: <0 if a < vec
162 * ==0 if a == vec
163 * >0 if a > vec
186 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() argument
190 AA_BUG(!vec); in vec_is_stale()
193 if (profile_is_stale(vec[i])) in vec_is_stale()
200 static long accum_vec_flags(struct aa_profile **vec, int n) in accum_vec_flags() argument
205 AA_BUG(!vec); in accum_vec_flags()
227 unique(struct aa_profile **vec, int n) unique() argument
265 aa_vec_unique(struct aa_profile **vec, int n, int flags) aa_vec_unique() argument
722 __vec_find(struct aa_profile **vec, int n) __vec_find() argument
836 vec_find(struct aa_profile **vec, int n) vec_find() argument
855 vec_create_and_insert_label(struct aa_profile **vec, int len, gfp_t gfp) vec_create_and_insert_label() argument
889 aa_vec_find_or_create_label(struct aa_profile **vec, int len, gfp_t gfp) aa_vec_find_or_create_label() argument
[all...]
/kernel/linux/linux-5.10/security/apparmor/
H A Dlabel.c158 * @vec: vector of profiles to compare (NOT NULL)
159 * @n: length of @vec
161 * Returns: <0 if a < vec
162 * ==0 if a == vec
163 * >0 if a > vec
186 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() argument
190 AA_BUG(!vec); in vec_is_stale()
193 if (profile_is_stale(vec[i])) in vec_is_stale()
200 static bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined() argument
204 AA_BUG(!vec); in vec_unconfined()
224 unique(struct aa_profile **vec, int n) unique() argument
262 aa_vec_unique(struct aa_profile **vec, int n, int flags) aa_vec_unique() argument
720 __vec_find(struct aa_profile **vec, int n) __vec_find() argument
834 vec_find(struct aa_profile **vec, int n) vec_find() argument
853 vec_create_and_insert_label(struct aa_profile **vec, int len, gfp_t gfp) vec_create_and_insert_label() argument
887 aa_vec_find_or_create_label(struct aa_profile **vec, int len, gfp_t gfp) aa_vec_find_or_create_label() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
H A Dvideobuf2-memops.c42 struct frame_vector *vec; in vb2_create_framevec() local
48 vec = frame_vector_create(nr); in vb2_create_framevec()
49 if (!vec) in vb2_create_framevec()
51 ret = get_vaddr_frames(start & PAGE_MASK, nr, flags, vec); in vb2_create_framevec()
59 return vec; in vb2_create_framevec()
61 put_vaddr_frames(vec); in vb2_create_framevec()
63 frame_vector_destroy(vec); in vb2_create_framevec()
70 * @vec: vector of pfns / pages to release
72 * This releases references to all pages in the vector @vec (if corresponding
75 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/common/videobuf2/
H A Dvideobuf2-memops.c44 struct frame_vector *vec; in vb2_create_framevec() local
49 vec = frame_vector_create(nr); in vb2_create_framevec()
50 if (!vec) in vb2_create_framevec()
52 ret = get_vaddr_frames(start & PAGE_MASK, nr, write, vec); in vb2_create_framevec()
60 return vec; in vb2_create_framevec()
62 put_vaddr_frames(vec); in vb2_create_framevec()
64 frame_vector_destroy(vec); in vb2_create_framevec()
71 * @vec: vector of pfns / pages to release
73 * This releases references to all pages in the vector @vec (if corresponding
76 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xics/
H A Dicp-opal.c64 unsigned int vec; in icp_opal_get_irq() local
68 vec = xirr & 0x00ffffff; in icp_opal_get_irq()
69 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_get_irq()
72 irq = irq_find_mapping(xics_host, vec); in icp_opal_get_irq()
74 xics_push_cppr(vec); in icp_opal_get_irq()
79 xics_mask_unknown_vec(vec); in icp_opal_get_irq()
150 unsigned int vec; in icp_opal_flush_interrupt() local
154 vec = xirr & 0x00ffffff; in icp_opal_flush_interrupt()
155 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_flush_interrupt()
157 if (vec in icp_opal_flush_interrupt()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/sysdev/xics/
H A Dicp-opal.c65 unsigned int vec; in icp_opal_get_irq() local
69 vec = xirr & 0x00ffffff; in icp_opal_get_irq()
70 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_get_irq()
73 irq = irq_find_mapping(xics_host, vec); in icp_opal_get_irq()
75 xics_push_cppr(vec); in icp_opal_get_irq()
80 xics_mask_unknown_vec(vec); in icp_opal_get_irq()
151 unsigned int vec; in icp_opal_flush_interrupt() local
155 vec = xirr & 0x00ffffff; in icp_opal_flush_interrupt()
156 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_flush_interrupt()
158 if (vec in icp_opal_flush_interrupt()
[all...]
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_log.h28 struct xfs_log_iovec *vec = *vecp; in xlog_prepare_iovec() local
30 if (vec) { in xlog_prepare_iovec()
31 ASSERT(vec - lv->lv_iovecp < lv->lv_niovecs); in xlog_prepare_iovec()
32 vec++; in xlog_prepare_iovec()
34 vec = &lv->lv_iovecp[0]; in xlog_prepare_iovec()
37 vec->i_type = type; in xlog_prepare_iovec()
38 vec->i_addr = lv->lv_buf + lv->lv_buf_len; in xlog_prepare_iovec()
40 ASSERT(IS_ALIGNED((unsigned long)vec->i_addr, sizeof(uint64_t))); in xlog_prepare_iovec()
42 *vecp = vec; in xlog_prepare_iovec()
43 return vec in xlog_prepare_iovec()
57 xlog_finish_iovec(struct xfs_log_vec *lv, struct xfs_log_iovec *vec, int len) xlog_finish_iovec() argument
[all...]
/third_party/rust/crates/aho-corasick/bench/src/
H A Drandom.rs23 define_random(c, "onebyte/match", 352, vec!["a"]); in memchr_optimizations()
24 define_random(c, "onebyte/nomatch", 0, vec!["\x00"]); in memchr_optimizations()
25 define_random(c, "twobytes/match", 352, vec!["a", "\x00"]); in memchr_optimizations()
26 define_random(c, "twobytes/nomatch", 0, vec!["\x00", "\x01"]); in memchr_optimizations()
27 define_random(c, "threebytes/match", 352, vec!["a", "\x00", "\x01"]); in memchr_optimizations()
28 define_random(c, "threebytes/nomatch", 0, vec!["\x00", "\x01", "\x02"]); in memchr_optimizations()
33 vec!["a", "\x00", "\x01", "\x02"], in memchr_optimizations()
39 vec!["\x00", "\x01", "\x02", "\x03"], in memchr_optimizations()
45 vec!["a", "\x00", "\x01", "\x02", "\x03"], in memchr_optimizations()
51 vec!["\x0 in memchr_optimizations()
[all...]
/third_party/skia/third_party/externals/freetype/src/smooth/
H A Dftsmooth.c278 FT_Vector* vec; in ft_smooth_raster_lcd() local
288 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcd()
289 vec->x *= 3; in ft_smooth_raster_lcd()
295 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcd()
296 vec->x /= 3; in ft_smooth_raster_lcd()
310 FT_Vector* vec; in ft_smooth_raster_lcdv() local
375 FT_Vector* vec; ft_smooth_raster_overlap() local
[all...]
/third_party/rust/crates/clap/tests/builder/
H A Dmultiple_values.rs14 .try_get_matches_from(vec![ in option_long()
42 .try_get_matches_from(vec!["", "-o", "val1", "-o", "val2", "-o", "val3"]); in option_short()
69 .try_get_matches_from(vec![ in option_mixed()
96 .try_get_matches_from(vec![ in option_exact_exact()
122 .try_get_matches_from(vec!["", "-o", "val1", "val2", "val3"]); in option_exact_exact_not_mult()
147 .try_get_matches_from(vec![ in option_exact_exact_mult()
174 .try_get_matches_from(vec!["", "-o", "val1", "-o", "val2"]); in option_exact_less()
190 .try_get_matches_from(vec![ in option_exact_more()
208 .try_get_matches_from(vec!["", "-o", "val1", "val2", "val3"]); in option_min_exact()
233 .try_get_matches_from(vec!["", " in option_min_less()
[all...]
H A Ddefault_vals.rs16 .try_get_matches_from(vec![""]); in opts()
34 .try_get_matches_from(vec![""]); in default_has_index()
49 .try_get_matches_from(vec!["", "-o"]); in opt_without_value_fail()
62 .try_get_matches_from(vec!["", "--opt", "value"]); in opt_user_override()
80 .try_get_matches_from(vec![""]); in positionals()
98 .try_get_matches_from(vec!["", "value"]); in positional_user_override()
121 .try_get_matches_from(vec![""]); in osstr_opts()
138 .try_get_matches_from(vec!["", "--opt", "value"]); in osstr_opt_user_override()
155 .try_get_matches_from(vec![""]); in osstr_positionals()
172 .try_get_matches_from(vec!["", "valu in osstr_positional_user_override()
[all...]
H A Drequire.rs12 .try_get_matches_from(vec!["", "-f"]); in flag_required()
27 .try_get_matches_from(vec!["", "-f", "-c"]) in flag_required_2()
38 .try_get_matches_from(vec!["", "-f", "val"]); in option_required()
49 .try_get_matches_from(vec!["", "-f", "val", "-c", "other_val"]) in option_required_2()
64 .try_get_matches_from(vec![""]); in positional_required()
74 .try_get_matches_from(vec!["", "someval"]) in positional_required_2()
153 .try_get_matches_from(vec!["", "-f"]); in group_required()
166 .try_get_matches_from(vec!["", "-f", "--some"]) in group_required_2()
180 .try_get_matches_from(vec!["", "-f", "--other"]) in group_required_3()
194 .try_get_matches_from(vec!["", " in arg_require_group()
[all...]
H A Dapp_settings.rs34 .try_get_matches_from(vec!["myprog", "sub1"]) in sub_command_negate_required()
44 .try_get_matches_from(vec![""]); in sub_command_negate_required_2()
55 .try_get_matches_from(vec![""]); in sub_command_required()
84 .try_get_matches_from(vec![""]); in arg_required_else_help()
99 .try_get_matches_from(vec![""]); in arg_required_else_help_over_req_arg()
115 .try_get_matches_from(vec![""]); in arg_required_else_help_over_req_subcommand()
130 .try_get_matches_from(vec![""]); in arg_required_else_help_with_default()
176 .try_get_matches_from(vec!["prog", "te"]); in infer_subcommands_fail_no_args()
188 .try_get_matches_from(vec!["prog", "te"]); in infer_subcommands_fail_no_args()
200 .try_get_matches_from(vec!["pro in infer_subcommands_fail_with_args()
[all...]
H A Dmultiple_occurrences.rs9 .try_get_matches_from(vec!["", "--multflag", "--flag", "--multflag"]) in multiple_occurrences_of_flags_long()
23 .try_get_matches_from(vec!["", "-m", "-f", "-m"]) in multiple_occurrences_of_flags_short()
74 let args: Vec<&str> = vec![""] in multiple_occurrences_of_flags_large_quantity()
76 .chain(vec!["-m"; 200].into_iter()) in multiple_occurrences_of_flags_large_quantity()
82 let args: Vec<&str> = vec![""] in multiple_occurrences_of_flags_large_quantity()
84 .chain(vec!["-m"; 500].into_iter()) in multiple_occurrences_of_flags_large_quantity()
102 let m = cmd.clone().try_get_matches_from(vec![""]); in multiple_occurrences_of_before_env()
107 let m = cmd.clone().try_get_matches_from(vec!["", "-v"]); in multiple_occurrences_of_before_env()
112 let m = cmd.clone().try_get_matches_from(vec!["", "-vv"]); in multiple_occurrences_of_before_env()
117 let m = cmd.clone().try_get_matches_from(vec!["", " in multiple_occurrences_of_before_env()
[all...]
H A Dpossible_values.rs10 .try_get_matches_from(vec!["myprog", "test123"]); in possible_values_of_positional()
32 .try_get_matches_from(vec!["myprog", "test123"]); in possible_value_arg_value()
48 .try_get_matches_from(vec!["myprog", "notest"]); in possible_values_of_positional_fail()
64 .try_get_matches_from(vec!["myprog", "test123", "test321"]); in possible_values_of_positional_multiple()
75 vec!["test123", "test321"] in possible_values_of_positional_multiple()
89 .try_get_matches_from(vec!["myprog", "test123", "notest"]); in possible_values_of_positional_multiple_fail()
105 .try_get_matches_from(vec!["myprog", "--option", "test123"]); in possible_values_of_option()
127 .try_get_matches_from(vec!["myprog", "--option", "notest"]); in possible_values_of_option_fail()
144 .try_get_matches_from(vec!["", "--option", "test123", "--option", "test321"]); in possible_values_of_option_multiple()
155 vec!["test12 in possible_values_of_option_multiple()
[all...]
/third_party/node/deps/v8/third_party/wasm-api/
H A Dwasm.hh35 class vec { class
49 vec(size_t size) : vec(size, size ? new(std::nothrow) T[size] : nullptr) { in vec() function in wasm::vec
53 vec(size_t size, T* data) : size_(size), data_(data) { in vec() function in wasm::vec
60 vec(vec<T>&& that) : vec(that.size_, that.data_.release()) {} in vec() function in wasm::vec
62 ~vec() { in ~vec()
92 void reset(vec& that) { in reset()
98 auto operator=(vec
[all...]
/third_party/rust/crates/clap/tests/derive/
H A Dvalue_enum.rs91 #[arg(value_enum, default_values_t = vec![ArgChoice::Foo, ArgChoice::Bar])] in vec_for_default_values_t()
104 arg1: vec![ArgChoice::Foo], in vec_for_default_values_t()
105 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t()
111 arg1: vec![ArgChoice::Bar], in vec_for_default_values_t()
112 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t()
118 arg1: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_t()
119 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t()
125 arg1: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_t()
126 arg2: vec![ArgChoice::Foo] in vec_for_default_values_t()
142 #[arg(value_enum, default_values_os_t = vec![ArgChoic in vec_for_default_values_os_t()
[all...]
H A Dnon_literal_attributes.rs51 values: vec![], in test_slice()
60 values: vec![], in test_slice()
69 values: vec![], in test_slice()
78 values: vec![], in test_slice()
90 files: vec!["file".to_string()], in test_multi_args()
91 values: vec![], in test_multi_args()
99 files: vec!["FILE".to_string()], in test_multi_args()
100 values: vec![1], in test_multi_args()
118 files: vec![], in test_bool()
119 values: vec![], in test_bool()
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftoutln.c148 FT_Vector vec; in FT_EXPORT_DEF() local
151 vec.x = SCALED( point->x ); in FT_EXPORT_DEF()
152 vec.y = SCALED( point->y ); in FT_EXPORT_DEF()
155 vec.x / 64.0, vec.y / 64.0 )); in FT_EXPORT_DEF()
156 error = func_interface->line_to( &vec, user ); in FT_EXPORT_DEF()
169 FT_Vector vec; in FT_EXPORT_DEF() local
177 vec.x = SCALED( point->x ); in FT_EXPORT_DEF()
178 vec.y = SCALED( point->y ); in FT_EXPORT_DEF()
184 vec in FT_EXPORT_DEF()
237 FT_Vector vec; FT_EXPORT_DEF() local
474 FT_Vector* vec = outline->points; FT_Outline_Get_CBox() local
512 FT_Vector* vec; FT_Outline_Translate() local
709 FT_Vector* vec; FT_Outline_Transform() local
[all...]
/third_party/skia/src/gpu/tessellate/
H A DTessellation.h24 template<int N> using vec = skvx::Vec<N, float>;
25 using float2 = vec<2>;
26 using float4 = vec<4>;
52 AI vec<N> mix(vec<N> a, vec<N> b, vec<N> T) { in mix()
58 AI vec<N> mix(vec<N> a, vec<
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dmincore.c56 unsigned char vec[TEST_SIZE]; in mincore_0100() local
57 memset(vec, 0x0, sizeof(vec)); in mincore_0100()
58 ret = mincore(start, TEST_SIZE, vec); in mincore_0100()
77 unsigned char vec[TEST_SIZE]; in mincore_0200() local
78 memset(vec, 0x0, sizeof(vec)); in mincore_0200()
79 int ret = mincore(memory, TEST_SIZE, vec); in mincore_0200()
/third_party/mesa3d/src/util/format/
H A Du_format_fxt1.c148 fxt1_bestcol (float vec[][MAX_COMP], int32_t nv, in fxt1_bestcol() argument
157 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]); in fxt1_bestcol()
170 fxt1_worst (float vec[MAX_COMP], in fxt1_worst() argument
179 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]); in fxt1_worst()
219 fxt1_choose (float vec[][MAX_COMP], int32_t nv, in fxt1_choose() argument
230 vec[j][i] = input[m][i]; in fxt1_choose()
290 vec[j][i] = (float)input[hist[j].idx][i]; in fxt1_choose()
295 vec[ in fxt1_choose()
313 fxt1_lloyd(float vec[][MAX_COMP], int32_t nv, uint8_t input[N_TEXELS][MAX_COMP], int32_t nc, int32_t n) fxt1_lloyd() argument
419 float vec[MAX_VECT][MAX_COMP]; fxt1_quantize_CHROMA() local
461 float vec[MAX_VECT][MAX_COMP]; fxt1_quantize_ALPHA0() local
513 float vec[1 + 1 + 1][MAX_COMP]; /* 1.5 extrema for each sub-block */ fxt1_quantize_ALPHA1() local
746 uint8_t vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ fxt1_quantize_MIXED1() local
884 uint8_t vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ fxt1_quantize_MIXED0() local
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/core/
H A Ddevice.cpp476 std::vector<cl_name_version> vec; in supported_extensions() local
478 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_byte_addressable_store" } ); in supported_extensions()
479 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_global_int32_base_atomics" } ); in supported_extensions()
480 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_global_int32_extended_atomics" } ); in supported_extensions()
481 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_local_int32_base_atomics" } ); in supported_extensions()
482 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_local_int32_extended_atomics" } ); in supported_extensions()
484 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_int64_base_atomics" } ); in supported_extensions()
485 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_int64_extended_atomics" } ); in supported_extensions()
488 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_fp64" } ); in supported_extensions()
490 vec in supported_extensions()
550 std::vector<cl_name_version> vec; opencl_c_all_versions() local
566 std::vector<cl_name_version> vec; opencl_c_features() local
[all...]
/third_party/python/Lib/test/
H A Dtest_turtle.py145 vec = Vec2D(0.5, 2)
146 self.assertEqual(vec[0], 0.5)
147 self.assertEqual(vec[1], 2)
148 self.assertIsInstance(vec, Vec2D)
153 self.assertRaises(TypeError, Vec2D, vec)
157 vec = Vec2D(0.567, 1.234)
158 self.assertEqual(repr(vec), '(0.57,1.23)')
171 vec = Vec2D(0.5, 2)
174 pickled = pickle.dumps(vec, protocol=proto)
176 self.assertEqual(unpickled, vec)
[all...]
/third_party/rust/crates/codespan/codespan-reporting/examples/
H A Dterm.rs98 .with_labels(vec![ in main()
101 .with_notes(vec![ in main()
107 .with_labels(vec![ in main()
110 .with_notes(vec!["consider using a wildcard pattern: `_`".to_owned()]), in main()
115 .with_labels(vec![ in main()
120 .with_notes(vec![unindent::unindent( in main()
130 .with_labels(vec![ in main()
137 .with_notes(vec![unindent::unindent( in main()
147 .with_labels(vec![ in main()
160 .with_notes(vec![uninden in main()
[all...]

Completed in 14 milliseconds

12345678910>>...52