Home
last modified time | relevance | path

Searched refs:rsize (Results 1 – 25 of 128) sorted by relevance

123456

/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_ring_buffer_util.c67 unsigned int rsize; /* real size */ in dapls_rbuf_alloc() local
77 rsize = 1; in dapls_rbuf_alloc()
78 while ((DAT_COUNT)rsize < size) { in dapls_rbuf_alloc()
79 rsize <<= 1; in dapls_rbuf_alloc()
84 rbuf->lim = rsize - 1; in dapls_rbuf_alloc()
121 int rsize; /* real size */ in dapls_rbuf_realloc() local
133 rsize = 1; in dapls_rbuf_realloc()
134 while (rsize < size) { in dapls_rbuf_realloc()
135 rsize <<= 1; in dapls_rbuf_realloc()
139 rsize * sizeof (void *)); in dapls_rbuf_realloc()
[all …]
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dpread.c59 int rsize; local
61 rsize = size;
62 while (rsize > 0) {
65 count = (rsize < BUFSIZE ? rsize : BUFSIZE);
75 rsize -= got;
79 return (size - rsize);
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_door.c71 size_t hdr_size, rsize; in fksmbd_door_dispatch() local
130 rsize = dop_arg.rsize + hdr_size; in fksmbd_door_dispatch()
131 rbuf = umem_alloc(rsize, UMEM_DEFAULT); in fksmbd_door_dispatch()
140 (void) memcpy(rbuf + hdr_size, dop_arg.rbuf, dop_arg.rsize); in fksmbd_door_dispatch()
144 hdr->dh_datalen = dop_arg.rsize; in fksmbd_door_dispatch()
155 da->da_arg.rsize = rsize; in fksmbd_door_dispatch()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_door_encdec.c42 smb_common_encode(void *data, xdrproc_t proc, size_t *rsize) in smb_common_encode() argument
48 if (proc == NULL || data == NULL || rsize == NULL) { in smb_common_encode()
57 *rsize = 0; in smb_common_encode()
62 *rsize = len; in smb_common_encode()
68 *rsize = 0; in smb_common_encode()
96 smb_string_encode(char *s, size_t *rsize) in smb_string_encode() argument
124 if (rsize) in smb_string_encode()
125 *rsize = len; in smb_string_encode()
129 if (rsize) in smb_string_encode()
130 *rsize = 0; in smb_string_encode()
H A Dsmb_doorclnt.c394 if (rc != 0 || door_arg.data_size == 0 || door_arg.rsize == 0) { in smb_door_call_private()
401 da->da_arg.rsize = door_arg.rsize; in smb_door_call_private()
444 da->da_arg.rsize = buflen; in smb_door_encode()
459 uint32_t rsize = da->da_arg.rsize; in smb_door_decode() local
461 if (rbuf == NULL || rsize == 0) { in smb_door_decode()
466 xdrmem_create(&xdrs, rbuf, rsize, XDR_DECODE); in smb_door_decode()
536 (void) munmap(arg->rbuf, arg->rsize); in smb_door_free()
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_as.c107 size_t rsize; in as_add_callback() local
132 rsize = size; in as_add_callback()
933 for (; rsize != 0; rsize -= ssize, raddr += ssize) { in as_fault()
1033 for (; rsize != 0; rsize -= PAGESIZE, raddr += PAGESIZE) { in as_faulta()
1118 for (; rsize != 0; rsize -= ssize, raddr += ssize) { in as_setprot()
1269 for (; rsize != 0; rsize -= ssize, raddr += ssize) { in as_checkprot()
1344 rsize = 0; in as_unmap()
1425 if (rsize) in as_unmap()
2196 for (; rsize != 0; rsize -= ssize, raddr += ssize) { in as_incore()
2939 for (; rsize != 0; rsize -= ssize, raddr += ssize) { in as_setpagesize()
[all …]
/illumos-gate/usr/src/lib/libpicl/
H A Dpicl.c129 dargp->rsize = rsize; in post_req()
168 (void) munmap(darg.rbuf, darg.rsize); in handshake()
192 rbuf, rsize)) == PICL_NORESPONSE) { in trysend_req()
293 (void) munmap(darg.rbuf, darg.rsize); in picl_shutdown()
321 (void) munmap(darg.rbuf, darg.rsize); in picl_wait()
347 (void) munmap(darg.rbuf, darg.rsize); in picl_get_root()
385 (void) munmap(darg.rbuf, darg.rsize); in picl_get_propval()
425 (void) munmap(darg.rbuf, darg.rsize); in picl_get_propval_by_name()
459 (void) munmap(darg.rbuf, darg.rsize); in picl_set_propval()
496 (void) munmap(darg.rbuf, darg.rsize); in picl_set_propval_by_name()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Ddrctl_impl.c95 door_args.rsize = 1; in i_drctl_send()
105 (void *)door_args.rbuf, door_args.rsize); in i_drctl_send()
109 *osize = door_args.rsize; in i_drctl_send()
112 (void *)(door_args.rbuf), door_args.rsize); in i_drctl_send()
120 (void *)(door_args.rbuf), door_args.rsize); in i_drctl_send()
121 kmem_free(door_args.rbuf, door_args.rsize); in i_drctl_send()
H A Ddrctl.c281 int count, size_t *rsize, drctl_status_t status) in drctl_generate_resp() argument
303 *rsize = size; in drctl_generate_resp()
420 count, rsize, DRCTL_STATUS_ALLOW); in drctl_config_common()
431 return (send_message(bufp, size, rbuf, rsize)); in drctl_config_common()
456 *rbuf = drctl_generate_err_resp(inval_msg, rsize); in drctl_config_init()
464 *rbuf = drctl_generate_err_resp(busy_msg, rsize); in drctl_config_init()
483 count, *rbuf, rq_size, *rsize)) != 0) { in drctl_config_init()
485 __func__, (void *)*rbuf, *rsize); in drctl_config_init()
486 kmem_free(*rbuf, *rsize); in drctl_config_init()
487 *rbuf = drctl_generate_err_resp(rsp_msg, rsize); in drctl_config_init()
[all …]
/illumos-gate/usr/src/cmd/ibd_upgrade/
H A Dibd_delete_link.c39 size_t rsize) in ibd_dladm_door_call() argument
50 darg.rsize = rsize; in ibd_dladm_door_call()
65 (void) munmap(darg.rbuf, darg.rsize); in ibd_dladm_door_call()
69 if (darg.rsize != rsize) in ibd_dladm_door_call()
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dbcache.c186 char *buf, size_t *rsize) in write_strategy() argument
210 char *buf, size_t *rsize) in read_strategy() argument
224 if (rsize != NULL) in read_strategy()
225 *rsize = 0; in read_strategy()
348 if ((result == 0) && (rsize != NULL)) in read_strategy()
349 *rsize = size; in read_strategy()
359 char *buf, size_t *rsize) in bcache_strategy() argument
379 rsize)); in bcache_strategy()
418 if (rsize) in bcache_strategy()
419 *rsize = total; in bcache_strategy()
[all …]
H A Dmd.c88 size_t *rsize) in md_strategy() argument
106 if (rsize != 0) in md_strategy()
107 *rsize = size; in md_strategy()
/illumos-gate/usr/src/cmd/isns/isnsadm/
H A Disnsadm.c317 darg.rsize = 0; in handle_association_info()
2623 darg.rsize = 0; in list_node_func()
2744 darg.rsize = 0; in list_dd_func()
2845 darg.rsize = 0; in list_ddset_func()
2854 darg.rsize = 0; in list_ddset_func()
2919 darg.rsize = 0; in create_dd_func()
2985 darg.rsize = 0; in create_ddset_func()
3055 darg.rsize = 0; in modify_dd_func()
3123 darg.rsize = 0; in modify_dd_func()
3192 darg.rsize = 0; in modify_ddset_func()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_doorsvc.c270 (void) memcpy(rbuf + hdr_size, dop_arg.rbuf, dop_arg.rsize); in smbd_door_dispatch()
274 hdr->dh_datalen = dop_arg.rsize; in smbd_door_dispatch()
276 dop_arg.rsize += hdr_size; in smbd_door_dispatch()
534 rsp_arg->rsize = arg->rsize; in smbd_dop_async_response()
536 arg->rsize = 0; in smbd_dop_async_response()
768 &arg->rsize); in smbd_dop_vss_get_count()
812 &arg->rsize); in smbd_dop_vss_get_snapshots()
858 arg->rbuf = smb_string_encode(snapname, &arg->rsize); in smbd_dop_vss_map_gmttoken()
884 arg->rbuf = smb_string_encode(hostname, &arg->rsize); in smbd_dop_ads_find_host()
913 &arg->rsize); in smbd_dop_quota_query()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_kdoor.c255 if (rc != 0 || door_arg.data_size == 0 || door_arg.rsize == 0) in smb_kdoor_upcall_private()
259 da->da_arg.rsize = door_arg.rsize; in smb_kdoor_upcall_private()
302 da->da_arg.rsize = len; in smb_kdoor_encode()
317 uint32_t rsize = da->da_arg.rsize; in smb_kdoor_decode() local
319 if (rbuf == NULL || rsize == 0) { in smb_kdoor_decode()
325 xdrmem_create(&xdrs, rbuf, rsize, XDR_DECODE); in smb_kdoor_decode()
403 kmem_free(arg->rbuf, arg->rsize); in smb_kdoor_free()
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_kdoor.c170 da->da_arg.rsize = len; in smb_kdoor_encode()
185 uint32_t rsize = da->da_arg.rsize; in smb_kdoor_decode() local
187 if (rbuf == NULL || rsize == 0) { in smb_kdoor_decode()
193 xdrmem_create(&xdrs, rbuf, rsize, XDR_DECODE); in smb_kdoor_decode()
271 kmem_free(arg->rbuf, arg->rsize); in smb_kdoor_free()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A D_inline_reloc.h97 elf_reloc_relative(ulong_t rbgn, ulong_t rend, ulong_t rsize, ulong_t base, in elf_reloc_relative() argument
106 rbgn += rsize; in elf_reloc_relative()
126 elf_reloc_relative_count(ulong_t rbgn, ulong_t rcount, ulong_t rsize, in elf_reloc_relative_count() argument
133 rbgn += rsize; in elf_reloc_relative_count()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_debug.c148 tp->rsize = 0; in top_begin_debug()
165 ASSERT(((ul->un_debug & MT_SIZE) == 0) || (tp->rsize <= tp->esize)); in top_end_debug()
169 mtm->mtm_tops->mtm_top_size_rtot[topid] += tp->rsize; in top_end_debug()
171 if (tp->rsize > mtm->mtm_tops->mtm_top_size_max[topid]) in top_end_debug()
172 mtm->mtm_tops->mtm_top_size_max[topid] = tp->rsize; in top_end_debug()
175 tp->rsize; in top_end_debug()
177 if (tp->rsize < mtm->mtm_tops->mtm_top_size_min[topid]) in top_end_debug()
179 tp->rsize; in top_end_debug()
183 (long)tp->rsize, (long)0); in top_end_debug()
221 tp->rsize += sizeof (struct delta); in top_delta_debug()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid_test.c361 door_args.rsize = sizeof (struct mapid_res); in nfs_idmap_str_uid()
413 munmap(door_args.rbuf, door_args.rsize); in nfs_idmap_str_uid()
450 door_args.rsize = sizeof (struct mapid_res); in nfs_idmap_uid_str()
485 munmap(door_args.rbuf, door_args.rsize); in nfs_idmap_uid_str()
535 door_args.rsize = sizeof (struct mapid_res); in nfs_idmap_str_gid()
587 munmap(door_args.rbuf, door_args.rsize); in nfs_idmap_str_gid()
625 door_args.rsize = sizeof (struct mapid_res); in nfs_idmap_gid_str()
660 munmap(door_args.rbuf, door_args.rsize); in nfs_idmap_gid_str()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c107 da.rsize = sizeof (err); in smb_iod_open_door()
149 da.rsize = sizeof (err); in start_iod()
227 da.rsize = sizeof (err); in smb_iod_cl_newvc()
/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm_event.c100 door_arg.rsize = 0; in get_event_service()
123 if (door_arg.rbuf == NULL || door_arg.rsize == 0) { in get_event_service()
130 (void) nvlist_unpack(door_arg.rbuf, door_arg.rsize, in get_event_service()
132 (void) munmap(door_arg.rbuf, door_arg.rsize); in get_event_service()
141 door_arg.rsize = 0; in get_event_service()
/illumos-gate/usr/src/uts/common/os/
H A Dshm.c578 size_t rsize; in shm_dtor() local
604 rsize = ptob(btopr(sp->shm_segsz)); in shm_dtor()
606 sp->shm_perm.ipc_proj->kpj_data.kpd_shmmax -= rsize; in shm_dtor()
853 size_t rsize = ptob(npages); in shmget() local
861 if (rsize == 0 || in shmget()
863 pp->p_task->tk_proj->kpj_rctls, pp, rsize, in shmget()
866 pp->p_zone->zone_rctls, pp, rsize, in shmget()
877 if (anon_resv(rsize) == 0) { in shmget()
895 sp->shm_amp = anonmap_alloc(rsize, rsize, ANON_SLEEP); in shmget()
923 sp->shm_perm.ipc_proj->kpj_rctls, pp, rsize, in shmget()
[all …]
H A Dklpd.c307 da.rsize = sizeof (res); in klpd_do_call()
331 kmem_free(da.rbuf, da.rsize); in klpd_do_call()
893 da.rsize = sizeof (pr); in pfexec_call()
918 if (da.rsize < sizeof (pr) || in pfexec_call()
985 kmem_free(da.rbuf, da.rsize); in pfexec_call()
1039 da.rsize = sizeof (pmem); in get_forced_privs()
1057 if (da.rsize != sizeof (priv_set_t)) in get_forced_privs()
1081 kmem_free(da.rbuf, da.rsize); in get_forced_privs()
1127 da.rsize = sizeof (res); in check_user_privs()
1145 if (da.rsize != sizeof (res)) in check_user_privs()
[all …]
/illumos-gate/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c89 door_args.rsize = sizeof (rbuf); in _m_get_media_info()
163 door_args.rsize = sizeof (rbuf); in _m_get_device_info()
269 door_args.rsize = sizeof (rbuf); in _m_raw_write()
330 door_args.rsize = sizeof (rbuf); in _m_raw_read()
389 door_args.rsize = sizeof (rbuf); in _m_media_format()
433 door_args.rsize = sizeof (rbuf); in _m_get_media_status()
483 door_args.rsize = sizeof (rbuf); in _m_set_media_status()
531 door_args.rsize = sizeof (rbuf); in _m_reassign_block()
617 door_args.rsize = sizeof (rbuf); in _m_check_format_status()
723 door_args.rsize = sizeof (rbuf); in _m_uscsi_cmd()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_door.c216 param.rsize = ndata; in _nscd_doorcall_fd()
238 ndata = param.rsize; in _nscd_doorcall_fd()
262 (void) munmap(dptr, param.rsize); in _nscd_doorcall_fd()
284 param.rsize = *ndata; in send_doorfd()
301 *ndata = param.rsize; in send_doorfd()

123456