Home
last modified time | relevance | path

Searched refs:dev_type (Results 1 – 25 of 135) sorted by relevance

123456

/drivers/regulator/
Dmax14577-regulator.c52 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_get_current_limit()
74 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_set_current_limit()
182 enum maxim_device_type dev_type) in match_init_data() argument
184 switch (dev_type) { in match_init_data()
195 enum maxim_device_type dev_type) in match_of_node() argument
197 switch (dev_type) { in match_of_node()
208 enum maxim_device_type dev_type) in match_init_data() argument
214 enum maxim_device_type dev_type) in match_of_node() argument
229 switch (max14577->dev_type) { in max14577_get_regmap()
253 enum maxim_device_type dev_type = max14577->dev_type; in max14577_regulator_probe() local
[all …]
/drivers/hv/
Dchannel_mgmt.c38 static void init_vp_index(struct vmbus_channel *channel, u16 dev_type);
42 { .dev_type = HV_IDE,
48 { .dev_type = HV_SCSI,
54 { .dev_type = HV_FC,
60 { .dev_type = HV_NIC,
66 { .dev_type = HV_ND,
72 { .dev_type = HV_PCIE,
78 { .dev_type = HV_FB,
84 { .dev_type = HV_KBD,
90 { .dev_type = HV_MOUSE,
[all …]
/drivers/scsi/aic94xx/
Daic94xx_dev.c87 if (dev->dev_type == SAS_SATA_PM_PORT) in asd_set_ddb_type()
119 if (dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM_PORT) { in asd_set_dmamode()
143 if (dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM || in asd_init_sata()
144 dev->dev_type == SAS_SATA_PM_PORT) { in asd_init_sata()
177 if ((dev->dev_type == SAS_SATA_DEV) || in asd_init_target_ddb()
191 (dev->dev_type == SAS_EDGE_EXPANDER_DEVICE || in asd_init_target_ddb()
192 dev->dev_type == SAS_FANOUT_EXPANDER_DEVICE)) in asd_init_target_ddb()
201 if (dev->dev_type == SAS_SATA_PM) in asd_init_target_ddb()
214 if (dev->dev_type == SAS_SATA_DEV || (dev->tproto & SAS_PROTOCOL_STP)) { in asd_init_target_ddb()
222 if (dev->dev_type == SAS_END_DEVICE) { in asd_init_target_ddb()
[all …]
/drivers/scsi/libsas/
Dsas_discover.c41 switch (dev->dev_type) { in sas_init_dev()
96 dev->dev_type = SAS_SATA_PM; in sas_get_port_device()
98 dev->dev_type = SAS_SATA_DEV; in sas_get_port_device()
103 dev->dev_type = id->dev_type; in sas_get_port_device()
120 switch (dev->dev_type) { in sas_get_port_device()
140 printk("ERROR: Unidentified device type %d\n", dev->dev_type); in sas_get_port_device()
168 if (dev_is_sata(dev) || dev->dev_type == SAS_END_DEVICE) in sas_get_port_device()
327 if (dev->dev_type == SAS_EDGE_EXPANDER_DEVICE || dev->dev_type == SAS_FANOUT_EXPANDER_DEVICE) in sas_free_device()
355 if (dev->dev_type == SAS_END_DEVICE && in sas_unregister_common_dev()
468 switch (dev->dev_type) { in sas_discover_domain()
[all …]
Dsas_expander.c210 enum sas_device_type dev_type; in sas_set_ex_phy() local
244 dev_type = phy->attached_dev_type; in sas_set_ex_phy()
336 if (new_phy || phy->attached_dev_type != dev_type || in sas_set_ex_phy()
876 child->dev_type = SAS_END_DEVICE; in sas_ex_discover_end_dev()
992 child->dev_type = phy->attached_dev_type; in sas_ex_discover_expander()
1176 if (child->dev_type != SAS_EDGE_EXPANDER_DEVICE && in sas_check_level_subtractive_boundary()
1177 child->dev_type != SAS_FANOUT_EXPANDER_DEVICE) in sas_check_level_subtractive_boundary()
1254 if (dev->dev_type != SAS_EDGE_EXPANDER_DEVICE) in sas_check_ex_subtractive_boundary()
1299 ex_type[parent->dev_type], in sas_print_parent_topology_bug()
1303 ex_type[child->dev_type], in sas_print_parent_topology_bug()
[all …]
/drivers/media/usb/tm6000/
Dtm6000-core.c202 if (dev->dev_type == TM6010) { in tm6000_set_fourcc_format()
228 if (dev->dev_type == TM6010) { in tm6000_set_vbi()
284 if (dev->dev_type == TM6010) { in tm6000_init_analog_mode()
355 if (dev->dev_type == TM6010) { in tm6000_init_digital_mode()
575 if (dev->dev_type != TM6000) in tm6000_init()
576 dev->dev_type = TM6000; in tm6000_init()
580 if (dev->dev_type != TM6010) in tm6000_init()
581 dev->dev_type = TM6010; in tm6000_init()
589 if (dev->dev_type == TM6010) { in tm6000_init()
639 if (dev->dev_type == TM6010) { in tm6000_set_audio_bitrate()
[all …]
Dtm6000-i2c.c47 if (dev->dev_type == TM6010) in tm6000_i2c_send_regs()
81 if (dev->dev_type == TM6010) in tm6000_i2c_recv_regs()
128 if (dev->dev_type == TM6010) { in tm6000_i2c_recv_regs16()
/drivers/s390/crypto/
Dzcrypt_pcixcc.c72 { .dev_type = AP_DEVICE_TYPE_PCIXCC,
74 { .dev_type = AP_DEVICE_TYPE_CEX2C,
76 { .dev_type = AP_DEVICE_TYPE_CEX3C,
84 { .dev_type = AP_DEVICE_TYPE_PCIXCC,
86 { .dev_type = AP_DEVICE_TYPE_CEX2C,
88 { .dev_type = AP_DEVICE_TYPE_CEX3C,
Dzcrypt_cex2a.c64 { .dev_type = AP_DEVICE_TYPE_CEX2A,
66 { .dev_type = AP_DEVICE_TYPE_CEX3A,
74 { .dev_type = AP_DEVICE_TYPE_CEX2A,
76 { .dev_type = AP_DEVICE_TYPE_CEX3A,
Dzcrypt_cex4.c44 { .dev_type = AP_DEVICE_TYPE_CEX4,
46 { .dev_type = AP_DEVICE_TYPE_CEX5,
54 { .dev_type = AP_DEVICE_TYPE_CEX4,
56 { .dev_type = AP_DEVICE_TYPE_CEX5,
/drivers/input/misc/
Dmax77693-haptic.c52 enum max77693_types dev_type; member
92 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias()
114 switch (haptic->dev_type) { in max77693_haptic_configure()
147 if (haptic->dev_type != TYPE_MAX77693) in max77693_haptic_lowsys()
314 haptic->dev_type = platform_get_device_id(pdev)->driver_data; in max77693_haptic_probe()
315 switch (haptic->dev_type) { in max77693_haptic_probe()
324 haptic->dev_type); in max77693_haptic_probe()
/drivers/bluetooth/
Dhci_vhci.c95 __u8 dev_type; in __vhci_create_device() local
101 dev_type = opcode & 0x03; in __vhci_create_device()
103 if (dev_type != HCI_PRIMARY && dev_type != HCI_AMP) in __vhci_create_device()
123 hdev->dev_type = dev_type; in __vhci_create_device()
Dbtmrvl_main.c139 priv->btmrvl_dev.dev_type = HCI_AMP; in btmrvl_process_event()
141 priv->btmrvl_dev.dev_type = HCI_PRIMARY; in btmrvl_process_event()
143 BT_DBG("dev_type: %d", priv->btmrvl_dev.dev_type); in btmrvl_process_event()
697 hdev->dev_type = priv->btmrvl_dev.dev_type; in btmrvl_register_hdev()
/drivers/mfd/
Dmax14577.c293 max14577->dev_type, device_id, vendor_id); in max14577_print_dev_type()
418 max14577->dev_type = in max14577_i2c_probe()
421 max14577->dev_type = id->driver_data; in max14577_i2c_probe()
426 switch (max14577->dev_type) { in max14577_i2c_probe()
452 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) { in max14577_i2c_probe()
468 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) in max14577_i2c_probe()
482 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) in max14577_i2c_remove()
/drivers/power/supply/
Dmax14577_charger.c37 enum maxim_device_type dev_type, u8 val) { in maxim_get_charger_type() argument
48 if (dev_type == MAXIM_DEVICE_TYPE_MAX77836) in maxim_get_charger_type()
143 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
182 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
277 switch (chg->max14577->dev_type) { in max14577_init_eoc()
317 &maxim_charger_currents[chg->max14577->dev_type]; in max14577_init_fast_charge()
445 val->strval = model_names[chg->max14577->dev_type]; in max14577_charger_get_property()
Dpower_supply.h19 extern void power_supply_init_attrs(struct device_type *dev_type);
24 static inline void power_supply_init_attrs(struct device_type *dev_type) {} in power_supply_init_attrs() argument
/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.c27 enum hnae3_dev_type dev_type) in hnae3_client_match() argument
29 if ((dev_type == HNAE3_DEV_KNIC) && (client_type == HNAE3_CLIENT_KNIC || in hnae3_client_match()
33 if (dev_type == HNAE3_DEV_UNIC && client_type == HNAE3_CLIENT_UNIC) in hnae3_client_match()
45 if (!(hnae3_client_match(client->type, ae_dev->dev_type) && in hnae3_match_n_instantiate()
/drivers/i2c/busses/
Di2c-mxs.c74 #define MXS_I2C_DATA(i2c) ((i2c->dev_type == MXS_I2C_V1) ? 0x60 : 0xa0)
76 #define MXS_I2C_DEBUG0_CLR(i2c) ((i2c->dev_type == MXS_I2C_V1) ? 0x78 : 0xb8)
119 enum mxs_i2c_devtype dev_type; member
363 if (i2c->dev_type == MXS_I2C_V1) in mxs_i2c_pio_trigger_write_cmd()
555 if (i2c->dev_type == MXS_I2C_V1) in mxs_i2c_pio_setup_xfer()
631 if (i2c->dev_type == MXS_I2C_V1) in mxs_i2c_xfer_msg()
821 i2c->dev_type = device_id->driver_data; in mxs_i2c_probe()
/drivers/scsi/pm8001/
Dpm8001_sas.c355 ((!pm8001_dev || (pm8001_dev->dev_type == SAS_PHY_UNUSED)))
372 if (dev->dev_type != SAS_SATA_DEV) in pm8001_task_exec()
541 if (pm8001_ha->devices[dev].dev_type == SAS_PHY_UNUSED) { in pm8001_alloc_dev()
577 pm8001_dev->dev_type = SAS_PHY_UNUSED; in pm8001_free_dev()
613 pm8001_device->dev_type = dev->dev_type; in pm8001_dev_found_notify()
615 if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) { in pm8001_dev_found_notify()
635 if (dev->dev_type == SAS_SATA_DEV) { in pm8001_dev_found_notify()
645 if (dev->dev_type == SAS_END_DEVICE) in pm8001_dev_found_notify()
865 pm8001_dev->device_id, pm8001_dev->dev_type)); in pm8001_dev_gone_notify()
922 if (!pm8001_dev || (pm8001_dev->dev_type == SAS_PHY_UNUSED)) in pm8001_open_reject_retry()
/drivers/staging/greybus/
Dspilib.c446 u8 dev_type; in gb_spi_setup_device() local
456 dev_type = response.device_type; in gb_spi_setup_device()
458 if (dev_type == GB_SPI_SPI_DEV) in gb_spi_setup_device()
461 else if (dev_type == GB_SPI_SPI_NOR) in gb_spi_setup_device()
464 else if (dev_type == GB_SPI_SPI_MODALIAS) in gb_spi_setup_device()
/drivers/net/wireless/intel/iwlwifi/dvm/
Drxon.c44 ctx->staging.dev_type = ctx->unused_devtype; in iwl_connection_init_rx_config()
48 ctx->staging.dev_type = ctx->ap_devtype; in iwl_connection_init_rx_config()
52 ctx->staging.dev_type = ctx->station_devtype; in iwl_connection_init_rx_config()
57 ctx->staging.dev_type = ctx->ibss_devtype; in iwl_connection_init_rx_config()
64 ctx->staging.dev_type = RXON_DEV_TYPE_SNIFFER; in iwl_connection_init_rx_config()
125 u8 old_dev_type = send->dev_type; in iwlagn_disable_pan()
136 send->dev_type = RXON_DEV_TYPE_P2P; in iwlagn_disable_pan()
141 send->dev_type = old_dev_type; in iwlagn_disable_pan()
878 CHK_NEQ(staging->dev_type, active->dev_type); in iwl_full_rxon_required()
922 IWL_DEBUG_RADIO(priv, "u8 dev_type: 0x%x\n", rxon->dev_type); in iwl_print_rx_config_cmd()
/drivers/dma/
Dste_dma40.c1233 u32 event = D40_TYPE_TO_EVENT(d40c->dma_cfg.dev_type); in d40_config_set_event()
1705 if ((is_log && conf->dev_type > d40c->base->num_log_chans) || in d40_validate_conf()
1706 (!is_log && conf->dev_type > d40c->base->num_phy_chans) || in d40_validate_conf()
1707 (conf->dev_type < 0)) { in d40_validate_conf()
1708 chan_err(d40c, "Invalid device type (%d)\n", conf->dev_type); in d40_validate_conf()
1826 int dev_type = d40c->dma_cfg.dev_type; in d40_allocate_channel() local
1841 log_num = 2 * dev_type; in d40_allocate_channel()
1846 log_num = 2 * dev_type + 1; in d40_allocate_channel()
1851 event_group = D40_TYPE_TO_GROUP(dev_type); in d40_allocate_channel()
1852 event_line = D40_TYPE_TO_EVENT(dev_type); in d40_allocate_channel()
[all …]
/drivers/scsi/hisi_sas/
Dhisi_sas_main.c17 ((!dev) || (dev->dev_type == SAS_PHY_UNUSED))
304 if (device->dev_type != SAS_SATA_DEV) in hisi_sas_task_prep()
497 id->dev_type = phy->identify.device_type; in hisi_sas_bytes_dmaed()
516 if (hisi_hba->devices[i].dev_type == SAS_PHY_UNUSED) { in hisi_sas_alloc_dev()
523 sas_dev->dev_type = device->dev_type; in hisi_sas_alloc_dev()
556 if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) { in hisi_sas_dev_found()
714 if ((sas_dev->dev_type == SAS_PHY_UNUSED) || in hisi_sas_release_tasks()
736 sas_dev->device_id, sas_dev->dev_type); in hisi_sas_dev_gone()
746 sas_dev->dev_type = SAS_PHY_UNUSED; in hisi_sas_dev_gone()
997 if ((sas_dev->dev_type == SAS_PHY_UNUSED) in hisi_sas_refresh_port_id()
[all …]
/drivers/hid/
Dhid-lgff.c37 struct dev_type { struct
59 static const struct dev_type devices[] = { argument
/drivers/edac/
Dsynopsys_edac.c266 static enum dev_type synps_edac_get_dtype(const void __iomem *base) in synps_edac_get_dtype()
268 enum dev_type dt; in synps_edac_get_dtype()
298 enum dev_type dt; in synps_edac_get_eccstate()

123456