Home
last modified time | relevance | path

Searched refs:empty (Results 1 – 25 of 87) sorted by relevance

1234

/drivers/power/supply/
A Dapm_power.c120 union power_supply_propval empty; in do_calculate_time() local
175 if (_MPSY_PROP(empty_prop, &empty)) { in do_calculate_time()
177 if (_MPSY_PROP(empty_design_prop, &empty)) in do_calculate_time()
178 empty.intval = 0; in do_calculate_time()
217 union power_supply_propval empty, full, cur; in calculate_capacity() local
262 if (_MPSY_PROP(empty_prop, &empty)) { in calculate_capacity()
264 if (_MPSY_PROP(empty_design_prop, &empty)) in calculate_capacity()
265 empty.intval = 0; in calculate_capacity()
268 if (full.intval - empty.intval) in calculate_capacity()
269 ret = ((cur.intval - empty.intval) * 100L) / in calculate_capacity()
[all …]
A Dcpcap-battery.c543 *empty, *full; in cpcap_battery_update_status() local
576 empty = cpcap_battery_get_empty(ddata); in cpcap_battery_update_status()
577 if (empty->voltage && empty->voltage != -1) { in cpcap_battery_update_status()
578 empty->voltage = -1; in cpcap_battery_update_status()
582 empty->voltage = -1; in cpcap_battery_update_status()
583 empty->counter_uah = in cpcap_battery_update_status()
587 empty = cpcap_battery_get_empty(ddata); in cpcap_battery_update_status()
588 memcpy(empty, latest, sizeof(*empty)); in cpcap_battery_update_status()
749 if (!empty->voltage) in cpcap_battery_get_property()
755 empty->voltage = 0; in cpcap_battery_get_property()
[all …]
/drivers/net/wireguard/
A Dqueueing.c51 #define STUB(queue) ((struct sk_buff *)&queue->empty)
60 offsetof(struct sk_buff, next) != offsetof(struct prev_queue, empty.next) - in wg_prev_queue_init()
61 offsetof(struct prev_queue, empty) || in wg_prev_queue_init()
62 offsetof(struct sk_buff, prev) != offsetof(struct prev_queue, empty.prev) - in wg_prev_queue_init()
63 offsetof(struct prev_queue, empty)); in wg_prev_queue_init()
/drivers/crypto/intel/qat/qat_common/
A Dadf_transport_debug.c56 int head, tail, empty; in adf_ring_show() local
62 empty = csr_ops->read_csr_e_stat(csr, bank->bank_number); in adf_ring_show()
70 head, tail, (empty & 1 << ring->ring_number) in adf_ring_show()
164 int head, tail, empty; in adf_bank_show() local
173 empty = csr_ops->read_csr_e_stat(csr, bank->bank_number); in adf_bank_show()
178 (empty & 1 << ring->ring_number) >> in adf_bank_show()
/drivers/misc/mei/
A Ddma-ring.c220 u32 wr_idx, rd_idx, hbuf_depth, empty; in mei_dma_ring_empty_slots() local
234 empty = rd_idx - wr_idx; in mei_dma_ring_empty_slots()
236 empty = hbuf_depth - (wr_idx - rd_idx); in mei_dma_ring_empty_slots()
238 return empty; in mei_dma_ring_empty_slots()
/drivers/gpu/drm/msm/adreno/
A Da5xx_preempt.c64 bool empty; in get_next_ring() local
68 empty = (get_wptr(ring) == gpu->funcs->get_rptr(gpu, ring)); in get_next_ring()
69 if (!empty && ring == a5xx_gpu->cur_ring) in get_next_ring()
70 empty = ring->memptrs->fence == a5xx_gpu->last_seqno[i]; in get_next_ring()
73 if (!empty) in get_next_ring()
A Da6xx_preempt.c72 bool empty; in get_next_ring() local
76 empty = (get_wptr(ring) == gpu->funcs->get_rptr(gpu, ring)); in get_next_ring()
77 if (!empty && ring == a6xx_gpu->cur_ring) in get_next_ring()
78 empty = ring->memptrs->fence == a6xx_gpu->last_seqno[i]; in get_next_ring()
81 if (!empty) in get_next_ring()
/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_sdlb.c237 u32 first, u32 next, bool empty) in sparx5_sdlb_group_link() argument
242 if (empty) in sparx5_sdlb_group_link()
278 bool empty = false; in sparx5_sdlb_group_del() local
288 empty = true; in sparx5_sdlb_group_del()
302 return sparx5_sdlb_group_link(sparx5, group, idx, first, next, empty); in sparx5_sdlb_group_del()
A Dsparx5_qos.c242 u32 se_first, u32 idx, u32 idx_next, bool empty) in sparx5_lg_conf_set() argument
249 if (empty) in sparx5_lg_conf_set()
274 bool empty = false; in sparx5_lg_del() local
281 empty = true; in sparx5_lg_del()
296 empty); in sparx5_lg_del()
/drivers/usb/musb/
A Dmusb_cppi41.c200 bool empty; in cppi41_recheck_tx_req() local
203 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_recheck_tx_req()
204 if (empty) { in cppi41_recheck_tx_req()
232 bool empty; in cppi41_dma_callback() local
272 empty = true; in cppi41_dma_callback()
274 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_dma_callback()
277 if (!cppi41_channel->is_tx || empty) { in cppi41_dma_callback()
303 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_dma_callback()
304 if (empty) { in cppi41_dma_callback()
/drivers/net/ethernet/hisilicon/hibmcge/
A Dhbg_hw.c294 u32 full, u32 empty, enum hbg_dir dir) in hbg_hw_set_fifo_thrsld() argument
299 value |= FIELD_PREP(HBG_REG_FIFO_THRSLD_EMPTY_M, empty); in hbg_hw_set_fifo_thrsld()
309 u32 full, u32 empty, enum hbg_dir dir) in hbg_hw_set_cfg_fifo_thrsld() argument
317 value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_TX_EMPTY_M, empty); in hbg_hw_set_cfg_fifo_thrsld()
322 value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_RX_EMPTY_M, empty); in hbg_hw_set_cfg_fifo_thrsld()
/drivers/staging/media/ipu7/
A Dipu7-syscom.c34 bool empty = (write_index == read_index); in ipu7_syscom_get_token() local
36 if (!empty) in ipu7_syscom_get_token()
/drivers/input/joystick/iforce/
A Diforce-packets.c32 int empty; in iforce_send_packet() local
48 empty = head == tail; in iforce_send_packet()
73 if (empty) in iforce_send_packet()
/drivers/usb/usbip/
A Dvhci_rx.c186 int empty = 0; in vhci_priv_tx_empty() local
190 empty = list_empty(&vdev->priv_rx); in vhci_priv_tx_empty()
193 return empty; in vhci_priv_tx_empty()
/drivers/media/platform/ti/omap3isp/
A Dispstat.c181 stat->buf[i].empty = 1; in isp_stat_buf_clear()
201 if (!look_empty && curr->empty) in __isp_stat_buf_find()
205 if (curr->empty) { in __isp_stat_buf_find()
246 stat->active_buf->empty = 0; in isp_stat_buf_queue()
297 buf->empty = 1; in isp_stat_buf_get()
352 buf->empty = 1; in isp_stat_bufs_free()
445 buf->empty = 1; in isp_stat_bufs_alloc()
503 buf->empty = 1; in omap3isp_stat_request_statistics()
/drivers/infiniband/core/
A Dcache.c472 int empty = pempty ? -1 : 0; in find_gid() local
474 while (i < table->sz && (found < 0 || empty < 0)) { in find_gid()
486 if (pempty && empty < 0) { in find_gid()
498 empty = curr_index; in find_gid()
535 *pempty = empty; in find_gid()
552 int empty; in __ib_cache_gid_add() local
566 ix = find_gid(table, gid, attr, default_gid, mask, &empty); in __ib_cache_gid_add()
570 if (empty < 0) { in __ib_cache_gid_add()
575 attr->index = empty; in __ib_cache_gid_add()
/drivers/media/platform/qcom/venus/
A Dhfi.c86 int ret = 0, empty; in hfi_core_deinit() local
93 empty = list_empty(&core->instances); in hfi_core_deinit()
95 if (!empty && !blocking) { in hfi_core_deinit()
100 if (!empty) { in hfi_core_deinit()
/drivers/sh/maple/
A Dmaple.c60 static bool empty[MAPLE_PORTS]; variable
472 if (checked[x] && empty[x]) { in maple_vblank_handler()
565 empty[mdev->port] = true; in maple_response_none()
589 empty[mdev->port] = false; in maple_response_devinfo()
841 empty[i] = false; in maple_bus_init()
/drivers/of/
A Dkunit_overlay_test.dtso7 compatible = "test,empty";
A Dempty_root.dts8 * support 64-bit addresses and sizes on systems using this empty root
/drivers/char/xillybus/
A Dxillybus_core.c700 int empty, reached_eof, exhausted, ready; in xillybus_read() local
720 empty = channel->wr_empty; in xillybus_read()
721 ready = !empty || channel->wr_ready; in xillybus_read()
723 if (!empty) { in xillybus_read()
770 if (!empty) { /* Go on, now without the spinlock */ in xillybus_read()
1022 int empty; in xillybus_myflush() local
1135 empty = !channel->rd_full; in xillybus_myflush()
1139 if (empty) in xillybus_myflush()
/drivers/net/wireless/st/cw1200/
A Dqueue.c533 bool empty = true; in cw1200_queue_stats_is_empty() local
537 empty = stats->num_queued == 0; in cw1200_queue_stats_is_empty()
543 empty = false; in cw1200_queue_stats_is_empty()
551 return empty; in cw1200_queue_stats_is_empty()
/drivers/infiniband/ulp/rtrs/
A DREADME95 6. Server and client exchange periodically heartbeat messages (empty rdma
129 2. When confirming a write request server sends an "empty" rdma message with
147 2. When confirming a write request server sends an "empty" rdma message with
169 attaches an invalidation message if requested and finally an "empty" rdma
190 attaches an invalidation message if requested and finally an "empty" rdma
/drivers/net/ethernet/chelsio/cxgb3/
A Dadapter.h118 unsigned long empty; /* # of times queue ran out of buffers */ member
154 unsigned long empty; /* # of times queue ran out of credits */ member
/drivers/scsi/arm/
A Dqueue.c116 goto empty; in __queue_add()
133 empty: in __queue_add()

Completed in 57 milliseconds

1234