Searched refs:features (Results 1 - 200 of 1559) sorted by relevance

12345678

/linux-4.4.14/include/xen/
H A Dfeatures.h2 * features.h
4 * Query the features reported by Xen.
12 #include <xen/interface/features.h>
H A Dxen.h39 #include <xen/features.h>
/linux-4.4.14/drivers/hid/
H A Dwacom_sys.c117 struct wacom_features *features = &wacom->wacom_wac.features; wacom_feature_mapping() local
125 if (!features->touch_max) { wacom_feature_mapping()
134 features->touch_max = data[1]; wacom_feature_mapping()
136 features->touch_max = 16; wacom_feature_mapping()
140 features->touch_max); wacom_feature_mapping()
194 struct wacom_features *features = &wacom->wacom_wac.features; wacom_usage_mapping() local
204 features->device_type |= WACOM_DEVICETYPE_PEN; wacom_usage_mapping()
206 features->device_type |= WACOM_DEVICETYPE_TOUCH; wacom_usage_mapping()
214 if (features->type > BAMBOO_PT) { wacom_usage_mapping()
216 if (finger && !features->touch_max) wacom_usage_mapping()
217 features->touch_max = 1; wacom_usage_mapping()
222 features->x_max = field->logical_maximum; wacom_usage_mapping()
224 features->x_phy = field->physical_maximum; wacom_usage_mapping()
225 if ((features->type != BAMBOO_PT) && wacom_usage_mapping()
226 (features->type != BAMBOO_TOUCH)) { wacom_usage_mapping()
227 features->unit = field->unit; wacom_usage_mapping()
228 features->unitExpo = field->unit_exponent; wacom_usage_mapping()
233 features->y_max = field->logical_maximum; wacom_usage_mapping()
235 features->y_phy = field->physical_maximum; wacom_usage_mapping()
236 if ((features->type != BAMBOO_PT) && wacom_usage_mapping()
237 (features->type != BAMBOO_TOUCH)) { wacom_usage_mapping()
238 features->unit = field->unit; wacom_usage_mapping()
239 features->unitExpo = field->unit_exponent; wacom_usage_mapping()
245 features->pressure_max = field->logical_maximum; wacom_usage_mapping()
249 if (features->type == HID_GENERIC) wacom_usage_mapping()
254 struct wacom_features *features) wacom_post_parse_hid()
259 if (features->type == HID_GENERIC) { wacom_post_parse_hid()
261 if (features->touch_max > 1) { wacom_post_parse_hid()
262 input_mt_init_slots(wacom_wac->touch_input, wacom_wac->features.touch_max, wacom_post_parse_hid()
269 struct wacom_features *features) wacom_parse_hid()
275 /* check features first */ wacom_parse_hid()
303 wacom_post_parse_hid(hdev, features); wacom_parse_hid()
352 struct wacom_features *features) wacom_bt_query_tablet_data()
358 switch (features->type) { wacom_bt_query_tablet_data()
412 struct wacom_features *features) wacom_query_tablet_data()
415 return wacom_bt_query_tablet_data(hdev, 1, features); wacom_query_tablet_data()
417 if (features->type == HID_GENERIC) wacom_query_tablet_data()
420 if (features->device_type & WACOM_DEVICETYPE_TOUCH) { wacom_query_tablet_data()
421 if (features->type > TABLETPC) { wacom_query_tablet_data()
425 else if (features->type == WACOM_24HDT) { wacom_query_tablet_data()
428 else if (features->type == WACOM_27QHDT) { wacom_query_tablet_data()
431 else if (features->type == BAMBOO_PAD) { wacom_query_tablet_data()
434 } else if (features->device_type & WACOM_DEVICETYPE_PEN) { wacom_query_tablet_data()
435 if (features->type <= BAMBOO_PT) { wacom_query_tablet_data()
444 struct wacom_features *features) wacom_retrieve_hid_descriptor()
449 /* default features */ wacom_retrieve_hid_descriptor()
450 features->x_fuzz = 4; wacom_retrieve_hid_descriptor()
451 features->y_fuzz = 4; wacom_retrieve_hid_descriptor()
452 features->pressure_fuzz = 0; wacom_retrieve_hid_descriptor()
453 features->distance_fuzz = 0; wacom_retrieve_hid_descriptor()
461 if (features->type == WIRELESS) { wacom_retrieve_hid_descriptor()
463 features->device_type = WACOM_DEVICETYPE_WL_MONITOR; wacom_retrieve_hid_descriptor()
465 features->device_type = WACOM_DEVICETYPE_NONE; wacom_retrieve_hid_descriptor()
469 wacom_parse_hid(hdev, features); wacom_retrieve_hid_descriptor()
486 struct wacom_features *features = &wacom->wacom_wac.features; wacom_are_sibling() local
487 int vid = features->oVid; wacom_are_sibling()
488 int pid = features->oPid; wacom_are_sibling()
546 if (wacom_wac->features.device_type & WACOM_DEVICETYPE_TOUCH) wacom_add_shared_data()
548 else if (wacom_wac->features.device_type & WACOM_DEVICETYPE_PEN) wacom_add_shared_data()
602 if (wacom->wacom_wac.features.type >= INTUOS5S && wacom_led_control()
603 wacom->wacom_wac.features.type <= INTUOSPL) { wacom_led_control()
626 if (wacom->wacom_wac.features.type == WACOM_21UX2 || wacom_led_control()
627 wacom->wacom_wac.features.type == WACOM_24HD) wacom_led_control()
867 if (!(wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD)) wacom_initialize_leds()
871 switch (wacom->wacom_wac.features.type) { wacom_initialize_leds()
933 if (!(wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD)) wacom_destroy_leds()
938 switch (wacom->wacom_wac.features.type) { wacom_destroy_leds()
1044 if (wacom->wacom_wac.features.quirks & WACOM_QUIRK_BATTERY) { wacom_initialize_battery()
1120 wacom_bt_query_tablet_data(hdev, new_speed, &wacom->wacom_wac.features); wacom_store_speed()
1281 if (wacom->wacom_wac.features.type != REMOTE) wacom_initialize_remote()
1321 input_dev->name = wacom_wac->features.name; wacom_allocate_input()
1470 static void wacom_set_default_phy(struct wacom_features *features) wacom_set_default_phy() argument
1472 if (features->x_resolution) { wacom_set_default_phy()
1473 features->x_phy = (features->x_max * 100) / wacom_set_default_phy()
1474 features->x_resolution; wacom_set_default_phy()
1475 features->y_phy = (features->y_max * 100) / wacom_set_default_phy()
1476 features->y_resolution; wacom_set_default_phy()
1480 static void wacom_calculate_res(struct wacom_features *features) wacom_calculate_res() argument
1483 if (!features->unit) { wacom_calculate_res()
1484 features->unit = 0x11; wacom_calculate_res()
1485 features->unitExpo = -3; wacom_calculate_res()
1488 features->x_resolution = wacom_calc_hid_res(features->x_max, wacom_calculate_res()
1489 features->x_phy, wacom_calculate_res()
1490 features->unit, wacom_calculate_res()
1491 features->unitExpo); wacom_calculate_res()
1492 features->y_resolution = wacom_calc_hid_res(features->y_max, wacom_calculate_res()
1493 features->y_phy, wacom_calculate_res()
1494 features->unit, wacom_calculate_res()
1495 features->unitExpo); wacom_calculate_res()
1549 wacom_wac1->features = wacom_wireless_work()
1551 wacom_wac1->features.device_type |= WACOM_DEVICETYPE_PEN; wacom_wireless_work()
1552 wacom_set_default_phy(&wacom_wac1->features); wacom_wireless_work()
1553 wacom_calculate_res(&wacom_wac1->features); wacom_wireless_work()
1555 wacom_wac1->features.name); wacom_wireless_work()
1556 if (wacom_wac1->features.type < BAMBOO_PEN || wacom_wireless_work()
1557 wacom_wac1->features.type > BAMBOO_PT) { wacom_wireless_work()
1559 wacom_wac1->features.name); wacom_wireless_work()
1560 wacom_wac1->features.device_type |= WACOM_DEVICETYPE_PAD; wacom_wireless_work()
1562 wacom_wac1->shared->touch_max = wacom_wac1->features.touch_max; wacom_wireless_work()
1563 wacom_wac1->shared->type = wacom_wac1->features.type; wacom_wireless_work()
1571 if (wacom_wac1->features.touch_max || wacom_wireless_work()
1572 (wacom_wac1->features.type >= INTUOSHT && wacom_wireless_work()
1573 wacom_wac1->features.type <= BAMBOO_PT)) { wacom_wireless_work()
1574 wacom_wac2->features = wacom_wireless_work()
1576 wacom_wac2->features.pktlen = WACOM_PKGLEN_BBTOUCH3; wacom_wireless_work()
1577 wacom_set_default_phy(&wacom_wac2->features); wacom_wireless_work()
1578 wacom_wac2->features.x_max = wacom_wac2->features.y_max = 4096; wacom_wireless_work()
1579 wacom_calculate_res(&wacom_wac2->features); wacom_wireless_work()
1581 "%s (WL) Finger",wacom_wac2->features.name); wacom_wireless_work()
1582 if (wacom_wac1->features.touch_max) wacom_wireless_work()
1583 wacom_wac2->features.device_type |= WACOM_DEVICETYPE_TOUCH; wacom_wireless_work()
1584 if (wacom_wac1->features.type >= INTUOSHT && wacom_wireless_work()
1585 wacom_wac1->features.type <= BAMBOO_PT) { wacom_wireless_work()
1587 "%s (WL) Pad",wacom_wac2->features.name); wacom_wireless_work()
1588 wacom_wac2->features.device_type |= WACOM_DEVICETYPE_PAD; wacom_wireless_work()
1596 if ((wacom_wac1->features.type == INTUOSHT || wacom_wireless_work()
1597 wacom_wac1->features.type == INTUOSHT2) && wacom_wireless_work()
1598 wacom_wac1->features.touch_max) wacom_wireless_work()
1619 if ((wacom->wacom_wac.features.quirks & WACOM_QUIRK_BATTERY) && wacom_battery_work()
1623 else if (!(wacom->wacom_wac.features.quirks & WACOM_QUIRK_BATTERY) && wacom_battery_work()
1649 struct wacom_features *features = &wacom_wac->features; wacom_update_name() local
1653 if ((features->type == HID_GENERIC) && !strcmp("Wacom HID", features->name)) { wacom_update_name()
1674 "%s %X", features->name, wacom->hdev->product); wacom_update_name()
1677 strlcpy(name, features->name, sizeof(name)); wacom_update_name()
1696 struct wacom_features *features; wacom_probe() local
1723 wacom_wac->features = *((struct wacom_features *)id->driver_data); wacom_probe()
1724 features = &wacom_wac->features; wacom_probe()
1725 features->pktlen = wacom_compute_pktlen(hdev); wacom_probe()
1726 if (features->pktlen > WACOM_PKGLEN_MAX) { wacom_probe()
1731 if (features->check_for_hid_type && features->hid_type != hdev->type) { wacom_probe()
1750 if (features->type == BAMBOO_PAD) { wacom_probe()
1751 if (features->pktlen == WACOM_PKGLEN_PENABLED) { wacom_probe()
1752 features->type = HID_GENERIC; wacom_probe()
1753 } else if ((features->pktlen != WACOM_PKGLEN_BPAD_TOUCH) && wacom_probe()
1754 (features->pktlen != WACOM_PKGLEN_BPAD_TOUCH_USB)) { wacom_probe()
1761 wacom_set_default_phy(features); wacom_probe()
1764 wacom_retrieve_hid_descriptor(hdev, features); wacom_probe()
1767 if (features->device_type == WACOM_DEVICETYPE_NONE && wacom_probe()
1768 features->type != WIRELESS) { wacom_probe()
1769 error = features->type == HID_GENERIC ? -ENODEV : 0; wacom_probe()
1778 features->device_type |= WACOM_DEVICETYPE_PEN; wacom_probe()
1781 wacom_calculate_res(features); wacom_probe()
1789 if (!(features->device_type & WACOM_DEVICETYPE_WL_MONITOR) && wacom_probe()
1790 (features->quirks & WACOM_QUIRK_BATTERY)) { wacom_probe()
1808 if (features->type == HID_GENERIC) wacom_probe()
1819 wacom_query_tablet_data(hdev, features); wacom_probe()
1822 if ((features->type == BAMBOO_TOUCH) && wacom_probe()
1823 (features->device_type & WACOM_DEVICETYPE_PEN)) { wacom_probe()
1829 if ((features->type == BAMBOO_PEN) && wacom_probe()
1830 ((features->device_type & WACOM_DEVICETYPE_TOUCH) || wacom_probe()
1831 (features->device_type & WACOM_DEVICETYPE_PAD))) { wacom_probe()
1836 if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) wacom_probe()
1839 if ((wacom_wac->features.type == INTUOSHT || wacom_probe()
1840 wacom_wac->features.type == INTUOSHT2) && wacom_probe()
1841 (wacom_wac->features.device_type & WACOM_DEVICETYPE_TOUCH)) { wacom_probe()
1887 struct wacom_features *features = &wacom->wacom_wac.features; wacom_resume() local
1892 wacom_query_tablet_data(hdev, features); wacom_resume()
253 wacom_post_parse_hid(struct hid_device *hdev, struct wacom_features *features) wacom_post_parse_hid() argument
268 wacom_parse_hid(struct hid_device *hdev, struct wacom_features *features) wacom_parse_hid() argument
351 wacom_bt_query_tablet_data(struct hid_device *hdev, u8 speed, struct wacom_features *features) wacom_bt_query_tablet_data() argument
411 wacom_query_tablet_data(struct hid_device *hdev, struct wacom_features *features) wacom_query_tablet_data() argument
443 wacom_retrieve_hid_descriptor(struct hid_device *hdev, struct wacom_features *features) wacom_retrieve_hid_descriptor() argument
H A Dwacom_wac.c115 struct wacom_features *features = &wacom->features; wacom_pl_irq() local
152 if (features->pressure_max > 255) wacom_pl_irq()
154 pressure += (features->pressure_max + 1) / 2; wacom_pl_irq()
284 struct wacom_features *features = &wacom->features; wacom_graphire_irq() local
293 if (features->type == GRAPHIRE_BT) { wacom_graphire_irq()
334 if (features->type == GRAPHIRE_BT) wacom_graphire_irq()
346 if (features->type == WACOM_G4 || wacom_graphire_irq()
347 features->type == WACOM_MO) { wacom_graphire_irq()
350 } else if (features->type == GRAPHIRE_BT) { wacom_graphire_irq()
379 switch (features->type) { wacom_graphire_irq()
425 if (features->type == GRAPHIRE_BT) { wacom_graphire_irq()
451 struct wacom_features *features = &wacom->features; wacom_intuos_inout() local
457 if (features->type == INTUOS) wacom_intuos_inout()
555 (features->type == WACOM_21UX2)) || wacom_intuos_inout()
558 (features->type == INTUOS3 || wacom_intuos_inout()
559 features->type == INTUOS3S || wacom_intuos_inout()
560 features->type == INTUOS4 || wacom_intuos_inout()
561 features->type == INTUOS4S || wacom_intuos_inout()
562 features->type == INTUOS5 || wacom_intuos_inout()
563 features->type == INTUOS5S || wacom_intuos_inout()
564 features->type == INTUOSPM || wacom_intuos_inout()
565 features->type == INTUOSPS)) || wacom_intuos_inout()
567 (features->type == CINTIQ && !(data[1] & 0x40))) wacom_intuos_inout()
578 input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max); wacom_intuos_inout()
614 if (features->type >= INTUOS3S) wacom_intuos_inout()
639 struct wacom_features *features = &wacom_wac->features; wacom_remote_irq() local
698 !(features->quirks & WACOM_QUIRK_BATTERY)) { wacom_remote_irq()
699 features->quirks |= WACOM_QUIRK_BATTERY; wacom_remote_irq()
760 struct wacom_features *features = &wacom->features; wacom_intuos_general() local
768 if (features->pressure_max == 2047) { wacom_intuos_general()
772 if (features->type != INTUOSHT2) { wacom_intuos_general()
794 struct wacom_features *features = &wacom->features; wacom_intuos_irq() local
814 if (features->type == INTUOS) wacom_intuos_irq()
821 if (features->type >= INTUOS4S && features->type <= INTUOS4L) { wacom_intuos_irq()
835 if (features->type != INTUOS4S) { wacom_intuos_irq()
844 } else if (features->type == DTK) { wacom_intuos_irq()
856 } else if (features->type == WACOM_13HD) { wacom_intuos_irq()
871 } else if (features->type == WACOM_24HD) { wacom_intuos_irq()
919 } else if (features->type == WACOM_27QHD) { wacom_intuos_irq()
932 } else if (features->type == CINTIQ_HYBRID) { wacom_intuos_irq()
955 } else if (features->type == CINTIQ_COMPANION_2) { wacom_intuos_irq()
975 } else if (features->type >= INTUOS5S && features->type <= INTUOSPL) { wacom_intuos_irq()
1002 if (features->type == WACOM_21UX2 || features->type == WACOM_22HD) { wacom_intuos_irq()
1022 if (features->type == WACOM_22HD) { wacom_intuos_irq()
1058 if (features->type >= INTUOS3S) { wacom_intuos_irq()
1076 if (features->type >= INTUOS3S) { wacom_intuos_irq()
1089 } else if (!(data[1] & 0x10) && features->type < INTUOS3S) { wacom_intuos_irq()
1102 if (features->type >= INTUOS4S && features->type <= INTUOSPL) { wacom_intuos_irq()
1123 if (features->type >= INTUOS3S && features->type <= INTUOS3L) { wacom_intuos_irq()
1128 } else if ((features->type < INTUOS3S || features->type == INTUOS3L || wacom_intuos_irq()
1129 features->type == INTUOS4L || features->type == INTUOS5L || wacom_intuos_irq()
1130 features->type == INTUOSPL) && wacom_intuos_irq()
1205 unsigned touch_max = wacom->features.touch_max; wacom_wac_finger_count_touches()
1237 if (wacom->features.type == WACOM_27QHDT) { wacom_24hdt_irq()
1270 if (wacom->features.type != WACOM_27QHDT) { wacom_24hdt_irq()
1304 if (wacom->features.type == MTTPC || wacom->features.type == MTTPC_B) wacom_mt_touch()
1380 if (wacom->features.touch_max > 1 || len > WACOM_PKGLEN_TPC2FG) wacom_tpc_single_touch()
1613 struct wacom_features *features = &wacom_wac->features; wacom_wac_finger_usage_mapping() local
1615 unsigned touch_max = wacom_wac->features.touch_max; wacom_wac_finger_usage_mapping()
1619 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1627 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1636 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1642 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1645 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1648 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1651 features->last_slot_field = usage->hid; wacom_wac_finger_usage_mapping()
1666 bool mt = wacom_wac->features.touch_max > 1; wacom_wac_finger_slot()
1729 if (usage->hid == wacom_wac->features.last_slot_field) wacom_wac_finger_event()
1775 hid_data->num_expected = wacom_wac->features.touch_max; wacom_wac_finger_pre_report()
1785 unsigned touch_max = wacom_wac->features.touch_max; wacom_wac_finger_report()
1826 if (wacom->wacom_wac.features.type != HID_GENERIC) wacom_wac_event()
1863 if (wacom_wac->features.type != HID_GENERIC) wacom_wac_report()
1883 struct wacom_features *features = &wacom->features; wacom_bpt_touch() local
1909 if (features->quirks & WACOM_QUIRK_BBTOUCH_LOWRES) { wacom_bpt_touch()
1931 struct wacom_features *features = &wacom->features; wacom_bpt3_touch_msg() local
1949 if (features->type >= INTUOSPS && features->type <= INTUOSHT2) { wacom_bpt3_touch_msg()
1975 struct wacom_features *features = &wacom->features; wacom_bpt3_button_msg() local
1977 if (features->type == INTUOSHT || features->type == INTUOSHT2) { wacom_bpt3_button_msg()
2021 struct wacom_features *features = &wacom->features; wacom_bpt_pen() local
2065 if (data[8] <= features->distance_max) wacom_bpt_pen()
2066 d = features->distance_max - data[8]; wacom_bpt_pen()
2092 struct wacom_features *features = &wacom->features; wacom_bpt_irq() local
2094 if ((features->type == INTUOSHT2) && wacom_bpt_irq()
2095 (features->device_type & WACOM_DEVICETYPE_PEN)) wacom_bpt_irq()
2144 for (id = 0; id < wacom->features.touch_max; id++) { wacom_bamboo_pad_touch_event()
2237 struct wacom_features *features = &wacom_wac->features; wacom_status_irq() local
2243 if ((features->type == INTUOSHT || wacom_status_irq()
2244 features->type == INTUOSHT2) && wacom_status_irq()
2246 features->touch_max) { wacom_status_irq()
2260 !(features->quirks & WACOM_QUIRK_BATTERY)) { wacom_status_irq()
2261 features->quirks |= WACOM_QUIRK_BATTERY; wacom_status_irq()
2266 else if ((features->quirks & WACOM_QUIRK_BATTERY) && wacom_status_irq()
2268 features->quirks &= ~WACOM_QUIRK_BATTERY; wacom_status_irq()
2280 switch (wacom_wac->features.type) { wacom_wac_irq()
2413 0, wacom_wac->features.distance_max, 0, 0); wacom_setup_basic_pro_pen()
2457 struct wacom_features *features = &wacom->wacom_wac.features; wacom_setup_device_quirks() local
2460 if (features->type == GRAPHIRE_BT || features->type == WACOM_G4 || wacom_setup_device_quirks()
2461 features->type == DTUS || wacom_setup_device_quirks()
2462 (features->type >= INTUOS3S && features->type <= WACOM_MO)) { wacom_setup_device_quirks()
2463 if (features->device_type & WACOM_DEVICETYPE_PEN) wacom_setup_device_quirks()
2464 features->device_type |= WACOM_DEVICETYPE_PAD; wacom_setup_device_quirks()
2468 if (features->device_type & WACOM_DEVICETYPE_TOUCH && !features->x_max) { wacom_setup_device_quirks()
2469 features->x_max = 1023; wacom_setup_device_quirks()
2470 features->y_max = 1023; wacom_setup_device_quirks()
2479 if ((features->type >= INTUOS5S && features->type <= INTUOSPL) || wacom_setup_device_quirks()
2480 (features->type >= INTUOSHT && features->type <= BAMBOO_PT)) { wacom_setup_device_quirks()
2481 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) { wacom_setup_device_quirks()
2482 if (features->touch_max) wacom_setup_device_quirks()
2483 features->device_type |= WACOM_DEVICETYPE_TOUCH; wacom_setup_device_quirks()
2484 if (features->type >= INTUOSHT && features->type <= BAMBOO_PT) wacom_setup_device_quirks()
2485 features->device_type |= WACOM_DEVICETYPE_PAD; wacom_setup_device_quirks()
2487 features->x_max = 4096; wacom_setup_device_quirks()
2488 features->y_max = 4096; wacom_setup_device_quirks()
2490 else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) { wacom_setup_device_quirks()
2491 features->device_type |= WACOM_DEVICETYPE_PAD; wacom_setup_device_quirks()
2502 if (features->type == BAMBOO_PEN && wacom_setup_device_quirks()
2503 features->pktlen == WACOM_PKGLEN_BBTOUCH3) wacom_setup_device_quirks()
2504 features->device_type |= WACOM_DEVICETYPE_PAD; wacom_setup_device_quirks()
2513 if (features->type == BAMBOO_PAD) wacom_setup_device_quirks()
2514 features->device_type = WACOM_DEVICETYPE_TOUCH; wacom_setup_device_quirks()
2516 if (features->type == REMOTE) wacom_setup_device_quirks()
2517 features->device_type = WACOM_DEVICETYPE_PAD; wacom_setup_device_quirks()
2520 features->quirks |= WACOM_QUIRK_BATTERY; wacom_setup_device_quirks()
2523 if (features->type == BAMBOO_PT && wacom_setup_device_quirks()
2524 features->pktlen == WACOM_PKGLEN_BBTOUCH) { wacom_setup_device_quirks()
2525 features->x_max <<= 5; wacom_setup_device_quirks()
2526 features->y_max <<= 5; wacom_setup_device_quirks()
2527 features->x_fuzz <<= 5; wacom_setup_device_quirks()
2528 features->y_fuzz <<= 5; wacom_setup_device_quirks()
2529 features->quirks |= WACOM_QUIRK_BBTOUCH_LOWRES; wacom_setup_device_quirks()
2532 if (features->type == WIRELESS) { wacom_setup_device_quirks()
2533 if (features->device_type == WACOM_DEVICETYPE_WL_MONITOR) { wacom_setup_device_quirks()
2534 features->quirks |= WACOM_QUIRK_BATTERY; wacom_setup_device_quirks()
2542 struct wacom_features *features = &wacom_wac->features; wacom_setup_pen_input_capabilities() local
2546 if (!(features->device_type & WACOM_DEVICETYPE_PEN)) wacom_setup_pen_input_capabilities()
2549 if (features->type == HID_GENERIC) wacom_setup_pen_input_capabilities()
2556 input_set_abs_params(input_dev, ABS_X, features->x_min, wacom_setup_pen_input_capabilities()
2557 features->x_max, features->x_fuzz, 0); wacom_setup_pen_input_capabilities()
2558 input_set_abs_params(input_dev, ABS_Y, features->y_min, wacom_setup_pen_input_capabilities()
2559 features->y_max, features->y_fuzz, 0); wacom_setup_pen_input_capabilities()
2561 features->pressure_max, features->pressure_fuzz, 0); wacom_setup_pen_input_capabilities()
2564 input_abs_set_res(input_dev, ABS_X, features->x_resolution); wacom_setup_pen_input_capabilities()
2565 input_abs_set_res(input_dev, ABS_Y, features->y_resolution); wacom_setup_pen_input_capabilities()
2568 switch (features->type) { wacom_setup_pen_input_capabilities()
2575 features->distance_max, wacom_setup_pen_input_capabilities()
2637 features->distance_max, wacom_setup_pen_input_capabilities()
2687 if (features->type == INTUOSHT2) { wacom_setup_pen_input_capabilities()
2696 features->distance_max, wacom_setup_pen_input_capabilities()
2710 struct wacom_features *features = &wacom_wac->features; wacom_setup_touch_input_capabilities() local
2714 if (!(features->device_type & WACOM_DEVICETYPE_TOUCH)) wacom_setup_touch_input_capabilities()
2717 if (features->type == HID_GENERIC) wacom_setup_touch_input_capabilities()
2723 if (features->touch_max == 1) { wacom_setup_touch_input_capabilities()
2725 features->x_max, features->x_fuzz, 0); wacom_setup_touch_input_capabilities()
2727 features->y_max, features->y_fuzz, 0); wacom_setup_touch_input_capabilities()
2729 features->x_resolution); wacom_setup_touch_input_capabilities()
2731 features->y_resolution); wacom_setup_touch_input_capabilities()
2733 else if (features->touch_max > 1) { wacom_setup_touch_input_capabilities()
2735 features->x_max, features->x_fuzz, 0); wacom_setup_touch_input_capabilities()
2737 features->y_max, features->y_fuzz, 0); wacom_setup_touch_input_capabilities()
2739 features->x_resolution); wacom_setup_touch_input_capabilities()
2741 features->y_resolution); wacom_setup_touch_input_capabilities()
2744 switch (features->type) { wacom_setup_touch_input_capabilities()
2753 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0); wacom_setup_touch_input_capabilities()
2754 input_set_abs_params(input_dev, ABS_MT_TOUCH_MINOR, 0, features->y_max, 0, 0); wacom_setup_touch_input_capabilities()
2755 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER); wacom_setup_touch_input_capabilities()
2759 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, features->x_max, 0, 0); wacom_setup_touch_input_capabilities()
2760 input_set_abs_params(input_dev, ABS_MT_WIDTH_MAJOR, 0, features->x_max, 0, 0); wacom_setup_touch_input_capabilities()
2761 input_set_abs_params(input_dev, ABS_MT_WIDTH_MINOR, 0, features->y_max, 0, 0); wacom_setup_touch_input_capabilities()
2770 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_DIRECT); wacom_setup_touch_input_capabilities()
2786 if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) { wacom_setup_touch_input_capabilities()
2789 0, features->x_max, 0, 0); wacom_setup_touch_input_capabilities()
2792 0, features->y_max, 0, 0); wacom_setup_touch_input_capabilities()
2794 input_mt_init_slots(input_dev, features->touch_max, INPUT_MT_POINTER); wacom_setup_touch_input_capabilities()
2798 input_mt_init_slots(input_dev, features->touch_max, wacom_setup_touch_input_capabilities()
2823 struct wacom_features *features = &wacom_wac->features; wacom_setup_pad_input_capabilities() local
2825 if (!(features->device_type & WACOM_DEVICETYPE_PAD)) wacom_setup_pad_input_capabilities()
2840 wacom_setup_numbered_buttons(input_dev, features->numbered_buttons); wacom_setup_pad_input_capabilities()
2842 switch (features->type) { wacom_setup_pad_input_capabilities()
/linux-4.4.14/drivers/xen/
H A Dfeatures.c2 * features.c
16 #include <xen/features.h>
H A DMakefile3 obj-y += grant-table.o features.o balloon.o manage.o preempt.o
/linux-4.4.14/arch/s390/include/asm/
H A Dcpufeature.h2 * Module interface for CPU features
13 /* Hardware features on Linux on z Systems are indicated by facility bits that
18 * Restrict the set of exposed CPU features to ELF hardware capabilities for
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Dum_xdi.h13 dword features; member in struct:_diva_um_idi_adapter_features
21 #define DIVA_UM_IDI_GET_FEATURES 1 /* trigger features indication */
50 diva_um_idi_adapter_features_t features; member in union:_diva_um_idi_ind
55 #define DIVA_UM_IDI_IND_FEATURES 1 /* features indication */
H A Dxdi_msg.h53 Start does set new set of features due to fact that we not know
54 if protocol features have changed
82 Set untranslated protocol code features
87 dword features; member in struct:_diva_xdi_um_cfg_cmd_data_set_features
92 dword features; member in struct:_diva_xdi_um_cfg_cmd_data_start
117 diva_xdi_um_cfg_cmd_data_set_features_t features; member in union:_diva_xdi_um_cfg_cmd_data
H A Ddiva.c572 dword features; diva_xdi_display_adapter_features() local
577 features = IoAdapters[card]->Properties.Features; diva_xdi_display_adapter_features()
581 (features & DI_FAX3) ? "Y" : "N")) diva_xdi_display_adapter_features()
583 (features & DI_MODEM) ? "Y" : "N")) diva_xdi_display_adapter_features()
585 (features & DI_POST) ? "Y" : "N")) diva_xdi_display_adapter_features()
587 (features & DI_V110) ? "Y" : "N")) diva_xdi_display_adapter_features()
589 (features & DI_V120) ? "Y" : "N")) diva_xdi_display_adapter_features()
591 (features & DI_POTS) ? "Y" : "N")) diva_xdi_display_adapter_features()
593 (features & DI_CODEC) ? "Y" : "N")) diva_xdi_display_adapter_features()
595 (features & DI_MANAGE) ? "Y" : "N")) diva_xdi_display_adapter_features()
597 (features & DI_V_42) ? "Y" : "N")) diva_xdi_display_adapter_features()
599 (features & DI_EXTD_FAX) ? "Y" : "N")) diva_xdi_display_adapter_features()
601 (features & DI_AT_PARSER) ? "Y" : "N")) diva_xdi_display_adapter_features()
603 (features & DI_VOICE_OVER_IP) ? "Y" : "N")) diva_xdi_display_adapter_features()
H A Dum_idi.c32 *features);
49 Copy adapter features to user supplied buffer
54 features) diva_user_mode_idi_adapter_features()
59 features->type = a->d.type; diva_user_mode_idi_adapter_features()
60 features->features = a->d.features; diva_user_mode_idi_adapter_features()
61 features->channels = a->d.channels; diva_user_mode_idi_adapter_features()
62 memset(features->name, 0, sizeof(features->name)); diva_user_mode_idi_adapter_features()
67 strlcpy(features->name, sync_req.GetName.name, diva_user_mode_idi_adapter_features()
68 sizeof(features->name)); diva_user_mode_idi_adapter_features()
74 features->serial_number = sync_req.GetSerial.serial; diva_user_mode_idi_adapter_features()
138 DBG_LOG(("DIDD_ADD A(%d), type:%02x, features:%04x, channels:%d", diva_user_mode_idi_create_adapter()
139 adapter_nr, a->d.type, a->d.features, a->d.channels)); diva_user_mode_idi_create_adapter()
444 *) data)->hdr.features)); diva_um_idi_write()
52 diva_user_mode_idi_adapter_features(diva_um_idi_adapter_t *a, diva_um_idi_adapter_features_t * features) diva_user_mode_idi_adapter_features() argument
H A Dos_bri.c46 dword start_address, dword features);
487 features); diva_bri_cmd_card_proc()
491 a->xdi_adapter.features = diva_bri_cmd_card_proc()
492 cmd->command_data.features.features; diva_bri_cmd_card_proc()
494 a->xdi_adapter.features; diva_bri_cmd_card_proc()
496 ("Set raw protocol features (%08x)", diva_bri_cmd_card_proc()
497 a->xdi_adapter.features)) ret = 0; diva_bri_cmd_card_proc()
633 dword start_address, dword features) diva_bri_start_adapter()
737 IoAdapter->Properties.Features = (word) features; diva_bri_start_adapter()
632 diva_bri_start_adapter(PISDN_ADAPTER IoAdapter, dword start_address, dword features) diva_bri_start_adapter() argument
H A Dos_4bri.c74 dword start_address, dword features);
750 start.features); diva_4bri_cmd_card_proc()
756 a->xdi_adapter.features = diva_4bri_cmd_card_proc()
757 cmd->command_data.features.features; diva_4bri_cmd_card_proc()
759 a->xdi_adapter.features; diva_4bri_cmd_card_proc()
760 DBG_TRC(("Set raw protocol features (%08x)", diva_4bri_cmd_card_proc()
761 a->xdi_adapter.features)) diva_4bri_cmd_card_proc()
934 dword start_address, dword features) diva_4bri_start_adapter()
963 IoAdapter->QuadroList->QuadroAdapter[i]->features = diva_4bri_start_adapter()
964 IoAdapter->features; diva_4bri_start_adapter()
966 protocol_capabilities = IoAdapter->features; diva_4bri_start_adapter()
995 IoAdapter->Properties.Features = (word) features; diva_4bri_start_adapter()
1003 IoAdapter->QuadroList->QuadroAdapter[i]->Properties.Features = (word) features; diva_4bri_start_adapter()
933 diva_4bri_start_adapter(PISDN_ADAPTER IoAdapter, dword start_address, dword features) diva_4bri_start_adapter() argument
H A Dos_pri.c434 dword start_address, dword features) diva_pri_start_adapter()
512 IoAdapter->Properties.Features = (word) features; diva_pri_start_adapter()
681 features); diva_pri_cmd_card_proc()
685 a->xdi_adapter.features = diva_pri_cmd_card_proc()
686 cmd->command_data.features.features; diva_pri_cmd_card_proc()
688 a->xdi_adapter.features; diva_pri_cmd_card_proc()
689 DBG_TRC(("Set raw protocol features (%08x)", diva_pri_cmd_card_proc()
690 a->xdi_adapter.features)) diva_pri_cmd_card_proc()
433 diva_pri_start_adapter(PISDN_ADAPTER IoAdapter, dword start_address, dword features) diva_pri_start_adapter() argument
/linux-4.4.14/arch/ia64/include/asm/sn/
H A Dsn_feature_sets.h21 * The following defines features that may or may not be supported by the
24 * "false" for new features.
39 * The following defines OS features that are optionally present in
41 * During boot, PROM is notified of these features via a series of calls:
47 * By default, features are disabled unless explicitly enabled.
/linux-4.4.14/arch/x86/include/asm/fpu/
H A Dxstate.h21 /* Supported features which support lazy state saving */
29 /* Supported features which require eager state saving */
32 /* All currently supported features */
/linux-4.4.14/arch/powerpc/kernel/
H A Dkvm.c414 u32 *features = data; kvm_map_magic_page() local
424 *features = out[0]; kvm_map_magic_page()
427 static void kvm_check_ins(u32 *inst, u32 features) kvm_check_ins() argument
469 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
473 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
477 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
481 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
485 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
489 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
493 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
502 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
509 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
516 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
523 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
529 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
535 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
571 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
575 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
579 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
583 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
587 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
591 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
595 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
601 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
605 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
609 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
613 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
619 if (features & KVM_MAGIC_FEAT_MAS0_TO_SPRG7) kvm_check_ins()
647 if (features & KVM_MAGIC_FEAT_SR) { kvm_check_ins()
676 u32 features; kvm_use_magic_page() local
679 on_each_cpu(kvm_map_magic_page, &features, 1); kvm_use_magic_page()
704 kvm_check_ins(p, features); kvm_use_magic_page()
/linux-4.4.14/tools/perf/ui/
H A Dlibslang.h6 * has on features.h.
8 #include <features.h>
/linux-4.4.14/arch/arm/mach-s3c64xx/
H A Dmach-real6410.c256 struct real6410_features_t *features, real6410_parse_features()
261 features->done = 0; real6410_parse_features()
262 features->lcd_index = 0; real6410_parse_features()
269 if (features->done & FEATURE_SCREEN) { real6410_parse_features()
278 features->lcd_index = li; real6410_parse_features()
281 features->done |= FEATURE_SCREEN; real6410_parse_features()
290 struct real6410_features_t features = { 0 }; real6410_machine_init() local
296 real6410_parse_features(&features, real6410_features_str); real6410_machine_init()
299 real6410_lcd_pdata[features.lcd_index].win[0]->xres, real6410_machine_init()
300 real6410_lcd_pdata[features.lcd_index].win[0]->yres); real6410_machine_init()
302 s3c_fb_set_platdata(&real6410_lcd_pdata[features.lcd_index]); real6410_machine_init()
255 real6410_parse_features( struct real6410_features_t *features, const char *features_str) real6410_parse_features() argument
H A Dmach-mini6410.c286 struct mini6410_features_t *features, mini6410_parse_features()
291 features->done = 0; mini6410_parse_features()
292 features->lcd_index = 0; mini6410_parse_features()
299 if (features->done & FEATURE_SCREEN) { mini6410_parse_features()
308 features->lcd_index = li; mini6410_parse_features()
311 features->done |= FEATURE_SCREEN; mini6410_parse_features()
320 struct mini6410_features_t features = { 0 }; mini6410_machine_init() local
326 mini6410_parse_features(&features, mini6410_features_str); mini6410_machine_init()
329 mini6410_lcd_pdata[features.lcd_index].win[0]->xres, mini6410_machine_init()
330 mini6410_lcd_pdata[features.lcd_index].win[0]->yres); mini6410_machine_init()
333 s3c_fb_set_platdata(&mini6410_lcd_pdata[features.lcd_index]); mini6410_machine_init()
285 mini6410_parse_features( struct mini6410_features_t *features, const char *features_str) mini6410_parse_features() argument
/linux-4.4.14/arch/arm/mach-omap2/
H A Dclock.c175 * ti_clk_init_features - init clock features struct for the SoC
177 * Initializes the clock features struct based on the SoC type.
181 struct ti_clk_features features = { 0 }; ti_clk_init_features() local
184 features.fint_min = OMAP3430_DPLL_FINT_BAND1_MIN; ti_clk_init_features()
185 features.fint_max = OMAP3430_DPLL_FINT_BAND2_MAX; ti_clk_init_features()
186 features.fint_band1_max = OMAP3430_DPLL_FINT_BAND1_MAX; ti_clk_init_features()
187 features.fint_band2_min = OMAP3430_DPLL_FINT_BAND2_MIN; ti_clk_init_features()
189 features.fint_min = OMAP3PLUS_DPLL_FINT_MIN; ti_clk_init_features()
190 features.fint_max = OMAP3PLUS_DPLL_FINT_MAX; ti_clk_init_features()
195 features.dpll_bypass_vals |= ti_clk_init_features()
199 features.dpll_bypass_vals |= ti_clk_init_features()
204 features.dpll_bypass_vals |= ti_clk_init_features()
212 features.flags |= TI_CLK_DPLL_HAS_FREQSEL; ti_clk_init_features()
220 features.cm_idlest_val = OMAP24XX_CM_IDLEST_VAL; ti_clk_init_features()
222 features.cm_idlest_val = OMAP34XX_CM_IDLEST_VAL; ti_clk_init_features()
226 features.flags |= TI_CLK_DPLL4_DENY_REPROGRAM; ti_clk_init_features()
228 ti_clk_setup_features(&features); ti_clk_init_features()
/linux-4.4.14/arch/arm/include/asm/hardware/
H A Dcache-tauros2.h14 extern void __init tauros2_init(unsigned int features);
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_fcoe.c63 * cxgb_fcoe_enable - enable FCoE offload features
80 dev_info(adap->pdev_dev, "Enabling FCoE offload features\n"); cxgb_fcoe_enable()
82 netdev->features |= NETIF_F_FCOE_CRC; cxgb_fcoe_enable()
84 netdev->features |= NETIF_F_FCOE_MTU; cxgb_fcoe_enable()
109 dev_info(adap->pdev_dev, "Disabling FCoE offload features\n"); cxgb_fcoe_disable()
113 netdev->features &= ~NETIF_F_FCOE_CRC; cxgb_fcoe_disable()
115 netdev->features &= ~NETIF_F_FCOE_MTU; cxgb_fcoe_disable()
/linux-4.4.14/arch/arm64/include/asm/
H A Dcpufeature.h17 * in the kernel and for user space to keep track of which optional features
59 s64 safe_val; /* safe value for discrete features */
120 cpuid_feature_extract_field_width(u64 features, int field, int width) cpuid_feature_extract_field_width() argument
122 return (s64)(features << (64 - width - field)) >> (64 - width); cpuid_feature_extract_field_width()
126 cpuid_feature_extract_field(u64 features, int field) cpuid_feature_extract_field() argument
128 return cpuid_feature_extract_field_width(features, field, 4); cpuid_feature_extract_field()
132 cpuid_feature_extract_unsigned_field_width(u64 features, int field, int width) cpuid_feature_extract_unsigned_field_width() argument
134 return (u64)(features << (64 - width - field)) >> (64 - width); cpuid_feature_extract_unsigned_field_width()
138 cpuid_feature_extract_unsigned_field(u64 features, int field) cpuid_feature_extract_unsigned_field() argument
140 return cpuid_feature_extract_unsigned_field_width(features, field, 4); cpuid_feature_extract_unsigned_field()
/linux-4.4.14/drivers/input/touchscreen/
H A Dwacom_i2c.c47 struct wacom_features *features) wacom_query_device()
81 features->x_max = get_unaligned_le16(&data[3]); wacom_query_device()
82 features->y_max = get_unaligned_le16(&data[5]); wacom_query_device()
83 features->pressure_max = get_unaligned_le16(&data[11]); wacom_query_device()
84 features->fw_version = get_unaligned_le16(&data[13]); wacom_query_device()
88 features->x_max, features->y_max, wacom_query_device()
89 features->pressure_max, features->fw_version); wacom_query_device()
158 struct wacom_features features = { 0 }; wacom_i2c_probe() local
166 error = wacom_query_device(client, &features); wacom_i2c_probe()
183 input->id.version = features.fw_version; wacom_i2c_probe()
196 input_set_abs_params(input, ABS_X, 0, features.x_max, 0, 0); wacom_i2c_probe()
197 input_set_abs_params(input, ABS_Y, 0, features.y_max, 0, 0); wacom_i2c_probe()
199 0, features.pressure_max, 0, 0); wacom_i2c_probe()
46 wacom_query_device(struct i2c_client *client, struct wacom_features *features) wacom_query_device() argument
H A Ds3c2410_ts.c73 * @features: The features supported by the TSADC MOdule.
86 int features; member in struct:s3c2410ts
177 if (ts.features & FEAT_PEN_IRQ) { stylus_irq()
328 ts.features = platform_get_device_id(pdev)->driver_data; s3c2410ts_probe()
/linux-4.4.14/arch/avr32/kernel/
H A Dcpu.c258 unsigned long features; setup_processor() local
308 printk ("CPU: features:"); setup_processor()
309 features = 0; setup_processor()
311 features |= AVR32_FEATURE_RMW; setup_processor()
313 features |= AVR32_FEATURE_DSP; setup_processor()
315 features |= AVR32_FEATURE_SIMD; setup_processor()
317 features |= AVR32_FEATURE_OCD; setup_processor()
319 features |= AVR32_FEATURE_PCTR; setup_processor()
321 features |= AVR32_FEATURE_JAVA; setup_processor()
323 features |= AVR32_FEATURE_FPU; setup_processor()
326 if (features & (1 << i)) setup_processor()
330 boot_cpu_data.features = features; setup_processor()
376 seq_printf(m, "features\t:"); c_show()
378 if (boot_cpu_data.features & (1 << i)) c_show()
/linux-4.4.14/arch/arm/mach-s3c24xx/
H A Dmach-mini2440.c570 struct mini2440_features_t * features, mini2440_parse_features()
575 features->count = 0; mini2440_parse_features()
576 features->done = 0; mini2440_parse_features()
577 features->lcd_index = -1; mini2440_parse_features()
584 if (features->done & FEATURE_SCREEN) { mini2440_parse_features()
593 features->optional[features->count++] = mini2440_parse_features()
595 features->lcd_index = li; mini2440_parse_features()
598 features->done |= FEATURE_SCREEN; mini2440_parse_features()
601 if (features->done & FEATURE_BACKLIGHT) mini2440_parse_features()
605 features->optional[features->count++] = mini2440_parse_features()
608 features->done |= FEATURE_BACKLIGHT; mini2440_parse_features()
615 if (features->done & FEATURE_CAMERA) mini2440_parse_features()
619 features->optional[features->count++] = mini2440_parse_features()
621 features->done |= FEATURE_CAMERA; mini2440_parse_features()
629 struct mini2440_features_t features = { 0 }; mini2440_init() local
636 mini2440_parse_features(&features, mini2440_features_str); mini2440_init()
655 if (features.lcd_index != -1) { mini2440_init()
659 &mini2440_lcd_cfg[features.lcd_index]; mini2440_init()
663 if (li == features.lcd_index) mini2440_init()
685 if (features.count) /* the optional features */ mini2440_init()
686 platform_add_devices(features.optional, features.count); mini2440_init()
569 mini2440_parse_features( struct mini2440_features_t * features, const char * features_str ) mini2440_parse_features() argument
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/
H A Datlx.c221 static void __atlx_vlan_mode(netdev_features_t features, u32 *ctrl) __atlx_vlan_mode() argument
223 if (features & NETIF_F_HW_VLAN_CTAG_RX) { __atlx_vlan_mode()
233 netdev_features_t features) atlx_vlan_mode()
242 __atlx_vlan_mode(features, &ctrl); atlx_vlan_mode()
250 atlx_vlan_mode(adapter->netdev, adapter->netdev->features); atlx_restore_vlan()
254 netdev_features_t features) atlx_fix_features()
260 if (features & NETIF_F_HW_VLAN_CTAG_RX) atlx_fix_features()
261 features |= NETIF_F_HW_VLAN_CTAG_TX; atlx_fix_features()
263 features &= ~NETIF_F_HW_VLAN_CTAG_TX; atlx_fix_features()
265 return features; atlx_fix_features()
269 netdev_features_t features) atlx_set_features()
271 netdev_features_t changed = netdev->features ^ features; atlx_set_features()
274 atlx_vlan_mode(netdev, features); atlx_set_features()
232 atlx_vlan_mode(struct net_device *netdev, netdev_features_t features) atlx_vlan_mode() argument
253 atlx_fix_features(struct net_device *netdev, netdev_features_t features) atlx_fix_features() argument
268 atlx_set_features(struct net_device *netdev, netdev_features_t features) atlx_set_features() argument
/linux-4.4.14/arch/arm/mm/
H A Dcache-tauros2.c178 static void enable_extra_feature(unsigned int features) enable_extra_feature() argument
184 if (features & CACHE_TAUROS2_PREFETCH_ON) enable_extra_feature()
189 (features & CACHE_TAUROS2_PREFETCH_ON) enable_extra_feature()
192 if (features & CACHE_TAUROS2_LINEFILL_BURST8) enable_extra_feature()
197 (features & CACHE_TAUROS2_LINEFILL_BURST8) enable_extra_feature()
203 static void __init tauros2_internal_init(unsigned int features) tauros2_internal_init() argument
207 enable_extra_feature(features); tauros2_internal_init()
280 void __init tauros2_init(unsigned int features) tauros2_init() argument
293 ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f); tauros2_init()
295 pr_info("Not found marvell,tauros-cache-features property, " tauros2_init()
296 "disable extra features\n"); tauros2_init()
297 features = 0; tauros2_init()
299 features = f; tauros2_init()
301 tauros2_internal_init(features); tauros2_init()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dmshyperv.c158 * Extract the features and hints ms_hyperv_init_platform()
160 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES); ms_hyperv_init_platform()
164 printk(KERN_INFO "HyperV: features 0x%x, hints 0x%x\n", ms_hyperv_init_platform()
165 ms_hyperv.features, ms_hyperv.hints); ms_hyperv_init_platform()
168 if (ms_hyperv.features & HV_X64_MSR_APIC_FREQUENCY_AVAILABLE) { ms_hyperv_init_platform()
182 if (ms_hyperv.features & HV_X64_MSR_TIME_REF_COUNT_AVAILABLE) ms_hyperv_init_platform()
H A Dbugs.c36 panic("Kernel requires i486+ for 'invlpg' and other features"); check_bugs()
H A DMakefile2 # Makefile for x86-compatible CPU details, features and quirks
H A Dmatch.c28 * This always matches against the boot cpu, assuming models and features are
H A Dscattered.c2 * Routines to identify additional cpu features that are scattered in
/linux-4.4.14/drivers/s390/block/
H A Ddasd_devmap.c36 * dasd_devmap_t is used to store the features and the relation
49 unsigned short features; member in struct:dasd_devmap
186 * Read colon separated list of dasd features. Currently there is
193 int features, len, rc; dasd_feature_list() local
201 features = 0; dasd_feature_list()
207 features |= DASD_FEATURE_READONLY; dasd_feature_list()
209 features |= DASD_FEATURE_USEDIAG; dasd_feature_list()
211 features |= DASD_FEATURE_USERAW; dasd_feature_list()
213 features |= DASD_FEATURE_ERPLOG; dasd_feature_list()
215 features |= DASD_FEATURE_FAILFAST; dasd_feature_list()
235 return features; dasd_feature_list()
314 int features, rc; dasd_parse_range() local
335 features = dasd_feature_list(str, &str); dasd_parse_range()
336 if (features < 0) dasd_parse_range()
339 features |= DASD_FEATURE_INITIAL_ONLINE; dasd_parse_range()
343 devmap = dasd_add_busid(bus_id, features); dasd_parse_range()
408 dasd_add_busid(const char *bus_id, int features) dasd_add_busid() argument
428 new->features = features; dasd_add_busid()
559 device->features = devmap->features; dasd_create_device()
720 ff_flag = (devmap->features & DASD_FEATURE_FAILFAST) != 0; dasd_ff_show()
743 devmap->features |= DASD_FEATURE_FAILFAST; dasd_ff_store()
745 devmap->features &= ~DASD_FEATURE_FAILFAST; dasd_ff_store()
747 devmap->device->features = devmap->features; dasd_ff_store()
765 ro_flag = (devmap->features & DASD_FEATURE_READONLY) != 0; dasd_ro_show()
790 devmap->features |= DASD_FEATURE_READONLY; dasd_ro_store()
792 devmap->features &= ~DASD_FEATURE_READONLY; dasd_ro_store()
795 device->features = devmap->features; dasd_ro_store()
817 erplog = (devmap->features & DASD_FEATURE_ERPLOG) != 0; dasd_erplog_show()
841 devmap->features |= DASD_FEATURE_ERPLOG; dasd_erplog_store()
843 devmap->features &= ~DASD_FEATURE_ERPLOG; dasd_erplog_store()
845 devmap->device->features = devmap->features; dasd_erplog_store()
864 use_diag = (devmap->features & DASD_FEATURE_USEDIAG) != 0; dasd_use_diag_show()
890 if (!devmap->device && !(devmap->features & DASD_FEATURE_USERAW)) { dasd_use_diag_store()
892 devmap->features |= DASD_FEATURE_USEDIAG; dasd_use_diag_store()
894 devmap->features &= ~DASD_FEATURE_USEDIAG; dasd_use_diag_store()
915 use_raw = (devmap->features & DASD_FEATURE_USERAW) != 0; dasd_use_raw_show()
939 if (!devmap->device && !(devmap->features & DASD_FEATURE_USEDIAG)) { dasd_use_raw_store()
941 devmap->features |= DASD_FEATURE_USERAW; dasd_use_raw_store()
943 devmap->features &= ~DASD_FEATURE_USERAW; dasd_use_raw_store()
1350 if (devmap->features & DASD_FEATURE_FAILONSLCK) dasd_reservation_policy_show()
1372 devmap->features &= ~DASD_FEATURE_FAILONSLCK; dasd_reservation_policy_store()
1374 devmap->features |= DASD_FEATURE_FAILONSLCK; dasd_reservation_policy_store()
1378 devmap->device->features = devmap->features; dasd_reservation_policy_store()
1496 return ((devmap->features & feature) != 0); dasd_get_feature()
1514 devmap->features |= feature; dasd_set_feature()
1516 devmap->features &= ~feature; dasd_set_feature()
1518 devmap->device->features = devmap->features; dasd_set_feature()
H A Ddasd_fba.h57 } __attribute__ ((packed)) features; member in struct:dasd_fba_characteristics
/linux-4.4.14/arch/x86/boot/
H A Dmkcpustr.c18 #include "../include/asm/required-features.h"
19 #include "../include/asm/disabled-features.h"
H A Dcpu.c14 * Check for obligatory CPU features and abort if the features are not
91 puts("This kernel requires the following features " validate_cpu()
H A Dcpucheck.c12 * Check for obligatory CPU features and abort if the features are not
28 #include <asm/required-features.h>
/linux-4.4.14/arch/x86/include/asm/
H A Ddisabled-features.h4 /* These features, although they might be available in a CPU
32 * Make sure to add features to the correct mask
H A Dmshyperv.h9 u32 features; member in struct:ms_hyperv_info
H A Dcpufeature.h8 #include <asm/required-features.h>
12 #include <asm/disabled-features.h>
24 /* Intel-defined CPU features, CPUID level 0x00000001 (edx), word 0 */
57 /* AMD-defined CPU features, CPUID level 0x80000001, word 1 */
70 /* Transmeta-defined CPU features, CPUID level 0x80860001, word 2 */
75 /* Other features, Linux-defined mapping, word 3 */
110 /* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */
143 /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */
183 * Auxiliary flags: Linux defined - For features scattered in various
222 /* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx), word 9 */
247 /* Extended state features, CPUID level 0x0000000d:1 (eax), word 10 */
259 /* AMD-defined CPU features, CPUID level 0x80000008 (ebx), word 13 */
334 * This macro is for detection of features which need kernel
337 * testing of CPU features, like in hypervisor code where you are
417 * Static testing of CPU features. Used the same as boot_cpu_has().
H A Drequired-features.h6 kernel dies. Make sure to assign features to the proper mask!
/linux-4.4.14/include/xen/interface/
H A Dversion.h57 /* Declares the features reported by XENVER_get_features. */
58 #include <xen/interface/features.h>
H A Delfnote.h123 * The features supported/required by this kernel (string).
126 * features.h, without the "XENFEAT_" prefix) separated by '|'
183 * The features supported by this kernel (numeric).
186 * kernel to specify support for features that older hypervisors don't
187 * know about. The set of features 4.2 and newer hypervisors will
H A Dfeatures.h2 * features.h
H A Dxenpmu.h56 * PMU features:
/linux-4.4.14/include/linux/
H A Dpci-ats.h32 int pci_enable_pasid(struct pci_dev *pdev, int features);
39 static inline int pci_enable_pasid(struct pci_dev *pdev, int features) pci_enable_pasid() argument
H A Dnetdev_features.h2 * Network device features.
74 * in Documentation/networking/netdev-features.txt.
145 /* List of features with software fallbacks. */
160 * If one device supports one of these features, then enable them
168 * If one device doesn't support one of these features, then disable it
174 * If upper/master device has these features disabled, they must be disabled
179 /* changeable features with no special hardware requirements */
H A Dvirtio_mmio.h54 /* Bitmask of the features supported by the device (host)
58 /* Device (host) features set selector - Write Only */
61 /* Bitmask of features activated by the driver (guest)
65 /* Activated features set selector - Write Only */
H A Dvirtio_config.h49 * @finalize_features: confirm what device features we'll be using.
95 /* Did you forget to fix assumptions on max features? */ __virtio_test_bit()
101 return vdev->features & BIT_ULL(fbit); __virtio_test_bit()
112 /* Did you forget to fix assumptions on max features? */ __virtio_set_bit()
118 vdev->features |= BIT_ULL(fbit); __virtio_set_bit()
129 /* Did you forget to fix assumptions on max features? */ __virtio_clear_bit()
135 vdev->features &= ~BIT_ULL(fbit); __virtio_clear_bit()
H A Dclockchips.h43 * Clock event features
50 * x86(64) specific (mis)features:
81 * @features: features
109 unsigned int features; member in struct:clock_event_device
H A Dif_vlan.h274 static inline bool vlan_hw_offload_capable(netdev_features_t features, vlan_hw_offload_capable() argument
277 if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX) vlan_hw_offload_capable()
279 if (proto == htons(ETH_P_8021AD) && features & NETIF_F_HW_VLAN_STAG_TX) vlan_hw_offload_capable()
465 if (skb->dev->features & NETIF_F_HW_VLAN_CTAG_TX) { vlan_get_tag()
610 * vlan_features_check - drop unsafe features for skb with multiple tags.
612 * @features: features to be checked
614 * Returns features without unsafe ones if the skb has multiple tags.
617 netdev_features_t features) vlan_features_check()
620 features = netdev_intersect_features(features, vlan_features_check()
628 return features; vlan_features_check()
616 vlan_features_check(const struct sk_buff *skb, netdev_features_t features) vlan_features_check() argument
H A Dinet_lro.h78 /* LRO features */
79 unsigned long features; member in struct:net_lro_mgr
H A Dserial_sci.h60 unsigned long capabilities; /* Port features/capabilities */
/linux-4.4.14/drivers/video/fbdev/matrox/
H A Dmatroxfb_misc.h14 return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post); PLL_calcclock()
H A Dmatroxfb_DAC1064.c180 } else if (minfo->crtc2.pixclock == minfo->features.pll.ref_freq) { g450_set_plls()
375 hw->DACreg[POS1064_XVREFCTRL] = minfo->features.DAC1064.xvrefctrl; DAC1064_init_1()
587 /* minfo->features.DAC1064.vco_freq_min = 120000; */ MGA1064_ramdac_init()
588 minfo->features.pll.vco_freq_min = 62000; MGA1064_ramdac_init()
589 minfo->features.pll.ref_freq = 14318; MGA1064_ramdac_init()
590 minfo->features.pll.feed_div_min = 100; MGA1064_ramdac_init()
591 minfo->features.pll.feed_div_max = 127; MGA1064_ramdac_init()
592 minfo->features.pll.in_div_min = 1; MGA1064_ramdac_init()
593 minfo->features.pll.in_div_max = 31; MGA1064_ramdac_init()
594 minfo->features.pll.post_shift_max = 3; MGA1064_ramdac_init()
595 minfo->features.DAC1064.xvrefctrl = DAC1064_XVREFCTRL_EXTERNAL; MGA1064_ramdac_init()
853 minfo->features.pll.vco_freq_min = 130000; /* my sample: >118 */ DBG()
855 minfo->features.pll.vco_freq_min = 62000;
857 if (!minfo->features.pll.ref_freq) {
858 minfo->features.pll.ref_freq = 27000;
860 minfo->features.pll.feed_div_min = 7;
861 minfo->features.pll.feed_div_max = 127;
862 minfo->features.pll.in_div_min = 1;
863 minfo->features.pll.in_div_max = 31;
864 minfo->features.pll.post_shift_max = 3;
865 minfo->features.DAC1064.xvrefctrl = DAC1064_XVREFCTRL_G100_DEFAULT;
H A Dmatroxfb_misc.c546 minfo->features.pll.ref_freq = 14318; parse_pins1()
556 minfo->features.pll.ref_freq = 14318; default_pins1()
570 minfo->features.pll.ref_freq = 14318; parse_pins2()
581 minfo->features.pll.ref_freq = 14318; default_pins2()
598 minfo->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000; parse_pins3()
611 minfo->features.pll.ref_freq = 27000; default_pins3()
629 minfo->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000; parse_pins4()
643 minfo->features.pll.ref_freq = 27000; default_pins4()
667 minfo->features.pll.ref_freq = (bd->pins[110] & 0x01) ? 14318 : 27000; parse_pins5()
701 minfo->features.pll.ref_freq = 27000; default_pins5()
/linux-4.4.14/arch/mips/pistachio/
H A Dirq.c16 #include <asm/cpu-features.h>
/linux-4.4.14/tools/virtio/linux/
H A Dvirtio_config.h15 return vdev->features & (1ULL << fbit); __virtio_test_bit()
26 vdev->features |= (1ULL << fbit); __virtio_set_bit()
37 vdev->features &= ~(1ULL << fbit); __virtio_clear_bit()
H A Dvirtio.h8 u64 features; member in struct:virtio_device
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
H A Dphy.c147 if (phy->features & genmii_setup_aneg()
227 if (phy->features & genmii_read_link()
511 /* Determine PHY features if needed */ emac_mii_phy_probe()
512 phy->features = def->features; emac_mii_phy_probe()
513 if (!phy->features) { emac_mii_phy_probe()
516 phy->features |= SUPPORTED_Autoneg; emac_mii_phy_probe()
518 phy->features |= SUPPORTED_10baseT_Half; emac_mii_phy_probe()
520 phy->features |= SUPPORTED_10baseT_Full; emac_mii_phy_probe()
522 phy->features |= SUPPORTED_100baseT_Half; emac_mii_phy_probe()
524 phy->features |= SUPPORTED_100baseT_Full; emac_mii_phy_probe()
528 phy->features |= SUPPORTED_1000baseT_Full; emac_mii_phy_probe()
530 phy->features |= SUPPORTED_1000baseT_Half; emac_mii_phy_probe()
532 phy->features |= SUPPORTED_MII; emac_mii_phy_probe()
536 phy->advertising = phy->features; emac_mii_phy_probe()
H A Dphy.h45 u32 features; /* Ethtool SUPPORTED_* defines or member in struct:mii_phy_def
56 u32 features; /* Copied from mii_phy_def.features member in struct:mii_phy
/linux-4.4.14/net/hsr/
H A Dhsr_device.c203 netdev_features_t features) hsr_features_recompute()
208 mask = features; hsr_features_recompute()
210 /* Mask out all features that, if supported by one device, should be hsr_features_recompute()
214 * that were in features originally, and also is in NETIF_F_ONE_FOR_ALL, hsr_features_recompute()
217 features &= ~NETIF_F_ONE_FOR_ALL; hsr_features_recompute()
219 features = netdev_increment_features(features, hsr_features_recompute()
220 port->dev->features, hsr_features_recompute()
223 return features; hsr_features_recompute()
227 netdev_features_t features) hsr_fix_features()
231 return hsr_features_recompute(hsr, features); hsr_fix_features()
403 dev->features = dev->hw_features; hsr_dev_setup()
406 dev->features |= NETIF_F_LLTX; hsr_dev_setup()
410 dev->features |= NETIF_F_VLAN_CHALLENGED; hsr_dev_setup()
414 dev->features |= NETIF_F_NETNS_LOCAL; hsr_dev_setup()
202 hsr_features_recompute(struct hsr_priv *hsr, netdev_features_t features) hsr_features_recompute() argument
226 hsr_fix_features(struct net_device *dev, netdev_features_t features) hsr_fix_features() argument
/linux-4.4.14/drivers/net/phy/
H A 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,
H A Daquantia.c124 .features = PHY_AQUANTIA_FEATURES,
137 .features = PHY_AQUANTIA_FEATURES,
150 .features = PHY_AQUANTIA_FEATURES,
163 .features = PHY_AQUANTIA_FEATURES,
H A Ddavicom.c152 .features = PHY_BASIC_FEATURES,
164 .features = PHY_BASIC_FEATURES,
176 .features = PHY_BASIC_FEATURES,
188 .features = PHY_BASIC_FEATURES,
H A Dbcm63xx.c52 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
65 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
H A 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,
H A 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 |
585 .features = PHY_BASIC_FEATURES |
598 .features = PHY_BASIC_FEATURES |
H A Dcicada.c110 .features = PHY_GBIT_FEATURES,
122 .features = PHY_GBIT_FEATURES,
H A Dste10Xp.c89 .features = PHY_BASIC_FEATURES | SUPPORTED_Pause,
103 .features = PHY_BASIC_FEATURES | SUPPORTED_Pause,
H A Dmicrel.c637 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
652 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause |
669 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause |
686 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
703 .features = PHY_BASIC_FEATURES |
720 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
737 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
753 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
769 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
783 .features = (PHY_GBIT_FEATURES | SUPPORTED_Pause),
800 .features = (PHY_GBIT_FEATURES | SUPPORTED_Pause),
815 .features = (SUPPORTED_Pause | SUPPORTED_Asym_Pause),
827 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause),
H A Dsmsc.c158 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
181 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
204 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
227 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
249 .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause
H A Dicplus.c218 .features = PHY_BASIC_FEATURES,
229 .features = PHY_GBIT_FEATURES | SUPPORTED_Pause |
241 .features = PHY_BASIC_FEATURES | SUPPORTED_Pause |
H A Damd.c68 .features = PHY_BASIC_FEATURES,
H A Dlxt.c274 .features = PHY_BASIC_FEATURES,
286 .features = PHY_BASIC_FEATURES,
297 .features = PHY_BASIC_FEATURES,
307 .features = PHY_BASIC_FEATURES,
H A Dbcm7xxx.c320 .features = PHY_GBIT_FEATURES | \
341 .features = PHY_GBIT_FEATURES |
354 .features = PHY_GBIT_FEATURES |
367 .features = PHY_GBIT_FEATURES |
380 .features = PHY_BASIC_FEATURES |
/linux-4.4.14/drivers/vhost/
H A Dtest.c242 static int vhost_test_set_features(struct vhost_test *n, u64 features) vhost_test_set_features() argument
247 if ((features & (1 << VHOST_F_LOG_ALL)) && vhost_test_set_features()
254 vq->acked_features = features; vhost_test_set_features()
267 u64 features; vhost_test_ioctl() local
275 features = VHOST_FEATURES; vhost_test_ioctl()
276 if (copy_to_user(featurep, &features, sizeof features)) vhost_test_ioctl()
281 if (copy_from_user(&features, featurep, sizeof features)) vhost_test_ioctl()
284 if (features & ~VHOST_FEATURES) vhost_test_ioctl()
287 return vhost_test_set_features(n, features); vhost_test_ioctl()
/linux-4.4.14/arch/mips/include/asm/sibyte/
H A Dsb1250_defs.h45 * Macros for feature tests, used to enable include file features
46 * for chip features only present in certain chip revisions.
50 * "all features."
60 * True if header features for that revision or later of
62 * (Use this to bracket #defines for features present in a given
87 * True if header features for (any revision of) that chip type
89 * #defines for features specific to a given chip type.)
143 /* True if header features enabled for (any revision of) that chip type. */
153 /* True if header features enabled for that rev or later, inclusive. */
158 /* True if header features enabled for exactly that rev. */
162 /* True if header features enabled for that rev or before, inclusive. */
/linux-4.4.14/tools/virtio/
H A Dvirtio_test.c64 unsigned long long features = dev->vdev.features; vhost_vq_setup() local
72 r = ioctl(dev->control, VHOST_SET_FEATURES, &features); vhost_vq_setup()
113 static void vdev_info_init(struct vdev_info* dev, unsigned long long features) vdev_info_init() argument
117 dev->vdev.features = features; vdev_info_init()
263 unsigned long long features = (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | main() local
277 features &= ~(1ULL << VIRTIO_RING_F_EVENT_IDX); main()
283 features &= ~(1ULL << VIRTIO_RING_F_INDIRECT_DESC); main()
286 features &= ~(1ULL << VIRTIO_F_VERSION_1); main()
298 vdev_info_init(&dev, features); main()
/linux-4.4.14/drivers/input/tablet/
H A Dhanwang.c74 const struct hanwang_features *features; member in struct:hanwang
130 enum hanwang_tablet_type type = hanwang->features->type; hanwang_parse_packet()
218 hanwang->features->pid); hanwang_parse_packet()
325 hanwang->features = &features_array[i]; get_features()
355 hanwang->data = usb_alloc_coherent(dev, hanwang->features->pkg_len, hanwang_probe()
374 strlcpy(hanwang->name, hanwang->features->name, sizeof(hanwang->name)); hanwang_probe()
398 0, hanwang->features->max_x, 4, 0); hanwang_probe()
400 0, hanwang->features->max_y, 4, 0); hanwang_probe()
402 0, hanwang->features->max_tilt_x, 0, 0); hanwang_probe()
404 0, hanwang->features->max_tilt_y, 0, 0); hanwang_probe()
406 0, hanwang->features->max_pressure, 0, 0); hanwang_probe()
411 hanwang->data, hanwang->features->pkg_len, hanwang_probe()
425 fail2: usb_free_coherent(dev, hanwang->features->pkg_len, hanwang_probe()
440 hanwang->features->pkg_len, hanwang->data, hanwang_disconnect()
/linux-4.4.14/drivers/net/
H A Ddummy.c150 dev->features |= NETIF_F_SG | NETIF_F_FRAGLIST; dummy_setup()
151 dev->features |= NETIF_F_ALL_TSO | NETIF_F_UFO; dummy_setup()
152 dev->features |= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX; dummy_setup()
153 dev->features |= NETIF_F_GSO_ENCAP_ALL; dummy_setup()
154 dev->hw_features |= dev->features; dummy_setup()
155 dev->hw_enc_features |= dev->features; dummy_setup()
H A Dmacvlan.c577 if (lowerdev->features & NETIF_F_HW_L2FW_DOFFLOAD && macvlan_open()
801 dev->features = lowerdev->features & MACVLAN_FEATURES; macvlan_init()
802 dev->features |= ALWAYS_ON_FEATURES; macvlan_init()
952 netdev_features_t features) macvlan_fix_features()
955 netdev_features_t lowerdev_features = vlan->lowerdev->features; macvlan_fix_features()
958 features |= NETIF_F_ALL_FOR_ALL; macvlan_fix_features()
959 features &= (vlan->set_features | ~MACVLAN_FEATURES); macvlan_fix_features()
960 mask = features; macvlan_fix_features()
962 lowerdev_features &= (features | ~NETIF_F_LRO); macvlan_fix_features()
963 features = netdev_increment_features(lowerdev_features, features, mask); macvlan_fix_features()
964 features |= ALWAYS_ON_FEATURES; macvlan_fix_features()
965 features &= ~NETIF_F_NETNS_LOCAL; macvlan_fix_features()
967 return features; macvlan_fix_features()
951 macvlan_fix_features(struct net_device *dev, netdev_features_t features) macvlan_fix_features() argument
H A Dmacvtap.c344 netdev_features_t features = TAP_FEATURES; macvtap_handle_frame() local
364 features |= vlan->tap_features; macvtap_handle_frame()
365 if (netif_needs_gso(skb, features)) { macvtap_handle_frame()
366 struct sk_buff *segs = __skb_gso_segment(skb, features, false); macvtap_handle_frame()
391 !(features & NETIF_F_ALL_CSUM) && macvtap_handle_frame()
551 if ((dev->features & NETIF_F_HIGHDMA) && (dev->features & NETIF_F_SG)) macvtap_open()
1008 netdev_features_t features; set_offload() local
1015 features = vlan->dev->features; set_offload()
1042 features |= RX_OFFLOADS; set_offload()
1044 features &= ~RX_OFFLOADS; set_offload()
1046 /* tap_features are the same as features on tun/tap and set_offload()
1050 vlan->set_features = features; set_offload()
H A Dsungem_phy.c902 .features = MII_BASIC_FEATURES,
921 .features = MII_BASIC_FEATURES,
939 .features = MII_BASIC_FEATURES,
958 .features = MII_GBIT_FEATURES,
977 .features = MII_GBIT_FEATURES,
996 .features = MII_GBIT_FEATURES,
1016 .features = MII_GBIT_FEATURES,
1035 .features = MII_GBIT_FEATURES,
1054 .features = MII_GBIT_FEATURES,
1073 .features = MII_GBIT_FEATURES,
1103 .features = MII_GBIT_FEATURES,
1111 .features = MII_GBIT_FEATURES,
1119 .features = MII_GBIT_FEATURES,
1136 .features = MII_BASIC_FEATURES,
/linux-4.4.14/drivers/media/rc/
H A Dir-lirc-codec.c341 unsigned long features; ir_lirc_register() local
355 features = LIRC_CAN_REC_MODE2; ir_lirc_register()
357 features |= LIRC_CAN_SEND_PULSE; ir_lirc_register()
359 features |= LIRC_CAN_SET_TRANSMITTER_MASK; ir_lirc_register()
361 features |= LIRC_CAN_SET_SEND_CARRIER; ir_lirc_register()
363 features |= LIRC_CAN_SET_SEND_DUTY_CYCLE; ir_lirc_register()
367 features |= LIRC_CAN_SET_REC_CARRIER | ir_lirc_register()
371 features |= LIRC_CAN_USE_WIDEBAND_RECEIVER; ir_lirc_register()
374 features |= LIRC_CAN_MEASURE_CARRIER; ir_lirc_register()
377 features |= LIRC_CAN_SET_REC_TIMEOUT; ir_lirc_register()
382 drv->features = features; ir_lirc_register()
H A Dlirc_dev.c338 if (d->features == 0) lirc_register_driver()
339 d->features = LIRC_CAN_REC_LIRCCODE; lirc_register_driver()
597 result = put_user(ir->d.features, (__u32 __user *)arg); lirc_dev_fop_ioctl()
600 if (!(ir->d.features & LIRC_CAN_REC_MASK)) { lirc_dev_fop_ioctl()
606 (ir->d.features & LIRC_CAN_REC_MASK), lirc_dev_fop_ioctl()
610 if (!(ir->d.features & LIRC_CAN_REC_MASK)) { lirc_dev_fop_ioctl()
616 if (!result && !(LIRC_MODE2REC(mode) & ir->d.features)) lirc_dev_fop_ioctl()
627 if (!(ir->d.features & LIRC_CAN_SET_REC_TIMEOUT) || lirc_dev_fop_ioctl()
636 if (!(ir->d.features & LIRC_CAN_SET_REC_TIMEOUT) || lirc_dev_fop_ioctl()
/linux-4.4.14/include/linux/ceph/
H A Dceph_features.h80 static inline u64 ceph_sanitize_features(u64 features) ceph_sanitize_features() argument
82 if (features & CEPH_FEATURE_RESERVED) { ceph_sanitize_features()
86 return features; ceph_sanitize_features()
H A Dmsgr.h89 #define CEPH_MSGR_TAG_FEATURES 12 /* insufficient features */
99 __le64 features; /* supported feature bits */ member in struct:ceph_msg_connect
111 __le64 features; /* feature bits for this session */ member in struct:ceph_msg_connect_reply
/linux-4.4.14/arch/sparc/kernel/
H A Dirq.h46 /* The following definitions describe the individual platform features: */
61 /* generic clockevent features - see FEAT_* above */
62 int features; member in struct:sparc_config
H A Dtime_32.c126 ce->features = CLOCK_EVT_FEAT_PERIODIC; setup_timer_ce()
214 unsigned int features = CLOCK_EVT_FEAT_PERIODIC; register_percpu_ce() local
216 if (sparc_config.features & FEAT_L14_ONESHOT) register_percpu_ce()
217 features |= CLOCK_EVT_FEAT_ONESHOT; register_percpu_ce()
221 ce->features = features; register_percpu_ce()
328 if (sparc_config.features & FEAT_L10_CLOCKEVENT) sparc32_late_time_init()
330 if (sparc_config.features & FEAT_L10_CLOCKSOURCE) sparc32_late_time_init()
345 sparc_config.features = 0; time_init()
/linux-4.4.14/drivers/staging/iio/adc/
H A Dad7780.h17 * features a dual use data out ready DOUT/RDY output.
/linux-4.4.14/drivers/gpu/drm/rcar-du/
H A Drcar_du_drv.h54 * @features: device features (RCAR_DU_FEATURE_*)
61 unsigned int features; member in struct:rcar_du_device_info
104 return rcdu->info->features & feature; rcar_du_has()
H A Drcar_du_drv.c39 .features = 0,
60 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK
89 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK
111 .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK
/linux-4.4.14/drivers/pci/
H A Dats.c231 * @features: Features to enable
234 * whether the features are actually supported by the device and returns
237 int pci_enable_pasid(struct pci_dev *pdev, int features) pci_enable_pasid() argument
255 if ((supported & features) != features) pci_enable_pasid()
258 control = PCI_PASID_CTRL_ENABLE | features; pci_enable_pasid()
285 * pci_pasid_features - Check which PASID features are supported
289 * Otherwise is returns a bitmask with supported features. Current
290 * features reported are:
/linux-4.4.14/fs/btrfs/
H A Dsysfs.c51 enum btrfs_feature_set set, u64 features) set_features()
55 btrfs_set_super_compat_flags(disk_super, features); set_features()
57 btrfs_set_super_compat_ro_flags(disk_super, features); set_features()
59 btrfs_set_super_incompat_flags(disk_super, features); set_features()
100 u64 features = get_features(fs_info, fa->feature_set); btrfs_feature_attr_show() local
101 if (features & fa->feature_bit) btrfs_feature_attr_show()
115 u64 features, set, clear; btrfs_feature_attr_store() local
138 features = get_features(fs_info, fa->feature_set); btrfs_feature_attr_store()
141 if ((val && (features & fa->feature_bit)) || btrfs_feature_attr_store()
142 (!val && !(features & fa->feature_bit))) btrfs_feature_attr_store()
157 features = get_features(fs_info, fa->feature_set); btrfs_feature_attr_store()
159 features |= fa->feature_bit; btrfs_feature_attr_store()
161 features &= ~fa->feature_bit; btrfs_feature_attr_store()
162 set_features(fs_info, fa->feature_set, features); btrfs_feature_attr_store()
182 u64 features; btrfs_feature_visible() local
185 features = get_features(fs_info, fa->feature_set); btrfs_feature_visible()
189 else if (!(features & fa->feature_bit)) btrfs_feature_visible()
220 .name = "features",
485 .name = "features", addrm_unknown_feature_attrs()
488 u64 features = get_features(fs_info, set); addrm_unknown_feature_attrs() local
489 features &= ~supported_feature_masks[set]; addrm_unknown_feature_attrs()
491 if (!features) addrm_unknown_feature_attrs()
498 if (!(features & (1ULL << i))) addrm_unknown_feature_attrs()
50 set_features(struct btrfs_fs_info *fs_info, enum btrfs_feature_set set, u64 features) set_features() argument
/linux-4.4.14/drivers/s390/virtio/
H A Dvirtio_ccw.c90 __u32 features; member in struct:virtio_feature_desc
726 struct virtio_feature_desc *features; virtio_ccw_get_features() local
735 features = kzalloc(sizeof(*features), GFP_DMA | GFP_KERNEL); virtio_ccw_get_features()
736 if (!features) { virtio_ccw_get_features()
741 features->index = 0; virtio_ccw_get_features()
744 ccw->count = sizeof(*features); virtio_ccw_get_features()
745 ccw->cda = (__u32)(unsigned long)features; virtio_ccw_get_features()
752 rc = le32_to_cpu(features->features); virtio_ccw_get_features()
758 features->index = 1; virtio_ccw_get_features()
761 ccw->count = sizeof(*features); virtio_ccw_get_features()
762 ccw->cda = (__u32)(unsigned long)features; virtio_ccw_get_features()
765 rc |= (u64)le32_to_cpu(features->features) << 32; virtio_ccw_get_features()
768 kfree(features); virtio_ccw_get_features()
776 struct virtio_feature_desc *features; virtio_ccw_finalize_features() local
791 features = kzalloc(sizeof(*features), GFP_DMA | GFP_KERNEL); virtio_ccw_finalize_features()
792 if (!features) { virtio_ccw_finalize_features()
796 /* Give virtio_ring a chance to accept features. */ virtio_ccw_finalize_features()
799 features->index = 0; virtio_ccw_finalize_features()
800 features->features = cpu_to_le32((u32)vdev->features); virtio_ccw_finalize_features()
804 ccw->count = sizeof(*features); virtio_ccw_finalize_features()
805 ccw->cda = (__u32)(unsigned long)features; virtio_ccw_finalize_features()
813 features->index = 1; virtio_ccw_finalize_features()
814 features->features = cpu_to_le32(vdev->features >> 32); virtio_ccw_finalize_features()
818 ccw->count = sizeof(*features); virtio_ccw_finalize_features()
819 ccw->cda = (__u32)(unsigned long)features; virtio_ccw_finalize_features()
823 kfree(features); virtio_ccw_finalize_features()
H A Dkvm_virtio.c86 u32 features = 0; kvm_get_features() local
92 features |= (1 << i); kvm_get_features()
93 return features; kvm_get_features()
100 /* Second half of bitmap is features we accept. */ kvm_finalize_features()
103 /* Give virtio_ring a chance to accept features. */ kvm_finalize_features()
106 /* Make sure we don't have any features > 32 bits! */ kvm_finalize_features()
107 BUG_ON((u32)vdev->features != vdev->features); kvm_finalize_features()
110 bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; kvm_finalize_features()
161 * features.
/linux-4.4.14/net/ipv4/
H A Dudp_offload.c29 netdev_features_t features, __skb_udp_tunnel_segment()
31 netdev_features_t features), __skb_udp_tunnel_segment()
63 (skb->dev->features & __skb_udp_tunnel_segment()
67 enc_features = skb->dev->hw_enc_features & features; __skb_udp_tunnel_segment()
141 netdev_features_t features, skb_udp_tunnel_segment()
149 netdev_features_t features); skb_udp_tunnel_segment()
169 segs = __skb_udp_tunnel_segment(skb, features, gso_inner_segment, skb_udp_tunnel_segment()
179 netdev_features_t features) udp4_ufo_fragment()
190 segs = skb_udp_tunnel_segment(skb, features, false); udp4_ufo_fragment()
201 if (skb_gso_ok(skb, features | NETIF_F_GSO_ROBUST)) { udp4_ufo_fragment()
239 segs = skb_segment(skb, features); udp4_ufo_fragment()
28 __skb_udp_tunnel_segment(struct sk_buff *skb, netdev_features_t features, struct sk_buff *(*gso_inner_segment)(struct sk_buff *skb, netdev_features_t features), __be16 new_protocol, bool is_ipv6) __skb_udp_tunnel_segment() argument
140 skb_udp_tunnel_segment(struct sk_buff *skb, netdev_features_t features, bool is_ipv6) skb_udp_tunnel_segment() argument
178 udp4_ufo_fragment(struct sk_buff *skb, netdev_features_t features) udp4_ufo_fragment() argument
H A Dtcp_offload.c33 netdev_features_t features) tcp4_gso_segment()
51 return tcp_gso_segment(skb, features); tcp4_gso_segment()
55 netdev_features_t features) tcp_gso_segment()
84 if (skb_gso_ok(skb, features | NETIF_F_GSO_ROBUST)) { tcp_gso_segment()
115 segs = skb_segment(skb, features); tcp_gso_segment()
32 tcp4_gso_segment(struct sk_buff *skb, netdev_features_t features) tcp4_gso_segment() argument
54 tcp_gso_segment(struct sk_buff *skb, netdev_features_t features) tcp_gso_segment() argument
/linux-4.4.14/drivers/net/wireless/b43legacy/
H A Ddebugfs.h7 enum b43legacy_dyndbg { /* Dynamic debugging features */
49 /* Enabled/Disabled list for the dynamic debugging features. */
/linux-4.4.14/drivers/net/wireless/b43/
H A Ddebugfs.h7 enum b43_dyndbg { /* Dynamic debugging features */
70 /* Enabled/Disabled list for the dynamic debugging features. */
/linux-4.4.14/arch/s390/kernel/
H A Dprocessor.c47 * cpu_have_feature - Test CPU features on module initialization
74 seq_puts(m, "features\t: "); show_cpuinfo()
/linux-4.4.14/net/ipv6/
H A Dtcpv6_offload.c45 netdev_features_t features) tcp6_gso_segment()
65 return tcp_gso_segment(skb, features); tcp6_gso_segment()
44 tcp6_gso_segment(struct sk_buff *skb, netdev_features_t features) tcp6_gso_segment() argument
H A Dudp_offload.c21 netdev_features_t features) udp6_ufo_fragment()
37 if (skb_gso_ok(skb, features | NETIF_F_GSO_ROBUST)) { udp6_ufo_fragment()
65 segs = skb_udp_tunnel_segment(skb, features, true); udp6_ufo_fragment()
122 segs = skb_segment(skb, features); udp6_ufo_fragment()
20 udp6_ufo_fragment(struct sk_buff *skb, netdev_features_t features) udp6_ufo_fragment() argument
/linux-4.4.14/drivers/scsi/aic7xxx/
H A Daic7xxx_pci.c795 if ((ahc->features & AHC_ULTRA2) != 0) ahc_pci_config()
811 if ((ahc->features & AHC_DT) != 0) { ahc_pci_config()
828 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_pci_config()
866 if ((ahc->features & AHC_ULTRA) != 0) { ahc_pci_config()
872 ahc->features &= ~AHC_ULTRA; ahc_pci_config()
884 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_pci_config()
942 if ((ahc->features & AHC_DT) != 0) { ahc_pci_config()
953 if ((ahc->features & AHC_MULTI_FUNC) != 0) ahc_pci_config()
956 if ((ahc->features & AHC_ULTRA2) != 0) ahc_pci_config()
988 if ((ahc->features & AHC_ULTRA2) != 0) ahc_ext_scbram_present()
1017 if (ahc->features & AHC_MULTI_FUNC) { ahc_scbram_config()
1029 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_scbram_config()
1131 if ((ahc->features & AHC_LARGE_SCBS) != 0) { ahc_probe_ext_scbram()
1387 if ((ahc->features & AHC_SPIOCAP) != 0) { check_extport()
1455 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_parse_pci_eeprom()
1497 if (ahc->features & AHC_ULTRA ahc_parse_pci_eeprom()
1549 || (ahc->features & AHC_NEW_TERMCTL) != 0) { configure_termination()
1564 if ((ahc->features & AHC_NEW_TERMCTL) != 0) { configure_termination()
1589 } else if ((ahc->features & AHC_SPIOCAP) != 0) { configure_termination()
1602 if ((ahc->features & AHC_WIDE) == 0) configure_termination()
1606 && (ahc->features & AHC_ULTRA2) == 0) { configure_termination()
1611 if ((ahc->features & AHC_WIDE) != 0) configure_termination()
1641 if ((ahc->features & AHC_ULTRA2) == 0 configure_termination()
1660 if ((ahc->features & AHC_WIDE) != 0 configure_termination()
1680 if ((ahc->features & AHC_ULTRA2) != 0) configure_termination()
1726 (ahc->features & AHC_ULTRA2) ? "Primary " configure_termination()
1731 && (ahc->features & AHC_WIDE) != 0) { configure_termination()
1736 (ahc->features & AHC_ULTRA2) configure_termination()
1746 if ((ahc->features & AHC_WIDE) != 0) configure_termination()
1843 if ((ahc->features & AHC_SPIOCAP) != 0 ahc_acquire_seeprom()
1882 } else if ((ahc->features & AHC_ULTRA2) != 0) { write_brdctl()
1892 if ((ahc->features & AHC_ULTRA2) != 0) write_brdctl()
1898 if ((ahc->features & AHC_ULTRA2) != 0) write_brdctl()
1915 } else if ((ahc->features & AHC_ULTRA2) != 0) { read_brdctl()
1998 if ((ahc->features & AHC_DT) != 0) { ahc_pci_chip_init()
2009 if ((ahc->features & AHC_MULTI_FUNC) != 0) ahc_pci_chip_init()
2012 if ((ahc->features & AHC_ULTRA2) != 0) ahc_pci_chip_init()
2061 ahc->features = AHC_AIC7850_FE; ahc_aic785X_setup()
2079 ahc->features = AHC_AIC7860_FE; ahc_aic7860_setup()
2096 ahc->features |= AHC_REMOVABLE; ahc_apa1480_setup()
2106 ahc->features = AHC_AIC7870_FE; ahc_aic7870_setup()
2117 ahc->features |= AHC_HVD; ahc_aic7870h_setup()
2138 ahc->features |= AHC_HVD; ahc_aha394Xh_setup()
2170 ahc->features |= AHC_HVD; ahc_aha494Xh_setup()
2184 ahc->features = AHC_AIC7880_FE; ahc_aic7880_setup()
2201 ahc->features |= AHC_HVD; ahc_aic7880h_setup()
2231 ahc->features |= AHC_HVD; ahc_aha394XUh_setup()
2256 ahc->features = AHC_AIC7890_FE; ahc_aic7890_setup()
2271 ahc->features = AHC_AIC7892_FE; ahc_aic7892_setup()
2287 * The 'C' revision of the aic7895 has a few additional features. ahc_aic7895_setup()
2292 ahc->features = AHC_AIC7895C_FE; ahc_aic7895_setup()
2297 ahc->features = AHC_AIC7895_FE; ahc_aic7895_setup()
2339 ahc->features |= AHC_HVD; ahc_aic7895h_setup()
2352 ahc->features = AHC_AIC7896_FE; ahc_aic7896_setup()
2367 ahc->features = AHC_AIC7899_FE; ahc_aic7899_setup()
2382 ahc->features |= AHC_REMOVABLE; ahc_aha29160C_setup()
H A Daic7xxx_core.c317 if ((ahc->features & AHC_ULTRA2) != 0) ahc_pause_bug_fix()
642 if ((ahc->features & AHC_QUEUE_REGS) != 0) { ahc_queue_scb()
645 if ((ahc->features & AHC_AUTOPAUSE) == 0) ahc_queue_scb()
648 if ((ahc->features & AHC_AUTOPAUSE) == 0) ahc_queue_scb()
793 if (intstat == 0xFF && (ahc->features & AHC_REMOVABLE) != 0) { ahc_intr()
843 if ((ahc->features & AHC_CMD_CHAN) != 0) { ahc_restart()
1324 if ((ahc->features & AHC_DT) == 0) { ahc_handle_seqint()
1431 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_handle_seqint()
1544 if ((ahc->features & AHC_TWIN) != 0 ahc_handle_scsiint()
1551 if ((ahc->features & AHC_ULTRA2) != 0) ahc_handle_scsiint()
1557 if ((ahc->features & AHC_TWIN) != 0) { ahc_handle_scsiint()
1581 if ((ahc->features & AHC_ULTRA2) != 0 ahc_handle_scsiint()
1671 if ((ahc->features & AHC_DT) != 0) { ahc_handle_scsiint()
1687 if ((ahc->features & AHC_DT) != 0 ahc_handle_scsiint()
2046 if ((ahc->features & AHC_DT) != 0) ahc_clear_critical_section()
2062 if ((ahc->features & AHC_DT) != 0) { ahc_clear_critical_section()
2223 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_devlimited_syncrate()
2232 } else if ((ahc->features & AHC_ULTRA) != 0) { ahc_devlimited_syncrate()
2276 if ((ahc->features & AHC_DT) == 0) ahc_find_syncrate()
2286 if ((ahc->features & (AHC_DT | AHC_ULTRA2)) == 0 ahc_find_syncrate()
2289 if ((ahc->features & (AHC_DT | AHC_ULTRA2 | AHC_ULTRA)) == 0 ahc_find_syncrate()
2301 if ((ahc->features & AHC_ULTRA2) != 0 ahc_find_syncrate()
2332 || ((ahc->features & AHC_ULTRA2) != 0 ahc_find_syncrate()
2351 if ((ahc->features & AHC_ULTRA2) != 0) ahc_find_period()
2357 if ((ahc->features & AHC_DT) == 0 && maxsync < AHC_SYNCRATE_ULTRA2) ahc_find_period()
2359 if ((ahc->features & (AHC_DT | AHC_ULTRA2)) == 0 ahc_find_period()
2362 if ((ahc->features & (AHC_DT | AHC_ULTRA2 | AHC_ULTRA)) == 0 ahc_find_period()
2370 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_find_period()
2398 } else if ((ahc->features & AHC_ULTRA2) != 0) { ahc_validate_offset()
2425 if (ahc->features & AHC_WIDE) { ahc_validate_width()
2464 if ((ahc->features & AHC_WIDE) != 0) ahc_update_neg_request()
2540 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_set_syncrate()
2578 if ((ahc->features & AHC_ULTRA2) != 0) ahc_set_syncrate()
2782 && (ahc->features & AHC_MULTI_TID) != 0 ahc_fetch_devinfo()
2787 } else if ((ahc->features & AHC_ULTRA2) != 0) ahc_fetch_devinfo()
2864 if ((ahc->features & AHC_DT) == 0) ahc_assert_atn()
3014 if ((ahc->features & AHC_WIDE) != 0) ahc_build_transfer_msg()
4311 if ((ahc->features & AHC_ULTRA2) == 0) { ahc_reinitialize_dataptrs()
4436 ahc->features = AHC_FENONE; ahc_alloc()
4648 ahc->features |= AHC_WIDE; ahc_reset()
4652 ahc->features |= AHC_TWIN; ahc_reset()
4667 if ((ahc->features & AHC_TWIN) != 0) { ahc_reset()
5048 if ((ahc->features & AHC_TWIN) != 0) ahc_controller_info()
5058 if ((ahc->features & AHC_ULTRA) != 0) { ahc_controller_info()
5060 } else if ((ahc->features & AHC_DT) != 0) { ahc_controller_info()
5062 } else if ((ahc->features & AHC_ULTRA2) != 0) { ahc_controller_info()
5065 if ((ahc->features & AHC_WIDE) != 0) { ahc_controller_info()
5096 if (ahc->features & AHC_TWIN) { ahc_chip_init()
5107 if ((ahc->features & AHC_ULTRA2) != 0) ahc_chip_init()
5116 if ((ahc->features & AHC_ULTRA2) != 0) ahc_chip_init()
5124 if ((ahc->features & AHC_ULTRA2) != 0) ahc_chip_init()
5152 if ((ahc->features & AHC_MULTI_TID) != 0) { ahc_chip_init()
5186 if ((ahc->features & AHC_HS_MAILBOX) != 0) ahc_chip_init()
5190 if ((ahc->features & AHC_TARGETMODE) != 0) { ahc_chip_init()
5197 if ((ahc->features & AHC_QUEUE_REGS) != 0) { ahc_chip_init()
5247 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_chip_init()
5293 if ((ahc->features & AHC_MORE_SRAM) != 0) { ahc_init()
5323 * Only allow target mode features if this unit has them enabled. ahc_init()
5326 ahc->features &= ~AHC_TARGETMODE; ahc_init()
5358 if ((ahc->features & AHC_TARGETMODE) != 0) ahc_init()
5389 if ((ahc->features & AHC_TARGETMODE) != 0) { ahc_init()
5420 if ((ahc->features & AHC_TWIN) != 0) { ahc_init()
5449 if (ahc->features & AHC_TWIN) { ahc_init()
5471 if ((ahc->features & AHC_ULTRA) != 0) ahc_init()
5476 if ((ahc->features & (AHC_ULTRA|AHC_ULTRA2)) != 0) ahc_init()
5481 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0) ahc_init()
5494 if (i > 7 && (ahc->features & AHC_TWIN) != 0) { ahc_init()
5504 if ((ahc->features & AHC_WIDE) != 0) ahc_init()
5520 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_init()
5540 if ((ahc->features & AHC_DT) != 0) ahc_init()
5549 && (ahc->features & AHC_DT) != 0) ahc_init()
5570 && (ahc->features & AHC_WIDE) != 0) ahc_init()
5573 if ((ahc->features & AHC_DT) != 0) ahc_init()
5643 && (intstat != 0xFF || (ahc->features & AHC_REMOVABLE) == 0) ahc_pause_and_flushwork()
5823 if ((ahc->features & AHC_QUEUE_REGS) != 0) { ahc_qinfifo_requeue_tail()
5852 if ((ahc->features & AHC_QUEUE_REGS) != 0) { ahc_qinfifo_count()
5878 have_qregs = (ahc->features & AHC_QUEUE_REGS) != 0; ahc_search_qinfifo()
5948 if ((ahc->features & AHC_QUEUE_REGS) != 0) { ahc_search_qinfifo()
6533 if ((ahc->features & AHC_TWIN) != 0 ahc_reset_channel()
6588 max_scsiid = (ahc->features & AHC_WIDE) ? 15 : 7; ahc_reset_channel()
6953 ahc_name(ahc), ahc->features, ahc->bugs, ahc->flags); ahc_loadseq()
7062 if ((ahc->features & AHC_CMD_CHAN) == 0 ahc_download_instr()
7079 if ((ahc->features & AHC_ULTRA2) != 0) { ahc_download_instr()
7205 if ((ahc->features & AHC_DT) != 0) ahc_dump_card_state()
7235 if ((ahc->features & AHC_QUEUE_REGS) != 0) { ahc_dump_card_state()
7328 maxtarget = (ahc->features & (AHC_WIDE|AHC_TWIN)) ? 15 : 7; ahc_dump_card_state()
7359 if ((ahc->features & AHC_TARGETMODE) == 0) ahc_find_tmode_devs()
7373 max_id = (ahc->features & AHC_WIDE) ? 16 : 8; ahc_find_tmode_devs()
7441 if ((ahc->features & AHC_MULTIROLE) != 0) { ahc_handle_en_lun()
7443 if ((ahc->features & AHC_MULTI_TID) != 0 ahc_handle_en_lun()
7464 } else if ((ahc->features & AHC_MULTI_TID) == 0 ahc_handle_en_lun()
7494 if ((ahc->features & AHC_MULTIROLE) == 0) ahc_handle_en_lun()
7586 if ((ahc->features & AHC_MULTI_TID) != 0) { ahc_handle_en_lun()
7616 if ((ahc->features & AHC_TWIN) == 0) ahc_handle_en_lun()
7709 if (ahc->features & AHC_MULTI_TID) { ahc_handle_en_lun()
7744 if ((ahc->features & AHC_MULTIROLE) == 0) { ahc_handle_en_lun()
7771 if ((ahc->features & AHC_MULTI_TID) == 0) ahc_update_scsiid()
7780 if ((ahc->features & AHC_ULTRA2) != 0) ahc_update_scsiid()
7797 if ((ahc->features & AHC_ULTRA2) != 0) ahc_update_scsiid()
7813 if ((ahc->features & AHC_AUTOPAUSE) != 0) ahc_run_tqinfifo()
7839 if ((ahc->features & AHC_HS_MAILBOX) != 0) { ahc_run_tqinfifo()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c88 gro_enabled = priv->dev->features & NETIF_F_GRO; mlx4_en_test_loopback()
90 mlx4_en_update_loopback_state(priv->dev, priv->dev->features); mlx4_en_test_loopback()
91 priv->dev->features &= ~NETIF_F_GRO; mlx4_en_test_loopback()
115 priv->dev->features |= NETIF_F_GRO; mlx4_en_test_loopback()
117 mlx4_en_update_loopback_state(priv->dev, priv->dev->features); mlx4_en_test_loopback()
H A Den_netdev.c2177 if (mlx4_en_reset_config(dev, config, dev->features)) { mlx4_en_hwtstamp_set()
2207 netdev_features_t features) mlx4_en_fix_features()
2216 if (features & NETIF_F_HW_VLAN_CTAG_RX && mlx4_en_fix_features()
2218 features |= NETIF_F_HW_VLAN_STAG_RX; mlx4_en_fix_features()
2220 features &= ~NETIF_F_HW_VLAN_STAG_RX; mlx4_en_fix_features()
2222 return features; mlx4_en_fix_features()
2226 netdev_features_t features) mlx4_en_set_features()
2232 if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_RXFCS)) { mlx4_en_set_features()
2234 (features & NETIF_F_RXFCS) ? "ON" : "OFF"); mlx4_en_set_features()
2238 if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_RXALL)) { mlx4_en_set_features()
2239 u8 ignore_fcs_value = (features & NETIF_F_RXALL) ? 1 : 0; mlx4_en_set_features()
2249 if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_HW_VLAN_CTAG_RX)) { mlx4_en_set_features()
2251 (features & NETIF_F_HW_VLAN_CTAG_RX) ? "ON" : "OFF"); mlx4_en_set_features()
2255 if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_HW_VLAN_CTAG_TX)) mlx4_en_set_features()
2257 (features & NETIF_F_HW_VLAN_CTAG_TX) ? "ON" : "OFF"); mlx4_en_set_features()
2259 if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_HW_VLAN_STAG_TX)) mlx4_en_set_features()
2261 (features & NETIF_F_HW_VLAN_STAG_TX) ? "ON" : "OFF"); mlx4_en_set_features()
2263 if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_LOOPBACK)) { mlx4_en_set_features()
2265 (features & NETIF_F_LOOPBACK) ? "ON" : "OFF"); mlx4_en_set_features()
2266 mlx4_en_update_loopback_state(netdev, features); mlx4_en_set_features()
2271 features); mlx4_en_set_features()
2449 netdev_features_t features) mlx4_en_features_check()
2451 features = vlan_features_check(skb, features); mlx4_en_features_check()
2452 return vxlan_features_check(skb, features); mlx4_en_features_check()
2958 * Set driver features mlx4_en_init_netdev()
2967 dev->features = dev->hw_features | NETIF_F_HIGHDMA | mlx4_en_init_netdev()
2974 dev->features |= NETIF_F_HW_VLAN_STAG_RX | mlx4_en_init_netdev()
3021 dev->features |= NETIF_F_GSO_UDP_TUNNEL; mlx4_en_init_netdev()
3033 mlx4_en_update_loopback_state(priv->dev, priv->dev->features); mlx4_en_init_netdev()
3095 netdev_features_t features) mlx4_en_reset_config()
3104 !DEV_FEATURE_CHANGED(dev, features, NETIF_F_HW_VLAN_CTAG_RX) && mlx4_en_reset_config()
3105 !DEV_FEATURE_CHANGED(dev, features, NETIF_F_RXFCS)) mlx4_en_reset_config()
3108 if (DEV_FEATURE_CHANGED(dev, features, NETIF_F_HW_VLAN_CTAG_RX) && mlx4_en_reset_config()
3109 (features & NETIF_F_HW_VLAN_CTAG_RX) && mlx4_en_reset_config()
3124 ts_config.rx_filter, !!(features & NETIF_F_HW_VLAN_CTAG_RX)); mlx4_en_reset_config()
3129 if (DEV_FEATURE_CHANGED(dev, features, NETIF_F_HW_VLAN_CTAG_RX)) { mlx4_en_reset_config()
3130 if (features & NETIF_F_HW_VLAN_CTAG_RX) mlx4_en_reset_config()
3131 dev->features |= NETIF_F_HW_VLAN_CTAG_RX; mlx4_en_reset_config()
3133 dev->features &= ~NETIF_F_HW_VLAN_CTAG_RX; mlx4_en_reset_config()
3139 dev->features |= NETIF_F_HW_VLAN_CTAG_RX; mlx4_en_reset_config()
3141 dev->features &= ~NETIF_F_HW_VLAN_CTAG_RX; mlx4_en_reset_config()
3144 if (DEV_FEATURE_CHANGED(dev, features, NETIF_F_RXFCS)) { mlx4_en_reset_config()
3145 if (features & NETIF_F_RXFCS) mlx4_en_reset_config()
3146 dev->features |= NETIF_F_RXFCS; mlx4_en_reset_config()
3148 dev->features &= ~NETIF_F_RXFCS; mlx4_en_reset_config()
3156 if (dev->features & NETIF_F_HW_VLAN_CTAG_RX) mlx4_en_reset_config()
3158 dev->features &= ~NETIF_F_HW_VLAN_CTAG_RX; mlx4_en_reset_config()
2206 mlx4_en_fix_features(struct net_device *netdev, netdev_features_t features) mlx4_en_fix_features() argument
2225 mlx4_en_set_features(struct net_device *netdev, netdev_features_t features) mlx4_en_set_features() argument
2447 mlx4_en_features_check(struct sk_buff *skb, struct net_device *dev, netdev_features_t features) mlx4_en_features_check() argument
3093 mlx4_en_reset_config(struct net_device *dev, struct hwtstamp_config ts_config, netdev_features_t features) mlx4_en_reset_config() argument
/linux-4.4.14/include/net/
H A Dvxlan.h212 netdev_features_t features) vxlan_features_check()
217 return features; vxlan_features_check()
227 return features;; vxlan_features_check()
235 return features & ~(NETIF_F_ALL_CSUM | NETIF_F_GSO_MASK); vxlan_features_check()
237 return features; vxlan_features_check()
211 vxlan_features_check(struct sk_buff *skb, netdev_features_t features) vxlan_features_check() argument
H A Dgro_cells.h22 if (!gcells->cells || skb_cloned(skb) || !(dev->features & NETIF_F_GRO)) { gro_cells_receive()
/linux-4.4.14/drivers/mfd/
H A Dtwl-core.c678 unsigned num_consumers, unsigned long features) add_regulator_linked()
695 tmp->features |= features; add_regulator_linked()
698 drv_data.features = features; add_regulator_linked()
712 unsigned long features) add_regulator()
714 return add_regulator_linked(num, pdata, NULL, 0, features); add_regulator()
725 unsigned long features) add_children()
809 features); add_children()
815 features); add_children()
821 features); add_children()
870 features); add_children()
875 features); add_children()
880 features); add_children()
885 features); add_children()
890 features); add_children()
895 features); add_children()
899 child = add_regulator((features & TWL4030_VAUX2) add_children()
902 pdata->vaux2, features); add_children()
907 features); add_children()
912 features); add_children()
917 features); add_children()
923 if (IS_ENABLED(CONFIG_REGULATOR_TWL4030) && !(features & TPS_SUBSET) add_children()
926 features); add_children()
931 features); add_children()
936 features); add_children()
941 features); add_children()
946 features); add_children()
951 features); add_children()
957 !(features & (TPS_SUBSET | TWL5031))) { add_children()
676 add_regulator_linked(int num, struct regulator_init_data *pdata, struct regulator_consumer_supply *consumers, unsigned num_consumers, unsigned long features) add_regulator_linked() argument
711 add_regulator(int num, struct regulator_init_data *pdata, unsigned long features) add_regulator() argument
724 add_children(struct twl4030_platform_data *pdata, unsigned irq_base, unsigned long features) add_children() argument
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Ddss_features.c44 const enum dss_feat_id *features; member in struct:omap_dss_features
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,
892 const enum dss_feat_id *features = omap_current_dss_features->features; dss_has_feature() local
896 if (features[i] == id) dss_has_feature()
/linux-4.4.14/drivers/input/mouse/
H A Dlogips2pp.c24 /* Logitech mouse features */
35 u16 features; member in struct:ps2pp_info
271 if (model_info->features & PS2PP_SIDE_BTN) ps2pp_set_model_properties()
274 if (model_info->features & PS2PP_EXTRA_BTN) ps2pp_set_model_properties()
277 if (model_info->features & PS2PP_TASK_BTN) ps2pp_set_model_properties()
280 if (model_info->features & PS2PP_NAV_BTN) { ps2pp_set_model_properties()
285 if (model_info->features & PS2PP_WHEEL) ps2pp_set_model_properties()
288 if (model_info->features & PS2PP_HWHEEL) ps2pp_set_model_properties()
362 /* Enable features */ ps2pp_init()
/linux-4.4.14/drivers/clk/ti/
H A Dclk.c411 * ti_clk_setup_features - setup clock features flags
412 * @features: features definition to use
414 * Initializes the clock driver features flags based on platform
417 void __init ti_clk_setup_features(struct ti_clk_features *features) ti_clk_setup_features() argument
419 memcpy(&ti_clk_features, features, sizeof(*features)); ti_clk_setup_features()
423 * ti_clk_get_features - get clock driver features flags
425 * Get TI clock driver features description. Returns a pointer
/linux-4.4.14/drivers/thermal/ti-soc-thermal/
H A Domap4-thermal-data.c70 .features = TI_BANDGAP_FEATURE_MODE_CONFIG |
205 .features = TI_BANDGAP_FEATURE_TSHUT |
238 .features = TI_BANDGAP_FEATURE_TSHUT |
H A Dti-bandgap.h117 * features. Please read TRMs for descriptive explanation on each bitfield.
312 * TI_BANDGAP_FEATURE_FREEZE_BIT - used when the bandgap device features
315 * TI_BANDGAP_FEATURE_COUNTER_DELAY - used when the bandgap device features
318 * TI_BANDGAP_FEATURE_HISTORY_BUFFER - used when the bandgap device features
344 ((b)->conf->features & TI_BANDGAP_FEATURE_ ## f)
348 * @features: a bitwise flag set to describe the device features
361 * of a bandgap device instance. It should describe which features this instance
367 unsigned int features; member in struct:ti_bandgap_data
H A Domap3-thermal-data.c80 .features = TI_BANDGAP_FEATURE_CLK_CTRL | TI_BANDGAP_FEATURE_UNRELIABLE,
153 .features = TI_BANDGAP_FEATURE_CLK_CTRL | TI_BANDGAP_FEATURE_UNRELIABLE,
/linux-4.4.14/net/bridge/
H A Dbr_if.c413 * Recomputes features using slave's features
416 netdev_features_t features) br_features_recompute()
422 return features; br_features_recompute()
424 mask = features; br_features_recompute()
425 features &= ~NETIF_F_ONE_FOR_ALL; br_features_recompute()
428 features = netdev_increment_features(features, br_features_recompute()
429 p->dev->features, mask); br_features_recompute()
431 features = netdev_add_tso_features(features, mask); br_features_recompute()
433 return features; br_features_recompute()
415 br_features_recompute(struct net_bridge *br, netdev_features_t features) br_features_recompute() argument
/linux-4.4.14/include/uapi/linux/
H A Dvirtio_config.h30 * features and pass configuration information, but each implementation can
34 /* Status byte for guest to report progress, and synchronize features. */
41 /* Driver has finished configuring features */
H A Duserfaultfd.h16 * After implementing the respective features it will become:
96 /* userland asks for an API number and the features to enable */
99 * Kernel answers below with the all available features for
112 __u64 features; member in struct:uffdio_api
H A Dcramfs_fs.h68 * 0x00000000 - 0x000000ff: features that work for all past kernels
69 * 0x00000100 - 0xffffffff: features that don't work for past kernels
H A Dethtool.h27 * physical connectors and other link features for which the
31 * physical connectors and other link features that are
60 * and other link features that the link partner advertised
1035 * struct ethtool_get_features_block - block with state of 32 features
1036 * @available: mask of changeable features
1037 * @requested: mask of features requested to be enabled if possible
1038 * @active: mask of currently enabled features
1039 * @never_changed: mask of features not changeable for any device
1049 * struct ethtool_gfeatures - command to get state of device's features
1051 * @size: On entry, the number of elements in the features[] array;
1052 * on return, the number of elements in features[] needed to hold
1053 * all features
1054 * @features: state of features
1059 struct ethtool_get_features_block features[0]; member in struct:ethtool_gfeatures
1063 * struct ethtool_set_features_block - block with request for 32 features
1064 * @valid: mask of features to be changed
1065 * @requested: values of features to be changed
1073 * struct ethtool_sfeatures - command to request change in device's features
1075 * @size: array size of the features[] array
1076 * @features: feature change masks
1081 struct ethtool_set_features_block features[0]; member in struct:ethtool_sfeatures
1113 * %ETHTOOL_SFEATURES changes features present in features[].valid to the
1114 * values of corresponding bits in features[].requested. Bits in .requested
1118 * or size is not equal to required number of features words (32-bit blocks).
1121 * changeable (not present in %ETHTOOL_GFEATURES' features[].available)
1125 * Probably there are other device-specific constraints on some features
1135 * significant bit in features[0] fields. Empty strings mark undefined features.
/linux-4.4.14/net/core/
H A Ddev.c1256 * netdev_features_change - device changes features
1259 * Called to indicate a device has changed features.
1498 if (unlikely(dev->features & NETIF_F_LRO)) dev_disable_lro()
2419 name, dev ? &dev->features : &null_features, skb_warn_bad_offload()
2494 * @features: features for the output path (see dev->features)
2497 netdev_features_t features) skb_mac_gso_segment()
2512 segs = ptype->callbacks.gso_segment(skb, features); skb_mac_gso_segment()
2538 * @features: features for the output path (see dev->features)
2549 netdev_features_t features, bool tx_path) __skb_gso_segment()
2570 return skb_mac_gso_segment(skb, features); __skb_gso_segment()
2595 if (!(dev->features & NETIF_F_HIGHDMA)) { illegal_highdma()
2619 /* If MPLS offload request, verify we are testing hardware MPLS features
2620 * instead of standard features for the netdev.
2624 netdev_features_t features, net_mpls_features()
2628 features &= skb->dev->mpls_features; net_mpls_features()
2630 return features; net_mpls_features()
2634 netdev_features_t features, net_mpls_features()
2637 return features; net_mpls_features()
2642 netdev_features_t features) harmonize_features()
2648 features = net_mpls_features(skb, features, type); harmonize_features()
2651 !can_checksum_protocol(features, type)) { harmonize_features()
2652 features &= ~NETIF_F_ALL_CSUM; harmonize_features()
2654 features &= ~NETIF_F_SG; harmonize_features()
2657 return features; harmonize_features()
2662 netdev_features_t features) passthru_features_check()
2664 return features; passthru_features_check()
2670 netdev_features_t features) dflt_features_check()
2672 return vlan_features_check(skb, features); dflt_features_check()
2678 netdev_features_t features = dev->features; netif_skb_features() local
2682 features &= ~NETIF_F_GSO_MASK; netif_skb_features()
2685 * hardware encapsulation features instead of standard netif_skb_features()
2686 * features for the netdev netif_skb_features()
2689 features &= dev->hw_enc_features; netif_skb_features()
2692 features = netdev_intersect_features(features, netif_skb_features()
2698 features &= dev->netdev_ops->ndo_features_check(skb, dev, netif_skb_features()
2699 features); netif_skb_features()
2701 features &= dflt_features_check(skb, dev, features); netif_skb_features()
2703 return harmonize_features(skb, features); netif_skb_features()
2753 netdev_features_t features) validate_xmit_vlan()
2756 !vlan_hw_offload_capable(features, skb->vlan_proto)) validate_xmit_vlan()
2763 netdev_features_t features; validate_xmit_skb() local
2768 features = netif_skb_features(skb); validate_xmit_skb()
2769 skb = validate_xmit_vlan(skb, features); validate_xmit_skb()
2773 if (netif_needs_gso(skb, features)) { validate_xmit_skb()
2776 segs = skb_gso_segment(skb, features); validate_xmit_skb()
2784 if (skb_needs_linearize(skb, features) && validate_xmit_skb()
2799 if (!(features & NETIF_F_ALL_CSUM) && validate_xmit_skb()
3241 !(dev->features & NETIF_F_NTUPLE)) set_rps_cpu()
4208 if (!(skb->dev->features & NETIF_F_GRO)) dev_gro_receive()
6303 struct net_device *upper, netdev_features_t features) netdev_sync_upper_features()
6312 && (features & feature)) { netdev_sync_upper_features()
6315 features &= ~feature; netdev_sync_upper_features()
6319 return features; netdev_sync_upper_features()
6323 struct net_device *lower, netdev_features_t features) netdev_sync_lower_features()
6331 if (!(features & feature) && (lower->features & feature)) { netdev_sync_lower_features()
6337 if (unlikely(lower->features & feature)) netdev_sync_lower_features()
6345 netdev_features_t features) netdev_fix_features()
6348 if ((features & NETIF_F_HW_CSUM) && netdev_fix_features()
6349 (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) { netdev_fix_features()
6351 features &= ~(NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM); netdev_fix_features()
6355 if ((features & NETIF_F_ALL_TSO) && !(features & NETIF_F_SG)) { netdev_fix_features()
6356 netdev_dbg(dev, "Dropping TSO features since no SG feature.\n"); netdev_fix_features()
6357 features &= ~NETIF_F_ALL_TSO; netdev_fix_features()
6360 if ((features & NETIF_F_TSO) && !(features & NETIF_F_HW_CSUM) && netdev_fix_features()
6361 !(features & NETIF_F_IP_CSUM)) { netdev_fix_features()
6362 netdev_dbg(dev, "Dropping TSO features since no CSUM feature.\n"); netdev_fix_features()
6363 features &= ~NETIF_F_TSO; netdev_fix_features()
6364 features &= ~NETIF_F_TSO_ECN; netdev_fix_features()
6367 if ((features & NETIF_F_TSO6) && !(features & NETIF_F_HW_CSUM) && netdev_fix_features()
6368 !(features & NETIF_F_IPV6_CSUM)) { netdev_fix_features()
6369 netdev_dbg(dev, "Dropping TSO6 features since no CSUM feature.\n"); netdev_fix_features()
6370 features &= ~NETIF_F_TSO6; netdev_fix_features()
6374 if ((features & NETIF_F_ALL_TSO) == NETIF_F_TSO_ECN) netdev_fix_features()
6375 features &= ~NETIF_F_TSO_ECN; netdev_fix_features()
6378 if ((features & NETIF_F_GSO) && !(features & NETIF_F_SG)) { netdev_fix_features()
6380 features &= ~NETIF_F_GSO; netdev_fix_features()
6384 if (features & NETIF_F_UFO) { netdev_fix_features()
6386 if (!((features & NETIF_F_GEN_CSUM) || netdev_fix_features()
6387 (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM)) netdev_fix_features()
6390 "Dropping NETIF_F_UFO since no checksum offload features.\n"); netdev_fix_features()
6391 features &= ~NETIF_F_UFO; netdev_fix_features()
6394 if (!(features & NETIF_F_SG)) { netdev_fix_features()
6397 features &= ~NETIF_F_UFO; netdev_fix_features()
6403 features |= NETIF_F_BUSY_POLL; netdev_fix_features()
6406 features &= ~NETIF_F_BUSY_POLL; netdev_fix_features()
6408 return features; netdev_fix_features()
6414 netdev_features_t features; __netdev_update_features() local
6420 features = netdev_get_wanted_features(dev); __netdev_update_features()
6423 features = dev->netdev_ops->ndo_fix_features(dev, features); __netdev_update_features()
6426 features = netdev_fix_features(dev, features); __netdev_update_features()
6428 /* some features can't be enabled if they're off an an upper device */ __netdev_update_features()
6430 features = netdev_sync_upper_features(dev, upper, features); __netdev_update_features()
6432 if (dev->features == features) __netdev_update_features()
6436 &dev->features, &features); __netdev_update_features()
6439 err = dev->netdev_ops->ndo_set_features(dev, features); __netdev_update_features()
6446 err, &features, &dev->features); __netdev_update_features()
6447 /* return non-0 since some features might have changed and __netdev_update_features()
6454 /* some features must be disabled on lower devices when disabled __netdev_update_features()
6458 netdev_sync_lower_features(dev, lower, features); __netdev_update_features()
6461 dev->features = features; __netdev_update_features()
6467 * netdev_update_features - recalculate device features
6470 * Recalculate dev->features set and send notifications if it
6472 * conditions might have changed that influence the features.
6482 * netdev_change_features - recalculate device features
6485 * Recalculate dev->features set and send notifications even
6649 if (((dev->hw_features | dev->features) & register_netdevice()
6664 /* Transfer changeable features to wanted_features and enable register_netdevice()
6668 dev->features |= NETIF_F_SOFT_FEATURES; register_netdevice()
6669 dev->wanted_features = dev->features & dev->hw_features; register_netdevice()
7316 if (dev->features & NETIF_F_NETNS_LOCAL) dev_change_net_namespace()
7647 if (dev->features & NETIF_F_NETNS_LOCAL) for_each_netdev_safe()
2496 skb_mac_gso_segment(struct sk_buff *skb, netdev_features_t features) skb_mac_gso_segment() argument
2548 __skb_gso_segment(struct sk_buff *skb, netdev_features_t features, bool tx_path) __skb_gso_segment() argument
2623 net_mpls_features(struct sk_buff *skb, netdev_features_t features, __be16 type) net_mpls_features() argument
2633 net_mpls_features(struct sk_buff *skb, netdev_features_t features, __be16 type) net_mpls_features() argument
2641 harmonize_features(struct sk_buff *skb, netdev_features_t features) harmonize_features() argument
2660 passthru_features_check(struct sk_buff *skb, struct net_device *dev, netdev_features_t features) passthru_features_check() argument
2668 dflt_features_check(const struct sk_buff *skb, struct net_device *dev, netdev_features_t features) dflt_features_check() argument
2752 validate_xmit_vlan(struct sk_buff *skb, netdev_features_t features) validate_xmit_vlan() argument
6302 netdev_sync_upper_features(struct net_device *lower, struct net_device *upper, netdev_features_t features) netdev_sync_upper_features() argument
6322 netdev_sync_lower_features(struct net_device *upper, struct net_device *lower, netdev_features_t features) netdev_sync_lower_features() argument
6344 netdev_fix_features(struct net_device *dev, netdev_features_t features) netdev_fix_features() argument
H A Dethtool.c122 struct ethtool_get_features_block features[ETHTOOL_DEV_FEATURE_WORDS]; ethtool_get_features() local
131 features[i].available = (u32)(dev->hw_features >> (32 * i)); ethtool_get_features()
132 features[i].requested = (u32)(dev->wanted_features >> (32 * i)); ethtool_get_features()
133 features[i].active = (u32)(dev->features >> (32 * i)); ethtool_get_features()
134 features[i].never_changed = ethtool_get_features()
148 if (copy_to_user(useraddr, features, copy_size * sizeof(*features))) ethtool_get_features()
157 struct ethtool_set_features_block features[ETHTOOL_DEV_FEATURE_WORDS]; ethtool_set_features() local
168 if (copy_from_user(features, useraddr, sizeof(features))) ethtool_set_features()
172 valid |= (netdev_features_t)features[i].valid << (32 * i); ethtool_set_features()
173 wanted |= (netdev_features_t)features[i].requested << (32 * i); ethtool_set_features()
188 if ((dev->wanted_features ^ dev->features) & valid) ethtool_set_features()
268 .data = !!(dev->features & mask), ethtool_get_one_feature()
310 if (dev->features & NETIF_F_LRO) __ethtool_get_flags()
312 if (dev->features & NETIF_F_HW_VLAN_CTAG_RX) __ethtool_get_flags()
314 if (dev->features & NETIF_F_HW_VLAN_CTAG_TX) __ethtool_get_flags()
316 if (dev->features & NETIF_F_NTUPLE) __ethtool_get_flags()
318 if (dev->features & NETIF_F_RXHASH) __ethtool_get_flags()
326 netdev_features_t features = 0, changed; __ethtool_set_flags() local
332 features |= NETIF_F_LRO; __ethtool_set_flags()
334 features |= NETIF_F_HW_VLAN_CTAG_RX; __ethtool_set_flags()
336 features |= NETIF_F_HW_VLAN_CTAG_TX; __ethtool_set_flags()
338 features |= NETIF_F_NTUPLE; __ethtool_set_flags()
340 features |= NETIF_F_RXHASH; __ethtool_set_flags()
343 changed = (features ^ dev->features) & ETH_ALL_FEATURES; __ethtool_set_flags()
348 (dev->wanted_features & ~changed) | (features & changed); __ethtool_set_flags()
1812 old_features = dev->features; dev_ethtool()
2001 if (old_features != dev->features) dev_ethtool()
/linux-4.4.14/drivers/media/platform/omap3isp/
H A Disppreview.h38 /* Additional features not listed in linux/omap3isp.h */
64 * @features: Set of features enabled.
83 u32 features; member in struct:prev_params
/linux-4.4.14/drivers/media/platform/s5p-mfc/
H A Dregs-mfc-v7.h17 /* Additional features of v7 */
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv40.h34 * helpful to determine a number of other hardware features
/linux-4.4.14/drivers/clocksource/
H A Ddummy_timer.c25 evt->features = CLOCK_EVT_FEAT_PERIODIC | dummy_timer_setup()
H A Dnumachip.c50 .features = CLOCK_EVT_FEAT_ONESHOT,
/linux-4.4.14/arch/x86/kernel/fpu/
H A Dbugs.c22 * anyway. Not features.
H A Dinit.c52 * Enable all supported FPU features. Called when a CPU is brought online:
113 * If zero then use the default features mask, fpu__init_system_mxcsr()
114 * which has all features set, except the fpu__init_system_mxcsr()
295 pr_err("x86/fpu: eagerfpu switching disabled, disabling the following xstate features: 0x%llx.\n", fpu__init_system_ctx_switch()
350 * Disable all xstate CPU features:
/linux-4.4.14/include/linux/mmc/
H A Dpm.h16 * These flags are used to describe power management features that
/linux-4.4.14/arch/mips/include/asm/mach-ath25/
H A Dcpu-feature-overrides.h6 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/include/asm/mach-ath79/
H A Dcpu-feature-overrides.h7 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/include/asm/mach-lantiq/falcon/
H A Dcpu-feature-overrides.h6 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/include/asm/mach-ralink/mt7620/
H A Dcpu-feature-overrides.h7 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/include/asm/mach-ralink/rt288x/
H A Dcpu-feature-overrides.h7 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/include/asm/mach-ralink/rt305x/
H A Dcpu-feature-overrides.h7 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/include/asm/mach-ralink/rt3883/
H A Dcpu-feature-overrides.h6 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/mips/kernel/
H A Dsysrq.c12 #include <asm/cpu-features.h>
/linux-4.4.14/arch/sh/kernel/
H A Dlocaltimer.c47 clk->features = CLOCK_EVT_FEAT_ONESHOT | local_timer_setup()
/linux-4.4.14/arch/hexagon/include/asm/
H A Dfixmap.h2 * Fixmap support for Hexagon - enough to support highmem features
/linux-4.4.14/net/mpls/
H A Dmpls_gso.c23 netdev_features_t features) mpls_gso_segment()
47 mpls_features = skb->dev->mpls_features & features; mpls_gso_segment()
22 mpls_gso_segment(struct sk_buff *skb, netdev_features_t features) mpls_gso_segment() argument
/linux-4.4.14/drivers/virtio/
H A Dvirtio.c53 for (i = 0; i < sizeof(dev->features)*8; i++) features_show()
59 static DEVICE_ATTR_RO(features);
179 dev_err(&dev->dev, "virtio: device refuses features: %x\n", virtio_finalize_features()
198 /* Figure out what features the device supports. */ virtio_dev_probe()
201 /* Figure out what features the driver supports. */ virtio_dev_probe()
222 dev->features = driver_features & device_features; virtio_dev_probe()
224 dev->features = driver_features_legacy & device_features; virtio_dev_probe()
226 /* Transport features always preserved to pass to finalize_features. */ virtio_dev_probe()
H A Dvirtio_pci_legacy.c37 /* Give virtio_ring a chance to accept features. */ vp_finalize_features()
40 /* Make sure we don't have any features > 32 bits! */ vp_finalize_features()
41 BUG_ON((u32)vdev->features != vdev->features); vp_finalize_features()
44 iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); vp_finalize_features()
/linux-4.4.14/include/linux/isdn/
H A Dhdlc.h72 extern void isdnhdlc_rcv_init(struct isdnhdlc_vars *hdlc, u32 features);
77 extern void isdnhdlc_out_init(struct isdnhdlc_vars *hdlc, u32 features);
/linux-4.4.14/net/openvswitch/
H A Dvport-internal_dev.c167 netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST | do_setup()
171 netdev->vlan_features = netdev->features; do_setup()
172 netdev->hw_enc_features = netdev->features; do_setup()
173 netdev->features |= NETIF_F_HW_VLAN_CTAG_TX; do_setup()
174 netdev->hw_features = netdev->features & ~NETIF_F_LLTX; do_setup()
209 vport->dev->features |= NETIF_F_NETNS_LOCAL; internal_dev_create()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-i801.c228 unsigned int features; member in struct:i801_priv
268 MODULE_PARM_DESC(disable_features, "Disable selected driver features:\n"
408 if (priv->features & FEATURE_IRQ) { i801_transaction()
582 if (priv->features & FEATURE_IRQ) { i801_block_transaction_byte_by_byte()
672 } else if (!(priv->features & FEATURE_I2C_BLOCK_READ)) { i801_block_transaction()
692 if ((priv->features & FEATURE_BLOCK_BUFFER) i801_block_transaction()
720 hwpec = (priv->features & FEATURE_SMBUS_PEC) && (flags & I2C_CLIENT_PEC) i801_access()
826 ((priv->features & FEATURE_SMBUS_PEC) ? I2C_FUNC_SMBUS_PEC : 0) | i801_func()
827 ((priv->features & FEATURE_I2C_BLOCK_READ) ? i801_func()
983 if (priv->features & FEATURE_IDF) i801_probe_optional_slaves()
1180 if (!(priv->features & FEATURE_TCO)) i801_add_tco()
1277 priv->features |= FEATURE_I2C_BLOCK_READ; i801_probe()
1278 priv->features |= FEATURE_IRQ; i801_probe()
1279 priv->features |= FEATURE_SMBUS_PEC; i801_probe()
1280 priv->features |= FEATURE_BLOCK_BUFFER; i801_probe()
1281 priv->features |= FEATURE_TCO; i801_probe()
1290 priv->features |= FEATURE_IDF; i801_probe()
1293 priv->features |= FEATURE_I2C_BLOCK_READ; i801_probe()
1294 priv->features |= FEATURE_IRQ; i801_probe()
1297 priv->features |= FEATURE_SMBUS_PEC; i801_probe()
1298 priv->features |= FEATURE_BLOCK_BUFFER; i801_probe()
1307 /* Disable features on user request */ i801_probe()
1309 if (priv->features & disable_features & (1 << i)) i801_probe()
1313 priv->features &= ~disable_features; i801_probe()
1358 priv->features &= ~FEATURE_IRQ; i801_probe()
1362 if (priv->features & (FEATURE_SMBUS_PEC | FEATURE_BLOCK_BUFFER)) i801_probe()
1369 if (priv->features & FEATURE_IRQ) { i801_probe()
1381 priv->features &= ~FEATURE_IRQ; i801_probe()
1385 if (priv->features & FEATURE_IRQ) { i801_probe()
1394 priv->features &= ~FEATURE_IRQ; i801_probe()
1398 priv->features & FEATURE_IRQ ? "PCI interrupt" : "polling"); i801_probe()
/linux-4.4.14/include/net/bluetooth/
H A Dhci_core.h216 __u8 features[HCI_MAX_PAGES][8]; member in struct:hci_dev
429 __u8 features[HCI_MAX_PAGES][8]; member in struct:hci_conn
1103 #define lmp_encrypt_capable(dev) ((dev)->features[0][0] & LMP_ENCRYPT)
1104 #define lmp_rswitch_capable(dev) ((dev)->features[0][0] & LMP_RSWITCH)
1105 #define lmp_hold_capable(dev) ((dev)->features[0][0] & LMP_HOLD)
1106 #define lmp_sniff_capable(dev) ((dev)->features[0][0] & LMP_SNIFF)
1107 #define lmp_park_capable(dev) ((dev)->features[0][1] & LMP_PARK)
1108 #define lmp_inq_rssi_capable(dev) ((dev)->features[0][3] & LMP_RSSI_INQ)
1109 #define lmp_esco_capable(dev) ((dev)->features[0][3] & LMP_ESCO)
1110 #define lmp_bredr_capable(dev) (!((dev)->features[0][4] & LMP_NO_BREDR))
1111 #define lmp_le_capable(dev) ((dev)->features[0][4] & LMP_LE)
1112 #define lmp_sniffsubr_capable(dev) ((dev)->features[0][5] & LMP_SNIFF_SUBR)
1113 #define lmp_pause_enc_capable(dev) ((dev)->features[0][5] & LMP_PAUSE_ENC)
1114 #define lmp_ext_inq_capable(dev) ((dev)->features[0][6] & LMP_EXT_INQ)
1115 #define lmp_le_br_capable(dev) (!!((dev)->features[0][6] & LMP_SIMUL_LE_BR))
1116 #define lmp_ssp_capable(dev) ((dev)->features[0][6] & LMP_SIMPLE_PAIR)
1117 #define lmp_no_flush_capable(dev) ((dev)->features[0][6] & LMP_NO_FLUSH)
1118 #define lmp_lsto_capable(dev) ((dev)->features[0][7] & LMP_LSTO)
1119 #define lmp_inq_tx_pwr_capable(dev) ((dev)->features[0][7] & LMP_INQ_TX_PWR)
1120 #define lmp_ext_feat_capable(dev) ((dev)->features[0][7] & LMP_EXTFEATURES)
1121 #define lmp_transp_capable(dev) ((dev)->features[0][2] & LMP_TRANSPARENT)
1124 #define lmp_csb_master_capable(dev) ((dev)->features[2][0] & LMP_CSB_MASTER)
1125 #define lmp_csb_slave_capable(dev) ((dev)->features[2][0] & LMP_CSB_SLAVE)
1126 #define lmp_sync_train_capable(dev) ((dev)->features[2][0] & LMP_SYNC_TRAIN)
1127 #define lmp_sync_scan_capable(dev) ((dev)->features[2][0] & LMP_SYNC_SCAN)
1128 #define lmp_sc_capable(dev) ((dev)->features[2][1] & LMP_SC)
1129 #define lmp_ping_capable(dev) ((dev)->features[2][1] & LMP_PING)
1132 #define lmp_host_ssp_capable(dev) ((dev)->features[1][0] & LMP_HOST_SSP)
1133 #define lmp_host_sc_capable(dev) ((dev)->features[1][0] & LMP_HOST_SC)
1134 #define lmp_host_le_capable(dev) (!!((dev)->features[1][0] & LMP_HOST_LE))
1135 #define lmp_host_le_br_capable(dev) (!!((dev)->features[1][0] & LMP_HOST_LE_BREDR))
/linux-4.4.14/net/8021q/
H A Dvlan_dev.c550 dev->features |= real_dev->vlan_features | NETIF_F_LLTX | vlan_dev_init()
553 if (dev->features & NETIF_F_VLAN_FEATURES) vlan_dev_init()
554 netdev_warn(real_dev, "VLAN features are set incorrectly. Q-in-Q configurations may not work correctly.\n"); vlan_dev_init()
571 if (vlan_hw_offload_capable(real_dev->features, vlan_dev_init()
608 netdev_features_t features) vlan_dev_fix_features()
611 netdev_features_t old_features = features; vlan_dev_fix_features()
613 features = netdev_intersect_features(features, real_dev->vlan_features); vlan_dev_fix_features()
614 features |= NETIF_F_RXCSUM; vlan_dev_fix_features()
615 features = netdev_intersect_features(features, real_dev->features); vlan_dev_fix_features()
617 features |= old_features & (NETIF_F_SOFT_FEATURES | NETIF_F_GSO_SOFTWARE); vlan_dev_fix_features()
618 features |= NETIF_F_LLTX; vlan_dev_fix_features()
620 return features; vlan_dev_fix_features()
607 vlan_dev_fix_features(struct net_device *dev, netdev_features_t features) vlan_dev_fix_features() argument
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c1042 netdev_features_t features) qlcnic_process_flags()
1047 features |= NETIF_F_RXCSUM | NETIF_F_IP_CSUM | qlcnic_process_flags()
1052 features &= ~NETIF_F_TSO; qlcnic_process_flags()
1054 features |= NETIF_F_TSO; qlcnic_process_flags()
1057 features &= ~NETIF_F_TSO6; qlcnic_process_flags()
1059 features |= NETIF_F_TSO6; qlcnic_process_flags()
1062 features &= ~(NETIF_F_RXCSUM | qlcnic_process_flags()
1067 features &= ~(NETIF_F_TSO | NETIF_F_TSO6); qlcnic_process_flags()
1071 return features; qlcnic_process_flags()
1075 netdev_features_t features) qlcnic_fix_features()
1083 features = qlcnic_process_flags(adapter, features); qlcnic_fix_features()
1085 changed = features ^ netdev->features; qlcnic_fix_features()
1086 features ^= changed & (NETIF_F_RXCSUM | qlcnic_fix_features()
1094 if (!(features & NETIF_F_RXCSUM)) qlcnic_fix_features()
1095 features &= ~NETIF_F_LRO; qlcnic_fix_features()
1097 return features; qlcnic_fix_features()
1101 int qlcnic_set_features(struct net_device *netdev, netdev_features_t features) qlcnic_set_features() argument
1104 netdev_features_t changed = netdev->features ^ features; qlcnic_set_features()
1105 int hw_lro = (features & NETIF_F_LRO) ? QLCNIC_LRO_ENABLED : 0; qlcnic_set_features()
1110 netdev->features ^= NETIF_F_LRO; qlcnic_set_features()
1041 qlcnic_process_flags(struct qlcnic_adapter *adapter, netdev_features_t features) qlcnic_process_flags() argument
1074 qlcnic_fix_features(struct net_device *netdev, netdev_features_t features) qlcnic_fix_features() argument
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
H A Dsym_fw.c119 if (!(np->features & FE_LED0)) { sym_fw1_patch()
163 if (!(np->features & FE_LED0)) { sym_fw2_patch()
203 if (!(np->features & FE_C10)) { sym_fw2_patch()
352 if (chip->features & FE_LDSTR) sym_find_firmware()
355 else if (!(chip->features & (FE_PFEN|FE_NOPM|FE_DAC))) sym_find_firmware()
436 !(np->features & FE_PFEN)) { sym_fw_bind_script()
444 if (!(np->features & FE_WIDE)) sym_fw_bind_script()
452 if (!(np->features & FE_WIDE)) sym_fw_bind_script()
462 if (!(np->features & FE_WIDE)) sym_fw_bind_script()
471 if (!(np->features & FE_WIDE)) sym_fw_bind_script()
/linux-4.4.14/arch/powerpc/include/asm/
H A Dcputable.h53 unsigned long cpu_features; /* Kernel features */
54 unsigned int cpu_user_features; /* Userland features */
55 unsigned int cpu_user_features2; /* Userland features v2 */
56 unsigned int mmu_features; /* MMU features */
125 /* CPU kernel features */
161 * Add the 64-bit processor unique features in the top half of the word;
206 /* We only set the altivec features if the kernel was compiled with altivec
217 /* We only set the VSX features if the kernel was compiled with VSX
228 /* We only set the spe features if the kernel was compiled with spe
267 /* The powersave features NAP & DOZE seems to confuse BDI when
H A Dheathrow.h60 /* We OR those features at boot on desktop G3s */
/linux-4.4.14/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c882 struct sxgbe_hw_features *features = &priv->hw_cap; sxgbe_get_hw_features() local
887 features->pmt_remote_wake_up = sxgbe_get_hw_features()
889 features->pmt_magic_frame = SXGBE_HW_FEAT_PMT_MAGIC_PKT(rval); sxgbe_get_hw_features()
890 features->atime_stamp = SXGBE_HW_FEAT_IEEE1500_2008(rval); sxgbe_get_hw_features()
891 features->tx_csum_offload = sxgbe_get_hw_features()
893 features->rx_csum_offload = sxgbe_get_hw_features()
895 features->multi_macaddr = SXGBE_HW_FEAT_MACADDR_COUNT(rval); sxgbe_get_hw_features()
896 features->tstamp_srcselect = SXGBE_HW_FEAT_TSTMAP_SRC(rval); sxgbe_get_hw_features()
897 features->sa_vlan_insert = SXGBE_HW_FEAT_SRCADDR_VLAN(rval); sxgbe_get_hw_features()
898 features->eee = SXGBE_HW_FEAT_EEE(rval); sxgbe_get_hw_features()
904 features->rxfifo_size = SXGBE_HW_FEAT_RX_FIFO_SIZE(rval); sxgbe_get_hw_features()
905 features->txfifo_size = SXGBE_HW_FEAT_TX_FIFO_SIZE(rval); sxgbe_get_hw_features()
906 features->atstmap_hword = SXGBE_HW_FEAT_TX_FIFO_SIZE(rval); sxgbe_get_hw_features()
907 features->dcb_enable = SXGBE_HW_FEAT_DCB(rval); sxgbe_get_hw_features()
908 features->splithead_enable = SXGBE_HW_FEAT_SPLIT_HDR(rval); sxgbe_get_hw_features()
909 features->tcpseg_offload = SXGBE_HW_FEAT_TSO(rval); sxgbe_get_hw_features()
910 features->debug_mem = SXGBE_HW_FEAT_DEBUG_MEM_IFACE(rval); sxgbe_get_hw_features()
911 features->rss_enable = SXGBE_HW_FEAT_RSS(rval); sxgbe_get_hw_features()
912 features->hash_tsize = SXGBE_HW_FEAT_HASH_TABLE_SIZE(rval); sxgbe_get_hw_features()
913 features->l3l4_filer_size = SXGBE_HW_FEAT_L3L4_FILTER_NUM(rval); sxgbe_get_hw_features()
919 features->rx_mtl_queues = SXGBE_HW_FEAT_RX_MTL_QUEUES(rval); sxgbe_get_hw_features()
920 features->tx_mtl_queues = SXGBE_HW_FEAT_TX_MTL_QUEUES(rval); sxgbe_get_hw_features()
921 features->rx_dma_channels = SXGBE_HW_FEAT_RX_DMA_CHANNELS(rval); sxgbe_get_hw_features()
922 features->tx_dma_channels = SXGBE_HW_FEAT_TX_DMA_CHANNELS(rval); sxgbe_get_hw_features()
923 features->pps_output_count = SXGBE_HW_FEAT_PPS_OUTPUTS(rval); sxgbe_get_hw_features()
924 features->aux_input_count = SXGBE_HW_FEAT_AUX_SNAPSHOTS(rval); sxgbe_get_hw_features()
1784 /* sxgbe_set_features - entry point to set offload features of the device.
1786 * @features : features which are required to be set.
1789 * any device features are set or reset by user.
1791 * This function returns 0 after setting or resetting device features.
1794 netdev_features_t features) sxgbe_set_features()
1797 netdev_features_t changed = dev->features ^ features; sxgbe_set_features()
1800 if (features & NETIF_F_RXCSUM) { sxgbe_set_features()
2034 * (if supported) and sets the driver's features.
2054 /* get the H/W features */ sxgbe_hw_init()
2056 pr_info("Hardware features not found\n"); sxgbe_hw_init()
2143 ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; sxgbe_drv_probe()
1793 sxgbe_set_features(struct net_device *dev, netdev_features_t features) sxgbe_set_features() argument
/linux-4.4.14/drivers/remoteproc/
H A Dremoteproc_virtio.c209 /* provide the vdev features as retrieved from the firmware */ rproc_virtio_get_features()
227 /* Give virtio_ring a chance to accept features */ rproc_virtio_finalize_features()
230 /* Make sure we don't have any features > 32 bits! */ rproc_virtio_finalize_features()
231 BUG_ON((u32)vdev->features != vdev->features); rproc_virtio_finalize_features()
234 * Remember the finalized features of our vdev, and provide it rproc_virtio_finalize_features()
237 rsc->gfeatures = vdev->features; rproc_virtio_finalize_features()
/linux-4.4.14/drivers/media/platform/vsp1/
H A Dvsp1_drv.c184 if (vsp1->pdata.features & VSP1_HAS_LIF) { vsp1_create_entities()
194 if (vsp1->pdata.features & VSP1_HAS_LUT) { vsp1_create_entities()
217 if (vsp1->pdata.features & VSP1_HAS_SRU) { vsp1_create_entities()
264 if (vsp1->pdata.features & VSP1_HAS_LIF) { vsp1_create_entities()
444 pdata->features |= VSP1_HAS_LIF; vsp1_parse_dt()
446 pdata->features |= VSP1_HAS_LUT; vsp1_parse_dt()
448 pdata->features |= VSP1_HAS_SRU; vsp1_parse_dt()
H A Dvsp1.h47 unsigned int features; member in struct:vsp1_platform_data
/linux-4.4.14/arch/unicore32/kernel/
H A Dpci.c173 u16 features = PCI_COMMAND_SERR pcibios_fixup_bus() local
196 features &= ~PCI_COMMAND_FAST_BACK; pcibios_fixup_bus()
199 features &= ~(PCI_COMMAND_SERR pcibios_fixup_bus()
230 cmd |= features; pcibios_fixup_bus()
241 if (features & PCI_COMMAND_FAST_BACK) pcibios_fixup_bus()
243 if (features & PCI_COMMAND_PARITY) pcibios_fixup_bus()
251 bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis"); pcibios_fixup_bus()
/linux-4.4.14/scripts/
H A Dcheckkconfigsymbols.py266 """Parse @sfile for referenced Kconfig features."""
274 features = REGEX_SOURCE_FEATURE.findall(line)
275 for feature in features:
284 """Return mentioned Kconfig features in @line."""
311 features = get_features_in_line(line)
317 features.extend(get_features_in_line(line))
318 for feature in set(features):
/linux-4.4.14/drivers/video/fbdev/aty/
H A Datyfb.h104 u8 features; member in struct:pll_ct
111 for pll_ct.features
138 u32 features; member in struct:atyfb_par
192 * ATI Mach64 features
195 #define M64_HAS(feature) ((par)->features & (M64F_##feature))
/linux-4.4.14/drivers/rtc/
H A Drtc-m41t80.c89 u8 features; member in struct:m41t80_data
196 if (clientdata->features & M41T80_FEATURE_BL) { m41t80_rtc_proc()
248 if (!(clientdata->features & M41T80_FEATURE_SQ)) m41t80_sysfs_show_sqwfreq()
252 if (clientdata->features & M41T80_FEATURE_SQ_ALT) m41t80_sysfs_show_sqwfreq()
278 if (!(clientdata->features & M41T80_FEATURE_SQ)) m41t80_sysfs_set_sqwfreq()
297 if (clientdata->features & M41T80_FEATURE_SQ_ALT) m41t80_sysfs_set_sqwfreq()
397 if (clientdata->features & M41T80_FEATURE_WD) wdt_ping()
476 * according to their available features. We only actually usefully support
650 clientdata->features = id->driver_data; m41t80_probe()
664 if (clientdata->features & M41T80_FEATURE_HT) { m41t80_probe()
699 if (clientdata->features & M41T80_FEATURE_HT) { m41t80_probe()
719 if (clientdata->features & M41T80_FEATURE_HT) { m41t80_remove()
/linux-4.4.14/drivers/gpu/drm/virtio/
H A Dvirtgpu_drv.c75 static unsigned int features[] = { variable
86 .feature_table = features,
87 .feature_table_size = ARRAY_SIZE(features),
/linux-4.4.14/net/dccp/
H A Dfeat.c16 * o All currently known SP features have 1-byte quantities. If in the future
17 * extensions of RFCs 4340..42 define features with item lengths larger than
38 * These all use an u64 argument, to provide enough room for NN/SP features. At
140 * Lookup table for location and type of features (from RFC 4340/4342)
182 * Other features: add cases for new feature types here after adding dccp_feat_index()
205 * There are no default values for unknown features, so encountering a dccp_feat_default_value()
698 * Note that NN features are local by definition (RFC 4340, 6.3.2).
831 * Tracking features whose value depend on the choice of CCID
834 * before activating any features. However, the existing framework was found to
935 * dccp_feat_propagate_ccid - Resolve dependencies of features on choice of CCID
940 * This function needs to be called after registering all other features.
994 * dccp_feat_server_ccid_dependencies - Resolve CCID-dependent features
1082 * Reorder list: used for activating features and in dccp_insert_fn_opt. dccp_feat_reconcile()
1111 * Negotiation of NN features: Change R is invalid, so there is no dccp_feat_change_recv()
1127 * Unidirectional/simultaneous negotiation of SP features (6.3.1) dccp_feat_change_recv()
1300 * - deliberately restricted to NN features.
1301 * The restriction to NN features is essential since SP features can have non-
1316 /* Ignore non-mandatory unknown and non-NN features */ dccp_feat_handle_nn_established()
1437 * All features not appearing below use either defaults or are otherwise
1450 /* Non-negotiable (NN) features */ dccp_feat_init()
1456 /* Server-priority (SP) features */ dccp_feat_init()
1530 * relies on the initialisation of one or more features that it depends
1531 * on (e.g. Send NDP Count, Send Ack Vector, and Ack Ratio features).
/linux-4.4.14/drivers/iommu/
H A Darm-smmu-v3.c574 u32 features; member in struct:arm_smmu_device
892 bool wfe = !!(smmu->features & ARM_SMMU_FEAT_SEV); arm_smmu_cmdq_issue_cmd()
1511 if (!(smmu->features & ARM_SMMU_FEAT_TRANS_S1)) arm_smmu_domain_finalise()
1513 if (!(smmu->features & ARM_SMMU_FEAT_TRANS_S2)) arm_smmu_domain_finalise()
1575 if (smmu->features & ARM_SMMU_FEAT_2_LVL_STRTAB) { arm_smmu_get_step_for_sid()
1778 if (smmu->features & ARM_SMMU_FEAT_2_LVL_STRTAB) arm_smmu_sid_in_range()
1839 if (smmu->features & ARM_SMMU_FEAT_2_LVL_STRTAB) { arm_smmu_add_device()
1973 if (smmu->features & ARM_SMMU_FEAT_PRI) arm_smmu_free_queues()
1995 if (!(smmu->features & ARM_SMMU_FEAT_PRI)) arm_smmu_init_queues()
2141 if (smmu->features & ARM_SMMU_FEAT_2_LVL_STRTAB) arm_smmu_init_strtab()
2165 if (smmu->features & ARM_SMMU_FEAT_2_LVL_STRTAB) { arm_smmu_free_strtab()
2241 if (smmu->features & ARM_SMMU_FEAT_PRI) arm_smmu_setup_msis()
2246 if (!(smmu->features & ARM_SMMU_FEAT_MSI)) arm_smmu_setup_msis()
2319 if (smmu->features & ARM_SMMU_FEAT_PRI) { arm_smmu_setup_irqs()
2409 if (smmu->features & ARM_SMMU_FEAT_HYP) { arm_smmu_device_reset()
2433 if (smmu->features & ARM_SMMU_FEAT_PRI) { arm_smmu_device_reset()
2479 smmu->features |= ARM_SMMU_FEAT_2_LVL_STRTAB; arm_smmu_device_probe()
2482 smmu->features |= ARM_SMMU_FEAT_2_LVL_CDTAB; arm_smmu_device_probe()
2491 smmu->features |= ARM_SMMU_FEAT_TT_LE | ARM_SMMU_FEAT_TT_BE; arm_smmu_device_probe()
2495 smmu->features |= ARM_SMMU_FEAT_TT_BE; arm_smmu_device_probe()
2499 smmu->features |= ARM_SMMU_FEAT_TT_LE; arm_smmu_device_probe()
2509 smmu->features |= ARM_SMMU_FEAT_PRI; arm_smmu_device_probe()
2512 smmu->features |= ARM_SMMU_FEAT_ATS; arm_smmu_device_probe()
2515 smmu->features |= ARM_SMMU_FEAT_SEV; arm_smmu_device_probe()
2518 smmu->features |= ARM_SMMU_FEAT_MSI; arm_smmu_device_probe()
2521 smmu->features |= ARM_SMMU_FEAT_HYP; arm_smmu_device_probe()
2529 smmu->features |= ARM_SMMU_FEAT_COHERENCY; arm_smmu_device_probe()
2536 smmu->features |= ARM_SMMU_FEAT_STALLS; arm_smmu_device_probe()
2539 smmu->features |= ARM_SMMU_FEAT_TRANS_S1; arm_smmu_device_probe()
2542 smmu->features |= ARM_SMMU_FEAT_TRANS_S2; arm_smmu_device_probe()
2639 dev_info(smmu->dev, "ias %lu-bit, oas %lu-bit (features 0x%08x)\n", arm_smmu_device_probe()
2640 smmu->ias, smmu->oas, smmu->features); arm_smmu_device_probe()
/linux-4.4.14/arch/x86/xen/
H A Dxen-head.S14 #include <xen/interface/features.h>
66 /* Gather features to see if NX implemented. */
/linux-4.4.14/kernel/time/
H A Dtick-common.c69 if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT)) tick_is_oneshot_available()
71 if (!(dev->features & CLOCK_EVT_FEAT_C3STOP)) tick_is_oneshot_available()
152 if ((dev->features & CLOCK_EVT_FEAT_PERIODIC) && tick_setup_periodic()
243 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_install_replacement()
267 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { tick_check_preferred()
268 if (curdev && (curdev->features & CLOCK_EVT_FEAT_ONESHOT)) tick_check_preferred()
332 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_check_new_device()
358 if (!(td->evtdev->features & CLOCK_EVT_FEAT_C3STOP)) tick_broadcast_oneshot_control()
H A Dtick-broadcast.c74 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || tick_check_broadcast_device()
75 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || tick_check_broadcast_device()
76 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) tick_check_broadcast_device()
80 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) tick_check_broadcast_device()
113 if (dev->features & CLOCK_EVT_FEAT_ONESHOT) tick_install_broadcast_device()
186 if (!(dev->features & CLOCK_EVT_FEAT_C3STOP)) tick_device_uses_broadcast()
228 if (bc && !(bc->features & CLOCK_EVT_FEAT_HRTIMER)) tick_device_uses_broadcast()
284 local = !(bc->features & CLOCK_EVT_FEAT_HRTIMER); tick_do_broadcast()
367 if (!dev || !(dev->features & CLOCK_EVT_FEAT_C3STOP)) tick_broadcast_control()
392 if (bc && !(bc->features & CLOCK_EVT_FEAT_HRTIMER) && tick_broadcast_control()
550 if (!(bc->features & CLOCK_EVT_FEAT_DYNIRQ)) tick_broadcast_set_affinity()
673 if (!(bc->features & CLOCK_EVT_FEAT_HRTIMER)) broadcast_needs_cpu()
688 if (bc->features & CLOCK_EVT_FEAT_HRTIMER) { broadcast_shutdown_local()
734 if (bc->features & CLOCK_EVT_FEAT_HRTIMER) __tick_broadcast_oneshot_control()
980 return bc ? bc->features & CLOCK_EVT_FEAT_ONESHOT : false; tick_broadcast_oneshot_available()
988 if (!bc || (bc->features & CLOCK_EVT_FEAT_HRTIMER)) __tick_broadcast_oneshot_control()
/linux-4.4.14/include/linux/platform_data/
H A Dhsmmc-omap.h67 /* we can put the features above into this variable */
71 unsigned features; member in struct:omap_hsmmc_platform_data
H A Dmmc-omap.h80 /* we can put the features above into this variable */
84 unsigned features; member in struct:omap_mmc_platform_data::omap_mmc_slot_data
H A Dasoc-ti-mcbsp.h44 /* McBSP platform and instance specific features */
/linux-4.4.14/arch/sparc/include/uapi/asm/
H A Denvctrl.h44 /* Note: these commands reflect possible monitor features.
45 * Some boards choose to support some of the features only.
/linux-4.4.14/arch/arm/mach-mvebu/
H A Dsystem-controller.c16 * but rather provide system-level features. This basic
19 * features related to those registers.
/linux-4.4.14/drivers/staging/media/lirc/
H A Dlirc_serial.c93 int features; member in struct:lirc_serial
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)) lirc_write()
863 if (!(hardware[type].features&LIRC_CAN_SEND_MASK)) lirc_ioctl()
867 (hardware[type].features&LIRC_CAN_SEND_MASK), lirc_ioctl()
874 if (!(hardware[type].features&LIRC_CAN_SEND_MASK)) lirc_ioctl()
890 if (!(hardware[type].features&LIRC_CAN_SET_SEND_DUTY_CYCLE)) lirc_ioctl()
902 if (!(hardware[type].features&LIRC_CAN_SET_SEND_CARRIER)) lirc_ioctl()
1066 hardware[type].features &= lirc_serial_init_module()
1081 driver.features = hardware[type].features; lirc_serial_init_module()
/linux-4.4.14/drivers/isdn/mISDN/
H A Ddsp_cmx.c97 * Interaction with other features:
118 * If it is possible to realize all features using hardware, hardware will be
414 if (dsp->features.pcm_banks < 1) dsp_cmx_hardware()
463 if (finddsp->features.pcm_id == dsp->features.pcm_id) { dsp_cmx_hardware()
473 ii = dsp->features.pcm_slots; dsp_cmx_hardware()
514 same_hfc = member->dsp->features.hfc_id; dsp_cmx_hardware()
515 same_pcm = member->dsp->features.pcm_id; dsp_cmx_hardware()
629 if (member->dsp->features.pcm_id < 0) { dsp_cmx_hardware()
638 if (member->dsp->features.pcm_id != same_pcm) { dsp_cmx_hardware()
648 if (same_hfc != member->dsp->features.hfc_id) dsp_cmx_hardware()
714 if (member->dsp->features.pcm_banks > 1 && dsp_cmx_hardware()
715 nextm->dsp->features.pcm_banks > 1 && dsp_cmx_hardware()
716 member->dsp->features.hfc_id != dsp_cmx_hardware()
717 nextm->dsp->features.hfc_id) { dsp_cmx_hardware()
754 member->dsp->features.pcm_id == dsp_cmx_hardware()
755 dsp->features.pcm_id) { dsp_cmx_hardware()
767 ii = member->dsp->features.pcm_slots; dsp_cmx_hardware()
846 member->dsp->features.pcm_id == dsp_cmx_hardware()
847 dsp->features.pcm_id) { dsp_cmx_hardware()
859 ii = member->dsp->features.pcm_slots; dsp_cmx_hardware()
956 if (!member->dsp->features.hfc_conf) dsp_cmx_hardware()
974 member->dsp->features.pcm_id == dsp_cmx_hardware()
975 dsp->features.pcm_id) { dsp_cmx_hardware()
988 ii = member->dsp->features.pcm_slots; dsp_cmx_hardware()
1030 if (dsp->features.hfc_id == same_hfc && dsp_cmx_hardware()
1208 if (dsp->features.unordered) { dsp_cmx_receive()
1225 if (dsp->features.unordered) { dsp_cmx_receive()
1240 if (dsp->features.unordered) { dsp_cmx_receive()
1268 if (dsp->features.unordered) { dsp_cmx_receive()
/linux-4.4.14/drivers/usb/storage/
H A Dcypress_atacb.c118 srb->cmnd[3] = 0xff - 1; /* features, sector count, lba low, lba med cypress_atacb_passthrough()
123 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ cypress_atacb_passthrough()
138 srb->cmnd[ 6] = save_cmnd[3]; /* features */ cypress_atacb_passthrough()
223 desc[ 3] = regs[1]; /* features */ cypress_atacb_passthrough()
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Damplc_dio200.h46 bool is_pcie:1; /* has enhanced features */
/linux-4.4.14/drivers/misc/mic/host/
H A Dmic_debugfs.c109 __u32 *features; mic_dp_show() local
157 features = (__u32 *)mic_vq_features(d); mic_dp_show()
158 seq_printf(s, "Features: Host 0x%x ", features[0]); mic_dp_show()
159 seq_printf(s, "Guest 0x%x\n", features[1]); mic_dp_show()
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge_mcp_gen_header.h46 unsigned features; member in struct:mcp_gen_header
/linux-4.4.14/net/sunrpc/
H A Dsunrpc.h53 (dst->dev->features & NETIF_F_LOOPBACK)) sock_is_loopback()
/linux-4.4.14/arch/mips/include/asm/
H A Dbranch.h11 #include <asm/cpu-features.h>
H A Ddsp.h14 #include <asm/cpu-features.h>
/linux-4.4.14/arch/mips/include/asm/mach-rc32434/
H A Dcpu-feature-overrides.h6 * This file was derived from: include/asm-mips/cpu-features.h
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dkvm_virtio.h25 * features and one for guest acknowledgements.
/linux-4.4.14/arch/arm/mach-footbridge/
H A Ddc21285-timer.c77 .features = CLOCK_EVT_FEAT_PERIODIC |
/linux-4.4.14/drivers/isdn/i4l/
H A Disdnhdlc.c53 void isdnhdlc_rcv_init(struct isdnhdlc_vars *hdlc, u32 features) isdnhdlc_rcv_init() argument
57 if (features & HDLC_56KBIT) isdnhdlc_rcv_init()
59 if (features & HDLC_BITREVERSE) isdnhdlc_rcv_init()
64 void isdnhdlc_out_init(struct isdnhdlc_vars *hdlc, u32 features) isdnhdlc_out_init() argument
67 if (features & HDLC_DCHANNEL) { isdnhdlc_out_init()
76 if (features & HDLC_56KBIT) { isdnhdlc_out_init()
81 if (features & HDLC_BITREVERSE) isdnhdlc_out_init()
/linux-4.4.14/arch/powerpc/sysdev/
H A Dfsl_msi.c406 const struct fsl_msi_feature *features; fsl_of_msi_probe() local
414 features = match->data; fsl_of_msi_probe()
438 if ((features->fsl_pic_ip & FSL_PIC_IP_MASK) != FSL_PIC_IP_VMPIC) { fsl_of_msi_probe()
454 features->msiir_offset + (res.start & 0xfffff); fsl_of_msi_probe()
461 msi->msiir_offset = features->msiir_offset + fsl_of_msi_probe()
467 msi->feature = features->fsl_pic_ip; fsl_of_msi_probe()
470 if ((features->fsl_pic_ip & FSL_PIC_IP_MASK) == FSL_PIC_IP_MPIC fsl_of_msi_probe()
/linux-4.4.14/drivers/misc/mic/card/
H A Dmic_virtio.c74 u32 features = 0; mic_get_features() local
79 bits = min_t(unsigned, feature_len, sizeof(features)) * 8; mic_get_features()
82 features |= BIT(i); mic_get_features()
84 return features; mic_get_features()
92 /* Second half of bitmap is features we accept. */ mic_finalize_features()
96 /* Give virtio_ring a chance to accept features. */ mic_finalize_features()
99 /* Make sure we don't have any features > 32 bits! */ mic_finalize_features()
100 BUG_ON((u32)vdev->features != vdev->features); mic_finalize_features()
104 sizeof(vdev->features)) * 8; mic_finalize_features()
/linux-4.4.14/drivers/isdn/sc/
H A Dinit.c49 unsigned long features = 0; sc_init() local
214 features = PRI_FEATURES; sc_init()
222 features = BRI_FEATURES; sc_init()
280 interface->features = features; sc_init()
/linux-4.4.14/arch/powerpc/kvm/
H A De500mc.c223 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | kvmppc_core_get_sregs_e500mc()
227 sregs->u.e.impl.fsl.features = 0; kvmppc_core_get_sregs_e500mc()
258 if (!(sregs->u.e.features & KVM_SREGS_E_IVOR)) kvmppc_core_set_sregs_e500mc()
261 if (sregs->u.e.features & KVM_SREGS_E_PM) { kvmppc_core_set_sregs_e500mc()
266 if (sregs->u.e.features & KVM_SREGS_E_PC) { kvmppc_core_set_sregs_e500mc()
/linux-4.4.14/drivers/hwmon/
H A Dit87.c254 u16 features; member in struct:it87_devices
277 .features = FEAT_OLD_AUTOPWM, /* may need to overwrite */
282 .features = FEAT_OLD_AUTOPWM | FEAT_VID,
288 .features = FEAT_16BIT_FANS | FEAT_TEMP_OFFSET | FEAT_VID
294 .features = FEAT_16BIT_FANS | FEAT_TEMP_OFFSET | FEAT_VID
301 .features = FEAT_16BIT_FANS | FEAT_TEMP_OFFSET | FEAT_VID
308 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
317 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
325 .features = FEAT_NEWER_AUTOPWM | FEAT_16BIT_FANS
334 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
345 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
356 .features = FEAT_16BIT_FANS | FEAT_TEMP_OFFSET
363 .features = FEAT_16BIT_FANS | FEAT_TEMP_OFFSET
370 .features = FEAT_16BIT_FANS | FEAT_TEMP_OFFSET
377 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
384 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
391 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
398 .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS
405 #define has_16bit_fans(data) ((data)->features & FEAT_16BIT_FANS)
406 #define has_12mv_adc(data) ((data)->features & FEAT_12MV_ADC)
407 #define has_10_9mv_adc(data) ((data)->features & FEAT_10_9MV_ADC)
408 #define has_newer_autopwm(data) ((data)->features & FEAT_NEWER_AUTOPWM)
409 #define has_old_autopwm(data) ((data)->features & FEAT_OLD_AUTOPWM)
410 #define has_temp_offset(data) ((data)->features & FEAT_TEMP_OFFSET)
411 #define has_temp_peci(data, nr) (((data)->features & FEAT_TEMP_PECI) && \
414 (((data)->features & FEAT_TEMP_OLD_PECI) && \
416 #define has_fan16_config(data) ((data)->features & FEAT_FAN16_CONFIG)
417 #define has_five_fans(data) ((data)->features & (FEAT_FIVE_FANS | \
419 #define has_vid(data) ((data)->features & FEAT_VID)
420 #define has_in7_internal(data) ((data)->features & FEAT_IN7_INTERNAL)
421 #define has_six_fans(data) ((data)->features & FEAT_SIX_FANS)
445 u16 features; member in struct:it87_data
2156 /* Disable specific features based on DMI strings */ it87_find()
2255 data->features = it87_devices[sio_data->type].features; it87_probe()
2267 data->features &= ~FEAT_OLD_AUTOPWM; it87_probe()
2268 data->features |= FEAT_FAN16_CONFIG | FEAT_16BIT_FANS; it87_probe()
2273 data->features &= ~FEAT_OLD_AUTOPWM; it87_probe()
2274 data->features |= FEAT_FAN16_CONFIG | FEAT_16BIT_FANS | it87_probe()
/linux-4.4.14/drivers/pcmcia/
H A Dcistpl.c93 if (!(s->features & SS_CAP_STATIC_MAP) && (mem->res == NULL)) { set_cis_map()
103 if (!(s->features & SS_CAP_STATIC_MAP) && (!s->cis_virt)) set_cis_map()
116 if (s->features & SS_CAP_STATIC_MAP) { set_cis_map()
1082 u_char *p, *q, features; parse_cftable_entry() local
1105 /* Process optional features */ parse_cftable_entry()
1108 features = *p; p++; parse_cftable_entry()
1111 if ((features & 3) > 0) { parse_cftable_entry()
1117 if ((features & 3) > 1) { parse_cftable_entry()
1123 if ((features & 3) > 2) { parse_cftable_entry()
1131 if (features & 0x04) { parse_cftable_entry()
1142 if (features & 0x08) { parse_cftable_entry()
1150 if (features & 0x10) { parse_cftable_entry()
1157 switch (features & 0x60) { parse_cftable_entry()
1186 /* Misc features */ parse_cftable_entry()
1187 if (features & 0x80) { parse_cftable_entry()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c316 static void __atl1e_rx_mode(netdev_features_t features, u32 *mac_ctrl_data) __atl1e_rx_mode() argument
319 if (features & NETIF_F_RXALL) { __atl1e_rx_mode()
329 netdev_features_t features) atl1e_rx_mode()
338 __atl1e_rx_mode(features, &mac_ctrl_data); atl1e_rx_mode()
344 static void __atl1e_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data) __atl1e_vlan_mode() argument
346 if (features & NETIF_F_HW_VLAN_CTAG_RX) { __atl1e_vlan_mode()
356 netdev_features_t features) atl1e_vlan_mode()
365 __atl1e_vlan_mode(features, &mac_ctrl_data); atl1e_vlan_mode()
373 atl1e_vlan_mode(adapter->netdev, adapter->netdev->features); atl1e_restore_vlan()
403 netdev_features_t features) atl1e_fix_features()
409 if (features & NETIF_F_HW_VLAN_CTAG_RX) atl1e_fix_features()
410 features |= NETIF_F_HW_VLAN_CTAG_TX; atl1e_fix_features()
412 features &= ~NETIF_F_HW_VLAN_CTAG_TX; atl1e_fix_features()
414 return features; atl1e_fix_features()
418 netdev_features_t features) atl1e_set_features()
420 netdev_features_t changed = netdev->features ^ features; atl1e_set_features()
423 atl1e_vlan_mode(netdev, features); atl1e_set_features()
426 atl1e_rx_mode(netdev, features); atl1e_set_features()
1082 __atl1e_vlan_mode(netdev->features, &value); atl1e_setup_mac_ctrl()
1089 if (netdev->features & NETIF_F_RXALL) atl1e_setup_mac_ctrl()
1447 !(netdev->features & NETIF_F_RXALL)) { atl1e_clean_rx_irq()
1461 if (likely(!(netdev->features & NETIF_F_RXFCS))) atl1e_clean_rx_irq()
2164 __atl1e_vlan_mode(netdev->features, &mac_ctrl_data); atl1e_suspend()
2288 netdev->features = netdev->hw_features | NETIF_F_LLTX | atl1e_init_netdev()
328 atl1e_rx_mode(struct net_device *netdev, netdev_features_t features) atl1e_rx_mode() argument
355 atl1e_vlan_mode(struct net_device *netdev, netdev_features_t features) atl1e_vlan_mode() argument
402 atl1e_fix_features(struct net_device *netdev, netdev_features_t features) atl1e_fix_features() argument
417 atl1e_set_features(struct net_device *netdev, netdev_features_t features) atl1e_set_features() argument
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_dcb.c127 struct dcbx_features *features, bnx2x_dump_dcbx_drv_param()
135 "local_mib.features.ets.enabled %x\n", features->ets.enabled); bnx2x_dump_dcbx_drv_param()
138 "local_mib.features.ets.pg_bw_tbl[%d] %d\n", i, bnx2x_dump_dcbx_drv_param()
139 DCBX_PG_BW_GET(features->ets.pg_bw_tbl, i)); bnx2x_dump_dcbx_drv_param()
142 "local_mib.features.ets.pri_pg_tbl[%d] %d\n", i, bnx2x_dump_dcbx_drv_param()
143 DCBX_PRI_PG_GET(features->ets.pri_pg_tbl, i)); bnx2x_dump_dcbx_drv_param()
147 features->pfc.pri_en_bitmap); bnx2x_dump_dcbx_drv_param()
149 features->pfc.pfc_caps); bnx2x_dump_dcbx_drv_param()
151 features->pfc.enabled); bnx2x_dump_dcbx_drv_param()
154 features->app.default_pri); bnx2x_dump_dcbx_drv_param()
156 features->app.tc_supported); bnx2x_dump_dcbx_drv_param()
158 features->app.enabled); bnx2x_dump_dcbx_drv_param()
162 i, features->app.app_pri_tbl[i].app_id); bnx2x_dump_dcbx_drv_param()
165 i, features->app.app_pri_tbl[i].pri_bitmap); bnx2x_dump_dcbx_drv_param()
168 i, features->app.app_pri_tbl[i].appBitfield); bnx2x_dump_dcbx_drv_param()
345 struct dcbx_features *features, bnx2x_get_dcbx_drv_param()
348 bnx2x_dcbx_get_ap_feature(bp, &features->app, error); bnx2x_get_dcbx_drv_param()
350 bnx2x_dcbx_get_pfc_feature(bp, &features->pfc, error); bnx2x_get_dcbx_drv_param()
352 bnx2x_dcbx_get_ets_feature(bp, &features->ets, error); bnx2x_get_dcbx_drv_param()
617 /* save features and flags */ bnx2x_dcbx_read_shmem_remote_mib()
618 bp->dcbx_remote_feat = remote_mib.features; bnx2x_dcbx_read_shmem_remote_mib()
645 /* save features and error */ bnx2x_dcbx_read_shmem_neg_results()
646 bp->dcbx_local_feat = local_mib.features; bnx2x_dcbx_read_shmem_neg_results()
806 struct dcbx_features *af = &admin_mib.features; bnx2x_dcbx_admin_mib_updated_params()
126 bnx2x_dump_dcbx_drv_param(struct bnx2x *bp, struct dcbx_features *features, u32 error) bnx2x_dump_dcbx_drv_param() argument
344 bnx2x_get_dcbx_drv_param(struct bnx2x *bp, struct dcbx_features *features, u32 error) bnx2x_get_dcbx_drv_param() argument
/linux-4.4.14/net/bluetooth/
H A Dhci_debugfs.c88 hdev->features[p][0], hdev->features[p][1], features_show()
89 hdev->features[p][2], hdev->features[p][3], features_show()
90 hdev->features[p][4], hdev->features[p][5], features_show()
91 hdev->features[p][6], hdev->features[p][7]); features_show()
354 debugfs_create_file("features", 0444, hdev->debugfs, hdev, hci_debugfs_create_common()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
H A Dcxgb2.c265 t1_vlan_mode(adapter, dev->features); cxgb_open()
851 netdev_features_t features) t1_fix_features()
857 if (features & NETIF_F_HW_VLAN_CTAG_RX) t1_fix_features()
858 features |= NETIF_F_HW_VLAN_CTAG_TX; t1_fix_features()
860 features &= ~NETIF_F_HW_VLAN_CTAG_TX; t1_fix_features()
862 return features; t1_fix_features()
865 static int t1_set_features(struct net_device *dev, netdev_features_t features) t1_set_features() argument
867 netdev_features_t changed = dev->features ^ features; t1_set_features()
871 t1_vlan_mode(adapter, features); t1_set_features()
1079 netdev->features |= NETIF_F_SG | NETIF_F_IP_CSUM | init_one()
1083 netdev->features |= NETIF_F_HIGHDMA; init_one()
1085 netdev->features |= init_one()
1093 netdev->features |= NETIF_F_TSO; init_one()
850 t1_fix_features(struct net_device *dev, netdev_features_t features) t1_fix_features() argument
/linux-4.4.14/fs/nilfs2/
H A Dsuper.c900 __u64 features; nilfs_check_feature_compatibility() local
902 features = le64_to_cpu(sbp->s_feature_incompat) & nilfs_check_feature_compatibility()
904 if (features) { nilfs_check_feature_compatibility()
906 "optional features (%llx)\n", nilfs_check_feature_compatibility()
907 (unsigned long long)features); nilfs_check_feature_compatibility()
910 features = le64_to_cpu(sbp->s_feature_compat_ro) & nilfs_check_feature_compatibility()
912 if (!(sb->s_flags & MS_RDONLY) && features) { nilfs_check_feature_compatibility()
914 "unsupported optional features (%llx)\n", nilfs_check_feature_compatibility()
915 (unsigned long long)features); nilfs_check_feature_compatibility()
1173 __u64 features; nilfs_remount() local
1182 features = le64_to_cpu(nilfs->ns_sbp[0]->s_feature_compat_ro) & nilfs_remount()
1185 if (features) { nilfs_remount()
1188 "features (%llx)\n", nilfs_remount()
1189 sb->s_id, (unsigned long long)features); nilfs_remount()

Completed in 6507 milliseconds

12345678