Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dgf119.c57 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl() local
58 if (indx < 0) in gf119_fan_pwm_ctrl()
59 return indx; in gf119_fan_pwm_ctrl()
60 else if (indx < 2) in gf119_fan_pwm_ctrl()
70 int indx = pwm_info(therm, line); in gf119_fan_pwm_get() local
71 if (indx < 0) in gf119_fan_pwm_get()
72 return indx; in gf119_fan_pwm_get()
73 else if (indx < 2) { in gf119_fan_pwm_get()
75 *divs = nvkm_rd32(device, 0x00e114 + (indx * 8)); in gf119_fan_pwm_get()
76 *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()
/drivers/gpu/host1x/hw/
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()
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()
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()
/drivers/thermal/
Dthermal_sysfs.c512 int indx; in create_trip_attrs() local
550 for (indx = 0; indx < tz->trips; indx++) { in create_trip_attrs()
552 snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
553 "trip_point_%d_type", indx); in create_trip_attrs()
555 sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); in create_trip_attrs()
556 tz->trip_type_attrs[indx].attr.attr.name = in create_trip_attrs()
557 tz->trip_type_attrs[indx].name; in create_trip_attrs()
558 tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
559 tz->trip_type_attrs[indx].attr.show = trip_point_type_show; in create_trip_attrs()
560 attrs[indx] = &tz->trip_type_attrs[indx].attr.attr; in create_trip_attrs()
[all …]
/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 …]
/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()
Dw83791d.c582 int indx = 0; in store_fan_div() local
600 indx = 0; in store_fan_div()
605 indx = 0; in store_fan_div()
610 indx = 1; in store_fan_div()
615 indx = 2; in store_fan_div()
620 indx = 2; in store_fan_div()
632 fan_div_reg = w83791d_read(client, W83791D_REG_FAN_DIV[indx]) in store_fan_div()
636 w83791d_write(client, W83791D_REG_FAN_DIV[indx], in store_fan_div()
/drivers/scsi/
Daha1542.c729 …c struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct device *pdev, int indx) in aha1542_hw_init() argument
731 unsigned int base_io = io[indx]; in aha1542_hw_init()
756 aha1542_set_bus_times(sh, bus_on[indx], bus_off[indx], dma_speed[indx]); in aha1542_hw_init()
1054 int indx; in aha1542_pnp_probe() local
1057 for (indx = 0; indx < ARRAY_SIZE(io); indx++) { in aha1542_pnp_probe()
1058 if (io[indx]) in aha1542_pnp_probe()
1064 io[indx] = pnp_port_start(pdev, 0); in aha1542_pnp_probe()
1069 dev_info(&pdev->dev, "ISAPnP found an AHA1535 at I/O 0x%03X", io[indx]); in aha1542_pnp_probe()
1072 sh = aha1542_hw_init(&driver_template, &pdev->dev, indx); in aha1542_pnp_probe()
/drivers/infiniband/hw/bnxt_re/
Dmain.c216 int indx; in bnxt_re_stop_irq() local
218 for (indx = BNXT_RE_NQ_IDX; indx < rdev->num_msix; indx++) { in bnxt_re_stop_irq()
219 nq = &rdev->nq[indx - 1]; in bnxt_re_stop_irq()
232 int indx, rc; in bnxt_re_start_irq() local
247 for (indx = 0; indx < rdev->num_msix; indx++) in bnxt_re_start_irq()
248 rdev->msix_entries[indx].vector = ent[indx].vector; in bnxt_re_start_irq()
252 for (indx = BNXT_RE_NQ_IDX ; indx < rdev->num_msix; indx++) { in bnxt_re_start_irq()
253 nq = &rdev->nq[indx - 1]; in bnxt_re_start_irq()
254 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq()
255 msix_ent[indx].vector, false); in bnxt_re_start_irq()
[all …]
Dqplib_rcfw.c643 unsigned long indx; in bnxt_qplib_disable_rcfw_channel() local
650 indx = find_first_bit(rcfw->cmdq_bitmap, rcfw->bmap_size); in bnxt_qplib_disable_rcfw_channel()
651 if (indx != rcfw->bmap_size) in bnxt_qplib_disable_rcfw_channel()
653 "disabling RCFW with pending cmd-bit %lx\n", indx); in bnxt_qplib_disable_rcfw_channel()
/drivers/infiniband/hw/ocrdma/
Docrdma.h558 int indx; in ocrdma_get_eq_table_index() local
560 for (indx = 0; indx < dev->eq_cnt; indx++) { in ocrdma_get_eq_table_index()
561 if (dev->eq_tbl[indx].q.id == eqid) in ocrdma_get_eq_table_index()
562 return indx; in ocrdma_get_eq_table_index()
Docrdma_verbs.c1073 u32 irq, indx; in ocrdma_destroy_cq() local
1076 indx = ocrdma_get_eq_table_index(dev, cq->eqn); in ocrdma_destroy_cq()
1078 eq = &dev->eq_tbl[indx]; in ocrdma_destroy_cq()
2281 int indx = 0; in ocrdma_srq_get_idx() local
2285 indx = ffs(srq->idx_bit_fields[row]); in ocrdma_srq_get_idx()
2286 indx = (row * 32) + (indx - 1); in ocrdma_srq_get_idx()
2287 BUG_ON(indx >= srq->rq.max_cnt); in ocrdma_srq_get_idx()
2288 ocrdma_srq_toggle_bit(srq, indx); in ocrdma_srq_get_idx()
2294 return indx + 1; /* Use from index 1 */ in ocrdma_srq_get_idx()
Docrdma_hw.c2929 int status = -EINVAL, indx, slindx; in ocrdma_parse_dcbxcfg_rsp() local
2960 for (indx = 0; indx < ventry_cnt; indx++) { in ocrdma_parse_dcbxcfg_rsp()
2961 app_param = &dcbxcfg->app_param[indx]; in ocrdma_parse_dcbxcfg_rsp()
3003 int status = 0, indx; in ocrdma_init_service_level() local
3008 for (indx = 0; indx < 2; indx++) { in ocrdma_init_service_level()
/drivers/net/usb/
Drtl8150.c153 static int get_registers(rtl8150_t * dev, u16 indx, u16 size, void *data) in get_registers() argument
164 indx, 0, buf, size, 500); in get_registers()
171 static int set_registers(rtl8150_t * dev, u16 indx, u16 size, const void *data) in set_registers() argument
182 indx, 0, buf, size, 500); in set_registers()
198 static int async_set_registers(rtl8150_t *dev, u16 indx, u16 size, u16 reg) in async_set_registers() argument
216 req->dr.wValue = cpu_to_le16(indx); in async_set_registers()
230 static int read_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 * reg) in read_mii_word() argument
237 tmp = indx | PHY_READ | PHY_GO; in read_mii_word()
254 static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg) in write_mii_word() argument
262 tmp = indx | PHY_WRITE | PHY_GO; in write_mii_word()
Dpegasus.c124 static int get_registers(pegasus_t *pegasus, __u16 indx, __u16 size, void *data) in get_registers() argument
135 indx, buf, size, 1000); in get_registers()
145 static int set_registers(pegasus_t *pegasus, __u16 indx, __u16 size, in set_registers() argument
157 indx, buf, size, 100); in set_registers()
165 static int set_register(pegasus_t *pegasus, __u16 indx, __u8 data) in set_register() argument
176 indx, buf, 1, 1000); in set_register()
219 static int __mii_op(pegasus_t *p, __u8 phy, __u8 indx, __u16 *regd, __u8 cmd) in __mii_op() argument
222 __u8 data[4] = { phy, 0, 0, indx }; in __mii_op()
232 set_register(p, PhyCtrl, (indx | cmd)); in __mii_op()
254 static int read_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 *regd) in read_mii_word() argument
[all …]
/drivers/target/
Dtarget_core_stat.c74 CONFIGFS_ATTR_RO(target_stat_, indx);
163 CONFIGFS_ATTR_RO(target_stat_tgt_, indx);
347 CONFIGFS_ATTR_RO(target_stat_lu_, indx);
499 CONFIGFS_ATTR_RO(target_stat_port_, indx);
675 CONFIGFS_ATTR_RO(target_stat_tgt_port_, indx);
803 CONFIGFS_ATTR_RO(target_stat_transport_, indx);
1148 CONFIGFS_ATTR_RO(target_stat_auth_, indx);
1336 CONFIGFS_ATTR_RO(target_stat_iport_, indx);
/drivers/staging/rtl8192u/
Dr8192U_core.c226 int write_nic_byte_E(struct net_device *dev, int indx, u8 data) in write_nic_byte_E() argument
239 indx | 0xfe00, 0, usbdata, 1, HZ / 2); in write_nic_byte_E()
249 int read_nic_byte_E(struct net_device *dev, int indx, u8 *data) in read_nic_byte_E() argument
261 indx | 0xfe00, 0, usbdata, 1, HZ / 2); in read_nic_byte_E()
274 int write_nic_byte(struct net_device *dev, int indx, u8 data) in write_nic_byte() argument
288 (indx & 0xff) | 0xff00, (indx >> 8) & 0x0f, in write_nic_byte()
301 int write_nic_word(struct net_device *dev, int indx, u16 data) in write_nic_word() argument
315 (indx & 0xff) | 0xff00, (indx >> 8) & 0x0f, in write_nic_word()
328 int write_nic_dword(struct net_device *dev, int indx, u32 data) in write_nic_dword() argument
342 (indx & 0xff) | 0xff00, (indx >> 8) & 0x0f, in write_nic_dword()
[all …]
/drivers/crypto/
Dpicoxcell_crypto.c201 unsigned indx, in spacc_ctx_page_addr() argument
205 (indx * ctx->engine->cipher_pg_sz) : in spacc_ctx_page_addr()
206 ctx->engine->hash_key_base + (indx * ctx->engine->hash_pg_sz); in spacc_ctx_page_addr()
240 unsigned indx = ctx->engine->next_ctx++; in spacc_load_ctx() local
243 ciph_page_addr = spacc_ctx_page_addr(ctx, indx, 1); in spacc_load_ctx()
244 hash_page_addr = spacc_ctx_page_addr(ctx, indx, 0); in spacc_load_ctx()
249 writel(ciph_len | (indx << SPA_KEY_SZ_CTX_INDEX_OFFSET) | in spacc_load_ctx()
255 writel(hash_len | (indx << SPA_KEY_SZ_CTX_INDEX_OFFSET), in spacc_load_ctx()
259 return indx; in spacc_load_ctx()
/drivers/target/iscsi/
Discsi_target_stat.c365 CONFIGFS_ATTR_RO(iscsi_stat_tgt_attr_, indx);
497 CONFIGFS_ATTR_RO(iscsi_stat_login_, indx);
562 CONFIGFS_ATTR_RO(iscsi_stat_logout_, indx);
775 CONFIGFS_ATTR_RO(iscsi_stat_sess_, indx);
/drivers/isdn/hardware/mISDN/
Dhfcsusb.h241 __u8 indx; /* Fifos's ISO double buffer 0 or 1 ? */ member

12