Home
last modified time | relevance | path

Searched refs:ntoh24 (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.4/include/scsi/
Dfc_frame.h26 static inline u32 ntoh24(const u8 *p) in ntoh24() function
170 return ntoh24(__fc_frame_header_get(fp)->fh_s_id); in fc_frame_sid()
178 return ntoh24(__fc_frame_header_get(fp)->fh_d_id); in fc_frame_did()
Discsi_proto.h57 #define ntoh24(p) (((p)[0] << 16) | ((p)[1] << 8) | ((p)[2])) macro
/Linux-v5.4/drivers/target/iscsi/
Discsi_target_erl0.c71 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_within_command_recovery_check()
138 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_check_unsolicited_sequence()
214 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_check_sequence()
342 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_check_datasn()
393 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_pre_datapduinorder_yes()
454 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_pre_datapduinorder_no()
540 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_post_crc_passed()
650 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_post_crc_failed()
Discsi_target_nego.c176 payload_length = ntoh24(login_req->dlength); in iscsi_target_check_login_request()
754 payload_length = ntoh24(login_req->dlength); in iscsi_target_do_authentication()
813 payload_length = ntoh24(login_req->dlength); in iscsi_target_handle_csg_zero()
901 payload_length = ntoh24(login_req->dlength); in iscsi_target_handle_csg_one()
1059 payload_length = ntoh24(login_req->dlength); in iscsi_target_locate_portal()
Discsi_target.c1006 payload_length = ntoh24(hdr->dlength); in iscsit_setup_scsi_cmd()
1542 u32 payload_length = ntoh24(hdr->dlength); in iscsit_check_dataout_hdr()
1581 ntoh24(hdr->dlength)); in iscsit_get_dataout()
1703 u32 payload_length = ntoh24(hdr->dlength); in iscsit_setup_nop_out()
1835 u32 payload_length = ntoh24(hdr->dlength); in iscsit_handle_nop_out()
2140 u32 payload_length = ntoh24(hdr->dlength); in iscsit_setup_text_cmd()
2243 u32 payload_length = ntoh24(hdr->dlength); in iscsit_handle_text_cmd()
/Linux-v5.4/drivers/scsi/libfc/
Dfc_exch.c480 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
1004 ep->sid = ntoh24(fh->fh_d_id); in fc_exch_resp()
1005 ep->did = ntoh24(fh->fh_s_id); in fc_exch_resp()
1016 if ((ntoh24(fh->fh_f_ctl) & FC_FC_SEQ_INIT) == 0) in fc_exch_resp()
1046 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
1174 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1303 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1382 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1517 lport = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); in fc_exch_recv_req()
1588 if (ep->sid != 0 && ep->sid != ntoh24(fh->fh_d_id)) { in fc_exch_recv_seq_resp()
[all …]
Dfc_disc.c121 "(%6.6x)\n", ntoh24(pp->rscn_fid)); in fc_disc_recv_rscn_req()
128 dp->port_id = ntoh24(pp->rscn_fid); in fc_disc_recv_rscn_req()
431 ids.port_id = ntoh24(np->fp_fid); in fc_disc_gpn_ft_parse()
Dfc_lport.c1915 (ntoh24(fh->fh_f_ctl) & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_lport_bsg_resp()
2091 did = ntoh24(bsg_request->rqst_data.h_ct.port_id); in fc_lport_bsg_request()
2109 did = ntoh24(bsg_request->rqst_data.h_els.port_id); in fc_lport_bsg_request()
/Linux-v5.4/drivers/scsi/qedf/
Dqedf_main.c1021 if (base_lport->port_id == ntoh24(fh->fh_d_id)) { in qedf_xmit()
1028 if (tmp_lport->port_id == ntoh24(fh->fh_d_id)) { in qedf_xmit()
1034 if (vn_port && ntoh24(fh->fh_d_id) != FC_FID_FLOGI) { in qedf_xmit()
1038 "Dropping FCoE frame to %06x.\n", ntoh24(fh->fh_d_id)); in qedf_xmit()
1040 rdata = fc_rport_lookup(lport, ntoh24(fh->fh_d_id)); in qedf_xmit()
1072 fcport = qedf_fcport_lookup(qedf, ntoh24(fh->fh_d_id)); in qedf_xmit()
1162 ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id), fh->fh_r_ctl, fh->fh_type, in qedf_xmit()
2395 if (ntoh24(fh->fh_s_id) == FC_FID_FLOGI) { in qedf_recv_frame()
2410 if (ntoh24(&dest_mac[3]) != ntoh24(fh->fh_d_id)) { in qedf_recv_frame()
2427 vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); in qedf_recv_frame()
[all …]
Dqedf_fip.c261 ntoh24(vp->fd_fc_id), vp->fd_mac, in qedf_fip_recv()
268 (ntoh24(vp->fd_fc_id) == in qedf_fip_recv()
/Linux-v5.4/drivers/target/tcm_fc/
Dtfc_io.c217 if (!(ntoh24(fh->fh_f_ctl) & FC_FC_REL_OFF)) in ft_recv_write_data()
220 f_ctl = ntoh24(fh->fh_f_ctl); in ft_recv_write_data()
Dtfc_cmd.c207 f_ctl = ntoh24(fh->fh_f_ctl); in ft_write_pending()
284 ntoh24(fh->fh_s_id), ntohs(fh->fh_ox_id), status, code); in ft_send_resp_status()
/Linux-v5.4/net/smc/
Dsmc.h244 static inline u32 ntoh24(u8 *net) in ntoh24() function
Daf_smc.c457 link->peer_qpn = ntoh24(clc->qpn); in smc_link_save_peer_info()
460 link->peer_psn = ntoh24(clc->psn); in smc_link_save_peer_info()
596 ini->ib_clcqpn = ntoh24(aclc->qpn); in smc_connect_rdma()
/Linux-v5.4/drivers/scsi/fcoe/
Dfcoe_ctlr.c741 if (ntoh24(fh->fh_s_id)) in fcoe_ctlr_els_send()
749 if (ntoh24(fh->fh_d_id) == FC_FID_FLOGI) in fcoe_ctlr_els_send()
754 if (ntoh24(fh->fh_d_id) != FC_FID_FLOGI) in fcoe_ctlr_els_send()
787 op, ntoh24(fh->fh_d_id)); in fcoe_ctlr_els_send()
788 if (fcoe_ctlr_encaps(fip, lport, op, skb, ntoh24(fh->fh_d_id))) in fcoe_ctlr_els_send()
794 op, ntoh24(fh->fh_d_id)); in fcoe_ctlr_els_send()
965 fcf->fc_map = ntoh24(fab->fd_map); in fcoe_ctlr_parse_adv()
1425 ntoh24(vp->fd_fc_id)); in fcoe_ctlr_recv_clr_vlink()
1477 ntoh24(vp->fd_fc_id)); in fcoe_ctlr_recv_clr_vlink()
1694 ntoh24(fh->fh_d_id)); in fcoe_ctlr_flogi_send_locked()
[all …]
Dfcoe.c1389 if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { in fcoe_rcv()
1405 if (ntoh24(fh->fh_f_ctl) & FC_FC_EX_CTX) in fcoe_rcv()
1633 ntoh24(fh->fh_s_id) == FC_FID_FLOGI) { in fcoe_filter_frames()
2642 if (ntoh24(fh->fh_d_id) != FC_FID_FLOGI) in fcoe_elsct_send()
/Linux-v5.4/scripts/coccinelle/tests/
Dunsigned_lesser_than_zero.cocci40 …ap_sg|dma_map_sg_attrs|fls|fls64|gameport_time|get_write_extents|nla_len|ntoh24|of_flat_dt_match|o…
/Linux-v5.4/drivers/s390/scsi/
Dzfcp_fc.c240 if ((port->d_id & range) == (ntoh24(page->rscn_fid) & range)) in _zfcp_fc_incoming_rscn()
356 ct_els->port->d_id = ntoh24(gid_pn_rsp->gid_pn.fp_fid); in zfcp_fc_ns_gid_pn_eval()
748 d_id = ntoh24(acc->fp_fid); in zfcp_fc_eval_gpn_ft()
1017 d_id = ntoh24(bsg_request->rqst_data.h_els.port_id); in zfcp_fc_exec_els_job()
Dzfcp_dbf.c138 rec->u.uss.d_id = ntoh24(srb->d_id); in zfcp_dbf_hba_fsf_uss()
603 fsf->req_id, ntoh24(srb->d_id), length); in zfcp_dbf_san_in_els()
Dzfcp_fsf.c110 int d_id = ntoh24(sr_buf->d_id); in zfcp_fsf_status_read_port_closed()
521 fc_host_port_id(shost) = ntoh24(bottom->s_id); in zfcp_fsf_exchange_config_evaluate()
529 adapter->peer_d_id = ntoh24(bottom->peer_d_id); in zfcp_fsf_exchange_config_evaluate()
/Linux-v5.4/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c318 tgt = bnx2fc_tgt_lookup(port, ntoh24(fh->fh_d_id)); in bnx2fc_xmit()
322 "port_id = 0x%x\n", ntoh24(fh->fh_d_id)); in bnx2fc_xmit()
564 if (ntoh24(&dest_mac[3]) != ntoh24(fh->fh_d_id)) { in bnx2fc_recv_frame()
571 vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); in bnx2fc_recv_frame()
598 if (ntoh24(fh->fh_s_id) == FC_FID_FLOGI) { in bnx2fc_recv_frame()
618 if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) { in bnx2fc_recv_frame()
620 lport->port_id, ntoh24(fh->fh_d_id)); in bnx2fc_recv_frame()
/Linux-v5.4/drivers/scsi/qedi/
Dqedi_fw.c1052 login_req_pdu_header.hdr_second_dword = ntoh24(login_hdr->dlength); in qedi_send_iscsi_login()
1068 tx_sgl_task_params.total_buffer_size = ntoh24(login_hdr->dlength); in qedi_send_iscsi_login()
1085 task_params.tx_io_size = ntoh24(login_hdr->dlength); in qedi_send_iscsi_login()
1522 tmf_pdu_header.hdr_second_dword = ntoh24(tmf_hdr->dlength); in qedi_send_iscsi_tmf()
1644 text_request_pdu_header.hdr_second_dword = ntoh24(text_hdr->dlength); in qedi_send_iscsi_text()
1670 task_params.tx_io_size = ntoh24(text_hdr->dlength); in qedi_send_iscsi_text()
2103 cmd_pdu_header.hdr_second_dword = ntoh24(hdr->dlength); in qedi_iscsi_send_ioreq()
/Linux-v5.4/drivers/infiniband/ulp/iser/
Diser_initiator.c448 data_seg_len = ntoh24(hdr->dlength); in iser_send_data_out()
513 data_seg_len = ntoh24(task->hdr->dlength); in iser_send_control()
Discsi_iser.c131 datalen = ntoh24(hdr->dlength); in iscsi_iser_recv()
/Linux-v5.4/drivers/scsi/
Discsi_tcp.c463 hdr_spec_len = ntoh24(tcp_sw_conn->out.hdr->dlength); in iscsi_sw_tcp_send_data_prep()
488 hdr_spec_len = ntoh24(tcp_sw_conn->out.hdr->dlength); in iscsi_sw_tcp_send_linear_data_prep()

12