/drivers/infiniband/core/ |
D | sa_query.c | 740 static inline void ib_sa_disable_local_svc(struct ib_sa_query *query) in ib_sa_disable_local_svc() argument 742 query->flags &= ~IB_SA_ENABLE_LOCAL_SERVICE; in ib_sa_disable_local_svc() 745 static inline int ib_sa_query_cancelled(struct ib_sa_query *query) in ib_sa_query_cancelled() argument 747 return (query->flags & IB_SA_CANCEL); in ib_sa_query_cancelled() 751 struct ib_sa_query *query) in ib_nl_set_path_rec_attrs() argument 753 struct sa_path_rec *sa_rec = query->mad_buf->context[1]; in ib_nl_set_path_rec_attrs() 754 struct ib_sa_mad *mad = query->mad_buf->mad; in ib_nl_set_path_rec_attrs() 760 query->mad_buf->context[1] = NULL; in ib_nl_set_path_rec_attrs() 764 memcpy(header->device_name, query->port->agent->device->name, in ib_nl_set_path_rec_attrs() 766 header->port_num = query->port->port_num; in ib_nl_set_path_rec_attrs() [all …]
|
D | multicast.c | 108 struct ib_sa_query *query; member 341 &group->query); in send_join() 361 group, &group->query); in send_leave()
|
/drivers/input/touchscreen/ |
D | wacom_w8001.c | 186 static void parse_touchquery(u8 *data, struct w8001_touch_query *query) in parse_touchquery() argument 188 memset(query, 0, sizeof(*query)); in parse_touchquery() 190 query->panel_res = data[1]; in parse_touchquery() 191 query->sensor_id = data[2] & 0x7; in parse_touchquery() 192 query->capacity_res = data[7]; in parse_touchquery() 194 query->x = data[3] << 9; in parse_touchquery() 195 query->x |= data[4] << 2; in parse_touchquery() 196 query->x |= (data[2] >> 5) & 0x3; in parse_touchquery() 198 query->y = data[5] << 9; in parse_touchquery() 199 query->y |= data[6] << 2; in parse_touchquery() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | core.c | 80 struct mlx5_fpga_query query; in mlx5_fpga_device_load_check() local 83 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check() 89 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check() 90 fdev->last_oper_image = query.oper_image; in mlx5_fpga_device_load_check() 93 query.status, query.admin_image, query.oper_image); in mlx5_fpga_device_load_check() 95 if (query.status != MLX5_FPGA_STATUS_SUCCESS) { in mlx5_fpga_device_load_check() 98 query.status); in mlx5_fpga_device_load_check()
|
D | cmd.c | 126 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()
|
D | cmd.h | 69 int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query);
|
/drivers/input/rmi4/ |
D | rmi_f11.c | 647 struct f11_2d_sensor_queries *query = &f11->sens_query; in f11_2d_construct_data() local 651 sensor->nbr_fingers = (query->nr_fingers == 5 ? 10 : in f11_2d_construct_data() 652 query->nr_fingers + 1); in f11_2d_construct_data() 656 if (query->has_abs) { in f11_2d_construct_data() 661 if (query->has_rel) in f11_2d_construct_data() 665 if (query->query7_nonzero) in f11_2d_construct_data() 669 if (query->query7_nonzero || query->query8_nonzero) in f11_2d_construct_data() 672 if (query->has_pinch || query->has_flick || query->has_rotate) { in f11_2d_construct_data() 674 if (!query->has_flick) in f11_2d_construct_data() 676 if (!query->has_rotate) in f11_2d_construct_data() [all …]
|
/drivers/staging/android/ion/ |
D | ion-ioctl.c | 25 struct ion_heap_query query; member 34 ret = arg->query.reserved0 != 0; in validate_ioctl_arg() 35 ret |= arg->query.reserved1 != 0; in validate_ioctl_arg() 36 ret |= arg->query.reserved2 != 0; in validate_ioctl_arg() 98 ret = ion_query_heaps(&data.query); in ion_ioctl()
|
D | ion.c | 455 int ion_query_heaps(struct ion_heap_query *query) in ion_query_heaps() argument 458 struct ion_heap_data __user *buffer = u64_to_user_ptr(query->heaps); in ion_query_heaps() 467 query->cnt = dev->heap_cnt; in ion_query_heaps() 472 if (query->cnt <= 0) in ion_query_heaps() 475 max_cnt = query->cnt; in ion_query_heaps() 493 query->cnt = cnt; in ion_query_heaps()
|
D | ion.h | 359 int ion_query_heaps(struct ion_heap_query *query);
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pm.c | 620 char *buf, struct amd_pp_profile *query) in amdgpu_get_pp_power_profile() argument 628 adev, query); in amdgpu_get_pp_power_profile() 631 adev, query); in amdgpu_get_pp_power_profile() 638 query->min_sclk / 100, in amdgpu_get_pp_power_profile() 639 query->min_mclk / 100, in amdgpu_get_pp_power_profile() 640 query->activity_threshold, in amdgpu_get_pp_power_profile() 641 query->up_hyst, in amdgpu_get_pp_power_profile() 642 query->down_hyst); in amdgpu_get_pp_power_profile() 649 struct amd_pp_profile query = {0}; in amdgpu_get_pp_gfx_power_profile() local 651 query.type = AMD_PP_GFX_PROFILE; in amdgpu_get_pp_gfx_power_profile() [all …]
|
D | amdgpu_kms.c | 253 switch (info->query) { in amdgpu_info_ioctl() 663 struct pp_gpu_power query = {0}; in amdgpu_info_ioctl() local 664 int query_size = sizeof(query); in amdgpu_info_ioctl() 708 (void *)&query, &query_size)) { in amdgpu_info_ioctl() 711 ui32 = query.average_gpu_power >> 8; in amdgpu_info_ioctl() 737 DRM_DEBUG_KMS("Invalid request %d\n", info->query); in amdgpu_info_ioctl()
|
D | amdgpu_dpm.h | 280 struct amd_pp_profile *query); 405 #define amdgpu_dpm_get_power_profile_state(adev, query) \ argument 407 (adev)->powerplay.pp_handle, query))
|
/drivers/media/usb/uvc/ |
D | uvc_video.c | 33 static int __uvc_query_ctrl(struct uvc_device *dev, __u8 query, __u8 unit, in __uvc_query_ctrl() argument 40 pipe = (query & 0x80) ? usb_rcvctrlpipe(dev->udev, 0) in __uvc_query_ctrl() 42 type |= (query & 0x80) ? USB_DIR_IN : USB_DIR_OUT; in __uvc_query_ctrl() 44 return usb_control_msg(dev->udev, pipe, query, type, cs << 8, in __uvc_query_ctrl() 48 static const char *uvc_query_name(__u8 query) in uvc_query_name() argument 50 switch (query) { in uvc_query_name() 72 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() 81 "unit %u: %d (exp. %u).\n", uvc_query_name(query), cs, in uvc_query_ctrl() 181 struct uvc_streaming_control *ctrl, int probe, __u8 query) in uvc_get_video_ctrl() argument [all …]
|
D | uvc_ctrl.c | 370 __u8 query, const __u8 *data) in uvc_ctrl_get_zoom() argument 374 switch (query) { in uvc_ctrl_get_zoom() 395 __u8 query, const __u8 *data) in uvc_ctrl_get_rel_speed() argument 400 switch (query) { in uvc_ctrl_get_rel_speed() 769 __u8 query, const __u8 *data) in uvc_get_le_value() argument 1772 switch (xqry->query) { in uvc_xu_ctrl_query() 1818 if (xqry->query == UVC_SET_CUR && in uvc_xu_ctrl_query() 1824 ret = uvc_query_ctrl(chain->dev, xqry->query, xqry->unit, in uvc_xu_ctrl_query() 1829 if (xqry->query != UVC_SET_CUR && in uvc_xu_ctrl_query()
|
D | uvcvideo.h | 235 __s32 (*get) (struct uvc_control_mapping *mapping, __u8 query, 708 extern int uvc_query_ctrl(struct uvc_device *dev, __u8 query, __u8 unit,
|
/drivers/net/hyperv/ |
D | rndis_filter.c | 451 struct rndis_query_request *query; in rndis_filter_query_device() local 467 query = &request->request_msg.msg.query_req; in rndis_filter_query_device() 468 query->oid = oid; in rndis_filter_query_device() 469 query->info_buf_offset = sizeof(struct rndis_query_request); in rndis_filter_query_device() 470 query->info_buflen = 0; in rndis_filter_query_device() 471 query->dev_vc_handle = 0; in rndis_filter_query_device() 491 query->info_buflen = size; in rndis_filter_query_device() 493 ((unsigned long)query + query->info_buf_offset); in rndis_filter_query_device() 504 query->info_buflen = sizeof(struct ndis_recv_scale_cap); in rndis_filter_query_device() 505 cap = (struct ndis_recv_scale_cap *)((unsigned long)query + in rndis_filter_query_device() [all …]
|
/drivers/platform/x86/ |
D | hp-wmi.c | 220 static int hp_wmi_perform_query(int query, enum hp_wmi_command command, in hp_wmi_perform_query() argument 230 .commandtype = query, in hp_wmi_perform_query() 263 pr_warn("query 0x%x returned error 0x%x\n", query, ret); in hp_wmi_perform_query() 280 static int hp_wmi_read_int(int query) in hp_wmi_read_int() argument 284 ret = hp_wmi_perform_query(query, HPWMI_READ, &val, in hp_wmi_read_int() 337 int query = BIT(r + 8) | ((!blocked) << r); in hp_wmi_set_block() local 341 &query, sizeof(query), 0); in hp_wmi_set_block()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_stats.c | 111 i, bp->fw_stats_req->query[i].kind, in bnx2x_dp_stats() 112 bp->fw_stats_req->query[i].index, in bnx2x_dp_stats() 113 bp->fw_stats_req->query[i].funcID, in bnx2x_dp_stats() 114 bp->fw_stats_req->query[i].reserved, in bnx2x_dp_stats() 115 bp->fw_stats_req->query[i].address.hi, in bnx2x_dp_stats() 116 bp->fw_stats_req->query[i].address.lo); in bnx2x_dp_stats() 1470 cur_query_entry = &bp->fw_stats_req->query[BNX2X_PORT_QUERY_IDX]; in bnx2x_prep_fw_stats_req() 1484 cur_query_entry = &bp->fw_stats_req->query[BNX2X_PF_QUERY_IDX]; in bnx2x_prep_fw_stats_req() 1499 &bp->fw_stats_req->query[BNX2X_FCOE_QUERY_IDX]; in bnx2x_prep_fw_stats_req() 1526 query[first_queue_query_index + i]; in bnx2x_prep_fw_stats_req() [all …]
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | d3.c | 1911 struct iwl_scan_offload_profiles_query *query; in iwl_mvm_netdetect_query_results() local 1925 if (len < sizeof(*query)) { in iwl_mvm_netdetect_query_results() 1931 query = (void *)cmd.resp_pkt->data; in iwl_mvm_netdetect_query_results() 1933 results->matched_profiles = le32_to_cpu(query->matched_profiles); in iwl_mvm_netdetect_query_results() 1934 memcpy(results->matches, query->matches, sizeof(results->matches)); in iwl_mvm_netdetect_query_results() 1937 mvm->last_netdetect_scans = le32_to_cpu(query->n_scans_done); in iwl_mvm_netdetect_query_results() 1953 struct iwl_mvm_nd_query_results query; in iwl_mvm_query_netdetect_reasons() local 1971 ret = iwl_mvm_netdetect_query_results(mvm, &query); in iwl_mvm_query_netdetect_reasons() 1972 if (ret || !query.matched_profiles) { in iwl_mvm_query_netdetect_reasons() 1977 matched_profiles = query.matched_profiles; in iwl_mvm_query_netdetect_reasons() [all …]
|
/drivers/xen/ |
D | grant-table.c | 608 struct gnttab_query_size query; in __max_nr_grant_frames() local 611 query.dom = DOMID_SELF; in __max_nr_grant_frames() 613 rc = HYPERVISOR_grant_table_op(GNTTABOP_query_size, &query, 1); in __max_nr_grant_frames() 614 if ((rc < 0) || (query.status != GNTST_okay)) in __max_nr_grant_frames() 617 return query.max_nr_frames; in __max_nr_grant_frames()
|
/drivers/gpu/drm/amd/powerplay/ |
D | amd_powerplay.c | 1030 struct amd_pp_profile *query) in pp_dpm_get_power_profile_state() argument 1035 if (!query || pp_check(pp_handle)) in pp_dpm_get_power_profile_state() 1040 if (query->type == AMD_PP_GFX_PROFILE) in pp_dpm_get_power_profile_state() 1041 memcpy(query, &hwmgr->gfx_power_profile, in pp_dpm_get_power_profile_state() 1043 else if (query->type == AMD_PP_COMPUTE_PROFILE) in pp_dpm_get_power_profile_state() 1044 memcpy(query, &hwmgr->compute_power_profile, in pp_dpm_get_power_profile_state()
|
/drivers/media/usb/pvrusb2/ |
D | Kconfig | 25 interface for query and control of the pvrusb2 driver.
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 732 if (path->query) in ipoib_flush_paths() 733 ib_sa_cancel_query(path->query_id, path->query); in ipoib_flush_paths() 840 path->query = NULL; in path_rec_completion() 912 path, &path->query); in path_rec_start() 915 path->query = NULL; in path_rec_start() 990 if (!path->query && path_rec_start(dev, path)) in neigh_add_path() 1043 if (!path->query && path_rec_start(dev, path)) { in unicast_arp_send() 1067 } else if ((path->query || !path_rec_start(dev, path)) && in unicast_arp_send()
|
/drivers/scsi/ufs/ |
D | ufshcd.c | 1786 struct ufs_query_res *query_res = &hba->dev_cmd.query.response; in ufshcd_copy_query_response() 1791 if (hba->dev_cmd.query.descriptor && in ufshcd_copy_query_response() 1802 hba->dev_cmd.query.request.upiu_req.length); in ufshcd_copy_query_response() 1804 memcpy(hba->dev_cmd.query.descriptor, descp, resp_len); in ufshcd_copy_query_response() 2142 struct ufs_query *query = &hba->dev_cmd.query; in ufshcd_prepare_utp_query_req_upiu() local 2143 u16 len = be16_to_cpu(query->request.upiu_req.length); in ufshcd_prepare_utp_query_req_upiu() 2151 0, query->request.query_func, 0, 0); in ufshcd_prepare_utp_query_req_upiu() 2154 if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) in ufshcd_prepare_utp_query_req_upiu() 2161 memcpy(&ucd_req_ptr->qr, &query->request.upiu_req, in ufshcd_prepare_utp_query_req_upiu() 2165 if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) in ufshcd_prepare_utp_query_req_upiu() [all …]
|