Home
last modified time | relevance | path

Searched full:pdo (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/usb/typec/
H A Dpd.c20 #define to_pdo(o) container_of(o, struct pdo, dev)
22 struct pdo { struct
25 u32 pdo; argument
39 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_DUAL_ROLE)); in dual_role_power_show()
46 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_SUSPEND)); in usb_suspend_supported_show()
53 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_HIGHER_CAP)); in higher_capability_show()
60 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_EXTPOWER)); in unconstrained_power_show()
67 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_USB_COMM)); in usb_communication_capable_show()
74 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_DATA_SWAP)); in dual_role_data_show()
82 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_UNCHUNK_EXT)); in unchunked_extended_messages_supported_show()
[all …]
H A Drt1719.c311 u32 pdo = data->spdos[i]; in rt1719_update_operating_status() local
312 enum pd_pdo_type type = pdo_type(pdo); in rt1719_update_operating_status()
H A Danx7411.c793 u32 *pdo, int nr, const char *type) in anx7411_translate_payload() argument
805 payload[i] = cpu_to_le32(pdo[i]); in anx7411_translate_payload()
/linux/sound/pci/asihpi/
H A Dhpi6000.c171 static void hpi6000_send_dsp_interrupt(struct dsp_obj *pdo);
179 static void hpi_write_word(struct dsp_obj *pdo, u32 address, u32 data);
181 static u32 hpi_read_word(struct dsp_obj *pdo, u32 address);
183 static void hpi_write_block(struct dsp_obj *pdo, u32 address, u32 *pdata,
186 static void hpi_read_block(struct dsp_obj *pdo, u32 address, u32 *pdata,
716 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_adapter_boot_load_dsp()
720 iowrite32(0x00010001, pdo->prHPI_control); in hpi6000_adapter_boot_load_dsp()
725 iowrite32(test_data, pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp()
726 data = ioread32(pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp()
741 if (HpiReadWord(pdo, in hpi6000_adapter_boot_load_dsp()
711 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_adapter_boot_load_dsp() local
1131 hpi_set_address(struct dsp_obj * pdo,u32 address) hpi_set_address() argument
1148 hpi_write_word(struct dsp_obj * pdo,u32 address,u32 data) hpi_write_word() argument
1156 hpi_read_word(struct dsp_obj * pdo,u32 address) hpi_read_word() argument
1169 hpi_write_block(struct dsp_obj * pdo,u32 address,u32 * pdata,u32 length) hpi_write_block() argument
1189 hpi_read_block(struct dsp_obj * pdo,u32 address,u32 * pdata,u32 length) hpi_read_block() argument
1211 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_dsp_block_write32() local
1249 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_dsp_block_read32() local
1287 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_message_response_sequence() local
1406 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_send_data() local
1479 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_get_data() local
1534 hpi6000_send_dsp_interrupt(struct dsp_obj * pdo) hpi6000_send_dsp_interrupt() argument
1543 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_send_host_command() local
1589 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_wait_dsp_ack() local
1632 struct dsp_obj *pdo = &phw->ado[dsp_index]; hpi6000_update_control_cache() local
[all...]
/linux/net/sunrpc/
H A Drpc_pipe.c712 * @pdo: pointer to struct rpc_pipe_dir_object
716 void rpc_init_pipe_dir_object(struct rpc_pipe_dir_object *pdo, in rpc_init_pipe_dir_object() argument
720 INIT_LIST_HEAD(&pdo->pdo_head); in rpc_init_pipe_dir_object()
721 pdo->pdo_ops = pdo_ops; in rpc_init_pipe_dir_object()
722 pdo->pdo_data = pdo_data; in rpc_init_pipe_dir_object()
729 struct rpc_pipe_dir_object *pdo) in rpc_add_pipe_dir_object_locked() argument
734 ret = pdo->pdo_ops->create(pdh->pdh_dentry, pdo); in rpc_add_pipe_dir_object_locked()
736 list_add_tail(&pdo->pdo_head, &pdh->pdh_entries); in rpc_add_pipe_dir_object_locked()
743 struct rpc_pipe_dir_object *pdo) in rpc_remove_pipe_dir_object_locked() argument
746 pdo->pdo_ops->destroy(pdh->pdh_dentry, pdo); in rpc_remove_pipe_dir_object_locked()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-usb_power_delivery28 set of Power Data Objects (PDO), each representing a type of
29 power supply. The order of the PDO objects is defined in the USB
30 Power Delivery Specification. Each PDO - power supply - will
31 have its own device, and the PDO device name will start with the
42 of Power Data Objects (PDO) just like with source capabilities,
59 Specification dictates that the first PDO (at object position
60 1), and the only mandatory PDO, is always the vSafe5V Fixed
164 Variable Power Supply PDO.
198 Battery PDO.
231 Programmable Power Supply (PPS) Augmented PDO (APDO).
[all …]
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c269 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0,
356 * @port_partner_src_pdo_index: PDO index of SPR AVS cap of the port partner
360 * @port_snk_pdo_index: PDO index of SPR AVS cap of local port acting as sink
919 u32 pdo = port->source_caps[i]; in tcpm_log_source_caps() local
920 enum pd_pdo_type type = pdo_type(pdo); in tcpm_log_source_caps()
927 pdo_fixed_voltage(pdo), in tcpm_log_source_caps()
928 pdo_max_current(pdo), in tcpm_log_source_caps()
929 (pdo & PDO_FIXED_DUAL_ROLE) ? in tcpm_log_source_caps()
931 (pdo & PDO_FIXED_SUSPEND) ? in tcpm_log_source_caps()
933 (pdo & PDO_FIXED_HIGHER_CAP) ? in tcpm_log_source_caps()
[all …]
/linux/include/linux/sunrpc/
H A Drpc_pipe_fs.h22 struct rpc_pipe_dir_object *pdo);
24 struct rpc_pipe_dir_object *pdo);
105 extern void rpc_init_pipe_dir_object(struct rpc_pipe_dir_object *pdo,
110 struct rpc_pipe_dir_object *pdo);
113 struct rpc_pipe_dir_object *pdo);
/linux/Documentation/devicetree/bindings/connector/
H A Dusb-connector.yaml215 is applied during PD3.0 Fast Role Swap. "Table 6-14 Fixed Supply PDO - Sink"
218 provides a detailed description of the field. The sink PDO from current source
226 "1" refers to default USB power level as described by "Table 6-14 Fixed Supply PDO - Sink".
352 source data object(PDO), the detailed bit definitions of PDO can be found
354 Source_Capabilities Message, the order of each entry(PDO) should follow
356 User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO()
364 data object(PDO), the detailed bit definitions of PDO can be found in
366 Sink Capabilities Message, the order of each entry(PDO) should follow the
368 can specify the sink PDO array via
/linux/drivers/hwmon/
H A Dntc_thermistor.c426 u64 n, puo, pdo; in get_ohm_of_thermistor() local
428 pdo = data->pulldown_ohm; in get_ohm_of_thermistor()
435 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
436 else if (data->connect == NTC_CONNECTED_GROUND && pdo == 0) in get_ohm_of_thermistor()
439 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
440 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor()
442 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()
/linux/net/sunrpc/auth_gss/
H A Dauth_gss.c79 struct rpc_pipe_dir_object pdo; member
890 struct rpc_pipe_dir_object *pdo) in gss_pipe_dentry_destroy() argument
892 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy()
898 struct rpc_pipe_dir_object *pdo) in gss_pipe_dentry_create() argument
900 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create()
928 rpc_init_pipe_dir_object(&p->pdo, in gss_pipe_alloc()
944 static int gss_pipe_match_pdo(struct rpc_pipe_dir_object *pdo, void *data) in gss_pipe_match_pdo() argument
949 if (pdo->pdo_ops != &gss_pipe_dir_object_ops) in gss_pipe_match_pdo()
951 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo()
966 return &gss_pipe->pdo; in gss_pipe_alloc_pdo()
[all …]
/linux/include/linux/
H A Dnvme-tcp.h69 * @pdo: pdu data offset
76 __u8 pdo; member
/linux/fs/nfs/
H A Dnfs4idmap.c421 struct rpc_pipe_dir_object *pdo) in nfs_idmap_pipe_destroy() argument
423 struct idmap *idmap = pdo->pdo_data; in nfs_idmap_pipe_destroy()
429 struct rpc_pipe_dir_object *pdo) in nfs_idmap_pipe_create() argument
431 struct idmap *idmap = pdo->pdo_data; in nfs_idmap_pipe_create()
/linux/Documentation/devicetree/bindings/hwmon/
H A Dntc-thermistor.yaml41 | | (pdo) | "connected positive"
/linux/drivers/nvme/target/
H A Dtcp.c503 pdu->hdr.pdo = pdu->hdr.hlen + hdgst; in nvmet_setup_c2h_data_pdu()
533 pdu->hdr.pdo = 0; in nvmet_setup_r2t_pdu()
557 pdu->hdr.pdo = 0; in nvmet_setup_response_pdu()
927 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()
/linux/drivers/nvme/host/
H A Dtcp.c768 data->hdr.pdo = data->hdr.hlen + hdgst; in nvme_tcp_setup_h2c_data_pdu()
1557 icreq->hdr.pdo = 0; in nvme_tcp_init_connection()
2826 pdu->hdr.pdo = req->pdu_len ? pdu->hdr.hlen + hdgst : 0; in nvme_tcp_setup_cmd_pdu()