Lines Matching refs:header
24 struct a6xx_hfi_queue_header *header = queue->header; in a6xx_hfi_queue_read() local
25 u32 i, hdr, index = header->read_index; in a6xx_hfi_queue_read()
27 if (header->read_index == header->write_index) { in a6xx_hfi_queue_read()
28 header->rx_request = 1; in a6xx_hfi_queue_read()
47 index = (index + 1) % header->size; in a6xx_hfi_queue_read()
50 header->read_index = index; in a6xx_hfi_queue_read()
57 struct a6xx_hfi_queue_header *header = queue->header; in a6xx_hfi_queue_write() local
58 u32 i, space, index = header->write_index; in a6xx_hfi_queue_write()
62 space = CIRC_SPACE(header->write_index, header->read_index, in a6xx_hfi_queue_write()
63 header->size); in a6xx_hfi_queue_write()
65 header->dropped++; in a6xx_hfi_queue_write()
72 index = (index + 1) % header->size; in a6xx_hfi_queue_write()
75 header->write_index = index; in a6xx_hfi_queue_write()
153 id = HFI_HEADER_ID(resp.header); in a6xx_hfi_task()
367 if (!queue->header) in a6xx_hfi_stop()
370 if (queue->header->read_index != queue->header->write_index) in a6xx_hfi_stop()
373 queue->header->read_index = 0; in a6xx_hfi_stop()
374 queue->header->write_index = 0; in a6xx_hfi_stop()
379 struct a6xx_hfi_queue_header *header, void *virt, u64 iova, in a6xx_hfi_queue_init() argument
383 queue->header = header; in a6xx_hfi_queue_init()
388 header->iova = iova; in a6xx_hfi_queue_init()
389 header->type = 10 << 8 | id; in a6xx_hfi_queue_init()
390 header->status = 1; in a6xx_hfi_queue_init()
391 header->size = SZ_4K >> 2; in a6xx_hfi_queue_init()
392 header->msg_size = 0; in a6xx_hfi_queue_init()
393 header->dropped = 0; in a6xx_hfi_queue_init()
394 header->rx_watermark = 1; in a6xx_hfi_queue_init()
395 header->tx_watermark = 1; in a6xx_hfi_queue_init()
396 header->rx_request = 1; in a6xx_hfi_queue_init()
397 header->tx_request = 0; in a6xx_hfi_queue_init()
398 header->read_index = 0; in a6xx_hfi_queue_init()
399 header->write_index = 0; in a6xx_hfi_queue_init()