Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/ntb/test/
H A 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/drivers/net/ethernet/marvell/
H A Dmvneta.c484 struct mvneta_port *pp; member
762 static void mvreg_write(struct mvneta_port *pp, u32 offset, u32 data) in mvreg_write() argument
764 writel(data, pp->base + offset); in mvreg_write()
768 static u32 mvreg_read(struct mvneta_port *pp, u32 offset) in mvreg_read() argument
770 return readl(pp->base + offset); in mvreg_read()
791 static void mvneta_mib_counters_clear(struct mvneta_port *pp) in mvneta_mib_counters_clear() argument
797 mvreg_read(pp, (MVNETA_MIB_COUNTERS_BASE + i)); in mvneta_mib_counters_clear()
798 mvreg_read(pp, MVNETA_RX_DISCARD_FRAME_COUNT); in mvneta_mib_counters_clear()
799 mvreg_read(pp, MVNETA_OVERRUN_FRAME_COUNT); in mvneta_mib_counters_clear()
807 struct mvneta_port *pp = netdev_priv(dev); in mvneta_get_stats64() local
[all …]
/linux/drivers/spi/
H A Dspi-lm70llp.c96 static inline void deassertCS(struct spi_lm70llp *pp) in deassertCS() argument
98 u8 data = parport_read_data(pp->port); in deassertCS()
101 parport_write_data(pp->port, data | nCS); in deassertCS()
104 static inline void assertCS(struct spi_lm70llp *pp) in assertCS() argument
106 u8 data = parport_read_data(pp->port); in assertCS()
109 parport_write_data(pp->port, data & ~nCS); in assertCS()
112 static inline void clkHigh(struct spi_lm70llp *pp) in clkHigh() argument
114 u8 data = parport_read_data(pp->port); in clkHigh()
116 parport_write_data(pp->port, data | SCLK); in clkHigh()
119 static inline void clkLow(struct spi_lm70llp *pp) in clkLow() argument
[all …]
H A Dspi-butterfly.c69 struct butterfly *pp = spidev_to_pp(spi); in setsck() local
70 u8 bit, byte = pp->lastbyte; in setsck()
78 parport_write_data(pp->port, byte); in setsck()
79 pp->lastbyte = byte; in setsck()
85 struct butterfly *pp = spidev_to_pp(spi); in setmosi() local
86 u8 bit, byte = pp->lastbyte; in setmosi()
94 parport_write_data(pp->port, byte); in setmosi()
95 pp->lastbyte = byte; in setmosi()
100 struct butterfly *pp = spidev_to_pp(spi); in getmiso() local
107 value = !(parport_read_status(pp->port) & bit); in getmiso()
[all …]
/linux/drivers/char/
H A Dppdev.c108 static inline void pp_enable_irq(struct pp_struct *pp) in pp_enable_irq() argument
110 struct parport *port = pp->pdev->port; in pp_enable_irq()
119 struct pp_struct *pp = file->private_data; in pp_read() local
125 if (!(pp->flags & PP_CLAIMED)) { in pp_read()
138 pport = pp->pdev->port; in pp_read()
141 parport_set_timeout(pp->pdev, in pp_read()
144 pp->default_inactivity); in pp_read()
154 if (pp->flags & PP_W91284PIC) in pp_read()
156 if (pp->flags & PP_FASTREAD) in pp_read()
183 parport_set_timeout(pp->pdev, pp->default_inactivity); in pp_read()
[all …]
/linux/arch/arm/mach-dove/
H A Dpcie.c37 struct pcie_port *pp; in dove_pcie_setup() local
43 pp = &pcie_port[nr]; in dove_pcie_setup()
44 sys->private_data = pp; in dove_pcie_setup()
45 pp->root_bus_nr = sys->busnr; in dove_pcie_setup()
50 orion_pcie_set_local_bus_nr(pp->base, sys->busnr); in dove_pcie_setup()
52 orion_pcie_setup(pp->base); in dove_pcie_setup()
56 pci_remap_iospace(&realio, pp->index == 0 ? DOVE_PCIE0_IO_PHYS_BASE : in dove_pcie_setup()
62 snprintf(pp->mem_space_name, sizeof(pp->mem_space_name), in dove_pcie_setup()
63 "PCIe %d MEM", pp->index); in dove_pcie_setup()
64 pp->mem_space_name[sizeof(pp->mem_space_name) - 1] = 0; in dove_pcie_setup()
[all …]
/linux/arch/arm/mach-mv78xx0/
H A Dpcie.c75 struct pcie_port *pp = pcie_port + i; in mv78xx0_pcie_preinit() local
77 snprintf(pp->mem_space_name, sizeof(pp->mem_space_name), in mv78xx0_pcie_preinit()
78 "PCIe %d.%d MEM", pp->maj, pp->min); in mv78xx0_pcie_preinit()
79 pp->mem_space_name[sizeof(pp->mem_space_name) - 1] = 0; in mv78xx0_pcie_preinit()
80 pp->res.name = pp->mem_space_name; in mv78xx0_pcie_preinit()
81 pp->res.flags = IORESOURCE_MEM; in mv78xx0_pcie_preinit()
82 pp->res.start = start; in mv78xx0_pcie_preinit()
83 pp->res.end = start + size_each - 1; in mv78xx0_pcie_preinit()
86 if (request_resource(&iomem_resource, &pp->res)) in mv78xx0_pcie_preinit()
89 mvebu_mbus_add_window_by_id(MV78XX0_MBUS_PCIE_MEM_TARGET(pp->maj, pp->min), in mv78xx0_pcie_preinit()
[all …]
/linux/net/netfilter/ipvs/
H A Dip_vs_proto.c49 static int __used __init register_ip_vs_protocol(struct ip_vs_protocol *pp) in register_ip_vs_protocol() argument
51 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in register_ip_vs_protocol()
53 pp->next = ip_vs_proto_table[hash]; in register_ip_vs_protocol()
54 ip_vs_proto_table[hash] = pp; in register_ip_vs_protocol()
56 if (pp->init != NULL) in register_ip_vs_protocol()
57 pp->init(pp); in register_ip_vs_protocol()
66 register_ip_vs_proto_netns(struct netns_ipvs *ipvs, struct ip_vs_protocol *pp) in register_ip_vs_proto_netns() argument
68 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol); in register_ip_vs_proto_netns()
75 pd->pp = pp; /* For speed issues */ in register_ip_vs_proto_netns()
80 if (pp->init_netns != NULL) { in register_ip_vs_proto_netns()
[all …]
/linux/fs/xfs/scrub/
H A Dparent.c281 struct xchk_pptrs *pp = priv; in xchk_parent_scan_dotdot() local
293 if (pp->parent_ino == parent_ino) in xchk_parent_scan_dotdot()
302 struct xchk_pptrs *pp) in xchk_parent_pptr_and_dotdot() argument
304 struct xfs_scrub *sc = pp->sc; in xchk_parent_pptr_and_dotdot()
308 error = xchk_dir_lookup(sc, sc->ip, &xfs_name_dotdot, &pp->parent_ino); in xchk_parent_pptr_and_dotdot()
311 if (!xfs_verify_dir_ino(sc->mp, pp->parent_ino)) { in xchk_parent_pptr_and_dotdot()
318 if (sc->ip->i_ino != pp->parent_ino) in xchk_parent_pptr_and_dotdot()
330 if (pp->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_parent_pptr_and_dotdot()
334 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_scan_dotdot, NULL, pp); in xchk_parent_pptr_and_dotdot()
380 struct xchk_pptrs *pp, in xchk_parent_dirent() argument
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddm_pp_smu.h51 const void *pp; member
104 void (*set_display_count)(struct pp_smu *pp, int count);
113 void (*set_wm_ranges)(struct pp_smu *pp,
119 void (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int mhz);
125 void (*set_min_deep_sleep_dcfclk)(struct pp_smu *pp, int mhz);
130 void (*set_hard_min_fclk_by_freq)(struct pp_smu *pp, int mhz);
135 void (*set_hard_min_socclk_by_freq)(struct pp_smu *pp, int mhz);
138 void (*set_pme_wa_enable)(struct pp_smu *pp);
174 enum pp_smu_status (*set_display_count)(struct pp_smu *pp, int count);
179 enum pp_smu_status (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int Mhz);
[all …]
/linux/arch/s390/kernel/
H A Dctlreg.c57 struct ctlreg_parms *pp = info; in ctlreg_callback() local
61 if (pp->request == CTLREG_LOAD) { in ctlreg_callback()
62 regs[pp->cr].val = pp->val; in ctlreg_callback()
64 regs[pp->cr].val &= pp->andval; in ctlreg_callback()
65 regs[pp->cr].val |= pp->orval; in ctlreg_callback()
89 struct ctlreg_parms pp = { .cr = cr, .request = request, }; in system_ctlreg_modify() local
94 pp.orval = 1UL << data; in system_ctlreg_modify()
95 pp.andval = -1UL; in system_ctlreg_modify()
98 pp.orval = 0; in system_ctlreg_modify()
99 pp.andval = ~(1UL << data); in system_ctlreg_modify()
[all …]
/linux/drivers/net/ethernet/intel/libeth/
H A Drx.c17 static u32 libeth_rx_hw_len_mtu(const struct page_pool_params *pp, u32 max_len) in libeth_rx_hw_len_mtu() argument
21 len = READ_ONCE(pp->netdev->mtu) + LIBETH_RX_LL_LEN; in libeth_rx_hw_len_mtu()
24 pp->max_len); in libeth_rx_hw_len_mtu()
39 static u32 libeth_rx_hw_len_truesize(const struct page_pool_params *pp, in libeth_rx_hw_len_truesize() argument
44 min = SKB_HEAD_ALIGN(pp->offset + LIBETH_RX_BUF_STRIDE); in libeth_rx_hw_len_truesize()
48 len = SKB_WITH_OVERHEAD(truesize - pp->offset); in libeth_rx_hw_len_truesize()
51 pp->max_len); in libeth_rx_hw_len_truesize()
69 struct page_pool_params *pp) in libeth_rx_page_pool_params() argument
71 pp->offset = LIBETH_SKB_HEADROOM; in libeth_rx_page_pool_params()
73 pp->max_len = LIBETH_RX_PAGE_LEN(pp->offset); in libeth_rx_page_pool_params()
[all …]
/linux/tools/testing/selftests/net/
H A Dnl_netdev.py33 return [pp for pp in pp_list if pp.get("ifindex") == nsim.ifindex]
43 refs = sum([pp["inflight"] for pp in pp_list])
55 refs = sum([pp["inflight"] for pp in pp_list if pp.get("ifindex") == nsim.ifindex])
62 refs = sum([pp["inflight"] for pp in pp_list])
64 attached = [pp for pp in pp_list if "detach-time" not in pp]
70 attached = [pp for pp in pp_list if "detach-time" not in pp]
71 detached = [pp for pp in pp_list if "detach-time" in pp]
/linux/drivers/ata/
H A Dsata_nv.c600 struct nv_adma_port_priv *pp = ap->private_data; in nv_adma_register_mode() local
601 void __iomem *mmio = pp->ctl_block; in nv_adma_register_mode()
605 if (pp->flags & NV_ADMA_PORT_REGISTER_MODE) in nv_adma_register_mode()
633 pp->flags |= NV_ADMA_PORT_REGISTER_MODE; in nv_adma_register_mode()
638 struct nv_adma_port_priv *pp = ap->private_data; in nv_adma_mode() local
639 void __iomem *mmio = pp->ctl_block; in nv_adma_mode()
643 if (!(pp->flags & NV_ADMA_PORT_REGISTER_MODE)) in nv_adma_mode()
646 WARN_ON(pp->flags & NV_ADMA_ATAPI_SETUP_COMPLETE); in nv_adma_mode()
663 pp->flags &= ~NV_ADMA_PORT_REGISTER_MODE; in nv_adma_mode()
670 struct nv_adma_port_priv *pp = ap->private_data; in nv_adma_device_configure() local
[all …]
H A Dpdc_adma.c190 struct adma_port_priv *pp = ap->private_data; in adma_reinit_engine() local
204 writel((u32)pp->pkt_dma, chan + ADMA_CPB_NEXT); in adma_reinit_engine()
247 struct adma_port_priv *pp = ap->private_data; in adma_prereset() local
249 if (pp->state != adma_state_idle) /* healthy paranoia */ in adma_prereset()
250 pp->state = adma_state_mmio; in adma_prereset()
260 struct adma_port_priv *pp = ap->private_data; in adma_fill_sg() local
261 u8 *buf = pp->pkt, *last_buf = NULL; in adma_fill_sg()
285 (pFLAGS & pEND) ? 0 : cpu_to_le32(pp->pkt_dma + i + 4); in adma_fill_sg()
297 struct adma_port_priv *pp = qc->ap->private_data; in adma_qc_prep() local
298 u8 *buf = pp->pkt; in adma_qc_prep()
[all …]
/linux/tools/net/ynl/samples/
H A Dpage-pool.c48 struct netdev_page_pool_get_rsp *pp) in count() argument
51 if (pp->_present.inflight) in count()
52 s->live[l].refs += pp->inflight; in count()
53 if (pp->_present.inflight_mem) in count()
54 s->live[l].bytes += pp->inflight_mem; in count()
80 ynl_dump_foreach(pools, pp) { in main()
81 struct stat *s = find_ifc(&a, pp->ifindex); in main()
83 count(s, 1, pp); in main()
84 if (pp->_present.detach_time) in main()
85 count(s, 0, pp); in main()
[all...]
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_cfg.c66 { .id = 0, .pp = 0, .dspp = 0,
68 { .id = 1, .pp = 1, .dspp = 1,
70 { .id = 2, .pp = 2, .dspp = 2,
72 { .id = 3, .pp = -1, .dspp = -1,
74 { .id = 4, .pp = -1, .dspp = -1,
85 .pp = {
155 { .id = 0, .pp = 0, .dspp = 0,
157 { .id = 1, .pp = -1, .dspp = -1,
168 .pp = {
230 { .id = 0, .pp = 0, .dspp = 0,
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_pp.c57 struct enic_port_profile *pp; in enic_set_port_profile() local
66 ENIC_PP_BY_INDEX(enic, vf, pp, &err); in enic_set_port_profile()
70 if (!(pp->set & ENIC_SET_NAME) || !strlen(pp->name)) in enic_set_port_profile()
80 strlen(pp->name) + 1, pp->name); in enic_set_port_profile()
82 if (!is_zero_ether_addr(pp->mac_addr)) { in enic_set_port_profile()
83 client_mac = pp->mac_addr; in enic_set_port_profile()
102 if (pp->set & ENIC_SET_INSTANCE) { in enic_set_port_profile()
103 sprintf(uuid_str, "%pUB", pp->instance_uuid); in enic_set_port_profile()
109 if (pp->set & ENIC_SET_HOST) { in enic_set_port_profile()
110 sprintf(uuid_str, "%pUB", pp->host_uuid); in enic_set_port_profile()
[all …]
/linux/drivers/net/hamradio/
H A Dbaycom_par.c183 struct parport *pp = bc->pdev->port; in par96_tx() local
196 pp->ops->write_data(pp, val); in par96_tx()
197 pp->ops->write_data(pp, val | PAR96_BURST); in par96_tx()
207 struct parport *pp = bc->pdev->port; in par96_rx() local
214 if (pp->ops->read_status(pp) & PAR96_RXBIT) in par96_rx()
219 pp->ops->write_data(pp, PAR97_POWER | PAR96_PTT); in par96_rx()
225 pp->ops->write_data(pp, PAR97_POWER | PAR96_PTT | PAR96_BURST); in par96_rx()
250 hdlcdrv_setdcd(&bc->hdrv, !!(pp->ops->read_status(pp) & PAR96_DCD)); in par96_rx()
299 struct parport *pp; in par96_open() local
304 pp = parport_find_base(dev->base_addr); in par96_open()
[all …]
/linux/drivers/macintosh/
H A Dsmu.c1085 struct smu_private *pp; in smu_open() local
1088 pp = kzalloc(sizeof(struct smu_private), GFP_KERNEL); in smu_open()
1089 if (!pp) in smu_open()
1091 spin_lock_init(&pp->lock); in smu_open()
1092 pp->mode = smu_file_commands; in smu_open()
1093 init_waitqueue_head(&pp->wait); in smu_open()
1097 list_add(&pp->list, &smu_clist); in smu_open()
1099 file->private_data = pp; in smu_open()
1108 struct smu_private *pp = misc; in smu_user_cmd_done() local
1110 wake_up_all(&pp->wait); in smu_user_cmd_done()
[all …]
/linux/arch/mips/kernel/
H A Dpm-cps.c186 static void cps_gen_cache_routine(u32 **pp, struct uasm_label **pl, in cps_gen_cache_routine() argument
200 UASM_i_LA(pp, GPR_T0, (long)CKSEG0); in cps_gen_cache_routine()
204 uasm_i_addiu(pp, GPR_T1, GPR_T0, cache_size); in cps_gen_cache_routine()
206 UASM_i_LA(pp, GPR_T1, (long)(CKSEG0 + cache_size)); in cps_gen_cache_routine()
209 uasm_build_label(pl, *pp, lbl); in cps_gen_cache_routine()
214 uasm_i_cache(pp, op, 0, GPR_T0); in cps_gen_cache_routine()
215 uasm_i_addiu(pp, GPR_T0, GPR_T0, cache->linesz); in cps_gen_cache_routine()
217 uasm_i_cache(pp, op, i * cache->linesz, GPR_T0); in cps_gen_cache_routine()
223 uasm_i_addiu(pp, GPR_T0, GPR_T0, unroll_lines * cache->linesz); in cps_gen_cache_routine()
226 uasm_il_bne(pp, pr, GPR_T0, GPR_T1, lbl); in cps_gen_cache_routine()
[all …]
/linux/fs/jffs2/
H A 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/drivers/mtd/parsers/
H A Dofpart_core.c36 static bool node_has_compatible(struct device_node *pp) in node_has_compatible() argument
38 return of_get_property(pp, "compatible", NULL); in node_has_compatible()
51 struct device_node *pp; in parse_fixed_partitions() local
87 for_each_child_of_node(ofpart_node, pp) { in parse_fixed_partitions()
88 if (!dedicated && node_has_compatible(pp)) in parse_fixed_partitions()
102 for_each_child_of_node(ofpart_node, pp) { in parse_fixed_partitions()
107 if (!dedicated && node_has_compatible(pp)) in parse_fixed_partitions()
110 reg = of_get_property(pp, "reg", &len); in parse_fixed_partitions()
114 master->name, pp, in parse_fixed_partitions()
123 a_cells = of_n_addr_cells(pp); in parse_fixed_partitions()
[all …]
/linux/drivers/tty/serial/
H A Daltera_uart.c102 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl() local
107 sigs |= (pp->sigs & TIOCM_RTS); in altera_uart_get_mctrl()
112 static void altera_uart_update_ctrl_reg(struct altera_uart *pp) in altera_uart_update_ctrl_reg() argument
114 unsigned short imr = pp->imr; in altera_uart_update_ctrl_reg()
120 if (!pp->port.irq) in altera_uart_update_ctrl_reg()
123 altera_uart_writel(&pp->port, imr, ALTERA_UART_CONTROL_REG); in altera_uart_update_ctrl_reg()
128 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_set_mctrl() local
130 pp->sigs = sigs; in altera_uart_set_mctrl()
132 pp->imr |= ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
134 pp->imr &= ~ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
[all …]
/linux/drivers/infiniband/core/
H A Dsecurity.c46 static struct pkey_index_qp_list *get_pkey_idx_qp_list(struct ib_port_pkey *pp) in get_pkey_idx_qp_list() argument
50 struct ib_device *dev = pp->sec->dev; in get_pkey_idx_qp_list()
52 spin_lock(&dev->port_data[pp->port_num].pkey_list_lock); in get_pkey_idx_qp_list()
53 list_for_each_entry (tmp_pkey, &dev->port_data[pp->port_num].pkey_list, in get_pkey_idx_qp_list()
55 if (tmp_pkey->pkey_index == pp->pkey_index) { in get_pkey_idx_qp_list()
60 spin_unlock(&dev->port_data[pp->port_num].pkey_list_lock); in get_pkey_idx_qp_list()
64 static int get_pkey_and_subnet_prefix(struct ib_port_pkey *pp, in get_pkey_and_subnet_prefix() argument
68 struct ib_device *dev = pp->sec->dev; in get_pkey_and_subnet_prefix()
71 ret = ib_get_cached_pkey(dev, pp->port_num, pp->pkey_index, pkey); in get_pkey_and_subnet_prefix()
75 ib_get_cached_subnet_prefix(dev, pp->port_num, subnet_prefix); in get_pkey_and_subnet_prefix()
[all …]

12345678910>>...12