Lines Matching refs:adp
106 rc = crystalhd_create_dio_pool(ctx->adp, BC_LINK_MAX_SGLS);
137 crystalhd_pci_cfg_rd(ctx->adp, 0, 2,
139 crystalhd_pci_cfg_rd(ctx->adp, 2, 2,
141 crystalhd_pci_cfg_rd(ctx->adp, 8, 1,
152 idata->udata.u.regAcc.Value = bc_dec_reg_rd(ctx->adp,
163 bc_dec_reg_wr(ctx->adp, idata->udata.u.regAcc.Offset,
175 idata->udata.u.regAcc.Value = crystalhd_reg_rd(ctx->adp,
186 crystalhd_reg_wr(ctx->adp, idata->udata.u.regAcc.Offset,
204 sts = crystalhd_mem_rd(ctx->adp, idata->udata.u.devMem.StartOff,
224 sts = crystalhd_mem_wr(ctx->adp, idata->udata.u.devMem.StartOff,
245 return crystalhd_pci_cfg_rd(ctx->adp, off, len, temp);
251 sts = crystalhd_pci_cfg_rd(ctx->adp, off, len, &temp[ix]);
277 return crystalhd_pci_cfg_wr(ctx->adp, off, len, temp[0]);
283 sts = crystalhd_pci_cfg_wr(ctx->adp, off, len, temp[ix]);
309 sts = crystalhd_download_fw(ctx->adp, (uint8_t *)idata->add_cdata,
527 sts = crystalhd_map_dio(ctx->adp, ubuff, ub_sz, 0, 0, 1, &dio_hnd);
538 crystalhd_unmap_dio(ctx->adp, dio_hnd);
566 sts = crystalhd_map_dio(ctx->adp, ubuff, ub_sz, uv_off,
578 crystalhd_unmap_dio(ctx->adp, dio_hnd);
637 crystalhd_unmap_dio(ctx->adp, dio);
681 crystalhd_unmap_dio(ctx->adp, dio);
880 crystalhd_hw_open(&ctx->hw_ctx, ctx->adp);
913 crystalhd_destroy_dio_pool(ctx->adp);
928 * @adp: Adapter context
936 struct crystalhd_adp *adp)
940 if (!ctx || !adp) {
945 if (ctx->adp)
948 ctx->adp = adp;
956 crystalhd_hw_open(&ctx->hw_ctx, ctx->adp);
974 ctx->adp = NULL;
1041 return crystalhd_hw_interrupt(ctx->adp, &ctx->hw_ctx);