Lines Matching refs:ciph
96 struct ciphdr *ciph; in dvrecv() local
171 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ in dvrecv()
172 if (ciph->fmt != CIP_FMT_DVCR) in dvrecv()
173 errx(1, "unknown format 0x%x", ciph->fmt); in dvrecv()
174 ptr = (u_int32_t *) (ciph + 1); /* skip cip header */ in dvrecv()
176 if (ciph->fdf.dv.cyc != 0xffff && k == 0) { in dvrecv()
177 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc)); in dvrecv()
184 (char *)dv < (char *)(ptr + ciph->len); in dvrecv()
192 system = ciph->fdf.dv.fs; in dvrecv()
263 struct ciphdr *ciph; in dvsend() local
301 ciph = (struct ciphdr *)&hdr[0][1]; in dvsend()
302 ciph->src = 0; /* XXX */ in dvsend()
303 ciph->len = 120; in dvsend()
304 ciph->dbc = 0; in dvsend()
305 ciph->eoh1 = 1; in dvsend()
306 ciph->fdf.dv.cyc = 0xffff; in dvsend()
345 ciph = (struct ciphdr *)&hdr[nhdr][1]; in dvsend()
365 ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac); in dvsend()
367 ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac); in dvsend()
373 ciph->fdf.dv.cyc = 0xffff; in dvsend()
375 ciph->dbc = packets++ % 256; in dvsend()