Lines Matching full:param
209 data[0] = (s->param->source == PIXMA_SOURCE_ADF) ? 2 : 1;
223 return (has_ccd_sensor (s) && (s->param->channels == 1));
230 return (s->param->wx ? s->param->line_size / s->param->w * s->param->wx
231 : s->param->line_size) * ((is_ccd_grayscale (s)) ? 3 : 1);
241 pixma_set_be16 (s->param->xdpi | 0x8000, data + 0x04);
242 pixma_set_be16 (s->param->ydpi | 0x8000, data + 0x06);
243 pixma_set_be32 (s->param->x, data + 0x08);
244 pixma_set_be32 (s->param->y, data + 0x0c);
249 data[0x19] = s->param->depth * ((is_ccd_grayscale (s)) ? 3 : s->param->channels); /* bits per pixel */
411 if (s->param->source == PIXMA_SOURCE_ADF && !has_paper (s))
479 switch (s->param->ydpi)
486 return s->param->ydpi / 75;
494 return 2 * s->param->ydpi / 75;
626 dpi = s->param->ydpi;
638 /* if (s->param->channels == 1)
639 mp->raw_width = ALIGN_SUP (s->param->w, 12);
641 mp->raw_width = ALIGN_SUP (s->param->w, 4);*/
644 if ((s->param->channels == 3) || (is_ccd_grayscale (s)))
645 mp->raw_width = ALIGN_SUP (s->param->w, 4);
647 mp->raw_width = ALIGN_SUP (s->param->w, 12);
652 mp->raw_height = s->param->h + spare;
656 /* PDBG (pixma_dbg (4, "line_size=%"PRIu64"\n",s->param->line_size)); */
702 c = ((is_ccd_grayscale (s)) ? 3 : s->param->channels) * s->param->depth / 8; /* single-byte or double-byte data */
743 if (s->param->source == PIXMA_SOURCE_ADF)
887 if (s->param->source == PIXMA_SOURCE_FLATBED)