Home
last modified time | relevance | path

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

1234

/drivers/infiniband/core/
Dsa_query.c685 static inline void ib_sa_disable_local_svc(struct ib_sa_query *query) in ib_sa_disable_local_svc() argument
687 query->flags &= ~IB_SA_ENABLE_LOCAL_SERVICE; in ib_sa_disable_local_svc()
690 static inline int ib_sa_query_cancelled(struct ib_sa_query *query) in ib_sa_query_cancelled() argument
692 return (query->flags & IB_SA_CANCEL); in ib_sa_query_cancelled()
696 struct ib_sa_query *query) in ib_nl_set_path_rec_attrs() argument
698 struct sa_path_rec *sa_rec = query->mad_buf->context[1]; in ib_nl_set_path_rec_attrs()
699 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs()
705 query->mad_buf->context[1] = NULL; in ib_nl_set_path_rec_attrs()
710 dev_name(&query->port->agent->device->dev), in ib_nl_set_path_rec_attrs()
712 header->port_num = query->port->port_num; in ib_nl_set_path_rec_attrs()
[all …]
Dcma_priv.h74 struct ib_sa_query *query; member
/drivers/gpu/drm/i915/
Di915_query.c100 struct drm_i915_query_engine_info query; in query_engine_info() local
114 ret = copy_query_item(&query, sizeof(query), len, query_item); in query_engine_info()
118 if (query.num_engines || query.rsvd[0] || query.rsvd[1] || in query_engine_info()
119 query.rsvd[2]) in query_engine_info()
132 query.num_engines++; in query_engine_info()
136 if (copy_to_user(query_ptr, &query, sizeof(query))) in query_engine_info()
430 struct drm_i915_query_memory_regions query; in query_memregion_info() local
441 total_length = sizeof(query); in query_memregion_info()
449 ret = copy_query_item(&query, sizeof(query), total_length, query_item); in query_memregion_info()
453 if (query.num_regions) in query_memregion_info()
[all …]
/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 …]
/drivers/input/rmi4/
Drmi_f11.c659 struct f11_2d_sensor_queries *query = &f11->sens_query; in f11_2d_construct_data() local
663 sensor->nbr_fingers = (query->nr_fingers == 5 ? 10 : in f11_2d_construct_data()
664 query->nr_fingers + 1); in f11_2d_construct_data()
668 if (query->has_abs) { in f11_2d_construct_data()
673 if (query->has_rel) in f11_2d_construct_data()
677 if (query->query7_nonzero) in f11_2d_construct_data()
681 if (query->query7_nonzero || query->query8_nonzero) in f11_2d_construct_data()
684 if (query->has_pinch || query->has_flick || query->has_rotate) { in f11_2d_construct_data()
686 if (!query->has_flick) in f11_2d_construct_data()
688 if (!query->has_rotate) in f11_2d_construct_data()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcore.c110 struct mlx5_fpga_query query; in mlx5_fpga_device_load_check() local
113 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
119 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check()
120 fdev->last_oper_image = query.oper_image; in mlx5_fpga_device_load_check()
123 query.status, query.admin_image, query.oper_image); in mlx5_fpga_device_load_check()
129 if (query.status != MLX5_FPGA_STATUS_SUCCESS) { in mlx5_fpga_device_load_check()
132 query.status); in mlx5_fpga_device_load_check()
Dcmd.c125 int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query) in mlx5_fpga_query() argument
136 query->status = MLX5_GET(fpga_ctrl, out, status); in mlx5_fpga_query()
137 query->admin_image = MLX5_GET(fpga_ctrl, out, flash_select_admin); in mlx5_fpga_query()
138 query->oper_image = MLX5_GET(fpga_ctrl, out, flash_select_oper); in mlx5_fpga_query()
Dcmd.h76 int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query);
/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp.c449 uint8_t index, struct mod_hdcp_display_query *query) in mod_hdcp_query_display() argument
462 query->link = &hdcp->connection.link; in mod_hdcp_query_display()
463 query->display = display; in mod_hdcp_query_display()
464 query->trace = &hdcp->connection.trace; in mod_hdcp_query_display()
465 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP_OFF; in mod_hdcp_query_display()
469 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP1_ON; in mod_hdcp_query_display()
471 if (query->link->adjust.hdcp2.force_type == MOD_HDCP_FORCE_TYPE_0) in mod_hdcp_query_display()
472 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP2_TYPE0_ON; in mod_hdcp_query_display()
473 else if (query->link->adjust.hdcp2.force_type == MOD_HDCP_FORCE_TYPE_1) in mod_hdcp_query_display()
474 query->encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP2_TYPE1_ON; in mod_hdcp_query_display()
[all …]
/drivers/media/rc/
Dbpf-lirc.c293 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in lirc_prog_query()
299 if (attr->query.query_flags) in lirc_prog_query()
302 rcdev = rc_dev_get_from_fd(attr->query.target_fd, false); in lirc_prog_query()
318 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { in lirc_prog_query()
323 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
328 if (attr->query.prog_cnt != 0 && prog_ids && cnt) in lirc_prog_query()
330 attr->query.prog_cnt); in lirc_prog_query()
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_hdcp.c172 struct mod_hdcp_display_query query; in hdcp_update_display() local
177 query.display = NULL; in hdcp_update_display()
178 mod_hdcp_query_display(&hdcp_w->hdcp, aconnector->base.index, &query); in hdcp_update_display()
180 if (query.display != NULL) { in hdcp_update_display()
181 memcpy(display, query.display, sizeof(struct mod_hdcp_display)); in hdcp_update_display()
334 struct mod_hdcp_display_query query; in event_property_validate() local
342 query.encryption_status = MOD_HDCP_ENCRYPTION_STATUS_HDCP_OFF; in event_property_validate()
343 mod_hdcp_query_display(&hdcp_work->hdcp, aconnector->base.index, &query); in event_property_validate()
345 if (query.encryption_status != hdcp_work->encryption_status) { in event_property_validate()
346 hdcp_work->encryption_status = query.encryption_status; in event_property_validate()
/drivers/soc/qcom/
Dcmd-db.c144 u8 query[8]; in cmd_db_get_header() local
151 strncpy(query, id, sizeof(query)); in cmd_db_get_header()
160 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
/drivers/platform/x86/hp/
Dhp-wmi.c226 static int hp_wmi_perform_query(int query, enum hp_wmi_command command, in hp_wmi_perform_query() argument
236 .commandtype = query, in hp_wmi_perform_query()
270 pr_warn("query 0x%x returned error 0x%x\n", query, ret); in hp_wmi_perform_query()
287 static int hp_wmi_read_int(int query) in hp_wmi_read_int() argument
291 ret = hp_wmi_perform_query(query, HPWMI_READ, &val, in hp_wmi_read_int()
344 int query = BIT(r + 8) | ((!blocked) << r); in hp_wmi_set_block() local
348 &query, sizeof(query), 0); in hp_wmi_set_block()
/drivers/media/usb/uvc/
Duvc_video.c31 static int __uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, in __uvc_query_ctrl() argument
38 pipe = (query & 0x80) ? usb_rcvctrlpipe(dev->udev, 0) in __uvc_query_ctrl()
40 type |= (query & 0x80) ? USB_DIR_IN : USB_DIR_OUT; in __uvc_query_ctrl()
42 return usb_control_msg(dev->udev, pipe, query, type, cs << 8, in __uvc_query_ctrl()
46 static const char *uvc_query_name(u8 query) in uvc_query_name() argument
48 switch (query) { in uvc_query_name()
70 int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, in uvc_query_ctrl() argument
77 ret = __uvc_query_ctrl(dev, query, unit, intfnum, cs, data, size, in uvc_query_ctrl()
84 uvc_query_name(query), cs, unit, ret, size); in uvc_query_ctrl()
251 struct uvc_streaming_control *ctrl, int probe, u8 query) in uvc_get_video_ctrl() argument
[all …]
Duvc_ctrl.c381 u8 query, const u8 *data) in uvc_ctrl_get_zoom() argument
385 switch (query) { in uvc_ctrl_get_zoom()
406 u8 query, const u8 *data) in uvc_ctrl_get_rel_speed() argument
411 switch (query) { in uvc_ctrl_get_rel_speed()
760 u8 query, const u8 *data) in uvc_get_le_value() argument
2062 switch (xqry->query) { in uvc_xu_ctrl_query()
2108 if (xqry->query == UVC_SET_CUR && in uvc_xu_ctrl_query()
2114 ret = uvc_query_ctrl(chain->dev, xqry->query, xqry->unit, in uvc_xu_ctrl_query()
2119 if (xqry->query != UVC_SET_CUR && in uvc_xu_ctrl_query()
/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c395 struct mlx5_module_eeprom_query_params query = {0}; in mlx5_query_module_eeprom() local
399 err = mlx5_query_module_num(dev, &query.module_number); in mlx5_query_module_eeprom()
403 err = mlx5_query_module_id(dev, query.module_number, &module_id); in mlx5_query_module_eeprom()
409 mlx5_sfp_eeprom_params_set(&query.i2c_address, &query.page, &offset); in mlx5_query_module_eeprom()
414 mlx5_qsfp_eeprom_params_set(&query.i2c_address, &query.page, &offset); in mlx5_query_module_eeprom()
425 query.size = size; in mlx5_query_module_eeprom()
426 query.offset = offset; in mlx5_query_module_eeprom()
428 return mlx5_query_mcia(dev, &query, data); in mlx5_query_module_eeprom()
Den_ethtool.c1772 struct mlx5_module_eeprom_query_params query; in mlx5e_get_module_eeprom_by_page() local
1783 query.offset = page_data->offset; in mlx5e_get_module_eeprom_by_page()
1784 query.i2c_address = page_data->i2c_address; in mlx5e_get_module_eeprom_by_page()
1785 query.bank = page_data->bank; in mlx5e_get_module_eeprom_by_page()
1786 query.page = page_data->page; in mlx5e_get_module_eeprom_by_page()
1788 query.size = page_data->length - i; in mlx5e_get_module_eeprom_by_page()
1789 size_read = mlx5_query_module_eeprom_by_page(mdev, &query, data + i); in mlx5e_get_module_eeprom_by_page()
1804 query.offset += size_read; in mlx5e_get_module_eeprom_by_page()
/drivers/net/hyperv/
Drndis_filter.c642 struct rndis_query_request *query; in rndis_filter_query_device() local
659 query = &request->request_msg.msg.query_req; in rndis_filter_query_device()
660 query->oid = oid; in rndis_filter_query_device()
661 query->info_buf_offset = sizeof(struct rndis_query_request); in rndis_filter_query_device()
662 query->info_buflen = 0; in rndis_filter_query_device()
663 query->dev_vc_handle = 0; in rndis_filter_query_device()
683 query->info_buflen = size; in rndis_filter_query_device()
685 ((unsigned long)query + query->info_buf_offset); in rndis_filter_query_device()
696 query->info_buflen = sizeof(struct ndis_recv_scale_cap); in rndis_filter_query_device()
697 cap = (struct ndis_recv_scale_cap *)((unsigned long)query + in rndis_filter_query_device()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c2063 struct iwl_scan_offload_profiles_query *query; in iwl_mvm_netdetect_query_results() local
2096 query = (void *)cmd.resp_pkt->data; in iwl_mvm_netdetect_query_results()
2098 results->matched_profiles = le32_to_cpu(query->matched_profiles); in iwl_mvm_netdetect_query_results()
2099 memcpy(results->matches, query->matches, matches_len); in iwl_mvm_netdetect_query_results()
2102 mvm->last_netdetect_scans = le32_to_cpu(query->n_scans_done); in iwl_mvm_netdetect_query_results()
2111 struct iwl_mvm_nd_query_results *query, in iwl_mvm_query_num_match_chans() argument
2119 (struct iwl_scan_offload_profile_match *)query->matches; in iwl_mvm_query_num_match_chans()
2125 (struct iwl_scan_offload_profile_match_v1 *)query->matches; in iwl_mvm_query_num_match_chans()
2135 struct iwl_mvm_nd_query_results *query, in iwl_mvm_query_set_freqs() argument
2144 (struct iwl_scan_offload_profile_match *)query->matches; in iwl_mvm_query_set_freqs()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c113 i, bp->fw_stats_req->query[i].kind, in bnx2x_dp_stats()
114 bp->fw_stats_req->query[i].index, in bnx2x_dp_stats()
115 bp->fw_stats_req->query[i].funcID, in bnx2x_dp_stats()
116 bp->fw_stats_req->query[i].reserved, in bnx2x_dp_stats()
117 bp->fw_stats_req->query[i].address.hi, in bnx2x_dp_stats()
118 bp->fw_stats_req->query[i].address.lo); in bnx2x_dp_stats()
1472 cur_query_entry = &bp->fw_stats_req->query[BNX2X_PORT_QUERY_IDX]; in bnx2x_prep_fw_stats_req()
1486 cur_query_entry = &bp->fw_stats_req->query[BNX2X_PF_QUERY_IDX]; in bnx2x_prep_fw_stats_req()
1501 &bp->fw_stats_req->query[BNX2X_FCOE_QUERY_IDX]; in bnx2x_prep_fw_stats_req()
1528 query[first_queue_query_index + i]; in bnx2x_prep_fw_stats_req()
[all …]
/drivers/misc/
Dgehc-achc.c196 u8 query[] = {EZPORT_CMD_SE, (address >> 16) & 0xff, (address >> 8) & 0xff, address & 0xff}; in ezport_section_erase() local
208 ret = spi_write(spi, query, sizeof(query)); in ezport_section_erase()
/drivers/xen/
Dgrant-table.c709 struct gnttab_query_size query; in __max_nr_grant_frames() local
712 query.dom = DOMID_SELF; in __max_nr_grant_frames()
714 rc = HYPERVISOR_grant_table_op(GNTTABOP_query_size, &query, 1); in __max_nr_grant_frames()
715 if ((rc < 0) || (query.status != GNTST_okay)) in __max_nr_grant_frames()
718 return query.max_nr_frames; in __max_nr_grant_frames()
/drivers/platform/chrome/wilco_ec/
DKconfig37 If you say Y here, you get support to query EC telemetry data from
/drivers/infiniband/ulp/ipoib/
Dipoib_main.c729 if (path->query) in ipoib_flush_paths()
730 ib_sa_cancel_query(path->query_id, path->query); in ipoib_flush_paths()
840 path->query = NULL; in path_rec_completion()
919 path, &path->query); in path_rec_start()
922 path->query = NULL; in path_rec_start()
942 if (!path->query) in neigh_refresh_path()
1015 if (!path->query && path_rec_start(dev, path)) in neigh_add_path()
1069 if (!path->query && path_rec_start(dev, path)) { in unicast_arp_send()
/drivers/media/usb/pvrusb2/
DKconfig26 interface for query and control of the pvrusb2 driver.

1234