Home
last modified time | relevance | path

Searched refs:pg (Results 1 – 25 of 255) sorted by relevance

1234567891011

/linux-6.12.1/drivers/soc/qcom/
Dpmic_glink.c53 struct pmic_glink *pg; member
64 struct pmic_glink *pg = client->pg; in _devm_pmic_glink_release_client() local
67 spin_lock_irqsave(&pg->client_lock, flags); in _devm_pmic_glink_release_client()
69 spin_unlock_irqrestore(&pg->client_lock, flags); in _devm_pmic_glink_release_client()
79 struct pmic_glink *pg = dev_get_drvdata(dev->parent); in devm_pmic_glink_client_alloc() local
85 client->pg = pg; in devm_pmic_glink_client_alloc()
100 struct pmic_glink *pg = client->pg; in pmic_glink_client_register() local
103 mutex_lock(&pg->state_lock); in pmic_glink_client_register()
104 spin_lock_irqsave(&pg->client_lock, flags); in pmic_glink_client_register()
106 list_add(&client->node, &pg->clients); in pmic_glink_client_register()
[all …]
Dpmic_pdcharger_ulog.c48 static int pmic_pdcharger_ulog_write_async(struct pmic_pdcharger_ulog *pg, void *data, size_t len) in pmic_pdcharger_ulog_write_async() argument
50 return rpmsg_send(pg->rpdev->ept, data, len); in pmic_pdcharger_ulog_write_async()
53 static int pmic_pdcharger_ulog_request(struct pmic_pdcharger_ulog *pg) in pmic_pdcharger_ulog_request() argument
64 return pmic_pdcharger_ulog_write_async(pg, &req_msg, sizeof(req_msg)); in pmic_pdcharger_ulog_request()
69 struct pmic_pdcharger_ulog *pg = container_of(work, struct pmic_pdcharger_ulog, in pmic_pdcharger_ulog_work() local
73 rc = pmic_pdcharger_ulog_request(pg); in pmic_pdcharger_ulog_work()
75 dev_err(&pg->rpdev->dev, "Error requesting ulog, rc=%d\n", rc); in pmic_pdcharger_ulog_work()
80 static void pmic_pdcharger_ulog_handle_message(struct pmic_pdcharger_ulog *pg, in pmic_pdcharger_ulog_handle_message() argument
87 dev_err(&pg->rpdev->dev, "Expected data length: %zu, received: %zu\n", in pmic_pdcharger_ulog_handle_message()
104 struct pmic_pdcharger_ulog *pg = dev_get_drvdata(&rpdev->dev); in pmic_pdcharger_ulog_rpmsg_callback() local
[all …]
/linux-6.12.1/drivers/scsi/device_handler/
Dscsi_dh_alua.c85 struct alua_port_group __rcu *pg; member
104 static bool alua_rtpg_queue(struct alua_port_group *pg,
111 struct alua_port_group *pg; in release_port_group() local
113 pg = container_of(kref, struct alua_port_group, kref); in release_port_group()
114 if (pg->rtpg_sdev) in release_port_group()
115 flush_delayed_work(&pg->rtpg_work); in release_port_group()
117 list_del(&pg->node); in release_port_group()
119 kfree_rcu(pg, rcu); in release_port_group()
188 struct alua_port_group *pg; in alua_find_get_pg() local
193 list_for_each_entry(pg, &port_group_list, node) { in alua_find_get_pg()
[all …]
/linux-6.12.1/drivers/media/i2c/
Disl7998x.c89 #define ISL7998X_REG_PX_DEC_INPUT_FMT(pg) ISL7998X_REG((pg), 0x02) argument
90 #define ISL7998X_REG_PX_DEC_STATUS_1(pg) ISL7998X_REG((pg), 0x03) argument
94 #define ISL7998X_REG_PX_DEC_HS_DELAY_CTL(pg) ISL7998X_REG((pg), 0x04) argument
95 #define ISL7998X_REG_PX_DEC_ANCTL(pg) ISL7998X_REG((pg), 0x06) argument
96 #define ISL7998X_REG_PX_DEC_CROP_HI(pg) ISL7998X_REG((pg), 0x07) argument
97 #define ISL7998X_REG_PX_DEC_VDELAY_LO(pg) ISL7998X_REG((pg), 0x08) argument
98 #define ISL7998X_REG_PX_DEC_VACTIVE_LO(pg) ISL7998X_REG((pg), 0x09) argument
99 #define ISL7998X_REG_PX_DEC_HDELAY_LO(pg) ISL7998X_REG((pg), 0x0a) argument
100 #define ISL7998X_REG_PX_DEC_HACTIVE_LO(pg) ISL7998X_REG((pg), 0x0b) argument
101 #define ISL7998X_REG_PX_DEC_CNTRL1(pg) ISL7998X_REG((pg), 0x0c) argument
[all …]
/linux-6.12.1/net/bridge/
Dbr_multicast_eht.c33 static bool br_multicast_del_eht_set_entry(struct net_bridge_port_group *pg,
37 struct net_bridge_port_group *pg,
44 br_multicast_eht_host_lookup(struct net_bridge_port_group *pg, in br_multicast_eht_host_lookup() argument
47 struct rb_node *node = pg->eht_host_tree.rb_node; in br_multicast_eht_host_lookup()
67 static int br_multicast_eht_host_filter_mode(struct net_bridge_port_group *pg, in br_multicast_eht_host_filter_mode() argument
72 eht_host = br_multicast_eht_host_lookup(pg, h_addr); in br_multicast_eht_host_filter_mode()
104 br_multicast_eht_set_lookup(struct net_bridge_port_group *pg, in br_multicast_eht_set_lookup() argument
107 struct rb_node *node = pg->eht_set_tree.rb_node; in br_multicast_eht_set_lookup()
131 br_multicast_eht_hosts_dec(eht_host->pg); in __eht_destroy_host()
133 rb_erase(&eht_host->rb_node, &eht_host->pg->eht_host_tree); in __eht_destroy_host()
[all …]
Dbr_private_mcast_eht.h24 struct net_bridge_port_group *pg; member
47 struct net_bridge_port_group *pg; member
53 void br_multicast_eht_clean_sets(struct net_bridge_port_group *pg);
55 struct net_bridge_port_group *pg,
65 br_multicast_eht_should_del_pg(const struct net_bridge_port_group *pg) in br_multicast_eht_should_del_pg() argument
67 return !!((pg->key.port->flags & BR_MULTICAST_FAST_LEAVE) && in br_multicast_eht_should_del_pg()
68 RB_EMPTY_ROOT(&pg->eht_host_tree)); in br_multicast_eht_should_del_pg()
72 br_multicast_eht_hosts_over_limit(const struct net_bridge_port_group *pg) in br_multicast_eht_hosts_over_limit() argument
74 const struct net_bridge_port *p = pg->key.port; in br_multicast_eht_hosts_over_limit()
79 static inline void br_multicast_eht_hosts_inc(struct net_bridge_port_group *pg) in br_multicast_eht_hosts_inc() argument
[all …]
Dbr_multicast.c83 struct net_bridge_port_group *pg);
210 br_multicast_pg_to_port_ctx(const struct net_bridge_port_group *pg) in br_multicast_pg_to_port_ctx() argument
212 struct net_bridge_mcast_port *pmctx = &pg->key.port->multicast_ctx; in br_multicast_pg_to_port_ctx()
215 lockdep_assert_held_once(&pg->key.port->br->multicast_lock); in br_multicast_pg_to_port_ctx()
218 if (!pg->key.addr.vid || in br_multicast_pg_to_port_ctx()
219 !br_opt_get(pg->key.port->br, BROPT_MCAST_VLAN_SNOOPING_ENABLED)) in br_multicast_pg_to_port_ctx()
229 vlan = br_vlan_find(nbp_vlan_group_rcu(pg->key.port), pg->key.addr.vid); in br_multicast_pg_to_port_ctx()
294 struct net_bridge_port_group *pg, in __fwd_add_star_excl() argument
303 sg_key.port = pg->key.port; in __fwd_add_star_excl()
309 sg_ip, pg->eth_addr, in __fwd_add_star_excl()
[all …]
Dbr_mdb.c416 struct net_bridge_port_group *pg, in nlmsg_populate_mdb_fill() argument
438 if (__mdb_fill_info(skb, mp, pg)) in nlmsg_populate_mdb_fill()
453 static size_t rtnl_mdb_nlmsg_pg_size(const struct net_bridge_port_group *pg) in rtnl_mdb_nlmsg_pg_size() argument
463 if (!pg) in rtnl_mdb_nlmsg_pg_size()
469 switch (pg->key.addr.proto) { in rtnl_mdb_nlmsg_pg_size()
472 if (pg->key.addr.src.ip4) in rtnl_mdb_nlmsg_pg_size()
474 if (pg->key.port->br->multicast_ctx.multicast_igmp_version == 2) in rtnl_mdb_nlmsg_pg_size()
481 if (!ipv6_addr_any(&pg->key.addr.src.ip6)) in rtnl_mdb_nlmsg_pg_size()
483 if (pg->key.port->br->multicast_ctx.multicast_mld_version == 1) in rtnl_mdb_nlmsg_pg_size()
494 if (!hlist_empty(&pg->src_list)) in rtnl_mdb_nlmsg_pg_size()
[all …]
/linux-6.12.1/net/netfilter/
Dnft_set_pipapo_avx2.c220 u8 pg[2] = { pkt[0] >> 4, pkt[0] & 0xf }; in nft_pipapo_avx2_lookup_4b_2() local
228 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2()
229 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2()
232 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_2()
234 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_2()
283 u8 pg[4] = { pkt[0] >> 4, pkt[0] & 0xf, pkt[1] >> 4, pkt[1] & 0xf }; in nft_pipapo_avx2_lookup_4b_4() local
291 NFT_PIPAPO_AVX2_BUCKET_LOAD4(0, lt, 0, pg[0], bsize); in nft_pipapo_avx2_lookup_4b_4()
292 NFT_PIPAPO_AVX2_BUCKET_LOAD4(1, lt, 1, pg[1], bsize); in nft_pipapo_avx2_lookup_4b_4()
293 NFT_PIPAPO_AVX2_BUCKET_LOAD4(2, lt, 2, pg[2], bsize); in nft_pipapo_avx2_lookup_4b_4()
294 NFT_PIPAPO_AVX2_BUCKET_LOAD4(3, lt, 3, pg[3], bsize); in nft_pipapo_avx2_lookup_4b_4()
[all …]
/linux-6.12.1/drivers/md/
Ddm-mpath.c44 struct priority_group *pg; /* Owning PG */ member
175 struct priority_group *pg; in alloc_priority_group() local
177 pg = kzalloc(sizeof(*pg), GFP_KERNEL); in alloc_priority_group()
179 if (pg) in alloc_priority_group()
180 INIT_LIST_HEAD(&pg->pgpaths); in alloc_priority_group()
182 return pg; in alloc_priority_group()
196 static void free_priority_group(struct priority_group *pg, in free_priority_group() argument
199 struct path_selector *ps = &pg->ps; in free_priority_group()
206 free_pgpaths(&pg->pgpaths, ti); in free_priority_group()
207 kfree(pg); in free_priority_group()
[all …]
/linux-6.12.1/arch/powerpc/platforms/pseries/
Dpapr_platform_attributes.c62 struct attribute_group pg; member
216 static int add_attr_group(u64 id, struct papr_group *pg, bool show_val_desc) in add_attr_group() argument
225 add_attr(id, i, &pg->pgattrs[i]); in add_attr_group()
226 pg->pg.attrs[i] = &pg->pgattrs[i].kobj_attr.attr; in add_attr_group()
229 return sysfs_create_group(esi_kobj, &pg->pg); in add_attr_group()
316 papr_groups[idx].pg.attrs = kcalloc(KOBJ_MAX_ATTRS + 1, in papr_init()
317 sizeof(*papr_groups[idx].pg.attrs), in papr_init()
319 if (!papr_groups[idx].pg.attrs) in papr_init()
322 papr_groups[idx].pg.name = kasprintf(GFP_KERNEL, "%lld", in papr_init()
324 if (papr_groups[idx].pg.name == NULL) in papr_init()
[all …]
/linux-6.12.1/drivers/soc/tegra/
Dpmc.c707 static int tegra_powergate_prepare_clocks(struct tegra_powergate *pg) in tegra_powergate_prepare_clocks() argument
713 for (i = 0; i < pg->num_clks; i++) { in tegra_powergate_prepare_clocks()
714 pg->clk_rates[i] = clk_get_rate(pg->clks[i]); in tegra_powergate_prepare_clocks()
716 if (!pg->clk_rates[i]) { in tegra_powergate_prepare_clocks()
721 if (pg->clk_rates[i] <= safe_rate) in tegra_powergate_prepare_clocks()
730 err = clk_set_rate(pg->clks[i], safe_rate); in tegra_powergate_prepare_clocks()
739 clk_set_rate(pg->clks[i], pg->clk_rates[i]); in tegra_powergate_prepare_clocks()
744 static int tegra_powergate_unprepare_clocks(struct tegra_powergate *pg) in tegra_powergate_unprepare_clocks() argument
749 for (i = 0; i < pg->num_clks; i++) { in tegra_powergate_unprepare_clocks()
750 err = clk_set_rate(pg->clks[i], pg->clk_rates[i]); in tegra_powergate_unprepare_clocks()
[all …]
/linux-6.12.1/arch/powerpc/platforms/powernv/
Dopal-powercap.c26 struct attribute_group pg; member
190 pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), in opal_powercap_init()
192 if (!pcaps[i].pg.attrs) { in opal_powercap_init()
198 pcaps[i].pg.name = kasprintf(GFP_KERNEL, "%pOFn", node); in opal_powercap_init()
199 if (!pcaps[i].pg.name) { in opal_powercap_init()
201 kfree(pcaps[i].pg.attrs); in opal_powercap_init()
208 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
215 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
224 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
228 if (sysfs_create_group(powercap_kobj, &pcaps[i].pg)) { in opal_powercap_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/gma500/
Dgtt.c189 struct psb_gtt *pg = &dev_priv->gtt; in psb_gtt_init_ranges() local
246 pg->gtt_phys_start = gtt_phys_start; in psb_gtt_init_ranges()
247 pg->mmu_gatt_start = mmu_gatt_start; in psb_gtt_init_ranges()
248 pg->gtt_start = gtt_start; in psb_gtt_init_ranges()
249 pg->gtt_pages = gtt_pages; in psb_gtt_init_ranges()
250 pg->gatt_start = gatt_start; in psb_gtt_init_ranges()
251 pg->gatt_pages = gatt_pages; in psb_gtt_init_ranges()
258 struct psb_gtt *pg = &dev_priv->gtt; in psb_gtt_init() local
269 dev_priv->gtt_map = ioremap(pg->gtt_phys_start, pg->gtt_pages << PAGE_SHIFT); in psb_gtt_init()
290 struct psb_gtt *pg = &dev_priv->gtt; in psb_gtt_resume() local
[all …]
Dpsb_drv.c129 struct psb_gtt *pg = &dev_priv->gtt; in psb_do_init() local
133 if (pg->mmu_gatt_start & 0x0FFFFFFF) { in psb_do_init()
138 stolen_gtt = (pg->stolen_size >> PAGE_SHIFT) * 4; in psb_do_init()
140 stolen_gtt = (stolen_gtt < pg->gtt_pages) ? stolen_gtt : pg->gtt_pages; in psb_do_init()
142 dev_priv->gatt_free_offset = pg->mmu_gatt_start + in psb_do_init()
159 PSB_WSGX32(pg->gatt_start, PSB_CR_BIF_TWOD_REQ_BASE); in psb_do_init()
186 struct psb_gtt *pg = &dev_priv->gtt; in psb_driver_unload() local
191 pg->mmu_gatt_start, in psb_driver_unload()
240 struct psb_gtt *pg; in psb_driver_load() local
247 pg = &dev_priv->gtt; in psb_driver_load()
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-palmas.c28 struct palmas_gpio *pg = gpiochip_get_data(gc); in palmas_gpio_get() local
29 struct palmas *palmas = pg->palmas; in palmas_gpio_get()
60 struct palmas_gpio *pg = gpiochip_get_data(gc); in palmas_gpio_set() local
61 struct palmas *palmas = pg->palmas; in palmas_gpio_set()
82 struct palmas_gpio *pg = gpiochip_get_data(gc); in palmas_gpio_output() local
83 struct palmas *palmas = pg->palmas; in palmas_gpio_output()
104 struct palmas_gpio *pg = gpiochip_get_data(gc); in palmas_gpio_input() local
105 struct palmas *palmas = pg->palmas; in palmas_gpio_input()
122 struct palmas_gpio *pg = gpiochip_get_data(gc); in palmas_gpio_to_irq() local
123 struct palmas *palmas = pg->palmas; in palmas_gpio_to_irq()
/linux-6.12.1/kernel/trace/
Dftrace.c460 struct ftrace_profile_page *pg; in function_stat_next() local
462 pg = (struct ftrace_profile_page *)((unsigned long)rec & PAGE_MASK); in function_stat_next()
468 if ((void *)rec >= (void *)&pg->records[pg->index]) { in function_stat_next()
469 pg = pg->next; in function_stat_next()
470 if (!pg) in function_stat_next()
472 rec = &pg->records[0]; in function_stat_next()
601 struct ftrace_profile_page *pg; in ftrace_profile_reset() local
603 pg = stat->pages = stat->start; in ftrace_profile_reset()
605 while (pg) { in ftrace_profile_reset()
606 memset(pg->records, 0, PROFILE_RECORDS_SIZE); in ftrace_profile_reset()
[all …]
/linux-6.12.1/arch/arm/include/asm/
Dproc-fns.h166 u64 pg = cpu_get_ttbr(0); \
167 pg &= ~(PTRS_PER_PGD*sizeof(pgd_t)-1); \
168 (pgd_t *)phys_to_virt(pg); \
173 unsigned long pg; \
175 : "=r" (pg) : : "cc"); \
176 pg &= ~0x3fff; \
177 (pgd_t *)phys_to_virt(pg); \
/linux-6.12.1/net/ceph/
Ddebugfs.c93 struct ceph_pg_mapping *pg = in osdmap_show() local
96 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, in osdmap_show()
97 pg->pgid.seed); in osdmap_show()
98 for (i = 0; i < pg->pg_temp.len; i++) in osdmap_show()
100 pg->pg_temp.osds[i]); in osdmap_show()
104 struct ceph_pg_mapping *pg = in osdmap_show() local
107 seq_printf(s, "primary_temp %llu.%x %d\n", pg->pgid.pool, in osdmap_show()
108 pg->pgid.seed, pg->primary_temp.osd); in osdmap_show()
111 struct ceph_pg_mapping *pg = in osdmap_show() local
114 seq_printf(s, "pg_upmap %llu.%x [", pg->pgid.pool, in osdmap_show()
[all …]
Dosdmap.c709 struct ceph_pg_mapping *pg; in alloc_pg_mapping() local
711 pg = kmalloc(sizeof(*pg) + payload_len, GFP_NOIO); in alloc_pg_mapping()
712 if (!pg) in alloc_pg_mapping()
715 RB_CLEAR_NODE(&pg->node); in alloc_pg_mapping()
716 return pg; in alloc_pg_mapping()
719 static void free_pg_mapping(struct ceph_pg_mapping *pg) in free_pg_mapping() argument
721 WARN_ON(!RB_EMPTY_NODE(&pg->node)); in free_pg_mapping()
723 kfree(pg); in free_pg_mapping()
1152 struct ceph_pg_mapping *pg = in ceph_osdmap_destroy() local
1155 erase_pg_mapping(&map->pg_temp, pg); in ceph_osdmap_destroy()
[all …]
/linux-6.12.1/drivers/xen/
Dunpopulated-alloc.c129 struct page *pg = virt_to_page(vaddr + PAGE_SIZE * i); in fill_list() local
131 pg->zone_device_data = page_list; in fill_list()
132 page_list = pg; in fill_list()
179 struct page *pg = page_list; in xen_alloc_unpopulated_pages() local
181 BUG_ON(!pg); in xen_alloc_unpopulated_pages()
182 page_list = pg->zone_device_data; in xen_alloc_unpopulated_pages()
184 pages[i] = pg; in xen_alloc_unpopulated_pages()
188 ret = xen_alloc_p2m_entry(page_to_pfn(pg)); in xen_alloc_unpopulated_pages()
/linux-6.12.1/arch/powerpc/mm/
Dpgtable_32.c76 pte_t *pg; in map_kernel_page() local
83 pg = pte_alloc_kernel(pd, va); in map_kernel_page()
85 pg = early_pte_alloc_kernel(pd, va); in map_kernel_page()
86 if (pg) { in map_kernel_page()
91 BUG_ON((pte_present(*pg) | pte_hashpte(*pg)) && pgprot_val(prot)); in map_kernel_page()
92 set_pte_at(&init_mm, va, pg, pfn_pte(pa >> PAGE_SHIFT, prot)); in map_kernel_page()
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c665 struct mwifiex_power_group *pg; in mwifiex_set_tx_power() local
697 pg = (struct mwifiex_power_group *) in mwifiex_set_tx_power()
701 pg->first_rate_code = 0x00; in mwifiex_set_tx_power()
702 pg->last_rate_code = 0x03; in mwifiex_set_tx_power()
703 pg->modulation_class = MOD_CLASS_HR_DSSS; in mwifiex_set_tx_power()
704 pg->power_step = 0; in mwifiex_set_tx_power()
705 pg->power_min = (s8) dbm_min; in mwifiex_set_tx_power()
706 pg->power_max = (s8) dbm; in mwifiex_set_tx_power()
707 pg++; in mwifiex_set_tx_power()
709 pg->first_rate_code = 0x00; in mwifiex_set_tx_power()
[all …]
/linux-6.12.1/arch/microblaze/kernel/
DMakefile8 CFLAGS_REMOVE_timer.o = -pg
9 CFLAGS_REMOVE_intc.o = -pg
10 CFLAGS_REMOVE_ftrace.o = -pg
11 CFLAGS_REMOVE_process.o = -pg
/linux-6.12.1/arch/xtensa/boot/lib/
DMakefile12 CFLAGS_REMOVE_inflate.o = -pg
13 CFLAGS_REMOVE_zmem.o = -pg
14 CFLAGS_REMOVE_inftrees.o = -pg
15 CFLAGS_REMOVE_inffast.o = -pg

1234567891011