Lines Matching refs:count
60 size_t count, loff_t *off);
62 size_t count, loff_t *off);
75 size_t count, loff_t *off);
139 const void __iomem *caddr, size_t count) in ipath_read_umem64() argument
142 const u64 __iomem *reg_end = reg_addr + (count / sizeof(u64)); in ipath_read_umem64()
176 const void __user *uaddr, size_t count) in ipath_write_umem64() argument
179 const u64 __iomem *reg_end = reg_addr + (count / sizeof(u64)); in ipath_write_umem64()
214 const void __iomem *caddr, size_t count) in ipath_read_umem32() argument
217 const u32 __iomem *reg_end = reg_addr + (count / sizeof(u32)); in ipath_read_umem32()
254 const void __user *uaddr, size_t count) in ipath_write_umem32() argument
257 const u32 __iomem *reg_end = reg_addr + (count / sizeof(u32)); in ipath_write_umem32()
326 size_t count, loff_t *off) in ipath_diagpkt_write() argument
339 if (count == sizeof(dp)) { in ipath_diagpkt_write()
344 } else if (count == sizeof(odp)) { in ipath_diagpkt_write()
489 size_t count, loff_t *off) in ipath_diag_read() argument
497 if (count == 0) in ipath_diag_read()
499 else if ((count % 4) || (*off % 4)) in ipath_diag_read()
502 else if (ipath_diag_inuse < 1 && (*off || count != 8)) in ipath_diag_read()
504 else if ((count % 8) || (*off % 8)) in ipath_diag_read()
506 ret = ipath_read_umem32(dd, data, kreg_base + *off, count); in ipath_diag_read()
508 ret = ipath_read_umem64(dd, data, kreg_base + *off, count); in ipath_diag_read()
511 *off += count; in ipath_diag_read()
512 ret = count; in ipath_diag_read()
521 size_t count, loff_t *off) in ipath_diag_write() argument
529 if (count == 0) in ipath_diag_write()
531 else if ((count % 4) || (*off % 4)) in ipath_diag_write()
534 else if ((ipath_diag_inuse == -1 && (*off || count != 8)) || in ipath_diag_write()
537 else if ((count % 8) || (*off % 8)) in ipath_diag_write()
539 ret = ipath_write_umem32(dd, kreg_base + *off, data, count); in ipath_diag_write()
541 ret = ipath_write_umem64(dd, kreg_base + *off, data, count); in ipath_diag_write()
544 *off += count; in ipath_diag_write()
545 ret = count; in ipath_diag_write()