| /freebsd-13.1/sys/vm/ |
| H A D | memguard.c | 296 size_p = round_page(req_size); in memguard_alloc() 317 req_size < PAGE_SIZE) { in memguard_alloc() 344 *v2sizep(trunc_page(addr)) = req_size; in memguard_alloc() 347 if (req_size < PAGE_SIZE) { in memguard_alloc() 348 memguard_wasted += (PAGE_SIZE - req_size); in memguard_alloc() 355 req_size = roundup2(req_size, 16); in memguard_alloc() 356 addr += (PAGE_SIZE - req_size); in memguard_alloc() 378 u_long req_size, size, sizev; in memguard_free() local 383 req_size = *v2sizep(addr); in memguard_free() 385 size = round_page(req_size); in memguard_free() [all …]
|
| /freebsd-13.1/usr.sbin/bhyve/ |
| H A D | fwctl.c | 282 uint32_t req_size; member 324 rinfo.req_size -= 12; in fwctl_request_start() 330 err = (*rinfo.req_op->op_start)(rinfo.req_size); in fwctl_request_start() 338 if (rinfo.req_size == 0) { in fwctl_request_start() 351 if (rinfo.req_size <= sizeof(uint32_t)) in fwctl_request_data() 352 rinfo.req_size = 0; in fwctl_request_data() 354 rinfo.req_size -= sizeof(uint32_t); in fwctl_request_data() 356 (*rinfo.req_op->op_data)(value, rinfo.req_size); in fwctl_request_data() 358 if (rinfo.req_size < sizeof(uint32_t)) { in fwctl_request_data() 381 rinfo.req_size = value; in fwctl_request()
|
| /freebsd-13.1/contrib/llvm-project/libcxx/src/ |
| H A D | ios.cpp | 164 size_t req_size = static_cast<size_t>(index)+1; in iword() local 165 if (req_size > __iarray_cap_) in iword() 167 size_t newcap = __ios_new_cap<long>(req_size, __iarray_cap_); in iword() 181 __iarray_size_ = max<size_t>(__iarray_size_, req_size); in iword() 188 size_t req_size = static_cast<size_t>(index)+1; in pword() local 189 if (req_size > __parray_cap_) in pword() 191 size_t newcap = __ios_new_cap<void *>(req_size, __iarray_cap_); in pword() 205 __parray_size_ = max<size_t>(__parray_size_, req_size); in pword() 214 size_t req_size = __event_size_ + 1; in register_callback() local 215 if (req_size > __event_cap_) in register_callback() [all …]
|
| /freebsd-13.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-bootmem.c | 587 int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min, uint64_t address_max, uint6… in cvmx_bootmem_phy_alloc() argument 599 (ULL)req_size, (ULL)address_min, (ULL)address_max, (ULL)alignment); in cvmx_bootmem_phy_alloc() 611 if (!req_size) in cvmx_bootmem_phy_alloc() 615 req_size = (req_size + (CVMX_BOOTMEM_ALIGNMENT_SIZE - 1)) & ~(CVMX_BOOTMEM_ALIGNMENT_SIZE - 1); in cvmx_bootmem_phy_alloc() 634 address_max = address_min + req_size; in cvmx_bootmem_phy_alloc() 640 if (req_size > address_max - address_min) in cvmx_bootmem_phy_alloc() 670 && req_size <= usable_max - usable_base) in cvmx_bootmem_phy_alloc() 678 desired_min_addr = usable_max - req_size; in cvmx_bootmem_phy_alloc() 686 if (req_size < ent_size) in cvmx_bootmem_phy_alloc() 689 new_ent_addr = ent_addr + req_size; in cvmx_bootmem_phy_alloc() [all …]
|
| H A D | cvmx-bootmem.h | 351 int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min, uint64_t address_max, uint6…
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/ulp/sdp/ |
| H A D | sdp_bcopy.c | 46 struct sdp_chrecvbuf *req_size; in _dump_packet() local 74 req_size = (struct sdp_chrecvbuf *)(h+1); in _dump_packet() 76 ntohl(req_size->size)); in _dump_packet()
|
| /freebsd-13.1/contrib/bsnmp/snmpd/ |
| H A D | export.c | 58 ssize_t req_size, u_char **valp) in string_save() argument 60 if (req_size != -1 && value->v.octetstring.len != (u_long)req_size) in string_save()
|
| /freebsd-13.1/sys/dev/hyperv/vmbus/ |
| H A D | vmbus_xact.c | 140 vmbus_xact_ctx_create(bus_dma_tag_t dtag, size_t req_size, size_t resp_size, in vmbus_xact_ctx_create() argument 145 KASSERT(req_size > 0, ("request size is 0")); in vmbus_xact_ctx_create() 149 ctx->xc_req_size = req_size; in vmbus_xact_ctx_create()
|
| /freebsd-13.1/sys/dev/hyperv/include/ |
| H A D | vmbus_xact.h | 39 size_t req_size, size_t resp_size,
|
| /freebsd-13.1/contrib/ntp/libntp/ |
| H A D | ntp_intres.c | 248 size_t req_size; in getaddrinfo_sometime_ex() local 266 req_size = sizeof(*gai_req) + nodesize + servsize; in getaddrinfo_sometime_ex() 268 gai_req = emalloc_zero(req_size); in getaddrinfo_sometime_ex() 270 gai_req->octets = req_size; in getaddrinfo_sometime_ex() 292 req_size, in getaddrinfo_sometime_ex()
|
| /freebsd-13.1/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | dbg-tlv.h | 198 __le32 req_size; member
|
| /freebsd-13.1/sys/dev/xen/netback/ |
| H A D | netback.c | 1716 const size_t req_size = in xnb_txpkt2gnttab() local 1718 const size_t pkt_space = req_size - r_ofs; in xnb_txpkt2gnttab() 1743 if (req_size - r_ofs <= 0) { in xnb_txpkt2gnttab() 1971 const size_t req_size = PAGE_SIZE; in xnb_rxpkt2gnttab() local 1972 const size_t pkt_space = req_size - r_ofs; in xnb_rxpkt2gnttab() 1998 if (req_size - r_ofs <= 0) { in xnb_rxpkt2gnttab()
|
| /freebsd-13.1/sys/dev/oce/ |
| H A D | oce_queue.c | 71 *mbx, size_t req_size, enum qtype qtype, int version); 779 oce_destroy_q(POCE_SOFTC sc, struct oce_mbx *mbx, size_t req_size, in oce_destroy_q() argument 813 opcode, MBX_TIMEOUT_SEC, req_size, in oce_destroy_q() 817 mbx->payload_length = (uint32_t) req_size; in oce_destroy_q()
|
| H A D | oce_if.c | 2250 uint32_t req_size; in oce_handle_passthrough() local 2265 req_size = le32toh(req.u0.req.request_length); in oce_handle_passthrough() 2266 if (req_size > 65536) in oce_handle_passthrough() 2269 req_size += sizeof(struct mbx_hdr); in oce_handle_passthrough() 2270 rc = oce_dma_alloc(sc, req_size, &dma_mem, 0); in oce_handle_passthrough() 2274 if (copyin(ioctl_ptr, OCE_DMAPTR(&dma_mem,char), req_size)) { in oce_handle_passthrough() 2279 rc = oce_pass_through_mbox(sc, &dma_mem, req_size); in oce_handle_passthrough() 2285 if (copyout(OCE_DMAPTR(&dma_mem,char), ioctl_ptr, req_size)) in oce_handle_passthrough()
|
| H A D | oce_mbox.c | 1122 uint32_t req_size, uint32_t reset_stats) in oce_mbox_get_vport_stats() argument 1221 oce_pass_through_mbox(POCE_SOFTC sc, POCE_DMA_MEM dma_mem, uint32_t req_size) in oce_pass_through_mbox() argument 1230 mbx.payload_length = req_size; in oce_pass_through_mbox() 1235 sgl->length = htole32(req_size); in oce_pass_through_mbox()
|
| H A D | oce_if.h | 1034 uint32_t req_size, uint32_t reset_stats); 1036 int oce_pass_through_mbox(POCE_SOFTC sc, POCE_DMA_MEM dma_mem, uint32_t req_size);
|
| /freebsd-13.1/sys/dev/ntb/test/ |
| H A D | ntb_tool.c | 806 size_t req_size) in tool_setup_mw() argument 812 if (req_size == 0) in tool_setup_mw() 815 inmw->size = roundup(req_size, inmw->xlat_align_size); in tool_setup_mw() 818 inmw->phys_size, req_size, inmw->size); in tool_setup_mw()
|
| /freebsd-13.1/contrib/ofed/librdmacm/ |
| H A D | cma.c | 60 #define CMA_INIT_CMD(req, req_size, op) \ argument 62 memset(req, 0, req_size); \ 64 (req)->in = req_size - sizeof(struct ucma_abi_cmd_hdr); \ 67 #define CMA_INIT_CMD_RESP(req, req_size, op, resp, resp_size) \ argument 69 CMA_INIT_CMD(req, req_size, op); \
|
| /freebsd-13.1/sys/contrib/dev/iwlwifi/ |
| H A D | iwl-dbg-tlv.c | 595 remain_pages = DIV_ROUND_UP(le32_to_cpu(fw_mon_cfg->req_size), in iwl_dbg_tlv_alloc_fragments() 615 u32 alloc_size = le32_to_cpu(fw_mon_cfg->req_size) - in iwl_dbg_tlv_alloc_fragments()
|