• Home
  • Raw
  • Download

Lines Matching refs:buf

101 			char *buf)  in spu_show_temp()  argument
110 return sprintf(buf, "%d\n", reg_to_temp(value)); in spu_show_temp()
113 static ssize_t show_throttle(struct cbe_pmd_regs __iomem *pmd_regs, char *buf, int pos) in show_throttle() argument
122 return sprintf(buf, "%d\n", reg_to_temp(value)); in show_throttle()
125 static ssize_t store_throttle(struct cbe_pmd_regs __iomem *pmd_regs, const char *buf, size_t size, … in store_throttle() argument
132 ret = sscanf(buf, "%u", &temp); in store_throttle()
151 struct device_attribute *attr, char *buf) in spu_show_throttle_end() argument
153 return show_throttle(get_pmd_regs(dev), buf, 0); in spu_show_throttle_end()
157 struct device_attribute *attr, char *buf) in spu_show_throttle_begin() argument
159 return show_throttle(get_pmd_regs(dev), buf, 8); in spu_show_throttle_begin()
163 struct device_attribute *attr, char *buf) in spu_show_throttle_full_stop() argument
165 return show_throttle(get_pmd_regs(dev), buf, 16); in spu_show_throttle_full_stop()
169 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_end() argument
171 return store_throttle(get_pmd_regs(dev), buf, size, 0); in spu_store_throttle_end()
175 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_begin() argument
177 return store_throttle(get_pmd_regs(dev), buf, size, 8); in spu_store_throttle_begin()
181 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_full_stop() argument
183 return store_throttle(get_pmd_regs(dev), buf, size, 16); in spu_store_throttle_full_stop()
186 static ssize_t ppe_show_temp(struct device *dev, char *buf, int pos) in ppe_show_temp() argument
196 return sprintf(buf, "%d\n", reg_to_temp(value)); in ppe_show_temp()
203 struct device_attribute *attr, char *buf) in ppe_show_temp0() argument
205 return ppe_show_temp(dev, buf, 32); in ppe_show_temp0()
210 struct device_attribute *attr, char *buf) in ppe_show_temp1() argument
212 return ppe_show_temp(dev, buf, 0); in ppe_show_temp1()
216 struct device_attribute *attr, char *buf) in ppe_show_throttle_end() argument
218 return show_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, 32); in ppe_show_throttle_end()
222 struct device_attribute *attr, char *buf) in ppe_show_throttle_begin() argument
224 return show_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, 40); in ppe_show_throttle_begin()
228 struct device_attribute *attr, char *buf) in ppe_show_throttle_full_stop() argument
230 return show_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, 48); in ppe_show_throttle_full_stop()
234 struct device_attribute *attr, const char *buf, size_t size) in ppe_store_throttle_end() argument
236 return store_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, size, 32); in ppe_store_throttle_end()
240 struct device_attribute *attr, const char *buf, size_t size) in ppe_store_throttle_begin() argument
242 return store_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, size, 40); in ppe_store_throttle_begin()
246 struct device_attribute *attr, const char *buf, size_t size) in ppe_store_throttle_full_stop() argument
248 return store_throttle(cbe_get_cpu_pmd_regs(dev->id), buf, size, 48); in ppe_store_throttle_full_stop()