Home
last modified time | relevance | path

Searched refs:adj (Results 1 – 25 of 68) sorted by relevance

123

/openbsd-src/usr.sbin/ldpd/
H A Dadjacency.c31 static void adj_del_single(struct adj *);
38 struct adj *
42 struct adj *adj; in adj_new() local
47 if ((adj = calloc(1, sizeof(*adj))) == NULL) in adj_new()
50 adj->lsr_id = lsr_id; in adj_new()
51 adj->nbr = NULL; in adj_new()
52 adj->source = *source; in adj_new()
53 adj->trans_addr = *addr; in adj_new()
55 evtimer_set(&adj->inactivity_timer, adj_itimer, adj); in adj_new()
57 LIST_INSERT_HEAD(&global.adj_list, adj, global_entry); in adj_new()
[all …]
H A Dldpe.h44 struct adj { struct
45 LIST_ENTRY(adj) global_entry;
46 LIST_ENTRY(adj) nbr_entry;
47 LIST_ENTRY(adj) ia_entry;
73 LIST_HEAD(, adj) adj_list; /* adjacencies */
223 struct adj *adj_new(struct in_addr, struct hello_source *,
225 void adj_del(struct adj *, uint32_t);
226 struct adj *adj_find(struct hello_source *);
227 int adj_get_af(struct adj *adj);
68 trans_addradj global() argument
[all...]
H A Dhello.c153 struct adj *adj = NULL; in recv_hello() local
276 adj = adj_find(&source); in recv_hello()
297 if (adj) in recv_hello()
298 adj_del(adj, S_SHUTDOWN); in recv_hello()
335 if (adj) in recv_hello()
336 adj_del(adj, S_SHUTDOWN); in recv_hello()
345 if (adj) in recv_hello()
346 adj_del(adj, S_SHUTDOWN); in recv_hello()
351 if (adj == NULL) { in recv_hello()
352 adj = adj_new(lsr_id, &source, &trans_addr); in recv_hello()
[all …]
H A Dneighbor.c226 struct adj *adj; in nbr_new() local
250 LIST_FOREACH(adj, &global.adj_list, global_entry) { in nbr_new()
251 if (adj->lsr_id.s_addr == nbr->id.s_addr) { in nbr_new()
252 adj->nbr = nbr; in nbr_new()
253 LIST_INSERT_HEAD(&nbr->adj_list, adj, nbr_entry); in nbr_new()
360 struct adj *adj; in nbr_adj_count() local
363 LIST_FOREACH(adj, &nbr->adj_list, nbr_entry) in nbr_adj_count()
364 if (adj_get_af(adj) == af) in nbr_adj_count()
571 struct adj *adj; in nbr_establish_connection() local
620 LIST_FOREACH(adj, &nbr->adj_list, nbr_entry) in nbr_establish_connection()
[all …]
H A Dldpe.c161 struct adj *adj; in ldpe_shutdown()
186 while ((adj = LIST_FIRST(&global.adj_list)) != NULL) in ldpe_shutdown()
187 adj_del(adj, S_SHUTDOWN); in ldpe_shutdown()
772 struct adj *adj; in ldpe_adj_ctl()
776 LIST_FOREACH(adj, &nbr->adj_list, nbr_entry) { in ldpe_adj_ctl()
777 actl = adj_to_ctl(adj); in ldpe_adj_ctl()
783 LIST_FOREACH(adj, &global.adj_list, global_entry) { in ldpe_adj_ctl()
784 if (adj in ldpe_adj_ctl()
159 struct adj *adj; ldpe_shutdown() local
765 struct adj *adj; ldpe_adj_ctl() local
[all...]
H A Dinterface.c271 struct adj *adj; in if_reset() local
279 while ((adj = LIST_FIRST(&ia->adj_list)) != NULL) in if_reset()
280 adj_del(adj, S_SHUTDOWN); in if_reset()
410 struct adj *adj; in if_to_ctl() local
431 LIST_FOREACH(adj, &ia->adj_list, ia_entry) in if_to_ctl()
/openbsd-src/lib/libc/gdtoa/
H A Dstrtod.c98 U adj, aadj1, rv, rv0; local
698 dval(&adj) = 1.;
703 dval(&adj) = -1.;
717 dval(&adj) = -0.5;
724 word0(&adj) += (2*P+1)*Exp_msk1 - y;
730 dval(&rv) += adj*ulp(&rv);
736 dval(&rv) += adj.d*ulp(&rv);
740 dval(&adj) = ratio(delta, bs);
741 if (adj.d < 1.)
742 dval(&adj) = 1.;
[all …]
H A Dstrtodg.c353 U adj, rv; local
612 dval(&adj) = dval(&rv);
613 word0(&adj) -= P*Exp_msk1;
614 /* adj = */ rounded_product(dval(&adj), tens[e2]);
615 if ((word0(&adj) & Exp_mask)
618 word0(&adj) += P*Exp_msk1;
619 dval(&rv) = dval(&adj);
933 if ((dval(&adj) = ratio(delta, bs)) <= 2.) {
947 adj0 = dval(&adj) = 1.;
950 adj0 = dval(&adj) *= 0.5;
[all …]
/openbsd-src/sys/stand/boot/
H A Dbootarg.c86 size_t adj; in makebootargs32() local
94 adj = (ssize_t)sizeof(struct bootarg32) - sizeof(bootarg_t); in makebootargs32()
98 l += p->ba_size + adj; in makebootargs32()
103 l -= p->ba_size + adj; in makebootargs32()
110 if (q + p->ba_size + adj > (u_char *)v + l - sizeof(*p32)) in makebootargs32()
114 p32->ba_size = p->ba_size + adj; in makebootargs32()
/openbsd-src/usr.bin/vi/ex/
H A Dex_screen.c72 adj_t adj; in ex_resize() local
77 adj = A_SET; in ex_resize()
80 adj = A_DECREASE; in ex_resize()
83 adj = A_INCREASE; in ex_resize()
89 return (vs_resize(sp, cmdp->count, adj)); in ex_resize()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.abi/
H A Dptrmem.C61 ptrdiff_t adj; member
100 if (yp->adj != ADJUST_DELTA (0, 0)) in main()
105 if (xp->adj != ADJUST_DELTA (delta, 0)) in main()
114 if (yp->adj != ADJUST_DELTA (0, 1)) in main()
119 if (xp->adj != ADJUST_DELTA (delta, 1)) in main()
/openbsd-src/regress/usr.sbin/bgpd/integrationtests/
H A Dexabgp.eval_all.in12 adj-rib-in false;
30 adj-rib-in false;
48 adj-rib-in false;
71 adj-rib-in false;
H A Dexabgp.med.in12 adj-rib-in false;
31 adj-rib-in false;
50 adj-rib-in false;
H A Dexabgp.as0.test2.in12 adj-rib-in false;
36 adj-rib-in false;
56 adj-rib-in false;
H A Dexabgp.attr.in12 adj-rib-in false;
36 adj-rib-in false;
70 adj-rib-in false;
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kInstrCompiler.td100 def : Pat<(MxTCRet (load MxCP_ARII:$dst), imm:$adj),
101 (TCRETURNj (MOV32af_TC MxARII32:$dst), imm:$adj)>,
104 def : Pat<(MxTCRet AR32_TC:$dst, imm:$adj),
105 (TCRETURNj MxARI32_TC:$dst, imm:$adj)>;
107 def : Pat<(MxTCRet (i32 tglobaladdr:$dst), imm:$adj),
108 (TCRETURNq MxPCD32:$dst, imm:$adj)>;
110 def : Pat<(MxTCRet (i32 texternalsym:$dst), imm:$adj),
111 (TCRETURNq MxPCD32:$dst, imm:$adj)>;
/openbsd-src/usr.sbin/ldpctl/
H A Dldpctl.c364 struct ctl_adj *adj; in show_discovery_msg() local
369 adj = imsg->data; in show_discovery_msg()
371 if (res->family != AF_UNSPEC && res->family != adj->af) in show_discovery_msg()
374 printf("%-4s %-15s ", af_name(adj->af), inet_ntoa(adj->id)); in show_discovery_msg()
375 switch(adj->type) { in show_discovery_msg()
377 printf("%-8s %-15s ", "Link", adj->ifname); in show_discovery_msg()
380 addr = log_addr(adj->af, &adj->src_addr); in show_discovery_msg()
387 printf("%9u\n", adj in show_discovery_msg()
[all...]
/openbsd-src/sys/arch/amd64/amd64/
H A Dtsc.c368 int64_t adj; /* [b] Initial IA32_TSC_ADJUST value */ member
487 if (tsc_bp_status.adj != 0) { in tsc_report_test_results()
489 tsc_bp_status.adj); in tsc_report_test_results()
491 if (tsc_ap_status.adj != 0) { in tsc_report_test_results()
493 tsc_ap_name, tsc_ap_status.adj); in tsc_report_test_results()
522 tts->adj = rdmsr(MSR_TSC_ADJUST); in tsc_adjust_reset()
523 if (tts->adj != 0) in tsc_adjust_reset()
/openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/
H A Di860-dis.c74 long adj = (long)memaddr + 4 + (val << 2); in print_br_address() local
76 (*info->fprintf_func) (info->stream, "0x%08lx", adj); in print_br_address()
80 if (info->print_address_func && adj != 0) in print_br_address()
83 (*info->print_address_func) (adj, info); in print_br_address()
/openbsd-src/gnu/usr.bin/binutils/opcodes/
H A Di860-dis.c74 long adj = (long)memaddr + 4 + (val << 2); in print_br_address() local
76 (*info->fprintf_func) (info->stream, "0x%08x", adj); in print_br_address()
80 if (info->print_address_func && adj != 0) in print_br_address()
83 (*info->print_address_func) (adj, info); in print_br_address()
/openbsd-src/games/boggle/boggle/
H A Dbog.c708 adj[r - 1] = 1; \
709 adj[r] = 1; \
711 adj[r + 1] = 1; \
720 int cube, row, col, *adj; in init_adjacencies() local
731 adj = adjacency[cube] = calloc(ncubes, sizeof(int)); in init_adjacencies()
732 if (adj == NULL) in init_adjacencies()
741 adj[cube] = 0; in init_adjacencies()
/openbsd-src/games/hack/
H A Dhack.do_name.c322 amonnam(struct monst *mtmp, char *adj) in amonnam() argument
328 (void) snprintf(buf, sizeof buf, "the %s %s", adj, bp); in amonnam()
333 Amonnam(struct monst *mtmp, char *adj) in Amonnam() argument
335 char *bp = amonnam(mtmp,adj); in Amonnam()
/openbsd-src/usr.bin/vi/vi/
H A Dvs_split.c459 vs_resize(SCR *sp, long count, adj_t adj) in vs_resize() argument
473 if (adj == A_SET) { in vs_resize()
477 adj = A_DECREASE; in vs_resize()
480 adj = A_INCREASE; in vs_resize()
486 if (adj == A_DECREASE) { in vs_resize()
509 toobig: msgq(sp, M_BERR, adj == A_DECREASE ? in vs_resize()
/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dintel_rps.c893 int adj; in intel_rps_park() local
936 adj = rps->last_adj; in intel_rps_park()
937 if (adj < 0) in intel_rps_park()
938 adj *= 2; in intel_rps_park()
940 adj = -2; in intel_rps_park()
941 rps->last_adj = adj; in intel_rps_park()
942 rps->cur_freq = max_t(int, rps->cur_freq + adj, rps->min_freq); in intel_rps_park()
1815 int new_freq, adj, min, max; local
1835 adj = rps->last_adj;
1845 adj, new_freq, min, max);
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A DpeXXigen.c1041 bfd_signed_vma adj; in pe_print_idata() local
1163 adj = section->vma - extra->ImageBase; in pe_print_idata()
1178 fprintf (file, " %08lx\t", (unsigned long) (i + adj + dataoff)); in pe_print_idata()
1195 if (dll_name - adj >= section->size) in pe_print_idata()
1198 dll = (char *) data + dll_name - adj; in pe_print_idata()
1212 idx = hint_addr - adj; in pe_print_idata()
1216 ft_idx = first_thunk - adj; in pe_print_idata()
1244 ft_idx = first_thunk - adj; in pe_print_idata()
1283 ordinal = bfd_get_16 (abfd, data + member - adj); in pe_print_idata()
1284 member_name = (char *) data + member - adj + 2; in pe_print_idata()
[all …]

123