Home
last modified time | relevance | path

Searched refs:variant (Results 1 – 25 of 530) sorted by relevance

12345678910>>...22

/linux-6.12.1/tools/testing/selftests/exec/
Dnon-regular.c48 const FIXTURE_VARIANT(file) *variant); in FIXTURE_VARIANT()
54 const FIXTURE_VARIANT(file) *variant) in setup_link()
82 const FIXTURE_VARIANT(file) *variant) in setup_dir()
97 const FIXTURE_VARIANT(file) *variant) in setup_node()
102 dev = makedev(variant->major, variant->minor); in setup_node()
103 rc = mknod(self->pathname, 0755 | variant->mode, dev); in setup_node()
107 variant->name); in setup_node()
135 const FIXTURE_VARIANT(file) *variant) in setup_fifo()
149 ASSERT_GT(asprintf(&self->pathname, "%s.test", variant->name), 6); in FIXTURE_SETUP()
150 self->is_dir = variant->is_dir; in FIXTURE_SETUP()
[all …]
/linux-6.12.1/drivers/video/fbdev/
Ds3c-fb.c60 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) argument
61 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00) argument
62 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04) argument
63 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08) argument
64 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C) argument
136 struct s3c_fb_variant variant; member
170 struct s3c_fb_win_variant variant; member
209 struct s3c_fb_variant variant; member
229 return win->variant.valid_bpp & VALID_BPP(bpp); in s3c_fb_validate_win_bpp()
266 if (sfb->variant.palette[win->index] != 0) { in s3c_fb_check_var()
[all …]
/linux-6.12.1/lib/
Ddhry_1.c45 Proc_7(10, Int_Glob, &Ptr_Glob->variant.var_1.Int_Comp); in Proc_3()
59 Ptr_Val_Par->variant.var_1.Int_Comp = 5; in Proc_1()
60 Next_Record->variant.var_1.Int_Comp = in Proc_1()
61 Ptr_Val_Par->variant.var_1.Int_Comp; in Proc_1()
67 Next_Record->variant.var_1.Int_Comp = 6; in Proc_1()
68 Proc_6(Ptr_Val_Par->variant.var_1.Enum_Comp, in Proc_1()
69 &Next_Record->variant.var_1.Enum_Comp); in Proc_1()
71 Proc_7(Next_Record->variant.var_1.Int_Comp, 10, in Proc_1()
72 &Next_Record->variant.var_1.Int_Comp); in Proc_1()
154 Ptr_Glob->variant.var_1.Enum_Comp = Ident_3; in dhry()
[all …]
/linux-6.12.1/drivers/mmc/host/
Dmmci.c378 if (readl(host->base + MMCISTATUS) & host->variant->busy_detect_flag) in mmci_card_busy()
428 datactrl |= host->datactrl_reg & (host->variant->busy_dpsm_flag | in mmci_write_datactrlreg()
429 host->variant->datactrl_mask_sdio); in mmci_write_datactrlreg()
442 struct variant_data *variant = host->variant; in mmci_set_clkreg() local
443 u32 clk = variant->clkreg; in mmci_set_clkreg()
449 if (variant->explicit_mclk_control) { in mmci_set_clkreg()
453 if (variant->st_clkdiv) in mmci_set_clkreg()
456 } else if (variant->st_clkdiv) { in mmci_set_clkreg()
478 clk |= variant->clkreg_enable; in mmci_set_clkreg()
490 clk |= variant->clkreg_8bit_bus_enable; in mmci_set_clkreg()
[all …]
/linux-6.12.1/drivers/phy/broadcom/
Dphy-bcm63xx-usbh.c102 const struct bcm63xx_usbh_phy_variant *variant; member
227 return (usbh->variant->regs[reg] >= 0); in usbh_has_reg()
232 return __raw_readl(usbh->base + usbh->variant->regs[reg]); in usbh_readl()
238 __raw_writel(value, usbh->base + usbh->variant->regs[reg]); in usbh_writel()
277 if (usbh->device_mode && usbh->variant->swapctl_dev_set) in bcm63xx_usbh_phy_init()
278 val |= usbh->variant->swapctl_dev_set; in bcm63xx_usbh_phy_init()
286 val |= usbh->variant->setup_set; in bcm63xx_usbh_phy_init()
287 val &= ~usbh->variant->setup_clr; in bcm63xx_usbh_phy_init()
295 val |= usbh->variant->usc_set; in bcm63xx_usbh_phy_init()
300 if (usbh->variant->tpc_val && in bcm63xx_usbh_phy_init()
[all …]
/linux-6.12.1/drivers/input/keyboard/
Dstmpe-keypad.c132 const struct stmpe_keypad_variant *variant; member
143 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_read_data() local
148 if (variant->auto_increment) in stmpe_keypad_read_data()
150 variant->num_data, data); in stmpe_keypad_read_data()
152 for (i = 0; i < variant->num_data; i++) { in stmpe_keypad_read_data()
167 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_irq() local
176 for (i = 0; i < variant->num_normal_data; i++) { in stmpe_keypad_irq()
197 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_altfunc_init() local
198 unsigned int col_gpios = variant->col_gpios; in stmpe_keypad_altfunc_init()
199 unsigned int row_gpios = variant->row_gpios; in stmpe_keypad_altfunc_init()
[all …]
/linux-6.12.1/drivers/watchdog/
Dstarfive-wdt.c106 const struct starfive_wdt_variant *variant; member
210 writel(wdt->variant->unlock_key, wdt->base + wdt->variant->unlock); in starfive_wdt_unlock()
216 writel(~wdt->variant->unlock_key, wdt->base + wdt->variant->unlock); in starfive_wdt_lock()
225 val = readl(wdt->base + wdt->variant->control); in starfive_wdt_enable_reset()
226 val |= STARFIVE_WDT_RESET_EN << wdt->variant->enrst_shift; in starfive_wdt_enable_reset()
227 writel(val, wdt->base + wdt->variant->control); in starfive_wdt_enable_reset()
233 return !!readl(wdt->base + wdt->variant->int_status); in starfive_wdt_raise_irq_status()
241 return readl_poll_timeout_atomic(wdt->base + wdt->variant->int_clr, value, in starfive_wdt_wait_int_free()
242 !(value & BIT(wdt->variant->intclr_ava_shift)), in starfive_wdt_wait_int_free()
251 if (wdt->variant->intclr_check) { in starfive_wdt_int_clr()
[all …]
/linux-6.12.1/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_i2c.c41 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer()
59 ioread8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer()
61 iowrite8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer()
76 if (hdmi->variant->ddc_fifo_has_dir) { in xfer_msg()
98 hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in xfer_msg()
202 hdmi->variant->field_ddc_en); in sun4i_hdmi_init_regmap_fields()
208 hdmi->variant->field_ddc_start); in sun4i_hdmi_init_regmap_fields()
214 hdmi->variant->field_ddc_reset); in sun4i_hdmi_init_regmap_fields()
220 hdmi->variant->field_ddc_addr_reg); in sun4i_hdmi_init_regmap_fields()
226 hdmi->variant->field_ddc_slave_addr); in sun4i_hdmi_init_regmap_fields()
[all …]
/linux-6.12.1/sound/soc/qcom/
Dlpass-cpu.c47 const struct lpass_variant *v = drvdata->variant; in lpass_cpu_init_i2sctl_bitfields()
431 LPAIF_I2SCTL_REG(drvdata->variant, dai->driver->id), 0); in lpass_cpu_daiops_probe()
466 const struct lpass_variant *variant = drvdata->variant; in asoc_qcom_of_xlate_dai_name() local
471 for (i = 0; i < variant->num_dai; i++) { in asoc_qcom_of_xlate_dai_name()
472 if (variant->dai_driver[i].id == id) { in asoc_qcom_of_xlate_dai_name()
473 *dai_name = variant->dai_driver[i].name; in asoc_qcom_of_xlate_dai_name()
491 const struct lpass_variant *v = drvdata->variant; in lpass_cpu_regmap_writeable()
533 const struct lpass_variant *v = drvdata->variant; in lpass_cpu_regmap_readable()
581 const struct lpass_variant *v = drvdata->variant; in lpass_cpu_regmap_volatile()
616 const struct lpass_variant *v = drvdata->variant; in lpass_hdmi_init_bitfields()
[all …]
/linux-6.12.1/drivers/clk/bcm/
Dclk-raspberrypi.c54 struct raspberrypi_clk_variant *variant; member
226 struct raspberrypi_clk_variant *variant = data->variant; in raspberrypi_fw_dumb_determine_rate() local
241 if (variant->minimize && req->min_rate > 0) in raspberrypi_fw_dumb_determine_rate()
257 struct raspberrypi_clk_variant *variant) in raspberrypi_clk_register() argument
269 data->variant = variant; in raspberrypi_clk_register()
303 if (variant->clkdev) { in raspberrypi_clk_register()
305 NULL, variant->clkdev); in raspberrypi_clk_register()
312 if (variant->min_rate) { in raspberrypi_clk_register()
315 clk_hw_set_rate_range(&data->hw, variant->min_rate, max_rate); in raspberrypi_clk_register()
318 if (rate < variant->min_rate) { in raspberrypi_clk_register()
[all …]
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Dscm_rights.c69 const FIXTURE_VARIANT(scm_rights) *variant) in count_sockets()
79 len = strlen(variant->name); in count_sockets()
84 if (strncmp(line, variant->name, len)) in count_sockets()
108 ret = count_sockets(_metadata, variant); in FIXTURE_SETUP()
118 ret = count_sockets(_metadata, variant); in FIXTURE_TEARDOWN()
157 const FIXTURE_VARIANT(scm_rights) *variant, in create_socketpairs()
165 ret = socketpair(AF_UNIX, variant->type, 0, self->fd + i); in create_socketpairs()
172 const FIXTURE_VARIANT(scm_rights) *variant, in __create_sockets()
177 if (variant->test_listener) in __create_sockets()
180 create_socketpairs(_metadata, self, variant, n); in __create_sockets()
[all …]
Dunix_connect.c112 if (variant->sun_path[0]) in FIXTURE_TEARDOWN()
124 self->server = socket(self->family, variant->type, 0); in TEST_F()
127 addrlen = offsetof(struct sockaddr_un, sun_path) + variant->len; in TEST_F()
128 memcpy(&addr.sun_path, variant->sun_path, variant->len); in TEST_F()
133 if (variant->type == SOCK_STREAM) { in TEST_F()
138 err = unshare(variant->flags); in TEST_F()
141 self->client = socket(self->family, variant->type, 0); in TEST_F()
145 ASSERT_EQ(variant->err, err == -1 ? errno : 0); in TEST_F()
/linux-6.12.1/arch/arm64/lib/
Dinsn.c294 enum aarch64_insn_variant variant, in aarch64_insn_gen_comp_branch_imm() argument
316 switch (variant) { in aarch64_insn_gen_comp_branch_imm()
323 pr_err("%s: unknown variant encoding %d\n", __func__, variant); in aarch64_insn_gen_comp_branch_imm()
483 enum aarch64_insn_variant variant, in aarch64_insn_gen_load_store_pair() argument
507 switch (variant) { in aarch64_insn_gen_load_store_pair()
526 pr_err("%s: unknown variant encoding %d\n", __func__, variant); in aarch64_insn_gen_load_store_pair()
732 int imm, enum aarch64_insn_variant variant, in aarch64_insn_gen_add_sub_imm() argument
755 switch (variant) { in aarch64_insn_gen_add_sub_imm()
762 pr_err("%s: unknown variant encoding %d\n", __func__, variant); in aarch64_insn_gen_add_sub_imm()
794 enum aarch64_insn_variant variant, in aarch64_insn_gen_bitfield() argument
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Dip_local_port_range.c190 fd = socket(variant->so_domain, variant->so_type, variant->so_protocol); in TEST_F()
240 fd = socket(variant->so_domain, variant->so_type, variant->so_protocol); in TEST_F()
286 fd = socket(variant->so_domain, variant->so_type, variant->so_protocol); in TEST_F()
313 fd = socket(variant->so_domain, variant->so_type, variant->so_protocol); in TEST_F()
335 fd = socket(variant->so_domain, variant->so_type, variant->so_protocol); in TEST_F()
368 fd = socket(variant->so_domain, variant->so_type, 0); in TEST_F()
386 switch (variant->so_domain) { in TEST_F()
423 fd = socket(variant->so_domain, variant->so_type, variant->so_protocol); in TEST_F()
Dso_incoming_cpu.c125 const FIXTURE_VARIANT(so_incoming_cpu) *variant, in create_server()
133 if (variant->when_to_set == BEFORE_REUSEPORT) in create_server()
142 if (variant->when_to_set == BEFORE_LISTEN) in create_server()
151 if (variant->when_to_set == AFTER_LISTEN) in create_server()
159 const FIXTURE_VARIANT(so_incoming_cpu) *variant) in create_servers()
164 self->servers[i] = create_server(_metadata, self, variant, i); in create_servers()
172 if (variant->when_to_set == AFTER_ALL_LISTEN) { in create_servers()
237 create_servers(_metadata, self, variant); in TEST_F()
246 create_servers(_metadata, self, variant); in TEST_F()
249 server = create_server(_metadata, self, variant, -1); in TEST_F()
[all …]
/linux-6.12.1/drivers/clocksource/
Dsamsung_pwm_timer.c66 struct samsung_pwm_variant variant; member
107 bits = (fls(divisor) - 1) - pwm.variant.div_base; in samsung_timer_set_divisor()
225 if (pwm.variant.has_tint_cstat) { in samsung_clockevent_resume()
249 if (pwm.variant.has_tint_cstat) { in samsung_clock_event_isr()
284 if (pwm.variant.has_tint_cstat) { in samsung_clockevent_init()
352 pwm.variant.bits, clock_rate); in samsung_clocksource_init()
354 samsung_clocksource.mask = CLOCKSOURCE_MASK(pwm.variant.bits); in samsung_clocksource_init()
362 pwm.tcnt_max = (1UL << pwm.variant.bits) - 1; in samsung_timer_resources()
363 if (pwm.variant.bits == 16) { in samsung_timer_resources()
380 mask = ~pwm.variant.output_mask & ((1 << SAMSUNG_PWM_NUM) - 1); in _samsung_pwm_clocksource_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/pl111/
Dpl111_display.c56 u32 cpp = DIV_ROUND_UP(priv->variant->fb_depth, 8); in pl111_mode_valid()
175 if (priv->variant->broken_clockdivider) in pl111_display_enable()
249 if (priv->variant->st_bitmux_control) in pl111_display_enable()
261 if (priv->variant->st_bitmux_control) in pl111_display_enable()
266 if (priv->variant->st_bitmux_control) in pl111_display_enable()
271 if (priv->variant->st_bitmux_control) in pl111_display_enable()
278 if (priv->variant->st_bitmux_control) in pl111_display_enable()
284 if (priv->variant->is_pl110) in pl111_display_enable()
286 else if (priv->variant->st_bitmux_control) in pl111_display_enable()
292 if (priv->variant->is_pl110) in pl111_display_enable()
[all …]
/linux-6.12.1/tools/testing/selftests/mm/
Dmdwe_test.c111 EXPECT_EQ(prctl(PR_SET_MDWE, variant->first_flags, 0L, 0L, 0L), 0); in TEST_F()
113 ret = prctl(PR_SET_MDWE, variant->second_flags, 0L, 0L, 0L); in TEST_F()
114 if (variant->should_work) { in TEST_F()
118 ASSERT_EQ(ret, variant->second_flags); in TEST_F()
168 static bool executable_map_should_fail(const FIXTURE_VARIANT(mdwe) *variant) in executable_map_should_fail() argument
170 return variant->enabled && (!variant->forked || variant->inherit); in executable_map_should_fail()
182 if (!variant->enabled) in FIXTURE_SETUP()
186 if (!variant->inherit) in FIXTURE_SETUP()
197 if (variant->forked) { in FIXTURE_SETUP()
226 if (executable_map_should_fail(variant)) { in TEST_F()
[all …]
/linux-6.12.1/drivers/mfd/
Drk8xx-i2c.c21 int variant; member
169 .variant = RK805_ID,
174 .variant = RK806_ID,
179 .variant = RK808_ID,
184 .variant = RK809_ID,
189 .variant = RK816_ID,
194 .variant = RK817_ID,
199 .variant = RK818_ID,
216 return rk8xx_probe(&client->dev, data->variant, client->irq, regmap); in rk8xx_i2c_probe()
/linux-6.12.1/drivers/gpu/drm/msm/registers/
Dgen_header.py280 def __init__(self, attrs, domain, variant, parent, index_type): argument
286 self.variant = variant
454 def prefix(self, variant=None): argument
455 if self.current_prefix_type == "variant" and variant:
456 return variant
504 variant = attrs["variants"].split(",")[0]
505 if "-" in variant:
506 variant = variant[:variant.index("-")]
510 assert varset.has_name(variant)
512 return variant
[all …]
/linux-6.12.1/drivers/soc/ti/
Dk3-socinfo.c83 k3_chipinfo_variant_to_sr(unsigned int partno, unsigned int variant, in k3_chipinfo_variant_to_sr() argument
88 if (variant >= ARRAY_SIZE(j721e_rev_string_map)) in k3_chipinfo_variant_to_sr()
91 j721e_rev_string_map[variant]); in k3_chipinfo_variant_to_sr()
94 variant++; in k3_chipinfo_variant_to_sr()
96 variant); in k3_chipinfo_variant_to_sr()
116 u32 variant; in k3_chipinfo_probe() local
137 variant = (jtag_id & CTRLMMR_WKUP_JTAGID_VARIANT_MASK) >> in k3_chipinfo_probe()
153 ret = k3_chipinfo_variant_to_sr(partno_id, variant, soc_dev_attr); in k3_chipinfo_probe()
/linux-6.12.1/tools/testing/selftests/landlock/
Dnet_test.c276 ASSERT_EQ(0, set_service(&self->srv0, variant->prot, 0)); in FIXTURE_SETUP()
277 ASSERT_EQ(0, set_service(&self->srv1, variant->prot, 1)); in FIXTURE_SETUP()
278 ASSERT_EQ(0, set_service(&self->srv2, variant->prot, 2)); in FIXTURE_SETUP()
543 if (variant->sandbox == TCP_SANDBOX) { in TEST_F()
582 is_restricted(&variant->prot, variant->sandbox), in TEST_F()
587 is_restricted(&variant->prot, variant->sandbox), in TEST_F()
588 is_restricted(&variant->prot, variant->sandbox)); in TEST_F()
593 if (variant->sandbox == TCP_SANDBOX) { in TEST_F()
630 is_restricted(&variant->prot, variant->sandbox)); in TEST_F()
633 is_restricted(&variant->prot, variant->sandbox), in TEST_F()
[all …]
Dscoped_abstract_unix_test.c85 can_connect_to_parent = !variant->domain_child; in TEST_F()
88 if (variant->domain_both) { in TEST_F()
103 if (variant->domain_child) in TEST_F()
138 if (variant->domain_parent) in TEST_F()
182 can_connect_to_child = !variant->domain_parent; in TEST_F()
186 if (variant->domain_both) { in TEST_F()
200 if (variant->domain_child) in TEST_F()
231 if (variant->domain_parent) in TEST_F()
312 can_connect_to_child = (variant->domain_grand_child != SCOPE_SANDBOX); in TEST_F()
314 (variant->domain_children != SCOPE_SANDBOX)); in TEST_F()
[all …]
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-mediatek.c77 const struct mediatek_dwmac_variant *variant; member
474 if (tx_delay_ps < plat->variant->tx_delay_max) { in mediatek_dwmac_config_dt()
483 if (rx_delay_ps < plat->variant->rx_delay_max) { in mediatek_dwmac_config_dt()
502 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_clk_init() local
505 plat->clks = devm_kcalloc(plat->dev, variant->num_clks, sizeof(*plat->clks), GFP_KERNEL); in mediatek_dwmac_clk_init()
509 for (i = 0; i < variant->num_clks; i++) in mediatek_dwmac_clk_init()
510 plat->clks[i].id = variant->clk_list[i]; in mediatek_dwmac_clk_init()
512 ret = devm_clk_bulk_get(plat->dev, variant->num_clks, plat->clks); in mediatek_dwmac_clk_init()
536 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_init() local
539 if (variant->dwmac_set_phy_interface) { in mediatek_dwmac_init()
[all …]
/linux-6.12.1/drivers/pci/controller/dwc/
Dpcie-artpec6.c36 enum artpec_pcie_variants variant; member
41 enum artpec_pcie_variants variant; member
201 switch (artpec6_pcie->variant) { in artpec6_pcie_wait_for_phy()
275 switch (artpec6_pcie->variant) { in artpec6_pcie_init_phy()
290 switch (artpec6_pcie->variant) { in artpec6_pcie_assert_core_reset()
306 switch (artpec6_pcie->variant) { in artpec6_pcie_deassert_core_reset()
323 if (artpec6_pcie->variant == ARTPEC7) { in artpec6_pcie_host_init()
384 enum artpec_pcie_variants variant; in artpec6_pcie_probe() local
392 variant = (enum artpec_pcie_variants)data->variant; in artpec6_pcie_probe()
407 artpec6_pcie->variant = variant; in artpec6_pcie_probe()
[all …]

12345678910>>...22