/Linux-v4.19/drivers/hid/ |
D | hid-ntrig.c | 177 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_phys_width() local 179 return sprintf(buf, "%d\n", nd->sensor_physical_width); in show_phys_width() 189 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_phys_height() local 191 return sprintf(buf, "%d\n", nd->sensor_physical_height); in show_phys_height() 201 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_log_width() local 203 return sprintf(buf, "%d\n", nd->sensor_logical_width); in show_log_width() 213 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_log_height() local 215 return sprintf(buf, "%d\n", nd->sensor_logical_height); in show_log_height() 225 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_min_width() local 227 return sprintf(buf, "%d\n", nd->min_width * in show_min_width() [all …]
|
/Linux-v4.19/drivers/staging/most/net/ |
D | net.c | 154 struct net_dev_context *nd = netdev_priv(dev); in most_nd_set_mac_address() local 160 nd->is_mamac = in most_nd_set_mac_address() 168 dev->mtu = nd->is_mamac ? MAMAC_DATA_LEN : ETH_DATA_LEN; in most_nd_set_mac_address() 178 struct net_dev_context *nd = netdev_priv(dev); in most_nd_open() local 183 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open() 189 if (most_start_channel(nd->iface, nd->tx.ch_id, &comp)) { in most_nd_open() 191 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_open() 202 if (nd->iface->request_netinfo) in most_nd_open() 203 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, on_netinfo); in most_nd_open() 212 struct net_dev_context *nd = netdev_priv(dev); in most_nd_stop() local [all …]
|
/Linux-v4.19/fs/ |
D | namei.c | 535 static int __nd_alloc_stack(struct nameidata *nd) in __nd_alloc_stack() argument 539 if (nd->flags & LOOKUP_RCU) { in __nd_alloc_stack() 550 memcpy(p, nd->internal, sizeof(nd->internal)); in __nd_alloc_stack() 551 nd->stack = p; in __nd_alloc_stack() 574 static inline int nd_alloc_stack(struct nameidata *nd) in nd_alloc_stack() argument 576 if (likely(nd->depth != EMBEDDED_LEVELS)) in nd_alloc_stack() 578 if (likely(nd->stack != nd->internal)) in nd_alloc_stack() 580 return __nd_alloc_stack(nd); in nd_alloc_stack() 583 static void drop_links(struct nameidata *nd) in drop_links() argument 585 int i = nd->depth; in drop_links() [all …]
|
/Linux-v4.19/block/ |
D | noop-iosched.c | 23 struct noop_data *nd = q->elevator->elevator_data; in noop_dispatch() local 26 rq = list_first_entry_or_null(&nd->queue, struct request, queuelist); in noop_dispatch() 37 struct noop_data *nd = q->elevator->elevator_data; in noop_add_request() local 39 list_add_tail(&rq->queuelist, &nd->queue); in noop_add_request() 45 struct noop_data *nd = q->elevator->elevator_data; in noop_former_request() local 47 if (rq->queuelist.prev == &nd->queue) in noop_former_request() 55 struct noop_data *nd = q->elevator->elevator_data; in noop_latter_request() local 57 if (rq->queuelist.next == &nd->queue) in noop_latter_request() 64 struct noop_data *nd; in noop_init_queue() local 71 nd = kmalloc_node(sizeof(*nd), GFP_KERNEL, q->node); in noop_init_queue() [all …]
|
/Linux-v4.19/drivers/isdn/i4l/ |
D | isdn_net.h | 79 static __inline__ isdn_net_local *isdn_net_get_locked_lp(isdn_net_dev *nd) in isdn_net_get_locked_lp() argument 84 spin_lock_irqsave(&nd->queue_lock, flags); in isdn_net_get_locked_lp() 85 lp = nd->queue; /* get lp on top of queue */ in isdn_net_get_locked_lp() 86 while (isdn_net_lp_busy(nd->queue)) { in isdn_net_get_locked_lp() 87 nd->queue = nd->queue->next; in isdn_net_get_locked_lp() 88 if (nd->queue == lp) { /* not found -- should never happen */ in isdn_net_get_locked_lp() 93 lp = nd->queue; in isdn_net_get_locked_lp() 94 nd->queue = nd->queue->next; in isdn_net_get_locked_lp() 95 spin_unlock_irqrestore(&nd->queue_lock, flags); in isdn_net_get_locked_lp() 100 spin_unlock_irqrestore(&nd->queue_lock, flags); in isdn_net_get_locked_lp() [all …]
|
/Linux-v4.19/net/ncsi/ |
D | ncsi-manage.c | 32 struct ncsi_dev *nd = &ndp->ndev; in ncsi_report_link() local 37 nd->state = ncsi_dev_state_functional; in ncsi_report_link() 39 nd->link_up = 0; in ncsi_report_link() 43 nd->link_up = 0; in ncsi_report_link() 56 nd->link_up = 1; in ncsi_report_link() 65 nd->handler(nd); in ncsi_report_link() 428 struct ncsi_dev *nd = &ndp->ndev; in ncsi_suspend_channel() local 437 switch (nd->state) { in ncsi_suspend_channel() 439 nd->state = ncsi_dev_state_suspend_select; in ncsi_suspend_channel() 461 nd->state = ncsi_dev_state_suspend_gls; in ncsi_suspend_channel() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | metricgroup.c | 35 struct rb_node *nd; in metricgroup__lookup() local 43 nd = rblist__find(metric_events, &me); in metricgroup__lookup() 44 if (nd) in metricgroup__lookup() 45 return container_of(nd, struct metric_event, nd); in metricgroup__lookup() 48 nd = rblist__find(metric_events, &me); in metricgroup__lookup() 49 if (nd) in metricgroup__lookup() 50 return container_of(nd, struct metric_event, nd); in metricgroup__lookup() 59 nd); in metric_event_cmp() 79 return &me->nd; in metric_event_new() 90 struct list_head nd; member [all …]
|
D | rb_resort.h | 60 static void __name##_sorted__init_entry(struct rb_node *nd, \ 73 struct __name##_sorted_entry nd[0]; \ 94 struct rb_node *nd; \ 96 for (nd = rb_first(entries); nd; nd = rb_next(nd)) { \ 97 struct __name##_sorted_entry *snd = &sorted->nd[i++]; \ 98 __name##_sorted__init_entry(nd, snd); \ 107 sorted = malloc(sizeof(*sorted) + sizeof(sorted->nd[0]) * nr_entries); \ 120 static void __name##_sorted__init_entry(struct rb_node *nd, \
|
D | build-id.c | 360 struct rb_node *nd; in perf_session__write_buildid_table() local 366 for (nd = rb_first(&session->machines.guests); nd; nd = rb_next(nd)) { in perf_session__write_buildid_table() 367 struct machine *pos = rb_entry(nd, struct machine, rb_node); in perf_session__write_buildid_table() 392 struct rb_node *nd; in dsos__hit_all() local 399 for (nd = rb_first(&session->machines.guests); nd; nd = rb_next(nd)) { in dsos__hit_all() 400 struct machine *pos = rb_entry(nd, struct machine, rb_node); in dsos__hit_all() 434 struct str_node *nd, *nd2; in build_id_cache__list_all() local 459 strlist__for_each_entry(nd, toplist) { in build_id_cache__list_all() 460 if (asprintf(&linkdir, "%s/%s", topdir, nd->s) < 0) in build_id_cache__list_all() 470 nd->s, nd2->s) != SBUILD_ID_SIZE - 1) in build_id_cache__list_all() [all …]
|
D | symbol_fprintf.c | 64 struct rb_node *nd; in dso__fprintf_symbols_by_name() local 67 for (nd = rb_first(&dso->symbol_names); nd; nd = rb_next(nd)) { in dso__fprintf_symbols_by_name() 68 pos = rb_entry(nd, struct symbol_name_rb_node, rb_node); in dso__fprintf_symbols_by_name()
|
D | hist.c | 1961 struct rb_node *nd; in hists__filter_by_type() local 1968 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { in hists__filter_by_type() 1969 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_type() 1984 struct rb_node *nd; in resort_filtered_entry() local 2002 nd = rb_first(&he->hroot_out); in resort_filtered_entry() 2003 while (nd) { in resort_filtered_entry() 2004 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in resort_filtered_entry() 2006 nd = rb_next(nd); in resort_filtered_entry() 2017 struct rb_node *nd; in hists__filter_hierarchy() local 2025 nd = rb_first(&hists->entries); in hists__filter_hierarchy() [all …]
|
D | machine.c | 176 struct rb_node *nd; in machine__delete_threads() local 182 nd = rb_first(&threads->entries); in machine__delete_threads() 183 while (nd) { in machine__delete_threads() 184 struct thread *t = rb_entry(nd, struct thread, rb_node); in machine__delete_threads() 186 nd = rb_next(nd); in machine__delete_threads() 266 struct rb_node *nd; in machines__set_comm_exec() local 270 for (nd = rb_first(&machines->guests); nd; nd = rb_next(nd)) { in machines__set_comm_exec() 271 struct machine *machine = rb_entry(nd, struct machine, rb_node); in machines__set_comm_exec() 340 struct rb_node *nd; in machines__process_guests() local 342 for (nd = rb_first(&machines->guests); nd; nd = rb_next(nd)) { in machines__process_guests() [all …]
|
/Linux-v4.19/include/net/ |
D | ncsi.h | 35 void (*notifier)(struct ncsi_dev *nd)); 36 int ncsi_start_dev(struct ncsi_dev *nd); 37 void ncsi_stop_dev(struct ncsi_dev *nd); 38 void ncsi_unregister_dev(struct ncsi_dev *nd); 51 void (*notifier)(struct ncsi_dev *nd)) in ncsi_register_dev() argument 56 static inline int ncsi_start_dev(struct ncsi_dev *nd) in ncsi_start_dev() argument 61 static void ncsi_stop_dev(struct ncsi_dev *nd) in ncsi_stop_dev() argument 65 static inline void ncsi_unregister_dev(struct ncsi_dev *nd) in ncsi_unregister_dev() argument
|
/Linux-v4.19/tools/perf/ui/browsers/ |
D | hists.c | 38 static struct rb_node *hists__filter_entries(struct rb_node *nd, 48 struct rb_node *nd; in hist_browser__get_folding() local 52 for (nd = rb_first(&hists->entries); in hist_browser__get_folding() 53 (nd = hists__filter_entries(nd, browser->min_pcnt)) != NULL; in hist_browser__get_folding() 54 nd = rb_hierarchy_next(nd)) { in hist_browser__get_folding() 56 rb_entry(nd, struct hist_entry, rb_node); in hist_browser__get_folding() 164 struct rb_node *nd; in callchain_node__count_rows_rb_tree() local 166 for (nd = rb_first(&node->rb_root); nd; nd = rb_next(nd)) { in callchain_node__count_rows_rb_tree() 167 struct callchain_node *child = rb_entry(nd, struct callchain_node, rb_node); in callchain_node__count_rows_rb_tree() 246 struct rb_node *nd; in callchain__count_rows() local [all …]
|
D | map.c | 23 static void map_browser__write(struct ui_browser *browser, void *nd, int row) in map_browser__write() argument 25 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in map_browser__write() 114 struct rb_node *nd; in map__browse() local 118 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse() 119 struct symbol *pos = rb_entry(nd, struct symbol, rb_node); in map__browse()
|
D | annotate.c | 283 struct rb_node *nd) in annotate_browser__set_rb_top() argument 286 struct annotation_line * pos = rb_entry(nd, struct annotation_line, rb_node); in annotate_browser__set_rb_top() 292 browser->curr_hot = nd; in annotate_browser__set_rb_top() 656 struct rb_node *nd = NULL; in annotate_browser__run() local 677 nd = browser->curr_hot; in annotate_browser__run() 689 if (nd != NULL && RB_EMPTY_NODE(nd)) in annotate_browser__run() 690 nd = NULL; in annotate_browser__run() 705 if (nd != NULL) { in annotate_browser__run() 706 nd = rb_prev(nd); in annotate_browser__run() 707 if (nd == NULL) in annotate_browser__run() [all …]
|
/Linux-v4.19/arch/sparc/kernel/ |
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-v4.19/Documentation/ABI/testing/ |
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-v4.19/tools/perf/ui/gtk/ |
D | hists.c | 98 struct rb_node *nd; in perf_gtk__add_callchain_flat() local 101 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_flat() 107 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_flat() 161 struct rb_node *nd; in perf_gtk__add_callchain_folded() local 163 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_folded() 171 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_folded() 221 struct rb_node *nd; in perf_gtk__add_callchain_graph() local 224 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_graph() 231 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_graph() 298 struct rb_node *nd; in perf_gtk__show_hists() local [all …]
|
/Linux-v4.19/drivers/clk/at91/ |
D | clk-audio-pll.c | 65 u8 nd; member 105 AT91_PMC_AUDIO_PLL_ND(frac->nd)); in clk_audio_pll_frac_enable() 163 unsigned long nd, unsigned long fracr) in clk_audio_pll_fout() argument 173 return parent_rate * (nd + 1) + fr; in clk_audio_pll_fout() 182 fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); in clk_audio_pll_frac_recalc_rate() 185 fout, frac->nd, (unsigned long)frac->fracr); in clk_audio_pll_frac_recalc_rate() 221 unsigned long *nd, in clk_audio_pll_frac_compute_frac() argument 234 *nd = tmp - 1; in clk_audio_pll_frac_compute_frac() 250 unsigned long fracr, nd; in clk_audio_pll_frac_determine_rate() local 262 &nd, &fracr); in clk_audio_pll_frac_determine_rate() [all …]
|
/Linux-v4.19/drivers/block/aoe/ |
D | aoeblk.c | 63 struct net_device *nds[8], **nd, **nnd, **ne; in aoedisk_show_netif() local 69 nd = nds; in aoedisk_show_netif() 70 ne = nd + ARRAY_SIZE(nds); in aoedisk_show_netif() 76 for (; ifp < e && ifp->nd; ifp++) { in aoedisk_show_netif() 77 for (nnd = nds; nnd < nd; nnd++) in aoedisk_show_netif() 78 if (*nnd == ifp->nd) in aoedisk_show_netif() 80 if (nnd == nd && nd != ne) in aoedisk_show_netif() 81 *nd++ = ifp->nd; in aoedisk_show_netif() 85 ne = nd; in aoedisk_show_netif() 86 nd = nds; in aoedisk_show_netif() [all …]
|
/Linux-v4.19/fs/dlm/ |
D | config.c | 493 struct dlm_node *nd; in make_node() local 495 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS); in make_node() 496 if (!nd) in make_node() 499 config_item_init_type_name(&nd->item, name, &node_type); in make_node() 500 nd->nodeid = -1; in make_node() 501 nd->weight = 1; /* default weight of 1 if none is set */ in make_node() 502 nd->new = 1; /* set to 0 once it's been read by dlm_nodeid_list() */ in make_node() 505 list_add(&nd->list, &sp->members); in make_node() 509 return &nd->item; in make_node() 515 struct dlm_node *nd = config_item_to_node(i); in drop_node() local [all …]
|
/Linux-v4.19/tools/perf/ |
D | builtin-annotate.c | 309 struct rb_node *nd = rb_first(&hists->entries), *next; in hists__find_annotations() local 312 while (nd) { in hists__find_annotations() 313 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations() 327 nd = rb_prev(nd); in hists__find_annotations() 329 nd = rb_next(nd); in hists__find_annotations() 351 nd = rb_next(nd); in hists__find_annotations() 361 next = rb_next(nd); in hists__find_annotations() 364 next = rb_prev(nd); in hists__find_annotations() 371 nd = next; in hists__find_annotations() 374 nd = rb_next(nd); in hists__find_annotations()
|
/Linux-v4.19/net/openvswitch/ |
D | flow.c | 430 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6() 436 struct nd_msg *nd; in parse_icmpv6() local 442 if (unlikely(icmp_len < sizeof(*nd))) in parse_icmpv6() 448 nd = (struct nd_msg *)skb_transport_header(skb); in parse_icmpv6() 449 key->ipv6.nd.target = nd->target; in parse_icmpv6() 451 icmp_len -= sizeof(*nd); in parse_icmpv6() 455 (struct nd_opt_hdr *)(nd->opt + offset); in parse_icmpv6() 467 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.sll))) in parse_icmpv6() 469 ether_addr_copy(key->ipv6.nd.sll, in parse_icmpv6() 470 &nd->opt[offset+sizeof(*nd_opt)]); in parse_icmpv6() [all …]
|
/Linux-v4.19/arch/ia64/kernel/ |
D | crash.c | 158 struct ia64_mca_notify_die *nd; in kdump_init_notifier() local 191 nd = (struct ia64_mca_notify_die *)args->err; in kdump_init_notifier() 196 if (kdump_on_init && (nd->sos->rv_rc != 1)) { in kdump_init_notifier() 203 if (kdump_on_init && (nd->sos->rv_rc != 1)) in kdump_init_notifier() 208 if (kdump_on_fatal_mca && !(*(nd->data))) { in kdump_init_notifier()
|