/freebsd/contrib/opencsd/decoder/source/ |
H A D | trc_ret_stack.cpp | 59 num_entries(0) in TrcAddrReturnStack() 74 num_entries++; in push() 75 if (num_entries > 16) in push() 76 num_entries = 16; in push() 87 if (num_entries > 0) in pop() 94 num_entries--; in pop() 104 num_entries = 0; in flush() 136 oss << "current entries = " << std::dec << num_entries << ";"; in LogOp()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | keytab_memory.c | 40 int num_entries; member 89 d->num_entries = 0; in mkt_resolve() 122 for(i = 0; i < d->num_entries; i++) in mkt_close() 157 if(c->fd >= d->num_entries) in mkt_next_entry() 177 tmp = realloc(d->entries, (d->num_entries + 1) * sizeof(*d->entries)); in mkt_add_entry() 185 &d->entries[d->num_entries++]); in mkt_add_entry() 197 if (d->num_entries == 0) { in mkt_remove_entry() 203 for(end = d->entries + d->num_entries, e = end - 1; e >= d->entries; e--) { in mkt_remove_entry() 209 d->num_entries--; in mkt_remove_entry() 218 e = realloc(d->entries, d->num_entries * sizeof(*d->entries)); in mkt_remove_entry() [all …]
|
H A D | keytab_keyfile.c | 55 uint32_t num_entries; member 143 d->num_entries = 0; in akf_resolve() 224 ret = krb5_ret_uint32(c->sp, &d->num_entries); in akf_start_seq_get() 225 if(ret || d->num_entries > INT_MAX / 8) { in akf_start_seq_get() 250 if ((pos - 4) / (4 + 8) >= d->num_entries) in akf_next_entry()
|
/freebsd/sys/dev/ice/ |
H A D | ice_fwlog.c | 50 * @num_entries: number of entries to validate 54 u16 num_entries) in valid_module_entries() 63 if (!num_entries) { in valid_module_entries() 64 ice_debug(hw, ICE_DBG_FW_LOG, "num_entries must be non-zero\n"); in valid_module_entries() 68 for (i = 0; i < num_entries; i++) { in valid_module_entries() 139 * @num_entries: number of @entries 145 u16 num_entries, u16 options, u16 log_resolution) in ice_aq_fwlog_set() 154 ice_calloc(hw, num_entries, sizeof(*fw_modules)); in ice_aq_fwlog_set() 158 for (i = 0; i < num_entries; i++) { in ice_aq_fwlog_set() 171 cmd->ops.cfg.mdl_cnt = CPU_TO_LE16(num_entries); in ice_aq_fwlog_set() 53 valid_module_entries(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries) valid_module_entries() argument 144 ice_aq_fwlog_set(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries,u16 options,u16 log_resolution) ice_aq_fwlog_set() argument 239 update_cached_entries(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries) update_cached_entries() argument 274 ice_fwlog_update_modules(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries) ice_fwlog_update_modules() argument [all...] |
/freebsd/sys/dev/agp/ |
H A D | agp_i810.h | 77 u_int num_entries); 78 int agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries, 83 u_int num_entries, vm_page_t *pages, u_int flags); 88 void intel_gtt_clear_range(u_int first_entry, u_int num_entries); 90 int intel_gtt_map_memory(vm_page_t *pages, u_int num_entries, 94 void intel_gtt_insert_pages(u_int first_entry, u_int num_entries,
|
H A D | agp_i810.c | 1930 agp_intel_gtt_clear_range(device_t dev, u_int first_entry, u_int num_entries) in agp_intel_gtt_clear_range() argument 1936 for (i = 0; i < num_entries; i++) in agp_intel_gtt_clear_range() 1939 sc->match->driver->read_gtt_pte(dev, first_entry + num_entries - 1); in agp_intel_gtt_clear_range() 1943 agp_intel_gtt_insert_pages(device_t dev, u_int first_entry, u_int num_entries, in agp_intel_gtt_insert_pages() argument 1950 for (i = 0; i < num_entries; i++) { in agp_intel_gtt_insert_pages() 1956 sc->match->driver->read_gtt_pte(dev, first_entry + num_entries - 1); in agp_intel_gtt_insert_pages() 2198 agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries, in agp_intel_gtt_map_memory() argument 2216 sg = sglist_alloc(num_entries, M_WAITOK /* XXXKIB */); in agp_intel_gtt_map_memory() 2217 for (i = 0; i < num_entries; i++) { in agp_intel_gtt_map_memory() 2277 intel_gtt_clear_range(u_int first_entry, u_int num_entries) in intel_gtt_clear_range() argument 2284 intel_gtt_insert_pages(u_int first_entry,u_int num_entries,vm_page_t * pages,u_int flags) intel_gtt_insert_pages() argument 2315 intel_gtt_map_memory(vm_page_t * pages,u_int num_entries,struct sglist ** sg_list) intel_gtt_map_memory() argument [all...] |
/freebsd/sys/dev/nvme/ |
H A D | nvme_ctrlr_cmd.c | 91 cmd->cdw10 = htole32(((io_que->num_entries-1) << 16) | io_que->id); in nvme_ctrlr_cmd_create_io_cq() 115 cmd->cdw10 = htole32(((io_que->num_entries-1) << 16) | io_que->id); in nvme_ctrlr_cmd_create_io_sq() 281 struct nvme_error_information_entry *payload, uint32_t num_entries, in nvme_ctrlr_cmd_get_error_page() argument 285 KASSERT(num_entries > 0, ("%s called with num_entries==0\n", __func__)); in nvme_ctrlr_cmd_get_error_page() 288 KASSERT(num_entries <= (ctrlr->cdata.elpe + 1), in nvme_ctrlr_cmd_get_error_page() 290 num_entries, ctrlr->cdata.elpe + 1)); in nvme_ctrlr_cmd_get_error_page() 292 if (num_entries > (ctrlr->cdata.elpe + 1)) in nvme_ctrlr_cmd_get_error_page() 293 num_entries = ctrlr->cdata.elpe + 1; in nvme_ctrlr_cmd_get_error_page() 296 NVME_GLOBAL_NAMESPACE_TAG, payload, sizeof(*payload) * num_entries, in nvme_ctrlr_cmd_get_error_page()
|
H A D | nvme_ctrlr.c | 112 uint32_t num_entries; in nvme_ctrlr_construct_admin_qpair() local 120 num_entries = NVME_ADMIN_ENTRIES; in nvme_ctrlr_construct_admin_qpair() 121 TUNABLE_INT_FETCH("hw.nvme.admin_entries", &num_entries); in nvme_ctrlr_construct_admin_qpair() 126 if (num_entries < NVME_MIN_ADMIN_ENTRIES || in nvme_ctrlr_construct_admin_qpair() 127 num_entries > NVME_MAX_ADMIN_ENTRIES) { in nvme_ctrlr_construct_admin_qpair() 129 "specified\n", num_entries); in nvme_ctrlr_construct_admin_qpair() 130 num_entries = NVME_ADMIN_ENTRIES; in nvme_ctrlr_construct_admin_qpair() 137 error = nvme_qpair_construct(qpair, num_entries, NVME_ADMIN_TRACKERS, in nvme_ctrlr_construct_admin_qpair() 151 int num_entries, num_trackers, max_entries; in nvme_ctrlr_construct_io_qpairs() local 164 num_entries = NVME_IO_ENTRIES; in nvme_ctrlr_construct_io_qpairs() [all …]
|
H A D | nvme_qpair.c | 592 if (qpair->cq_head == qpair->num_entries) { in _nvme_qpair_process_completions() 608 cpl = qpair->cpl[qpair->num_entries - 1]; in _nvme_qpair_process_completions() 676 if (++qpair->cq_head == qpair->num_entries) { /* 1 */ in _nvme_qpair_process_completions() 723 uint32_t num_entries, uint32_t num_trackers, in nvme_qpair_construct() argument 733 qpair->num_entries = num_entries; in nvme_qpair_construct() 760 cmdsz = qpair->num_entries * sizeof(struct nvme_command); in nvme_qpair_construct() 762 cplsz = qpair->num_entries * sizeof(struct nvme_completion); in nvme_qpair_construct() 861 qpair->num_entries, M_NVME, DOMAINSET_PREF(qpair->domain), in nvme_qpair_construct() 1271 if (++qpair->sq_tail == qpair->num_entries) in nvme_qpair_submit_tracker() 1446 qpair->num_entries * sizeof(struct nvme_command)); in nvme_qpair_reset() [all …]
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | st.c | 202 tbl->num_entries = 0; in st_init_table_with_size() 293 if (table->num_entries/(table->num_bins) > ST_DEFAULT_MAX_DENSITY) \ 306 table->num_entries++;\ 419 table->num_entries--; in st_delete() 431 table->num_entries--; in st_delete() 460 table->num_entries--; in st_delete_safe() 481 int num_entries = table->num_entries; in st_cleanup_safe() local 484 table->num_entries = num_entries; in st_cleanup_safe() 515 table->num_entries--; in st_foreach()
|
/freebsd/lib/libc/iconv/ |
H A D | citrus_db.c | 105 uint32_t hashval, num_entries; in _citrus_db_lookup() local 111 num_entries = be32toh(dhx->dhx_num_entries); in _citrus_db_lookup() 112 if (num_entries == 0) in _citrus_db_lookup() 121 hashval = db->db_hashfunc(key)%num_entries; in _citrus_db_lookup() 299 uint32_t num_entries; in _citrus_db_get_entry() local 305 num_entries = be32toh(dhx->dhx_num_entries); in _citrus_db_get_entry() 306 if (idx < 0 || (uint32_t)idx >= num_entries) in _citrus_db_get_entry()
|
/freebsd/sys/dev/aic7xxx/aicasm/ |
H A D | aicasm_symbol.c | 386 symbol_node_t *regnode, u_int num_entries) in aic_print_reg_dump_end() 399 if (num_entries != 0) in aic_print_reg_dump_end() 416 num_entries != 0 ? regnode->symbol->name : "NULL", in aic_print_reg_dump_end() 417 num_entries != 0 ? "_parse_table" : "", in aic_print_reg_dump_end() 418 num_entries, in aic_print_reg_dump_end() 546 int num_entries; in symtable_dump() 548 num_entries = 0; in symtable_dump() 551 if (num_entries == 0) in symtable_dump() 556 num_entries++; in symtable_dump() 560 curnode, num_entries); in symtable_dump() 383 aic_print_reg_dump_end(FILE * ofile,FILE * dfile,symbol_node_t * regnode,u_int num_entries) aic_print_reg_dump_end() argument 543 int num_entries; symtable_dump() local [all...] |
/freebsd/crypto/openssh/ |
H A D | hostfile.c | 248 if ((tmp = recallocarray(hostkeys->entries, hostkeys->num_entries, in record_hostkey() 249 hostkeys->num_entries + 1, sizeof(*hostkeys->entries))) == NULL) in record_hostkey() 252 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey() 253 hostkeys->entries[hostkeys->num_entries].file = xstrdup(l->path); in record_hostkey() 254 hostkeys->entries[hostkeys->num_entries].line = l->linenum; in record_hostkey() 255 hostkeys->entries[hostkeys->num_entries].key = l->key; in record_hostkey() 257 hostkeys->entries[hostkeys->num_entries].marker = l->marker; in record_hostkey() 258 hostkeys->entries[hostkeys->num_entries].note = l->note; in record_hostkey() 259 hostkeys->num_entries++; in record_hostkey() 305 for (i = 0; i < hostkeys->num_entries; i++) { in free_hostkeys() [all …]
|
/freebsd/sys/dev/oce/ |
H A D | oce_util.c | 204 uint32_t num_entries; member 228 dpt->num_entries = nseg; in oce_dma_map_ring() 245 dpt.num_entries = 0; in oce_page_list() 254 return dpt.num_entries; in oce_page_list()
|
/freebsd/sys/dev/mpr/ |
H A D | mpr_mapping.c | 864 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_update_missing_count() 894 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_update_pcie_missing_count() 1157 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_get_dev_info() 1273 topo_change->num_entries; in _mapping_get_dev_info() 1334 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_get_pcie_dev_info() 1425 topo_change->num_entries; in _mapping_get_pcie_dev_info() 1497 u8 done_flag = 0, num_entries, m, i; in _mapping_clear_removed_entries() local 1532 num_entries = sc->num_enc_table_entries; in _mapping_clear_removed_entries() 1536 for (i = 0; i < num_entries; i++, et_entry++) { in _mapping_clear_removed_entries() 1540 if (i != (num_entries - 1)) { in _mapping_clear_removed_entries() [all …]
|
H A D | mpr_mapping.h | 89 uint8_t num_entries; member 110 uint8_t num_entries; member
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_plist.c | 74 plist->num_entries = 0; in bhnd_nvram_plist_new() 174 return (plist->num_entries); in bhnd_nvram_plist_count() 344 BHND_NV_ASSERT(plist->num_entries > 0, ("entry count over-release")); in bhnd_nvram_plist_remove() 345 plist->num_entries--; in bhnd_nvram_plist_remove() 422 if (plist->num_entries == SIZE_MAX) in bhnd_nvram_plist_append() 441 plist->num_entries++; in bhnd_nvram_plist_append()
|
/freebsd/contrib/opencsd/decoder/include/common/ |
H A D | trc_ret_stack.h | 75 return (bool)(num_entries < 0); in overflow() 99 int num_entries; variable
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/OProfileJIT/ |
H A D | OProfileJITEventListener.cpp | 117 size_t num_entries = Lines.size(); in notifyObjectLoaded() local 120 num_entries, sizeof(struct debug_line_info)); in notifyObjectLoaded() 130 if (Wrapper->op_write_debug_line_info((void *)Addr, num_entries, in notifyObjectLoaded()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 437 static void sw_send_comp(struct mlx5_ib_qp *qp, int num_entries, in sw_send_comp() argument 453 for (i = 0; i < cur && np < num_entries; i++) { in sw_send_comp() 467 static void sw_recv_comp(struct mlx5_ib_qp *qp, int num_entries, in sw_recv_comp() argument 482 for (i = 0; i < cur && np < num_entries; i++) { in sw_recv_comp() 494 static void mlx5_ib_poll_sw_comp(struct mlx5_ib_cq *cq, int num_entries, in mlx5_ib_poll_sw_comp() argument 502 sw_send_comp(qp, num_entries, wc + *npolled, npolled); in mlx5_ib_poll_sw_comp() 503 if (*npolled >= num_entries) in mlx5_ib_poll_sw_comp() 508 sw_recv_comp(qp, num_entries, wc + *npolled, npolled); in mlx5_ib_poll_sw_comp() 509 if (*npolled >= num_entries) in mlx5_ib_poll_sw_comp() 646 static int poll_soft_wc(struct mlx5_ib_cq *cq, int num_entries, in poll_soft_wc() argument 668 mlx5_ib_poll_cq(struct ib_cq * ibcq,int num_entries,struct ib_wc * wc) mlx5_ib_poll_cq() argument [all...] |
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFDebugAranges.cpp | 76 const size_t num_entries = m_aranges.GetSize(); in Dump() local 77 for (size_t i = 0; i < num_entries; ++i) { in Dump()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_cq.c | 600 static void mlx4_ib_qp_sw_comp(struct mlx4_ib_qp *qp, int num_entries, in mlx4_ib_qp_sw_comp() argument 613 for (i = 0; i < cur && *npolled < num_entries; i++) { in mlx4_ib_qp_sw_comp() 624 static void mlx4_ib_poll_sw_comp(struct mlx4_ib_cq *cq, int num_entries, in mlx4_ib_poll_sw_comp() argument 634 mlx4_ib_qp_sw_comp(qp, num_entries, wc + *npolled, npolled, 1); in mlx4_ib_poll_sw_comp() 635 if (*npolled >= num_entries) in mlx4_ib_poll_sw_comp() 640 mlx4_ib_qp_sw_comp(qp, num_entries, wc + *npolled, npolled, 0); in mlx4_ib_poll_sw_comp() 641 if (*npolled >= num_entries) in mlx4_ib_poll_sw_comp() 867 int mlx4_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in mlx4_ib_poll_cq() argument 878 mlx4_ib_poll_sw_comp(cq, num_entries, wc, &npolled); in mlx4_ib_poll_cq() 882 for (npolled = 0; npolled < num_entries; ++npolled) { in mlx4_ib_poll_cq()
|
/freebsd/sys/dev/mps/ |
H A D | mps_mapping.c | 817 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_update_missing_count() 1119 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_get_dev_info() 1235 topo_change->num_entries; in _mapping_get_dev_info() 1307 u8 done_flag = 0, num_entries, m, i; in _mapping_clear_removed_entries() local 1342 num_entries = sc->num_enc_table_entries; in _mapping_clear_removed_entries() 1346 for (i = 0; i < num_entries; i++, et_entry++) { in _mapping_clear_removed_entries() 1350 if (i != (num_entries - 1)) { in _mapping_clear_removed_entries() 1354 for (m = i; m < (num_entries - in _mapping_clear_removed_entries() 1362 num_entries = in _mapping_clear_removed_entries() 1368 num_entries = in _mapping_clear_removed_entries() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_queue.c | 351 heap_down(cam_pinfo **queue_array, int index, int num_entries) in heap_down() argument 358 for (; child <= num_entries; child = parent << 1) { in heap_down() 359 if (child < num_entries) { in heap_down()
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_isr.c | 268 if (info_pci_dev->msix_entries.num_entries > 0) { in adf_free_irqs() 269 for (i = 0; i < info_pci_dev->msix_entries.num_entries; i++) { in adf_free_irqs() 297 accel_dev->accel_pci_dev.msix_entries.num_entries = msix_num_entries; in adf_isr_alloc_msix_entry_table()
|