| /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,
|
| /freebsd/crypto/krb5/src/kdc/ |
| H A D | t_replay.c | 116 num_entries = 0; in setup_lookaside() 233 assert_int_equal(num_entries, 0); in test_discard_entry() 248 assert_int_equal(num_entries, 0); in test_discard_entry_no_response() 267 assert_int_equal(num_entries, 0); in test_kdc_remove_lookaside() 277 assert_int_equal(num_entries, 0); in test_kdc_remove_lookaside_empty_cache() 280 assert_int_equal(num_entries, 0); in test_kdc_remove_lookaside_empty_cache() 297 assert_int_equal(num_entries, 1); in test_kdc_remove_lookaside_unknown() 317 assert_int_equal(num_entries, 1); in test_kdc_remove_lookaside_multiple() 323 assert_int_equal(num_entries, 0); in test_kdc_remove_lookaside_multiple() 463 assert_int_equal(num_entries, 1); in test_kdc_insert_lookaside_single() [all …]
|
| H A D | replay.c | 56 static int num_entries = 0; variable 99 num_entries++; in insert_entry() 119 num_entries--; in discard_entry()
|
| /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() 289 struct nvme_error_information_entry *payload, uint32_t num_entries, in nvme_ctrlr_cmd_get_error_page() argument 292 KASSERT(num_entries > 0, ("%s called with num_entries==0\n", __func__)); in nvme_ctrlr_cmd_get_error_page() 295 KASSERT(num_entries <= (ctrlr->cdata.elpe + 1), in nvme_ctrlr_cmd_get_error_page() 297 num_entries, ctrlr->cdata.elpe + 1)); in nvme_ctrlr_cmd_get_error_page() 299 if (num_entries > (ctrlr->cdata.elpe + 1)) in nvme_ctrlr_cmd_get_error_page() 300 num_entries = ctrlr->cdata.elpe + 1; in nvme_ctrlr_cmd_get_error_page() 303 NVME_GLOBAL_NAMESPACE_TAG, payload, sizeof(*payload) * num_entries, in nvme_ctrlr_cmd_get_error_page()
|
| H A D | nvme_ctrlr.c | 119 uint32_t num_entries; in nvme_ctrlr_construct_admin_qpair() local 127 num_entries = NVME_ADMIN_ENTRIES; in nvme_ctrlr_construct_admin_qpair() 128 TUNABLE_INT_FETCH("hw.nvme.admin_entries", &num_entries); in nvme_ctrlr_construct_admin_qpair() 133 if (num_entries < NVME_MIN_ADMIN_ENTRIES || in nvme_ctrlr_construct_admin_qpair() 134 num_entries > NVME_MAX_ADMIN_ENTRIES) { in nvme_ctrlr_construct_admin_qpair() 136 "specified\n", num_entries); in nvme_ctrlr_construct_admin_qpair() 137 num_entries = NVME_ADMIN_ENTRIES; in nvme_ctrlr_construct_admin_qpair() 144 error = nvme_qpair_construct(qpair, num_entries, NVME_ADMIN_TRACKERS, in nvme_ctrlr_construct_admin_qpair() 158 int num_entries, num_trackers, max_entries; in nvme_ctrlr_construct_io_qpairs() local 171 num_entries = NVME_IO_ENTRIES; in nvme_ctrlr_construct_io_qpairs() [all …]
|
| H A D | nvme_qpair.c | 388 if (qpair->cq_head == qpair->num_entries) { in _nvme_qpair_process_completions() 404 cpl = qpair->cpl[qpair->num_entries - 1]; in _nvme_qpair_process_completions() 473 if (++qpair->cq_head == qpair->num_entries) { /* 1 */ in _nvme_qpair_process_completions() 520 uint32_t num_entries, uint32_t num_trackers, in nvme_qpair_construct() argument 530 qpair->num_entries = num_entries; in nvme_qpair_construct() 568 cmdsz = qpair->num_entries * sizeof(struct nvme_command) << qpair->sqe_shift; in nvme_qpair_construct() 570 cplsz = qpair->num_entries * sizeof(struct nvme_completion); in nvme_qpair_construct() 669 qpair->num_entries, M_NVME, DOMAINSET_PREF(qpair->domain), in nvme_qpair_construct() 1079 if (++qpair->sq_tail == qpair->num_entries) in nvme_qpair_submit_tracker() 1251 qpair->num_entries * sizeof(struct nvme_command) << qpair->sqe_shift); in nvme_qpair_reset() [all …]
|
| /freebsd/sys/dev/ufshci/ |
| H A D | ufshci_req_sdb.c | 79 uint32_t num_entries, struct ufshci_controller *ctrlr) in ufshci_req_sdb_cmd_desc_construct() argument 96 ucd_allocsz = num_entries * sizeof(struct ufshci_utp_cmd_desc); in ufshci_req_sdb_cmd_desc_construct() 98 payload_allocsz = num_entries * ctrlr->max_xfer_size; in ufshci_req_sdb_cmd_desc_construct() 167 struct ufshci_req_queue *req_queue, uint32_t num_entries, bool is_task_mgmt) in ufshci_req_sdb_construct() argument 181 req_queue->num_entries = num_entries; in ufshci_req_sdb_construct() 186 req_queue->num_trackers = num_entries; in ufshci_req_sdb_construct() 194 hwq->num_entries = req_queue->num_entries; in ufshci_req_sdb_construct() 220 alloc_size = num_entries * desc_size; in ufshci_req_sdb_construct() 255 req_queue->num_entries, in ufshci_req_sdb_construct() 295 num_entries, ctrlr); in ufshci_req_sdb_construct() [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/contrib/dev/iwlwifi/mld/tests/ |
| H A D | agg.c | 42 u16 num_entries; member 243 .num_entries = 1, 269 .num_entries = 1, 296 .num_entries = 1, 322 .num_entries = 3, 350 .num_entries = 3, 380 .num_entries = 1, 411 .num_entries = 1, 547 for (int i = 0; i < param->reorder_buf_state.num_entries; i++) { in setup_reorder_buffer()
|
| /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/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/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/mpr/ |
| H A D | mpr_mapping.c | 863 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_update_missing_count() 893 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_update_pcie_missing_count() 1156 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_get_dev_info() 1272 topo_change->num_entries; in _mapping_get_dev_info() 1333 for (entry = 0; entry < topo_change->num_entries; entry++) { in _mapping_get_pcie_dev_info() 1424 topo_change->num_entries; in _mapping_get_pcie_dev_info() 1496 u8 done_flag = 0, num_entries, m, i; in _mapping_clear_removed_entries() local 1531 num_entries = sc->num_enc_table_entries; in _mapping_clear_removed_entries() 1535 for (i = 0; i < num_entries; i++, et_entry++) { in _mapping_clear_removed_entries() 1539 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/libarchive/libarchive/test/ |
| H A D | test_write_format_xar_bugs.c | 41 uint8_t opts, num_entries; in replay_xar_writer() local 59 num_entries = (fuzz_consume_byte(&consumer) % 5) + 1; in replay_xar_writer() 96 for (i = 0; i < num_entries && fuzz_consumer_remaining(&consumer) > 4; in replay_xar_writer()
|
| /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/coreboot/ |
| H A D | corebootio.h | 102 uint32_t num_entries; member 119 uint16_t num_entries; member
|
| /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 [all …]
|