/device/soc/rockchip/rk2206/hardware/include/lz_hardware/ |
H A D | i2c.h | 77 * @param msgs Indicates the point of i2c messages. 82 unsigned int LzI2cTransfer(unsigned id, LzI2cMsg *msgs, unsigned int num); 190 LzI2cMsg msgs[I2C_MSGS_MAX]; in LzI2cReadReg() local 192 msgs[0].addr = slaveAddr; in LzI2cReadReg() 193 msgs[0].flags = 0; in LzI2cReadReg() 194 msgs[0].buf = regAddr; in LzI2cReadReg() 195 msgs[0].len = regLen; in LzI2cReadReg() 197 msgs[1].addr = slaveAddr; in LzI2cReadReg() 198 msgs[1].flags = I2C_M_RD; in LzI2cReadReg() 199 msgs[ in LzI2cReadReg() [all...] |
/device/board/hihope/dayu210/audio_drivers/accessory/es8323/src/ |
H A D | es8323_impl.c | 58 static void Es8323I2cRelease(struct I2cMsg *msgs, int16_t msgSize, DevHandle i2cHandle) in Es8323I2cRelease() argument 60 if (msgs != NULL) { in Es8323I2cRelease() 61 if (msgSize == 0 && msgs->buf != NULL) { in Es8323I2cRelease() 62 OsalMemFree(msgs->buf); in Es8323I2cRelease() 63 msgs->buf = NULL; in Es8323I2cRelease() 64 } else if (msgSize == 1 && msgs[0].buf != NULL) { in Es8323I2cRelease() 65 OsalMemFree(msgs[0].buf); in Es8323I2cRelease() 66 msgs[0].buf = NULL; in Es8323I2cRelease() 68 if (msgs[0].buf != NULL) { in Es8323I2cRelease() 69 msgs[ in Es8323I2cRelease() 86 Es8323I2cMsgFill(const struct AudioAddrConfig *regAttr, uint16_t rwFlag, uint8_t *regs, struct I2cMsg *msgs) Es8323I2cMsgFill() argument 138 struct I2cMsg msgs[ES8323_I2C_MSG_NUM]; Es8323I2cReadWrite() local [all...] |
/device/soc/hisilicon/common/platform/i2s/ |
H A D | i2s_aiao_hi35xx.c | 571 int32_t GetRxBuffData(struct I2sConfigInfo *i2sCfg, struct I2sMsg *msgs, uint32_t *pOffset) in GetRxBuffData() argument 573 if (i2sCfg == NULL || msgs == NULL || pOffset == NULL) { in GetRxBuffData() 595 *msgs->pRlen = 0; in GetRxBuffData() 609 int ret = LOS_CopyFromKernel((void *)msgs->rbuf, dataLen, i2sCfg->rxVirData + rxRptr, dataLen); in GetRxBuffData() 615 *msgs->pRlen = dataLen; in GetRxBuffData() 620 int32_t WriteTxBuffData(struct I2sConfigInfo *i2sCfg, struct I2sMsg *msgs, in WriteTxBuffData() argument 627 if (i2sCfg == NULL || msgs == NULL || pOffset == NULL) { in WriteTxBuffData() 632 if ((i2sCfg->txSize - txWptr) >= msgs->len) { in WriteTxBuffData() 633 *pOffset = txWptr + msgs->len; in WriteTxBuffData() 634 ret = LOS_CopyToKernel(i2sCfg->txVirData + txWptr, msgs in WriteTxBuffData() 662 UpdateTxBuffData(struct I2sConfigInfo *i2sCfg, struct I2sMsg *msgs, uint32_t *pOffset) UpdateTxBuffData() argument [all...] |
H A D | i2s_hi35xx.c | 419 static int32_t Hi35xxI2sRead(struct I2sCntlr *cntlr, struct I2sMsg *msgs) in Hi35xxI2sRead() argument 421 if (cntlr == NULL || cntlr->priv == NULL || msgs == NULL || msgs->rbuf == NULL || msgs->pRlen == NULL) { in Hi35xxI2sRead() 430 if (GetRxBuffData(i2sCfg, msgs, &rptrOffset) != HDF_SUCCESS) { in Hi35xxI2sRead() 436 if (*msgs->pRlen == 0) { in Hi35xxI2sRead() 448 static int32_t Hi35xxI2sWrite(struct I2sCntlr *cntlr, struct I2sMsg *msgs) in Hi35xxI2sWrite() argument 450 if (cntlr == NULL || cntlr->priv == NULL || msgs == NULL) { in Hi35xxI2sWrite() 459 msgs->len, i2sCfg->isplay, i2sCfg->txSize); in Hi35xxI2sWrite() 471 if (msgs in Hi35xxI2sWrite() 498 Hi35xxI2sTransfer(struct I2sCntlr *cntlr, struct I2sMsg *msgs) Hi35xxI2sTransfer() argument [all...] |
/device/board/hihope/rk3568/audio_drivers/dsp/src/ |
H A D | rk3568_dsp_ops.c | 38 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument 41 (void)msgs; in DspDeviceReadReg() 45 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument 48 (void)msgs; in DspDeviceWriteReg()
|
/device/board/hisilicon/hispark_taurus/audio_drivers/dsp/src/ |
H A D | dsp_ops.c | 227 static int32_t DspSpiTransfer(DevHandle handle, const uint8_t *msgs, const uint32_t count) in DspSpiTransfer() argument 229 if (handle == NULL || msgs == NULL || count == 0) { in DspSpiTransfer() 319 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument 322 if (msgs == NULL || len == 0) { in DspDeviceReadReg() 333 ret = DspSpiRead(devHandle, msgs, len); in DspDeviceReadReg() 345 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument 349 if (msgs == NULL || len == 0) { in DspDeviceWriteReg() 360 ret = DspSpiTransfer(devHandle, msgs, len); in DspDeviceWriteReg()
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/ |
H A D | inno_hdmi.c | 627 static int inno_hdmi_i2c_read(struct inno_hdmi *hdmi, struct i2c_msg *msgs) in inno_hdmi_i2c_read() argument 629 int length = msgs->len; in inno_hdmi_i2c_read() 630 u8 *buf = msgs->buf; in inno_hdmi_i2c_read() 645 static int inno_hdmi_i2c_write(struct inno_hdmi *hdmi, struct i2c_msg *msgs) in inno_hdmi_i2c_write() argument 652 if ((msgs->len != 1) || ((msgs->addr != DDC_ADDR) && (msgs->addr != DDC_SEGMENT_ADDR))) { in inno_hdmi_i2c_write() 658 if (msgs->addr == DDC_SEGMENT_ADDR) { in inno_hdmi_i2c_write() 659 hdmi->i2c->segment_addr = msgs->buf[0]; in inno_hdmi_i2c_write() 661 if (msgs in inno_hdmi_i2c_write() 677 inno_hdmi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) inno_hdmi_i2c_xfer() argument [all...] |
H A D | rk3066_hdmi.c | 575 static int rk3066_hdmi_i2c_read(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs) in rk3066_hdmi_i2c_read() argument 577 int length = msgs->len; in rk3066_hdmi_i2c_read() 578 u8 *buf = msgs->buf; in rk3066_hdmi_i2c_read() 593 static int rk3066_hdmi_i2c_write(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs) in rk3066_hdmi_i2c_write() argument 600 if (msgs->len != 1 || (msgs->addr != DDC_ADDR && msgs->addr != DDC_SEGMENT_ADDR)) { in rk3066_hdmi_i2c_write() 606 if (msgs->addr == DDC_SEGMENT_ADDR) { in rk3066_hdmi_i2c_write() 607 hdmi->i2c->segment_addr = msgs->buf[0]; in rk3066_hdmi_i2c_write() 609 if (msgs in rk3066_hdmi_i2c_write() 625 rk3066_hdmi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) rk3066_hdmi_i2c_xfer() argument [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/ |
H A D | dw9763.c | 82 struct i2c_msg msgs[2]; in dw9763_read_reg() local 92 msgs[0].addr = client->addr; in dw9763_read_reg() 93 msgs[0].flags = 0; in dw9763_read_reg() 94 msgs[0].len = 1; in dw9763_read_reg() 95 msgs[0].buf = (u8 *)&addr; in dw9763_read_reg() 98 msgs[1].addr = client->addr; in dw9763_read_reg() 99 msgs[1].flags = I2C_M_RD; in dw9763_read_reg() 100 msgs[1].len = len; in dw9763_read_reg() 101 msgs[1].buf = &data_be_p[4 - len]; in dw9763_read_reg() 103 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZ in dw9763_read_reg() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/i2c/ |
H A D | i2c-core-base.c | 1991 static int i2c_check_for_quirks(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
in i2c_check_for_quirks() argument 2002 if ((q->flags & I2C_AQ_COMB_WRITE_FIRST) && (msgs[0].flags & I2C_M_RD)) {
in i2c_check_for_quirks() 2003 return i2c_quirk_error(adap, &msgs[0], "1st comb msg must be write");
in i2c_check_for_quirks() 2006 if ((q->flags & I2C_AQ_COMB_READ_SECOND) && !(msgs[1].flags & I2C_M_RD)) {
in i2c_check_for_quirks() 2007 return i2c_quirk_error(adap, &msgs[1], "2nd comb msg must be read");
in i2c_check_for_quirks() 2010 if ((q->flags & I2C_AQ_COMB_SAME_ADDR) && (msgs[0].addr != msgs[1].addr)) {
in i2c_check_for_quirks() 2011 return i2c_quirk_error(adap, &msgs[0], "comb msg only to same addr");
in i2c_check_for_quirks() 2014 if (i2c_quirk_exceeded(msgs[0].len, q->max_comb_1st_msg_len)) {
in i2c_check_for_quirks() 2015 return i2c_quirk_error(adap, &msgs[ in i2c_check_for_quirks() 2067 __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) __i2c_transfer() argument 2144 i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) i2c_transfer() argument [all...] |
/device/board/hihope/rk3568/audio_drivers/dsp/include/ |
H A D | rk3568_dsp_ops.h | 22 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len); 23 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len);
|
/device/board/hisilicon/hispark_taurus/audio_drivers/dsp/include/ |
H A D | dsp_ops.h | 32 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len); 33 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len);
|
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/ |
H A D | mpp_rkvdec2_link.h | 155 int rkvdec2_link_process_task(struct mpp_session *session, struct mpp_task_msgs *msgs); 156 int rkvdec2_link_wait_result(struct mpp_session *session, struct mpp_task_msgs *msgs); 163 void *rkvdec2_ccu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs);
|
H A D | mpp_jpgdec.c | 126 static int jpgdec_process_reg_fd(struct mpp_session *session, struct jpgdec_task *task, struct mpp_task_msgs *msgs)
in jpgdec_process_reg_fd() argument 139 static int jpgdec_extract_task_msg(struct jpgdec_task *task, struct mpp_task_msgs *msgs)
in jpgdec_extract_task_msg() argument 146 for (i = 0; i < msgs->req_cnt; i++) {
in jpgdec_extract_task_msg() 149 req = &msgs->reqs[i];
in jpgdec_extract_task_msg() 192 static void *jpgdec_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs)
in jpgdec_alloc_task() argument 211 ret = jpgdec_extract_task_msg(task, msgs);
in jpgdec_alloc_task() 216 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) {
in jpgdec_alloc_task() 217 ret = jpgdec_process_reg_fd(session, task, msgs);
in jpgdec_alloc_task() 313 static int jpgdec_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs)
in jpgdec_result() argument
|
H A D | mpp_vepu1.c | 145 static int vepu_process_reg_fd(struct mpp_session *session, struct vepu_task *task, struct mpp_task_msgs *msgs)
in vepu_process_reg_fd() argument 157 static int vepu_extract_task_msg(struct vepu_task *task, struct mpp_task_msgs *msgs)
in vepu_extract_task_msg() argument 163 for (i = 0; i < msgs->req_cnt; i++) {
in vepu_extract_task_msg() 165 req = &msgs->reqs[i];
in vepu_extract_task_msg() 206 static void *vepu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs)
in vepu_alloc_task() argument 225 ret = vepu_extract_task_msg(task, msgs);
in vepu_alloc_task() 230 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) {
in vepu_alloc_task() 231 ret = vepu_process_reg_fd(session, task, msgs);
in vepu_alloc_task() 343 static int vepu_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs)
in vepu_result() argument
|
H A D | mpp_vdpu2.c | 197 static int vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs)
in vdpu_process_reg_fd() argument 234 static int vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs)
in vdpu_extract_task_msg() argument 240 for (i = 0; i < msgs->req_cnt; i++) {
in vdpu_extract_task_msg() 242 req = &msgs->reqs[i];
in vdpu_extract_task_msg() 283 static void *vdpu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs)
in vdpu_alloc_task() argument 302 ret = vdpu_extract_task_msg(task, msgs);
in vdpu_alloc_task() 307 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) {
in vdpu_alloc_task() 308 ret = vdpu_process_reg_fd(session, task, msgs);
in vdpu_alloc_task() 389 static int vdpu_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs)
in vdpu_result() argument
|
H A D | mpp_rkvdec2.h | 203 struct mpp_task_msgs *msgs); 204 void *rkvdec2_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs); 209 int rkvdec2_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs);
|
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/ |
H A D | mpp_rkvdec2_link.h | 156 struct mpp_task_msgs *msgs); 158 struct mpp_task_msgs *msgs); 165 void *rkvdec2_ccu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs);
|
H A D | mpp_vdpu1.c | 229 struct mpp_task_msgs *msgs) in vdpu_process_reg_fd() 283 struct mpp_task_msgs *msgs) in vdpu_extract_task_msg() 290 for (i = 0; i < msgs->req_cnt; i++) { in vdpu_extract_task_msg() 293 req = &msgs->reqs[i]; in vdpu_extract_task_msg() 337 struct mpp_task_msgs *msgs) in vdpu_alloc_task() 360 ret = vdpu_extract_task_msg(task, msgs); in vdpu_alloc_task() 364 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) { in vdpu_alloc_task() 365 ret = vdpu_process_reg_fd(session, task, msgs); in vdpu_alloc_task() 451 struct mpp_task_msgs *msgs) in vdpu_result() 227 vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_process_reg_fd() argument 282 vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_extract_task_msg() argument 336 vdpu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs) vdpu_alloc_task() argument 449 vdpu_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs) vdpu_result() argument
|
H A D | mpp_vepu1.c | 149 struct mpp_task_msgs *msgs) in vepu_process_reg_fd() 166 struct mpp_task_msgs *msgs) in vepu_extract_task_msg() 173 for (i = 0; i < msgs->req_cnt; i++) { in vepu_extract_task_msg() 176 req = &msgs->reqs[i]; in vepu_extract_task_msg() 220 struct mpp_task_msgs *msgs) in vepu_alloc_task() 238 ret = vepu_extract_task_msg(task, msgs); in vepu_alloc_task() 242 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) { in vepu_alloc_task() 243 ret = vepu_process_reg_fd(session, task, msgs); in vepu_alloc_task() 366 struct mpp_task_msgs *msgs) in vepu_result() 147 vepu_process_reg_fd(struct mpp_session *session, struct vepu_task *task, struct mpp_task_msgs *msgs) vepu_process_reg_fd() argument 165 vepu_extract_task_msg(struct vepu_task *task, struct mpp_task_msgs *msgs) vepu_extract_task_msg() argument 219 vepu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs) vepu_alloc_task() argument 364 vepu_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs) vepu_result() argument
|
H A D | mpp_vdpu2.c | 202 struct mpp_task_msgs *msgs) in vdpu_process_reg_fd() 241 struct mpp_task_msgs *msgs) in vdpu_extract_task_msg() 248 for (i = 0; i < msgs->req_cnt; i++) { in vdpu_extract_task_msg() 251 req = &msgs->reqs[i]; in vdpu_extract_task_msg() 295 struct mpp_task_msgs *msgs) in vdpu_alloc_task() 313 ret = vdpu_extract_task_msg(task, msgs); in vdpu_alloc_task() 317 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) { in vdpu_alloc_task() 318 ret = vdpu_process_reg_fd(session, task, msgs); in vdpu_alloc_task() 404 struct mpp_task_msgs *msgs) in vdpu_result() 200 vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_process_reg_fd() argument 240 vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_extract_task_msg() argument 294 vdpu_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs) vdpu_alloc_task() argument 402 vdpu_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs) vdpu_result() argument
|
H A D | mpp_jpgdec.c | 129 struct mpp_task_msgs *msgs) in jpgdec_process_reg_fd() 144 struct mpp_task_msgs *msgs) in jpgdec_extract_task_msg() 151 for (i = 0; i < msgs->req_cnt; i++) { in jpgdec_extract_task_msg() 154 req = &msgs->reqs[i]; in jpgdec_extract_task_msg() 198 struct mpp_task_msgs *msgs) in jpgdec_alloc_task() 216 ret = jpgdec_extract_task_msg(task, msgs); in jpgdec_alloc_task() 220 if (!(msgs->flags & MPP_FLAGS_REG_FD_NO_TRANS)) { in jpgdec_alloc_task() 221 ret = jpgdec_process_reg_fd(session, task, msgs); in jpgdec_alloc_task() 322 struct mpp_task_msgs *msgs) in jpgdec_result() 127 jpgdec_process_reg_fd(struct mpp_session *session, struct jpgdec_task *task, struct mpp_task_msgs *msgs) jpgdec_process_reg_fd() argument 143 jpgdec_extract_task_msg(struct jpgdec_task *task, struct mpp_task_msgs *msgs) jpgdec_extract_task_msg() argument 197 jpgdec_alloc_task(struct mpp_session *session, struct mpp_task_msgs *msgs) jpgdec_alloc_task() argument 320 jpgdec_result(struct mpp_dev *mpp, struct mpp_task *mpp_task, struct mpp_task_msgs *msgs) jpgdec_result() argument
|
H A D | mpp_rkvdec2.h | 209 struct rkvdec2_task *task, struct mpp_task_msgs *msgs); 211 struct mpp_task_msgs *msgs); 217 struct mpp_task_msgs *msgs);
|
/device/soc/rockchip/common/sdk_linux/drivers/i2c/busses/ |
H A D | i2c-rk3x.c | 1006 * Setup I2C registers for an I2C operation specified by msgs, num.
1010 * @msgs: I2C msgs to process
1011 * @num: Number of msgs
1013 * returns: Number of I2C msgs processed or negative in case of error
1015 static int rk3x_i2c_setup(struct rk3x_i2c *i2c, struct i2c_msg *msgs, int num)
in rk3x_i2c_setup() argument 1017 u32 addr = (msgs[0].addr & RK_I2C_ADDR_MASK) << 1;
in rk3x_i2c_setup() 1027 if (num >= RK_I2C_MSG_NUM && msgs[0].len < RK_I2C_MSG_LEN_MIN && !(msgs[0].flags & I2C_M_RD) &&
in rk3x_i2c_setup() 1028 (msgs[ in rk3x_i2c_setup() 1096 rk3x_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg *msgs, int num, bool polling) rk3x_i2c_xfer_common() argument 1159 rk3x_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) rk3x_i2c_xfer() argument 1164 rk3x_i2c_xfer_polling(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) rk3x_i2c_xfer_polling() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/arch/ |
H A D | sys_arch.h | 57 void **msgs; member 70 void **msgs; member
|