/openbmc/linux/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() 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 …]
|
/openbmc/qemu/block/ |
H A D | reqlist.c | 20 void reqlist_init_req(BlockReqList *reqs, BlockReq *req, int64_t offset, in reqlist_init_req() argument 28 QLIST_INSERT_HEAD(reqs, req, list); in reqlist_init_req() 31 BlockReq *reqlist_find_conflict(BlockReqList *reqs, int64_t offset, in reqlist_find_conflict() argument 36 QLIST_FOREACH(r, reqs, list) { in reqlist_find_conflict() 45 bool coroutine_fn reqlist_wait_one(BlockReqList *reqs, int64_t offset, in reqlist_wait_one() argument 48 BlockReq *r = reqlist_find_conflict(reqs, offset, bytes); in reqlist_wait_one() 59 void coroutine_fn reqlist_wait_all(BlockReqList *reqs, int64_t offset, in reqlist_wait_all() argument 62 while (reqlist_wait_one(reqs, offset, bytes, lock)) { in reqlist_wait_all()
|
/openbmc/linux/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() 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 …]
|
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()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A 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 …]
|
/openbmc/linux/fs/cachefiles/ |
H A D | ondemand.c | 33 xas.xa = &cache->reqs; in cachefiles_ondemand_fd_release() 35 xa_lock(&cache->reqs); in cachefiles_ondemand_fd_release() 50 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_release() 107 XA_STATE(xas, &cache->reqs, id); in cachefiles_ondemand_fd_ioctl() 115 xa_lock(&cache->reqs); in cachefiles_ondemand_fd_ioctl() 119 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_ioctl() 123 xa_unlock(&cache->reqs); in cachefiles_ondemand_fd_ioctl() 152 XA_STATE(xas, &cache->reqs, 0); in cachefiles_ondemand_copen() 176 xa_lock(&cache->reqs); in cachefiles_ondemand_copen() 181 xa_unlock(&cache->reqs); in cachefiles_ondemand_copen() [all …]
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | ipmi_timeline_vis.js | 642 function OnHighlightedChanged(reqs) { argument 646 cnt.innerHTML = '' + reqs.length; 648 if (reqs.length > 0) { 683 function GenerateIPMIToolIndividualCommandReplay(reqs) { argument 685 for (let i = 0; i < reqs.length; i++) { 686 let req = reqs[i]; 695 function GenerateIPMIToolExecListReplay(reqs) { argument 696 console.log(reqs.length); 698 for (let i = 0; i < reqs.length; i++) { 699 let req = reqs[i]; [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/tinyproxy/tinyproxy/ |
H A D | CVE-2022-40468.patch | 14 src/reqs.c | 4 ++++ 17 diff --git a/src/reqs.c b/src/reqs.c 19 --- a/src/reqs.c 20 +++ b/src/reqs.c
|
/openbmc/qemu/include/block/ |
H A D | reqlist.h | 40 void reqlist_init_req(BlockReqList *reqs, BlockReq *req, int64_t offset, 43 BlockReq *reqlist_find_conflict(BlockReqList *reqs, int64_t offset, 53 bool coroutine_fn reqlist_wait_one(BlockReqList *reqs, int64_t offset, 61 void coroutine_fn reqlist_wait_all(BlockReqList *reqs, int64_t offset,
|
/openbmc/linux/drivers/accel/qaic/ |
H A 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 …]
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | mirror-change-copy-mode | 136 reqs = 4 * iops_source 137 req_size = image_size // reqs 138 for i in range(0, reqs): 173 reqs = 4 * iops_target 174 req_size = image_size // 2 // reqs 175 for i in range(0, reqs):
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A 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 …]
|
/openbmc/linux/drivers/interconnect/ |
H A D | core.c | 173 path = kzalloc(struct_size(path, reqs, num_nodes), GFP_KERNEL); in path_init() 183 hlist_add_head(&path->reqs[i].req_node, &node->req_list); in path_init() 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() 708 old_peak = path->reqs[0].peak_bw; in icc_set_bw() 711 node = path->reqs[i].node; in icc_set_bw() [all …]
|
H A 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));
|
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/lib/ |
H A 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 …]
|
/openbmc/linux/drivers/pci/ |
H A 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()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A 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() 616 if (!prm->reqs[i]) { in u_audio_start_capture() 621 prm->reqs[i] = req; in u_audio_start_capture() 630 if (usb_ep_queue(ep, prm->reqs[i], GFP_ATOMIC)) 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() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/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() 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()
|
/openbmc/linux/drivers/net/wireless/zydas/zd1211rw/ |
H A 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 …]
|