static void
ncr5380_minphys(struct buf *bp)
{
    if (bp->b_bcount > MIN_PHYS)
	bp->b_bcount = MIN_PHYS;
    minphys(bp);
}
Exemple #2
0
void
wdc_atapi_minphys (struct buf *bp, struct scsi_link *sl)
{
	if (bp->b_bcount > MAX_SIZE)
		bp->b_bcount = MAX_SIZE;
	minphys(bp);
}
Exemple #3
0
void
umass_scsi_minphys(struct buf *bp, struct scsi_link *sl)
{
	if (bp->b_bcount > UMASS_MAX_TRANSFER_SIZE)
		bp->b_bcount = UMASS_MAX_TRANSFER_SIZE;

	minphys(bp);
}
Exemple #4
0
static void
wdc_atapi_minphys(struct buf *bp)
{

	if (bp->b_bcount > MAX_SIZE)
		bp->b_bcount = MAX_SIZE;
	minphys(bp);
}
Exemple #5
0
static void
se_minphys(struct buf *bp)
{

	if (bp->b_bcount > MAX_DMA_LEN)
		bp->b_bcount = MAX_DMA_LEN;

	minphys(bp);
}
Exemple #6
0
/*
 * default minphys routine for esc based controllers
 */
void
esc_minphys(struct buf *bp)
{

	/*
	 * No max transfer at this level.
	 */
	minphys(bp);
}
void
spifi_minphys(struct buf *bp)
{

	if (bp->b_bcount > 64 * 1024)
		bp->b_bcount = 64 * 1024;

	minphys(bp);
}
Exemple #8
0
/*
 * Adjust the size of a transfer.
 */
static void
ldminphys(struct buf *bp)
{
	struct ld_softc *sc;

	sc = device_lookup(&ld_cd, DISKUNIT(bp->b_dev));

	if (bp->b_bcount > sc->sc_maxxfer)
		bp->b_bcount = sc->sc_maxxfer;
	minphys(bp);
}
Exemple #9
0
Static void
umass_scsipi_minphys(struct buf *bp)
{
#ifdef DIAGNOSTIC
	if (bp->b_bcount <= 0) {
		printf("umass_scsipi_minphys count(%d) <= 0\n",
		       bp->b_bcount);
		bp->b_bcount = UMASS_MAX_TRANSFER_SIZE;
	}
#endif
	if (bp->b_bcount > UMASS_MAX_TRANSFER_SIZE)
		bp->b_bcount = UMASS_MAX_TRANSFER_SIZE;
	minphys(bp);
}
/*
 * limit the transfer as required.
 */
void
asc_minphys(struct buf *bp)
{
#if 0
	/*
	 * We must limit the DMA xfer size
	 */
	if (bp->b_bcount > MAX_DMA_LEN) {
		printf("asc: Reducing DMA length\n");
		bp->b_bcount = MAX_DMA_LEN;
	}
#endif
	minphys(bp);
}
void
ahd_minphys(struct buf *bp, struct scsi_link *sl)
{
    /*
     * Even though the card can transfer up to 16megs per command
     * we are limited by the number of segments in the dma segment
     * list that we can hold.  The worst case is that all pages are
     * discontinuous physically, hence the "page per segment" limit
     * enforced here.
     */
    if (bp->b_bcount > ((AHD_NSEG - 1) * PAGE_SIZE)) {
        bp->b_bcount = ((AHD_NSEG - 1) * PAGE_SIZE);
    }
    minphys(bp);
}
Exemple #12
0
static void
sw_minphys(struct buf *bp)
{

	if (bp->b_bcount > MAX_DMA_LEN) {
#ifdef DEBUG
		if (sw_debug) {
			printf("sw_minphys len = 0x%x.\n", MAX_DMA_LEN);
			Debugger();
		}
#endif
		bp->b_bcount = MAX_DMA_LEN;
	}
	minphys(bp);
}
/* ARGSUSED */
static int
_raw_maxfbas(dev_t dev, int flag, nsc_size_t *ptr)
{
	struct buf *bp;
	if (flag == NSC_CACHEBLK)
		*ptr = 1;
	else {
		if (nsc_rawmaxfbas == 0) {
			bp = getrbuf(KM_SLEEP);
			bp->b_bcount = 4096 * 512;
			minphys(bp);
			nsc_rawmaxfbas = FBA_NUM(bp->b_bcount);
			freerbuf(bp);
		}
		*ptr = nsc_rawmaxfbas;
	}
	return (0);
}