Home
last modified time | relevance | path

Searched refs:can_id (Results 1 – 25 of 56) sorted by relevance

123

/kernel/linux/linux-5.10/net/sched/
Dem_canid.c50 return cf->can_id; in em_canid_get_id()
53 static void em_canid_sff_match_add(struct canid_match *cm, u32 can_id, in em_canid_sff_match_add() argument
63 can_id &= can_mask; in em_canid_sff_match_add()
67 set_bit(can_id, cm->match_sff); in em_canid_sff_match_add()
83 if ((i & can_mask) == can_id) in em_canid_sff_match_add()
97 canid_t can_id; in em_canid_match() local
102 can_id = em_canid_get_id(skb); in em_canid_match()
104 if (can_id & CAN_EFF_FLAG) { in em_canid_match()
107 if (!(((lp->can_id ^ can_id) & lp->can_mask))) { in em_canid_match()
113 can_id &= CAN_SFF_MASK; in em_canid_match()
[all …]
/kernel/linux/linux-5.10/net/can/
Daf_can.c326 static unsigned int effhash(canid_t can_id) in effhash() argument
330 hash = can_id; in effhash()
331 hash ^= can_id >> CAN_EFF_RCV_HASH_BITS; in effhash()
332 hash ^= can_id >> (2 * CAN_EFF_RCV_HASH_BITS); in effhash()
364 static struct hlist_head *can_rcv_list_find(canid_t *can_id, canid_t *mask, in can_rcv_list_find() argument
367 canid_t inv = *can_id & CAN_INV_FILTER; /* save flag before masking */ in can_rcv_list_find()
381 if ((*mask & CAN_EFF_FLAG) && !(*can_id & CAN_EFF_FLAG)) in can_rcv_list_find()
385 *can_id &= *mask; in can_rcv_list_find()
397 !(*can_id & CAN_RTR_FLAG)) { in can_rcv_list_find()
398 if (*can_id & CAN_EFF_FLAG) { in can_rcv_list_find()
[all …]
Dbcm.c105 canid_t can_id; member
216 seq_printf(m, "rx_op: %03X %-5s ", op->can_id, in bcm_proc_show()
245 seq_printf(m, "tx_op: %03X %s ", op->can_id, in bcm_proc_show()
417 msg_head.can_id = op->can_id; in bcm_tx_timeout_handler()
455 head.can_id = op->can_id; in bcm_rx_changed()
577 msg_head.can_id = op->can_id; in bcm_rx_timeout_handler()
648 if (op->can_id != rxframe->can_id) in bcm_rx_handler()
715 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_find_op()
747 can_rx_unregister(dev_net(dev), dev, op->can_id, in bcm_rx_unreg()
748 REGMASK(op->can_id), bcm_rx_handler, op); in bcm_rx_unreg()
[all …]
Dgw.c156 MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id)
160 MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id)
164 MODFUNC(mod_xor_id, cf->can_id ^= mod->modframe.xor.can_id)
168 MODFUNC(mod_set_id, cf->can_id = mod->modframe.set.can_id)
209 dst->can_id = src->can_id; in canframecpy()
221 dst->can_id = src->can_id; in canfdframecpy()
332 crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^ in cgw_csum_crc8_rel()
333 (cf->can_id >> 8 & 0xFF)]; in cgw_csum_crc8_rel()
359 crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^ in cgw_csum_crc8_pos()
360 (cf->can_id >> 8 & 0xFF)]; in cgw_csum_crc8_pos()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/mscan/
Dmscan.c192 u32 can_id; in mscan_start_xmit() local
227 rtr = frame->can_id & CAN_RTR_FLAG; in mscan_start_xmit()
230 if (frame->can_id & CAN_EFF_FLAG) { in mscan_start_xmit()
231 can_id = (frame->can_id & CAN_EFF_MASK) in mscan_start_xmit()
234 can_id |= 1 << MSCAN_EFF_RTR_SHIFT; in mscan_start_xmit()
235 out_be16(&regs->tx.idr3_2, can_id); in mscan_start_xmit()
237 can_id >>= 16; in mscan_start_xmit()
239 can_id = (can_id & 0x7) | ((can_id << 2) & 0xffe0) in mscan_start_xmit()
242 can_id = (frame->can_id & CAN_SFF_MASK) in mscan_start_xmit()
245 can_id |= 1 << MSCAN_SFF_RTR_SHIFT; in mscan_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/
Dxilinx_can.c560 if (cf->can_id & CAN_EFF_FLAG) { in xcan_write_frame()
562 id = ((cf->can_id & CAN_EFF_MASK) << XCAN_IDR_ID2_SHIFT) & in xcan_write_frame()
564 id |= (((cf->can_id & CAN_EFF_MASK) >> in xcan_write_frame()
573 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame()
578 id = ((cf->can_id & CAN_SFF_MASK) << XCAN_IDR_ID1_SHIFT) & in xcan_write_frame()
581 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame()
621 if (!(cf->can_id & CAN_RTR_FLAG)) { in xcan_write_frame()
767 cf->can_id = (id_xcan & XCAN_IDR_ID1_MASK) >> 3; in xcan_rx()
768 cf->can_id |= (id_xcan & XCAN_IDR_ID2_MASK) >> in xcan_rx()
770 cf->can_id |= CAN_EFF_FLAG; in xcan_rx()
[all …]
Dat91_can.c301 static inline u32 at91_can_id_to_reg_mid(canid_t can_id) in at91_can_id_to_reg_mid() argument
305 if (can_id & CAN_EFF_FLAG) in at91_can_id_to_reg_mid()
306 reg_mid = (can_id & CAN_EFF_MASK) | AT91_MID_MIDE; in at91_can_id_to_reg_mid()
308 reg_mid = (can_id & CAN_SFF_MASK) << 18; in at91_can_id_to_reg_mid()
469 reg_mid = at91_can_id_to_reg_mid(cf->can_id); in at91_start_xmit()
470 reg_mcr = ((cf->can_id & CAN_RTR_FLAG) ? AT91_MCR_MRTR : 0) | in at91_start_xmit()
553 cf->can_id |= CAN_ERR_CRTL; in at91_rx_overflow_err()
578 cf->can_id = ((reg_mid >> 0) & CAN_EFF_MASK) | CAN_EFF_FLAG; in at91_read_mb()
580 cf->can_id = (reg_mid >> 18) & CAN_SFF_MASK; in at91_read_mb()
586 cf->can_id |= CAN_RTR_FLAG; in at91_read_mb()
[all …]
Djanz-ican3.c915 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame()
917 cf->can_id |= desc->data[0] << 3; in ican3_to_can_frame()
918 cf->can_id |= (desc->data[1] & 0xe0) >> 5; in ican3_to_can_frame()
924 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame()
927 cf->can_id |= CAN_EFF_FLAG; in ican3_to_can_frame()
928 cf->can_id |= desc->data[2] << 21; /* 28-21 */ in ican3_to_can_frame()
929 cf->can_id |= desc->data[3] << 13; /* 20-13 */ in ican3_to_can_frame()
930 cf->can_id |= desc->data[4] << 5; /* 12-5 */ in ican3_to_can_frame()
931 cf->can_id |= (desc->data[5] & 0xf8) >> 3; in ican3_to_can_frame()
933 cf->can_id |= desc->data[2] << 3; /* 10-3 */ in ican3_to_can_frame()
[all …]
Dslcan.c155 cf.can_id = CAN_RTR_FLAG; in slc_bump()
165 cf.can_id = CAN_RTR_FLAG; in slc_bump()
168 cf.can_id |= CAN_EFF_FLAG; in slc_bump()
182 cf.can_id |= tmpid; in slc_bump()
191 if (!(cf.can_id & CAN_RTR_FLAG)) { in slc_bump()
257 canid_t id = cf->can_id; in slc_encaps()
261 if (cf->can_id & CAN_RTR_FLAG) in slc_encaps()
267 if (cf->can_id & CAN_EFF_FLAG) { in slc_encaps()
283 pos += (cf->can_id & CAN_EFF_FLAG) ? SLC_EFF_ID_LEN : SLC_SFF_ID_LEN; in slc_encaps()
288 if (!(cf->can_id & CAN_RTR_FLAG)) { in slc_encaps()
/kernel/linux/linux-5.10/drivers/net/can/softing/
Dsofting_main.c80 if (cf->can_id & CAN_RTR_FLAG) in softing_netdev_start_xmit()
82 if (cf->can_id & CAN_EFF_FLAG) in softing_netdev_start_xmit()
88 *ptr++ = (cf->can_id >> 0); in softing_netdev_start_xmit()
89 *ptr++ = (cf->can_id >> 8); in softing_netdev_start_xmit()
90 if (cf->can_id & CAN_EFF_FLAG) { in softing_netdev_start_xmit()
91 *ptr++ = (cf->can_id >> 16); in softing_netdev_start_xmit()
92 *ptr++ = (cf->can_id >> 24); in softing_netdev_start_xmit()
97 if (!(cf->can_id & CAN_RTR_FLAG)) in softing_netdev_start_xmit()
169 msg.can_id = CAN_ERR_FLAG | CAN_ERR_CRTL; in softing_handle_1()
220 msg.can_id = CAN_ERR_FLAG; in softing_handle_1()
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dcan.h25 canid_t can_id; member
35 canid_t can_id; member
62 canid_t can_id; member
/kernel/linux/linux-5.10/drivers/net/can/peak_canfd/
Dpeak_canfd.c307 cf->can_id = le32_to_cpu(msg->can_id); in pucan_handle_can_rx()
311 cf->can_id |= CAN_EFF_FLAG; in pucan_handle_can_rx()
314 cf->can_id |= CAN_RTR_FLAG; in pucan_handle_can_rx()
369 cf->can_id |= CAN_ERR_BUSOFF; in pucan_handle_status()
376 cf->can_id |= CAN_ERR_CRTL; in pucan_handle_status()
389 cf->can_id |= CAN_ERR_CRTL; in pucan_handle_status()
435 cf->can_id |= CAN_ERR_CRTL; in pucan_handle_cache_critical()
676 if (cf->can_id & CAN_EFF_FLAG) { in peak_canfd_start_xmit()
678 msg->can_id = cpu_to_le32(cf->can_id & CAN_EFF_MASK); in peak_canfd_start_xmit()
680 msg->can_id = cpu_to_le32(cf->can_id & CAN_SFF_MASK); in peak_canfd_start_xmit()
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dcan.h38 canid_t can_id; member
48 canid_t can_id; member
81 canid_t can_id; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dcan.h105 canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ member
142 canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ member
213 canid_t can_id; member
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-platform-at916 Value representing the can_id of mailbox 0.
18 In order to use an extended can_id add the
19 CAN_EFF_FLAG (0x80000000U) to the can_id. Example:
/kernel/linux/linux-5.10/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c1075 cf->can_id |= CAN_ERR_RESTARTED; in kvaser_usb_hydra_error_frame()
1096 cf->can_id |= CAN_ERR_BUSERROR; in kvaser_usb_hydra_error_frame()
1126 cf->can_id |= CAN_ERR_BUSERROR; in kvaser_usb_hydra_one_shot_fail()
1130 cf->can_id |= CAN_ERR_ACK; in kvaser_usb_hydra_one_shot_fail()
1132 cf->can_id |= CAN_ERR_LOSTARB; in kvaser_usb_hydra_one_shot_fail()
1226 cf->can_id = le32_to_cpu(cmd->rx_can.id); in kvaser_usb_hydra_rx_msg_std()
1228 if (cf->can_id & KVASER_USB_HYDRA_EXTENDED_FRAME_ID) { in kvaser_usb_hydra_rx_msg_std()
1229 cf->can_id &= CAN_EFF_MASK; in kvaser_usb_hydra_rx_msg_std()
1230 cf->can_id |= CAN_EFF_FLAG; in kvaser_usb_hydra_rx_msg_std()
1232 cf->can_id &= CAN_SFF_MASK; in kvaser_usb_hydra_rx_msg_std()
[all …]
Dkvaser_usb_leaf.c561 if (cf->can_id & CAN_EFF_FLAG) { in kvaser_usb_leaf_frame_to_cmd()
563 cmd->u.tx_can.data[0] = (cf->can_id >> 24) & 0x1f; in kvaser_usb_leaf_frame_to_cmd()
564 cmd->u.tx_can.data[1] = (cf->can_id >> 18) & 0x3f; in kvaser_usb_leaf_frame_to_cmd()
565 cmd->u.tx_can.data[2] = (cf->can_id >> 14) & 0x0f; in kvaser_usb_leaf_frame_to_cmd()
566 cmd->u.tx_can.data[3] = (cf->can_id >> 6) & 0xff; in kvaser_usb_leaf_frame_to_cmd()
567 cmd->u.tx_can.data[4] = cf->can_id & 0x3f; in kvaser_usb_leaf_frame_to_cmd()
570 cmd->u.tx_can.data[0] = (cf->can_id >> 6) & 0x1f; in kvaser_usb_leaf_frame_to_cmd()
571 cmd->u.tx_can.data[1] = cf->can_id & 0x3f; in kvaser_usb_leaf_frame_to_cmd()
577 if (cf->can_id & CAN_RTR_FLAG) in kvaser_usb_leaf_frame_to_cmd()
907 cf->can_id |= CAN_ERR_RESTARTED; in kvaser_usb_leaf_tx_acknowledge()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/usb/
Dmcba_usb.c331 if (cf->can_id & CAN_EFF_FLAG) { in mcba_usb_start_xmit()
337 sid |= (cf->can_id & 0x1ffc0000) >> 13; in mcba_usb_start_xmit()
339 sid |= (cf->can_id & 0x30000) >> 16; in mcba_usb_start_xmit()
343 put_unaligned_be16(cf->can_id & 0xffff, &usb_msg.eid); in mcba_usb_start_xmit()
348 put_unaligned_be16((cf->can_id & CAN_SFF_MASK) << 5, in mcba_usb_start_xmit()
357 if (cf->can_id & CAN_RTR_FLAG) in mcba_usb_start_xmit()
437 cf->can_id = CAN_EFF_FLAG; in mcba_usb_process_can()
440 cf->can_id |= (sid & 0xffe0) << 13; in mcba_usb_process_can()
442 cf->can_id |= (sid & 3) << 16; in mcba_usb_process_can()
444 cf->can_id |= get_unaligned_be16(&msg->eid); in mcba_usb_process_can()
[all …]
Dems_usb.c310 cf->can_id = le32_to_cpu(msg->msg.can_msg.id); in ems_usb_rx_can_msg()
315 cf->can_id |= CAN_EFF_FLAG; in ems_usb_rx_can_msg()
319 cf->can_id |= CAN_RTR_FLAG; in ems_usb_rx_can_msg()
345 cf->can_id |= CAN_ERR_BUSOFF; in ems_usb_rx_err()
365 cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR; in ems_usb_rx_err()
388 cf->can_id |= CAN_ERR_CRTL; in ems_usb_rx_err()
393 cf->can_id |= CAN_ERR_CRTL; in ems_usb_rx_err()
769 msg->msg.can_msg.id = cpu_to_le32(cf->can_id & CAN_ERR_MASK); in ems_usb_start_xmit()
772 if (cf->can_id & CAN_RTR_FLAG) { in ems_usb_start_xmit()
773 msg->type = cf->can_id & CAN_EFF_FLAG ? in ems_usb_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb.c534 cf->can_id |= CAN_ERR_BUSOFF; in pcan_usb_decode_error()
540 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error()
551 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error()
562 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error()
577 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error()
726 cf->can_id = (le32_to_cpu(tmp32) >> 3) | CAN_EFF_FLAG; in pcan_usb_decode_data()
736 cf->can_id = le16_to_cpu(tmp16) >> 5; in pcan_usb_decode_data()
751 cf->can_id |= CAN_RTR_FLAG; in pcan_usb_decode_data()
844 if (cf->can_id & CAN_RTR_FLAG) in pcan_usb_encode_msg()
848 if (cf->can_id & CAN_EFF_FLAG) { in pcan_usb_encode_msg()
[all …]
Dpcan_usb_pro.c534 can_frame->can_id = le32_to_cpu(rx->id); in pcan_usb_pro_handle_canmsg()
538 can_frame->can_id |= CAN_EFF_FLAG; in pcan_usb_pro_handle_canmsg()
541 can_frame->can_id |= CAN_RTR_FLAG; in pcan_usb_pro_handle_canmsg()
620 can_frame->can_id |= CAN_ERR_BUSOFF; in pcan_usb_pro_handle_error()
626 can_frame->can_id |= CAN_ERR_CRTL; in pcan_usb_pro_handle_error()
632 can_frame->can_id |= CAN_ERR_CRTL; in pcan_usb_pro_handle_error()
643 can_frame->can_id |= CAN_ERR_PROT; in pcan_usb_pro_handle_error()
650 can_frame->can_id |= CAN_ERR_CRTL; in pcan_usb_pro_handle_error()
770 if ((cf->can_id & CAN_RTR_FLAG) || (cf->can_dlc == 0)) in pcan_usb_pro_encode_msg()
780 if (cf->can_id & CAN_EFF_FLAG) in pcan_usb_pro_encode_msg()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/spi/
Dhi311x.c267 if (frame->can_id & CAN_EFF_FLAG) { in hi3110_hw_tx()
269 buf[HI3110_FIFO_ID_OFF] = (frame->can_id & CAN_EFF_MASK) >> 21; in hi3110_hw_tx()
271 (((frame->can_id & CAN_EFF_MASK) >> 13) & 0xe0) | in hi3110_hw_tx()
273 (((frame->can_id & CAN_EFF_MASK) >> 15) & 0x07); in hi3110_hw_tx()
275 (frame->can_id & CAN_EFF_MASK) >> 7; in hi3110_hw_tx()
277 ((frame->can_id & CAN_EFF_MASK) << 1) | in hi3110_hw_tx()
278 ((frame->can_id & CAN_RTR_FLAG) ? 1 : 0); in hi3110_hw_tx()
289 buf[HI3110_FIFO_ID_OFF] = (frame->can_id & CAN_SFF_MASK) >> 3; in hi3110_hw_tx()
291 ((frame->can_id & CAN_SFF_MASK) << 5) | in hi3110_hw_tx()
292 ((frame->can_id & CAN_RTR_FLAG) ? (1 << 4) : 0); in hi3110_hw_tx()
[all …]
Dmcp251x.c644 exide = (frame->can_id & CAN_EFF_FLAG) ? 1 : 0; /* Extended ID Enable */ in mcp251x_hw_tx()
646 sid = (frame->can_id & CAN_EFF_MASK) >> 18; in mcp251x_hw_tx()
648 sid = frame->can_id & CAN_SFF_MASK; /* Standard ID */ in mcp251x_hw_tx()
649 eid = frame->can_id & CAN_EFF_MASK; /* Extended ID */ in mcp251x_hw_tx()
650 rtr = (frame->can_id & CAN_RTR_FLAG) ? 1 : 0; /* Remote transmission */ in mcp251x_hw_tx()
714 frame->can_id = CAN_EFF_FLAG; in mcp251x_hw_rx()
715 frame->can_id |= in mcp251x_hw_rx()
725 frame->can_id |= CAN_RTR_FLAG; in mcp251x_hw_rx()
728 frame->can_id = in mcp251x_hw_rx()
732 frame->can_id |= CAN_RTR_FLAG; in mcp251x_hw_rx()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/rcar/
Drcar_can.c239 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error()
247 cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT; in rcar_can_error()
283 cf->can_id |= CAN_ERR_ACK; in rcar_can_error()
338 cf->can_id |= CAN_ERR_BUSOFF; in rcar_can_error()
349 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error()
360 cf->can_id |= CAN_ERR_PROT; in rcar_can_error()
602 if (cf->can_id & CAN_EFF_FLAG) /* Extended frame format */ in rcar_can_start_xmit()
603 data = (cf->can_id & CAN_EFF_MASK) | RCAR_CAN_IDE; in rcar_can_start_xmit()
605 data = (cf->can_id & CAN_SFF_MASK) << RCAR_CAN_SID_SHIFT; in rcar_can_start_xmit()
607 if (cf->can_id & CAN_RTR_FLAG) { /* Remote transmission request */ in rcar_can_start_xmit()
[all …]
/kernel/linux/linux-5.10/include/linux/can/
Dcore.h51 canid_t can_id, canid_t mask,
56 canid_t can_id, canid_t mask,

123