/linux/net/llc/ |
H A D | llc_pdu.c | 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 112 pdu->ctrl_2 = 0; in llc_pdu_init_as_i_cmd() 132 pdu->ctrl_2 = 0; in llc_pdu_init_as_rej_cmd() 152 pdu->ctrl_2 = 0; in llc_pdu_init_as_rnr_cmd() 261 pdu->ctrl_2 = 0; in llc_pdu_init_as_rr_rsp() 281 pdu->ctrl_2 = 0; in llc_pdu_init_as_rej_rsp() [all …]
|
H A D | llc_c_ev.c | 156 return LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_disc_cmd_pbit_set_x() 164 return LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_dm_rsp_fbit_set_x() 172 return LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_frmr_rsp_fbit_set_x() 181 LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_cmd_pbit_set_0() 191 LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_cmd_pbit_set_1() 203 return LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns() 215 return LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() 240 LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_rsp_fbit_set_0() 249 return LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_rsp_fbit_set_1() 259 LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ev_rx_i_rsp_fbit_set_x() [all …]
|
H A D | llc_s_ev.c | 34 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_ui() local 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 66 LLC_PDU_TYPE_IS_U(pdu) && 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 76 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_xid_r() 92 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_test_c() local 95 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_test_c() 102 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_test_r() local [all …]
|
H A D | llc_station.c | 30 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()
|
H A D | llc_input.c | 78 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() 165 struct llc_pdu_sn *pdu; in llc_rcv() local 185 pdu = llc_pdu_sn_hdr(skb); in llc_rcv() 188 sap = llc_sap_find(pdu->dsap); in llc_rcv() [all …]
|
H A D | llc_c_ac.c | 55 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_clear_remote_busy() 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() 138 if (LLC_PDU_IS_RSP(pdu) && in llc_conn_ac_rst_ind() 181 if (LLC_PDU_IS_RSP(pdu) && in llc_conn_ac_clear_remote_busy_if_f_eq_1() 182 LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_ac_clear_remote_busy_if_f_eq_1() 282 if (LLC_PDU_IS_CMD(pdu)) in llc_conn_ac_send_frmr_rsp_f_set_x() 421 u8 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_resend_i_xxx_x_set_0() 449 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() 459 u8 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_resend_i_rsp_f_set_1() [all …]
|
/linux/include/net/ |
H A D | llc_pdu.h | 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 75 #define LLC_U_PDU_CMD(pdu) (pdu->ctrl_1 & LLC_U_PDU_CMD_MASK) argument 76 #define LLC_U_PDU_RSP(pdu) (pdu->ctrl_1 & LLC_U_PDU_CMD_MASK) argument 122 #define LLC_I_GET_NS(pdu) (u8)((pdu->ctrl_1 & 0xFE) >> 1) argument 123 #define LLC_I_GET_NR(pdu) (u8)((pdu->ctrl_2 & 0xFE) >> 1) argument 133 #define LLC_S_PDU_CMD(pdu) (pdu->ctrl_1 & LLC_S_PDU_CMD_MASK) argument 134 #define LLC_S_PDU_RSP(pdu) (pdu->ctrl_1 & LLC_S_PDU_CMD_MASK) argument 147 #define PDU_SUPV_GET_Nr(pdu) ((pdu->ctrl_2 & 0xFE) >> 1) argument 251 pdu->dsap = dsap; in llc_pdu_header_init() [all …]
|
/linux/net/9p/ |
H A D | protocol.c | 213 size_t len = min(pdu->size - pdu->offset, size); in pdu_read() 215 memcpy(data, &pdu->sdata[pdu->offset], len); in pdu_read() 222 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write() 224 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write() 232 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write_u() 234 if (!copy_from_iter_full(&pdu->sdata[pdu->size], len, from)) in pdu_write_u() 388 pdu->size - pdu->offset); in p9pdu_vreadf() 389 *data = &pdu->sdata[pdu->offset]; in p9pdu_vreadf() 752 pdu->size = 0; in p9pdu_finalize() 758 pdu->size, pdu->id, pdu->tag); in p9pdu_finalize() [all …]
|
H A D | protocol.h | 13 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/drivers/usb/usbip/ |
H A D | usbip_common.c | 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() 517 pdu->transfer_flags = cpu_to_be32(pdu->transfer_flags); in correct_endian_cmd_submit() 524 pdu->transfer_flags = be32_to_cpu(pdu->transfer_flags); in correct_endian_cmd_submit() 555 pdu->seqnum = cpu_to_be32(pdu->seqnum); in correct_endian_cmd_unlink() 557 pdu->seqnum = be32_to_cpu(pdu->seqnum); in correct_endian_cmd_unlink() 574 cmd = pdu->base.command; in usbip_header_correct_endian() [all …]
|
H A D | vhci_rx.c | 56 struct usbip_header *pdu) in vhci_recv_ret_submit() argument 70 pdu->base.seqnum, in vhci_recv_ret_submit() 146 usbip_dump_header(pdu); in vhci_recv_ret_unlink() 151 pdu->base.seqnum); in vhci_recv_ret_unlink() 166 pdu->base.seqnum); in vhci_recv_ret_unlink() 200 struct usbip_header pdu; in vhci_rx_pdu() local 205 memset(&pdu, 0, sizeof(pdu)); in vhci_rx_pdu() 208 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in vhci_rx_pdu() 228 if (ret != sizeof(pdu)) { in vhci_rx_pdu() 238 usbip_dump_header(&pdu); in vhci_rx_pdu() [all …]
|
H A D | vudc_rx.c | 16 struct usbip_header *pdu, u8 type) in alloc_urb_from_cmd() argument 63 struct usbip_header *pdu) in v_recv_cmd_unlink() argument 73 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_unlink() 89 struct usbip_header *pdu) in v_recv_cmd_submit() argument 103 address = pdu->base.ep; in v_recv_cmd_submit() 121 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_submit() 192 struct usbip_header pdu; in v_rx_pdu() local 195 memset(&pdu, 0, sizeof(pdu)); in v_rx_pdu() 196 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in v_rx_pdu() 197 if (ret != sizeof(pdu)) { in v_rx_pdu() [all …]
|
H A D | stub_rx.c | 214 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument 341 int epnum = pdu->base.ep; in get_pipe() 465 struct usbip_header *pdu) in stub_recv_cmd_submit() argument 615 pdu->base.seqnum); in stub_recv_cmd_submit() 618 usbip_dump_header(pdu); in stub_recv_cmd_submit() 655 struct usbip_header pdu; in stub_rx_pdu() local 661 memset(&pdu, 0, sizeof(pdu)); in stub_rx_pdu() 664 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in stub_rx_pdu() 665 if (ret != sizeof(pdu)) { in stub_rx_pdu() 674 usbip_dump_header(&pdu); in stub_rx_pdu() [all …]
|
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_seq_pdu_list.c | 42 struct iscsi_pdu *pdu; in iscsit_dump_pdu_list() local 51 pdu->length, pdu->pdu_send_order, pdu->seq_no); in iscsit_dump_pdu_list() 350 pdu[i].length = in iscsit_do_build_pdu_and_seq_lists() 417 pdu[i++].length = in iscsit_do_build_pdu_and_seq_lists() 549 if (!pdu) { in iscsit_build_pdu_and_seq_lists() 577 if ((pdu[i].offset == offset) && (pdu[i].length == length)) in iscsit_get_pdu_holder() 578 return &pdu[i]; in iscsit_get_pdu_holder() 606 pdu[i].pdu_send_order, pdu[i].offset, in iscsit_get_pdu_holder_for_seq() 607 pdu[i].length); in iscsit_get_pdu_holder_for_seq() 611 return &pdu[i]; in iscsit_get_pdu_holder_for_seq() [all …]
|
H A D | iscsi_target_datain_values.c | 304 struct iscsi_pdu *pdu; in iscsit_set_datain_values_yes_and_no() local 331 if (!pdu) in iscsit_set_datain_values_yes_and_no() 362 datain->flags = pdu->flags; in iscsit_set_datain_values_yes_and_no() 363 datain->length = pdu->length; in iscsit_set_datain_values_yes_and_no() 364 datain->offset = pdu->offset; in iscsit_set_datain_values_yes_and_no() 365 datain->data_sn = pdu->data_sn; in iscsit_set_datain_values_yes_and_no() 403 struct iscsi_pdu *pdu; in iscsit_set_datain_values_no_and_no() local 440 if (!pdu) in iscsit_set_datain_values_no_and_no() 465 datain->flags = pdu->flags; in iscsit_set_datain_values_no_and_no() 466 datain->length = pdu->length; in iscsit_set_datain_values_no_and_no() [all …]
|
H A D | iscsi_target_tmr.c | 482 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() 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() 550 struct iscsi_pdu *pdu = NULL; in iscsit_task_reassign_prepare_write() local 653 pdu = &cmd->pdu_list[i]; in iscsit_task_reassign_prepare_write() 658 if ((pdu->offset >= r2t->offset) && in iscsit_task_reassign_prepare_write() 659 (pdu->offset < (r2t->offset + in iscsit_task_reassign_prepare_write() [all …]
|
H A D | iscsi_target_erl0.c | 452 struct iscsi_pdu *pdu; in iscsit_dataout_pre_datapduinorder_no() local 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() 507 pdu->data_sn = data_sn; in iscsit_dataout_update_datapduinorder_no() 509 switch (pdu->status) { in iscsit_dataout_update_datapduinorder_no() 648 struct iscsi_pdu *pdu; in iscsit_dataout_post_crc_failed() local 657 pdu = cmd->pdu_ptr; in iscsit_dataout_post_crc_failed() 659 switch (pdu->status) { in iscsit_dataout_post_crc_failed() 661 pdu->status = ISCSI_PDU_CRC_FAILED; in iscsit_dataout_post_crc_failed() [all …]
|
/linux/drivers/nvme/host/ |
H A D | tcp.c | 104 void *pdu; member 150 void *pdu; member 544 pdu = req->pdu; in nvme_tcp_init_request() 767 char *pdu = queue->pdu; in nvme_tcp_recv_pdu() local 824 struct nvme_tcp_data_pdu *pdu = (void *)queue->pdu; in nvme_tcp_recv_data() local 895 struct nvme_tcp_data_pdu *pdu = (void *)queue->pdu; in nvme_tcp_recv_ddgst() local 1126 nvme_tcp_hdgst(queue->snd_hash, pdu, sizeof(*pdu)); in nvme_tcp_try_send_cmd_pdu() 1161 nvme_tcp_hdgst(queue->snd_hash, pdu, sizeof(*pdu)); in nvme_tcp_try_send_data_pdu() 2442 memset(pdu, 0, sizeof(*pdu)); in nvme_tcp_submit_async_event() 2446 pdu->hdr.hlen = sizeof(*pdu); in nvme_tcp_submit_async_event() [all …]
|
H A D | ioctl.c | 413 if (pdu->bio) in nvme_uring_task_cb() 414 blk_rq_unmap_user(pdu->bio); in nvme_uring_task_cb() 415 io_uring_cmd_done(ioucmd, pdu->status, pdu->result, issue_flags); in nvme_uring_task_cb() 425 pdu->status = -EINTR; in nvme_uring_cmd_end_io() 428 if (!pdu->status) in nvme_uring_cmd_end_io() 442 if (pdu->bio) in nvme_uring_cmd_end_io() 443 blk_rq_unmap_user(pdu->bio); in nvme_uring_cmd_end_io() 444 io_uring_cmd_iopoll_done(ioucmd, pdu->result, pdu->status); in nvme_uring_cmd_end_io() 516 pdu->bio = req->bio; in nvme_uring_cmd_io() 517 pdu->req = req; in nvme_uring_cmd_io() [all …]
|
/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | txrx.c | 326 if (bd->pdu.mpdu_data_off <= bd->pdu.mpdu_header_off || in wcn36xx_rx_skb() 327 bd->pdu.mpdu_len < bd->pdu.mpdu_header_len) in wcn36xx_rx_skb() 332 if (bd->pdu.mpdu_data_off + bd->pdu.mpdu_len > WCN36XX_PKT_SIZE) in wcn36xx_rx_skb() 335 skb_put(skb, bd->pdu.mpdu_data_off + bd->pdu.mpdu_len); in wcn36xx_rx_skb() 343 bd->pdu.mpdu_header_off + bd->pdu.mpdu_len > WCN36XX_PKT_SIZE) in wcn36xx_rx_skb() 346 skb_put(skb, bd->pdu.mpdu_header_off + bd->pdu.mpdu_len); in wcn36xx_rx_skb() 449 skb, bd->pdu.mpdu_len, bd->pdu.mpdu_header_off, in wcn36xx_rx_skb() 465 bd->pdu.mpdu_data_off = bd->pdu.mpdu_header_len + in wcn36xx_set_tx_pdu() 466 bd->pdu.mpdu_header_off; in wcn36xx_set_tx_pdu() 467 bd->pdu.mpdu_len = len; in wcn36xx_set_tx_pdu() [all …]
|
/linux/net/802/ |
H A D | mrp.c | 328 app->pdu = skb; in mrp_pdu_init() 345 if (!app->pdu) in mrp_pdu_queue() 348 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue() 354 app->pdu->len); in mrp_pdu_queue() 357 app->pdu = NULL; in mrp_pdu_queue() 373 if (mrp_cb(app->pdu)->mh) { in mrp_pdu_append_msg_hdr() 376 mrp_cb(app->pdu)->mh = NULL; in mrp_pdu_append_msg_hdr() 385 mrp_cb(app->pdu)->mh = mh; in mrp_pdu_append_msg_hdr() 399 mrp_cb(app->pdu)->vah = vah; in mrp_pdu_append_vecattr_hdr() 412 if (!app->pdu) { in mrp_pdu_append_vecattr_event() [all …]
|
H A D | garp.c | 238 app->pdu = skb; in garp_pdu_init() 246 __skb_put_u8(app->pdu, GARP_END_MARK); in garp_pdu_append_end_mark() 252 if (!app->pdu) in garp_pdu_queue() 260 llc_pdu_init_as_ui_cmd(app->pdu); in garp_pdu_queue() 264 skb_queue_tail(&app->queue, app->pdu); in garp_pdu_queue() 265 app->pdu = NULL; in garp_pdu_queue() 282 gm = __skb_put(app->pdu, sizeof(*gm)); in garp_pdu_append_msg() 296 if (!app->pdu) { in garp_pdu_append_attr() 303 if (garp_cb(app->pdu)->cur_type && in garp_pdu_append_attr() 311 if (skb_tailroom(app->pdu) < len) in garp_pdu_append_attr() [all …]
|
/linux/drivers/nvme/target/ |
H A D | tcp.c | 466 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_c2h_data_pdu() 467 pdu->hdr.pdo = pdu->hdr.hlen + hdgst; in nvmet_setup_c2h_data_pdu() 468 pdu->hdr.plen = in nvmet_setup_c2h_data_pdu() 482 nvmet_tcp_hdgst(queue->snd_hash, pdu, sizeof(*pdu)); in nvmet_setup_c2h_data_pdu() 497 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_r2t_pdu() 498 pdu->hdr.pdo = 0; in nvmet_setup_r2t_pdu() 499 pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst); in nvmet_setup_r2t_pdu() 507 nvmet_tcp_hdgst(queue->snd_hash, pdu, sizeof(*pdu)); in nvmet_setup_r2t_pdu() 522 pdu->hdr.hlen = sizeof(*pdu); in nvmet_setup_response_pdu() 524 pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst); in nvmet_setup_response_pdu() [all …]
|
/linux/net/nfc/ |
H A D | llcp_commands.c | 297 return pdu; in llcp_add_header() 308 skb_put_data(pdu, tlv, tlv_length); in llcp_add_tlv() 310 return pdu; in llcp_add_tlv() 649 struct sk_buff *pdu; in nfc_llcp_send_i_frame() local 702 if (pdu == NULL) { in nfc_llcp_send_i_frame() 707 skb_put(pdu, LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame() 710 skb_put_data(pdu, msg_ptr, frag_len); in nfc_llcp_send_i_frame() 712 skb_queue_tail(&sock->tx_queue, pdu); in nfc_llcp_send_i_frame() 732 struct sk_buff *pdu; in nfc_llcp_send_ui_frame() local 768 if (pdu == NULL) { in nfc_llcp_send_ui_frame() [all …]
|
/linux/fs/smb/server/ |
H A D | smb2misc.c | 209 struct smb2_pdu *pdu = (struct smb2_pdu *)buf; in smb2_calc_size() local 210 struct smb2_hdr *hdr = &pdu->hdr; in smb2_calc_size() 222 *len += le16_to_cpu(pdu->StructureSize2); in smb2_calc_size() 370 struct smb2_pdu *pdu = ksmbd_req_buf_next(work); in ksmbd_smb2_check_message() local 371 struct smb2_hdr *hdr = &pdu->hdr; in ksmbd_smb2_check_message() 403 if (smb2_req_struct_sizes[command] != pdu->StructureSize2) { in ksmbd_smb2_check_message() 405 (le16_to_cpu(pdu->StructureSize2) == OP_BREAK_STRUCT_SIZE_20 || in ksmbd_smb2_check_message() 406 le16_to_cpu(pdu->StructureSize2) == OP_BREAK_STRUCT_SIZE_21))) { in ksmbd_smb2_check_message() 410 le16_to_cpu(pdu->StructureSize2), command); in ksmbd_smb2_check_message() 415 req_struct_size = le16_to_cpu(pdu->StructureSize2) + in ksmbd_smb2_check_message()
|