Home
last modified time | relevance | path

Searched refs:ifs (Results 1 – 25 of 69) sorted by relevance

123

/third_party/musl/src/network/
Dgetifaddrs.c108 struct ifaddrs_storage *ifs, *ifs0; in netlink_msg_to_ifaddr() local
127 ifs = calloc(1, sizeof(struct ifaddrs_storage) + stats_len); in netlink_msg_to_ifaddr()
128 if (ifs == 0) return -1; in netlink_msg_to_ifaddr()
131 ifs->index = ifi->ifi_index; in netlink_msg_to_ifaddr()
132 ifs->ifa.ifa_flags = ifi->ifi_flags; in netlink_msg_to_ifaddr()
137 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr()
138 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
139 ifs->ifa.ifa_name = ifs->name; in netlink_msg_to_ifaddr()
143 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr()
146 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr()
[all …]
Dif_nameindex.c86 struct if_nameindex *ifs = 0, *d; in if_nameindex() local
96 ifs = malloc(sizeof(struct if_nameindex[ctx->num+1]) + ctx->str_bytes); in if_nameindex()
97 if (!ifs) goto err; in if_nameindex()
99 p = (char*)(ifs + ctx->num + 1); in if_nameindex()
100 for (i = ctx->num, d = ifs, s = ctx->list; i; i--, s++, d++) { in if_nameindex()
113 return ifs; in if_nameindex()
/third_party/musl/porting/liteos_a/user/src/network/
Dgetifaddrs.c117 struct ifaddrs_storage *ifs, *ifs0; in netlink_msg_to_ifaddr() local
136 ifs = calloc(1, sizeof(struct ifaddrs_storage) + stats_len); in netlink_msg_to_ifaddr()
137 if (ifs == 0) return -1; in netlink_msg_to_ifaddr()
140 ifs->index = ifi->ifi_index; in netlink_msg_to_ifaddr()
141 ifs->ifa.ifa_flags = ifi->ifi_flags; in netlink_msg_to_ifaddr()
146 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr()
147 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
148 ifs->ifa.ifa_name = ifs->name; in netlink_msg_to_ifaddr()
152 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr()
155 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr()
[all …]
Dif_nameindex.c87 struct if_nameindex *ifs = 0, *d; in if_nameindex() local
97 ifs = malloc(sizeof(struct if_nameindex[ctx->num+1]) + ctx->str_bytes); in if_nameindex()
98 if (!ifs) goto err; in if_nameindex()
100 p = (char*)(ifs + ctx->num + 1); in if_nameindex()
101 for (i = ctx->num, d = ifs, s = ctx->list; i; i--, s++, d++) { in if_nameindex()
114 return ifs; in if_nameindex()
/third_party/musl/src/network/liteos_a/
Dgetifaddrs.c117 struct ifaddrs_storage *ifs, *ifs0; in netlink_msg_to_ifaddr() local
136 ifs = calloc(1, sizeof(struct ifaddrs_storage) + stats_len); in netlink_msg_to_ifaddr()
137 if (ifs == 0) return -1; in netlink_msg_to_ifaddr()
140 ifs->index = ifi->ifi_index; in netlink_msg_to_ifaddr()
141 ifs->ifa.ifa_flags = ifi->ifi_flags; in netlink_msg_to_ifaddr()
146 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr()
147 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
148 ifs->ifa.ifa_name = ifs->name; in netlink_msg_to_ifaddr()
152 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr()
155 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr()
[all …]
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_fpc_emit.c260 struct i915_fragment_shader *ifs = p->shader; in i915_emit_const1f() local
269 if (ifs->constant_flags[reg] == I915_CONSTFLAG_USER) in i915_emit_const1f()
272 if (!(ifs->constant_flags[reg] & (1 << idx)) || in i915_emit_const1f()
273 ifs->constants[reg][idx] == c0) { in i915_emit_const1f()
274 ifs->constants[reg][idx] = c0; in i915_emit_const1f()
275 ifs->constant_flags[reg] |= 1 << idx; in i915_emit_const1f()
276 if (reg + 1 > ifs->num_constants) in i915_emit_const1f()
277 ifs->num_constants = reg + 1; in i915_emit_const1f()
290 struct i915_fragment_shader *ifs = p->shader; in i915_emit_const2f() local
306 if (ifs->constant_flags[reg] == 0xf || in i915_emit_const2f()
[all …]
Di915_fpc_translate.c844 struct i915_fragment_shader *ifs = p->shader; in i915_translate_token() local
867 ifs->constant_flags[i] = I915_CONSTFLAG_USER; in i915_translate_token()
868 ifs->num_constants = MAX2(ifs->num_constants, i + 1); in i915_translate_token()
904 if (ifs->constant_flags[j] == 0x0) { in i915_translate_token()
905 memcpy(ifs->constants[j], p->immediates[i], in i915_translate_token()
908 ifs->constant_flags[j] = 0xf; /* all four comps used */ in i915_translate_token()
910 ifs->num_constants = MAX2(ifs->num_constants, j + 1); in i915_translate_token()
948 i915_init_compile(struct i915_context *i915, struct i915_fragment_shader *ifs) in i915_init_compile() argument
953 p->shader = ifs; in i915_init_compile()
961 ifs->num_constants = 0; in i915_init_compile()
[all …]
Di915_state.c542 struct i915_fragment_shader *ifs = CALLOC_STRUCT(i915_fragment_shader); in i915_create_fs_state() local
543 if (!ifs) in i915_create_fs_state()
546 ifs->draw_data = draw_create_fragment_shader(i915->draw, templ); in i915_create_fs_state()
554 ifs->state.tokens = nir_to_tgsi_options(s, pipe->screen, &ntt_options); in i915_create_fs_state()
558 ifs->state.tokens = tgsi_dup_tokens(templ->tokens); in i915_create_fs_state()
561 ifs->state.type = PIPE_SHADER_IR_TGSI; in i915_create_fs_state()
563 tgsi_scan_shader(ifs->state.tokens, &ifs->info); in i915_create_fs_state()
566 i915_translate_fragment_program(i915, ifs); in i915_create_fs_state()
568 return ifs; in i915_create_fs_state()
594 struct i915_fragment_shader *ifs = (struct i915_fragment_shader *)shader; in i915_delete_fs_state() local
[all …]
/third_party/lwip/src/api/
Dnetifapi.c114 msg->msg.ifs.index = netif_name_to_index(msg->msg.ifs.name); in netifapi_do_name_to_index()
129 if (!netif_index_to_name(msg->msg.ifs.index, msg->msg.ifs.name, get_curr_process_net_group())) {
131 if (!netif_index_to_name(msg->msg.ifs.index, msg->msg.ifs.name)) {
134 msg->msg.ifs.name[0] = '\0';
343 strncpy(NETIFAPI_VAR_REF(msg).msg.ifs.name, name, NETIF_NAMESIZE - 1);
344 NETIFAPI_VAR_REF(msg).msg.ifs.name[NETIF_NAMESIZE - 1] = '\0';
346 NETIFAPI_VAR_REF(msg).msg.ifs.name = LWIP_CONST_CAST(char *, name);
350 *idx = NETIFAPI_VAR_REF(msg).msg.ifs.index;
372 NETIFAPI_VAR_REF(msg).msg.ifs.index = idx;
374 NETIFAPI_VAR_REF(msg).msg.ifs.name = name;
[all …]
/third_party/mindspore/test/utils/
Dcommon.cpp387 std::ifstream ifs(file); in ReadFile() local
388 if (!ifs.good()) { in ReadFile()
392 if (!ifs.is_open()) { in ReadFile()
393 ifs.close(); in ReadFile()
397 ifs.seekg(0, std::ios::end); in ReadFile()
398 *size = ifs.tellg(); in ReadFile()
402 ifs.close(); in ReadFile()
406 ifs.seekg(0, std::ios::beg); in ReadFile()
407 ifs.read(buf, *size); in ReadFile()
408 ifs.close(); in ReadFile()
/third_party/skia/third_party/externals/angle2/util/capture/
Dframe_capture_test_utils.cpp24 std::ifstream ifs(fileName); in LoadJSONFromFile() local
25 if (!ifs.is_open()) in LoadJSONFromFile()
30 rapidjson::IStreamWrapper inWrapper(ifs); in LoadJSONFromFile()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DShader.cpp1948 uint32_t ifs = 0; // maximum nested if statements. in analyzeLimits() member
2052 ++currentLimits.ifs; in analyzeLimits()
2054 func.limits.ifs = std::max(func.limits.ifs, currentLimits.ifs); in analyzeLimits()
2059 ASSERT(currentLimits.ifs > 0); in analyzeLimits()
2060 currentLimits.ifs--; in analyzeLimits()
2069 ASSERT(currentLimits.ifs == 0); in analyzeLimits()
2109 limits.ifs = std::max(limits.ifs, calleeLimits.ifs); in analyzeLimits()
2115 limits.ifs += func.limits.ifs; in analyzeLimits()
/third_party/vk-gl-cts/android/cts/master/vk-master-2020-03-01/
Dgraphicsfuzz.txt26 dEQP-VK.graphicsfuzz.for-with-ifs-and-return
33 dEQP-VK.graphicsfuzz.loop-nested-ifs
35 dEQP-VK.graphicsfuzz.loops-ifs-continues-call
45 dEQP-VK.graphicsfuzz.nested-ifs-and-return-in-for-loop
52 dEQP-VK.graphicsfuzz.similar-nested-ifs
/third_party/vk-gl-cts/android/cts/main/vk-master-2020-03-01/
Dgraphicsfuzz.txt26 dEQP-VK.graphicsfuzz.for-with-ifs-and-return
33 dEQP-VK.graphicsfuzz.loop-nested-ifs
35 dEQP-VK.graphicsfuzz.loops-ifs-continues-call
45 dEQP-VK.graphicsfuzz.nested-ifs-and-return-in-for-loop
52 dEQP-VK.graphicsfuzz.similar-nested-ifs
/third_party/zlib/os400/
DREADME4004 (i.e.: /path/to/the/zlib/ifs/source/directory)
12 EDTF STMF('/path/to/the/zlib/ifs/source/directory/os400/make.sh')
20 cd /path/to/the/zlib/ifs/source/directory/os400
/third_party/skia/tools/skqp/
Djitter_gms.cpp101 std::ifstream ifs(argv[1]); in main() local
102 if (ifs.is_open()) { in main()
104 while (std::getline(ifs, str)) { in main()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc_finalize.cpp268 unsigned ifs, loops; in run_on() local
269 unsigned elems = get_stack_depth(r, loops, ifs); in run_on()
279 unsigned ifs, loops; in run_on() local
280 get_stack_depth(r, loops, ifs); in run_on()
891 unsigned &ifs, unsigned add) { in get_stack_depth() argument
898 ifs = 0; in get_stack_depth()
904 ++ifs; in get_stack_depth()
909 stack_elements += (loops * ctx.stack_entry_size) + ifs; in get_stack_depth()
945 unsigned ifs = 0; in update_nstack() local
946 unsigned elems = r ? get_stack_depth(r, loops, ifs, add) : add; in update_nstack()
/third_party/icu/icu4c/source/tools/toolutil/
Dtoolutil.cpp228 std::ifstream ifs(goldenFilePath, std::ifstream::in); in uprv_compareGoldenFiles() local
231 while (ifs.get(c) && pos < bufferLen) { in uprv_compareGoldenFiles()
238 if (pos == bufferLen && ifs.eof()) { in uprv_compareGoldenFiles()
242 ifs.close(); in uprv_compareGoldenFiles()
/third_party/node/deps/icu-small/source/tools/toolutil/
Dtoolutil.cpp228 std::ifstream ifs(goldenFilePath, std::ifstream::in); in uprv_compareGoldenFiles() local
231 while (ifs.get(c) && pos < bufferLen) { in uprv_compareGoldenFiles()
238 if (pos == bufferLen && ifs.eof()) { in uprv_compareGoldenFiles()
242 ifs.close(); in uprv_compareGoldenFiles()
/third_party/rust/crates/clap/src/builder/
Darg.rs2863 ifs: impl IntoIterator< in default_value_ifs()
2871 for (arg, predicate, default) in ifs { in default_value_ifs()
2885 ifs: impl IntoIterator< in default_value_ifs_os()
2893 self.default_value_ifs(ifs) in default_value_ifs_os()
3274 ifs: impl IntoIterator<Item = (impl Into<Id>, impl Into<OsStr>)>, in required_if_eq_any()
3277 .extend(ifs.into_iter().map(|(id, val)| (id.into(), val.into()))); in required_if_eq_any()
3355 ifs: impl IntoIterator<Item = (impl Into<Id>, impl Into<OsStr>)>, in required_if_eq_all()
3358 .extend(ifs.into_iter().map(|(id, val)| (id.into(), val.into()))); in required_if_eq_all()
3496 ifs: impl IntoIterator<Item = (impl Into<ArgPredicate>, impl Into<Id>)>, in requires_ifs()
3499 .extend(ifs.into_iter().map(|(val, arg)| (val.into(), arg.into()))); in requires_ifs()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Devents.c2101 struct wpa_supplicant *ifs; in wpa_supplicant_event_scan_results() local
2128 dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, in wpa_supplicant_event_scan_results()
2130 if (ifs != wpa_s) { in wpa_supplicant_event_scan_results()
2132 "sibling", ifs->ifname); in wpa_supplicant_event_scan_results()
2133 res = _wpa_supplicant_event_scan_results(ifs, data, 0, in wpa_supplicant_event_scan_results()
3717 struct wpa_supplicant *ifs; in wpa_supplicant_update_channel_list() local
3726 for (ifs = wpa_s; ifs->parent && ifs != ifs->parent; ifs = ifs->parent) in wpa_supplicant_update_channel_list()
3730 wpa_msg(ifs, MSG_INFO, in wpa_supplicant_update_channel_list()
3740 dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, in wpa_supplicant_update_channel_list()
3743 ifs->ifname); in wpa_supplicant_update_channel_list()
[all …]
/third_party/rust/crates/nix/src/net/
Dif_.rs390 let ifs = self.ptr.as_ptr() as *const Interface; in to_slice() localVariable
392 unsafe { std::slice::from_raw_parts(ifs, len) } in to_slice()
453 let ifs = libc::if_nameindex(); in if_nameindex() localVariable
454 let ptr = NonNull::new(ifs).ok_or_else(Error::last)?; in if_nameindex()
/third_party/rust/crates/clap/clap_complete/tests/snapshots/
Dregister_minimal.bash13 …COMPREPLY=( $("my-app" complete --index ${COMP_CWORD} --type ${COMP_TYPE} ${SPACE_ARG} --ifs="$IFS…
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Devents.c2625 struct wpa_supplicant *ifs; in wpa_supplicant_event_scan_results() local
2652 dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, in wpa_supplicant_event_scan_results()
2654 if (ifs != wpa_s) { in wpa_supplicant_event_scan_results()
2656 "sibling", ifs->ifname); in wpa_supplicant_event_scan_results()
2657 res = _wpa_supplicant_event_scan_results(ifs, data, 0, in wpa_supplicant_event_scan_results()
4738 struct wpa_supplicant *ifs; in wpa_supplicant_update_channel_list() local
4747 for (ifs = wpa_s; ifs->parent && ifs != ifs->parent; ifs = ifs->parent) in wpa_supplicant_update_channel_list()
4751 wpa_msg(ifs, MSG_INFO, in wpa_supplicant_update_channel_list()
4761 dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, in wpa_supplicant_update_channel_list()
4764 ifs->ifname); in wpa_supplicant_update_channel_list()
[all …]
/third_party/lwip/src/include/lwip/priv/
Dapi_msg.h267 } ifs; member

123