/linux-6.6.21/drivers/i2c/busses/ |
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() 73 reqs[i].out_hdr.addr = cpu_to_le16(msgs[i].addr << 1); in virtio_i2c_prepare_reqs() 76 reqs[i].out_hdr.flags |= cpu_to_le32(VIRTIO_I2C_FLAGS_M_RD); in virtio_i2c_prepare_reqs() 79 reqs[i].out_hdr.flags |= cpu_to_le32(VIRTIO_I2C_FLAGS_FAIL_NEXT); 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() 85 reqs[i].buf = i2c_get_dma_safe_msg_buf(&msgs[i], 1); in virtio_i2c_prepare_reqs() 86 if (!reqs[i].buf) in virtio_i2c_prepare_reqs() 89 sg_init_one(&msg_buf, reqs[i].buf, msgs[i].len); 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() [all …]
|
/linux-6.6.21/drivers/virt/acrn/ |
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() 290 (req->reqs.pio_request.address < (0xcfc + 4)))); in is_cfg_data() 319 WARN_ON(req->reqs.pio_request.size != 4); in handle_cf8cfc() 320 if (req->reqs.pio_request.direction == ACRN_IOREQ_DIR_WRITE) in handle_cf8cfc() 321 vm->pci_conf_addr = req->reqs.pio_request.value; in handle_cf8cfc() 323 req->reqs.pio_request.value = vm->pci_conf_addr; in handle_cf8cfc() 327 if (req->reqs.pio_request.direction == in handle_cf8cfc() 329 req->reqs.pio_request.value = 0xffffffff; in handle_cf8cfc() 332 offset = req->reqs.pio_request.address - 0xcfc; in handle_cf8cfc() [all …]
|
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.6.21/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_rm.c | 293 struct dpu_rm_requirements *reqs) in _dpu_rm_check_lm_and_get_connected_blks() argument 318 if (!reqs->topology.num_dspp) in _dpu_rm_check_lm_and_get_connected_blks() 340 struct dpu_rm_requirements *reqs) in _dpu_rm_reserve_lms() argument 348 if (!reqs->topology.num_lm) { in _dpu_rm_reserve_lms() 349 DPU_ERROR("invalid number of lm: %d\n", reqs->topology.num_lm); in _dpu_rm_reserve_lms() 355 lm_count < reqs->topology.num_lm; i++) { in _dpu_rm_reserve_lms() 364 &dspp_idx[lm_count], reqs)) { in _dpu_rm_reserve_lms() 371 if (lm_count < reqs->topology.num_lm) { in _dpu_rm_reserve_lms() 384 reqs)) { in _dpu_rm_reserve_lms() 393 if (lm_count != reqs->topology.num_lm) { in _dpu_rm_reserve_lms() [all …]
|
/linux-6.6.21/fs/cachefiles/ |
D | ondemand.c | 14 XA_STATE(xas, &cache->reqs, 0); in cachefiles_ondemand_fd_release() 16 xa_lock(&cache->reqs); in cachefiles_ondemand_fd_release() 31 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_release() 95 req = xa_erase(&cache->reqs, id); in cachefiles_ondemand_fd_ioctl() 148 req = xa_erase(&cache->reqs, id); in cachefiles_ondemand_copen() 245 XA_STATE(xas, &cache->reqs, cache->req_id_next); in cachefiles_ondemand_daemon_read() 252 xa_lock(&cache->reqs); in cachefiles_ondemand_daemon_read() 259 xa_unlock(&cache->reqs); in cachefiles_ondemand_daemon_read() 267 xa_unlock(&cache->reqs); in cachefiles_ondemand_daemon_read() 273 xa_unlock(&cache->reqs); in cachefiles_ondemand_daemon_read() [all …]
|
/linux-6.6.21/drivers/accel/qaic/ |
D | qaic_data.c | 161 kfree(slice->reqs); in free_slice() 298 slice->reqs[i].cmd = cmd; in encode_reqs() 299 slice->reqs[i].src_addr = cpu_to_le64(slice->dir == DMA_TO_DEVICE ? in encode_reqs() 301 slice->reqs[i].dest_addr = cpu_to_le64(slice->dir == DMA_TO_DEVICE ? in encode_reqs() 309 slice->reqs[i].len = cpu_to_le32((u32)sg_dma_len(sg)); in encode_reqs() 312 slice->reqs[i].sem_cmd0 = cpu_to_le32(ENCODE_SEM(req->sem0.val, in encode_reqs() 319 slice->reqs[i].sem_cmd1 = cpu_to_le32(ENCODE_SEM(req->sem1.val, in encode_reqs() 326 slice->reqs[i].sem_cmd2 = cpu_to_le32(ENCODE_SEM(req->sem2.val, in encode_reqs() 333 slice->reqs[i].sem_cmd3 = cpu_to_le32(ENCODE_SEM(req->sem3.val, in encode_reqs() 344 slice->reqs[i].cmd |= GEN_COMPLETION; in encode_reqs() [all …]
|
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | pno.c | 34 struct cfg80211_sched_scan_request *reqs[BRCMF_PNO_MAX_BUCKETS]; member 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() 164 if (pi->reqs[ri]->flags & NL80211_SCAN_FLAG_RANDOM_ADDR) { in brcmf_pno_set_random() 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() 313 *scan_freq = pi->reqs[0]->scan_plans[0].interval; in brcmf_pno_prep_fwconfig() 315 sr = pi->reqs[i]; in brcmf_pno_prep_fwconfig() [all …]
|
/linux-6.6.21/drivers/interconnect/ |
D | core.c | 173 path = kzalloc(struct_size(path, reqs, num_nodes), GFP_KERNEL); in path_init() 181 hlist_add_head(&path->reqs[i].req_node, &node->req_list); in path_init() 182 path->reqs[i].node = node; in path_init() 183 path->reqs[i].dev = dev; in path_init() 184 path->reqs[i].enabled = true; in path_init() 306 next = path->reqs[i].node; in apply_constraints() 649 path->reqs[i].tag = tag; in icc_set_tag() 703 old_avg = path->reqs[0].avg_bw; in icc_set_bw() 704 old_peak = path->reqs[0].peak_bw; in icc_set_bw() 707 node = path->reqs[i].node; in icc_set_bw() [all …]
|
D | trace.h | 26 __string(dev, dev_name(p->reqs[i].dev)) 36 __assign_str(dev, dev_name(p->reqs[i].dev)); 62 __string(dev, dev_name(p->reqs[0].dev)) 68 __assign_str(dev, dev_name(p->reqs[0].dev));
|
/linux-6.6.21/drivers/platform/x86/hp/hp-bioscfg/ |
D | string-attributes.c | 138 int reqs; in hp_populate_string_elements_from_package() local 221 for (reqs = 0; reqs < size; reqs++) { in hp_populate_string_elements_from_package() 227 ret = hp_convert_hexstr_to_str(string_obj[elem + reqs].string.pointer, in hp_populate_string_elements_from_package() 228 string_obj[elem + reqs].string.length, in hp_populate_string_elements_from_package() 234 strscpy(string_data->common.prerequisites[reqs], in hp_populate_string_elements_from_package() 236 sizeof(string_data->common.prerequisites[reqs])); in hp_populate_string_elements_from_package()
|
D | order-list-attributes.c | 140 int reqs; in hp_populate_ordered_list_elements_from_package() local 222 for (reqs = 0; reqs < size; reqs++) { in hp_populate_ordered_list_elements_from_package() 223 ret = hp_convert_hexstr_to_str(order_obj[elem + reqs].string.pointer, in hp_populate_ordered_list_elements_from_package() 224 order_obj[elem + reqs].string.length, in hp_populate_ordered_list_elements_from_package() 230 strscpy(ordered_list_data->common.prerequisites[reqs], in hp_populate_ordered_list_elements_from_package() 232 sizeof(ordered_list_data->common.prerequisites[reqs])); in hp_populate_ordered_list_elements_from_package()
|
D | enum-attributes.c | 134 int reqs; in hp_populate_enumeration_elements_from_package() local 212 for (reqs = 0; reqs < size; reqs++) { in hp_populate_enumeration_elements_from_package() 218 ret = hp_convert_hexstr_to_str(enum_obj[elem + reqs].string.pointer, in hp_populate_enumeration_elements_from_package() 219 enum_obj[elem + reqs].string.length, in hp_populate_enumeration_elements_from_package() 225 strscpy(enum_data->common.prerequisites[reqs], in hp_populate_enumeration_elements_from_package() 227 sizeof(enum_data->common.prerequisites[reqs])); in hp_populate_enumeration_elements_from_package()
|
D | int-attributes.c | 148 int reqs; in hp_populate_integer_elements_from_package() local 230 for (reqs = 0; reqs < size; reqs++) { in hp_populate_integer_elements_from_package() 236 ret = hp_convert_hexstr_to_str(integer_obj[elem + reqs].string.pointer, in hp_populate_integer_elements_from_package() 237 integer_obj[elem + reqs].string.length, in hp_populate_integer_elements_from_package() 243 strscpy(integer_data->common.prerequisites[reqs], in hp_populate_integer_elements_from_package() 245 sizeof(integer_data->common.prerequisites[reqs])); in hp_populate_integer_elements_from_package()
|
D | passwdobj-attributes.c | 232 int reqs; in hp_populate_password_elements_from_package() local 311 for (reqs = 0; reqs < size; reqs++) { in hp_populate_password_elements_from_package() 312 ret = hp_convert_hexstr_to_str(password_obj[elem + reqs].string.pointer, in hp_populate_password_elements_from_package() 313 password_obj[elem + reqs].string.length, in hp_populate_password_elements_from_package() 319 strscpy(password_data->common.prerequisites[reqs], in hp_populate_password_elements_from_package() 321 sizeof(password_data->common.prerequisites[reqs])); in hp_populate_password_elements_from_package()
|
/linux-6.6.21/lib/ |
D | test_firmware.c | 116 struct test_batched_req *reqs; member 174 if (!test_fw_config->reqs) in __test_release_all_firmware() 178 req = &test_fw_config->reqs[i]; 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() 570 if (test_fw_config->reqs) { in config_file_offset_store() 680 if (test_fw_config->reqs) in trigger_request_store() [all …]
|
/linux-6.6.21/drivers/pci/ |
D | ats.c | 196 int pci_enable_pri(struct pci_dev *pdev, u32 reqs) in pci_enable_pri() argument 224 reqs = min(max_requests, reqs); in pci_enable_pri() 225 pdev->pri_reqs_alloc = reqs; in pci_enable_pri() 226 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_enable_pri() 272 u32 reqs = pdev->pri_reqs_alloc; in pci_restore_pri_state() local 284 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_restore_pri_state()
|
/linux-6.6.21/drivers/usb/gadget/function/ |
D | u_audio.c | 53 struct usb_request **reqs; member 454 if (prm->reqs[i]) { in free_ep() 455 if (usb_ep_dequeue(ep, prm->reqs[i])) in free_ep() 456 usb_ep_free_request(ep, prm->reqs[i]); in free_ep() 463 prm->reqs[i] = NULL; in free_ep() 608 if (!prm->reqs[i]) { in u_audio_start_capture() 613 prm->reqs[i] = req; in u_audio_start_capture() 622 if (usb_ep_queue(ep, prm->reqs[i], GFP_ATOMIC)) in u_audio_start_capture() 727 if (!prm->reqs[i]) { in u_audio_start_playback() 732 prm->reqs[i] = req; in u_audio_start_playback() [all …]
|
D | f_midi2.c | 44 struct f_midi2_req_ctx *reqs; /* request context array */ member 392 req = usb_ep->reqs[index].req; in get_empty_request() 1118 if (!test_bit(i, &usb_ep->free_reqs) && usb_ep->reqs[i].req) { in f_midi2_drop_reqs() 1119 usb_ep_dequeue(usb_ep->usb_ep, usb_ep->reqs[i].req); in f_midi2_drop_reqs() 1133 if (!usb_ep->reqs) in f_midi2_alloc_ep_reqs() 1137 if (usb_ep->reqs[i].req) in f_midi2_alloc_ep_reqs() 1139 usb_ep->reqs[i].req = alloc_ep_req(usb_ep->usb_ep, in f_midi2_alloc_ep_reqs() 1141 if (!usb_ep->reqs[i].req) in f_midi2_alloc_ep_reqs() 1143 usb_ep->reqs[i].req->context = &usb_ep->reqs[i]; in f_midi2_alloc_ep_reqs() 1155 if (!usb_ep->reqs[i].req) in f_midi2_free_ep_reqs() [all …]
|
/linux-6.6.21/samples/acrn/ |
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.6.21/drivers/tee/optee/ |
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() 104 list_add_tail(&req->link, &supp->reqs); in optee_supp_thrd_req() 165 if (list_empty(&supp->reqs)) in supp_pop_entry() 168 req = list_first_entry(&supp->reqs, struct optee_supp_req, link); in supp_pop_entry()
|
/linux-6.6.21/drivers/net/wireless/zydas/zd1211rw/ |
D | zd_chip.c | 368 struct zd_ioreq32 reqs[2] = {in_reqs[0], in_reqs[1]}; in zd_write_mac_addr_common() local 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 398 return zd_write_mac_addr_common(chip, mac_addr, reqs, "mac"); in zd_write_mac_addr() 403 static const struct zd_ioreq32 reqs[2] = { in zd_write_bssid() local 408 return zd_write_mac_addr_common(chip, bssid, reqs, "bssid"); in zd_write_bssid() 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() [all …]
|
/linux-6.6.21/fs/nfs/ |
D | direct.c | 545 LIST_HEAD(reqs); in nfs_direct_write_reschedule() 549 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_reschedule() 551 nfs_direct_join_group(&reqs, &cinfo, dreq->inode); in nfs_direct_write_reschedule() 560 while (!list_empty(&reqs)) { in nfs_direct_write_reschedule() 561 req = nfs_list_entry(reqs.next); in nfs_direct_write_reschedule() 582 while (!list_empty(&reqs)) { in nfs_direct_write_reschedule() 583 req = nfs_list_entry(reqs.next); in nfs_direct_write_reschedule() 681 LIST_HEAD(reqs); in nfs_direct_write_clear_reqs() 684 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_clear_reqs() 686 while (!list_empty(&reqs)) { in nfs_direct_write_clear_reqs() [all …]
|
/linux-6.6.21/net/sunrpc/xprtrdma/ |
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
|
/linux-6.6.21/drivers/mtd/nand/ |
D | ecc.c | 469 const struct nand_ecc_props *reqs = nanddev_get_ecc_requirements(nand); in nand_ecc_is_strong_enough() local 474 if (conf->step_size == 0 || reqs->step_size == 0) in nand_ecc_is_strong_enough() 483 ds_corr = (mtd->writesize * reqs->strength) / reqs->step_size; in nand_ecc_is_strong_enough() 485 return corr >= ds_corr && conf->strength >= reqs->strength; in nand_ecc_is_strong_enough()
|
/linux-6.6.21/tools/testing/selftests/tc-testing/ |
D | tdc.py | 71 reqs = [] 76 reqs.extend(t['plugins']['requires']) 78 reqs.append(t['plugins']['requires']) 81 reqs = get_unique_item(reqs) 82 return reqs 84 def load_required_plugins(self, reqs, parser, args, remaining): argument 92 for r in reqs:
|