Searched refs:remaining (Results 1 - 25 of 68) sorted by relevance

123

/drivers/gpu/drm/nouveau/core/subdev/i2c/
H A Daux.c73 u8 remaining = msg->len; local
76 while (remaining) {
77 u8 cnt = (remaining > 16) ? 16 : remaining;
85 if (mcnt || remaining > 16)
95 remaining -= cnt;
H A Dbit.c195 u8 remaining = msg->len; local
203 while (!ret && remaining--)
204 ret = i2c_get_byte(port, ptr++, !remaining);
206 while (!ret && remaining--)
/drivers/md/bcache/
H A Dclosure.h123 * must be cleared before remaining hits 0. Primarily to help guard
129 * CLOSURE_STACK: Sanity check - remaining should never hit 0 on a
161 atomic_t remaining; member in struct:closure
219 if (atomic_read(&cl->remaining) & CLOSURE_SLEEPING)
220 atomic_sub(CLOSURE_SLEEPING, &cl->remaining);
229 if (!(atomic_read(&cl->remaining) & CLOSURE_SLEEPING))
230 atomic_add(CLOSURE_SLEEPING, &cl->remaining);
235 atomic_sub(CLOSURE_RUNNING, &cl->remaining);
265 BUG_ON((atomic_inc_return(&cl->remaining) &
268 atomic_inc(&cl->remaining);
[all...]
H A Dclosure.c27 atomic_set(&cl->remaining,
48 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining));
57 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining));
103 if (atomic_read(&cl->remaining) & CLOSURE_WAITING)
107 atomic_add(CLOSURE_WAITING + 1, &cl->remaining);
126 if ((atomic_read(&cl->remaining) &
178 int r = atomic_read(&cl->remaining);
/drivers/gpu/drm/radeon/
H A Datombios_i2c.c110 int i, remaining, current_count, buffer_offset, max_bytes, ret; local
127 remaining = p->len;
137 while (remaining) {
138 if (remaining > max_bytes)
141 current_count = remaining;
147 remaining -= current_count;
H A Dradeon_i2c.c586 int i, j, remaining, current_count, buffer_offset, ret = num; local
705 remaining = p->len;
708 while (remaining) {
709 if (remaining > 15)
712 current_count = remaining;
744 remaining -= current_count;
748 while (remaining) {
749 if (remaining > 15)
752 current_count = remaining;
785 remaining
[all...]
/drivers/target/tcm_fc/
H A Dtfc_io.c67 size_t remaining; local
93 remaining = se_cmd->data_length;
98 BUG_ON(remaining && !se_cmd->t_data_sg);
99 if (remaining) {
107 use_sg = !(remaining % 4);
109 while (remaining) {
119 mem_len = min((size_t)sg->length, remaining);
131 frame_len = min(frame_len, remaining);
174 remaining -= tlen;
179 if (!remaining)
[all...]
/drivers/usb/class/
H A Dusbtmc.c441 size_t remaining; local
472 remaining = count;
473 this_part = remaining;
476 while (remaining > 0) {
478 dev_dbg(dev, "usb_bulk_msg_in: remaining(%zu), count(%zu)\n", remaining, count);
480 if (remaining > USBTMC_SIZE_IOBUFFER - USBTMC_HEADER_SIZE - 3)
483 this_part = remaining;
501 dev_dbg(dev, "usb_bulk_msg: retval(%u), done(%zu), remaining(%zu), actual(%d)\n", retval, done, remaining, actua
624 int remaining; local
[all...]
/drivers/md/
H A Ddm-io.c288 sector_t remaining = where->count; local
305 dm_sector_div_up(remaining, (PAGE_SIZE >> SECTOR_SHIFT)));
308 bio->bi_iter.bi_sector = where->sector + (where->count - remaining);
314 num_sectors = min_t(sector_t, q->limits.max_discard_sectors, remaining);
316 remaining -= num_sectors;
323 num_sectors = min_t(sector_t, q->limits.max_write_same_sectors, remaining);
327 remaining -= num_sectors;
329 } else while (remaining) {
334 len = min(len, to_bytes(remaining));
339 remaining
[all...]
H A Draid1.h119 atomic_t remaining; /* 'have we finished' count, member in struct:r1bio
122 atomic_t behind_remaining; /* number of write-behind ios remaining
H A Draid10.h93 atomic_t remaining; /* 'have we finished' count, member in struct:r10bio
/drivers/staging/android/
H A Dtimed_output.c34 int remaining = tdev->get_time(tdev); local
36 return sprintf(buf, "%d\n", remaining);
/drivers/char/
H A Dps3flash.c112 size_t remaining, n; local
133 remaining = count;
135 n = min_t(u64, remaining, dev->bounce_size - offset);
162 remaining -= n;
165 } while (remaining > 0);
181 size_t remaining, n; local
202 remaining = count;
204 n = min_t(u64, remaining, dev->bounce_size - offset);
237 remaining -= n;
240 } while (remaining >
[all...]
/drivers/media/tuners/
H A Dtda18218.c29 int ret = 0, len2, remaining; local
46 for (remaining = len; remaining > 0;
47 remaining -= (priv->cfg->i2c_wr_max - 1)) {
48 len2 = remaining;
53 buf[0] = reg + len - remaining;
54 memcpy(&buf[1], &val[len - remaining], len2);
H A Dsi2157.c84 int ret, len, remaining; local
158 for (remaining = fw->size; remaining > 0; remaining -= 17) {
159 len = fw->data[fw->size - remaining];
160 memcpy(cmd.args, &fw->data[(fw->size - remaining) + 1], len);
/drivers/media/usb/dvb-usb-v2/
H A Dec168.c214 int ret, len, remaining; local
219 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) {
220 len = remaining;
225 req.data = (u8 *) &fw->data[fw->size - remaining];
226 req.index = fw->size - remaining;
/drivers/net/ethernet/intel/e1000e/
H A Dmanage.c205 u16 remaining, i, j, prev_bytes; local
227 remaining = length & 0x3;
228 length -= remaining;
244 if (remaining) {
246 if (j < remaining)
/drivers/usb/host/whci/
H A Dqset.c220 * remaining in this transfer then iAlt cannot be set
268 size_t remaining, offset; local
271 remaining = std->len;
276 while (remaining) {
279 len = min(sg->length - offset, remaining);
283 remaining -= len;
346 * qset_free_stds - free any remaining sTDs for an URB.
434 size_t remaining; local
444 remaining = urb->transfer_buffer_length;
452 if (remaining
555 size_t remaining; local
639 int remaining = urb->transfer_buffer_length; local
[all...]
/drivers/scsi/libfc/
H A Dfc_libfc.c106 * @nents: pointer to the remaining number of entries in the SG list.
116 size_t remaining = len; local
119 while (remaining > 0 && sg) {
135 sg_bytes = min(remaining, sg->length - *offset);
151 remaining -= sg_bytes;
/drivers/usb/musb/
H A Dtusb6010_omap.c117 unsigned long remaining, flags, pio; local
135 remaining = musb_readl(ep_conf, TUSB_EP_TX_OFFSET);
137 remaining = musb_readl(ep_conf, TUSB_EP_RX_OFFSET);
139 remaining = TUSB_EP_CONFIG_XFR_SIZE(remaining);
142 if (unlikely(remaining > chdat->transfer_len)) {
145 remaining);
146 remaining = 0;
149 channel->actual_len = chdat->transfer_len - remaining;
152 dev_dbg(musb->controller, "DMA remaining
[all...]
/drivers/usb/c67x00/
H A Dc67x00-sched.c661 int remaining; local
670 remaining = urb->transfer_buffer_length - urb->actual_length;
675 usb_pipeout(urb->pipe) && !(remaining % maxps);
677 while (remaining || need_empty) {
681 len = (remaining > maxps) ? maxps : remaining;
687 remaining;
694 remaining -= len;
873 int maxps, need_empty, remaining; local
887 remaining
[all...]
/drivers/gpu/vga/
H A Dvgaarb.c912 size_t remaining = count; local
931 remaining -= 5;
935 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
967 remaining -= 7;
975 (curr_pos, remaining, &io_state)) {
1023 remaining -= 8;
1027 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1067 remaining -= 7;
1073 if (!vga_pci_str_to_vars(curr_pos, remaining,
1127 remaining
[all...]
/drivers/mtd/devices/
H A Dmtd_dataflash.c307 size_t remaining = len; local
329 while (remaining > 0) {
414 remaining = 0;
422 remaining = remaining - writelen;
428 if (remaining > priv->page_size)
431 writelen = remaining;
/drivers/media/dvb-frontends/
H A Dsi2168.c357 int ret, len, remaining; local
463 for (remaining = fw->size; remaining > 0; remaining -= i2c_wr_max) {
464 len = remaining;
468 memcpy(cmd.args, &fw->data[fw->size - remaining], len);
/drivers/s390/char/
H A Dvmlogrdr.c73 int remaining; member in struct:vmlogrdr_priv_t
290 * If we turn recording off, we have to purge any remaining records
470 priv->remaining = user_data_count;
493 if (count > priv->remaining)
494 count = priv->remaining;
501 priv->remaining -= count;
504 if (priv->remaining == 0)

Completed in 589 milliseconds

123