• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/qlnx/qlnxe/

Lines Matching defs:p_rx

338 	struct ecore_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue;
355 OSAL_SPIN_UNLOCK_IRQSAVE(&p_rx->lock, *p_lock_flags);
362 OSAL_SPIN_LOCK_IRQSAVE(&p_rx->lock, *p_lock_flags);
374 struct ecore_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue;
378 if (!OSAL_LIST_IS_EMPTY(&p_rx->active_descq))
379 p_pkt = OSAL_LIST_FIRST_ENTRY(&p_rx->active_descq,
390 OSAL_LIST_REMOVE_ENTRY(&p_pkt->list_entry, &p_rx->active_descq);
397 if (ecore_chain_consume(&p_rx->rxq_chain) != p_pkt->rxq_bd) {
405 OSAL_LIST_PUSH_TAIL(&p_pkt->list_entry, &p_rx->free_descq);
412 OSAL_SPIN_UNLOCK_IRQSAVE(&p_rx->lock, *p_lock_flags);
416 OSAL_SPIN_LOCK_IRQSAVE(&p_rx->lock, *p_lock_flags);
425 struct ecore_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue;
431 OSAL_SPIN_LOCK_IRQSAVE(&p_rx->lock, flags);
432 cq_new_idx = OSAL_LE16_TO_CPU(*p_rx->p_fw_cons);
433 cq_old_idx = ecore_chain_get_cons_idx(&p_rx->rcq_chain);
438 cqe = (union core_rx_cqe_union *)ecore_chain_consume(&p_rx->rcq_chain);
439 cq_old_idx = ecore_chain_get_cons_idx(&p_rx->rcq_chain);
461 OSAL_SPIN_UNLOCK_IRQSAVE(&p_rx->lock, flags);
470 struct ecore_ll2_rx_queue *p_rx;
477 p_rx = &p_ll2_conn->rx_queue;
479 OSAL_SPIN_LOCK_IRQSAVE(&p_rx->lock, flags);
480 while (!OSAL_LIST_IS_EMPTY(&p_rx->active_descq)) {
482 p_pkt = OSAL_LIST_FIRST_ENTRY(&p_rx->active_descq,
491 &p_rx->active_descq);
493 &p_rx->free_descq);
494 b_last = OSAL_LIST_IS_EMPTY(&p_rx->active_descq);
495 OSAL_SPIN_UNLOCK_IRQSAVE(&p_rx->lock, flags);
512 OSAL_SPIN_LOCK_IRQSAVE(&p_rx->lock, flags);
514 OSAL_SPIN_UNLOCK_IRQSAVE(&p_rx->lock, flags);
542 struct ecore_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue;
553 cq_new_idx = OSAL_LE16_TO_CPU(*p_rx->p_fw_cons);
554 cq_old_idx = ecore_chain_get_cons_idx(&p_rx->rcq_chain);
561 cqe = (union core_rx_cqe_union *)ecore_chain_consume(&p_rx->rcq_chain);
562 cq_old_idx = ecore_chain_get_cons_idx(&p_rx->rcq_chain);
596 if (OSAL_LIST_IS_EMPTY(&p_rx->active_descq)) {
602 p_pkt = OSAL_LIST_FIRST_ENTRY(&p_rx->active_descq,
620 &p_rx->active_descq);
626 if (ecore_chain_consume(&p_rx->rxq_chain) !=
632 &p_rx->free_descq);
834 struct ecore_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue;
856 p_ramrod->sb_index = p_rx->rx_sb_index;
861 p_rx->rxq_chain.p_phys_addr);
862 cqe_pbl_size = (u16)ecore_chain_get_page_cnt(&p_rx->rcq_chain);
865 ecore_chain_get_pbl_phys(&p_rx->rcq_chain));
1410 struct ecore_ll2_rx_queue *p_rx;
1429 p_rx = &p_ll2_conn->rx_queue;
1432 ecore_chain_reset(&p_rx->rxq_chain);
1433 ecore_chain_reset(&p_rx->rcq_chain);
1434 OSAL_LIST_INIT(&p_rx->active_descq);
1435 OSAL_LIST_INIT(&p_rx->free_descq);
1436 OSAL_LIST_INIT(&p_rx->posting_descq);
1437 OSAL_SPIN_LOCK_INIT(&p_rx->lock);
1438 capacity = ecore_chain_get_capacity(&p_rx->rxq_chain);
1440 OSAL_LIST_PUSH_TAIL(&p_rx->descq_array[i].list_entry,
1441 &p_rx->free_descq);
1442 *p_rx->p_fw_cons = 0;
1488 p_rx->set_prod_addr = (u8 OSAL_IOMEM*)p_hwfn->regview +
1534 struct ecore_ll2_rx_queue *p_rx,
1543 while (!OSAL_LIST_IS_EMPTY(&p_rx->posting_descq)) {
1544 p_posting_packet = OSAL_LIST_FIRST_ENTRY(&p_rx->posting_descq,
1550 OSAL_LIST_REMOVE_ENTRY(&p_posting_packet->list_entry, &p_rx->posting_descq);
1551 OSAL_LIST_PUSH_TAIL(&p_posting_packet->list_entry, &p_rx->active_descq);
1558 &p_rx->active_descq);
1565 bd_prod = ecore_chain_get_prod_idx(&p_rx->rxq_chain);
1566 cq_prod = ecore_chain_get_prod_idx(&p_rx->rcq_chain);
1569 DIRECT_REG_WR(p_hwfn, p_rx->set_prod_addr, *((u32 *)&rx_prod));
1583 struct ecore_ll2_rx_queue *p_rx;
1591 p_rx = &p_ll2_conn->rx_queue;
1592 if (p_rx->set_prod_addr == OSAL_NULL)
1595 OSAL_SPIN_LOCK_IRQSAVE(&p_rx->lock, flags);
1596 if (!OSAL_LIST_IS_EMPTY(&p_rx->free_descq))
1597 p_curp = OSAL_LIST_FIRST_ENTRY(&p_rx->free_descq,
1601 if (ecore_chain_get_elem_left(&p_rx->rxq_chain) &&
1602 ecore_chain_get_elem_left(&p_rx->rcq_chain)) {
1603 p_data = ecore_chain_produce(&p_rx->rxq_chain);
1605 ecore_chain_produce(&p_rx->rcq_chain);
1624 &p_rx->free_descq);
1629 &p_rx->posting_descq);
1634 ecore_ll2_post_rx_buffer_notify_fw(p_hwfn, p_rx, p_curp);
1636 OSAL_SPIN_UNLOCK_IRQSAVE(&p_rx->lock, flags);