| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/net/ipv4/netfilter/ |
| D | nf_nat_snmp_basic.asn1 | 9 pdu 88 GetRequest-PDU, 91 GetNextRequest-PDU, 94 GetBulkRequest-PDU, 97 Response-PDU, 100 SetRequest-PDU, 103 InformRequest-PDU, 106 SNMPv2-Trap-PDU, 109 Report-PDU 112 GetRequest-PDU ::= [all …]
|
| /kernel/linux/linux-6.6/net/ipv4/netfilter/ |
| D | nf_nat_snmp_basic.asn1 | 9 pdu 88 GetRequest-PDU, 91 GetNextRequest-PDU, 94 GetBulkRequest-PDU, 97 Response-PDU, 100 SetRequest-PDU, 103 InformRequest-PDU, 106 SNMPv2-Trap-PDU, 109 Report-PDU 112 GetRequest-PDU ::= [all …]
|
| /kernel/linux/linux-5.10/net/9p/ |
| D | protocol.c | 29 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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | nvme-tcp.h | 55 * struct nvme_tcp_hdr - nvme tcp pdu common header 57 * @type: pdu type 58 * @flags: pdu specific flags 59 * @hlen: pdu header length 60 * @pdo: pdu data offset 61 * @plen: pdu wire byte length 72 * struct nvme_tcp_icreq_pdu - nvme tcp initialize connection request pdu 74 * @hdr: pdu generic header 75 * @pfv: pdu version format 76 * @hpda: host pdu data alignment (dwords, 0's based) [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 | 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 | 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 | stub_rx.c | 200 * handler will be called and stub_tx will send a return pdu. 205 struct usbip_header *pdu) in stub_recv_cmd_unlink() argument 214 if (priv->seqnum != pdu->u.cmd_unlink.seqnum) in stub_recv_cmd_unlink() 221 * now not going to return the normal result pdu of a in stub_recv_cmd_unlink() 222 * submission request, but going to return a result pdu in stub_recv_cmd_unlink() 231 * to make the result pdu of the unlink request. in stub_recv_cmd_unlink() 233 priv->seqnum = pdu->base.seqnum; in stub_recv_cmd_unlink() 244 * will return the result pdu of this unlink request in stub_recv_cmd_unlink() 264 pdu->u.cmd_unlink.seqnum); in stub_recv_cmd_unlink() 269 * CMD_RET pdu. In this case, usb_unlink_urb() is not needed. We only in stub_recv_cmd_unlink() [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | nvme-tcp.h | 64 * struct nvme_tcp_hdr - nvme tcp pdu common header 66 * @type: pdu type 67 * @flags: pdu specific flags 68 * @hlen: pdu header length 69 * @pdo: pdu data offset 70 * @plen: pdu wire byte length 81 * struct nvme_tcp_icreq_pdu - nvme tcp initialize connection request pdu 83 * @hdr: pdu generic header 84 * @pfv: pdu version format 85 * @hpda: host pdu data alignment (dwords, 0's based) [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|