Lines Matching refs:textbuf
387 ocs_textbuf_t textbuf; in ocs_ioctl() local
391 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
411 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
435 if (ocs_ddump(ocs, &textbuf, flags, req->args.q_entries) != 0) { in ocs_ioctl()
436 ocs_textbuf_reset(&textbuf); in ocs_ioctl()
447 ptbuf = &textbuf; in ocs_ioctl()
471 if (ptbuf == &textbuf) { in ocs_ioctl()
472 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
508 ocs_textbuf_t textbuf; in ocs_ioctl() local
511 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
516 ocs_mgmt_get_list(ocs, &textbuf); in ocs_ioctl()
518 if (ocs_textbuf_get_written(&textbuf)) { in ocs_ioctl()
520 ocs_textbuf_get_buffer(&textbuf), in ocs_ioctl()
521 ocs_textbuf_get_written(&textbuf))) { in ocs_ioctl()
525 req->bytes_written = ocs_textbuf_get_written(&textbuf); in ocs_ioctl()
527 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
534 ocs_textbuf_t textbuf; in ocs_ioctl() local
540 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
545 ocs_mgmt_get_all(ocs, &textbuf); in ocs_ioctl()
547 for (idx = 0; (n = ocs_textbuf_ext_get_written(&textbuf, idx)) > 0; idx++) { in ocs_ioctl()
549 ocs_textbuf_ext_get_buffer(&textbuf, idx), in ocs_ioctl()
550 ocs_textbuf_ext_get_written(&textbuf, idx))) { in ocs_ioctl()
557 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
564 ocs_textbuf_t textbuf; in ocs_ioctl() local
575 if (ocs_textbuf_alloc(ocs, &textbuf, req->value_length)) { in ocs_ioctl()
580 ocs_mgmt_get(ocs, name, &textbuf); in ocs_ioctl()
582 if (ocs_textbuf_get_written(&textbuf)) { in ocs_ioctl()
584 ocs_textbuf_get_buffer(&textbuf), in ocs_ioctl()
585 ocs_textbuf_get_written(&textbuf))) { in ocs_ioctl()
589 req->value_length = ocs_textbuf_get_written(&textbuf); in ocs_ioctl()
591 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()