Home
last modified time | relevance | path

Searched refs:mask_bits (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/sound/core/
Djack.c21 unsigned int mask_bits; /* only masked status bits are reported via kctl */ member
145 status & jack_kctl->mask_bits); in snd_jack_inject_report()
152 int testbit = ((SND_JACK_BTN_0 >> i) & jack_kctl->mask_bits); in snd_jack_inject_report()
160 int testbit = ((1 << i) & jack_kctl->mask_bits); in snd_jack_inject_report()
226 snd_jack_inject_report(jack_kctl, !!enable ? jack_kctl->mask_bits : 0); in jackin_inject_write()
253 static int parse_mask_bits(unsigned int mask_bits, char *buf, size_t buf_size) in parse_mask_bits() argument
257 scnprintf(buf, buf_size, "0x%04x", mask_bits); in parse_mask_bits()
260 if (mask_bits & (1 << i)) { in parse_mask_bits()
276 len = parse_mask_bits(jack_kctl->mask_bits, buf, sizeof(buf)); in jack_kctl_mask_bits_read()
448 jack_kctl->mask_bits = mask; in snd_jack_kctl_new()
[all …]
/linux-6.1.9/Documentation/sound/designs/
Djack-injection.rst47 |-- |-- |-- mask_bits
55 |-- |-- mask_bits
63 |-- |-- mask_bits
71 |-- |-- mask_bits
78 |-- mask_bits
93 mask_bits
94 read-only, get jack_kctl's supported events mask_bits
97 sound/card1/Headphone_Jack# cat mask_bits
/linux-6.1.9/drivers/s390/net/
Dqeth_l3_sys.c392 "%s/%i\n", addr_str, ipatoe->mask_bits); in qeth_l3_dev_ipato_add_show()
410 u8 *addr, unsigned int *mask_bits) in qeth_l3_parse_ipatoe() argument
426 rc = kstrtouint(sep + 1, 10, mask_bits); in qeth_l3_parse_ipatoe()
430 if (*mask_bits > ((proto == QETH_PROT_IPV4) ? 32 : 128)) in qeth_l3_parse_ipatoe()
440 unsigned int mask_bits; in qeth_l3_dev_ipato_add_store() local
444 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); in qeth_l3_dev_ipato_add_store()
454 ipatoe->mask_bits = mask_bits; in qeth_l3_dev_ipato_add_store()
478 unsigned int mask_bits; in qeth_l3_dev_ipato_del_store() local
482 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); in qeth_l3_dev_ipato_del_store()
484 rc = qeth_l3_del_ipato_entry(card, proto, addr, mask_bits); in qeth_l3_dev_ipato_del_store()
Dqeth_l3.h99 unsigned int mask_bits; member
111 unsigned int mask_bits);
Dqeth_l3_main.c107 rc = !memcmp(addr_bits, ipatoe_bits, ipatoe->mask_bits); in qeth_l3_is_addr_covered_by_ipato()
542 (ipatoe->mask_bits == new->mask_bits)) { in qeth_l3_add_ipato_entry()
560 unsigned int mask_bits) in qeth_l3_del_ipato_entry() argument
574 (ipatoe->mask_bits == mask_bits)) { in qeth_l3_del_ipato_entry()
1323 do_strip_entries = (qinfo->mask_bits & QETH_QARP_STRIP_ENTRIES) > 0; in qeth_l3_arp_query_cb()
1365 if (qinfo->mask_bits & QETH_QARP_STRIP_ENTRIES) in qeth_l3_arp_query_cb()
1426 if (qinfo.mask_bits & QETH_QARP_WITH_IPV6) { in qeth_l3_arp_query()
Dqeth_core_mpc.h389 __u16 mask_bits; member
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_if.c141 u32 mask_bits; in hinic_set_msix_state() local
143 mask_bits = readl(hwif->intr_regs_base + offset); in hinic_set_msix_state()
144 mask_bits &= ~HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT; in hinic_set_msix_state()
147 mask_bits |= HINIC_PCI_MSIX_ENTRY_CTRL_MASKBIT; in hinic_set_msix_state()
149 writel(mask_bits, hwif->intr_regs_base + offset); in hinic_set_msix_state()
/linux-6.1.9/lib/
Dinflate.c227 STATIC const ush mask_bits[] = { variable
613 ml = mask_bits[bl]; /* precompute masks for speed */ in inflate_codes()
614 md = mask_bits[bd]; in inflate_codes()
625 } while ((e = (t = t->v.t + ((unsigned)b & mask_bits[e]))->e) > 16); in inflate_codes()
645 n = t->v.n + ((unsigned)b & mask_bits[e]); in inflate_codes()
657 } while ((e = (t = t->v.t + ((unsigned)b & mask_bits[e]))->e) > 16); in inflate_codes()
660 d = w - t->v.n - ((unsigned)b & mask_bits[e]); in inflate_codes()
913 m = mask_bits[bl]; in inflate_dynamic()
/linux-6.1.9/net/netfilter/ipset/
Dip_set_bitmap_ip.c301 u8 mask_bits; in bitmap_ip_create() local
304 mask = range_to_mask(first_ip, last_ip, &mask_bits); in bitmap_ip_create()
307 netmask <= mask_bits) in bitmap_ip_create()
310 pr_debug("mask_bits %u, netmask %u\n", mask_bits, netmask); in bitmap_ip_create()
312 elements = 2UL << (netmask - mask_bits - 1); in bitmap_ip_create()
/linux-6.1.9/include/linux/
Dntb.h328 int (*msg_set_mask)(struct ntb_dev *ntb, u64 mask_bits);
329 int (*msg_clear_mask)(struct ntb_dev *ntb, u64 mask_bits);
1500 static inline int ntb_msg_set_mask(struct ntb_dev *ntb, u64 mask_bits) in ntb_msg_set_mask() argument
1505 return ntb->ops->msg_set_mask(ntb, mask_bits); in ntb_msg_set_mask()
1517 static inline int ntb_msg_clear_mask(struct ntb_dev *ntb, u64 mask_bits) in ntb_msg_clear_mask() argument
1522 return ntb->ops->msg_clear_mask(ntb, mask_bits); in ntb_msg_clear_mask()
/linux-6.1.9/arch/s390/include/uapi/asm/
Dqeth.h106 __u16 mask_bits; member
/linux-6.1.9/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c263 #define mask_bits(v, p) outw(inw(p)&(v), (p)) macro
1100 mask_bits(0xff00, ioaddr + RCR); in smc_close()
1101 mask_bits(0xff00, ioaddr + TCR); in smc_close()
1441 mask_bits(0x00ff, ioaddr-0x10+OSITECH_RESET_ISR); in smc_interrupt()
1633 mask_bits(~OSI_AUI_PWR, ioaddr - 0x10 + OSITECH_AUI_PWR); in smc_set_xcvr()
/linux-6.1.9/net/netfilter/
Dnft_set_pipapo.c902 int mask_bits) in pipapo_insert() argument
921 if (mask_bits >= (group + 1) * f->bb) { in pipapo_insert()
924 } else if (mask_bits <= group * f->bb) { in pipapo_insert()
931 mask >>= mask_bits - group * f->bb; in pipapo_insert()
/linux-6.1.9/drivers/scsi/aacraid/
Dlinit.c1586 int mask_bits = 0; in aac_probe_one() local
1623 mask_bits = 31; in aac_probe_one()
1626 mask_bits = 32; in aac_probe_one()
1632 , mask_bits); in aac_probe_one()
/linux-6.1.9/arch/x86/kvm/
Dxen.c1347 unsigned long *pending_bits, *mask_bits; in kvm_xen_set_evtchn_fast() local
1380 mask_bits = (unsigned long *)&shinfo->evtchn_mask; in kvm_xen_set_evtchn_fast()
1385 mask_bits = (unsigned long *)&shinfo->evtchn_mask; in kvm_xen_set_evtchn_fast()
1398 } else if (test_bit(xe->port, mask_bits)) { in kvm_xen_set_evtchn_fast()
/linux-6.1.9/drivers/ntb/hw/idt/
Dntb_hw_idt.c1712 static int idt_ntb_msg_set_mask(struct ntb_dev *ntb, u64 mask_bits) in idt_ntb_msg_set_mask() argument
1717 IDT_MSG_MASK, mask_bits); in idt_ntb_msg_set_mask()
1730 static int idt_ntb_msg_clear_mask(struct ntb_dev *ntb, u64 mask_bits) in idt_ntb_msg_clear_mask() argument
1735 mask_bits); in idt_ntb_msg_clear_mask()
/linux-6.1.9/drivers/edac/
Damd64_edac.c403 u64 csbase, csmask, base_bits, mask_bits; in get_cs_base_and_mask() local
410 mask_bits = GENMASK_ULL(29, 21) | GENMASK_ULL(15, 9); in get_cs_base_and_mask()
440 base_bits = mask_bits = in get_cs_base_and_mask()
443 base_bits = mask_bits = in get_cs_base_and_mask()
451 *mask &= ~(mask_bits << addr_shift); in get_cs_base_and_mask()
453 *mask |= (csmask & mask_bits) << addr_shift; in get_cs_base_and_mask()
/linux-6.1.9/security/smack/
Dsmackfs.c1159 u32 mask_bits = (1<<31); in smk_write_net4addr() local
1223 temp_mask |= mask_bits; in smk_write_net4addr()
1224 mask_bits >>= 1; in smk_write_net4addr()