Home
last modified time | relevance | path

Searched refs:intf (Results 1 – 25 of 575) sorted by relevance

12345678910>>...23

/kernel/linux/linux-5.10/drivers/greybus/
Dinterface.c45 static int gb_interface_hibernate_link(struct gb_interface *intf);
46 static int gb_interface_refclk_set(struct gb_interface *intf, bool enable);
48 static int gb_interface_dme_attr_get(struct gb_interface *intf, in gb_interface_dme_attr_get() argument
51 return gb_svc_dme_peer_get(intf->hd->svc, intf->interface_id, in gb_interface_dme_attr_get()
55 static int gb_interface_read_ara_dme(struct gb_interface *intf) in gb_interface_read_ara_dme() argument
64 if (intf->ddbl1_manufacturer_id != TOSHIBA_DMID) { in gb_interface_read_ara_dme()
65 dev_err(&intf->dev, "unknown manufacturer %08x\n", in gb_interface_read_ara_dme()
66 intf->ddbl1_manufacturer_id); in gb_interface_read_ara_dme()
70 ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_GMP_VID, in gb_interface_read_ara_dme()
71 &intf->vendor_id); in gb_interface_read_ara_dme()
[all …]
Dmodule.c17 struct gb_interface *intf; in eject_store() local
30 intf = module->interfaces[i]; in eject_store()
32 mutex_lock(&intf->mutex); in eject_store()
34 intf->ejected = true; in eject_store()
35 gb_interface_disable(intf); in eject_store()
36 gb_interface_deactivate(intf); in eject_store()
37 mutex_unlock(&intf->mutex); in eject_store()
92 struct gb_interface *intf; in gb_module_create() local
116 intf = gb_interface_create(module, module_id + i); in gb_module_create()
117 if (!intf) { in gb_module_create()
[all …]
Dmanifest.c51 static void release_manifest_descriptors(struct gb_interface *intf) in release_manifest_descriptors() argument
56 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in release_manifest_descriptors()
76 static struct manifest_desc *get_next_bundle_desc(struct gb_interface *intf) in get_next_bundle_desc() argument
81 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in get_next_bundle_desc()
98 static int identify_descriptor(struct gb_interface *intf, in identify_descriptor() argument
107 dev_err(&intf->dev, "manifest too small (%zu < %zu)\n", size, in identify_descriptor()
114 dev_err(&intf->dev, "descriptor too big (%zu > %zu)\n", in identify_descriptor()
141 dev_err(&intf->dev, "invalid descriptor type (%u)\n", in identify_descriptor()
147 dev_err(&intf->dev, "%s descriptor too small (%zu < %zu)\n", in identify_descriptor()
155 dev_warn(&intf->dev, "%s descriptor size mismatch (want %zu got %zu)\n", in identify_descriptor()
[all …]
Dcore.c34 (id->vendor != bundle->intf->vendor_id)) in greybus_match_one_id()
38 (id->product != bundle->intf->product_id)) in greybus_match_one_id()
85 struct gb_interface *intf = NULL; in greybus_uevent() local
96 intf = to_gb_interface(dev); in greybus_uevent()
97 module = intf->module; in greybus_uevent()
98 hd = intf->hd; in greybus_uevent()
101 intf = control->intf; in greybus_uevent()
102 module = intf->module; in greybus_uevent()
103 hd = intf->hd; in greybus_uevent()
106 intf = bundle->intf; in greybus_uevent()
[all …]
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_msghandler.c44 static void handle_new_recv_msgs(struct ipmi_smi *intf);
45 static void need_waiter(struct ipmi_smi *intf);
46 static int handle_one_recv_msg(struct ipmi_smi *intf,
197 struct ipmi_smi *intf; member
328 static int bmc_get_device_id(struct ipmi_smi *intf, struct bmc_device *bmc,
576 void (*null_user_handler)(struct ipmi_smi *intf,
603 static void __get_guid(struct ipmi_smi *intf);
604 static void __ipmi_bmc_unregister(struct ipmi_smi *intf);
605 static int __ipmi_bmc_register(struct ipmi_smi *intf,
608 static int __scan_channels(struct ipmi_smi *intf, struct ipmi_device_id *id);
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Ddev.c43 struct mlx5_interface *intf; member
54 void mlx5_add_device(struct mlx5_interface *intf, struct mlx5_priv *priv) in mlx5_add_device() argument
59 if (!mlx5_lag_intf_add(intf, priv)) in mlx5_add_device()
66 dev_ctx->intf = intf; in mlx5_add_device()
68 dev_ctx->context = intf->add(dev); in mlx5_add_device()
71 if (intf->attach) in mlx5_add_device()
83 static struct mlx5_device_context *mlx5_get_device(struct mlx5_interface *intf, in mlx5_get_device() argument
89 if (dev_ctx->intf == intf) in mlx5_get_device()
94 void mlx5_remove_device(struct mlx5_interface *intf, struct mlx5_priv *priv) in mlx5_remove_device() argument
99 dev_ctx = mlx5_get_device(intf, priv); in mlx5_remove_device()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00debug.c112 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; in rt2x00debug_update_crypto() local
124 intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS); in rt2x00debug_update_crypto()
125 intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV); in rt2x00debug_update_crypto()
126 intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC); in rt2x00debug_update_crypto()
127 intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY); in rt2x00debug_update_crypto()
133 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; in rt2x00debug_dump_frame() local
141 if (likely(!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags))) in rt2x00debug_dump_frame()
146 if (skb_queue_len(&intf->frame_dump_skbqueue) > 20) { in rt2x00debug_dump_frame()
181 skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); in rt2x00debug_dump_frame()
182 wake_up_interruptible(&intf->frame_dump_waitqueue); in rt2x00debug_dump_frame()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_encoder.c38 int intf = mdp5_encoder->intf->num; in mdp5_vid_encoder_mode_set() local
52 if (mdp5_encoder->intf->type != INTF_DSI) { in mdp5_vid_encoder_mode_set()
97 if (mdp5_encoder->intf->type == INTF_eDP) { in mdp5_vid_encoder_mode_set()
104 mdp5_write(mdp5_kms, REG_MDP5_INTF_HSYNC_CTL(intf), in mdp5_vid_encoder_mode_set()
107 mdp5_write(mdp5_kms, REG_MDP5_INTF_VSYNC_PERIOD_F0(intf), vsync_period); in mdp5_vid_encoder_mode_set()
108 mdp5_write(mdp5_kms, REG_MDP5_INTF_VSYNC_LEN_F0(intf), vsync_len); in mdp5_vid_encoder_mode_set()
109 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_HCTL(intf), in mdp5_vid_encoder_mode_set()
112 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_VSTART_F0(intf), display_v_start); in mdp5_vid_encoder_mode_set()
113 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_VEND_F0(intf), display_v_end); in mdp5_vid_encoder_mode_set()
114 mdp5_write(mdp5_kms, REG_MDP5_INTF_BORDER_COLOR(intf), 0); in mdp5_vid_encoder_mode_set()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dintf.c44 struct mlx4_interface *intf; member
52 static void mlx4_add_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_add_device() argument
60 dev_ctx->intf = intf; in mlx4_add_device()
61 dev_ctx->context = intf->add(&priv->dev); in mlx4_add_device()
67 if (intf->activate) in mlx4_add_device()
68 intf->activate(&priv->dev, dev_ctx->context); in mlx4_add_device()
74 static void mlx4_remove_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_remove_device() argument
79 if (dev_ctx->intf == intf) { in mlx4_remove_device()
84 intf->remove(&priv->dev, dev_ctx->context); in mlx4_remove_device()
90 int mlx4_register_interface(struct mlx4_interface *intf) in mlx4_register_interface() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/core/
Ddriver.c231 static const struct usb_device_id *usb_match_dynamic_id(struct usb_interface *intf, in usb_match_dynamic_id() argument
238 if (usb_match_one_id(intf, &dynid->id)) { in usb_match_dynamic_id()
321 struct usb_interface *intf = to_usb_interface(dev); in usb_probe_interface() local
322 struct usb_device *udev = interface_to_usbdev(intf); in usb_probe_interface()
329 intf->needs_binding = 0; in usb_probe_interface()
335 dev_err(&intf->dev, "Device is not authorized for usage\n"); in usb_probe_interface()
337 } else if (intf->authorized == 0) { in usb_probe_interface()
338 dev_err(&intf->dev, "Interface %d is not authorized for usage\n", in usb_probe_interface()
339 intf->altsetting->desc.bInterfaceNumber); in usb_probe_interface()
343 id = usb_match_dynamic_id(intf, driver); in usb_probe_interface()
[all …]
Dfile.c156 int usb_register_dev(struct usb_interface *intf, in usb_register_dev() argument
175 if (intf->minor >= 0) in usb_register_dev()
185 dev_dbg(&intf->dev, "looking for a minor, starting at %d\n", minor_base); in usb_register_dev()
193 intf->minor = minor; in usb_register_dev()
196 if (intf->minor < 0) { in usb_register_dev()
203 intf->usb_dev = device_create(usb_class->class, &intf->dev, in usb_register_dev()
206 if (IS_ERR(intf->usb_dev)) { in usb_register_dev()
208 intf->minor = -1; in usb_register_dev()
209 retval = PTR_ERR(intf->usb_dev); in usb_register_dev()
230 void usb_deregister_dev(struct usb_interface *intf, in usb_deregister_dev() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/misc/
Dlvstest.c23 struct usb_interface *intf; member
40 static struct usb_device *create_lvs_device(struct usb_interface *intf) in create_lvs_device() argument
44 struct lvs_rh *lvs = usb_get_intfdata(intf); in create_lvs_device()
47 dev_err(&intf->dev, "No LVS device is present\n"); in create_lvs_device()
51 hdev = interface_to_usbdev(intf); in create_lvs_device()
56 dev_err(&intf->dev, "Could not allocate lvs udev\n"); in create_lvs_device()
65 dev_err(&intf->dev, "Failed to enable\n"); in create_lvs_device()
104 struct usb_interface *intf = to_usb_interface(dev); in u3_entry_store() local
105 struct usb_device *hdev = interface_to_usbdev(intf); in u3_entry_store()
106 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_entry_store()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_sysfs.c11 static int sanitize_arg(const char *val, char *intf, int intf_len) in sanitize_arg() argument
20 intf[len] = val[len]; in sanitize_arg()
21 intf[len] = 0; in sanitize_arg()
33 char intf[32]; in rxe_param_set_add() local
42 len = sanitize_arg(val, intf, sizeof(intf)); in rxe_param_set_add()
48 ndev = dev_get_by_name(&init_net, intf); in rxe_param_set_add()
50 pr_err("interface %s not found\n", intf); in rxe_param_set_add()
63 pr_err("already configured on %s\n", intf); in rxe_param_set_add()
70 pr_err("failed to add %s\n", intf); in rxe_param_set_add()
82 char intf[32]; in rxe_param_set_remove() local
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dhuawei_cdc_ncm.c44 rv = usb_autopm_get_interface(usbnet_dev->intf); in huawei_cdc_ncm_manage_power()
45 usbnet_dev->intf->needs_remote_wakeup = on; in huawei_cdc_ncm_manage_power()
47 usb_autopm_put_interface(usbnet_dev->intf); in huawei_cdc_ncm_manage_power()
52 static int huawei_cdc_ncm_wdm_manage_power(struct usb_interface *intf, in huawei_cdc_ncm_wdm_manage_power() argument
55 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_wdm_manage_power()
66 struct usb_interface *intf) in huawei_cdc_ncm_bind() argument
85 ret = cdc_ncm_bind_common(usbnet_dev, intf, 1, drvflags); in huawei_cdc_ncm_bind()
102 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_bind()
116 struct usb_interface *intf) in huawei_cdc_ncm_unbind() argument
125 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_unbind()
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Dpxrc.c23 struct usb_interface *intf; member
42 dev_dbg(&pxrc->intf->dev, in pxrc_usb_irq()
51 dev_dbg(&pxrc->intf->dev, "%s - urb shutting down with status: %d\n", in pxrc_usb_irq()
55 dev_dbg(&pxrc->intf->dev, "%s - nonzero urb status received: %d\n", in pxrc_usb_irq()
76 dev_err(&pxrc->intf->dev, in pxrc_usb_irq()
89 dev_err(&pxrc->intf->dev, in pxrc_open()
120 static int pxrc_probe(struct usb_interface *intf, in pxrc_probe() argument
123 struct usb_device *udev = interface_to_usbdev(intf); in pxrc_probe()
134 error = usb_find_common_endpoints(intf->cur_altsetting, in pxrc_probe()
137 dev_err(&intf->dev, "Could not find endpoint\n"); in pxrc_probe()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
Dzd1301.c29 struct usb_interface *intf = d->intf; in zd1301_ctrl_msg() local
36 dev_dbg(&intf->dev, ">>> %*ph\n", wlen, dev->buf); in zd1301_ctrl_msg()
41 dev_err(&intf->dev, "1st usb_bulk_msg() failed %d\n", ret); in zd1301_ctrl_msg()
49 dev_err(&intf->dev, in zd1301_ctrl_msg()
54 dev_dbg(&intf->dev, "<<< %*ph\n", actual_length, dev->buf); in zd1301_ctrl_msg()
61 dev_dbg(&intf->dev, "repeating reply message\n"); in zd1301_ctrl_msg()
68 dev_err(&intf->dev, in zd1301_ctrl_msg()
73 dev_dbg(&intf->dev, in zd1301_ctrl_msg()
88 struct usb_interface *intf = d->intf; in zd1301_demod_wreg() local
99 dev_dbg(&intf->dev, "failed=%d\n", ret); in zd1301_demod_wreg()
[all …]
Daf9035.c39 struct usb_interface *intf = d->intf; in af9035_ctrl_msg() local
48 dev_err(&intf->dev, "too much data wlen=%d rlen=%d\n", in af9035_ctrl_msg()
85 dev_err(&intf->dev, "command=%02x checksum mismatch (%04x != %04x)\n", in af9035_ctrl_msg()
99 dev_dbg(&intf->dev, "command=%02x failed fw error=%d\n", in af9035_ctrl_msg()
116 struct usb_interface *intf = d->intf; in af9035_wr_regs() local
122 dev_warn(&intf->dev, "i2c wr: len=%d is too big!\n", len); in af9035_wr_regs()
185 struct usb_interface *intf = d->intf; in af9035_add_i2c_dev() local
200 dev_dbg(&intf->dev, "num=%d\n", num); in af9035_add_i2c_dev()
203 dev_err(&intf->dev, "I2C client out of index\n"); in af9035_add_i2c_dev()
227 dev_dbg(&intf->dev, "failed=%d\n", ret); in af9035_add_i2c_dev()
[all …]
/kernel/linux/linux-5.10/drivers/xen/xenbus/
Dxenbus_comms.c93 struct xenstore_domain_interface *intf = xen_store_interface; in xb_data_to_write() local
95 return (intf->req_prod - intf->req_cons) != XENSTORE_RING_SIZE && in xb_data_to_write()
108 struct xenstore_domain_interface *intf = xen_store_interface; in xb_write() local
117 cons = intf->req_cons; in xb_write()
118 prod = intf->req_prod; in xb_write()
120 intf->req_cons = intf->req_prod = 0; in xb_write()
129 dst = get_output_chunk(cons, prod, intf->req, &avail); in xb_write()
142 intf->req_prod += avail; in xb_write()
145 if (prod <= intf->req_cons) in xb_write()
154 struct xenstore_domain_interface *intf = xen_store_interface; in xb_data_to_read() local
[all …]
/kernel/linux/linux-5.10/drivers/usb/class/
Dcdc-wdm.c82 struct usb_interface *intf; member
114 static struct wdm_device *wdm_find_device(struct usb_interface *intf) in wdm_find_device() argument
120 if (desc->intf == intf) in wdm_find_device()
135 if (desc->intf->minor == minor) in wdm_find_device_by_minor()
173 dev_dbg(&desc->intf->dev, in wdm_in_callback()
177 dev_dbg(&desc->intf->dev, in wdm_in_callback()
181 dev_dbg(&desc->intf->dev, in wdm_in_callback()
185 dev_err(&desc->intf->dev, in wdm_in_callback()
189 dev_err(&desc->intf->dev, in wdm_in_callback()
252 dev_err(&desc->intf->dev, "Stall on int endpoint\n"); in wdm_int_callback()
[all …]
/kernel/linux/linux-5.10/sound/usb/6fire/
Dfirmware.c190 struct usb_interface *intf, const char *fwname, in usb6fire_fw_ezusb_upload() argument
195 struct usb_device *device = interface_to_usbdev(intf); in usb6fire_fw_ezusb_upload()
206 dev_err(&intf->dev, in usb6fire_fw_ezusb_upload()
214 dev_err(&intf->dev, in usb6fire_fw_ezusb_upload()
224 dev_err(&intf->dev, in usb6fire_fw_ezusb_upload()
236 dev_err(&intf->dev, in usb6fire_fw_ezusb_upload()
249 dev_err(&intf->dev, in usb6fire_fw_ezusb_upload()
259 dev_err(&intf->dev, in usb6fire_fw_ezusb_upload()
268 struct usb_interface *intf, const char *fwname) in usb6fire_fw_fpga_upload() argument
272 struct usb_device *device = interface_to_usbdev(intf); in usb6fire_fw_fpga_upload()
[all …]
/kernel/linux/linux-5.10/drivers/nfc/nfcmrvl/
Dusb.c39 struct usb_interface *intf; member
181 err = usb_autopm_get_interface(drv_data->intf); in nfcmrvl_usb_nci_open()
185 drv_data->intf->needs_remote_wakeup = 1; in nfcmrvl_usb_nci_open()
194 usb_autopm_put_interface(drv_data->intf); in nfcmrvl_usb_nci_open()
198 usb_autopm_put_interface(drv_data->intf); in nfcmrvl_usb_nci_open()
218 err = usb_autopm_get_interface(drv_data->intf); in nfcmrvl_usb_nci_close()
222 drv_data->intf->needs_remote_wakeup = 0; in nfcmrvl_usb_nci_close()
223 usb_autopm_put_interface(drv_data->intf); in nfcmrvl_usb_nci_close()
289 err = usb_autopm_get_interface(drv_data->intf); in nfcmrvl_waker()
293 usb_autopm_put_interface(drv_data->intf); in nfcmrvl_waker()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dusb.c27 static int mt76x2u_probe(struct usb_interface *intf, in mt76x2u_probe() argument
42 struct usb_device *udev = interface_to_usbdev(intf); in mt76x2u_probe()
47 mdev = mt76_alloc_device(&intf->dev, sizeof(*dev), &mt76x2u_ops, in mt76x2u_probe()
57 usb_set_intfdata(intf, dev); in mt76x2u_probe()
60 err = mt76u_init(mdev, intf, false); in mt76x2u_probe()
79 usb_set_intfdata(intf, NULL); in mt76x2u_probe()
85 static void mt76x2u_disconnect(struct usb_interface *intf) in mt76x2u_disconnect() argument
87 struct usb_device *udev = interface_to_usbdev(intf); in mt76x2u_disconnect()
88 struct mt76x02_dev *dev = usb_get_intfdata(intf); in mt76x2u_disconnect()
95 usb_set_intfdata(intf, NULL); in mt76x2u_disconnect()
[all …]
/kernel/linux/linux-5.10/drivers/usb/atm/
Dxusbatm.c41 struct usb_interface *intf; in xusbatm_find_intf() local
45 …if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)… in xusbatm_find_intf()
48 return intf; in xusbatm_find_intf()
53 struct usb_interface *intf, int altsetting, int claim) in xusbatm_capture_intf() argument
55 int ifnum = intf->altsetting->desc.bInterfaceNumber; in xusbatm_capture_intf()
58 if (claim && (ret = usb_driver_claim_interface(&xusbatm_usb_driver, intf, usbatm))) { in xusbatm_capture_intf()
70 static void xusbatm_release_intf(struct usb_device *usb_dev, struct usb_interface *intf, int claime… in xusbatm_release_intf() argument
73 usb_set_intfdata(intf, NULL); in xusbatm_release_intf()
74 usb_driver_release_interface(&xusbatm_usb_driver, intf); in xusbatm_release_intf()
79 struct usb_interface *intf, const struct usb_device_id *id) in xusbatm_bind() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/siano/
Dsmsusb.c336 static void smsusb_term_device(struct usb_interface *intf) in smsusb_term_device() argument
338 struct smsusb_device_t *dev = usb_get_intfdata(intf); in smsusb_term_device()
353 usb_set_intfdata(intf, NULL); in smsusb_term_device()
386 static int smsusb_init_device(struct usb_interface *intf, int board_id) in smsusb_init_device() argument
400 usb_set_intfdata(intf, dev); in smsusb_init_device()
401 dev->udev = interface_to_usbdev(intf); in smsusb_init_device()
404 for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) { in smsusb_init_device()
406 &intf->cur_altsetting->endpoint[i].desc; in smsusb_init_device()
418 smsusb_term_device(intf); in smsusb_init_device()
456 smsusb_term_device(intf); in smsusb_init_device()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
Dem28xx-i2c.c45 dev_printk(KERN_DEBUG, &dev->intf->dev, \
105 dev_warn(&dev->intf->dev, in em2800_i2c_send_bytes()
120 dev_warn(&dev->intf->dev, in em2800_i2c_send_bytes()
150 dev_warn(&dev->intf->dev, in em2800_i2c_recv_bytes()
167 dev_warn(&dev->intf->dev, in em2800_i2c_recv_bytes()
180 dev_warn(&dev->intf->dev, in em2800_i2c_recv_bytes()
226 dev_warn(&dev->intf->dev, in em28xx_i2c_send_bytes()
231 dev_warn(&dev->intf->dev, in em28xx_i2c_send_bytes()
248 dev_warn(&dev->intf->dev, in em28xx_i2c_send_bytes()
269 dev_warn(&dev->intf->dev, in em28xx_i2c_send_bytes()
[all …]

12345678910>>...23