/external/iproute2/bridge/ |
mdb.c | 379 } req = { local 419 req.bpm.ifindex = ll_name_to_index(d); 420 if (req.bpm.ifindex == 0) { 441 addattr_l(&req.n, sizeof(req), MDBA_SET_ENTRY, &entry, sizeof(entry)); 443 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
|
vlan.c | 37 } req = { local 88 req.ifm.ifi_index = ll_name_to_index(d); 89 if (req.ifm.ifi_index == 0) { 112 afspec = addattr_nest(&req.n, sizeof(req), IFLA_AF_SPEC); 115 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_FLAGS, flags); 120 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo, 127 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo [all...] |
/external/iproute2/ip/ |
ipneigh.c | 104 } req = { local 131 req.ndm.ndm_state = state; 141 req.ndm.ndm_flags |= NTF_PROXY; 164 req.ndm.ndm_family = dst.family; 165 if (addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen) < 0) 176 if (addattr_l(&req.n, sizeof(req), NDA_LLADDR, llabuf, l) < 0) 182 if (dev && (req.ndm.ndm_ifindex = ll_name_to_index(dev)) == 0) { 187 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0 347 } req = { local [all...] |
ipntable.c | 69 } req = { local 95 addattr_l(&req.n, sizeof(req), NDTA_NAME, namep, len); 105 addattr32(&req.n, sizeof(req), NDTA_THRESH1, thresh1); 115 addattr32(&req.n, sizeof(req), NDTA_THRESH2, thresh2); 125 addattr32(&req.n, sizeof(req), NDTA_THRESH3, thresh3); 135 addattr_l(&req.n, sizeof(req), NDTA_GC_INTERVAL [all...] |
iprule.c | 583 } req = { local 594 req.n.nlmsg_flags |= NLM_F_CREATE|NLM_F_EXCL; 595 req.r.rtm_type = RTN_UNICAST; 605 req.r.rtm_flags |= FIB_RULE_INVERT; 610 get_prefix(&dst, *argv, req.r.rtm_family); 611 req.r.rtm_src_len = dst.bitlen; 612 addattr_l(&req.n, sizeof(req), FRA_SRC, 618 get_prefix(&dst, *argv, req.r.rtm_family); 619 req.r.rtm_dst_len = dst.bitlen [all...] |
link_gre.c | 72 } req = { local 103 if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0) { 110 len = req.n.nlmsg_len; 115 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(&req.i), len);
|
link_gre6.c | 82 } req = { local 111 if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0) { 118 len = req.n.nlmsg_len; 123 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(&req.i), len);
|
link_iptnl.c | 80 } req = { local 111 if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0) { 118 len = req.n.nlmsg_len; 123 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(&req.i), len);
|
/external/iproute2/tc/ |
em_ipset.c | 95 static int do_getsockopt(struct ip_set_req_get_set *req) 100 sockfd = get_version(&req->version); 103 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, req, &size); 123 struct ip_set_req_get_set req; local 126 req.op = IP_SET_OP_GET_BYINDEX; 127 req.set.index = idx; 128 res = do_getsockopt(&req); 131 if (req.set.name[0] == '\0') { 137 strncpy(setname, req.set.name, IPSET_MAXNAMELEN); 144 struct ip_set_req_get_set req; local [all...] |
m_action.c | 462 } req = { local 473 tail = NLMSG_TAIL(&req.n); 474 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); 521 tail2 = NLMSG_TAIL(&req.n); 522 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); 523 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); 525 addattr32(&req.n, MAX_MSG, TCA_ACT_INDEX, i); 526 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; 530 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; 532 req.n.nlmsg_seq = rth.dump = ++rth.seq 561 } req = { local 602 } req = { local [all...] |
tc_class.c | 63 } req = { local 84 if (req.t.tcm_handle) 88 req.t.tcm_handle = handle; 93 if (req.t.tcm_parent) { 97 req.t.tcm_parent = TC_H_ROOT; 102 if (req.t.tcm_parent) 106 req.t.tcm_parent = handle; 123 addattr_l(&req.n, sizeof(req), TCA_KIND, k, strlen(k)+1); 125 addattr_l(&req.n, sizeof(req), TCA_RATE, &est, sizeof(est)) [all...] |
/external/ipsec-tools/src/racoon/ |
proposal.c | 1037 struct ipsecrequest *req; local 1060 for (req = sp_main->req; req; req = req->next) { 1061 if (req->saidx.mode == IPSEC_MODE_TUNNEL) { 1062 encmodesv = pfkey2ipsecdoi_mode(req->saidx.mode); 1072 for (req = sp_main->req; req; req = req->next) [all...] |
/external/iptables/libipq/ |
libipq.c | 274 } req; local 276 memset(&req, 0, sizeof(req)); 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 278 req.nlh.nlmsg_flags = NLM_F_REQUEST; 279 req.nlh.nlmsg_type = IPQM_MODE; 280 req.nlh.nlmsg_pid = h->local.nl_pid; 281 req.pm.msg.mode.value = mode; 282 req.pm.msg.mode.range = range [all...] |
/external/libdrm/omap/ |
omap_drm.c | 138 struct drm_omap_param req = { local 143 ret = drmCommandWriteRead(dev->fd, DRM_OMAP_GET_PARAM, &req, sizeof(req)); 148 *value = req.value; 156 struct drm_omap_param req = { local 160 return drmCommandWrite(dev->fd, DRM_OMAP_SET_PARAM, &req, sizeof(req)); 181 struct drm_gem_close req = { local 184 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); 201 struct drm_omap_gem_new req = local 271 struct drm_omap_gem_info req = { local 292 struct drm_gem_open req = { local 326 struct drm_prime_handle req = { local 372 struct drm_gem_close req = { local 390 struct drm_gem_flink req = { local 419 struct drm_prime_handle req = { local 461 struct drm_omap_gem_cpu_prep req = { local 471 struct drm_omap_gem_cpu_fini req = { local [all...] |
/external/libdrm/tests/amdgpu/ |
cs_tests.c | 188 struct amdgpu_bo_alloc_request req = {0}; local 195 req.alloc_size = 4*1024; 196 req.preferred_heap = AMDGPU_GEM_DOMAIN_GTT; 198 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); 255 struct amdgpu_bo_alloc_request req = {0}; local 263 req.alloc_size = 4*1024; /* msg */ 264 req.alloc_size += 4*1024; /* fb */ 266 req.alloc_size += 4096; /*it_scaling_table*/ 267 req.alloc_size += ALIGN(sizeof(uvd_bitstream), 4*1024); 268 req.alloc_size += ALIGN(dpb_size, 4*1024) 384 struct amdgpu_bo_alloc_request req = {0}; local [all...] |
vce_tests.c | 190 struct amdgpu_bo_alloc_request req = {0}; local 196 req.alloc_size = ALIGN(size, 4096); 197 req.preferred_heap = domain; 198 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); 202 req.alloc_size, 1, 0, &va, 205 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, 210 vce_bo->size = req.alloc_size;
|
/external/libevent/ |
evrpc-internal.h | 180 struct evhttp_request *req; member in struct:evrpc_request_wrapper
|
/external/libevent/sample/ |
https-client.c | 52 http_request_done(struct evhttp_request *req, void *ctx) 57 if (req == NULL) { 58 /* If req is NULL, it means an error occurred, but 83 evhttp_request_get_response_code(req), 84 evhttp_request_get_response_code_line(req)); 86 while ((nread = evbuffer_remove(evhttp_request_get_input_buffer(req), 205 struct evhttp_request *req; local 427 req = evhttp_request_new(http_request_done, bev); 428 if (req == NULL) { 433 output_headers = evhttp_request_get_output_headers(req); [all...] |
/external/libevent/test/ |
regress_rpc.c | 113 struct evhttp_request* req = EVRPC_REQUEST_HTTP(rpc); local 115 req->input_headers, "X-Hook"); 168 rpc_postrequest_failure(struct evhttp_request *req, void *arg) 170 if (req->response_code != HTTP_SERVUNAVAIL) { 191 struct evhttp_request *req = NULL; local 203 req = evhttp_request_new(rpc_postrequest_failure, NULL); 204 tt_assert(req); 207 evhttp_add_header(req->output_headers, "Host", "somehost"); 208 evbuffer_add_printf(req->output_buffer, "Some Nonsense"); 210 if (evhttp_make_request(evcon, req, 260 struct evhttp_request *req = NULL; local 333 struct evhttp_request *req = status->http_req; local [all...] |
/external/libnetfilter_conntrack/src/expect/ |
api.c | 491 * \param req buffer used to build the netlink message 505 void *req, 512 assert(req != NULL); 515 return __build_expect(ssh, req, size, type, flags, exp); 523 struct nfnlhdr *req = buffer; local 528 assert(req != NULL); 530 memset(req, 0, size); 534 __build_expect(ssh, req, size, IPCTNL_MSG_EXP_NEW, NLM_F_REQUEST|NLM_F_CREATE|NLM_F_ACK|NLM_F_EXCL, data); 537 __build_expect(ssh, req, size, IPCTNL_MSG_EXP_NEW, NLM_F_REQUEST|NLM_F_CREATE|NLM_F_ACK, data); 540 __build_expect(ssh, req, size, IPCTNL_MSG_EXP_GET, NLM_F_REQUEST|NLM_F_ACK, data) 675 struct nfnlhdr req; member in union:__anon25409 707 struct nfnlhdr req; member in union:__anon25410 [all...] |
/external/libpcap/ |
pcap-snf.c | 132 struct snf_recv_req req; local 153 err = snf_ring_recv(ps->snf_ring, timeout, &req); 170 caplen = req.length; 175 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) { 176 hdr.ts = snf_timestamp_to_timeval(req.timestamp, p->opt.tstamp_precision); 178 hdr.len = req.length; 179 callback(user, &hdr, req.pkt_addr);
|
/external/libusb/libusb/os/ |
darwin_usb.h | 155 IOUSBDevRequestTO req; member in struct:darwin_transfer_priv
|
netbsd_usb.c | 391 struct usb_ctl_request req; local 395 req.ucr_request.bmRequestType = UT_WRITE_ENDPOINT; 396 req.ucr_request.bRequest = UR_CLEAR_FEATURE; 397 USETW(req.ucr_request.wValue, UF_ENDPOINT_HALT); 398 USETW(req.ucr_request.wIndex, endpoint); 399 USETW(req.ucr_request.wLength, 0); 401 if (ioctl(dpriv->fd, USB_DO_REQUEST, &req) < 0) 573 struct usb_ctl_request req; local 585 req.ucr_request.bmRequestType = setup->bmRequestType; 586 req.ucr_request.bRequest = setup->bRequest [all...] |
openbsd_usb.c | 427 struct usb_ctl_request req; local 435 req.ucr_addr = handle->dev->device_address; 436 req.ucr_request.bmRequestType = UT_WRITE_ENDPOINT; 437 req.ucr_request.bRequest = UR_CLEAR_FEATURE; 438 USETW(req.ucr_request.wValue, UF_ENDPOINT_HALT); 439 USETW(req.ucr_request.wIndex, endpoint); 440 USETW(req.ucr_request.wLength, 0); 442 if (ioctl(fd, USB_REQUEST, &req) < 0) { 633 struct usb_ctl_request req; local 645 req.ucr_addr = transfer->dev_handle->dev->device_address [all...] |
/external/libvncserver/client_examples/ |
scrap.c | 494 XSelectionRequestEvent *req; local 501 req = &event->syswm.msg->event.xevent.xselectionrequest; 502 if (req->target == XA_TARGETS) { 509 XChangeProperty(SDL_Display, req->requestor, 510 req->property, req->target, 32, PropModeReplace, 515 response.xselection.display= req->display; 516 response.xselection.requestor= req->requestor; 517 response.xselection.selection=req->selection; 518 response.xselection.target= req->target [all...] |