| /linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en_tx.c | 41 void mlx5e_send_nop(struct mlx5e_sq *sq, bool notify_hw) in mlx5e_send_nop() argument 43 struct mlx5_wq_cyc *wq = &sq->wq; in mlx5e_send_nop() 45 u16 pi = sq->pc & wq->sz_m1; in mlx5e_send_nop() 52 cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_NOP); in mlx5e_send_nop() 53 cseg->qpn_ds = cpu_to_be32((sq->sqn << 8) | 0x01); in mlx5e_send_nop() 55 sq->skb[pi] = NULL; in mlx5e_send_nop() 56 sq->pc++; in mlx5e_send_nop() 60 mlx5e_tx_notify_hw(sq, wqe, 0); in mlx5e_send_nop() 79 static inline void mlx5e_dma_push(struct mlx5e_sq *sq, in mlx5e_dma_push() argument 84 sq->dma_fifo[sq->dma_fifo_pc & sq->dma_fifo_mask].addr = addr; in mlx5e_dma_push() [all …]
|
| D | en_main.c | 55 struct mlx5e_sq_param sq; member 164 sq_stats = &priv->channel[i]->sq[j].stats; in mlx5e_update_stats() 479 mlx5e_send_nop(&c->sq[0], true); /* trigger mlx5e_post_rx_wqes() */ in mlx5e_open_rq() 507 static void mlx5e_free_sq_db(struct mlx5e_sq *sq) in mlx5e_free_sq_db() argument 509 kfree(sq->dma_fifo); in mlx5e_free_sq_db() 510 kfree(sq->skb); in mlx5e_free_sq_db() 513 static int mlx5e_alloc_sq_db(struct mlx5e_sq *sq, int numa) in mlx5e_alloc_sq_db() argument 515 int wq_sz = mlx5_wq_cyc_get_size(&sq->wq); in mlx5e_alloc_sq_db() 518 sq->skb = kzalloc_node(wq_sz * sizeof(*sq->skb), GFP_KERNEL, numa); in mlx5e_alloc_sq_db() 519 sq->dma_fifo = kzalloc_node(df_sz * sizeof(*sq->dma_fifo), GFP_KERNEL, in mlx5e_alloc_sq_db() [all …]
|
| D | en.h | 394 static inline bool mlx5e_sq_has_room_for(struct mlx5e_sq *sq, u16 n) in mlx5e_sq_has_room_for() argument 396 return (((sq->wq.sz_m1 & (sq->cc - sq->pc)) >= n) || in mlx5e_sq_has_room_for() 397 (sq->cc == sq->pc)); in mlx5e_sq_has_room_for() 407 struct mlx5e_sq sq[MLX5E_MAX_NUM_TC]; member 558 void mlx5e_send_nop(struct mlx5e_sq *sq, bool notify_hw); 590 static inline void mlx5e_tx_notify_hw(struct mlx5e_sq *sq, in mlx5e_tx_notify_hw() argument 593 u16 ofst = MLX5_BF_OFFSET + sq->bf_offset; in mlx5e_tx_notify_hw() 598 *sq->wq.db = cpu_to_be32(sq->pc); in mlx5e_tx_notify_hw() 606 __iowrite64_copy(sq->uar_bf_map + ofst, &wqe->ctrl, bf_sz); in mlx5e_tx_notify_hw() 612 mlx5_write64((__be32 *)&wqe->ctrl, sq->uar_map + ofst, NULL); in mlx5e_tx_notify_hw() [all …]
|
| D | en_txrx.c | 62 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq); in mlx5e_napi_poll() 80 mlx5e_cq_arm(&c->sq[i].cq); in mlx5e_napi_poll()
|
| D | en_ethtool.c | 257 ((u64 *)&priv->channel[i]->sq[tc].stats)[j]; in mlx5e_get_ethtool_stats() 429 &c->sq[tc].cq.mcq, in mlx5e_set_coalesce()
|
| /linux-4.4.14/sound/oss/dmasound/ |
| D | dmasound_core.c | 414 static int sq_allocate_buffers(struct sound_queue *sq, int num, int size) in sq_allocate_buffers() argument 418 if (sq->buffers) in sq_allocate_buffers() 420 sq->numBufs = num; in sq_allocate_buffers() 421 sq->bufSize = size; in sq_allocate_buffers() 422 sq->buffers = kmalloc (num * sizeof(char *), GFP_KERNEL); in sq_allocate_buffers() 423 if (!sq->buffers) in sq_allocate_buffers() 426 sq->buffers[i] = dmasound.mach.dma_alloc(size, GFP_KERNEL); in sq_allocate_buffers() 427 if (!sq->buffers[i]) { in sq_allocate_buffers() 429 dmasound.mach.dma_free(sq->buffers[i], size); in sq_allocate_buffers() 430 kfree(sq->buffers); in sq_allocate_buffers() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
| D | nicvf_queues.c | 351 struct snd_queue *sq, int q_len) in nicvf_init_snd_queue() argument 355 err = nicvf_alloc_q_desc_mem(nic, &sq->dmem, q_len, SND_QUEUE_DESC_SIZE, in nicvf_init_snd_queue() 360 sq->desc = sq->dmem.base; in nicvf_init_snd_queue() 361 sq->skbuff = kcalloc(q_len, sizeof(u64), GFP_KERNEL); in nicvf_init_snd_queue() 362 if (!sq->skbuff) in nicvf_init_snd_queue() 364 sq->head = 0; in nicvf_init_snd_queue() 365 sq->tail = 0; in nicvf_init_snd_queue() 366 atomic_set(&sq->free_cnt, q_len - 1); in nicvf_init_snd_queue() 367 sq->thresh = SND_QUEUE_THRESH; in nicvf_init_snd_queue() 370 sq->tso_hdrs = dma_alloc_coherent(&nic->pdev->dev, in nicvf_init_snd_queue() [all …]
|
| D | nicvf_queues.h | 291 struct snd_queue sq[MAX_SND_QUEUES_PER_QS]; member 318 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx); 320 void nicvf_put_sq_desc(struct snd_queue *sq, int desc_cnt); 322 struct snd_queue *sq, int qidx);
|
| D | nic_main.c | 494 struct sq_cfg_msg *sq) in nic_tx_channel_cfg() argument 499 u8 sq_idx = sq->sq_num; in nic_tx_channel_cfg() 502 if (sq->sqs_mode) in nic_tx_channel_cfg() 515 if (sq->sqs_mode) in nic_tx_channel_cfg() 703 (mbx.sq.qs_num << NIC_QS_ID_SHIFT) | in nic_handle_mbx_intr() 704 (mbx.sq.sq_num << NIC_Q_NUM_SHIFT); in nic_handle_mbx_intr() 705 nic_reg_write(nic, reg_addr, mbx.sq.cfg); in nic_handle_mbx_intr() 706 nic_tx_channel_cfg(nic, mbx.qs.num, &mbx.sq); in nic_handle_mbx_intr()
|
| D | nicvf_main.c | 514 struct snd_queue *sq; in nicvf_snd_pkt_handler() local 517 sq = &nic->qs->sq[cqe_tx->sq_idx]; in nicvf_snd_pkt_handler() 519 hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, cqe_tx->sqe_ptr); in nicvf_snd_pkt_handler() 528 nicvf_put_sq_desc(sq, hdr->subdesc_cnt + 1); in nicvf_snd_pkt_handler() 530 skb = (struct sk_buff *)sq->skbuff[cqe_tx->sqe_ptr]; in nicvf_snd_pkt_handler() 535 sq->skbuff[cqe_tx->sqe_ptr] = (u64)NULL; in nicvf_snd_pkt_handler() 776 nicvf_sq_free_used_descs(nic->netdev, &qs->sq[qidx], qidx); in nicvf_handle_qs_err() 777 nicvf_sq_enable(nic, &qs->sq[qidx], qidx); in nicvf_handle_qs_err()
|
| D | nic.h | 470 struct sq_cfg_msg sq; member
|
| D | nicvf_ethtool.c | 270 *((*data)++) = ((u64 *)&nic->qs->sq[qidx].stats) in nicvf_get_qset_stats()
|
| /linux-4.4.14/block/ |
| D | blk-throttle.c | 181 static struct throtl_grp *sq_to_tg(struct throtl_service_queue *sq) in sq_to_tg() argument 183 if (sq && sq->parent_sq) in sq_to_tg() 184 return container_of(sq, struct throtl_grp, service_queue); in sq_to_tg() 196 static struct throtl_data *sq_to_td(struct throtl_service_queue *sq) in sq_to_td() argument 198 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td() 203 return container_of(sq, struct throtl_data, service_queue); in sq_to_td() 218 #define throtl_log(sq, fmt, args...) do { \ argument 219 struct throtl_grp *__tg = sq_to_tg((sq)); \ 220 struct throtl_data *__td = sq_to_td((sq)); \ 317 static void throtl_service_queue_init(struct throtl_service_queue *sq) in throtl_service_queue_init() argument [all …]
|
| /linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
| D | qp.c | 94 static void dealloc_oc_sq(struct c4iw_rdev *rdev, struct t4_sq *sq) in dealloc_oc_sq() argument 96 c4iw_ocqp_pool_free(rdev, sq->dma_addr, sq->memsize); in dealloc_oc_sq() 99 static void dealloc_host_sq(struct c4iw_rdev *rdev, struct t4_sq *sq) in dealloc_host_sq() argument 101 dma_free_coherent(&(rdev->lldi.pdev->dev), sq->memsize, sq->queue, in dealloc_host_sq() 102 pci_unmap_addr(sq, mapping)); in dealloc_host_sq() 105 static void dealloc_sq(struct c4iw_rdev *rdev, struct t4_sq *sq) in dealloc_sq() argument 107 if (t4_sq_onchip(sq)) in dealloc_sq() 108 dealloc_oc_sq(rdev, sq); in dealloc_sq() 110 dealloc_host_sq(rdev, sq); in dealloc_sq() 113 static int alloc_oc_sq(struct c4iw_rdev *rdev, struct t4_sq *sq) in alloc_oc_sq() argument [all …]
|
| D | cq.c | 194 CQE_QPID_V(wq->sq.qid)); in insert_recv_cqe() 227 CQE_QPID_V(wq->sq.qid)); in insert_sq_cqe() 245 if (wq->sq.flush_cidx == -1) in c4iw_flush_sq() 246 wq->sq.flush_cidx = wq->sq.cidx; in c4iw_flush_sq() 247 idx = wq->sq.flush_cidx; in c4iw_flush_sq() 248 BUG_ON(idx >= wq->sq.size); in c4iw_flush_sq() 249 while (idx != wq->sq.pidx) { in c4iw_flush_sq() 250 swsqe = &wq->sq.sw_sq[idx]; in c4iw_flush_sq() 254 if (wq->sq.oldest_read == swsqe) { in c4iw_flush_sq() 259 if (++idx == wq->sq.size) in c4iw_flush_sq() [all …]
|
| D | t4.h | 337 struct t4_sq sq; member 392 static inline int t4_sq_onchip(struct t4_sq *sq) in t4_sq_onchip() argument 394 return sq->flags & T4_SQ_ONCHIP; in t4_sq_onchip() 399 return wq->sq.in_use == 0; in t4_sq_empty() 404 return wq->sq.in_use == (wq->sq.size - 1); in t4_sq_full() 409 return wq->sq.size - 1 - wq->sq.in_use; in t4_sq_avail() 414 wq->sq.in_use++; in t4_sq_produce() 415 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce() 416 wq->sq.pidx = 0; in t4_sq_produce() 417 wq->sq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in t4_sq_produce() [all …]
|
| D | device.c | 132 le.qid = wq->sq.qid; in c4iw_log_wr_stats() 134 le.post_host_ts = wq->sq.sw_sq[wq->sq.cidx].host_ts; in c4iw_log_wr_stats() 135 le.post_sge_ts = wq->sq.sw_sq[wq->sq.cidx].sge_ts; in c4iw_log_wr_stats() 235 if (id != qp->wq.sq.qid) in dump_qp() 257 qp->wq.sq.qid, qp->wq.rq.qid, in dump_qp() 259 qp->wq.sq.flags & T4_SQ_ONCHIP, in dump_qp() 281 qp->wq.sq.qid, qp->wq.rq.qid, in dump_qp() 283 qp->wq.sq.flags & T4_SQ_ONCHIP, in dump_qp() 295 qp->wq.sq.qid, qp->wq.rq.qid, in dump_qp() 297 qp->wq.sq.flags & T4_SQ_ONCHIP); in dump_qp() [all …]
|
| D | ev.c | 211 CQE_STATUS(err_cqe), qhp->wq.sq.qid); in c4iw_ev_dispatch()
|
| D | cm.c | 1765 __func__, ep->com.qp->wq.sq.qid, ep, in rx_data() 2843 ep->com.qp->wq.sq.qid); in terminate()
|
| /linux-4.4.14/drivers/infiniband/hw/mthca/ |
| D | mthca_qp.c | 220 (n << qp->sq.wqe_shift); in get_send_wqe() 223 (n << qp->sq.wqe_shift)) >> in get_send_wqe() 225 ((qp->send_wqe_offset + (n << qp->sq.wqe_shift)) & in get_send_wqe() 498 qp_attr->cap.max_send_wr = qp->sq.max; in mthca_query_qp() 500 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mthca_query_qp() 602 if (qp->sq.max) in __mthca_modify_qp() 603 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; in __mthca_modify_qp() 604 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp() 723 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index); in __mthca_modify_qp() 824 mthca_wq_reset(&qp->sq); in __mthca_modify_qp() [all …]
|
| D | mthca_provider.h | 276 struct mthca_wq sq; member
|
| D | mthca_provider.c | 565 qp->sq.db_index = ucmd.sq_db_index; in mthca_create_qp() 622 init_attr->cap.max_send_wr = qp->sq.max; in mthca_create_qp() 624 init_attr->cap.max_send_sge = qp->sq.max_gs; in mthca_create_qp() 637 to_mqp(qp)->sq.db_index); in mthca_destroy_qp()
|
| D | mthca_cq.c | 539 wq = &(*cur_qp)->sq; in mthca_poll_one()
|
| /linux-4.4.14/drivers/infiniband/hw/mlx5/ |
| D | qp.c | 96 return get_wqe(qp, qp->sq.offset + (n << MLX5_IB_SQ_STRIDE)); in mlx5_get_send_wqe() 121 struct mlx5_ib_wq *wq = send ? &qp->sq : &qp->rq; in mlx5_ib_read_user_wqe() 352 qp->sq.wqe_cnt = wq_size / MLX5_SEND_WQE_BB; in calc_sq_size() 353 if (qp->sq.wqe_cnt > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) { in calc_sq_size() 355 qp->sq.wqe_cnt, in calc_sq_size() 359 qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); in calc_sq_size() 360 qp->sq.max_gs = attr->cap.max_send_sge; in calc_sq_size() 361 qp->sq.max_post = wq_size / wqe_size; in calc_sq_size() 362 attr->cap.max_send_wr = qp->sq.max_post; in calc_sq_size() 371 int desc_sz = 1 << qp->sq.wqe_shift; in set_user_buf_size() [all …]
|
| D | cq.c | 362 idx = tail & (qp->sq.wqe_cnt - 1); in handle_atomics() 367 tail = qp->sq.w_list[idx].next; in handle_atomics() 369 tail = qp->sq.w_list[idx].next; in handle_atomics() 370 qp->sq.last_poll = tail; in handle_atomics() 474 wq = &(*cur_qp)->sq; in mlx5_poll_one() 502 wq = &(*cur_qp)->sq; in mlx5_poll_one()
|
| D | mlx5_ib.h | 187 struct mlx5_ib_wq sq; member
|
| /linux-4.4.14/tools/perf/config/ |
| D | utilities.mak | 78 # escape-for-shell-sq 80 # Usage: embeddable-text = $(call escape-for-shell-sq,text) 86 escape-for-shell-sq = $(subst ','\'',$(1)) 88 # shell-sq 90 # Usage: single-quoted-and-escaped-text = $(call shell-sq,text) 92 shell-sq = '$(escape-for-shell-sq)' 124 # produces the same results as the `$(shell-sq)' function. 126 shell-wordify = $(if $(findstring $(newline),$(1)),$(_sw-esc-nl),$(shell-sq)) 128 "$$(echo $(call escape-nl,$(shell-sq),$(2)) | $(call shell-unescape-nl,$(2)))" 135 is-absolute = $(shell echo $(shell-sq) | grep -q ^/ && echo y) [all …]
|
| D | Makefile | 162 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG)) 482 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
|
| /linux-4.4.14/Documentation/DocBook/ |
| D | sh.xml.db | 1 API-sq-flush-range 2 API-sq-remap 3 API-sq-unmap
|
| D | .sh.xml.cmd | 2 Documentation/DocBook/sh.xml: Documentation/DocBook/sh.tmpl arch/sh/kernel/cpu/sh4/sq.c arch/sh/mm/…
|
| /linux-4.4.14/drivers/net/ |
| D | virtio_net.c | 104 struct send_queue *sq; member 829 static void free_old_xmit_skbs(struct send_queue *sq) in free_old_xmit_skbs() argument 833 struct virtnet_info *vi = sq->vq->vdev->priv; in free_old_xmit_skbs() 836 while ((skb = virtqueue_get_buf(sq->vq, &len)) != NULL) { in free_old_xmit_skbs() 848 static int xmit_skb(struct send_queue *sq, struct sk_buff *skb) in xmit_skb() argument 852 struct virtnet_info *vi = sq->vq->vdev->priv; in xmit_skb() 902 sg_init_table(sq->sg, skb_shinfo(skb)->nr_frags + (can_push ? 1 : 2)); in xmit_skb() 905 num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len); in xmit_skb() 909 sg_set_buf(sq->sg, hdr, hdr_len); in xmit_skb() 910 num_sg = skb_to_sgvec(skb, sq->sg + 1, 0, skb->len) + 1; in xmit_skb() [all …]
|
| /linux-4.4.14/drivers/infiniband/hw/mlx4/ |
| D | qp.c | 196 return get_wqe(qp, qp->sq.offset + (n << qp->sq.wqe_shift)); in get_send_wqe() 219 s = roundup(size, 1U << qp->sq.wqe_shift); in stamp_send_wqe() 221 ind = (i >> qp->sq.wqe_shift) + n; in stamp_send_wqe() 222 stamp = ind & qp->sq.wqe_cnt ? cpu_to_be32(0x7fffffff) : in stamp_send_wqe() 224 buf = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1)); in stamp_send_wqe() 225 wqe = buf + (i & ((1 << qp->sq.wqe_shift) - 1)); in stamp_send_wqe() 229 ctrl = buf = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1)); in stamp_send_wqe() 245 ctrl = wqe = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1)); in post_nop_wqe() 270 (n & qp->sq.wqe_cnt ? cpu_to_be32(1 << 31) : 0); in post_nop_wqe() 278 unsigned s = qp->sq.wqe_cnt - (ind & (qp->sq.wqe_cnt - 1)); in pad_wraparound() [all …]
|
| D | cq.c | 614 wq = is_send ? &qp->sq : &qp->rq; in mlx4_ib_qp_sw_comp() 749 wq = &(*cur_qp)->sq; in mlx4_ib_poll_one()
|
| D | main.c | 2671 spin_lock_irqsave(&mqp->sq.lock, flags_qp); in mlx4_ib_handle_catas_error() 2672 if (mqp->sq.tail != mqp->sq.head) { in mlx4_ib_handle_catas_error() 2685 spin_unlock_irqrestore(&mqp->sq.lock, flags_qp); in mlx4_ib_handle_catas_error()
|
| D | mlx4_ib.h | 299 struct mlx4_ib_wq sq; member
|
| /linux-4.4.14/drivers/staging/vt6656/ |
| D | dpc.c | 52 u8 *rx_sts, *rx_rate, *sq, *sq_3; in vnt_rx_data() local 130 sq = sq_3; in vnt_rx_data() 132 sq = skb_data + 8 + pay_load_with_padding + 8; in vnt_rx_data() 133 sq_3 = sq; in vnt_rx_data()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| D | trx.c | 153 u8 sq; in _rtl92se_query_rxphystatus() local 155 sq = 100; in _rtl92se_query_rxphystatus() 157 sq = cck_buf->sq_rpt; in _rtl92se_query_rxphystatus() 158 if (sq > 64) in _rtl92se_query_rxphystatus() 159 sq = 0; in _rtl92se_query_rxphystatus() 160 else if (sq < 20) in _rtl92se_query_rxphystatus() 161 sq = 100; in _rtl92se_query_rxphystatus() 163 sq = ((64 - sq) * 100) / 44; in _rtl92se_query_rxphystatus() 166 pstats->signalquality = sq; in _rtl92se_query_rxphystatus() 167 pstats->rx_mimo_sig_qual[0] = sq; in _rtl92se_query_rxphystatus()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
| D | trx.c | 150 u8 sq; in _rtl8723e_query_rxphystatus() local 153 sq = 100; in _rtl8723e_query_rxphystatus() 155 sq = cck_buf->sq_rpt; in _rtl8723e_query_rxphystatus() 156 if (sq > 64) in _rtl8723e_query_rxphystatus() 157 sq = 0; in _rtl8723e_query_rxphystatus() 158 else if (sq < 20) in _rtl8723e_query_rxphystatus() 159 sq = 100; in _rtl8723e_query_rxphystatus() 161 sq = ((64 - sq) * 100) / 44; in _rtl8723e_query_rxphystatus() 164 pstatus->signalquality = sq; in _rtl8723e_query_rxphystatus() 165 pstatus->rx_mimo_signalquality[0] = sq; in _rtl8723e_query_rxphystatus()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
| D | sa2400.c | 91 static u8 sa2400_rf_calc_rssi(u8 agc, u8 sq) in sa2400_rf_calc_rssi() argument 93 if (sq == 0x80) in sa2400_rf_calc_rssi() 96 if (sq > 78) in sa2400_rf_calc_rssi() 100 return 65 * sa2400_rf_rssi_map[sq] / 100; in sa2400_rf_calc_rssi()
|
| D | max2820.c | 76 static u8 max2820_rf_calc_rssi(u8 agc, u8 sq) in max2820_rf_calc_rssi() argument
|
| D | grf5101.c | 71 static u8 grf5101_rf_calc_rssi(u8 agc, u8 sq) in grf5101_rf_calc_rssi() argument
|
| D | dev.c | 216 u8 agc, sq; in rtl8180_handle_rx() local 291 sq = flags2 & 0xff; in rtl8180_handle_rx() 292 signal = priv->rf->calc_rssi(agc, sq); in rtl8180_handle_rx()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| D | trx.c | 210 u8 sq; in _rtl92ce_query_rxphystatus() local 212 sq = 100; in _rtl92ce_query_rxphystatus() 214 sq = cck_buf->sq_rpt; in _rtl92ce_query_rxphystatus() 215 if (sq > 64) in _rtl92ce_query_rxphystatus() 216 sq = 0; in _rtl92ce_query_rxphystatus() 217 else if (sq < 20) in _rtl92ce_query_rxphystatus() 218 sq = 100; in _rtl92ce_query_rxphystatus() 220 sq = ((64 - sq) * 100) / 44; in _rtl92ce_query_rxphystatus() 223 pstats->signalquality = sq; in _rtl92ce_query_rxphystatus() 224 pstats->rx_mimo_sig_qual[0] = sq; in _rtl92ce_query_rxphystatus()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
| D | trx.c | 169 u8 sq; in _rtl88ee_query_rxphystatus() local 172 sq = 100; in _rtl88ee_query_rxphystatus() 174 sq = cck_buf->sq_rpt; in _rtl88ee_query_rxphystatus() 175 if (sq > 64) in _rtl88ee_query_rxphystatus() 176 sq = 0; in _rtl88ee_query_rxphystatus() 177 else if (sq < 20) in _rtl88ee_query_rxphystatus() 178 sq = 100; in _rtl88ee_query_rxphystatus() 180 sq = ((64 - sq) * 100) / 44; in _rtl88ee_query_rxphystatus() 183 pstatus->signalquality = sq; in _rtl88ee_query_rxphystatus() 184 pstatus->rx_mimo_signalquality[0] = sq; in _rtl88ee_query_rxphystatus()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
| D | mac.c | 727 u8 sq; in _rtl92c_query_rxphystatus() local 729 sq = 100; in _rtl92c_query_rxphystatus() 731 sq = cck_buf->sq_rpt; in _rtl92c_query_rxphystatus() 732 if (sq > 64) in _rtl92c_query_rxphystatus() 733 sq = 0; in _rtl92c_query_rxphystatus() 734 else if (sq < 20) in _rtl92c_query_rxphystatus() 735 sq = 100; in _rtl92c_query_rxphystatus() 737 sq = ((64 - sq) * 100) / 44; in _rtl92c_query_rxphystatus() 739 pstats->signalquality = sq; in _rtl92c_query_rxphystatus() 740 pstats->RX_SIGQ[0] = sq; in _rtl92c_query_rxphystatus()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
| D | trx.c | 202 u8 sq; in _rtl92de_query_rxphystatus() local 204 sq = 100; in _rtl92de_query_rxphystatus() 206 sq = cck_buf->sq_rpt; in _rtl92de_query_rxphystatus() 207 if (sq > 64) in _rtl92de_query_rxphystatus() 208 sq = 0; in _rtl92de_query_rxphystatus() 209 else if (sq < 20) in _rtl92de_query_rxphystatus() 210 sq = 100; in _rtl92de_query_rxphystatus() 212 sq = ((64 - sq) * 100) / 44; in _rtl92de_query_rxphystatus() 214 pstats->signalquality = sq; in _rtl92de_query_rxphystatus() 215 pstats->rx_mimo_sig_qual[0] = sq; in _rtl92de_query_rxphystatus()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
| D | trx.c | 200 u8 sq; in query_rxphystatus() local 203 sq = 100; in query_rxphystatus() 205 sq = p_phystrpt->pwdb_all; in query_rxphystatus() 206 if (sq > 64) in query_rxphystatus() 207 sq = 0; in query_rxphystatus() 208 else if (sq < 20) in query_rxphystatus() 209 sq = 100; in query_rxphystatus() 211 sq = ((64 - sq) * 100) / 44; in query_rxphystatus() 214 pstatus->signalquality = sq; in query_rxphystatus() 215 pstatus->rx_mimo_signalquality[0] = sq; in query_rxphystatus()
|
| /linux-4.4.14/include/linux/ |
| D | dmar.h | 235 sq : 2, /* 80 - 81 */ member 260 dst->sq = src->sq; in dmar_copy_shared_irte()
|
| /linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
| D | ocrdma_hw.c | 137 return dev->mq.sq.va + (dev->mq.sq.head * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe() 142 dev->mq.sq.head = (dev->mq.sq.head + 1) & (OCRDMA_MQ_LEN - 1); in ocrdma_mq_inc_head() 147 return dev->mq.sq.va + (dev->mqe_ctx.tag * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe_rsp() 321 val |= dev->mq.sq.id & OCRDMA_MQ_ID_MASK; in ocrdma_ring_mq_db() 621 status = ocrdma_alloc_q(dev, &dev->mq.sq, OCRDMA_MQ_LEN, in ocrdma_create_mq() 625 status = ocrdma_mbx_create_mq(dev, &dev->mq.sq, &dev->mq.cq); in ocrdma_create_mq() 632 ocrdma_free_q(dev, &dev->mq.sq); in ocrdma_create_mq() 647 mbxq = &dev->mq.sq; in ocrdma_destroy_mq() 900 struct ocrdma_cq *cq, bool sq) in _ocrdma_qp_buddy_cq_handler() argument 905 struct list_head *head = sq?(&cq->sq_head):(&cq->rq_head); in _ocrdma_qp_buddy_cq_handler() [all …]
|
| D | ocrdma_verbs.c | 1299 uresp.sq_dbid = qp->sq.dbid; in ocrdma_copy_qp_uresp() 1301 uresp.sq_page_size = PAGE_ALIGN(qp->sq.len); in ocrdma_copy_qp_uresp() 1302 uresp.sq_page_addr[0] = virt_to_phys(qp->sq.va); in ocrdma_copy_qp_uresp() 1303 uresp.num_wqe_allocated = qp->sq.max_cnt; in ocrdma_copy_qp_uresp() 1367 kzalloc(sizeof(*(qp->wqe_wr_id_tbl)) * qp->sq.max_cnt, in ocrdma_alloc_wr_id_tbl() 1391 qp->sq.max_sges = attrs->cap.max_send_sge; in ocrdma_set_qp_init_params() 1601 qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; in ocrdma_query_qp() 1603 qp_attr->cap.max_send_sge = qp->sq.max_sges; in ocrdma_query_qp() 1674 return (qp->sq.tail == qp->sq.head); in is_hw_sq_empty() 1741 ocrdma_hwq_inc_tail(&qp->sq); in ocrdma_discard_cqes() [all …]
|
| D | ocrdma.h | 157 struct ocrdma_queue_info sq; member 395 struct ocrdma_qp_hwq_info sq; member
|
| /linux-4.4.14/drivers/net/wireless/hostap/ |
| D | hostap_main.c | 1008 struct hfa384x_comms_quality sq; in prism2_update_comms_qual() local 1017 &sq, sizeof(sq), 1) >= 0) { in prism2_update_comms_qual() 1018 local->comms_qual = (s16) le16_to_cpu(sq.comm_qual); in prism2_update_comms_qual() 1019 local->avg_signal = (s16) le16_to_cpu(sq.signal_level); in prism2_update_comms_qual() 1020 local->avg_noise = (s16) le16_to_cpu(sq.noise_level); in prism2_update_comms_qual() 1026 &sq, sizeof(sq), 1) >= 0) { in prism2_update_comms_qual() 1027 local->comms_qual = le16_to_cpu(sq.comm_qual); in prism2_update_comms_qual() 1029 le16_to_cpu(sq.signal_level)); in prism2_update_comms_qual() 1031 le16_to_cpu(sq.noise_level)); in prism2_update_comms_qual()
|
| D | hostap_wlan.h | 41 struct linux_wlan_ng_val hosttime, mactime, channel, rssi, sq, signal, member
|
| D | hostap_80211_rx.c | 147 LWNG_SETVAL(sq, 5, 1 /* no value */, 4, 0); in prism2_rx_80211()
|
| /linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
| D | cxio_hal.c | 292 wq->sq = kzalloc(depth * sizeof(struct t3_swsq), GFP_KERNEL); in cxio_create_qp() 293 if (!wq->sq) in cxio_create_qp() 313 kfree(wq->sq); in cxio_create_qp() 343 kfree(wq->sq); in cxio_destroy_qp() 411 struct t3_swsq *sqp = wq->sq + Q_PTR2IDX(wq->sq_rptr, wq->sq_size_log2); in cxio_flush_sq() 414 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in cxio_flush_sq() 419 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in cxio_flush_sq() 1079 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in flush_completed_wrs() 1083 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in flush_completed_wrs() 1119 u32 rptr = wq->oldest_read - wq->sq + 1; in advance_oldest_read() [all …]
|
| D | cxio_wr.h | 699 struct t3_swsq *sq; /* SW SQ */ member
|
| D | iwch_qp.c | 392 sqp = qhp->wq.sq + in iwch_post_send() 590 sqp = qhp->wq.sq + Q_PTR2IDX(qhp->wq.sq_wptr, qhp->wq.sq_size_log2); in iwch_bind_mw()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
| D | trx.c | 118 u8 sq, sq_rpt; in _rtl8723be_query_rxphystatus() local 120 sq = 100; in _rtl8723be_query_rxphystatus() 124 sq = 0; in _rtl8723be_query_rxphystatus() 126 sq = 100; in _rtl8723be_query_rxphystatus() 128 sq = ((64 - sq_rpt) * 100) / 44; in _rtl8723be_query_rxphystatus() 130 pstatus->signalquality = sq; in _rtl8723be_query_rxphystatus() 131 pstatus->rx_mimo_signalquality[0] = sq; in _rtl8723be_query_rxphystatus()
|
| /linux-4.4.14/drivers/staging/vt6655/ |
| D | dpc.c | 50 u8 *rx_sts, *rx_rate, *sq; in vnt_rx_data() local 90 sq = skb_data + bytes_received - 4; in vnt_rx_data()
|
| /linux-4.4.14/arch/tile/include/arch/ |
| D | mpipe_shm.h | 284 uint_reg_t sq : 1; member 320 uint_reg_t sq : 1;
|
| /linux-4.4.14/Documentation/fb/ |
| D | cmap_xfbdev.txt | 44 sq = dr * dr; 45 UnsignedToBigNum (sq, &sum);
|
| /linux-4.4.14/arch/sh/kernel/cpu/sh4/ |
| D | sq.c | 62 unsigned long *sq = (unsigned long *)start; in sq_flush_range() local 65 for (len >>= 5; len--; sq += 8) in sq_flush_range() 66 prefetchw(sq); in sq_flush_range()
|
| D | Makefile | 10 obj-$(CONFIG_SH_STORE_QUEUES) += sq.o
|
| /linux-4.4.14/drivers/staging/rtl8712/ |
| D | rtl8712_recv.c | 740 u8 sq; in query_rx_phy_status() local 820 sq = 100; in query_rx_phy_status() 822 sq = pcck_buf->sq_rpt; in query_rx_phy_status() 824 sq = 0; in query_rx_phy_status() 826 sq = 100; in query_rx_phy_status() 828 sq = ((64 - sq) * 100) / 44; in query_rx_phy_status() 830 prframe->u.hdr.attrib.signal_qual = sq; in query_rx_phy_status() 831 prframe->u.hdr.attrib.rx_mimo_signal_qual[0] = sq; in query_rx_phy_status()
|
| /linux-4.4.14/drivers/scsi/bnx2fc/ |
| D | bnx2fc_tgt.c | 675 tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size, in bnx2fc_alloc_session_resc() 677 if (!tgt->sq) { in bnx2fc_alloc_session_resc() 682 memset(tgt->sq, 0, tgt->sq_mem_size); in bnx2fc_alloc_session_resc() 895 if (tgt->sq) { in bnx2fc_free_session_resc() 897 tgt->sq, tgt->sq_dma); in bnx2fc_free_session_resc() 898 tgt->sq = NULL; in bnx2fc_free_session_resc()
|
| D | bnx2fc.h | 318 struct fcoe_sqe *sq; member
|
| D | bnx2fc_hwi.c | 1387 sqe = &tgt->sq[tgt->sq_prod_idx]; in bnx2fc_add_2_sq()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
| D | trx.c | 141 u8 sq, sq_rpt; in _rtl92ee_query_rxphystatus() local 144 sq = 100; in _rtl92ee_query_rxphystatus() 148 sq = 0; in _rtl92ee_query_rxphystatus() 150 sq = 100; in _rtl92ee_query_rxphystatus() 152 sq = ((64 - sq_rpt) * 100) / 44; in _rtl92ee_query_rxphystatus() 155 pstatus->signalquality = sq; in _rtl92ee_query_rxphystatus() 156 pstatus->rx_mimo_signalquality[0] = sq; in _rtl92ee_query_rxphystatus()
|
| /linux-4.4.14/drivers/isdn/hisax/ |
| D | amd7930_fn.c | 523 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in Amd7930_interrupt() 575 skb_queue_tail(&cs->sq, skb); in Amd7930_l1hw() 597 skb_queue_tail(&cs->sq, skb); in Amd7930_l1hw() 652 skb_queue_purge(&cs->sq); in Amd7930_l1hw()
|
| D | isac.c | 254 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in isac_interrupt() 453 skb_queue_tail(&cs->sq, skb); in ISAC_l1hw() 474 skb_queue_tail(&cs->sq, skb); in ISAC_l1hw() 549 skb_queue_purge(&cs->sq); in ISAC_l1hw()
|
| D | icc.c | 251 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in icc_interrupt() 450 skb_queue_tail(&cs->sq, skb); in ICC_l1hw() 471 skb_queue_tail(&cs->sq, skb); in ICC_l1hw() 551 skb_queue_purge(&cs->sq); in ICC_l1hw()
|
| D | ipacx.c | 106 skb_queue_tail(&cs->sq, skb); in dch_l2l1() 124 skb_queue_tail(&cs->sq, skb); in dch_l2l1() 183 skb_queue_purge(&cs->sq); in dch_l2l1() 387 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in dch_int()
|
| D | w6692.c | 470 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in W6692_interrupt() 574 skb_queue_tail(&cs->sq, skb); in W6692_l1hw() 595 skb_queue_tail(&cs->sq, skb); in W6692_l1hw() 655 skb_queue_purge(&cs->sq); in W6692_l1hw()
|
| D | config.c | 787 skb_queue_purge(&csta->sq); in closecard() 1137 skb_queue_head_init(&cs->sq); in hisax_cs_setup() 1712 skb = skb_dequeue(&cs->sq); in hisax_d_l1l2() 1800 skb_queue_tail(&cs->sq, skb); in hisax_d_l2l1()
|
| D | hfc_2bds0.c | 880 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in hfc2bds0_interrupt() 917 skb_queue_tail(&cs->sq, skb); in HFCD_l1hw() 943 skb_queue_tail(&cs->sq, skb); in HFCD_l1hw()
|
| D | hfc_sx.c | 835 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in hfcsx_interrupt() 885 skb_queue_tail(&cs->sq, skb); in HFCSX_l1hw() 911 skb_queue_tail(&cs->sq, skb); in HFCSX_l1hw()
|
| D | hfc_pci.c | 1070 if ((cs->tx_skb = skb_dequeue(&cs->sq))) { in hfcpci_interrupt() 1120 skb_queue_tail(&cs->sq, skb); in HFCPCI_l1hw() 1146 skb_queue_tail(&cs->sq, skb); in HFCPCI_l1hw()
|
| D | hisax.h | 943 struct sk_buff_head rq, sq; /* D-channel queues */ member
|
| /linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/ |
| D | r8192E_dev.c | 1585 u8 sq; in _rtl92e_query_rxphystatus() local 1588 sq = 100; in _rtl92e_query_rxphystatus() 1590 sq = pcck_buf->sq_rpt; in _rtl92e_query_rxphystatus() 1593 sq = 0; in _rtl92e_query_rxphystatus() 1595 sq = 100; in _rtl92e_query_rxphystatus() 1597 sq = ((64-sq) * 100) / 44; in _rtl92e_query_rxphystatus() 1599 pstats->SignalQuality = sq; in _rtl92e_query_rxphystatus() 1600 precord_stats->SignalQuality = sq; in _rtl92e_query_rxphystatus() 1601 pstats->RxMIMOSignalQuality[0] = sq; in _rtl92e_query_rxphystatus() 1602 precord_stats->RxMIMOSignalQuality[0] = sq; in _rtl92e_query_rxphystatus()
|
| /linux-4.4.14/drivers/media/platform/vivid/ |
| D | vivid-tpg.c | 1950 const struct v4l2_rect *sq = &tpg->square; in tpg_fill_plane_extras() local 1992 if (tpg->show_square && frame_line >= sq->top && in tpg_fill_plane_extras() 1993 frame_line < sq->top + sq->height && in tpg_fill_plane_extras() 1994 sq->left < c->left + c->width && in tpg_fill_plane_extras() 1995 sq->left + sq->width >= c->left) { in tpg_fill_plane_extras() 1996 unsigned left = sq->left; in tpg_fill_plane_extras() 1997 unsigned width = sq->width; in tpg_fill_plane_extras()
|
| /linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
| D | rx_reorder.c | 28 static inline u16 seq_inc(u16 sq) in seq_inc() argument 30 return (sq + 1) & SEQ_MASK; in seq_inc()
|
| /linux-4.4.14/drivers/iommu/ |
| D | intel_irq_remapping.c | 285 unsigned int sq, unsigned int sid) in set_irte_sid() argument 290 irte->sq = sq; in set_irte_sid() 1236 irte->sid, irte->sq, irte->svt); in intel_irq_remapping_prepare_irte()
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtl818x/ |
| D | rtl818x.h | 357 u8 (*calc_rssi)(u8 agc, u8 sq);
|
| /linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
| D | rtl8187.h | 59 u8 sq; member
|
| /linux-4.4.14/drivers/staging/rtl8192u/ |
| D | r8192U_core.c | 4267 u8 sq; in rtl8192_query_rxphystatus() local 4350 sq = 100; in rtl8192_query_rxphystatus() 4352 sq = pcck_buf->sq_rpt; in rtl8192_query_rxphystatus() 4355 sq = 0; in rtl8192_query_rxphystatus() 4357 sq = 100; in rtl8192_query_rxphystatus() 4359 sq = ((64 - sq) * 100) / 44; in rtl8192_query_rxphystatus() 4361 pstats->SignalQuality = precord_stats->SignalQuality = sq; in rtl8192_query_rxphystatus() 4363 precord_stats->RxMIMOSignalQuality[0] = sq; in rtl8192_query_rxphystatus()
|
| /linux-4.4.14/drivers/staging/rtl8188eu/os_dep/ |
| D | ioctl_linux.c | 121 u8 ss, sq; in translate_scan() local 312 sq = padapter->recvpriv.signal_qual; in translate_scan() 315 sq = pnetwork->network.PhyInfo.SignalQuality; in translate_scan() 319 iwe.u.qual.qual = (u8)sq; /* signal quality */ in translate_scan()
|
| /linux-4.4.14/drivers/net/wireless/ |
| D | airo.c | 5748 u16 sq; in airo_get_quality() local 5756 sq = le16_to_cpu(status_rid->signalQuality); in airo_get_quality() 5758 if (sq > 0x20) in airo_get_quality() 5761 quality = 0x20 - sq; in airo_get_quality() 5763 if (sq > 0xb0) in airo_get_quality() 5765 else if (sq < 0x10) in airo_get_quality() 5768 quality = 0xb0 - sq; in airo_get_quality()
|
| /linux-4.4.14/drivers/net/wireless/ipw2x00/ |
| D | ipw2100.c | 2676 struct ipw2100_status_queue *sq = &priv->status_queue; in __ipw2100_rx_process() local 2713 frame_type = sq->drv[i].status_fields & STATUS_TYPE_MASK; in __ipw2100_rx_process() 2714 stats.rssi = sq->drv[i].rssi + IPW2100_RSSI_TO_DBM; in __ipw2100_rx_process() 2715 stats.len = sq->drv[i].frame_size; in __ipw2100_rx_process()
|