Searched refs:field (Results 26 - 50 of 457) sorted by relevance

1234567891011>>

/drivers/media/usb/tm6000/
H A Dtm6000-usb-isoc.h41 /* Last field: ODD or EVEN? */
42 int vfield, field; member in struct:usb_isoc_ctl
/drivers/hid/
H A Dhid-emsff.c49 emsff->report->field[0]->value[1] = weak;
50 emsff->report->field[0]->value[2] = strong;
80 if (report->field[0]->report_count < 7) {
81 hid_err(hid, "not enough values in the field\n");
98 emsff->report->field[0]->value[0] = 0x01;
99 emsff->report->field[0]->value[1] = 0x00;
100 emsff->report->field[0]->value[2] = 0x00;
101 emsff->report->field[0]->value[3] = 0x00;
102 emsff->report->field[0]->value[4] = 0x00;
103 emsff->report->field[
[all...]
H A Dhid-icade.c167 static int icade_event(struct hid_device *hdev, struct hid_field *field, argument
172 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput ||
185 input_event(field->hidinput->input, usage->type,
192 struct hid_field *field, struct hid_usage *usage,
215 struct hid_field *field, struct hid_usage *usage,
191 icade_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
214 icade_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
H A Dhid-multitouch.c103 int cc_index; /* contact count field index in the report */
104 int cc_value_index; /* contact count value index in the field */
105 unsigned last_slot_field; /* the last field of a slot */
303 struct hid_field *field, struct hid_usage *usage)
310 if (usage->usage_index >= field->report_count) {
315 td->inputmode = field->report->id;
320 td->maxcontact_report_id = field->report->id;
321 td->maxcontacts = field->value[0];
323 field->logical_maximum <= MT_MAX_MAXCONTACT)
324 td->maxcontacts = field
302 mt_feature_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument
333 set_abs(struct input_dev *input, unsigned int code, struct hid_field *field, int snratio) argument
354 mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
509 mt_touch_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
600 mt_touch_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
610 mt_process_mt_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
683 struct hid_field *field; local
692 struct hid_field *field = report->field[td->cc_index]; local
743 mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
776 mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
795 mt_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
809 struct hid_field *field = report->field[0]; local
899 struct hid_field *field = hi->report->field[0]; local
[all...]
H A Dhid-lgff.c85 report->field[0]->value[0] = 0x51;
86 report->field[0]->value[1] = 0x08;
87 report->field[0]->value[2] = x;
88 report->field[0]->value[3] = y;
100 report->field[0]->value[0] = 0x42;
101 report->field[0]->value[1] = 0x00;
102 report->field[0]->value[2] = left;
103 report->field[0]->value[3] = right;
116 __s32 *value = report->field[0]->value;
H A Dhid-zpff.c57 zpff->report->field[2]->value[0] = left;
58 zpff->report->field[3]->value[0] = right;
93 zpff->report->field[0]->value[0] = 0x00;
94 zpff->report->field[1]->value[0] = 0x02;
95 zpff->report->field[2]->value[0] = 0x00;
96 zpff->report->field[3]->value[0] = 0x00;
H A Dhid-input.c109 for (j = 0; j < report->field[i]->maxusage; j++) {
110 usage = report->field[i]->usage + j;
198 * @field: the HID report field to calculate resolution for
211 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) argument
213 __s32 unit_exponent = field->unit_exponent;
214 __s32 logical_extents = field->logical_maximum -
215 field->logical_minimum;
216 __s32 physical_extents = field->physical_maximum -
217 field
392 hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field) argument
459 hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field) argument
470 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage) argument
1016 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
1126 hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field) argument
1146 struct hid_field *field; local
1166 struct hid_field *field; local
1189 struct hid_field *field; local
1236 struct hid_field *field; local
[all...]
H A Dhid-lg.h28 int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
33 static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, argument
H A Dhid-speedlink.c29 struct hid_field *field, struct hid_usage *usage,
45 static int speedlink_event(struct hid_device *hdev, struct hid_field *field, argument
27 speedlink_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
H A Dhid-gyration.c28 struct hid_field *field, struct hid_usage *usage,
57 static int gyration_event(struct hid_device *hdev, struct hid_field *field, argument
61 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput)
66 struct input_dev *input = field->hidinput->input;
27 gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
H A Dhid-picolcd_lcd.c42 if (!report || report->maxfield != 1 || report->field[0]->report_count != 1)
47 hid_set_field(report->field[0], 0, data->lcd_contrast);
72 if (report->maxfield != 1 || report->field[0]->report_count != 1 ||
73 report->field[0]->report_size != 8) {
H A Dhid-tmff.c145 struct hid_field *field = report->field[fieldnum]; local
147 if (field->maxusage <= 0)
150 switch (field->usage[0].hid) {
152 if (field->report_count < 2) {
153 hid_warn(hid, "ignoring FF field with report_count < 2\n");
157 if (field->logical_maximum ==
158 field->logical_minimum) {
159 hid_warn(hid, "ignoring FF field with logical_maximum == logical_minimum\n");
164 hid_warn(hid, "ignoring FF field i
[all...]
/drivers/scsi/be2iscsi/
H A Dbe.h161 #define AMAP_BIT_OFFSET(_struct, field) \
162 (((size_t)&(((_struct *)0)->field))%32)
164 /* Returns the bit mask of the field that is NOT shifted into location. */
178 #define AMAP_SET_BITS(_struct, field, ptr, val) \
180 offsetof(_struct, field)/32, \
181 amap_mask(sizeof(((_struct *)0)->field)), \
182 AMAP_BIT_OFFSET(_struct, field), \
191 #define AMAP_GET_BITS(_struct, field, ptr) \
193 offsetof(_struct, field)/32, \
194 amap_mask(sizeof(((_struct *)0)->field)), \
[all...]
/drivers/staging/lustre/lustre/include/
H A Dlustre_req_layout.h90 const struct req_msg_field *field);
92 const struct req_msg_field *field,
95 const struct req_msg_field *field,
98 const struct req_msg_field *field);
100 const struct req_msg_field *field,
103 const struct req_msg_field *field,
106 const struct req_msg_field *field,
109 const struct req_msg_field *field);
112 const struct req_msg_field *field,
115 const struct req_msg_field *field,
[all...]
/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.c47 struct tcm_area *field, struct tcm_area *area);
50 struct tcm_area *field, struct tcm_area *area);
53 struct tcm_area *field, struct tcm_area *area);
61 struct tcm_area *field, s32 criteria,
64 static void get_nearness_factor(struct tcm_area *field,
181 struct tcm_area field = {0}; local
187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0);
189 ret = scan_r2l_b2t_one_dim(tcm, num_slots, &field, area);
255 * Note: In general the cordinates in the scan field area relevant to the can
257 * the p0 member of the field
274 scan_r2l_t2b(struct tcm *tcm, u16 w, u16 h, u16 align, struct tcm_area *field, struct tcm_area *area) argument
348 scan_l2r_t2b(struct tcm *tcm, u16 w, u16 h, u16 align, struct tcm_area *field, struct tcm_area *area) argument
424 scan_r2l_b2t_one_dim(struct tcm *tcm, u32 num_slots, struct tcm_area *field, struct tcm_area *area) argument
506 struct tcm_area field = {0}; local
602 update_candidate(struct tcm *tcm, u16 x0, u16 y0, u16 w, u16 h, struct tcm_area *field, s32 criteria, struct score *best) argument
655 get_nearness_factor(struct tcm_area *field, struct tcm_area *area, struct nearness_factor *nf) argument
[all...]
/drivers/ata/
H A Dlibata-transport.c203 #define ata_port_show_simple(field, name, format_string, cast) \
210 return snprintf(buf, 20, format_string, cast ap->field); \
213 #define ata_port_simple_attr(field, name, format_string, type) \
214 ata_port_show_simple(field, name, format_string, (type)) \
326 #define ata_link_show_linkspeed(field, format) \
328 show_ata_link_##field(struct device *dev, \
333 return sprintf(buf, "%s\n", sata_spd_string(format(link->field))); \
336 #define ata_link_linkspeed_attr(field, format) \
337 ata_link_show_linkspeed(field, format) \
338 static DEVICE_ATTR(field, S_IRUG
[all...]
/drivers/staging/lustre/lustre/ptlrpc/
H A Dlayout.c780 * \a RMF_F_STRUCT_ARRAY flag is set the field is also variable-length,
791 * The field is a string, must be NUL-terminated.
795 * The field's buffer size need not match the declared \a rmf_size.
799 * The field's buffer size must be a whole multiple of the declared \a
992 * field is low. See JIRA LU-16 for details. */
1068 * OST request field.
1648 * field of RQFs and the \a rmf_offset field of RMFs.
1663 struct req_msg_field *field; local
1665 field
1844 __req_capsule_offset(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) argument
1866 swabber_dumper_helper(struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc, int offset, void *value, int len, int dump, void (*swabber)(void *)) argument
1945 __req_capsule_get(struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc, void (*swabber)(void *), int dump) argument
2019 const struct req_msg_field *field; local
2066 req_capsule_client_get(struct req_capsule *pill, const struct req_msg_field *field) argument
2079 req_capsule_client_swab_get(struct req_capsule *pill, const struct req_msg_field *field, void *swabber) argument
2094 req_capsule_client_sized_get(struct req_capsule *pill, const struct req_msg_field *field, int len) argument
2107 req_capsule_server_get(struct req_capsule *pill, const struct req_msg_field *field) argument
2120 req_capsule_server_swab_get(struct req_capsule *pill, const struct req_msg_field *field, void *swabber) argument
2135 req_capsule_server_sized_get(struct req_capsule *pill, const struct req_msg_field *field, int len) argument
2144 req_capsule_server_sized_swab_get(struct req_capsule *pill, const struct req_msg_field *field, int len, void *swabber) argument
2161 req_capsule_other_get(struct req_capsule *pill, const struct req_msg_field *field) argument
2175 req_capsule_set_size(struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc, int size) argument
2211 req_capsule_get_size(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) argument
2329 req_capsule_has_field(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) argument
2343 req_capsule_field_present(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) argument
2363 req_capsule_shrink(struct req_capsule *pill, const struct req_msg_field *field, unsigned int newlen, enum req_location loc) argument
2395 req_capsule_server_grow(struct req_capsule *pill, const struct req_msg_field *field, unsigned int newlen) argument
[all...]
/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.h134 /* Set the specified value into a bit-field defined by its starting position
142 #define SET_VAL(field, val) \
143 xgene_enet_set_field_value(field ## _POS, field ## _LEN, val)
145 #define SET_BIT(field) \
146 xgene_enet_set_field_value(field ## _POS, 1, 1)
148 /* Get the value from a bit-field defined by its starting position
156 #define GET_VAL(field, src) \
157 xgene_enet_get_field_value(field ## _POS, field ## _LE
[all...]
/drivers/sh/superhyway/
H A Dsuperhyway-sysfs.c17 #define superhyway_ro_attr(name, fmt, field) \
21 return sprintf(buf, fmt, s->field); \
/drivers/macintosh/
H A Dmacio_sysfs.c6 #define macio_config_of_attr(field, format_string) \
8 field##_show (struct device *dev, struct device_attribute *attr, \
12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
/drivers/acpi/acpica/
H A Dexprep.c3 * Module Name: exprep - ACPI AML (p-code) execution - field prep utilities
69 * PARAMETERS: field_bit_offset - Start of field within parent region/buffer
70 * field_bit_length - Length of field in bits
162 "Entire field can be accessed with one operation of size %u\n",
200 * Could not read/write field with one operation,
204 "Cannot access field in one operation, using width 8\n"));
220 * DESCRIPTION: Decode the access_type bits of a field definition.
281 /* Invalid field access type */
283 ACPI_ERROR((AE_INFO, "Unknown field access type 0x%X", access));
291 * implied by the field acces
[all...]
H A Dpsargs.c70 * DESCRIPTION: Decode and return a package length field.
123 * the package. Consumes the package length field
480 * DESCRIPTION: Get next field (named_field, reserved_field, or access_field)
488 union acpi_parse_object *field; local
504 /* Determine field type */
537 /* Allocate a new field op */
539 field = acpi_ps_alloc_op(opcode);
540 if (!field) {
544 field->common.aml_offset = aml_offset;
546 /* Decode the field typ
717 union acpi_parse_object *field; local
[all...]
/drivers/scsi/
H A Dscsi_transport_sas.c453 #define sas_phy_show_simple(field, name, format_string, cast) \
460 return snprintf(buf, 20, format_string, cast phy->field); \
463 #define sas_phy_simple_attr(field, name, format_string, type) \
464 sas_phy_show_simple(field, name, format_string, (type)) \
467 #define sas_phy_show_protocol(field, name) \
474 if (!phy->field) \
476 return get_sas_protocol_names(phy->field, buf); \
479 #define sas_phy_protocol_attr(field, name) \
480 sas_phy_show_protocol(field, name) \
483 #define sas_phy_show_linkspeed(field) \
[all...]
H A Dscsi_transport_fc.c698 #define fc_rport_show_function(field, format_string, sz, cast) \
700 show_fc_rport_##field (struct device *dev, \
706 if ((i->f->get_rport_##field) && \
710 i->f->get_rport_##field(rport); \
711 return snprintf(buf, sz, format_string, cast rport->field); \
714 #define fc_rport_store_function(field) \
716 store_fc_rport_##field(struct device *dev, \
732 i->f->set_rport_##field(rport, val); \
736 #define fc_rport_rd_attr(field, format_string, sz) \
737 fc_rport_show_function(field, format_strin
[all...]
/drivers/hid/usbhid/
H A Dhiddev.c135 struct hid_field *field; local
146 field = report->field[i];
147 for (j = 0; j < field->maxusage; j++) {
148 if (field->usage[j].hid == uref->usage_code) {
152 return field;
187 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, argument
190 unsigned type = field->report_type;
197 uref.report_id = field->report->id;
198 uref.field_index = field
456 struct hid_field *field; local
606 struct hid_field *field; local
[all...]

Completed in 355 milliseconds

1234567891011>>