Home
last modified time | relevance | path

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

12345678910>>...19

/drivers/staging/greybus/
Dinterface.c46 static int gb_interface_hibernate_link(struct gb_interface *intf);
47 static int gb_interface_refclk_set(struct gb_interface *intf, bool enable);
49 static int gb_interface_dme_attr_get(struct gb_interface *intf, in gb_interface_dme_attr_get() argument
52 return gb_svc_dme_peer_get(intf->hd->svc, intf->interface_id, in gb_interface_dme_attr_get()
56 static int gb_interface_read_ara_dme(struct gb_interface *intf) in gb_interface_read_ara_dme() argument
65 if (intf->ddbl1_manufacturer_id != TOSHIBA_DMID) { in gb_interface_read_ara_dme()
66 dev_err(&intf->dev, "unknown manufacturer %08x\n", in gb_interface_read_ara_dme()
67 intf->ddbl1_manufacturer_id); in gb_interface_read_ara_dme()
71 ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_GMP_VID, in gb_interface_read_ara_dme()
72 &intf->vendor_id); in gb_interface_read_ara_dme()
[all …]
Dmodule.c19 struct gb_interface *intf; in eject_store() local
32 intf = module->interfaces[i]; in eject_store()
34 mutex_lock(&intf->mutex); in eject_store()
36 intf->ejected = true; in eject_store()
37 gb_interface_disable(intf); in eject_store()
38 gb_interface_deactivate(intf); in eject_store()
39 mutex_unlock(&intf->mutex); in eject_store()
94 struct gb_interface *intf; in gb_module_create() local
98 module = kzalloc(sizeof(*module) + num_interfaces * sizeof(intf), in gb_module_create()
118 intf = gb_interface_create(module, module_id + i); in gb_module_create()
[all …]
Dmanifest.c52 static void release_manifest_descriptors(struct gb_interface *intf) in release_manifest_descriptors() argument
57 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in release_manifest_descriptors()
77 static struct manifest_desc *get_next_bundle_desc(struct gb_interface *intf) in get_next_bundle_desc() argument
82 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in get_next_bundle_desc()
99 static int identify_descriptor(struct gb_interface *intf, in identify_descriptor() argument
108 dev_err(&intf->dev, "manifest too small (%zu < %zu)\n", in identify_descriptor()
115 dev_err(&intf->dev, "descriptor too big (%zu > %zu)\n", in identify_descriptor()
142 dev_err(&intf->dev, "invalid descriptor type (%u)\n", in identify_descriptor()
148 dev_err(&intf->dev, "%s descriptor too small (%zu < %zu)\n", in identify_descriptor()
156 dev_warn(&intf->dev, "%s descriptor size mismatch (want %zu got %zu)\n", in identify_descriptor()
[all …]
Dcore.c35 (id->vendor != bundle->intf->vendor_id)) in greybus_match_one_id()
39 (id->product != bundle->intf->product_id)) in greybus_match_one_id()
86 struct gb_interface *intf = NULL; in greybus_uevent() local
97 intf = to_gb_interface(dev); in greybus_uevent()
98 module = intf->module; in greybus_uevent()
99 hd = intf->hd; in greybus_uevent()
102 intf = control->intf; in greybus_uevent()
103 module = intf->module; in greybus_uevent()
104 hd = intf->hd; in greybus_uevent()
107 intf = bundle->intf; in greybus_uevent()
[all …]
Dinterface.h71 int gb_interface_activate(struct gb_interface *intf);
72 void gb_interface_deactivate(struct gb_interface *intf);
73 int gb_interface_enable(struct gb_interface *intf);
74 void gb_interface_disable(struct gb_interface *intf);
75 int gb_interface_timesync_enable(struct gb_interface *intf, u8 count,
77 int gb_interface_timesync_authoritative(struct gb_interface *intf,
79 int gb_interface_timesync_disable(struct gb_interface *intf);
80 int gb_interface_add(struct gb_interface *intf);
81 void gb_interface_del(struct gb_interface *intf);
82 void gb_interface_put(struct gb_interface *intf);
[all …]
/drivers/char/ipmi/
Dipmi_msghandler.c57 static void handle_new_recv_msgs(ipmi_smi_t intf);
58 static void need_waiter(ipmi_smi_t intf);
59 static int handle_one_recv_msg(ipmi_smi_t intf,
109 ipmi_smi_t intf; member
424 void (*null_user_handler)(ipmi_smi_t intf, struct ipmi_recv_msg *msg);
470 #define ipmi_inc_stat(intf, stat) \ argument
471 atomic_inc(&(intf)->stats[IPMI_STAT_ ## stat])
472 #define ipmi_get_stat(intf, stat) \ argument
473 ((unsigned int) atomic_read(&(intf)->stats[IPMI_STAT_ ## stat]))
523 static void clean_up_interface_data(ipmi_smi_t intf) in clean_up_interface_data() argument
[all …]
/drivers/net/wireless/ralink/rt2x00/
Drt2x00debug.c141 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; in rt2x00debug_update_crypto() local
153 intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS); in rt2x00debug_update_crypto()
154 intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV); in rt2x00debug_update_crypto()
155 intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC); in rt2x00debug_update_crypto()
156 intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY); in rt2x00debug_update_crypto()
162 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; in rt2x00debug_dump_frame() local
169 if (likely(!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags))) in rt2x00debug_dump_frame()
174 if (skb_queue_len(&intf->frame_dump_skbqueue) > 20) { in rt2x00debug_dump_frame()
209 skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); in rt2x00debug_dump_frame()
210 wake_up_interruptible(&intf->frame_dump_waitqueue); in rt2x00debug_dump_frame()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Ddev.c43 struct mlx5_interface *intf; member
53 void mlx5_add_device(struct mlx5_interface *intf, struct mlx5_priv *priv) in mlx5_add_device() argument
58 if (!mlx5_lag_intf_add(intf, priv)) in mlx5_add_device()
65 dev_ctx->intf = intf; in mlx5_add_device()
66 dev_ctx->context = intf->add(dev); in mlx5_add_device()
68 if (intf->attach) in mlx5_add_device()
80 static struct mlx5_device_context *mlx5_get_device(struct mlx5_interface *intf, in mlx5_get_device() argument
86 if (dev_ctx->intf == intf) in mlx5_get_device()
91 void mlx5_remove_device(struct mlx5_interface *intf, struct mlx5_priv *priv) in mlx5_remove_device() argument
96 dev_ctx = mlx5_get_device(intf, priv); in mlx5_remove_device()
[all …]
/drivers/usb/core/
Ddriver.c228 static const struct usb_device_id *usb_match_dynamic_id(struct usb_interface *intf, in usb_match_dynamic_id() argument
235 if (usb_match_one_id(intf, &dynid->id)) { in usb_match_dynamic_id()
283 struct usb_interface *intf = to_usb_interface(dev); in usb_probe_interface() local
284 struct usb_device *udev = interface_to_usbdev(intf); in usb_probe_interface()
291 intf->needs_binding = 0; in usb_probe_interface()
297 dev_err(&intf->dev, "Device is not authorized for usage\n"); in usb_probe_interface()
299 } else if (intf->authorized == 0) { in usb_probe_interface()
300 dev_err(&intf->dev, "Interface %d is not authorized for usage\n", in usb_probe_interface()
301 intf->altsetting->desc.bInterfaceNumber); in usb_probe_interface()
305 id = usb_match_dynamic_id(intf, driver); in usb_probe_interface()
[all …]
Dfile.c154 int usb_register_dev(struct usb_interface *intf, in usb_register_dev() argument
173 if (intf->minor >= 0) in usb_register_dev()
183 dev_dbg(&intf->dev, "looking for a minor, starting at %d\n", minor_base); in usb_register_dev()
191 intf->minor = minor; in usb_register_dev()
195 if (intf->minor < 0) in usb_register_dev()
200 intf->usb_dev = device_create(usb_class->class, &intf->dev, in usb_register_dev()
203 if (IS_ERR(intf->usb_dev)) { in usb_register_dev()
206 intf->minor = -1; in usb_register_dev()
208 retval = PTR_ERR(intf->usb_dev); in usb_register_dev()
228 void usb_deregister_dev(struct usb_interface *intf, in usb_deregister_dev() argument
[all …]
Dmessage.c1024 static int create_intf_ep_devs(struct usb_interface *intf) in create_intf_ep_devs() argument
1026 struct usb_device *udev = interface_to_usbdev(intf); in create_intf_ep_devs()
1027 struct usb_host_interface *alt = intf->cur_altsetting; in create_intf_ep_devs()
1030 if (intf->ep_devs_created || intf->unregistering) in create_intf_ep_devs()
1034 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev); in create_intf_ep_devs()
1035 intf->ep_devs_created = 1; in create_intf_ep_devs()
1039 static void remove_intf_ep_devs(struct usb_interface *intf) in remove_intf_ep_devs() argument
1041 struct usb_host_interface *alt = intf->cur_altsetting; in remove_intf_ep_devs()
1044 if (!intf->ep_devs_created) in remove_intf_ep_devs()
1049 intf->ep_devs_created = 0; in remove_intf_ep_devs()
[all …]
/drivers/xen/xenbus/
Dxenbus_comms.c96 struct xenstore_domain_interface *intf = xen_store_interface; in xb_write() local
106 (intf->req_prod - intf->req_cons) != in xb_write()
112 cons = intf->req_cons; in xb_write()
113 prod = intf->req_prod; in xb_write()
115 intf->req_cons = intf->req_prod = 0; in xb_write()
119 dst = get_output_chunk(cons, prod, intf->req, &avail); in xb_write()
134 intf->req_prod += avail; in xb_write()
145 struct xenstore_domain_interface *intf = xen_store_interface; in xb_data_to_read() local
146 return (intf->rsp_cons != intf->rsp_prod); in xb_data_to_read()
156 struct xenstore_domain_interface *intf = xen_store_interface; in xb_read() local
[all …]
/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 …]
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_encoder.c26 struct mdp5_interface intf; member
123 int intf = mdp5_encoder->intf.num; in mdp5_encoder_mode_set() local
144 if (mdp5_encoder->intf.type != INTF_DSI) { in mdp5_encoder_mode_set()
189 if (mdp5_encoder->intf.type == INTF_eDP) { in mdp5_encoder_mode_set()
196 mdp5_write(mdp5_kms, REG_MDP5_INTF_HSYNC_CTL(intf), in mdp5_encoder_mode_set()
199 mdp5_write(mdp5_kms, REG_MDP5_INTF_VSYNC_PERIOD_F0(intf), vsync_period); in mdp5_encoder_mode_set()
200 mdp5_write(mdp5_kms, REG_MDP5_INTF_VSYNC_LEN_F0(intf), vsync_len); in mdp5_encoder_mode_set()
201 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_HCTL(intf), in mdp5_encoder_mode_set()
204 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_VSTART_F0(intf), display_v_start); in mdp5_encoder_mode_set()
205 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_VEND_F0(intf), display_v_end); in mdp5_encoder_mode_set()
[all …]
/drivers/usb/misc/
Dlvstest.c26 struct usb_interface *intf; member
43 static struct usb_device *create_lvs_device(struct usb_interface *intf) in create_lvs_device() argument
47 struct lvs_rh *lvs = usb_get_intfdata(intf); in create_lvs_device()
50 dev_err(&intf->dev, "No LVS device is present\n"); in create_lvs_device()
54 hdev = interface_to_usbdev(intf); in create_lvs_device()
59 dev_err(&intf->dev, "Could not allocate lvs udev\n"); in create_lvs_device()
68 dev_err(&intf->dev, "Failed to enable\n"); in create_lvs_device()
107 struct usb_interface *intf = to_usb_interface(dev); in u3_entry_store() local
108 struct usb_device *hdev = interface_to_usbdev(intf); in u3_entry_store()
109 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_entry_store()
[all …]
Dldusb.c160 struct usb_interface* intf; /* save off the usb interface pointer */ member
200 if (dev->intf) in ld_usb_abort_transfers()
204 if (dev->intf) in ld_usb_abort_transfers()
241 dev_dbg(&dev->intf->dev, in ld_usb_interrupt_in_callback()
258 dev_dbg(&dev->intf->dev, "%s: received %d bytes\n", in ld_usb_interrupt_in_callback()
261 dev_warn(&dev->intf->dev, in ld_usb_interrupt_in_callback()
270 if (dev->interrupt_in_running && !dev->buffer_overflow && dev->intf) { in ld_usb_interrupt_in_callback()
273 dev_err(&dev->intf->dev, in ld_usb_interrupt_in_callback()
296 dev_dbg(&dev->intf->dev, in ld_usb_interrupt_out_callback()
399 if (dev->intf == NULL) { in ld_usb_release()
[all …]
/drivers/net/usb/
Dhuawei_cdc_ncm.c48 rv = usb_autopm_get_interface(usbnet_dev->intf); in huawei_cdc_ncm_manage_power()
49 usbnet_dev->intf->needs_remote_wakeup = on; in huawei_cdc_ncm_manage_power()
51 usb_autopm_put_interface(usbnet_dev->intf); in huawei_cdc_ncm_manage_power()
56 static int huawei_cdc_ncm_wdm_manage_power(struct usb_interface *intf, in huawei_cdc_ncm_wdm_manage_power() argument
59 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_wdm_manage_power()
70 struct usb_interface *intf) in huawei_cdc_ncm_bind() argument
89 ret = cdc_ncm_bind_common(usbnet_dev, intf, 1, drvflags); in huawei_cdc_ncm_bind()
106 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_bind()
120 struct usb_interface *intf) in huawei_cdc_ncm_unbind() argument
129 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_unbind()
[all …]
Dqmi_wwan.c266 dev_dbg(&dev->intf->dev, "%s() pmcount=%d, on=%d\n", __func__, in qmi_wwan_manage_power()
274 rv = usb_autopm_get_interface(dev->intf); in qmi_wwan_manage_power()
275 dev->intf->needs_remote_wakeup = on; in qmi_wwan_manage_power()
277 usb_autopm_put_interface(dev->intf); in qmi_wwan_manage_power()
282 static int qmi_wwan_cdc_wdm_manage_power(struct usb_interface *intf, int on) in qmi_wwan_cdc_wdm_manage_power() argument
284 struct usbnet *dev = usb_get_intfdata(intf); in qmi_wwan_cdc_wdm_manage_power()
343 u8 intf = dev->intf->cur_altsetting->desc.bInterfaceNumber; in qmi_wwan_change_dtr() local
347 on ? 0x01 : 0x00, intf, NULL, 0); in qmi_wwan_change_dtr()
350 static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) in qmi_wwan_bind() argument
353 u8 *buf = intf->cur_altsetting->extra; in qmi_wwan_bind()
[all …]
Dcdc_ether.c73 struct usb_interface *intf = info->control; in usbnet_cdc_update_filter() local
93 intf->cur_altsetting->desc.bInterfaceNumber, in usbnet_cdc_update_filter()
105 int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) in usbnet_generic_cdc_bind() argument
107 u8 *buf = intf->cur_altsetting->extra; in usbnet_generic_cdc_bind()
108 int len = intf->cur_altsetting->extralen; in usbnet_generic_cdc_bind()
114 struct usb_driver *driver = driver_of(intf); in usbnet_generic_cdc_bind()
129 dev_dbg(&intf->dev, "CDC descriptors on config\n"); in usbnet_generic_cdc_bind()
138 hep = intf->cur_altsetting->endpoint; in usbnet_generic_cdc_bind()
144 dev_dbg(&intf->dev, in usbnet_generic_cdc_bind()
151 rndis = (is_rndis(&intf->cur_altsetting->desc) || in usbnet_generic_cdc_bind()
[all …]
/drivers/usb/class/
Dcdc-wdm.c82 struct usb_interface *intf; member
113 static struct wdm_device *wdm_find_device(struct usb_interface *intf) in wdm_find_device() argument
119 if (desc->intf == intf) in wdm_find_device()
134 if (desc->intf->minor == minor) in wdm_find_device_by_minor()
172 dev_dbg(&desc->intf->dev, in wdm_in_callback()
176 dev_dbg(&desc->intf->dev, in wdm_in_callback()
180 dev_dbg(&desc->intf->dev, in wdm_in_callback()
184 dev_err(&desc->intf->dev, in wdm_in_callback()
188 dev_err(&desc->intf->dev, in wdm_in_callback()
250 dev_err(&desc->intf->dev, "Stall on int endpoint\n"); in wdm_int_callback()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_sysfs.c38 static int sanitize_arg(const char *val, char *intf, int intf_len) in sanitize_arg() argument
47 intf[len] = val[len]; in sanitize_arg()
48 intf[len] = 0; in sanitize_arg()
76 char intf[32]; in rxe_param_set_add() local
80 len = sanitize_arg(val, intf, sizeof(intf)); in rxe_param_set_add()
87 ndev = dev_get_by_name(&init_net, intf); in rxe_param_set_add()
89 pr_err("interface %s not found\n", intf); in rxe_param_set_add()
95 pr_err("already configured on %s\n", intf); in rxe_param_set_add()
102 pr_err("failed to add %s\n", intf); in rxe_param_set_add()
108 pr_info("added %s to %s\n", rxe->ib_dev.name, intf); in rxe_param_set_add()
[all …]
/drivers/media/usb/dvb-usb-v2/
Daf9035.c52 struct usb_interface *intf = d->intf; in af9035_ctrl_msg() local
61 dev_err(&intf->dev, "too much data wlen=%d rlen=%d\n", in af9035_ctrl_msg()
98 dev_err(&intf->dev, "command=%02x checksum mismatch (%04x != %04x)\n", in af9035_ctrl_msg()
112 dev_dbg(&intf->dev, "command=%02x failed fw error=%d\n", in af9035_ctrl_msg()
124 dev_dbg(&intf->dev, "failed=%d\n", ret); in af9035_ctrl_msg()
131 struct usb_interface *intf = d->intf; in af9035_wr_regs() local
137 dev_warn(&intf->dev, "i2c wr: len=%d is too big!\n", len); in af9035_wr_regs()
200 struct usb_interface *intf = d->intf; in af9035_add_i2c_dev() local
215 dev_dbg(&intf->dev, "num=%d\n", num); in af9035_add_i2c_dev()
218 dev_err(&intf->dev, "I2C client out of index\n"); in af9035_add_i2c_dev()
[all …]
/drivers/media/usb/siano/
Dsmsusb.c349 static void smsusb_term_device(struct usb_interface *intf) in smsusb_term_device() argument
351 struct smsusb_device_t *dev = usb_get_intfdata(intf); in smsusb_term_device()
366 usb_set_intfdata(intf, NULL); in smsusb_term_device()
399 static int smsusb_init_device(struct usb_interface *intf, int board_id) in smsusb_init_device() argument
412 usb_set_intfdata(intf, dev); in smsusb_init_device()
413 dev->udev = interface_to_usbdev(intf); in smsusb_init_device()
438 for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) { in smsusb_init_device()
439 if (intf->cur_altsetting->endpoint[i].desc. bEndpointAddress & USB_DIR_IN) in smsusb_init_device()
440 dev->in_ep = intf->cur_altsetting->endpoint[i].desc.bEndpointAddress; in smsusb_init_device()
442 dev->out_ep = intf->cur_altsetting->endpoint[i].desc.bEndpointAddress; in smsusb_init_device()
[all …]
/drivers/usb/atm/
Dxusbatm.c55 struct usb_interface *intf; in xusbatm_find_intf() local
59 …if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)… in xusbatm_find_intf()
62 return intf; in xusbatm_find_intf()
67 struct usb_interface *intf, int altsetting, int claim) in xusbatm_capture_intf() argument
69 int ifnum = intf->altsetting->desc.bInterfaceNumber; in xusbatm_capture_intf()
72 if (claim && (ret = usb_driver_claim_interface(&xusbatm_usb_driver, intf, usbatm))) { in xusbatm_capture_intf()
84 static void xusbatm_release_intf(struct usb_device *usb_dev, struct usb_interface *intf, int claime… in xusbatm_release_intf() argument
87 usb_set_intfdata(intf, NULL); in xusbatm_release_intf()
88 usb_driver_release_interface(&xusbatm_usb_driver, intf); in xusbatm_release_intf()
93 struct usb_interface *intf, const struct usb_device_id *id) in xusbatm_bind() argument
[all …]
/drivers/input/mouse/
Dsynaptics_usb.c81 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()
257 dev_err(&synusb->intf->dev, in synusb_open()
264 synusb->intf->needs_remote_wakeup = 1; in synusb_open()
267 usb_autopm_put_interface(synusb->intf); in synusb_open()
276 autopm_error = usb_autopm_get_interface(synusb->intf); in synusb_close()
279 synusb->intf->needs_remote_wakeup = 0; in synusb_close()
282 usb_autopm_put_interface(synusb->intf); in synusb_close()
[all …]

12345678910>>...19