Home
last modified time | relevance | path

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

123

/Linux-v5.15/net/llc/
Dllc_pdu.c19 static u8 llc_pdu_get_pf_bit(struct llc_pdu_sn *pdu);
38 struct llc_pdu_sn *pdu; in llc_pdu_set_pf_bit() local
41 pdu = llc_pdu_sn_hdr(skb); in llc_pdu_set_pf_bit()
46 pdu->ctrl_2 = (pdu->ctrl_2 & 0xFE) | bit_value; in llc_pdu_set_pf_bit()
49 pdu->ctrl_1 |= (pdu->ctrl_1 & 0xEF) | (bit_value << 4); in llc_pdu_set_pf_bit()
66 struct llc_pdu_sn *pdu; in llc_pdu_decode_pf_bit() local
69 pdu = llc_pdu_sn_hdr(skb); in llc_pdu_decode_pf_bit()
74 *pf_bit = pdu->ctrl_2 & LLC_S_PF_BIT_MASK; in llc_pdu_decode_pf_bit()
77 *pf_bit = (pdu->ctrl_1 & LLC_U_PF_BIT_MASK) >> 4; in llc_pdu_decode_pf_bit()
91 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_disc_cmd() local
[all …]
Dllc_c_ev.c79 struct llc_pdu_sn *pdu; in llc_util_nr_inside_tx_window() local
89 pdu = llc_pdu_sn_hdr(skb); in llc_util_nr_inside_tx_window()
90 nr1 = LLC_I_GET_NS(pdu); in llc_util_nr_inside_tx_window()
92 pdu = llc_pdu_sn_hdr(skb); in llc_util_nr_inside_tx_window()
93 nr2 = LLC_I_GET_NS(pdu); in llc_util_nr_inside_tx_window()
154 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ev_rx_disc_cmd_pbit_set_x() local
156 return LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_disc_cmd_pbit_set_x()
157 LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_DISC ? 0 : 1; in llc_conn_ev_rx_disc_cmd_pbit_set_x()
162 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ev_rx_dm_rsp_fbit_set_x() local
164 return LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_dm_rsp_fbit_set_x()
[all …]
Dllc_s_ev.c34 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_ui() local
36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_ui()
37 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_ui()
38 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_UI ? 0 : 1; in llc_sap_ev_rx_ui()
63 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_xid_c() local
65 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_xid_c()
66 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_xid_c()
67 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_XID ? 0 : 1; in llc_sap_ev_rx_xid_c()
73 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_xid_r() local
75 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && in llc_sap_ev_rx_xid_r()
[all …]
Dllc_station.c30 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_stat_ev_rx_null_dsap_xid_c() local
32 return LLC_PDU_IS_CMD(pdu) && /* command PDU */ in llc_stat_ev_rx_null_dsap_xid_c()
33 LLC_PDU_TYPE_IS_U(pdu) && /* U type PDU */ in llc_stat_ev_rx_null_dsap_xid_c()
34 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_XID && in llc_stat_ev_rx_null_dsap_xid_c()
35 !pdu->dsap; /* NULL DSAP value */ in llc_stat_ev_rx_null_dsap_xid_c()
40 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_stat_ev_rx_null_dsap_test_c() local
42 return LLC_PDU_IS_CMD(pdu) && /* command PDU */ in llc_stat_ev_rx_null_dsap_test_c()
43 LLC_PDU_TYPE_IS_U(pdu) && /* U type PDU */ in llc_stat_ev_rx_null_dsap_test_c()
44 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_TEST && in llc_stat_ev_rx_null_dsap_test_c()
45 !pdu->dsap; /* NULL DSAP */ in llc_stat_ev_rx_null_dsap_test_c()
Dllc_input.c78 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_pdu_type() local
80 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) != LLC_PDU_TYPE_U) in llc_pdu_type()
82 switch (LLC_U_PDU_CMD(pdu)) { in llc_pdu_type()
114 struct llc_pdu_un *pdu; in llc_fixup_skb() local
116 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb()
119 pdu = (struct llc_pdu_un *)skb->data; in llc_fixup_skb()
120 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U) in llc_fixup_skb()
159 struct llc_pdu_sn *pdu; in llc_rcv() local
182 pdu = llc_pdu_sn_hdr(skb); in llc_rcv()
183 if (unlikely(!pdu->dsap)) /* NULL DSAP, refer to station */ in llc_rcv()
[all …]
Dllc_c_ac.c51 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_clear_remote_busy() local
55 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_clear_remote_busy()
98 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_disc_ind() local
100 if (LLC_PDU_IS_RSP(pdu) && in llc_conn_ac_disc_ind()
101 LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ac_disc_ind()
102 LLC_U_PDU_RSP(pdu) == LLC_2_PDU_RSP_DM) in llc_conn_ac_disc_ind()
104 else if (LLC_PDU_IS_CMD(pdu) && in llc_conn_ac_disc_ind()
105 LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ac_disc_ind()
106 LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_DISC) in llc_conn_ac_disc_ind()
133 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_rst_ind() local
[all …]
/Linux-v5.15/include/net/
Dllc_pdu.h37 #define LLC_PDU_IS_GROUP_DSAP(pdu) \ argument
38 ((pdu->dsap & LLC_PDU_GROUP_DSAP_MASK) ? 0 : 1)
39 #define LLC_PDU_IS_INDIV_DSAP(pdu) \ argument
40 (!(pdu->dsap & LLC_PDU_GROUP_DSAP_MASK) ? 0 : 1)
46 #define LLC_PDU_IS_CMD(pdu) ((pdu->ssap & LLC_PDU_RSP) ? 0 : 1) argument
47 #define LLC_PDU_IS_RSP(pdu) ((pdu->ssap & LLC_PDU_RSP) ? 1 : 0) argument
60 #define LLC_PDU_TYPE_IS_I(pdu) \ argument
61 ((!(pdu->ctrl_1 & LLC_PDU_TYPE_I_MASK)) ? 1 : 0)
63 #define LLC_PDU_TYPE_IS_U(pdu) \ argument
64 (((pdu->ctrl_1 & LLC_PDU_TYPE_U_MASK) == LLC_PDU_TYPE_U) ? 1 : 0)
[all …]
/Linux-v5.15/net/9p/
Dprotocol.c29 p9pdu_writef(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
46 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument
48 size_t len = min(pdu->size - pdu->offset, size); in pdu_read()
49 memcpy(data, &pdu->sdata[pdu->offset], len); in pdu_read()
50 pdu->offset += len; in pdu_read()
54 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument
56 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write()
57 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write()
58 pdu->size += len; in pdu_write()
63 pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size) in pdu_write_u() argument
[all …]
Dprotocol.h13 int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
15 int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
16 int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
17 int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
18 void p9pdu_reset(struct p9_fcall *pdu);
19 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);
/Linux-v5.15/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 …]
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 …]
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 …]
Dstub_rx.c203 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument
212 if (priv->seqnum != pdu->u.cmd_unlink.seqnum) in stub_recv_cmd_unlink()
231 priv->seqnum = pdu->base.seqnum; in stub_recv_cmd_unlink()
262 pdu->u.cmd_unlink.seqnum); in stub_recv_cmd_unlink()
270 stub_enqueue_ret_unlink(sdev, pdu->base.seqnum, 0); in stub_recv_cmd_unlink()
277 static int valid_request(struct stub_device *sdev, struct usbip_header *pdu) in valid_request() argument
282 if (pdu->base.devid == sdev->devid) { in valid_request()
295 struct usbip_header *pdu) in stub_priv_alloc() argument
311 priv->seqnum = pdu->base.seqnum; in stub_priv_alloc()
325 static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu) in get_pipe() argument
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/drivers/nvme/host/
Dtcp.c42 void *pdu; member
87 void *pdu; member
358 void *pdu, size_t len) in nvme_tcp_hdgst() argument
362 sg_init_one(&sg, pdu, len); in nvme_tcp_hdgst()
363 ahash_request_set_crypt(hash, &sg, pdu + len, len); in nvme_tcp_hdgst()
368 void *pdu, size_t pdu_len) in nvme_tcp_verify_hdgst() argument
370 struct nvme_tcp_hdr *hdr = pdu; in nvme_tcp_verify_hdgst()
381 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvme_tcp_verify_hdgst()
382 nvme_tcp_hdgst(queue->rcv_hash, pdu, pdu_len); in nvme_tcp_verify_hdgst()
383 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvme_tcp_verify_hdgst()
[all …]
/Linux-v5.15/drivers/nvme/target/
Dtcp.c124 union nvme_tcp_pdu pdu; member
248 void *pdu, size_t len) in nvmet_tcp_hdgst() argument
252 sg_init_one(&sg, pdu, len); in nvmet_tcp_hdgst()
253 ahash_request_set_crypt(hash, &sg, pdu + len, len); in nvmet_tcp_hdgst()
258 void *pdu, size_t len) in nvmet_tcp_verify_hdgst() argument
260 struct nvme_tcp_hdr *hdr = pdu; in nvmet_tcp_verify_hdgst()
270 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
271 nvmet_tcp_hdgst(queue->rcv_hash, pdu, len); in nvmet_tcp_verify_hdgst()
272 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst()
283 static int nvmet_tcp_check_ddgst(struct nvmet_tcp_queue *queue, void *pdu) in nvmet_tcp_check_ddgst() argument
[all …]
/Linux-v5.15/fs/ksmbd/
Dsmb2misc.c195 struct smb2_pdu *pdu = (struct smb2_pdu *)buf; in smb2_calc_size() local
196 struct smb2_hdr *hdr = &pdu->hdr; in smb2_calc_size()
208 *len += le16_to_cpu(pdu->StructureSize2); in smb2_calc_size()
350 struct smb2_pdu *pdu = work->request_buf; in ksmbd_smb2_check_message() local
351 struct smb2_hdr *hdr = &pdu->hdr; in ksmbd_smb2_check_message()
354 __u32 len = get_rfc1002_len(pdu); in ksmbd_smb2_check_message()
357 pdu = ksmbd_req_buf_next(work); in ksmbd_smb2_check_message()
358 hdr = &pdu->hdr; in ksmbd_smb2_check_message()
383 if (smb2_req_struct_sizes[command] != pdu->StructureSize2) { in ksmbd_smb2_check_message()
385 (hdr->Status == 0 || pdu->StructureSize2 != SMB2_ERROR_STRUCTURE_SIZE2_LE)) { in ksmbd_smb2_check_message()
[all …]
/Linux-v5.15/net/802/
Dmrp.c327 app->pdu = skb; in mrp_pdu_init()
335 if (skb_tailroom(app->pdu) < sizeof(*endmark)) in mrp_pdu_append_end_mark()
337 endmark = __skb_put(app->pdu, sizeof(*endmark)); in mrp_pdu_append_end_mark()
344 if (!app->pdu) in mrp_pdu_queue()
347 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue()
351 dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type), in mrp_pdu_queue()
353 app->pdu->len); in mrp_pdu_queue()
355 skb_queue_tail(&app->queue, app->pdu); in mrp_pdu_queue()
356 app->pdu = NULL; in mrp_pdu_queue()
372 if (mrp_cb(app->pdu)->mh) { in mrp_pdu_append_msg_hdr()
[all …]
Dgarp.c237 app->pdu = skb; in garp_pdu_init()
243 if (skb_tailroom(app->pdu) < sizeof(u8)) in garp_pdu_append_end_mark()
245 __skb_put_u8(app->pdu, GARP_END_MARK); in garp_pdu_append_end_mark()
251 if (!app->pdu) in garp_pdu_queue()
257 llc_pdu_header_init(app->pdu, LLC_PDU_TYPE_U, LLC_SAP_BSPAN, in garp_pdu_queue()
259 llc_pdu_init_as_ui_cmd(app->pdu); in garp_pdu_queue()
260 llc_mac_hdr_init(app->pdu, app->dev->dev_addr, in garp_pdu_queue()
263 skb_queue_tail(&app->queue, app->pdu); in garp_pdu_queue()
264 app->pdu = NULL; in garp_pdu_queue()
279 if (skb_tailroom(app->pdu) < sizeof(*gm)) in garp_pdu_append_msg()
[all …]
Dstp.c34 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in stp_pdu_rcv() local
37 if (pdu->ssap != LLC_SAP_BSPAN || in stp_pdu_rcv()
38 pdu->dsap != LLC_SAP_BSPAN || in stp_pdu_rcv()
39 pdu->ctrl_1 != LLC_PDU_TYPE_U) in stp_pdu_rcv()
/Linux-v5.15/net/nfc/
Dllcp_commands.c283 static struct sk_buff *llcp_add_header(struct sk_buff *pdu, in llcp_add_header() argument
295 skb_put_data(pdu, header, LLCP_HEADER_SIZE); in llcp_add_header()
297 return pdu; in llcp_add_header()
300 static struct sk_buff *llcp_add_tlv(struct sk_buff *pdu, const u8 *tlv, in llcp_add_tlv() argument
308 skb_put_data(pdu, tlv, tlv_length); in llcp_add_tlv()
310 return pdu; in llcp_add_tlv()
650 struct sk_buff *pdu; in nfc_llcp_send_i_frame() local
701 pdu = llcp_allocate_pdu(sock, LLCP_PDU_I, in nfc_llcp_send_i_frame()
703 if (pdu == NULL) { in nfc_llcp_send_i_frame()
708 skb_put(pdu, LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame()
[all …]
/Linux-v5.15/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 …]

123