Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 25 of 132) sorted by relevance

123456

/linux-2.4.37.9/drivers/isdn/hisax/
Dq931.c204 char *dp = dest; in prbits() local
209 *dp++ = '1'; in prbits()
211 *dp++ = '0'; in prbits()
214 return (dp - dest); in prbits()
449 char *dp = dest; in prcause() local
454 dp += sprintf(dp, " coding "); in prcause()
455 dp += prbits(dp, *p, 7, 2); in prcause()
456 dp += sprintf(dp, " location "); in prcause()
457 dp += prbits(dp, *p, 4, 4); in prcause()
458 *dp++ = '\n'; in prcause()
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Dunwind_decoder.c85 unw_decode_x1 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x1() argument
90 byte1 = *dp++; in unw_decode_x1()
91 t = unw_decode_uleb128 (&dp); in unw_decode_x1()
92 off = unw_decode_uleb128 (&dp); in unw_decode_x1()
98 return dp; in unw_decode_x1()
102 unw_decode_x2 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x2() argument
107 byte1 = *dp++; byte2 = *dp++; in unw_decode_x2()
108 t = unw_decode_uleb128 (&dp); in unw_decode_x2()
116 return dp; in unw_decode_x2()
120 unw_decode_x3 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x3() argument
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_dir2_sf.c95 xfs_inode_t *dp, /* incore inode pointer */ in xfs_dir2_block_sfsize() argument
113 mp = dp->i_mount; in xfs_dir2_block_sfsize()
158 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_block_sfsize()
184 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_sf() local
196 dp = args->dp; in xfs_dir2_block_to_sf()
197 mp = dp->i_mount; in xfs_dir2_block_to_sf()
216 dp->i_df.if_flags &= ~XFS_IFEXTENTS; in xfs_dir2_block_to_sf()
217 dp->i_df.if_flags |= XFS_IFINLINE; in xfs_dir2_block_to_sf()
218 dp->i_d.di_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_block_to_sf()
219 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2.c74 static int xfs_dir2_isempty(xfs_inode_t *dp);
75 static int xfs_dir2_init(xfs_trans_t *tp, xfs_inode_t *dp,
77 static int xfs_dir2_createname(xfs_trans_t *tp, xfs_inode_t *dp,
81 static int xfs_dir2_lookup(xfs_trans_t *tp, xfs_inode_t *dp, char *name,
83 static int xfs_dir2_removename(xfs_trans_t *tp, xfs_inode_t *dp,
87 static int xfs_dir2_getdents(xfs_trans_t *tp, xfs_inode_t *dp, uio_t *uio,
89 static int xfs_dir2_replace(xfs_trans_t *tp, xfs_inode_t *dp, char *name,
93 static int xfs_dir2_canenter(xfs_trans_t *tp, xfs_inode_t *dp, char *name,
154 xfs_inode_t *dp) /* incore inode structure */ in xfs_dir2_isempty() argument
158 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_isempty()
[all …]
Dxfs_dir.c75 static int xfs_dir_isempty(struct xfs_inode *dp);
82 struct xfs_inode *dp,
91 struct xfs_inode *dp,
97 struct xfs_inode *dp,
106 struct xfs_inode *dp,
111 struct xfs_inode *dp,
120 struct xfs_inode *dp,
147 STATIC int xfs_dir_leaf_getdents(xfs_trans_t *trans, xfs_inode_t *dp,
159 STATIC int xfs_dir_node_getdents(xfs_trans_t *trans, xfs_inode_t *dp,
215 xfs_dir_isempty(xfs_inode_t *dp) in xfs_dir_isempty() argument
[all …]
Dxfs_dir.h63 typedef int (*xfs_dir_isempty_t)(struct xfs_inode *dp);
65 struct xfs_inode *dp,
68 struct xfs_inode *dp,
76 struct xfs_inode *dp,
81 struct xfs_inode *dp,
89 struct xfs_inode *dp,
93 struct xfs_inode *dp,
101 struct xfs_inode *dp,
129 #define XFS_DIR_ISEMPTY(mp,dp) \ argument
130 ((mp)->m_dirops.xd_isempty(dp))
[all …]
Dxfs_attr.c144 args.dp = ip; in xfs_attr_fetch()
202 xfs_inode_t *dp; in xfs_attr_set() local
218 dp = XFS_BHVTOI(bdp); in xfs_attr_set()
219 mp = dp->i_mount; in xfs_attr_set()
223 xfs_ilock(dp, XFS_ILOCK_SHARED); in xfs_attr_set()
225 (error = xfs_iaccess(dp, S_IWUSR, cred))) { in xfs_attr_set()
226 xfs_iunlock(dp, XFS_ILOCK_SHARED); in xfs_attr_set()
229 xfs_iunlock(dp, XFS_ILOCK_SHARED); in xfs_attr_set()
234 if ((error = XFS_QM_DQATTACH(mp, dp, 0))) in xfs_attr_set()
241 if (XFS_IFORK_Q(dp) == 0) { in xfs_attr_set()
[all …]
Dxfs_dir2_trace.c60 xfs_inode_t *dp, in xfs_dir2_trace_enter() argument
77 ASSERT(dp->i_dir_trace); in xfs_dir2_trace_enter()
89 ktrace_enter(dp->i_dir_trace, in xfs_dir2_trace_enter()
103 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS, where, in xfs_dir2_trace_args()
108 (void *)args->dp, (void *)args->trans, in xfs_dir2_trace_args()
118 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_B, where, in xfs_dir2_trace_args_b()
123 (void *)args->dp, (void *)args->trans, in xfs_dir2_trace_args_b()
135 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_BB, where, in xfs_dir2_trace_args_bb()
140 (void *)args->dp, (void *)args->trans, in xfs_dir2_trace_args_bb()
159 xfs_dir2_trace_enter(args->dp, XFS_DIR2_KTRACE_ARGS_BIBII, where, in xfs_dir2_trace_args_bibii()
[all …]
Dxfs_dir_leaf.c148 xfs_inode_t *dp; in xfs_dir_shortform_create() local
150 dp = args->dp; in xfs_dir_shortform_create()
151 ASSERT(dp != NULL); in xfs_dir_shortform_create()
152 ASSERT(dp->i_d.di_size == 0); in xfs_dir_shortform_create()
153 if (dp->i_d.di_format == XFS_DINODE_FMT_EXTENTS) { in xfs_dir_shortform_create()
154 dp->i_df.if_flags &= ~XFS_IFEXTENTS; /* just in case */ in xfs_dir_shortform_create()
155 dp->i_d.di_format = XFS_DINODE_FMT_LOCAL; in xfs_dir_shortform_create()
156 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE); in xfs_dir_shortform_create()
157 dp->i_df.if_flags |= XFS_IFINLINE; in xfs_dir_shortform_create()
159 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir_shortform_create()
[all …]
Dxfs_dir2_block.c90 xfs_inode_t *dp; /* directory inode */ in xfs_dir2_block_addname() local
110 dp = args->dp; in xfs_dir2_block_addname()
112 mp = dp->i_mount; in xfs_dir2_block_addname()
117 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_addname()
440 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_addname()
451 xfs_inode_t *dp, /* incore inode */ in xfs_dir2_block_getdents() argument
469 mp = dp->i_mount; in xfs_dir2_block_getdents()
481 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_getdents()
491 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_getdents()
625 xfs_inode_t *dp; /* incore inode */ in xfs_dir2_block_lookup() local
[all …]
Dxfs_dir2_leaf.h159 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp);
160 #define XFS_DIR2_DATAPTR_TO_BYTE(mp,dp) xfs_dir2_dataptr_to_byte(mp, dp) argument
162 #define XFS_DIR2_DATAPTR_TO_BYTE(mp,dp) \ argument
163 ((xfs_dir2_off_t)(dp) << XFS_DIR2_DATA_ALIGN_LOG)
183 xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp);
184 #define XFS_DIR2_DATAPTR_TO_DB(mp,dp) xfs_dir2_dataptr_to_db(mp, dp) argument
186 #define XFS_DIR2_DATAPTR_TO_DB(mp,dp) \ argument
187 XFS_DIR2_BYTE_TO_DB(mp, XFS_DIR2_DATAPTR_TO_BYTE(mp, dp))
195 xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp);
196 #define XFS_DIR2_DATAPTR_TO_OFF(mp,dp) xfs_dir2_dataptr_to_off(mp, dp) argument
[all …]
Dxfs_dir2_leaf.c74 static void xfs_dir2_leaf_check(xfs_inode_t *dp, xfs_dabuf_t *bp);
76 #define xfs_dir2_leaf_check(dp, bp) argument
94 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_leaf() local
106 dp = args->dp; in xfs_dir2_block_to_leaf()
107 mp = dp->i_mount; in xfs_dir2_block_to_leaf()
128 xfs_dir2_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
172 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
173 xfs_dir2_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
191 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_addname() local
215 dp = args->dp; in xfs_dir2_leaf_addname()
[all …]
/linux-2.4.37.9/arch/m68k/mm/
Dmemory.c35 #define PD_MARKBITS(dp) (*(unsigned char *)&PD_PAGE(dp)->index) argument
41 ptable_desc *dp; in init_pointer_table() local
45 dp = PD_PTABLE(page); in init_pointer_table()
46 if (!(PD_MARKBITS(dp) & mask)) { in init_pointer_table()
47 PD_MARKBITS(dp) = 0xff; in init_pointer_table()
48 list_add(dp, &ptable_list); in init_pointer_table()
51 PD_MARKBITS(dp) &= ~mask; in init_pointer_table()
53 printk("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp)); in init_pointer_table()
57 PD_PAGE(dp)->flags &= ~(1 << PG_reserved); in init_pointer_table()
58 atomic_set(&PD_PAGE(dp)->count, 1); in init_pointer_table()
[all …]
/linux-2.4.37.9/arch/mips/au1000/common/
Ddbdma.c358 au1x_ddma_desc_t *dp; in au1xxx_dbdma_ring_alloc() local
388 dp = (au1x_ddma_desc_t *)desc_base; in au1xxx_dbdma_ring_alloc()
392 ctp->chan_desc_base = dp; in au1xxx_dbdma_ring_alloc()
494 dp->dscr_cmd0 = cmd0; in au1xxx_dbdma_ring_alloc()
495 dp->dscr_cmd1 = cmd1; in au1xxx_dbdma_ring_alloc()
496 dp->dscr_source0 = src0; in au1xxx_dbdma_ring_alloc()
497 dp->dscr_source1 = src1; in au1xxx_dbdma_ring_alloc()
498 dp->dscr_dest0 = dest0; in au1xxx_dbdma_ring_alloc()
499 dp->dscr_dest1 = dest1; in au1xxx_dbdma_ring_alloc()
500 dp->dscr_stat = 0; in au1xxx_dbdma_ring_alloc()
[all …]
/linux-2.4.37.9/arch/ppc/8xx_io/
Dmicropatch.c637 volatile uint *dp; in cpm_load_patch() local
656 dp = (uint *)(commproc->cp_dpmem); in cpm_load_patch()
658 *dp++ = patch_2000[i]; in cpm_load_patch()
660 dp = (uint *)&(commproc->cp_dpmem[0x0f00]); in cpm_load_patch()
662 *dp++ = patch_2f00[i]; in cpm_load_patch()
696 dp = (uint *)&(commproc->cp_dpmem[0x0e00]); in cpm_load_patch()
698 *dp++ = patch_2e00[i]; in cpm_load_patch()
747 volatile uint *dp; in verify_patch() local
756 dp = (uint *)(commproc->cp_dpmem); in verify_patch()
758 if (*dp++ != patch_2000[i]) { in verify_patch()
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/
Drtas_flash.c161 struct proc_dir_entry *dp = file->f_dentry->d_inode->u.generic_ip; in rtas_flash_release() local
164 uf = (struct rtas_update_flash_t *) dp->data; in rtas_flash_release()
184 atomic_dec(&dp->count); in rtas_flash_release()
223 struct proc_dir_entry *dp = file->f_dentry->d_inode->u.generic_ip; in rtas_flash_read() local
229 uf = (struct rtas_update_flash_t *) dp->data; in rtas_flash_read()
231 if (!strcmp(dp->name, FIRMWARE_FLASH_NAME)) { in rtas_flash_read()
263 struct proc_dir_entry *dp = file->f_dentry->d_inode->u.generic_ip; in rtas_flash_write() local
269 uf = (struct rtas_update_flash_t *) dp->data; in rtas_flash_write()
316 struct proc_dir_entry *dp = file->f_dentry->d_inode->u.generic_ip; in rtas_excl_open() local
320 if (atomic_read(&dp->count) > 1) { in rtas_excl_open()
[all …]
/linux-2.4.37.9/include/linux/
Dppp-comp.h147 #define CCP_CODE(dp) ((dp)[0]) argument
148 #define CCP_ID(dp) ((dp)[1]) argument
149 #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3]) argument
152 #define CCP_OPT_CODE(dp) ((dp)[0]) argument
153 #define CCP_OPT_LENGTH(dp) ((dp)[1]) argument
/linux-2.4.37.9/drivers/video/
Doffb.c109 struct device_node *dp);
261 struct device_node *dp; in offb_init() local
271 for (dp = displays; dp != NULL; dp = dp->next) { in offb_init()
278 if (strncmp(dp->name, "ATY,", 4) == 0 && dp->n_addrs == 1) { in offb_init()
280 get_property(dp, "AAPL,address", NULL); in offb_init()
282 dp->addrs[0].address = *ap; in offb_init()
283 dp->addrs[0].size = 0x01000000; in offb_init()
291 if (dp->n_addrs == 0 && device_is_compatible(dp, "ATY,264LTPro")) { in offb_init()
294 get_property(dp, "AAPL,address", &na); in offb_init()
305 for (i = 0; i < dp->n_addrs; ++i) { in offb_init()
[all …]
/linux-2.4.37.9/Documentation/networking/
Ddriver.txt19 struct drv *dp = dev->priv;
21 lock_tx(dp);
24 if (TX_BUFFS_AVAIL(dp) <= (skb_shinfo(skb)->nr_frags + 1)) {
26 unlock_tx(dp);
35 if (TX_BUFFS_AVAIL(dp) <= (MAX_SKB_FRAGS + 1))
39 unlock_tx(dp);
45 if (netif_queue_stopped(dp->dev) &&
46 TX_BUFFS_AVAIL(dp) > (MAX_SKB_FRAGS + 1))
47 netif_wake_queue(dp->dev);
52 if (TX_BUFFS_AVAIL(dp) <= 0)
[all …]
/linux-2.4.37.9/fs/jfs/
Djfs_dmap.c105 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
114 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
116 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
119 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
121 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
132 static void dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
134 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
143 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
145 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
146 static int dbInitDmapTree(struct dmap * dp);
[all …]
/linux-2.4.37.9/net/ax25/
Dax25_in.c224 ax25_digi dp, reverse_dp; in ax25_rcv() local
248 if (ax25_addr_parse(skb->data, skb->len, &src, &dest, &dp, &type, &dama) == NULL) { in ax25_rcv()
256 if (dp.lastrepeat + 1 < dp.ndigi) /* Not yet digipeated completely */ in ax25_rcv()
257 next_digi = &dp.calls[dp.lastrepeat + 1]; in ax25_rcv()
262 skb_pull(skb, ax25_addr_size(&dp)); in ax25_rcv()
265 if (ax25cmp(&dest, dev_addr) == 0 && dp.lastrepeat + 1 == dp.ndigi) in ax25_rcv()
269 if (!mine && ax25_listen_mine(&dest, dev) && dp.lastrepeat + 1 == dp.ndigi) in ax25_rcv()
273 if ((*skb->data & ~0x10) == AX25_UI && dp.lastrepeat + 1 == dp.ndigi) { in ax25_rcv()
347 ax25_digi_invert(&dp, &reverse_dp); in ax25_rcv()
371 ax25_return_dm(dev, &src, &dest, &dp); in ax25_rcv()
[all …]
/linux-2.4.37.9/fs/proc/
Dgeneric.c58 struct proc_dir_entry * dp; in proc_file_read() local
61 dp = (struct proc_dir_entry *) inode->u.generic_ip; in proc_file_read()
72 if (dp->get_info) { in proc_file_read()
77 n = dp->get_info(page, &start, pos, count); in proc_file_read()
80 } else if (dp->read_proc) { in proc_file_read()
81 n = dp->read_proc(page, &start, pos, in proc_file_read()
82 count, &eof, dp->data); in proc_file_read()
132 struct proc_dir_entry * dp; in proc_file_write() local
134 dp = (struct proc_dir_entry *) inode->u.generic_ip; in proc_file_write()
136 if (!dp->write_proc) in proc_file_write()
[all …]
/linux-2.4.37.9/drivers/isdn/avmb1/
Davmcard.h267 unsigned char *dp) in b1_get_slice() argument
272 while (i-- > 0) *dp++ = b1_get_byte(base); in b1_get_slice()
277 unsigned char *dp, unsigned int len) in b1_put_slice() argument
282 b1_put_byte(base, *dp++); in b1_put_slice()
395 unsigned char *dp) in t1_get_slice() argument
411 insb(base+B1_READ, dp, FIFO_INPBSIZE); in t1_get_slice()
412 dp += FIFO_INPBSIZE; in t1_get_slice()
419 insb(base+B1_READ,dp, i); in t1_get_slice()
423 dp += i; in t1_get_slice()
429 *dp++ = b1_get_byte(base); in t1_get_slice()
[all …]
/linux-2.4.37.9/drivers/sound/
Dsound_firmware.c16 char *dp; in do_mod_firmware_load() local
32 dp = vmalloc(l); in do_mod_firmware_load()
33 if (dp == NULL) in do_mod_firmware_load()
39 if (read(fd, dp, l) != l) in do_mod_firmware_load()
42 vfree(dp); in do_mod_firmware_load()
47 *fp = dp; in do_mod_firmware_load()
/linux-2.4.37.9/arch/ppc/platforms/
Dpmac_nvram.c228 struct device_node *dp; in pmac_nvram_init() local
232 dp = find_devices("nvram"); in pmac_nvram_init()
233 if (dp == NULL) { in pmac_nvram_init()
237 nvram_naddrs = dp->n_addrs; in pmac_nvram_init()
238 is_core_99 = device_is_compatible(dp, "nvram,flash"); in pmac_nvram_init()
254 nvram_data = ioremap(dp->addrs[0].address, NVRAM_SIZE*2); in pmac_nvram_init()
268 nvram_data = ioremap(dp->addrs[0].address + isa_mem_base, in pmac_nvram_init()
269 dp->addrs[0].size); in pmac_nvram_init()
272 nvram_data = ioremap(dp->addrs[0].address, dp->addrs[0].size); in pmac_nvram_init()
273 nvram_mult = (dp->addrs[0].size + NVRAM_SIZE - 1) / NVRAM_SIZE; in pmac_nvram_init()
[all …]

123456