Lines Matching refs:op
247 …fontx_ioctl(int cmd, struct consolefontdesc __user *user_cfd, int perm, struct console_font_op *op) in do_fontx_ioctl() argument
259 op->op = KD_FONT_OP_SET; in do_fontx_ioctl()
260 op->flags = KD_FONT_FLAG_OLD; in do_fontx_ioctl()
261 op->width = 8; in do_fontx_ioctl()
262 op->height = cfdarg.charheight; in do_fontx_ioctl()
263 op->charcount = cfdarg.charcount; in do_fontx_ioctl()
264 op->data = cfdarg.chardata; in do_fontx_ioctl()
265 return con_font_op(vc_cons[fg_console].d, op); in do_fontx_ioctl()
267 op->op = KD_FONT_OP_GET; in do_fontx_ioctl()
268 op->flags = KD_FONT_FLAG_OLD; in do_fontx_ioctl()
269 op->width = 8; in do_fontx_ioctl()
270 op->height = cfdarg.charheight; in do_fontx_ioctl()
271 op->charcount = cfdarg.charcount; in do_fontx_ioctl()
272 op->data = cfdarg.chardata; in do_fontx_ioctl()
273 i = con_font_op(vc_cons[fg_console].d, op); in do_fontx_ioctl()
276 cfdarg.charheight = op->height; in do_fontx_ioctl()
277 cfdarg.charcount = op->charcount; in do_fontx_ioctl()
354 struct console_font_op op; /* used in multiple places here */ in vt_ioctl() local
911 op.op = KD_FONT_OP_SET; in vt_ioctl()
912 op.flags = KD_FONT_FLAG_OLD | KD_FONT_FLAG_DONT_RECALC; /* Compatibility */ in vt_ioctl()
913 op.width = 8; in vt_ioctl()
914 op.height = 0; in vt_ioctl()
915 op.charcount = 256; in vt_ioctl()
916 op.data = up; in vt_ioctl()
917 ret = con_font_op(vc_cons[fg_console].d, &op); in vt_ioctl()
922 op.op = KD_FONT_OP_GET; in vt_ioctl()
923 op.flags = KD_FONT_FLAG_OLD; in vt_ioctl()
924 op.width = 8; in vt_ioctl()
925 op.height = 32; in vt_ioctl()
926 op.charcount = 256; in vt_ioctl()
927 op.data = up; in vt_ioctl()
928 ret = con_font_op(vc_cons[fg_console].d, &op); in vt_ioctl()
945 ret = do_fontx_ioctl(cmd, up, perm, &op); in vt_ioctl()
960 op.op = KD_FONT_OP_SET_DEFAULT; in vt_ioctl()
961 op.data = NULL; in vt_ioctl()
962 ret = con_font_op(vc_cons[fg_console].d, &op); in vt_ioctl()
974 if (copy_from_user(&op, up, sizeof(op))) { in vt_ioctl()
978 if (!perm && op.op != KD_FONT_OP_GET) in vt_ioctl()
980 ret = con_font_op(vc, &op); in vt_ioctl()
983 if (copy_to_user(up, &op, sizeof(op))) in vt_ioctl()
1094 int perm, struct console_font_op *op) in compat_fontx_ioctl() argument
1106 op->op = KD_FONT_OP_SET; in compat_fontx_ioctl()
1107 op->flags = KD_FONT_FLAG_OLD; in compat_fontx_ioctl()
1108 op->width = 8; in compat_fontx_ioctl()
1109 op->height = cfdarg.charheight; in compat_fontx_ioctl()
1110 op->charcount = cfdarg.charcount; in compat_fontx_ioctl()
1111 op->data = compat_ptr(cfdarg.chardata); in compat_fontx_ioctl()
1112 return con_font_op(vc_cons[fg_console].d, op); in compat_fontx_ioctl()
1114 op->op = KD_FONT_OP_GET; in compat_fontx_ioctl()
1115 op->flags = KD_FONT_FLAG_OLD; in compat_fontx_ioctl()
1116 op->width = 8; in compat_fontx_ioctl()
1117 op->height = cfdarg.charheight; in compat_fontx_ioctl()
1118 op->charcount = cfdarg.charcount; in compat_fontx_ioctl()
1119 op->data = compat_ptr(cfdarg.chardata); in compat_fontx_ioctl()
1120 i = con_font_op(vc_cons[fg_console].d, op); in compat_fontx_ioctl()
1123 cfdarg.charheight = op->height; in compat_fontx_ioctl()
1124 cfdarg.charcount = op->charcount; in compat_fontx_ioctl()
1133 compat_uint_t op; /* operation code KD_FONT_OP_* */ member
1142 int perm, struct console_font_op *op, struct vc_data *vc) in compat_kdfontop_ioctl() argument
1146 if (copy_from_user(op, fontop, sizeof(struct compat_console_font_op))) in compat_kdfontop_ioctl()
1148 if (!perm && op->op != KD_FONT_OP_GET) in compat_kdfontop_ioctl()
1150 op->data = compat_ptr(((struct compat_console_font_op *)op)->data); in compat_kdfontop_ioctl()
1151 i = con_font_op(vc, op); in compat_kdfontop_ioctl()
1154 ((struct compat_console_font_op *)op)->data = (unsigned long)op->data; in compat_kdfontop_ioctl()
1155 if (copy_to_user(fontop, op, sizeof(struct compat_console_font_op))) in compat_kdfontop_ioctl()
1192 struct console_font_op op; /* used in multiple places here */ in vt_compat_ioctl() local
1211 ret = compat_fontx_ioctl(cmd, up, perm, &op); in vt_compat_ioctl()
1215 ret = compat_kdfontop_ioctl(up, perm, &op, vc); in vt_compat_ioctl()