Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 212) sorted by relevance

123456789

/drivers/mmc/core/
Dsdio_io.c26 void sdio_claim_host(struct sdio_func *func) in sdio_claim_host() argument
28 BUG_ON(!func); in sdio_claim_host()
29 BUG_ON(!func->card); in sdio_claim_host()
31 mmc_claim_host(func->card->host); in sdio_claim_host()
42 void sdio_release_host(struct sdio_func *func) in sdio_release_host() argument
44 BUG_ON(!func); in sdio_release_host()
45 BUG_ON(!func->card); in sdio_release_host()
47 mmc_release_host(func->card->host); in sdio_release_host()
58 int sdio_enable_func(struct sdio_func *func) in sdio_enable_func() argument
64 BUG_ON(!func); in sdio_enable_func()
[all …]
Dsdio_bus.c35 struct sdio_func *func; \
37 func = dev_to_sdio_func (dev); \
38 return sprintf (buf, format_string, func->field); \
47 struct sdio_func *func = dev_to_sdio_func (dev); in modalias_show() local
50 func->class, func->vendor, func->device); in modalias_show()
61 static const struct sdio_device_id *sdio_match_one(struct sdio_func *func, in sdio_match_one() argument
64 if (id->class != (__u8)SDIO_ANY_ID && id->class != func->class) in sdio_match_one()
66 if (id->vendor != (__u16)SDIO_ANY_ID && id->vendor != func->vendor) in sdio_match_one()
68 if (id->device != (__u16)SDIO_ANY_ID && id->device != func->device) in sdio_match_one()
73 static const struct sdio_device_id *sdio_match_device(struct sdio_func *func, in sdio_match_device() argument
[all …]
Dsdio_cis.c26 static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, in cistpl_vers_1() argument
63 if (func) { in cistpl_vers_1()
64 func->num_info = nr_strings; in cistpl_vers_1()
65 func->info = (const char**)buffer; in cistpl_vers_1()
74 static int cistpl_manfid(struct mmc_card *card, struct sdio_func *func, in cistpl_manfid() argument
85 if (func) { in cistpl_manfid()
86 func->vendor = vendor; in cistpl_manfid()
87 func->device = device; in cistpl_manfid()
117 static int cistpl_funce_func(struct sdio_func *func, in cistpl_funce_func() argument
123 vsn = func->card->cccr.sdio_vsn; in cistpl_funce_func()
[all …]
Dsdio_irq.c45 struct sdio_func *func = card->sdio_func[i - 1]; in process_sdio_pending_irqs() local
46 if (!func) { in process_sdio_pending_irqs()
51 } else if (func->irq_handler) { in process_sdio_pending_irqs()
52 func->irq_handler(func); in process_sdio_pending_irqs()
56 sdio_func_id(func)); in process_sdio_pending_irqs()
199 int sdio_claim_irq(struct sdio_func *func, sdio_irq_handler_t *handler) in sdio_claim_irq() argument
204 BUG_ON(!func); in sdio_claim_irq()
205 BUG_ON(!func->card); in sdio_claim_irq()
207 pr_debug("SDIO: Enabling IRQ for %s...\n", sdio_func_id(func)); in sdio_claim_irq()
209 if (func->irq_handler) { in sdio_claim_irq()
[all …]
Dsdio.c31 static int sdio_read_fbr(struct sdio_func *func) in sdio_read_fbr() argument
36 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
37 SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF, 0, &data); in sdio_read_fbr()
44 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
45 SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF_EXT, 0, &data); in sdio_read_fbr()
50 func->class = data; in sdio_read_fbr()
59 struct sdio_func *func; in sdio_init_func() local
63 func = sdio_alloc_func(card); in sdio_init_func()
64 if (IS_ERR(func)) in sdio_init_func()
65 return PTR_ERR(func); in sdio_init_func()
[all …]
/drivers/pci/hotplug/
Dcpqphp_pci.c85 int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func) in cpqhp_configure_device() argument
91 if (func->pci_dev == NULL) in cpqhp_configure_device()
92 func->pci_dev = pci_find_slot(func->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
95 if (func->pci_dev == NULL) { in cpqhp_configure_device()
98 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
102 func->pci_dev = pci_find_slot(func->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
103 if (func->pci_dev == NULL) { in cpqhp_configure_device()
109 if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in cpqhp_configure_device()
110 pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus); in cpqhp_configure_device()
111 child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); in cpqhp_configure_device()
[all …]
Dcpqphp_ctrl.c43 static u32 configure_new_device(struct controller* ctrl, struct pci_func *func,
45 static int configure_new_function(struct controller* ctrl, struct pci_func *func,
73 struct pci_func *func; in handle_switch_change() local
87 func = cpqhp_slot_find(ctrl->bus, in handle_switch_change()
99 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_switch_change()
100 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_switch_change()
107 func->switch_save = 0; in handle_switch_change()
115 func->switch_save = 0x10; in handle_switch_change()
148 struct pci_func *func; in handle_presence_change() local
166 func = cpqhp_slot_find(ctrl->bus, in handle_presence_change()
[all …]
Dibmphp_pci.c81 int ibmphp_configure_card (struct pci_func *func, u8 slotno) in ibmphp_configure_card() argument
95 debug ("inside configure_card, func->busno = %x\n", func->busno); in ibmphp_configure_card()
97 device = func->device; in ibmphp_configure_card()
98 cur_func = func; in ibmphp_configure_card()
196 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
204 if (func->devices[i]) { in ibmphp_configure_card()
225 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
266 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
277 if (func->devices[i]) { in ibmphp_configure_card()
300 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
[all …]
Dacpiphp_glue.c90 struct acpiphp_func *func = container_of(nb, struct acpiphp_func, nb); in post_dock_fixups() local
91 struct pci_bus *bus = func->slot->bridge->pci_bus; in post_dock_fixups()
322 if ((bridge->flags & BRIDGE_HAS_EJ0) && bridge->func) { in init_bridge_misc()
323 status = acpi_remove_notify_handler(bridge->func->handle, in init_bridge_misc()
347 struct acpiphp_func *func; in acpiphp_bridge_handle_to_function() local
353 func = list_entry(l, struct acpiphp_func, in acpiphp_bridge_handle_to_function()
355 if (func->handle == handle) in acpiphp_bridge_handle_to_function()
356 return func; in acpiphp_bridge_handle_to_function()
387 struct acpiphp_func *func; in config_p2p_bridge_flags() local
392 func = acpiphp_bridge_handle_to_function(bridge->handle); in config_p2p_bridge_flags()
[all …]
Dibmphp_core.c723 if (slot_cur->func) { in ibm_slot_find()
724 func_cur = slot_cur->func; in ibm_slot_find()
757 static void ibm_unconfigure_device(struct pci_func *func) in ibm_unconfigure_device() argument
764 func->device, func->function); in ibm_unconfigure_device()
765 debug("func->device << 3 | 0x0 = %x\n", func->device << 3 | 0x0); in ibm_unconfigure_device()
768 temp = pci_get_bus_and_slot(func->busno, (func->device << 3) | j); in ibm_unconfigure_device()
774 pci_dev_put(func->dev); in ibm_unconfigure_device()
822 static int ibm_configure_device(struct pci_func *func) in ibm_configure_device() argument
830 if (!(bus_structure_fixup(func->busno))) in ibm_configure_device()
832 if (func->dev == NULL) in ibm_configure_device()
[all …]
/drivers/net/wimax/i2400m/
Dsdio.c90 int i2400ms_enable_function(struct sdio_func *func) in i2400ms_enable_function() argument
94 struct device *dev = &func->dev; in i2400ms_enable_function()
96 d_fnstart(3, dev, "(func %p)\n", func); in i2400ms_enable_function()
103 sdio_claim_host(func); in i2400ms_enable_function()
104 err = sdio_enable_func(func); in i2400ms_enable_function()
106 sdio_release_host(func); in i2400ms_enable_function()
111 sdio_disable_func(func); in i2400ms_enable_function()
112 sdio_release_host(func); in i2400ms_enable_function()
123 d_fnend(3, dev, "(func %p) = %d\n", func, err); in i2400ms_enable_function()
141 struct sdio_func *func = i2400ms->func; in i2400ms_bus_dev_start() local
[all …]
Dsdio-rx.c86 struct sdio_func *func = i2400ms->func; in __i2400ms_rx_get_size() local
87 struct device *dev = &i2400ms->func->dev; in __i2400ms_rx_get_size()
93 val = sdio_readb(func, xfer_size_addr + cnt, &ret); in __i2400ms_rx_get_size()
122 struct sdio_func *func = i2400ms->func; in i2400ms_rx() local
123 struct device *dev = &func->dev; in i2400ms_rx()
141 ret = sdio_memcpy_fromio(func, skb->data, in i2400ms_rx()
178 void i2400ms_irq(struct sdio_func *func) in i2400ms_irq() argument
181 struct i2400ms *i2400ms = sdio_get_drvdata(func); in i2400ms_irq()
183 struct device *dev = &func->dev; in i2400ms_irq()
187 val = sdio_readb(func, I2400MS_INTR_STATUS_ADDR, &ret); in i2400ms_irq()
[all …]
Dsdio-tx.c78 struct sdio_func *func = i2400ms->func; in i2400ms_tx_submit() local
79 struct device *dev = &func->dev; in i2400ms_tx_submit()
89 sdio_claim_host(func); in i2400ms_tx_submit()
90 result = sdio_memcpy_toio(func, 0, tx_msg, tx_msg_size); in i2400ms_tx_submit()
91 sdio_release_host(func); in i2400ms_tx_submit()
116 struct device *dev = &i2400ms->func->dev; in i2400ms_bus_tx_kick()
131 struct device *dev = &i2400ms->func->dev; in i2400ms_tx_setup()
Dsdio-fw.c123 sdio_claim_host(i2400ms->func); /* Send & check */ in i2400ms_bus_bm_cmd_send()
124 result = sdio_memcpy_toio(i2400ms->func, I2400MS_DATA_ADDR, in i2400ms_bus_bm_cmd_send()
126 sdio_release_host(i2400ms->func); in i2400ms_bus_bm_cmd_send()
165 struct sdio_func *func = i2400ms->func; in i2400ms_bus_bm_wait_for_ack() local
166 struct device *dev = &func->dev; in i2400ms_bus_bm_wait_for_ack()
174 sdio_claim_host(func); in i2400ms_bus_bm_wait_for_ack()
203 result = sdio_memcpy_fromio(func, i2400m->bm_ack_buf, in i2400ms_bus_bm_wait_for_ack()
220 sdio_release_host(func); in i2400ms_bus_bm_wait_for_ack()
/drivers/bluetooth/
Dbtsdio.c56 struct sdio_func *func; member
87 err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len); in btsdio_tx_packet()
90 sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL); in btsdio_tx_packet()
109 sdio_claim_host(data->func); in btsdio_work()
120 sdio_release_host(data->func); in btsdio_work()
131 err = sdio_readsb(data->func, hdr, REG_RDAT, 4); in btsdio_rx_packet()
149 err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4); in btsdio_rx_packet()
164 sdio_writeb(data->func, 0x00, REG_PC_RRT, NULL); in btsdio_rx_packet()
169 static void btsdio_interrupt(struct sdio_func *func) in btsdio_interrupt() argument
171 struct btsdio_data *data = sdio_get_drvdata(func); in btsdio_interrupt()
[all …]
/drivers/net/wireless/libertas/
Dif_sdio.c85 struct sdio_func *func; member
115 scratch = sdio_readb(card->func, reg, &ret); in if_sdio_read_scratch()
117 scratch |= sdio_readb(card->func, reg + 1, &ret) << 8; in if_sdio_read_scratch()
209 event = sdio_readb(card->func, IF_SDIO_EVENT, &ret); in if_sdio_handle_event()
256 status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); in if_sdio_card_to_host()
273 chunk = sdio_align_size(card->func, size); in if_sdio_card_to_host()
275 ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); in if_sdio_card_to_host()
352 sdio_claim_host(card->func); in if_sdio_host_to_card_worker()
356 status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); in if_sdio_host_to_card_worker()
368 ret = sdio_writesb(card->func, card->ioport, in if_sdio_host_to_card_worker()
[all …]
/drivers/mfd/
Dwm8350-gpio.c50 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func() argument
60 reg | ((func & 0xf) << 0)); in gpio_set_func()
66 reg | ((func & 0xf) << 4)); in gpio_set_func()
72 reg | ((func & 0xf) << 8)); in gpio_set_func()
78 reg | ((func & 0xf) << 12)); in gpio_set_func()
84 reg | ((func & 0xf) << 0)); in gpio_set_func()
90 reg | ((func & 0xf) << 4)); in gpio_set_func()
96 reg | ((func & 0xf) << 8)); in gpio_set_func()
102 reg | ((func & 0xf) << 12)); in gpio_set_func()
108 reg | ((func & 0xf) << 0)); in gpio_set_func()
[all …]
/drivers/mmc/card/
Dsdio_uart.c80 struct sdio_func *func; member
152 struct sdio_func *func; in sdio_uart_port_remove() local
169 func = port->func; in sdio_uart_port_remove()
170 sdio_claim_host(func); in sdio_uart_port_remove()
171 port->func = NULL; in sdio_uart_port_remove()
176 sdio_release_irq(func); in sdio_uart_port_remove()
177 sdio_disable_func(func); in sdio_uart_port_remove()
178 sdio_release_host(func); in sdio_uart_port_remove()
186 if (unlikely(!port->func)) { in sdio_uart_claim_func()
191 sdio_claim_host(port->func); in sdio_uart_claim_func()
[all …]
/drivers/ieee1394/
Dinit_ohci1394_dma.c225 static inline void __init init_ohci1394_controller(int num, int slot, int func) in init_ohci1394_controller() argument
231 " at %02x:%02x.%x\n", num, slot, func); in init_ohci1394_controller()
233 ohci_base = read_pci_config(num, slot, func, PCI_BASE_ADDRESS_0+(0<<2)) in init_ohci1394_controller()
249 int num, slot, func; in init_ohci1394_dma_on_all_controllers() local
257 for (func = 0; func < 8; func++) { in init_ohci1394_dma_on_all_controllers()
258 u32 class = read_pci_config(num,slot,func, in init_ohci1394_dma_on_all_controllers()
266 init_ohci1394_controller(num, slot, func); in init_ohci1394_dma_on_all_controllers()
/drivers/input/misc/
Dgpio_event.c60 static int gpio_event_call_all_func(struct gpio_event *ip, int func) in gpio_event_call_all_func() argument
66 if (func == GPIO_EVENT_FUNC_INIT || func == GPIO_EVENT_FUNC_RESUME) { in gpio_event_call_all_func()
69 if ((*ii)->func == NULL) { in gpio_event_call_all_func()
75 if (func == GPIO_EVENT_FUNC_RESUME && (*ii)->no_suspend) in gpio_event_call_all_func()
77 ret = (*ii)->func(ip->input_devs, *ii, &ip->state[i], in gpio_event_call_all_func()
78 func); in gpio_event_call_all_func()
93 if ((func & ~1) == GPIO_EVENT_FUNC_SUSPEND && (*ii)->no_suspend) in gpio_event_call_all_func()
95 (*ii)->func(ip->input_devs, *ii, &ip->state[i], func & ~1); in gpio_event_call_all_func()
/drivers/usb/gadget/
Df_obex.c60 return container_of(f, struct f_obex, port.func); in func_to_obex()
276 struct usb_composite_dev *cdev = g->func.config->cdev; in obex_connect()
282 status = usb_function_activate(&g->func); in obex_connect()
291 struct usb_composite_dev *cdev = g->func.config->cdev; in obex_disconnect()
297 status = usb_function_deactivate(&g->func); in obex_disconnect()
476 obex->port.func.name = "obex"; in obex_bind_config()
477 obex->port.func.strings = obex_strings; in obex_bind_config()
479 obex->port.func.bind = obex_bind; in obex_bind_config()
480 obex->port.func.unbind = obex_unbind; in obex_bind_config()
481 obex->port.func.set_alt = obex_set_alt; in obex_bind_config()
[all …]
Df_rndis.c99 return container_of(f, struct f_rndis, port.func); in func_to_rndis()
301 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_response_available()
326 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_response_complete()
365 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_command_complete()
546 struct f_rndis *rndis = func_to_rndis(&geth->func); in rndis_open()
547 struct usb_composite_dev *cdev = geth->func.config->cdev; in rndis_open()
558 struct f_rndis *rndis = func_to_rndis(&geth->func); in rndis_close()
560 DBG(geth->func.config->cdev, "%s\n", __func__); in rndis_close()
812 rndis->port.func.name = "rndis"; in rndis_bind_config()
813 rndis->port.func.strings = rndis_strings; in rndis_bind_config()
[all …]
Df_ecm.c82 return container_of(f, struct f_ecm, port.func); in func_to_ecm()
301 struct usb_composite_dev *cdev = ecm->port.func.config->cdev; in ecm_do_notify()
368 struct usb_composite_dev *cdev = ecm->port.func.config->cdev; in ecm_notify_complete()
580 struct f_ecm *ecm = func_to_ecm(&geth->func); in ecm_open()
582 DBG(ecm->port.func.config->cdev, "%s\n", __func__); in ecm_open()
590 struct f_ecm *ecm = func_to_ecm(&geth->func); in ecm_close()
592 DBG(ecm->port.func.config->cdev, "%s\n", __func__); in ecm_close()
815 ecm->port.func.name = "cdc_ethernet"; in ecm_bind_config()
816 ecm->port.func.strings = ecm_strings; in ecm_bind_config()
818 ecm->port.func.bind = ecm_bind; in ecm_bind_config()
[all …]
/drivers/isdn/hardware/eicon/
Ddebuglib.h128 #define DBG_TEST(func,args) do { } while(0); argument
135 #define DBG_DECL(func) extern void myDbgPrint_##func (char *, ...) ; argument
163 #define DBG_TEST(func,args) \ argument
164 { if ( (myDriverDebugHandle.dbgMask) & (unsigned long)DL_##func ) \
168 myDbgPrint_##func args ; \
174 #define DBG_TEST(func,args) \
175 { if ( (myDriverDebugHandle.dbgMask) & (unsigned long)DL_##func ) \
176 { myDbgPrint_##func args ; \
/drivers/misc/sgi-xp/
Dxp_main.c154 xpc_connect(int ch_number, xpc_channel_func func, void *key, u16 payload_size, in xpc_connect() argument
161 DBUG_ON(func == NULL); in xpc_connect()
173 if (registration->func != NULL) { in xpc_connect()
184 registration->func = func; in xpc_connect()
224 if (registration->func == NULL) { in xpc_disconnect()
230 registration->func = NULL; in xpc_disconnect()

123456789