Lines Matching +full:0 +full:pointer

19  * Returns pointer to buffer
28 if (buf_len > 0 && buf_len < 3) { in hl_format_as_binary()
29 *wrptr = '\0'; in hl_format_as_binary()
33 wrptr[0] = '0'; in hl_format_as_binary()
36 /* Remove 3 characters from length for '0b' and '\0' termination */ in hl_format_as_binary()
39 for (i = 0; i < sizeof(n) * BITS_PER_BYTE && buf_len; ++i, n <<= 1) { in hl_format_as_binary()
47 *wrptr = '0' + bit; in hl_format_as_binary()
52 *wrptr = '\0'; in hl_format_as_binary()
59 * @buf: destination buffer double pointer
60 * @size: pointer to the size container
63 * Returns 0 on success or error code on failure.
73 return 0; in resize_to_fit()
90 * @buf: buffer double pointer, to be written to and resized, must be either
101 * Returns 0 on success or error code on failure
112 if (*buf == NULL && (*size != 0 || *offset != 0)) in hl_snprintf_resize()
120 if (rc < 0) in hl_snprintf_resize()
122 else if (rc > 0) { in hl_snprintf_resize()
132 return 0; in hl_snprintf_resize()
157 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
158 * @size: pointer to the size container
159 * @offset: pointer to the offset container
163 * Returns 0 on success or error code on failure
175 * @hdev: pointer to the device
198 * @hdev: pointer to the device
260 * @hdev: pointer to the device
279 for (i = 0; i < sds->props[SP_SYNC_OBJ_AMOUNT]; ++i) in hl_state_dump_read_sync_objects()
299 * @hdev: pointer to the device
301 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
302 * @size: pointer to the size container
303 * @offset: pointer to the offset container
306 * Returns 0 on success or error code on failure
316 int rc = 0, i; in hl_state_dump_print_syncs_single_block()
332 for (i = 0; i < sds->props[SP_SYNC_OBJ_AMOUNT]; ++i) { in hl_state_dump_print_syncs_single_block()
386 * @hdev: pointer to the device
387 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
388 * @size: pointer to the size container
389 * @offset: pointer to the offset container
391 * Returns 0 on success or error code on failure
401 int rc = 0; in hl_state_dump_print_syncs()
416 for (index = 0; sds->sync_namager_names[index]; ++index) { in hl_state_dump_print_syncs()
423 for (index = 0; index < sds->props[SP_NUM_CORES]; ++index) { in hl_state_dump_print_syncs()
442 * @hdev: pointer to the device
463 for (i = 0; i < sds->props[SP_MONITORS_AMOUNT]; ++i) { in hl_state_dump_alloc_read_sm_block_monitors()
502 * @hdev: pointer to the device
504 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
505 * @size: pointer to the size container
506 * @offset: pointer to the offset container
508 * Returns 0 on success or error code on failure
517 int rc = 0, i; in hl_state_dump_print_monitors_single_block()
533 for (i = 0; i < sds->props[SP_MONITORS_AMOUNT]; ++i) { in hl_state_dump_print_monitors_single_block()
554 * @hdev: pointer to the device
555 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
556 * @size: pointer to the size container
557 * @offset: pointer to the offset container
559 * Returns 0 on success or error code on failure
567 int rc = 0; in hl_state_dump_print_monitors()
575 for (index = 0; sds->sync_namager_names[index]; ++index) { in hl_state_dump_print_monitors()
582 for (index = 0; index < sds->props[SP_NUM_CORES]; ++index) { in hl_state_dump_print_monitors()
597 * @hdev: pointer to the device
599 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
600 * @size: pointer to the size container
601 * @offset: pointer to the offset container
609 int rc = 0, i, n_fences; in hl_state_dump_print_engine_fences()
631 for (i = 0; i < n_fences; ++i) { in hl_state_dump_print_engine_fences()
648 * @hdev: pointer to the device
649 * @buf: destination buffer double pointer to be used with hl_snprintf_resize
650 * @size: pointer to the size container
651 * @offset: pointer to the offset container
656 int rc = 0; in hl_state_dump_print_fences()
680 * @hdev: pointer to device structure
685 size_t offset = 0, size = 0; in hl_state_dump()
714 return 0; in hl_state_dump()