/third_party/libnl/lib/xfrm/ |
D | sp.c | 620 struct xfrm_user_tmpl* tmpl = nla_data(tb[XFRMA_TMPL]); in xfrmnl_sp_parse() local 623 uint32_t num_tmpls = nla_len(tb[XFRMA_TMPL]) / sizeof (*tmpl); in xfrmnl_sp_parse() 626 for (i = 0; (i < num_tmpls) && (tmpl); i ++, tmpl++) in xfrmnl_sp_parse() 634 if (tmpl->family == AF_INET) in xfrmnl_sp_parse() 635 addr = nl_addr_build(tmpl->family, &tmpl->id.daddr.a4, sizeof (tmpl->id.daddr.a4)); in xfrmnl_sp_parse() 637 addr = nl_addr_build(tmpl->family, &tmpl->id.daddr.a6, sizeof (tmpl->id.daddr.a6)); in xfrmnl_sp_parse() 639 xfrmnl_user_tmpl_set_spi (sputmpl, ntohl(tmpl->id.spi)); in xfrmnl_sp_parse() 640 xfrmnl_user_tmpl_set_proto (sputmpl, tmpl->id.proto); in xfrmnl_sp_parse() 641 xfrmnl_user_tmpl_set_family (sputmpl, tmpl->family); in xfrmnl_sp_parse() 643 if (tmpl->family == AF_INET) in xfrmnl_sp_parse() [all …]
|
D | sa.c | 1098 static int build_xfrm_sa_message(struct xfrmnl_sa *tmpl, int cmd, int flags, struct nl_msg **result) in build_xfrm_sa_message() argument 1105 if (!(tmpl->ce_mask & XFRM_SA_ATTR_DADDR) || in build_xfrm_sa_message() 1106 !(tmpl->ce_mask & XFRM_SA_ATTR_SPI) || in build_xfrm_sa_message() 1107 !(tmpl->ce_mask & XFRM_SA_ATTR_PROTO)) in build_xfrm_sa_message() 1111 if (tmpl->ce_mask & XFRM_SA_ATTR_SEL) in build_xfrm_sa_message() 1113 addr = xfrmnl_sel_get_daddr (tmpl->sel); in build_xfrm_sa_message() 1115 addr = xfrmnl_sel_get_saddr (tmpl->sel); in build_xfrm_sa_message() 1117 sa_info.sel.dport = htons (xfrmnl_sel_get_dport (tmpl->sel)); in build_xfrm_sa_message() 1118 sa_info.sel.dport_mask = htons (xfrmnl_sel_get_dportmask (tmpl->sel)); in build_xfrm_sa_message() 1119 sa_info.sel.sport = htons (xfrmnl_sel_get_sport (tmpl->sel)); in build_xfrm_sa_message() [all …]
|
D | template.c | 164 void xfrmnl_user_tmpl_dump(struct xfrmnl_user_tmpl* tmpl, struct nl_dump_params *p) in xfrmnl_user_tmpl_dump() argument 170 nl_addr2str(tmpl->saddr, src, sizeof(src)), in xfrmnl_user_tmpl_dump() 171 nl_addr2str (tmpl->id.daddr, dst, sizeof (dst)), in xfrmnl_user_tmpl_dump() 172 nl_af2str (tmpl->family, buf, 128)); in xfrmnl_user_tmpl_dump() 174 nl_ip_proto2str (tmpl->id.proto, buf, sizeof(buf)), in xfrmnl_user_tmpl_dump() 175 tmpl->id.spi, tmpl->reqid, in xfrmnl_user_tmpl_dump() 176 xfrmnl_user_tmpl_mode2str (tmpl->mode, buf, 128)); in xfrmnl_user_tmpl_dump() 178 tmpl->aalgos, tmpl->ealgos, tmpl->calgos); in xfrmnl_user_tmpl_dump()
|
D | ae.c | 367 static int build_xfrm_ae_message(struct xfrmnl_ae *tmpl, int cmd, int flags, in build_xfrm_ae_message() argument 373 if (!(tmpl->ce_mask & XFRM_AE_ATTR_DADDR) || in build_xfrm_ae_message() 374 !(tmpl->ce_mask & XFRM_AE_ATTR_SPI) || in build_xfrm_ae_message() 375 !(tmpl->ce_mask & XFRM_AE_ATTR_PROTO)) in build_xfrm_ae_message() 378 …(&ae_id.sa_id.daddr, nl_addr_get_binary_addr (tmpl->sa_id.daddr), sizeof (uint8_t) * nl_addr_get_l… in build_xfrm_ae_message() 379 ae_id.sa_id.spi = htonl(tmpl->sa_id.spi); in build_xfrm_ae_message() 380 ae_id.sa_id.family = tmpl->sa_id.family; in build_xfrm_ae_message() 381 ae_id.sa_id.proto = tmpl->sa_id.proto; in build_xfrm_ae_message() 383 if (tmpl->ce_mask & XFRM_AE_ATTR_SADDR) in build_xfrm_ae_message() 384 …memcpy (&ae_id.saddr, nl_addr_get_binary_addr (tmpl->saddr), sizeof (uint8_t) * nl_addr_get_len (t… in build_xfrm_ae_message() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_texture.c | 167 struct pipe_sampler_view tmpl; in st_get_sampler_views() local 173 tmpl = *sampler_views[unit]; in st_get_sampler_views() 186 tmpl.format = PIPE_FORMAT_RG88_UNORM; in st_get_sampler_views() 187 tmpl.swizzle_g = PIPE_SWIZZLE_Y; /* tmpl from Y plane is R8 */ in st_get_sampler_views() 190 pipe->create_sampler_view(pipe, stObj->pt->next, &tmpl); in st_get_sampler_views() 196 tmpl.format = PIPE_FORMAT_RG1616_UNORM; in st_get_sampler_views() 197 tmpl.swizzle_g = PIPE_SWIZZLE_Y; /* tmpl from Y plane is R16 */ in st_get_sampler_views() 200 pipe->create_sampler_view(pipe, stObj->pt->next, &tmpl); in st_get_sampler_views() 204 tmpl.format = PIPE_FORMAT_R8_UNORM; in st_get_sampler_views() 207 pipe->create_sampler_view(pipe, stObj->pt->next, &tmpl); in st_get_sampler_views() [all …]
|
/third_party/node/src/ |
D | histogram.cc | 175 Local<FunctionTemplate> tmpl = env->histogram_ctor_template(); in GetConstructorTemplate() local 176 if (tmpl.IsEmpty()) { in GetConstructorTemplate() 177 tmpl = env->NewFunctionTemplate(New); in GetConstructorTemplate() 180 tmpl->SetClassName(classname); in GetConstructorTemplate() 181 tmpl->Inherit(BaseObject::GetConstructorTemplate(env)); in GetConstructorTemplate() 183 tmpl->InstanceTemplate()->SetInternalFieldCount( in GetConstructorTemplate() 185 env->SetProtoMethodNoSideEffect(tmpl, "exceeds", GetExceeds); in GetConstructorTemplate() 186 env->SetProtoMethodNoSideEffect(tmpl, "min", GetMin); in GetConstructorTemplate() 187 env->SetProtoMethodNoSideEffect(tmpl, "max", GetMax); in GetConstructorTemplate() 188 env->SetProtoMethodNoSideEffect(tmpl, "mean", GetMean); in GetConstructorTemplate() [all …]
|
D | handle_wrap.cc | 157 Local<FunctionTemplate> tmpl = env->handle_wrap_ctor_template(); in GetConstructorTemplate() local 158 if (tmpl.IsEmpty()) { in GetConstructorTemplate() 159 tmpl = env->NewFunctionTemplate(nullptr); in GetConstructorTemplate() 160 tmpl->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "HandleWrap")); in GetConstructorTemplate() 161 tmpl->Inherit(AsyncWrap::GetConstructorTemplate(env)); in GetConstructorTemplate() 162 env->SetProtoMethod(tmpl, "close", HandleWrap::Close); in GetConstructorTemplate() 163 env->SetProtoMethodNoSideEffect(tmpl, "hasRef", HandleWrap::HasRef); in GetConstructorTemplate() 164 env->SetProtoMethod(tmpl, "ref", HandleWrap::Ref); in GetConstructorTemplate() 165 env->SetProtoMethod(tmpl, "unref", HandleWrap::Unref); in GetConstructorTemplate() 166 env->set_handle_wrap_ctor_template(tmpl); in GetConstructorTemplate() [all …]
|
D | stream_wrap.cc | 123 Local<FunctionTemplate> tmpl = env->libuv_stream_wrap_ctor_template(); in GetConstructorTemplate() local 124 if (tmpl.IsEmpty()) { in GetConstructorTemplate() 125 tmpl = env->NewFunctionTemplate(nullptr); in GetConstructorTemplate() 126 tmpl->SetClassName( in GetConstructorTemplate() 128 tmpl->Inherit(HandleWrap::GetConstructorTemplate(env)); in GetConstructorTemplate() 129 tmpl->InstanceTemplate()->SetInternalFieldCount( in GetConstructorTemplate() 135 Signature::New(env->isolate(), tmpl)); in GetConstructorTemplate() 136 tmpl->PrototypeTemplate()->SetAccessorProperty( in GetConstructorTemplate() 141 env->SetProtoMethod(tmpl, "setBlocking", SetBlocking); in GetConstructorTemplate() 142 StreamBase::AddMethods(env, tmpl); in GetConstructorTemplate() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_video_buffer.c | 169 const struct pipe_video_buffer *tmpl, in vl_video_buffer_template() argument 175 unsigned height = tmpl->height; in vl_video_buffer_template() 185 templ->width0 = tmpl->width; in vl_video_buffer_template() 188 templ->bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET | tmpl->bind; in vl_video_buffer_template() 346 const struct pipe_video_buffer *tmpl) in vl_video_buffer_create() argument 353 assert(tmpl->width > 0 && tmpl->height > 0); in vl_video_buffer_create() 363 vl_get_video_buffer_formats(pipe->screen, tmpl->buffer_format, resource_formats); in vl_video_buffer_create() 365 templat = *tmpl; in vl_video_buffer_create() 366 templat.width = pot_buffers ? util_next_power_of_two(tmpl->width) in vl_video_buffer_create() 367 : align(tmpl->width, VL_MACROBLOCK_WIDTH); in vl_video_buffer_create() [all …]
|
/third_party/libnl/lib/route/ |
D | rule.c | 430 static int build_rule_msg(struct rtnl_rule *tmpl, int cmd, int flags, in build_rule_msg() argument 435 .family = tmpl->r_family, in build_rule_msg() 436 .table = tmpl->r_table, in build_rule_msg() 437 .action = tmpl->r_action, in build_rule_msg() 438 .flags = tmpl->r_flags, in build_rule_msg() 439 .tos = tmpl->r_dsfield, in build_rule_msg() 442 if (!(tmpl->ce_mask & RULE_ATTR_FAMILY)) in build_rule_msg() 449 if (tmpl->ce_mask & RULE_ATTR_SRC) in build_rule_msg() 450 frh.src_len = nl_addr_get_prefixlen(tmpl->r_src); in build_rule_msg() 452 if (tmpl->ce_mask & RULE_ATTR_DST) in build_rule_msg() [all …]
|
D | addr.c | 620 static int build_addr_msg(struct rtnl_addr *tmpl, int cmd, int flags, in build_addr_msg() argument 625 .ifa_family = tmpl->a_family, in build_addr_msg() 626 .ifa_index = tmpl->a_ifindex, in build_addr_msg() 627 .ifa_prefixlen = tmpl->a_prefixlen, in build_addr_msg() 628 .ifa_flags = tmpl->a_flags, in build_addr_msg() 631 if (tmpl->ce_mask & ADDR_ATTR_SCOPE) in build_addr_msg() 632 am.ifa_scope = tmpl->a_scope; in build_addr_msg() 635 if (tmpl->a_family == AF_INET && in build_addr_msg() 636 tmpl->ce_mask & ADDR_ATTR_LOCAL && in build_addr_msg() 637 *((char *) nl_addr_get_binary_addr(tmpl->a_local)) == 127) in build_addr_msg() [all …]
|
D | route.c | 109 static int build_route_msg(struct rtnl_route *tmpl, int cmd, int flags, in build_route_msg() argument 118 if ((err = rtnl_route_build_msg(msg, tmpl)) < 0) { in build_route_msg() 127 int rtnl_route_build_add_request(struct rtnl_route *tmpl, int flags, in rtnl_route_build_add_request() argument 130 return build_route_msg(tmpl, RTM_NEWROUTE, NLM_F_CREATE | flags, in rtnl_route_build_add_request() 150 int rtnl_route_build_del_request(struct rtnl_route *tmpl, int flags, in rtnl_route_build_del_request() argument 153 return build_route_msg(tmpl, RTM_DELROUTE, flags, result); in rtnl_route_build_del_request()
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | vectorize_scalar_matrix_constructors_test.cc | 56 std::string tmpl = R"( in TEST_P() local 62 tmpl = utils::ReplaceAll(tmpl, "${matrix}", mat_type); in TEST_P() 63 auto src = utils::ReplaceAll(tmpl, "${values}", scalar_values); in TEST_P() 64 auto expect = utils::ReplaceAll(tmpl, "${values}", vector_values); in TEST_P() 85 std::string tmpl = R"( in TEST_P() local 91 tmpl = utils::ReplaceAll(tmpl, "${matrix}", mat_type); in TEST_P() 92 auto src = utils::ReplaceAll(tmpl, "${columns}", columns); in TEST_P()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_uvd.c | 59 const struct pipe_video_buffer *tmpl) in r600_video_buffer_create() argument 70 pipe_format_to_chroma_format(tmpl->buffer_format); in r600_video_buffer_create() 75 vl_get_video_buffer_formats(pipe->screen, tmpl->buffer_format, resource_formats); in r600_video_buffer_create() 77 array_size = tmpl->interlaced ? 2 : 1; in r600_video_buffer_create() 78 template = *tmpl; in r600_video_buffer_create() 79 template.width = align(tmpl->width, VL_MACROBLOCK_WIDTH); in r600_video_buffer_create() 80 template.height = align(tmpl->height / array_size, VL_MACROBLOCK_HEIGHT); in r600_video_buffer_create() 84 if (ctx->b.chip_class < EVERGREEN || tmpl->interlaced || !R600_UVD_ENABLE_TILING) in r600_video_buffer_create() 94 if (ctx->b.chip_class < EVERGREEN || tmpl->interlaced || !R600_UVD_ENABLE_TILING) in r600_video_buffer_create() 105 if (ctx->b.chip_class < EVERGREEN || tmpl->interlaced || !R600_UVD_ENABLE_TILING) in r600_video_buffer_create()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_resource.c | 52 const struct pipe_resource *tmpl) in nv30_resource_create() argument 54 switch (tmpl->target) { in nv30_resource_create() 56 return nouveau_buffer_create(pscreen, tmpl); in nv30_resource_create() 58 return nv30_miptree_create(pscreen, tmpl); in nv30_resource_create() 73 const struct pipe_resource *tmpl, in nv30_resource_from_handle() argument 77 if (tmpl->target == PIPE_BUFFER) in nv30_resource_from_handle() 80 return nv30_miptree_from_handle(pscreen, tmpl, handle); in nv30_resource_from_handle()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_resource.c | 197 const struct pipe_resource *tmpl) in is_rs_align() argument 201 !etna_resource_sampler_only(tmpl)); in is_rs_align() 433 struct pipe_resource tmpl = *templat; in etna_resource_create_modifiers() local 443 tmpl.bind |= PIPE_BIND_SCANOUT; in etna_resource_create_modifiers() 445 return etna_resource_alloc(pscreen, modifier_to_layout(modifier), modifier, &tmpl); in etna_resource_create_modifiers() 488 const struct pipe_resource *tmpl, in etna_resource_from_handle() argument 498 tmpl->target, util_format_name(tmpl->format), tmpl->width0, in etna_resource_from_handle() 499 tmpl->height0, tmpl->depth0, tmpl->array_size, tmpl->last_level, in etna_resource_from_handle() 500 tmpl->nr_samples, tmpl->usage, tmpl->bind, tmpl->flags); in etna_resource_from_handle() 509 *prsc = *tmpl; in etna_resource_from_handle() [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/lib/src/ |
D | template.dart | 13 /// undergo template expansion should end with the '.tmpl' extension. All other 15 /// as is, the directory itself can end with '.tmpl' extension. Files within 16 /// such a directory may also contain the '.tmpl' extension and will be 18 /// without template expansion (images, data files, etc.), the '.copy.tmpl' 22 /// '<platform>-<language>.tmpl'. 24 /// Files in the destination will contain none of the '.tmpl', '.copy.tmpl' 25 /// or '-<language>.tmpl' extensions. 46 // If '.tmpl' appears anywhere within the path of this entity, it is 60 static const String templateExtension = '.tmpl'; 61 static const String copyTemplateExtension = '.copy.tmpl'; [all …]
|
/third_party/openssl/external/perl/Text-Template-1.46/t/ |
D | 12-preprocess.t | 33 my $tmpl; 35 $tmpl = new Text::Template::Preprocess 39 $tmpl = new Text::Template::Preprocess 42 $tmpl->preprocessor($py) if ($test & 1) == 1; 44 my $o = $tmpl->fill_in(@args,
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fShaderDiscardTests.cpp | 341 ShaderDiscardCase* makeDiscardCase (Context& context, DiscardTemplate tmpl, DiscardMode mode) in makeDiscardCase() argument 343 StringTemplate shaderTemplate(getTemplate(tmpl)); in makeDiscardCase() 359 string name = string(getTemplateName(tmpl)) + "_" + getModeName(mode); in makeDiscardCase() 360 string description = string(getModeDesc(mode)) + " in " + getTemplateDesc(tmpl); in makeDiscardCase() 362 | (tmpl == DISCARDTEMPLATE_MAIN_DYNAMIC_LOOP ? FLAG_REQUIRES_DYNAMIC_LOOPS : 0); in makeDiscardCase() 369 for (int tmpl = 0; tmpl < DISCARDTEMPLATE_LAST; tmpl++) in init() local 371 addChild(makeDiscardCase(m_context, (DiscardTemplate)tmpl, (DiscardMode)mode)); in init()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_resource.cpp | 538 struct pipe_resource tmpl = res->base; in transfer_image_to_buf() local 539 tmpl.nr_samples = 0; in transfer_image_to_buf() 540 resolved_resource = d3d12_resource_create(ctx->base.screen, &tmpl); in transfer_image_to_buf() 550 resolve_info.mask = util_format_get_mask(tmpl.format); in transfer_image_to_buf() 660 local_resource(pipe_screen *s, struct pipe_resource *tmpl) : in local_resource() 663 res = d3d12_resource(d3d12_resource_create(s, tmpl)); in local_resource() 728 struct pipe_resource tmpl; in read_zs_surface() local 729 memset(&tmpl, 0, sizeof tmpl); in read_zs_surface() 730 tmpl.target = PIPE_BUFFER; in read_zs_surface() 731 tmpl.format = PIPE_FORMAT_R32_UNORM; in read_zs_surface() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_resource.c | 579 struct pipe_resource tmpl = rsc->b.b; in fd_alloc_staging() local 585 (util_format_get_mask(tmpl.format) & PIPE_MASK_S)) in fd_alloc_staging() 588 tmpl.width0 = box->width; in fd_alloc_staging() 589 tmpl.height0 = box->height; in fd_alloc_staging() 593 if (tmpl.array_size > 1) { in fd_alloc_staging() 594 if (tmpl.target == PIPE_TEXTURE_CUBE) in fd_alloc_staging() 595 tmpl.target = PIPE_TEXTURE_2D_ARRAY; in fd_alloc_staging() 596 tmpl.array_size = box->depth; in fd_alloc_staging() 597 tmpl.depth0 = 1; in fd_alloc_staging() 599 tmpl.array_size = 1; in fd_alloc_staging() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderDiscardTests.cpp | 331 ShaderDiscardCase* makeDiscardCase (Context& context, DiscardTemplate tmpl, DiscardMode mode) in makeDiscardCase() argument 333 StringTemplate shaderTemplate(getTemplate(tmpl)); in makeDiscardCase() 349 string name = string(getTemplateName(tmpl)) + "_" + getModeName(mode); in makeDiscardCase() 350 string description = string(getModeDesc(mode)) + " in " + getTemplateDesc(tmpl); in makeDiscardCase() 357 for (int tmpl = 0; tmpl < DISCARDTEMPLATE_LAST; tmpl++) in init() local 359 addChild(makeDiscardCase(m_context, (DiscardTemplate)tmpl, (DiscardMode)mode)); in init()
|
/third_party/gstreamer/gstplugins_base/gst/encoding/ |
D | gstencodebin.c | 121 GstPadTemplate *tmpl; in gst_encode_bin_init() local 123 tmpl = gst_static_pad_template_get (&muxer_src_template); in gst_encode_bin_init() 126 gst_ghost_pad_new_no_target_from_template ("src", tmpl); in gst_encode_bin_init() 127 gst_object_unref (tmpl); in gst_encode_bin_init()
|
/third_party/gstreamer/gstreamer/docs/random/ |
D | ChangeLog-0.8 | 3 * docs/libs/tmpl/gstcontrol.sgml: 4 * docs/libs/tmpl/gstdparam.sgml: 5 * docs/libs/tmpl/gstdplinint.sgml: 6 * docs/libs/tmpl/gstdpman.sgml: 7 * docs/libs/tmpl/gstdpsmooth.sgml: 8 * docs/libs/tmpl/gstunitconvert.sgml: 202 * docs/gst/tmpl/gstbin.sgml: 282 * docs/libs/tmpl/gstcontrol.sgml: 283 * docs/libs/tmpl/gstdparam.sgml: 284 * docs/libs/tmpl/gstdplinint.sgml: [all …]
|
/third_party/glib/glib/ |
D | gfileutils.h | 142 gchar *g_mkdtemp (gchar *tmpl); 144 gchar *g_mkdtemp_full (gchar *tmpl, 149 gint g_mkstemp (gchar *tmpl); 151 gint g_mkstemp_full (gchar *tmpl, 157 gint g_file_open_tmp (const gchar *tmpl, 161 gchar *g_dir_make_tmp (const gchar *tmpl,
|