/drivers/soc/fsl/qbman/ |
D | qman.c | 268 struct qm_mcc_fq fq; member 957 static inline void fq_set(struct qman_fq *fq, u32 mask) in fq_set() argument 959 fq->flags |= mask; in fq_set() 962 static inline void fq_clear(struct qman_fq *fq, u32 mask) in fq_clear() argument 964 fq->flags &= ~mask; in fq_clear() 967 static inline int fq_isset(struct qman_fq *fq, u32 mask) in fq_isset() argument 969 return fq->flags & mask; in fq_isset() 972 static inline int fq_isclear(struct qman_fq *fq, u32 mask) in fq_isclear() argument 974 return !(fq->flags & mask); in fq_isclear() 1121 struct qman_fq *fq; in idx_to_fq() local [all …]
|
D | qman_test_api.c | 106 static int do_enqueues(struct qman_fq *fq) in do_enqueues() argument 112 if (qman_enqueue(fq, &fd)) { in do_enqueues() 126 struct qman_fq *fq = &fq_base; in qman_test_api() local 133 err = qman_create_fq(0, FQ_FLAGS, fq); in qman_test_api() 138 err = qman_init_fq(fq, QMAN_INITFQ_FLAG_LOCAL, NULL); in qman_test_api() 144 err = do_enqueues(fq); in qman_test_api() 149 err = qman_volatile_dequeue(fq, VDQCR_FLAGS, frmcnt); in qman_test_api() 154 err = do_enqueues(fq); in qman_test_api() 159 err = qman_volatile_dequeue(fq, VDQCR_FLAGS, frmcnt); in qman_test_api() 167 err = qman_volatile_dequeue(fq, VDQCR_FLAGS, frmcnt); in qman_test_api() [all …]
|
D | qman_test_stash.c | 277 struct qman_fq *fq, in normal_dqrr() argument 281 struct hp_handler *handler = (struct hp_handler *)fq; in normal_dqrr() 296 struct qman_fq *fq, in special_dqrr() argument 300 struct hp_handler *handler = (struct hp_handler *)fq; in special_dqrr()
|
D | qman_priv.h | 216 int qman_query_fq(struct qman_fq *fq, struct qm_fqd *fqd);
|
/drivers/crypto/caam/ |
D | qi.c | 135 static void caam_fq_ern_cb(struct qman_portal *qm, struct qman_fq *fq, in caam_fq_ern_cb() argument 218 static int empty_retired_fq(struct device *qidev, struct qman_fq *fq) in empty_retired_fq() argument 222 ret = qman_volatile_dequeue(fq, QMAN_VOLATILE_FLAG_WAIT_INT | in empty_retired_fq() 227 dev_err(qidev, "Volatile dequeue fail for FQ: %u\n", fq->fqid); in empty_retired_fq() 236 } while (fq->flags & QMAN_FQ_STATE_NE); in empty_retired_fq() 241 static int kill_fq(struct device *qidev, struct qman_fq *fq) in kill_fq() argument 246 ret = qman_retire_fq(fq, &flags); in kill_fq() 260 } while (fq->state != qman_fq_state_retired); in kill_fq() 262 WARN_ON(fq->flags & QMAN_FQ_STATE_BLOCKOOS); in kill_fq() 263 WARN_ON(fq->flags & QMAN_FQ_STATE_ORL); in kill_fq() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-debugfs.c | 47 static char *fq_type_to_str(struct dpaa2_eth_fq *fq) in fq_type_to_str() argument 49 switch (fq->type) { in fq_type_to_str() 62 struct dpaa2_eth_fq *fq; in dpaa2_dbg_fqs_show() local 71 fq = &priv->fq[i]; in dpaa2_dbg_fqs_show() 72 err = dpaa2_io_query_fq_count(NULL, fq->fqid, &fcnt, &bcnt); in dpaa2_dbg_fqs_show() 77 if (!fq->stats.frames && !fcnt) in dpaa2_dbg_fqs_show() 81 fq->fqid, in dpaa2_dbg_fqs_show() 82 fq->target_cpu, in dpaa2_dbg_fqs_show() 83 fq->tc, in dpaa2_dbg_fqs_show() 84 fq_type_to_str(fq), in dpaa2_dbg_fqs_show() [all …]
|
D | dpaa2-eth.c | 324 struct dpaa2_eth_fq *fq, in dpaa2_eth_xdp_flush() argument 339 err = priv->enqueue(priv, fq, &fds[total_enqueued], in dpaa2_eth_xdp_flush() 354 struct dpaa2_eth_fq *fq) in dpaa2_eth_xdp_tx_flush() argument 363 enqueued = dpaa2_eth_xdp_flush(priv, fq, &fq->xdp_tx_fds); in dpaa2_eth_xdp_tx_flush() 367 fds = fq->xdp_tx_fds.fds; in dpaa2_eth_xdp_tx_flush() 372 for (i = enqueued; i < fq->xdp_tx_fds.num; i++) { in dpaa2_eth_xdp_tx_flush() 377 fq->xdp_tx_fds.num = 0; in dpaa2_eth_xdp_tx_flush() 387 struct dpaa2_eth_fq *fq; in dpaa2_eth_xdp_enqueue() local 404 fq = &priv->fq[queue_id]; in dpaa2_eth_xdp_enqueue() 405 dest_fd = &fq->xdp_tx_fds.fds[fq->xdp_tx_fds.num++]; in dpaa2_eth_xdp_enqueue() [all …]
|
D | dpaa2-switch.c | 662 napi_enable(ðsw->fq[i].napi); in dpaa2_switch_enable_ctrl_if_napi() 678 napi_disable(ðsw->fq[i].napi); in dpaa2_switch_disable_ctrl_if_napi() 2373 static void dpaa2_switch_tx_conf(struct dpaa2_switch_fq *fq, in dpaa2_switch_tx_conf() argument 2376 dpaa2_switch_free_fd(fq->ethsw, fd); in dpaa2_switch_tx_conf() 2379 static void dpaa2_switch_rx(struct dpaa2_switch_fq *fq, in dpaa2_switch_rx() argument 2382 struct ethsw_core *ethsw = fq->ethsw; in dpaa2_switch_rx() 2466 ethsw->fq[i].fqid = ctrl_if_attr.rx_fqid; in dpaa2_switch_setup_fqs() 2467 ethsw->fq[i].ethsw = ethsw; in dpaa2_switch_setup_fqs() 2468 ethsw->fq[i++].type = DPSW_QUEUE_RX; in dpaa2_switch_setup_fqs() 2470 ethsw->fq[i].fqid = ctrl_if_attr.tx_err_conf_fqid; in dpaa2_switch_setup_fqs() [all …]
|
D | dpaa2-eth.h | 445 struct dpaa2_eth_fq *fq); 519 struct dpaa2_eth_fq fq[DPAA2_ETH_MAX_QUEUES]; member 521 struct dpaa2_eth_fq *fq,
|
D | dpaa2-switch.h | 182 struct dpaa2_switch_fq fq[DPAA2_SWITCH_RX_NUM_FQS]; member
|
D | dpaa2-ethtool.c | 288 err = dpaa2_io_query_fq_count(NULL, priv->fq[j].fqid, in dpaa2_eth_get_ethtool_stats() 295 if (priv->fq[j].type == DPAA2_TX_CONF_FQ) { in dpaa2_eth_get_ethtool_stats()
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth_trace.h | 32 struct qman_fq *fq, 36 TP_ARGS(netdev, fq, fd), 54 __entry->fqid = fq->fqid; 78 struct qman_fq *fq, 81 TP_ARGS(netdev, fq, fd) 88 struct qman_fq *fq, 91 TP_ARGS(netdev, fq, fd) 98 struct qman_fq *fq, 101 TP_ARGS(netdev, fq, fd)
|
D | dpaa_eth_sysfs.c | 33 struct dpaa_fq *fq; in dpaa_eth_show_fqids() local 40 list_for_each_entry_safe(fq, tmp, &priv->dpaa_fq_list, list) { in dpaa_eth_show_fqids() 41 switch (fq->fq_type) { in dpaa_eth_show_fqids() 67 if (prev && (abs(fq->fqid - prev->fqid) != 1 || in dpaa_eth_show_fqids() 78 if (prev && abs(fq->fqid - prev->fqid) == 1 && in dpaa_eth_show_fqids() 80 last_fqid = fq->fqid; in dpaa_eth_show_fqids() 82 first_fqid = fq->fqid; in dpaa_eth_show_fqids() 83 last_fqid = fq->fqid; in dpaa_eth_show_fqids() 86 prev = fq; in dpaa_eth_show_fqids()
|
D | dpaa_eth.c | 621 static inline void dpaa_assign_wq(struct dpaa_fq *fq, int idx) in dpaa_assign_wq() argument 623 switch (fq->fq_type) { in dpaa_assign_wq() 626 fq->wq = 1; in dpaa_assign_wq() 630 fq->wq = 5; in dpaa_assign_wq() 634 fq->wq = 6; in dpaa_assign_wq() 640 fq->wq = 6; in dpaa_assign_wq() 644 fq->wq = 2; in dpaa_assign_wq() 648 fq->wq = 1; in dpaa_assign_wq() 652 fq->wq = 0; in dpaa_assign_wq() 661 fq->fq_type, fq->fqid); in dpaa_assign_wq() [all …]
|
/drivers/iommu/ |
D | dma-iommu.c | 57 struct iova_fq __percpu *fq; /* Flush queue */ member 111 #define fq_ring_for_each(i, fq) \ argument 112 for ((i) = (fq)->head; (i) != (fq)->tail; (i) = ((i) + 1) % IOVA_FQ_SIZE) 114 static inline bool fq_full(struct iova_fq *fq) in fq_full() argument 116 assert_spin_locked(&fq->lock); in fq_full() 117 return (((fq->tail + 1) % IOVA_FQ_SIZE) == fq->head); in fq_full() 120 static inline unsigned int fq_ring_add(struct iova_fq *fq) in fq_ring_add() argument 122 unsigned int idx = fq->tail; in fq_ring_add() 124 assert_spin_locked(&fq->lock); in fq_ring_add() 126 fq->tail = (idx + 1) % IOVA_FQ_SIZE; in fq_ring_add() [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2.h | 794 #define MSS_RXQ_TRESH_REG(q, fq) (MSS_RXQ_TRESH_BASE + (((q) + (fq)) \ argument 823 #define MSS_RXQ_ASS_Q_BASE(q, fq) ((((q) + (fq)) % MSS_RXQ_ASS_PER_REG) \ argument 825 #define MSS_RXQ_ASS_PQ_BASE(q, fq) ((((q) + (fq)) / MSS_RXQ_ASS_PER_REG) \ argument 827 #define MSS_RXQ_ASS_REG(q, fq) (MSS_RXQ_ASS_BASE + MSS_RXQ_ASS_PQ_BASE(q, fq)) argument
|
D | mvpp2_main.c | 799 int fq = port->first_rxq; in mvpp2_rxq_enable_fc() local 817 mvpp2_cm3_write(port->priv, MSS_RXQ_TRESH_REG(q, fq), val); in mvpp2_rxq_enable_fc() 819 val = mvpp2_cm3_read(port->priv, MSS_RXQ_ASS_REG(q, fq)); in mvpp2_rxq_enable_fc() 821 val &= ~(MSS_RXQ_ASS_PORTID_MASK << MSS_RXQ_ASS_Q_BASE(q, fq)); in mvpp2_rxq_enable_fc() 822 val |= (port->id << MSS_RXQ_ASS_Q_BASE(q, fq)); in mvpp2_rxq_enable_fc() 823 val &= ~(MSS_RXQ_ASS_HOSTID_MASK << (MSS_RXQ_ASS_Q_BASE(q, fq) in mvpp2_rxq_enable_fc() 841 val |= (host_id << (MSS_RXQ_ASS_Q_BASE(q, fq) in mvpp2_rxq_enable_fc() 844 mvpp2_cm3_write(port->priv, MSS_RXQ_ASS_REG(q, fq), val); in mvpp2_rxq_enable_fc() 861 int fq = port->first_rxq; in mvpp2_rxq_disable_fc() local 878 mvpp2_cm3_write(port->priv, MSS_RXQ_TRESH_REG(q, fq), val); in mvpp2_rxq_disable_fc() [all …]
|
/drivers/media/i2c/ |
D | imx290.c | 939 s64 fq; in imx290_probe() local 986 fq = imx290_check_link_freqs(imx290, &ep); in imx290_probe() 987 if (fq) { in imx290_probe() 988 dev_err(dev, "Link frequency of %lld is not supported\n", fq); in imx290_probe()
|
D | hi846.c | 1998 s64 fq; in hi846_parse_dt() local 2030 fq = hi846_check_link_freqs(hi846, &bus_cfg); in hi846_parse_dt() 2031 if (fq) { in hi846_parse_dt() 2032 dev_err(dev, "Link frequency of %lld is not supported\n", fq); in hi846_parse_dt()
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_lcn.c | 3476 u8 di0, dq0, ei, eq, fi, fq; in wlc_lcnphy_get_cc() local 3494 wlc_lcnphy_get_radio_loft(pi, &ei, &eq, &fi, &fq); in wlc_lcnphy_get_cc() 3499 wlc_lcnphy_get_radio_loft(pi, &ei, &eq, &fi, &fq); in wlc_lcnphy_get_cc() 3501 cc.im = (u16) fq; in wlc_lcnphy_get_cc()
|