/linux-2.6.39/arch/powerpc/boot/ |
D | devtree.c | 24 int naddr, nsize, i; in dt_fixup_memory() local 33 if (getprop(root, "#size-cells", &nsize, sizeof(nsize)) < 0) in dt_fixup_memory() 34 nsize = 1; in dt_fixup_memory() 35 if (nsize < 1 || nsize > 2) in dt_fixup_memory() 36 fatal("Can't cope with #size-cells == %d in /\n\r", nsize); in dt_fixup_memory() 42 if (nsize == 2) in dt_fixup_memory() 53 for (i = 1; i < (naddr + nsize); i++) in dt_fixup_memory() 57 setprop(memory, "reg", memreg, (naddr + nsize)*sizeof(u32)); in dt_fixup_memory() 136 void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize) in dt_get_reg_format() argument 140 if (getprop(node, "#size-cells", nsize, 4) != 4) in dt_get_reg_format() [all …]
|
D | cuboot-pq2.c | 56 u32 naddr, nsize; in update_cs_ranges() local 64 dt_get_reg_format(bus_node, &naddr, &nsize); in update_cs_ranges() 65 if (naddr != 2 || nsize != 1) in update_cs_ranges() 72 dt_get_reg_format(parent_node, &naddr, &nsize); in update_cs_ranges() 73 if (naddr != 1 || nsize != 1) in update_cs_ranges() 131 u32 naddr, nsize, mem_pow2, mem_mask; in fixup_pci() local 146 dt_get_reg_format(node, &naddr, &nsize); in fixup_pci() 147 if (naddr != 3 || nsize != 2) in fixup_pci() 154 dt_get_reg_format(parent_node, &naddr, &nsize); in fixup_pci() 155 if (naddr != 1 || nsize != 1) in fixup_pci()
|
D | ops.h | 98 void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize);
|
/linux-2.6.39/fs/jffs2/ |
D | summary.c | 77 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem() 135 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + rd->nsize, GFP_KERNEL); in jffs2_sum_add_dirent_mem() 146 temp->nsize = rd->nsize; in jffs2_sum_add_dirent_mem() 150 memcpy(temp->name, rd->name, rd->nsize); in jffs2_sum_add_dirent_mem() 281 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL); in jffs2_sum_add_kvec() 292 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec() 298 memcpy(temp->name,node->d.name,node->d.nsize); in jffs2_sum_add_kvec() 302 memcpy(temp->name,invecs[1].iov_base,node->d.nsize); in jffs2_sum_add_kvec() 443 checkedlen = strnlen(spd->name, spd->nsize); in jffs2_sum_process_sum_data() 449 if (checkedlen < spd->nsize) { in jffs2_sum_process_sum_data() [all …]
|
D | gc.c | 630 if (strnlen(node->d.name, node->d.nsize) != node->d.nsize) { in jffs2_garbage_collect_pristine() 635 if (node->d.nsize) { in jffs2_garbage_collect_pristine() 636 crc = crc32(0, node->d.name, node->d.nsize); in jffs2_garbage_collect_pristine() 810 rd.nsize = strlen(fd->name); in jffs2_garbage_collect_dirent() 811 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); in jffs2_garbage_collect_dirent() 825 rd.name_crc = cpu_to_je32(crc32(0, fd->name, rd.nsize)); in jffs2_garbage_collect_dirent() 827 ret = jffs2_reserve_space_gc(c, sizeof(rd)+rd.nsize, &alloclen, in jffs2_garbage_collect_dirent() 828 JFFS2_SUMMARY_DIRENT_SIZE(rd.nsize)); in jffs2_garbage_collect_dirent() 831 sizeof(rd)+rd.nsize, ret); in jffs2_garbage_collect_dirent() 834 new_fd = jffs2_write_dirent(c, f, &rd, fd->name, rd.nsize, ALLOC_GC); in jffs2_garbage_collect_dirent() [all …]
|
D | summary.h | 62 uint8_t nsize; /* dirent name size */ member 118 uint8_t nsize; /* dirent name size */ member
|
D | readinode.c | 627 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 629 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 646 fd = jffs2_alloc_full_dirent(rd->nsize + 1); in read_direntry() 670 min_t(uint32_t, rd->nsize, (read - sizeof(*rd)) )); in read_direntry() 673 if (rd->nsize + sizeof(*rd) > read) { in read_direntry() 679 rd->nsize - already, &read, &fd->name[already]); in read_direntry() 680 if (unlikely(read != rd->nsize - already) && likely(!err)) in read_direntry() 690 fd->nhash = full_name_hash(fd->name, rd->nsize); in read_direntry() 692 fd->name[rd->nsize] = '\0'; in read_direntry()
|
D | write.c | 505 rd->nsize = qstr->len; in jffs2_do_create() 568 rd->nsize = namelen; in jffs2_do_unlink() 683 rd->nsize = namelen; in jffs2_do_link()
|
D | dir.c | 421 rd->nsize = namelen; in jffs2_symlink() 565 rd->nsize = namelen; in jffs2_mkdir() 738 rd->nsize = namelen; in jffs2_mknod()
|
D | scan.c | 1032 checkedlen = strnlen(rd->name, rd->nsize); in jffs2_scan_dirent_node() 1033 if (checkedlen < rd->nsize) { in jffs2_scan_dirent_node() 1044 crc = crc32(0, fd->name, rd->nsize); in jffs2_scan_dirent_node()
|
D | debug.c | 840 printk(JFFS2_DBG "nsize:\t%#02x\n", node.d.nsize); in __jffs2_dbg_dump_node() 845 node.d.name[node.d.nsize] = '\0'; in __jffs2_dbg_dump_node()
|
/linux-2.6.39/fs/nfs/ |
D | fscache-index.c | 173 uint16_t nsize; in nfs_fscache_inode_get_key() local 176 nsize = nfsi->fh.size; in nfs_fscache_inode_get_key() 177 memcpy(buffer, nfsi->fh.data, nsize); in nfs_fscache_inode_get_key() 178 return nsize; in nfs_fscache_inode_get_key()
|
/linux-2.6.39/sound/core/ |
D | info.c | 86 unsigned int nsize) in resize_info_buffer() argument 90 nsize = PAGE_ALIGN(nsize); in resize_info_buffer() 91 nbuf = krealloc(buffer->buffer, nsize, GFP_KERNEL); in resize_info_buffer() 96 buffer->len = nsize; in resize_info_buffer()
|
/linux-2.6.39/include/linux/ |
D | jffs2.h | 126 __u8 nsize; member
|
/linux-2.6.39/arch/powerpc/platforms/cell/ |
D | iommu.c | 897 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local 902 nsize = of_n_size_cells(np); in cell_iommu_get_fixed_address() 922 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address() 931 size = of_read_number(ranges + i + naddr + pna, nsize); in cell_iommu_get_fixed_address()
|
/linux-2.6.39/net/xfrm/ |
D | xfrm_state.c | 111 unsigned long nsize, osize; in xfrm_hash_resize() local 117 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize() 118 ndst = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 121 nsrc = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 123 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize() 126 nspi = xfrm_hash_alloc(nsize); in xfrm_hash_resize() 128 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize() 129 xfrm_hash_free(nsrc, nsize); in xfrm_hash_resize() 135 nhashmask = (nsize / sizeof(struct hlist_head)) - 1U; in xfrm_hash_resize()
|
D | xfrm_policy.c | 396 unsigned int nsize = (nhashmask + 1) * sizeof(struct hlist_head); in xfrm_bydst_resize() local 398 struct hlist_head *ndst = xfrm_hash_alloc(nsize); in xfrm_bydst_resize() 421 unsigned int nsize = (nhashmask + 1) * sizeof(struct hlist_head); in xfrm_byidx_resize() local 423 struct hlist_head *nidx = xfrm_hash_alloc(nsize); in xfrm_byidx_resize()
|
/linux-2.6.39/net/ipv4/ |
D | tcp_output.c | 1002 int nsize, old_factor; in tcp_fragment() local 1009 nsize = skb_headlen(skb) - len; in tcp_fragment() 1010 if (nsize < 0) in tcp_fragment() 1011 nsize = 0; in tcp_fragment() 1019 buff = sk_stream_alloc_skb(sk, nsize, GFP_ATOMIC); in tcp_fragment() 1025 nlen = skb->len - len - nsize; in tcp_fragment() 1043 skb_put(buff, nsize), in tcp_fragment() 1044 nsize, 0); in tcp_fragment()
|
/linux-2.6.39/fs/gfs2/ |
D | xattr.c | 40 static int ea_calc_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize, in ea_calc_size() argument 46 *size = ALIGN(sizeof(struct gfs2_ea_header) + nsize + dsize, 8); in ea_calc_size() 52 *size = ALIGN(sizeof(struct gfs2_ea_header) + nsize + in ea_calc_size() 58 static int ea_check_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize) in ea_check_size() argument 65 ea_calc_size(sdp, nsize, dsize, &size); in ea_check_size()
|
/linux-2.6.39/net/sched/ |
D | sch_api.c | 550 unsigned int nsize, nmask, osize; in qdisc_class_hash_grow() local 556 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow() 557 nmask = nsize - 1; in qdisc_class_hash_grow() 558 nhash = qdisc_class_hash_alloc(nsize); in qdisc_class_hash_grow() 573 clhash->hashsize = nsize; in qdisc_class_hash_grow()
|