Home
last modified time | relevance | path

Searched refs:funq (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/fungible/funcore/
Dfun_queue.c164 static bool fun_sq_is_head_wb(const struct fun_queue *funq) in fun_sq_is_head_wb() argument
166 return funq->sq_flags & FUN_ADMIN_EPSQ_CREATE_FLAG_HEAD_WB_ADDRESS; in fun_sq_is_head_wb()
169 static void fun_clean_rq(struct fun_queue *funq) in fun_clean_rq() argument
171 struct fun_dev *fdev = funq->fdev; in fun_clean_rq()
175 for (i = 0; i < funq->rq_depth; i++) { in fun_clean_rq()
176 rqinfo = &funq->rq_info[i]; in fun_clean_rq()
186 static int fun_fill_rq(struct fun_queue *funq) in fun_fill_rq() argument
188 struct device *dev = funq->fdev->dev; in fun_fill_rq()
192 for (i = 0; i < funq->rq_depth; i++) { in fun_fill_rq()
193 rqinfo = &funq->rq_info[i]; in fun_fill_rq()
[all …]
Dfun_queue.h15 typedef void (*cq_callback_t)(struct fun_queue *funq, void *data, void *msg,
90 static inline void *fun_sqe_at(const struct fun_queue *funq, unsigned int pos) in fun_sqe_at() argument
92 return funq->sq_cmds + (pos << funq->sqe_size_log2); in fun_sqe_at()
95 static inline void funq_sq_post_tail(struct fun_queue *funq, u16 tail) in funq_sq_post_tail() argument
97 if (++tail == funq->sq_depth) in funq_sq_post_tail()
99 funq->sq_tail = tail; in funq_sq_post_tail()
100 writel(tail, funq->sq_db); in funq_sq_post_tail()
103 static inline struct fun_cqe_info *funq_cqe_info(const struct fun_queue *funq, in funq_cqe_info() argument
106 return cqe + funq->cqe_info_offset; in funq_cqe_info()
109 static inline void funq_rq_post(struct fun_queue *funq) in funq_rq_post() argument
[all …]
Dfun_dev.c168 struct fun_queue *funq = data; in fun_admin_irq() local
170 return fun_process_cq(funq, 0) ? IRQ_HANDLED : IRQ_NONE; in fun_admin_irq()
173 static void fun_complete_admin_cmd(struct fun_queue *funq, void *data, in fun_complete_admin_cmd() argument
177 struct fun_dev *fdev = funq->fdev; in fun_complete_admin_cmd()
235 struct fun_queue *funq; in fun_enable_admin_queue() local
260 funq = fdev->admin_q; in fun_enable_admin_queue()
261 funq->cq_vector = 0; in fun_enable_admin_queue()
262 rc = fun_request_irq(funq, dev_name(fdev->dev), fun_admin_irq, funq); in fun_enable_admin_queue()
266 fun_set_cq_callback(funq, fun_complete_admin_cmd, NULL); in fun_enable_admin_queue()
269 writel((funq->sq_depth - 1) << AQA_ASQS_SHIFT | in fun_enable_admin_queue()
[all …]