| /linux-6.15/drivers/i2c/busses/ |
| H A D | i2c-virtio.c | 58 struct virtio_i2c_req *reqs, in virtio_i2c_prepare_reqs() argument 67 init_completion(&reqs[i].completion); in virtio_i2c_prepare_reqs() 81 sg_init_one(&out_hdr, &reqs[i].out_hdr, sizeof(reqs[i].out_hdr)); in virtio_i2c_prepare_reqs() 86 if (!reqs[i].buf) in virtio_i2c_prepare_reqs() 97 sg_init_one(&in_hdr, &reqs[i].in_hdr, sizeof(reqs[i].in_hdr)); in virtio_i2c_prepare_reqs() 110 struct virtio_i2c_req *reqs, in virtio_i2c_complete_reqs() argument 117 struct virtio_i2c_req *req = &reqs[i]; in virtio_i2c_complete_reqs() 138 struct virtio_i2c_req *reqs; in virtio_i2c_xfer() local 141 reqs = kcalloc(num, sizeof(*reqs), GFP_KERNEL); in virtio_i2c_xfer() 142 if (!reqs) in virtio_i2c_xfer() [all …]
|
| /linux-6.15/drivers/virt/acrn/ |
| H A D | ioreq.c | 283 (req->reqs.pio_request.address == 0xcf8)); in is_cfg_addr() 289 ((req->reqs.pio_request.address >= 0xcfc) && in is_cfg_data() 319 WARN_ON(req->reqs.pio_request.size != 4); in handle_cf8cfc() 327 if (req->reqs.pio_request.direction == in handle_cf8cfc() 329 req->reqs.pio_request.value = 0xffffffff; in handle_cf8cfc() 336 req->reqs.pci_request.bus = in handle_cf8cfc() 338 req->reqs.pci_request.dev = in handle_cf8cfc() 340 req->reqs.pci_request.func = in handle_cf8cfc() 344 req->reqs.pci_request.reg = pci_reg + offset; in handle_cf8cfc() 363 (req->reqs.mmio_request.address + in acrn_in_range() [all …]
|
| H A D | ioeventfd.c | 204 if (req->reqs.mmio_request.direction == ACRN_IOREQ_DIR_READ) { in acrn_ioeventfd_handler() 206 req->reqs.mmio_request.value = 0; in acrn_ioeventfd_handler() 209 addr = req->reqs.mmio_request.address; in acrn_ioeventfd_handler() 210 size = req->reqs.mmio_request.size; in acrn_ioeventfd_handler() 211 val = req->reqs.mmio_request.value; in acrn_ioeventfd_handler() 213 if (req->reqs.pio_request.direction == ACRN_IOREQ_DIR_READ) { in acrn_ioeventfd_handler() 215 req->reqs.pio_request.value = 0; in acrn_ioeventfd_handler() 218 addr = req->reqs.pio_request.address; in acrn_ioeventfd_handler() 219 size = req->reqs.pio_request.size; in acrn_ioeventfd_handler() 220 val = req->reqs.pio_request.value; in acrn_ioeventfd_handler()
|
| /linux-6.15/fs/cachefiles/ |
| H A D | ondemand.c | 32 xas.xa = &cache->reqs; in cachefiles_ondemand_fd_release() 34 xa_lock(&cache->reqs); in cachefiles_ondemand_fd_release() 49 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_release() 132 xa_lock(&cache->reqs); in cachefiles_ondemand_fd_ioctl() 136 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_ioctl() 140 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_ioctl() 193 xa_lock(&cache->reqs); in cachefiles_ondemand_copen() 198 xa_unlock(&cache->reqs); in cachefiles_ondemand_copen() 202 xa_unlock(&cache->reqs); in cachefiles_ondemand_copen() 425 xa_lock(&cache->reqs); in cachefiles_ondemand_daemon_read() [all …]
|
| /linux-6.15/drivers/accel/qaic/ |
| H A D | qaic_data.c | 168 kfree(slice->reqs); in free_slice() 407 slice->reqs = kcalloc(sgt->nents, sizeof(*slice->reqs), GFP_KERNEL); in qaic_map_one_slice() 408 if (!slice->reqs) { in qaic_map_one_slice() 433 kfree(slice->reqs); in qaic_map_one_slice() 1079 struct dbc_req *reqs = slice->reqs; in copy_exec_reqs() local 1090 memcpy(fifo_at(dbc->req_q_base, tail), reqs, sizeof(*reqs) * avail); in copy_exec_reqs() 1091 reqs += avail; in copy_exec_reqs() 1094 memcpy(dbc->req_q_base, reqs, sizeof(*reqs) * avail); in copy_exec_reqs() 1108 struct dbc_req *reqs = slice->reqs; in copy_partial_exec_reqs() local 1137 memcpy(fifo_at(dbc->req_q_base, tail), reqs, sizeof(*reqs) * avail); in copy_partial_exec_reqs() [all …]
|
| /linux-6.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | pno.c | 49 pi->reqs[pi->n_reqs++] = req; in brcmf_pno_store_request() 66 if (pi->reqs[i]->reqid == reqid) in brcmf_pno_remove_request() 84 pi->reqs[i] = pi->reqs[i + 1]; in brcmf_pno_remove_request() 165 mac_addr = pi->reqs[ri]->mac_addr; in brcmf_pno_set_random() 166 mac_mask = pi->reqs[ri]->mac_addr_mask; in brcmf_pno_set_random() 188 pi->reqs[ri]->reqid, pfn_mac.mac); in brcmf_pno_set_random() 315 sr = pi->reqs[i]; in brcmf_pno_prep_fwconfig() 330 sr = pi->reqs[i]; in brcmf_pno_prep_fwconfig() 372 r = pi->reqs[i]; in brcmf_pno_config_networks() 559 reqid = pi->reqs[bucket]->reqid; in brcmf_pno_find_reqid_by_bucket() [all …]
|
| /linux-6.15/drivers/interconnect/ |
| H A D | core.c | 184 path->reqs[i].node = node; in path_init() 185 path->reqs[i].dev = dev; in path_init() 186 path->reqs[i].enabled = true; in path_init() 310 next = path->reqs[i].node; in apply_constraints() 653 path->reqs[i].tag = tag; in icc_set_tag() 707 old_avg = path->reqs[0].avg_bw; in icc_set_bw() 711 node = path->reqs[i].node; in icc_set_bw() 714 path->reqs[i].avg_bw = avg_bw; in icc_set_bw() 729 node = path->reqs[i].node; in icc_set_bw() 763 path->reqs[0].peak_bw); in __icc_enable() [all …]
|
| H A D | trace.h | 26 __string(dev, dev_name(p->reqs[i].dev)) 62 __string(dev, dev_name(p->reqs[0].dev))
|
| /linux-6.15/lib/ |
| H A D | test_firmware.c | 174 if (!test_fw_config->reqs) in __test_release_all_firmware() 189 vfree(test_fw_config->reqs); in __test_release_all_firmware() 190 test_fw_config->reqs = NULL; in __test_release_all_firmware() 239 test_fw_config->reqs = NULL; in __test_firmware_config_init() 493 if (test_fw_config->reqs) { in config_num_requests_store() 540 if (test_fw_config->reqs) { in config_buf_size_store() 680 if (test_fw_config->reqs) in trigger_request_store() 782 if (test_fw_config->reqs) in trigger_async_request_store() 826 if (test_fw_config->reqs) in trigger_custom_fallback_store() 936 test_fw_config->reqs = in trigger_batched_requests_store() [all …]
|
| /linux-6.15/drivers/platform/x86/hp/hp-bioscfg/ |
| H A D | string-attributes.c | 138 int reqs; in hp_populate_string_elements_from_package() local 219 for (reqs = 0; reqs < size; reqs++) { in hp_populate_string_elements_from_package() 225 ret = hp_convert_hexstr_to_str(string_obj[elem + reqs].string.pointer, in hp_populate_string_elements_from_package() 226 string_obj[elem + reqs].string.length, in hp_populate_string_elements_from_package() 232 strscpy(string_data->common.prerequisites[reqs], str_value); in hp_populate_string_elements_from_package()
|
| H A D | order-list-attributes.c | 138 int reqs; in hp_populate_ordered_list_elements_from_package() local 218 for (reqs = 0; reqs < size; reqs++) { in hp_populate_ordered_list_elements_from_package() 219 ret = hp_convert_hexstr_to_str(order_obj[elem + reqs].string.pointer, in hp_populate_ordered_list_elements_from_package() 220 order_obj[elem + reqs].string.length, in hp_populate_ordered_list_elements_from_package() 226 strscpy(ordered_list_data->common.prerequisites[reqs], str_value); in hp_populate_ordered_list_elements_from_package()
|
| H A D | int-attributes.c | 148 int reqs; in hp_populate_integer_elements_from_package() local 229 for (reqs = 0; reqs < size; reqs++) { in hp_populate_integer_elements_from_package() 235 ret = hp_convert_hexstr_to_str(integer_obj[elem + reqs].string.pointer, in hp_populate_integer_elements_from_package() 236 integer_obj[elem + reqs].string.length, in hp_populate_integer_elements_from_package() 242 strscpy(integer_data->common.prerequisites[reqs], str_value); in hp_populate_integer_elements_from_package()
|
| H A D | enum-attributes.c | 132 int reqs; in hp_populate_enumeration_elements_from_package() local 209 for (reqs = 0; reqs < size; reqs++) { in hp_populate_enumeration_elements_from_package() 215 ret = hp_convert_hexstr_to_str(enum_obj[elem + reqs].string.pointer, in hp_populate_enumeration_elements_from_package() 216 enum_obj[elem + reqs].string.length, in hp_populate_enumeration_elements_from_package() 222 strscpy(enum_data->common.prerequisites[reqs], str_value); in hp_populate_enumeration_elements_from_package()
|
| H A D | passwdobj-attributes.c | 227 int reqs; in hp_populate_password_elements_from_package() local 305 for (reqs = 0; reqs < size; reqs++) { in hp_populate_password_elements_from_package() 306 ret = hp_convert_hexstr_to_str(password_obj[elem + reqs].string.pointer, in hp_populate_password_elements_from_package() 307 password_obj[elem + reqs].string.length, in hp_populate_password_elements_from_package() 313 strscpy(password_data->common.prerequisites[reqs], str_value); in hp_populate_password_elements_from_package()
|
| H A D | bioscfg.c | 128 int reqs; in hp_get_common_data_from_buffer() local 173 for (reqs = 0; reqs < common_data->prerequisites_size; reqs++) { in hp_get_common_data_from_buffer() 175 common_data->prerequisites[reqs], in hp_get_common_data_from_buffer() 176 sizeof(common_data->prerequisites[reqs])); in hp_get_common_data_from_buffer()
|
| /linux-6.15/drivers/pci/ |
| H A D | ats.c | 230 int pci_enable_pri(struct pci_dev *pdev, u32 reqs) in pci_enable_pri() argument 258 reqs = min(max_requests, reqs); in pci_enable_pri() 259 pdev->pri_reqs_alloc = reqs; in pci_enable_pri() 260 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_enable_pri() 306 u32 reqs = pdev->pri_reqs_alloc; in pci_restore_pri_state() local 318 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_restore_pri_state()
|
| /linux-6.15/drivers/usb/gadget/function/ |
| H A D | u_audio.c | 53 struct usb_request **reqs; member 454 if (prm->reqs[i]) { in free_ep() 463 prm->reqs[i] = NULL; in free_ep() 616 if (!prm->reqs[i]) { in u_audio_start_capture() 621 prm->reqs[i] = req; in u_audio_start_capture() 752 if (!prm->reqs[i]) { in u_audio_start_playback() 757 prm->reqs[i] = req; in u_audio_start_playback() 1215 if (!prm->reqs) { in g_audio_setup() 1240 if (!prm->reqs) { in g_audio_setup() 1430 kfree(uac->p_prm.reqs); in g_audio_setup() [all …]
|
| H A D | f_midi2.c | 1145 if (!usb_ep->reqs) in f_midi2_alloc_ep_reqs() 1149 if (usb_ep->reqs[i].req) in f_midi2_alloc_ep_reqs() 1153 if (!usb_ep->reqs[i].req) in f_midi2_alloc_ep_reqs() 1155 usb_ep->reqs[i].req->context = &usb_ep->reqs[i]; in f_midi2_alloc_ep_reqs() 1167 if (!usb_ep->reqs[i].req) in f_midi2_free_ep_reqs() 1170 usb_ep->reqs[i].req = NULL; in f_midi2_free_ep_reqs() 1190 usb_ep->reqs = kcalloc(midi2->info.num_reqs, sizeof(*usb_ep->reqs), in f_midi2_init_ep() 1192 if (!usb_ep->reqs) in f_midi2_init_ep() 1195 usb_ep->reqs[i].index = i; in f_midi2_init_ep() 1211 kfree(usb_ep->reqs); in f_midi2_free_ep() [all …]
|
| /linux-6.15/drivers/tee/optee/ |
| H A D | supp.c | 28 INIT_LIST_HEAD(&supp->reqs); in optee_supp_init() 54 list_for_each_entry_safe(req, req_tmp, &supp->reqs, link) { in optee_supp_release() 103 list_add_tail(&req->link, &supp->reqs); in optee_supp_thrd_req() 146 if (list_empty(&supp->reqs)) in supp_pop_entry() 149 req = list_first_entry(&supp->reqs, struct optee_supp_req, link); in supp_pop_entry()
|
| /linux-6.15/samples/acrn/ |
| H A D | vm-sample.c | 115 port = io_req->reqs.pio_request.address; in main() 116 bytes = io_req->reqs.pio_request.size; in main() 117 in = (io_req->reqs.pio_request.direction == ACRN_IOREQ_DIR_READ); in main()
|
| /linux-6.15/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_rm.c | 788 struct dpu_rm_sspp_requirements *reqs, in dpu_rm_try_sspp() argument 807 if (reqs->scale && !hw_sspp->cap->sblk->scaler_blk.len) in dpu_rm_try_sspp() 811 if (reqs->scale && !hw_sspp->ops.setup_scaler) in dpu_rm_try_sspp() 814 if (reqs->yuv && !hw_sspp->cap->sblk->csc_blk.len) in dpu_rm_try_sspp() 817 if (reqs->rot90 && !(hw_sspp->cap->features & DPU_SSPP_INLINE_ROTATION)) in dpu_rm_try_sspp() 838 struct dpu_rm_sspp_requirements *reqs) in dpu_rm_reserve_sspp() argument 842 if (!reqs->scale && !reqs->yuv) in dpu_rm_reserve_sspp() 843 hw_sspp = dpu_rm_try_sspp(rm, global_state, crtc, reqs, SSPP_TYPE_DMA); in dpu_rm_reserve_sspp() 844 if (!hw_sspp && reqs->scale) in dpu_rm_reserve_sspp() 845 hw_sspp = dpu_rm_try_sspp(rm, global_state, crtc, reqs, SSPP_TYPE_RGB); in dpu_rm_reserve_sspp() [all …]
|
| /linux-6.15/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_chip.c | 371 reqs[0].value = (mac_addr[3] << 24) in zd_write_mac_addr_common() 375 reqs[1].value = (mac_addr[5] << 8) in zd_write_mac_addr_common() 383 r = zd_iowrite32a_locked(chip, reqs, ARRAY_SIZE(reqs)); in zd_write_mac_addr_common() 393 static const struct zd_ioreq32 reqs[2] = { in zd_write_mac_addr() local 860 struct zd_ioreq32 reqs[3]; in set_aw_pt_bi() local 870 reqs[0].addr = CR_ATIM_WND_PERIOD; in set_aw_pt_bi() 871 reqs[0].value = s->atim_wnd_period; in set_aw_pt_bi() 872 reqs[1].addr = CR_PRE_TBTT; in set_aw_pt_bi() 873 reqs[1].value = s->pre_tbtt; in set_aw_pt_bi() 874 reqs[2].addr = CR_BCN_INTERVAL; in set_aw_pt_bi() [all …]
|
| /linux-6.15/fs/nfs/ |
| H A D | direct.c | 568 LIST_HEAD(reqs); in nfs_direct_write_reschedule() 572 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_reschedule() 574 nfs_direct_join_group(&reqs, &cinfo, dreq->inode); in nfs_direct_write_reschedule() 583 while (!list_empty(&reqs)) { in nfs_direct_write_reschedule() 584 req = nfs_list_entry(reqs.next); in nfs_direct_write_reschedule() 605 while (!list_empty(&reqs)) { in nfs_direct_write_reschedule() 606 req = nfs_list_entry(reqs.next); in nfs_direct_write_reschedule() 716 LIST_HEAD(reqs); in nfs_direct_write_clear_reqs() 719 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_clear_reqs() 721 while (!list_empty(&reqs)) { in nfs_direct_write_clear_reqs() [all …]
|
| /linux-6.15/tools/testing/selftests/iommu/ |
| H A D | iommufd_utils.h | 284 static int _test_cmd_hwpt_invalidate(int fd, __u32 hwpt_id, void *reqs, in _test_cmd_hwpt_invalidate() argument 292 .data_uptr = (uint64_t)reqs, in _test_cmd_hwpt_invalidate() 301 #define test_cmd_hwpt_invalidate(hwpt_id, reqs, data_type, lreq, nreqs) \ argument 304 _test_cmd_hwpt_invalidate(self->fd, hwpt_id, reqs, \ 307 #define test_err_hwpt_invalidate(_errno, hwpt_id, reqs, data_type, lreq, \ argument 311 self->fd, hwpt_id, reqs, \ 315 static int _test_cmd_viommu_invalidate(int fd, __u32 viommu_id, void *reqs, in _test_cmd_viommu_invalidate() argument 323 .data_uptr = (uint64_t)reqs, in _test_cmd_viommu_invalidate() 332 #define test_cmd_viommu_invalidate(viommu, reqs, lreq, nreqs) \ argument 335 _test_cmd_viommu_invalidate(self->fd, viommu, reqs, \ [all …]
|
| /linux-6.15/net/sunrpc/xprtrdma/ |
| H A D | backchannel.c | 25 int xprt_rdma_bc_setup(struct rpc_xprt *xprt, unsigned int reqs) in xprt_rdma_bc_setup() argument 30 trace_xprtrdma_cb_setup(r_xprt, reqs); in xprt_rdma_bc_setup() 131 void xprt_rdma_bc_destroy(struct rpc_xprt *xprt, unsigned int reqs) in xprt_rdma_bc_destroy() argument
|