Home
last modified time | relevance | path

Searched refs:readLen (Results 1 – 21 of 21) sorted by relevance

/drivers/peripheral/bluetooth/hci/hdi_service/implement/
Dmct_protocol.cpp55 ssize_t readLen; in ReadEventData() local
57readLen = Read(fd, eventPacket_.data() + eventReadLength_, eventPacket_.size() - eventReadLength_); in ReadEventData()
58 if (readLen < 0) { in ReadEventData()
62 } else if (readLen == 0) { in ReadEventData()
67 eventReadLength_ += readLen; in ReadEventData()
74readLen = Read(fd, eventPacket_.data() + eventReadLength_, eventPacket_.size() - eventReadLength_); in ReadEventData()
75 if (readLen < 0) { in ReadEventData()
79 } else if (readLen == 0) { in ReadEventData()
84 eventReadLength_ += readLen; in ReadEventData()
101 ssize_t readLen; in ReadAclData() local
[all …]
Dh4_protocol.cpp58 ssize_t readLen; in ReadData() local
60 readLen = Read(fd, &packetType_, sizeof(packetType_)); in ReadData()
61 if (readLen < 0) { in ReadData()
64 } else if (readLen == 0) { in ReadData()
73 readLen = Read(fd, hciPacket_.data() + readLength_, hciPacket_.size() - readLength_); in ReadData()
74 if (readLen < 0) { in ReadData()
78 } else if (readLen == 0) { in ReadData()
83 readLength_ += readLen; in ReadData()
92 readLen = Read(fd, hciPacket_.data() + readLength_, hciPacket_.size() - readLength_); in ReadData()
93 if (readLen < 0) { in ReadData()
[all …]
/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/
Dmipi_drm_adapter.c158 …siAdapterGetCmd(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, uint32_t readLen, uint8_t *out) in MipiDsiAdapterGetCmd() argument
178 ret = mipi_dsi_generic_read(linuxPanel, params, numParams, out, readLen); in MipiDsiAdapterGetCmd()
180 cmd->dataType, cmd->payload[0], readLen); in MipiDsiAdapterGetCmd()
186 ret = mipi_dsi_dcs_read(linuxPanel, cmd->dataType, out, readLen); in MipiDsiAdapterGetCmd()
188 cmd->dataType, readLen); in MipiDsiAdapterGetCmd()
Dmipi_tx_dev.h26 uint32_t readLen; member
Dmipi_tx_dev.c462 arg->out, arg->readLen)) { in MipiDsiDevGetCmd()
476 ret = MipiDsiCntlrRx(cntlr, &temp->readCmd, temp->readLen, temp->out); in MipiDsiDevGetCmd()
Dmipi_tx_hi35xx.c1246 static int32_t Hi35xxGetCmd(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, uint32_t readLen, u… in Hi35xxGetCmd() argument
1258 cmdInfo.getDataSize = readLen; in Hi35xxGetCmd()
/drivers/hdf_core/framework/support/platform/src/mipi/
Dmipi_dsi_if.c49 int32_t MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out) in MipiDsiRx() argument
51 return MipiDsiCntlrRx((struct MipiDsiCntlr *)handle, cmd, readLen, out); in MipiDsiRx()
Dmipi_dsi_core.c266 int32_t MipiDsiCntlrRx(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t… in MipiDsiCntlrRx() argument
285 ret = cntlr->ops->getCmd(cntlr, cmd, readLen, out); in MipiDsiCntlrRx()
/drivers/hdf_core/framework/model/input/driver/input_bus_ops/
Dinput_i2c_ops.c17 uint32_t readLen) in InputI2cRead() argument
29 msg[1].len = readLen; in InputI2cRead()
Dinput_i2c_ops.h26 uint32_t readLen);
/drivers/hdf_core/framework/support/platform/include/mipi/
Dmipi_dsi_core.h41 …int32_t (*getCmd)(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, uint32_t readLen, uint8_t *o…
150 int32_t MipiDsiCntlrRx(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t…
/drivers/peripheral/input/uinput/include/
Duinput_i2c_ops.h33 uint32_t readLen);
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
Di2c_test.c43 …eadData(DevHandle handle, uint8_t *writeBuf, uint16_t writeLen, uint8_t *readBuf, uint16_t readLen) in I2cReadData() argument
55 msg[1].len = readLen; in I2cReadData()
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
Dfile_operator.c49 size_t readLen = fread(buf, sizeof(uint8_t), len, fileOperator); in ReadFile() local
50 if (readLen != len) { in ReadFile()
/drivers/peripheral/user_auth/hdi_service/adaptor/src/
Dfile_operator.c56 size_t readLen = fread(buf, sizeof(uint8_t), len, fileOperator); in ReadFile() local
57 if (readLen != len) { in ReadFile()
/drivers/hdf_core/framework/model/sensor/driver/ppg/
Dsensor_ppg_driver.c71 uint16_t readLen = 0; in PpgDataWorkEntry() local
76 ret = drvData->chipData.opsCall.ReadData(g_fifoBuf, sizeof(g_fifoBuf), &readLen); in PpgDataWorkEntry()
77 if ((ret != HDF_SUCCESS) || (readLen > sizeof(g_fifoBuf))) { in PpgDataWorkEntry()
82 if (ReportPpgData(g_fifoBuf, readLen) != HDF_SUCCESS) { in PpgDataWorkEntry()
/drivers/hdf_core/framework/include/platform/
Dmipi_dsi_if.h280 int32_t MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out);
/drivers/peripheral/input/udriver/src/
Dinput_device_manager.cpp99 int32_t readLen = read(fd, event, sizeof(struct input_event) * size); in DoRead() local
101 if (readLen == 0 || (readLen < 0 && errno == ENODEV)) { in DoRead()
103 } else if (readLen < 0) { in DoRead()
107 } else if ((readLen % sizeof(struct input_event)) != 0) { in DoRead()
109 sizeof(struct input_event), readLen); in DoRead()
111 size_t count = size_t(readLen) / sizeof(struct input_event); in DoRead()
/drivers/peripheral/usb/hdi_service/src/
Dusbd_dispatcher.cpp1275 uint32_t readLen = 0; in UsbdBulkASyncReqReadAutoSubmit() local
1286 …ret = UsbdBulkAsyncGetAsmReqLen(&db->list->pList->asmHandle, &readLen, db->list->pList->pipe.maxPa… in UsbdBulkASyncReqReadAutoSubmit()
1287 if (ret != HDF_SUCCESS || readLen < 1) { in UsbdBulkASyncReqReadAutoSubmit()
1294 if (readLen != static_cast<uint32_t>(hostRequest->length)) { in UsbdBulkASyncReqReadAutoSubmit()
1302 params.dataReq.length = readLen; in UsbdBulkASyncReqReadAutoSubmit()
1454 uint32_t readLen = 0; in UsbdBulkASyncReqReadSubmit() local
1455 …int32_t ret = UsbdBulkAsyncGetAsmReqLen(&db->list->pList->asmHandle, &readLen, db->list->pList->pi… in UsbdBulkASyncReqReadSubmit()
1456 if (ret != HDF_SUCCESS || readLen == 0) { in UsbdBulkASyncReqReadSubmit()
1458 … HDF_LOGE("%{public}s:UsbdBulkAsyncGetAsmReqLen failed, readLen:%{public}u", __func__, readLen); in UsbdBulkASyncReqReadSubmit()
1470 params.dataReq.length = readLen; in UsbdBulkASyncReqReadSubmit()
/drivers/peripheral/codec/hdi_service/codec_proxy/
Dproxy_msgproc.c292 uint32_t readLen = 0; in CodecProxyParseBufOfBufferInfo() local
295 if (!HdfSbufReadBuffer(reply, (const void **)&buf, &readLen)) { in CodecProxyParseBufOfBufferInfo()
/drivers/peripheral/codec/hdi_service/codec_service_stub/
Dstub_msgproc.c304 uint32_t readLen = 0; in CodecSerParseBufOfBufferInfo() local
307 if (!HdfSbufReadBuffer(data, (const void **)&buf, &readLen)) { in CodecSerParseBufOfBufferInfo()