Home
last modified time | relevance | path

Searched refs:nd (Results 1 – 25 of 167) sorted by relevance

1234567

/linux/drivers/hid/
H A Dhid-ntrig.c173 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_phys_width() local
175 return sprintf(buf, "%d\n", nd->sensor_physical_width); in show_phys_width()
185 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_phys_height() local
187 return sprintf(buf, "%d\n", nd->sensor_physical_height); in show_phys_height()
197 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_log_width() local
199 return sprintf(buf, "%d\n", nd->sensor_logical_width); in show_log_width()
209 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_log_height() local
211 return sprintf(buf, "%d\n", nd->sensor_logical_height); in show_log_height()
221 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_min_width() local
223 return sprintf(buf, "%d\n", nd->min_width * in show_min_width()
[all …]
/linux/fs/
H A Dnamei.c794 static bool nd_alloc_stack(struct nameidata *nd) in nd_alloc_stack() argument
799 nd->flags & LOOKUP_RCU ? GFP_ATOMIC : GFP_KERNEL); in nd_alloc_stack()
802 memcpy(p, nd->internal, sizeof(nd->internal)); in nd_alloc_stack()
803 nd->stack = p; in nd_alloc_stack()
826 static void drop_links(struct nameidata *nd) in drop_links() argument
828 int i = nd->depth; in drop_links()
830 struct saved *last = nd->stack + i; in drop_links()
836 static void leave_rcu(struct nameidata *nd) in leave_rcu() argument
838 nd->flags &= ~LOOKUP_RCU; in leave_rcu()
839 nd->seq = nd->next_seq = 0; in leave_rcu()
[all …]
/linux/net/ncsi/
H A Dncsi-manage.c53 struct ncsi_dev *nd = &ndp->ndev; in ncsi_report_link() local
58 nd->state = ncsi_dev_state_functional; in ncsi_report_link()
60 nd->link_up = 0; in ncsi_report_link()
64 nd->link_up = 0; in ncsi_report_link()
77 nd->link_up = 1; in ncsi_report_link()
86 nd->handler(nd); in ncsi_report_link()
469 struct ncsi_dev *nd = &ndp->ndev; in ncsi_suspend_channel() local
480 switch (nd->state) { in ncsi_suspend_channel()
482 nd->state = ncsi_dev_state_suspend_select; in ncsi_suspend_channel()
504 nd->state = ncsi_dev_state_suspend_gls; in ncsi_suspend_channel()
[all …]
/linux/tools/perf/util/
H A Drb_resort.h
H A Dprint-events.c186 /** nd - RB-tree element. */
187 struct rb_node nd; member
201 struct mep *a = container_of(rb_node, struct mep, nd); in mep_cmp()
220 return &me->nd; in mep_new()
224 struct rb_node *nd) in mep_delete() argument
226 struct mep *me = container_of(nd, struct mep, nd); in mep_delete()
235 struct rb_node *nd; in mep_lookup() local
240 nd = rblist__find(groups, &me); in mep_lookup()
241 if (nd) { in mep_lookup()
[all...]
H A Dbuild-id.c371 struct rb_node *nd; in perf_session__write_buildid_table()
377 for (nd = rb_first_cached(&session->machines.guests); nd; in perf_session__write_buildid_table()
378 nd = rb_next(nd)) { in perf_session__write_buildid_table()
379 struct machine *pos = rb_entry(nd, struct machine, rb_node); in perf_session__write_buildid_table()
412 struct str_node *nd, *nd2; in build_id_cache__list_all()
437 strlist__for_each_entry(nd, toplist) { in build_id_cache__list_all()
438 if (asprintf(&linkdir, "%s/%s", topdir, nd->s) < 0) in build_id_cache__list_all()
448 nd in build_id_cache__list_all()
368 struct rb_node *nd; perf_session__write_buildid_table() local
409 struct str_node *nd, *nd2; build_id_cache__list_all() local
486 struct str_node *nd, *cand = NULL; build_id_cache__complement() local
920 struct rb_node *nd; machines__for_each_dso() local
955 struct rb_node *nd; perf_session__read_build_ids() local
[all...]
H A Dmetricgroup.c40 struct rb_node *nd; in metricgroup__lookup() local
50 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
51 if (nd) in metricgroup__lookup()
52 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
55 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
56 if (nd) in metricgroup__lookup()
57 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
66 nd); in metric_event_cmp()
124 struct list_head nd; global() member
1661 struct rb_node *nd; metricgroup__copy_metric_events() local
[all...]
H A Dhist.c2336 struct rb_node *nd; in hists__filter_by_type()
2343 for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) { in hists__filter_by_type()
2344 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_type()
2360 struct rb_node *nd; in resort_filtered_entry()
2381 nd = rb_first_cached(&he->hroot_out); in resort_filtered_entry()
2382 while (nd) { in resort_filtered_entry()
2383 struct hist_entry *h = rb_entry(nd, struc in resort_filtered_entry()
2333 struct rb_node *nd; hists__filter_by_type() local
2357 struct rb_node *nd; resort_filtered_entry() local
2393 struct rb_node *nd; hists__filter_hierarchy() local
2681 struct rb_node *nd; hists__match_hierarchy() local
2701 struct rb_node *nd; hists__match() local
2729 struct rb_node *nd; hists__link_hierarchy() local
2776 struct rb_node *nd; hists__link() local
2808 struct rb_node *nd; hists__unlink() local
[all...]
H A Dsrccode.c27 struct list_head nd; member
79 list_del_init(&sf->nd); in free_srcfile()
100 list_move(&h->nd, &srcfile_list); in find_srcfile()
109 h = list_entry(srcfile_list.prev, struct srcfile, nd); in find_srcfile()
140 list_add(&h->nd, &srcfile_list); in find_srcfile()
H A Dintel-tpebs.c43 struct list_head nd; member
82 list_for_each_entry(t, &tpebs_results, nd) in evsel__tpebs_start_perf_record()
109 list_for_each_entry(t, &tpebs_results, nd) { in evsel__tpebs_start_perf_record()
123 list_for_each_entry(t, &tpebs_results, nd) in evsel__tpebs_start_perf_record()
443 list_for_each_entry(t, &tpebs_results, nd) { in tpebs_retire_lat__find()
460 list_for_each_entry(t, &tpebs_results, nd) { in evsel__tpebs_prepare()
488 list_add_tail(&tpebs_event->nd, &tpebs_results); in evsel__tpebs_prepare()
583 list_del_init(&t->nd); in evsel__tpebs_read()
642 if (t && &t->nd == tpebs_results.next) {
714 list_del_init(&t->nd);
[all...]
H A Dsymbol.h159 * @nd: the 'struct rb_node *' to use as a temporary storage
161 #define symbols__for_each_entry(symbols, pos, nd) \
162 for (nd = rb_first_cached(symbols); \
163 nd && (pos = rb_entry(nd, struct symbol, rb_node)); \
164 nd = rb_next(nd))
84 symbols__for_each_entry(symbols,pos,nd) global() argument
/linux/tools/perf/ui/browsers/
H A Dhists.c55 static struct rb_node *hists__filter_entries(struct rb_node *nd,
65 struct rb_node *nd; in hist_browser__get_folding()
69 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding()
70 (nd = hists__filter_entries(nd, browser->min_pcnt)) != NULL; in hist_browser__get_folding()
71 nd = rb_hierarchy_next(nd)) { in hist_browser__get_folding()
73 rb_entry(nd, struct hist_entry, rb_node); in hist_browser__get_folding()
181 struct rb_node *nd; in callchain_node__count_rows_rb_tree()
183 for (nd in callchain_node__count_rows_rb_tree()
64 struct rb_node *nd; hist_browser__get_folding() local
180 struct rb_node *nd; callchain_node__count_rows_rb_tree() local
262 struct rb_node *nd; callchain__count_rows() local
331 struct rb_node *nd = rb_first(&node->rb_root); callchain_node__init_have_children_rb_tree() local
370 struct rb_node *nd = rb_first(root); callchain__init_have_children() local
514 struct rb_node *nd; callchain_node__set_folding_rb_tree() local
554 struct rb_node *nd; callchain__set_folding() local
569 struct rb_node *nd; hierarchy_set_folding() local
605 struct rb_node *nd; __hist_browser__set_folding() local
1859 struct rb_node *nd; hist_browser__refresh() local
1908 hists__filter_entries(struct rb_node * nd,float min_pcnt) hists__filter_entries() argument
1931 hists__filter_prev_entries(struct rb_node * nd,float min_pcnt) hists__filter_prev_entries() argument
1951 struct rb_node *nd; ui_browser__hists_seek() local
2194 struct rb_node *nd = hists__filter_entries(rb_first(browser->b.entries), hist_browser__fprintf() local
2941 struct rb_node *nd = rb_first_cached(&hb->hists->entries); hist_browser__update_nr_entries() local
2961 struct rb_node *nd = rb_first_cached(&hb->hists->entries); hist_browser__update_percent_limit() local
[all...]
H A Dmap.c25 static void map_browser__write(struct ui_browser *browser, void *nd, int row) in map_browser__write() argument
27 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in map_browser__write()
118 struct rb_node *nd; in map__browse() local
122 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse()
123 struct symbol *pos = rb_entry(nd, struct symbol, rb_node); in map__browse()
H A Dannotate.c327 struct rb_node *nd) in annotate_browser__set_rb_top() argument
329 struct annotation_line * pos = rb_entry(nd, struct annotation_line, rb_node); in annotate_browser__set_rb_top()
335 browser->curr_hot = nd; in annotate_browser__set_rb_top()
884 struct rb_node *nd = NULL; in annotate_browser__run()
911 nd = browser->curr_hot; in annotate_browser__run()
927 if (nd != NULL && RB_EMPTY_NODE(nd)) in annotate_browser__run()
928 nd = NULL; in annotate_browser__run()
943 if (nd != NULL) { in annotate_browser__run()
944 nd in annotate_browser__run()
881 struct rb_node *nd = NULL; annotate_browser__run() local
[all...]
/linux/arch/sparc/kernel/
H A Ddevices.c34 static int check_cpu_node(phandle nd, int *cur_inst, in check_cpu_node() argument
38 if (!compare(nd, *cur_inst, compare_arg)) { in check_cpu_node()
40 *prom_node = nd; in check_cpu_node()
42 *mid = prom_getintdefault(nd, cpu_mid_prop(), 0); in check_cpu_node()
74 static int cpu_instance_compare(phandle nd, int instance, void *_arg) in cpu_instance_compare() argument
89 static int cpu_mid_compare(phandle nd, int instance, void *_arg) in cpu_mid_compare() argument
94 this_mid = prom_getintdefault(nd, cpu_mid_prop(), 0); in cpu_mid_compare()
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-nfit5 What: /sys/bus/nd/devices/nmemX/nfit/serial
14 What: /sys/bus/nd/devices/nmemX/nfit/handle
23 What: /sys/bus/nd/devices/nmemX/nfit/device
31 What: /sys/bus/nd/devices/nmemX/nfit/rev_id
39 What: /sys/bus/nd/devices/nmemX/nfit/phys_id
49 What: /sys/bus/nd/devices/nmemX/nfit/flags
66 What: /sys/bus/nd/devices/nmemX/nfit/format
67 What: /sys/bus/nd/devices/nmemX/nfit/format1
68 What: /sys/bus/nd/devices/nmemX/nfit/formats
84 What: /sys/bus/nd/devices/nmemX/nfit/vendor
[all …]
/linux/tools/perf/ui/gtk/
H A Dhists.c100 struct rb_node *nd; in perf_gtk__add_callchain_flat() local
103 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_flat()
109 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_flat()
163 struct rb_node *nd; in perf_gtk__add_callchain_folded() local
165 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_folded()
173 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_folded()
223 struct rb_node *nd; in perf_gtk__add_callchain_graph() local
226 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_graph()
233 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_graph()
300 struct rb_node *nd; in perf_gtk__show_hists() local
[all …]
/linux/drivers/clk/at91/
H A Dclk-audio-pll.c62 u8 nd; member
102 AT91_PMC_AUDIO_PLL_ND(frac->nd)); in clk_audio_pll_frac_enable()
160 unsigned long nd, unsigned long fracr) in clk_audio_pll_fout() argument
170 return parent_rate * (nd + 1) + fr; in clk_audio_pll_fout()
179 fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); in clk_audio_pll_frac_recalc_rate()
182 fout, frac->nd, (unsigned long)frac->fracr); in clk_audio_pll_frac_recalc_rate()
218 unsigned long *nd, in clk_audio_pll_frac_compute_frac() argument
231 *nd = tmp - 1; in clk_audio_pll_frac_compute_frac()
247 unsigned long fracr, nd; in clk_audio_pll_frac_determine_rate() local
259 &nd, &fracr); in clk_audio_pll_frac_determine_rate()
[all …]
/linux/fs/dlm/
H A Dconfig.c572 struct dlm_node *nd; in make_node() local
580 nd = kzalloc_obj(struct dlm_node, GFP_NOFS); in make_node()
581 if (!nd) in make_node()
584 config_item_init_type_name(&nd->item, name, &node_type); in make_node()
585 nd->nodeid = nodeid; in make_node()
586 nd->weight = 1; /* default weight of 1 if none is set */ in make_node()
587 nd->new = 1; /* set to 0 once it's been read by dlm_nodeid_list() */ in make_node()
589 nd->comm_seq = seq; in make_node()
592 list_add(&nd->list, &sp->members); in make_node()
596 return &nd->item; in make_node()
[all …]
/linux/io_uring/
H A Dnotif.h38 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_flush() local
40 io_tx_ubuf_complete(NULL, &nd->uarg, true); in io_notif_flush()
46 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_account_mem() local
54 nd->account_pages += nr_pages; in io_notif_account_mem()
/linux/tools/perf/tests/
H A Dsymbols.c118 struct rb_node *nd; in test_dso() local
125 for (nd = rb_first_cached(dso__symbols(dso)); nd; nd = rb_next(nd)) { in test_dso()
126 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in test_dso()
/linux/tools/perf/
H A Dbuiltin-annotate.c401 struct rb_node *nd = rb_first_cached(&hists->entries), *next; in print_annotate_item_stat()
409 while (nd) { in hists__find_annotations()
410 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations()
435 nd = rb_prev(nd); in hists__find_annotations()
437 nd = rb_next(nd); in hists__find_annotations()
475 next = rb_next(nd); in hists__find_annotations()
479 next = rb_prev(nd); in hists__find_annotations()
486 nd in hists__find_annotations()
413 struct rb_node *nd = rb_first_cached(&hists->entries), *next; hists__find_annotations() local
[all...]
/linux/net/openvswitch/
H A Dflow.c565 struct nd_msg *nd; in parse_icmpv6() local
568 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6()
573 if (unlikely(icmp_len < sizeof(*nd))) in parse_icmpv6()
579 nd = (struct nd_msg *)skb_transport_header(skb); in parse_icmpv6()
580 key->ipv6.nd.target = nd->target; in parse_icmpv6()
582 icmp_len -= sizeof(*nd); in parse_icmpv6()
586 (struct nd_opt_hdr *)(nd->opt + offset); in parse_icmpv6()
598 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.sll))) in parse_icmpv6()
600 ether_addr_copy(key->ipv6.nd.sll, in parse_icmpv6()
601 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6()
[all …]
/linux/drivers/block/aoe/
H A Daoecmd.c132 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit()
162 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate()
164 if (ifp->nd == NULL) in ifrotate()
273 && t->ifp->nd) { in newframe()
364 dev_hold(t->ifp->nd); in ata_rw_frameinit()
365 skb->dev = t->ifp->nd; in ata_rw_frameinit()
406 dev_put(f->t->ifp->nd); in aoecmd_ata_rw()
487 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in resend()
489 dev_hold(t->ifp->nd); in resend()
490 skb->dev = t->ifp->nd; in resend()
[all …]
/linux/tools/perf/ui/
H A Dbrowser.c141 struct rb_node *nd; in ui_browser__rb_tree_seek() local
145 nd = rb_first(root); in ui_browser__rb_tree_seek()
148 nd = browser->top; in ui_browser__rb_tree_seek()
151 nd = rb_last(root); in ui_browser__rb_tree_seek()
159 nd = rb_next(nd); in ui_browser__rb_tree_seek()
162 nd = rb_prev(nd); in ui_browser__rb_tree_seek()
165 browser->top = nd; in ui_browser__rb_tree_seek()
170 struct rb_node *nd; in ui_browser__rb_tree_refresh() local
[all...]

1234567