Home
last modified time | relevance | path

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

12345678910>>...41

/drivers/mmc/core/
Dsdio_io.c27 void sdio_claim_host(struct sdio_func *func) in sdio_claim_host() argument
29 if (WARN_ON(!func)) in sdio_claim_host()
32 mmc_claim_host(func->card->host); in sdio_claim_host()
43 void sdio_release_host(struct sdio_func *func) in sdio_release_host() argument
45 if (WARN_ON(!func)) in sdio_release_host()
48 mmc_release_host(func->card->host); in sdio_release_host()
59 int sdio_enable_func(struct sdio_func *func) in sdio_enable_func() argument
65 if (!func) in sdio_enable_func()
68 pr_debug("SDIO: Enabling device %s...\n", sdio_func_id(func)); in sdio_enable_func()
70 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, &reg); in sdio_enable_func()
[all …]
Dsdio_bus.c35 struct sdio_func *func; \
37 func = dev_to_sdio_func (dev); \
42 sdio_config_attr(class, "0x%02x\n", func->class);
43 sdio_config_attr(vendor, "0x%04x\n", func->vendor);
44 sdio_config_attr(device, "0x%04x\n", func->device);
45 sdio_config_attr(revision, "%u.%u\n", func->major_rev, func->minor_rev);
46 sdio_config_attr(modalias, "sdio:c%02Xv%04Xd%04X\n", func->class, func->vendor, func->device);
51 struct sdio_func *func = dev_to_sdio_func(dev); \
53 if (num > func->num_info) \
55 if (!func->info[num-1][0]) \
[all …]
Dsdio_irq.c64 struct sdio_func *func; in process_sdio_pending_irqs() local
78 func = card->sdio_single_irq; in process_sdio_pending_irqs()
79 if (func && sdio_irq_pending) { in process_sdio_pending_irqs()
80 func->irq_handler(func); in process_sdio_pending_irqs()
91 func = card->sdio_func[i - 1]; in process_sdio_pending_irqs()
92 if (!func) { in process_sdio_pending_irqs()
96 } else if (func->irq_handler) { in process_sdio_pending_irqs()
97 func->irq_handler(func); in process_sdio_pending_irqs()
101 sdio_func_id(func)); in process_sdio_pending_irqs()
273 struct sdio_func *func; in sdio_single_irq_set() local
[all …]
Dsdio_cis.c25 static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, in cistpl_vers_1() argument
68 if (func) { in cistpl_vers_1()
69 func->major_rev = major_rev; in cistpl_vers_1()
70 func->minor_rev = minor_rev; in cistpl_vers_1()
71 func->num_info = nr_strings; in cistpl_vers_1()
72 func->info = (const char**)buffer; in cistpl_vers_1()
83 static int cistpl_manfid(struct mmc_card *card, struct sdio_func *func, in cistpl_manfid() argument
94 if (func) { in cistpl_manfid()
95 func->vendor = vendor; in cistpl_manfid()
96 func->device = device; in cistpl_manfid()
[all …]
/drivers/pinctrl/renesas/
Dpinctrl-rza1.c83 u8 func: 4; member
101 u16 func: 4; member
126 { .pin = 0, .func = 1 },
127 { .pin = 1, .func = 1 },
128 { .pin = 2, .func = 1 },
129 { .pin = 3, .func = 1 },
130 { .pin = 4, .func = 1 },
131 { .pin = 5, .func = 1 },
132 { .pin = 6, .func = 1 },
133 { .pin = 7, .func = 1 },
[all …]
/drivers/gpu/drm/i915/
Dintel_device_info.h109 #define DEV_INFO_FOR_EACH_FLAG(func) \ argument
110 func(is_mobile); \
111 func(is_lp); \
112 func(require_force_probe); \
113 func(is_dgfx); \
115 func(has_64bit_reloc); \
116 func(gpu_reset_clobbers_display); \
117 func(has_reset_engine); \
118 func(has_fpga_dbg); \
119 func(has_global_mocs); \
[all …]
/drivers/net/wireless/ti/wl1251/
Dsdio.c24 struct sdio_func *func; member
31 return wl_sdio->func; in wl_to_func()
34 static void wl1251_sdio_interrupt(struct sdio_func *func) in wl1251_sdio_interrupt() argument
36 struct wl1251 *wl = sdio_get_drvdata(func); in wl1251_sdio_interrupt()
55 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_read() local
57 sdio_claim_host(func); in wl1251_sdio_read()
58 ret = sdio_memcpy_fromio(func, buf, addr, len); in wl1251_sdio_read()
61 sdio_release_host(func); in wl1251_sdio_read()
68 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_write() local
70 sdio_claim_host(func); in wl1251_sdio_write()
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dsdio_ops_linux.c12 static bool rtw_sdio_claim_host_needed(struct sdio_func *func) in rtw_sdio_claim_host_needed() argument
14 struct dvobj_priv *dvobj = sdio_get_drvdata(func); in rtw_sdio_claim_host_needed()
36 struct sdio_func *func; in sd_f0_read8() local
48 func = psdio->func; in sd_f0_read8()
49 claim_needed = rtw_sdio_claim_host_needed(func); in sd_f0_read8()
52 sdio_claim_host(func); in sd_f0_read8()
53 v = sdio_f0_readb(func, addr, err); in sd_f0_read8()
55 sdio_release_host(func); in sd_f0_read8()
73 struct sdio_func *func; in _sd_cmd52_read() local
84 func = psdio->func; in _sd_cmd52_read()
[all …]
Dsdio_intf.c29 static int rtw_drv_init(struct sdio_func *func, const struct sdio_device_id *id);
30 static void rtw_dev_remove(struct sdio_func *func);
54 static void sd_sync_int_hdl(struct sdio_func *func) in sd_sync_int_hdl() argument
59 psdpriv = sdio_get_drvdata(func); in sd_sync_int_hdl()
74 struct sdio_func *func; in sdio_alloc_irq() local
78 func = psdio_data->func; in sdio_alloc_irq()
80 sdio_claim_host(func); in sdio_alloc_irq()
82 err = sdio_claim_irq(func, &sd_sync_int_hdl); in sdio_alloc_irq()
91 sdio_release_host(func); in sdio_alloc_irq()
99 struct sdio_func *func; in sdio_free_irq() local
[all …]
/drivers/staging/wfx/
Dbus_sdio.c28 struct sdio_func *func; member
49 ret = sdio_memcpy_fromio(bus->func, dst, sdio_addr, count); in wfx_sdio_copy_from_io()
71 ret = sdio_memcpy_toio(bus->func, sdio_addr, (void *)src, count); in wfx_sdio_copy_to_io()
82 sdio_claim_host(bus->func); in wfx_sdio_lock()
89 sdio_release_host(bus->func); in wfx_sdio_unlock()
92 static void wfx_sdio_irq_handler(struct sdio_func *func) in wfx_sdio_irq_handler() argument
94 struct wfx_sdio_priv *bus = sdio_get_drvdata(func); in wfx_sdio_irq_handler()
103 sdio_claim_host(bus->func); in wfx_sdio_irq_handler_ext()
105 sdio_release_host(bus->func); in wfx_sdio_irq_handler_ext()
117 sdio_claim_host(bus->func); in wfx_sdio_irq_subscribe()
[all …]
Dbus_spi.c35 struct spi_device *func; member
76 ret = spi_sync(bus->func, &m); in wfx_spi_copy_from_io()
118 ret = spi_sync(bus->func, &m); in wfx_spi_copy_to_io()
147 flags = irq_get_trigger_type(bus->func->irq); in wfx_spi_irq_subscribe()
151 return devm_request_threaded_irq(&bus->func->dev, bus->func->irq, NULL, in wfx_spi_irq_subscribe()
160 devm_free_irq(&bus->func->dev, bus->func->irq, bus); in wfx_spi_irq_unsubscribe()
180 static int wfx_spi_probe(struct spi_device *func) in wfx_spi_probe() argument
185 if (!func->bits_per_word) in wfx_spi_probe()
186 func->bits_per_word = 16; in wfx_spi_probe()
187 ret = spi_setup(func); in wfx_spi_probe()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv04.c760 bool (*func)(struct nvkm_device *, u32, u32); in nv03_gr_mthd_gdi() local
762 case 0x0184: func = nv01_gr_mthd_bind_patt; break; in nv03_gr_mthd_gdi()
763 case 0x0188: func = nv04_gr_mthd_bind_rop; break; in nv03_gr_mthd_gdi()
764 case 0x018c: func = nv04_gr_mthd_bind_beta1; break; in nv03_gr_mthd_gdi()
765 case 0x0190: func = nv04_gr_mthd_bind_surf_dst; break; in nv03_gr_mthd_gdi()
766 case 0x02fc: func = nv04_gr_mthd_set_operation; break; in nv03_gr_mthd_gdi()
770 return func(device, inst, data); in nv03_gr_mthd_gdi()
776 bool (*func)(struct nvkm_device *, u32, u32); in nv04_gr_mthd_gdi() local
778 case 0x0188: func = nv04_gr_mthd_bind_patt; break; in nv04_gr_mthd_gdi()
779 case 0x018c: func = nv04_gr_mthd_bind_rop; break; in nv04_gr_mthd_gdi()
[all …]
Dbase.c32 if (gr && gr->func->ctxsw.inst) in nvkm_gr_ctxsw_inst()
33 return gr->func->ctxsw.inst(gr); in nvkm_gr_ctxsw_inst()
41 if (gr && gr->func->ctxsw.resume) in nvkm_gr_ctxsw_resume()
42 return gr->func->ctxsw.resume(gr); in nvkm_gr_ctxsw_resume()
50 if (gr && gr->func->ctxsw.pause) in nvkm_gr_ctxsw_pause()
51 return gr->func->ctxsw.pause(gr); in nvkm_gr_ctxsw_pause()
59 if (gr->func->chsw_load) in nvkm_gr_chsw_load()
60 return gr->func->chsw_load(gr); in nvkm_gr_chsw_load()
68 if (gr->func->tile) in nvkm_gr_tile()
69 gr->func->tile(gr, region, tile); in nvkm_gr_tile()
[all …]
/drivers/hwmon/pmbus/
Dmax34440.c252 data->info.func[page] = PMBUS_HAVE_VOUT | in max34451_set_supported_funcs()
256 data->info.func[page] = PMBUS_HAVE_VOUT; in max34451_set_supported_funcs()
259 data->info.func[page] = PMBUS_HAVE_IOUT | in max34451_set_supported_funcs()
263 data->info.func[page] = PMBUS_HAVE_IOUT; in max34451_set_supported_funcs()
292 .func[0] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
294 .func[1] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
296 .func[2] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
298 .func[3] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
300 .func[4] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
302 .func[5] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
[all …]
/drivers/net/wireless/broadcom/b43/
Dsdio.c49 static void b43_sdio_interrupt_dispatcher(struct sdio_func *func) in b43_sdio_interrupt_dispatcher() argument
51 struct b43_sdio *sdio = sdio_get_drvdata(func); in b43_sdio_interrupt_dispatcher()
57 sdio_release_host(func); in b43_sdio_interrupt_dispatcher()
59 sdio_claim_host(func); in b43_sdio_interrupt_dispatcher()
66 struct sdio_func *func = bus->host_sdio; in b43_sdio_request_irq() local
67 struct b43_sdio *sdio = sdio_get_drvdata(func); in b43_sdio_request_irq()
72 sdio_claim_host(func); in b43_sdio_request_irq()
73 err = sdio_claim_irq(func, b43_sdio_interrupt_dispatcher); in b43_sdio_request_irq()
74 sdio_release_host(func); in b43_sdio_request_irq()
82 struct sdio_func *func = bus->host_sdio; in b43_sdio_free_irq() local
[all …]
/drivers/pci/hotplug/
Dcpqphp_pci.c70 int cpqhp_configure_device(struct controller *ctrl, struct pci_func *func) in cpqhp_configure_device() argument
77 if (func->pci_dev == NULL) in cpqhp_configure_device()
78 func->pci_dev = pci_get_domain_bus_and_slot(0, func->bus, in cpqhp_configure_device()
79 PCI_DEVFN(func->device, in cpqhp_configure_device()
80 func->function)); in cpqhp_configure_device()
83 if (func->pci_dev == NULL) { in cpqhp_configure_device()
86 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
90 func->pci_dev = pci_get_domain_bus_and_slot(0, func->bus, in cpqhp_configure_device()
91 PCI_DEVFN(func->device, in cpqhp_configure_device()
92 func->function)); in cpqhp_configure_device()
[all …]
/drivers/media/mmc/siano/
Dsmssdio.c77 struct sdio_func *func; member
95 sdio_claim_host(smsdev->func); in smssdio_sendrequest()
98 while (size >= smsdev->func->cur_blksize) { in smssdio_sendrequest()
99 ret = sdio_memcpy_toio(smsdev->func, SMSSDIO_DATA, in smssdio_sendrequest()
100 buffer, smsdev->func->cur_blksize); in smssdio_sendrequest()
104 buffer += smsdev->func->cur_blksize; in smssdio_sendrequest()
105 size -= smsdev->func->cur_blksize; in smssdio_sendrequest()
109 ret = sdio_memcpy_toio(smsdev->func, SMSSDIO_DATA, in smssdio_sendrequest()
114 sdio_release_host(smsdev->func); in smssdio_sendrequest()
123 static void smssdio_interrupt(struct sdio_func *func) in smssdio_interrupt() argument
[all …]
/drivers/bluetooth/
Dbtsdio.c45 struct sdio_func *func; member
77 err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len); in btsdio_tx_packet()
80 sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL); in btsdio_tx_packet()
99 sdio_claim_host(data->func); in btsdio_work()
110 sdio_release_host(data->func); in btsdio_work()
121 err = sdio_readsb(data->func, hdr, REG_RDAT, 4); in btsdio_rx_packet()
140 err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4); in btsdio_rx_packet()
163 sdio_writeb(data->func, 0x00, REG_PC_RRT, NULL); in btsdio_rx_packet()
168 static void btsdio_interrupt(struct sdio_func *func) in btsdio_interrupt() argument
170 struct btsdio_data *data = sdio_get_drvdata(func); in btsdio_interrupt()
[all …]
/drivers/net/wireless/marvell/libertas/
Dif_sdio.c47 static void if_sdio_interrupt(struct sdio_func *func);
110 struct sdio_func *func; member
148 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
150 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
167 rx_unit = sdio_readb(card->func, IF_SDIO_RX_UNIT, &ret); in if_sdio_read_rx_unit()
187 rx_len = sdio_readb(card->func, IF_SDIO_RX_LEN, &ret); in if_sdio_read_rx_len()
271 event = sdio_readb(card->func, IF_SDIO_EVENT, &ret); in if_sdio_handle_event()
305 status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); in if_sdio_wait_status()
342 chunk = sdio_align_size(card->func, size); in if_sdio_card_to_host()
344 ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); in if_sdio_card_to_host()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dbase.c37 fb->func->tile.fini(fb, region, tile); in nvkm_fb_tile_fini()
44 fb->func->tile.init(fb, region, addr, size, pitch, flags, tile); in nvkm_fb_tile_init()
51 if (fb->func->tile.prog) { in nvkm_fb_tile_prog()
52 fb->func->tile.prog(fb, region, tile); in nvkm_fb_tile_prog()
92 if (fb->func->intr) in nvkm_fb_intr()
93 fb->func->intr(fb); in nvkm_fb_intr()
102 if (fb->func->ram_new) { in nvkm_fb_oneinit()
103 int ret = fb->func->ram_new(fb, &fb->ram); in nvkm_fb_oneinit()
110 if (fb->func->oneinit) { in nvkm_fb_oneinit()
111 int ret = fb->func->oneinit(fb); in nvkm_fb_oneinit()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
Dbase.c32 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive()
38 return gpio->func->sense(gpio, line); in nvkm_gpio_sense()
42 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument
44 if (gpio->func->reset) in nvkm_gpio_reset()
45 gpio->func->reset(gpio, func); in nvkm_gpio_reset()
50 struct dcb_gpio_func *func) in nvkm_gpio_find() argument
60 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); in nvkm_gpio_find()
67 *func = (struct dcb_gpio_func) { in nvkm_gpio_find()
68 .func = DCB_GPIO_TVDAC0, in nvkm_gpio_find()
83 struct dcb_gpio_func func; in nvkm_gpio_set() local
[all …]
/drivers/net/wireless/microchip/wilc1000/
Dsdio.c54 static void wilc_sdio_interrupt(struct sdio_func *func) in wilc_sdio_interrupt() argument
56 sdio_release_host(func); in wilc_sdio_interrupt()
57 wilc_handle_isr(sdio_get_drvdata(func)); in wilc_sdio_interrupt()
58 sdio_claim_host(func); in wilc_sdio_interrupt()
63 struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); in wilc_sdio_cmd52() local
67 sdio_claim_host(func); in wilc_sdio_cmd52()
69 func->num = cmd->function; in wilc_sdio_cmd52()
72 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
73 data = sdio_readb(func, cmd->address, &ret); in wilc_sdio_cmd52()
76 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
Dobject.c30 const struct nvkm_object_func *func) in nvkm_object_search() argument
52 if (unlikely(func && object->func != func)) in nvkm_object_search()
90 if (likely(object->func->mthd)) in nvkm_object_mthd()
91 return object->func->mthd(object, mthd, data, size); in nvkm_object_mthd()
99 if (likely(object->func->ntfy)) in nvkm_object_ntfy()
100 return object->func->ntfy(object, mthd, pevent); in nvkm_object_ntfy()
108 if (likely(object->func->map)) in nvkm_object_map()
109 return object->func->map(object, argv, argc, type, addr, size); in nvkm_object_map()
116 if (likely(object->func->unmap)) in nvkm_object_unmap()
117 return object->func->unmap(object); in nvkm_object_unmap()
[all …]
/drivers/net/wireless/ti/wlcore/
Dsdio.c46 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl1271_sdio_set_block_size() local
48 sdio_claim_host(func); in wl1271_sdio_set_block_size()
49 sdio_set_block_size(func, blksz); in wl1271_sdio_set_block_size()
50 sdio_release_host(func); in wl1271_sdio_set_block_size()
58 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_read() local
60 sdio_claim_host(func); in wl12xx_sdio_raw_read()
63 ((u8 *)buf)[0] = sdio_f0_readb(func, addr, &ret); in wl12xx_sdio_raw_read()
68 ret = sdio_readsb(func, buf, addr, len); in wl12xx_sdio_raw_read()
70 ret = sdio_memcpy_fromio(func, buf, addr, len); in wl12xx_sdio_raw_read()
76 sdio_release_host(func); in wl12xx_sdio_raw_read()
[all …]
/drivers/net/wireless/st/cw1200/
Dcw1200_sdio.c47 struct sdio_func *func; member
64 return sdio_memcpy_fromio(self->func, dst, addr, count); in cw1200_sdio_memcpy_fromio()
71 return sdio_memcpy_toio(self->func, addr, (void *)src, count); in cw1200_sdio_memcpy_toio()
76 sdio_claim_host(self->func); in cw1200_sdio_lock()
81 sdio_release_host(self->func); in cw1200_sdio_unlock()
84 static void cw1200_sdio_irq_handler(struct sdio_func *func) in cw1200_sdio_irq_handler() argument
86 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler()
117 cccr = sdio_f0_readb(self->func, SDIO_CCCR_IENx, &ret); in cw1200_request_irq()
125 cccr |= BIT(self->func->num); in cw1200_request_irq()
127 sdio_f0_writeb(self->func, cccr, SDIO_CCCR_IENx, &ret); in cw1200_request_irq()
[all …]

12345678910>>...41