H A D | hw_channel.c | 46 mana_hwc_get_msg_index(struct hw_channel_context *hwc, uint16_t *msg_id) argument 48 struct gdma_resource *r = &hwc->inflight_msg_res; 51 sema_wait(&hwc->sema); 55 index = find_first_zero_bit(hwc->inflight_msg_res.map, 56 hwc->inflight_msg_res.size); 58 bitmap_set(hwc->inflight_msg_res.map, index, 1); 68 mana_hwc_put_msg_index(struct hw_channel_context *hwc, uint16_t msg_id) argument 70 struct gdma_resource *r = &hwc->inflight_msg_res; 73 bitmap_clear(hwc->inflight_msg_res.map, msg_id, 1); 76 sema_post(&hwc 94 mana_hwc_handle_resp(struct hw_channel_context *hwc, uint32_t resp_len, const struct gdma_resp_hdr *resp_msg) argument 149 struct hw_channel_context *hwc = ctx; local 222 struct hw_channel_context *hwc = ctx; local 284 struct hw_channel_context *hwc = ctx; local 298 mana_hwc_create_gdma_wq(struct hw_channel_context *hwc, enum gdma_queue_type type, uint64_t queue_size, struct gdma_queue **queue) argument 315 mana_hwc_create_gdma_cq(struct hw_channel_context *hwc, uint64_t queue_size, void *ctx, gdma_cq_callback *cb, struct gdma_queue *parent_eq, struct gdma_queue **queue) argument 334 mana_hwc_create_gdma_eq(struct hw_channel_context *hwc, uint64_t queue_size, void *ctx, gdma_eq_callback *cb, struct gdma_queue **queue) argument 397 mana_hwc_create_cq(struct hw_channel_context *hwc, uint16_t q_depth, gdma_eq_callback *callback, void *ctx, hwc_rx_event_handler_t *rx_ev_hdlr, void *rx_ev_ctx, hwc_tx_event_handler_t *tx_ev_hdlr, void *tx_ev_ctx, struct hwc_cq **hwc_cq_ptr) argument 462 mana_hwc_alloc_dma_buf(struct hw_channel_context *hwc, uint16_t q_depth, uint32_t max_msg_size, struct hwc_dma_buf **dma_buf_ptr) argument 514 mana_hwc_dealloc_dma_buf(struct hw_channel_context *hwc, struct hwc_dma_buf *dma_buf) argument 526 mana_hwc_destroy_wq(struct hw_channel_context *hwc, struct hwc_wq *hwc_wq) argument 539 mana_hwc_create_wq(struct hw_channel_context *hwc, enum gdma_queue_type q_type, uint16_t q_depth, uint32_t max_msg_size, struct hwc_cq *hwc_cq, struct hwc_wq **hwc_wq_ptr) argument 636 mana_hwc_init_inflight_msg(struct hw_channel_context *hwc, uint16_t num_msg) argument 652 mana_hwc_test_channel(struct hw_channel_context *hwc, uint16_t q_depth, uint32_t max_req_msg_size, uint32_t max_resp_msg_size) argument 688 struct hw_channel_context *hwc = gc->hwc.driver_data; local 731 mana_hwc_init_queues(struct hw_channel_context *hwc, uint16_t q_depth, uint32_t max_req_msg_size, uint32_t max_resp_msg_size) argument 780 struct hw_channel_context *hwc; local 838 struct hw_channel_context *hwc = gc->hwc.driver_data; local 880 mana_hwc_send_request(struct hw_channel_context *hwc, uint32_t req_len, const void *req, uint32_t resp_len, void *resp) argument [all...] |