Home
last modified time | relevance | path

Searched refs:features (Results 1 – 25 of 610) sorted by relevance

12345678910>>...25

/drivers/hid/
Dwacom_sys.c117 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_feature_mapping() local
125 if (!features->touch_max) { in wacom_feature_mapping()
134 features->touch_max = data[1]; in wacom_feature_mapping()
136 features->touch_max = 16; in wacom_feature_mapping()
140 features->touch_max); in wacom_feature_mapping()
194 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_usage_mapping() local
204 features->device_type |= WACOM_DEVICETYPE_PEN; in wacom_usage_mapping()
206 features->device_type |= WACOM_DEVICETYPE_TOUCH; in wacom_usage_mapping()
214 if (features->type > BAMBOO_PT) { in wacom_usage_mapping()
216 if (finger && !features->touch_max) in wacom_usage_mapping()
[all …]
Dwacom_wac.c115 struct wacom_features *features = &wacom->features; in wacom_pl_irq() local
153 if (features->pressure_max > 255) in wacom_pl_irq()
155 pressure += (features->pressure_max + 1) / 2; in wacom_pl_irq()
286 struct wacom_features *features = &wacom->features; in wacom_graphire_irq() local
295 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
336 if (features->type == GRAPHIRE_BT) in wacom_graphire_irq()
348 if (features->type == WACOM_G4 || in wacom_graphire_irq()
349 features->type == WACOM_MO) { in wacom_graphire_irq()
352 } else if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq()
381 switch (features->type) { in wacom_graphire_irq()
[all …]
/drivers/s390/block/
Ddasd_devmap.c49 unsigned short features; member
193 int features, len, rc; in dasd_feature_list() local
201 features = 0; in dasd_feature_list()
207 features |= DASD_FEATURE_READONLY; in dasd_feature_list()
209 features |= DASD_FEATURE_USEDIAG; in dasd_feature_list()
211 features |= DASD_FEATURE_USERAW; in dasd_feature_list()
213 features |= DASD_FEATURE_ERPLOG; in dasd_feature_list()
215 features |= DASD_FEATURE_FAILFAST; in dasd_feature_list()
235 return features; in dasd_feature_list()
314 int features, rc; in dasd_parse_range() local
[all …]
/drivers/net/ethernet/atheros/atlx/
Datlx.c221 static void __atlx_vlan_mode(netdev_features_t features, u32 *ctrl) in __atlx_vlan_mode() argument
223 if (features & NETIF_F_HW_VLAN_CTAG_RX) { in __atlx_vlan_mode()
233 netdev_features_t features) in atlx_vlan_mode() argument
242 __atlx_vlan_mode(features, &ctrl); in atlx_vlan_mode()
250 atlx_vlan_mode(adapter->netdev, adapter->netdev->features); in atlx_restore_vlan()
254 netdev_features_t features) in atlx_fix_features() argument
260 if (features & NETIF_F_HW_VLAN_CTAG_RX) in atlx_fix_features()
261 features |= NETIF_F_HW_VLAN_CTAG_TX; in atlx_fix_features()
263 features &= ~NETIF_F_HW_VLAN_CTAG_TX; in atlx_fix_features()
265 return features; in atlx_fix_features()
[all …]
/drivers/input/touchscreen/
Dwacom_i2c.c47 struct wacom_features *features) in wacom_query_device() argument
81 features->x_max = get_unaligned_le16(&data[3]); in wacom_query_device()
82 features->y_max = get_unaligned_le16(&data[5]); in wacom_query_device()
83 features->pressure_max = get_unaligned_le16(&data[11]); in wacom_query_device()
84 features->fw_version = get_unaligned_le16(&data[13]); in wacom_query_device()
88 features->x_max, features->y_max, in wacom_query_device()
89 features->pressure_max, features->fw_version); in wacom_query_device()
158 struct wacom_features features = { 0 }; in wacom_i2c_probe() local
166 error = wacom_query_device(client, &features); in wacom_i2c_probe()
183 input->id.version = features.fw_version; in wacom_i2c_probe()
[all …]
/drivers/mfd/
Dtwl-core.c678 unsigned num_consumers, unsigned long features) in add_regulator_linked() argument
695 tmp->features |= features; in add_regulator_linked()
698 drv_data.features = features; in add_regulator_linked()
712 unsigned long features) in add_regulator() argument
714 return add_regulator_linked(num, pdata, NULL, 0, features); in add_regulator()
725 unsigned long features) in add_children() argument
809 features); in add_children()
815 features); in add_children()
821 features); in add_children()
870 features); in add_children()
[all …]
/drivers/scsi/aic7xxx/
Daic7xxx_pci.c795 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config()
811 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config()
828 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config()
866 if ((ahc->features & AHC_ULTRA) != 0) { in ahc_pci_config()
872 ahc->features &= ~AHC_ULTRA; in ahc_pci_config()
884 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config()
942 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config()
953 if ((ahc->features & AHC_MULTI_FUNC) != 0) in ahc_pci_config()
956 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config()
988 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_ext_scbram_present()
[all …]
/drivers/input/tablet/
Dhanwang.c74 const struct hanwang_features *features; member
130 enum hanwang_tablet_type type = hanwang->features->type; in hanwang_parse_packet()
218 hanwang->features->pid); in hanwang_parse_packet()
325 hanwang->features = &features_array[i]; in get_features()
358 hanwang->data = usb_alloc_coherent(dev, hanwang->features->pkg_len, in hanwang_probe()
377 strlcpy(hanwang->name, hanwang->features->name, sizeof(hanwang->name)); in hanwang_probe()
401 0, hanwang->features->max_x, 4, 0); in hanwang_probe()
403 0, hanwang->features->max_y, 4, 0); in hanwang_probe()
405 0, hanwang->features->max_tilt_x, 0, 0); in hanwang_probe()
407 0, hanwang->features->max_tilt_y, 0, 0); in hanwang_probe()
[all …]
/drivers/vhost/
Dtest.c247 static int vhost_test_set_features(struct vhost_test *n, u64 features) in vhost_test_set_features() argument
252 if ((features & (1 << VHOST_F_LOG_ALL)) && in vhost_test_set_features()
259 vq->acked_features = features; in vhost_test_set_features()
272 u64 features; in vhost_test_ioctl() local
280 features = VHOST_FEATURES; in vhost_test_ioctl()
281 if (copy_to_user(featurep, &features, sizeof features)) in vhost_test_ioctl()
286 if (copy_from_user(&features, featurep, sizeof features)) in vhost_test_ioctl()
289 if (features & ~VHOST_FEATURES) in vhost_test_ioctl()
292 return vhost_test_set_features(n, features); in vhost_test_ioctl()
/drivers/net/ethernet/ibm/emac/
Dphy.c147 if (phy->features & in genmii_setup_aneg()
227 if (phy->features & in genmii_read_link()
512 phy->features = def->features; in emac_mii_phy_probe()
513 if (!phy->features) { in emac_mii_phy_probe()
516 phy->features |= SUPPORTED_Autoneg; in emac_mii_phy_probe()
518 phy->features |= SUPPORTED_10baseT_Half; in emac_mii_phy_probe()
520 phy->features |= SUPPORTED_10baseT_Full; in emac_mii_phy_probe()
522 phy->features |= SUPPORTED_100baseT_Half; in emac_mii_phy_probe()
524 phy->features |= SUPPORTED_100baseT_Full; in emac_mii_phy_probe()
528 phy->features |= SUPPORTED_1000baseT_Full; in emac_mii_phy_probe()
[all …]
/drivers/media/rc/
Dir-lirc-codec.c344 unsigned long features; in ir_lirc_register() local
358 features = LIRC_CAN_REC_MODE2; in ir_lirc_register()
360 features |= LIRC_CAN_SEND_PULSE; in ir_lirc_register()
362 features |= LIRC_CAN_SET_TRANSMITTER_MASK; in ir_lirc_register()
364 features |= LIRC_CAN_SET_SEND_CARRIER; in ir_lirc_register()
366 features |= LIRC_CAN_SET_SEND_DUTY_CYCLE; in ir_lirc_register()
370 features |= LIRC_CAN_SET_REC_CARRIER | in ir_lirc_register()
374 features |= LIRC_CAN_USE_WIDEBAND_RECEIVER; in ir_lirc_register()
377 features |= LIRC_CAN_MEASURE_CARRIER; in ir_lirc_register()
380 features |= LIRC_CAN_SET_REC_TIMEOUT; in ir_lirc_register()
[all …]
/drivers/s390/virtio/
Dvirtio_ccw.c91 __u32 features; member
732 struct virtio_feature_desc *features; in virtio_ccw_get_features() local
741 features = kzalloc(sizeof(*features), GFP_DMA | GFP_KERNEL); in virtio_ccw_get_features()
742 if (!features) { in virtio_ccw_get_features()
747 features->index = 0; in virtio_ccw_get_features()
750 ccw->count = sizeof(*features); in virtio_ccw_get_features()
751 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features()
758 rc = le32_to_cpu(features->features); in virtio_ccw_get_features()
764 features->index = 1; in virtio_ccw_get_features()
767 ccw->count = sizeof(*features); in virtio_ccw_get_features()
[all …]
/drivers/i2c/busses/
Di2c-i801.c229 unsigned int features; member
414 if (priv->features & FEATURE_IRQ) { in i801_transaction()
588 if (priv->features & FEATURE_IRQ) { in i801_block_transaction_byte_by_byte()
683 } else if (!(priv->features & FEATURE_I2C_BLOCK_READ)) { in i801_block_transaction()
693 if ((priv->features & FEATURE_BLOCK_BUFFER) in i801_block_transaction()
727 hwpec = (priv->features & FEATURE_SMBUS_PEC) && (flags & I2C_CLIENT_PEC) in i801_access()
837 ((priv->features & FEATURE_SMBUS_PEC) ? I2C_FUNC_SMBUS_PEC : 0) | in i801_func()
838 ((priv->features & FEATURE_I2C_BLOCK_READ) ? in i801_func()
994 if (priv->features & FEATURE_IDF) in i801_probe_optional_slaves()
1191 if (!(priv->features & FEATURE_TCO)) in i801_add_tco()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_fw.c119 if (!(np->features & FE_LED0)) { in sym_fw1_patch()
163 if (!(np->features & FE_LED0)) { in sym_fw2_patch()
203 if (!(np->features & FE_C10)) { in sym_fw2_patch()
352 if (chip->features & FE_LDSTR) in sym_find_firmware()
355 else if (!(chip->features & (FE_PFEN|FE_NOPM|FE_DAC))) in sym_find_firmware()
436 !(np->features & FE_PFEN)) { in sym_fw_bind_script()
444 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
452 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
462 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
471 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
/drivers/net/phy/
Dvitesse.c232 .features = PHY_GBIT_FEATURES,
244 .features = PHY_GBIT_FEATURES,
256 .features = PHY_GBIT_FEATURES,
268 .features = PHY_GBIT_FEATURES,
280 .features = PHY_GBIT_FEATURES,
292 .features = PHY_GBIT_FEATURES,
305 .features = PHY_GBIT_FEATURES,
318 .features = PHY_GBIT_FEATURES,
Dbroadcom.c455 .features = PHY_GBIT_FEATURES |
468 .features = PHY_GBIT_FEATURES |
481 .features = PHY_GBIT_FEATURES |
494 .features = PHY_GBIT_FEATURES |
507 .features = PHY_GBIT_FEATURES |
520 .features = PHY_GBIT_FEATURES |
533 .features = PHY_GBIT_FEATURES |
546 .features = PHY_GBIT_FEATURES |
559 .features = PHY_GBIT_FEATURES |
572 .features = PHY_GBIT_FEATURES |
[all …]
Drealtek.c123 .features = PHY_BASIC_FEATURES,
132 .features = PHY_GBIT_FEATURES,
143 .features = PHY_GBIT_FEATURES,
156 .features = PHY_GBIT_FEATURES,
169 .features = PHY_GBIT_FEATURES,
/drivers/staging/media/lirc/
Dlirc_serial.c93 int features; member
131 .features = (LIRC_CAN_SET_SEND_DUTY_CYCLE |
135 .features = LIRC_CAN_REC_MODE2
147 .features = (LIRC_CAN_SET_SEND_DUTY_CYCLE |
159 .features = (LIRC_CAN_SET_SEND_DUTY_CYCLE |
171 .features = LIRC_CAN_REC_MODE2
183 .features = (LIRC_CAN_SET_SEND_DUTY_CYCLE |
187 .features = LIRC_CAN_REC_MODE2
829 if (!(hardware[type].features & LIRC_CAN_SEND_PULSE)) in lirc_write()
863 if (!(hardware[type].features&LIRC_CAN_SEND_MASK)) in lirc_ioctl()
[all …]
/drivers/isdn/hardware/eicon/
Ddiva.c580 dword features; in diva_xdi_display_adapter_features() local
585 features = IoAdapters[card]->Properties.Features; in diva_xdi_display_adapter_features()
589 (features & DI_FAX3) ? "Y" : "N")) in diva_xdi_display_adapter_features()
591 (features & DI_MODEM) ? "Y" : "N")) in diva_xdi_display_adapter_features()
593 (features & DI_POST) ? "Y" : "N")) in diva_xdi_display_adapter_features()
595 (features & DI_V110) ? "Y" : "N")) in diva_xdi_display_adapter_features()
597 (features & DI_V120) ? "Y" : "N")) in diva_xdi_display_adapter_features()
599 (features & DI_POTS) ? "Y" : "N")) in diva_xdi_display_adapter_features()
601 (features & DI_CODEC) ? "Y" : "N")) in diva_xdi_display_adapter_features()
603 (features & DI_MANAGE) ? "Y" : "N")) in diva_xdi_display_adapter_features()
[all …]
/drivers/net/
Ddummy.c150 dev->features |= NETIF_F_SG | NETIF_F_FRAGLIST; in dummy_setup()
151 dev->features |= NETIF_F_ALL_TSO | NETIF_F_UFO; in dummy_setup()
152 dev->features |= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX; in dummy_setup()
153 dev->features |= NETIF_F_GSO_ENCAP_ALL; in dummy_setup()
154 dev->hw_features |= dev->features; in dummy_setup()
155 dev->hw_enc_features |= dev->features; in dummy_setup()
/drivers/video/fbdev/omap2/dss/
Ddss_features.c44 const enum dss_feat_id *features; member
626 .features = omap2_dss_feat_list,
647 .features = omap3430_dss_feat_list,
671 .features = am35xx_dss_feat_list,
691 .features = am43xx_dss_feat_list,
711 .features = omap3630_dss_feat_list,
733 .features = omap4430_es1_0_dss_feat_list,
755 .features = omap4430_es2_0_1_2_dss_feat_list,
777 .features = omap4_dss_feat_list,
799 .features = omap5_dss_feat_list,
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_fcoe.c82 netdev->features |= NETIF_F_FCOE_CRC; in cxgb_fcoe_enable()
84 netdev->features |= NETIF_F_FCOE_MTU; in cxgb_fcoe_enable()
113 netdev->features &= ~NETIF_F_FCOE_CRC; in cxgb_fcoe_disable()
115 netdev->features &= ~NETIF_F_FCOE_MTU; in cxgb_fcoe_disable()
/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c88 gro_enabled = priv->dev->features & NETIF_F_GRO; in mlx4_en_test_loopback()
90 mlx4_en_update_loopback_state(priv->dev, priv->dev->features); in mlx4_en_test_loopback()
91 priv->dev->features &= ~NETIF_F_GRO; in mlx4_en_test_loopback()
115 priv->dev->features |= NETIF_F_GRO; in mlx4_en_test_loopback()
117 mlx4_en_update_loopback_state(priv->dev, priv->dev->features); in mlx4_en_test_loopback()
/drivers/rtc/
Drtc-m41t80.c89 u8 features; member
196 if (clientdata->features & M41T80_FEATURE_BL) { in m41t80_rtc_proc()
248 if (!(clientdata->features & M41T80_FEATURE_SQ)) in m41t80_sysfs_show_sqwfreq()
252 if (clientdata->features & M41T80_FEATURE_SQ_ALT) in m41t80_sysfs_show_sqwfreq()
278 if (!(clientdata->features & M41T80_FEATURE_SQ)) in m41t80_sysfs_set_sqwfreq()
297 if (clientdata->features & M41T80_FEATURE_SQ_ALT) in m41t80_sysfs_set_sqwfreq()
397 if (clientdata->features & M41T80_FEATURE_WD) in wdt_ping()
650 clientdata->features = id->driver_data; in m41t80_probe()
664 if (clientdata->features & M41T80_FEATURE_HT) { in m41t80_probe()
699 if (clientdata->features & M41T80_FEATURE_HT) { in m41t80_probe()
[all …]
/drivers/isdn/mISDN/
Ddsp_cmx.c414 if (dsp->features.pcm_banks < 1) in dsp_cmx_hardware()
463 if (finddsp->features.pcm_id == dsp->features.pcm_id) { in dsp_cmx_hardware()
473 ii = dsp->features.pcm_slots; in dsp_cmx_hardware()
514 same_hfc = member->dsp->features.hfc_id; in dsp_cmx_hardware()
515 same_pcm = member->dsp->features.pcm_id; in dsp_cmx_hardware()
629 if (member->dsp->features.pcm_id < 0) { in dsp_cmx_hardware()
638 if (member->dsp->features.pcm_id != same_pcm) { in dsp_cmx_hardware()
648 if (same_hfc != member->dsp->features.hfc_id) in dsp_cmx_hardware()
714 if (member->dsp->features.pcm_banks > 1 && in dsp_cmx_hardware()
715 nextm->dsp->features.pcm_banks > 1 && in dsp_cmx_hardware()
[all …]

12345678910>>...25