/Linux-v5.4/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 129 pfdev->features.revision >= 0x2000) in panfrost_gpu_init_quirks() 132 pfdev->features.coherency_features == COHERENCY_ACE) in panfrost_gpu_init_quirks() 146 u64 features; member 158 .features = hw_features_##_name, \ 205 pfdev->features.l2_features = gpu_read(pfdev, GPU_L2_FEATURES); in panfrost_gpu_init_features() 206 pfdev->features.core_features = gpu_read(pfdev, GPU_CORE_FEATURES); in panfrost_gpu_init_features() 207 pfdev->features.tiler_features = gpu_read(pfdev, GPU_TILER_FEATURES); in panfrost_gpu_init_features() 208 pfdev->features.mem_features = gpu_read(pfdev, GPU_MEM_FEATURES); in panfrost_gpu_init_features() 209 pfdev->features.mmu_features = gpu_read(pfdev, GPU_MMU_FEATURES); in panfrost_gpu_init_features() 210 pfdev->features.thread_features = gpu_read(pfdev, GPU_THREAD_FEATURES); in panfrost_gpu_init_features() [all …]
|
/Linux-v5.4/arch/arm/mach-omap2/ |
D | clock.c | 86 struct ti_clk_features features = { 0 }; in ti_clk_init_features() local 89 features.fint_min = OMAP3430_DPLL_FINT_BAND1_MIN; in ti_clk_init_features() 90 features.fint_max = OMAP3430_DPLL_FINT_BAND2_MAX; in ti_clk_init_features() 91 features.fint_band1_max = OMAP3430_DPLL_FINT_BAND1_MAX; in ti_clk_init_features() 92 features.fint_band2_min = OMAP3430_DPLL_FINT_BAND2_MIN; in ti_clk_init_features() 94 features.fint_min = OMAP3PLUS_DPLL_FINT_MIN; in ti_clk_init_features() 95 features.fint_max = OMAP3PLUS_DPLL_FINT_MAX; in ti_clk_init_features() 100 features.dpll_bypass_vals |= in ti_clk_init_features() 104 features.dpll_bypass_vals |= in ti_clk_init_features() 109 features.dpll_bypass_vals |= in ti_clk_init_features() [all …]
|
/Linux-v5.4/drivers/hid/ |
D | wacom_wac.c | 134 struct wacom_features *features = &wacom->features; in wacom_pl_irq() local 172 if (features->pressure_max > 255) in wacom_pl_irq() 174 pressure += (features->pressure_max + 1) / 2; in wacom_pl_irq() 305 struct wacom_features *features = &wacom->features; in wacom_graphire_irq() local 314 if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq() 355 if (features->type == GRAPHIRE_BT) in wacom_graphire_irq() 367 if (features->type == WACOM_G4 || in wacom_graphire_irq() 368 features->type == WACOM_MO) { in wacom_graphire_irq() 371 } else if (features->type == GRAPHIRE_BT) { in wacom_graphire_irq() 400 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() 215 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_hid_usage_quirk() local 237 if (features->type == HID_GENERIC && in wacom_hid_usage_quirk() 273 features->quirks |= WACOM_QUIRK_AESPEN; in wacom_hid_usage_quirk() 298 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_feature_mapping() local 313 if (!features->touch_max) { in wacom_feature_mapping() 326 features->touch_max = 16; in wacom_feature_mapping() 330 features->touch_max); in wacom_feature_mapping() 429 struct wacom_features *features = &wacom->wacom_wac.features; in wacom_usage_mapping() local [all …]
|
/Linux-v5.4/arch/arm/mach-s3c24xx/ |
D | mach-mini2440.c | 602 struct mini2440_features_t *features, in mini2440_parse_features() argument 607 features->count = 0; in mini2440_parse_features() 608 features->done = 0; in mini2440_parse_features() 609 features->lcd_index = -1; in mini2440_parse_features() 616 if (features->done & FEATURE_SCREEN) { in mini2440_parse_features() 626 features->optional[features->count++] = in mini2440_parse_features() 628 features->lcd_index = li; in mini2440_parse_features() 631 features->done |= FEATURE_SCREEN; in mini2440_parse_features() 634 if (features->done & FEATURE_BACKLIGHT) in mini2440_parse_features() 638 features->optional[features->count++] = in mini2440_parse_features() [all …]
|
/Linux-v5.4/arch/arm/mm/ |
D | cache-tauros2.c | 183 static void enable_extra_feature(unsigned int features) in enable_extra_feature() argument 189 if (features & CACHE_TAUROS2_PREFETCH_ON) in enable_extra_feature() 194 (features & CACHE_TAUROS2_PREFETCH_ON) in enable_extra_feature() 197 if (features & CACHE_TAUROS2_LINEFILL_BURST8) in enable_extra_feature() 202 (features & CACHE_TAUROS2_LINEFILL_BURST8) in enable_extra_feature() 208 static void __init tauros2_internal_init(unsigned int features) in tauros2_internal_init() argument 212 enable_extra_feature(features); in tauros2_internal_init() 285 void __init tauros2_init(unsigned int features) in tauros2_init() argument 300 features = 0; in tauros2_init() 302 features = f; in tauros2_init() [all …]
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | kvm.c | 405 u32 *features = data; in kvm_map_magic_page() local 415 *features = out[0]; in kvm_map_magic_page() 418 static void __init kvm_check_ins(u32 *inst, u32 features) in kvm_check_ins() argument 460 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() 464 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() 468 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() 472 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() 476 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() 480 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() 484 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) in kvm_check_ins() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/input/touchscreen/ |
D | wacom_i2c.c | 42 struct wacom_features *features) in wacom_query_device() argument 76 features->x_max = get_unaligned_le16(&data[3]); in wacom_query_device() 77 features->y_max = get_unaligned_le16(&data[5]); in wacom_query_device() 78 features->pressure_max = get_unaligned_le16(&data[11]); in wacom_query_device() 79 features->fw_version = get_unaligned_le16(&data[13]); in wacom_query_device() 83 features->x_max, features->y_max, in wacom_query_device() 84 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() 178 input->id.version = features.fw_version; in wacom_i2c_probe() [all …]
|
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 113 netdev_features_t features) in aq_ndev_set_features() argument 115 bool is_vlan_rx_strip = !!(features & NETIF_F_HW_VLAN_CTAG_RX); in aq_ndev_set_features() 116 bool is_vlan_tx_insert = !!(features & NETIF_F_HW_VLAN_CTAG_TX); in aq_ndev_set_features() 125 if (!(features & NETIF_F_NTUPLE)) { in aq_ndev_set_features() 126 if (aq_nic->ndev->features & NETIF_F_NTUPLE) { in aq_ndev_set_features() 132 if (!(features & NETIF_F_HW_VLAN_CTAG_FILTER)) { in aq_ndev_set_features() 133 if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) { in aq_ndev_set_features() 140 aq_cfg->features = features; in aq_ndev_set_features() 143 is_lro = features & NETIF_F_LRO; in aq_ndev_set_features() 151 if ((aq_nic->ndev->features ^ features) & NETIF_F_RXCSUM) { in aq_ndev_set_features()
|
/Linux-v5.4/arch/arm/mach-s3c64xx/ |
D | mach-real6410.c | 251 struct real6410_features_t *features, in real6410_parse_features() argument 256 features->done = 0; in real6410_parse_features() 257 features->lcd_index = 0; in real6410_parse_features() 264 if (features->done & FEATURE_SCREEN) { in real6410_parse_features() 273 features->lcd_index = li; in real6410_parse_features() 276 features->done |= FEATURE_SCREEN; in real6410_parse_features() 285 struct real6410_features_t features = { 0 }; in real6410_machine_init() local 291 real6410_parse_features(&features, real6410_features_str); in real6410_machine_init() 294 real6410_lcd_pdata[features.lcd_index].win[0]->xres, in real6410_machine_init() 295 real6410_lcd_pdata[features.lcd_index].win[0]->yres); in real6410_machine_init() [all …]
|
D | mach-mini6410.c | 281 struct mini6410_features_t *features, in mini6410_parse_features() argument 286 features->done = 0; in mini6410_parse_features() 287 features->lcd_index = 0; in mini6410_parse_features() 294 if (features->done & FEATURE_SCREEN) { in mini6410_parse_features() 303 features->lcd_index = li; in mini6410_parse_features() 306 features->done |= FEATURE_SCREEN; in mini6410_parse_features() 315 struct mini6410_features_t features = { 0 }; in mini6410_machine_init() local 321 mini6410_parse_features(&features, mini6410_features_str); in mini6410_machine_init() 324 mini6410_lcd_pdata[features.lcd_index].win[0]->xres, in mini6410_machine_init() 325 mini6410_lcd_pdata[features.lcd_index].win[0]->yres); in mini6410_machine_init() [all …]
|
/Linux-v5.4/net/ipv4/ |
D | esp4_offload.c | 111 netdev_features_t features) in xfrm4_tunnel_gso_segment() argument 114 return skb_mac_gso_segment(skb, features); in xfrm4_tunnel_gso_segment() 119 netdev_features_t features) in xfrm4_transport_gso_segment() argument 128 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_transport_gso_segment() 135 netdev_features_t features) in xfrm4_outer_mode_gso_segment() argument 139 return xfrm4_tunnel_gso_segment(x, skb, features); in xfrm4_outer_mode_gso_segment() 141 return xfrm4_transport_gso_segment(x, skb, features); in xfrm4_outer_mode_gso_segment() 148 netdev_features_t features) in esp4_gso_segment() argument 153 netdev_features_t esp_features = features; in esp4_gso_segment() 179 !(features & NETIF_F_HW_ESP)) || x->xso.dev != skb->dev) in esp4_gso_segment() [all …]
|
/Linux-v5.4/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 …]
|
D | cros_ec_dev.c | 120 if (ec->features[0] == -1U && ec->features[1] == -1U) { in cros_ec_check_features() 122 msg = kzalloc(sizeof(*msg) + sizeof(ec->features), GFP_KERNEL); in cros_ec_check_features() 127 msg->insize = sizeof(ec->features); in cros_ec_check_features() 133 memset(ec->features, 0, sizeof(ec->features)); in cros_ec_check_features() 135 memcpy(ec->features, msg->data, sizeof(ec->features)); in cros_ec_check_features() 139 ec->features[0], ec->features[1]); in cros_ec_check_features() 144 return ec->features[feature / 32] & EC_FEATURE_MASK_0(feature); in cros_ec_check_features() 354 ec->features[0] = -1U; /* Not cached yet */ in ec_device_probe() 355 ec->features[1] = -1U; /* Not cached yet */ in ec_device_probe()
|
/Linux-v5.4/net/ipv6/ |
D | esp6_offload.c | 138 netdev_features_t features) in xfrm6_tunnel_gso_segment() argument 141 return skb_mac_gso_segment(skb, features); in xfrm6_tunnel_gso_segment() 146 netdev_features_t features) in xfrm6_transport_gso_segment() argument 155 segs = ops->callbacks.gso_segment(skb, features); in xfrm6_transport_gso_segment() 162 netdev_features_t features) in xfrm6_outer_mode_gso_segment() argument 166 return xfrm6_tunnel_gso_segment(x, skb, features); in xfrm6_outer_mode_gso_segment() 168 return xfrm6_transport_gso_segment(x, skb, features); in xfrm6_outer_mode_gso_segment() 175 netdev_features_t features) in esp6_gso_segment() argument 180 netdev_features_t esp_features = features; in esp6_gso_segment() 205 if (!(features & NETIF_F_HW_ESP) || x->xso.dev != skb->dev) in esp6_gso_segment() [all …]
|
/Linux-v5.4/drivers/gpu/drm/rcar-du/ |
D | rcar_du_drv.c | 38 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 60 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 81 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 107 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 136 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 162 .features = RCAR_DU_FEATURE_INTERLACED 183 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 212 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 235 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK 254 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK [all …]
|
/Linux-v5.4/arch/arm64/include/asm/ |
D | cpufeature.h | 427 cpuid_feature_extract_signed_field_width(u64 features, int field, int width) in cpuid_feature_extract_signed_field_width() argument 429 return (s64)(features << (64 - width - field)) >> (64 - width); in cpuid_feature_extract_signed_field_width() 433 cpuid_feature_extract_signed_field(u64 features, int field) in cpuid_feature_extract_signed_field() argument 435 return cpuid_feature_extract_signed_field_width(features, field, 4); in cpuid_feature_extract_signed_field() 439 cpuid_feature_extract_unsigned_field_width(u64 features, int field, int width) in cpuid_feature_extract_unsigned_field_width() argument 441 return (u64)(features << (64 - width - field)) >> (64 - width); in cpuid_feature_extract_unsigned_field_width() 445 cpuid_feature_extract_unsigned_field(u64 features, int field) in cpuid_feature_extract_unsigned_field() argument 447 return cpuid_feature_extract_unsigned_field_width(features, field, 4); in cpuid_feature_extract_unsigned_field() 461 cpuid_feature_extract_field_width(u64 features, int field, int width, bool sign) in cpuid_feature_extract_field_width() argument 464 cpuid_feature_extract_signed_field_width(features, field, width) : in cpuid_feature_extract_field_width() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/Documentation/networking/ |
D | netdev-features.txt | 1 Netdev features mess and how to get out from it alive 13 verbatim. Today's devices add multiple features and bugs (read: offloads) 16 are commonly referred to as netdev features in Linux kernel world. 18 There are currently three sets of features relevant to the driver, and 21 1. netdev->hw_features set contains features whose state may possibly 26 2. netdev->features set contains features which are currently enabled 30 3. netdev->vlan_features set contains features whose state is inherited 31 by child VLAN devices (limits netdev->features set). This is currently 42 Part II: Controlling enabled features 45 When current feature set (netdev->features) is to be changed, new set [all …]
|
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-i801.c | 259 unsigned int features; member 349 if (priv->features & FEATURE_SMBUS_PEC) { in i801_check_pre() 423 if ((priv->features & FEATURE_SMBUS_PEC) && in i801_check_post() 495 if (priv->features & FEATURE_IRQ) { in i801_transaction() 651 if (priv->features & FEATURE_HOST_NOTIFY) { in i801_isr() 711 if (priv->features & FEATURE_IRQ) { in i801_block_transaction_byte_by_byte() 801 } else if (!(priv->features & FEATURE_I2C_BLOCK_READ)) { in i801_block_transaction() 821 if ((priv->features & FEATURE_BLOCK_BUFFER) in i801_block_transaction() 858 hwpec = (priv->features & FEATURE_SMBUS_PEC) && (flags & I2C_CLIENT_PEC) in i801_access() 986 ((priv->features & FEATURE_SMBUS_PEC) ? I2C_FUNC_SMBUS_PEC : 0) | in i801_func() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/Documentation/devicetree/bindings/powerpc/ |
D | ibm,powerpc-cpu-features.txt | 3 (skiboot/doc/device-tree/ibm,powerpc-cpu-features/binding.txt) 5 There is more complete overview and documentation of features in that 9 ibm,powerpc-cpu-features binding 12 This device tree binding describes CPU features available to software, with 16 found in design.txt, which also points to documentation of specific features. 19 /cpus/ibm,powerpc-cpu-features node binding 22 Node: ibm,powerpc-cpu-features 26 The node name must be "ibm,powerpc-cpu-features". 38 Definition: "ibm,powerpc-cpu-features" 66 /cpus/ibm,powerpc-cpu-features/example-feature node bindings [all …]
|
/Linux-v5.4/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() 273 u64 features; in vhost_test_ioctl() local 281 features = VHOST_FEATURES; in vhost_test_ioctl() 282 if (copy_to_user(featurep, &features, sizeof features)) in vhost_test_ioctl() 287 if (copy_from_user(&features, featurep, sizeof features)) in vhost_test_ioctl() 290 if (features & ~VHOST_FEATURES) in vhost_test_ioctl() 293 return vhost_test_set_features(n, features); in vhost_test_ioctl()
|
/Linux-v5.4/tools/virtio/ |
D | virtio_test.c | 65 unsigned long long features = dev->vdev.features; in vhost_vq_setup() local 73 r = ioctl(dev->control, VHOST_SET_FEATURES, &features); in vhost_vq_setup() 114 static void vdev_info_init(struct vdev_info* dev, unsigned long long features) in vdev_info_init() argument 118 dev->vdev.features = features; in vdev_info_init() 264 unsigned long long features = (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | in main() local 278 features &= ~(1ULL << VIRTIO_RING_F_EVENT_IDX); in main() 284 features &= ~(1ULL << VIRTIO_RING_F_INDIRECT_DESC); in main() 287 features &= ~(1ULL << VIRTIO_F_VERSION_1); in main() 299 vdev_info_init(&dev, features); in main()
|