Lines Matching defs:p_cmd
49 BT_HDR *p_cmd;
56 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_META_CMD_POOL_ID)) != NULL)
59 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
62 p_cmd->offset = AVCT_MSG_OFFSET;
63 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset;
72 p_cmd->len = (UINT16) (p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset);
73 p_cmd->layer_specific = AVCT_DATA_CTRL;
75 return p_cmd;
101 BT_HDR *p_cmd;
104 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
106 p_cmd->offset = AVCT_MSG_OFFSET;
107 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset;
113 p_cmd->len = p_data + AVRC_UNIT_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset;
114 p_cmd->layer_specific = AVCT_DATA_CTRL;
116 return AVCT_MsgReq( handle, label, AVCT_CMD, p_cmd);
146 BT_HDR *p_cmd;
149 if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
151 p_cmd->offset = AVCT_MSG_OFFSET;
152 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset;
159 p_cmd->len = p_data + AVRC_SUB_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset;
160 p_cmd->layer_specific = AVCT_DATA_CTRL;
162 return AVCT_MsgReq( handle, label, AVCT_CMD, p_cmd);