/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/io_uring/ |
H A D | notif.c | 14 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_complete_tw_ext() local 17 if (nd->zc_report && (nd->zc_copied || !nd->zc_used)) in io_notif_complete_tw_ext() 20 if (nd->account_pages && ctx->user) { in io_notif_complete_tw_ext() 21 __io_unaccount_mem(ctx->user, nd->account_pages); in io_notif_complete_tw_ext() 22 nd->account_pages = 0; in io_notif_complete_tw_ext() 30 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg); in io_tx_ubuf_callback() local 31 struct io_kiocb *notif = cmd_to_io_kiocb(nd); in io_tx_ubuf_callback() 40 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg); in io_tx_ubuf_callback_ext() local 42 if (nd->zc_report) { in io_tx_ubuf_callback_ext() 43 if (success && !nd->zc_used && skb) in io_tx_ubuf_callback_ext() [all …]
|
H A D | notif.h | 33 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_flush() local 36 if (refcount_dec_and_test(&nd->uarg.refcnt)) in io_notif_flush() 43 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_account_mem() local 51 nd->account_pages += nr_pages; in io_notif_account_mem()
|
/openbmc/linux/fs/ |
H A D | namei.c | 632 static bool nd_alloc_stack(struct nameidata *nd) in nd_alloc_stack() argument 637 nd->flags & LOOKUP_RCU ? GFP_ATOMIC : GFP_KERNEL); in nd_alloc_stack() 640 memcpy(p, nd->internal, sizeof(nd->internal)); in nd_alloc_stack() 641 nd->stack = p; in nd_alloc_stack() 664 static void drop_links(struct nameidata *nd) in drop_links() argument 666 int i = nd->depth; in drop_links() 668 struct saved *last = nd->stack + i; in drop_links() 674 static void leave_rcu(struct nameidata *nd) in leave_rcu() argument 676 nd->flags &= ~LOOKUP_RCU; in leave_rcu() 677 nd->seq = nd->next_seq = 0; in leave_rcu() [all …]
|
/openbmc/qemu/hw/nubus/ |
H A D | nubus-device.c | 21 void nubus_set_irq(NubusDevice *nd, int level) in nubus_set_irq() argument 23 NubusBus *nubus = NUBUS_BUS(qdev_get_parent_bus(DEVICE(nd))); in nubus_set_irq() 25 qemu_set_irq(nubus->irqs[nd->slot], level); in nubus_set_irq() 31 NubusDevice *nd = NUBUS_DEVICE(dev); in nubus_device_realize() local 38 if (nd->slot < 0 || nd->slot >= NUBUS_SLOT_NB) { in nubus_device_realize() 41 nd->slot, NUBUS_SLOT_NB - 1); in nubus_device_realize() 46 slot_offset = nd->slot * NUBUS_SUPER_SLOT_SIZE; in nubus_device_realize() 48 name = g_strdup_printf("nubus-super-slot-%x", nd->slot); in nubus_device_realize() 49 memory_region_init(&nd->super_slot_mem, OBJECT(dev), name, in nubus_device_realize() 52 &nd->super_slot_mem); in nubus_device_realize() [all …]
|
H A D | nubus-bus.c | 124 NubusDevice *nd = NUBUS_DEVICE(dev); in nubus_get_dev_path() local 129 char *ret = g_strdup_printf("%s/%s/%02x", p, bus->name, nd->slot); in nubus_get_dev_path() 133 return g_strdup_printf("%s/%02x", bus->name, nd->slot); in nubus_get_dev_path() 139 NubusDevice *nd = NUBUS_DEVICE(dev); in nubus_check_address() local 142 if (nd->slot == -1) { in nubus_check_address() 146 nd->slot = s; in nubus_check_address() 154 if (!(nubus->slot_available_mask & BIT(nd->slot))) { in nubus_check_address() 156 "unavailable or already occupied", nd->slot); in nubus_check_address() 161 nubus->slot_available_mask &= ~BIT(nd->slot); in nubus_check_address()
|
H A D | nubus-virtio-mmio.c | 20 NubusDevice *nd = NUBUS_DEVICE(opaque); in nubus_virtio_mmio_set_input_irq() local 22 nubus_set_irq(nd, level); in nubus_virtio_mmio_set_input_irq() 30 NubusDevice *nd = NUBUS_DEVICE(dev); in nubus_virtio_mmio_realize() local 44 memory_region_add_subregion(&nd->slot_mem, NUBUS_VIRTIO_MMIO_PIC_OFFSET, in nubus_virtio_mmio_realize() 58 memory_region_add_subregion(&nd->slot_mem, offset, in nubus_virtio_mmio_realize()
|
/openbmc/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 …]
|
/openbmc/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
|
/openbmc/linux/tools/perf/util/ |
H A 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, \
|
H A D | build-id.c | 377 struct rb_node *nd; in perf_session__write_buildid_table() local 383 for (nd = rb_first_cached(&session->machines.guests); nd; in perf_session__write_buildid_table() 384 nd = rb_next(nd)) { in perf_session__write_buildid_table() 385 struct machine *pos = rb_entry(nd, struct machine, rb_node); in perf_session__write_buildid_table() 410 struct rb_node *nd; in dsos__hit_all() local 417 for (nd = rb_first_cached(&session->machines.guests); nd; in dsos__hit_all() 418 nd = rb_next(nd)) { in dsos__hit_all() 419 struct machine *pos = rb_entry(nd, struct machine, rb_node); in dsos__hit_all() 454 struct str_node *nd, *nd2; in build_id_cache__list_all() local 479 strlist__for_each_entry(nd, toplist) { in build_id_cache__list_all() [all …]
|
H A D | metricgroup.c | 39 struct rb_node *nd; in metricgroup__lookup() local 47 nd = rblist__find(metric_events, &me); in metricgroup__lookup() 48 if (nd) in metricgroup__lookup() 49 return container_of(nd, struct metric_event, nd); in metricgroup__lookup() 52 nd = rblist__find(metric_events, &me); in metricgroup__lookup() 53 if (nd) in metricgroup__lookup() 54 return container_of(nd, struct metric_event, nd); in metricgroup__lookup() 63 nd); in metric_event_cmp() 84 return &me->nd; in metric_event_new() 90 struct metric_event *me = container_of(rb_node, struct metric_event, nd); in metric_event_delete() [all …]
|
/openbmc/linux/tools/perf/ui/browsers/ |
H A D | hists.c | 53 static struct rb_node *hists__filter_entries(struct rb_node *nd, 63 struct rb_node *nd; in hist_browser__get_folding() local 67 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding() 68 (nd = hists__filter_entries(nd, browser->min_pcnt)) != NULL; in hist_browser__get_folding() 69 nd = rb_hierarchy_next(nd)) { in hist_browser__get_folding() 71 rb_entry(nd, struct hist_entry, rb_node); in hist_browser__get_folding() 179 struct rb_node *nd; in callchain_node__count_rows_rb_tree() local 181 for (nd = rb_first(&node->rb_root); nd; nd = rb_next(nd)) { in callchain_node__count_rows_rb_tree() 182 struct callchain_node *child = rb_entry(nd, struct callchain_node, rb_node); in callchain_node__count_rows_rb_tree() 261 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() 116 struct rb_node *nd; in map__browse() local 120 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse() 121 struct symbol *pos = rb_entry(nd, struct symbol, rb_node); in map__browse()
|
H A D | annotate.c | 294 struct rb_node *nd) in annotate_browser__set_rb_top() argument 296 struct annotation_line * pos = rb_entry(nd, struct annotation_line, rb_node); in annotate_browser__set_rb_top() 302 browser->curr_hot = nd; in annotate_browser__set_rb_top() 712 struct rb_node *nd = NULL; in annotate_browser__run() local 733 nd = browser->curr_hot; in annotate_browser__run() 745 if (nd != NULL && RB_EMPTY_NODE(nd)) in annotate_browser__run() 746 nd = NULL; in annotate_browser__run() 761 if (nd != NULL) { in annotate_browser__run() 762 nd = rb_prev(nd); in annotate_browser__run() 763 if (nd == NULL) in annotate_browser__run() [all …]
|
/openbmc/qemu/net/ |
H A D | net.c | 70 Netdev *nd; member 971 NICInfo *nd; in net_init_nic() local 983 nd = &nd_table[idx]; in net_init_nic() 985 memset(nd, 0, sizeof(*nd)); in net_init_nic() 988 nd->netdev = qemu_find_netdev(nic->netdev); in net_init_nic() 989 if (!nd->netdev) { in net_init_nic() 995 nd->netdev = peer; in net_init_nic() 997 nd->name = g_strdup(name); in net_init_nic() 999 nd->model = g_strdup(nic->model); in net_init_nic() 1002 nd->devaddr = g_strdup(nic->addr); in net_init_nic() [all …]
|
/openbmc/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()
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/block/aoe/ |
H A D | aoeblk.c | 61 struct net_device *nds[8], **nd, **nnd, **ne; in aoedisk_show_netif() local 67 nd = nds; in aoedisk_show_netif() 68 ne = nd + ARRAY_SIZE(nds); in aoedisk_show_netif() 74 for (; ifp < e && ifp->nd; ifp++) { in aoedisk_show_netif() 75 for (nnd = nds; nnd < nd; nnd++) in aoedisk_show_netif() 76 if (*nnd == ifp->nd) in aoedisk_show_netif() 78 if (nnd == nd && nd != ne) in aoedisk_show_netif() 79 *nd++ = ifp->nd; in aoedisk_show_netif() 83 ne = nd; in aoedisk_show_netif() 84 nd = nds; in aoedisk_show_netif() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-coroutine.c | 106 NestData *nd = opaque; in nest() local 108 nd->n_enter++; in nest() 110 if (nd->n_enter < nd->max) { in nest() 113 child = qemu_coroutine_create(nest, nd); in nest() 117 nd->n_return++; in nest() 123 NestData nd = { in test_nesting() local 129 root = qemu_coroutine_create(nest, &nd); in test_nesting() 133 g_assert_cmpint(nd.n_enter, ==, nd.max); in test_nesting() 134 g_assert_cmpint(nd.n_return, ==, nd.max); in test_nesting() 543 NestData nd = { in perf_nesting() local [all …]
|
/openbmc/linux/fs/dlm/ |
H A D | config.c | 550 struct dlm_node *nd; in make_node() local 552 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS); in make_node() 553 if (!nd) in make_node() 556 config_item_init_type_name(&nd->item, name, &node_type); in make_node() 557 nd->nodeid = -1; in make_node() 558 nd->weight = 1; /* default weight of 1 if none is set */ in make_node() 559 nd->new = 1; /* set to 0 once it's been read by dlm_nodeid_list() */ in make_node() 562 list_add(&nd->list, &sp->members); in make_node() 566 return &nd->item; in make_node() 572 struct dlm_node *nd = config_item_to_node(i); in drop_node() local [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | symbols.c | 68 struct rb_node *nd; in test_dso() local 75 for (nd = rb_first_cached(&dso->symbols); nd; nd = rb_next(nd)) { in test_dso() 76 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in test_dso()
|