Lines Matching refs:err_mask
94 can_err_mask_t err_mask; member
210 struct sock *sk, can_err_mask_t err_mask) in raw_enable_errfilter() argument
214 if (err_mask) in raw_enable_errfilter()
215 err = can_rx_register(net, dev, 0, err_mask | CAN_ERR_FLAG, in raw_enable_errfilter()
235 can_err_mask_t err_mask) in raw_disable_errfilter() argument
238 if (err_mask) in raw_disable_errfilter()
239 can_rx_unregister(net, dev, 0, err_mask | CAN_ERR_FLAG, in raw_disable_errfilter()
250 raw_disable_errfilter(net, dev, sk, ro->err_mask); in raw_disable_allfilters()
261 err = raw_enable_errfilter(net, dev, sk, ro->err_mask); in raw_enable_allfilters()
522 can_err_mask_t err_mask = 0; in raw_setsockopt() local
604 if (optlen != sizeof(err_mask)) in raw_setsockopt()
607 if (copy_from_sockptr(&err_mask, optval, optlen)) in raw_setsockopt()
610 err_mask &= CAN_ERR_MASK; in raw_setsockopt()
627 err_mask); in raw_setsockopt()
634 ro->err_mask); in raw_setsockopt()
638 ro->err_mask = err_mask; in raw_setsockopt()
729 val = &ro->err_mask; in raw_getsockopt()