/linux-6.14.4/drivers/usb/typec/ |
D | pd.c | 20 #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 …]
|
D | rt1719.c | 311 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()
|
D | anx7411.c | 793 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-6.14.4/sound/pci/asihpi/ |
D | hpi6000.c | 171 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, 711 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_adapter_boot_load_dsp() local 715 iowrite32(0x00010001, pdo->prHPI_control); in hpi6000_adapter_boot_load_dsp() 720 iowrite32(test_data, pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp() 721 data = ioread32(pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp() 736 if (HpiReadWord(pdo,0x01B7C118) == 0x8000) in hpi6000_adapter_boot_load_dsp() [all …]
|
/linux-6.14.4/include/linux/usb/ |
D | pd.h | 207 /* PDO: Power Data Object */ 300 static inline enum pd_pdo_type pdo_type(u32 pdo) in pdo_type() argument 302 return (pdo >> PDO_TYPE_SHIFT) & PDO_TYPE_MASK; in pdo_type() 305 static inline unsigned int pdo_fixed_voltage(u32 pdo) in pdo_fixed_voltage() argument 307 return ((pdo >> PDO_FIXED_VOLT_SHIFT) & PDO_VOLT_MASK) * 50; in pdo_fixed_voltage() 310 static inline unsigned int pdo_min_voltage(u32 pdo) in pdo_min_voltage() argument 312 return ((pdo >> PDO_VAR_MIN_VOLT_SHIFT) & PDO_VOLT_MASK) * 50; in pdo_min_voltage() 315 static inline unsigned int pdo_max_voltage(u32 pdo) in pdo_max_voltage() argument 317 return ((pdo >> PDO_VAR_MAX_VOLT_SHIFT) & PDO_VOLT_MASK) * 50; in pdo_max_voltage() 320 static inline unsigned int pdo_max_current(u32 pdo) in pdo_max_current() argument [all …]
|
/linux-6.14.4/drivers/usb/typec/ucsi/ |
D | psy.c | 67 u32 pdo; in ucsi_psy_get_voltage_min() local 71 pdo = con->src_pdos[0]; in ucsi_psy_get_voltage_min() 72 val->intval = pdo_fixed_voltage(pdo) * 1000; in ucsi_psy_get_voltage_min() 90 u32 pdo; in ucsi_psy_get_voltage_max() local 95 pdo = con->src_pdos[con->num_pdos - 1]; in ucsi_psy_get_voltage_max() 96 val->intval = pdo_fixed_voltage(pdo) * 1000; in ucsi_psy_get_voltage_max() 118 u32 pdo; in ucsi_psy_get_voltage_now() local 124 pdo = con->src_pdos[index - 1]; in ucsi_psy_get_voltage_now() 125 val->intval = pdo_fixed_voltage(pdo) * 1000; in ucsi_psy_get_voltage_now() 146 u32 pdo; in ucsi_psy_get_current_max() local [all …]
|
D | ucsi.c | 741 ret = ucsi_get_pdos(con, role, is_partner, pd_caps.pdo); in ucsi_get_pd_caps() 746 pd_caps.pdo[ret] = 0; in ucsi_get_pd_caps()
|
/linux-6.14.4/net/sunrpc/ |
D | rpc_pipe.c | 873 * @pdo: pointer to struct rpc_pipe_dir_object 877 void rpc_init_pipe_dir_object(struct rpc_pipe_dir_object *pdo, in rpc_init_pipe_dir_object() argument 881 INIT_LIST_HEAD(&pdo->pdo_head); in rpc_init_pipe_dir_object() 882 pdo->pdo_ops = pdo_ops; in rpc_init_pipe_dir_object() 883 pdo->pdo_data = pdo_data; in rpc_init_pipe_dir_object() 890 struct rpc_pipe_dir_object *pdo) in rpc_add_pipe_dir_object_locked() argument 895 ret = pdo->pdo_ops->create(pdh->pdh_dentry, pdo); in rpc_add_pipe_dir_object_locked() 897 list_add_tail(&pdo->pdo_head, &pdh->pdh_entries); in rpc_add_pipe_dir_object_locked() 904 struct rpc_pipe_dir_object *pdo) in rpc_remove_pipe_dir_object_locked() argument 907 pdo->pdo_ops->destroy(pdh->pdh_dentry, pdo); in rpc_remove_pipe_dir_object_locked() [all …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | sysfs-class-usb_power_delivery | 28 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).
|
/linux-6.14.4/drivers/usb/typec/tcpm/ |
D | tcpm.c | 243 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 771 u32 pdo = port->source_caps[i]; in tcpm_log_source_caps() local 772 enum pd_pdo_type type = pdo_type(pdo); in tcpm_log_source_caps() 779 pdo_fixed_voltage(pdo), in tcpm_log_source_caps() 780 pdo_max_current(pdo), in tcpm_log_source_caps() 781 (pdo & PDO_FIXED_DUAL_ROLE) ? in tcpm_log_source_caps() 783 (pdo & PDO_FIXED_SUSPEND) ? in tcpm_log_source_caps() 785 (pdo & PDO_FIXED_HIGHER_CAP) ? in tcpm_log_source_caps() 787 (pdo & PDO_FIXED_USB_COMM) ? in tcpm_log_source_caps() 789 (pdo & PDO_FIXED_DATA_SWAP) ? in tcpm_log_source_caps() [all …]
|
/linux-6.14.4/include/linux/sunrpc/ |
D | rpc_pipe_fs.h | 22 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-6.14.4/Documentation/devicetree/bindings/connector/ |
D | usb-connector.yaml | 215 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". 317 source data object(PDO), the detailed bit definitions of PDO can be found 319 Source_Capabilities Message, the order of each entry(PDO) should follow 321 User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() 329 data object(PDO), the detailed bit definitions of PDO can be found in 331 Sink Capabilities Message, the order of each entry(PDO) should follow the 333 can specify the sink PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined
|
/linux-6.14.4/drivers/hwmon/ |
D | ntc_thermistor.c | 386 u64 n, puo, pdo; in get_ohm_of_thermistor() local 388 pdo = data->pulldown_ohm; in get_ohm_of_thermistor() 398 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor() 399 else if (data->connect == NTC_CONNECTED_GROUND && pdo == 0) in get_ohm_of_thermistor() 402 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor() 403 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor() 405 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()
|
/linux-6.14.4/net/sunrpc/auth_gss/ |
D | auth_gss.c | 77 struct rpc_pipe_dir_object pdo; member 887 struct rpc_pipe_dir_object *pdo) in gss_pipe_dentry_destroy() argument 889 struct gss_pipe *gss_pipe = pdo->pdo_data; in gss_pipe_dentry_destroy() 899 struct rpc_pipe_dir_object *pdo) in gss_pipe_dentry_create() argument 901 struct gss_pipe *p = pdo->pdo_data; in gss_pipe_dentry_create() 934 rpc_init_pipe_dir_object(&p->pdo, in gss_pipe_alloc() 950 static int gss_pipe_match_pdo(struct rpc_pipe_dir_object *pdo, void *data) in gss_pipe_match_pdo() argument 955 if (pdo->pdo_ops != &gss_pipe_dir_object_ops) in gss_pipe_match_pdo() 957 gss_pipe = container_of(pdo, struct gss_pipe, pdo); in gss_pipe_match_pdo() 972 return &gss_pipe->pdo; in gss_pipe_alloc_pdo() [all …]
|
/linux-6.14.4/include/linux/ |
D | nvme-tcp.h | 69 * @pdo: pdu data offset 76 __u8 pdo; member
|
/linux-6.14.4/fs/nfs/ |
D | nfs4idmap.c | 424 struct rpc_pipe_dir_object *pdo) in nfs_idmap_pipe_destroy() argument 426 struct idmap *idmap = pdo->pdo_data; in nfs_idmap_pipe_destroy() 436 struct rpc_pipe_dir_object *pdo) in nfs_idmap_pipe_create() argument 438 struct idmap *idmap = pdo->pdo_data; in nfs_idmap_pipe_create()
|
/linux-6.14.4/drivers/platform/chrome/ |
D | cros_ec_typec.h | 78 /* PDO-related structs */
|
D | cros_ec_typec.c | 1016 memcpy(caps_desc.pdo, resp->source_cap_pdos, sizeof(u32) * resp->source_cap_count); in cros_typec_register_partner_pdos() 1024 memcpy(caps_desc.pdo, resp->sink_cap_pdos, sizeof(u32) * resp->sink_cap_count); in cros_typec_register_partner_pdos()
|
/linux-6.14.4/Documentation/devicetree/bindings/hwmon/ |
D | ntc-thermistor.yaml | 41 | | (pdo) | "connected positive"
|
/linux-6.14.4/drivers/nvme/target/ |
D | tcp.c | 467 pdu->hdr.pdo = pdu->hdr.hlen + hdgst; in nvmet_setup_c2h_data_pdu() 498 pdu->hdr.pdo = 0; in nvmet_setup_r2t_pdu() 523 pdu->hdr.pdo = 0; in nvmet_setup_response_pdu() 934 icresp->hdr.pdo = 0; in nvmet_tcp_handle_icreq()
|
/linux-6.14.4/include/dt-bindings/usb/ |
D | pd.h | 89 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0,
|
/linux-6.14.4/drivers/nvme/host/ |
D | tcp.c | 721 data->hdr.pdo = data->hdr.hlen + hdgst; in nvme_tcp_setup_h2c_data_pdu() 1495 icreq->hdr.pdo = 0; in nvme_tcp_init_connection() 2670 pdu->hdr.pdo = req->pdu_len ? pdu->hdr.hlen + hdgst : 0; in nvme_tcp_setup_cmd_pdu()
|
/linux-6.14.4/drivers/pci/controller/ |
D | pci-hyperv.c | 3462 * with the FDO/PDO split, which doesn't exist in Linux. Linux
|