/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 141 pfdev->features.revision >= 0x2000) in panfrost_gpu_init_quirks() 144 pfdev->features.coherency_features == COHERENCY_ACE) in panfrost_gpu_init_quirks() 162 u64 features; member 174 .features = hw_features_##_name, \ 221 pfdev->features.l2_features = gpu_read(pfdev, GPU_L2_FEATURES); in panfrost_gpu_init_features() 222 pfdev->features.core_features = gpu_read(pfdev, GPU_CORE_FEATURES); in panfrost_gpu_init_features() 223 pfdev->features.tiler_features = gpu_read(pfdev, GPU_TILER_FEATURES); in panfrost_gpu_init_features() 224 pfdev->features.mem_features = gpu_read(pfdev, GPU_MEM_FEATURES); in panfrost_gpu_init_features() 225 pfdev->features.mmu_features = gpu_read(pfdev, GPU_MMU_FEATURES); in panfrost_gpu_init_features() 226 pfdev->features.thread_features = gpu_read(pfdev, GPU_THREAD_FEATURES); in panfrost_gpu_init_features() [all …]
|
/drivers/hid/ |
D | wacom_wac.c | 172 struct wacom_features *features = &wacom->features; in wacom_pl_irq() local 210 if (features->pressure_max > 255) in wacom_pl_irq() 212 pressure += (features->pressure_max + 1) / 2; in wacom_pl_irq() 343 struct wacom_features *features = &wacom->features; in wacom_graphire_irq() local 352 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq() 393 if (features->type == GRAPHIRE_BT) in wacom_graphire_irq() 405 if (features->type == WACOM_G4 || in wacom_graphire_irq() 406 features->type == WACOM_MO) { in wacom_graphire_irq() 409 } else if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq() 438 switch (features->type) { in wacom_graphire_irq() [all …]
|
D | wacom_sys.c | 95 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_serial_enforce() local 100 if (wacom_wac->serial[0] || !(features->quirks & WACOM_QUIRK_TOOLSERIAL)) in wacom_wac_pen_serial_enforce() 163 if (wacom->wacom_wac.features.type == BOOTLOADER) in wacom_raw_event() 218 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_hid_usage_quirk() local 240 if (features->type == HID_GENERIC && in wacom_hid_usage_quirk() 276 features->quirks |= WACOM_QUIRK_AESPEN; in wacom_hid_usage_quirk() 301 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_feature_mapping() local 316 if (!features->touch_max) { in wacom_feature_mapping() 325 if (ret == n && features->type == HID_GENERIC) { in wacom_feature_mapping() 328 } else if (ret == 2 && features->type != HID_GENERIC) { in wacom_feature_mapping() [all …]
|
/drivers/net/ethernet/atheros/atlx/ |
D | atlx.c | 208 static void __atlx_vlan_mode(netdev_features_t features, u32 *ctrl) in __atlx_vlan_mode() argument 210 if (features & NETIF_F_HW_VLAN_CTAG_RX) { in __atlx_vlan_mode() 220 netdev_features_t features) in atlx_vlan_mode() argument 229 __atlx_vlan_mode(features, &ctrl); in atlx_vlan_mode() 237 atlx_vlan_mode(adapter->netdev, adapter->netdev->features); in atlx_restore_vlan() 241 netdev_features_t features) in atlx_fix_features() argument 247 if (features & NETIF_F_HW_VLAN_CTAG_RX) in atlx_fix_features() 248 features |= NETIF_F_HW_VLAN_CTAG_TX; in atlx_fix_features() 250 features &= ~NETIF_F_HW_VLAN_CTAG_TX; in atlx_fix_features() 252 return features; in atlx_fix_features() [all …]
|
/drivers/input/touchscreen/ |
D | wacom_i2c.c | 41 struct wacom_features *features) in wacom_query_device() argument 75 features->x_max = get_unaligned_le16(&data[3]); in wacom_query_device() 76 features->y_max = get_unaligned_le16(&data[5]); in wacom_query_device() 77 features->pressure_max = get_unaligned_le16(&data[11]); in wacom_query_device() 78 features->fw_version = get_unaligned_le16(&data[13]); in wacom_query_device() 82 features->x_max, features->y_max, in wacom_query_device() 83 features->pressure_max, features->fw_version); in wacom_query_device() 153 struct wacom_features features = { 0 }; in wacom_i2c_probe() local 161 error = wacom_query_device(client, &features); in wacom_i2c_probe() 180 input->id.version = features.fw_version; in wacom_i2c_probe() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 340 req->features = BIT_ULL(NPC_DMAC); in otx2_do_add_macfilter() 506 req->features |= BIT_ULL(NPC_SIP_IPV4); in otx2_prepare_ipv4_flow() 513 req->features |= BIT_ULL(NPC_DIP_IPV4); in otx2_prepare_ipv4_flow() 518 req->features |= BIT_ULL(NPC_TOS); in otx2_prepare_ipv4_flow() 523 req->features |= BIT_ULL(NPC_IPPROTO_ICMP); in otx2_prepare_ipv4_flow() 526 req->features |= BIT_ULL(NPC_IPPROTO_TCP); in otx2_prepare_ipv4_flow() 529 req->features |= BIT_ULL(NPC_IPPROTO_UDP); in otx2_prepare_ipv4_flow() 532 req->features |= BIT_ULL(NPC_IPPROTO_SCTP); in otx2_prepare_ipv4_flow() 535 req->features |= BIT_ULL(NPC_IPPROTO_AH); in otx2_prepare_ipv4_flow() 538 req->features |= BIT_ULL(NPC_IPPROTO_ESP); in otx2_prepare_ipv4_flow() [all …]
|
/drivers/mfd/ |
D | twl-core.c | 662 unsigned num_consumers, unsigned long features) in add_regulator_linked() argument 679 tmp->features |= features; in add_regulator_linked() 682 drv_data.features = features; in add_regulator_linked() 696 unsigned long features) in add_regulator() argument 698 return add_regulator_linked(num, pdata, NULL, 0, features); in add_regulator() 709 unsigned long features) in add_children() argument 793 features); in add_children() 799 features); in add_children() 805 features); in add_children() 854 features); in add_children() [all …]
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_drv.c | 39 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 61 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 82 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 108 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 137 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 166 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 192 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 221 .features = RCAR_DU_FEATURE_INTERLACED 242 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 272 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK [all …]
|
/drivers/scsi/aic7xxx/ |
D | aic7xxx_pci.c | 788 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config() 804 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config() 821 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config() 859 if ((ahc->features & AHC_ULTRA) != 0) { in ahc_pci_config() 865 ahc->features &= ~AHC_ULTRA; in ahc_pci_config() 877 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config() 935 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config() 946 if ((ahc->features & AHC_MULTI_FUNC) != 0) in ahc_pci_config() 949 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config() 981 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_ext_scbram_present() [all …]
|
/drivers/i2c/busses/ |
D | i2c-i801.c | 262 unsigned int features; member 352 if (priv->features & FEATURE_SMBUS_PEC) { in i801_check_pre() 424 if ((priv->features & FEATURE_SMBUS_PEC) && in i801_check_post() 489 if (priv->features & FEATURE_IRQ) { in i801_transaction() 633 if (priv->features & FEATURE_HOST_NOTIFY) { in i801_isr() 692 if (priv->features & FEATURE_IRQ) { in i801_block_transaction_byte_by_byte() 770 } else if (!(priv->features & FEATURE_I2C_BLOCK_READ)) { in i801_block_transaction() 780 if ((priv->features & FEATURE_BLOCK_BUFFER) && in i801_block_transaction() 816 hwpec = (priv->features & FEATURE_SMBUS_PEC) && (flags & I2C_CLIENT_PEC) in i801_access() 946 ((priv->features & FEATURE_SMBUS_PEC) ? I2C_FUNC_SMBUS_PEC : 0) | in i801_func() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_fs.c | 297 u64 *features; in npc_handle_multi_layer_fields() local 302 features = &mcam->rx_features; in npc_handle_multi_layer_fields() 306 features = &mcam->tx_features; in npc_handle_multi_layer_fields() 359 *features |= BIT_ULL(NPC_ETYPE); in npc_handle_multi_layer_fields() 383 *features |= BIT_ULL(NPC_OUTER_VID); in npc_handle_multi_layer_fields() 457 u64 *features = &mcam->rx_features; in npc_set_features() local 462 features = &mcam->tx_features; in npc_set_features() 466 *features |= BIT_ULL(hdr); in npc_set_features() 474 if (*features & tcp_udp_sctp) { in npc_set_features() 476 *features &= ~tcp_udp_sctp; in npc_set_features() [all …]
|
/drivers/input/tablet/ |
D | hanwang.c | 56 const struct hanwang_features *features; member 112 enum hanwang_tablet_type type = hanwang->features->type; in hanwang_parse_packet() 200 hanwang->features->pid); in hanwang_parse_packet() 307 hanwang->features = &features_array[i]; in get_features() 340 hanwang->data = usb_alloc_coherent(dev, hanwang->features->pkg_len, in hanwang_probe() 359 strlcpy(hanwang->name, hanwang->features->name, sizeof(hanwang->name)); in hanwang_probe() 383 0, hanwang->features->max_x, 4, 0); in hanwang_probe() 385 0, hanwang->features->max_y, 4, 0); in hanwang_probe() 387 0, hanwang->features->max_tilt_x, 0, 0); in hanwang_probe() 389 0, hanwang->features->max_tilt_y, 0, 0); in hanwang_probe() [all …]
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 140 netdev_features_t features) in aq_ndev_set_features() argument 142 bool is_vlan_tx_insert = !!(features & NETIF_F_HW_VLAN_CTAG_TX); in aq_ndev_set_features() 143 bool is_vlan_rx_strip = !!(features & NETIF_F_HW_VLAN_CTAG_RX); in aq_ndev_set_features() 152 if (!(features & NETIF_F_NTUPLE)) { in aq_ndev_set_features() 153 if (aq_nic->ndev->features & NETIF_F_NTUPLE) { in aq_ndev_set_features() 159 if (!(features & NETIF_F_HW_VLAN_CTAG_FILTER)) { in aq_ndev_set_features() 160 if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) { in aq_ndev_set_features() 167 aq_cfg->features = features; in aq_ndev_set_features() 170 is_lro = features & NETIF_F_LRO; in aq_ndev_set_features() 178 if ((aq_nic->ndev->features ^ features) & NETIF_F_RXCSUM) { in aq_ndev_set_features()
|
/drivers/s390/virtio/ |
D | virtio_ccw.c | 102 __le32 features; member 737 struct virtio_feature_desc *features; in virtio_ccw_get_features() local 746 features = ccw_device_dma_zalloc(vcdev->cdev, sizeof(*features)); in virtio_ccw_get_features() 747 if (!features) { in virtio_ccw_get_features() 752 features->index = 0; in virtio_ccw_get_features() 755 ccw->count = sizeof(*features); in virtio_ccw_get_features() 756 ccw->cda = (__u32)(unsigned long)features; in virtio_ccw_get_features() 763 rc = le32_to_cpu(features->features); in virtio_ccw_get_features() 769 features->index = 1; in virtio_ccw_get_features() 772 ccw->count = sizeof(*features); in virtio_ccw_get_features() [all …]
|
/drivers/vhost/ |
D | test.c | 248 static int vhost_test_set_features(struct vhost_test *n, u64 features) in vhost_test_set_features() argument 253 if ((features & (1 << VHOST_F_LOG_ALL)) && in vhost_test_set_features() 260 vq->acked_features = features; in vhost_test_set_features() 326 u64 features; in vhost_test_ioctl() local 338 features = VHOST_FEATURES; in vhost_test_ioctl() 339 if (copy_to_user(featurep, &features, sizeof features)) in vhost_test_ioctl() 344 if (copy_from_user(&features, featurep, sizeof features)) in vhost_test_ioctl() 347 if (features & ~VHOST_FEATURES) in vhost_test_ioctl() 350 return vhost_test_set_features(n, features); in vhost_test_ioctl()
|
D | vsock.c | 829 static int vhost_vsock_set_features(struct vhost_vsock *vsock, u64 features) in vhost_vsock_set_features() argument 834 if (features & ~VHOST_VSOCK_FEATURES) in vhost_vsock_set_features() 838 if ((features & (1 << VHOST_F_LOG_ALL)) && in vhost_vsock_set_features() 843 if ((features & (1ULL << VIRTIO_F_ACCESS_PLATFORM))) { in vhost_vsock_set_features() 848 if (features & (1ULL << VIRTIO_VSOCK_F_SEQPACKET)) in vhost_vsock_set_features() 854 vq->acked_features = features; in vhost_vsock_set_features() 871 u64 features; in vhost_vsock_dev_ioctl() local 888 features = VHOST_VSOCK_FEATURES; in vhost_vsock_dev_ioctl() 889 if (copy_to_user(argp, &features, sizeof(features))) in vhost_vsock_dev_ioctl() 893 if (copy_from_user(&features, argp, sizeof(features))) in vhost_vsock_dev_ioctl() [all …]
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 148 if (phy->features & in genmii_setup_aneg() 228 if (phy->features & in genmii_read_link() 539 phy->features = def->features; in emac_mii_phy_probe() 540 if (!phy->features) { in emac_mii_phy_probe() 543 phy->features |= SUPPORTED_Autoneg; in emac_mii_phy_probe() 545 phy->features |= SUPPORTED_10baseT_Half; in emac_mii_phy_probe() 547 phy->features |= SUPPORTED_10baseT_Full; in emac_mii_phy_probe() 549 phy->features |= SUPPORTED_100baseT_Half; in emac_mii_phy_probe() 551 phy->features |= SUPPORTED_100baseT_Full; in emac_mii_phy_probe() 555 phy->features |= SUPPORTED_1000baseT_Full; in emac_mii_phy_probe() [all …]
|
/drivers/clk/sunxi-ng/ |
D | ccu_frac.c | 16 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_is_enabled() 28 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_enable() 43 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_disable() 56 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_has_rate() 69 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_read_rate() 90 if (!(common->features & CCU_FEATURE_FRACTIONAL)) in ccu_frac_helper_set_rate()
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_catalog.c | 262 .features = 0, 287 .features = 0, 304 .features = 0, 350 .features = BIT(DPU_CTL_SPLIT_DISPLAY), 356 .features = BIT(DPU_CTL_SPLIT_DISPLAY), 362 .features = 0, 368 .features = 0, 374 .features = 0, 383 .features = BIT(DPU_CTL_ACTIVE_CFG), 389 .features = BIT(DPU_CTL_ACTIVE_CFG), [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | rx_res.c | 12 enum mlx5e_rx_res_features features; member 43 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init_def() 72 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init() 283 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_channels_init() 325 if (!(res->features & MLX5E_RX_RES_FEATURE_XSK)) in mlx5e_rx_res_channels_init() 386 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_ptp_init() 426 if (!(res->features & MLX5E_RX_RES_FEATURE_XSK)) in mlx5e_rx_res_channels_destroy() 443 enum mlx5e_rx_res_features features, unsigned int max_nch, in mlx5e_rx_res_init() argument 450 res->features = features; in mlx5e_rx_res_init() 498 WARN_ON(!(res->features & MLX5E_RX_RES_FEATURE_XSK)); in mlx5e_rx_res_get_tirn_xsk() [all …]
|
/drivers/gpu/drm/amd/display/dc/dcn301/ |
D | dcn301_dio_link_encoder.c | 103 enc10->base.features = *enc_features; in dcn301_link_encoder_construct() 170 enc10->base.features.flags.bits.HDMI_6GB_EN = 1; in dcn301_link_encoder_construct() 177 enc10->base.features.flags.bits.IS_HBR2_CAPABLE = in dcn301_link_encoder_construct() 179 enc10->base.features.flags.bits.IS_HBR3_CAPABLE = in dcn301_link_encoder_construct() 181 enc10->base.features.flags.bits.HDMI_6GB_EN = bp_cap_info.HDMI_6GB_EN; in dcn301_link_encoder_construct() 182 enc10->base.features.flags.bits.DP_IS_USB_C = in dcn301_link_encoder_construct() 190 enc10->base.features.flags.bits.HDMI_6GB_EN = 0; in dcn301_link_encoder_construct()
|
/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi_phy.c | 28 if (phy->features->bist_ctrl) in hdmi_phy_dump() 138 if (phy->features->bist_ctrl) in hdmi_phy_configure() 147 else if (hfbitclk / 10 < phy->features->max_phy) in hdmi_phy_configure() 162 if (phy->features->ldo_voltage) in hdmi_phy_configure() 188 phy->features = &omap44xx_phy_feats; in hdmi_phy_init() 190 phy->features = &omap54xx_phy_feats; in hdmi_phy_init()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_fw.c | 106 if (!(np->features & FE_LED0)) { in sym_fw1_patch() 150 if (!(np->features & FE_LED0)) { in sym_fw2_patch() 190 if (!(np->features & FE_C10)) { in sym_fw2_patch() 335 if (chip->features & FE_LDSTR) in sym_find_firmware() 338 else if (!(chip->features & (FE_PFEN|FE_NOPM|FE_DAC))) in sym_find_firmware() 419 !(np->features & FE_PFEN)) { in sym_fw_bind_script() 427 if (!(np->features & FE_WIDE)) in sym_fw_bind_script() 435 if (!(np->features & FE_WIDE)) in sym_fw_bind_script() 445 if (!(np->features & FE_WIDE)) in sym_fw_bind_script() 454 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
|
/drivers/s390/block/ |
D | dasd_devmap.c | 51 unsigned short features; member 184 int features, len, rc; in dasd_feature_list() local 186 features = 0; in dasd_feature_list() 196 features |= DASD_FEATURE_READONLY; in dasd_feature_list() 198 features |= DASD_FEATURE_USEDIAG; in dasd_feature_list() 200 features |= DASD_FEATURE_USERAW; in dasd_feature_list() 202 features |= DASD_FEATURE_ERPLOG; in dasd_feature_list() 204 features |= DASD_FEATURE_FAILFAST; in dasd_feature_list() 216 return rc ? : features; in dasd_feature_list() 314 int features; in dasd_parse_range() local [all …]
|
/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_dio_link_encoder.c | 116 enc10->base.features = *enc_features; in dcn30_link_encoder_construct() 183 enc10->base.features.flags.bits.HDMI_6GB_EN = 1; in dcn30_link_encoder_construct() 190 enc10->base.features.flags.bits.IS_HBR2_CAPABLE = in dcn30_link_encoder_construct() 192 enc10->base.features.flags.bits.IS_HBR3_CAPABLE = in dcn30_link_encoder_construct() 194 enc10->base.features.flags.bits.HDMI_6GB_EN = bp_cap_info.HDMI_6GB_EN; in dcn30_link_encoder_construct() 195 enc10->base.features.flags.bits.DP_IS_USB_C = in dcn30_link_encoder_construct() 203 enc10->base.features.flags.bits.HDMI_6GB_EN = 0; in dcn30_link_encoder_construct()
|