Lines Matching +full:mram +full:- +full:cfg

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
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
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.
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
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
1353 * @brief Bosch M_CAN driver front-end callback helper for writing a memory mapped register
1369 * @brief Bosch M_CAN driver front-end callback helper for reading from memory mapped Message RAM
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
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
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
1576 * RAM. It is the responsibility of the front-end driver to call this function during driver
1581 * @param mram Message RAM Address.
1584 * @retval -EIO General input/output error.
1586 int can_mcan_configure_mram(const struct device *dev, uintptr_t mrba, uintptr_t mram);