Lines Matching refs:hdllCmd

1369 uint8_t *phBuildHdllCmd(phHDLLCmd_t *hdllCmd) {  in phBuildHdllCmd()  argument
1377 if (NULL == hdllCmd) { in phBuildHdllCmd()
1382 hdllCmd->payload_len + HDLL_CRC_LEN; in phBuildHdllCmd()
1389 hdll_header |= hdllCmd->payload_len + HCP_MSG_HEADER_LEN; in phBuildHdllCmd()
1391 hdll_header = hdllCmd->chunk_size ? (HDLL_PKT_CHUNK_BITMASK | hdll_header) in phBuildHdllCmd()
1400 hdll_frame[HDLL_TYPE_OFFSET] = type | hdllCmd->group; in phBuildHdllCmd()
1401 hdll_frame[HDLL_OPERATION_OFFSET] = hdllCmd->operation; in phBuildHdllCmd()
1403 if (hdllCmd->payload_len > 0 && hdllCmd->payload != NULL) { in phBuildHdllCmd()
1405 memcpy(&hdll_frame[HDLL_PAYLOAD_OFFSET], hdllCmd->payload, in phBuildHdllCmd()
1406 hdllCmd->payload_len); in phBuildHdllCmd()
1413 hdllCmd->frame_size = hdll_frame_size; in phBuildHdllCmd()
1438 phHDLLCmd_t *hdllCmd = NULL; in sendEdlResetCmd() local
1441 hdllCmd = (phHDLLCmd_t *)malloc(sizeof(phHDLLCmd_t)); in sendEdlResetCmd()
1442 if (NULL == hdllCmd) { in sendEdlResetCmd()
1446 hdllCmd->group = HCP_OPERATION_GROUP_GENERIC; in sendEdlResetCmd()
1447 hdllCmd->operation = GENERIC_GROUP_OP_CODE_RESET; in sendEdlResetCmd()
1448 hdllCmd->chunk_size = 0; in sendEdlResetCmd()
1449 hdllCmd->frame_size = 0; in sendEdlResetCmd()
1450 hdllCmd->payload = NULL; in sendEdlResetCmd()
1451 hdllCmd->payload_len = 0; in sendEdlResetCmd()
1453 hdll_frame = phBuildHdllCmd(hdllCmd); in sendEdlResetCmd()
1458 ret = phGenericSendAndRecv(hdll_frame, hdllCmd->frame_size, rsp_buf, in sendEdlResetCmd()
1483 if (NULL != hdllCmd) { in sendEdlResetCmd()
1484 free(hdllCmd); in sendEdlResetCmd()
1563 phHDLLCmd_t *hdllCmd = NULL; in phGenericGetInfo() local
1566 hdllCmd = (phHDLLCmd_t *)malloc(sizeof(phHDLLCmd_t)); in phGenericGetInfo()
1567 if (NULL == hdllCmd) { in phGenericGetInfo()
1571 hdllCmd->group = HCP_OPERATION_GROUP_GENERIC; in phGenericGetInfo()
1572 hdllCmd->operation = GENERIC_GROUP_OP_CODE_GETINFO; in phGenericGetInfo()
1573 hdllCmd->chunk_size = 0; in phGenericGetInfo()
1574 hdllCmd->frame_size = 0; in phGenericGetInfo()
1575 hdllCmd->payload = NULL; in phGenericGetInfo()
1576 hdllCmd->payload_len = 0; in phGenericGetInfo()
1578 hdll_frame = phBuildHdllCmd(hdllCmd); in phGenericGetInfo()
1583 ret = phGenericSendAndRecv(hdll_frame, hdllCmd->frame_size, rsp_buf, in phGenericGetInfo()
1606 if (NULL != hdllCmd) { in phGenericGetInfo()
1607 free(hdllCmd); in phGenericGetInfo()