Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 253) sorted by relevance

1234567891011

/Linux-v5.4/drivers/infiniband/core/
Dsa_query.c739 static inline void ib_sa_disable_local_svc(struct ib_sa_query *query) in ib_sa_disable_local_svc() argument
741 query->flags &= ~IB_SA_ENABLE_LOCAL_SERVICE; in ib_sa_disable_local_svc()
744 static inline int ib_sa_query_cancelled(struct ib_sa_query *query) in ib_sa_query_cancelled() argument
746 return (query->flags & IB_SA_CANCEL); in ib_sa_query_cancelled()
750 struct ib_sa_query *query) in ib_nl_set_path_rec_attrs() argument
752 struct sa_path_rec *sa_rec = query->mad_buf->context[1]; in ib_nl_set_path_rec_attrs()
753 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs()
759 query->mad_buf->context[1] = NULL; in ib_nl_set_path_rec_attrs()
763 memcpy(header->device_name, dev_name(&query->port->agent->device->dev), in ib_nl_set_path_rec_attrs()
765 header->port_num = query->port->port_num; in ib_nl_set_path_rec_attrs()
[all …]
/Linux-v5.4/tools/perf/scripts/python/
Dexport-to-postgresql.py323 query = QSqlQuery(db) variable
327 do_query(query, 'CREATE DATABASE ' + dbname)
331 query.finish()
332 query.clear()
338 query = QSqlQuery(db) variable
339 do_query(query, 'SET client_min_messages TO WARNING')
341 do_query(query, 'CREATE TABLE selected_events ('
344 do_query(query, 'CREATE TABLE machines ('
348 do_query(query, 'CREATE TABLE threads ('
354 do_query(query, 'CREATE TABLE comms ('
[all …]
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, 'CREATE TABLE symbols ('
[all …]
Dexported-sql-viewer.py173 def QueryExec(query, stmt): argument
174 ret = query.exec_(stmt)
176 raise Exception("Query failed: " + query.lastError().text())
521 query = QSqlQuery(self.glb.db)
526 …QueryExec(query, "SELECT call_path_id, name, short_name, COUNT(calls.id), SUM(return_time - call_t…
536 while query.next():
538 insn_cnt = int(query.value(5))
539 cyc_cnt = int(query.value(6))
540 branch_count = int(query.value(7))
544 branch_count = int(query.value(5))
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c10 struct perf_event_query_bpf *query; in test_tp_attach_query() local
36 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); in test_tp_attach_query()
67 query->ids_len = num_progs; in test_tp_attach_query()
68 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
69 if (CHECK(err || query->prog_cnt != 0, in test_tp_attach_query()
72 err, errno, query->prog_cnt)) in test_tp_attach_query()
83 query->ids_len = 0; in test_tp_attach_query()
84 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
85 if (CHECK(err || query->prog_cnt != 2, in test_tp_attach_query()
88 err, errno, query->prog_cnt)) in test_tp_attach_query()
[all …]
/Linux-v5.4/lib/
Ddynamic_debug.c114 static void vpr_info_dq(const struct ddebug_query *query, const char *msg) in vpr_info_dq() argument
119 if (query->format) { in vpr_info_dq()
120 fmtlen = strlen(query->format); in vpr_info_dq()
121 while (fmtlen && query->format[fmtlen - 1] == '\n') in vpr_info_dq()
127 query->function ? query->function : "", in vpr_info_dq()
128 query->filename ? query->filename : "", in vpr_info_dq()
129 query->module ? query->module : "", in vpr_info_dq()
130 fmtlen, query->format ? query->format : "", in vpr_info_dq()
131 query->first_lineno, query->last_lineno); in vpr_info_dq()
140 static int ddebug_change(const struct ddebug_query *query, in ddebug_change() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_query.c105 struct drm_i915_query_engine_info query; in query_engine_info() local
117 ret = copy_query_item(&query, sizeof(query), len, query_item); in query_engine_info()
121 if (query.num_engines || query.rsvd[0] || query.rsvd[1] || in query_engine_info()
122 query.rsvd[2]) in query_engine_info()
135 query.num_engines++; in query_engine_info()
139 if (__copy_to_user(query_ptr, &query, sizeof(query))) in query_engine_info()
/Linux-v5.4/drivers/input/touchscreen/
Dwacom_w8001.c188 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()
201 query->y |= data[6] << 2; in parse_touchquery()
[all …]
/Linux-v5.4/drivers/input/rmi4/
Drmi_f11.c633 struct f11_2d_sensor_queries *query = &f11->sens_query; in f11_2d_construct_data() local
637 sensor->nbr_fingers = (query->nr_fingers == 5 ? 10 : in f11_2d_construct_data()
638 query->nr_fingers + 1); in f11_2d_construct_data()
642 if (query->has_abs) { in f11_2d_construct_data()
647 if (query->has_rel) in f11_2d_construct_data()
651 if (query->query7_nonzero) in f11_2d_construct_data()
655 if (query->query7_nonzero || query->query8_nonzero) in f11_2d_construct_data()
658 if (query->has_pinch || query->has_flick || query->has_rotate) { in f11_2d_construct_data()
660 if (!query->has_flick) in f11_2d_construct_data()
662 if (!query->has_rotate) in f11_2d_construct_data()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcore.c101 struct mlx5_fpga_query query; in mlx5_fpga_device_load_check() local
104 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
110 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check()
111 fdev->last_oper_image = query.oper_image; in mlx5_fpga_device_load_check()
114 query.status, query.admin_image, query.oper_image); in mlx5_fpga_device_load_check()
116 if (query.status != MLX5_FPGA_STATUS_SUCCESS) { in mlx5_fpga_device_load_check()
119 query.status); in mlx5_fpga_device_load_check()
Dcmd.c126 int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query) in mlx5_fpga_query() argument
137 query->status = MLX5_GET(fpga_ctrl, out, status); in mlx5_fpga_query()
138 query->admin_image = MLX5_GET(fpga_ctrl, out, flash_select_admin); in mlx5_fpga_query()
139 query->oper_image = MLX5_GET(fpga_ctrl, out, flash_select_oper); in mlx5_fpga_query()
/Linux-v5.4/tools/testing/selftests/android/ion/
Dionutils.c53 struct ion_heap_query query; in ion_export_buffer_fd() local
69 memset(&query, 0, sizeof(query)); in ion_export_buffer_fd()
70 query.cnt = MAX_HEAP_COUNT; in ion_export_buffer_fd()
71 query.heaps = (unsigned long int)&heap_data[0]; in ion_export_buffer_fd()
73 ret = ioctl(ionfd, ION_IOC_HEAP_QUERY, &query); in ion_export_buffer_fd()
81 for (i = 0; i < query.cnt; i++) { in ion_export_buffer_fd()
/Linux-v5.4/Documentation/networking/
Ddns_resolver.txt31 (*) Dns query support for AFSDB resource record.
58 To direct a query for query type 'foo', a line of the following should be added
76 This is the basic access function. It looks for a cached DNS query and if
77 it doesn't find it, it upcalls to userspace to make a new DNS query, which
84 and thus the type of query to do, and <name> specifies the string to be
85 looked up. The default query type is a straight hostname to IP address
92 appropriate to the query type.
94 The return value is a string appropriate to the query type. For instance,
95 for the default query type it is just a list of comma-separated IPv4 and
/Linux-v5.4/drivers/media/rc/
Dbpf-lirc.c296 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in lirc_prog_query()
302 if (attr->query.query_flags) in lirc_prog_query()
305 rcdev = rc_dev_get_from_fd(attr->query.target_fd); in lirc_prog_query()
321 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { in lirc_prog_query()
326 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
331 if (attr->query.prog_cnt != 0 && prog_ids && cnt) in lirc_prog_query()
/Linux-v5.4/drivers/staging/android/ion/
Dion.c413 static int ion_query_heaps(struct ion_heap_query *query) in ion_query_heaps() argument
416 struct ion_heap_data __user *buffer = u64_to_user_ptr(query->heaps); in ion_query_heaps()
425 query->cnt = dev->heap_cnt; in ion_query_heaps()
430 if (query->cnt <= 0) in ion_query_heaps()
433 max_cnt = query->cnt; in ion_query_heaps()
451 query->cnt = cnt; in ion_query_heaps()
460 struct ion_heap_query query; member
467 if (arg->query.reserved0 || in validate_ioctl_arg()
468 arg->query.reserved1 || in validate_ioctl_arg()
469 arg->query.reserved2) in validate_ioctl_arg()
[all …]
/Linux-v5.4/drivers/soc/qcom/
Dcmd-db.c142 u8 query[8]; in cmd_db_get_header() local
149 strncpy(query, id, sizeof(query)); in cmd_db_get_header()
158 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
/Linux-v5.4/arch/s390/hypfs/
Dhypfs_vm.c57 static int diag2fc(int size, char* query, void *addr) in diag2fc() argument
63 memcpy(parm_list.userid, query, NAME_LEN); in diag2fc()
87 static void *diag2fc_store(char *query, unsigned int *count, int offset) in diag2fc_store() argument
93 size = diag2fc(0, query, NULL); in diag2fc_store()
99 if (diag2fc(size, query, data + offset) == 0) in diag2fc_store()
/Linux-v5.4/net/bridge/
Dbr_multicast.c45 struct bridge_mcast_own_query *query);
672 struct bridge_mcast_own_query *query) in br_multicast_querier_expired() argument
678 br_multicast_start_querier(br, query); in br_multicast_querier_expired()
778 struct bridge_mcast_own_query *query) in br_multicast_port_query_expired() argument
787 if (query->startup_sent < br->multicast_startup_query_count) in br_multicast_port_query_expired()
788 query->startup_sent++; in br_multicast_port_query_expired()
790 br_multicast_send_query(port->br, port, query); in br_multicast_port_query_expired()
861 static void br_multicast_enable(struct bridge_mcast_own_query *query) in br_multicast_enable() argument
863 query->startup_sent = 0; in br_multicast_enable()
865 if (try_to_del_timer_sync(&query->timer) >= 0 || in br_multicast_enable()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-devices-system-ibm-rtl7 ability to query the current state.
17 Description: The version file provides a means by which to query
/Linux-v5.4/drivers/platform/x86/
Dhp-wmi.c207 static int hp_wmi_perform_query(int query, enum hp_wmi_command command, in hp_wmi_perform_query() argument
217 .commandtype = query, in hp_wmi_perform_query()
250 pr_warn("query 0x%x returned error 0x%x\n", query, ret); in hp_wmi_perform_query()
267 static int hp_wmi_read_int(int query) in hp_wmi_read_int() argument
271 ret = hp_wmi_perform_query(query, HPWMI_READ, &val, in hp_wmi_read_int()
324 int query = BIT(r + 8) | ((!blocked) << r); in hp_wmi_set_block() local
328 &query, sizeof(query), 0); in hp_wmi_set_block()
/Linux-v5.4/net/dns_resolver/
DKconfig13 DNS Resolver is used to query DNS server for information. Examples
15 performing a DNS query for AFSDB records so that AFS can locate a
/Linux-v5.4/crypto/asymmetric_keys/
Dsignature.c57 if (!subtype->query) in query_asymmetric_key()
60 ret = subtype->query(params, info); in query_asymmetric_key()
/Linux-v5.4/Documentation/admin-guide/laptops/
Dtoshiba_haps.rst55 This device does not report any axes, however, to query the sensor position
57 provided to query such information, handled by the kernel module toshiba_acpi
76 provides a way to let userspace query the current protection
/Linux-v5.4/arch/powerpc/platforms/pseries/
Diommu.c859 struct ddw_query_response *query) in query_ddw() argument
878 ret = rtas_call(ddw_avail[0], 3, 5, (u32 *)query, in query_ddw()
971 struct ddw_query_response query; in enable_ddw() local
1020 ret = query_ddw(dev, ddw_avail, &query); in enable_ddw()
1024 if (query.windows_available == 0) { in enable_ddw()
1033 if (query.page_size & 4) { in enable_ddw()
1035 } else if (query.page_size & 2) { in enable_ddw()
1037 } else if (query.page_size & 1) { in enable_ddw()
1041 query.page_size); in enable_ddw()
1047 if (query.largest_available_block < (max_addr >> page_shift)) { in enable_ddw()
[all …]
/Linux-v5.4/drivers/media/usb/uvc/
Duvc_video.c28 static int __uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, in __uvc_query_ctrl() argument
35 pipe = (query & 0x80) ? usb_rcvctrlpipe(dev->udev, 0) in __uvc_query_ctrl()
37 type |= (query & 0x80) ? USB_DIR_IN : USB_DIR_OUT; in __uvc_query_ctrl()
39 return usb_control_msg(dev->udev, pipe, query, type, cs << 8, in __uvc_query_ctrl()
43 static const char *uvc_query_name(u8 query) in uvc_query_name() argument
45 switch (query) { in uvc_query_name()
67 int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, in uvc_query_ctrl() argument
74 ret = __uvc_query_ctrl(dev, query, unit, intfnum, cs, data, size, in uvc_query_ctrl()
81 uvc_query_name(query), cs, unit, ret, size); in uvc_query_ctrl()
216 struct uvc_streaming_control *ctrl, int probe, u8 query) in uvc_get_video_ctrl() argument
[all …]

1234567891011