Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
dir_f.c File Reference
#include <linux/buffer_head.h>
#include "adfs.h"
#include "dir_f.h"

Go to the source code of this file.

Macros

#define ror13(v)   ((v >> 13) | (v << 19))
 
#define dir_u8(idx)
 
#define dir_u32(idx)
 
#define bufoff(_bh, _idx)
 

Variables

struct adfs_dir_ops adfs_f_dir_ops
 

Macro Definition Documentation

#define bufoff (   _bh,
  _idx 
)
Value:
({ int _buf = _idx >> blocksize_bits; \
int _off = _idx - (_buf << blocksize_bits);\
(u8 *)(_bh[_buf]->b_data + _off); \
})

Definition at line 73 of file dir_f.c.

#define dir_u32 (   idx)
Value:
({ int _buf = idx >> blocksize_bits; \
int _off = idx - (_buf << blocksize_bits);\
*(__le32 *)(bh[_buf]->b_data + _off); \
})

Definition at line 67 of file dir_f.c.

#define dir_u8 (   idx)
Value:
({ int _buf = idx >> blocksize_bits; \
int _off = idx - (_buf << blocksize_bits);\
*(u8 *)(bh[_buf]->b_data + _off); \
})

Definition at line 61 of file dir_f.c.

#define ror13 (   v)    ((v >> 13) | (v << 19))

Definition at line 59 of file dir_f.c.

Variable Documentation

struct adfs_dir_ops adfs_f_dir_ops
Initial value:
= {
.read = adfs_f_read,
.setpos = adfs_f_setpos,
.getnext = adfs_f_getnext,
.update = adfs_f_update,
.sync = adfs_f_sync,
.free = adfs_f_free
}

Definition at line 479 of file dir_f.c.