| /linux/Documentation/netlink/specs/ |
| H A D | devlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 5 protocol: genetlink-legacy 10 - 12 name: sb-pool-type 14 - 16 - 18 - 20 name: port-type 22 - [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | rsdump.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: rsdump - AML debugger support for resource structures. 46 static void acpi_rs_dump_address_common(union acpi_resource_data *resource); 49 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table); 56 * PARAMETERS: resource_list - Pointer to a resource descriptor list 60 * DESCRIPTION: Dispatches the structure to the correct dump routine. 77 /* Walk list and dump all resource descriptors (END_TAG terminates) */ in acpi_rs_dump_resource_list() 85 type = resource_list->type; in acpi_rs_dump_resource_list() 88 ("Invalid descriptor type (%X) in resource list\n", in acpi_rs_dump_resource_list() 89 resource_list->type); in acpi_rs_dump_resource_list() [all …]
|
| H A D | dbcmds.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: dbcmds - Miscellaneous debug commands and output routines 30 acpi_db_resource_callback(struct acpi_resource *resource, void *context); 44 * PARAMETERS: in_string - String to convert 98 * PARAMETERS: object_arg - Desired sleep state (0-5). NULL means 117 acpi_os_printf("Invoking all possible sleep states, 0-%d\n", in acpi_db_sleep() 138 * PARAMETERS: sleep_state - Desired sleep state (0-5) 160 acpi_os_printf("\n---- Invoking sleep state S%d (%s):\n", in acpi_db_do_one_sleep_state() 175 ("Register values for sleep state S%d: Sleep-A: %.2X, Sleep-B: %.2X\n", in acpi_db_do_one_sleep_state() 241 * PARAMETERS: table_arg - Name of table to be displayed [all …]
|
| H A D | utresdecode.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: utresdecode - Resource descriptor keyword strings 19 * Strings used to decode resource descriptors. 20 * Used by both the disassembler and the debugger resource dump routines 28 "0 - Good Configuration", 29 "1 - Acceptable Configuration", 30 "2 - Suboptimal Configuration", 31 "3 - ***Invalid Configuration***", 272 "Bias Pull-up", 273 "Bias Pull-down",
|
| H A D | rsinfo.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: rsinfo - Dispatch and Info tables 16 * Resource dispatch and information tables. Any new resource types (either 22 * bits 6:3 of the descriptor byte. The tables for internal resource 25 /* Dispatch table for resource-to-AML (Set Resource) conversion functions */ 46 NULL, /* 0x13, ACPI_RESOURCE_TYPE_SERIAL_BUS - Use subtype table below */ 55 /* Dispatch tables for AML-to-resource (Get Resource) conversion functions */ 93 NULL, /* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS - Use subtype table below */ 101 /* Subtype table for serial_bus -- I2C, SPI, UART, and CSI2 */ 113 /* Dispatch table for resource dump functions */ [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | rsc_dump.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 51 return -EINVAL; in mlx5_rsc_dump_sgmt_get_by_name() 72 rsc_dump->number_of_menu_items = MLX5_GET(resource_dump_menu_segment, menu, in mlx5_rsc_dump_read_menu_sgmt() 77 num_of_items = rsc_dump->number_of_menu_items; in mlx5_rsc_dump_read_menu_sgmt() 87 if (sgmt_idx == -EINVAL) in mlx5_rsc_dump_read_menu_sgmt() 89 rsc_dump->fw_segment_type[sgmt_idx] = MLX5_GET(resource_dump_menu_record, in mlx5_rsc_dump_read_menu_sgmt() 98 struct mlx5_rsc_dump *rsc_dump = dev->rsc_dump; in mlx5_rsc_dump_trigger() 105 dma = dma_map_page(ddev, page, 0, cmd->mem_size, DMA_FROM_DEVICE); in mlx5_rsc_dump_trigger() 107 return -ENOMEM; in mlx5_rsc_dump_trigger() 109 in_seq_num = MLX5_GET(resource_dump, cmd->cmd, seq_num); in mlx5_rsc_dump_trigger() [all …]
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | devlink.sh | 2 # SPDX-License-Identifier: GPL-2.0 24 "$@" | grep -q $DL_HANDLE 36 DUMMYFILE=$(find /lib/firmware -type f -printf '%P\n' | head -1) 39 if [ -z "$DUMMYFILE" ] 83 local attr=${2:-value} 84 local cmode=${3:-driverini [all...] |
| /linux/drivers/media/platform/st/sti/hva/ |
| H A D | hva-hw.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "hva-hw.h" 80 * NO_INT_COMPLETION: Time-out on interrupt completion 106 hva->sts_reg = readl_relaxed(hva->regs + HVA_HIF_FIFO_STS); in hva_hw_its_interrupt() 107 hva->sfl_reg = readl_relaxed(hva->regs + HVA_HIF_REG_SFL); in hva_hw_its_interrupt() 110 writel_relaxed(0x1, hva->regs + HVA_HIF_REG_IT_ACK); in hva_hw_its_interrupt() 119 u32 status = hva->sts_reg & 0xFF; in hva_hw_its_irq_thread() 124 HVA_PREFIX, __func__, hva->sts_reg & 0xFF, hva->sfl_reg & 0xF); in hva_hw_its_irq_thread() 130 ctx_id = (hva->sts_reg & 0xFF00) >> 8; in hva_hw_its_irq_thread() 137 ctx = hva->instances[ctx_id]; in hva_hw_its_irq_thread() [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | proc.py | 1 # SPDX-License-Identifier: GPL-2.0 30 super(LxCmdLine, self).__init__("lx-cmdline", gdb.COMMAND_DATA) 44 super(LxVersion, self).__init__("lx-version", gdb.COMMAND_DATA) 54 # Resource Structure Printers 58 def get_resources(resource, depth): argument 59 while resource: 60 yield resource, depth 62 child = resource['child'] 67 resource = resource['sibling'] 71 resource = gdb.parse_and_eval(resource_str) [all …]
|
| /linux/drivers/scsi/ |
| H A D | ipr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ipr.c -- driver for IBM Power Linux RAID adapters 17 * IBM pSeries: PCI-X Dual Channel Ultra 320 SCSI RAID Adapter 18 * PCI-X Dual Channel Ultra 320 SCSI Adapter 19 * PCI-X Dual Channel Ultra 320 SCSI RAID Enablement Card 23 * - Ultra 320 SCSI controller 24 * - PCI-X host interface 25 * - Embedded PowerPC RISC Processor and Hardware XOR DMA Engine 26 * - Non-Volatile Write Cache 27 * - Supports attachment of non-RAID disks, tape, and optical devices [all …]
|
| H A D | ipr.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * ipr.h -- driver for IBM Power Linux RAID adapters 9 * Alan Cox <alan@lxorguk.ukuu.org.uk> - Removed several careless u32/dma_addr_t errors 40 * ops the mid-layer can send to the adapter. 42 #define IPR_NUM_BASE_CMD_BLKS (ioa_cfg->max_cmds) 305 * Dump literals 403 #define IPR_QUEUEING_MODEL(res) ((((res)->flags) & 0x70) >> 4) 420 #define IPR_QUEUEING_MODEL64(res) ((((res)->res_flags) & 0x7000) >> 12) 706 u8 data[255 - sizeof(struct ipr_mode_parm_hdr)]; 712 #define IPR_GET_MODE_PAGE_CODE(hdr) ((hdr)->ps_page_code & 0x3F) [all …]
|
| /linux/sound/soc/intel/catpt/ |
| H A D | dsp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/dma-mapping.h> 20 return param == chan->device->dev; in catpt_dma_filter() 40 chan = dma_request_channel(mask, catpt_dma_filter, cdev->dev); in catpt_dma_request_config_chan() 42 dev_err(cdev->dev, "request channel failed\n"); in catpt_dma_request_config_chan() 43 return ERR_PTR(-ENODE in catpt_dma_request_config_chan() 457 u8 *dump, *pos; catpt_coredump() local [all...] |
| /linux/Documentation/driver-api/cxl/linux/example-configurations/ |
| H A D | single-device.rst | 1 .. SPDX-License-Identifier: GPL-2.0 6 This cxl-cli configuration dump shows the following host configuration: 13 This output is generated by :code:`cxl list -v` and describes the relationships 48 to the platform's memory controller - which routes memory requests to it. 101 "resource":825975898112, 125 "resource":825975898112, 143 target is :code:`dport1` - which is attached to :code:`endpoint5`. 196 is a pass-through decoder because :code:`interleave_ways` is set to :code:`1`. 205 "resource":825975898112, 229 "resource":825975898112,
|
| H A D | intra-hb-interleave.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Intra-Host-Bridge Interleave 6 This cxl-cli configuration dump shows the following host configuration: 13 This output is generated by :code:`cxl list -v` and describes the relationships 48 to the platform's memory controller - which routes memory requests to it. 101 "resource":825975898112, 127 "resource":825975898112, 153 "resource":825975898112, 178 targets: :code:`dport1` and :code:`dport3` - which are attached to 235 :code:`port3` - with a granularity of 256 bytes. [all …]
|
| H A D | hb-interleave.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Inter-Host-Bridge Interleave 6 This cxl-cli configuration dump shows the following host configuration: 13 This output is generated by :code:`cxl list -v` and describes the relationships 48 to the platform's memory controller - which routes memory requests to it. 101 "resource":825975898112, 126 "resource":825975898112, 144 target is :code:`dport1` - which is attached to :code:`endpoint5`. 179 "resource":825975898112, 194 "resource":825975898112, [all …]
|
| H A D | multi-interleave.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Multi-Level Interleave 6 This cxl-cli configuration dump shows the following host configuration: 14 This output is generated by :code:`cxl list -v` and describes the relationships 49 to the platform's memory controller - which routes memory requests to it. 102 "resource":825975898112, 128 "resource":825975898112, 156 "resource":825975898112, 181 targets are :code:`dport0` and :code:`dport2` - which are attached to 222 "resource":825975898112, [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_gtt_mgr.c | 53 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_total_show() 54 return sysfs_emit(buf, "%llu\n", man->size); in amdgpu_mem_info_gtt_total_show() 71 struct ttm_resource_manager *man = &adev->mman.gtt_mgr.manager; in amdgpu_mem_info_gtt_used_show() 92 * amdgpu_gtt_mgr_has_gart_addr - Check if mem has address space 102 return drm_mm_node_allocated(&node->mm_nodes[0]); in amdgpu_gtt_mgr_has_gart_addr() 106 * amdgpu_gtt_mgr_mark_bo_teardown - exclude a BO from GART recovery 110 * Keep the GART range allocated until the resource is freed, but make recovery 116 struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev); in amdgpu_gtt_mgr_mark_bo_teardown() 117 struct ttm_range_mgr_node *node = to_ttm_range_mgr_node(tbo->resource); in amdgpu_gtt_mgr_mark_bo_teardown() 118 struct amdgpu_gtt_mgr *mgr = &adev->mman.gtt_mgr; in amdgpu_gtt_mgr_mark_bo_teardown() [all …]
|
| /linux/Documentation/networking/ |
| H A D | phy-link-topology.rst | 1 .. SPDX-License-Identifier: GPL-2.0 19 +-----------------------+ +----------+ +--------------+ 21 | MAC | ------ | PHY | ---- | Port | ---... to LP 22 +-----------------------+ +----------+ +--------------+ 37 +-----+ SGMII +------------+ 38 | MAC | ------- | SFP Module | 39 +-----+ +------------+ 43 +-----+ SGMII +--------------+ 44 | MAC | -------- | PHY (on SFP) | 45 +-----+ +--------------+ [all …]
|
| /linux/drivers/net/ethernet/airoha/ |
| H A D | airoha_npu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 171 dma_addr = dma_map_single(npu->dev, p, size, DMA_BIDIRECTIONAL); in airoha_npu_send_msg() 172 ret = dma_mapping_error(npu->dev, dma_addr); in airoha_npu_send_msg() 176 spin_lock_bh(&npu->cores[core].lock); in airoha_npu_send_msg() 178 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(0) + offset, dma_addr); in airoha_npu_send_msg() 179 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(1) + offset, size); in airoha_npu_send_msg() 180 regmap_read(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, &val); in airoha_npu_send_msg() 181 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, val + 1); in airoha_npu_send_msg() 183 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(3) + offset, val); in airoha_npu_send_msg() 185 ret = regmap_read_poll_timeout_atomic(npu->regmap, in airoha_npu_send_msg() [all …]
|
| /linux/sound/soc/sof/mediatek/mt8186/ |
| H A D | mt8186.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 5 // Author: Allen-KH Cheng <allen-kh.cheng@mediatek.com> 23 #include "../../sof-of-dev.h" 25 #include "../mtk-adsp-common.h" 27 #include "mt8186-clk.h" 46 struct resource *mmio; in platform_parse_resource() 47 struct resource res; in platform_parse_resource() 48 struct device *dev = &pdev->dev; in platform_parse_resource() 58 ret = of_reserved_mem_region_to_resource(dev->of_node, 1, &res); in platform_parse_resource() 64 adsp->pa_dram = (phys_addr_t)res.start; in platform_parse_resource() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | devlink.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 3 * include/uapi/linux/devlink.h - Network physical device Netlink interface 28 DEVLINK_CMD_GET, /* can dump */ 33 DEVLINK_CMD_PORT_GET, /* can dump */ 41 DEVLINK_CMD_SB_GET, /* can dump */ 46 DEVLINK_CMD_SB_POOL_GET, /* can dump */ 51 DEVLINK_CMD_SB_PORT_POOL_GET, /* can dump */ 56 DEVLINK_CMD_SB_TC_POOL_BIND_GET, /* can dump */ 85 DEVLINK_CMD_PARAM_GET, /* can dump */ 96 DEVLINK_CMD_PORT_PARAM_GET, /* can dump */ [all …]
|
| /linux/sound/soc/sof/mediatek/mt8195/ |
| H A D | mt8195.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 23 #include "../../sof-of-dev.h" 25 #include "../mtk-adsp-common.h" 27 #include "mt8195-clk.h" 46 struct resource *mmio; in platform_parse_resource() 47 struct resource res; in platform_parse_resource() 48 struct device *dev = &pdev->dev; in platform_parse_resource() 58 ret = of_reserved_mem_region_to_resource(dev->of_node, 1, &res); in platform_parse_resource() 64 adsp->pa_dram = (phys_addr_t)res.start; in platform_parse_resource() 65 adsp->dramsize = resource_size(&res); in platform_parse_resource() [all …]
|
| /linux/net/devlink/ |
| H A D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * struct devlink_resource - devlink resource 11 * @name: name of the resource 13 * @size: size of the resource 14 * @size_new: updated size of the resource, reload is needed 15 * @size_valid: valid in case the total size of the resource is valid 17 * @parent: parent resource 40 struct devlink_resource *resource, in __devlink_resource_find() argument 45 if (resource) in __devlink_resource_find() 46 resource_list = &resource->resource_list; in __devlink_resource_find() [all …]
|
| /linux/drivers/devfreq/event/ |
| H A D | exynos-nocp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * exynos-nocp.c - Exynos NoC (Network On Chip) Probe support 11 #include <linux/devfreq-event.h> 17 #include "exynos-nocp.h" 30 * The devfreq-event ops structure for nocp probe. 38 ret = regmap_update_bits(nocp->regmap, NOCP_MAIN_CTL, in exynos_nocp_set_event() 41 dev_err(nocp->dev, "failed to disable the NoC probe device\n"); in exynos_nocp_set_event() 45 /* Set a statistics dump period to 0 */ in exynos_nocp_set_event() 46 ret = regmap_write(nocp->regmap, NOCP_STAT_PERIOD, 0x0); in exynos_nocp_set_event() 51 ret = regmap_update_bits(nocp->regmap, NOCP_COUNTERS_0_SRC, in exynos_nocp_set_event() [all …]
|
| /linux/tools/objtool/ |
| H A D | signal.c | 11 #include <sys/resource.h> 24 return fault < stack_limit && fault >= stack_limit - 4096; in is_stack_overflow() 42 if (is_stack_overflow(info->si_addr)) { in signal_handler() 54 /* Re-raise the signal to trigger the core dump */ in signal_handler() 70 return -1; in read_stack_limit() 76 return -1; in read_stack_limit() 81 if (sscanf(line, "%lx-%lx", &stack_start, &stack_end) != 2) { in read_stack_limit() 83 ret = -1; in read_stack_limit() 86 stack_limit = stack_end - rlim.rlim_cur; in read_stack_limit() 91 ret = -1; in read_stack_limit() [all …]
|