Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 172) sorted by relevance

1234567

/drivers/cpufreq/
Damd_freq_sensitivity.c32 u64 actual; member
45 struct msr actual, reference; in amd_powersave_bias_target() local
55 &actual.l, &actual.h); in amd_powersave_bias_target()
58 actual.h &= 0x00ffffff; in amd_powersave_bias_target()
62 if (actual.q < data->actual || reference.q < data->reference) { in amd_powersave_bias_target()
67 d_actual = actual.q - data->actual; in amd_powersave_bias_target()
104 data->actual = actual.q; in amd_powersave_bias_target()
/drivers/mtd/spi-nor/
Dsst.c124 size_t actual = 0; in sst_nor_write() local
153 actual++; in sst_nor_write()
157 for (; actual < len - 1; actual += 2) { in sst_nor_write()
161 ret = spi_nor_write_data(nor, to, 2, buf + actual); in sst_nor_write()
182 if (actual != len) { in sst_nor_write()
188 ret = spi_nor_write_data(nor, to, 1, buf + actual); in sst_nor_write()
196 actual += 1; in sst_nor_write()
201 *retlen += actual; in sst_nor_write()
/drivers/usb/misc/
Dusb_u132.h71 int halted, int skipped, int actual, int non_null));
76 int halted, int skipped, int actual, int non_null));
81 int halted, int skipped, int actual, int non_null));
86 int halted, int skipped, int actual, int non_null));
91 int halted, int skipped, int actual, int non_null));
/drivers/net/hamradio/
D6pack.c143 int actual, when = sp->slottime; in sp_xmit_on_air() local
152 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air()
153 sp->xleft -= actual; in sp_xmit_on_air()
154 sp->xhead += actual; in sp_xmit_on_air()
168 int actual, count; in sp_encaps() local
219 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps()
220 sp->xleft = count - actual; in sp_encaps()
221 sp->xhead = sp->xbuff + actual; in sp_encaps()
398 int actual; in sixpack_write_wakeup() local
413 actual = tty->ops->write(tty, sp->xhead, sp->xleft); in sixpack_write_wakeup()
[all …]
Dmkiss.c429 int actual, count; in ax_encaps() local
510 actual = ax->tty->ops->write(ax->tty, ax->xbuff, count); in ax_encaps()
512 dev->stats.tx_bytes += actual; in ax_encaps()
515 ax->xleft = count - actual; in ax_encaps()
516 ax->xhead = ax->xbuff + actual; in ax_encaps()
915 int actual; in mkiss_write_wakeup() local
930 actual = tty->ops->write(tty, ax->xhead, ax->xleft); in mkiss_write_wakeup()
931 ax->xleft -= actual; in mkiss_write_wakeup()
932 ax->xhead += actual; in mkiss_write_wakeup()
/drivers/staging/emxx_udc/
Demxx_udc.c174 udc->ep0_req.req.actual = 0; in _nbu2ss_create_ep0_packet()
495 count = req->req.actual % 4; in _nbu2ss_dma_unmap_single()
498 p += (req->req.actual - count); in _nbu2ss_dma_unmap_single()
507 req->req.actual & 0xfffffffc); in _nbu2ss_dma_unmap_single()
528 p += (req->req.actual - count); in _nbu2ss_dma_unmap_single()
669 if (req->req.actual == req->req.length) { in _nbu2ss_ep0_in_transfer()
670 if ((req->req.actual % EP0_PACKETSIZE) == 0) { in _nbu2ss_ep0_in_transfer()
688 i_remain_size = req->req.length - req->req.actual; in _nbu2ss_ep0_in_transfer()
690 p_buffer += req->req.actual; in _nbu2ss_ep0_in_transfer()
729 i_remain_size = req->req.length - req->req.actual; in _nbu2ss_ep0_out_transfer()
[all …]
/drivers/usb/host/
Dehci-timer.c97 unsigned actual, want; in ehci_poll_ASS() local
104 actual = ehci_readl(ehci, &ehci->regs->status) & STS_ASS; in ehci_poll_ASS()
106 if (want != actual) { in ehci_poll_ASS()
114 want, actual); in ehci_poll_ASS()
143 unsigned actual, want; in ehci_poll_PSS() local
150 actual = ehci_readl(ehci, &ehci->regs->status) & STS_PSS; in ehci_poll_PSS()
152 if (want != actual) { in ehci_poll_PSS()
160 want, actual); in ehci_poll_PSS()
/drivers/usb/gadget/udc/
Daspeed_udc.c287 req, req->req.actual, req->req.length, in ast_udc_done()
535 last = req->req.length - req->req.actual; in ast_udc_epn_kick()
541 ast_ep_write(ep, req->req.dma + req->req.actual, AST_UDC_EP_DMA_BUFF); in ast_udc_epn_kick()
558 last = req->req.length - req->req.actual; in ast_udc_epn_kick_desc()
563 "dma", req->req.dma + req->req.actual, in ast_udc_epn_kick_desc()
564 req->req.actual, req->req.length, in ast_udc_epn_kick_desc()
567 if (!ast_dma_descriptor_setup(ep, req->req.dma + req->req.actual, in ast_udc_epn_kick_desc()
589 last = req->req.length - req->req.actual; in ast_udc_ep0_queue()
592 ast_udc_write(udc, req->req.dma + req->req.actual, in ast_udc_ep0_queue()
599 "dma", req->req.dma + req->req.actual, in ast_udc_ep0_queue()
[all …]
Dudc-xilinx.c386 src = req->usb_req.dma + req->usb_req.actual; in xudc_dma_send()
440 dst = req->usb_req.dma + req->usb_req.actual; in xudc_dma_receive()
613 buf = req->usb_req.buf + req->usb_req.actual; in xudc_read_fifo()
615 bufferspace = req->usb_req.length - req->usb_req.actual; in xudc_read_fifo()
635 req->usb_req.actual += min(count, bufferspace); in xudc_read_fifo()
638 req->usb_req.actual, req->usb_req.length); in xudc_read_fifo()
641 if ((req->usb_req.actual == req->usb_req.length) || is_short) { in xudc_read_fifo()
645 req->usb_req.actual, in xudc_read_fifo()
689 buf = req->usb_req.buf + req->usb_req.actual; in xudc_write_fifo()
691 length = req->usb_req.length - req->usb_req.actual; in xudc_write_fifo()
[all …]
Dgoku_udc.c322 req->req.actual, req->req.length); in done()
339 length = min(req->req.length - req->req.actual, max); in write_packet()
340 req->req.actual += length; in write_packet()
358 buf = req->req.buf + req->req.actual; in write_fifo()
384 if (likely(req->req.length != req->req.actual) in write_fifo()
394 req->req.length - req->req.actual, req); in write_fifo()
417 buf = req->req.buf + req->req.actual; in read_fifo()
431 bufferspace = req->req.length - req->req.actual; in read_fifo()
449 req->req.actual += size; in read_fifo()
454 req, req->req.actual, req->req.length); in read_fifo()
[all …]
Dfotg210-udc.c339 buffer = req->req.buf + req->req.actual; in fotg210_start_dma()
342 if (length > req->req.length - req->req.actual) in fotg210_start_dma()
343 length = req->req.length - req->req.actual; in fotg210_start_dma()
346 buffer = req->req.buf + req->req.actual; in fotg210_start_dma()
347 if (req->req.length - req->req.actual > ep->ep.maxpacket) in fotg210_start_dma()
350 length = req->req.length - req->req.actual; in fotg210_start_dma()
369 req->req.actual += length; in fotg210_start_dma()
383 if (req->req.length == req->req.actual) in fotg210_ep0_queue()
414 req->req.actual = 0; in fotg210_ep_queue()
718 if (req->status || req->actual != req->length) { in fotg210_ep0_complete()
[all …]
/drivers/usb/renesas_usbhs/
Dfifo.c79 pkt->actual = 0; in usbhs_pkt_push()
423 pkt->actual = pkt->length; in usbhs_dcp_dir_switch_done()
535 buf = pkt->buf + pkt->actual; in usbhsf_pio_try_push()
536 len = pkt->length - pkt->actual; in usbhsf_pio_try_push()
564 pkt->actual += total_len; in usbhsf_pio_try_push()
566 if (pkt->actual < pkt->length) in usbhsf_pio_try_push()
585 pkt->length, pkt->actual, *is_done, pkt->zero); in usbhsf_pio_try_push()
673 buf = pkt->buf + pkt->actual; in usbhsf_pio_try_pop()
674 len = pkt->length - pkt->actual; in usbhsf_pio_try_pop()
683 pkt->actual += total_len; in usbhsf_pio_try_pop()
[all …]
/drivers/net/can/slcan/
Dslcan-core.c484 int actual, i; in slcan_encaps() local
537 actual = sl->tty->ops->write(sl->tty, sl->xbuff, pos - sl->xbuff); in slcan_encaps()
538 sl->xleft = (pos - sl->xbuff) - actual; in slcan_encaps()
539 sl->xhead = sl->xbuff + actual; in slcan_encaps()
546 int actual; in slcan_transmit() local
575 actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft); in slcan_transmit()
576 sl->xleft -= actual; in slcan_transmit()
577 sl->xhead += actual; in slcan_transmit()
628 int ret, actual, n; in slcan_transmit_cmd() local
638 actual = sl->tty->ops->write(sl->tty, sl->xbuff, n); in slcan_transmit_cmd()
[all …]
/drivers/usb/musb/
Dmusb_gadget.c252 (int)(request->length - request->actual)); in txstate()
276 request_size = min_t(size_t, request->length - request->actual, in txstate()
292 request->dma + request->actual, request_size); in txstate()
360 request->dma + request->actual, in txstate()
373 request->dma + request->actual, in txstate()
386 (u8 *) (request->buf + request->actual)); in txstate()
387 request->actual += fifo_count; in txstate()
396 request->actual, request->length, in txstate()
465 request->actual += musb_ep->dma->actual_len; in musb_g_tx()
476 && (request->actual == request->length)) { in musb_g_tx()
[all …]
Dmusb_gadget_ep0.c474 void *buf = req->buf + req->actual; in ep0_rxstate()
475 unsigned len = req->length - req->actual; in ep0_rxstate()
485 req->actual += count; in ep0_rxstate()
488 if (count < 64 || req->actual == req->length) { in ep0_rxstate()
535 fifo_src = (u8 *) request->buf + request->actual; in ep0_txstate()
537 request->length - request->actual); in ep0_txstate()
539 request->actual += fifo_count; in ep0_txstate()
543 || (request->actual == request->length in ep0_txstate()
921 req->request.actual = 0; in musb_g_ep0_queue()
/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_lvds_connector.c66 long actual, requested; in mdp4_lvds_connector_mode_valid() local
69 actual = mdp4_lcdc_round_pixclk(encoder, requested); in mdp4_lvds_connector_mode_valid()
71 DBG("requested=%ld, actual=%ld", requested, actual); in mdp4_lvds_connector_mode_valid()
73 if (actual != requested) in mdp4_lvds_connector_mode_valid()
/drivers/i2c/busses/
Di2c-diolan-u2c.c99 int actual; in diolan_usb_transfer() local
107 dev->obuffer, dev->olen, &actual, in diolan_usb_transfer()
117 sizeof(dev->ibuffer), &actual, in diolan_usb_transfer()
127 if (ret == 0 && actual > 0) { in diolan_usb_transfer()
128 switch (dev->ibuffer[actual - 1]) { in diolan_usb_transfer()
142 ret = actual - 1; in diolan_usb_transfer()
203 int actual = 0; in diolan_flush_input() local
208 dev->ibuffer, sizeof(dev->ibuffer), &actual, in diolan_flush_input()
210 if (ret < 0 || actual == 0) in diolan_flush_input()
/drivers/usb/gadget/udc/aspeed-vhub/
Dep0.c192 req->req.actual, req->req.length); in ast_vhub_ep0_do_send()
203 chunk = req->req.length - req->req.actual; in ast_vhub_ep0_do_send()
210 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); in ast_vhub_ep0_do_send()
217 memcpy(ep->buf, req->req.buf + req->req.actual, chunk); in ast_vhub_ep0_do_send()
225 req->req.actual += chunk; in ast_vhub_ep0_do_send()
243 remain = req->req.length - req->req.actual; in ast_vhub_ep0_do_receive()
262 memcpy(req->req.buf + req->req.actual, ep->buf, len); in ast_vhub_ep0_do_receive()
263 req->req.actual += len; in ast_vhub_ep0_do_receive()
400 u_req->actual = 0; in ast_vhub_ep0_queue()
/drivers/usb/class/
Dusbtmc.c272 int actual; in usbtmc_ioctl_abort_bulk_in_tag() local
324 actual = 0; in usbtmc_ioctl_abort_bulk_in_tag()
329 &actual, 300); in usbtmc_ioctl_abort_bulk_in_tag()
332 buffer, actual, true); in usbtmc_ioctl_abort_bulk_in_tag()
342 if (actual == USBTMC_BUFSIZE) in usbtmc_ioctl_abort_bulk_in_tag()
714 int actual; in usbtmc488_ioctl_trigger() local
728 &actual, file_data->timeout); in usbtmc488_ioctl_trigger()
1315 int actual; in send_request_dev_dep_msg_in() local
1342 &actual, file_data->timeout); in send_request_dev_dep_msg_in()
1369 int actual; in usbtmc_read() local
[all …]
/drivers/gpu/drm/i915/display/
Dintel_cdclk.c2151 if (!intel_cdclk_changed(&old_cdclk_state->actual, in intel_set_cdclk_pre_plane_update()
2152 &new_cdclk_state->actual)) in intel_set_cdclk_pre_plane_update()
2156 old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) { in intel_set_cdclk_pre_plane_update()
2159 intel_set_cdclk(dev_priv, &new_cdclk_state->actual, pipe); in intel_set_cdclk_pre_plane_update()
2180 if (!intel_cdclk_changed(&old_cdclk_state->actual, in intel_set_cdclk_post_plane_update()
2181 &new_cdclk_state->actual)) in intel_set_cdclk_post_plane_update()
2185 old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) { in intel_set_cdclk_post_plane_update()
2188 intel_set_cdclk(dev_priv, &new_cdclk_state->actual, pipe); in intel_set_cdclk_post_plane_update()
2461 cdclk_state->actual.cdclk = cdclk; in vlv_modeset_calc_cdclk()
2462 cdclk_state->actual.voltage_level = in vlv_modeset_calc_cdclk()
[all …]
/drivers/gpu/drm/msm/hdmi/
Dhdmi_bridge.c276 long actual, requested; in msm_hdmi_bridge_mode_valid() local
285 actual = kms->funcs->round_pixclk(kms, in msm_hdmi_bridge_mode_valid()
288 actual = clk_round_rate(hdmi->pwr_clks[0], requested); in msm_hdmi_bridge_mode_valid()
290 actual = requested; in msm_hdmi_bridge_mode_valid()
292 DBG("requested=%ld, actual=%ld", requested, actual); in msm_hdmi_bridge_mode_valid()
294 if (actual != requested) in msm_hdmi_bridge_mode_valid()
/drivers/hwtracing/coresight/
Dcoresight-tmc-core.c182 ssize_t actual; in tmc_read() local
185 actual = tmc_get_sysfs_trace(drvdata, *ppos, len, &bufp); in tmc_read()
186 if (actual <= 0) in tmc_read()
189 if (copy_to_user(data, bufp, actual)) { in tmc_read()
195 *ppos += actual; in tmc_read()
196 dev_dbg(&drvdata->csdev->dev, "%zu bytes copied\n", actual); in tmc_read()
198 return actual; in tmc_read()
/drivers/usb/mtu3/
Dmtu3_gadget_ep0.c526 void *buf = req->buf + req->actual; in ep0_rx_state()
527 unsigned int len = req->length - req->actual; in ep0_rx_state()
536 req->actual += count; in ep0_rx_state()
540 if (count < maxp || req->actual == req->length) { in ep0_rx_state()
581 src = (u8 *)req->buf + req->actual; in ep0_tx_state()
582 count = min(maxp, req->length - req->actual); in ep0_tx_state()
587 __func__, req->actual, req->length, count, maxp, req->zero); in ep0_tx_state()
589 req->actual += count; in ep0_tx_state()
592 || ((req->actual == req->length) && !req->zero)) in ep0_tx_state()
799 mreq->request.actual = 0; in ep0_queue()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_arm.c400 int actual) in free_pagelist() argument
407 __func__, pagelistinfo->pagelist, actual); in free_pagelist()
426 tail_bytes = (pagelist->offset + actual) & in free_pagelist()
429 if ((actual >= 0) && (head_bytes != 0)) { in free_pagelist()
430 if (head_bytes > actual) in free_pagelist()
431 head_bytes = actual; in free_pagelist()
438 if ((actual >= 0) && (head_bytes < actual) && in free_pagelist()
441 (pagelist->offset + actual) & in free_pagelist()
647 if (bulk && bulk->remote_data && bulk->actual) in vchiq_complete_bulk()
649 bulk->actual); in vchiq_complete_bulk()
[all …]
/drivers/watchdog/
Dgxp-wdt.c62 u32 actual; in gxp_wdt_set_timeout() local
65 actual = min(timeout * 100, wdd->max_hw_heartbeat_ms / 10); in gxp_wdt_set_timeout()
66 writew(actual, drvdata->base + GXP_WDT_CNT_OFS); in gxp_wdt_set_timeout()

1234567