Home
last modified time | relevance | path

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

12345678

/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 in show_min_width()
233 struct ntrig_data *nd = hid_get_drvdata(hdev); set_min_width() local
256 struct ntrig_data *nd = hid_get_drvdata(hdev); show_min_height() local
268 struct ntrig_data *nd = hid_get_drvdata(hdev); set_min_height() local
292 struct ntrig_data *nd = hid_get_drvdata(hdev); show_activate_slack() local
302 struct ntrig_data *nd = hid_get_drvdata(hdev); set_activate_slack() local
325 struct ntrig_data *nd = hid_get_drvdata(hdev); show_activation_width() local
337 struct ntrig_data *nd = hid_get_drvdata(hdev); set_activation_width() local
361 struct ntrig_data *nd = hid_get_drvdata(hdev); show_activation_height() local
373 struct ntrig_data *nd = hid_get_drvdata(hdev); set_activation_height() local
397 struct ntrig_data *nd = hid_get_drvdata(hdev); show_deactivate_slack() local
407 struct ntrig_data *nd = hid_get_drvdata(hdev); set_deactivate_slack() local
458 struct ntrig_data *nd = hid_get_drvdata(hdev); ntrig_input_mapping() local
569 struct ntrig_data *nd = hid_get_drvdata(hid); ntrig_event() local
896 struct ntrig_data *nd; ntrig_probe() local
[all...]
/linux/drivers/staging/most/net/
H A Dnet.c164 struct net_dev_context *nd = netdev_priv(dev); in most_nd_set_mac_address() local
170 nd->is_mamac = in most_nd_set_mac_address()
178 dev->mtu = nd->is_mamac ? MAMAC_DATA_LEN : ETH_DATA_LEN; in most_nd_set_mac_address()
188 struct net_dev_context *nd = netdev_priv(dev); in most_nd_open() local
193 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open()
199 if (most_start_channel(nd->iface, nd->tx.ch_id, &comp)) { in most_nd_open()
201 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_open()
212 if (nd->iface->request_netinfo) in most_nd_open()
213 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, on_netinfo); in most_nd_open()
222 struct net_dev_context *nd = netdev_priv(dev); in most_nd_stop() local
[all …]
/linux/fs/
H A Dnamei.c789 static bool nd_alloc_stack(struct nameidata *nd) in nd_alloc_stack() argument
794 nd->flags & LOOKUP_RCU ? GFP_ATOMIC : GFP_KERNEL); in nd_alloc_stack()
797 memcpy(p, nd->internal, sizeof(nd->internal)); in nd_alloc_stack()
798 nd->stack = p; in nd_alloc_stack()
821 static void drop_links(struct nameidata *nd) in drop_links() argument
823 int i = nd->depth; in drop_links()
825 struct saved *last = nd->stack + i; in drop_links()
831 static void leave_rcu(struct nameidata *nd) in leave_rcu() argument
833 nd->flags &= ~LOOKUP_RCU; in leave_rcu()
834 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 in ncsi_suspend_channel()
991 struct ncsi_dev *nd = &ndp->ndev; ncsi_configure_channel() local
1360 struct ncsi_dev *nd = &ndp->ndev; ncsi_probe_channel() local
1538 struct ncsi_dev *nd = &ndp->ndev; ncsi_dev_work() local
1617 struct ncsi_dev *nd = &ndp->ndev; ncsi_kick_channels() local
1670 struct ncsi_dev *nd; ncsi_vlan_rx_add_vid() local
1720 struct ncsi_dev *nd; ncsi_vlan_rx_kill_vid() local
1758 struct ncsi_dev *nd; ncsi_register_dev() local
1817 ncsi_start_dev(struct ncsi_dev * nd) ncsi_start_dev() argument
1837 ncsi_stop_dev(struct ncsi_dev * nd) ncsi_stop_dev() argument
1869 ncsi_reset_dev(struct ncsi_dev * nd) ncsi_reset_dev() argument
1955 ncsi_unregister_dev(struct ncsi_dev * nd) ncsi_unregister_dev() argument
[all...]
/linux/tools/perf/util/
H A Drb_resort.h
H A Dprint-events.c187 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()
243 return container_of(nd, struct mep, nd); in mep_lookup()
246 nd = rblist__find(groups, &me); in mep_lookup()
[all …]
H A Dbuild-id.c368 struct rb_node *nd; in perf_session__write_buildid_table() local
374 for (nd = rb_first_cached(&session->machines.guests); nd; in perf_session__write_buildid_table()
375 nd = rb_next(nd)) { in perf_session__write_buildid_table()
376 struct machine *pos = rb_entry(nd, struct machine, rb_node); in perf_session__write_buildid_table()
409 struct str_node *nd, *nd2; in build_id_cache__list_all() local
434 strlist__for_each_entry(nd, toplist) { in build_id_cache__list_all()
435 if (asprintf(&linkdir, "%s/%s", topdir, nd->s) < 0) in build_id_cache__list_all()
445 nd->s, nd2->s) > SBUILD_ID_SIZE - 1) in build_id_cache__list_all()
486 struct str_node *nd, *cand = NULL; in build_id_cache__complement() local
498 strlist__for_each_entry(nd, bidlist) { in build_id_cache__complement()
[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()
87 return &me->nd; in metric_event_new()
93 struct metric_event *me = container_of(rb_node, struct metric_event, nd); in metric_event_delete()
[all …]
H A Dhist.c2333 struct rb_node *nd; in hists__filter_by_type() local
2340 for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) { in hists__filter_by_type()
2341 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_type()
2357 struct rb_node *nd; in resort_filtered_entry() local
2378 nd = rb_first_cached(&he->hroot_out); in resort_filtered_entry()
2379 while (nd) { in resort_filtered_entry()
2380 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in resort_filtered_entry()
2382 nd = rb_next(nd); in resort_filtered_entry()
2393 struct rb_node *nd; in hists__filter_hierarchy() local
2401 nd = rb_first_cached(&hists->entries); in hists__filter_hierarchy()
[all …]
H A Dintel-tpebs.c43 struct list_head nd; member
80 list_for_each_entry(t, &tpebs_results, nd) in evsel__tpebs_start_perf_record()
106 list_for_each_entry(t, &tpebs_results, nd) { in evsel__tpebs_start_perf_record()
119 list_for_each_entry(t, &tpebs_results, nd) in evsel__tpebs_start_perf_record()
426 list_for_each_entry(t, &tpebs_results, nd) { in tpebs_retire_lat__find()
443 list_for_each_entry(t, &tpebs_results, nd) { in tpebs_retire_lat__find()
471 list_add_tail(&tpebs_event->nd, &tpebs_results); in evsel__tpebs_prepare()
554 list_del_init(&t->nd); in evsel__tpebs_open()
584 if (t && &t->nd == tpebs_results.next) { in evsel__tpebs_read()
656 list_del_init(&t->nd); in evsel__tpebs_close()
/linux/include/net/
H A Dncsi.h37 void (*notifier)(struct ncsi_dev *nd));
38 int ncsi_start_dev(struct ncsi_dev *nd);
39 void ncsi_stop_dev(struct ncsi_dev *nd);
40 void ncsi_unregister_dev(struct ncsi_dev *nd);
53 void (*notifier)(struct ncsi_dev *nd)) in ncsi_register_dev() argument
58 static inline int ncsi_start_dev(struct ncsi_dev *nd) in ncsi_start_dev() argument
63 static void ncsi_stop_dev(struct ncsi_dev *nd) in ncsi_stop_dev() argument
67 static inline void ncsi_unregister_dev(struct ncsi_dev *nd) in ncsi_unregister_dev() argument
/linux/tools/perf/ui/browsers/
H A Dhists.c54 static struct rb_node *hists__filter_entries(struct rb_node *nd,
64 struct rb_node *nd; in hist_browser__get_folding() local
68 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding()
69 (nd = hists__filter_entries(nd, browser->min_pcnt)) != NULL; in hist_browser__get_folding()
70 nd = rb_hierarchy_next(nd)) { in hist_browser__get_folding()
72 rb_entry(nd, struct hist_entry, rb_node); in hist_browser__get_folding()
180 struct rb_node *nd; in callchain_node__count_rows_rb_tree() local
182 for (nd = rb_first(&node->rb_root); nd; nd = rb_next(nd)) { in callchain_node__count_rows_rb_tree()
183 struct callchain_node *child = rb_entry(nd, struct callchain_node, rb_node); in callchain_node__count_rows_rb_tree()
262 struct rb_node *nd; in callchain__count_rows() 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()
881 struct rb_node *nd = NULL; in annotate_browser__run() local
908 nd = browser->curr_hot; in annotate_browser__run()
924 if (nd != NULL && RB_EMPTY_NODE(nd)) in annotate_browser__run()
925 nd = NULL; in annotate_browser__run()
940 if (nd != NULL) { in annotate_browser__run()
941 nd = rb_prev(nd); in annotate_browser__run()
942 if (nd == NULL) in annotate_browser__run()
[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.c15 * enable - clk_enable writes nd, fracr parameters and enables PLL
17 * clk->rate = parent->rate * ((nd + 1) + (fracr / 2^22))
62 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()
181 pr_debug("A PLL: %s, fout = %lu (nd = %u, fracr = %lu)\n", __func__, 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
247 unsigned long fracr, nd; clk_audio_pll_frac_determine_rate() local
372 unsigned long fracr, nd; clk_audio_pll_frac_set_rate() local
[all...]
/linux/fs/dlm/
H A Dconfig.c316 int comm_seq; /* copy of cm->seq when nd->nodeid is set */
572 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 in make_node()
602 struct dlm_node *nd = config_item_to_node(i); drop_node() local
624 struct dlm_node *nd = config_item_to_node(i); release_node() local
933 struct dlm_node *nd; dlm_config_nodes() local
[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/
H A Dbuiltin-annotate.c413 struct rb_node *nd = rb_first_cached(&hists->entries), *next; in hists__find_annotations() local
421 while (nd) { in hists__find_annotations()
422 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations()
447 nd = rb_prev(nd); in hists__find_annotations()
449 nd = rb_next(nd); in hists__find_annotations()
487 next = rb_next(nd); in hists__find_annotations()
491 next = rb_prev(nd); in hists__find_annotations()
498 nd = next; in hists__find_annotations()
521 nd = rb_next(nd); in hists__find_annotations()
532 next = rb_next(nd); in hists__find_annotations()
[all …]
/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/arch/arm/mach-exynos/
H A Dfirmware.c198 struct device_node *nd; in exynos_secure_firmware_available() local
201 nd = of_find_compatible_node(NULL, NULL, in exynos_secure_firmware_available()
203 if (!nd) in exynos_secure_firmware_available()
206 addr = of_get_address(nd, 0, NULL, NULL); in exynos_secure_firmware_available()
207 of_node_put(nd); in exynos_secure_firmware_available()
/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()
531 getif(struct aoetgt * t,struct net_device * nd) getif() argument
547 struct net_device *nd; ejectif() local
1497 setifbcnt(struct aoetgt * t,struct net_device * nd,int bcnt) setifbcnt() argument
[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
176 nd = browser->top; in ui_browser__rb_tree_refresh()
178 while (nd != NULL) { in ui_browser__rb_tree_refresh()
[all …]

12345678