| /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 …]
|
| /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()
|
| /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 …]
|
| /linux/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() 220 if (elem + reqs >= string_obj_count) { 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 | 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() 230 if (elem + reqs >= integer_obj_count) { 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 | order-list-attributes.c | 137 int reqs; in hp_populate_ordered_list_elements_from_package() local 217 for (reqs = 0; reqs < size; reqs++) { in hp_populate_ordered_list_elements_from_package() 218 if (elem + reqs >= order_obj_count) { 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], str_value); in hp_populate_ordered_list_elements_from_package()
|
| H A D | enum-attributes.c | 135 int reqs; in hp_populate_enumeration_elements_from_package() local 212 for (reqs = 0; reqs < size; reqs++) { in hp_populate_enumeration_elements_from_package() 213 if (elem + reqs >= enum_obj_count) { 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], 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 if (elem + reqs >= password_obj_count) { in hp_populate_password_elements_from_package() 311 ret = hp_convert_hexstr_to_str(password_obj[elem + reqs].string.pointer, in hp_populate_password_elements_from_package() 312 password_obj[elem + reqs].string.length, in hp_populate_password_elements_from_package() 318 strscpy(password_data->common.prerequisites[reqs], str_value); in hp_populate_password_elements_from_package()
|
| H A D | bioscfg.c | 130 int reqs; in hp_get_common_data_from_buffer() local 175 for (reqs = 0; reqs < common_data->prerequisites_size; reqs++) { in hp_get_common_data_from_buffer() 177 common_data->prerequisites[reqs], in hp_get_common_data_from_buffer() 178 sizeof(common_data->prerequisites[reqs])); in hp_get_common_data_from_buffer()
|
| /linux/drivers/interconnect/ |
| H A D | core.c | 175 path = kzalloc_flex(*path, reqs, num_nodes); in path_init() 185 hlist_add_head(&path->reqs[i].req_node, &node->req_list); in path_init() 186 path->reqs[i].node = node; in path_init() 187 path->reqs[i].dev = dev; in path_init() 188 path->reqs[i].enabled = true; in path_init() 312 next = path->reqs[i].node; in apply_constraints() 675 path->reqs[i].tag = tag; in icc_set_tag() 729 old_avg = path->reqs[0].avg_bw; in icc_set_bw() 730 old_peak = path->reqs[0].peak_bw; in icc_set_bw() 733 node = path->reqs[i].node; in icc_set_bw() [all …]
|
| H A D | internal.h | 41 struct icc_req reqs[] __counted_by(num_nodes);
|
| /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 …]
|
| /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()
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_rm.c | 791 struct dpu_rm_sspp_requirements *reqs, in dpu_rm_try_sspp() argument 810 if (reqs->scale && !hw_sspp->cap->sblk->scaler_blk.len) in dpu_rm_try_sspp() 814 if (reqs->scale && !hw_sspp->ops.setup_scaler) in dpu_rm_try_sspp() 817 if (reqs->yuv && !hw_sspp->cap->sblk->csc_blk.len) in dpu_rm_try_sspp() 820 if (reqs->rot90 && !(hw_sspp->cap->features & DPU_SSPP_INLINE_ROTATION)) in dpu_rm_try_sspp() 841 struct dpu_rm_sspp_requirements *reqs) in dpu_rm_reserve_sspp() argument 845 if (!reqs->scale && !reqs->yuv) in dpu_rm_reserve_sspp() 846 hw_sspp = dpu_rm_try_sspp(rm, global_state, crtc, reqs, SSPP_TYPE_DMA); in dpu_rm_reserve_sspp() 847 if (!hw_sspp && !reqs->yuv) in dpu_rm_reserve_sspp() 848 hw_sspp = dpu_rm_try_sspp(rm, global_state, crtc, reqs, SSPP_TYPE_RGB); in dpu_rm_reserve_sspp() [all …]
|
| /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 …]
|
| /linux/drivers/tee/optee/ |
| H A D | supp.c | 35 INIT_LIST_HEAD(&supp->reqs); in optee_supp_init() 119 list_add_tail(&req->link, &supp->reqs); in optee_supp_thrd_req() 185 if (list_empty(&supp->reqs)) in supp_pop_entry() 188 req = list_first_entry(&supp->reqs, struct optee_supp_req, link); in supp_pop_entry()
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | backchannel.c | 22 * @reqs: number of concurrent incoming requests to expect 26 int xprt_rdma_bc_setup(struct rpc_xprt *xprt, unsigned int reqs) in xprt_rdma_bc_setup() argument 31 trace_xprtrdma_cb_setup(r_xprt, reqs); in xprt_rdma_bc_setup() 130 * @reqs: number of incoming requests to destroy; ignored 132 void xprt_rdma_bc_destroy(struct rpc_xprt *xprt, unsigned int reqs) in xprt_rdma_bc_destroy() argument
|
| /linux/tools/docs/ |
| H A D | test_doc_build.py | 291 reqs = [] 293 reqs.append(f"{pkg}=={verstr}") 295 reqs.append(f"Sphinx=={ver}") 297 await cmd.run([pip, "install"] + reqs, check=True, verbose=args.verbose)
|
| /linux/tools/testing/selftests/iommu/ |
| H A D | iommufd_utils.h | 305 static int _test_cmd_hwpt_invalidate(int fd, __u32 hwpt_id, void *reqs, in _test_cmd_hwpt_invalidate() argument 313 .data_uptr = (uint64_t)reqs, in _test_cmd_hwpt_invalidate() 322 #define test_cmd_hwpt_invalidate(hwpt_id, reqs, data_type, lreq, nreqs) \ argument 325 _test_cmd_hwpt_invalidate(self->fd, hwpt_id, reqs, \ 328 #define test_err_hwpt_invalidate(_errno, hwpt_id, reqs, data_type, lreq, \ argument 332 self->fd, hwpt_id, reqs, \ 336 static int _test_cmd_viommu_invalidate(int fd, __u32 viommu_id, void *reqs, in _test_cmd_viommu_invalidate() argument 344 .data_uptr = (uint64_t)reqs, in _test_cmd_viommu_invalidate() 353 #define test_cmd_viommu_invalidate(viommu, reqs, lreq, nreqs) \ argument 356 _test_cmd_viommu_invalidate(self->fd, viommu, reqs, \ 360 test_err_viommu_invalidate(_errno,viommu_id,reqs,data_type,lreq,nreqs) global() argument [all...] |
| /linux/drivers/net/ethernet/intel/igbvf/ |
| H A D | mbx.c | 163 hw->mbx.stats.reqs++; in e1000_check_for_msg_vf() 332 mbx->stats.reqs = 0; in e1000_init_mbx_params_vf()
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | tdc.py | 79 reqs = set() 84 reqs.update(set(t['plugins']['requires'])) 86 reqs.add(t['plugins']['requires']) 94 return reqs 96 def load_required_plugins(self, reqs, parser, args, remaining): argument 104 for r in reqs:
|
| /linux/sound/hda/codecs/ |
| H A D | ca0132.c | 181 int reqs[EFFECT_VALS_MAX_COUNT]; /*effect module request*/ 195 .reqs = {0, 1}, 203 .reqs = {7, 8}, 211 .reqs = {2, 3}, 219 .reqs = {4, 5, 6}, 227 .reqs = {24, 23, 25}, 235 .reqs = {9, 10, 11, 12, 13, 14, 246 .reqs = {0, 1, 2, 3}, 254 .reqs = {6, 7, 8, 9}, 262 .reqs 180 int reqs[EFFECT_VALS_MAX_COUNT]; /*effect module request*/ global() member 424 int reqs[VOICEFX_MAX_PARAM_COUNT]; /*effect module request*/ global() member 520 int reqs[EQ_PRESET_MAX_PARAM_COUNT]; /*effect module request*/ global() member 715 unsigned int reqs[3]; /* scp req ID */ global() member [all...] |
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_mbx.c | 268 hw->mbx.stats.reqs++; in igb_check_for_msg_pf() 469 mbx->stats.reqs = 0; in igb_init_mbx_params_pf()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | hw_channel.c | 274 rx_req = &hwc_rxq->msg_buf->reqs[rx_req_idx]; in mana_hwc_rx_event_handler() 473 dma_buf = kzalloc_flex(*dma_buf, reqs, q_depth); in mana_hwc_alloc_dma_buf() 493 hwc_wr = &dma_buf->reqs[i]; in mana_hwc_alloc_dma_buf() 650 req = &hwc_rxq->msg_buf->reqs[i]; in mana_hwc_test_channel() 871 tx_wr = &txq->msg_buf->reqs[msg_id]; in mana_hwc_send_request()
|