Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 79) sorted by relevance

1234

/linux-4.19.296/drivers/ntb/test/
Dntb_pingpong.c116 static int pp_find_next_peer(struct pp_ctx *pp) in pp_find_next_peer() argument
121 link = ntb_link_is_up(pp->ntb, NULL, NULL); in pp_find_next_peer()
124 if (link & pp->nmask) in pp_find_next_peer()
125 pidx = __ffs64(link & pp->nmask); in pp_find_next_peer()
126 else if (link & pp->pmask) in pp_find_next_peer()
127 pidx = __ffs64(link & pp->pmask); in pp_find_next_peer()
131 out_db = BIT_ULL(ntb_peer_port_number(pp->ntb, pidx)); in pp_find_next_peer()
133 spin_lock(&pp->lock); in pp_find_next_peer()
134 pp->out_pidx = pidx; in pp_find_next_peer()
135 pp->out_db = out_db; in pp_find_next_peer()
[all …]
/linux-4.19.296/drivers/pci/controller/dwc/
Dpcie-designware-host.c23 static int dw_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, in dw_pcie_rd_own_conf() argument
28 if (pp->ops->rd_own_conf) in dw_pcie_rd_own_conf()
29 return pp->ops->rd_own_conf(pp, where, size, val); in dw_pcie_rd_own_conf()
31 pci = to_dw_pcie_from_pp(pp); in dw_pcie_rd_own_conf()
35 static int dw_pcie_wr_own_conf(struct pcie_port *pp, int where, int size, in dw_pcie_wr_own_conf() argument
40 if (pp->ops->wr_own_conf) in dw_pcie_wr_own_conf()
41 return pp->ops->wr_own_conf(pp, where, size, val); in dw_pcie_wr_own_conf()
43 pci = to_dw_pcie_from_pp(pp); in dw_pcie_wr_own_conf()
78 irqreturn_t dw_handle_msi_irq(struct pcie_port *pp) in dw_handle_msi_irq() argument
85 num_ctrls = pp->num_vectors / MAX_MSI_IRQS_PER_CTRL; in dw_handle_msi_irq()
[all …]
Dpci-keystone-dw.c80 phys_addr_t ks_dw_pcie_get_msi_addr(struct pcie_port *pp) in ks_dw_pcie_get_msi_addr() argument
82 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_get_msi_addr()
101 struct pcie_port *pp = &pci->pp; in ks_dw_pcie_handle_msi_irq() local
115 virq = irq_linear_revmap(pp->irq_domain, vector); in ks_dw_pcie_handle_msi_irq()
123 void ks_dw_pcie_msi_irq_ack(int irq, struct pcie_port *pp) in ks_dw_pcie_msi_irq_ack() argument
129 pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_msi_irq_ack()
138 void ks_dw_pcie_msi_set_irq(struct pcie_port *pp, int irq) in ks_dw_pcie_msi_set_irq() argument
141 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_msi_set_irq()
149 void ks_dw_pcie_msi_clear_irq(struct pcie_port *pp, int irq) in ks_dw_pcie_msi_clear_irq() argument
152 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ks_dw_pcie_msi_clear_irq()
[all …]
Dpcie-histb.c77 static void histb_pcie_dbi_w_mode(struct pcie_port *pp, bool enable) in histb_pcie_dbi_w_mode() argument
79 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_dbi_w_mode()
91 static void histb_pcie_dbi_r_mode(struct pcie_port *pp, bool enable) in histb_pcie_dbi_r_mode() argument
93 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_dbi_r_mode()
110 histb_pcie_dbi_r_mode(&pci->pp, true); in histb_pcie_read_dbi()
112 histb_pcie_dbi_r_mode(&pci->pp, false); in histb_pcie_read_dbi()
120 histb_pcie_dbi_w_mode(&pci->pp, true); in histb_pcie_write_dbi()
122 histb_pcie_dbi_w_mode(&pci->pp, false); in histb_pcie_write_dbi()
125 static int histb_pcie_rd_own_conf(struct pcie_port *pp, int where, in histb_pcie_rd_own_conf() argument
128 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_rd_own_conf()
[all …]
Dpcie-designware.h126 int (*rd_own_conf)(struct pcie_port *pp, int where, int size, u32 *val);
127 int (*wr_own_conf)(struct pcie_port *pp, int where, int size, u32 val);
128 int (*rd_other_conf)(struct pcie_port *pp, struct pci_bus *bus,
130 int (*wr_other_conf)(struct pcie_port *pp, struct pci_bus *bus,
132 int (*host_init)(struct pcie_port *pp);
133 void (*msi_set_irq)(struct pcie_port *pp, int irq);
134 void (*msi_clear_irq)(struct pcie_port *pp, int irq);
135 phys_addr_t (*get_msi_addr)(struct pcie_port *pp);
136 u32 (*get_msi_data)(struct pcie_port *pp, int pos);
137 void (*scan_bus)(struct pcie_port *pp);
[all …]
Dpcie-spear13xx.c75 struct pcie_port *pp = &pci->pp; in spear13xx_pcie_establish_link() local
85 dw_pcie_setup_rc(pp); in spear13xx_pcie_establish_link()
137 struct pcie_port *pp = &pci->pp; in spear13xx_pcie_irq_handler() local
144 dw_handle_msi_irq(pp); in spear13xx_pcie_irq_handler()
155 struct pcie_port *pp = &pci->pp; in spear13xx_pcie_enable_interrupts() local
160 dw_pcie_msi_init(pp); in spear13xx_pcie_enable_interrupts()
177 static int spear13xx_pcie_host_init(struct pcie_port *pp) in spear13xx_pcie_host_init() argument
179 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in spear13xx_pcie_host_init()
196 struct pcie_port *pp = &pci->pp; in spear13xx_add_pcie_port() local
200 pp->irq = platform_get_irq(pdev, 0); in spear13xx_add_pcie_port()
[all …]
Dpcie-designware-plat.c38 static int dw_plat_pcie_host_init(struct pcie_port *pp) in dw_plat_pcie_host_init() argument
40 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_plat_pcie_host_init()
42 dw_pcie_setup_rc(pp); in dw_plat_pcie_host_init()
46 dw_pcie_msi_init(pp); in dw_plat_pcie_host_init()
51 static void dw_plat_set_num_vectors(struct pcie_port *pp) in dw_plat_set_num_vectors() argument
53 pp->num_vectors = MAX_MSI_IRQS; in dw_plat_set_num_vectors()
112 struct pcie_port *pp = &pci->pp; in dw_plat_add_pcie_port() local
116 pp->irq = platform_get_irq(pdev, 1); in dw_plat_add_pcie_port()
117 if (pp->irq < 0) in dw_plat_add_pcie_port()
118 return pp->irq; in dw_plat_add_pcie_port()
[all …]
Dpci-keystone.h37 phys_addr_t ks_dw_pcie_get_msi_addr(struct pcie_port *pp);
46 int ks_dw_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus,
48 int ks_dw_pcie_rd_other_conf(struct pcie_port *pp, struct pci_bus *bus,
52 void ks_dw_pcie_msi_irq_ack(int i, struct pcie_port *pp);
53 void ks_dw_pcie_msi_set_irq(struct pcie_port *pp, int irq);
54 void ks_dw_pcie_msi_clear_irq(struct pcie_port *pp, int irq);
55 void ks_dw_pcie_v3_65_scan_bus(struct pcie_port *pp);
56 int ks_dw_pcie_msi_host_init(struct pcie_port *pp);
Dpci-exynos.c237 struct pcie_port *pp = &pci->pp; in exynos_pcie_establish_link() local
256 dw_pcie_setup_rc(pp); in exynos_pcie_establish_link()
300 struct pcie_port *pp = &pci->pp; in exynos_pcie_msi_init() local
303 dw_pcie_msi_init(pp); in exynos_pcie_msi_init()
341 static int exynos_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, in exynos_pcie_rd_own_conf() argument
344 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in exynos_pcie_rd_own_conf()
354 static int exynos_pcie_wr_own_conf(struct pcie_port *pp, int where, int size, in exynos_pcie_wr_own_conf() argument
357 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in exynos_pcie_wr_own_conf()
379 static int exynos_pcie_host_init(struct pcie_port *pp) in exynos_pcie_host_init() argument
381 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in exynos_pcie_host_init()
[all …]
Dpcie-armada8k.c135 static int armada8k_pcie_host_init(struct pcie_port *pp) in armada8k_pcie_host_init() argument
137 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in armada8k_pcie_host_init()
140 dw_pcie_setup_rc(pp); in armada8k_pcie_host_init()
171 struct pcie_port *pp = &pci->pp; in armada8k_add_pcie_port() local
175 pp->ops = &armada8k_pcie_host_ops; in armada8k_add_pcie_port()
177 pp->irq = platform_get_irq(pdev, 0); in armada8k_add_pcie_port()
178 if (pp->irq < 0) { in armada8k_add_pcie_port()
180 return pp->irq; in armada8k_add_pcie_port()
183 ret = devm_request_irq(dev, pp->irq, armada8k_pcie_irq_handler, in armada8k_add_pcie_port()
186 dev_err(dev, "failed to request irq %d\n", pp->irq); in armada8k_add_pcie_port()
[all …]
Dpci-layerscape.c134 static int ls_pcie_host_init(struct pcie_port *pp) in ls_pcie_host_init() argument
136 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_host_init()
153 dw_pcie_setup_rc(pp); in ls_pcie_host_init()
158 static int ls1021_pcie_host_init(struct pcie_port *pp) in ls1021_pcie_host_init() argument
160 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls1021_pcie_host_init()
182 return ls_pcie_host_init(pp); in ls1021_pcie_host_init()
185 static int ls_pcie_msi_host_init(struct pcie_port *pp) in ls_pcie_msi_host_init() argument
187 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in ls_pcie_msi_host_init()
277 struct pcie_port *pp = &pci->pp; in ls_add_pcie_port() local
281 pp->ops = pcie->drvdata->ops; in ls_add_pcie_port()
[all …]
Dpcie-artpec6.c110 struct pcie_port *pp = &pci->pp; in artpec6_pcie_cpu_addr_fixup() local
115 return pci_addr - pp->cfg0_base; in artpec6_pcie_cpu_addr_fixup()
358 struct pcie_port *pp = &pci->pp; in artpec6_pcie_enable_interrupts() local
361 dw_pcie_msi_init(pp); in artpec6_pcie_enable_interrupts()
364 static int artpec6_pcie_host_init(struct pcie_port *pp) in artpec6_pcie_host_init() argument
366 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in artpec6_pcie_host_init()
374 dw_pcie_setup_rc(pp); in artpec6_pcie_host_init()
390 struct pcie_port *pp = &pci->pp; in artpec6_add_pcie_port() local
395 pp->msi_irq = platform_get_irq_byname(pdev, "msi"); in artpec6_add_pcie_port()
396 if (pp->msi_irq < 0) { in artpec6_add_pcie_port()
[all …]
/linux-4.19.296/drivers/char/
Dppdev.c112 static inline void pp_enable_irq(struct pp_struct *pp) in pp_enable_irq() argument
114 struct parport *port = pp->pdev->port; in pp_enable_irq()
123 struct pp_struct *pp = file->private_data; in pp_read() local
129 if (!(pp->flags & PP_CLAIMED)) { in pp_read()
142 pport = pp->pdev->port; in pp_read()
145 parport_set_timeout(pp->pdev, in pp_read()
148 pp->default_inactivity); in pp_read()
158 if (pp->flags & PP_W91284PIC) in pp_read()
160 if (pp->flags & PP_FASTREAD) in pp_read()
187 parport_set_timeout(pp->pdev, pp->default_inactivity); in pp_read()
[all …]
/linux-4.19.296/drivers/of/
Dkobj.c35 struct property *pp = container_of(bin_attr, struct property, attr); in of_node_property_read() local
36 return memory_read_from_buffer(buf, count, &offset, pp->value, pp->length); in of_node_property_read()
63 int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs() argument
68 bool secure = strncmp(pp->name, "security-", 9) == 0; in __of_add_property_sysfs()
76 sysfs_bin_attr_init(&pp->attr); in __of_add_property_sysfs()
77 pp->attr.attr.name = safe_name(&np->kobj, pp->name); in __of_add_property_sysfs()
78 pp->attr.attr.mode = secure ? 0400 : 0444; in __of_add_property_sysfs()
79 pp->attr.size = secure ? 0 : pp->length; in __of_add_property_sysfs()
80 pp->attr.read = of_node_property_read; in __of_add_property_sysfs()
82 rc = sysfs_create_bin_file(&np->kobj, &pp->attr); in __of_add_property_sysfs()
[all …]
Dof_net.c44 struct property *pp = of_find_property(np, name, NULL); in of_get_mac_addr() local
46 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) in of_get_mac_addr()
47 return pp->value; in of_get_mac_addr()
Dbase.c248 struct property *pp; in __of_find_property() local
253 for (pp = np->properties; pp; pp = pp->next) { in __of_find_property()
254 if (of_prop_cmp(pp->name, name) == 0) { in __of_find_property()
256 *lenp = pp->length; in __of_find_property()
261 return pp; in __of_find_property()
268 struct property *pp; in of_find_property() local
272 pp = __of_find_property(np, name, lenp); in of_find_property()
275 return pp; in of_find_property()
325 struct property *pp = __of_find_property(np, name, lenp); in __of_get_property() local
327 return pp ? pp->value : NULL; in __of_get_property()
[all …]
/linux-4.19.296/fs/jffs2/
Dcompr_rubin.c42 struct pushpull pp; member
47 static inline void init_pushpull(struct pushpull *pp, char *buf, in init_pushpull() argument
51 pp->buf = buf; in init_pushpull()
52 pp->buflen = buflen; in init_pushpull()
53 pp->ofs = ofs; in init_pushpull()
54 pp->reserve = reserve; in init_pushpull()
57 static inline int pushbit(struct pushpull *pp, int bit, int use_reserved) in pushbit() argument
59 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) in pushbit()
63 pp->buf[pp->ofs >> 3] |= (1<<(7-(pp->ofs & 7))); in pushbit()
65 pp->buf[pp->ofs >> 3] &= ~(1<<(7-(pp->ofs & 7))); in pushbit()
[all …]
/linux-4.19.296/fs/freevxfs/
Dvxfs_immed.c66 vxfs_immed_readpage(struct file *fp, struct page *pp) in vxfs_immed_readpage() argument
68 struct vxfs_inode_info *vip = VXFS_INO(pp->mapping->host); in vxfs_immed_readpage()
69 u_int64_t offset = (u_int64_t)pp->index << PAGE_SHIFT; in vxfs_immed_readpage()
72 kaddr = kmap(pp); in vxfs_immed_readpage()
74 kunmap(pp); in vxfs_immed_readpage()
76 flush_dcache_page(pp); in vxfs_immed_readpage()
77 SetPageUptodate(pp); in vxfs_immed_readpage()
78 unlock_page(pp); in vxfs_immed_readpage()
Dvxfs_subr.c50 vxfs_put_page(struct page *pp) in vxfs_put_page() argument
52 kunmap(pp); in vxfs_put_page()
53 put_page(pp); in vxfs_put_page()
70 struct page * pp; in vxfs_get_page() local
72 pp = read_mapping_page(mapping, n, NULL); in vxfs_get_page()
74 if (!IS_ERR(pp)) { in vxfs_get_page()
75 kmap(pp); in vxfs_get_page()
78 if (PageError(pp)) in vxfs_get_page()
82 return (pp); in vxfs_get_page()
85 vxfs_put_page(pp); in vxfs_get_page()
Dvxfs_lookup.c92 struct page *pp; in vxfs_find_entry() local
96 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry()
97 if (IS_ERR(pp)) in vxfs_find_entry()
99 kaddr = (char *)page_address(pp); in vxfs_find_entry()
129 *ppp = pp; in vxfs_find_entry()
135 vxfs_put_page(pp); in vxfs_find_entry()
159 struct page *pp; in vxfs_inode_by_name() local
162 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
165 kunmap(pp); in vxfs_inode_by_name()
166 put_page(pp); in vxfs_inode_by_name()
[all …]
/linux-4.19.296/drivers/clk/
Dclk-tango4.c52 struct clk **pp = clk_data.clks; in tango4_clkgen_setup() local
73 pp[0] = clk_register_divider(NULL, "cpu_clk", "pll0", 0, in tango4_clkgen_setup()
75 pp[1] = clk_register_fixed_factor(NULL, "sys_clk", "pll1", 0, 1, 4); in tango4_clkgen_setup()
76 pp[2] = clk_register_fixed_factor(NULL, "usb_clk", "cd2", 0, 1, 2); in tango4_clkgen_setup()
77 pp[3] = clk_register_fixed_factor(NULL, "sdio_clk", "cd6", 0, 1, 2); in tango4_clkgen_setup()
79 if (IS_ERR(pp[0]) || IS_ERR(pp[1]) || IS_ERR(pp[2]) || IS_ERR(pp[3])) in tango4_clkgen_setup()
/linux-4.19.296/drivers/gpio/
Dgpio-dwapb.c390 struct dwapb_port_property *pp) in dwapb_configure_irqs() argument
393 struct fwnode_handle *fwnode = pp->fwnode; in dwapb_configure_irqs()
447 if (!pp->irq_shared) { in dwapb_configure_irqs()
450 for (i = 0; i < pp->ngpio; i++) { in dwapb_configure_irqs()
451 if (pp->irq[i] >= 0) in dwapb_configure_irqs()
452 irq_set_chained_handler_and_data(pp->irq[i], in dwapb_configure_irqs()
460 err = devm_request_irq(gpio->dev, pp->irq[0], in dwapb_configure_irqs()
495 struct dwapb_port_property *pp, in dwapb_gpio_add_port() argument
504 port->idx = pp->idx; in dwapb_gpio_add_port()
512 dat = gpio->regs + GPIO_EXT_PORTA + (pp->idx * GPIO_EXT_PORT_STRIDE); in dwapb_gpio_add_port()
[all …]
/linux-4.19.296/drivers/parport/
Dparport_mfc3.c292 struct pia *pp; in parport_mfc3_init() local
303 pp = ZTWO_VADDR(piabase); in parport_mfc3_init()
304 pp->crb = 0; in parport_mfc3_init()
305 pp->pddrb = 255; /* all data pins output */ in parport_mfc3_init()
306 pp->crb = PIA_DDR|32|8; in parport_mfc3_init()
307 dummy = pp->pddrb; /* reading clears interrupt */ in parport_mfc3_init()
308 pp->cra = 0; in parport_mfc3_init()
309 pp->pddra = 0xe0; /* /RESET, /DIR ,/AUTO-FEED output */ in parport_mfc3_init()
310 pp->cra = PIA_DDR; in parport_mfc3_init()
311 pp->ppra = 0; /* reset printer */ in parport_mfc3_init()
[all …]
/linux-4.19.296/fs/afs/
Dcallback.c31 struct hlist_node **pp; in afs_create_interest() local
56 for (pp = &server->cb_volumes.first; *pp; pp = &(*pp)->next) { in afs_create_interest()
57 vi = hlist_entry(*pp, struct afs_vol_interest, srv_link); in afs_create_interest()
66 new_vi->srv_link.pprev = pp; in afs_create_interest()
67 new_vi->srv_link.next = *pp; in afs_create_interest()
68 if (*pp) in afs_create_interest()
69 (*pp)->pprev = &new_vi->srv_link.next; in afs_create_interest()
70 *pp = &new_vi->srv_link; in afs_create_interest()
/linux-4.19.296/drivers/isdn/capi/
Dcapilib.c65 struct capilib_msgidqueue **pp; in mq_dequeue() local
66 for (pp = &np->msgidqueue; *pp; pp = &(*pp)->next) { in mq_dequeue()
67 if ((*pp)->msgid == msgid) { in mq_dequeue()
68 struct capilib_msgidqueue *mq = *pp; in mq_dequeue()
69 *pp = mq->next; in mq_dequeue()

1234