Home
last modified time | relevance | path

Searched refs:mud (Results 1 - 18 of 18) sorted by relevance

/third_party/nghttp2/tests/
H A Dmalloc_wrapper.c42 static void *my_malloc(size_t size, void *mud) { in my_malloc() argument
43 (void)mud; in my_malloc()
49 static void my_free(void *ptr, void *mud) { in my_free() argument
50 (void)mud; in my_free()
55 static void *my_calloc(size_t nmemb, size_t size, void *mud) { in my_calloc() argument
56 (void)mud; in my_calloc()
62 static void *my_realloc(void *ptr, size_t size, void *mud) { in my_realloc() argument
63 (void)mud; in my_realloc()
/third_party/backends/backend/
H A Dibm.c203 mup.mud[0] = (DEFAULT_MUD >> 8) & 0xff; in attach()
204 mup.mud[1] = (DEFAULT_MUD & 0xff); in attach()
298 dev->info.mud = _2btol(mup.mud); in attach()
299 if (dev->info.mud == 0) { in attach()
305 dev->info.mud = DEFAULT_MUD; in attach()
309 dev->info.mud = DEFAULT_MUD; in attach()
331 DBG (5, "mud=%d\n", dev->info.mud); in attach()
900 s->params.pixels_per_line = width * xres / s->hw->info.mud; in sane_get_parameters()
[all...]
H A Dricoh.c176 mup.mud[0] = (DEFAULT_MUD >> 8) & 0xff; in attach()
177 mup.mud[1] = (DEFAULT_MUD & 0xff); in attach()
263 dev->info.mud = _2btol(mup.mud); in attach()
264 if (dev->info.mud == 0) { in attach()
270 dev->info.mud = DEFAULT_MUD; in attach()
274 dev->info.mud = DEFAULT_MUD; in attach()
294 DBG (5, "mud=%d\n", dev->info.mud); in attach()
758 s->params.pixels_per_line = width * xres / s->hw->info.mud; in sane_get_parameters()
[all...]
H A Dsharp.h180 SANE_Int mud; member
372 SANE_Byte mud[2]; member
418 SANE_Byte mud[2]; member
H A Dnec.h180 SANE_Int mud; member
349 SANE_Byte mud[2]; member
391 SANE_Byte mud[2]; member
H A Dricoh.h209 SANE_Int mud; member
308 SANE_Byte mud[2]; member
H A Dhs2p-scsi.c218 DBG (DBG_info, "mud = %d\n", info->mud); in ScannerDump()
1862 get_basic_measurement_unit (int fd, SANE_Int * bmu, SANE_Int * mud) in get_basic_measurement_unit() argument
1880 *mud = ((buf.mud[0] << 8) | buf.mud[1]); in get_basic_measurement_unit()
1882 DBG (DBG_proc, "<< get_basic_measurement_unit: bmu=%d mud=%d\n", *bmu, in get_basic_measurement_unit()
1883 *mud); in get_basic_measurement_unit()
1892 SANE_Int mud; in set_basic_measurement_unit() local
1904 mud in set_basic_measurement_unit()
[all...]
H A Dibm.h259 SANE_Int mud; member
365 SANE_Byte mud[2]; member
H A Dsharp.c162 #define PIX_TO_MM(x, mud) ((x) * 25.4 / mud)
163 #define MM_TO_PIX(x, mud) ((x) * mud / 25.4)
560 mode_select_mud (int fd, int mud) in mode_select_mud() argument
572 mp->mud[0] = mud >> 8; in mode_select_mud()
573 mp->mud[1] = mud & 0xFF; in mode_select_mud()
1244 (m_subdev.max_x[2] << 8) + m_subdev.max_x[3] - 1, dev->info.mud)); in get_max_scan_size()
[all...]
H A Dhs2p.h149 SANE_Int mud; member
273 SANE_Int mud; /* Measurement Unit Divisor */ member
H A Dnec.c131 #define PIX_TO_MM(x, mud) ((x) * 25.4 / mud)
132 #define MM_TO_PIX(x, mud) ((x) * mud / 25.4)
420 mode_select_mud (int fd, int mud) in mode_select_mud() argument
433 mp->mud[0] = mud >> 8; in mode_select_mud()
434 mp->mud[1] = mud & 0xFF; in mode_select_mud()
1100 msp.mud[ in attach()
[all...]
H A Dcanon-sane.c1036 * s->hw->info.mud / MM_PER_INCH; in sane_get_parameters()
1038 * s->hw->info.mud / MM_PER_INCH; in sane_get_parameters()
1049 DBG (11, "sane_get_parameters: width='%d', xres='%d', mud='%d'\n", in sane_get_parameters()
1050 width, xres, s->hw->info.mud); in sane_get_parameters()
1051 s->params.pixels_per_line = width * xres / s->hw->info.mud; in sane_get_parameters()
1052 DBG (11, "sane_get_parameters: length='%d', yres='%d', mud='%d'\n", in sane_get_parameters()
1053 length, yres, s->hw->info.mud); in sane_get_parameters()
1054 s->params.lines = length * yres / s->hw->info.mud; in sane_get_parameters()
1235 s->ulx = SANE_UNFIX (s->val[OPT_TL_X].w) * s->hw->info.mud / MM_PER_INCH; in sane_start()
1236 s->uly = SANE_UNFIX (s->val[OPT_TL_Y].w) * s->hw->info.mud / MM_PER_INC in sane_start()
[all...]
H A Dcanon.h234 SANE_Int mud; member
H A Dbh.h344 SANE_Int mud; member
921 SANE_Byte mud[2]; member
H A Dhs2p-scsi.h539 SANE_Byte mud[2]; /* Measurement Unit Divisor member
541 * mud is fixed to 1 for millimeter or point
H A Dcanon.c961 dev->info.mud = (mbuf[8] << 8) + mbuf[9]; in attach()
962 DBG (5, "mud=%d\n", dev->info.mud); in attach()
986 SANE_FIX (dev->info.x_range.max * MM_PER_INCH / dev->info.mud); in attach()
994 SANE_FIX (dev->info.y_range.max * MM_PER_INCH / dev->info.mud); in attach()
H A Dbh.c681 DBG (3, "mode_select_measurement called (bmu:%d mud:%d)\n", in mode_select_measurement()
682 s->bmu, s->mud); in mode_select_measurement()
692 _lto2b(s->mud, select_cmd.mp.mud); in mode_select_measurement()
986 s->mud = 1000; in set_window()
1112 s->mud = 1; in set_window()
3298 s->mud = 1; in sane_open()
H A Dhs2p.c1097 get_basic_measurement_unit (fd, &(dev->info.bmu), &(dev->info.mud)); in attach()
1687 s->hw->info.mud = s->mud = 1; /* If the scale is MM or POINT, mud is fixed to 1 */ in sane_open()
2589 ">>sane_get_parameters: (W/L)=(%d/%d) (xres/yres)=(%d/%d) mud=%d\n", in sane_get_parameters()
2590 width, length, xres, yres, s->hw->info.mud); in sane_get_parameters()
2596 width * xres / s->hw->info.mud / MM_PER_INCH; in sane_get_parameters()
2597 s->params.lines = length * yres / s->hw->info.mud / MM_PER_INCH; in sane_get_parameters()

Completed in 49 milliseconds