| /illumos-gate/usr/src/uts/sun4u/io/px/ |
| H A D | px_csr.h | 37 #define CSR_XR(base, off) \ argument 38 (*(volatile uint64_t *)((base) + ((off)))) 40 #define CSRA_XR(base, off, index) \ argument 41 (*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) 43 #define CSR_XS(base, off, val) \ argument 44 ((*(volatile uint64_t *)((base) + ((off)))) = (val)) 46 #define CSRA_XS(base, off, index, val) \ argument 47 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = (val)) 50 #define CSR_FR(base, off, bit) \ argument 51 (((*(volatile uint64_t *) ((base) + ((off)))) >> \ [all …]
|
| /freebsd/sys/contrib/openzfs/module/zcommon/ |
| H A D | simd_stat.c | 53 kmem_scnprintf(s + off, MAX(4095-off, 0), "%-16s\t%1d\n", feat, (val)) 61 static int off = 0; in simd_stat_kstat_data() local 63 if (off == 0) { in simd_stat_kstat_data() 64 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 67 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 69 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 71 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 73 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 75 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 77 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() [all …]
|
| /freebsd/contrib/llvm-project/lld/MachO/ |
| H A D | EhFrame.cpp | 21 uint64_t EhReader::readLength(size_t *off) const { in readLength() 22 const size_t errOff = *off; in readLength() 23 if (*off + 4 > data.size()) in readLength() 25 uint64_t len = read32le(data.data() + *off); in readLength() 26 *off += 4; in readLength() 29 if (*off + 8 > data.size()) in readLength() 31 len = read64le(data.data() + *off); in readLength() 32 *off += 8; in readLength() 34 if (*off + len > data.size()) in readLength() 39 void EhReader::skipValidLength(size_t *off) const { in skipValidLength() [all …]
|
| /illumos-gate/usr/src/lib/libjedec/common/ |
| H A D | libjedec_spd_ddr5.c | 34 spd_parse_ddr5_nbytes(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr5_nbytes() argument 37 const uint8_t data = si->si_data[off]; in spd_parse_ddr5_nbytes() 75 spd_parse_ddr5_mod_type(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr5_mod_type() argument 78 const uint8_t data = si->si_data[off]; in spd_parse_ddr5_mod_type() 157 spd_parse_ddr5_denpkg_pri(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr5_denpkg_pri() argument 160 spd_parse_ddr5_denpkg(si, si->si_data[off], SPD_KEY_PKG_NDIE, in spd_parse_ddr5_denpkg_pri() 165 spd_parse_ddr5_denpkg_sec(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr5_denpkg_sec() argument 171 spd_parse_ddr5_denpkg(si, si->si_data[off], SPD_KEY_SEC_PKG_NDIE, in spd_parse_ddr5_denpkg_sec() 197 spd_parse_ddr5_addr_pri(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr5_addr_pri() argument 200 spd_parse_ddr5_addr(si, si->si_data[off], SPD_KEY_NROW_BITS, in spd_parse_ddr5_addr_pri() [all …]
|
| H A D | libjedec_spd_ddr4.c | 40 spd_parse_ddr4_nbytes(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr4_nbytes() argument 43 const uint8_t data = si->si_data[off]; in spd_parse_ddr4_nbytes() 94 spd_parse_ddr4_mod_type(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr4_mod_type() argument 97 const uint8_t data = si->si_data[off]; in spd_parse_ddr4_mod_type() 145 spd_parse_ddr4_density(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr4_density() argument 148 const uint8_t data = si->si_data[off]; in spd_parse_ddr4_density() 170 spd_parse_ddr4_addr(spd_info_t *si, uint32_t off, uint32_t len, const char *key) in spd_parse_ddr4_addr() argument 172 const uint8_t data = si->si_data[off]; in spd_parse_ddr4_addr() 200 spd_parse_ddr4_pri_pkg(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr4_pri_pkg() argument 203 const uint8_t data = si->si_data[off]; in spd_parse_ddr4_pri_pkg() [all …]
|
| H A D | libjedec_spd_ddr3.c | 47 spd_parse_ddr3_nbytes(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr3_nbytes() argument 50 const uint8_t data = si->si_data[off]; in spd_parse_ddr3_nbytes() 93 spd_parse_ddr3_mod_type(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr3_mod_type() argument 96 const uint8_t data = si->si_data[off]; in spd_parse_ddr3_mod_type() 134 spd_parse_ddr3_density(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr3_density() argument 137 const uint8_t data = si->si_data[off]; in spd_parse_ddr3_density() 158 spd_parse_ddr3_addr(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr3_addr() argument 161 const uint8_t data = si->si_data[off]; in spd_parse_ddr3_addr() 170 spd_parse_ddr3_volt(spd_info_t *si, uint32_t off, uint32_t len, in spd_parse_ddr3_volt() argument 173 const uint8_t data = si->si_data[off]; in spd_parse_ddr3_volt() [all …]
|
| /freebsd/contrib/dialog/samples/ |
| H A D | treeview2 | 18 tag1:one:off:0 19 tag2:two:off:1 21 tag4:four:off:1 22 tag5:five:off:2 23 tag6:six:off:3 24 tag7:seven:off:3 25 tag8:eight:off:4 26 tag11:1one:off:0 27 tag12:1two:off:1 29 tag14:1four:off:1 [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zfs_chksum.c | 87 ssize_t off = 0; in chksum_kstat_headers() local 89 off += kmem_scnprintf(buf + off, size, "%-23s", "implementation"); in chksum_kstat_headers() 90 off += kmem_scnprintf(buf + off, size - off, "%8s", "1k"); in chksum_kstat_headers() 91 off += kmem_scnprintf(buf + off, size - off, "%8s", "4k"); in chksum_kstat_headers() 92 off += kmem_scnprintf(buf + off, size - off, "%8s", "16k"); in chksum_kstat_headers() 93 off += kmem_scnprintf(buf + off, size - off, "%8s", "64k"); in chksum_kstat_headers() 94 off += kmem_scnprintf(buf + off, size - off, "%8s", "256k"); in chksum_kstat_headers() 95 off += kmem_scnprintf(buf + off, size - off, "%8s", "1m"); in chksum_kstat_headers() 96 off += kmem_scnprintf(buf + off, size - off, "%8s", "4m"); in chksum_kstat_headers() 97 (void) kmem_scnprintf(buf + off, size - off, "%8s\n", "16m"); in chksum_kstat_headers() [all …]
|
| /freebsd/contrib/bearssl/T0/ |
| H A D | ConstData.cs | 99 void CheckIndex(int off, int dlen) in CheckIndex() argument 101 if (off < 0 || off > (len - dlen)) { in CheckIndex() 106 internal void Set8(int off, byte v) in Set8() argument 108 CheckIndex(off, 1); in Set8() 109 buf[off] = v; in Set8() 112 internal byte Read8(int off) in Read8() argument 114 CheckIndex(off, 1); in Read8() 115 return buf[off]; in Read8() 118 internal int Read16(int off) in Read16() argument 120 CheckIndex(off, 2); in Read16() [all …]
|
| /illumos-gate/usr/src/lib/libslp/clib/ |
| H A D | DAAdvert.c | 40 size_t len, off; in slp_unpackDAAdvert() local 51 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackDAAdvert() 53 if ((err = slp_get_sht(reply, len, &off, &protoErrCode)) != SLP_OK) in slp_unpackDAAdvert() 62 iov[0].iov_base = reply + off; in slp_unpackDAAdvert() 63 tmp_off = off; in slp_unpackDAAdvert() 64 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert() 67 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert() 70 iov[0].iov_len = off - tmp_off; in slp_unpackDAAdvert() 73 iov[1].iov_base = reply + off; in slp_unpackDAAdvert() 74 tmp_off = off; in slp_unpackDAAdvert() [all …]
|
| /illumos-gate/usr/src/man/man9e/ |
| H A D | devmap_unmap.9e | 17 \fBoffset_t\fR \fIoff\fR, \fBsize_t\fR\fIlen\fR, \fBdevmap_cookie_t\fR \fInew_dhp1\fR, 44 \fB\fIoff\fR \fR 66 ends at (\fIoff\fR - 1) . \fInew_dhp1\fR may be \fINULL\fR. 76 for the new region that ends at (\fIoff\fR - 1); ignored if \fInew_dhp1\fR is 87 begins at (\fIoff \fR + \fIlen\fR); \fInew_dhp2\fR may be \fINULL\fR. 97 for the new region that begins at (\fIoff\fR + \fIlen\fR); ignored if 103 [ \fIoff\fR, \fIoff\fR + \fIlen\fR ], such as in the \fBmunmap\fR(2) or 113 \fIoff\fR and \fIlen\fR define the range to be affected by 118 If the range [ \fIoff\fR, \fIoff\fR + \fIlen\fR ] covers the entire mapping, 124 If \fIoff\fR is at the beginning of the mapping and \fIlen\fR does not cover [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/ |
| H A D | history_002_pos.ksh | 75 compression on compression off 76 compression lzjb acltype off 78 atime on atime off 79 devices on devices off 80 exec on exec off 81 setuid on setuid off 82 readonly on readonly off 83 zoned on zoned off 87 canmount off canmount on 92 xattr on xattr off [all …]
|
| /freebsd/sys/netgraph/ |
| H A D | ng_parse.c | 103 const char *s, int *off, const u_char *start, 106 const u_char *data, int *off, char *cbuf, int cbuflen, 120 static int ng_parse_skip_value(const char *s, int off, int *lenp); 146 const char *string, int *off, u_char *buf, int *buflen) in ng_parse() argument 148 return INVOKE(type, parse)(type, string, off, buf, buf, buflen); in ng_parse() 158 int off = 0; in ng_unparse() local 160 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse() 182 const char *s, int *off, const u_char *const start, in ng_struct_parse() argument 185 return ng_parse_composite(type, s, off, start, buf, buflen, CT_STRUCT); in ng_struct_parse() 190 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument [all …]
|
| /freebsd/sys/dev/usb/net/ |
| H A D | if_cdceem.c | 321 int actlen, off; in cdceem_handle_cmd() local 324 off = *offp; in cdceem_handle_cmd() 340 if (pktlen > (actlen - off)) { in cdceem_handle_cmd() 343 pktlen, actlen - off); in cdceem_handle_cmd() 356 usbd_copy_out(pc, off, sc->sc_echo_buffer, pktlen); in cdceem_handle_cmd() 357 off += pktlen; in cdceem_handle_cmd() 364 if (pktlen > (actlen - off)) { in cdceem_handle_cmd() 368 pktlen, actlen - off); in cdceem_handle_cmd() 379 usbd_copy_out(pc, off, sc->sc_echo_buffer, pktlen); in cdceem_handle_cmd() 380 off += pktlen; in cdceem_handle_cmd() [all …]
|
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | devinfo.c | 293 di_off_t off; member 593 di_off_t off; in di_ioctl() local 697 off = 0; in di_ioctl() 705 if (ddi_copyout(di_mem_addr(st, off), in di_ioctl() 706 (void *)(arg + off), size, mode) != 0) { in di_ioctl() 712 off += size; in di_ioctl() 751 off = di_checkmem(st, 0, size); in di_ioctl() 753 off += sizeof (struct di_all); /* real length of di_all */ in di_ioctl() 778 off += size; /* real length of root_path */ in di_ioctl() 820 if ((off = di_copyformat(off, st, arg, mode)) == 0) { in di_ioctl() [all …]
|
| /freebsd/sys/netlink/ |
| H A D | netlink_snl_route_parsers.h | 61 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 66 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = snl_attr_get_ip }, 68 { .type = NL_RTA_RTFLAGS, .off = _OUT(rta_rtflags), .cb = snl_attr_get_uint32 }, 69 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = snl_attr_get_ipvia }, 132 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 137 { .type = NL_RTA_DST, .off = _OUT(rta_dst), .cb = snl_attr_get_ip }, 138 { .type = NL_RTA_OIF, .off = _OUT(rta_oif), .cb = snl_attr_get_uint32 }, 139 { .type = NL_RTA_GATEWAY, .off = _OUT(rta_gw), .cb = snl_attr_get_ip }, 141 { .type = NL_RTA_MULTIPATH, .off = _OUT(rta_multipath), .cb = nlattr_get_multipath }, 142 { .type = NL_RTA_KNH_ID, .off = _OUT(rta_knh_id), .cb = snl_attr_get_uint32 }, [all …]
|
| /freebsd/sys/netpfil/pf/ |
| H A D | pf_nl.c | 71 { .type = PF_ST_ID, .off = _OUT(id), .cb = nlattr_get_uint32 }, 72 { .type = PF_ST_CREATORID, .off = _OUT(creatorid), .cb = nlattr_get_uint32 }, 73 …{ .type = PF_ST_IFNAME, .arg = (const void *)IFNAMSIZ, .off = _OUT(ifname), .cb = nlattr_get_chara… 74 { .type = PF_ST_AF, .off = _OUT(af), .cb = nlattr_get_uint8 }, 75 { .type = PF_ST_PROTO, .off = _OUT(proto), .cb = nlattr_get_uint16 }, 76 { .type = PF_ST_FILTER_ADDR, .off = _OUT(addr), .cb = nlattr_get_in6_addr }, 77 { .type = PF_ST_FILTER_MASK, .off = _OUT(mask), .cb = nlattr_get_in6_addr }, 102 int off = nlattr_add_nested(nw, attr); in dump_state_peer() local 103 if (off == 0) in dump_state_peer() 123 nlattr_set_len(nw, off); in dump_state_peer() [all …]
|
| /freebsd/lib/libpfctl/ |
| H A D | libpfctl.c | 297 { .type = PF_C_COUNTER, .off = _OUT(counter), .cb = snl_attr_get_uint64 }, 298 { .type = PF_C_NAME, .off = _OUT(name), .cb = snl_attr_get_string }, 299 { .type = PF_C_ID, .off = _OUT(id), .cb = snl_attr_get_uint32 }, 378 { .type = PF_GS_IFNAME, .off = _OUT(ifname), .arg_u32 = IFNAMSIZ, .cb = snl_attr_copy_string }, 379 { .type = PF_GS_RUNNING, .off = _OUT(running), .cb = snl_attr_get_bool }, 380 { .type = PF_GS_SINCE, .off = _OUT(since), .cb = snl_attr_get_uint32 }, 381 { .type = PF_GS_DEBUG, .off = _OUT(debug), .cb = snl_attr_get_uint32 }, 382 { .type = PF_GS_HOSTID, .off = _OUT(hostid), .cb = snl_attr_get_uint32 }, 383 { .type = PF_GS_STATES, .off = _OUT(states), .cb = snl_attr_get_uint32 }, 384 { .type = PF_GS_SRC_NODES, .off = _OUT(src_nodes), .cb = snl_attr_get_uint32 }, [all …]
|
| /freebsd/lib/libc/posix1e/ |
| H A D | acl_to_text_nfs4.c | 171 size_t off = 0, min_who_field_length = 18; in format_entry() local 194 off += snprintf(str + off, size - off, "%*s:", len, buf); in format_entry() 200 off += snprintf(str + off, size - off, "%s:", buf); in format_entry() 206 off += snprintf(str + off, size - off, "%s:", buf); in format_entry() 211 off += snprintf(str + off, size - off, "%s", buf); in format_entry() 217 off += snprintf(str + off, size - off, "%s", buf); in format_entry() 220 off += snprintf(str + off, size - off, "\n"); in format_entry() 223 assert (off < size); in format_entry() 231 int error, off = 0, size, entry_id = ACL_FIRST_ENTRY; in _nfs4_acl_to_text_np() local 246 assert(off < size); in _nfs4_acl_to_text_np() [all …]
|
| /freebsd/sys/kern/ |
| H A D | subr_memdesc.c | 45 phys_copyback(vm_paddr_t pa, int off, int size, const void *src) in phys_copyback() argument 55 pa += off; in phys_copyback() 69 vlist_copyback(struct bus_dma_segment *vlist, int sglist_cnt, int off, in vlist_copyback() argument 75 while (vlist->ds_len <= off) { in vlist_copyback() 78 off -= vlist->ds_len; in vlist_copyback() 88 if (todo > vlist->ds_len - off) in vlist_copyback() 89 todo = vlist->ds_len - off; in vlist_copyback() 91 memcpy((char *)(uintptr_t)vlist->ds_addr + off, p, todo); in vlist_copyback() 92 off = 0; in vlist_copyback() 101 plist_copyback(struct bus_dma_segment *plist, int sglist_cnt, int off, in plist_copyback() argument [all …]
|
| /illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
| H A D | dwarf.c | 188 * off - Offset of current FDE within eh_frame 206 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len, in dump_cfi() argument 265 op = data[off + (*ndx)++]; in dump_cfi() 277 if (uleb_extract(&data[off], ndx, len, &oper1) == in dump_cfi() 309 (*ndx < len) && (data[off + *ndx] == 0); in dump_cfi() 322 switch (dwarf_ehe_extract(&data[off], len, ndx, in dump_cfi() 324 state->sh_addr, off + *ndx, state->gotaddr)) { in dump_cfi() 352 switch (dwarf_extract_uint(data + off, len, in dump_cfi() 375 case 0x05: /* v2: DW_CFA_offset_extended,reg,off */ in dump_cfi() 376 if (uleb_extract(&data[off], ndx, len, &oper1) == in dump_cfi() [all …]
|
| /freebsd/sys/opencrypto/ |
| H A D | criov.c | 57 KASSERT(off >= 0, ("%s: off %d < 0", __func__, off)); \ 59 while (off > 0) { \ 61 if (off < iov->iov_len) \ 63 off -= iov->iov_len; \ 70 KASSERT(off >= 0, ("%s: off %d < 0", __func__, off)); \ 72 while (off > 0) { \ 73 if (off < PAGE_SIZE) \ 75 processed += PAGE_SIZE - off; \ 76 off -= PAGE_SIZE - off; \ 82 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp) in cuio_copydata() argument [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
| H A D | zfs_create_encrypted.ksh | 43 # no off 0 0 yes explicit no encryption 44 # no off 0 1 no keylocation given, but crypt off 45 # no off 1 0 no keyformat given, but crypt off 46 # no off 1 1 no keyformat given, but crypt off 55 # yes off 0 0 yes unencrypted child of encrypted parent 56 # yes off 0 1 no keylocation given, but crypt off 57 # yes off 1 0 no keyformat given, but crypt off 58 # yes off 1 1 no keyformat given, but crypt off 90 log_must zfs create -o encryption=off $TESTPOOL/$TESTFS1/c1 91 log_mustnot zfs create -o encryption=off -o keylocation=prompt \ [all …]
|
| /illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_create/ |
| H A D | zfs_create_encrypted.ksh | 42 # no off 0 0 yes explicit no encryption 43 # no off 0 1 no keylocation given, but crypt off 44 # no off 1 0 no keyformat given, but crypt off 45 # no off 1 1 no keyformat given, but crypt off 54 # yes off 0 0 yes unencrypted child of encrypted parent 55 # yes off 0 1 no keylocation given, but crypt off 56 # yes off 1 0 no keyformat given, but crypt off 57 # yes off 1 1 no keyformat given, but crypt off 89 log_must zfs create -o encryption=off $TESTPOOL/$TESTFS1/c1 90 log_mustnot zfs create -o encryption=off -o keylocation=prompt \ [all …]
|
| /illumos-gate/usr/src/uts/common/fs/swapfs/ |
| H A D | swap_vnops.c | 55 static int swap_getpage(struct vnode *vp, offset_t off, size_t len, 58 static int swap_putpage(struct vnode *vp, offset_t off, size_t len, 65 static int swap_getapage(struct vnode *vp, u_offset_t off, size_t len, 69 int swap_getconpage(struct vnode *vp, u_offset_t off, size_t len, 74 static int swap_putapage(struct vnode *vp, page_t *pp, u_offset_t *off, 103 * Return all the pages from [off..off+len] in given file 109 offset_t off, in swap_getpage() argument 120 SWAPFS_PRINT(SWAP_VOPS, "swap_getpage: vp %p, off %llx, len %lx\n", in swap_getpage() 121 (void *)vp, off, len, 0, 0); in swap_getpage() 124 "swapfs getpage:vp %p off %llx len %ld", in swap_getpage() [all …]
|