Lines Matching +full:ext +full:- +full:address +full:- +full:match

5  * SPDX-License-Identifier: Apache-2.0
399 * @name Indexes for the cells in the devicetree bosch,mram-cfg property
402 * These match the description of the cells in the bosch,m_can-base devicetree binding.
408 /** std-filter-elements cell index */
410 /** ext-filter-elements cell index */
412 /** rx-fifo0-elements cell index */
414 /** rx-fifo1-elements cell index */
416 /** rx-buffer-elements cell index */
418 /** tx-event-fifo-elements cell index */
420 /** tx-buffer-elements cell index */
422 /** Total number of cells in bosch,mram-cfg property */
437 * @brief Get the number of standard (11-bit) filter elements in Bosch M_CAN Message RAM
440 * @return the number of standard (11-bit) filter elements
446 * @brief Get the number of extended (29-bit) filter elements in Bosch M_CAN Message RAM
449 * @return the number of extended (29-bit) filter elements
500 * @brief Get the base offset of standard (11-bit) filter elements in Bosch M_CAN Message RAM
503 * @return the base offset of standard (11-bit) filter elements in bytes
508 * @brief Get the base offset of extended (29-bit) filter elements in Bosch M_CAN Message RAM
511 * @return the base offset of extended (29-bit) filter elements in bytes
568 * @brief Get the Bosch M_CAN register base address
570 * For devicetree nodes with just one register block, this macro returns the base address of that
573 * If a devicetree node has more than one register block, this macros returns the base address of
577 * @return the Bosch M_CAN register base address
584 * @brief Get the Bosch M_CAN Message RAM base address
587 * the base address of the Message RAM.
590 * @return the Bosch M_CAN Message RAM base address (MRBA)
596 * @brief Get the Bosch M_CAN Message RAM address
599 * the address of the Message RAM, taking in the Message RAM offset into account.
602 * @return the Bosch M_CAN Message RAM address
614 * @return the Bosch M_CAN Message RAM base address
618 (mem_addr_t)(DT_REG_SIZE_BY_NAME(node_id, message_ram) - CAN_MCAN_DT_MRAM_OFFSET(node_id))
677 * @return the number of standard (11-bit) elements
686 * @return the number of extended (29-bit) elements
740 * @return the base offset of standard (11-bit) filter elements in bytes
749 * @return the base offset of extended (29-bit) filter elements in bytes
803 * @return the Bosch M_CAN register base address
811 * @return the Bosch M_CAN Message RAM Base Address (MRBA)
819 * @return the Bosch M_CAN Message RAM address
1072 * @brief Bosch M_CAN driver front-end callback for reading a register value
1079 * @retval -ENOTSUP Register not supported.
1080 * @retval -EIO General input/output error.
1085 * @brief Bosch M_CAN driver front-end callback for writing a register value
1092 * @retval -ENOTSUP Register not supported.
1093 * @retval -EIO General input/output error.
1098 * @brief Bosch M_CAN driver front-end callback for reading from Message RAM
1102 * offset must be 32-bit aligned.
1103 * @param[out] dst Destination for the data read. The destination address must be 32-bit aligned.
1107 * @retval -EIO General input/output error.
1113 * @brief Bosch M_CAN driver front-end callback for writing to Message RAM
1117 * offset must be 32-bit aligned.
1118 * @param src Source for the data to be written. The source address must be 32-bit aligned.
1122 * @retval -EIO General input/output error.
1128 * @brief Bosch M_CAN driver front-end callback for clearing Message RAM
1134 * offset must be 32-bit aligned.
1138 * @retval -EIO General input/output error.
1143 * @brief Bosch M_CAN driver front-end operations.
1175 struct can_mcan_rx_callback *ext; member
1185 * the required software resources (e.g. limit the number of the standard (11-bit) or extended
1186 * (29-bit) filters in use).
1193 * @param _std Number of standard (11-bit) filter callbacks
1194 * @param _ext Number of extended (29-bit) filter callbacks
1204 .ext = _name##_ext_cbs, \
1288 * @param _ops Pointer to front-end @a can_mcan_ops
1289 * @param _cbs Pointer to front-end @a can_mcan_callbacks
1320 * @param _ops Pointer to front-end @a can_mcan_ops
1321 * @param _cbs Pointer to front-end @a can_mcan_callbacks
1337 * @brief Bosch M_CAN driver front-end callback helper for reading a memory mapped register
1339 * @param base Register base address
1353 * @brief Bosch M_CAN driver front-end callback helper for writing a memory mapped register
1355 * @param base Register base address
1369 * @brief Bosch M_CAN driver front-end callback helper for reading from memory mapped Message RAM
1371 * @param base Base address of the Message RAM for the given Bosch M_CAN instance. The base address
1372 * must be 32-bit aligned.
1374 * offset must be 32-bit aligned.
1375 * @param[out] dst Destination for the data read. The destination address must be 32-bit aligned.
1379 * @retval -EIO General input/output error.
1389 __ASSERT(POINTER_TO_UINT(dst) % 4U == 0U, "dst must be 32-bit aligned"); in can_mcan_sys_read_mram()
1401 while (len32-- > 0) { in can_mcan_sys_read_mram()
1409 * @brief Bosch M_CAN driver front-end callback helper for writing to memory mapped Message RAM
1411 * @param base Base address of the Message RAM for the given Bosch M_CAN instance. The base address
1412 * must be 32-bit aligned.
1414 * offset must be 32-bit aligned.
1415 * @param src Source for the data to be written. The source address must be 32-bit aligned.
1419 * @retval -EIO General input/output error.
1430 __ASSERT(POINTER_TO_UINT(src) % 4U == 0U, "src must be 32-bit aligned"); in can_mcan_sys_write_mram()
1433 while (len32-- > 0) { in can_mcan_sys_write_mram()
1445 * @brief Bosch M_CAN driver front-end callback helper for clearing memory mapped Message RAM
1449 * @param base Base address of the Message RAM for the given Bosch M_CAN instance. The base address
1450 * must be 32-bit aligned.
1452 * offset must be 32-bit aligned.
1456 * @retval -EIO General input/output error.
1467 while (len32-- > 0) { in can_mcan_sys_clear_mram()
1486 * @retval -ENOTSUP Register not supported.
1487 * @retval -EIO General input/output error.
1499 * @retval -ENOTSUP Register not supported.
1500 * @retval -EIO General input/output error.
1509 * offset must be 32-bit aligned.
1514 * @retval -EIO General input/output error.
1519 const struct can_mcan_config *config = dev->config; in can_mcan_read_mram()
1521 return config->ops->read_mram(dev, offset, dst, len); in can_mcan_read_mram()
1529 * offset must be 32-bit aligned.
1534 * @retval -EIO General input/output error.
1539 const struct can_mcan_config *config = dev->config; in can_mcan_write_mram()
1541 return config->ops->write_mram(dev, offset, src, len); in can_mcan_write_mram()
1551 * offset must be 32-bit aligned.
1555 * @retval -EIO General input/output error.
1559 const struct can_mcan_config *config = dev->config; in can_mcan_clear_mram()
1561 return config->ops->clear_mram(dev, offset, len); in can_mcan_clear_mram()
1567 * Bosch M_CAN driver front-end callback helper function for configuring the start addresses of the
1572 * words) are calculated relative to the provided Message RAM Base Address (mrba).
1576 * RAM. It is the responsibility of the front-end driver to call this function during driver
1580 * @param mrba Message RAM Base Address.
1581 * @param mram Message RAM Address.
1584 * @retval -EIO General input/output error.