Lines Matching refs:textbuf
396 ocs_textbuf_t textbuf;
400 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) {
420 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) {
444 if (ocs_ddump(ocs, &textbuf, flags, req->args.q_entries) != 0) {
445 ocs_textbuf_reset(&textbuf);
456 ptbuf = &textbuf;
461 /* Process each textbuf segment */
480 if (ptbuf == &textbuf) {
481 ocs_textbuf_free(ocs, &textbuf);
517 ocs_textbuf_t textbuf;
520 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) {
525 ocs_mgmt_get_list(ocs, &textbuf);
527 if (ocs_textbuf_get_written(&textbuf)) {
529 ocs_textbuf_get_buffer(&textbuf),
530 ocs_textbuf_get_written(&textbuf))) {
534 req->bytes_written = ocs_textbuf_get_written(&textbuf);
536 ocs_textbuf_free(ocs, &textbuf);
543 ocs_textbuf_t textbuf;
549 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) {
554 ocs_mgmt_get_all(ocs, &textbuf);
556 for (idx = 0; (n = ocs_textbuf_ext_get_written(&textbuf, idx)) > 0; idx++) {
558 ocs_textbuf_ext_get_buffer(&textbuf, idx),
559 ocs_textbuf_ext_get_written(&textbuf, idx))) {
566 ocs_textbuf_free(ocs, &textbuf);
573 ocs_textbuf_t textbuf;
584 if (ocs_textbuf_alloc(ocs, &textbuf, req->value_length)) {
589 ocs_mgmt_get(ocs, name, &textbuf);
591 if (ocs_textbuf_get_written(&textbuf)) {
593 ocs_textbuf_get_buffer(&textbuf),
594 ocs_textbuf_get_written(&textbuf))) {
598 req->value_length = ocs_textbuf_get_written(&textbuf);
600 ocs_textbuf_free(ocs, &textbuf);