Home
last modified time | relevance | path

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

12345678

/freebsd-12-stable/contrib/ofed/opensm/opensm/
Dosm_torus.c128 void *sw; /* void* can point to either switch type */ member
179 struct t_switch *sw; /* what switch we're attached to */ member
250 struct f_switch **sw; member
305 struct t_switch ****sw; member
337 struct f_switch *sw; in teardown_fabric() local
342 if (f->sw) { in teardown_fabric()
348 sw = f->sw[s]; in teardown_fabric()
349 if (!sw) in teardown_fabric()
352 for (p = 0; p < sw->port_cnt; p++) { in teardown_fabric()
353 port = sw->port[p]; in teardown_fabric()
[all …]
Dosm_ucast_lash.c122 if (p->p_node->sw) in get_osm_switch_from_port()
123 return p->p_node->sw; in get_osm_switch_from_port()
124 else if (p->p_remote_physp && p->p_remote_physp->p_node->sw) in get_osm_switch_from_port()
125 return p->p_remote_physp->p_node->sw; in get_osm_switch_from_port()
171 static inline int get_next_switch(lash_t *p_lash, int sw, int link) in get_next_switch() argument
173 return p_lash->switches[sw]->node->links[link]->switch_id; in get_next_switch()
176 static void remove_semipermanent_depend_for_sp(lash_t * p_lash, int sw, in remove_semipermanent_depend_for_sp() argument
186 output_link = switches[sw]->routing_table[dest_switch].out_link; in remove_semipermanent_depend_for_sp()
187 i_next_switch = get_next_switch(p_lash, sw, output_link); in remove_semipermanent_depend_for_sp()
189 while (sw != dest_switch) { in remove_semipermanent_depend_for_sp()
[all …]
Dosm_mesh.c595 static int get_switch_metric(lash_t *p_lash, int sw) in get_switch_metric() argument
601 switch_t *s = p_lash->switches[sw]; in get_switch_metric()
634 if (sw3 == sw) in get_switch_metric()
674 static void classify_switch(lash_t *p_lash, mesh_t *mesh, int sw) in classify_switch() argument
678 switch_t *s = p_lash->switches[sw]; in classify_switch()
696 mesh->class_type[mesh->num_class] = sw; in classify_switch()
709 static void classify_mesh_type(lash_t *p_lash, int sw) in classify_mesh_type() argument
713 switch_t *s = p_lash->switches[sw]; in classify_mesh_type()
746 int sw; in remove_edges() local
752 for (sw = 0; sw < p_lash->num_switches; sw++) { in remove_edges()
[all …]
Dosm_ucast_updn.c75 osm_switch_t *sw; member
143 for (pn = 1; pn < u->sw->num_ports; pn++) { in updn_bfs_by_node()
151 osm_node_get_remote_node(u->sw->p_node, pn, in updn_bfs_by_node()
155 if (!p_remote_node || !p_remote_node->sw) in updn_bfs_by_node()
158 p_remote_sw = p_remote_node->sw; in updn_bfs_by_node()
170 cl_ntoh64(osm_node_get_node_guid(u->sw->p_node)), in updn_bfs_by_node()
176 current_min_hop = osm_switch_get_least_hops(u->sw, lid); in updn_bfs_by_node()
237 p_sw = u->sw; in updn_subn_rank()
259 if (p_remote_physp && p_remote_physp->p_node->sw) { in updn_subn_rank()
260 remote_u = p_remote_physp->p_node->sw->priv; in updn_subn_rank()
[all …]
Dosm_ucast_dfsssp.c97 osm_switch_t *sw; /* selfpointer */ member
164 vertex->sw = NULL; in set_default_vertex()
812 while (remote_node && remote_node->sw) { in update_channel_dep_graph()
814 local_port = local_node->sw->new_lft[dlid]; in update_channel_dep_graph()
827 if (!remote_node || !remote_node->sw) in update_channel_dep_graph()
964 while (remote_node && remote_node->sw) { in remove_path_from_cdg()
966 local_port = local_node->sw->new_lft[dlid]; in remove_path_from_cdg()
976 if (!remote_node || !remote_node->sw) in remove_path_from_cdg()
1031 static void add_sw_endports_to_order_list(osm_switch_t * sw, in add_sw_endports_to_order_list() argument
1043 for (i = 1; i < sw->num_ports; i++) { in add_sw_endports_to_order_list()
[all …]
Dosm_mcast_mgr.c146 osm_switch_t *sw; in create_mgrp_switch_map() local
155 if (port->p_node->sw) { in create_mgrp_switch_map()
156 sw = port->p_node->sw; in create_mgrp_switch_map()
157 sw->is_mc_member = 1; 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()
163 guid = osm_node_get_node_guid(sw->p_node); in create_mgrp_switch_map()
165 cl_qmap_insert(m, guid, &sw->mgrp_item); 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()
[all …]
Dosm_ucast_mgr.c121 if (p_remote_node && p_remote_node->sw && in ucast_mgr_process_hop_0_1()
178 static struct osm_remote_node *find_and_add_remote_sys(osm_switch_t * sw, in find_and_add_remote_sys() argument
185 osm_physp_t *p = osm_node_get_physp_ptr(sw->p_node, port); in find_and_add_remote_sys()
429 if (p_remote_node && p_remote_node->sw in ucast_mgr_process_neighbors()
438 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()
489 osm_switch_t *sw = (osm_switch_t *) p_map_item; in set_default_hop_wf() local
492 for (i = 1; i < sw->num_ports; i++) { in set_default_hop_wf()
493 osm_physp_t *p = osm_node_get_physp_ptr(sw->p_node, i); in set_default_hop_wf()
[all …]
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()
159 current_min_hop = osm_switch_get_least_hops(u->sw, lid); 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()
270 if (p_remote_physp && p_remote_physp->p_node->sw) { in dnup_subn_rank()
271 remote_u = p_remote_physp->p_node->sw->priv; in dnup_subn_rank()
[all …]
Dosm_ucast_cache.c161 p_cache_sw = cache_sw_new(lid_ho, p->p_node->sw->num_ports); in cache_add_sw_link()
544 p_remote_physp->p_node->sw; in ucast_cache_validate()
872 if (!p_node_1->sw) { in osm_ucast_cache_add_link()
882 if (!p_node_2->sw) { in osm_ucast_cache_add_link()
932 if (!p_node->sw) { in osm_ucast_cache_add_node()
973 if (!p_node->sw->num_hops || !p_node->sw->hops) { in osm_ucast_cache_add_node()
982 p_cache_sw->num_hops = p_node->sw->num_hops; in osm_ucast_cache_add_node()
983 p_node->sw->num_hops = 0; in osm_ucast_cache_add_node()
984 p_cache_sw->hops = p_node->sw->hops; in osm_ucast_cache_add_node()
985 p_node->sw->hops = NULL; in osm_ucast_cache_add_node()
[all …]
Dosm_port_info_rcv.c225 if (p_node->sw && in pi_rcv_process_switch_port0()
226 !ib_switch_info_is_enhanced_port0(&p_node->sw->switch_info)) in pi_rcv_process_switch_port0()
404 if (ib_port_info_get_port_state(p_pi) > IB_LINK_INIT && p_node->sw && in pi_rcv_process_switch_ext_port()
405 !ib_switch_info_get_state_change(&p_node->sw->switch_info) && in pi_rcv_process_switch_ext_port()
406 p_node->sw->need_update == 1) in pi_rcv_process_switch_ext_port()
407 p_node->sw->need_update = 0; in pi_rcv_process_switch_ext_port()
423 if (p_remote_node->sw) { in pi_rcv_process_switch_ext_port()
487 if (!p_node->sw || port_num == 0) in get_pkey_table()
501 p_node->sw->switch_info.enforce_cap = 0; in get_pkey_table()
504 if (cl_ntoh16(p_node->sw->switch_info.enforce_cap) == 0) in get_pkey_table()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
DELFAttributeParser.cpp44 if (sw) { in integerAttribute()
45 DictScope scope(*sw, "Attribute"); in integerAttribute()
46 sw->printNumber("Tag", tag); in integerAttribute()
48 sw->printString("TagName", tagName); in integerAttribute()
49 sw->printNumber("Value", value); in integerAttribute()
60 if (sw) { in stringAttribute()
61 DictScope scope(*sw, "Attribute"); in stringAttribute()
62 sw->printNumber("Tag", tag); in stringAttribute()
64 sw->printString("TagName", tagName); in stringAttribute()
65 sw->printString("Value", desc); in stringAttribute()
[all …]
DARMAttributeParser.cpp72 if (sw) { in stringAttribute()
73 DictScope scope(*sw, "Attribute"); in stringAttribute()
74 sw->printNumber("Tag", tag); in stringAttribute()
76 sw->printString("TagName", tagName); in stringAttribute()
77 sw->printString("Value", desc); in stringAttribute()
287 if (sw) { in compatibility()
288 DictScope scope(*sw, "Attribute"); in compatibility()
289 sw->printNumber("Tag", tag); in compatibility()
290 sw->startLine() << "Value: " << integer << ", " << string << '\n'; in compatibility()
291 sw->printString("TagName", in compatibility()
[all …]
/freebsd-12-stable/usr.sbin/ppp/
Dmain.c213 ProcessArgs(int argc, char **argv, struct switches *sw) in ProcessArgs() argument
219 memset(sw, '\0', sizeof *sw); in ProcessArgs()
220 sw->mode = PHYS_INTERACTIVE; in ProcessArgs()
221 sw->unit = -1; in ProcessArgs()
232 sw->nat = 1; in ProcessArgs()
242 sw->nat = 1; in ProcessArgs()
253 sw->unit = atoi(argv[arg]); in ProcessArgs()
255 sw->unit = atoi(cp + 4); in ProcessArgs()
257 sw->quiet = 1; in ProcessArgs()
268 sw->mode = newmode; in ProcessArgs()
[all …]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/builtins/riscv/
Dsave.S26 sw s11, 12(sp)
44 sw s10, 16(sp)
45 sw s9, 20(sp)
46 sw s8, 24(sp)
47 sw s7, 28(sp)
65 sw s6, 32(sp)
66 sw s5, 36(sp)
67 sw s4, 40(sp)
68 sw s3, 44(sp)
69 sw s2, 48(sp)
[all …]
/freebsd-12-stable/sys/opencrypto/
Dcryptosoft.c83 swcr_encdec(struct cryptodesc *crd, struct swcr_data *sw, caddr_t buf, in swcr_encdec() argument
98 exf = sw->sw_exf; in swcr_encdec()
135 if (sw->sw_kschedule) in swcr_encdec()
136 exf->zerokey(&(sw->sw_kschedule)); in swcr_encdec()
138 error = exf->setkey(&sw->sw_kschedule, in swcr_encdec()
171 exf->reinit(sw->sw_kschedule, iv); in swcr_encdec()
195 exf->encrypt(sw->sw_kschedule, in swcr_encdec()
198 exf->decrypt(sw->sw_kschedule, in swcr_encdec()
206 exf->encrypt(sw->sw_kschedule, blk); in swcr_encdec()
222 exf->decrypt(sw->sw_kschedule, blk); in swcr_encdec()
[all …]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/xray/
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-12-stable/lib/libmd/
Dsha0c.c124 int ew,ec,sw,sc; local
139 sw=c->num>>2;
144 l= p[sw];
146 p[sw++]=l;
147 for (; sw<SHA_LBLOCK; sw++)
150 p[sw]=l;
163 l= p[sw];
165 p[sw]=l;
171 l= p[sw];
173 p[sw++]=l;
[all …]
Dsha1c.c152 int ew,ec,sw,sc; local
167 sw=c->num>>2;
172 l= p[sw];
174 p[sw++]=l;
175 for (; sw<SHA_LBLOCK; sw++)
178 p[sw]=l;
191 l= p[sw];
193 p[sw]=l;
199 l= p[sw];
201 p[sw++]=l;
[all …]
Drmd160c.c110 int sw,sc; local
125 sw=c->num>>2;
130 l= p[sw];
132 p[sw++]=l;
133 for (; sw<RIPEMD160_LBLOCK; sw++)
136 p[sw]=l;
151 l= p[sw];
153 p[sw]=l;
159 l= p[sw];
161 p[sw++]=l;
[all …]
/freebsd-12-stable/contrib/llvm-project/libunwind/src/
DUnwindRegistersSave.S131 sw $1, (4 * 1)($4)
132 sw $2, (4 * 2)($4)
133 sw $3, (4 * 3)($4)
134 sw $4, (4 * 4)($4)
135 sw $5, (4 * 5)($4)
136 sw $6, (4 * 6)($4)
137 sw $7, (4 * 7)($4)
138 sw $8, (4 * 8)($4)
139 sw $9, (4 * 9)($4)
140 sw $10, (4 * 10)($4)
[all …]
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/
Dibtracert.c126 static int is_port_inactive(Node * node, Port * port, Switch * sw) in is_port_inactive() argument
131 (node->type == IB_NODE_SWITCH && sw->enhsp0))) in is_port_inactive()
175 static int switch_lookup(Switch * sw, ib_portid_t * portid, int lid) in switch_lookup() argument
177 void *si = sw->switchinfo, *fdb = sw->fdb; in switch_lookup()
179 memset(si, 0, sizeof(sw->switchinfo)); in switch_lookup()
184 mad_decode_field(si, IB_SW_LINEAR_FDB_CAP_F, &sw->linearcap); in switch_lookup()
185 mad_decode_field(si, IB_SW_LINEAR_FDB_TOP_F, &sw->linearFDBtop); in switch_lookup()
186 mad_decode_field(si, IB_SW_ENHANCED_PORT0_F, &sw->enhsp0); in switch_lookup()
188 if (lid >= sw->linearcap && lid > sw->linearFDBtop) in switch_lookup()
191 memset(fdb, 0, sizeof(sw->fdb)); in switch_lookup()
[all …]
/freebsd-12-stable/sys/dev/fb/
Dsplashreg.h51 #define SPLASH_DECODER(name, sw) \ argument
56 return splash_register(&sw); \
58 return splash_unregister(&sw); \
73 #define SAVER_MODULE(name, sw) \ argument
78 return splash_register(&sw); \
80 return splash_unregister(&sw); \
/freebsd-12-stable/contrib/ntp/util/
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-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
DELFAttributeParser.h31 ScopedPrinter *sw;
49 ELFAttributeParser(ScopedPrinter *sw, TagNameMap tagNameMap, StringRef vendor) in ELFAttributeParser() argument
50 : vendor(vendor), sw(sw), tagToStringMap(tagNameMap) {} in ELFAttributeParser()
53 : vendor(vendor), sw(nullptr), tagToStringMap(tagNameMap) {} in ELFAttributeParser()
/freebsd-12-stable/contrib/nvi/ex/
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()

12345678