Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/media/common/videobuf2/
Dframe_vector.c113 unsigned long *nums; in frame_vector_to_pages() local
118 nums = frame_vector_pfns(vec); in frame_vector_to_pages()
120 if (!pfn_valid(nums[i])) in frame_vector_to_pages()
122 pages = (struct page **)nums; in frame_vector_to_pages()
124 pages[i] = pfn_to_page(nums[i]); in frame_vector_to_pages()
139 unsigned long *nums; in frame_vector_to_pfns() local
145 nums = (unsigned long *)pages; in frame_vector_to_pfns()
147 nums[i] = page_to_pfn(pages[i]); in frame_vector_to_pfns()
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.c607 unsigned long *nums = frame_vector_pfns(vec); in vb2_dc_get_userptr() local
614 if (nums[i-1] + 1 != nums[i]) in vb2_dc_get_userptr()
617 __pfn_to_phys(nums[0]), size, buf->dma_dir, 0); in vb2_dc_get_userptr()
/linux-6.6.21/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()
Dclk-hi3559a.c456 int nums, struct hisi_clock_data *data, struct device *dev) in hisi_clk_register_pll() argument
464 p_clk = devm_kzalloc(dev, sizeof(*p_clk) * nums, GFP_KERNEL); in hisi_clk_register_pll()
469 for (i = 0; i < nums; i++) { in hisi_clk_register_pll()
/linux-6.6.21/net/sctp/
Dstream.c526 __u16 i, nums; in sctp_process_strreset_outreq() local
554 nums = (ntohs(param.p->length) - sizeof(*outreq)) / sizeof(__u16); in sctp_process_strreset_outreq()
556 for (i = 0; i < nums; i++) { in sctp_process_strreset_outreq()
587 if (nums) in sctp_process_strreset_outreq()
588 for (i = 0; i < nums; i++) in sctp_process_strreset_outreq()
597 SCTP_STREAM_RESET_INCOMING_SSN, nums, str_p, GFP_ATOMIC); in sctp_process_strreset_outreq()
615 __u16 i, nums; in sctp_process_strreset_inreq() local
640 nums = (ntohs(param.p->length) - sizeof(*inreq)) / sizeof(__u16); in sctp_process_strreset_inreq()
642 for (i = 0; i < nums; i++) { in sctp_process_strreset_inreq()
649 if (!sctp_stream_outq_is_empty(stream, nums, str_p)) { in sctp_process_strreset_inreq()
[all …]
/linux-6.6.21/drivers/clk/socfpga/
Dclk-agilex.c338 int nums, struct stratix10_clock_data *data) in n5x_clk_register_c_perip() argument
344 for (i = 0; i < nums; i++) { in n5x_clk_register_c_perip()
357 int nums, struct stratix10_clock_data *data) in agilex_clk_register_c_perip() argument
363 for (i = 0; i < nums; i++) { in agilex_clk_register_c_perip()
376 int nums, struct stratix10_clock_data *data) in agilex_clk_register_cnt_perip() argument
382 for (i = 0; i < nums; i++) { in agilex_clk_register_cnt_perip()
396 int nums, struct stratix10_clock_data *data) in agilex_clk_register_gate() argument
402 for (i = 0; i < nums; i++) { in agilex_clk_register_gate()
416 int nums, struct stratix10_clock_data *data) in agilex_clk_register_pll() argument
422 for (i = 0; i < nums; i++) { in agilex_clk_register_pll()
[all …]
Dclk-s10.c307 int nums, struct stratix10_clock_data *data) in s10_clk_register_c_perip() argument
313 for (i = 0; i < nums; i++) { in s10_clk_register_c_perip()
326 int nums, struct stratix10_clock_data *data) in s10_clk_register_cnt_perip() argument
332 for (i = 0; i < nums; i++) { in s10_clk_register_cnt_perip()
346 int nums, struct stratix10_clock_data *data) in s10_clk_register_gate() argument
352 for (i = 0; i < nums; i++) { in s10_clk_register_gate()
366 int nums, struct stratix10_clock_data *data) in s10_clk_register_pll() argument
372 for (i = 0; i < nums; i++) { in s10_clk_register_pll()
/linux-6.6.21/drivers/iio/pressure/
Ddps310.c627 s64 nums[7]; in dps310_calculate_pressure() local
654 nums[0] = (s64)data->c00; in dps310_calculate_pressure()
656 nums[1] = p * (s64)data->c10; in dps310_calculate_pressure()
658 nums[2] = p * p * (s64)data->c20; in dps310_calculate_pressure()
660 nums[3] = p * p * p * (s64)data->c30; in dps310_calculate_pressure()
662 nums[4] = t * (s64)data->c01; in dps310_calculate_pressure()
664 nums[5] = t * p * (s64)data->c11; in dps310_calculate_pressure()
666 nums[6] = t * p * p * (s64)data->c21; in dps310_calculate_pressure()
673 if (nums[i] < 0LL) { in dps310_calculate_pressure()
674 pressure -= div64_u64_rem(-nums[i], denoms[i], &irem); in dps310_calculate_pressure()
[all …]
/linux-6.6.21/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.
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dusdt.c15 static volatile short nums[] = {-1, -2, -3, -4}; variable
38 y / 7, bla, &bla, -9, nums[x], in trigger_func()
39 nums[idx], t1.y); in trigger_func()
103 ASSERT_EQ(bss->usdt12_args[9], nums[1], "usdt12_arg10"); in subtest_basic_usdt()
104 ASSERT_EQ(bss->usdt12_args[10], nums[idx], "usdt12_arg11"); in subtest_basic_usdt()
125 ASSERT_EQ(bss->usdt12_args[9], nums[2], "usdt12_arg10"); in subtest_basic_usdt()
/linux-6.6.21/sound/pci/hda/
Dhda_generic.c241 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
244 for (i = 0; i < nums; i++) in find_idx_in_nid_list()
390 int i, nums; in __parse_nid_path() local
397 nums = snd_hda_get_conn_list(codec, to_nid, &conn); in __parse_nid_path()
398 for (i = 0; i < nums; i++) { in __parse_nid_path()
414 for (i = 0; i < nums; i++) { in __parse_nid_path()
429 if (nums > 1 && get_wcaps_type(get_wcaps(codec, to_nid)) != AC_WID_AUD_MIX) in __parse_nid_path()
787 int n, nums, idx; in activate_amp_in() local
791 nums = snd_hda_get_conn_list(codec, nid, &conn); in activate_amp_in()
792 if (nums < 0) in activate_amp_in()
[all …]
Dpatch_via.c814 int i, nums; in add_secret_dac_path() local
820 nums = snd_hda_get_connections(codec, spec->gen.mixer_nid, conn, in add_secret_dac_path()
822 if (nums < 0) in add_secret_dac_path()
823 return nums; in add_secret_dac_path()
825 for (i = 0; i < nums; i++) { in add_secret_dac_path()
835 conn[nums++] = nid; in add_secret_dac_path()
838 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
95 switch (nums) { in reorder_outputs()
589 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
592 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()
1630 int nums, step; in snd_hda_set_vmaster_tlv() local
1633 nums = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; in snd_hda_set_vmaster_tlv()
1638 tlv[SNDRV_CTL_TLVO_DB_SCALE_MIN] = -nums * step; in snd_hda_set_vmaster_tlv()
/linux-6.6.21/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()
/linux-6.6.21/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c49 u32 *data, u8 nums) in qm_read_regs() argument
53 if (nums < 1 || nums > QM_REGS_MAX_LEN) in qm_read_regs()
56 for (i = 0; i < nums; i++) { in qm_read_regs()
65 u32 *data, u8 nums) in qm_write_regs() argument
69 if (nums < 1 || nums > QM_REGS_MAX_LEN) in qm_write_regs()
72 for (i = 0; i < nums; i++) in qm_write_regs()
/linux-6.6.21/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,
/linux-6.6.21/arch/x86/kernel/apic/
Dx2apic_uv_x.c1535 int nums, numn, nump; in build_socket_tables() local
1554 nums = maxsock - minsock + 1; in build_socket_tables()
1558 || (alloc_conv_table(nums, &_socket_to_pnode) < 0) in build_socket_tables()
1560 || (alloc_conv_table(nums, &_socket_to_node) < 0)) { in build_socket_tables()
1615 FREE_1_TO_1_TABLE(_socket_to_node, _min_socket, nums, numn); in build_socket_tables()
1616 FREE_1_TO_1_TABLE(_node_to_socket, _min_socket, nums, numn); in build_socket_tables()
1617 FREE_1_TO_1_TABLE(_socket_to_pnode, _min_pnode, nums, nump); in build_socket_tables()
1618 FREE_1_TO_1_TABLE(_pnode_to_socket, _min_pnode, nums, nump); in build_socket_tables()
/linux-6.6.21/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()
/linux-6.6.21/sound/ppc/
Dawacs.c703 static int build_mixers(struct snd_pmac *chip, int nums, in build_mixers() argument
708 for (i = 0; i < nums; i++) { in build_mixers()
/linux-6.6.21/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1377 static void ctr_iv_inc(__u8 *counter, __u8 bits, __u32 nums) in ctr_iv_inc() argument
1381 nums += counter[bits]; in ctr_iv_inc()
1382 counter[bits] = nums & BITS_MASK; in ctr_iv_inc()
1383 nums >>= BYTE_BITS; in ctr_iv_inc()
1384 } while (bits && nums); in ctr_iv_inc()
/linux-6.6.21/include/sound/
Dhda_codec.h358 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int nums,

12