Home
last modified time | relevance | path

Searched refs:msgs (Results 1 – 25 of 104) sorted by relevance

12345

/device/soc/rockchip/rk2206/hardware/include/lz_hardware/
Di2c.h82 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[1].buf = data; in LzI2cReadReg()
200 msgs[1].len = len; in LzI2cReadReg()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/video/rockchip/mpp/
Dmpp_common.c225 static void task_msgs_reset(struct mpp_task_msgs *msgs) in task_msgs_reset() argument
227 list_del_init(&msgs->list); in task_msgs_reset()
229 msgs->flags = 0; in task_msgs_reset()
230 msgs->req_cnt = 0; in task_msgs_reset()
231 msgs->set_cnt = 0; in task_msgs_reset()
232 msgs->poll_cnt = 0; in task_msgs_reset()
235 static void task_msgs_init(struct mpp_task_msgs *msgs, struct mpp_session *session) in task_msgs_init() argument
237 INIT_LIST_HEAD(&msgs->list); in task_msgs_init()
239 msgs->session = session; in task_msgs_init()
240 msgs->queue = NULL; in task_msgs_init()
[all …]
Dmpp_jpgdec.c129 struct mpp_task_msgs *msgs) in jpgdec_process_reg_fd() argument
144 struct mpp_task_msgs *msgs) in jpgdec_extract_task_msg() argument
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() argument
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() argument
/device/board/isoftstone/yangfan/kernel/hdf/drivers/audio/accessory/es8316/src/
Des8316_accessory_impl.c57 static void Es8316I2cRelease(struct I2cMsg *msgs, int16_t msgSize, DevHandle i2cHandle) in Es8316I2cRelease() argument
59 if (msgs != NULL) { in Es8316I2cRelease()
60 if (msgSize == 0 && msgs->buf != NULL) { in Es8316I2cRelease()
61 OsalMemFree(msgs->buf); in Es8316I2cRelease()
62 msgs->buf = NULL; in Es8316I2cRelease()
63 } else if (msgSize == 1 && msgs[0].buf != NULL) { in Es8316I2cRelease()
64 OsalMemFree(msgs[0].buf); in Es8316I2cRelease()
65 msgs[0].buf = NULL; in Es8316I2cRelease()
67 if (msgs[0].buf != NULL) { in Es8316I2cRelease()
68 msgs[0].buf = NULL; in Es8316I2cRelease()
[all …]
/device/board/hihope/dayu210/audio_drivers/accessory/es8323/src/
Des8323_impl.c58 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[0].buf = NULL; in Es8323I2cRelease()
[all …]
/device/board/osware/imx8mm/drivers/audio/codec/src/
Dwm8904_impl.c69 struct I2cMsg msgs[2] = {0}; in WM8904I2cRead() local
80 msgs[0].addr = gwm8904i2cDevAddr; in WM8904I2cRead()
81 msgs[0].flags = 0; in WM8904I2cRead()
82 msgs[0].len = regLen; in WM8904I2cRead()
83 msgs[0].buf = regBuf; in WM8904I2cRead()
86 msgs[1].addr = gwm8904i2cDevAddr; in WM8904I2cRead()
87 msgs[1].flags = I2C_FLAG_READ; in WM8904I2cRead()
88 msgs[1].len = dataLen; in WM8904I2cRead()
89 msgs[1].buf = regdata; in WM8904I2cRead()
91 if (I2cTransfer(i2cHandle, msgs, DATA_LEN_2) != DATA_LEN_2) { in WM8904I2cRead()
[all …]
/device/soc/hpmicro/drivers/platform/
Di2c.c36 static int32_t hpmTransfer(struct I2cCntlr *cntlr, struct I2cMsg *msgs, int16_t count) in hpmTransfer() argument
42 if (msgs[i].flags & I2C_FLAG_ADDR_10BIT) { in hpmTransfer()
51 if (msgs[i].flags & I2C_FLAG_READ) { in hpmTransfer()
52 if (i2c_master_read(base, msgs[i].addr, msgs[i].buf, msgs[i].len) != status_success) { in hpmTransfer()
57 if (i2c_master_write(base, msgs[i].addr, msgs[i].buf, msgs[i].len) != status_success) { in hpmTransfer()
/device/soc/hisilicon/common/platform/i2s/
Di2s_aiao_hi35xx.c571 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->len, msgs->wbuf, msgs->len); in WriteTxBuffData()
[all …]
Di2s_hi35xx.c419 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 == N… 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->len >= i2sCfg->txSize) { in Hi35xxI2sWrite()
479 if (UpdateTxBuffData(i2sCfg, msgs, &offset) != HDF_SUCCESS) { in Hi35xxI2sWrite()
485 if (*msgs->pRlen == 0) { in Hi35xxI2sWrite()
[all …]
/device/board/openvalley/niobeu4/liteos_m/hdf_drivers/i2c/
Di2c_esp32u4.c39 static int32_t I2cDataTransfer(struct I2cCntlr *cntlr, struct I2cMsg *msgs, int16_t count);
214 static int32_t I2cDataTransfer(struct I2cCntlr *cntlr, struct I2cMsg *msgs, int16_t count) in I2cDataTransfer() argument
217 if (cntlr == NULL || msgs == NULL || cntlr->priv == NULL) { in I2cDataTransfer()
233 for (; count > 0; --count, ++msgs) { in I2cDataTransfer()
234 if ((msgs->flags) == 0) { // write in I2cDataTransfer()
235 if (DeviceI2cWrite(cntlr->busId, msgs->addr, msgs->buf, msgs->len, 1)) in I2cDataTransfer()
237 } else if ((msgs->flags) == I2C_FLAG_READ) { // read in I2cDataTransfer()
238 if (DeviceI2cRead(cntlr->busId, msgs->addr, msgs->buf, msgs->len, 1)) in I2cDataTransfer()
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/subdev/sensor/src/platform/
Dsystem_i2c.c213 struct i2c_msg msgs[] = { in system_i2c_write() local
222 msg_count = sizeof(msgs) / sizeof(msgs[0]); in system_i2c_write()
225 rc = i2c_transfer(g_sensor_ctrl->client->adapter, msgs, msg_count); in system_i2c_write()
260 struct i2c_msg msgs[] = { in system_i2c_read() local
275 msg_count = sizeof(msgs) / sizeof(msgs[0]); in system_i2c_read()
278 rc = i2c_transfer(g_sensor_ctrl->client->adapter, msgs, msg_count); in system_i2c_read()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/vin-cci/
Dsunxi_cci.c157 sunxi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in sunxi_i2c_xfer() argument
164 cci_msg.bus_fmt.saddr_7bit = msgs->addr; in sunxi_i2c_xfer()
168 if (msgs->len == 0) { in sunxi_i2c_xfer()
173 cci_msg.bus_fmt.data_len = msgs->len - 1; in sunxi_i2c_xfer()
175 cci_msg.pkt_buf = msgs->buf; in sunxi_i2c_xfer()
181 buf = kzalloc(1 + msgs[1].len, GFP_KERNEL); in sunxi_i2c_xfer()
182 buf[0] = msgs[0].buf[0]; in sunxi_i2c_xfer()
183 cci_msg.bus_fmt.saddr_7bit = msgs[0].addr; in sunxi_i2c_xfer()
188 cci_msg.bus_fmt.data_len = msgs[1].len; in sunxi_i2c_xfer()
194 msgs[1].buf[i] = buf[i+1]; in sunxi_i2c_xfer()
/device/board/hihope/rk3568/audio_drivers/dsp/src/
Drk3568_dsp_ops.c38 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/kaihong/khdvk_3566b/kernel/audio/dsp/src/
Drk3568_dsp_ops.c39 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, in DspDeviceReadReg() argument
43 (void)msgs; in DspDeviceReadReg()
47 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, in DspDeviceWriteReg() argument
51 (void)msgs; in DspDeviceWriteReg()
/device/board/unionman/unionpi_tiger/kernel/hdf/audio/dsp/
Da311d_dsp_ops.c37 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument
40 (void)msgs; in DspDeviceReadReg()
44 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument
47 (void)msgs; in DspDeviceWriteReg()
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/dsp/src/
Ddsp_ops.c37 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument
40 (void)msgs; in DspDeviceReadReg()
44 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument
47 (void)msgs; in DspDeviceWriteReg()
/device/board/hisilicon/hispark_taurus/audio_drivers/dsp/src/
Ddsp_ops.c227 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/board/osware/imx8mm/drivers/audio/dsp/src/
Ddsp_ops.c223 int32_t DspSpiTransfer(DevHandle handle, const uint8_t *msgs, const uint32_t count) in DspSpiTransfer() argument
225 if (handle == NULL || msgs == NULL || count == 0) { in DspSpiTransfer()
315 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument
318 if (msgs == NULL || len == 0) { in DspDeviceReadReg()
329 ret = DspSpiRead(devHandle, msgs, len); in DspDeviceReadReg()
341 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument
345 if (msgs == NULL || len == 0) { in DspDeviceWriteReg()
356 ret = DspSpiTransfer(devHandle, msgs, len); in DspDeviceWriteReg()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
Drk3066_hdmi.c575 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->addr == DDC_ADDR) { in rk3066_hdmi_i2c_write()
610 hdmi->i2c->ddc_addr = msgs->buf[0]; in rk3066_hdmi_i2c_write()
625 static int rk3066_hdmi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in rk3066_hdmi_i2c_xfer() argument
[all …]
Dinno_hdmi.c627 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->addr == DDC_ADDR) { in inno_hdmi_i2c_write()
662 hdmi->i2c->ddc_addr = msgs->buf[0]; in inno_hdmi_i2c_write()
677 static int inno_hdmi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in inno_hdmi_i2c_xfer() argument
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/
Ddw9763.c82 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_SIZE(msgs)); in dw9763_read_reg()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/input/touchscreen/gt9xx/
Dgoodix_tool.c117 struct i2c_msg msgs[2]; in tool_i2c_read_no_extra() local
119 msgs[0].flags = !I2C_M_RD; in tool_i2c_read_no_extra()
120 msgs[0].addr = gt_client->addr; in tool_i2c_read_no_extra()
121 msgs[0].len = cmd_head.addr_len; in tool_i2c_read_no_extra()
122 msgs[0].buf = &buf[0]; in tool_i2c_read_no_extra()
124 msgs[1].flags = I2C_M_RD; in tool_i2c_read_no_extra()
125 msgs[1].addr = gt_client->addr; in tool_i2c_read_no_extra()
126 msgs[1].len = len; in tool_i2c_read_no_extra()
127 msgs[1].buf = &buf[GTP_ADDR_LENGTH]; in tool_i2c_read_no_extra()
131 ret=i2c_transfer(gt_client->adapter, msgs, 2); in tool_i2c_read_no_extra()
/device/soc/rockchip/common/sdk_linux/drivers/i2c/
Di2c-core-base.c1991 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[0], "msg too long"); in i2c_check_for_quirks()
2018 if (i2c_quirk_exceeded(msgs[1].len, q->max_comb_2nd_msg_len)) { in i2c_check_for_quirks()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/i2c/busses/
Di2c-rk3x.c1015 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[1].flags & I2C_M_RD)) { in rk3x_i2c_setup()
1035 for (i = 0; i < msgs[0].len; ++i) { in rk3x_i2c_setup()
1036 reg_addr |= msgs[0].buf[i] << (i * RK_I2C_BYTE_TO_BIT_COUNT); in rk3x_i2c_setup()
1041 i2c->msg = &msgs[1]; in rk3x_i2c_setup()
1055 if (msgs[0].flags & I2C_M_RD) { in rk3x_i2c_setup()
1069 i2c->msg = &msgs[0]; in rk3x_i2c_setup()
1074 i2c->addr = msgs[0].addr; in rk3x_i2c_setup()
[all …]
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
Dmpp_jpgdec.c126 …c_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

12345