Home
last modified time | relevance | path

Searched refs:swap_type (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c81 static int cros_typec_resp_to_role(struct ec_response_usb_pd_control_v2 *resp, u8 swap_type) in cros_typec_resp_to_role() argument
83 switch (swap_type) { in cros_typec_resp_to_role()
93 static int cros_typec_perform_role_swap(struct typec_port *tc_port, int target_role, u8 swap_type) in cros_typec_perform_role_swap() argument
117 role = cros_typec_resp_to_role(&resp, swap_type); in cros_typec_perform_role_swap()
119 dev_warn(data->dev, "Unsupported role swap type %d\n", swap_type); in cros_typec_perform_role_swap()
126 req.swap = swap_type; in cros_typec_perform_role_swap()
146 if (cros_typec_resp_to_role(&resp, swap_type) == target_role) in cros_typec_perform_role_swap()
162 if (swap_type == USB_PD_CTRL_SWAP_DATA) in cros_typec_perform_role_swap()
/linux/tools/perf/util/
H A Ddso.h198 #define DSO_SWAP_TYPE__SWAP(swap_type, type, val) \
201 BUG_ON(swap_type == DSO_SWAP__UNSET); \
202 if (swap_type == DSO_SWAP__YES) { \
163 DSO_SWAP_TYPE__SWAP(swap_type,type,val) global() argument
H A Ddso.c1283 enum dso_swap_type swap_type; in dso__read_e_machine()
1305 swap_type = dso_swap_type__from_elf_data(e_ident[EI_DATA]); in dso__e_machine()
1306 if (swap_type == DSO_SWAP__UNSET) in dso__e_machine()
1315 dso__needs_swap(optional_dso) == swap_type); in dso__e_machine()
1316 dso__set_needs_swap(optional_dso, swap_type); in dso__e_machine()
1326 e_machine = DSO_SWAP_TYPE__SWAP(swap_type, uint16_t, e_machine); in dso__e_machine()
1227 enum dso_swap_type swap_type; dso__read_e_machine() local