/external/dtc/tests/ |
root_node.c | 34 const struct fdt_node_header *nh; local 39 nh = fdt_offset_ptr(fdt, 0, sizeof(*nh)); 41 if (! nh) 44 if (fdt32_to_cpu(nh->tag) != FDT_BEGIN_NODE) 47 if (strlen(nh->name) != 0) 49 nh->name);
|
path_offset.c | 33 const struct fdt_node_header *nh; local 41 nh = fdt_offset_ptr(fdt, offset, sizeof(*nh)); 42 verbose_printf("pointer %p\n", nh); 43 if (! nh) 46 tag = fdt32_to_cpu(nh->tag); 50 if (!nodename_eq(nh->name, name)) 52 nh->name, name);
|
subnode_offset.c | 33 const struct fdt_node_header *nh; local 41 nh = fdt_offset_ptr(fdt, offset, sizeof(*nh)); 42 verbose_printf("pointer %p\n", nh); 43 if (! nh) 46 tag = fdt32_to_cpu(nh->tag); 50 if (!nodename_eq(nh->name, name)) 52 nh->name, name);
|
/external/libcxxabi/src/ |
stdlib_new_delete.cpp | 36 std::new_handler nh = std::get_new_handler(); variable 37 if (nh) 38 nh(); 156 std::new_handler nh = std::get_new_handler(); variable 157 if (nh) 158 nh();
|
/external/libcxx/src/ |
new.cpp | 76 std::new_handler nh = std::get_new_handler(); variable 77 if (nh) 78 nh(); 195 std::new_handler nh = std::get_new_handler(); variable 196 if (nh) 197 nh();
|
/external/ltp/lib/ |
tst_crypto.c | 51 struct nlmsghdr *nh; local 55 for (nh = (struct nlmsghdr *) buf; 56 NLMSG_OK(nh, len); 57 nh = NLMSG_NEXT(nh, len)) { 58 if (nh->nlmsg_seq != ses->seq_num) { 61 nh->nlmsg_type, nh->nlmsg_seq, ses->seq_num); 67 if (nh->nlmsg_type == NLMSG_ERROR) 68 return ((struct nlmsgerr *)NLMSG_DATA(nh))->error 82 struct nlmsghdr nh = { local 99 struct nlmsghdr nh = { local [all...] |
/external/ltp/testcases/kernel/containers/share/ |
ns_ifmove.c | 43 struct nlmsghdr nh; member in struct:__anon32227 104 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); 105 req.nh.nlmsg_flags = NLM_F_REQUEST; 106 req.nh.nlmsg_type = RTM_NEWLINK; 111 NLMSG_ALIGN(req.nh.nlmsg_len)); 114 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + 118 if (send(rtnetlink_socket, &req, req.nh.nlmsg_len, 0) == -1) {
|
/external/ltp/testcases/kernel/crypto/ |
crypto_user01.c | 116 static void validate_one_alg(const struct nlmsghdr *nh) 118 const struct crypto_user_alg *alg = NLMSG_DATA(nh); 120 size_t remaining = NLMSG_PAYLOAD(nh, sizeof(*alg)); 136 const struct nlmsghdr *nh; local 138 for (nh = buf; NLMSG_OK(nh, remaining); 139 nh = NLMSG_NEXT(nh, remaining)) { 140 if (nh->nlmsg_seq != ses.seq_num) { 143 nh->nlmsg_type, nh->nlmsg_seq, ses.seq_num) 159 struct nlmsghdr nh = { local [all...] |
/device/google/cuttlefish_common/common/libs/net/ |
netlink_client.cpp | 58 struct nlmsghdr *nh; local 69 for (nh = reinterpret_cast<nlmsghdr*>(buf); 70 NLMSG_OK(nh, len); 71 nh = NLMSG_NEXT(nh, len)) { 72 if (nh->nlmsg_seq != seq_no) { 77 << nh->nlmsg_seq << " != " << seq_no; 84 if (nh->nlmsg_type == NLMSG_DONE) 90 if (nh->nlmsg_type == NLMSG_ERROR) { 91 nlmsgerr* err = reinterpret_cast<nlmsgerr*>(nh + 1) [all...] |
/external/blktrace/btt/ |
q2d.c | 96 double nh = (double)q2dp->nhistos; local 99 double p = 100.0 * (double)q2dp->histos[i] / nh;
|
/external/iproute2/ip/ |
ipmroute.c | 138 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); local 144 if (len < sizeof(*nh)) 146 if (nh->rtnh_len > len) 153 fprintf(fp, "%s", ll_index_to_name(nh->rtnh_ifindex)); 154 if (nh->rtnh_hops > 1) 155 fprintf(fp, "(ttl %d) ", nh->rtnh_hops); 158 len -= NLMSG_ALIGN(nh->rtnh_len); 159 nh = RTNH_NEXT(nh);
|
/external/libaom/libaom/av1/encoder/ |
dwt.c | 76 int lv, i, j, nh, nw, hh = height, hw = width; local 95 nh = hh; 99 if ((nh < 2) || (nw < 2)) return; 100 for (i = 0; i < nh; i++) { 105 for (i = 0; i < nh; i++) buffer[i + nh] = c[i * pitch_c + j]; 106 analysis_53_col(nh, buffer + nh, buffer, buffer + hh); 107 for (i = 0; i < nh; i++) c[i * pitch_c + j] = buffer[i];
|
/external/strace/ |
rtnl_route.c | 263 struct rtnexthop nh; local 265 if (len < sizeof(nh)) 267 else if (!umove_or_printaddr(tcp, addr, &nh)) { 269 PRINT_FIELD_U("{", nh, rtnh_len); 270 PRINT_FIELD_FLAGS(", ", nh, rtnh_flags, 272 PRINT_FIELD_U(", ", nh, rtnh_hops); 273 PRINT_FIELD_IFINDEX(", ", nh, rtnh_ifindex); 276 const unsigned short rtnh_len = MIN(len, nh.rtnh_len); 277 const size_t offset = RTNH_ALIGN(sizeof(nh));
|
/external/strace/tests/ |
nlattr_rtmsg.c | 125 struct rtnexthop nh = { local 126 .rtnh_len = sizeof(nh) - 1, 133 RTA_MULTIPATH, pattern, nh, 137 nh.rtnh_len, nh.rtnh_hops)); 139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; 140 nh.rtnh_len = sizeof(buf); 142 memcpy(buf, &nh, sizeof(nh)); 143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)) [all...] |
/external/strace/tests-m32/ |
nlattr_rtmsg.c | 125 struct rtnexthop nh = { local 126 .rtnh_len = sizeof(nh) - 1, 133 RTA_MULTIPATH, pattern, nh, 137 nh.rtnh_len, nh.rtnh_hops)); 139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; 140 nh.rtnh_len = sizeof(buf); 142 memcpy(buf, &nh, sizeof(nh)); 143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)) [all...] |
/external/strace/tests-mx32/ |
nlattr_rtmsg.c | 125 struct rtnexthop nh = { local 126 .rtnh_len = sizeof(nh) - 1, 133 RTA_MULTIPATH, pattern, nh, 137 nh.rtnh_len, nh.rtnh_hops)); 139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; 140 nh.rtnh_len = sizeof(buf); 142 memcpy(buf, &nh, sizeof(nh)); 143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)) [all...] |
/external/tcpdump/ |
print-ip6.c | 52 u_int nh; local 61 nh = ip6->ip6_nxt; 67 switch (nh) { 81 nh = *cp; 92 nh = *cp; 222 int nh; local 281 nh = ip6->ip6_nxt; 289 nh != IPPROTO_TCP && nh != IPPROTO_UDP && 290 nh != IPPROTO_DCCP && nh != IPPROTO_SCTP) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/lib/libfdt/ |
fdt_sw.c | 172 struct fdt_node_header *nh; local 177 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); 178 if (! nh) 181 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); 182 memcpy(nh->name, name, namelen);
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/ |
fdt_sw.c | 140 struct fdt_node_header *nh;
local 145 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen));
146 if (! nh)
149 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
150 memcpy(nh->name, name, namelen);
|
/external/dtc/libfdt/ |
fdt_sw.c | 172 struct fdt_node_header *nh; local 177 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); 178 if (! nh) 181 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); 182 memcpy(nh->name, name, namelen);
|
/external/libnl/lib/route/ |
nexthop.c | 39 struct rtnl_nexthop *nh; local 41 nh = calloc(1, sizeof(*nh)); 42 if (!nh) 45 nl_init_list_head(&nh->rtnh_list); 47 return nh; 52 struct rtnl_nexthop *nh; local 54 nh = rtnl_route_nh_alloc(); 55 if (!nh) 58 nh->rtnh_flags = src->rtnh_flags [all...] |
/external/libnl/src/lib/ |
route.c | 151 struct rtnl_nexthop *nh; local 157 if (!(nh = rtnl_route_nh_alloc())) 174 rtnl_route_nh_set_ifindex(nh, ival); 179 rtnl_route_nh_set_gateway(nh, addr); 189 rtnl_route_nh_set_weight(nh, lval); 194 rtnl_route_add_nexthop(route, nh);
|
/external/libpcap/ |
pcap-nit.c | 108 register struct nit_hdr *nh; local 153 nh = (struct nit_hdr *)bp; 154 cp = bp + sizeof(*nh); 156 switch (nh->nh_state) { 164 pn->stat.ps_drop = nh->nh_dropped; 172 "bad nit state %d", nh->nh_state); 176 bp += ((sizeof(struct nit_hdr) + nh->nh_datalen + 179 caplen = nh->nh_wirelen; 182 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) { 184 h.ts = nh->nh_timestamp [all...] |
/external/u-boot/scripts/dtc/libfdt/ |
fdt_sw.c | 172 struct fdt_node_header *nh; local 177 nh = fdt_grab_space_(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); 178 if (! nh) 181 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); 182 memcpy(nh->name, name, namelen);
|
/frameworks/av/media/codec2/vndk/ |
types.cpp | 146 native_handle_t* nh = native_handle_create(1, 0); local 147 if (!nh) { 150 nh->data[0] = fenceFd; 151 to->set(nh);
|