Lines Matching refs:hdr
10 #define frame_printf(efct, hdr, fmt, ...) \
13 efc_node_fcid_display(ntoh24((hdr)->fh_s_id), \
16 ntoh24((hdr)->fh_d_id), s_id_text, \
17 (hdr)->fh_r_ctl, be16_to_cpu((hdr)->fh_ox_id), \
18 be16_to_cpu((hdr)->fh_rx_id), ##__VA_ARGS__); \
43 struct fc_frame_header *hdr;
46 hdr = seq->header->dma.virt;
49 s_id = ntoh24(hdr->fh_s_id);
50 d_id = ntoh24(hdr->fh_d_id);
52 if (!(hdr->fh_type == FC_TYPE_FCP || hdr->fh_type == FC_TYPE_BLS))
55 if (hdr->fh_type == FC_TYPE_FCP) {
230 struct fc_frame_header hdr;
239 memset(&hdr, 0, sizeof(hdr));
240 hdr.fh_r_ctl = r_ctl;
242 memcpy(hdr.fh_d_id, req_hdr->fh_s_id, sizeof(hdr.fh_d_id));
243 memcpy(hdr.fh_s_id, req_hdr->fh_d_id, sizeof(hdr.fh_s_id));
244 hdr.fh_type = type;
245 hton24(hdr.fh_f_ctl, f_ctl);
246 hdr.fh_ox_id = req_hdr->fh_ox_id;
247 hdr.fh_rx_id = req_hdr->fh_rx_id;
248 hdr.fh_cs_ctl = 0;
249 hdr.fh_df_ctl = 0;
250 hdr.fh_seq_cnt = 0;
251 hdr.fh_parm_offset = 0;
255 * while storing only the low 8 bits to hdr->seq_id
257 hdr.fh_seq_id = (u8)atomic_add_return(1, &hw->send_frame_seq_id);
258 hdr.fh_seq_id--;
290 rc = efct_hw_send_frame(&efct->hw, (void *)&hdr, FC_SOF_N3,
402 efct_process_abts(struct efct_io *io, struct fc_frame_header *hdr)
406 u16 ox_id = be16_to_cpu(hdr->fh_ox_id);
407 u16 rx_id = be16_to_cpu(hdr->fh_rx_id);
457 efct_bls_send_rjt(io, hdr);
466 struct fc_frame_header *hdr = seq->header->dma.virt;
486 ntoh24(hdr->fh_s_id), ntoh24(hdr->fh_d_id),
487 be16_to_cpu(hdr->fh_ox_id),
488 be16_to_cpu(hdr->fh_rx_id));