/hardware/nxp/nfc/halimpl/log/ |
D | phNxpLog.cc | 60 int len = property_get(PROP_NAME_NXPLOG_GLOBAL_LOGLEVEL, valueStr, ""); in phNxpLog_SetGlobalLogLevel() local 61 if (len > 0) { in phNxpLog_SetGlobalLogLevel() 81 int len; in phNxpLog_SetHALLogLevel() local 90 len = property_get(PROP_NAME_NXPLOG_HAL_LOGLEVEL, valueStr, ""); in phNxpLog_SetHALLogLevel() 91 if (len > 0) { in phNxpLog_SetHALLogLevel() 109 int len; in phNxpLog_SetExtnsLogLevel() local 117 len = property_get(PROP_NAME_NXPLOG_EXTNS_LOGLEVEL, valueStr, ""); in phNxpLog_SetExtnsLogLevel() 118 if (len > 0) { in phNxpLog_SetExtnsLogLevel() 136 int len; in phNxpLog_SetTmlLogLevel() local 144 len = property_get(PROP_NAME_NXPLOG_TML_LOGLEVEL, valueStr, ""); in phNxpLog_SetTmlLogLevel() [all …]
|
/hardware/qcom/msm8996/original-kernel-headers/linux/ |
D | netlink.h | 79 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) argument 81 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) argument 82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument 84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 86 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 88 (nlh)->nlmsg_len <= (len)) 89 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument 180 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
|
/hardware/qcom/msm8994/original-kernel-headers/linux/ |
D | netlink.h | 79 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) argument 81 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) argument 82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument 84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 86 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 88 (nlh)->nlmsg_len <= (len)) 89 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument 180 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
|
/hardware/qcom/msm8994/kernel-headers/linux/ |
D | netlink.h | 87 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) argument 90 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) argument 91 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(… argument 95 …e NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct … argument 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument 167 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
|
/hardware/qcom/msm8996/kernel-headers/linux/ |
D | netlink.h | 87 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) argument 90 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) argument 91 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr *) (((char *)… argument 95 …ine NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct… argument 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument 167 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) argument
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | bcmutils.c | 59 pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktcopy() argument 63 if (len < 0) in pktcopy() 64 len = 4096; /* "infinite" */ in pktcopy() 77 for (; p && len; p = PKTNEXT(osh, p)) { in pktcopy() 78 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktcopy() 81 len -= n; in pktcopy() 91 pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktfrombuf() argument 106 for (; p && len; p = PKTNEXT(osh, p)) { in pktfrombuf() 107 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktfrombuf() 110 len -= n; in pktfrombuf() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | ml_stored_data.c | 84 inv_error_t inv_write_cal(unsigned char *cal, size_t len) in inv_write_cal() argument 90 if (len <= 0) { in inv_write_cal() 94 MPL_LOGV("cal data size to write = %d", len); in inv_write_cal() 101 bytesWritten = fwrite(cal, 1, len, fp); in inv_write_cal() 102 if (bytesWritten != len) { in inv_write_cal() 104 bytesWritten, len); in inv_write_cal() 137 inv_error_t inv_load_cal_V0(unsigned char *calData, size_t len) in inv_load_cal_V0() argument 149 result = inv_load_mpl_states(calData, len); in inv_load_cal_V0() 176 inv_error_t inv_load_cal_V1(unsigned char *calData, size_t len) in inv_load_cal_V1() argument 197 int len = 0; in inv_load_cal() local [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_stored_data.c | 84 inv_error_t inv_write_cal(unsigned char *cal, size_t len) in inv_write_cal() argument 90 if (len <= 0) { in inv_write_cal() 94 MPL_LOGV("cal data size to write = %d", len); in inv_write_cal() 101 bytesWritten = fwrite(cal, 1, len, fp); in inv_write_cal() 102 if (bytesWritten != len) { in inv_write_cal() 104 bytesWritten, len); in inv_write_cal() 137 inv_error_t inv_load_cal_V0(unsigned char *calData, size_t len) in inv_load_cal_V0() argument 149 result = inv_load_mpl_states(calData, len); in inv_load_cal_V0() 176 inv_error_t inv_load_cal_V1(unsigned char *calData, size_t len) in inv_load_cal_V1() argument 197 int len = 0; in inv_load_cal() local [all …]
|
/hardware/st/secure_element/ese-spi-driver/utils-lib/ |
D | Tpdu.cc | 45 baTpdu[LEN_OFFSET_IN_TPDU] = structTpdu->len; in Tpdu_toByteArray() 49 for (i = 0; i < structTpdu->len; i++) { in Tpdu_toByteArray() 54 uint16_t checksumOffsetInTpdu = DATA_OFFSET_IN_TPDU + structTpdu->len; in Tpdu_toByteArray() 96 computeCrc(buffer, (TPDU_PROLOGUE_LENGTH + tpdu->len))) { in Tpdu_isChecksumOk() 119 int Tpdu_formTpdu(uint8_t nad, uint8_t pcb, uint8_t len, uint8_t *data, in Tpdu_formTpdu() argument 123 if (len > TPDU_MAX_DATA_LENGTH) { in Tpdu_formTpdu() 131 tpdu->len = len; in Tpdu_formTpdu() 135 for (i = 0; i < len; i++) { in Tpdu_formTpdu() 155 tpdu->checksum = computeCrc(buffer, (TPDU_PROLOGUE_LENGTH + tpdu->len)); in Tpdu_formTpdu() 245 dest->len = src->len; in Tpdu_copy() [all …]
|
/hardware/st/secure_element/ese-spi-driver/ |
D | SpiLayerComm.cc | 75 ATP.len = spiLecture; in SpiLayerComm_waitForAtpLength() 105 int atpArrayLength = ATP.len + LEN_LENGTH_IN_ATP; in SpiLayerComm_readAtp() 108 if (SpiLayerDriver_read(atpArray, ATP.len) != ATP.len) { in SpiLayerComm_readAtp() 114 for (i = ATP.len; i > 0; i--) { in SpiLayerComm_readAtp() 117 atpArray[LEN_OFFSET_IN_ATP] = ATP.len; in SpiLayerComm_readAtp() 119 DispHal("Rx", atpArray, ATP.len); in SpiLayerComm_readAtp() 184 txBufferLength = TPDU_PROLOGUE_LENGTH + cmdTpdu->len + TPDU_LRC_LENGTH; in SpiLayerComm_writeTpdu() 187 txBufferLength = TPDU_PROLOGUE_LENGTH + cmdTpdu->len + TPDU_CRC_LENGTH; in SpiLayerComm_writeTpdu() 275 respTpdu->len = (uint8_t)buffer[1]; in SpiLayerComm_waitForResponse() 299 pendingBytes = respTpdu->len + TPDU_LRC_LENGTH; in SpiLayerComm_readTpdu() [all …]
|
/hardware/qcom/display/msm8909/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32((int32_t)len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 64 memcpy(buf, msg, len); in onCECMessageRecieved() 85 ssize_t len = data.readInt32(); in onTransact() local 87 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 88 msg = data.readInplace(len); in onTransact() 91 len = 0; in onTransact() 94 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/qcom/sm8150/display/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32((int32_t)len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 64 memcpy(buf, msg, len); in onCECMessageRecieved() 85 ssize_t len = data.readInt32(); in onTransact() local 87 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 88 msg = data.readInplace(len); in onTransact() 91 len = 0; in onTransact() 94 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/qcom/sdm845/display/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32((int32_t)len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 64 memcpy(buf, msg, len); in onCECMessageRecieved() 85 ssize_t len = data.readInt32(); in onTransact() local 87 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 88 msg = data.readInplace(len); in onTransact() 91 len = 0; in onTransact() 94 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/qcom/display/msm8998/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32((int32_t)len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 64 memcpy(buf, msg, len); in onCECMessageRecieved() 85 ssize_t len = data.readInt32(); in onTransact() local 87 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 88 msg = data.readInplace(len); in onTransact() 91 len = 0; in onTransact() 94 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/qcom/display/msm8996/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32((int32_t)len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 64 memcpy(buf, msg, len); in onCECMessageRecieved() 85 ssize_t len = data.readInt32(); in onTransact() local 87 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 88 msg = data.readInplace(len); in onTransact() 91 len = 0; in onTransact() 94 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/qcom/display/msm8909w_3100/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32((int32_t)len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 64 memcpy(buf, msg, len); in onCECMessageRecieved() 85 ssize_t len = data.readInt32(); in onTransact() local 87 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 88 msg = data.readInplace(len); in onTransact() 91 len = 0; in onTransact() 94 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/qcom/display/msm8084/libqservice/ |
D | IQHDMIClient.cpp | 57 void onCECMessageRecieved(char *msg, ssize_t len) in onCECMessageRecieved() argument 61 data.writeInt32(len); in onCECMessageRecieved() 62 void *buf = data.writeInplace(len); in onCECMessageRecieved() 63 memcpy(buf, msg, len); in onCECMessageRecieved() 84 ssize_t len = data.readInt32(); in onTransact() local 86 if(len >= 0 && len <= (ssize_t) data.dataAvail()) { in onTransact() 87 msg = data.readInplace(len); in onTransact() 90 len = 0; in onTransact() 92 onCECMessageRecieved((char*) msg, len); in onTransact()
|
/hardware/st/secure_element2/secure_element/1.0/esehal/src/ |
D | transport.c | 111 int len, max; in block_recv() local 137 len = spi_read(fd, &c, 1); in block_recv() 138 if (len < 0) in block_recv() 139 return len; in block_recv() 149 len = spi_read(fd, s + 1, max); in block_recv() 150 if (len < 0) in block_recv() 151 return len; in block_recv() 153 i += len; in block_recv() 162 len = spi_read(fd, s + 4, s[2]); in block_recv() 163 if (len < 0) in block_recv() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/ |
D | p2p.h | 43 uint8 len; /* IE length */ member 88 uint8 len[2]; /* SE length not including eltId, len fields */ member 115 uint8 len[2]; /* SE length not including eltId, len fields */ member 123 uint8 len[2]; /* SE length not including eltId, len fields */ member 132 uint8 len[2]; /* SE length not including eltId, len fields */ member 142 uint8 len[2]; /* SE length not including eltId, len fields */ member 150 uint8 len[2]; /* SE length not including eltId, len fields */ member 159 uint8 len[2]; /* SE length not including eltId, len fields */ member 169 uint8 len[2]; /* SE length not including eltId, len fields */ member 205 uint8 len[2]; /* length not including eltId, len fields */ member [all …]
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlayUtils.cpp | 330 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument 338 strlcat(buf, str, len); in getDump() 339 getDump(buf, len, "\tsrc", ov.src); in getDump() 340 getDump(buf, len, "\tsrc_rect", ov.src_rect); in getDump() 341 getDump(buf, len, "\tdst_rect", ov.dst_rect); in getDump() 344 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument 351 strlcat(buf, str_src, len); in getDump() 354 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument 360 strlcat(buf, str_rect, len); in getDump() 363 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument [all …]
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlayUtils.cpp | 337 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument 345 strlcat(buf, str, len); in getDump() 346 getDump(buf, len, "\tsrc", ov.src); in getDump() 347 getDump(buf, len, "\tsrc_rect", ov.src_rect); in getDump() 348 getDump(buf, len, "\tdst_rect", ov.dst_rect); in getDump() 351 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument 358 strlcat(buf, str_src, len); in getDump() 361 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument 367 strlcat(buf, str_rect, len); in getDump() 370 void getDump(char *buf, size_t len, const char *prefix, in getDump() argument [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 131 long len; in inv_load_mpl_states() local 133 len = length; // Important so we get negative numbers in inv_load_mpl_states() 134 if (data == NULL || len == 0) in inv_load_mpl_states() 136 if (len < sizeof(struct data_header_t)) in inv_load_mpl_states() 141 len = MIN(hd->size, len); in inv_load_mpl_states() 142 len = hd->size; in inv_load_mpl_states() 143 len -= sizeof(struct data_header_t); in inv_load_mpl_states() 145 checksum = inv_checksum(data, len); in inv_load_mpl_states() 149 while (len > (long)sizeof(struct data_header_t)) { in inv_load_mpl_states() 153 len -= sizeof(struct data_header_t); in inv_load_mpl_states() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 131 long len; in inv_load_mpl_states() local 133 len = length; // Important so we get negative numbers in inv_load_mpl_states() 134 if (data == NULL || len == 0) in inv_load_mpl_states() 136 if (len < sizeof(struct data_header_t)) in inv_load_mpl_states() 141 len = MIN(hd->size, len); in inv_load_mpl_states() 142 len = hd->size; in inv_load_mpl_states() 143 len -= sizeof(struct data_header_t); in inv_load_mpl_states() 145 checksum = inv_checksum(data, len); in inv_load_mpl_states() 149 while (len > (long)sizeof(struct data_header_t)) { in inv_load_mpl_states() 153 len -= sizeof(struct data_header_t); in inv_load_mpl_states() [all …]
|
/hardware/nxp/secure_element/libese-spi/p73/pal/ |
D | phNxpEsePal.cpp | 190 uint16_t len) { in phPalEse_print_packet() argument 192 char print_buffer[len * 3 + 1]; in phPalEse_print_packet() 195 for (i = 0; i < len; i++) { in phPalEse_print_packet() 199 ALOGD_IF(ese_debug_enabled, "NxpEseDataX len = %3d > %s", len, in phPalEse_print_packet() 202 ALOGD_IF(ese_debug_enabled, "NxpEseDataR len = %3d > %s", len, in phPalEse_print_packet() 236 void* phPalEse_memset(void* buff, int val, size_t len) { in phPalEse_memset() argument 237 return memset(buff, val, len); in phPalEse_memset() 252 void* phPalEse_memcpy(void* dest, const void* src, size_t len) { in phPalEse_memcpy() argument 253 return memcpy(dest, src, len); in phPalEse_memcpy()
|
/hardware/st/secure_element/1.0/ |
D | SecureElement.cpp | 99 uint8_t len = *ATR; in getAtr() local 100 if (len) { in getAtr() 101 response.resize(len); in getAtr() 102 memcpy(&response[0], ATR, len); in getAtr() 120 cmdApdu.len = data.size(); in transmit() 121 if (cmdApdu.len >= MIN_APDU_LENGTH) { in transmit() 123 memcpy(cmdApdu.p_data, data.data(), cmdApdu.len); in transmit() 139 result.resize(rspApdu.len); in transmit() 140 memcpy(&result[0], rspApdu.p_data, rspApdu.len); in transmit() 179 cmdApdu.len = manageChannelCommand.size(); in openLogicalChannel() [all …]
|