| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_kunit_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0 AND MIT 68 struct ttm_resource *old_mem = bo->resource; in mock_move() 70 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm)) { in mock_move() 75 if (bo->resource->mem_type == TTM_PL_VRAM && in mock_move() 76 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move() 77 hop->mem_type = TTM_PL_TT; in mock_move() 78 hop->flags = TTM_PL_FLAG_TEMPORARY; in mock_move() 79 hop->fpfn = 0; in mock_move() 80 hop->lpfn = 0; in mock_move() 81 return -EMULTIHOP; in mock_move() [all …]
|
| H A D | ttm_resource_test.c | 1 // SPDX-License-Identifier: GPL-2.0 AND MIT 10 #define TTM_PRIV_DUMMY_REG (TTM_NUM_MEM_TYPES - 1) 19 struct ttm_test_devices *devs; member 33 priv->devs = ttm_test_devices_all(test); in ttm_resource_test_init() 34 KUNIT_ASSERT_NOT_NULL(test, priv->devs); in ttm_resource_test_init() 36 test->priv = priv; in ttm_resource_test_init() 43 struct ttm_resource_test_priv *priv = test->priv; in ttm_resource_test_fini() 45 ttm_test_devices_put(test, priv->devs); in ttm_resource_test_fini() 55 KUNIT_ASSERT_NOT_NULL(test, priv->devs->ttm_dev); in ttm_init_test_mocks() 57 priv->bo = ttm_bo_kunit_init(test, priv->devs, size, NULL); in ttm_init_test_mocks() [all …]
|
| H A D | ttm_tt_test.c | 1 // SPDX-License-Identifier: GPL-2.0 AND MIT 20 .description = "Page-aligned size", 33 strscpy(desc, t->description, KUNIT_PARAM_DESC_SIZE); in ttm_tt_init_case_desc() 41 const struct ttm_tt_test_case *params = test->param_value; in ttm_tt_init_basic() 46 u32 extra_pages = params->extra_pages_num; in ttm_tt_init_basic() 47 int num_pages = params->size >> PAGE_SHIFT; in ttm_tt_init_basic() 53 bo = ttm_bo_kunit_init(test, test->priv, params->size, NULL); in ttm_tt_init_basic() 58 KUNIT_ASSERT_EQ(test, tt->num_pages, num_pages + extra_pages); in ttm_tt_init_basic() 60 KUNIT_ASSERT_EQ(test, tt->page_flags, page_flags); in ttm_tt_init_basic() 61 KUNIT_ASSERT_EQ(test, tt->caching, caching); in ttm_tt_init_basic() [all …]
|
| /linux/drivers/char/agp/ |
| H A D | ali-agp.c | 27 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_fetch_size() 29 values = A_SIZE_32(agp_bridge->driver->aperture_sizes); in ali_fetch_size() 31 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in ali_fetch_size() 33 agp_bridge->previous_size = in ali_fetch_size() 34 agp_bridge->current_size = (void *) (values + i); in ali_fetch_size() 35 agp_bridge->aperture_size_idx = i; in ali_fetch_size() 47 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_tlbflush() 50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush() 58 previous_size = A_SIZE_32(agp_bridge->previous_size); in ali_cleanup() 60 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_cleanup() [all …]
|
| H A D | ati-agp.c | 60 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); in ati_create_page_map() 61 if (page_map->real == NULL) in ati_create_page_map() 62 return -ENOMEM; in ati_create_page_map() 64 set_memory_uc((unsigned long)page_map->real, 1); in ati_create_page_map() 65 err = map_page_into_agp(virt_to_page(page_map->real)); in ati_create_page_map() 67 free_page((unsigned long)page_map->real); in ati_create_page_map() 70 page_map->remapped = page_map->real; in ati_create_page_map() 73 writel(agp_bridge->scratch_page, page_map->remapped+i); in ati_create_page_map() 74 readl(page_map->remapped+i); /* PCI Posting. */ in ati_create_page_map() 83 unmap_page_from_agp(virt_to_page(page_map->real)); in ati_free_page_map() [all …]
|
| /linux/include/scsi/ |
| H A D | scsi_devinfo.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 /* Treat as (removable) CD-ROM */ 27 /* LUNs past 7 on a SCSI-2 device */ 29 /* override additional length field */ 40 /* try REPORT_LUNS even for SCSI-2 devs (if HBA supports more than 8 LUNs) */ 42 /* don't try REPORT_LUNS scan (SCSI-3 devs) */ 44 /* don't use PREVENT-ALLOW commands */ 57 /* Ignore SBC-3 VPD pages */ 79 ((__force __u64)__BLIST_LAST_USED - 1ULL)))
|
| /linux/lib/kunit/ |
| H A D | Kconfig | 6 tristate "KUnit - Enable support for unit tests" 14 Documentation/dev-tools/kunit/. 19 bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" 56 itself, lib/kunit/example-test.c, for more information. This option 65 in TAP format (http://testanything.org/). Only useful for kernel devs 70 to the KUnit documentation in Documentation/dev-tools/kunit/. 82 In most cases this should be left as Y. Only if additional opt-in 94 In most cases this should be left as Y. Only if additional opt-in 100 Sets the default value of kunit.filter_glob. If set to a non-empty 108 Sets the default value of kunit.filter. If set to a non-empty [all …]
|
| /linux/sound/core/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 # ALSA soundcard-configuration 38 When this option is set, an additional rawmidi device for the 52 kernel devs running KUnit test harness and are not for inclusion 56 to the KUnit documentation in Documentation/dev-tools/kunit/. 85 and read <file:Documentation/sound/designs/oss-emulation.rst>. 90 will be called snd-mixer-oss. 98 here and read <file:Documentation/sound/designs/oss-emulation.rst>. 103 will be called snd-pcm-oss. 106 bool "OSS PCM (digital audio) API - Include plugin system" [all …]
|
| /linux/sound/soc/generic/ |
| H A D | simple-card.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <sound/soc-dai.h> 22 #define DAI "sound-dai" 23 #define CELL "#sound-dai-cells" 24 #define PREFIX "simple-audio-card," 50 * Get node via "sound-da in simple_parse_platform() [all...] |
| /linux/drivers/pnp/pnpbios/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pnpbios -- PnP BIOS driver 5 * This driver provides access to Plug-'n'-Play services provided by 19 * Ported to the PnP Layer and several additional improvements (C) 2002 25 * Adam Belay - <ambx1@neo.rr.com> - March 16, 2003 93 return -ENOMEM; in pnp_dock_event() 96 return -ENOMEM; in pnp_dock_event() 112 /* hint that policy agent should enter no-stdout debug mode */ in pnp_dock_event() 115 /* extensible set of named bus-specific parameters, in pnp_dock_event() 127 info->location_id, info->serial, info->capabilities); in pnp_dock_event() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/dma-mapping.h> 20 #include "xhci-trace.h" 21 #include "xhci-debugfs.h" 37 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc() 43 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 44 if (!seg->trbs) { in xhci_segment_alloc() 50 seg->bounce_buf = kzalloc_node(max_packet, flags, in xhci_segment_alloc() 52 if (!seg->bounce_buf) { in xhci_segment_alloc() 53 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc() [all …]
|
| H A D | xhci-ring.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * until you reach a non-link TRB. 59 #include <linux/dma-mapping.h> 63 #include "xhci-trace.h" 78 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 81 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 84 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma() 94 if (in_range(dma, seg->dma, TRB_SEGMENT_SIZE)) { in xhci_dma_to_trb() 97 return &seg->trbs[(dma - seg->dma) / sizeof(union xhci_trb)]; in xhci_dma_to_trb() 106 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in trb_is_noop() [all …]
|
| H A D | xhci-mtk-sch.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "xhci-mtk.h" 18 /* table 5-5. High-speed Isoc Transaction Limits in usb_20 spec */ 28 * max number of microframes for split transfer, assume extra-cs budget is 0 55 return "Can't schedule Start-Split in Y6"; in sch_error_string() 57 return "Can't find a suitable Start-Split location"; in sch_error_string() 59 return "The last Complete-Split is greater than 7"; in sch_error_string() 78 struct usb_endpoint_descriptor *epd = &ep->desc; in decode_ep() 94 usb_endpoint_maxp(epd), epd->bInterval, interval, unit); in decode_ep() 130 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in get_bw_info() [all …]
|
| /linux/include/linux/mtd/ |
| H A D | cfi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> et al. 28 # define cfi_interleave(cfi) ((cfi)->interleave) 40 # define cfi_interleave(cfi) ((cfi)->interleave) 52 # define cfi_interleave(cfi) ((cfi)->interleave) 152 /* Vendor-Specific PRI for Intel/Sharp Extended Command Set (0x0001) */ 158 uint32_t FeatureSupport; /* if bit 31 is set then an additional uint32_t feature 159 block follows - FIXME - not currently supported */ 205 /* Vendor-Specific PRI for AMD/Fujitsu Extended Command Set (0x0002) */ 211 uint8_t SiliconRevision; /* bits 1-0: Address Sensitive Unlock */ [all …]
|
| /linux/include/net/ |
| H A D | sch_generic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 #include <net/dropreason-qdisc.h> 61 /* similar to sk_buff_head, but skb->prev pointer is undefined. */ 80 * q->dev_queue : It can test 94 #define TCQ_F_DEQUEUE_DROPS 0x400 /* ->dequeue() can drop packets in q->to_free */ 147 if (qdisc->flags & TCQ_F_BUILTIN) in qdisc_refcount_inc() 149 refcount_inc(&qdisc->refcnt); in qdisc_refcount_inc() 154 if (qdisc->flags & TCQ_F_BUILTIN) in qdisc_refcount_dec_if_one() 156 return refcount_dec_if_one(&qdisc->refcnt); in qdisc_refcount_dec_if_one() 165 if (qdisc->flags & TCQ_F_BUILTIN) in qdisc_refcount_inc_nz() [all …]
|
| /linux/drivers/scsi/ |
| H A D | st.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 Copyright 1992 - 2016 Kai Makisara 16 Some small formal changes - aeb, 950809 18 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 62 is defined and non-zero. */ 159 6-byte SCSI read and write commands. */ 160 #if ST_FIXED_BUFFER_SIZE >= (2 << 24 - 1) 161 #error "Buffer size should not exceed (2 << 24 - 1) bytes!" 166 /* Setting these non-zero may risk recognizing resets */ 176 /* Remove mode bits and auto-rewind bit (7) */ [all …]
|
| H A D | sg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Copyright (C) 1998 - 2014 Douglas Gilbert 19 * - scsi logging is available via SCSI_LOG_TIMEOUT macros. First 112 unsigned short k_use_sg; /* Count of kernel scatter-gather pieces */ 113 unsigned sglist_len; /* size of malloc'd scatter-gather list ++ */ 117 char dio_in_use; /* 0->indirect IO (or mmap), 1->dio */ 126 struct sg_fd *parentfp; /* NULL -> not in use */ 130 char res_used; /* 1 -> using reserve buffer, 0 -> not ... */ 131 char orphan; /* 1 -> drop on sight, 0 -> normal */ 132 char sg_io_owned; /* 1 -> packet belongs to SG_IO */ [all …]
|
| /linux/tools/power/pm-graph/ |
| H A D | README | 8 pm-graph: suspend/resume/boot timing analysis tools 11 …Home Page: https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overvi… 13 Report bugs/issues at bugzilla.kernel.org Tools/pm-graph 14 - https://bugzilla.kernel.org/buglist.cgi?component=pm-graph&product=Tools 17 - Getting Started: 20 - Feature Summary: 21 https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/features.html 23 - upstream version in git: 24 git clone https://github.com/intel/pm-graph/ 27 - Overview [all …]
|
| H A D | sleepgraph.py | 2 # SPDX-License-Identifier: GPL-2.0-only 21 # https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html 23 # git@github.com:intel/pm-graph 46 # The following additional kernel parameters are required: 51 # -- [all...] |
| /linux/drivers/dma/ |
| H A D | dmaengine.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 2004 - 2006 Intel Corporation. All rights reserved. 7 * This code implements the DMA subsystem. It provides a HW-neutral interface 13 * operation, the code goes to great lengths to avoid additional overhead, 29 * See Documentation/driver-api/dmaengine for more details 37 #include <linux/dma-mapping.h> 65 /* --- debugfs implementation --- */ 73 dma_dev->dbg_dev_root = debugfs_create_dir(dev_name(dma_dev->dev), in dmaengine_debug_register() 75 if (IS_ERR(dma_dev->dbg_dev_root)) in dmaengine_debug_register() 76 dma_dev->dbg_dev_root = NULL; in dmaengine_debug_register() [all …]
|
| /linux/drivers/net/can/usb/ |
| H A D | gs_usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013-2016 Geschwister Schneider Technologie-, 6 * Entwicklungs- und Vertriebs UG (Haftungsbeschränkt). 8 * Copyright (c) 2023 Pengutronix, Marc Kleine-Budde <kernel@pengutronix.de> 10 * Many thanks to all socketcan devs! 28 #include <linux/can/rx-offload.h> 109 * Technologie Entwicklungs- und Vertriebs UG exchanges all data 189 /* internal quirks - keep in GS_CAN_FEATURE space for now */ 290 * linux/can.h and linux/can/error.h, and no additional mapping is necessary. 335 spinlock_t tc_lock; /* spinlock to guard access tc->cycle_last */ [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-asus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HID driver for Asus notebook built-in keyboard. 12 * This module based on hid-ortek by 28 #include <linux/platform_data/x86/asus-wmi.h> 34 #include "hid-ids.h" 242 * Send events to asus-wmi driver for handling special keys 252 pr_warn("Failed to notify asus-wmi: %d\n", err); in asus_wmi_send_event() 257 pr_warn("Failed to notify asus-wmi (retval): 0x%x\n", retval); in asus_wmi_send_event() 258 return -EIO; in asus_wmi_send_event() 267 struct input_dev *input = drvdat->input; in asus_report_contact_down() [all …]
|
| /linux/security/ |
| H A D | security.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> 9 * Copyright (C) 2023 Microsoft Corporation <paul@paul-moore.com> 25 #include <linux/backing-dev.h> 157 * lsm_file_alloc - allocat [all...] |
| /linux/drivers/parisc/ |
| H A D | lba_pci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 ** (c) Copyright 1999,2000 Hewlett-Packard Company 12 ** spaces) on platforms with an SBA/LBA chipset. A/B/C/J/L/N-class 13 ** with 4 digit model numbers - eg C3000 (and A400...sigh). 20 ** (d) play nicely with both PAT and "Legacy" PA-RISC firmware (PDC). 27 ** FIXME: Add support for PCI card hot-plug (OLARD). 46 #include <asm/parisc-device.h> 54 #undef DEBUG_LBA_PAT /* debug PCI Resource Mgt code - PDC PAT only */ 56 #undef FBB_SUPPORT /* Fast Back-Back xfers - NOT READY YET */ 85 ** Config accessor functions only pass in the 8-bit bus number and not [all …]
|
| /linux/include/linux/ |
| H A D | netdevice.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 * Corey Minyard <wf-rch!minyard@relay.EU.net> 54 #include <net/dropreason-core.h> 105 * - qdisc return codes 106 * - driver transmit return codes 107 * - errno values 111 * the driver transmit return codes though - when qdiscs are used, the actual 118 /* qdisc ->enqueue() return codes. */ 128 #define net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0) 148 * - successful transmission (rc == NETDEV_TX_OK) in dev_xmit_complete() [all …]
|