Lines Matching refs:param
69 } param; member
113 static void *_send_thread(void *param) { in _send_thread() argument
115 plugin_data_t *priv = (plugin_data_t *) param; in _send_thread()
127 priv->pcl_ifc->start_page(&priv->job_info, msg.param.start_page.width, in _send_thread()
128 msg.param.start_page.height); in _send_thread()
131 priv->pcl_ifc->print_swath(&priv->job_info, msg.param.send.buffer, in _send_thread()
132 msg.param.send.start_row, msg.param.send.num_rows, in _send_thread()
133 msg.param.send.bytes_per_row); in _send_thread()
138 priv->pcl_ifc->end_page(&priv->job_info, msg.param.end_page.page); in _send_thread()
139 for (i = 0; i < msg.param.end_page.count; i++) { in _send_thread()
140 if (msg.param.end_page.buffers[i] != NULL) { in _send_thread()
141 free(msg.param.end_page.buffers[i]); in _send_thread()
155 static status_t _start_thread(plugin_data_t *param) { in _start_thread() argument
159 if (param == NULL) { in _start_thread()
163 param->send_tid = pthread_self(); in _start_thread()
173 result = (status_t) pthread_create(&(param->send_tid), 0, _send_thread, (void *) param); in _start_thread()
174 if ((result == ERROR) && (param->send_tid != pthread_self())) { in _start_thread()
176 pthread_cancel(param->send_tid); in _start_thread()
178 pthread_kill(param->send_tid, SIGKILL); in _start_thread()
180 param->send_tid = pthread_self(); in _start_thread()
404 msg.param.start_page.extra_margin = ((job_params->duplex != DUPLEX_MODE_NONE) && in _print_page()
406 msg.param.start_page.width = wprint_image_get_width(image_info); in _print_page()
407 msg.param.start_page.height = wprint_image_get_height(image_info); in _print_page()
413 msg.param.send.bytes_per_row = BYTES_PER_PIXEL(wprint_image_get_width(image_info)); in _print_page()
445 msg.param.send.buffer = buff; in _print_page()
446 msg.param.send.start_row = image_row; in _print_page()
447 msg.param.send.num_rows = height; in _print_page()
474 msg.param.end_page.page = job_params->page_num; in _print_page()
482 msg.param.end_page.page = -1; in _print_page()
487 msg.param.end_page.buffers[i] = buff_pool[i]; in _print_page()
489 msg.param.end_page.count = MAX_SEND_BUFFS; in _print_page()
495 msg.param.end_page.page = -1; in _print_page()
496 msg.param.end_page.count = 0; in _print_page()
537 msg.param.end_page.page = -1; in _print_blank_page()
538 msg.param.end_page.count = 0; in _print_blank_page()