Home
last modified time | relevance | path

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

/drivers/staging/usbip/
Dusbip_common.c294 void usbip_dump_header(struct usbip_header *pdu) in usbip_dump_header() argument
297 pdu->base.command, in usbip_dump_header()
298 pdu->base.seqnum, in usbip_dump_header()
299 pdu->base.devid, in usbip_dump_header()
300 pdu->base.direction, in usbip_dump_header()
301 pdu->base.ep); in usbip_dump_header()
303 switch (pdu->base.command) { in usbip_dump_header()
307 pdu->u.cmd_submit.transfer_flags, in usbip_dump_header()
308 pdu->u.cmd_submit.transfer_buffer_length, in usbip_dump_header()
309 pdu->u.cmd_submit.start_frame, in usbip_dump_header()
[all …]
Dvhci_rx.c67 struct usbip_header *pdu) in vhci_recv_ret_submit() argument
74 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
78 pr_err("cannot find a urb of seqnum %u\n", pdu->base.seqnum); in vhci_recv_ret_submit()
86 usbip_pack_pdu(pdu, urb, USBIP_RET_SUBMIT, 0); in vhci_recv_ret_submit()
116 struct usbip_header *pdu) in dequeue_pending_unlink() argument
124 if (unlink->seqnum == pdu->base.seqnum) { in dequeue_pending_unlink()
140 struct usbip_header *pdu) in vhci_recv_ret_unlink() argument
146 usbip_dump_header(pdu); in vhci_recv_ret_unlink()
148 unlink = dequeue_pending_unlink(vdev, pdu); in vhci_recv_ret_unlink()
151 pdu->base.seqnum); in vhci_recv_ret_unlink()
[all …]
Dstub_rx.c230 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument
239 if (priv->seqnum == pdu->u.cmd_unlink.seqnum) { in stub_recv_cmd_unlink()
261 priv->seqnum = pdu->base.seqnum; in stub_recv_cmd_unlink()
290 pdu->u.cmd_unlink.seqnum); in stub_recv_cmd_unlink()
298 stub_enqueue_ret_unlink(sdev, pdu->base.seqnum, 0); in stub_recv_cmd_unlink()
305 static int valid_request(struct stub_device *sdev, struct usbip_header *pdu) in valid_request() argument
310 if (pdu->base.devid == sdev->devid) { in valid_request()
323 struct usbip_header *pdu) in stub_priv_alloc() argument
339 priv->seqnum = pdu->base.seqnum; in stub_priv_alloc()
458 struct usbip_header *pdu) in stub_recv_cmd_submit() argument
[all …]
Dusbip_common.h297 void usbip_dump_header(struct usbip_header *pdu);
302 void usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd,
304 void usbip_header_correct_endian(struct usbip_header *pdu, int send);
/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c52 struct iscsi_pdu *pdu; in iscsit_dump_pdu_list() local
58 pdu = &cmd->pdu_list[i]; in iscsit_dump_pdu_list()
60 " pdu_send_order: %d, seq_no: %d\n", i, pdu->offset, in iscsit_dump_pdu_list()
61 pdu->length, pdu->pdu_send_order, pdu->seq_no); in iscsit_dump_pdu_list()
297 struct iscsi_pdu *pdu = cmd->pdu_list; in iscsit_build_pdu_and_seq_list() local
316 pdu[i].offset = offset; in iscsit_build_pdu_and_seq_list()
317 pdu[i].seq_no = seq_no; in iscsit_build_pdu_and_seq_list()
329 pdu[i].type = PDUTYPE_IMMEDIATE; in iscsit_build_pdu_and_seq_list()
330 pdu[i++].length = bl->immediate_data_length; in iscsit_build_pdu_and_seq_list()
351 pdu[i].type = PDUTYPE_UNSOLICITED; in iscsit_build_pdu_and_seq_list()
[all …]
Discsi_target_datain_values.c317 struct iscsi_pdu *pdu; in iscsit_set_datain_values_yes_and_no() local
343 pdu = iscsit_get_pdu_holder_for_seq(cmd, NULL); in iscsit_set_datain_values_yes_and_no()
344 if (!pdu) in iscsit_set_datain_values_yes_and_no()
347 if ((read_data_done + pdu->length) == cmd->data_length) { in iscsit_set_datain_values_yes_and_no()
348 pdu->flags |= (ISCSI_FLAG_CMD_FINAL | ISCSI_FLAG_DATA_STATUS); in iscsit_set_datain_values_yes_and_no()
350 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
356 next_burst_len += pdu->length; in iscsit_set_datain_values_yes_and_no()
358 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_yes_and_no()
360 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
366 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_yes_and_no()
[all …]
Discsi_target_tmr.c486 struct iscsi_pdu *pdu = NULL; in iscsit_task_reassign_prepare_unsolicited_dataout() local
506 pdu = &cmd->pdu_list[i]; in iscsit_task_reassign_prepare_unsolicited_dataout()
508 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_task_reassign_prepare_unsolicited_dataout()
511 if ((pdu->offset >= cmd->seq_start_offset) && in iscsit_task_reassign_prepare_unsolicited_dataout()
512 ((pdu->offset + pdu->length) <= in iscsit_task_reassign_prepare_unsolicited_dataout()
514 cmd->first_burst_len -= pdu->length; in iscsit_task_reassign_prepare_unsolicited_dataout()
515 cmd->write_data_done -= pdu->length; in iscsit_task_reassign_prepare_unsolicited_dataout()
516 pdu->status = ISCSI_PDU_NOT_RECEIVED; in iscsit_task_reassign_prepare_unsolicited_dataout()
538 pdu = &cmd->pdu_list[j+seq->pdu_start]; in iscsit_task_reassign_prepare_unsolicited_dataout()
540 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_task_reassign_prepare_unsolicited_dataout()
[all …]
Discsi_target_login.c224 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_zero_tsih_s1() local
234 iscsi_login_set_conn_values(sess, conn, pdu->cid); in iscsi_login_zero_tsih_s1()
235 sess->init_task_tag = pdu->itt; in iscsi_login_zero_tsih_s1()
236 memcpy(&sess->isid, pdu->isid, 6); in iscsi_login_zero_tsih_s1()
237 sess->exp_cmd_sn = pdu->cmdsn; in iscsi_login_zero_tsih_s1()
270 sess->max_cmd_sn = pdu->cmdsn; in iscsi_login_zero_tsih_s1()
419 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_non_zero_tsih_s1() local
421 iscsi_login_set_conn_values(NULL, conn, pdu->cid); in iscsi_login_non_zero_tsih_s1()
436 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_non_zero_tsih_s2() local
447 if (!memcmp(sess_p->isid, pdu->isid, 6) && in iscsi_login_non_zero_tsih_s2()
[all …]
Discsi_target_erl0.c464 struct iscsi_pdu *pdu; in iscsit_dataout_pre_datapduinorder_no() local
468 pdu = iscsit_get_pdu_holder(cmd, hdr->offset, payload_length); in iscsit_dataout_pre_datapduinorder_no()
469 if (!pdu) in iscsit_dataout_pre_datapduinorder_no()
472 cmd->pdu_ptr = pdu; in iscsit_dataout_pre_datapduinorder_no()
474 switch (pdu->status) { in iscsit_dataout_pre_datapduinorder_no()
516 struct iscsi_pdu *pdu = cmd->pdu_ptr; in iscsit_dataout_update_datapduinorder_no() local
518 pdu->data_sn = data_sn; in iscsit_dataout_update_datapduinorder_no()
520 switch (pdu->status) { in iscsit_dataout_update_datapduinorder_no()
522 pdu->status = ISCSI_PDU_RECEIVED_OK; in iscsit_dataout_update_datapduinorder_no()
525 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()
618 struct iscsi_pdu *pdu) in iscsit_dataout_datapduinorder_no_fbit() argument
631 if (cmd->pdu_list[i].seq_no == pdu->seq_no) { in iscsit_dataout_datapduinorder_no_fbit()
701 struct iscsi_pdu *pdu = NULL; in iscsit_recalculate_dataout_values() local
717 pdu = &cmd->pdu_list[i]; in iscsit_recalculate_dataout_values()
719 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_recalculate_dataout_values()
[all …]
Discsi_target.c603 hdr = (struct iscsi_reject *) cmd->pdu; in iscsit_add_reject()
649 hdr = (struct iscsi_reject *) cmd->pdu; in iscsit_add_reject_from_cmd()
2389 hdr = (struct iscsi_async *) cmd->pdu; in iscsit_send_conn_drop_async_message()
2405 u32 *header_digest = (u32 *)&cmd->pdu[ISCSI_HDR_LEN]; in iscsit_send_conn_drop_async_message()
2416 cmd->iov_misc[0].iov_base = cmd->pdu; in iscsit_send_conn_drop_async_message()
2483 hdr = (struct iscsi_data_rsp *) cmd->pdu; in iscsit_send_data_in()
2515 iov[iov_count].iov_base = cmd->pdu; in iscsit_send_data_in()
2520 u32 *header_digest = (u32 *)&cmd->pdu[ISCSI_HDR_LEN]; in iscsit_send_data_in()
2657 hdr = (struct iscsi_logout_rsp *)cmd->pdu; in iscsit_send_logout_response()
2671 iov[niov].iov_base = cmd->pdu; in iscsit_send_logout_response()
[all …]
Discsi_target_core.h425 unsigned char pdu[ISCSI_HDR_LEN + ISCSI_CRC_LEN]; member
Discsi_target_util.c1310 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.h118 struct pdu { struct
125 #define PDU_HEADER_LENGTH (sizeof(struct pdu))
Dctcm_mpc.c245 struct pdu *pheader; in ctcmpc_dump_skb()
274 pheader = (struct pdu *)p; in ctcmpc_dump_skb()
1059 struct pdu *curr_pdu; in ctcmpc_unpack_skb()
1117 curr_pdu = (struct pdu *)pskb->data; in ctcmpc_unpack_skb()
Dctcm_main.c667 struct pdu *p_header; in ctcmpc_transmit_skb()
768 p_header = (struct pdu *)skb->data; in ctcmpc_transmit_skb()
Dctcm_fsms.c1233 struct pdu *p_header; in ctcmpc_chx_txdone()
1289 p_header = (struct pdu *) in ctcmpc_chx_txdone()
/drivers/net/wireless/brcm80211/brcmsmac/
Dampdu.c503 struct sk_buff **pdu, int prec) in brcms_c_sendampdu() argument
539 p = *pdu; in brcms_c_sendampdu()
570 *pdu = NULL; in brcms_c_sendampdu()
580 *pdu = p; in brcms_c_sendampdu()
587 *pdu = NULL; in brcms_c_sendampdu()
Dmain.h662 extern int brcms_c_prep_pdu(struct brcms_c_info *wlc, struct sk_buff *pdu,
Dmain.c7884 int brcms_c_prep_pdu(struct brcms_c_info *wlc, struct sk_buff *pdu, uint *fifop) in brcms_c_prep_pdu() argument
7891 txh = (struct d11txh *) (pdu->data); in brcms_c_prep_pdu()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211.h490 #define IsDataFrame(pdu) ( ((pdu[0] & 0x0C)==0x08) ? true : false ) argument
491 #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.c1345 char *pdu; in iscsi_recv_pdu() local
1369 pdu = (char*)ev + sizeof(*ev); in iscsi_recv_pdu()
1370 memcpy(pdu, hdr, sizeof(struct iscsi_hdr)); in iscsi_recv_pdu()
1371 memcpy(pdu + sizeof(struct iscsi_hdr), data, data_size); in iscsi_recv_pdu()