| /OK3568_Linux_fs/kernel/sound/pci/ice1712/ |
| H A D | hoontech.c | 43 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 D | psc724.c | 106 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 182 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state() [all …]
|
| H A D | se.c | 448 struct se_spec *spec = ice->spec; in se200pci_cont_volume_get() local 450 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 451 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 459 struct se_spec *spec = ice->spec; in se200pci_cont_boolean_get() local 461 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get() 469 struct se_spec *spec = ice->spec; in se200pci_cont_enum_get() local 471 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get() 477 struct se_spec *spec = ice->spec; in se200pci_cont_update() local 482 spec->vol[n].ch1, in se200pci_cont_update() 483 spec->vol[n].ch2); in se200pci_cont_update() [all …]
|
| H A D | phase.c | 332 struct phase28_spec *spec = ice->spec; in wm_master_vol_get() local 335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get() 344 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local 352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 353 if (vol != spec->master[ch]) { in wm_master_vol_put() 355 spec->master[ch] = vol; in wm_master_vol_put() 358 spec->vol[dac + ch], in wm_master_vol_put() 359 spec->master[ch]); in wm_master_vol_put() 408 struct phase28_spec *spec; in phase28_init() local 415 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init() [all …]
|
| H A D | prodigy_hifi.c | 255 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_get() local 259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 267 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_put() local 273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 276 spec->vol[i] & 0xff); in ak4396_dac_vol_put() 364 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_get() local 369 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get() 376 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_put() local 381 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put() [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/hda/ |
| H A D | hda_generic.c | 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() 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() 76 static void free_kctls(struct hda_gen_spec *spec) in free_kctls() argument 78 if (spec->kctls.list) { in free_kctls() 79 struct snd_kcontrol_new *kctl = spec->kctls.list; in free_kctls() [all …]
|
| H A D | patch_analog.c | 43 #define set_beep_amp(spec, nid, idx, dir) \ argument 44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 46 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument 52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() local 55 if (!spec->beep_amp) in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() 133 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local 135 if (!spec->eapd_nid) in ad_vmaster_eapd_hook() 139 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook() 177 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local [all …]
|
| H A D | patch_sigmatel.c | 246 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local 247 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook() 248 msleep(spec->stream_delay); in stac_playback_pcm_hook() 256 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local 259 if (!spec->powerdown_adcs) in stac_capture_pcm_hook() 262 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook() 263 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook() 274 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook() 279 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook() 328 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local [all …]
|
| H A D | patch_cirrus.c | 131 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local 132 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 134 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 141 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local 142 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 144 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 156 struct cs_spec *spec = codec->spec; in cs_automute() local 159 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute() 163 if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) { in cs_automute() 164 if (spec->gen.automute_speaker) in cs_automute() [all …]
|
| H A D | patch_ca0132.c | 1148 #define ca0132_quirk(spec) ((spec)->quirk) argument 1149 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument 1150 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument 1151 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument 1153 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument 1154 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument 1155 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument 1156 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument 1534 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local 1537 if (spec->curr_chip_addx == chip_addx) in chipio_write_address() [all …]
|
| H A D | patch_conexant.c | 56 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 D | patch_via.c | 72 #define VT2002P_COMPATIBLE(spec) \ argument 73 ((spec)->codec_type == VT2002P ||\ 74 (spec)->codec_type == VT1812 ||\ 75 (spec)->codec_type == VT1802) 102 struct via_spec *spec; in via_new_spec() local 104 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec() 105 if (spec == NULL) in via_new_spec() 108 codec->spec = spec; in via_new_spec() 109 snd_hda_gen_spec_init(&spec->gen); in via_new_spec() 110 spec->codec_type = get_codec_type(codec); in via_new_spec() [all …]
|
| H A D | patch_hdmi.c | 186 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local 187 return spec->use_acomp_notifier; in codec_has_acomp() 229 #define get_pin(spec, idx) \ argument 230 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx)) 231 #define get_cvt(spec, idx) \ argument 232 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx)) 234 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument 236 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument 241 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local 252 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in pin_id_to_pin_index() [all …]
|
| H A D | patch_realtek.c | 139 struct alc_spec *spec = codec->spec; in coef_mutex_lock() local 142 mutex_lock(&spec->coef_mutex); in coef_mutex_lock() 147 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() local 149 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock() 221 struct alc_spec *spec = codec->spec; in alc_get_coef0() local 223 if (!spec->coef0) in alc_get_coef0() 224 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0() 225 return spec->coef0; in alc_get_coef0() 263 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local 265 spec->gpio_mask |= mask; in alc_setup_gpio() [all …]
|
| H A D | patch_cmedia.c | 37 struct cmi_spec *spec; in patch_cmi9880() local 41 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi9880() 42 if (spec == NULL) in patch_cmi9880() 45 codec->spec = spec; in patch_cmi9880() 47 cfg = &spec->gen.autocfg; in patch_cmi9880() 48 snd_hda_gen_spec_init(&spec->gen); in patch_cmi9880() 66 struct cmi_spec *spec; in patch_cmi8888() local 70 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi8888() 71 if (!spec) in patch_cmi8888() 74 codec->spec = spec; in patch_cmi8888() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/ |
| H A D | filter.h | 179 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument 184 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx() 185 spec->priority = priority; in efx_filter_init_rx() 186 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx() 187 spec->rss_context = 0; in efx_filter_init_rx() 188 spec->dmaq_id = rxq_id; in efx_filter_init_rx() 191 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument 194 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx() 195 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx() 196 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx() [all …]
|
| H A D | ethtool_common.c | 657 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local 661 rule->location, &spec); in efx_ethtool_get_class_rule() 665 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule() 668 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule() 670 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule() 671 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule() 672 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule() 673 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule() 674 !(spec.match_flags & in efx_ethtool_get_class_rule() 679 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() [all …]
|
| H A D | mcdi_filters.c | 30 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/falcon/ |
| H A D | filter.h | 152 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 …]
|
| H A D | ethtool.c | 795 struct ef4_filter_spec spec; in ef4_ethtool_get_class_rule() local 799 rule->location, &spec); in ef4_ethtool_get_class_rule() 803 if (spec.dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP) in ef4_ethtool_get_class_rule() 806 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule() 808 if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) && in ef4_ethtool_get_class_rule() 809 spec.ether_type == htons(ETH_P_IP) && in ef4_ethtool_get_class_rule() 810 (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) && in ef4_ethtool_get_class_rule() 811 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule() 812 !(spec.match_flags & in ef4_ethtool_get_class_rule() 817 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/via/ |
| H A D | via_aux_edid.c | 20 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 …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | vsprintf.c | 453 struct printf_spec spec) in number() argument 459 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number() 462 int field_width = spec.field_width; in number() 463 int precision = spec.precision; in number() 467 locase = (spec.flags & SMALL); in number() 468 if (spec.flags & LEFT) in number() 469 spec.flags &= ~ZEROPAD; in number() 471 if (spec.flags & SIGN) { in number() 476 } else if (spec.flags & PLUS) { in number() 479 } else if (spec.flags & SPACE) { in number() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| H A D | dr_ste.c | 22 #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \ argument 23 if ((spec)->s_fname) { \ 25 (spec)->s_fname = 0; \ 30 #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \ argument 31 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname) 34 #define DR_STE_SET_MASK(lookup_type, bit_mask, bm_fname, spec, s_fname) \ argument 35 DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, -1) 38 #define DR_STE_SET_MASK_V(lookup_type, bit_mask, bm_fname, spec, s_fname) \ argument 39 DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, (spec)->s_fname) 41 #define DR_STE_SET_TCP_FLAGS(lookup_type, tag, spec) do { \ argument [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/maps/ |
| H A D | qgeofiletilecache.cpp | 62 QGeoTileSpec spec; member in QGeoCachedTileMemory 174 QGeoTileSpec spec = filenameToTileSpec(filename); in loadTiles() 175 if (spec.zoom() == -1) in loadTiles() 180 tileDisk->spec = spec; in loadTiles() 182 specs.append(spec); in loadTiles() 200 QGeoTileSpec spec = filenameToTileSpec(files.at(i)); in loadTiles() local 201 if (spec.zoom() == -1) in loadTiles() 204 addToDiskCache(spec, filename); in loadTiles() 338 QGeoTileSpec spec = filenameToTileSpec(tileFileName); in clearMapId() local 339 if (spec.mapId() != mapId) in clearMapId() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/osm/ |
| H A D | qgeofiletilecacheosm.cpp | 72 QSharedPointer<QGeoTileTexture> QGeoFileTileCacheOsm::get(const QGeoTileSpec &spec) in get() argument 74 QSharedPointer<QGeoTileTexture> tt = getFromMemory(spec); in get() 77 if ((tt = getFromOfflineStorage(spec))) in get() 79 return getFromDisk(spec); in get() 132 QGeoTileSpec spec = filenameToTileSpec(tileFileName); in init() local 133 if (spec.zoom() == -1) in init() 136 if (fi.lastModified() > m_maxMapIdTimestamps[spec.mapId()]) in init() 137 m_maxMapIdTimestamps[spec.mapId()] = fi.lastModified(); in init() 147 …haredPointer<QGeoTileTexture> QGeoFileTileCacheOsm::getFromOfflineStorage(const QGeoTileSpec &spec) in getFromOfflineStorage() argument 152 int providerId = spec.mapId() - 1; in getFromOfflineStorage() [all …]
|