Home
last modified time | relevance | path

Searched refs:usage (Results 1 - 25 of 923) sorted by relevance

12345678910>>...37

/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-input.c52 __u32 usage; /* the HID usage associated */ member
56 unsigned int slot_overwrite; /* for globals: allows to set the usage
80 .usage = HID_DG_ERASER,
83 .usage = HID_DG_INVERT,
86 .usage = HID_DG_TIPSWITCH,
89 .usage = HID_DG_TIPPRESSURE,
92 .usage = HID_DG_INRANGE,
96 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c))
97 #define map_rel(c) hid_map_usage(hidinput, usage,
107 match_scancode(struct hid_usage *usage, unsigned int cur_idx, unsigned int scancode) match_scancode() argument
113 match_keycode(struct hid_usage *usage, unsigned int cur_idx, unsigned int keycode) match_keycode() argument
122 match_index(struct hid_usage *usage, unsigned int cur_idx, unsigned int idx) match_index() argument
138 struct hid_usage *usage; hidinput_find_key() local
164 struct hid_usage *usage; hidinput_locate_usage() local
181 struct hid_usage *usage; hidinput_getkeycode() local
203 struct hid_usage *usage; hidinput_setkeycode() local
642 hidinput_set_battery_charge_status(struct hid_device *dev, unsigned int usage, int value) hidinput_set_battery_charge_status() argument
670 hidinput_set_battery_charge_status(struct hid_device *dev, unsigned int usage, int value) hidinput_set_battery_charge_status() argument
677 hidinput_field_in_collection(struct hid_device *device, struct hid_field *field, unsigned int type, unsigned int usage) hidinput_field_in_collection() argument
687 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage, unsigned int usage_index) hidinput_configure_usage() argument
1463 hidinput_handle_scroll(struct hid_usage *usage, struct input_dev *input, __s32 value) hidinput_handle_scroll() argument
1523 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) hidinput_hid_event() argument
1900 struct hid_usage *usage; __hidinput_change_resolution_multipliers() local
1983 struct hid_usage *usage; report_features() local
[all...]
H A Dhid-a4tech.c35 struct hid_field *field, struct hid_usage *usage, in a4_input_mapping()
41 usage->hid == A4_WHEEL_ORIENTATION) { in a4_input_mapping()
43 * We do not want to have this usage mapped to anything as it's in a4_input_mapping()
57 struct hid_field *field, struct hid_usage *usage, in a4_input_mapped()
62 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_input_mapped()
67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped()
74 struct hid_usage *usage, __s32 value) in a4_event()
85 if (usage->type == EV_REL && usage in a4_event()
34 a4_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapping() argument
56 a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapped() argument
73 a4_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) a4_event() argument
[all...]
H A Dhid-ezkey.c22 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
23 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
26 struct hid_field *field, struct hid_usage *usage, in ez_input_mapping()
29 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in ez_input_mapping()
32 switch (usage->hid & HID_USAGE) { in ez_input_mapping()
37 * totally broken way. We map this usage temporarily in ez_input_mapping()
48 struct hid_usage *usage, __s32 value) in ez_event()
51 !usage->type) in ez_event()
55 if (usage->type == EV_REL && usage in ez_event()
25 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ez_input_mapping() argument
47 ez_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ez_event() argument
[all...]
H A Dhid-gyration.c22 #define gy_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
25 struct hid_field *field, struct hid_usage *usage, in gyration_input_mapping()
28 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in gyration_input_mapping()
32 switch (usage->hid & HID_USAGE) { in gyration_input_mapping()
55 struct hid_usage *usage, __s32 value) in gyration_event()
61 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK && in gyration_event()
62 (usage->hid & 0xff) == 0x82) { in gyration_event()
64 input_event(input, usage->type, usage->code, 1); in gyration_event()
66 input_event(input, usage in gyration_event()
24 gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) gyration_input_mapping() argument
54 gyration_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) gyration_event() argument
[all...]
H A Dhid-lenovo.c63 #define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
142 * - get a reasonable usage max for the vendor collection in lenovo_report_fixup()
156 rdesc[244] = 0x00; /* usage minimum = 0x00 */ in lenovo_report_fixup()
157 rdesc[247] = 0xff; /* usage maximum = 0xff */ in lenovo_report_fixup()
171 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tpkbd()
173 if (usage->hid == (HID_UP_BUTTON | 0x0010)) { in lenovo_input_mapping_tpkbd()
184 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_cptkbd()
187 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR || in lenovo_input_mapping_cptkbd()
188 (usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) { in lenovo_input_mapping_cptkbd()
189 switch (usage in lenovo_input_mapping_cptkbd()
169 lenovo_input_mapping_tpkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_tpkbd() argument
182 lenovo_input_mapping_cptkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_cptkbd() argument
256 lenovo_input_mapping_tpIIkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_tpIIkbd() argument
351 lenovo_input_mapping_scrollpoint(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_scrollpoint() argument
362 lenovo_input_mapping_tp10_ultrabook_kbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_tp10_ultrabook_kbd() argument
400 lenovo_input_mapping_x1_tab_kbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_x1_tab_kbd() argument
448 lenovo_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping() argument
702 lenovo_event_tp10ubkbd(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lenovo_event_tp10ubkbd() argument
720 lenovo_event_cptkbd(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lenovo_event_cptkbd() argument
766 lenovo_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lenovo_event() argument
[all...]
H A Dhid-icade.c38 /* The translation code uses HID usage instead of input layer
102 * int usage = usage_for_key (trans->from);
103 * max_usage = usage > max_usage ? usage : max_usage;
165 struct hid_usage *usage, __s32 value) in icade_event()
170 !usage->type) in icade_event()
177 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_event()
182 input_event(field->hidinput->input, usage->type, in icade_event()
189 struct hid_field *field, struct hid_usage *usage, in icade_input_mapping()
194 if ((usage in icade_input_mapping()
164 icade_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) icade_event() argument
188 icade_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) icade_input_mapping() argument
211 icade_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) icade_input_mapped() argument
[all...]
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-input.c51 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c))
52 #define map_rel(c) hid_map_usage(hidinput, usage, &bit, &max, EV_REL, (c))
53 #define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c))
54 #define map_led(c) hid_map_usage(hidinput, usage, &bit, &max, EV_LED, (c))
56 #define map_abs_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \
58 #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \
61 static bool match_scancode(struct hid_usage *usage, in match_scancode() argument
64 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; in match_scancode()
67 static bool match_keycode(struct hid_usage *usage, in match_keycode() argument
73 return (usage in match_keycode()
76 match_index(struct hid_usage *usage, unsigned int cur_idx, unsigned int idx) match_index() argument
92 struct hid_usage *usage; hidinput_find_key() local
118 struct hid_usage *usage; hidinput_locate_usage() local
135 struct hid_usage *usage; hidinput_getkeycode() local
157 struct hid_usage *usage; hidinput_setkeycode() local
566 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage) hidinput_configure_usage() argument
1256 hidinput_handle_scroll(struct hid_usage *usage, struct input_dev *input, __s32 value) hidinput_handle_scroll() argument
1288 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) hidinput_hid_event() argument
1592 struct hid_usage *usage; __hidinput_change_resolution_multipliers() local
1675 struct hid_usage *usage; report_features() local
[all...]
H A Dhid-a4tech.c35 struct hid_field *field, struct hid_usage *usage, in a4_input_mapping()
41 usage->hid == A4_WHEEL_ORIENTATION) { in a4_input_mapping()
43 * We do not want to have this usage mapped to anything as it's in a4_input_mapping()
57 struct hid_field *field, struct hid_usage *usage, in a4_input_mapped()
62 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_input_mapped()
67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped()
74 struct hid_usage *usage, __s32 value) in a4_event()
85 if (usage->type == EV_REL && usage in a4_event()
34 a4_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapping() argument
56 a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapped() argument
73 a4_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) a4_event() argument
[all...]
H A Dhid-ezkey.c22 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
23 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
26 struct hid_field *field, struct hid_usage *usage, in ez_input_mapping()
29 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in ez_input_mapping()
32 switch (usage->hid & HID_USAGE) { in ez_input_mapping()
37 * totally broken way. We map this usage temporarily in ez_input_mapping()
48 struct hid_usage *usage, __s32 value) in ez_event()
51 !usage->type) in ez_event()
55 if (usage->type == EV_REL && usage in ez_event()
25 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ez_input_mapping() argument
47 ez_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ez_event() argument
[all...]
H A Dhid-gyration.c22 #define gy_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
25 struct hid_field *field, struct hid_usage *usage, in gyration_input_mapping()
28 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in gyration_input_mapping()
32 switch (usage->hid & HID_USAGE) { in gyration_input_mapping()
55 struct hid_usage *usage, __s32 value) in gyration_event()
61 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK && in gyration_event()
62 (usage->hid & 0xff) == 0x82) { in gyration_event()
64 input_event(input, usage->type, usage->code, 1); in gyration_event()
66 input_event(input, usage in gyration_event()
24 gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) gyration_input_mapping() argument
54 gyration_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) gyration_event() argument
[all...]
H A Dhid-icade.c38 /* The translation code uses HID usage instead of input layer
102 * int usage = usage_for_key (trans->from);
103 * max_usage = usage > max_usage ? usage : max_usage;
165 struct hid_usage *usage, __s32 value) in icade_event()
170 !usage->type) in icade_event()
177 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_event()
182 input_event(field->hidinput->input, usage->type, in icade_event()
189 struct hid_field *field, struct hid_usage *usage, in icade_input_mapping()
194 if ((usage in icade_input_mapping()
164 icade_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) icade_event() argument
188 icade_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) icade_input_mapping() argument
211 icade_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) icade_input_mapped() argument
[all...]
/kernel/linux/linux-6.6/tools/verification/rv/src/
H A Drv.c42 static const char *const usage[] = { in rv_list() local
44 " usage: rv list [-h]", in rv_list()
56 /* more than 1 is always usage */ in rv_list()
57 for (i = 0; usage[i]; i++) in rv_list()
58 fprintf(stderr, "%s\n", usage[i]); in rv_list()
79 static const char *const usage[] = { in rv_mon() local
81 " usage: rv mon [-h] monitor [monitor options]", in rv_mon()
97 for (i = 0; usage[i]; i++) in rv_mon()
98 fprintf(stderr, "%s\n", usage[i]); in rv_mon()
104 for (i = 0; usage[ in rv_mon()
121 static void usage(int exit_val, const char *fmt, ...) usage() function
127 static const char *const usage[] = { usage() local
[all...]
/kernel/linux/linux-6.6/drivers/dma-buf/
H A Dst-dma-resv.c65 enum dma_resv_usage usage = (unsigned long)arg; in test_signaling() local
89 dma_resv_add_fence(&resv, f, usage); in test_signaling()
90 if (dma_resv_test_signaled(&resv, usage)) { in test_signaling()
96 if (!dma_resv_test_signaled(&resv, usage)) { in test_signaling()
111 enum dma_resv_usage usage = (unsigned long)arg; in test_for_each() local
136 dma_resv_add_fence(&resv, f, usage); in test_for_each()
139 dma_resv_for_each_fence(&cursor, &resv, usage, fence) { in test_for_each()
150 if (dma_resv_iter_usage(&cursor) != usage) { in test_for_each()
151 pr_err("Unexpected fence usage\n"); in test_for_each()
172 enum dma_resv_usage usage in test_for_each_unlocked() local
246 enum dma_resv_usage usage = (unsigned long)arg; test_get_fences() local
305 enum dma_resv_usage usage; dma_resv() local
[all...]
H A Ddma-resv.c49 * can have any number of fences attaches to it. Each fence carries an usage
69 /* Extract the fence and usage flags from an RCU protected entry in the list. */
72 enum dma_resv_usage *usage) in dma_resv_list_entry()
79 if (usage) in dma_resv_list_entry()
80 *usage = tmp & DMA_RESV_LIST_MASK; in dma_resv_list_entry()
83 /* Set the fence and usage flags at the specific index in the list. */
87 enum dma_resv_usage usage) in dma_resv_list_set()
89 long tmp = ((long)fence) | usage; in dma_resv_list_set()
209 enum dma_resv_usage usage; in dma_resv_reserve_fences() local
212 dma_resv_list_entry(old, i, obj, &fence, &usage); in dma_resv_reserve_fences()
70 dma_resv_list_entry(struct dma_resv_list *list, unsigned int index, struct dma_resv *resv, struct dma_fence **fence, enum dma_resv_usage *usage) dma_resv_list_entry() argument
84 dma_resv_list_set(struct dma_resv_list *list, unsigned int index, struct dma_fence *fence, enum dma_resv_usage usage) dma_resv_list_set() argument
280 dma_resv_add_fence(struct dma_resv *obj, struct dma_fence *fence, enum dma_resv_usage usage) dma_resv_add_fence() argument
335 dma_resv_replace_fences(struct dma_resv *obj, uint64_t context, struct dma_fence *replacement, enum dma_resv_usage usage) dma_resv_replace_fences() argument
561 dma_resv_get_fences(struct dma_resv *obj, enum dma_resv_usage usage, unsigned int *num_fences, struct dma_fence ***fences) dma_resv_get_fences() argument
619 dma_resv_get_singleton(struct dma_resv *obj, enum dma_resv_usage usage, struct dma_fence **fence) dma_resv_get_singleton() argument
670 dma_resv_wait_timeout(struct dma_resv *obj, enum dma_resv_usage usage, bool intr, unsigned long timeout) dma_resv_wait_timeout() argument
701 dma_resv_set_deadline(struct dma_resv *obj, enum dma_resv_usage usage, ktime_t deadline) dma_resv_set_deadline() argument
728 dma_resv_test_signaled(struct dma_resv *obj, enum dma_resv_usage usage) dma_resv_test_signaled() argument
753 static const char *usage[] = { "kernel", "write", "read", "bookkeep" }; dma_resv_describe() local
[all...]
/kernel/liteos_a/kernel/extended/plimit/
H A Dlos_memlimit.c85 if ((currMemLimit->usage + parentMemLimit->usage) >= parentMemLimit->limit) { in MemLimiteMigrateCheck()
98 parentMemLimit->usage += currMemLimit->usage; in OsMemLimiterMigrate()
100 if (parentMemLimit->peak < parentMemLimit->usage) { in OsMemLimiterMigrate()
101 parentMemLimit->peak = parentMemLimit->usage; in OsMemLimiterMigrate()
106 parentMemLimit->usage -= pcb->limitStat.memUsed; in OsMemLimiterMigrate()
107 currMemLimit->usage += pcb->limitStat.memUsed; in OsMemLimiterMigrate()
114 if ((memLimit->usage + pcb->limitStat.memUsed) > memLimit->limit) { in OsMemLimitAddProcessCheck()
124 plimits->usage in OsMemLimitAddProcess()
[all...]
/kernel/linux/linux-5.10/mm/
H A Dpage_counter.c17 unsigned long usage) in propagate_protected_usage()
28 protected = min(usage, min); in propagate_protected_usage()
37 protected = min(usage, low); in propagate_protected_usage()
54 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
74 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
116 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
118 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge()
173 long usage; in page_counter_set_max() local
186 usage = atomic_long_read(&counter->usage); in page_counter_set_max()
16 propagate_protected_usage(struct page_counter *c, unsigned long usage) propagate_protected_usage() argument
[all...]
H A Dsparse.c235 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init()
329 struct mem_section_usage *usage, unsigned long flags) in sparse_init_one_section()
334 ms->usage = usage; in sparse_init_one_section()
352 struct mem_section_usage *usage; in sparse_early_usemaps_alloc_pgdat_section() local
369 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
370 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section()
374 return usage; in sparse_early_usemaps_alloc_pgdat_section()
378 struct mem_section_usage *usage) in check_usemap_section_nr()
392 usemap_snr = pfn_to_section_nr(__pa(usage) >> PAGE_SHIF in check_usemap_section_nr()
327 sparse_init_one_section(struct mem_section *ms, unsigned long pnum, struct page *mem_map, struct mem_section_usage *usage, unsigned long flags) sparse_init_one_section() argument
377 check_usemap_section_nr(int nid, struct mem_section_usage *usage) check_usemap_section_nr() argument
427 check_usemap_section_nr(int nid, struct mem_section_usage *usage) check_usemap_section_nr() argument
527 struct mem_section_usage *usage; sparse_init_nid() local
554 sparse_init_one_section(__nr_to_section(pnum), pnum, map, usage, sparse_init_nid() local
850 struct mem_section_usage *usage = NULL; section_activate() local
[all...]
/kernel/uniproton/src/om/cpup/
H A Dprt_cpup_thread_64.c96 cpup[maxNum].usage = OsCpupIntGet(); in OsCpupTask()
110 cpup[maxNum].usage = g_cpup[index].usage; in OsCpupTask()
166 g_cpup[index].usage = (U16)DIV64(g_cpup[index].allTime * CPUP_USE_RATE, g_baseValue); in OsCpupTickCal()
167 if (g_cpup[index].usage > CPUP_USE_RATE) { in OsCpupTickCal()
168 g_cpup[index].usage = CPUP_USE_RATE; in OsCpupTickCal()
172 OsMcCpupSet(OsGetHwThreadId(), (U32)(CPUP_USE_RATE - g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].usage)); in OsCpupTickCal()
183 U16 usage = 0; in OsCpupIntGet() local
186 usage += g_cpup[index].usage; in OsCpupIntGet()
[all...]
/kernel/linux/linux-6.6/mm/
H A Dpage_counter.c17 unsigned long usage) in propagate_protected_usage()
25 protected = min(usage, READ_ONCE(c->min)); in propagate_protected_usage()
34 protected = min(usage, READ_ONCE(c->low)); in propagate_protected_usage()
53 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
58 atomic_long_set(&counter->usage, new); in page_counter_cancel()
77 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
119 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
121 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge()
175 long usage; in page_counter_set_max() local
188 usage in page_counter_set_max()
16 propagate_protected_usage(struct page_counter *c, unsigned long usage) propagate_protected_usage() argument
[all...]
H A Dsparse.c208 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init()
302 struct mem_section_usage *usage, unsigned long flags) in sparse_init_one_section()
307 ms->usage = usage; in sparse_init_one_section()
335 struct mem_section_usage *usage; in sparse_early_usemaps_alloc_pgdat_section() local
352 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
353 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section()
357 return usage; in sparse_early_usemaps_alloc_pgdat_section()
361 struct mem_section_usage *usage) in check_usemap_section_nr()
375 usemap_snr = pfn_to_section_nr(__pa(usage) >> PAGE_SHIF in check_usemap_section_nr()
300 sparse_init_one_section(struct mem_section *ms, unsigned long pnum, struct page *mem_map, struct mem_section_usage *usage, unsigned long flags) sparse_init_one_section() argument
360 check_usemap_section_nr(int nid, struct mem_section_usage *usage) check_usemap_section_nr() argument
410 check_usemap_section_nr(int nid, struct mem_section_usage *usage) check_usemap_section_nr() argument
509 struct mem_section_usage *usage; sparse_init_nid() local
536 sparse_init_one_section(__nr_to_section(pnum), pnum, map, usage, sparse_init_nid() local
833 struct mem_section_usage *usage = NULL; section_activate() local
[all...]
/kernel/linux/linux-5.10/tools/power/acpi/tools/ec/
H A Dec_access.c35 void usage(char progname[], int exit_status) in usage() function
62 usage(argv[0], EXIT_FAILURE); in parse_opts()
67 usage(argv[0], EXIT_FAILURE); in parse_opts()
72 usage(argv[0], EXIT_FAILURE); in parse_opts()
78 usage(argv[0], EXIT_FAILURE); in parse_opts()
84 usage(argv[0], EXIT_FAILURE); in parse_opts()
92 usage(argv[0], EXIT_SUCCESS); in parse_opts()
95 usage(argv[0], EXIT_FAILURE); in parse_opts()
104 usage(argv[0], EXIT_FAILURE); in parse_opts()
110 usage(arg in parse_opts()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Ddma-resv.h68 * with this usage. But fences can never be degraded in the sense that a fence
123 * This returns the implicit synchronization usage for write or read accesses,
197 /** @usage: Return fences with this usage or lower. */
198 enum dma_resv_usage usage; member
203 /** @fence_usage: the usage of the current fence */
228 * @usage: controls which fences to include, see enum dma_resv_usage.
232 enum dma_resv_usage usage) in dma_resv_iter_begin()
235 cursor->usage = usage; in dma_resv_iter_begin()
230 dma_resv_iter_begin(struct dma_resv_iter *cursor, struct dma_resv *obj, enum dma_resv_usage usage) dma_resv_iter_begin() argument
[all...]
/kernel/linux/linux-6.6/tools/power/acpi/tools/ec/
H A Dec_access.c35 void usage(char progname[], int exit_status) in usage() function
62 usage(argv[0], EXIT_FAILURE); in parse_opts()
67 usage(argv[0], EXIT_FAILURE); in parse_opts()
72 usage(argv[0], EXIT_FAILURE); in parse_opts()
78 usage(argv[0], EXIT_FAILURE); in parse_opts()
84 usage(argv[0], EXIT_FAILURE); in parse_opts()
92 usage(argv[0], EXIT_SUCCESS); in parse_opts()
95 usage(argv[0], EXIT_FAILURE); in parse_opts()
104 usage(argv[0], EXIT_FAILURE); in parse_opts()
110 usage(arg in parse_opts()
[all...]
/kernel/linux/linux-5.10/tools/usb/usbip/src/
H A Dusbip.c31 printf("usage: %s", usbip_usage_string); in usbip_usage()
38 void (*usage)(void); member
46 .usage = NULL
52 .usage = NULL
58 .usage = usbip_attach_usage
64 .usage = usbip_detach_usage
70 .usage = usbip_list_usage
76 .usage = usbip_bind_usage
82 .usage = usbip_unbind_usage
88 .usage
[all...]
/kernel/linux/linux-6.6/tools/usb/usbip/src/
H A Dusbip.c31 printf("usage: %s", usbip_usage_string); in usbip_usage()
38 void (*usage)(void); member
46 .usage = NULL
52 .usage = NULL
58 .usage = usbip_attach_usage
64 .usage = usbip_detach_usage
70 .usage = usbip_list_usage
76 .usage = usbip_bind_usage
82 .usage = usbip_unbind_usage
88 .usage
[all...]

Completed in 12 milliseconds

12345678910>>...37