/external/linux-kselftest/tools/testing/selftests/net/ |
psock_fanout.c | 176 struct tpacket_req req = { local 190 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, 191 sizeof(req))) { 196 ring = mmap(0, req.tp_block_size * req.tp_block_nr,
|
/external/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ |
ltp_tbio.c | 420 static int tbio_transfer(struct request *req, struct tbio_device *dev) 430 size = blk_rq_cur_bytes(req); 431 prk_info("bio req of size %zu:", size); 432 offset = blk_rq_pos(req) * 512; 434 rq_for_each_segment(bv, req, iter) { 441 if (get_capacity(req->rq_disk) * 512 < offset) { 443 get_capacity(req->rq_disk) * 512, 465 struct request *req; local 467 while ((req = blk_fetch_request(q)) != NULL) { 469 ret = tbio_transfer(req, &tbio_dev) [all...] |
/external/mesa3d/include/c11/ |
threads_posix.h | 347 struct timespec req; local 349 req.tv_sec = xt->sec; 350 req.tv_nsec = xt->nsec; 351 nanosleep(&req, NULL);
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
hud_nic.c | 112 struct iwreq req; local 115 memset(&req, 0, sizeof(req)); 117 strcpy(req.ifr_name, nic->name); 118 req.u.data.pointer = &stats; 119 req.u.data.flags = 1; 120 req.u.data.length = sizeof(struct iw_statistics); 128 if (ioctl(sockfd, SIOCGIWRATE, &req) == -1) { 133 *bitrate = req.u.bitrate.value; 143 struct iwreq req; local [all...] |
/external/mesa3d/src/glx/ |
glx_pbuffer.c | 105 xGLXChangeDrawableAttributesReq *req; local 107 GetReqExtra(GLXChangeDrawableAttributes, 8 * num_attribs, req); 108 output = (CARD32 *) (req + 1); 110 req->reqType = opcode; 111 req->glxCode = X_GLXChangeDrawableAttributes; 112 req->drawable = drawable; 113 req->numAttribs = (CARD32) num_attribs; 351 xGLXGetDrawableAttributesReq *req; local 353 GetReq(GLXGetDrawableAttributes, req); 354 req->reqType = opcode 423 xGLXDestroyPbufferReq *req; local 448 xGLXCreateWindowReq *req; local 564 xGLXCreatePbufferReq *req; local 650 xGLXDestroyPbufferReq *req; local [all...] |
glxext.c | 665 xGLXGetVisualConfigsReq *req; local 672 GetReq(GLXGetVisualConfigs, req); 673 req->reqType = priv->majorOpcode; 674 req->glxCode = X_GLXGetVisualConfigs; 675 req->screen = screen; [all...] |
/external/perfetto/src/ipc/ |
host_impl.cc | 31 // TODO(primiano): put limits on #connections/uid and req. queue (b/69093705). 142 const Frame::BindService& req = req_frame.msg_bind_service(); local 146 const ExposedService* service = GetServiceByName(req.service_name()); 162 const Frame::InvokeMethod& req = req_frame.msg_invoke_method(); local 167 auto svc_it = services_.find(req.service_id()); 174 const uint32_t method_id = req.method_id(); 180 method.request_proto_decoder(req.args_proto())); 188 if (!req.drop_reply()) {
|
/external/python/cpython2/Modules/ |
linuxaudiodev.c | 410 int req; local 413 req = SNDCTL_DSP_GETIPTR; 415 req = SNDCTL_DSP_GETOPTR; 416 if (ioctl(self->x_fd, req, &info) == -1) {
|
/external/stressapptest/src/ |
sattypes.h | 162 timespec req; local 163 req.tv_sec = microseconds / 1000000; 165 req.tv_nsec = (microseconds % 1000000) * 1000; 166 return nanosleep(&req, NULL) == 0; 171 timespec req; local 172 req.tv_sec = seconds; 173 req.tv_nsec = 0; 174 return nanosleep(&req, NULL) == 0;
|
/external/tensorflow/tensorflow/contrib/verbs/ |
rdma_mgr.cc | 63 GetRemoteAddressRequest req; local 72 req.set_host_name(local_worker_); 73 Channel* channel_info = req.mutable_channel(); 80 MemoryRegion* mr = req.add_mr(); 90 s = client->GetRemoteAddress(&req, &resp);
|
/external/tensorflow/tensorflow/core/distributed_runtime/ |
master.cc | 307 void Master::CreateSession(const CreateSessionRequest* req, 309 SchedClosure([this, req, resp, done]() { 315 status = ValidateExternalGraphDefSyntax(req->graph_def()); 329 if (req->config().has_cluster_def()) { 330 worker_cache_factory_options.cluster_def = &req->config().cluster_def(); 335 if (req->target().compare(0, grpc_protocol.length(), grpc_protocol) == 338 req->target().substr(grpc_protocol.length(), string::npos); 340 normalized_string = req->target(); 342 for (auto&& job : req->config().cluster_def().job()) { 349 req->target(), "'. ClusterDef: " 562 CleanupAllRequest req; local [all...] |
master_test.cc | 66 CreateSessionRequest req; local 67 *(req.mutable_graph_def()) = def; 69 req.mutable_config()->set_placement_period(1); 71 const Status s = FromGrpcStatus(master_->CreateSession(&ctx, req, &resp)); 82 ExtendSessionRequest req; local 83 req.set_session_handle(handle); 84 *(req.mutable_graph_def()) = def; 85 req.set_current_graph_version(current_version); 87 const Status s = FromGrpcStatus(master_->ExtendSession(&ctx, req, &resp)); 98 RunStepRequest req; local 125 CloseSessionRequest req; local 133 ResetRequest req; local 150 ListDevicesRequest req; local [all...] |
/external/toybox/lib/ |
args.c | 483 struct opts *req; local 486 for (req = gof.opts; req; req = req->next) 487 if (req->flags & 1) *(s++) = req->c;
|
/external/toybox/toys/pending/ |
arp.c | 48 struct arpreq req; //Global request structure variable in typeref:struct:arpreq 147 memcpy(&req.arp_netmask, &sa, sizeof(sa)); 164 if (!(toys.optflags & FLAG_D)) get_hw_add(toys.optargs[1], (char*)&req.arp_ha.sa_data); 172 memcpy(&req.arp_ha, &(ifre.ifr_hwaddr), sizeof(req.arp_ha)); 177 req.arp_flags = flags; 178 xstrncpy(req.arp_dev, TT.device, sizeof(req.arp_dev)); 179 xioctl(TT.sockfd, SIOCSARP, &req); 206 req.arp_flags = flags [all...] |
/external/walt/android/WALT/app/src/main/jni/ |
player.c | 422 const SLboolean req[2] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE}; local 428 id, req);
|
/external/wpa_supplicant_8/hs20/client/ |
est.c | 378 X509_REQ *req = NULL; local 425 req = X509_REQ_new(); 426 if (req == NULL) 442 res = X509_REQ_set_subject_name(req, 455 !X509_REQ_set_subject_name(req, subj)) 461 if (!X509_REQ_set_pubkey(req, pkey)) 488 if (!X509_REQ_add_extensions(req, exts)) 493 if (!X509_REQ_sign(req, pkey, EVP_sha256())) 502 X509_REQ_print(out, req); 523 X509_REQ_print_fp(f, req); 666 char *buf, *resp, *req, *req2; local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
eap_pax.c | 93 static struct wpabuf * eap_pax_alloc_resp(const struct eap_pax_hdr *req, 107 pax->mac_id = req->mac_id; 108 pax->dh_group_id = req->dh_group_id; 109 pax->public_key_id = req->public_key_id; 117 const struct eap_pax_hdr *req, 134 if (req->flags & EAP_PAX_FLAGS_CE) { 141 left = req_plen - sizeof(*req); 150 pos = (const u8 *) (req + 1); 180 if (eap_pax_initial_key_derivation(req->mac_id, data->ak, data->rand.e, 191 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen) 337 const struct eap_pax_hdr *req; local [all...] |
eap_sake.c | 371 const struct eap_sake_hdr *req; local 383 req = (const struct eap_sake_hdr *) pos; 386 subtype = req->subtype; 387 session_id = req->session_id; 388 pos = (const u8 *) (req + 1);
|
/external/wpa_supplicant_8/src/eap_server/ |
eap_server_gpsk.c | 108 struct wpabuf *req; local 122 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len, 124 if (req == NULL) { 131 wpabuf_put_u8(req, EAP_GPSK_OPCODE_GPSK_1); 132 wpabuf_put_be16(req, sm->server_id_len); 133 wpabuf_put_data(req, sm->server_id, sm->server_id_len); 134 wpabuf_put_data(req, data->rand_server, EAP_GPSK_RAND_LEN); 135 wpabuf_put_be16(req, 137 wpabuf_put_data(req, data->csuite_list, 140 return req; 150 struct wpabuf *req; local [all...] |
eap_server_ikev2.c | 135 struct wpabuf *req; local 170 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_IKEV2, plen, 172 if (req == NULL) 175 wpabuf_put_u8(req, flags); /* Flags */ 177 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); 179 wpabuf_put_data(req, wpabuf_head_u8(data->out_buf) + data->out_used, 184 const u8 *msg = wpabuf_head(req); 185 size_t len = wpabuf_len(req); 189 msg, len, wpabuf_put(req, icv_len)); 207 return req; [all...] |
eap_server_pax.c | 75 struct wpabuf *req; local 87 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PAX, 90 if (req == NULL) { 97 pax = wpabuf_put(req, sizeof(*pax)); 104 wpabuf_put_be16(req, EAP_PAX_RAND_LEN); 105 wpabuf_put_data(req, data->rand.r.x, EAP_PAX_RAND_LEN); 109 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); 111 wpabuf_mhead(req), wpabuf_len(req) - EAP_PAX_ICV_LEN, 115 return req; 122 struct wpabuf *req; local [all...] |
eap_server_psk.c | 57 struct wpabuf *req; local 70 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PSK, 73 if (req == NULL) { 80 psk = wpabuf_put(req, sizeof(*psk)); 83 wpabuf_put_data(req, sm->server_id, sm->server_id_len); 85 return req; 92 struct wpabuf *req; local 99 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PSK, 101 if (req == NULL) { 108 psk = wpabuf_put(req, sizeof(*psk)) [all...] |
eap_server_wsc.c | 168 struct wpabuf *req; local 170 req = eap_msg_alloc(EAP_VENDOR_WFA, EAP_VENDOR_TYPE_WSC, 2, 172 if (req == NULL) { 179 wpabuf_put_u8(req, WSC_Start); /* Op-Code */ 180 wpabuf_put_u8(req, 0); /* Flags */ 182 return req; 188 struct wpabuf *req; local 205 req = eap_msg_alloc(EAP_VENDOR_WFA, EAP_VENDOR_TYPE_WSC, plen, 207 if (req == NULL) { 213 wpabuf_put_u8(req, data->out_op_code); /* Op-Code * [all...] |
/external/wpa_supplicant_8/src/p2p/ |
p2p_go_neg.c | 215 struct wpabuf *req; local 246 req = p2p_build_go_neg_req(p2p, dev); 247 if (req == NULL) 258 wpabuf_head(req), wpabuf_len(req), 500) < 0) { 265 wpabuf_free(req); 839 " based on GO Neg Req since listen/oper freq not known", [all...] |
p2p_sd.c | 197 struct wpabuf *req; local 199 req = gas_build_comeback_req(dialog_token); 200 if (req == NULL) 205 wpabuf_head(req), wpabuf_len(req), 200) < 0) 208 wpabuf_free(req); 274 struct wpabuf *req; local 303 req = p2p_build_sd_query(p2p->srv_update_indic, query->tlvs); 304 if (req == NULL) 317 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) [all...] |