Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/i2c/busses/
Di2c-bfin-twi.c36 static void bfin_twi_handle_interrupt(struct bfin_twi_iface *iface, in bfin_twi_handle_interrupt() argument
39 unsigned short mast_stat = read_MASTER_STAT(iface); in bfin_twi_handle_interrupt()
42 if (iface->writeNum <= 0) { in bfin_twi_handle_interrupt()
46 if (iface->cur_mode == TWI_I2C_MODE_COMBINED) in bfin_twi_handle_interrupt()
47 write_MASTER_CTL(iface, in bfin_twi_handle_interrupt()
48 read_MASTER_CTL(iface) | MDIR); in bfin_twi_handle_interrupt()
49 else if (iface->manual_stop) in bfin_twi_handle_interrupt()
50 write_MASTER_CTL(iface, in bfin_twi_handle_interrupt()
51 read_MASTER_CTL(iface) | STOP); in bfin_twi_handle_interrupt()
52 else if (iface->cur_mode == TWI_I2C_MODE_REPEAT && in bfin_twi_handle_interrupt()
[all …]
Dscx200_acb.c88 #define ACBSDA (iface->base + 0)
89 #define ACBST (iface->base + 1)
95 #define ACBCST (iface->base + 2)
97 #define ACBCTL1 (iface->base + 3)
103 #define ACBADDR (iface->base + 4)
104 #define ACBCTL2 (iface->base + 5)
109 static void scx200_acb_machine(struct scx200_acb_iface *iface, u8 status) in scx200_acb_machine() argument
113 dev_dbg(&iface->adapter.dev, "state %s, status = 0x%02x\n", in scx200_acb_machine()
114 scx200_acb_state_name[iface->state], status); in scx200_acb_machine()
125 dev_dbg(&iface->adapter.dev, "negative ack in state %s\n", in scx200_acb_machine()
[all …]
/drivers/net/wireless/hostap/
Dhostap_cs.c48 struct hostap_interface *iface; in hfa384x_outb_debug() local
52 iface = netdev_priv(dev); in hfa384x_outb_debug()
53 local = iface->local; in hfa384x_outb_debug()
62 struct hostap_interface *iface; in hfa384x_inb_debug() local
67 iface = netdev_priv(dev); in hfa384x_inb_debug()
68 local = iface->local; in hfa384x_inb_debug()
78 struct hostap_interface *iface; in hfa384x_outw_debug() local
82 iface = netdev_priv(dev); in hfa384x_outw_debug()
83 local = iface->local; in hfa384x_outw_debug()
92 struct hostap_interface *iface; in hfa384x_inw_debug() local
[all …]
Dhostap_pci.c57 struct hostap_interface *iface; in hfa384x_outb_debug() local
62 iface = netdev_priv(dev); in hfa384x_outb_debug()
63 local = iface->local; in hfa384x_outb_debug()
74 struct hostap_interface *iface; in hfa384x_inb_debug() local
80 iface = netdev_priv(dev); in hfa384x_inb_debug()
81 local = iface->local; in hfa384x_inb_debug()
93 struct hostap_interface *iface; in hfa384x_outw_debug() local
98 iface = netdev_priv(dev); in hfa384x_outw_debug()
99 local = iface->local; in hfa384x_outw_debug()
110 struct hostap_interface *iface; in hfa384x_inw_debug() local
[all …]
Dhostap_main.c55 struct hostap_interface *iface; in hostap_add_interface() local
62 iface = netdev_priv(dev); in hostap_add_interface()
63 iface->dev = dev; in hostap_add_interface()
64 iface->local = local; in hostap_add_interface()
65 iface->type = type; in hostap_add_interface()
66 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface()
105 struct hostap_interface *iface; in hostap_remove_interface() local
110 iface = netdev_priv(dev); in hostap_remove_interface()
113 list_del(&iface->list); in hostap_remove_interface()
116 if (dev == iface->local->ddev) in hostap_remove_interface()
[all …]
Dhostap_80211_tx.c63 struct hostap_interface *iface; in hostap_data_start_xmit() local
76 iface = netdev_priv(dev); in hostap_data_start_xmit()
77 local = iface->local; in hostap_data_start_xmit()
179 else if (iface->type == HOSTAP_INTERFACE_WDS) in hostap_data_start_xmit()
180 memcpy(&hdr.addr1, iface->u.wds.remote_addr, in hostap_data_start_xmit()
216 iface->stats.tx_dropped++; in hostap_data_start_xmit()
222 iface->stats.tx_dropped++; in hostap_data_start_xmit()
230 iface->stats.tx_dropped++; in hostap_data_start_xmit()
236 iface->stats.tx_dropped++; in hostap_data_start_xmit()
248 iface->stats.tx_packets++; in hostap_data_start_xmit()
[all …]
Dhostap_ioctl.c18 struct hostap_interface *iface; in hostap_get_wireless_stats() local
22 iface = netdev_priv(dev); in hostap_get_wireless_stats()
23 local = iface->local; in hostap_get_wireless_stats()
26 if (iface->type != HOSTAP_INTERFACE_MAIN) in hostap_get_wireless_stats()
78 struct hostap_interface *iface; in prism2_get_datarates() local
84 iface = netdev_priv(dev); in prism2_get_datarates()
85 local = iface->local; in prism2_get_datarates()
128 struct hostap_interface *iface; in prism2_ioctl_siwencode() local
133 iface = netdev_priv(dev); in prism2_ioctl_siwencode()
134 local = iface->local; in prism2_ioctl_siwencode()
[all …]
Dhostap_plx.c110 struct hostap_interface *iface; in hfa384x_outb_debug() local
114 iface = netdev_priv(dev); in hfa384x_outb_debug()
115 local = iface->local; in hfa384x_outb_debug()
125 struct hostap_interface *iface; in hfa384x_inb_debug() local
130 iface = netdev_priv(dev); in hfa384x_inb_debug()
131 local = iface->local; in hfa384x_inb_debug()
142 struct hostap_interface *iface; in hfa384x_outw_debug() local
146 iface = netdev_priv(dev); in hfa384x_outw_debug()
147 local = iface->local; in hfa384x_outw_debug()
157 struct hostap_interface *iface; in hfa384x_inw_debug() local
[all …]
Dhostap_hw.c257 struct hostap_interface *iface; in hfa384x_cmd_issue() local
263 iface = netdev_priv(dev); in hfa384x_cmd_issue()
264 local = iface->local; in hfa384x_cmd_issue()
324 struct hostap_interface *iface; in hfa384x_cmd() local
331 iface = netdev_priv(dev); in hfa384x_cmd()
332 local = iface->local; in hfa384x_cmd()
500 struct hostap_interface *iface; in hfa384x_cmd_callback() local
506 iface = netdev_priv(dev); in hfa384x_cmd_callback()
507 local = iface->local; in hfa384x_cmd_callback()
658 struct hostap_interface *iface; in prism2_cmd_ev() local
[all …]
/drivers/net/wimax/i2400m/
Dusb.c460 int i2400mu_probe(struct usb_interface *iface, in i2400mu_probe() argument
465 struct device *dev = &iface->dev; in i2400mu_probe()
468 struct usb_device *usb_dev = interface_to_usbdev(iface); in i2400mu_probe()
470 if (iface->cur_altsetting->desc.bNumEndpoints < 4) in i2400mu_probe()
490 i2400mu->usb_iface = iface; in i2400mu_probe()
491 usb_set_intfdata(iface, i2400mu); in i2400mu_probe()
540 iface->needs_remote_wakeup = 1; /* autosuspend (15s delay) */ in i2400mu_probe()
561 usb_set_intfdata(iface, NULL); in i2400mu_probe()
577 void i2400mu_disconnect(struct usb_interface *iface) in i2400mu_disconnect() argument
579 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_disconnect()
[all …]
/drivers/usb/wusbcore/
Dcbaf.c317 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_chid_show() local
318 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_chid_show()
330 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_chid_store() local
331 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_chid_store()
364 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_host_name_show() local
365 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_host_name_show()
375 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_host_name_store() local
376 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_host_name_store()
391 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_host_band_groups_show() local
392 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_host_band_groups_show()
[all …]
Dwa-hc.c36 int wa_create(struct wahc *wa, struct usb_interface *iface, in wa_create() argument
40 struct device *dev = &iface->dev; in wa_create()
42 if (iface->cur_altsetting->desc.bNumEndpoints < 3) in wa_create()
50 wa->dti_epd = &iface->cur_altsetting->endpoint[1].desc; in wa_create()
51 wa->dto_epd = &iface->cur_altsetting->endpoint[2].desc; in wa_create()
58 result = wa_nep_create(wa, iface); in wa_create()
/drivers/usb/misc/
Dappledisplay.c210 static int appledisplay_probe(struct usb_interface *iface, in appledisplay_probe() argument
215 struct usb_device *udev = interface_to_usbdev(iface); in appledisplay_probe()
224 iface_desc = iface->cur_altsetting; in appledisplay_probe()
234 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in appledisplay_probe()
242 dev_err(&iface->dev, "Out of memory\n"); in appledisplay_probe()
256 dev_err(&iface->dev, in appledisplay_probe()
265 dev_err(&iface->dev, "Allocating URB failed\n"); in appledisplay_probe()
274 dev_err(&iface->dev, "Allocating URB buffer failed\n"); in appledisplay_probe()
285 dev_err(&iface->dev, "Submitting URB failed\n"); in appledisplay_probe()
298 dev_err(&iface->dev, "Backlight registration failed\n"); in appledisplay_probe()
[all …]
/drivers/uwb/i1480/dfu/
Dusb.c63 int i1480_usb_create(struct i1480_usb *i1480_usb, struct usb_interface *iface) in i1480_usb_create() argument
65 struct usb_device *usb_dev = interface_to_usbdev(iface); in i1480_usb_create()
69 i1480_usb->usb_iface = usb_get_intf(iface); in i1480_usb_create()
70 usb_set_intfdata(iface, i1480_usb); /* Bind the driver to iface0 */ in i1480_usb_create()
77 usb_set_intfdata(iface, NULL); in i1480_usb_create()
78 usb_put_intf(iface); in i1480_usb_create()
342 int i1480_usb_probe(struct usb_interface *iface, const struct usb_device_id *id) in i1480_usb_probe() argument
344 struct usb_device *udev = interface_to_usbdev(iface); in i1480_usb_probe()
347 struct device *dev = &iface->dev; in i1480_usb_probe()
351 if (iface->cur_altsetting->desc.bInterfaceNumber != 0) { in i1480_usb_probe()
[all …]
/drivers/net/can/c_can/
Dc_can.c48 #define C_CAN_IFACE(reg, iface) (C_CAN_IF1_##reg + (iface) * IF_ENUM_REG_LEN) argument
250 static void c_can_obj_update(struct net_device *dev, int iface, u32 cmd, u32 obj) in c_can_obj_update() argument
253 int cnt, reg = C_CAN_IFACE(COMREQ_REG, iface); in c_can_obj_update()
266 static inline void c_can_object_get(struct net_device *dev, int iface, in c_can_object_get() argument
269 c_can_obj_update(dev, iface, cmd, obj); in c_can_object_get()
272 static inline void c_can_object_put(struct net_device *dev, int iface, in c_can_object_put() argument
275 c_can_obj_update(dev, iface, cmd | IF_COMM_WR, obj); in c_can_object_put()
283 static void c_can_inval_tx_object(struct net_device *dev, int iface, int obj) in c_can_inval_tx_object() argument
287 priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), 0); in c_can_inval_tx_object()
288 c_can_object_put(dev, iface, obj, IF_COMM_INVAL); in c_can_inval_tx_object()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-sti.c30 #define IS_PHY_IF_MODE_RGMII(iface) (iface == PHY_INTERFACE_MODE_RGMII || \ argument
31 iface == PHY_INTERFACE_MODE_RGMII_ID || \
32 iface == PHY_INTERFACE_MODE_RGMII_RXID || \
33 iface == PHY_INTERFACE_MODE_RGMII_TXID)
35 #define IS_PHY_IF_MODE_GBIT(iface) (IS_PHY_IF_MODE_RGMII(iface) || \ argument
36 iface == PHY_INTERFACE_MODE_GMII)
228 int iface = dwmac->interface; in sti_dwmac_ctrl_init() local
240 regmap_update_bits(regmap, reg, MII_PHY_SEL_MASK, phy_intf_sels[iface]); in sti_dwmac_ctrl_init()
242 val = (iface == PHY_INTERFACE_MODE_REVMII) ? 0 : ENMII; in sti_dwmac_ctrl_init()
/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd.c54 ksock_interface_t *iface; in ksocknal_ip2iface() local
58 iface = &net->ksnn_interfaces[i]; in ksocknal_ip2iface()
60 if (iface->ksni_ipaddr == ip) in ksocknal_ip2iface()
61 return iface; in ksocknal_ip2iface()
222 ksock_interface_t *iface; in ksocknal_unlink_peer_locked() local
228 iface = ksocknal_ip2iface(peer->ksnp_ni, ip); in ksocknal_unlink_peer_locked()
231 LASSERT (iface != NULL); in ksocknal_unlink_peer_locked()
234 peer, iface, iface->ksni_nroutes); in ksocknal_unlink_peer_locked()
235 iface->ksni_npeers--; in ksocknal_unlink_peer_locked()
327 ksock_interface_t *iface; in ksocknal_associate_route_conn_locked() local
[all …]
/drivers/uwb/
Dhwa-rc.c691 struct usb_interface *iface = hwarc->usb_iface; in hwarc_neep_init() local
692 struct usb_device *usb_dev = interface_to_usbdev(iface); in hwarc_neep_init()
693 struct device *dev = &iface->dev; in hwarc_neep_init()
697 epd = &iface->cur_altsetting->endpoint[0].desc; in hwarc_neep_init()
820 static int hwarc_probe(struct usb_interface *iface, in hwarc_probe() argument
826 struct device *dev = &iface->dev; in hwarc_probe()
828 if (iface->cur_altsetting->desc.bNumEndpoints < 1) in hwarc_probe()
830 if (!usb_endpoint_xfer_int(&iface->cur_altsetting->endpoint[0].desc)) in hwarc_probe()
845 hwarc->usb_dev = usb_get_dev(interface_to_usbdev(iface)); in hwarc_probe()
846 hwarc->usb_iface = usb_get_intf(iface); in hwarc_probe()
[all …]
/drivers/media/platform/omap3isp/
Dispcsiphy.c26 enum isp_interface_type iface, in csiphy_routing_cfg_3630() argument
33 switch (iface) { in csiphy_routing_cfg_3630()
55 if (iface == ISP_INTERFACE_CCP2B_PHY1 || in csiphy_routing_cfg_3630()
56 iface == ISP_INTERFACE_CCP2B_PHY2) { in csiphy_routing_cfg_3630()
70 static void csiphy_routing_cfg_3430(struct isp_csiphy *phy, u32 iface, bool on, in csiphy_routing_cfg_3430() argument
77 if (iface != ISP_INTERFACE_CCP2B_PHY1) in csiphy_routing_cfg_3430()
106 enum isp_interface_type iface, bool on, in csiphy_routing_cfg() argument
111 return csiphy_routing_cfg_3630(phy, iface, ccp2_strobe); in csiphy_routing_cfg()
113 return csiphy_routing_cfg_3430(phy, iface, on, ccp2_strobe); in csiphy_routing_cfg()
/drivers/input/mouse/
Dappletouch.c842 static int atp_probe(struct usb_interface *iface, in atp_probe() argument
847 struct usb_device *udev = interface_to_usbdev(iface); in atp_probe()
856 iface_desc = iface->cur_altsetting; in atp_probe()
866 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in atp_probe()
874 dev_err(&iface->dev, "Out of memory\n"); in atp_probe()
879 dev->intf = iface; in atp_probe()
908 input_dev->dev.parent = &iface->dev; in atp_probe()
937 usb_set_intfdata(iface, dev); in atp_probe()
949 usb_set_intfdata(iface, NULL); in atp_probe()
955 static void atp_disconnect(struct usb_interface *iface) in atp_disconnect() argument
[all …]
/drivers/usb/storage/
Dusb.h185 extern int usb_stor_suspend(struct usb_interface *iface, pm_message_t message);
186 extern int usb_stor_resume(struct usb_interface *iface);
187 extern int usb_stor_reset_resume(struct usb_interface *iface);
194 extern int usb_stor_pre_reset(struct usb_interface *iface);
195 extern int usb_stor_post_reset(struct usb_interface *iface);
/drivers/usb/core/
Dmessage.c1291 struct usb_interface *iface; in usb_set_interface() local
1301 iface = usb_ifnum_to_if(dev, interface); in usb_set_interface()
1302 if (!iface) { in usb_set_interface()
1307 if (iface->unregistering) in usb_set_interface()
1310 alt = usb_altnum_to_altsetting(iface, alternate); in usb_set_interface()
1325 dev_err(&iface->dev, "%s Failed to disable LPM\n.", __func__); in usb_set_interface()
1330 for (i = 0; i < iface->cur_altsetting->desc.bNumEndpoints; i++) in usb_set_interface()
1331 iface->cur_altsetting->endpoint[i].streams = 0; in usb_set_interface()
1333 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt); in usb_set_interface()
1352 if (ret == -EPIPE && iface->num_altsetting == 1) { in usb_set_interface()
[all …]
/drivers/acpi/
Dacpi_ipmi.c110 static void ipmi_register_bmc(int iface, struct device *dev);
111 static void ipmi_bmc_gone(int iface);
128 ipmi_dev_alloc(int iface, struct device *dev, acpi_handle handle) in ipmi_dev_alloc() argument
144 ipmi_device->ipmi_ifnum = iface; in ipmi_dev_alloc()
146 err = ipmi_create_user(iface, &driver_data.ipmi_hndlrs, in ipmi_dev_alloc()
454 static void ipmi_register_bmc(int iface, struct device *dev) in ipmi_register_bmc() argument
461 err = ipmi_get_smi_info(iface, &smi_data); in ipmi_register_bmc()
471 ipmi_device = ipmi_dev_alloc(iface, smi_data.dev, handle); in ipmi_register_bmc()
502 static void ipmi_bmc_gone(int iface) in ipmi_bmc_gone() argument
510 if (ipmi_device->ipmi_ifnum != iface) { in ipmi_bmc_gone()
/drivers/crypto/qce/
Dcore.c200 qce->iface = devm_clk_get(qce->dev, "iface"); in qce_crypto_probe()
201 if (IS_ERR(qce->iface)) in qce_crypto_probe()
202 return PTR_ERR(qce->iface); in qce_crypto_probe()
212 ret = clk_prepare_enable(qce->iface); in qce_crypto_probe()
247 clk_disable_unprepare(qce->iface); in qce_crypto_probe()
261 clk_disable_unprepare(qce->iface); in qce_crypto_remove()
/drivers/usb/gadget/udc/
Dpxa27x_udc.h257 #define PXA_EP_DEF(_idx, _addr, dir, _type, maxpkt, _config, iface, altset) \ argument
263 .config = _config, .interface = iface, .alternate = altset, \
266 #define PXA_EP_BULK(_idx, addr, dir, config, iface, alt) \ argument
268 config, iface, alt)
269 #define PXA_EP_ISO(_idx, addr, dir, config, iface, alt) \ argument
271 config, iface, alt)
272 #define PXA_EP_INT(_idx, addr, dir, config, iface, alt) \ argument
274 config, iface, alt)

12345