Searched defs:rest (Results 1 - 25 of 28) sorted by relevance

12

/drivers/media/dvb/dvb-core/
H A Ddvb_filter.c574 int ret=0, rest; local
593 rest=183-len;
594 if (rest) {
596 if (rest-1)
597 memset(buf+6, 0xff, rest-1);
599 buf[4]=rest;
600 memcpy(buf+5+rest, pes, len);
/drivers/media/dvb/ttpci/
H A Dav7110_ipack.c135 int rest = p->size - p->count; local
136 memcpy(p->buf+p->count, data, rest);
137 p->count += rest;
139 if (count - rest > 0)
140 write_ipack(p, data + rest, count - rest);
H A Dav7110_av.c649 int check, rest; local
730 rest = l % (TS_SIZE - 4);
731 l -= rest;
733 memcpy(p->pes, buf + c + l, rest);
734 p->pos = rest;
H A Dav7110_hw.c145 int blocks, rest; local
151 rest = len % AV7110_BOOT_MAX_SIZE;
169 if (rest > 0) {
174 if (rest > 4)
176 ((u8 *)data) + i * AV7110_BOOT_MAX_SIZE, rest);
179 ((u8 *)data) + i * AV7110_BOOT_MAX_SIZE - 4, rest + 4);
182 iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_SIZE, rest, 2);
/drivers/media/radio/
H A Dradio-terratec.c86 long rest; local
92 rest = freq * 10 + 10700; /* I once had understood what is going on here */
97 while (rest != 0) {
98 if (rest % temp == rest)
102 rest = rest - temp;
/drivers/tty/hvc/
H A Dhvc_beat.c76 int rest, nlen; local
78 for (rest = cnt; rest > 0; rest -= nlen) {
79 nlen = (rest > 16) ? 16 : rest;
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_fifo.c386 uint32_t rest; local
396 rest = bytes - chunk_size;
397 if (rest)
399 rest);
/drivers/iommu/
H A Domap-iommu-debug.c74 ssize_t bytes, rest; local
85 rest = count - (p - buf);
86 p += omap_dump_tlb_entries(obj, p, rest);
/drivers/s390/char/
H A Dvmur.h50 char rest[200]; member in struct:file_control_block
/drivers/s390/block/
H A Ddasd_eer.c73 * keep track of the rest of the record. residual stores the number of bytes
74 * that are still to deliver. If the rest of the record is invalidated between
133 unsigned long rest, len; local
137 rest = count;
138 while (rest > 0) {
141 len = min(rest, PAGE_SIZE - localhead);
144 rest -= len;
159 unsigned long rest, len, finalcount; local
164 rest = finalcount;
165 while (rest >
[all...]
/drivers/gpu/drm/savage/
H A Dsavage_bci.c365 unsigned int rest = SAVAGE_DMA_PAGE_SIZE - local
367 unsigned int nr_pages = (n - rest + SAVAGE_DMA_PAGE_SIZE - 1) /
372 DRM_DEBUG("cur=%u, cur->used=%u, n=%u, rest=%u, nr_pages=%u\n",
373 cur, dev_priv->dma_pages[cur].used, n, rest, nr_pages);
378 if (n < rest)
379 rest = n;
380 dev_priv->dma_pages[cur].used += rest;
381 n -= rest;
/drivers/input/mouse/
H A Dsentelic.c415 char *rest; local
418 reg = simple_strtoul(buf, &rest, 16);
419 if (rest == buf || *rest != ' ' || reg > 0xff)
422 retval = kstrtoint(rest + 1, 16, &val);
/drivers/staging/comedi/drivers/
H A Dme4000.c1179 int rest; local
1194 rest = (cmd->start_arg * 33) % 1000;
1197 if (rest > 33)
1200 if (rest)
1207 rest = (cmd->scan_begin_arg * 33) % 1000;
1210 if (rest > 33)
1213 if (rest)
1220 rest = (cmd->convert_arg * 33) % 1000;
1223 if (rest > 33)
1226 if (rest)
[all...]
/drivers/block/
H A Dps3vram.c629 char *rest; local
663 ddr_size = ALIGN(memparse(size, &rest), 1024*1024);
/drivers/isdn/hardware/eicon/
H A Dmi_pc.h92 dword volatile rest[((0x1020 >> 2) - 6) - 0x1b - 1 - 0x03 - (sizeof(MP_XCPTC) >> 2)]; member in struct:mp_load
/drivers/net/hamradio/
H A D6pack.c964 unsigned char checksum = 0, rest = 0, channel; local
980 rest = sp->rx_count;
981 if (rest != 0)
982 for (i = rest; i <= 3; i++)
984 if (rest == 2)
986 else if (rest == 3)
/drivers/scsi/ibmvscsi/
H A Dibmvstgt.c224 enum dma_data_direction dir, unsigned int rest)
237 for (i = 0; i < nmd && rest; i++) {
240 mlen = min(rest, md[i].len);
280 rest -= mlen;
222 ibmvstgt_rdma(struct scsi_cmnd *sc, struct scatterlist *sg, int nsg, struct srp_direct_buf *md, int nmd, enum dma_data_direction dir, unsigned int rest) argument
/drivers/net/ethernet/fujitsu/
H A Deth16i.c555 eth16i_initialize(dev, 1); /* Initialize rest of the chip's registers */
1193 unsigned short rest[2]; local
1194 rest[0] = inw( ioaddr + DATAPORT );
1196 rest[1] = inw( ioaddr + DATAPORT );
1198 memcpy(buf + (pkt_len & 0xfffc), (char *)rest, frag);
/drivers/net/ethernet/
H A Djme.c1387 int rest; local
1389 rest = jme_process_receive(jme, JME_NAPI_WEIGHT_VAL(budget));
1398 if (rest) {
1403 JME_NAPI_WEIGHT_SET(budget, rest);
1404 return JME_NAPI_WEIGHT_VAL(budget) - rest;
/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c2397 * to transfer the rest of the current block.
2402 u32 rest; local
2421 rest = dbc & 0xffffff;
2454 (dfifo & 0xff)) - rest) & 0x3ff;
2456 delta = ((dfifo & 0xff) - rest) & 0x7f;
2461 * the target -> add the amount to the rest
2465 rest += delta;
2467 if (ss0 & OLF) rest++;
2469 if (ss0 & ORF) rest++;
2472 if (ss2 & OLF1) rest
[all...]
/drivers/staging/tidspbridge/rmgr/
H A Dproc.c613 ssize_t rest; local
631 rest = min_t(ssize_t, PAGE_SIZE - offset, len);
633 sg_set_page(&sg[i], page, rest, offset);
635 len -= rest;
636 start += rest;
/drivers/target/
H A Dtarget_core_pr.c4371 struct t10_reservation *rest = &su_dev->t10_pr; local
4380 rest->res_type = SPC_PASSTHROUGH;
4381 rest->pr_ops.t10_reservation_check = &core_pt_reservation_check;
4382 rest->pr_ops.t10_seq_non_holder = &core_pt_seq_non_holder;
4392 rest->res_type = SPC3_PERSISTENT_RESERVATIONS;
4393 rest->pr_ops.t10_reservation_check = &core_scsi3_pr_reservation_check;
4394 rest->pr_ops.t10_seq_non_holder = &core_scsi3_pr_seq_non_holder;
4398 rest->res_type = SPC2_RESERVATIONS;
4399 rest->pr_ops.t10_reservation_check = &core_scsi2_reservation_check;
4400 rest
[all...]
/drivers/media/dvb/frontends/
H A Ddib0090.c188 u32 rest; member in struct:dib0090_state
892 u16 rest; local
896 rest = slopes[i].range;
898 rest = val;
899 ret += (rest * slopes[i].slope) / slopes[i].range;
900 val -= rest;
2159 if (state->rest == 0 || state->identity.in_soc) { /* Just for 8090P SOCS where auto captrim HW bug : TO CHECK IN ACI for SOCS !!! if 400 for 8090p SOC => tune issue !!! */
2403 state->rest = Rest;
/drivers/firewire/
H A Dohci.c3259 u32 z, header_z, rest; local
3293 rest = payload_per_buffer;
3300 if (offset + rest < PAGE_SIZE)
3301 length = rest;
3316 rest -= length;
3339 int page, offset, rest, z, i, length; local
3343 rest = packet->payload_length;
3346 z = DIV_ROUND_UP(offset + rest, PAGE_SIZE);
3348 if (WARN_ON(offset & 3 || rest & 3 || page + z > buffer->page_count))
3363 if (offset + rest < PAGE_SIZ
[all...]
/drivers/net/usb/
H A Dhso.c947 /* Copy the rest of the bytes that are left in the
1003 u32 rest = urb->actual_length % le16_to_cpu(max_packet_size); local
1005 if (((rest == 5) || (rest == 6)) &&

Completed in 3849 milliseconds

12