Lines Matching full:response
105 struct clp_rsp_query_pci_grp *response) in clp_store_query_pci_fngrp() argument
107 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp()
108 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp()
109 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp()
110 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp()
111 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp()
112 zdev->version = response->version; in clp_store_query_pci_fngrp()
113 zdev->maxstbl = response->maxstbl; in clp_store_query_pci_fngrp()
114 zdev->dtsm = response->dtsm; in clp_store_query_pci_fngrp()
116 switch (response->version) { in clp_store_query_pci_fngrp()
138 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fngrp()
142 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) in clp_query_pci_fngrp()
143 clp_store_query_pci_fngrp(zdev, &rrb->response); in clp_query_pci_fngrp()
146 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fngrp()
154 struct clp_rsp_query_pci *response) in clp_store_query_pci_fn() argument
159 zdev->bars[i].val = le32_to_cpu(response->bar[i]); in clp_store_query_pci_fn()
160 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
162 zdev->start_dma = response->sdma; in clp_store_query_pci_fn()
163 zdev->end_dma = response->edma; in clp_store_query_pci_fn()
164 zdev->pchid = response->pchid; in clp_store_query_pci_fn()
165 zdev->pfgid = response->pfgid; in clp_store_query_pci_fn()
166 zdev->pft = response->pft; in clp_store_query_pci_fn()
167 zdev->vfn = response->vfn; in clp_store_query_pci_fn()
168 zdev->port = response->port; in clp_store_query_pci_fn()
169 zdev->fidparm = response->fidparm; in clp_store_query_pci_fn()
170 zdev->uid = response->uid; in clp_store_query_pci_fn()
171 zdev->fmb_length = sizeof(u32) * response->fmb_len; in clp_store_query_pci_fn()
172 zdev->is_physfn = response->is_physfn; in clp_store_query_pci_fn()
173 zdev->rid_available = response->rid_avail; in clp_store_query_pci_fn()
175 zdev->rid = response->rid; in clp_store_query_pci_fn()
176 zdev->tid_avail = response->tid_avail; in clp_store_query_pci_fn()
178 zdev->tid = response->tid; in clp_store_query_pci_fn()
180 memcpy(zdev->pfip, response->pfip, sizeof(zdev->pfip)); in clp_store_query_pci_fn()
181 if (response->util_str_avail) { in clp_store_query_pci_fn()
182 memcpy(zdev->util_str, response->util_str, in clp_store_query_pci_fn()
186 zdev->mio_capable = response->mio_addr_avail; in clp_store_query_pci_fn()
188 if (!(response->mio.valid & (1 << (PCI_STD_NUM_BARS - i - 1)))) in clp_store_query_pci_fn()
191 zdev->bars[i].mio_wb = (void __iomem *) response->mio.addr[i].wb; in clp_store_query_pci_fn()
192 zdev->bars[i].mio_wt = (void __iomem *) response->mio.addr[i].wt; in clp_store_query_pci_fn()
209 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fn()
213 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_query_pci_fn()
214 rc = clp_store_query_pci_fn(zdev, &rrb->response); in clp_query_pci_fn()
217 rc = clp_query_pci_fngrp(zdev, rrb->response.pfgid); in clp_query_pci_fn()
220 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fn()
256 rrb->response.hdr.len = sizeof(rrb->response); in clp_set_pci_fn()
263 if (rrb->response.hdr.rsp == CLP_RC_SETPCIFN_BUSY) { in clp_set_pci_fn()
269 } while (rrb->response.hdr.rsp == CLP_RC_SETPCIFN_BUSY); in clp_set_pci_fn()
271 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_set_pci_fn()
272 *fh = rrb->response.fh; in clp_set_pci_fn()
275 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_set_pci_fn()
277 rc = rrb->response.hdr.rsp; in clp_set_pci_fn()
296 rrb->response.hdr.len = sizeof(rrb->response); in clp_setup_writeback_mio()
299 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_setup_writeback_mio()
300 if (rrb->response.vwb) { in clp_setup_writeback_mio()
301 wb_bit_pos = rrb->response.mio_wb; in clp_setup_writeback_mio()
310 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_setup_writeback_mio()
354 rrb->response.hdr.len = CLP_BLK_SIZE - LIST_PCI_HDR_LEN; in clp_list_pci_req()
359 if (rc || rrb->response.hdr.rsp != CLP_RC_OK) { in clp_list_pci_req()
361 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_list_pci_req()
365 update_uid_checking(rrb->response.uid_checking); in clp_list_pci_req()
366 WARN_ON_ONCE(rrb->response.entry_size != in clp_list_pci_req()
369 *nentries = (rrb->response.hdr.len - LIST_PCI_HDR_LEN) / in clp_list_pci_req()
370 rrb->response.entry_size; in clp_list_pci_req()
371 *resume_token = rrb->response.resume_token; in clp_list_pci_req()
387 cb(&rrb->response.fh_list[i], data); in clp_list_pci()
404 fh_list = rrb->response.fh_list; in clp_find_pci()
496 lpcb->response.hdr.len > limit) in clp_base_slpc()
516 lpcb->response.hdr.len > limit) in clp_pci_slpc()
526 lpcb->response.hdr.len > limit) in clp_pci_list()
539 lpcb->response.hdr.len > limit) in clp_pci_query()
552 lpcb->response.hdr.len > limit) in clp_pci_query_grp()