Home
last modified time | relevance | path

Searched refs:inuse (Results 1 – 25 of 50) sorted by relevance

12

/drivers/gpu/drm/msm/
Dmsm_gem_vma.c47 if (WARN_ON(vma->inuse > 0)) in msm_gem_purge_vma()
65 vma->inuse--; in msm_gem_unmap_vma()
80 vma->inuse++; in msm_gem_map_vma()
93 vma->inuse--; in msm_gem_map_vma()
103 if (WARN_ON(vma->inuse > 0 || vma->mapped)) in msm_gem_close_vma()
/drivers/net/ethernet/mscc/
Docelot_devlink.c235 static void ocelot_wm_status(struct ocelot *ocelot, int index, u32 *inuse, in ocelot_wm_status() argument
240 return ocelot->ops->wm_stat(res_stat, inuse, maxuse); in ocelot_wm_status()
746 u32 inuse, maxuse; in ocelot_sb_occ_max_clear() local
754 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
756 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
759 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
761 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
768 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
770 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
773 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
[all …]
/drivers/media/pci/saa7164/
Dsaa7164-cmd.c18 if (dev->cmds[i].inuse == 0) { in saa7164_cmd_alloc_seqno()
19 dev->cmds[i].inuse = 1; in saa7164_cmd_alloc_seqno()
34 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_free_seqno()
36 dev->cmds[seqno].inuse = 0; in saa7164_cmd_free_seqno()
46 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_timeout_seqno()
58 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_timeout_get()
258 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_wait()
306 if (dev->cmds[i].inuse == 1) { in saa7164_cmd_signal()
316 if ((dev->cmds[i].inuse == 1) && ((i == 0) || in saa7164_cmd_signal()
/drivers/watchdog/
Dmtx-1_wdt.c55 unsigned long inuse; member
117 if (test_and_set_bit(0, &mtx1_wdt_device.inuse)) in mtx1_wdt_open()
125 clear_bit(0, &mtx1_wdt_device.inuse); in mtx1_wdt_release()
210 clear_bit(0, &mtx1_wdt_device.inuse); in mtx1_wdt_probe()
Drdc321x_wdt.c48 unsigned long inuse; member
128 if (test_and_set_bit(0, &rdc321x_wdt_device.inuse)) in rdc321x_wdt_open()
136 clear_bit(0, &rdc321x_wdt_device.inuse); in rdc321x_wdt_release()
251 clear_bit(0, &rdc321x_wdt_device.inuse); in rdc321x_wdt_probe()
Dcpu5wdt.c53 unsigned long inuse; member
127 if (test_and_set_bit(0, &cpu5wdt_device.inuse)) in cpu5wdt_open()
134 clear_bit(0, &cpu5wdt_device.inuse); in cpu5wdt_release()
Drc32434_wdt.c36 unsigned long inuse; member
139 if (test_and_set_bit(0, &rc32434_wdt_device.inuse)) in rc32434_wdt_open()
160 clear_bit(0, &rc32434_wdt_device.inuse); in rc32434_wdt_release()
Dbcm63xx_wdt.c44 unsigned long inuse; member
115 if (test_and_set_bit(0, &bcm63xx_wdt_device.inuse)) in bcm63xx_wdt_open()
130 clear_bit(0, &bcm63xx_wdt_device.inuse); in bcm63xx_wdt_release()
/drivers/iio/dummy/
Diio_dummy_evgen.c41 bool inuse[IIO_EVENTGEN_NO]; member
84 if (!iio_evgen->inuse[i]) { in iio_dummy_evgen_get_irq()
86 iio_evgen->inuse[i] = true; in iio_dummy_evgen_get_irq()
109 iio_evgen->inuse[irqd_to_hwirq(irqd)] = false; in iio_dummy_evgen_release_irq()
/drivers/net/ethernet/altera/
Daltera_msgdma.c129 u32 inuse; in msgdma_tx_completions() local
133 inuse = csrrd32(priv->tx_dma_csr, msgdma_csroffs(rw_fill_level)) in msgdma_tx_completions()
136 if (inuse) { /* Tx FIFO is not empty */ in msgdma_tx_completions()
138 priv->tx_prod - priv->tx_cons - inuse - 1, 0); in msgdma_tx_completions()
/drivers/gpu/ipu-v3/
Dipu-smfc.c20 bool inuse; member
149 if (smfc->inuse) { in ipu_smfc_get()
154 smfc->inuse = true; in ipu_smfc_get()
167 smfc->inuse = false; in ipu_smfc_put()
Dipu-di.c24 bool inuse; member
688 if (di->inuse) { in ipu_di_get()
693 di->inuse = true; in ipu_di_get()
705 di->inuse = false; in ipu_di_put()
741 di->inuse = false; in ipu_di_init()
Dipu-csi.c28 bool inuse; member
743 if (csi->inuse) { in ipu_csi_get()
748 csi->inuse = true; in ipu_csi_get()
760 csi->inuse = false; in ipu_csi_put()
/drivers/infiniband/hw/hns/
Dhns_roce_cq.c43 u32 least_load = bank[0].inuse; in get_least_load_bankid_for_cq()
49 bankcnt = bank[i].inuse; in get_least_load_bankid_for_cq()
78 bank->inuse++; in alloc_cqn()
100 bank->inuse--; in free_cqn()
522 cq_table->bank[get_cq_bankid(i)].inuse++; in hns_roce_init_cq_table()
/drivers/staging/media/zoran/
Dzoran_driver.c867 if (zr->inuse[0]) { in zr_set_buf()
868 buf = zr->inuse[0]; in zr_set_buf()
880 zr->inuse[0] = NULL; in zr_set_buf()
907 zr->inuse[0] = buf; in zr_set_buf()
935 zr->inuse[j] = NULL; in zr_vb2_start_streaming()
987 if (!zr->inuse[j]) in zr_vb2_stop_streaming()
989 buf = zr->inuse[j]; in zr_vb2_stop_streaming()
992 zr->inuse[j] = NULL; in zr_vb2_stop_streaming()
Dzoran_device.c768 zr->inuse[i] = buf; in zoran_feed_stat_com()
782 zr->inuse[i] = buf; in zoran_feed_stat_com()
783 zr->inuse[i + 1] = NULL; in zoran_feed_stat_com()
828 buf = zr->inuse[i]; in zoran_reap_stat_com()
846 zr->inuse[i] = NULL; in zoran_reap_stat_com()
Dzoran.h297 struct zr_buffer *inuse[BUZ_NUM_STAT_COM * 2]; member
/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_smp.c355 int inuse = bitmap_weight(cs, smp->blk_cnt); in mdp5_smp_dump() local
358 pipe2name(pipe), j, inuse, in mdp5_smp_dump()
361 total += inuse; in mdp5_smp_dump()
/drivers/macintosh/
Dadb.c611 int inuse; member
625 if (!state->inuse) { in adb_write_done()
685 state->inuse = 1; in adb_open()
706 state->inuse = 0; in adb_release()
/drivers/isdn/mISDN/
Ddsp_pipeline.c265 pipeline->inuse = 1; in dsp_pipeline_build()
267 pipeline->inuse = 0; in dsp_pipeline_build()
Ddsp.h140 int inuse; member
Ddsp_dtmf.c84 if (dsp->pipeline.inuse) { in dsp_dtmf_hardware()
/drivers/atm/
Dhe.c1505 he_dev->cs_stper[i].inuse = 0; in he_start()
2210 if (he_dev->cs_stper[reg].inuse == 0 || in he_open()
2223 ++he_dev->cs_stper[reg].inuse; in he_open()
2471 if (he_dev->cs_stper[reg].inuse == 0) in he_close()
2474 --he_dev->cs_stper[reg].inuse; in he_close()
2759 inuse = rbpl_head - rbpl_tail; in he_proc_read()
2760 if (inuse < 0) in he_proc_read()
2761 inuse += CONFIG_RBPL_SIZE * sizeof(struct he_rbp); in he_proc_read()
2762 inuse /= sizeof(struct he_rbp); in he_proc_read()
2766 CONFIG_RBPL_SIZE, inuse); in he_proc_read()
[all …]
/drivers/char/ipmi/
Dipmi_msghandler.c233 unsigned int inuse : 1; member
702 if ((intf->seq_table[i].inuse) in clean_up_interface_data()
1012 if (!intf->seq_table[i].inuse) in intf_next_seq()
1016 if (!intf->seq_table[i].inuse) { in intf_next_seq()
1027 intf->seq_table[i].inuse = 1; in intf_next_seq()
1063 if (intf->seq_table[seq].inuse) { in intf_find_seq()
1070 intf->seq_table[seq].inuse = 0; in intf_find_seq()
1098 if ((intf->seq_table[seq].inuse) in intf_start_seq_timer()
1128 if ((intf->seq_table[seq].inuse) in intf_err_seq()
1132 ent->inuse = 0; in intf_err_seq()
[all …]
/drivers/rapidio/
Drio_cm.c172 void *inuse[RIOCM_RX_RING_SIZE]; member
838 if (ch->rx_ring.inuse[i] == buf) { in riocm_ch_free_rxbuf()
839 ch->rx_ring.inuse[i] = NULL; in riocm_ch_free_rxbuf()
909 if (ch->rx_ring.inuse[i] == NULL) { in riocm_ch_receive()
910 ch->rx_ring.inuse[i] = rxmsg; in riocm_ch_receive()
1373 if (ch->rx_ring.inuse[i] != NULL) { in riocm_ch_free()
1374 kfree(ch->rx_ring.inuse[i]); in riocm_ch_free()

12