/freebsd/sys/cam/scsi/ |
H A D | smp_all.c | 286 scsi_2btoul(response->expander_change_count)); in smp_report_general_sbuf() 288 scsi_2btoul(response->expander_route_indexes)); in smp_report_general_sbuf() 331 scsi_2btoul(response->stp_bus_inact_time_limit)); in smp_report_general_sbuf() 333 scsi_2btoul(response->stp_max_conn_time_limit)); in smp_report_general_sbuf() 335 scsi_2btoul(response->stp_smp_it_nexus_loss_time)); in smp_report_general_sbuf() 368 scsi_2btoul(response->max_num_routed_addrs)); in smp_report_general_sbuf() 374 scsi_2btoul(response->zone_lock_inact_time_limit)); in smp_report_general_sbuf() 394 scsi_2btoul(response->last_sc_stat_desc_index)); in smp_report_general_sbuf() 398 scsi_2btoul(response->max_sc_stat_descs)); in smp_report_general_sbuf() 401 scsi_2btoul(response->last_phy_evl_desc_index)); in smp_report_general_sbuf() [all …]
|
H A D | scsi_ch.c | 616 softc->sc_firsts[CHET_MT] = scsi_2btoul(ea->mtea); in chdone() 617 softc->sc_counts[CHET_MT] = scsi_2btoul(ea->nmte); in chdone() 618 softc->sc_firsts[CHET_ST] = scsi_2btoul(ea->fsea); in chdone() 619 softc->sc_counts[CHET_ST] = scsi_2btoul(ea->nse); in chdone() 620 softc->sc_firsts[CHET_IE] = scsi_2btoul(ea->fieea); in chdone() 621 softc->sc_counts[CHET_IE] = scsi_2btoul(ea->niee); in chdone() 622 softc->sc_firsts[CHET_DT] = scsi_2btoul(ea->fdtea); in chdone() 623 softc->sc_counts[CHET_DT] = scsi_2btoul(ea->ndte); in chdone() 1038 uvoltag->cv_serial = scsi_2btoul(voltag->vsn); in copy_voltag() 1052 uint16_t eaddr = scsi_2btoul(desc->eaddr); in copy_element_status() [all …]
|
H A D | scsi_all.c | 4493 scsi_2btoul(field->field), tmpstr); in scsi_sks_sbuf() 4516 scsi_2btoul(retry->actual_retry_count)); in scsi_sks_sbuf() 4526 progress_val = scsi_2btoul(progress->progress); in scsi_sks_sbuf() 4546 scsi_2btoul(segment->field), tmpstr); in scsi_sks_sbuf() 4551 scsi_2btoul(&sks[1])); in scsi_sks_sbuf() 4709 progress_val = scsi_2btoul(progress->progress); in scsi_sense_progress_sbuf() 5822 len = MIN(scsi_2btoul(id->length), page_len - sizeof(*id)); in scsi_get_devid() 5849 scsi_2btoul(spi->scsi_addr), in scsi_transportid_sbuf() 5850 scsi_2btoul(spi->rel_trgt_port_id)); in scsi_transportid_sbuf() 5895 add_len = scsi_2btoul(dev->additional_length); in scsi_transportid_sbuf() [all …]
|
H A D | scsi_sa.c | 3339 softc->min_blk = scsi_2btoul(rblim->minimum); in samount() 4152 scsi_2btoul(mode10_hdr->data_length)); in sagetparams() 4261 if (scsi_2btoul(dp_changeable->length) > dp_page_length) { in sasetprot() 4262 dp_page_length = scsi_2btoul(dp_changeable->length); in sasetprot() 5519 scsi_2btoul(dens_data->field), %u, field, desc); \ 5584 hdr_len = scsi_2btoul(hdr->length); in safilldenstypesb() 5610 desc_remain = scsi_2btoul(dens_data->length); in safilldenstypesb() 5617 desc_remain = scsi_2btoul(type_data->length); in safilldenstypesb() 5830 td_len = scsi_2btoul(td->length); in saloadtimeouts()
|
H A D | scsi_targ_bh.c | 592 scsi_2btoul(inq->length)); in targbhdone()
|
H A D | scsi_da.c | 4736 len = 2 + scsi_2btoul(mh->data_length); in dadone_probewp() 4737 off = sizeof(*mh) + scsi_2btoul(mh->blk_desc_len); in dadone_probewp() 4856 lalba = scsi_2btoul(rcaplong->lalba_lbp); in dadone_proberc() 5260 scsi_2btoul(bdc->medium_rotation_rate); in dadone_probebdc() 5875 && (scsi_2btoul(zoned_bdc->page_length) >= SVPD_ZBDC_PL)) { in dadone_probezone() 6151 lalba = scsi_2btoul(rcaplong->lalba_lbp); in dasetgeom()
|
H A D | scsi_ses.h | 95 return (scsi_2btoul(hdr->length) in ses_page_length() 1504 cache_size = scsi_2btoul(elem->cache_size); in GEN_SES_STATUS_NV_CACHE_ACCESSORS()
|
H A D | scsi_enc_ses.c | 1304 length = scsi_2btoul(page->length); in ses_process_pages() 2083 length = scsi_2btoul(hdr->length); in ses_process_elm_descs()
|
H A D | scsi_xpt.c | 1498 length = scsi_2btoul(devid->length); in probedone() 1542 length = scsi_2btoul(ext_inq->page_length) + in probedone()
|
H A D | scsi_all.h | 4447 scsi_2btoul(const uint8_t *bytes) in scsi_2btoul() function 4527 scsi_2btoul(mode_header->blk_desc_len)); in find_mode_page_10()
|
H A D | scsi_cd.c | 3095 data_len = scsi_2btoul(hdr10->data_length); in cdgetmode() 3159 data_len = scsi_2btoul(mode_header->data_length); in cdsetmode()
|
/freebsd/sbin/camcontrol/ |
H A D | modeedit.c | 623 len = scsi_2btoul(mphsp->page_length); in editlist_populate() 663 len = scsi_2btoul(mh->blk_desc_len); in editlist_populate_desc() 748 if (scsi_2btoul(mh->blk_desc_len) > 0) { in editlist_save() 750 scsi_2btoul(mh->data_length) + 1 - hlen - in editlist_save() 751 scsi_2btoul(mh->blk_desc_len)); in editlist_save() 767 len = scsi_2btoul(mphsp->page_length); in editlist_save() 816 len = scsi_2btoul(mh->blk_desc_len); in editlist_save_desc() 1028 len = scsi_2btoul(mphsp->page_length); in modepage_dump() 1059 len = scsi_2btoul(mh->blk_desc_len); in modepage_dump_desc() 1183 len = scsi_2btoul(mh->data_length); in mode_list() [all …]
|
H A D | attrib.c | 394 cur_len = scsi_2btoul(cur_id->length) + sizeof(*cur_id); in scsiattrib() 395 cur_attr_num = scsi_2btoul(cur_id->id); in scsiattrib() 445 attr_id = scsi_2btoul(cur_id); in scsiattrib()
|
H A D | persist.c | 204 scsi_2btoul(res->data.extent_length)); in persist_print_res() 244 length = scsi_2btoul(cap->length); in persist_print_cap() 246 type_mask = scsi_2btoul(cap->type_mask); in persist_print_cap() 411 scsi_2btoul(desc->rel_trgt_port_id)); in persist_print_full() 916 cap_len = scsi_2btoul(cap->length); in scsipersist()
|
H A D | timestamp.c | 127 blk_desc_length = scsi_2btoul(mode_hdr->blk_desc_len); in set_restore_flags()
|
H A D | camcontrol.c | 4093 returned_length = scsi_2btoul(hdr10->length); in readdefects() 6652 val = scsi_2btoul(&sks[1]); in scsiformat() 6861 val = scsi_2btoul(&sks[1]); in sanitize_wait_scsi() 7426 fprintf(stdout, "%d", scsi_2btoul(tmplun)); in scsireportluns() 9599 cdb_length = scsi_2btoul(one->cdb_length); in scsigetopcodes() 9607 avail_len += scsi_2btoul(td->length) + in scsigetopcodes() 9699 cdb_len = scsi_2btoul(one->cdb_length); in scsiprintoneopcode() 9741 td_len = scsi_2btoul(td->length); in scsiprintoneopcode() 9815 scsi_2btoul(desc->service_action), in scsiprintopcodes() 9816 scsi_2btoul(des in scsiprintopcodes() [all...] |
H A D | fwdownload.c | 397 cdb_len = scsi_2btoul(one->cdb_length); in fw_get_timeout()
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_tpc.c | 334 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 360 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 371 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 383 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 392 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 415 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 432 (&d_ptr->parameters[0] + scsi_2btoul(d_ptr->desc_length)); in ctl_inquiry_evpd_tpc() 850 scscd = scsi_2btoul(seg->src_cscd); in tpc_process_b2b() 851 dcscd = scsi_2btoul(seg->dst_cscd); in tpc_process_b2b() 870 numlba = scsi_2btoul(seg->number_of_blocks); in tpc_process_b2b() [all …]
|
H A D | ctl.c | 5404 block_count = scsi_2btoul(cdb->lb_count); in ctl_sync_cache() 5504 defect_list_len = scsi_2btoul(header->defect_list_len); in ctl_format() 5702 num_blocks = scsi_2btoul(cdb->length); in ctl_write_same() 5818 len = scsi_2btoul(cdb->length); in ctl_unmap() 5841 len < (scsi_2btoul(hdr->length) + sizeof(hdr->length)) || in ctl_unmap() 5842 len < (scsi_2btoul(hdr->desc_length) + sizeof (*hdr)) || in ctl_unmap() 5843 scsi_2btoul(hdr->desc_length) % sizeof(*buf) != 0) { in ctl_unmap() 5852 len = scsi_2btoul(hdr->desc_length); in ctl_unmap() 6086 page_len = scsi_2btoul(sph->page_length); in ctl_do_mode_select() 6249 param_len = scsi_2btoul(cdb->length); in ctl_mode_select() [all …]
|
H A D | scsi_ctl.c | 1042 num_blocks = scsi_2btoul(cdb->length); in ctlfe_adjust_cdb()
|
/freebsd/share/examples/scsi_target/ |
H A D | scsi_cmds.c | 327 scsi_2btoul(inq->length)); in tcmd_inquiry() 535 count = scsi_2btoul(rw_10->length); in tcmd_rdwr_decode()
|
/freebsd/usr.sbin/ctladm/ |
H A D | ctladm.c | 1466 returned_len = scsi_2btoul(hdr10->datalen) + 2; in cctl_mode_sense() 1467 bdlen = scsi_2btoul(hdr10->block_descr_len); in cctl_mode_sense() 2195 returned_len = scsi_2btoul(&dataptr[2]) + 4; in cctl_inquiry_vpd_devid()
|