Searched refs:alt (Results 1 - 25 of 188) sorted by last modified time

12345678

/linux-master/drivers/usb/gadget/function/
H A Df_fs.c3716 unsigned interface, unsigned alt)
3722 if (alt != (unsigned)-1) {
3741 if (alt == (unsigned)-1) {
3715 ffs_func_set_alt(struct usb_function *f, unsigned interface, unsigned alt) argument
H A Df_ncm.c856 static int ncm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
863 if (alt != 0)
878 if (alt > 1)
892 if (alt == 1) {
1391 * - configured but inactive (data alt 0)
1392 * - configured and active (data alt 1)
/linux-master/drivers/usb/gadget/
H A Dcomposite.c138 * @alt: alternate setting number
154 u8 alt)
209 if (int_desc->bAlternateSetting == alt) {
1020 DBG(cdev, "interface %d (%s/%p) alt 0 --> %d\n",
151 config_ep_by_speed_and_alt(struct usb_gadget *g, struct usb_function *f, struct usb_ep *_ep, u8 alt) argument
/linux-master/arch/riscv/errata/thead/
H A Derrata.c164 struct alt_entry *alt; local
169 for (alt = begin; alt < end; alt++) {
170 if (alt->vendor_id != THEAD_VENDOR_ID)
172 if (alt->patch_id >= ERRATA_THEAD_NUMBER)
175 tmp = (1U << alt->patch_id);
177 oldptr = ALT_OLD_PTR(alt);
178 altptr = ALT_ALT_PTR(alt);
182 memcpy(oldptr, altptr, alt
[all...]
/linux-master/drivers/bluetooth/
H A Dbtusb.c2205 int alt)
2210 BT_DBG("Looking for Alt no :%d", alt);
2216 if (intf->altsetting[i].desc.bAlternateSetting == alt)
2251 /* Bluetooth USB spec recommends alt 6 (63 bytes), but
2253 * work for all adapters that do not have alt 6, and
2255 * alt 3 (HCI payload >= 60 Bytes let air packet
2271 bt_dev_err(hdev, "set USB alt:(%d) failed!", new_alts);
4560 BT_ERR("failed to set interface 0, alt 0 %d", err);
2204 btusb_find_altsetting(struct btusb_data *data, int alt) argument
/linux-master/drivers/usb/typec/ucsi/
H A Ducsi.c298 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) argument
303 for (i = 0; alt[i]; i++) {
307 if (alt[i]->svid == svid)
314 static int ucsi_next_altmode(struct typec_altmode **alt) argument
319 if (!alt[i])
325 static int ucsi_get_num_altmode(struct typec_altmode **alt) argument
330 if (!alt[i])
340 struct typec_altmode *alt; local
363 alt = ucsi_register_displayport(con, override, i, desc);
367 alt
447 struct ucsi_altmode alt; local
522 struct ucsi_altmode alt[2]; local
[all...]
H A Ducsi_ccg.c404 struct ucsi_ccg_altmode *alt, *new_alt; local
408 alt = uc->orig;
418 alt[i].svid = orig[i].svid;
419 alt[i].mid = orig[i].mid;
420 if (!alt[i].svid)
425 if (!alt[i].svid)
429 if (alt[i].checked)
432 if (!DP_CONF_GET_PIN_ASSIGN(alt[i].mid)) {
434 new_alt[k].svid = alt[i].svid;
435 new_alt[k].mid |= alt[
480 struct typec_altmode *alt = NULL; local
540 ucsi_ccg_nvidia_altmode(struct ucsi_ccg *uc, struct ucsi_altmode *alt) argument
565 struct ucsi_altmode *alt; local
[all...]
/linux-master/drivers/usb/typec/mux/
H A Dit5205.c98 state->alt->svid != USB_TYPEC_DP_SID)
/linux-master/fs/btrfs/
H A Dextent-tree.c2178 int alt = 1; local
2200 if (alt)
2205 alt = 1 - alt;
/linux-master/arch/x86/include/asm/
H A Dalternative.h387 .macro altinstr_entry orig alt ft_flags orig_len alt_len
389 .long \alt - .
/linux-master/tools/objtool/
H A Dcheck.c1891 * If the original instruction is a jump, make the alt entry an effective nop
1946 struct alternative *alt; local
1994 alt = malloc(sizeof(*alt));
1995 if (!alt) {
2001 alt->insn = new_insn;
2002 alt->skip_orig = special_alt->skip_orig;
2004 alt->next = orig_insn->alts;
2005 orig_insn->alts = alt;
2029 struct alternative *alt; local
3578 struct alternative *alt; local
3878 struct alternative *alt; local
[all...]
/linux-master/drivers/usb/typec/
H A Dclass.c248 /* Bind the port alt mode to the partner/plug alt mode. */
252 /* Bind the partner/plug alt mode to the port alt mode. */
316 * @alt: The Alternate Mode
318 * Returns handle to the port that a cable plug or partner with @alt is
321 struct typec_port *typec_altmode2port(struct typec_altmode *alt) argument
323 if (is_typec_plug(alt->dev.parent))
324 return to_typec_port(alt->dev.parent->parent->parent);
325 if (is_typec_partner(alt
337 struct typec_altmode *alt = to_typec_altmode(dev); local
346 struct typec_altmode *alt = to_typec_altmode(dev); local
355 struct typec_altmode *alt = to_typec_altmode(dev); local
403 struct altmode *alt = to_altmode(to_typec_altmode(dev)); local
500 struct altmode *alt = to_altmode(to_typec_altmode(dev)); local
521 struct altmode *alt; local
2279 struct typec_altmode *alt; local
[all...]
H A Dbus.c17 typec_altmode_set_retimer(struct altmode *alt, unsigned long conf, void *data) argument
21 if (!alt->retimer)
24 state.alt = &alt->adev;
28 return typec_retimer_set(alt->retimer, &state);
32 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) argument
36 if (!alt->mux)
39 state.alt = &alt->adev;
43 return typec_mux_set(alt
48 typec_altmode_set_switches(struct altmode *alt, unsigned long conf, void *data) argument
438 struct typec_altmode *alt = to_typec_altmode(dev); local
477 typec_altmode_create_links(struct altmode *alt) argument
494 typec_altmode_remove_links(struct altmode *alt) argument
[all...]
/linux-master/drivers/usb/storage/
H A Duas.c936 struct usb_host_interface *alt; local
938 alt = uas_find_uas_alt_setting(intf);
939 if (!alt)
942 return usb_set_interface(udev, alt->desc.bInterfaceNumber,
943 alt->desc.bAlternateSetting);
/linux-master/drivers/usb/misc/
H A Dusb-ljca.c746 struct usb_host_interface *alt = interface->cur_altsetting; local
775 ret = usb_find_common_endpoints(alt, &ep_in, &ep_out, NULL, NULL);
/linux-master/drivers/usb/core/
H A Dsysfs.c1161 struct usb_host_interface *alt; local
1165 alt = READ_ONCE(intf->cur_altsetting);
1176 alt->desc.bInterfaceClass,
1177 alt->desc.bInterfaceSubClass,
1178 alt->desc.bInterfaceProtocol,
1179 alt->desc.bInterfaceNumber);
1345 struct usb_host_interface *alt = intf->cur_altsetting; local
1350 if (!alt->string && !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS))
1351 alt->string = usb_cache_string(udev, alt
[all...]
H A Dusb.c120 * @alt: alternate setting to search
135 int usb_find_common_endpoints(struct usb_host_interface *alt, argument
153 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
154 epd = &alt->endpoint[i].desc;
166 * @alt: alternate setting to search
181 int usb_find_common_endpoints_reverse(struct usb_host_interface *alt, argument
199 for (i = alt->desc.bNumEndpoints - 1; i >= 0; --i) {
200 epd = &alt->endpoint[i].desc;
293 * Search the configuration's interface cache for the given alt setting.
320 printk(KERN_DEBUG "Did not find alt settin
[all...]
H A Dmessage.c649 * configuration or interface alt setting is selected.
1245 struct usb_host_interface *alt = intf->cur_altsetting; local
1251 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1252 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
1259 struct usb_host_interface *alt = intf->cur_altsetting; local
1265 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1266 usb_remove_ep_devs(&alt->endpoint[i]);
1344 struct usb_host_interface *alt = intf->cur_altsetting; local
1347 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1349 alt
1480 struct usb_host_interface *alt = intf->cur_altsetting; local
1530 struct usb_host_interface *alt; local
1742 struct usb_host_interface *alt; local
1825 const struct usb_host_interface *alt; local
2104 struct usb_host_interface *alt; local
[all...]
/linux-master/include/linux/usb/
H A Dtypec.h166 struct typec_port *typec_altmode2port(struct typec_altmode *alt);
168 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
H A Dpd_vdo.h236 #define VDO_UFP(ver, cap, conn, vcpwr, vcr, vbr, alt, spd) \
238 | ((vcpwr) & 0x7) << 8 | (vcr) << 7 | (vbr) << 6 | ((alt) & 0x7) << 3 \
/linux-master/fs/ubifs/
H A Dubifs.h777 * @alt: lower bound of key range has altered i.e. child inserted at slot 0
796 int alt; member in struct:ubifs_znode
H A Dtnc.c2047 znode->alt = 1;
2103 znode->alt = 1;
2149 if (znode->alt)
/linux-master/drivers/usb/typec/altmodes/
H A Ddisplayport.c20 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \
71 struct typec_altmode *alt; member in struct:dp_altmode
89 return typec_altmode_notify(dp->alt, conf, &dp->data);
105 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) &
114 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) &
179 sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd");
187 sysfs_notify(&dp->alt->dev.kobj, "displayport", "configuration");
188 sysfs_notify(&dp->alt->dev.kobj, "displayport", "pin_assignment");
197 sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd");
206 int svdm_version = typec_altmode_get_svdm_version(dp->alt);
322 dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) argument
348 dp_altmode_vdm(struct typec_altmode *alt, const u32 hdr, const u32 *vdo, int count) argument
416 dp_cable_altmode_vdm(struct typec_altmode *alt, enum typec_plug_index sop, const u32 hdr, const u32 *vdo, int count) argument
475 dp_altmode_activate(struct typec_altmode *alt, int activate) argument
723 dp_altmode_probe(struct typec_altmode *alt) argument
777 dp_altmode_remove(struct typec_altmode *alt) argument
[all...]
/linux-master/drivers/usb/host/
H A Dxhci.c1881 * configuration or alt setting is installed in the device, so there's no need
2906 * installing a new alt setting, the USB core won't allow URBs to be
4793 struct usb_host_interface *alt,
4799 for (j = 0; j < alt->desc.bNumEndpoints; j++) {
4801 &alt->endpoint[j].desc, state, timeout))
4791 xhci_update_timeout_for_interface(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_interface *alt, enum usb3_link_state state, u16 *timeout) argument
/linux-master/drivers/usb/gadget/udc/
H A Dpxa27x_udc.c287 int alt = udc->last_alternate; local
294 if (is_match_usb_pxa(udc_usb_ep, ep, cfg, iface, alt))
2102 * @alt: alternate setting number
2107 static void pxa27x_change_interface(struct pxa_udc *udc, int iface, int alt) argument
2111 dev_dbg(udc->dev, "interface=%d, alternate setting=%d\n", iface, alt);
2114 udc->last_alternate = alt;
2118 req.wValue = alt;

Completed in 304 milliseconds

12345678