| /illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
| H A D | fake_rw.c | 64 const u_offset_t maxoff = MAXOFF32_T; in fake_pread() local 82 if (fileoff > maxoff) { in fake_pread() 91 if (fileoff + bcount > maxoff) in fake_pread() 92 bcount = (ssize_t)((offset_t)maxoff - fileoff); in fake_pread() 136 const u_offset_t maxoff = MAXOFF32_T; in fake_pwrite() local 153 if (fileoff > maxoff) { in fake_pwrite() 161 if (fileoff == maxoff) { in fake_pwrite() 165 if (fileoff + count > maxoff) in fake_pwrite() 166 bcount = (ssize_t)((u_offset_t)maxoff - fileoff); in fake_pwrite()
|
| /illumos-gate/usr/src/cmd/mandoc/ |
| H A D | roff_term.c | 223 const size_t maxoff = 72; in roff_term_pre_ti() local 246 if (p->tcol->offset + len <= maxoff) in roff_term_pre_ti() 248 else if (p->tcol->offset < maxoff) in roff_term_pre_ti() 249 p->ti = maxoff - p->tcol->offset; in roff_term_pre_ti() 260 if ((size_t)len > maxoff) in roff_term_pre_ti() 261 len = maxoff; in roff_term_pre_ti()
|
| /illumos-gate/usr/src/cmd/sgs/yacc/common/ |
| H A D | y4.c | 45 static int maxoff = 0; /* maximum offset into an array */ variable 140 if (k > maxoff) in callopt() 141 maxoff = k; in callopt() 160 if (j > maxoff) in callopt() 161 maxoff = j; in callopt() 284 nn = -maxoff; in stin() 415 "maximum spread: %d, maximum offset: %d\n", maxspr, maxoff); in osummary()
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | sendfile.c | 407 u_offset_t maxoff = (model == DATAMODEL_ILP32) ? in sendvec_small_chunk() local 410 const u_offset_t maxoff = MAXOFF32_T; in sendvec_small_chunk() local 578 if (sfv_off > maxoff) { in sendvec_small_chunk() 584 if (sfv_off + sfv_len > maxoff) { in sendvec_small_chunk() 585 total_size -= (sfv_off + sfv_len - maxoff); in sendvec_small_chunk() 586 sfv_len = (ssize_t)((offset_t)maxoff - in sendvec_small_chunk() 697 u_offset_t maxoff = (model == DATAMODEL_ILP32) ? in sendvec_chunk() local 700 const u_offset_t maxoff = MAXOFF32_T; in sendvec_chunk() local 761 if (*fileoff >= maxoff) in sendvec_chunk() 764 if (*fileoff + sfv_len > maxoff) in sendvec_chunk() [all …]
|
| H A D | rw.c | 350 u_offset_t maxoff = get_udatamodel() == DATAMODEL_ILP32 ? in pread() local 353 const u_offset_t maxoff = MAXOFF32_T; in pread() local 380 if (fileoff > maxoff) { in pread() 389 if (fileoff + bcount > maxoff) in pread() 390 bcount = (ssize_t)((offset_t)maxoff - fileoff); in pread() 418 if (vp->v_type == VREG && fileoff == (u_offset_t)maxoff) { in pread() 490 u_offset_t maxoff = get_udatamodel() == DATAMODEL_ILP32 ? in pwrite() local 493 const u_offset_t maxoff = MAXOFF32_T; in pwrite() local 518 if (fileoff > maxoff) { in pwrite() 539 if (fileoff == maxoff) { in pwrite() [all …]
|
| /illumos-gate/usr/src/cmd/tail/ |
| H A D | misc.c | 98 if ((off_t)mip->maplen > mip->maxoff - mip->mapoff) in maparound() 99 mip->maplen = mip->maxoff - mip->mapoff; in maparound()
|
| H A D | extern.h | 47 off_t maxoff; member
|
| H A D | reverse.c | 109 map.mapoff = map.maxoff = size; in r_reg()
|
| H A D | forward.c | 201 map.mapoff = map.maxoff = size; in rlines()
|
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | pfmod.c | 342 int maxoff = 0; in pfioctl() local 410 if ((arg -= ENF_PUSHWORD) > maxoff) in pfioctl() 411 maxoff = arg; in pfioctl() 442 pfp->pf_PByteLen = (maxoff + maxoffreg + 1) * sizeof (ushort_t); in pfioctl()
|
| /illumos-gate/usr/src/uts/common/fs/specfs/ |
| H A D | specvnops.c | 989 offset_t maxoff; in spec_read() local 1008 maxoff = spec_maxoffset(vp); in spec_read() 1009 ASSERT(maxoff != -1 || vp->v_type == VCHR); in spec_read() 1011 if (maxoff != -1 && (uiop->uio_loffset < 0 || in spec_read() 1012 uiop->uio_loffset + uiop->uio_resid > maxoff)) in spec_read() 1095 offset_t maxoff; in spec_write() local 1111 maxoff = spec_maxoffset(vp); in spec_write() 1112 ASSERT(maxoff != -1 || vp->v_type == VCHR); in spec_write() 1114 if (maxoff != -1 && (uiop->uio_loffset < 0 || in spec_write() 1115 uiop->uio_loffset + uiop->uio_resid > maxoff)) in spec_write() [all …]
|
| /illumos-gate/usr/src/uts/common/io/rge/ |
| H A D | rge_chip.c | 1879 uint64_t maxoff; in rge_pp_ioctl() local 1919 maxoff = PCI_CONF_HDR_SIZE; in rge_pp_ioctl() 1929 maxoff = RGE_REGISTER_MAX; in rge_pp_ioctl() 1944 maxoff = (MII_MAXREG+1)*2; in rge_pp_ioctl() 1954 maxoff = sizeof (*rgep); in rge_pp_ioctl() 1980 maxoff = areap->alength; in rge_pp_ioctl() 2001 if (ppd->pp_acc_offset >= maxoff) in rge_pp_ioctl() 2004 if (ppd->pp_acc_offset+ppd->pp_acc_size > maxoff) in rge_pp_ioctl()
|
| /illumos-gate/usr/src/uts/common/io/nge/ |
| H A D | nge_chip.c | 1847 uint64_t maxoff; in nge_pp_ioctl() local 1887 maxoff = PCI_CONF_HDR_SIZE; in nge_pp_ioctl() 1897 maxoff = NGE_REG_SIZE; in nge_pp_ioctl() 1904 maxoff = NGE_MII_SIZE; in nge_pp_ioctl() 1911 maxoff = NGE_SEEROM_SIZE; in nge_pp_ioctl() 1932 if (ppd->pp_acc_offset >= maxoff) in nge_pp_ioctl() 1935 if (ppd->pp_acc_offset+ppd->pp_acc_size > maxoff) in nge_pp_ioctl()
|
| /illumos-gate/usr/src/uts/common/io/bge/ |
| H A D | bge_chip2.c | 5832 uint64_t maxoff; in bge_pp_ioctl() local 5872 maxoff = PCI_CONF_HDR_SIZE; in bge_pp_ioctl() 5882 maxoff = RIAAR_REGISTER_MAX; in bge_pp_ioctl() 5892 maxoff = MWBAR_ONCHIP_MAX; in bge_pp_ioctl() 5907 maxoff = (MII_MAXREG+1)*2; in bge_pp_ioctl() 5924 maxoff = SEEPROM_DEV_AND_ADDR_MASK; in bge_pp_ioctl() 5938 maxoff = NVM_FLASH_ADDR_MASK; in bge_pp_ioctl() 5949 maxoff = sizeof (*bgep); in bge_pp_ioctl() 5986 maxoff = areap->alength; in bge_pp_ioctl() 6007 if (ppd->pp_acc_offset >= maxoff) in bge_pp_ioctl() [all …]
|
| /illumos-gate/usr/src/uts/common/io/e1000g/ |
| H A D | e1000g_main.c | 5211 uint64_t maxoff; in e1000g_pp_ioctl() local 5264 maxoff = 0x10000; in e1000g_pp_ioctl() 5273 maxoff = sizeof (struct e1000g); in e1000g_pp_ioctl() 5279 if (ppd->pp_acc_offset >= maxoff) in e1000g_pp_ioctl() 5282 if (ppd->pp_acc_offset + ppd->pp_acc_size > maxoff) in e1000g_pp_ioctl()
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/zfs/ |
| H A D | zfs.c | 3002 txg_list_walk_init_common(mdb_walk_state_t *wsp, int txg, int maxoff) in txg_list_walk_init_common() argument 3021 lwd->lw_maxoff = maxoff; in txg_list_walk_init_common()
|