Lines Matching refs:ppos

27 		      loff_t *ppos)  in hfi1_seq_read()  argument
35 r = seq_read(file, buf, size, ppos); in hfi1_seq_read()
418 size_t count, loff_t *ppos) in dev_counters_read() argument
427 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read()
433 size_t count, loff_t *ppos) in dev_names_read() argument
442 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read()
458 size_t count, loff_t *ppos) in portnames_read() argument
467 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in portnames_read()
473 size_t count, loff_t *ppos) in portcntrs_debugfs_read() argument
482 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_debugfs_read()
501 size_t count, loff_t *ppos) in asic_flags_read() argument
544 ret = simple_read_from_buffer(buf, count, ppos, tmp, used); in asic_flags_read()
550 size_t count, loff_t *ppos) in asic_flags_write() argument
596 size_t count, loff_t *ppos) in dc8051_memory_read() argument
604 if (*ppos < 0) in dc8051_memory_read()
617 start = *ppos & ~0x7; /* round down */ in dc8051_memory_read()
619 end = (*ppos + count + 7) & ~0x7; /* round up */ in dc8051_memory_read()
628 rval = simple_read_from_buffer(buf, count, ppos, tmp, in dc8051_memory_read()
636 size_t count, loff_t *ppos) in debugfs_lcb_read() argument
643 if (*ppos < 0) in debugfs_lcb_read()
649 if ((*ppos % 8) != 0) in debugfs_lcb_read()
652 if (*ppos >= (LCB_END - LCB_START) || !count) in debugfs_lcb_read()
655 if (*ppos + count > LCB_END - LCB_START) in debugfs_lcb_read()
656 count = (LCB_END - LCB_START) - *ppos; in debugfs_lcb_read()
658 csr_off = LCB_START + *ppos; in debugfs_lcb_read()
665 *ppos += total; in debugfs_lcb_read()
670 size_t count, loff_t *ppos) in debugfs_lcb_write() argument
676 if (*ppos < 0) in debugfs_lcb_write()
682 if ((*ppos % 8) != 0) in debugfs_lcb_write()
685 if (*ppos >= (LCB_END - LCB_START) || !count) in debugfs_lcb_write()
688 if (*ppos + count > LCB_END - LCB_START) in debugfs_lcb_write()
689 count = (LCB_END - LCB_START) - *ppos; in debugfs_lcb_write()
691 csr_off = LCB_START + *ppos; in debugfs_lcb_write()
698 *ppos += total; in debugfs_lcb_write()
706 size_t count, loff_t *ppos) in qsfp_debugfs_dump() argument
719 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret); in qsfp_debugfs_dump()
726 size_t count, loff_t *ppos, u32 target) in __i2c_debugfs_write() argument
738 i2c_addr = (*ppos >> 16) & 0xffff; in __i2c_debugfs_write()
739 offset = *ppos & 0xffff; in __i2c_debugfs_write()
755 *ppos += total_written; in __i2c_debugfs_write()
766 size_t count, loff_t *ppos) in i2c1_debugfs_write() argument
768 return __i2c_debugfs_write(file, buf, count, ppos, 0); in i2c1_debugfs_write()
773 size_t count, loff_t *ppos) in i2c2_debugfs_write() argument
775 return __i2c_debugfs_write(file, buf, count, ppos, 1); in i2c2_debugfs_write()
780 size_t count, loff_t *ppos, u32 target) in __i2c_debugfs_read() argument
792 i2c_addr = (*ppos >> 16) & 0xffff; in __i2c_debugfs_read()
793 offset = *ppos & 0xffff; in __i2c_debugfs_read()
809 *ppos += total_read; in __i2c_debugfs_read()
826 size_t count, loff_t *ppos) in i2c1_debugfs_read() argument
828 return __i2c_debugfs_read(file, buf, count, ppos, 0); in i2c1_debugfs_read()
833 size_t count, loff_t *ppos) in i2c2_debugfs_read() argument
835 return __i2c_debugfs_read(file, buf, count, ppos, 1); in i2c2_debugfs_read()
840 size_t count, loff_t *ppos, u32 target) in __qsfp_debugfs_write() argument
847 if (*ppos + count > QSFP_PAGESIZE * 4) /* base page + page00-page03 */ in __qsfp_debugfs_write()
856 total_written = qsfp_write(ppd, target, *ppos, buff, count); in __qsfp_debugfs_write()
862 *ppos += total_written; in __qsfp_debugfs_write()
873 size_t count, loff_t *ppos) in qsfp1_debugfs_write() argument
875 return __qsfp_debugfs_write(file, buf, count, ppos, 0); in qsfp1_debugfs_write()
880 size_t count, loff_t *ppos) in qsfp2_debugfs_write() argument
882 return __qsfp_debugfs_write(file, buf, count, ppos, 1); in qsfp2_debugfs_write()
887 size_t count, loff_t *ppos, u32 target) in __qsfp_debugfs_read() argument
894 if (*ppos + count > QSFP_PAGESIZE * 4) { /* base page + page00-page03 */ in __qsfp_debugfs_read()
907 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
913 *ppos += total_read; in __qsfp_debugfs_read()
931 size_t count, loff_t *ppos) in qsfp1_debugfs_read() argument
933 return __qsfp_debugfs_read(file, buf, count, ppos, 0); in qsfp1_debugfs_read()
938 size_t count, loff_t *ppos) in qsfp2_debugfs_read() argument
940 return __qsfp_debugfs_read(file, buf, count, ppos, 1); in qsfp2_debugfs_read()
1047 size_t count, loff_t *ppos) in exprom_wp_debugfs_read() argument
1054 loff_t *ppos) in exprom_wp_debugfs_write() argument