Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 25 of 79) sorted by relevance

1234

/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_hash_module.c153 hp->tries = 0; in ngx_stream_upstream_init_hash_peer()
155 hp->hash = 0; in ngx_stream_upstream_init_hash_peer()
181 if (hp->tries > 20 || hp->rrp.peers->single) { in ngx_stream_upstream_get_hash_peer()
183 return hp->get_rr_peer(pc, &hp->rrp); in ngx_stream_upstream_get_hash_peer()
205 ngx_crc32_update(&hash, hp->key.data, hp->key.len); in ngx_stream_upstream_get_hash_peer()
213 w = hp->hash % hp->rrp.peers->total_weight; in ngx_stream_upstream_get_hash_peer()
259 return hp->get_rr_peer(pc, &hp->rrp); in ngx_stream_upstream_get_hash_peer()
482 hash = ngx_crc32_long(hp->key.data, hp->key.len); in ngx_stream_upstream_init_chash_peer()
514 if (hp->tries > 20 || hp->rrp.peers->single) { in ngx_stream_upstream_get_chash_peer()
516 return hp->get_rr_peer(pc, &hp->rrp); in ngx_stream_upstream_get_chash_peer()
[all …]
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_upstream_hash_module.c153 hp->tries = 0; in ngx_http_upstream_init_hash_peer()
155 hp->hash = 0; in ngx_http_upstream_init_hash_peer()
181 if (hp->tries > 20 || hp->rrp.peers->single) { in ngx_http_upstream_get_hash_peer()
183 return hp->get_rr_peer(pc, &hp->rrp); in ngx_http_upstream_get_hash_peer()
206 ngx_crc32_update(&hash, hp->key.data, hp->key.len); in ngx_http_upstream_get_hash_peer()
214 w = hp->hash % hp->rrp.peers->total_weight; in ngx_http_upstream_get_hash_peer()
260 return hp->get_rr_peer(pc, &hp->rrp); in ngx_http_upstream_get_hash_peer()
480 hash = ngx_crc32_long(hp->key.data, hp->key.len); in ngx_http_upstream_init_chash_peer()
512 if (hp->tries > 20 || hp->rrp.peers->single) { in ngx_http_upstream_get_chash_peer()
514 return hp->get_rr_peer(pc, &hp->rrp); in ngx_http_upstream_get_chash_peer()
[all …]
/f-stack/freebsd/netgraph/
H A Dng_tag.c137 return (hp->tag_len); in ng_tag_hookinary_getLength()
148 return (hp->tag_len); in ng_tag_hookoutary_getLength()
403 struct ng_tag_hookin *hp; in ng_tag_rcvmsg() local
420 bcopy(hp, resp->data, in ng_tag_rcvmsg()
444 bcopy(hp, resp->data, in ng_tag_rcvmsg()
647 struct ng_tag_hookin *hp; in ng_tag_setdata_in() local
654 bcopy(hp0, hp, size); in ng_tag_setdata_in()
659 hip->in = hp; in ng_tag_setdata_in()
697 struct ng_tag_hookout *hp; in ng_tag_setdata_out() local
704 bcopy(hp0, hp, size); in ng_tag_setdata_out()
[all …]
H A Dng_bpf.c131 const struct ng_bpf_hookprog *hp; in ng_bpf_hookprogary_getLength() local
133 hp = (const struct ng_bpf_hookprog *) in ng_bpf_hookprogary_getLength()
135 return hp->bpf_prog_len; in ng_bpf_hookprogary_getLength()
322 if (msg->header.arglen < sizeof(*hp) in ng_bpf_rcvmsg()
339 struct ng_bpf_hookprog *hp; in ng_bpf_rcvmsg() local
357 bcopy(hp, resp->data, in ng_bpf_rcvmsg()
558 struct ng_bpf_hookprog *hp; in ng_bpf_setprog() local
572 if (hp == NULL) in ng_bpf_setprog()
574 bcopy(hp0, hp, size); in ng_bpf_setprog()
576 jit_prog = bpf_jitter(hp->bpf_prog, hp->bpf_prog_len); in ng_bpf_setprog()
[all …]
H A Dng_socket.c788 struct hookpriv *hp; in ngs_rehash() local
799 hp = NG_HOOK_PRIVATE(hook); in ngs_rehash()
801 LIST_REMOVE(hp, next); in ngs_rehash()
820 struct hookpriv *hp; in ngs_newhook() local
823 hp = malloc(sizeof(*hp), M_NETGRAPH_SOCK, M_NOWAIT); in ngs_newhook()
824 if (hp == NULL) in ngs_newhook()
828 hp->hook = hook; in ngs_newhook()
859 struct hookpriv *hp; in ngs_findhook() local
881 return (hp->hook); in ngs_findhook()
1062 LIST_REMOVE(hp, next); in ngs_disconnect()
[all …]
/f-stack/tools/libutil/
H A Drealhostname.c55 struct hostent *hp; in realhostname() local
58 hp = gethostbyaddr((const char *)ip, sizeof(*ip), AF_INET); in realhostname()
60 if (hp != NULL) { in realhostname()
61 strlcpy(trimmed, hp->h_name, sizeof(trimmed)); in realhostname()
66 strlcpy(lookup, hp->h_name, sizeof(lookup)); in realhostname()
67 hp = gethostbyname(lookup); in realhostname()
68 if (hp == NULL) in realhostname()
70 else for (; ; hp->h_addr_list++) { in realhostname()
71 if (*hp->h_addr_list == NULL) { in realhostname()
75 if (!memcmp(*hp->h_addr_list, ip, sizeof(*ip))) { in realhostname()
/f-stack/freebsd/kern/
H A Dsubr_hash.c95 LIST_HEAD(generic, generic) *hashtbl, *hp; in hashdestroy()
98 for (hp = hashtbl; hp <= &hashtbl[hashmask]; hp++) in hashdestroy()
99 KASSERT(LIST_EMPTY(hp), ("%s: hashtbl %p not empty " in hashdestroy()
/f-stack/freebsd/contrib/device-tree/Bindings/sound/
H A Dsirf-audio.txt9 - hp-pa-gpios: Need to be present if the board need control external
13 - hp-switch-gpios: Need to be present if the board capable to detect jack
37 hp-pa-gpios = <&gpio 44 0>;
39 hp-switch-gpios = <&gpio 45 0>;
H A Drockchip,rk3288-hdmi-analog.txt16 - rockchip,hp-en-gpios = The phandle of the GPIO that power up/down the
18 - rockchip,hp-det-gpios = The phandle of the GPIO that detects the headphone
31 rockchip,hp-en-gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
32 rockchip,hp-det-gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>;
H A Dwm8960.txt24 - wlf,hp-cfg: A list of headphone jack detect configuration register values.
26 hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4).
27 hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2).
28 hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).
H A Dnvidia,tegra-audio-rt5677.txt30 - nvidia,hp-det-gpios : The GPIO that detects headphones are plugged in
31 - nvidia,hp-en-gpios : The GPIO that enables headphone amplifier
58 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
60 nvidia,hp-en-gpios = <&rt5677 1 GPIO_ACTIVE_HIGH>;
H A Drt5645.txt19 - hp-detect-gpios:
21 we will get the JD status by getting the value of hp-detect-gpios.
70 hp-detect-gpios = <&gpio 19 0>;
H A Dnvidia,tegra-audio-wm8903.txt28 - nvidia,hp-mute-gpios : The GPIO that mutes the headphones
29 - nvidia,hp-det-gpios : The GPIO that detect headphones are plugged in
55 nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
H A Dnvidia,tegra-audio-rt5640.txt28 - nvidia,hp-det-gpios : The GPIO that detects headphones are plugged in
48 nvidia,hp-det-gpios = <&gpio 143 0>; /* GPIO PR7 */
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dlzjb.c58 uint16_t *hp; in lzjb_compress() local
80 hp = &lempel[hash & (LEMPEL_SIZE - 1)]; in lzjb_compress()
81 offset = (intptr_t)(src - *hp) & OFFSET_MASK; in lzjb_compress()
82 *hp = (uint16_t)(uintptr_t)src; in lzjb_compress()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_memory.c596 if (hp->orig_va != NULL && unlink(hp->filepath)) { in unlink_hugepage_files()
639 unmap_len = hp->size; in unmap_unneeded_hugepages()
642 munmap(hp->orig_va, in unmap_unneeded_hugepages()
645 hp->orig_va = NULL; in unmap_unneeded_hugepages()
1508 struct hugepage_file *hp = NULL; local
1531 if (hp == MAP_FAILED) {
1607 munmap(hp, size);
1612 munmap(hp[i].final_va, hp[i].size);
1618 munmap(hp[cur_seg].final_va, hp[cur_seg].size);
1620 if (hp != NULL && hp != MAP_FAILED)
[all …]
/f-stack/lib/
H A Dff_kern_subr.c97 LIST_HEAD(generic, generic) *hashtbl, *hp; in hashdestroy()
100 for (hp = hashtbl; hp <= &hashtbl[hashmask]; hp++) in hashdestroy()
101 KASSERT(LIST_EMPTY(hp), ("%s: hashtbl %p not empty " in hashdestroy()
/f-stack/tools/ifconfig/
H A Daf_inet.c142 struct hostent *hp; in in_getaddr() local
179 if ((hp = gethostbyname(s)) != NULL) in in_getaddr()
180 bcopy(hp->h_addr, (char *)&sin->sin_addr, in in_getaddr()
181 MIN((size_t)hp->h_length, sizeof(sin->sin_addr))); in in_getaddr()
/f-stack/freebsd/contrib/device-tree/Bindings/clock/
H A Drenesas,r8a73a4-cpg-clocks.txt18 "m1", "m2", "zx", "zs", and "hp".
32 "zx", "zs", "hp";
H A Drenesas,sh73a0-cpg-clocks.txt20 "m1", "m2", "z", "zx", and "hp".
34 "z", "zx", "hp";
H A Drenesas,r8a7740-cpg-clocks.txt18 "m1", "hp", "hpp", "usbp", "s", "zb", "m3", and "cp".
34 "i", "zg", "b", "m1", "hp",
H A Drenesas,cpg-clocks.yaml88 - const: hp
115 - const: hp
213 - const: hp
238 "usb24s", "i", "zg", "b", "m1", "hp", "hpp",
/f-stack/tools/arp/
H A Darp.c304 struct hostent *hp; in getaddr() local
314 if (!(hp = gethostbyname(host))) { in getaddr()
318 bcopy((char *)hp->h_addr, (char *)&reply.sin_addr, in getaddr()
627 struct hostent *hp; in print_entry() local
637 hp = gethostbyaddr((caddr_t)&(addr->sin_addr), in print_entry()
640 hp = 0; in print_entry()
641 if (hp) in print_entry()
642 host = hp->h_name; in print_entry()
/f-stack/dpdk/examples/l3fwd-power/
H A Dperf_core.c70 int hp = 0; in update_lcore_params() local
73 hp = 1; in update_lcore_params()
77 if (!hp) in update_lcore_params()
/f-stack/freebsd/contrib/device-tree/src/arm/
H A Drk3288-veyron-analog-audio.dtsi17 rockchip,hp-det-gpios = <&gpio6 RK_PA5 GPIO_ACTIVE_HIGH>;
76 hp_det: hp-det {

1234