Lines Matching refs:config
77 union cvmx_pko_mem_iqueue_ptrs config; in __cvmx_pko_iport_config() local
81 config.u64 = 0; in __cvmx_pko_iport_config()
82 config.s.index = queue; in __cvmx_pko_iport_config()
83 config.s.qid = base_queue + queue; in __cvmx_pko_iport_config()
84 config.s.ipid = pko_port; in __cvmx_pko_iport_config()
85 config.s.tail = (queue == (num_queues - 1)); in __cvmx_pko_iport_config()
86 config.s.s_tail = (queue == static_priority_end); in __cvmx_pko_iport_config()
87 config.s.static_p = (static_priority_base >= 0); in __cvmx_pko_iport_config()
88 config.s.static_q = (queue <= static_priority_end); in __cvmx_pko_iport_config()
89 config.s.qos_mask = 0xff; in __cvmx_pko_iport_config()
105 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr) >> 7; in __cvmx_pko_iport_config()
107 cvmx_write_csr(CVMX_PKO_MEM_IQUEUE_PTRS, config.u64); in __cvmx_pko_iport_config()
124 union cvmx_pko_mem_iport_ptrs config; in __cvmx_pko_port_map_o68() local
129 config.u64 = 0; in __cvmx_pko_port_map_o68()
130 config.s.eid = 31; /* Invalid */ in __cvmx_pko_port_map_o68()
132 config.s.ipid = port; in __cvmx_pko_port_map_o68()
133 cvmx_write_csr(CVMX_PKO_MEM_IPORT_PTRS, config.u64); in __cvmx_pko_port_map_o68()
146 config.s.ipid = port; in __cvmx_pko_port_map_o68()
147 config.s.qos_mask = 0xff; in __cvmx_pko_port_map_o68()
148 config.s.crc = 1; in __cvmx_pko_port_map_o68()
149 config.s.min_pkt = 1; in __cvmx_pko_port_map_o68()
150 config.s.intr = __cvmx_pko_int(interface, index); in __cvmx_pko_port_map_o68()
151 config.s.eid = config.s.intr; in __cvmx_pko_port_map_o68()
152 config.s.pipe = (mode == CVMX_HELPER_INTERFACE_MODE_LOOP) ? in __cvmx_pko_port_map_o68()
154 cvmx_write_csr(CVMX_PKO_MEM_IPORT_PTRS, config.u64); in __cvmx_pko_port_map_o68()
187 union cvmx_pko_reg_cmd_buf config; in cvmx_pko_initialize_global() local
194 config.u64 = 0; in cvmx_pko_initialize_global()
195 config.s.pool = CVMX_FPA_OUTPUT_BUFFER_POOL; in cvmx_pko_initialize_global()
196 config.s.size = CVMX_FPA_OUTPUT_BUFFER_POOL_SIZE / 8 - 1; in cvmx_pko_initialize_global()
198 cvmx_write_csr(CVMX_PKO_REG_CMD_BUF, config.u64); in cvmx_pko_initialize_global()
283 union cvmx_pko_mem_queue_ptrs config; in cvmx_pko_shutdown() local
289 config.u64 = 0; in cvmx_pko_shutdown()
290 config.s.tail = 1; in cvmx_pko_shutdown()
291 config.s.index = 0; in cvmx_pko_shutdown()
292 config.s.port = CVMX_PKO_MEM_QUEUE_PTRS_ILLEGAL_PID; in cvmx_pko_shutdown()
293 config.s.queue = queue & 0x7f; in cvmx_pko_shutdown()
294 config.s.qos_mask = 0; in cvmx_pko_shutdown()
295 config.s.buf_ptr = 0; in cvmx_pko_shutdown()
302 cvmx_write_csr(CVMX_PKO_MEM_QUEUE_PTRS, config.u64); in cvmx_pko_shutdown()
332 union cvmx_pko_mem_queue_ptrs config; in cvmx_pko_config_port() local
429 config.u64 = 0; in cvmx_pko_config_port()
430 config.s.tail = queue == (num_queues - 1); in cvmx_pko_config_port()
431 config.s.index = queue; in cvmx_pko_config_port()
432 config.s.port = port; in cvmx_pko_config_port()
433 config.s.queue = base_queue + queue; in cvmx_pko_config_port()
436 config.s.static_p = static_priority_base >= 0; in cvmx_pko_config_port()
437 config.s.static_q = (int)queue <= static_priority_end; in cvmx_pko_config_port()
438 config.s.s_tail = (int)queue == static_priority_end; in cvmx_pko_config_port()
447 config.s.qos_mask = 0x00; in cvmx_pko_config_port()
450 config.s.qos_mask = 0x01; in cvmx_pko_config_port()
453 config.s.qos_mask = 0x11; in cvmx_pko_config_port()
456 config.s.qos_mask = 0x49; in cvmx_pko_config_port()
459 config.s.qos_mask = 0x55; in cvmx_pko_config_port()
462 config.s.qos_mask = 0x57; in cvmx_pko_config_port()
465 config.s.qos_mask = 0x77; in cvmx_pko_config_port()
468 config.s.qos_mask = 0x7f; in cvmx_pko_config_port()
471 config.s.qos_mask = 0xff; in cvmx_pko_config_port()
475 config.s.qos_mask = 0xff; in cvmx_pko_config_port()
483 config.s.qos_mask = 0xff; in cvmx_pko_config_port()
522 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr); in cvmx_pko_config_port()
524 config.s.buf_ptr = 0; in cvmx_pko_config_port()
530 cvmx_write_csr(CVMX_PKO_MEM_QUEUE_PTRS, config.u64); in cvmx_pko_config_port()