Home
last modified time | relevance | path

Searched refs:hwid (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.6.21/drivers/pwm/
Dpwm-ab8500.c28 unsigned int hwid; member
97 1 << ab8500->hwid, 0); in ab8500_pwm_apply()
116 reg = AB8500_PWM_OUT_CTRL1_REG + (ab8500->hwid * 2); in ab8500_pwm_apply()
131 1 << ab8500->hwid, 1 << ab8500->hwid); in ab8500_pwm_apply()
155 if (!(ctrl7 & 1 << ab8500->hwid)) { in ab8500_pwm_get_state()
161 AB8500_PWM_OUT_CTRL1_REG + (ab8500->hwid * 2), in ab8500_pwm_get_state()
167 AB8500_PWM_OUT_CTRL2_REG + (ab8500->hwid * 2), in ab8500_pwm_get_state()
206 ab8500->hwid = pdev->id - 1; in ab8500_pwm_probe()
Dpwm-sprd.c54 static u32 sprd_pwm_read(struct sprd_pwm_chip *spc, u32 hwid, u32 reg) in sprd_pwm_read() argument
56 u32 offset = reg + (hwid << SPRD_PWM_REGS_SHIFT); in sprd_pwm_read()
61 static void sprd_pwm_write(struct sprd_pwm_chip *spc, u32 hwid, in sprd_pwm_write() argument
64 u32 offset = reg + (hwid << SPRD_PWM_REGS_SHIFT); in sprd_pwm_write()
/linux-6.6.21/arch/arm64/kernel/
Dsmp.c470 static bool __init is_mpidr_duplicate(unsigned int cpu, u64 hwid) in is_mpidr_duplicate() argument
475 if (cpu_logical_map(i) == hwid) in is_mpidr_duplicate()
521 u64 hwid = processor->arm_mpidr; in acpi_map_gic_cpu_interface() local
524 pr_debug("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); in acpi_map_gic_cpu_interface()
528 if (hwid & ~MPIDR_HWID_BITMASK || hwid == INVALID_HWID) { in acpi_map_gic_cpu_interface()
529 pr_err("skipping CPU entry with invalid MPIDR 0x%llx\n", hwid); in acpi_map_gic_cpu_interface()
533 if (is_mpidr_duplicate(cpu_count, hwid)) { in acpi_map_gic_cpu_interface()
534 pr_err("duplicate CPU MPIDR 0x%llx in MADT\n", hwid); in acpi_map_gic_cpu_interface()
539 if (cpu_logical_map(0) == hwid) { in acpi_map_gic_cpu_interface()
542 hwid); in acpi_map_gic_cpu_interface()
[all …]
/linux-6.6.21/arch/arm/kernel/
Ddevtree.c87 u32 hwid = of_get_cpu_hwid(cpu, 0); in arm_dt_init_cpu_maps() local
95 if (hwid & ~MPIDR_HWID_BITMASK) { in arm_dt_init_cpu_maps()
108 if (WARN(tmp_map[j] == hwid, in arm_dt_init_cpu_maps()
123 if (hwid == mpidr) { in arm_dt_init_cpu_maps()
138 tmp_map[i] = hwid; in arm_dt_init_cpu_maps()
/linux-6.6.21/include/net/
Derspan.h144 static inline void set_hwid(struct erspan_md2 *md2, u8 hwid) in set_hwid() argument
146 md2->hwid = hwid & 0xf; in set_hwid()
147 md2->hwid_upper = (hwid >> 4) & 0x3; in set_hwid()
152 return (md2->hwid_upper << 4) + md2->hwid; in get_hwid()
268 u32 id, u8 direction, u16 hwid, in erspan_build_header_v2() argument
318 set_hwid(md2, hwid); in erspan_build_header_v2()
Dip6_tunnel.h42 __u16 hwid; /* hwid */ member
/linux-6.6.21/tools/include/uapi/linux/
Derspan.h30 hwid:4; member
35 __u8 hwid:4, member
/linux-6.6.21/include/uapi/linux/
Derspan.h30 hwid:4; member
35 __u8 hwid:4, member
/linux-6.6.21/drivers/of/
Dcpu.c57 u64 hwid; in __of_find_n_match_cpu_property() local
67 hwid = of_read_number(cell, ac); in __of_find_n_match_cpu_property()
68 if (arch_match_cpu_phys_id(cpu, hwid)) { in __of_find_n_match_cpu_property()
/linux-6.6.21/drivers/input/touchscreen/
Dbu21029_ts.c267 __be16 hwid; in bu21029_start_chip() local
282 sizeof(hwid), (u8 *)&hwid); in bu21029_start_chip()
288 if (be16_to_cpu(hwid) != SUPPORTED_HWID) { in bu21029_start_chip()
290 "unsupported HW ID 0x%x\n", be16_to_cpu(hwid)); in bu21029_start_chip()
/linux-6.6.21/arch/arm64/include/asm/
Dsmp.h51 static inline void set_cpu_logical_map(unsigned int cpu, u64 hwid) in set_cpu_logical_map() argument
53 __cpu_logical_map[cpu] = hwid; in set_cpu_logical_map()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c205 __u8 hwid = 7; in erspan_set_tunnel() local
209 md.u.md2.hwid = hwid & 0xf; in erspan_set_tunnel()
210 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in erspan_set_tunnel()
250 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in erspan_get_tunnel()
284 __u8 hwid = 17; in ip4ip6erspan_set_tunnel() local
288 md.u.md2.hwid = hwid & 0xf; in ip4ip6erspan_set_tunnel()
289 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in ip4ip6erspan_set_tunnel()
330 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in ip4ip6erspan_get_tunnel()
/linux-6.6.21/arch/ia64/kernel/
Dirq.c57 void set_irq_affinity_info (unsigned int irq, int hwid, int redir) in set_irq_affinity_info() argument
61 cpumask_of(cpu_logical_id(hwid))); in set_irq_affinity_info()
/linux-6.6.21/drivers/clk/
Dclk-s2mps11.c127 enum sec_device_type hwid = platform_get_device_id(pdev)->driver_data; in s2mps11_clk_probe() local
140 switch (hwid) { in s2mps11_clk_probe()
164 if (i == S2MPS11_CLK_CP && hwid == S2MPS14X) in s2mps11_clk_probe()
/linux-6.6.21/drivers/mfd/
Dmadera-core.c457 unsigned int hwid; in madera_dev_init() local
591 ret = regmap_read(madera->regmap, MADERA_SOFTWARE_RESET, &hwid); in madera_dev_init()
597 switch (hwid) { in madera_dev_init()
668 dev_err(madera->dev, "Unknown device ID: %x\n", hwid); in madera_dev_init()
674 dev_err(madera->dev, "Device ID 0x%x not a %s\n", hwid, in madera_dev_init()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dmobility.c496 int hwid; in prod_single() local
498 hwid = get_hard_smp_processor_id(target_cpu); in prod_single()
499 hvrc = plpar_hcall_norets(H_PROD, hwid); in prod_single()
503 target_cpu, hwid, hvrc); in prod_single()
/linux-6.6.21/drivers/acpi/
Dbus.c813 struct acpi_hardware_id *hwid) in __acpi_match_device_cls() argument
829 if (strncmp(buf, &hwid->id[(i - 1) * 2], 2)) in __acpi_match_device_cls()
842 struct acpi_hardware_id *hwid; in __acpi_match_device() local
851 list_for_each_entry(hwid, &device->pnp.ids, list) { in __acpi_match_device()
855 if (id->id[0] && !strcmp((char *)id->id, hwid->id)) in __acpi_match_device()
857 if (id->cls && __acpi_match_device_cls(id, hwid)) in __acpi_match_device()
866 if (!strcmp(ACPI_DT_NAMESPACE_HID, hwid->id)) in __acpi_match_device()
Dscan.c1183 struct acpi_hardware_id *hwid; in acpi_device_is_battery() local
1185 list_for_each_entry(hwid, &adev->pnp.ids, list) in acpi_device_is_battery()
1186 if (!strcmp("PNP0C0A", hwid->id)) in acpi_device_is_battery()
1967 struct acpi_hardware_id *hwid; in acpi_scan_init_hotplug() local
1973 list_for_each_entry(hwid, &adev->pnp.ids, list) { in acpi_scan_init_hotplug()
1976 handler = acpi_scan_match_handler(hwid->id, NULL); in acpi_scan_init_hotplug()
2154 struct acpi_hardware_id *hwid; in acpi_scan_attach_handler() local
2157 list_for_each_entry(hwid, &device->pnp.ids, list) { in acpi_scan_attach_handler()
2161 handler = acpi_scan_match_handler(hwid->id, &devid); in acpi_scan_attach_handler()
/linux-6.6.21/drivers/iio/pressure/
Dzpa2326.h64 unsigned int hwid,
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Damd.c74 #define HWID_MCATYPE(hwid, mcatype) (((hwid) << 16) | (mcatype)) argument
82 const struct smca_hwid *hwid; member
153 if (!b->hwid) in smca_get_bank_type()
156 return b->hwid->bank_type; in smca_get_bank_type()
328 this_cpu_ptr(smca_banks)[bank].hwid = s_hwid; in smca_configure()
/linux-6.6.21/drivers/tty/
Dmxser.c393 u8 oldmcr, hwid; in mxser_must_get_hwid() local
406 hwid = mxser_get_must_hardware_id(io); in mxser_must_get_hwid()
408 if (hwid == Gpci_uart_info[i].type) in mxser_must_get_hwid()
409 return hwid; in mxser_must_get_hwid()
1482 enum mxser_must_hwid hwid = port->board->must_hwid; in mxser_receive_chars_new() local
1485 if (hwid == MOXA_OTHER_UART) in mxser_receive_chars_new()
1491 if (hwid == MOXA_MUST_MU150_HWID) in mxser_receive_chars_new()
1506 enum mxser_must_hwid hwid = port->board->must_hwid; in mxser_receive_chars_old() local
1516 if (hwid && (status & UART_LSR_OE)) in mxser_receive_chars_old()
1549 if (hwid) in mxser_receive_chars_old()
/linux-6.6.21/drivers/media/pci/ddbridge/
Dddbridge-main.c215 dev->link[0].ids.hwid = ddbreadl(dev, 0); in ddb_probe()
219 dev->link[0].ids.hwid, dev->link[0].ids.regmapid); in ddb_probe()
/linux-6.6.21/drivers/clk/qcom/
Dclk-cpu-8996.c520 u64 hwid; in qcom_cpu_clk_msm8996_acd_init() local
536 hwid = read_cpuid_mpidr(); in qcom_cpu_clk_msm8996_acd_init()
537 if ((hwid & CPU_CLUSTER_AFFINITY_MASK) == PWRCL_AFFINITY_MASK) in qcom_cpu_clk_msm8996_acd_init()
/linux-6.6.21/arch/powerpc/mm/
Dnuma.c651 long rc, hwid; in __vphn_get_associativity() local
664 hwid = cpu_to_phys_id[lcpu]; in __vphn_get_associativity()
666 hwid = get_hard_smp_processor_id(lcpu); in __vphn_get_associativity()
668 rc = hcall_vphn(hwid, VPHN_FLAG_VCPU, associativity); in __vphn_get_associativity()
/linux-6.6.21/net/netfilter/
Dnft_tunnel.c290 uint8_t hwid, dir; in nft_tunnel_obj_erspan_init() local
316 hwid = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_HWID]); in nft_tunnel_obj_erspan_init()
319 set_hwid(&opts->u.erspan.u.md2, hwid); in nft_tunnel_obj_erspan_init()

12