Home
last modified time | relevance | path

Searched refs:good_bytes (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-6.6/drivers/scsi/
H A Dsd_trace.h49 unsigned int wp_offset, unsigned int good_bytes),
51 TP_ARGS(cmnd, rq_sector, wp_offset, good_bytes),
60 __field( unsigned int, good_bytes )
70 __entry->good_bytes = good_bytes;
74 " wp_offset=%u good_bytes=%u",
77 __entry->good_bytes)
H A Dsd_zbc.c526 * @good_bytes: Command reply bytes
532 unsigned int good_bytes) in sd_zbc_zone_wp_update()
552 good_bytes = 0; in sd_zbc_zone_wp_update()
568 sdkp->zones_wp_offset[zno], good_bytes); in sd_zbc_zone_wp_update()
575 good_bytes >> SECTOR_SHIFT; in sd_zbc_zone_wp_update()
594 return good_bytes; in sd_zbc_zone_wp_update()
600 * @good_bytes: Command reply bytes
606 unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, in sd_zbc_complete() argument
623 good_bytes = sd_zbc_zone_wp_update(cmd, good_bytes); in sd_zbc_complete()
531 sd_zbc_zone_wp_update(struct scsi_cmnd *cmd, unsigned int good_bytes) sd_zbc_zone_wp_update() argument
[all...]
H A Dscsi.c164 unsigned int good_bytes; in scsi_finish_command() local
183 good_bytes = scsi_bufflen(cmd); in scsi_finish_command()
185 int old_good_bytes = good_bytes; in scsi_finish_command()
188 good_bytes = drv->done(cmd); in scsi_finish_command()
195 if (good_bytes == old_good_bytes) in scsi_finish_command()
196 good_bytes -= scsi_get_resid(cmd); in scsi_finish_command()
198 scsi_io_completion(cmd, good_bytes); in scsi_finish_command()
H A Dsd.h250 unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes,
280 unsigned int good_bytes, struct scsi_sense_hdr *sshdr) in sd_zbc_complete()
282 return good_bytes; in sd_zbc_complete()
279 sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, struct scsi_sense_hdr *sshdr) sd_zbc_complete() argument
H A Dsr.c298 int good_bytes = (result == 0 ? this_count : 0); in sr_done() local
331 good_bytes = (error_sector - blk_rq_pos(rq)) << 9; in sr_done()
332 if (good_bytes < 0 || good_bytes >= this_count) in sr_done()
333 good_bytes = 0; in sr_done()
348 good_bytes = this_count; in sr_done()
356 return good_bytes; in sr_done()
H A Dsd.c2069 unsigned int transferred, good_bytes; in sd_completed_bytes() local
2103 good_bytes = logical_to_bytes(sdev, bad_lba - start_lba); in sd_completed_bytes()
2105 return min(good_bytes, transferred); in sd_completed_bytes()
2118 unsigned int good_bytes = result ? 0 : scsi_bufflen(SCpnt); in sd_done() local
2136 good_bytes = blk_rq_bytes(req); in sd_done()
2139 good_bytes = 0; in sd_done()
2175 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
2178 good_bytes = scsi_bufflen(SCpnt); in sd_done()
2190 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
2195 good_bytes in sd_done()
[all...]
H A Dscsi_lib.c890 * good_bytes != blk_rq_bytes(req) as the signal for an error. in scsi_io_completion_nz_result()
935 * @good_bytes: number of processed bytes.
954 void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) in scsi_io_completion() argument
969 blk_rq_sectors(req), good_bytes)); in scsi_io_completion()
976 if (likely(!scsi_end_request(req, blk_stat, good_bytes))) in scsi_io_completion()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dscsi.c173 unsigned int good_bytes; in scsi_finish_command() local
199 good_bytes = scsi_bufflen(cmd); in scsi_finish_command()
201 int old_good_bytes = good_bytes; in scsi_finish_command()
204 good_bytes = drv->done(cmd); in scsi_finish_command()
211 if (good_bytes == old_good_bytes) in scsi_finish_command()
212 good_bytes -= scsi_get_resid(cmd); in scsi_finish_command()
214 scsi_io_completion(cmd, good_bytes); in scsi_finish_command()
H A Dsd.h224 unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes,
255 unsigned int good_bytes, struct scsi_sense_hdr *sshdr) in sd_zbc_complete()
257 return good_bytes; in sd_zbc_complete()
254 sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, struct scsi_sense_hdr *sshdr) sd_zbc_complete() argument
H A Dsd_zbc.c435 * @good_bytes: Command reply bytes
441 unsigned int good_bytes) in sd_zbc_zone_wp_update()
460 good_bytes = 0; in sd_zbc_zone_wp_update()
482 good_bytes >> SECTOR_SHIFT; in sd_zbc_zone_wp_update()
501 return good_bytes; in sd_zbc_zone_wp_update()
507 * @good_bytes: Command reply bytes
513 unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, in sd_zbc_complete() argument
530 good_bytes = sd_zbc_zone_wp_update(cmd, good_bytes); in sd_zbc_complete()
535 return good_bytes; in sd_zbc_complete()
440 sd_zbc_zone_wp_update(struct scsi_cmnd *cmd, unsigned int good_bytes) sd_zbc_zone_wp_update() argument
[all...]
H A Dsr.c328 int good_bytes = (result == 0 ? this_count : 0); in sr_done() local
361 good_bytes = (error_sector - in sr_done()
363 if (good_bytes < 0 || good_bytes >= this_count) in sr_done()
364 good_bytes = 0; in sr_done()
379 good_bytes = this_count; in sr_done()
387 return good_bytes; in sr_done()
H A Dsd.c1990 unsigned int transferred, good_bytes; in sd_completed_bytes() local
2024 good_bytes = logical_to_bytes(sdev, bad_lba - start_lba); in sd_completed_bytes()
2026 return min(good_bytes, transferred); in sd_completed_bytes()
2039 unsigned int good_bytes = result ? 0 : scsi_bufflen(SCpnt); in sd_done() local
2058 good_bytes = blk_rq_bytes(req); in sd_done()
2061 good_bytes = 0; in sd_done()
2097 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
2100 good_bytes = scsi_bufflen(SCpnt); in sd_done()
2112 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
2117 good_bytes in sd_done()
[all...]
H A Dscsi_lib.c875 * good_bytes != blk_rq_bytes(req) as the signal for an error. in scsi_io_completion_nz_result()
920 * @good_bytes: number of processed bytes.
939 void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) in scsi_io_completion() argument
962 blk_rq_sectors(req), good_bytes)); in scsi_io_completion()
969 if (likely(!scsi_end_request(req, blk_stat, good_bytes))) in scsi_io_completion()
/kernel/linux/linux-5.10/fs/nfs/
H A Dread.c176 if (bytes > hdr->good_bytes) { in nfs_read_completion()
181 } else if (hdr->good_bytes - bytes < req->wb_bytes) { in nfs_read_completion()
184 start += hdr->good_bytes - bytes; in nfs_read_completion()
192 if (bytes <= hdr->good_bytes) in nfs_read_completion()
298 if (hdr->good_bytes > new) { in nfs_readpage_result()
299 hdr->good_bytes = new; in nfs_readpage_result()
H A Ddirect.c139 loff_t hdr_end = hdr->io_start + hdr->good_bytes; in nfs_direct_count_bytes()
304 if (!PageCompound(page) && bytes < hdr->good_bytes && in nfs_direct_read_completion()
752 if (hdr->good_bytes != 0 && nfs_write_need_commit(hdr)) { in nfs_direct_write_completion()
802 hdr->good_bytes = hdr->args.offset + hdr->args.count - in nfs_direct_write_reschedule_io()
H A Dpagelist.c68 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init()
85 if (hdr->good_bytes > new) { in nfs_set_pgio_error()
86 hdr->good_bytes = new; in nfs_set_pgio_error()
H A Dwrite.c992 (hdr->good_bytes < bytes)) { in nfs_write_completion()
/kernel/linux/linux-6.6/fs/nfs/
H A Dread.c157 if (bytes > hdr->good_bytes) { in nfs_read_completion()
162 } else if (hdr->good_bytes - bytes < req->wb_bytes) { in nfs_read_completion()
165 start += hdr->good_bytes - bytes; in nfs_read_completion()
173 if (bytes <= hdr->good_bytes) in nfs_read_completion()
278 if (hdr->good_bytes > new) { in nfs_readpage_result()
279 hdr->good_bytes = new; in nfs_readpage_result()
H A Dpagelist.c106 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init()
124 if (hdr->good_bytes > new) { in nfs_set_pgio_error()
125 hdr->good_bytes = new; in nfs_set_pgio_error()
H A Ddirect.c106 loff_t hdr_end = hdr->io_start + hdr->good_bytes; in nfs_direct_count_bytes()
281 if (!PageCompound(page) && bytes < hdr->good_bytes && in nfs_direct_read_completion()
H A Dwrite.c1007 (hdr->good_bytes < bytes)) { in nfs_write_completion()
/kernel/linux/linux-6.6/rust/kernel/
H A Dstr.rs363 let good_bytes = b"\xf0\x9f\xa6\x80\0"; in test_cstr_to_str()
364 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_to_str()
379 let good_bytes = b"\xf0\x9f\x90\xA7\0"; in test_cstr_as_str_unchecked()
380 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_as_str_unchecked()
/kernel/linux/linux-5.10/include/linux/
H A Dnfs_xdr.h1604 unsigned int good_bytes; /* boundary of good data */ member
/kernel/linux/linux-6.6/include/linux/
H A Dnfs_xdr.h1632 unsigned int good_bytes; /* boundary of good data */ member

Completed in 47 milliseconds