| /linux/tools/testing/selftests/kvm/s390/ |
| H A D | cpumodel_subfuncs_test.c | 10 * query data reported via the CPU Model, allowing us to directly compare it with the data 24 /* Query available CPU subfunctions */ 55 static void test_plo_asm_block(u8 (*query)[32]) in test_plo_asm_block() 59 (*query)[i >> 3] |= 0x80 >> (i & 7); in test_plo_asm_block() 64 static void test_kmac_asm_block(u8 (*query)[16]) in test_kmac_asm_block() 66 asm volatile(" la %%r1,%[query]\n" in test_kmac_asm_block() 69 : [query] "=R" (*query) in test_kmac_asm_block() 75 static void test_kmc_asm_block(u8 (*query)[16]) in test_kmc_asm_block() 77 asm volatile(" la %%r1,%[query]\n" in test_kmc_asm_block() 80 : [query] "=R" (*query) in test_kmc_asm_block() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | tp_attach_query.c | 10 struct perf_event_query_bpf *query; in serial_test_tp_attach_query() local 41 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); in serial_test_tp_attach_query() 72 /* check NULL prog array query */ in serial_test_tp_attach_query() 73 query->ids_len = num_progs; in serial_test_tp_attach_query() 74 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query() 75 if (CHECK(err || query->prog_cnt != 0, in serial_test_tp_attach_query() 77 "err %d errno %d query->prog_cnt %u\n", in serial_test_tp_attach_query() 78 err, errno, query->prog_cnt)) in serial_test_tp_attach_query() 89 query->ids_len = 0; in serial_test_tp_attach_query() 90 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query() [all …]
|
| H A D | tc_opts.c | 2463 const size_t attr_size = offsetofend(union bpf_attr, query); in test_tc_opts_query_target() 2529 /* Test 1: Double query via libbpf API */ in test_tc_opts_query_target() 2555 /* Test 2: Double query via bpf_attr & bpf(2) directly */ in test_tc_opts_query_target() 2557 attr.query.target_ifindex = loopback; in test_tc_opts_query_target() 2558 attr.query.attach_type = target; in test_tc_opts_query_target() 2564 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target() 2565 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target() 2566 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target() 2567 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target() 2568 ASSERT_EQ(attr.query in test_tc_opts_query_target() [all...] |
| /linux/tools/perf/scripts/python/ |
| H A D | export-to-postgresql.py | 144 # Note that some of the examples are not the most optimal SQL query. 204 # query = QSqlQuery(db) 207 # ret = query.exec_('SELECT * FROM call_paths_view WHERE id = ' + str(call_path_i… 209 # raise Exception("Query failed: " + query.lastError().text()) 210 # if not query.next(): 211 # raise Exception("Query failed") 212 … {3:<30} {4:>6} {5:<30}".format(query.value(0), query.value(1), query.value(2), query.value(3), … 213 # call_path_id = query.value(6) 318 raise Exception("Query failed: " + q.lastError().text()) 323 query = QSqlQuery(db) variable [all …]
|
| H A D | export-to-sqlite.py | 136 raise Exception("Query failed: " + q.lastError().text()) 141 raise Exception("Query failed: " + q.lastError().text()) 160 query = QSqlQuery(db) variable 162 do_query(query, 'PRAGMA journal_mode = OFF') 163 do_query(query, 'BEGIN TRANSACTION') 165 do_query(query, 'CREATE TABLE selected_events (' 168 do_query(query, 'CREATE TABLE machines (' 172 do_query(query, 'CREATE TABLE threads (' 178 do_query(query, 'CREATE TABLE comms (' 184 do_query(query, 'CREATE TABLE comm_threads (' [all …]
|
| H A D | exported-sql-viewer.py | 183 def QueryExec(query, stmt): argument 184 ret = query.exec_(stmt) 186 raise Exception("Query failed: " + query.lastError().text()) 540 query = QSqlQuery(self.glb.db) 545 …QueryExec(query, "SELECT call_path_id, name, short_name, COUNT(calls.id), SUM(return_time - call_t… 555 while query.next(): 557 insn_cnt = int(query.value(5)) 558 cyc_cnt = int(query.value(6)) 559 branch_count = int(query.value(7)) 563 branch_count = int(query.value(5)) [all …]
|
| /linux/lib/ |
| H A D | dynamic_debug.c | 131 static void vpr_info_dq(const struct ddebug_query *query, const char *msg) in vpr_info_dq() argument 136 if (query->format) { in vpr_info_dq() 137 fmtlen = strlen(query->format); in vpr_info_dq() 138 while (fmtlen && query->format[fmtlen - 1] == '\n') in vpr_info_dq() 144 query->function ?: "", in vpr_info_dq() 145 query->filename ?: "", in vpr_info_dq() 146 query->module ?: "", in vpr_info_dq() 147 fmtlen, query->format ?: "", in vpr_info_dq() 148 query->first_lineno, query->last_lineno, query->class_string); in vpr_info_dq() 170 * Search the tables for _ddebug's which match the given `query' and [all …]
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_f11.c | 36 * The properties for a given sensor are described by its query registers. The 37 * number of query registers and the layout of their contents are described by 38 * the F11 device queries as well as the sensor query information. 42 * by parsing that sensors query registers. 46 * sensors data registers must be determined by parsing its query registers. 48 * The short story is that we need to read and parse a lot of query 77 /** Defs for Query 1 */ 86 /** Defs for Query 2, 3, and 4. */ 89 /** Defs for Query 5 */ 99 /** Defs for Query 7 */ [all …]
|
| H A D | rmi_f34.h | 120 u8 bl_minor_revision; /* query 1 */ 122 __le32 bl_fw_id; /* query 2 */ 123 u8 minimum_write_size; /* query 3 */ 126 __le16 adjustable_partition_area_size; /* query 4 */ 127 __le16 flash_config_length; /* query 5 */ 128 __le16 payload_length; /* query 6 */ 129 u8 partition_support[4]; /* query 7 */
|
| /linux/include/uapi/drm/ |
| H A D | amdgpu_drm.h | 1088 * Query h/w info: Flag that this is integrated (a.h.a. fusion) GPU 1098 * Query h/w info: Flag identifying VF/PF/PT mode 1111 /* query hw IP info */ 1113 /* query hw IP instance count for the specified type */ 1117 /* Query the firmware version */ 1119 /* Subquery id: Query VCE firmware version */ 1121 /* Subquery id: Query UVD firmware version */ 1123 /* Subquery id: Query GMC firmware version */ 1125 /* Subquery id: Query GFX ME firmware version */ 1127 /* Subquery id: Query GFX PFP firmware version */ [all …]
|
| H A D | xe_drm.h | 21 * 3. IOCTL's Query structs in the order of the Query's entries. 268 * If a query is made with a struct @drm_xe_device_query where .query 374 * If a query is made with a struct drm_xe_device_query where .query 390 * If a query is made with a struct drm_xe_device_query where .query 493 * If a query is made with a struct drm_xe_device_query where .query 512 * If a query is made with a struct drm_xe_device_query where .query 517 * - %DRM_XE_TOPO_DSS_GEOMETRY - To query the mask of Dual Sub Slices 518 * (DSS) available for geometry operations. For example a query response 522 * - %DRM_XE_TOPO_DSS_COMPUTE - To query the mask of Dual Sub Slices 523 * (DSS) available for compute operations. For example a query response [all …]
|
| /linux/lib/crypto/s390/ |
| H A D | sha3.h | 132 #define QUERY(opcode, func) \ in sha3_mod_init_arch() macro 134 QUERY(CPACF_KIMD, CPACF_KIMD_SHA3_224); in sha3_mod_init_arch() 135 QUERY(CPACF_KIMD, CPACF_KIMD_SHA3_256); in sha3_mod_init_arch() 136 QUERY(CPACF_KIMD, CPACF_KIMD_SHA3_384); in sha3_mod_init_arch() 137 QUERY(CPACF_KIMD, CPACF_KIMD_SHA3_512); in sha3_mod_init_arch() 138 QUERY(CPACF_KLMD, CPACF_KLMD_SHA3_224); in sha3_mod_init_arch() 139 QUERY(CPACF_KLMD, CPACF_KLMD_SHA3_256); in sha3_mod_init_arch() 140 QUERY(CPACF_KLMD, CPACF_KLMD_SHA3_384); in sha3_mod_init_arch() 141 QUERY(CPACF_KLMD, CPACF_KLMD_SHA3_512); in sha3_mod_init_arch() 142 #undef QUERY in sha3_mod_init_arch()
|
| /linux/Documentation/input/devices/ |
| H A D | iforce-protocol.rst | 218 Query command. Length varies according to the query type. 220 ff 01 QUERY [INDEX] CHECKSUM 222 FF LEN QUERY VALUE_QUERIED CHECKSUM2 225 Query ram size 230 QUERY = 42 ('B'uffer size) 236 Query number of effects 241 QUERY = 4e ('N'umber of effects) 252 QUERY = 4d ('M'anufacturer) 254 Query the vendors'id (2 bytes) 261 QUERY = 50 ('P'roduct) [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | wacom_w8001.c | 71 /* touch query reply packet */ 188 static void parse_touchquery(u8 *data, struct w8001_touch_query *query) in parse_touchquery() argument 190 memset(query, 0, sizeof(*query)); in parse_touchquery() 192 query->panel_res = data[1]; in parse_touchquery() 193 query->sensor_id = data[2] & 0x7; in parse_touchquery() 194 query->capacity_res = data[7]; in parse_touchquery() 196 query->x = data[3] << 9; in parse_touchquery() 197 query->x |= data[4] << 2; in parse_touchquery() 198 query->x |= (data[2] >> 5) & 0x3; in parse_touchquery() 200 query->y = data[5] << 9; in parse_touchquery() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | merge.c | 161 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F() 162 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size); in TEST_F() 211 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F() 212 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size); in TEST_F() 262 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F() 263 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size); in TEST_F() 321 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F() 322 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size); in TEST_F() 380 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F() 381 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size); in TEST_F() [all …]
|
| /linux/drivers/platform/x86/hp/hp-bioscfg/ |
| H A D | biosattr-interface.c | 101 * @query: The commandtype (enum hp_wmi_commandtype) 108 * an HP WMI query specific error code (which is positive) 109 * -EINVAL if the query was not successful at all 113 * size. E.g. Battery info query is defined to have 1 byte input 119 int hp_wmi_perform_query(int query, enum hp_wmi_command command, void *buffer, in hp_wmi_perform_query() argument 144 args->commandtype = query; in hp_wmi_perform_query() 160 pr_warn("query 0x%x returned wrong type or too small buffer\n", query); in hp_wmi_perform_query() 169 pr_warn("query 0x%x returned error 0x%x\n", query, ret); in hp_wmi_perform_query()
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_common.h | 16 * The routines marked "@pts: Entry to query" operate on the entire contiguous 103 * @pts: Entry to query 113 * @common: Page table to query 119 * @pts: Entry to query 128 * @pts: Entry to query 142 * @pts: Entry to query 154 * @pts: Entry to query 168 * @common: Page table to query 178 * @common: Page table to query 225 * @pts: Item to query [all …]
|
| /linux/drivers/pinctrl/aspeed/ |
| H A D | pinmux-aspeed.c | 24 * aspeed_sig_desc_eval() - Query the enabled or disabled state of a signal 28 * @enabled: True to query the enabled state, false to query disabled state 62 * aspeed_sig_expr_eval - Query the enabled or disabled state for a 67 * @enabled: True to query the enabled state, false to query disabled state
|
| /linux/include/net/ |
| H A D | if_inet6.h | 176 unsigned char mc_qrv; /* Query Robustness Variable */ 182 unsigned long mc_qi; /* Query Interval */ 183 unsigned long mc_qri; /* Query Response Interval */ 186 struct delayed_work mc_gq_work; /* general query work */ 189 struct delayed_work mc_query_work; /* mld query work */ 192 struct sk_buff_head mc_query_queue; /* mld query queue */ 195 spinlock_t mc_query_lock; /* mld query queue lock */ 196 spinlock_t mc_report_lock; /* mld query report lock */
|
| /linux/net/dns_resolver/ |
| H A D | dns_query.c | 12 * The upcall wrapper used to make an arbitrary DNS query. 20 * For example to use this module to query AFSDB RR: 51 * dns_query - Query the DNS 53 * @type: Query type (or NULL for straight host->IP lookup) 65 * the options need to be appropriate for the query type requested. If no 66 * query_type is given, then the query is a straight hostname to IP address 91 /* construct the query key description as "[<type>:]<name>" */ in dns_query()
|
| /linux/Documentation/admin-guide/ |
| H A D | dynamic-debug-howto.rst | 19 * a Simple query/command language to alter *prdbgs* by selecting on 55 query/commands to the control file. Example:: 71 dyndbg: query parse failed 95 :#> cat query-batch-file > /proc/dynamic_debug/control 97 You can also use wildcards in each query term. The match rule supports 240 ``dyndbg="QUERY"`` or ``module.dyndbg="QUERY"``. QUERY follows 289 In the ``foo.dyndbg="QUERY"`` form, the query must exclude ``module foo``. 290 ``foo`` is extracted from the param-name, and applied to each query in 291 ``QUERY``, and only 1 match-spec of each type is allowed.
|
| /linux/fs/xfs/ |
| H A D | xfs_fsmap.c | 159 /* getfsmap query state */ 173 * Low rmap key for the query. If low.rm_blockcount is nonzero, this 176 * by the rmapbt query to filter out any records that start before 384 * For an info->last query, we're looking for a gap between the last in xfs_getfsmap_group_helper() 386 * user's query spans less than 1 fsblock, then info->high and in xfs_getfsmap_group_helper() 390 * Note that if the btree query found a mapping, there won't be a gap. in xfs_getfsmap_group_helper() 465 /* Execute a getfsmap query against the regular data device. */ 606 /* Actually query the rmap btree. */ 625 /* Execute a getfsmap query against the regular data device rmapbt. */ 637 /* Actually query the bno btree. */ [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_counters.c | 41 /* Max number of counters to query in bulk read is 32K */ 102 * - query mlx5_fc_query(), mlx5_fc_query_cached{,_raw}() (user context) 105 * - bulk query (single thread workqueue context) 106 * - create: query relies on 'lastuse' to avoid updating counters added 109 * destroyed during a bulk query command. 128 /* Start new bulk query. */ in mlx5_fc_stats_query_all_counters() 129 /* First id must be aligned to 4 when using bulk query. */ in mlx5_fc_stats_query_all_counters() 139 mlx5_core_err(dev, "Error doing bulk query: %d\n", err); in mlx5_fc_stats_query_all_counters() 145 /* Do not update counters added after bulk query was started. */ in mlx5_fc_stats_query_all_counters() 183 "Can't increase flow counters bulk query buffer size, alloc failed, bulk_query_len(%d)\n", in mlx5_fc_stats_bulk_query_buf_realloc() [all …]
|
| /linux/kernel/bpf/ |
| H A D | mprog.c | 408 if (attr->query.query_flags || attr->query.attach_flags) in bpf_mprog_query() 414 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in bpf_mprog_query() 416 if (copy_to_user(&uattr->query.revision, &revision, sizeof(revision))) in bpf_mprog_query() 418 if (copy_to_user(&uattr->query.count, &count, sizeof(count))) in bpf_mprog_query() 420 uprog_id = u64_to_user_ptr(attr->query.prog_ids); in bpf_mprog_query() 421 uprog_flags = u64_to_user_ptr(attr->query.prog_attach_flags); in bpf_mprog_query() 422 ulink_id = u64_to_user_ptr(attr->query.link_ids); in bpf_mprog_query() 423 ulink_flags = u64_to_user_ptr(attr->query.link_attach_flags); in bpf_mprog_query() 424 if (attr->query.count == 0 || !uprog_id || !count) in bpf_mprog_query() 426 if (attr->query.count < count) { in bpf_mprog_query() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | cxl_mem.h | 15 * userspace at all times. Userspace can check the result of the QUERY command 102 * struct cxl_command_info - Command information returned from a query. 122 * hardware. This is returned as part of an array from the query ioctl. The 146 * struct cxl_mem_query_commands - Query supported commands. 154 * Allow userspace to query the available commands supported by both the driver, 156 * hardware are not returned in the query. 184 * commands returned by the query command.
|