Home
last modified time | relevance | path

Searched refs:ext (Results 1 – 25 of 786) sorted by relevance

12345678910>>...32

/linux-6.6.21/drivers/extcon/
Dextcon-intel-cht-wc.c117 static int cht_wc_extcon_get_id(struct cht_wc_extcon_data *ext, int pwrsrc_sts) in cht_wc_extcon_get_id() argument
143 static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext, in cht_wc_extcon_get_charger() argument
152 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger()
154 dev_err(ext->dev, "Error reading usbsrc: %d\n", ret); in cht_wc_extcon_get_charger()
169 dev_warn(ext->dev, "Could not detect charger type\n"); in cht_wc_extcon_get_charger()
171 dev_warn(ext->dev, "Timeout detecting charger type\n"); in cht_wc_extcon_get_charger()
181 dev_warn(ext->dev, in cht_wc_extcon_get_charger()
184 ext->usb_type = POWER_SUPPLY_USB_TYPE_SDP; in cht_wc_extcon_get_charger()
189 ext->usb_type = POWER_SUPPLY_USB_TYPE_SDP; in cht_wc_extcon_get_charger()
192 ext->usb_type = POWER_SUPPLY_USB_TYPE_CDP; in cht_wc_extcon_get_charger()
[all …]
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c11 nfp_flower_compile_meta(struct nfp_flower_meta_tci *ext, in nfp_flower_compile_meta() argument
15 ext->nfp_flow_key_layer = key_type; in nfp_flower_compile_meta()
16 ext->mask_id = ~0; in nfp_flower_compile_meta()
23 nfp_flower_compile_tci(struct nfp_flower_meta_tci *ext, in nfp_flower_compile_tci() argument
46 ext->tci |= cpu_to_be16((key_tci & msk_tci)); in nfp_flower_compile_tci()
52 nfp_flower_compile_meta_tci(struct nfp_flower_meta_tci *ext, in nfp_flower_compile_meta_tci() argument
56 memset(ext, 0, sizeof(struct nfp_flower_meta_tci)); in nfp_flower_compile_meta_tci()
59 nfp_flower_compile_meta(ext, msk, key_type); in nfp_flower_compile_meta_tci()
62 nfp_flower_compile_tci(ext, msk, rule); in nfp_flower_compile_meta_tci()
95 nfp_flower_compile_mac(struct nfp_flower_mac_mpls *ext, in nfp_flower_compile_mac() argument
[all …]
/linux-6.6.21/arch/riscv/include/asm/
Dhwcap.h88 #define riscv_isa_extension_mask(ext) BIT_MASK(RISCV_ISA_EXT_##ext) argument
91 #define riscv_isa_extension_available(isa_bitmap, ext) \ argument
92 __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
95 riscv_has_extension_likely(const unsigned long ext) in riscv_has_extension_likely() argument
97 compiletime_assert(ext < RISCV_ISA_EXT_MAX, in riscv_has_extension_likely()
102 ALTERNATIVE("j %l[l_no]", "nop", 0, %[ext], 1) in riscv_has_extension_likely()
104 : [ext] "i" (ext) in riscv_has_extension_likely()
108 if (!__riscv_isa_extension_available(NULL, ext)) in riscv_has_extension_likely()
118 riscv_has_extension_unlikely(const unsigned long ext) in riscv_has_extension_unlikely() argument
120 compiletime_assert(ext < RISCV_ISA_EXT_MAX, in riscv_has_extension_unlikely()
[all …]
/linux-6.6.21/include/net/netfilter/
Dnf_conntrack_extend.h45 static inline bool __nf_ct_ext_exist(const struct nf_ct_ext *ext, u8 id) in __nf_ct_ext_exist() argument
47 return !!ext->offset[id]; in __nf_ct_ext_exist()
52 return (ct->ext && __nf_ct_ext_exist(ct->ext, id)); in nf_ct_ext_exist()
55 void *__nf_ct_ext_find(const struct nf_ct_ext *ext, u8 id);
59 struct nf_ct_ext *ext = ct->ext; in nf_ct_ext_find() local
61 if (!ext || !__nf_ct_ext_exist(ext, id)) in nf_ct_ext_find()
64 if (unlikely(ext->gen_id)) in nf_ct_ext_find()
65 return __nf_ct_ext_find(ext, id); in nf_ct_ext_find()
67 return (void *)ct->ext + ct->ext->offset[id]; in nf_ct_ext_find()
Dnf_conntrack_labels.h26 struct nf_ct_ext *ext = ct->ext; in nf_ct_labels_find() local
28 if (!ext || !__nf_ct_ext_exist(ext, NF_CT_EXT_LABELS)) in nf_ct_labels_find()
31 return (void *)ct->ext + ct->ext->offset[NF_CT_EXT_LABELS]; in nf_ct_labels_find()
Dnf_tables.h430 const struct nft_set_ext **ext);
438 const struct nft_set_ext **ext);
445 struct nft_set_ext **ext);
731 static inline void nft_set_ext_init(struct nft_set_ext *ext, in nft_set_ext_init() argument
734 memcpy(ext->offset, tmpl->offset, sizeof(ext->offset)); in nft_set_ext_init()
737 static inline bool __nft_set_ext_exists(const struct nft_set_ext *ext, u8 id) in __nft_set_ext_exists() argument
739 return !!ext->offset[id]; in __nft_set_ext_exists()
742 static inline bool nft_set_ext_exists(const struct nft_set_ext *ext, u8 id) in nft_set_ext_exists() argument
744 return ext && __nft_set_ext_exists(ext, id); in nft_set_ext_exists()
747 static inline void *nft_set_ext(const struct nft_set_ext *ext, u8 id) in nft_set_ext() argument
[all …]
/linux-6.6.21/net/netfilter/
Dnft_set_hash.c31 struct nft_set_ext ext; member
51 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj()
60 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp()
62 if (nft_set_elem_is_dead(&he->ext)) in nft_rhash_cmp()
64 if (nft_set_elem_expired(&he->ext)) in nft_rhash_cmp()
66 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp()
81 const u32 *key, const struct nft_set_ext **ext) in nft_rhash_lookup() argument
93 *ext = &he->ext; in nft_rhash_lookup()
122 const struct nft_set_ext **ext) in nft_rhash_update() argument
153 *ext = &he->ext; in nft_rhash_update()
[all …]
Dnft_set_rbtree.c27 struct nft_set_ext ext; member
32 return nft_set_ext_exists(&rbe->ext, NFT_SET_EXT_FLAGS) && in nft_rbtree_interval_end()
33 (*nft_set_ext_flags(&rbe->ext) & NFT_SET_ELEM_INTERVAL_END); in nft_rbtree_interval_end()
45 return memcmp(nft_set_ext_key(&e1->ext), nft_set_ext_key(&e2->ext), in nft_rbtree_cmp()
51 return nft_set_elem_expired(&rbe->ext) || in nft_rbtree_elem_expired()
52 nft_set_elem_is_dead(&rbe->ext); in nft_rbtree_elem_expired()
56 const u32 *key, const struct nft_set_ext **ext, in __nft_rbtree_lookup() argument
72 d = memcmp(nft_set_ext_key(&rbe->ext), key, set->klen); in __nft_rbtree_lookup()
84 if (!nft_set_elem_active(&rbe->ext, genmask)) { in __nft_rbtree_lookup()
100 *ext = &rbe->ext; in __nft_rbtree_lookup()
[all …]
Dnf_conntrack_extend.c103 if (ct->ext) { in nf_ct_ext_add()
104 const struct nf_ct_ext *old = ct->ext; in nf_ct_ext_add()
117 new = krealloc(ct->ext, alloc, gfp); in nf_ct_ext_add()
121 if (!ct->ext) { in nf_ct_ext_add()
130 ct->ext = new; in nf_ct_ext_add()
136 void *__nf_ct_ext_find(const struct nf_ct_ext *ext, u8 id) in __nf_ct_ext_find() argument
139 unsigned int this_id = READ_ONCE(ext->gen_id); in __nf_ct_ext_find()
141 if (!__nf_ct_ext_exist(ext, id)) in __nf_ct_ext_find()
144 if (this_id == 0 || ext->gen_id == gen_id) in __nf_ct_ext_find()
145 return (void *)ext + ext->offset[id]; in __nf_ct_ext_find()
Dnft_set_bitmap.c17 struct nft_set_ext ext; member
78 const u32 *key, const struct nft_set_ext **ext) in nft_bitmap_lookup() argument
97 if (memcmp(nft_set_ext_key(&be->ext), in nft_bitmap_elem_find()
98 nft_set_ext_key(&this->ext), set->klen) || in nft_bitmap_elem_find()
99 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_elem_find()
115 if (memcmp(nft_set_ext_key(&be->ext), elem->key.val.data, set->klen) || in nft_bitmap_get()
116 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_get()
126 struct nft_set_ext **ext) in nft_bitmap_insert() argument
135 *ext = &be->ext; in nft_bitmap_insert()
139 nft_bitmap_location(set, nft_set_ext_key(&new->ext), &idx, &off); in nft_bitmap_insert()
[all …]
Dnft_lookup.c29 const u32 *key, const struct nft_set_ext **ext) in nft_set_do_lookup() argument
32 return nft_hash_lookup_fast(net, set, key, ext); in nft_set_do_lookup()
34 return nft_hash_lookup(net, set, key, ext); in nft_set_do_lookup()
37 return nft_rhash_lookup(net, set, key, ext); in nft_set_do_lookup()
40 return nft_bitmap_lookup(net, set, key, ext); in nft_set_do_lookup()
43 return nft_pipapo_lookup(net, set, key, ext); in nft_set_do_lookup()
46 return nft_pipapo_avx2_lookup(net, set, key, ext); in nft_set_do_lookup()
50 return nft_rbtree_lookup(net, set, key, ext); in nft_set_do_lookup()
53 return set->ops->lookup(net, set, key, ext); in nft_set_do_lookup()
64 const struct nft_set_ext *ext = NULL; in nft_lookup_eval() local
[all …]
/linux-6.6.21/Documentation/userspace-api/media/v4l/
Dcommon.rst42 ext-ctrls-camera
43 ext-ctrls-flash
44 ext-ctrls-image-source
45 ext-ctrls-image-process
46 ext-ctrls-codec
47 ext-ctrls-codec-stateless
48 ext-ctrls-jpeg
49 ext-ctrls-dv
50 ext-ctrls-rf-tuner
51 ext-ctrls-fm-tx
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_user_extensions.c16 int i915_user_extensions(struct i915_user_extension __user *ext, in i915_user_extensions() argument
23 while (ext) { in i915_user_extensions()
31 err = check_user_mbz(&ext->flags); in i915_user_extensions()
35 for (i = 0; i < ARRAY_SIZE(ext->rsvd); i++) { in i915_user_extensions()
36 err = check_user_mbz(&ext->rsvd[i]); in i915_user_extensions()
41 if (get_user(name, &ext->name)) in i915_user_extensions()
48 err = tbl[name](ext, data); in i915_user_extensions()
53 if (get_user(next, &ext->next_extension) || in i915_user_extensions()
57 ext = u64_to_user_ptr(next); in i915_user_extensions()
/linux-6.6.21/drivers/hid/
Dhid-wiimote-modules.c820 static void wiimod_nunchuk_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_nunchuk_in_ext() argument
854 bx = ext[0]; in wiimod_nunchuk_in_ext()
855 by = ext[1]; in wiimod_nunchuk_in_ext()
859 x = ext[2] << 2; in wiimod_nunchuk_in_ext()
860 y = ext[3] << 2; in wiimod_nunchuk_in_ext()
861 z = ext[4] << 2; in wiimod_nunchuk_in_ext()
864 x |= (ext[5] >> 3) & 0x02; in wiimod_nunchuk_in_ext()
865 y |= (ext[5] >> 4) & 0x02; in wiimod_nunchuk_in_ext()
867 z |= (ext[5] >> 5) & 0x06; in wiimod_nunchuk_in_ext()
869 x |= (ext[5] >> 2) & 0x03; in wiimod_nunchuk_in_ext()
[all …]
/linux-6.6.21/tools/testing/selftests/
Dgen_kselftest_tar.sh15 ext=".tar.gz"
20 ext=".tar"
24 ext=".tar.gz"
28 ext=".tar.bz2"
32 ext=".tar.xz"
51 (cd "$install_work"; tar $copts "$dest"/kselftest${ext} $install_name)
57 echo "Kselftest archive kselftest${ext} created!"
/linux-6.6.21/fs/ext4/
Dext4_extents.h197 static inline void ext4_ext_mark_unwritten(struct ext4_extent *ext) in ext4_ext_mark_unwritten() argument
200 BUG_ON((le16_to_cpu(ext->ee_len) & ~EXT_INIT_MAX_LEN) == 0); in ext4_ext_mark_unwritten()
201 ext->ee_len |= cpu_to_le16(EXT_INIT_MAX_LEN); in ext4_ext_mark_unwritten()
204 static inline int ext4_ext_is_unwritten(struct ext4_extent *ext) in ext4_ext_is_unwritten() argument
207 return (le16_to_cpu(ext->ee_len) > EXT_INIT_MAX_LEN); in ext4_ext_is_unwritten()
210 static inline int ext4_ext_get_actual_len(struct ext4_extent *ext) in ext4_ext_get_actual_len() argument
212 return (le16_to_cpu(ext->ee_len) <= EXT_INIT_MAX_LEN ? in ext4_ext_get_actual_len()
213 le16_to_cpu(ext->ee_len) : in ext4_ext_get_actual_len()
214 (le16_to_cpu(ext->ee_len) - EXT_INIT_MAX_LEN)); in ext4_ext_get_actual_len()
217 static inline void ext4_ext_mark_initialized(struct ext4_extent *ext) in ext4_ext_mark_initialized() argument
[all …]
/linux-6.6.21/drivers/media/common/saa7146/
Dsaa7146_core.c284 if (dev->ext) { in interrupt_hw()
285 if (dev->ext->irq_mask & isr) { in interrupt_hw()
286 if (dev->ext->irq_func) in interrupt_hw()
287 dev->ext->irq_func(dev, &isr); in interrupt_hw()
288 isr &= ~dev->ext->irq_mask; in interrupt_hw()
332 struct saa7146_extension *ext = pci_ext->ext; in saa7146_init_one() local
425 dev->ext = ext; in saa7146_init_one()
443 if (ext->probe && ext->probe(dev)) { in saa7146_init_one()
448 if (ext->attach(dev, pci_ext)) { in saa7146_init_one()
501 dev->ext->detach(dev); in saa7146_remove_one()
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/
Dguest_print_test.c40 #define TYPE(fn, ext, fmt_t, T) TYPE_##ext, argument
48 #define BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T) \ argument
49 const char *PRINTF_FMT_##ext = "Got params a = " fmt_t " and b = " fmt_t; \
50 const char *ASSERT_FMT_##ext = "Expected " fmt_t ", got " fmt_t " instead"; \
56 snprintf(expected_printf, UCALL_BUFFER_LEN, PRINTF_FMT_##ext, a, b); \
57 snprintf(expected_assert, UCALL_BUFFER_LEN, ASSERT_FMT_##ext, a, b); \
58 vals = (struct guest_vals){ (uint64_t)a, (uint64_t)b, TYPE_##ext }; \
63 #define TYPE(fn, ext, fmt_t, T) \ argument
64 BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T)
72 #define TYPE(fn, ext, fmt_t, T) \ in guest_code() argument
[all …]
/linux-6.6.21/fs/hfs/
Dextent.c24 key->ext.FkType = type; in hfs_ext_build_key()
25 key->ext.FNum = cpu_to_be32(cnid); in hfs_ext_build_key()
26 key->ext.FABN = cpu_to_be16(block); in hfs_ext_build_key()
55 fnum1 = key1->ext.FNum; in hfs_ext_keycmp()
56 fnum2 = key2->ext.FNum; in hfs_ext_keycmp()
59 if (key1->ext.FkType != key2->ext.FkType) in hfs_ext_keycmp()
60 return key1->ext.FkType < key2->ext.FkType ? -1 : 1; in hfs_ext_keycmp()
62 block1 = key1->ext.FABN; in hfs_ext_keycmp()
63 block2 = key2->ext.FABN; in hfs_ext_keycmp()
74 static u16 hfs_ext_find_block(struct hfs_extent *ext, u16 off) in hfs_ext_find_block() argument
[all …]
/linux-6.6.21/net/netfilter/ipset/
Dip_set_hash_ipmark.c87 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark4_kadt() local
93 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt()
103 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark4_uadt() local
118 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt()
129 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
159 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
222 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark6_kadt() local
228 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark6_kadt()
238 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ipmark6_uadt() local
260 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark6_uadt()
[all …]
Dip_set_hash_ip.c87 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt() local
96 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt()
106 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip4_uadt() local
120 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip4_uadt()
130 return adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt()
160 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ip4_uadt()
223 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip6_kadt() local
230 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip6_kadt()
240 struct ip_set_ext ext = IP_SET_INIT_UEXT(set); in hash_ip6_uadt() local
261 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip6_uadt()
[all …]
/linux-6.6.21/fs/hfsplus/
Dextents.c26 k1id = k1->ext.cnid; in hfsplus_ext_cmp_key()
27 k2id = k2->ext.cnid; in hfsplus_ext_cmp_key()
31 if (k1->ext.fork_type != k2->ext.fork_type) in hfsplus_ext_cmp_key()
32 return k1->ext.fork_type < k2->ext.fork_type ? -1 : 1; in hfsplus_ext_cmp_key()
34 k1s = k1->ext.start_block; in hfsplus_ext_cmp_key()
35 k2s = k2->ext.start_block; in hfsplus_ext_cmp_key()
45 key->ext.cnid = cpu_to_be32(cnid); in hfsplus_ext_build_key()
46 key->ext.start_block = cpu_to_be32(block); in hfsplus_ext_build_key()
47 key->ext.fork_type = type; in hfsplus_ext_build_key()
48 key->ext.pad = 0; in hfsplus_ext_build_key()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c508 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in libipw_wx_set_encodeext() local
527 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in libipw_wx_set_encodeext()
532 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext()
542 ext->alg == IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext()
567 switch (ext->alg) { in libipw_wx_set_encodeext()
582 dev->name, ext->alg); in libipw_wx_set_encodeext()
594 dev->name, ext->alg); in libipw_wx_set_encodeext()
620 if (ext->key_len > 0 && (*crypt)->ops->set_key && in libipw_wx_set_encodeext()
621 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in libipw_wx_set_encodeext()
629 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in libipw_wx_set_encodeext()
[all …]
/linux-6.6.21/sound/pci/ac97/
Dac97_proc.c95 unsigned short val, tmp, ext, mext; in snd_ac97_proc_read_main() local
174 ext = snd_ac97_read(ac97, AC97_EXTENDED_ID); in snd_ac97_proc_read_main()
175 if (ext == 0) in snd_ac97_proc_read_main()
179 (ext & AC97_EI_ADDR_MASK) >> AC97_EI_ADDR_SHIFT, in snd_ac97_proc_read_main()
180 (ext & AC97_EI_REV_MASK) >> AC97_EI_REV_SHIFT, in snd_ac97_proc_read_main()
181 ext & AC97_EI_AMAP ? " AMAP" : "", in snd_ac97_proc_read_main()
182 ext & AC97_EI_LDAC ? " LDAC" : "", in snd_ac97_proc_read_main()
183 ext & AC97_EI_SDAC ? " SDAC" : "", in snd_ac97_proc_read_main()
184 ext & AC97_EI_CDAC ? " CDAC" : "", in snd_ac97_proc_read_main()
185 (ext & AC97_EI_DACS_SLOT_MASK) >> AC97_EI_DACS_SLOT_SHIFT, in snd_ac97_proc_read_main()
[all …]
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c495 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in ieee80211_wx_set_encode_ext() local
513 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in ieee80211_wx_set_encode_ext()
520 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in ieee80211_wx_set_encode_ext()
532 ext->alg == IW_ENCODE_ALG_NONE) { in ieee80211_wx_set_encode_ext()
553 switch (ext->alg) { in ieee80211_wx_set_encode_ext()
568 dev->name, ext->alg); in ieee80211_wx_set_encode_ext()
577 dev->name, ext->alg); in ieee80211_wx_set_encode_ext()
578 printk("========>unknown crypto alg %d\n", ext->alg); in ieee80211_wx_set_encode_ext()
604 if (ext->key_len > 0 && (*crypt)->ops->set_key && in ieee80211_wx_set_encode_ext()
605 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in ieee80211_wx_set_encode_ext()
[all …]

12345678910>>...32