Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 25 of 91) sorted by relevance

1234

/external/deqp/framework/qphelper/
DqpXmlWriter.c56 const char* repl = DE_NULL; in writeEscaped() local
60 case '<': repl = "&lt;"; break; in writeEscaped()
61 case '>': repl = "&gt;"; break; in writeEscaped()
62 case '&': repl = "&amp;"; break; in writeEscaped()
63 case '\'': repl = "&apos;"; break; in writeEscaped()
64 case '"': repl = "&quot;"; break; in writeEscaped()
67 case 1: repl = "&lt;SOH&gt;"; break; in writeEscaped()
68 case 2: repl = "&lt;STX&gt;"; break; in writeEscaped()
69 case 3: repl = "&lt;ETX&gt;"; break; in writeEscaped()
70 case 4: repl = "&lt;EOT&gt;"; break; in writeEscaped()
[all …]
/external/libnl/lib/netfilter/
Dct_obj.c631 int nfnl_ct_set_src(struct nfnl_ct *ct, int repl, struct nl_addr *addr) in nfnl_ct_set_src() argument
633 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_set_src()
634 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC; in nfnl_ct_set_src()
638 int nfnl_ct_set_dst(struct nfnl_ct *ct, int repl, struct nl_addr *addr) in nfnl_ct_set_dst() argument
640 struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_set_dst()
641 int attr = repl ? CT_ATTR_REPL_DST : CT_ATTR_ORIG_DST; in nfnl_ct_set_dst()
645 struct nl_addr *nfnl_ct_get_src(const struct nfnl_ct *ct, int repl) in nfnl_ct_get_src() argument
647 const struct nfnl_ct_dir *dir = repl ? &ct->ct_repl : &ct->ct_orig; in nfnl_ct_get_src()
648 int attr = repl ? CT_ATTR_REPL_SRC : CT_ATTR_ORIG_SRC; in nfnl_ct_get_src()
654 struct nl_addr *nfnl_ct_get_dst(const struct nfnl_ct *ct, int repl) in nfnl_ct_get_dst() argument
[all …]
Dct.c119 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_ip() argument
133 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
142 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
151 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
160 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
174 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_proto() argument
183 if (!repl && tb[CTA_PROTO_NUM]) in ct_parse_proto()
186 nfnl_ct_set_src_port(ct, repl, in ct_parse_proto()
189 nfnl_ct_set_dst_port(ct, repl, in ct_parse_proto()
194 nfnl_ct_set_icmp_id(ct, repl, in ct_parse_proto()
[all …]
/external/libnetfilter_conntrack/src/conntrack/
Dobjopt.c19 other = &ct->repl; in __autocomplete()
22 this = &ct->repl; in __autocomplete()
57 ct->snat.min_ip.v4 = ct->repl.dst.v4; in setobjopt_undo_snat()
59 ct->repl.dst.v4 = ct->head.orig.src.v4; in setobjopt_undo_snat()
63 memcpy(&ct->snat.min_ip.v6, &ct->repl.dst.v6, in setobjopt_undo_snat()
67 memcpy(&ct->repl.dst.v6, &ct->head.orig.src.v6, in setobjopt_undo_snat()
80 ct->dnat.min_ip.v4 = ct->repl.src.v4; in setobjopt_undo_dnat()
82 ct->repl.src.v4 = ct->head.orig.dst.v4; in setobjopt_undo_dnat()
85 memcpy(&ct->dnat.min_ip.v6, &ct->repl.src.v6, in setobjopt_undo_dnat()
89 memcpy(&ct->repl.src.v6, &ct->head.orig.dst.v6, in setobjopt_undo_dnat()
[all …]
Dgrp_setter.c51 ct->repl.src.v4 = this->src; in set_attr_grp_repl_ipv4()
52 ct->repl.dst.v4 = this->dst; in set_attr_grp_repl_ipv4()
53 ct->repl.l3protonum = AF_INET; in set_attr_grp_repl_ipv4()
67 memcpy(&ct->repl.src.v6, this->src, sizeof(uint32_t)*4); in set_attr_grp_repl_ipv6()
68 memcpy(&ct->repl.dst.v6, this->dst, sizeof(uint32_t)*4); in set_attr_grp_repl_ipv6()
69 ct->repl.l3protonum = AF_INET6; in set_attr_grp_repl_ipv6()
82 ct->repl.l4src.all = this->sport; in set_attr_grp_repl_port()
83 ct->repl.l4dst.all = this->dport; in set_attr_grp_repl_port()
107 ct->repl.l4dst.icmp.type = rtype - 1; in set_attr_grp_icmp()
109 ct->repl.l4dst.icmp.type = 255; /* -EINVAL */ in set_attr_grp_icmp()
[all …]
Dgrp_getter.c22 this->src = ct->repl.src.v4; in get_attr_grp_repl_ipv4()
23 this->dst = ct->repl.dst.v4; in get_attr_grp_repl_ipv4()
36 memcpy(this->src, &ct->repl.src.v6, sizeof(uint32_t)*4); in get_attr_grp_repl_ipv6()
37 memcpy(this->dst, &ct->repl.dst.v6, sizeof(uint32_t)*4); in get_attr_grp_repl_ipv6()
50 this->sport = ct->repl.l4src.all; in get_attr_grp_repl_port()
51 this->dport = ct->repl.l4dst.all; in get_attr_grp_repl_port()
115 memcpy(&this->addr, &ct->repl.src, sizeof(ct->repl.src)); in get_attr_grp_repl_addr_src()
122 memcpy(&this->addr, &ct->repl.dst, sizeof(ct->repl.dst)); in get_attr_grp_repl_addr_dst()
Dcompare.c188 return (ct1->repl.l3protonum == ct2->repl.l3protonum); in cmp_repl_l3proto()
196 return (ct1->repl.l4src.all == ct2->repl.l4src.all); in cmp_repl_port_src()
204 return (ct1->repl.l4dst.all == ct2->repl.l4dst.all); in cmp_repl_port_dst()
212 if (ct1->repl.protonum != ct2->repl.protonum) in cmp_repl_l4proto()
215 switch(ct1->repl.protonum) { in cmp_repl_l4proto()
246 return (ct1->repl.src.v4 == ct2->repl.src.v4);} in cmp_repl_ipv4_src()
253 return (ct1->repl.dst.v4 == ct2->repl.dst.v4);} in cmp_repl_ipv4_dst()
260 return (memcmp(&ct1->repl.src.v6, &ct2->repl.src.v6, in cmp_repl_ipv6_src()
269 return (memcmp(&ct1->repl.dst.v6, &ct2->repl.dst.v6, in cmp_repl_ipv6_dst()
Dcopy.c27 dest->repl.src.v4 = orig->repl.src.v4; in copy_attr_repl_ipv4_src()
33 dest->repl.dst.v4 = orig->repl.dst.v4; in copy_attr_repl_ipv4_dst()
55 memcpy(&dest->repl.src, in copy_attr_repl_ipv6_src()
56 &orig->repl.src, in copy_attr_repl_ipv6_src()
63 memcpy(&dest->repl.dst, in copy_attr_repl_ipv6_dst()
64 &orig->repl.dst, in copy_attr_repl_ipv6_dst()
83 dest->repl.l4src.all = orig->repl.l4src.all; in copy_attr_repl_port_src()
89 dest->repl.l4dst.all = orig->repl.l4dst.all; in copy_attr_repl_port_dst()
101 dest->repl.zone = orig->repl.zone; in copy_attr_repl_zone()
136 dest->repl.l3protonum = orig->repl.l3protonum; in copy_attr_repl_l3proto()
[all …]
Dgetter.c24 return &ct->repl.src.v4; in get_attr_repl_ipv4_src()
29 return &ct->repl.dst.v4; in get_attr_repl_ipv4_dst()
44 return &ct->repl.src.v6; in get_attr_repl_ipv6_src()
49 return &ct->repl.dst.v6; in get_attr_repl_ipv6_dst()
64 return &ct->repl.l4src.all; in get_attr_repl_port_src()
69 return &ct->repl.l4dst.all; in get_attr_repl_port_dst()
79 return &ct->repl.zone; in get_attr_repl_zone()
104 return &ct->repl.l3protonum; in get_attr_repl_l3proto()
114 return &ct->repl.protonum; in get_attr_repl_l4proto()
Dsetter.c55 ct->repl.src.v4 = *((uint32_t *) value); in set_attr_repl_ipv4_src()
61 ct->repl.dst.v4 = *((uint32_t *) value); in set_attr_repl_ipv4_dst()
79 memcpy(&ct->repl.src.v6, value, sizeof(uint32_t)*4); in set_attr_repl_ipv6_src()
85 memcpy(&ct->repl.dst.v6, value, sizeof(uint32_t)*4); in set_attr_repl_ipv6_dst()
103 ct->repl.l4src.all = *((uint16_t *) value); in set_attr_repl_port_src()
109 ct->repl.l4dst.all = *((uint16_t *) value); in set_attr_repl_port_dst()
121 ct->repl.zone = *((uint16_t *) value); in set_attr_repl_zone()
145 ct->repl.l4dst.icmp.type = rtype - 1; in set_attr_icmp_type()
147 ct->repl.l4dst.icmp.type = 255; /* will fail with -EINVAL */ in set_attr_icmp_type()
155 ct->repl.l4dst.icmp.code = *((uint8_t *) value); in set_attr_icmp_code()
[all …]
/external/clang/www/
Dbuiltins.py147 def report_repl(builtin, repl): argument
148 …iltin %s used, replaced with %s\n" % (fileinput.filename(), fileinput.filelineno(), builtin, repl))
154 for builtin, repl in repl_map.iteritems():
156 line = line.replace(builtin, repl)
157 report_repl(builtin, repl)
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DMacroExpander.cpp318 Token &repl = replacements->front(); in expandMacro() local
321 repl.text = std::to_string(identifier.location.line); in expandMacro()
325 repl.text = std::to_string(identifier.location.file); in expandMacro()
342 Token &repl = replacements->at(i); in expandMacro() local
347 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro()
348 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro()
350 repl.location = replacementLocation; in expandMacro()
481 const Token &repl = macro.replacements[i]; in replaceMacroParams() local
482 if (repl.type != Token::IDENTIFIER) in replaceMacroParams()
484 replacements->push_back(repl); in replaceMacroParams()
[all …]
/external/ltp/testcases/cve/
Dcve-2016-4997.c86 struct ipt_replace repl; member
114 p.repl.num_entries = 2; in run()
115 p.repl.num_counters = 1; in run()
116 p.repl.size = sizeof(struct payload); in run()
117 p.repl.valid_hooks = 0; in run()
/external/iptables/libiptc/
Dlibiptc.c1118 static inline int iptcc_compile_rule (struct xtc_handle *h, STRUCT_REPLACE *repl, struct rule_head … in iptcc_compile_rule() argument
1137 memcpy((char *)repl->entries+r->offset, r->entry, r->size); in iptcc_compile_rule()
1143 static int iptcc_compile_chain(struct xtc_handle *h, STRUCT_REPLACE *repl, struct chain_head *c) in iptcc_compile_chain() argument
1153 head = (void *)repl->entries + c->head_offset; in iptcc_compile_chain()
1161 repl->hook_entry[c->hooknum-1] = c->head_offset; in iptcc_compile_chain()
1162 repl->underflow[c->hooknum-1] = c->foot_offset; in iptcc_compile_chain()
1167 ret = iptcc_compile_rule(h, repl, r); in iptcc_compile_chain()
1173 foot = (void *)repl->entries + c->foot_offset; in iptcc_compile_chain()
1249 static int iptcc_compile_table(struct xtc_handle *h, STRUCT_REPLACE *repl) in iptcc_compile_table() argument
1256 int ret = iptcc_compile_chain(h, repl, c); in iptcc_compile_table()
[all …]
/external/mesa3d/src/compiler/glsl/
Dopt_function_inlining.cpp40 ir_dereference *repl);
341 ir_variable_replacement_visitor(ir_variable *orig, ir_dereference *repl) in ir_variable_replacement_visitor() argument
344 this->repl = repl; in ir_variable_replacement_visitor()
360 ir_dereference *repl; member in ir_variable_replacement_visitor
368 *deref = this->repl->clone(ralloc_parent(*deref), NULL); in replace_deref()
426 ir_dereference *repl) in do_variable_replacement() argument
428 ir_variable_replacement_visitor v(orig, repl); in do_variable_replacement()
/external/python/cpython2/Lib/
Dre.py148 def sub(pattern, repl, string, count=0, flags=0): argument
155 return _compile(pattern, flags).sub(repl, string, count)
157 def subn(pattern, repl, string, count=0, flags=0): argument
166 return _compile(pattern, flags).subn(repl, string, count)
269 repl, pattern = key
271 p = sre_parse.parse_template(repl, pattern)
/external/python/cpython3/Lib/
Dre.py184 def sub(pattern, repl, string, count=0, flags=0): argument
191 return _compile(pattern, flags).sub(repl, string, count)
193 def subn(pattern, repl, string, count=0, flags=0): argument
202 return _compile(pattern, flags).subn(repl, string, count)
315 def _compile_repl(repl, pattern): argument
317 return sre_parse.parse_template(repl, pattern)
/external/python/cpython2/Lib/idlelib/
DReplaceDialog.py65 def _replace_expand(self, m, repl): argument
70 new = m.expand(repl)
72 self.engine.report_error(repl, 'Invalid Replace Expression')
75 new = repl
82 repl = self.replvar.get()
106 new = self._replace_expand(m, repl)
/external/selinux/libsemanage/src/
Dgenhomedircon.c510 static char *replace_all(const char *str, const replacement_pair_t * repl) in replace_all() argument
515 if (!str || !repl) in replace_all()
519 for (i = 0; retval != NULL && repl[i].search_for; i++) { in replace_all()
520 retval2 = semanage_str_replace(repl[i].search_for, in replace_all()
521 repl[i].replace_with, retval, 0); in replace_all()
575 const replacement_pair_t *repl) in write_replacements() argument
580 line = replace_all(tpl->data, repl); in write_replacements()
597 semanage_list_t *tpl, const replacement_pair_t *repl, in write_contexts() argument
607 line = replace_all(tpl->data, repl); in write_contexts()
681 replacement_pair_t repl[] = { in write_home_dir_context() local
[all …]
/external/python/cpython3/Lib/idlelib/
Dreplace.py75 def _replace_expand(self, m, repl): argument
80 new = m.expand(repl)
82 self.engine.report_error(repl, 'Invalid Replace Expression')
85 new = repl
94 repl = self.replvar.get()
118 new = self._replace_expand(m, repl)
/external/tensorflow/tensorflow/contrib/py2tf/pyct/
Dtemplates.py59 repl = self.replacements[node.name]
60 if not isinstance(repl, (gast.Name, ast.Name)):
63 repl)
64 node.name = repl.id
/external/llvm/test/MC/Mips/dsp/
Dinvalid.s32 repl.qb $2, -1 # CHECK: :[[@LINE]]:15: error: expected 8-bit unsigned immediate
33 repl.qb $2, 256 # CHECK: :[[@LINE]]:15: error: expected 8-bit unsigned immediate
34 repl.ph $2, -1 # CHECK: :[[@LINE]]:15: error: expected 10-bit unsigned immediate
35 repl.ph $2, 1024 # CHECK: :[[@LINE]]:15: error: expected 10-bit unsigned immediate
/external/iproute2/ip/
Dipseg6.c128 int repl = 0, dump = 0; in seg6_do_cmd() local
161 repl = 1; in seg6_do_cmd()
165 if (!repl && !dump) { in seg6_do_cmd()
168 } else if (repl) { in seg6_do_cmd()
/external/python/cpython3/Modules/clinic/
D_sre.c.h320 _sre_SRE_Pattern_sub_impl(PatternObject *self, PyObject *repl,
329 PyObject *repl; in _sre_SRE_Pattern_sub() local
334 &repl, &string, &count)) { in _sre_SRE_Pattern_sub()
337 return_value = _sre_SRE_Pattern_sub_impl(self, repl, string, count); in _sre_SRE_Pattern_sub()
353 _sre_SRE_Pattern_subn_impl(PatternObject *self, PyObject *repl,
362 PyObject *repl; in _sre_SRE_Pattern_subn() local
367 &repl, &string, &count)) { in _sre_SRE_Pattern_subn()
370 return_value = _sre_SRE_Pattern_subn_impl(self, repl, string, count); in _sre_SRE_Pattern_subn()
/external/tensorflow/tensorflow/contrib/py2tf/converters/
Dfor_loops.py69 repl = templates.replace(
76 return repl

1234