Home
last modified time | relevance | path

Searched refs:ifs (Results 1 - 25 of 45) sorted by relevance

12

/third_party/musl/src/network/
H A Dgetifaddrs.c112 struct ifaddrs_storage *ifs, *ifs0; in netlink_msg_to_ifaddr() local
134 ifs = calloc(1, sizeof(struct ifaddrs_storage) + stats_len); in netlink_msg_to_ifaddr()
135 if (ifs == 0) return -1; in netlink_msg_to_ifaddr()
138 ifs->index = ifi->ifi_index; in netlink_msg_to_ifaddr()
139 ifs->ifa.ifa_flags = ifi->ifi_flags; in netlink_msg_to_ifaddr()
144 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr()
145 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
146 ifs->ifa.ifa_name = ifs->name; in netlink_msg_to_ifaddr()
150 copy_lladdr(&ifs in netlink_msg_to_ifaddr()
[all...]
H A 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/src/network/liteos_a/
H 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 in netlink_msg_to_ifaddr()
[all...]
/third_party/musl/porting/liteos_a/user/src/network/
H 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 in netlink_msg_to_ifaddr()
[all...]
H A 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/mesa3d/src/gallium/drivers/i915/
H A 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 in i915_emit_const2f()
329 struct i915_fragment_shader *ifs = p->shader; i915_emit_const4f() local
[all...]
H A 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
997 struct i915_fragment_shader *ifs = p->shader; i915_fini_compile() local
[all...]
H A 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; i915_delete_fs_state() local
[all...]
/third_party/lwip/src/api/
H A Dnetifapi.c114 msg->msg.ifs.index = netif_name_to_index(msg->msg.ifs.name);
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
[all...]
/third_party/libuv/test/
H A Dtest-tcp-connect6-error.c79 uv_interface_address_t* ifs; in TEST_IMPL() local
99 ASSERT_OK(uv_interface_addresses(&ifs, &n)); in TEST_IMPL()
100 for (p = ifs; p < &ifs[n]; p++) in TEST_IMPL()
104 ok = (p < &ifs[n]); in TEST_IMPL()
105 uv_free_interface_addresses(ifs, n); in TEST_IMPL()
/third_party/mindspore/test/utils/
H A Dcommon.cpp387 std::ifstream ifs(file); in ReadFile()
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 in ReadFile()
[all...]
/third_party/skia/third_party/externals/angle2/util/capture/
H A Dframe_capture_test_utils.cpp24 std::ifstream ifs(fileName); in LoadJSONFromFile()
25 if (!ifs.is_open()) in LoadJSONFromFile()
30 rapidjson::IStreamWrapper inWrapper(ifs); in LoadJSONFromFile()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
H A 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()
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, ad in update_nstack()
890 get_stack_depth(node *n, unsigned &loops, unsigned &ifs, unsigned add) get_stack_depth() argument
[all...]
/third_party/skia/tools/skqp/
H A Djitter_gms.cpp101 std::ifstream ifs(argv[1]); in main()
102 if (ifs.is_open()) { in main()
104 while (std::getline(ifs, str)) { in main()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
H A DShader.cpp1948 uint32_t ifs = 0; // maximum nested if statements.
2052 ++currentLimits.ifs;
2054 func.limits.ifs = std::max(func.limits.ifs, currentLimits.ifs);
2059 ASSERT(currentLimits.ifs > 0);
2060 currentLimits.ifs--;
2069 ASSERT(currentLimits.ifs == 0);
2109 limits.ifs = std::max(limits.ifs, calleeLimit
[all...]
/third_party/node/deps/icu-small/source/tools/toolutil/
H A Dtoolutil.cpp228 std::ifstream ifs(goldenFilePath, std::ifstream::in); in uprv_compareGoldenFiles()
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/icu/icu4c/source/tools/toolutil/
H A Dtoolutil.cpp228 std::ifstream ifs(goldenFilePath, std::ifstream::in); in uprv_compareGoldenFiles()
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/
H A 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 in requires_ifs()
[all...]
/third_party/rust/crates/clap/clap_complete/tests/snapshots/
H A Dregister_minimal.bash13 COMPREPLY=( $("my-app" complete --index ${COMP_CWORD} --type ${COMP_TYPE} ${SPACE_ARG} --ifs="$IFS" -- "${COMP_WORDS[@]}") )
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A 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 in wpa_supplicant_update_channel_list()
[all...]
H A Dp2p_supplicant.c3784 struct wpa_supplicant *ifs; in wpas_is_concurrent_session_active() local
3786 for (ifs = wpa_s->global->ifaces; ifs; ifs = ifs->next) { in wpas_is_concurrent_session_active()
3787 if (ifs == wpa_s) in wpas_is_concurrent_session_active()
3789 if (ifs->wpa_state > WPA_ASSOCIATED) in wpas_is_concurrent_session_active()
8152 struct wpa_supplicant *ifs; in wpas_p2p_search_delay() local
8161 dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, in wpas_p2p_search_delay()
8163 if (ifs ! in wpas_p2p_search_delay()
9457 struct wpa_supplicant *ifs; wpas_p2p_consider_moving_gos() local
[all...]
/third_party/lwip/src/include/lwip/priv/
H A Dapi_msg.h267 } ifs; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Devents.c2666 struct wpa_supplicant *ifs; in wpa_supplicant_event_scan_results() local
2693 dl_list_for_each(ifs, &wpa_s->radio->ifaces, struct wpa_supplicant, in wpa_supplicant_event_scan_results()
2695 if (ifs != wpa_s) { in wpa_supplicant_event_scan_results()
2697 "sibling", ifs->ifname); in wpa_supplicant_event_scan_results()
2698 res = _wpa_supplicant_event_scan_results(ifs, data, 0, in wpa_supplicant_event_scan_results()
5202 struct wpa_supplicant *ifs;
5211 for (ifs = wpa_s; ifs->parent && ifs != ifs
[all...]
/third_party/rust/crates/clap/clap_complete/src/
H A Ddynamic.rs38 ifs: Option<String>,
112 write!(&mut buf, "{}", args.ifs.as_deref().unwrap_or("\n"))?; in try_complete()
187 COMPREPLY=( $("COMPLETER" complete --index ${COMP_CWORD} --type ${COMP_TYPE} ${SPACE_ARG} --ifs="$IFS" -- "${COMP_WORDS[@]}") ) in register()
/third_party/rust/crates/nix/src/net/
H A Dif_.rs390 let ifs = self.ptr.as_ptr() as *const Interface; in iter()
392 unsafe { std::slice::from_raw_parts(ifs, len) } in iter()
453 let ifs = libc::if_nameindex(); in if_nameindex()
454 let ptr = NonNull::new(ifs).ok_or_else(Error::last)?; in if_nameindex()

Completed in 56 milliseconds

12