Home
last modified time | relevance | path

Searched refs:np (Results 1 – 25 of 1200) sorted by relevance

12345678910>>...48

/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c54 static void sym_int_ma (struct sym_hcb *np);
56 static struct sym_ccb *sym_alloc_ccb(struct sym_hcb *np);
57 static struct sym_ccb *sym_ccb_from_dsa(struct sym_hcb *np, u32 dsa);
58 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln);
59 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp);
60 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp);
61 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp);
81 static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg) in sym_print_nego_msg() argument
83 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg()
133 static void sym_chip_reset (struct sym_hcb *np) in sym_chip_reset() argument
[all …]
Dsym_nvram.c50 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument
59 np->rv_scntl0 &= ~0x0a; in sym_nvram_setup_host()
60 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host()
62 np->verbose += 1; in sym_nvram_setup_host()
66 np->usrflags |= SYM_AVOID_BUS_RESET; in sym_nvram_setup_host()
69 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host()
74 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host()
76 np->minsync = nvram->data.parisc.factor; in sym_nvram_setup_host()
78 np->maxwide = nvram->data.parisc.width; in sym_nvram_setup_host()
80 case 0: np->scsi_mode = SMODE_SE; break; in sym_nvram_setup_host()
[all …]
Dsym_hipd.h88 #define sym_verbose (np->verbose)
197 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument
198 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument
199 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument
201 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument
202 #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) argument
203 #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) argument
205 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r)) argument
206 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r)) argument
207 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r)) argument
[all …]
Dsym_fw.c109 struct sym_hcb *np = sym_get_hcb(shost); in sym_fw1_patch() local
113 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch()
114 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch()
119 if (!(np->features & FE_LED0)) { in sym_fw1_patch()
139 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw1_patch()
140 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw1_patch()
141 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw1_patch()
153 struct sym_hcb *np = sym_data->ncb; in sym_fw2_patch() local
157 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_patch()
158 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_patch()
[all …]
Dsym_glue.c140 void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *cmd) in sym_xpt_done() argument
155 void sym_xpt_async_bus_reset(struct sym_hcb *np) in sym_xpt_async_bus_reset() argument
157 printf_notice("%s: SCSI BUS has been reset.\n", sym_name(np)); in sym_xpt_async_bus_reset()
158 np->s.settle_time = jiffies + sym_driver_setup.settle_delay * HZ; in sym_xpt_async_bus_reset()
159 np->s.settle_time_valid = 1; in sym_xpt_async_bus_reset()
162 sym_name(np), sym_driver_setup.settle_delay); in sym_xpt_async_bus_reset()
187 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) in sym_set_cam_result_error() argument
223 sym_clear_tasks(np, DID_ABORT, in sym_set_cam_result_error()
234 sym_reset_scsi_target(np, cmd->device->id); in sym_set_cam_result_error()
258 static int sym_scatter(struct sym_hcb *np, struct sym_ccb *cp, struct scsi_cmnd *cmd) in sym_scatter() argument
[all …]
/drivers/net/ethernet/nvidia/
Dforcedeth.c964 static bool nv_optimized(struct fe_priv *np) in nv_optimized() argument
966 if (np->desc_ver == DESC_VER_1 || np->desc_ver == DESC_VER_2) in nv_optimized()
1001 struct fe_priv *np = get_nvpriv(dev); in setup_hw_rings() local
1004 if (!nv_optimized(np)) { in setup_hw_rings()
1006 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings()
1008 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings()
1011 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings()
1012 writel(dma_high(np->ring_addr), base + NvRegRxRingPhysAddrHigh); in setup_hw_rings()
1015 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingPh… in setup_hw_rings()
1016 …writel(dma_high(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingP… in setup_hw_rings()
[all …]
/drivers/net/ethernet/
Dfealnx.c483 struct netdev_private *np; in fealnx_init_one() local
549 np = netdev_priv(dev); in fealnx_init_one()
550 np->mem = ioaddr; in fealnx_init_one()
551 spin_lock_init(&np->lock); in fealnx_init_one()
552 np->pci_dev = pdev; in fealnx_init_one()
553 np->flags = skel_netdrv_tbl[chip_id].flags; in fealnx_init_one()
555 np->mii.dev = dev; in fealnx_init_one()
556 np->mii.mdio_read = mdio_read; in fealnx_init_one()
557 np->mii.mdio_write = mdio_write; in fealnx_init_one()
558 np->mii.phy_id_mask = 0x1f; in fealnx_init_one()
[all …]
/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c332 static void free_rxtx_rings(struct netdev_private *np);
336 static void free_ringdesc(struct netdev_private *np);
364 struct netdev_private *np; in w840_probe1() local
383 dev = alloc_etherdev(sizeof(*np)); in w840_probe1()
402 np = netdev_priv(dev); in w840_probe1()
403 np->pci_dev = pdev; in w840_probe1()
404 np->chip_id = chip_idx; in w840_probe1()
405 np->drv_flags = pci_id_tbl[chip_idx].drv_flags; in w840_probe1()
406 spin_lock_init(&np->lock); in w840_probe1()
407 np->mii_if.dev = dev; in w840_probe1()
[all …]
/drivers/net/ethernet/dlink/
Dsundance.c455 struct netdev_private *np = netdev_priv(dev); in sundance_reset() local
456 void __iomem *ioaddr = np->base + ASICCtrl; in sundance_reset()
475 struct netdev_private *np = netdev_priv(dev); in sundance_poll_controller() local
477 disable_irq(np->pci_dev->irq); in sundance_poll_controller()
478 intr_handler(np->pci_dev->irq, dev); in sundance_poll_controller()
479 enable_irq(np->pci_dev->irq); in sundance_poll_controller()
503 struct netdev_private *np; in sundance_probe1() local
532 dev = alloc_etherdev(sizeof(*np)); in sundance_probe1()
548 np = netdev_priv(dev); in sundance_probe1()
549 np->base = ioaddr; in sundance_probe1()
[all …]
Ddl2k.c60 static void dl2k_enable_int(struct netdev_private *np) in dl2k_enable_int() argument
62 void __iomem *ioaddr = np->ioaddr; in dl2k_enable_int()
116 struct netdev_private *np; in rio_probe1() local
141 dev = alloc_etherdev (sizeof (*np)); in rio_probe1()
146 np = netdev_priv(dev); in rio_probe1()
152 np->eeprom_addr = ioaddr; in rio_probe1()
160 np->ioaddr = ioaddr; in rio_probe1()
161 np->chip_id = chip_idx; in rio_probe1()
162 np->pdev = pdev; in rio_probe1()
163 spin_lock_init (&np->tx_lock); in rio_probe1()
[all …]
/drivers/char/hw_random/
Dn2-drv.c146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
148 unsigned long ra = __pa(&np->scratch_control[0]); in n2rng_control_settle_v2()
153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
161 if (np->hvapi_major == 1) { in n2rng_write_ctl_one()
168 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
200 static unsigned long n2rng_read_diag_data_one(struct n2rng *np, in n2rng_read_diag_data_one() argument
208 if (np->hvapi_major == 1) { in n2rng_read_diag_data_one()
219 static int n2rng_generic_read_diag_data(struct n2rng *np, in n2rng_generic_read_diag_data() argument
228 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data()
248 static int n2rng_generic_write_control(struct n2rng *np, in n2rng_generic_write_control() argument
[all …]
/drivers/net/ethernet/sun/
Dniu.c71 #define nr64(reg) readq(np->regs + (reg))
72 #define nw64(reg, val) writeq((val), np->regs + (reg))
74 #define nr64_mac(reg) readq(np->mac_regs + (reg))
75 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg))
77 #define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg))
78 #define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg))
80 #define nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg))
81 #define nw64_pcs(reg, val) writeq((val), np->regs + np->pcs_off + (reg))
83 #define nr64_xpcs(reg) readq(np->regs + np->xpcs_off + (reg))
84 #define nw64_xpcs(reg, val) writeq((val), np->regs + np->xpcs_off + (reg))
[all …]
/drivers/isdn/capi/
Dcapilib.c31 static inline void mq_init(struct capilib_ncci *np) in mq_init() argument
34 np->msgidqueue = NULL; in mq_init()
35 np->msgidlast = NULL; in mq_init()
36 np->nmsg = 0; in mq_init()
37 memset(np->msgidpool, 0, sizeof(np->msgidpool)); in mq_init()
38 np->msgidfree = &np->msgidpool[0]; in mq_init()
39 for (i = 1; i < np->winsize; i++) { in mq_init()
40 np->msgidpool[i].next = np->msgidfree; in mq_init()
41 np->msgidfree = &np->msgidpool[i]; in mq_init()
45 static inline int mq_enqueue(struct capilib_ncci *np, u16 msgid) in mq_enqueue() argument
[all …]
/drivers/net/ethernet/adaptec/
Dstarfire.c600 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_add_vid() local
602 spin_lock(&np->lock); in netdev_vlan_rx_add_vid()
605 set_bit(vid, np->active_vlans); in netdev_vlan_rx_add_vid()
607 spin_unlock(&np->lock); in netdev_vlan_rx_add_vid()
615 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_kill_vid() local
617 spin_lock(&np->lock); in netdev_vlan_rx_kill_vid()
620 clear_bit(vid, np->active_vlans); in netdev_vlan_rx_kill_vid()
622 spin_unlock(&np->lock); in netdev_vlan_rx_kill_vid()
650 struct netdev_private *np; in starfire_init_one() local
675 dev = alloc_etherdev(sizeof(*np)); in starfire_init_one()
[all …]
/drivers/net/ethernet/natsemi/
Dnatsemi.c670 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_show_dspcfg_workaround() local
672 return sprintf(buf, "%s\n", np->dspcfg_workaround ? "on" : "off"); in natsemi_show_dspcfg_workaround()
679 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_set_dspcfg_workaround() local
692 spin_lock_irqsave(&np->lock, flags); in natsemi_set_dspcfg_workaround()
694 np->dspcfg_workaround = new_setting; in natsemi_set_dspcfg_workaround()
696 spin_unlock_irqrestore(&np->lock, flags); in natsemi_set_dspcfg_workaround()
703 struct netdev_private *np = netdev_priv(dev); in ns_ioaddr() local
705 return np->ioaddr; in ns_ioaddr()
722 struct netdev_private *np = netdev_priv(dev); in move_int_phy() local
738 if (target == np->phy_addr_external) in move_int_phy()
[all …]
/drivers/scsi/
Dncr53c8xx.c513 #define _m_calloc_dma(np, s, n) __m_calloc_dma(np->dev, s, n) argument
514 #define _m_free_dma(np, p, s, n) __m_free_dma(np->dev, p, s, n) argument
515 #define m_calloc_dma(s, n) _m_calloc_dma(np, s, n)
516 #define m_free_dma(p, s, n) _m_free_dma(np, p, s, n)
517 #define _vtobus(np, p) __vtobus(np->dev, p) argument
518 #define vtobus(p) _vtobus(np, p)
552 #define unmap_scsi_data(np, cmd) __unmap_scsi_data(np->dev, cmd) argument
553 #define map_scsi_sg_data(np, cmd) __map_scsi_sg_data(np->dev, cmd) argument
576 #define bootverbose (np->verbose)
1016 #define bootverbose (np->verbose)
[all …]
/drivers/of/
Dunittest.c48 struct device_node *np; in of_unittest_find_node_by_name() local
51 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
52 unittest(np && !strcmp("/testcase-data", np->full_name), in of_unittest_find_node_by_name()
54 of_node_put(np); in of_unittest_find_node_by_name()
57 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
58 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
60 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
61 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", np->full_name), in of_unittest_find_node_by_name()
63 of_node_put(np); in of_unittest_find_node_by_name()
65 np = of_find_node_by_path("testcase-alias"); in of_unittest_find_node_by_name()
[all …]
Dbase.c60 int of_n_addr_cells(struct device_node *np) in of_n_addr_cells() argument
65 if (np->parent) in of_n_addr_cells()
66 np = np->parent; in of_n_addr_cells()
67 ip = of_get_property(np, "#address-cells", NULL); in of_n_addr_cells()
70 } while (np->parent); in of_n_addr_cells()
76 int of_n_size_cells(struct device_node *np) in of_n_size_cells() argument
81 if (np->parent) in of_n_size_cells()
82 np = np->parent; in of_n_size_cells()
83 ip = of_get_property(np, "#size-cells", NULL); in of_n_size_cells()
86 } while (np->parent); in of_n_size_cells()
[all …]
Ddynamic.c46 void __of_detach_node_sysfs(struct device_node *np) in __of_detach_node_sysfs() argument
53 BUG_ON(!of_node_is_initialized(np)); in __of_detach_node_sysfs()
58 if (of_node_is_attached(np)) { in __of_detach_node_sysfs()
59 for_each_property_of_node(np, pp) in __of_detach_node_sysfs()
60 __of_sysfs_remove_bin_file(np, pp); in __of_detach_node_sysfs()
61 kobject_del(&np->kobj); in __of_detach_node_sysfs()
65 of_node_put(np); in __of_detach_node_sysfs()
204 int of_property_notify(int action, struct device_node *np, in of_property_notify() argument
210 if (!of_node_is_attached(np)) in of_property_notify()
213 pr.dn = np; in of_property_notify()
[all …]
Dof_numa.c39 struct device_node *np = NULL; in of_numa_parse_cpu_nodes() local
45 for_each_child_of_node(cpus, np) { in of_numa_parse_cpu_nodes()
47 if (of_node_cmp(np->type, "cpu") != 0) in of_numa_parse_cpu_nodes()
50 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes()
66 struct device_node *np = NULL; in of_numa_parse_memory_nodes() local
71 for_each_node_by_type(np, "memory") { in of_numa_parse_memory_nodes()
72 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes()
86 for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) in of_numa_parse_memory_nodes()
90 of_node_put(np); in of_numa_parse_memory_nodes()
144 struct device_node *np; in of_numa_parse_distance_map() local
[all …]
/drivers/misc/cxl/
Dof.c20 static const __be32 *read_prop_string(const struct device_node *np, in read_prop_string() argument
25 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
31 static const __be32 *read_prop_dword(const struct device_node *np, in read_prop_dword() argument
36 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
44 static const __be64 *read_prop64_dword(const struct device_node *np, in read_prop64_dword() argument
49 prop = of_get_property(np, prop_name, NULL); in read_prop64_dword()
58 static int read_handle(struct device_node *np, u64 *handle) in read_handle() argument
64 prop = of_get_address(np, 0, &size, NULL); in read_handle()
69 *handle = of_read_number(prop, of_n_addr_cells(np)); in read_handle()
73 static int read_phys_addr(struct device_node *np, char *prop_name, in read_phys_addr() argument
[all …]
/drivers/video/
Dof_display_timing.c26 static int parse_timing_property(const struct device_node *np, const char *name, in parse_timing_property() argument
32 prop = of_find_property(np, name, &length); in parse_timing_property()
35 of_node_full_name(np), name); in parse_timing_property()
41 ret = of_property_read_u32(np, name, &result->typ); in parse_timing_property()
45 ret = of_property_read_u32_array(np, name, &result->min, cells); in parse_timing_property()
48 of_node_full_name(np), name); in parse_timing_property()
59 static int of_parse_display_timing(const struct device_node *np, in of_parse_display_timing() argument
67 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing()
68 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing()
69 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_platform.c108 struct device_node *np; in stmmac_axi_setup() local
111 np = of_parse_phandle(pdev->dev.of_node, "snps,axi-config", 0); in stmmac_axi_setup()
112 if (!np) in stmmac_axi_setup()
117 of_node_put(np); in stmmac_axi_setup()
121 axi->axi_lpi_en = of_property_read_bool(np, "snps,lpi_en"); in stmmac_axi_setup()
122 axi->axi_xit_frm = of_property_read_bool(np, "snps,xit_frm"); in stmmac_axi_setup()
123 axi->axi_kbbe = of_property_read_bool(np, "snps,axi_kbbe"); in stmmac_axi_setup()
124 axi->axi_axi_all = of_property_read_bool(np, "snps,axi_all"); in stmmac_axi_setup()
125 axi->axi_fb = of_property_read_bool(np, "snps,axi_fb"); in stmmac_axi_setup()
126 axi->axi_mb = of_property_read_bool(np, "snps,axi_mb"); in stmmac_axi_setup()
[all …]
/drivers/memory/
Dof_memory.c31 const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, in of_get_min_tck() argument
41 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck()
42 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck()
43 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck()
44 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin); in of_get_min_tck()
45 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD); in of_get_min_tck()
46 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR); in of_get_min_tck()
47 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP); in of_get_min_tck()
48 ret |= of_property_read_u32(np, "tRTP-min-tck", &min->tRTP); in of_get_min_tck()
49 ret |= of_property_read_u32(np, "tCKE-min-tck", &min->tCKE); in of_get_min_tck()
[all …]
/drivers/phy/tegra/
Dxusb.c46 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate()
81 struct device_node *np = of_node_get(padctl->dev->of_node); in tegra_xusb_find_pad_node() local
83 np = of_find_node_by_name(np, "pads"); in tegra_xusb_find_pad_node()
84 if (np) in tegra_xusb_find_pad_node()
85 np = of_find_node_by_name(np, name); in tegra_xusb_find_pad_node()
87 return np; in tegra_xusb_find_pad_node()
96 struct device_node *np = of_node_get(pad->dev.of_node); in tegra_xusb_pad_find_phy_node() local
98 np = of_find_node_by_name(np, "lanes"); in tegra_xusb_pad_find_phy_node()
99 if (!np) in tegra_xusb_pad_find_phy_node()
102 return of_find_node_by_name(np, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node()
[all …]

12345678910>>...48