Home
last modified time | relevance | path

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

12

/drivers/usb/usbip/
Dusbip_common.c259 void usbip_dump_header(struct usbip_header *pdu) in usbip_dump_header() argument
262 pdu->base.command, in usbip_dump_header()
263 pdu->base.seqnum, in usbip_dump_header()
264 pdu->base.devid, in usbip_dump_header()
265 pdu->base.direction, in usbip_dump_header()
266 pdu->base.ep); in usbip_dump_header()
268 switch (pdu->base.command) { in usbip_dump_header()
271 pdu->u.cmd_submit.transfer_flags, in usbip_dump_header()
272 pdu->u.cmd_submit.transfer_buffer_length, in usbip_dump_header()
273 pdu->u.cmd_submit.start_frame, in usbip_dump_header()
[all …]
Dvudc_rx.c16 struct usbip_header *pdu, u8 type) in alloc_urb_from_cmd() argument
21 urb = usb_alloc_urb(pdu->u.cmd_submit.number_of_packets, in alloc_urb_from_cmd()
29 usbip_pack_pdu(pdu, urb, USBIP_CMD_SUBMIT, 0); in alloc_urb_from_cmd()
38 urb->setup_packet = kmemdup(&pdu->u.cmd_submit.setup, 8, in alloc_urb_from_cmd()
47 urb->pipe |= pdu->base.direction == USBIP_DIR_IN ? in alloc_urb_from_cmd()
63 struct usbip_header *pdu) in v_recv_cmd_unlink() argument
70 if (urb_p->seqnum != pdu->u.cmd_unlink.seqnum) in v_recv_cmd_unlink()
73 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_unlink()
80 v_enqueue_ret_unlink(udc, pdu->base.seqnum, 0); in v_recv_cmd_unlink()
89 struct usbip_header *pdu) in v_recv_cmd_submit() argument
[all …]
Dvhci_rx.c56 struct usbip_header *pdu) in vhci_recv_ret_submit() argument
65 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
70 pdu->base.seqnum, in vhci_recv_ret_submit()
77 usbip_pack_pdu(pdu, urb, USBIP_RET_SUBMIT, 0); in vhci_recv_ret_submit()
101 usbip_dbg_vhci_rx("now giveback urb %u\n", pdu->base.seqnum); in vhci_recv_ret_submit()
113 struct usbip_header *pdu) in dequeue_pending_unlink() argument
122 if (unlink->seqnum == pdu->base.seqnum) { in dequeue_pending_unlink()
138 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()
[all …]
Dstub_rx.c205 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument
214 if (priv->seqnum != pdu->u.cmd_unlink.seqnum) in stub_recv_cmd_unlink()
233 priv->seqnum = pdu->base.seqnum; in stub_recv_cmd_unlink()
264 pdu->u.cmd_unlink.seqnum); in stub_recv_cmd_unlink()
272 stub_enqueue_ret_unlink(sdev, pdu->base.seqnum, 0); in stub_recv_cmd_unlink()
279 static int valid_request(struct stub_device *sdev, struct usbip_header *pdu) in valid_request() argument
284 if (pdu->base.devid == sdev->devid) { in valid_request()
297 struct usbip_header *pdu) in stub_priv_alloc() argument
313 priv->seqnum = pdu->base.seqnum; in stub_priv_alloc()
327 static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) in get_pipe() argument
[all …]
Dusbip_common.h304 void usbip_dump_header(struct usbip_header *pdu);
308 void usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd,
310 void usbip_header_correct_endian(struct usbip_header *pdu, int send);
/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c42 struct iscsi_pdu *pdu; in iscsit_dump_pdu_list() local
48 pdu = &cmd->pdu_list[i]; in iscsit_dump_pdu_list()
50 " pdu_send_order: %d, seq_no: %d\n", i, pdu->offset, in iscsit_dump_pdu_list()
51 pdu->length, pdu->pdu_send_order, pdu->seq_no); in iscsit_dump_pdu_list()
293 struct iscsi_pdu *pdu = cmd->pdu_list; in iscsit_do_build_pdu_and_seq_lists() local
316 pdu[i].offset = offset; in iscsit_do_build_pdu_and_seq_lists()
317 pdu[i].seq_no = seq_no; in iscsit_do_build_pdu_and_seq_lists()
329 pdu[i].type = PDUTYPE_IMMEDIATE; in iscsit_do_build_pdu_and_seq_lists()
330 pdu[i++].length = bl->immediate_data_length; in iscsit_do_build_pdu_and_seq_lists()
349 pdu[i].type = PDUTYPE_UNSOLICITED; in iscsit_do_build_pdu_and_seq_lists()
[all …]
Discsi_target_datain_values.c304 struct iscsi_pdu *pdu; in iscsit_set_datain_values_yes_and_no() local
330 pdu = iscsit_get_pdu_holder_for_seq(cmd, NULL); in iscsit_set_datain_values_yes_and_no()
331 if (!pdu) in iscsit_set_datain_values_yes_and_no()
334 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) { in iscsit_set_datain_values_yes_and_no()
335 pdu->flags |= (ISCSI_FLAG_CMD_FINAL | ISCSI_FLAG_DATA_STATUS); in iscsit_set_datain_values_yes_and_no()
337 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
343 next_burst_len += pdu->length; in iscsit_set_datain_values_yes_and_no()
345 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_yes_and_no()
347 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
353 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_yes_and_no()
[all …]
Discsi_target_tmr.c482 struct iscsi_pdu *pdu = NULL; in iscsit_task_reassign_prepare_unsolicited_dataout() local
502 pdu = &cmd->pdu_list[i]; in iscsit_task_reassign_prepare_unsolicited_dataout()
504 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_task_reassign_prepare_unsolicited_dataout()
507 if ((pdu->offset >= cmd->seq_start_offset) && in iscsit_task_reassign_prepare_unsolicited_dataout()
508 ((pdu->offset + pdu->length) <= in iscsit_task_reassign_prepare_unsolicited_dataout()
510 cmd->first_burst_len -= pdu->length; in iscsit_task_reassign_prepare_unsolicited_dataout()
511 cmd->write_data_done -= pdu->length; in iscsit_task_reassign_prepare_unsolicited_dataout()
512 pdu->status = ISCSI_PDU_NOT_RECEIVED; in iscsit_task_reassign_prepare_unsolicited_dataout()
534 pdu = &cmd->pdu_list[j+seq->pdu_start]; in iscsit_task_reassign_prepare_unsolicited_dataout()
536 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_task_reassign_prepare_unsolicited_dataout()
[all …]
Discsi_target_erl0.c452 struct iscsi_pdu *pdu; in iscsit_dataout_pre_datapduinorder_no() local
456 pdu = iscsit_get_pdu_holder(cmd, be32_to_cpu(hdr->offset), in iscsit_dataout_pre_datapduinorder_no()
458 if (!pdu) in iscsit_dataout_pre_datapduinorder_no()
461 cmd->pdu_ptr = pdu; in iscsit_dataout_pre_datapduinorder_no()
463 switch (pdu->status) { in iscsit_dataout_pre_datapduinorder_no()
505 struct iscsi_pdu *pdu = cmd->pdu_ptr; in iscsit_dataout_update_datapduinorder_no() local
507 pdu->data_sn = data_sn; in iscsit_dataout_update_datapduinorder_no()
509 switch (pdu->status) { in iscsit_dataout_update_datapduinorder_no()
511 pdu->status = ISCSI_PDU_RECEIVED_OK; in iscsit_dataout_update_datapduinorder_no()
514 pdu->status = ISCSI_PDU_RECEIVED_OK; in iscsit_dataout_update_datapduinorder_no()
[all …]
Discsi_target_erl1.c310 struct iscsi_pdu *pdu; in iscsit_create_recovery_datain_values_datasequenceinorder_no() local
316 pdu = &cmd->pdu_list[ in iscsit_create_recovery_datain_values_datasequenceinorder_no()
318 if (pdu->data_sn == data_sn) { in iscsit_create_recovery_datain_values_datasequenceinorder_no()
320 pdu->length; in iscsit_create_recovery_datain_values_datasequenceinorder_no()
322 pdu->length; in iscsit_create_recovery_datain_values_datasequenceinorder_no()
583 struct iscsi_pdu *pdu) in iscsit_dataout_datapduinorder_no_fbit() argument
596 if (cmd->pdu_list[i].seq_no == pdu->seq_no) { in iscsit_dataout_datapduinorder_no_fbit()
666 struct iscsi_pdu *pdu = NULL; in iscsit_recalculate_dataout_values() local
682 pdu = &cmd->pdu_list[i]; in iscsit_recalculate_dataout_values()
684 if (pdu->status != ISCSI_PDU_RECEIVED_OK) in iscsit_recalculate_dataout_values()
[all …]
Discsi_target_login.c260 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_zero_tsih_s1() local
271 if (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()
309 atomic_set(&sess->max_cmd_sn, be32_to_cpu(pdu->cmdsn)); in iscsi_login_zero_tsih_s1()
464 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_non_zero_tsih_s1() local
466 return iscsi_login_set_conn_values(NULL, conn, pdu->cid); in iscsi_login_non_zero_tsih_s1()
480 struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; in iscsi_login_non_zero_tsih_s2() local
493 if (!memcmp(sess_p->isid, pdu->isid, 6) && in iscsi_login_non_zero_tsih_s2()
[all …]
Discsi_target.c502 struct iscsi_hdr *hdr = (struct iscsi_hdr *)cmd->pdu; in iscsit_xmit_nondatain_pdu()
508 iov[niov].iov_base = cmd->pdu; in iscsit_xmit_nondatain_pdu()
512 u32 *header_digest = (u32 *)&cmd->pdu[ISCSI_HDR_LEN]; in iscsit_xmit_nondatain_pdu()
581 iov[iov_count].iov_base = cmd->pdu; in iscsit_xmit_datain_pdu()
586 u32 *header_digest = (u32 *)&cmd->pdu[ISCSI_HDR_LEN]; in iscsit_xmit_datain_pdu()
588 iscsit_do_crypto_hash_buf(conn->conn_tx_hash, cmd->pdu, in iscsit_xmit_datain_pdu()
2749 hdr = (struct iscsi_async *) cmd->pdu; in iscsit_send_conn_drop_async_message()
2829 struct iscsi_data_rsp *hdr = (struct iscsi_data_rsp *)&cmd->pdu[0]; in iscsit_send_datain()
2988 (struct iscsi_logout_rsp *)&cmd->pdu[0]); in iscsit_send_logout()
3031 struct iscsi_nopin *hdr = (struct iscsi_nopin *)&cmd->pdu[0]; in iscsit_send_unsolicited_nopin()
[all …]
/drivers/nvme/host/
Dtcp.c80 void *pdu; member
123 void *pdu; member
392 void *pdu, size_t len) in nvme_tcp_hdgst() argument
396 sg_init_one(&sg, pdu, len); in nvme_tcp_hdgst()
397 ahash_request_set_crypt(hash, &sg, pdu + len, len); in nvme_tcp_hdgst()
402 void *pdu, size_t pdu_len) in nvme_tcp_verify_hdgst() argument
404 struct nvme_tcp_hdr *hdr = pdu; in nvme_tcp_verify_hdgst()
415 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvme_tcp_verify_hdgst()
416 nvme_tcp_hdgst(queue->rcv_hash, pdu, pdu_len); in nvme_tcp_verify_hdgst()
417 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvme_tcp_verify_hdgst()
[all …]
/drivers/nvme/target/
Dtcp.c115 union nvme_tcp_pdu pdu; member
237 void *pdu, size_t len) in nvmet_tcp_hdgst() argument
241 sg_init_one(&sg, pdu, len); in nvmet_tcp_hdgst()
242 ahash_request_set_crypt(hash, &sg, pdu + len, len); in nvmet_tcp_hdgst()
247 void *pdu, size_t len) in nvmet_tcp_verify_hdgst() argument
249 struct nvme_tcp_hdr *hdr = pdu; in nvmet_tcp_verify_hdgst()
259 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
260 nvmet_tcp_hdgst(queue->rcv_hash, pdu, len); in nvmet_tcp_verify_hdgst()
261 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
272 static int nvmet_tcp_check_ddgst(struct nvmet_tcp_queue *queue, void *pdu) in nvmet_tcp_check_ddgst() argument
[all …]
/drivers/mtd/ubi/
Dblock.c184 static int ubiblock_read(struct ubiblock_pdu *pdu) in ubiblock_read() argument
188 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_read()
207 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
295 struct ubiblock_pdu *pdu = container_of(work, struct ubiblock_pdu, work); in ubiblock_do_work() local
296 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_do_work()
305 blk_rq_map_sg(req->q, req, pdu->usgl.sg); in ubiblock_do_work()
307 ret = ubiblock_read(pdu); in ubiblock_do_work()
318 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_queue_rq() local
322 ubi_sgl_init(&pdu->usgl); in ubiblock_queue_rq()
323 queue_work(dev->wq, &pdu->work); in ubiblock_queue_rq()
[all …]
/drivers/net/wireless/ath/wcn36xx/
Dtxrx.c254 skb_put(skb, bd->pdu.mpdu_header_off + bd->pdu.mpdu_len); in wcn36xx_rx_skb()
255 skb_pull(skb, bd->pdu.mpdu_header_off); in wcn36xx_rx_skb()
340 bd->pdu.mpdu_header_len = mpdu_header_len; in wcn36xx_set_tx_pdu()
341 bd->pdu.mpdu_header_off = sizeof(*bd); in wcn36xx_set_tx_pdu()
342 bd->pdu.mpdu_data_off = bd->pdu.mpdu_header_len + in wcn36xx_set_tx_pdu()
343 bd->pdu.mpdu_header_off; in wcn36xx_set_tx_pdu()
344 bd->pdu.mpdu_len = len; in wcn36xx_set_tx_pdu()
345 bd->pdu.tid = tid; in wcn36xx_set_tx_pdu()
442 bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_DPU_QOS; in wcn36xx_set_tx_data()
444 bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_DPU_NON_QOS; in wcn36xx_set_tx_data()
[all …]
Dtxrx.h83 struct wcn36xx_pdu pdu; member
140 struct wcn36xx_pdu pdu; member
/drivers/s390/net/
Dctcm_mpc.h117 struct pdu { struct
124 #define PDU_HEADER_LENGTH (sizeof(struct pdu))
Dctcm_mpc.c232 struct pdu *pheader; in ctcmpc_dump_skb()
261 pheader = (struct pdu *)p; in ctcmpc_dump_skb()
1044 struct pdu *curr_pdu; in ctcmpc_unpack_skb()
1102 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()
/drivers/net/ethernet/sfc/
Dsiena.c749 unsigned pdu = FR_CZ_MC_TREG_SMEM + MCDI_PDU(efx); in siena_mcdi_request() local
756 efx_writed(efx, hdr, pdu); in siena_mcdi_request()
759 efx_writed(efx, &sdu[i], pdu + hdr_len + 4 * i); in siena_mcdi_request()
770 unsigned int pdu = FR_CZ_MC_TREG_SMEM + MCDI_PDU(efx); in siena_mcdi_poll_response() local
773 efx_readd(efx, &hdr, pdu); in siena_mcdi_poll_response()
786 unsigned int pdu = FR_CZ_MC_TREG_SMEM + MCDI_PDU(efx); in siena_mcdi_read_response() local
791 efx_readd(efx, &outbuf[i], pdu + offset + 4 * i); in siena_mcdi_read_response()
Def100_nic.c66 u8 *pdu = ef100_mcdi_buf(efx, 0, &dma_addr); in ef100_mcdi_request() local
68 memcpy(pdu, hdr, hdr_len); in ef100_mcdi_request()
69 memcpy(pdu + hdr_len, sdu, sdu_len); in ef100_mcdi_request()
95 const u8 *pdu = ef100_mcdi_buf(efx, 0, NULL); in ef100_mcdi_read_response() local
97 memcpy(outbuf, pdu + offset, outlen); in ef100_mcdi_read_response()
Def10.c2038 u8 *pdu = nic_data->mcdi_buf.addr; in efx_ef10_mcdi_request() local
2040 memcpy(pdu, hdr, hdr_len); in efx_ef10_mcdi_request()
2041 memcpy(pdu + hdr_len, sdu, sdu_len); in efx_ef10_mcdi_request()
2070 const u8 *pdu = nic_data->mcdi_buf.addr; in efx_ef10_mcdi_read_response() local
2072 memcpy(outbuf, pdu + offset, outlen); in efx_ef10_mcdi_read_response()
/drivers/staging/rtl8192e/
Drtllib.h411 #define IsDataFrame(pdu) (((pdu[0] & 0x0C) == 0x08) ? true : false) argument
412 #define IsLegacyDataFrame(pdu) (IsDataFrame(pdu) && (!(pdu[0]&FC_QOS_BIT))) argument
/drivers/staging/rtl8192u/ieee80211/
Dieee80211.h411 #define IsDataFrame(pdu) (((pdu[0] & 0x0C) == 0x08) ? true : false) argument
412 #define IsLegacyDataFrame(pdu) (IsDataFrame(pdu) && (!(pdu[0] & FC_QOS_BIT))) argument

12