Lines Matching refs:textbuf
398 ocs_textbuf_t textbuf; in ocs_ioctl() local
402 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
422 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
446 if (ocs_ddump(ocs, &textbuf, flags, req->args.q_entries) != 0) { in ocs_ioctl()
447 ocs_textbuf_reset(&textbuf); in ocs_ioctl()
458 ptbuf = &textbuf; in ocs_ioctl()
483 if (ptbuf == &textbuf) { in ocs_ioctl()
484 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
520 ocs_textbuf_t textbuf; in ocs_ioctl() local
523 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
528 ocs_mgmt_get_list(ocs, &textbuf); in ocs_ioctl()
530 if (ocs_textbuf_get_written(&textbuf)) { in ocs_ioctl()
532 ocs_textbuf_get_buffer(&textbuf), in ocs_ioctl()
533 ocs_textbuf_get_written(&textbuf))) { in ocs_ioctl()
537 req->bytes_written = ocs_textbuf_get_written(&textbuf); in ocs_ioctl()
539 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()
547 ocs_textbuf_t textbuf; in ocs_ioctl() local
553 if (ocs_textbuf_alloc(ocs, &textbuf, req->user_buffer_len)) { in ocs_ioctl()
558 ocs_mgmt_get_all(ocs, &textbuf); in ocs_ioctl()
560 for (idx = 0; (n = ocs_textbuf_ext_get_written(&textbuf, idx)) > 0; idx++) { in ocs_ioctl()
562 ocs_textbuf_ext_get_buffer(&textbuf, idx), in ocs_ioctl()
563 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()
604 req->value_length = ocs_textbuf_get_written(&textbuf); in ocs_ioctl()
606 ocs_textbuf_free(ocs, &textbuf); in ocs_ioctl()