/drivers/i2c/busses/ |
D | i2c-bfin-twi.c | 36 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() 43 if (iface->writeNum > 0) { in bfin_twi_handle_interrupt() 45 write_XMT_DATA8(iface, *(iface->transPtr++)); in bfin_twi_handle_interrupt() 46 iface->writeNum--; in bfin_twi_handle_interrupt() 51 else if (iface->cur_mode == TWI_I2C_MODE_COMBINED) in bfin_twi_handle_interrupt() 52 write_MASTER_CTL(iface, in bfin_twi_handle_interrupt() 53 read_MASTER_CTL(iface) | MDIR); in bfin_twi_handle_interrupt() 54 else if (iface->manual_stop) in bfin_twi_handle_interrupt() 55 write_MASTER_CTL(iface, in bfin_twi_handle_interrupt() [all …]
|
D | i2c-s6000.c | 65 static inline u16 i2c_rd16(struct s6i2c_if *iface, unsigned n) in i2c_rd16() argument 67 return readw(iface->reg + (n)); in i2c_rd16() 70 static inline void i2c_wr16(struct s6i2c_if *iface, unsigned n, u16 v) in i2c_wr16() argument 72 writew(v, iface->reg + (n)); in i2c_wr16() 75 static inline u32 i2c_rd32(struct s6i2c_if *iface, unsigned n) in i2c_rd32() argument 77 return readl(iface->reg + (n)); in i2c_rd32() 80 static inline void i2c_wr32(struct s6i2c_if *iface, unsigned n, u32 v) in i2c_wr32() argument 82 writel(v, iface->reg + (n)); in i2c_wr32() 87 static void s6i2c_handle_interrupt(struct s6i2c_if *iface) in s6i2c_handle_interrupt() argument 89 if (i2c_rd16(iface, S6_I2C_INTRSTAT) & (1 << S6_I2C_INTR_TXABRT)) { in s6i2c_handle_interrupt() [all …]
|
D | scx200_acb.c | 92 #define ACBSDA (iface->base + 0) 93 #define ACBST (iface->base + 1) 99 #define ACBCST (iface->base + 2) 101 #define ACBCTL1 (iface->base + 3) 107 #define ACBADDR (iface->base + 4) 108 #define ACBCTL2 (iface->base + 5) 113 static void scx200_acb_machine(struct scx200_acb_iface *iface, u8 status) in scx200_acb_machine() argument 117 dev_dbg(&iface->adapter.dev, "state %s, status = 0x%02x\n", in scx200_acb_machine() 118 scx200_acb_state_name[iface->state], status); in scx200_acb_machine() 129 dev_dbg(&iface->adapter.dev, "negative ack in state %s\n", in scx200_acb_machine() [all …]
|
/drivers/net/wireless/hostap/ |
D | hostap_cs.c | 49 struct hostap_interface *iface; in hfa384x_outb_debug() local 53 iface = netdev_priv(dev); in hfa384x_outb_debug() 54 local = iface->local; in hfa384x_outb_debug() 63 struct hostap_interface *iface; in hfa384x_inb_debug() local 68 iface = netdev_priv(dev); in hfa384x_inb_debug() 69 local = iface->local; in hfa384x_inb_debug() 79 struct hostap_interface *iface; in hfa384x_outw_debug() local 83 iface = netdev_priv(dev); in hfa384x_outw_debug() 84 local = iface->local; in hfa384x_outw_debug() 93 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
D | hostap_pci.c | 58 struct hostap_interface *iface; in hfa384x_outb_debug() local 63 iface = netdev_priv(dev); in hfa384x_outb_debug() 64 local = iface->local; in hfa384x_outb_debug() 75 struct hostap_interface *iface; in hfa384x_inb_debug() local 81 iface = netdev_priv(dev); in hfa384x_inb_debug() 82 local = iface->local; in hfa384x_inb_debug() 94 struct hostap_interface *iface; in hfa384x_outw_debug() local 99 iface = netdev_priv(dev); in hfa384x_outw_debug() 100 local = iface->local; in hfa384x_outw_debug() 111 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
D | hostap_main.c | 55 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 …]
|
D | hostap_80211_tx.c | 62 struct hostap_interface *iface; in hostap_data_start_xmit() local 75 iface = netdev_priv(dev); in hostap_data_start_xmit() 76 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 …]
|
D | hostap_ioctl.c | 18 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 …]
|
D | hostap_plx.c | 111 struct hostap_interface *iface; in hfa384x_outb_debug() local 115 iface = netdev_priv(dev); in hfa384x_outb_debug() 116 local = iface->local; in hfa384x_outb_debug() 126 struct hostap_interface *iface; in hfa384x_inb_debug() local 131 iface = netdev_priv(dev); in hfa384x_inb_debug() 132 local = iface->local; in hfa384x_inb_debug() 143 struct hostap_interface *iface; in hfa384x_outw_debug() local 147 iface = netdev_priv(dev); in hfa384x_outw_debug() 148 local = iface->local; in hfa384x_outw_debug() 158 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
D | hostap_hw.c | 257 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/ |
D | usb.c | 460 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() 487 i2400mu->usb_iface = iface; in i2400mu_probe() 488 usb_set_intfdata(iface, i2400mu); in i2400mu_probe() 537 iface->needs_remote_wakeup = 1; /* autosuspend (15s delay) */ in i2400mu_probe() 558 usb_set_intfdata(iface, NULL); in i2400mu_probe() 574 void i2400mu_disconnect(struct usb_interface *iface) in i2400mu_disconnect() argument 576 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_disconnect() 579 struct device *dev = &iface->dev; in i2400mu_disconnect() [all …]
|
/drivers/usb/wusbcore/ |
D | cbaf.c | 315 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_chid_show() local 316 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_chid_show() 328 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_chid_store() local 329 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_chid_store() 362 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_host_name_show() local 363 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_host_name_show() 373 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_host_name_store() local 374 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_host_name_store() 389 struct usb_interface *iface = to_usb_interface(dev); in cbaf_wusb_host_band_groups_show() local 390 struct cbaf *cbaf = usb_get_intfdata(iface); in cbaf_wusb_host_band_groups_show() [all …]
|
D | wa-hc.c | 36 int wa_create(struct wahc *wa, struct usb_interface *iface) in wa_create() argument 39 struct device *dev = &iface->dev; in wa_create() 45 wa->dti_epd = &iface->cur_altsetting->endpoint[1].desc; in wa_create() 46 wa->dto_epd = &iface->cur_altsetting->endpoint[2].desc; in wa_create() 53 result = wa_nep_create(wa, iface); in wa_create()
|
/drivers/net/can/c_can/ |
D | c_can.c | 48 #define C_CAN_IFACE(reg, iface) (C_CAN_IF1_##reg + (iface) * IF_ENUM_REG_LEN) argument 276 static inline int c_can_msg_obj_is_busy(struct c_can_priv *priv, int iface) in c_can_msg_obj_is_busy() argument 281 C_CAN_IFACE(COMREQ_REG, iface)) & in c_can_msg_obj_is_busy() 294 int iface, int objno, int mask) in c_can_object_get() argument 304 priv->write_reg(priv, C_CAN_IFACE(COMMSK_REG, iface), in c_can_object_get() 306 priv->write_reg(priv, C_CAN_IFACE(COMREQ_REG, iface), in c_can_object_get() 309 if (c_can_msg_obj_is_busy(priv, iface)) in c_can_object_get() 314 int iface, int objno, int mask) in c_can_object_put() argument 324 priv->write_reg(priv, C_CAN_IFACE(COMMSK_REG, iface), in c_can_object_put() 326 priv->write_reg(priv, C_CAN_IFACE(COMREQ_REG, iface), in c_can_object_put() [all …]
|
/drivers/usb/misc/ |
D | appledisplay.c | 204 static int appledisplay_probe(struct usb_interface *iface, in appledisplay_probe() argument 209 struct usb_device *udev = interface_to_usbdev(iface); in appledisplay_probe() 218 iface_desc = iface->cur_altsetting; in appledisplay_probe() 228 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in appledisplay_probe() 236 dev_err(&iface->dev, "Out of memory\n"); in appledisplay_probe() 249 dev_err(&iface->dev, in appledisplay_probe() 258 dev_err(&iface->dev, "Allocating URB failed\n"); in appledisplay_probe() 267 dev_err(&iface->dev, "Allocating URB buffer failed\n"); in appledisplay_probe() 278 dev_err(&iface->dev, "Submitting URB failed\n"); in appledisplay_probe() 291 dev_err(&iface->dev, "Backlight registration failed\n"); in appledisplay_probe() [all …]
|
/drivers/uwb/i1480/dfu/ |
D | usb.c | 63 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 346 struct device *dev = &iface->dev; in i1480_usb_probe() 350 if (iface->cur_altsetting->desc.bInterfaceNumber != 0) { in i1480_usb_probe() 352 iface->cur_altsetting->desc.bInterfaceNumber); in i1480_usb_probe() [all …]
|
/drivers/uwb/ |
D | hwa-rc.c | 682 struct usb_interface *iface = hwarc->usb_iface; in hwarc_neep_init() local 683 struct usb_device *usb_dev = interface_to_usbdev(iface); in hwarc_neep_init() 684 struct device *dev = &iface->dev; in hwarc_neep_init() 688 epd = &iface->cur_altsetting->endpoint[0].desc; in hwarc_neep_init() 806 static int hwarc_probe(struct usb_interface *iface, in hwarc_probe() argument 812 struct device *dev = &iface->dev; in hwarc_probe() 826 hwarc->usb_dev = usb_get_dev(interface_to_usbdev(iface)); in hwarc_probe() 827 hwarc->usb_iface = usb_get_intf(iface); in hwarc_probe() 851 usb_set_intfdata(iface, hwarc); in hwarc_probe() 857 usb_put_intf(iface); in hwarc_probe() [all …]
|
/drivers/input/mouse/ |
D | appletouch.c | 770 static int atp_probe(struct usb_interface *iface, in atp_probe() argument 775 struct usb_device *udev = interface_to_usbdev(iface); in atp_probe() 784 iface_desc = iface->cur_altsetting; in atp_probe() 794 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in atp_probe() 802 dev_err(&iface->dev, "Out of memory\n"); in atp_probe() 807 dev->intf = iface; in atp_probe() 836 input_dev->dev.parent = &iface->dev; in atp_probe() 865 usb_set_intfdata(iface, dev); in atp_probe() 877 usb_set_intfdata(iface, NULL); in atp_probe() 883 static void atp_disconnect(struct usb_interface *iface) in atp_disconnect() argument [all …]
|
D | bcm5974.c | 789 static int bcm5974_suspend(struct usb_interface *iface, pm_message_t message) in bcm5974_suspend() argument 791 struct bcm5974 *dev = usb_get_intfdata(iface); in bcm5974_suspend() 803 static int bcm5974_resume(struct usb_interface *iface) in bcm5974_resume() argument 805 struct bcm5974 *dev = usb_get_intfdata(iface); in bcm5974_resume() 818 static int bcm5974_probe(struct usb_interface *iface, in bcm5974_probe() argument 821 struct usb_device *udev = interface_to_usbdev(iface); in bcm5974_probe() 834 dev_err(&iface->dev, "out of memory\n"); in bcm5974_probe() 839 dev->intf = iface; in bcm5974_probe() 889 input_dev->dev.parent = &iface->dev; in bcm5974_probe() 903 usb_set_intfdata(iface, dev); in bcm5974_probe() [all …]
|
/drivers/media/platform/omap3isp/ |
D | ispcsiphy.c | 36 enum isp_interface_type iface, in csiphy_routing_cfg_3630() argument 43 switch (iface) { in csiphy_routing_cfg_3630() 65 if (iface == ISP_INTERFACE_CCP2B_PHY1 || in csiphy_routing_cfg_3630() 66 iface == ISP_INTERFACE_CCP2B_PHY2) { in csiphy_routing_cfg_3630() 80 static void csiphy_routing_cfg_3430(struct isp_csiphy *phy, u32 iface, bool on, in csiphy_routing_cfg_3430() argument 87 if (iface != ISP_INTERFACE_CCP2B_PHY1) in csiphy_routing_cfg_3430() 116 enum isp_interface_type iface, bool on, in csiphy_routing_cfg() argument 121 return csiphy_routing_cfg_3630(phy, iface, ccp2_strobe); in csiphy_routing_cfg() 123 return csiphy_routing_cfg_3430(phy, iface, on, ccp2_strobe); in csiphy_routing_cfg()
|
/drivers/usb/storage/ |
D | usb.h | 185 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/ |
D | message.c | 1280 struct usb_interface *iface; in usb_set_interface() local 1291 iface = usb_ifnum_to_if(dev, interface); in usb_set_interface() 1292 if (!iface) { in usb_set_interface() 1297 if (iface->unregistering) in usb_set_interface() 1300 alt = usb_altnum_to_altsetting(iface, alternate); in usb_set_interface() 1315 dev_err(&iface->dev, "%s Failed to disable LPM\n.", __func__); in usb_set_interface() 1319 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt); in usb_set_interface() 1338 if (ret == -EPIPE && iface->num_altsetting == 1) { in usb_set_interface() 1345 usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting); in usb_set_interface() 1359 if (iface->cur_altsetting != alt) { in usb_set_interface() [all …]
|
/drivers/staging/keucr/ |
D | usb.c | 38 static int eucr_suspend(struct usb_interface *iface, pm_message_t message) in eucr_suspend() argument 40 struct us_data *us = usb_get_intfdata(iface); in eucr_suspend() 52 static int eucr_resume(struct usb_interface *iface) in eucr_resume() argument 56 struct us_data *us = usb_get_intfdata(iface); in eucr_resume() 73 static int eucr_reset_resume(struct usb_interface *iface) in eucr_reset_resume() argument 76 struct us_data *us = usb_get_intfdata(iface); in eucr_reset_resume() 103 static int eucr_pre_reset(struct usb_interface *iface) in eucr_pre_reset() argument 105 struct us_data *us = usb_get_intfdata(iface); in eucr_pre_reset() 114 static int eucr_post_reset(struct usb_interface *iface) in eucr_post_reset() argument 116 struct us_data *us = usb_get_intfdata(iface); in eucr_post_reset()
|
/drivers/acpi/ |
D | acpi_ipmi.c | 107 static void ipmi_register_bmc(int iface, struct device *dev); 108 static void ipmi_bmc_gone(int iface); 279 static void ipmi_register_bmc(int iface, struct device *dev) in ipmi_register_bmc() argument 288 err = ipmi_get_smi_info(iface, &smi_data); in ipmi_register_bmc() 319 err = ipmi_create_user(iface, &driver_data.ipmi_hndlrs, in ipmi_register_bmc() 328 ipmi_device->ipmi_ifnum = iface; in ipmi_register_bmc() 339 static void ipmi_bmc_gone(int iface) in ipmi_bmc_gone() argument 346 if (ipmi_device->ipmi_ifnum != iface) in ipmi_bmc_gone()
|
/drivers/usb/gadget/ |
D | pxa27x_udc.h | 257 #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)
|