/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 …]
|
/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 …]
|
D | isdn_concap.c | 45 isdn_net_dev *nd = ((isdn_net_local *) netdev_priv(ndev))->netdev; in isdn_concap_dl_data_req() local 46 isdn_net_local *lp = isdn_net_get_locked_lp(nd); in isdn_concap_dl_data_req()
|
D | isdn_net.c | 117 isdn_net_dev *nd; in isdn_net_device_busy() local 124 nd = ISDN_MASTER_PRIV(lp)->netdev; in isdn_net_device_busy() 126 nd = lp->netdev; in isdn_net_device_busy() 128 spin_lock_irqsave(&nd->queue_lock, flags); in isdn_net_device_busy() 132 spin_unlock_irqrestore(&nd->queue_lock, flags); in isdn_net_device_busy() 137 spin_unlock_irqrestore(&nd->queue_lock, flags); in isdn_net_device_busy() 490 isdn_net_dev *nd = ISDN_MASTER_PRIV(lp)->netdev; in isdn_net_stat_callback() local 491 isdn_net_add_to_bundle(nd, lp); in isdn_net_stat_callback() 1053 isdn_net_dev *nd; in isdn_net_xmit() local 1070 nd = ((isdn_net_local *) netdev_priv(ndev))->netdev; in isdn_net_xmit() [all …]
|
/drivers/staging/lustre/lnet/selftest/ |
D | conrpc.c | 92 lstcon_rpc_init(lstcon_node_t *nd, int service, unsigned feats, in lstcon_rpc_init() argument 95 crpc->crp_rpc = sfw_create_rpc(nd->nd_id, service, in lstcon_rpc_init() 102 crpc->crp_node = nd; in lstcon_rpc_init() 117 lstcon_rpc_prep(lstcon_node_t *nd, int service, unsigned feats, in lstcon_rpc_prep() argument 139 rc = lstcon_rpc_init(nd, service, feats, bulk_npg, bulk_len, 0, crpc); in lstcon_rpc_prep() 290 lstcon_node_t *nd; in lstcon_rpc_trans_abort() local 317 nd = crpc->crp_node; in lstcon_rpc_trans_abort() 318 if (cfs_time_after(nd->nd_stamp, crpc->crp_stamp)) in lstcon_rpc_trans_abort() 321 nd->nd_stamp = crpc->crp_stamp; in lstcon_rpc_trans_abort() 322 nd->nd_state = LST_NODE_DOWN; in lstcon_rpc_trans_abort() [all …]
|
D | conrpc.h | 113 int lstcon_sesrpc_prep(struct lstcon_node *nd, int transop, 115 int lstcon_dbgrpc_prep(struct lstcon_node *nd, 117 int lstcon_batrpc_prep(struct lstcon_node *nd, int transop, unsigned version, 119 int lstcon_testrpc_prep(struct lstcon_node *nd, int transop, unsigned version, 121 int lstcon_statrpc_prep(struct lstcon_node *nd, unsigned version,
|
D | console.c | 49 #define LST_NODE_STATE_COUNTER(nd, p) \ argument 51 if ((nd)->nd_state == LST_NODE_ACTIVE) \ 53 else if ((nd)->nd_state == LST_NODE_BUSY) \ 55 else if ((nd)->nd_state == LST_NODE_DOWN) \ 65 lstcon_node_get(lstcon_node_t *nd) in lstcon_node_get() argument 67 LASSERT (nd->nd_ref >= 1); in lstcon_node_get() 69 nd->nd_ref++; in lstcon_node_get() 118 lstcon_node_put(lstcon_node_t *nd) in lstcon_node_put() argument 122 LASSERT (nd->nd_ref > 0); in lstcon_node_put() 124 if (--nd->nd_ref > 0) in lstcon_node_put() [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() 486 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in resend() 488 skb->dev = t->ifp->nd; in resend() 544 getif(struct aoetgt *t, struct net_device *nd) in getif() argument 551 if (p->nd == nd) in getif() 560 struct net_device *nd; in ejectif() local [all …]
|
D | aoedev.c | 500 if (!ifp->nd) in freetgt() 502 dev_put(ifp->nd); in freetgt()
|
D | aoe.h | 128 struct net_device *nd; member
|
/drivers/staging/netlogic/ |
D | xlr_net.c | 94 stnid = priv->nd->rfr_station; in send_to_rfr_fifo() 322 if (priv->nd->phy_interface == PHY_INTERFACE_MODE_RGMII || in xlr_hw_set_mac_addr() 323 priv->nd->phy_interface == PHY_INTERFACE_MODE_SGMII) in xlr_hw_set_mac_addr() 504 for (i = 0; i < hweight32(priv->nd->cpu_mask); i++) in xlr_config_pde() 530 struct xlr_fmn_info *gmac = priv->nd->gmac_fmn_info; in xlr_config_common() 533 int *bucket_size = priv->nd->bucket_size; in xlr_config_common() 578 cpu_mask = priv->nd->cpu_mask; in xlr_config_translate_table() 842 &xlr_gmac_link_adjust, priv->nd->phy_interface); in xlr_mii_probe() 917 priv->nd->phy_interface == PHY_INTERFACE_MODE_RGMII) in xlr_port_enable() 1037 priv->nd = (struct xlr_net_data *)pdev->dev.platform_data; in xlr_net_probe() [all …]
|
/drivers/nubus/ |
D | nubus.c | 165 static unsigned char *nubus_dirptr(const struct nubus_dirent *nd) in nubus_dirptr() argument 167 unsigned char *p = nd->base; in nubus_dirptr() 170 nubus_move(&p, nubus_expand32(nd->data), nd->mask); in nubus_dirptr() 256 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 259 if (nd->done) in nubus_readdir() 263 ent->base = nd->ptr; in nubus_readdir() 266 resid = nubus_get_rom(&nd->ptr, 4, nd->mask); in nubus_readdir() 272 nd->done = 1; in nubus_readdir() 280 ent->mask = nd->mask; in nubus_readdir()
|
/drivers/staging/lustre/lustre/llite/ |
D | symlink.c | 121 static void *ll_follow_link(struct dentry *dentry, struct nameidata *nd) in ll_follow_link() argument 147 nd_set_link(nd, symname); in ll_follow_link() 154 static void ll_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie) in ll_put_link() argument
|
/drivers/sbus/char/ |
D | openprom.c | 525 phandle nd; in opiocgetnext() local 529 if (copy_from_user(&nd, argp, sizeof(phandle))) in opiocgetnext() 532 if (nd == 0) { in opiocgetnext() 537 dp = of_find_node_by_phandle(nd); in opiocgetnext() 538 nd = 0; in opiocgetnext() 547 nd = dp->phandle; in opiocgetnext() 548 if (copy_to_user(argp, &nd, sizeof(phandle))) in opiocgetnext()
|
/drivers/infiniband/hw/mlx4/ |
D | cm.c | 418 struct rb_node *nd; in mlx4_ib_cm_paravirt_clean() local 450 nd = rb_first(sl_id_map); in mlx4_ib_cm_paravirt_clean() 451 while (nd) { in mlx4_ib_cm_paravirt_clean() 453 rb_entry(nd, struct id_map_entry, node); in mlx4_ib_cm_paravirt_clean() 454 nd = rb_next(nd); in mlx4_ib_cm_paravirt_clean()
|
/drivers/staging/lustre/lustre/include/linux/ |
D | lustre_compat25.h | 117 #define cfs_path_put(nd) path_put(&(nd)->path) argument
|
/drivers/clk/st/ |
D | clkgen-fsyn.c | 498 unsigned long nd = fs->ndiv + 16; /* ndiv value */ in clk_fs660c32_vco_get_rate() local 500 *rate = input * nd; in clk_fs660c32_vco_get_rate() 801 unsigned long nd = 8; /* ndiv stuck at 0 => val = 8 */ in clk_fs216c65_get_rate() local 811 *rate = div64_u64(P15 * nd * input * 32, res); in clk_fs216c65_get_rate() 820 unsigned long nd = 16; /* ndiv value; stuck at 0 (30Mhz input) */ in clk_fs432c65_get_rate() local 831 *rate = div64_u64(P15 * nd * input * 32, res); in clk_fs432c65_get_rate()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | wl_cfg80211.h | 446 static inline struct brcmf_cfg80211_profile *ndev_to_prof(struct net_device *nd) in ndev_to_prof() argument 448 struct brcmf_if *ifp = netdev_priv(nd); in ndev_to_prof()
|
/drivers/sfi/ |
D | Kconfig | 12 based on the 2nd generation Intel Atom processor platform,
|
/drivers/scsi/ |
D | aha1740.h | 117 nd:1, /* No Disconnect */ member
|
/drivers/mmc/host/ |
D | mmci.c | 649 struct mmci_host_next *nd = &host->next_data; in mmci_dma_prep_next() local 650 return __mmci_dma_prep_data(host, data, &nd->dma_chan, &nd->dma_desc); in mmci_dma_prep_next() 705 struct mmci_host_next *nd = &host->next_data; in mmci_pre_request() local 716 data->host_cookie = ++nd->cookie < 0 ? 1 : nd->cookie; in mmci_pre_request()
|
/drivers/firmware/efi/ |
D | Kconfig | 46 mapping the 2nd kernel, but can also be used for debugging purposes.
|
/drivers/net/ethernet/amd/ |
D | sunlance.c | 1411 struct device_node *nd; in sparc_lance_probe_one() local 1416 nd = of_find_node_by_path("/options"); in sparc_lance_probe_one() 1417 if (!nd) in sparc_lance_probe_one() 1420 prop = of_get_property(nd, "tpe-link-test?", NULL); in sparc_lance_probe_one()
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 1416 struct net_device *nd = adap->port[i].dev; in restart_tx_queues() local 1418 if (test_and_clear_bit(nd->if_port, &sge->stopped_tx_queues) && in restart_tx_queues() 1419 netif_running(nd)) { in restart_tx_queues() 1421 netif_wake_queue(nd); in restart_tx_queues()
|