Searched refs:can_dlc (Results 1 - 25 of 35) sorted by relevance

12

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/can/
H A Dvcan.c79 stats->rx_bytes += cf->can_dlc;
99 stats->tx_bytes += cf->can_dlc;
113 stats->rx_bytes += cf->can_dlc;
H A Dbfin_can.c232 u8 dlc = cf->can_dlc;
313 cf->can_dlc = get_can_dlc(bfin_read16(&reg->chl[obj].dlc) & 0xF);
318 cf->data[7 - i] = (7 - i) < cf->can_dlc ? val : 0;
319 cf->data[6 - i] = (6 - i) < cf->can_dlc ? (val >> 8) : 0;
325 stats->rx_bytes += cf->can_dlc;
409 stats->rx_bytes += cf->can_dlc;
H A Dmcp251x.c385 buf[TXBDLC_OFF] = (rtr << DLC_RTR_SHIFT) | frame->can_dlc;
386 memcpy(buf + TXBDAT_OFF, frame->data, frame->can_dlc);
387 mcp251x_hw_tx_frame(spi, buf, frame->can_dlc, tx_buf_idx);
449 frame->can_dlc = get_can_dlc(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK);
450 memcpy(frame->data, buf + RXBDAT_OFF, frame->can_dlc);
453 priv->net->stats.rx_bytes += frame->can_dlc;
701 if (frame->can_dlc > CAN_FRAME_MAX_DATA_LEN)
702 frame->can_dlc = CAN_FRAME_MAX_DATA_LEN;
704 priv->tx_len = 1 + frame->can_dlc;
H A Dflexcan.c252 u32 ctrl = FLEXCAN_MB_CNT_CODE(0xc) | (cf->can_dlc << 16);
269 if (cf->can_dlc > 0) {
273 if (cf->can_dlc > 3) {
284 stats->tx_bytes += cf->can_dlc;
350 dev->stats.rx_bytes += cf->can_dlc;
454 dev->stats.rx_bytes += cf->can_dlc;
476 cf->can_dlc = get_can_dlc((reg_ctrl >> 16) & 0xf);
502 stats->rx_bytes += cf->can_dlc;
H A Dat91_can.c364 (cf->can_dlc << 16) | AT91_MCR_MTCR;
377 stats->tx_bytes += cf->can_dlc;
451 stats->rx_bytes += cf->can_dlc;
478 cf->can_dlc = get_can_dlc((reg_msr >> 16) & 0xf);
511 stats->rx_bytes += cf->can_dlc;
620 dev->stats.rx_bytes += cf->can_dlc;
856 dev->stats.rx_bytes += cf->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/can/
H A Dvcan.c79 stats->rx_bytes += cf->can_dlc;
99 stats->tx_bytes += cf->can_dlc;
113 stats->rx_bytes += cf->can_dlc;
H A Dbfin_can.c232 u8 dlc = cf->can_dlc;
313 cf->can_dlc = get_can_dlc(bfin_read16(&reg->chl[obj].dlc) & 0xF);
318 cf->data[7 - i] = (7 - i) < cf->can_dlc ? val : 0;
319 cf->data[6 - i] = (6 - i) < cf->can_dlc ? (val >> 8) : 0;
325 stats->rx_bytes += cf->can_dlc;
409 stats->rx_bytes += cf->can_dlc;
H A Dmcp251x.c385 buf[TXBDLC_OFF] = (rtr << DLC_RTR_SHIFT) | frame->can_dlc;
386 memcpy(buf + TXBDAT_OFF, frame->data, frame->can_dlc);
387 mcp251x_hw_tx_frame(spi, buf, frame->can_dlc, tx_buf_idx);
449 frame->can_dlc = get_can_dlc(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK);
450 memcpy(frame->data, buf + RXBDAT_OFF, frame->can_dlc);
453 priv->net->stats.rx_bytes += frame->can_dlc;
701 if (frame->can_dlc > CAN_FRAME_MAX_DATA_LEN)
702 frame->can_dlc = CAN_FRAME_MAX_DATA_LEN;
704 priv->tx_len = 1 + frame->can_dlc;
H A Dflexcan.c252 u32 ctrl = FLEXCAN_MB_CNT_CODE(0xc) | (cf->can_dlc << 16);
269 if (cf->can_dlc > 0) {
273 if (cf->can_dlc > 3) {
284 stats->tx_bytes += cf->can_dlc;
350 dev->stats.rx_bytes += cf->can_dlc;
454 dev->stats.rx_bytes += cf->can_dlc;
476 cf->can_dlc = get_can_dlc((reg_ctrl >> 16) & 0xf);
502 stats->rx_bytes += cf->can_dlc;
H A Dat91_can.c364 (cf->can_dlc << 16) | AT91_MCR_MTCR;
377 stats->tx_bytes += cf->can_dlc;
451 stats->rx_bytes += cf->can_dlc;
478 cf->can_dlc = get_can_dlc((reg_msr >> 16) & 0xf);
511 stats->rx_bytes += cf->can_dlc;
620 dev->stats.rx_bytes += cf->can_dlc;
856 dev->stats.rx_bytes += cf->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/
H A Dcan.h54 * @can_dlc: the data length field of the CAN frame
59 __u8 can_dlc; /* data length code: 0 .. 8 */ member in struct:can_frame
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/linux/
H A Dcan.h54 * @can_dlc: the data length field of the CAN frame
59 __u8 can_dlc; /* data length code: 0 .. 8 */ member in struct:can_frame
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/usr/include/linux/
H A Dcan.h54 * @can_dlc: the data length field of the CAN frame
59 __u8 can_dlc; /* data length code: 0 .. 8 */ member in struct:can_frame
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/arm-linux/sysroot/usr/include/linux/
H A Dcan.h54 * @can_dlc: the data length field of the CAN frame
59 __u8 can_dlc; /* data length code: 0 .. 8 */ member in struct:can_frame
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/arm-brcm-linux-uclibcgnueabi/sysroot/usr/include/linux/
H A Dcan.h54 * @can_dlc: the data length field of the CAN frame
59 __u8 can_dlc; /* data length code: 0 .. 8 */ member in struct:can_frame
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/can/
H A Ddev.h73 if (unlikely(skb->len != sizeof(*cf) || cf->can_dlc > 8)) {
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/linux/can/
H A Ddev.h73 if (unlikely(skb->len != sizeof(*cf) || cf->can_dlc > 8)) {
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/can/mscan/
H A Dmscan.c265 for (i = 0; i < (frame->can_dlc + 1) / 2; i++) {
271 out_8(&regs->tx.dlr, frame->can_dlc);
327 frame->can_dlc = get_can_dlc(in_8(&regs->rx.dlr) & 0xf);
333 for (i = 0; i < (frame->can_dlc + 1) / 2; i++) {
401 frame->can_dlc = CAN_ERR_DLC;
437 stats->rx_bytes += frame->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/can/mscan/
H A Dmscan.c265 for (i = 0; i < (frame->can_dlc + 1) / 2; i++) {
271 out_8(&regs->tx.dlr, frame->can_dlc);
327 frame->can_dlc = get_can_dlc(in_8(&regs->rx.dlr) & 0xf);
333 for (i = 0; i < (frame->can_dlc + 1) / 2; i++) {
401 frame->can_dlc = CAN_ERR_DLC;
437 stats->rx_bytes += frame->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/can/usb/
H A Dems_usb.c317 cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF);
327 for (i = 0; i < cf->can_dlc; i++)
334 stats->rx_bytes += cf->can_dlc;
409 stats->rx_bytes += cf->can_dlc;
786 msg->msg.can_msg.length = cf->can_dlc;
797 for (i = 0; i < cf->can_dlc; i++)
800 msg->length = CPC_CAN_MSG_MIN_SIZE + cf->can_dlc;
828 context->dlc = cf->can_dlc;
H A Desd_usb2.c307 stats->rx_bytes += cf->can_dlc;
335 cf->can_dlc = get_can_dlc(msg->msg.rx.dlc);
343 for (i = 0; i < cf->can_dlc; i++)
350 stats->rx_bytes += cf->can_dlc;
744 msg->msg.tx.dlc = cf->can_dlc;
753 for (i = 0; i < cf->can_dlc; i++)
756 msg->msg.hdr.len += (cf->can_dlc + 3) >> 2;
776 context->dlc = cf->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/can/usb/
H A Dems_usb.c317 cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF);
327 for (i = 0; i < cf->can_dlc; i++)
334 stats->rx_bytes += cf->can_dlc;
409 stats->rx_bytes += cf->can_dlc;
786 msg->msg.can_msg.length = cf->can_dlc;
797 for (i = 0; i < cf->can_dlc; i++)
800 msg->length = CPC_CAN_MSG_MIN_SIZE + cf->can_dlc;
828 context->dlc = cf->can_dlc;
H A Desd_usb2.c307 stats->rx_bytes += cf->can_dlc;
335 cf->can_dlc = get_can_dlc(msg->msg.rx.dlc);
343 for (i = 0; i < cf->can_dlc; i++)
350 stats->rx_bytes += cf->can_dlc;
744 msg->msg.tx.dlc = cf->can_dlc;
753 for (i = 0; i < cf->can_dlc; i++)
756 msg->msg.hdr.len += (cf->can_dlc + 3) >> 2;
776 context->dlc = cf->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/can/sja1000/
H A Dsja1000.c285 fi = dlc = cf->can_dlc;
352 cf->can_dlc = get_can_dlc(fi & 0x0F);
353 for (i = 0; i < cf->can_dlc; i++)
365 stats->rx_bytes += cf->can_dlc;
475 stats->rx_bytes += cf->can_dlc;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/can/sja1000/
H A Dsja1000.c285 fi = dlc = cf->can_dlc;
352 cf->can_dlc = get_can_dlc(fi & 0x0F);
353 for (i = 0; i < cf->can_dlc; i++)
365 stats->rx_bytes += cf->can_dlc;
475 stats->rx_bytes += cf->can_dlc;

Completed in 278 milliseconds

12