| /linux/tools/testing/selftests/drivers/net/ |
| H A D | shaper.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # pylint: disable=too-many-lines 15 def _delete_shaper(cfg, nl_shaper, handle) -> None: 16 """ Delete the shaper identified by handle, ignoring a missing-shaper error. """ 26 qcnt = len(glob.glob(f"/sys/class/net/{cfg.ifname}/queues/tx-*")) 41 def _require_caps(cfg, nl_shaper, scope, caps, msg) -> None: 53 def get_shapers(cfg, nl_shaper) -> None: 64 def get_caps(cfg, nl_shaper) -> None: 76 def set_qshapers(cfg, nl_shaper) -> None: 84 if not 'support-bw-max' in caps or not 'support-metric-bps' in caps: [all …]
|
| /linux/mm/ |
| H A D | shmem_quota.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * storage on-demand and hence quota dquot shrinker can free any dquot 11 * One information that in-memory quota format needs to keep track of is 13 * an rb tree which root is stored in mem_dqinfo->dqi_priv for each quota 47 struct rb_node node; member 48 qid_t id; member 68 struct mem_dqinfo *info = &dqopt->info[type]; in shmem_read_file_info() 70 info->dqi_priv = kzalloc_obj(struct rb_root, GFP_NOFS); in shmem_read_file_info() 71 if (!info->dqi_priv) in shmem_read_file_info() 72 return -ENOMEM; in shmem_read_file_info() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | cpumap.c | 1 // SPDX-License-Identifier: GPL-2.0 33 int id; member 37 int child_start; /* Array index of the first child node */ 38 int child_end; /* Array index of the last child node */ 39 int rover; /* Child node iterator */ 43 int start_index; /* Index of first node of a level in a cpuinfo tree */ 44 int end_index; /* Index of last node of a level in a cpuinfo tree */ 70 * Go to next NUMA node when all cores are used. 98 int id; in cpuinfo_id() local 102 id = 0; in cpuinfo_id() [all …]
|
| H A D | vio.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2003-2005 IBM Corp. 31 type = dev->type; in vio_match_device() 32 compat = dev->compat; in vio_match_device() 33 len = dev->compat_len; in vio_match_device() 35 while (matches->type[0] || matches->compat[0]) { in vio_match_device() 37 if (matches->type[0]) in vio_match_device() 38 match &= !strcmp(matches->type, type); in vio_match_device() 40 if (matches->compat[0]) { in vio_match_device() 42 of_find_in_proplist(compat, matches->compat, len); in vio_match_device() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "dwarf-regs.h" 16 #define TEMPL "/tmp/perf-test-XXXXXX" 28 return -1; in get_temp() 47 session->evlist = evlist__new_default(&target, /*sample_callchains=*/false); in session_write_header() 48 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 49 session->evlis in session_write_header() 71 struct aggr_cpu_id id; check_cpu_topology() local [all...] |
| /linux/drivers/media/platform/raspberrypi/rp1-cfe/ |
| H A D | cfe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2021-2024 Raspberry Pi Ltd. 6 * Copyright (c) 2023-2024 Ideas on Board Oy 13 #include <linux/dma-mapping.h> 29 #include <media/v4l2-async.h> 30 #include <media/v4l2-common.h> 31 #include <media/v4l2-ctrls.h> 32 #include <media/v4l2-dev.h> 33 #include <media/v4l2-device.h> 34 #include <media/v4l2-event.h> [all …]
|
| /linux/drivers/interconnect/imx/ |
| H A D | imx.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (c) 2019-2020, NXP 12 #include <linux/interconnect-provider.h> 31 static int imx_icc_get_bw(struct icc_node *node, u32 *avg, u32 *peak) in imx_icc_get_bw() argument 39 static int imx_icc_node_set(struct icc_node *node) in imx_icc_node_set() argument 41 struct device *dev = node->provider->dev; in imx_icc_node_set() 42 struct imx_icc_node *node_data = node->data; in imx_icc_node_set() 47 if (node_data->setting && node->peak_bw) { in imx_icc_node_set() 48 base = node_data->setting->reg + node_data->imx_provider->noc_base; in imx_icc_node_set() 49 if (node_data->setting->mode == IMX_NOC_MODE_FIXED) { in imx_icc_node_set() [all …]
|
| /linux/drivers/interconnect/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2017-2019, Linaro Ltd. 14 #include <linux/interconnect-provider.h> 41 seq_printf(s, "%-42s %12u %12u\n", in icc_summary_show_one() 42 n->name, n->avg_bw, n->peak_bw); in icc_summary_show_one() 49 seq_puts(s, " node tag avg peak\n"); in icc_summary_show() 50 seq_puts(s, "--------------------------------------------------------------------\n"); in icc_summary_show() 57 list_for_each_entry(n, &provider->nodes, node_list) { in icc_summary_show() 61 hlist_for_each_entry(r, &n->req_list, req_node) { in icc_summary_show() 64 if (!r->dev) in icc_summary_show() [all …]
|
| /linux/drivers/acpi/riscv/ |
| H A D | rimt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2024-2025, Ventana Micro Systems Inc 35 * rimt_set_fwnode() - Create rimt_fwnode and use it to register 38 * @rimt_node: RIMT table node associated with the IOMMU 39 * @fwnode: fwnode associated with the RIMT node 52 return -ENOMEM; in rimt_set_fwnode() 54 INIT_LIST_HEAD(&np->list); in rimt_set_fwnode() 55 np->rimt_node = rimt_node; in rimt_set_fwnode() 56 np->fwnode = fwnode; in rimt_set_fwnode() 59 list_add_tail(&np->list, &rimt_fwnode_list); in rimt_set_fwnode() [all …]
|
| /linux/fs/nfs/ |
| H A D | pnfs_dev.c | 42 * Device ID RCU cache. A device ID is unique per server and layout type. 46 #define NFS4_DEVICE_ID_HASH_MASK (NFS4_DEVICE_ID_HASH_SIZE - 1) 54 nfs4_print_deviceid(const struct nfs4_deviceid *id) in nfs4_print_deviceid() argument 56 u32 *p = (u32 *)id; in nfs4_print_deviceid() 58 dprintk("%s: device id= [%x%x%x%x]\n", __func__, in nfs4_print_deviceid() 65 nfs4_deviceid_hash(const struct nfs4_deviceid *id) in nfs4_deviceid_hash() argument 67 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() 71 while (nbytes--) { in nfs4_deviceid_hash() 80 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument 85 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid() [all …]
|
| /linux/drivers/of/ |
| H A D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 68 node_name = kbasename(np->full_name); in of_node_name_eq() 69 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 80 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 108 for (; np; np = np->parent) { in of_bus_n_addr_cells() 109 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells() 112 * Default root value and walking parent nodes for "#address-cells" in of_bus_n_addr_cells() 117 "Missing '#address-cells' in %pOF\n", np); in of_bus_n_addr_cells() 124 if (np->parent) in of_n_addr_cells() [all …]
|
| /linux/Documentation/netlink/specs/ |
| H A D | net_shaper.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: net-shaper 14 comprising both a @scope and an @id. 17 HW objects (queues, devices) or, for @node scope, represent a 24 group. Only the @group operation can create @node scope shapers. 33 @cap-get operation. 36 - 38 name: max-handle-id 41 - [all …]
|
| /linux/include/linux/ |
| H A D | interconnect-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 * struct icc_node_data - icc node data 20 * @node: icc node 24 struct icc_node *node; member 29 * struct icc_onecell_data - driver data for onecell interconnect providers 43 * struct icc_provider - interconnect provider (controller) entity that might 53 * @xlate: provider-specific callback for mapping nodes from phandle arguments 54 * @xlate_extended: vendor-specific callback for mapping node data from phandle arguments 57 * @inter_set: whether inter-provider pairs will be configured with @set 64 int (*aggregate)(struct icc_node *node, u32 tag, u32 avg_bw, [all …]
|
| H A D | rio.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 #include <linux/device-id/rio.h> 24 #define RIO_NO_HOPCOUNT -1 39 exists for the device ID) */ 57 * 1-15 RapidIO memory regions 74 * identifying switches (which do not have device ID register), it also is used 89 * struct rio_switch - RIO switch info 90 * @node: Node in global list of switches 92 * @port_ok: Status of each port (one bit per port) - OK=1 or UNINIT=0 93 * @ops: pointer to switch-specific operations [all …]
|
| /linux/kernel/ |
| H A D | nstree.c | 1 // SPDX-License-Identifier: GPL-2.0-only 68 * ns_tree_node_init - Initialize a namespace tree node 69 * @node: The node to initialize 71 * Initializes both the rbtree node and list entry. 73 void ns_tree_node_init(struct ns_tree_node *node) in ns_tree_node_init() argument 75 RB_CLEAR_NODE(&node->ns_node); in ns_tree_node_init() 76 INIT_LIST_HEAD(&node->ns_list_entry); in ns_tree_node_init() 80 * ns_tree_root_init - Initialize a namespace tree root 87 root->ns_rb = RB_ROOT; in ns_tree_root_init() 88 INIT_LIST_HEAD(&root->ns_list_head); in ns_tree_root_init() [all …]
|
| /linux/drivers/mfd/ |
| H A D | twl4030-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <linux/mfd/twl4030-audio.h> 44 static int twl4030_audio_set_resource(enum twl4030_audio_res id, int enable) in twl4030_audio_set_resource() argument 50 audio->resource[id].reg); in twl4030_audio_set_resource() 53 val |= audio->resource[id].mask; in twl4030_audio_set_resource() 55 val &= ~audio->resource[id].mask; in twl4030_audio_set_resource() 58 val, audio->resource[id].reg); in twl4030_audio_set_resource() 63 static inline int twl4030_audio_get_resource(enum twl4030_audio_res id) in twl4030_audio_get_resource() argument 69 audio->resource[id].reg); in twl4030_audio_get_resource() 78 int twl4030_audio_enable_resource(enum twl4030_audio_res id) in twl4030_audio_enable_resource() argument [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hnae3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 21 list_for_each_entry(ae_dev, &hnae3_ae_dev_list, node) { in hnae3_unregister_ae_algo_prepare() 22 if (!hnae3_get_bit(ae_dev->flag, HNAE3_DEV_INITED_B)) in hnae3_unregister_ae_algo_prepare() 25 pci_id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo_prepare() 29 device_lock(&ae_dev->pdev->dev); in hnae3_unregister_ae_algo_prepare() 30 pci_disable_sriov(ae_dev->pdev); in hnae3_unregister_ae_algo_prepare() 31 device_unlock(&ae_dev->pdev->dev); in hnae3_unregister_ae_algo_prepare() 38 * list. This is a non-critical code so other updations, if happen 74 switch (client->type) { in hnae3_set_client_init_flag() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_sched.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * ice_sched_add_root_node - Insert the Tx scheduler root node in SW DB 12 * This function inserts the root node of the scheduling tree topology 23 return -EINVAL; in ice_sched_add_root_node() 25 hw = pi->hw; in ice_sched_add_root_node() 29 return -ENOMEM; in ice_sched_add_root_node() 31 root->children = devm_kcalloc(ice_hw_to_dev(hw), hw->max_children[0], in ice_sched_add_root_node() 32 sizeof(*root->children), GFP_KERNEL); in ice_sched_add_root_node() 33 if (!root->children) { in ice_sched_add_root_node() 35 return -ENOMEM; in ice_sched_add_root_node() [all …]
|
| /linux/include/uapi/scsi/fc/ |
| H A D | fc_ns.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Maintained at www.Open-FCoE.org 14 * Fibre Channel Services - Name Service (dNS) 15 * From T11.org FC-GS-2 Rev 5.3 November 1998. 19 * Common-transport sub-type for Name Server. 29 FC_NS_GI_A = 0x0101, /* get identifiers - scope */ 30 FC_NS_GPN_ID = 0x0112, /* get port name by ID */ 31 FC_NS_GNN_ID = 0x0113, /* get node name by ID */ 33 FC_NS_GID_PN = 0x0121, /* get ID for port name */ 34 FC_NS_GID_NN = 0x0131, /* get IDs for node name */ [all …]
|
| /linux/drivers/clk/ti/ |
| H A D | clk-dra7-atl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 25 #define DRA7_ATL_PPMR_REG(id) (0x200 + (id * 0x80)) argument 26 #define DRA7_ATL_BBSR_REG(id) (0x204 + (id * 0x80)) argument 27 #define DRA7_ATL_ATLCR_REG(id) (0x208 + (id * 0x80)) argument 28 #define DRA7_ATL_SWEN_REG(id) (0x210 + (id * 0x80)) argument 29 #define DRA7_ATL_BWSMUX_REG(id) (0x214 + (id * 0x80)) argument 30 #define DRA7_ATL_AWSMUX_REG(id) (0x218 + (id * 0x80)) argument 31 #define DRA7_ATL_PCLKMUX_REG(id) (0x21c + (id * 0x80)) argument 42 int id; member [all …]
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | cm.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 45 struct rb_node node; member 87 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 90 msg->request_id = cpu_to_be32(cm_id); in set_local_comm_id() 91 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id() 96 msg->local_comm_id = cpu_to_be32(cm_id); in set_local_comm_id() 102 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 105 return be32_to_cpu(msg->request_id); in get_local_comm_id() 106 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id() [all …]
|
| /linux/net/shaper/ |
| H A D | shaper.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #define NET_SHAPER_ID_MASK GENMASK(NET_SHAPER_SCOPE_SHIFT - 1, 0) 38 return &((struct net_shaper_nl_ctx *)ctx)->binding; in net_shaper_binding_from_ctx() 45 if (binding->type == NET_SHAPER_BINDING_TYPE_NETDEV) in net_shaper_hierarchy() 46 return READ_ONCE(binding->netdev->net_shaper_hierarch in net_shaper_hierarchy() 474 u32 id = 0; net_shaper_parse_handle() local 661 net_shaper_parse_leaf(struct net_shaper_binding * binding,const struct nlattr * attr,const struct genl_info * info,const struct net_shaper * node,struct net_shaper * shaper) net_shaper_parse_leaf() argument 979 net_shaper_parse_leaves(struct net_shaper_binding * binding,struct genl_info * info,const struct net_shaper * node,struct net_shaper * leaves,int leaves_count) net_shaper_parse_leaves() argument 1019 net_shaper_parent_from_leaves(int leaves_count,const struct net_shaper * leaves,struct net_shaper * node,struct netlink_ext_ack * extack) net_shaper_parent_from_leaves() argument 1039 __net_shaper_group(struct net_shaper_binding * binding,bool update_node,int leaves_count,struct net_shaper * leaves,struct net_shaper * node,struct netlink_ext_ack * extack) __net_shaper_group() argument 1154 struct net_shaper *cur, *leaves, node = {}; net_shaper_pre_del_node() local 1270 struct net_shaper **old_nodes, *leaves, node = {}; net_shaper_nl_group_doit() local [all...] |
| /linux/include/drm/ |
| H A D | drm_ras.h | 1 /* SPDX-License-Identifier: MIT */ 14 * struct drm_ras_node - A DRM RAS Node 17 /** @id: Unique identifier for the node. Dynamically assigned. */ 18 u32 id; member 20 * @device_name: Human-readable name of the device. Given by the driver. 23 /** @node_name: Human-readable name of the node. Given by the driver. */ 25 /** @type: Type of the node (enum drm_ras_node_type). */ 28 /* Error-Counter Related Callback and Variables */ 30 /** @error_counter_range: Range of valid Error IDs for this node. */ 32 /** @first: First valid Error ID. */ [all …]
|
| /linux/drivers/net/ethernet/intel/ice/devlink/ |
| H A D | devlink.c | 1 // SPDX-License-Identifier: GPL-2.0 39 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 41 snprintf(ctx->buf, sizeof(ctx->buf), "%8phD", dsn); in ice_info_get_dsn() 46 struct ice_hw *hw = &pf->hw; in ice_info_pba() 49 status = ice_read_pba_string(hw, (u8 *)ctx->buf, sizeof(ctx->buf)); in ice_info_pba() 58 struct ice_hw *hw = &pf->hw; in ice_info_fw_mgmt() 60 snprintf(ctx->buf, sizeof(ctx->buf), "%u.%u.%u", in ice_info_fw_mgmt() 61 hw->fw_maj_ver, hw->fw_min_ver, hw->fw_patch); in ice_info_fw_mgmt() 66 struct ice_hw *hw = &pf->hw; in ice_info_fw_api() 68 snprintf(ctx->buf, sizeof(ctx->buf), "%u.%u.%u", hw->api_maj_ver, in ice_info_fw_api() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | ppc-memtrace | 4 Contact: linuxppc-dev@lists.ozlabs.org 12 Contact: linuxppc-dev@lists.ozlabs.org 14 you want removed from each NUMA node to this file - it must be 16 from each NUMA node in the kernel mappings and the following 18 removed from each node, the following files are created. To 19 re-add memory to the kernel, echo 0 into this file (it will be 22 What: /sys/kernel/debug/powerpc/memtrace/<node-id> 25 Contact: linuxppc-dev@lists.ozlabs.org 27 from the specific NUMA node. 29 What: /sys/kernel/debug/powerpc/memtrace/<node-id>/size [all …]
|