Lines Matching refs:cplen
2920 static int asc_prt_board_devices(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_board_devices() argument
2929 leftlen = cplen; in asc_prt_board_devices()
2960 static int asc_prt_adv_bios(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_adv_bios() argument
2968 leftlen = cplen; in asc_prt_adv_bios()
3125 static int asc_prt_asc_board_eeprom(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_asc_board_eeprom() argument
3142 leftlen = cplen; in asc_prt_asc_board_eeprom()
3258 static int asc_prt_adv_board_eeprom(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_adv_board_eeprom() argument
3284 leftlen = cplen; in asc_prt_adv_board_eeprom()
3544 static int asc_prt_driver_conf(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_driver_conf() argument
3552 leftlen = cplen; in asc_prt_driver_conf()
3606 static int asc_prt_asc_board_info(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_asc_board_info() argument
3622 leftlen = cplen; in asc_prt_asc_board_info()
3788 static int asc_prt_adv_board_info(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_adv_board_info() argument
3812 leftlen = cplen; in asc_prt_adv_board_info()
4032 char *cp, int cplen) in asc_proc_copy() argument
4037 (unsigned)offset, (unsigned)advoffset, cplen); in asc_proc_copy()
4040 cnt = min(cplen, leftlen); in asc_proc_copy()
4044 } else if (offset < advoffset + cplen) { in asc_proc_copy()
4046 cnt = (advoffset + cplen) - offset; in asc_proc_copy()
4047 cp = (cp + cplen) - cnt; in asc_proc_copy()
4066 static int asc_prt_board_stats(struct Scsi_Host *shost, char *cp, int cplen) in asc_prt_board_stats() argument
4071 int leftlen = cplen; in asc_prt_board_stats()
4156 int cplen; in advansys_proc_info() local
4189 cplen = strlen(cp); in advansys_proc_info()
4191 cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); in advansys_proc_info()
4198 advoffset += cplen; in advansys_proc_info()
4206 cplen = asc_prt_adv_bios(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4207 BUG_ON(cplen >= ASC_PRTBUF_SIZE); in advansys_proc_info()
4209 cplen); in advansys_proc_info()
4216 advoffset += cplen; in advansys_proc_info()
4224 cplen = asc_prt_board_devices(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4225 BUG_ON(cplen >= ASC_PRTBUF_SIZE); in advansys_proc_info()
4226 cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); in advansys_proc_info()
4233 advoffset += cplen; in advansys_proc_info()
4241 cplen = asc_prt_asc_board_eeprom(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4243 cplen = asc_prt_adv_board_eeprom(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4245 BUG_ON(cplen >= ASC_PRTBUF_SIZE); in advansys_proc_info()
4246 cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); in advansys_proc_info()
4253 advoffset += cplen; in advansys_proc_info()
4260 cplen = asc_prt_driver_conf(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4261 BUG_ON(cplen >= ASC_PRTBUF_SIZE); in advansys_proc_info()
4262 cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); in advansys_proc_info()
4269 advoffset += cplen; in advansys_proc_info()
4277 cplen = asc_prt_board_stats(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4278 BUG_ON(cplen >= ASC_PRTBUF_SIZE); in advansys_proc_info()
4279 cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); in advansys_proc_info()
4286 advoffset += cplen; in advansys_proc_info()
4296 cplen = asc_prt_asc_board_info(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4298 cplen = asc_prt_adv_board_info(shost, cp, ASC_PRTBUF_SIZE); in advansys_proc_info()
4300 BUG_ON(cplen >= ASC_PRTBUF_SIZE); in advansys_proc_info()
4301 cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); in advansys_proc_info()
4308 advoffset += cplen; in advansys_proc_info()