/drivers/greybus/ |
D | interface.c | 45 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 …]
|
D | module.c | 17 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 …]
|
D | manifest.c | 51 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 …]
|
D | core.c | 34 (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 …]
|
/drivers/char/ipmi/ |
D | ipmi_msghandler.c | 44 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 …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | dev.c | 43 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 …]
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00debug.c | 112 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 …]
|
/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_encoder.c | 38 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 …]
|
/drivers/usb/core/ |
D | driver.c | 232 static const struct usb_device_id *usb_match_dynamic_id(struct usb_interface *intf, in usb_match_dynamic_id() argument 239 if (usb_match_one_id(intf, &dynid->id)) { in usb_match_dynamic_id() 322 struct usb_interface *intf = to_usb_interface(dev); in usb_probe_interface() local 323 struct usb_device *udev = interface_to_usbdev(intf); in usb_probe_interface() 330 intf->needs_binding = 0; in usb_probe_interface() 336 dev_err(&intf->dev, "Device is not authorized for usage\n"); in usb_probe_interface() 338 } else if (intf->authorized == 0) { in usb_probe_interface() 339 dev_err(&intf->dev, "Interface %d is not authorized for usage\n", in usb_probe_interface() 340 intf->altsetting->desc.bInterfaceNumber); in usb_probe_interface() 344 id = usb_match_dynamic_id(intf, driver); in usb_probe_interface() [all …]
|
D | file.c | 156 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 …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | intf.c | 44 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 …]
|
/drivers/usb/misc/ |
D | lvstest.c | 23 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 …]
|
/drivers/input/joystick/ |
D | pxrc.c | 23 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 …]
|
/drivers/net/usb/ |
D | huawei_cdc_ncm.c | 44 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 …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe_sysfs.c | 11 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 …]
|
/drivers/xen/xenbus/ |
D | xenbus_comms.c | 93 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 …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | zd1301.c | 29 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 …]
|
D | af9035.c | 39 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 …]
|
D | af9015.c | 22 struct usb_interface *intf = d->intf; in af9015_ctrl_msg() local 60 dev_err(&intf->dev, "unknown cmd %d\n", req->cmd); in af9015_ctrl_msg() 68 dev_err(&intf->dev, "too much data, cmd %u, len %u\n", in af9015_ctrl_msg() 98 dev_err(&intf->dev, "cmd failed %u\n", state->buf[1]); in af9015_ctrl_msg() 143 struct usb_interface *intf = d->intf; in af9015_i2c_xfer() local 246 dev_dbg(&intf->dev, "unknown msg, num %u\n", num); in af9015_i2c_xfer() 253 dev_dbg(&intf->dev, "failed %d\n", ret); in af9015_i2c_xfer() 269 struct usb_interface *intf = d->intf; in af9015_identify_state() local 278 dev_dbg(&intf->dev, "reply %02x\n", reply); in af9015_identify_state() 292 struct usb_interface *intf = d->intf; in af9015_download_firmware() local [all …]
|
/drivers/usb/class/ |
D | cdc-wdm.c | 82 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 …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-i2c.c | 45 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 …]
|
/drivers/usb/atm/ |
D | xusbatm.c | 41 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 …]
|
/drivers/media/usb/siano/ |
D | smsusb.c | 338 static void smsusb_term_device(struct usb_interface *intf) in smsusb_term_device() argument 340 struct smsusb_device_t *dev = usb_get_intfdata(intf); in smsusb_term_device() 355 usb_set_intfdata(intf, NULL); in smsusb_term_device() 388 static int smsusb_init_device(struct usb_interface *intf, int board_id) in smsusb_init_device() argument 402 usb_set_intfdata(intf, dev); in smsusb_init_device() 403 dev->udev = interface_to_usbdev(intf); in smsusb_init_device() 406 for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) { in smsusb_init_device() 408 &intf->cur_altsetting->endpoint[i].desc; in smsusb_init_device() 420 smsusb_term_device(intf); in smsusb_init_device() 491 smsusb_term_device(intf); in smsusb_init_device() [all …]
|
/drivers/input/mouse/ |
D | synaptics_usb.c | 77 struct usb_interface *intf; member 218 dev_err(&synusb->intf->dev, in synusb_irq() 247 retval = usb_autopm_get_interface(synusb->intf); in synusb_open() 249 dev_err(&synusb->intf->dev, in synusb_open() 258 dev_err(&synusb->intf->dev, in synusb_open() 265 synusb->intf->needs_remote_wakeup = 1; in synusb_open() 270 usb_autopm_put_interface(synusb->intf); in synusb_open() 279 autopm_error = usb_autopm_get_interface(synusb->intf); in synusb_close() 283 synusb->intf->needs_remote_wakeup = 0; in synusb_close() 288 usb_autopm_put_interface(synusb->intf); in synusb_close() [all …]
|
/drivers/nfc/nfcmrvl/ |
D | usb.c | 39 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 …]
|