/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 47 uint32_t cnt, stat, timer, dwords, idx; in qla24xx_dump_ram() local 60 for (cnt = 0; cnt < ram_dwords && rval == QLA_SUCCESS; in qla24xx_dump_ram() 61 cnt += dwords, addr += dwords) { in qla24xx_dump_ram() 62 if (cnt + dwords > ram_dwords) in qla24xx_dump_ram() 63 dwords = ram_dwords - cnt; in qla24xx_dump_ram() 106 ram[cnt + idx] = swab32(dump[idx]); in qla24xx_dump_ram() 112 *nxt = rval == QLA_SUCCESS ? &ram[cnt]: NULL; in qla24xx_dump_ram() 150 uint32_t cnt; in qla24xx_pause_risc() local 156 for (cnt = 30000; (RD_REG_DWORD(®->hccr) & HCCRX_RISC_PAUSE) == 0 && in qla24xx_pause_risc() 157 rval == QLA_SUCCESS; cnt--) { in qla24xx_pause_risc() [all …]
|
D | qla_iocb.c | 287 uint16_t cnt; in qla2x00_start_scsi() local 342 if (req->cnt < (req_cnt + 2)) { in qla2x00_start_scsi() 343 cnt = RD_REG_WORD_RELAXED(ISP_REQ_Q_OUT(ha, reg)); in qla2x00_start_scsi() 344 if (req->ring_index < cnt) in qla2x00_start_scsi() 345 req->cnt = cnt - req->ring_index; in qla2x00_start_scsi() 347 req->cnt = req->length - in qla2x00_start_scsi() 348 (req->ring_index - cnt); in qla2x00_start_scsi() 350 if (req->cnt < (req_cnt + 2)) in qla2x00_start_scsi() 358 req->cnt -= req_cnt; in qla2x00_start_scsi() 498 uint16_t cnt; in qla2x00_req_pkt() local [all …]
|
/drivers/uwb/i1480/dfu/ |
D | phy.c | 105 unsigned cnt; in i1480_mpi_read() local 115 for (cnt = 0; cnt < size; cnt++) { in i1480_mpi_read() 116 cmd->data[cnt].page = (srcaddr + cnt) >> 8; in i1480_mpi_read() 117 cmd->data[cnt].offset = (srcaddr + cnt) & 0xff; in i1480_mpi_read() 130 for (cnt = 0; cnt < size; cnt++) { in i1480_mpi_read() 131 if (reply->data[cnt].page != (srcaddr + cnt) >> 8) in i1480_mpi_read() 133 "index %u: expected 0x%02x, got 0x%02x\n", cnt, in i1480_mpi_read() 134 (srcaddr + cnt) >> 8, reply->data[cnt].page); in i1480_mpi_read() 135 if (reply->data[cnt].offset != ((srcaddr + cnt) & 0x00ff)) in i1480_mpi_read() 137 "index %u: expected 0x%02x, got 0x%02x\n", cnt, in i1480_mpi_read() [all …]
|
/drivers/misc/ |
D | tifm_7xx1.c | 43 unsigned int irq_status, cnt; in tifm_7xx1_isr() local 55 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr() 56 sock = fm->sockets[cnt]; in tifm_7xx1_isr() 58 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) in tifm_7xx1_isr() 60 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) in tifm_7xx1_isr() 84 int cnt; in tifm_7xx1_toggle_sock_power() local 88 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power() 93 msleep(cnt); in tifm_7xx1_toggle_sock_power() 112 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power() 117 msleep(cnt); in tifm_7xx1_toggle_sock_power() [all …]
|
/drivers/media/video/pvrusb2/ |
D | pvrusb2-ctrl.c | 314 unsigned int uc,cnt; in gen_bitmask_string() local 325 cnt = scnprintf(ptr,len,"%s%s%s", in gen_bitmask_string() 330 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 339 cnt = scnprintf(ptr,len,"%s0x%lx", in gen_bitmask_string() 342 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 345 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string() 348 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 351 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string() 354 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 437 unsigned int cnt; in parse_tlist() local [all …]
|
D | pvrusb2-std.c | 141 unsigned int cnt; in pvr2_std_str_to_id() local 147 cnt = 0; in pvr2_std_str_to_id() 148 while ((cnt < bufSize) && (bufPtr[cnt] != '-')) cnt++; in pvr2_std_str_to_id() 149 if (cnt >= bufSize) return 0; // No more characters in pvr2_std_str_to_id() 151 bufPtr,cnt); in pvr2_std_str_to_id() 153 cnt++; in pvr2_std_str_to_id() 154 bufPtr += cnt; in pvr2_std_str_to_id() 155 bufSize -= cnt; in pvr2_std_str_to_id() 160 cnt = 0; in pvr2_std_str_to_id() 161 while (cnt < bufSize) { in pvr2_std_str_to_id() [all …]
|
D | pvrusb2-io.c | 132 unsigned int *cnt; in pvr2_buffer_remove() local 138 cnt = &sp->i_count; in pvr2_buffer_remove() 143 cnt = &sp->q_count; in pvr2_buffer_remove() 148 cnt = &sp->r_count; in pvr2_buffer_remove() 156 (*cnt)--; in pvr2_buffer_remove() 161 pvr2_buffer_state_decode(bp->state),*bcnt,*cnt); in pvr2_buffer_remove() 300 static int pvr2_stream_buffer_count(struct pvr2_stream *sp,unsigned int cnt) in pvr2_stream_buffer_count() argument 306 if (cnt == sp->buffer_total_count) return 0; in pvr2_stream_buffer_count() 313 cnt-sp->buffer_total_count); in pvr2_stream_buffer_count() 315 scnt = cnt & ~0x1f; in pvr2_stream_buffer_count() [all …]
|
D | pvrusb2-devattr.c | 63 .client_modules.cnt = ARRAY_SIZE(pvr2_client_29xxx), 65 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), 94 .client_modules.cnt = ARRAY_SIZE(pvr2_client_24xxx), 96 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx), 123 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), 144 .client_modules.cnt = ARRAY_SIZE(pvr2_client_gotview_2), 200 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_creator), 260 .client_modules.cnt = ARRAY_SIZE(pvr2_client_onair_usb2), 336 .client_modules.cnt = ARRAY_SIZE(pvr2_client_73xxx), 338 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), [all …]
|
/drivers/usb/mon/ |
D | mon_text.c | 93 int cnt, limit; member 386 ptr.cnt = 0; in mon_text_read_t() 392 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_t() 396 if (copy_to_user(buf, rp->printf_buf, ptr.cnt)) in mon_text_read_t() 397 ptr.cnt = -EFAULT; in mon_text_read_t() 400 return ptr.cnt; in mon_text_read_t() 413 ptr.cnt = 0; in mon_text_read_u() 428 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_u() 432 if (copy_to_user(buf, rp->printf_buf, ptr.cnt)) in mon_text_read_u() 433 ptr.cnt = -EFAULT; in mon_text_read_u() [all …]
|
/drivers/staging/epl/ |
D | EplObdMacro.h | 93 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call) argument 95 …L_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def) static tEplObdUnsigned8 … argument 97 …OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def) static tEplObdUnsigned8 xD… argument 99 …_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name) static tEplObdUnsigned8 xDef#… argument 130 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call) argument 132 …ne EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def) static dtyp MEM… argument 133 …L_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def) static tEplObdVarEntry MEM a… argument 134 …BD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name) static tEplObdVarEntry MEM aVar… argument 162 …PL_OBD_BEGIN_INDEX_RAM(ind,cnt,call) static tEplObdSubEntry MEM … argument 164 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def) static tEplObdSubEn… argument [all …]
|
/drivers/uwb/i1480/i1480u-wlp/ |
D | rx.c | 79 int result, cnt; in i1480u_rx_setup() local 89 for (cnt = 0; cnt < i1480u_RX_BUFS; cnt++) { in i1480u_rx_setup() 90 struct i1480u_rx_buf *rx_buf = &i1480u->rx_buf[cnt]; in i1480u_rx_setup() 95 "RX: cannot allocate RX buffer %d\n", cnt); in i1480u_rx_setup() 105 dev_err(dev, "RX: cannot allocate URB %d\n", cnt); in i1480u_rx_setup() 116 cnt, result); in i1480u_rx_setup() 131 int cnt; in i1480u_rx_release() local 132 for (cnt = 0; cnt < i1480u_RX_BUFS; cnt++) { in i1480u_rx_release() 133 if (i1480u->rx_buf[cnt].data) in i1480u_rx_release() 134 dev_kfree_skb(i1480u->rx_buf[cnt].data); in i1480u_rx_release() [all …]
|
/drivers/pci/ |
D | proc.c | 53 unsigned int cnt, size; in proc_bus_pci_read() local 74 cnt = nbytes; in proc_bus_pci_read() 76 if (!access_ok(VERIFY_WRITE, buf, cnt)) in proc_bus_pci_read() 79 if ((pos & 1) && cnt) { in proc_bus_pci_read() 85 cnt--; in proc_bus_pci_read() 88 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read() 94 cnt -= 2; in proc_bus_pci_read() 97 while (cnt >= 4) { in proc_bus_pci_read() 103 cnt -= 4; in proc_bus_pci_read() 106 if (cnt >= 2) { in proc_bus_pci_read() [all …]
|
/drivers/memstick/host/ |
D | jmb38x_ms.c | 631 int cnt; in jmb38x_ms_reset() local 638 for (cnt = 0; cnt < 20; ++cnt) { in jmb38x_ms_reset() 654 for (cnt = 0; cnt < 20; ++cnt) { in jmb38x_ms_reset() 759 int cnt; in jmb38x_ms_suspend() local 761 for (cnt = 0; cnt < jm->host_cnt; ++cnt) { in jmb38x_ms_suspend() 762 if (!jm->hosts[cnt]) in jmb38x_ms_suspend() 764 memstick_suspend_host(jm->hosts[cnt]); in jmb38x_ms_suspend() 808 int cnt, rc = 0; in jmb38x_ms_count_slots() local 810 for (cnt = 0; cnt < PCI_ROM_RESOURCE; ++cnt) { in jmb38x_ms_count_slots() 811 if (!(IORESOURCE_MEM & pci_resource_flags(pdev, cnt))) in jmb38x_ms_count_slots() [all …]
|
/drivers/block/ |
D | amiflop.c | 455 int cnt; in fd_seek() local 476 cnt = unit[drive].track/2 - track/2; in fd_seek() 481 if (cnt < 0) { in fd_seek() 482 cnt = - cnt; in fd_seek() 489 if (cnt == 0) { in fd_seek() 501 } while (--cnt != 0); in fd_seek() 797 int cnt, to_cnt = 0; in encode_block() local 801 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block() 802 data = src[cnt] >> 1; in encode_block() 807 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block() [all …]
|
/drivers/net/ |
D | apne.c | 383 int cnt; in apne_get_8390_hdr() local 406 for(cnt = 0; cnt < (sizeof(struct e8390_pkt_hdr)>>1); cnt++) in apne_get_8390_hdr() 410 for(cnt = 0; cnt < sizeof(struct e8390_pkt_hdr); cnt++) in apne_get_8390_hdr() 432 int cnt; in apne_block_input() local 451 for (cnt = 0; cnt < (count>>1); cnt++) in apne_block_input() 458 for (cnt = 0; cnt < count; cnt++) in apne_block_input() 474 int cnt; in apne_block_output() local 504 for (cnt = 0; cnt < count>>1; cnt++) in apne_block_output() 508 for (cnt = 0; cnt < count; cnt++) in apne_block_output()
|
/drivers/char/ |
D | hvc_beat.c | 42 static int hvc_beat_get_chars(uint32_t vtermno, char *buf, int cnt) in hvc_beat_get_chars() argument 51 if (qlen > cnt) { in hvc_beat_get_chars() 52 memcpy(buf, q, cnt); in hvc_beat_get_chars() 53 qlen -= cnt; in hvc_beat_get_chars() 54 memmove(q + cnt, q, qlen); in hvc_beat_get_chars() 55 return cnt; in hvc_beat_get_chars() 73 static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt) in hvc_beat_put_chars() argument 78 for (rest = cnt; rest > 0; rest -= nlen) { in hvc_beat_put_chars() 84 return cnt; in hvc_beat_put_chars()
|
/drivers/usb/storage/ |
D | protocol.c | 137 unsigned int cnt; in usb_stor_access_xfer_buf() local 157 cnt = 0; in usb_stor_access_xfer_buf() 158 while (cnt < buflen && sg) { in usb_stor_access_xfer_buf() 164 if (sglen > buflen - cnt) { in usb_stor_access_xfer_buf() 167 sglen = buflen - cnt; in usb_stor_access_xfer_buf() 185 memcpy(ptr + poff, buffer + cnt, plen); in usb_stor_access_xfer_buf() 187 memcpy(buffer + cnt, ptr + poff, plen); in usb_stor_access_xfer_buf() 193 cnt += plen; in usb_stor_access_xfer_buf() 200 return cnt; in usb_stor_access_xfer_buf()
|
/drivers/scsi/qla4xxx/ |
D | ql4_dbg.c | 15 uint32_t cnt; in qla4xxx_dump_buffer() local 22 for (cnt = 0; cnt < size; cnt++, c++) { in qla4xxx_dump_buffer() 24 if (!(cnt % 16)) in qla4xxx_dump_buffer() 30 if (cnt % 16) in qla4xxx_dump_buffer()
|
/drivers/usb/wusbcore/ |
D | wa-xfer.c | 172 unsigned cnt; in wa_xfer_destroy() local 173 for (cnt = 0; cnt < xfer->segs; cnt++) { in wa_xfer_destroy() 175 usb_put_urb(xfer->seg[cnt]->dto_urb); in wa_xfer_destroy() 176 usb_put_urb(&xfer->seg[cnt]->urb); in wa_xfer_destroy() 236 unsigned result, cnt; in __wa_xfer_is_done() local 245 for (cnt = 0; cnt < xfer->segs; cnt++) { in __wa_xfer_is_done() 246 seg = xfer->seg[cnt]; in __wa_xfer_is_done() 251 xfer, cnt, seg->result); in __wa_xfer_is_done() 257 && cnt != xfer->segs-1) in __wa_xfer_is_done() 276 xfer, cnt, seg->status); in __wa_xfer_is_done() [all …]
|
/drivers/video/ |
D | fbcvt.c | 216 int cnt = 255, offset = 0, read = 0; in fb_cvt_print_name() local 226 read = snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - ", in fb_cvt_print_name() 229 cnt -= read; in fb_cvt_print_name() 232 snprintf(buf+offset, cnt, "Not a CVT standard - %d.%03d Mega " in fb_cvt_print_name() 236 read = snprintf(buf+offset, cnt, "%d", pixcount); in fb_cvt_print_name() 237 cnt -= read; in fb_cvt_print_name() 241 read = snprintf(buf+offset, cnt, ".%03dM", pixcount_mod); in fb_cvt_print_name() 242 cnt -= read; in fb_cvt_print_name() 246 read = snprintf(buf+offset, cnt, "3"); in fb_cvt_print_name() 248 read = snprintf(buf+offset, cnt, "4"); in fb_cvt_print_name() [all …]
|
/drivers/net/hamradio/ |
D | baycom_epp.c | 261 static inline int check_crc_ccitt(const unsigned char *buf, int cnt) in check_crc_ccitt() argument 263 return (crc_ccitt(0xffff, buf, cnt) & 0xffff) == 0xf0b8; in check_crc_ccitt() 268 static inline int calc_crc_ccitt(const unsigned char *buf, int cnt) in calc_crc_ccitt() argument 270 return (crc_ccitt(0xffff, buf, cnt) ^ 0xffff) & 0xffff; in calc_crc_ccitt() 431 static int transmit(struct baycom_state *bc, int cnt, unsigned char stat) in transmit() argument 461 while (cnt > 0) { in transmit() 464 i = min_t(int, cnt, bc->hdlctx.flags); in transmit() 465 cnt -= i; in transmit() 487 i = min_t(int, cnt, bc->hdlctx.bufcnt); in transmit() 489 cnt -= i; in transmit() [all …]
|
/drivers/media/video/bt8xx/ |
D | bttv-i2c.c | 143 int retval,cnt; in bttv_i2c_sendbytes() local 165 for (cnt = 1; cnt < msg->len; cnt++ ) { in bttv_i2c_sendbytes() 167 xmit = (msg->buf[cnt] << 24) | I2C_HW | BT878_I2C_NOSTART; in bttv_i2c_sendbytes() 168 if (cnt < msg->len-1 || !last) in bttv_i2c_sendbytes() 177 printk(" %02x", msg->buf[cnt]); in bttv_i2c_sendbytes() 196 u32 cnt; in bttv_i2c_readbytes() local 199 for(cnt = 0; cnt < msg->len; cnt++) { in bttv_i2c_readbytes() 201 if (cnt < msg->len-1) in bttv_i2c_readbytes() 203 if (cnt < msg->len-1 || !last) in bttv_i2c_readbytes() 205 if (cnt) in bttv_i2c_readbytes() [all …]
|
/drivers/telephony/ |
D | ixj.c | 322 for(cnt=0; cnt<IXJMAX; cnt++) in ixj_alloc() 324 if(ixj[cnt] == NULL || !ixj[cnt]->DSPbase) in ixj_alloc() 329 ixj[cnt] = j; in ixj_alloc() 371 int cnt; in ixj_alloc() local 372 for(cnt=0; cnt<IXJMAX; cnt++) { in ixj_alloc() 373 if(!ixj[cnt].DSPbase) in ixj_alloc() 374 return &ixj[cnt]; in ixj_alloc() 2152 int cnt; in ixj_release() local 2304 for (cnt = 0; cnt < 4; cnt++) in ixj_release() 2305 j->cadence_f[cnt].enable = 0; in ixj_release() [all …]
|
/drivers/scsi/ |
D | qla1280.c | 612 int cnt, i; in qla1280_read_nvram() local 625 for (cnt = 0; cnt < 3; cnt++) { in qla1280_read_nvram() 626 *wptr = qla1280_get_nvram_word(ha, cnt); in qla1280_read_nvram() 637 for (; cnt < sizeof(struct nvram); cnt++) { in qla1280_read_nvram() 638 *wptr = qla1280_get_nvram_word(ha, cnt); in qla1280_read_nvram() 1544 int cnt; in qla1280_chip_diag() local 1565 for (cnt = 1000000; cnt && data & ISP_RESET; cnt--) { in qla1280_chip_diag() 1570 if (!cnt) in qla1280_chip_diag() 1589 for (cnt = 1000000; cnt && data == MBS_BUSY; cnt--) { in qla1280_chip_diag() 1594 if (!cnt) in qla1280_chip_diag() [all …]
|
/drivers/isdn/hisax/ |
D | netjet.c | 66 static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) in fill_mem() argument 77 for (i=0; i<cnt; i++) { in fill_mem() 397 static void read_raw(struct BCState *bcs, u_int *buf, int cnt){ in read_raw() argument 418 for (i=0;i<cnt;i++) { in read_raw() 576 int cnt = NETJET_DMA_RXSIZE/2; in read_tiger() local 595 p = cs->bcs[0].hw.tiger.rec + cnt - 1; in read_tiger() 597 read_raw(cs->bcs, p, cnt); in read_tiger() 600 read_raw(cs->bcs + 1, p, cnt); in read_tiger() 604 static void write_raw(struct BCState *bcs, u_int *buf, int cnt); 609 register int cnt; in netjet_fill_dma() local [all …]
|