Home
last modified time | relevance | path

Searched refs:pdu (Results 1 – 25 of 32) sorted by relevance

12

/external/bluetooth/bluez/attrib/
Datt.c113 uint8_t *pdu, int len) in enc_read_by_grp_req() argument
115 const uint16_t min_len = sizeof(pdu[0]) + sizeof(start) + sizeof(end); in enc_read_by_grp_req()
131 pdu[0] = ATT_OP_READ_BY_GROUP_REQ; in enc_read_by_grp_req()
132 att_put_u16(start, &pdu[1]); in enc_read_by_grp_req()
133 att_put_u16(end, &pdu[3]); in enc_read_by_grp_req()
135 att_put_uuid(*uuid, &pdu[5]); in enc_read_by_grp_req()
140 uint16_t dec_read_by_grp_req(const uint8_t *pdu, int len, uint16_t *start, in dec_read_by_grp_req() argument
143 const uint16_t min_len = sizeof(pdu[0]) + sizeof(*start) + sizeof(*end); in dec_read_by_grp_req()
145 if (pdu == NULL) in dec_read_by_grp_req()
151 if (pdu[0] != ATT_OP_READ_BY_GROUP_REQ) in dec_read_by_grp_req()
[all …]
Datt.h254 uint8_t *pdu, int len);
255 uint16_t dec_read_by_grp_req(const uint8_t *pdu, int len, uint16_t *start,
257 uint16_t enc_read_by_grp_resp(struct att_data_list *list, uint8_t *pdu, int len);
259 const uint8_t *value, int vlen, uint8_t *pdu, int len);
260 uint16_t dec_find_by_type_req(const uint8_t *pdu, int len, uint16_t *start,
262 uint16_t enc_find_by_type_resp(GSList *ranges, uint8_t *pdu, int len);
263 GSList *dec_find_by_type_resp(const uint8_t *pdu, int len);
264 struct att_data_list *dec_read_by_grp_resp(const uint8_t *pdu, int len);
266 uint8_t *pdu, int len);
267 uint16_t dec_read_by_type_req(const uint8_t *pdu, int len, uint16_t *start,
[all …]
Dinteractive.c101 static void events_handler(const uint8_t *pdu, uint16_t len, gpointer user_data) in events_handler() argument
106 handle = att_get_u16(&pdu[1]); in events_handler()
109 switch (pdu[0]) { in events_handler()
122 printf("%02x ", pdu[i]); in events_handler()
127 if (pdu[0] == ATT_OP_HANDLE_NOTIFY) in events_handler()
216 static void char_desc_cb(guint8 status, const guint8 *pdu, guint16 plen, in char_desc_cb() argument
229 list = dec_find_info_resp(pdu, plen, &format); in char_desc_cb()
257 static void char_read_cb(guint8 status, const guint8 *pdu, guint16 plen, in char_read_cb() argument
269 if (!dec_read_resp(pdu, plen, value, &vlen)) { in char_read_cb()
282 static void char_read_by_uuid_cb(guint8 status, const guint8 *pdu, in char_read_by_uuid_cb() argument
[all …]
Dgatttool.c74 static void events_handler(const uint8_t *pdu, uint16_t len, gpointer user_data) in events_handler() argument
80 handle = att_get_u16(&pdu[1]); in events_handler()
82 switch (pdu[0]) { in events_handler()
95 g_print("%02x ", pdu[i]); in events_handler()
99 if (pdu[0] == ATT_OP_HANDLE_NOTIFY) in events_handler()
225 static void char_read_cb(guint8 status, const guint8 *pdu, guint16 plen, in char_read_cb() argument
236 if (!dec_read_resp(pdu, plen, value, &vlen)) { in char_read_cb()
250 static void char_read_by_uuid_cb(guint8 status, const guint8 *pdu, in char_read_by_uuid_cb() argument
267 list = dec_read_by_type_resp(pdu, plen); in char_read_by_uuid_cb()
359 static void char_write_req_cb(guint8 status, const guint8 *pdu, guint16 plen, in char_write_req_cb() argument
[all …]
Dgattrib.h36 typedef void (*GAttribResultFunc) (guint8 status, const guint8 *pdu,
40 typedef void (*GAttribNotifyFunc)(const guint8 *pdu, guint16 len,
56 const guint8 *pdu, guint16 len, GAttribResultFunc func,
Dgattrib.c61 guint8 *pdu; member
158 g_free(cmd->pdu); in command_destroy()
278 iostat = g_io_channel_write_chars(io, (gchar *) cmd->pdu, cmd->len, in can_write_data()
424 const guint8 *pdu, guint16 len, GAttribResultFunc func, in g_attrib_send() argument
435 c->pdu = g_malloc(len); in g_attrib_send()
436 memcpy(c->pdu, pdu, len); in g_attrib_send()
Dclient.c268 static void events_handler(const uint8_t *pdu, uint16_t len, in events_handler() argument
281 pdu[0]); in events_handler()
285 handle = att_get_u16(&pdu[1]); in events_handler()
304 switch (pdu[0]) { in events_handler()
310 if (characteristic_set_value(chr, &pdu[3], len - 3) < 0) in events_handler()
693 static void update_char_desc(guint8 status, const guint8 *pdu, guint16 len, in update_char_desc() argument
705 memcpy(chr->desc, pdu + 1, len - 1); in update_char_desc()
727 static void update_char_format(guint8 status, const guint8 *pdu, guint16 len, in update_char_format() argument
743 memcpy(chr->format, pdu + 1, 7); in update_char_format()
753 static void update_char_value(guint8 status, const guint8 *pdu, in update_char_value() argument
[all …]
/external/qemu/telephony/
Dsms.h73 extern int smspdu_to_hex( SmsPDU pdu, char* hex, int hexsize );
76 extern void smspdu_free( SmsPDU pdu );
85 extern SmsPduType smspdu_get_type( SmsPDU pdu );
88 extern int smspdu_get_sender_address( SmsPDU pdu, SmsAddress address );
91 extern int smspdu_get_sc_timestamp( SmsPDU pdu, SmsTimeStamp timestamp );
94 extern int smspdu_get_receiver_address( SmsPDU pdu, SmsAddress address );
96 extern int smspdu_get_ref ( SmsPDU pdu );
97 extern int smspdu_get_max_index( SmsPDU pdu );
98 extern int smspdu_get_cur_index( SmsPDU pdu );
102 extern int smspdu_get_text_message( SmsPDU pdu, unsigned char* utf8, int utf8len );
Dsms.c701 smspdu_free( SmsPDU pdu ) in smspdu_free() argument
703 if (pdu) { in smspdu_free()
704 free( pdu->base ); in smspdu_free()
705 pdu->base = NULL; in smspdu_free()
706 pdu->end = NULL; in smspdu_free()
707 pdu->tpdu = NULL; in smspdu_free()
712 smspdu_get_type( SmsPDU pdu ) in smspdu_get_type() argument
714 cbytes_t data = pdu->tpdu; in smspdu_get_type()
715 cbytes_t end = pdu->end; in smspdu_get_type()
727 smspdu_get_sender_address( SmsPDU pdu, SmsAddress address ) in smspdu_get_sender_address() argument
[all …]
Dremote_call.c224 SmsPDU pdu ) in remote_call_set_sms_pdu() argument
229 msg2len = 32 + smspdu_to_hex( pdu, NULL, 0 ); in remote_call_set_sms_pdu()
245 p += smspdu_to_hex( pdu, p, end-p ); in remote_call_set_sms_pdu()
418 SmsPDU pdu ) in remote_call_sms() argument
426 if ( remote_call_set_sms_pdu( call, pdu ) < 0 ) { in remote_call_sms()
Dandroid_modem.c1612 smspdu_dump( SmsPDU pdu, FILE* out )
1618 if (pdu == NULL) {
1624 switch (smspdu_get_type(pdu)) {
1631 if (smspdu_get_sender_address(pdu, &address) < 0)
1636 if (smspdu_get_receiver_address(pdu, &address) < 0)
1641 len = smspdu_get_text_message( pdu, temp, sizeof(temp)-1 );
1657 SmsPDU pdu; in handleSendSMSText() local
1663 pdu = smspdu_create_from_hex( cmd, len ); in handleSendSMSText()
1664 if (pdu == NULL) { in handleSendSMSText()
1668 if (smspdu_get_receiver_address(pdu, &address) < 0) { in handleSendSMSText()
[all …]
Dremote_call.h48 extern int remote_call_sms( const char* number, int from_port, SmsPDU pdu );
Dandroid_modem.h33 extern void amodem_receive_sms( AModem modem, SmsPDU pdu );
/external/bluetooth/bluez/src/
Dattrib-server.c290 uint8_t *pdu, int len) in read_by_group() argument
302 ATT_ECODE_INVALID_HANDLE, pdu, len); in read_by_group()
312 ATT_ECODE_UNSUPP_GRP_TYPE, pdu, len); in read_by_group()
357 a->handle, status, pdu, len); in read_by_group()
375 ATT_ECODE_ATTR_NOT_FOUND, pdu, len); in read_by_group()
399 length = enc_read_by_grp_resp(adl, pdu, len); in read_by_group()
410 uint8_t *pdu, int len) in read_by_type() argument
421 ATT_ECODE_INVALID_HANDLE, pdu, len); in read_by_type()
450 a->handle, status, pdu, len); in read_by_type()
464 ATT_ECODE_ATTR_NOT_FOUND, pdu, len); in read_by_type()
[all …]
Dsdpd-request.c554 sdp_buf_t pdu; in extract_attrs() local
566 sdp_gen_record_pdu(rec, &pdu); in extract_attrs()
589 if (low == 0x0000 && high == 0xffff && pdu.data_size <= buf->buf_size) { in extract_attrs()
591 memcpy(buf->data, pdu.data, pdu.data_size); in extract_attrs()
592 buf->data_size = pdu.data_size; in extract_attrs()
607 free(pdu.data); in extract_attrs()
612 free(pdu.data); in extract_attrs()
/external/blktrace/btt/
Dmmap.c51 void **pdu) in convert_to_cpu() argument
73 *pdu = malloc(tp->pdu_len); in convert_to_cpu()
74 memcpy(*pdu, t+1, tp->pdu_len); in convert_to_cpu()
76 *pdu = NULL; in convert_to_cpu()
130 int next_trace(struct blk_io_trace *t, void **pdu) in next_trace() argument
141 this_len = convert_to_cpu(next_t, t, pdu); in next_trace()
Dtrace.c65 memcpy(msg, iop->pdu, iop->t.pdu_len); in trace_message()
81 char *slash = strchr(iop->pdu, '/'); in add_trace()
85 process_alloc(iop->t.pid, iop->pdu); in add_trace()
Dtrace_plug.c25 __u64 *val = u_iop->pdu; in get_nio_up()
Dtrace_remap.c43 rp = a_iop->pdu; in trace_remap()
Dunplug_hist.c52 __u64 *val = u_iop->pdu; in unplug_hist_add()
Dbt_timeline.c106 while (!done && next_trace(&iop->t, &iop->pdu)) { in process()
/external/tcpdump/
Dprint-snmp.c1468 struct be pdu; in pdu_print() local
1472 if ((count = asn1_parse(np, length, &pdu)) < 0) in pdu_print()
1474 if (pdu.type != BE_PDU) { in pdu_print()
1483 if (asn1_print(&pdu) < 0) in pdu_print()
1487 length = pdu.asnlen; in pdu_print()
1488 np = (u_char *)pdu.data.raw; in pdu_print()
1491 (pdu.id == GETBULKREQ || pdu.id == INFORMREQ || in pdu_print()
1492 pdu.id == V2TRAP || pdu.id == REPORT)) { in pdu_print()
1497 if (version == SNMP_VERSION_2 && pdu.id == TRAP) { in pdu_print()
1502 switch (pdu.id) { in pdu_print()
[all …]
/external/tcpdump/tests/
Dmpls-ldp-hello.new2 LDP, Label-Space-ID: 10.1.0.2:0, pdu-length: 38
Dmpls-ldp-hello.out2 LDP, Label-Space-ID: 10.1.0.2:0, pdu-length: 38
/external/bluetooth/bluez/lib/bluetooth/
Dsdp_lib.h611 void sdp_set_attrid(sdp_buf_t *pdu, uint16_t id);
615 int sdp_gen_pdu(sdp_buf_t *pdu, sdp_data_t *data);
616 int sdp_gen_record_pdu(const sdp_record_t *rec, sdp_buf_t *pdu);

12