Home
last modified time | relevance | path

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

12345678

/linux-4.19.296/include/net/
Dsnmp.h126 #define __SNMP_INC_STATS(mib, field) \ argument
127 __this_cpu_inc(mib->mibs[field])
129 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ argument
130 atomic_long_inc(&mib->mibs[field])
132 #define SNMP_INC_STATS(mib, field) \ argument
133 this_cpu_inc(mib->mibs[field])
135 #define SNMP_DEC_STATS(mib, field) \ argument
136 this_cpu_dec(mib->mibs[field])
138 #define __SNMP_ADD_STATS(mib, field, addend) \ argument
139 __this_cpu_add(mib->mibs[field], addend)
[all …]
Dicmp.h33 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
34 #define __ICMP_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
35 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, argument
36 #define ICMPMSGIN_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, argument
/linux-4.19.296/drivers/xen/xen-pciback/
Dconf_space.c45 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local
49 switch (field->size) { in DEFINE_PCI_CONFIG()
51 if (field->u.b.read) in DEFINE_PCI_CONFIG()
52 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG()
56 if (field->u.w.read) in DEFINE_PCI_CONFIG()
57 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG()
61 if (field->u.dw.read) in DEFINE_PCI_CONFIG()
62 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG()
73 const struct config_field *field = entry->field; in conf_space_write() local
75 switch (field->size) { in conf_space_write()
[all …]
Dconf_space.h43 void (*clean) (struct config_field *field);
63 const struct config_field *field; member
70 #define OFFSET(cfg_entry) ((cfg_entry)->base_offset+(cfg_entry)->field->offset)
76 const struct config_field *field,
80 const struct config_field *field) in xen_pcibk_config_add_field() argument
82 return xen_pcibk_config_add_field_offset(dev, field, 0); in xen_pcibk_config_add_field()
86 const struct config_field *field) in xen_pcibk_config_add_fields() argument
89 for (i = 0; field[i].size != 0; i++) { in xen_pcibk_config_add_fields()
90 err = xen_pcibk_config_add_field(dev, &field[i]); in xen_pcibk_config_add_fields()
98 const struct config_field *field, in xen_pcibk_config_add_fields_offset() argument
[all …]
Dconf_space_quirks.c65 *field) in xen_pcibk_config_quirks_add_field()
69 switch (field->size) { in xen_pcibk_config_quirks_add_field()
71 field->u.b.read = xen_pcibk_read_config_byte; in xen_pcibk_config_quirks_add_field()
72 field->u.b.write = xen_pcibk_write_config_byte; in xen_pcibk_config_quirks_add_field()
75 field->u.w.read = xen_pcibk_read_config_word; in xen_pcibk_config_quirks_add_field()
76 field->u.w.write = xen_pcibk_write_config_word; in xen_pcibk_config_quirks_add_field()
79 field->u.dw.read = xen_pcibk_read_config_dword; in xen_pcibk_config_quirks_add_field()
80 field->u.dw.write = xen_pcibk_write_config_dword; in xen_pcibk_config_quirks_add_field()
87 xen_pcibk_config_add_field(dev, field); in xen_pcibk_config_quirks_add_field()
119 void xen_pcibk_config_field_free(struct config_field *field) in xen_pcibk_config_field_free() argument
[all …]
/linux-4.19.296/include/linux/
Dbitfield.h111 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument
113 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier()
115 return field & -field; in field_multiplier()
117 static __always_inline u64 field_mask(u64 field) in field_mask() argument
119 return field / field_multiplier(field); in field_mask()
122 static __always_inline __##type type##_encode_bits(base v, base field) \
124 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
126 return to((v & field_mask(field)) * field_multiplier(field)); \
129 base val, base field) \
131 return (old & ~to(field)) | type##_encode_bits(val, field); \
[all …]
/linux-4.19.296/drivers/clk/st/
Dclkgen.h22 struct clkgen_field *field) in clkgen_read() argument
24 return (readl(base + field->offset) >> field->shift) & field->mask; in clkgen_read()
28 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, in clkgen_write() argument
31 writel((readl(base + field->offset) & in clkgen_write()
32 ~(field->mask << field->shift)) | (val << field->shift), in clkgen_write()
33 base + field->offset); in clkgen_write()
44 #define CLKGEN_READ(pll, field) clkgen_read(pll->regs_base, \ argument
45 &pll->data->field)
47 #define CLKGEN_WRITE(pll, field, val) clkgen_write(pll->regs_base, \ argument
48 &pll->data->field, val)
/linux-4.19.296/drivers/hid/
Dhid-dr.c65 drff->report->field[0]->value[0] = 0x51; in drff_play()
66 drff->report->field[0]->value[1] = 0x00; in drff_play()
67 drff->report->field[0]->value[2] = weak; in drff_play()
68 drff->report->field[0]->value[4] = strong; in drff_play()
71 drff->report->field[0]->value[0] = 0xfa; in drff_play()
72 drff->report->field[0]->value[1] = 0xfe; in drff_play()
74 drff->report->field[0]->value[0] = 0xf3; in drff_play()
75 drff->report->field[0]->value[1] = 0x00; in drff_play()
78 drff->report->field[0]->value[2] = 0x00; in drff_play()
79 drff->report->field[0]->value[4] = 0x00; in drff_play()
[all …]
Dhid-lg3ff.c72 memset(report->field[0]->value, 0, in hid_lg3ff_play()
73 sizeof(__s32) * report->field[0]->report_count); in hid_lg3ff_play()
85 report->field[0]->value[0] = 0x51; in hid_lg3ff_play()
91 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play()
92 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play()
110 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter()
111 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter()
112 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter()
113 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter()
114 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter()
[all …]
Dhid-lg2ff.c48 lg2ff->report->field[0]->value[0] = 0x51; in play_effect()
49 lg2ff->report->field[0]->value[2] = weak; in play_effect()
50 lg2ff->report->field[0]->value[4] = strong; in play_effect()
52 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect()
53 lg2ff->report->field[0]->value[2] = 0x00; in play_effect()
54 lg2ff->report->field[0]->value[4] = 0x00; in play_effect()
94 report->field[0]->value[0] = 0xf3; in lg2ff_init()
95 report->field[0]->value[1] = 0x00; in lg2ff_init()
96 report->field[0]->value[2] = 0x00; in lg2ff_init()
97 report->field[0]->value[3] = 0x00; in lg2ff_init()
[all …]
Dhid-gaff.c57 gaff->report->field[0]->value[0] = 0x51; in hid_gaff_play()
58 gaff->report->field[0]->value[1] = 0x0; in hid_gaff_play()
59 gaff->report->field[0]->value[2] = right; in hid_gaff_play()
60 gaff->report->field[0]->value[3] = 0; in hid_gaff_play()
61 gaff->report->field[0]->value[4] = left; in hid_gaff_play()
62 gaff->report->field[0]->value[5] = 0; in hid_gaff_play()
66 gaff->report->field[0]->value[0] = 0xfa; in hid_gaff_play()
67 gaff->report->field[0]->value[1] = 0xfe; in hid_gaff_play()
68 gaff->report->field[0]->value[2] = 0x0; in hid_gaff_play()
69 gaff->report->field[0]->value[4] = 0x0; in hid_gaff_play()
[all …]
Dhid-input.c109 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key()
110 usage = report->field[i]->usage + j; in hidinput_find_key()
211 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument
213 __s32 unit_exponent = field->unit_exponent; in hidinput_calc_abs_res()
214 __s32 logical_extents = field->logical_maximum - in hidinput_calc_abs_res()
215 field->logical_minimum; in hidinput_calc_abs_res()
216 __s32 physical_extents = field->physical_maximum - in hidinput_calc_abs_res()
217 field->physical_minimum; in hidinput_calc_abs_res()
238 if (field->unit == 0x11) { /* If centimeters */ in hidinput_calc_abs_res()
241 } else if (field->unit == 0x13) { /* If inches */ in hidinput_calc_abs_res()
[all …]
Dhid-pl.c129 if (report->field[0]->report_count >= 4) { in plff_init()
130 report->field[0]->value[0] = 0x00; in plff_init()
131 report->field[0]->value[1] = 0x00; in plff_init()
132 strong = &report->field[0]->value[2]; in plff_init()
133 weak = &report->field[0]->value[3]; in plff_init()
135 } else if (report->field[0]->maxusage == 1 && in plff_init()
136 report->field[0]->usage[0].hid == in plff_init()
139 report->field[0]->report_count >= 1 && in plff_init()
140 report->field[1]->report_count >= 1 && in plff_init()
141 report->field[2]->report_count >= 1 && in plff_init()
[all …]
Dhid-multitouch.c450 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() argument
456 mt_get_feature(hdev, field->report); in mt_feature_mapping()
458 td->maxcontacts = field->value[0]; in mt_feature_mapping()
460 field->logical_maximum <= MT_MAX_MAXCONTACT) in mt_feature_mapping()
461 td->maxcontacts = field->logical_maximum; in mt_feature_mapping()
468 if (usage->usage_index >= field->report_count) { in mt_feature_mapping()
473 mt_get_feature(hdev, field->report); in mt_feature_mapping()
474 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) in mt_feature_mapping()
481 mt_get_feature(hdev, field->report); in mt_feature_mapping()
487 struct hid_field *field, int snratio) in set_abs() argument
[all …]
Dhid-sensor-hub.c100 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument
104 info->units = field->unit; in sensor_hub_fill_attr_info()
105 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info()
106 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info()
107 info->logical_minimum = field->logical_minimum; in sensor_hub_fill_attr_info()
108 info->logical_maximum = field->logical_maximum; in sensor_hub_fill_attr_info()
226 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
237 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
268 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
276 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
[all …]
Dhid-emsff.c49 emsff->report->field[0]->value[1] = weak; in emsff_play()
50 emsff->report->field[0]->value[2] = strong; in emsff_play()
86 if (report->field[0]->report_count < 7) { in emsff_init()
104 emsff->report->field[0]->value[0] = 0x01; in emsff_init()
105 emsff->report->field[0]->value[1] = 0x00; in emsff_init()
106 emsff->report->field[0]->value[2] = 0x00; in emsff_init()
107 emsff->report->field[0]->value[3] = 0x00; in emsff_init()
108 emsff->report->field[0]->value[4] = 0x00; in emsff_init()
109 emsff->report->field[0]->value[5] = 0x00; in emsff_init()
110 emsff->report->field[0]->value[6] = 0x00; in emsff_init()
Dhid-core.c98 struct hid_field *field; in hid_register_field() local
105 field = kzalloc((sizeof(struct hid_field) + in hid_register_field()
108 if (!field) in hid_register_field()
111 field->index = report->maxfield++; in hid_register_field()
112 report->field[field->index] = field; in hid_register_field()
113 field->usage = (struct hid_usage *)(field + 1); in hid_register_field()
114 field->value = (s32 *)(field->usage + usages); in hid_register_field()
115 field->report = report; in hid_register_field()
117 return field; in hid_register_field()
260 struct hid_field *field; in hid_add_field() local
[all …]
Dhid-retrode.c25 struct hid_field *field = hi->report->field[0]; in retrode_input_configured() local
30 switch (field->report->id) { in retrode_input_configured()
37 number = field->report->id; in retrode_input_configured()
42 number = field->report->id - 2; in retrode_input_configured()
45 hid_err(hdev, "Got unhandled report id %d\n", field->report->id); in retrode_input_configured()
Dhid-lgff.c85 report->field[0]->value[0] = 0x51; in hid_lgff_play()
86 report->field[0]->value[1] = 0x08; in hid_lgff_play()
87 report->field[0]->value[2] = x; in hid_lgff_play()
88 report->field[0]->value[3] = y; in hid_lgff_play()
100 report->field[0]->value[0] = 0x42; in hid_lgff_play()
101 report->field[0]->value[1] = 0x00; in hid_lgff_play()
102 report->field[0]->value[2] = left; in hid_lgff_play()
103 report->field[0]->value[3] = right; in hid_lgff_play()
116 __s32 *value = report->field[0]->value; in hid_lgff_set_autocenter()
/linux-4.19.296/lib/
Dtest_bitfield.c12 #define CHECK_ENC_GET_U(tp, v, field, res) do { \ argument
16 _res = u##tp##_encode_bits(v, field); \
18 pr_warn("u" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != " #res "\n",\
22 if (u##tp##_get_bits(_res, field) != v) \
27 #define CHECK_ENC_GET_LE(tp, v, field, res) do { \ argument
31 _res = le##tp##_encode_bits(v, field); \
33 pr_warn("le" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx\n",\
38 if (le##tp##_get_bits(_res, field) != v) \
43 #define CHECK_ENC_GET_BE(tp, v, field, res) do { \ argument
47 _res = be##tp##_encode_bits(v, field); \
[all …]
/linux-4.19.296/drivers/hid/usbhid/
Dhiddev.c127 struct hid_field *field; in hiddev_lookup_usage() local
138 field = report->field[i]; in hiddev_lookup_usage()
139 for (j = 0; j < field->maxusage; j++) { in hiddev_lookup_usage()
140 if (field->usage[j].hid == uref->usage_code) { in hiddev_lookup_usage()
144 return field; in hiddev_lookup_usage()
179 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event() argument
182 unsigned type = field->report_type; in hiddev_hid_event()
189 uref.report_id = field->report->id; in hiddev_hid_event()
190 uref.field_index = field->index; in hiddev_hid_event()
191 uref.usage_index = (usage - field->usage); in hiddev_hid_event()
[all …]
/linux-4.19.296/include/trace/
Dperf.h11 #define __get_dynamic_array(field) \ argument
12 ((void *)__entry + (__entry->__data_loc_##field & 0xffff))
15 #define __get_dynamic_array_len(field) \ argument
16 ((__entry->__data_loc_##field >> 16) & 0xffff)
19 #define __get_str(field) ((char *)__get_dynamic_array(field)) argument
22 #define __get_bitmask(field) (char *)__get_dynamic_array(field) argument
/linux-4.19.296/drivers/mux/
Dmmio.c72 struct reg_field field; in mux_mmio_probe() local
88 field.reg = reg; in mux_mmio_probe()
89 field.msb = fls(mask) - 1; in mux_mmio_probe()
90 field.lsb = ffs(mask) - 1; in mux_mmio_probe()
92 if (mask != GENMASK(field.msb, field.lsb)) { in mux_mmio_probe()
98 fields[i] = devm_regmap_field_alloc(dev, regmap, field); in mux_mmio_probe()
106 bits = 1 + field.msb - field.lsb; in mux_mmio_probe()
/linux-4.19.296/include/media/
Dv4l2-mediabus.h110 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format()
132 mbus_fmt->field = pix_fmt->field; in v4l2_fill_mbus_format()
153 pix_mp_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format_mplane()
173 mbus_fmt->field = pix_mp_fmt->field; in v4l2_fill_mbus_format_mplane()
/linux-4.19.296/drivers/message/fusion/lsi/
Dmpi_history.txt107 * 06-06-00 01.00.01 Added CurReplyFrameSize field to _MSG_IOC_FACTS_REPLY.
126 * Added IocNumber field to MSG_IOC_FACTS_REPLY.
127 * 03-27-01 01.01.06 Added defines for ProductId field of MPI_FW_HEADER.
137 * Replaced a reserved field in MSG_IOC_FACTS_REPLY with
142 * 11-01-01 01.02.04 Added defines for MPI_EXT_IMAGE_HEADER ImageType field.
143 * 03-14-02 01.02.05 Added HeaderVersion field to MSG_IOC_FACTS_REPLY.
149 * 04-29-04 01.02.09 Added IOCCapabilities field to MSG_IOC_FACTS_REPLY and
154 * Defined four new bits for the IOCCapabilities field of
163 * 10-05-04 01.05.02 Added ReplyFifoHostSignalingAddr field to
191 * Added MaxInitiators field to PortFacts reply.
[all …]

12345678