/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | cpuid_test.c | 33 for (i = 0; i < guest_cpuid->nent; i++) { 78 TEST_ASSERT(cpuid1->nent == cpuid2->nent, 79 "CPUID nent mismatch: %d vs. %d", cpuid1->nent, cpuid2->nent); 81 for (i = 0; i < cpuid1->nent; i++) { 128 int size = sizeof(*cpuid) + cpuid->nent * sizeof(cpuid->entries[0]); 168 struct kvm_cpuid2 *cpuid = allocate_kvm_cpuid2(vcpu->cpuid->nent + 1); 172 TEST_ASSERT(cpuid->nent [all...] |
H A D | hyperv_cpuid.c | 53 TEST_ASSERT(hv_cpuid_entries->nent == nent_expected, 56 nent_expected, hv_cpuid_entries->nent); 58 for (i = 0; i < hv_cpuid_entries->nent; i++) { 118 static struct kvm_cpuid2 cpuid = {.nent = 0};
|
H A D | hyperv_features.c | 154 prev_cpuid = allocate_kvm_cpuid2(vcpu->cpuid->nent); 497 memcpy(prev_cpuid, vcpu->cpuid, kvm_cpuid2_size(vcpu->cpuid->nent)); 552 prev_cpuid = allocate_kvm_cpuid2(vcpu->cpuid->nent); 669 memcpy(prev_cpuid, vcpu->cpuid, kvm_cpuid2_size(vcpu->cpuid->nent));
|
/linux-master/arch/x86/kvm/ |
H A D | cpuid.c | 83 struct kvm_cpuid_entry2 *entries, int nent, u32 function, u64 index) 100 for (i = 0; i < nent; i++) { 135 int nent) 144 best = cpuid_entry2_find(entries, nent, 0x80000008, 157 best = cpuid_entry2_find(entries, nent, 0xd, 0); 171 int nent) 176 if (nent != vcpu->arch.cpuid_nent) 179 for (i = 0; i < nent; i++) { 193 int nent, const char *sig) 200 entry = cpuid_entry2_find(entries, nent, bas 82 cpuid_entry2_find( struct kvm_cpuid_entry2 *entries, int nent, u32 function, u64 index) argument 133 kvm_check_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *entries, int nent) argument 170 kvm_cpuid_check_equal(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *e2, int nent) argument 192 __kvm_get_hypervisor_cpuid(struct kvm_cpuid_entry2 *entries, int nent, const char *sig) argument 227 __kvm_find_kvm_cpuid_features(struct kvm_cpuid_entry2 *entries, int nent, u32 kvm_cpuid_base) argument 261 cpuid_get_supported_xcr0(struct kvm_cpuid_entry2 *entries, int nent) argument 272 __kvm_update_cpuid_runtime(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *entries, int nent) argument 325 kvm_cpuid_has_hyperv(struct kvm_cpuid_entry2 *entries, int nent) argument 424 kvm_set_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *e2, int nent) argument 834 int nent; member in struct:kvm_cpuid_array [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | gk20a.c | 41 int nent; local 44 nent = (blob->size / sizeof(struct gk20a_fw_av)); 45 pack = vzalloc((sizeof(*pack) * 2) + (sizeof(*init) * (nent + 1))); 52 for (i = 0; i < nent; i++) { 84 int nent; local 87 nent = (blob->size / sizeof(struct gk20a_fw_aiv)); 88 pack = vzalloc((sizeof(*pack) * 2) + (sizeof(*init) * (nent + 1))); 95 for (i = 0; i < nent; i++) { 117 int nent; local 120 nent [all...] |
H A D | ga102.c | 245 int nent; local 248 nent = (blob->size / sizeof(struct netlist_av64)); 249 pack = vzalloc((sizeof(*pack) * 2) + (sizeof(*init) * (nent + 1))); 257 for (i = 0; i < nent; i++) {
|
/linux-master/drivers/tty/vt/ |
H A D | conmakehash.c | 82 int i, nuni, nent; local 272 nent = 0; 275 while ( nent >= unicount[fp0] ) 278 nent = 0; 280 printf("0x%04x", unitable[fp0][nent++]);
|
/linux-master/include/linux/mlx5/ |
H A D | eq.h | 16 int nent; member in struct:mlx5_eq_param
|
/linux-master/drivers/infiniband/hw/mthca/ |
H A D | mthca_allocator.c | 155 int mthca_array_init(struct mthca_array *array, int nent) argument 157 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; 173 void mthca_array_cleanup(struct mthca_array *array, int nent) argument 177 for (i = 0; i < (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; ++i)
|
H A D | mthca_eq.c | 184 mthca_write64(MTHCA_EQ_DB_SET_CI | eq->eqn, ci & (eq->nent - 1), 230 unsigned long off = (entry & (eq->nent - 1)) * MTHCA_EQ_ENTRY_SIZE; 466 int nent, 479 eq->nent = roundup_pow_of_two(max(nent, 2)); 480 npages = ALIGN(eq->nent * MTHCA_EQ_ENTRY_SIZE, PAGE_SIZE) / PAGE_SIZE; 511 for (i = 0; i < eq->nent; ++i) 535 eq_context->logsize_usrpage = cpu_to_be32((ffs(eq->nent) - 1) << 24); 560 eq->eqn, eq->nent); 593 int npages = (eq->nent * MTHCA_EQ_ENTRY_SIZ 465 mthca_create_eq(struct mthca_dev *dev, int nent, u8 intr, struct mthca_eq *eq) argument [all...] |
H A D | mthca_cq.c | 348 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent) argument 353 ret = mthca_buf_alloc(dev, nent * MTHCA_CQ_ENTRY_SIZE, 360 for (i = 0; i < nent; ++i) 768 int mthca_init_cq(struct mthca_dev *dev, int nent, argument 776 cq->ibcq.cqe = nent - 1; 814 err = mthca_alloc_cq_buf(dev, &cq->buf, nent); 828 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24);
|
H A D | mthca_provider.h | 95 int nent; member in struct:mthca_eq
|
H A D | mthca_dev.h | 421 int mthca_array_init(struct mthca_array *array, int nent); 422 void mthca_array_cleanup(struct mthca_array *array, int nent); 487 int mthca_init_cq(struct mthca_dev *dev, int nent, 498 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent);
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_pcie.c | 196 int qib_pcie_params(struct qib_devdata *dd, u32 minw, u32 *nent) argument 214 maxvec = (nent && *nent) ? *nent : 1; 220 * If nent exists, make sure to record how many vectors were allocated. 224 if (nent) 225 *nent = !dd->pcidev->msix_enabled ? 0 : nvec;
|
/linux-master/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | processor.c | 681 for (i = 0; i < cpuid->nent; i++) { 772 if (vcpu->cpuid && vcpu->cpuid->nent < cpuid->nent) { 778 vcpu->cpuid = allocate_kvm_cpuid2(cpuid->nent); 780 memcpy(vcpu->cpuid, cpuid, kvm_cpuid2_size(cpuid->nent)); 1191 for (i = 0; i < cpuid->nent; i++) { 1255 int i, nent = 0; local 1261 cpuid_full = allocate_kvm_cpuid2(cpuid_sys->nent + cpuid_hv->nent); 1268 for (i = 0; i < cpuid_sys->nent; [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cq.c | 342 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, argument 382 cpu_to_be32((ilog2(nent) << 24) | 394 err = mlx4_init_user_cqes(buf_addr, nent, 399 mlx4_init_kernel_cqes(buf_addr, nent,
|
H A D | eq.c | 109 /* (entry & (eq->nent - 1)) gives us a cyclic array */ 110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; 124 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe; 781 mlx4_warn(dev, "Unhandled event FATAL WARNING (%02x), subtype %02x on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n", 783 eq->cons_index, eqe->owner, eq->nent, 786 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); 806 "Unhandled recoverable error event detected: %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, ownership=%s\n", 808 eq->cons_index, eqe->owner, eq->nent, 810 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); 818 mlx4_warn(dev, "Unhandled event %02x(%02x) on EQ %d at index %u. owner=%x, nent 970 mlx4_create_eq(struct mlx4_dev *dev, int nent, u8 intr, struct mlx4_eq *eq) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eq.c | 268 u8 log_eq_size = order_base_2(param->nent + MLX5_NUM_SPARE_EQE); 670 .nent = MLX5_NUM_CMD_EQE, 683 .nent = async_eq_depth_devlink_param_get(dev), 699 .nent = /* TODO: sriov max_vf + */ 1, 796 u32 nent = eq_get_size(eq); local 799 eqe = get_eqe(eq, ci & (nent - 1)); 800 eqe = ((eqe->owner & 1) ^ !!(ci & nent)) ? NULL : eqe; 1017 int nent; local 1031 nent = comp_eq_depth_devlink_param_get(dev); 1048 .nent [all...] |
/linux-master/fs/nfs/ |
H A D | nfs42xattr.c | 73 atomic_long_t nent; member in struct:nfs4_xattr_cache 297 atomic_long_set(&cache->nent, 0); 406 atomic_long_set(&cache->nent, 0); 548 atomic_long_inc(&cache->nent); 577 atomic_long_dec(&cache->nent); 812 if (atomic_long_read(&cache->nent) > 1) 898 atomic_long_dec(&cache->nent); 968 atomic_long_set(&cache->nent, 0);
|
/linux-master/drivers/tty/serial/ |
H A D | pch_uart.c | 231 int nent; member in struct:eg20t_port 743 for (i = 0; i < priv->nent; i++, sg++) 749 priv->nent = 0; 855 int nent; local 931 nent = dma_map_sg(port->dev, sg, num, DMA_TO_DEVICE); 932 if (!nent) { 937 priv->nent = nent; 939 for (i = 0; i < nent; i++, sg++) { 944 if (i == (nent [all...] |
/linux-master/arch/x86/xen/ |
H A D | efi.c | 65 efi_systab_xen.nr_tables = info->cfg.nent;
|
/linux-master/drivers/vdpa/mlx5/core/ |
H A D | mlx5_vdpa.h | 22 int nent; member in struct:mlx5_vdpa_direct_mr
|
/linux-master/drivers/iommu/ |
H A D | omap-iommu.c | 704 int nent = 1; local 718 nent *= 16; 722 bytes *= nent; 723 memset(iopte, 0, nent * sizeof(*iopte)); 725 flush_iopte_range(obj->dev, pt_dma, pt_offset, nent); 736 nent = 1; /* for the next L1 entry */ 740 nent *= 16; 744 bytes *= nent; 746 memset(iopgd, 0, nent * sizeof(*iopgd)); 747 flush_iopte_range(obj->dev, obj->pd_dma, pd_offset, nent); [all...] |
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | cq.c | 74 static u8 sw_ownership_bit(int n, int nent) argument 76 return (n & nent) ? 1 : 0; 670 int nent, 679 nent * cqe_size, 688 buf->nent = nent; 872 for (i = 0; i < buf->nent; i++) { 1238 (i + 1) & cq->resize_buf->nent); 1240 sw_own = sw_ownership_bit(i + 1, cq->resize_buf->nent); 668 alloc_cq_frag_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf, int nent, int cqe_size) argument
|
/linux-master/lib/ |
H A D | scatterlist.c | 617 unsigned int nent, nalloc; local 620 nent = round_up(length, PAGE_SIZE << order) >> (PAGE_SHIFT + order); 622 if (length > (nent << (PAGE_SHIFT + order))) 624 nalloc = nent; 652 *nent_p = nent;
|