/drivers/mtd/chips/ |
D | cfi_util.c | 45 unsigned type = cfi->device_type; in cfi_build_cmd_addr() 223 int osf = cfi->interleave * cfi->device_type; /* scale factor */ in cfi_qry_present() 251 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 252 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 257 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 258 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 259 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 263 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 264 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() 268 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on() [all …]
|
D | cfi_cmdset_0002.c | 140 cfi->device_type, NULL); in cfi_check_err_status() 538 ((cfi->device_type == CFI_DEVICETYPE_X8 && (cfi->id & 0xff) == 0x7e) || in is_m29ew() 539 (cfi->device_type == CFI_DEVICETYPE_X16 && cfi->id == 0x227e))) in is_m29ew() 842 cfi->device_type, NULL); in chip_ready() 1277 cfi->device_type, NULL); in otp_enter() 1279 cfi->device_type, NULL); in otp_enter() 1281 cfi->device_type, NULL); in otp_enter() 1292 cfi->device_type, NULL); in otp_exit() 1294 cfi->device_type, NULL); in otp_exit() 1296 cfi->device_type, NULL); in otp_exit() [all …]
|
D | jedec_probe.c | 1923 mask = (1 << (cfi->device_type * 8)) - 1; in jedec_read_mfr() 1939 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_id() 1957 cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); in jedec_reset() 1958 cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base, map, cfi, cfi->device_type, NULL); in jedec_reset() 1961 cfi_send_gen_cmd(0xF0, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); in jedec_reset() 1967 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in jedec_reset() 1977 if (!(jedec_table[index].devtypes & cfi->device_type)) { in cfi_jedec_setup() 1979 jedec_table[index].name, 4 * (1<<cfi->device_type)); in cfi_jedec_setup() 2016 cfi->addr_unlock1 = unlock_addrs[uaddr].addr1 / cfi->device_type; in cfi_jedec_setup() 2017 cfi->addr_unlock2 = unlock_addrs[uaddr].addr2 / cfi->device_type; in cfi_jedec_setup() [all …]
|
D | cfi_probe.c | 172 map->name, cfi->interleave, cfi->device_type*8, base, in cfi_probe_chip() 197 int ofs_factor = cfi->interleave*cfi->device_type; in cfi_chip_setup() 262 cfi_send_gen_cmd(0xf0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_chip_setup() 263 cfi_send_gen_cmd(0xaa, addr_unlock1, base, map, cfi, cfi->device_type, NULL); in cfi_chip_setup() 264 cfi_send_gen_cmd(0x55, addr_unlock2, base, map, cfi, cfi->device_type, NULL); in cfi_chip_setup() 265 cfi_send_gen_cmd(0x90, addr_unlock1, base, map, cfi, cfi->device_type, NULL); in cfi_chip_setup() 281 map->name, cfi->interleave, cfi->device_type*8, base, in cfi_chip_setup()
|
/drivers/usb/serial/ |
D | kobil_sct.c | 109 __u16 device_type; member 124 priv->device_type = le16_to_cpu(serial->dev->descriptor.idProduct); in kobil_port_probe() 126 switch (priv->device_type) { in kobil_port_probe() 215 if (priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID || in kobil_open() 216 priv->device_type == KOBIL_ADAPTER_K_PRODUCT_ID) { in kobil_open() 244 if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID || in kobil_open() 245 priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID || in kobil_open() 246 priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) { in kobil_open() 321 …if (((priv->device_type != KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 2) && (priv->filled >= (… in kobil_write() 322 …((priv->device_type == KOBIL_ADAPTER_B_PRODUCT_ID) && (priv->filled > 3) && (priv->filled >= (priv… in kobil_write() [all …]
|
/drivers/of/unittest-data/ |
D | tests-match.dtsi | 7 name1 { device_type = "type1"; }; 8 a { name2 { device_type = "type1"; }; }; 10 c { name2 { device_type = "type2"; }; }; 15 name7 { compatible = "compat2"; device_type = "type1"; }; 16 name8 { compatible = "compat2"; device_type = "type1"; };
|
/drivers/mfd/ |
D | sec-core.c | 265 if (sec_pmic->device_type != S2MPS13X) in sec_pmic_configure() 344 unsigned long device_type; in sec_pmic_probe() local 356 device_type = sec_i2c_get_driver_data(i2c, id); in sec_pmic_probe() 364 pdata->device_type = device_type; in sec_pmic_probe() 367 sec_pmic->device_type = pdata->device_type; in sec_pmic_probe() 373 switch (sec_pmic->device_type) { in sec_pmic_probe() 418 switch (sec_pmic->device_type) { in sec_pmic_probe() 457 sec_pmic->device_type); in sec_pmic_probe() 480 switch (sec_pmic->device_type) { in sec_pmic_shutdown() 492 sec_pmic->device_type); in sec_pmic_shutdown()
|
/drivers/memory/ |
D | of_memory.h | 17 u32 device_type, u32 *nr_frequencies); 22 struct device *dev, u32 device_type, u32 *nr_frequencies); 32 u32 device_type, u32 *nr_frequencies) in of_get_ddr_timings() argument 45 struct device *dev, u32 device_type, u32 *nr_frequencies) in of_lpddr3_get_ddr_timings() argument
|
/drivers/scsi/libsas/ |
D | sas_internal.h | 131 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy() 134 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy() 137 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy() 140 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy() 151 phy->identify.device_type = SAS_END_DEVICE; in sas_phy_set_target() 153 phy->identify.device_type = dev->dev_type; in sas_phy_set_target() 156 phy->identify.device_type = SAS_PHY_UNUSED; in sas_phy_set_target()
|
/drivers/bus/fsl-mc/ |
D | fsl-mc-bus.c | 219 struct device_type fsl_mc_bus_dprc_type = { 224 struct device_type fsl_mc_bus_dpni_type = { 229 struct device_type fsl_mc_bus_dpio_type = { 234 struct device_type fsl_mc_bus_dpsw_type = { 239 struct device_type fsl_mc_bus_dpbp_type = { 244 struct device_type fsl_mc_bus_dpcon_type = { 249 struct device_type fsl_mc_bus_dpmcp_type = { 254 struct device_type fsl_mc_bus_dpmac_type = { 259 struct device_type fsl_mc_bus_dprtc_type = { 264 struct device_type fsl_mc_bus_dpseci_type = { [all …]
|
/drivers/hid/ |
D | hid-logitech-dj.c | 168 u8 device_type; member 687 if (workitem->device_type) { in logi_dj_recv_add_djhid_device() 690 switch (workitem->device_type) { in logi_dj_recv_add_djhid_device() 889 workitem->device_type = hidpp_report->params[HIDPP_PARAM_DEVICE_INFO] & in logi_hidpp_dev_conn_notif_equad() 893 switch (workitem->device_type) { in logi_hidpp_dev_conn_notif_equad() 923 workitem->device_type = HIDPP_DEVICE_TYPE_MOUSE; in logi_hidpp_dev_conn_notif_27mhz() 928 workitem->device_type = HIDPP_DEVICE_TYPE_KEYBOARD; in logi_hidpp_dev_conn_notif_27mhz() 943 const char *device_type = "UNKNOWN"; in logi_hidpp_recv_queue_notif() local 951 device_type = "Bluetooth"; in logi_hidpp_recv_queue_notif() 962 device_type = "27 Mhz"; in logi_hidpp_recv_queue_notif() [all …]
|
D | wacom_sys.c | 445 features->device_type |= WACOM_DEVICETYPE_PEN; in wacom_usage_mapping() 447 features->device_type |= WACOM_DEVICETYPE_TOUCH; in wacom_usage_mapping() 496 features->device_type |= WACOM_DEVICETYPE_DIRECT; in wacom_post_parse_hid() 498 features->device_type &= ~WACOM_DEVICETYPE_DIRECT; in wacom_post_parse_hid() 502 if (features->device_type & WACOM_DEVICETYPE_DIRECT) in wacom_post_parse_hid() 682 if (features->device_type & WACOM_DEVICETYPE_TOUCH) { in _wacom_query_tablet_data() 697 } else if (features->device_type & WACOM_DEVICETYPE_PEN) { in _wacom_query_tablet_data() 734 features->device_type = WACOM_DEVICETYPE_WL_MONITOR; in wacom_retrieve_hid_descriptor() 736 features->device_type = WACOM_DEVICETYPE_NONE; in wacom_retrieve_hid_descriptor() 790 if ((features->device_type & WACOM_DEVICETYPE_DIRECT) && in wacom_are_sibling() [all …]
|
D | hid-plantronics.c | 45 unsigned long device_type; member 58 unsigned long plt_type = drv_data->device_type; in plantronics_input_mapping() 185 drv_data->device_type = plantronics_device_type(hdev); in plantronics_probe()
|
/drivers/power/supply/ |
D | power_supply.h | 13 struct device_type; 18 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()
|
/drivers/rtc/ |
D | rtc-s5m.c | 154 enum sec_device_type device_type; member 243 switch (info->device_type) { in s5m_check_peding_alarm_interrupt() 307 switch (info->device_type) { in s5m8767_rtc_set_alarm_reg() 331 if (info->device_type == S2MPS13X) in s5m8767_rtc_set_alarm_reg() 393 switch (info->device_type) { in s5m_rtc_read_time() 420 switch (info->device_type) { in s5m_rtc_set_time() 461 switch (info->device_type) { in s5m_rtc_read_alarm() 510 switch (info->device_type) { in s5m_rtc_stop_alarm() 553 switch (info->device_type) { in s5m_rtc_start_alarm() 595 switch (info->device_type) { in s5m_rtc_set_alarm() [all …]
|
/drivers/platform/x86/intel_speed_select_if/ |
D | isst_if_common.c | 656 int isst_if_cdev_register(int device_type, struct isst_if_cmd_cb *cb) in isst_if_cdev_register() argument 660 if (device_type >= ISST_IF_DEV_MAX) in isst_if_cdev_register() 669 memcpy(&punit_callbacks[device_type], cb, sizeof(*cb)); in isst_if_cdev_register() 670 punit_callbacks[device_type].registered = 1; in isst_if_cdev_register() 679 punit_callbacks[device_type].registered = 0; in isst_if_cdev_register() 695 void isst_if_cdev_unregister(int device_type) in isst_if_cdev_unregister() argument 699 punit_callbacks[device_type].registered = 0; in isst_if_cdev_unregister() 700 if (device_type == ISST_IF_DEV_MBOX) in isst_if_cdev_unregister()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.h | 129 u32 device_type, u16 *phy_data); 131 u32 device_type, u16 phy_data); 133 u32 device_type, u16 *phy_data); 135 u32 device_type, u16 phy_data);
|
/drivers/usb/core/ |
D | usb.h | 146 extern struct device_type usb_device_type; 147 extern struct device_type usb_if_device_type; 148 extern struct device_type usb_ep_device_type; 149 extern struct device_type usb_port_device_type;
|
/drivers/s390/crypto/ |
D | ap_card.c | 27 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show() 138 to_ap_dev(dev)->device_type); in modalias_show() 197 static struct device_type ap_card_type = { 219 ac->ap_dev.device_type = comp_type; in ap_card_create()
|
D | zcrypt_cex4.c | 449 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe() 453 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe() 457 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe() 481 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe() 488 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe() 495 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe() 514 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe() 518 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe() 522 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX6) { in zcrypt_cex4_card_probe()
|
D | zcrypt_cex2a.c | 94 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) { in zcrypt_cex2a_card_probe() 101 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { in zcrypt_cex2a_card_probe() 158 switch (ap_dev->device_type) { in zcrypt_cex2a_queue_probe()
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 41 u32 device_type); 715 u32 device_type) in ixgb_read_phy_reg() argument 723 ASSERT(device_type <= IXGB_MAX_PHY_DEV_TYPE); in ixgb_read_phy_reg() 727 (device_type << IXGB_MSCA_DEV_TYPE_SHIFT) | in ixgb_read_phy_reg() 754 (device_type << IXGB_MSCA_DEV_TYPE_SHIFT) | in ixgb_read_phy_reg() 808 u32 device_type, in ixgb_write_phy_reg() argument 816 ASSERT(device_type <= IXGB_MAX_PHY_DEV_TYPE); in ixgb_write_phy_reg() 823 (device_type << IXGB_MSCA_DEV_TYPE_SHIFT) | in ixgb_write_phy_reg() 850 (device_type << IXGB_MSCA_DEV_TYPE_SHIFT) | in ixgb_write_phy_reg()
|
/drivers/scsi/ |
D | scsi_transport_sas.c | 131 sas_bitfield_name_search(device_type, sas_device_type_names) 166 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_bitfield_name_search() 518 if (!phy->identify.device_type) in show_sas_device_type() 520 return get_sas_device_type_names(phy->identify.device_type, buf); in show_sas_device_type() 522 static DEVICE_ATTR(device_type, S_IRUGO, show_sas_device_type, NULL); 1173 if (!rphy->identify.device_type) in show_sas_rphy_device_type() 1176 rphy->identify.device_type, buf); in show_sas_rphy_device_type() 1179 static SAS_DEVICE_ATTR(rphy, device_type, S_IRUGO, 1366 rphy->identify.device_type == SAS_END_DEVICE; in sas_end_dev_match() 1389 (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE || in sas_expander_match() [all …]
|
/drivers/usb/typec/ |
D | bus.h | 30 extern const struct device_type typec_altmode_dev_type; 31 extern const struct device_type typec_port_dev_type;
|
/drivers/gpu/drm/i915/gvt/ |
D | opregion.c | 70 u16 device_type; member 177 v->child0.device_type = DEVICE_TYPE_DP; in virt_vbt_generation() 185 v->child1.device_type = DEVICE_TYPE_DP; in virt_vbt_generation() 193 v->child2.device_type = DEVICE_TYPE_DP; in virt_vbt_generation() 201 v->child3.device_type = DEVICE_TYPE_DP; in virt_vbt_generation()
|