Lines Matching refs:cip_header
494 static void generate_cip_header(struct amdtp_stream *s, __be32 cip_header[2], in generate_cip_header()
497 cip_header[0] = cpu_to_be32(READ_ONCE(s->source_node_id_field) | in generate_cip_header()
501 cip_header[1] = cpu_to_be32(CIP_EOH | in generate_cip_header()
514 __be32 *cip_header; in build_it_pkt_header() local
520 cip_header = (__be32 *)params->header; in build_it_pkt_header()
521 generate_cip_header(s, cip_header, data_block_counter, syt); in build_it_pkt_header()
525 cip_header = NULL; in build_it_pkt_header()
528 trace_amdtp_packet(s, cycle, cip_header, payload_length, data_blocks, in build_it_pkt_header()
537 u32 cip_header[2]; in check_cip_header() local
544 cip_header[0] = be32_to_cpu(buf[0]); in check_cip_header()
545 cip_header[1] = be32_to_cpu(buf[1]); in check_cip_header()
551 if ((((cip_header[0] & CIP_EOH_MASK) == CIP_EOH) || in check_cip_header()
552 ((cip_header[1] & CIP_EOH_MASK) != CIP_EOH)) && in check_cip_header()
556 cip_header[0], cip_header[1]); in check_cip_header()
561 sph = (cip_header[0] & CIP_SPH_MASK) >> CIP_SPH_SHIFT; in check_cip_header()
562 fmt = (cip_header[1] & CIP_FMT_MASK) >> CIP_FMT_SHIFT; in check_cip_header()
566 cip_header[0], cip_header[1]); in check_cip_header()
571 fdf = (cip_header[1] & CIP_FDF_MASK) >> CIP_FDF_SHIFT; in check_cip_header()
577 (cip_header[0] & CIP_DBS_MASK) >> CIP_DBS_SHIFT; in check_cip_header()
582 cip_header[0]); in check_cip_header()
593 dbc = cip_header[0] & CIP_DBC_MASK; in check_cip_header()
623 *syt = cip_header[1] & CIP_SYT_MASK; in check_cip_header()
635 const __be32 *cip_header; in parse_ir_ctx_header() local
654 cip_header = ctx_header + 2; in parse_ir_ctx_header()
655 err = check_cip_header(s, cip_header, *payload_length, in parse_ir_ctx_header()
660 cip_header = NULL; in parse_ir_ctx_header()
670 trace_amdtp_packet(s, cycle, cip_header, *payload_length, *data_blocks, in parse_ir_ctx_header()