Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/lib/iconv_modules/common/
H A Dtab_lookup.c45 int idx, data_size; in _icv_iconv_lu() local
80 data_size = st->left_code_size; in _icv_iconv_lu()
81 while ( data_size > 0 ) { in _icv_iconv_lu()
83 data_size--; in _icv_iconv_lu()
110 while ( data_size > 0 ) { in _icv_iconv_lu()
111 *(*outbuf + data_size-- - 1 ) = in _icv_iconv_lu()
133 data_size = st->right_code_size; in _icv_iconv_lu()
134 while ( data_size > 0 ) { in _icv_iconv_lu()
136 data_size--; in _icv_iconv_lu()
164 while ( data_size > 0 ) { in _icv_iconv_lu()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_strcpy_overflow.c27 int data_size; in match_strcpy() local
35 data_size = get_size_from_strlen(data); in match_strcpy()
36 if (!data_size) in match_strcpy()
37 data_size = get_array_size_bytes(data); in match_strcpy()
42 if (data_size && dest_size >= data_size) in match_strcpy()
48 if (data_size) in match_strcpy()
50 fn, data_name, dest_name, data_size, dest_size); in match_strcpy()
H A Dcheck_sprintf_overflow.c28 int data_size; in match_sprintf() local
43 data_size = get_size_from_strlen(data); in match_sprintf()
44 if (!data_size) in match_sprintf()
45 data_size = get_array_size_bytes(data); in match_sprintf()
46 if (dest_size < data_size) in match_sprintf()
48 data_name, data_size, dest_size); in match_sprintf()
H A Dcheck_snprintf_overflow.c30 int data_size; in match_snprintf() local
49 data_size = get_size_from_strlen(data); in match_snprintf()
50 if (!data_size) in match_snprintf()
51 data_size = get_array_size_bytes(data); in match_snprintf()
52 if (limit_size.value < data_size) in match_snprintf()
54 data_name, data_size, sval_to_str(limit_size)); in match_snprintf()
H A Dcheck_cast_assign.c39 int data_size; in match_overflow() local
47 data_size = get_array_size_bytes_min(ptr); in match_overflow()
48 if (data_size <= 0) in match_overflow()
50 if (data_size >= cast_size) in match_overflow()
53 cast_size, data_size); in match_overflow()
H A Dcheck_kmalloc_wrong_size.c35 static void check_size_matches(int data_size, struct expression *size_expr) in check_size_matches() argument
39 if (data_size == 1) /* this is generic a buffer */ in check_size_matches()
44 if (sval_cmp_val(sval, data_size) != 0) in check_size_matches()
45 …sm_warning("double check that we're allocating correct size: %d vs %s", data_size, sval_to_str(sva… in check_size_matches()
/illumos-gate/usr/src/lib/libshare/smb/
H A Dsmb_share_doorclnt.c215 rc = smb_dr_encode_finish(enc_ctx, (unsigned int *)&arg->data_size); in smb_share_list()
226 dec_ctx = smb_dr_decode_start(arg->data_ptr, arg->data_size); in smb_share_list()
259 rc = smb_dr_encode_finish(enc_ctx, (unsigned int *)&arg->data_size); in smb_share_count()
270 dec_ctx = smb_dr_decode_start(arg->data_ptr, arg->data_size); in smb_share_count()
302 rc = smb_dr_encode_finish(enc_ctx, (unsigned int *)&arg->data_size); in smb_share_delete()
313 dec_ctx = smb_dr_decode_start(arg->data_ptr, arg->data_size); in smb_share_delete()
347 rc = smb_dr_encode_finish(enc_ctx, (unsigned int *)&arg->data_size); in smb_share_rename()
358 dec_ctx = smb_dr_decode_start(arg->data_ptr, arg->data_size); in smb_share_rename()
390 rc = smb_dr_encode_finish(enc_ctx, (unsigned int *)&arg->data_size); in smb_share_create()
401 dec_ctx = smb_dr_decode_start(arg->data_ptr, arg->data_size); in smb_share_create()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dwrap_size_limit.c111 OM_uint32 data_size, conflen; local
181 data_size = req_output_size;
183 data_size = (conflen + data_size + 8) & (~(OM_uint32)7);
185 (unsigned int) (data_size + ctx->cksum_size + 14))
/illumos-gate/usr/src/cmd/audio/include/
H A Daudio_encode.h160 int data_size,
167 int data_size,
184 int data_size,
191 int data_size,
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c255 size_t data_size; in process_free() local
269 data_size = size - sizeof (malloc_data_t); in process_free()
279 data_size = size - 2 * sizeof (malloc_data_t); in process_free()
301 data_size = size - 2 * sizeof (malloc_data_t); in process_free()
338 data_size = size - overhead; in process_free()
363 *data_size_arg = data_size; in process_free()
372 *data_size_arg = data_size; in process_free()
/illumos-gate/usr/src/uts/common/io/i40e/core/
H A Di40e_nvm.c944 if (!cmd->data_size) { in i40e_nvmupd_command()
951 if (cmd->data_size >= 4) { in i40e_nvmupd_command()
1429 if ((cmd->data_size < 1) || in i40e_nvmupd_validate_command()
1433 cmd->data_size); in i40e_nvmupd_validate_command()
1544 if (cmd->data_size < aq_desc_len) { in i40e_nvmupd_exec_aq()
1547 cmd->data_size, aq_desc_len); in i40e_nvmupd_exec_aq()
1634 cmd->data_size = new_len; in i40e_nvmupd_get_aq_result()
1637 remainder = cmd->data_size; in i40e_nvmupd_get_aq_result()
1641 len = min(len, cmd->data_size); in i40e_nvmupd_get_aq_result()
1688 if (cmd->data_size > aq_total_len) { in i40e_nvmupd_get_aq_event()
[all …]
/illumos-gate/usr/src/uts/common/fs/doorfs/
H A Ddoor_sys.c541 ct->d_args.data_size = da32.data_size; in door_call()
552 ct->d_args.data_size = 0; in door_call()
888 da32.data_size = ct->d_args.data_size; in door_call()
1323 dr.data_size = datasize; in door_server_dispatch()
1423 ct->d_args.data_size = data_size; in door_return()
2357 if (data_size != 0) { in door_overflow()
2362 len = data_size; in door_overflow()
2766 rlen = data_size; in door_results()
2792 if (data_size != 0 && in door_results()
2794 data_size) != 0) in door_results()
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Dbstream.c196 wav.data_size = CPU_TO_LE32(sz - 44); in wav_write_stream_close()
392 uint32_t data_size; in open_au_read_stream() local
434 data_size = au->au_data_size; in open_au_read_stream()
436 data_size = st.st_size - au->au_offset; in open_au_read_stream()
438 if (data_size == 0) { in open_au_read_stream()
453 h->bstr_private = (void *)data_size; in open_au_read_stream()
473 uint32_t data_size; in open_wav_read_stream() local
505 ((CPU_TO_LE32(wav->data_size) + 44) != st.st_size)) { in open_wav_read_stream()
510 data_size = CPU_TO_LE32(wav->data_size); in open_wav_read_stream()
522 h->bstr_private = (void *)data_size; in open_wav_read_stream()
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxge-queue.c56 if (elem->data_size > data_max_size) in __queue_consume()
60 real_size = elem->data_size + sizeof(xge_queue_item_t); in __queue_consume()
107 elem->data_size); in __queue_consume()
140 int is_critical, const int data_size, void *data) in xge_queue_produce() argument
143 int real_size = data_size + sizeof(xge_queue_item_t); in xge_queue_produce()
220 elem->data_size = data_size; in xge_queue_produce()
226 xge_os_memcpy(xge_queue_item_data(elem), data, data_size); in xge_queue_produce()
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dg721.c589 int data_size, in g721_encode() argument
609 if (data_size == 0) { in g721_encode()
622 if (data_size & 1) { in g721_encode()
625 data_size >>= 1; /* divide to get sample cnt */ in g721_encode()
635 data_size += 1; in g721_encode()
640 out_leng = (data_size & ~0x01); /* clear low order bit */ in g721_encode()
641 for (; cnta < data_size; cnta++) { in g721_encode()
728 int data_size, /* Size in bytes of in_buf. */ in g721_decode() argument
747 *out_size = data_size << 1; in g721_decode()
H A Dg723.c648 int data_size, in g723_encode() argument
667 if (data_size == 0) { in g723_encode()
684 if (data_size & 1) { in g723_encode()
687 data_size >>= 1; in g723_encode()
699 while (data_size--) { in g723_encode()
756 int data_size, /* Size in bytes of in_buf. */ in g723_decode() argument
780 inbuf_end = in_buf + data_size; in g723_decode()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_rts.c88 size_t data_size, header_size; in rts_fill_msg_v6() local
102 data_size = rts_data_msg_size(rtm_addrs, AF_INET6, gc != NULL ? 1 : 0); in rts_fill_msg_v6()
107 bzero(cp, data_size); in rts_fill_msg_v6()
183 rtm->rtm_msglen = (short)(header_size + data_size); in rts_fill_msg_v6()
/illumos-gate/usr/src/lib/efcode/engine/
H A Dpackage.c81 i = max(phandle->data_size[INIT_DATA], MIN_VALUES); in create_ihandle()
103 phandle->data_size[INIT_DATA] = 0; in create_phandle()
104 phandle->data_size[UINIT_DATA] = 0; in create_phandle()
230 n = myself->device->data_size[INIT_DATA]; in finish_device()
908 &phandle->data_size, in dump_device()
909 phandle->data_size[INIT_DATA], in dump_device()
910 phandle->data_size[UINIT_DATA]); in dump_device()
943 ihandle->device->data_size[INIT_DATA], in dump_instance()
944 ihandle->device->data_size[UINIT_DATA]); in dump_instance()
947 if (ihandle->device->data_size[INIT_DATA]) { in dump_instance()
[all …]
H A Dinstance.c44 *offset = ptr = MYSELF->device->data_size[init]; in alloc_instance_data()
45 MYSELF->device->data_size[init] += n; in alloc_instance_data()
/illumos-gate/usr/src/uts/common/sys/
H A Ddoor.h175 size_t data_size; /* Argument/result data size */ member
188 size32_t data_size; /* Argument/result data size */ member
202 size_t data_size; member
217 size32_t data_size; member
/illumos-gate/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c85 door_args.data_size = sizeof (smedia_services_t); in _m_get_media_info()
159 door_args.data_size = sizeof (smedia_services_t); in _m_get_device_info()
265 door_args.data_size = sizeof (reqraw_write); in _m_raw_write()
326 door_args.data_size = sizeof (smedia_services_t); in _m_raw_read()
385 door_args.data_size = sizeof (smedia_services_t); in _m_media_format()
429 door_args.data_size = sizeof (smedia_services_t); in _m_get_media_status()
479 door_args.data_size = sizeof (smedia_services_t); in _m_set_media_status()
527 door_args.data_size = sizeof (smedia_services_t); in _m_reassign_block()
613 door_args.data_size = sizeof (smedia_services_t); in _m_check_format_status()
719 door_args.data_size = sizeof (smedia_services_t); in _m_uscsi_cmd()
[all …]
/illumos-gate/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c121 door_args.data_size = sizeof (smedia_services_t); in is_server_running()
133 door_args.rsize, door_args.data_size, in is_server_running()
175 door_args.data_size = sizeof (smedia_services_t); in is_server_running()
187 door_args.rsize, door_args.data_size, in is_server_running()
410 door_args.data_size = sizeof (smedia_services_t); in get_handle_from_fd()
427 door_args.rsize, door_args.data_size, in get_handle_from_fd()
/illumos-gate/usr/src/uts/sun4v/io/
H A Ddrctl.c653 int flags, int count, void *data, size_t *osize, size_t *data_size) in pack_message() argument
663 *data_size = count * sizeof (drctl_rsrc_t); in pack_message()
669 *data_size = count * sizeof (drctl_rsrc_t); in pack_message()
675 *data_size = sizeof (drctl_rsrc_t) + in pack_message()
684 if (data_size) { in pack_message()
685 *osize = hdr_size + *data_size; in pack_message()
692 bcopy(data, msgp->data, *data_size); in pack_message()
/illumos-gate/usr/src/uts/common/io/xge/hal/include/
H A Dxge-queue.h78 int data_size; member
152 int is_critical, const int data_size, void *data);
/illumos-gate/usr/src/cmd/hal/utils/
H A Dadt_data.c25 get_audit_export_data(DBusConnection *bus, const char *invoked_by_syscon_name, size_t *data_size) in get_audit_export_data() argument
99 *data_size = count; in get_audit_export_data()

1234567