num_descs 208 drivers/dma/bestcomm/bestcomm.c int num_descs; num_descs 220 drivers/dma/bestcomm/bestcomm.c num_descs = bcom_task_num_descs(task); num_descs 222 drivers/dma/bestcomm/bestcomm.c for (i=0; i<num_descs; i++, desc++) { num_descs 173 drivers/dma/bestcomm/fec.c int num_descs; num_descs 177 drivers/dma/bestcomm/fec.c num_descs = bcom_task_num_descs(tasknum); num_descs 178 drivers/dma/bestcomm/fec.c desc = bcom_task_desc(tasknum) + num_descs - 1; num_descs 180 drivers/dma/bestcomm/fec.c for (i=0; i<num_descs; i++, desc--) num_descs 449 drivers/dma/ioat/dma.c int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs) num_descs 457 drivers/dma/ioat/dma.c if (likely(ioat_ring_space(ioat_chan) > num_descs)) { num_descs 459 drivers/dma/ioat/dma.c __func__, num_descs, ioat_chan->head, num_descs 461 drivers/dma/ioat/dma.c ioat_chan->produce = num_descs; num_descs 468 drivers/dma/ioat/dma.c __func__, num_descs, ioat_chan->head, num_descs 335 drivers/dma/ioat/dma.h u16 num_descs = len >> ioat_chan->xfercap_log; num_descs 337 drivers/dma/ioat/dma.h num_descs += !!(len & ((1 << ioat_chan->xfercap_log) - 1)); num_descs 338 drivers/dma/ioat/dma.h return num_descs; num_descs 398 drivers/dma/ioat/dma.h int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs); num_descs 110 drivers/dma/ioat/prep.c int num_descs, idx, i; num_descs 115 drivers/dma/ioat/prep.c num_descs = ioat_xferlen_to_descs(ioat_chan, len); num_descs 116 drivers/dma/ioat/prep.c if (likely(num_descs) && num_descs 117 drivers/dma/ioat/prep.c ioat_check_space_lock(ioat_chan, num_descs) == 0) num_descs 137 drivers/dma/ioat/prep.c } while (++i < num_descs); num_descs 164 drivers/dma/ioat/prep.c int num_descs, with_ext, idx, i; num_descs 170 drivers/dma/ioat/prep.c num_descs = ioat_xferlen_to_descs(ioat_chan, len); num_descs 176 drivers/dma/ioat/prep.c num_descs *= 2; num_descs 185 drivers/dma/ioat/prep.c if (likely(num_descs) && num_descs 186 drivers/dma/ioat/prep.c ioat_check_space_lock(ioat_chan, num_descs+1) == 0) num_descs 220 drivers/dma/ioat/prep.c } while ((i += 1 + with_ext) < num_descs); num_descs 355 drivers/dma/ioat/prep.c int i, s, idx, with_ext, num_descs; num_descs 364 drivers/dma/ioat/prep.c num_descs = ioat_xferlen_to_descs(ioat_chan, len); num_descs 372 drivers/dma/ioat/prep.c num_descs *= 2; num_descs 381 drivers/dma/ioat/prep.c if (likely(num_descs) && num_descs 382 drivers/dma/ioat/prep.c ioat_check_space_lock(ioat_chan, num_descs + cb32) == 0) num_descs 430 drivers/dma/ioat/prep.c } while ((i += 1 + with_ext) < num_descs); num_descs 475 drivers/dma/ioat/prep.c int i, s, idx, num_descs; num_descs 482 drivers/dma/ioat/prep.c num_descs = ioat_xferlen_to_descs(ioat_chan, len); num_descs 488 drivers/dma/ioat/prep.c if (num_descs && ioat_check_space_lock(ioat_chan, num_descs) == 0) num_descs 544 drivers/dma/ioat/prep.c } while (++i < num_descs); num_descs 376 drivers/edac/mce_amd.c unsigned int num_descs; num_descs 972 drivers/edac/mce_amd.c if (xec < smca_mce_descs[bank_type].num_descs && num_descs 151 drivers/net/ethernet/amazon/ena/ena_eth_com.h u16 num_descs; num_descs 157 drivers/net/ethernet/amazon/ena/ena_eth_com.h num_descs = ena_tx_ctx->num_bufs; num_descs 160 drivers/net/ethernet/amazon/ena/ena_eth_com.h ++num_descs; num_descs 162 drivers/net/ethernet/amazon/ena/ena_eth_com.h if (num_descs > llq_info->descs_num_before_header) { num_descs 163 drivers/net/ethernet/amazon/ena/ena_eth_com.h descs_after_first_entry = num_descs - llq_info->descs_num_before_header; num_descs 169 drivers/net/ethernet/amazon/ena/ena_eth_com.h num_descs, num_entries_needed); num_descs 531 drivers/net/ethernet/cavium/liquidio/lio_core.c static int octeon_setup_droq(struct octeon_device *oct, int q_no, int num_descs, num_descs 538 drivers/net/ethernet/cavium/liquidio/lio_core.c ret_val = octeon_create_droq(oct, q_no, num_descs, desc_size, app_ctx); num_descs 867 drivers/net/ethernet/cavium/liquidio/octeon_device.c u32 num_descs = 0; num_descs 873 drivers/net/ethernet/cavium/liquidio/octeon_device.c num_descs = num_descs 876 drivers/net/ethernet/cavium/liquidio/octeon_device.c num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_pf)); num_descs 878 drivers/net/ethernet/cavium/liquidio/octeon_device.c num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_vf)); num_descs 898 drivers/net/ethernet/cavium/liquidio/octeon_device.c if (octeon_init_instr_queue(oct, txpciq, num_descs)) { num_descs 911 drivers/net/ethernet/cavium/liquidio/octeon_device.c u32 num_descs = 0; num_descs 917 drivers/net/ethernet/cavium/liquidio/octeon_device.c num_descs = num_descs 922 drivers/net/ethernet/cavium/liquidio/octeon_device.c num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_pf)); num_descs 925 drivers/net/ethernet/cavium/liquidio/octeon_device.c num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_vf)); num_descs 935 drivers/net/ethernet/cavium/liquidio/octeon_device.c if (octeon_init_droq(oct, oq_no, num_descs, desc_size, NULL)) { num_descs 222 drivers/net/ethernet/cavium/liquidio/octeon_droq.c u32 num_descs, num_descs 243 drivers/net/ethernet/cavium/liquidio/octeon_droq.c c_num_descs = num_descs; num_descs 929 drivers/net/ethernet/cavium/liquidio/octeon_droq.c u32 q_no, u32 num_descs, num_descs 955 drivers/net/ethernet/cavium/liquidio/octeon_droq.c if (octeon_init_droq(oct, q_no, num_descs, desc_size, app_ctx)) { num_descs 339 drivers/net/ethernet/cavium/liquidio/octeon_droq.h u32 num_descs, num_descs 403 drivers/net/ethernet/cavium/liquidio/octeon_droq.h u32 num_descs, u32 desc_size, void *app_ctx); num_descs 350 drivers/net/ethernet/cavium/liquidio/octeon_iq.h u32 num_descs); num_descs 394 drivers/net/ethernet/cavium/liquidio/octeon_iq.h int q_index, union oct_txpciq iq_no, u32 num_descs, num_descs 58 drivers/net/ethernet/cavium/liquidio/request_manager.c u32 num_descs) num_descs 80 drivers/net/ethernet/cavium/liquidio/request_manager.c q_size = (u32)conf->instr_type * num_descs; num_descs 93 drivers/net/ethernet/cavium/liquidio/request_manager.c iq->max_count = num_descs; num_descs 98 drivers/net/ethernet/cavium/liquidio/request_manager.c iq->request_list = vmalloc_node((sizeof(*iq->request_list) * num_descs), num_descs 102 drivers/net/ethernet/cavium/liquidio/request_manager.c vmalloc(array_size(num_descs, num_descs 111 drivers/net/ethernet/cavium/liquidio/request_manager.c memset(iq->request_list, 0, sizeof(*iq->request_list) * num_descs); num_descs 207 drivers/net/ethernet/cavium/liquidio/request_manager.c u32 num_descs, num_descs 233 drivers/net/ethernet/cavium/liquidio/request_manager.c if (octeon_init_instr_queue(oct, txpciq, num_descs)) { num_descs 1331 drivers/net/ethernet/ibm/ibmvnic.c int num_descs = 0; num_descs 1360 drivers/net/ethernet/ibm/ibmvnic.c num_descs++; num_descs 1363 drivers/net/ethernet/ibm/ibmvnic.c return num_descs; num_descs 139 drivers/net/ethernet/pensando/ionic/ionic_debugfs.c debugfs_create_u32("num_descs", 0400, q_dentry, &q->num_descs); num_descs 155 drivers/net/ethernet/pensando/ionic/ionic_debugfs.c desc_blob->size = (unsigned long)q->num_descs * q->desc_size; num_descs 163 drivers/net/ethernet/pensando/ionic/ionic_debugfs.c desc_blob->size = (unsigned long)q->num_descs * q->sg_desc_size; num_descs 171 drivers/net/ethernet/pensando/ionic/ionic_debugfs.c debugfs_create_u32("num_descs", 0400, cq_dentry, &cq->num_descs); num_descs 182 drivers/net/ethernet/pensando/ionic/ionic_debugfs.c desc_blob->size = (unsigned long)cq->num_descs * cq->desc_size; num_descs 280 drivers/net/ethernet/pensando/ionic/ionic_dev.c .q_init.ring_size = ilog2(q->num_descs), num_descs 295 drivers/net/ethernet/pensando/ionic/ionic_dev.c unsigned int num_descs, size_t desc_size) num_descs 301 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (desc_size == 0 || !is_power_of_2(num_descs)) num_descs 304 drivers/net/ethernet/pensando/ionic/ionic_dev.c ring_size = ilog2(num_descs); num_descs 310 drivers/net/ethernet/pensando/ionic/ionic_dev.c cq->num_descs = num_descs; num_descs 317 drivers/net/ethernet/pensando/ionic/ionic_dev.c for (i = 0; i < num_descs; i++) { num_descs 318 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (i + 1 == num_descs) { num_descs 339 drivers/net/ethernet/pensando/ionic/ionic_dev.c for (i = 0, cur = cq->info; i < cq->num_descs; i++, cur++) num_descs 375 drivers/net/ethernet/pensando/ionic/ionic_dev.c unsigned int num_descs, size_t desc_size, num_descs 382 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (desc_size == 0 || !is_power_of_2(num_descs)) num_descs 385 drivers/net/ethernet/pensando/ionic/ionic_dev.c ring_size = ilog2(num_descs); num_descs 392 drivers/net/ethernet/pensando/ionic/ionic_dev.c q->num_descs = num_descs; num_descs 403 drivers/net/ethernet/pensando/ionic/ionic_dev.c for (i = 0; i < num_descs; i++) { num_descs 404 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (i + 1 == num_descs) num_descs 409 drivers/net/ethernet/pensando/ionic/ionic_dev.c cur->left = num_descs - i; num_descs 424 drivers/net/ethernet/pensando/ionic/ionic_dev.c for (i = 0, cur = q->info; i < q->num_descs; i++, cur++) num_descs 436 drivers/net/ethernet/pensando/ionic/ionic_dev.c for (i = 0, cur = q->info; i < q->num_descs; i++, cur++) num_descs 463 drivers/net/ethernet/pensando/ionic/ionic_dev.c mask = q->num_descs - 1; num_descs 185 drivers/net/ethernet/pensando/ionic/ionic_dev.h unsigned int num_descs; num_descs 213 drivers/net/ethernet/pensando/ionic/ionic_dev.h unsigned int num_descs; num_descs 278 drivers/net/ethernet/pensando/ionic/ionic_dev.h unsigned int num_descs, size_t desc_size); num_descs 289 drivers/net/ethernet/pensando/ionic/ionic_dev.h unsigned int num_descs, size_t desc_size, num_descs 336 drivers/net/ethernet/pensando/ionic/ionic_lif.c unsigned int num_descs, unsigned int desc_size, num_descs 353 drivers/net/ethernet/pensando/ionic/ionic_lif.c q_size = num_descs * desc_size; num_descs 354 drivers/net/ethernet/pensando/ionic/ionic_lif.c cq_size = num_descs * cq_desc_size; num_descs 355 drivers/net/ethernet/pensando/ionic/ionic_lif.c sg_size = num_descs * sg_desc_size; num_descs 377 drivers/net/ethernet/pensando/ionic/ionic_lif.c new->q.info = devm_kzalloc(dev, sizeof(*new->q.info) * num_descs, num_descs 387 drivers/net/ethernet/pensando/ionic/ionic_lif.c err = ionic_q_init(lif, idev, &new->q, index, name, num_descs, num_descs 420 drivers/net/ethernet/pensando/ionic/ionic_lif.c new->cq.info = devm_kzalloc(dev, sizeof(*new->cq.info) * num_descs, num_descs 428 drivers/net/ethernet/pensando/ionic/ionic_lif.c err = ionic_cq_init(lif, &new->cq, &new->intr, num_descs, cq_desc_size); num_descs 569 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), num_descs 615 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), num_descs 1900 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), num_descs 209 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done = ionic_rx_walk_cq(cq, cq->num_descs); num_descs 425 drivers/net/ethernet/pensando/ionic/ionic_txrx.c while (work_done < cq->num_descs && num_descs 892 drivers/net/wireless/ath/wil6210/debugfs.c int num_descs, desc_size; num_descs 904 drivers/net/wireless/ath/wil6210/debugfs.c rc = sscanf(kbuf, "%8s %d %d", cmd, &num_descs, &desc_size); num_descs 920 drivers/net/wireless/ath/wil6210/debugfs.c wil_pmc_alloc(wil, num_descs, desc_size); num_descs 270 drivers/net/wireless/ath/wil6210/trace.h __field(u8, num_descs) num_descs 278 drivers/net/wireless/ath/wil6210/trace.h __entry->num_descs = msg->num_descriptors; num_descs 286 drivers/net/wireless/ath/wil6210/trace.h __entry->num_descs, __entry->status, __entry->mcs) num_descs 1173 drivers/net/wireless/ath/wil6210/txrx_edma.c unsigned int num_descs, num_statuses = 0; num_descs 1185 drivers/net/wireless/ath/wil6210/txrx_edma.c num_descs = msg.num_descriptors; num_descs 1186 drivers/net/wireless/ath/wil6210/txrx_edma.c if (!num_descs) { num_descs 1224 drivers/net/wireless/ath/wil6210/txrx_edma.c ring_id, num_descs); num_descs 1228 drivers/net/wireless/ath/wil6210/txrx_edma.c for (i = 0 ; i < num_descs; ++i) { num_descs 893 drivers/net/wireless/ti/wl1251/acx.c mem_conf->rx_queue_config.num_descs = ACX_RX_DESC_DEF; num_descs 899 drivers/net/wireless/ti/wl1251/acx.c mem_conf->tx_queue_config[i].num_descs = ACX_TX_DESC_DEF; num_descs 1119 drivers/net/wireless/ti/wl1251/acx.h u8 num_descs; num_descs 1130 drivers/net/wireless/ti/wl1251/acx.h u8 num_descs; num_descs 243 drivers/pinctrl/core.c unsigned num_descs) num_descs 248 drivers/pinctrl/core.c for (i = 0; i < num_descs; i++) {