Home
last modified time | relevance | path

Searched refs:func (Results 1 – 200 of 1063) sorted by relevance

123456

/linux-4.1.27/drivers/mmc/core/
Dsdio_io.c27 void sdio_claim_host(struct sdio_func *func) in sdio_claim_host() argument
29 BUG_ON(!func); in sdio_claim_host()
30 BUG_ON(!func->card); 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 BUG_ON(!func); in sdio_release_host()
46 BUG_ON(!func->card); 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 BUG_ON(!func); in sdio_enable_func()
[all …]
Dsdio_bus.c38 struct sdio_func *func; \
40 func = dev_to_sdio_func (dev); \
41 return sprintf (buf, format_string, func->field); \
51 struct sdio_func *func = dev_to_sdio_func (dev); in modalias_show() local
54 func->class, func->vendor, func->device); in modalias_show()
67 static const struct sdio_device_id *sdio_match_one(struct sdio_func *func, in sdio_match_one() argument
70 if (id->class != (__u8)SDIO_ANY_ID && id->class != func->class) in sdio_match_one()
72 if (id->vendor != (__u16)SDIO_ANY_ID && id->vendor != func->vendor) in sdio_match_one()
74 if (id->device != (__u16)SDIO_ANY_ID && id->device != func->device) in sdio_match_one()
79 static const struct sdio_device_id *sdio_match_device(struct sdio_func *func, in sdio_match_device() argument
[all …]
Dsdio_irq.c36 struct sdio_func *func; in process_sdio_pending_irqs() local
43 func = card->sdio_single_irq; in process_sdio_pending_irqs()
44 if (func && host->sdio_irq_pending) { in process_sdio_pending_irqs()
45 func->irq_handler(func); in process_sdio_pending_irqs()
70 func = card->sdio_func[i - 1]; in process_sdio_pending_irqs()
71 if (!func) { in process_sdio_pending_irqs()
75 } else if (func->irq_handler) { in process_sdio_pending_irqs()
76 func->irq_handler(func); in process_sdio_pending_irqs()
80 sdio_func_id(func)); in process_sdio_pending_irqs()
244 struct sdio_func *func; in sdio_single_irq_set() local
[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.c31 static int sdio_read_fbr(struct sdio_func *func) in sdio_read_fbr() argument
36 if (mmc_card_nonstd_func_interface(func->card)) { in sdio_read_fbr()
37 func->class = SDIO_CLASS_NONE; in sdio_read_fbr()
41 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
42 SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF, 0, &data); in sdio_read_fbr()
49 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
50 SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF_EXT, 0, &data); in sdio_read_fbr()
55 func->class = data; in sdio_read_fbr()
64 struct sdio_func *func; in sdio_init_func() local
68 func = sdio_alloc_func(card); in sdio_init_func()
[all …]
Dsdio_cis.h20 int sdio_read_func_cis(struct sdio_func *func);
21 void sdio_free_func_cis(struct sdio_func *func);
Dsdio_bus.h15 int sdio_add_func(struct sdio_func *func);
16 void sdio_remove_func(struct sdio_func *func);
/linux-4.1.27/arch/powerpc/kernel/
Dsystbl.S20 #define SYSCALL(func) .llong DOTSYM(sys_##func),DOTSYM(sys_##func) argument
21 #define COMPAT_SYS(func) .llong DOTSYM(sys_##func),DOTSYM(compat_sys_##func) argument
22 #define PPC_SYS(func) .llong DOTSYM(ppc_##func),DOTSYM(ppc_##func) argument
23 #define OLDSYS(func) .llong DOTSYM(sys_ni_syscall),DOTSYM(sys_ni_syscall) argument
24 #define SYS32ONLY(func) .llong DOTSYM(sys_ni_syscall),DOTSYM(compat_sys_##func) argument
25 #define PPC64ONLY(func) .llong DOTSYM(ppc_##func),DOTSYM(sys_ni_syscall) argument
28 #define SYSCALL(func) .long sys_##func argument
29 #define COMPAT_SYS(func) .long sys_##func argument
30 #define PPC_SYS(func) .long ppc_##func argument
31 #define OLDSYS(func) .long sys_##func argument
[all …]
Dsystbl_chk.c18 #define SYSCALL(func) __NR_##func argument
19 #define COMPAT_SYS(func) __NR_##func argument
20 #define PPC_SYS(func) __NR_##func argument
22 #define OLDSYS(func) -1 argument
23 #define SYS32ONLY(func) -1 argument
24 #define PPC64ONLY(func) __NR_##func argument
26 #define OLDSYS(func) __NR_old##func argument
27 #define SYS32ONLY(func) __NR_##func argument
28 #define PPC64ONLY(func) -1 argument
32 #define SYSCALL_SPU(func) SYSCALL(func) argument
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/tools/perf/tests/
Dbuiltin-test.c19 int (*func)(void); member
23 .func = test__vmlinux_matches_kallsyms,
27 .func = test__open_syscall_event,
31 .func = test__open_syscall_event_on_all_cpus,
35 .func = test__basic_mmap,
39 .func = test__parse_events,
44 .func = test__rdpmc,
49 .func = test__PERF_RECORD,
53 .func = test__pmu,
57 .func = test__dso_data,
[all …]
/linux-4.1.27/drivers/net/wireless/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 …]
/linux-4.1.27/drivers/hwmon/pmbus/
Dmax34440.c223 .func[0] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
225 .func[1] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
227 .func[2] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
229 .func[3] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
231 .func[4] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
233 .func[5] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
235 .func[6] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
236 .func[7] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
237 .func[8] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
238 .func[9] = PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP,
[all …]
Dpmbus.c40 info->func[0] |= PMBUS_HAVE_VIN; in pmbus_find_sensor_groups()
42 info->func[0] |= PMBUS_HAVE_VCAP; in pmbus_find_sensor_groups()
44 info->func[0] |= PMBUS_HAVE_IIN; in pmbus_find_sensor_groups()
46 info->func[0] |= PMBUS_HAVE_PIN; in pmbus_find_sensor_groups()
47 if (info->func[0] in pmbus_find_sensor_groups()
49 info->func[0] |= PMBUS_HAVE_STATUS_INPUT; in pmbus_find_sensor_groups()
52 info->func[0] |= PMBUS_HAVE_FAN12; in pmbus_find_sensor_groups()
54 info->func[0] |= PMBUS_HAVE_STATUS_FAN12; in pmbus_find_sensor_groups()
58 info->func[0] |= PMBUS_HAVE_FAN34; in pmbus_find_sensor_groups()
60 info->func[0] |= PMBUS_HAVE_STATUS_FAN34; in pmbus_find_sensor_groups()
[all …]
Dmax16064.c91 .func[0] = PMBUS_HAVE_VOUT | PMBUS_HAVE_TEMP
93 .func[1] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT,
94 .func[2] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT,
95 .func[3] = PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT,
Ducd9000.c177 info->func[0] = PMBUS_HAVE_TEMP; in ucd9000_probe()
195 info->func[page] |= PMBUS_HAVE_VOUT in ucd9000_probe()
199 info->func[page] |= PMBUS_HAVE_TEMP2 in ucd9000_probe()
203 info->func[page] |= PMBUS_HAVE_IOUT in ucd9000_probe()
225 info->func[0] |= PMBUS_HAVE_FAN12 | PMBUS_HAVE_STATUS_FAN12 in ucd9000_probe()
Dadm1275.c296 info->func[0] = PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT; in adm1275_probe()
348 info->func[0] |= PMBUS_HAVE_VIN | PMBUS_HAVE_PIN in adm1275_probe()
351 info->func[0] |= in adm1275_probe()
356 info->func[0] |= in adm1275_probe()
359 info->func[0] |= in adm1275_probe()
364 info->func[0] |= PMBUS_HAVE_VIN | PMBUS_HAVE_PIN in adm1275_probe()
367 info->func[0] |= in adm1275_probe()
/linux-4.1.27/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 …]
/linux-4.1.27/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 …]
Dcpqphp_ctrl.c42 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func,
44 static int configure_new_function(struct controller *ctrl, struct pci_func *func,
72 struct pci_func *func; in handle_switch_change() local
86 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()
147 struct pci_func *func; in handle_presence_change() local
165 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()
198 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
206 if (func->devices[i]) { in ibmphp_configure_card()
227 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
268 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
279 if (func->devices[i]) { in ibmphp_configure_card()
302 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
[all …]
Dacpiphp_glue.c140 if (!context || context->func.parent->is_going_away) { in acpiphp_grab_context()
144 get_bridge(context->func.parent); in acpiphp_grab_context()
152 put_bridge(context->func.parent); in acpiphp_let_context_go()
160 struct acpiphp_func *func, *tmp; in free_bridge() local
167 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) in free_bridge()
168 acpiphp_put_context(func_to_context(func)); in free_bridge()
177 put_bridge(context->func.parent); in free_bridge()
204 bus = context->func.slot->bus; in acpiphp_post_dock_fixup()
296 newfunc = &context->func; in acpiphp_add_context()
375 struct acpiphp_func *func; in cleanup_bridge() local
[all …]
Dibmphp_core.c675 if (slot_cur->func) { in ibm_slot_find()
676 func_cur = slot_cur->func; in ibm_slot_find()
709 static void ibm_unconfigure_device(struct pci_func *func) in ibm_unconfigure_device() argument
716 func->device, func->function); in ibm_unconfigure_device()
717 debug("func->device << 3 | 0x0 = %x\n", func->device << 3 | 0x0); in ibm_unconfigure_device()
722 temp = pci_get_bus_and_slot(func->busno, (func->device << 3) | j); in ibm_unconfigure_device()
729 pci_dev_put(func->dev); in ibm_unconfigure_device()
783 static int ibm_configure_device(struct pci_func *func) in ibm_configure_device() argument
792 if (!(bus_structure_fixup(func->busno))) in ibm_configure_device()
794 if (func->dev == NULL) in ibm_configure_device()
[all …]
Dacpiphp.h120 struct acpiphp_func func; member
130 static inline struct acpiphp_context *func_to_context(struct acpiphp_func *func) in func_to_context() argument
132 return container_of(func, struct acpiphp_context, func); in func_to_context()
135 static inline struct acpi_device *func_to_acpi_device(struct acpiphp_func *func) in func_to_acpi_device() argument
137 return func_to_context(func)->hp.self; in func_to_acpi_device()
140 static inline acpi_handle func_to_handle(struct acpiphp_func *func) in func_to_handle() argument
142 return func_to_acpi_device(func)->handle; in func_to_handle()
/linux-4.1.27/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()
92 ((u8 *)buf)[0] = sdio_f0_readb(func, addr, &ret); in wl12xx_sdio_raw_read()
97 ret = sdio_readsb(func, buf, addr, len); in wl12xx_sdio_raw_read()
99 ret = sdio_memcpy_fromio(func, buf, addr, len); in wl12xx_sdio_raw_read()
105 sdio_release_host(func); in wl12xx_sdio_raw_read()
[all …]
/linux-4.1.27/arch/x86/pci/
Dearly.c10 u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config() argument
13 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config()
18 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte() argument
21 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_byte()
26 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16() argument
29 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_16()
34 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config() argument
37 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in write_pci_config()
41 void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) in write_pci_config_byte() argument
43 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in write_pci_config_byte()
[all …]
Dbroadcom_bus.c22 static void __init cnb20le_res(u8 bus, u8 slot, u8 func) in cnb20le_res() argument
31 fbus = read_pci_config_byte(bus, slot, func, 0x44); in cnb20le_res()
32 lbus = read_pci_config_byte(bus, slot, func, 0x45); in cnb20le_res()
50 word1 = read_pci_config_16(bus, slot, func, 0xc0); in cnb20le_res()
51 word2 = read_pci_config_16(bus, slot, func, 0xc2); in cnb20le_res()
60 word1 = read_pci_config_16(bus, slot, func, 0xc4); in cnb20le_res()
61 word2 = read_pci_config_16(bus, slot, func, 0xc6); in cnb20le_res()
70 word1 = read_pci_config_16(bus, slot, func, 0xd0); in cnb20le_res()
71 word2 = read_pci_config_16(bus, slot, func, 0xd2); in cnb20le_res()
/linux-4.1.27/drivers/bluetooth/
Dbtsdio.c59 struct sdio_func *func; member
91 err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len); in btsdio_tx_packet()
94 sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL); in btsdio_tx_packet()
113 sdio_claim_host(data->func); in btsdio_work()
124 sdio_release_host(data->func); in btsdio_work()
135 err = sdio_readsb(data->func, hdr, REG_RDAT, 4); in btsdio_rx_packet()
153 err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4); in btsdio_rx_packet()
167 sdio_writeb(data->func, 0x00, REG_PC_RRT, NULL); in btsdio_rx_packet()
172 static void btsdio_interrupt(struct sdio_func *func) in btsdio_interrupt() argument
174 struct btsdio_data *data = sdio_get_drvdata(func); in btsdio_interrupt()
[all …]
Dbtmrvl_sdio.c224 reg = sdio_readb(card->func, card->reg->card_rx_unit, &ret); in btmrvl_sdio_get_rx_unit()
238 fws0 = sdio_readb(card->func, card->reg->card_fw_status0, &ret); in btmrvl_sdio_read_fw_status()
242 fws1 = sdio_readb(card->func, card->reg->card_fw_status1, &ret); in btmrvl_sdio_read_fw_status()
256 reg = sdio_readb(card->func, card->reg->card_rx_len, &ret); in btmrvl_sdio_read_rx_len()
268 sdio_writeb(card->func, mask, card->reg->host_int_mask, &ret); in btmrvl_sdio_enable_host_int_mask()
283 host_int_mask = sdio_readb(card->func, card->reg->host_int_mask, &ret); in btmrvl_sdio_disable_host_int_mask()
289 sdio_writeb(card->func, host_int_mask, card->reg->host_int_mask, &ret); in btmrvl_sdio_disable_host_int_mask()
305 status = sdio_readb(card->func, card->reg->card_status, &ret); in btmrvl_sdio_poll_card_status()
330 sdio_claim_host(card->func); in btmrvl_sdio_verify_fw_download()
332 sdio_release_host(card->func); in btmrvl_sdio_verify_fw_download()
[all …]
/linux-4.1.27/arch/x86/kernel/
Dearly-quirks.c25 static void __init fix_hypertransport_config(int num, int slot, int func) in fix_hypertransport_config() argument
34 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config()
44 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config()
51 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument
74 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument
103 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument
108 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev()
110 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev()
112 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev()
114 write_pci_config(num, slot, func, 0x70, d); in ati_ixp4x0_rev()
[all …]
Daperture_64.c95 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap() argument
100 if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & in find_cap()
104 pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); in find_cap()
109 id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
114 pos = read_pci_config_byte(bus, slot, func, in find_cap()
121 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument
130 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp()
131 apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); in read_agp()
134 bus, slot, func); in read_agp()
150 aper_low = read_pci_config(bus, slot, func, 0x10); in read_agp()
[all …]
Dearly_printk.c219 u8 bus, slot, func; in early_pci_serial_init() local
244 func = (u8)simple_strtoul(s, &e, 16); in early_pci_serial_init()
254 cmdreg = read_pci_config(bus, slot, func, PCI_COMMAND); in early_pci_serial_init()
255 classcode = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); in early_pci_serial_init()
256 bar0 = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); in early_pci_serial_init()
274 write_pci_config(bus, slot, func, PCI_COMMAND, in early_pci_serial_init()
283 write_pci_config(bus, slot, func, PCI_COMMAND, in early_pci_serial_init()
/linux-4.1.27/arch/powerpc/math-emu/
Dmath.c232 int (*func)(void *, void *, void *, void *); in do_mathemu() local
240 case LFS: func = lfs; type = D; break; in do_mathemu()
241 case LFSU: func = lfs; type = DU; break; in do_mathemu()
242 case LFD: func = lfd; type = D; break; in do_mathemu()
243 case LFDU: func = lfd; type = DU; break; in do_mathemu()
244 case STFS: func = stfs; type = D; break; in do_mathemu()
245 case STFSU: func = stfs; type = DU; break; in do_mathemu()
246 case STFD: func = stfd; type = D; break; in do_mathemu()
247 case STFDU: func = stfd; type = DU; break; in do_mathemu()
251 case LFSX: func = lfs; type = XE; break; in do_mathemu()
[all …]
Dmath_efp.c185 unsigned long type, func, fc, fa, fb, src, speinsn; in do_spe_mathemu() local
197 func = speinsn & 0x7ff; in do_spe_mathemu()
236 switch (func) { in do_spe_mathemu()
283 SB_e += (func == EFSCTSF ? 31 : 32); in do_spe_mathemu()
285 (func == EFSCTSF)); in do_spe_mathemu()
308 ((func & 0x3) != 0)); in do_spe_mathemu()
319 ((func & 0x3) != 0)); in do_spe_mathemu()
366 switch (func) { in do_spe_mathemu()
413 DB_e += (func == EFDCTSF ? 31 : 32); in do_spe_mathemu()
415 (func == EFDCTSF)); in do_spe_mathemu()
[all …]
/linux-4.1.27/drivers/net/wireless/cw1200/
Dcw1200_sdio.c48 struct sdio_func *func; member
72 return sdio_memcpy_fromio(self->func, dst, addr, count); in cw1200_sdio_memcpy_fromio()
79 return sdio_memcpy_toio(self->func, addr, (void *)src, count); in cw1200_sdio_memcpy_toio()
84 sdio_claim_host(self->func); in cw1200_sdio_lock()
89 sdio_release_host(self->func); in cw1200_sdio_unlock()
92 static void cw1200_sdio_irq_handler(struct sdio_func *func) in cw1200_sdio_irq_handler() argument
94 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler()
125 cccr = sdio_f0_readb(self->func, SDIO_CCCR_IENx, &ret); in cw1200_request_irq()
133 cccr |= BIT(self->func->num); in cw1200_request_irq()
135 sdio_f0_writeb(self->func, cccr, SDIO_CCCR_IENx, &ret); in cw1200_request_irq()
[all …]
Dcw1200_spi.c39 struct spi_device *func; member
92 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio()
99 ret = spi_sync(self->func, &m); in cw1200_spi_memcpy_fromio()
115 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio()
157 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio()
179 rval = spi_sync(self->func, &m); in cw1200_spi_memcpy_toio()
187 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio()
255 ret = request_threaded_irq(self->func->irq, NULL, in cw1200_spi_irq_subscribe()
262 ret = enable_irq_wake(self->func->irq); in cw1200_spi_irq_subscribe()
269 free_irq(self->func->irq, self); in cw1200_spi_irq_subscribe()
[all …]
/linux-4.1.27/include/linux/mmc/
Dsdio_func.h117 extern void sdio_claim_host(struct sdio_func *func);
118 extern void sdio_release_host(struct sdio_func *func);
120 extern int sdio_enable_func(struct sdio_func *func);
121 extern int sdio_disable_func(struct sdio_func *func);
123 extern int sdio_set_block_size(struct sdio_func *func, unsigned blksz);
125 extern int sdio_claim_irq(struct sdio_func *func, sdio_irq_handler_t *handler);
126 extern int sdio_release_irq(struct sdio_func *func);
128 extern unsigned int sdio_align_size(struct sdio_func *func, unsigned int sz);
130 extern u8 sdio_readb(struct sdio_func *func, unsigned int addr, int *err_ret);
131 extern u16 sdio_readw(struct sdio_func *func, unsigned int addr, int *err_ret);
[all …]
/linux-4.1.27/drivers/net/wireless/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()
287 event = sdio_readb(card->func, IF_SDIO_EVENT, &ret); in if_sdio_handle_event()
323 status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); in if_sdio_wait_status()
362 chunk = sdio_align_size(card->func, size); in if_sdio_card_to_host()
364 ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); in if_sdio_card_to_host()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/kernel/livepatch/
Dcore.c67 struct klp_func *func; in klp_find_ops() local
70 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops()
72 if (func->old_addr == old_addr) in klp_find_ops()
240 struct klp_func *func) in klp_find_verify_func_addr() argument
246 func->old_addr = 0; in klp_find_verify_func_addr()
249 if (!func->old_addr || klp_is_module(obj)) in klp_find_verify_func_addr()
250 ret = klp_find_object_symbol(obj->name, func->old_name, in klp_find_verify_func_addr()
251 &func->old_addr); in klp_find_verify_func_addr()
253 ret = klp_verify_vmlinux_symbol(func->old_name, in klp_find_verify_func_addr()
254 func->old_addr); in klp_find_verify_func_addr()
[all …]
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dpfunc_core.c72 struct pmf_function *func; member
130 return handlers->name(cmd->func, cmd->instdata, \
578 static int pmf_parse_one(struct pmf_function *func, in pmf_parse_one() argument
586 cmd.cmdptr = func->data; in pmf_parse_one()
587 cmd.cmdend = func->data + func->length; in pmf_parse_one()
588 cmd.func = func; in pmf_parse_one()
594 func->name, func->length, in pmf_parse_one()
630 func->length = cmd.cmdptr - func->data; in pmf_parse_one()
640 struct pmf_function *func = NULL; in pmf_add_function_prop() local
646 func = kzalloc(sizeof(struct pmf_function), GFP_KERNEL); in pmf_add_function_prop()
[all …]
Dpfunc_base.c26 static int macio_do_gpio_irq_enable(struct pmf_function *func) in macio_do_gpio_irq_enable() argument
28 unsigned int irq = irq_of_parse_and_map(func->node, 0); in macio_do_gpio_irq_enable()
31 return request_irq(irq, macio_gpio_irq, 0, func->node->name, func); in macio_do_gpio_irq_enable()
34 static int macio_do_gpio_irq_disable(struct pmf_function *func) in macio_do_gpio_irq_disable() argument
36 unsigned int irq = irq_of_parse_and_map(func->node, 0); in macio_do_gpio_irq_disable()
39 free_irq(irq, func); in macio_do_gpio_irq_disable()
45 u8 __iomem *addr = (u8 __iomem *)func->driver_data; in macio_do_gpio_write()
58 tmp, func->node->full_name, addr); in macio_do_gpio_write()
67 u8 __iomem *addr = (u8 __iomem *)func->driver_data; in macio_do_gpio_read()
146 struct macio_chip *macio = func->driver_data; in macio_do_write_reg32()
[all …]
/linux-4.1.27/drivers/staging/gdm72xx/
Dsdio_boot.c42 static int ack_ready(struct sdio_func *func) in ack_ready() argument
49 val = sdio_readb(func, 0x13, &ret); in ack_ready()
58 static int download_image(struct sdio_func *func, const char *img_name) in download_image() argument
66 ret = request_firmware(&firm, img_name, &func->dev); in download_image()
68 dev_err(&func->dev, in download_image()
100 ret = sdio_memcpy_toio(func, 0, buf, len + TYPE_A_HEADER_SIZE); in download_image()
102 dev_err(&func->dev, in download_image()
110 if (!ack_ready(func)) { in download_image()
112 dev_err(&func->dev, "Ack is not ready.\n"); in download_image()
115 ret = sdio_memcpy_fromio(func, buf, 0, TYPE_A_LOOKAHEAD_SIZE); in download_image()
[all …]
Dgdm_sdio.c213 static void send_sdio_pkt(struct sdio_func *func, u8 *data, int len) in send_sdio_pkt() argument
217 sdio_claim_host(func); in send_sdio_pkt()
219 blocks = len / func->cur_blksize; in send_sdio_pkt()
220 n = blocks * func->cur_blksize; in send_sdio_pkt()
222 ret = sdio_memcpy_toio(func, 0, data, n); in send_sdio_pkt()
225 dev_err(&func->dev, in send_sdio_pkt()
235 ret = sdio_memcpy_toio(func, 0, data + n, remain); in send_sdio_pkt()
238 dev_err(&func->dev, in send_sdio_pkt()
245 sdio_release_host(func); in send_sdio_pkt()
248 static void send_sdu(struct sdio_func *func, struct tx_cxt *tx) in send_sdu() argument
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dbcmsdh.c94 static void brcmf_sdiod_ib_irqhandler(struct sdio_func *func) in brcmf_sdiod_ib_irqhandler() argument
96 struct brcmf_bus *bus_if = dev_get_drvdata(&func->dev); in brcmf_sdiod_ib_irqhandler()
105 static void brcmf_sdiod_dummy_irqhandler(struct sdio_func *func) in brcmf_sdiod_dummy_irqhandler() argument
123 &sdiodev->func[1]->dev); in brcmf_sdiod_intr_register()
141 sdio_claim_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
167 sdio_release_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
170 sdio_claim_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
171 sdio_claim_irq(sdiodev->func[1], brcmf_sdiod_ib_irqhandler); in brcmf_sdiod_intr_register()
172 sdio_claim_irq(sdiodev->func[2], brcmf_sdiod_dummy_irqhandler); in brcmf_sdiod_intr_register()
173 sdio_release_host(sdiodev->func[1]); in brcmf_sdiod_intr_register()
[all …]
Dtracepoint.h43 TP_PROTO(const char *func, struct va_format *vaf),
44 TP_ARGS(func, vaf),
46 __string(func, func)
50 __assign_str(func, func);
55 TP_printk("%s: %s", __get_str(func), __get_str(msg))
59 TP_PROTO(u32 level, const char *func, struct va_format *vaf),
60 TP_ARGS(level, func, vaf),
63 __string(func, func)
68 __assign_str(func, func);
73 TP_printk("%s: %s", __get_str(func), __get_str(msg))
Dtracepoint.c23 void __brcmf_err(const char *func, const char *fmt, ...) in __brcmf_err() argument
32 pr_err("%s: %pV", func, &vaf); in __brcmf_err()
33 trace_brcmf_err(func, &vaf); in __brcmf_err()
Dsdio.c1079 sdio_claim_host(bus->sdiodev->func[1]); in brcmf_sdio_readshared()
1113 sdio_release_host(bus->sdiodev->func[1]); in brcmf_sdio_readshared()
1135 sdio_release_host(bus->sdiodev->func[1]); in brcmf_sdio_readshared()
1644 sdio_claim_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
1647 sdio_release_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
1655 sdio_claim_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
1664 sdio_release_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
1674 sdio_claim_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
1677 sdio_release_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
1693 sdio_claim_host(bus->sdiodev->func[1]); in brcmf_sdio_rxglom()
[all …]
/linux-4.1.27/include/linux/
Dsmp.h19 smp_call_func_t func; member
27 int smp_call_function_single(int cpuid, smp_call_func_t func, void *info,
33 int on_each_cpu(smp_call_func_t func, void *info, int wait);
39 void on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func,
48 smp_call_func_t func, void *info, bool wait,
95 int smp_call_function(smp_call_func_t func, void *info, int wait);
97 smp_call_func_t func, void *info, bool wait);
100 smp_call_func_t func, void *info, int wait);
131 static inline int up_smp_call_function(smp_call_func_t func, void *info) in up_smp_call_function() argument
135 #define smp_call_function(func, info, wait) \ argument
[all …]
Dirq_work.h23 void (*func)(struct irq_work *); member
27 void init_irq_work(struct irq_work *work, void (*func)(struct irq_work *)) in init_irq_work()
30 work->func = func; in init_irq_work()
33 #define DEFINE_IRQ_WORK(name, _f) struct irq_work name = { .func = (_f), }
Dcacheinfo.h80 #define DEFINE_SMP_CALL_CACHE_FUNCTION(func) \ argument
81 static inline void _##func(void *ret) \
84 *(int *)ret = __##func(cpu); \
87 int func(unsigned int cpu) \
90 smp_call_function_single(cpu, _##func, &ret, true); \
Dtask_work.h10 init_task_work(struct callback_head *twork, task_work_func_t func) in init_task_work() argument
12 twork->func = func; in init_task_work()
Dftrace.h160 ftrace_func_t func; member
276 int (*func)(struct ftrace_hash *hash, member
277 char *func, char *cmd,
293 void (*func)(unsigned long ip, member
450 extern int ftrace_update_ftrace_func(ftrace_func_t func);
715 unsigned long func; /* Current function */ member
723 unsigned long func; /* Current function */ member
747 unsigned long func; member
761 ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth,
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_api.c107 hw->func = &pch_gbe_ops; in pch_gbe_plat_init_function_pointers()
135 if (!hw->func->get_bus_info) { in pch_gbe_hal_get_bus_info()
141 hw->func->get_bus_info(hw); in pch_gbe_hal_get_bus_info()
153 if (!hw->func->init_hw) { in pch_gbe_hal_init_hw()
159 return hw->func->init_hw(hw); in pch_gbe_hal_init_hw()
174 if (!hw->func->read_phy_reg) in pch_gbe_hal_read_phy_reg()
176 return hw->func->read_phy_reg(hw, offset, data); in pch_gbe_hal_read_phy_reg()
191 if (!hw->func->write_phy_reg) in pch_gbe_hal_write_phy_reg()
193 return hw->func->write_phy_reg(hw, offset, data); in pch_gbe_hal_write_phy_reg()
202 if (!hw->func->reset_phy) { in pch_gbe_hal_phy_hw_reset()
[all …]
/linux-4.1.27/arch/s390/crypto/
Dcrypt_s390.h167 static inline int crypt_s390_km(long func, void *param, in crypt_s390_km() argument
170 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_km()
187 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_km()
203 static inline int crypt_s390_kmc(long func, void *param, in crypt_s390_kmc() argument
206 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_kmc()
223 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_kmc()
239 static inline int crypt_s390_kimd(long func, void *param, in crypt_s390_kimd() argument
242 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_kimd()
258 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_kimd()
273 static inline int crypt_s390_klmd(long func, void *param, in crypt_s390_klmd() argument
[all …]
/linux-4.1.27/arch/powerpc/platforms/cell/
Dspu_callbacks.c37 #define SYSCALL(func) sys_ni_syscall, argument
38 #define COMPAT_SYS(func) sys_ni_syscall, argument
39 #define PPC_SYS(func) sys_ni_syscall, argument
40 #define OLDSYS(func) sys_ni_syscall, argument
41 #define SYS32ONLY(func) sys_ni_syscall, argument
42 #define PPC64ONLY(func) sys_ni_syscall, argument
45 #define SYSCALL_SPU(func) sys_##func, argument
46 #define COMPAT_SYS_SPU(func) sys_##func, argument
47 #define PPC_SYS_SPU(func) ppc_##func, argument
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dfanpwm.c35 struct dcb_gpio_func func; member
48 ret = therm->pwm_get(therm, priv->func.line, &divs, &duty); in nvkm_fanpwm_get()
51 if (card_type <= NV_40 || (priv->func.log[0] & 1)) in nvkm_fanpwm_get()
56 return gpio->get(gpio, 0, priv->func.func, priv->func.line) * 100; in nvkm_fanpwm_get()
72 divs = therm->pwm_clock(therm, priv->func.line); in nvkm_fanpwm_set()
77 if (card_type <= NV_40 || (priv->func.log[0] & 1)) in nvkm_fanpwm_set()
80 ret = therm->pwm_set(therm, priv->func.line, divs, duty); in nvkm_fanpwm_set()
82 ret = therm->pwm_ctrl(therm, priv->func.line, true); in nvkm_fanpwm_set()
87 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) in nvkm_fanpwm_create() argument
98 if (!nvkm_boolopt(device->cfgopt, "NvFanPWM", func->param) || in nvkm_fanpwm_create()
[all …]
Dfantog.c35 struct dcb_gpio_func func; member
86 therm->pwm_ctrl(therm, priv->func.line, false); in nvkm_fantog_set()
92 nvkm_fantog_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) in nvkm_fantog_create() argument
99 ret = therm->pwm_ctrl(therm, func->line, false); in nvkm_fantog_create()
115 priv->func = *func; in nvkm_fantog_create()
Dfan.c134 if (priv->fan->tach.func == DCB_GPIO_UNUSED) in nvkm_therm_fan_sense()
142 prev = gpio->get(gpio, 0, priv->fan->tach.func, priv->fan->tach.line); in nvkm_therm_fan_sense()
147 cur = gpio->get(gpio, 0, priv->fan->tach.func, priv->fan->tach.line); in nvkm_therm_fan_sense()
233 struct dcb_gpio_func func; in nvkm_therm_fan_ctor() local
237 ret = gpio->find(gpio, 0, DCB_GPIO_FAN, 0xff, &func); in nvkm_therm_fan_ctor()
240 if (func.line != 16 && func.log[0] & DCB_GPIO_LOG_DIR_IN) { in nvkm_therm_fan_ctor()
244 ret = nvkm_fanpwm_create(therm, &func); in nvkm_therm_fan_ctor()
246 ret = nvkm_fantog_create(therm, &func); in nvkm_therm_fan_ctor()
265 priv->fan->tach.func = DCB_GPIO_UNUSED; in nvkm_therm_fan_ctor()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dsdio.c34 struct sdio_func *func; member
107 static inline void ath6kl_sdio_set_cmd53_arg(u32 *arg, u8 rw, u8 func, in ath6kl_sdio_set_cmd53_arg() argument
112 ((func & 0x7) << 28) | in ath6kl_sdio_set_cmd53_arg()
123 const u8 func = 0; in ath6kl_sdio_set_cmd52_arg() local
126 ((func & 0x7) << 28) | in ath6kl_sdio_set_cmd52_arg()
148 static int ath6kl_sdio_io(struct sdio_func *func, u32 request, u32 addr, in ath6kl_sdio_io() argument
153 sdio_claim_host(func); in ath6kl_sdio_io()
166 ret = sdio_writesb(func, addr, buf, len); in ath6kl_sdio_io()
168 ret = sdio_memcpy_toio(func, addr, buf, len); in ath6kl_sdio_io()
171 ret = sdio_readsb(func, buf, addr, len); in ath6kl_sdio_io()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Dsmp_32.h59 void (*cross_call)(smpfunc_t func, cpumask_t mask, unsigned long arg1,
68 static inline void xc0(smpfunc_t func) in xc0() argument
70 sparc32_ipi_ops->cross_call(func, *cpu_online_mask, 0, 0, 0, 0); in xc0()
73 static inline void xc1(smpfunc_t func, unsigned long arg1) in xc1() argument
75 sparc32_ipi_ops->cross_call(func, *cpu_online_mask, arg1, 0, 0, 0); in xc1()
77 static inline void xc2(smpfunc_t func, unsigned long arg1, unsigned long arg2) in xc2() argument
79 sparc32_ipi_ops->cross_call(func, *cpu_online_mask, arg1, arg2, 0, 0); in xc2()
82 static inline void xc3(smpfunc_t func, unsigned long arg1, unsigned long arg2, in xc3() argument
85 sparc32_ipi_ops->cross_call(func, *cpu_online_mask, in xc3()
89 static inline void xc4(smpfunc_t func, unsigned long arg1, unsigned long arg2, in xc4() argument
[all …]
Dmemctrl.h6 int register_dimm_printer(dimm_printer_t func);
7 void unregister_dimm_printer(dimm_printer_t func);
/linux-4.1.27/arch/powerpc/platforms/ps3/
Dtime.c32 static void _dump_tm(const struct rtc_time *tm, const char* func, int line) in _dump_tm() argument
34 pr_debug("%s:%d tm_sec %d\n", func, line, tm->tm_sec); in _dump_tm()
35 pr_debug("%s:%d tm_min %d\n", func, line, tm->tm_min); in _dump_tm()
36 pr_debug("%s:%d tm_hour %d\n", func, line, tm->tm_hour); in _dump_tm()
37 pr_debug("%s:%d tm_mday %d\n", func, line, tm->tm_mday); in _dump_tm()
38 pr_debug("%s:%d tm_mon %d\n", func, line, tm->tm_mon); in _dump_tm()
39 pr_debug("%s:%d tm_year %d\n", func, line, tm->tm_year); in _dump_tm()
40 pr_debug("%s:%d tm_wday %d\n", func, line, tm->tm_wday); in _dump_tm()
44 static void __maybe_unused _dump_time(int time, const char *func, in _dump_time() argument
51 pr_debug("%s:%d time %d\n", func, line, time); in _dump_time()
[all …]
Dos-area.c323 static void _dump_header(const struct os_area_header *h, const char *func, in _dump_header() argument
329 pr_debug("%s:%d: h.magic_num: '%s'\n", func, line, in _dump_header()
331 pr_debug("%s:%d: h.hdr_version: %u\n", func, line, in _dump_header()
333 pr_debug("%s:%d: h.db_area_offset: %u\n", func, line, in _dump_header()
335 pr_debug("%s:%d: h.ldr_area_offset: %u\n", func, line, in _dump_header()
337 pr_debug("%s:%d: h.ldr_format: %u\n", func, line, in _dump_header()
339 pr_debug("%s:%d: h.ldr_size: %xh\n", func, line, in _dump_header()
344 static void _dump_params(const struct os_area_params *p, const char *func, in _dump_params() argument
347 pr_debug("%s:%d: p.boot_flag: %u\n", func, line, p->boot_flag); in _dump_params()
348 pr_debug("%s:%d: p.num_params: %u\n", func, line, p->num_params); in _dump_params()
[all …]
Dmm.c119 const char *func, int line) in _debug_dump_map() argument
121 DBG("%s:%d: map.total = %llxh\n", func, line, m->total); in _debug_dump_map()
122 DBG("%s:%d: map.rm.size = %llxh\n", func, line, m->rm.size); in _debug_dump_map()
123 DBG("%s:%d: map.vas_id = %llu\n", func, line, m->vas_id); in _debug_dump_map()
124 DBG("%s:%d: map.htab_size = %llxh\n", func, line, m->htab_size); in _debug_dump_map()
125 DBG("%s:%d: map.r1.base = %llxh\n", func, line, m->r1.base); in _debug_dump_map()
126 DBG("%s:%d: map.r1.offset = %lxh\n", func, line, m->r1.offset); in _debug_dump_map()
127 DBG("%s:%d: map.r1.size = %llxh\n", func, line, m->r1.size); in _debug_dump_map()
357 const char *func, int line) in _dma_dump_region() argument
359 DBG("%s:%d: dev %llu:%llu\n", func, line, r->dev->bus_id, in _dma_dump_region()
[all …]
/linux-4.1.27/kernel/
Dsmp.c145 smp_call_func_t func, void *info) in generic_exec_single() argument
156 func(info); in generic_exec_single()
167 csd->func = func; in generic_exec_single()
237 csd->func); in flush_smp_call_function_queue()
241 smp_call_func_t func = csd->func; in flush_smp_call_function_queue() local
246 func(info); in flush_smp_call_function_queue()
250 func(info); in flush_smp_call_function_queue()
271 int smp_call_function_single(int cpu, smp_call_func_t func, void *info, in smp_call_function_single() argument
300 err = generic_exec_single(cpu, csd, func, info); in smp_call_function_single()
340 err = generic_exec_single(cpu, csd, csd->func, csd->info); in smp_call_function_single_async()
[all …]
Dup.c10 int smp_call_function_single(int cpu, void (*func) (void *info), void *info, in smp_call_function_single()
18 func(info); in smp_call_function_single()
30 csd->func(csd->info); in smp_call_function_single_async()
36 int on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument
41 func(info); in on_each_cpu()
54 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument
60 func(info); in on_each_cpu_mask()
71 smp_call_func_t func, void *info, bool wait, in on_each_cpu_cond() argument
79 func(info); in on_each_cpu_cond()
Dtracepoint.c90 for (i = 0; funcs[i].func; i++) in debug_print_probes()
91 printk(KERN_DEBUG "Probe %d : %p\n", i, funcs[i].func); in debug_print_probes()
100 if (WARN_ON(!tp_func->func)) in func_add()
107 for (nr_probes = 0; old[nr_probes].func; nr_probes++) in func_add()
108 if (old[nr_probes].func == tp_func->func && in func_add()
119 new[nr_probes + 1].func = NULL; in func_add()
138 if (tp_func->func) { in func_remove()
139 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_remove()
140 if (old[nr_probes].func == tp_func->func && in func_remove()
162 for (i = 0; old[i].func; i++) in func_remove()
[all …]
Dasync.c76 async_func_t func; member
120 entry->func, task_pid_nr(current)); in async_run_entry_fn()
123 entry->func(entry->data, entry->cookie); in async_run_entry_fn()
129 entry->func, in async_run_entry_fn()
148 static async_cookie_t __async_schedule(async_func_t func, void *data, struct async_domain *domain) in __async_schedule() argument
168 func(data, newcookie); in __async_schedule()
174 entry->func = func; in __async_schedule()
207 async_cookie_t async_schedule(async_func_t func, void *data) in async_schedule() argument
209 return __async_schedule(func, data, &async_dfl_domain); in async_schedule()
225 async_cookie_t async_schedule_domain(async_func_t func, void *data, in async_schedule_domain() argument
[all …]
Dtask_work.c53 task_work_cancel(struct task_struct *task, task_work_func_t func) in task_work_cancel() argument
67 if (work->func != func) in task_work_cancel()
123 work->func(work); in task_work_run()
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c34 const struct nvbios_source *func; member
48 u32 read = mthd->func->read(data, start, limit - start, bios); in shadow_fetch()
113 if (mthd->func->rw) in shadow_image()
145 const struct nvbios_source *func = mthd->func; in shadow_method() local
146 if (func->name) { in shadow_method()
147 nv_debug(bios, "trying %s...\n", name ? name : func->name); in shadow_method()
148 if (func->init) { in shadow_method()
149 mthd->data = func->init(bios, name); in shadow_method()
156 if (func->fini) in shadow_method()
157 func->fini(mthd->data); in shadow_method()
[all …]
Dgpio.c87 .func = (info & 0x07e0) >> 5, in dcb_gpio_parse()
97 .func = (info & 0x0000ff00) >> 8, in dcb_gpio_parse()
107 .func = (info & 0x0000ff00) >> 8, in dcb_gpio_parse()
119 dcb_gpio_match(struct nvkm_bios *bios, int idx, u8 func, u8 line, in dcb_gpio_match() argument
127 (func == 0xff || func == gpio->func)) in dcb_gpio_match()
133 if (*ver >= 0x22 && *ver < 0x30 && func == DCB_GPIO_TVDAC0) { in dcb_gpio_match()
138 .func = DCB_GPIO_TVDAC0, in dcb_gpio_match()
Dextdev.c70 struct nvbios_extdev_func *func) in nvbios_extdev_parse() argument
78 extdev_parse_entry(bios, entry, func); in nvbios_extdev_parse()
84 struct nvbios_extdev_func *func) in nvbios_extdev_find() argument
91 extdev_parse_entry(bios, entry, func); in nvbios_extdev_find()
92 if (func->type == type) in nvbios_extdev_find()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.h57 #define FM10K_VF_MSG_MSIX_HANDLER(func) \ argument
58 FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_MSIX, NULL, func)
62 #define FM10K_VF_MSG_MAC_VLAN_HANDLER(func) \ argument
64 fm10k_mac_vlan_msg_attr, func)
69 #define FM10K_VF_MSG_LPORT_STATE_HANDLER(func) \ argument
71 fm10k_lport_state_msg_attr, func)
74 #define FM10K_VF_MSG_1588_HANDLER(func) \ argument
75 FM10K_MSG_HANDLER(FM10K_VF_MSG_ID_1588, fm10k_1588_msg_attr, func)
Dfm10k_pf.h107 #define FM10K_PF_MSG_LPORT_MAP_HANDLER(func) \ argument
109 fm10k_lport_map_msg_attr, func)
113 #define FM10K_PF_MSG_UPDATE_PVID_HANDLER(func) \ argument
115 fm10k_update_pvid_msg_attr, func)
119 #define FM10K_PF_MSG_ERR_HANDLER(msg, func) \ argument
120 FM10K_MSG_HANDLER(FM10K_PF_MSG_ID_##msg, fm10k_err_msg_attr, func)
123 #define FM10K_PF_MSG_1588_TIMESTAMP_HANDLER(func) \ argument
125 fm10k_1588_timestamp_msg_attr, func)
Dfm10k_tlv.h102 s32 (*func)(struct fm10k_hw *, u32 **, member
106 #define FM10K_MSG_HANDLER(id, attr, func) { id, attr, func } argument
182 #define FM10K_TLV_MSG_TEST_HANDLER(func) \ argument
183 FM10K_MSG_HANDLER(FM10K_TLV_MSG_ID_TEST, fm10k_tlv_msg_test_attr, func)
184 #define FM10K_TLV_MSG_ERROR_HANDLER(func) \ argument
185 FM10K_MSG_HANDLER(FM10K_TLV_ERROR, NULL, func)
/linux-4.1.27/arch/powerpc/include/asm/
Dcode-patching.h50 static inline unsigned long ppc_function_entry(void *func) in ppc_function_entry() argument
54 u32 *insn = func; in ppc_function_entry()
77 return (unsigned long)func; in ppc_function_entry()
84 return ((func_descr_t *)func)->entry; in ppc_function_entry()
87 return (unsigned long)func; in ppc_function_entry()
91 static inline unsigned long ppc_global_function_entry(void *func) in ppc_global_function_entry() argument
95 return (unsigned long)func; in ppc_global_function_entry()
98 return ppc_function_entry(func); in ppc_global_function_entry()
Dpmac_pfunc.h51 #define PMF_STD_ARGS struct pmf_function *func, void *instdata, \
57 void * (*begin)(struct pmf_function *func, struct pmf_args *args);
58 void (*end)(struct pmf_function *func, void *instdata);
60 int (*irq_enable)(struct pmf_function *func);
61 int (*irq_disable)(struct pmf_function *func);
170 struct pmf_function *func; member
196 extern void pmf_do_irq(struct pmf_function *func);
242 extern struct pmf_function * pmf_get_function(struct pmf_function *func);
243 extern void pmf_put_function(struct pmf_function *func);
245 extern int pmf_call_one(struct pmf_function *func, struct pmf_args *args);
Dirqflags.h21 #define TRACE_WITH_FRAME_BUFFER(func) \ argument
26 bl func; \
30 #define TRACE_WITH_FRAME_BUFFER(func) \ argument
31 bl func;
/linux-4.1.27/scripts/
Dbootgraph.pl85 my $func = $2;
87 $start{$func} = $1;
88 $type{$func} = 0;
94 $pids{$func} = $1;
101 my $func;
103 $func = "wait_" . $pid . "_1";
107 $func = "wait_" . $pid . "_" . $pidctr{$pid};
110 $start{$func} = $1;
111 $type{$func} = 1;
116 $pids{$func} = $pid;
[all …]
Dcheckstack.pl118 my ($func, $file, $lastslash);
122 $func = $1;
148 my $intro = "$addr $func [$file]:";
165 my $intro = "$addr $func [$file]:";
/linux-4.1.27/arch/ia64/scripts/
Dunwcheck.py26 def check_func (func, slots, rlen_sum): argument
30 if not func: func = "[%#x-%#x]" % (start, end)
31 print "ERROR: %s: %lu slots, total region length = %lu" % (func, slots, rlen_sum)
36 func = False variable
42 check_func(func, slots, rlen_sum)
44 func = m.group(1) variable
54 check_func(func, slots, rlen_sum)
/linux-4.1.27/arch/x86/include/asm/
Dpci-direct.h9 extern u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset);
10 extern u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset);
11 extern u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset);
12 extern void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, u32 val);
13 extern void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val);
14 extern void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val);
19 extern void early_dump_pci_device(u8 bus, u8 slot, u8 func);
Dapm.h26 static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in, in apm_bios_call_asm() argument
44 : "a" (func), "b" (ebx_in), "c" (ecx_in) in apm_bios_call_asm()
48 static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in, in apm_bios_call_simple_asm() argument
68 : "a" (func), "b" (ebx_in), "c" (ecx_in) in apm_bios_call_simple_asm()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Devent.c32 if (event->func->fini) in nvkm_event_put()
33 event->func->fini(event, 1 << type, index); in nvkm_event_put()
45 if (event->func->init) in nvkm_event_get()
46 event->func->init(event, 1 << type, index); in nvkm_event_get()
64 if (event->func->send) { in nvkm_event_send()
65 event->func->send(data, size, notify); in nvkm_event_send()
84 nvkm_event_init(const struct nvkm_event_func *func, int types_nr, int index_nr, in nvkm_event_init() argument
92 event->func = func; in nvkm_event_init()
Dnotify.c73 int ret = notify->func(notify); in nvkm_notify_func()
133 int (*func)(struct nvkm_notify *), bool work, in nvkm_notify_init()
140 ret = event->func->ctor(object, data, size, notify); in nvkm_notify_init()
144 notify->func = func; in nvkm_notify_init()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsdio.c81 mwifiex_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) in mwifiex_sdio_probe() argument
87 func->vendor, func->device, func->class, func->num); in mwifiex_sdio_probe()
93 card->func = func; in mwifiex_sdio_probe()
95 func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; in mwifiex_sdio_probe()
114 sdio_claim_host(func); in mwifiex_sdio_probe()
115 ret = sdio_enable_func(func); in mwifiex_sdio_probe()
116 sdio_release_host(func); in mwifiex_sdio_probe()
128 sdio_claim_host(func); in mwifiex_sdio_probe()
129 ret = sdio_disable_func(func); in mwifiex_sdio_probe()
130 sdio_release_host(func); in mwifiex_sdio_probe()
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Df_fs.c92 static void ffs_func_eps_disable(struct ffs_function *func);
93 static int __must_check ffs_func_eps_enable(struct ffs_function *func);
105 static int ffs_func_revmap_ep(struct ffs_function *func, u8 num);
106 static int ffs_func_revmap_intf(struct ffs_function *func, u8 intf);
567 struct ffs_function *func = ffs->func; in ffs_ep0_ioctl() local
568 ret = func ? ffs_func_revmap_intf(func, value) : -ENODEV; in ffs_ep0_ioctl()
1612 static void ffs_func_eps_disable(struct ffs_function *func) in ffs_func_eps_disable() argument
1614 struct ffs_ep *ep = func->eps; in ffs_func_eps_disable()
1615 struct ffs_epfile *epfile = func->ffs->epfiles; in ffs_func_eps_disable()
1616 unsigned count = func->ffs->eps_count; in ffs_func_eps_disable()
[all …]
Df_obex.c45 return container_of(f, struct f_obex, port.func); in func_to_obex()
268 struct usb_composite_dev *cdev = g->func.config->cdev; in obex_connect()
274 status = usb_function_activate(&g->func); in obex_connect()
284 struct usb_composite_dev *cdev = g->func.config->cdev; in obex_disconnect()
290 status = usb_function_deactivate(&g->func); in obex_disconnect()
524 obex->port.func.name = "obex"; in obex_alloc()
526 obex->port.func.bind = obex_bind; in obex_alloc()
527 obex->port.func.unbind = obex_unbind; in obex_alloc()
528 obex->port.func.set_alt = obex_set_alt; in obex_alloc()
529 obex->port.func.get_alt = obex_get_alt; in obex_alloc()
[all …]
Df_serial.c39 return container_of(f, struct f_gser, port.func); in func_to_gser()
374 gser->port.func.name = "gser"; in gser_alloc()
375 gser->port.func.strings = gser_strings; in gser_alloc()
376 gser->port.func.bind = gser_bind; in gser_alloc()
377 gser->port.func.unbind = gser_unbind; in gser_alloc()
378 gser->port.func.set_alt = gser_set_alt; in gser_alloc()
379 gser->port.func.disable = gser_disable; in gser_alloc()
380 gser->port.func.free_func = gser_free; in gser_alloc()
382 return &gser->port.func; in gser_alloc()
Df_ncm.c87 return container_of(f, struct f_ncm, port.func); in func_to_ncm()
478 struct usb_composite_dev *cdev = ncm->port.func.config->cdev; in ncm_do_notify()
560 struct usb_composite_dev *cdev = ncm->port.func.config->cdev; in ncm_notify_complete()
955 struct f_ncm *ncm = func_to_ncm(&port->func); in ncm_wrap_ntb()
1132 struct f_ncm *ncm = func_to_ncm(&port->func); in ncm_unwrap_ntb()
1147 INFO(port->func.config->cdev, "Wrong NTH SIGN, skblen %d\n", in ncm_unwrap_ntb()
1157 INFO(port->func.config->cdev, "Wrong NTB headersize\n"); in ncm_unwrap_ntb()
1164 INFO(port->func.config->cdev, "OUT size exceeded\n"); in ncm_unwrap_ntb()
1175 INFO(port->func.config->cdev, "Bad index: %#X\n", in ncm_unwrap_ntb()
1183 INFO(port->func.config->cdev, "Wrong NDP SIGN\n"); in ncm_unwrap_ntb()
[all …]
Df_ecm.c68 return container_of(f, struct f_ecm, port.func); in func_to_ecm()
382 struct usb_composite_dev *cdev = ecm->port.func.config->cdev; in ecm_do_notify()
449 struct usb_composite_dev *cdev = ecm->port.func.config->cdev; in ecm_notify_complete()
663 struct f_ecm *ecm = func_to_ecm(&geth->func); in ecm_open()
665 DBG(ecm->port.func.config->cdev, "%s\n", __func__); in ecm_open()
673 struct f_ecm *ecm = func_to_ecm(&geth->func); in ecm_close()
675 DBG(ecm->port.func.config->cdev, "%s\n", __func__); in ecm_close()
958 ecm->port.func.name = "cdc_ethernet"; in ecm_alloc()
960 ecm->port.func.bind = ecm_bind; in ecm_alloc()
961 ecm->port.func.unbind = ecm_unbind; in ecm_alloc()
[all …]
Df_subset.c61 return container_of(f, struct f_gether, port.func); in func_to_geth()
506 geth->port.func.name = "cdc_subset"; in geth_alloc()
507 geth->port.func.bind = geth_bind; in geth_alloc()
508 geth->port.func.unbind = geth_unbind; in geth_alloc()
509 geth->port.func.set_alt = geth_set_alt; in geth_alloc()
510 geth->port.func.disable = geth_disable; in geth_alloc()
511 geth->port.func.free_func = geth_free; in geth_alloc()
513 return &geth->port.func; in geth_alloc()
/linux-4.1.27/drivers/watchdog/
Ddiag288_wdt.c74 static int __diag288(unsigned int func, unsigned int timeout, in __diag288() argument
77 register unsigned long __func asm("2") = func; in __diag288()
94 static int __diag288_vm(unsigned int func, unsigned int timeout, in __diag288_vm() argument
97 return __diag288(func, timeout, virt_to_phys(cmd), len); in __diag288_vm()
100 static int __diag288_lpar(unsigned int func, unsigned int timeout, in __diag288_lpar() argument
103 return __diag288(func, timeout, action, 0); in __diag288_lpar()
111 unsigned int func; in wdt_start() local
123 func = conceal_on ? (WDT_FUNC_INIT | WDT_FUNC_CONCEAL) in wdt_start()
125 ret = __diag288_vm(func, dev->timeout, ebc_cmd, len); in wdt_start()
153 unsigned int func; in wdt_ping() local
[all …]
/linux-4.1.27/kernel/trace/
Dtrace_functions.c45 ops->func = function_trace_call; in allocate_ftrace_ops()
84 ftrace_func_t func; in function_trace_init() local
97 func = function_stack_trace_call; in function_trace_init()
99 func = function_trace_call; in function_trace_init()
101 ftrace_init_array_ops(tr, func); in function_trace_init()
234 tr->ops->func = function_stack_trace_call; in func_set_flag()
237 tr->ops->func = function_trace_call; in func_set_flag()
482 .func = ftrace_traceon_count,
487 .func = ftrace_traceoff_count,
492 .func = ftrace_stacktrace_count,
[all …]
Dtrace_events_trigger.c77 data->ops->func(data); in event_triggers_call()
87 data->ops->func(data); in event_triggers_call()
113 data->ops->func(data); in event_triggers_post_call()
216 ret = p->func(p, file, buff, command, next); in trigger_process_regex()
818 .func = traceon_trigger,
825 .func = traceon_count_trigger,
832 .func = traceoff_trigger,
839 .func = traceoff_count_trigger,
864 .func = event_trigger_callback,
874 .func = event_trigger_callback,
[all …]
Dtrace_entries.h81 __field_desc( unsigned long, graph_ent, func )
85 F_printk("--> %lx (%d)", __entry->func, __entry->depth),
97 __field_desc( unsigned long, ret, func )
105 __entry->func, __entry->depth,
313 __array( char, func, TRACE_FUNC_SIZE+1 )
320 __entry->func, __entry->file, __entry->correct),
Dtrace_functions_graph.c115 ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth, in ftrace_push_return_trace() argument
161 if (ftrace_graph_notrace_addr(func)) in ftrace_push_return_trace()
165 current->ret_stack[index].func = func; in ftrace_push_return_trace()
222 (void *)current->ret_stack[index].func, in ftrace_pop_return_trace()
230 trace->func = current->ret_stack[index].func; in ftrace_pop_return_trace()
323 if ((!(trace->depth || ftrace_graph_addr(trace->func)) || in trace_graph_entry()
335 if (ftrace_graph_notrace_addr(trace->func)) in trace_graph_entry()
369 .func = ip, in __trace_graph_function()
373 .func = ip, in __trace_graph_function()
631 curr->graph_ent.func != next->ret.func) in get_return_for_leaf()
[all …]
/linux-4.1.27/drivers/media/rc/img-ir/
Dimg-ir-sony.c18 unsigned int dev, subdev, func; in img_ir_sony_scancode() local
24 func = raw & 0x7f; /* first 7 bits */ in img_ir_sony_scancode()
33 func = raw & 0x7f; /* first 7 bits */ in img_ir_sony_scancode()
42 func = raw & 0x7f; /* first 7 bits */ in img_ir_sony_scancode()
52 request->scancode = dev << 16 | subdev << 8 | func; in img_ir_sony_scancode()
60 unsigned int dev, subdev, func; in img_ir_sony_filter() local
68 func = (in->data >> 0) & 0x7f; in img_ir_sony_filter()
101 out->data = func | in img_ir_sony_filter()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dbrcms_trace_brcmsmac_msg.h62 TP_PROTO(u32 level, const char *func, struct va_format *vaf),
63 TP_ARGS(level, func, vaf),
66 __string(func, func)
71 __assign_str(func, func);
76 TP_printk("%s: %s", __get_str(func), __get_str(msg))
/linux-4.1.27/drivers/mmc/card/
Dsdio_uart.c70 struct sdio_func *func; member
136 struct sdio_func *func; in sdio_uart_port_remove() local
153 func = port->func; in sdio_uart_port_remove()
154 sdio_claim_host(func); in sdio_uart_port_remove()
155 port->func = NULL; in sdio_uart_port_remove()
160 sdio_release_irq(func); in sdio_uart_port_remove()
161 sdio_disable_func(func); in sdio_uart_port_remove()
162 sdio_release_host(func); in sdio_uart_port_remove()
170 if (unlikely(!port->func)) { in sdio_uart_claim_func()
175 sdio_claim_host(port->func); in sdio_uart_claim_func()
[all …]
/linux-4.1.27/arch/s390/include/asm/
Dsmp.h27 extern void smp_call_online_cpu(void (*func)(void *), void *);
28 extern void smp_call_ipl_cpu(void (*func)(void *), void *);
42 static inline void smp_call_ipl_cpu(void (*func)(void *), void *data) in smp_call_ipl_cpu()
44 func(data); in smp_call_ipl_cpu()
47 static inline void smp_call_online_cpu(void (*func)(void *), void *data) in smp_call_online_cpu()
49 func(data); in smp_call_online_cpu()
Detr.h169 static inline int etr_steai(struct etr_aib *aib, unsigned int func) in etr_steai() argument
171 register unsigned int reg0 asm("0") = func; in etr_steai()
189 static inline int etr_ptff(void *ptff_block, unsigned int func) in etr_ptff() argument
191 register unsigned int reg0 asm("0") = func; in etr_ptff()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
Dbase.c45 struct dcb_gpio_func *func) in nvkm_gpio_find() argument
54 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); in nvkm_gpio_find()
61 *func = (struct dcb_gpio_func) { in nvkm_gpio_find()
62 .func = DCB_GPIO_TVDAC0, in nvkm_gpio_find()
77 struct dcb_gpio_func func; in nvkm_gpio_set() local
80 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_set()
82 int dir = !!(func.log[state] & 0x02); in nvkm_gpio_set()
83 int out = !!(func.log[state] & 0x01); in nvkm_gpio_set()
84 ret = nvkm_gpio_drive(gpio, idx, func.line, dir, out); in nvkm_gpio_set()
93 struct dcb_gpio_func func; in nvkm_gpio_get() local
[all …]
Dgf110.c38 u8 func = (data & 0x0000ff00) >> 8; in gf110_gpio_reset() local
42 if ( func == DCB_GPIO_UNUSED || in gf110_gpio_reset()
43 (match != DCB_GPIO_UNUSED && match != func)) in gf110_gpio_reset()
46 gpio->set(gpio, 0, func, line, defs); in gf110_gpio_reset()
Dnv50.c38 u8 func = (data & 0x0000ff00) >> 8; in nv50_gpio_reset() local
46 if ( func == DCB_GPIO_UNUSED || in nv50_gpio_reset()
47 (match != DCB_GPIO_UNUSED && match != func)) in nv50_gpio_reset()
50 gpio->set(gpio, 0, func, line, defs); in nv50_gpio_reset()
/linux-4.1.27/security/integrity/ima/
Dima_policy.c53 enum ima_hooks func; member
92 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
94 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
96 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
98 {.action = MEASURE, .func = MODULE_CHECK, .flags = IMA_FUNC},
99 {.action = MEASURE, .func = FIRMWARE_CHECK, .flags = IMA_FUNC},
103 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
105 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
107 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
109 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
[all …]
Dima_appraise.c40 int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func) in ima_must_appraise() argument
45 return ima_match_policy(inode, func, mask, IMA_APPRAISE); in ima_must_appraise()
71 int func) in ima_get_cache_status() argument
73 switch (func) { in ima_get_cache_status()
89 int func, enum integrity_status status) in ima_set_cache_status() argument
91 switch (func) { in ima_set_cache_status()
111 static void ima_cache_flags(struct integrity_iint_cache *iint, int func) in ima_cache_flags() argument
113 switch (func) { in ima_cache_flags()
185 int ima_appraise_measurement(int func, struct integrity_iint_cache *iint, in ima_appraise_measurement() argument
281 ima_cache_flags(iint, func); in ima_appraise_measurement()
[all …]
Dima.h155 int ima_match_policy(struct inode *inode, enum ima_hooks func, int mask,
171 int ima_appraise_measurement(int func, struct integrity_iint_cache *iint,
175 int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func);
178 int func);
185 static inline int ima_appraise_measurement(int func, in ima_appraise_measurement() argument
196 enum ima_hooks func) in ima_must_appraise() argument
207 *iint, int func) in ima_get_cache_status() argument
/linux-4.1.27/net/irda/
Dparameters.c39 PV_TYPE type, PI_HANDLER func);
41 PV_TYPE type, PI_HANDLER func);
43 PV_TYPE type, PI_HANDLER func);
45 PV_TYPE type, PI_HANDLER func);
48 PV_TYPE type, PI_HANDLER func);
50 PV_TYPE type, PI_HANDLER func);
79 PV_TYPE type, PI_HANDLER func) in irda_insert_no_value() argument
88 ret = (*func)(self, &p, PV_GET); in irda_insert_no_value()
106 PV_TYPE type, PI_HANDLER func) in irda_extract_no_value() argument
115 ret = (*func)(self, &p, PV_PUT); in irda_extract_no_value()
[all …]
/linux-4.1.27/drivers/xen/xen-pciback/
Dpci_stub.c153 int slot, int func) in pcistub_device_find() argument
165 && func == PCI_FUNC(psdev->dev->devfn)) { in pcistub_device_find()
202 int slot, int func) in pcistub_get_pci_dev_by_slot() argument
215 && func == PCI_FUNC(psdev->dev->devfn)) { in pcistub_get_pci_dev_by_slot()
956 int *slot, int *func) in str_to_slot() argument
960 switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func, in str_to_slot()
963 *func = -1; in str_to_slot()
967 *slot = *func = -1; in str_to_slot()
976 switch (sscanf(buf, " %x:%x.%x %n", bus, slot, func, &parsed)) { in str_to_slot()
978 *func = -1; in str_to_slot()
[all …]
Dxenbus.c225 int domain, int bus, int slot, int func, in xen_pcibk_export_device() argument
232 domain, bus, slot, func); in xen_pcibk_export_device()
234 dev = pcistub_get_pci_dev_by_slot(pdev, domain, bus, slot, func); in xen_pcibk_export_device()
241 domain, bus, slot, func); in xen_pcibk_export_device()
272 int domain, int bus, int slot, int func) in xen_pcibk_remove_device() argument
278 domain, bus, slot, func); in xen_pcibk_remove_device()
280 dev = xen_pcibk_get_pci_dev(pdev, domain, bus, PCI_DEVFN(slot, func)); in xen_pcibk_remove_device()
285 domain, bus, slot, func); in xen_pcibk_remove_device()
364 int domain, bus, slot, func; in xen_pcibk_reconfigure() local
417 &domain, &bus, &slot, &func); in xen_pcibk_reconfigure()
[all …]
/linux-4.1.27/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c57 struct sunxi_pinctrl_function *func = pctl->functions; in sunxi_pinctrl_find_function_by_name() local
61 if (!func[i].name) in sunxi_pinctrl_find_function_by_name()
64 if (!strcmp(func[i].name, name)) in sunxi_pinctrl_find_function_by_name()
65 return func + i; in sunxi_pinctrl_find_function_by_name()
82 struct sunxi_desc_function *func = pin->functions; in sunxi_pinctrl_desc_find_function_by_name() local
84 while (func->name) { in sunxi_pinctrl_desc_find_function_by_name()
85 if (!strcmp(func->name, func_name)) in sunxi_pinctrl_desc_find_function_by_name()
86 return func; in sunxi_pinctrl_desc_find_function_by_name()
88 func++; in sunxi_pinctrl_desc_find_function_by_name()
107 struct sunxi_desc_function *func = pin->functions; in sunxi_pinctrl_desc_find_function_by_pin() local
[all …]
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmcg.c102 struct mcast_member func[MAX_VFS]; member
128 int func; member
341 sa_data->scope_join_state |= (group->func[slave].join_state & 0x0f); in send_reply_to_slave()
497 join_state = join_mask & (~group->func[slave].join_state); in join_group()
499 group->func[slave].join_state |= join_state; in join_group()
500 if (group->func[slave].state != MCAST_MEMBER && join_state) { in join_group()
501 group->func[slave].state = MCAST_MEMBER; in join_group()
512 group->func[slave].join_state &= ~leave_state; in leave_group()
513 if (!group->func[slave].join_state) { in leave_group()
514 group->func[slave].state = MCAST_NOT_MEMBER; in leave_group()
[all …]
/linux-4.1.27/include/linux/pinctrl/
Dmachine.h88 #define PIN_MAP_MUX_GROUP(dev, state, pinctrl, grp, func) \ argument
96 .function = func, \
100 #define PIN_MAP_MUX_GROUP_DEFAULT(dev, pinctrl, grp, func) \ argument
101 PIN_MAP_MUX_GROUP(dev, PINCTRL_STATE_DEFAULT, pinctrl, grp, func)
103 #define PIN_MAP_MUX_GROUP_HOG(dev, state, grp, func) \ argument
104 PIN_MAP_MUX_GROUP(dev, state, dev, grp, func)
106 #define PIN_MAP_MUX_GROUP_HOG_DEFAULT(dev, grp, func) \ argument
107 PIN_MAP_MUX_GROUP(dev, PINCTRL_STATE_DEFAULT, dev, grp, func)
/linux-4.1.27/arch/mips/include/uapi/asm/
Dinst.h550 __BITFIELD_FIELD(unsigned int func : 6,
560 __BITFIELD_FIELD(unsigned int func : 6,
571 __BITFIELD_FIELD(unsigned int func : 6,
581 __BITFIELD_FIELD(unsigned int func : 4,
589 __BITFIELD_FIELD(unsigned int func : 6,
599 __BITFIELD_FIELD(unsigned int func : 6,
610 __BITFIELD_FIELD(unsigned int func : 6,
619 __BITFIELD_FIELD(unsigned int func:7,
645 __BITFIELD_FIELD(unsigned int func : 6,
656 __BITFIELD_FIELD(unsigned int func : 6,
[all …]
/linux-4.1.27/scripts/tracing/
Ddraw_functrace.py35 def __init__(self, func, time = None, parent = None): argument
36 self._func = func
44 def calls(self, func, calltime): argument
49 child = CallTree(func, calltime, self)
53 def getParent(self, func): argument
60 while tree != CallTree.ROOT and tree._func != func:
63 child = CallTree.ROOT.calls(func, None)
/linux-4.1.27/drivers/usb/early/
Dehci-dbgp.c67 u32 func; member
369 static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap) in find_cap() argument
374 if (!(read_pci_config_16(num, slot, func, PCI_STATUS) & in find_cap()
378 pos = read_pci_config_byte(num, slot, func, PCI_CAPABILITY_LIST); in find_cap()
383 id = read_pci_config_byte(num, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
389 pos = read_pci_config_byte(num, slot, func, in find_cap()
395 static u32 __init __find_dbgp(u32 bus, u32 slot, u32 func) in __find_dbgp() argument
399 class = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); in __find_dbgp()
403 return find_cap(bus, slot, func, PCI_CAP_ID_EHCI_DEBUG); in __find_dbgp()
408 u32 bus, slot, func; in find_dbgp() local
[all …]
/linux-4.1.27/drivers/ptp/
Dptp_chardev.c29 enum ptp_pin_function func, unsigned int chan) in ptp_disable_pinfunc() argument
36 switch (func) { in ptp_disable_pinfunc()
59 enum ptp_pin_function func, unsigned int chan) in ptp_set_pinfunc() argument
67 if (info->pin_config[i].func == func && in ptp_set_pinfunc()
77 switch (func) { in ptp_set_pinfunc()
95 if (info->verify(info, pin, func, chan)) { in ptp_set_pinfunc()
96 pr_err("driver cannot use function %u on pin %u\n", func, chan); in ptp_set_pinfunc()
102 ptp_disable_pinfunc(info, func, chan); in ptp_set_pinfunc()
103 pin1->func = PTP_PF_NONE; in ptp_set_pinfunc()
106 ptp_disable_pinfunc(info, pin2->func, pin2->chan); in ptp_set_pinfunc()
[all …]
/linux-4.1.27/arch/mips/math-emu/
Dcp1emu.c99 int func, fmt, op; in microMIPS32_to_MIPS32() local
134 switch (insn.mm_fp0_format.func) { in microMIPS32_to_MIPS32()
143 op = insn.mm_fp0_format.func; in microMIPS32_to_MIPS32()
145 func = madd_s_op; in microMIPS32_to_MIPS32()
147 func = madd_d_op; in microMIPS32_to_MIPS32()
149 func = nmadd_s_op; in microMIPS32_to_MIPS32()
151 func = nmadd_d_op; in microMIPS32_to_MIPS32()
153 func = msub_s_op; in microMIPS32_to_MIPS32()
155 func = msub_d_op; in microMIPS32_to_MIPS32()
157 func = nmsub_s_op; in microMIPS32_to_MIPS32()
[all …]
/linux-4.1.27/drivers/firewire/
Dinit_ohci1394_dma.c248 static inline void __init init_ohci1394_controller(int num, int slot, int func) in init_ohci1394_controller() argument
254 " at %02x:%02x.%x\n", num, slot, func); in init_ohci1394_controller()
256 ohci_base = read_pci_config(num, slot, func, PCI_BASE_ADDRESS_0+(0<<2)) in init_ohci1394_controller()
272 int num, slot, func; in init_ohci1394_dma_on_all_controllers() local
281 for (func = 0; func < 8; func++) { in init_ohci1394_dma_on_all_controllers()
282 class = read_pci_config(num, slot, func, in init_ohci1394_dma_on_all_controllers()
290 init_ohci1394_controller(num, slot, func); in init_ohci1394_dma_on_all_controllers()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
Dpci.c26 int slot, int func, int vendor, int dev) in pci_acc_init() argument
39 filter_nb_link.func = func; in pci_acc_init()
57 int func) in pci_slot_func_init() argument
59 return pci_acc_init(pacc, 0, 0, slot, func, -1, -1); in pci_slot_func_init()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dhid.c39 struct hidg_func_descriptor *func; member
171 hid_opts->subclass = n->func->subclass; in hid_bind()
172 hid_opts->protocol = n->func->protocol; in hid_bind()
173 hid_opts->report_length = n->func->report_length; in hid_bind()
174 hid_opts->report_desc_length = n->func->report_desc_length; in hid_bind()
175 hid_opts->report_desc = n->func->report_desc; in hid_bind()
221 struct hidg_func_descriptor *func = dev_get_platdata(&pdev->dev); in hidg_plat_driver_probe() local
224 if (!func) { in hidg_plat_driver_probe()
233 entry->func = func; in hidg_plat_driver_probe()
/linux-4.1.27/Documentation/ABI/testing/
Dima_policy22 base: [[func=] [mask=] [fsmagic=] [fsuuid=] [uid=]
28 base: func:= [BPRM_CHECK][MMAP_CHECK][FILE_CHECK][MODULE_CHECK]
74 measure func=BPRM_CHECK
75 measure func=FILE_MMAP mask=MAY_EXEC
76 measure func=FILE_CHECK mask=MAY_READ uid=0
77 measure func=MODULE_CHECK
78 measure func=FIRMWARE_CHECK
93 measure subj_user=system_u func=FILE_CHECK mask=MAY_READ
94 measure subj_role=system_r func=FILE_CHECK mask=MAY_READ
97 measure subj_user=_ func=FILE_CHECK mask=MAY_READ
/linux-4.1.27/arch/powerpc/platforms/44x/
Dwarp.c108 void (*func)(void *arg); member
113 int pika_dtm_register_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_register_shutdown()
121 shutdown->func = func; in pika_dtm_register_shutdown()
129 int pika_dtm_unregister_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_unregister_shutdown()
134 if (shutdown->func == func && shutdown->arg == arg) { in pika_dtm_unregister_shutdown()
154 shutdown->func(shutdown->arg); in temp_isr()
305 int pika_dtm_register_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_register_shutdown()
310 int pika_dtm_unregister_shutdown(void (*func)(void *arg), void *arg) in pika_dtm_unregister_shutdown()
/linux-4.1.27/arch/alpha/kernel/
Dsmc37c669.c869 unsigned int func
873 unsigned int func
877 unsigned int func,
1055 unsigned int func
1060 unsigned int func,
1083 unsigned int func
1226 unsigned int __init SMC37c669_enable_device ( unsigned int func ) in SMC37c669_enable_device() argument
1233 switch ( func ) { in SMC37c669_enable_device()
1246 SMC37c669_xlate_irq( local_config[ func ].irq ) in SMC37c669_enable_device()
1254 base_addr.by_field.addr9_3 = local_config[ func ].port1 >> 3; in SMC37c669_enable_device()
[all …]
/linux-4.1.27/kernel/rcu/
Dtiny.c47 void (*func)(struct rcu_head *rcu),
239 void (*func)(struct rcu_head *rcu), in __call_rcu()
245 head->func = func; in __call_rcu()
265 void call_rcu_sched(struct rcu_head *head, void (*func)(struct rcu_head *rcu)) in call_rcu_sched()
267 __call_rcu(head, func, &rcu_sched_ctrlblk); in call_rcu_sched()
275 void call_rcu_bh(struct rcu_head *head, void (*func)(struct rcu_head *rcu)) in call_rcu_bh()
277 __call_rcu(head, func, &rcu_bh_ctrlblk); in call_rcu_bh()
/linux-4.1.27/drivers/bcma/
Ddriver_pci_host.c60 unsigned int func, unsigned int off) in bcma_get_cfgspace_addr() argument
77 addr |= (func << BCMA_CORE_PCI_CFG_FUN_SHIFT); in bcma_get_cfgspace_addr()
85 unsigned int func, unsigned int off, in bcma_extpci_read_config() argument
97 if (func > 1) in bcma_extpci_read_config()
104 addr = (func << 12); in bcma_extpci_read_config()
109 addr |= (func << 8); in bcma_extpci_read_config()
114 addr = bcma_get_cfgspace_addr(pc, dev, func, off); in bcma_extpci_read_config()
149 unsigned int func, unsigned int off, in bcma_extpci_write_config() argument
162 if (func > 1) in bcma_extpci_write_config()
169 addr = (func << 12); in bcma_extpci_write_config()
[all …]
/linux-4.1.27/net/rds/
Dinfo.c73 void rds_info_register_func(int optname, rds_info_func func) in rds_info_register_func() argument
81 rds_info_funcs[offset] = func; in rds_info_register_func()
86 void rds_info_deregister_func(int optname, rds_info_func func) in rds_info_deregister_func() argument
93 BUG_ON(rds_info_funcs[offset] != func); in rds_info_deregister_func()
166 rds_info_func func; in rds_info_getsockopt() local
209 func = rds_info_funcs[optname - RDS_INFO_FIRST]; in rds_info_getsockopt()
210 if (!func) { in rds_info_getsockopt()
219 func(sock, len, &iter, &lens); in rds_info_getsockopt()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Daux.c30 if (port->func->aux) { in nv_rdaux()
33 ret = port->func->aux(port, true, 9, addr, data, size); in nv_rdaux()
45 if (port->func->aux) { in nv_wraux()
48 ret = port->func->aux(port, true, 8, addr, data, size); in nv_wraux()
64 if (!port->func->aux) in aux_xfer()
87 ret = port->func->aux(port, true, cmd, msg->addr, ptr, cnt); in aux_xfer()
/linux-4.1.27/arch/microblaze/pci/
Dxilinx_pci.c88 u32 val, dev, func, offset; in xilinx_early_pci_scan() local
93 for (func = 0; func < 1; func++) { in xilinx_early_pci_scan()
94 pr_info("%02x:%02x:%02x", bus, dev, func); in xilinx_early_pci_scan()
99 PCI_DEVFN(dev, func), offset, &val); in xilinx_early_pci_scan()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c107 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id()
122 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release()
132 res->func->unbind != NULL) { in vmw_resource_release()
137 res->func->unbind(res, false, &val_buf); in vmw_resource_release()
188 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id()
218 const struct vmw_res_func *func) in vmw_resource_init() argument
225 res->func = func; in vmw_resource_init()
1101 res->func->backup_placement, in vmw_resource_buf_alloc()
1128 const struct vmw_res_func *func = res->func; in vmw_resource_do_validate() local
1131 ret = func->create(res); in vmw_resource_do_validate()
[all …]
/linux-4.1.27/drivers/pinctrl/
Dpinctrl-single.c394 struct pcs_function *func; in pcs_get_function_name() local
397 func = radix_tree_lookup(&pcs->ftree, fselector); in pcs_get_function_name()
398 if (!func) { in pcs_get_function_name()
404 return func->name; in pcs_get_function_name()
413 struct pcs_function *func; in pcs_get_function_groups() local
416 func = radix_tree_lookup(&pcs->ftree, fselector); in pcs_get_function_groups()
417 if (!func) { in pcs_get_function_groups()
422 *groups = func->pgnames; in pcs_get_function_groups()
423 *ngroups = func->npgnames; in pcs_get_function_groups()
429 struct pcs_function **func) in pcs_get_function() argument
[all …]
/linux-4.1.27/arch/mips/loongson/common/
Dreset.c26 void (*func)(void); in loongson_reboot()
28 func = (void *)ioremap_nocache(LOONGSON_BOOT_BASE, 4); in loongson_reboot()
35 : [func] "r" (func)); in loongson_reboot()
/linux-4.1.27/arch/parisc/kernel/
Dftrace.c25 unsigned long func, int *depth) in push_return_trace() argument
41 current->ret_stack[index].func = func; in push_return_trace()
65 trace->func = current->ret_stack[index].func; in pop_return_trace()
140 trace.func = self_addr; in prepare_ftrace_return()
/linux-4.1.27/arch/x86/um/
Dldt.c14 extern int modify_ldt(int func, void *ptr, unsigned long bytecount);
16 static long write_ldt_entry(struct mm_id *mm_idp, int func, in write_ldt_entry() argument
26 unsigned long args[] = { func, in write_ldt_entry()
116 static int write_ldt(void __user * ptr, unsigned long bytecount, int func) in write_ldt() argument
136 if (func == 1) in write_ldt()
144 err = write_ldt_entry(mm_idp, func, &ldt_info, &addr, 1); in write_ldt()
184 (func == 1 || LDT_empty(&ldt_info))) { in write_ldt()
189 if (func == 1) in write_ldt()
202 static long do_modify_ldt_skas(int func, void __user *ptr, in do_modify_ldt_skas() argument
207 switch (func) { in do_modify_ldt_skas()
[all …]
/linux-4.1.27/drivers/staging/rts5208/
Dtrace.c8 void _rtsx_trace(struct rtsx_chip *chip, const char *file, const char *func, in _rtsx_trace() argument
14 dev_dbg(rtsx_dev(chip), "[%s][%s]:[%d]\n", file, func, line); in _rtsx_trace()
17 strncpy(msg->func, func, MSG_FUNC_LEN - 1); in _rtsx_trace()
/linux-4.1.27/drivers/staging/lustre/lustre/include/linux/
Dobd.h65 const char *func; member
70 const char *func, int line) in __client_obd_list_lock() argument
77 lock->func = func; in __client_obd_list_lock()
93 lock->func, lock->line, in __client_obd_list_lock()
/linux-4.1.27/arch/arm/boot/dts/
Dvexpress-v2p-ca15-tc1.dts132 arm,vexpress-sysreg,func = <1 0>;
141 arm,vexpress-sysreg,func = <1 4>;
150 arm,vexpress-sysreg,func = <1 5>;
159 arm,vexpress-sysreg,func = <1 6>;
168 arm,vexpress-sysreg,func = <1 7>;
177 arm,vexpress-sysreg,func = <1 8>;
186 arm,vexpress-sysreg,func = <2 0>;
197 arm,vexpress-sysreg,func = <3 0>;
204 arm,vexpress-sysreg,func = <4 0>;
211 arm,vexpress-sysreg,func = <12 0>;
[all …]
Dvexpress-v2p-ca9.dts196 arm,vexpress-sysreg,func = <1 0>;
205 arm,vexpress-sysreg,func = <1 1>;
214 arm,vexpress-sysreg,func = <1 2>;
223 arm,vexpress-sysreg,func = <2 0>;
232 arm,vexpress-sysreg,func = <2 1>;
241 arm,vexpress-sysreg,func = <2 2>;
250 arm,vexpress-sysreg,func = <2 3>;
259 arm,vexpress-sysreg,func = <2 4>;
267 arm,vexpress-sysreg,func = <2 5>;
277 arm,vexpress-sysreg,func = <3 0>;
[all …]
Dvexpress-v2p-ca15_a7.dts212 arm,vexpress-sysreg,func = <1 0>;
221 arm,vexpress-sysreg,func = <1 1>;
230 arm,vexpress-sysreg,func = <1 2>;
239 arm,vexpress-sysreg,func = <1 3>;
248 arm,vexpress-sysreg,func = <1 4>;
257 arm,vexpress-sysreg,func = <1 5>;
266 arm,vexpress-sysreg,func = <1 6>;
275 arm,vexpress-sysreg,func = <1 7>;
284 arm,vexpress-sysreg,func = <1 8>;
293 arm,vexpress-sysreg,func = <2 0>;
[all …]
Dvexpress-v2p-ca5s.dts134 arm,vexpress-sysreg,func = <1 0>;
143 arm,vexpress-sysreg,func = <1 1>;
152 arm,vexpress-sysreg,func = <1 2>;
161 arm,vexpress-sysreg,func = <1 3>;
170 arm,vexpress-sysreg,func = <1 4>;
179 arm,vexpress-sysreg,func = <1 5>;
188 arm,vexpress-sysreg,func = <4 0>;
/linux-4.1.27/arch/arm/mach-orion5x/
Dpci.c223 #define PCI_CONF_FUNC(func) (((func) & 0x3) << 8) argument
273 static int orion5x_pci_hw_rd_conf(int bus, int dev, u32 func, in orion5x_pci_hw_rd_conf() argument
281 PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR); in orion5x_pci_hw_rd_conf()
295 static int orion5x_pci_hw_wr_conf(int bus, int dev, u32 func, in orion5x_pci_hw_wr_conf() argument
305 PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR); in orion5x_pci_hw_wr_conf()
396 int bus_nr, func, reg; in orion5x_pci_master_slave_enable() local
400 func = PCI_CONF_FUNC_STAT_CMD; in orion5x_pci_master_slave_enable()
402 orion5x_pci_hw_rd_conf(bus_nr, 0, func, reg, 4, &val); in orion5x_pci_master_slave_enable()
404 orion5x_pci_hw_wr_conf(bus_nr, 0, func, reg, 4, val | 0x7); in orion5x_pci_master_slave_enable()
427 u32 func = PCI_CONF_FUNC_BAR_CS(cs->cs_index); in orion5x_setup_pci_wins() local
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dtimer.h8 void (*func)(struct nvkm_alarm *); member
13 void (*func)(struct nvkm_alarm *)) in nvkm_alarm_init()
16 alarm->func = func; in nvkm_alarm_init()
21 bool nvkm_timer_wait_cb(void *, u64 nsec, bool (*func)(void *), void *data);
/linux-4.1.27/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; \
/linux-4.1.27/drivers/misc/sgi-xp/
Dxp_main.c157 xpc_connect(int ch_number, xpc_channel_func func, void *key, u16 payload_size, in xpc_connect() argument
164 DBUG_ON(func == NULL); in xpc_connect()
176 if (registration->func != NULL) { in xpc_connect()
187 registration->func = func; in xpc_connect()
227 if (registration->func == NULL) { in xpc_disconnect()
233 registration->func = NULL; in xpc_disconnect()
/linux-4.1.27/arch/alpha/lib/
Ddivide.S62 #define func(x) __div##x macro
70 #define func(x) __rem##x macro
81 #define ufunction func(lu)
82 #define sfunction func(l)
86 #define ufunction func(qu)
87 #define sfunction func(q)
/linux-4.1.27/drivers/net/team/
Dteam_mode_loadbalance.c131 lb_select_tx_port_func_t *func; member
137 .func = lb_hash_select_tx_port,
141 .func = lb_htpm_select_tx_port,
146 static char *lb_select_tx_port_get_name(lb_select_tx_port_func_t *func) in lb_select_tx_port_get_name() argument
154 if (item->func == func) in lb_select_tx_port_get_name()
169 return item->func; in lb_select_tx_port_get_func()
311 lb_select_tx_port_func_t *func; in lb_tx_method_get() local
314 func = rcu_dereference_protected(lb_priv->select_tx_port_func, in lb_tx_method_get()
316 name = lb_select_tx_port_get_name(func); in lb_tx_method_get()
325 lb_select_tx_port_func_t *func; in lb_tx_method_set() local
[all …]
/linux-4.1.27/kernel/bpf/
Dhelpers.c47 .func = bpf_map_lookup_elem,
66 .func = bpf_map_update_elem,
86 .func = bpf_map_delete_elem,
99 .func = bpf_get_prandom_u32,
110 .func = bpf_get_smp_processor_id,
/linux-4.1.27/arch/m68k/mac/
Dmisc.c458 __u8 (*func)(int); in mac_pram_read() local
463 func = maciisi_read_pram; break; in mac_pram_read()
466 func = pmu_read_pram; break; in mac_pram_read()
468 func = cuda_read_pram; break; in mac_pram_read()
470 func = via_read_pram; in mac_pram_read()
472 if (!func) in mac_pram_read()
475 buffer[i] = (*func)(offset++); in mac_pram_read()
481 void (*func)(int, __u8); in mac_pram_write() local
486 func = maciisi_write_pram; break; in mac_pram_write()
489 func = pmu_write_pram; break; in mac_pram_write()
[all …]
/linux-4.1.27/tools/lib/traceevent/
Dplugin_kmem.c32 const char *func; in call_site_handler() local
41 func = pevent_find_function(event->pevent, val); in call_site_handler()
42 if (!func) in call_site_handler()
47 trace_seq_printf(s, "(%s+0x%x) ", func, (int)(val - addr)); in call_site_handler()
Devent-plugin.c288 pevent_plugin_load_func func; in load_plugin() local
315 func = dlsym(handle, PEVENT_PLUGIN_LOADER_NAME); in load_plugin()
316 if (!func) { in load_plugin()
334 func(pevent); in load_plugin()
451 pevent_plugin_unload_func func; in traceevent_unload_plugins() local
457 func = dlsym(list->handle, PEVENT_PLUGIN_UNLOADER_NAME); in traceevent_unload_plugins()
458 if (func) in traceevent_unload_plugins()
459 func(pevent); in traceevent_unload_plugins()
Dplugin_function.c131 const char *func; in function_handler() local
138 func = pevent_find_function(pevent, function); in function_handler()
146 index = add_and_get_index(parent, func, record->cpu); in function_handler()
150 if (func) in function_handler()
151 trace_seq_printf(s, "%s", func); in function_handler()
Devent-parse.c88 pevent_event_handler_func func; member
101 pevent_func_handler func; member
110 static void free_func_handle(struct pevent_function_handler *func);
336 char *func; member
343 char *func; member
396 func_map[i].func = funclist->func; in func_map_init()
410 func_map[pevent->func_count].func = NULL; in func_map_init()
423 struct func_map *func; in find_func() local
431 func = bsearch(&key, pevent->func_map, pevent->func_count, in find_func()
434 return func; in find_func()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_flip_work.c83 work->func(work, val); in drm_flip_work_queue()
130 work->func(work, task->data); in flip_worker()
145 const char *name, drm_flip_func_t func) in drm_flip_work_init() argument
151 work->func = func; in drm_flip_work_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dpiornv50.c76 if (port && port->func->pattern) in nv50_pior_dp_pattern()
77 return port->func->pattern(port, pattern); in nv50_pior_dp_pattern()
91 if (port && port->func->lnk_ctl) in nv50_pior_dp_lnk_ctl()
92 return port->func->lnk_ctl(port, nr, bw, ef); in nv50_pior_dp_lnk_ctl()
100 if (port && port->func->drv_ctl) in nv50_pior_dp_drv_ctl()
101 return port->func->drv_ctl(port, ln, vs, pe); in nv50_pior_dp_drv_ctl()
/linux-4.1.27/drivers/s390/char/
Dhmcdrv_cache.c114 hmcdrv_cache_ftpfunc func) in hmcdrv_cache_do() argument
133 len = func(&cftp, &hmcdrv_cache_file.fsize); /* now do */ in hmcdrv_cache_do()
148 len = func(ftp, &hmcdrv_cache_file.fsize); in hmcdrv_cache_do()
177 hmcdrv_cache_ftpfunc func) in hmcdrv_cache_cmd() argument
190 len = hmcdrv_cache_do(ftp, func); in hmcdrv_cache_cmd()
196 len = func(ftp, NULL); /* simply do original command */ in hmcdrv_cache_cmd()
/linux-4.1.27/arch/arm/mach-iop13xx/
Dpci.c148 int func = 0; in iop13xx_atu_function() local
156 func = 5; in iop13xx_atu_function()
158 func = 0; in iop13xx_atu_function()
162 func = 0; in iop13xx_atu_function()
164 func = 5; in iop13xx_atu_function()
170 return func; in iop13xx_atu_function()
558 int func = iop13xx_atu_function(IOP13XX_INIT_ATU_ATUE); in iop13xx_atue_setup() local
607 reg_val |= func; in iop13xx_atue_setup()
615 reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; in iop13xx_atue_setup()
621 reg_val |= func << IOP13XX_ATU_OUMBAR_FUNC_NUM; in iop13xx_atue_setup()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Ddisp.c112 const struct drm_encoder_helper_funcs *func = encoder->helper_private; in nv04_display_create() local
114 func->save(encoder); in nv04_display_create()
141 const struct drm_encoder_helper_funcs *func = encoder->helper_private; in nv04_display_destroy() local
143 func->restore(encoder); in nv04_display_destroy()
172 const struct drm_encoder_helper_funcs *func = encoder->helper_private; in nv04_display_init() local
174 func->restore(encoder); in nv04_display_init()
/linux-4.1.27/arch/tile/kernel/
Dmodule.c151 # define MUNGE(func) \ in apply_relocate_add() argument
152 (*location = ((*location & ~func(-1)) | func(value))) in apply_relocate_add()
158 # define MUNGE(func) \ in apply_relocate_add()
159 (*location = swab64((swab64(*location) & ~func(-1)) | func(value))) in apply_relocate_add()
Dftrace.c133 int ftrace_update_ftrace_func(ftrace_func_t func) in ftrace_update_ftrace_func() argument
141 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
202 trace.func = self_addr; in prepare_ftrace_return()
215 void (*func) (void), bool enable) in __ftrace_modify_caller()
217 unsigned long caller_fn = (unsigned long) func; in __ftrace_modify_caller()
/linux-4.1.27/arch/mips/lib/
Dstrnlen_user.S28 .macro __BUILD_STRNLEN_ASM func
29 LEAF(__strnlen_\func\()_asm)
34 FEXPORT(__strnlen_\func\()_nocheck_asm)
60 END(__strnlen_\func\()_asm)
Dstrncpy_user.S31 .macro __BUILD_STRNCPY_ASM func
32 LEAF(__strncpy_from_\func\()_asm)
37 FEXPORT(__strncpy_from_\func\()_nocheck_asm)
57 END(__strncpy_from_\func\()_asm)
Dstrlen_user.S25 .macro __BUILD_STRLEN_ASM func
26 LEAF(__strlen_\func\()_asm)
41 END(__strlen_\func\()_asm)
/linux-4.1.27/arch/microblaze/kernel/
Dftrace.c72 trace.func = self_addr; in prepare_ftrace_return()
182 int ftrace_update_ftrace_func(ftrace_func_t func) in ftrace_update_ftrace_func() argument
185 unsigned int upper = (unsigned int)func; in ftrace_update_ftrace_func()
186 unsigned int lower = (unsigned int)func; in ftrace_update_ftrace_func()
194 __func__, (unsigned int)func, (unsigned int)ip, upper, lower); in ftrace_update_ftrace_func()
/linux-4.1.27/arch/arm/kernel/
Dftrace.c131 int ftrace_update_ftrace_func(ftrace_func_t func) in ftrace_update_ftrace_func() argument
138 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
145 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
211 trace.func = self_addr; in prepare_ftrace_return()
234 void (*func) (void), bool enable) in __ftrace_modify_caller()
236 unsigned long caller_fn = (unsigned long) func; in __ftrace_modify_caller()
/linux-4.1.27/arch/alpha/math-emu/
Dmath.c104 unsigned long fa, fb, fc, func, mode, src; in alpha_fp_emul() local
113 func = (insn >> 5) & 0xf; in alpha_fp_emul()
133 switch (func) { in alpha_fp_emul()
160 if ((func & ~3) == FOP_FNC_CMPxUN) { in alpha_fp_emul()
178 && ((func & 3) >= 2 in alpha_fp_emul()
183 switch (func) { in alpha_fp_emul()
195 switch (func) { in alpha_fp_emul()
247 switch (func) { in alpha_fp_emul()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c68 struct qlcnic_info *info, u16 func) in qlcnic_sriov_pf_cal_res_limit() argument
77 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, func); in qlcnic_sriov_pf_cal_res_limit()
91 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_cal_res_limit()
105 id = qlcnic_sriov_func_to_index(adapter, func); in qlcnic_sriov_pf_cal_res_limit()
233 u8 func) in qlcnic_sriov_pf_reset_vport_handle() argument
239 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_reset_vport_handle()
242 index = qlcnic_sriov_func_to_index(adapter, func); in qlcnic_sriov_pf_reset_vport_handle()
251 u16 vport_handle, u8 func) in qlcnic_sriov_pf_set_vport_handle() argument
257 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_set_vport_handle()
260 index = qlcnic_sriov_func_to_index(adapter, func); in qlcnic_sriov_pf_set_vport_handle()
[all …]
/linux-4.1.27/arch/x86/lib/
Datomic64_cx8_32.S57 .macro addsub_return func ins insc
58 ENTRY(atomic64_\func\()_return_cx8)
88 ENDPROC(atomic64_\func\()_return_cx8)
94 .macro incdec_return func ins insc
95 ENTRY(atomic64_\func\()_return_cx8)
115 ENDPROC(atomic64_\func\()_return_cx8)
/linux-4.1.27/arch/powerpc/boot/dts/
Dmpc8641_hpcn_36b.dts376 /* IDSEL 0x11 func 0 - PCI slot 1 */
382 /* IDSEL 0x11 func 1 - PCI slot 1 */
388 /* IDSEL 0x11 func 2 - PCI slot 1 */
394 /* IDSEL 0x11 func 3 - PCI slot 1 */
400 /* IDSEL 0x11 func 4 - PCI slot 1 */
406 /* IDSEL 0x11 func 5 - PCI slot 1 */
412 /* IDSEL 0x11 func 6 - PCI slot 1 */
418 /* IDSEL 0x11 func 7 - PCI slot 1 */
424 /* IDSEL 0x12 func 0 - PCI slot 2 */
430 /* IDSEL 0x12 func 1 - PCI slot 2 */
[all …]
Dmpc8641_hpcn.dts410 /* IDSEL 0x11 func 0 - PCI slot 1 */
416 /* IDSEL 0x11 func 1 - PCI slot 1 */
422 /* IDSEL 0x11 func 2 - PCI slot 1 */
428 /* IDSEL 0x11 func 3 - PCI slot 1 */
434 /* IDSEL 0x11 func 4 - PCI slot 1 */
440 /* IDSEL 0x11 func 5 - PCI slot 1 */
446 /* IDSEL 0x11 func 6 - PCI slot 1 */
452 /* IDSEL 0x11 func 7 - PCI slot 1 */
458 /* IDSEL 0x12 func 0 - PCI slot 2 */
464 /* IDSEL 0x12 func 1 - PCI slot 2 */
[all …]
Dmpc8572ds.dtsi249 /* IDSEL 0x11 func 0 - PCI slot 1 */
255 /* IDSEL 0x11 func 1 - PCI slot 1 */
261 /* IDSEL 0x11 func 2 - PCI slot 1 */
267 /* IDSEL 0x11 func 3 - PCI slot 1 */
273 /* IDSEL 0x11 func 4 - PCI slot 1 */
279 /* IDSEL 0x11 func 5 - PCI slot 1 */
285 /* IDSEL 0x11 func 6 - PCI slot 1 */
291 /* IDSEL 0x11 func 7 - PCI slot 1 */
297 /* IDSEL 0x12 func 0 - PCI slot 2 */
303 /* IDSEL 0x12 func 1 - PCI slot 2 */
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/
Dnotify.h15 int (*func)(struct nvif_notify *); member
27 int (*func)(struct nvif_notify *), bool work, u8 type,
34 int nvif_notify_new(struct nvif_object *, int (*func)(struct nvif_notify *),
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_ioctl.c87 len = local->func->get_rid(dev, HFA384X_RID_SUPPORTEDDATARATES, buf, in prism2_get_datarates()
217 if (local->iw_mode != IW_MODE_INFRA && local->func->reset_port(dev)) { in prism2_ioctl_siwencode()
269 if (local->func->get_rid(dev, HFA384X_RID_CNFWEPFLAGS, &val, 2, 1) < 0) in prism2_ioctl_giwencode()
316 local->func->reset_port(dev)); in hostap_set_rate()
404 if (local->func->get_rid(dev, HFA384X_RID_TXRATECONTROL, &val, 2, 1) < in prism2_ioctl_giwrate()
423 if (local->func->get_rid(dev, HFA384X_RID_CURRENTTXRATE, &val, 2, 1) < in prism2_ioctl_giwrate()
466 local->func->reset_port(dev)) in prism2_ioctl_siwsens()
484 if (local->func->get_rid(dev, HFA384X_RID_CNFSYSTEMSCALE, &val, 2, 1) < in prism2_ioctl_giwsens()
555 if (local->func->set_rid(dev, HFA384X_RID_RTSTHRESHOLD, &val, 2) || in prism2_ioctl_siwrts()
556 local->func->reset_port(dev)) in prism2_ioctl_siwrts()
[all …]
Dhostap_main.c239 void (*func)(struct sk_buff *, int ok, void *), in hostap_tx_callback_register()
249 entry->func = func; in hostap_tx_callback_register()
292 return iface->local->func->set_rid(dev, rid, &tmp, 2); in hostap_set_word()
310 return iface->local->func->set_rid(dev, rid, &buf, MAX_SSID_LEN + 2); in hostap_set_string()
346 if (local->func->get_rid(local->dev, HFA384X_RID_CNFWEPFLAGS, &val, 2, in hostap_set_encryption()
401 if (local->func->set_rid(local->dev, in hostap_set_encryption()
428 local->func->cmd(local->dev, HFA384X_CMDCODE_READMIF, in hostap_set_antsel()
443 if (local->func->cmd(local->dev, HFA384X_CMDCODE_WRITEMIF, in hostap_set_antsel()
452 local->func->cmd(local->dev, HFA384X_CMDCODE_READMIF, in hostap_set_antsel()
467 if (local->func->cmd(local->dev, HFA384X_CMDCODE_WRITEMIF, in hostap_set_antsel()
[all …]
/linux-4.1.27/net/llc/
Dllc_core.c92 int (*func)(struct sk_buff *skb, in llc_sap_open()
106 sap->rcv_func = func; in llc_sap_open()
137 .func = llc_rcv,
142 .func = llc_rcv,
/linux-4.1.27/arch/mips/include/asm/mach-ralink/
Dpinmux.h17 .func = _func, .gpio = _mask, \
22 .func = _func, .gpio = _gpio, \
49 struct rt2880_pmx_func *func; member
/linux-4.1.27/arch/powerpc/net/
Dbpf_jit_comp.c111 #define CHOOSE_LOAD_FUNC(K, func) \ argument
112 ((int)K < 0 ? ((int)K >= SKF_LL_OFF ? func##_negative_offset : func) : func##_positive_offset)
121 u8 *func; in bpf_jit_build_body() local
409 func = CHOOSE_LOAD_FUNC(K, sk_load_word); in bpf_jit_build_body()
412 func = CHOOSE_LOAD_FUNC(K, sk_load_half); in bpf_jit_build_body()
415 func = CHOOSE_LOAD_FUNC(K, sk_load_byte); in bpf_jit_build_body()
419 PPC_FUNC_ADDR(r_scratch1, func); in bpf_jit_build_body()
432 func = sk_load_word; in bpf_jit_build_body()
435 func = sk_load_half; in bpf_jit_build_body()
438 func = sk_load_byte; in bpf_jit_build_body()
[all …]
/linux-4.1.27/drivers/gpu/drm/r128/
Dr128_ioc32.c39 int func; member
73 || __put_user(init32.func, &init->func) in compat_r128_init()
102 int func; member
121 || __put_user(depth32.func, &depth->func) in compat_r128_depth()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_pci.c39 unsigned int func; member
53 unsigned int func = PCI_FUNC(info->pdev->devfn); in stmmac_pci_find_phy_addr() local
64 if (!strcmp(dmi->name, name) && dmi->func == func) in stmmac_pci_find_phy_addr()
133 .func = 6,
138 .func = 6,
/linux-4.1.27/drivers/dma-buf/
Dfence.c91 cur->func(fence, cur); in fence_signal_locked()
130 cur->func(fence, cur); in fence_signal()
243 fence_func_t func) in fence_add_callback() argument
249 if (WARN_ON(!fence || !func)) in fence_add_callback()
273 cb->func = func; in fence_add_callback()
372 cb.base.func = fence_default_wait_cb; in fence_default_wait()
/linux-4.1.27/sound/pci/hda/
Dpatch_realtek.c1151 .v.func = alc880_fixup_vol_knob,
1625 .v.func = alc260_fixup_gpio1_toggle,
1641 .v.func = alc260_fixup_gpio1_toggle,
1647 .v.func = alc260_fixup_kn1,
1651 .v.func = alc260_fixup_fsc_s7020,
1655 .v.func = alc260_fixup_fsc_s7020_jwse,
1984 .v.func = alc_fixup_sku_ignore,
2071 .v.func = alc889_fixup_coef,
2130 .v.func = alc885_fixup_macpro_gpio,
2134 .v.func = alc889_fixup_dac_route,
[all …]
/linux-4.1.27/arch/x86/kvm/
Dcpuid.c260 u32 func, u32 index, int *nent, int maxnent) in __do_cpuid_ent_emulated() argument
262 switch (func) { in __do_cpuid_ent_emulated()
275 entry->function = func; in __do_cpuid_ent_emulated()
613 static int do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 func, in do_cpuid_ent() argument
617 return __do_cpuid_ent_emulated(entry, func, idx, nent, maxnent); in do_cpuid_ent()
619 return __do_cpuid_ent(entry, func, idx, nent, maxnent); in do_cpuid_ent()
625 u32 func; member
669 u32 func; in kvm_dev_ioctl_get_cpuid() local
671 { .func = 0, .has_leaf_count = true }, in kvm_dev_ioctl_get_cpuid()
672 { .func = 0x80000000, .has_leaf_count = true }, in kvm_dev_ioctl_get_cpuid()
[all …]
/linux-4.1.27/include/net/irda/
Dirda.h58 #define IRDA_ASSERT(expr, func) \ argument
62 func } } while (0)
65 #define IRDA_ASSERT(expr, func) do { (void)(expr); } while (0) argument
/linux-4.1.27/arch/ia64/include/asm/
Dmeminit.h52 extern void call_pernode_memory (unsigned long start, unsigned long len, void *func);
54 # define call_pernode_memory(start, len, func) (*func)(start, len, 0) argument
/linux-4.1.27/arch/sparc/kernel/
Dsun4m_smp.c159 smpfunc_t func; member
172 static void sun4m_cross_call(smpfunc_t func, cpumask_t mask, unsigned long arg1, in sun4m_cross_call() argument
182 ccall_info.func = func; in sun4m_cross_call()
235 ccall_info.func(ccall_info.arg1, ccall_info.arg2, ccall_info.arg3, in smp4m_cross_call_irq()
/linux-4.1.27/sound/core/oss/
Dmulaw.c147 mulaw_f func; member
273 data->func(plugin, src_channels, dst_channels, frames); in mulaw_transfer()
307 mulaw_f func; in snd_pcm_plugin_build_mulaw() local
320 func = mulaw_encode; in snd_pcm_plugin_build_mulaw()
324 func = mulaw_decode; in snd_pcm_plugin_build_mulaw()
339 data->func = func; in snd_pcm_plugin_build_mulaw()
/linux-4.1.27/arch/x86/net/
Dbpf_jit_comp.c107 #define CHOOSE_LOAD_FUNC(K, func) \ argument
108 ((int)K < 0 ? ((int)K >= SKF_LL_OFF ? func##_negative_offset : func) : func##_positive_offset)
273 u8 *func; in do_jit() local
720 func = (u8 *) __bpf_call_base + imm32; in do_jit()
721 jmp_offset = func - (image + addrs[i]); in do_jit()
732 imm32, func, image); in do_jit()
837 func = sk_load_word; in do_jit()
840 func = CHOOSE_LOAD_FUNC(imm32, sk_load_word); in do_jit()
843 jmp_offset = func - (image + addrs[i]); in do_jit()
844 if (!func || !is_simm32(jmp_offset)) { in do_jit()
[all …]
/linux-4.1.27/lib/
Dbtree.c678 void (*func)(void *elem, unsigned long opaque, in __btree_for_each()
692 func, func2, reap, height - 1, count); in __btree_for_each()
694 func(child, opaque, bkey(geo, node, i), count++, in __btree_for_each()
710 visitorl_t func = __func; in visitorl() local
712 func(elem, opaque, *key, index); in visitorl()
719 visitor32_t func = __func; in visitor32() local
722 func(elem, opaque, *key, index); in visitor32()
729 visitor64_t func = __func; in visitor64() local
732 func(elem, opaque, *key, index); in visitor64()
739 visitor128_t func = __func; in visitor128() local
[all …]
/linux-4.1.27/drivers/platform/x86/
Dmxm-wmi.c38 u32 func; member
46 .func = MXM_WMMX_FUNC_MXDS, in mxm_wmi_call_mxds()
71 .func = MXM_WMMX_FUNC_MXMX, in mxm_wmi_call_mxmx()
/linux-4.1.27/drivers/hwmon/
Dibmpex.c343 int counter, int sensor, int func) in create_sensor() argument
354 counter, sensor_name_suffixes[func]); in create_sensor()
357 counter, sensor_name_suffixes[func]); in create_sensor()
359 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
360 data->sensors[sensor].attr[func].dev_attr.attr.name = n; in create_sensor()
361 data->sensors[sensor].attr[func].dev_attr.attr.mode = S_IRUGO; in create_sensor()
362 data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor; in create_sensor()
363 data->sensors[sensor].attr[func].index = sensor; in create_sensor()
364 data->sensors[sensor].attr[func].nr = func; in create_sensor()
367 &data->sensors[sensor].attr[func].dev_attr); in create_sensor()
[all …]
/linux-4.1.27/drivers/media/radio/
Dradio-si476x.c492 enum si476x_func func) in si476x_radio_init_vtable() argument
516 switch (func) { in si476x_radio_init_vtable()
531 enum si476x_func func) in si476x_radio_pretune() argument
544 switch (func) { in si476x_radio_pretune()
563 enum si476x_func func) in si476x_radio_do_post_powerup_init() argument
602 if (func == SI476X_FUNC_FM_RECEIVER) { in si476x_radio_do_post_powerup_init()
617 return si476x_radio_init_vtable(radio, func); in si476x_radio_do_post_powerup_init()
622 enum si476x_func func) in si476x_radio_change_func() argument
631 if (func == radio->core->power_up_parameters.func) in si476x_radio_change_func()
649 radio->core->power_up_parameters.func = func; in si476x_radio_change_func()
[all …]
/linux-4.1.27/arch/mips/kernel/
Dprocess.c185 void *func; member
213 mmi.mm16_m_format.func == mm_swm16_op); in is_ra_save_ins()
221 mmi.mm_m_format.func == mm_swm32_func) || in is_ra_save_ins()
254 ip->r_format.func != mm_pool32axf_op) in is_jump_ins()
264 return ip->r_format.func == jalr_op || ip->r_format.func == jr_op; in is_jump_ins()
303 union mips_instruction *ip = (void *) (((char *) info->func) - 1); in get_frame_info()
305 union mips_instruction *ip = info->func; in get_frame_info()
400 schedule_mfi.func = (void *)addr; in frame_info_init()
479 info.func = (void *)(pc - ofs); in unwind_stack_by_address()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/
Dnotify.c93 int ret = notify->func(notify); in nvif_notify_func()
168 int (*func)(struct nvif_notify *), bool work, u8 event, in nvif_notify_init()
183 notify->func = func; in nvif_notify_init()
232 nvif_notify_new(struct nvif_object *object, int (*func)(struct nvif_notify *), in nvif_notify_new()
238 int ret = nvif_notify_init(object, nvif_notify_del, func, work, in nvif_notify_new()
/linux-4.1.27/arch/sh/drivers/pci/
Dops-sh7786.c26 int dev, func, type, reg; in sh7786_pcie_config_access() local
29 func = PCI_FUNC(devfn); in sh7786_pcie_config_access()
33 if (bus->number > 255 || dev > 31 || func > 7) in sh7786_pcie_config_access()
68 (func << 16) | reg, SH4A_PCIEPAR); in sh7786_pcie_config_access()
/linux-4.1.27/drivers/net/irda/
Dsh_irda.c413 struct sh_irda_xir_func *func; in sh_irda_set_mode() local
421 func = &sh_irda_sir_func; in sh_irda_set_mode()
426 func = &sh_irda_mfir_func; in sh_irda_set_mode()
431 func = &sh_irda_mfir_func; in sh_irda_set_mode()
436 func = &sh_irda_xir_func; in sh_irda_set_mode()
441 self->xir_func = func; in sh_irda_set_mode()
494 struct sh_irda_xir_func *func = self->xir_func; in sh_irda_irq() local
501 func->xir_fre(self); in sh_irda_irq()
503 func->xir_trov(self); in sh_irda_irq()
505 func->xir_9(self); in sh_irda_irq()
[all …]
/linux-4.1.27/arch/arm/probes/kprobes/
Dtest-core.c292 static int call_test_func(long (*func)(long, long), bool check_test_regs) in call_test_func()
299 ret = (*func)(FUNC_ARG1, FUNC_ARG2); in call_test_func()
335 static int test_kprobe(long (*func)(long, long)) in test_kprobe()
339 the_kprobe.addr = (kprobe_opcode_t *)func; in test_kprobe()
346 ret = call_test_func(func, true); in test_kprobe()
361 if (!call_test_func(func, false)) in test_kprobe()
384 static int test_jprobe(long (*func)(long, long)) in test_jprobe()
388 the_jprobe.kp.addr = (kprobe_opcode_t *)func; in test_jprobe()
395 ret = call_test_func(func, true); in test_jprobe()
406 if (!call_test_func(func, false)) in test_jprobe()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dinterval_tree.h109 interval_callback_t func, void *data);
113 interval_callback_t func, void *data);
115 interval_callback_t func, void *data);
/linux-4.1.27/arch/blackfin/lib/
Dins.S74 #define COMMON_INS(func, ops) \ argument
75 ENTRY(_ins##func) \
89 ENDPROC(_ins##func)

123456