Home
last modified time | relevance | path

Searched refs:match_data (Results 1 – 25 of 68) sorted by relevance

123

/linux-6.6.21/drivers/pmdomain/starfive/
Djh71xx-pmu.c61 const struct jh71xx_pmu_match_data *match_data; member
240 pmd->domain_info = &pmu->match_data->domain_info[index]; in jh71xx_pmu_init_domain()
265 const struct jh71xx_pmu_match_data *match_data; in jh71xx_pmu_probe() local
287 match_data = of_device_get_match_data(dev); in jh71xx_pmu_probe()
288 if (!match_data) in jh71xx_pmu_probe()
291 pmu->genpd = devm_kcalloc(dev, match_data->num_domains, in jh71xx_pmu_probe()
298 pmu->match_data = match_data; in jh71xx_pmu_probe()
300 pmu->genpd_data.num_domains = match_data->num_domains; in jh71xx_pmu_probe()
302 for (i = 0; i < match_data->num_domains; i++) { in jh71xx_pmu_probe()
/linux-6.6.21/crypto/asymmetric_keys/
Dasymmetric_type.c262 const struct key_match_data *match_data) in asymmetric_key_cmp() argument
265 const struct asymmetric_key_id *match_id = match_data->preparsed; in asymmetric_key_cmp()
275 const struct key_match_data *match_data) in asymmetric_key_cmp_partial() argument
278 const struct asymmetric_key_id *match_id = match_data->preparsed; in asymmetric_key_cmp_partial()
288 const struct key_match_data *match_data) in asymmetric_key_cmp_name() argument
291 const struct asymmetric_key_id *match_id = match_data->preparsed; in asymmetric_key_cmp_name()
310 static int asymmetric_key_match_preparse(struct key_match_data *match_data) in asymmetric_key_match_preparse() argument
313 const char *spec = match_data->raw_data; in asymmetric_key_match_preparse()
342 match_data->preparsed = match_id; in asymmetric_key_match_preparse()
343 match_data->cmp = cmp; in asymmetric_key_match_preparse()
[all …]
/linux-6.6.21/drivers/mfd/
Darizona-i2c.c26 const void *match_data; in arizona_i2c_probe() local
32 match_data = device_get_match_data(&i2c->dev); in arizona_i2c_probe()
33 if (match_data) in arizona_i2c_probe()
34 type = (unsigned long)match_data; in arizona_i2c_probe()
Darizona-spi.c194 const void *match_data; in arizona_spi_probe() local
200 match_data = device_get_match_data(&spi->dev); in arizona_spi_probe()
201 if (match_data) in arizona_spi_probe()
202 type = (unsigned long)match_data; in arizona_spi_probe()
/linux-6.6.21/drivers/clk/
Dclk-palmas.c234 const struct palmas_clks_of_match_data *match_data; in palmas_clks_probe() local
238 match_data = of_device_get_match_data(&pdev->dev); in palmas_clks_probe()
239 if (!match_data) in palmas_clks_probe()
252 cinfo->clk_desc = &match_data->desc; in palmas_clks_probe()
253 cinfo->hw.init = &match_data->init; in palmas_clks_probe()
257 match_data->desc.clk_name, ret); in palmas_clks_probe()
/linux-6.6.21/net/sched/
Dem_ipt.c25 u8 match_data[] __aligned(8); member
56 mtpar.matchinfo = (void *)im->match_data; in check_match()
169 nla_memcpy(im->match_data, tb[TCA_EM_IPT_MATCH_DATA], mdata_len); in em_ipt_change()
196 .matchinfo = im->match_data, in em_ipt_destroy()
241 acpar.matchinfo = im->match_data; in em_ipt_match()
264 im->match_data) < 0) in em_ipt_dump()
/linux-6.6.21/lib/kunit/
Dresource.c64 void *match_data) in kunit_destroy_resource() argument
67 match_data); in kunit_destroy_resource()
128 struct kunit_resource *res, void *match_data) in __kunit_action_match() argument
130 struct kunit_action_ctx *match_ctx = (struct kunit_action_ctx *)match_data; in __kunit_action_match()
/linux-6.6.21/drivers/base/
Ddevres.c191 dr_match_t match, void *match_data, in devres_for_each_res() argument
209 if (match && !match(dev, dr->data, match_data)) in devres_for_each_res()
255 dr_match_t match, void *match_data) in find_dr() argument
264 if (match && !match(dev, dr->data, match_data)) in find_dr()
287 dr_match_t match, void *match_data) in devres_find() argument
293 dr = find_dr(dev, release, match, match_data); in devres_find()
317 dr_match_t match, void *match_data) in devres_get() argument
324 dr = find_dr(dev, new_dr->node.release, match, match_data); in devres_get()
353 dr_match_t match, void *match_data) in devres_remove() argument
359 dr = find_dr(dev, release, match, match_data); in devres_remove()
[all …]
/linux-6.6.21/drivers/iio/temperature/
Dtmp117.c130 unsigned long match_data; in tmp117_identify() local
146 match_data = (uintptr_t)device_get_match_data(&client->dev); in tmp117_identify()
147 if (match_data) in tmp117_identify()
148 return match_data; in tmp117_identify()
/linux-6.6.21/include/linux/
Dkey-type.h52 const struct key_match_data *match_data);
108 int (*match_preparse)(struct key_match_data *match_data);
112 void (*match_free)(struct key_match_data *match_data);
Ddevice.h272 typedef int (*dr_match_t)(struct device *dev, void *res, void *match_data);
282 dr_match_t match, void *match_data,
288 dr_match_t match, void *match_data);
290 dr_match_t match, void *match_data);
292 dr_match_t match, void *match_data);
294 dr_match_t match, void *match_data);
296 dr_match_t match, void *match_data);
/linux-6.6.21/include/kunit/
Dresource.h301 void *match_data);
325 void *match_data) in kunit_find_resource() argument
333 if (match(test, res, (void *)match_data)) { in kunit_find_resource()
369 void *match_data);
/linux-6.6.21/net/dns_resolver/
Ddns_key.c250 const struct key_match_data *match_data) in dns_resolver_cmp() argument
253 const char *src = key->description, *dsp = match_data->raw_data; in dns_resolver_cmp()
284 static int dns_resolver_match_preparse(struct key_match_data *match_data) in dns_resolver_match_preparse() argument
286 match_data->lookup_type = KEYRING_SEARCH_LOOKUP_ITERATE; in dns_resolver_match_preparse()
287 match_data->cmp = dns_resolver_cmp; in dns_resolver_match_preparse()
/linux-6.6.21/security/keys/
Drequest_key.c28 ctx->match_data.cmp(key, &ctx->match_data) && in check_cached_key()
589 .match_data.cmp = key_default_cmp, in request_key_and_link()
590 .match_data.raw_data = description, in request_key_and_link()
591 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in request_key_and_link()
605 ret = type->match_preparse(&ctx.match_data); in request_key_and_link()
659 type->match_free(&ctx.match_data); in request_key_and_link()
792 .match_data.cmp = key_default_cmp, in request_key_rcu()
793 .match_data.raw_data = description, in request_key_rcu()
794 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in request_key_rcu()
Dkeyring.c566 const struct key_match_data *match_data) in key_default_cmp() argument
568 return strcmp(key->description, match_data->raw_data) == 0; in key_default_cmp()
609 if (!ctx->match_data.cmp(key, &ctx->match_data)) { in keyring_search_iterator()
648 if (ctx->match_data.lookup_type == KEYRING_SEARCH_LOOKUP_DIRECT) { in search_keyring()
693 if (ctx->match_data.lookup_type == KEYRING_SEARCH_LOOKUP_ITERATE || in search_nested_keyrings()
947 .match_data.cmp = key_default_cmp, in keyring_search()
948 .match_data.raw_data = description, in keyring_search()
949 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in keyring_search()
958 ret = type->match_preparse(&ctx.match_data); in keyring_search()
968 type->match_free(&ctx.match_data); in keyring_search()
[all …]
Dprocess_keys.c195 .match_data.cmp = key_default_cmp, in get_user_session_keyring_rcu()
196 .match_data.raw_data = buf, in get_user_session_keyring_rcu()
197 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in get_user_session_keyring_rcu()
588 const struct key_match_data *match_data) in lookup_user_key_possessed() argument
590 return key == match_data->raw_data; in lookup_user_key_possessed()
615 .match_data.cmp = lookup_user_key_possessed, in lookup_user_key()
616 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in lookup_user_key()
759 ctx.match_data.raw_data = key; in lookup_user_key()
Drequest_key_auth.c253 .match_data.cmp = key_default_cmp, in key_get_instantiation_authkey()
254 .match_data.raw_data = description, in key_get_instantiation_authkey()
255 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in key_get_instantiation_authkey()
/linux-6.6.21/net/
Ddevres.c49 static int netdev_devres_match(struct device *dev, void *this, void *match_data) in netdev_devres_match() argument
52 struct net_device *ndev = match_data; in netdev_devres_match()
/linux-6.6.21/drivers/net/phy/
Dmdio_devres.c57 void *this, void *match_data) in mdiobus_devres_match() argument
60 struct mii_bus *mii = match_data; in mdiobus_devres_match()
/linux-6.6.21/drivers/soc/qcom/
Dpmic_glink.c248 const unsigned long *match_data; in pmic_glink_probe() local
265 match_data = (unsigned long *)of_device_get_match_data(&pdev->dev); in pmic_glink_probe()
266 if (match_data) in pmic_glink_probe()
267 pg->client_mask = *match_data; in pmic_glink_probe()
/linux-6.6.21/kernel/
Diomem.c131 static int devm_memremap_match(struct device *dev, void *res, void *match_data) in devm_memremap_match() argument
133 return *(void **)res == match_data; in devm_memremap_match()
/linux-6.6.21/arch/mips/generic/
Dboard-ingenic.c108 static __init const void *ingenic_fixup_fdt(const void *fdt, const void *match_data) in ingenic_fixup_fdt() argument
118 mips_machtype = (unsigned long)match_data; in ingenic_fixup_fdt()
/linux-6.6.21/drivers/dma/ti/
Dk3-udma.c172 const struct udma_match_data *match_data; member
867 if (uc->ud->match_data->type == DMA_TYPE_UDMA && ucc->pkt_mode && in udma_start_desc()
928 const struct udma_match_data *match_data = in udma_start() local
929 uc->ud->match_data; in udma_start()
943 match_data->statictr_z_mask)); in udma_start()
1703 if (ud->match_data->type == DMA_TYPE_UDMA) { in udma_alloc_tx_resources()
1794 if (ud->match_data->type == DMA_TYPE_UDMA) { in udma_alloc_rx_resources()
1881 if (ud->match_data->flags & UDMA_FLAG_BURST_SIZE) { in udma_tisci_m2m_channel_config()
1884 burst_size = ud->match_data->burst_size[tpl]; in udma_tisci_m2m_channel_config()
1935 if (ud->match_data->flags & UDMA_FLAG_BURST_SIZE) { in bcdma_tisci_m2m_channel_config()
[all …]
/linux-6.6.21/lib/
Ddevres.c21 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() argument
23 return *(void **)res == match_data; in devm_ioremap_match()
260 void *match_data) in devm_ioport_map_match() argument
262 return *(void **)res == match_data; in devm_ioport_map_match()
/linux-6.6.21/sound/soc/ti/
Dj721e-evm.c80 const struct j721e_audio_match_data *match_data; member
558 const struct j721e_audio_match_data *match_data = priv->match_data; in j721e_calculate_rate_range() local
568 match_data->pll_rates[J721E_CLK_PARENT_44100]; in j721e_calculate_rate_range()
577 match_data->pll_rates[J721E_CLK_PARENT_48000]; in j721e_calculate_rate_range()
726 if (priv->match_data->board_type != J721E_BOARD_CPB_IVI) in j721e_soc_probe_ivi()
866 priv->match_data = match->data; in j721e_soc_probe()
868 priv->dai_links = devm_kcalloc(&pdev->dev, priv->match_data->num_links, in j721e_soc_probe()

123