/openbmc/linux/net/llc/ |
H A 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 …]
|
H A 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 …]
|
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 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 …]
|
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() [all …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/include/net/ |
H A 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 …]
|
/openbmc/linux/net/ipv4/netfilter/ |
H A 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 …]
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p.c | 58 static ssize_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...) in pdu_marshal() argument 64 ret = pdu->s->transport->pdu_vmarshal(pdu, offset, fmt, ap); in pdu_marshal() 70 static ssize_t pdu_unmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...) in pdu_unmarshal() argument 76 ret = pdu->s->transport->pdu_vunmarshal(pdu, offset, fmt, ap); in pdu_unmarshal() 259 static int coroutine_fn v9fs_reopen_fid(V9fsPDU *pdu, V9fsFidState *f) in v9fs_reopen_fid() argument 265 err = v9fs_co_open(pdu, f, f->open_flags); in v9fs_reopen_fid() 266 } while (err == -EINTR && !pdu->cancelled); in v9fs_reopen_fid() 271 err = v9fs_co_opendir(pdu, f); in v9fs_reopen_fid() 272 } while (err == -EINTR && !pdu->cancelled); in v9fs_reopen_fid() 278 static V9fsFidState *coroutine_fn get_fid(V9fsPDU *pdu, int32_t fid) in get_fid() argument [all …]
|
H A D | cofs.c | 57 int coroutine_fn v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf) in v9fs_co_readlink() argument 60 V9fsState *s = pdu->s; in v9fs_co_readlink() 62 if (v9fs_request_cancelled(pdu)) { in v9fs_co_readlink() 77 int coroutine_fn v9fs_co_statfs(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_statfs() argument 81 V9fsState *s = pdu->s; in v9fs_co_statfs() 83 if (v9fs_request_cancelled(pdu)) { in v9fs_co_statfs() 98 int coroutine_fn v9fs_co_chmod(V9fsPDU *pdu, V9fsPath *path, mode_t mode) in v9fs_co_chmod() argument 102 V9fsState *s = pdu->s; in v9fs_co_chmod() 104 if (v9fs_request_cancelled(pdu)) { in v9fs_co_chmod() 121 int coroutine_fn v9fs_co_utimensat(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_utimensat() argument [all …]
|
H A D | cofile.c | 25 int coroutine_fn v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode, in v9fs_co_st_gen() argument 29 V9fsState *s = pdu->s; in v9fs_co_st_gen() 31 if (v9fs_request_cancelled(pdu)) { in v9fs_co_st_gen() 49 int coroutine_fn v9fs_co_lstat(V9fsPDU *pdu, V9fsPath *path, struct stat *stbuf) in v9fs_co_lstat() argument 52 V9fsState *s = pdu->s; in v9fs_co_lstat() 54 if (v9fs_request_cancelled(pdu)) { in v9fs_co_lstat() 69 int coroutine_fn v9fs_co_fstat(V9fsPDU *pdu, V9fsFidState *fidp, in v9fs_co_fstat() argument 73 V9fsState *s = pdu->s; in v9fs_co_fstat() 75 if (v9fs_request_cancelled(pdu)) { in v9fs_co_fstat() 90 err = v9fs_co_lstat(pdu, &fidp->path, stbuf); in v9fs_co_fstat() [all …]
|
H A D | codir.c | 31 static int do_readdir(V9fsPDU *pdu, V9fsFidState *fidp, struct dirent **dent) in do_readdir() argument 34 V9fsState *s = pdu->s; in do_readdir() 52 int coroutine_fn v9fs_co_readdir(V9fsPDU *pdu, V9fsFidState *fidp, in v9fs_co_readdir() argument 57 if (v9fs_request_cancelled(pdu)) { in v9fs_co_readdir() 61 err = do_readdir(pdu, fidp, dent); in v9fs_co_readdir() 72 do_readdir_many(V9fsPDU *pdu, V9fsFidState *fidp, struct V9fsDirEnt **entries, in do_readdir_many() argument 75 V9fsState *s = pdu->s; in do_readdir_many() 115 if (v9fs_request_cancelled(pdu)) { in do_readdir_many() 121 err = do_readdir(pdu, fidp, &dent); in do_readdir_many() 188 * @pdu: the causing 9p (T_readdir) client request [all …]
|
H A D | virtio-9p-device.c | 31 static void virtio_9p_push_and_notify(V9fsPDU *pdu) in virtio_9p_push_and_notify() argument 33 V9fsState *s = pdu->s; in virtio_9p_push_and_notify() 35 VirtQueueElement *elem = v->elems[pdu->idx]; in virtio_9p_push_and_notify() 38 virtqueue_push(v->vq, elem, pdu->size); in virtio_9p_push_and_notify() 40 v->elems[pdu->idx] = NULL; in virtio_9p_push_and_notify() 50 V9fsPDU *pdu; in handle_9p_output() local 54 while ((pdu = pdu_alloc(s))) { in handle_9p_output() 76 v->elems[pdu->idx] = elem; in handle_9p_output() 78 pdu_submit(pdu, &out); in handle_9p_output() 87 pdu_free(pdu); in handle_9p_output() [all …]
|
H A D | coxattr.c | 25 int coroutine_fn v9fs_co_llistxattr(V9fsPDU *pdu, V9fsPath *path, void *value, in v9fs_co_llistxattr() argument 29 V9fsState *s = pdu->s; in v9fs_co_llistxattr() 31 if (v9fs_request_cancelled(pdu)) { in v9fs_co_llistxattr() 46 int coroutine_fn v9fs_co_lgetxattr(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_lgetxattr() argument 51 V9fsState *s = pdu->s; in v9fs_co_lgetxattr() 53 if (v9fs_request_cancelled(pdu)) { in v9fs_co_lgetxattr() 70 int coroutine_fn v9fs_co_lsetxattr(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_lsetxattr() argument 75 V9fsState *s = pdu->s; in v9fs_co_lsetxattr() 77 if (v9fs_request_cancelled(pdu)) { in v9fs_co_lsetxattr() 94 int coroutine_fn v9fs_co_lremovexattr(V9fsPDU *pdu, V9fsPath *path, in v9fs_co_lremovexattr() argument [all …]
|
/openbmc/linux/drivers/usb/usbip/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/net/9p/ |
H A 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 …]
|
/openbmc/linux/include/linux/ |
H A 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 …]
|
/openbmc/linux/drivers/target/iscsi/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/phosphor-snmp/ |
H A D | snmp_notification.cpp | 22 bool Notification::addPDUVar(netsnmp_pdu& pdu, const OID& objID, in addPDUVar() argument 31 varList = snmp_pdu_add_variable(&pdu, objID.data(), objIDLen, type, in addPDUVar() 38 varList = snmp_pdu_add_variable(&pdu, objID.data(), objIDLen, type, in addPDUVar() 45 varList = snmp_pdu_add_variable(&pdu, objID.data(), objIDLen, type, in addPDUVar() 52 varList = snmp_pdu_add_variable(&pdu, objID.data(), objIDLen, type, in addPDUVar() 97 auto pdu = snmp_pdu_create(SNMP_MSG_TRAP2); in sendTrap() local 98 if (!pdu) in sendTrap() 100 lg2::error("Failed to create notification PDU"); in sendTrap() 109 if (snmp_add_var(pdu, sysuptimeOID, sizeof(sysuptimeOID) / sizeof(oid), in sendTrap() 114 snmp_free_pdu(pdu); in sendTrap() [all …]
|
/openbmc/linux/net/bridge/ |
H A 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 …]
|
/openbmc/openbmc-test-automation/lib/pdu/ |
H A D | synaccess.robot | 2 Documentation Synaccess Protocol Distribution Unit (PDU) library 4 Resource ../../lib/pdu/pdu.robot 9 [Documentation] Open PDU connection and login. 13 Create Session pdu http://${PDU_IP} auth=${auth} 16 [Documentation] Perform PDU power cycle. 18 ${resp}= GET On Session pdu /cmd.cgi?$A4 ${PDU_SLOT_NO} 21 ... PDU returned RC=${resp}.
|