Home
last modified time | relevance | path

Searched full:spec (Results 1 – 25 of 1527) sorted by relevance

12345678910>>...62

/linux/sound/pci/hda/
H A Dhda_generic.c33 * @spec: hda_gen_spec object to initialize
37 int snd_hda_gen_spec_init(struct hda_gen_spec *spec) in snd_hda_gen_spec_init() argument
39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init()
40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init()
41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init()
42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init()
49 * @spec: hda_gen_spec object
55 * name string @name to the list in @spec.
59 snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name, in snd_hda_gen_add_kctl() argument
62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl()
[all …]
H A Dpatch_cs8409.c24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() local
28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config()
32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config()
37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config()
40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config()
41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config()
45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config()
57 struct cs8409_spec *spec; in cs8409_alloc_spec() local
59 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in cs8409_alloc_spec()
60 if (!spec) in cs8409_alloc_spec()
[all …]
H A Dpatch_cmedia.c120 struct cmi_spec *spec = in cm9825_unsol_hp_delayed() local
123 hda_nid_t hp_pin = spec->gen.autocfg.hp_pins[0]; in cm9825_unsol_hp_delayed()
127 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
129 codec_dbg(spec->codec, "hp_jack_plugin %d, hp_pin 0x%X\n", in cm9825_unsol_hp_delayed()
134 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_unsol_hp_delayed()
137 codec_dbg(spec->codec, "codec_write err %d\n", err); in cm9825_unsol_hp_delayed()
139 snd_hda_sequence_write(spec->codec, spec->chip_hp_remove_verbs); in cm9825_unsol_hp_delayed()
141 snd_hda_sequence_write(spec->codec, in cm9825_unsol_hp_delayed()
142 spec->chip_hp_present_verbs); in cm9825_unsol_hp_delayed()
145 jack = snd_hda_jack_tbl_get(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
[all …]
H A Dpatch_hdmi.c82 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/
199 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local
200 return spec->use_acomp_notifier; in codec_has_acomp()
242 #define get_pin(spec, idx) \ argument
243 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
244 #define get_cvt(spec, idx) \ argument
245 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
247 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument
249 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument
254 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local
[all …]
H A Dpatch_ca0132.c1181 #define ca0132_quirk(spec) ((spec)->codec->fixup_id) argument
1182 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument
1183 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument
1184 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument
1186 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument
1187 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument
1188 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument
1189 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument
1581 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
1584 if (spec->curr_chip_addx == chip_addx) in chipio_write_address()
[all …]
H A Dpatch_conexant.c56 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument
63 spec->gen.beep_nid = nid; in set_beep_amp()
65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() local
81 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep()
95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() local
103 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd()
104 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd()
114 if (spec->num_eapds > 2) in cx_auto_parse_eapd()
115 spec->dynamic_eapd = 1; in cx_auto_parse_eapd()
[all …]
H A Dpatch_senarytech.c45 static int set_beep_amp(struct senary_spec *spec, hda_nid_t nid, in set_beep_amp() argument
52 spec->gen.beep_nid = nid; in set_beep_amp()
54 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
65 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() local
71 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in senary_auto_parse_beep()
81 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd() local
89 spec->eapds[spec->num_eapds++] = nid; in senary_auto_parse_eapd()
90 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in senary_auto_parse_eapd()
112 struct senary_spec *spec = codec->spec; in senary_auto_vmaster_hook() local
114 senary_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, enabled); in senary_auto_vmaster_hook()
[all …]
H A Dpatch_realtek.c148 struct alc_spec *spec = codec->spec; in coef_mutex_lock() local
151 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
156 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() local
158 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
230 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
232 if (!spec->coef0) in alc_get_coef0()
233 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
234 return spec->coef0; in alc_get_coef0()
272 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
274 spec->gpio_mask |= mask; in alc_setup_gpio()
[all …]
/linux/sound/pci/ice1712/
H A Dhoontech.c43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local
45 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear()
46 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear()
52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local
54 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute()
55 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute()
61 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local
63 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel()
64 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel()
70 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local
[all …]
H A Dpsc724.c106 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766); in psc724_wm8766_write() local
107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write()
148 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local
150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write()
158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local
160 spec->mute_all = !on; in psc724_set_master_switch()
170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local
172 return !spec->mute_all; in psc724_get_master_switch()
179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local
181 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state()
[all …]
/linux/arch/powerpc/include/asm/
H A Dcpu_setup.h8 void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec);
9 void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec);
10 void __setup_cpu_power9(unsigned long offset, struct cpu_spec *spec);
11 void __setup_cpu_power10(unsigned long offset, struct cpu_spec *spec);
17 void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec *spec);
18 void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec *spec);
19 void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec *spec);
20 void __setup_cpu_440ep(unsigned long offset, struct cpu_spec *spec);
21 void __setup_cpu_440epx(unsigned long offset, struct cpu_spec *spec);
22 void __setup_cpu_440gx(unsigned long offset, struct cpu_spec *spec);
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dfilter.h178 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument
183 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx()
184 spec->priority = priority; in efx_filter_init_rx()
185 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx()
186 spec->rss_context = 0; in efx_filter_init_rx()
187 spec->dmaq_id = rxq_id; in efx_filter_init_rx()
190 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument
193 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx()
194 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx()
195 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx()
[all …]
H A Dmcdi_filters.c30 return (struct efx_filter_spec *)(table->entry[filter_idx].spec & in efx_mcdi_filter_entry_spec()
38 return table->entry[filter_idx].spec & EFX_EF10_FILTER_FLAGS; in efx_mcdi_filter_entry_flags()
63 static bool efx_mcdi_filter_is_exclusive(const struct efx_filter_spec *spec) in efx_mcdi_filter_is_exclusive() argument
65 if (spec->match_flags & EFX_FILTER_MATCH_LOC_MAC && in efx_mcdi_filter_is_exclusive()
66 !is_multicast_ether_addr(spec->loc_mac)) in efx_mcdi_filter_is_exclusive()
69 if ((spec->match_flags & in efx_mcdi_filter_is_exclusive()
72 if (spec->ether_type == htons(ETH_P_IP) && in efx_mcdi_filter_is_exclusive()
73 !ipv4_is_multicast(spec->loc_host[0])) in efx_mcdi_filter_is_exclusive()
75 if (spec->ether_type == htons(ETH_P_IPV6) && in efx_mcdi_filter_is_exclusive()
76 ((const u8 *)spec->loc_host)[0] != 0xff) in efx_mcdi_filter_is_exclusive()
[all …]
H A Drx_common.c586 * efx_filter_is_mc_recipient - test whether spec is a multicast recipient
587 * @spec: Specification to test
594 bool efx_filter_is_mc_recipient(const struct efx_filter_spec *spec) in efx_filter_is_mc_recipient() argument
596 if (!(spec->flags & EFX_FILTER_FLAG_RX) || in efx_filter_is_mc_recipient()
597 spec->dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_filter_is_mc_recipient()
600 if (spec->match_flags & in efx_filter_is_mc_recipient()
602 is_multicast_ether_addr(spec->loc_mac)) in efx_filter_is_mc_recipient()
605 if ((spec->match_flags & in efx_filter_is_mc_recipient()
608 if (spec->ether_type == htons(ETH_P_IP) && in efx_filter_is_mc_recipient()
609 ipv4_is_multicast(spec->loc_host[0])) in efx_filter_is_mc_recipient()
[all …]
/linux/drivers/video/fbdev/via/
H A Dvia_aux_edid.c20 struct fb_monspecs *spec = drv->data; in query_edid() local
24 if (spec) { in query_edid()
25 fb_destroy_modedb(spec->modedb); in query_edid()
27 spec = kmalloc(sizeof(*spec), GFP_KERNEL); in query_edid()
28 if (!spec) in query_edid()
32 spec->version = spec->revision = 0; in query_edid()
34 fb_edid_to_monspecs(edid, spec); in query_edid()
35 valid = spec->version || spec->revision; in query_edid()
39 kfree(spec); in query_edid()
40 spec = NULL; in query_edid()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dfilter.h178 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument
183 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx()
184 spec->priority = priority; in efx_filter_init_rx()
185 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx()
186 spec->rss_context = 0; in efx_filter_init_rx()
187 spec->dmaq_id = rxq_id; in efx_filter_init_rx()
190 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument
193 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx()
194 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx()
195 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx()
[all …]
H A Dethtool_common.c652 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local
656 rule->location, &spec); in efx_ethtool_get_class_rule()
660 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule()
663 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
665 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule()
666 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule()
667 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule()
668 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
669 !(spec.match_flags & in efx_ethtool_get_class_rule()
674 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
[all …]
H A Drx_common.c573 * efx_siena_filter_is_mc_recipient - test whether spec is a multicast recipient
574 * @spec: Specification to test
581 bool efx_siena_filter_is_mc_recipient(const struct efx_filter_spec *spec) in efx_siena_filter_is_mc_recipient() argument
583 if (!(spec->flags & EFX_FILTER_FLAG_RX) || in efx_siena_filter_is_mc_recipient()
584 spec->dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_siena_filter_is_mc_recipient()
587 if (spec->match_flags & in efx_siena_filter_is_mc_recipient()
589 is_multicast_ether_addr(spec->loc_mac)) in efx_siena_filter_is_mc_recipient()
592 if ((spec->match_flags & in efx_siena_filter_is_mc_recipient()
595 if (spec->ether_type == htons(ETH_P_IP) && in efx_siena_filter_is_mc_recipient()
596 ipv4_is_multicast(spec->loc_host[0])) in efx_siena_filter_is_mc_recipient()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A Dfilter.h152 static inline void ef4_filter_init_rx(struct ef4_filter_spec *spec, in ef4_filter_init_rx() argument
157 memset(spec, 0, sizeof(*spec)); in ef4_filter_init_rx()
158 spec->priority = priority; in ef4_filter_init_rx()
159 spec->flags = EF4_FILTER_FLAG_RX | flags; in ef4_filter_init_rx()
160 spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT; in ef4_filter_init_rx()
161 spec->dmaq_id = rxq_id; in ef4_filter_init_rx()
164 static inline void ef4_filter_init_tx(struct ef4_filter_spec *spec, in ef4_filter_init_tx() argument
167 memset(spec, 0, sizeof(*spec)); in ef4_filter_init_tx()
168 spec->priority = EF4_FILTER_PRI_REQUIRED; in ef4_filter_init_tx()
169 spec->flags = EF4_FILTER_FLAG_TX; in ef4_filter_init_tx()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_loader.c133 static void free_test_spec(struct test_spec *spec) in free_test_spec()
136 free_msgs(&spec->priv.expect_msgs); in free_test_spec()
137 free_msgs(&spec->unpriv.expect_msgs); in free_test_spec()
138 free_msgs(&spec->priv.expect_xlated); in free_test_spec()
139 free_msgs(&spec->unpriv.expect_xlated); in free_test_spec()
140 free_msgs(&spec->priv.jited); in free_test_spec()
141 free_msgs(&spec->unpriv.jited);
143 free(spec->priv.name);
144 free(spec->unpriv.name);
145 spec
126 free_test_spec(struct test_spec * spec) free_test_spec() argument
397 parse_test_spec(struct test_loader * tester,struct bpf_object * obj,struct bpf_program * prog,struct test_spec * spec) parse_test_spec() argument
647 prepare_case(struct test_loader * tester,struct test_spec * spec,struct bpf_object * obj,struct bpf_program * prog) prepare_case() argument
798 can_execute_unpriv(struct test_loader * tester,struct test_spec * spec) can_execute_unpriv() argument
870 should_do_test_run(struct test_spec * spec,struct test_subspec * subspec) should_do_test_run() argument
927 run_subtest(struct test_loader * tester,struct bpf_object_open_opts * open_opts,const void * obj_bytes,size_t obj_byte_cnt,struct test_spec * specs,struct test_spec * spec,bool unpriv) run_subtest() argument
1137 struct test_spec *spec = &specs[i++]; process_subtest() local
[all...]
/linux/drivers/media/rc/keymaps/
H A Drc-cec.c21 * CEC Spec "High-Definition Multimedia Interface Specification" can be obtained
36 { 0x09, KEY_ROOT_MENU }, /* CEC Spec: Device Root Menu - see Note 2 */
44 { 0x0b, KEY_MENU }, /* CEC Spec: Contents Menu */
45 { 0x0c, KEY_FAVORITES }, /* CEC Spec: Favorite Menu */
51 { 0x1d, KEY_DIGITS }, /* CEC Spec: select/toggle a Number Entry Mode */
69 { 0x2f, KEY_NEXT_FAVORITE }, /* CEC Spec: Next Favorite */
72 { 0x32, KEY_PREVIOUS }, /* CEC Spec: Previous Channel */
73 { 0x33, KEY_SOUND }, /* CEC Spec: Sound Select */
74 { 0x34, KEY_VIDEO }, /* 0x34: CEC Spec: Input Select */
75 { 0x35, KEY_INFO }, /* CEC Spec: Display Information */
[all …]
/linux/lib/
H A Dvsprintf.c452 struct printf_spec spec) in number() argument
458 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
461 int field_width = spec.field_width; in number()
462 int precision = spec.precision; in number()
466 locase = (spec.flags & SMALL); in number()
467 if (spec.flags & LEFT) in number()
468 spec.flags &= ~ZEROPAD; in number()
470 if (spec.flags & SIGN) { in number()
475 } else if (spec in number()
574 struct printf_spec spec; special_hex_number() local
611 widen_string(char * buf,int n,char * end,struct printf_spec spec) widen_string() argument
633 string_nocheck(char * buf,char * end,const char * s,struct printf_spec spec) string_nocheck() argument
651 err_ptr(char * buf,char * end,void * ptr,struct printf_spec spec) err_ptr() argument
671 error_string(char * buf,char * end,const char * s,struct printf_spec spec) error_string() argument
701 check_pointer(char ** buf,char * end,const void * ptr,struct printf_spec spec) check_pointer() argument
716 string(char * buf,char * end,const char * s,struct printf_spec spec) string() argument
726 pointer_string(char * buf,char * end,const void * ptr,struct printf_spec spec) pointer_string() argument
801 ptr_to_id(char * buf,char * end,const void * ptr,struct printf_spec spec) ptr_to_id() argument
831 default_pointer(char * buf,char * end,const void * ptr,struct printf_spec spec) default_pointer() argument
847 restricted_pointer(char * buf,char * end,const void * ptr,struct printf_spec spec) restricted_pointer() argument
893 dentry_name(char * buf,char * end,const struct dentry * d,struct printf_spec spec,const char * fmt) dentry_name() argument
943 file_dentry_name(char * buf,char * end,const struct file * f,struct printf_spec spec,const char * fmt) file_dentry_name() argument
953 bdev_name(char * buf,char * end,struct block_device * bdev,struct printf_spec spec,const char * fmt) bdev_name() argument
976 symbol_string(char * buf,char * end,void * ptr,struct printf_spec spec,const char * fmt) symbol_string() argument
1037 hex_range(char * buf,char * end,u64 start_val,u64 end_val,struct printf_spec spec) hex_range() argument
1051 resource_string(char * buf,char * end,struct resource * res,struct printf_spec spec,const char * fmt) resource_string() argument
1148 range_string(char * buf,char * end,const struct range * range,struct printf_spec spec,const char * fmt) range_string() argument
1172 hex_string(char * buf,char * end,u8 * addr,struct printf_spec spec,const char * fmt) hex_string() argument
1224 bitmap_string(char * buf,char * end,const unsigned long * bitmap,struct printf_spec spec,const char * fmt) bitmap_string() argument
1268 bitmap_list_string(char * buf,char * end,const unsigned long * bitmap,struct printf_spec spec,const char * fmt) bitmap_list_string() argument
1298 mac_address_string(char * buf,char * end,u8 * addr,struct printf_spec spec,const char * fmt) mac_address_string() argument
1488 ip6_addr_string(char * buf,char * end,const u8 * addr,struct printf_spec spec,const char * fmt) ip6_addr_string() argument
1502 ip4_addr_string(char * buf,char * end,const u8 * addr,struct printf_spec spec,const char * fmt) ip4_addr_string() argument
1513 ip6_addr_string_sa(char * buf,char * end,const struct sockaddr_in6 * sa,struct printf_spec spec,const char * fmt) ip6_addr_string_sa() argument
1575 ip4_addr_string_sa(char * buf,char * end,const struct sockaddr_in * sa,struct printf_spec spec,const char * fmt) ip4_addr_string_sa() argument
1610 ip_addr_string(char * buf,char * end,const void * ptr,struct printf_spec spec,const char * fmt) ip_addr_string() argument
1644 escaped_string(char * buf,char * end,u8 * addr,struct printf_spec spec,const char * fmt) escaped_string() argument
1707 va_format(char * buf,char * end,struct va_format * va_fmt,struct printf_spec spec) va_format() argument
1724 uuid_string(char * buf,char * end,const u8 * addr,struct printf_spec spec,const char * fmt) uuid_string() argument
1769 netdev_bits(char * buf,char * end,const void * addr,struct printf_spec spec,const char * fmt) netdev_bits() argument
1791 fourcc_string(char * buf,char * end,const u32 * fourcc,struct printf_spec spec,const char * fmt) fourcc_string() argument
1829 address_val(char * buf,char * end,const void * addr,struct printf_spec spec,const char * fmt) address_val() argument
1889 rtc_str(char * buf,char * end,const struct rtc_time * tm,struct printf_spec spec,const char * fmt) rtc_str() argument
1939 time64_str(char * buf,char * end,const time64_t time,struct printf_spec spec,const char * fmt) time64_str() argument
1961 time_and_date(char * buf,char * end,void * ptr,struct printf_spec spec,const char * fmt) time_and_date() argument
1975 clock(char * buf,char * end,struct clk * clk,struct printf_spec spec,const char * fmt) clock() argument
2022 const struct printf_spec *spec; global() member
2088 flags_string(char * buf,char * end,void * flags_ptr,struct printf_spec spec,const char * fmt) flags_string() argument
2143 device_node_string(char * buf,char * end,struct device_node * dn,struct printf_spec spec,const char * fmt) device_node_string() argument
2233 fwnode_string(char * buf,char * end,struct fwnode_handle * fwnode,struct printf_spec spec,const char * fmt) fwnode_string() argument
2263 resource_or_range(const char * fmt,char * buf,char * end,void * ptr,struct printf_spec spec) resource_or_range() argument
2427 pointer(const char * fmt,char * buf,char * end,void * ptr,struct printf_spec spec) pointer() argument
2564 format_decode(struct fmt fmt,struct printf_spec * spec) format_decode() argument
2702 set_field_width(struct printf_spec * spec,int width) set_field_width() argument
2711 set_precision(struct printf_spec * spec,int prec) set_precision() argument
2725 convert_num_spec(unsigned int val,int size,struct printf_spec spec) convert_num_spec() argument
2766 struct printf_spec spec = {0}; vsnprintf() local
3046 struct printf_spec spec = {0}; vbin_printf() local
3186 struct printf_spec spec = {0}; bstr_printf() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c180 struct mlx5_flow_spec *spec) in ipsec_rx_rule_add_match_obj() argument
185 mlx5_esw_ipsec_rx_rule_add_match_obj(sa_entry, spec); in ipsec_rx_rule_add_match_obj()
187 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in ipsec_rx_rule_add_match_obj()
189 MLX5_SET(fte_match_param, spec->match_value, in ipsec_rx_rule_add_match_obj()
193 spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS_2; in ipsec_rx_rule_add_match_obj()
207 struct mlx5_flow_spec *spec; in rx_add_rule_drop_auth_trailer() local
210 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in rx_add_rule_drop_auth_trailer()
211 if (!spec) in rx_add_rule_drop_auth_trailer()
228 spec->flow_context.flow_source = MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK; in rx_add_rule_drop_auth_trailer()
230 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters_2.ipsec_syndrome); in rx_add_rule_drop_auth_trailer()
[all …]
H A Dfs_tcp.c29 static void accel_fs_tcp_set_ipv4_flow(struct mlx5_flow_spec *spec, struct sock *sk) in accel_fs_tcp_set_ipv4_flow() argument
31 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv4_flow()
32 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_TCP); in accel_fs_tcp_set_ipv4_flow()
33 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv4_flow()
34 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 4); in accel_fs_tcp_set_ipv4_flow()
35 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv4_flow()
38 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv4_flow()
41 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow()
43 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow()
48 static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk) in accel_fs_tcp_set_ipv6_flow() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste.h25 #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \ argument
26 if ((spec)->s_fname) { \
28 (spec)->s_fname = 0; \
32 /* Set to STE spec->s_fname to tag->t_fname set spec->s_fname as used */
33 #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \ argument
34 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname)
36 /* Set to STE -1 to tag->t_fname and set spec->s_fname as used */
37 #define DR_STE_SET_ONES(lookup_type, tag, t_fname, spec, s_fname) \ argument
38 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, -1)
40 #define DR_STE_SET_TCP_FLAGS(lookup_type, tag, spec) do { \ argument
[all …]

12345678910>>...62