Searched refs:field (Results 1 – 4 of 4) sorted by relevance
/sound/pci/ctxfi/ |
D | cthardware.c | 68 unsigned int get_field(unsigned int data, unsigned int field) in get_field() argument 72 if (WARN_ON(!field)) in get_field() 75 for (i = 0; !(field & (1 << i)); ) in get_field() 78 return (data & field) >> i; in get_field() 81 void set_field(unsigned int *data, unsigned int field, unsigned int value) in set_field() argument 85 if (WARN_ON(!field)) in set_field() 88 for (i = 0; !(field & (1 << i)); ) in set_field() 91 *data = (*data & (~field)) | ((value << i) & field); in set_field()
|
D | cthardware.h | 201 unsigned int get_field(unsigned int data, unsigned int field); 202 void set_field(unsigned int *data, unsigned int field, unsigned int value);
|
/sound/mips/ |
D | ad1843.c | 187 const struct ad1843_bitfield *field) in ad1843_read_bits() argument 191 w = ad1843->read(ad1843->chip, field->reg); in ad1843_read_bits() 192 return w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits() 200 const struct ad1843_bitfield *field, in ad1843_write_bits() argument 205 w = ad1843->read(ad1843->chip, field->reg); in ad1843_write_bits() 206 mask = ((1 << field->nbits) - 1) << field->lo_bit; in ad1843_write_bits() 207 oldval = (w & mask) >> field->lo_bit; in ad1843_write_bits() 208 newbits = (newval << field->lo_bit) & mask; in ad1843_write_bits() 210 ad1843->write(ad1843->chip, field->reg, w); in ad1843_write_bits()
|
/sound/aoa/soundbus/ |
D | sysfs.c | 6 #define soundbus_config_of_attr(field, format_string) \ argument 8 field##_show (struct device *dev, struct device_attribute *attr, \ 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
|