Searched refs:index (Results 151 - 175 of 2286) sorted by relevance

1234567891011>>

/drivers/staging/lustre/lustre/obdclass/
H A Dllog_obd.c146 struct obd_llog_group *olg, int index,
152 if (index < 0 || index >= LLOG_MAX_CTXTS)
163 ctxt->loc_idx = index;
169 rc = llog_group_set_ctxt(olg, ctxt, index);
173 ctxt = llog_group_get_ctxt(olg, index);
181 obd->obd_name, index);
197 rc = op->lop_setup(env, obd, olg, index, disk_obd);
202 obd->obd_name, index, op->lop_setup, rc);
203 llog_group_clear_ctxt(olg, index);
145 llog_setup(const struct lu_env *env, struct obd_device *obd, struct obd_llog_group *olg, int index, struct obd_device *disk_obd, struct llog_operations *op) argument
[all...]
/drivers/clk/
H A Dclk-mux.c41 * to 0x7 (index starts at one)
43 * val = 0x4 really means "bit 2, index starts at bit 0"
69 static int clk_mux_set_parent(struct clk_hw *hw, u8 index) argument
76 index = mux->table[index];
80 index = (1 << ffs(index));
83 index++;
95 val |= index << mux->shift;
/drivers/cpuidle/
H A Dcpuidle-powernv.c37 int index)
52 return index;
57 int index)
62 return index;
67 int index)
73 return index;
86 return index;
35 snooze_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
55 nap_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
65 fastsleep_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
/drivers/iio/common/hid-sensors/
H A Dhid-sensor-trigger.c44 st->power_state.index,
48 st->report_state.index,
56 st->power_state.index,
60 st->report_state.index,
67 st->power_state.index,
74 st->report_state.index,
79 st->power_state.index,
/drivers/hwmon/
H A Dlm95234.c75 static int lm95234_read_temp(struct i2c_client *client, int index, int *t) argument
80 if (index) {
82 LM95234_REG_UTEMPH(index - 1));
87 LM95234_REG_UTEMPL(index - 1));
99 LM95234_REG_TEMPH(index));
104 LM95234_REG_TEMPL(index));
213 int index = to_sensor_dev_attr(attr)->index; local
220 DIV_ROUND_CLOSEST(data->temp[index] * 125, 32));
227 u32 mask = to_sensor_dev_attr(attr)->index;
284 int index = to_sensor_dev_attr(attr)->index; local
297 int index = to_sensor_dev_attr(attr)->index; local
322 int index = to_sensor_dev_attr(attr)->index; local
337 int index = to_sensor_dev_attr(attr)->index; local
346 int index = to_sensor_dev_attr(attr)->index; local
371 int index = to_sensor_dev_attr(attr)->index; local
387 int index = to_sensor_dev_attr(attr)->index; local
413 int index = to_sensor_dev_attr(attr)->index; local
426 int index = to_sensor_dev_attr(attr)->index; local
[all...]
/drivers/media/usb/dvb-usb-v2/
H A Daz6007.c109 u16 index, u8 *b, int blen)
117 value, index, b, blen, 5000);
124 printk(KERN_DEBUG "az6007: IN req: %02x, value: %04x, index: %04x\n",
125 req, value, index);
134 u16 index, u8 *b, int blen)
142 ret = __az6007_read(d->udev, req, value, index, b, blen);
150 u16 index, u8 *b, int blen)
155 printk(KERN_DEBUG "az6007: OUT req: %02x, value: %04x, index: %04x\n",
156 req, value, index);
171 value, index,
108 __az6007_read(struct usb_device *udev, u8 req, u16 value, u16 index, u8 *b, int blen) argument
133 az6007_read(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen) argument
149 __az6007_write(struct usb_device *udev, u8 req, u16 value, u16 index, u8 *b, int blen) argument
180 az6007_write(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen) argument
259 u16 index; local
301 u16 index; local
332 u16 index; local
378 u16 index; local
408 u16 index; local
440 u16 index; local
496 u16 index; local
524 u16 index; local
751 u16 index; local
[all...]
H A Dmxl111sf-i2c.c321 u8 index, u8 *wdata)
331 u8 index, u8 *wdata, u8 *rdata)
444 u16 index = 0; local
457 for (index = 0; index < 26; index++)
458 buf[index] = USB_END_I2C_CMD;
523 index = 0;
528 for (index = 0; index < block_le
320 mxl111sf_i2c_send_data(struct mxl111sf_state *state, u8 index, u8 *wdata) argument
330 mxl111sf_i2c_get_data(struct mxl111sf_state *state, u8 index, u8 *wdata, u8 *rdata) argument
[all...]
/drivers/clk/spear/
H A Dclk-vco-pll.c70 unsigned long prate, int index, unsigned long *pll_rate)
75 mode = rtbl[index].mode ? 256 : 1;
76 rate = (((2 * rate / 10000) * rtbl[index].m) / (mode * rtbl[index].n));
79 *pll_rate = (rate / (1 << rtbl[index].p)) * 10000;
85 unsigned long *prate, int *index)
97 for (*index = 0; *index < pll->vco->rtbl_cnt; (*index)++) {
100 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index,
69 pll_calc_rate(struct pll_rate_tbl *rtbl, unsigned long prate, int index, unsigned long *pll_rate) argument
84 clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, unsigned long *prate, int *index) argument
174 vco_calc_rate(struct clk_hw *hw, unsigned long prate, int index) argument
[all...]
/drivers/net/wireless/rtlwifi/rtl8192cu/
H A Drf.c178 " [OFDM power base index rf(%c) = 0x%x]\n",
191 " [MCS power base index rf(%c) = 0x%x]\n",
197 u8 channel, u8 index,
213 [chnlgroup][index + (rf ? 8 : 0)]
214 + ((index < 2) ? powerBase0[rf] : powerBase1[rf]);
235 writeVal = rtlphy->mcs_offset[chnlgroup][index +
237 ((index < 2) ? powerBase0[rf] :
244 writeVal = ((index < 2) ? powerBase0[rf] :
268 [chnlgroup][index + (rf ? 8 : 0)]
293 writeVal = customer_limit + ((index <
196 _rtl92c_get_txpower_writeval_by_regulatory(struct ieee80211_hw *hw, u8 channel, u8 index, u32 *powerBase0, u32 *powerBase1, u32 *p_outwriteval) argument
324 _rtl92c_write_ofdm_power_reg(struct ieee80211_hw *hw, u8 index, u32 *pValue) argument
391 u8 index = 0; local
[all...]
/drivers/net/wireless/rtlwifi/rtl8192se/
H A Drf.c88 /* use index of rf-A */
147 * index = 0x0~0xf */
177 u8 chnl, u8 index,
195 writeval = rtlphy->mcs_offset[chnlgroup][index] +
196 ((index < 2) ? pwrbase0 : pwrbase1);
205 writeval = ((index < 2) ? pwrbase0 : pwrbase1);
225 writeval = rtlphy->mcs_offset[chnlgroup][index]
226 + ((index < 2) ?
236 writeval = ((index < 2) ? pwrbase0 : pwrbase1);
259 [chnlgroup][index]
176 _rtl92s_get_txpower_writeval_byregulatory(struct ieee80211_hw *hw, u8 chnl, u8 index, u32 pwrbase0, u32 pwrbase1, u32 *p_outwrite_val) argument
313 _rtl92s_write_ofdm_powerreg(struct ieee80211_hw *hw, u8 index, u32 val) argument
374 u8 index = 0; local
[all...]
/drivers/staging/rtl8723au/hal/
H A Drtl8723a_rf6052.c122 /* Otherwise, external PA will be broken if power index > 0x20. */
137 /* 2010/10/18 MH For external PA module. We need to limit power index to be less than 0x20. */
233 u8 index,
250 writeVal = pHalData->MCSTxPowerLevelOriginalOffset[chnlGroup][index+(rf?8:0)] +
251 ((index < 2) ? powerBase0[rf] : powerBase1[rf]);
270 writeVal = pHalData->MCSTxPowerLevelOriginalOffset[chnlGroup][index+(rf?8:0)] +
271 ((index < 2) ? powerBase0[rf] : powerBase1[rf]);
275 writeVal = ((index < 2) ? powerBase0[rf] : powerBase1[rf]);
281 pwr_diff_limit[i] = (u8)((pHalData->MCSTxPowerLevelOriginalOffset[chnlGroup][index +
293 writeVal = customer_limit + ((index<
230 getTxPowerWriteValByRegulatory( struct rtw_adapter *Adapter, u8 Channel, u8 index, u32 *powerBase0, u32 *powerBase1, u32 *pOutWriteVal ) argument
321 writeOFDMPowerReg(struct rtw_adapter *Adapter, u8 index, u32 *pValue) argument
403 u8 index = 0; local
[all...]
/drivers/staging/octeon-usb/
H A Docteon-hcd.c372 * index: Which USB block this is for.
387 int index; member in struct:cvmx_usb_state
580 cvmx_read64_uint64(CVMX_USBNX_DMA0_INB_CHN0(usb->index));
677 usb->index = usb_port_number;
691 __cvmx_usb_read_csr64(usb, CVMX_USBNX_CLK_CTL(usb->index));
754 __cvmx_usb_write_csr64(usb, CVMX_USBNX_CLK_CTL(usb->index),
758 __cvmx_usb_write_csr64(usb, CVMX_USBNX_CLK_CTL(usb->index),
768 __cvmx_usb_write_csr64(usb, CVMX_USBNX_CLK_CTL(usb->index),
778 CVMX_USBNX_USBP_CTL_STATUS(usb->index));
780 __cvmx_usb_write_csr64(usb, CVMX_USBNX_USBP_CTL_STATUS(usb->index),
[all...]
/drivers/tty/serial/
H A Dicom.c180 int index; local
232 for (index = 0; index < NUM_XBUFFS; index++) {
235 if (index < (NUM_XBUFFS - 1)) {
236 memset(&icom_port->statStg->xmit[index], 0, sizeof(struct xmit_status_area));
237 icom_port->statStg->xmit[index].leLengthASD =
242 icom_port->statStg->xmit[index].leBuffer =
244 } else if (index == (NUM_XBUFFS - 1)) {
245 memset(&icom_port->statStg->xmit[index],
357 int index; local
1024 int index; local
1111 int index; local
1453 int index; local
1495 int index; local
[all...]
/drivers/usb/musb/
H A Dcppi_dma.c161 controller->tx[i].index = i;
165 controller->rx[i].index = i;
283 u8 index; local
293 index = ep->epnum - 1;
299 if (index >= ARRAY_SIZE(controller->tx)) {
300 dev_dbg(musb->controller, "no %cX%d CPPI channel\n", 'T', index);
303 cppi_ch = controller->tx + index;
305 if (index >= ARRAY_SIZE(controller->rx)) {
306 dev_dbg(musb->controller, "no %cX%d CPPI channel\n", 'R', index);
309 cppi_ch = controller->rx + index;
1149 int i, index; local
[all...]
/drivers/of/
H A Dirq.c32 * @index: Index of the interrupt to map
37 unsigned int irq_of_parse_and_map(struct device_node *dev, int index) argument
41 if (of_irq_parse_one(dev, index, &oirq))
281 * @index: index of the interrupt to resolve
288 int of_irq_parse_one(struct device_node *device, int index, struct of_phandle_args *out_irq) argument
295 pr_debug("of_irq_parse_one: dev=%s, index=%d\n", of_node_full_name(device), index);
299 return of_irq_parse_oldworld(device, index, out_irq);
306 "#interrupt-cells", index, out_ir
357 of_irq_to_resource(struct device_node *dev, int index, struct resource *r) argument
392 of_irq_get(struct device_node *dev, int index) argument
419 int index; local
[all...]
/drivers/scsi/isci/
H A Dport_config.c167 * Sanity check the max ranges for all the phys the max index
168 * is always equal to the port range index */
268 /* Find the starting phy index for this round through the loop */
278 * the same as the PE index. */
324 u8 index; local
344 for (index = 0; index < SCI_MAX_PHYS; index++) {
345 struct isci_phy *iphy = &ihost->phys[index];
347 if (configure_phy_mask & (1 << index)) {
659 u32 index; local
711 u32 index; local
[all...]
/drivers/staging/rtl8723au/core/
H A Drtw_sta_mgt.c89 int index; local
94 for (index = 0; index < NUM_STA; index++) {
95 phead = &pstapriv->sta_hash[index];
120 s32 index; local
136 index = wifi_mac_hash(hwaddr);
139 ("rtw_alloc_stainfo23a: index = %x", index));
140 if (index >
334 s32 index; local
359 u32 index; local
[all...]
/drivers/acpi/acpica/
H A Drscreate.c223 u32 index; local
261 for (index = 0; index < number_of_elements; index++) {
284 index, (*top_object_list)->package.count));
301 index,
314 index,
334 index,
385 index,
403 index,
[all...]
/drivers/pci/hotplug/
H A Dibmphp_hpc.c72 #define WPG_READATADDR_MASK 0x00010000 // read,bytes,I2C shifted,index
73 #define WPG_WRITEATADDR_MASK 0x40010000 // write,bytes,I2C shifted,index
89 // command index
91 #define WPG_1ST_SLOT_INDEX 0x01 // index - 1st slot for ctlr
92 #define WPG_CTLR_INDEX 0x0F // index - ctlr
93 #define WPG_1ST_EXTSLOT_INDEX 0x10 // index - 1st ext slot for ctlr
94 #define WPG_1ST_BUS_INDEX 0x1F // index - 1st bus for ctlr
149 static u8 i2c_ctrl_read (struct controller *ctlr_ptr, void __iomem *WPGBbar, u8 index) argument
158 debug_polling ("%s - Entry WPGBbar[%p] index[%x] \n", __func__, WPGBbar, index);
257 i2c_ctrl_write(struct controller *ctlr_ptr, void __iomem *WPGBbar, u8 index, u8 cmd) argument
447 hpc_writecmdtoindex(u8 cmd, u8 index) argument
493 hpc_readcmdtoindex(u8 cmd, u8 index) argument
541 u8 index, status; local
679 u8 index, status; local
[all...]
/drivers/staging/lustre/lustre/llite/
H A Drw.c148 pos = (vmpage->index << PAGE_CACHE_SHIFT);
174 page = cl_page_find(env, clob, vmpage->index, vmpage,
189 vmpage->index, PFID(lu_object_fid(&clob->co_lu)), result,
380 static int index_in_window(unsigned long index, unsigned long point, argument
390 return start <= index && index <= end;
484 * Initiates read-ahead of a page with given index.
495 pgoff_t index, struct address_space *mapping)
504 vmpage = grab_cache_page_nowait(mapping, index);
508 page = cl_page_find(env, clob, vmpage->index,
493 ll_read_ahead_page(const struct lu_env *env, struct cl_io *io, struct cl_page_list *queue, pgoff_t index, struct address_space *mapping) argument
824 ras_set_start(struct inode *inode, struct ll_readahead_state *ras, unsigned long index) argument
831 ras_reset(struct inode *inode, struct ll_readahead_state *ras, unsigned long index) argument
865 index_in_stride_window(struct ll_readahead_state *ras, unsigned long index) argument
885 ras_update_stride_detector(struct ll_readahead_state *ras, unsigned long index) argument
974 ras_update(struct ll_sb_info *sbi, struct inode *inode, struct ll_readahead_state *ras, unsigned long index, unsigned hit) argument
[all...]
/drivers/ptp/
H A Dptp_clock.c66 dst->index = src->index;
176 ida_simple_remove(&ptp_clocks_map, ptp->index);
186 int err = 0, index, major = MAJOR(ptp_devt); local
197 index = ida_simple_get(&ptp_clocks_map, 0, MINORMASK + 1, GFP_KERNEL);
198 if (index < 0) {
199 err = index;
206 ptp->devid = MKDEV(major, index);
207 ptp->index = index;
[all...]
/drivers/vhost/
H A Dtest.c143 static void vhost_test_flush_vq(struct vhost_test *n, int index) argument
145 vhost_poll_flush(&n->vqs[index].poll);
172 int r, index; local
182 for (index = 0; index < n->dev.nvqs; ++index) {
184 if (!vhost_vq_access_ok(&n->vqs[index])) {
190 for (index = 0; index < n->dev.nvqs; ++index) {
[all...]
/drivers/gpio/
H A Dgpio-grgpio.c57 * Structure for an irq of a gpio line handed out by this driver. The index is
61 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */ member in struct:grgpio_lirq
88 * obtains from this driver. An index value of -1 for a certain gpio
89 * line indicates that the line has no irq. Otherwise the index connects
127 if (priv->lirqs[offset].index < 0)
219 if (priv->imask & BIT(i) && lirq->index >= 0 &&
220 priv->uirqs[lirq->index].uirq == irq) {
252 if (lirq->index < 0)
262 uirq = &priv->uirqs[lirq->index];
297 int index; local
[all...]
/drivers/misc/altera-stapl/
H A Daltera.c262 u32 index; local
936 index = 7 + 1;
937 if (altera_check_stack(stack_ptr, index, &status)) {
938 long_tmp = stack[stack_ptr - index];
939 stack[stack_ptr - index] = stack[stack_ptr - 1];
951 index = 6 + 1;
952 if (altera_check_stack(stack_ptr, index, &status)) {
953 long_tmp = stack[stack_ptr - index];
954 stack[stack_ptr - index] = stack[stack_ptr - 1];
959 index
2332 altera_get_act_info(u8 *p, s32 program_size, int index, char **name, char **description, struct altera_procinfo **proc_list) argument
2431 int index = 0; local
[all...]
/drivers/net/wireless/mwifiex/
H A Die.c23 /* This function checks if current IE index is used by any on other interface.
24 * Return: -1: yes, current IE index is used by someone else.
25 * 0: no, current IE index is NOT used by other interface.
45 /* Get unused IE index. This index will be used for setting new IE */
48 struct mwifiex_ie *ie, u16 *index)
63 *index = i;
71 *index = i;
84 u16 travel_len, index, mask; local
101 index
47 mwifiex_ie_get_autoidx(struct mwifiex_private *priv, u16 subtype_mask, struct mwifiex_ie *ie, u16 *index) argument
[all...]

Completed in 853 milliseconds

1234567891011>>