Searched refs:minsz (Results 1 – 4 of 4) sorted by relevance
/openbsd/sys/dev/pci/drm/i915/gvt/ |
H A D | kvmgt.c | 1139 unsigned long minsz; in intel_vgpu_ioctl() local 1148 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl() 1151 if (info.argsz < minsz) in intel_vgpu_ioctl() 1172 minsz = offsetofend(struct vfio_region_info, offset); in intel_vgpu_ioctl() 1174 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl() 1177 if (info.argsz < minsz) in intel_vgpu_ioctl() 1317 minsz = offsetofend(struct vfio_irq_info, count); in intel_vgpu_ioctl() 1351 minsz = offsetofend(struct vfio_irq_set, count); in intel_vgpu_ioctl() 1353 if (copy_from_user(&hdr, (void __user *)arg, minsz)) in intel_vgpu_ioctl() 1366 data = memdup_user((void __user *)(arg + minsz), in intel_vgpu_ioctl() [all …]
|
/openbsd/sbin/disklabel/ |
H A D | editor.c | 79 u_int64_t minsz; /* starts as blocks, xlated to sectors. */ member 585 if (CHUNKSZ(&largest) < DL_BLKTOSEC(lp, sa->minsz)) in allocate_diskchunk() 648 sa->minsz = sa->maxsz = 2 * memblks; in allocate_physmemincr() 669 if (xtrablks < sa[i].minsz) in allocate_space() 671 xtrablks -= sa[i].minsz; in allocate_space() 685 maxsz = sa[i].minsz + xtrablks; in allocate_space() 687 maxsz = sa[i].minsz + (xtrablks / 100) * sa[i].rate; in allocate_space() 1891 parse_sizerange(t, &sa->minsz, &sa->maxsz) == -1) in parse_autotable() 1896 if (sa->minsz > sa->maxsz) in parse_autotable()
|
/openbsd/sys/dev/pci/ |
H A D | if_iwx.c | 10123 const size_t minsz = sizeof(pkt->len_n_flags) + sizeof(pkt->hdr); in iwx_rx_pkt() 10130 while (m0 && offset + minsz < IWX_RBUF_SIZE) { in iwx_rx_pkt() 10154 if (len < minsz || len > (IWX_RBUF_SIZE - offset)) in iwx_notif_intr() 10172 size_t maxlen = IWX_RBUF_SIZE - offset - minsz; 10179 nextoff + minsz >= IWX_RBUF_SIZE || in iwx_intr() 9716 const size_t minsz = sizeof(pkt->len_n_flags) + sizeof(pkt->hdr); iwx_rx_pkt() local
|
H A D | if_iwm.c | 10967 const size_t minsz = sizeof(pkt->len_n_flags) + sizeof(pkt->hdr); in iwm_rx_pkt() local 10974 while (m0 && offset + minsz < IWM_RBUF_SIZE) { in iwm_rx_pkt() 10985 if (len < minsz || len > (IWM_RBUF_SIZE - offset)) in iwm_rx_pkt() 11003 size_t maxlen = IWM_RBUF_SIZE - offset - minsz; in iwm_rx_pkt() 11008 if (nextoff + minsz >= IWM_RBUF_SIZE || in iwm_rx_pkt()
|