/freebsd/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | list.h | 36 #define ISC_LINK_INIT_TYPE(elt, link, type) \ argument 38 (elt)->link.prev = (type *)(-1); \ 39 (elt)->link.next = (type *)(-1); \ 41 #define ISC_LINK_INIT(elt, link) \ argument 42 ISC_LINK_INIT_TYPE(elt, link, void) 43 #define ISC_LINK_LINKED(elt, link) ((void *)((elt)->link.prev) != (void *)(-1)) argument 49 #define __ISC_LIST_PREPENDUNSAFE(list, elt, link) \ argument 52 (list).head->link.prev = (elt); \ 55 (elt)->link.prev = NULL; \ 56 (elt)->link.next = (list).head; \ [all …]
|
H A D | util.h | 192 #define INIT_LINK(elt, link) ISC_LINK_INIT(elt, link) argument 196 #define PREV(elt, link) ISC_LIST_PREV(elt, link) argument 197 #define NEXT(elt, link) ISC_LIST_NEXT(elt, link) argument 198 #define APPEND(list, elt, link) ISC_LIST_APPEND(list, elt, link) argument 199 #define PREPEND(list, elt, link) ISC_LIST_PREPEND(list, elt, link) argument 200 #define UNLINK(list, elt, link) ISC_LIST_UNLINK(list, elt, link) argument 201 #define ENQUEUE(list, elt, link) ISC_LIST_APPEND(list, elt, link) argument 202 #define DEQUEUE(list, elt, link) ISC_LIST_UNLINK(list, elt, link) argument 205 #define APPENDLIST(list1, list2, link) ISC_LIST_APPENDLIST(list1, list2, link) argument
|
/freebsd/lib/libc/include/isc/ |
H A D | list.h | 35 #define INIT_LINK_TYPE(elt, link, type) \ argument 37 (elt)->link.prev = (type *)(-1); \ 38 (elt)->link.next = (type *)(-1); \ 40 #define INIT_LINK(elt, link) \ argument 41 INIT_LINK_TYPE(elt, link, void) 42 #define LINKED(elt, link) ((void *)((elt)->link.prev) != (void *)(-1) && \ argument 43 (void *)((elt)->link.next) != (void *)(-1)) 49 #define PREPEND(list, elt, link) \ argument 51 INSIST(!LINKED(elt, link));\ 53 (list).head->link.prev = (elt); \ [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_list.h | 86 #define link2item(list, link) ((void*) (((uint8_t*)(link)) - (list)->offset)) argument 109 #define ocs_list_init(head, type, link) _ocs_list_init(head, offsetof(type, link)) argument 191 ocs_list_init_link(ocs_list_t *list, ocs_list_t *link) in ocs_list_init_link() argument 195 ocs_list_assert(link); in ocs_list_init_link() 197 if (link->magic == 0) { in ocs_list_init_link() 198 link->magic = OCS_LIST_LINK_MAGIC; in ocs_list_init_link() 199 link->offset = list->offset; in ocs_list_init_link() 200 link->next = NULL; in ocs_list_init_link() 201 link->prev = NULL; in ocs_list_init_link() 218 ocs_list_t *link; in ocs_list_add_head() local [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_lists.h | 13 * The name of the next link field is passed as an argument to allow 14 * membership in several lists at once using multiple next link fields. 16 * When possible, placing the link field first in the entry structure 100 * because both link chains are circular. The beginning/end is marked 118 * an entry's link pointer when it is unlinked, as the stale pointer 255 * begins with the link pointer 259 gen_node * link; 357 #define DECL_DLIST_LINK(entrytype, link) \ 361 } link argument 363 #define INIT_DLIST(listhead, link) \ 257 gen_node * link; global() member 355 DECL_DLIST_LINK(entrytype,link) global() argument 367 HEAD_DLIST(listhead,link) global() argument 374 TAIL_DLIST(listhead,link) global() argument 381 NEXT_DLIST(listhead,entry,link) global() argument 388 PREV_DLIST(listhead,entry,link) global() argument 395 LINK_DLIST(listhead,pentry,link) global() argument 403 LINK_TAIL_DLIST(listhead,pentry,link) global() argument 411 UNLINK_DLIST(ptounlink,link) global() argument 419 ITER_DLIST_BEGIN(listhead,iter,link,entrytype) global() argument 431 REV_ITER_DLIST_BEGIN(listhead,iter,link,entrytype) global() argument [all...] |
/freebsd/usr.sbin/ppp/ |
H A D | link.h | 40 struct link { struct 61 #define LINK_QUEUES(link) (sizeof (link)->Queue / sizeof (link)->Queue[0]) argument 62 #define LINK_HIGHQ(link) ((link)->Queue + LINK_QUEUES(link) - 1) argument 64 extern void link_SequenceQueue(struct link *); 65 extern void link_DeleteQueue(struct link *); 66 extern size_t link_QueueLen(struct link *); 67 extern size_t link_QueueBytes(struct link *); 68 extern void link_PendingLowPriorityData(struct link *, size_t *, size_t *); 69 extern struct mbuf *link_Dequeue(struct link *); 71 extern void link_PushPacket(struct link *, struct mbuf *, struct bundle *, [all …]
|
H A D | physical.c | 164 p->link.type = PHYSICAL_LINK; in physical_Create() 165 p->link.name = dl->name; in physical_Create() 166 p->link.len = sizeof *p; in physical_Create() 169 throughput_init(&p->link.stats.total, SAMPLE_PERIOD); in physical_Create() 170 p->link.stats.parent = dl->bundle->ncp.mp.active ? in physical_Create() 171 &dl->bundle->ncp.mp.link.stats.total : NULL; in physical_Create() 172 p->link.stats.gather = 1; in physical_Create() 174 memset(p->link.Queue, '\0', sizeof p->link.Queue); in physical_Create() 175 memset(p->link.proto_in, '\0', sizeof p->link.proto_in); in physical_Create() 176 memset(p->link.proto_out, '\0', sizeof p->link.proto_out); in physical_Create() [all …]
|
H A D | mp.c | 197 percent = MAX(mp->link.stats.total.in.OctetsPerSecond, in mp_UpDown() 198 mp->link.stats.total.out.OctetsPerSecond) * 800 / in mp_UpDown() 212 throughput_stop(&mp->link.stats.total); in mp_StopAutoloadTimer() 218 if (mp->link.stats.total.SamplePeriod != mp->cfg.autoload.period) { in mp_CheckAutoloadTimer() 219 throughput_destroy(&mp->link.stats.total); in mp_CheckAutoloadTimer() 220 throughput_init(&mp->link.stats.total, mp->cfg.autoload.period); in mp_CheckAutoloadTimer() 221 throughput_callback(&mp->link.stats.total, mp_UpDown, mp); in mp_CheckAutoloadTimer() 225 throughput_start(&mp->link.stats.total, "MP throughput", 1); in mp_CheckAutoloadTimer() 233 if (mp->link.stats.total.SamplePeriod != mp->cfg.autoload.period) in mp_RestartAutoloadTimer() 236 throughput_clear(&mp->link.stats.total, THROUGHPUT_OVERALL, NULL); in mp_RestartAutoloadTimer() [all …]
|
H A D | tty.c | 133 "using ``set cd off''\n", p->link.name); in tty_Timeout() 144 log_Printf(LogPHASE, "%s: %s: CD detected\n", p->link.name, p->name.full); in tty_Timeout() 148 p->link.name, p->name.full); in tty_Timeout() 151 p->link.name, p->name.full); in tty_Timeout() 159 p->link.name, p->name.full, dev->carrier_seconds, in tty_Timeout() 167 log_Printf(LogDEBUG, "%s: offline -> online\n", p->link.name); in tty_Timeout() 169 log_Printf(LogDEBUG, "%s: online -> offline\n", p->link.name); in tty_Timeout() 170 log_Printf(LogPHASE, "%s: Carrier lost\n", p->link.name); in tty_Timeout() 175 log_Printf(LogDEBUG, "%s: Still %sline\n", p->link.name, in tty_Timeout() 191 p->link.name, tty_Timeout); in tty_StartTimer() [all …]
|
H A D | link.c | 72 static void Despatch(struct bundle *, struct link *, struct mbuf *, u_short); 75 link_AddInOctets(struct link *l, int n) in link_AddInOctets() 85 link_AddOutOctets(struct link *l, int n) in link_AddOutOctets() 95 link_SequenceQueue(struct link *l) in link_SequenceQueue() 108 link_DeleteQueue(struct link *l) in link_DeleteQueue() 119 link_QueueLen(struct link *l) in link_QueueLen() 131 link_QueueBytes(struct link *l) in link_QueueBytes() 151 link_PendingLowPriorityData(struct link *l, size_t *pkts, size_t *octets) in link_PendingLowPriorityData() 179 link_Dequeue(struct link *l) in link_Dequeue() 216 link_ProtocolRecord(struct link *l, u_short proto, int type) in link_ProtocolRecord() [all …]
|
/freebsd/usr.sbin/etcupdate/tests/ |
H A D | always_test.sh | 101 ln -s "old link" $OLD/first/difflinks/second/link 102 ln -s "test link" $TEST/first/difflinks/second/link 117 ln -s "new link" $NEW/second/second/difflinks/link 118 ln -s "test link" $TEST/second/second/difflinks/link 144 mkfifo $OLD/difftype/difftype/difflinks/link 145 ln -s "new" $NEW/difftype/difftype/difflinks/link 146 ln -s "test" $TEST/difftype/difftype/difflinks/link 158 ln -s "old" $OLD/difflinks/first/first/link 159 ln -s "new" $NEW/difflinks/first/first/link 164 ln -s "old" $OLD/difflinks/difftype/difftype/link [all …]
|
H A D | tests_test.sh | 111 ln -s "bar" $i/equal/equal/equal/link 120 ln -s "bar" $i/equal/first/first/link 135 ln -s "foo" $i/equal/difflinks/difflinks/link 137 ln -s "bar" $TEST/equal/difflinks/difflinks/link 152 ln -s "bar" $i/first/equal/second/link 165 ln -s "bar" $OLD/first/first/equal/link 183 ln -s "old link" $OLD/first/difflinks/second/link 184 ln -s "test link" $TEST/first/difflinks/second/link 201 ln -s "new" $NEW/second/equal/first/link 219 ln -s "bar" $i/second/second/equal/link [all …]
|
/freebsd/contrib/netbsd-tests/usr.sbin/mtree/ |
H A D | d_merge.in | 5 # directory "a" with only one entry, changing from dir to link 7 ./a/change-dir-to-link type=dir mode=0755 8 ./a/change-dir-to-link type=link mode=0755 10 # directory "b" with only one entry, changing from link to dir 12 ./b/change-link-to-dir type=link mode=0755 13 ./b/change-link-to-dir type=dir mode=0755 15 # directory "c" with multiple entries, one changing from dir to link 19 ./c/change-dir-to-link type=dir mode=0755 20 ./c/change-dir-to-link type=link mode=0755 22 # directory "d" with multiple entries, one changing from link to dir [all …]
|
/freebsd/sbin/ifconfig/ |
H A D | ifconfig_netlink.c | 125 struct snl_parsed_link link; member 161 if (!snl_parse_nlmsg(ss, hdr, &snl_rtm_link_parser, &iface->link)) in prepare_ifmap() 163 if (iface->link.ifi_index >= ifmap->size) { in prepare_ifmap() 166 while (new_size <= iface->link.ifi_index + 1) in prepare_ifmap() 174 ifmap->ifaces[iface->link.ifi_index] = iface; in prepare_ifmap() 185 struct snl_parsed_link_simple link = {}; in if_nametoindex_nl() local 198 if (!snl_parse_nlmsg(ss, hdr, &snl_rtm_link_parser_simple, &link)) in if_nametoindex_nl() 201 return (link.ifi_index); in if_nametoindex_nl() 254 if_link_t *link = &iface->link; in match_iface() local 256 if (args->ifname != NULL && strcmp(args->ifname, link->ifla_ifname)) in match_iface() [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_bridge.c | 136 link_p link; /* link where addr can be found */ member 170 static void ng_bridge_free_link(link_p link); 172 static int ng_bridge_put(priv_p priv, const u_char *addr, link_p link); 174 static void ng_bridge_remove_hosts(priv_p priv, link_p link); 389 link_p link; in ng_bridge_newhook() local 428 link = malloc(sizeof(*link), M_NETGRAPH_BRIDGE, M_NOWAIT | M_ZERO); in ng_bridge_newhook() 429 if (link == NULL) { in ng_bridge_newhook() 435 link->stats.f = counter_u64_alloc(M_NOWAIT); \ in ng_bridge_newhook() 436 if (link->stats.f == NULL) \ in ng_bridge_newhook() 454 link->hook = hook; in ng_bridge_newhook() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_rctl.c | 382 struct rctl_rule_link *link; in rctl_throttle_decay() 390 LIST_FOREACH(link, &racct->r_rule_links, rrl_next) { in rctl_throttle_decay() 391 rule = link->rrl_rule; in rctl_throttle_decay() 425 struct rctl_rule_link *link; in rctl_pcpu_available() 434 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) { in rctl_pcpu_available() 435 rule = link->rrl_rule; in rctl_pcpu_available() 499 struct rctl_rule_link *link; in rctl_enforce() 513 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) { in rctl_enforce() 514 rule = link->rrl_rule; in rctl_enforce() 520 link in rctl_enforce() 381 struct rctl_rule_link *link; rctl_throttle_decay() local 424 struct rctl_rule_link *link; rctl_pcpu_available() local 498 struct rctl_rule_link *link; rctl_enforce() local 700 struct rctl_rule_link *link; rctl_get_limit() local 727 struct rctl_rule_link *link; rctl_get_available() local 883 struct rctl_rule_link *link; rctl_racct_add_rule() local 901 struct rctl_rule_link *link; rctl_racct_add_rule_locked() local 928 struct rctl_rule_link *link, *linktmp; rctl_racct_remove_rules() local 1689 struct rctl_rule_link *link; rctl_get_rules_callback() local 1708 struct rctl_rule_link *link; sys_rctl_get_rules() local 1794 struct rctl_rule_link *link; sys_rctl_get_limits() local 1957 struct rctl_rule_link *link, *newlink; rctl_proc_ucred_changed() local 2108 struct rctl_rule_link *link; rctl_proc_fork() local 2163 struct rctl_rule_link *link; rctl_racct_release() local [all...] |
/freebsd/sys/contrib/device-tree/src/arm64/qcom/ |
H A D | sc7280-herobrine-audio-wcd9385.dtsi | 38 dai-link@0 { 39 link-name = "MAX98360A"; 51 dai-link@1 { 52 link-name = "DisplayPort"; 64 dai-link@2 { 65 link-name = "WCD9385 Playback"; 77 dai-link@3 { 78 link-name = "WCD9385 Capture"; 90 dai-link@4 { 91 link-name = "DMIC"; [all …]
|
H A D | msm8996-oneplus-common.dtsi | 553 mm1-dai-link { 554 link-name = "MultiMedia1"; 561 mm2-dai-link { 562 link-name = "MultiMedia2"; 569 mm3-dai-link { 570 link-name = "MultiMedia3"; 577 mm4-dai-link { 578 link-name = "MultiMedia4"; 585 mm5-dai-link { 586 link [all...] |
H A D | sc7280-herobrine-audio-rt5682-3mic.dtsi | 27 dai-link@0 { 28 link-name = "MAX98360"; 40 dai-link@1 { 41 link-name = "DisplayPort"; 53 dai-link@2 { 54 link-name = "ALC5682"; 66 dai-link@4 { 67 link-name = "DMIC"; 118 dai-link@0 { 124 dai-link [all...] |
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_ucast_dfsssp.c | 73 typedef struct link { struct 80 struct link *next; argument 142 static inline void set_default_link(link_t * link) in set_default_link() argument 144 link->guid = 0; in set_default_link() 145 link->from = 0; in set_default_link() 146 link->from_port = 0; in set_default_link() 147 link->to = 0; in set_default_link() 148 link->to_port = 0; in set_default_link() 149 link->weight = 0; in set_default_link() 150 link->next = NULL; in set_default_link() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_deadlock_detector2.cpp | 80 Link link[kMaxLink]; member 229 Link *link = &mtx1->link[li]; in MutexBeforeLock() local 230 if (link->id == m->id) { in MutexBeforeLock() 231 if (link->seq != mtx->seq) { in MutexBeforeLock() 232 link->seq = mtx->seq; in MutexBeforeLock() 233 link->tid = lt->ctx; in MutexBeforeLock() 234 link->stk0 = stk1; in MutexBeforeLock() 235 link->stk1 = cb->Unwind(); in MutexBeforeLock() 245 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock() local 246 link->id = m->id; in MutexBeforeLock() [all …]
|
/freebsd/sys/net/ |
H A D | pfil.c | 150 struct pfil_link *link; in pfil_mem_common() local 159 CK_STAILQ_FOREACH(link, pch, link_chain) { in pfil_mem_common() 160 if (__predict_true(link->link_mem_chk != NULL && !realloc)) in pfil_mem_common() 161 rv = link->link_mem_chk(mem, len, flags, ifp, in pfil_mem_common() 162 link->link_ruleset, m); in pfil_mem_common() 164 rv = pfil_fake_mbuf(link->link_mbuf_chk, mem, len, ifp, in pfil_mem_common() 165 flags, link->link_ruleset, m); in pfil_mem_common() 167 rv = link->link_mbuf_chk(m, ifp, flags, in pfil_mem_common() 168 link->link_ruleset, NULL); in pfil_mem_common() 200 struct pfil_link *link; in pfil_mbuf_common() local [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/leds/ |
H A D | leds-bcm6328.txt | 16 is usually 1:1 for hardware to LED signals, but through the activity/link 18 explained later in brcm,link-signal-sources). Even if a LED is hardware 59 - brcm,link-signal-sources : An array of hardware link 60 signal sources. Up to four link hardware signals can get muxed into 127 brcm,link-signal-sources = <0>; 132 brcm,link-signal-sources = <1>; 205 brcm,link-signal-sources = <0>; 207 /* USB link/activity routed to USB LED */ 218 brcm,link-signal-sources = <4>; 219 /* EPHY0 link routed to EPHY0 LED */ [all …]
|
/freebsd/contrib/pjdfstest/tests/link/ |
H A D | 12.t | 29 expect 0 link ${n0} ${n1} 35 expect EPERM link ${n0} ${n1} 38 expect 0 link ${n0} ${n1} 44 expect 0 link ${n0} ${n1} 51 expect EPERM link ${n0} ${n1} 53 expect 0 link ${n0} ${n1} 61 expect EPERM link ${n0} ${n1} 63 expect 0 link ${n0} ${n1} 69 expect 0 link ${n0} ${n1} 76 expect EPERM link ${n0} ${n1} [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | mld-sta.c | 32 /* unless we have a specific link in mind */ in iwl_mvm_sta_fw_id_mask() 37 rcu_dereference_check(mvmsta->link[link_id], in iwl_mvm_sta_fw_id_mask() 214 mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_add_bcast_sta() 253 mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_add_mcast_sta() 287 mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_add_snif_sta() 370 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_rm_bcast_sta() 375 if (WARN_ON(!link)) in iwl_mvm_mld_rm_bcast_sta() 381 queueptr = &link->mgmt_queue; in iwl_mvm_mld_rm_bcast_sta() 392 return iwl_mvm_mld_rm_int_sta(mvm, &link in iwl_mvm_mld_rm_bcast_sta() 367 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id]; iwl_mvm_mld_rm_bcast_sta() local 400 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id]; iwl_mvm_mld_rm_mcast_sta() local 536 struct iwl_mvm_link_sta *link = iwl_mvm_mld_sta_rm_all_sta_links() local 555 struct iwl_mvm_link_sta *link; iwl_mvm_mld_alloc_sta_link() local [all...] |