Home
last modified time | relevance | path

Searched refs:u_long (Results 1 - 25 of 139) sorted by relevance

123456

/third_party/backends/backend/
H A Du12-tpa.c56 u_long i, dwR, dwG, dwB, dwSum; in u12tpa_Reshading()
57 u_long dwIndex, dwIndexRight, dwIndexLeft; in u12tpa_Reshading()
141 (SANE_Byte)(((((u_long) RedPtr.pbrgb [i].Red + in u12tpa_Reshading()
142 (u_long) RedPtr.pbrgb[i + 1].Red + in u12tpa_Reshading()
143 (u_long) RedPtr.pbrgb[i + 2].Red + in u12tpa_Reshading()
144 (u_long) RedPtr.pbrgb[i + 3].Red + in u12tpa_Reshading()
145 (u_long) RedPtr.pbrgb[i + 4].Red + in u12tpa_Reshading()
146 (u_long) RedPtr.pbrgb[i + 5].Red + in u12tpa_Reshading()
147 (u_long) RedPtr.pbrgb[i + 6].Red + in u12tpa_Reshading()
148 (u_long) RedPt in u12tpa_Reshading()
[all...]
H A Du12-scanner.h78 typedef void (*pFnDACOffs)(pU12_Device, pShadingVarDef, u_long);
79 typedef void (*pFnDACDark)(pU12_Device, pShadingVarDef, u_long, u_short);
80 typedef void (*pFnDataProcess)(pU12_Device, void*, void*, u_long);
98 u_long Red;
99 u_long Green;
100 u_long Blue;
116 u_long *pdw;
127 u_long *ulp;
132 u_long *ulp;
137 u_long *ul
[all...]
H A Dplustek-usb.h149 u_long Red;
150 u_long Green;
151 u_long Blue;
308 #define _TPA(register) ((u_long)(register << _TPA_SHIFT))
420 u_long workaroundFlag; /**< Flag to allow special work arounds, see */
422 u_long misc_io; /**< for lamp, papersense and buttons */
539 u_long dwTicksLampOn; /**< The ticks when lamp turns on */
540 u_long dwLampOnPeriod;/**< How many seconds to keep lamp on */
564 u_long dwBytes; /**< bytes per line */
565 u_long dwPixel
[all...]
H A Depson2_net.c73 __func__, (u_long) wanted, (void *) s->netptr, (u_long) s->netlen); in sanei_epson_net_read_buf()
135 (u_long) wanted, (u_long) size); in sanei_epson_net_read()
145 (u_long) s->netlen, (u_long) size); in sanei_epson_net_read()
182 __func__, (void *) s->netbuf, (u_long) s->netlen); in sanei_epson_net_write()
195 (u_long) s->netlen, (void *) s->netbuf); in sanei_epson_net_write()
199 __func__, cmd, (void *) buf, (u_long) buf_size, (u_long) reply_le in sanei_epson_net_write()
[all...]
H A Dsnapscan-usb.c107 fd, (u_long) src,(u_long) src_size,(u_long) dst, (u_long) dst_size,(u_long) (dst_size ? *dst_size : 0)); in snapscani_usb_cmd()
142 fd, (u_long) src,(u_long) src_size,(u_long) dst, (u_long) dst_size,(u_long) (dst_siz in atomic_usb_cmd()
[all...]
H A Dplustek-usbshading.c96 static u_long m_dwPixels;
98 static u_long m_dwIdealGain;
106 u_long dim_x, SANE_Bool color ) in usb_line_statistics()
110 u_long dw, imad, imid, alld, cld, cud; in usb_line_statistics()
671 u_long dwInc, dwDec; in usb_GetNewGain()
685 dwInc = (u_long)((0.93 + ceil (dRatio) * 0.067) * wMax / dAmp); in usb_GetNewGain()
686 dwDec = (u_long)((0.93 + floor (dRatio) * 0.067) * wMax / dAmp); in usb_GetNewGain()
735 static SANE_Bool adjLampSetting( Plustek_Device *dev, int channel, u_long max, in adjLampSetting()
736 u_long ideal, u_short l_on, u_short *l_off ) in adjLampSetting()
739 u_long lamp_o in adjLampSetting()
[all...]
H A Dplustek-usbcalfile.c61 u_long red_light_on;
62 u_long red_light_off;
63 u_long green_light_on;
64 u_long green_light_off;
65 u_long blue_light_on;
66 u_long blue_light_off;
67 u_long green_pwm_duty;
203 usb_ReadSamples( FILE *fp, char *which, u_long *dim, u_short *buffer ) in usb_ReadSamples()
208 u_long val; in usb_ReadSamples()
576 u_short *dark, u_short *white, u_long val in usb_SaveFineCalData()
[all...]
H A Depsonds-net.c82 __func__, (u_long) wanted, (void *) s->netptr, (u_long) s->netlen); in epsonds_net_read_buf()
144 (u_long) wanted, (u_long) size); in epsonds_net_read()
154 (u_long) s->netlen, (u_long) size); in epsonds_net_read()
198 __func__, (void *) s->netbuf, (u_long) s->netlen); in epsonds_net_write()
211 (u_long) s->netlen, (void *) s->netbuf); in epsonds_net_write()
215 __func__, cmd, (void *) buf, (u_long) buf_size, (u_long) reply_le in epsonds_net_write()
[all...]
H A Dplustek-usbcal.c124 (u_long)dev->usbDev.pSource->ShadingOriginY)) { in cano_PrepareToReadWhiteCal()
164 (u_long)dev->usbDev.pSource->DarkShadOrgY ); in cano_PrepareToReadBlackCal()
209 u_long newoff = *off; in cano_adjLampSetting()
260 u_long dw, dwR, dwG, dwB, dwDiv, dwLoop1, dwLoop2; in cano_AdjustLightsource()
262 u_long *scanbuf = dev->scanning.pScanBuffer; in cano_AdjustLightsource()
290 m_ScanParam.Origin.x = (u_short)((u_long) hw->wActivePixelsStart * in cano_AdjustLightsource()
474 cano_adjGainSetting( u_char *min, u_char *max, u_char *gain,u_long val ) in cano_adjGainSetting()
476 u_long newgain = *gain; in cano_adjGainSetting()
512 u_long dw; in cano_AdjustGain()
513 u_long *scanbu in cano_AdjustGain()
[all...]
H A Depson2-io.c50 __func__, (u_long) buf_size, (u_long) reply_len); in e2_send()
152 (u_long) buf_size, (long) n, s->canceling); in e2_recv()
208 DBG(12, "%s: size = %lu\n", __func__, (u_long) buf_size); in e2_cmd_simple()
275 (u_long) *payload_size); in e2_recv_info_block()
298 __func__, params_len, (u_long) reply_len, (void *) buf); in e2_cmd_info_block()
330 __func__, (u_long) reply_len, (u_long) len); in e2_cmd_info_block()
H A Dhs2p.h278 u_long InvalidBytes;
380 _lto2b (u_long val, SANE_Byte * bytes) in _lto2b()
387 _lto3b (u_long val, SANE_Byte * bytes) in _lto3b()
395 _lto4b (u_long val, SANE_Byte * bytes) in _lto4b()
403 static /* inline */ u_long
406 u_long rv; in _2btol()
413 static /* inline */ u_long
416 u_long rv; in _4btol()
H A Dplustek-usbscan.c93 static u_long m_dwPauseLimit;
105 static u_long
106 usb_min( u_long val1, u_long val2 ) in usb_min()
118 static u_long
119 usb_max( u_long val1, u_long val2 ) in usb_max()
399 wDataPixelStart = (u_short)((u_long)sp->Origin.x * in usb_GetScanRect()
490 sp->Origin.y += (u_long)(300UL * in usb_GetScanRect()
494 sp->Origin.y=(u_short)((u_long)s in usb_GetScanRect()
[all...]
H A Dbh.h225 u_long top, left, width, length;
353 u_long InvalidBytes;
360 u_long iconwidth, iconlength;
558 _lto2b(u_long val, SANE_Byte *bytes) in _lto2b()
565 _lto3b(u_long val, SANE_Byte *bytes) in _lto3b()
573 _lto4b(u_long val, SANE_Byte *bytes) in _lto4b()
581 static /* inline */ u_long
584 u_long rv; in _2btol()
591 static /* inline */ u_long
594 u_long r in _4btol()
[all...]
H A Dplustek-usbimg.c220 u_long dw; in usb_AverageColorByte()
249 u_long dw; in usb_AverageColorWord()
266 scan->Red.pcw[dw].Colors[0] = (u_short)(((u_long)scan->Red.pcw[dw].Colors[0] + in usb_AverageColorWord()
267 (u_long)scan->Red.pcw[dw + 1].Colors[0]) / 2); in usb_AverageColorWord()
268 scan->Green.pcw[dw].Colors[0] = (u_short)(((u_long)scan->Green.pcw[dw].Colors[0] + in usb_AverageColorWord()
269 (u_long)scan->Green.pcw[dw + 1].Colors[0]) / 2); in usb_AverageColorWord()
270 scan->Blue.pcw[dw].Colors[0] = (u_short)(((u_long)scan->Blue.pcw[dw].Colors[0] + in usb_AverageColorWord()
271 (u_long)scan->Blue.pcw[dw + 1].Colors[0]) / 2); in usb_AverageColorWord()
288 u_long dw; in usb_AverageGrayByte()
305 u_long d in usb_AverageGrayWord()
[all...]
H A Du12-hwdef.h348 #define _SIZE_DATA_BUF (u_long)(_BYTES_PER_CHANNEL * 3 * 2)
349 #define _SIZE_TPA_DATA_BUF (u_long)(_BYTES_PER_CHANNEL * 3 * 2)
350 #define _SIZE_SHADING_SUM_BUF (u_long)(_BYTES_PER_CHANNEL * 3 * 4)
351 #define _SIZE_TOTAL_BUF (u_long)(_SIZE_DATA_BUF + _SIZE_SHADING_SUM_BUF)
352 #define _SIZE_TOTAL_BUF_TPA (u_long)(_SIZE_TOTAL_BUF + _SIZE_TPA_DATA_BUF)
418 u_long RD_BufFullSize; /* 0x54 */
448 u_long dwDiv;
H A Du12-map.c114 u_long *pdw; in u12map_Adjust()
167 pdw = (u_long*)&buf[0]; in u12map_Adjust()
175 pdw = (u_long*)&buf[4096]; in u12map_Adjust()
183 pdw = (u_long*)&buf[8192]; in u12map_Adjust()
H A Du12-shading.c72 u12shading_DownloadShadingTable( U12_Device *dev, SANE_Byte *buf, u_long len ) in u12shading_DownloadShadingTable()
121 u_long shadingBytes; in u12shadingAdjustShadingWaveform()
157 for( pvar.pdw = (u_long*)dev->scanStates, in u12shadingAdjustShadingWaveform()
285 for( var.dwValue = (u_long)dev->regs.RD_Pixels - _SHADING_BEGINX; in u12shadingAdjustShadingWaveform()
288 pvar.pulrgb->Red += (u_long)*cp.red.usp; in u12shadingAdjustShadingWaveform()
289 pvar.pulrgb->Green += (u_long)*cp.green.usp; in u12shadingAdjustShadingWaveform()
290 pvar.pulrgb->Blue += (u_long)*cp.blue.usp; in u12shadingAdjustShadingWaveform()
297 pvar.pdw = (u_long*)dev->bufs.b2.pSumBuf + _SHADING_BEGINX; in u12shadingAdjustShadingWaveform()
298 for( var.dwValue = (u_long)dev->regs.RD_Pixels - _SHADING_BEGINX; in u12shadingAdjustShadingWaveform()
300 *pvar.pdw += (u_long)*c in u12shadingAdjustShadingWaveform()
[all...]
H A Du12-io.c641 static SANE_Status u12io_ReadMonoData( U12_Device *dev, SANE_Byte *buf, u_long len ) in u12io_ReadMonoData()
658 u12io_ReadColorData( U12_Device *dev, SANE_Byte *buf, u_long len ) in u12io_ReadColorData()
769 static u_long u12io_GetFifoLength( U12_Device *dev ) in u12io_GetFifoLength()
774 u_long len, len_r, len_g, len_b; in u12io_GetFifoLength()
799 len_r = (u_long)data[5] * 256 + (u_long)data[4]; in u12io_GetFifoLength()
800 len_g = (u_long)data[8] * 256 + (u_long)data[7]; in u12io_GetFifoLength()
801 len_b = (u_long)data[11] * 256 + (u_long)dat in u12io_GetFifoLength()
[all...]
H A Depsonds-io.c33 DBG(32, "%s: size = %lu\n", __func__, (u_long) length); in eds_send()
89 (u_long)length, (long)n, s->canceling); in eds_recv()
133 DBG(12, "%s: size = %lu\n", __func__, (u_long) buf_size); in eds_control()
H A Dhp5400_sanei.c285 (u_long) res, (u_long) len); in hp5400_bulk_read()
316 (u_long) res, len); in hp5400_bulk_read_block()
353 HP5400_DBG (DBG_MSG, "Write returned %lu, %d remain\n", (u_long) res, datalen); in hp5400_bulk_command_write()
/third_party/FreeBSD/sys/arm/include/
H A D_bus.h36 typedef u_long bus_addr_t;
37 typedef u_long bus_size_t;
43 typedef u_long bus_space_handle_t;
/third_party/backends/sanei/
H A Dsanei_ab306.c83 u_long base; /* i/o base address */
115 ab306_outb (Port *p, u_long addr, u_char val) in ab306_outb()
120 if ((u_long) lseek (p->port_fd, addr, SEEK_SET) != addr) in ab306_outb()
130 ab306_inb (Port *p, u_long addr) in ab306_inb()
136 if ((u_long) lseek (p->port_fd, addr, SEEK_SET) != addr) in ab306_inb()
150 u_long base = p->base; in ab306_cout()
163 u_long base = p->base; in ab306_cin()
177 u_long base = p->base; in ab306_write()
230 u_long base; in sanei_ab306_open()
458 if ((u_long) lsee in sanei_ab306_rdata()
[all...]
H A Dsanei_wire.c60 DBG (3, "sanei_w_space: %lu bytes for wire %d\n", (u_long) howmuch, fd); in sanei_w_space()
64 "may be flush()\n", (u_long) w->buffer.size); in sanei_w_space()
76 (u_long) (w->buffer.end - w->buffer.curr)); in sanei_w_space()
83 (u_long) nbytes); in sanei_w_space()
99 (u_long) w->buffer.size); in sanei_w_space()
114 (u_long) left_over); in sanei_w_space()
139 (u_long) (w->buffer.end - w->buffer.start)); in sanei_w_space()
165 (u_long) element_size); in sanei_w_array()
254 (u_long) value_size); in sanei_w_ptr()
587 (u_long) ( in sanei_w_set_dir()
[all...]
/third_party/ltp/testcases/kernel/mem/mmapstress/
H A Dmmapstress03.c79 if ((u_long) brk_start % (u_long) pagesize) { in main()
80 if (sbrk(pagesize - ((u_long) brk_start % (u_long) pagesize)) in main()
/third_party/alsa-utils/aplay/
H A Dformats.h15 #define VOC_DATALEN(bp) ((u_long)(bp->datalen) | \
16 ((u_long)(bp->datalen_m) << 8) | \
17 ((u_long)(bp->datalen_h) << 16) )

Completed in 22 milliseconds

123456