Home
last modified time | relevance | path

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

12345678910>>...16

/third_party/f2fs-tools/tools/sg_write_buffer/
Dsg_io_linux.c173 sg_normalize_sense(const struct sg_io_hdr * hp, in sg_normalize_sense() argument
176 if ((NULL == hp) || (0 == hp->sb_len_wr)) { in sg_normalize_sense()
181 return sg_scsi_normalize_sense(hp->sbp, hp->sb_len_wr, sshp); in sg_normalize_sense()
187 sg_chk_n_print3(const char * leadin, struct sg_io_hdr * hp, in sg_chk_n_print3() argument
190 return sg_linux_sense_print(leadin, hp->status, hp->host_status, in sg_chk_n_print3()
191 hp->driver_status, hp->sbp, hp->sb_len_wr, in sg_chk_n_print3()
212 sg_err_category3(struct sg_io_hdr * hp) in sg_err_category3() argument
214 return sg_err_category_new(hp->status, hp->host_status, in sg_err_category3()
215 hp->driver_status, hp->sbp, hp->sb_len_wr); in sg_err_category3()
/third_party/mksh/
Dhistrap.c93 char **hfirst, **hlast, **hp, *editor = NULL; in c_fc() local
184 hp = first ? hist_get(first, false, false) : in c_fc()
186 if (!hp) in c_fc()
190 strdupx(line, *hp, ATEMP); in c_fc()
201 for (s = *hp; (s1 = strstr(s, pat)) && in c_fc()
272 for (hp = rflag ? hlast : hfirst; in c_fc()
273 hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1) { in c_fc()
277 (unsigned long)(histptr - hp)); in c_fc()
280 s = *hp; in c_fc()
300 for (hp = rflag ? hlast : hfirst; in c_fc()
[all …]
/third_party/python/Modules/
Dgetaddrinfo.c493 struct hostent *hp; local
501 hp = getipnodebyaddr(addr, gai_afd->a_addrlen, gai_afd->a_af, &h_error);
503 hp = gethostbyaddr(addr, gai_afd->a_addrlen, AF_INET);
505 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
506 GET_AI(cur, gai_afd, hp->h_addr_list[0], port);
507 GET_CANONNAME(cur, hp->h_name);
512 if (hp)
513 freehostent(hp);
521 if (hp)
522 freehostent(hp);
[all …]
Dgetnameinfo.c100 struct hostent *hp; local
181 hp = getipnodebyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af, &h_error);
183 hp = gethostbyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af);
187 if (hp) {
189 p = strchr(hp->h_name, '.');
192 if (strlen(hp->h_name) > hostlen) {
194 freehostent(hp);
198 strcpy(host, hp->h_name);
200 freehostent(hp);
/third_party/libwebsockets/lib/misc/
Dieeehalfprecision.c88 lws_singles2halfp(uint16_t *hp, uint32_t x) in lws_singles2halfp() argument
96 *hp = (uint16_t)(x >> 16); in lws_singles2halfp()
106 *hp = (uint16_t) (xs >> 16); in lws_singles2halfp()
112 *hp = (uint16_t) ((xs >> 16) | 0x7C00u); // Signed Inf in lws_singles2halfp()
116 *hp = (uint16_t) 0xFE00u; // NaN, only 1st mantissa bit set in lws_singles2halfp()
128 *hp = (uint16_t) ((xs >> 16) | 0x7C00u); // Signed Inf in lws_singles2halfp()
148 *hp = hs | hm; in lws_singles2halfp()
158 *hp = (uint16_t)((hs | he | hm) + (uint16_t)1u); in lws_singles2halfp()
160 *hp = hs | he | hm; // No rounding in lws_singles2halfp()
/third_party/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_c.c37 struct addrinfo *hp; in main() local
73 if ((gai = getaddrinfo(argv[1], NULL, &hints, &hp)) != 0) { in main()
77 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main()
83 memcpy(&sai, hp->ai_addr, hp->ai_addrlen); in main()
Dtestsf_s.c34 struct addrinfo *hp; in main() local
59 if ((gai = getaddrinfo(argv[1], NULL, &hints, &hp)) != 0) { in main()
62 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main()
67 memcpy(&sa, hp->ai_addr, hp->ai_addrlen); in main()
/third_party/ltp/testcases/network/multicast/mc_opts/
Dmc_verify_opts_error.c17 struct hostent *hp, *gethostbyname(); in main() local
34 hp = gethostbyname(argv[1]); in main()
35 if (hp) in main()
36 memcpy(&simr.s_addr, hp->h_addr, hp->h_length); in main()
Dmc_verify_opts.c23 struct hostent *hp, *gethostbyname(); in main() local
42 hp = gethostbyname(argv[1]); in main()
43 if (hp) in main()
44 memcpy(&simr.imr_interface.s_addr, hp->h_addr, hp->h_length); in main()
/third_party/ffmpeg/libavcodec/
Dvp9mvs.c236 static av_always_inline int read_mv_component(VP9TileData *td, int idx, int hp) in read_mv_component() argument
258 if (hp) { in read_mv_component()
259 bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].hp); in read_mv_component()
260 td->counts.mv_comp[idx].hp[bit]++; in read_mv_component()
266 td->counts.mv_comp[idx].hp[1]++; in read_mv_component()
276 if (hp) { in read_mv_component()
299 int hp; in ff_vp9_fill_mv() local
306 !(hp = s->s.h.highprecisionmvs && in ff_vp9_fill_mv()
327 mv[0].y += read_mv_component(td, 0, hp); in ff_vp9_fill_mv()
329 mv[0].x += read_mv_component(td, 1, hp); in ff_vp9_fill_mv()
[all …]
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/
Drpc_clnttcp_create.c56 struct hostent *hp = NULL; in main() local
60 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
65 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
Drpc_clnttcp_create_stress.c57 struct hostent *hp = NULL; in main() local
64 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
69 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
Drpc_clnttcp_create_limits.c67 struct hostent *hp = NULL; in main() local
71 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
76 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
Drpc_clnttcp_create_performance.c103 struct hostent *hp = NULL; in main() local
110 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
116 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/
Drpc_clntudp_create.c56 struct hostent *hp = NULL; in main() local
61 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
Drpc_clntudp_create_stress.c57 struct hostent *hp = NULL; in main() local
65 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
73 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
Drpc_clntudp_create_performance.c102 struct hostent *hp = NULL; in main() local
110 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
118 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
/third_party/ltp/testcases/network/rpc/basic_tests/rpc01/
Drpc1.c26 struct hostent *hp; in main() local
89 hp = gethostbyname(server); in main()
90 if (hp == NULL) { in main()
96 memcpy(&server_sin.sin_addr, hp->h_addr, sizeof(hp->h_addr)); in main()
104 if ((hp = gethostbyname(host_name)) != NULL) in main()
105 host_address = (long)*((int *)hp->h_addr_list[0]); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/
Drpc_clntudp_bufcreate.c56 struct hostent *hp = NULL; in main() local
61 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
Drpc_clntudp_bufcreate_limits.c67 struct hostent *hp = NULL; in main() local
72 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
80 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
/third_party/python/Modules/_decimal/libmpdec/
Dtranspose.c79 mpd_uint_t *readbuf, *writebuf, *hp; in swap_halfrows_pow2() local
119 hp = matrix + hn*cols/2; in swap_halfrows_pow2()
120 memcpy(readbuf, hp+offset, stride*(sizeof *readbuf)); in swap_halfrows_pow2()
124 hp = matrix + next*cols/2; in swap_halfrows_pow2()
128 memcpy(readbuf, hp+offset, stride*(sizeof *readbuf)); in swap_halfrows_pow2()
129 memcpy(hp+offset, writebuf, stride*(sizeof *writebuf)); in swap_halfrows_pow2()
135 hp = matrix + next*cols/2; in swap_halfrows_pow2()
139 memcpy(hp+offset, writebuf, stride*(sizeof *writebuf)); in swap_halfrows_pow2()
/third_party/ffmpeg/libavfilter/
Daf_aexciter.c32 double hp[5], lp[5]; member
111 p->hp[0] =-a1 / a0; in set_params()
112 p->hp[1] =-a2 / a0; in set_params()
113 p->hp[2] = b0 / a0; in set_params()
114 p->hp[3] = b1 / a0; in set_params()
115 p->hp[4] = b2 / a0; in set_params()
148 proc = bprocess(proc, p->hp, &p->hw[0][0], &p->hw[0][1]); in distortion_process()
149 proc = bprocess(proc, p->hp, &p->hw[1][0], &p->hw[1][1]); in distortion_process()
161 proc = bprocess(proc, p->hp, &p->hw[2][0], &p->hw[2][1]); in distortion_process()
162 proc = bprocess(proc, p->hp, &p->hw[3][0], &p->hw[3][1]); in distortion_process()
/third_party/libwebsockets/lib/misc/lwsac/
Dlwsac.c99 size_t ofs, alloc, al, hp; in _lwsac_use() local
132 hp = sizeof(*bf); /* always need the normal header part... */ in _lwsac_use()
134 hp += sizeof(struct lwsac_head); in _lwsac_use()
137 alloc = LWSAC_CHUNK_SIZE + hp; in _lwsac_use()
139 alloc = chunk_size + hp; in _lwsac_use()
146 if (al >= alloc - hp) in _lwsac_use()
147 alloc = al + hp; in _lwsac_use()
/third_party/ltp/testcases/network/multicast/mc_commo/
Dmc_recv.c29 struct hostent *hp, *gethostbyname(); in main() local
48 if ((hp = gethostbyname(argv[2]))) in main()
49 memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length); in main()
/third_party/flatbuffers/samples/
Dmonster_generated.swift87 case hp = 8
103 …public var hp: Int16 { let o = _accessor.offset(VTOFFSET.hp.v); return o == 0 ? 100 : _accessor.re… variable
104 …rdableResult public func mutate(hp: Int16) -> Bool {let o = _accessor.offset(VTOFFSET.hp.v); retu… in mutate()
123 …public static func add(hp: Int16, _ fbb: inout FlatBufferBuilder) { fbb.add(element: hp, def: 100,… in add()
139 hp: Int16 = 100,
151 MyGame_Sample_Monster.add(hp: hp, &fbb)

12345678910>>...16