Searched refs:query (Results 1 - 25 of 121) sorted by relevance

12345

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtp_attach_query.c10 struct perf_event_query_bpf *query; local
41 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs);
72 /* check NULL prog array query */
73 query->ids_len = num_progs;
74 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query);
75 if (CHECK(err || query->prog_cnt != 0,
77 "err %d errno %d query->prog_cnt %u\n",
78 err, errno, query->prog_cnt))
89 query
[all...]
H A Dtc_opts.c2463 const size_t attr_size = offsetofend(union bpf_attr, query);
2529 /* Test 1: Double query via libbpf API */
2555 /* Test 2: Double query via bpf_attr & bpf(2) directly */
2557 attr.query.target_ifindex = loopback;
2558 attr.query.attach_type = target;
2564 ASSERT_EQ(attr.query.count, 4, "count");
2565 ASSERT_EQ(attr.query.revision, 5, "revision");
2566 ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
2567 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
2568 ASSERT_EQ(attr.query
[all...]
/linux-master/tools/perf/scripts/python/
H A Dexport-to-postgresql.py144 # 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_id))
209 # raise Exception("Query failed: " + query.lastError().text())
210 # if not query.next():
212 # print "{0:>6} {1:>10} {2:>9} {3:<30} {4:>6} {5:<30}".format(query.value(0), query.value(1), query.value(2), query.value(3), query
323 query = QSqlQuery(db) variable
338 query = QSqlQuery(db) variable
[all...]
H A Dexport-to-sqlite.py160 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 ('
188 do_query(query, 'CREATE TABLE dsos ('
194 do_query(query, 'CREAT
[all...]
H A Dexported-sql-viewer.py183 def QueryExec(query, stmt):
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_time)" + ipc_str + ", SUM(branch_count)"
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
[all...]
/linux-master/drivers/infiniband/core/
H A Dsa_query.c689 static inline void ib_sa_disable_local_svc(struct ib_sa_query *query) argument
691 query->flags &= ~IB_SA_ENABLE_LOCAL_SERVICE;
694 static inline int ib_sa_query_cancelled(struct ib_sa_query *query) argument
696 return (query->flags & IB_SA_CANCEL);
700 struct ib_sa_query *query)
702 struct sa_path_rec *sa_rec = query->mad_buf->context[1];
703 struct ib_sa_mad *mad = query->mad_buf->mad;
709 query->mad_buf->context[1] = NULL;
714 dev_name(&query->port->agent->device->dev),
716 header->port_num = query
699 ib_nl_set_path_rec_attrs(struct sk_buff *skb, struct ib_sa_query *query) argument
783 ib_nl_make_request(struct ib_sa_query *query, gfp_t gfp_mask) argument
844 ib_nl_cancel_request(struct ib_sa_query *query) argument
870 ib_nl_process_good_resolve_rsp(struct ib_sa_query *query, const struct nlmsghdr *nlh) argument
952 struct ib_sa_query *query; local
995 struct ib_sa_query *query; local
1069 struct ib_sa_query *query = NULL, *iter; local
1150 ib_sa_cancel_query(int id, struct ib_sa_query *query) argument
1267 alloc_mad(struct ib_sa_query *query, gfp_t gfp_mask) argument
1307 free_mad(struct ib_sa_query *query) argument
1313 init_mad(struct ib_sa_query *query, struct ib_mad_agent *agent) argument
1334 send_mad(struct ib_sa_query *query, unsigned long timeout_ms, gfp_t gfp_mask) argument
1449 struct ib_sa_path_query *query = local
1484 struct ib_sa_path_query *query = local
1527 struct ib_sa_path_query *query; local
1624 struct ib_sa_mcmember_query *query = local
1654 struct ib_sa_mcmember_query *query; local
1715 struct ib_sa_guidinfo_query *query = local
1744 struct ib_sa_guidinfo_query *query; local
1825 struct ib_sa_classport_info_query *query = local
1885 struct ib_sa_classport_info_query *query; local
1988 struct ib_sa_query *query = mad_send_wc->send_buf->context[0]; local
2021 struct ib_sa_query *query; local
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_query.c109 struct drm_xe_device_query *query)
119 if (query->size == 0) {
120 query->size = size;
122 } else if (XE_IOCTL_DBG(xe, query->size != size)) {
126 query_ptr = u64_to_user_ptr(query->data);
165 /* Only write to the output fields of user query */
182 struct drm_xe_device_query *query)
186 u64_to_user_ptr(query->data);
194 if (query->size == 0) {
195 query
108 query_engine_cycles(struct xe_device *xe, struct drm_xe_device_query *query) argument
181 query_engines(struct xe_device *xe, struct drm_xe_device_query *query) argument
242 query_mem_regions(struct xe_device *xe, struct drm_xe_device_query *query) argument
313 query_config(struct xe_device *xe, struct drm_xe_device_query *query) argument
354 query_gt_list(struct xe_device *xe, struct drm_xe_device_query *query) argument
417 query_hwconfig(struct xe_device *xe, struct drm_xe_device_query *query) argument
475 query_gt_topology(struct xe_device *xe, struct drm_xe_device_query *query) argument
520 query_uc_fw_version(struct xe_device *xe, struct drm_xe_device_query *query) argument
577 struct drm_xe_device_query *query = data; local
[all...]
/linux-master/lib/
H A Ddynamic_debug.c130 static void vpr_info_dq(const struct ddebug_query *query, const char *msg) argument
135 if (query->format) {
136 fmtlen = strlen(query->format);
137 while (fmtlen && query->format[fmtlen - 1] == '\n')
143 query->function ?: "",
144 query->filename ?: "",
145 query->module ?: "",
146 fmtlen, query->format ?: "",
147 query->first_lineno, query
174 ddebug_change(const struct ddebug_query *query, struct flag_settings *modifiers) argument
349 parse_linerange(struct ddebug_query *query, const char *first) argument
412 ddebug_parse_query(char *words[], int nwords, struct ddebug_query *query, const char *modname) argument
536 struct ddebug_query query = {}; local
566 ddebug_exec_queries(char *query, const char *modname) argument
605 char query[QUERY_SIZE]; local
[all...]
/linux-master/arch/s390/hypfs/
H A Dhypfs_vm.c27 static int diag2fc(int size, char* query, void *addr) argument
33 memcpy(parm_list.userid, query, DIAG2FC_NAME_LEN);
56 * Allocate buffer for "query" and store diag 2fc at "offset"
58 void *diag2fc_store(char *query, unsigned int *count, int offset) argument
64 size = diag2fc(0, query, NULL);
70 if (diag2fc(size, query, data + offset) == 0)
H A Dhypfs_vm.h46 void *diag2fc_store(char *query, unsigned int *count, int offset);
/linux-master/include/keys/
H A Dasymmetric-subtype.h35 int (*query)(const struct kernel_pkey_params *params, member in struct:asymmetric_key_subtype
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dcore.c109 struct mlx5_fpga_query query; local
112 err = mlx5_fpga_query(fdev->mdev, &query);
114 mlx5_fpga_err(fdev, "Failed to query status: %d\n", err);
118 fdev->last_admin_image = query.admin_image;
119 fdev->last_oper_image = query.oper_image;
122 query.status, query.admin_image, query.oper_image);
128 if (query.status != MLX5_FPGA_STATUS_SUCCESS) {
131 query
[all...]
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_vm.c888 struct drm_pvr_dev_query_static_data_areas query = {0}; local
896 err = PVR_UOBJ_GET(query, args->size, args->pointer);
900 if (!query.static_data_areas.array) {
901 query.static_data_areas.count = ARRAY_SIZE(static_data_areas);
902 query.static_data_areas.stride = sizeof(struct drm_pvr_static_data_area);
906 if (query.static_data_areas.count > ARRAY_SIZE(static_data_areas))
907 query.static_data_areas.count = ARRAY_SIZE(static_data_areas);
909 err = PVR_UOBJ_SET_ARRAY(&query.static_data_areas, static_data_areas);
914 err = PVR_UOBJ_SET(args->pointer, args->size, query);
918 args->size = sizeof(query);
926 struct drm_pvr_dev_query_heap_info query = {0}; local
[all...]
H A Dpvr_drv.c340 * @args: [IN] Device query arguments containing a pointer to a userspace
343 * If the query object pointer is NULL, the size field is updated with the
344 * expected size of the query object.
380 * @args: [IN] Device query arguments containing a pointer to a userspace
383 * If the query object pointer is NULL, the size field is updated with the
384 * expected size of the query object.
430 * @args: [IN] Device query arguments containing a pointer to a userspace
433 * If the query object pointer is NULL, the size field is updated with the
434 * expected size of the query object.
435 * If the userspace pointer in the query objec
467 struct drm_pvr_dev_query_quirks query; local
556 struct drm_pvr_dev_query_enhancements query; local
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_query.c134 struct drm_i915_query_engine_info query; local
148 ret = copy_query_item(&query, sizeof(query), len, query_item);
152 if (query.num_engines || query.rsvd[0] || query.rsvd[1] ||
153 query.rsvd[2])
168 query.num_engines++;
172 if (copy_to_user(query_ptr, &query, sizeof(query)))
468 struct drm_i915_query_memory_regions query; local
555 query_guc_submission_version(struct drm_i915_private *i915, struct drm_i915_query_item *query) argument
[all...]
/linux-master/drivers/input/touchscreen/
H A Dwacom_w8001.c71 /* touch query reply packet */
188 static void parse_touchquery(u8 *data, struct w8001_touch_query *query) argument
190 memset(query, 0, sizeof(*query));
192 query->panel_res = data[1];
193 query->sensor_id = data[2] & 0x7;
194 query->capacity_res = data[7];
196 query->x = data[3] << 9;
197 query->x |= data[4] << 2;
198 query
[all...]
/linux-master/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-coalesce.sh7 local query="${SETTINGS_MAP[$1]}"
10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
H A Dethtool-ring.sh7 local query="${SETTINGS_MAP[$1]}"
11 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[\t ]/, "", $2); print $2}')
/linux-master/sound/virtio/
H A Dvirtio_ctl_msg.c254 * @count: Item count to query.
265 struct virtio_snd_query_info *query; local
268 msg = virtsnd_ctl_msg_alloc(sizeof(*query),
273 query = virtsnd_ctl_msg_request(msg);
274 query->hdr.code = cpu_to_le32(command);
275 query->start_id = cpu_to_le32(start_id);
276 query->count = cpu_to_le32(count);
277 query->size = cpu_to_le32(size);
/linux-master/drivers/media/rc/
H A Dbpf-lirc.c297 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids);
303 if (attr->query.query_flags)
306 rcdev = rc_dev_get_from_fd(attr->query.target_fd, false);
322 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) {
327 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) {
332 if (attr->query.prog_cnt != 0 && prog_ids && cnt)
334 attr->query.prog_cnt);
/linux-master/drivers/input/rmi4/
H A Drmi_f11.c36 * 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
216 * @has_jitter_filter: query 13 and control 73..76 exist.
252 * @query7_nonzero: true if none of the query 7 bits are set
253 * @query8_nonzero: true if none of the query 8 bits are set
275 * Touch shape info (query 1
659 struct f11_2d_sensor_queries *query = &f11->sens_query; local
770 f11_write_control_regs(struct rmi_function *fn, struct f11_2d_sensor_queries *query, struct f11_2d_ctrl *ctrl, u16 ctrl_base_addr) argument
[all...]
/linux-master/kernel/bpf/
H A Dmprog.c408 if (attr->query.query_flags || attr->query.attach_flags)
414 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags)))
416 if (copy_to_user(&uattr->query.revision, &revision, sizeof(revision)))
418 if (copy_to_user(&uattr->query.count, &count, sizeof(count)))
420 uprog_id = u64_to_user_ptr(attr->query.prog_ids);
421 uprog_flags = u64_to_user_ptr(attr->query.prog_attach_flags);
422 ulink_id = u64_to_user_ptr(attr->query.link_ids);
423 ulink_flags = u64_to_user_ptr(attr->query.link_attach_flags);
424 if (attr->query
[all...]
H A Dnet_namespace.c251 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids);
260 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags)))
262 if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt)))
264 if (!attr->query.prog_cnt || !prog_ids || !prog_cnt)
268 attr->query.prog_cnt);
278 if (attr->query.query_flags)
281 type = to_netns_bpf_attach_type(attr->query.attach_type);
285 net = get_net_ns_by_fd(attr->query.target_fd);
/linux-master/include/linux/
H A Darm_sdei.h84 int sdei_api_event_context(u32 query, u64 *result);
/linux-master/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp.c485 uint8_t index, struct mod_hdcp_display_query *query)
497 /* populate query */
498 query->link = &hdcp->connection.link;
499 query->display = display;
500 query->trace = &hdcp->connection.trace;
501 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP_OFF;
505 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP1_ON;
507 if (query->link->adjust.hdcp2.force_type == MOD_HDCP_FORCE_TYPE_0)
508 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP2_TYPE0_ON;
509 else if (query
484 mod_hdcp_query_display(struct mod_hdcp *hdcp, uint8_t index, struct mod_hdcp_display_query *query) argument
[all...]

Completed in 497 milliseconds

12345