dmalen0           210 drivers/staging/comedi/drivers/addi_apci_3120.c 	unsigned int dmalen0 = dmabuf0->size;
dmalen0           221 drivers/staging/comedi/drivers/addi_apci_3120.c 		if (dmalen0 > (cmd->stop_arg * scan_bytes))
dmalen0           222 drivers/staging/comedi/drivers/addi_apci_3120.c 			dmalen0 = cmd->stop_arg * scan_bytes;
dmalen0           223 drivers/staging/comedi/drivers/addi_apci_3120.c 		else if (dmalen1 > (cmd->stop_arg * scan_bytes - dmalen0))
dmalen0           224 drivers/staging/comedi/drivers/addi_apci_3120.c 			dmalen1 = cmd->stop_arg * scan_bytes - dmalen0;
dmalen0           229 drivers/staging/comedi/drivers/addi_apci_3120.c 		if (dmalen0 > scan_bytes) {
dmalen0           230 drivers/staging/comedi/drivers/addi_apci_3120.c 			dmalen0 = scan_bytes;
dmalen0           232 drivers/staging/comedi/drivers/addi_apci_3120.c 				dmalen0 += 2;
dmalen0           243 drivers/staging/comedi/drivers/addi_apci_3120.c 		if (dmalen0 > s->async->prealloc_bufsz)
dmalen0           244 drivers/staging/comedi/drivers/addi_apci_3120.c 			dmalen0 = s->async->prealloc_bufsz;
dmalen0           248 drivers/staging/comedi/drivers/addi_apci_3120.c 	dmabuf0->use_size = dmalen0;
dmalen0           806 drivers/staging/comedi/drivers/adl_pci9118.c 	unsigned int dmalen0 = dmabuf0->size;
dmalen0           812 drivers/staging/comedi/drivers/adl_pci9118.c 	if (dmalen0 > s->async->prealloc_bufsz) {
dmalen0           814 drivers/staging/comedi/drivers/adl_pci9118.c 		dmalen0 = s->async->prealloc_bufsz & ~3L;
dmalen0           823 drivers/staging/comedi/drivers/adl_pci9118.c 		if (dmalen0 < scan_bytes) {
dmalen0           828 drivers/staging/comedi/drivers/adl_pci9118.c 				  dmalen0, scan_bytes);
dmalen0           831 drivers/staging/comedi/drivers/adl_pci9118.c 			dmalen0 = scan_bytes;
dmalen0           832 drivers/staging/comedi/drivers/adl_pci9118.c 			if (dmalen0 < 4) {
dmalen0           835 drivers/staging/comedi/drivers/adl_pci9118.c 					 dmalen0);
dmalen0           836 drivers/staging/comedi/drivers/adl_pci9118.c 				dmalen0 = 4;
dmalen0           864 drivers/staging/comedi/drivers/adl_pci9118.c 		tmp = dmalen0;
dmalen0           865 drivers/staging/comedi/drivers/adl_pci9118.c 		dmalen0 = (dmalen0 / scan_bytes) * scan_bytes;
dmalen0           866 drivers/staging/comedi/drivers/adl_pci9118.c 		dmalen0 &= ~3L;
dmalen0           867 drivers/staging/comedi/drivers/adl_pci9118.c 		if (!dmalen0)
dmalen0           868 drivers/staging/comedi/drivers/adl_pci9118.c 			dmalen0 = tmp;	/* uff. very long scan? */
dmalen0           885 drivers/staging/comedi/drivers/adl_pci9118.c 			if (dmalen0 > scanlen) {
dmalen0           886 drivers/staging/comedi/drivers/adl_pci9118.c 				dmalen0 = scanlen;
dmalen0           887 drivers/staging/comedi/drivers/adl_pci9118.c 				dmalen0 &= ~3L;
dmalen0           890 drivers/staging/comedi/drivers/adl_pci9118.c 				if (dmalen1 > (scanlen - dmalen0)) {
dmalen0           891 drivers/staging/comedi/drivers/adl_pci9118.c 					dmalen1 = scanlen - dmalen0;
dmalen0           900 drivers/staging/comedi/drivers/adl_pci9118.c 	dmabuf0->use_size = dmalen0;