Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/uts/common/io/ktest/
H A Dktest_selftest.c86 size_t num_bytes = 0; in ktest_st_input_test() local
88 ktest_get_input(ctx, &bytes, &num_bytes); in ktest_st_input_test()
90 if (num_bytes < 4) { in ktest_st_input_test()
91 KT_ERROR(ctx, "expected 4 or more bytes, got %u", num_bytes); in ktest_st_input_test()
96 num_bytes, bytes[0], bytes[1], bytes[2], in ktest_st_input_test()
/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_ring_buff.c65 size_t num_bytes; in ring_buff_create() local
67 num_bytes = sizeof (ring_buff_t); in ring_buff_create()
69 ring_buff_p = (ring_buff_t *)kmem_alloc(num_bytes, KM_SLEEP); in ring_buff_create()
81 num_bytes = num_buffs * sizeof (buff_info_t); in ring_buff_create()
84 (buff_info_t *)kmem_alloc(num_bytes, KM_SLEEP); in ring_buff_create()
H A Ddcam_frame.c168 size_t num_bytes, num_bytes_left; in dcam_frame_rcv_init() local
265 num_bytes = min(num_bytes_left, in dcam_frame_rcv_init()
305 new_ixl_xfbp->size = (uint16_t)num_bytes; in dcam_frame_rcv_init()
314 num_bytes_left -= num_bytes; in dcam_frame_rcv_init()
315 ixl_buff_kaddr += num_bytes; in dcam_frame_rcv_init()
316 ixl_buff_vaddr += num_bytes; in dcam_frame_rcv_init()
H A Ddcam.c80 size_t num_bytes, int start_index, int *end_index);
82 size_t num_bytes, int start_index, int *end_index);
1136 byte_copy_to_user_buff(uchar_t *src_addr_p, struct uio *uio_p, size_t num_bytes, in byte_copy_to_user_buff() argument
1146 while (num_bytes) { in byte_copy_to_user_buff()
1148 len = num_bytes; in byte_copy_to_user_buff()
1156 num_bytes -= len; in byte_copy_to_user_buff()
1170 size_t num_bytes, int start_index, int *end_index_p) in byte_copy_from_user_buff() argument
1179 while (num_bytes) { in byte_copy_from_user_buff()
1180 len = num_bytes; in byte_copy_from_user_buff()
1189 num_bytes -= len; in byte_copy_from_user_buff()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_ktest.c95 size_t num_bytes = 0; in cksum_test_parse_input() local
97 ktest_get_input(ctx, &bytes, &num_bytes); in cksum_test_parse_input()
101 if (nvlist_unpack((char *)bytes, num_bytes, &params, KM_SLEEP) != 0) { in cksum_test_parse_input()
586 size_t num_bytes = 0; in meoi_test_parse_input() local
588 ktest_get_input(ctx, &bytes, &num_bytes); in meoi_test_parse_input()
592 if (nvlist_unpack((char *)bytes, num_bytes, &params, KM_SLEEP) != 0) { in meoi_test_parse_input()
701 size_t num_bytes = 0; in ether_parse_input() local
703 ktest_get_input(ctx, &bytes, &num_bytes); in ether_parse_input()
707 if (nvlist_unpack((char *)bytes, num_bytes, &params, KM_SLEEP) != 0) { in ether_parse_input()
/illumos-gate/usr/src/test/os-tests/tests/mac/
H A Dmac_parsing.c419 split_gen_single(uint_t num_bytes) in split_gen_single() argument
421 uint32_t *splits = calloc(num_bytes, sizeof (uint32_t)); in split_gen_single()
423 for (uint_t i = 0; i < num_bytes; i++) { in split_gen_single()
429 split_gen_random(uint_t num_bytes, uint_t *num_splits) in split_gen_random() argument
436 *num_splits = num_bytes / 5; in split_gen_random()
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_messages.c1464 int num_bytes; in rdr_snd_raw() local
1498 num_bytes = write(fd, bufp, bytes_left); in rdr_snd_raw()
1500 if (num_bytes == -1) { in rdr_snd_raw()
1514 if (num_bytes == 0) { in rdr_snd_raw()
1522 bytes_left -= num_bytes; in rdr_snd_raw()
1523 bufp += num_bytes; in rdr_snd_raw()
1598 int num_bytes; in rdr_rcv_raw() local
1641 num_bytes = read(fd, bufp, bytes_left); in rdr_rcv_raw()
1643 if (num_bytes == -1) { in rdr_rcv_raw()
1657 if (num_bytes == 0) { in rdr_rcv_raw()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice_info.c1536 int num_bytes; in scan_fdi_files() local
1543 num_bytes = len + strlen (dir) + 1 + 1; in scan_fdi_files()
1544 dirname = (char *) malloc (num_bytes); in scan_fdi_files()
1547 num_bytes)); in scan_fdi_files()
1551 snprintf (dirname, num_bytes, "%s/%s", dir, in scan_fdi_files()
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c726 s10_pwrite(sysret_t *rval, int fd, const void *bufferp, size_t num_bytes, in s10_pwrite() argument
737 num_bytes)); in s10_pwrite()
738 return (__systemcall(rval, SYS_pwrite + 1024, fd, bufferp, num_bytes, in s10_pwrite()
749 s10_pwrite64(sysret_t *rval, int fd, const void *bufferp, size32_t num_bytes, in s10_pwrite64() argument
760 num_bytes)); in s10_pwrite64()
762 num_bytes, offset_1, offset_2)); in s10_pwrite64()
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c365 int32_t which_bit, num_bytes; in free() local
428 num_bytes = i >> 3; in free()
437 which_bit = i - (num_bytes << 3); in free()
441 freeblocks += num_bytes; in free()
/illumos-gate/usr/src/uts/sun4v/io/px/
H A Dpx_lib4v.h139 size_t num_bytes, io_sync_direction_t io_sync_direction,
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser.c3457 uint_t num_bytes; in usbser_ischar() local
3462 if (usb_console_read(console_input, &num_bytes) != USB_SUCCESS) in usbser_ischar()
3466 console_input_end = console_input_buf + num_bytes; in usbser_ischar()
3468 return (num_bytes != 0); in usbser_ischar()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/frudata/
H A Dfru_data.c795 int num_bytes; in frudata_read_payload() local
814 num_bytes = fru_get_payload(pkt_acc_hdl, buf, in frudata_read_payload()
816 if (num_bytes != hash_obj->u.pkt_node->paylen) { in frudata_read_payload()
/illumos-gate/usr/src/uts/common/io/usb/clients/hid/
H A Dhid.c3552 uint_t num_bytes; in hid_polled_read() local
3561 &num_bytes) != USB_SUCCESS) { in hid_polled_read()
3576 return (num_bytes); in hid_polled_read()