Home
last modified time | relevance | path

Searched refs:field (Results 1 – 11 of 11) sorted by relevance

/sound/pci/ctxfi/
Dcthardware.c64 unsigned int get_field(unsigned int data, unsigned int field) in get_field() argument
68 if (WARN_ON(!field)) in get_field()
71 for (i = 0; !(field & (1 << i)); ) in get_field()
74 return (data & field) >> i; in get_field()
77 void set_field(unsigned int *data, unsigned int field, unsigned int value) in set_field() argument
81 if (WARN_ON(!field)) in set_field()
84 for (i = 0; !(field & (1 << i)); ) in set_field()
87 *data = (*data & (~field)) | ((value << i) & field); in set_field()
Dcthardware.h198 unsigned int get_field(unsigned int data, unsigned int field);
199 void set_field(unsigned int *data, unsigned int field, unsigned int value);
/sound/mips/
Dad1843.c173 const struct ad1843_bitfield *field) in ad1843_read_bits() argument
177 w = ad1843->read(ad1843->chip, field->reg); in ad1843_read_bits()
178 return w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits()
186 const struct ad1843_bitfield *field, in ad1843_write_bits() argument
191 w = ad1843->read(ad1843->chip, field->reg); in ad1843_write_bits()
192 mask = ((1 << field->nbits) - 1) << field->lo_bit; in ad1843_write_bits()
193 oldval = (w & mask) >> field->lo_bit; in ad1843_write_bits()
194 newbits = (newval << field->lo_bit) & mask; in ad1843_write_bits()
196 ad1843->write(ad1843->chip, field->reg, w); in ad1843_write_bits()
/sound/pci/hda/
Dhda_sysfs.c52 #define CODEC_INFO_SHOW(type, field) \ argument
58 return sysfs_emit(buf, "0x%x\n", codec->field); \
61 #define CODEC_INFO_STR_SHOW(type, field) \ argument
68 codec->field ? codec->field : ""); \
166 #define CODEC_INFO_STORE(type, field) \ argument
176 codec->field = val; \
180 #define CODEC_INFO_STR_STORE(type, field) \ argument
189 kfree(codec->field); \
190 codec->field = s; \
DKconfig306 bool "Use the device identifier field for controls"
309 Say Y to use the device identifier field for (mixer)
313 field in control (mixer) element identifiers. The use
314 of this field is not recommended and defined for mixer controls.
/sound/usb/
Dmixer_s1810c.c176 u32 *field, int field_idx, uint16_t *seqnum) in snd_sc1810c_get_status_field() argument
203 (*field) = pkt_in.fields[field_idx]; in snd_sc1810c_get_status_field()
339 u32 field = 0; in snd_s1810c_get_switch_state() local
344 ret = snd_sc1810c_get_status_field(chip->dev, &field, in snd_s1810c_get_switch_state()
349 *state = field; in snd_s1810c_get_switch_state()
Dclock.c39 #define GET_VAL(p, proto, field) \ argument
40 ((proto) == UAC_VERSION_3 ? (p)->v3.field : (p)->v2.field)
/sound/soc/codecs/
Dwcd-mbhc-v2.c79 int field, int val) in wcd_mbhc_write_field() argument
81 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field()
85 mbhc->fields[field].reg, in wcd_mbhc_write_field()
86 mbhc->fields[field].mask, val); in wcd_mbhc_write_field()
89 static inline int wcd_mbhc_read_field(const struct wcd_mbhc *mbhc, int field) in wcd_mbhc_read_field() argument
91 if (!mbhc->fields[field].reg) in wcd_mbhc_read_field()
95 mbhc->fields[field].reg, in wcd_mbhc_read_field()
96 mbhc->fields[field].mask); in wcd_mbhc_read_field()
Dwm_adsp.c188 #define HOST_BUFFER_FIELD(field) \ argument
189 (offsetof(struct wm_adsp_buffer, field) / sizeof(__be32))
191 #define ALG_XM_FIELD(field) \ argument
192 (offsetof(struct wm_adsp_alg_xm_struct, field) / sizeof(__be32))
/sound/soc/sof/intel/
Dhda-dsp.c136 #define MASK_IS_EQUAL(v, m, field) ({ \ in hda_dsp_core_is_enabled() argument
137 u32 _m = field(m); \ in hda_dsp_core_is_enabled()
/sound/soc/
Dsoc-core.c1622 static int is_dmi_valid(const char *field) in is_dmi_valid() argument
1627 if (strstr(field, dmi_blacklist[i])) in is_dmi_valid()