Lines Matching refs:sz
712 phHbci_Status_t phHbci_GetApdu(uint8_t *pApdu, uint16_t sz) in phHbci_GetApdu() argument
717 if (sz == 0 || sz > PHHBCI_MAX_LEN_PAYLOAD_MISO) { in phHbci_GetApdu()
721 ret_Read = read((intptr_t)tPalConfig.pDevHandle, (void*)pApdu, (sz)); in phHbci_GetApdu()
724 ALOGD("ERROR: Get APDU %u bytes failed!\n", sz); in phHbci_GetApdu()
734 if (sz != (ret = fwrite(gDummyMiso, sizeof(uint8_t), sz, gOpts.fMosi))) in phHbci_GetApdu()
736 ALOGD("ERROR: %s dummy write returned %d, expected %d\n", gOpts.mosiFile, ret, sz); in phHbci_GetApdu()
738 if (sz != (ret = fwrite(pApdu, sizeof(uint8_t), sz, gOpts.fMiso))) in phHbci_GetApdu()
740 ALOGD("ERROR: %s write returned %d, expected %d\n", gOpts.misoFile, ret, sz); in phHbci_GetApdu()
744 if (sz != (ret = fwrite(pApdu, sizeof(uint8_t), sz, gOpts.fMiso))) in phHbci_GetApdu()
746 ALOGD("ERROR: %s write returned %d, expected %d\n", gOpts.misoFile, ret, sz); in phHbci_GetApdu()
758 phHbci_Status_t phHbci_PutApdu(uint8_t *pApdu, uint16_t sz) in phHbci_PutApdu() argument
764 phNxpUciHal_print_packet(NXP_TML_FW_DNLD_CMD_AP_2_UWBS,pApdu,sz); in phHbci_PutApdu()
766 ret = write((intptr_t)tPalConfig.pDevHandle, pApdu,sz); in phHbci_PutApdu()
781 ret = write((intptr_t)tPalConfig.pDevHandle, pApdu,sz); in phHbci_PutApdu()