Lines Matching refs:can_id
96 canid_t can_id; member
187 op->can_id, bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show()
212 op->can_id, in bcm_proc_show()
381 msg_head.can_id = op->can_id; in bcm_tx_timeout_tsklet()
428 head.can_id = op->can_id; in bcm_rx_changed()
539 msg_head.can_id = op->can_id; in bcm_rx_timeout_tsklet()
645 if (op->can_id != rxframe->can_id) in bcm_rx_handler()
698 static struct bcm_op *bcm_find_op(struct list_head *ops, canid_t can_id, in bcm_find_op() argument
704 if ((op->can_id == can_id) && (op->ifindex == ifindex)) in bcm_find_op()
734 can_rx_unregister(dev, op->can_id, REGMASK(op->can_id), in bcm_rx_unreg()
747 static int bcm_delete_rx_op(struct list_head *ops, canid_t can_id, int ifindex) in bcm_delete_rx_op() argument
752 if ((op->can_id == can_id) && (op->ifindex == ifindex)) { in bcm_delete_rx_op()
776 can_rx_unregister(NULL, op->can_id, in bcm_delete_rx_op()
777 REGMASK(op->can_id), in bcm_delete_rx_op()
792 static int bcm_delete_tx_op(struct list_head *ops, canid_t can_id, int ifindex) in bcm_delete_tx_op() argument
797 if ((op->can_id == can_id) && (op->ifindex == ifindex)) { in bcm_delete_tx_op()
813 struct bcm_op *op = bcm_find_op(ops, msg_head->can_id, ifindex); in bcm_read_op()
850 op = bcm_find_op(&bo->tx_ops, msg_head->can_id, ifindex); in bcm_tx_setup()
875 op->frames[i].can_id = msg_head->can_id; in bcm_tx_setup()
886 op->can_id = msg_head->can_id; in bcm_tx_setup()
914 op->frames[i].can_id = msg_head->can_id; in bcm_tx_setup()
1011 (!(msg_head->can_id & CAN_RTR_FLAG)))) in bcm_rx_setup()
1015 op = bcm_find_op(&bo->rx_ops, msg_head->can_id, ifindex); in bcm_rx_setup()
1049 op->can_id = msg_head->can_id; in bcm_rx_setup()
1133 (op->frames[0].can_id == op->can_id)) in bcm_rx_setup()
1134 op->frames[0].can_id = op->can_id & ~CAN_RTR_FLAG; in bcm_rx_setup()
1170 err = can_rx_register(dev, op->can_id, in bcm_rx_setup()
1171 REGMASK(op->can_id), in bcm_rx_setup()
1180 err = can_rx_register(NULL, op->can_id, in bcm_rx_setup()
1181 REGMASK(op->can_id), in bcm_rx_setup()
1306 if (bcm_delete_tx_op(&bo->tx_ops, msg_head.can_id, ifindex)) in bcm_sendmsg()
1313 if (bcm_delete_rx_op(&bo->rx_ops, msg_head.can_id, ifindex)) in bcm_sendmsg()
1471 can_rx_unregister(NULL, op->can_id, in bcm_release()
1472 REGMASK(op->can_id), in bcm_release()