Home
last modified time | relevance | path

Searched refs:mesh (Results 1 – 25 of 82) sorted by relevance

1234

/freebsd-13-stable/contrib/unbound/services/
HDmesh.c193 struct mesh_area* mesh = calloc(1, sizeof(struct mesh_area)); in mesh_create() local
194 if(!mesh) { in mesh_create()
198 mesh->histogram = timehist_setup(); in mesh_create()
199 mesh->qbuf_bak = sldns_buffer_new(env->cfg->msg_buffer_size); in mesh_create()
200 if(!mesh->histogram || !mesh->qbuf_bak) { in mesh_create()
201 free(mesh); in mesh_create()
205 mesh->mods = *stack; in mesh_create()
206 mesh->env = env; in mesh_create()
207 rbtree_init(&mesh->run, &mesh_state_compare); in mesh_create()
208 rbtree_init(&mesh->all, &mesh_state_compare); in mesh_create()
[all …]
HDmesh.h284 void mesh_delete(struct mesh_area* mesh);
304 void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo,
326 int mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo,
344 void mesh_new_prefetch(struct mesh_area* mesh, struct query_info* qinfo,
358 void mesh_report_reply(struct mesh_area* mesh, struct outbound_entry* e,
456 void mesh_walk_supers(struct mesh_area* mesh, struct mesh_state* mstate);
502 void mesh_delete_all(struct mesh_area* mesh);
516 struct mesh_state* mesh_area_find(struct mesh_area* mesh,
570 void mesh_run(struct mesh_area* mesh, struct mesh_state* mstate,
578 void mesh_stats(struct mesh_area* mesh, const char* str);
[all …]
HDmodstack.c337 int m = modstack_find(&env->mesh->mods, name);
339 fptr_ok(fptr_whitelist_mod_get_mem(env->mesh->
341 return (*env->mesh->mods.mod[m]->get_mem)(env, m);
/freebsd-13-stable/usr.sbin/bsdinstall/partedit/
HDscripted.c41 provider_for_name(struct gmesh *mesh, const char *name) in provider_for_name() argument
47 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in provider_for_name()
70 struct gmesh mesh; in part_config() local
77 error = geom_gettree(&mesh); in part_config()
80 if (provider_for_name(&mesh, disk) == NULL) { in part_config()
82 geom_deletetree(&mesh); in part_config()
87 LIST_FOREACH(classp, &mesh.lg_class, lg_class) in part_config()
111 geom_deletetree(&mesh); in part_config()
112 error = geom_gettree(&mesh); in part_config()
120 wizard_makeparts(&mesh, disk, "ufs", 0); in part_config()
[all …]
HDpart_wizard.c44 static char *wizard_partition(struct gmesh *mesh, const char *disk);
51 struct gmesh mesh; in part_wizard() local
60 error = geom_gettree(&mesh); in part_wizard()
65 disk = boot_disk_select(&mesh); in part_wizard()
67 geom_deletetree(&mesh); in part_wizard()
73 schemeroot = wizard_partition(&mesh, disk); in part_wizard()
75 geom_deletetree(&mesh); in part_wizard()
81 error = geom_gettree(&mesh); in part_wizard()
87 error = wizard_makeparts(&mesh, schemeroot, fstype, 1); in part_wizard()
89 geom_deletetree(&mesh); in part_wizard()
[all …]
HDpartedit.c48 static int apply_changes(struct gmesh *mesh);
49 static void apply_workaround(struct gmesh *mesh);
50 static struct partedit_item *read_geom_mesh(struct gmesh *mesh, int *nitems);
60 struct gmesh mesh; in sigint_handler() local
63 if (geom_gettree(&mesh) == 0) { in sigint_handler()
64 gpart_revert_all(&mesh); in sigint_handler()
65 geom_deletetree(&mesh); in sigint_handler()
79 struct gmesh mesh; in main() local
126 error = geom_gettree(&mesh); in main()
128 items = read_geom_mesh(&mesh, &nitems); in main()
[all …]
HDpartedit.h59 char *boot_disk_select(struct gmesh *mesh);
60 int wizard_makeparts(struct gmesh *mesh, const char *disk, const char *fstype,
72 void gpart_revert_all(struct gmesh *mesh);
73 void gpart_commit(struct gmesh *mesh);
/freebsd-13-stable/lib/libefivar/
HDefivar-dp-xlate.c60 geom_pp_attr(struct gmesh *mesh, struct gprovider *pp, const char *attr) in geom_pp_attr() argument
73 find_provider_by_efimedia(struct gmesh *mesh, const char *efimedia) in find_provider_by_efimedia() argument
83 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_provider_by_efimedia()
97 val = geom_pp_attr(mesh, pp, "efimedia"); in find_provider_by_efimedia()
109 find_provider_by_name(struct gmesh *mesh, const char *name) in find_provider_by_name() argument
115 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_provider_by_name()
129 efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char **relpath, char **abspath) in efi_hd_to_unix() argument
172 pp = find_provider_by_efimedia(mesh, buf); in efi_hd_to_unix()
220 LIST_FOREACH(glabel, &mesh->lg_class, lg_class) { in efi_hd_to_unix()
350 struct gmesh mesh; in efivar_device_path_to_unix_path() local
[all …]
/freebsd-13-stable/contrib/ofed/opensm/opensm/
HDosm_mesh.c198 mesh_t *mesh; member
674 static void classify_switch(lash_t *p_lash, mesh_t *mesh, int sw) in classify_switch() argument
686 for (i = 0; i < mesh->num_class; i++) { in classify_switch()
687 s1 = p_lash->switches[mesh->class_type[i]]; in classify_switch()
692 mesh->class_count[i]++; in classify_switch()
696 mesh->class_type[mesh->num_class] = sw; in classify_switch()
697 mesh->class_count[mesh->num_class] = 1; in classify_switch()
698 mesh->num_class++; in classify_switch()
778 static int get_local_geometry(lash_t *p_lash, mesh_t *mesh) in get_local_geometry() argument
806 classify_switch(p_lash, mesh, sw); in get_local_geometry()
[all …]
/freebsd-13-stable/contrib/unbound/daemon/
HDstats.c99 stats->sum_query_list_size += worker->env.mesh->all.count; in server_stats_querymiss()
100 if((long long)worker->env.mesh->all.count > stats->max_query_list_size) in server_stats_querymiss()
101 stats->max_query_list_size = (long long)worker->env.mesh->all.count; in server_stats_querymiss()
108 stats->sum_query_list_size += worker->env.mesh->all.count; in server_stats_prefetch()
109 if((long long)worker->env.mesh->all.count > stats->max_query_list_size) in server_stats_prefetch()
110 stats->max_query_list_size = (long long)worker->env.mesh->all.count; in server_stats_prefetch()
132 (unsigned)worker->env.mesh->stats_dropped, in server_stats_log()
133 (unsigned)worker->env.mesh->stats_jostled); in server_stats_log()
143 int m = modstack_find(&worker->env.mesh->mods, "subnetcache"); in set_subnet_stats()
168 int m = modstack_find(&worker->env.mesh->mods, "validator"); in set_neg_cache_stats()
[all …]
HDworker.c124 size_t total, front, back, mesh, msg, rrset, infra, ac, superac; in worker_mem_report() local
137 mesh = mesh_get_mem(worker->env.mesh); in worker_mem_report()
143 for(i=0; i<worker->env.mesh->mods.num; i++) { in worker_mem_report()
144 fptr_ok(fptr_whitelist_mod_get_mem(worker->env.mesh-> in worker_mem_report()
146 if(strcmp(worker->env.mesh->mods.mod[i]->name, "validator")==0) in worker_mem_report()
147 val += (*worker->env.mesh->mods.mod[i]->get_mem) in worker_mem_report()
150 else if(strcmp(worker->env.mesh->mods.mod[i]->name, in worker_mem_report()
152 subnet += (*worker->env.mesh->mods.mod[i]->get_mem) in worker_mem_report()
155 else iter += (*worker->env.mesh->mods.mod[i]->get_mem) in worker_mem_report()
173 total = front+back+mesh+msg+rrset+infra+iter+val+ac+superac+me; in worker_mem_report()
[all …]
/freebsd-13-stable/sbin/geom/core/
HDgeom.c668 find_geom_by_provider(struct gmesh *mesh, const char *name) in find_geom_by_provider() argument
674 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_geom_by_provider()
687 compute_tree_width_geom(struct gmesh *mesh, struct ggeom *gp, int indent) in compute_tree_width_geom() argument
698 LIST_FOREACH(classp2, &mesh->lg_class, lg_class) { in compute_tree_width_geom()
704 width = compute_tree_width_geom(mesh, in compute_tree_width_geom()
717 compute_tree_width(struct gmesh *mesh) in compute_tree_width() argument
725 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in compute_tree_width()
729 width = compute_tree_width_geom(mesh, gp, 0); in compute_tree_width()
739 show_tree_geom(struct gmesh *mesh, struct ggeom *gp, int indent, int width) in show_tree_geom() argument
759 LIST_FOREACH(classp2, &mesh->lg_class, lg_class) { in show_tree_geom()
[all …]
/freebsd-13-stable/lib/geom/part/
HDgeom_part.c197 find_class(struct gmesh *mesh, const char *name) in find_class() argument
201 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_class()
322 struct gmesh mesh; in gpart_autofill_resize() local
341 error = geom_gettree_geom(&mesh, s, g, 1); in gpart_autofill_resize()
344 cp = find_class(&mesh, s); in gpart_autofill_resize()
431 geom_deletetree(&mesh); in gpart_autofill_resize()
438 geom_deletetree(&mesh); in gpart_autofill_resize()
445 struct gmesh mesh; in gpart_autofill() local
468 error = geom_gettree_geom(&mesh, s, g, 1); in gpart_autofill()
471 cp = find_class(&mesh, s); in gpart_autofill()
[all …]
/freebsd-13-stable/tools/tools/net80211/scripts/mesh/
HDcommon8 . config.mesh
10 WLAN=`ifconfig wlan create wlanmode mesh wlandev $WIRELESS`
12 wlandebug -i $WLAN mesh+hwmp+state+scan+assoc
HDsetup.simple9 . config.mesh
/freebsd-13-stable/sbin/ggate/shared/
HDggate.c311 find_class(struct gmesh *mesh, const char *name) in find_class() argument
315 LIST_FOREACH(class, &mesh->lg_class, lg_class) { in find_class()
365 struct gmesh mesh; in g_gate_list() local
371 error = geom_gettree(&mesh); in g_gate_list()
374 class = find_class(&mesh, G_GATE_CLASS_NAME); in g_gate_list()
376 geom_deletetree(&mesh); in g_gate_list()
388 geom_deletetree(&mesh); in g_gate_list()
/freebsd-13-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
HDhostres_partition_tbl.c350 find_class(struct gmesh *mesh, const char *name) in find_class() argument
354 LIST_FOREACH(classp, &mesh->lg_class, lg_class) in find_class()
446 struct gmesh mesh; /* GEOM userland tree */ in partition_tbl_handle_disk() local
456 if ((error = geom_gettree(&mesh)) != 0) { in partition_tbl_handle_disk()
466 if ((classp = find_class(&mesh, "MBR")) != NULL) { in partition_tbl_handle_disk()
476 if ((classp = find_class(&mesh, "BSD")) != NULL) { in partition_tbl_handle_disk()
487 if ((classp = find_class(&mesh, "SUN")) != NULL) { in partition_tbl_handle_disk()
494 geom_deletetree(&mesh); in partition_tbl_handle_disk()
/freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/os/freebsd/
HDzutil_import_os.c190 struct gmesh mesh; in zpool_find_import_blkid() local
202 error = geom_gettree(&mesh); in zpool_find_import_blkid()
213 LIST_FOREACH(mp, &mesh.lg_class, lg_class) { in zpool_find_import_blkid()
240 geom_deletetree(&mesh); in zpool_find_import_blkid()
/freebsd-13-stable/lib/libgeom/
HDgeom_util.c219 struct gmesh mesh; in g_open_by_ident() local
225 error = geom_gettree(&mesh); in g_open_by_ident()
234 LIST_FOREACH(mp, &mesh.lg_class, lg_class) { in g_open_by_ident()
260 geom_deletetree(&mesh); in g_open_by_ident()
/freebsd-13-stable/lib/geom/mirror/
HDgeom_mirror.c408 find_class(struct gmesh *mesh, const char *name) in find_class() argument
412 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_class()
434 struct gmesh mesh; in mirror_resize() local
453 error = geom_gettree_geom(&mesh, name, g, 1); in mirror_resize()
456 classp = find_class(&mesh, name); in mirror_resize()
494 geom_deletetree(&mesh); in mirror_resize()
/freebsd-13-stable/cddl/usr.sbin/zfsd/
HDzfsd.cc261 struct gmesh mesh; in RescanSystem() local
273 result = geom_gettree(&mesh); in RescanSystem()
282 LIST_FOREACH(mp, &mesh.lg_class, lg_class) { in RescanSystem()
298 geom_deletetree(&mesh); in RescanSystem()
/freebsd-13-stable/usr.sbin/boot0cfg/
HDboot0cfg.c351 struct gmesh mesh; in geom_class_available() local
354 error = geom_gettree(&mesh); in geom_class_available()
358 LIST_FOREACH(class, &mesh.lg_class, lg_class) { in geom_class_available()
360 geom_deletetree(&mesh); in geom_class_available()
365 geom_deletetree(&mesh); in geom_class_available()
/freebsd-13-stable/tools/tools/net80211/scripts/
HDconfig51 # default meshid for mesh vaps
52 test -z "$MESHID" && MESHID=freebsd-mesh
/freebsd-13-stable/usr.sbin/bsdconfig/share/
HDgeom.subr162 $1 == "<mesh>" { mesh = 1 }
163 $1 ~ /^<(class|geom)$/ && mesh {
170 $1 ~ /^<(consumer|provider)$/ && mesh {
182 $1 == "<config>" && mesh { create_config() }
205 $1 == "</mesh>" {
208 mesh = 0
/freebsd-13-stable/contrib/unbound/libunbound/
HDlibworker.c96 mesh_delete(w->env->mesh); in libworker_delete_env()
242 w->env->mesh = mesh_create(&ctx->mods, w->env); in libworker_setup()
243 if(!w->env->mesh) { in libworker_setup()
643 if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns, in libworker_fg()
723 if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns, in libworker_attach_mesh()
860 if(!mesh_new_callback(w->env->mesh, &qinfo, qflags, &edns, in handle_newq()
906 mesh_report_reply(lw->env->mesh, e, reply_info, error); in libworker_handle_service_reply()
916 mesh_report_reply(lw->env->mesh, e, reply_info, in libworker_handle_service_reply()
920 mesh_report_reply(lw->env->mesh, e, reply_info, NETEVENT_NOERROR); in libworker_handle_service_reply()

1234