Home
last modified time | relevance | path

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

12345678910>>...36

/drivers/mmc/core/
Dsdio_io.c29 void sdio_claim_host(struct sdio_func *func) in sdio_claim_host() argument
31 if (WARN_ON(!func)) in sdio_claim_host()
34 mmc_claim_host(func->card->host); in sdio_claim_host()
45 void sdio_release_host(struct sdio_func *func) in sdio_release_host() argument
47 if (WARN_ON(!func)) in sdio_release_host()
50 mmc_release_host(func->card->host); in sdio_release_host()
61 int sdio_enable_func(struct sdio_func *func) in sdio_enable_func() argument
67 if (!func) in sdio_enable_func()
70 pr_debug("SDIO: Enabling device %s...\n", sdio_func_id(func)); in sdio_enable_func()
72 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, &reg); in sdio_enable_func()
[all …]
Dsdio_bus.c43 struct sdio_func *func; \
45 func = dev_to_sdio_func (dev); \
46 return sprintf (buf, format_string, func->field); \
56 struct sdio_func *func = dev_to_sdio_func (dev); in modalias_show() local
59 func->class, func->vendor, func->device); in modalias_show()
72 static const struct sdio_device_id *sdio_match_one(struct sdio_func *func, in sdio_match_one() argument
75 if (id->class != (__u8)SDIO_ANY_ID && id->class != func->class) in sdio_match_one()
77 if (id->vendor != (__u16)SDIO_ANY_ID && id->vendor != func->vendor) in sdio_match_one()
79 if (id->device != (__u16)SDIO_ANY_ID && id->device != func->device) in sdio_match_one()
84 static const struct sdio_device_id *sdio_match_device(struct sdio_func *func, in sdio_match_device() argument
[all …]
Dsdio_cis.c27 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()
111 static int cis_tpl_parse(struct mmc_card *card, struct sdio_func *func, in cis_tpl_parse() argument
127 ret = tpl->parse(card, func, buf, size); in cis_tpl_parse()
[all …]
Dsdio_irq.c40 struct sdio_func *func; in process_sdio_pending_irqs() local
54 func = card->sdio_single_irq; in process_sdio_pending_irqs()
55 if (func && sdio_irq_pending) { in process_sdio_pending_irqs()
56 func->irq_handler(func); in process_sdio_pending_irqs()
81 func = card->sdio_func[i - 1]; in process_sdio_pending_irqs()
82 if (!func) { in process_sdio_pending_irqs()
86 } else if (func->irq_handler) { in process_sdio_pending_irqs()
87 func->irq_handler(func); in process_sdio_pending_irqs()
91 sdio_func_id(func)); in process_sdio_pending_irqs()
264 struct sdio_func *func; in sdio_single_irq_set() local
[all …]
/drivers/gpu/drm/i915/
Di915_params.h30 #define I915_PARAMS_FOR_EACH(func) \ argument
31 func(char *, vbt_firmware); \
32 func(int, modeset); \
33 func(int, panel_ignore_lid); \
34 func(int, semaphores); \
35 func(int, lvds_channel_mode); \
36 func(int, panel_use_ssc); \
37 func(int, vbt_sdvo_panel_type); \
38 func(int, enable_rc6); \
39 func(int, enable_dc); \
[all …]
/drivers/net/wireless/ti/wl1251/
Dsdio.c44 struct sdio_func *func; member
51 return wl_sdio->func; in wl_to_func()
54 static void wl1251_sdio_interrupt(struct sdio_func *func) in wl1251_sdio_interrupt() argument
56 struct wl1251 *wl = sdio_get_drvdata(func); in wl1251_sdio_interrupt()
75 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_read() local
77 sdio_claim_host(func); in wl1251_sdio_read()
78 ret = sdio_memcpy_fromio(func, buf, addr, len); in wl1251_sdio_read()
81 sdio_release_host(func); in wl1251_sdio_read()
88 struct sdio_func *func = wl_to_func(wl); in wl1251_sdio_write() local
90 sdio_claim_host(func); in wl1251_sdio_write()
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dsdio_ops_linux.c20 static bool rtw_sdio_claim_host_needed(struct sdio_func *func) in rtw_sdio_claim_host_needed() argument
22 struct dvobj_priv *dvobj = sdio_get_drvdata(func); in rtw_sdio_claim_host_needed()
44 struct sdio_func *func; in sd_f0_read8() local
56 func = psdio->func; in sd_f0_read8()
57 claim_needed = rtw_sdio_claim_host_needed(func); in sd_f0_read8()
60 sdio_claim_host(func); in sd_f0_read8()
61 v = sdio_f0_readb(func, addr, err); in sd_f0_read8()
63 sdio_release_host(func); in sd_f0_read8()
81 struct sdio_func *func; in _sd_cmd52_read() local
92 func = psdio->func; in _sd_cmd52_read()
[all …]
Dsdio_intf.c36 static int rtw_drv_init(struct sdio_func *func, const struct sdio_device_id *id);
37 static void rtw_dev_remove(struct sdio_func *func);
61 static void sd_sync_int_hdl(struct sdio_func *func) in sd_sync_int_hdl() argument
66 psdpriv = sdio_get_drvdata(func); in sd_sync_int_hdl()
81 struct sdio_func *func; in sdio_alloc_irq() local
85 func = psdio_data->func; in sdio_alloc_irq()
87 sdio_claim_host(func); in sdio_alloc_irq()
89 err = sdio_claim_irq(func, &sd_sync_int_hdl); in sdio_alloc_irq()
101 sdio_release_host(func); in sdio_alloc_irq()
109 struct sdio_func *func; in sdio_free_irq() local
[all …]
/drivers/pinctrl/
Dpinctrl-rza1.c86 u8 func: 4; member
104 u16 func: 4; member
129 { .pin = 0, .func = 1 },
130 { .pin = 1, .func = 1 },
131 { .pin = 2, .func = 1 },
132 { .pin = 3, .func = 1 },
133 { .pin = 4, .func = 1 },
134 { .pin = 5, .func = 1 },
135 { .pin = 6, .func = 1 },
136 { .pin = 7, .func = 1 },
[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->func->chsw_load) in nvkm_gr_chsw_load()
33 return gr->func->chsw_load(gr); in nvkm_gr_chsw_load()
41 if (gr->func->tile) in nvkm_gr_tile()
42 gr->func->tile(gr, region, tile); in nvkm_gr_tile()
48 if (gr->func->units) in nvkm_gr_units()
49 return gr->func->units(gr); in nvkm_gr_units()
56 if (gr->func->tlb_flush) in nvkm_gr_tlb_flush()
57 return gr->func->tlb_flush(gr); in nvkm_gr_tlb_flush()
67 if (gr->func->object_get) { in nvkm_gr_oclass_get()
68 int ret = gr->func->object_get(gr, index, &oclass->base); in nvkm_gr_oclass_get()
[all …]
/drivers/hwmon/pmbus/
Dmax34440.c224 .func[0] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
226 .func[1] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
228 .func[2] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
230 .func[3] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
232 .func[4] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
234 .func[5] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
236 .func[6] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
237 .func[7] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
238 .func[8] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
239 .func[9] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
[all …]
/drivers/net/wireless/broadcom/b43/
Dsdio.c53 static void b43_sdio_interrupt_dispatcher(struct sdio_func *func) in b43_sdio_interrupt_dispatcher() argument
55 struct b43_sdio *sdio = sdio_get_drvdata(func); in b43_sdio_interrupt_dispatcher()
61 sdio_release_host(func); in b43_sdio_interrupt_dispatcher()
63 sdio_claim_host(func); in b43_sdio_interrupt_dispatcher()
70 struct sdio_func *func = bus->host_sdio; in b43_sdio_request_irq() local
71 struct b43_sdio *sdio = sdio_get_drvdata(func); in b43_sdio_request_irq()
76 sdio_claim_host(func); in b43_sdio_request_irq()
77 err = sdio_claim_irq(func, b43_sdio_interrupt_dispatcher); in b43_sdio_request_irq()
78 sdio_release_host(func); in b43_sdio_request_irq()
86 struct sdio_func *func = bus->host_sdio; in b43_sdio_free_irq() local
[all …]
/drivers/pci/hotplug/
Dcpqphp_pci.c84 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_get_bus_and_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_get_bus_and_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_hp_add_bridge(func->pci_dev); in cpqhp_configure_device()
111 child = func->pci_dev->subordinate; in cpqhp_configure_device()
[all …]
/drivers/media/mmc/siano/
Dsmssdio.c82 struct sdio_func *func; member
100 sdio_claim_host(smsdev->func); in smssdio_sendrequest()
103 while (size >= smsdev->func->cur_blksize) { in smssdio_sendrequest()
104 ret = sdio_memcpy_toio(smsdev->func, SMSSDIO_DATA, in smssdio_sendrequest()
105 buffer, smsdev->func->cur_blksize); in smssdio_sendrequest()
109 buffer += smsdev->func->cur_blksize; in smssdio_sendrequest()
110 size -= smsdev->func->cur_blksize; in smssdio_sendrequest()
114 ret = sdio_memcpy_toio(smsdev->func, SMSSDIO_DATA, in smssdio_sendrequest()
119 sdio_release_host(smsdev->func); in smssdio_sendrequest()
128 static void smssdio_interrupt(struct sdio_func *func) in smssdio_interrupt() argument
[all …]
/drivers/staging/wilc1000/
Dwilc_sdio.c45 static void wilc_sdio_interrupt(struct sdio_func *func) in wilc_sdio_interrupt() argument
47 sdio_release_host(func); in wilc_sdio_interrupt()
48 wilc_handle_isr(sdio_get_drvdata(func)); in wilc_sdio_interrupt()
49 sdio_claim_host(func); in wilc_sdio_interrupt()
54 struct sdio_func *func = container_of(wilc->dev, struct sdio_func, dev); in wilc_sdio_cmd52() local
58 sdio_claim_host(func); in wilc_sdio_cmd52()
60 func->num = cmd->function; in wilc_sdio_cmd52()
63 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
64 data = sdio_readb(func, cmd->address, &ret); in wilc_sdio_cmd52()
67 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
[all …]
/drivers/bluetooth/
Dbtsdio.c60 struct sdio_func *func; member
92 err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len); in btsdio_tx_packet()
95 sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL); in btsdio_tx_packet()
114 sdio_claim_host(data->func); in btsdio_work()
125 sdio_release_host(data->func); in btsdio_work()
136 err = sdio_readsb(data->func, hdr, REG_RDAT, 4); in btsdio_rx_packet()
155 err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4); in btsdio_rx_packet()
169 sdio_writeb(data->func, 0x00, REG_PC_RRT, NULL); in btsdio_rx_packet()
174 static void btsdio_interrupt(struct sdio_func *func) in btsdio_interrupt() argument
176 struct btsdio_data *data = sdio_get_drvdata(func); in btsdio_interrupt()
[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()
107 if (likely(object->func->map)) in nvkm_object_map()
108 return object->func->map(object, addr, size); in nvkm_object_map()
115 if (likely(object->func->rd08)) in nvkm_object_rd08()
116 return object->func->rd08(object, addr, data); in nvkm_object_rd08()
[all …]
/drivers/net/wireless/marvell/libertas/
Dif_sdio.c51 static void if_sdio_interrupt(struct sdio_func *func);
114 struct sdio_func *func; member
152 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
154 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
171 rx_unit = sdio_readb(card->func, IF_SDIO_RX_UNIT, &ret); in if_sdio_read_rx_unit()
191 rx_len = sdio_readb(card->func, IF_SDIO_RX_LEN, &ret); in if_sdio_read_rx_len()
275 event = sdio_readb(card->func, IF_SDIO_EVENT, &ret); in if_sdio_handle_event()
309 status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); in if_sdio_wait_status()
346 chunk = sdio_align_size(card->func, size); in if_sdio_card_to_host()
348 ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); in if_sdio_card_to_host()
[all …]
/drivers/net/wireless/ti/wlcore/
Dsdio.c68 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl1271_sdio_set_block_size() local
70 sdio_claim_host(func); in wl1271_sdio_set_block_size()
71 sdio_set_block_size(func, blksz); in wl1271_sdio_set_block_size()
72 sdio_release_host(func); in wl1271_sdio_set_block_size()
80 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_read() local
82 sdio_claim_host(func); in wl12xx_sdio_raw_read()
85 ((u8 *)buf)[0] = sdio_f0_readb(func, addr, &ret); in wl12xx_sdio_raw_read()
90 ret = sdio_readsb(func, buf, addr, len); in wl12xx_sdio_raw_read()
92 ret = sdio_memcpy_fromio(func, buf, addr, len); in wl12xx_sdio_raw_read()
98 sdio_release_host(func); in wl12xx_sdio_raw_read()
[all …]
/drivers/net/wireless/st/cw1200/
Dcw1200_sdio.c49 struct sdio_func *func; member
73 return sdio_memcpy_fromio(self->func, dst, addr, count); in cw1200_sdio_memcpy_fromio()
80 return sdio_memcpy_toio(self->func, addr, (void *)src, count); in cw1200_sdio_memcpy_toio()
85 sdio_claim_host(self->func); in cw1200_sdio_lock()
90 sdio_release_host(self->func); in cw1200_sdio_unlock()
93 static void cw1200_sdio_irq_handler(struct sdio_func *func) in cw1200_sdio_irq_handler() argument
95 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler()
126 cccr = sdio_f0_readb(self->func, SDIO_CCCR_IENx, &ret); in cw1200_request_irq()
134 cccr |= BIT(self->func->num); in cw1200_request_irq()
136 sdio_f0_writeb(self->func, cccr, SDIO_CCCR_IENx, &ret); in cw1200_request_irq()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
Dbase.c31 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive()
37 return gpio->func->sense(gpio, line); in nvkm_gpio_sense()
41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument
43 if (gpio->func->reset) in nvkm_gpio_reset()
44 gpio->func->reset(gpio, func); in nvkm_gpio_reset()
49 struct dcb_gpio_func *func) in nvkm_gpio_find() argument
59 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); in nvkm_gpio_find()
66 *func = (struct dcb_gpio_func) { in nvkm_gpio_find()
67 .func = DCB_GPIO_TVDAC0, in nvkm_gpio_find()
82 struct dcb_gpio_func func; in nvkm_gpio_set() local
[all …]
/drivers/misc/
Dvexpress-syscfg.c56 static int vexpress_syscfg_exec(struct vexpress_syscfg_func *func, in vexpress_syscfg_exec() argument
59 struct vexpress_syscfg *syscfg = func->syscfg; in vexpress_syscfg_exec()
64 if (WARN_ON(index >= func->num_templates)) in vexpress_syscfg_exec()
71 command = func->template[index]; in vexpress_syscfg_exec()
80 func, command, *data); in vexpress_syscfg_exec()
111 dev_dbg(syscfg->dev, "func %p, read data %x\n", func, *data); in vexpress_syscfg_exec()
120 struct vexpress_syscfg_func *func = context; in vexpress_syscfg_read() local
122 return vexpress_syscfg_exec(func, index, false, val); in vexpress_syscfg_read()
128 struct vexpress_syscfg_func *func = context; in vexpress_syscfg_write() local
130 return vexpress_syscfg_exec(func, index, true, &val); in vexpress_syscfg_write()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c90 static void brcmf_sdiod_ib_irqhandler(struct sdio_func *func) in brcmf_sdiod_ib_irqhandler() argument
92 struct brcmf_bus *bus_if = dev_get_drvdata(&func->dev); in brcmf_sdiod_ib_irqhandler()
101 static void brcmf_sdiod_dummy_irqhandler(struct sdio_func *func) in brcmf_sdiod_dummy_irqhandler() argument
121 &sdiodev->func[1]->dev); in brcmf_sdiod_intr_register()
135 sdio_claim_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
161 sdio_release_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
164 sdio_claim_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
165 sdio_claim_irq(sdiodev->func[1], brcmf_sdiod_ib_irqhandler); in brcmf_sdiod_intr_register()
166 sdio_claim_irq(sdiodev->func[2], brcmf_sdiod_dummy_irqhandler); in brcmf_sdiod_intr_register()
167 sdio_release_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dfanpwm.c34 struct dcb_gpio_func func; member
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get()
50 if (card_type <= NV_40 || (fan->func.log[0] & 1)) in nvkm_fanpwm_get()
55 return nvkm_gpio_get(gpio, 0, fan->func.func, fan->func.line) * 100; in nvkm_fanpwm_get()
69 if (therm->func->pwm_clock) in nvkm_fanpwm_set()
70 divs = therm->func->pwm_clock(therm, fan->func.line); in nvkm_fanpwm_set()
75 if (card_type <= NV_40 || (fan->func.log[0] & 1)) in nvkm_fanpwm_set()
78 ret = therm->func->pwm_set(therm, fan->func.line, divs, duty); in nvkm_fanpwm_set()
80 ret = therm->func->pwm_ctrl(therm, fan->func.line, true); in nvkm_fanpwm_set()
85 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) in nvkm_fanpwm_create() argument
[all …]

12345678910>>...36