Home | History | Annotate | Download | only in avrc

Lines Matching full:p_cmd

51     BT_HDR  *p_cmd;
58 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_META_CMD_POOL_ID)) != NULL)
61 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
64 p_cmd->offset = AVCT_MSG_OFFSET;
65 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset;
74 p_cmd->len = (UINT16) (p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset);
75 p_cmd->layer_specific = AVCT_DATA_CTRL;
77 return p_cmd;
103 BT_HDR *p_cmd;
106 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
108 p_cmd->offset = AVCT_MSG_OFFSET;
109 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset;
115 p_cmd->len = p_data + AVRC_UNIT_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset;
116 p_cmd->layer_specific = AVCT_DATA_CTRL;
118 return AVCT_MsgReq( handle, label, AVCT_CMD, p_cmd);
148 BT_HDR *p_cmd;
151 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
153 p_cmd->offset = AVCT_MSG_OFFSET;
154 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset;
161 p_cmd->len = p_data + AVRC_SUB_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset;
162 p_cmd->layer_specific = AVCT_DATA_CTRL;
164 return AVCT_MsgReq( handle, label, AVCT_CMD, p_cmd);