Lines Matching defs:size

135 static SANE_Int data_lsb_get (SANE_Byte * address, SANE_Int size);
136 static void data_lsb_set (SANE_Byte * address, SANE_Int data, SANE_Int size);
137 static void data_msb_set (SANE_Byte * address, SANE_Int data, SANE_Int size);
140 static SANE_Int data_swap_endianess (SANE_Int address, SANE_Int size);
147 SANE_Int size);
174 SANE_Int size, SANE_Int options);
176 SANE_Int size, SANE_Int options);
178 SANE_Int options, SANE_Int size,
185 SANE_Int options, SANE_Int size,
197 SANE_Int size);
297 SANE_Int data, SANE_Int size);
300 SANE_Byte Channel_size, SANE_Int size,
359 SANE_Byte * gammatable, SANE_Int size);
515 SANE_Int size, SANE_Int data);
517 SANE_Int size, SANE_Int data);
534 SANE_Int size, SANE_Int depth);
553 SANE_Byte * fuente, SANE_Int size);
1554 /* validate area size to scan */
3571 /* Gamma table size = 0x100 */
4235 SANE_Int size, SANE_Byte * buffer)
4240 "+ RTS_DMA_Read(dmacs=%04x, options=%04x, size=%i., *buffer):\n",
4241 dmacs, options, size);
4244 if ((buffer != NULL) && (size > 0))
4250 if (RTS_DMA_Enable_Read (dev, dmacs, size, options) == OK)
4255 Bulk_Operation (dev, BLK_READ, size, buffer, &transferred);
4267 SANE_Int size, SANE_Byte * buffer)
4272 "+ RTS_DMA_Write(dmacs=%04x, options=%04x, size=%i., *buffer):\n",
4273 dmacs, options, size);
4276 if ((buffer != NULL) && (size > 0))
4282 if (RTS_DMA_Enable_Write (dev, dmacs, size, options) == OK)
4287 check_buffer = (SANE_Byte *) malloc (size);
4295 Bulk_Operation (dev, BLK_WRITE, size, buffer,
4299 if (RTS_DMA_Enable_Read (dev, dmacs, size, options) ==
4305 Bulk_Operation (dev, BLK_READ, size, check_buffer,
4309 while ((b < size) && (diff == FALSE))
4325 (dev, dmacs, size, options) != OK)
4346 Bulk_Operation (dev, BLK_WRITE, size, buffer, &transferred);
4749 /* get size for gamma tables */
5255 data_lsb_get (SANE_Byte * address, SANE_Int size)
5258 if ((address != NULL) && (size > 0) && (size < 5))
5262 size--;
5263 for (a = size; a >= 0; a--)
5323 mask is 4 bytes size
5368 data_lsb_set (SANE_Byte * address, SANE_Int data, SANE_Int size)
5370 if ((address != NULL) && (size > 0) && (size < 5))
5373 for (a = 0; a < size; a++)
5382 data_msb_set (SANE_Byte * address, SANE_Int data, SANE_Int size)
5384 if ((address != NULL) && (size > 0) && (size < 5))
5388 for (a = size - 1; a >= 0; a--)
5397 data_swap_endianess (SANE_Int address, SANE_Int size)
5401 if ((size > 0) && (size < 5))
5405 for (a = 0; a < size; a++)
6197 SANE_Byte * gammatable, SANE_Int size)
6201 DBG (DBG_FNC, "+ Gamma_SendTables(*Regs, *gammatable, size=%i):\n", size);
6203 if ((gammatable != NULL) && (size > 0))
6216 mybuffer = (SANE_Byte *) malloc (sizeof (SANE_Byte) * size);
6228 /* Send size to write */
6229 if (RTS_DMA_Enable_Write (dev, 0x0000, size, first_table) ==
6234 (dev, BLK_WRITE, size, gammatable,
6237 /* Send size to read */
6239 (dev, 0x0000, size, first_table) == OK)
6243 (dev, BLK_READ, size, mybuffer,
6247 while ((cont < size) && (retry == FALSE))
6288 SANE_Int size = 768;
6290 if (RTS_DMA_Enable_Read (dev, 0x0000, size, 0) == OK)
6297 Bulk_Operation (dev, BLK_READ, size, Gamma_buffer, &transferred);
6454 /* value is 4 bytes size starting from address 0x21 in msb format */
6463 /* value is 4 bytes size starting from address 0x21 in lsb format */
6500 /* value is 4 bytes size starting from address 0x21 in msb format */
6504 /* value is 4 bytes size starting from address 0x21 in lsb format */
7355 SANE_Int size)
7364 DBG (DBG_FNC, "> Split_into_12bit_channels(*destino, *fuente, size=%i\n",
7365 size);
7369 if ((size - (size & 0x03)) != 0)
7373 C = (size - (size & 0x03) + 3) / 4;
7387 /**/ if ((size & 0x03) != 0)
7719 /* Get channels per dot and channel's size in bytes */
7749 /* Check if we have already notify buffer size */
8531 /* set step size */
8844 table_size = (resolution_ratio * scancfg->coord.width) * 2; /* black shading buffer size? */
8848 table_size += (resolution_ratio * scancfg->coord.width) * 2; /* white shading buffer size? */
9484 Calib_WriteTable (struct st_device *dev, SANE_Byte * table, SANE_Int size,
9489 DBG (DBG_FNC, "+ Calib_WriteTable(*table, size=%i):\n", size);
9491 if ((table != NULL) && (size > 0))
9497 /* Send size to write */
9498 if (RTS_DMA_Enable_Write (dev, 0x0004, size, data) == OK)
9500 rst = Bulk_Operation (dev, BLK_WRITE, size, table, &transferred);
9510 Calib_ReadTable (struct st_device *dev, SANE_Byte * table, SANE_Int size,
9515 DBG (DBG_FNC, "+ Calib_ReadTable(*table, size=%i):\n", size);
9517 if ((table != NULL) && (size > 0))
9523 /* Send size to read */
9524 if (RTS_DMA_Enable_Read (dev, 0x0004, size, data) == OK)
9526 rst = Bulk_Operation (dev, BLK_READ, size, table, &transferred);
9558 SANE_Int size;
9639 size =
9642 value4 = (tablelength + size) | val_lineart;
9645 size =
9648 value4 = (tablelength + size) | val_gray;
9651 size = _B0 (Regs[0x1ba]);
9652 value4 = (tablelength + size) | val_color;
9734 /* Send size to write */
9797 /* Send size to write */
10113 SANE_Int size)
10117 DBG (DBG_FNC, "+ Reading_BufferSize_Notify(data=%i, size=%i):\n", data,
10118 size);
10120 rst = RTS_DMA_Enable_Read (dev, 0x0008, size, data);
10129 SANE_Byte Channel_size, SANE_Int size, SANE_Int * last_amount,
10138 "+ Reading_Wait(Channels_per_dot=%i, Channel_size=%i, size=%i, *last_amount, seconds=%i, op=%i):\n",
10139 Channels_per_dot, Channel_size, size, seconds, op);
10146 if (myAmount < size)
10161 if (((myAmount + 0x450) > size)
10166 if (myAmount < size)
11679 /* Allocate space for image | size = 132912 */
12075 Chipset_Name (struct st_device *dev, char *name, SANE_Int size)
12081 strncpy (name, dev->chipset->name, size);
14042 /* set set table size */
14230 RTS_DMA_Enable_Read (struct st_device *dev, SANE_Int dmacs, SANE_Int size,
14237 "+ RTS_DMA_Enable_Read(dmacs=0x%04x, size=%i, options=0x%06x)\n",
14238 dmacs, size, options);
14242 /* buffer size divided by 2 (words count) */
14243 data_lsb_set (&buffer[3], size / 2, 3);
14253 RTS_DMA_Enable_Write (struct st_device *dev, SANE_Int dmacs, SANE_Int size,
14260 "+ RTS_DMA_Enable_Write(dmacs=0x%04x, size=%i, options=0x%06x)\n",
14261 dmacs, size, options);
14265 /* buffer size divided by 2 (words count) */
14266 data_lsb_set (&buffer[3], size / 2, 3);
14394 SANE_Byte * data, SANE_Int size)
14398 DBG (DBG_FNC, "+ RTS_EEPROM_WriteBuffer(address=%04x, data, size=%i):\n",
14399 address, size);
14401 rst = IWrite_Buffer (usb_handle, address, data, size, 0x200);
14409 WShading_Emulate (SANE_Byte * buffer, SANE_Int * chnptr, SANE_Int size,
14425 while (pos < size)