Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_ring_buffer_util.c85 rbuf->head = 0; in dapls_rbuf_alloc()
86 rbuf->tail = 0; in dapls_rbuf_alloc()
127 if (rbuf->head != rbuf->tail) { in dapls_rbuf_realloc()
138 rbuf->base = (void *)dapl_os_realloc(rbuf->base, in dapls_rbuf_realloc()
178 dapl_os_free(rbuf->base, (rbuf->lim + 1) * sizeof (void *)); in dapls_rbuf_destroy()
180 rbuf->lim = 0; in dapls_rbuf_destroy()
208 pos = rbuf->head; in dapls_rbuf_add()
209 if (((pos + 1) & rbuf->lim) != rbuf->tail) { in dapls_rbuf_add()
211 rbuf->head = (pos + 1) & rbuf->lim; in dapls_rbuf_add()
242 if (rbuf->head != rbuf->tail) { in dapls_rbuf_remove()
[all …]
/illumos-gate/usr/src/lib/libpicl/
H A Dpicl.c128 dargp->rbuf = rbuf; in post_req()
143 if (dargp->rbuf != rbuf) in post_req()
167 if (darg.rbuf != (char *)&outargs) in handshake()
292 if (darg.rbuf != (char *)&outargs) in picl_shutdown()
318 ret = (picl_service_t *)darg.rbuf; in picl_wait()
320 if (darg.rbuf != (char *)&outargs) in picl_wait()
384 if (darg.rbuf != (char *)outargs) in picl_get_propval()
424 if (darg.rbuf != (char *)outargs) in picl_get_propval_by_name()
806 if (darg.rbuf != (char *)&out) in picl_get_node_by_path()
841 if (darg.rbuf != (char *)&out) in picl_find_node()
[all …]
/illumos-gate/usr/src/lib/libilb/common/
H A Dilb_hc.c107 ilb_comm_t *ic, *rbuf; in ilb_get_hc_info() local
127 if (rbuf->ic_cmd != ILBD_CMD_OK) { in ilb_get_hc_info()
135 free(rbuf); in ilb_get_hc_info()
148 ilb_comm_t ic, *rbuf; in ilb_walk_hc() local
160 if (rbuf->ic_cmd != ILBD_CMD_OK) { in ilb_walk_hc()
183 free(rbuf); in ilb_walk_hc()
211 *rbuf = tmp_rbuf; in ilb_get_hc_srvs()
218 *rbuf = NULL; in ilb_get_hc_srvs()
229 ilb_comm_t *rbuf; in ilb_walk_hc_srvs() local
242 free(rbuf); in ilb_walk_hc_srvs()
[all …]
H A Dilb_nat.c97 ilb_comm_t *req, *rbuf; in ilb_show_info() local
124 if ((rbuf = malloc(rbufsz)) == NULL) { in ilb_show_info()
139 rc = i_ilb_do_comm(h, req, reqsz, rbuf, &tmp_rbufsz); in ilb_show_info()
142 if (rbuf->ic_cmd != ILBD_CMD_OK) { in ilb_show_info()
143 rc = *(ilb_status_t *)&rbuf->ic_data; in ilb_show_info()
147 tmp_si = (ilb_show_info_t *)&rbuf->ic_data; in ilb_show_info()
161 } while (!(rbuf->ic_flags & ILB_COMM_END)); in ilb_show_info()
166 if (rbuf->ic_flags & ILB_COMM_END) { in ilb_show_info()
173 rc = i_ilb_do_comm(h, req, reqsz, rbuf, &tmp_rbufsz); in ilb_show_info()
178 free(rbuf); in ilb_show_info()
H A Dilb_sg.c163 *rbuf = tmp_rbuf; in i_ilb_retrieve_sg_names()
169 *rbuf = NULL; in i_ilb_retrieve_sg_names()
186 *rbuf = NULL; in i_ilb_retrieve_sg_hosts()
196 *rbuf = tmp_rbuf; in i_ilb_retrieve_sg_hosts()
204 *rbuf = NULL; in i_ilb_retrieve_sg_hosts()
227 ilb_comm_t *rbuf; in i_ilb_walk_one_sg() local
265 free(rbuf); in i_ilb_walk_one_sg()
279 ilb_comm_t *rbuf; in i_walk_sgs() local
306 free(rbuf); in i_walk_sgs()
400 ilb_comm_t *rbuf; in i_ilb_fillin_srvdata() local
[all …]
H A Dilb_rules.c217 *rbuf = tmp_rbuf; in i_ilb_retrieve_rule_names()
223 *rbuf = NULL; in i_ilb_retrieve_rule_names()
234 ilb_comm_t *ic, *rbuf; in i_ilb_walk_one_rule() local
241 if ((rbuf = malloc(rbufsz)) == NULL) { in i_ilb_walk_one_rule()
250 if (rbuf->ic_cmd != ILBD_CMD_OK) { in i_ilb_walk_one_rule()
251 rc = *(ilb_status_t *)&rbuf->ic_data; in i_ilb_walk_one_rule()
254 rl = (ilb_rule_info_t *)&rbuf->ic_data; in i_ilb_walk_one_rule()
285 free(rbuf); in i_ilb_walk_one_rule()
295 ilb_comm_t *rbuf; in ilb_walk_rules() local
309 names = (ilbd_namelist_t *)&rbuf->ic_data; in ilb_walk_rules()
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/include/
H A Ddapl_ring_buffer_util.h54 DAPL_RING_BUFFER *rbuf,
58 DAPL_RING_BUFFER *rbuf,
62 DAPL_RING_BUFFER *rbuf);
65 DAPL_RING_BUFFER *rbuf,
69 DAPL_RING_BUFFER *rbuf);
72 DAPL_RING_BUFFER *rbuf);
78 #define dapls_rbuf_empty(rbuf) ((rbuf)->head == (rbuf)->tail) argument
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_door.c68 char *rbuf = NULL; in fksmbd_door_dispatch() local
131 rbuf = umem_alloc(rsize, UMEM_DEFAULT); in fksmbd_door_dispatch()
132 if (rbuf == NULL) { in fksmbd_door_dispatch()
139 if (dop_arg.rbuf != NULL) { in fksmbd_door_dispatch()
140 (void) memcpy(rbuf + hdr_size, dop_arg.rbuf, dop_arg.rsize); in fksmbd_door_dispatch()
141 free(dop_arg.rbuf); in fksmbd_door_dispatch()
145 (void) smb_doorhdr_encode(hdr, (uint8_t *)rbuf, hdr_size); in fksmbd_door_dispatch()
154 da->da_arg.rbuf = rbuf; in fksmbd_door_dispatch()
/illumos-gate/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c88 door_args.rbuf = rbuf; in _m_get_media_info()
162 door_args.rbuf = rbuf; in _m_get_device_info()
268 door_args.rbuf = rbuf; in _m_raw_write()
329 door_args.rbuf = rbuf; in _m_raw_read()
388 door_args.rbuf = rbuf; in _m_media_format()
432 door_args.rbuf = rbuf; in _m_get_media_status()
482 door_args.rbuf = rbuf; in _m_set_media_status()
530 door_args.rbuf = rbuf; in _m_reassign_block()
616 door_args.rbuf = rbuf; in _m_check_format_status()
722 door_args.rbuf = rbuf; in _m_uscsi_cmd()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_nat.c100 ilbd_reply_ok(rbuf, rbufsz); in ilbd_show_nat()
110 ilbd_reply_ok(rbuf, rbufsz); in ilbd_show_nat()
111 reply = (ilb_show_info_t *)&((ilb_comm_t *)rbuf)->ic_data; in ilbd_show_nat()
130 ilbd_reply_err(rbuf, rbufsz, ILB_STATUS_ENOMEM); in ilbd_show_nat()
139 ilbd_reply_err(rbuf, rbufsz, ret); in ilbd_show_nat()
158 ((ilb_comm_t *)rbuf)->ic_flags = 0; in ilbd_show_nat()
221 ilbd_reply_ok(rbuf, rbufsz); in ilbd_show_sticky()
231 ilbd_reply_ok(rbuf, rbufsz); in ilbd_show_sticky()
251 ilbd_reply_err(rbuf, rbufsz, ILB_STATUS_ENOMEM); in ilbd_show_sticky()
260 ilbd_reply_err(rbuf, rbufsz, ret); in ilbd_show_sticky()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_doorsvc.c215 char *rbuf = NULL; in smbd_door_dispatch() local
270 (void) memcpy(rbuf + hdr_size, dop_arg.rbuf, dop_arg.rsize); in smbd_door_dispatch()
271 free(dop_arg.rbuf); in smbd_door_dispatch()
400 free(arg->rbuf); in smbd_door_dispatch_op()
401 arg->rbuf = NULL; in smbd_door_dispatch_op()
533 rsp_arg->rbuf = arg->rbuf; in smbd_dop_async_response()
535 arg->rbuf = NULL; in smbd_dop_async_response()
647 if (arg->rbuf == NULL) in smbd_dop_lookup_name()
709 if (arg->rbuf == NULL) in smbd_dop_lookup_sid()
731 if (arg->rbuf == NULL) in smbd_dop_join()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Drdma_subr.c399 rdma_buf_t rbuf = {0}; in rdma_clnt_postrecv() local
401 rbuf.type = RECV_BUFFER; in rdma_clnt_postrecv()
402 if (RDMA_BUF_ALLOC(conn, &rbuf)) { in rdma_clnt_postrecv()
406 clist_add(&cl, 0, rbuf.len, &rbuf.handle, rbuf.addr, in rdma_clnt_postrecv()
425 rdma_buf_t rbuf = {0}; in rdma_svc_postrecv() local
427 rbuf.type = RECV_BUFFER; in rdma_svc_postrecv()
428 if (RDMA_BUF_ALLOC(conn, &rbuf)) { in rdma_svc_postrecv()
431 clist_add(&cl, 0, rbuf.len, &rbuf.handle, rbuf.addr, in rdma_svc_postrecv()
448 if (!rbuf || rbuf->addr == NULL) { in rdma_buf_free()
451 RDMA_BUF_FREE(conn, rbuf); in rdma_buf_free()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_authenticate.c122 void *rbuf = NULL; in smb_auth_do_oldreq() local
189 if (rbuf != NULL) in smb_auth_do_oldreq()
190 kmem_free(rbuf, rlen); in smb_auth_do_oldreq()
231 void *rbuf = NULL; in smb_authenticate_ext() local
380 if (rbuf != NULL) in smb_authenticate_ext()
394 void *rbuf = NULL; in smb_auth_do_clinfo() local
409 if (rbuf != NULL) { in smb_auth_do_clinfo()
411 rbuf = NULL; in smb_auth_do_clinfo()
429 void *rbuf = NULL; in smb_auth_get_token() local
474 rbuf = NULL; in smb_auth_get_token()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Ddrctl_impl.c94 door_args.rbuf = NULL; in i_drctl_send()
101 if (door_args.rbuf == NULL) in i_drctl_send()
105 (void *)door_args.rbuf, door_args.rsize); in i_drctl_send()
108 *obufp = door_args.rbuf; 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()
/illumos-gate/usr/src/cmd/isns/isnsadm/
H A Disnsadm.c316 darg.rbuf = NULL; in handle_association_info()
2622 darg.rbuf = NULL; in list_node_func()
2743 darg.rbuf = NULL; in list_dd_func()
2844 darg.rbuf = NULL; in list_ddset_func()
2853 darg.rbuf = NULL; in list_ddset_func()
2918 darg.rbuf = NULL; in create_dd_func()
2984 darg.rbuf = NULL; in create_ddset_func()
3054 darg.rbuf = NULL; in modify_dd_func()
3085 ((const char *)darg.rbuf, xmlStrlen((xmlChar *)darg.rbuf), in modify_dd_func()
3122 darg.rbuf = NULL; in modify_dd_func()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dquit.c299 if (rbuf == NULL) { in writeback()
302 PRIV(rbuf = fdopen(fd, "w+")); in writeback()
303 if (rbuf == NULL) { in writeback()
315 putc(c, rbuf); in writeback()
325 putc(c, rbuf); in writeback()
329 fseek(rbuf, 0L, 0); in writeback()
339 if (rbuf != NULL) in writeback()
340 while ((c = getc(rbuf)) != EOF) in writeback()
355 if (rbuf != NULL) in writeback()
380 if (rbuf) { in writeback()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/modules/sata/
H A Dsata.c55 sata_trace_rbuf_t rbuf; in sata_dmsg_walk_i() local
63 if (mdb_vread(&rbuf, sizeof (sata_trace_rbuf_t), rbuf_addr) in sata_dmsg_walk_i()
70 wsp->walk_addr = (uintptr_t)(sata_trace_dmsg_t *)rbuf.dmsgh; in sata_dmsg_walk_i()
210 sata_trace_rbuf_t rbuf; in sata_rbuf_dump() local
235 if (mdb_vread(&rbuf, sizeof (rbuf), addr) != sizeof (rbuf)) { in sata_rbuf_dump()
240 if (rbuf.dmsgh == NULL) { in sata_rbuf_dump()
245 rval = sata_dmsg_dump((sata_trace_dmsg_t *)rbuf.dmsgh, in sata_rbuf_dump()
/illumos-gate/usr/src/cmd/ibd_upgrade/
H A Dibd_delete_link.c38 ibd_dladm_door_call(dladm_handle_t handle, void *arg, size_t asize, void *rbuf, in ibd_dladm_door_call() argument
49 darg.rbuf = rbuf; in ibd_dladm_door_call()
59 if (darg.rbuf != rbuf) { in ibd_dladm_door_call()
65 (void) munmap(darg.rbuf, darg.rsize); in ibd_dladm_door_call()
72 if ((((dlmgmt_retval_t *)rbuf)->lr_err) == 0) in ibd_dladm_door_call()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_temp.c478 struct rbuf { struct
550 rbuf = &KILLrbuf; in KILLreg()
561 rblock = rbuf->rb_next; in KILLreg()
588 rbuf = &putrbuf; in putreg()
647 rnext = rbuf->rb_next; in getREG()
676 rbuf = &YANKrbuf; in YANKreg()
680 rbufcp = &rbuf->rb_text[sizeof (rbuf->rb_text) - rnleft]; in YANKreg()
716 struct rbuf *rp = rbuf; in YANKline()
759 rbuf = &regrbuf; in regbuf()
796 rbuf = &putrbuf; in shownam()
[all …]
/illumos-gate/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c90 char rbuf[sizeof (smedia_services_t) + sizeof (door_desc_t)]; in is_server_running() local
118 DPRINTF1("rbuf address=%p\n", rbuf); in is_server_running()
124 door_args.rbuf = rbuf; in is_server_running()
125 door_args.rsize = sizeof (rbuf); in is_server_running()
172 DPRINTF1("rbuf address=%p\n", rbuf); in is_server_running()
178 door_args.rbuf = rbuf; in is_server_running()
179 door_args.rsize = sizeof (rbuf); in is_server_running()
349 char rbuf[sizeof (smedia_services_t) + sizeof (door_desc_t)]; in get_handle_from_fd() local
405 DPRINTF1("rbuf address=%p\n", rbuf); in get_handle_from_fd()
413 door_args.rbuf = rbuf; in get_handle_from_fd()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldapmodify.c301 start = rbuf; in process()
302 saved_rbuf = strdup( rbuf ); in process()
354 free( rbuf ); in process()
440 process_ldif_rec( char *rbuf )
535 if ( *rbuf == '\0' ) {
796 line = rbuf;
799 while ( rc == 0 && rbuf != NULL && *rbuf != '\0' ) {
802 rbuf = NULL;
806 rbuf = p;
810 rbuf = p;
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_kdoor.c169 da->da_arg.rbuf = buf; in smb_kdoor_encode()
184 char *rbuf = da->da_arg.rbuf; 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()
270 if (arg->rbuf != NULL && arg->rbuf != arg->data_ptr) in smb_kdoor_free()
271 kmem_free(arg->rbuf, arg->rsize); in smb_kdoor_free()
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c174 char *rbuf = NULL; in do_write() local
177 rbuf = (char *)calloc(1, bsize); in do_write()
178 if (buf == NULL || rbuf == NULL) { in do_write()
201 if (read(fd, rbuf, bsize) < bsize) { in do_write()
206 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
221 (void) free(rbuf); in do_write()
/illumos-gate/usr/src/test/smbclient-tests/cmd/file_trunc/
H A Dfile_trunc.c171 char *rbuf = NULL; in do_write() local
174 rbuf = (char *)calloc(1, bsize); in do_write()
175 if (buf == NULL || rbuf == NULL) { in do_write()
198 if (read(fd, rbuf, bsize) < bsize) { in do_write()
203 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
219 (void) free(rbuf); in do_write()
/illumos-gate/usr/src/uts/intel/io/pciex/
H A Dpcie_acpi.c144 UINT32 *rbuf; in pcie_acpi_eval_osc() local
196 rbuf = (UINT32 *)((ACPI_OBJECT *)rb.Pointer)->Buffer.Pointer; in pcie_acpi_eval_osc()
199 if (rbuf[0] & OSC_STATUS_ERRORS) { in pcie_acpi_eval_osc()
200 PCIE_DBG("_OSC method failed (STATUS %d)\n", rbuf[0]); in pcie_acpi_eval_osc()
205 *osc_flags = rbuf[2]; in pcie_acpi_eval_osc()
209 (void *)dip, rbuf[0], rbuf[1], tmp_ctrl, rbuf[2]); in pcie_acpi_eval_osc()

123456