Home
last modified time | relevance | path

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

123456789

/openbmc/linux/drivers/scsi/aic94xx/
H A Daic94xx_dev.c70 if (dev->dev_type == SAS_SATA_PM_PORT) in asd_set_ddb_type()
102 if (dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM_PORT) { in asd_set_dmamode()
126 if (dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM || in asd_init_sata()
127 dev->dev_type == SAS_SATA_PM_PORT) { in asd_init_sata()
160 if ((dev->dev_type == SAS_SATA_DEV) || in asd_init_target_ddb()
173 if (!dev->parent && dev_is_expander(dev->dev_type)) in asd_init_target_ddb()
182 if (dev->dev_type == SAS_SATA_PM) in asd_init_target_ddb()
195 if (dev->dev_type == SAS_SATA_DEV || (dev->tproto & SAS_PROTOCOL_STP)) { in asd_init_target_ddb()
203 if (dev->dev_type == SAS_END_DEVICE) { in asd_init_target_ddb()
311 switch (dev->dev_type) { in asd_dev_found()
/openbmc/linux/drivers/s390/crypto/
H A Dvfio_ap_drv.c33 { .dev_type = AP_DEVICE_TYPE_CEX4,
35 { .dev_type = AP_DEVICE_TYPE_CEX5,
37 { .dev_type = AP_DEVICE_TYPE_CEX6,
39 { .dev_type = AP_DEVICE_TYPE_CEX7,
41 { .dev_type = AP_DEVICE_TYPE_CEX8,
H A Dzcrypt_cex4.c44 { .dev_type = AP_DEVICE_TYPE_CEX4,
46 { .dev_type = AP_DEVICE_TYPE_CEX5,
48 { .dev_type = AP_DEVICE_TYPE_CEX6,
50 { .dev_type = AP_DEVICE_TYPE_CEX7,
52 { .dev_type = AP_DEVICE_TYPE_CEX8,
60 { .dev_type = AP_DEVICE_TYPE_CEX4,
62 { .dev_type = AP_DEVICE_TYPE_CEX5,
64 { .dev_type = AP_DEVICE_TYPE_CEX6,
66 { .dev_type = AP_DEVICE_TYPE_CEX7,
68 { .dev_type = AP_DEVICE_TYPE_CEX8,
/openbmc/linux/drivers/scsi/libsas/
H A Dsas_discover.c24 switch (dev->dev_type) { in sas_init_dev()
79 dev->dev_type = SAS_SATA_PM; in sas_get_port_device()
81 dev->dev_type = SAS_SATA_DEV; in sas_get_port_device()
86 dev->dev_type = id->dev_type; in sas_get_port_device()
103 switch (dev->dev_type) { in sas_get_port_device()
299 if (dev_is_expander(dev->dev_type)) in sas_free_device()
330 if (dev->dev_type == SAS_END_DEVICE && in sas_unregister_common_dev()
378 if (dev_is_expander(dev->dev_type)) in sas_abort_device_scsi_cmds()
477 switch (dev->dev_type) { in sas_discover_domain()
491 pr_err("unhandled device %d\n", dev->dev_type); in sas_discover_domain()
[all …]
/openbmc/linux/include/scsi/
H A Dsas_ata.h20 return dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM || in dev_is_sata()
21 dev->dev_type == SAS_SATA_PM_PORT || dev->dev_type == SAS_SATA_PENDING; in dev_is_sata()
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Ddevice-init.c38 dev->dev_type = PS3_DEVICE_TYPE_LPM; in ps3_register_lpm_devices()
136 p->dev.dev_type = PS3_DEVICE_TYPE_SB; in ps3_setup_gelic_device()
207 p->dev.dev_type = PS3_DEVICE_TYPE_SB; in ps3_setup_uhc_device()
302 p->dev.dev_type = PS3_DEVICE_TYPE_VUART; in ps3_setup_vuart_device()
353 p->sbd.dev_type = PS3_DEVICE_TYPE_SB; in ps3_setup_storage_dev()
454 p->dev.dev_type = PS3_DEVICE_TYPE_IOC0; in ps3_register_sound_devices()
490 p->dev.dev_type = PS3_DEVICE_TYPE_IOC0; in ps3_register_graphics_devices()
552 switch (repo->dev_type) { in ps3_setup_dynamic_device()
585 repo->dev_type); in ps3_setup_dynamic_device()
599 switch (repo->dev_type) { in ps3_setup_static_device()
[all …]
/openbmc/linux/drivers/regulator/
H A Dmax14577-regulator.c42 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_get_current_limit()
64 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_set_current_limit()
167 switch (max14577->dev_type) { in max14577_get_regmap()
191 enum maxim_device_type dev_type = max14577->dev_type; in max14577_regulator_probe() local
193 switch (dev_type) { in max14577_regulator_probe()
/openbmc/linux/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh12 dev_type="cdev"
220 if [ "$dev_type" != "sysfs" ]; then
322 dev_type=$OPTARG
341 case "$dev_type" in
353 fail "unknown interface type: $dev_type"
/openbmc/linux/drivers/hv/
H A Dchannel_mgmt.c32 { .dev_type = HV_IDE,
39 { .dev_type = HV_SCSI,
46 { .dev_type = HV_FC,
53 { .dev_type = HV_NIC,
60 { .dev_type = HV_ND,
74 { .dev_type = HV_FB,
81 { .dev_type = HV_KBD,
95 { .dev_type = HV_KVP,
102 { .dev_type = HV_TS,
109 { .dev_type = HV_HB,
[all …]
/openbmc/linux/drivers/input/misc/
H A Dmax77693-haptic.c48 enum max77693_types dev_type; member
88 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias()
110 switch (haptic->dev_type) { in max77693_haptic_configure()
143 if (haptic->dev_type != TYPE_MAX77693) in max77693_haptic_lowsys()
310 haptic->dev_type = platform_get_device_id(pdev)->driver_data; in max77693_haptic_probe()
311 switch (haptic->dev_type) { in max77693_haptic_probe()
320 haptic->dev_type); in max77693_haptic_probe()
/openbmc/linux/drivers/power/supply/
H A Dpower_supply.h18 extern void power_supply_init_attrs(struct device_type *dev_type);
23 static inline void power_supply_init_attrs(struct device_type *dev_type) {} in power_supply_init_attrs() argument
H A Dmax14577_charger.c27 enum maxim_device_type dev_type, u8 val) { in maxim_get_charger_type() argument
38 if (dev_type == MAXIM_DEVICE_TYPE_MAX77836) in maxim_get_charger_type()
133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
267 switch (chg->max14577->dev_type) { in max14577_init_eoc()
307 &maxim_charger_currents[chg->max14577->dev_type]; in max14577_init_fast_charge()
435 val->strval = model_names[chg->max14577->dev_type]; in max14577_charger_get_property()
/openbmc/linux/drivers/mfd/
H A Dmax14577.c280 max14577->dev_type, device_id, vendor_id); in max14577_print_dev_type()
405 max14577->dev_type = (uintptr_t)of_id->data; in max14577_i2c_probe()
407 max14577->dev_type = id->driver_data; in max14577_i2c_probe()
412 switch (max14577->dev_type) { in max14577_i2c_probe()
438 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) { in max14577_i2c_probe()
454 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) in max14577_i2c_probe()
468 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) in max14577_i2c_remove()
/openbmc/linux/drivers/vdpa/ifcvf/
H A Difcvf_main.c369 u32 type = vf->dev_type; in ifcvf_vdpa_get_device_features()
534 return vf->dev_type; in ifcvf_vdpa_get_device_id()
660 u32 dev_type; in get_dev_type() local
671 dev_type = pdev->subsystem_device; in get_dev_type()
673 dev_type = pdev->device - 0x1040; in get_dev_type()
675 return dev_type; in get_dev_type()
751 u32 dev_type; in ifcvf_probe() local
787 vf->dev_type = get_dev_type(pdev); in ifcvf_probe()
803 dev_type = get_dev_type(pdev); in ifcvf_probe()
804 switch (dev_type) { in ifcvf_probe()
[all …]
/openbmc/qemu/tests/avocado/
H A Dvirtio_check_params.py130 for dev_type in DEV_TYPES:
139 DEV_TYPES[dev_type]['seg_max_adjust']: enabled})
143 self.check_mt(mt, dev_type)
/openbmc/u-boot/cmd/
H A Djffs2.c202 static int mtd_id_parse(const char *id, const char **ret_id, u8 *dev_type, u8 *dev_num) in mtd_id_parse() argument
206 *dev_type = 0; in mtd_id_parse()
208 *dev_type = MTD_DEV_TYPE_NAND; in mtd_id_parse()
211 *dev_type = MTD_DEV_TYPE_NOR; in mtd_id_parse()
214 *dev_type = MTD_DEV_TYPE_ONENAND; in mtd_id_parse()
H A Dflash.c18 int mtd_id_parse(const char *id, const char **ret_id, u8 *dev_type, u8 *dev_num);
308 u8 dev_type, dev_num, pnum; in do_flerase() local
337 if ((argc == 2) && (mtd_id_parse(argv[1], NULL, &dev_type, &dev_num) == 0)) { in do_flerase()
442 u8 dev_type, dev_num, pnum; in do_protect() local
515 if ((argc == 3) && (mtd_id_parse(argv[2], NULL, &dev_type, &dev_num) == 0)) { in do_protect()
/openbmc/linux/sound/hda/
H A Dintel-nhlt.c273 u32 bus_id, u8 link_type, u8 dir, u8 dev_type) in nhlt_check_ep_match() argument
286 epnt->device_type == dev_type; in nhlt_check_ep_match()
292 u8 num_ch, u32 rate, u8 dir, u8 dev_type) in intel_nhlt_get_endpoint_blob() argument
305 bus_id, link_type, dir, dev_type); in intel_nhlt_get_endpoint_blob()
331 if (nhlt_check_ep_match(dev, epnt, bus_id, link_type, dir, dev_type)) { in intel_nhlt_get_endpoint_blob()
/openbmc/u-boot/arch/arm/include/asm/arch-rockchip/
H A Df_rockusb.h119 char *dev_type; member
134 void rockusb_dev_init(char *dev_type, int dev_index);
/openbmc/linux/arch/s390/include/asm/
H A Dccwdev.h34 .cu_type=(cu), .cu_model=(cum), .dev_type=(dev), .dev_model=(devm),\
61 && (id->dev_type != match->dev_type)) in ccw_device_id_match()
/openbmc/linux/drivers/scsi/pm8001/
H A Dpm8001_sas.c393 ((!pm8001_dev || (pm8001_dev->dev_type == SAS_PHY_UNUSED)))
447 if (dev->dev_type != SAS_SATA_DEV) in pm8001_queue_command()
581 if (pm8001_ha->devices[dev].dev_type == SAS_PHY_UNUSED) { in pm8001_alloc_dev()
617 pm8001_dev->dev_type = SAS_PHY_UNUSED; in pm8001_free_dev()
653 pm8001_device->dev_type = dev->dev_type; in pm8001_dev_found_notify()
655 if (parent_dev && dev_is_expander(parent_dev->dev_type)) { in pm8001_dev_found_notify()
669 if (dev->dev_type == SAS_SATA_DEV) { in pm8001_dev_found_notify()
679 if (dev->dev_type == SAS_END_DEVICE) in pm8001_dev_found_notify()
711 pm8001_dev->device_id, pm8001_dev->dev_type); in pm8001_dev_gone_notify()
758 if (!pm8001_dev || (pm8001_dev->dev_type == SAS_PHY_UNUSED)) in pm8001_open_reject_retry()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-mxs.c69 #define MXS_I2C_DATA(i2c) ((i2c->dev_type == MXS_I2C_V1) ? 0x60 : 0xa0)
71 #define MXS_I2C_DEBUG0_CLR(i2c) ((i2c->dev_type == MXS_I2C_V1) ? 0x78 : 0xb8)
114 enum mxs_i2c_devtype dev_type; member
361 if (i2c->dev_type == MXS_I2C_V1) in mxs_i2c_pio_trigger_write_cmd()
550 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()
809 i2c->dev_type = (uintptr_t)of_device_get_match_data(&pdev->dev); in mxs_i2c_probe()
/openbmc/linux/usr/
H A Dgen_init_cpio.c245 uid_t uid, gid_t gid, char dev_type, in cpio_mknod() argument
250 if (dev_type == 'b') in cpio_mknod()
284 char dev_type; in cpio_mknod_line() local
290 name, &mode, &uid, &gid, &dev_type, &maj, &min)) { in cpio_mknod_line()
294 rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min); in cpio_mknod_line()
/openbmc/u-boot/drivers/usb/gadget/
H A Df_rockusb.c314 void rockusb_dev_init(char *dev_type, int dev_index) in rockusb_dev_init() argument
318 f_rkusb->dev_type = dev_type; in rockusb_dev_init()
465 f_rkusb->dev_type, f_rkusb->dev_index); in tx_handler_ul_image()
513 printf("failed writing to device %s: %d\n", f_rkusb->dev_type, in rx_handler_dl_image()
627 char *type = f_rkusb->dev_type; in cb_read_lba()
669 char *type = f_rkusb->dev_type; in cb_write_lba()
710 char *type = f_rkusb->dev_type; in cb_erase_lba()
730 printf("failed erasing device %s: %d\n", f_rkusb->dev_type, in cb_erase_lba()
/openbmc/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c11 ((!dev) || (dev->dev_type == SAS_PHY_UNUSED))
646 id->dev_type = phy->identify.device_type; in hisi_sas_bytes_dmaed()
674 sas_dev->dev_type = device->dev_type; in hisi_sas_alloc_dev()
766 switch (device->dev_type) { in hisi_sas_init_device()
862 sas_dev->device_id, sas_dev->dev_type); in hisi_sas_dev_found()
1171 sas_dev->device_id, sas_dev->dev_type); in hisi_sas_dev_gone()
1188 sas_dev->dev_type = SAS_PHY_UNUSED; in hisi_sas_dev_gone()
1356 if ((sas_dev->dev_type == SAS_PHY_UNUSED) in hisi_sas_refresh_port_id()
1405 if (dev_is_expander(dev->dev_type)) in hisi_sas_rescan_topology()
1672 if (task->dev->dev_type == SAS_SATA_DEV) { in hisi_sas_abort_task()
[all …]

123456789