/freebsd/sys/nlm/ |
H A D | nlm_prot_xdr.c | 12 xdr_nlm_stats(XDR *xdrs, nlm_stats *objp) in xdr_nlm_stats() argument 15 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_nlm_stats() 21 xdr_nlm_holder(XDR *xdrs, nlm_holder *objp) in xdr_nlm_holder() argument 24 if (!xdr_bool(xdrs, &objp->exclusive)) in xdr_nlm_holder() 26 if (!xdr_int(xdrs, &objp->svid)) in xdr_nlm_holder() 28 if (!xdr_netobj(xdrs, &objp->oh)) in xdr_nlm_holder() 30 if (!xdr_u_int(xdrs, &objp->l_offset)) in xdr_nlm_holder() 32 if (!xdr_u_int(xdrs, &objp->l_len)) in xdr_nlm_holder() 38 xdr_nlm_testrply(XDR *xdrs, nlm_testrply *objp) in xdr_nlm_testrply() argument 41 if (!xdr_nlm_stats(xdrs, &objp->stat)) in xdr_nlm_testrply() [all …]
|
H A D | sm_inter_xdr.c | 9 xdr_sm_name(XDR *xdrs, sm_name *objp) in xdr_sm_name() argument 12 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) in xdr_sm_name() 18 xdr_my_id(XDR *xdrs, my_id *objp) in xdr_my_id() argument 21 if (!xdr_string(xdrs, &objp->my_name, SM_MAXSTRLEN)) in xdr_my_id() 23 if (!xdr_int(xdrs, &objp->my_prog)) in xdr_my_id() 25 if (!xdr_int(xdrs, &objp->my_vers)) in xdr_my_id() 27 if (!xdr_int(xdrs, &objp->my_proc)) in xdr_my_id() 33 xdr_mon_id(XDR *xdrs, mon_id *objp) in xdr_mon_id() argument 36 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) in xdr_mon_id() 38 if (!xdr_my_id(xdrs, &objp->my_id)) in xdr_mon_id() [all …]
|
/freebsd/lib/libc/rpc/ |
H A D | rpcb_st_xdr.c | 50 xdr_rpcbs_addrlist(XDR *xdrs, rpcbs_addrlist *objp) in xdr_rpcbs_addrlist() argument 54 if (!xdr_rpcprog(xdrs, &objp->prog)) { in xdr_rpcbs_addrlist() 57 if (!xdr_rpcvers(xdrs, &objp->vers)) { in xdr_rpcbs_addrlist() 60 if (!xdr_int(xdrs, &objp->success)) { in xdr_rpcbs_addrlist() 63 if (!xdr_int(xdrs, &objp->failure)) { in xdr_rpcbs_addrlist() 66 if (!xdr_string(xdrs, &objp->netid, RPC_MAXDATASIZE)) { in xdr_rpcbs_addrlist() 70 pnext = &objp->next; in xdr_rpcbs_addrlist() 83 xdr_rpcbs_rmtcalllist(XDR *xdrs, rpcbs_rmtcalllist *objp) in xdr_rpcbs_rmtcalllist() argument 88 pnext = &objp->next; in xdr_rpcbs_rmtcalllist() 92 if (!xdr_rpcprog(xdrs, &objp->prog)) { in xdr_rpcbs_rmtcalllist() [all …]
|
H A D | key_prot_xdr.c | 47 xdr_keystatus(register XDR *xdrs, keystatus *objp) in xdr_keystatus() argument 50 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_keystatus() 56 xdr_keybuf(register XDR *xdrs, keybuf objp) in xdr_keybuf() argument 59 if (!xdr_opaque(xdrs, objp, HEXKEYBYTES)) in xdr_keybuf() 65 xdr_netnamestr(register XDR *xdrs, netnamestr *objp) in xdr_netnamestr() argument 68 if (!xdr_string(xdrs, objp, MAXNETNAMELEN)) in xdr_netnamestr() 74 xdr_cryptkeyarg(register XDR *xdrs, cryptkeyarg *objp) in xdr_cryptkeyarg() argument 77 if (!xdr_netnamestr(xdrs, &objp->remotename)) in xdr_cryptkeyarg() 79 if (!xdr_des_block(xdrs, &objp->deskey)) in xdr_cryptkeyarg() 85 xdr_cryptkeyarg2(register XDR *xdrs, cryptkeyarg2 *objp) in xdr_cryptkeyarg2() argument [all …]
|
H A D | rpcb_prot.c | 52 xdr_rpcb(XDR *xdrs, RPCB *objp) in xdr_rpcb() argument 54 if (!xdr_rpcprog(xdrs, &objp->r_prog)) { in xdr_rpcb() 57 if (!xdr_rpcvers(xdrs, &objp->r_vers)) { in xdr_rpcb() 60 if (!xdr_string(xdrs, &objp->r_netid, RPC_MAXDATASIZE)) { in xdr_rpcb() 63 if (!xdr_string(xdrs, &objp->r_addr, RPC_MAXDATASIZE)) { in xdr_rpcb() 66 if (!xdr_string(xdrs, &objp->r_owner, RPC_MAXDATASIZE)) { in xdr_rpcb() 158 xdr_rpcb_entry(XDR *xdrs, rpcb_entry *objp) in xdr_rpcb_entry() argument 160 if (!xdr_string(xdrs, &objp->r_maddr, RPC_MAXDATASIZE)) { in xdr_rpcb_entry() 163 if (!xdr_string(xdrs, &objp->r_nc_netid, RPC_MAXDATASIZE)) { in xdr_rpcb_entry() 166 if (!xdr_u_int32_t(xdrs, &objp->r_nc_semantics)) { in xdr_rpcb_entry() [all …]
|
/freebsd/usr.sbin/rpc.ypxfrd/ |
H A D | ypxfrd_server.c | 55 xdr_my_xfr(register XDR *xdrs, xfr *objp) in xdr_my_xfr() argument 60 if ((objp->xfr_u.xfrblock_buf.xfrblock_buf_len = in xdr_my_xfr() 62 objp->ok = TRUE; in xdr_my_xfr() 63 objp->xfr_u.xfrblock_buf.xfrblock_buf_val = (char *)&buf; in xdr_my_xfr() 65 objp->ok = FALSE; in xdr_my_xfr() 66 objp->xfr_u.xfrstat = XFR_READ_ERR; in xdr_my_xfr() 71 if (!xdr_xfr(xdrs, objp)) in xdr_my_xfr() 73 if (objp->ok == FALSE) in xdr_my_xfr() 75 if (objp->xfr_u.xfrblock_buf.xfrblock_buf_len < XFRBLOCKSIZE) { in xdr_my_xfr() 76 objp->ok = FALSE; in xdr_my_xfr() [all …]
|
/freebsd/sys/rpc/ |
H A D | rpcb_prot.c | 65 xdr_rpcb(XDR *xdrs, RPCB *objp) in xdr_rpcb() argument 67 if (!xdr_uint32_t(xdrs, &objp->r_prog)) { in xdr_rpcb() 70 if (!xdr_uint32_t(xdrs, &objp->r_vers)) { in xdr_rpcb() 73 if (!xdr_string(xdrs, &objp->r_netid, RPC_MAXDATASIZE)) { in xdr_rpcb() 76 if (!xdr_string(xdrs, &objp->r_addr, RPC_MAXDATASIZE)) { in xdr_rpcb() 79 if (!xdr_string(xdrs, &objp->r_owner, RPC_MAXDATASIZE)) { in xdr_rpcb() 172 xdr_rpcb_entry(XDR *xdrs, rpcb_entry *objp) in xdr_rpcb_entry() argument 174 if (!xdr_string(xdrs, &objp->r_maddr, RPC_MAXDATASIZE)) { in xdr_rpcb_entry() 177 if (!xdr_string(xdrs, &objp->r_nc_netid, RPC_MAXDATASIZE)) { in xdr_rpcb_entry() 180 if (!xdr_uint32_t(xdrs, &objp->r_nc_semantics)) { in xdr_rpcb_entry() [all …]
|
H A D | rpcb_clnt.c | 1275 xdr_netbuf(XDR *xdrs, struct netbuf *objp) 1280 if (!xdr_uint32_t(xdrs, (uint32_t *) &objp->maxlen)) { 1283 pp = &objp->buf; 1285 if (objp->maxlen > RPC_MAXDATASIZE) { 1290 (u_int *)&(objp->len), objp->maxlen);
|
/freebsd/lib/libc/yp/ |
H A D | xdryp.c | 52 xdr_datum(XDR *xdrs, datum *objp) in xdr_datum() argument 54 if (!xdr_bytes(xdrs, (char **)&objp->dptr, (u_int *)&objp->dsize, YPMAXRECORD)) { in xdr_datum() 61 xdr_ypresp_all_seq(XDR *xdrs, u_long *objp) in xdr_ypresp_all_seq() argument 72 *objp = YP_YPERR; in xdr_ypresp_all_seq() 77 *objp = YP_NOMORE; in xdr_ypresp_all_seq() 86 *objp = YP_YPERR; in xdr_ypresp_all_seq() 96 *objp = YP_YPERR; in xdr_ypresp_all_seq() 108 *objp = status; in xdr_ypresp_all_seq() 116 *objp = YP_NOMORE; in xdr_ypresp_all_seq() 120 *objp = status; in xdr_ypresp_all_seq()
|
/freebsd/share/examples/ses/srcs/ |
H A D | getobjmap.c | 49 ses_object *objp; in main() local 68 objp = calloc(nobj, sizeof (ses_object)); in main() 69 if (objp == NULL) { in main() 74 if (ioctl(fd, SESIOC_GETOBJMAP, (caddr_t) objp) < 0) { in main() 81 objp[i].obj_id, geteltnm((int)objp[i].object_type)); in main() 83 free(objp); in main()
|
H A D | getencstat.c | 51 encioc_element_t *objp; in main() local 132 objp = calloc(nobj, sizeof (encioc_element_t)); in main() 133 if (objp == NULL) { in main() 138 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) { in main() 144 ob.elm_idx = objp[i].elm_idx; in main() 151 objd.elm_idx = objp[i].elm_idx; in main() 165 objdn.elm_idx = objp[i].elm_idx; in main() 179 geteltnm(objp[i].elm_type)); in main() 181 stat2ascii(objp[i].elm_type, ob.cstat)); in main() 191 free(objp); in main()
|
/freebsd/libexec/ypxfr/ |
H A D | ypxfrd_getmap.c | 53 xdr_my_xfr(register XDR *xdrs, xfr *objp) in xdr_my_xfr() argument 56 if (!xdr_xfr(xdrs, objp)) in xdr_my_xfr() 58 if (objp->ok == TRUE) { in xdr_my_xfr() 59 if (write(fp, objp->xfr_u.xfrblock_buf.xfrblock_buf_val, in xdr_my_xfr() 60 objp->xfr_u.xfrblock_buf.xfrblock_buf_len) == -1) { in xdr_my_xfr() 65 xdr_free((xdrproc_t)xdr_xfr, (char *)objp); in xdr_my_xfr() 66 if (objp->ok == FALSE) { in xdr_my_xfr() 67 switch (objp->xfr_u.xfrstat) { in xdr_my_xfr()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_quota.c | 290 uint64_t *objp; in zfs_set_userquota() local 298 objp = &zfsvfs->z_userquota_obj; in zfs_set_userquota() 301 objp = &zfsvfs->z_groupquota_obj; in zfs_set_userquota() 304 objp = &zfsvfs->z_userobjquota_obj; in zfs_set_userquota() 307 objp = &zfsvfs->z_groupobjquota_obj; in zfs_set_userquota() 315 objp = &zfsvfs->z_projectquota_obj; in zfs_set_userquota() 323 objp = &zfsvfs->z_projectobjquota_obj; in zfs_set_userquota() 335 dmu_tx_hold_zap(tx, *objp ? *objp : DMU_NEW_OBJECT, B_TRUE, NULL); in zfs_set_userquota() 336 if (*objp == 0) { in zfs_set_userquota() 349 if (*objp == 0) { in zfs_set_userquota() [all …]
|
/freebsd/usr.sbin/sesutil/ |
H A D | sesutil.c | 178 encioc_element_t *objp; in sesled() local 251 objp = calloc(nobj, sizeof(encioc_element_t)); in sesled() 252 if (objp == NULL) { in sesled() 257 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) objp) < 0) { in sesled() 258 free(objp); in sesled() 265 free(objp); in sesled() 270 do_led(fd, sesid, objp[sesid].elm_type, onoff, setfault); in sesled() 272 free(objp); in sesled() 283 es.elm_idx = objp[j].elm_idx; in sesled() 291 do_led(fd, objp[j].elm_idx, objp[j].elm_type, in sesled() [all …]
|
/freebsd/usr.sbin/ypserv/ |
H A D | yp_server.c | 465 xdr_my_ypresp_all(register XDR *xdrs, ypresp_all *objp) argument 469 if ((objp->ypresp_all_u.val.stat = 470 yp_nextbykey(&objp->ypresp_all_u.val.key, 471 &objp->ypresp_all_u.val.val)) == YP_TRUE) { 472 objp->more = TRUE; 474 objp->more = FALSE; 478 if (!xdr_ypresp_all(xdrs, objp)) 480 if (objp->more == FALSE)
|
/freebsd/contrib/tcpdump/ |
H A D | print-snmp.c | 263 } *objp = NULL; variable 328 if (objp) { \ 330 if ((o) == objp->oid) \ 332 } while ((objp = objp->next) != NULL); \ 334 if (objp) { \ 335 ND_PRINT(suppressdot?"%s":".%s", objp->desc); \ 336 objp = objp->child; \ 758 objp = a->node->child; in asn1_print() 781 objp = mibroot; in asn1_print()
|
/freebsd/sys/dev/vmm/ |
H A D | vmm_dev.c | 683 struct vm_object **objp, int nprot) in vmmdev_mmap_single() argument 723 error = vm_get_memseg(sc->vm, segid, &len, &sysmem, objp); in vmmdev_mmap_single() 724 KASSERT(error == 0 && *objp != NULL, in vmmdev_mmap_single() 727 vm_object_reference(*objp); in vmmdev_mmap_single() 1020 struct vm_object **objp, int nprot) in devmem_mmap_single() argument 1041 error = vm_get_memseg(dsc->sc->vm, dsc->segid, &seglen, &sysmem, objp); in devmem_mmap_single() 1042 KASSERT(error == 0 && !sysmem && *objp != NULL, in devmem_mmap_single() 1046 vm_object_reference(*objp); in devmem_mmap_single()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_auth.c | 854 ipfgeniter_t *itp, ipfobj_t *objp) in ipf_auth_geniter() argument 870 objp->ipfo_type = IPFOBJ_FRAUTH; in ipf_auth_geniter() 871 objp->ipfo_ptr = itp->igi_data; in ipf_auth_geniter() 872 objp->ipfo_size = sizeof(frauth_t); in ipf_auth_geniter() 898 error = ipf_outobjk(softc, objp, next); in ipf_auth_geniter()
|
H A D | fil.c | 6176 ipf_inobj(ipf_main_softc_t *softc, void *data, ipfobj_t *objp, void *ptr, in ipf_inobj() argument 6188 if (objp == NULL) in ipf_inobj() 6189 objp = &obj; in ipf_inobj() 6190 error = BCOPYIN(data, objp, sizeof(*objp)); in ipf_inobj() 6196 if (objp->ipfo_type != type) { in ipf_inobj() 6201 if (objp->ipfo_rev >= ipf_objbytes[type][2]) { in ipf_inobj() 6203 if (objp->ipfo_size < ipf_objbytes[type][1]) { in ipf_inobj() 6208 } else if (objp->ipfo_size == ipf_objbytes[type][1]) { in ipf_inobj() 6209 size = objp->ipfo_size; in ipf_inobj() 6214 error = COPYIN(objp->ipfo_ptr, ptr, size); in ipf_inobj() [all …]
|
/freebsd/sys/vm/ |
H A D | vm_mmap.c | 1251 struct vnode *vp, vm_ooffset_t *foffp, vm_object_t *objp, in vm_mmap_vnode() argument 1340 *objp = obj; in vm_mmap_vnode() 1363 vm_ooffset_t *foff, vm_object_t *objp) in vm_mmap_cdev() argument 1371 *objp = NULL; in vm_mmap_cdev() 1403 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot); in vm_mmap_cdev() 1413 *objp = obj; in vm_mmap_cdev()
|
/freebsd/sys/xdr/ |
H A D | xdr.c | 75 xdr_free(xdrproc_t proc, void *objp) in xdr_free() argument 80 (*proc)(&x, objp); in xdr_free()
|
/freebsd/sys/dev/ksyms/ |
H A D | ksyms.c | 475 vm_object_t *objp, int nprot) in ksyms_mmap_single() argument 492 *objp = obj; in ksyms_mmap_single()
|
/freebsd/lib/libc/xdr/ |
H A D | xdr.c | 75 xdr_free(xdrproc_t proc, void *objp) in xdr_free() argument 80 (*proc)(&x, objp); in xdr_free()
|
/freebsd/sys/dev/nvdimm/ |
H A D | nvdimm_spa.c | 265 vm_object_t *objp, int nprot) in nvdimm_spa_mmap_single() argument 276 *objp = dev->spa_obj; in nvdimm_spa_mmap_single()
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_freebsd.c | 1038 vm_size_t objsize, vm_object_t *objp, int prot) in netmap_mmap_single() argument 1047 (intmax_t )*foff, (intmax_t )objsize, objp, prot); in netmap_mmap_single() 1076 *objp = obj; in netmap_mmap_single()
|