/Linux-v5.15/drivers/mmc/core/ |
D | sdio_io.c | 27 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, ®); in sdio_enable_func() [all …]
|
D | sdio_bus.c | 35 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 …]
|
D | sdio_irq.c | 64 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 …]
|
D | sdio_cis.c | 25 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 …]
|
/Linux-v5.15/kernel/bpf/ |
D | bpf_lsm.c | 32 #define LSM_HOOK(RET, DEFAULT, NAME, ...) BTF_ID(func, bpf_lsm_##NAME) 71 .func = bpf_bprm_opts_set, 92 .func = bpf_ima_inode_hash, 133 BTF_ID(func, bpf_lsm_bpf) in BTF_ID() argument 134 BTF_ID(func, bpf_lsm_bpf_map) in BTF_ID() 135 BTF_ID(func, bpf_lsm_bpf_map_alloc_security) in BTF_ID() 136 BTF_ID(func, bpf_lsm_bpf_map_free_security) in BTF_ID() 137 BTF_ID(func, bpf_lsm_bpf_prog) in BTF_ID() 138 BTF_ID(func, bpf_lsm_bprm_check_security) in BTF_ID() 139 BTF_ID(func, bpf_lsm_bprm_committed_creds) in BTF_ID() [all …]
|
/Linux-v5.15/arch/x86/include/asm/ |
D | idtentry.h | 29 #define DECLARE_IDTENTRY(vector, func) \ argument 30 asmlinkage void asm_##func(void); \ 31 asmlinkage void xen_asm_##func(void); \ 32 __visible void func(struct pt_regs *regs) 47 #define DEFINE_IDTENTRY(func) \ argument 48 static __always_inline void __##func(struct pt_regs *regs); \ 50 __visible noinstr void func(struct pt_regs *regs) \ 55 __##func (regs); \ 60 static __always_inline void __##func(struct pt_regs *regs) 80 #define DECLARE_IDTENTRY_ERRORCODE(vector, func) \ argument [all …]
|
/Linux-v5.15/drivers/pinctrl/renesas/ |
D | pinctrl-rza1.c | 83 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 …]
|
/Linux-v5.15/drivers/gpu/drm/i915/ |
D | intel_device_info.h | 119 #define DEV_INFO_FOR_EACH_FLAG(func) \ argument 120 func(is_mobile); \ 121 func(is_lp); \ 122 func(require_force_probe); \ 123 func(is_dgfx); \ 125 func(has_64bit_reloc); \ 126 func(gpu_reset_clobbers_display); \ 127 func(has_reset_engine); \ 128 func(has_global_mocs); \ 129 func(has_gt_uc); \ [all …]
|
D | intel_step.h | 20 #define STEP_NAME_LIST(func) \ argument 21 func(A0) \ 22 func(A1) \ 23 func(A2) \ 24 func(B0) \ 25 func(B1) \ 26 func(B2) \ 27 func(C0) \ 28 func(C1) \ 29 func(D0) \ [all …]
|
/Linux-v5.15/drivers/staging/rtl8723bs/os_dep/ |
D | sdio_ops_linux.c | 11 static bool rtw_sdio_claim_host_needed(struct sdio_func *func) in rtw_sdio_claim_host_needed() argument 13 struct dvobj_priv *dvobj = sdio_get_drvdata(func); in rtw_sdio_claim_host_needed() 40 struct sdio_func *func; in _sd_cmd52_read() local 49 func = psdio->func; in _sd_cmd52_read() 52 pdata[i] = sdio_readb(func, addr + i, &err); in _sd_cmd52_read() 71 struct sdio_func *func; in sd_cmd52_read() local 81 func = psdio->func; in sd_cmd52_read() 82 claim_needed = rtw_sdio_claim_host_needed(func); in sd_cmd52_read() 85 sdio_claim_host(func); in sd_cmd52_read() 88 sdio_release_host(func); in sd_cmd52_read() [all …]
|
D | sdio_intf.c | 27 static int rtw_drv_init(struct sdio_func *func, const struct sdio_device_id *id); 28 static void rtw_dev_remove(struct sdio_func *func); 47 static void sd_sync_int_hdl(struct sdio_func *func) in sd_sync_int_hdl() argument 52 psdpriv = sdio_get_drvdata(func); in sd_sync_int_hdl() 65 struct sdio_func *func; in sdio_alloc_irq() local 69 func = psdio_data->func; in sdio_alloc_irq() 71 sdio_claim_host(func); in sdio_alloc_irq() 73 err = sdio_claim_irq(func, &sd_sync_int_hdl); in sdio_alloc_irq() 82 sdio_release_host(func); in sdio_alloc_irq() 90 struct sdio_func *func; in sdio_free_irq() local [all …]
|
/Linux-v5.15/drivers/net/wireless/ti/wl1251/ |
D | sdio.c | 24 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 …]
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | cfg.c | 48 #define func_prev(func) list_prev_entry(func, l) argument 49 #define func_next(func) list_next_entry(func, l) argument 52 #define entry_bb(func) func_first_bb(func) argument 53 #define exit_bb(func) func_last_bb(func) argument 58 #define func_first_bb(func) \ argument 59 list_first_entry(&func->bbs, struct bb_node, l) 60 #define func_last_bb(func) \ argument 61 list_last_entry(&func->bbs, struct bb_node, l) 65 struct func_node *new_func, *func; in cfg_append_func() local 67 list_for_each_entry(func, &cfg->funcs, l) { in cfg_append_func() [all …]
|
/Linux-v5.15/drivers/staging/wfx/ |
D | bus_sdio.c | 28 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 …]
|
/Linux-v5.15/kernel/livepatch/ |
D | patch.c | 28 struct klp_func *func; in klp_find_ops() local 31 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops() 33 if (func->old_func == old_func) in klp_find_ops() 46 struct klp_func *func; in klp_ftrace_handler() local 61 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler() 69 if (WARN_ON_ONCE(!func)) in klp_ftrace_handler() 85 if (unlikely(func->transition)) { in klp_ftrace_handler() 105 func = list_entry_rcu(func->stack_node.next, in klp_ftrace_handler() 108 if (&func->stack_node == &ops->func_stack) in klp_ftrace_handler() 117 if (func->nop) in klp_ftrace_handler() [all …]
|
/Linux-v5.15/Documentation/translations/zh_CN/kernel-hacking/ |
D | hacking.rst | 49 重要的任务和中断抢占。您可以通过调用 :c:func:`schedule()` 进行睡眠。 56 且 :c:func:`in_interrupt()` ( ``include/linux/preempt.h`` )值为非(false)。 60 请注意,如果您禁用了抢占或软中断(见下文),:c:func:`in_interrupt()` 会 101 你可以使用 :c:func:`in_softirq()` 宏( ``include/linux/preempt.h`` )来确认 147 如果您的程序所做的只是读取或写入一些参数,请考虑实现 :c:func:`sysfs()` 接口。 199 :c:func:`printk()` 204 :c:func:`printk()` 将内核消息提供给控制台、dmesg和syslog守护进程。它对于调 219 :c:func:`printk()` 内部使用的1K缓冲区,不捕获溢出。请确保足够使用。 231 :c:func:`copy_to_user()` / :c:func:`copy_from_user()` / :c:func:`get_user()` / :c:func:`put_user()` 238 :c:func:`put_user()` 和 :c:func:`get_user()` 用于从用户空间中获取和向用户空 [all …]
|
/Linux-v5.15/drivers/hwmon/pmbus/ |
D | max34440.c | 252 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 …]
|
/Linux-v5.15/drivers/net/wireless/broadcom/b43/ |
D | sdio.c | 49 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 …]
|
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | nv04.c | 760 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 …]
|
D | base.c | 32 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 …]
|
/Linux-v5.15/drivers/media/mmc/siano/ |
D | smssdio.c | 77 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 …]
|
/Linux-v5.15/tools/perf/tests/ |
D | builtin-test.c | 35 .func = NULL, 42 .func = test__vmlinux_matches_kallsyms, 46 .func = test__openat_syscall_event, 50 .func = test__openat_syscall_event_on_all_cpus, 54 .func = test__basic_mmap, 58 .func = test__mem, 62 .func = test__parse_events, 66 .func = test__expr, 70 .func = test__PERF_RECORD, 74 .func = test__pmu, [all …]
|
/Linux-v5.15/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 70 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 …]
|
/Linux-v5.15/drivers/bluetooth/ |
D | btsdio.c | 45 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 …]
|
/Linux-v5.15/include/linux/mmc/ |
D | sdio_func.h | 127 extern void sdio_claim_host(struct sdio_func *func); 128 extern void sdio_release_host(struct sdio_func *func); 130 extern int sdio_enable_func(struct sdio_func *func); 131 extern int sdio_disable_func(struct sdio_func *func); 133 extern int sdio_set_block_size(struct sdio_func *func, unsigned blksz); 135 extern int sdio_claim_irq(struct sdio_func *func, sdio_irq_handler_t *handler); 136 extern int sdio_release_irq(struct sdio_func *func); 138 extern unsigned int sdio_align_size(struct sdio_func *func, unsigned int sz); 140 extern u8 sdio_readb(struct sdio_func *func, unsigned int addr, int *err_ret); 141 extern u16 sdio_readw(struct sdio_func *func, unsigned int addr, int *err_ret); [all …]
|