Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 25 of 140) sorted by relevance

123456

/linux-2.6.39/arch/arm/plat-stmp3xxx/
Ddma.c234 void stmp3xxx_dma_free_chain(struct stmp37xx_circ_dma_chain *chain) in stmp3xxx_dma_free_chain() argument
238 for (i = 0; i < chain->total_count; i++) in stmp3xxx_dma_free_chain()
240 STMP3XXX_DMA(chain->channel, chain->bus), in stmp3xxx_dma_free_chain()
241 &chain->chain[i]); in stmp3xxx_dma_free_chain()
245 int stmp3xxx_dma_make_chain(int ch, struct stmp37xx_circ_dma_chain *chain, in stmp3xxx_dma_make_chain() argument
285 chain->total_count = items; in stmp3xxx_dma_make_chain()
286 chain->chain = descriptors; in stmp3xxx_dma_make_chain()
287 chain->free_index = 0; in stmp3xxx_dma_make_chain()
288 chain->active_index = 0; in stmp3xxx_dma_make_chain()
289 chain->cooked_index = 0; in stmp3xxx_dma_make_chain()
[all …]
/linux-2.6.39/drivers/s390/cio/
Dcrw.c64 unsigned int chain; in crw_collect_info() local
71 chain = 0; in crw_collect_info()
75 if (unlikely(chain > 1)) { in crw_collect_info()
88 "chain\n", __func__, chain); in crw_collect_info()
91 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info()
94 ccode = stcrw(&crw[chain]); in crw_collect_info()
99 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info()
100 crw[chain].rsc, crw[chain].anc, crw[chain].erc, in crw_collect_info()
101 crw[chain].rsid); in crw_collect_info()
103 if (crw[chain].oflw) { in crw_collect_info()
[all …]
/linux-2.6.39/arch/arm/plat-stmp3xxx/include/mach/
Ddma.h59 struct stmp3xxx_dma_descriptor *chain; member
73 *stmp3xxx_dma_circ_get_free_head(struct stmp37xx_circ_dma_chain *chain) in stmp3xxx_dma_circ_get_free_head() argument
75 return &(chain->chain[chain->free_index]); in stmp3xxx_dma_circ_get_free_head()
79 *stmp3xxx_dma_circ_get_cooked_head(struct stmp37xx_circ_dma_chain *chain) in stmp3xxx_dma_circ_get_cooked_head() argument
81 return &(chain->chain[chain->cooked_index]); in stmp3xxx_dma_circ_get_cooked_head()
94 int stmp3xxx_dma_make_chain(int ch, struct stmp37xx_circ_dma_chain *chain,
97 void stmp3xxx_dma_free_chain(struct stmp37xx_circ_dma_chain *chain);
98 void stmp37xx_circ_clear_chain(struct stmp37xx_circ_dma_chain *chain);
99 void stmp37xx_circ_advance_free(struct stmp37xx_circ_dma_chain *chain,
101 void stmp37xx_circ_advance_active(struct stmp37xx_circ_dma_chain *chain,
[all …]
/linux-2.6.39/fs/minix/
Ditree_common.c32 Indirect chain[DEPTH], in get_branch()
36 Indirect *p = chain; in get_branch()
41 add_chain (chain, NULL, i_data(inode) + *offsets); in get_branch()
49 if (!verify_chain(chain, p)) in get_branch()
109 Indirect chain[DEPTH], in splice_branch()
118 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
150 Indirect chain[DEPTH]; in get_block() local
159 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
164 map_bh(bh, inode->i_sb, block_to_cpu(chain[depth-1].key)); in get_block()
166 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/linux-2.6.39/drivers/net/
Dspider_net.c314 struct spider_net_descr_chain *chain) in spider_net_free_chain() argument
318 descr = chain->ring; in spider_net_free_chain()
323 } while (descr != chain->ring); in spider_net_free_chain()
325 dma_free_coherent(&card->pdev->dev, chain->num_desc, in spider_net_free_chain()
326 chain->hwring, chain->dma_addr); in spider_net_free_chain()
341 struct spider_net_descr_chain *chain) in spider_net_init_chain() argument
349 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain()
351 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, in spider_net_init_chain()
352 &chain->dma_addr, GFP_KERNEL); in spider_net_init_chain()
354 if (!chain->hwring) in spider_net_init_chain()
[all …]
/linux-2.6.39/fs/sysv/
Ditree.c90 Indirect chain[], in get_branch() argument
94 Indirect *p = chain; in get_branch()
98 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
106 if (!verify_chain(chain, p)) in get_branch()
168 Indirect chain[], in splice_branch() argument
176 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
206 Indirect chain[DEPTH]; in get_block() local
217 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
224 chain[depth-1].key)); in get_block()
226 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/linux-2.6.39/fs/lockd/
Dhost.c31 #define for_each_host(host, pos, chain, table) \ argument
32 for ((chain) = (table); \
33 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
34 hlist_for_each_entry((host), (pos), (chain), h_hash)
36 #define for_each_host_safe(host, pos, next, chain, table) \ argument
37 for ((chain) = (table); \
38 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
40 (chain), h_hash)
221 struct hlist_head *chain; in nlmclnt_lookup_host() local
232 chain = &nlm_client_hosts[nlm_hash_address(sap)]; in nlmclnt_lookup_host()
[all …]
/linux-2.6.39/drivers/media/video/uvc/
Duvc_v4l2.c34 static int uvc_ioctl_ctrl_map(struct uvc_video_chain *chain, in uvc_ioctl_ctrl_map() argument
90 ret = uvc_ctrl_add_mapping(chain, map); in uvc_ioctl_ctrl_map()
505 handle->chain = stream->chain; in uvc_v4l2_open()
545 struct uvc_video_chain *chain = handle->chain; in uvc_v4l2_do_ioctl() local
572 return uvc_query_v4l2_ctrl(chain, arg); in uvc_v4l2_do_ioctl()
582 ret = uvc_ctrl_begin(chain); in uvc_v4l2_do_ioctl()
586 ret = uvc_ctrl_get(chain, &xctrl); in uvc_v4l2_do_ioctl()
587 uvc_ctrl_rollback(chain); in uvc_v4l2_do_ioctl()
602 ret = uvc_ctrl_begin(chain); in uvc_v4l2_do_ioctl()
606 ret = uvc_ctrl_set(chain, &xctrl); in uvc_v4l2_do_ioctl()
[all …]
Duvc_ctrl.c788 static struct uvc_control *uvc_find_control(struct uvc_video_chain *chain, in uvc_find_control() argument
801 list_for_each_entry(entity, &chain->entities, chain) { in uvc_find_control()
814 static int uvc_ctrl_populate_cache(struct uvc_video_chain *chain, in uvc_ctrl_populate_cache() argument
820 ret = uvc_query_ctrl(chain->dev, UVC_GET_DEF, ctrl->entity->id, in uvc_ctrl_populate_cache()
821 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache()
829 ret = uvc_query_ctrl(chain->dev, UVC_GET_MIN, ctrl->entity->id, in uvc_ctrl_populate_cache()
830 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache()
837 ret = uvc_query_ctrl(chain->dev, UVC_GET_MAX, ctrl->entity->id, in uvc_ctrl_populate_cache()
838 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache()
845 ret = uvc_query_ctrl(chain->dev, UVC_GET_RES, ctrl->entity->id, in uvc_ctrl_populate_cache()
[all …]
Duvc_driver.c1213 static int uvc_scan_chain_entity(struct uvc_video_chain *chain, in uvc_scan_chain_entity() argument
1233 if (chain->processing != NULL) { in uvc_scan_chain_entity()
1239 chain->processing = entity; in uvc_scan_chain_entity()
1250 if (chain->selector != NULL) { in uvc_scan_chain_entity()
1256 chain->selector = entity; in uvc_scan_chain_entity()
1292 list_add_tail(&entity->chain, &chain->entities); in uvc_scan_chain_entity()
1296 static int uvc_scan_chain_forward(struct uvc_video_chain *chain, in uvc_scan_chain_forward() argument
1307 forward = uvc_entity_by_reference(chain->dev, entity->id, in uvc_scan_chain_forward()
1323 list_add_tail(&forward->chain, &chain->entities); in uvc_scan_chain_forward()
1343 list_add_tail(&forward->chain, &chain->entities); in uvc_scan_chain_forward()
[all …]
Duvcvideo.h275 struct list_head chain; /* Entity as part of a video device member
423 struct uvc_video_chain *chain; member
508 struct uvc_video_chain *chain; member
613 extern int uvc_query_v4l2_ctrl(struct uvc_video_chain *chain,
615 extern int uvc_query_v4l2_menu(struct uvc_video_chain *chain,
618 extern int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,
624 extern int uvc_ctrl_begin(struct uvc_video_chain *chain);
625 extern int __uvc_ctrl_commit(struct uvc_video_chain *chain, int rollback);
626 static inline int uvc_ctrl_commit(struct uvc_video_chain *chain) in uvc_ctrl_commit() argument
628 return __uvc_ctrl_commit(chain, 0); in uvc_ctrl_commit()
[all …]
/linux-2.6.39/sound/
Dsound_core.c363 const int chain = unit % SOUND_STEP; in register_sound_special_device() local
364 int max_unit = 128 + chain; in register_sound_special_device()
368 switch (chain) { in register_sound_special_device()
414 sprintf(_name, "unknown%d", chain); in register_sound_special_device()
421 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device()
561 static struct sound_unit *__look_for_unit(int chain, int unit) in __look_for_unit() argument
565 s=chains[chain]; in __look_for_unit()
577 int chain; in soundcore_open() local
582 chain=unit&0x0F; in soundcore_open()
583 if(chain==4 || chain==5) /* dsp/audio/dsp16 */ in soundcore_open()
[all …]
/linux-2.6.39/tools/perf/util/ui/browsers/
Dhists.c75 struct callchain_list *chain; in callchain_node__count_rows_rb_tree() local
78 list_for_each_entry(chain, &child->val, list) { in callchain_node__count_rows_rb_tree()
81 folded_sign = callchain_list__folded(chain); in callchain_node__count_rows_rb_tree()
95 struct callchain_list *chain; in callchain_node__count_rows() local
99 list_for_each_entry(chain, &node->val, list) { in callchain_node__count_rows()
101 unfolded = chain->ms.unfolded; in callchain_node__count_rows()
110 static int callchain__count_rows(struct rb_root *chain) in callchain__count_rows() argument
115 for (nd = rb_first(chain); nd; nd = rb_next(nd)) { in callchain__count_rows()
138 struct callchain_list *chain; in callchain_node__init_have_children_rb_tree() local
141 list_for_each_entry(chain, &child->val, list) { in callchain_node__init_have_children_rb_tree()
[all …]
/linux-2.6.39/fs/ext2/
Dinode.c233 Indirect chain[4], in ext2_get_branch()
237 Indirect *p = chain; in ext2_get_branch()
242 add_chain (chain, NULL, EXT2_I(inode)->i_data + *offsets); in ext2_get_branch()
250 if (!verify_chain(chain, p)) in ext2_get_branch()
612 Indirect chain[4]; in ext2_get_blocks() local
627 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
630 first_block = le32_to_cpu(chain[depth - 1].key); in ext2_get_blocks()
637 if (!verify_chain(chain, chain + depth - 1)) { in ext2_get_blocks()
648 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext2_get_blocks()
675 if (err == -EAGAIN || !verify_chain(chain, partial)) { in ext2_get_blocks()
[all …]
/linux-2.6.39/tools/perf/util/
Dhist.c372 static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain, in ipchain__fprintf_graph() argument
394 if (chain->ms.sym) in ipchain__fprintf_graph()
395 ret += fprintf(fp, "%s\n", chain->ms.sym->name); in ipchain__fprintf_graph()
397 ret += fprintf(fp, "%p\n", (void *)(long)chain->ip); in ipchain__fprintf_graph()
423 struct callchain_list *chain; in __callchain__fprintf_graph() local
464 list_for_each_entry(chain, &child->val, list) { in __callchain__fprintf_graph()
465 ret += ipchain__fprintf_graph(fp, chain, depth, in __callchain__fprintf_graph()
499 struct callchain_list *chain; in callchain__fprintf_graph() local
505 list_for_each_entry(chain, &self->val, list) { in callchain__fprintf_graph()
520 if (chain->ms.sym) in callchain__fprintf_graph()
[all …]
Dcallchain.c21 bool ip_callchain__valid(struct ip_callchain *chain, in ip_callchain__valid() argument
26 return chain->nr * sizeof(u64) <= chain_size; in ip_callchain__valid()
36 rb_insert_callchain(struct rb_root *root, struct callchain_node *chain, in rb_insert_callchain() argument
42 u64 chain_cumul = callchain_cumul_hits(chain); in rb_insert_callchain()
53 if (rnode->hit < chain->hit) in rb_insert_callchain()
71 rb_link_node(&chain->rb_node, parent, p); in rb_insert_callchain()
72 rb_insert_color(&chain->rb_node, root); in rb_insert_callchain()
/linux-2.6.39/drivers/net/wireless/ath/ath9k/
Dar9003_paprd.c240 static unsigned int ar9003_get_desired_gain(struct ath_hw *ah, int chain, in ar9003_get_desired_gain() argument
268 if (chain == 0) in ar9003_get_desired_gain()
270 else if (chain == 1) in ar9003_get_desired_gain()
671 int chain) in ar9003_paprd_populate_single_table() argument
673 u32 *paprd_table_val = caldata->pa_table[chain]; in ar9003_paprd_populate_single_table()
674 u32 small_signal_gain = caldata->small_signal_gain[chain]; in ar9003_paprd_populate_single_table()
679 if (chain == 0) in ar9003_paprd_populate_single_table()
681 else if (chain == 1) in ar9003_paprd_populate_single_table()
683 else if (chain == 2) in ar9003_paprd_populate_single_table()
691 if (chain == 0) in ar9003_paprd_populate_single_table()
[all …]
/linux-2.6.39/Documentation/RCU/
Drculist_nulls.txt75 from a chain, and inserted into another chain. If new chain was empty
77 not detect it missed following items in original chain.
118 to another chain) checking the final 'nulls' value if
119 the lookup met the end of chain. If final 'nulls' value
121 the beginning. If the object was moved to the same chain,
144 * We probably met an item that was moved to another chain.
169 * insert obj in RCU way (readers might be traversing chain)
/linux-2.6.39/Documentation/video4linux/
Dpxa_camera.txt20 capture. The new buffers are "appended" at the tail of the DMA chain, and
85 starts the DMA chain.
87 The DMA chain starts transferring data into videobuffer RAM pages.
111 A typical running chain is :
120 After the chaining is finished, the chain looks like :
136 - DMA chain is Videobuffer1 + Videobuffer2
151 - Videobuffer3 capture is not scheduled on DMA chain (as it stopped !!!)
165 and Videobuffer3 is scheduled on DMA chain.
/linux-2.6.39/fs/ocfs2/
Dresize.c101 u16 chain, num_bits, backups = 0; in ocfs2_update_last_group_and_inode() local
146 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode()
147 cr = (&cl->cl_recs[chain]); in ocfs2_update_last_group_and_inode()
397 if (le16_to_cpu(gd->bg_chain) != input->chain) in ocfs2_check_new_group()
401 le16_to_cpu(gd->bg_chain), input->chain); in ocfs2_check_new_group()
434 else if (input->chain >= cl_count) in ocfs2_verify_group_and_input()
436 else if (next_free != cl_count && next_free != input->chain) in ocfs2_verify_group_and_input()
520 input->chain, input->clusters, input->frees); in ocfs2_group_add()
531 cr = &cl->cl_recs[input->chain]; in ocfs2_group_add()
551 if (input->chain == le16_to_cpu(cl->cl_next_free_rec)) { in ocfs2_group_add()
/linux-2.6.39/scripts/
Dheaderdep.pl148 my $chain = [@$top, [$dep->[0], $dep->[1]]];
153 print_cycle($chain);
158 push @queue, $chain;
/linux-2.6.39/fs/ext3/
Dinode.c388 Indirect chain[4], int *err) in ext3_get_branch()
391 Indirect *p = chain; in ext3_get_branch()
396 add_chain (chain, NULL, EXT3_I(inode)->i_data + *offsets); in ext3_get_branch()
404 if (!verify_chain(chain, p)) in ext3_get_branch()
834 Indirect chain[4]; in ext3_get_blocks_handle() local
851 partial = ext3_get_branch(inode, depth, offsets, chain, &err); in ext3_get_blocks_handle()
855 first_block = le32_to_cpu(chain[depth - 1].key); in ext3_get_blocks_handle()
862 if (!verify_chain(chain, chain + depth - 1)) { in ext3_get_blocks_handle()
874 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext3_get_blocks_handle()
903 if (err == -EAGAIN || !verify_chain(chain, partial)) { in ext3_get_blocks_handle()
[all …]
/linux-2.6.39/net/sched/
Dcls_api.c133 struct tcf_proto **back, **chain; in tc_ctl_tfilter() local
195 chain = cops->tcf_chain(q, cl); in tc_ctl_tfilter()
197 if (chain == NULL) in tc_ctl_tfilter()
201 for (back = chain; (tp = *back) != NULL; back = &tp->next) { in tc_ctl_tfilter()
419 struct tcf_proto *tp, **chain; in tc_dump_tfilter() local
447 chain = cops->tcf_chain(q, cl); in tc_dump_tfilter()
448 if (chain == NULL) in tc_dump_tfilter()
453 for (tp = *chain, t = 0; tp; tp = tp->next, t++) { in tc_dump_tfilter()
/linux-2.6.39/net/ipv4/
Dinet_hashtables.c43 hlist_add_head(&tb->node, &head->chain); in inet_bind_bucket_create()
122 inet_bind_bucket_for_each(tb, node, &head->chain) { in __inet_inherit_port()
238 sk_nulls_for_each_rcu(sk, node, &head->chain) { in __inet_lookup_established()
329 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
342 __sk_nulls_add_node_rcu(sk, &head->chain); in __inet_check_established()
387 list = &head->chain; in __inet_hash_nolisten()
490 inet_bind_bucket_for_each(tb, node, &head->chain) { in __inet_hash_connect()
/linux-2.6.39/mm/
Ddmapool.c413 unsigned int chain = page->offset; in dma_pool_free() local
414 while (chain < pool->allocation) { in dma_pool_free()
415 if (chain != offset) { in dma_pool_free()
416 chain = *(int *)(page->vaddr + chain); in dma_pool_free()

123456