Home
last modified time | relevance | path

Searched refs:ents (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2_leaf.c84 struct xfs_dir2_leaf_entry *ents; in xfs_dir3_leaf_check_int() local
103 ents = ops->leaf_ents_p(leaf); in xfs_dir3_leaf_check_int()
117 (char *)&ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
123 if (be32_to_cpu(ents[i].hashval) > in xfs_dir3_leaf_check_int()
124 be32_to_cpu(ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
127 if (ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
349 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_block_to_leaf() local
379 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_block_to_leaf()
394 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
440 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_stale() argument
[all …]
Dxfs_dir2_node.c432 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_add() local
442 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_add()
464 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add()
466 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add()
476 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leafn_add()
489 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leafn_add()
534 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_lasthash() local
549 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lasthash()
550 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash()
579 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_lookup_for_addname() local
[all …]
Dxfs_dir2_priv.h60 struct xfs_dir2_leaf_entry *ents, int *indexp,
77 struct xfs_dir2_leaf_entry *ents, int index, int compact,
Dxfs_dir2_block.c917 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_to_block() local
927 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_to_block()
1007 if (ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir2_leaf_to_block()
1009 lep[to++] = ents[from]; in xfs_dir2_leaf_to_block()
Dxfs_da_btree.c592 struct xfs_dir2_leaf_entry *ents; in xfs_da3_root_split() local
596 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_da3_root_split()
600 size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); in xfs_da3_root_split()
2240 struct xfs_dir2_leaf_entry *ents; in xfs_da3_swap_lastblock() local
2244 ents = dp->d_ops->leaf_ents_p(dead_leaf2); in xfs_da3_swap_lastblock()
2246 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
/Linux-v5.4/net/can/j1939/
Dbus.c58 ent = &priv->ents[ecu->addr]; in j1939_ecu_map_locked()
85 ent = &priv->ents[ecu->addr]; in j1939_ecu_unmap_locked()
103 for (i = 0; i < ARRAY_SIZE(priv->ents); i++) in j1939_ecu_unmap_all()
104 if (priv->ents[i].ecu) in j1939_ecu_unmap_all()
105 j1939_ecu_unmap_locked(priv->ents[i].ecu); in j1939_ecu_unmap_all()
177 return priv->ents[addr].ecu; in j1939_ecu_find_by_addr_locked()
284 priv->ents[sa].nusers++; in j1939_local_ecu_get()
300 priv->ents[ecu->addr].nusers++; in j1939_local_ecu_get()
315 priv->ents[sa].nusers--; in j1939_local_ecu_put()
328 priv->ents[ecu->addr].nusers--; in j1939_local_ecu_put()
Dmain.c91 priv->ents[skcb->addr.sa].nusers) in j1939_can_recv()
94 priv->ents[skcb->addr.da].nusers) in j1939_can_recv()
Dj1939-priv.h68 } ents[256]; member
Dtransport.c347 priv->ents[skcb->addr.da].nusers) in j1939_session_skb_queue()
1870 priv->ents[skcb->addr.da].nusers) in j1939_tp_send()
/Linux-v5.4/drivers/mtd/ubi/
Dcdev.c694 if (req->ents[i].vol_id < 0 || in rename_volumes()
695 req->ents[i].vol_id >= ubi->vtbl_slots) in rename_volumes()
697 if (req->ents[i].name_len < 0) in rename_volumes()
699 if (req->ents[i].name_len > UBI_VOL_NAME_MAX) in rename_volumes()
701 req->ents[i].name[req->ents[i].name_len] = '\0'; in rename_volumes()
702 n = strlen(req->ents[i].name); in rename_volumes()
703 if (n != req->ents[i].name_len) in rename_volumes()
710 if (req->ents[i].vol_id == req->ents[n].vol_id) { in rename_volumes()
712 req->ents[i].vol_id); in rename_volumes()
715 if (!strcmp(req->ents[i].name, req->ents[n].name)) { in rename_volumes()
[all …]
/Linux-v5.4/fs/xfs/scrub/
Ddabtree.c87 char *ents; in xchk_da_btree_entry() local
97 ents = (char *)xfs_attr3_leaf_entryp(baddr); in xchk_da_btree_entry()
98 return ents + (rec * sizeof(struct xfs_attr_leaf_entry)); in xchk_da_btree_entry()
101 ents = (char *)ds->dargs.dp->d_ops->leaf_ents_p(baddr); in xchk_da_btree_entry()
102 return ents + (rec * sizeof(struct xfs_dir2_leaf_entry)); in xchk_da_btree_entry()
105 ents = (char *)ds->dargs.dp->d_ops->leaf_ents_p(baddr); in xchk_da_btree_entry()
106 return ents + (rec * sizeof(struct xfs_dir2_leaf_entry)); in xchk_da_btree_entry()
109 ents = (char *)ds->dargs.dp->d_ops->node_tree_p(baddr); in xchk_da_btree_entry()
110 return ents + (rec * sizeof(struct xfs_da_node_entry)); in xchk_da_btree_entry()
Ddir.c478 struct xfs_dir2_leaf_entry *ents; in xchk_directory_leaf1_bestfree() local
502 ents = d_ops->leaf_ents_p(leaf); in xchk_directory_leaf1_bestfree()
530 if ((char *)&ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree()
537 hash = be32_to_cpu(ents[i].hashval); in xchk_directory_leaf1_bestfree()
541 if (ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xchk_directory_leaf1_bestfree()
/Linux-v5.4/drivers/media/platform/vimc/
Dvimc-core.c61 const struct vimc_ent_config *ents; member
131 .ents = ent_config,
248 vimc->pipe_cfg->ents[i].drv); in vimc_add_subdevs()
250 strscpy(pdata.entity_name, vimc->pipe_cfg->ents[i].name, in vimc_add_subdevs()
254 vimc->pipe_cfg->ents[i].drv, in vimc_add_subdevs()
/Linux-v5.4/lib/mpi/
Dmpicoder.c334 int x, j, z, lzeros, ents; in mpi_read_raw_from_sgl() local
340 ents = sg_nents_for_len(sgl, nbytes); in mpi_read_raw_from_sgl()
341 if (ents < 0) in mpi_read_raw_from_sgl()
344 sg_miter_start(&miter, sgl, ents, SG_MITER_ATOMIC | SG_MITER_FROM_SG); in mpi_read_raw_from_sgl()
/Linux-v5.4/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c516 struct virtio_gpu_mem_entry *ents, in virtio_gpu_cmd_resource_attach_backing() argument
530 vbuf->data_buf = ents; in virtio_gpu_cmd_resource_attach_backing()
531 vbuf->data_size = sizeof(*ents) * nents; in virtio_gpu_cmd_resource_attach_backing()
966 struct virtio_gpu_mem_entry *ents; in virtio_gpu_object_attach() local
991 ents = kmalloc_array(nents, sizeof(struct virtio_gpu_mem_entry), in virtio_gpu_object_attach()
993 if (!ents) { in virtio_gpu_object_attach()
999 ents[si].addr = cpu_to_le64(use_dma_api in virtio_gpu_object_attach()
1002 ents[si].length = cpu_to_le32(sg->length); in virtio_gpu_object_attach()
1003 ents[si].padding = 0; in virtio_gpu_object_attach()
1007 ents, nents, in virtio_gpu_object_attach()
/Linux-v5.4/include/linux/
Ddma-mapping.h316 int ents; in dma_map_sg_attrs() local
320 ents = dma_direct_map_sg(dev, sg, nents, dir, attrs); in dma_map_sg_attrs()
322 ents = ops->map_sg(dev, sg, nents, dir, attrs); in dma_map_sg_attrs()
323 BUG_ON(ents < 0); in dma_map_sg_attrs()
324 debug_dma_map_sg(dev, sg, nents, ents, dir); in dma_map_sg_attrs()
326 return ents; in dma_map_sg_attrs()
Dnetdevice.h705 u32 ents[0] ____cacheline_aligned_in_smp; member
707 #define RPS_SOCK_FLOW_TABLE_SIZE(_num) (offsetof(struct rps_sock_flow_table, ents[_num]))
724 if (table->ents[index] != val) in rps_record_sock_flow()
725 table->ents[index] = val; in rps_record_sock_flow()
/Linux-v5.4/arch/sparc/mm/
Dinit_64.c115 int ents, ret, i; in read_obp_memory() local
117 ents = prop_size / sizeof(struct linux_prom64_registers); in read_obp_memory()
118 if (ents > MAX_BANKS) { in read_obp_memory()
135 for (i = 0; i < ents; i++) { in read_obp_memory()
156 (ents - i - 1) * sizeof(regs[0])); in read_obp_memory()
158 ents--; in read_obp_memory()
165 *num_ents = ents; in read_obp_memory()
167 sort(regs, ents, sizeof(struct linux_prom64_registers), in read_obp_memory()
614 int n, node, ents, first, last, i; in read_obp_translations() local
636 ents = n; in read_obp_translations()
[all …]
/Linux-v5.4/include/uapi/mtd/
Dubi-user.h404 } ents[UBI_MAX_RNVOL]; member
/Linux-v5.4/drivers/crypto/caam/
Dcaampkc.c204 int lzeros, ents; in caam_rsa_count_leading_zeros() local
209 ents = sg_nents_for_len(sgl, nbytes); in caam_rsa_count_leading_zeros()
210 if (ents < 0) in caam_rsa_count_leading_zeros()
211 return ents; in caam_rsa_count_leading_zeros()
213 sg_miter_start(&miter, sgl, ents, SG_MITER_FROM_SG | flags); in caam_rsa_count_leading_zeros()
/Linux-v5.4/drivers/media/platform/omap3isp/
Dispvideo.c960 struct media_entity *ents[] = { in isp_video_check_external_subdevs() local
979 for (i = 0; i < ARRAY_SIZE(ents); i++) { in isp_video_check_external_subdevs()
981 if (!media_entity_enum_test(&pipe->ent_enum, ents[i])) in isp_video_check_external_subdevs()
985 source_pad = media_entity_remote_pad(&ents[i]->pads[0]); in isp_video_check_external_subdevs()
990 sink = ents[i]; in isp_video_check_external_subdevs()
/Linux-v5.4/kernel/dma/
Ddebug.c562 static struct dma_debug_entry *ents[CACHELINES_PER_PAGE]; in debug_dma_assert_idle() local
564 void **results = (void **) &ents; in debug_dma_assert_idle()
580 phys_addr_t ent_cln = to_cacheline_number(ents[i]); in debug_dma_assert_idle()
583 entry = ents[i]; in debug_dma_assert_idle()
/Linux-v5.4/net/core/
Dsysctl_net_core.c89 sock_table->ents[i] = RPS_NO_CPU; in rps_sock_flow_sysctl()
/Linux-v5.4/drivers/gpu/drm/qxl/
Dqxl_dev.h824 uint32_t ents[0]; member
/Linux-v5.4/fs/proc/
Dbase.c2505 const struct pid_entry *ents, unsigned int nents) in proc_pident_readdir() argument
2519 for (p = ents + (ctx->pos - 2); p < ents + nents; p++) { in proc_pident_readdir()

12