Lines Matching refs:arg
38 #define dprintk(x, y, z, format, arg...) do { \ argument
41 printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
43 printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
45 printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
47 printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
50 printk(format, ## arg); \
236 static int ca_get_slot_caps(struct dst_state *state, struct ca_caps *p_ca_caps, void __user *arg) in ca_get_slot_caps() argument
262 if (copy_to_user(arg, p_ca_caps, sizeof (struct ca_caps))) in ca_get_slot_caps()
269 static int ca_get_slot_descr(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg) in ca_get_slot_descr() argument
275 …nt ca_get_slot_info(struct dst_state *state, struct ca_slot_info *p_ca_slot_info, void __user *arg) in ca_get_slot_info() argument
308 if (copy_to_user(arg, p_ca_slot_info, sizeof (struct ca_slot_info))) in ca_get_slot_info()
315 static int ca_get_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg) in ca_get_message() argument
320 if (copy_from_user(p_ca_message, arg, sizeof (struct ca_msg))) in ca_get_message()
336 if (copy_to_user(arg, p_ca_message, sizeof (struct ca_msg)) ) in ca_get_message()
341 if (copy_to_user(arg, p_ca_message, sizeof (struct ca_msg)) ) in ca_get_message()
476 static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg) in ca_send_message() argument
490 if (copy_from_user(p_ca_message, arg, sizeof (struct ca_msg))) { in ca_send_message()
560 void __user *arg = (void __user *)ioctl_arg; in dst_ca_ioctl() local
579 if ((ca_send_message(state, p_ca_message, arg)) < 0) { in dst_ca_ioctl()
587 if ((ca_get_message(state, p_ca_message, arg)) < 0) { in dst_ca_ioctl()
601 if ((ca_get_slot_info(state, p_ca_slot_info, arg)) < 0) { in dst_ca_ioctl()
610 if ((ca_get_slot_caps(state, p_ca_caps, arg)) < 0) { in dst_ca_ioctl()
619 if ((ca_get_slot_descr(state, p_ca_message, arg)) < 0) { in dst_ca_ioctl()