Lines Matching refs:buf
81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) in nvram_read_bytes() argument
85 char *p = buf; in nvram_read_bytes()
92 return p - buf; in nvram_read_bytes()
95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) in nvram_write_bytes() argument
99 char *p = buf; in nvram_write_bytes()
106 return p - buf; in nvram_write_bytes()
109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) in nvram_read() argument
113 return ppc_md.nvram_read(buf, count, ppos); in nvram_read()
116 return arch_nvram_ops.read(buf, count, ppos); in nvram_read()
118 return nvram_read_bytes(buf, count, ppos); in nvram_read()
121 static inline ssize_t nvram_write(char *buf, size_t count, loff_t *ppos) in nvram_write() argument
125 return ppc_md.nvram_write(buf, count, ppos); in nvram_write()
128 return arch_nvram_ops.write(buf, count, ppos); in nvram_write()
130 return nvram_write_bytes(buf, count, ppos); in nvram_write()