/external/kernel-headers/original/uapi/linux/ |
D | cec-funcs.h | 42 static inline void cec_msg_active_source(struct cec_msg *msg, __u16 phys_addr) in cec_msg_active_source() argument 44 msg->len = 4; in cec_msg_active_source() 45 msg->msg[0] |= 0xf; /* broadcast */ in cec_msg_active_source() 46 msg->msg[1] = CEC_MSG_ACTIVE_SOURCE; in cec_msg_active_source() 47 msg->msg[2] = phys_addr >> 8; in cec_msg_active_source() 48 msg->msg[3] = phys_addr & 0xff; in cec_msg_active_source() 51 static inline void cec_ops_active_source(const struct cec_msg *msg, in cec_ops_active_source() argument 54 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_active_source() 57 static inline void cec_msg_image_view_on(struct cec_msg *msg) in cec_msg_image_view_on() argument 59 msg->len = 2; in cec_msg_image_view_on() [all …]
|
/external/syslinux/core/lwip/src/api/ |
D | netifapi.c | 45 do_netifapi_netif_add(struct netifapi_msg_msg *msg) in do_netifapi_netif_add() argument 47 if (!netif_add( msg->netif, in do_netifapi_netif_add() 48 msg->msg.add.ipaddr, in do_netifapi_netif_add() 49 msg->msg.add.netmask, in do_netifapi_netif_add() 50 msg->msg.add.gw, in do_netifapi_netif_add() 51 msg->msg.add.state, in do_netifapi_netif_add() 52 msg->msg.add.init, in do_netifapi_netif_add() 53 msg->msg.add.input)) { in do_netifapi_netif_add() 54 msg->err = ERR_IF; in do_netifapi_netif_add() 56 msg->err = ERR_OK; in do_netifapi_netif_add() [all …]
|
D | tcpip.c | 76 struct tcpip_msg *msg; in tcpip_thread() local 88 sys_timeouts_mbox_fetch(&mbox, (void **)&msg); in tcpip_thread() 90 switch (msg->type) { in tcpip_thread() 93 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API message %p\n", (void *)msg)); in tcpip_thread() 94 msg->msg.apimsg->function(&(msg->msg.apimsg->msg)); in tcpip_thread() 100 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg)); in tcpip_thread() 102 if (msg->msg.inp.netif->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { in tcpip_thread() 103 ethernet_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread() 107 ip_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread() 109 memp_free(MEMP_TCPIP_MSG_INPKT, msg); in tcpip_thread() [all …]
|
D | api_msg.c | 482 pcb_new(struct api_msg_msg *msg) argument 484 LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL); 487 switch(NETCONNTYPE_GROUP(msg->conn->type)) { 490 msg->conn->pcb.raw = raw_new(msg->msg.n.proto); 491 if(msg->conn->pcb.raw == NULL) { 492 msg->err = ERR_MEM; 495 raw_recv(msg->conn->pcb.raw, recv_raw, msg->conn); 500 msg->conn->pcb.udp = udp_new(); 501 if(msg->conn->pcb.udp == NULL) { 502 msg->err = ERR_MEM; [all …]
|
D | api_lib.c | 71 struct api_msg msg; in netconn_new_with_proto_and_callback() local 75 msg.function = do_newconn; in netconn_new_with_proto_and_callback() 76 msg.msg.msg.n.proto = proto; in netconn_new_with_proto_and_callback() 77 msg.msg.conn = conn; in netconn_new_with_proto_and_callback() 78 if (TCPIP_APIMSG(&msg) != ERR_OK) { in netconn_new_with_proto_and_callback() 105 struct api_msg msg; in netconn_delete() local 112 msg.function = do_delconn; in netconn_delete() 113 msg.msg.conn = conn; in netconn_delete() 114 tcpip_apimsg(&msg); in netconn_delete() 137 struct api_msg msg; in netconn_getaddr() local [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBMessageTests+Runtime.m | 311 //% Message2 *msg = [[Message2 alloc] init]; 312 //% XCTAssertFalse(msg.hasOptional##FIELD); 313 //% XCTAssertFalse(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD)); 314 //% msg.optional##FIELD = NON_ZERO_VALUE; 315 //% XCTAssertTrue(msg.hasOptional##FIELD); 316 //% XCTAssertTrue(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD)); 317 //% [msg release]; 320 //% Message2 *msg = [[Message2 alloc] init]; 321 //% XCTAssertFalse(msg.hasOptional##FIELD); 322 //% XCTAssertFalse(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD)); [all …]
|
D | GPBSwiftTests.swift | 39 let msg = Message2() in testProto2Basics() variable 43 msg.optionalInt32 = 100 in testProto2Basics() 44 msg.optionalString = "abc" in testProto2Basics() 45 msg.optionalEnum = .Bar in testProto2Basics() 47 msg.optionalMessage = msg2 in testProto2Basics() 49 msg.optionalGroup = msg3 in testProto2Basics() 50 msg.repeatedInt32Array.addValue(300) in testProto2Basics() 51 msg.repeatedInt32Array.addValue(301) in testProto2Basics() 52 msg.repeatedStringArray.addObject("mno") in testProto2Basics() 53 msg.repeatedStringArray.addObject("pqr") in testProto2Basics() [all …]
|
/external/protobuf/js/ |
D | proto3_test.js | 73 var msg = new proto.jspb.test.TestProto3(); 75 assertEquals(msg.getOptionalInt32(), 0); 76 assertEquals(msg.getOptionalInt64(), 0); 77 assertEquals(msg.getOptionalUint32(), 0); 78 assertEquals(msg.getOptionalUint64(), 0); 79 assertEquals(msg.getOptionalSint32(), 0); 80 assertEquals(msg.getOptionalSint64(), 0); 81 assertEquals(msg.getOptionalFixed32(), 0); 82 assertEquals(msg.getOptionalFixed64(), 0); 83 assertEquals(msg.getOptionalSfixed32(), 0); [all …]
|
D | message.js | 278 jspb.Message.getIndex_ = function(msg, fieldNumber) { argument 279 return fieldNumber + msg.arrayIndexOffset_; 299 msg, data, messageId, suggestedPivot, repeatedFields, opt_oneofFields) { argument 300 msg.wrappers_ = jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS ? null : {}; 304 msg.messageId_ = messageId ? String(messageId) : undefined; 308 msg.arrayIndexOffset_ = messageId === 0 ? -1 : 0; 309 msg.array = data; 310 jspb.Message.materializeExtensionObject_(msg, suggestedPivot); 311 msg.convertedFloatingPointFields_ = {}; 316 if (fieldNumber < msg.pivot_) { [all …]
|
/external/libnl/lib/netfilter/ |
D | log_msg_obj.c | 40 struct nfnl_log_msg *msg = (struct nfnl_log_msg *) c; in log_msg_free_data() local 42 if (msg == NULL) in log_msg_free_data() 45 free(msg->log_msg_payload); in log_msg_free_data() 46 free(msg->log_msg_prefix); in log_msg_free_data() 75 struct nfnl_log_msg *msg = (struct nfnl_log_msg *) a; in log_msg_dump() local 83 if (msg->ce_mask & LOG_MSG_ATTR_PREFIX) in log_msg_dump() 84 nl_dump(p, "%s", msg->log_msg_prefix); in log_msg_dump() 86 if (msg->ce_mask & LOG_MSG_ATTR_INDEV) { in log_msg_dump() 90 msg->log_msg_indev, in log_msg_dump() 93 nl_dump(p, "IN=%d ", msg->log_msg_indev); in log_msg_dump() [all …]
|
D | queue_msg_obj.c | 37 struct nfnl_queue_msg *msg = (struct nfnl_queue_msg *) c; in nfnl_queue_msg_free_data() local 39 if (msg == NULL) in nfnl_queue_msg_free_data() 42 free(msg->queue_msg_payload); in nfnl_queue_msg_free_data() 65 struct nfnl_queue_msg *msg = (struct nfnl_queue_msg *) a; in nfnl_queue_msg_dump() local 73 if (msg->ce_mask & QUEUE_MSG_ATTR_GROUP) in nfnl_queue_msg_dump() 74 nl_dump(p, "GROUP=%u ", msg->queue_msg_group); in nfnl_queue_msg_dump() 76 if (msg->ce_mask & QUEUE_MSG_ATTR_INDEV) { in nfnl_queue_msg_dump() 80 msg->queue_msg_indev, in nfnl_queue_msg_dump() 83 nl_dump(p, "IN=%d ", msg->queue_msg_indev); in nfnl_queue_msg_dump() 86 if (msg->ce_mask & QUEUE_MSG_ATTR_PHYSINDEV) { in nfnl_queue_msg_dump() [all …]
|
/external/libnl/lib/idiag/ |
D | idiag_msg_obj.c | 31 void idiagnl_msg_get(struct idiagnl_msg *msg) in idiagnl_msg_get() argument 33 nl_object_get((struct nl_object *) msg); in idiagnl_msg_get() 36 void idiagnl_msg_put(struct idiagnl_msg *msg) in idiagnl_msg_put() argument 38 nl_object_put((struct nl_object *) msg); in idiagnl_msg_put() 46 struct idiagnl_msg *msg = NULL; in idiagnl_msg_parser() local 49 if ((err = idiagnl_msg_parse(nlh, &msg)) < 0) in idiagnl_msg_parser() 52 err = pp->pp_cb((struct nl_object *) msg, pp); in idiagnl_msg_parser() 53 idiagnl_msg_put(msg); in idiagnl_msg_parser() 134 uint8_t idiagnl_msg_get_family(const struct idiagnl_msg *msg) in idiagnl_msg_get_family() argument 136 return msg->idiag_family; in idiagnl_msg_get_family() [all …]
|
/external/protobuf/js/binary/ |
D | proto_test.js | 102 function fillAllFields(msg) { argument 103 msg.setOptionalInt32(-42); 106 msg.setOptionalInt64(-0x7fffffff00000000); 107 msg.setOptionalUint32(0x80000000); 108 msg.setOptionalUint64(0xf000000000000000); 109 msg.setOptionalSint32(-100); 110 msg.setOptionalSint64(-0x8000000000000000); 111 msg.setOptionalFixed32(1234); 112 msg.setOptionalFixed64(0x1234567800000000); 113 msg.setOptionalSfixed32(-1234); [all …]
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_parse.c | 37 struct p2p_message *msg) in p2p_parse_attribute() argument 50 msg->capability = data; in p2p_parse_attribute() 61 msg->device_id = data; in p2p_parse_attribute() 63 MAC2STR(msg->device_id)); in p2p_parse_attribute() 71 msg->go_intent = data; in p2p_parse_attribute() 81 msg->status = data; in p2p_parse_attribute() 95 msg->listen_channel = data; in p2p_parse_attribute() 112 msg->operating_channel = data; in p2p_parse_attribute() 124 msg->channel_list = data; in p2p_parse_attribute() 125 msg->channel_list_len = len; in p2p_parse_attribute() [all …]
|
D | p2p_pd.c | 444 static int p2ps_validate_pd_req(struct p2p_data *p2p, struct p2p_message *msg, in p2ps_validate_pd_req() argument 456 if ((_val) && !msg->_attr) { \ in p2ps_validate_pd_req() 475 if (msg->status && *msg->status != P2P_SC_SUCCESS_DEFERRED) in p2ps_validate_pd_req() 490 if (msg->feature_cap_len < sizeof(struct p2ps_feature_capab)) { in p2ps_validate_pd_req() 495 switch (*msg->conn_cap) { in p2ps_validate_pd_req() 532 if (msg->persistent_dev) { in p2ps_validate_pd_req() 535 if (os_memcmp(msg->persistent_dev, addr, ETH_ALEN) == 0) { in p2ps_validate_pd_req() 557 struct p2p_message msg; in p2p_process_prov_disc_req() local 578 if (p2p_parse(data, len, &msg)) in p2p_process_prov_disc_req() 583 MAC2STR(sa), msg.wps_config_methods, rx_freq); in p2p_process_prov_disc_req() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument 80 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key() 81 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key() 82 wpabuf_put_buf(msg, pubkey); in wps_build_public_key() 96 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument 99 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type() 100 wpabuf_put_be16(msg, 1); in wps_build_req_type() 101 wpabuf_put_u8(msg, type); in wps_build_req_type() 106 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type() argument 109 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type() [all …]
|
D | wps_dev_attr.c | 16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument 20 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer() 29 wpabuf_put_be16(msg, 1); in wps_build_manufacturer() 30 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer() 34 wpabuf_put_be16(msg, len); in wps_build_manufacturer() 35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer() 40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument 44 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name() 53 wpabuf_put_be16(msg, 1); in wps_build_model_name() 54 wpabuf_put_u8(msg, ' '); in wps_build_model_name() [all …]
|
/external/e2fsprogs/po/ |
D | at-expand.pl | 70 my $msg; 75 $msg =~ s/\@a/extended attribute/g; 76 $msg =~ s/\@A/error allocating/g; 77 $msg =~ s/\@b/block/g; 78 $msg =~ s/\@B/bitmap/g; 79 $msg =~ s/\@c/compress/g; 80 $msg =~ s/\@C/conflicts with some other fs block/g; 81 $msg =~ s/\@i/inode/g; 82 $msg =~ s/\@I/illegal/g; 83 $msg =~ s/\@j/journal/g; [all …]
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 70 SimpleMessageNano msg = new SimpleMessageNano(); in testSimpleMessageNano() local 71 assertEquals(123, msg.d); in testSimpleMessageNano() 72 assertEquals(null, msg.nestedMsg); in testSimpleMessageNano() 73 assertEquals(SimpleMessageNano.BAZ, msg.defaultNestedEnum); in testSimpleMessageNano() 75 msg.d = 456; in testSimpleMessageNano() 76 assertEquals(456, msg.d); in testSimpleMessageNano() 81 msg.nestedMsg = nestedMsg; in testSimpleMessageNano() 82 assertEquals(2, msg.nestedMsg.bb); in testSimpleMessageNano() 84 msg.defaultNestedEnum = SimpleMessageNano.BAR; in testSimpleMessageNano() 85 assertEquals(SimpleMessageNano.BAR, msg.defaultNestedEnum); in testSimpleMessageNano() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | privsep.c | 707 struct privsep_com_msg *msg; local 713 len = sizeof(*msg) + strlen(path) + 1; 714 if ((msg = racoon_malloc(len)) == NULL) { 719 bzero(msg, len); 720 msg->hdr.ac_cmd = PRIVSEP_EAY_GET_PKCS1PRIVKEY; 721 msg->hdr.ac_len = len; 722 msg->bufs.buflen[0] = len - sizeof(*msg); 723 memcpy(msg + 1, path, msg->bufs.buflen[0]); 725 if (privsep_send(privsep_sock[1], msg, len) != 0) 728 if (privsep_recv(privsep_sock[1], &msg, &len) != 0) [all …]
|
/external/webrtc/webrtc/p2p/base/ |
D | stun_unittest.cc | 26 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type, in CheckStunHeader() argument 28 ASSERT_EQ(expected_type, msg.type()); in CheckStunHeader() 29 ASSERT_EQ(expected_length, msg.length()); in CheckStunHeader() 32 void CheckStunTransactionID(const StunMessage& msg, in CheckStunTransactionID() argument 34 ASSERT_EQ(length, msg.transaction_id().size()); in CheckStunTransactionID() 35 ASSERT_EQ(length == kStunTransactionIdLength + 4, msg.IsLegacy()); in CheckStunTransactionID() 36 ASSERT_EQ(length == kStunTransactionIdLength, !msg.IsLegacy()); in CheckStunTransactionID() 37 ASSERT_EQ(0, memcmp(msg.transaction_id().c_str(), expectedID, length)); in CheckStunTransactionID() 61 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase() argument 66 if (msg->Read(&buf)) { in ReadStunMessageTestCase() [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius.c | 52 struct radius_hdr * radius_msg_get_hdr(struct radius_msg *msg) in radius_msg_get_hdr() argument 54 return msg->hdr; in radius_msg_get_hdr() 58 struct wpabuf * radius_msg_get_buf(struct radius_msg *msg) in radius_msg_get_buf() argument 60 return msg->buf; in radius_msg_get_buf() 65 radius_get_attr_hdr(struct radius_msg *msg, int idx) in radius_get_attr_hdr() argument 68 (wpabuf_mhead_u8(msg->buf) + msg->attr_pos[idx]); in radius_get_attr_hdr() 72 static void radius_msg_set_hdr(struct radius_msg *msg, u8 code, u8 identifier) in radius_msg_set_hdr() argument 74 msg->hdr->code = code; in radius_msg_set_hdr() 75 msg->hdr->identifier = identifier; in radius_msg_set_hdr() 79 static int radius_msg_initialize(struct radius_msg *msg) in radius_msg_initialize() argument [all …]
|
/external/strace/tests/ |
D | msg_name.c | 40 struct msghdr *const msg, const int flags) in send_recv() argument 44 return recvmsg(recv_fd, msg, flags); in send_recv() 56 struct msghdr *const msg = tail_alloc(sizeof(*msg)); in test_msg_name() local 57 msg->msg_name = addr; in test_msg_name() 58 msg->msg_namelen = sizeof(*addr); in test_msg_name() 59 msg->msg_iov = iov; in test_msg_name() 60 msg->msg_iovlen = 1; in test_msg_name() 61 msg->msg_control = 0; in test_msg_name() 62 msg->msg_controllen = 0; in test_msg_name() 63 msg->msg_flags = 0; in test_msg_name() [all …]
|
/external/strace/tests-mx32/ |
D | msg_name.c | 40 struct msghdr *const msg, const int flags) in send_recv() argument 44 return recvmsg(recv_fd, msg, flags); in send_recv() 56 struct msghdr *const msg = tail_alloc(sizeof(*msg)); in test_msg_name() local 57 msg->msg_name = addr; in test_msg_name() 58 msg->msg_namelen = sizeof(*addr); in test_msg_name() 59 msg->msg_iov = iov; in test_msg_name() 60 msg->msg_iovlen = 1; in test_msg_name() 61 msg->msg_control = 0; in test_msg_name() 62 msg->msg_controllen = 0; in test_msg_name() 63 msg->msg_flags = 0; in test_msg_name() [all …]
|
/external/strace/tests-m32/ |
D | msg_name.c | 40 struct msghdr *const msg, const int flags) in send_recv() argument 44 return recvmsg(recv_fd, msg, flags); in send_recv() 56 struct msghdr *const msg = tail_alloc(sizeof(*msg)); in test_msg_name() local 57 msg->msg_name = addr; in test_msg_name() 58 msg->msg_namelen = sizeof(*addr); in test_msg_name() 59 msg->msg_iov = iov; in test_msg_name() 60 msg->msg_iovlen = 1; in test_msg_name() 61 msg->msg_control = 0; in test_msg_name() 62 msg->msg_controllen = 0; in test_msg_name() 63 msg->msg_flags = 0; in test_msg_name() [all …]
|