Home
last modified time | relevance | path

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

12

/linux/drivers/pwm/
H A Dpwm-ab8500.c27 unsigned int hwid; member
96 1 << ab8500->hwid, 0); in ab8500_pwm_apply()
115 reg = AB8500_PWM_OUT_CTRL1_REG + (ab8500->hwid * 2); in ab8500_pwm_apply()
130 1 << ab8500->hwid, 1 << ab8500->hwid); in ab8500_pwm_apply()
154 if (!(ctrl7 & 1 << ab8500->hwid)) { in ab8500_pwm_get_state()
160 AB8500_PWM_OUT_CTRL1_REG + (ab8500->hwid * 2), in ab8500_pwm_get_state()
166 AB8500_PWM_OUT_CTRL2_REG + (ab8500->hwid * 2), in ab8500_pwm_get_state()
205 ab8500->hwid = pdev->id - 1; in ab8500_pwm_probe()
H A Dpwm-sprd.c56 static u32 sprd_pwm_read(struct sprd_pwm_chip *spc, u32 hwid, u32 reg) in sprd_pwm_read() argument
58 u32 offset = reg + (hwid << SPRD_PWM_REGS_SHIFT); in sprd_pwm_read()
63 static void sprd_pwm_write(struct sprd_pwm_chip *spc, u32 hwid, in sprd_pwm_write() argument
66 u32 offset = reg + (hwid << SPRD_PWM_REGS_SHIFT); in sprd_pwm_write()
/linux/arch/arm64/kernel/
H A Dsmp.c482 static bool __init is_mpidr_duplicate(unsigned int cpu, u64 hwid) in is_mpidr_duplicate() argument
487 if (cpu_logical_map(i) == hwid) in is_mpidr_duplicate()
586 u64 hwid = processor->arm_mpidr; in acpi_map_gic_cpu_interface() local
590 pr_debug("skipping disabled CPU entry with 0x%llx MPIDR\n", hwid); in acpi_map_gic_cpu_interface()
594 if (hwid & ~MPIDR_HWID_BITMASK || hwid == INVALID_HWID) { in acpi_map_gic_cpu_interface()
595 pr_err("skipping CPU entry with invalid MPIDR 0x%llx\n", hwid); in acpi_map_gic_cpu_interface()
599 if (is_mpidr_duplicate(cpu_count, hwid)) { in acpi_map_gic_cpu_interface()
600 pr_err("duplicate CPU MPIDR 0x%llx in MADT\n", hwid); in acpi_map_gic_cpu_interface()
605 if (cpu_logical_map(0) == hwid) { in acpi_map_gic_cpu_interface()
608 hwid); in acpi_map_gic_cpu_interface()
[all …]
/linux/include/net/
H A 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()
H A Dip6_tunnel.h42 __u16 hwid; /* hwid */ member
/linux/tools/include/uapi/linux/
H A Derspan.h30 hwid:4; member
35 __u8 hwid:4, member
/linux/include/uapi/linux/
H A Derspan.h30 hwid:4; member
35 __u8 hwid:4, member
/linux/drivers/input/touchscreen/
H A 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/tools/testing/selftests/bpf/progs/
H A Dtest_tunnel_kern.c185 __u8 hwid = 7; in erspan_set_tunnel() local
189 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid, (hwid & 0xf)); in erspan_set_tunnel()
190 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid_upper, (hwid >> 4) & 0x3); in erspan_set_tunnel()
231 BPF_CORE_READ_BITFIELD(&md.u.md2, hwid), in erspan_get_tunnel()
265 __u8 hwid = 17; in ip4ip6erspan_set_tunnel() local
269 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid, (hwid & 0xf)); in ip4ip6erspan_set_tunnel()
270 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid_upper, (hwid >> 4) & 0x3); in ip4ip6erspan_set_tunnel()
312 BPF_CORE_READ_BITFIELD(&md.u.md2, hwid), in ip4ip6erspan_get_tunnel()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_aca.c29 #define ACA_BANK_HWID(type, hwid, mcatype) [ACA_HWIP_TYPE_##type] = {hwid, mcatype} argument
39 int hwid; member
187 int hwid, mcatype; in aca_bank_hwip_is_matched() local
194 if (!hwip->hwid) in aca_bank_hwip_is_matched()
198 hwid = ACA_REG__IPID__HARDWAREID(ipid); in aca_bank_hwip_is_matched()
201 return hwip->hwid == hwid && hwip->mcatype == mcatype; in aca_bank_hwip_is_matched()
752 info->hwid = ACA_REG__IPID__HARDWAREID(ipid); in aca_bank_info_decode()
834 idx, info.socket_id, info.die_id, info.hwid, info.mcatype); in aca_dump_entry()
H A Dumc_v12_0.c525 uint16_t hwid, mcatype; in umc_v12_0_update_ecc_status() local
531 hwid = REG_GET_FIELD(ipid, MCMP1_IPIDT0, HardwareID); in umc_v12_0_update_ecc_status()
534 if ((hwid != MCA_UMC_HWID_V12_0) || (mcatype != MCA_UMC_MCATYPE_V12_0)) in umc_v12_0_update_ecc_status()
H A Damdgpu_mca.h111 int hwid; member
H A Damdgpu_aca.h124 int hwid; member
/linux/arch/arm64/include/asm/
H A Dsmp.h40 static inline void set_cpu_logical_map(unsigned int cpu, u64 hwid) in set_cpu_logical_map() argument
42 __cpu_logical_map[cpu] = hwid; in set_cpu_logical_map()
/linux/drivers/clk/
H A 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/drivers/mfd/
H A 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/arch/powerpc/platforms/pseries/
H A Dmobility.c495 int hwid; in prod_single() local
497 hwid = get_hard_smp_processor_id(target_cpu); in prod_single()
498 hvrc = plpar_hcall_norets(H_PROD, hwid); in prod_single()
502 target_cpu, hwid, hvrc); in prod_single()
/linux/drivers/iio/pressure/
H A Dzpa2326.h64 unsigned int hwid,
/linux/drivers/tty/
H A Dmxser.c390 u8 oldmcr, hwid; in mxser_must_get_hwid() local
403 hwid = mxser_get_must_hardware_id(io); in mxser_must_get_hwid()
405 if (hwid == Gpci_uart_info[i].type) in mxser_must_get_hwid()
406 return hwid; in mxser_must_get_hwid()
1479 enum mxser_must_hwid hwid = port->board->must_hwid; in mxser_receive_chars_new() local
1482 if (hwid == MOXA_OTHER_UART) in mxser_receive_chars_new()
1488 if (hwid == MOXA_MUST_MU150_HWID) in mxser_receive_chars_new()
1503 enum mxser_must_hwid hwid = port->board->must_hwid; in mxser_receive_chars_old() local
1513 if (hwid && (status & UART_LSR_OE)) in mxser_receive_chars_old()
1546 if (hwid) in mxser_receive_chars_old()
/linux/arch/x86/kernel/cpu/mce/
H A Damd.c74 #define HWID_MCATYPE(hwid, mcatype) (((hwid) << 16) | (mcatype)) argument
82 const struct smca_hwid *hwid; member
142 if (!b->hwid) in smca_get_bank_type()
145 return b->hwid->bank_type; in smca_get_bank_type()
320 this_cpu_ptr(smca_banks)[bank].hwid = s_hwid; in smca_configure()
/linux/drivers/media/pci/ddbridge/
H A 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/drivers/clk/qcom/
H A 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/drivers/acpi/
H A Dscan.c1246 struct acpi_hardware_id *hwid; in acpi_device_is_battery() local
1248 list_for_each_entry(hwid, &adev->pnp.ids, list) in acpi_device_is_battery()
1249 if (!strcmp("PNP0C0A", hwid->id)) in acpi_device_is_battery()
2062 struct acpi_hardware_id *hwid; in acpi_scan_init_hotplug() local
2068 list_for_each_entry(hwid, &adev->pnp.ids, list) { in acpi_scan_init_hotplug()
2071 handler = acpi_scan_match_handler(hwid->id, NULL); in acpi_scan_init_hotplug()
2246 struct acpi_hardware_id *hwid; in acpi_scan_attach_handler() local
2249 list_for_each_entry(hwid, &device->pnp.ids, list) { in acpi_scan_attach_handler()
2253 handler = acpi_scan_match_handler(hwid->id, &devid); in acpi_scan_attach_handler()
/linux/arch/powerpc/mm/
H A Dnuma.c649 long rc, hwid; in __vphn_get_associativity() local
662 hwid = cpu_to_phys_id[lcpu]; in __vphn_get_associativity()
664 hwid = get_hard_smp_processor_id(lcpu); in __vphn_get_associativity()
666 rc = hcall_vphn(hwid, VPHN_FLAG_VCPU, associativity); in __vphn_get_associativity()
/linux/net/netfilter/
H A Dnft_tunnel.c291 uint8_t hwid, dir; in nft_tunnel_obj_erspan_init() local
317 hwid = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_HWID]); in nft_tunnel_obj_erspan_init()
320 set_hwid(&opts->u.erspan.u.md2, hwid); in nft_tunnel_obj_erspan_init()

12