/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/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 | 184 u8 field, port; in mlx4_QUERY_FUNC_CAP_wrapper() local 243 field = vhcr->in_modifier - in mlx4_QUERY_FUNC_CAP_wrapper() 245 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_PHYS_PORT_OFFSET); in mlx4_QUERY_FUNC_CAP_wrapper() 251 field = QUERY_FUNC_CAP_FLAGS1_NIC_INFO; in mlx4_QUERY_FUNC_CAP_wrapper() 255 field |= QUERY_FUNC_CAP_VF_ENABLE_QP0; in mlx4_QUERY_FUNC_CAP_wrapper() 259 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_FLAGS1_OFFSET); in mlx4_QUERY_FUNC_CAP_wrapper() 279 field = (QUERY_FUNC_CAP_FLAG_ETH | QUERY_FUNC_CAP_FLAG_RDMA | in mlx4_QUERY_FUNC_CAP_wrapper() 281 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_FLAGS_OFFSET); in mlx4_QUERY_FUNC_CAP_wrapper() 283 field = min( in mlx4_QUERY_FUNC_CAP_wrapper() 286 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_NUM_PORTS_OFFSET); in mlx4_QUERY_FUNC_CAP_wrapper() [all …]
|
/drivers/clk/st/ |
D | clkgen.h | 19 struct clkgen_field *field) in clkgen_read() argument 21 return (readl(base + field->offset) >> field->shift) & field->mask; in clkgen_read() 25 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, in clkgen_write() argument 28 writel((readl(base + field->offset) & in clkgen_write() 29 ~(field->mask << field->shift)) | (val << field->shift), in clkgen_write() 30 base + field->offset); in clkgen_write() 41 #define CLKGEN_READ(pll, field) clkgen_read(pll->regs_base, \ argument 42 &pll->data->field) 44 #define CLKGEN_WRITE(pll, field, val) clkgen_write(pll->regs_base, \ argument 45 &pll->data->field, val)
|
/drivers/hid/ |
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-multitouch.c | 303 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() argument 310 if (usage->usage_index >= field->report_count) { in mt_feature_mapping() 316 td->inputmode = field->report->id; in mt_feature_mapping() 331 td->maxcontact_report_id = field->report->id; in mt_feature_mapping() 332 td->maxcontacts = field->value[0]; in mt_feature_mapping() 334 field->logical_maximum <= MT_MAX_MAXCONTACT) in mt_feature_mapping() 335 td->maxcontacts = field->logical_maximum; in mt_feature_mapping() 345 struct hid_field *field, int snratio) in set_abs() argument 347 int fmin = field->logical_minimum; in set_abs() 348 int fmax = field->logical_maximum; in set_abs() [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() 88 report->field[0]->value[0] = 0xf3; in lg2ff_init() 89 report->field[0]->value[1] = 0x00; in lg2ff_init() 90 report->field[0]->value[2] = 0x00; in lg2ff_init() 91 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 | 118 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument 122 info->units = field->unit; in sensor_hub_fill_attr_info() 123 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info() 124 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info() 125 info->logical_minimum = field->logical_minimum; in sensor_hub_fill_attr_info() 126 info->logical_maximum = field->logical_maximum; in sensor_hub_fill_attr_info() 221 hid_set_field(report->field[field_index], 0, value); in sensor_hub_set_feature() 242 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature() 248 *value = report->field[field_index]->value[0]; in sensor_hub_get_feature() 310 struct hid_field *field; in hid_sensor_get_usage_index() local [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 | 698 #define fc_rport_show_function(field, format_string, sz, cast) \ argument 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) \ argument 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) \ argument 737 fc_rport_show_function(field, format_string, sz, ) \ [all …]
|
D | scsi_transport_sas.c | 453 #define sas_phy_show_simple(field, name, format_string, cast) \ argument 460 return snprintf(buf, 20, format_string, cast phy->field); \ 463 #define sas_phy_simple_attr(field, name, format_string, type) \ argument 464 sas_phy_show_simple(field, name, format_string, (type)) \ 467 #define sas_phy_show_protocol(field, name) \ argument 474 if (!phy->field) \ 476 return get_sas_protocol_names(phy->field, buf); \ 479 #define sas_phy_protocol_attr(field, name) \ argument 480 sas_phy_show_protocol(field, name) \ 483 #define sas_phy_show_linkspeed(field) \ argument [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | layout.c | 1663 struct req_msg_field *field; in req_layout_init() local 1665 field = (typeof(field))rf->rf_fields[j].d[k]; in req_layout_init() 1666 LASSERT(!(field->rmf_flags & RMF_F_STRUCT_ARRAY) in req_layout_init() 1667 || field->rmf_size > 0); in req_layout_init() 1668 LASSERT(field->rmf_offset[i][j] == 0); in req_layout_init() 1673 field->rmf_offset[i][j] = k + 1; in req_layout_init() 1845 const struct req_msg_field *field, in __req_capsule_offset() argument 1850 offset = field->rmf_offset[pill->rc_fmt->rf_idx][loc]; in __req_capsule_offset() 1853 field->rmf_name, offset, loc); in __req_capsule_offset() 1867 const struct req_msg_field *field, in swabber_dumper_helper() argument [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 | 203 #define ata_port_show_simple(field, name, format_string, cast) \ argument 210 return snprintf(buf, 20, format_string, cast ap->field); \ 213 #define ata_port_simple_attr(field, name, format_string, type) \ argument 214 ata_port_show_simple(field, name, format_string, (type)) \ 325 #define ata_link_show_linkspeed(field, format) \ argument 327 show_ata_link_##field(struct device *dev, \ 332 return sprintf(buf, "%s\n", sata_spd_string(format(link->field))); \ 335 #define ata_link_linkspeed_attr(field, format) \ argument 336 ata_link_show_linkspeed(field, format) \ 337 static DEVICE_ATTR(field, S_IRUGO, show_ata_link_##field, NULL) [all …]
|
/drivers/hid/usbhid/ |
D | hiddev.c | 135 struct hid_field *field; in hiddev_lookup_usage() local 146 field = report->field[i]; in hiddev_lookup_usage() 147 for (j = 0; j < field->maxusage; j++) { in hiddev_lookup_usage() 148 if (field->usage[j].hid == uref->usage_code) { in hiddev_lookup_usage() 152 return field; in hiddev_lookup_usage() 187 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event() argument 190 unsigned type = field->report_type; in hiddev_hid_event() 197 uref.report_id = field->report->id; in hiddev_hid_event() 198 uref.field_index = field->index; in hiddev_hid_event() 199 uref.usage_index = (usage - field->usage); in hiddev_hid_event() [all …]
|