query 873 arch/powerpc/platforms/pseries/iommu.c struct ddw_query_response *query) query 892 arch/powerpc/platforms/pseries/iommu.c ret = rtas_call(ddw_avail[0], 3, 5, (u32 *)query, query 985 arch/powerpc/platforms/pseries/iommu.c struct ddw_query_response query; query 1034 arch/powerpc/platforms/pseries/iommu.c ret = query_ddw(dev, ddw_avail, &query); query 1038 arch/powerpc/platforms/pseries/iommu.c if (query.windows_available == 0) { query 1047 arch/powerpc/platforms/pseries/iommu.c if (query.page_size & 4) { query 1049 arch/powerpc/platforms/pseries/iommu.c } else if (query.page_size & 2) { query 1051 arch/powerpc/platforms/pseries/iommu.c } else if (query.page_size & 1) { query 1055 arch/powerpc/platforms/pseries/iommu.c query.page_size); query 1061 arch/powerpc/platforms/pseries/iommu.c if (query.largest_available_block < (max_addr >> page_shift)) { query 1063 arch/powerpc/platforms/pseries/iommu.c "%llu-sized pages\n", max_addr, query.largest_available_block, query 57 arch/s390/hypfs/hypfs_vm.c static int diag2fc(int size, char* query, void *addr) query 63 arch/s390/hypfs/hypfs_vm.c memcpy(parm_list.userid, query, NAME_LEN); query 87 arch/s390/hypfs/hypfs_vm.c static void *diag2fc_store(char *query, unsigned int *count, int offset) query 93 arch/s390/hypfs/hypfs_vm.c size = diag2fc(0, query, NULL); query 99 arch/s390/hypfs/hypfs_vm.c if (diag2fc(size, query, data + offset) == 0) query 335 arch/s390/kvm/kvm-s390.c static __always_inline void __insn32_query(unsigned int opcode, u8 *query) query 338 arch/s390/kvm/kvm-s390.c register unsigned long r1 asm("1") = (unsigned long) query; query 966 crypto/asymmetric_keys/asym_tpm.c .query = tpm_key_query, query 341 crypto/asymmetric_keys/public_key.c .query = software_key_query, query 57 crypto/asymmetric_keys/signature.c if (!subtype->query) query 60 crypto/asymmetric_keys/signature.c ret = subtype->query(params, info); query 188 drivers/firmware/arm_sdei.c int sdei_api_event_context(u32 query, u64 *result) query 190 drivers/firmware/arm_sdei.c return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_CONTEXT, query, 0, 0, 0, 0, query 465 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c switch (info->query) { query 933 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c DRM_DEBUG_KMS("Invalid request %d\n", info->query); query 1978 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c u32 query = 0; query 1989 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c (void *)&query, &size); query 1994 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c uw = (query >> 8) * 1000000 + (query & 0xff) * 1000; query 3049 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c uint32_t query = 0; query 3068 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_POWER, (void *)&query, &size)) query 3069 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c seq_printf(m, "\t%u.%u W (average GPU)\n", query >> 8, query & 0xff); query 3479 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c static int smu7_get_gpu_power(struct pp_hwmgr *hwmgr, u32 *query) query 3485 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (!query) query 3501 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c *query = tmp; query 3520 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c *query = tmp; query 3750 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t *query) query 3754 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (!query) query 3761 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c *query = value << 8; query 1271 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c static int vega12_get_gpu_power(struct pp_hwmgr *hwmgr, uint32_t *query) query 1280 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c *query = metrics_table.CurrSocketPower << 8; query 2095 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c uint32_t *query) query 2106 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c *query = metrics_table.AverageSocketPower << 8; query 2108 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c *query = metrics_table.CurrSocketPower << 8; query 105 drivers/gpu/drm/i915/i915_query.c struct drm_i915_query_engine_info query; query 117 drivers/gpu/drm/i915/i915_query.c ret = copy_query_item(&query, sizeof(query), len, query_item); query 121 drivers/gpu/drm/i915/i915_query.c if (query.num_engines || query.rsvd[0] || query.rsvd[1] || query 122 drivers/gpu/drm/i915/i915_query.c query.rsvd[2]) query 135 drivers/gpu/drm/i915/i915_query.c query.num_engines++; query 139 drivers/gpu/drm/i915/i915_query.c if (__copy_to_user(query_ptr, &query, sizeof(query))) query 1736 drivers/infiniband/core/cma.c if (id_priv->query) query 1737 drivers/infiniband/core/cma.c ib_sa_cancel_query(id_priv->query_id, id_priv->query); query 2624 drivers/infiniband/core/cma.c work, &id_priv->query); query 74 drivers/infiniband/core/cma_priv.h struct ib_sa_query *query; query 108 drivers/infiniband/core/multicast.c struct ib_sa_query *query; query 341 drivers/infiniband/core/multicast.c &group->query); query 361 drivers/infiniband/core/multicast.c group, &group->query); query 739 drivers/infiniband/core/sa_query.c static inline void ib_sa_disable_local_svc(struct ib_sa_query *query) query 741 drivers/infiniband/core/sa_query.c query->flags &= ~IB_SA_ENABLE_LOCAL_SERVICE; query 744 drivers/infiniband/core/sa_query.c static inline int ib_sa_query_cancelled(struct ib_sa_query *query) query 746 drivers/infiniband/core/sa_query.c return (query->flags & IB_SA_CANCEL); query 750 drivers/infiniband/core/sa_query.c struct ib_sa_query *query) query 752 drivers/infiniband/core/sa_query.c struct sa_path_rec *sa_rec = query->mad_buf->context[1]; query 753 drivers/infiniband/core/sa_query.c struct ib_sa_mad *mad = query->mad_buf->mad; query 759 drivers/infiniband/core/sa_query.c query->mad_buf->context[1] = NULL; query 763 drivers/infiniband/core/sa_query.c memcpy(header->device_name, dev_name(&query->port->agent->device->dev), query 765 drivers/infiniband/core/sa_query.c header->port_num = query->port->port_num; query 769 drivers/infiniband/core/sa_query.c query->path_use = LS_RESOLVE_PATH_USE_GMP; query 771 drivers/infiniband/core/sa_query.c query->path_use = LS_RESOLVE_PATH_USE_UNIDIRECTIONAL; query 772 drivers/infiniband/core/sa_query.c header->path_use = query->path_use; query 832 drivers/infiniband/core/sa_query.c static int ib_nl_send_msg(struct ib_sa_query *query, gfp_t gfp_mask) query 840 drivers/infiniband/core/sa_query.c mad = query->mad_buf->mad; query 850 drivers/infiniband/core/sa_query.c data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS, query 858 drivers/infiniband/core/sa_query.c ib_nl_set_path_rec_attrs(skb, query); query 866 drivers/infiniband/core/sa_query.c static int ib_nl_make_request(struct ib_sa_query *query, gfp_t gfp_mask) query 872 drivers/infiniband/core/sa_query.c INIT_LIST_HEAD(&query->list); query 873 drivers/infiniband/core/sa_query.c query->seq = (u32)atomic_inc_return(&ib_nl_sa_request_seq); query 878 drivers/infiniband/core/sa_query.c query->timeout = delay + jiffies; query 879 drivers/infiniband/core/sa_query.c list_add_tail(&query->list, &ib_nl_request_list); query 881 drivers/infiniband/core/sa_query.c if (ib_nl_request_list.next == &query->list) query 885 drivers/infiniband/core/sa_query.c ret = ib_nl_send_msg(query, gfp_mask); query 890 drivers/infiniband/core/sa_query.c list_del(&query->list); query 897 drivers/infiniband/core/sa_query.c static int ib_nl_cancel_request(struct ib_sa_query *query) query 906 drivers/infiniband/core/sa_query.c if (query == wait_query) { query 907 drivers/infiniband/core/sa_query.c query->flags |= IB_SA_CANCEL; query 908 drivers/infiniband/core/sa_query.c query->timeout = jiffies; query 909 drivers/infiniband/core/sa_query.c list_move(&query->list, &ib_nl_request_list); query 923 drivers/infiniband/core/sa_query.c static void ib_nl_process_good_resolve_rsp(struct ib_sa_query *query, query 934 drivers/infiniband/core/sa_query.c if (query->callback) { query 937 drivers/infiniband/core/sa_query.c switch (query->path_use) { query 957 drivers/infiniband/core/sa_query.c mad = query->mad_buf->mad; query 967 drivers/infiniband/core/sa_query.c query->callback(query, status, mad); query 970 drivers/infiniband/core/sa_query.c mad_send_wc.send_buf = query->mad_buf; query 972 drivers/infiniband/core/sa_query.c send_handler(query->mad_buf->mad_agent, &mad_send_wc); query 978 drivers/infiniband/core/sa_query.c struct ib_sa_query *query; query 985 drivers/infiniband/core/sa_query.c query = list_entry(ib_nl_request_list.next, query 988 drivers/infiniband/core/sa_query.c if (time_after(query->timeout, jiffies)) { query 989 drivers/infiniband/core/sa_query.c delay = query->timeout - jiffies; query 996 drivers/infiniband/core/sa_query.c list_del(&query->list); query 997 drivers/infiniband/core/sa_query.c ib_sa_disable_local_svc(query); query 999 drivers/infiniband/core/sa_query.c if (ib_sa_query_cancelled(query)) query 1002 drivers/infiniband/core/sa_query.c ret = ib_post_send_mad(query->mad_buf, NULL); query 1004 drivers/infiniband/core/sa_query.c mad_send_wc.send_buf = query->mad_buf; query 1007 drivers/infiniband/core/sa_query.c send_handler(query->port->agent, &mad_send_wc); query 1021 drivers/infiniband/core/sa_query.c struct ib_sa_query *query; query 1051 drivers/infiniband/core/sa_query.c list_for_each_entry(query, &ib_nl_request_list, list) { query 1052 drivers/infiniband/core/sa_query.c if (delta < 0 && abs_delta > query->timeout) query 1053 drivers/infiniband/core/sa_query.c query->timeout = 0; query 1055 drivers/infiniband/core/sa_query.c query->timeout += delta; query 1059 drivers/infiniband/core/sa_query.c delay = query->timeout - jiffies; query 1095 drivers/infiniband/core/sa_query.c struct ib_sa_query *query; query 1106 drivers/infiniband/core/sa_query.c list_for_each_entry(query, &ib_nl_request_list, list) { query 1111 drivers/infiniband/core/sa_query.c if (nlh->nlmsg_seq == query->seq) { query 1112 drivers/infiniband/core/sa_query.c found = !ib_sa_query_cancelled(query); query 1114 drivers/infiniband/core/sa_query.c list_del(&query->list); query 1124 drivers/infiniband/core/sa_query.c send_buf = query->mad_buf; query 1128 drivers/infiniband/core/sa_query.c ib_sa_disable_local_svc(query); query 1129 drivers/infiniband/core/sa_query.c ret = ib_post_send_mad(query->mad_buf, NULL); query 1134 drivers/infiniband/core/sa_query.c send_handler(query->port->agent, &mad_send_wc); query 1138 drivers/infiniband/core/sa_query.c ib_nl_process_good_resolve_rsp(query, nlh); query 1176 drivers/infiniband/core/sa_query.c void ib_sa_cancel_query(int id, struct ib_sa_query *query) query 1183 drivers/infiniband/core/sa_query.c if (xa_load(&queries, id) != query) { query 1187 drivers/infiniband/core/sa_query.c agent = query->port->agent; query 1188 drivers/infiniband/core/sa_query.c mad_buf = query->mad_buf; query 1196 drivers/infiniband/core/sa_query.c if (!ib_nl_cancel_request(query)) query 1295 drivers/infiniband/core/sa_query.c static int alloc_mad(struct ib_sa_query *query, gfp_t gfp_mask) query 1300 drivers/infiniband/core/sa_query.c spin_lock_irqsave(&query->port->ah_lock, flags); query 1301 drivers/infiniband/core/sa_query.c if (!query->port->sm_ah) { query 1302 drivers/infiniband/core/sa_query.c spin_unlock_irqrestore(&query->port->ah_lock, flags); query 1305 drivers/infiniband/core/sa_query.c kref_get(&query->port->sm_ah->ref); query 1306 drivers/infiniband/core/sa_query.c query->sm_ah = query->port->sm_ah; query 1307 drivers/infiniband/core/sa_query.c spin_unlock_irqrestore(&query->port->ah_lock, flags); query 1313 drivers/infiniband/core/sa_query.c if ((rdma_query_ah(query->sm_ah->ah, &ah_attr) < 0) || query 1315 drivers/infiniband/core/sa_query.c kref_put(&query->sm_ah->ref, free_sm_ah); query 1318 drivers/infiniband/core/sa_query.c query->mad_buf = ib_create_send_mad(query->port->agent, 1, query 1319 drivers/infiniband/core/sa_query.c query->sm_ah->pkey_index, query 1322 drivers/infiniband/core/sa_query.c ((query->flags & IB_SA_QUERY_OPA) ? query 1325 drivers/infiniband/core/sa_query.c if (IS_ERR(query->mad_buf)) { query 1326 drivers/infiniband/core/sa_query.c kref_put(&query->sm_ah->ref, free_sm_ah); query 1330 drivers/infiniband/core/sa_query.c query->mad_buf->ah = query->sm_ah->ah; query 1335 drivers/infiniband/core/sa_query.c static void free_mad(struct ib_sa_query *query) query 1337 drivers/infiniband/core/sa_query.c ib_free_send_mad(query->mad_buf); query 1338 drivers/infiniband/core/sa_query.c kref_put(&query->sm_ah->ref, free_sm_ah); query 1341 drivers/infiniband/core/sa_query.c static void init_mad(struct ib_sa_query *query, struct ib_mad_agent *agent) query 1343 drivers/infiniband/core/sa_query.c struct ib_sa_mad *mad = query->mad_buf->mad; query 1348 drivers/infiniband/core/sa_query.c if (query->flags & IB_SA_QUERY_OPA) { query 1362 drivers/infiniband/core/sa_query.c static int send_mad(struct ib_sa_query *query, unsigned long timeout_ms, query 1369 drivers/infiniband/core/sa_query.c ret = __xa_alloc(&queries, &id, query, xa_limit_32b, gfp_mask); query 1374 drivers/infiniband/core/sa_query.c query->mad_buf->timeout_ms = timeout_ms; query 1375 drivers/infiniband/core/sa_query.c query->mad_buf->context[0] = query; query 1376 drivers/infiniband/core/sa_query.c query->id = id; query 1378 drivers/infiniband/core/sa_query.c if ((query->flags & IB_SA_ENABLE_LOCAL_SERVICE) && query 1379 drivers/infiniband/core/sa_query.c (!(query->flags & IB_SA_QUERY_OPA))) { query 1381 drivers/infiniband/core/sa_query.c if (!ib_nl_make_request(query, gfp_mask)) query 1384 drivers/infiniband/core/sa_query.c ib_sa_disable_local_svc(query); query 1387 drivers/infiniband/core/sa_query.c ret = ib_post_send_mad(query->mad_buf, NULL); query 1475 drivers/infiniband/core/sa_query.c struct ib_sa_path_query *query = query 1486 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); query 1494 drivers/infiniband/core/sa_query.c if (query->conv_pr) { query 1499 drivers/infiniband/core/sa_query.c query->callback(status, &opa, query->context); query 1501 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); query 1505 drivers/infiniband/core/sa_query.c query->callback(status, NULL, query->context); query 1510 drivers/infiniband/core/sa_query.c struct ib_sa_path_query *query = query 1513 drivers/infiniband/core/sa_query.c kfree(query->conv_pr); query 1514 drivers/infiniband/core/sa_query.c kfree(query); query 1553 drivers/infiniband/core/sa_query.c struct ib_sa_path_query *query; query 1571 drivers/infiniband/core/sa_query.c query = kzalloc(sizeof(*query), gfp_mask); query 1572 drivers/infiniband/core/sa_query.c if (!query) query 1575 drivers/infiniband/core/sa_query.c query->sa_query.port = port; query 1582 drivers/infiniband/core/sa_query.c query->sa_query.flags |= IB_SA_QUERY_OPA; query 1584 drivers/infiniband/core/sa_query.c query->conv_pr = query 1585 drivers/infiniband/core/sa_query.c kmalloc(sizeof(*query->conv_pr), gfp_mask); query 1586 drivers/infiniband/core/sa_query.c if (!query->conv_pr) { query 1593 drivers/infiniband/core/sa_query.c ret = alloc_mad(&query->sa_query, gfp_mask); query 1598 drivers/infiniband/core/sa_query.c query->sa_query.client = client; query 1599 drivers/infiniband/core/sa_query.c query->callback = callback; query 1600 drivers/infiniband/core/sa_query.c query->context = context; query 1602 drivers/infiniband/core/sa_query.c mad = query->sa_query.mad_buf->mad; query 1603 drivers/infiniband/core/sa_query.c init_mad(&query->sa_query, agent); query 1605 drivers/infiniband/core/sa_query.c query->sa_query.callback = callback ? ib_sa_path_rec_callback : NULL; query 1606 drivers/infiniband/core/sa_query.c query->sa_query.release = ib_sa_path_rec_release; query 1611 drivers/infiniband/core/sa_query.c if (query->sa_query.flags & IB_SA_QUERY_OPA) { query 1614 drivers/infiniband/core/sa_query.c } else if (query->conv_pr) { query 1615 drivers/infiniband/core/sa_query.c sa_convert_path_opa_to_ib(query->conv_pr, rec); query 1617 drivers/infiniband/core/sa_query.c query->conv_pr, mad->data); query 1623 drivers/infiniband/core/sa_query.c *sa_query = &query->sa_query; query 1625 drivers/infiniband/core/sa_query.c query->sa_query.flags |= IB_SA_ENABLE_LOCAL_SERVICE; query 1626 drivers/infiniband/core/sa_query.c query->sa_query.mad_buf->context[1] = (query->conv_pr) ? query 1627 drivers/infiniband/core/sa_query.c query->conv_pr : rec; query 1629 drivers/infiniband/core/sa_query.c ret = send_mad(&query->sa_query, timeout_ms, gfp_mask); query 1637 drivers/infiniband/core/sa_query.c ib_sa_client_put(query->sa_query.client); query 1638 drivers/infiniband/core/sa_query.c free_mad(&query->sa_query); query 1640 drivers/infiniband/core/sa_query.c kfree(query->conv_pr); query 1642 drivers/infiniband/core/sa_query.c kfree(query); query 1651 drivers/infiniband/core/sa_query.c struct ib_sa_service_query *query = query 1659 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); query 1661 drivers/infiniband/core/sa_query.c query->callback(status, NULL, query->context); query 1707 drivers/infiniband/core/sa_query.c struct ib_sa_service_query *query; query 1725 drivers/infiniband/core/sa_query.c query = kzalloc(sizeof(*query), gfp_mask); query 1726 drivers/infiniband/core/sa_query.c if (!query) query 1729 drivers/infiniband/core/sa_query.c query->sa_query.port = port; query 1730 drivers/infiniband/core/sa_query.c ret = alloc_mad(&query->sa_query, gfp_mask); query 1735 drivers/infiniband/core/sa_query.c query->sa_query.client = client; query 1736 drivers/infiniband/core/sa_query.c query->callback = callback; query 1737 drivers/infiniband/core/sa_query.c query->context = context; query 1739 drivers/infiniband/core/sa_query.c mad = query->sa_query.mad_buf->mad; query 1740 drivers/infiniband/core/sa_query.c init_mad(&query->sa_query, agent); query 1742 drivers/infiniband/core/sa_query.c query->sa_query.callback = callback ? ib_sa_service_rec_callback : NULL; query 1743 drivers/infiniband/core/sa_query.c query->sa_query.release = ib_sa_service_rec_release; query 1751 drivers/infiniband/core/sa_query.c *sa_query = &query->sa_query; query 1753 drivers/infiniband/core/sa_query.c ret = send_mad(&query->sa_query, timeout_ms, gfp_mask); query 1761 drivers/infiniband/core/sa_query.c ib_sa_client_put(query->sa_query.client); query 1762 drivers/infiniband/core/sa_query.c free_mad(&query->sa_query); query 1765 drivers/infiniband/core/sa_query.c kfree(query); query 1774 drivers/infiniband/core/sa_query.c struct ib_sa_mcmember_query *query = query 1782 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); query 1784 drivers/infiniband/core/sa_query.c query->callback(status, NULL, query->context); query 1804 drivers/infiniband/core/sa_query.c struct ib_sa_mcmember_query *query; query 1817 drivers/infiniband/core/sa_query.c query = kzalloc(sizeof(*query), gfp_mask); query 1818 drivers/infiniband/core/sa_query.c if (!query) query 1821 drivers/infiniband/core/sa_query.c query->sa_query.port = port; query 1822 drivers/infiniband/core/sa_query.c ret = alloc_mad(&query->sa_query, gfp_mask); query 1827 drivers/infiniband/core/sa_query.c query->sa_query.client = client; query 1828 drivers/infiniband/core/sa_query.c query->callback = callback; query 1829 drivers/infiniband/core/sa_query.c query->context = context; query 1831 drivers/infiniband/core/sa_query.c mad = query->sa_query.mad_buf->mad; query 1832 drivers/infiniband/core/sa_query.c init_mad(&query->sa_query, agent); query 1834 drivers/infiniband/core/sa_query.c query->sa_query.callback = callback ? ib_sa_mcmember_rec_callback : NULL; query 1835 drivers/infiniband/core/sa_query.c query->sa_query.release = ib_sa_mcmember_rec_release; query 1843 drivers/infiniband/core/sa_query.c *sa_query = &query->sa_query; query 1845 drivers/infiniband/core/sa_query.c ret = send_mad(&query->sa_query, timeout_ms, gfp_mask); query 1853 drivers/infiniband/core/sa_query.c ib_sa_client_put(query->sa_query.client); query 1854 drivers/infiniband/core/sa_query.c free_mad(&query->sa_query); query 1857 drivers/infiniband/core/sa_query.c kfree(query); query 1866 drivers/infiniband/core/sa_query.c struct ib_sa_guidinfo_query *query = query 1874 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); query 1876 drivers/infiniband/core/sa_query.c query->callback(status, NULL, query->context); query 1895 drivers/infiniband/core/sa_query.c struct ib_sa_guidinfo_query *query; query 1914 drivers/infiniband/core/sa_query.c query = kzalloc(sizeof(*query), gfp_mask); query 1915 drivers/infiniband/core/sa_query.c if (!query) query 1918 drivers/infiniband/core/sa_query.c query->sa_query.port = port; query 1919 drivers/infiniband/core/sa_query.c ret = alloc_mad(&query->sa_query, gfp_mask); query 1924 drivers/infiniband/core/sa_query.c query->sa_query.client = client; query 1925 drivers/infiniband/core/sa_query.c query->callback = callback; query 1926 drivers/infiniband/core/sa_query.c query->context = context; query 1928 drivers/infiniband/core/sa_query.c mad = query->sa_query.mad_buf->mad; query 1929 drivers/infiniband/core/sa_query.c init_mad(&query->sa_query, agent); query 1931 drivers/infiniband/core/sa_query.c query->sa_query.callback = callback ? ib_sa_guidinfo_rec_callback : NULL; query 1932 drivers/infiniband/core/sa_query.c query->sa_query.release = ib_sa_guidinfo_rec_release; query 1941 drivers/infiniband/core/sa_query.c *sa_query = &query->sa_query; query 1943 drivers/infiniband/core/sa_query.c ret = send_mad(&query->sa_query, timeout_ms, gfp_mask); query 1951 drivers/infiniband/core/sa_query.c ib_sa_client_put(query->sa_query.client); query 1952 drivers/infiniband/core/sa_query.c free_mad(&query->sa_query); query 1955 drivers/infiniband/core/sa_query.c kfree(query); query 2001 drivers/infiniband/core/sa_query.c struct ib_sa_classport_info_query *query = query 2045 drivers/infiniband/core/sa_query.c query->callback(query->context); query 2061 drivers/infiniband/core/sa_query.c struct ib_sa_classport_info_query *query; query 2068 drivers/infiniband/core/sa_query.c query = kzalloc(sizeof(*query), gfp_mask); query 2069 drivers/infiniband/core/sa_query.c if (!query) query 2072 drivers/infiniband/core/sa_query.c query->sa_query.port = port; query 2073 drivers/infiniband/core/sa_query.c query->sa_query.flags |= rdma_cap_opa_ah(port->agent->device, query 2076 drivers/infiniband/core/sa_query.c ret = alloc_mad(&query->sa_query, gfp_mask); query 2080 drivers/infiniband/core/sa_query.c query->callback = callback; query 2081 drivers/infiniband/core/sa_query.c query->context = context; query 2083 drivers/infiniband/core/sa_query.c mad = query->sa_query.mad_buf->mad; query 2084 drivers/infiniband/core/sa_query.c init_mad(&query->sa_query, agent); query 2086 drivers/infiniband/core/sa_query.c query->sa_query.callback = ib_sa_classport_info_rec_callback; query 2087 drivers/infiniband/core/sa_query.c query->sa_query.release = ib_sa_classport_info_rec_release; query 2091 drivers/infiniband/core/sa_query.c *sa_query = &query->sa_query; query 2093 drivers/infiniband/core/sa_query.c ret = send_mad(&query->sa_query, timeout_ms, gfp_mask); query 2101 drivers/infiniband/core/sa_query.c free_mad(&query->sa_query); query 2104 drivers/infiniband/core/sa_query.c kfree(query); query 2164 drivers/infiniband/core/sa_query.c struct ib_sa_query *query = mad_send_wc->send_buf->context[0]; query 2167 drivers/infiniband/core/sa_query.c if (query->callback) query 2173 drivers/infiniband/core/sa_query.c query->callback(query, -ETIMEDOUT, NULL); query 2176 drivers/infiniband/core/sa_query.c query->callback(query, -EINTR, NULL); query 2179 drivers/infiniband/core/sa_query.c query->callback(query, -EIO, NULL); query 2184 drivers/infiniband/core/sa_query.c __xa_erase(&queries, query->id); query 2187 drivers/infiniband/core/sa_query.c free_mad(query); query 2188 drivers/infiniband/core/sa_query.c if (query->client) query 2189 drivers/infiniband/core/sa_query.c ib_sa_client_put(query->client); query 2190 drivers/infiniband/core/sa_query.c query->release(query); query 2197 drivers/infiniband/core/sa_query.c struct ib_sa_query *query; query 2202 drivers/infiniband/core/sa_query.c query = send_buf->context[0]; query 2203 drivers/infiniband/core/sa_query.c if (query->callback) { query 2205 drivers/infiniband/core/sa_query.c query->callback(query, query 2210 drivers/infiniband/core/sa_query.c query->callback(query, -EIO, NULL); query 438 drivers/infiniband/ulp/ipoib/ipoib.h struct ib_sa_query *query; query 727 drivers/infiniband/ulp/ipoib/ipoib_main.c if (path->query) query 728 drivers/infiniband/ulp/ipoib/ipoib_main.c ib_sa_cancel_query(path->query_id, path->query); query 838 drivers/infiniband/ulp/ipoib/ipoib_main.c path->query = NULL; query 917 drivers/infiniband/ulp/ipoib/ipoib_main.c path, &path->query); query 920 drivers/infiniband/ulp/ipoib/ipoib_main.c path->query = NULL; query 940 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path->query) query 1013 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path->query && path_rec_start(dev, path)) query 1067 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path->query && path_rec_start(dev, path)) { query 633 drivers/input/rmi4/rmi_f11.c struct f11_2d_sensor_queries *query = &f11->sens_query; query 637 drivers/input/rmi4/rmi_f11.c sensor->nbr_fingers = (query->nr_fingers == 5 ? 10 : query 638 drivers/input/rmi4/rmi_f11.c query->nr_fingers + 1); query 642 drivers/input/rmi4/rmi_f11.c if (query->has_abs) { query 647 drivers/input/rmi4/rmi_f11.c if (query->has_rel) query 651 drivers/input/rmi4/rmi_f11.c if (query->query7_nonzero) query 655 drivers/input/rmi4/rmi_f11.c if (query->query7_nonzero || query->query8_nonzero) query 658 drivers/input/rmi4/rmi_f11.c if (query->has_pinch || query->has_flick || query->has_rotate) { query 660 drivers/input/rmi4/rmi_f11.c if (!query->has_flick) query 662 drivers/input/rmi4/rmi_f11.c if (!query->has_rotate) query 666 drivers/input/rmi4/rmi_f11.c if (query->has_touch_shapes) query 668 drivers/input/rmi4/rmi_f11.c DIV_ROUND_UP(query->nr_touch_shapes + 1, 8); query 678 drivers/input/rmi4/rmi_f11.c if (query->has_abs) { query 683 drivers/input/rmi4/rmi_f11.c if (query->has_rel) { query 688 drivers/input/rmi4/rmi_f11.c if (query->query7_nonzero) { query 693 drivers/input/rmi4/rmi_f11.c if (query->query7_nonzero || query->query8_nonzero) { query 698 drivers/input/rmi4/rmi_f11.c if (query->has_pinch) { query 703 drivers/input/rmi4/rmi_f11.c if (query->has_flick) { query 704 drivers/input/rmi4/rmi_f11.c if (query->has_pinch) { query 713 drivers/input/rmi4/rmi_f11.c if (query->has_rotate) { query 714 drivers/input/rmi4/rmi_f11.c if (query->has_flick) { query 722 drivers/input/rmi4/rmi_f11.c if (query->has_touch_shapes) query 745 drivers/input/rmi4/rmi_f11.c struct f11_2d_sensor_queries *query, query 188 drivers/input/touchscreen/wacom_w8001.c static void parse_touchquery(u8 *data, struct w8001_touch_query *query) query 190 drivers/input/touchscreen/wacom_w8001.c memset(query, 0, sizeof(*query)); query 192 drivers/input/touchscreen/wacom_w8001.c query->panel_res = data[1]; query 193 drivers/input/touchscreen/wacom_w8001.c query->sensor_id = data[2] & 0x7; query 194 drivers/input/touchscreen/wacom_w8001.c query->capacity_res = data[7]; query 196 drivers/input/touchscreen/wacom_w8001.c query->x = data[3] << 9; query 197 drivers/input/touchscreen/wacom_w8001.c query->x |= data[4] << 2; query 198 drivers/input/touchscreen/wacom_w8001.c query->x |= (data[2] >> 5) & 0x3; query 200 drivers/input/touchscreen/wacom_w8001.c query->y = data[5] << 9; query 201 drivers/input/touchscreen/wacom_w8001.c query->y |= data[6] << 2; query 202 drivers/input/touchscreen/wacom_w8001.c query->y |= (data[2] >> 3) & 0x3; query 205 drivers/input/touchscreen/wacom_w8001.c if (!query->x && !query->y) { query 206 drivers/input/touchscreen/wacom_w8001.c query->x = 1024; query 207 drivers/input/touchscreen/wacom_w8001.c query->y = 1024; query 208 drivers/input/touchscreen/wacom_w8001.c if (query->panel_res) query 209 drivers/input/touchscreen/wacom_w8001.c query->x = query->y = (1 << query->panel_res); query 210 drivers/input/touchscreen/wacom_w8001.c query->panel_res = W8001_TOUCH_RESOLUTION; query 398 drivers/media/pci/bt8xx/dst_ca.c static int ca_set_pmt(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u8 reply, u8 query) query 296 drivers/media/rc/bpf-lirc.c __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); query 302 drivers/media/rc/bpf-lirc.c if (attr->query.query_flags) query 305 drivers/media/rc/bpf-lirc.c rcdev = rc_dev_get_from_fd(attr->query.target_fd); query 321 drivers/media/rc/bpf-lirc.c if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { query 326 drivers/media/rc/bpf-lirc.c if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { query 331 drivers/media/rc/bpf-lirc.c if (attr->query.prog_cnt != 0 && prog_ids && cnt) query 1285 drivers/media/usb/dvb-usb-v2/af9015.c rc->query = af9015_rc_query; query 1885 drivers/media/usb/dvb-usb-v2/af9035.c rc->query = af9035_rc_query; query 1146 drivers/media/usb/dvb-usb-v2/anysee.c rc->query = anysee_rc_query; query 238 drivers/media/usb/dvb-usb-v2/az6007.c rc->query = az6007_rc_query; query 129 drivers/media/usb/dvb-usb-v2/dvb_usb.h int (*query) (struct dvb_usb_device *d); query 107 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c ret = d->rc.query(d); query 164 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c if (d->rc.query && !d->rc.bulk_mode) { query 207 drivers/media/usb/dvb-usb-v2/dvbsky.c rc->query = dvbsky_rc_query; query 1701 drivers/media/usb/dvb-usb-v2/rtl28xxu.c rc->query = rtl2831u_rc_query; query 1805 drivers/media/usb/dvb-usb-v2/rtl28xxu.c rc->query = rtl2832u_rc_query; query 366 drivers/media/usb/uvc/uvc_ctrl.c u8 query, const u8 *data) query 370 drivers/media/usb/uvc/uvc_ctrl.c switch (query) { query 391 drivers/media/usb/uvc/uvc_ctrl.c u8 query, const u8 *data) query 396 drivers/media/usb/uvc/uvc_ctrl.c switch (query) { query 765 drivers/media/usb/uvc/uvc_ctrl.c u8 query, const u8 *data) query 1894 drivers/media/usb/uvc/uvc_ctrl.c switch (xqry->query) { query 1940 drivers/media/usb/uvc/uvc_ctrl.c if (xqry->query == UVC_SET_CUR && query 1946 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, xqry->query, xqry->unit, query 1951 drivers/media/usb/uvc/uvc_ctrl.c if (xqry->query != UVC_SET_CUR && query 1348 drivers/media/usb/uvc/uvc_v4l2.c u8 query; query 1364 drivers/media/usb/uvc/uvc_v4l2.c .query = v.query, query 28 drivers/media/usb/uvc/uvc_video.c static int __uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, query 35 drivers/media/usb/uvc/uvc_video.c pipe = (query & 0x80) ? usb_rcvctrlpipe(dev->udev, 0) query 37 drivers/media/usb/uvc/uvc_video.c type |= (query & 0x80) ? USB_DIR_IN : USB_DIR_OUT; query 39 drivers/media/usb/uvc/uvc_video.c return usb_control_msg(dev->udev, pipe, query, type, cs << 8, query 43 drivers/media/usb/uvc/uvc_video.c static const char *uvc_query_name(u8 query) query 45 drivers/media/usb/uvc/uvc_video.c switch (query) { query 67 drivers/media/usb/uvc/uvc_video.c int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, query 74 drivers/media/usb/uvc/uvc_video.c ret = __uvc_query_ctrl(dev, query, unit, intfnum, cs, data, size, query 81 drivers/media/usb/uvc/uvc_video.c uvc_query_name(query), cs, unit, ret, size); query 216 drivers/media/usb/uvc/uvc_video.c struct uvc_streaming_control *ctrl, int probe, u8 query) query 223 drivers/media/usb/uvc/uvc_video.c query == UVC_GET_DEF) query 230 drivers/media/usb/uvc/uvc_video.c ret = __uvc_query_ctrl(stream->dev, query, 0, stream->intfnum, query 234 drivers/media/usb/uvc/uvc_video.c if ((query == UVC_GET_MIN || query == UVC_GET_MAX) && ret == 2) { query 246 drivers/media/usb/uvc/uvc_video.c } else if (query == UVC_GET_DEF && probe == 1 && ret != size) { query 258 drivers/media/usb/uvc/uvc_video.c "%d (exp. %u).\n", query, probe ? "probe" : "commit", query 248 drivers/media/usb/uvc/uvcvideo.h s32 (*get)(struct uvc_control_mapping *mapping, u8 query, query 800 drivers/media/usb/uvc/uvcvideo.h int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, query 219 drivers/mtd/nftlmount.c The new DiskOnChip driver already scanned the bad block table. Just query it. query 1259 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h struct stats_query_entry query[FP_SB_MAX_E1x+ query 5876 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h struct stats_query_entry query[STATS_QUERY_CMD_COUNT]; query 1666 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exeq_elem query, *pos; query 1670 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memcpy(&query, elem, sizeof(query)); query 1674 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c query.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_DEL; query 1677 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c query.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_ADD; query 1685 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c pos = exeq->get(exeq, &query); query 1691 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if ((query.cmd_data.vlan_mac.cmd == query 1907 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c query[first_queue_query_index + num_queues_req]; query 111 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c i, bp->fw_stats_req->query[i].kind, query 112 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c bp->fw_stats_req->query[i].index, query 113 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c bp->fw_stats_req->query[i].funcID, query 114 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c bp->fw_stats_req->query[i].reserved, query 115 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c bp->fw_stats_req->query[i].address.hi, query 116 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c bp->fw_stats_req->query[i].address.lo); query 1470 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c cur_query_entry = &bp->fw_stats_req->query[BNX2X_PORT_QUERY_IDX]; query 1484 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c cur_query_entry = &bp->fw_stats_req->query[BNX2X_PF_QUERY_IDX]; query 1499 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c &bp->fw_stats_req->query[BNX2X_FCOE_QUERY_IDX]; query 1526 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c query[first_queue_query_index + i]; query 1543 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c query[first_queue_query_index + i]; query 3122 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfi_flash_query_rsp *query; query 3136 drivers/net/ethernet/brocade/bna/bfa_ioc.c status = be32_to_cpu(m.query->status); query 4434 drivers/net/ethernet/emulex/benet/be_cmds.c u8 profile_type, u8 query, u8 domain) query 4468 drivers/net/ethernet/emulex/benet/be_cmds.c if (query == RESOURCE_MODIFIABLE) query 2498 drivers/net/ethernet/emulex/benet/be_cmds.h u8 profile_type, u8 query, u8 domain); query 126 drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query) query 137 drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c query->status = MLX5_GET(fpga_ctrl, out, status); query 138 drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c query->admin_image = MLX5_GET(fpga_ctrl, out, flash_select_admin); query 139 drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c query->oper_image = MLX5_GET(fpga_ctrl, out, flash_select_oper); query 76 drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.h int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query); query 101 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c struct mlx5_fpga_query query; query 104 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c err = mlx5_fpga_query(fdev->mdev, &query); query 110 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c fdev->last_admin_image = query.admin_image; query 111 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c fdev->last_oper_image = query.oper_image; query 114 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c query.status, query.admin_image, query.oper_image); query 116 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c if (query.status != MLX5_FPGA_STATUS_SUCCESS) { query 119 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c query.status); query 503 drivers/net/hyperv/rndis_filter.c struct rndis_query_request *query; query 519 drivers/net/hyperv/rndis_filter.c query = &request->request_msg.msg.query_req; query 520 drivers/net/hyperv/rndis_filter.c query->oid = oid; query 521 drivers/net/hyperv/rndis_filter.c query->info_buf_offset = sizeof(struct rndis_query_request); query 522 drivers/net/hyperv/rndis_filter.c query->info_buflen = 0; query 523 drivers/net/hyperv/rndis_filter.c query->dev_vc_handle = 0; query 543 drivers/net/hyperv/rndis_filter.c query->info_buflen = size; query 545 drivers/net/hyperv/rndis_filter.c ((unsigned long)query + query->info_buf_offset); query 556 drivers/net/hyperv/rndis_filter.c query->info_buflen = sizeof(struct ndis_recv_scale_cap); query 557 drivers/net/hyperv/rndis_filter.c cap = (struct ndis_recv_scale_cap *)((unsigned long)query + query 558 drivers/net/hyperv/rndis_filter.c query->info_buf_offset); query 1701 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct iwl_scan_offload_profiles_query *query; query 1733 drivers/net/wireless/intel/iwlwifi/mvm/d3.c query = (void *)cmd.resp_pkt->data; query 1735 drivers/net/wireless/intel/iwlwifi/mvm/d3.c results->matched_profiles = le32_to_cpu(query->matched_profiles); query 1736 drivers/net/wireless/intel/iwlwifi/mvm/d3.c memcpy(results->matches, query->matches, matches_len); query 1739 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->last_netdetect_scans = le32_to_cpu(query->n_scans_done); query 1748 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct iwl_mvm_nd_query_results *query, query 1756 drivers/net/wireless/intel/iwlwifi/mvm/d3.c (struct iwl_scan_offload_profile_match *)query->matches; query 1762 drivers/net/wireless/intel/iwlwifi/mvm/d3.c (struct iwl_scan_offload_profile_match_v1 *)query->matches; query 1772 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct iwl_mvm_nd_query_results *query, query 1781 drivers/net/wireless/intel/iwlwifi/mvm/d3.c (struct iwl_scan_offload_profile_match *)query->matches; query 1789 drivers/net/wireless/intel/iwlwifi/mvm/d3.c (struct iwl_scan_offload_profile_match_v1 *)query->matches; query 1806 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct iwl_mvm_nd_query_results query; query 1824 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_mvm_netdetect_query_results(mvm, &query); query 1825 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (ret || !query.matched_profiles) { query 1830 drivers/net/wireless/intel/iwlwifi/mvm/d3.c matched_profiles = query.matched_profiles; query 1847 drivers/net/wireless/intel/iwlwifi/mvm/d3.c n_channels = iwl_mvm_query_num_match_chans(mvm, &query, i); query 1867 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_query_set_freqs(mvm, &query, match, i); query 1004 drivers/platform/x86/asus-wmi.c .query = asus_rfkill_query, query 1009 drivers/platform/x86/asus-wmi.c .query = asus_rfkill_query, query 920 drivers/platform/x86/classmate-laptop.c .query = cmpc_rfkill_query, query 566 drivers/platform/x86/dell-laptop.c .query = dell_rfkill_query, query 108 drivers/platform/x86/dell-rbtn.c .query = rbtn_rfkill_query, query 207 drivers/platform/x86/hp-wmi.c static int hp_wmi_perform_query(int query, enum hp_wmi_command command, query 217 drivers/platform/x86/hp-wmi.c .commandtype = query, query 250 drivers/platform/x86/hp-wmi.c pr_warn("query 0x%x returned error 0x%x\n", query, ret); query 267 drivers/platform/x86/hp-wmi.c static int hp_wmi_read_int(int query) query 271 drivers/platform/x86/hp-wmi.c ret = hp_wmi_perform_query(query, HPWMI_READ, &val, query 324 drivers/platform/x86/hp-wmi.c int query = BIT(r + 8) | ((!blocked) << r); query 328 drivers/platform/x86/hp-wmi.c &query, sizeof(query), 0); query 652 drivers/platform/x86/samsung-laptop.c .query = swsmi_rfkill_query, query 77 drivers/s390/net/qeth_l3_main.c struct qeth_ipaddr *query) query 79 drivers/s390/net/qeth_l3_main.c u64 key = qeth_l3_ipaddr_hash(query); query 82 drivers/s390/net/qeth_l3_main.c if (query->is_multicast) { query 84 drivers/s390/net/qeth_l3_main.c if (qeth_l3_addr_match_ip(addr, query)) query 88 drivers/s390/net/qeth_l3_main.c if (qeth_l3_addr_match_ip(addr, query)) query 4349 drivers/scsi/bfa/bfa_ioc.c struct bfi_flash_query_rsp_s *query; query 4368 drivers/scsi/bfa/bfa_ioc.c status = be32_to_cpu(m.query->status); query 5710 drivers/scsi/bfa/bfa_ioc.c struct bfi_phy_query_rsp_s *query; query 5728 drivers/scsi/bfa/bfa_ioc.c status = be32_to_cpu(m.query->status); query 2400 drivers/scsi/qla2xxx/qla_def.h unsigned int query:1; query 1893 drivers/scsi/qla2xxx/qla_mbx.c fcport->query = 0; query 1954 drivers/scsi/qla2xxx/qla_mbx.c if (!fcport->query) query 2034 drivers/scsi/qla2xxx/qla_mbx.c fcport->query = 0; query 1922 drivers/scsi/ufs/ufshcd.c struct ufs_query_res *query_res = &hba->dev_cmd.query.response; query 1927 drivers/scsi/ufs/ufshcd.c if (hba->dev_cmd.query.descriptor && query 1938 drivers/scsi/ufs/ufshcd.c hba->dev_cmd.query.request.upiu_req.length); query 1940 drivers/scsi/ufs/ufshcd.c memcpy(hba->dev_cmd.query.descriptor, descp, resp_len); query 2278 drivers/scsi/ufs/ufshcd.c struct ufs_query *query = &hba->dev_cmd.query; query 2279 drivers/scsi/ufs/ufshcd.c u16 len = be16_to_cpu(query->request.upiu_req.length); query 2286 drivers/scsi/ufs/ufshcd.c 0, query->request.query_func, 0, 0); query 2289 drivers/scsi/ufs/ufshcd.c if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) query 2296 drivers/scsi/ufs/ufshcd.c memcpy(&ucd_req_ptr->qr, &query->request.upiu_req, query 2300 drivers/scsi/ufs/ufshcd.c if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) query 2301 drivers/scsi/ufs/ufshcd.c memcpy(ucd_req_ptr + 1, query->descriptor, len); query 2542 drivers/scsi/ufs/ufshcd.c struct ufs_query_res *query_res = &hba->dev_cmd.query.response; query 2740 drivers/scsi/ufs/ufshcd.c *request = &hba->dev_cmd.query.request; query 2741 drivers/scsi/ufs/ufshcd.c *response = &hba->dev_cmd.query.response; query 2969 drivers/scsi/ufs/ufshcd.c hba->dev_cmd.query.descriptor = desc_buf; query 2998 drivers/scsi/ufs/ufshcd.c hba->dev_cmd.query.descriptor = NULL; query 223 drivers/scsi/ufs/ufshcd.h struct ufs_query query; query 142 drivers/soc/qcom/cmd-db.c u8 query[8]; query 149 drivers/soc/qcom/cmd-db.c strncpy(query, id, sizeof(query)); query 158 drivers/soc/qcom/cmd-db.c if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { query 413 drivers/staging/android/ion/ion.c static int ion_query_heaps(struct ion_heap_query *query) query 416 drivers/staging/android/ion/ion.c struct ion_heap_data __user *buffer = u64_to_user_ptr(query->heaps); query 425 drivers/staging/android/ion/ion.c query->cnt = dev->heap_cnt; query 430 drivers/staging/android/ion/ion.c if (query->cnt <= 0) query 433 drivers/staging/android/ion/ion.c max_cnt = query->cnt; query 451 drivers/staging/android/ion/ion.c query->cnt = cnt; query 460 drivers/staging/android/ion/ion.c struct ion_heap_query query; query 467 drivers/staging/android/ion/ion.c if (arg->query.reserved0 || query 468 drivers/staging/android/ion/ion.c arg->query.reserved1 || query 469 drivers/staging/android/ion/ion.c arg->query.reserved2) query 520 drivers/staging/android/ion/ion.c ret = ion_query_heaps(&data.query); query 307 drivers/tty/hvc/hvsi.c struct hvsi_query *query = (struct hvsi_query *)packet; query 311 drivers/tty/hvc/hvsi.c hvsi_version_respond(hp, be16_to_cpu(query->hdr.seqno)); query 704 drivers/xen/grant-table.c struct gnttab_query_size query; query 707 drivers/xen/grant-table.c query.dom = DOMID_SELF; query 709 drivers/xen/grant-table.c rc = HYPERVISOR_grant_table_op(GNTTABOP_query_size, &query, 1); query 710 drivers/xen/grant-table.c if ((rc < 0) || (query.status != GNTST_okay)) query 713 drivers/xen/grant-table.c return query.max_nr_frames; query 637 fs/nfsd/vfs.c u32 query, result = 0, sresult = 0; query 655 fs/nfsd/vfs.c query = *access; query 657 fs/nfsd/vfs.c if (map->access & query) { query 794 fs/ocfs2/dlm/dlmdomain.c struct dlm_query_join_request *query; query 802 fs/ocfs2/dlm/dlmdomain.c query = (struct dlm_query_join_request *) msg->buf; query 804 fs/ocfs2/dlm/dlmdomain.c mlog(0, "node %u wants to join domain %s\n", query->node_idx, query 805 fs/ocfs2/dlm/dlmdomain.c query->domain); query 812 fs/ocfs2/dlm/dlmdomain.c if (!o2hb_check_node_heartbeating_no_sem(query->node_idx)) { query 814 fs/ocfs2/dlm/dlmdomain.c query->node_idx); query 823 fs/ocfs2/dlm/dlmdomain.c dlm = __dlm_lookup_domain_full(query->domain, query->name_len); query 835 fs/ocfs2/dlm/dlmdomain.c if (!byte_test_bit(nodenum, query->node_map)) { query 838 fs/ocfs2/dlm/dlmdomain.c query->node_idx, nodenum); query 851 fs/ocfs2/dlm/dlmdomain.c int bit = query->node_idx; query 885 fs/ocfs2/dlm/dlmdomain.c &query->dlm_proto)) { query 889 fs/ocfs2/dlm/dlmdomain.c &query->fs_proto)) { query 892 fs/ocfs2/dlm/dlmdomain.c packet.dlm_minor = query->dlm_proto.pv_minor; query 893 fs/ocfs2/dlm/dlmdomain.c packet.fs_minor = query->fs_proto.pv_minor; query 895 fs/ocfs2/dlm/dlmdomain.c __dlm_set_joining_node(dlm, query->node_idx); query 3074 fs/xfs/libxfs/xfs_alloc.c struct xfs_alloc_query_range_info *query = priv; query 3079 fs/xfs/libxfs/xfs_alloc.c return query->fn(cur, &irec, query->priv); query 3093 fs/xfs/libxfs/xfs_alloc.c struct xfs_alloc_query_range_info query; query 3098 fs/xfs/libxfs/xfs_alloc.c query.priv = priv; query 3099 fs/xfs/libxfs/xfs_alloc.c query.fn = fn; query 3101 fs/xfs/libxfs/xfs_alloc.c xfs_alloc_query_range_helper, &query); query 3111 fs/xfs/libxfs/xfs_alloc.c struct xfs_alloc_query_range_info query; query 3114 fs/xfs/libxfs/xfs_alloc.c query.priv = priv; query 3115 fs/xfs/libxfs/xfs_alloc.c query.fn = fn; query 3116 fs/xfs/libxfs/xfs_alloc.c return xfs_btree_query_all(cur, xfs_alloc_query_range_helper, &query); query 2082 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_query_range_info *query = priv; query 2089 fs/xfs/libxfs/xfs_rmap.c return query->fn(cur, &irec, query->priv); query 2103 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_query_range_info query; query 2107 fs/xfs/libxfs/xfs_rmap.c query.priv = priv; query 2108 fs/xfs/libxfs/xfs_rmap.c query.fn = fn; query 2110 fs/xfs/libxfs/xfs_rmap.c xfs_rmap_query_range_helper, &query); query 2120 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_query_range_info query; query 2122 fs/xfs/libxfs/xfs_rmap.c query.priv = priv; query 2123 fs/xfs/libxfs/xfs_rmap.c query.fn = fn; query 2124 fs/xfs/libxfs/xfs_rmap.c return xfs_btree_query_all(cur, xfs_rmap_query_range_helper, &query); query 35 include/keys/asymmetric-subtype.h int (*query)(const struct kernel_pkey_params *params, query 86 include/linux/arm_sdei.h int sdei_api_event_context(u32 query, u64 *result); query 63 include/linux/rfkill.h void (*query)(struct rfkill *rfkill, void *data); query 450 include/rdma/ib_sa.h void ib_sa_cancel_query(int id, struct ib_sa_query *query); query 458 include/rdma/ib_sa.h void *context, struct ib_sa_query **query); query 818 include/uapi/drm/amdgpu_drm.h __u32 query; query 483 include/uapi/linux/bpf.h } query; query 64 include/uapi/linux/uvcvideo.h __u8 query; /* Video Class-Specific Request Code, */ query 504 kernel/bpf/cgroup.c __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); query 505 kernel/bpf/cgroup.c enum bpf_attach_type type = attr->query.attach_type; query 514 kernel/bpf/cgroup.c if (attr->query.query_flags & BPF_F_QUERY_EFFECTIVE) query 519 kernel/bpf/cgroup.c if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) query 521 kernel/bpf/cgroup.c if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) query 523 kernel/bpf/cgroup.c if (attr->query.prog_cnt == 0 || !prog_ids || !cnt) query 526 kernel/bpf/cgroup.c if (attr->query.prog_cnt < cnt) { query 527 kernel/bpf/cgroup.c cnt = attr->query.prog_cnt; query 531 kernel/bpf/cgroup.c if (attr->query.query_flags & BPF_F_QUERY_EFFECTIVE) { query 593 kernel/bpf/cgroup.c cgrp = cgroup_get_from_fd(attr->query.target_fd); query 2053 kernel/bpf/syscall.c #define BPF_PROG_QUERY_LAST_FIELD query.prog_cnt query 2062 kernel/bpf/syscall.c if (attr->query.query_flags & ~BPF_F_QUERY_EFFECTIVE) query 2065 kernel/bpf/syscall.c switch (attr->query.attach_type) { query 1268 kernel/trace/bpf_trace.c struct perf_event_query_bpf query = {}; query 1277 kernel/trace/bpf_trace.c if (copy_from_user(&query, uquery, sizeof(query))) query 1280 kernel/trace/bpf_trace.c ids_len = query.ids_len; query 114 lib/dynamic_debug.c static void vpr_info_dq(const struct ddebug_query *query, const char *msg) query 119 lib/dynamic_debug.c if (query->format) { query 120 lib/dynamic_debug.c fmtlen = strlen(query->format); query 121 lib/dynamic_debug.c while (fmtlen && query->format[fmtlen - 1] == '\n') query 127 lib/dynamic_debug.c query->function ? query->function : "", query 128 lib/dynamic_debug.c query->filename ? query->filename : "", query 129 lib/dynamic_debug.c query->module ? query->module : "", query 130 lib/dynamic_debug.c fmtlen, query->format ? query->format : "", query 131 lib/dynamic_debug.c query->first_lineno, query->last_lineno); query 140 lib/dynamic_debug.c static int ddebug_change(const struct ddebug_query *query, query 154 lib/dynamic_debug.c if (query->module && query 155 lib/dynamic_debug.c !match_wildcard(query->module, dt->mod_name)) query 162 lib/dynamic_debug.c if (query->filename && query 163 lib/dynamic_debug.c !match_wildcard(query->filename, dp->filename) && query 164 lib/dynamic_debug.c !match_wildcard(query->filename, query 166 lib/dynamic_debug.c !match_wildcard(query->filename, query 171 lib/dynamic_debug.c if (query->function && query 172 lib/dynamic_debug.c !match_wildcard(query->function, dp->function)) query 176 lib/dynamic_debug.c if (query->format && query 177 lib/dynamic_debug.c !strstr(dp->format, query->format)) query 181 lib/dynamic_debug.c if (query->first_lineno && query 182 lib/dynamic_debug.c dp->lineno < query->first_lineno) query 184 lib/dynamic_debug.c if (query->last_lineno && query 185 lib/dynamic_debug.c dp->lineno > query->last_lineno) query 321 lib/dynamic_debug.c struct ddebug_query *query, const char *modname) query 331 lib/dynamic_debug.c memset(query, 0, sizeof(*query)); query 335 lib/dynamic_debug.c query->module = modname; query 339 lib/dynamic_debug.c rc = check_set(&query->function, words[i+1], "func"); query 341 lib/dynamic_debug.c rc = check_set(&query->filename, words[i+1], "file"); query 343 lib/dynamic_debug.c rc = check_set(&query->module, words[i+1], "module"); query 348 lib/dynamic_debug.c rc = check_set(&query->format, words[i+1], "format"); query 352 lib/dynamic_debug.c if (query->first_lineno || query->last_lineno) { query 358 lib/dynamic_debug.c if (parse_lineno(first, &query->first_lineno) < 0) query 362 lib/dynamic_debug.c if (parse_lineno(last, &query->last_lineno) < 0) query 366 lib/dynamic_debug.c if (query->last_lineno == 0) query 367 lib/dynamic_debug.c query->last_lineno = UINT_MAX; query 369 lib/dynamic_debug.c if (query->last_lineno < query->first_lineno) { query 371 lib/dynamic_debug.c query->last_lineno, query 372 lib/dynamic_debug.c query->first_lineno); query 376 lib/dynamic_debug.c query->last_lineno = query->first_lineno; query 385 lib/dynamic_debug.c vpr_info_dq(query, "parsed"); query 449 lib/dynamic_debug.c struct ddebug_query query; query 464 lib/dynamic_debug.c if (ddebug_parse_query(words, nwords-1, &query, modname)) { query 469 lib/dynamic_debug.c nfound = ddebug_change(&query, flags, mask); query 470 lib/dynamic_debug.c vpr_info_dq(&query, nfound ? "applied" : "no-match"); query 479 lib/dynamic_debug.c static int ddebug_exec_queries(char *query, const char *modname) query 484 lib/dynamic_debug.c for (i = 0; query; query = split) { query 485 lib/dynamic_debug.c split = strpbrk(query, ";\n"); query 489 lib/dynamic_debug.c query = skip_spaces(query); query 490 lib/dynamic_debug.c if (!query || !*query || *query == '#') query 493 lib/dynamic_debug.c vpr_info("query %d: \"%s\"\n", i, query); query 495 lib/dynamic_debug.c rc = ddebug_exec_query(query, modname); query 45 net/bridge/br_multicast.c struct bridge_mcast_own_query *query); query 672 net/bridge/br_multicast.c struct bridge_mcast_own_query *query) query 678 net/bridge/br_multicast.c br_multicast_start_querier(br, query); query 778 net/bridge/br_multicast.c struct bridge_mcast_own_query *query) query 787 net/bridge/br_multicast.c if (query->startup_sent < br->multicast_startup_query_count) query 788 net/bridge/br_multicast.c query->startup_sent++; query 790 net/bridge/br_multicast.c br_multicast_send_query(port->br, port, query); query 861 net/bridge/br_multicast.c static void br_multicast_enable(struct bridge_mcast_own_query *query) query 863 net/bridge/br_multicast.c query->startup_sent = 0; query 865 net/bridge/br_multicast.c if (try_to_del_timer_sync(&query->timer) >= 0 || query 866 net/bridge/br_multicast.c del_timer(&query->timer)) query 867 net/bridge/br_multicast.c mod_timer(&query->timer, jiffies); query 1127 net/bridge/br_multicast.c struct bridge_mcast_other_query *query, query 1130 net/bridge/br_multicast.c if (!timer_pending(&query->timer)) query 1131 net/bridge/br_multicast.c query->delay_time = jiffies + max_delay; query 1133 net/bridge/br_multicast.c mod_timer(&query->timer, jiffies + br->multicast_querier_interval); query 1204 net/bridge/br_multicast.c struct bridge_mcast_other_query *query, query 1211 net/bridge/br_multicast.c br_multicast_update_query_timer(br, query, max_delay); query 1756 net/bridge/br_multicast.c struct bridge_mcast_own_query *query, query 1760 net/bridge/br_multicast.c if (query->startup_sent < br->multicast_startup_query_count) query 1761 net/bridge/br_multicast.c query->startup_sent++; query 1764 net/bridge/br_multicast.c br_multicast_send_query(br, NULL, query); query 1889 net/bridge/br_multicast.c struct bridge_mcast_own_query *query) query 1891 net/bridge/br_multicast.c query->startup_sent = 0; query 1896 net/bridge/br_multicast.c mod_timer(&query->timer, jiffies); query 2027 net/bridge/br_multicast.c struct bridge_mcast_own_query *query) query 2031 net/bridge/br_multicast.c __br_multicast_open(br, query); query 2039 net/bridge/br_multicast.c if (query == &br->ip4_own_query) query 8385 net/core/dev.c enum bpf_netdev_command query; query 8394 net/core/dev.c query = offload ? XDP_QUERY_PROG_HW : XDP_QUERY_PROG; query 8414 net/core/dev.c prog_id = __dev_xdp_query(dev, bpf_op, query); query 8437 net/core/dev.c if (!__dev_xdp_query(dev, bpf_op, query)) query 76 net/core/flow_dissector.c __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); query 81 net/core/flow_dissector.c if (attr->query.query_flags) query 84 net/core/flow_dissector.c net = get_net_ns_by_fd(attr->query.target_fd); query 98 net/core/flow_dissector.c if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) query 100 net/core/flow_dissector.c if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) query 103 net/core/flow_dissector.c if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) query 322 net/rfkill/core.c if (rfkill->ops->query) query 323 net/rfkill/core.c rfkill->ops->query(rfkill, rfkill->data); query 661 security/apparmor/apparmorfs.c char *query, size_t query_len) query 675 security/apparmor/apparmorfs.c key = query + strnlen(query, query_len) + 1; query 676 security/apparmor/apparmorfs.c if (key + 1 >= query + query_len) query 678 security/apparmor/apparmorfs.c if (key + strnlen(key, query + query_len - key) >= query + query_len) query 685 security/apparmor/apparmorfs.c label = aa_label_parse(curr, query, GFP_KERNEL, false, false); query 754 security/apparmor/apparmorfs.c char *query, size_t query_len, bool view_only) query 766 security/apparmor/apparmorfs.c label_name = query; query 767 security/apparmor/apparmorfs.c label_name_len = strnlen(query, query_len); query 1954 security/tomoyo/common.c char *query; query 2097 security/tomoyo/common.c entry.query = tomoyo_init_log(r, len, fmt, args); query 2099 security/tomoyo/common.c if (!entry.query) query 2101 security/tomoyo/common.c entry.query_len = strlen(entry.query) + 1; query 2103 security/tomoyo/common.c tomoyo_add_entry(r->domain, entry.query); query 2149 security/tomoyo/common.c kfree(entry.query); query 2243 security/tomoyo/common.c ptr->retry, ptr->query); query 483 tools/include/uapi/linux/bpf.h } query; query 506 tools/lib/bpf/bpf.c attr.query.target_fd = target_fd; query 507 tools/lib/bpf/bpf.c attr.query.attach_type = type; query 508 tools/lib/bpf/bpf.c attr.query.query_flags = query_flags; query 509 tools/lib/bpf/bpf.c attr.query.prog_cnt = *prog_cnt; query 510 tools/lib/bpf/bpf.c attr.query.prog_ids = ptr_to_u64(prog_ids); query 514 tools/lib/bpf/bpf.c *attach_flags = attr.query.attach_flags; query 515 tools/lib/bpf/bpf.c *prog_cnt = attr.query.prog_cnt; query 53 tools/testing/selftests/android/ion/ionutils.c struct ion_heap_query query; query 69 tools/testing/selftests/android/ion/ionutils.c memset(&query, 0, sizeof(query)); query 70 tools/testing/selftests/android/ion/ionutils.c query.cnt = MAX_HEAP_COUNT; query 71 tools/testing/selftests/android/ion/ionutils.c query.heaps = (unsigned long int)&heap_data[0]; query 73 tools/testing/selftests/android/ion/ionutils.c ret = ioctl(ionfd, ION_IOC_HEAP_QUERY, &query); query 81 tools/testing/selftests/android/ion/ionutils.c for (i = 0; i < query.cnt; i++) { query 10 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c struct perf_event_query_bpf *query; query 36 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); query 67 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c query->ids_len = num_progs; query 68 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); query 69 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(err || query->prog_cnt != 0, query 72 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) query 83 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c query->ids_len = 0; query 84 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); query 85 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(err || query->prog_cnt != 2, query 88 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) query 101 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c query->ids_len = 1; query 102 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); query 103 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(!err || errno != ENOSPC || query->prog_cnt != 2, query 106 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) query 110 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c query->ids_len = num_progs; query 111 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); query 112 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(err || query->prog_cnt != (i + 1), query 115 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c err, errno, query->prog_cnt)) query 118 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(saved_prog_ids[j] != query->ids[j], query 121 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c j, saved_prog_ids[j], query->ids[j])) query 134 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c free(query);