Home
last modified time | relevance | path

Searched refs:nums (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/mm/
Dframe_vector.c83 unsigned long *nums = frame_vector_pfns(vec); in get_vaddr_frames() local
86 err = follow_pfn(vma, start, &nums[ret]); in get_vaddr_frames()
156 unsigned long *nums; in frame_vector_to_pages() local
161 nums = frame_vector_pfns(vec); in frame_vector_to_pages()
163 if (!pfn_valid(nums[i])) in frame_vector_to_pages()
165 pages = (struct page **)nums; in frame_vector_to_pages()
167 pages[i] = pfn_to_page(nums[i]); in frame_vector_to_pages()
182 unsigned long *nums; in frame_vector_to_pfns() local
188 nums = (unsigned long *)pages; in frame_vector_to_pfns()
190 nums[i] = page_to_pfn(pages[i]); in frame_vector_to_pfns()
/kernel/linux/linux-5.10/drivers/clk/hisilicon/
Dclk.c92 int nums, struct hisi_clock_data *data) in hisi_clk_register_fixed_rate() argument
97 for (i = 0; i < nums; i++) { in hisi_clk_register_fixed_rate()
121 int nums, in hisi_clk_register_fixed_factor() argument
127 for (i = 0; i < nums; i++) { in hisi_clk_register_fixed_factor()
151 int nums, struct hisi_clock_data *data) in hisi_clk_register_mux() argument
157 for (i = 0; i < nums; i++) { in hisi_clk_register_mux()
190 int nums, struct hisi_clock_data *data) in hisi_clk_register_phase() argument
196 for (i = 0; i < nums; i++) { in hisi_clk_register_phase()
213 int nums, struct hisi_clock_data *data) in hisi_clk_register_divider() argument
219 for (i = 0; i < nums; i++) { in hisi_clk_register_divider()
[all …]
Dclk.h127 int nums, struct hisi_clock_data *data);
140 int nums, struct hisi_clock_data *data) \
144 for (i = 0; i < nums; i++) { \
Dclk-hix5hd2.c253 hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums, in hix5hd2_clk_register_complex() argument
259 for (i = 0; i < nums; i++) { in hix5hd2_clk_register_complex()
/kernel/linux/linux-5.10/net/sctp/
Dstream.c515 __u16 i, nums; in sctp_process_strreset_outreq() local
543 nums = (ntohs(param.p->length) - sizeof(*outreq)) / sizeof(__u16); in sctp_process_strreset_outreq()
545 for (i = 0; i < nums; i++) { in sctp_process_strreset_outreq()
576 if (nums) in sctp_process_strreset_outreq()
577 for (i = 0; i < nums; i++) in sctp_process_strreset_outreq()
586 SCTP_STREAM_RESET_INCOMING_SSN, nums, str_p, GFP_ATOMIC); in sctp_process_strreset_outreq()
604 __u16 i, nums; in sctp_process_strreset_inreq() local
629 nums = (ntohs(param.p->length) - sizeof(*inreq)) / sizeof(__u16); in sctp_process_strreset_inreq()
631 for (i = 0; i < nums; i++) { in sctp_process_strreset_inreq()
638 if (!sctp_stream_outq_is_empty(stream, nums, str_p)) { in sctp_process_strreset_inreq()
[all …]
/kernel/linux/linux-5.10/drivers/clk/socfpga/
Dclk-agilex.c326 int nums, struct stratix10_clock_data *data) in agilex_clk_register_c_perip() argument
332 for (i = 0; i < nums; i++) { in agilex_clk_register_c_perip()
345 int nums, struct stratix10_clock_data *data) in agilex_clk_register_cnt_perip() argument
351 for (i = 0; i < nums; i++) { in agilex_clk_register_cnt_perip()
364 static int agilex_clk_register_gate(const struct stratix10_gate_clock *clks, int nums, stru… in agilex_clk_register_gate() argument
370 for (i = 0; i < nums; i++) { in agilex_clk_register_gate()
384 int nums, struct stratix10_clock_data *data) in agilex_clk_register_pll() argument
390 for (i = 0; i < nums; i++) { in agilex_clk_register_pll()
Dclk-s10.c308 int nums, struct stratix10_clock_data *data) in s10_clk_register_c_perip() argument
314 for (i = 0; i < nums; i++) { in s10_clk_register_c_perip()
327 int nums, struct stratix10_clock_data *data) in s10_clk_register_cnt_perip() argument
333 for (i = 0; i < nums; i++) { in s10_clk_register_cnt_perip()
347 int nums, struct stratix10_clock_data *data) in s10_clk_register_gate() argument
353 for (i = 0; i < nums; i++) { in s10_clk_register_gate()
367 int nums, struct stratix10_clock_data *data) in s10_clk_register_pll() argument
373 for (i = 0; i < nums; i++) { in s10_clk_register_pll()
/kernel/linux/linux-5.10/drivers/iio/pressure/
Ddps310.c477 s64 nums[7]; in dps310_calculate_pressure() local
504 nums[0] = (s64)data->c00; in dps310_calculate_pressure()
506 nums[1] = p * (s64)data->c10; in dps310_calculate_pressure()
508 nums[2] = p * p * (s64)data->c20; in dps310_calculate_pressure()
510 nums[3] = p * p * p * (s64)data->c30; in dps310_calculate_pressure()
512 nums[4] = t * (s64)data->c01; in dps310_calculate_pressure()
514 nums[5] = t * p * (s64)data->c11; in dps310_calculate_pressure()
516 nums[6] = t * p * p * (s64)data->c21; in dps310_calculate_pressure()
523 if (nums[i] < 0LL) { in dps310_calculate_pressure()
524 pressure -= div64_u64_rem(-nums[i], denoms[i], &irem); in dps310_calculate_pressure()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/interrupt-controller/
Dcsky,apb-intc.txt8 - csky,apb-intc is used in a lot of csky fpgas and socs, it support 64 irq nums.
9 - csky,dual-apb-intc consists of 2 apb-intc and 128 irq nums supported.
10 - csky,gx6605s-intc is gx6605s soc internal irq interrupt controller, 64 irq nums.
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_generic.c235 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() argument
238 for (i = 0; i < nums; i++) in find_idx_in_nid_list()
384 int i, nums; in __parse_nid_path() local
391 nums = snd_hda_get_conn_list(codec, to_nid, &conn); in __parse_nid_path()
392 for (i = 0; i < nums; i++) { in __parse_nid_path()
408 for (i = 0; i < nums; i++) { in __parse_nid_path()
423 if (nums > 1 && get_wcaps_type(get_wcaps(codec, to_nid)) != AC_WID_AUD_MIX) in __parse_nid_path()
781 int n, nums, idx; in activate_amp_in() local
785 nums = snd_hda_get_conn_list(codec, nid, &conn); in activate_amp_in()
786 if (nums < 0) in activate_amp_in()
[all …]
Dpatch_via.c816 int i, nums; in add_secret_dac_path() local
822 nums = snd_hda_get_connections(codec, spec->gen.mixer_nid, conn, in add_secret_dac_path()
824 for (i = 0; i < nums; i++) { in add_secret_dac_path()
834 conn[nums++] = nid; in add_secret_dac_path()
837 nums, conn); in add_secret_dac_path()
Dhda_auto_parser.c93 static void reorder_outputs(unsigned int nums, hda_nid_t *pins) in reorder_outputs() argument
97 switch (nums) { in reorder_outputs()
593 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() argument
596 for (i = 0; i < nums; i++) in find_idx_in_nid_list()
Dhda_codec.c268 int i, nums; in snd_hda_get_conn_index() local
270 nums = snd_hda_get_conn_list(codec, mux, &conn); in snd_hda_get_conn_index()
271 for (i = 0; i < nums; i++) in snd_hda_get_conn_index()
281 for (i = 0; i < nums; i++) { in snd_hda_get_conn_index()
1589 int nums, step; in snd_hda_set_vmaster_tlv() local
1592 nums = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; in snd_hda_set_vmaster_tlv()
1597 tlv[SNDRV_CTL_TLVO_DB_SCALE_MIN] = -nums * step; in snd_hda_set_vmaster_tlv()
Dpatch_hdmi.c2423 static void hdmi_array_init(struct hdmi_spec *spec, int nums) in hdmi_array_init() argument
2425 snd_array_init(&spec->pins, sizeof(struct hdmi_spec_per_pin), nums); in hdmi_array_init()
2426 snd_array_init(&spec->cvts, sizeof(struct hdmi_spec_per_cvt), nums); in hdmi_array_init()
/kernel/linux/linux-5.10/sound/hda/
Dhdac_device.c407 int nums, err = 0; in snd_hdac_refresh_widgets() local
414 nums = snd_hdac_get_sub_nodes(codec, codec->afg, &start_nid); in snd_hdac_refresh_widgets()
415 if (!start_nid || nums <= 0 || nums >= 0xff) { in snd_hdac_refresh_widgets()
422 err = hda_widget_sysfs_reinit(codec, start_nid, nums); in snd_hdac_refresh_widgets()
426 codec->num_nodes = nums; in snd_hdac_refresh_widgets()
428 codec->end_nid = start_nid + nums; in snd_hdac_refresh_widgets()
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c98 unsigned long *nums = frame_vector_pfns(vec); in vb2_vmalloc_get_userptr() local
105 if (nums[i-1] + 1 != nums[i]) in vb2_vmalloc_get_userptr()
108 ioremap(__pfn_to_phys(nums[0]), size + offset); in vb2_vmalloc_get_userptr()
Dvideobuf2-dma-contig.c499 unsigned long *nums = frame_vector_pfns(vec); in vb2_dc_get_userptr() local
506 if (nums[i-1] + 1 != nums[i]) in vb2_dc_get_userptr()
509 __pfn_to_phys(nums[0]), size, buf->dma_dir, 0); in vb2_dc_get_userptr()
/kernel/linux/linux-5.10/drivers/usb/serial/
Dsierra.c49 const u8 *nums; /* array of interface numbers */ member
111 if (list->nums[i] == ifnum) in is_listed()
158 .nums = hi_memory_typeA_ifaces,
164 .nums = hi_memory_typeB_ifaces,
171 .nums = direct_ip_non_serial_ifaces,
/kernel/linux/linux-5.10/sound/pci/cs46xx/
Dcs46xx_lib.c387 unsigned int nums, fwlen, fwsize; in load_firmware() local
413 nums = module->symbol_table.nsymbols = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
414 if (nums >= 40) in load_firmware()
417 kcalloc(nums, sizeof(struct dsp_symbol_entry), GFP_KERNEL); in load_firmware()
420 for (i = 0; i < nums; i++) { in load_firmware()
433 nums = module->nsegments = le32_to_cpu(fwdat[fwlen++]); in load_firmware()
434 if (nums > 10) in load_firmware()
437 kcalloc(nums, sizeof(struct dsp_segment_desc), GFP_KERNEL); in load_firmware()
440 for (i = 0; i < nums; i++) { in load_firmware()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/include/
Dkgd_pp_interface.h164 uint32_t nums; member
/kernel/linux/linux-5.10/sound/ppc/
Dawacs.c702 static int build_mixers(struct snd_pmac *chip, int nums, in build_mixers() argument
707 for (i = 0; i < nums; i++) { in build_mixers()
/kernel/linux/linux-5.10/include/sound/
Dhda_codec.h352 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int nums,
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_fs.c3417 short *nums = func->interfaces_nums; in ffs_func_revmap_intf() local
3420 for (; count; --count, ++nums) { in ffs_func_revmap_intf()
3421 if (*nums >= 0 && *nums == intf) in ffs_func_revmap_intf()
3422 return nums - func->interfaces_nums; in ffs_func_revmap_intf()
Df_generic.c3343 short *nums = func->interfaces_nums; in ffs_func_revmap_intf() local
3346 for (; count; --count, ++nums) { in ffs_func_revmap_intf()
3347 if (*nums >= 0 && *nums == intf) in ffs_func_revmap_intf()
3348 return nums - func->interfaces_nums; in ffs_func_revmap_intf()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c436 buf_len = snprintf(buf, PAGE_SIZE, "states: %d\n", data.nums); in amdgpu_get_pp_num_states()
437 for (i = 0; i < data.nums; i++) in amdgpu_get_pp_num_states()
481 for (i = 0; i < data.nums; i++) { in amdgpu_get_pp_cur_state()
486 if (i == data.nums) in amdgpu_get_pp_cur_state()

12