/linux-6.12.1/net/llc/ |
D | llc_pdu.c | 2 * llc_pdu.c - access to PDU internals 19 static u8 llc_pdu_get_pf_bit(struct llc_pdu_sn *pdu); 31 * This function sets poll/final bit in LLC header (based on type of 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() 60 * PDU). In I or S pdus, p/f bit is right bit of fourth byte in header. In 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() [all …]
|
D | llc_c_ev.c | 52 * @ns: sequence number of received pdu. 56 * Checks if sequence number of received PDU is in range of receive 68 * @nr: N(R) of received PDU. 70 * This routine checks if N(R) of received PDU is in range of transmit 71 * window; on the other hand checks if received PDU acknowledges some 79 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() [all …]
|
D | llc_s_ev.c | 34 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 …]
|
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() [all …]
|
D | llc_input.c | 70 * llc_pdu_type - returns which LLC component must handle for PDU 73 * This function returns which LLC component must handle this PDU. 77 int type = LLC_DEST_CONN; /* I-PDU or S-PDU type */ in llc_pdu_type() 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() [all …]
|
D | llc_s_ac.c | 30 * llc_sap_action_unitdata_ind - forward UI PDU to network layer 34 * Received a UI PDU from MAC layer; forward to network layer as a 44 * llc_sap_action_send_ui - sends UI PDU resp to UNITDATA REQ to MAC layer 48 * Sends a UI PDU to the MAC layer in response to a UNITDATA REQUEST 69 * llc_sap_action_send_xid_c - send XID PDU as response to XID REQ 73 * Send a XID command PDU to MAC layer in response to a XID REQUEST 94 * llc_sap_action_send_xid_r - send XID PDU resp to MAC for received XID 98 * Send XID response PDU to MAC in response to an earlier received XID 99 * command PDU. Verify event is a PDU type event 125 * llc_sap_action_send_test_c - send TEST PDU to MAC in resp to TEST REQ [all …]
|
D | llc_c_ac.c | 51 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-6.12.1/include/net/ |
D | llc_pdu.h | 37 #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) 42 /* Command/response PDU indicator in SSAP field */ 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 49 /* Get PDU type from 2 lowest-order bits of control field first byte */ 60 #define LLC_PDU_TYPE_IS_I(pdu) \ argument 61 ((!(pdu->ctrl_1 & LLC_PDU_TYPE_I_MASK)) ? 1 : 0) [all …]
|
/linux-6.12.1/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.asn1 | 17 pdu 96 GetRequest-PDU, 99 GetNextRequest-PDU, 102 GetBulkRequest-PDU, 105 Response-PDU, 108 SetRequest-PDU, 111 InformRequest-PDU, 114 SNMPv2-Trap-PDU, 117 Report-PDU 120 GetRequest-PDU ::= [all …]
|
/linux-6.12.1/drivers/usb/usbip/ |
D | vhci_rx.c | 56 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() 76 /* unpack the pdu to a urb */ 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() [all …]
|
D | usbip_common.c | 259 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 …]
|
D | vudc_rx.c | 16 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 …]
|
D | stub_rx.c | 209 * handler will be called and stub_tx will send a return pdu. 214 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument 223 if (priv->seqnum != pdu->u.cmd_unlink.seqnum) in stub_recv_cmd_unlink() 230 * now not going to return the normal result pdu of a in stub_recv_cmd_unlink() 231 * submission request, but going to return a result pdu in stub_recv_cmd_unlink() 240 * to make the result pdu of the unlink request. in stub_recv_cmd_unlink() 242 priv->seqnum = pdu->base.seqnum; in stub_recv_cmd_unlink() 253 * will return the result pdu of this unlink request in stub_recv_cmd_unlink() 273 pdu->u.cmd_unlink.seqnum); in stub_recv_cmd_unlink() 278 * CMD_RET pdu. In this case, usb_unlink_urb() is not needed. We only in stub_recv_cmd_unlink() [all …]
|
/linux-6.12.1/net/9p/ |
D | protocol.c | 194 p9pdu_writef(struct p9_fcall *pdu, int proto_version, const char *fmt, ...); 211 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument 213 size_t len = min(pdu->size - pdu->offset, size); in pdu_read() 215 memcpy(data, &pdu->sdata[pdu->offset], len); in pdu_read() 216 pdu->offset += len; in pdu_read() 220 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument 222 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write() 224 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write() 225 pdu->size += len; in pdu_write() 230 pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size) in pdu_write_u() argument [all …]
|
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-6.12.1/include/linux/ |
D | nvme-tcp.h | 62 * struct nvme_tcp_hdr - nvme tcp pdu common header 64 * @type: pdu type 65 * @flags: pdu specific flags 66 * @hlen: pdu header length 67 * @pdo: pdu data offset 68 * @plen: pdu wire byte length 79 * struct nvme_tcp_icreq_pdu - nvme tcp initialize connection request pdu 81 * @hdr: pdu generic header 82 * @pfv: pdu version format 83 * @hpda: host pdu data alignment (dwords, 0's based) [all …]
|
/linux-6.12.1/drivers/target/iscsi/ |
D | iscsi_target_seq_pdu_list.c | 42 struct iscsi_pdu *pdu; in iscsit_dump_pdu_list() local 44 pr_debug("Dumping PDU List for ITT: 0x%08x:\n", in iscsit_dump_pdu_list() 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() 282 * Builds PDU and/or Sequence list, called while DataSequenceInOrder=No 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() [all …]
|
D | iscsi_target_datain_values.c | 304 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 …]
|
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() 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 …]
|
/linux-6.12.1/net/bridge/ |
D | br_private_cfm.h | 40 /* Expected received CCM PDU MAID. */ 43 /* Expected received CCM PDU interval. */ 44 /* Transmitting CCM PDU interval when CCM tx is enabled. */ 47 bool enable; /* Enable/disable CCM PDU handling */ 69 /* OAM PDU Tx information */ 93 /* Indications that an OAM PDU has been seen. */ 94 bool opcode_unexp_seen; /* RX of OAM PDU with unexpected opcode */ 95 bool version_unexp_seen; /* RX of OAM PDU with unexpected version */ 96 bool rx_level_low_seen; /* Rx of OAM PDU with level low */ 100 /* This CCM related status is based on the latest received CCM PDU. */ [all …]
|
/linux-6.12.1/drivers/nvme/host/ |
D | tcp.c | 104 void *pdu; member 150 void *pdu; member 260 return req->pdu; in nvme_tcp_req_cmd_pdu() 265 /* use the pdu space in the back for the data pdu */ in nvme_tcp_req_data_pdu() 266 return req->pdu + sizeof(struct nvme_tcp_cmd_pdu) - in nvme_tcp_req_data_pdu() 463 void *pdu, size_t len) in nvme_tcp_hdgst() argument 467 sg_init_one(&sg, pdu, len); in nvme_tcp_hdgst() 468 ahash_request_set_crypt(hash, &sg, pdu + len, len); in nvme_tcp_hdgst() 473 void *pdu, size_t pdu_len) in nvme_tcp_verify_hdgst() argument 475 struct nvme_tcp_hdr *hdr = pdu; in nvme_tcp_verify_hdgst() [all …]
|
/linux-6.12.1/net/802/ |
D | mrp.c | 328 app->pdu = skb; in mrp_pdu_init() 336 if (skb_tailroom(app->pdu) < sizeof(*endmark)) in mrp_pdu_append_end_mark() 338 endmark = __skb_put(app->pdu, sizeof(*endmark)); in mrp_pdu_append_end_mark() 345 if (!app->pdu) in mrp_pdu_queue() 348 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue() 352 dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type), in mrp_pdu_queue() 354 app->pdu->len); in mrp_pdu_queue() 356 skb_queue_tail(&app->queue, app->pdu); 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() [all …]
|
/linux-6.12.1/drivers/nvme/target/ |
D | tcp.c | 171 union nvme_tcp_pdu pdu; member 299 void *pdu, size_t len) in nvmet_tcp_hdgst() argument 303 sg_init_one(&sg, pdu, len); in nvmet_tcp_hdgst() 304 ahash_request_set_crypt(hash, &sg, pdu + len, len); in nvmet_tcp_hdgst() 309 void *pdu, size_t len) in nvmet_tcp_verify_hdgst() argument 311 struct nvme_tcp_hdr *hdr = pdu; in nvmet_tcp_verify_hdgst() 321 recv_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst() 322 nvmet_tcp_hdgst(queue->rcv_hash, pdu, len); in nvmet_tcp_verify_hdgst() 323 exp_digest = *(__le32 *)(pdu + hdr->hlen); in nvmet_tcp_verify_hdgst() 334 static int nvmet_tcp_check_ddgst(struct nvmet_tcp_queue *queue, void *pdu) in nvmet_tcp_check_ddgst() argument [all …]
|
/linux-6.12.1/drivers/net/wireless/ath/wcn36xx/ |
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() 336 skb_pull(skb, bd->pdu.mpdu_data_off); in wcn36xx_rx_skb() 342 if (bd->pdu.mpdu_header_off < sizeof(*bd) || 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() 347 skb_pull(skb, bd->pdu.mpdu_header_off); in wcn36xx_rx_skb() 449 skb, bd->pdu.mpdu_len, bd->pdu.mpdu_header_off, in wcn36xx_rx_skb() [all …]
|
/linux-6.12.1/net/nfc/ |
D | llcp_commands.c | 283 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() 325 pr_err("Could not allocate PDU\n"); in llcp_allocate_pdu() 649 struct sk_buff *pdu; in nfc_llcp_send_i_frame() local 700 pdu = llcp_allocate_pdu(sock, LLCP_PDU_I, in nfc_llcp_send_i_frame() 702 if (pdu == NULL) { in nfc_llcp_send_i_frame() [all …]
|