Lines Matching refs:op

223 …fontx_ioctl(int cmd, struct consolefontdesc __user *user_cfd, int perm, struct console_font_op *op)  in do_fontx_ioctl()  argument
235 op->op = KD_FONT_OP_SET; in do_fontx_ioctl()
236 op->flags = KD_FONT_FLAG_OLD; in do_fontx_ioctl()
237 op->width = 8; in do_fontx_ioctl()
238 op->height = cfdarg.charheight; in do_fontx_ioctl()
239 op->charcount = cfdarg.charcount; in do_fontx_ioctl()
240 op->data = cfdarg.chardata; in do_fontx_ioctl()
241 return con_font_op(vc_cons[fg_console].d, op); in do_fontx_ioctl()
243 op->op = KD_FONT_OP_GET; in do_fontx_ioctl()
244 op->flags = KD_FONT_FLAG_OLD; in do_fontx_ioctl()
245 op->width = 8; in do_fontx_ioctl()
246 op->height = cfdarg.charheight; in do_fontx_ioctl()
247 op->charcount = cfdarg.charcount; in do_fontx_ioctl()
248 op->data = cfdarg.chardata; in do_fontx_ioctl()
249 i = con_font_op(vc_cons[fg_console].d, op); in do_fontx_ioctl()
252 cfdarg.charheight = op->height; in do_fontx_ioctl()
253 cfdarg.charcount = op->charcount; in do_fontx_ioctl()
338 struct console_font_op op; /* used in multiple places here */ in vt_ioctl() local
909 op.op = KD_FONT_OP_SET; in vt_ioctl()
910 op.flags = KD_FONT_FLAG_OLD | KD_FONT_FLAG_DONT_RECALC; /* Compatibility */ in vt_ioctl()
911 op.width = 8; in vt_ioctl()
912 op.height = 0; in vt_ioctl()
913 op.charcount = 256; in vt_ioctl()
914 op.data = up; in vt_ioctl()
915 ret = con_font_op(vc_cons[fg_console].d, &op); in vt_ioctl()
920 op.op = KD_FONT_OP_GET; in vt_ioctl()
921 op.flags = KD_FONT_FLAG_OLD; in vt_ioctl()
922 op.width = 8; in vt_ioctl()
923 op.height = 32; in vt_ioctl()
924 op.charcount = 256; in vt_ioctl()
925 op.data = up; in vt_ioctl()
926 ret = con_font_op(vc_cons[fg_console].d, &op); in vt_ioctl()
943 ret = do_fontx_ioctl(cmd, up, perm, &op); in vt_ioctl()
958 op.op = KD_FONT_OP_SET_DEFAULT; in vt_ioctl()
959 op.data = NULL; in vt_ioctl()
960 ret = con_font_op(vc_cons[fg_console].d, &op); in vt_ioctl()
972 if (copy_from_user(&op, up, sizeof(op))) { in vt_ioctl()
976 if (!perm && op.op != KD_FONT_OP_GET) in vt_ioctl()
978 ret = con_font_op(vc, &op); in vt_ioctl()
981 if (copy_to_user(up, &op, sizeof(op))) in vt_ioctl()
1098 int perm, struct console_font_op *op) in compat_fontx_ioctl() argument
1110 op->op = KD_FONT_OP_SET; in compat_fontx_ioctl()
1111 op->flags = KD_FONT_FLAG_OLD; in compat_fontx_ioctl()
1112 op->width = 8; in compat_fontx_ioctl()
1113 op->height = cfdarg.charheight; in compat_fontx_ioctl()
1114 op->charcount = cfdarg.charcount; in compat_fontx_ioctl()
1115 op->data = compat_ptr(cfdarg.chardata); in compat_fontx_ioctl()
1116 return con_font_op(vc_cons[fg_console].d, op); in compat_fontx_ioctl()
1118 op->op = KD_FONT_OP_GET; in compat_fontx_ioctl()
1119 op->flags = KD_FONT_FLAG_OLD; in compat_fontx_ioctl()
1120 op->width = 8; in compat_fontx_ioctl()
1121 op->height = cfdarg.charheight; in compat_fontx_ioctl()
1122 op->charcount = cfdarg.charcount; in compat_fontx_ioctl()
1123 op->data = compat_ptr(cfdarg.chardata); in compat_fontx_ioctl()
1124 i = con_font_op(vc_cons[fg_console].d, op); in compat_fontx_ioctl()
1127 cfdarg.charheight = op->height; in compat_fontx_ioctl()
1128 cfdarg.charcount = op->charcount; in compat_fontx_ioctl()
1137 compat_uint_t op; /* operation code KD_FONT_OP_* */ member
1146 int perm, struct console_font_op *op, struct vc_data *vc) in compat_kdfontop_ioctl() argument
1150 if (copy_from_user(op, fontop, sizeof(struct compat_console_font_op))) in compat_kdfontop_ioctl()
1152 if (!perm && op->op != KD_FONT_OP_GET) in compat_kdfontop_ioctl()
1154 op->data = compat_ptr(((struct compat_console_font_op *)op)->data); in compat_kdfontop_ioctl()
1155 i = con_font_op(vc, op); in compat_kdfontop_ioctl()
1158 ((struct compat_console_font_op *)op)->data = (unsigned long)op->data; in compat_kdfontop_ioctl()
1159 if (copy_to_user(fontop, op, sizeof(struct compat_console_font_op))) in compat_kdfontop_ioctl()
1200 struct console_font_op op; /* used in multiple places here */ in vt_compat_ioctl() local
1227 ret = compat_fontx_ioctl(cmd, up, perm, &op); in vt_compat_ioctl()
1231 ret = compat_kdfontop_ioctl(up, perm, &op, vc); in vt_compat_ioctl()