| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_hipd.c | 41 static void sym_int_ma (struct sym_hcb *np); 43 static struct sym_ccb *sym_alloc_ccb(struct sym_hcb *np); 44 static struct sym_ccb *sym_ccb_from_dsa(struct sym_hcb *np, u32 dsa); 45 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln); 46 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp); 47 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp); 48 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp); 68 static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg) in sym_print_nego_msg() argument 70 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg() 120 static void sym_chip_reset (struct sym_hcb *np) in sym_chip_reset() argument [all …]
|
| H A D | sym_nvram.c | 37 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument 46 np->rv_scntl0 &= ~0x0a; in sym_nvram_setup_host() 47 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host() 49 np->verbose += 1; in sym_nvram_setup_host() 53 np->usrflags |= SYM_AVOID_BUS_RESET; in sym_nvram_setup_host() 56 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host() 61 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host() 63 np->minsync = nvram->data.parisc.factor; in sym_nvram_setup_host() 65 np->maxwide = nvram->data.parisc.width; in sym_nvram_setup_host() 67 case 0: np->scsi_mode = SMODE_SE; break; in sym_nvram_setup_host() [all …]
|
| H A D | sym_hipd.h | 75 #define sym_verbose (np->verbose) 184 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument 185 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument 186 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument 188 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument 189 #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) argument 190 #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) argument 192 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r)) argument 193 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r)) argument 194 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r)) argument [all …]
|
| H A D | sym_fw.c | 96 struct sym_hcb *np = sym_get_hcb(shost); in sym_fw1_patch() local 100 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch() 101 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch() 106 if (!(np->features & FE_LED0)) { in sym_fw1_patch() 126 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw1_patch() 127 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw1_patch() 128 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw1_patch() 140 struct sym_hcb *np = sym_data->ncb; in sym_fw2_patch() local 144 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_patch() 145 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_patch() [all …]
|
| H A D | sym_glue.c | 127 void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *cmd) in sym_xpt_done() argument 141 void sym_xpt_async_bus_reset(struct sym_hcb *np) in sym_xpt_async_bus_reset() argument 143 printf_notice("%s: SCSI BUS has been reset.\n", sym_name(np)); in sym_xpt_async_bus_reset() 144 np->s.settle_time = jiffies + sym_driver_setup.settle_delay * HZ; in sym_xpt_async_bus_reset() 145 np->s.settle_time_valid = 1; in sym_xpt_async_bus_reset() 148 sym_name(np), sym_driver_setup.settle_delay); in sym_xpt_async_bus_reset() 169 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) in sym_set_cam_result_error() argument 203 sym_clear_tasks(np, DID_ABORT, in sym_set_cam_result_error() 214 sym_reset_scsi_target(np, cmd->device->id); in sym_set_cam_result_error() 238 static int sym_scatter(struct sym_hcb *np, struct sym_ccb *cp, struct scsi_cmnd *cmd) in sym_scatter() argument [all …]
|
| /linux/drivers/net/ethernet/nvidia/ |
| H A D | forcedeth.c | 727 __this_cpu_inc(np->txrx_stats->member) 729 __this_cpu_add(np->txrx_stats->member, (count)) 961 static bool nv_optimized(struct fe_priv *np) in nv_optimized() argument 963 if (np->desc_ver == DESC_VER_1 || np->desc_ver == DESC_VER_2) in nv_optimized() 998 struct fe_priv *np = get_nvpriv(dev); in setup_hw_rings() local 1001 if (!nv_optimized(np)) { in setup_hw_rings() 1003 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings() 1005 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings() 1008 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings() 1009 writel(dma_high(np->ring_addr), base + NvRegRxRingPhysAddrHigh); in setup_hw_rings() [all …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | winbond-840.c | 322 static void free_rxtx_rings(struct netdev_private *np); 326 static void free_ringdesc(struct netdev_private *np); 353 struct netdev_private *np; in w840_probe1() local 373 dev = alloc_etherdev(sizeof(*np)); in w840_probe1() 393 np = netdev_priv(dev); in w840_probe1() 394 np->pci_dev = pdev; in w840_probe1() 395 np->chip_id = chip_idx; in w840_probe1() 396 np->drv_flags = pci_id_tbl[chip_idx].drv_flags; in w840_probe1() 397 spin_lock_init(&np->lock); in w840_probe1() 398 np->mii_if.dev = dev; in w840_probe1() [all …]
|
| /linux/drivers/net/ethernet/dlink/ |
| H A D | sundance.c | 448 struct netdev_private *np = netdev_priv(dev); in sundance_reset() local 449 void __iomem *ioaddr = np->base + ASICCtrl; in sundance_reset() 468 struct netdev_private *np = netdev_priv(dev); in sundance_poll_controller() local 470 disable_irq(np->pci_dev->irq); in sundance_poll_controller() 471 intr_handler(np->pci_dev->irq, dev); in sundance_poll_controller() 472 enable_irq(np->pci_dev->irq); in sundance_poll_controller() 496 struct netdev_private *np; in sundance_probe1() local 519 dev = alloc_etherdev(sizeof(*np)); in sundance_probe1() 536 np = netdev_priv(dev); in sundance_probe1() 537 np->ndev = dev; in sundance_probe1() [all …]
|
| H A D | dl2k.c | 52 static void dl2k_enable_int(struct netdev_private *np) in dl2k_enable_int() argument 54 void __iomem *ioaddr = np->ioaddr; in dl2k_enable_int() 113 struct netdev_private *np; in rio_probe1() local 134 dev = alloc_etherdev (sizeof (*np)); in rio_probe1() 139 np = netdev_priv(dev); in rio_probe1() 142 np->rmon_enable = true; in rio_probe1() 148 np->eeprom_addr = ioaddr; in rio_probe1() 150 if (np->rmon_enable) { in rio_probe1() 157 np->ioaddr = ioaddr; in rio_probe1() 158 np->chip_id = chip_idx; in rio_probe1() [all …]
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 91 #define nr64(reg) readq(np->regs + (reg)) 92 #define nw64(reg, val) writeq((val), np->regs + (reg)) 94 #define nr64_mac(reg) readq(np->mac_regs + (reg)) 95 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg)) 97 #define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg)) 98 #define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg)) 100 #define nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg)) 101 #define nw64_pcs(reg, val) writeq((val), np->regs + np->pcs_off + (reg)) 103 #define nr64_xpcs(reg) readq(np->regs + np->xpcs_off + (reg)) 104 #define nw64_xpcs(reg, val) writeq((val), np->regs + np->xpcs_off + (reg)) [all …]
|
| /linux/drivers/clk/at91/ |
| H A D | dt-compat.c | 30 static void __init of_sama5d2_clk_audio_pll_frac_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_frac_setup() argument 33 const char *name = np->name; in of_sama5d2_clk_audio_pll_frac_setup() 38 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_frac_setup() 44 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_frac_setup() 50 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_frac_setup() 56 static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_pad_setup() argument 59 const char *name = np->name; in of_sama5d2_clk_audio_pll_pad_setup() 64 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pad_setup() 70 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_pad_setup() 76 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_pad_setup() [all …]
|
| /linux/drivers/net/ethernet/adaptec/ |
| H A D | starfire.c | 584 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_add_vid() local 586 spin_lock(&np->lock); in netdev_vlan_rx_add_vid() 589 set_bit(vid, np->active_vlans); in netdev_vlan_rx_add_vid() 591 spin_unlock(&np->lock); in netdev_vlan_rx_add_vid() 599 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_kill_vid() local 601 spin_lock(&np->lock); in netdev_vlan_rx_kill_vid() 604 clear_bit(vid, np->active_vlans); in netdev_vlan_rx_kill_vid() 606 spin_unlock(&np->lock); in netdev_vlan_rx_kill_vid() 633 struct netdev_private *np; in starfire_init_one() local 652 dev = alloc_etherdev(sizeof(*np)); in starfire_init_one() [all …]
|
| /linux/drivers/memory/ |
| H A D | of_memory.c | 28 const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, in of_get_min_tck() argument 38 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck() 39 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck() 40 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck() 41 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin); in of_get_min_tck() 42 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD); in of_get_min_tck() 43 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR); in of_get_min_tck() 44 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP); in of_get_min_tck() 45 ret |= of_property_read_u32(np, "tRTP-min-tck", &min->tRTP); in of_get_min_tck() 46 ret |= of_property_read_u32(np, "tCKE-min-tck", &min->tCKE); in of_get_min_tck() [all …]
|
| /linux/drivers/net/ethernet/natsemi/ |
| H A D | natsemi.c | 672 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_show_dspcfg_workaround() local 674 return sprintf(buf, "%s\n", np->dspcfg_workaround ? "on" : "off"); in natsemi_show_dspcfg_workaround() 681 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_set_dspcfg_workaround() local 694 spin_lock_irqsave(&np->lock, flags); in natsemi_set_dspcfg_workaround() 696 np->dspcfg_workaround = new_setting; in natsemi_set_dspcfg_workaround() 698 spin_unlock_irqrestore(&np->lock, flags); in natsemi_set_dspcfg_workaround() 705 struct netdev_private *np = netdev_priv(dev); in ns_ioaddr() local 707 return np->ioaddr; in ns_ioaddr() 724 struct netdev_private *np = netdev_priv(dev); in move_int_phy() local 740 if (target == np->phy_addr_external) in move_int_phy() [all …]
|
| /linux/net/core/ |
| H A D | netpoll.c | 227 static void refill_skbs(struct netpoll *np) in refill_skbs() argument 232 skb_pool = &np->skb_pool; in refill_skbs() 271 static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve) in find_skb() argument 281 skb = skb_dequeue(&np->skb_pool); in find_skb() 282 schedule_work(&np->refill_wq); in find_skb() 287 netpoll_poll_dev(np->dev); in find_skb() 310 static netdev_tx_t __netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) in __netpoll_send_skb() argument 321 dev = np->dev; in __netpoll_send_skb() 351 netpoll_poll_dev(np->dev); in __netpoll_send_skb() 372 static void netpoll_udp_checksum(struct netpoll *np, struct sk_buff *skb, in netpoll_udp_checksum() argument [all …]
|
| /linux/drivers/scsi/ |
| H A D | ncr53c8xx.c | 506 #define _m_calloc_dma(np, s, n) __m_calloc_dma(np->dev, s, n) argument 507 #define _m_free_dma(np, p, s, n) __m_free_dma(np->dev, p, s, n) argument 508 #define m_calloc_dma(s, n) _m_calloc_dma(np, s, n) 509 #define m_free_dma(p, s, n) _m_free_dma(np, p, s, n) 510 #define _vtobus(np, p) __vtobus(np->dev, p) argument 511 #define vtobus(p) _vtobus(np, p) 544 #define unmap_scsi_data(np, cmd) __unmap_scsi_data(np->dev, cmd) argument 545 #define map_scsi_sg_data(np, cmd) __map_scsi_sg_data(np->dev, cmd) argument 568 #define bootverbose (np->verbose) 1006 #define bootverbose (np->verbose) [all …]
|
| /linux/drivers/of/ |
| H A D | unittest.c | 82 struct device_node *np; in of_unittest_find_node_by_name() local 85 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name() 86 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name() 87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name() 89 of_node_put(np); in of_unittest_find_node_by_name() 93 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name() 94 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name() 96 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name() 97 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name() 98 unittest(np && name && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name() [all …]
|
| H A D | kobj.c | 63 int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs() argument 73 if (!of_kset || !of_node_is_attached(np)) in __of_add_property_sysfs() 77 pp->attr.attr.name = safe_name(&np->kobj, pp->name); in __of_add_property_sysfs() 82 rc = sysfs_create_bin_file(&np->kobj, &pp->attr); in __of_add_property_sysfs() 83 WARN(rc, "error adding attribute %s to node %pOF\n", pp->name, np); in __of_add_property_sysfs() 87 void __of_sysfs_remove_bin_file(struct device_node *np, const struct property *prop) in __of_sysfs_remove_bin_file() argument 92 sysfs_remove_bin_file(&np->kobj, &prop->attr); in __of_sysfs_remove_bin_file() 96 void __of_remove_property_sysfs(struct device_node *np, const struct property *prop) in __of_remove_property_sysfs() argument 99 if (of_kset && of_node_is_attached(np)) in __of_remove_property_sysfs() 100 __of_sysfs_remove_bin_file(np, prop); in __of_remove_property_sysfs() [all …]
|
| H A D | dynamic.c | 185 int of_property_notify(int action, struct device_node *np, in of_property_notify() argument 191 if (!of_node_is_attached(np)) in of_property_notify() 194 pr.dn = np; in of_property_notify() 200 static void __of_attach_node(struct device_node *np) in __of_attach_node() argument 208 if (!of_node_check_flag(np, OF_OVERLAY)) { in __of_attach_node() 209 np->name = __of_get_property(np, "name", NULL); in __of_attach_node() 210 if (!np->name) in __of_attach_node() 211 np->name = "<NULL>"; in __of_attach_node() 213 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node() 215 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node() [all …]
|
| H A D | of_numa.c | 25 struct device_node *np; in of_numa_parse_cpu_nodes() local 27 for_each_of_cpu_node(np) { in of_numa_parse_cpu_nodes() 28 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes() 42 struct device_node *np = NULL; in of_numa_parse_memory_nodes() local 47 for_each_node_by_type(np, "memory") { in of_numa_parse_memory_nodes() 48 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes() 62 for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) { in of_numa_parse_memory_nodes() 69 of_node_put(np); in of_numa_parse_memory_nodes() 130 struct device_node *np; in of_numa_parse_distance_map() local 132 np = of_find_compatible_node(NULL, NULL, in of_numa_parse_distance_map() [all …]
|
| /linux/drivers/video/ |
| H A D | of_display_timing.c | 25 static int parse_timing_property(const struct device_node *np, const char *name, in parse_timing_property() argument 31 prop = of_find_property(np, name, &length); in parse_timing_property() 33 pr_err("%pOF: could not find property %s\n", np, name); in parse_timing_property() 39 ret = of_property_read_u32(np, name, &result->typ); in parse_timing_property() 43 ret = of_property_read_u32_array(np, name, &result->min, cells); in parse_timing_property() 45 pr_err("%pOF: illegal timing specification in %s\n", np, name); in parse_timing_property() 57 static int of_parse_display_timing(const struct device_node *np, in of_parse_display_timing() argument 65 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing() 66 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing() 67 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing() [all …]
|
| /linux/include/linux/ |
| H A D | of.h | 72 struct device_node *np; member 258 extern bool of_node_name_eq(const struct device_node *np, const char *name); 259 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix); 261 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument 263 return np ? np->full_name : "<no-node>"; in of_node_full_name() 313 extern struct property *of_find_property(const struct device_node *np, 316 extern bool of_property_read_bool(const struct device_node *np, const char *propname); 317 extern int of_property_count_elems_of_size(const struct device_node *np, 319 extern int of_property_read_u8_index(const struct device_node *np, 322 extern int of_property_read_u16_index(const struct device_node *np, [all …]
|
| H A D | of_mdio.h | 17 int __of_mdiobus_register(struct mii_bus *mdio, struct device_node *np, 21 struct device_node *np) in of_mdiobus_register() argument 23 return __of_mdiobus_register(mdio, np, THIS_MODULE); in of_mdiobus_register() 27 struct device_node *np, struct module *owner); 31 struct device_node *np) in devm_of_mdiobus_register() argument 33 return __devm_of_mdiobus_register(dev, mdio, np, THIS_MODULE); in devm_of_mdiobus_register() 36 struct mdio_device *of_mdio_find_device(struct device_node *np); 43 of_phy_get_and_connect(struct net_device *dev, struct device_node *np, 47 int of_phy_register_fixed_link(struct device_node *np); 48 void of_phy_deregister_fixed_link(struct device_node *np); [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | legacy_serial.c | 33 struct device_node *np; member 76 static int __init add_legacy_port(struct device_node *np, int want_index, in add_legacy_port() argument 89 clk = of_get_property(np, "clock-frequency", NULL); in add_legacy_port() 94 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port() 97 rs = of_get_property(np, "reg-shift", NULL); in add_legacy_port() 120 if (legacy_info->np != NULL) { in add_legacy_port() 146 legacy_info->np = of_node_get(np); in add_legacy_port() 156 printk(KERN_DEBUG "Found legacy serial port %d for %pOF\n", index, np); in add_legacy_port() 164 static int __init add_legacy_soc_port(struct device_node *np, in add_legacy_soc_port() argument 169 struct device_node *tsi = of_get_parent(np); in add_legacy_soc_port() [all …]
|
| /linux/drivers/thermal/ |
| H A D | thermal_of.c | 44 static int thermal_of_get_trip_type(struct device_node *np, in thermal_of_get_trip_type() argument 50 err = of_property_read_string(np, "type", &t); in thermal_of_get_trip_type() 63 static int thermal_of_populate_trip(struct device_node *np, in thermal_of_populate_trip() argument 69 ret = of_property_read_u32(np, "temperature", &prop); in thermal_of_populate_trip() 76 ret = of_property_read_u32(np, "hysteresis", &prop); in thermal_of_populate_trip() 83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip() 91 trip->priv = np; in thermal_of_populate_trip() 96 static struct thermal_trip *thermal_of_trips_init(struct device_node *np, int *ntrips) in thermal_of_trips_init() argument 102 struct device_node *trips __free(device_node) = of_get_child_by_name(np, "trips"); in thermal_of_trips_init() 130 struct device_node *np __free(device_node) = of_find_node_by_name(NULL, "thermal-zones"); in of_thermal_zone_find() [all …]
|