Home
last modified time | relevance | path

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

1234

/openbmc/linux/arch/powerpc/include/asm/
H A Dpmc.h23 static inline void ppc_set_pmu_inuse(int inuse) in ppc_set_pmu_inuse() argument
28 get_lppaca()->pmcregs_in_use = inuse; in ppc_set_pmu_inuse()
32 get_paca()->pmcregs_in_use = inuse; in ppc_set_pmu_inuse()
48 static inline void ppc_set_pmu_inuse(int inuse) { } in ppc_set_pmu_inuse() argument
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_devlink.c240 return ocelot->ops->wm_stat(res_stat, inuse, maxuse); in ocelot_wm_status()
516 *inuse = (val & GENMASK(23, 12)) >> 12; in ocelot_wm_stat()
777 u32 inuse, maxuse; in ocelot_sb_occ_max_clear() local
785 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
787 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
790 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
792 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
799 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
801 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
804 &inuse, &maxuse); in ocelot_sb_occ_max_clear()
[all …]
/openbmc/linux/drivers/watchdog/
H A 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()
H A 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()
H A 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()
H A 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()
/openbmc/linux/drivers/media/pci/saa7164/
H A 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()
257 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_wait()
305 if (dev->cmds[i].inuse == 1) { in saa7164_cmd_signal()
315 if ((dev->cmds[i].inuse == 1) && ((i == 0) || in saa7164_cmd_signal()
/openbmc/linux/drivers/iio/dummy/
H A 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()
/openbmc/linux/block/
H A Dblk-iocost.c487 u32 inuse; member
1101 inuse = clamp_t(u32, inuse, 1, active); in __propagate_weights()
1108 if (active == iocg->active && inuse == iocg->inuse) in __propagate_weights()
1118 parent->child_inuse_sum += (s32)(inuse - child->inuse); in __propagate_weights()
1121 child->inuse = inuse; in __propagate_weights()
1141 inuse = parent_inuse; in __propagate_weights()
1197 u32 inuse = READ_ONCE(child->inuse); in current_hweight() local
1237 child_inuse_sum = parent->child_inuse_sum + inuse - child->inuse; in current_hweight_max()
1988 u32 inuse, wpt, wptp; in transfer_surpluses() local
2032 u32 inuse; in transfer_surpluses() local
[all …]
/openbmc/linux/drivers/gpu/ipu-v3/
H A 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()
H A 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()
/openbmc/linux/drivers/net/ethernet/altera/
H A 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()
/openbmc/linux/net/atm/
H A Dresources.c80 struct atm_dev *dev, *inuse; in atm_dev_register() local
89 inuse = __atm_dev_lookup(number); in atm_dev_register()
90 if (inuse) { in atm_dev_register()
91 atm_dev_put(inuse); in atm_dev_register()
99 while ((inuse = __atm_dev_lookup(dev->number))) { in atm_dev_register()
100 atm_dev_put(inuse); in atm_dev_register()
/openbmc/linux/sound/soc/sh/
H A Dssi.c67 int inuse; member
93 if (ssi->inuse) { in ssi_startup()
97 ssi->inuse = 1; in ssi_startup()
106 ssi->inuse = 0; in ssi_shutdown()
/openbmc/linux/net/bridge/
H A Dbr_if.c404 unsigned long *inuse; in find_portno() local
406 inuse = bitmap_zalloc(BR_MAX_PORTS, GFP_KERNEL); in find_portno()
407 if (!inuse) in find_portno()
410 __set_bit(0, inuse); /* zero is reserved */ in find_portno()
412 __set_bit(p->port_no, inuse); in find_portno()
414 index = find_first_zero_bit(inuse, BR_MAX_PORTS); in find_portno()
415 bitmap_free(inuse); in find_portno()
/openbmc/linux/include/trace/events/
H A Diocost.h31 __field(u32, inuse)
46 __entry->inuse = iocg->inuse;
57 __entry->vtime, __entry->inuse, __entry->weight,
/openbmc/linux/mm/
H A Dslub.c760 return s->inuse; in get_info_end()
2032 slab->inuse = 0; in allocate_slab()
2162 slab->inuse++; in alloc_single_from_partial()
2193 slab->inuse = 1; in alloc_single_from_new_slab()
3551 slab->inuse -= cnt; in free_to_partial_list()
3632 new.inuse -= cnt; in __slab_free()
4278 slab->inuse = 1; in early_kmem_cache_node_alloc()
4411 s->inuse = size; in calculate_sizes()
5103 s->inuse = max(s->inuse, ALIGN(size, sizeof(void *))); in __kmem_cache_alias()
5136 return slab->inuse; in count_inuse()
[all …]
/openbmc/qemu/subprojects/libvduse/
H A Dlibvduse.c104 unsigned int inuse; member
252 vq->inuse++; in vduse_queue_check_inflights()
256 vq->shadow_avail_idx = vq->last_avail_idx = vq->inuse + vq->used_idx; in vduse_queue_check_inflights()
258 if (vq->inuse) { in vduse_queue_check_inflights()
259 vq->resubmit_list = calloc(vq->inuse, sizeof(VduseVirtqInflightDesc)); in vduse_queue_check_inflights()
550 !vq->inuse && vduse_queue_empty(vq)) { in vduse_queue_should_notify()
769 if (vq->inuse >= vq->vring.num) { in vduse_queue_pop()
770 fprintf(stderr, "Virtqueue size exceeded: %d\n", vq->inuse); in vduse_queue_pop()
788 vq->inuse++; in vduse_queue_pop()
839 vq->inuse -= count; in vduse_queue_flush()
[all …]
/openbmc/linux/net/9p/
H A Dtrans_virtio.c65 bool inuse; member
111 chan->inuse = false; in p9_virtio_close()
625 chan->inuse = false; in p9_virtio_probe()
706 if (!chan->inuse) { in p9_virtio_create()
707 chan->inuse = true; in p9_virtio_create()
746 while (chan->inuse) { in p9_virtio_remove()
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_cq.c42 u32 least_load = bank[0].inuse; in get_least_load_bankid_for_cq()
48 bankcnt = bank[i].inuse; in get_least_load_bankid_for_cq()
77 bank->inuse++; in alloc_cqn()
99 bank->inuse--; in free_cqn()
518 cq_table->bank[get_cq_bankid(i)].inuse++; in hns_roce_init_cq_table()
/openbmc/qemu/block/
H A Dparallels.h49 uint32_t inuse; member
/openbmc/linux/tools/cgroup/
H A Diocost_monitor.py151 self.inuse = iocg.inuse.value_() / WEIGHT_ONE
181 'weight_inuse' : self.inuse,
/openbmc/linux/drivers/media/pci/zoran/
H A Dzoran_driver.c805 if (zr->inuse[0]) { in zr_set_buf()
806 buf = zr->inuse[0]; in zr_set_buf()
818 zr->inuse[0] = NULL; in zr_set_buf()
846 zr->inuse[0] = buf; in zr_set_buf()
874 zr->inuse[j] = NULL; in zr_vb2_start_streaming()
926 if (!zr->inuse[j]) in zr_vb2_stop_streaming()
928 buf = zr->inuse[j]; in zr_vb2_stop_streaming()
931 zr->inuse[j] = NULL; in zr_vb2_stop_streaming()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dptp.c27 bool inuse : 1; member
43 WARN_ON_ONCE(tracker->inuse); in mlx5e_ptp_port_ts_cqe_list_add()
44 tracker->inuse = true; in mlx5e_ptp_port_ts_cqe_list_add()
55 WARN_ON_ONCE(!tracker->inuse); in mlx5e_ptp_port_ts_cqe_list_remove()
56 tracker->inuse = false; in mlx5e_ptp_port_ts_cqe_list_remove()
169 WARN_ON_ONCE(!pos->inuse); in mlx5e_ptpsq_mark_ts_cqes_undelivered()
170 pos->inuse = false; in mlx5e_ptpsq_mark_ts_cqes_undelivered()
191 if (likely(pending_cqe_list->nodes[metadata_id].inuse)) { in mlx5e_ptp_handle_ts_cqe()
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A 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()

1234