Lines Matching refs:cm
65 struct can_ctrlmode *cm, __u32 flags) in set_ctrlmode() argument
68 cm->flags |= flags; in set_ctrlmode()
75 cm->mask |= flags; in set_ctrlmode()
78 static void print_ctrlmode(FILE *f, __u32 cm) in print_ctrlmode() argument
82 if (cm & cmflag) { \ in print_ctrlmode()
83 cm &= ~cmflag; \ in print_ctrlmode()
84 fprintf(f, "%s%s", cmname, cm ? "," : ""); \ in print_ctrlmode()
92 if (cm) in print_ctrlmode()
93 fprintf(f, "%x", cm); in print_ctrlmode()
101 struct can_ctrlmode cm = {0, 0}; in can_parse_opt() local
139 set_ctrlmode("loopback", *argv, &cm, in can_parse_opt()
143 set_ctrlmode("listen-only", *argv, &cm, in can_parse_opt()
147 set_ctrlmode("triple-sampling", *argv, &cm, in can_parse_opt()
151 set_ctrlmode("one-shot", *argv, &cm, in can_parse_opt()
155 set_ctrlmode("berr-reporting", *argv, &cm, in can_parse_opt()
181 if (cm.mask) in can_parse_opt()
182 addattr_l(n, 1024, IFLA_CAN_CTRLMODE, &cm, sizeof(cm)); in can_parse_opt()
202 struct can_ctrlmode *cm = RTA_DATA(tb[IFLA_CAN_CTRLMODE]); in can_print_opt() local
204 if (cm->flags) in can_print_opt()
205 print_ctrlmode(f, cm->flags); in can_print_opt()