/linux-master/drivers/usb/core/ |
H A D | endpoint.c | 36 #define usb_ep_attr(field, format_string) \ 37 static ssize_t field##_show(struct device *dev, \ 42 return sprintf(buf, format_string, ep->desc->field); \ 44 static DEVICE_ATTR_RO(field)
|
/linux-master/sound/mips/ |
H A D | ad1843.c | 173 const struct ad1843_bitfield *field) 177 w = ad1843->read(ad1843->chip, field->reg); 178 return w >> field->lo_bit & ((1 << field->nbits) - 1); 186 const struct ad1843_bitfield *field, 191 w = ad1843->read(ad1843->chip, field->reg); 192 mask = ((1 << field->nbits) - 1) << field->lo_bit; 193 oldval = (w & mask) >> field->lo_bit; 194 newbits = (newval << field 172 ad1843_read_bits(struct snd_ad1843 *ad1843, const struct ad1843_bitfield *field) argument 185 ad1843_write_bits(struct snd_ad1843 *ad1843, const struct ad1843_bitfield *field, int newval) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpni-cmd.h | 106 #define DPNI_MASK(field) \ 107 GENMASK(DPNI_##field##_SHIFT + DPNI_##field##_SIZE - 1, \ 108 DPNI_##field##_SHIFT) 110 #define dpni_set_field(var, field, val) \ 111 ((var) |= (((val) << DPNI_##field##_SHIFT) & DPNI_MASK(field))) 112 #define dpni_get_field(var, field) \ 113 (((var) & DPNI_MASK(field)) >> DPNI_##field##_SHIF 433 __le32 field; member in struct:dpni_dist_extract [all...] |
H A D | dpsw-cmd.h | 101 #define DPSW_MASK(field) \ 102 GENMASK(DPSW_##field##_SHIFT + DPSW_##field##_SIZE - 1, \ 103 DPSW_##field##_SHIFT) 104 #define dpsw_set_field(var, field, val) \ 105 ((var) |= (((val) << DPSW_##field##_SHIFT) & DPSW_MASK(field))) 106 #define dpsw_get_field(var, field) \ 107 (((var) & DPSW_MASK(field)) >> DPSW_##field##_SHIF [all...] |
/linux-master/drivers/hid/ |
H A D | hid-google-hammer.c | 372 struct hid_field *field, 411 static int hammer_event(struct hid_device *hid, struct hid_field *field, argument 434 struct hid_field *field = report->field[i]; local 436 for (j = 0; j < field->maxusage; j++) 437 if (field->usage[j].hid == usage) 483 struct hid_field *field = report->field[a]; local 485 if (field->usage->hid == HID_USAGE_KBD_FOLDED) { 487 field 371 hammer_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument [all...] |
H A D | wacom_wac.c | 1919 struct hid_field *field, __u8 type, __u16 code, int fuzz) 1924 int fmin = field->logical_minimum; 1925 int fmax = field->logical_maximum; 1928 int resolution = hidinput_calc_abs_res(field, resolution_code); 1968 struct hid_field *field, struct hid_usage *usage) 1973 static void wacom_wac_battery_event(struct hid_device *hdev, struct hid_field *field, argument 1986 value = value * 100 / (field->logical_maximum - field->logical_minimum); 1994 value = value * 100 / (field->logical_maximum - field 1918 wacom_map_usage(struct input_dev *input, struct hid_usage *usage, struct hid_field *field, __u8 type, __u16 code, int fuzz) argument 1967 wacom_wac_battery_usage_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument 2032 wacom_wac_pad_usage_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument 2141 wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument 2256 wacom_wac_pad_report(struct hid_device *hdev, struct hid_report *report, struct hid_field *field) argument 2288 wacom_wac_pen_usage_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument 2373 wacom_wac_pen_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument 2610 wacom_wac_finger_usage_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument 2720 wacom_wac_finger_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument 2795 struct hid_field *field = report->field[i]; local 2825 struct hid_field *field = report->field[hid_data->cc_index]; local 2868 wacom_wac_usage_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument 2889 wacom_wac_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument 2918 struct hid_field *field; local 2937 wacom_wac_collection(struct hid_device *hdev, struct hid_report *report, int collection_index, struct hid_field *field, int field_index) argument 2969 struct hid_field *field; local [all...] |
H A D | hid-debug.c | 559 void hid_dump_field(struct hid_field *field, int n, struct seq_file *f) { argument 562 if (field->physical) { 565 hid_resolv_usage(field->physical, f); seq_printf(f, ")\n"); 567 if (field->logical) { 570 hid_resolv_usage(field->logical, f); seq_printf(f, ")\n"); 572 if (field->application) { 575 hid_resolv_usage(field->application, f); seq_printf(f, ")\n"); 577 tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage); 578 for (j = 0; j < field->maxusage; j++) { 579 tab(n+2, f); hid_resolv_usage(field [all...] |
/linux-master/fs/bcachefs/ |
H A D | sb-clean.c | 30 entry < (struct jset_entry *) vstruct_end(&clean->field); 32 if (vstruct_end(entry) > vstruct_end(&clean->field)) { 34 le16_to_cpu(entry->u64s), le32_to_cpu(clean->field.u64s), 35 (u64 *) vstruct_end(entry) - (u64 *) vstruct_end(&clean->field)); 61 end = vstruct_end(&clean->field); 161 clean = kmemdup(sb_clean, vstruct_bytes(&sb_clean->field), 275 if (vstruct_bytes(&clean->field) < sizeof(*clean)) { 277 vstruct_bytes(&clean->field), sizeof(*clean)); 296 entry != vstruct_end(&clean->field); 366 BUG_ON((void *) entry > vstruct_end(&sb_clean->field)); [all...] |
H A D | replicas.h | 77 (void *) (_i) < vstruct_end(&(_r)->field) && (_i)->data_type;\ 82 (void *) (_i) < vstruct_end(&(_r)->field) && (_i)->data_type;\
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | chip.h | 10 #define CORE_CC_REG(base, field) \ 11 (base + offsetof(struct chipcregs, field))
|
/linux-master/drivers/staging/vc04_services/bcm2835-camera/ |
H A D | bcm2835-camera.h | 123 "%s: w %u h %u field %u pfmt 0x%x bpl %u sz_img %u colorspace 0x%x priv %u\n", \ 125 (pix_fmt)->width, (pix_fmt)->height, (pix_fmt)->field, \ 133 "%s: w %u h %u l %u t %u field %u chromakey %06X clip %p " \ 138 (win_fmt)->field, \
|
/linux-master/drivers/media/platform/st/sti/delta/ |
H A D | delta-debug.c | 22 (s->field == V4L2_FIELD_NONE) ? "progressive" : "interlaced", 44 (f->field == V4L2_FIELD_NONE) ? "progressive" : "interlaced",
|
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
H A D | rv1_clk_mgr_vbios_smu.c | 68 #define FN(reg_name, field) \ 69 FD(reg_name##__##field)
|
/linux-master/arch/mips/sgi-ip32/ |
H A D | crime.c | 31 const int field = 2 * sizeof(unsigned long); local 41 id, rev, field, (unsigned long) CRIME_BASE);
|
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | cnic.h | 386 #define BNX2X_SHMEM_ADDR(base, field) (base + \ 387 offsetof(struct shmem_region, field)) 389 #define BNX2X_SHMEM2_ADDR(base, field) (base + \ 390 offsetof(struct shmem2_region, field)) 392 #define BNX2X_SHMEM2_HAS(base, field) \ 395 offsetof(struct shmem2_region, field))) 397 #define BNX2X_MF_CFG_ADDR(base, field) \ 398 ((base) + offsetof(struct mf_cfg, field))
|
/linux-master/include/video/ |
H A D | gbe.h | 88 #define GET_GBE_FIELD(reg, field, v) \ 89 GET((v), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB) 90 #define SET_GBE_FIELD(reg, field, v, f) \ 91 SET((v), (f), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB)
|
/linux-master/drivers/media/radio/ |
H A D | radio-gemtek.c | 128 #define MKMASK(field) (((1UL<<BU2614_##field##_BITS) - 1) << \ 129 BU2614_##field##_SHIFT) 144 #define gemtek_bu2614_set(dev, field, data) ((dev)->bu2614data = \ 145 ((dev)->bu2614data & ~field##_MASK) | ((data) << field##_SHIFT))
|
/linux-master/tools/bootconfig/scripts/ |
H A D | bconf2ftrace.sh | 94 xbc_get_val $2 | while read field; do echo -n "$field; "; done 101 xbc_get_val ${1}.${2} | while read field; do 102 echo -n "$__sep$field"; __sep="," 110 xbc_get_val ${1}.${2} | while read field; do 111 echo -n "$__sep$field"; __sep=","
|
/linux-master/drivers/rtc/ |
H A D | rtc-ssd202d.c | 95 unsigned int field, unsigned int *base) 104 writew(val | field, priv->base + reg); 106 writew(val & ~field, priv->base + reg); 115 unsigned int field, u32 base) 121 writew(val | field, priv->base + reg); 125 writew(val & ~field, priv->base + reg); 94 ssd202d_rtc_read_reg(struct ssd202d_rtc *priv, unsigned int reg, unsigned int field, unsigned int *base) argument 114 ssd202d_rtc_write_reg(struct ssd202d_rtc *priv, unsigned int reg, unsigned int field, u32 base) argument
|
/linux-master/tools/perf/scripts/python/ |
H A D | arm-cs-trace-disasm.py | 56 def get_optional(perf_dict, field): 57 if field in perf_dict: 58 return perf_dict[field] 61 def get_offset(perf_dict, field): 62 if field in perf_dict: 63 return "+%#x" % perf_dict[field]
|
H A D | intel-pt-events.py | 50 def get_optional_null(perf_dict, field): 51 if field in perf_dict: 52 return perf_dict[field] 55 def get_optional_zero(perf_dict, field): 56 if field in perf_dict: 57 return perf_dict[field] 60 def get_optional_bytes(perf_dict, field): 61 if field in perf_dict: 62 return perf_dict[field] 65 def get_optional(perf_dict, field) [all...] |
/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-vbi.c | 22 data.field = 0; 39 data.field = 0; 44 data.field = 1; 67 data.field = 0; 90 if (d->field) { 98 } else if (d->id == V4L2_SLICED_VPS && d->line == 16 && d->field == 0) { 111 d->line == 23 && d->field == 0) { 197 f = itv->vbi.sliced_data[i].field; 280 itv->vbi.sliced_dec_data[line].field = i >= 18; 290 itv->vbi.sliced_dec_data[line].field [all...] |
/linux-master/samples/v4l/ |
H A D | v4l2-pci-skeleton.c | 49 * @field: the field (TOP/BOTTOM/other) of the current buffer 67 unsigned field; member in struct:skeleton 116 * counter, field and timestamp at the same time. 133 new_buf->vb.field = skel->field; 134 if (skel->format.field == V4L2_FIELD_ALTERNATE) { 135 if (skel->field == V4L2_FIELD_BOTTOM) 136 skel->field = V4L2_FIELD_TOP; 137 else if (skel->field [all...] |
/linux-master/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 213 static int calculate_v_scale_registers(struct saa7146_dev *dev, enum v4l2_field field, argument 233 or scaling is between 1/2 and 1/4 (if only one field is used) */ 235 if (V4L2_FIELD_HAS_BOTH(field)) { 239 } else if (field == V4L2_FIELD_TOP 240 || field == V4L2_FIELD_ALTERNATE 241 || field == V4L2_FIELD_BOTTOM) { 309 static void saa7146_set_window(struct saa7146_dev *dev, int width, int height, enum v4l2_field field) argument 321 calculate_v_scale_registers(dev, field, vv->standard->v_field*2, height, &hps_v_scale, &hps_v_gain); 417 enum v4l2_field field = pix->field; local 543 enum v4l2_field field = pix->field; local [all...] |
/linux-master/drivers/regulator/ |
H A D | tps6524x-regulator.c | 120 struct field { struct 132 struct field enable, voltage, ilimsel; 281 static int read_field(struct tps6524x *hw, const struct field *field) argument 285 tmp = read_reg(hw, field->reg); 289 return (tmp >> field->shift) & field->mask; 292 static int write_field(struct tps6524x *hw, const struct field *field, argument 295 if (val & ~field [all...] |