Lines Matching defs:buf
141 static int scanner_setup_params(unsigned char *buf, scanner_parameters *sp,
149 static int send_command(struct parport *port, unsigned char *buf, int bufsize,
682 /* Read scanlines_this_packet scanlines into the input buf */
1192 static int scanner_setup_params(unsigned char *buf, scanner_parameters *sp,
1201 buf[0] = 0x11; /* 300 | 0x1000 */
1202 buf[1] = 0x2c;
1203 buf[2] = 0x11;
1204 buf[3] = 0x2c;
1206 buf[0] = 0x12; /* 600 | 0x1000*/
1207 buf[1] = 0x58;
1208 buf[2] = 0x12;
1209 buf[3] = 0x58;
1223 buf[4] = (((75 << scanp->xresolution) & 0xff00) >> 8) | 0x10;
1224 buf[5] = (75 << scanp->xresolution) & 0xff;
1226 buf[6] = (((75 << scanp->xresolution) & 0xff00) >> 8) | 0x10;;
1227 buf[7] = (75 << scanp->xresolution) & 0xff;
1230 buf[8] = (scaled_xoff & 0xff000000) >> 24;
1231 buf[9] = (scaled_xoff & 0xff0000) >> 16;
1232 buf[10] = (scaled_xoff & 0xff00) >> 8;
1233 buf[11] = scaled_xoff & 0xff;
1236 buf[12] = (scaled_yoff & 0xff000000) >> 24;
1237 buf[13] = (scaled_yoff & 0xff0000) >> 16;
1238 buf[14] = (scaled_yoff & 0xff00) >> 8;
1239 buf[15] = scaled_yoff & 0xff;
1242 buf[16] = (scaled_width & 0xff000000) >> 24;
1243 buf[17] = (scaled_width & 0xff0000) >> 16;
1244 buf[18] = (scaled_width & 0xff00) >> 8;
1245 buf[19] = scaled_width & 0xff;
1248 buf[20] = (scaled_height & 0xff000000) >> 24;
1249 buf[21] = (scaled_height & 0xff0000) >> 16;
1250 buf[22] = (scaled_height & 0xff00) >> 8;
1251 buf[23] = scaled_height & 0xff;
1258 buf[24] = 0x08;
1260 buf[24] = 0x04;
1337 static int send_command(struct parport *port, unsigned char *buf, int bufsize,
1348 if (sanei_canon_pp_write(port, bufsize, buf))