Home
last modified time | relevance | path

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

1234

/openbmc/u-boot/drivers/core/
H A Ddevres.c99 dr_match_t match, void *match_data) in devres_find() argument
106 if (match && !match(dev, dr->data, match_data)) in devres_find()
115 dr_match_t match, void *match_data) in devres_get() argument
120 res = devres_find(dev, new_dr->release, match, match_data); in devres_get()
132 dr_match_t match, void *match_data) in devres_remove() argument
136 res = devres_find(dev, release, match, match_data); in devres_remove()
148 dr_match_t match, void *match_data) in devres_destroy() argument
152 res = devres_remove(dev, release, match, match_data); in devres_destroy()
161 dr_match_t match, void *match_data) in devres_release() argument
165 res = devres_remove(dev, release, match, match_data); in devres_release()
/openbmc/linux/drivers/pmdomain/starfive/
H A 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()
/openbmc/u-boot/include/dm/
H A Ddevice.h700 typedef int (*dr_match_t)(struct udevice *dev, void *res, void *match_data);
762 dr_match_t match, void *match_data);
778 dr_match_t match, void *match_data);
795 dr_match_t match, void *match_data);
815 dr_match_t match, void *match_data);
832 dr_match_t match, void *match_data);
891 dr_match_t match, void *match_data) in devres_find() argument
897 dr_match_t match, void *match_data) in devres_get() argument
903 dr_match_t match, void *match_data) in devres_remove() argument
909 dr_match_t match, void *match_data) in devres_destroy() argument
[all …]
/openbmc/linux/crypto/asymmetric_keys/
H A Dasymmetric_type.c263 const struct key_match_data *match_data) in asymmetric_key_cmp() argument
266 const struct asymmetric_key_id *match_id = match_data->preparsed; in asymmetric_key_cmp()
276 const struct key_match_data *match_data) in asymmetric_key_cmp_partial() argument
279 const struct asymmetric_key_id *match_id = match_data->preparsed; in asymmetric_key_cmp_partial()
289 const struct key_match_data *match_data) in asymmetric_key_cmp_name() argument
292 const struct asymmetric_key_id *match_id = match_data->preparsed; in asymmetric_key_cmp_name()
314 const char *spec = match_data->raw_data; in asymmetric_key_match_preparse()
343 match_data->preparsed = match_id; in asymmetric_key_match_preparse()
344 match_data->cmp = cmp; in asymmetric_key_match_preparse()
345 match_data->lookup_type = KEYRING_SEARCH_LOOKUP_ITERATE; in asymmetric_key_match_preparse()
[all …]
/openbmc/linux/drivers/mfd/
H A 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()
H A 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()
/openbmc/qemu/hw/misc/
H A Dpci-testdev.c45 bool match_data; member
116 test->match_data, in OBJECT_DECLARE_SIMPLE_TYPE()
130 test->match_data, in pci_testdev_stop()
179 if (test->match_data && test->size != size) { in pci_testdev_write()
182 if (test->match_data && val != test->hdr->data) { in pci_testdev_write()
280 test->match_data = strcmp(IOTEST_TEST(i), "wildcard-eventfd"); in pci_testdev_realize()
281 if (IOTEST_IS_MEM(i) && !test->match_data) { in pci_testdev_realize()
287 test->hdr->data = test->match_data ? IOTEST_DATAMATCH : IOTEST_NOMATCH; in pci_testdev_realize()
/openbmc/linux/drivers/clk/
H A 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()
/openbmc/linux/net/sched/
H A 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()
/openbmc/linux/lib/kunit/
H A 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()
/openbmc/linux/drivers/iio/temperature/
H A 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()
/openbmc/linux/include/linux/
H A 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);
/openbmc/linux/drivers/base/
H A 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
353 dr_match_t match, void *match_data) in devres_remove() argument
359 dr = find_dr(dev, release, match, match_data); in devres_remove()
391 dr_match_t match, void *match_data) in devres_destroy() argument
[all …]
/openbmc/linux/include/kunit/
H A 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);
/openbmc/linux/net/dns_resolver/
H A 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()
/openbmc/linux/security/keys/
H A 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()
H A 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()
950 .match_data.cmp = key_default_cmp, in keyring_search()
951 .match_data.raw_data = description, in keyring_search()
952 .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, in keyring_search()
961 ret = type->match_preparse(&ctx.match_data); in keyring_search()
971 type->match_free(&ctx.match_data); in keyring_search()
1202 if (key != ctx->match_data.raw_data) in keyring_detect_cycle_iterator()
1220 .match_data.raw_data = A, in keyring_detect_cycle()
[all …]
H A 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()
H A 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()
/openbmc/qemu/hw/core/
H A Dloader-fit.c179 int cfg, void *opaque, const void *match_data, in fit_load_fdt() argument
214 load_data = ldr->fdt_filter(opaque, data, match_data, &load_addr); in fit_load_fdt()
266 const void *itb, *match_data = NULL; in load_fit() local
293 match_data = match->data; in load_fit()
326 ret = fit_load_fdt(ldr, itb, cfg_off, opaque, match_data, kernel_end, in load_fit()
/openbmc/linux/net/
H A 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()
/openbmc/linux/drivers/net/phy/
H A Dmdio_devres.c57 void *this, void *match_data) in mdiobus_devres_match() argument
60 struct mii_bus *mii = match_data; in mdiobus_devres_match()
/openbmc/linux/kernel/
H A 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()
/openbmc/linux/arch/mips/generic/
H A 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()
/openbmc/linux/drivers/soc/qcom/
H A Dpmic_glink.c270 const unsigned long *match_data; in pmic_glink_probe() local
287 match_data = (unsigned long *)of_device_get_match_data(&pdev->dev); in pmic_glink_probe()
288 if (match_data) in pmic_glink_probe()
289 pg->client_mask = *match_data; in pmic_glink_probe()

1234