Lines Matching refs:num_rx
66 u8 num_rx, num_tx; in can_ram_get_layout() local
77 num_rx = ram_free / config->rx.size[fd_mode]; in can_ram_get_layout()
79 layout->default_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout()
86 num_rx = ram_free / config->rx.size[fd_mode]; in can_ram_get_layout()
92 layout->max_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout()
105 num_rx = ring->rx_pending; in can_ram_get_layout()
106 if (num_rx > layout->max_rx) in can_ram_get_layout()
107 num_rx = layout->default_rx; in can_ram_get_layout()
109 num_rx = can_ram_rounddown_pow_of_two(config, &config->rx, 0, num_rx); in can_ram_get_layout()
119 max = min_t(u8, num_rx / 2, config->fifo_depth); in can_ram_get_layout()
125 num_rx = can_ram_rounddown_pow_of_two(config, &config->rx, in can_ram_get_layout()
126 num_rx_coalesce, num_rx); in can_ram_get_layout()
129 ram_free = config->size - config->rx.size[fd_mode] * num_rx; in can_ram_get_layout()
152 layout->cur_rx = num_rx; in can_ram_get_layout()