Home
last modified time | relevance | path

Searched refs:que (Results 1 – 16 of 16) sorted by relevance

/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.h355 static inline bool bnxt_qplib_queue_full(struct bnxt_qplib_q *que, in bnxt_qplib_queue_full() argument
361 hwq = &que->hwq; in bnxt_qplib_queue_full()
553 static inline void *bnxt_qplib_get_swqe(struct bnxt_qplib_q *que, u32 *swq_idx) in bnxt_qplib_get_swqe() argument
557 idx = que->swq_start; in bnxt_qplib_get_swqe()
560 return &que->swq[idx]; in bnxt_qplib_get_swqe()
563 static inline void bnxt_qplib_swq_mod_start(struct bnxt_qplib_q *que, u32 idx) in bnxt_qplib_swq_mod_start() argument
565 que->swq_start = que->swq[idx].next_idx; in bnxt_qplib_swq_mod_start()
568 static inline u32 bnxt_qplib_get_depth(struct bnxt_qplib_q *que) in bnxt_qplib_get_depth() argument
570 return (que->wqe_size * que->max_wqe) / sizeof(struct sq_sge); in bnxt_qplib_get_depth()
573 static inline u32 bnxt_qplib_set_sq_size(struct bnxt_qplib_q *que, u8 wqe_mode) in bnxt_qplib_set_sq_size() argument
[all …]
Dqplib_fp.c818 static int bnxt_qplib_alloc_init_swq(struct bnxt_qplib_q *que) in bnxt_qplib_alloc_init_swq() argument
823 que->swq = kcalloc(que->max_wqe, sizeof(*que->swq), GFP_KERNEL); in bnxt_qplib_alloc_init_swq()
824 if (!que->swq) { in bnxt_qplib_alloc_init_swq()
829 que->swq_start = 0; in bnxt_qplib_alloc_init_swq()
830 que->swq_last = que->max_wqe - 1; in bnxt_qplib_alloc_init_swq()
831 for (indx = 0; indx < que->max_wqe; indx++) in bnxt_qplib_alloc_init_swq()
832 que->swq[indx].next_idx = indx + 1; in bnxt_qplib_alloc_init_swq()
833 que->swq[que->swq_last].next_idx = 0; /* Make it circular */ in bnxt_qplib_alloc_init_swq()
834 que->swq_last = 0; in bnxt_qplib_alloc_init_swq()
/drivers/scsi/qedi/
Dqedi_debugfs.c140 struct global_queue *que = NULL; in qedi_gbl_ctx_show() local
157 que = qedi->global_queues[fp->sb_id]; in qedi_gbl_ctx_show()
158 seq_printf(s, "DRV CONS IDX: %d\n", que->cq_cons_idx); in qedi_gbl_ctx_show()
Dqedi_main.c1265 struct global_queue *que; in qedi_process_completions() local
1278 que = qedi->global_queues[fp->sb_id]; in qedi_process_completions()
1281 que, prod_idx, que->cq_cons_idx, fp->sb_id); in qedi_process_completions()
1291 while (que->cq_cons_idx != prod_idx) { in qedi_process_completions()
1292 cqe = &que->cq[que->cq_cons_idx]; in qedi_process_completions()
1296 cqe, prod_idx, que->cq_cons_idx); in qedi_process_completions()
1302 que->cq_cons_idx, cqe->cqe_common.conn_id); in qedi_process_completions()
1304 que->cq_cons_idx++; in qedi_process_completions()
1305 if (que->cq_cons_idx == QEDI_CQ_SIZE) in qedi_process_completions()
1306 que->cq_cons_idx = 0; in qedi_process_completions()
[all …]
/drivers/atm/
Diphase.c97 static void ia_init_rtn_q (IARTN_Q *que) in ia_init_rtn_q() argument
99 que->next = NULL; in ia_init_rtn_q()
100 que->tail = NULL; in ia_init_rtn_q()
103 static void ia_enque_head_rtn_q (IARTN_Q *que, IARTN_Q * data) in ia_enque_head_rtn_q() argument
106 if (que->next == NULL) in ia_enque_head_rtn_q()
107 que->next = que->tail = data; in ia_enque_head_rtn_q()
109 data->next = que->next; in ia_enque_head_rtn_q()
110 que->next = data; in ia_enque_head_rtn_q()
115 static int ia_enque_rtn_q (IARTN_Q *que, struct desc_tbl_t data) { in ia_enque_rtn_q() argument
121 if (que->next == NULL) in ia_enque_rtn_q()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c236 struct __queue que; member
523 struct __queue *que = &entry->region.que; in qlcnic_dump_que() local
525 addr = que->read_addr; in qlcnic_dump_que()
526 cnt = que->read_addr_cnt; in qlcnic_dump_que()
528 for (loop = 0; loop < que->no_ops; loop++) { in qlcnic_dump_que()
529 qlcnic_ind_wr(adapter, que->sel_addr, que_id); in qlcnic_dump_que()
530 addr = que->read_addr; in qlcnic_dump_que()
534 addr += que->read_addr_stride; in qlcnic_dump_que()
536 que_id += que->stride; in qlcnic_dump_que()
538 return que->no_ops * cnt * sizeof(u32); in qlcnic_dump_que()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1388 u8 que) in atl1e_get_rx_page() argument
1392 u8 rx_using = rx_page_desc[que].rx_using; in atl1e_get_rx_page()
1394 return &(rx_page_desc[que].rx_page[rx_using]); in atl1e_get_rx_page()
1397 static void atl1e_clean_rx_irq(struct atl1e_adapter *adapter, u8 que, in atl1e_clean_rx_irq() argument
1405 struct atl1e_rx_page *rx_page = atl1e_get_rx_page(adapter, que); in atl1e_clean_rx_irq()
1419 if (prrs->seq_num != rx_page_desc[que].rx_nxseq) { in atl1e_clean_rx_irq()
1423 rx_page_desc[que].rx_nxseq); in atl1e_clean_rx_irq()
1424 rx_page_desc[que].rx_nxseq++; in atl1e_clean_rx_irq()
1428 rx_page_desc[que].rx_nxseq); in atl1e_clean_rx_irq()
1431 rx_page_desc[que].rx_nxseq++; in atl1e_clean_rx_irq()
[all …]
/drivers/scsi/qla2xxx/
Dqla_dbg.c560 int que; in qla2xxx_copy_atioqueues() local
574 for (que = 0; que < num_queues; que++) { in qla2xxx_copy_atioqueues()
588 qh->number = htonl(que); in qla2xxx_copy_atioqueues()
608 int que; in qla25xx_copy_mqueues() local
614 for (que = 1; que < ha->max_req_queues; que++) { in qla25xx_copy_mqueues()
615 req = ha->req_q_map[que]; in qla25xx_copy_mqueues()
632 qh->number = htonl(que); in qla25xx_copy_mqueues()
642 for (que = 1; que < ha->max_rsp_queues; que++) { in qla25xx_copy_mqueues()
643 rsp = ha->rsp_q_map[que]; in qla25xx_copy_mqueues()
660 qh->number = htonl(que); in qla25xx_copy_mqueues()
Dqla_mr.c2265 uint16_t que; in qlafx00_status_entry() local
2277 que = MSW(hindex); in qlafx00_status_entry()
2278 req = ha->req_q_map[que]; in qlafx00_status_entry()
2613 uint16_t que; in qlafx00_multistatus_entry() local
2634 que = MSW(hindex); in qlafx00_multistatus_entry()
2635 req = ha->req_q_map[que]; in qlafx00_multistatus_entry()
2668 uint16_t que = 0; in qlafx00_error_entry() local
2672 req = ha->req_q_map[que]; in qlafx00_error_entry()
Dqla_isr.c3141 uint16_t que; in qla2x00_status_entry() local
3157 que = MSW(sts->handle); in qla2x00_status_entry()
3158 req = ha->req_q_map[que]; in qla2x00_status_entry()
3162 que >= find_first_zero_bit(ha->req_qid_map, ha->max_req_queues)) { in qla2x00_status_entry()
3165 "que=%u.\n", sts->handle, req, que); in qla2x00_status_entry()
3580 uint16_t que = MSW(pkt->handle); in qla2x00_error_entry() local
3588 if (que >= ha->max_req_queues || !ha->req_q_map[que]) in qla2x00_error_entry()
3591 req = ha->req_q_map[que]; in qla2x00_error_entry()
3624 "Error entry - invalid handle/queue (%04x).\n", que); in qla2x00_error_entry()
Dqla_bsg.c2976 int cnt, que; in qla24xx_bsg_timeout() local
2991 for (que = 0; que < ha->max_req_queues; que++) { in qla24xx_bsg_timeout()
2992 req = ha->req_q_map[que]; in qla24xx_bsg_timeout()
Dqla_nx.c3629 int cnt, que; in qla82xx_chip_reset_cleanup() local
3634 for (que = 0; que < ha->max_req_queues; que++) { in qla82xx_chip_reset_cleanup()
3635 req = ha->req_q_map[que]; in qla82xx_chip_reset_cleanup()
Dqla_init.c4747 int cnt, que; in qla2x00_init_rings() local
4757 for (que = 0; que < ha->max_req_queues; que++) { in qla2x00_init_rings()
4758 req = ha->req_q_map[que]; in qla2x00_init_rings()
4759 if (!req || !test_bit(que, ha->req_qid_map)) in qla2x00_init_rings()
4774 for (que = 0; que < ha->max_rsp_queues; que++) { in qla2x00_init_rings()
4775 rsp = ha->rsp_q_map[que]; in qla2x00_init_rings()
4776 if (!rsp || !test_bit(que, ha->rsp_qid_map)) in qla2x00_init_rings()
Dqla_gbl.h303 struct req_que *que);
Dqla_os.c1909 int que; in qla2x00_abort_all_cmds() local
1919 for (que = 0; que < ha->max_qpairs; que++) { in qla2x00_abort_all_cmds()
1920 if (!ha->queue_pair_map[que]) in qla2x00_abort_all_cmds()
1923 __qla2x00_abort_all_cmds(ha->queue_pair_map[que], res); in qla2x00_abort_all_cmds()
/drivers/scsi/qedf/
Dqedf_main.c2194 struct global_queue *que; in qedf_fp_has_work() local
2200 que = qedf->global_queues[fp->sb_id]; in qedf_fp_has_work()
2208 return (que->cq_prod_idx != prod_idx); in qedf_fp_has_work()
2224 struct global_queue *que; in qedf_process_completions() local
2239 que = qedf->global_queues[fp->sb_id]; in qedf_process_completions()
2242 new_cqes = (prod_idx >= que->cq_prod_idx) ? in qedf_process_completions()
2243 (prod_idx - que->cq_prod_idx) : in qedf_process_completions()
2244 0x10000 - que->cq_prod_idx + prod_idx; in qedf_process_completions()
2247 que->cq_prod_idx = prod_idx; in qedf_process_completions()
2252 cqe = &que->cq[que->cq_cons_idx]; in qedf_process_completions()
[all …]