Lines Matching refs:dwidth
203 * @dwidth: the data length required to read from the target I/O port
207 static u32 hisi_lpc_comm_in(void *hostdata, unsigned long pio, size_t dwidth)
215 if (!lpcdev || !dwidth || dwidth > LPC_MAX_DWIDTH)
221 iopara.csize = dwidth;
224 (unsigned char *)&rd_data, dwidth);
236 * @dwidth: the data width required writing to the target I/O port
241 u32 val, size_t dwidth)
249 if (!lpcdev || !dwidth || dwidth > LPC_MAX_DWIDTH)
256 iopara.csize = dwidth;
258 hisi_lpc_target_out(lpcdev, &iopara, addr, buf, dwidth);
266 * @dwidth: the data width required writing to the target I/O port
267 * @count: how many data units whose length is dwidth will be read
273 size_t dwidth, unsigned int count)
280 if (!lpcdev || !buf || !count || !dwidth || dwidth > LPC_MAX_DWIDTH)
284 if (dwidth > 1)
286 iopara.csize = dwidth;
293 ret = hisi_lpc_target_in(lpcdev, &iopara, addr, buf, dwidth);
296 buf += dwidth;
307 * @dwidth: the data width required writing to the target I/O port
308 * @count: how many data units whose length is dwidth will be written
311 const void *buffer, size_t dwidth,
319 if (!lpcdev || !buf || !count || !dwidth || dwidth > LPC_MAX_DWIDTH)
323 if (dwidth > 1)
325 iopara.csize = dwidth;
329 if (hisi_lpc_target_out(lpcdev, &iopara, addr, buf, dwidth))
331 buf += dwidth;