/linux-4.4.14/drivers/net/can/ |
D | slcan.c | 158 cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN]; in slc_bump() 169 cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN]; in slc_bump() 184 if (cf.can_dlc >= '0' && cf.can_dlc < '9') in slc_bump() 185 cf.can_dlc -= '0'; in slc_bump() 193 for (i = 0; i < cf.can_dlc; i++) { in slc_bump() 223 sl->dev->stats.rx_bytes += cf.can_dlc; in slc_bump() 287 *pos++ = cf->can_dlc + '0'; in slc_encaps() 291 for (i = 0; i < cf->can_dlc; i++) in slc_encaps() 309 sl->dev->stats.tx_bytes += cf->can_dlc; in slc_encaps()
|
D | xilinx_can.c | 433 dlc = cf->can_dlc << XCAN_DLCR_DLC_SHIFT; in xcan_start_xmit() 435 if (cf->can_dlc > 0) in xcan_start_xmit() 437 if (cf->can_dlc > 4) in xcan_start_xmit() 453 stats->tx_bytes += cf->can_dlc; in xcan_start_xmit() 493 cf->can_dlc = get_can_dlc(dlc); in xcan_rx() 518 if (cf->can_dlc > 0) in xcan_rx() 520 if (cf->can_dlc > 4) in xcan_rx() 524 stats->rx_bytes += cf->can_dlc; in xcan_rx() 663 stats->rx_bytes += cf->can_dlc; in xcan_err_interrupt()
|
D | bfin_can.c | 346 u8 dlc = cf->can_dlc; in bfin_can_start_xmit() 418 cf->can_dlc = get_can_dlc(readw(®->chl[obj].dlc) & 0xF); in bfin_can_rx() 423 cf->data[7 - i] = (7 - i) < cf->can_dlc ? val : 0; in bfin_can_rx() 424 cf->data[6 - i] = (6 - i) < cf->can_dlc ? (val >> 8) : 0; in bfin_can_rx() 428 stats->rx_bytes += cf->can_dlc; in bfin_can_rx() 509 stats->rx_bytes += cf->can_dlc; in bfin_can_err()
|
D | rcar_can.c | 362 stats->rx_bytes += cf->can_dlc; in rcar_can_error() 605 for (i = 0; i < cf->can_dlc; i++) in rcar_can_start_xmit() 612 writeb(cf->can_dlc, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].dlc); in rcar_can_start_xmit() 614 priv->tx_dlc[priv->tx_head % RCAR_CAN_FIFO_DEPTH] = cf->can_dlc; in rcar_can_start_xmit() 657 cf->can_dlc = get_can_dlc(dlc); in rcar_can_rx_pkt() 661 for (dlc = 0; dlc < cf->can_dlc; dlc++) in rcar_can_rx_pkt() 668 stats->rx_bytes += cf->can_dlc; in rcar_can_rx_pkt()
|
D | janz-ican3.c | 875 cf->can_dlc = get_can_dlc(desc->data[1] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame() 876 memcpy(cf->data, &desc->data[2], cf->can_dlc); in ican3_to_can_frame() 878 cf->can_dlc = get_can_dlc(desc->data[0] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame() 893 memcpy(cf->data, &desc->data[6], cf->can_dlc); in ican3_to_can_frame() 906 desc->data[0] |= cf->can_dlc; in can_frame_to_ican3() 929 memcpy(&desc->data[6], cf->data, cf->can_dlc); in can_frame_to_ican3() 1215 dlc = cf->can_dlc; in ican3_get_echo_skb() 1253 if (cf->can_dlc != echo_cf->can_dlc) in ican3_echo_skb_matches() 1256 return memcmp(cf->data, echo_cf->data, cf->can_dlc) == 0; in ican3_echo_skb_matches() 1342 stats->rx_bytes += cf->can_dlc; in ican3_recv_skb()
|
D | sun4i_can.c | 427 dlc = cf->can_dlc; in sun4ican_start_xmit() 478 cf->can_dlc = get_can_dlc(fi & 0x0F); in sun4i_can_rx() 496 for (i = 0; i < cf->can_dlc; i++) in sun4i_can_rx() 504 stats->rx_bytes += cf->can_dlc; in sun4i_can_rx() 621 stats->rx_bytes += cf->can_dlc; in sun4i_can_err()
|
D | flexcan.c | 475 u32 ctrl = FLEXCAN_MB_CODE_TX_DATA | (cf->can_dlc << 16); in flexcan_start_xmit() 492 if (cf->can_dlc > 0) { in flexcan_start_xmit() 496 if (cf->can_dlc > 3) { in flexcan_start_xmit() 577 dev->stats.rx_bytes += cf->can_dlc; in flexcan_poll_bus_err() 621 dev->stats.rx_bytes += cf->can_dlc; in flexcan_poll_state() 644 cf->can_dlc = get_can_dlc((reg_ctrl >> 16) & 0xf); in flexcan_read_fifo() 669 stats->rx_bytes += cf->can_dlc; in flexcan_read_frame()
|
D | at91_can.c | 475 (cf->can_dlc << 16) | AT91_MCR_MTCR; in at91_start_xmit() 488 stats->tx_bytes += cf->can_dlc; in at91_start_xmit() 561 stats->rx_bytes += cf->can_dlc; in at91_rx_overflow_err() 587 cf->can_dlc = get_can_dlc((reg_msr >> 16) & 0xf); in at91_read_mb() 626 stats->rx_bytes += cf->can_dlc; in at91_read_msg() 786 dev->stats.rx_bytes += cf->can_dlc; in at91_poll_err() 1051 dev->stats.rx_bytes += cf->can_dlc; in at91_irq_err()
|
D | ti_hecc.c | 509 data = cf->can_dlc | (get_tx_head_prio(priv) << 8); in ti_hecc_xmit() 521 if (cf->can_dlc > 4) in ti_hecc_xmit() 569 cf->can_dlc = get_can_dlc(data & 0xF); in ti_hecc_rx_pkt() 572 if (cf->can_dlc > 4) { in ti_hecc_rx_pkt() 584 stats->rx_bytes += cf->can_dlc; in ti_hecc_rx_pkt() 748 stats->rx_bytes += cf->can_dlc; in ti_hecc_error()
|
D | dev.c | 43 u8 can_dlc2len(u8 can_dlc) in can_dlc2len() argument 45 return dlc2len[can_dlc & 0x0F]; in can_dlc2len() 441 u8 dlc = cf->can_dlc; in can_get_echo_skb() 502 stats->rx_bytes += cf->can_dlc; in can_restart() 635 (*cf)->can_dlc = CAN_ERR_DLC; in alloc_can_err_skb()
|
D | pch_can.c | 577 stats->rx_bytes += cf->can_dlc; in pch_can_error() 697 cf->can_dlc = get_can_dlc((ioread32(&priv->regs-> in pch_can_rx_normal() 700 for (i = 0; i < cf->can_dlc; i += 2) { in pch_can_rx_normal() 710 stats->rx_bytes += cf->can_dlc; in pch_can_rx_normal() 933 for (i = 0; i < cf->can_dlc; i += 2) { in pch_xmit() 941 iowrite32(cf->can_dlc | PCH_IF_MCONT_NEWDAT | PCH_IF_MCONT_TXRQXT | in pch_xmit()
|
D | grcan.c | 1208 cf->can_dlc = get_can_dlc((slot[1] & GRCAN_MSG_DLC) in grcan_receive() 1213 for (i = 0; i < cf->can_dlc; i++) { in grcan_receive() 1222 stats->rx_bytes += cf->can_dlc; in grcan_receive() 1406 dlc = cf->can_dlc; in grcan_start_xmit() 1454 priv->txdlc[slotindex] = cf->can_dlc; /* Store dlc for statistics */ in grcan_start_xmit()
|
/linux-4.4.14/net/can/ |
D | gw.c | 160 MODFUNC(mod_and_dlc, cf->can_dlc &= mod->modframe.and.can_dlc) 163 MODFUNC(mod_or_dlc, cf->can_dlc |= mod->modframe.or.can_dlc) 166 MODFUNC(mod_xor_dlc, cf->can_dlc ^= mod->modframe.xor.can_dlc) 169 MODFUNC(mod_set_dlc, cf->can_dlc = mod->modframe.set.can_dlc) 181 dst->can_dlc = src->can_dlc; in canframecpy() 214 int from = calc_idx(xor->from_idx, cf->can_dlc); in cgw_csum_xor_rel() 215 int to = calc_idx(xor->to_idx, cf->can_dlc); in cgw_csum_xor_rel() 216 int res = calc_idx(xor->result_idx, cf->can_dlc); in cgw_csum_xor_rel() 258 int from = calc_idx(crc8->from_idx, cf->can_dlc); in cgw_csum_crc8_rel() 259 int to = calc_idx(crc8->to_idx, cf->can_dlc); in cgw_csum_crc8_rel() [all …]
|
D | bcm.c | 322 firstframe->can_dlc &= BCM_CAN_DLC_MASK; in bcm_send_to_user() 421 data->can_dlc &= (BCM_CAN_DLC_MASK|RX_RECV); in bcm_rx_changed() 446 lastdata->can_dlc |= (RX_RECV|RX_THR); in bcm_rx_update_and_send() 491 if (!(op->last_frames[index].can_dlc & RX_RECV)) { in bcm_rx_cmp_to_index() 507 if (rxdata->can_dlc != (op->last_frames[index].can_dlc & in bcm_rx_cmp_to_index() 572 if ((op->last_frames) && (op->last_frames[index].can_dlc & RX_THR)) { in bcm_rx_do_flush() 867 if (op->frames[i].can_dlc > 8) in bcm_tx_setup() 902 if (op->frames[i].can_dlc > 8) in bcm_tx_setup()
|
D | af_can.c | 900 BUILD_BUG_ON(offsetof(struct can_frame, can_dlc) != in can_init()
|
/linux-4.4.14/drivers/net/can/mscan/ |
D | mscan.c | 263 for (i = 0; i < frame->can_dlc / 2; i++) { in mscan_start_xmit() 268 if (frame->can_dlc & 1) in mscan_start_xmit() 269 out_8(data, frame->data[frame->can_dlc - 1]); in mscan_start_xmit() 272 out_8(®s->tx.dlr, frame->can_dlc); in mscan_start_xmit() 325 frame->can_dlc = get_can_dlc(in_8(®s->rx.dlr) & 0xf); in mscan_get_rx_frame() 331 for (i = 0; i < frame->can_dlc / 2; i++) { in mscan_get_rx_frame() 336 if (frame->can_dlc & 1) in mscan_get_rx_frame() 337 frame->data[frame->can_dlc - 1] = in_8(data); in mscan_get_rx_frame() 385 frame->can_dlc = CAN_ERR_DLC; in mscan_get_err_frame() 421 stats->rx_bytes += frame->can_dlc; in mscan_rx_poll()
|
/linux-4.4.14/drivers/net/can/usb/ |
D | gs_usb.c | 128 u8 can_dlc; member 321 cf->can_dlc = get_can_dlc(hf->can_dlc); in gs_usb_receive_bulk_callback() 329 netdev->stats.rx_bytes += hf->can_dlc; in gs_usb_receive_bulk_callback() 341 netdev->stats.tx_bytes += hf->can_dlc; in gs_usb_receive_bulk_callback() 366 cf->can_dlc = CAN_ERR_DLC; in gs_usb_receive_bulk_callback() 501 hf->can_dlc = cf->can_dlc; in gs_can_start_xmit() 502 memcpy(hf->data, cf->data, cf->can_dlc); in gs_can_start_xmit()
|
D | ems_usb.c | 321 cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF); in ems_usb_rx_can_msg() 331 for (i = 0; i < cf->can_dlc; i++) in ems_usb_rx_can_msg() 336 stats->rx_bytes += cf->can_dlc; in ems_usb_rx_can_msg() 410 stats->rx_bytes += cf->can_dlc; in ems_usb_rx_err() 772 msg->msg.can_msg.length = cf->can_dlc; in ems_usb_start_xmit() 783 for (i = 0; i < cf->can_dlc; i++) in ems_usb_start_xmit() 786 msg->length = CPC_CAN_MSG_MIN_SIZE + cf->can_dlc; in ems_usb_start_xmit() 811 context->dlc = cf->can_dlc; in ems_usb_start_xmit()
|
D | usb_8dev.c | 463 stats->rx_bytes += cf->can_dlc; in usb_8dev_rx_err_msg() 484 cf->can_dlc = get_can_dlc(msg->dlc & 0xF); in usb_8dev_rx_can_msg() 492 memcpy(cf->data, msg->data, cf->can_dlc); in usb_8dev_rx_can_msg() 495 stats->rx_bytes += cf->can_dlc; in usb_8dev_rx_can_msg() 651 msg->dlc = cf->can_dlc; in usb_8dev_start_xmit() 652 memcpy(msg->data, cf->data, cf->can_dlc); in usb_8dev_start_xmit() 670 context->dlc = cf->can_dlc; in usb_8dev_start_xmit()
|
D | esd_usb2.c | 307 stats->rx_bytes += cf->can_dlc; in esd_usb2_rx_event() 336 cf->can_dlc = get_can_dlc(msg->msg.rx.dlc); in esd_usb2_rx_can_msg() 344 for (i = 0; i < cf->can_dlc; i++) in esd_usb2_rx_can_msg() 349 stats->rx_bytes += cf->can_dlc; in esd_usb2_rx_can_msg() 753 msg->msg.tx.dlc = cf->can_dlc; in esd_usb2_start_xmit() 762 for (i = 0; i < cf->can_dlc; i++) in esd_usb2_start_xmit() 765 msg->msg.hdr.len += (cf->can_dlc + 3) >> 2; in esd_usb2_start_xmit() 785 context->dlc = cf->can_dlc; in esd_usb2_start_xmit()
|
D | kvaser_usb.c | 736 stats->rx_bytes += cf->can_dlc; in kvaser_usb_tx_acknowledge() 889 struct can_frame *cf, tmp_cf = { .can_id = CAN_ERR_FLAG, .can_dlc = CAN_ERR_DLC }; in kvaser_usb_rx_error() 973 stats->rx_bytes += cf->can_dlc; in kvaser_usb_rx_error() 1125 stats->rx_bytes += cf->can_dlc; in kvaser_usb_rx_can_err() 1187 cf->can_dlc = get_can_dlc(msg->u.leaf.log_message.dlc); in kvaser_usb_rx_can_msg() 1193 cf->can_dlc); in kvaser_usb_rx_can_msg() 1205 cf->can_dlc = get_can_dlc(rx_msg[5]); in kvaser_usb_rx_can_msg() 1211 cf->can_dlc); in kvaser_usb_rx_can_msg() 1215 stats->rx_bytes += cf->can_dlc; in kvaser_usb_rx_can_msg() 1708 msg->u.tx_can.msg[5] = cf->can_dlc; in kvaser_usb_start_xmit() [all …]
|
/linux-4.4.14/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 530 mc->netdev->stats.rx_bytes += cf->can_dlc; in pcan_usb_decode_error() 639 cf->can_dlc = get_can_dlc(rec_len); in pcan_usb_decode_data() 653 memcpy(cf->data, mc->ptr, cf->can_dlc); in pcan_usb_decode_data() 664 mc->netdev->stats.rx_bytes += cf->can_dlc; in pcan_usb_decode_data() 742 *pc = cf->can_dlc; in pcan_usb_encode_msg() 762 memcpy(pc, cf->data, cf->can_dlc); in pcan_usb_encode_msg() 763 pc += cf->can_dlc; in pcan_usb_encode_msg()
|
D | pcan_usb_pro.c | 542 can_frame->can_dlc = rx->len & 0x0f; in pcan_usb_pro_handle_canmsg() 550 memcpy(can_frame->data, rx->data, can_frame->can_dlc); in pcan_usb_pro_handle_canmsg() 557 netdev->stats.rx_bytes += can_frame->can_dlc; in pcan_usb_pro_handle_canmsg() 674 netdev->stats.rx_bytes += can_frame->can_dlc; in pcan_usb_pro_handle_error() 779 if ((cf->can_id & CAN_RTR_FLAG) || (cf->can_dlc == 0)) in pcan_usb_pro_encode_msg() 781 else if (cf->can_dlc <= 4) in pcan_usb_pro_encode_msg() 786 len = (dev->ctrl_idx << 4) | (cf->can_dlc & 0x0f); in pcan_usb_pro_encode_msg()
|
D | pcan_usb_fd.c | 580 netdev->stats.rx_bytes += cf->can_dlc; in pcan_usb_fd_decode_status() 726 u8 can_dlc; in pcan_usb_fd_encode_msg() local 742 can_dlc = can_len2dlc(cfd->len); in pcan_usb_fd_encode_msg() 753 can_dlc = cfd->len; in pcan_usb_fd_encode_msg() 760 tx_msg->channel_dlc = PUCAN_MSG_CHANNEL_DLC(dev->ctrl_idx, can_dlc); in pcan_usb_fd_encode_msg()
|
/linux-4.4.14/drivers/net/can/spi/ |
D | mcp251x.c | 431 buf[TXBDLC_OFF] = (rtr << DLC_RTR_SHIFT) | frame->can_dlc; in mcp251x_hw_tx() 432 memcpy(buf + TXBDAT_OFF, frame->data, frame->can_dlc); in mcp251x_hw_tx() 433 mcp251x_hw_tx_frame(spi, buf, frame->can_dlc, tx_buf_idx); in mcp251x_hw_tx() 499 frame->can_dlc = get_can_dlc(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK); in mcp251x_hw_rx() 500 memcpy(frame->data, buf + RXBDAT_OFF, frame->can_dlc); in mcp251x_hw_rx() 503 priv->net->stats.rx_bytes += frame->can_dlc; in mcp251x_hw_rx() 757 if (frame->can_dlc > CAN_FRAME_MAX_DATA_LEN) in mcp251x_tx_work_handler() 758 frame->can_dlc = CAN_FRAME_MAX_DATA_LEN; in mcp251x_tx_work_handler() 760 priv->tx_len = 1 + frame->can_dlc; in mcp251x_tx_work_handler()
|
/linux-4.4.14/drivers/net/can/sja1000/ |
D | sja1000.c | 298 fi = dlc = cf->can_dlc; in sja1000_start_xmit() 370 cf->can_dlc = get_can_dlc(fi & 0x0F); in sja1000_rx() 374 for (i = 0; i < cf->can_dlc; i++) in sja1000_rx() 384 stats->rx_bytes += cf->can_dlc; in sja1000_rx() 489 stats->rx_bytes += cf->can_dlc; in sja1000_err()
|
/linux-4.4.14/drivers/net/can/cc770/ |
D | cc770.c | 414 dlc = cf->can_dlc; in cc770_start_xmit() 487 cf->can_dlc = 0; in cc770_rx() 503 cf->can_dlc = get_can_dlc((config & 0xf0) >> 4); in cc770_rx() 504 for (i = 0; i < cf->can_dlc; i++) in cc770_rx() 509 stats->rx_bytes += cf->can_dlc; in cc770_rx() 589 stats->rx_bytes += cf->can_dlc; in cc770_err()
|
/linux-4.4.14/drivers/net/can/softing/ |
D | softing_main.c | 98 *ptr++ = cf->can_dlc; in softing_netdev_start_xmit() 109 memcpy(ptr, &cf->data[0], cf->can_dlc); in softing_netdev_start_xmit() 181 msg.can_dlc = CAN_ERR_DLC; in softing_handle_1() 232 msg.can_dlc = CAN_ERR_DLC; in softing_handle_1() 275 msg.can_dlc = get_can_dlc(*ptr++); in softing_handle_1() 308 netdev->stats.tx_bytes += msg.can_dlc; in softing_handle_1() 316 netdev->stats.rx_bytes += msg.can_dlc; in softing_handle_1()
|
D | softing_fw.c | 638 msg.can_dlc = CAN_ERR_DLC; in softing_startstop()
|
/linux-4.4.14/drivers/net/can/c_can/ |
D | c_can.c | 305 u16 ctrl = IF_MCONT_TX | frame->can_dlc; in c_can_setup_tx_object() 335 for (i = 0; i < frame->can_dlc; i += 2) { in c_can_setup_tx_object() 391 frame->can_dlc = get_can_dlc(ctrl & 0x0F); in c_can_read_msg_object() 405 for (i = 0; i < frame->can_dlc; i += 2, dreg ++) { in c_can_read_msg_object() 413 stats->rx_bytes += frame->can_dlc; in c_can_read_msg_object() 459 priv->dlc[idx] = frame->can_dlc; in c_can_start_xmit() 926 stats->rx_bytes += cf->can_dlc; in c_can_handle_state_change() 996 stats->rx_bytes += cf->can_dlc; in c_can_handle_bus_err()
|
/linux-4.4.14/include/uapi/linux/ |
D | can.h | 105 __u8 can_dlc; /* frame payload length in byte (0 .. CAN_MAX_DLEN) */ member
|
/linux-4.4.14/include/linux/can/ |
D | dev.h | 130 u8 can_dlc2len(u8 can_dlc);
|
/linux-4.4.14/drivers/net/can/m_can/ |
D | m_can.c | 521 stats->rx_bytes += cf->can_dlc; in m_can_handle_lec_err() 633 stats->rx_bytes += cf->can_dlc; in m_can_handle_state_change()
|
/linux-4.4.14/Documentation/networking/ |
D | can.txt | 270 __u8 can_dlc; /* frame payload length in byte (0 .. 8) */ 409 can_frame.can_dlc are equal and contain a length information and no DLC. 1173 payload. The representation of this length in can_frame.can_dlc and
|