Lines Matching +full:host +full:- +full:id

85 	SNIC_STAT_ITMF_INCORRECT_LUN,	/* itmf req has incorrect LUN id*/
95 * snic_io_hdr : host <--> firmware
114 snic_io_hdr_enc(struct snic_io_hdr *hdr, u8 typ, u8 status, u32 id, u32 hid, in snic_io_hdr_enc() argument
117 hdr->type = typ; in snic_io_hdr_enc()
118 hdr->status = status; in snic_io_hdr_enc()
119 hdr->protocol = 0; in snic_io_hdr_enc()
120 hdr->hid = cpu_to_le32(hid); in snic_io_hdr_enc()
121 hdr->cmnd_id = cpu_to_le32(id); in snic_io_hdr_enc()
122 hdr->sg_cnt = cpu_to_le16(sg_cnt); in snic_io_hdr_enc()
123 hdr->init_ctx = ctx; in snic_io_hdr_enc()
124 hdr->flags = 0; in snic_io_hdr_enc()
132 *typ = hdr->type; in snic_io_hdr_dec()
133 *stat = hdr->status; in snic_io_hdr_dec()
134 *hid = le32_to_cpu(hdr->hid); in snic_io_hdr_dec()
135 *cmnd_id = le32_to_cpu(hdr->cmnd_id); in snic_io_hdr_dec()
136 *ctx = hdr->init_ctx; in snic_io_hdr_dec()
140 * snic_host_info: host -> firmware
142 * Used for sending host information to firmware, and request fw version
151 * Bit 0-7 : OS information
152 * Bit 8-31: Feature/Capability Information
164 * Bit 5-31: Reserved.
171 * snic_exch_ver_rsp : firmware -> host
189 * snic_report_tgts : host -> firmware request
191 * Used by the host to request list of targets
215 /* target id format */
217 __le32 tgt_id; /* target id */
219 __le16 vnic_id; /* corresponding vnic id */
223 * snic_report_tgts_cmpl : firmware -> host response
237 * Bit 2: ESGL - sg/esg array contains extended sg
238 * ESGE - is a host buffer contains sg elements
239 * Bit 3-4: Task Attributes
240 * 00b - simple
241 * 01b - head of queue
242 * 10b - ordered
243 * Bit 5-7: Priority - future use
244 * Bit 8-15: Reserved
263 * snic_icmnd : host-> firmware request
265 * used for sending out an initiator SCSI 16/32-byte command
271 __le64 tgt_id; /* Destination Target ID */
272 __le64 lun_id; /* Destination LUN ID */
286 * Bit 2-7: Reserved
292 * snic_icmnd_cmpl: firmware -> host response
294 * Used for sending the host a response to an icmnd (initiator command)
304 * snic_itmf: host->firmware request
315 __le32 req_id; /* Command id of snic req to be aborted */
316 __le64 tgt_id; /* Target ID */
317 __le64 lun_id; /* Destination LUN ID */
334 * snic_itmf_cmpl: firmware -> host resposne
336 * used for sending the host a response for a itmf request
346 * Bit 0 : 1 - Num terminated field valid
347 * Bit 1 - 7 : Reserved
352 * snic_hba_reset: host -> firmware request
362 * snic_hba_reset_cmpl: firmware -> host response
364 * Used by firmware to respond to the host's hba reset request
372 * snic_notify_msg: firmware -> host response
374 * Used by firmware to notify host of the last work queue entry received
384 /* snic_async_evnotify: firmware -> host notification
386 * Used by firmware to notify the host about configuration/state changes
390 u8 vnic; /* vnic id */
392 __le32 ev_id; /* Event ID */
399 SNIC_EV_TGT_OFFLINE = 0x01, /* Target Offline, PL contains TGT ID */
400 SNIC_EV_TGT_ONLINE, /* Target Online, PL contains TGT ID */
401 SNIC_EV_LUN_OFFLINE, /* LUN Offline, PL contains LUN ID */
402 SNIC_EV_LUN_ONLINE, /* LUN Online, PL contains LUN ID */
405 SNIC_EV_TGT_DELTD, /* Target Del'd, PL contains TGT ID */
407 SNIC_EV_LUN_DELTD, /* LUN Del'd, PL cont. TGT & LUN ID */
413 #define SNIC_HOST_REQ_LEN 128 /*Exp length of host req, wq desc sz*/
414 /* Payload 88 bytes = 128 - 24 - 16 */
415 #define SNIC_HOST_REQ_PAYLOAD ((int)(SNIC_HOST_REQ_LEN - \
416 sizeof(struct snic_io_hdr) - \
417 (2 * sizeof(u64)) - sizeof(ulong)))
420 * snic_host_req: host -> firmware request
422 * Basic structure for all snic requests that are sent from the host to
426 u64 ctrl_data[2]; /*16 bytes - Control Data */
463 u8 buf[SNIC_FW_REQ_LEN - sizeof(struct snic_io_hdr)];
504 u8 *c = ((u8 *) req) + sizeof(struct snic_fw_req) - 1; in snic_color_enc()
515 u8 *c = ((u8 *) req) + sizeof(struct snic_fw_req) - 1; in snic_color_dec()