Lines Matching refs:malloc

147     /* free malloc'ed stuff */
258 malloc( (md_num_devices + 1) * sizeof(SANE_Device **));
259 DBG(100, "sane_get_devices: sd_list=%p, malloc'd %lu bytes\n",
264 DBG(1, "sane_get_devices: malloc() for sd_list failed\n");
540 ms = malloc(sizeof(Microtek2_Scanner));
541 DBG(100, "sane_open: ms=%p, malloc'd %lu bytes\n",
545 DBG(1, "sane_open: malloc() for ms failed\n");
695 DBG(5, "add_device_list: malloc() for hdev failed\n");
719 md = (Microtek2_Device *) malloc(sizeof(Microtek2_Device));
720 DBG(100, "add_device_list: md=%p, malloc'd %lu bytes\n",
724 DBG(1, "add_device_list: malloc() for md failed\n");
1963 hct2 = (Config_Temp *) malloc(sizeof(Config_Temp));
1966 DBG(1, "parse_config_file: malloc() failed\n");
2239 (SANE_Int *) malloc(tablesize * sizeof(SANE_Int));
2240 DBG(100, "init_options: md->custom_gamma_table[%d]=%p, malloc'd %lu bytes\n",
2244 DBG(1, "init_options: malloc for custom gamma table failed\n");
4301 DBG(1, "scsi_inquiry: malloc failed\n");
4320 DBG(1, "scsi_inquiry: malloc failed\n");
4526 setwindow = (uint8_t *) malloc(size);
4527 DBG(100, "scsi_set_window: setwindow= %p, malloc'd %d Bytes\n",
4531 DBG(1, "scsi_set_window: malloc for setwindow failed\n");
4849 cmd = (uint8_t *) malloc(SSI_CMD_L + length);
4850 DBG(100, "scsi_send_shading: cmd=%p, malloc'd %d bytes\n",
5272 ms->control_bytes = (uint8_t *) malloc(ms->n_control_bytes);
5273 DBG(100, "sane_start: ms->control_bytes=%p, malloc'd %lu bytes\n",
5277 DBG(1, "sane_start: malloc() for control bits failed\n");
5381 ms->gamma_table = (uint8_t *) malloc(3 * ms->lut_size_bytes );
5382 DBG(100, "sane_start: ms->gamma_table=%p, malloc'd %d bytes\n",
5386 DBG(1, "sane_start: malloc for gammatable failed\n");
5566 ms->buf.src_buffer[i] = (uint8_t *) malloc(ms->src_buffer_size
5569 "malloc'd %d bytes\n", i, (void *) ms->buf.src_buffer[i],
5573 DBG(1, "sane_start: malloc for scan buffer failed\n");
5587 ms->buf.src_buf = malloc(ms->src_buffer_size);
5588 DBG(100, "sane_start: ms->buf.src_buf=%p, malloc'd %d bytes\n",
5592 DBG(1, "sane_start: malloc for scan buffer failed\n");
5610 ms->temporary_buffer = (uint8_t *) malloc(ms->remaining_bytes);
5611 DBG(100, "sane_start: ms->temporary_buffer=%p, malloc'd %d bytes\n",
5615 DBG(1, "sane_start: malloc() for temporary buffer failed\n");
5926 ms->condensed_shading_w = (uint8_t *)malloc(cond_length);
5928 "malloc'd %d bytes\n",
5932 DBG(1, "condense_shading: malloc for white table failed\n");
5947 ms->condensed_shading_d = (uint8_t *)malloc(cond_length);
5949 " malloc'd %d bytes\n",
5953 DBG(1, "condense_shading: malloc for dark table failed\n");
6109 ms->shading_image = malloc(ms->bpl * ms->src_remaining_lines);
6111 " malloc'd %d bytes\n",
6116 DBG(1, "read_shading_image: malloc for buffer failed\n");
6252 ms->shading_image = malloc(ms->bpl * ms->src_remaining_lines);
6253 DBG(100, "read shading image: ms->shading_image=%p, malloc'd %d bytes\n",
6257 DBG(1, "read_shading_image: malloc for buffer failed\n");
6384 *data = (uint8_t *) malloc(length);
6385 DBG(100, "prepare_shading_data: malloc'd %d bytes at %p\n",
6389 DBG(1, "prepare_shading_data: malloc for shading table failed\n");
6395 sortbuf = malloc( lines * ms->lut_entry_size );
6396 DBG(100, "prepare_shading_data: sortbuf= %p, malloc'd %d Bytes\n",
6400 DBG(1, "prepare_shading_data: malloc for sort buffer failed\n");
6608 ms->shading_image = malloc(shading_bytes);
6609 DBG(100, "read_cx_shading: ms->shading_image=%p, malloc'd %d bytes\n",
6613 DBG(1, "read_cx_shading: malloc for cx_shading buffer failed\n");
6682 sortbuf = malloc( md->shading_length * sizeof(float) );
6683 DBG(100, "calc_cx_shading: sortbuf= %p, malloc'd %lu Bytes\n",
6687 DBG(1, "calc_cx_shading: malloc for sort buffer failed\n");
6705 md->shading_table_w = (uint8_t *) malloc(shading_line_bytes);
6706 DBG(100, "calc_cx_shading: md->shading_table_w=%p, malloc'd %d bytes\n",
6710 DBG(100, "calc_cx_shading: malloc for white shadingtable failed\n");
6722 md->shading_table_d = (uint8_t *) malloc(shading_line_bytes);
6723 DBG(100, "calc_cx_shading: md->shading_table_d=%p, malloc'd %d bytes\n",
6728 DBG(1, "calc_cx_shading: malloc for dark shading table failed\n");