Lines Matching refs:pdu
290 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()
486 length = enc_read_by_type_resp(adl, pdu, len); in read_by_type()
494 static int find_info(uint16_t start, uint16_t end, uint8_t *pdu, int len) in find_info() argument
505 ATT_ECODE_INVALID_HANDLE, pdu, len); in find_info()
530 ATT_ECODE_ATTR_NOT_FOUND, pdu, len); in find_info()
558 length = enc_find_info_resp(format, adl, pdu, len); in find_info()
657 uint8_t *pdu, int len) in read_value() argument
667 ATT_ECODE_INVALID_HANDLE, pdu, len); in read_value()
681 return enc_error_resp(ATT_OP_READ_REQ, handle, status, pdu, in read_value()
684 return enc_read_resp(a->data, a->len, pdu, len); in read_value()
688 uint16_t offset, uint8_t *pdu, int len) in read_blob() argument
698 ATT_ECODE_INVALID_HANDLE, pdu, len); in read_blob()
704 ATT_ECODE_INVALID_OFFSET, pdu, len); in read_blob()
717 pdu, len); in read_blob()
719 return enc_read_blob_resp(a->data, a->len, offset, pdu, len); in read_blob()
724 uint8_t *pdu, int len) in write_value() argument
734 ATT_ECODE_INVALID_HANDLE, pdu, len); in write_value()
740 return enc_error_resp(ATT_OP_WRITE_REQ, handle, status, pdu, in write_value()
753 pdu, len); in write_value()
760 return enc_write_resp(pdu, len); in write_value()
764 uint8_t *pdu, int len) in mtu_exchange() argument
777 return enc_mtu_resp(old_mtu, pdu, len); in mtu_exchange()
990 uint8_t pdu[ATT_MAX_MTU]; in attrib_notify_clients() local
993 len = enc_notification(attr, pdu, channel->mtu); in attrib_notify_clients()
997 g_attrib_send(channel->attrib, 0, pdu[0], pdu, len, in attrib_notify_clients()
1004 uint8_t pdu[ATT_MAX_MTU]; in attrib_notify_clients() local
1007 len = enc_indication(attr, pdu, channel->mtu); in attrib_notify_clients()
1011 g_attrib_send(channel->attrib, 0, pdu[0], pdu, len, in attrib_notify_clients()