Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 88) sorted by relevance

1234

/fs/yaffs2/
Dyaffs_checkptrw.c21 static int yaffs_CheckpointSpaceOk(yaffs_Device *dev) in yaffs_CheckpointSpaceOk() argument
23 int blocksAvailable = dev->nErasedBlocks - dev->nReservedBlocks; in yaffs_CheckpointSpaceOk()
33 static int yaffs_CheckpointErase(yaffs_Device *dev) in yaffs_CheckpointErase() argument
37 if (!dev->eraseBlockInNAND) in yaffs_CheckpointErase()
40 dev->internalStartBlock, dev->internalEndBlock)); in yaffs_CheckpointErase()
42 for (i = dev->internalStartBlock; i <= dev->internalEndBlock; i++) { in yaffs_CheckpointErase()
43 yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, i); in yaffs_CheckpointErase()
47 dev->nBlockErasures++; in yaffs_CheckpointErase()
49 if (dev->eraseBlockInNAND(dev, i - dev->blockOffset /* realign */)) { in yaffs_CheckpointErase()
51 dev->nErasedBlocks++; in yaffs_CheckpointErase()
[all …]
Dyaffs_guts.c42 static void yaffs_RetireBlock(yaffs_Device *dev, int blockInNAND);
43 static void yaffs_HandleWriteChunkError(yaffs_Device *dev, int chunkInNAND,
45 static void yaffs_HandleWriteChunkOk(yaffs_Device *dev, int chunkInNAND,
48 static void yaffs_HandleUpdateChunk(yaffs_Device *dev, int chunkInNAND,
56 static void yaffs_HardlinkFixup(yaffs_Device *dev, yaffs_Object *hardList);
58 static int yaffs_WriteNewChunkWithTagsToNAND(yaffs_Device *dev,
65 static yaffs_Object *yaffs_CreateNewObject(yaffs_Device *dev, int number,
77 static yaffs_BlockInfo *yaffs_GetBlockInfo(yaffs_Device *dev, int blockNo);
80 static int yaffs_CheckChunkErased(struct yaffs_DeviceStruct *dev,
88 static int yaffs_AllocateChunk(yaffs_Device *dev, int useReserve,
[all …]
Dyaffs_nand.c23 int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND, in yaffs_ReadChunkWithTagsFromNAND() argument
30 int realignedChunkInNAND = chunkInNAND - dev->chunkOffset; in yaffs_ReadChunkWithTagsFromNAND()
32 dev->nPageReads++; in yaffs_ReadChunkWithTagsFromNAND()
38 if (dev->readChunkWithTagsFromNAND) in yaffs_ReadChunkWithTagsFromNAND()
39 result = dev->readChunkWithTagsFromNAND(dev, realignedChunkInNAND, buffer, in yaffs_ReadChunkWithTagsFromNAND()
42 result = yaffs_TagsCompatabilityReadChunkWithTagsFromNAND(dev, in yaffs_ReadChunkWithTagsFromNAND()
49 yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, chunkInNAND/dev->nChunksPerBlock); in yaffs_ReadChunkWithTagsFromNAND()
50 yaffs_HandleChunkError(dev, bi); in yaffs_ReadChunkWithTagsFromNAND()
56 int yaffs_WriteChunkWithTagsToNAND(yaffs_Device *dev, in yaffs_WriteChunkWithTagsToNAND() argument
62 dev->nPageWrites++; in yaffs_WriteChunkWithTagsToNAND()
[all …]
Dyaffs_mtdif2.c34 int nandmtd2_WriteChunkWithTagsToNAND(yaffs_Device *dev, int chunkInNAND, in nandmtd2_WriteChunkWithTagsToNAND() argument
38 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd2_WriteChunkWithTagsToNAND()
55 addr = ((loff_t) chunkInNAND) * dev->totalBytesPerChunk; in nandmtd2_WriteChunkWithTagsToNAND()
63 else if (dev->inbandTags) { in nandmtd2_WriteChunkWithTagsToNAND()
65 pt2tp = (yaffs_PackedTags2TagsPart *)(data + dev->nDataBytesPerChunk); in nandmtd2_WriteChunkWithTagsToNAND()
72 ops.ooblen = (dev->inbandTags) ? 0 : sizeof(pt); in nandmtd2_WriteChunkWithTagsToNAND()
73 ops.len = dev->totalBytesPerChunk; in nandmtd2_WriteChunkWithTagsToNAND()
76 ops.oobbuf = (dev->inbandTags) ? NULL : (void *)&pt; in nandmtd2_WriteChunkWithTagsToNAND()
80 if (!dev->inbandTags) { in nandmtd2_WriteChunkWithTagsToNAND()
82 mtd->write_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd2_WriteChunkWithTagsToNAND()
[all …]
Dyaffs_fs.c207 dev_t dev);
210 int dev);
368 static void yaffs_GrossLock(yaffs_Device *dev) in yaffs_GrossLock() argument
371 down(&dev->grossLock); in yaffs_GrossLock()
375 static void yaffs_GrossUnlock(yaffs_Device *dev) in yaffs_GrossUnlock() argument
378 up(&dev->grossLock); in yaffs_GrossUnlock()
387 yaffs_Device *dev = yaffs_DentryToObject(dentry)->myDev; in yaffs_readlink() local
389 yaffs_GrossLock(dev); in yaffs_readlink()
393 yaffs_GrossUnlock(dev); in yaffs_readlink()
411 yaffs_Device *dev = yaffs_DentryToObject(dentry)->myDev; in yaffs_follow_link() local
[all …]
Dyaffs_tagscompat.c19 static void yaffs_HandleReadDataError(yaffs_Device *dev, int chunkInNAND);
21 static void yaffs_CheckWrittenBlock(yaffs_Device *dev, int chunkInNAND);
22 static void yaffs_HandleWriteChunkOk(yaffs_Device *dev, int chunkInNAND,
25 static void yaffs_HandleUpdateChunk(yaffs_Device *dev, int chunkInNAND,
27 static void yaffs_HandleWriteChunkError(yaffs_Device *dev, int chunkInNAND);
135 static void yaffs_GetTagsFromSpare(yaffs_Device *dev, yaffs_Spare *sparePtr, in yaffs_GetTagsFromSpare() argument
152 dev->tagsEccFixed++; in yaffs_GetTagsFromSpare()
154 dev->tagsEccUnfixed++; in yaffs_GetTagsFromSpare()
162 static int yaffs_WriteChunkToNAND(struct yaffs_DeviceStruct *dev, in yaffs_WriteChunkToNAND() argument
166 if (chunkInNAND < dev->startBlock * dev->nChunksPerBlock) { in yaffs_WriteChunkToNAND()
[all …]
Dyaffs_mtdif.c74 int nandmtd_WriteChunkToNAND(yaffs_Device *dev, int chunkInNAND, in nandmtd_WriteChunkToNAND() argument
77 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd_WriteChunkToNAND()
84 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd_WriteChunkToNAND()
89 retval = mtd->write(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND()
92 if (dev->useNANDECC) { in nandmtd_WriteChunkToNAND()
100 ops.len = data ? dev->nDataBytesPerChunk : ops.ooblen; in nandmtd_WriteChunkToNAND()
110 if (dev->useNANDECC) in nandmtd_WriteChunkToNAND()
112 mtd->write_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND()
117 mtd->write_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND()
123 mtd->write(mtd, addr, dev->nDataBytesPerChunk, &dummy, in nandmtd_WriteChunkToNAND()
[all …]
Dyaffs_mtdif1.c91 int nandmtd1_WriteChunkWithTagsToNAND(yaffs_Device *dev, in nandmtd1_WriteChunkWithTagsToNAND() argument
94 struct mtd_info *mtd = dev->genericDevice; in nandmtd1_WriteChunkWithTagsToNAND()
95 int chunkBytes = dev->nDataBytesPerChunk; in nandmtd1_WriteChunkWithTagsToNAND()
169 int nandmtd1_ReadChunkWithTagsFromNAND(yaffs_Device *dev, in nandmtd1_ReadChunkWithTagsFromNAND() argument
172 struct mtd_info *mtd = dev->genericDevice; in nandmtd1_ReadChunkWithTagsFromNAND()
173 int chunkBytes = dev->nDataBytesPerChunk; in nandmtd1_ReadChunkWithTagsFromNAND()
212 dev->eccFixed++; in nandmtd1_ReadChunkWithTagsFromNAND()
217 dev->eccUnfixed++; in nandmtd1_ReadChunkWithTagsFromNAND()
252 dev->tagsEccFixed++; in nandmtd1_ReadChunkWithTagsFromNAND()
258 dev->tagsEccUnfixed++; in nandmtd1_ReadChunkWithTagsFromNAND()
[all …]
Dyaffs_guts.h569 int (*writeChunkToNAND) (struct yaffs_DeviceStruct *dev,
572 int (*readChunkFromNAND) (struct yaffs_DeviceStruct *dev,
575 int (*eraseBlockInNAND) (struct yaffs_DeviceStruct *dev,
577 int (*initialiseNAND) (struct yaffs_DeviceStruct *dev);
578 int (*deinitialiseNAND) (struct yaffs_DeviceStruct *dev);
581 int (*writeChunkWithTagsToNAND) (struct yaffs_DeviceStruct *dev,
584 int (*readChunkWithTagsFromNAND) (struct yaffs_DeviceStruct *dev,
587 int (*markNANDBlockBad) (struct yaffs_DeviceStruct *dev, int blockNo);
588 int (*queryNANDBlock) (struct yaffs_DeviceStruct *dev, int blockNo,
814 int yaffs_GutsInitialise(yaffs_Device *dev);
[all …]
Dyaffs_checkptrw.h21 int yaffs_CheckpointOpen(yaffs_Device *dev, int forWriting);
23 int yaffs_CheckpointWrite(yaffs_Device *dev, const void *data, int nBytes);
25 int yaffs_CheckpointRead(yaffs_Device *dev, void *data, int nBytes);
27 int yaffs_GetCheckpointSum(yaffs_Device *dev, __u32 *sum);
29 int yaffs_CheckpointClose(yaffs_Device *dev);
31 int yaffs_CheckpointInvalidateStream(yaffs_Device *dev);
Dyaffs_nand.h22 int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND,
26 int yaffs_WriteChunkWithTagsToNAND(yaffs_Device *dev,
31 int yaffs_MarkBlockBad(yaffs_Device *dev, int blockNo);
33 int yaffs_QueryInitialBlockState(yaffs_Device *dev,
38 int yaffs_EraseBlockInNAND(struct yaffs_DeviceStruct *dev,
41 int yaffs_InitialiseNAND(struct yaffs_DeviceStruct *dev);
Dyaffs_nandemul2k.h23 int nandemul2k_WriteChunkWithTagsToNAND(struct yaffs_DeviceStruct *dev,
26 int nandemul2k_ReadChunkWithTagsFromNAND(struct yaffs_DeviceStruct *dev,
29 int nandemul2k_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
30 int nandemul2k_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
32 int nandemul2k_EraseBlockInNAND(struct yaffs_DeviceStruct *dev,
34 int nandemul2k_InitialiseNAND(struct yaffs_DeviceStruct *dev);
Dyaffs_getblockinfo.h22 static Y_INLINE yaffs_BlockInfo *yaffs_GetBlockInfo(yaffs_Device * dev, int blk) in yaffs_GetBlockInfo() argument
24 if (blk < dev->internalStartBlock || blk > dev->internalEndBlock) { in yaffs_GetBlockInfo()
31 return &dev->blockInfo[blk - dev->internalStartBlock]; in yaffs_GetBlockInfo()
Dyaffs_mtdif2.h20 int nandmtd2_WriteChunkWithTagsToNAND(yaffs_Device *dev, int chunkInNAND,
23 int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND,
25 int nandmtd2_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
26 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
Dyaffs_mtdif1.h17 int nandmtd1_WriteChunkWithTagsToNAND(yaffs_Device *dev, int chunkInNAND,
20 int nandmtd1_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND,
23 int nandmtd1_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
25 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
Dyaffs_mtdif.h26 int nandmtd_WriteChunkToNAND(yaffs_Device *dev, int chunkInNAND,
28 int nandmtd_ReadChunkFromNAND(yaffs_Device *dev, int chunkInNAND, __u8 *data,
30 int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber);
31 int nandmtd_InitialiseNAND(yaffs_Device *dev);
Dyaffs_tagscompat.h20 int yaffs_TagsCompatabilityWriteChunkWithTagsToNAND(yaffs_Device *dev,
24 int yaffs_TagsCompatabilityReadChunkWithTagsFromNAND(yaffs_Device *dev,
28 int yaffs_TagsCompatabilityMarkNANDBlockBad(struct yaffs_DeviceStruct *dev,
30 int yaffs_TagsCompatabilityQueryNANDBlock(struct yaffs_DeviceStruct *dev,
/fs/notify/inotify/
Dinotify_user.c107 struct inotify_device *dev; /* associated device */ member
152 static inline void get_inotify_dev(struct inotify_device *dev) in get_inotify_dev() argument
154 atomic_inc(&dev->count); in get_inotify_dev()
157 static inline void put_inotify_dev(struct inotify_device *dev) in put_inotify_dev() argument
159 if (atomic_dec_and_test(&dev->count)) { in put_inotify_dev()
160 atomic_dec(&dev->user->inotify_devs); in put_inotify_dev()
161 free_uid(dev->user); in put_inotify_dev()
162 kfree(dev); in put_inotify_dev()
172 struct inotify_device *dev; in free_inotify_user_watch() local
175 dev = watch->dev; in free_inotify_user_watch()
[all …]
/fs/afs/
Dnetdevices.c20 struct net_device *dev; in afs_get_MAC_address() local
27 dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER); in afs_get_MAC_address()
28 if (dev) { in afs_get_MAC_address()
29 memcpy(mac, dev->dev_addr, maclen); in afs_get_MAC_address()
44 struct net_device *dev; in afs_get_ipv4_interfaces() local
51 for_each_netdev(&init_net, dev) { in afs_get_ipv4_interfaces()
52 if (dev->type == ARPHRD_LOOPBACK && !wantloopback) in afs_get_ipv4_interfaces()
54 idev = __in_dev_get_rtnl(dev); in afs_get_ipv4_interfaces()
60 bufs[n].mtu = dev->mtu; in afs_get_ipv4_interfaces()
/fs/partitions/
Dcheck.c41 extern void md_autodetect_dev(dev_t dev);
147 const char *__bdevname(dev_t dev, char *buffer) in __bdevname() argument
150 MAJOR(dev), MINOR(dev)); in __bdevname()
198 static ssize_t part_partition_show(struct device *dev, in part_partition_show() argument
201 struct hd_struct *p = dev_to_part(dev); in part_partition_show()
206 static ssize_t part_start_show(struct device *dev, in part_start_show() argument
209 struct hd_struct *p = dev_to_part(dev); in part_start_show()
214 ssize_t part_size_show(struct device *dev, in part_size_show() argument
217 struct hd_struct *p = dev_to_part(dev); in part_size_show()
221 ssize_t part_stat_show(struct device *dev, in part_stat_show() argument
[all …]
/fs/btrfs/
Dversion.sh11 which git &> /dev/null
13 git branch >& /dev/null
15 if head=`git rev-parse --verify HEAD 2>/dev/null`; then
16 if tag=`git describe --tags 2>/dev/null`; then
21 git update-index --refresh --unmerged > /dev/null
36 diff -q version.h .build-version.h >& /dev/null
/fs/
Dchar_dev.c229 int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, in alloc_chrdev_region() argument
236 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region()
437 static struct kobject *exact_match(dev_t dev, int *part, void *data) in exact_match() argument
443 static int exact_lock(dev_t dev, void *data) in exact_lock() argument
459 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() argument
461 p->dev = dev; in cdev_add()
463 return kobj_map(cdev_map, dev, count, NULL, exact_match, exact_lock, p); in cdev_add()
466 static void cdev_unmap(dev_t dev, unsigned count) in cdev_unmap() argument
468 kobj_unmap(cdev_map, dev, count); in cdev_unmap()
480 cdev_unmap(p->dev, p->count); in cdev_del()
[all …]
/fs/ufs/
Dutil.c189 dev_t dev; in ufs_get_inode_dev() local
200 dev = old_decode_dev(fs32 & 0x7fff); in ufs_get_inode_dev()
202 dev = MKDEV(sysv_major(fs32), sysv_minor(fs32)); in ufs_get_inode_dev()
206 dev = old_decode_dev(fs32); in ufs_get_inode_dev()
209 return dev; in ufs_get_inode_dev()
213 ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev) in ufs_set_inode_dev() argument
220 fs32 = sysv_encode_dev(dev); in ufs_set_inode_dev()
222 fs32 = old_encode_dev(dev); in ufs_set_inode_dev()
227 fs32 = old_encode_dev(dev); in ufs_set_inode_dev()
/fs/proc/
Dnommu.c42 dev_t dev = 0; in nommu_region_show() local
50 dev = inode->i_sb->s_dev; in nommu_region_show()
63 MAJOR(dev), MINOR(dev), ino, &len); in nommu_region_show()
/fs/ubifs/
Dmisc.h210 static inline int ubifs_encode_dev(union ubifs_dev_desc *dev, dev_t rdev) in ubifs_encode_dev() argument
213 dev->new = cpu_to_le32(new_encode_dev(rdev)); in ubifs_encode_dev()
214 return sizeof(dev->new); in ubifs_encode_dev()
216 dev->huge = cpu_to_le64(huge_encode_dev(rdev)); in ubifs_encode_dev()
217 return sizeof(dev->huge); in ubifs_encode_dev()

1234