Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 200 of 362) sorted by relevance

12

/linux-4.1.27/drivers/isdn/hisax/
Dq931.c203 char *dp = dest; in prbits() local
208 *dp++ = '1'; in prbits()
210 *dp++ = '0'; in prbits()
213 return (dp - dest); in prbits()
448 char *dp = dest; in prcause() local
453 dp += sprintf(dp, " coding "); in prcause()
454 dp += prbits(dp, *p, 7, 2); in prcause()
455 dp += sprintf(dp, " location "); in prcause()
456 dp += prbits(dp, *p, 4, 4); in prcause()
457 *dp++ = '\n'; in prcause()
[all …]
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_dp_core.c39 static inline struct exynos_drm_crtc *dp_to_crtc(struct exynos_dp_device *dp) in dp_to_crtc() argument
41 return to_exynos_crtc(dp->encoder->crtc); in dp_to_crtc()
55 static void exynos_dp_init_dp(struct exynos_dp_device *dp) in exynos_dp_init_dp() argument
57 exynos_dp_reset(dp); in exynos_dp_init_dp()
59 exynos_dp_swreset(dp); in exynos_dp_init_dp()
61 exynos_dp_init_analog_param(dp); in exynos_dp_init_dp()
62 exynos_dp_init_interrupt(dp); in exynos_dp_init_dp()
65 exynos_dp_enable_sw_function(dp); in exynos_dp_init_dp()
67 exynos_dp_config_interrupt(dp); in exynos_dp_init_dp()
68 exynos_dp_init_analog_func(dp); in exynos_dp_init_dp()
[all …]
Dexynos_dp_reg.c27 void exynos_dp_enable_video_mute(struct exynos_dp_device *dp, bool enable) in exynos_dp_enable_video_mute() argument
32 reg = readl(dp->reg_base + EXYNOS_DP_VIDEO_CTL_1); in exynos_dp_enable_video_mute()
34 writel(reg, dp->reg_base + EXYNOS_DP_VIDEO_CTL_1); in exynos_dp_enable_video_mute()
36 reg = readl(dp->reg_base + EXYNOS_DP_VIDEO_CTL_1); in exynos_dp_enable_video_mute()
38 writel(reg, dp->reg_base + EXYNOS_DP_VIDEO_CTL_1); in exynos_dp_enable_video_mute()
42 void exynos_dp_stop_video(struct exynos_dp_device *dp) in exynos_dp_stop_video() argument
46 reg = readl(dp->reg_base + EXYNOS_DP_VIDEO_CTL_1); in exynos_dp_stop_video()
48 writel(reg, dp->reg_base + EXYNOS_DP_VIDEO_CTL_1); in exynos_dp_stop_video()
51 void exynos_dp_lane_swap(struct exynos_dp_device *dp, bool enable) in exynos_dp_lane_swap() argument
62 writel(reg, dp->reg_base + EXYNOS_DP_LANE_MAP); in exynos_dp_lane_swap()
[all …]
Dexynos_dp_core.h172 void exynos_dp_enable_video_mute(struct exynos_dp_device *dp, bool enable);
173 void exynos_dp_stop_video(struct exynos_dp_device *dp);
174 void exynos_dp_lane_swap(struct exynos_dp_device *dp, bool enable);
175 void exynos_dp_init_analog_param(struct exynos_dp_device *dp);
176 void exynos_dp_init_interrupt(struct exynos_dp_device *dp);
177 void exynos_dp_reset(struct exynos_dp_device *dp);
178 void exynos_dp_swreset(struct exynos_dp_device *dp);
179 void exynos_dp_config_interrupt(struct exynos_dp_device *dp);
180 enum pll_status exynos_dp_get_pll_lock_status(struct exynos_dp_device *dp);
181 void exynos_dp_set_pll_power_down(struct exynos_dp_device *dp, bool enable);
[all …]
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_init.c55 static int create_port(struct seq_oss_devinfo *dp);
56 static int delete_port(struct seq_oss_devinfo *dp);
57 static int alloc_seq_queue(struct seq_oss_devinfo *dp);
188 struct seq_oss_devinfo *dp; in snd_seq_oss_open() local
190 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in snd_seq_oss_open()
191 if (!dp) in snd_seq_oss_open()
194 dp->cseq = system_client; in snd_seq_oss_open()
195 dp->port = -1; in snd_seq_oss_open()
196 dp->queue = -1; in snd_seq_oss_open()
203 dp->index = i; in snd_seq_oss_open()
[all …]
Dseq_oss_ioctl.c31 static int snd_seq_oss_synth_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_synth_info_user() argument
37 if (snd_seq_oss_synth_make_info(dp, info.device, &info) < 0) in snd_seq_oss_synth_info_user()
44 static int snd_seq_oss_midi_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_midi_info_user() argument
50 if (snd_seq_oss_midi_make_info(dp, info.device, &info) < 0) in snd_seq_oss_midi_info_user()
57 static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_oob_user() argument
65 snd_seq_oss_fill_addr(dp, &tmpev, dp->addr.port, dp->addr.client); in snd_seq_oss_oob_user()
67 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { in snd_seq_oss_oob_user()
68 snd_seq_oss_dispatch(dp, &tmpev, 0, 0); in snd_seq_oss_oob_user()
74 snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long carg) in snd_seq_oss_ioctl() argument
90 return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); in snd_seq_oss_ioctl()
[all …]
Dseq_oss_event.c34 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
35 static int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event…
36 static int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_even…
37 static int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *e…
38 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev…
39 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd…
41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn…
42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,…
43 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int …
[all …]
Dseq_oss_synth.c85 static struct seq_oss_synth *get_synthdev(struct seq_oss_devinfo *dp, int dev);
212 snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp) in snd_seq_oss_synth_setup() argument
218 dp->max_synthdev = max_synth_devs; in snd_seq_oss_synth_setup()
219 dp->synth_opened = 0; in snd_seq_oss_synth_setup()
220 memset(dp->synths, 0, sizeof(dp->synths)); in snd_seq_oss_synth_setup()
221 for (i = 0; i < dp->max_synthdev; i++) { in snd_seq_oss_synth_setup()
229 info = &dp->synths[i]; in snd_seq_oss_synth_setup()
230 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup()
231 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup()
232 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup()
[all …]
Dseq_oss_rw.c36 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt);
44 snd_seq_oss_read(struct seq_oss_devinfo *dp, char __user *buf, int count) in snd_seq_oss_read() argument
46 struct seq_oss_readq *readq = dp->readq; in snd_seq_oss_read()
52 if (readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_read()
59 !is_nonblock_mode(dp->file_mode) && result == 0) { in snd_seq_oss_read()
96 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument
102 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_write()
118 return snd_seq_oss_synth_load_patch(dp, rec.s.dev, in snd_seq_oss_write()
124 dp->seq_mode == SNDRV_SEQ_OSS_MODE_MUSIC) { in snd_seq_oss_write()
140 if (dp->seq_mode == SNDRV_SEQ_OSS_MODE_MUSIC) { in snd_seq_oss_write()
[all …]
Dseq_oss_midi.c67 static struct seq_oss_midi *get_mididev(struct seq_oss_devinfo *dp, int dev);
68 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev);
69 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_mid…
280 snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp) in snd_seq_oss_midi_setup() argument
282 dp->max_mididev = max_midi_devs; in snd_seq_oss_midi_setup()
289 snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp) in snd_seq_oss_midi_cleanup() argument
292 for (i = 0; i < dp->max_mididev; i++) in snd_seq_oss_midi_cleanup()
293 snd_seq_oss_midi_close(dp, i); in snd_seq_oss_midi_cleanup()
294 dp->max_mididev = 0; in snd_seq_oss_midi_cleanup()
302 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument
[all …]
Dseq_oss_writeq.c37 snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen) in snd_seq_oss_writeq_new() argument
44 q->dp = dp; in snd_seq_oss_writeq_new()
52 pool.client = dp->cseq; in snd_seq_oss_writeq_new()
56 snd_seq_oss_control(dp, SNDRV_SEQ_IOCTL_SET_CLIENT_POOL, &pool); in snd_seq_oss_writeq_new()
84 snd_seq_oss_control(q->dp, SNDRV_SEQ_IOCTL_REMOVE_EVENTS, &reset); in snd_seq_oss_writeq_clear()
96 struct seq_oss_devinfo *dp = q->dp; in snd_seq_oss_writeq_sync() local
99 time = snd_seq_oss_timer_cur_tick(dp->timer); in snd_seq_oss_writeq_sync()
113 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync()
118 snd_seq_kernel_client_enqueue_blocking(dp->cseq, &ev, NULL, 0, 0); in snd_seq_oss_writeq_sync()
155 pool.client = q->dp->cseq; in snd_seq_oss_writeq_get_free_size()
[all …]
Dseq_oss_synth.h33 void snd_seq_oss_synth_setup(struct seq_oss_devinfo *dp);
34 void snd_seq_oss_synth_setup_midi(struct seq_oss_devinfo *dp);
35 void snd_seq_oss_synth_cleanup(struct seq_oss_devinfo *dp);
37 void snd_seq_oss_synth_reset(struct seq_oss_devinfo *dp, int dev);
38 int snd_seq_oss_synth_load_patch(struct seq_oss_devinfo *dp, int dev, int fmt,
40 int snd_seq_oss_synth_is_valid(struct seq_oss_devinfo *dp, int dev);
41 int snd_seq_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf,
43 int snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev);
44 int snd_seq_oss_synth_ioctl(struct seq_oss_devinfo *dp, int dev, unsigned int cmd,
46 int snd_seq_oss_synth_raw_event(struct seq_oss_devinfo *dp, int dev,
[all …]
Dseq_oss_midi.h34 void snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp);
35 void snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp);
37 int snd_seq_oss_midi_open(struct seq_oss_devinfo *dp, int dev, int file_mode);
38 void snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode);
39 int snd_seq_oss_midi_close(struct seq_oss_devinfo *dp, int dev);
40 void snd_seq_oss_midi_reset(struct seq_oss_devinfo *dp, int dev);
41 int snd_seq_oss_midi_putc(struct seq_oss_devinfo *dp, int dev, unsigned char c,
44 int snd_seq_oss_midi_filemode(struct seq_oss_devinfo *dp, int dev);
45 int snd_seq_oss_midi_make_info(struct seq_oss_devinfo *dp, int dev, struct midi_info *inf);
46 void snd_seq_oss_midi_get_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_addr *addr);
Dseq_oss_device.h123 void snd_seq_oss_release(struct seq_oss_devinfo *dp);
124 int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg);
126 int snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *o…
127 unsigned int snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait);
129 void snd_seq_oss_reset(struct seq_oss_devinfo *dp);
132 void snd_seq_oss_process_queue(struct seq_oss_devinfo *dp, abstime_t time);
148 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument
150 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch()
155 snd_seq_oss_control(struct seq_oss_devinfo *dp, unsigned int type, void *arg) in snd_seq_oss_control() argument
157 return snd_seq_kernel_client_ctl(dp->cseq, type, arg); in snd_seq_oss_control()
[all …]
Dseq_oss_timer.c38 static int send_timer_event(struct seq_oss_devinfo *dp, int type, int value);
46 snd_seq_oss_timer_new(struct seq_oss_devinfo *dp) in snd_seq_oss_timer_new() argument
54 rec->dp = dp; in snd_seq_oss_timer_new()
140 send_timer_event(struct seq_oss_devinfo *dp, int type, int value) in send_timer_event() argument
146 ev.source.client = dp->cseq; in send_timer_event()
150 ev.queue = dp->queue; in send_timer_event()
151 ev.data.queue.queue = dp->queue; in send_timer_event()
153 return snd_seq_kernel_client_dispatch(dp->cseq, &ev, 1, 0); in send_timer_event()
162 struct seq_oss_devinfo *dp = timer->dp; in snd_seq_oss_timer_start() local
169 tmprec.queue = dp->queue; in snd_seq_oss_timer_start()
[all …]
Dseq_oss.c146 struct seq_oss_devinfo *dp; in odev_release() local
148 if ((dp = file->private_data) == NULL) in odev_release()
152 snd_seq_oss_release(dp); in odev_release()
161 struct seq_oss_devinfo *dp; in odev_read() local
162 dp = file->private_data; in odev_read()
163 if (snd_BUG_ON(!dp)) in odev_read()
165 return snd_seq_oss_read(dp, buf, count); in odev_read()
172 struct seq_oss_devinfo *dp; in odev_write() local
173 dp = file->private_data; in odev_write()
174 if (snd_BUG_ON(!dp)) in odev_write()
[all …]
Dseq_oss_timer.h31 struct seq_oss_devinfo *dp; member
40 struct seq_oss_timer *snd_seq_oss_timer_new(struct seq_oss_devinfo *dp);
41 void snd_seq_oss_timer_delete(struct seq_oss_timer *dp);
Dseq_oss_writeq.h29 struct seq_oss_devinfo *dp; member
41 struct seq_oss_writeq *snd_seq_oss_writeq_new(struct seq_oss_devinfo *dp, int maxlen);
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_dir2_sf.c63 xfs_inode_t *dp, /* incore inode pointer */ in xfs_dir2_block_sfsize() argument
83 mp = dp->i_mount; in xfs_dir2_block_sfsize()
136 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_block_sfsize()
144 dp->d_ops->sf_put_parent_ino(sfhp, parent); in xfs_dir2_block_sfsize()
162 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_sf() local
175 dp = args->dp; in xfs_dir2_block_to_sf()
176 mp = dp->i_mount; in xfs_dir2_block_to_sf()
197 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_block_to_sf()
218 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
225 dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2_node.c55 #define xfs_dir3_leaf_check(dp, bp) \ argument
57 if (!xfs_dir3_leafn_check((dp), (bp))) \
63 struct xfs_inode *dp, in xfs_dir3_leafn_check() argument
69 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
78 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
81 #define xfs_dir3_leaf_check(dp, bp) argument
158 struct xfs_inode *dp, in __xfs_dir3_free_read() argument
165 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in __xfs_dir3_free_read()
177 struct xfs_inode *dp, in xfs_dir2_free_read() argument
181 return __xfs_dir3_free_read(tp, dp, fbno, -1, bpp); in xfs_dir2_free_read()
[all …]
Dxfs_dir2.c175 xfs_inode_t *dp) in xfs_dir_isempty() argument
179 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_isempty()
180 if (dp->i_d.di_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
182 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir_isempty()
184 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
228 xfs_inode_t *dp, in xfs_dir_init() argument
234 ASSERT(S_ISDIR(dp->i_d.di_mode)); in xfs_dir_init()
243 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
244 args->dp = dp; in xfs_dir_init()
258 xfs_inode_t *dp, in xfs_dir_createname() argument
[all …]
Dxfs_attr.c79 struct xfs_inode *dp, in xfs_attr_args_init() argument
88 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init()
90 args->dp = dp; in xfs_attr_args_init()
166 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_calc_size()
196 struct xfs_inode *dp, in xfs_attr_set() argument
202 struct xfs_mount *mp = dp->i_mount; in xfs_attr_set()
212 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_attr_set()
215 error = xfs_attr_args_init(&args, dp, name, flags); in xfs_attr_set()
226 error = xfs_qm_dqattach(dp, 0); in xfs_attr_set()
234 if (XFS_IFORK_Q(dp) == 0) { in xfs_attr_set()
[all …]
Dxfs_dir2_block.c130 struct xfs_inode *dp, in xfs_dir3_block_read() argument
133 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
136 err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, -1, bpp, in xfs_dir3_block_read()
148 struct xfs_inode *dp) in xfs_dir3_block_init() argument
159 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_dir3_block_init()
169 struct xfs_inode *dp, in xfs_dir2_block_need_space() argument
185 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space()
324 xfs_dir2_data_freescan(args->dp, hdr, needlog); in xfs_dir2_block_compact()
340 xfs_inode_t *dp; /* directory inode */ in xfs_dir2_block_addname() local
360 dp = args->dp; in xfs_dir2_block_addname()
[all …]
Dxfs_dir2_leaf.c52 #define xfs_dir3_leaf_check(dp, bp) \ argument
54 if (!xfs_dir3_leaf1_check((dp), (bp))) \
60 struct xfs_inode *dp, in xfs_dir3_leaf1_check() argument
66 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
75 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
78 #define xfs_dir3_leaf_check(dp, bp) argument
84 struct xfs_inode *dp, in xfs_dir3_leaf_check_int() argument
100 ops = xfs_dir_get_ops(mp, dp); in xfs_dir3_leaf_check_int()
257 struct xfs_inode *dp, in xfs_dir3_leaf_read() argument
264 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leaf_read()
[all …]
Dxfs_da_btree.c251 struct xfs_inode *dp, in xfs_da3_node_read() argument
259 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read()
309 struct xfs_inode *dp = args->dp; in xfs_da3_node_create() local
314 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create()
326 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create()
333 dp->d_ops->node_hdr_to_disk(node, &ichdr); in xfs_da3_node_create()
335 XFS_DA_LOGRANGE(node, &node->hdr, dp->d_ops->node_hdr_size)); in xfs_da3_node_create()
513 struct xfs_inode *dp; in xfs_da3_root_split() local
532 dp = args->dp; in xfs_da3_root_split()
534 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); in xfs_da3_root_split()
[all …]
Dxfs_dir2_priv.h32 extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp,
43 #define xfs_dir3_data_check(dp,bp) __xfs_dir3_data_check(dp, bp); argument
45 #define xfs_dir3_data_check(dp,bp) argument
48 extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
49 extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp,
51 extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno,
62 extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp,
91 extern bool xfs_dir3_leaf_check_int(struct xfs_mount *mp, struct xfs_inode *dp,
97 extern xfs_dahash_t xfs_dir2_leafn_lasthash(struct xfs_inode *dp,
102 extern int xfs_dir2_leafn_order(struct xfs_inode *dp, struct xfs_buf *leaf1_bp,
[all …]
Dxfs_dir2.h115 xfs_dir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
117 xfs_nondir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
126 extern int xfs_dir_isempty(struct xfs_inode *dp);
127 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp,
129 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp,
133 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp,
136 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp,
140 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
144 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
160 extern void xfs_dir2_data_freescan(struct xfs_inode *dp,
[all …]
Dxfs_attr_leaf.c335 struct xfs_inode *dp, in xfs_attr3_leaf_read() argument
342 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_attr3_leaf_read()
379 xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes) in xfs_attr_shortform_bytesfit() argument
385 xfs_mount_t *mp = dp->i_mount; in xfs_attr_shortform_bytesfit()
388 offset = (XFS_LITINO(mp, dp->i_d.di_version) - bytes) >> 3; in xfs_attr_shortform_bytesfit()
390 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
409 if (bytes <= XFS_IFORK_ASIZE(dp)) in xfs_attr_shortform_bytesfit()
410 return dp->i_d.di_forkoff; in xfs_attr_shortform_bytesfit()
420 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
422 switch (dp->i_d.di_format) { in xfs_attr_shortform_bytesfit()
[all …]
Dxfs_attr_remote.c353 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get()
372 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get()
393 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get()
417 struct xfs_inode *dp = args->dp; in xfs_attr_rmtval_set() local
418 struct xfs_mount *mp = dp->i_mount; in xfs_attr_rmtval_set()
438 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
466 error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
485 xfs_trans_ijoin(args->trans, dp, 0); in xfs_attr_rmtval_set()
496 error = xfs_trans_roll(&args->trans, dp); in xfs_attr_rmtval_set()
519 error = xfs_bmapi_read(dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
[all …]
Dxfs_dir2_data.c42 struct xfs_inode *dp, /* incore inode pointer */ in __xfs_dir3_data_check() argument
73 ops = xfs_dir_get_ops(mp, dp); in __xfs_dir3_data_check()
318 struct xfs_inode *dp, in xfs_dir3_data_read() argument
325 err = xfs_da_read_buf(tp, dp, bno, mapped_bno, bpp, in xfs_dir3_data_read()
334 struct xfs_inode *dp, in xfs_dir3_data_readahead() argument
338 return xfs_da_reada_buf(dp, bno, mapped_bno, in xfs_dir3_data_readahead()
504 struct xfs_inode *dp, in xfs_dir2_data_freescan() argument
514 struct xfs_da_geometry *geo = dp->i_mount->m_dir_geo; in xfs_dir2_data_freescan()
524 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_data_freescan()
530 p = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_data_freescan()
[all …]
Dxfs_attr_leaf.h54 int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp);
55 int xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes);
91 int xfs_attr3_root_inactive(struct xfs_trans **trans, struct xfs_inode *dp);
100 int xfs_attr3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
Dxfs_da_btree.h71 struct xfs_inode *dp; /* directory inode to manipulate */ member
187 int xfs_da3_node_read(struct xfs_trans *tp, struct xfs_inode *dp,
197 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp,
200 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp,
204 xfs_daddr_t xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
Dxfs_attr_sf.h66 #define XFS_ATTR_SF_TOTSIZE(dp) /* total space in use */ \ argument
68 ((dp)->i_afp->if_u1.if_data))->hdr.totsize))
/linux-4.1.27/arch/sparc/kernel/
Dprom_64.c73 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf) in sun4v_path_component() argument
79 rprop = of_find_property(dp, "reg", NULL); in sun4v_path_component()
84 if (!of_node_is_root(dp->parent)) { in sun4v_path_component()
86 dp->name, in sun4v_path_component()
101 dp->name, prefix, in sun4v_path_component()
105 dp->name, in sun4v_path_component()
110 dp->name, high_bits); in sun4v_path_component()
114 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument
119 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component()
124 if (!of_node_is_root(dp->parent)) { in sun4u_path_component()
[all …]
Dprom_32.c61 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf) in sparc32_path_component() argument
66 rprop = of_find_property(dp, "reg", NULL); in sparc32_path_component()
72 dp->name, in sparc32_path_component()
77 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
82 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
88 dp->name, in sbus_path_component()
94 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
100 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
108 dp->name, in pci_path_component()
113 dp->name, in pci_path_component()
[all …]
Dprom_irqtrans.c42 static unsigned int psycho_irq_build(struct device_node *dp, in psycho_irq_build() argument
72 static void __init psycho_irq_trans_init(struct device_node *dp) in psycho_irq_trans_init() argument
76 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); in psycho_irq_trans_init()
77 dp->irq_trans->irq_build = psycho_irq_build; in psycho_irq_trans_init()
79 regs = of_get_property(dp, "reg", NULL); in psycho_irq_trans_init()
80 dp->irq_trans->data = (void *) regs[2].phys_addr; in psycho_irq_trans_init()
181 static int sabre_device_needs_wsync(struct device_node *dp) in sabre_device_needs_wsync() argument
183 struct device_node *parent = dp->parent; in sabre_device_needs_wsync()
220 static unsigned int sabre_irq_build(struct device_node *dp, in sabre_irq_build() argument
257 regs = of_get_property(dp, "reg", NULL); in sabre_irq_build()
[all …]
Dds.c133 void (*data)(struct ds_info *dp,
145 static void md_update_data(struct ds_info *dp, struct ds_cap_state *cp,
147 static void domain_shutdown_data(struct ds_info *dp,
150 static void domain_panic_data(struct ds_info *dp,
154 static void dr_cpu_data(struct ds_info *dp,
158 static void ds_pri_data(struct ds_info *dp,
161 static void ds_var_data(struct ds_info *dp,
219 static struct ds_cap_state *find_cap(struct ds_info *dp, u64 handle) in find_cap() argument
223 if (index >= dp->num_ds_states) in find_cap()
225 return &dp->ds_states[index]; in find_cap()
[all …]
Dof_device_common.c60 struct device_node *dp; in of_propagate_archdata() local
62 for (dp = bus_dp->child; dp; dp = dp->sibling) { in of_propagate_archdata()
63 struct platform_device *op = of_find_device_by_node(dp); in of_propagate_archdata()
70 if (dp->child) in of_propagate_archdata()
75 static void get_cells(struct device_node *dp, int *addrc, int *sizec) in get_cells() argument
78 *addrc = of_n_addr_cells(dp); in get_cells()
80 *sizec = of_n_size_cells(dp); in get_cells()
151 struct device_node *dp = np; in of_bus_sbus_match() local
153 while (dp) { in of_bus_sbus_match()
154 if (!strcmp(dp->name, "sbus") || in of_bus_sbus_match()
[all …]
Dof_device_64.c354 struct device_node *dp = op->dev.of_node; in build_device_resources() local
377 dp = pp; in build_device_resources()
378 pp = dp->parent; in build_device_resources()
385 pbus->count_cells(dp, &pna, &pns); in build_device_resources()
387 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources()
419 apply_interrupt_map(struct device_node *dp, struct device_node *pp, in apply_interrupt_map() argument
431 bus->count_cells(dp, &na, NULL); in apply_interrupt_map()
433 reg = of_get_property(dp, "reg", &num_reg); in apply_interrupt_map()
478 static unsigned int __init pci_irq_swizzle(struct device_node *dp, in pci_irq_swizzle() argument
488 regs = of_get_property(dp, "reg", NULL); in pci_irq_swizzle()
[all …]
Dsun4d_irq.c251 struct device_node *dp; in sun4d_distribute_irqs() local
257 for_each_node_by_name(dp, "sbi") { in sun4d_distribute_irqs()
258 int devid = of_getintprop_default(dp, "device-id", 0); in sun4d_distribute_irqs()
259 int board = of_getintprop_default(dp, "board#", 0); in sun4d_distribute_irqs()
326 struct device_node *dp = op->dev.of_node; in sun4d_build_device_irq() local
327 struct device_node *board_parent, *bus = dp->parent; in sun4d_build_device_irq()
352 regs = of_get_property(dp, "reg", NULL); in sun4d_build_device_irq()
419 struct device_node *dp; in sun4d_init_timers() local
426 dp = of_find_node_by_name(NULL, "cpu-unit"); in sun4d_init_timers()
427 if (!dp) { in sun4d_init_timers()
[all …]
Dof_device_32.c276 struct device_node *dp = op->dev.of_node; in build_device_resources() local
300 dp = pp; in build_device_resources()
301 pp = dp->parent; in build_device_resources()
308 pbus->count_cells(dp, &pna, &pns); in build_device_resources()
310 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources()
338 static struct platform_device * __init scan_one_device(struct device_node *dp, in scan_one_device() argument
352 op->dev.of_node = dp; in scan_one_device()
354 intr = of_get_property(dp, "intr", &len); in scan_one_device()
362 of_get_property(dp, "interrupts", &len); in scan_one_device()
381 dev_set_name(&op->dev, "%08x", dp->phandle); in scan_one_device()
[all …]
Dvio.c150 struct device_node *dp; in show_pciobppath_attr() local
153 dp = vdev->dp; in show_pciobppath_attr()
155 return snprintf (buf, PAGE_SIZE, "%s\n", dp->full_name); in show_pciobppath_attr()
207 struct device_node *dp; in vio_create_one() local
301 dp = cdev_node; in vio_create_one()
303 dp = of_get_next_child(cdev_node, NULL); in vio_create_one()
304 while (dp) { in vio_create_one()
305 if (!strcmp(dp->type, type)) in vio_create_one()
308 dp = of_get_next_child(cdev_node, dp); in vio_create_one()
311 dp = to_vio_dev(parent)->dp; in vio_create_one()
[all …]
Dchmc.c280 struct jbusmc_dimm_group *dp = &p->dimm_groups[i]; in jbusmc_find_dimm_group() local
282 if (phys_addr < dp->base_addr || in jbusmc_find_dimm_group()
283 (dp->base_addr + dp->size) <= phys_addr) in jbusmc_find_dimm_group()
286 return dp; in jbusmc_find_dimm_group()
297 struct jbusmc_dimm_group *dp; in jbusmc_print_dimm() local
301 dp = jbusmc_find_dimm_group(phys_addr); in jbusmc_print_dimm()
302 if (dp == NULL || in jbusmc_print_dimm()
311 p = dp->controller; in jbusmc_print_dimm()
314 first_dimm = dp->index * JB_NUM_DIMMS_PER_GROUP; in jbusmc_print_dimm()
371 struct jbusmc_dimm_group *dp = &p->dimm_groups[index]; in jbusmc_construct_one_dimm_group() local
[all …]
Dauxio_64.c107 struct device_node *dp = dev->dev.of_node; in auxio_probe() local
110 if (!strcmp(dp->parent->name, "ebus")) { in auxio_probe()
113 } else if (!strcmp(dp->parent->name, "sbus")) { in auxio_probe()
118 dp->parent->name); in auxio_probe()
126 dp->full_name); in auxio_probe()
Ddevices.c56 struct device_node *dp; in __cpu_find_by() local
60 for_each_node_by_type(dp, "cpu") { in __cpu_find_by()
61 int err = check_cpu_node(dp->phandle, &cur_inst, in __cpu_find_by()
65 of_node_put(dp); in __cpu_find_by()
Dsun4m_irq.c357 struct device_node *dp = of_find_node_by_name(NULL, "counter"); in sun4m_init_timers() local
362 if (!dp) { in sun4m_init_timers()
367 addr = of_get_property(dp, "address", &len); in sun4m_init_timers()
368 of_node_put(dp); in sun4m_init_timers()
434 struct device_node *dp = of_find_node_by_name(NULL, "interrupt"); in sun4m_init_IRQ() local
438 if (!dp) { in sun4m_init_IRQ()
443 addr = of_get_property(dp, "address", &len); in sun4m_init_IRQ()
444 of_node_put(dp); in sun4m_init_IRQ()
Dpci_sabre.c314 struct device_node *dp = pbm->op->dev.of_node; in sabre_register_error_handlers() local
321 dp = dp->parent; in sabre_register_error_handlers()
323 op = of_find_device_by_node(dp); in sabre_register_error_handlers()
460 struct device_node *dp = op->dev.of_node; in sabre_probe() local
497 upa_portid = of_getintprop_default(dp, "upa-portid", 0xff); in sabre_probe()
505 pr_regs = of_get_property(dp, "reg", NULL); in sabre_probe()
535 vdma = of_get_property(dp, "virtual-dma", NULL); in sabre_probe()
Dprom_common.c54 int of_set_property(struct device_node *dp, const char *name, void *val, int len) in of_set_property() argument
69 prevp = &dp->properties; in of_set_property()
77 ret = prom_setprop(dp->phandle, name, val, len); in of_set_property()
Dtime_64.c537 struct device_node *dp = op->dev.of_node; in mostek_probe() local
542 if (!strcmp(dp->parent->name, "fhc") && in mostek_probe()
543 strcmp(dp->parent->parent->name, "central") != 0) in mostek_probe()
547 dp->full_name, op->resource[0].start); in mostek_probe()
602 struct device_node *dp; in sparc64_init_timers() local
605 dp = of_find_node_by_path("/"); in sparc64_init_timers()
616 freq = of_getintprop_default(dp, "stick-frequency", 0); in sparc64_init_timers()
623 freq = of_getintprop_default(dp, "stick-frequency", 0); in sparc64_init_timers()
Dpower.c26 static int has_button_interrupt(unsigned int irq, struct device_node *dp) in has_button_interrupt() argument
30 if (!of_find_property(dp, "button", NULL)) in has_button_interrupt()
Dirq_64.c906 struct device_node *dp; in map_prom_timers() local
910 dp = of_find_node_by_path("/"); in map_prom_timers()
911 dp = dp->child; in map_prom_timers()
912 while (dp) { in map_prom_timers()
913 if (!strcmp(dp->name, "counter-timer")) in map_prom_timers()
915 dp = dp->sibling; in map_prom_timers()
921 if (!dp) { in map_prom_timers()
927 addr = of_get_property(dp, "address", NULL); in map_prom_timers()
Dleon_kernel.c486 void __init leon_trans_init(struct device_node *dp) in leon_trans_init() argument
488 if (strcmp(dp->type, "cpu") == 0 && strcmp(dp->name, "<NULL>") == 0) { in leon_trans_init()
490 p = of_find_property(dp, "mid", (void *)0); in leon_trans_init()
493 dp->name = prom_early_alloc(5 + 1); in leon_trans_init()
495 sprintf((char *)dp->name, "cpu%.2d", mid); in leon_trans_init()
Dpci_fire.c415 struct device_node *dp = op->dev.of_node; in pci_fire_pbm_init() local
427 pbm->name = dp->full_name; in pci_fire_pbm_init()
429 regs = of_get_property(dp, "reg", NULL); in pci_fire_pbm_init()
459 struct device_node *dp = op->dev.of_node; in fire_probe() local
465 portid = of_getintprop_default(dp, "portid", 0xff); in fire_probe()
Dpci_sun4v.c518 struct device_node *dp; in pci_sun4v_scan_bus() local
520 dp = pbm->op->dev.of_node; in pci_sun4v_scan_bus()
521 prop = of_find_property(dp, "66mhz-capable", NULL); in pci_sun4v_scan_bus()
865 struct device_node *dp = op->dev.of_node; in pci_sun4v_pbm_init() local
868 pbm->numa_node = of_node_to_nid(dp); in pci_sun4v_pbm_init()
879 pbm->name = dp->full_name; in pci_sun4v_pbm_init()
907 struct device_node *dp; in pci_sun4v_probe() local
912 dp = op->dev.of_node; in pci_sun4v_probe()
930 regs = of_get_property(dp, "reg", NULL); in pci_sun4v_probe()
Dtime_32.c281 struct device_node *dp = op->dev.of_node; in clock_probe() local
282 const char *model = of_get_property(dp, "model", NULL); in clock_probe()
288 if (!of_find_property(dp, "address", NULL)) in clock_probe()
Dsbus.c541 struct device_node *dp = op->dev.of_node; in sbus_iommu_init() local
548 pr = of_get_property(dp, "reg", NULL); in sbus_iommu_init()
664 struct device_node *dp; in sbus_init() local
666 for_each_node_by_name(dp, "sbus") { in sbus_init()
667 struct platform_device *op = of_find_device_by_node(dp); in sbus_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Ddport.c49 dp_set_link_config(struct dp_state *dp) in dp_set_link_config() argument
51 struct nvkm_output_dp_impl *impl = (void *)nv_oclass(dp->outp); in dp_set_link_config()
52 struct nvkm_output_dp *outp = dp->outp; in dp_set_link_config()
67 DBG("%d lanes at %d KB/s\n", dp->link_nr, dp->link_bw); in dp_set_link_config()
70 if ((lnkcmp = dp->outp->info.lnkcmp)) { in dp_set_link_config()
72 while ((dp->link_bw / 10) < nv_ro16(bios, lnkcmp)) in dp_set_link_config()
76 while ((dp->link_bw / 27000) < nv_ro08(bios, lnkcmp)) in dp_set_link_config()
84 ret = impl->lnk_ctl(outp, dp->link_nr, dp->link_bw / 27000, in dp_set_link_config()
93 impl->lnk_pwr(outp, dp->link_nr); in dp_set_link_config()
96 sink[0] = dp->link_bw / 27000; in dp_set_link_config()
[all …]
/linux-4.1.27/drivers/md/
Ddm-io.c160 void (*get_page)(struct dpages *dp,
162 void (*next_page)(struct dpages *dp);
174 static void list_get_page(struct dpages *dp, in list_get_page() argument
177 unsigned o = dp->context_u; in list_get_page()
178 struct page_list *pl = (struct page_list *) dp->context_ptr; in list_get_page()
185 static void list_next_page(struct dpages *dp) in list_next_page() argument
187 struct page_list *pl = (struct page_list *) dp->context_ptr; in list_next_page()
188 dp->context_ptr = pl->next; in list_next_page()
189 dp->context_u = 0; in list_next_page()
192 static void list_dp_init(struct dpages *dp, struct page_list *pl, unsigned offset) in list_dp_init() argument
[all …]
/linux-4.1.27/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-4.1.27/drivers/of/
Dpdt.c28 void __initdata (*of_pdt_build_more)(struct device_node *dp);
37 static char * __init of_pdt_build_full_name(struct device_node *dp) in of_pdt_build_full_name() argument
42 dp->path_component_name = build_path_component(dp); in of_pdt_build_full_name()
44 plen = strlen(dp->parent->full_name); in of_pdt_build_full_name()
45 ourlen = strlen(dp->path_component_name); in of_pdt_build_full_name()
49 strcpy(n, dp->parent->full_name); in of_pdt_build_full_name()
50 if (!of_node_is_root(dp->parent)) { in of_pdt_build_full_name()
54 strcpy(n + plen, dp->path_component_name); in of_pdt_build_full_name()
62 static inline void irq_trans_init(struct device_node *dp) { } in irq_trans_init() argument
64 static char * __init of_pdt_build_full_name(struct device_node *dp) in of_pdt_build_full_name() argument
[all …]
/linux-4.1.27/drivers/net/
Difb.c66 struct ifb_private *dp = netdev_priv(_dev); in ri_tasklet() local
71 if ((skb = skb_peek(&dp->tq)) == NULL) { in ri_tasklet()
73 skb_queue_splice_tail_init(&dp->rq, &dp->tq); in ri_tasklet()
81 while ((skb = __skb_dequeue(&dp->tq)) != NULL) { in ri_tasklet()
87 u64_stats_update_begin(&dp->tsync); in ri_tasklet()
88 dp->tx_packets++; in ri_tasklet()
89 dp->tx_bytes += skb->len; in ri_tasklet()
90 u64_stats_update_end(&dp->tsync); in ri_tasklet()
98 if (skb_queue_len(&dp->tq) != 0) in ri_tasklet()
115 if ((skb = skb_peek(&dp->rq)) == NULL) { in ri_tasklet()
[all …]
/linux-4.1.27/arch/m68k/mm/
Dmemory.c33 #define PD_MARKBITS(dp) (*(unsigned char *)&PD_PAGE(dp)->index) argument
39 ptable_desc *dp; in init_pointer_table() local
43 dp = PD_PTABLE(page); in init_pointer_table()
44 if (!(PD_MARKBITS(dp) & mask)) { in init_pointer_table()
45 PD_MARKBITS(dp) = 0xff; in init_pointer_table()
46 list_add(dp, &ptable_list); in init_pointer_table()
49 PD_MARKBITS(dp) &= ~mask; in init_pointer_table()
51 printk("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp)); in init_pointer_table()
55 PD_PAGE(dp)->flags &= ~(1 << PG_reserved); in init_pointer_table()
56 init_page_count(PD_PAGE(dp)); in init_pointer_table()
[all …]
/linux-4.1.27/drivers/sbus/char/
Dopenprom.c143 static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromgetprop() argument
148 if (!dp || in opromgetprop()
149 !(pval = of_get_property(dp, op->oprom_array, &len)) || in opromgetprop()
160 static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromnxtprop() argument
165 if (!dp) in opromnxtprop()
168 prop = dp->properties; in opromnxtprop()
173 prop = of_find_property(dp, op->oprom_array, NULL); in opromnxtprop()
190 static int opromsetopt(struct device_node *dp, struct openpromio *op, int bufsize) in opromsetopt() argument
198 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio… in opromnext() argument
209 dp = of_find_node_by_phandle(ph); in opromnext()
[all …]
Denvctrl.c769 static void envctrl_init_adc(struct i2c_child_t *pchild, struct device_node *dp) in envctrl_init_adc() argument
776 pos = of_get_property(dp, "channels-description", &len); in envctrl_init_adc()
786 pval = of_get_property(dp, "warning-temp", NULL); in envctrl_init_adc()
790 pval = of_get_property(dp, "shutdown-temp", NULL); in envctrl_init_adc()
863 static void envctrl_init_i2c_child(struct device_node *dp, in envctrl_init_i2c_child() argument
870 pval = of_get_property(dp, "reg", &len); in envctrl_init_i2c_child()
874 pval = of_get_property(dp, "translation", &len); in envctrl_init_i2c_child()
889 pval = of_get_property(dp, "tables", &len); in envctrl_init_i2c_child()
918 pval = of_get_property(dp, "channels-in-use", &len); in envctrl_init_i2c_child()
925 envctrl_init_adc(pchild, dp); in envctrl_init_i2c_child()
[all …]
Dbbc_i2c.c296 struct device_node *dp; in attach_one_i2c() local
328 for (dp = op->dev.of_node->child; in attach_one_i2c()
329 dp && entry < 8; in attach_one_i2c()
330 dp = dp->sibling, entry++) { in attach_one_i2c()
333 child_op = of_find_device_by_node(dp); in attach_one_i2c()
/linux-4.1.27/fs/xfs/
Dxfs_attr_inactive.c49 struct xfs_inode *dp, in xfs_attr3_leaf_freextent() argument
73 error = xfs_bmapi_read(dp, (xfs_fileoff_t)tblkno, tblkcnt, in xfs_attr3_leaf_freextent()
87 dblkno = XFS_FSB_TO_DADDR(dp->i_mount, in xfs_attr3_leaf_freextent()
89 dblkcnt = XFS_FSB_TO_BB(dp->i_mount, in xfs_attr3_leaf_freextent()
92 dp->i_mount->m_ddev_targp, in xfs_attr3_leaf_freextent()
100 error = xfs_trans_roll(trans, dp); in xfs_attr3_leaf_freextent()
121 struct xfs_inode *dp, in xfs_attr3_leaf_inactive() argument
179 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
192 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive()
210 struct xfs_inode *dp, in xfs_attr3_node_inactive() argument
[all …]
Dxfs_dir2_readdir.c64 struct xfs_inode *dp = args->dp; /* incore directory inode */ in xfs_dir2_sf_getdents() local
73 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_getdents()
77 if (dp->i_d.di_size < offsetof(xfs_dir2_sf_hdr_t, parent)) { in xfs_dir2_sf_getdents()
78 ASSERT(XFS_FORCED_SHUTDOWN(dp->i_mount)); in xfs_dir2_sf_getdents()
82 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_getdents()
83 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_getdents()
85 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
87 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_getdents()
102 dp->d_ops->data_dot_offset); in xfs_dir2_sf_getdents()
104 dp->d_ops->data_dotdot_offset); in xfs_dir2_sf_getdents()
[all …]
Dxfs_attr_list.c75 xfs_inode_t *dp; in xfs_attr_shortform_list() local
80 dp = context->dp; in xfs_attr_shortform_list()
81 ASSERT(dp != NULL); in xfs_attr_shortform_list()
82 ASSERT(dp->i_afp != NULL); in xfs_attr_shortform_list()
83 sf = (xfs_attr_shortform_t *)dp->i_afp->if_u1.if_data; in xfs_attr_shortform_list()
103 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
145 ((char *)sfe >= ((char *)sf + dp->i_afp->if_bytes)))) { in xfs_attr_shortform_list()
148 context->dp->i_mount, sfe); in xfs_attr_shortform_list()
229 struct xfs_inode *dp = context->dp; in xfs_attr_node_list() local
230 struct xfs_mount *mp = dp->i_mount; in xfs_attr_node_list()
[all …]
Dxfs_attr.h119 struct xfs_inode *dp; /* inode */ member
142 int xfs_attr_inactive(struct xfs_inode *dp);
147 int xfs_attr_set(struct xfs_inode *dp, const unsigned char *name,
149 int xfs_attr_remove(struct xfs_inode *dp, const unsigned char *name, int flags);
150 int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize,
Dxfs_symlink.c167 struct xfs_inode *dp, in xfs_symlink() argument
173 struct xfs_mount *mp = dp->i_mount; in xfs_symlink()
200 trace_xfs_symlink(dp, link_name); in xfs_symlink()
213 prid = xfs_get_initial_prid(dp); in xfs_symlink()
218 error = xfs_qm_vop_dqalloc(dp, in xfs_symlink()
232 if (pathlen <= XFS_LITINO(mp, dp->i_d.di_version)) in xfs_symlink()
247 xfs_ilock(dp, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); in xfs_symlink()
253 if (dp->i_d.di_flags & XFS_DIFLAG_NOSYMLINKS) { in xfs_symlink()
270 error = xfs_dir_canenter(tp, dp, link_name); in xfs_symlink()
283 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, in xfs_symlink()
[all …]
Dxfs_inode.h197 xfs_get_initial_prid(struct xfs_inode *dp) in xfs_get_initial_prid() argument
199 if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) in xfs_get_initial_prid()
200 return xfs_get_projid(dp); in xfs_get_initial_prid()
343 int xfs_lookup(struct xfs_inode *dp, struct xfs_name *name,
345 int xfs_create(struct xfs_inode *dp, struct xfs_name *name,
347 int xfs_create_tmpfile(struct xfs_inode *dp, struct dentry *dentry,
349 int xfs_remove(struct xfs_inode *dp, struct xfs_name *name,
Dxfs_inode.c625 xfs_inode_t *dp, in xfs_lookup() argument
634 trace_xfs_lookup(dp, name); in xfs_lookup()
636 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) in xfs_lookup()
639 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_lookup()
640 error = xfs_dir_lookup(NULL, dp, name, &inum, ci_name); in xfs_lookup()
641 xfs_iunlock(dp, lock_mode); in xfs_lookup()
646 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup()
895 xfs_inode_t *dp, /* directory within whose allocate in xfs_dir_ialloc() argument
933 code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, okalloc, in xfs_dir_ialloc()
1039 code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, in xfs_dir_ialloc()
[all …]
Dxfs_log_recover.c3377 xfs_caddr_t dp, in xlog_recover_add_to_cont_trans() argument
3389 memcpy(ptr, dp, len); in xlog_recover_add_to_cont_trans()
3399 memcpy(&ptr[old_len], dp, len); in xlog_recover_add_to_cont_trans()
3423 xfs_caddr_t dp, in xlog_recover_add_to_trans() argument
3434 if (*(uint *)dp != XFS_TRANS_HEADER_MAGIC) { in xlog_recover_add_to_trans()
3442 memcpy(&trans->r_theader, dp, len); in xlog_recover_add_to_trans()
3447 memcpy(ptr, dp, len); in xlog_recover_add_to_trans()
3517 xfs_caddr_t dp, in xlog_recovery_process_trans() argument
3538 error = xlog_recover_add_to_trans(log, trans, dp, len); in xlog_recovery_process_trans()
3541 error = xlog_recover_add_to_cont_trans(log, trans, dp, len); in xlog_recovery_process_trans()
[all …]
/linux-4.1.27/lib/
Dasn1_decoder.c60 size_t dp = *_dp, len, n; in asn1_find_indefinite_length() local
64 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length()
65 if (datalen == dp) in asn1_find_indefinite_length()
71 tag = data[dp++]; in asn1_find_indefinite_length()
74 if (data[dp++] != 0) in asn1_find_indefinite_length()
77 *_len = dp - *_dp; in asn1_find_indefinite_length()
78 *_dp = dp; in asn1_find_indefinite_length()
86 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length()
88 tmp = data[dp++]; in asn1_find_indefinite_length()
93 len = data[dp++]; in asn1_find_indefinite_length()
[all …]
Ddynamic_debug.c89 static char *ddebug_describe_flags(struct _ddebug *dp, char *buf, in ddebug_describe_flags() argument
97 if (dp->flags & opt_array[i].flag) in ddebug_describe_flags()
157 struct _ddebug *dp = &dt->ddebugs[i]; in ddebug_change() local
161 !match_wildcard(query->filename, dp->filename) && in ddebug_change()
163 kbasename(dp->filename)) && in ddebug_change()
165 trim_prefix(dp->filename))) in ddebug_change()
170 !match_wildcard(query->function, dp->function)) in ddebug_change()
175 !strstr(dp->format, query->format)) in ddebug_change()
180 dp->lineno < query->first_lineno) in ddebug_change()
183 dp->lineno > query->last_lineno) in ddebug_change()
[all …]
/linux-4.1.27/arch/mips/alchemy/common/
Ddbdma.c212 void *au1xxx_ddma_get_nextptr_virt(au1x_ddma_desc_t *dp) in au1xxx_ddma_get_nextptr_virt() argument
214 return phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_ddma_get_nextptr_virt()
398 au1x_ddma_desc_t *dp; in au1xxx_dbdma_ring_alloc() local
436 dp = (au1x_ddma_desc_t *)desc_base; in au1xxx_dbdma_ring_alloc()
439 ctp->chan_desc_base = dp; in au1xxx_dbdma_ring_alloc()
564 dp->dscr_cmd0 = cmd0; in au1xxx_dbdma_ring_alloc()
565 dp->dscr_cmd1 = cmd1; in au1xxx_dbdma_ring_alloc()
566 dp->dscr_source0 = src0; in au1xxx_dbdma_ring_alloc()
567 dp->dscr_source1 = src1; in au1xxx_dbdma_ring_alloc()
568 dp->dscr_dest0 = dest0; in au1xxx_dbdma_ring_alloc()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/
Dmicropatch.c626 volatile uint *dp; /* Dual-ported RAM. */ in cpm_load_patch() local
643 dp = (uint *)(commproc->cp_dpmem); in cpm_load_patch()
645 *dp++ = patch_2000[i]; in cpm_load_patch()
647 dp = (uint *)&(commproc->cp_dpmem[0x0f00]); in cpm_load_patch()
649 *dp++ = patch_2f00[i]; in cpm_load_patch()
661 dp = (uint *)(commproc->cp_dpmem); in cpm_load_patch()
663 *dp++ = patch_2000[i]; in cpm_load_patch()
665 dp = (uint *)&(commproc->cp_dpmem[0x0f00]); in cpm_load_patch()
667 *dp++ = patch_2f00[i]; in cpm_load_patch()
691 dp = (uint *)&(commproc->cp_dpmem[0x0e00]); in cpm_load_patch()
[all …]
Ddcr.c66 struct device_node *dp; in dcr_map_generic() local
71 dp = find_dcr_parent(dev); in dcr_map_generic()
72 if (dp == NULL) in dcr_map_generic()
75 prop = of_get_property(dp, "dcr-access-method", NULL); in dcr_map_generic()
87 of_node_put(dp); in dcr_map_generic()
159 struct device_node *dp; in of_translate_dcr_address() local
164 dp = find_dcr_parent(dev); in of_translate_dcr_address()
165 if (dp == NULL) in of_translate_dcr_address()
169 p = of_get_property(dp, "dcr-mmio-stride", NULL); in of_translate_dcr_address()
173 p = of_get_property(dp, "dcr-mmio-range", NULL); in of_translate_dcr_address()
[all …]
Ddart_iommu.c168 unsigned int *dp; in dart_build() local
174 dp = ((unsigned int*)tbl->it_base) + index; in dart_build()
183 *(dp++) = DARTMAP_VALID | (rpn & DARTMAP_RPNMASK); in dart_build()
190 in_be32((unsigned __iomem *)dp); in dart_build()
206 unsigned int *dp; in dart_free() local
215 dp = ((unsigned int *)tbl->it_base) + index; in dart_free()
218 *(dp++) = dart_emptyval; in dart_free()
/linux-4.1.27/net/openvswitch/
Ddatapath.c139 static int queue_gso_packets(struct datapath *dp, struct sk_buff *,
142 static int queue_userspace_packet(struct datapath *dp, struct sk_buff *,
154 return vport->dp; in get_dp_rcu()
165 struct datapath *dp; in get_dp() local
169 dp = get_dp_rcu(net, dp_ifindex); in get_dp()
172 return dp; in get_dp()
176 const char *ovs_dp_name(const struct datapath *dp) in ovs_dp_name() argument
178 struct vport *vport = ovs_vport_ovsl_rcu(dp, OVSP_LOCAL); in ovs_dp_name()
182 static int get_dpifindex(const struct datapath *dp) in get_dpifindex() argument
189 local = ovs_vport_rcu(dp, OVSP_LOCAL); in get_dpifindex()
[all …]
Ddatapath.h150 static inline struct net *ovs_dp_get_net(const struct datapath *dp) in ovs_dp_get_net() argument
152 return read_pnet(&dp->net); in ovs_dp_get_net()
155 static inline void ovs_dp_set_net(struct datapath *dp, struct net *net) in ovs_dp_set_net() argument
157 write_pnet(&dp->net, net); in ovs_dp_set_net()
160 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no);
162 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) in ovs_vport_rcu() argument
165 return ovs_lookup_vport(dp, port_no); in ovs_vport_rcu()
168 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) in ovs_vport_ovsl_rcu() argument
171 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl_rcu()
174 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) in ovs_vport_ovsl() argument
[all …]
Ddp_notify.c30 struct datapath *dp; in dp_detach_port_notify() local
32 dp = vport->dp; in dp_detach_port_notify()
37 genl_set_err(&dp_vport_genl_family, ovs_dp_get_net(dp), 0, in dp_detach_port_notify()
43 ovs_dp_get_net(dp), notify, 0, in dp_detach_port_notify()
50 struct datapath *dp; in ovs_dp_notify_wq() local
53 list_for_each_entry(dp, &ovs_net->dps, list_node) { in ovs_dp_notify_wq()
60 hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node) { in ovs_dp_notify_wq()
Dactions.c43 static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
600 static void do_output(struct datapath *dp, struct sk_buff *skb, int out_port) in do_output() argument
602 struct vport *vport = ovs_vport_rcu(dp, out_port); in do_output()
610 static int output_userspace(struct datapath *dp, struct sk_buff *skb, in output_userspace() argument
638 vport = ovs_vport_rcu(dp, nla_get_u32(a)); in output_userspace()
653 return ovs_dp_upcall(dp, skb, key, &upcall); in output_userspace()
656 static int sample(struct datapath *dp, struct sk_buff *skb, in sample() argument
691 return output_userspace(dp, skb, key, a); in sample()
701 ovs_dp_name(dp)); in sample()
800 static int execute_recirc(struct datapath *dp, struct sk_buff *skb, in execute_recirc() argument
[all …]
Dvport-netdev.c80 static struct net_device *get_dpdev(const struct datapath *dp) in get_dpdev() argument
84 local = ovs_vport_ovsl(dp, OVSP_LOCAL); in get_dpdev()
104 netdev_vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), parms->name); in netdev_create()
119 get_dpdev(vport->dp)); in netdev_create()
136 netdev_upper_dev_unlink(netdev_vport->dev, get_dpdev(vport->dp)); in netdev_create()
Dvport-gre.c136 struct net *net = ovs_dp_get_net(vport->dp); in gre_tnl_send()
239 struct net *net = ovs_dp_get_net(parms->dp); in gre_create()
269 struct net *net = ovs_dp_get_net(vport->dp); in gre_tnl_destroy()
283 ovs_dp_get_net(vport->dp), in gre_get_egress_tun_info()
Dvport-geneve.c128 struct net *net = ovs_dp_get_net(parms->dp); in geneve_tnl_create()
175 struct net *net = ovs_dp_get_net(vport->dp); in geneve_tnl_send()
236 struct net *net = ovs_dp_get_net(vport->dp); in geneve_get_egress_tun_info()
243 ovs_dp_get_net(vport->dp), in geneve_get_egress_tun_info()
Dvport.c117 net_eq(ovs_dp_get_net(vport->dp), net)) in ovs_vport_locate()
150 vport->dp = parms->dp; in ovs_vport_alloc()
228 bucket = hash_bucket(ovs_dp_get_net(vport->dp), in ovs_vport_add()
427 if (vport->dp->user_features & OVS_DP_F_VPORT_PIDS) in ovs_vport_get_upcall_portids()
Dvport.h110 struct datapath *dp; member
140 struct datapath *dp; member
/linux-4.1.27/net/dccp/
Dinput.c176 const struct dccp_sock *dp = dccp_sk(sk); in dccp_deliver_input_to_ccids() local
180 ccid_hc_rx_packet_recv(dp->dccps_hc_rx_ccid, sk, skb); in dccp_deliver_input_to_ccids()
186 ccid_hc_tx_packet_recv(dp->dccps_hc_tx_ccid, sk, skb); in dccp_deliver_input_to_ccids()
192 struct dccp_sock *dp = dccp_sk(sk); in dccp_check_seqno() local
210 if (between48(ackno, dp->dccps_awl, dp->dccps_awh) && in dccp_check_seqno()
211 dccp_delta_seqno(dp->dccps_swl, seqno) >= 0) in dccp_check_seqno()
228 lswl = dp->dccps_swl; in dccp_check_seqno()
229 lawl = dp->dccps_awl; in dccp_check_seqno()
234 lswl = ADD48(dp->dccps_gsr, 1); in dccp_check_seqno()
235 lawl = dp->dccps_gar; in dccp_check_seqno()
[all …]
Doutput.c50 struct dccp_sock *dp = dccp_sk(sk); in dccp_transmit_skb() local
58 u64 ackno = dp->dccps_gsr; in dccp_transmit_skb()
63 dcb->dccpd_seq = ADD48(dp->dccps_gss, 1); in dccp_transmit_skb()
77 dcb->dccpd_seq = dp->dccps_iss; in dccp_transmit_skb()
109 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb()
114 dccp_hdr_set_seq(dh, dp->dccps_gss); in dccp_transmit_skb()
121 dp->dccps_service; in dccp_transmit_skb()
126 dp->dccps_awl = dp->dccps_iss; in dccp_transmit_skb()
153 static u32 dccp_determine_ccmps(const struct dccp_sock *dp) in dccp_determine_ccmps() argument
155 const struct ccid *tx_ccid = dp->dccps_hc_tx_ccid; in dccp_determine_ccmps()
[all …]
Ddccp.h268 int dccp_reqsk_init(struct request_sock *rq, struct dccp_sock const *dp,
331 const struct dccp_sock *dp = dccp_sk(sk); in dccp_bad_service_code() local
333 if (dp->dccps_service == service) in dccp_bad_service_code()
335 return !dccp_list_has_service(dp->dccps_service_list, service); in dccp_bad_service_code()
420 struct dccp_sock *dp = dccp_sk(sk); in dccp_update_gsr() local
422 if (after48(seq, dp->dccps_gsr)) in dccp_update_gsr()
423 dp->dccps_gsr = seq; in dccp_update_gsr()
425 dp->dccps_swl = SUB48(ADD48(dp->dccps_gsr, 1), dp->dccps_r_seq_win / 4); in dccp_update_gsr()
441 if (before48(dp->dccps_swl, dp->dccps_isr)) in dccp_update_gsr()
442 dp->dccps_swl = dp->dccps_isr; in dccp_update_gsr()
[all …]
Doptions.c54 struct dccp_sock *dp = dccp_sk(sk); in dccp_parse_options() local
61 struct dccp_options_received *opt_recv = &dp->dccps_options_received; in dccp_parse_options()
152 dp->dccps_timestamp_echo = ntohl(opt_val); in dccp_parse_options()
153 dp->dccps_timestamp_time = dccp_timestamp(); in dccp_parse_options()
218 if (ccid_hc_rx_parse_options(dp->dccps_hc_rx_ccid, sk, in dccp_parse_options()
233 if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk, in dccp_parse_options()
314 struct dccp_sock *dp = dccp_sk(sk); in dccp_insert_option_ndp() local
315 u64 ndp = dp->dccps_ndp_count; in dccp_insert_option_ndp()
318 ++dp->dccps_ndp_count; in dccp_insert_option_ndp()
320 dp->dccps_ndp_count = 0; in dccp_insert_option_ndp()
[all …]
Dproto.c175 struct dccp_sock *dp = dccp_sk(sk); in dccp_init_sock() local
183 dp->dccps_mss_cache = 536; in dccp_init_sock()
184 dp->dccps_rate_last = jiffies; in dccp_init_sock()
185 dp->dccps_role = DCCP_ROLE_UNDEFINED; in dccp_init_sock()
186 dp->dccps_service = DCCP_SERVICE_CODE_IS_ABSENT; in dccp_init_sock()
187 dp->dccps_tx_qlen = sysctl_dccp_tx_qlen; in dccp_init_sock()
191 INIT_LIST_HEAD(&dp->dccps_featneg); in dccp_init_sock()
202 struct dccp_sock *dp = dccp_sk(sk); in dccp_destroy_sock() local
217 kfree(dp->dccps_service_list); in dccp_destroy_sock()
218 dp->dccps_service_list = NULL; in dccp_destroy_sock()
[all …]
Ddiag.c21 struct dccp_sock *dp = dccp_sk(sk); in dccp_get_info() local
32 if (dp->dccps_hc_rx_ackvec != NULL) in dccp_get_info()
35 if (dp->dccps_hc_rx_ccid != NULL) in dccp_get_info()
36 ccid_hc_rx_get_info(dp->dccps_hc_rx_ccid, sk, info); in dccp_get_info()
38 if (dp->dccps_hc_tx_ccid != NULL) in dccp_get_info()
39 ccid_hc_tx_get_info(dp->dccps_hc_tx_ccid, sk, info); in dccp_get_info()
Dfeat.c43 struct dccp_sock *dp = dccp_sk(sk); in dccp_hdlr_ccid() local
50 ccid_hc_rx_delete(dp->dccps_hc_rx_ccid, sk); in dccp_hdlr_ccid()
51 dp->dccps_hc_rx_ccid = new_ccid; in dccp_hdlr_ccid()
53 ccid_hc_tx_delete(dp->dccps_hc_tx_ccid, sk); in dccp_hdlr_ccid()
54 dp->dccps_hc_tx_ccid = new_ccid; in dccp_hdlr_ccid()
61 struct dccp_sock *dp = dccp_sk(sk); in dccp_hdlr_seq_win() local
64 dp->dccps_r_seq_win = seq_win; in dccp_hdlr_seq_win()
66 dccp_update_gsr(sk, dp->dccps_gsr); in dccp_hdlr_seq_win()
68 dp->dccps_l_seq_win = seq_win; in dccp_hdlr_seq_win()
70 dccp_update_gss(sk, dp->dccps_gss); in dccp_hdlr_seq_win()
[all …]
Dccid.h116 static inline int ccid_get_current_rx_ccid(struct dccp_sock *dp) in ccid_get_current_rx_ccid() argument
118 struct ccid *ccid = dp->dccps_hc_rx_ccid; in ccid_get_current_rx_ccid()
125 static inline int ccid_get_current_tx_ccid(struct dccp_sock *dp) in ccid_get_current_tx_ccid() argument
127 struct ccid *ccid = dp->dccps_hc_tx_ccid; in ccid_get_current_tx_ccid()
Dtimer.c243 struct dccp_sock *dp = dccp_sk(sk); in dccp_init_xmit_timers() local
245 tasklet_init(&dp->dccps_xmitlet, dccp_write_xmitlet, (unsigned long)sk); in dccp_init_xmit_timers()
246 setup_timer(&dp->dccps_xmit_timer, dccp_write_xmit_timer, in dccp_init_xmit_timers()
Dipv4.c46 struct dccp_sock *dp = dccp_sk(sk); in dccp_v4_connect() local
54 dp->dccps_role = DCCP_ROLE_CLIENT; in dccp_v4_connect()
120 dp->dccps_iss = secure_dccp_sequence_number(inet->inet_saddr, in dccp_v4_connect()
124 inet->inet_id = dp->dccps_iss ^ jiffies; in dccp_v4_connect()
153 const struct dccp_sock *dp = dccp_sk(sk); in dccp_do_pmtu_discovery() local
186 dccp_send_sync(sk, dp->dccps_gsr, DCCP_PKT_SYNC); in dccp_do_pmtu_discovery()
241 struct dccp_sock *dp; in dccp_v4_err() local
283 dp = dccp_sk(sk); in dccp_v4_err()
285 !between48(seq, dp->dccps_awl, dp->dccps_awh)) { in dccp_v4_err()
/linux-4.1.27/include/uapi/linux/
Dppp-comp.h35 #define CCP_CODE(dp) ((dp)[0]) argument
36 #define CCP_ID(dp) ((dp)[1]) argument
37 #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3]) argument
40 #define CCP_OPT_CODE(dp) ((dp)[0]) argument
41 #define CCP_OPT_LENGTH(dp) ((dp)[1]) argument
/linux-4.1.27/drivers/video/fbdev/
Doffb.c323 static void offb_init_palette_hacks(struct fb_info *info, struct device_node *dp, in offb_init_palette_hacks() argument
328 if (dp && !strncmp(name, "ATY,Rage128", 11)) { in offb_init_palette_hacks()
329 par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff); in offb_init_palette_hacks()
332 } else if (dp && (!strncmp(name, "ATY,RageM3pA", 12) in offb_init_palette_hacks()
334 par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff); in offb_init_palette_hacks()
337 } else if (dp && !strncmp(name, "ATY,RageM3pB", 12)) { in offb_init_palette_hacks()
338 par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff); in offb_init_palette_hacks()
341 } else if (dp && !strncmp(name, "ATY,Rage6", 9)) { in offb_init_palette_hacks()
342 par->cmap_adr = offb_map_reg(dp, 1, 0, 0x1fff); in offb_init_palette_hacks()
351 } else if (dp && (of_device_is_compatible(dp, "pci1014,b7") || in offb_init_palette_hacks()
[all …]
Dchipsfb.c40 #define write_ind(num, val, ap, dp) do { \ argument
41 outb((num), (ap)); outb((val), (dp)); \
43 #define read_ind(num, var, ap, dp) do { \ argument
44 outb((num), (ap)); var = inb((dp)); \
75 static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *);
350 static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) in chipsfb_pci_init() argument
357 if (pci_enable_device(dp) < 0) { in chipsfb_pci_init()
358 dev_err(&dp->dev, "Cannot enable PCI device\n"); in chipsfb_pci_init()
362 if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) in chipsfb_pci_init()
364 addr = pci_resource_start(dp, 0); in chipsfb_pci_init()
[all …]
Dcg3.c247 struct device_node *dp) in cg3_init_fix() argument
249 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); in cg3_init_fix()
260 struct device_node *dp) in cg3_rdi_maybe_fixup_var() argument
266 params = of_get_property(dp, "params", NULL); in cg3_rdi_maybe_fixup_var()
351 struct device_node *dp = op->dev.of_node; in cg3_probe() local
368 sbusfb_fill_var(&info->var, dp, 8); in cg3_probe()
372 if (!strcmp(dp->name, "cgRDI")) in cg3_probe()
375 cg3_rdi_maybe_fixup_var(&info->var, dp); in cg3_probe()
377 linebytes = of_getintprop_default(dp, "linebytes", in cg3_probe()
395 if (!of_find_property(dp, "width", NULL)) { in cg3_probe()
[all …]
Dasiliantfb.c50 #define mm_write_ind(num, val, ap, dp) do { \ argument
51 writeb((num), mmio_base + (ap)); writeb((val), mmio_base + (dp)); \
91 static int asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *);
538 static int asiliantfb_pci_init(struct pci_dev *dp, in asiliantfb_pci_init() argument
545 if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) in asiliantfb_pci_init()
547 addr = pci_resource_start(dp, 0); in asiliantfb_pci_init()
548 size = pci_resource_len(dp, 0); in asiliantfb_pci_init()
554 p = framebuffer_alloc(sizeof(u32) * 16, &dp->dev); in asiliantfb_pci_init()
569 pci_write_config_dword(dp, 4, 0x02800083); in asiliantfb_pci_init()
580 pci_set_drvdata(dp, p); in asiliantfb_pci_init()
[all …]
Dp9100.c240 static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_node *dp) in p9100_init_fix() argument
242 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); in p9100_init_fix()
254 struct device_node *dp = op->dev.of_node; in p9100_probe() local
272 sbusfb_fill_var(&info->var, dp, 8); in p9100_probe()
277 linebytes = of_getintprop_default(dp, "linebytes", info->var.xres); in p9100_probe()
297 p9100_init_fix(info, linebytes, dp); in p9100_probe()
308 dp->full_name, in p9100_probe()
Dcg14.c356 struct device_node *dp) in cg14_init_fix() argument
358 const char *name = dp->name; in cg14_init_fix()
468 struct device_node *dp = op->dev.of_node; in cg14_probe() local
482 sbusfb_fill_var(&info->var, dp, 8); in cg14_probe()
487 linebytes = of_getintprop_default(dp, "linebytes", in cg14_probe()
491 if (!strcmp(dp->parent->name, "sbus") || in cg14_probe()
492 !strcmp(dp->parent->name, "sbi")) { in cg14_probe()
548 cg14_init_fix(info, linebytes, dp); in cg14_probe()
557 dp->full_name, in cg14_probe()
Dcontrolfb.c142 static int control_of_init(struct device_node *dp);
183 struct device_node *dp; in init_module() local
186 dp = of_find_node_by_name(NULL, "control"); in init_module()
187 if (dp != 0 && !control_of_init(dp)) in init_module()
189 of_node_put(dp); in init_module()
588 struct device_node *dp; in control_init() local
596 dp = of_find_node_by_name(NULL, "control"); in control_init()
597 if (dp != 0 && !control_of_init(dp)) in control_init()
599 of_node_put(dp); in control_init()
684 static int __init control_of_init(struct device_node *dp) in control_of_init() argument
[all …]
Dsunxvr1000.c116 struct device_node *dp = op->dev.of_node; in gfb_probe() local
130 gp->of_node = dp; in gfb_probe()
153 printk("gfb: Found device at %s\n", dp->full_name); in gfb_probe()
158 dp->full_name); in gfb_probe()
Dbw2.c277 struct device_node *dp = op->dev.of_node; in bw2_probe() local
294 sbusfb_fill_var(&info->var, dp, 1); in bw2_probe()
295 linebytes = of_getintprop_default(dp, "linebytes", in bw2_probe()
308 if (!of_find_property(dp, "width", NULL)) { in bw2_probe()
337 dp->full_name, par->which_io, info->fix.smem_start); in bw2_probe()
Dleo.c435 leo_init_fix(struct fb_info *info, struct device_node *dp) in leo_init_fix() argument
437 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); in leo_init_fix()
552 struct device_node *dp = op->dev.of_node; in leo_probe() local
569 sbusfb_fill_var(&info->var, dp, 32); in leo_probe()
572 linebytes = of_getintprop_default(dp, "linebytes", in leo_probe()
614 leo_init_fix(info, dp); in leo_probe()
623 dp->full_name, in leo_probe()
Dtcx.c367 struct device_node *dp = op->dev.of_node; in tcx_probe() local
382 (of_find_property(dp, "tcx-8-bit", NULL) != NULL); in tcx_probe()
384 sbusfb_fill_var(&info->var, dp, 8); in tcx_probe()
389 linebytes = of_getintprop_default(dp, "linebytes", in tcx_probe()
471 dp->full_name, in tcx_probe()
/linux-4.1.27/fs/cifs/
Dcifs_spnego.c104 char *description, *dp; in cifs_get_spnego_key() local
128 dp = description; in cifs_get_spnego_key()
131 sprintf(dp, "ver=0x%x;host=%s;", CIFS_SPNEGO_UPCALL_VERSION, in cifs_get_spnego_key()
133 dp = description + strlen(description); in cifs_get_spnego_key()
137 sprintf(dp, "ip4=%pI4", &sa->sin_addr); in cifs_get_spnego_key()
139 sprintf(dp, "ip6=%pI6", &sa6->sin6_addr); in cifs_get_spnego_key()
143 dp = description + strlen(description); in cifs_get_spnego_key()
147 sprintf(dp, ";sec=krb5"); in cifs_get_spnego_key()
149 sprintf(dp, ";sec=mskrb5"); in cifs_get_spnego_key()
153 dp = description + strlen(description); in cifs_get_spnego_key()
[all …]
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-dp.c79 static inline struct ipu_flow *to_flow(struct ipu_dp *dp) in to_flow() argument
81 if (dp->foreground) in to_flow()
82 return container_of(dp, struct ipu_flow, foreground); in to_flow()
84 return container_of(dp, struct ipu_flow, background); in to_flow()
87 int ipu_dp_set_global_alpha(struct ipu_dp *dp, bool enable, in ipu_dp_set_global_alpha() argument
90 struct ipu_flow *flow = to_flow(dp); in ipu_dp_set_global_alpha()
123 int ipu_dp_set_window_pos(struct ipu_dp *dp, u16 x_pos, u16 y_pos) in ipu_dp_set_window_pos() argument
125 struct ipu_flow *flow = to_flow(dp); in ipu_dp_set_window_pos()
176 int ipu_dp_setup_channel(struct ipu_dp *dp, in ipu_dp_setup_channel() argument
180 struct ipu_flow *flow = to_flow(dp); in ipu_dp_setup_channel()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_dp.c59 u8 *dpcd = nv_encoder->dp.dpcd; in nouveau_dp_detect()
70 nv_encoder->dp.link_bw = 27000 * dpcd[1]; in nouveau_dp_detect()
71 nv_encoder->dp.link_nr = dpcd[2] & DP_MAX_LANE_COUNT_MASK; in nouveau_dp_detect()
74 nv_encoder->dp.link_nr, nv_encoder->dp.link_bw, dpcd[0]); in nouveau_dp_detect()
79 if (nv_encoder->dcb->dpconf.link_nr < nv_encoder->dp.link_nr) in nouveau_dp_detect()
80 nv_encoder->dp.link_nr = nv_encoder->dcb->dpconf.link_nr; in nouveau_dp_detect()
81 if (nv_encoder->dcb->dpconf.link_bw < nv_encoder->dp.link_bw) in nouveau_dp_detect()
82 nv_encoder->dp.link_bw = nv_encoder->dcb->dpconf.link_bw; in nouveau_dp_detect()
85 nv_encoder->dp.link_nr, nv_encoder->dp.link_bw); in nouveau_dp_detect()
/linux-4.1.27/drivers/input/serio/
Di8042-sparcio.h55 struct device_node *dp = op->dev.of_node; in sparc_i8042_probe() local
57 dp = dp->child; in sparc_i8042_probe()
58 while (dp) { in sparc_i8042_probe()
59 if (!strcmp(dp->name, OBP_PS2KBD_NAME1) || in sparc_i8042_probe()
60 !strcmp(dp->name, OBP_PS2KBD_NAME2)) { in sparc_i8042_probe()
61 struct platform_device *kbd = of_find_device_by_node(dp); in sparc_i8042_probe()
69 } else if (!strcmp(dp->name, OBP_PS2MS_NAME1) || in sparc_i8042_probe()
70 !strcmp(dp->name, OBP_PS2MS_NAME2)) { in sparc_i8042_probe()
71 struct platform_device *ms = of_find_device_by_node(dp); in sparc_i8042_probe()
78 dp = dp->sibling; in sparc_i8042_probe()
/linux-4.1.27/drivers/tty/serial/
Ddigicolor-usart.c125 struct digicolor_port *dp = in digicolor_rx_poll() local
129 if (!digicolor_uart_rx_empty(&dp->port)) in digicolor_rx_poll()
131 writeb_relaxed(UA_INT_RX, dp->port.membase + UA_INTFLAG_SET); in digicolor_rx_poll()
133 schedule_delayed_work(&dp->rx_poll_work, msecs_to_jiffies(100)); in digicolor_rx_poll()
261 struct digicolor_port *dp = in digicolor_uart_startup() local
278 schedule_delayed_work(&dp->rx_poll_work, msecs_to_jiffies(100)); in digicolor_uart_startup()
285 struct digicolor_port *dp = in digicolor_uart_shutdown() local
289 cancel_delayed_work_sync(&dp->rx_poll_work); in digicolor_uart_shutdown()
457 struct digicolor_port *dp; in digicolor_uart_probe() local
470 dp = devm_kzalloc(&pdev->dev, sizeof(*dp), GFP_KERNEL); in digicolor_uart_probe()
[all …]
Dsuncore.c55 int sunserial_console_match(struct console *con, struct device_node *dp, in sunserial_console_match() argument
63 if (of_console_device != dp) in sunserial_console_match()
102 struct device_node *dp; in sunserial_console_termios() local
111 dp = of_find_node_by_path("/options"); in sunserial_console_termios()
112 mode = of_get_property(dp, mode_prop, NULL); in sunserial_console_termios()
Dsunsu.c1393 static enum su_type su_get_type(struct device_node *dp) in su_get_type() argument
1402 if (dp == of_find_node_by_path(keyb)) in su_get_type()
1406 if (dp == of_find_node_by_path(ms)) in su_get_type()
1416 struct device_node *dp = op->dev.of_node; in su_probe() local
1423 type = su_get_type(dp); in su_probe()
1484 if (!strcmp(dp->name, "rsc-console") || in su_probe()
1485 !strcmp(dp->name, "lom-console")) in su_probe()
1488 sunserial_console_match(SUNSU_CONSOLE(), dp, in su_probe()
1561 struct device_node *dp; in sunsu_init() local
1565 for_each_node_by_name(dp, "su") { in sunsu_init()
[all …]
Dmpsc.c789 dma_addr_t dp, dp_p; in mpsc_init_rings() local
803 dp = ALIGN((u32)pi->dma_region, dma_get_cache_alignment()); in mpsc_init_rings()
810 pi->rxr = dp; in mpsc_init_rings()
812 dp += MPSC_RXR_SIZE; in mpsc_init_rings()
815 pi->rxb = (u8 *)dp; in mpsc_init_rings()
817 dp += MPSC_RXB_SIZE; in mpsc_init_rings()
822 pi->txr = dp; in mpsc_init_rings()
824 dp += MPSC_TXR_SIZE; in mpsc_init_rings()
827 pi->txb = (u8 *)dp; in mpsc_init_rings()
834 dp = pi->rxr; in mpsc_init_rings()
[all …]
/linux-4.1.27/lib/raid6/
Drecov_avx2.c25 u8 *p, *q, *dp, *dq; in raid6_2data_recov_avx2() local
36 dp = (u8 *)ptrs[faila]; in raid6_2data_recov_avx2()
38 ptrs[disks-2] = dp; in raid6_2data_recov_avx2()
46 ptrs[faila] = dp; in raid6_2data_recov_avx2()
69 asm volatile("vpxor %0, %%ymm0, %%ymm0" : : "m" (dp[0])); in raid6_2data_recov_avx2()
70 asm volatile("vpxor %0, %%ymm8, %%ymm8" : : "m" (dp[32])); in raid6_2data_recov_avx2()
131 asm volatile("vmovdqa %%ymm0, %0" : "=m" (dp[0])); in raid6_2data_recov_avx2()
132 asm volatile("vmovdqa %%ymm8, %0" : "=m" (dp[32])); in raid6_2data_recov_avx2()
137 dp += 64; in raid6_2data_recov_avx2()
143 asm volatile("vpxor %0, %%ymm0, %%ymm0" : : "m" (*dp)); in raid6_2data_recov_avx2()
[all …]
Drecov_ssse3.c25 u8 *p, *q, *dp, *dq; in raid6_2data_recov_ssse3() local
38 dp = (u8 *)ptrs[faila]; in raid6_2data_recov_ssse3()
40 ptrs[disks-2] = dp; in raid6_2data_recov_ssse3()
48 ptrs[faila] = dp; in raid6_2data_recov_ssse3()
79 asm volatile("pxor %0,%%xmm0" : : "m" (dp[0])); in raid6_2data_recov_ssse3()
80 asm volatile("pxor %0,%%xmm8" : : "m" (dp[16])); in raid6_2data_recov_ssse3()
135 asm volatile("movdqa %%xmm0,%0" : "=m" (dp[0])); in raid6_2data_recov_ssse3()
136 asm volatile("movdqa %%xmm8,%0" : "=m" (dp[16])); in raid6_2data_recov_ssse3()
141 dp += 32; in raid6_2data_recov_ssse3()
147 asm volatile("pxor %0,%%xmm0" : : "m" (*dp)); in raid6_2data_recov_ssse3()
[all …]
Drecov.c28 u8 *p, *q, *dp, *dq; in raid6_2data_recov_intx1() local
39 dp = (u8 *)ptrs[faila]; in raid6_2data_recov_intx1()
41 ptrs[disks-2] = dp; in raid6_2data_recov_intx1()
49 ptrs[faila] = dp; in raid6_2data_recov_intx1()
60 px = *p ^ *dp; in raid6_2data_recov_intx1()
63 *dp++ = db ^ px; /* Reconstructed A */ in raid6_2data_recov_intx1()
/linux-4.1.27/tools/iio/
Dlsiio.c47 DIR *dp; in dump_channels() local
50 dp = opendir(dev_dir_name); in dump_channels()
51 if (dp == NULL) in dump_channels()
53 while (ent = readdir(dp), ent != NULL) in dump_channels()
98 DIR *dp; in dump_devices() local
100 dp = opendir(iio_dir); in dump_devices()
101 if (dp == NULL) { in dump_devices()
106 while (ent = readdir(dp), ent != NULL) { in dump_devices()
117 rewinddir(dp); in dump_devices()
118 while (ent = readdir(dp), ent != NULL) { in dump_devices()
[all …]
Diio_utils.c90 DIR *dp; in iioutils_get_type() local
112 dp = opendir(scan_el_dir); in iioutils_get_type()
113 if (dp == NULL) { in iioutils_get_type()
117 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
171 closedir(dp); in iioutils_get_type()
190 DIR *dp; in iioutils_get_param_float() local
206 dp = opendir(device_dir); in iioutils_get_param_float()
207 if (dp == NULL) { in iioutils_get_param_float()
211 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
232 closedir(dp); in iioutils_get_param_float()
[all …]
/linux-4.1.27/drivers/ata/
Dpata_atp867x.c124 struct atp867x_priv *dp = ap->private_data; in atp867x_set_dmamode() local
136 if (dp->pci66mhz && mode > ATP867X_IO_DMAMODE_UDMA_0 && in atp867x_set_dmamode()
141 b = ioread8(dp->dma_mode); in atp867x_set_dmamode()
149 iowrite8(b, dp->dma_mode); in atp867x_set_dmamode()
155 struct atp867x_priv *dp = ap->private_data; in atp867x_get_active_clocks_shifted() local
162 if (dp->pci66mhz) in atp867x_get_active_clocks_shifted()
217 struct atp867x_priv *dp = ap->private_data; in atp867x_set_piomode() local
232 b = ioread8(dp->dma_mode); in atp867x_set_piomode()
237 iowrite8(b, dp->dma_mode); in atp867x_set_piomode()
243 iowrite8(b, dp->slave_piospd); in atp867x_set_piomode()
[all …]
/linux-4.1.27/net/rds/
Dib_cm.c127 const struct rds_ib_connect_private *dp = NULL; in rds_ib_cm_connect_complete() local
132 if (event->param.conn.private_data_len >= sizeof(*dp)) { in rds_ib_cm_connect_complete()
133 dp = event->param.conn.private_data; in rds_ib_cm_connect_complete()
136 if (dp->dp_protocol_major) { in rds_ib_cm_connect_complete()
138 RDS_PROTOCOL(dp->dp_protocol_major, in rds_ib_cm_connect_complete()
139 dp->dp_protocol_minor)); in rds_ib_cm_connect_complete()
140 rds_ib_set_flow_control(conn, be32_to_cpu(dp->dp_credit)); in rds_ib_cm_connect_complete()
186 if (dp) { in rds_ib_cm_connect_complete()
191 __be64 dp_ack_seq = get_unaligned(&dp->dp_ack_seq); in rds_ib_cm_connect_complete()
203 struct rds_ib_connect_private *dp, in rds_ib_cm_fill_conn_param() argument
[all …]
Diw_cm.c72 const struct rds_iw_connect_private *dp = NULL; in rds_iw_cm_connect_complete() local
78 dp = event->param.conn.private_data; in rds_iw_cm_connect_complete()
81 RDS_PROTOCOL(dp->dp_protocol_major, in rds_iw_cm_connect_complete()
82 dp->dp_protocol_minor)); in rds_iw_cm_connect_complete()
83 rds_iw_set_flow_control(conn, be32_to_cpu(dp->dp_credit)); in rds_iw_cm_connect_complete()
95 if (dp && dp->dp_ack_seq) in rds_iw_cm_connect_complete()
96 rds_send_drop_acked(conn, be64_to_cpu(dp->dp_ack_seq), NULL); in rds_iw_cm_connect_complete()
109 struct rds_iw_connect_private *dp, in rds_iw_cm_fill_conn_param() argument
119 if (dp) { in rds_iw_cm_fill_conn_param()
120 memset(dp, 0, sizeof(*dp)); in rds_iw_cm_fill_conn_param()
[all …]
/linux-4.1.27/fs/jfs/
Djfs_dmap.c77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
104 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
106 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
114 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
116 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
117 static int dbInitDmapTree(struct dmap * dp);
[all …]
Djfs_imap.c309 struct dinode *dp; in diRead() local
385 dp = (struct dinode *) mp->data; in diRead()
386 dp += rel_inode; in diRead()
388 if (ip->i_ino != le32_to_cpu(dp->di_number)) { in diRead()
391 } else if (le32_to_cpu(dp->di_nlink) == 0) in diRead()
395 rc = copy_from_dinode(dp, ip); in diRead()
433 struct dinode *dp; in diReadSpecial() local
466 dp = (struct dinode *) (mp->data); in diReadSpecial()
467 dp += inum % 8; /* 8 inodes per 4K page */ in diReadSpecial()
470 if ((copy_from_dinode(dp, ip)) != 0) { in diReadSpecial()
[all …]
/linux-4.1.27/net/ax25/
Dax25_in.c193 ax25_digi dp, reverse_dp; in ax25_rcv() local
210 if (ax25_addr_parse(skb->data, skb->len, &src, &dest, &dp, &type, &dama) == NULL) in ax25_rcv()
216 if (dp.lastrepeat + 1 < dp.ndigi) /* Not yet digipeated completely */ in ax25_rcv()
217 next_digi = &dp.calls[dp.lastrepeat + 1]; in ax25_rcv()
222 skb_pull(skb, ax25_addr_size(&dp)); in ax25_rcv()
225 if (ax25cmp(&dest, dev_addr) == 0 && dp.lastrepeat + 1 == dp.ndigi) in ax25_rcv()
229 if (!mine && ax25_listen_mine(&dest, dev) && dp.lastrepeat + 1 == dp.ndigi) in ax25_rcv()
233 if ((*skb->data & ~0x10) == AX25_UI && dp.lastrepeat + 1 == dp.ndigi) { in ax25_rcv()
305 ax25_digi_invert(&dp, &reverse_dp); in ax25_rcv()
332 ax25_return_dm(dev, &src, &dest, &dp); in ax25_rcv()
[all …]
Dax25_addr.c276 int ax25_addr_size(const ax25_digi *dp) in ax25_addr_size() argument
278 if (dp == NULL) in ax25_addr_size()
281 return AX25_ADDR_LEN * (2 + dp->ndigi); in ax25_addr_size()
/linux-4.1.27/fs/quota/
Dquota_v2.c26 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot);
27 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp);
28 static int v2r0_is_id(void *dp, struct dquot *dquot);
29 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot);
30 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp);
31 static int v2r1_is_id(void *dp, struct dquot *dquot);
180 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument
182 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb()
196 if (!memcmp(&empty, dp, sizeof(struct v2r0_disk_dqblk))) in v2r0_disk2memdqb()
200 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument
[all …]
/linux-4.1.27/drivers/isdn/hardware/mISDN/
Diohelper.h47 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
49 insb(hw->ap.port + off, dp, size); \
51 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
53 outsb(hw->ap.port + off, dp, size); \
67 static void ReadFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \
70 insb(hw->ap.port, dp, size); \
72 static void WriteFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \
75 outsb(hw->ap.port, dp, size); \
87 static void ReadFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \
90 *dp++ = readb(((typ *)hw->adr) + off); \
[all …]
/linux-4.1.27/drivers/video/fbdev/nvidia/
Dnv_of.c31 struct device_node *parent, *dp; in nvidia_probe_of_connector() local
45 for (dp = NULL; in nvidia_probe_of_connector()
46 (dp = of_get_next_child(parent, dp)) != NULL;) { in nvidia_probe_of_connector()
47 pname = of_get_property(dp, "name", NULL); in nvidia_probe_of_connector()
54 pedid = of_get_property(dp, in nvidia_probe_of_connector()
59 of_node_put(dp); in nvidia_probe_of_connector()
/linux-4.1.27/Documentation/devicetree/bindings/video/
Dexynos_dp.txt5 -dp-controller node
6 -dptx-phy node(defined inside dp-controller node)
15 For the Panel initialization, we read data from dp-controller node.
16 Required properties for dp-controller:
18 should be "samsung,exynos5-dp".
25 from common clock binding: handle to dp clock.
27 from common clock binding: Shall be "dp".
33 from general PHY binding: Should be "dp".
55 Optional properties for dp-controller:
77 dp-controller {
[all …]
/linux-4.1.27/Documentation/networking/
Ddriver.txt16 struct drv *dp = netdev_priv(dev);
18 lock_tx(dp);
21 if (TX_BUFFS_AVAIL(dp) <= (skb_shinfo(skb)->nr_frags + 1)) {
23 unlock_tx(dp);
32 if (TX_BUFFS_AVAIL(dp) <= (MAX_SKB_FRAGS + 1))
36 unlock_tx(dp);
43 if (netif_queue_stopped(dp->dev) &&
44 TX_BUFFS_AVAIL(dp) > (MAX_SKB_FRAGS + 1))
45 netif_wake_queue(dp->dev);
50 if (TX_BUFFS_AVAIL(dp) <= 0)
[all …]
/linux-4.1.27/drivers/gpu/drm/imx/
Dipuv3-plane.c160 ret = ipu_dp_setup_channel(ipu_plane->dp, in ipu_plane_mode_set()
169 ipu_dp_set_global_alpha(ipu_plane->dp, true, 0, true); in ipu_plane_mode_set()
172 ipu_dp_setup_channel(ipu_plane->dp, in ipu_plane_mode_set()
175 ipu_dp_set_window_pos(ipu_plane->dp, crtc_x, crtc_y); in ipu_plane_mode_set()
180 ipu_dp_set_global_alpha(ipu_plane->dp, false, 0, false); in ipu_plane_mode_set()
227 if (!IS_ERR_OR_NULL(ipu_plane->dp)) in ipu_plane_put_resources()
228 ipu_dp_put(ipu_plane->dp); in ipu_plane_put_resources()
254 ipu_plane->dp = ipu_dp_get(ipu_plane->ipu, ipu_plane->dp_flow); in ipu_plane_get_resources()
255 if (IS_ERR(ipu_plane->dp)) { in ipu_plane_get_resources()
256 ret = PTR_ERR(ipu_plane->dp); in ipu_plane_get_resources()
[all …]
Dipuv3-plane.h22 struct ipu_dp *dp; member
36 int dma, int dp, unsigned int possible_crtcs,
Dipuv3-crtc.c350 int dp = -EINVAL; in ipu_crtc_init() local
368 if (pdata->dp >= 0) in ipu_crtc_init()
369 dp = IPU_DP_FLOW_SYNC_BG; in ipu_crtc_init()
372 pdata->dma[0], dp, BIT(id), true); in ipu_crtc_init()
381 if (pdata->dp >= 0 && pdata->dma[1] > 0) { in ipu_crtc_init()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_diag.c331 struct ipath_diag_xpkt dp; in ipath_diagpkt_write() local
339 if (count == sizeof(dp)) { in ipath_diagpkt_write()
340 if (copy_from_user(&dp, data, sizeof(dp))) { in ipath_diagpkt_write()
349 dp.len = odp.len; in ipath_diagpkt_write()
350 dp.unit = odp.unit; in ipath_diagpkt_write()
351 dp.data = odp.data; in ipath_diagpkt_write()
352 dp.pbc_wd = 0; in ipath_diagpkt_write()
359 if (dp.len & 3) { in ipath_diagpkt_write()
364 plen = dp.len >> 2; in ipath_diagpkt_write()
366 dd = ipath_lookup(dp.unit); in ipath_diagpkt_write()
[all …]
/linux-4.1.27/sound/
Dsound_firmware.c14 char *dp; in do_mod_firmware_load() local
30 dp = vmalloc(l); in do_mod_firmware_load()
31 if (dp == NULL) in do_mod_firmware_load()
38 if (vfs_read(filp, dp, l, &pos) != l) in do_mod_firmware_load()
41 vfree(dp); in do_mod_firmware_load()
46 *fp = dp; in do_mod_firmware_load()
/linux-4.1.27/net/dccp/ccids/
Dccid2.c234 struct dccp_sock *dp = dccp_sk(sk); in ccid2_hc_tx_packet_sent() local
262 hc->tx_seqh->ccid2s_seq = dp->dccps_gss; in ccid2_hc_tx_packet_sent()
312 if (dp->dccps_l_ack_ratio > 1) { in ccid2_hc_tx_packet_sent()
314 int denom = dp->dccps_l_ack_ratio * dp->dccps_l_ack_ratio - in ccid2_hc_tx_packet_sent()
315 dp->dccps_l_ack_ratio; in ccid2_hc_tx_packet_sent()
320 ccid2_change_l_ack_ratio(sk, dp->dccps_l_ack_ratio - 1); in ccid2_hc_tx_packet_sent()
430 struct dccp_sock *dp = dccp_sk(sk); in ccid2_new_ack() local
431 int r_seq_used = hc->tx_cwnd / dp->dccps_l_ack_ratio; in ccid2_new_ack()
433 if (hc->tx_cwnd < dp->dccps_l_seq_win && in ccid2_new_ack()
434 r_seq_used < dp->dccps_r_seq_win) { in ccid2_new_ack()
[all …]
Dccid3.c282 struct dccp_sock *dp = dccp_sk(sk); in ccid3_hc_tx_send_packet() local
311 if (dp->dccps_syn_rtt) { in ccid3_hc_tx_send_packet()
312 ccid3_pr_debug("SYN RTT = %uus\n", dp->dccps_syn_rtt); in ccid3_hc_tx_send_packet()
313 hc->tx_rtt = dp->dccps_syn_rtt; in ccid3_hc_tx_send_packet()
349 dp->dccps_hc_tx_insert_options = 1; in ccid3_hc_tx_send_packet()
601 struct dccp_sock *dp = dccp_sk(sk); in ccid3_hc_rx_send_feedback() local
642 dp->dccps_hc_rx_insert_options = 1; in ccid3_hc_rx_send_feedback()
/linux-4.1.27/lib/mpi/
Dmpih-div.c59 mpi_ptr_t np, mpi_size_t nsize, mpi_ptr_t dp, mpi_size_t dsize) in mpihelp_divrem() argument
79 d = dp[0]; in mpihelp_divrem()
106 d1 = dp[1]; in mpihelp_divrem()
107 d0 = dp[0]; in mpihelp_divrem()
170 dX = dp[dsize - 1]; in mpihelp_divrem()
171 d1 = dp[dsize - 2]; in mpihelp_divrem()
176 || mpihelp_cmp(np, dp, dsize - 1) >= 0) { in mpihelp_divrem()
177 mpihelp_sub_n(np, np, dp, dsize); in mpihelp_divrem()
222 cy_limb = mpihelp_submul_1(np, dp, dsize, q); in mpihelp_divrem()
225 mpihelp_add_n(np, np, dp, dsize); in mpihelp_divrem()
/linux-4.1.27/drivers/isdn/hardware/avm/
Davmcard.h282 unsigned char *dp) in b1_get_slice() argument
287 while (i-- > 0) *dp++ = b1_get_byte(base); in b1_get_slice()
292 unsigned char *dp, unsigned int len) in b1_put_slice() argument
297 b1_put_byte(base, *dp++); in b1_put_slice()
410 unsigned char *dp) in t1_get_slice() argument
426 insb(base + B1_READ, dp, FIFO_INPBSIZE); in t1_get_slice()
427 dp += FIFO_INPBSIZE; in t1_get_slice()
434 insb(base + B1_READ, dp, i); in t1_get_slice()
438 dp += i; in t1_get_slice()
442 *dp++ = b1_get_byte(base); in t1_get_slice()
[all …]
Db1.c155 unsigned char *dp; in b1_load_t4file() local
159 dp = t4file->data; in b1_load_t4file()
163 if (copy_from_user(buf, dp, FWBUF_SIZE)) in b1_load_t4file()
166 memcpy(buf, dp, FWBUF_SIZE); in b1_load_t4file()
175 dp += FWBUF_SIZE; in b1_load_t4file()
179 if (copy_from_user(buf, dp, left)) in b1_load_t4file()
182 memcpy(buf, dp, left); in b1_load_t4file()
197 unsigned char *dp; in b1_load_config() local
201 dp = config->data; in b1_load_config()
211 if (copy_from_user(buf, dp, FWBUF_SIZE)) in b1_load_config()
[all …]
Dc4.c198 unsigned char *dp; in c4_load_t4file() local
202 dp = t4file->data; in c4_load_t4file()
206 if (copy_from_user(&val, dp, sizeof(val))) in c4_load_t4file()
209 memcpy(&val, dp, sizeof(val)); in c4_load_t4file()
217 dp += sizeof(u32); in c4_load_t4file()
223 if (copy_from_user(&val, dp, left)) in c4_load_t4file()
226 memcpy(&val, dp, left); in c4_load_t4file()
256 static inline void _put_slice(void **pp, unsigned char *dp, unsigned int len) in _put_slice() argument
261 _put_byte(pp, *dp++); in _put_slice()
285 static inline u32 _get_slice(void **pp, unsigned char *dp) in _get_slice() argument
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Dfloppy_64.h529 static int __init ebus_fdthree_p(struct device_node *dp) in ebus_fdthree_p() argument
531 if (!strcmp(dp->name, "fdthree")) in ebus_fdthree_p()
533 if (!strcmp(dp->name, "floppy")) { in ebus_fdthree_p()
536 compat = of_get_property(dp, "compatible", NULL); in ebus_fdthree_p()
546 struct device_node *dp; in sun_floppy_init() local
557 for_each_node_by_name(dp, "SUNW,fdtwo") { in sun_floppy_init()
558 if (strcmp(dp->parent->name, "sbus")) in sun_floppy_init()
560 op = of_find_device_by_node(dp); in sun_floppy_init()
573 dp = NULL; in sun_floppy_init()
575 for (dp = ebus_dp->child; dp; dp = dp->sibling) { in sun_floppy_init()
[all …]
Dfloppy_32.h278 struct device_node *dp; in sun_floppy_init() local
325 for_each_node_by_name(dp, "SUNW,fdtwo") { in sun_floppy_init()
326 op = of_find_device_by_node(dp); in sun_floppy_init()
331 for_each_node_by_name(dp, "fd") { in sun_floppy_init()
332 op = of_find_device_by_node(dp); in sun_floppy_init()
Dprom.h59 void irq_trans_init(struct device_node *dp);
60 char *build_path_component(struct device_node *dp);
/linux-4.1.27/drivers/mtd/maps/
Dphysmap_of.c80 struct device_node *dp = dev->dev.of_node; in obsolete_probe() local
88 of_probe = of_get_property(dp, "probe-type", NULL); in obsolete_probe()
115 static const char * const *of_get_probes(struct device_node *dp) in of_get_probes() argument
123 cp = of_get_property(dp, "linux,part-probe", &cplen); in of_get_probes()
155 struct device_node *dp = dev->dev.of_node; in of_flash_probe() local
176 reg_tuple_size = (of_n_addr_cells(dp) + of_n_size_cells(dp)) * sizeof(u32); in of_flash_probe()
178 of_property_read_string(dp, "linux,mtd-name", &mtd_name); in of_flash_probe()
186 p = of_get_property(dp, "reg", &count); in of_flash_probe()
195 map_indirect = of_property_read_bool(dp, "no-unaligned-direct-access"); in of_flash_probe()
212 if (of_address_to_resource(dp, i, &res)) { in of_flash_probe()
[all …]
Dsun_uflash.c50 int uflash_devinit(struct platform_device *op, struct device_node *dp) in uflash_devinit() argument
59 dp->full_name, (unsigned long long)op->resource[0].start); in uflash_devinit()
75 up->name = of_get_property(dp, "model", NULL); in uflash_devinit()
112 struct device_node *dp = op->dev.of_node; in uflash_probe() local
117 if (!of_find_property(dp, "user", NULL)) in uflash_probe()
120 return uflash_devinit(op, dp); in uflash_probe()
/linux-4.1.27/arch/mips/math-emu/
Dieee754dp.h39 #define DPSIGN(dp) (dp.sign) argument
40 #define DPBEXP(dp) (dp.bexp) argument
41 #define DPMANT(dp) (dp.mant) argument
/linux-4.1.27/drivers/net/ieee802154/
Dfakelb.c88 struct fakelb_dev_priv *dp; in fakelb_hw_xmit() local
89 list_for_each_entry(dp, &priv->fake->list, list) { in fakelb_hw_xmit()
90 if (dp != priv && in fakelb_hw_xmit()
91 (dp->hw->phy->current_channel == in fakelb_hw_xmit()
93 fakelb_hw_deliver(dp, skb); in fakelb_hw_xmit()
217 struct fakelb_dev_priv *dp; in fakelb_probe() local
240 list_for_each_entry(dp, &priv->list, list) in fakelb_probe()
241 fakelb_del(dp); in fakelb_probe()
249 struct fakelb_dev_priv *dp, *temp; in fakelb_remove() local
251 list_for_each_entry_safe(dp, temp, &priv->list, list) in fakelb_remove()
[all …]
/linux-4.1.27/drivers/scsi/
Dsun_esp.c125 struct device_node *dp; in esp_get_scsi_id() local
127 dp = op->dev.of_node; in esp_get_scsi_id()
128 esp->scsi_id = of_getintprop_default(dp, "initiator-id", 0xff); in esp_get_scsi_id()
132 esp->scsi_id = of_getintprop_default(dp, "scsi-initiator-id", 0xff); in esp_get_scsi_id()
147 struct device_node *dp; in esp_get_differential() local
149 dp = op->dev.of_node; in esp_get_differential()
150 if (of_find_property(dp, "differential", NULL)) in esp_get_differential()
159 struct device_node *bus_dp, *dp; in esp_get_clock_params() local
162 dp = op->dev.of_node; in esp_get_clock_params()
163 bus_dp = dp->parent; in esp_get_clock_params()
[all …]
/linux-4.1.27/drivers/misc/mic/card/
Dmic_device.c43 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_notify_host()
55 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_panic_event()
70 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_shutdown_isr()
82 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_shutdown_init()
98 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_shutdown_uninit()
116 mdrv->dp = mic_card_map(mdev, dp_dma_addr, MIC_DP_SIZE); in mic_dp_init()
117 if (!mdrv->dp) { in mic_dp_init()
121 bootparam = mdrv->dp; in mic_dp_init()
133 mic_card_unmap(&g_drv->mdev, g_drv->dp); in mic_dp_uninit()
/linux-4.1.27/fs/
Dbinfmt_misc.c525 char *dp = page; in entry_status() local
536 dp += sprintf(dp, "%s\ninterpreter %s\n", status, e->interpreter); in entry_status()
539 dp += sprintf(dp, "flags: "); in entry_status()
541 *dp++ = 'P'; in entry_status()
543 *dp++ = 'O'; in entry_status()
545 *dp++ = 'C'; in entry_status()
546 *dp++ = '\n'; in entry_status()
549 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
551 dp += sprintf(dp, "offset %i\nmagic ", e->offset); in entry_status()
552 dp = bin2hex(dp, e->magic, e->size); in entry_status()
[all …]
/linux-4.1.27/arch/c6x/kernel/
Dprocess.c142 unsigned long dp; in copy_thread() local
144 asm volatile ("mv .S2 b14,%0\n" : "=b"(dp)); in copy_thread()
146 thread_saved_dp(p) = dp; in copy_thread()
148 childregs->dp = dp; in copy_thread()
/linux-4.1.27/fs/freevxfs/
Dvxfs_lookup.c114 vxfs_find_entry(struct inode *ip, struct dentry *dp, struct page **ppp) in vxfs_find_entry() argument
118 const char *name = dp->d_name.name; in vxfs_find_entry()
119 int namelen = dp->d_name.len; in vxfs_find_entry()
175 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument
181 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
206 vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags) in vxfs_lookup() argument
211 if (dp->d_name.len > VXFS_NAMELEN) in vxfs_lookup()
214 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup()
220 d_add(dp, ip); in vxfs_lookup()
Dvxfs_immed.c77 vxfs_immed_follow_link(struct dentry *dp, struct nameidata *np) in vxfs_immed_follow_link() argument
79 struct vxfs_inode_info *vip = VXFS_INO(d_inode(dp)); in vxfs_immed_follow_link()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_diag.c553 struct qib_diag_xpkt dp; in qib_diagpkt_write() local
559 if (count != sizeof(dp)) { in qib_diagpkt_write()
563 if (copy_from_user(&dp, data, sizeof(dp))) { in qib_diagpkt_write()
568 dd = qib_lookup(dp.unit); in qib_diagpkt_write()
579 if (dp.version != _DIAG_XPKT_VERS) { in qib_diagpkt_write()
581 dp.version); in qib_diagpkt_write()
586 if (dp.len & 3) { in qib_diagpkt_write()
590 if (!dp.port || dp.port > dd->num_pports) { in qib_diagpkt_write()
594 ppd = &dd->pport[dp.port - 1]; in qib_diagpkt_write()
603 if (dp.len > ppd->ibmaxlen - maxlen_reserve) { in qib_diagpkt_write()
[all …]
/linux-4.1.27/crypto/async_tx/
Dasync_raid6_recov.c203 struct page *p, *q, *g, *dp, *dq; in __2data_recov_5() local
232 dp = blocks[faila]; in __2data_recov_5()
236 tx = async_memcpy(dp, g, 0, 0, bytes, submit); in __2data_recov_5()
241 srcs[0] = dp; in __2data_recov_5()
245 tx = async_xor(dp, srcs, 0, 2, bytes, submit); in __2data_recov_5()
255 srcs[0] = dp; in __2data_recov_5()
263 srcs[0] = dp; in __2data_recov_5()
267 tx = async_xor(dp, srcs, 0, 2, bytes, submit); in __2data_recov_5()
277 struct page *p, *q, *dp, *dq; in __2data_recov_n() local
292 dp = blocks[faila]; in __2data_recov_n()
[all …]
/linux-4.1.27/drivers/s390/crypto/
Dzcrypt_msgtype50.c124 unsigned char dp[64]; member
137 unsigned char dp[128]; member
150 unsigned char dp[256]; member
248 unsigned char *p, *q, *dp, *dq, *u, *inp; in ICACRT_msg_to_type50CRT_msg() local
268 dp = crb1->dp + sizeof(crb1->dp) - short_len; in ICACRT_msg_to_type50CRT_msg()
281 dp = crb2->dp + sizeof(crb2->dp) - short_len; in ICACRT_msg_to_type50CRT_msg()
295 dp = crb3->dp + sizeof(crb3->dp) - short_len; in ICACRT_msg_to_type50CRT_msg()
308 copy_from_user(dp, crt->bp_key + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
Dzcrypt_cex2a.h94 unsigned char dp[64]; member
107 unsigned char dp[128]; member
120 unsigned char dp[256]; member
Dzcrypt_pcica.c137 unsigned char *p, *q, *dp, *dq, *u, *inp; in ICACRT_msg_to_type4CRT_msg() local
154 dp = scr->dp + sizeof(scr->dp) - long_len; in ICACRT_msg_to_type4CRT_msg()
168 dp = lcr->dp + sizeof(lcr->dp) - long_len; in ICACRT_msg_to_type4CRT_msg()
176 copy_from_user(dp, crt->bp_key, long_len) || in ICACRT_msg_to_type4CRT_msg()
Dzcrypt_pcica.h76 unsigned char dp[72]; member
87 unsigned char dp[136]; member
/linux-4.1.27/drivers/mtd/
Dofpart.c116 struct device_node *dp; in parse_ofoldpart_partitions() local
126 dp = data->of_node; in parse_ofoldpart_partitions()
127 if (!dp) in parse_ofoldpart_partitions()
130 part = of_get_property(dp, "partitions", &plen); in parse_ofoldpart_partitions()
135 dp->full_name); in parse_ofoldpart_partitions()
143 names = of_get_property(dp, "partition-names", &plen); in parse_ofoldpart_partitions()
/linux-4.1.27/drivers/isdn/mISDN/
Dtei.c490 u_char *dp = arg; in tei_id_assign() local
493 ri = ((unsigned int) *dp++ << 8); in tei_id_assign()
494 ri += *dp++; in tei_id_assign()
495 dp++; in tei_id_assign()
496 tei = *dp >> 1; in tei_id_assign()
519 u_char *dp = arg; in tei_id_test_dup() local
522 ri = ((unsigned int) *dp++ << 8); in tei_id_test_dup()
523 ri += *dp++; in tei_id_test_dup()
524 dp++; in tei_id_test_dup()
525 tei = *dp >> 1; in tei_id_test_dup()
[all …]
/linux-4.1.27/drivers/staging/fwserial/
Ddma_fifo.h74 static inline void dp_mark_completed(struct dma_pending *dp) in dp_mark_completed() argument
76 dp->data += 1; in dp_mark_completed()
79 static inline bool dp_is_completed(struct dma_pending *dp) in dp_is_completed() argument
81 return (unsigned long)dp->data & 1UL; in dp_is_completed()
/linux-4.1.27/drivers/usb/isp1760/
Disp1760-if.c206 struct device_node *dp = pdev->dev.of_node; in isp1760_plat_probe() local
209 if (of_device_is_compatible(dp, "nxp,usb-isp1761")) in isp1760_plat_probe()
213 of_property_read_u32(dp, "bus-width", &bus_width); in isp1760_plat_probe()
217 if (of_property_read_bool(dp, "port1-otg")) in isp1760_plat_probe()
220 if (of_property_read_bool(dp, "analog-oc")) in isp1760_plat_probe()
223 if (of_property_read_bool(dp, "dack-polarity")) in isp1760_plat_probe()
226 if (of_property_read_bool(dp, "dreq-polarity")) in isp1760_plat_probe()
/linux-4.1.27/net/sched/
Dsch_gred.c157 u16 dp = tc_index_to_dp(skb); in gred_enqueue() local
159 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_enqueue()
160 dp = t->def; in gred_enqueue()
162 q = t->tab[dp]; in gred_enqueue()
176 skb->tc_index = (skb->tc_index & ~GRED_VQ_MASK) | dp; in gred_enqueue()
255 u16 dp = tc_index_to_dp(skb); in gred_dequeue() local
257 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_dequeue()
287 u16 dp = tc_index_to_dp(skb); in gred_drop() local
289 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_drop()
383 static inline int gred_change_vq(struct Qdisc *sch, int dp, in gred_change_vq() argument
[all …]
/linux-4.1.27/fs/nfsd/
Dnfs4state.c694 struct nfs4_delegation *dp; in alloc_init_deleg() local
703 dp = delegstateid(nfs4_alloc_stid(clp, deleg_slab)); in alloc_init_deleg()
704 if (dp == NULL) in alloc_init_deleg()
707 dp->dl_stid.sc_free = nfs4_free_deleg; in alloc_init_deleg()
713 dp->dl_stid.sc_stateid.si_generation = 1; in alloc_init_deleg()
714 INIT_LIST_HEAD(&dp->dl_perfile); in alloc_init_deleg()
715 INIT_LIST_HEAD(&dp->dl_perclnt); in alloc_init_deleg()
716 INIT_LIST_HEAD(&dp->dl_recall_lru); in alloc_init_deleg()
717 dp->dl_clnt_odstate = odstate; in alloc_init_deleg()
719 dp->dl_type = NFS4_OPEN_DELEGATE_READ; in alloc_init_deleg()
[all …]
/linux-4.1.27/fs/openpromfs/
Dinode.c182 struct device_node *dp, *child; in openpromfs_lookup() local
193 dp = oi->u.node; in openpromfs_lookup()
200 child = dp->child; in openpromfs_lookup()
214 prop = dp->properties; in openpromfs_lookup()
248 if (!strcmp(dp->name, "options") && (len == 17) && in openpromfs_lookup()
267 struct device_node *dp = oi->u.node; in openpromfs_readdir() local
281 (dp->parent == NULL ? in openpromfs_readdir()
283 dp->parent->unique_id), DT_DIR)) in openpromfs_readdir()
290 child = dp->child; in openpromfs_readdir()
307 prop = dp->properties; in openpromfs_readdir()
/linux-4.1.27/drivers/scsi/libfc/
Dfc_disc.c96 struct fc_disc_port *dp, *next; in fc_disc_recv_rscn_req() local
135 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in fc_disc_recv_rscn_req()
136 if (!dp) { in fc_disc_recv_rscn_req()
140 dp->lp = lport; in fc_disc_recv_rscn_req()
141 dp->port_id = ntoh24(pp->rscn_fid); in fc_disc_recv_rscn_req()
142 list_add_tail(&dp->peers, &disc_ports); in fc_disc_recv_rscn_req()
161 list_for_each_entry_safe(dp, next, &disc_ports, peers) { in fc_disc_recv_rscn_req()
162 list_del(&dp->peers); in fc_disc_recv_rscn_req()
164 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req()
165 kfree(dp); in fc_disc_recv_rscn_req()
[all …]
/linux-4.1.27/arch/powerpc/math-emu/
Dmath_efp.c111 u64 dp[1]; member
292 FP_UNPACK_DP(DB, vb.dp); in do_spe_mathemu()
352 FP_UNPACK_DP(DA, va.dp); in do_spe_mathemu()
354 FP_UNPACK_DP(DB, vb.dp); in do_spe_mathemu()
357 FP_UNPACK_DP(DA, va.dp); in do_spe_mathemu()
368 vc.dp[0] = va.dp[0] & ~SIGN_BIT_D; in do_spe_mathemu()
372 vc.dp[0] = va.dp[0] | SIGN_BIT_D; in do_spe_mathemu()
376 vc.dp[0] = va.dp[0] ^ SIGN_BIT_D; in do_spe_mathemu()
434 vc.dp[0] = 0; in do_spe_mathemu()
437 FP_TO_INT_D(vc.dp[0], DB, 64, in do_spe_mathemu()
[all …]
/linux-4.1.27/drivers/usb/host/
Disp1362.h689 u8 *dp = buf; in isp1362_read_fifo() local
699 readsl(isp1362_hcd->data_reg, dp, len >> 2); in isp1362_read_fifo()
700 dp += len & ~3; in isp1362_read_fifo()
706 insw((unsigned long)isp1362_hcd->data_reg, dp, len >> 1); in isp1362_read_fifo()
707 dp += len & ~1; in isp1362_read_fifo()
715 (u8)data, (u32)dp); in isp1362_read_fifo()
716 *dp = (u8)data; in isp1362_read_fifo()
722 u8 *dp = buf; in isp1362_write_fifo() local
728 if ((unsigned long)dp & 0x1) { in isp1362_write_fifo()
731 data = *dp++; in isp1362_write_fifo()
[all …]
Dmax3421-hcd.c1188 char ubuf[512], *dp, *end; in dump_eps() local
1198 dp = ubuf; in dump_eps()
1199 end = dp + sizeof(ubuf); in dump_eps()
1200 *dp = '\0'; in dump_eps()
1203 ret = snprintf(dp, end - dp, " %p(%d.%s %d/%d)", urb, in dump_eps()
1208 if (ret < 0 || ret >= end - dp) in dump_eps()
1210 dp += ret; in dump_eps()
1292 char sbuf[16 * 16], *dp, *end; in max3421_handle_irqs() local
1296 dp = sbuf; in max3421_handle_irqs()
1298 *dp = '\0'; in max3421_handle_irqs()
[all …]
/linux-4.1.27/drivers/video/fbdev/aty/
Dradeon_monitor.c65 static int radeon_parse_montype_prop(struct device_node *dp, u8 **out_EDID, in radeon_parse_montype_prop() argument
76 pmt = of_get_property(dp, "display-type", NULL); in radeon_parse_montype_prop()
95 pedid = of_get_property(dp, propnames[i], NULL); in radeon_parse_montype_prop()
103 if (pedid == NULL && dp->parent && (hdno != -1)) in radeon_parse_montype_prop()
104 pedid = of_get_property(dp->parent, in radeon_parse_montype_prop()
106 if (pedid == NULL && dp->parent && (hdno == 0)) in radeon_parse_montype_prop()
107 pedid = of_get_property(dp->parent, "EDID", NULL); in radeon_parse_montype_prop()
121 struct device_node *dp; in radeon_probe_OF_head() local
125 dp = rinfo->of_node; in radeon_probe_OF_head()
126 while (dp == NULL) in radeon_probe_OF_head()
[all …]
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dnvram.c507 static int __init core99_nvram_setup(struct device_node *dp, unsigned long addr) in core99_nvram_setup() argument
546 if (of_device_is_compatible(dp, "amd-0137")) { in core99_nvram_setup()
558 struct device_node *dp; in pmac_nvram_init() local
565 dp = of_find_node_by_name(NULL, "nvram"); in pmac_nvram_init()
566 if (dp == NULL) { in pmac_nvram_init()
572 if (of_address_to_resource(dp, 0, &r1) == 0) { in pmac_nvram_init()
575 if (of_address_to_resource(dp, 1, &r2) == 0) { in pmac_nvram_init()
581 is_core_99 = of_device_is_compatible(dp, "nvram,flash"); in pmac_nvram_init()
583 err = core99_nvram_setup(dp, r1.start); in pmac_nvram_init()
615 of_node_put(dp); in pmac_nvram_init()
/linux-4.1.27/fs/ntfs/
Dcompress.c185 struct page *dp; /* Current destination page being worked on. */ in ntfs_decompress() local
230 dp = dest_pages[di]; in ntfs_decompress()
235 handle_bounds_compressed_page(dp, i_size, in ntfs_decompress()
237 flush_dcache_page(dp); in ntfs_decompress()
238 kunmap(dp); in ntfs_decompress()
239 SetPageUptodate(dp); in ntfs_decompress()
240 unlock_page(dp); in ntfs_decompress()
244 page_cache_release(dp); in ntfs_decompress()
271 dp = dest_pages[*dest_index]; in ntfs_decompress()
272 if (!dp) { in ntfs_decompress()
[all …]
/linux-4.1.27/arch/ia64/include/asm/
Dio.h233 unsigned char *dp = dst; in __insb() local
236 *dp++ = platform_inb(port); in __insb()
242 unsigned short *dp = dst; in __insw() local
245 put_unaligned(platform_inw(port), dp++); in __insw()
251 unsigned int *dp = dst; in __insl() local
254 put_unaligned(platform_inl(port), dp++); in __insl()
/linux-4.1.27/drivers/ide/
Dau1xxx-ide.c61 au1x_ddma_desc_t *dp; in auide_insw() local
69 dp = ctp->cur_ptr; in auide_insw()
70 while (dp->dscr_cmd0 & DSCR_CMD0_V) in auide_insw()
72 ctp->cur_ptr = au1xxx_ddma_get_nextptr_virt(dp); in auide_insw()
79 au1x_ddma_desc_t *dp; in auide_outsw() local
87 dp = ctp->cur_ptr; in auide_outsw()
88 while (dp->dscr_cmd0 & DSCR_CMD0_V) in auide_outsw()
90 ctp->cur_ptr = au1xxx_ddma_get_nextptr_virt(dp); in auide_outsw()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Ddir.c154 struct lu_dirpage *dp; in ll_dir_filler() local
220 dp = kmap(page); in ll_dir_filler()
221 hash = le64_to_cpu(dp->ldp_hash_start); in ll_dir_filler()
285 struct lu_dirpage *dp; in ll_dir_page_locate() local
299 dp = kmap(page); in ll_dir_page_locate()
301 *start = le64_to_cpu(dp->ldp_hash_start) >> 32; in ll_dir_page_locate()
302 *end = le64_to_cpu(dp->ldp_hash_end) >> 32; in ll_dir_page_locate()
305 *start = le64_to_cpu(dp->ldp_hash_start); in ll_dir_page_locate()
306 *end = le64_to_cpu(dp->ldp_hash_end); in ll_dir_page_locate()
323 le32_to_cpu(dp->ldp_flags) & LDF_COLLIDE); in ll_dir_page_locate()
[all …]
/linux-4.1.27/drivers/tty/
Dn_gsm.c735 u8 *dp = msg->data; in __gsm_data_queue() local
736 u8 *fcs = dp + msg->len; in __gsm_data_queue()
741 *--dp = (msg->len << 1) | EA; in __gsm_data_queue()
743 *--dp = (msg->len >> 7); /* bits 7 - 15 */ in __gsm_data_queue()
744 *--dp = (msg->len & 127) << 1; /* bits 0 - 6 */ in __gsm_data_queue()
748 *--dp = msg->ctrl; in __gsm_data_queue()
750 *--dp = (msg->addr << 2) | 2 | EA; in __gsm_data_queue()
752 *--dp = (msg->addr << 2) | EA; in __gsm_data_queue()
753 *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); in __gsm_data_queue()
764 msg->len += (msg->data - dp) + 1; in __gsm_data_queue()
[all …]
/linux-4.1.27/drivers/usb/mon/
Dmon_text.c194 struct mon_iso_desc *dp; in mon_text_event() local
231 dp = ep->isodesc; in mon_text_event()
233 dp->status = fp->status; in mon_text_event()
234 dp->offset = fp->offset; in mon_text_event()
235 dp->length = (ev_type == 'S') ? in mon_text_event()
238 dp++; in mon_text_event()
558 const struct mon_iso_desc *dp; in mon_text_read_isodesc() local
567 dp = ep->isodesc; in mon_text_read_isodesc()
570 " %d:%u:%u", dp->status, dp->offset, dp->length); in mon_text_read_isodesc()
571 dp++; in mon_text_read_isodesc()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_dp_mst.c38 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_mst_compute_config()
107 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_disable_dp()
124 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_post_disable_dp()
147 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_pre_enable_dp()
209 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_mst_enable_dp()
535 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_create_fake_mst_encoders()
545 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_mst_encoder_init()
565 struct intel_dp *intel_dp = &intel_dig_port->dp; in intel_dp_mst_encoder_cleanup()
/linux-4.1.27/include/video/
Dimx-ipu-v3.h256 int ipu_dp_enable_channel(struct ipu_dp *dp);
257 void ipu_dp_disable_channel(struct ipu_dp *dp);
259 int ipu_dp_setup_channel(struct ipu_dp *dp,
262 int ipu_dp_set_global_alpha(struct ipu_dp *dp, bool enable, u8 alpha,
345 int dp; member
/linux-4.1.27/Documentation/devicetree/bindings/clock/
Dexynos5260-clock.txt33 - "phyclk_dptx_phy_ch3_txd_clk" - dp phy clock for channel 3
34 - "phyclk_dptx_phy_ch2_txd_clk" - dp phy clock for channel 2
35 - "phyclk_dptx_phy_ch1_txd_clk" - dp phy clock for channel 1
36 - "phyclk_dptx_phy_ch0_txd_clk" - dp phy clock for channel 0
40 - "phyclk_dptx_phy_o_ref_clk_24m" - dp phy reference clock
/linux-4.1.27/drivers/tty/hvc/
Dhvsi_lib.c232 struct hvsi_data dp; in hvsilib_put_chars() local
238 dp.hdr.type = VS_DATA_PACKET_HEADER; in hvsilib_put_chars()
239 dp.hdr.len = adjcount + sizeof(struct hvsi_header); in hvsilib_put_chars()
240 memcpy(dp.data, buf, adjcount); in hvsilib_put_chars()
241 rc = hvsi_send_packet(pv, &dp.hdr); in hvsilib_put_chars()
/linux-4.1.27/drivers/misc/mic/host/
Dmic_main.c83 mdev->dp = kzalloc(MIC_DP_SIZE, GFP_KERNEL); in mic_dp_init()
84 if (!mdev->dp) { in mic_dp_init()
91 mdev->dp, MIC_DP_SIZE); in mic_dp_init()
93 kfree(mdev->dp); in mic_dp_init()
107 kfree(mdev->dp); in mic_dp_uninit()
116 struct mic_bootparam *bootparam = mdev->dp; in mic_shutdown_db()
Dmic_boot.c122 struct mic_bootparam *bootparam = mdev->dp; in mic_bootparam_init()
226 struct mic_bootparam *bootparam = mdev->dp; in mic_shutdown()
249 struct mic_bootparam *bootparam = mdev->dp; in mic_shutdown_work()
371 struct mic_bootparam *bootparam = mdev->dp; in mic_suspend()
/linux-4.1.27/sound/core/seq/
Dseq_ports.h124 struct snd_seq_client *d, struct snd_seq_client_port *dp,
130 struct snd_seq_client *d, struct snd_seq_client_port *dp,
/linux-4.1.27/drivers/input/misc/
Dsparcspkr.c189 struct device_node *dp; in bbc_beep_probe() local
200 dp = of_find_node_by_path("/"); in bbc_beep_probe()
202 if (!dp) in bbc_beep_probe()
206 info->clock_freq = of_getintprop_default(dp, "clock-frequency", 0); in bbc_beep_probe()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dconn.c83 info->dp = (nv_ro08(bios, data + 0x01) & 0xc0) >> 6; in nvbios_connEp()
87 info->dp |= nv_ro08(bios, data + 0x02) & 0x0c; in nvbios_connEp()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrukdump.c37 static int gru_user_copy_handle(void __user **dp, void *s) in gru_user_copy_handle() argument
39 if (copy_to_user(*dp, s, GRU_HANDLE_BYTES)) in gru_user_copy_handle()
41 *dp += GRU_HANDLE_BYTES; in gru_user_copy_handle()
/linux-4.1.27/drivers/gpu/drm/msm/edp/
Dedp_aux.c91 u8 *dp; in edp_msg_fifo_rx() local
98 dp = msg->buffer; in edp_msg_fifo_rx()
104 dp[i] = (u8)((data >> 8) & 0xff); in edp_msg_fifo_rx()
/linux-4.1.27/drivers/nubus/
Dnubus.c916 unsigned char dp; in nubus_probe_slot() local
931 dp = *rp; in nubus_probe_slot()
932 if(dp == 0) in nubus_probe_slot()
938 if ((((dp>>4) ^ dp) & 0x0F) != 0x0F) in nubus_probe_slot()
942 if ((dp & 0x0F) >= (1<<i)) in nubus_probe_slot()
946 nubus_add_board(slot, dp); in nubus_probe_slot()
/linux-4.1.27/fs/proc/
Dgeneric.c333 static int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp) in proc_register() argument
337 ret = proc_alloc_inum(&dp->low_ino); in proc_register()
342 dp->parent = dir; in proc_register()
343 if (pde_subdir_insert(dir, dp) == false) { in proc_register()
345 dir->name, dp->name); in proc_register()
347 proc_free_inum(dp->low_ino); in proc_register()
/linux-4.1.27/include/linux/
DmISDNif.h549 _alloc_mISDN_skb(u_int prim, u_int id, u_int len, void *dp, gfp_t gfp_mask) in _alloc_mISDN_skb() argument
557 memcpy(skb_put(skb, len), dp, len); in _alloc_mISDN_skb()
566 u_int id, u_int len, void *dp, gfp_t gfp_mask) in _queue_data() argument
572 skb = _alloc_mISDN_skb(prim, id, len, dp, gfp_mask); in _queue_data()
/linux-4.1.27/arch/arm/boot/dts/
Dexynos5.dtsi101 dp-controller@145B0000 {
102 compatible = "samsung,exynos5-dp";
/linux-4.1.27/arch/um/drivers/
DMakefile27 $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o)
30 $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_vde.o)

12