| /linux/drivers/hid/ |
| H A D | hid-ntrig.c | 173 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/drivers/staging/most/net/ |
| H A D | net.c | 164 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/net/ncsi/ |
| H A D | ncsi-manage.c | 53 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 D | rb_resort.h | |
| H A D | print-events.c | 192 struct rb_node nd; member 206 struct mep *a = container_of(rb_node, struct mep, nd); in mep_cmp() 225 return &me->nd; in mep_new() 229 struct rb_node *nd) in mep_delete() argument 231 struct mep *me = container_of(nd, struct mep, nd); in mep_delete() 240 struct rb_node *nd; in mep_lookup() local 245 nd = rblist__find(groups, &me); in mep_lookup() 246 if (nd) { in mep_lookup() 248 return container_of(nd, struct mep, nd); in mep_lookup() 251 nd = rblist__find(groups, &me); in mep_lookup() [all …]
|
| H A D | build-id.c | 368 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 D | metricgroup.c | 40 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 D | hist.c | 2333 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 D | intel-tpebs.c | 43 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 D | ncsi.h | 37 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 D | hists.c | 54 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 D | map.c | 25 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 D | annotate.c | 327 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 D | devices.c | 34 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 D | sysfs-bus-nfit | 5 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 D | hists.c | 100 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 D | clk-audio-pll.c | 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() 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 D | config.c | 572 struct dlm_node *nd; in make_node() local 580 nd = kzalloc(sizeof(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 D | notif.h | 38 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 D | builtin-annotate.c | 413 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 D | symbols.c | 118 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 D | firmware.c | 198 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/arch/arm64/boot/dts/mediatek/ |
| H A D | mt8173-elm-hana.dtsi | 21 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd 33 /* Lenovo Ideapad C330 uses G2Touch touchscreen as a 2nd source touchscreen */ 46 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
|
| /linux/drivers/block/aoe/ |
| H A D | aoecmd.c | 132 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 D | browser.c | 141 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 …]
|