/drivers/hid/ |
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 …]
|
/drivers/staging/most/net/ |
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 …]
|
/drivers/clk/at91/ |
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 …]
|
/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 …]
|
D | aoecmd.c | 133 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit() 163 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate() 165 if (ifp->nd == NULL) in ifrotate() 274 && t->ifp->nd) { in newframe() 365 skb->dev = t->ifp->nd; in ata_rw_frameinit() 485 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in resend() 487 skb->dev = t->ifp->nd; in resend() 526 getif(struct aoetgt *t, struct net_device *nd) in getif() argument 533 if (p->nd == nd) in getif() 542 struct net_device *nd; in ejectif() local [all …]
|
D | aoedev.c | 505 if (!ifp->nd) in freetgt() 507 dev_put(ifp->nd); in freetgt()
|
D | aoe.h | 133 struct net_device *nd; member
|
/drivers/fpga/ |
D | of-fpga-region.c | 285 struct of_overlay_notify_data *nd) in of_fpga_region_notify_pre_apply() argument 291 info = of_fpga_region_parse_ov(region, nd->overlay); in of_fpga_region_notify_pre_apply() 325 struct of_overlay_notify_data *nd) in of_fpga_region_notify_post_remove() argument 347 struct of_overlay_notify_data *nd = arg; in of_fpga_region_notify() local 368 region = of_fpga_region_find(nd->target); in of_fpga_region_notify() 375 ret = of_fpga_region_notify_pre_apply(region, nd); in of_fpga_region_notify() 379 of_fpga_region_notify_post_remove(region, nd); in of_fpga_region_notify()
|
/drivers/nubus/ |
D | nubus.c | 149 unsigned char *nubus_dirptr(const struct nubus_dirent *nd) in nubus_dirptr() argument 151 unsigned char *p = nd->base; in nubus_dirptr() 155 nubus_move(&p, nubus_expand32(nd->data), nd->mask); in nubus_dirptr() 268 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 272 if (nd->done) in nubus_readdir() 276 ent->base = nd->ptr; in nubus_readdir() 279 resid = nubus_get_rom(&nd->ptr, 4, nd->mask); in nubus_readdir() 284 nd->done = 1; in nubus_readdir() 292 ent->mask = nd->mask; in nubus_readdir()
|
/drivers/staging/netlogic/ |
D | xlr_net.c | 66 stnid = priv->nd->rfr_station; in send_to_rfr_fifo() 284 if (priv->nd->phy_interface == PHY_INTERFACE_MODE_RGMII || in xlr_hw_set_mac_addr() 285 priv->nd->phy_interface == PHY_INTERFACE_MODE_SGMII) in xlr_hw_set_mac_addr() 453 for (i = 0; i < hweight32(priv->nd->cpu_mask); i++) in xlr_config_pde() 479 struct xlr_fmn_info *gmac = priv->nd->gmac_fmn_info; in xlr_config_common() 482 int *bucket_size = priv->nd->bucket_size; in xlr_config_common() 527 cpu_mask = priv->nd->cpu_mask; in xlr_config_translate_table() 794 xlr_gmac_link_adjust, priv->nd->phy_interface); in xlr_mii_probe() 860 priv->nd->phy_interface == PHY_INTERFACE_MODE_RGMII) in xlr_port_enable() 978 priv->nd = (struct xlr_net_data *)pdev->dev.platform_data; in xlr_net_probe() [all …]
|
/drivers/hwtracing/coresight/ |
D | coresight-core.c | 484 struct coresight_node *nd) in coresight_disable_path_from() argument 489 if (!nd) in coresight_disable_path_from() 490 nd = list_first_entry(path, struct coresight_node, link); in coresight_disable_path_from() 492 list_for_each_entry_continue(nd, path, link) { in coresight_disable_path_from() 493 csdev = nd->csdev; in coresight_disable_path_from() 520 parent = list_prev_entry(nd, link)->csdev; in coresight_disable_path_from() 521 child = list_next_entry(nd, link)->csdev; in coresight_disable_path_from() 541 struct coresight_node *nd; in coresight_enable_path() local 544 list_for_each_entry_reverse(nd, path, link) { in coresight_enable_path() 545 csdev = nd->csdev; in coresight_enable_path() [all …]
|
/drivers/s390/cio/ |
D | chsc.c | 390 static void format_node_data(char *params, char *id, struct node_descriptor *nd) in format_node_data() argument 395 if (nd->validity != ND_VALIDITY_VALID) { in format_node_data() 402 snprintf(params, PARAMS_LEN, "%02x,%06x", nd->byte0, nd->params); in format_node_data() 404 id = store_ebcdic(id, nd->type, sizeof(nd->type), '/'); in format_node_data() 405 id = store_ebcdic(id, nd->model, sizeof(nd->model), ','); in format_node_data() 406 id = store_ebcdic(id, nd->manufacturer, sizeof(nd->manufacturer), '.'); in format_node_data() 407 id = store_ebcdic(id, nd->plant, sizeof(nd->plant), 0); in format_node_data() 408 id = store_ebcdic(id, nd->seq, sizeof(nd->seq), ','); in format_node_data() 409 sprintf(id, "%04X", nd->tag); in format_node_data()
|
/drivers/sbus/char/ |
D | openprom.c | 498 phandle nd; in opiocgetnext() local 502 if (copy_from_user(&nd, argp, sizeof(phandle))) in opiocgetnext() 505 if (nd == 0) { in opiocgetnext() 510 dp = of_find_node_by_phandle(nd); in opiocgetnext() 511 nd = 0; in opiocgetnext() 520 nd = dp->phandle; in opiocgetnext() 521 if (copy_to_user(argp, &nd, sizeof(phandle))) in opiocgetnext()
|
/drivers/infiniband/hw/mlx4/ |
D | cm.c | 527 struct rb_node *nd; in mlx4_ib_cm_paravirt_clean() local 559 nd = rb_first(sl_id_map); in mlx4_ib_cm_paravirt_clean() 560 while (nd) { in mlx4_ib_cm_paravirt_clean() 562 rb_entry(nd, struct id_map_entry, node); in mlx4_ib_cm_paravirt_clean() 563 nd = rb_next(nd); in mlx4_ib_cm_paravirt_clean()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | cfg80211.h | 300 struct cfg80211_wowlan_nd_match *nd; member 421 static inline struct brcmf_cfg80211_profile *ndev_to_prof(struct net_device *nd) in ndev_to_prof() argument 423 struct brcmf_if *ifp = netdev_priv(nd); in ndev_to_prof()
|
/drivers/base/ |
D | arch_numa.c | 225 void *nd; in setup_node_data() local 236 nd = __va(nd_pa); in setup_node_data() 245 node_data[nid] = nd; in setup_node_data()
|
/drivers/phy/rockchip/ |
D | phy-rockchip-inno-hdmi.c | 570 u8 nd, no_a, no_b, no_d; in inno_hdmi_phy_rk3228_clk_recalc_rate() local 574 nd = inno_read(inno, 0xe2) & RK3228_PRE_PLL_PRE_DIV_MASK; in inno_hdmi_phy_rk3228_clk_recalc_rate() 580 do_div(vco, nd * 5); in inno_hdmi_phy_rk3228_clk_recalc_rate() 590 do_div(vco, (nd * (no_a == 1 ? no_b : no_a) * no_d * 2)); in inno_hdmi_phy_rk3228_clk_recalc_rate() 717 u8 nd, no_a, no_b, no_c, no_d; in inno_hdmi_phy_rk3328_clk_recalc_rate() local 721 nd = inno_read(inno, 0xa1) & RK3328_PRE_PLL_PRE_DIV_MASK; in inno_hdmi_phy_rk3328_clk_recalc_rate() 734 do_div(vco, nd * 5); in inno_hdmi_phy_rk3328_clk_recalc_rate() 745 do_div(vco, (nd * (no_a == 1 ? no_b : no_a) * no_d * 2)); in inno_hdmi_phy_rk3328_clk_recalc_rate()
|
/drivers/of/ |
D | overlay.c | 158 struct of_overlay_notify_data nd; in overlay_notify() local 166 nd.target = fragment->target; in overlay_notify() 167 nd.overlay = fragment->overlay; in overlay_notify() 170 action, &nd); in overlay_notify() 174 of_overlay_action_name(action), ret, nd.target); in overlay_notify()
|
/drivers/nfc/fdp/ |
D | fdp.c | 123 u32 nd, num, delta; in fdp_nci_set_clock() local 126 nd = (24 * fc) / clock_freq; in fdp_nci_set_clock() 127 delta = 24 * fc - nd * clock_freq; in fdp_nci_set_clock() 138 data[7] = nd; in fdp_nci_set_clock()
|
/drivers/clk/baikal-t1/ |
D | ccu-div.c | 81 unsigned long nd; in ccu_div_var_update_clkdiv() local 86 nd = ccu_div_lock_delay_ns(parent_rate, divider); in ccu_div_var_update_clkdiv() 102 ndelay(nd); in ccu_div_var_update_clkdiv()
|
/drivers/scsi/ |
D | aha1740.h | 118 nd:1, /* No Disconnect */ member
|
/drivers/net/ethernet/amd/ |
D | sunlance.c | 1402 struct device_node *nd; in sparc_lance_probe_one() local 1407 nd = of_find_node_by_path("/options"); in sparc_lance_probe_one() 1408 if (!nd) in sparc_lance_probe_one() 1411 prop = of_get_property(nd, "tpe-link-test?", NULL); in sparc_lance_probe_one() 1423 of_node_put(nd); in sparc_lance_probe_one()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_debugfs.c | 130 struct net_device *nd = vsi->netdev; in i40e_dbg_dump_vsi_seid() local 133 nd->name, nd->state, nd->flags); in i40e_dbg_dump_vsi_seid() 135 (unsigned long int)nd->features); in i40e_dbg_dump_vsi_seid() 137 (unsigned long int)nd->hw_features); in i40e_dbg_dump_vsi_seid() 139 (unsigned long int)nd->vlan_features); in i40e_dbg_dump_vsi_seid()
|
/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 1703 static void ftgmac100_ncsi_handler(struct ncsi_dev *nd) in ftgmac100_ncsi_handler() argument 1705 if (unlikely(nd->state != ncsi_dev_state_functional)) in ftgmac100_ncsi_handler() 1708 netdev_dbg(nd->dev, "NCSI interface %s\n", in ftgmac100_ncsi_handler() 1709 nd->link_up ? "up" : "down"); in ftgmac100_ncsi_handler()
|
/drivers/clk/st/ |
D | clkgen-fsyn.c | 325 unsigned long nd = fs->ndiv + 16; /* ndiv value */ in clk_fs660c32_vco_get_rate() local 327 *rate = input * nd; in clk_fs660c32_vco_get_rate()
|