Home
last modified time | relevance | path

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

12345678910>>...33

/drivers/scsi/aic7xxx/
Dqueue.h127 #define SLIST_FOREACH(var, head, field) \ argument
130 (var) = SLIST_NEXT((var), field))
136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
138 SLIST_NEXT((slistelm), field) = (elm); \
141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
146 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
148 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
150 SLIST_REMOVE_HEAD((head), field); \
[all …]
Daic79xx.reg102 field DST_MODE 0x70
103 field SRC_MODE 0x07
117 field HWERRINT 0x80
118 field BRKADRINT 0x40
119 field SWTMINT 0x20
120 field PCIINT 0x10
121 field SCSIINT 0x08
122 field SEQINT 0x04
123 field CMDCMPLT 0x02
124 field SPLTINT 0x01
[all …]
Daic7xxx.reg71 field TEMODE 0x80
72 field ENSELO 0x40
73 field ENSELI 0x20
74 field ENRSELI 0x10
75 field ENAUTOATNO 0x08
76 field ENAUTOATNI 0x04
77 field ENAUTOATNP 0x02
78 field SCSIRSTO 0x01
88 field DFON 0x80
89 field DFPEXP 0x40
[all …]
/drivers/infiniband/hw/mlx5/
Dcong.c97 static u32 mlx5_get_cc_param_val(void *field, int offset) in mlx5_get_cc_param_val() argument
101 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
104 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
107 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
110 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
113 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
116 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
119 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
122 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
125 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
[all …]
/drivers/xen/xen-pciback/
Dconf_space.c47 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local
51 switch (field->size) { in DEFINE_PCI_CONFIG()
53 if (field->u.b.read) in DEFINE_PCI_CONFIG()
54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG()
58 if (field->u.w.read) in DEFINE_PCI_CONFIG()
59 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG()
63 if (field->u.dw.read) in DEFINE_PCI_CONFIG()
64 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG()
75 const struct config_field *field = entry->field; in conf_space_write() local
77 switch (field->size) { in conf_space_write()
[all …]
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu_helper.h97 extern uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size);
137 #define PHM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument
138 #define PHM_FIELD_MASK(reg, field) reg##__##field##_MASK argument
140 #define PHM_SET_FIELD(origval, reg, field, fieldval) \ argument
141 (((origval) & ~PHM_FIELD_MASK(reg, field)) | \
142 (PHM_FIELD_MASK(reg, field) & ((fieldval) << PHM_FIELD_SHIFT(reg, field))))
144 #define PHM_GET_FIELD(value, reg, field) \ argument
145 (((value) & PHM_FIELD_MASK(reg, field)) >> \
146 PHM_FIELD_SHIFT(reg, field))
151 #define PHM_READ_FIELD(device, reg, field) \ argument
[all …]
/drivers/infiniband/hw/hfi1/
Dexp_rcv.h18 #define EXP_TID_GET(tid, field) \ argument
19 (((tid) >> EXP_TID_TID##field##_SHIFT) & EXP_TID_TID##field##_MASK)
21 #define EXP_TID_SET(field, value) \ argument
22 (((value) & EXP_TID_TID##field##_MASK) << \
23 EXP_TID_TID##field##_SHIFT)
24 #define EXP_TID_CLEAR(tid, field) ({ \ argument
25 (tid) &= ~(EXP_TID_TID##field##_MASK << \
26 EXP_TID_TID##field##_SHIFT); \
28 #define EXP_TID_RESET(tid, field, value) do { \ argument
29 EXP_TID_CLEAR(tid, field); \
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dfw.c209 u8 field; in mlx4_QUERY_FUNC() local
235 MLX4_GET(field, outbox, QUERY_FUNC_BUS_OFFSET); in mlx4_QUERY_FUNC()
236 func->bus = field & 0xf; in mlx4_QUERY_FUNC()
237 MLX4_GET(field, outbox, QUERY_FUNC_DEVICE_OFFSET); in mlx4_QUERY_FUNC()
238 func->device = field & 0xf1; in mlx4_QUERY_FUNC()
239 MLX4_GET(field, outbox, QUERY_FUNC_FUNCTION_OFFSET); in mlx4_QUERY_FUNC()
240 func->function = field & 0x7; in mlx4_QUERY_FUNC()
241 MLX4_GET(field, outbox, QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET); in mlx4_QUERY_FUNC()
242 func->physical_function = field & 0xf; in mlx4_QUERY_FUNC()
247 MLX4_GET(field, outbox, QUERY_FUNC_RSVD_UARS_OFFSET); in mlx4_QUERY_FUNC()
[all …]
/drivers/hid/
Dhid-input.c143 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key()
144 usage = report->field[i]->usage + j; in hidinput_find_key()
246 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument
248 __s32 unit_exponent = field->unit_exponent; in hidinput_calc_abs_res()
249 __s32 logical_extents = field->logical_maximum - in hidinput_calc_abs_res()
250 field->logical_minimum; in hidinput_calc_abs_res()
251 __s32 physical_extents = field->physical_maximum - in hidinput_calc_abs_res()
252 field->physical_minimum; in hidinput_calc_abs_res()
273 if (field->unit == 0x11) { /* If centimeters */ in hidinput_calc_abs_res()
276 } else if (field->unit == 0x13) { /* If inches */ in hidinput_calc_abs_res()
[all …]
Dhid-core.c97 struct hid_field *field; in hid_register_field() local
104 field = kzalloc((sizeof(struct hid_field) + in hid_register_field()
107 if (!field) in hid_register_field()
110 field->index = report->maxfield++; in hid_register_field()
111 report->field[field->index] = field; in hid_register_field()
112 field->usage = (struct hid_usage *)(field + 1); in hid_register_field()
113 field->value = (s32 *)(field->usage + usages); in hid_register_field()
114 field->new_value = (s32 *)(field->value + usages); in hid_register_field()
115 field->usages_priorities = (s32 *)(field->new_value + usages); in hid_register_field()
116 field->report = report; in hid_register_field()
[all …]
Dhid-dr.c53 drff->report->field[0]->value[0] = 0x51; in drff_play()
54 drff->report->field[0]->value[1] = 0x00; in drff_play()
55 drff->report->field[0]->value[2] = weak; in drff_play()
56 drff->report->field[0]->value[4] = strong; in drff_play()
59 drff->report->field[0]->value[0] = 0xfa; in drff_play()
60 drff->report->field[0]->value[1] = 0xfe; in drff_play()
62 drff->report->field[0]->value[0] = 0xf3; in drff_play()
63 drff->report->field[0]->value[1] = 0x00; in drff_play()
66 drff->report->field[0]->value[2] = 0x00; in drff_play()
67 drff->report->field[0]->value[4] = 0x00; in drff_play()
[all …]
Dhid-gaff.c44 gaff->report->field[0]->value[0] = 0x51; in hid_gaff_play()
45 gaff->report->field[0]->value[1] = 0x0; in hid_gaff_play()
46 gaff->report->field[0]->value[2] = right; in hid_gaff_play()
47 gaff->report->field[0]->value[3] = 0; in hid_gaff_play()
48 gaff->report->field[0]->value[4] = left; in hid_gaff_play()
49 gaff->report->field[0]->value[5] = 0; in hid_gaff_play()
53 gaff->report->field[0]->value[0] = 0xfa; in hid_gaff_play()
54 gaff->report->field[0]->value[1] = 0xfe; in hid_gaff_play()
55 gaff->report->field[0]->value[2] = 0x0; in hid_gaff_play()
56 gaff->report->field[0]->value[4] = 0x0; in hid_gaff_play()
[all …]
Dhid-lg3ff.c60 memset(report->field[0]->value, 0, in hid_lg3ff_play()
61 sizeof(__s32) * report->field[0]->report_count); in hid_lg3ff_play()
73 report->field[0]->value[0] = 0x51; in hid_lg3ff_play()
79 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play()
80 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play()
98 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter()
99 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter()
100 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter()
101 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter()
102 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter()
[all …]
Dhid-multitouch.c481 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() argument
487 mt_get_feature(hdev, field->report); in mt_feature_mapping()
489 td->maxcontacts = field->value[0]; in mt_feature_mapping()
491 field->logical_maximum <= MT_MAX_MAXCONTACT) in mt_feature_mapping()
492 td->maxcontacts = field->logical_maximum; in mt_feature_mapping()
499 if (usage->usage_index >= field->report_count) { in mt_feature_mapping()
504 mt_get_feature(hdev, field->report); in mt_feature_mapping()
505 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) in mt_feature_mapping()
512 mt_get_feature(hdev, field->report); in mt_feature_mapping()
518 struct hid_field *field, int snratio) in set_abs() argument
[all …]
Dhid-lg2ff.c36 lg2ff->report->field[0]->value[0] = 0x51; in play_effect()
37 lg2ff->report->field[0]->value[2] = weak; in play_effect()
38 lg2ff->report->field[0]->value[4] = strong; in play_effect()
40 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect()
41 lg2ff->report->field[0]->value[2] = 0x00; in play_effect()
42 lg2ff->report->field[0]->value[4] = 0x00; in play_effect()
82 report->field[0]->value[0] = 0xf3; in lg2ff_init()
83 report->field[0]->value[1] = 0x00; in lg2ff_init()
84 report->field[0]->value[2] = 0x00; in lg2ff_init()
85 report->field[0]->value[3] = 0x00; in lg2ff_init()
[all …]
Dhid-sensor-hub.c86 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument
90 info->units = field->unit; in sensor_hub_fill_attr_info()
91 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info()
92 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info()
93 info->logical_minimum = field->logical_minimum; in sensor_hub_fill_attr_info()
94 info->logical_maximum = field->logical_maximum; in sensor_hub_fill_attr_info()
212 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
223 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
254 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
262 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
[all …]
Dhid-pl.c117 if (report->field[0]->report_count >= 4) { in plff_init()
118 report->field[0]->value[0] = 0x00; in plff_init()
119 report->field[0]->value[1] = 0x00; in plff_init()
120 strong = &report->field[0]->value[2]; in plff_init()
121 weak = &report->field[0]->value[3]; in plff_init()
123 } else if (report->field[0]->maxusage == 1 && in plff_init()
124 report->field[0]->usage[0].hid == in plff_init()
127 report->field[0]->report_count >= 1 && in plff_init()
128 report->field[1]->report_count >= 1 && in plff_init()
129 report->field[2]->report_count >= 1 && in plff_init()
[all …]
/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)
/drivers/md/
Ddm-init.c118 char *field[4]; in dm_parse_table_entry() local
121 field[0] = str; in dm_parse_table_entry()
123 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_table_entry()
124 field[i + 1] = str_field_delimit(&field[i], ' '); in dm_parse_table_entry()
125 if (!field[i + 1]) in dm_parse_table_entry()
129 next = str_field_delimit(&field[i], ','); in dm_parse_table_entry()
137 if (kstrtoull(field[0], 0, &sp->sector_start)) in dm_parse_table_entry()
140 if (kstrtoull(field[1], 0, &sp->length)) in dm_parse_table_entry()
143 strscpy(sp->target_type, field[2], sizeof(sp->target_type)); in dm_parse_table_entry()
149 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
[all …]
/drivers/acpi/acpica/
Dexfield.c137 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
139 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
141 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
143 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
166 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); in acpi_ex_read_data_from_field()
192 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
200 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
208 obj_desc->field.bit_length)); in acpi_ex_read_data_from_field()
211 obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_read_data_from_field()
212 obj_desc->field.base_byte_offset, in acpi_ex_read_data_from_field()
[all …]
/drivers/gpu/drm/amd/include/
Dcgs_common.h120 #define CGS_REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument
121 #define CGS_REG_FIELD_MASK(reg, field) reg##__##field##_MASK argument
123 #define CGS_REG_SET_FIELD(orig_val, reg, field, field_val) \ argument
124 (((orig_val) & ~CGS_REG_FIELD_MASK(reg, field)) | \
125 (CGS_REG_FIELD_MASK(reg, field) & ((field_val) << CGS_REG_FIELD_SHIFT(reg, field))))
127 #define CGS_REG_GET_FIELD(value, reg, field) \ argument
128 (((value) & CGS_REG_FIELD_MASK(reg, field)) >> CGS_REG_FIELD_SHIFT(reg, field))
130 #define CGS_WREG32_FIELD(device, reg, field, val) \ argument
131 …egister(device, mm##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, fi…
133 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument
[all …]
/drivers/net/ethernet/sfc/falcon/
Dbitfield.h45 #define EF4_VAL(field, attribute) field ## _ ## attribute argument
47 #define EF4_LOW_BIT(field) EF4_VAL(field, LBN) argument
49 #define EF4_WIDTH(field) EF4_VAL(field, WIDTH) argument
51 #define EF4_HIGH_BIT(field) (EF4_LOW_BIT(field) + EF4_WIDTH(field) - 1) argument
168 #define EF4_OWORD_FIELD64(oword, field) \ argument
169 EF4_EXTRACT_OWORD64(oword, EF4_LOW_BIT(field), \
170 EF4_HIGH_BIT(field))
172 #define EF4_QWORD_FIELD64(qword, field) \ argument
173 EF4_EXTRACT_QWORD64(qword, EF4_LOW_BIT(field), \
174 EF4_HIGH_BIT(field))
[all …]
/drivers/net/ethernet/sfc/
Dbitfield.h45 #define EFX_VAL(field, attribute) field ## _ ## attribute argument
47 #define EFX_LOW_BIT(field) EFX_VAL(field, LBN) argument
49 #define EFX_WIDTH(field) EFX_VAL(field, WIDTH) argument
51 #define EFX_HIGH_BIT(field) (EFX_LOW_BIT(field) + EFX_WIDTH(field) - 1) argument
168 #define EFX_OWORD_FIELD64(oword, field) \ argument
169 EFX_EXTRACT_OWORD64(oword, EFX_LOW_BIT(field), \
170 EFX_HIGH_BIT(field))
172 #define EFX_QWORD_FIELD64(qword, field) \ argument
173 EFX_EXTRACT_QWORD64(qword, EFX_LOW_BIT(field), \
174 EFX_HIGH_BIT(field))
[all …]
/drivers/net/ethernet/sfc/siena/
Dbitfield.h45 #define EFX_VAL(field, attribute) field ## _ ## attribute argument
47 #define EFX_LOW_BIT(field) EFX_VAL(field, LBN) argument
49 #define EFX_WIDTH(field) EFX_VAL(field, WIDTH) argument
51 #define EFX_HIGH_BIT(field) (EFX_LOW_BIT(field) + EFX_WIDTH(field) - 1) argument
168 #define EFX_OWORD_FIELD64(oword, field) \ argument
169 EFX_EXTRACT_OWORD64(oword, EFX_LOW_BIT(field), \
170 EFX_HIGH_BIT(field))
172 #define EFX_QWORD_FIELD64(qword, field) \ argument
173 EFX_EXTRACT_QWORD64(qword, EFX_LOW_BIT(field), \
174 EFX_HIGH_BIT(field))
[all …]
/drivers/hid/usbhid/
Dhiddev.c114 struct hid_field *field; in hiddev_lookup_usage() local
125 field = report->field[i]; in hiddev_lookup_usage()
126 for (j = 0; j < field->maxusage; j++) { in hiddev_lookup_usage()
127 if (field->usage[j].hid == uref->usage_code) { in hiddev_lookup_usage()
131 return field; in hiddev_lookup_usage()
166 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event() argument
169 unsigned type = field->report_type; in hiddev_hid_event()
176 uref.report_id = field->report->id; in hiddev_hid_event()
177 uref.field_index = field->index; in hiddev_hid_event()
178 uref.usage_index = (usage - field->usage); in hiddev_hid_event()
[all …]

12345678910>>...33