/linux-6.6.21/drivers/ntb/test/ |
D | ntb_pingpong.c | 116 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.6.21/drivers/pci/controller/dwc/ |
D | pcie-designware-host.c | 57 irqreturn_t dw_handle_msi_irq(struct dw_pcie_rp *pp) in dw_handle_msi_irq() argument 63 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_handle_msi_irq() 65 num_ctrls = pp->num_vectors / MAX_MSI_IRQS_PER_CTRL; in dw_handle_msi_irq() 78 generic_handle_domain_irq(pp->irq_domain, in dw_handle_msi_irq() 92 struct dw_pcie_rp *pp; in dw_chained_msi_isr() local 96 pp = irq_desc_get_handler_data(desc); in dw_chained_msi_isr() 97 dw_handle_msi_irq(pp); in dw_chained_msi_isr() 104 struct dw_pcie_rp *pp = irq_data_get_irq_chip_data(d); in dw_pci_setup_msi_msg() local 105 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_setup_msi_msg() 108 msi_target = (u64)pp->msi_data; in dw_pci_setup_msi_msg() [all …]
|
/linux-6.6.21/drivers/net/ethernet/marvell/ |
D | mvneta.c | 484 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-6.6.21/drivers/spi/ |
D | spi-lm70llp.c | 96 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 …]
|
D | spi-butterfly.c | 69 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.6.21/drivers/char/ |
D | ppdev.c | 108 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.6.21/drivers/usb/misc/ |
D | uss720.c | 49 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.6.21/arch/arm/mach-dove/ |
D | pcie.c | 37 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.6.21/arch/arm/mach-mv78xx0/ |
D | pcie.c | 75 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.6.21/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 49 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.6.21/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_pingpong.c | 45 static void dpu_hw_pp_setup_dither(struct dpu_hw_pingpong *pp, in dpu_hw_pp_setup_dither() argument 51 c = &pp->hw; in dpu_hw_pp_setup_dither() 52 base = pp->caps->sblk->dither.base; in dpu_hw_pp_setup_dither() 76 static int dpu_hw_pp_enable_te(struct dpu_hw_pingpong *pp, in dpu_hw_pp_enable_te() argument 82 if (!pp || !te) in dpu_hw_pp_enable_te() 84 c = &pp->hw; in dpu_hw_pp_enable_te() 108 static void dpu_hw_pp_setup_autorefresh_config(struct dpu_hw_pingpong *pp, in dpu_hw_pp_setup_autorefresh_config() argument 111 DPU_REG_WRITE(&pp->hw, PP_AUTOREFRESH_CONFIG, in dpu_hw_pp_setup_autorefresh_config() 122 static bool dpu_hw_pp_get_autorefresh_config(struct dpu_hw_pingpong *pp, in dpu_hw_pp_get_autorefresh_config() argument 125 u32 val = DPU_REG_READ(&pp->hw, PP_AUTOREFRESH_CONFIG); in dpu_hw_pp_get_autorefresh_config() [all …]
|
D | dpu_hw_pingpong.h | 50 int (*enable_tearcheck)(struct dpu_hw_pingpong *pp, 56 int (*disable_tearcheck)(struct dpu_hw_pingpong *pp); 62 int (*connect_external_te)(struct dpu_hw_pingpong *pp, 68 u32 (*get_line_count)(struct dpu_hw_pingpong *pp); 73 void (*disable_autorefresh)(struct dpu_hw_pingpong *pp, uint32_t encoder_id, u16 vdisplay); 78 void (*setup_dither)(struct dpu_hw_pingpong *pp, 83 int (*enable_dsc)(struct dpu_hw_pingpong *pp); 88 void (*disable_dsc)(struct dpu_hw_pingpong *pp); 93 int (*setup_dsc)(struct dpu_hw_pingpong *pp); 136 void dpu_hw_pingpong_destroy(struct dpu_hw_pingpong *pp);
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/ |
D | dm_pp_smu.h | 50 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.6.21/drivers/ata/ |
D | sata_nv.c | 598 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.6.21/drivers/of/ |
D | kobj.c | 35 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.6.21/drivers/net/ethernet/cisco/enic/ |
D | enic_pp.c | 57 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.6.21/drivers/net/hamradio/ |
D | baycom_par.c | 183 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.6.21/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_cfg.c | 66 { .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-6.6.21/drivers/macintosh/ |
D | smu.c | 1085 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.6.21/drivers/staging/ks7010/ |
D | ks_hostif.c | 1054 struct hostif_data_request *pp; in hostif_data_request() local 1089 size = sizeof(*pp) + 6 + skb_len + 8; in hostif_data_request() 1090 pp = kmalloc(hif_align_size(size), GFP_ATOMIC); in hostif_data_request() 1091 if (!pp) { in hostif_data_request() 1096 p = (unsigned char *)pp->data; in hostif_data_request() 1142 eth_hdr = (struct ether_hdr *)&pp->data[0]; in hostif_data_request() 1161 pp->auth_type = cpu_to_le16(TYPE_AUTH); in hostif_data_request() 1167 &pp->data[0], skb_len, in hostif_data_request() 1176 pp->auth_type = in hostif_data_request() 1180 pp->auth_type = in hostif_data_request() [all …]
|
/linux-6.6.21/fs/jffs2/ |
D | compr_rubin.c | 42 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.6.21/drivers/mtd/parsers/ |
D | ofpart_core.c | 36 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.6.21/arch/mips/kernel/ |
D | pm-cps.c | 192 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.6.21/drivers/tty/serial/ |
D | altera_uart.c | 102 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.6.21/drivers/infiniband/core/ |
D | security.c | 46 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 …]
|