Home
last modified time | relevance | path

Searched refs:sw (Results 1 – 25 of 248) sorted by relevance

12345678910

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_torus.c348 sw = f->sw[s]; in teardown_fabric()
465 sw = f->sw[s]; in find_f_sw()
620 ep->sw = sw; in build_sw_endpoint()
675 l->end[0].sw = sw; in build_ca_link()
1369 sw->ptgrp[g].sw = sw; in alloc_tswitch()
1498 l->end[0].sw = pg0->sw; in connect_tlink()
1513 l->end[1].sw = pg1->sw; in connect_tlink()
7052 sw = f->sw[s]; in verify_setup()
8068 if (sw && sw->osm_switch != node->sw) { in torus_update_osm_sl2vl()
8098 if (sw && sw->osm_switch != node->sw) { in torus_update_osm_vlarb()
[all …]
H A Dosm_ucast_lash.c279 sw->dij_channels[sw->used_channels++] = swi->id; in shortest_path()
345 v->from = sw; in generate_cdg_for_sp()
611 switch_t *sw; in switch_create() local
614 sw = malloc(sizeof(*sw) + num_switches * sizeof(sw->routing_table[0])); in switch_create()
615 if (!sw) in switch_create()
618 memset(sw, 0, sizeof(*sw)); in switch_create()
624 sw->id = id; in switch_create()
627 free(sw); in switch_create()
636 free(sw); in switch_create()
640 return sw; in switch_create()
[all …]
H A Dosm_mesh.c746 int sw; in remove_edges() local
752 for (sw = 0; sw < p_lash->num_switches; sw++) { in remove_edges()
781 int sw; in get_local_geometry() local
786 for (sw = 0; sw < p_lash->num_switches; sw++) { in get_local_geometry()
803 for (sw = 0; sw < p_lash->num_switches; sw++) { in get_local_geometry()
1215 int sw; in make_coord() local
1224 for (sw = 0; sw < num_switches; sw++) { in make_coord()
1251 for (sw = 0; sw < num_switches; sw++) { in make_coord()
1315 for (sw = 0; sw < num_switches; sw++) { in measure_geometry()
1365 for (sw = 0; sw < num_switches; sw++) { in reorder_links()
[all …]
H A Dosm_ucast_updn.c75 osm_switch_t *sw; member
237 p_sw = u->sw; in updn_subn_rank()
291 if (sw->hops[i]) { in updn_clear_non_root_hops()
296 memset(sw->hops[i], 0xff, sw->num_ports); in updn_clear_non_root_hops()
395 u->sw = sw; in create_updn_node()
403 u->sw->priv = NULL; in delete_updn_node()
442 if (!p_port->p_node->sw) { in updn_find_root_nodes_by_min_hop()
522 osm_switch_t *sw; in update_id() local
527 if (!sw) { in update_id()
551 osm_switch_t *sw; in rank_root_node() local
[all …]
H A Dosm_mcast_mgr.c146 osm_switch_t *sw; in create_mgrp_switch_map() local
156 sw = port->p_node->sw; in create_mgrp_switch_map()
159 sw = port->p_physp->p_remote_physp->p_node->sw; in create_mgrp_switch_map()
160 sw->num_of_mcm++; in create_mgrp_switch_map()
171 osm_switch_t *sw; in destroy_mgrp_switch_map() local
175 sw = cl_item_obj(i, sw, mgrp_item); in destroy_mgrp_switch_map()
196 osm_switch_t *sw; in mcast_mgr_compute_avg_hops() local
201 sw = cl_item_obj(i, sw, mcast_item); in mcast_mgr_compute_avg_hops()
209 num_ports += sw->num_of_mcm + sw->is_mc_member; in mcast_mgr_compute_avg_hops()
227 osm_switch_t *sw; in mcast_mgr_compute_max_hops() local
[all …]
H A Dosm_ucast_dfsssp.c164 vertex->sw = NULL; in set_default_vertex()
1275 adj_list[i].sw = sw; in dfsssp_build_graph()
1297 if (!remote_node || remote_node->sw == sw) in dfsssp_build_graph()
1682 sw = port->p_node->sw; in update_mgrp_membership()
1685 sw = port->p_physp->p_remote_physp->p_node->sw; in update_mgrp_membership()
1686 sw->num_of_mcm++; in update_mgrp_membership()
2321 memset(sw->new_lft, OSM_NO_PATH, sw->max_lid_ho + 1); in dfsssp_do_dijkstra_routing()
2400 sw = (osm_switch_t *)(sw_list[i]->sw); in dfsssp_do_dijkstra_routing()
2416 sw = (osm_switch_t *)(sw_list[i]->sw); in dfsssp_do_dijkstra_routing()
2434 sw = (osm_switch_t *)(sw_list[i]->sw); in dfsssp_do_dijkstra_routing()
[all …]
H A Dosm_ucast_mgr.c438 p_remote_node->sw, in ucast_mgr_process_neighbors()
455 if (!node || !node->sw) { in set_hop_wf()
463 port >= node->sw->num_ports) { in set_hop_wf()
492 for (i = 1; i < sw->num_ports; i++) { in set_default_hop_wf()
503 osm_switch_t *sw; in set_search_ordering_ports() local
511 if (!node || !(sw = node->sw)) { in set_search_ordering_ports()
518 if (sw->search_ordering_ports) { in set_search_ordering_ports()
760 if (!node || !node->sw) { in mark_ignored_port()
768 port >= node->sw->num_ports) { in mark_ignored_port()
823 sw->endport_links = 0; in sw_count_endport_links()
[all …]
H A Dosm_ucast_dnup.c76 osm_switch_t *sw; member
138 for (pn = 1; pn < u->sw->num_ports; pn++) { in dnup_bfs_by_node()
146 osm_node_get_remote_node(u->sw->p_node, pn, in dnup_bfs_by_node()
150 if (!p_remote_node || !p_remote_node->sw) in dnup_bfs_by_node()
153 p_remote_sw = p_remote_node->sw; in dnup_bfs_by_node()
171 cl_ntoh64(osm_node_get_node_guid(u->sw->p_node)), in dnup_bfs_by_node()
248 p_sw = u->sw; in dnup_subn_rank()
271 remote_u = p_remote_physp->p_node->sw->priv; in dnup_subn_rank()
397 u->sw = sw; in create_dnup_node()
404 u->sw->priv = NULL; in delete_dnup_node()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DELFAttributeParser.cpp42 if (sw) { in integerAttribute()
44 sw->printNumber("Tag", tag); in integerAttribute()
58 if (sw) { in stringAttribute()
72 if (sw) { in printAttribute()
125 if (sw) { in parseSubsection()
146 if (sw) { in parseSubsection()
179 if (sw) { in parseSubsection()
215 if (sw) { in parse()
217 sw->indent(); in parse()
228 if (sw) { in parse()
[all …]
H A DARMAttributeParser.cpp77 if (sw) { in stringAttribute()
78 DictScope scope(*sw, "Attribute"); in stringAttribute()
79 sw->printNumber("Tag", tag); in stringAttribute()
82 sw->printString("Value", desc); in stringAttribute()
289 if (sw) { in compatibility()
290 DictScope scope(*sw, "Attribute"); in compatibility()
291 sw->printNumber("Tag", tag); in compatibility()
293 sw->printString("TagName", in compatibility()
447 if (sw) { in also_compatible_with()
449 sw->printNumber("Tag", tag); in also_compatible_with()
[all …]
/freebsd/usr.sbin/ppp/
H A Dmain.c217 memset(sw, '\0', sizeof *sw); in ProcessArgs()
219 sw->unit = -1; in ProcessArgs()
230 sw->nat = 1; in ProcessArgs()
268 sw->fg = 1; in ProcessArgs()
310 struct switches sw; in main() local
381 if (!sw.quiet) in main()
384 if ((bundle = bundle_Create(TUN_PREFIX, sw.mode, sw.unit)) == NULL) in main()
391 if (sw.nat) in main()
430 if (!sw.quiet) in main()
436 if (!sw.fg) { in main()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/riscv/
H A Dsave.S28 sw s11, 12(sp)
46 sw s10, 16(sp)
47 sw s9, 20(sp)
67 sw s6, 32(sp)
68 sw s5, 36(sp)
69 sw s4, 40(sp)
70 sw s3, 44(sp)
71 sw s2, 48(sp)
72 sw s1, 52(sp)
73 sw s0, 56(sp)
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-shrinker.c40 struct spl_shrinker_wrap *sw = (struct spl_shrinker_wrap *)shrinker; in spl_shrinker_single_cb() local
43 (void) sw->scanfunc(&sw->shrinker, sc); in spl_shrinker_single_cb()
44 return (sw->countfunc(&sw->shrinker, sc)); in spl_shrinker_single_cb()
63 struct spl_shrinker_wrap *sw = in spl_register_shrinker() local
65 shrinker = &sw->shrinker; in spl_register_shrinker()
76 sw->countfunc = countfunc; in spl_register_shrinker()
77 sw->scanfunc = scanfunc; in spl_register_shrinker()
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_trampoline_mips.S28 sw $ra, 32($sp)
30 sw $a3, 28($sp)
31 sw $a2, 24($sp)
32 sw $a1, 20($sp)
33 sw $a0, 16($sp)
75 sw $ra, 32($sp)
77 sw $a1, 28($sp)
78 sw $a0, 24($sp)
79 sw $v1, 20($sp)
80 sw $v0, 16($sp)
/freebsd/lib/libmd/
H A Dsha0c.c137 l= p[sw]; in SHA_Update()
140 for (; sw<SHA_LBLOCK; sw++) in SHA_Update()
143 p[sw]=l; in SHA_Update()
158 p[sw]=l; in SHA_Update()
167 for (; sw < ew; sw++) in SHA_Update()
189 if (sw) in SHA_Update()
194 len-=sw; in SHA_Update()
210 for (sw=(SHA_LBLOCK/4); sw; sw--) in SHA_Update()
222 for (sw=(SHA_BLOCK/4); sw; sw--) in SHA_Update()
239 for (sw=0; sw < ew; sw++) in SHA_Update()
[all …]
H A Dsha1c.c165 l= p[sw]; in SHA1_Update()
168 for (; sw<SHA_LBLOCK; sw++) in SHA1_Update()
171 p[sw]=l; in SHA1_Update()
186 p[sw]=l; in SHA1_Update()
195 for (; sw < ew; sw++) in SHA1_Update()
217 if (sw) in SHA1_Update()
222 len-=sw; in SHA1_Update()
238 for (sw=(SHA_LBLOCK/4); sw; sw--) in SHA1_Update()
250 for (sw=(SHA_BLOCK/4); sw; sw--) in SHA1_Update()
267 for (sw=0; sw < ew; sw++) in SHA1_Update()
[all …]
H A Drmd160c.c103 int sw,sc; in RIPEMD160_Update() local
123 l= p[sw]; in RIPEMD160_Update()
126 for (; sw<RIPEMD160_LBLOCK; sw++) in RIPEMD160_Update()
129 p[sw]=l; in RIPEMD160_Update()
146 p[sw]=l; in RIPEMD160_Update()
155 for (; sw < ew; sw++) in RIPEMD160_Update()
177 len-=sw; in RIPEMD160_Update()
189 for (sw=(RIPEMD160_LBLOCK/4); sw; sw--) in RIPEMD160_Update()
199 for (sw=(RIPEMD160_LBLOCK/4); sw; sw--) in RIPEMD160_Update()
217 p[sw]=0; in RIPEMD160_Update()
[all …]
/freebsd/contrib/llvm-project/libunwind/src/
H A DUnwindRegistersSave.S144 sw $1, (4 * 1)($4)
145 sw $2, (4 * 2)($4)
146 sw $3, (4 * 3)($4)
147 sw $4, (4 * 4)($4)
148 sw $5, (4 * 5)($4)
149 sw $6, (4 * 6)($4)
150 sw $7, (4 * 7)($4)
151 sw $8, (4 * 8)($4)
152 sw $9, (4 * 9)($4)
153 sw $10, (4 * 10)($4)
[all …]
/freebsd/contrib/libfido2/src/
H A Dnfc.c26 uint8_t sw[2]; in tx_short_apdu() local
45 if (d->io.read(d->io_handle, sw, sizeof(sw), -1) != 2) { in tx_short_apdu()
49 if ((sw[0] << 8 | sw[1]) != SW_NO_ERROR) { in tx_short_apdu()
204 rx_apdu(fido_dev_t *d, uint8_t sw[2], unsigned char **buf, size_t *count, int *ms) in rx_apdu()
226 memcpy(sw, f + n - 2, 2); in rx_apdu()
238 uint8_t sw[2]; in rx_msg() local
241 if (rx_apdu(d, sw, &buf, &count, &ms) < 0) { in rx_msg()
246 while (sw[0] == SW1_MORE_DATA) in rx_msg()
247 if (tx_get_response(d, sw[1]) < 0 || in rx_msg()
248 rx_apdu(d, sw, &buf, &count, &ms) < 0) { in rx_msg()
[all …]
/freebsd/sys/dev/fb/
H A Dsplashreg.h49 #define SPLASH_DECODER(name, sw) \ argument
54 return splash_register(&sw); \
56 return splash_unregister(&sw); \
71 #define SAVER_MODULE(name, sw) \ argument
76 return splash_register(&sw); \
78 return splash_unregister(&sw); \
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibtracert.c177 void *si = sw->switchinfo, *fdb = sw->fdb; in switch_lookup()
179 memset(si, 0, sizeof(sw->switchinfo)); in switch_lookup()
188 if (lid >= sw->linearcap && lid > sw->linearFDBtop) in switch_lookup()
191 memset(fdb, 0, sizeof(sw->fdb)); in switch_lookup()
198 return sw->fdb[lid % 64]; in switch_lookup()
269 Switch sw; in find_route() local
307 if (is_port_inactive(node, port, &sw)) in find_route()
490 Switch sw; in switch_mclookup() local
492 void *si = sw.switchinfo; in switch_mclookup()
498 memset(si, 0, sizeof(sw.switchinfo)); in switch_mclookup()
[all …]
/freebsd/contrib/ntp/util/
H A Dtg.c109 int sw; /* case switch number */ member
262 int rval, temp, arg, sw, ptr; in main() local
382 if (progx[i].sw == DEC) in main()
462 sw = progz[i].sw; in main()
465 sw = progy[i % 10].sw; in main()
468 switch(sw) { in main()
506 sw = progx[second].sw; in main()
508 switch(sw) { in main()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DELFAttributeParser.h32 ScopedPrinter *sw;
54 ELFAttributeParser(ScopedPrinter *sw, TagNameMap tagNameMap, StringRef vendor) in ELFAttributeParser() argument
55 : vendor(vendor), sw(sw), tagToStringMap(tagNameMap) {} in ELFAttributeParser()
58 : vendor(vendor), sw(nullptr), tagToStringMap(tagNameMap) {} in ELFAttributeParser()
/freebsd/contrib/nvi/ex/
H A Dex_shift.c70 size_t blen, len, newcol, newidx, oldcol, oldidx, sw; in shift() local
96 for (p = cmdp->argv[0]->bp, sw = 0; *p == '>' || *p == '<'; ++p) in shift()
97 sw += O_VAL(sp, O_SHIFTWIDTH); in shift()
128 newcol = oldcol + sw; in shift()
130 newcol = oldcol < sw ? 0 : oldcol - sw; in shift()
/freebsd/sys/dev/syscons/
H A Dscterm.c74 sc_term_add(sc_term_sw_t *sw) in sc_term_add() argument
76 LIST_INSERT_HEAD(&sc_term_list, sw, link); in sc_term_add()
81 sc_term_remove(sc_term_sw_t *sw) in sc_term_remove() argument
83 LIST_REMOVE(sw, link); in sc_term_remove()

12345678910