Lines Matching full:response

98 				      struct clp_rsp_query_pci_grp *response)  in clp_store_query_pci_fngrp()  argument
100 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp()
101 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp()
102 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp()
103 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp()
104 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp()
105 zdev->version = response->version; in clp_store_query_pci_fngrp()
107 switch (response->version) { in clp_store_query_pci_fngrp()
129 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fngrp()
133 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) in clp_query_pci_fngrp()
134 clp_store_query_pci_fngrp(zdev, &rrb->response); in clp_query_pci_fngrp()
137 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fngrp()
145 struct clp_rsp_query_pci *response) in clp_store_query_pci_fn() argument
150 zdev->bars[i].val = le32_to_cpu(response->bar[i]); in clp_store_query_pci_fn()
151 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
153 zdev->start_dma = response->sdma; in clp_store_query_pci_fn()
154 zdev->end_dma = response->edma; in clp_store_query_pci_fn()
155 zdev->pchid = response->pchid; in clp_store_query_pci_fn()
156 zdev->pfgid = response->pfgid; in clp_store_query_pci_fn()
157 zdev->pft = response->pft; in clp_store_query_pci_fn()
158 zdev->vfn = response->vfn; in clp_store_query_pci_fn()
159 zdev->port = response->port; in clp_store_query_pci_fn()
160 zdev->uid = response->uid; in clp_store_query_pci_fn()
161 zdev->fmb_length = sizeof(u32) * response->fmb_len; in clp_store_query_pci_fn()
162 zdev->rid_available = response->rid_avail; in clp_store_query_pci_fn()
163 zdev->is_physfn = response->is_physfn; in clp_store_query_pci_fn()
165 zdev->devfn = response->rid & ZPCI_RID_MASK_DEVFN; in clp_store_query_pci_fn()
167 memcpy(zdev->pfip, response->pfip, sizeof(zdev->pfip)); in clp_store_query_pci_fn()
168 if (response->util_str_avail) { in clp_store_query_pci_fn()
169 memcpy(zdev->util_str, response->util_str, in clp_store_query_pci_fn()
173 zdev->mio_capable = response->mio_addr_avail; in clp_store_query_pci_fn()
175 if (!(response->mio.valid & (1 << (PCI_STD_NUM_BARS - i - 1)))) in clp_store_query_pci_fn()
178 zdev->bars[i].mio_wb = (void __iomem *) response->mio.addr[i].wb; in clp_store_query_pci_fn()
179 zdev->bars[i].mio_wt = (void __iomem *) response->mio.addr[i].wt; in clp_store_query_pci_fn()
196 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fn()
200 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_query_pci_fn()
201 rc = clp_store_query_pci_fn(zdev, &rrb->response); in clp_query_pci_fn()
204 rc = clp_query_pci_fngrp(zdev, rrb->response.pfgid); in clp_query_pci_fn()
207 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fn()
268 rrb->response.hdr.len = sizeof(rrb->response); in clp_set_pci_fn()
274 if (rrb->response.hdr.rsp == CLP_RC_SETPCIFN_BUSY) { in clp_set_pci_fn()
280 } while (rrb->response.hdr.rsp == CLP_RC_SETPCIFN_BUSY); in clp_set_pci_fn()
282 if (rc || rrb->response.hdr.rsp != CLP_RC_OK) { in clp_set_pci_fn()
284 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_set_pci_fn()
287 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_set_pci_fn()
288 zdev->fh = rrb->response.fh; in clp_set_pci_fn()
289 } else if (!rc && rrb->response.hdr.rsp == CLP_RC_SETPCIFN_ALRDY && in clp_set_pci_fn()
290 rrb->response.fh == 0) { in clp_set_pci_fn()
311 rrb->response.hdr.len = sizeof(rrb->response); in clp_setup_writeback_mio()
314 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_setup_writeback_mio()
315 if (rrb->response.vwb) { in clp_setup_writeback_mio()
316 wb_bit_pos = rrb->response.mio_wb; in clp_setup_writeback_mio()
325 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_setup_writeback_mio()
375 rrb->response.hdr.len = CLP_BLK_SIZE - LIST_PCI_HDR_LEN; in clp_list_pci()
380 if (rc || rrb->response.hdr.rsp != CLP_RC_OK) { in clp_list_pci()
382 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_list_pci()
387 update_uid_checking(rrb->response.uid_checking); in clp_list_pci()
388 WARN_ON_ONCE(rrb->response.entry_size != in clp_list_pci()
391 entries = (rrb->response.hdr.len - LIST_PCI_HDR_LEN) / in clp_list_pci()
392 rrb->response.entry_size; in clp_list_pci()
394 resume_token = rrb->response.resume_token; in clp_list_pci()
396 cb(&rrb->response.fh_list[i], data); in clp_list_pci()
500 lpcb->response.hdr.len > limit) in clp_base_slpc()
520 lpcb->response.hdr.len > limit) in clp_pci_slpc()
530 lpcb->response.hdr.len > limit) in clp_pci_list()
543 lpcb->response.hdr.len > limit) in clp_pci_query()
556 lpcb->response.hdr.len > limit) in clp_pci_query_grp()