Home
last modified time | relevance | path

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

12345678910>>...13

/linux-6.1.9/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-6.1.9/drivers/net/ethernet/marvell/
Dmvneta.c479 struct mvneta_port *pp; member
756 static void mvreg_write(struct mvneta_port *pp, u32 offset, u32 data) in mvreg_write() argument
758 writel(data, pp->base + offset); in mvreg_write()
762 static u32 mvreg_read(struct mvneta_port *pp, u32 offset) in mvreg_read() argument
764 return readl(pp->base + offset); in mvreg_read()
785 static void mvneta_mib_counters_clear(struct mvneta_port *pp) in mvneta_mib_counters_clear() argument
791 mvreg_read(pp, (MVNETA_MIB_COUNTERS_BASE + i)); in mvneta_mib_counters_clear()
792 mvreg_read(pp, MVNETA_RX_DISCARD_FRAME_COUNT); in mvneta_mib_counters_clear()
793 mvreg_read(pp, MVNETA_OVERRUN_FRAME_COUNT); in mvneta_mib_counters_clear()
801 struct mvneta_port *pp = netdev_priv(dev); in mvneta_get_stats64() local
[all …]
/linux-6.1.9/drivers/pci/controller/dwc/
Dpcie-designware-host.c56 irqreturn_t dw_handle_msi_irq(struct dw_pcie_rp *pp) in dw_handle_msi_irq() argument
62 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_handle_msi_irq()
64 num_ctrls = pp->num_vectors / MAX_MSI_IRQS_PER_CTRL; in dw_handle_msi_irq()
77 generic_handle_domain_irq(pp->irq_domain, in dw_handle_msi_irq()
91 struct dw_pcie_rp *pp; in dw_chained_msi_isr() local
95 pp = irq_desc_get_handler_data(desc); in dw_chained_msi_isr()
96 dw_handle_msi_irq(pp); in dw_chained_msi_isr()
103 struct dw_pcie_rp *pp = irq_data_get_irq_chip_data(d); in dw_pci_setup_msi_msg() local
104 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_setup_msi_msg()
107 msi_target = (u64)pp->msi_data; in dw_pci_setup_msi_msg()
[all …]
/linux-6.1.9/drivers/spi/
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 …]
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-6.1.9/drivers/char/
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-6.1.9/drivers/usb/misc/
Duss720.c49 struct parport *pp; member
99 struct parport *pp; in async_complete() local
105 pp = priv->pp; in async_complete()
116 if (rq->reg[2] & rq->reg[1] & 0x10 && pp) in async_complete()
117 parport_generic_irq(pp); in async_complete()
193 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_f… in get_1284_register() argument
202 if (!pp) in get_1284_register()
204 priv = pp->private_data; in get_1284_register()
229 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_fl… in set_1284_register() argument
234 if (!pp) in set_1284_register()
[all …]
/linux-6.1.9/arch/arm/mach-dove/
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-6.1.9/arch/arm/mach-mv78xx0/
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-6.1.9/net/netfilter/ipvs/
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-6.1.9/drivers/gpu/drm/amd/display/dc/
Ddm_pp_smu.h50 const void *pp; member
103 void (*set_display_count)(struct pp_smu *pp, int count);
112 void (*set_wm_ranges)(struct pp_smu *pp,
118 void (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int mhz);
124 void (*set_min_deep_sleep_dcfclk)(struct pp_smu *pp, int mhz);
129 void (*set_hard_min_fclk_by_freq)(struct pp_smu *pp, int mhz);
134 void (*set_hard_min_socclk_by_freq)(struct pp_smu *pp, int mhz);
137 void (*set_pme_wa_enable)(struct pp_smu *pp);
173 enum pp_smu_status (*set_display_count)(struct pp_smu *pp, int count);
178 enum pp_smu_status (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int Mhz);
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_pingpong.c45 static const struct dpu_pingpong_cfg *_pingpong_offset(enum dpu_pingpong pp, in _pingpong_offset() argument
53 if (pp == m->pingpong[i].id) { in _pingpong_offset()
63 static void dpu_hw_pp_setup_dither(struct dpu_hw_pingpong *pp, in dpu_hw_pp_setup_dither() argument
69 c = &pp->hw; in dpu_hw_pp_setup_dither()
70 base = pp->caps->sblk->dither.base; in dpu_hw_pp_setup_dither()
94 static int dpu_hw_pp_setup_te_config(struct dpu_hw_pingpong *pp, in dpu_hw_pp_setup_te_config() argument
100 if (!pp || !te) in dpu_hw_pp_setup_te_config()
102 c = &pp->hw; in dpu_hw_pp_setup_te_config()
124 static void dpu_hw_pp_setup_autorefresh_config(struct dpu_hw_pingpong *pp, in dpu_hw_pp_setup_autorefresh_config() argument
127 DPU_REG_WRITE(&pp->hw, PP_AUTOREFRESH_CONFIG, in dpu_hw_pp_setup_autorefresh_config()
[all …]
Ddpu_hw_pingpong.h75 int (*setup_tearcheck)(struct dpu_hw_pingpong *pp,
81 int (*enable_tearcheck)(struct dpu_hw_pingpong *pp,
88 int (*connect_external_te)(struct dpu_hw_pingpong *pp,
95 int (*get_vsync_info)(struct dpu_hw_pingpong *pp,
101 void (*setup_autorefresh)(struct dpu_hw_pingpong *pp,
107 bool (*get_autorefresh)(struct dpu_hw_pingpong *pp,
114 int (*poll_timeout_wr_ptr)(struct dpu_hw_pingpong *pp, u32 timeout_us);
119 u32 (*get_line_count)(struct dpu_hw_pingpong *pp);
124 void (*setup_dither)(struct dpu_hw_pingpong *pp,
129 int (*enable_dsc)(struct dpu_hw_pingpong *pp);
[all …]
/linux-6.1.9/drivers/ata/
Dsata_nv.c598 struct nv_adma_port_priv *pp = ap->private_data; in nv_adma_register_mode() local
599 void __iomem *mmio = pp->ctl_block; in nv_adma_register_mode()
603 if (pp->flags & NV_ADMA_PORT_REGISTER_MODE) in nv_adma_register_mode()
631 pp->flags |= NV_ADMA_PORT_REGISTER_MODE; in nv_adma_register_mode()
636 struct nv_adma_port_priv *pp = ap->private_data; in nv_adma_mode() local
637 void __iomem *mmio = pp->ctl_block; in nv_adma_mode()
641 if (!(pp->flags & NV_ADMA_PORT_REGISTER_MODE)) in nv_adma_mode()
644 WARN_ON(pp->flags & NV_ADMA_ATAPI_SETUP_COMPLETE); in nv_adma_mode()
661 pp->flags &= ~NV_ADMA_PORT_REGISTER_MODE; in nv_adma_mode()
667 struct nv_adma_port_priv *pp = ap->private_data; in nv_adma_slave_config() local
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
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-6.1.9/drivers/gpu/drm/msm/disp/mdp5/
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 = {
149 { .id = 0, .pp = 0, .dspp = 0,
151 { .id = 1, .pp = 1, .dspp = 1,
153 { .id = 2, .pp = 2, .dspp = 2,
155 { .id = 3, .pp = -1, .dspp = -1,
[all …]
/linux-6.1.9/drivers/net/hamradio/
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-6.1.9/drivers/macintosh/
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-6.1.9/drivers/staging/ks7010/
Dks_hostif.c1055 struct hostif_data_request *pp; in hostif_data_request() local
1090 size = sizeof(*pp) + 6 + skb_len + 8; in hostif_data_request()
1091 pp = kmalloc(hif_align_size(size), GFP_ATOMIC); in hostif_data_request()
1092 if (!pp) { in hostif_data_request()
1097 p = (unsigned char *)pp->data; in hostif_data_request()
1143 eth_hdr = (struct ether_hdr *)&pp->data[0]; in hostif_data_request()
1162 pp->auth_type = cpu_to_le16(TYPE_AUTH); in hostif_data_request()
1168 &pp->data[0], skb_len, in hostif_data_request()
1177 pp->auth_type = in hostif_data_request()
1181 pp->auth_type = in hostif_data_request()
[all …]
/linux-6.1.9/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-6.1.9/drivers/mtd/parsers/
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-6.1.9/arch/mips/kernel/
Dpm-cps.c192 static void cps_gen_cache_routine(u32 **pp, struct uasm_label **pl, in cps_gen_cache_routine() argument
206 UASM_i_LA(pp, t0, (long)CKSEG0); in cps_gen_cache_routine()
210 uasm_i_addiu(pp, t1, t0, cache_size); in cps_gen_cache_routine()
212 UASM_i_LA(pp, t1, (long)(CKSEG0 + cache_size)); in cps_gen_cache_routine()
215 uasm_build_label(pl, *pp, lbl); in cps_gen_cache_routine()
220 uasm_i_cache(pp, op, 0, t0); in cps_gen_cache_routine()
221 uasm_i_addiu(pp, t0, t0, cache->linesz); in cps_gen_cache_routine()
223 uasm_i_cache(pp, op, i * cache->linesz, t0); in cps_gen_cache_routine()
229 uasm_i_addiu(pp, t0, t0, unroll_lines * cache->linesz); in cps_gen_cache_routine()
232 uasm_il_bne(pp, pr, t0, t1, lbl); in cps_gen_cache_routine()
[all …]
/linux-6.1.9/drivers/tty/serial/
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-6.1.9/drivers/infiniband/core/
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>>...13