/drivers/scsi/aic7xxx/ |
D | queue.h | 127 #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 …]
|
D | aic79xx.reg | 102 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 …]
|
D | aic7xxx.reg | 71 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/staging/sm750fb/ |
D | sm750_help.h | 13 #define FIELD_GET(x, reg, field) \ argument 15 _F_NORMALIZE((x), reg ## _ ## field) \ 18 #define FIELD_SET(x, reg, field, value) \ argument 20 (x & ~_F_MASK(reg ## _ ## field)) \ 21 | _F_DENORMALIZE(reg ## _ ## field ## _ ## value, reg ## _ ## field) \ 24 #define FIELD_VALUE(x, reg, field, value) \ argument 26 (x & ~_F_MASK(reg ## _ ## field)) \ 27 | _F_DENORMALIZE(value, reg ## _ ## field) \ 30 #define FIELD_CLEAR(reg, field) \ argument 32 ~_F_MASK(reg ## _ ## field) \ [all …]
|
/drivers/xen/xen-pciback/ |
D | conf_space.c | 44 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local 48 switch (field->size) { in DEFINE_PCI_CONFIG() 50 if (field->u.b.read) in DEFINE_PCI_CONFIG() 51 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 55 if (field->u.w.read) in DEFINE_PCI_CONFIG() 56 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG() 60 if (field->u.dw.read) in DEFINE_PCI_CONFIG() 61 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG() 72 const struct config_field *field = entry->field; in conf_space_write() local 74 switch (field->size) { in conf_space_write() [all …]
|
D | conf_space.h | 42 void (*clean) (struct config_field *field); 62 const struct config_field *field; member 69 #define OFFSET(cfg_entry) ((cfg_entry)->base_offset+(cfg_entry)->field->offset) 75 const struct config_field *field, 79 const struct config_field *field) in xen_pcibk_config_add_field() argument 81 return xen_pcibk_config_add_field_offset(dev, field, 0); in xen_pcibk_config_add_field() 85 const struct config_field *field) in xen_pcibk_config_add_fields() argument 88 for (i = 0; field[i].size != 0; i++) { in xen_pcibk_config_add_fields() 89 err = xen_pcibk_config_add_field(dev, &field[i]); in xen_pcibk_config_add_fields() 97 const struct config_field *field, in xen_pcibk_config_add_fields_offset() argument [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.c | 199 u8 field; in mlx4_QUERY_FUNC() local 225 MLX4_GET(field, outbox, QUERY_FUNC_BUS_OFFSET); in mlx4_QUERY_FUNC() 226 func->bus = field & 0xf; in mlx4_QUERY_FUNC() 227 MLX4_GET(field, outbox, QUERY_FUNC_DEVICE_OFFSET); in mlx4_QUERY_FUNC() 228 func->device = field & 0xf1; in mlx4_QUERY_FUNC() 229 MLX4_GET(field, outbox, QUERY_FUNC_FUNCTION_OFFSET); in mlx4_QUERY_FUNC() 230 func->function = field & 0x7; in mlx4_QUERY_FUNC() 231 MLX4_GET(field, outbox, QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET); in mlx4_QUERY_FUNC() 232 func->physical_function = field & 0xf; in mlx4_QUERY_FUNC() 237 MLX4_GET(field, outbox, QUERY_FUNC_RSVD_UARS_OFFSET); in mlx4_QUERY_FUNC() [all …]
|
/drivers/clk/st/ |
D | clkgen.h | 21 struct clkgen_field *field) in clkgen_read() argument 23 return (readl(base + field->offset) >> field->shift) & field->mask; in clkgen_read() 27 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, in clkgen_write() argument 30 writel((readl(base + field->offset) & in clkgen_write() 31 ~(field->mask << field->shift)) | (val << field->shift), in clkgen_write() 32 base + field->offset); in clkgen_write() 43 #define CLKGEN_READ(pll, field) clkgen_read(pll->regs_base, \ argument 44 &pll->data->field) 46 #define CLKGEN_WRITE(pll, field, val) clkgen_write(pll->regs_base, \ argument 47 &pll->data->field, val)
|
/drivers/hid/ |
D | hid-multitouch.c | 351 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() argument 358 if (usage->usage_index >= field->report_count) { in mt_feature_mapping() 364 td->inputmode = field->report->id; in mt_feature_mapping() 379 mt_get_feature(hdev, field->report); in mt_feature_mapping() 381 td->maxcontact_report_id = field->report->id; in mt_feature_mapping() 382 td->maxcontacts = field->value[0]; in mt_feature_mapping() 384 field->logical_maximum <= MT_MAX_MAXCONTACT) in mt_feature_mapping() 385 td->maxcontacts = field->logical_maximum; in mt_feature_mapping() 392 if (usage->usage_index >= field->report_count) { in mt_feature_mapping() 397 mt_get_feature(hdev, field->report); in mt_feature_mapping() [all …]
|
D | hid-input.c | 109 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 …]
|
D | hid-gaff.c | 57 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 …]
|
D | hid-dr.c | 65 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 …]
|
D | hid-lg3ff.c | 72 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 …]
|
D | hid-lg2ff.c | 48 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 …]
|
D | hid-pl.c | 129 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 …]
|
D | hid-sensor-hub.c | 99 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument 103 info->units = field->unit; in sensor_hub_fill_attr_info() 104 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info() 105 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info() 106 info->logical_minimum = field->logical_minimum; in sensor_hub_fill_attr_info() 107 info->logical_maximum = field->logical_maximum; in sensor_hub_fill_attr_info() 225 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature() 236 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature() 262 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature() 270 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | tcm-sita.c | 47 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}; in sita_reserve_1d() local 187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0); in sita_reserve_1d() 189 ret = scan_r2l_b2t_one_dim(tcm, num_slots, &field, area); in sita_reserve_1d() 275 struct tcm_area *field, struct tcm_area *area) in scan_r2l_t2b() argument 282 start_x = field->p0.x; in scan_r2l_t2b() [all …]
|
/drivers/net/ethernet/sfc/ |
D | bitfield.h | 48 #define EFX_VAL(field, attribute) field ## _ ## attribute argument 50 #define EFX_LOW_BIT(field) EFX_VAL(field, LBN) argument 52 #define EFX_WIDTH(field) EFX_VAL(field, WIDTH) argument 54 #define EFX_HIGH_BIT(field) (EFX_LOW_BIT(field) + EFX_WIDTH(field) - 1) argument 171 #define EFX_OWORD_FIELD64(oword, field) \ argument 172 EFX_EXTRACT_OWORD64(oword, EFX_LOW_BIT(field), \ 173 EFX_HIGH_BIT(field)) 175 #define EFX_QWORD_FIELD64(qword, field) \ argument 176 EFX_EXTRACT_QWORD64(qword, EFX_LOW_BIT(field), \ 177 EFX_HIGH_BIT(field)) [all …]
|
/drivers/acpi/acpica/ |
D | exfield.c | 163 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 165 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 167 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 175 if (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 179 ACPI_READ | (obj_desc->field.attribute << 16); in acpi_ex_read_data_from_field() 180 } else if (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 182 accessor_type = obj_desc->field.attribute; in acpi_ex_read_data_from_field() 185 field. in acpi_ex_read_data_from_field() 234 (acpi_size) ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); in acpi_ex_read_data_from_field() 257 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() [all …]
|
/drivers/scsi/ |
D | scsi_transport_fc.c | 699 #define fc_rport_show_function(field, format_string, sz, cast) \ argument 701 show_fc_rport_##field (struct device *dev, \ 707 if ((i->f->get_rport_##field) && \ 711 i->f->get_rport_##field(rport); \ 712 return snprintf(buf, sz, format_string, cast rport->field); \ 715 #define fc_rport_store_function(field) \ argument 717 store_fc_rport_##field(struct device *dev, \ 733 i->f->set_rport_##field(rport, val); \ 737 #define fc_rport_rd_attr(field, format_string, sz) \ argument 738 fc_rport_show_function(field, format_string, sz, ) \ [all …]
|
/drivers/hid/usbhid/ |
D | hiddev.c | 136 struct hid_field *field; in hiddev_lookup_usage() local 147 field = report->field[i]; in hiddev_lookup_usage() 148 for (j = 0; j < field->maxusage; j++) { in hiddev_lookup_usage() 149 if (field->usage[j].hid == uref->usage_code) { in hiddev_lookup_usage() 153 return field; in hiddev_lookup_usage() 188 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event() argument 191 unsigned type = field->report_type; in hiddev_hid_event() 198 uref.report_id = field->report->id; in hiddev_hid_event() 199 uref.field_index = field->index; in hiddev_hid_event() 200 uref.usage_index = (usage - field->usage); in hiddev_hid_event() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_cmd.c | 991 u8 field; in mthca_QUERY_DEV_LIM() local 1068 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_QP_OFFSET); in mthca_QUERY_DEV_LIM() 1069 dev_lim->reserved_qps = 1 << (field & 0xf); in mthca_QUERY_DEV_LIM() 1070 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_QP_OFFSET); in mthca_QUERY_DEV_LIM() 1071 dev_lim->max_qps = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM() 1072 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_SRQ_OFFSET); in mthca_QUERY_DEV_LIM() 1073 dev_lim->reserved_srqs = 1 << (field >> 4); in mthca_QUERY_DEV_LIM() 1074 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SRQ_OFFSET); in mthca_QUERY_DEV_LIM() 1075 dev_lim->max_srqs = 1 << (field & 0x1f); in mthca_QUERY_DEV_LIM() 1076 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_EEC_OFFSET); in mthca_QUERY_DEV_LIM() [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_sysfs.c | 148 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ argument 149 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \ 154 if (ctlr->f->get_fcoe_ctlr_##field) \ 155 ctlr->f->get_fcoe_ctlr_##field(ctlr); \ 157 cast fcoe_ctlr_##field(ctlr)); \ 160 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ argument 161 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \ 167 if (ctlr->f->get_fcoe_fcf_##field) \ 168 ctlr->f->get_fcoe_fcf_##field(fcf); \ 170 cast fcoe_fcf_##field(fcf)); \ [all …]
|
/drivers/ata/ |
D | libata-transport.c | 204 #define ata_port_show_simple(field, name, format_string, cast) \ argument 211 return snprintf(buf, 20, format_string, cast ap->field); \ 214 #define ata_port_simple_attr(field, name, format_string, type) \ argument 215 ata_port_show_simple(field, name, format_string, (type)) \ 326 #define ata_link_show_linkspeed(field, format) \ argument 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) \ argument 337 ata_link_show_linkspeed(field, format) \ 338 static DEVICE_ATTR(field, S_IRUGO, show_ata_link_##field, NULL) [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | layout.c | 1651 struct req_msg_field *field; in req_layout_init() local 1653 field = (typeof(field))rf->rf_fields[j].d[k]; in req_layout_init() 1654 LASSERT(!(field->rmf_flags & RMF_F_STRUCT_ARRAY) in req_layout_init() 1655 || field->rmf_size > 0); in req_layout_init() 1656 LASSERT(field->rmf_offset[i][j] == 0); in req_layout_init() 1661 field->rmf_offset[i][j] = k + 1; in req_layout_init() 1832 const struct req_msg_field *field, in __req_capsule_offset() argument 1837 offset = field->rmf_offset[pill->rc_fmt->rf_idx][loc]; in __req_capsule_offset() 1840 field->rmf_name, offset, loc); in __req_capsule_offset() 1854 const struct req_msg_field *field, in swabber_dumper_helper() argument [all …]
|