/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_torus.c | 128 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 …]
|
H A D | osm_ucast_lash.c | 122 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 …]
|
H A D | osm_mesh.c | 595 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 …]
|
H A D | osm_ucast_updn.c | 75 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 …]
|
H A D | osm_ucast_dfsssp.c | 97 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 …]
|
H A D | osm_mcast_mgr.c | 146 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 …]
|
H A D | osm_ucast_mgr.c | 121 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 …]
|
H A D | osm_ucast_dnup.c | 76 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 …]
|
H A D | osm_ucast_cache.c | 161 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | ELFAttributeParser.cpp | 42 if (sw) { in integerAttribute() 43 DictScope scope(*sw, "Attribute"); in integerAttribute() 44 sw->printNumber("Tag", tag); in integerAttribute() 46 sw->printString("TagName", tagName); in integerAttribute() 47 sw->printNumber("Value", value); in integerAttribute() 58 if (sw) { in stringAttribute() 59 DictScope scope(*sw, "Attribute"); in stringAttribute() 60 sw->printNumber("Tag", tag); in stringAttribute() 62 sw->printString("TagName", tagName); in stringAttribute() 63 sw->printString("Value", desc); in stringAttribute() [all …]
|
H A D | ARMAttributeParser.cpp | 77 if (sw) { in stringAttribute() 78 DictScope scope(*sw, "Attribute"); in stringAttribute() 79 sw->printNumber("Tag", tag); in stringAttribute() 81 sw->printString("TagName", tagName); 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() 292 sw->startLine() << "Value: " << integer << ", " << string << '\n'; in compatibility() 293 sw->printString("TagName", in compatibility() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | main.c | 211 ProcessArgs(int argc, char **argv, struct switches *sw) in ProcessArgs() argument 217 memset(sw, '\0', sizeof *sw); in ProcessArgs() 218 sw->mode = PHYS_INTERACTIVE; in ProcessArgs() 219 sw->unit = -1; in ProcessArgs() 230 sw->nat = 1; in ProcessArgs() 240 sw->nat = 1; in ProcessArgs() 251 sw->unit = atoi(argv[arg]); in ProcessArgs() 253 sw->unit = atoi(cp + 4); in ProcessArgs() 255 sw->quiet = 1; in ProcessArgs() 266 sw->mode = newmode; in ProcessArgs() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/riscv/ |
H A D | save.S | 28 sw s11, 12(sp) 46 sw s10, 16(sp) 47 sw s9, 20(sp) 48 sw s8, 24(sp) 49 sw s7, 28(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) [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_trampoline_mips.S | 28 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 D | sha1c.c | 145 int ew,ec,sw,sc; in SHA1_Update() local 160 sw=c->num>>2; in SHA1_Update() 165 l= p[sw]; in SHA1_Update() 167 p[sw++]=l; in SHA1_Update() 168 for (; sw<SHA_LBLOCK; sw++) in SHA1_Update() 171 p[sw]=l; in SHA1_Update() 184 l= p[sw]; in SHA1_Update() 186 p[sw]=l; in SHA1_Update() 192 l= p[sw]; in SHA1_Update() 194 p[sw++]=l; in SHA1_Update() [all …]
|
H A D | sha0c.c | 117 int ew,ec,sw,sc; in SHA_Update() local 132 sw=c->num>>2; in SHA_Update() 137 l= p[sw]; in SHA_Update() 139 p[sw++]=l; in SHA_Update() 140 for (; sw<SHA_LBLOCK; sw++) in SHA_Update() 143 p[sw]=l; in SHA_Update() 156 l= p[sw]; in SHA_Update() 158 p[sw]=l; in SHA_Update() 164 l= p[sw]; in SHA_Update() 166 p[sw++]=l; in SHA_Update() [all …]
|
H A D | rmd160c.c | 103 int sw,sc; in RIPEMD160_Update() local 118 sw=c->num>>2; in RIPEMD160_Update() 123 l= p[sw]; in RIPEMD160_Update() 125 p[sw++]=l; in RIPEMD160_Update() 126 for (; sw<RIPEMD160_LBLOCK; sw++) in RIPEMD160_Update() 129 p[sw]=l; in RIPEMD160_Update() 144 l= p[sw]; in RIPEMD160_Update() 146 p[sw]=l; in RIPEMD160_Update() 152 l= p[sw]; in RIPEMD160_Update() 154 p[sw++]=l; in RIPEMD160_Update() [all …]
|
/freebsd/contrib/llvm-project/libunwind/src/ |
H A D | UnwindRegistersSave.S | 144 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 D | nfc.c | 26 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 D | splashreg.h | 49 #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 D | ibtracert.c | 126 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/contrib/ntp/util/ |
H A D | tg.c | 109 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 D | ELFAttributeParser.h | 32 ScopedPrinter *sw; 54 ELFAttributeParser(ScopedPrinter *sw, TagNameMap tagNameMap, StringRef vendor) 55 : vendor(vendor), sw(sw), tagToStringMap(tagNameMap) {} in ELFAttributeParser() argument 58 : vendor(vendor), sw(nullptr), tagToStringMap(tagNameMap) {} in ELFAttributeParser()
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_shift.c | 70 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 D | scterm.c | 74 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()
|