/linux/arch/powerpc/boot/ |
A D | devtree.c | 21 int naddr, nsize, i; in dt_fixup_memory() local 32 if (getprop(root, "#size-cells", &nsize, sizeof(nsize)) < 0) in dt_fixup_memory() 33 nsize = 1; in dt_fixup_memory() 35 nsize = be32_to_cpu(nsize); in dt_fixup_memory() 36 if (nsize < 1 || nsize > 2) in dt_fixup_memory() 43 if (nsize == 2) in dt_fixup_memory() 144 *nsize = 1; in dt_get_reg_format() 146 *nsize = be32_to_cpu(*nsize); in dt_get_reg_format() 252 if (nsize > 2) in dt_xlate() 264 if (nsize == 2) { in dt_xlate() [all …]
|
A D | cuboot-pq2.c | 53 u32 naddr, nsize; in update_cs_ranges() local 61 dt_get_reg_format(bus_node, &naddr, &nsize); in update_cs_ranges() 62 if (naddr != 2 || nsize != 1) in update_cs_ranges() 69 dt_get_reg_format(parent_node, &naddr, &nsize); in update_cs_ranges() 70 if (naddr != 1 || nsize != 1) in update_cs_ranges() 128 u32 naddr, nsize, mem_pow2, mem_mask; in fixup_pci() local 143 dt_get_reg_format(node, &naddr, &nsize); in fixup_pci() 144 if (naddr != 3 || nsize != 2) in fixup_pci() 151 dt_get_reg_format(parent_node, &naddr, &nsize); in fixup_pci() 152 if (naddr != 1 || nsize != 1) in fixup_pci()
|
A D | ops.h | 98 void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize);
|
/linux/lib/mpi/ |
A D | mpi-div.c | 87 mpi_size_t nsize = num->nlimbs; in mpi_tdiv_qr() local 101 rsize = nsize + 1; in mpi_tdiv_qr() 109 MPN_COPY(rem->d, num->d, nsize); in mpi_tdiv_qr() 134 rlimb = mpihelp_divmod_1(qp, np, nsize, dp[0]); in mpi_tdiv_qr() 139 rlimb = mpihelp_mod_1(np, nsize, dp[0]); in mpi_tdiv_qr() 155 MPN_COPY(np, qp, nsize); in mpi_tdiv_qr() 184 rp[nsize] = nlimb; in mpi_tdiv_qr() 185 rsize = nsize + 1; in mpi_tdiv_qr() 187 rsize = nsize; in mpi_tdiv_qr() 202 MPN_COPY(rp, np, nsize); in mpi_tdiv_qr() [all …]
|
A D | mpih-div.c | 190 mpi_ptr_t np, mpi_size_t nsize, mpi_ptr_t dp, mpi_size_t dsize) in mpihelp_divrem() argument 211 n1 = np[nsize - 1]; in mpihelp_divrem() 219 for (i = nsize - 2; i >= 0; i--) in mpihelp_divrem() 236 np += nsize - 2; in mpihelp_divrem() 247 for (i = qextra_limbs + nsize - 2 - 1; i >= 0; i--) { in mpihelp_divrem() 300 np += nsize - dsize; in mpihelp_divrem() 314 for (i = qextra_limbs + nsize - dsize - 1; i >= 0; i--) { in mpihelp_divrem()
|
A D | mpi-internal.h | 200 mpi_ptr_t np, mpi_size_t nsize,
|
/linux/fs/cifs/ |
A D | cifsacl.c | 935 u16 nsize = 0; in populate_new_aces() local 946 nsize = *pnsize; in populate_new_aces() 1026 *pnsize = nsize; in populate_new_aces() 1038 u16 nsize = 0; in replace_sids_and_copy_aces() local 1048 nsize = sizeof(struct cifs_acl); in replace_sids_and_copy_aces() 1063 nsize += ace_size; in replace_sids_and_copy_aces() 1066 return nsize; in replace_sids_and_copy_aces() 1078 u16 nsize = 0; in set_chmod_dacl() local 1092 pnmode, &num_aces, &nsize, in set_chmod_dacl() 1109 pnmode, &num_aces, &nsize, in set_chmod_dacl() [all …]
|
/linux/fs/jffs2/ |
A D | summary.c | 79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem() 148 temp->nsize = rd->nsize; in jffs2_sum_add_dirent_mem() 152 memcpy(temp->name, rd->name, rd->nsize); in jffs2_sum_add_dirent_mem() 294 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec() 300 memcpy(temp->name,node->d.name,node->d.nsize); in jffs2_sum_add_kvec() 445 checkedlen = strnlen(spd->name, spd->nsize); in jffs2_sum_process_sum_data() 452 if (checkedlen < spd->nsize) { in jffs2_sum_process_sum_data() 486 sp += JFFS2_SUMMARY_DIRENT_SIZE(spd->nsize); in jffs2_sum_process_sum_data() 745 sdrnt_ptr->nsize = temp->d.nsize; in jffs2_sum_write_data() 749 temp->d.nsize); in jffs2_sum_write_data() [all …]
|
A D | gc.c | 671 if (strnlen(node->d.name, node->d.nsize) != node->d.nsize) { in jffs2_garbage_collect_pristine() 677 if (node->d.nsize) { in jffs2_garbage_collect_pristine() 678 crc = crc32(0, node->d.name, node->d.nsize); in jffs2_garbage_collect_pristine() 860 rd.nsize = strlen(fd->name); in jffs2_garbage_collect_dirent() 861 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); in jffs2_garbage_collect_dirent() 875 rd.name_crc = cpu_to_je32(crc32(0, fd->name, rd.nsize)); in jffs2_garbage_collect_dirent() 877 ret = jffs2_reserve_space_gc(c, sizeof(rd)+rd.nsize, &alloclen, in jffs2_garbage_collect_dirent() 878 JFFS2_SUMMARY_DIRENT_SIZE(rd.nsize)); in jffs2_garbage_collect_dirent() 881 sizeof(rd)+rd.nsize, ret); in jffs2_garbage_collect_dirent() 884 new_fd = jffs2_write_dirent(c, f, &rd, fd->name, rd.nsize, ALLOC_GC); in jffs2_garbage_collect_dirent() [all …]
|
A D | readinode.c | 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 629 fd = jffs2_alloc_full_dirent(rd->nsize + 1); in read_direntry() 653 min_t(uint32_t, rd->nsize, (read - sizeof(*rd)) )); in read_direntry() 656 if (rd->nsize + sizeof(*rd) > read) { in read_direntry() 662 rd->nsize - already, &read, &fd->name[already]); in read_direntry() 663 if (unlikely(read != rd->nsize - already) && likely(!err)) { in read_direntry() 666 rd->nsize - already, read); in read_direntry() 681 crc = crc32(0, fd->name, rd->nsize); in read_direntry() 693 fd->nhash = full_name_hash(NULL, fd->name, rd->nsize); in read_direntry() [all …]
|
A D | summary.h | 62 uint8_t nsize; /* dirent name size */ member 118 uint8_t nsize; /* dirent name size */ member
|
A D | write.c | 519 rd->nsize = qstr->len; in jffs2_do_create() 582 rd->nsize = namelen; in jffs2_do_unlink() 699 rd->nsize = namelen; in jffs2_do_link()
|
A D | dir.c | 408 rd->nsize = namelen; in jffs2_symlink() 552 rd->nsize = namelen; in jffs2_mkdir() 726 rd->nsize = namelen; in jffs2_mknod()
|
A D | debug.c | 846 printk(JFFS2_DBG "nsize:\t%#02x\n", node.d.nsize); in __jffs2_dbg_dump_node() 851 node.d.name[node.d.nsize] = '\0'; in __jffs2_dbg_dump_node()
|
/linux/fs/ntfs3/ |
A D | inode.c | 1099 u32 size, u16 *nsize) in ntfs_create_reparse_buffer() argument 1121 *nsize = ntfs_reparse_bytes(err); in ntfs_create_reparse_buffer() 1123 if (*nsize > sbi->reparse.max_size) { in ntfs_create_reparse_buffer() 1189 u16 t16, nsize = 0, aid = 0; in ntfs_create_inode() local 1482 asize = ALIGN(SIZEOF_RESIDENT + nsize, 8); in ntfs_create_inode() 1491 CLST clst = bytes_to_cluster(sbi, nsize); in ntfs_create_inode() 1500 attr->nres.data_size = cpu_to_le64(nsize); in ntfs_create_inode() 1503 cpu_to_le64(ntfs_up_cluster(sbi, nsize)); in ntfs_create_inode() 1525 attr->res.data_size = cpu_to_le32(nsize); in ntfs_create_inode() 1527 nsize = 0; in ntfs_create_inode() [all …]
|
A D | record.c | 519 u32 nsize, asize = le32_to_cpu(attr->size); in mi_resize_attr() local 538 nsize = asize + dsize; in mi_resize_attr() 548 nsize = asize - dsize; in mi_resize_attr() 555 attr->size = cpu_to_le32(nsize); in mi_resize_attr()
|
A D | fslog.c | 2934 u32 nsize) in change_attr_size() argument 2937 int dsize = nsize - asize; in change_attr_size() 3286 nsize = aoff + dlen; in do_action() 3295 if (nsize > asize) in do_action() 3300 if (nsize > asize && nsize - asize > record_size - used) in do_action() 3303 nsize = ALIGN(nsize, 8); in do_action() 3306 if (nsize < asize) { in do_action() 3338 nsize = aoff + dlen; in do_action() 3344 (nsize > asize && nsize - asize > record_size - used)) { in do_action() 3348 nsize = ALIGN(nsize, 8); in do_action() [all …]
|
/linux/drivers/gpu/drm/selftests/ |
A D | test-drm_mm.c | 1596 unsigned int nsize = (size - n + 1) / 2; in igt_evict() local 1598 DRM_MM_BUG_ON(!nsize); in igt_evict() 1603 nsize, n, in igt_evict() 1607 mode->name, nsize, n); in igt_evict() 1696 DRM_MM_BUG_ON(!nsize); in igt_evict_range() 1701 nsize, n, in igt_evict_range() 2327 DRM_MM_BUG_ON(!nsize); in igt_color_evict() 2332 nsize, n, color++, in igt_color_evict() 2336 mode->name, nsize, n); in igt_color_evict() 2428 DRM_MM_BUG_ON(!nsize); in igt_color_evict_range() [all …]
|
/linux/drivers/misc/cxl/ |
A D | of.c | 72 int i, len, entry_size, naddr, nsize, type; in read_phys_addr() local 77 nsize = of_n_size_cells(np); in read_phys_addr() 81 entry_size = naddr + nsize; in read_phys_addr() 85 size = of_read_number(&prop[naddr], nsize); in read_phys_addr()
|
/linux/arch/powerpc/platforms/cell/ |
A D | iommu.c | 798 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local 807 nsize = of_n_size_cells(np); in cell_iommu_get_fixed_address() 827 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address() 836 size = of_read_number(ranges + i + naddr + pna, nsize); in cell_iommu_get_fixed_address()
|
/linux/net/xfrm/ |
A D | xfrm_state.c | 132 unsigned long nsize, osize; in xfrm_hash_resize() local 137 ndst = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 140 nsrc = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 142 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize() 145 nspi = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 147 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize() 148 xfrm_hash_free(nsrc, nsize); in xfrm_hash_resize() 151 nseq = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 153 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize() 154 xfrm_hash_free(nsrc, nsize); in xfrm_hash_resize() [all …]
|
/linux/include/uapi/linux/ |
A D | jffs2.h | 121 __u8 nsize; member
|
/linux/fs/gfs2/ |
A D | xattr.c | 36 static int ea_calc_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize, in ea_calc_size() argument 42 *size = ALIGN(sizeof(struct gfs2_ea_header) + nsize + dsize, 8); in ea_calc_size() 48 *size = ALIGN(sizeof(struct gfs2_ea_header) + nsize + in ea_calc_size() 54 static int ea_check_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize) in ea_check_size() argument 61 ea_calc_size(sdp, nsize, dsize, &size); in ea_check_size()
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_legacy_crtc.c | 450 unsigned long nsize, osize; in radeon_crtc_do_set_base() local 454 nsize = radeon_bo_size(rbo); in radeon_crtc_do_set_base() 455 if (nsize <= osize && !radeon_bo_reserve(old_rbo, false)) { in radeon_crtc_do_set_base()
|
/linux/net/sched/ |
A D | sch_api.c | 680 unsigned int nsize, nmask, osize; in qdisc_class_hash_grow() local 686 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow() 687 nmask = nsize - 1; in qdisc_class_hash_grow() 688 nhash = qdisc_class_hash_alloc(nsize); in qdisc_class_hash_grow() 703 clhash->hashsize = nsize; in qdisc_class_hash_grow()
|