Lines Matching +full:100 +full:bt
39 static int can_validate_bittiming(const struct can_bittiming *bt, in can_validate_bittiming() argument
43 if (bt->sample_point >= 1000) { in can_validate_bittiming()
44 NL_SET_ERR_MSG(extack, "sample point must be between 0 and 100%"); in can_validate_bittiming()
109 struct can_bittiming bt; in can_validate() local
111 memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt)); in can_validate()
112 err = can_validate_bittiming(&bt, extack); in can_validate()
128 struct can_bittiming bt; in can_validate() local
130 memcpy(&bt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), sizeof(bt)); in can_validate()
131 err = can_validate_bittiming(&bt, extack); in can_validate()
246 struct can_bittiming bt; in can_changelink() local
261 memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt)); in can_changelink()
262 err = can_get_bittiming(dev, &bt, in can_changelink()
270 if (priv->bitrate_max && bt.bitrate > priv->bitrate_max) { in can_changelink()
273 bt.bitrate, priv->bitrate_max); in can_changelink()
277 memcpy(&priv->bittiming, &bt, sizeof(bt)); in can_changelink()