Lines Matching refs:BT_HDR

48 BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) {  in attp_build_mtu_cmd()
50 BT_HDR* p_buf = in attp_build_mtu_cmd()
51 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd()
71 BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd()
72 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd()
100 BT_HDR* attp_build_err_cmd(uint8_t cmd_code, uint16_t err_handle, in attp_build_err_cmd()
103 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd()
127 BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, uint16_t e_hdl, in attp_build_browse_cmd()
131 BT_HDR* p_buf = in attp_build_browse_cmd()
132 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
156 BT_HDR* attp_build_read_by_type_value_cmd(uint16_t payload_size, in attp_build_read_by_type_value_cmd()
160 BT_HDR* p_buf = in attp_build_read_by_type_value_cmd()
161 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_read_by_type_value_cmd()
191 BT_HDR* attp_build_read_multi_cmd(uint16_t payload_size, uint16_t num_handle, in attp_build_read_multi_cmd()
194 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + num_handle * 2 + 1 + in attp_build_read_multi_cmd()
219 BT_HDR* attp_build_handle_cmd(uint8_t op_code, uint16_t handle, in attp_build_handle_cmd()
222 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 5 + L2CAP_MIN_OFFSET); in attp_build_handle_cmd()
250 BT_HDR* attp_build_opcode_cmd(uint8_t op_code) { in attp_build_opcode_cmd()
252 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 1 + L2CAP_MIN_OFFSET); in attp_build_opcode_cmd()
272 BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code, in attp_build_value_cmd()
276 BT_HDR* p_buf = in attp_build_value_cmd()
277 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_value_cmd()
325 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, BT_HDR* p_toL2CAP) { in attp_send_msg_to_l2cap()
344 BT_HDR* attp_build_sr_msg(tGATT_TCB& tcb, uint8_t op_code, in attp_build_sr_msg()
397 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& tcb, BT_HDR* p_msg) { in attp_send_sr_msg()
417 uint8_t cmd_code, BT_HDR* p_cmd) { in attp_cl_send_cmd()
459 BT_HDR* p_cmd = NULL; in attp_send_cl_msg()