Home
last modified time | relevance | path

Searched refs:indx (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dgf119.c58 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl() local
59 if (indx < 0) in gf119_fan_pwm_ctrl()
60 return indx; in gf119_fan_pwm_ctrl()
61 else if (indx < 2) in gf119_fan_pwm_ctrl()
71 int indx = pwm_info(therm, line); in gf119_fan_pwm_get() local
72 if (indx < 0) in gf119_fan_pwm_get()
73 return indx; in gf119_fan_pwm_get()
74 else if (indx < 2) { in gf119_fan_pwm_get()
76 *divs = nvkm_rd32(device, 0x00e114 + (indx * 8)); in gf119_fan_pwm_get()
77 *duty = nvkm_rd32(device, 0x00e118 + (indx * 8)); in gf119_fan_pwm_get()
[all …]
Dnv50.c28 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument
35 *indx = 0; in pwm_info()
40 *indx = 1; in pwm_info()
45 *indx = 0; in pwm_info()
/Linux-v5.15/fs/ntfs3/
Dindex.c204 static int bmp_buf_get(struct ntfs_index *indx, struct ntfs_inode *ni, in bmp_buf_get() argument
215 const struct INDEX_NAMES *in = &s_index_names[indx->type]; in bmp_buf_get()
246 bh = ntfs_bread_run(sbi, &indx->bitmap_run, off); in bmp_buf_get()
316 static int indx_mark_used(struct ntfs_index *indx, struct ntfs_inode *ni, in indx_mark_used() argument
322 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_used()
336 static int indx_mark_free(struct ntfs_index *indx, struct ntfs_inode *ni, in indx_mark_free() argument
342 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_free()
361 struct ntfs_index *indx, size_t from, in scan_nres_bitmap() argument
368 struct runs_tree *run = &indx->bitmap_run; in scan_nres_bitmap()
369 struct rw_semaphore *lock = &indx->run_lock; in scan_nres_bitmap()
[all …]
Dfsntfs.c1957 struct ntfs_index *indx = &sbi->security.index_sii; in ntfs_get_security_by_id() local
1975 root_sii = indx_get_root(indx, ni, NULL, NULL); in ntfs_get_security_by_id()
1982 err = indx_find(indx, ni, root_sii, &security_id, sizeof(security_id), in ntfs_get_security_by_id()
2258 struct ntfs_index *indx = &sbi->reparse.index_r; in ntfs_reparse_init() local
2281 err = indx_init(indx, sbi, attr, INDEX_MUTEX_SR); in ntfs_reparse_init()
2296 struct ntfs_index *indx = &sbi->objid.index_o; in ntfs_objid_init() local
2319 err = indx_init(indx, sbi, attr, INDEX_MUTEX_SO); in ntfs_objid_init()
2331 struct ntfs_index *indx = &sbi->objid.index_o; in ntfs_objid_remove() local
2338 err = indx_delete_entry(indx, ni, guid, sizeof(*guid), NULL); in ntfs_objid_remove()
2351 struct ntfs_index *indx = &sbi->reparse.index_r; in ntfs_insert_reparse() local
[all …]
/Linux-v5.15/drivers/gpu/host1x/hw/
Dhost1x01_hardware.h19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument
21 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt()
26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument
28 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base()
33 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
35 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base()
48 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
51 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt()
104 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
107 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
Dhost1x04_hardware.h19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument
21 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt()
26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument
28 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base()
33 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
35 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base()
48 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
51 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt()
103 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
106 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
Dhost1x02_hardware.h19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument
21 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt()
26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument
28 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base()
33 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
35 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base()
48 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
51 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt()
103 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
106 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
Dhost1x05_hardware.h19 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument
21 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt()
26 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument
28 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base()
33 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
35 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base()
48 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
51 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt()
103 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
106 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
Dhost1x06_hardware.h20 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument
22 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt()
27 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument
29 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base()
34 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
36 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base()
49 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
52 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt()
104 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
107 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
Dhost1x07_hardware.h20 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument
22 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt()
27 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument
29 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base()
34 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
36 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base()
49 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument
52 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt()
104 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument
107 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
/Linux-v5.15/drivers/thermal/
Dthermal_sysfs.c416 int indx; in create_trip_attrs() local
454 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
456 snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
457 "trip_point_%d_type", indx); in create_trip_attrs()
459 sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); in create_trip_attrs()
460 tz->trip_type_attrs[indx].attr.attr.name = in create_trip_attrs()
461 tz->trip_type_attrs[indx].name; in create_trip_attrs()
462 tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
463 tz->trip_type_attrs[indx].attr.show = trip_point_type_show; in create_trip_attrs()
464 attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; in create_trip_attrs()
[all …]
/Linux-v5.15/arch/powerpc/sysdev/xics/
Dicp-native.c256 unsigned int *indx) in icp_native_init_one_node() argument
277 *indx = of_read_number(ireg, 1); in icp_native_init_one_node()
303 " for interrupt server 0x%x (%d)\n", *indx, err); in icp_native_init_one_node()
307 if (icp_native_map_one_cpu(*indx, r.start, resource_size(&r))) in icp_native_init_one_node()
310 (*indx)++; in icp_native_init_one_node()
330 u32 indx = 0; in icp_native_init() local
334 if (icp_native_init_one_node(np, &indx) == 0) in icp_native_init()
339 if (icp_native_init_one_node(np, &indx) == 0) in icp_native_init()
/Linux-v5.15/drivers/net/ppp/
Dbsd_comp.c467 int indx; in bsd_init() local
479 indx = LAST; in bsd_init()
482 db->lens[indx] = 1; in bsd_init()
484 while (indx-- > 0); in bsd_init()
487 indx = db->hsize; in bsd_init()
488 while (indx-- != 0) in bsd_init()
490 db->dict[indx].codem1 = BADCODEM1; in bsd_init()
491 db->dict[indx].cptr = 0; in bsd_init()
702 int indx; in bsd_compress() local
716 indx = dictp2->cptr; in bsd_compress()
[all …]
/Linux-v5.15/drivers/hwmon/
Dcoretemp.c518 static void coretemp_remove_core(struct platform_data *pdata, int indx) in coretemp_remove_core() argument
520 struct temp_data *tdata = pdata->core_data[indx]; in coretemp_remove_core()
525 kfree(pdata->core_data[indx]); in coretemp_remove_core()
526 pdata->core_data[indx] = NULL; in coretemp_remove_core()
650 int indx, target; in coretemp_cpu_offline() local
664 indx = TO_ATTR_NO(cpu); in coretemp_cpu_offline()
665 if (indx > MAX_CORE_DATA - 1) in coretemp_cpu_offline()
669 tdata = pd->core_data[indx]; in coretemp_cpu_offline()
680 coretemp_remove_core(pd, indx); in coretemp_cpu_offline()
/Linux-v5.15/drivers/scsi/
Daha1542.c745 …c struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct device *pdev, int indx) in aha1542_hw_init() argument
747 unsigned int base_io = io[indx]; in aha1542_hw_init()
772 aha1542_set_bus_times(sh, bus_on[indx], bus_off[indx], dma_speed[indx]); in aha1542_hw_init()
1093 int indx; in aha1542_pnp_probe() local
1096 for (indx = 0; indx < ARRAY_SIZE(io); indx++) { in aha1542_pnp_probe()
1097 if (io[indx]) in aha1542_pnp_probe()
1103 io[indx] = pnp_port_start(pdev, 0); in aha1542_pnp_probe()
1110 dev_info(&pdev->dev, "ISAPnP found an AHA1535 at I/O 0x%03X", io[indx]); in aha1542_pnp_probe()
1113 sh = aha1542_hw_init(&driver_template, &pdev->dev, indx); in aha1542_pnp_probe()
/Linux-v5.15/drivers/infiniband/hw/bnxt_re/
Dmain.c300 int indx; in bnxt_re_stop_irq() local
302 for (indx = BNXT_RE_NQ_IDX; indx < rdev->num_msix; indx++) { in bnxt_re_stop_irq()
303 nq = &rdev->nq[indx - 1]; in bnxt_re_stop_irq()
316 int indx, rc; in bnxt_re_start_irq() local
331 for (indx = 0; indx < rdev->num_msix; indx++) in bnxt_re_start_irq()
332 rdev->msix_entries[indx].vector = ent[indx].vector; in bnxt_re_start_irq()
336 for (indx = BNXT_RE_NQ_IDX ; indx < rdev->num_msix; indx++) { in bnxt_re_start_irq()
337 nq = &rdev->nq[indx - 1]; in bnxt_re_start_irq()
338 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq()
339 msix_ent[indx].vector, false); in bnxt_re_start_irq()
[all …]
Dqplib_fp.h602 int indx; in bnxt_qplib_calc_ilsize() local
604 for (indx = 0; indx < wqe->num_sge; indx++) in bnxt_qplib_calc_ilsize()
605 size += wqe->sg_list[indx].size; in bnxt_qplib_calc_ilsize()
Dqplib_res.h319 u32 indx, u64 *pg) in bnxt_qplib_get_qe() argument
323 pg_num = (indx / hwq->qe_ppg); in bnxt_qplib_get_qe()
324 pg_idx = (indx % hwq->qe_ppg); in bnxt_qplib_get_qe()
/Linux-v5.15/drivers/infiniband/hw/ocrdma/
Docrdma.h556 int indx; in ocrdma_get_eq_table_index() local
558 for (indx = 0; indx < dev->eq_cnt; indx++) { in ocrdma_get_eq_table_index()
559 if (dev->eq_tbl[indx].q.id == eqid) in ocrdma_get_eq_table_index()
560 return indx; in ocrdma_get_eq_table_index()
/Linux-v5.15/drivers/net/usb/
Drtl8150.c153 static int get_registers(rtl8150_t * dev, u16 indx, u16 size, void *data) in get_registers() argument
156 RTL8150_REQT_READ, indx, 0, data, size, in get_registers()
160 static int set_registers(rtl8150_t * dev, u16 indx, u16 size, const void *data) in set_registers() argument
163 RTL8150_REQT_WRITE, indx, 0, data, size, in set_registers()
178 static int async_set_registers(rtl8150_t *dev, u16 indx, u16 size, u16 reg) in async_set_registers() argument
196 req->dr.wValue = cpu_to_le16(indx); in async_set_registers()
210 static int read_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 * reg) in read_mii_word() argument
217 tmp = indx | PHY_READ | PHY_GO; in read_mii_word()
234 static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg) in write_mii_word() argument
242 tmp = indx | PHY_WRITE | PHY_GO; in write_mii_word()
Dpegasus.c100 static int get_registers(pegasus_t *pegasus, __u16 indx, __u16 size, void *data) in get_registers() argument
103 PEGASUS_REQT_READ, 0, indx, data, size, in get_registers()
107 static int set_registers(pegasus_t *pegasus, __u16 indx, __u16 size, in set_registers() argument
113 PEGASUS_REQT_WRITE, 0, indx, data, size, in set_registers()
126 static int set_register(pegasus_t *pegasus, __u16 indx, __u8 data) in set_register() argument
132 PEGASUS_REQT_WRITE, data, indx, buf, 1, in set_register()
175 static int __mii_op(pegasus_t *p, __u8 phy, __u8 indx, __u16 *regd, __u8 cmd) in __mii_op() argument
179 __u8 data[4] = { phy, 0, 0, indx }; in __mii_op()
187 set_register(p, PhyCtrl, (indx | cmd)); in __mii_op()
212 static int read_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 *regd) in read_mii_word() argument
[all …]
/Linux-v5.15/tools/perf/util/cs-etm-decoder/
Dcs-etm-decoder.c283 const ocsd_trc_index_t indx) in cs_etm_decoder__do_hard_timestamp() argument
313 indx); in cs_etm_decoder__do_hard_timestamp()
321 pr_err("Timestamp calculation underflow at Idx:%" OCSD_TRC_IDX_STR "\n", indx); in cs_etm_decoder__do_hard_timestamp()
553 const ocsd_trc_index_t indx, in cs_etm_decoder__gen_trace_elem_printer() argument
591 indx); in cs_etm_decoder__gen_trace_elem_printer()
738 u64 indx, const u8 *buf, in cs_etm_decoder__process_data_block() argument
758 indx + processed, in cs_etm_decoder__process_data_block()
/Linux-v5.15/arch/x86/lib/
Dinsn-eval.c1111 long base, indx; in get_eff_addr_sib() local
1151 indx = 0; in get_eff_addr_sib()
1155 indx = regs_get_register(regs, indx_offset); in get_eff_addr_sib()
1161 idx32 = indx & 0xffffffff; in get_eff_addr_sib()
1168 *eff_addr = base + indx * (1 << X86_SIB_SCALE(insn->sib.value)); in get_eff_addr_sib()
/Linux-v5.15/drivers/target/
Dtarget_core_stat.c71 CONFIGFS_ATTR_RO(target_stat_, indx);
160 CONFIGFS_ATTR_RO(target_stat_tgt_, indx);
344 CONFIGFS_ATTR_RO(target_stat_lu_, indx);
496 CONFIGFS_ATTR_RO(target_stat_port_, indx);
672 CONFIGFS_ATTR_RO(target_stat_tgt_port_, indx);
800 CONFIGFS_ATTR_RO(target_stat_transport_, indx);
1145 CONFIGFS_ATTR_RO(target_stat_auth_, indx);
1333 CONFIGFS_ATTR_RO(target_stat_iport_, indx);
/Linux-v5.15/drivers/crypto/hisilicon/hpre/
Dhpre_main.c802 enum hpre_ctrl_dbgfs_file type, int indx) in hpre_create_debugfs_file() argument
816 spin_lock_init(&dbg->files[indx].lock); in hpre_create_debugfs_file()
817 dbg->files[indx].debug = dbg; in hpre_create_debugfs_file()
818 dbg->files[indx].type = type; in hpre_create_debugfs_file()
819 dbg->files[indx].index = indx; in hpre_create_debugfs_file()
821 dbg->files + indx, &hpre_ctrl_debug_fops); in hpre_create_debugfs_file()

12