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
249 if (!lpcdev || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_out()
256 iopara.csize = dwidth; in hisi_lpc_comm_out()
258 hisi_lpc_target_out(lpcdev, &iopara, addr, buf, dwidth); in hisi_lpc_comm_out()
273 size_t dwidth, unsigned int count) in hisi_lpc_comm_ins() argument
280 if (!lpcdev || !buf || !count || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_ins()
284 if (dwidth > 1) in hisi_lpc_comm_ins()
286 iopara.csize = dwidth; in hisi_lpc_comm_ins()
293 ret = hisi_lpc_target_in(lpcdev, &iopara, addr, buf, dwidth); in hisi_lpc_comm_ins()
296 buf += dwidth; in hisi_lpc_comm_ins()
311 const void *buffer, size_t dwidth, in hisi_lpc_comm_outs() argument
319 if (!lpcdev || !buf || !count || !dwidth || dwidth > LPC_MAX_DWIDTH) in hisi_lpc_comm_outs()
323 if (dwidth > 1) in hisi_lpc_comm_outs()
325 iopara.csize = dwidth; in hisi_lpc_comm_outs()
329 if (hisi_lpc_target_out(lpcdev, &iopara, addr, buf, dwidth)) in hisi_lpc_comm_outs()
331 buf += dwidth; in hisi_lpc_comm_outs()