Lines Matching refs:msg

132 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg,  in softing_netdev_rx()  argument
141 memcpy(cf, msg, sizeof(*msg)); in softing_netdev_rx()
155 struct can_frame msg; in softing_handle_1() local
162 memset(&msg, 0, sizeof(msg)); in softing_handle_1()
170 msg.can_id = CAN_ERR_FLAG | CAN_ERR_CRTL; in softing_handle_1()
171 msg.len = CAN_ERR_DLC; in softing_handle_1()
172 msg.data[1] = CAN_ERR_CRTL_RX_OVERFLOW; in softing_handle_1()
185 softing_netdev_rx(netdev, &msg, 0); in softing_handle_1()
188 memset(&msg, 0, sizeof(msg)); in softing_handle_1()
221 msg.can_id = CAN_ERR_FLAG; in softing_handle_1()
222 msg.len = CAN_ERR_DLC; in softing_handle_1()
226 msg.can_id |= CAN_ERR_BUSOFF; in softing_handle_1()
230 msg.can_id |= CAN_ERR_CRTL; in softing_handle_1()
231 msg.data[1] = CAN_ERR_CRTL_TX_PASSIVE; in softing_handle_1()
235 msg.can_id |= CAN_ERR_CRTL; in softing_handle_1()
258 softing_netdev_rx(netdev, &msg, ktime); in softing_handle_1()
263 msg.can_id |= CAN_RTR_FLAG; in softing_handle_1()
264 msg.len = can_cc_dlc2len(*ptr++); in softing_handle_1()
266 msg.can_id |= CAN_EFF_FLAG; in softing_handle_1()
267 msg.can_id |= le32_to_cpup((void *)ptr); in softing_handle_1()
270 msg.can_id |= le16_to_cpup((void *)ptr); in softing_handle_1()
277 if (!(msg.can_id & CAN_RTR_FLAG)) in softing_handle_1()
278 memcpy(&msg.data[0], ptr, 8); in softing_handle_1()
300 ret = softing_netdev_rx(netdev, &msg, ktime); in softing_handle_1()
303 if (!(msg.can_id & CAN_RTR_FLAG)) in softing_handle_1()
304 netdev->stats.rx_bytes += msg.len; in softing_handle_1()