Lines Matching refs:op
429 do_fontx_ioctl(int cmd, struct consolefontdesc __user *user_cfd, int perm, struct console_font_op *op)
441 op->op = KD_FONT_OP_SET;
442 op->flags = KD_FONT_FLAG_OLD;
443 op->width = 8;
444 op->height = cfdarg.charheight;
445 op->charcount = cfdarg.charcount;
446 op->data = cfdarg.chardata;
447 return con_font_op(vc_cons[fg_console].d, op);
449 op->op = KD_FONT_OP_GET;
450 op->flags = KD_FONT_FLAG_OLD;
451 op->width = 8;
452 op->height = cfdarg.charheight;
453 op->charcount = cfdarg.charcount;
454 op->data = cfdarg.chardata;
455 i = con_font_op(vc_cons[fg_console].d, op);
458 cfdarg.charheight = op->height;
459 cfdarg.charcount = op->charcount;
502 struct console_font_op op; /* used in multiple places here */
1190 op.op = KD_FONT_OP_SET;
1191 op.flags = KD_FONT_FLAG_OLD | KD_FONT_FLAG_DONT_RECALC; /* Compatibility */
1192 op.width = 8;
1193 op.height = 0;
1194 op.charcount = 256;
1195 op.data = up;
1196 ret = con_font_op(vc_cons[fg_console].d, &op);
1201 op.op = KD_FONT_OP_GET;
1202 op.flags = KD_FONT_FLAG_OLD;
1203 op.width = 8;
1204 op.height = 32;
1205 op.charcount = 256;
1206 op.data = up;
1207 ret = con_font_op(vc_cons[fg_console].d, &op);
1224 ret = do_fontx_ioctl(cmd, up, perm, &op);
1239 op.op = KD_FONT_OP_SET_DEFAULT;
1240 op.data = NULL;
1241 ret = con_font_op(vc_cons[fg_console].d, &op);
1251 if (copy_from_user(&op, up, sizeof(op))) {
1255 if (!perm && op.op != KD_FONT_OP_GET)
1257 ret = con_font_op(vc, &op);
1260 if (copy_to_user(up, &op, sizeof(op)))
1380 int perm, struct console_font_op *op)
1392 op->op = KD_FONT_OP_SET;
1393 op->flags = KD_FONT_FLAG_OLD;
1394 op->width = 8;
1395 op->height = cfdarg.charheight;
1396 op->charcount = cfdarg.charcount;
1397 op->data = compat_ptr(cfdarg.chardata);
1398 return con_font_op(vc_cons[fg_console].d, op);
1400 op->op = KD_FONT_OP_GET;
1401 op->flags = KD_FONT_FLAG_OLD;
1402 op->width = 8;
1403 op->height = cfdarg.charheight;
1404 op->charcount = cfdarg.charcount;
1405 op->data = compat_ptr(cfdarg.chardata);
1406 i = con_font_op(vc_cons[fg_console].d, op);
1409 cfdarg.charheight = op->height;
1410 cfdarg.charcount = op->charcount;
1419 compat_uint_t op; /* operation code KD_FONT_OP_* */
1428 int perm, struct console_font_op *op, struct vc_data *vc)
1432 if (copy_from_user(op, fontop, sizeof(struct compat_console_font_op)))
1434 if (!perm && op->op != KD_FONT_OP_GET)
1436 op->data = compat_ptr(((struct compat_console_font_op *)op)->data);
1437 op->flags |= KD_FONT_FLAG_OLD;
1438 i = con_font_op(vc, op);
1441 ((struct compat_console_font_op *)op)->data = (unsigned long)op->data;
1442 if (copy_to_user(fontop, op, sizeof(struct compat_console_font_op)))
1483 struct console_font_op op; /* used in multiple places here */
1514 ret = compat_fontx_ioctl(cmd, up, perm, &op);
1518 ret = compat_kdfontop_ioctl(up, perm, &op, vc);