/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | outp.c | 35 struct nvkm_outp *outp; in nvkm_outp_route() local 39 if ((outp = ior->arm.outp) && ior->arm.outp != ior->asy.outp) { in nvkm_outp_route() 40 OUTP_DBG(outp, "release %s", ior->name); in nvkm_outp_route() 42 ior->func->route.set(outp, NULL); in nvkm_outp_route() 43 ior->arm.outp = NULL; in nvkm_outp_route() 48 if ((outp = ior->asy.outp)) { in nvkm_outp_route() 49 OUTP_DBG(outp, "acquire %s", ior->name); in nvkm_outp_route() 50 if (ior->asy.outp != ior->arm.outp) { in nvkm_outp_route() 52 ior->func->route.set(outp, ior); in nvkm_outp_route() 53 ior->arm.outp = ior->asy.outp; in nvkm_outp_route() [all …]
|
D | dp.c | 64 OUTP_TRACE(&dp->outp, "status %6ph pc2 %02x", in nvkm_dp_train_sense() 67 OUTP_TRACE(&dp->outp, "status %6ph", lt->stat); in nvkm_dp_train_sense() 77 struct nvkm_ior *ior = dp->outp.ior; in nvkm_dp_train_drive() 107 OUTP_TRACE(&dp->outp, "config lane %d %02x %02x", in nvkm_dp_train_drive() 110 data = nvbios_dpout_match(bios, dp->outp.info.hasht, in nvkm_dp_train_drive() 111 dp->outp.info.hashm, in nvkm_dp_train_drive() 145 OUTP_TRACE(&dp->outp, "training pattern %d", pattern); in nvkm_dp_train_pattern() 146 dp->outp.ior->func->dp.pattern(dp->outp.ior, pattern); in nvkm_dp_train_pattern() 172 for (i = 0; i < lt->dp->outp.ior->dp.nr && eq_done; i++) { in nvkm_dp_train_eq() 200 for (i = 0; i < lt->dp->outp.ior->dp.nr; i++) { in nvkm_dp_train_cr() [all …]
|
D | base.c | 106 struct nvkm_outp *outp; in nvkm_disp_hpd_ctor() local 111 list_for_each_entry(outp, &disp->outp, head) { in nvkm_disp_hpd_ctor() 112 if (ret = -ENXIO, outp->conn->index == req->v0.conn) { in nvkm_disp_hpd_ctor() 113 if (ret = -ENODEV, outp->conn->hpd.event) { in nvkm_disp_hpd_ctor() 221 struct nvkm_outp *outp; in nvkm_disp_fini() local 226 list_for_each_entry(outp, &disp->outp, head) { in nvkm_disp_fini() 227 nvkm_outp_fini(outp); in nvkm_disp_fini() 242 struct nvkm_outp *outp; in nvkm_disp_init() local 249 list_for_each_entry(outp, &disp->outp, head) { in nvkm_disp_init() 250 nvkm_outp_init(outp); in nvkm_disp_init() [all …]
|
D | rootnv50.c | 45 struct nvkm_outp *temp, *outp = NULL; in nv50_disp_root_mthd_() local 76 list_for_each_entry(temp, &disp->base.outp, head) { in nv50_disp_root_mthd_() 79 outp = temp; in nv50_disp_root_mthd_() 83 if (outp == NULL) in nv50_disp_root_mthd_() 95 switch (mthd * !!outp) { in nv50_disp_root_mthd_() 102 ret = nvkm_outp_acquire(outp, NVKM_OUTP_USER, args->v0.hda); in nv50_disp_root_mthd_() 104 args->v0.or = outp->ior->id; in nv50_disp_root_mthd_() 105 args->v0.link = outp->ior->asy.link; in nv50_disp_root_mthd_() 112 nvkm_outp_release(outp, NVKM_OUTP_USER); in nv50_disp_root_mthd_() 122 ret = nvkm_outp_acquire(outp, NVKM_OUTP_PRIV, false); in nv50_disp_root_mthd_() [all …]
|
D | nv50.c | 182 nv50_disp_super_iedt(struct nvkm_head *head, struct nvkm_outp *outp, in nv50_disp_super_iedt() argument 187 const u8 l = ffs(outp->info.link); in nv50_disp_super_iedt() 188 const u16 t = outp->info.hasht; in nv50_disp_super_iedt() 189 const u16 m = (0x0100 << head->id) | (l << 6) | outp->info.or; in nv50_disp_super_iedt() 192 OUTP_DBG(outp, "missing IEDT for %04x:%04x", t, m); in nv50_disp_super_iedt() 202 struct nvkm_outp *outp = ior->asy.outp; in nv50_disp_super_ied_on() local 208 if (!outp) { in nv50_disp_super_ied_on() 214 data = nv50_disp_super_iedt(head, outp, &ver, &hdr, &cnt, &len, &iedt); in nv50_disp_super_ied_on() 231 OUTP_DBG(outp, "missing IEDT RS for %02x:%02x", in nv50_disp_super_ied_on() 239 OUTP_DBG(outp, "missing IEDT RSS %d for %02x:%02x %d khz", in nv50_disp_super_ied_on() [all …]
|
D | sorgm200.c | 49 gm200_sor_route_set(struct nvkm_outp *outp, struct nvkm_ior *ior) in gm200_sor_route_set() argument 51 struct nvkm_device *device = outp->disp->engine.subdev.device; in gm200_sor_route_set() 52 const u32 moff = __ffs(outp->info.or) * 0x100; in gm200_sor_route_set() 56 if (outp->info.sorconf.link & 1) { in gm200_sor_route_set() 61 if (outp->info.sorconf.link & 2) in gm200_sor_route_set() 66 gm200_sor_route_get(struct nvkm_outp *outp, int *link) in gm200_sor_route_get() argument 68 struct nvkm_device *device = outp->disp->engine.subdev.device; in gm200_sor_route_get() 69 const int sublinks = outp->info.sorconf.link; in gm200_sor_route_get() 72 for (*link = 0, m = __ffs(outp->info.or) * 2, s = 0; s < 2; m++, s++) { in gm200_sor_route_get()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | dcb.c | 109 dcb_outp_hasht(struct dcb_output *outp) in dcb_outp_hasht() argument 111 return (outp->extdev << 8) | (outp->location << 4) | outp->type; in dcb_outp_hasht() 115 dcb_outp_hashm(struct dcb_output *outp) in dcb_outp_hashm() argument 117 return (outp->heads << 8) | (outp->link << 6) | outp->or; in dcb_outp_hashm() 122 struct dcb_output *outp) in dcb_outp_parse() argument 125 memset(outp, 0x00, sizeof(*outp)); in dcb_outp_parse() 129 outp->or = (conn & 0x0f000000) >> 24; in dcb_outp_parse() 130 outp->location = (conn & 0x00300000) >> 20; in dcb_outp_parse() 131 outp->bus = (conn & 0x000f0000) >> 16; in dcb_outp_parse() 132 outp->connector = (conn & 0x0000f000) >> 12; in dcb_outp_parse() [all …]
|
D | dp.c | 65 u16 outp = nvbios_rd16(bios, data + *hdr + idx * *len); in nvbios_dpout_entry() local 66 switch (*ver * !!outp) { in nvbios_dpout_entry() 72 *cnt = nvbios_rd08(bios, outp + 0x04); in nvbios_dpout_entry() 84 return outp; in nvbios_dpout_entry() 153 nvbios_dpcfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, in nvbios_dpcfg_entry() argument 157 outp = nvbios_dp_table(bios, ver, hdr, cnt, len); in nvbios_dpcfg_entry() 159 *len = nvbios_rd08(bios, outp + 0x06); in nvbios_dpcfg_entry() 160 *cnt = nvbios_rd08(bios, outp + 0x07) * in nvbios_dpcfg_entry() 161 nvbios_rd08(bios, outp + 0x05); in nvbios_dpcfg_entry() 165 return outp + *hdr + (idx * *len); in nvbios_dpcfg_entry() [all …]
|
D | disp.c | 130 nvbios_ocfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, in nvbios_ocfg_entry() argument 134 return outp + *hdr + (idx * *len); in nvbios_ocfg_entry() 139 nvbios_ocfg_parse(struct nvkm_bios *bios, u16 outp, u8 idx, in nvbios_ocfg_parse() argument 142 u16 data = nvbios_ocfg_entry(bios, outp, idx, ver, hdr, cnt, len); in nvbios_ocfg_parse() 153 nvbios_ocfg_match(struct nvkm_bios *bios, u16 outp, u8 proto, u8 flags, in nvbios_ocfg_match() argument 157 while ((data = nvbios_ocfg_parse(bios, outp, idx++, ver, hdr, cnt, len, info))) { in nvbios_ocfg_match()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_dp.c | 41 struct nouveau_encoder *outp) in nouveau_dp_has_sink_count() argument 43 return drm_dp_read_sink_count_cap(connector, outp->dp.dpcd, &outp->dp.desc); in nouveau_dp_has_sink_count() 48 struct nouveau_encoder *outp) in nouveau_dp_probe_dpcd() argument 55 u8 *dpcd = outp->dp.dpcd; in nouveau_dp_probe_dpcd() 61 ret = drm_dp_read_desc(aux, &outp->dp.desc, drm_dp_is_branch(dpcd)); in nouveau_dp_probe_dpcd() 66 mstm = outp->dp.mstm; in nouveau_dp_probe_dpcd() 71 if (nouveau_dp_has_sink_count(connector, outp)) { in nouveau_dp_probe_dpcd() 76 outp->dp.sink_count = ret; in nouveau_dp_probe_dpcd() 82 if (!outp->dp.sink_count) in nouveau_dp_probe_dpcd() 87 outp->dp.downstream_ports); in nouveau_dp_probe_dpcd() [all …]
|
D | nouveau_encoder.h | 93 struct nouveau_encoder *outp; member 144 nv50_outp_get_new_connector(struct nouveau_encoder *outp, 147 nv50_outp_get_old_connector(struct nouveau_encoder *outp,
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/ |
D | nv50.c | 32 u32 *outp; member 59 if ((ctx->outp[0] & 0x0000000f) != ctx->desc.outp_type) in mxm_match_dcb() 69 if ((ctx->outp[0] & 0x0f000000) != (link & 0x0f) << 24) in mxm_match_dcb() 74 if ((link & ((ctx->outp[1] & 0x00000030) >> 4)) != link) in mxm_match_dcb() 98 struct context ctx = { .outp = (u32 *)(bios->data + pdcb) }; in mxm_dcb_sanitise_entry() 107 idx, ctx.outp[0], ctx.outp[1]); in mxm_dcb_sanitise_entry() 108 ctx.outp[0] |= 0x0000000f; in mxm_dcb_sanitise_entry() 117 if ((ctx.outp[0] & 0x0000000f) != DCB_OUTPUT_DP) in mxm_dcb_sanitise_entry() 123 ctx.outp[0] &= ~0x000000f0; in mxm_dcb_sanitise_entry() 124 ctx.outp[0] |= i2cidx; in mxm_dcb_sanitise_entry() [all …]
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | disp.c | 453 nv50_outp_get_new_connector(struct nouveau_encoder *outp, in nv50_outp_get_new_connector() argument 458 struct drm_encoder *encoder = to_drm_encoder(outp); in nv50_outp_get_new_connector() 470 nv50_outp_get_old_connector(struct nouveau_encoder *outp, in nv50_outp_get_old_connector() argument 475 struct drm_encoder *encoder = to_drm_encoder(outp); in nv50_outp_get_old_connector() 947 return msto->mstc->mstm->outp; in nv50_real_outp() 964 mstm->outp->base.base.name, i, payload->vcpi, in nv50_msto_payload() 1007 .base.hasht = mstm->outp->dcb->hasht, in nv50_msto_prepare() 1008 .base.hashm = (0xf0ff & mstm->outp->dcb->hashm) | in nv50_msto_prepare() 1121 nv50_outp_acquire(mstm->outp, false /*XXX: MST audio.*/); in nv50_msto_enable() 1123 if (mstm->outp->link & 1) in nv50_msto_enable() [all …]
|
D | crc.c | 414 struct nouveau_encoder *outp; in nv50_crc_atomic_check_outp() local 421 outp = nv50_real_outp(enc); in nv50_crc_atomic_check_outp() 422 if (!outp) in nv50_crc_atomic_check_outp() 425 encoder = &outp->base.base; in nv50_crc_atomic_check_outp() 434 list_for_each_entry(outp_atom, &atom->outp, head) { in nv50_crc_atomic_check_outp() 448 nv50_crc_source_type(struct nouveau_encoder *outp, in nv50_crc_source_type() argument 451 struct dcb_output *dcbe = outp->dcb; in nv50_crc_source_type() 476 struct nouveau_encoder *outp; in nv50_crc_atomic_set() local 483 outp = nv50_real_outp(encoder); in nv50_crc_atomic_set() 484 if (!outp) in nv50_crc_atomic_set() [all …]
|
D | sorc37d.c | 43 sorc37d_get_caps(struct nv50_disp *disp, struct nouveau_encoder *outp, int or) in sorc37d_get_caps() argument 47 outp->caps.dp_interlace = !!(tmp & 0x04000000); in sorc37d_get_caps()
|
D | sor907d.c | 46 sor907d_get_caps(struct nv50_disp *disp, struct nouveau_encoder *outp, int or) in sor907d_get_caps() argument 50 outp->caps.dp_interlace = in sor907d_get_caps()
|
D | pior507d.c | 50 pior507d_get_caps(struct nv50_disp *disp, struct nouveau_encoder *outp, in pior507d_get_caps() argument 53 outp->caps.dp_interlace = true; in pior507d_get_caps()
|
D | sor507d.c | 50 sor507d_get_caps(struct nv50_disp *core, struct nouveau_encoder *outp, int or) in sor507d_get_caps() argument 52 outp->caps.dp_interlace = true; in sor507d_get_caps()
|
/drivers/net/fddi/skfp/ |
D | drvfbi.c | 100 outp(ADDR(B0_CTRL), CTRL_HPI_SET) ; in card_start() 105 outp(ADDR(B0_CTRL),CTRL_RST_SET) ; /* reset for all chips */ in card_start() 108 outp(ADDR(B0_CTRL), CTRL_RST_CLR) ; in card_start() 113 outp(ADDR(B0_TST_CTRL), TST_CFG_WRITE_ON) ; /* enable for writes */ in card_start() 116 outp(ADDR(B0_TST_CTRL), TST_CFG_WRITE_OFF) ; /* disable writes */ in card_start() 123 outp(ADDR(B0_CTRL), CTRL_MRST_CLR|CTRL_HPI_CLR) ; in card_start() 147 outp(ADDR(B0_CTRL),CTRL_RST_CLR) ; /* clear the reset chips */ in card_start() 148 outp(ADDR(B0_LED),LED_GA_OFF|LED_MY_ON|LED_GB_OFF) ; /* ye LED on */ in card_start() 170 outp(ADDR(B0_CTRL), CTRL_HPI_SET) ; in card_stop() 175 outp(ADDR(B0_CTRL),CTRL_RST_SET) ; /* reset for all chips */ in card_stop() [all …]
|
/drivers/hwtracing/intel_th/ |
D | sth.c | 73 u64 __iomem *outp = &out->Dn; in sth_stm_packet() local 108 outp = (u64 __iomem *)&out->FLAG_TS; in sth_stm_packet() 110 outp = (u64 __iomem *)&out->FLAG; in sth_stm_packet() 113 writeb_relaxed(0, outp); in sth_stm_packet() 118 outp = &out->USER_TS; in sth_stm_packet() 120 outp = &out->USER; in sth_stm_packet() 121 sth_iowrite(outp, payload, size); in sth_stm_packet() 125 outp = &out->Dn; in sth_stm_packet() 128 outp += 2; in sth_stm_packet() 130 outp++; in sth_stm_packet() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
D | nv50.c | 129 struct dcb_output outp; in nv50_devinit_init() local 137 while (init->base.post && dcb_outp_parse(bios, i, &ver, &hdr, &outp)) { in nv50_devinit_init() 138 if (nvbios_outp_match(bios, outp.hasht, outp.hashm, in nv50_devinit_init() 141 init.outp = &outp; in nv50_devinit_init() 142 init.or = ffs(outp.or) - 1; in nv50_devinit_init() 143 init.link = outp.sorconf.link == 2; in nv50_devinit_init()
|
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | disp.h | 34 u16 nvbios_ocfg_entry(struct nvkm_bios *, u16 outp, u8 idx, 36 u16 nvbios_ocfg_parse(struct nvkm_bios *, u16 outp, u8 idx, 38 u16 nvbios_ocfg_match(struct nvkm_bios *, u16 outp, u8 proto, u8 flags,
|
/drivers/scsi/lpfc/ |
D | lpfc_ct.c | 316 struct lpfc_dmabuf *inp, struct lpfc_dmabuf *outp, in lpfc_gen_req() argument 347 geniocb->context2 = (uint8_t *) outp; in lpfc_gen_req() 667 struct lpfc_dmabuf *outp; in lpfc_cmpl_ct_cmd_gid_ft() local 680 outp = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_cmpl_ct_cmd_gid_ft() 765 CTrsp = (struct lpfc_sli_ct_request *) outp->virt; in lpfc_cmpl_ct_cmd_gid_ft() 778 outp, in lpfc_cmpl_ct_cmd_gid_ft() 876 struct lpfc_dmabuf *outp; in lpfc_cmpl_ct_cmd_gid_pt() local 889 outp = (struct lpfc_dmabuf *)cmdiocb->context2; in lpfc_cmpl_ct_cmd_gid_pt() 971 CTrsp = (struct lpfc_sli_ct_request *)outp->virt; in lpfc_cmpl_ct_cmd_gid_pt() 984 outp, in lpfc_cmpl_ct_cmd_gid_pt() [all …]
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | disp.h | 172 struct dcb_output *outp, int crtc) in nouveau_bios_run_init_table() argument 175 init.outp = outp; in nouveau_bios_run_init_table()
|
/drivers/media/usb/au0828/ |
D | au0828-video.c | 313 unsigned char *outp, unsigned long len) in au0828_copy_video() argument 330 fieldstart = outp; in au0828_copy_video() 332 fieldstart = outp + bytesperline; in au0828_copy_video() 341 if ((char *)startwrite + lencopy > (char *)outp + buf->length) { in au0828_copy_video() 344 ((char *)outp + buf->length)); in au0828_copy_video() 345 remain = (char *)outp + buf->length - (char *)startwrite; in au0828_copy_video() 362 if ((char *)startwrite + lencopy > (char *)outp + in au0828_copy_video() 366 ((char *)outp + buf->length)); in au0828_copy_video() 367 lencopy = remain = (char *)outp + buf->length - in au0828_copy_video() 380 if (outp[0] < 0x60 && outp[1440] < 0x60) in au0828_copy_video() [all …]
|