Home
last modified time | relevance | path

Searched refs:pdu (Results 1 – 21 of 21) sorted by relevance

/drivers/staging/usbip/
Dusbip_common.c297 void usbip_dump_header(struct usbip_header *pdu) in usbip_dump_header() argument
300 pdu->base.command, in usbip_dump_header()
301 pdu->base.seqnum, in usbip_dump_header()
302 pdu->base.devid, in usbip_dump_header()
303 pdu->base.direction, in usbip_dump_header()
304 pdu->base.ep); in usbip_dump_header()
306 switch (pdu->base.command) { in usbip_dump_header()
310 pdu->u.cmd_submit.transfer_flags, in usbip_dump_header()
311 pdu->u.cmd_submit.transfer_buffer_length, in usbip_dump_header()
312 pdu->u.cmd_submit.start_frame, in usbip_dump_header()
[all …]
Dvhci_rx.c71 struct usbip_header *pdu) in vhci_recv_ret_submit() argument
77 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
81 pr_err("cannot find a urb of seqnum %u\n", pdu->base.seqnum); in vhci_recv_ret_submit()
89 usbip_pack_pdu(pdu, urb, USBIP_RET_SUBMIT, 0); in vhci_recv_ret_submit()
119 struct usbip_header *pdu) in dequeue_pending_unlink() argument
127 if (unlink->seqnum == pdu->base.seqnum) { in dequeue_pending_unlink()
143 struct usbip_header *pdu) in vhci_recv_ret_unlink() argument
148 usbip_dump_header(pdu); in vhci_recv_ret_unlink()
150 unlink = dequeue_pending_unlink(vdev, pdu); in vhci_recv_ret_unlink()
153 pdu->base.seqnum); in vhci_recv_ret_unlink()
[all …]
Dstub_rx.c229 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument
238 if (priv->seqnum != pdu->u.cmd_unlink.seqnum) in stub_recv_cmd_unlink()
260 priv->seqnum = pdu->base.seqnum; in stub_recv_cmd_unlink()
289 pdu->u.cmd_unlink.seqnum); in stub_recv_cmd_unlink()
297 stub_enqueue_ret_unlink(sdev, pdu->base.seqnum, 0); in stub_recv_cmd_unlink()
304 static int valid_request(struct stub_device *sdev, struct usbip_header *pdu) in valid_request() argument
309 if (pdu->base.devid == sdev->devid) { in valid_request()
322 struct usbip_header *pdu) in stub_priv_alloc() argument
338 priv->seqnum = pdu->base.seqnum; in stub_priv_alloc()
457 struct usbip_header *pdu) in stub_recv_cmd_submit() argument
[all …]
Dusbip_common.h314 void usbip_dump_header(struct usbip_header *pdu);
319 void usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd,
321 void usbip_header_correct_endian(struct usbip_header *pdu, int send);
/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c54 struct iscsi_pdu *pdu; in iscsit_dump_pdu_list() local
60 pdu = &cmd->pdu_list[i]; in iscsit_dump_pdu_list()
62 " pdu_send_order: %d, seq_no: %d\n", i, pdu->offset, in iscsit_dump_pdu_list()
63 pdu->length, pdu->pdu_send_order, pdu->seq_no); in iscsit_dump_pdu_list()
305 struct iscsi_pdu *pdu = cmd->pdu_list; in iscsit_do_build_pdu_and_seq_lists() local
328 pdu[i].offset = offset; in iscsit_do_build_pdu_and_seq_lists()
329 pdu[i].seq_no = seq_no; in iscsit_do_build_pdu_and_seq_lists()
341 pdu[i].type = PDUTYPE_IMMEDIATE; in iscsit_do_build_pdu_and_seq_lists()
342 pdu[i++].length = bl->immediate_data_length; in iscsit_do_build_pdu_and_seq_lists()
361 pdu[i].type = PDUTYPE_UNSOLICITED; in iscsit_do_build_pdu_and_seq_lists()
[all …]
Discsi_target_datain_values.c314 struct iscsi_pdu *pdu; in iscsit_set_datain_values_yes_and_no() local
340 pdu = iscsit_get_pdu_holder_for_seq(cmd, NULL); in iscsit_set_datain_values_yes_and_no()
341 if (!pdu) in iscsit_set_datain_values_yes_and_no()
344 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) { in iscsit_set_datain_values_yes_and_no()
345 pdu->flags |= (ISCSI_FLAG_CMD_FINAL | ISCSI_FLAG_DATA_STATUS); in iscsit_set_datain_values_yes_and_no()
347 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
353 next_burst_len += pdu->length; in iscsit_set_datain_values_yes_and_no()
355 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_yes_and_no()
357 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
363 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_yes_and_no()
[all …]
Discsi_target_tmr.c492 struct iscsi_pdu *pdu = NULL; in iscsit_task_reassign_prepare_unsolicited_dataout() local
512 pdu = &cmd->pdu_list[i]; in iscsit_task_reassign_prepare_unsolicited_dataout()
514 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_task_reassign_prepare_unsolicited_dataout()
517 if ((pdu->offset >= cmd->seq_start_offset) && in iscsit_task_reassign_prepare_unsolicited_dataout()
518 ((pdu->offset + pdu->length) <= in iscsit_task_reassign_prepare_unsolicited_dataout()
520 cmd->first_burst_len -= pdu->length; in iscsit_task_reassign_prepare_unsolicited_dataout()
521 cmd->write_data_done -= pdu->length; in iscsit_task_reassign_prepare_unsolicited_dataout()
522 pdu->status = ISCSI_PDU_NOT_RECEIVED; in iscsit_task_reassign_prepare_unsolicited_dataout()
544 pdu = &cmd->pdu_list[j+seq->pdu_start]; in iscsit_task_reassign_prepare_unsolicited_dataout()
546 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_task_reassign_prepare_unsolicited_dataout()
[all …]
Discsi_target_erl0.c467 struct iscsi_pdu *pdu; in iscsit_dataout_pre_datapduinorder_no() local
471 pdu = iscsit_get_pdu_holder(cmd, be32_to_cpu(hdr->offset), in iscsit_dataout_pre_datapduinorder_no()
473 if (!pdu) in iscsit_dataout_pre_datapduinorder_no()
476 cmd->pdu_ptr = pdu; in iscsit_dataout_pre_datapduinorder_no()
478 switch (pdu->status) { in iscsit_dataout_pre_datapduinorder_no()
520 struct iscsi_pdu *pdu = cmd->pdu_ptr; in iscsit_dataout_update_datapduinorder_no() local
522 pdu->data_sn = data_sn; in iscsit_dataout_update_datapduinorder_no()
524 switch (pdu->status) { in iscsit_dataout_update_datapduinorder_no()
526 pdu->status = ISCSI_PDU_RECEIVED_OK; in iscsit_dataout_update_datapduinorder_no()
529 pdu->status = ISCSI_PDU_RECEIVED_OK; in iscsit_dataout_update_datapduinorder_no()
[all …]
Discsi_target_erl1.c345 struct iscsi_pdu *pdu; in iscsit_create_recovery_datain_values_datasequenceinorder_no() local
351 pdu = &cmd->pdu_list[ in iscsit_create_recovery_datain_values_datasequenceinorder_no()
353 if (pdu->data_sn == data_sn) { in iscsit_create_recovery_datain_values_datasequenceinorder_no()
355 pdu->length; in iscsit_create_recovery_datain_values_datasequenceinorder_no()
357 pdu->length; in iscsit_create_recovery_datain_values_datasequenceinorder_no()
617 struct iscsi_pdu *pdu) in iscsit_dataout_datapduinorder_no_fbit() argument
630 if (cmd->pdu_list[i].seq_no == pdu->seq_no) { in iscsit_dataout_datapduinorder_no_fbit()
700 struct iscsi_pdu *pdu = NULL; in iscsit_recalculate_dataout_values() local
716 pdu = &cmd->pdu_list[i]; in iscsit_recalculate_dataout_values()
718 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_recalculate_dataout_values()
[all …]
Discsi_target_login.c262 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_zero_tsih_s1() local
273 iscsi_login_set_conn_values(sess, conn, pdu->cid); in iscsi_login_zero_tsih_s1()
274 sess->init_task_tag = pdu->itt; in iscsi_login_zero_tsih_s1()
275 memcpy(&sess->isid, pdu->isid, 6); in iscsi_login_zero_tsih_s1()
276 sess->exp_cmd_sn = be32_to_cpu(pdu->cmdsn); in iscsi_login_zero_tsih_s1()
314 sess->max_cmd_sn = be32_to_cpu(pdu->cmdsn); in iscsi_login_zero_tsih_s1()
517 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_non_zero_tsih_s1() local
519 iscsi_login_set_conn_values(NULL, conn, pdu->cid); in iscsi_login_non_zero_tsih_s1()
534 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_non_zero_tsih_s2() local
546 if (!memcmp(sess_p->isid, pdu->isid, 6) && in iscsi_login_non_zero_tsih_s2()
[all …]
Discsi_target.c648 hdr = (struct iscsi_reject *) cmd->pdu; in iscsit_add_reject()
694 hdr = (struct iscsi_reject *) cmd->pdu; in iscsit_add_reject_from_cmd()
2509 hdr = (struct iscsi_async *) cmd->pdu; in iscsit_send_conn_drop_async_message()
2525 u32 *header_digest = (u32 *)&cmd->pdu[ISCSI_HDR_LEN]; in iscsit_send_conn_drop_async_message()
2535 cmd->iov_misc[0].iov_base = cmd->pdu; in iscsit_send_conn_drop_async_message()
2602 struct iscsi_data_rsp *hdr = (struct iscsi_data_rsp *)&cmd->pdu[0]; in iscsit_send_datain()
2657 iov[iov_count].iov_base = cmd->pdu; in iscsit_send_datain()
2662 u32 *header_digest = (u32 *)&cmd->pdu[ISCSI_HDR_LEN]; in iscsit_send_datain()
2664 iscsit_do_crypto_hash_buf(&conn->conn_tx_hash, cmd->pdu, in iscsit_send_datain()
2830 (struct iscsi_logout_rsp *)&cmd->pdu[0]); in iscsit_send_logout()
[all …]
Discsi_target_core.h433 unsigned char pdu[ISCSI_HDR_LEN + ISCSI_CRC_LEN]; member
Discsi_target_util.c1179 iov.iov_base = cmd->pdu; in iscsit_fe_sendpage_sg()
/drivers/net/ethernet/sfc/
Dmcdi.c73 unsigned pdu = FR_CZ_MC_TREG_SMEM + MCDI_PDU(efx); in efx_mcdi_copyin() local
95 efx_writed(efx, &hdr, pdu); in efx_mcdi_copyin()
98 _efx_writed(efx, *((__le32 *)(inbuf + i)), pdu + 4 + i); in efx_mcdi_copyin()
110 unsigned int pdu = FR_CZ_MC_TREG_SMEM + MCDI_PDU(efx); in efx_mcdi_copyout() local
117 *((__le32 *)(outbuf + i)) = _efx_readd(efx, pdu + 4 + i); in efx_mcdi_copyout()
125 unsigned int pdu = FR_CZ_MC_TREG_SMEM + MCDI_PDU(efx); in efx_mcdi_poll() local
152 efx_readd(efx, &reg, pdu); in efx_mcdi_poll()
179 efx_readd(efx, &reg, pdu + 4); in efx_mcdi_poll()
/drivers/s390/net/
Dctcm_mpc.h116 struct pdu { struct
123 #define PDU_HEADER_LENGTH (sizeof(struct pdu))
Dctcm_mpc.c243 struct pdu *pheader; in ctcmpc_dump_skb()
272 pheader = (struct pdu *)p; in ctcmpc_dump_skb()
1057 struct pdu *curr_pdu; in ctcmpc_unpack_skb()
1115 curr_pdu = (struct pdu *)pskb->data; in ctcmpc_unpack_skb()
Dctcm_main.c665 struct pdu *p_header; in ctcmpc_transmit_skb()
766 p_header = (struct pdu *)skb->data; in ctcmpc_transmit_skb()
Dctcm_fsms.c1231 struct pdu *p_header; in ctcmpc_chx_txdone()
1287 p_header = (struct pdu *) in ctcmpc_chx_txdone()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211.h493 #define IsDataFrame(pdu) ( ((pdu[0] & 0x0C)==0x08) ? true : false ) argument
494 #define IsLegacyDataFrame(pdu) (IsDataFrame(pdu) && (!(pdu[0]&FC_QOS_BIT)) ) argument
/drivers/staging/rtl8192e/
Drtllib.h620 #define IsDataFrame(pdu) (((pdu[0] & 0x0C) == 0x08) ? true : false) argument
621 #define IsLegacyDataFrame(pdu) (IsDataFrame(pdu) && (!(pdu[0]&FC_QOS_BIT))) argument
/drivers/scsi/
Dscsi_transport_iscsi.c2019 char *pdu; in iscsi_recv_pdu() local
2043 pdu = (char*)ev + sizeof(*ev); in iscsi_recv_pdu()
2044 memcpy(pdu, hdr, sizeof(struct iscsi_hdr)); in iscsi_recv_pdu()
2045 memcpy(pdu + sizeof(struct iscsi_hdr), data, data_size); in iscsi_recv_pdu()