Lines Matching refs:textbuf
401 ocs_textbuf_t textbuf; in ocs_ioctl() local
405 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
425 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
449 if (ocs_ddump(ocs, &textbuf, flags, req->args.q_entries) != 0) { in ocs_ioctl()
450 ocs_textbuf_reset(&textbuf); in ocs_ioctl()
461 ptbuf = &textbuf; in ocs_ioctl()
485 if (ptbuf == &textbuf) { in ocs_ioctl()
486 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
522 ocs_textbuf_t textbuf; in ocs_ioctl() local
525 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
530 ocs_mgmt_get_list(ocs, &textbuf); in ocs_ioctl()
532 if (ocs_textbuf_get_written(&textbuf)) { in ocs_ioctl()
534 ocs_textbuf_get_buffer(&textbuf), in ocs_ioctl()
535 ocs_textbuf_get_written(&textbuf))) { in ocs_ioctl()
539 req->bytes_written = ocs_textbuf_get_written(&textbuf); in ocs_ioctl()
541 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
548 ocs_textbuf_t textbuf; in ocs_ioctl() local
554 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
559 ocs_mgmt_get_all(ocs, &textbuf); in ocs_ioctl()
561 for (idx = 0; (n = ocs_textbuf_ext_get_written(&textbuf, idx)) > 0; idx++) { in ocs_ioctl()
563 ocs_textbuf_ext_get_buffer(&textbuf, idx), in ocs_ioctl()
564 ocs_textbuf_ext_get_written(&textbuf, idx))) { in ocs_ioctl()
571 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
578 ocs_textbuf_t textbuf; in ocs_ioctl() local
589 if (ocs_textbuf_alloc(ocs, &textbuf, req->value_length)) { in ocs_ioctl()
594 ocs_mgmt_get(ocs, name, &textbuf); in ocs_ioctl()
596 if (ocs_textbuf_get_written(&textbuf)) { in ocs_ioctl()
598 ocs_textbuf_get_buffer(&textbuf), in ocs_ioctl()
599 ocs_textbuf_get_written(&textbuf))) { in ocs_ioctl()
603 req->value_length = ocs_textbuf_get_written(&textbuf); in ocs_ioctl()
605 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()