Lines Matching refs:err_mask
95 can_err_mask_t err_mask; member
211 struct sock *sk, can_err_mask_t err_mask) in raw_enable_errfilter() argument
215 if (err_mask) in raw_enable_errfilter()
216 err = can_rx_register(net, dev, 0, err_mask | CAN_ERR_FLAG, in raw_enable_errfilter()
236 can_err_mask_t err_mask) in raw_disable_errfilter() argument
239 if (err_mask) in raw_disable_errfilter()
240 can_rx_unregister(net, dev, 0, err_mask | CAN_ERR_FLAG, in raw_disable_errfilter()
251 raw_disable_errfilter(net, dev, sk, ro->err_mask); in raw_disable_allfilters()
262 err = raw_enable_errfilter(net, dev, sk, ro->err_mask); in raw_enable_allfilters()
532 can_err_mask_t err_mask = 0; in raw_setsockopt() local
611 if (optlen != sizeof(err_mask)) in raw_setsockopt()
614 if (copy_from_sockptr(&err_mask, optval, optlen)) in raw_setsockopt()
617 err_mask &= CAN_ERR_MASK; in raw_setsockopt()
634 err_mask); in raw_setsockopt()
641 ro->err_mask); in raw_setsockopt()
645 ro->err_mask = err_mask; in raw_setsockopt()
741 val = &ro->err_mask; in raw_getsockopt()