Lines Matching refs:can_dev

164 	ret = can_send(rctx->can_dev, &frame, K_MSEC(ISOTP_A_TIMEOUT_MS), receive_can_tx, rctx);  in receive_send_fc()
606 rctx->filter_id = can_add_rx_filter(rctx->can_dev, receive_can_rx, rctx, &filter); in add_ff_sf_filter()
615 int isotp_bind(struct isotp_recv_ctx *rctx, const struct device *can_dev, in isotp_bind() argument
625 __ASSERT(can_dev, "CAN device is NULL"); in isotp_bind()
629 rctx->can_dev = can_dev; in isotp_bind()
642 ret = can_get_capabilities(can_dev, &cap); in isotp_bind()
676 if (rctx->filter_id >= 0 && rctx->can_dev) { in isotp_unbind()
677 can_remove_rx_filter(rctx->can_dev, rctx->filter_id); in isotp_unbind()
942 ret = can_send(sctx->can_dev, &frame, K_MSEC(ISOTP_A_TIMEOUT_MS), send_can_tx_cb, sctx); in send_sf()
982 ret = can_send(sctx->can_dev, &frame, K_MSEC(ISOTP_A_TIMEOUT_MS), send_can_tx_cb, sctx); in send_ff()
1024 ret = can_send(sctx->can_dev, &frame, K_MSEC(ISOTP_A_TIMEOUT_MS), send_can_tx_cb, sctx); in send_cf()
1141 can_remove_rx_filter(sctx->can_dev, sctx->filter_id); in send_state_machine()
1182 sctx->filter_id = can_add_rx_filter(sctx->can_dev, send_can_rx_cb, sctx, in add_fc_filter()
1192 static int send(struct isotp_send_ctx *sctx, const struct device *can_dev, in send() argument
1202 __ASSERT_NO_MSG(can_dev); in send()
1206 ret = can_get_capabilities(can_dev, &cap); in send()
1223 sctx->can_dev = can_dev; in send()
1295 int isotp_send(struct isotp_send_ctx *sctx, const struct device *can_dev, in isotp_send() argument
1306 return send(sctx, can_dev, tx_addr, rx_addr, complete_cb, cb_arg); in isotp_send()
1311 int isotp_send_ctx_buf(const struct device *can_dev, in isotp_send_ctx_buf() argument
1332 return send(sctx, can_dev, tx_addr, rx_addr, complete_cb, cb_arg); in isotp_send_ctx_buf()
1335 int isotp_send_net_ctx_buf(const struct device *can_dev, in isotp_send_net_ctx_buf() argument
1355 return send(sctx, can_dev, tx_addr, rx_addr, complete_cb, cb_arg); in isotp_send_net_ctx_buf()
1359 int isotp_send_buf(const struct device *can_dev, in isotp_send_buf() argument
1388 return send(sctx, can_dev, tx_addr, rx_addr, complete_cb, cb_arg); in isotp_send_buf()