Lines Matching refs:nego

577 	u32 nego = 0;  in mptspi_getRP()  local
579 nego |= spi_iu(starget) ? MPI_SCSIDEVPAGE1_RP_IU : 0; in mptspi_getRP()
580 nego |= spi_dt(starget) ? MPI_SCSIDEVPAGE1_RP_DT : 0; in mptspi_getRP()
581 nego |= spi_qas(starget) ? MPI_SCSIDEVPAGE1_RP_QAS : 0; in mptspi_getRP()
582 nego |= spi_hold_mcs(starget) ? MPI_SCSIDEVPAGE1_RP_HOLD_MCS : 0; in mptspi_getRP()
583 nego |= spi_wr_flow(starget) ? MPI_SCSIDEVPAGE1_RP_WR_FLOW : 0; in mptspi_getRP()
584 nego |= spi_rd_strm(starget) ? MPI_SCSIDEVPAGE1_RP_RD_STRM : 0; in mptspi_getRP()
585 nego |= spi_rti(starget) ? MPI_SCSIDEVPAGE1_RP_RTI : 0; in mptspi_getRP()
586 nego |= spi_pcomp_en(starget) ? MPI_SCSIDEVPAGE1_RP_PCOMP_EN : 0; in mptspi_getRP()
588nego |= (spi_period(starget) << MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD) & MPI_SCSIDEVPAGE1_RP_… in mptspi_getRP()
589nego |= (spi_offset(starget) << MPI_SCSIDEVPAGE1_RP_SHIFT_MAX_SYNC_OFFSET) & MPI_SCSIDEVPAGE1_RP_M… in mptspi_getRP()
590 nego |= spi_width(starget) ? MPI_SCSIDEVPAGE1_RP_WIDE : 0; in mptspi_getRP()
592 return nego; in mptspi_getRP()
597 int nego; in mptspi_read_parameters() local
602 nego = le32_to_cpu(spi_dev_pg0.NegotiatedParameters); in mptspi_read_parameters()
604 spi_iu(starget) = (nego & MPI_SCSIDEVPAGE0_NP_IU) ? 1 : 0; in mptspi_read_parameters()
605 spi_dt(starget) = (nego & MPI_SCSIDEVPAGE0_NP_DT) ? 1 : 0; in mptspi_read_parameters()
606 spi_qas(starget) = (nego & MPI_SCSIDEVPAGE0_NP_QAS) ? 1 : 0; in mptspi_read_parameters()
607 spi_wr_flow(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WR_FLOW) ? 1 : 0; in mptspi_read_parameters()
608 spi_rd_strm(starget) = (nego & MPI_SCSIDEVPAGE0_NP_RD_STRM) ? 1 : 0; in mptspi_read_parameters()
609 spi_rti(starget) = (nego & MPI_SCSIDEVPAGE0_NP_RTI) ? 1 : 0; in mptspi_read_parameters()
610 spi_pcomp_en(starget) = (nego & MPI_SCSIDEVPAGE0_NP_PCOMP_EN) ? 1 : 0; in mptspi_read_parameters()
611 spi_hold_mcs(starget) = (nego & MPI_SCSIDEVPAGE0_NP_HOLD_MCS) ? 1 : 0; in mptspi_read_parameters()
612 …spi_period(starget) = (nego & MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK) >> MPI_SCSIDEVPAGE0_NP_SHI… in mptspi_read_parameters()
613 …spi_offset(starget) = (nego & MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK) >> MPI_SCSIDEVPAGE0_NP_SHI… in mptspi_read_parameters()
614 spi_width(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WIDE) ? 1 : 0; in mptspi_read_parameters()
938 u32 nego; in mptspi_write_offset() local
951 nego = mptspi_getRP(starget); in mptspi_write_offset()
953 pg1.RequestedParameters = cpu_to_le32(nego); in mptspi_write_offset()
963 u32 nego; in mptspi_write_period() local
983 nego = mptspi_getRP(starget); in mptspi_write_period()
985 pg1.RequestedParameters = cpu_to_le32(nego); in mptspi_write_period()
995 u32 nego; in mptspi_write_dt() local
1005 nego = mptspi_getRP(starget); in mptspi_write_dt()
1008 pg1.RequestedParameters = cpu_to_le32(nego); in mptspi_write_dt()
1018 u32 nego; in mptspi_write_iu() local
1028 nego = mptspi_getRP(starget); in mptspi_write_iu()
1030 pg1.RequestedParameters = cpu_to_le32(nego); in mptspi_write_iu()
1041 u32 nego; \
1045 nego = mptspi_getRP(starget); \
1047 pg1.RequestedParameters = cpu_to_le32(nego); \
1066 u32 nego; in MPTSPI_SIMPLE_TRANSPORT_PARM() local
1074 nego = mptspi_getRP(starget); in MPTSPI_SIMPLE_TRANSPORT_PARM()
1076 pg1.RequestedParameters = cpu_to_le32(nego); in MPTSPI_SIMPLE_TRANSPORT_PARM()
1086 u32 nego; in mptspi_write_width() local
1096 nego = mptspi_getRP(starget); in mptspi_write_width()
1098 pg1.RequestedParameters = cpu_to_le32(nego); in mptspi_write_width()
1265 u32 nego; in mptspi_dv_renegotiate_work() local
1275 nego = mptspi_getRP(starget); in mptspi_dv_renegotiate_work()
1276 pg1.RequestedParameters = cpu_to_le32(nego); in mptspi_dv_renegotiate_work()