Lines Matching refs:buf
207 char *buf) in options_show() argument
220 buffer->buffer = buf; in options_show()
240 ret = (buffer->curr - buf); in options_show()
247 struct device_attribute *attr, char *buf) in resources_show() argument
263 buffer->buffer = buf; in resources_show()
296 ret = (buffer->curr - buf); in resources_show()
301 static char *pnp_get_resource_value(char *buf, in pnp_get_resource_value() argument
316 buf = skip_spaces(buf); in pnp_get_resource_value()
318 *start = simple_strtoull(buf, &buf, 0); in pnp_get_resource_value()
320 buf = skip_spaces(buf); in pnp_get_resource_value()
321 if (*buf == '-') { in pnp_get_resource_value()
322 buf = skip_spaces(buf + 1); in pnp_get_resource_value()
323 *end = simple_strtoull(buf, &buf, 0); in pnp_get_resource_value()
331 return buf; in pnp_get_resource_value()
339 char *buf = (void *)ubuf; in resources_store() local
348 buf = skip_spaces(buf); in resources_store()
349 if (!strncasecmp(buf, "disable", 7)) { in resources_store()
353 if (!strncasecmp(buf, "activate", 8)) { in resources_store()
357 if (!strncasecmp(buf, "fill", 4)) { in resources_store()
363 if (!strncasecmp(buf, "auto", 4)) { in resources_store()
370 if (!strncasecmp(buf, "clear", 5)) { in resources_store()
376 if (!strncasecmp(buf, "get", 3)) { in resources_store()
383 if (!strncasecmp(buf, "set", 3)) { in resources_store()
390 buf += 3; in resources_store()
394 buf = skip_spaces(buf); in resources_store()
395 if (!strncasecmp(buf, "io", 2)) { in resources_store()
396 buf = pnp_get_resource_value(buf + 2, in resources_store()
401 } else if (!strncasecmp(buf, "mem", 3)) { in resources_store()
402 buf = pnp_get_resource_value(buf + 3, in resources_store()
407 } else if (!strncasecmp(buf, "irq", 3)) { in resources_store()
408 buf = pnp_get_resource_value(buf + 3, in resources_store()
413 } else if (!strncasecmp(buf, "dma", 3)) { in resources_store()
414 buf = pnp_get_resource_value(buf + 3, in resources_store()
419 } else if (!strncasecmp(buf, "bus", 3)) { in resources_store()
420 buf = pnp_get_resource_value(buf + 3, in resources_store()
440 char *buf) in id_show() argument
442 char *str = buf; in id_show()
450 return (str - buf); in id_show()