Lines Matching refs:dwidth
207 static u32 hisi_lpc_comm_in(void *hostdata, unsigned long pio, size_t dwidth) in hisi_lpc_comm_in() argument
215 if (!lpcdev || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_in()
221 iopara.csize = dwidth; in hisi_lpc_comm_in()
224 (unsigned char *)&rd_data, dwidth); in hisi_lpc_comm_in()
241 u32 val, size_t dwidth) in hisi_lpc_comm_out() argument
248 if (!lpcdev || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_out()
257 iopara.csize = dwidth; in hisi_lpc_comm_out()
259 hisi_lpc_target_out(lpcdev, &iopara, addr, buf, dwidth); in hisi_lpc_comm_out()
274 size_t dwidth, unsigned int count) in hisi_lpc_comm_ins() argument
281 if (!lpcdev || !buf || !count || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_ins()
285 if (dwidth > 1) in hisi_lpc_comm_ins()
287 iopara.csize = dwidth; in hisi_lpc_comm_ins()
294 ret = hisi_lpc_target_in(lpcdev, &iopara, addr, buf, dwidth); in hisi_lpc_comm_ins()
297 buf += dwidth; in hisi_lpc_comm_ins()
312 const void *buffer, size_t dwidth, in hisi_lpc_comm_outs() argument
320 if (!lpcdev || !buf || !count || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_outs()
324 if (dwidth > 1) in hisi_lpc_comm_outs()
326 iopara.csize = dwidth; in hisi_lpc_comm_outs()
330 if (hisi_lpc_target_out(lpcdev, &iopara, addr, buf, dwidth)) in hisi_lpc_comm_outs()
332 buf += dwidth; in hisi_lpc_comm_outs()