Searched refs:id (Results 1 - 200 of 8087) sorted by relevance

1234567891011>>

/linux-4.1.27/sound/oss/
H A Dsb_card.h28 {.id = "CTL0024", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
30 {.id = "CTL0025", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
32 {.id = "CTL0026", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
34 {.id = "CTL0027", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
36 {.id = "CTL0028", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
38 {.id = "CTL0029", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
40 {.id = "CTL002a", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
42 {.id = "CTL002b", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
44 {.id = "CTL002c", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
46 {.id = "CTL00ed", .driver_data = 0, .devs = { {.id="CTL0041"}, } },
48 {.id = "CTL0086", .driver_data = 0, .devs = { {.id="CTL0041"}, } },
50 {.id = "CTL0051", .driver_data = 0, .devs = { {.id="CTL0001"}, } },
52 {.id = "CTL0070", .driver_data = 0, .devs = { {.id="CTL0001"}, } },
54 {.id = "CTL0080", .driver_data = 0, .devs = { {.id="CTL0041"}, } },
56 {.id = "CTL00F0", .driver_data = 0, .devs = { {.id="CTL0043"}, } },
58 {.id = "CTL0039", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
60 {.id = "CTL0042", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
62 {.id = "CTL0043", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
64 {.id = "CTL0044", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
66 {.id = "CTL0045", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
68 {.id = "CTL0046", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
70 {.id = "CTL0047", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
72 {.id = "CTL0048", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
74 {.id = "CTL0054", .driver_data = 0, .devs = { {.id="CTL0031"}, } },
76 {.id = "CTL009C", .driver_data = 0, .devs = { {.id="CTL0041"}, } },
78 {.id = "CTL009F", .driver_data = 0, .devs = { {.id="CTL0041"}, } },
80 {.id = "CTL009D", .driver_data = 0, .devs = { {.id="CTL0042"}, } },
82 {.id = "CTL009E", .driver_data = 0, .devs = { {.id="CTL0044"}, } },
84 {.id = "CTL00B2", .driver_data = 0, .devs = { {.id="CTL0044"}, } },
86 {.id = "CTL00C1", .driver_data = 0, .devs = { {.id="CTL0042"}, } },
88 {.id = "CTL00C3", .driver_data = 0, .devs = { {.id="CTL0045"}, } },
90 {.id = "CTL00C5", .driver_data = 0, .devs = { {.id="CTL0045"}, } },
92 {.id = "CTL00C7", .driver_data = 0, .devs = { {.id="CTL0045"}, } },
94 {.id = "CTL00E4", .driver_data = 0, .devs = { {.id="CTL0045"}, } },
96 {.id = "CTL00E9", .driver_data = 0, .devs = { {.id="CTL0045"}, } },
98 {.id = "ESS0968", .driver_data = 0, .devs = { {.id="ESS0968"}, } },
100 {.id = "ESS1868", .driver_data = 0, .devs = { {.id="ESS1868"}, } },
102 {.id = "ESS1868", .driver_data = 0, .devs = { {.id="ESS8611"}, } },
104 {.id = "ESS0003", .driver_data = 0, .devs = { {.id="ESS1869"}, } },
106 {.id = "ESS1869", .driver_data = 0, .devs = { {.id="ESS1869"}, } },
108 {.id = "ESS1878", .driver_data = 0, .devs = { {.id="ESS1878"}, } },
110 {.id = "ESS1879", .driver_data = 0, .devs = { {.id="ESS1879"}, } },
112 {.id = "CMI0001", .driver_data = 0, .devs = { {.id="@X@0001"},
113 {.id="@H@0001"},
114 {.id="@@@0001"}, } },
116 {.id = "RWR1688", .driver_data = 0, .devs = { {.id="@@@0001"},
117 {.id="@X@0001"},
118 {.id="@H@0001"}, } },
120 {.id = "ALS0007", .driver_data = 0, .devs = { {.id="@@@0001"},
121 {.id="@X@0001"},
122 {.id="@H@0001"}, } },
124 {.id = "ALS0001", .driver_data = 0, .devs = { {.id="@@@0001"},
125 {.id="@X@0001"},
126 {.id="@H@0001"}, } },
128 {.id = "ALS0110", .driver_data = 0, .devs = { {.id="@@@1001"},
129 {.id="@X@1001"},
130 {.id="@H@0001"}, } },
132 {.id = "ALS0120", .driver_data = 0, .devs = { {.id="@@@2001"},
133 {.id="@X@2001"},
134 {.id="@H@0001"}, } },
136 {.id = "ALS0200", .driver_data = 0, .devs = { {.id="@@@0020"},
137 {.id="@X@0030"},
138 {.id="@H@0001"}, } },
140 {.id = "RTL3000", .driver_data = 0, .devs = { {.id="@@@2001"},
141 {.id="@X@2001"},
142 {.id="@H@0001"}, } },
144 {.id = "tBA03b0", .driver_data = 0, .devs = { {.id="PNPb003"}, } },
146 {.id = "", }
H A Dbin2hex.c10 int id = 0; main() local
16 id=1; main()
27 printf( "static unsigned char %s [] %s =\n{\n", varname , id?"__initdata":""); main()
/linux-4.1.27/tools/perf/arch/x86/util/
H A Dunwind-libunwind.c11 int id; libunwind__arch_reg_id() local
15 id = PERF_REG_X86_AX; libunwind__arch_reg_id()
18 id = PERF_REG_X86_DX; libunwind__arch_reg_id()
21 id = PERF_REG_X86_CX; libunwind__arch_reg_id()
24 id = PERF_REG_X86_BX; libunwind__arch_reg_id()
27 id = PERF_REG_X86_SI; libunwind__arch_reg_id()
30 id = PERF_REG_X86_DI; libunwind__arch_reg_id()
33 id = PERF_REG_X86_BP; libunwind__arch_reg_id()
36 id = PERF_REG_X86_SP; libunwind__arch_reg_id()
39 id = PERF_REG_X86_R8; libunwind__arch_reg_id()
42 id = PERF_REG_X86_R9; libunwind__arch_reg_id()
45 id = PERF_REG_X86_R10; libunwind__arch_reg_id()
48 id = PERF_REG_X86_R11; libunwind__arch_reg_id()
51 id = PERF_REG_X86_R12; libunwind__arch_reg_id()
54 id = PERF_REG_X86_R13; libunwind__arch_reg_id()
57 id = PERF_REG_X86_R14; libunwind__arch_reg_id()
60 id = PERF_REG_X86_R15; libunwind__arch_reg_id()
63 id = PERF_REG_X86_IP; libunwind__arch_reg_id()
66 pr_err("unwind: invalid reg id %d\n", regnum); libunwind__arch_reg_id()
70 return id; libunwind__arch_reg_id()
75 int id; libunwind__arch_reg_id() local
79 id = PERF_REG_X86_AX; libunwind__arch_reg_id()
82 id = PERF_REG_X86_DX; libunwind__arch_reg_id()
85 id = PERF_REG_X86_CX; libunwind__arch_reg_id()
88 id = PERF_REG_X86_BX; libunwind__arch_reg_id()
91 id = PERF_REG_X86_SI; libunwind__arch_reg_id()
94 id = PERF_REG_X86_DI; libunwind__arch_reg_id()
97 id = PERF_REG_X86_BP; libunwind__arch_reg_id()
100 id = PERF_REG_X86_SP; libunwind__arch_reg_id()
103 id = PERF_REG_X86_IP; libunwind__arch_reg_id()
106 pr_err("unwind: invalid reg id %d\n", regnum); libunwind__arch_reg_id()
110 return id; libunwind__arch_reg_id()
/linux-4.1.27/tools/perf/util/
H A Dperf_regs.c5 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id) perf_reg_value() argument
10 if (regs->cache_mask & (1 << id)) perf_reg_value()
13 if (!(mask & (1 << id))) perf_reg_value()
16 for (i = 0; i < id; i++) { perf_reg_value()
21 regs->cache_mask |= (1 << id); perf_reg_value()
22 regs->cache_regs[id] = regs->regs[idx]; perf_reg_value()
25 *valp = regs->cache_regs[id]; perf_reg_value()
H A Dperf_regs.h11 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
17 static inline const char *perf_reg_name(int id __maybe_unused) perf_reg_name()
24 int id __maybe_unused) perf_reg_value()
/linux-4.1.27/drivers/usb/phy/
H A Dam35x-phy-control.h5 void (*phy_power)(struct phy_control *phy_ctrl, u32 id, bool on);
6 void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on);
9 static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id, bool on) phy_ctrl_power() argument
11 phy_ctrl->phy_power(phy_ctrl, id, on); phy_ctrl_power()
14 static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on) phy_ctrl_wkup() argument
16 phy_ctrl->phy_wkup(phy_ctrl, id, on); phy_ctrl_wkup()
H A Dphy-am335x.c18 int id; member in struct:am335x_phy
25 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, true); am335x_init()
33 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false); am335x_shutdown()
49 am_phy->id = of_alias_get_id(pdev->dev.of_node, "phy"); am335x_phy_probe()
50 if (am_phy->id < 0) { am335x_phy_probe()
51 dev_err(&pdev->dev, "Missing PHY id: %d\n", am_phy->id); am335x_phy_probe()
52 return am_phy->id; am335x_phy_probe()
78 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false); am335x_phy_probe()
102 * echo enabled > /sys/bus/platform/devices/<usb-phy-id>/power/wakeup am335x_phy_suspend()
106 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, true); am335x_phy_suspend()
108 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false); am335x_phy_suspend()
118 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, true); am335x_phy_resume()
121 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, false); am335x_phy_resume()
/linux-4.1.27/arch/arm/mach-davinci/include/mach/
H A Dtime.h26 #define IS_TIMER1(id) (id & 0x2)
27 #define IS_TIMER0(id) (!IS_TIMER1(id))
28 #define IS_TIMER_TOP(id) ((id & 0x1))
29 #define IS_TIMER_BOT(id) (!IS_TIMER_TOP(id))
31 #define ID_TO_TIMER(id) (IS_TIMER1(id) != 0)
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-sh7760.c114 struct cami2c *id = ptr; sh7760_i2c_irq() local
115 struct i2c_msg *msg = id->msg; sh7760_i2c_irq()
119 msr = IN32(id, I2CMSR); sh7760_i2c_irq()
120 fsr = IN32(id, I2CFSR); sh7760_i2c_irq()
124 OUT32(id, I2CMCR, 0); sh7760_i2c_irq()
125 OUT32(id, I2CSCR, 0); sh7760_i2c_irq()
126 OUT32(id, I2CSAR, 0); sh7760_i2c_irq()
127 id->status |= IDS_DONE | IDS_ARBLOST; sh7760_i2c_irq()
139 OUT32(id, I2CFCR, FCR_RFRST | FCR_TFRST); sh7760_i2c_irq()
140 OUT32(id, I2CMCR, MCR_MIE | MCR_FSB); sh7760_i2c_irq()
141 OUT32(id, I2CFIER, 0); sh7760_i2c_irq()
142 OUT32(id, I2CMIER, MIE_MSTE); sh7760_i2c_irq()
143 OUT32(id, I2CSCR, 0); sh7760_i2c_irq()
144 OUT32(id, I2CSAR, 0); sh7760_i2c_irq()
145 id->status |= IDS_NACK; sh7760_i2c_irq()
153 id->status |= IDS_DONE; sh7760_i2c_irq()
159 OUT32(id, I2CMCR, MCR_MIE); sh7760_i2c_irq()
161 fier = IN32(id, I2CFIER); sh7760_i2c_irq()
164 len = IN32(id, I2CRFDR); sh7760_i2c_irq()
166 if (id->flags & IDF_STOP) { sh7760_i2c_irq()
167 OUT32(id, I2CMCR, MCR_MIE | MCR_FSB); sh7760_i2c_irq()
168 OUT32(id, I2CFIER, 0); sh7760_i2c_irq()
173 id->status |= IDS_DONE; sh7760_i2c_irq()
182 *data++ = IN32(id, I2CRXTX); sh7760_i2c_irq()
191 OUT32(id, I2CFCR, FCR_TFRST | ((len & 0xf) << 4)); sh7760_i2c_irq()
194 } else if (id->flags & IDF_SEND) { sh7760_i2c_irq()
196 if (id->flags & IDF_STOP) { sh7760_i2c_irq()
197 OUT32(id, I2CMCR, MCR_MIE | MCR_FSB); sh7760_i2c_irq()
199 id->status |= IDS_DONE; sh7760_i2c_irq()
208 while (msg->len && (IN32(id, I2CTFDR) < FIFO_SIZE)) { sh7760_i2c_irq()
209 OUT32(id, I2CRXTX, *data++); sh7760_i2c_irq()
215 OUT32(id, I2CFIER, fier); sh7760_i2c_irq()
218 OUT32(id, I2CFCR, sh7760_i2c_irq()
224 if (id->status & IDS_DONE) { sh7760_i2c_irq()
225 OUT32(id, I2CMIER, 0); sh7760_i2c_irq()
226 OUT32(id, I2CFIER, 0); sh7760_i2c_irq()
227 id->msg = NULL; sh7760_i2c_irq()
228 complete(&id->xfer_done); sh7760_i2c_irq()
231 OUT32(id, I2CMSR, ~msr); sh7760_i2c_irq()
232 OUT32(id, I2CFSR, ~fsr); sh7760_i2c_irq()
233 OUT32(id, I2CSSR, 0); sh7760_i2c_irq()
240 static void sh7760_i2c_mrecv(struct cami2c *id) sh7760_i2c_mrecv() argument
244 id->flags |= IDF_RECV; sh7760_i2c_mrecv()
247 OUT32(id, I2CSAR, 0xfe); sh7760_i2c_mrecv()
248 OUT32(id, I2CMAR, (id->msg->addr << 1) | 1); sh7760_i2c_mrecv()
251 if (id->msg->len >= FIFO_SIZE) sh7760_i2c_mrecv()
254 len = id->msg->len - 1; /* trigger before all received */ sh7760_i2c_mrecv()
256 OUT32(id, I2CFCR, FCR_RFRST | FCR_TFRST); sh7760_i2c_mrecv()
257 OUT32(id, I2CFCR, FCR_TFRST | ((len & 0xF) << 4)); sh7760_i2c_mrecv()
259 OUT32(id, I2CMSR, 0); sh7760_i2c_mrecv()
260 OUT32(id, I2CMCR, MCR_MIE | MCR_ESG); sh7760_i2c_mrecv()
261 OUT32(id, I2CMIER, MIE_MNRE | MIE_MALE | MIE_MSTE | MIE_MATE); sh7760_i2c_mrecv()
262 OUT32(id, I2CFIER, FIER_RXIE); sh7760_i2c_mrecv()
266 static void sh7760_i2c_msend(struct cami2c *id) sh7760_i2c_msend() argument
270 id->flags |= IDF_SEND; sh7760_i2c_msend()
273 OUT32(id, I2CSAR, 0xfe); sh7760_i2c_msend()
274 OUT32(id, I2CMAR, (id->msg->addr << 1) | 0); sh7760_i2c_msend()
277 if (id->msg->len >= FIFO_SIZE) sh7760_i2c_msend()
282 OUT32(id, I2CFCR, FCR_RFRST | FCR_TFRST); sh7760_i2c_msend()
283 OUT32(id, I2CFCR, FCR_RFRST | ((len & 3) << 2)); sh7760_i2c_msend()
285 while (id->msg->len && IN32(id, I2CTFDR) < FIFO_SIZE) { sh7760_i2c_msend()
286 OUT32(id, I2CRXTX, *(id->msg->buf)); sh7760_i2c_msend()
287 (id->msg->len)--; sh7760_i2c_msend()
288 (id->msg->buf)++; sh7760_i2c_msend()
291 OUT32(id, I2CMSR, 0); sh7760_i2c_msend()
292 OUT32(id, I2CMCR, MCR_MIE | MCR_ESG); sh7760_i2c_msend()
293 OUT32(id, I2CFSR, 0); sh7760_i2c_msend()
294 OUT32(id, I2CMIER, MIE_MNRE | MIE_MALE | MIE_MSTE | MIE_MATE); sh7760_i2c_msend()
295 OUT32(id, I2CFIER, FIER_TEIE | (id->msg->len ? FIER_TXIE : 0)); sh7760_i2c_msend()
298 static inline int sh7760_i2c_busy_check(struct cami2c *id) sh7760_i2c_busy_check() argument
300 return (IN32(id, I2CMCR) & MCR_FSDA); sh7760_i2c_busy_check()
307 struct cami2c *id = adap->algo_data; sh7760_i2c_master_xfer() local
310 if (sh7760_i2c_busy_check(id)) { sh7760_i2c_master_xfer()
319 id->flags = ((i == (num-1)) ? IDF_STOP : 0); sh7760_i2c_master_xfer()
320 id->status = 0; sh7760_i2c_master_xfer()
321 id->msg = msgs; sh7760_i2c_master_xfer()
322 init_completion(&id->xfer_done); sh7760_i2c_master_xfer()
325 sh7760_i2c_mrecv(id); sh7760_i2c_master_xfer()
327 sh7760_i2c_msend(id); sh7760_i2c_master_xfer()
329 wait_for_completion(&id->xfer_done); sh7760_i2c_master_xfer()
331 if (id->status == 0) { sh7760_i2c_master_xfer()
336 if (id->status & IDS_NACK) { sh7760_i2c_master_xfer()
343 if (id->status & IDS_ARBLOST) { sh7760_i2c_master_xfer()
356 id->msg = NULL; sh7760_i2c_master_xfer()
357 id->flags = 0; sh7760_i2c_master_xfer()
358 id->status = 0; sh7760_i2c_master_xfer()
360 OUT32(id, I2CMCR, 0); sh7760_i2c_master_xfer()
361 OUT32(id, I2CMSR, 0); sh7760_i2c_master_xfer()
362 OUT32(id, I2CMIER, 0); sh7760_i2c_master_xfer()
363 OUT32(id, I2CFIER, 0); sh7760_i2c_master_xfer()
369 OUT32(id, I2CSCR, 0); sh7760_i2c_master_xfer()
370 OUT32(id, I2CSAR, 0); sh7760_i2c_master_xfer()
371 OUT32(id, I2CSSR, 0); sh7760_i2c_master_xfer()
436 struct cami2c *id; sh7760_i2c_probe() local
446 id = kzalloc(sizeof(struct cami2c), GFP_KERNEL); sh7760_i2c_probe()
447 if (!id) { sh7760_i2c_probe()
460 id->ioarea = request_mem_region(res->start, REGSIZE, pdev->name); sh7760_i2c_probe()
461 if (!id->ioarea) { sh7760_i2c_probe()
467 id->iobase = ioremap(res->start, REGSIZE); sh7760_i2c_probe()
468 if (!id->iobase) { sh7760_i2c_probe()
474 id->irq = platform_get_irq(pdev, 0); sh7760_i2c_probe()
476 id->adap.nr = pdev->id; sh7760_i2c_probe()
477 id->adap.algo = &sh7760_i2c_algo; sh7760_i2c_probe()
478 id->adap.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; sh7760_i2c_probe()
479 id->adap.retries = 3; sh7760_i2c_probe()
480 id->adap.algo_data = id; sh7760_i2c_probe()
481 id->adap.dev.parent = &pdev->dev; sh7760_i2c_probe()
482 snprintf(id->adap.name, sizeof(id->adap.name), sh7760_i2c_probe()
485 OUT32(id, I2CMCR, 0); sh7760_i2c_probe()
486 OUT32(id, I2CMSR, 0); sh7760_i2c_probe()
487 OUT32(id, I2CMIER, 0); sh7760_i2c_probe()
488 OUT32(id, I2CMAR, 0); sh7760_i2c_probe()
489 OUT32(id, I2CSIER, 0); sh7760_i2c_probe()
490 OUT32(id, I2CSAR, 0); sh7760_i2c_probe()
491 OUT32(id, I2CSCR, 0); sh7760_i2c_probe()
492 OUT32(id, I2CSSR, 0); sh7760_i2c_probe()
493 OUT32(id, I2CFIER, 0); sh7760_i2c_probe()
494 OUT32(id, I2CFCR, FCR_RFRST | FCR_TFRST); sh7760_i2c_probe()
495 OUT32(id, I2CFSR, 0); sh7760_i2c_probe()
503 OUT32(id, I2CCCR, ret); sh7760_i2c_probe()
505 if (request_irq(id->irq, sh7760_i2c_irq, 0, sh7760_i2c_probe()
506 SH7760_I2C_DEVNAME, id)) { sh7760_i2c_probe()
507 dev_err(&pdev->dev, "cannot get irq %d\n", id->irq); sh7760_i2c_probe()
512 ret = i2c_add_numbered_adapter(&id->adap); sh7760_i2c_probe()
518 platform_set_drvdata(pdev, id); sh7760_i2c_probe()
521 pd->speed_khz, res->start, id->irq); sh7760_i2c_probe()
526 free_irq(id->irq, id); sh7760_i2c_probe()
528 iounmap(id->iobase); sh7760_i2c_probe()
530 release_resource(id->ioarea); sh7760_i2c_probe()
531 kfree(id->ioarea); sh7760_i2c_probe()
533 kfree(id); sh7760_i2c_probe()
540 struct cami2c *id = platform_get_drvdata(pdev); sh7760_i2c_remove() local
542 i2c_del_adapter(&id->adap); sh7760_i2c_remove()
543 free_irq(id->irq, id); sh7760_i2c_remove()
544 iounmap(id->iobase); sh7760_i2c_remove()
545 release_resource(id->ioarea); sh7760_i2c_remove()
546 kfree(id->ioarea); sh7760_i2c_remove()
547 kfree(id); sh7760_i2c_remove()
H A Di2c-cadence.c116 #define cdns_i2c_readreg(offset) readl_relaxed(id->membase + offset)
117 #define cdns_i2c_writereg(val, offset) writel_relaxed(val, id->membase + offset)
164 * @id: Pointer to driver data struct
168 static void cdns_i2c_clear_bus_hold(struct cdns_i2c *id) cdns_i2c_clear_bus_hold() argument
189 struct cdns_i2c *id = ptr; cdns_i2c_isr() local
208 if (id->recv_count > id->curr_recv_count) cdns_i2c_isr()
212 if (id->p_recv_buf && cdns_i2c_isr()
223 if ((id->recv_count < CDNS_I2C_FIFO_DEPTH) && cdns_i2c_isr()
224 !id->bus_hold_flag) cdns_i2c_isr()
225 cdns_i2c_clear_bus_hold(id); cdns_i2c_isr()
227 *(id->p_recv_buf)++ = cdns_i2c_isr()
229 id->recv_count--; cdns_i2c_isr()
230 id->curr_recv_count--; cdns_i2c_isr()
233 (id->curr_recv_count == CDNS_I2C_FIFO_DEPTH + 1)) cdns_i2c_isr()
245 (id->curr_recv_count == CDNS_I2C_FIFO_DEPTH + 1)) { cdns_i2c_isr()
248 (id->curr_recv_count - CDNS_I2C_FIFO_DEPTH)) cdns_i2c_isr()
255 if (((int)(id->recv_count) - CDNS_I2C_FIFO_DEPTH) > cdns_i2c_isr()
259 id->curr_recv_count = CDNS_I2C_TRANSFER_SIZE + cdns_i2c_isr()
262 cdns_i2c_writereg(id->recv_count - cdns_i2c_isr()
265 id->curr_recv_count = id->recv_count; cdns_i2c_isr()
270 if ((isr_status & CDNS_I2C_IXR_COMP) && !id->recv_count) { cdns_i2c_isr()
271 if (!id->bus_hold_flag) cdns_i2c_isr()
272 cdns_i2c_clear_bus_hold(id); cdns_i2c_isr()
280 if ((isr_status & CDNS_I2C_IXR_COMP) && !id->p_recv_buf) { cdns_i2c_isr()
285 if (id->send_count) { cdns_i2c_isr()
288 if (id->send_count > avail_bytes) cdns_i2c_isr()
291 bytes_to_send = id->send_count; cdns_i2c_isr()
295 (*(id->p_send_buf)++), cdns_i2c_isr()
297 id->send_count--; cdns_i2c_isr()
307 if (!id->send_count && !id->bus_hold_flag) cdns_i2c_isr()
308 cdns_i2c_clear_bus_hold(id); cdns_i2c_isr()
314 id->err_status = isr_status & CDNS_I2C_IXR_ERR_INTR_MASK; cdns_i2c_isr()
315 if (id->err_status) cdns_i2c_isr()
319 complete(&id->xfer_done); cdns_i2c_isr()
326 * @id: pointer to the i2c device structure
328 static void cdns_i2c_mrecv(struct cdns_i2c *id) cdns_i2c_mrecv() argument
333 id->p_recv_buf = id->p_msg->buf; cdns_i2c_mrecv()
334 id->recv_count = id->p_msg->len; cdns_i2c_mrecv()
340 if (id->p_msg->flags & I2C_M_RECV_LEN) cdns_i2c_mrecv()
341 id->recv_count = I2C_SMBUS_BLOCK_MAX + 1; cdns_i2c_mrecv()
343 id->curr_recv_count = id->recv_count; cdns_i2c_mrecv()
349 if (id->recv_count > CDNS_I2C_FIFO_DEPTH) cdns_i2c_mrecv()
364 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { cdns_i2c_mrecv()
367 id->curr_recv_count = CDNS_I2C_TRANSFER_SIZE; cdns_i2c_mrecv()
369 cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET); cdns_i2c_mrecv()
373 if (!id->bus_hold_flag && cdns_i2c_mrecv()
374 ((id->p_msg->flags & I2C_M_RECV_LEN) != I2C_M_RECV_LEN) && cdns_i2c_mrecv()
375 (id->recv_count <= CDNS_I2C_FIFO_DEPTH)) cdns_i2c_mrecv()
376 cdns_i2c_clear_bus_hold(id); cdns_i2c_mrecv()
378 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, cdns_i2c_mrecv()
385 * @id: pointer to the i2c device
387 static void cdns_i2c_msend(struct cdns_i2c *id) cdns_i2c_msend() argument
394 id->p_recv_buf = NULL; cdns_i2c_msend()
395 id->p_send_buf = id->p_msg->buf; cdns_i2c_msend()
396 id->send_count = id->p_msg->len; cdns_i2c_msend()
407 if (id->send_count > CDNS_I2C_FIFO_DEPTH) cdns_i2c_msend()
423 if (id->send_count > avail_bytes) cdns_i2c_msend()
426 bytes_to_send = id->send_count; cdns_i2c_msend()
429 cdns_i2c_writereg((*(id->p_send_buf)++), CDNS_I2C_DATA_OFFSET); cdns_i2c_msend()
430 id->send_count--; cdns_i2c_msend()
437 if (!id->bus_hold_flag && !id->send_count) cdns_i2c_msend()
438 cdns_i2c_clear_bus_hold(id); cdns_i2c_msend()
440 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, cdns_i2c_msend()
455 struct cdns_i2c *id = adap->algo_data; cdns_i2c_master_reset() local
475 static int cdns_i2c_process_msg(struct cdns_i2c *id, struct i2c_msg *msg, cdns_i2c_process_msg() argument
481 id->p_msg = msg; cdns_i2c_process_msg()
482 id->err_status = 0; cdns_i2c_process_msg()
483 reinit_completion(&id->xfer_done); cdns_i2c_process_msg()
499 cdns_i2c_mrecv(id); cdns_i2c_process_msg()
501 cdns_i2c_msend(id); cdns_i2c_process_msg()
504 time_left = wait_for_completion_timeout(&id->xfer_done, adap->timeout); cdns_i2c_process_msg()
507 dev_err(id->adap.dev.parent, cdns_i2c_process_msg()
516 if (id->err_status & CDNS_I2C_IXR_ARB_LOST) cdns_i2c_process_msg()
537 struct cdns_i2c *id = adap->algo_data; cdns_i2c_master_xfer() local
562 id->bus_hold_flag = 1; cdns_i2c_master_xfer()
567 id->bus_hold_flag = 0; cdns_i2c_master_xfer()
573 id->bus_hold_flag = 0; cdns_i2c_master_xfer()
575 ret = cdns_i2c_process_msg(id, msgs, adap); cdns_i2c_master_xfer()
580 if (id->err_status) { cdns_i2c_master_xfer()
583 if (id->err_status & CDNS_I2C_IXR_NACK) cdns_i2c_master_xfer()
674 * @id: Pointer to the I2C device structure
687 static int cdns_i2c_setclk(unsigned long clk_in, struct cdns_i2c *id) cdns_i2c_setclk() argument
692 unsigned long fscl = id->i2c_clk; cdns_i2c_setclk()
727 struct cdns_i2c *id = to_cdns_i2c(nb); cdns_i2c_clk_notifier_cb() local
729 if (id->suspended) cdns_i2c_clk_notifier_cb()
736 unsigned long fscl = id->i2c_clk; cdns_i2c_clk_notifier_cb()
742 dev_warn(id->adap.dev.parent, cdns_i2c_clk_notifier_cb()
749 cdns_i2c_setclk(ndata->new_rate, id); cdns_i2c_clk_notifier_cb()
754 id->input_clk = ndata->new_rate; cdns_i2c_clk_notifier_cb()
757 cdns_i2c_setclk(ndata->new_rate, id); cdns_i2c_clk_notifier_cb()
762 cdns_i2c_setclk(ndata->old_rate, id); cdns_i2c_clk_notifier_cb()
831 struct cdns_i2c *id; cdns_i2c_probe() local
834 id = devm_kzalloc(&pdev->dev, sizeof(*id), GFP_KERNEL); cdns_i2c_probe()
835 if (!id) cdns_i2c_probe()
838 platform_set_drvdata(pdev, id); cdns_i2c_probe()
841 id->membase = devm_ioremap_resource(&pdev->dev, r_mem); cdns_i2c_probe()
842 if (IS_ERR(id->membase)) cdns_i2c_probe()
843 return PTR_ERR(id->membase); cdns_i2c_probe()
845 id->irq = platform_get_irq(pdev, 0); cdns_i2c_probe()
847 id->adap.dev.of_node = pdev->dev.of_node; cdns_i2c_probe()
848 id->adap.algo = &cdns_i2c_algo; cdns_i2c_probe()
849 id->adap.timeout = CDNS_I2C_TIMEOUT; cdns_i2c_probe()
850 id->adap.retries = 3; /* Default retry value. */ cdns_i2c_probe()
851 id->adap.algo_data = id; cdns_i2c_probe()
852 id->adap.dev.parent = &pdev->dev; cdns_i2c_probe()
853 init_completion(&id->xfer_done); cdns_i2c_probe()
854 snprintf(id->adap.name, sizeof(id->adap.name), cdns_i2c_probe()
857 id->clk = devm_clk_get(&pdev->dev, NULL); cdns_i2c_probe()
858 if (IS_ERR(id->clk)) { cdns_i2c_probe()
860 return PTR_ERR(id->clk); cdns_i2c_probe()
862 ret = clk_prepare_enable(id->clk); cdns_i2c_probe()
867 id->clk_rate_change_nb.notifier_call = cdns_i2c_clk_notifier_cb; cdns_i2c_probe()
868 if (clk_notifier_register(id->clk, &id->clk_rate_change_nb)) cdns_i2c_probe()
870 id->input_clk = clk_get_rate(id->clk); cdns_i2c_probe()
873 &id->i2c_clk); cdns_i2c_probe()
874 if (ret || (id->i2c_clk > CDNS_I2C_SPEED_MAX)) cdns_i2c_probe()
875 id->i2c_clk = CDNS_I2C_SPEED_DEFAULT; cdns_i2c_probe()
880 ret = cdns_i2c_setclk(id->input_clk, id); cdns_i2c_probe()
882 dev_err(&pdev->dev, "invalid SCL clock: %u Hz\n", id->i2c_clk); cdns_i2c_probe()
887 ret = devm_request_irq(&pdev->dev, id->irq, cdns_i2c_isr, 0, cdns_i2c_probe()
888 DRIVER_NAME, id); cdns_i2c_probe()
890 dev_err(&pdev->dev, "cannot get irq %d\n", id->irq); cdns_i2c_probe()
894 ret = i2c_add_adapter(&id->adap); cdns_i2c_probe()
910 id->i2c_clk / 1000, (unsigned long)r_mem->start, id->irq); cdns_i2c_probe()
915 clk_disable_unprepare(id->clk); cdns_i2c_probe()
929 struct cdns_i2c *id = platform_get_drvdata(pdev); cdns_i2c_remove() local
931 i2c_del_adapter(&id->adap); cdns_i2c_remove()
932 clk_notifier_unregister(id->clk, &id->clk_rate_change_nb); cdns_i2c_remove()
933 clk_disable_unprepare(id->clk); cdns_i2c_remove()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_fail.h45 int __cfs_fail_check_set(__u32 id, __u32 value, int set);
46 int __cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set);
73 #define CFS_FAIL_PRECHECK(id) (cfs_fail_loc && \
75 ((id) & CFS_FAIL_MASK_LOC))
77 static inline int cfs_fail_check_set(__u32 id, __u32 value, cfs_fail_check_set() argument
82 if (unlikely(CFS_FAIL_PRECHECK(id) && cfs_fail_check_set()
83 (ret = __cfs_fail_check_set(id, value, set)))) { cfs_fail_check_set()
86 id, value); cfs_fail_check_set()
89 id, value); cfs_fail_check_set()
96 /* If id hit cfs_fail_loc, return 1, otherwise return 0 */
97 #define CFS_FAIL_CHECK(id) \
98 cfs_fail_check_set(id, 0, CFS_FAIL_LOC_NOSET, 0)
99 #define CFS_FAIL_CHECK_QUIET(id) \
100 cfs_fail_check_set(id, 0, CFS_FAIL_LOC_NOSET, 1)
102 /* If id hit cfs_fail_loc and cfs_fail_val == (-1 or value) return 1,
104 #define CFS_FAIL_CHECK_VALUE(id, value) \
105 cfs_fail_check_set(id, value, CFS_FAIL_LOC_VALUE, 0)
106 #define CFS_FAIL_CHECK_VALUE_QUIET(id, value) \
107 cfs_fail_check_set(id, value, CFS_FAIL_LOC_VALUE, 1)
109 /* If id hit cfs_fail_loc, cfs_fail_loc |= value and return 1,
111 #define CFS_FAIL_CHECK_ORSET(id, value) \
112 cfs_fail_check_set(id, value, CFS_FAIL_LOC_ORSET, 0)
113 #define CFS_FAIL_CHECK_ORSET_QUIET(id, value) \
114 cfs_fail_check_set(id, value, CFS_FAIL_LOC_ORSET, 1)
116 /* If id hit cfs_fail_loc, cfs_fail_loc = value and return 1,
118 #define CFS_FAIL_CHECK_RESET(id, value) \
119 cfs_fail_check_set(id, value, CFS_FAIL_LOC_RESET, 0)
120 #define CFS_FAIL_CHECK_RESET_QUIET(id, value) \
121 cfs_fail_check_set(id, value, CFS_FAIL_LOC_RESET, 1)
123 static inline int cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set) cfs_fail_timeout_set() argument
125 if (unlikely(CFS_FAIL_PRECHECK(id))) cfs_fail_timeout_set()
126 return __cfs_fail_timeout_set(id, value, ms, set); cfs_fail_timeout_set()
130 /* If id hit cfs_fail_loc, sleep for seconds or milliseconds */
131 #define CFS_FAIL_TIMEOUT(id, secs) \
132 cfs_fail_timeout_set(id, 0, secs * 1000, CFS_FAIL_LOC_NOSET)
134 #define CFS_FAIL_TIMEOUT_MS(id, ms) \
135 cfs_fail_timeout_set(id, 0, ms, CFS_FAIL_LOC_NOSET)
137 /* If id hit cfs_fail_loc, cfs_fail_loc |= value and
139 #define CFS_FAIL_TIMEOUT_ORSET(id, value, secs) \
140 cfs_fail_timeout_set(id, value, secs * 1000, CFS_FAIL_LOC_ORSET)
142 #define CFS_FAIL_TIMEOUT_MS_ORSET(id, value, ms) \
143 cfs_fail_timeout_set(id, value, ms, CFS_FAIL_LOC_ORSET)
149 static inline void cfs_race(__u32 id) cfs_race() argument
152 if (CFS_FAIL_PRECHECK(id)) { cfs_race()
153 if (unlikely(__cfs_fail_check_set(id, 0, CFS_FAIL_LOC_NOSET))) { cfs_race()
157 CERROR("cfs_race id %x sleeping\n", id); cfs_race()
160 CERROR("cfs_fail_race id %x awake, rc=%d\n", id, rc); cfs_race()
162 CERROR("cfs_fail_race id %x waking\n", id); cfs_race()
169 #define CFS_RACE(id) cfs_race(id)
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_timer.h4 int bcm63xx_timer_register(int id, void (*callback)(void *data), void *data);
5 void bcm63xx_timer_unregister(int id);
6 int bcm63xx_timer_set(int id, int monotonic, unsigned int countdown_us);
7 int bcm63xx_timer_enable(int id);
8 int bcm63xx_timer_disable(int id);
H A Dbcm63xx_dev_uart.h4 int bcm63xx_uart_register(unsigned int id);
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dbit.h4 u8 id; member in struct:bit_entry
10 int bit_entry(struct nvkm_bios *, u8 id, struct bit_entry *);
/linux-4.1.27/security/integrity/
H A Ddigsig.c36 int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen, integrity_digsig_verify() argument
39 if (id >= INTEGRITY_KEYRING_MAX) integrity_digsig_verify()
42 if (!keyring[id]) { integrity_digsig_verify()
43 keyring[id] = integrity_digsig_verify()
44 request_key(&key_type_keyring, keyring_name[id], NULL); integrity_digsig_verify()
45 if (IS_ERR(keyring[id])) { integrity_digsig_verify()
46 int err = PTR_ERR(keyring[id]); integrity_digsig_verify()
47 pr_err("no %s keyring: %d\n", keyring_name[id], err); integrity_digsig_verify()
48 keyring[id] = NULL; integrity_digsig_verify()
56 return digsig_verify(keyring[id], sig + 1, siglen - 1, integrity_digsig_verify()
59 return asymmetric_verify(keyring[id], sig, siglen, integrity_digsig_verify()
66 int __init integrity_init_keyring(const unsigned int id) integrity_init_keyring() argument
71 keyring[id] = keyring_alloc(keyring_name[id], KUIDT_INIT(0), integrity_init_keyring()
77 if (!IS_ERR(keyring[id])) integrity_init_keyring()
78 set_bit(KEY_FLAG_TRUSTED_ONLY, &keyring[id]->flags); integrity_init_keyring()
80 err = PTR_ERR(keyring[id]); integrity_init_keyring()
82 keyring_name[id], err); integrity_init_keyring()
83 keyring[id] = NULL; integrity_init_keyring()
88 int __init integrity_load_x509(const unsigned int id, char *path) integrity_load_x509() argument
94 if (!keyring[id]) integrity_load_x509()
101 key = key_create_or_update(make_key_ref(keyring[id], 1), integrity_load_x509()
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Dhardware.h107 #define __cpu_is_pxa210(id) \
109 unsigned int _id = (id) & 0xf3f0; \
113 #define __cpu_is_pxa250(id) \
115 unsigned int _id = (id) & 0xf3ff; \
119 #define __cpu_is_pxa255(id) \
121 unsigned int _id = (id) & 0xffff; \
125 #define __cpu_is_pxa25x(id) \
127 unsigned int _id = (id) & 0xf300; \
131 #define __cpu_is_pxa210(id) (0)
132 #define __cpu_is_pxa250(id) (0)
133 #define __cpu_is_pxa255(id) (0)
134 #define __cpu_is_pxa25x(id) (0)
138 #define __cpu_is_pxa27x(id) \
140 unsigned int _id = (id) >> 4 & 0xfff; \
144 #define __cpu_is_pxa27x(id) (0)
148 #define __cpu_is_pxa300(id) \
150 unsigned int _id = (id) >> 4 & 0xfff; \
154 #define __cpu_is_pxa300(id) (0)
158 #define __cpu_is_pxa310(id) \
160 unsigned int _id = (id) >> 4 & 0xfff; \
164 #define __cpu_is_pxa310(id) (0)
168 #define __cpu_is_pxa320(id) \
170 unsigned int _id = (id) >> 4 & 0xfff; \
174 #define __cpu_is_pxa320(id) (0)
178 #define __cpu_is_pxa930(id) \
180 unsigned int _id = (id) >> 4 & 0xfff; \
184 #define __cpu_is_pxa930(id) (0)
188 #define __cpu_is_pxa935(id) \
190 unsigned int _id = (id) >> 4 & 0xfff; \
194 #define __cpu_is_pxa935(id) (0)
254 #define __cpu_is_pxa2xx(id) \
256 unsigned int _id = (id) >> 13 & 0x7; \
260 #define __cpu_is_pxa2xx(id) (0)
264 #define __cpu_is_pxa3xx(id) \
266 __cpu_is_pxa300(id) \
267 || __cpu_is_pxa310(id) \
268 || __cpu_is_pxa320(id) \
269 || __cpu_is_pxa93x(id); \
272 #define __cpu_is_pxa3xx(id) (0)
276 #define __cpu_is_pxa93x(id) \
278 __cpu_is_pxa930(id) \
279 || __cpu_is_pxa935(id); \
282 #define __cpu_is_pxa93x(id) (0)
/linux-4.1.27/include/uapi/linux/netfilter/
H A Dxt_cgroup.h7 __u32 id; member in struct:xt_cgroup_info
H A Dxt_l2tp.h13 __u32 tid; /* tunnel id */
14 __u32 sid; /* session id */
21 XT_L2TP_TID = (1 << 0), /* match L2TP tunnel id */
22 XT_L2TP_SID = (1 << 1), /* match L2TP session id */
H A Dxt_realm.h7 __u32 id; member in struct:xt_realm_info
/linux-4.1.27/arch/arm/mach-at91/include/mach/
H A Dat91_ramc.h15 #define at91_ramc_read(id, field) \
16 __raw_readl(at91_ramc_base[id] + field)
18 #define at91_ramc_write(id, field, value) \
19 __raw_writel(value, at91_ramc_base[id] + field)
/linux-4.1.27/include/linux/usb/
H A Dinput.h17 usb_to_input_id(const struct usb_device *dev, struct input_id *id) usb_to_input_id() argument
19 id->bustype = BUS_USB; usb_to_input_id()
20 id->vendor = le16_to_cpu(dev->descriptor.idVendor); usb_to_input_id()
21 id->product = le16_to_cpu(dev->descriptor.idProduct); usb_to_input_id()
22 id->version = le16_to_cpu(dev->descriptor.bcdDevice); usb_to_input_id()
H A Dassociation.h26 __u8 id; member in struct:wusb_am_attr
31 #define WUSB_AR_AssociationTypeId { .id = cpu_to_le16(0x0000), .len = cpu_to_le16(2) }
32 #define WUSB_AR_AssociationSubTypeId { .id = cpu_to_le16(0x0001), .len = cpu_to_le16(2) }
33 #define WUSB_AR_Length { .id = cpu_to_le16(0x0002), .len = cpu_to_le16(4) }
34 #define WUSB_AR_AssociationStatus { .id = cpu_to_le16(0x0004), .len = cpu_to_le16(4) }
35 #define WUSB_AR_LangID { .id = cpu_to_le16(0x0008), .len = cpu_to_le16(2) }
36 #define WUSB_AR_DeviceFriendlyName { .id = cpu_to_le16(0x000b), .len = cpu_to_le16(64) } /* max */
37 #define WUSB_AR_HostFriendlyName { .id = cpu_to_le16(0x000c), .len = cpu_to_le16(64) } /* max */
38 #define WUSB_AR_CHID { .id = cpu_to_le16(0x1000), .len = cpu_to_le16(16) }
39 #define WUSB_AR_CDID { .id = cpu_to_le16(0x1001), .len = cpu_to_le16(16) }
40 #define WUSB_AR_ConnectionContext { .id = cpu_to_le16(0x1002), .len = cpu_to_le16(48) }
41 #define WUSB_AR_BandGroups { .id = cpu_to_le16(0x1004), .len = cpu_to_le16(2) }
86 __le16 id; member in struct:wusb_cbaf_attr_hdr
/linux-4.1.27/drivers/media/platform/s3c-camif/
H A Dcamif-regs.h19 * The id argument indicates the processing path:
20 * id = 0 - codec (FIMC C), 1 - preview (FIMC P).
66 #define CIGCTRL_IRQ_CLR(id) (1 << (19 - (id)))
72 #define S3C_CAMIF_REG_CIYSA(id, n) (0x18 + (id) * 0x54 + (n) * 4)
74 #define S3C_CAMIF_REG_CICBSA(id, n) (0x28 + (id) * 0x54 + (n) * 4)
76 #define S3C_CAMIF_REG_CICRSA(id, n) (0x38 + (id) * 0x54 + (n) * 4)
79 #define S3C_CAMIF_REG_CITRGFMT(id, _offs) (0x48 + (id) * (0x34 + (_offs)))
99 #define S3C_CAMIF_REG_CICTRL(id, _offs) (0x4c + (id) * (0x34 + (_offs)))
112 #define S3C_CAMIF_REG_CISCPRERATIO(id, _offs) (0x50 + (id) * (0x34 + (_offs)))
115 #define S3C_CAMIF_REG_CISCPREDST(id, _offs) (0x54 + (id) * (0x34 + (_offs)))
118 #define S3C_CAMIF_REG_CISCCTRL(id, _offs) (0x58 + (id) * (0x34 + (_offs)))
148 #define S3C_CAMIF_REG_CITAREA(id, _offs) (0x5c + (id) * (0x34 + (_offs)))
151 /* Codec (id = 0) or preview (id = 1) path status. */
152 #define S3C_CAMIF_REG_CISTATUS(id, _offs) (0x64 + (id) * (0x34 + (_offs)))
170 #define CIIMGCPT_IMGCPTEN_SC(id) (1 << (30 - (id)))
172 #define CIIMGCPT_CPT_FREN_ENABLE(id) (1 << (25 - (id)))
181 #define CIIMGEFF_IE_ENABLE(id) (1 << (30 + (id)))
197 #define S3C_CAMIF_REG_MSY0SA(id) (0xd4 + ((id) * 0x2c))
198 #define S3C_CAMIF_REG_MSCB0SA(id) (0xd8 + ((id) * 0x2c))
199 #define S3C_CAMIF_REG_MSCR0SA(id) (0xdc + ((id) * 0x2c))
202 #define S3C_CAMIF_REG_MSY0END(id) (0xe0 + ((id) * 0x2c))
203 #define S3C_CAMIF_REG_MSCB0END(id) (0xe4 + ((id) * 0x2c))
204 #define S3C_CAMIF_REG_MSCR0END(id) (0xe8 + ((id) * 0x2c))
207 #define S3C_CAMIF_REG_MSYOFF(id) (0x118 + ((id) * 0x2c))
208 #define S3C_CAMIF_REG_MSCBOFF(id) (0x11c + ((id) * 0x2c))
209 #define S3C_CAMIF_REG_MSCROFF(id) (0x120 + ((id) * 0x2c))
212 #define S3C_CAMIF_REG_MSWIDTH(id) (0xf8 + (id) * 0x2c)
219 #define S3C_CAMIF_REG_MSCTRL(id) (0xfc + (id) * 0x2c)
233 #define S3C_CAMIF_REG_CISSY(id) (0x12c + (id) * 0x0c)
234 #define S3C_CAMIF_REG_CISSCB(id) (0x130 + (id) * 0x0c)
235 #define S3C_CAMIF_REG_CISSCR(id) (0x134 + (id) * 0x0c)
265 return readl(vp->camif->io_base + S3C_CAMIF_REG_CISTATUS(vp->id, camif_hw_get_status()
/linux-4.1.27/include/trace/events/
H A Dsyscalls.h18 TP_PROTO(struct pt_regs *regs, long id),
20 TP_ARGS(regs, id),
23 __field( long, id )
28 __entry->id = id;
33 __entry->id,
49 __field( long, id )
54 __entry->id = syscall_get_nr(current, regs);
59 __entry->id, __entry->ret),
H A Dthermal.h18 __field(int, id)
25 __entry->id = tz->id;
30 TP_printk("thermal_zone=%s id=%d temp_prev=%d temp=%d",
31 __get_str(thermal_zone), __entry->id, __entry->temp_prev,
63 __field(int, id)
70 __entry->id = tz->id;
75 TP_printk("thermal_zone=%s id=%d trip=%d trip_type=%d",
76 __get_str(thermal_zone), __entry->id, __entry->trip,
H A Dhswadsp.h118 TP_PROTO(unsigned int id, unsigned int pos),
120 TP_ARGS(id, pos),
123 __field( unsigned int, id )
128 __entry->id = id;
132 TP_printk("id %d position 0x%x",
133 (unsigned int)__entry->id, (unsigned int)__entry->pos)
138 TP_PROTO(unsigned int id, unsigned int pos),
140 TP_ARGS(id, pos)
146 TP_PROTO(unsigned int id, unsigned int pos),
148 TP_ARGS(id, pos)
159 __field( int, id )
168 __entry->id = stream->host_id;
177 (int) __entry->id, (int)__entry->pt_addr,
189 __field( int, id )
199 __entry->id = stream->host_id;
208 TP_printk("stream %d hw id %d mixer %d peak 0x%x:0x%x vol 0x%x,0x%x",
209 (int) __entry->id, (int) __entry->stream_id, (int)__entry->mixer_id,
236 TP_printk("mixer id %d peak 0x%x:0x%x vol 0x%x,0x%x",
250 __field( uint32_t, id )
261 __entry->id = stream->host_id;
272 (int) __entry->id, (uint32_t)__entry->frequency,
286 __field( uint32_t, id )
293 __entry->id = stream->host_id;
300 (int) __entry->id, (uint8_t)__entry->path_id,
312 __field( int, id )
317 __entry->id = stream->host_id;
321 TP_printk("stream %d hw id %d",
322 (int) __entry->id, (int) __entry->stream_id)
333 __field( int, id )
341 __entry->id = stream->host_id;
349 (int) __entry->id, (uint32_t) __entry->channel,
/linux-4.1.27/arch/s390/kvm/
H A Dtrace-s390.h42 TP_PROTO(unsigned int id, struct kvm_vcpu *vcpu,
44 TP_ARGS(id, vcpu, sie_block),
47 __field(unsigned int, id)
53 __entry->id = id;
58 TP_printk("create cpu %d at %p, sie block at %p", __entry->id,
63 TP_PROTO(unsigned int id),
64 TP_ARGS(id),
67 __field(unsigned int, id)
71 __entry->id = id;
74 TP_printk("destroy cpu %d", __entry->id)
81 TP_PROTO(unsigned int id, int state),
82 TP_ARGS(id, state),
85 __field(unsigned int, id)
90 __entry->id = id;
95 __entry->id)
140 TP_PROTO(unsigned int id, __u64 type, __u32 parm, __u64 parm64, \
142 TP_ARGS(id, type, parm, parm64, who),
145 __field(int, id)
153 __entry->id = id;
163 __entry->id, __entry->inttype,
172 TP_PROTO(unsigned int id, __u64 type, __u64 data0, __u64 data1),
173 TP_ARGS(id, type, data0, data1),
176 __field(int, id)
183 __entry->id = id;
191 __entry->id, __entry->inttype,
261 TP_PROTO(unsigned int id, int state),
262 TP_ARGS(id, state),
265 __field(unsigned int, id)
270 __entry->id = id;
275 __entry->state ? "enabling" : "disabling", __entry->id)
/linux-4.1.27/include/net/netfilter/
H A Dnf_conntrack_extend.h55 static inline bool __nf_ct_ext_exist(const struct nf_ct_ext *ext, u8 id) __nf_ct_ext_exist() argument
57 return !!ext->offset[id]; __nf_ct_ext_exist()
60 static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id) nf_ct_ext_exist() argument
62 return (ct->ext && __nf_ct_ext_exist(ct->ext, id)); nf_ct_ext_exist()
65 static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) __nf_ct_ext_find() argument
67 if (!nf_ct_ext_exist(ct, id)) __nf_ct_ext_find()
70 return (void *)ct->ext + ct->ext->offset[id]; __nf_ct_ext_find()
72 #define nf_ct_ext_find(ext, id) \
73 ((id##_TYPE *)__nf_ct_ext_find((ext), (id)))
93 void *__nf_ct_ext_add_length(struct nf_conn *ct, enum nf_ct_ext_id id,
96 #define nf_ct_ext_add(ct, id, gfp) \
97 ((id##_TYPE *)__nf_ct_ext_add_length((ct), (id), 0, (gfp)))
98 #define nf_ct_ext_add_length(ct, id, len, gfp) \
99 ((id##_TYPE *)__nf_ct_ext_add_length((ct), (id), (len), (gfp)))
110 enum nf_ct_ext_id id; member in struct:nf_ct_ext_type
H A Dnf_conntrack_zones.h10 u16 id; member in struct:nf_conntrack_zone
19 return nf_ct_zone->id; nf_ct_zone()
/linux-4.1.27/arch/s390/include/asm/
H A Ddebug.h52 typedef int (debug_header_proc_t) (debug_info_t* id,
58 typedef int (debug_format_proc_t) (debug_info_t* id,
61 typedef int (debug_prolog_proc_t) (debug_info_t* id,
64 typedef int (debug_input_proc_t) (debug_info_t* id,
70 int debug_dflt_header_fn(debug_info_t* id, struct debug_view* view,
88 debug_entry_t* debug_event_common(debug_info_t* id, int level,
91 debug_entry_t* debug_exception_common(debug_info_t* id, int level,
103 void debug_unregister(debug_info_t* id);
105 void debug_set_level(debug_info_t* id, int new_level);
110 static inline bool debug_level_enabled(debug_info_t* id, int level) debug_level_enabled() argument
112 return level <= id->level; debug_level_enabled()
116 debug_event(debug_info_t* id, int level, void* data, int length) debug_event() argument
118 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_event()
120 return debug_event_common(id,level,data,length); debug_event()
124 debug_int_event(debug_info_t* id, int level, unsigned int tag) debug_int_event() argument
127 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_int_event()
129 return debug_event_common(id,level,&t,sizeof(unsigned int)); debug_int_event()
133 debug_long_event (debug_info_t* id, int level, unsigned long tag) debug_long_event() argument
136 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_long_event()
138 return debug_event_common(id,level,&t,sizeof(unsigned long)); debug_long_event()
142 debug_text_event(debug_info_t* id, int level, const char* txt) debug_text_event() argument
144 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_text_event()
146 return debug_event_common(id,level,txt,strlen(txt)); debug_text_event()
154 __debug_sprintf_event(debug_info_t *id, int level, char *string, ...)
171 debug_exception(debug_info_t* id, int level, void* data, int length) debug_exception() argument
173 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_exception()
175 return debug_exception_common(id,level,data,length); debug_exception()
179 debug_int_exception(debug_info_t* id, int level, unsigned int tag) debug_int_exception() argument
182 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_int_exception()
184 return debug_exception_common(id,level,&t,sizeof(unsigned int)); debug_int_exception()
188 debug_long_exception (debug_info_t* id, int level, unsigned long tag) debug_long_exception() argument
191 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_long_exception()
193 return debug_exception_common(id,level,&t,sizeof(unsigned long)); debug_long_exception()
197 debug_text_exception(debug_info_t* id, int level, const char* txt) debug_text_exception() argument
199 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) debug_text_exception()
201 return debug_exception_common(id,level,txt,strlen(txt)); debug_text_exception()
209 __debug_sprintf_exception(debug_info_t *id, int level, char *string, ...)
225 int debug_register_view(debug_info_t* id, struct debug_view* view);
226 int debug_unregister_view(debug_info_t* id, struct debug_view* view);
H A Dchpid.h29 return (a->id == b->id) && (a->cssid == b->cssid); chp_id_is_equal()
34 if (chpid->id < __MAX_CHPID) chp_id_next()
35 chpid->id++; chp_id_next()
37 chpid->id = 0; chp_id_next()
/linux-4.1.27/include/linux/
H A Dfs_enet_pd.h41 static inline int fs_get_fec_index(enum fs_id id) fs_get_fec_index() argument
43 if (id >= fsid_fec1 && id <= fsid_fec2) fs_get_fec_index()
44 return id - fsid_fec1; fs_get_fec_index()
48 static inline int fs_get_fcc_index(enum fs_id id) fs_get_fcc_index() argument
50 if (id >= fsid_fcc1 && id <= fsid_fcc3) fs_get_fcc_index()
51 return id - fsid_fcc1; fs_get_fcc_index()
55 static inline int fs_get_scc_index(enum fs_id id) fs_get_scc_index() argument
57 if (id >= fsid_scc1 && id <= fsid_scc4) fs_get_scc_index()
58 return id - fsid_scc1; fs_get_scc_index()
64 int id = fsid_fec1 + index - 1; fs_fec_index2id() local
65 if (id >= fsid_fec1 && id <= fsid_fec2) fs_fec_index2id()
66 return id; fs_fec_index2id()
72 int id = fsid_fcc1 + index - 1; fs_fcc_index2id() local
73 if (id >= fsid_fcc1 && id <= fsid_fcc3) fs_fcc_index2id()
74 return id; fs_fcc_index2id()
80 int id = fsid_scc1 + index - 1; fs_scc_index2id() local
81 if (id >= fsid_scc1 && id <= fsid_scc4) fs_scc_index2id()
82 return id; fs_scc_index2id()
H A Dfs_uart_pd.h27 static inline int fs_uart_id_scc2fsid(int id) fs_uart_id_scc2fsid() argument
29 return fsid_scc1_uart + id - 1; fs_uart_id_scc2fsid()
32 static inline int fs_uart_id_fsid2scc(int id) fs_uart_id_fsid2scc() argument
34 return id - fsid_scc1_uart + 1; fs_uart_id_fsid2scc()
37 static inline int fs_uart_id_smc2fsid(int id) fs_uart_id_smc2fsid() argument
39 return fsid_smc1_uart + id - 1; fs_uart_id_smc2fsid()
42 static inline int fs_uart_id_fsid2smc(int id) fs_uart_id_fsid2smc() argument
44 return id - fsid_smc1_uart + 1; fs_uart_id_fsid2smc()
H A Dpatchkey.h19 # define _PATCHKEY(id) (0xfd00|id)
21 # define _PATCHKEY(id) ((id<<8)|0x00fd)
H A Data.h502 * id tests
504 #define ata_id_is_ata(id) (((id)[ATA_ID_CONFIG] & (1 << 15)) == 0)
505 #define ata_id_has_lba(id) ((id)[ATA_ID_CAPABILITY] & (1 << 9))
506 #define ata_id_has_dma(id) ((id)[ATA_ID_CAPABILITY] & (1 << 8))
507 #define ata_id_has_ncq(id) ((id)[ATA_ID_SATA_CAPABILITY] & (1 << 8))
508 #define ata_id_queue_depth(id) (((id)[ATA_ID_QUEUE_DEPTH] & 0x1f) + 1)
509 #define ata_id_removable(id) ((id)[ATA_ID_CONFIG] & (1 << 7))
510 #define ata_id_has_atapi_AN(id) \
511 ((((id)[ATA_ID_SATA_CAPABILITY] != 0x0000) && \
512 ((id)[ATA_ID_SATA_CAPABILITY] != 0xffff)) && \
513 ((id)[ATA_ID_FEATURE_SUPP] & (1 << 5)))
514 #define ata_id_has_fpdma_aa(id) \
515 ((((id)[ATA_ID_SATA_CAPABILITY] != 0x0000) && \
516 ((id)[ATA_ID_SATA_CAPABILITY] != 0xffff)) && \
517 ((id)[ATA_ID_FEATURE_SUPP] & (1 << 2)))
518 #define ata_id_iordy_disable(id) ((id)[ATA_ID_CAPABILITY] & (1 << 10))
519 #define ata_id_has_iordy(id) ((id)[ATA_ID_CAPABILITY] & (1 << 11))
520 #define ata_id_u32(id,n) \
521 (((u32) (id)[(n) + 1] << 16) | ((u32) (id)[(n)]))
522 #define ata_id_u64(id,n) \
523 ( ((u64) (id)[(n) + 3] << 48) | \
524 ((u64) (id)[(n) + 2] << 32) | \
525 ((u64) (id)[(n) + 1] << 16) | \
526 ((u64) (id)[(n) + 0]) )
528 #define ata_id_cdb_intr(id) (((id)[ATA_ID_CONFIG] & 0x60) == 0x20)
529 #define ata_id_has_da(id) ((id)[ATA_ID_SATA_CAPABILITY_2] & (1 << 4))
530 #define ata_id_has_devslp(id) ((id)[ATA_ID_FEATURE_SUPP] & (1 << 8))
532 static inline bool ata_id_has_hipm(const u16 *id) ata_id_has_hipm() argument
534 u16 val = id[ATA_ID_SATA_CAPABILITY]; ata_id_has_hipm()
542 static inline bool ata_id_has_dipm(const u16 *id) ata_id_has_dipm() argument
544 u16 val = id[ATA_ID_FEATURE_SUPP]; ata_id_has_dipm()
553 static inline bool ata_id_has_fua(const u16 *id) ata_id_has_fua() argument
555 if ((id[ATA_ID_CFSSE] & 0xC000) != 0x4000) ata_id_has_fua()
557 return id[ATA_ID_CFSSE] & (1 << 6); ata_id_has_fua()
560 static inline bool ata_id_has_flush(const u16 *id) ata_id_has_flush() argument
562 if ((id[ATA_ID_COMMAND_SET_2] & 0xC000) != 0x4000) ata_id_has_flush()
564 return id[ATA_ID_COMMAND_SET_2] & (1 << 12); ata_id_has_flush()
567 static inline bool ata_id_flush_enabled(const u16 *id) ata_id_flush_enabled() argument
569 if (ata_id_has_flush(id) == 0) ata_id_flush_enabled()
571 if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) ata_id_flush_enabled()
573 return id[ATA_ID_CFS_ENABLE_2] & (1 << 12); ata_id_flush_enabled()
576 static inline bool ata_id_has_flush_ext(const u16 *id) ata_id_has_flush_ext() argument
578 if ((id[ATA_ID_COMMAND_SET_2] & 0xC000) != 0x4000) ata_id_has_flush_ext()
580 return id[ATA_ID_COMMAND_SET_2] & (1 << 13); ata_id_has_flush_ext()
583 static inline bool ata_id_flush_ext_enabled(const u16 *id) ata_id_flush_ext_enabled() argument
585 if (ata_id_has_flush_ext(id) == 0) ata_id_flush_ext_enabled()
587 if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) ata_id_flush_ext_enabled()
593 return (id[ATA_ID_CFS_ENABLE_2] & 0x2400) == 0x2400; ata_id_flush_ext_enabled()
596 static inline u32 ata_id_logical_sector_size(const u16 *id) ata_id_logical_sector_size() argument
602 if ((id[ATA_ID_SECTOR_SIZE] & 0xd000) == 0x5000) ata_id_logical_sector_size()
603 return (((id[ATA_ID_LOGICAL_SECTOR_SIZE+1] << 16) ata_id_logical_sector_size()
604 + id[ATA_ID_LOGICAL_SECTOR_SIZE]) * sizeof(u16)) ; ata_id_logical_sector_size()
608 static inline u8 ata_id_log2_per_physical_sector(const u16 *id) ata_id_log2_per_physical_sector() argument
614 if ((id[ATA_ID_SECTOR_SIZE] & 0xe000) == 0x6000) ata_id_log2_per_physical_sector()
615 return (id[ATA_ID_SECTOR_SIZE] & 0xf); ata_id_log2_per_physical_sector()
628 static inline u16 ata_id_logical_sector_offset(const u16 *id, ata_id_logical_sector_offset() argument
631 u16 word_209 = id[209]; ata_id_logical_sector_offset()
641 static inline bool ata_id_has_lba48(const u16 *id) ata_id_has_lba48() argument
643 if ((id[ATA_ID_COMMAND_SET_2] & 0xC000) != 0x4000) ata_id_has_lba48()
645 if (!ata_id_u64(id, ATA_ID_LBA_CAPACITY_2)) ata_id_has_lba48()
647 return id[ATA_ID_COMMAND_SET_2] & (1 << 10); ata_id_has_lba48()
650 static inline bool ata_id_lba48_enabled(const u16 *id) ata_id_lba48_enabled() argument
652 if (ata_id_has_lba48(id) == 0) ata_id_lba48_enabled()
654 if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) ata_id_lba48_enabled()
656 return id[ATA_ID_CFS_ENABLE_2] & (1 << 10); ata_id_lba48_enabled()
659 static inline bool ata_id_hpa_enabled(const u16 *id) ata_id_hpa_enabled() argument
662 if ((id[ATA_ID_COMMAND_SET_2] & 0xC000) != 0x4000) ata_id_hpa_enabled()
665 if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) ata_id_hpa_enabled()
668 if ((id[ATA_ID_CFS_ENABLE_1] & (1 << 10)) == 0) ata_id_hpa_enabled()
670 return id[ATA_ID_COMMAND_SET_1] & (1 << 10); ata_id_hpa_enabled()
673 static inline bool ata_id_has_wcache(const u16 *id) ata_id_has_wcache() argument
676 if ((id[ATA_ID_COMMAND_SET_2] & 0xC000) != 0x4000) ata_id_has_wcache()
678 return id[ATA_ID_COMMAND_SET_1] & (1 << 5); ata_id_has_wcache()
681 static inline bool ata_id_has_pm(const u16 *id) ata_id_has_pm() argument
683 if ((id[ATA_ID_COMMAND_SET_2] & 0xC000) != 0x4000) ata_id_has_pm()
685 return id[ATA_ID_COMMAND_SET_1] & (1 << 3); ata_id_has_pm()
688 static inline bool ata_id_rahead_enabled(const u16 *id) ata_id_rahead_enabled() argument
690 if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) ata_id_rahead_enabled()
692 return id[ATA_ID_CFS_ENABLE_1] & (1 << 6); ata_id_rahead_enabled()
695 static inline bool ata_id_wcache_enabled(const u16 *id) ata_id_wcache_enabled() argument
697 if ((id[ATA_ID_CSF_DEFAULT] & 0xC000) != 0x4000) ata_id_wcache_enabled()
699 return id[ATA_ID_CFS_ENABLE_1] & (1 << 5); ata_id_wcache_enabled()
702 static inline bool ata_id_has_read_log_dma_ext(const u16 *id) ata_id_has_read_log_dma_ext() argument
704 if (!(id[ATA_ID_CFS_ENABLE_2] & (1 << 15))) ata_id_has_read_log_dma_ext()
706 return id[ATA_ID_COMMAND_SET_3] & (1 << 3); ata_id_has_read_log_dma_ext()
711 * @id: Identify data
722 static inline unsigned int ata_id_major_version(const u16 *id) ata_id_major_version() argument
726 if (id[ATA_ID_MAJOR_VER] == 0xFFFF) ata_id_major_version()
730 if (id[ATA_ID_MAJOR_VER] & (1 << mver)) ata_id_major_version()
735 static inline bool ata_id_is_sata(const u16 *id) ata_id_is_sata() argument
743 if (id[ATA_ID_HW_CONFIG] == 0 && (short)id[ATA_ID_MAJOR_VER] >= 0x0020) ata_id_is_sata()
748 static inline bool ata_id_has_tpm(const u16 *id) ata_id_has_tpm() argument
751 if (ata_id_major_version(id) < 8) ata_id_has_tpm()
753 if ((id[48] & 0xC000) != 0x4000) ata_id_has_tpm()
755 return id[48] & (1 << 0); ata_id_has_tpm()
758 static inline bool ata_id_has_dword_io(const u16 *id) ata_id_has_dword_io() argument
761 if (ata_id_major_version(id) > 7) ata_id_has_dword_io()
763 return id[ATA_ID_DWORD_IO] & (1 << 0); ata_id_has_dword_io()
766 static inline bool ata_id_has_unload(const u16 *id) ata_id_has_unload() argument
768 if (ata_id_major_version(id) >= 7 && ata_id_has_unload()
769 (id[ATA_ID_CFSSE] & 0xC000) == 0x4000 && ata_id_has_unload()
770 id[ATA_ID_CFSSE] & (1 << 13)) ata_id_has_unload()
775 static inline bool ata_id_has_wwn(const u16 *id) ata_id_has_wwn() argument
777 return (id[ATA_ID_CSF_DEFAULT] & 0xC100) == 0x4100; ata_id_has_wwn()
780 static inline int ata_id_form_factor(const u16 *id) ata_id_form_factor() argument
782 u16 val = id[168]; ata_id_form_factor()
784 if (ata_id_major_version(id) < 7 || val == 0 || val == 0xffff) ata_id_form_factor()
795 static inline int ata_id_rotation_rate(const u16 *id) ata_id_rotation_rate() argument
797 u16 val = id[217]; ata_id_rotation_rate()
799 if (ata_id_major_version(id) < 7 || val == 0 || val == 0xffff) ata_id_rotation_rate()
808 static inline bool ata_id_has_ncq_send_and_recv(const u16 *id) ata_id_has_ncq_send_and_recv() argument
810 return id[ATA_ID_SATA_CAPABILITY_2] & BIT(6); ata_id_has_ncq_send_and_recv()
813 static inline bool ata_id_has_trim(const u16 *id) ata_id_has_trim() argument
815 if (ata_id_major_version(id) >= 7 && ata_id_has_trim()
816 (id[ATA_ID_DATA_SET_MGMT] & 1)) ata_id_has_trim()
821 static inline bool ata_id_has_zero_after_trim(const u16 *id) ata_id_has_zero_after_trim() argument
824 if (ata_id_has_trim(id) && ata_id_has_zero_after_trim()
825 (id[ATA_ID_ADDITIONAL_SUPP] & 0x4020) == 0x4020) ata_id_has_zero_after_trim()
831 static inline bool ata_id_current_chs_valid(const u16 *id) ata_id_current_chs_valid() argument
835 id[ATA_ID_CUR_CYLS] to id[ATA_ID_CUR_SECTORS] are vendor specific. */ ata_id_current_chs_valid()
836 return (id[ATA_ID_FIELD_VALID] & 1) && /* Current translation valid */ ata_id_current_chs_valid()
837 id[ATA_ID_CUR_CYLS] && /* cylinders in current translation */ ata_id_current_chs_valid()
838 id[ATA_ID_CUR_HEADS] && /* heads in current translation */ ata_id_current_chs_valid()
839 id[ATA_ID_CUR_HEADS] <= 16 && ata_id_current_chs_valid()
840 id[ATA_ID_CUR_SECTORS]; /* sectors in current translation */ ata_id_current_chs_valid()
843 static inline bool ata_id_is_cfa(const u16 *id) ata_id_is_cfa() argument
845 if ((id[ATA_ID_CONFIG] == 0x848A) || /* Traditional CF */ ata_id_is_cfa()
846 (id[ATA_ID_CONFIG] == 0x844A)) /* Delkin Devices CF */ ata_id_is_cfa()
856 return (id[ATA_ID_COMMAND_SET_2] & 0xC004) == 0x4004; ata_id_is_cfa()
859 static inline bool ata_id_is_ssd(const u16 *id) ata_id_is_ssd() argument
861 return id[ATA_ID_ROT_SPEED] == 0x01; ata_id_is_ssd()
864 static inline bool ata_id_pio_need_iordy(const u16 *id, const u8 pio) ata_id_pio_need_iordy() argument
867 if (pio > 4 && ata_id_is_cfa(id)) ata_id_pio_need_iordy()
873 return ata_id_has_iordy(id); ata_id_pio_need_iordy()
920 static inline bool ata_id_is_lba_capacity_ok(u16 *id) ata_id_is_lba_capacity_ok() argument
925 if (id[ATA_ID_CYLS] == 0) ata_id_is_lba_capacity_ok()
928 lba_sects = ata_id_u32(id, ATA_ID_LBA_CAPACITY); ata_id_is_lba_capacity_ok()
936 if ((id[ATA_ID_CYLS] == 16383 || ata_id_is_lba_capacity_ok()
937 (id[ATA_ID_CYLS] == 4092 && id[ATA_ID_CUR_CYLS] == 16383)) && ata_id_is_lba_capacity_ok()
938 id[ATA_ID_SECTORS] == 63 && ata_id_is_lba_capacity_ok()
939 (id[ATA_ID_HEADS] == 15 || id[ATA_ID_HEADS] == 16) && ata_id_is_lba_capacity_ok()
940 (lba_sects >= 16383 * 63 * id[ATA_ID_HEADS])) ata_id_is_lba_capacity_ok()
943 chs_sects = id[ATA_ID_CYLS] * id[ATA_ID_HEADS] * id[ATA_ID_SECTORS]; ata_id_is_lba_capacity_ok()
955 *(__le32 *)&id[ATA_ID_LBA_CAPACITY] = __cpu_to_le32(lba_sects); ata_id_is_lba_capacity_ok()
962 static inline void ata_id_to_hd_driveid(u16 *id) ata_id_to_hd_driveid() argument
966 id[ATA_ID_MAX_MULTSECT] = __cpu_to_le16(id[ATA_ID_MAX_MULTSECT]); ata_id_to_hd_driveid()
967 id[ATA_ID_CAPABILITY] = __cpu_to_le16(id[ATA_ID_CAPABILITY]); ata_id_to_hd_driveid()
968 id[ATA_ID_OLD_PIO_MODES] = __cpu_to_le16(id[ATA_ID_OLD_PIO_MODES]); ata_id_to_hd_driveid()
969 id[ATA_ID_OLD_DMA_MODES] = __cpu_to_le16(id[ATA_ID_OLD_DMA_MODES]); ata_id_to_hd_driveid()
970 id[ATA_ID_MULTSECT] = __cpu_to_le16(id[ATA_ID_MULTSECT]); ata_id_to_hd_driveid()
973 *(u32 *)&id[ATA_ID_LBA_CAPACITY] = ata_id_u32(id, ATA_ID_LBA_CAPACITY); ata_id_to_hd_driveid()
974 *(u32 *)&id[ATA_ID_SPG] = ata_id_u32(id, ATA_ID_SPG); ata_id_to_hd_driveid()
977 *(u64 *)&id[ATA_ID_LBA_CAPACITY_2] = ata_id_to_hd_driveid()
978 ata_id_u64(id, ATA_ID_LBA_CAPACITY_2); ata_id_to_hd_driveid()
H A Dreset.h15 struct reset_control *reset_control_get(struct device *dev, const char *id);
17 struct reset_control *devm_reset_control_get(struct device *dev, const char *id);
27 struct device *dev, const char *id) reset_control_get_optional()
29 return reset_control_get(dev, id); reset_control_get_optional()
33 struct device *dev, const char *id) devm_reset_control_get_optional()
35 return devm_reset_control_get(dev, id); devm_reset_control_get_optional()
39 const char *id);
78 struct device *dev, const char *id) reset_control_get_optional()
84 struct device *dev, const char *id) devm_reset_control_get_optional()
90 struct device_node *node, const char *id) of_reset_control_get()
26 reset_control_get_optional( struct device *dev, const char *id) reset_control_get_optional() argument
32 devm_reset_control_get_optional( struct device *dev, const char *id) devm_reset_control_get_optional() argument
77 reset_control_get_optional( struct device *dev, const char *id) reset_control_get_optional() argument
83 devm_reset_control_get_optional( struct device *dev, const char *id) devm_reset_control_get_optional() argument
89 of_reset_control_get( struct device_node *node, const char *id) of_reset_control_get() argument
H A Drfkill-regulator.h17 * Use "vrfkill" as supply id when declaring the regulator consumer:
23 * If you have several regulator driven rfkill, you can append a numerical id to
24 * .dev_name as done above, and use the same id when declaring the platform
34 * .id = 0,
H A Dleds-regulator.h16 * Use "vled" as supply id when declaring the regulator consumer:
22 * If you have several regulator driven LEDs, you can append a numerical id to
23 * .dev_name as done above, and use the same id when declaring the platform
32 * .id = 0,
H A Didr.h8 * Small id to pointer translation service avoiding fixed sized
79 void *idr_find_slowpath(struct idr *idp, int id);
84 int (*fn)(int id, void *p, void *data), void *data);
86 void *idr_replace(struct idr *idp, void *ptr, int id);
87 void idr_remove(struct idr *idp, int id);
104 * idr_find - return pointer for given id
106 * @id: lookup key
108 * Return the pointer given the id it has been registered with. A %NULL
109 * return indicates that @id is not valid or you passed %NULL in
115 static inline void *idr_find(struct idr *idr, int id) idr_find() argument
119 if (hint && (id & ~IDR_MASK) == hint->prefix) idr_find()
120 return rcu_dereference_raw(hint->ary[id & IDR_MASK]); idr_find()
122 return idr_find_slowpath(idr, id); idr_find()
129 * @id: id entry's key
131 * @entry and @id do not need to be initialized before the loop, and
135 #define idr_for_each_entry(idp, entry, id) \
136 for (id = 0; ((entry) = idr_get_next(idp, &(id))) != NULL; ++id)
139 * IDA - IDR based id allocator, use when translation from id to
164 void ida_remove(struct ida *ida, int id);
170 void ida_simple_remove(struct ida *ida, unsigned int id);
/linux-4.1.27/arch/mips/paravirt/
H A Dparavirt-smp.c46 int id; paravirt_smp_setup() local
53 for (id = 0; id < NR_CPUS; id++) { paravirt_smp_setup()
54 set_cpu_possible(id, id == 0); paravirt_smp_setup()
55 set_cpu_present(id, id == 0); paravirt_smp_setup()
60 for (id = 0; id < numcpus; id++) { paravirt_smp_setup()
61 set_cpu_possible(id, true); paravirt_smp_setup()
62 set_cpu_present(id, true); paravirt_smp_setup()
63 __cpu_number_map[id] = id; paravirt_smp_setup()
64 __cpu_logical_map[id] = id; paravirt_smp_setup()
/linux-4.1.27/arch/mips/bcm63xx/
H A Ddev-uart.c39 .id = 0,
46 .id = 1,
52 int __init bcm63xx_uart_register(unsigned int id) bcm63xx_uart_register() argument
54 if (id >= ARRAY_SIZE(bcm63xx_uart_devices)) bcm63xx_uart_register()
57 if (id == 1 && (!BCMCPU_IS_3368() && !BCMCPU_IS_6358() && bcm63xx_uart_register()
61 if (id == 0) { bcm63xx_uart_register()
68 if (id == 1) { bcm63xx_uart_register()
75 return platform_device_register(&bcm63xx_uart_devices[id]); bcm63xx_uart_register()
H A Dtimer.c56 int bcm63xx_timer_enable(int id) bcm63xx_timer_enable() argument
61 if (id >= BCM63XX_TIMER_COUNT) bcm63xx_timer_enable()
66 reg = bcm_timer_readl(TIMER_CTLx_REG(id)); bcm63xx_timer_enable()
68 bcm_timer_writel(reg, TIMER_CTLx_REG(id)); bcm63xx_timer_enable()
71 reg |= TIMER_IRQSTAT_TIMER_IR_EN(id); bcm63xx_timer_enable()
80 int bcm63xx_timer_disable(int id) bcm63xx_timer_disable() argument
85 if (id >= BCM63XX_TIMER_COUNT) bcm63xx_timer_disable()
90 reg = bcm_timer_readl(TIMER_CTLx_REG(id)); bcm63xx_timer_disable()
92 bcm_timer_writel(reg, TIMER_CTLx_REG(id)); bcm63xx_timer_disable()
95 reg &= ~TIMER_IRQSTAT_TIMER_IR_EN(id); bcm63xx_timer_disable()
104 int bcm63xx_timer_register(int id, void (*callback)(void *data), void *data) bcm63xx_timer_register() argument
109 if (id >= BCM63XX_TIMER_COUNT || !callback) bcm63xx_timer_register()
114 if (timer_data[id].cb) { bcm63xx_timer_register()
119 timer_data[id].cb = callback; bcm63xx_timer_register()
120 timer_data[id].data = data; bcm63xx_timer_register()
129 void bcm63xx_timer_unregister(int id) bcm63xx_timer_unregister() argument
133 if (id >= BCM63XX_TIMER_COUNT) bcm63xx_timer_unregister()
137 timer_data[id].cb = NULL; bcm63xx_timer_unregister()
150 int bcm63xx_timer_set(int id, int monotonic, unsigned int countdown_us) bcm63xx_timer_set() argument
155 if (id >= BCM63XX_TIMER_COUNT) bcm63xx_timer_set()
163 reg = bcm_timer_readl(TIMER_CTLx_REG(id)); bcm63xx_timer_set()
172 bcm_timer_writel(reg, TIMER_CTLx_REG(id)); bcm63xx_timer_set()
/linux-4.1.27/drivers/memory/tegra/
H A Dtegra114.c20 .id = 0x00,
24 .id = 0x01,
38 .id = 0x02,
52 .id = 0x03,
66 .id = 0x04,
80 .id = 0x05,
94 .id = 0x06,
108 .id = 0x09,
122 .id = 0x0a,
136 .id = 0x0b,
150 .id = 0x0f,
164 .id = 0x10,
178 .id = 0x11,
192 .id = 0x12,
206 .id = 0x13,
220 .id = 0x14,
234 .id = 0x15,
248 .id = 0x16,
262 .id = 0x17,
276 .id = 0x18,
290 .id = 0x1c,
304 .id = 0x1d,
318 .id = 0x1e,
332 .id = 0x20,
346 .id = 0x22,
360 .id = 0x23,
374 .id = 0x24,
388 .id = 0x25,
402 .id = 0x26,
412 .id = 0x27,
422 .id = 0x28,
436 .id = 0x29,
450 .id = 0x2a,
464 .id = 0x2b,
478 .id = 0x2c,
492 .id = 0x2d,
506 .id = 0x2e,
520 .id = 0x2f,
534 .id = 0x30,
548 .id = 0x32,
562 .id = 0x33,
576 .id = 0x34,
590 .id = 0x35,
604 .id = 0x36,
618 .id = 0x37,
632 .id = 0x38,
642 .id = 0x39,
652 .id = 0x3b,
666 .id = 0x3c,
680 .id = 0x3e,
694 .id = 0x3f,
708 .id = 0x40,
722 .id = 0x41,
736 .id = 0x4a,
750 .id = 0x4b,
764 .id = 0x4c,
778 .id = 0x4d,
792 .id = 0x4e,
806 .id = 0x4f,
820 .id = 0x50,
834 .id = 0x51,
848 .id = 0x52,
858 .id = 0x53,
868 .id = 0x54,
882 .id = 0x55,
H A Dtegra124.c20 .id = 0x00,
24 .id = 0x01,
38 .id = 0x02,
52 .id = 0x03,
66 .id = 0x04,
80 .id = 0x05,
94 .id = 0x06,
108 .id = 0x0e,
122 .id = 0x0f,
136 .id = 0x10,
150 .id = 0x11,
164 .id = 0x15,
178 .id = 0x16,
192 .id = 0x17,
206 .id = 0x1c,
220 .id = 0x1d,
234 .id = 0x1e,
248 .id = 0x1f,
262 .id = 0x22,
276 .id = 0x23,
290 .id = 0x24,
304 .id = 0x25,
318 .id = 0x26,
328 .id = 0x27,
338 .id = 0x2b,
352 .id = 0x31,
366 .id = 0x32,
380 .id = 0x35,
394 .id = 0x36,
408 .id = 0x38,
418 .id = 0x39,
428 .id = 0x3b,
442 .id = 0x3c,
456 .id = 0x3d,
470 .id = 0x3e,
484 .id = 0x3f,
498 .id = 0x40,
512 .id = 0x41,
526 .id = 0x44,
540 .id = 0x46,
554 .id = 0x47,
568 .id = 0x4a,
582 .id = 0x4b,
596 .id = 0x4c,
610 .id = 0x4d,
624 .id = 0x4e,
638 .id = 0x50,
652 .id = 0x51,
666 .id = 0x54,
680 .id = 0x55,
694 .id = 0x56,
708 .id = 0x57,
722 .id = 0x58,
737 .id = 0x59,
752 .id = 0x5a,
766 .id = 0x60,
780 .id = 0x61,
794 .id = 0x62,
808 .id = 0x63,
822 .id = 0x64,
836 .id = 0x65,
850 .id = 0x66,
864 .id = 0x67,
878 .id = 0x6c,
892 .id = 0x6d,
906 .id = 0x72,
920 .id = 0x73,
H A Dtegra30.c20 .id = 0x00,
24 .id = 0x01,
38 .id = 0x02,
52 .id = 0x03,
66 .id = 0x04,
80 .id = 0x05,
94 .id = 0x06,
108 .id = 0x07,
122 .id = 0x08,
136 .id = 0x09,
150 .id = 0x0a,
164 .id = 0x0b,
178 .id = 0x0c,
192 .id = 0x0d,
206 .id = 0x0e,
220 .id = 0x0f,
234 .id = 0x10,
248 .id = 0x11,
262 .id = 0x12,
276 .id = 0x13,
290 .id = 0x14,
304 .id = 0x15,
318 .id = 0x16,
332 .id = 0x17,
346 .id = 0x18,
360 .id = 0x19,
374 .id = 0x1a,
388 .id = 0x1b,
402 .id = 0x1c,
416 .id = 0x1d,
430 .id = 0x1e,
444 .id = 0x1f,
458 .id = 0x20,
472 .id = 0x21,
486 .id = 0x22,
500 .id = 0x23,
514 .id = 0x24,
528 .id = 0x25,
542 .id = 0x26,
552 .id = 0x27,
562 .id = 0x28,
576 .id = 0x29,
590 .id = 0x2a,
604 .id = 0x2b,
618 .id = 0x2c,
632 .id = 0x2d,
646 .id = 0x2e,
660 .id = 0x2f,
674 .id = 0x30,
688 .id = 0x31,
702 .id = 0x32,
716 .id = 0x33,
730 .id = 0x34,
744 .id = 0x35,
758 .id = 0x36,
772 .id = 0x37,
786 .id = 0x38,
796 .id = 0x39,
806 .id = 0x3a,
820 .id = 0x3b,
834 .id = 0x3c,
848 .id = 0x3d,
862 .id = 0x3e,
876 .id = 0x3f,
890 .id = 0x40,
904 .id = 0x41,
/linux-4.1.27/arch/parisc/include/asm/
H A Dmmu.h4 /* On parisc, we store the space id here */
/linux-4.1.27/net/wimax/
H A DMakefile5 id-table.o \
/linux-4.1.27/drivers/regulator/
H A Dmc13xxx-regulator-core.c35 int id = rdev_get_id(rdev); mc13xxx_regulator_enable() local
37 dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id); mc13xxx_regulator_enable() local
39 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, mc13xxx_regulator_enable()
40 mc13xxx_regulators[id].enable_bit, mc13xxx_regulator_enable()
41 mc13xxx_regulators[id].enable_bit); mc13xxx_regulator_enable()
48 int id = rdev_get_id(rdev); mc13xxx_regulator_disable() local
50 dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id); mc13xxx_regulator_disable() local
52 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, mc13xxx_regulator_disable()
53 mc13xxx_regulators[id].enable_bit, 0); mc13xxx_regulator_disable()
60 int ret, id = rdev_get_id(rdev); mc13xxx_regulator_is_enabled() local
63 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); mc13xxx_regulator_is_enabled()
67 return (val & mc13xxx_regulators[id].enable_bit) != 0; mc13xxx_regulator_is_enabled()
75 int id = rdev_get_id(rdev); mc13xxx_regulator_set_voltage_sel() local
77 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].vsel_reg, mc13xxx_regulator_set_voltage_sel()
78 mc13xxx_regulators[id].vsel_mask, mc13xxx_regulator_set_voltage_sel()
79 selector << mc13xxx_regulators[id].vsel_shift); mc13xxx_regulator_set_voltage_sel()
86 int ret, id = rdev_get_id(rdev); mc13xxx_regulator_get_voltage() local
89 dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id); mc13xxx_regulator_get_voltage() local
92 mc13xxx_regulators[id].vsel_reg, &val); mc13xxx_regulator_get_voltage()
96 val = (val & mc13xxx_regulators[id].vsel_mask) mc13xxx_regulator_get_voltage()
97 >> mc13xxx_regulators[id].vsel_shift; mc13xxx_regulator_get_voltage()
99 dev_dbg(rdev_get_dev(rdev), "%s id: %d val: %d\n", __func__, id, val); mc13xxx_regulator_get_voltage() local
101 BUG_ON(val >= mc13xxx_regulators[id].desc.n_voltages); mc13xxx_regulator_get_voltage()
119 int id = rdev_get_id(rdev); mc13xxx_fixed_regulator_set_voltage() local
121 dev_dbg(rdev_get_dev(rdev), "%s id: %d min_uV: %d max_uV: %d\n", mc13xxx_fixed_regulator_set_voltage()
122 __func__, id, min_uV, max_uV); mc13xxx_fixed_regulator_set_voltage() local
195 p->id = i; for_each_child_of_node()
H A Das3722-regulator.c337 int id = rdev_get_id(rdev); as3722_ldo_get_current_limit() local
341 ret = as3722_read(as3722, as3722_reg_lookup[id].vsel_reg, &val); as3722_ldo_get_current_limit()
344 as3722_reg_lookup[id].vsel_reg, ret); as3722_ldo_get_current_limit()
357 int id = rdev_get_id(rdev); as3722_ldo_set_current_limit() local
371 return as3722_update_bits(as3722, as3722_reg_lookup[id].vsel_reg, as3722_ldo_set_current_limit()
395 int id, u8 mode) as3722_ldo3_set_tracking_mode()
405 as3722_reg_lookup[id].vsel_reg, as3722_ldo3_set_tracking_mode()
466 int id = rdev_get_id(rdev); as3722_sd_get_mode() local
470 if (!as3722_reg_lookup[id].control_reg) as3722_sd_get_mode()
473 ret = as3722_read(as3722, as3722_reg_lookup[id].control_reg, &val); as3722_sd_get_mode()
476 as3722_reg_lookup[id].control_reg, ret); as3722_sd_get_mode()
480 if (val & as3722_reg_lookup[id].mode_mask) as3722_sd_get_mode()
491 u8 id = rdev_get_id(rdev); as3722_sd_set_mode() local
495 if (!as3722_reg_lookup[id].control_reg) as3722_sd_set_mode()
500 val = as3722_reg_lookup[id].mode_mask; as3722_sd_set_mode()
507 ret = as3722_update_bits(as3722, as3722_reg_lookup[id].control_reg, as3722_sd_set_mode()
508 as3722_reg_lookup[id].mode_mask, val); as3722_sd_set_mode()
511 as3722_reg_lookup[id].control_reg, ret); as3722_sd_set_mode()
521 int id = rdev_get_id(rdev); as3722_sd016_get_current_limit() local
526 switch (id) { as3722_sd016_get_current_limit()
560 int id = rdev_get_id(rdev); as3722_sd016_set_current_limit() local
575 switch (id) { as3722_sd016_set_current_limit()
665 static int as3722_extreg_init(struct as3722_regulators *as3722_regs, int id, as3722_extreg_init() argument
675 val = ext_pwr_ctrl << (ffs(as3722_reg_lookup[id].sleep_ctrl_mask) - 1); as3722_extreg_init()
677 as3722_reg_lookup[id].sleep_ctrl_reg, as3722_extreg_init()
678 as3722_reg_lookup[id].sleep_ctrl_mask, val); as3722_extreg_init()
681 as3722_reg_lookup[id].sleep_ctrl_reg, ret); as3722_extreg_init()
712 int id; as3722_get_regulator_dt_data() local
731 for (id = 0; id < ARRAY_SIZE(as3722_regulator_matches); ++id) { as3722_get_regulator_dt_data()
734 reg_config = &as3722_regs->reg_config_data[id]; as3722_get_regulator_dt_data()
735 reg_config->reg_init = as3722_regulator_matches[id].init_data; as3722_get_regulator_dt_data()
736 reg_node = as3722_regulator_matches[id].of_node; as3722_get_regulator_dt_data()
764 int id; as3722_regulator_probe() local
784 for (id = 0; id < AS3722_REGULATOR_ID_MAX; id++) { as3722_regulator_probe()
785 reg_config = &as3722_regs->reg_config_data[id]; as3722_regulator_probe()
787 as3722_regs->desc[id].name = as3722_reg_lookup[id].name; as3722_regulator_probe()
788 as3722_regs->desc[id].supply_name = as3722_reg_lookup[id].sname; as3722_regulator_probe()
789 as3722_regs->desc[id].id = as3722_reg_lookup[id].regulator_id; as3722_regulator_probe()
790 as3722_regs->desc[id].n_voltages = as3722_regulator_probe()
791 as3722_reg_lookup[id].n_voltages; as3722_regulator_probe()
792 as3722_regs->desc[id].type = REGULATOR_VOLTAGE; as3722_regulator_probe()
793 as3722_regs->desc[id].owner = THIS_MODULE; as3722_regulator_probe()
794 as3722_regs->desc[id].enable_reg = as3722_regulator_probe()
795 as3722_reg_lookup[id].enable_reg; as3722_regulator_probe()
796 as3722_regs->desc[id].enable_mask = as3722_regulator_probe()
797 as3722_reg_lookup[id].enable_mask; as3722_regulator_probe()
798 as3722_regs->desc[id].vsel_reg = as3722_reg_lookup[id].vsel_reg; as3722_regulator_probe()
799 as3722_regs->desc[id].vsel_mask = as3722_regulator_probe()
800 as3722_reg_lookup[id].vsel_mask; as3722_regulator_probe()
801 switch (id) { as3722_regulator_probe()
807 as3722_regs->desc[id].min_uV = 825000; as3722_regulator_probe()
808 as3722_regs->desc[id].uV_step = 25000; as3722_regulator_probe()
809 as3722_regs->desc[id].linear_min_sel = 1; as3722_regulator_probe()
810 as3722_regs->desc[id].enable_time = 500; as3722_regulator_probe()
817 as3722_regs->desc[id].min_uV = 620000; as3722_regulator_probe()
818 as3722_regs->desc[id].uV_step = 20000; as3722_regulator_probe()
819 as3722_regs->desc[id].linear_min_sel = 1; as3722_regulator_probe()
820 as3722_regs->desc[id].enable_time = 500; as3722_regulator_probe()
823 id, AS3722_LDO3_MODE_PMOS_TRACKING); as3722_regulator_probe()
839 if (id == AS3722_REGULATOR_ID_SD0 && as3722_regulator_probe()
841 as3722_regs->desc[id].n_voltages = as3722_regulator_probe()
843 as3722_regs->desc[id].min_uV = 410000; as3722_regulator_probe()
845 as3722_regs->desc[id].n_voltages = as3722_regulator_probe()
847 as3722_regs->desc[id].min_uV = 610000; as3722_regulator_probe()
849 as3722_regs->desc[id].uV_step = 10000; as3722_regulator_probe()
850 as3722_regs->desc[id].linear_min_sel = 1; as3722_regulator_probe()
851 as3722_regs->desc[id].enable_time = 600; as3722_regulator_probe()
861 as3722_regs->desc[id].linear_ranges = as3722_regulator_probe()
863 as3722_regs->desc[id].n_linear_ranges = as3722_regulator_probe()
871 as3722_regs->desc[id].enable_time = 500; as3722_regulator_probe()
872 as3722_regs->desc[id].linear_ranges = as3722_ldo_ranges; as3722_regulator_probe()
873 as3722_regs->desc[id].n_linear_ranges = as3722_regulator_probe()
877 as3722_regs->desc[id].ops = ops; as3722_regulator_probe()
879 config.of_node = as3722_regulator_matches[id].of_node; as3722_regulator_probe()
881 &as3722_regs->desc[id], &config); as3722_regulator_probe()
885 id, ret); as3722_regulator_probe()
889 as3722_regs->rdevs[id] = rdev; as3722_regulator_probe()
895 id, ret); as3722_regulator_probe()
898 ret = as3722_extreg_init(as3722_regs, id, as3722_regulator_probe()
394 as3722_ldo3_set_tracking_mode(struct as3722_regulators *as3722_reg, int id, u8 mode) as3722_ldo3_set_tracking_mode() argument
H A Dtps65912-regulator.c127 static int tps65912_get_range(struct tps65912_reg *pmic, int id) tps65912_get_range() argument
132 switch (id) { tps65912_get_range()
153 pmic->dcdc_range[id] = range; tps65912_get_range()
193 static int tps65912_get_ctrl_register(int id) tps65912_get_ctrl_register() argument
195 if (id >= TPS65912_REG_DCDC1 && id <= TPS65912_REG_LDO4) tps65912_get_ctrl_register()
196 return id * 3 + TPS65912_DCDC1_AVS; tps65912_get_ctrl_register()
197 else if (id >= TPS65912_REG_LDO5 && id <= TPS65912_REG_LDO10) tps65912_get_ctrl_register()
198 return id - TPS65912_REG_LDO5 + TPS65912_LDO5; tps65912_get_ctrl_register()
203 static int tps65912_get_sel_register(struct tps65912_reg *pmic, int id) tps65912_get_sel_register() argument
209 if (id >= TPS65912_REG_DCDC1 && id <= TPS65912_REG_LDO4) { tps65912_get_sel_register()
210 opvsel = tps65912_reg_read(mfd, id * 3 + TPS65912_DCDC1_OP); tps65912_get_sel_register()
212 reg = id * 3 + TPS65912_DCDC1_AVS; tps65912_get_sel_register()
214 reg = id * 3 + TPS65912_DCDC1_OP; tps65912_get_sel_register()
215 } else if (id >= TPS65912_REG_LDO5 && id <= TPS65912_REG_LDO10) { tps65912_get_sel_register()
216 reg = id - TPS65912_REG_LDO5 + TPS65912_LDO5; tps65912_get_sel_register()
224 static int tps65912_get_mode_regiters(struct tps65912_reg *pmic, int id) tps65912_get_mode_regiters() argument
226 switch (id) { tps65912_get_mode_regiters()
254 int reg, value, id = rdev_get_id(dev); tps65912_reg_is_enabled() local
256 if (id < TPS65912_REG_DCDC1 || id > TPS65912_REG_LDO10) tps65912_reg_is_enabled()
259 reg = pmic->get_ctrl_reg(id); tps65912_reg_is_enabled()
274 int id = rdev_get_id(dev); tps65912_reg_enable() local
277 if (id < TPS65912_REG_DCDC1 || id > TPS65912_REG_LDO10) tps65912_reg_enable()
280 reg = pmic->get_ctrl_reg(id); tps65912_reg_enable()
291 int id = rdev_get_id(dev), reg; tps65912_reg_disable() local
293 reg = pmic->get_ctrl_reg(id); tps65912_reg_disable()
304 int pwm_mode, eco, id = rdev_get_id(dev); tps65912_set_mode() local
306 tps65912_get_mode_regiters(pmic, id); tps65912_set_mode()
346 int pwm_mode, eco, mode = 0, id = rdev_get_id(dev); tps65912_get_mode() local
348 tps65912_get_mode_regiters(pmic, id); tps65912_get_mode()
369 int range, voltage = 0, id = rdev_get_id(dev); tps65912_list_voltage() local
371 if (id > TPS65912_REG_DCDC4) tps65912_list_voltage()
374 range = pmic->dcdc_range[id]; tps65912_list_voltage()
401 int id = rdev_get_id(dev); tps65912_get_voltage_sel() local
404 reg = tps65912_get_sel_register(pmic, id); tps65912_get_voltage_sel()
419 int id = rdev_get_id(dev); tps65912_set_voltage_sel() local
423 reg = tps65912_get_sel_register(pmic, id); tps65912_set_voltage_sel()
486 pmic->desc[i].id = i; tps65912_probe()
H A Dlp8788-buck.c155 static void lp8788_set_dvs(struct lp8788_buck *buck, enum lp8788_buck_id id) lp8788_set_dvs() argument
157 switch (id) { lp8788_set_dvs()
170 lp8788_get_buck_dvs_ctrl_mode(struct lp8788_buck *buck, enum lp8788_buck_id id) lp8788_get_buck_dvs_ctrl_mode() argument
174 switch (id) { lp8788_get_buck_dvs_ctrl_mode()
208 enum lp8788_buck_id id) lp8788_select_buck_vout_addr()
210 enum lp8788_dvs_mode mode = lp8788_get_buck_dvs_ctrl_mode(buck, id); lp8788_select_buck_vout_addr()
216 switch (id) { lp8788_select_buck_vout_addr()
266 enum lp8788_buck_id id = rdev_get_id(rdev); lp8788_buck12_set_voltage_sel() local
270 lp8788_set_dvs(buck, id); lp8788_buck12_set_voltage_sel()
272 addr = lp8788_select_buck_vout_addr(buck, id); lp8788_buck12_set_voltage_sel()
282 enum lp8788_buck_id id = rdev_get_id(rdev); lp8788_buck12_get_voltage_sel() local
286 addr = lp8788_select_buck_vout_addr(buck, id); lp8788_buck12_get_voltage_sel()
300 enum lp8788_buck_id id = rdev_get_id(rdev); lp8788_buck_enable_time() local
301 u8 val, addr = LP8788_BUCK1_TIMESTEP + id; lp8788_buck_enable_time()
314 enum lp8788_buck_id id = rdev_get_id(rdev); lp8788_buck_set_mode() local
317 mask = BUCK_FPWM_MASK(id); lp8788_buck_set_mode()
320 val = LP8788_FORCE_PWM << BUCK_FPWM_SHIFT(id); lp8788_buck_set_mode()
323 val = LP8788_AUTO_PWM << BUCK_FPWM_SHIFT(id); lp8788_buck_set_mode()
335 enum lp8788_buck_id id = rdev_get_id(rdev); lp8788_buck_get_mode() local
343 return val & BUCK_FPWM_MASK(id) ? lp8788_buck_get_mode()
376 .id = BUCK1,
387 .id = BUCK2,
398 .id = BUCK3,
411 .id = BUCK4,
426 enum lp8788_buck_id id) lp8788_dvs_gpio_request()
433 switch (id) { lp8788_dvs_gpio_request()
461 struct lp8788_buck *buck, enum lp8788_buck_id id) lp8788_init_dvs()
469 if (id > BUCK2) lp8788_init_dvs()
476 if ((id == BUCK1 && !pdata->buck1_dvs) || lp8788_init_dvs()
477 (id == BUCK2 && !pdata->buck2_dvs)) lp8788_init_dvs()
480 if (lp8788_dvs_gpio_request(pdev, buck, id)) lp8788_init_dvs()
483 return lp8788_update_bits(buck->lp, LP8788_BUCK_DVS_SEL, mask[id], lp8788_init_dvs()
484 val[id]); lp8788_init_dvs()
487 return lp8788_update_bits(buck->lp, LP8788_BUCK_DVS_SEL, mask[id], lp8788_init_dvs()
488 default_dvs_mode[id]); lp8788_init_dvs()
494 int id = pdev->id; lp8788_buck_probe() local
500 if (id >= LP8788_NUM_BUCKS) lp8788_buck_probe()
509 ret = lp8788_init_dvs(pdev, buck, id); lp8788_buck_probe()
514 cfg.init_data = lp->pdata ? lp->pdata->buck_data[id] : NULL; lp8788_buck_probe()
518 rdev = devm_regulator_register(&pdev->dev, &lp8788_buck_desc[id], &cfg); lp8788_buck_probe()
522 id + 1, ret); lp8788_buck_probe()
207 lp8788_select_buck_vout_addr(struct lp8788_buck *buck, enum lp8788_buck_id id) lp8788_select_buck_vout_addr() argument
424 lp8788_dvs_gpio_request(struct platform_device *pdev, struct lp8788_buck *buck, enum lp8788_buck_id id) lp8788_dvs_gpio_request() argument
460 lp8788_init_dvs(struct platform_device *pdev, struct lp8788_buck *buck, enum lp8788_buck_id id) lp8788_init_dvs() argument
H A Dlp8788-ldo.c162 enum lp8788_ldo_id id = rdev_get_id(rdev); lp8788_ldo_enable_time() local
163 u8 val, addr = LP8788_DLDO1_TIMESTEP + id; lp8788_ldo_enable_time()
194 .id = DLDO1,
207 .id = DLDO2,
220 .id = DLDO3,
233 .id = DLDO4,
246 .id = DLDO5,
259 .id = DLDO6,
272 .id = DLDO7,
285 .id = DLDO8,
298 .id = DLDO9,
311 .id = DLDO10,
324 .id = DLDO11,
337 .id = DLDO12,
351 .id = ALDO1,
364 .id = ALDO2,
375 .id = ALDO3,
386 .id = ALDO4,
397 .id = ALDO5,
408 .id = ALDO6,
421 .id = ALDO7,
434 .id = ALDO8,
445 .id = ALDO9,
456 .id = ALDO10,
469 enum lp8788_ldo_id id) lp8788_config_ldo_enable_mode()
483 switch (id) { lp8788_config_ldo_enable_mode()
521 int id = pdev->id; lp8788_dldo_probe() local
532 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id); lp8788_dldo_probe()
542 cfg.init_data = lp->pdata ? lp->pdata->dldo_data[id] : NULL; lp8788_dldo_probe()
546 rdev = devm_regulator_register(&pdev->dev, &lp8788_dldo_desc[id], &cfg); lp8788_dldo_probe()
550 id + 1, ret); lp8788_dldo_probe()
570 int id = pdev->id; lp8788_aldo_probe() local
581 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id + ALDO1); lp8788_aldo_probe()
591 cfg.init_data = lp->pdata ? lp->pdata->aldo_data[id] : NULL; lp8788_aldo_probe()
595 rdev = devm_regulator_register(&pdev->dev, &lp8788_aldo_desc[id], &cfg); lp8788_aldo_probe()
599 id + 1, ret); lp8788_aldo_probe()
467 lp8788_config_ldo_enable_mode(struct platform_device *pdev, struct lp8788_ldo *ldo, enum lp8788_ldo_id id) lp8788_config_ldo_enable_mode() argument
H A Dpalmas-regulator.c320 .id = PALMAS_EXTERNAL_REQSTR_ID_##_id, \
356 .id = TPS65917_EXTERNAL_REQSTR_ID_##_id, \
437 int id = rdev_get_id(dev); palmas_set_mode_smps() local
440 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_set_mode_smps()
465 pmic->current_reg_mode[id] = reg & PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; palmas_set_mode_smps()
470 pmic->desc[id].enable_val = pmic->current_reg_mode[id]; palmas_set_mode_smps()
478 int id = rdev_get_id(dev); palmas_get_mode_smps() local
481 reg = pmic->current_reg_mode[id] & PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; palmas_get_mode_smps()
498 int id = rdev_get_id(rdev); palmas_smps_set_ramp_delay() local
501 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_smps_set_ramp_delay()
506 switch (id) { palmas_smps_set_ramp_delay()
527 pmic->ramp_delay[id] = palmas_smps_ramp_delay[reg]; palmas_smps_set_ramp_delay()
592 int id = rdev_get_id(dev); palmas_is_enabled_ldo() local
595 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_is_enabled_ldo()
642 static int palmas_regulator_config_external(struct palmas *palmas, int id, palmas_regulator_config_external() argument
646 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_regulator_config_external()
654 id, ret); palmas_regulator_config_external()
664 static int palmas_smps_init(struct palmas *palmas, int id, palmas_smps_init() argument
670 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_smps_init()
677 switch (id) { palmas_smps_init()
715 if (reg_init->roof_floor && (id != PALMAS_REG_SMPS10_OUT1) && palmas_smps_init()
716 (id != PALMAS_REG_SMPS10_OUT2)) { palmas_smps_init()
728 return palmas_regulator_config_external(palmas, id, reg_init); palmas_smps_init()
733 static int palmas_ldo_init(struct palmas *palmas, int id, palmas_ldo_init() argument
740 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_ldo_init()
773 return palmas_regulator_config_external(palmas, id, reg_init); palmas_ldo_init()
778 static int palmas_extreg_init(struct palmas *palmas, int id, palmas_extreg_init() argument
785 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; palmas_extreg_init()
811 return palmas_regulator_config_external(palmas, id, reg_init); palmas_extreg_init()
865 int id, ret; palmas_ldo_registration() local
871 for (id = ddata->ldo_begin; id < ddata->max_reg; id++) { palmas_ldo_registration()
872 if (pdata && pdata->reg_init[id]) palmas_ldo_registration()
873 reg_init = pdata->reg_init[id]; palmas_ldo_registration()
877 rinfo = &ddata->palmas_regs_info[id]; palmas_ldo_registration()
883 desc = &pmic->desc[id]; palmas_ldo_registration()
885 desc->id = id; palmas_ldo_registration()
889 if (id < PALMAS_REG_REGEN1) { palmas_ldo_registration()
907 if (pdata && (id == PALMAS_REG_LDO8) && palmas_ldo_registration()
916 (id == PALMAS_REG_LDO6)) palmas_ldo_registration()
919 if (!ddata->has_regen3 && id == PALMAS_REG_REGEN3) palmas_ldo_registration()
934 config.init_data = pdata->reg_data[id]; palmas_ldo_registration()
939 config.of_node = ddata->palmas_matches[id].of_node; palmas_ldo_registration()
950 pmic->rdev[id] = rdev; palmas_ldo_registration()
954 reg_init = pdata->reg_init[id]; palmas_ldo_registration()
956 if (id <= ddata->ldo_end) palmas_ldo_registration()
957 ret = palmas_ldo_init(pmic->palmas, id, palmas_ldo_registration()
961 id, reg_init); palmas_ldo_registration()
977 int id, ret; tps65917_ldo_registration() local
983 for (id = ddata->ldo_begin; id < ddata->max_reg; id++) { tps65917_ldo_registration()
984 if (pdata && pdata->reg_init[id]) tps65917_ldo_registration()
985 reg_init = pdata->reg_init[id]; tps65917_ldo_registration()
992 rinfo = &ddata->palmas_regs_info[id]; tps65917_ldo_registration()
995 desc = &pmic->desc[id]; tps65917_ldo_registration()
997 desc->id = id; tps65917_ldo_registration()
1001 if (id < TPS65917_REG_REGEN1) { tps65917_ldo_registration()
1035 config.init_data = pdata->reg_data[id]; tps65917_ldo_registration()
1040 config.of_node = ddata->palmas_matches[id].of_node; tps65917_ldo_registration()
1051 pmic->rdev[id] = rdev; tps65917_ldo_registration()
1055 reg_init = pdata->reg_init[id]; tps65917_ldo_registration()
1057 if (id < TPS65917_REG_REGEN1) tps65917_ldo_registration()
1059 id, reg_init); tps65917_ldo_registration()
1062 id, reg_init); tps65917_ldo_registration()
1078 int id, ret; palmas_smps_registration() local
1085 for (id = ddata->smps_start; id <= ddata->smps_end; id++) { palmas_smps_registration()
1092 switch (id) { palmas_smps_registration()
1097 if (id == PALMAS_REG_SMPS12) palmas_smps_registration()
1109 if (id == PALMAS_REG_SMPS45) palmas_smps_registration()
1122 rinfo = &ddata->palmas_regs_info[id]; palmas_smps_registration()
1123 desc = &pmic->desc[id]; palmas_smps_registration()
1125 if ((id == PALMAS_REG_SMPS6) || (id == PALMAS_REG_SMPS8)) palmas_smps_registration()
1137 pmic->ramp_delay[id] = desc->ramp_delay; palmas_smps_registration()
1141 if (pdata && pdata->reg_init[id]) { palmas_smps_registration()
1142 reg_init = pdata->reg_init[id]; palmas_smps_registration()
1143 ret = palmas_smps_init(pmic->palmas, id, reg_init); palmas_smps_registration()
1152 desc->id = id; palmas_smps_registration()
1154 switch (id) { palmas_smps_registration()
1164 if (id == PALMAS_REG_SMPS10_OUT1) palmas_smps_registration()
1188 pmic->range[id] = 1; palmas_smps_registration()
1189 if (pmic->range[id]) palmas_smps_registration()
1208 pmic->current_reg_mode[id] = reg & palmas_smps_registration()
1222 config.init_data = pdata->reg_data[id]; palmas_smps_registration()
1227 config.of_node = ddata->palmas_matches[id].of_node; palmas_smps_registration()
1238 pmic->rdev[id] = rdev; palmas_smps_registration()
1250 int id, ret; tps65917_smps_registration() local
1257 for (id = ddata->smps_start; id <= ddata->smps_end; id++) { tps65917_smps_registration()
1262 desc = &pmic->desc[id]; tps65917_smps_registration()
1264 if ((id == TPS65917_REG_SMPS2) && pmic->smps12) tps65917_smps_registration()
1268 if (pdata && pdata->reg_init[id]) { tps65917_smps_registration()
1269 reg_init = pdata->reg_init[id]; tps65917_smps_registration()
1270 ret = palmas_smps_init(pmic->palmas, id, reg_init); tps65917_smps_registration()
1276 rinfo = &ddata->palmas_regs_info[id]; tps65917_smps_registration()
1280 desc->id = id; tps65917_smps_registration()
1294 pmic->range[id] = 1; tps65917_smps_registration()
1296 if (pmic->range[id]) tps65917_smps_registration()
1316 pmic->current_reg_mode[id] = reg & tps65917_smps_registration()
1328 config.init_data = pdata->reg_data[id]; tps65917_smps_registration()
1333 config.of_node = ddata->palmas_matches[id].of_node; tps65917_smps_registration()
1344 pmic->rdev[id] = rdev; tps65917_smps_registration()
H A Dwm831x-ldo.c224 int id; wm831x_gp_ldo_probe() local
230 id = (pdata->wm831x_num * 10) + 1; wm831x_gp_ldo_probe()
232 id = 0; wm831x_gp_ldo_probe()
233 id = pdev->id - id; wm831x_gp_ldo_probe()
235 dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); wm831x_gp_ldo_probe()
251 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); wm831x_gp_ldo_probe()
255 "LDO%dVDD", id + 1); wm831x_gp_ldo_probe()
258 ldo->desc.id = id; wm831x_gp_ldo_probe()
266 ldo->desc.enable_mask = 1 << id; wm831x_gp_ldo_probe()
274 config.init_data = pdata->ldo[id]; wm831x_gp_ldo_probe()
283 id + 1, ret); wm831x_gp_ldo_probe()
433 int id; wm831x_aldo_probe() local
439 id = (pdata->wm831x_num * 10) + 1; wm831x_aldo_probe()
441 id = 0; wm831x_aldo_probe()
442 id = pdev->id - id; wm831x_aldo_probe()
444 dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); wm831x_aldo_probe()
460 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); wm831x_aldo_probe()
464 "LDO%dVDD", id + 1); wm831x_aldo_probe()
467 ldo->desc.id = id; wm831x_aldo_probe()
477 ldo->desc.enable_mask = 1 << id; wm831x_aldo_probe()
483 config.init_data = pdata->ldo[id]; wm831x_aldo_probe()
492 id + 1, ret); wm831x_aldo_probe()
576 int id; wm831x_alive_ldo_probe() local
582 id = (pdata->wm831x_num * 10) + 1; wm831x_alive_ldo_probe()
584 id = 0; wm831x_alive_ldo_probe()
585 id = pdev->id - id; wm831x_alive_ldo_probe()
588 dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); wm831x_alive_ldo_probe()
604 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); wm831x_alive_ldo_probe()
608 "LDO%dVDD", id + 1); wm831x_alive_ldo_probe()
611 ldo->desc.id = id; wm831x_alive_ldo_probe()
619 ldo->desc.enable_mask = 1 << id; wm831x_alive_ldo_probe()
626 config.init_data = pdata->ldo[id]; wm831x_alive_ldo_probe()
635 id + 1, ret); wm831x_alive_ldo_probe()
H A Dmax77802.c73 /* Array indexed by regulator id */
83 static int max77802_get_opmode_shift(int id) max77802_get_opmode_shift() argument
85 if (id == MAX77802_BUCK1 || (id >= MAX77802_BUCK5 && max77802_get_opmode_shift()
86 id <= MAX77802_BUCK10)) max77802_get_opmode_shift()
89 if (id >= MAX77802_BUCK2 && id <= MAX77802_BUCK4) max77802_get_opmode_shift()
92 if (id >= MAX77802_LDO1 && id <= MAX77802_LDO35) max77802_get_opmode_shift()
109 int id = rdev_get_id(rdev); max77802_set_suspend_disable() local
110 int shift = max77802_get_opmode_shift(id); max77802_set_suspend_disable()
112 max77802->opmode[id] = val; max77802_set_suspend_disable()
125 int id = rdev_get_id(rdev); max77802_set_mode() local
127 int shift = max77802_get_opmode_shift(id); max77802_set_mode()
142 max77802->opmode[id] = val; max77802_set_mode()
150 int id = rdev_get_id(rdev); max77802_get_mode() local
152 return max77802_map_mode(max77802->opmode[id]); max77802_get_mode()
175 int id = rdev_get_id(rdev); max77802_set_suspend_mode() local
177 int shift = max77802_get_opmode_shift(id); max77802_set_suspend_mode()
183 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) { max77802_set_suspend_mode()
196 if (max77802->opmode[id] == MAX77802_OPMODE_NORMAL) max77802_set_suspend_mode()
207 if (max77802->opmode[id] == MAX77802_OPMODE_LP) max77802_set_suspend_mode()
224 int id = rdev_get_id(rdev); max77802_enable() local
225 int shift = max77802_get_opmode_shift(id); max77802_enable()
227 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) max77802_enable()
228 max77802->opmode[id] = MAX77802_OPMODE_NORMAL; max77802_enable()
232 max77802->opmode[id] << shift); max77802_enable()
256 int id = rdev_get_id(rdev); max77802_set_ramp_delay_2bit() local
259 if (id > MAX77802_BUCK4) { max77802_set_ramp_delay_2bit()
368 .id = MAX77802_LDO##num, \
389 .id = MAX77802_LDO##num, \
410 .id = MAX77802_BUCK##num, \
431 .id = MAX77802_BUCK##num, \
453 .id = MAX77802_BUCK##num, \
474 .id = MAX77802_BUCK##num, \
555 int id = regulators[i].id; max77802_pmic_probe() local
556 int shift = max77802_get_opmode_shift(id); max77802_pmic_probe()
574 max77802->opmode[id] = MAX77802_OPMODE_NORMAL; max77802_pmic_probe()
576 max77802->opmode[id] = val; max77802_pmic_probe()
H A Dmc13892-regulator.c340 int id = rdev_get_id(rdev); mc13892_gpo_regulator_enable() local
341 u32 en_val = mc13892_regulators[id].enable_bit; mc13892_gpo_regulator_enable()
342 u32 mask = mc13892_regulators[id].enable_bit; mc13892_gpo_regulator_enable()
344 dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id); mc13892_gpo_regulator_enable() local
347 if (id == MC13892_PWGT1SPI || id == MC13892_PWGT2SPI) mc13892_gpo_regulator_enable()
350 if (id == MC13892_GPO4) mc13892_gpo_regulator_enable()
359 int id = rdev_get_id(rdev); mc13892_gpo_regulator_disable() local
362 dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id); mc13892_gpo_regulator_disable() local
365 if (id == MC13892_PWGT1SPI || id == MC13892_PWGT2SPI) mc13892_gpo_regulator_disable()
366 dis_val = mc13892_regulators[id].enable_bit; mc13892_gpo_regulator_disable()
368 return mc13892_powermisc_rmw(priv, mc13892_regulators[id].enable_bit, mc13892_gpo_regulator_disable()
375 int ret, id = rdev_get_id(rdev); mc13892_gpo_regulator_is_enabled() local
379 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); mc13892_gpo_regulator_is_enabled()
390 return (val & mc13892_regulators[id].enable_bit) != 0; mc13892_gpo_regulator_is_enabled()
405 int ret, id = rdev_get_id(rdev); mc13892_sw_regulator_get_voltage_sel() local
408 dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id); mc13892_sw_regulator_get_voltage_sel() local
412 mc13892_regulators[id].vsel_reg, &val); mc13892_sw_regulator_get_voltage_sel()
428 selector = val & mc13892_regulators[id].vsel_mask; mc13892_sw_regulator_get_voltage_sel()
430 if ((mc13892_regulators[id].vsel_reg != MC13892_SWITCHERS0) && mc13892_sw_regulator_get_voltage_sel()
435 dev_dbg(rdev_get_dev(rdev), "%s id: %d val: 0x%08x selector: %d\n", mc13892_sw_regulator_get_voltage_sel()
436 __func__, id, val, selector); mc13892_sw_regulator_get_voltage_sel() local
445 int volt, mask, id = rdev_get_id(rdev); mc13892_sw_regulator_set_voltage_sel() local
450 mask = mc13892_regulators[id].vsel_mask; mc13892_sw_regulator_set_voltage_sel()
467 if (mc13892_regulators[id].vsel_reg != MC13892_SWITCHERS0) { mc13892_sw_regulator_set_voltage_sel()
479 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13892_regulators[id].vsel_reg, mc13892_sw_regulator_set_voltage_sel()
497 int ret, id = rdev_get_id(rdev); mc13892_vcam_set_mode() local
503 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13892_regulators[id].reg, mc13892_vcam_set_mode()
513 int ret, id = rdev_get_id(rdev); mc13892_vcam_get_mode() local
517 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); mc13892_vcam_get_mode()
600 int id; mc13892_regulator_probe() local
603 id = mc13xxx_data[i].id; mc13892_regulator_probe()
607 id = pdata->regulators[i].id; mc13892_regulator_probe()
610 desc = &mc13892_regulators[id].desc; mc13892_regulator_probe()
/linux-4.1.27/drivers/pnp/isapnp/
H A Dcompat.c26 char id[8]; pnp_find_card() local
30 pnp_convert_id(id, vendor, device); pnp_find_card()
38 if (compare_pnp_id(card->id, id) || (memcmp(id, any, 7) == 0)) pnp_find_card()
48 char id[8]; pnp_find_dev() local
51 pnp_convert_id(id, vendor, function); pnp_find_dev()
63 if (compare_pnp_id(dev->id, id) || pnp_find_dev()
64 (memcmp(id, any, 7) == 0)) pnp_find_dev()
80 if (compare_pnp_id(dev->id, id)) pnp_find_dev()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_tlv.h79 unsigned int id; member in struct:fm10k_tlv_attr
84 #define FM10K_TLV_ATTR_NULL_STRING(id, len) { id, FM10K_TLV_NULL_STRING, len }
85 #define FM10K_TLV_ATTR_MAC_ADDR(id) { id, FM10K_TLV_MAC_ADDR, 6 }
86 #define FM10K_TLV_ATTR_BOOL(id) { id, FM10K_TLV_BOOL, 0 }
87 #define FM10K_TLV_ATTR_U8(id) { id, FM10K_TLV_UNSIGNED, 1 }
88 #define FM10K_TLV_ATTR_U16(id) { id, FM10K_TLV_UNSIGNED, 2 }
89 #define FM10K_TLV_ATTR_U32(id) { id, FM10K_TLV_UNSIGNED, 4 }
90 #define FM10K_TLV_ATTR_U64(id) { id, FM10K_TLV_UNSIGNED, 8 }
91 #define FM10K_TLV_ATTR_S8(id) { id, FM10K_TLV_SIGNED, 1 }
92 #define FM10K_TLV_ATTR_S16(id) { id, FM10K_TLV_SIGNED, 2 }
93 #define FM10K_TLV_ATTR_S32(id) { id, FM10K_TLV_SIGNED, 4 }
94 #define FM10K_TLV_ATTR_S64(id) { id, FM10K_TLV_SIGNED, 8 }
95 #define FM10K_TLV_ATTR_LE_STRUCT(id, len) { id, FM10K_TLV_LE_STRUCT, len }
96 #define FM10K_TLV_ATTR_NESTED(id) { id, FM10K_TLV_NESTED }
100 unsigned int id; member in struct:fm10k_msg_data
106 #define FM10K_MSG_HANDLER(id, attr, func) { id, attr, func }
/linux-4.1.27/net/ipv4/netfilter/
H A Dnf_nat_proto_icmp.c26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && icmp_in_range()
27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); icmp_in_range()
37 static u_int16_t id; icmp_unique_tuple() local
41 range_size = ntohs(range->max_proto.icmp.id) - icmp_unique_tuple()
42 ntohs(range->min_proto.icmp.id) + 1; icmp_unique_tuple()
47 for (i = 0; ; ++id) { icmp_unique_tuple()
48 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + icmp_unique_tuple()
49 (id % range_size)); icmp_unique_tuple()
70 hdr->un.echo.id, tuple->src.u.icmp.id, 0); icmp_manip_pkt()
71 hdr->un.echo.id = tuple->src.u.icmp.id; icmp_manip_pkt()
/linux-4.1.27/arch/powerpc/mm/
H A Dmmu_context_nohash.c85 static unsigned int steal_context_smp(unsigned int id) steal_context_smp() argument
95 mm = context_mm[id]; steal_context_smp()
101 id++; steal_context_smp()
102 if (id > last_context) steal_context_smp()
103 id = first_context; steal_context_smp()
106 pr_hardcont(" | steal %d from 0x%p", id, mm); steal_context_smp()
109 mm->context.id = MMU_NO_CONTEXT; steal_context_smp()
120 __set_bit(id, stale_map[i]); for_each_cpu()
124 return id;
143 unsigned int id; steal_all_contexts() local
145 for (id = first_context; id <= last_context; id++) { steal_all_contexts()
147 mm = context_mm[id]; steal_all_contexts()
149 pr_hardcont(" | steal %d from 0x%p", id, mm); steal_all_contexts()
152 mm->context.id = MMU_NO_CONTEXT; steal_all_contexts()
153 if (id != first_context) { steal_all_contexts()
154 context_mm[id] = NULL; steal_all_contexts()
155 __clear_bit(id, context_map); steal_all_contexts()
160 __clear_bit(id, stale_map[cpu]); steal_all_contexts()
176 static unsigned int steal_context_up(unsigned int id) steal_context_up() argument
182 mm = context_mm[id]; steal_context_up()
184 pr_hardcont(" | steal %d from 0x%p", id, mm); steal_context_up()
190 mm->context.id = MMU_NO_CONTEXT; steal_context_up()
193 __clear_bit(id, stale_map[cpu]); steal_context_up()
195 return id; steal_context_up()
201 unsigned int id, nrf, nact; context_check_map() local
204 for (id = first_context; id <= last_context; id++) { context_check_map()
205 int used = test_bit(id, context_map); context_check_map()
208 if (used != (context_mm[id] != NULL)) context_check_map()
210 id, used ? "used" : "free", context_mm[id]); context_check_map()
211 if (context_mm[id] != NULL) context_check_map()
212 nact += context_mm[id]->context.active; context_check_map()
231 unsigned int i, id, cpu = smp_processor_id(); switch_mmu_context() local
237 pr_hard("[%d] activating context for mm @%p, active=%d, id=%d", switch_mmu_context()
238 cpu, next, next->context.active, next->context.id); switch_mmu_context()
253 id = next->context.id; switch_mmu_context()
254 if (likely(id != MMU_NO_CONTEXT)) { switch_mmu_context()
256 if (context_mm[id] != next) switch_mmu_context()
257 pr_err("MMU: mm 0x%p has id %d but context_mm[%d] says 0x%p\n", switch_mmu_context()
258 next, id, id, context_mm[id]); switch_mmu_context()
264 id = next_context; switch_mmu_context()
265 if (id > last_context) switch_mmu_context()
266 id = first_context; switch_mmu_context()
273 id = steal_context_smp(id); switch_mmu_context()
274 if (id == MMU_NO_CONTEXT) switch_mmu_context()
280 id = steal_all_contexts(); switch_mmu_context()
282 id = steal_context_up(id); switch_mmu_context()
288 while (__test_and_set_bit(id, map)) { switch_mmu_context()
289 id = find_next_zero_bit(map, last_context+1, id); switch_mmu_context()
290 if (id > last_context) switch_mmu_context()
291 id = first_context; switch_mmu_context()
294 next_context = id + 1; switch_mmu_context()
295 context_mm[id] = next; switch_mmu_context()
296 next->context.id = id; switch_mmu_context()
297 pr_hardcont(" | new id=%d,nrf=%d", id, nr_free_contexts); switch_mmu_context()
305 if (test_bit(id, stale_map[cpu])) { switch_mmu_context()
307 id, cpu_first_thread_sibling(cpu), switch_mmu_context()
316 __clear_bit(id, stale_map[i]); switch_mmu_context()
321 pr_hardcont(" -> %d\n", id); switch_mmu_context()
322 set_context(id, next->pgd); switch_mmu_context()
333 mm->context.id = MMU_NO_CONTEXT; init_new_context()
350 unsigned int id; destroy_context() local
352 if (mm->context.id == MMU_NO_CONTEXT) destroy_context()
358 id = mm->context.id; destroy_context()
359 if (id != MMU_NO_CONTEXT) { destroy_context()
360 __clear_bit(id, context_map); destroy_context()
361 mm->context.id = MMU_NO_CONTEXT; destroy_context()
365 context_mm[id] = NULL; destroy_context()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
H A Ddebug.c60 int block_debug_setup(void *addr, int len, __u64 off, __u64 id) block_debug_setup() argument
65 put_unaligned_le64(id, addr+LPDS); block_debug_setup()
68 put_unaligned_le64(id, addr+LPDS); block_debug_setup()
74 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id) block_debug_check() argument
82 id = le64_to_cpu (id); block_debug_check()
84 CDEBUG(D_ERROR, "%s: id %#llx offset %llu off: %#llx != %#llx\n", block_debug_check()
85 who, id, off, *(__u64 *)addr, ne_off); block_debug_check()
88 if (memcmp(addr + LPDS, (char *)&id, LPDS)) { block_debug_check()
89 CDEBUG(D_ERROR, "%s: id %#llx offset %llu id: %#llx != %#llx\n", block_debug_check()
90 who, id, off, *(__u64 *)(addr + LPDS), id); block_debug_check()
96 CDEBUG(D_ERROR, "%s: id %#llx offset %llu end off: %#llx != %#llx\n", block_debug_check()
97 who, id, off, *(__u64 *)addr, ne_off); block_debug_check()
100 if (memcmp(addr + LPDS, (char *)&id, LPDS)) { block_debug_check()
101 CDEBUG(D_ERROR, "%s: id %#llx offset %llu end id: %#llx != %#llx\n", block_debug_check()
102 who, id, off, *(__u64 *)(addr + LPDS), id); block_debug_check()
/linux-4.1.27/drivers/clk/versatile/
H A Dclk-impd1.c85 * @id: the ID of this LM
87 void integrator_impd1_clk_init(void __iomem *base, unsigned int id) integrator_impd1_clk_init() argument
94 if (id > 3) { integrator_impd1_clk_init()
98 imc = &impd1_clks[id]; integrator_impd1_clk_init()
101 imc->pclkname = kasprintf(GFP_KERNEL, "lm%x-pclk", id); integrator_impd1_clk_init()
106 imc->vco1name = kasprintf(GFP_KERNEL, "lm%x-vco1", id); integrator_impd1_clk_init()
110 imc->clks[0] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id); integrator_impd1_clk_init()
111 imc->clks[1] = clkdev_alloc(clk, NULL, "lm%x:01000", id); integrator_impd1_clk_init()
114 imc->vco2name = kasprintf(GFP_KERNEL, "lm%x-vco2", id); integrator_impd1_clk_init()
120 imc->clks[2] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00700", id); integrator_impd1_clk_init()
121 imc->clks[3] = clkdev_alloc(clk, NULL, "lm%x:00700", id); integrator_impd1_clk_init()
124 imc->uartname = kasprintf(GFP_KERNEL, "lm%x-uartclk", id); integrator_impd1_clk_init()
128 imc->clks[4] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00100", id); integrator_impd1_clk_init()
129 imc->clks[5] = clkdev_alloc(clk, NULL, "lm%x:00100", id); integrator_impd1_clk_init()
130 imc->clks[6] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00200", id); integrator_impd1_clk_init()
131 imc->clks[7] = clkdev_alloc(clk, NULL, "lm%x:00200", id); integrator_impd1_clk_init()
134 imc->spiname = kasprintf(GFP_KERNEL, "lm%x-spiclk", id); integrator_impd1_clk_init()
137 imc->clks[8] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00300", id); integrator_impd1_clk_init()
138 imc->clks[9] = clkdev_alloc(clk, NULL, "lm%x:00300", id); integrator_impd1_clk_init()
141 imc->clks[10] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00400", id); integrator_impd1_clk_init()
142 imc->clks[11] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00500", id); integrator_impd1_clk_init()
143 imc->clks[12] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00800", id); integrator_impd1_clk_init()
146 imc->scname = kasprintf(GFP_KERNEL, "lm%x-scclk", id); integrator_impd1_clk_init()
150 imc->clks[13] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00600", id); integrator_impd1_clk_init()
151 imc->clks[14] = clkdev_alloc(clk, NULL, "lm%x:00600", id); integrator_impd1_clk_init()
158 void integrator_impd1_clk_exit(unsigned int id) integrator_impd1_clk_exit() argument
163 if (id > 3) integrator_impd1_clk_exit()
165 imc = &impd1_clks[id]; integrator_impd1_clk_exit()
/linux-4.1.27/include/uapi/linux/
H A Dadb.h9 #define ADB_FLUSH(id) (0x01 | ((id) << 4))
10 #define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4))
11 #define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4))
39 * data[2] = id, rep[0] = orig addr, rep[1] = handler_id
H A Dpatchkey.h28 # define _PATCHKEY(id) (0xfd00|id)
30 # define _PATCHKEY(id) ((id<<8)|0x00fd)
/linux-4.1.27/arch/s390/kernel/
H A Ddebug.c79 static int debug_prolog_level_fn(debug_info_t * id,
81 static int debug_input_level_fn(debug_info_t * id, struct debug_view *view,
84 static int debug_prolog_pages_fn(debug_info_t * id,
86 static int debug_input_pages_fn(debug_info_t * id, struct debug_view *view,
89 static int debug_input_flush_fn(debug_info_t * id, struct debug_view *view,
92 static int debug_hex_ascii_format_fn(debug_info_t * id, struct debug_view *view,
94 static int debug_raw_format_fn(debug_info_t * id,
97 static int debug_raw_header_fn(debug_info_t * id, struct debug_view *view,
100 static int debug_sprintf_format_fn(debug_info_t * id, struct debug_view *view,
474 if (act_entry->id.stck == 0LL) debug_format_entry()
494 debug_info_t *id; debug_next_entry() local
496 id = p_info->debug_info_snap; debug_next_entry()
502 if(!id->areas) debug_next_entry()
504 p_info->act_entry += id->entry_size; debug_next_entry()
506 if (p_info->act_entry > (PAGE_SIZE - id->entry_size)){ debug_next_entry()
510 if((p_info->act_page % id->pages_per_area) == 0) { debug_next_entry()
515 if(p_info->act_area >= id->nr_areas) debug_next_entry()
744 debug_unregister(debug_info_t * id) debug_unregister() argument
746 if (!id) debug_unregister()
749 debug_info_put(id); debug_unregister()
762 debug_set_size(debug_info_t* id, int nr_areas, int pages_per_area) debug_set_size() argument
768 if(!id || (nr_areas <= 0) || (pages_per_area < 0)) debug_set_size()
781 spin_lock_irqsave(&id->lock,flags); debug_set_size()
782 debug_areas_free(id); debug_set_size()
783 id->areas = new_areas; debug_set_size()
784 id->nr_areas = nr_areas; debug_set_size()
785 id->pages_per_area = pages_per_area; debug_set_size()
786 id->active_area = 0; debug_set_size()
787 memset(id->active_entries,0,sizeof(int)*id->nr_areas); debug_set_size()
788 memset(id->active_pages, 0, sizeof(int)*id->nr_areas); debug_set_size()
789 spin_unlock_irqrestore(&id->lock,flags); debug_set_size()
790 pr_info("%s: set new size (%i pages)\n" ,id->name, pages_per_area); debug_set_size()
801 debug_set_level(debug_info_t* id, int new_level) debug_set_level() argument
804 if(!id) debug_set_level()
806 spin_lock_irqsave(&id->lock,flags); debug_set_level()
808 id->level = DEBUG_OFF_LEVEL; debug_set_level()
809 pr_info("%s: switched off\n",id->name); debug_set_level()
812 id->name, new_level, 0, DEBUG_MAX_LEVEL); debug_set_level()
814 id->level = new_level; debug_set_level()
816 spin_unlock_irqrestore(&id->lock,flags); debug_set_level()
826 proceed_active_entry(debug_info_t * id) proceed_active_entry() argument
828 if ((id->active_entries[id->active_area] += id->entry_size) proceed_active_entry()
829 > (PAGE_SIZE - id->entry_size)){ proceed_active_entry()
830 id->active_entries[id->active_area] = 0; proceed_active_entry()
831 id->active_pages[id->active_area] = proceed_active_entry()
832 (id->active_pages[id->active_area] + 1) % proceed_active_entry()
833 id->pages_per_area; proceed_active_entry()
843 proceed_active_area(debug_info_t * id) proceed_active_area() argument
845 id->active_area++; proceed_active_area()
846 id->active_area = id->active_area % id->nr_areas; proceed_active_area()
854 get_active_entry(debug_info_t * id) get_active_entry() argument
856 return (debug_entry_t *) (((char *) id->areas[id->active_area] get_active_entry()
857 [id->active_pages[id->active_area]]) + get_active_entry()
858 id->active_entries[id->active_area]); get_active_entry()
867 debug_finish_entry(debug_info_t * id, debug_entry_t* active, int level, debug_finish_entry() argument
870 active->id.stck = get_tod_clock_fast(); debug_finish_entry()
871 active->id.fields.cpuid = smp_processor_id(); debug_finish_entry()
873 active->id.fields.exception = exception; debug_finish_entry()
874 active->id.fields.level = level; debug_finish_entry()
875 proceed_active_entry(id); debug_finish_entry()
877 proceed_active_area(id); debug_finish_entry()
951 debug_event_common(debug_info_t * id, int level, const void *buf, int len) debug_event_common() argument
956 if (!debug_active || !id->areas) debug_event_common()
959 if (!spin_trylock_irqsave(&id->lock, flags)) debug_event_common()
962 spin_lock_irqsave(&id->lock, flags); debug_event_common()
963 active = get_active_entry(id); debug_event_common()
964 memset(DEBUG_DATA(active), 0, id->buf_size); debug_event_common()
965 memcpy(DEBUG_DATA(active), buf, min(len, id->buf_size)); debug_event_common()
966 debug_finish_entry(id, active, level, 0); debug_event_common()
967 spin_unlock_irqrestore(&id->lock, flags); debug_event_common()
979 *debug_exception_common(debug_info_t * id, int level, const void *buf, int len) debug_exception_common() argument
984 if (!debug_active || !id->areas) debug_exception_common()
987 if (!spin_trylock_irqsave(&id->lock, flags)) debug_exception_common()
990 spin_lock_irqsave(&id->lock, flags); debug_exception_common()
991 active = get_active_entry(id); debug_exception_common()
992 memset(DEBUG_DATA(active), 0, id->buf_size); debug_exception_common()
993 memcpy(DEBUG_DATA(active), buf, min(len, id->buf_size)); debug_exception_common()
994 debug_finish_entry(id, active, level, 1); debug_exception_common()
995 spin_unlock_irqrestore(&id->lock, flags); debug_exception_common()
1022 __debug_sprintf_event(debug_info_t *id, int level, char *string, ...) __debug_sprintf_event() argument
1030 if (!debug_active || !id->areas) __debug_sprintf_event()
1035 if (!spin_trylock_irqsave(&id->lock, flags)) __debug_sprintf_event()
1038 spin_lock_irqsave(&id->lock, flags); __debug_sprintf_event()
1039 active = get_active_entry(id); __debug_sprintf_event()
1043 for(idx=0;idx<min(numargs,(int)(id->buf_size / sizeof(long))-1);idx++) __debug_sprintf_event()
1046 debug_finish_entry(id, active, level, 0); __debug_sprintf_event()
1047 spin_unlock_irqrestore(&id->lock, flags); __debug_sprintf_event()
1058 __debug_sprintf_exception(debug_info_t *id, int level, char *string, ...) __debug_sprintf_exception() argument
1066 if (!debug_active || !id->areas) __debug_sprintf_exception()
1072 if (!spin_trylock_irqsave(&id->lock, flags)) __debug_sprintf_exception()
1075 spin_lock_irqsave(&id->lock, flags); __debug_sprintf_exception()
1076 active = get_active_entry(id); __debug_sprintf_exception()
1080 for(idx=0;idx<min(numargs,(int)(id->buf_size / sizeof(long))-1);idx++) __debug_sprintf_exception()
1083 debug_finish_entry(id, active, level, 1); __debug_sprintf_exception()
1084 spin_unlock_irqrestore(&id->lock, flags); __debug_sprintf_exception()
1095 debug_register_view(debug_info_t * id, struct debug_view *view) debug_register_view() argument
1103 if (!id) debug_register_view()
1105 mode = (id->mode | S_IFREG) & ~S_IXUGO; debug_register_view()
1110 pde = debugfs_create_file(view->name, mode, id->debugfs_root_entry, debug_register_view()
1111 id , &debug_file_ops); debug_register_view()
1114 "memory\n", id->name,view->name); debug_register_view()
1118 spin_lock_irqsave(&id->lock, flags); debug_register_view()
1120 if (!id->views[i]) debug_register_view()
1125 "number of views %i\n", id->name, view->name, i); debug_register_view()
1128 id->views[i] = view; debug_register_view()
1129 id->debugfs_entries[i] = pde; debug_register_view()
1131 spin_unlock_irqrestore(&id->lock, flags); debug_register_view()
1144 debug_unregister_view(debug_info_t * id, struct debug_view *view) debug_unregister_view() argument
1150 if (!id) debug_unregister_view()
1152 spin_lock_irqsave(&id->lock, flags); debug_unregister_view()
1154 if (id->views[i] == view) debug_unregister_view()
1160 dentry = id->debugfs_entries[i]; debug_unregister_view()
1161 id->views[i] = NULL; debug_unregister_view()
1162 id->debugfs_entries[i] = NULL; debug_unregister_view()
1164 spin_unlock_irqrestore(&id->lock, flags); debug_unregister_view()
1214 debug_prolog_pages_fn(debug_info_t * id, debug_prolog_pages_fn() argument
1217 return sprintf(out_buf, "%i\n", id->pages_per_area); debug_prolog_pages_fn()
1225 debug_input_pages_fn(debug_info_t * id, struct debug_view *view, debug_input_pages_fn() argument
1248 rc = debug_set_size(id,id->nr_areas, new_pages); debug_input_pages_fn()
1266 debug_prolog_level_fn(debug_info_t * id, struct debug_view *view, char *out_buf) debug_prolog_level_fn() argument
1270 if(id->level == DEBUG_OFF_LEVEL) { debug_prolog_level_fn()
1274 rc = sprintf(out_buf, "%i\n", id->level); debug_prolog_level_fn()
1284 debug_input_level_fn(debug_info_t * id, struct debug_view *view, debug_input_level_fn() argument
1303 debug_set_level(id, DEBUG_OFF_LEVEL); debug_input_level_fn()
1314 debug_set_level(id, new_level); debug_input_level_fn()
1329 static void debug_flush(debug_info_t* id, int area) debug_flush() argument
1334 if(!id || !id->areas) debug_flush()
1336 spin_lock_irqsave(&id->lock,flags); debug_flush()
1338 id->active_area = 0; debug_flush()
1339 memset(id->active_entries, 0, id->nr_areas * sizeof(int)); debug_flush()
1340 for (i = 0; i < id->nr_areas; i++) { debug_flush()
1341 id->active_pages[i] = 0; debug_flush()
1342 for(j = 0; j < id->pages_per_area; j++) { debug_flush()
1343 memset(id->areas[i][j], 0, PAGE_SIZE); debug_flush()
1346 } else if(area >= 0 && area < id->nr_areas) { debug_flush()
1347 id->active_entries[area] = 0; debug_flush()
1348 id->active_pages[area] = 0; debug_flush()
1349 for(i = 0; i < id->pages_per_area; i++) { debug_flush()
1350 memset(id->areas[area][i],0,PAGE_SIZE); debug_flush()
1353 spin_unlock_irqrestore(&id->lock,flags); debug_flush()
1361 debug_input_flush_fn(debug_info_t * id, struct debug_view *view, debug_input_flush_fn() argument
1379 debug_flush(id, DEBUG_FLUSH_ALL); debug_input_flush_fn()
1384 debug_flush(id, area); debug_input_flush_fn()
1401 debug_raw_header_fn(debug_info_t * id, struct debug_view *view, debug_raw_header_fn() argument
1416 debug_raw_format_fn(debug_info_t * id, struct debug_view *view, debug_raw_format_fn() argument
1421 rc = id->buf_size; debug_raw_format_fn()
1422 memcpy(out_buf, in_buf, id->buf_size); debug_raw_format_fn()
1431 debug_hex_ascii_format_fn(debug_info_t * id, struct debug_view *view, debug_hex_ascii_format_fn() argument
1436 for (i = 0; i < id->buf_size; i++) { debug_hex_ascii_format_fn()
1441 for (i = 0; i < id->buf_size; i++) { debug_hex_ascii_format_fn()
1457 debug_dflt_header_fn(debug_info_t * id, struct debug_view *view, debug_dflt_header_fn() argument
1466 level = entry->id.fields.level; debug_dflt_header_fn()
1467 stck_to_timespec(entry->id.stck, &time_spec); debug_dflt_header_fn()
1469 if (entry->id.fields.exception) debug_dflt_header_fn()
1476 except_str, entry->id.fields.cpuid, (void *) caller); debug_dflt_header_fn()
1489 debug_sprintf_format_fn(debug_info_t * id, struct debug_view *view, debug_sprintf_format_fn() argument
1496 num_longs = id->buf_size / sizeof(long); debug_sprintf_format_fn()
H A Dprocessor.c34 struct cpuid *id = this_cpu_ptr(&cpu_id); cpu_init() local
36 get_cpu_id(id); cpu_init()
71 struct cpuid *id = &per_cpu(cpu_id, n); show_cpuinfo() local
76 n, id->version, id->ident, id->machine); show_cpuinfo()
/linux-4.1.27/arch/avr32/mach-at32ap/include/mach/
H A Dboard.h37 struct platform_device *at32_add_device_usart(unsigned int id);
40 at32_add_device_eth(unsigned int id, struct macb_platform_data *data);
44 at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
49 at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_pdata *data,
55 at32_add_device_usba(unsigned int id, struct usba_platform_data *data);
61 at32_add_device_ide(unsigned int id, unsigned int extint,
79 at32_add_device_ssc(unsigned int id, unsigned int flags);
82 struct platform_device *at32_add_device_twi(unsigned int id,
88 at32_add_device_mci(unsigned int id, struct mci_platform_data *data);
92 at32_add_device_ac97c(unsigned int id, struct ac97c_platform_data *data,
97 at32_add_device_abdac(unsigned int id, struct atmel_abdac_pdata *data);
99 struct platform_device *at32_add_device_psif(unsigned int id);
109 at32_add_device_cf(unsigned int id, unsigned int extint,
113 at32_add_device_nand(unsigned int id, struct atmel_nand_data *data);
/linux-4.1.27/drivers/leds/
H A Dleds-da903x.c39 int id; member in struct:da903x_led
43 #define DA9030_LED_OFFSET(id) ((id) - DA9030_ID_LED_1)
44 #define DA9034_LED_OFFSET(id) ((id) - DA9034_ID_LED_1)
52 switch (led->id) { da903x_led_work()
58 offset = DA9030_LED_OFFSET(led->id); da903x_led_work()
71 offset = DA9034_LED_OFFSET(led->id); da903x_led_work()
97 int id, ret; da903x_led_probe() local
102 id = pdev->id; da903x_led_probe()
104 if (!((id >= DA9030_ID_LED_1 && id <= DA9030_ID_VIBRA) || da903x_led_probe()
105 (id >= DA9034_ID_LED_1 && id <= DA9034_ID_VIBRA))) { da903x_led_probe()
106 dev_err(&pdev->dev, "invalid LED ID (%d) specified\n", id); da903x_led_probe()
119 led->id = id; da903x_led_probe()
128 dev_err(&pdev->dev, "failed to register LED %d\n", id); da903x_led_probe()
H A Dleds-mc13783.c37 int id; member in struct:mc13xxx_led
48 static unsigned int mc13xxx_max_brightness(int id) mc13xxx_max_brightness() argument
50 if (id >= MC13783_LED_MD && id <= MC13783_LED_KP) mc13xxx_max_brightness()
52 else if (id >= MC13783_LED_R1 && id <= MC13783_LED_B3) mc13xxx_max_brightness()
64 switch (led->id) { mc13xxx_led_work()
69 shift = 9 + (led->id - MC13783_LED_MD) * 4; mc13xxx_led_work()
80 off = led->id - MC13783_LED_R1; mc13xxx_led_work()
88 reg = (led->id - MC13892_LED_MD) / 2; mc13xxx_led_work()
89 shift = 3 + (led->id - MC13892_LED_MD) * 12; mc13xxx_led_work()
94 off = led->id - MC13892_LED_R; mc13xxx_led_work()
102 shift = 3 + (led->id - MC34708_LED_R) * 12; mc13xxx_led_work()
109 mc13xxx_max_brightness(led->id) << shift, mc13xxx_led_work()
162 pdata->led[i].id = leds->devtype->led_min + tmp; for_each_child_of_node()
197 int i, id, ret = -ENODATA; mc13xxx_led_probe() local
240 id = pdata->led[i].id; mc13xxx_led_probe()
244 if ((id > devtype->led_max) || (id < devtype->led_min)) { mc13xxx_led_probe()
245 dev_err(dev, "Invalid ID %i\n", id); mc13xxx_led_probe()
249 if (init_led & (1 << id)) { mc13xxx_led_probe()
250 dev_warn(dev, "LED %i already initialized\n", id); mc13xxx_led_probe()
254 init_led |= 1 << id; mc13xxx_led_probe()
255 leds->led[i].id = id; mc13xxx_led_probe()
261 leds->led[i].cdev.max_brightness = mc13xxx_max_brightness(id); mc13xxx_led_probe()
267 dev_err(dev, "Failed to register LED %i\n", id); mc13xxx_led_probe()
/linux-4.1.27/drivers/gpu/host1x/hw/
H A Dintr_hw.c33 unsigned int id = syncpt->id; host1x_intr_syncpt_handle() local
36 host1x_sync_writel(host, BIT_MASK(id), host1x_intr_syncpt_handle()
37 HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(BIT_WORD(id))); host1x_intr_syncpt_handle()
38 host1x_sync_writel(host, BIT_MASK(id), host1x_intr_syncpt_handle()
39 HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(BIT_WORD(id))); host1x_intr_syncpt_handle()
48 int i, id; syncpt_thresh_isr() local
53 for_each_set_bit(id, &reg, BITS_PER_LONG) { syncpt_thresh_isr()
55 host->syncpt + (i * BITS_PER_LONG + id); syncpt_thresh_isr()
109 u32 id, u32 thresh) _host1x_intr_set_syncpt_threshold()
111 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id)); _host1x_intr_set_syncpt_threshold()
114 static void _host1x_intr_enable_syncpt_intr(struct host1x *host, u32 id) _host1x_intr_enable_syncpt_intr() argument
116 host1x_sync_writel(host, BIT_MASK(id), _host1x_intr_enable_syncpt_intr()
117 HOST1X_SYNC_SYNCPT_THRESH_INT_ENABLE_CPU0(BIT_WORD(id))); _host1x_intr_enable_syncpt_intr()
120 static void _host1x_intr_disable_syncpt_intr(struct host1x *host, u32 id) _host1x_intr_disable_syncpt_intr() argument
122 host1x_sync_writel(host, BIT_MASK(id), _host1x_intr_disable_syncpt_intr()
123 HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(BIT_WORD(id))); _host1x_intr_disable_syncpt_intr()
124 host1x_sync_writel(host, BIT_MASK(id), _host1x_intr_disable_syncpt_intr()
125 HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(BIT_WORD(id))); _host1x_intr_disable_syncpt_intr()
108 _host1x_intr_set_syncpt_threshold(struct host1x *host, u32 id, u32 thresh) _host1x_intr_set_syncpt_threshold() argument
H A Dhw_host1x01_sync.h56 static inline u32 host1x_sync_syncpt_r(unsigned int id) host1x_sync_syncpt_r() argument
58 return 0x400 + id * REGISTER_STRIDE; host1x_sync_syncpt_r()
60 #define HOST1X_SYNC_SYNCPT(id) \
61 host1x_sync_syncpt_r(id) host1x_sync_syncpt_thresh_cpu0_int_status_r()
62 static inline u32 host1x_sync_syncpt_thresh_cpu0_int_status_r(unsigned int id) host1x_sync_syncpt_thresh_cpu0_int_status_r() argument
64 return 0x40 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_cpu0_int_status_r()
66 #define HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(id) \
67 host1x_sync_syncpt_thresh_cpu0_int_status_r(id) host1x_sync_syncpt_thresh_int_disable_r()
68 static inline u32 host1x_sync_syncpt_thresh_int_disable_r(unsigned int id) host1x_sync_syncpt_thresh_int_disable_r() argument
70 return 0x60 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_int_disable_r()
72 #define HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(id) \
73 host1x_sync_syncpt_thresh_int_disable_r(id) host1x_sync_syncpt_thresh_int_enable_cpu0_r()
74 static inline u32 host1x_sync_syncpt_thresh_int_enable_cpu0_r(unsigned int id) host1x_sync_syncpt_thresh_int_enable_cpu0_r() argument
76 return 0x68 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_int_enable_cpu0_r()
78 #define HOST1X_SYNC_SYNCPT_THRESH_INT_ENABLE_CPU0(id) \
79 host1x_sync_syncpt_thresh_int_enable_cpu0_r(id) host1x_sync_cf_setup_r()
128 static inline u32 host1x_sync_mlock_owner_r(unsigned int id) host1x_sync_mlock_owner_r() argument
130 return 0x340 + id * REGISTER_STRIDE; host1x_sync_mlock_owner_r()
132 #define HOST1X_SYNC_MLOCK_OWNER(id) \
133 host1x_sync_mlock_owner_r(id) host1x_sync_mlock_owner_chid_f()
152 static inline u32 host1x_sync_syncpt_int_thresh_r(unsigned int id) host1x_sync_syncpt_int_thresh_r() argument
154 return 0x500 + id * REGISTER_STRIDE; host1x_sync_syncpt_int_thresh_r()
156 #define HOST1X_SYNC_SYNCPT_INT_THRESH(id) \
157 host1x_sync_syncpt_int_thresh_r(id) host1x_sync_syncpt_base_r()
158 static inline u32 host1x_sync_syncpt_base_r(unsigned int id) host1x_sync_syncpt_base_r() argument
160 return 0x600 + id * REGISTER_STRIDE; host1x_sync_syncpt_base_r()
162 #define HOST1X_SYNC_SYNCPT_BASE(id) \
163 host1x_sync_syncpt_base_r(id) host1x_sync_syncpt_cpu_incr_r()
164 static inline u32 host1x_sync_syncpt_cpu_incr_r(unsigned int id) host1x_sync_syncpt_cpu_incr_r() argument
166 return 0x700 + id * REGISTER_STRIDE; host1x_sync_syncpt_cpu_incr_r()
168 #define HOST1X_SYNC_SYNCPT_CPU_INCR(id) \
169 host1x_sync_syncpt_cpu_incr_r(id) host1x_sync_cbread_r()
H A Dhw_host1x02_sync.h56 static inline u32 host1x_sync_syncpt_r(unsigned int id) host1x_sync_syncpt_r() argument
58 return 0x400 + id * REGISTER_STRIDE; host1x_sync_syncpt_r()
60 #define HOST1X_SYNC_SYNCPT(id) \
61 host1x_sync_syncpt_r(id) host1x_sync_syncpt_thresh_cpu0_int_status_r()
62 static inline u32 host1x_sync_syncpt_thresh_cpu0_int_status_r(unsigned int id) host1x_sync_syncpt_thresh_cpu0_int_status_r() argument
64 return 0x40 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_cpu0_int_status_r()
66 #define HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(id) \
67 host1x_sync_syncpt_thresh_cpu0_int_status_r(id) host1x_sync_syncpt_thresh_int_disable_r()
68 static inline u32 host1x_sync_syncpt_thresh_int_disable_r(unsigned int id) host1x_sync_syncpt_thresh_int_disable_r() argument
70 return 0x60 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_int_disable_r()
72 #define HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(id) \
73 host1x_sync_syncpt_thresh_int_disable_r(id) host1x_sync_syncpt_thresh_int_enable_cpu0_r()
74 static inline u32 host1x_sync_syncpt_thresh_int_enable_cpu0_r(unsigned int id) host1x_sync_syncpt_thresh_int_enable_cpu0_r() argument
76 return 0x68 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_int_enable_cpu0_r()
78 #define HOST1X_SYNC_SYNCPT_THRESH_INT_ENABLE_CPU0(id) \
79 host1x_sync_syncpt_thresh_int_enable_cpu0_r(id) host1x_sync_cf_setup_r()
128 static inline u32 host1x_sync_mlock_owner_r(unsigned int id) host1x_sync_mlock_owner_r() argument
130 return 0x340 + id * REGISTER_STRIDE; host1x_sync_mlock_owner_r()
132 #define HOST1X_SYNC_MLOCK_OWNER(id) \
133 host1x_sync_mlock_owner_r(id) host1x_sync_mlock_owner_chid_f()
152 static inline u32 host1x_sync_syncpt_int_thresh_r(unsigned int id) host1x_sync_syncpt_int_thresh_r() argument
154 return 0x500 + id * REGISTER_STRIDE; host1x_sync_syncpt_int_thresh_r()
156 #define HOST1X_SYNC_SYNCPT_INT_THRESH(id) \
157 host1x_sync_syncpt_int_thresh_r(id) host1x_sync_syncpt_base_r()
158 static inline u32 host1x_sync_syncpt_base_r(unsigned int id) host1x_sync_syncpt_base_r() argument
160 return 0x600 + id * REGISTER_STRIDE; host1x_sync_syncpt_base_r()
162 #define HOST1X_SYNC_SYNCPT_BASE(id) \
163 host1x_sync_syncpt_base_r(id) host1x_sync_syncpt_cpu_incr_r()
164 static inline u32 host1x_sync_syncpt_cpu_incr_r(unsigned int id) host1x_sync_syncpt_cpu_incr_r() argument
166 return 0x700 + id * REGISTER_STRIDE; host1x_sync_syncpt_cpu_incr_r()
168 #define HOST1X_SYNC_SYNCPT_CPU_INCR(id) \
169 host1x_sync_syncpt_cpu_incr_r(id) host1x_sync_cbread_r()
H A Dhw_host1x04_sync.h56 static inline u32 host1x_sync_syncpt_r(unsigned int id) host1x_sync_syncpt_r() argument
58 return 0xf80 + id * REGISTER_STRIDE; host1x_sync_syncpt_r()
60 #define HOST1X_SYNC_SYNCPT(id) \
61 host1x_sync_syncpt_r(id) host1x_sync_syncpt_thresh_cpu0_int_status_r()
62 static inline u32 host1x_sync_syncpt_thresh_cpu0_int_status_r(unsigned int id) host1x_sync_syncpt_thresh_cpu0_int_status_r() argument
64 return 0xe80 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_cpu0_int_status_r()
66 #define HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(id) \
67 host1x_sync_syncpt_thresh_cpu0_int_status_r(id) host1x_sync_syncpt_thresh_int_disable_r()
68 static inline u32 host1x_sync_syncpt_thresh_int_disable_r(unsigned int id) host1x_sync_syncpt_thresh_int_disable_r() argument
70 return 0xf00 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_int_disable_r()
72 #define HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(id) \
73 host1x_sync_syncpt_thresh_int_disable_r(id) host1x_sync_syncpt_thresh_int_enable_cpu0_r()
74 static inline u32 host1x_sync_syncpt_thresh_int_enable_cpu0_r(unsigned int id) host1x_sync_syncpt_thresh_int_enable_cpu0_r() argument
76 return 0xf20 + id * REGISTER_STRIDE; host1x_sync_syncpt_thresh_int_enable_cpu0_r()
78 #define HOST1X_SYNC_SYNCPT_THRESH_INT_ENABLE_CPU0(id) \
79 host1x_sync_syncpt_thresh_int_enable_cpu0_r(id) host1x_sync_cf_setup_r()
128 static inline u32 host1x_sync_mlock_owner_r(unsigned int id) host1x_sync_mlock_owner_r() argument
130 return 0x340 + id * REGISTER_STRIDE; host1x_sync_mlock_owner_r()
132 #define HOST1X_SYNC_MLOCK_OWNER(id) \
133 host1x_sync_mlock_owner_r(id) host1x_sync_mlock_owner_chid_f()
152 static inline u32 host1x_sync_syncpt_int_thresh_r(unsigned int id) host1x_sync_syncpt_int_thresh_r() argument
154 return 0x1380 + id * REGISTER_STRIDE; host1x_sync_syncpt_int_thresh_r()
156 #define HOST1X_SYNC_SYNCPT_INT_THRESH(id) \
157 host1x_sync_syncpt_int_thresh_r(id) host1x_sync_syncpt_base_r()
158 static inline u32 host1x_sync_syncpt_base_r(unsigned int id) host1x_sync_syncpt_base_r() argument
160 return 0x600 + id * REGISTER_STRIDE; host1x_sync_syncpt_base_r()
162 #define HOST1X_SYNC_SYNCPT_BASE(id) \
163 host1x_sync_syncpt_base_r(id) host1x_sync_syncpt_cpu_incr_r()
164 static inline u32 host1x_sync_syncpt_cpu_incr_r(unsigned int id) host1x_sync_syncpt_cpu_incr_r() argument
166 return 0xf60 + id * REGISTER_STRIDE; host1x_sync_syncpt_cpu_incr_r()
168 #define HOST1X_SYNC_SYNCPT_CPU_INCR(id) \
169 host1x_sync_syncpt_cpu_incr_r(id) host1x_sync_cbread_r()
H A Dsyncpt_hw.c31 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); syncpt_restore()
41 HOST1X_SYNC_SYNCPT_BASE(sp->id)); syncpt_restore_wait_base()
51 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); syncpt_read_wait_base()
65 live = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT(sp->id)); syncpt_load()
69 dev_err(host->dev, "%s failed: id=%u, min=%d, max=%d\n", syncpt_load()
70 __func__, sp->id, host1x_syncpt_read_min(sp), syncpt_load()
83 u32 reg_offset = sp->id / 32; syncpt_cpu_incr()
88 host1x_sync_writel(host, BIT_MASK(sp->id), syncpt_cpu_incr()
/linux-4.1.27/drivers/usb/core/
H A Dotg_whitelist.h51 struct usb_device_id *id = whitelist_table; is_targeted() local
66 for (id = whitelist_table; id->match_flags; id++) { is_targeted()
67 if ((id->match_flags & USB_DEVICE_ID_MATCH_VENDOR) && is_targeted()
68 id->idVendor != le16_to_cpu(dev->descriptor.idVendor)) is_targeted()
71 if ((id->match_flags & USB_DEVICE_ID_MATCH_PRODUCT) && is_targeted()
72 id->idProduct != le16_to_cpu(dev->descriptor.idProduct)) is_targeted()
75 /* No need to test id->bcdDevice_lo != 0, since 0 is never is_targeted()
77 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_LO) && is_targeted()
78 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) is_targeted()
81 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_HI) && is_targeted()
82 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) is_targeted()
85 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_CLASS) && is_targeted()
86 (id->bDeviceClass != dev->descriptor.bDeviceClass)) is_targeted()
89 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_SUBCLASS) && is_targeted()
90 (id->bDeviceSubClass != dev->descriptor.bDeviceSubClass)) is_targeted()
93 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_PROTOCOL) && is_targeted()
94 (id->bDeviceProtocol != dev->descriptor.bDeviceProtocol)) is_targeted()
/linux-4.1.27/sound/isa/ad1816a/
H A Dad1816a.c46 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable
59 module_param_array(id, charp, NULL, 0444);
60 MODULE_PARM_DESC(id, "ID string for ad1816a based soundcard.");
68 { .id = "ADS7150", .devs = { { .id = "ADS7150" }, { .id = "ADS7151" } } },
70 { .id = "ADS7180", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
72 { .id = "ADS7181", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
74 { .id = "AZT1022", .devs = { { .id = "AZT1018" }, { .id = "AZT2002" } } },
76 { .id = "LWC1061", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
78 { .id = "MDK1605", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
80 { .id = "SMM7180", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
82 { .id = "TER1112", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
84 { .id = "TER1112", .devs = { { .id = "TER1100" }, { .id = "TER1101" } } },
86 { .id = "TER1411", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } },
88 { .id = "" }
98 const struct pnp_card_device_id *id) snd_card_ad1816a_pnp()
103 pdev = pnp_request_card_device(card, id->devs[0].id, NULL); snd_card_ad1816a_pnp()
119 pdev = pnp_request_card_device(card, id->devs[1].id, NULL); snd_card_ad1816a_pnp()
147 index[dev], id[dev], THIS_MODULE, snd_card_ad1816a_probe()
222 const struct pnp_card_device_id *id) snd_ad1816a_pnp_detect()
230 res = snd_card_ad1816a_probe(dev, card, id); snd_ad1816a_pnp_detect()
97 snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, const struct pnp_card_device_id *id) snd_card_ad1816a_pnp() argument
221 snd_ad1816a_pnp_detect(struct pnp_card_link *card, const struct pnp_card_device_id *id) snd_ad1816a_pnp_detect() argument
/linux-4.1.27/drivers/clk/at91/
H A Dclk-peripheral.c27 #define PERIPHERAL_MASK(id) (1 << ((id) & PERIPHERAL_ID_MAX))
37 u32 id; member in struct:clk_peripheral
46 u32 id; member in struct:clk_sam9x5_peripheral
59 u32 id = periph->id; clk_peripheral_enable() local
61 if (id < PERIPHERAL_ID_MIN) clk_peripheral_enable()
63 if (id > PERIPHERAL_ID_MAX) clk_peripheral_enable()
65 pmc_write(pmc, offset, PERIPHERAL_MASK(id)); clk_peripheral_enable()
74 u32 id = periph->id; clk_peripheral_disable() local
76 if (id < PERIPHERAL_ID_MIN) clk_peripheral_disable()
78 if (id > PERIPHERAL_ID_MAX) clk_peripheral_disable()
80 pmc_write(pmc, offset, PERIPHERAL_MASK(id)); clk_peripheral_disable()
88 u32 id = periph->id; clk_peripheral_is_enabled() local
90 if (id < PERIPHERAL_ID_MIN) clk_peripheral_is_enabled()
92 if (id > PERIPHERAL_ID_MAX) clk_peripheral_is_enabled()
94 return !!(pmc_read(pmc, offset) & PERIPHERAL_MASK(id)); clk_peripheral_is_enabled()
105 const char *parent_name, u32 id) at91_clk_register_peripheral()
111 if (!pmc || !name || !parent_name || id > PERIPHERAL_ID_MAX) at91_clk_register_peripheral()
124 periph->id = id; at91_clk_register_peripheral()
165 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_enable()
168 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID) | clk_sam9x5_peripheral_enable()
180 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_disable()
183 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID) | clk_sam9x5_peripheral_disable()
193 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_is_enabled()
197 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID)); clk_sam9x5_peripheral_is_enabled()
212 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_recalc_rate()
216 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID)); clk_sam9x5_peripheral_recalc_rate()
241 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) clk_sam9x5_peripheral_round_rate()
282 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) { clk_sam9x5_peripheral_set_rate()
314 const char *parent_name, u32 id, at91_clk_register_sam9x5_peripheral()
334 periph->id = id; at91_clk_register_sam9x5_peripheral()
354 u32 id; of_at91_clk_periph_setup() local
369 if (of_property_read_u32(periphclknp, "reg", &id)) for_each_child_of_node()
372 if (id >= PERIPHERAL_MAX) for_each_child_of_node()
380 parent_name, id); for_each_child_of_node()
390 id, &range); for_each_child_of_node()
104 at91_clk_register_peripheral(struct at91_pmc *pmc, const char *name, const char *parent_name, u32 id) at91_clk_register_peripheral() argument
313 at91_clk_register_sam9x5_peripheral(struct at91_pmc *pmc, const char *name, const char *parent_name, u32 id, const struct clk_range *range) at91_clk_register_sam9x5_peripheral() argument
H A Dclk-system.c35 u8 id; member in struct:clk_system
38 static inline int is_pck(int id) is_pck() argument
40 return (id >= 8) && (id <= 15); is_pck()
56 u32 mask = 1 << sys->id; clk_system_prepare()
60 if (!is_pck(sys->id)) clk_system_prepare()
79 pmc_write(pmc, AT91_PMC_SCDR, 1 << sys->id); clk_system_unprepare()
87 if (!(pmc_read(pmc, AT91_PMC_SCSR) & (1 << sys->id))) clk_system_is_prepared()
90 if (!is_pck(sys->id)) clk_system_is_prepared()
93 return !!(pmc_read(pmc, AT91_PMC_SR) & (1 << sys->id)); clk_system_is_prepared()
104 const char *parent_name, u8 id, int irq) at91_clk_register_system()
111 if (!parent_name || id > SYSTEM_MAX_ID) at91_clk_register_system()
124 sys->id = id; at91_clk_register_system()
149 u32 id; of_at91_clk_sys_setup() local
160 if (of_property_read_u32(sysclknp, "reg", &id)) for_each_child_of_node()
166 if (is_pck(id)) for_each_child_of_node()
171 clk = at91_clk_register_system(pmc, name, parent_name, id, irq); for_each_child_of_node()
103 at91_clk_register_system(struct at91_pmc *pmc, const char *name, const char *parent_name, u8 id, int irq) at91_clk_register_system() argument
/linux-4.1.27/net/9p/
H A Dutil.c39 * @pool: idr to allocate tag id from
49 * p9_idpool_create - create a new per-connection id pool
69 * p9_idpool_destroy - create a new per-connection id pool
81 * p9_idpool_get - allocate numeric id from pool
104 p9_debug(P9_DEBUG_MUX, " id %d pool %p\n", i, p); p9_idpool_get()
110 * p9_idpool_put - release numeric id from pool
111 * @id: numeric id which is being released
112 * @p: pool to release id into
118 void p9_idpool_put(int id, struct p9_idpool *p) p9_idpool_put() argument
122 p9_debug(P9_DEBUG_MUX, " id %d pool %p\n", id, p); p9_idpool_put()
125 idr_remove(&p->pool, id); p9_idpool_put()
131 * p9_idpool_check - check if the specified id is available
132 * @id: id to check
136 int p9_idpool_check(int id, struct p9_idpool *p) p9_idpool_check() argument
138 return idr_find(&p->pool, id) != NULL; p9_idpool_check()
/linux-4.1.27/lib/
H A Didr.c11 * Small id to pointer translation service.
14 * by the id to obtain the pointer. The bitmap makes allocating
15 * a new id quick.
17 * You call it to allocate an id (an int) an associate with that id a
19 * id to a user for him to pass back at a later time. You then pass
20 * that id to this code and it returns your pointer.
172 static void idr_mark_full(struct idr_layer **pa, int id) idr_mark_full() argument
177 __set_bit(id & IDR_MASK, p->bitmap); idr_mark_full()
187 id = id >> IDR_BITS; idr_mark_full()
188 __set_bit((id & IDR_MASK), p->bitmap); idr_mark_full()
205 * sub_alloc - try to allocate an id without growing the tree depth
207 * @starting_id: id to start search at
212 * Allocate an id in range [@starting_id, INT_MAX] from @idp without
215 * the allocated id >= 0 if successful,
217 * -ENOSPC if the id space is exhausted,
225 int l, id, oid; sub_alloc() local
227 id = *starting_id; sub_alloc()
236 n = (id >> (IDR_BITS*l)) & IDR_MASK; sub_alloc()
241 oid = id; sub_alloc()
242 id = (id | ((1 << (IDR_BITS * l)) - 1)) + 1; sub_alloc()
245 if (id > idr_max(idp->layers)) { sub_alloc()
246 *starting_id = id; sub_alloc()
256 if (oid >> sh == id >> sh) sub_alloc()
263 id = ((id >> sh) ^ n ^ m) << sh; sub_alloc()
265 if ((id >= MAX_IDR_BIT) || (id < 0)) sub_alloc()
277 new->prefix = id & idr_layer_prefix_mask(new->layer); sub_alloc()
286 return id; sub_alloc()
294 int layers, v, id; idr_get_empty_slot() local
297 id = starting_id; idr_get_empty_slot()
309 * id is larger than the currently allocated space. idr_get_empty_slot()
311 while (id > idr_max(layers)) { idr_get_empty_slot()
341 new->prefix = id & idr_layer_prefix_mask(new->layer); idr_get_empty_slot()
348 v = sub_alloc(idp, &id, pa, gfp_mask, layer_idr); idr_get_empty_slot()
355 * @id and @pa are from a successful allocation from idr_get_empty_slot().
358 static void idr_fill_slot(struct idr *idr, void *ptr, int id, idr_fill_slot() argument
364 rcu_assign_pointer(pa[0]->ary[id & IDR_MASK], (struct idr_layer *)ptr); idr_fill_slot()
366 idr_mark_full(pa, id); idr_fill_slot()
388 * id = idr_alloc(idr, ptr, start, end, GFP_NOWAIT);
392 * if (id < 0)
433 * @ptr: pointer to be associated with the new id
434 * @start: the minimum id (inclusive)
435 * @end: the maximum id (exclusive, <= 0 for max)
438 * Allocate an id in [start, end) and associate it with @ptr. If no ID is
454 int id; idr_alloc() local
464 /* allocate id */ idr_alloc()
465 id = idr_get_empty_slot(idr, start, pa, gfp_mask, NULL); idr_alloc()
466 if (unlikely(id < 0)) idr_alloc()
467 return id; idr_alloc()
468 if (unlikely(id > max)) idr_alloc()
471 idr_fill_slot(idr, ptr, id, pa); idr_alloc()
472 return id; idr_alloc()
479 * @ptr: pointer to be associated with the new id
480 * @start: the minimum id (inclusive)
481 * @end: the maximum id (exclusive, <= 0 for max)
491 int id; idr_alloc_cyclic() local
493 id = idr_alloc(idr, ptr, max(start, idr->cur), end, gfp_mask); idr_alloc_cyclic()
494 if (id == -ENOSPC) idr_alloc_cyclic()
495 id = idr_alloc(idr, ptr, start, end, gfp_mask); idr_alloc_cyclic()
497 if (likely(id >= 0)) idr_alloc_cyclic()
498 idr->cur = id + 1; idr_alloc_cyclic()
499 return id; idr_alloc_cyclic()
503 static void idr_remove_warning(int id) idr_remove_warning() argument
505 WARN(1, "idr_remove called for id=%d which is not allocated.\n", id); idr_remove_warning()
508 static void sub_remove(struct idr *idp, int shift, int id) sub_remove() argument
520 n = (id >> shift) & IDR_MASK; sub_remove()
526 n = id & IDR_MASK; sub_remove()
542 idr_remove_warning(id); sub_remove()
546 * idr_remove - remove the given id and free its slot
548 * @id: unique key
550 void idr_remove(struct idr *idp, int id) idr_remove() argument
555 if (id < 0) idr_remove()
558 if (id > idr_max(idp->layers)) { idr_remove()
559 idr_remove_warning(id); idr_remove()
563 sub_remove(idp, (idp->layers - 1) * IDR_BITS, id); idr_remove()
585 int n, id, max; __idr_remove_all() local
596 id = 0; __idr_remove_all()
597 while (id >= 0 && id <= max) { __idr_remove_all()
601 p = p->ary[(id >> n) & IDR_MASK]; __idr_remove_all()
605 bt_mask = id; __idr_remove_all()
606 id += 1 << n; __idr_remove_all()
608 while (n < fls(id ^ bt_mask)) { __idr_remove_all()
622 * Free all id mappings and all idp_layers. After this function, @idp is
629 * free up the id mappings and cached idr_layers.
642 void *idr_find_slowpath(struct idr *idp, int id) idr_find_slowpath() argument
647 if (id < 0) idr_find_slowpath()
655 if (id > idr_max(p->layer + 1)) idr_find_slowpath()
662 p = rcu_dereference_raw(p->ary[(id >> n) & IDR_MASK]); idr_find_slowpath()
676 * registered, passing the id, the pointer and the data pointer passed
687 int (*fn)(int id, void *p, void *data), void *data) idr_for_each()
689 int n, id, max, error = 0; idr_for_each() local
698 id = 0; idr_for_each()
699 while (id >= 0 && id <= max) { idr_for_each()
703 p = rcu_dereference_raw(p->ary[(id >> n) & IDR_MASK]); idr_for_each()
708 error = fn(id, (void *)p, data); idr_for_each()
713 id += 1 << n; idr_for_each()
714 while (n < fls(id)) { idr_for_each()
725 * idr_get_next - lookup next object of id to given id.
729 * Returns pointer to registered object with id, which is next number to
730 * given id. After being looked up, *@nextidp will be updated for the next
740 int id = *nextidp; idr_get_next() local
750 while (id >= 0 && id <= max) { idr_get_next()
754 p = rcu_dereference_raw(p->ary[(id >> n) & IDR_MASK]); idr_get_next()
759 *nextidp = id; idr_get_next()
765 * idr_for_each(), @id isn't guaranteed to be aligned to idr_get_next()
770 id = round_up(id + 1, 1 << n); idr_get_next()
771 while (n < fls(id)) { idr_get_next()
782 * idr_replace - replace pointer for given id
784 * @ptr: pointer you want associated with the id
785 * @id: lookup key
787 * Replace the pointer registered with an id and return the old value.
788 * A %-ENOENT return indicates that @id was not found.
789 * A %-EINVAL return indicates that @id was not within valid constraints.
793 void *idr_replace(struct idr *idp, void *ptr, int id) idr_replace() argument
798 if (id < 0) idr_replace()
805 if (id > idr_max(p->layer + 1)) idr_replace()
810 p = p->ary[(id >> n) & IDR_MASK]; idr_replace()
814 n = id & IDR_MASK; idr_replace()
845 static int idr_has_entry(int id, void *p, void *data) idr_has_entry() argument
860 * This is id allocator without id -> pointer translation. Memory
861 * usage is much lower than full blown idr because each id only
918 * ida_get_new_above - allocate new ID above or equal to a start id
920 * @starting_id: id to start search at
939 int t, id; ida_get_new_above() local
980 id = idr_id * IDA_BITMAP_BITS + t; ida_get_new_above()
981 if (id >= MAX_IDR_BIT) ida_get_new_above()
988 *p_id = id; ida_get_new_above()
1008 * @id: ID to free
1010 void ida_remove(struct ida *ida, int id) ida_remove() argument
1014 int idr_id = id / IDA_BITMAP_BITS; ida_remove()
1015 int offset = id % IDA_BITMAP_BITS; ida_remove()
1051 WARN(1, "ida_remove called for id=%d which is not allocated.\n", id); ida_remove()
1067 * ida_simple_get - get a new id.
1069 * @start: the minimum id (inclusive, < 0x8000000)
1070 * @end: the maximum id (exclusive, < 0x8000000 or 0)
1073 * Allocates an id in the range start <= id < end, or returns -ENOSPC.
1076 * Use ida_simple_remove() to get rid of an id.
1081 int ret, id; ida_simple_get() local
1100 ret = ida_get_new_above(ida, start, &id); ida_simple_get()
1102 if (id > max) { ida_simple_get()
1103 ida_remove(ida, id); ida_simple_get()
1106 ret = id; ida_simple_get()
1119 * ida_simple_remove - remove an allocated id.
1121 * @id: the id returned by ida_simple_get.
1123 void ida_simple_remove(struct ida *ida, unsigned int id) ida_simple_remove() argument
1127 BUG_ON((int)id < 0); ida_simple_remove()
1129 ida_remove(ida, id); ida_simple_remove()
686 idr_for_each(struct idr *idp, int (*fn)(int id, void *p, void *data), void *data) idr_for_each() argument
/linux-4.1.27/arch/m68k/emu/
H A Dnatfeat.c68 long id = nf_get_id("NF_SHUTDOWN"); nf_poweroff() local
70 if (id) nf_poweroff()
71 nf_call(id); nf_poweroff()
76 unsigned long id, version; nf_init() local
79 id = nf_get_id("NF_VERSION"); nf_init()
80 if (!id) nf_init()
82 version = nf_call(id); nf_init()
84 id = nf_get_id("NF_NAME"); nf_init()
85 if (!id) nf_init()
87 nf_call(id, virt_to_phys(buf), 256); nf_init()
/linux-4.1.27/net/ipv6/netfilter/
H A Dnf_nat_proto_icmpv6.c28 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && icmpv6_in_range()
29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); icmpv6_in_range()
39 static u16 id; icmpv6_unique_tuple() local
43 range_size = ntohs(range->max_proto.icmp.id) - icmpv6_unique_tuple()
44 ntohs(range->min_proto.icmp.id) + 1; icmpv6_unique_tuple()
49 for (i = 0; ; ++id) { icmpv6_unique_tuple()
50 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + icmpv6_unique_tuple()
51 (id % range_size)); icmpv6_unique_tuple()
76 tuple->src.u.icmp.id, 0); icmpv6_manip_pkt()
77 hdr->icmp6_identifier = tuple->src.u.icmp.id; icmpv6_manip_pkt()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfeature.c58 int id; brcmf_feat_debugfs_read() local
61 for (id = 0; id < BRCMF_FEAT_LAST; id++) brcmf_feat_debugfs_read()
62 if (feats & BIT(id)) brcmf_feat_debugfs_read()
63 seq_printf(seq, "\t%s\n", brcmf_feat_names[id]); brcmf_feat_debugfs_read()
65 for (id = 0; id < BRCMF_FEAT_QUIRK_LAST; id++) brcmf_feat_debugfs_read()
66 if (quirks & BIT(id)) brcmf_feat_debugfs_read()
67 seq_printf(seq, "\t%s\n", brcmf_quirk_names[id]); brcmf_feat_debugfs_read()
81 * @id: feature id.
85 enum brcmf_feat_id id, char *name) brcmf_feat_iovar_int_get()
92 brcmf_dbg(INFO, "enabling feature: %s\n", brcmf_feat_names[id]); brcmf_feat_iovar_int_get()
93 ifp->drvr->feat_flags |= BIT(id); brcmf_feat_iovar_int_get()
96 brcmf_feat_names[id], err); brcmf_feat_iovar_int_get()
104 * @id: feature id.
108 enum brcmf_feat_id id, char *name, u32 val) brcmf_feat_iovar_int_set()
114 brcmf_dbg(INFO, "enabling feature: %s\n", brcmf_feat_names[id]); brcmf_feat_iovar_int_set()
115 ifp->drvr->feat_flags |= BIT(id); brcmf_feat_iovar_int_set()
118 brcmf_feat_names[id], err); brcmf_feat_iovar_int_set()
148 bool brcmf_feat_is_enabled(struct brcmf_if *ifp, enum brcmf_feat_id id) brcmf_feat_is_enabled() argument
150 return (ifp->drvr->feat_flags & BIT(id)); brcmf_feat_is_enabled()
84 brcmf_feat_iovar_int_get(struct brcmf_if *ifp, enum brcmf_feat_id id, char *name) brcmf_feat_iovar_int_get() argument
107 brcmf_feat_iovar_int_set(struct brcmf_if *ifp, enum brcmf_feat_id id, char *name, u32 val) brcmf_feat_iovar_int_set() argument
/linux-4.1.27/drivers/connector/
H A Dcn_queue.c36 struct cb_id *id, cn_queue_alloc_callback_entry()
53 snprintf(cbq->id.name, sizeof(cbq->id.name), "%s", name); cn_queue_alloc_callback_entry()
54 memcpy(&cbq->id.id, id, sizeof(struct cb_id)); cn_queue_alloc_callback_entry()
74 struct cb_id *id, cn_queue_add_callback()
81 cbq = cn_queue_alloc_callback_entry(dev, name, id, callback); cn_queue_add_callback()
87 if (cn_cb_equal(&__cbq->id.id, id)) { cn_queue_add_callback()
102 cbq->group = cbq->id.id.idx; cn_queue_add_callback()
107 void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id) cn_queue_del_callback() argument
114 if (cn_cb_equal(&cbq->id.id, id)) { cn_queue_del_callback()
35 cn_queue_alloc_callback_entry(struct cn_queue_dev *dev, const char *name, struct cb_id *id, void (*callback)(struct cn_msg *, struct netlink_skb_parms *)) cn_queue_alloc_callback_entry() argument
73 cn_queue_add_callback(struct cn_queue_dev *dev, const char *name, struct cb_id *id, void (*callback)(struct cn_msg *, struct netlink_skb_parms *)) cn_queue_add_callback() argument
/linux-4.1.27/drivers/clk/mmp/
H A Dclk.c43 if (clks[i].id) mmp_register_fixed_rate_clks()
44 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_rate_clks()
65 if (clks[i].id) mmp_register_fixed_factor_clks()
66 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_factor_clks()
91 if (clks[i].id) mmp_register_general_gate_clks()
92 unit->clk_table[clks[i].id] = clk; mmp_register_general_gate_clks()
119 if (clks[i].id) mmp_register_gate_clks()
120 unit->clk_table[clks[i].id] = clk; mmp_register_gate_clks()
147 if (clks[i].id) mmp_register_mux_clks()
148 unit->clk_table[clks[i].id] = clk; mmp_register_mux_clks()
174 if (clks[i].id) mmp_register_div_clks()
175 unit->clk_table[clks[i].id] = clk; mmp_register_div_clks()
179 void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id, mmp_clk_add() argument
183 pr_err("CLK %d has invalid pointer %p\n", id, clk); mmp_clk_add()
186 if (id > unit->nr_clks) { mmp_clk_add()
187 pr_err("CLK %d is invalid\n", id); mmp_clk_add()
191 unit->clk_table[id] = clk; mmp_clk_add()
/linux-4.1.27/sound/firewire/bebob/
H A Dbebob_terratec.c15 phase88_rack_clk_src_get(struct snd_bebob *bebob, unsigned int *id) phase88_rack_clk_src_get() argument
28 *id = 0; phase88_rack_clk_src_get()
30 *id = 1; phase88_rack_clk_src_get()
32 *id = 2; phase88_rack_clk_src_get()
41 phase24_series_clk_src_get(struct snd_bebob *bebob, unsigned int *id) phase24_series_clk_src_get() argument
43 return avc_audio_get_selector(bebob->unit, 0, 4, id); phase24_series_clk_src_get()
/linux-4.1.27/sound/pci/au88x0/
H A Dau88x0_mixer.c15 struct snd_ctl_elem_id id; remove_ctl() local
16 memset(&id, 0, sizeof(id)); remove_ctl()
17 strcpy(id.name, name); remove_ctl()
18 id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; remove_ctl()
19 return snd_ctl_remove_id(card, &id); remove_ctl()
/linux-4.1.27/sound/pci/ice1712/
H A Dwtm.c82 int id, idx, change; stac9460_dac_mute_all() local
85 for (id = 0; id < 7; id++) { stac9460_dac_mute_all()
86 if (*change_mask & (0x01 << id)) { stac9460_dac_mute_all()
87 if (id == 0) stac9460_dac_mute_all()
90 idx = STAC946X_LF_VOLUME - 1 + id; stac9460_dac_mute_all()
96 *change_mask = *change_mask | (0x01 << id); stac9460_dac_mute_all()
98 *change_mask = *change_mask & ~(0x01 << id); stac9460_dac_mute_all()
104 for (id = 0; id < 3; id++) { stac9460_dac_mute_all()
105 if (*change_mask & (0x01 << (id + 7))) { stac9460_dac_mute_all()
106 if (id == 0) stac9460_dac_mute_all()
109 idx = STAC946X_LF_VOLUME - 1 + id; stac9460_dac_mute_all()
115 *change_mask = *change_mask | (0x01 << id); stac9460_dac_mute_all()
117 *change_mask = *change_mask & ~(0x01 << id); stac9460_dac_mute_all()
133 int idx, id; stac9460_dac_mute_get() local
139 id = 0; stac9460_dac_mute_get()
141 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_mute_get()
142 idx = id + STAC946X_LF_VOLUME; stac9460_dac_mute_get()
144 if (id < 6) stac9460_dac_mute_get()
159 int id, idx; stac9460_dac_mute_put() local
173 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_mute_put()
174 idx = id + STAC946X_LF_VOLUME; stac9460_dac_mute_put()
175 if (id < 6) stac9460_dac_mute_put()
183 if (id < 6) stac9460_dac_mute_put()
209 int idx, id; stac9460_dac_vol_get() local
214 id = 0; stac9460_dac_vol_get()
216 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_vol_get()
217 idx = id + STAC946X_LF_VOLUME; stac9460_dac_vol_get()
219 if (id < 6) stac9460_dac_vol_get()
231 int idx, id; stac9460_dac_vol_put() local
246 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_vol_put()
247 idx = id + STAC946X_LF_VOLUME; stac9460_dac_vol_put()
249 if (id < 6) stac9460_dac_vol_put()
256 if (id < 6) stac9460_dac_vol_put()
277 int i, id; stac9460_adc_mute_get() local
279 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_mute_get()
280 if (id == 0) { stac9460_adc_mute_get()
299 int i, reg, id; stac9460_adc_mute_put() local
302 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_mute_put()
303 if (id == 0) { stac9460_adc_mute_put()
344 int i, reg, id; stac9460_adc_vol_get() local
347 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_vol_get()
348 if (id == 0) { stac9460_adc_vol_get()
368 int i, reg, id; stac9460_adc_vol_put() local
372 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_vol_put()
373 if (id == 0) { stac9460_adc_vol_put()
414 int id; stac9460_mic_sw_get() local
416 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_mic_sw_get()
417 if (id == 0) stac9460_mic_sw_get()
430 int change, id; stac9460_mic_sw_put() local
432 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_mic_sw_put()
433 if (id == 0) stac9460_mic_sw_put()
440 if (id == 0) stac9460_mic_sw_put()
/linux-4.1.27/drivers/s390/cio/
H A Didset.h17 void idset_sch_add(struct idset *set, struct subchannel_id id);
18 void idset_sch_del(struct idset *set, struct subchannel_id id);
20 int idset_sch_contains(struct idset *set, struct subchannel_id id);
H A Didset.c46 static inline void idset_add(struct idset *set, int ssid, int id) idset_add() argument
48 set_bit(ssid * set->num_id + id, set->bitmap); idset_add()
51 static inline void idset_del(struct idset *set, int ssid, int id) idset_del() argument
53 clear_bit(ssid * set->num_id + id, set->bitmap); idset_del()
56 static inline int idset_contains(struct idset *set, int ssid, int id) idset_contains() argument
58 return test_bit(ssid * set->num_id + id, set->bitmap); idset_contains()
61 static inline int idset_get_first(struct idset *set, int *ssid, int *id) idset_get_first() argument
69 *id = bitnum % set->num_id; idset_get_first()
/linux-4.1.27/arch/arm/mach-imx/
H A Ddevices-imx27.h32 #define imx27_add_imx_i2c(id, pdata) \
33 imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata)
40 #define imx27_add_imx_ssi(id, pdata) \
41 imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata)
44 #define imx27_add_imx_uart(id, pdata) \
45 imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata)
65 #define imx27_add_mxc_ehci_hs(id, pdata) \
66 imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata)
69 #define imx27_add_mxc_mmc(id, pdata) \
70 imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata)
81 #define imx27_add_cspi(id, pdata) \
82 imx_add_spi_imx(&imx27_cspi_data[id], pdata)
H A Ddevices-imx31.h20 #define imx31_add_imx_i2c(id, pdata) \
21 imx_add_imx_i2c(&imx31_imx_i2c_data[id], pdata)
31 #define imx31_add_imx_ssi(id, pdata) \
32 imx_add_imx_ssi(&imx31_imx_ssi_data[id], pdata)
35 #define imx31_add_imx_uart(id, pdata) \
36 imx_add_imx_uart_1irq(&imx31_imx_uart_data[id], pdata)
55 #define imx31_add_mxc_ehci_hs(id, pdata) \
56 imx_add_mxc_ehci(&imx31_mxc_ehci_hs_data[id - 1], pdata)
59 #define imx31_add_mxc_mmc(id, pdata) \
60 imx_add_mxc_mmc(&imx31_mxc_mmc_data[id], pdata)
75 #define imx31_add_cspi(id, pdata) \
76 imx_add_spi_imx(&imx31_cspi_data[id], pdata)
H A Ddevices-imx35.h20 #define imx35_add_flexcan(id) \
21 imx_add_flexcan(&imx35_flexcan_data[id])
30 #define imx35_add_imx_i2c(id, pdata) \
31 imx_add_imx_i2c(&imx35_imx_i2c_data[id], pdata)
41 #define imx35_add_imx_ssi(id, pdata) \
42 imx_add_imx_ssi(&imx35_imx_ssi_data[id], pdata)
45 #define imx35_add_imx_uart(id, pdata) \
46 imx_add_imx_uart_1irq(&imx35_imx_uart_data[id], pdata)
79 #define imx35_add_sdhci_esdhc_imx(id, pdata) \
80 imx_add_sdhci_esdhc_imx(&imx35_sdhci_esdhc_imx_data[id], pdata)
83 #define imx35_add_cspi(id, pdata) \
84 imx_add_spi_imx(&imx35_cspi_data[id], pdata)
H A Ddevices-imx1.h20 #define imx1_add_imx_uart(id, pdata) \
21 imx_add_imx_uart_3irq(&imx1_imx_uart_data[id], pdata)
26 #define imx1_add_cspi(id, pdata) \
27 imx_add_spi_imx(&imx1_cspi_data[id], pdata)
H A Ddevices-imx21.h32 #define imx21_add_imx_ssi(id, pdata) \
33 imx_add_imx_ssi(&imx21_imx_ssi_data[id], pdata)
36 #define imx21_add_imx_uart(id, pdata) \
37 imx_add_imx_uart_1irq(&imx21_imx_uart_data[id], pdata)
44 #define imx21_add_mxc_mmc(id, pdata) \
45 imx_add_mxc_mmc(&imx21_mxc_mmc_data[id], pdata)
56 #define imx21_add_cspi(id, pdata) \
57 imx_add_spi_imx(&imx21_cspi_data[id], pdata)
/linux-4.1.27/drivers/xen/xen-pciback/
H A Dconf_space_quirks.c16 match_one_device(const struct pci_device_id *id, const struct pci_dev *dev) match_one_device() argument
18 if ((id->vendor == PCI_ANY_ID || id->vendor == dev->vendor) && match_one_device()
19 (id->device == PCI_ANY_ID || id->device == dev->device) && match_one_device()
20 (id->subvendor == PCI_ANY_ID || match_one_device()
21 id->subvendor == dev->subsystem_vendor) && match_one_device()
22 (id->subdevice == PCI_ANY_ID || match_one_device()
23 id->subdevice == dev->subsystem_device) && match_one_device()
24 !((id->class ^ dev->class) & id->class_mask)) match_one_device()
25 return id; match_one_device()
/linux-4.1.27/drivers/macintosh/
H A Dadbhid.c211 int id; member in struct:adbhid
236 static void init_trackpad(int id);
237 static void init_trackball(int id);
238 static void init_turbomouse(int id);
239 static void init_microspeed(int id);
240 static void init_ms_a3(int id);
267 int id = (data[0] >> 4) & 0x0f; adbhid_keyboard_input() local
269 if (!adbhid[id]) { adbhid_keyboard_input()
271 id, data[0], data[1], data[2], data[3]); adbhid_keyboard_input()
278 adbhid_input_keycode(id, data[1], 0); adbhid_keyboard_input()
280 adbhid_input_keycode(id, data[2], 0); adbhid_keyboard_input()
284 adbhid_input_keycode(int id, int scancode, int repeat) adbhid_input_keycode() argument
286 struct adbhid *ahid = adbhid[id]; adbhid_input_keycode()
394 key = adbhid[id]->keycode[keycode]; adbhid_input_keycode()
396 input_report_key(adbhid[id]->input, key, !up_flag); adbhid_input_keycode()
397 input_sync(adbhid[id]->input); adbhid_input_keycode()
407 int id = (data[0] >> 4) & 0x0f; adbhid_mouse_input() local
409 if (!adbhid[id]) { adbhid_mouse_input()
410 printk(KERN_ERR "ADB HID on ID %d not yet registered\n", id); adbhid_mouse_input()
458 switch (adbhid[id]->mouse_kind) adbhid_mouse_input()
488 input_report_key(adbhid[id]->input, BTN_LEFT, !((data[1] >> 7) & 1)); adbhid_mouse_input()
489 input_report_key(adbhid[id]->input, BTN_MIDDLE, !((data[2] >> 7) & 1)); adbhid_mouse_input()
491 if (nb >= 4 && adbhid[id]->mouse_kind != ADBMOUSE_TRACKPAD) adbhid_mouse_input()
492 input_report_key(adbhid[id]->input, BTN_RIGHT, !((data[3] >> 7) & 1)); adbhid_mouse_input()
494 input_report_rel(adbhid[id]->input, REL_X, adbhid_mouse_input()
496 input_report_rel(adbhid[id]->input, REL_Y, adbhid_mouse_input()
499 input_sync(adbhid[id]->input); adbhid_mouse_input()
505 int id = (data[0] >> 4) & 0x0f; adbhid_buttons_input() local
507 if (!adbhid[id]) { adbhid_buttons_input()
508 printk(KERN_ERR "ADB HID on ID %d not yet registered\n", id); adbhid_buttons_input()
512 switch (adbhid[id]->original_handler_id) { adbhid_buttons_input()
520 input_report_key(adbhid[id]->input, KEY_SOUND, down); adbhid_buttons_input()
524 input_report_key(adbhid[id]->input, KEY_MUTE, down); adbhid_buttons_input()
528 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); adbhid_buttons_input()
532 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); adbhid_buttons_input()
554 input_report_key(adbhid[id]->input, KEY_MUTE, down); adbhid_buttons_input()
558 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); adbhid_buttons_input()
562 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); adbhid_buttons_input()
566 input_report_key(adbhid[id]->input, KEY_EJECTCD, down); adbhid_buttons_input()
574 input_report_key(adbhid[id]->input, KEY_BRIGHTNESSDOWN, down); adbhid_buttons_input()
582 input_report_key(adbhid[id]->input, KEY_BRIGHTNESSUP, down); adbhid_buttons_input()
586 input_report_key(adbhid[id]->input, KEY_SWITCHVIDEOMODE, down); adbhid_buttons_input()
590 input_report_key(adbhid[id]->input, KEY_KBDILLUMTOGGLE, down); adbhid_buttons_input()
594 input_report_key(adbhid[id]->input, KEY_KBDILLUMDOWN, down); adbhid_buttons_input()
602 input_report_key(adbhid[id]->input, KEY_KBDILLUMUP, down); adbhid_buttons_input()
625 input_sync(adbhid[id]->input); adbhid_buttons_input()
694 real_leds(leds, adbhid->id); adbhid_kbd_event()
710 if (ahid && ahid->id == ADB_KEYBOARD) adbhid_kbd_capslock_remember()
753 adbhid_input_register(int id, int default_id, int original_handler_id, adbhid_input_register() argument
761 if (adbhid[id]) { adbhid_input_register()
762 printk(KERN_ERR "Trying to reregister ADB HID on ID %d\n", id); adbhid_input_register()
766 adbhid[id] = hid = kzalloc(sizeof(struct adbhid), GFP_KERNEL); adbhid_input_register()
773 sprintf(hid->phys, "adb%d:%d.%02x/input", id, default_id, original_handler_id); adbhid_input_register()
776 hid->id = default_id; adbhid_input_register()
784 input_dev->id.bustype = BUS_ADB; adbhid_input_register()
785 input_dev->id.vendor = 0x0001; adbhid_input_register()
786 input_dev->id.product = (id << 12) | (default_id << 8) | original_handler_id; adbhid_input_register()
787 input_dev->id.version = 0x0100; adbhid_input_register()
805 input_dev->id.version = ADB_KEYBOARD_UNKNOWN; adbhid_input_register()
812 input_dev->id.version = ADB_KEYBOARD_ANSI; adbhid_input_register()
819 input_dev->id.version = ADB_KEYBOARD_ISO; adbhid_input_register()
828 input_dev->id.version = ADB_KEYBOARD_JIS; adbhid_input_register()
912 adbhid[id] = NULL; adbhid_input_register()
916 static void adbhid_input_unregister(int id) adbhid_input_unregister() argument
918 input_unregister_device(adbhid[id]->input); adbhid_input_unregister()
919 kfree(adbhid[id]->keycode); adbhid_input_unregister()
920 kfree(adbhid[id]); adbhid_input_unregister()
921 adbhid[id] = NULL; adbhid_input_unregister()
926 adbhid_input_reregister(int id, int default_id, int org_handler_id, adbhid_input_reregister() argument
929 if (adbhid[id]) { adbhid_input_reregister()
930 if (adbhid[id]->input->id.product != adbhid_input_reregister()
931 ((id << 12)|(default_id << 8)|org_handler_id)) { adbhid_input_reregister()
932 adbhid_input_unregister(id); adbhid_input_reregister()
933 adbhid_input_register(id, default_id, org_handler_id, adbhid_input_reregister()
937 adbhid_input_register(id, default_id, org_handler_id, adbhid_input_reregister()
939 return 1<<id; adbhid_input_reregister()
963 int id = keyboard_ids.id[i]; adbhid_probe() local
965 adb_get_infos(id, &default_id, &org_handler_id); adbhid_probe()
969 ADB_WRITEREG(id, KEYB_LEDREG), 0xff, 0xff); adbhid_probe()
975 if (adb_try_handler_change(id, 5)) adbhid_probe()
976 printk("ADB keyboard at %d, handler set to 5\n", id); adbhid_probe()
979 if (adb_try_handler_change(id, 3)) adbhid_probe()
980 printk("ADB keyboard at %d, handler set to 3\n", id); adbhid_probe()
982 printk("ADB keyboard at %d, handler 1\n", id); adbhid_probe()
984 adb_get_infos(id, &default_id, &cur_handler_id); adbhid_probe()
985 reg |= adbhid_input_reregister(id, default_id, org_handler_id, adbhid_probe()
990 int id = buttons_ids.id[i]; adbhid_probe() local
992 adb_get_infos(id, &default_id, &org_handler_id); adbhid_probe()
993 reg |= adbhid_input_reregister(id, default_id, org_handler_id, adbhid_probe()
1000 int id = mouse_ids.id[i]; adbhid_probe() local
1003 adb_get_infos(id, &default_id, &org_handler_id); adbhid_probe()
1005 if (adb_try_handler_change(id, 4)) { adbhid_probe()
1006 printk("ADB mouse at %d, handler set to 4", id); adbhid_probe()
1009 else if (adb_try_handler_change(id, 0x2F)) { adbhid_probe()
1010 printk("ADB mouse at %d, handler set to 0x2F", id); adbhid_probe()
1013 else if (adb_try_handler_change(id, 0x42)) { adbhid_probe()
1014 printk("ADB mouse at %d, handler set to 0x42", id); adbhid_probe()
1017 else if (adb_try_handler_change(id, 0x66)) { adbhid_probe()
1018 printk("ADB mouse at %d, handler set to 0x66", id); adbhid_probe()
1021 else if (adb_try_handler_change(id, 0x5F)) { adbhid_probe()
1022 printk("ADB mouse at %d, handler set to 0x5F", id); adbhid_probe()
1025 else if (adb_try_handler_change(id, 3)) { adbhid_probe()
1026 printk("ADB mouse at %d, handler set to 3", id); adbhid_probe()
1029 else if (adb_try_handler_change(id, 2)) { adbhid_probe()
1030 printk("ADB mouse at %d, handler set to 2", id); adbhid_probe()
1034 printk("ADB mouse at %d, handler 1", id); adbhid_probe()
1040 init_microspeed(id); adbhid_probe()
1042 init_ms_a3(id); adbhid_probe()
1051 ADB_READREG(id, 1)); adbhid_probe()
1057 init_trackball(id); adbhid_probe()
1063 init_trackpad(id); adbhid_probe()
1069 init_turbomouse(id); adbhid_probe()
1074 if (adb_try_handler_change(id, 0x42)) { adbhid_probe()
1075 printk("\nADB MacAlly 2-button mouse at %d, handler set to 0x42", id); adbhid_probe()
1082 adb_get_infos(id, &default_id, &cur_handler_id); adbhid_probe()
1083 reg |= adbhid_input_reregister(id, default_id, org_handler_id, adbhid_probe()
1090 init_trackpad(int id) init_trackpad() argument
1098 ADB_READREG(id,1)); init_trackpad()
1106 ADB_WRITEREG(id,1), init_trackpad()
1117 ADB_WRITEREG(id,2), init_trackpad()
1128 ADB_WRITEREG(id,1), init_trackpad()
1139 adb_request(&req, NULL, ADBREQ_SYNC, 1, ADB_FLUSH(id)); init_trackpad()
1144 init_trackball(int id) init_trackball() argument
1151 ADB_WRITEREG(id,1), 00,0x81); init_trackball()
1154 ADB_WRITEREG(id,1), 01,0x81); init_trackball()
1157 ADB_WRITEREG(id,1), 02,0x81); init_trackball()
1160 ADB_WRITEREG(id,1), 03,0x38); init_trackball()
1163 ADB_WRITEREG(id,1), 00,0x81); init_trackball()
1166 ADB_WRITEREG(id,1), 01,0x81); init_trackball()
1169 ADB_WRITEREG(id,1), 02,0x81); init_trackball()
1172 ADB_WRITEREG(id,1), 03,0x38); init_trackball()
1176 init_turbomouse(int id) init_turbomouse() argument
1182 adb_request(&req, NULL, ADBREQ_SYNC, 1, ADB_FLUSH(id)); init_turbomouse()
1212 init_microspeed(int id) init_microspeed() argument
1218 adb_request(&req, NULL, ADBREQ_SYNC, 1, ADB_FLUSH(id)); init_microspeed()
1241 ADB_WRITEREG(id,1), init_microspeed()
1248 adb_request(&req, NULL, ADBREQ_SYNC, 1, ADB_FLUSH(id)); init_microspeed()
1252 init_ms_a3(int id) init_ms_a3() argument
1258 ADB_WRITEREG(id, 0x2), init_ms_a3()
1262 adb_request(&req, NULL, ADBREQ_SYNC, 1, ADB_FLUSH(id)); init_ms_a3()
/linux-4.1.27/arch/x86/include/asm/
H A Dx2apic.h29 static unsigned int x2apic_get_apic_id(unsigned long id) x2apic_get_apic_id() argument
31 return id; x2apic_get_apic_id()
34 static unsigned long x2apic_set_apic_id(unsigned int id) x2apic_set_apic_id() argument
36 return id; x2apic_set_apic_id()
/linux-4.1.27/arch/mips/ralink/
H A Dreset.c25 unsigned long id) ralink_assert_device()
29 if (id < 8) ralink_assert_device()
33 val |= BIT(id); ralink_assert_device()
40 unsigned long id) ralink_deassert_device()
44 if (id < 8) ralink_deassert_device()
48 val &= ~BIT(id); ralink_deassert_device()
55 unsigned long id) ralink_reset_device()
57 ralink_assert_device(rcdev, id); ralink_reset_device()
58 return ralink_deassert_device(rcdev, id); ralink_reset_device()
24 ralink_assert_device(struct reset_controller_dev *rcdev, unsigned long id) ralink_assert_device() argument
39 ralink_deassert_device(struct reset_controller_dev *rcdev, unsigned long id) ralink_deassert_device() argument
54 ralink_reset_device(struct reset_controller_dev *rcdev, unsigned long id) ralink_reset_device() argument
/linux-4.1.27/arch/arm/plat-samsung/
H A Ddev-uart.c23 .id = 0,
27 .id = 1,
31 .id = 2,
35 .id = 3,
/linux-4.1.27/arch/arm/mach-at91/
H A Dsam9_smc.c22 #define AT91_SMC_CS(id, n) (smc_base_addr[id] + ((n) * 0x10))
34 void sam9_smc_write_mode(int id, int cs, sam9_smc_write_mode() argument
37 sam9_smc_cs_write_mode(AT91_SMC_CS(id, cs), config); sam9_smc_write_mode()
68 void sam9_smc_configure(int id, int cs, sam9_smc_configure() argument
71 sam9_smc_cs_configure(AT91_SMC_CS(id, cs), config); sam9_smc_configure()
84 void sam9_smc_read_mode(int id, int cs, sam9_smc_read_mode() argument
87 sam9_smc_cs_read_mode(AT91_SMC_CS(id, cs), config); sam9_smc_read_mode()
122 void sam9_smc_read(int id, int cs, struct sam9_smc_config *config) sam9_smc_read() argument
124 sam9_smc_cs_read(AT91_SMC_CS(id, cs), config); sam9_smc_read()
127 void __init at91sam9_ioremap_smc(int id, u32 addr) at91sam9_ioremap_smc() argument
129 if (id > 1) { at91sam9_ioremap_smc()
130 pr_warn("%s: id > 2\n", __func__); at91sam9_ioremap_smc()
133 smc_base_addr[id] = ioremap(addr, 512); at91sam9_ioremap_smc()
134 if (!smc_base_addr[id]) at91sam9_ioremap_smc()
135 pr_warn("Impossible to ioremap smc.%d 0x%x\n", id, addr); at91sam9_ioremap_smc()
/linux-4.1.27/drivers/pnp/
H A Dcard.c23 while (*drv_id->id) { match_card()
24 if (compare_pnp_id(card->id, drv_id->id)) { match_card()
32 !*drv_id->devs[i].id) match_card()
36 if (compare_pnp_id(dev->id, card_for_each_dev()
37 drv_id->devs[i].id)) { card_for_each_dev()
72 const struct pnp_card_device_id *id; card_probe() local
78 id = match_card(drv, card); card_probe()
79 if (!id) card_probe()
89 if (drv->probe(clink, id) >= 0) card_probe()
102 * pnp_add_card_id - adds an EISA id to the specified card
103 * @id: pointer to a pnp_id structure
106 static struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id) pnp_add_card_id() argument
114 dev_id->id[0] = id[0]; pnp_add_card_id()
115 dev_id->id[1] = id[1]; pnp_add_card_id()
116 dev_id->id[2] = id[2]; pnp_add_card_id()
117 dev_id->id[3] = tolower(id[3]); pnp_add_card_id()
118 dev_id->id[4] = tolower(id[4]); pnp_add_card_id()
119 dev_id->id[5] = tolower(id[5]); pnp_add_card_id()
120 dev_id->id[6] = tolower(id[6]); pnp_add_card_id()
121 dev_id->id[7] = '\0'; pnp_add_card_id()
124 ptr = card->id; pnp_add_card_id()
130 card->id = dev_id; pnp_add_card_id()
137 struct pnp_id *id; pnp_free_card_ids() local
140 id = card->id; pnp_free_card_ids()
141 while (id) { pnp_free_card_ids()
142 next = id->next; pnp_free_card_ids()
143 kfree(id); pnp_free_card_ids()
144 id = next; pnp_free_card_ids()
156 struct pnp_card *pnp_alloc_card(struct pnp_protocol *protocol, int id, char *pnpid) pnp_alloc_card() argument
166 card->number = id; pnp_alloc_card()
200 struct pnp_id *pos = card->id; pnp_show_card_ids()
203 str += sprintf(str, "%s\n", pos->id); pnp_show_card_ids()
324 * @id: pointer to a PnP ID structure that explains the rules for finding the device
328 const char *id, struct pnp_dev *from) pnp_request_card_device()
335 if (!clink || !id) pnp_request_card_device()
349 if ((!dev->card_link) && compare_pnp_id(dev->id, id)) pnp_request_card_device()
327 pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from) pnp_request_card_device() argument
H A Ddriver.c2 * driver.c - device id matching, driver model, etc.
28 int compare_pnp_id(struct pnp_id *pos, const char *id) compare_pnp_id() argument
30 if (!pos || !id || (strlen(id) != 7)) compare_pnp_id()
32 if (memcmp(id, "ANYDEVS", 7) == 0) compare_pnp_id()
35 if (memcmp(pos->id, id, 3) == 0) compare_pnp_id()
36 if (compare_func(pos->id, id) == 1) compare_pnp_id()
51 while (*drv_id->id) { match_device()
52 if (compare_pnp_id(dev->id, drv_id->id)) match_device()
276 * pnp_add_id - adds an EISA id to the specified device
278 * @id: pointer to an EISA id string
280 struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id) pnp_add_id() argument
288 dev_id->id[0] = id[0]; pnp_add_id()
289 dev_id->id[1] = id[1]; pnp_add_id()
290 dev_id->id[2] = id[2]; pnp_add_id()
291 dev_id->id[3] = tolower(id[3]); pnp_add_id()
292 dev_id->id[4] = tolower(id[4]); pnp_add_id()
293 dev_id->id[5] = tolower(id[5]); pnp_add_id()
294 dev_id->id[6] = tolower(id[6]); pnp_add_id()
295 dev_id->id[7] = '\0'; pnp_add_id()
298 ptr = dev->id; pnp_add_id()
304 dev->id = dev_id; pnp_add_id()
H A Dcore.c104 struct pnp_id *id; pnp_free_ids() local
107 id = dev->id; pnp_free_ids()
108 while (id) { pnp_free_ids()
109 next = id->next; pnp_free_ids()
110 kfree(id); pnp_free_ids()
111 id = next; pnp_free_ids()
140 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, pnp_alloc_dev() argument
153 dev->number = id; pnp_alloc_dev()
216 struct pnp_id *id; pnp_add_device() local
226 for (id = dev->id; id; id = id->next) pnp_add_device()
227 len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id); pnp_add_device()
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Ddebug.c17 static void DI_format(int do_lock, word id, int type, char *format, va_list argument_list);
18 static void DI_format_locked(word id, int type, char *format, va_list argument_list); DI_format_old()
19 static void DI_format_old(word id, char *format, va_list ap) { } DiProcessEventLog() argument
20 static void DiProcessEventLog(unsigned short id, unsigned long msgID, va_list ap) { } DiProcessEventLog() argument
378 int id, free_id = -1, best_id = 0; DI_register() local
387 ((hDbg->id == 0) && (((_OldDbgHandle_ *)hDbg)->id == -1)) || DI_register()
394 for (id = 1; id < ARRAY_SIZE(clients); id++) { DI_register()
395 if (clients[id].hDbg == hDbg) { DI_register()
402 if (clients[id].hDbg) { /* slot is busy */ DI_register()
405 free_id = id; DI_register()
406 if (!strcmp(clients[id].drvName, hDbg->drvName)) { DI_register()
414 if (!clients[id].hDbg) { /* slot is busy */ DI_register()
426 Register new driver with id == free_id DI_register()
441 hDbg->id = (byte)free_id; DI_register()
472 pmsg->drv_id = 0; /* id 0 - DIMAINT */ DI_register()
505 hDbg->id = -1; DI_deregister()
544 pmsg->drv_id = 0; /* id 0 - DIMAINT */ DI_deregister()
565 static void DI_format_locked(unsigned short id, DI_format_locked() argument
569 DI_format(1, id, type, format, argument_list); DI_format_locked()
573 unsigned short id, DI_format()
630 pmsg->drv_id = id; /* driver MAINT id */ DI_format()
668 pmsg->drv_id = id; /* driver MAINT id */ DI_format()
709 pmsg->drv_id = id; /* driver MAINT id */ DI_format()
733 int diva_get_driver_info(dword id, byte *data, int data_length) { diva_get_driver_info() argument
738 if (!data || !id || (data_length < 17) || diva_get_driver_info()
739 (id >= ARRAY_SIZE(clients))) { diva_get_driver_info()
745 if (clients[id].hDbg) { diva_get_driver_info()
747 *p++ = (byte)clients[id].sec; /* save seconds */ diva_get_driver_info()
748 *p++ = (byte)(clients[id].sec >> 8); diva_get_driver_info()
749 *p++ = (byte)(clients[id].sec >> 16); diva_get_driver_info()
750 *p++ = (byte)(clients[id].sec >> 24); diva_get_driver_info()
752 *p++ = (byte)(clients[id].usec / 1000); /* save mseconds */ diva_get_driver_info()
753 *p++ = (byte)((clients[id].usec / 1000) >> 8); diva_get_driver_info()
754 *p++ = (byte)((clients[id].usec / 1000) >> 16); diva_get_driver_info()
755 *p++ = (byte)((clients[id].usec / 1000) >> 24); diva_get_driver_info()
759 if ((to_copy = min(strlen(clients[id].drvName), (size_t)(data_length - 1)))) { diva_get_driver_info()
760 memcpy(p, clients[id].drvName, to_copy); diva_get_driver_info()
763 if ((data_length >= 4) && clients[id].hDbg->drvTag[0]) { diva_get_driver_info()
766 if ((to_copy = min(strlen(clients[id].hDbg->drvTag), (size_t)(data_length - 2)))) { diva_get_driver_info()
767 memcpy(p, clients[id].hDbg->drvTag, to_copy); diva_get_driver_info()
785 int diva_get_driver_dbg_mask(dword id, byte *data) { diva_get_driver_dbg_mask() argument
789 if (!data || !id || (id >= ARRAY_SIZE(clients))) { diva_get_driver_dbg_mask()
794 if (clients[id].hDbg) { diva_get_driver_dbg_mask()
796 *data++ = (byte)(clients[id].hDbg->dbgMask); diva_get_driver_dbg_mask()
797 *data++ = (byte)(clients[id].hDbg->dbgMask >> 8); diva_get_driver_dbg_mask()
798 *data++ = (byte)(clients[id].hDbg->dbgMask >> 16); diva_get_driver_dbg_mask()
799 *data++ = (byte)(clients[id].hDbg->dbgMask >> 24); diva_get_driver_dbg_mask()
807 int diva_set_driver_dbg_mask(dword id, dword mask) { diva_set_driver_dbg_mask() argument
812 if (!id || (id >= ARRAY_SIZE(clients))) { diva_set_driver_dbg_mask()
819 if (clients[id].hDbg) { diva_set_driver_dbg_mask()
820 dword old_mask = clients[id].hDbg->dbgMask; diva_set_driver_dbg_mask()
822 clients[id].hDbg->dbgMask = mask; diva_set_driver_dbg_mask()
823 clients[id].last_dbgMask = (clients[id].hDbg->dbgMask | clients[id].dbgMask); diva_set_driver_dbg_mask()
825 diva_change_management_debug_mask(&clients[id], old_mask); diva_set_driver_dbg_mask()
831 if (clients[id].request_pending) { diva_set_driver_dbg_mask()
832 clients[id].request_pending = 0; diva_set_driver_dbg_mask()
833 (*(clients[id].request))((ENTITY *)(*(clients[id].pIdiLib->DivaSTraceGetHandle))(clients[id].pIdiLib->hLib)); diva_set_driver_dbg_mask()
864 int id, free_id = -1; diva_mnt_add_xdi_adapter() local
890 for (id = 1; id < ARRAY_SIZE(clients); id++) { diva_mnt_add_xdi_adapter()
891 if (clients[id].hDbg && (clients[id].request == d->request)) { diva_mnt_add_xdi_adapter()
897 if (clients[id].hDbg) { /* slot is busy */ diva_mnt_add_xdi_adapter()
901 free_id = id; diva_mnt_add_xdi_adapter()
903 if (!strcmp(clients[id].drvName, tmp)) { diva_mnt_add_xdi_adapter()
908 free_id = id; diva_mnt_add_xdi_adapter()
920 id = free_id; diva_mnt_add_xdi_adapter()
921 clients[id].request = d->request; diva_mnt_add_xdi_adapter()
922 clients[id].request_pending = 0; diva_mnt_add_xdi_adapter()
923 clients[id].hDbg = &clients[id].Dbg; diva_mnt_add_xdi_adapter()
924 clients[id].sec = sec; diva_mnt_add_xdi_adapter()
925 clients[id].usec = usec; diva_mnt_add_xdi_adapter()
926 strcpy(clients[id].drvName, tmp); diva_mnt_add_xdi_adapter()
927 strcpy(clients[id].Dbg.drvName, tmp); diva_mnt_add_xdi_adapter()
928 clients[id].Dbg.drvTag[0] = 0; diva_mnt_add_xdi_adapter()
929 clients[id].logical = (int)logical; diva_mnt_add_xdi_adapter()
930 clients[id].channels = (int)d->channels; diva_mnt_add_xdi_adapter()
931 clients[id].dma_handle = -1; diva_mnt_add_xdi_adapter()
933 clients[id].Dbg.dbgMask = 0; diva_mnt_add_xdi_adapter()
934 clients[id].dbgMask = clients[id].Dbg.dbgMask; diva_mnt_add_xdi_adapter()
935 if (id) { diva_mnt_add_xdi_adapter()
936 clients[id].Dbg.dbgMask |= clients[free_id].last_dbgMask; diva_mnt_add_xdi_adapter()
938 clients[id].last_dbgMask = 0; diva_mnt_add_xdi_adapter()
940 clients[id].Dbg.Registered = DBG_HANDLE_REG_NEW; diva_mnt_add_xdi_adapter()
941 clients[id].Dbg.id = (byte)id; diva_mnt_add_xdi_adapter()
942 clients[id].Dbg.dbg_end = DI_deregister; diva_mnt_add_xdi_adapter()
943 clients[id].Dbg.dbg_prt = DI_format_locked; diva_mnt_add_xdi_adapter()
944 clients[id].Dbg.dbg_ev = DiProcessEventLog; diva_mnt_add_xdi_adapter()
945 clients[id].Dbg.dbg_irq = DI_format_locked; diva_mnt_add_xdi_adapter()
946 clients[id].Dbg.next = (pDbgHandle)DBG_MAGIC; diva_mnt_add_xdi_adapter()
949 diva_trace_library_user_interface_t diva_maint_user_ifc = { &clients[id], diva_mnt_add_xdi_adapter()
957 if ((clients[id].pIdiLib = diva_mnt_add_xdi_adapter()
959 if (((*(clients[id].pIdiLib->DivaSTraceLibraryStart))(clients[id].pIdiLib->hLib))) { diva_mnt_add_xdi_adapter()
961 (*(clients[id].pIdiLib->DivaSTraceLibraryFinit))(clients[id].pIdiLib->hLib); diva_mnt_add_xdi_adapter()
962 clients[id].pIdiLib = NULL; diva_mnt_add_xdi_adapter()
969 if (!clients[id].pIdiLib) { diva_mnt_add_xdi_adapter()
970 clients[id].request = NULL; diva_mnt_add_xdi_adapter()
971 clients[id].request_pending = 0; diva_mnt_add_xdi_adapter()
972 clients[id].hDbg = NULL; diva_mnt_add_xdi_adapter()
983 id, clients[id].Dbg.drvName); diva_mnt_add_xdi_adapter()
1000 pmsg->drv_id = 0; /* id 0 - DIMAINT */ diva_mnt_add_xdi_adapter()
1009 org_mask = clients[id].Dbg.dbgMask; diva_mnt_add_xdi_adapter()
1010 clients[id].Dbg.dbgMask = 0; diva_mnt_add_xdi_adapter()
1014 if (clients[id].request_pending) { diva_mnt_add_xdi_adapter()
1015 clients[id].request_pending = 0; diva_mnt_add_xdi_adapter()
1016 (*(clients[id].request))((ENTITY *)(*(clients[id].pIdiLib->DivaSTraceGetHandle))(clients[id].pIdiLib->hLib)); diva_mnt_add_xdi_adapter()
1021 diva_set_driver_dbg_mask(id, org_mask); diva_mnt_add_xdi_adapter()
1087 pmsg->drv_id = 0; /* id 0 - DIMAINT */ diva_mnt_remove_xdi_adapter()
1447 if ((TraceFilterIdent == pC->hDbg->id) && (TraceFilterChannel == (int)channel->ChannelNumber)) { diva_maint_state_change_notify()
1450 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, "Selective Trace OFF for Ch=%d", diva_maint_state_change_notify()
1466 TraceFilterIdent = pC->hDbg->id; diva_maint_state_change_notify()
1470 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, "Selective Trace ON for Ch=%d", diva_maint_state_change_notify()
1476 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Ch = %d", diva_maint_state_change_notify()
1478 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Status = <%s>", &channel->Line[0]); diva_maint_state_change_notify()
1479 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Layer1 = <%s>", &channel->Framing[0]); diva_maint_state_change_notify()
1480 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Layer2 = <%s>", &channel->Layer2[0]); diva_maint_state_change_notify()
1481 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Layer3 = <%s>", &channel->Layer3[0]); diva_maint_state_change_notify()
1482 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L RAddr = <%s>", diva_maint_state_change_notify()
1484 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L RSAddr = <%s>", diva_maint_state_change_notify()
1486 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L LAddr = <%s>", diva_maint_state_change_notify()
1488 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L LSAddr = <%s>", diva_maint_state_change_notify()
1491 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L BC = <%s>", tmp); diva_maint_state_change_notify()
1493 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L HLC = <%s>", tmp); diva_maint_state_change_notify()
1495 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L LLC = <%s>", tmp); diva_maint_state_change_notify()
1496 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L CR = 0x%x", channel->CallReference); diva_maint_state_change_notify()
1497 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Disc = 0x%x", diva_maint_state_change_notify()
1499 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "L Owner = <%s>", &channel->UserID[0]); diva_maint_state_change_notify()
1508 int id = TraceFilterIdent; diva_maint_state_change_notify() local
1510 if ((id >= 0) && (ch >= 0) && (id < ARRAY_SIZE(clients)) && diva_maint_state_change_notify()
1511 (clients[id].Dbg.id == (byte)id) && (clients[id].pIdiLib == hLib)) { diva_maint_state_change_notify()
1521 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Ch = %lu", diva_maint_state_change_notify()
1523 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Event = %lu", modem->Event); diva_maint_state_change_notify()
1524 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Norm = %lu", modem->Norm); diva_maint_state_change_notify()
1525 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Opts. = 0x%08x", modem->Options); diva_maint_state_change_notify()
1526 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Tx = %lu Bps", modem->TxSpeed); diva_maint_state_change_notify()
1527 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rx = %lu Bps", modem->RxSpeed); diva_maint_state_change_notify()
1528 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RT = %lu mSec", diva_maint_state_change_notify()
1530 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Sr = %lu", modem->SymbolRate); diva_maint_state_change_notify()
1531 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Rxl = %d dBm", modem->RxLeveldBm); diva_maint_state_change_notify()
1532 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM El = %d dBm", modem->EchoLeveldBm); diva_maint_state_change_notify()
1533 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM SNR = %lu dB", modem->SNRdb); diva_maint_state_change_notify()
1534 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM MAE = %lu", modem->MAE); diva_maint_state_change_notify()
1535 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRet = %lu", diva_maint_state_change_notify()
1537 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRet = %lu", diva_maint_state_change_notify()
1539 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM LRes = %lu", modem->LocalResyncs); diva_maint_state_change_notify()
1540 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM RRes = %lu", diva_maint_state_change_notify()
1543 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "MDM Disc = %lu", modem->DiscReason); diva_maint_state_change_notify()
1555 int id = TraceFilterIdent; diva_maint_state_change_notify() local
1557 if ((id >= 0) && (ch >= 0) && (id < ARRAY_SIZE(clients)) && diva_maint_state_change_notify()
1558 (clients[id].Dbg.id == (byte)id) && (clients[id].pIdiLib == hLib)) { diva_maint_state_change_notify()
1567 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Ch = %lu", (int)fax->ChannelNumber); diva_maint_state_change_notify()
1568 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Event = %lu", fax->Event); diva_maint_state_change_notify()
1569 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pages = %lu", fax->Page_Counter); diva_maint_state_change_notify()
1570 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Feat. = 0x%08x", fax->Features); diva_maint_state_change_notify()
1571 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX ID = <%s>", &fax->Station_ID[0]); diva_maint_state_change_notify()
1572 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Saddr = <%s>", &fax->Subaddress[0]); diva_maint_state_change_notify()
1573 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Pwd = <%s>", &fax->Password[0]); diva_maint_state_change_notify()
1574 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Speed = %lu", fax->Speed); diva_maint_state_change_notify()
1575 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Res. = 0x%08x", fax->Resolution); diva_maint_state_change_notify()
1576 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Width = %lu", fax->Paper_Width); diva_maint_state_change_notify()
1577 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Length= %lu", fax->Paper_Length); diva_maint_state_change_notify()
1578 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX SLT = %lu", fax->Scanline_Time); diva_maint_state_change_notify()
1580 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, "FAX Disc = %lu", fax->Disc_Reason); diva_maint_state_change_notify()
1590 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, diva_maint_state_change_notify()
1592 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_STAT, diva_maint_state_change_notify()
1603 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1607 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1611 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1615 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1619 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1623 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1627 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1631 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1639 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1643 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1647 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1651 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1655 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1659 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1663 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1671 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1675 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1679 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1683 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1687 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1691 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1695 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1699 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1703 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1710 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1714 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1718 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1722 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1726 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1730 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1734 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1738 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1742 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1746 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1750 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1754 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1758 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1762 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1766 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1770 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1774 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1778 diva_mnt_internal_dprintf(pC->hDbg->id, DLI_LOG, diva_maint_state_change_notify()
1800 int id = TraceFilterIdent; diva_maint_trace_notify() local
1805 if ((id >= 0) && (ch >= 0) && (id < ARRAY_SIZE(clients)) && diva_maint_trace_notify()
1806 (clients[id].Dbg.id == (byte)id) && (clients[id].pIdiLib == hLib)) { diva_maint_trace_notify()
1811 if (Adapter != clients[id].logical) { diva_maint_trace_notify()
1863 pmsg->drv_id = pC->hDbg->id; diva_maint_trace_notify()
572 DI_format(int do_lock, unsigned short id, int type, char *format, va_list ap) DI_format() argument
/linux-4.1.27/drivers/infiniband/core/
H A Dcma.c113 struct rdma_cm_id id; member in struct:rdma_id_private
164 struct rdma_id_private *id; member in struct:cma_work
172 struct rdma_id_private *id; member in struct:cma_ndev_work
178 struct rdma_id_private *id; member in struct:iboe_mcast_work
252 id_priv->id.device = cma_dev->device; cma_attach_to_dev()
253 id_priv->id.route.addr.dev_addr.transport = cma_attach_to_dev()
283 return (struct sockaddr *) &id_priv->id.route.addr.src_addr; cma_src_addr()
288 return (struct sockaddr *) &id_priv->id.route.addr.dst_addr; cma_dst_addr()
293 return id_priv->id.route.addr.src_addr.ss_family; cma_family()
312 switch (id_priv->id.ps) { cma_set_qkey()
318 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); cma_set_qkey()
319 ret = ib_sa_get_mcmember_rec(id_priv->id.device, cma_set_qkey()
320 id_priv->id.port_num, &rec.mgid, cma_set_qkey()
355 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_acquire_dev()
364 id_priv->id.ps == RDMA_PS_IPOIB) cma_acquire_dev()
368 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, cma_acquire_dev()
374 rdma_port_get_link_layer(listen_id_priv->id.device, cma_acquire_dev()
375 listen_id_priv->id.port_num) == dev_ll) { cma_acquire_dev()
377 port = listen_id_priv->id.port_num; cma_acquire_dev()
387 id_priv->id.port_num = found_port; cma_acquire_dev()
395 listen_id_priv->id.port_num == port) cma_acquire_dev()
405 id_priv->id.port_num = found_port; cma_acquire_dev()
449 id_priv->id.port_num = p; cma_resolve_ib_dev()
457 id_priv->id.port_num = p; cma_resolve_ib_dev()
470 cma_translate_ib(addr, &id_priv->id.route.addr.dev_addr); cma_resolve_ib_dev()
503 id_priv->id.context = context; rdma_create_id()
504 id_priv->id.event_handler = event_handler; rdma_create_id()
505 id_priv->id.ps = ps; rdma_create_id()
506 id_priv->id.qp_type = qp_type; rdma_create_id()
516 return &id_priv->id; rdma_create_id()
526 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_init_ud_qp()
552 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_init_conn_qp()
559 int rdma_create_qp(struct rdma_cm_id *id, struct ib_pd *pd, rdma_create_qp() argument
566 id_priv = container_of(id, struct rdma_id_private, id); rdma_create_qp()
567 if (id->device != pd->device) rdma_create_qp()
574 if (id->qp_type == IB_QPT_UD) rdma_create_qp()
581 id->qp = qp; rdma_create_qp()
591 void rdma_destroy_qp(struct rdma_cm_id *id) rdma_destroy_qp() argument
595 id_priv = container_of(id, struct rdma_id_private, id); rdma_destroy_qp()
597 ib_destroy_qp(id_priv->id.qp); rdma_destroy_qp()
598 id_priv->id.qp = NULL; rdma_destroy_qp()
611 if (!id_priv->id.qp) { cma_modify_qp_rtr()
618 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_modify_qp_rtr()
622 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); cma_modify_qp_rtr()
627 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_modify_qp_rtr()
631 ret = ib_query_gid(id_priv->id.device, id_priv->id.port_num, cma_modify_qp_rtr()
638 rdma_port_get_link_layer(id_priv->id.device, id_priv->id.port_num) cma_modify_qp_rtr()
647 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); cma_modify_qp_rtr()
660 if (!id_priv->id.qp) { cma_modify_qp_rts()
666 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_modify_qp_rts()
672 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); cma_modify_qp_rts()
684 if (!id_priv->id.qp) { cma_modify_qp_err()
690 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, IB_QP_STATE); cma_modify_qp_err()
699 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_ib_init_qp_attr()
703 if (rdma_port_get_link_layer(id_priv->id.device, id_priv->id.port_num) == cma_ib_init_qp_attr()
709 ret = ib_find_cached_pkey(id_priv->id.device, id_priv->id.port_num, cma_ib_init_qp_attr()
714 qp_attr->port_num = id_priv->id.port_num; cma_ib_init_qp_attr()
717 if (id_priv->id.qp_type == IB_QPT_UD) { cma_ib_init_qp_attr()
731 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, rdma_init_qp_attr() argument
737 id_priv = container_of(id, struct rdma_id_private, id); rdma_init_qp_attr()
738 switch (rdma_node_get_transport(id_priv->id.device->node_type)) { rdma_init_qp_attr()
740 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) rdma_init_qp_attr()
840 static void cma_save_ib_info(struct rdma_cm_id *id, struct rdma_cm_id *listen_id, cma_save_ib_info() argument
846 ib = (struct sockaddr_ib *) &id->route.addr.src_addr; cma_save_ib_info()
862 ib = (struct sockaddr_ib *) &id->route.addr.dst_addr; cma_save_ib_info()
879 static void cma_save_ip4_info(struct rdma_cm_id *id, struct rdma_cm_id *listen_id, cma_save_ip4_info() argument
884 ip4 = (struct sockaddr_in *) &id->route.addr.src_addr; cma_save_ip4_info()
889 ip4 = (struct sockaddr_in *) &id->route.addr.dst_addr; cma_save_ip4_info()
895 static void cma_save_ip6_info(struct rdma_cm_id *id, struct rdma_cm_id *listen_id, cma_save_ip6_info() argument
900 ip6 = (struct sockaddr_in6 *) &id->route.addr.src_addr; cma_save_ip6_info()
905 ip6 = (struct sockaddr_in6 *) &id->route.addr.dst_addr; cma_save_ip6_info()
911 static int cma_save_net_info(struct rdma_cm_id *id, struct rdma_cm_id *listen_id, cma_save_net_info() argument
918 cma_save_ib_info(id, listen_id, ib_event->param.req_rcvd.primary_path); cma_save_net_info()
920 cma_save_ib_info(id, listen_id, NULL); cma_save_net_info()
930 cma_save_ip4_info(id, listen_id, hdr); cma_save_net_info()
933 cma_save_ip6_info(id, listen_id, hdr); cma_save_net_info()
948 switch (rdma_port_get_link_layer(id_priv->id.device, id_priv->id.port_num)) { cma_cancel_route()
977 rdma_destroy_id(&dev_id_priv->id); cma_cancel_listens()
988 rdma_addr_cancel(&id_priv->id.route.addr.dev_addr); cma_cancel_operation()
1026 switch (rdma_port_get_link_layer(id_priv->cma_dev->device, id_priv->id.port_num)) { cma_leave_mc_groups()
1040 void rdma_destroy_id(struct rdma_cm_id *id) rdma_destroy_id() argument
1045 id_priv = container_of(id, struct rdma_id_private, id); rdma_destroy_id()
1057 switch (rdma_node_get_transport(id_priv->id.device->node_type)) { rdma_destroy_id()
1078 cma_deref_id(id_priv->id.context); rdma_destroy_id()
1080 kfree(id_priv->id.route.path_rec); rdma_destroy_id()
1143 if (id_priv->id.qp) { cma_ib_handler()
1185 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_ib_handler()
1191 rdma_destroy_id(&id_priv->id); cma_ib_handler()
1203 struct rdma_cm_id *id; cma_new_conn_id() local
1207 id = rdma_create_id(listen_id->event_handler, listen_id->context, cma_new_conn_id()
1209 if (IS_ERR(id)) cma_new_conn_id()
1212 id_priv = container_of(id, struct rdma_id_private, id); cma_new_conn_id()
1213 if (cma_save_net_info(id, listen_id, ib_event)) cma_new_conn_id()
1216 rt = &id->route; cma_new_conn_id()
1242 rdma_destroy_id(id); cma_new_conn_id()
1250 struct rdma_cm_id *id; cma_new_udp_id() local
1253 id = rdma_create_id(listen_id->event_handler, listen_id->context, cma_new_udp_id()
1255 if (IS_ERR(id)) cma_new_udp_id()
1258 id_priv = container_of(id, struct rdma_id_private, id); cma_new_udp_id()
1259 if (cma_save_net_info(id, listen_id, ib_event)) cma_new_udp_id()
1262 if (!cma_any_addr((struct sockaddr *) &id->route.addr.src_addr)) { cma_new_udp_id()
1263 ret = cma_translate_addr(cma_src_addr(id_priv), &id->route.addr.dev_addr); cma_new_udp_id()
1271 rdma_destroy_id(id); cma_new_udp_id()
1290 static int cma_check_req_qp_type(struct rdma_cm_id *id, struct ib_cm_event *ib_event) cma_check_req_qp_type() argument
1293 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || cma_check_req_qp_type()
1295 (id->qp_type == IB_QPT_UD)) || cma_check_req_qp_type()
1296 (!id->qp_type)); cma_check_req_qp_type()
1306 if (!cma_check_req_qp_type(&listen_id->id, ib_event)) cma_req_handler()
1316 conn_id = cma_new_udp_id(&listen_id->id, ib_event); cma_req_handler()
1321 conn_id = cma_new_conn_id(&listen_id->id, ib_event); cma_req_handler()
1344 ret = conn_id->id.event_handler(&conn_id->id, &event); cma_req_handler()
1353 (conn_id->id.qp_type != IB_QPT_UD)) cma_req_handler()
1371 rdma_destroy_id(&conn_id->id); cma_req_handler()
1375 __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr) rdma_get_service_id() argument
1380 return cpu_to_be64(((u64)id->ps << 16) + be16_to_cpu(cma_port(addr))); rdma_get_service_id()
1471 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_iw_handler()
1477 rdma_destroy_id(&id_priv->id); cma_iw_handler()
1500 /* Create a new RDMA id for the new IW CM ID */ iw_conn_req_handler()
1501 new_cm_id = rdma_create_id(listen_id->id.event_handler, iw_conn_req_handler()
1502 listen_id->id.context, iw_conn_req_handler()
1508 conn_id = container_of(new_cm_id, struct rdma_id_private, id); iw_conn_req_handler()
1512 ret = rdma_translate_ip(laddr, &conn_id->id.route.addr.dev_addr, NULL); iw_conn_req_handler()
1533 ret = ib_query_device(conn_id->id.device, &attr); iw_conn_req_handler()
1552 ret = conn_id->id.event_handler(&conn_id->id, &event); iw_conn_req_handler()
1559 rdma_destroy_id(&conn_id->id); iw_conn_req_handler()
1575 struct ib_cm_id *id; cma_ib_listen() local
1579 id = ib_create_cm_id(id_priv->id.device, cma_req_handler, id_priv); cma_ib_listen()
1580 if (IS_ERR(id)) cma_ib_listen()
1581 return PTR_ERR(id); cma_ib_listen()
1583 id_priv->cm_id.ib = id; cma_ib_listen()
1586 svc_id = rdma_get_service_id(&id_priv->id, addr); cma_ib_listen()
1590 cma_set_compare_data(id_priv->id.ps, addr, &compare_data); cma_ib_listen()
1605 struct iw_cm_id *id; cma_iw_listen() local
1607 id = iw_create_cm_id(id_priv->id.device, cma_iw_listen()
1610 if (IS_ERR(id)) cma_iw_listen()
1611 return PTR_ERR(id); cma_iw_listen()
1613 id_priv->cm_id.iw = id; cma_iw_listen()
1628 static int cma_listen_handler(struct rdma_cm_id *id, cma_listen_handler() argument
1631 struct rdma_id_private *id_priv = id->context; cma_listen_handler()
1633 id->context = id_priv->id.context; cma_listen_handler()
1634 id->event_handler = id_priv->id.event_handler; cma_listen_handler()
1635 return id_priv->id.event_handler(id, event); cma_listen_handler()
1642 struct rdma_cm_id *id; cma_listen_on_dev() local
1649 id = rdma_create_id(cma_listen_handler, id_priv, id_priv->id.ps, cma_listen_on_dev()
1650 id_priv->id.qp_type); cma_listen_on_dev()
1651 if (IS_ERR(id)) cma_listen_on_dev()
1654 dev_id_priv = container_of(id, struct rdma_id_private, id); cma_listen_on_dev()
1666 ret = rdma_listen(id, id_priv->backlog); cma_listen_on_dev()
1683 void rdma_set_service_type(struct rdma_cm_id *id, int tos) rdma_set_service_type() argument
1687 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_service_type()
1698 route = &work->id->id.route; cma_query_handler()
1716 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_query_ib_route()
1728 path_rec.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); cma_query_ib_route()
1751 id_priv->query_id = ib_sa_path_rec_get(&sa_client, id_priv->id.device, cma_query_ib_route()
1752 id_priv->id.port_num, &path_rec, cma_query_ib_route()
1763 struct rdma_id_private *id_priv = work->id; cma_work_handler()
1770 if (id_priv->id.event_handler(&id_priv->id, &work->event)) { cma_work_handler()
1778 rdma_destroy_id(&id_priv->id); cma_work_handler()
1785 struct rdma_id_private *id_priv = work->id; cma_ndev_work_handler()
1793 if (id_priv->id.event_handler(&id_priv->id, &work->event)) { cma_ndev_work_handler()
1802 rdma_destroy_id(&id_priv->id); cma_ndev_work_handler()
1808 struct rdma_route *route = &id_priv->id.route; cma_resolve_ib_route()
1816 work->id = id_priv; cma_resolve_ib_route()
1841 int rdma_set_ib_paths(struct rdma_cm_id *id, rdma_set_ib_paths() argument
1847 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_ib_paths()
1852 id->route.path_rec = kmemdup(path_rec, sizeof *path_rec * num_paths, rdma_set_ib_paths()
1854 if (!id->route.path_rec) { rdma_set_ib_paths()
1859 id->route.num_paths = num_paths; rdma_set_ib_paths()
1875 work->id = id_priv; cma_resolve_iw_route()
1906 struct rdma_route *route = &id_priv->id.route; cma_resolve_iboe_route()
1917 work->id = id_priv; cma_resolve_iboe_route()
1939 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, cma_resolve_iboe_route()
1941 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.dst_addr, cma_resolve_iboe_route()
1977 int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms) rdma_resolve_route() argument
1982 id_priv = container_of(id, struct rdma_id_private, id); rdma_resolve_route()
1987 switch (rdma_node_get_transport(id->device->node_type)) { rdma_resolve_route()
1989 switch (rdma_port_get_link_layer(id->device, id->port_num)) { rdma_resolve_route()
2079 id_priv->id.route.addr.dev_addr.dev_type = cma_bind_loopback()
2083 rdma_addr_set_sgid(&id_priv->id.route.addr.dev_addr, &gid); cma_bind_loopback()
2084 ib_addr_set_pkey(&id_priv->id.route.addr.dev_addr, pkey); cma_bind_loopback()
2085 id_priv->id.port_num = p; cma_bind_loopback()
2118 if (id_priv->id.event_handler(&id_priv->id, &event)) { addr_handler()
2122 rdma_destroy_id(&id_priv->id); addr_handler()
2146 rdma_addr_get_sgid(&id_priv->id.route.addr.dev_addr, &gid); cma_resolve_loopback()
2147 rdma_addr_set_dgid(&id_priv->id.route.addr.dev_addr, &gid); cma_resolve_loopback()
2149 work->id = id_priv; cma_resolve_loopback()
2176 rdma_addr_set_dgid(&id_priv->id.route.addr.dev_addr, (union ib_gid *) cma_resolve_ib_addr()
2177 &(((struct sockaddr_ib *) &id_priv->id.route.addr.dst_addr)->sib_addr)); cma_resolve_ib_addr()
2179 work->id = id_priv; cma_resolve_ib_addr()
2191 static int cma_bind_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, cma_bind_addr() argument
2195 src_addr = (struct sockaddr *) &id->route.addr.src_addr; cma_bind_addr()
2205 return rdma_bind_addr(id, src_addr); cma_bind_addr()
2208 int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, rdma_resolve_addr() argument
2214 id_priv = container_of(id, struct rdma_id_private, id); rdma_resolve_addr()
2216 ret = cma_bind_addr(id, src_addr, dst_addr); rdma_resolve_addr()
2236 dst_addr, &id->route.addr.dev_addr, rdma_resolve_addr()
2251 int rdma_set_reuseaddr(struct rdma_cm_id *id, int reuse) rdma_set_reuseaddr() argument
2257 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_reuseaddr()
2270 int rdma_set_afonly(struct rdma_cm_id *id, int afonly) rdma_set_afonly() argument
2276 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_afonly()
2444 switch (id_priv->id.ps) { cma_select_inet_ps()
2468 if ((id_priv->id.ps == RDMA_PS_IB) && (sid == (RDMA_IB_IP_PS_IB & mask))) { cma_select_ib_ps()
2471 } else if (((id_priv->id.ps == RDMA_PS_IB) || (id_priv->id.ps == RDMA_PS_TCP)) && cma_select_ib_ps()
2475 } else if (((id_priv->id.ps == RDMA_PS_IB) || (id_priv->id.ps == RDMA_PS_UDP)) && cma_select_ib_ps()
2533 int rdma_listen(struct rdma_cm_id *id, int backlog) rdma_listen() argument
2538 id_priv = container_of(id, struct rdma_id_private, id); rdma_listen()
2540 id->route.addr.src_addr.ss_family = AF_INET; rdma_listen()
2541 ret = rdma_bind_addr(id, cma_src_addr(id_priv)); rdma_listen()
2556 if (id->device) { rdma_listen()
2557 switch (rdma_node_get_transport(id->device->node_type)) { rdma_listen()
2583 int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr) rdma_bind_addr() argument
2592 id_priv = container_of(id, struct rdma_id_private, id); rdma_bind_addr()
2596 ret = cma_check_linklocal(&id->route.addr.dev_addr, addr); rdma_bind_addr()
2602 ret = cma_translate_addr(addr, &id->route.addr.dev_addr); rdma_bind_addr()
2694 ib_init_ah_from_path(id_priv->id.device, id_priv->id.port_num, cma_sidr_rep_handler()
2695 id_priv->id.route.path_rec, cma_sidr_rep_handler()
2708 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_sidr_rep_handler()
2714 rdma_destroy_id(&id_priv->id); cma_sidr_rep_handler()
2726 struct ib_cm_id *id; cma_resolve_ib_udp() local
2755 id = ib_create_cm_id(id_priv->id.device, cma_sidr_rep_handler, cma_resolve_ib_udp()
2757 if (IS_ERR(id)) { cma_resolve_ib_udp()
2758 ret = PTR_ERR(id); cma_resolve_ib_udp()
2761 id_priv->cm_id.ib = id; cma_resolve_ib_udp()
2763 req.path = id_priv->id.route.path_rec; cma_resolve_ib_udp()
2764 req.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); cma_resolve_ib_udp()
2784 struct ib_cm_id *id; cma_connect_ib() local
2805 id = ib_create_cm_id(id_priv->id.device, cma_ib_handler, id_priv); cma_connect_ib()
2806 if (IS_ERR(id)) { cma_connect_ib()
2807 ret = PTR_ERR(id); cma_connect_ib()
2810 id_priv->cm_id.ib = id; cma_connect_ib()
2812 route = &id_priv->id.route; cma_connect_ib()
2824 req.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); cma_connect_ib()
2826 req.qp_type = id_priv->id.qp_type; cma_connect_ib()
2840 if (ret && !IS_ERR(id)) { cma_connect_ib()
2841 ib_destroy_cm_id(id); cma_connect_ib()
2856 cm_id = iw_create_cm_id(id_priv->id.device, cma_iw_handler, id_priv); cma_connect_iw()
2876 iw_param.qpn = id_priv->id.qp ? id_priv->qp_num : conn_param->qp_num; cma_connect_iw()
2890 int rdma_connect(struct rdma_cm_id *id, struct rdma_conn_param *conn_param) rdma_connect() argument
2895 id_priv = container_of(id, struct rdma_id_private, id); rdma_connect()
2899 if (!id->qp) { rdma_connect()
2904 switch (rdma_node_get_transport(id->device->node_type)) { rdma_connect()
2906 if (id->qp_type == IB_QPT_UD) rdma_connect()
2973 if (id_priv->id.qp) { cma_accept_iw()
3003 int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param) rdma_accept() argument
3008 id_priv = container_of(id, struct rdma_id_private, id); rdma_accept()
3015 if (!id->qp && conn_param) { rdma_accept()
3020 switch (rdma_node_get_transport(id->device->node_type)) { rdma_accept()
3022 if (id->qp_type == IB_QPT_UD) { rdma_accept()
3052 rdma_reject(id, NULL, 0); rdma_accept()
3057 int rdma_notify(struct rdma_cm_id *id, enum ib_event_type event) rdma_notify() argument
3062 id_priv = container_of(id, struct rdma_id_private, id); rdma_notify()
3066 switch (id->device->node_type) { rdma_notify()
3078 int rdma_reject(struct rdma_cm_id *id, const void *private_data, rdma_reject() argument
3084 id_priv = container_of(id, struct rdma_id_private, id); rdma_reject()
3088 switch (rdma_node_get_transport(id->device->node_type)) { rdma_reject()
3090 if (id->qp_type == IB_QPT_UD) rdma_reject()
3110 int rdma_disconnect(struct rdma_cm_id *id) rdma_disconnect() argument
3115 id_priv = container_of(id, struct rdma_id_private, id); rdma_disconnect()
3119 switch (rdma_node_get_transport(id->device->node_type)) { rdma_disconnect()
3155 if (!status && id_priv->id.qp) cma_ib_mc_handler()
3156 status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid, cma_ib_mc_handler()
3165 ib_init_ah_from_mcmember(id_priv->id.device, cma_ib_mc_handler()
3166 id_priv->id.port_num, &multicast->rec, cma_ib_mc_handler()
3173 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_ib_mc_handler()
3177 rdma_destroy_id(&id_priv->id); cma_ib_mc_handler()
3189 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_set_mgid()
3204 if (id_priv->id.ps == RDMA_PS_UDP) cma_set_mgid()
3209 if (id_priv->id.ps == RDMA_PS_UDP) cma_set_mgid()
3219 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_join_ib_multicast()
3224 ret = ib_sa_get_mcmember_rec(id_priv->id.device, id_priv->id.port_num, cma_join_ib_multicast()
3245 if (id_priv->id.ps == RDMA_PS_IPOIB) cma_join_ib_multicast()
3252 mc->multicast.ib = ib_sa_join_multicast(&sa_client, id_priv->id.device, cma_join_ib_multicast()
3253 id_priv->id.port_num, &rec, cma_join_ib_multicast()
3301 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_iboe_join_multicast()
3322 if (id_priv->id.ps == RDMA_PS_UDP) cma_iboe_join_multicast()
3339 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, cma_iboe_join_multicast()
3341 work->id = id_priv; cma_iboe_join_multicast()
3356 int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr, rdma_join_multicast() argument
3363 id_priv = container_of(id, struct rdma_id_private, id); rdma_join_multicast()
3380 switch (rdma_node_get_transport(id->device->node_type)) { rdma_join_multicast()
3382 switch (rdma_port_get_link_layer(id->device, id->port_num)) { rdma_join_multicast()
3409 void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr) rdma_leave_multicast() argument
3414 id_priv = container_of(id, struct rdma_id_private, id); rdma_leave_multicast()
3421 if (id->qp) rdma_leave_multicast()
3422 ib_detach_mcast(id->qp, rdma_leave_multicast()
3426 switch (rdma_port_get_link_layer(id->device, id->port_num)) { rdma_leave_multicast()
3450 dev_addr = &id_priv->id.route.addr.dev_addr; cma_netdev_change()
3454 printk(KERN_INFO "RDMA CM addr change for ndev %s used by id %p\n", cma_netdev_change()
3455 ndev->name, &id_priv->id); cma_netdev_change()
3461 work->id = id_priv; cma_netdev_change()
3547 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_remove_id_dev()
3571 rdma_destroy_id(&id_priv->id); cma_process_remove()
3602 struct rdma_cm_id *id = NULL; cma_get_id_stats() local
3633 id = &id_priv->id; cma_get_id_stats()
3634 id_stats->node_type = id->route.addr.dev_addr.dev_type; cma_get_id_stats()
3635 id_stats->port_num = id->port_num; cma_get_id_stats()
3637 id->route.addr.dev_addr.bound_dev_if; cma_get_id_stats()
3651 id_stats->port_space = id->ps; cma_get_id_stats()
3654 id_stats->qp_type = id->qp_type; cma_get_id_stats()
/linux-4.1.27/kernel/locking/
H A Drtmutex-tester.c50 RTTEST_SIGNAL = 11, /* 11 Signal other test thread, data = thread id */
57 int i, id, ret = -EINVAL; handle_op() local
91 id = td->opdata; handle_op()
92 if (id < 0 || id >= MAX_RT_TEST_MUTEXES) handle_op()
95 td->mutexes[id] = 1; handle_op()
97 rt_mutex_lock(&mutexes[id]); handle_op()
99 td->mutexes[id] = 4; handle_op()
104 id = td->opdata; handle_op()
105 if (id < 0 || id >= MAX_RT_TEST_MUTEXES) handle_op()
108 td->mutexes[id] = 1; handle_op()
110 ret = rt_mutex_lock_interruptible(&mutexes[id], 0); handle_op()
112 td->mutexes[id] = ret ? 0 : 4; handle_op()
116 id = td->opdata; handle_op()
117 if (id < 0 || id >= MAX_RT_TEST_MUTEXES || td->mutexes[id] != 4) handle_op()
121 rt_mutex_unlock(&mutexes[id]); handle_op()
123 td->mutexes[id] = 0; handle_op()
285 tid = td->dev.id; sysfs_test_command()
348 tsk = threads[td->dev.id]; sysfs_test_status()
365 mutexes[td->dev.id].owner); sysfs_test_status()
378 static int init_test_thread(int id) init_test_thread() argument
380 thread_data[id].dev.bus = &rttest_subsys; init_test_thread()
381 thread_data[id].dev.id = id; init_test_thread()
383 threads[id] = kthread_run(test_func, &thread_data[id], "rt-test-%d", id); init_test_thread()
384 if (IS_ERR(threads[id])) init_test_thread()
385 return PTR_ERR(threads[id]); init_test_thread()
387 return device_register(&thread_data[id].dev); init_test_thread()
/linux-4.1.27/drivers/dio/
H A Ddio-driver.c19 * dio_match_device - Tell if a DIO device structure has a matching DIO device id structure
20 * @ids: array of DIO device id structures to search in
32 while (ids->id) { dio_match_device()
33 if (ids->id == DIO_WILDCARD) dio_match_device()
35 if (DIO_NEEDSSECID(ids->id & 0xff)) { dio_match_device()
36 if (ids->id == d->id) dio_match_device()
39 if ((ids->id & 0xff) == (d->id & 0xff)) dio_match_device()
54 const struct dio_device_id *id; dio_device_probe() local
56 id = dio_match_device(drv->id_table, d); dio_device_probe()
57 if (id) dio_device_probe()
58 error = drv->probe(d, id); dio_device_probe()
104 * dio_bus_match - Tell if a DIO device structure has a matching DIO device id structure
106 * @drv: the &device_driver that points to the array of DIO device id structures to search
/linux-4.1.27/fs/squashfs/
H A Dxattr_id.c25 * This file implements code to map the 32-bit xattr id stored in the inode
39 * Map xattr id using the xattr id look up table
48 struct squashfs_xattr_id id; squashfs_xattr_lookup() local
51 err = squashfs_read_metadata(sb, &id, &start_block, &offset, squashfs_xattr_lookup()
52 sizeof(id)); squashfs_xattr_lookup()
56 *xattr = le64_to_cpu(id.xattr); squashfs_xattr_lookup()
57 *size = le32_to_cpu(id.size); squashfs_xattr_lookup()
58 *count = le32_to_cpu(id.count); squashfs_xattr_lookup()
64 * Read uncompressed xattr id lookup table indexes from disk into memory
82 /* there is always at least one xattr id */ squashfs_read_xattr_id_table()
/linux-4.1.27/net/sched/
H A Dcls_route.c34 u32 id; member in struct:route4_fastmap
52 u32 id; member in struct:route4_filter
65 static inline int route4_fastmap_hash(u32 id, int iif) route4_fastmap_hash() argument
67 return id & 0xF; route4_fastmap_hash()
80 route4_set_fastmap(struct route4_head *head, u32 id, int iif, route4_set_fastmap() argument
83 int h = route4_fastmap_hash(id, iif); route4_set_fastmap()
85 /* fastmap updates must look atomic to aling id, iff, filter */ route4_set_fastmap()
87 head->fastmap[h].id = id; route4_set_fastmap()
93 static inline int route4_hash_to(u32 id) route4_hash_to() argument
95 return id & 0xFF; route4_hash_to()
98 static inline int route4_hash_from(u32 id) route4_hash_from() argument
100 return (id >> 16) & 0xF; route4_hash_from()
124 route4_set_fastmap(head, id, iif, f); \
135 u32 id, h; route4_classify() local
142 id = dst->tclassid; route4_classify()
148 h = route4_fastmap_hash(id, iif); route4_classify()
151 if (id == head->fastmap[h].id && route4_classify()
165 h = route4_hash_to(id); route4_classify()
170 for (f = rcu_dereference_bh(b->ht[route4_hash_from(id)]); route4_classify()
173 if (f->id == id) route4_classify()
189 id &= ~0xFFFF; route4_classify()
194 route4_set_fastmap(head, id, iif, ROUTE4_FAILURE); route4_classify()
199 if (id && (TC_H_MAJ(id) == 0 || route4_classify()
200 !(TC_H_MAJ(id^tp->q->handle)))) { route4_classify()
201 res->classid = id; route4_classify()
208 static inline u32 to_hash(u32 id) to_hash() argument
210 u32 h = id & 0xFF; to_hash()
212 if (id & 0x8000) to_hash()
217 static inline u32 from_hash(u32 id) from_hash() argument
219 id &= 0xFFFF; from_hash()
220 if (id == 0xFFFF) from_hash()
222 if (!(id & 0x8000)) { from_hash()
223 if (id > 255) from_hash()
225 return id & 0xF; from_hash()
227 return 16 + (id & 0xF); from_hash()
387 u32 id = 0, to = 0, nhandle = 0x8000; route4_set_parms() local
411 id = nla_get_u32(tb[TCA_ROUTE4_FROM]); route4_set_parms()
412 if (id > 0xFF) route4_set_parms()
414 nhandle |= id << 16; route4_set_parms()
416 id = nla_get_u32(tb[TCA_ROUTE4_IIF]); route4_set_parms()
417 if (id > 0x7FFF) route4_set_parms()
419 nhandle |= (id | 0x8000) << 16; route4_set_parms()
450 f->id = to; route4_set_parms()
453 f->id = to | id<<16; route4_set_parms()
455 f->iif = id; route4_set_parms()
508 f->id = fold->id; route4_change()
605 u32 id; route4_dump() local
617 id = f->id & 0xFF; route4_dump()
618 if (nla_put_u32(skb, TCA_ROUTE4_TO, id)) route4_dump()
626 id = f->id >> 16; route4_dump()
627 if (nla_put_u32(skb, TCA_ROUTE4_FROM, id)) route4_dump()
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
H A Ddsi_manager.c29 #define IS_MASTER_PANEL(id) (msm_dsim_glb.master_panel_id == id)
31 static inline struct msm_dsi *dsi_mgr_get_dsi(int id) dsi_mgr_get_dsi() argument
33 return msm_dsim_glb.dsi[id]; dsi_mgr_get_dsi()
36 static inline struct msm_dsi *dsi_mgr_get_other_dsi(int id) dsi_mgr_get_other_dsi() argument
38 return msm_dsim_glb.dsi[(id + 1) % DSI_MAX]; dsi_mgr_get_other_dsi()
41 static int dsi_mgr_parse_dual_panel(struct device_node *np, int id) dsi_mgr_parse_dual_panel() argument
54 msm_dsim->master_panel_id = id; dsi_mgr_parse_dual_panel()
65 int id; member in struct:dsi_connector
70 int id; member in struct:dsi_bridge
79 return dsi_connector->id; dsi_mgr_connector_get_id()
85 return dsi_bridge->id; dsi_mgr_bridge_get_id()
91 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_detect() local
92 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_detect()
93 struct msm_dsi *other_dsi = dsi_mgr_get_other_dsi(id); dsi_mgr_connector_detect()
97 DBG("id=%d", id); dsi_mgr_connector_detect()
108 !IS_MASTER_PANEL(id) && other_dsi) dsi_mgr_connector_detect()
163 struct drm_connector *connector, int id) dsi_dual_connector_tile_init()
166 /* Fake topology id */ dsi_dual_connector_tile_init()
203 connector->tile_h_loc = (id == DSI_RIGHT) ? 1 : 0; dsi_dual_connector_tile_init()
210 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_get_modes() local
211 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_get_modes()
232 ret = dsi_dual_connector_tile_init(connector, id); dsi_mgr_connector_get_modes()
249 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_mode_valid() local
250 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_mode_valid()
270 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_best_encoder() local
271 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_best_encoder()
279 int id = dsi_mgr_bridge_get_id(bridge); dsi_mgr_bridge_pre_enable() local
280 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_bridge_pre_enable()
287 DBG("id=%d", id); dsi_mgr_bridge_pre_enable()
288 if (!panel || (is_dual_panel && (DSI_1 == id))) dsi_mgr_bridge_pre_enable()
293 pr_err("%s: power on host %d failed, %d\n", __func__, id, ret); dsi_mgr_bridge_pre_enable()
311 pr_err("%s: prepare panel %d failed, %d\n", __func__, id, ret); dsi_mgr_bridge_pre_enable()
317 pr_err("%s: enable host %d failed, %d\n", __func__, id, ret); dsi_mgr_bridge_pre_enable()
331 pr_err("%s: enable panel %d failed, %d\n", __func__, id, ret); dsi_mgr_bridge_pre_enable()
365 int id = dsi_mgr_bridge_get_id(bridge); dsi_mgr_bridge_post_disable() local
366 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_bridge_post_disable()
373 DBG("id=%d", id); dsi_mgr_bridge_post_disable()
375 if (!panel || (is_dual_panel && (DSI_1 == id))) dsi_mgr_bridge_post_disable()
380 pr_err("%s: Panel %d OFF failed, %d\n", __func__, id, ret); dsi_mgr_bridge_post_disable()
384 pr_err("%s: host %d disable failed, %d\n", __func__, id, ret); dsi_mgr_bridge_post_disable()
394 pr_err("%s: Panel %d unprepare failed,%d\n", __func__, id, ret); dsi_mgr_bridge_post_disable()
398 pr_err("%s: host %d power off failed,%d\n", __func__, id, ret); dsi_mgr_bridge_post_disable()
412 int id = dsi_mgr_bridge_get_id(bridge); dsi_mgr_bridge_mode_set() local
413 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_bridge_mode_set()
414 struct msm_dsi *other_dsi = dsi_mgr_get_other_dsi(id); dsi_mgr_bridge_mode_set()
419 mode->base.id, mode->name, dsi_mgr_bridge_mode_set()
427 if (is_dual_panel && (DSI_1 == id)) dsi_mgr_bridge_mode_set()
460 struct drm_connector *msm_dsi_manager_connector_init(u8 id) msm_dsi_manager_connector_init() argument
462 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_connector_init()
474 dsi_connector->id = id; msm_dsi_manager_connector_init()
512 struct drm_bridge *msm_dsi_manager_bridge_init(u8 id) msm_dsi_manager_bridge_init() argument
514 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_bridge_init()
526 dsi_bridge->id = id; msm_dsi_manager_bridge_init()
548 int msm_dsi_manager_phy_enable(int id, msm_dsi_manager_phy_enable() argument
552 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_phy_enable()
566 void msm_dsi_manager_phy_disable(int id) msm_dsi_manager_phy_disable() argument
568 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_phy_disable()
588 int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg) msm_dsi_manager_cmd_xfer() argument
590 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_cmd_xfer()
605 if (need_sync && (id == DSI_0)) msm_dsi_manager_cmd_xfer()
634 bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 iova, u32 len) msm_dsi_manager_cmd_xfer_trigger() argument
636 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_cmd_xfer_trigger()
640 if (IS_SYNC_NEEDED() && (id == DSI_0)) msm_dsi_manager_cmd_xfer_trigger()
654 int id = msm_dsi->id; msm_dsi_manager_register() local
655 struct msm_dsi *other_dsi = dsi_mgr_get_other_dsi(id); msm_dsi_manager_register()
658 if (id > DSI_MAX) { msm_dsi_manager_register()
659 pr_err("%s: invalid id %d\n", __func__, id); msm_dsi_manager_register()
663 if (msm_dsim->dsi[id]) { msm_dsi_manager_register()
664 pr_err("%s: dsi%d already registered\n", __func__, id); msm_dsi_manager_register()
668 msm_dsim->dsi[id] = msm_dsi; msm_dsi_manager_register()
670 ret = dsi_mgr_parse_dual_panel(msm_dsi->pdev->dev.of_node, id); msm_dsi_manager_register()
681 struct msm_dsi *mdsi = IS_MASTER_PANEL(id) ? msm_dsi_manager_register()
683 struct msm_dsi *sdsi = IS_MASTER_PANEL(id) ? msm_dsi_manager_register()
707 msm_dsim->dsi[msm_dsi->id] = NULL; msm_dsi_manager_unregister()
162 dsi_dual_connector_tile_init( struct drm_connector *connector, int id) dsi_dual_connector_tile_init() argument
/linux-4.1.27/drivers/s390/net/
H A Dctcm_dbug.c36 debug_unregister(ctcm_dbf[x].id); ctcm_unregister_dbf_views()
37 ctcm_dbf[x].id = NULL; ctcm_unregister_dbf_views()
46 ctcm_dbf[x].id = debug_register(ctcm_dbf[x].name, ctcm_register_dbf_views()
50 if (ctcm_dbf[x].id == NULL) { ctcm_register_dbf_views()
56 debug_register_view(ctcm_dbf[x].id, &debug_hex_ascii_view); ctcm_register_dbf_views()
58 debug_set_level(ctcm_dbf[x].id, ctcm_dbf[x].level); ctcm_register_dbf_views()
69 if (!debug_level_enabled(ctcm_dbf[dbf_nix].id, level)) ctcm_dbf_longtext()
75 debug_text_event(ctcm_dbf[dbf_nix].id, level, dbf_txt_buf); ctcm_dbf_longtext()
/linux-4.1.27/drivers/staging/vme/devices/
H A Dvme_pio2_cntr.c24 static int pio2_cntr_irq_set(struct pio2_card *card, int id) pio2_cntr_irq_set() argument
29 data = PIO2_CNTR_SC_DEV[id] | PIO2_CNTR_RW_BOTH | card->cntr[id].mode; pio2_cntr_irq_set()
30 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_CTRL[id]); pio2_cntr_irq_set()
34 data = card->cntr[id].count & 0xFF; pio2_cntr_irq_set()
35 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); pio2_cntr_irq_set()
39 data = (card->cntr[id].count >> 8) & 0xFF; pio2_cntr_irq_set()
40 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); pio2_cntr_irq_set()
/linux-4.1.27/arch/arm/mach-s3c64xx/
H A Dmach-crag6410-module.c295 u8 id; member in struct:__anon252
303 { .id = 0x01, .rev = 0xff, .name = "1250-EV1 Springbank" },
304 { .id = 0x02, .rev = 0xff, .name = "1251-EV1 Jura" },
305 { .id = 0x03, .rev = 0xff, .name = "1252-EV1 Glenlivet" },
306 { .id = 0x06, .rev = 0xff, .name = "WM8997-6721-CS96-EV1 Lapraoig" },
307 { .id = 0x07, .rev = 0xff, .name = "WM5110-6271 Deanston",
310 { .id = 0x08, .rev = 0xff, .name = "WM8903-6102 Tamdhu" },
311 { .id = 0x09, .rev = 0xff, .name = "WM1811A-6305 Adelphi" },
312 { .id = 0x0a, .rev = 0xff, .name = "WM8996-6272 Blackadder" },
313 { .id = 0x0b, .rev = 0xff, .name = "WM8994-6235 Benromach" },
314 { .id = 0x11, .rev = 0xff, .name = "6249-EV2 Glenfarclas", },
315 { .id = 0x14, .rev = 0xff, .name = "6271-EV1 Lochnagar" },
316 { .id = 0x15, .rev = 0xff, .name = "6320-EV1 Bells",
319 { .id = 0x21, .rev = 0xff, .name = "1275-EV1 Mortlach" },
320 { .id = 0x25, .rev = 0xff, .name = "1274-EV1 Glencadam" },
321 { .id = 0x31, .rev = 0xff, .name = "1253-EV1 Tomatin",
323 { .id = 0x32, .rev = 0xff, .name = "XXXX-EV1 Caol Illa" },
324 { .id = 0x33, .rev = 0xff, .name = "XXXX-EV1 Oban" },
325 { .id = 0x34, .rev = 0xff, .name = "WM0010-6320-CS42 Balblair",
328 { .id = 0x39, .rev = 0xff, .name = "1254-EV1 Dallas Dhu",
330 { .id = 0x3a, .rev = 0xff, .name = "1259-EV1 Tobermory",
332 { .id = 0x3b, .rev = 0xff, .name = "1255-EV1 Kilchoman",
334 { .id = 0x3c, .rev = 0xff, .name = "1273-EV1 Longmorn" },
335 { .id = 0x3d, .rev = 0xff, .name = "1277-EV1 Littlemill",
337 { .id = 0x3e, .rev = 0, .name = "WM5102-6271-EV1-CS127 Amrut",
340 { .id = 0x3e, .rev = -1, .name = "WM5102-6271-EV1-CS127 Amrut",
343 { .id = 0x3f, .rev = -1, .name = "WM2200-6271-CS90-M-REV1",
350 int ret, i, j, id, rev; wlf_gf_module_probe() local
358 id = (ret & 0xfe) >> 2; wlf_gf_module_probe()
361 if (id == gf_mods[i].id && (gf_mods[i].rev == 0xff || wlf_gf_module_probe()
380 id, rev + 1); wlf_gf_module_probe()
H A Ddev-audio.c31 switch (pdev->id) { s3c64xx_i2s_cfg_gpio()
46 pdev->id); s3c64xx_i2s_cfg_gpio()
67 .id = 0,
84 .id = 1,
110 .id = 2,
126 switch (pdev->id) { s3c64xx_pcm_cfg_gpio()
135 pdev->id); s3c64xx_pcm_cfg_gpio()
155 .id = 0,
176 .id = 1,
211 .id = -1,
/linux-4.1.27/tools/perf/scripts/python/
H A Dfailed-syscalls-by-pid.py42 common_callchain, id, ret):
49 syscalls[common_comm][common_pid][id][ret] += 1
51 syscalls[common_comm][common_pid][id][ret] = 1
55 id, ret):
74 for id in id_keys:
75 print " syscall: %-16s\n" % syscall_name(id),
76 ret_keys = syscalls[comm][pid][id].keys()
77 for ret, val in sorted(syscalls[comm][pid][id].iteritems(), key = lambda(k, v): (v, k), reverse = True):
H A Dexport-to-postgresql.py102 'id bigint NOT NULL,'
105 'id bigint NOT NULL,'
109 'id bigint NOT NULL,'
115 'id bigint NOT NULL,'
118 'id bigint NOT NULL,'
122 'id bigint NOT NULL,'
128 'id bigint NOT NULL,'
135 'id integer NOT NULL,'
140 'id bigint NOT NULL,'
159 'id bigint NOT NULL,'
183 'id bigint NOT NULL,'
188 'id bigint NOT NULL,'
202 'id,'
205 '(SELECT pid FROM threads WHERE id = thread_id) AS pid,'
206 '(SELECT tid FROM threads WHERE id = thread_id) AS tid,'
207 '(SELECT comm FROM comms WHERE id = comm_id) AS command,'
208 '(SELECT name FROM selected_events WHERE id = evsel_id) AS event,'
210 '(SELECT name FROM symbols WHERE id = symbol_id) AS symbol,'
212 '(SELECT short_name FROM dsos WHERE id = dso_id) AS dso_short_name,'
214 '(SELECT name FROM symbols WHERE id = to_symbol_id) AS to_symbol,'
216 '(SELECT short_name FROM dsos WHERE id = to_dso_id) AS to_dso_short_name,'
217 '(SELECT name FROM branch_types WHERE id = branch_type) AS branch_type_name,'
282 # id == 0 means unknown. It is easier to create records for them than replace the zeroes with NULLs
325 do_query(query, 'ALTER TABLE selected_events ADD PRIMARY KEY (id)')
326 do_query(query, 'ALTER TABLE machines ADD PRIMARY KEY (id)')
327 do_query(query, 'ALTER TABLE threads ADD PRIMARY KEY (id)')
328 do_query(query, 'ALTER TABLE comms ADD PRIMARY KEY (id)')
329 do_query(query, 'ALTER TABLE comm_threads ADD PRIMARY KEY (id)')
330 do_query(query, 'ALTER TABLE dsos ADD PRIMARY KEY (id)')
331 do_query(query, 'ALTER TABLE symbols ADD PRIMARY KEY (id)')
332 do_query(query, 'ALTER TABLE branch_types ADD PRIMARY KEY (id)')
333 do_query(query, 'ALTER TABLE samples ADD PRIMARY KEY (id)')
335 do_query(query, 'ALTER TABLE call_paths ADD PRIMARY KEY (id)')
336 do_query(query, 'ALTER TABLE calls ADD PRIMARY KEY (id)')
340 'ADD CONSTRAINT machinefk FOREIGN KEY (machine_id) REFERENCES machines (id),'
341 'ADD CONSTRAINT processfk FOREIGN KEY (process_id) REFERENCES threads (id)')
343 'ADD CONSTRAINT commfk FOREIGN KEY (comm_id) REFERENCES comms (id),'
344 'ADD CONSTRAINT threadfk FOREIGN KEY (thread_id) REFERENCES threads (id)')
346 'ADD CONSTRAINT machinefk FOREIGN KEY (machine_id) REFERENCES machines (id)')
348 'ADD CONSTRAINT dsofk FOREIGN KEY (dso_id) REFERENCES dsos (id)')
350 'ADD CONSTRAINT evselfk FOREIGN KEY (evsel_id) REFERENCES selected_events (id),'
351 'ADD CONSTRAINT machinefk FOREIGN KEY (machine_id) REFERENCES machines (id),'
352 'ADD CONSTRAINT threadfk FOREIGN KEY (thread_id) REFERENCES threads (id),'
353 'ADD CONSTRAINT commfk FOREIGN KEY (comm_id) REFERENCES comms (id),'
354 'ADD CONSTRAINT dsofk FOREIGN KEY (dso_id) REFERENCES dsos (id),'
355 'ADD CONSTRAINT symbolfk FOREIGN KEY (symbol_id) REFERENCES symbols (id),'
356 'ADD CONSTRAINT todsofk FOREIGN KEY (to_dso_id) REFERENCES dsos (id),'
357 'ADD CONSTRAINT tosymbolfk FOREIGN KEY (to_symbol_id) REFERENCES symbols (id)')
360 'ADD CONSTRAINT parentfk FOREIGN KEY (parent_id) REFERENCES call_paths (id),'
361 'ADD CONSTRAINT symbolfk FOREIGN KEY (symbol_id) REFERENCES symbols (id)')
363 'ADD CONSTRAINT threadfk FOREIGN KEY (thread_id) REFERENCES threads (id),'
364 'ADD CONSTRAINT commfk FOREIGN KEY (comm_id) REFERENCES comms (id),'
365 'ADD CONSTRAINT call_pathfk FOREIGN KEY (call_path_id) REFERENCES call_paths (id),'
366 'ADD CONSTRAINT callfk FOREIGN KEY (call_id) REFERENCES samples (id),'
367 'ADD CONSTRAINT returnfk FOREIGN KEY (return_id) REFERENCES samples (id),'
368 'ADD CONSTRAINT parent_call_pathfk FOREIGN KEY (parent_call_path_id) REFERENCES call_paths (id)')
H A Dsctop.py47 common_callchain, id, args):
52 syscalls[id] += 1
54 syscalls[id] = 1
58 id, args):
73 for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \
76 print "%-40s %10d\n" % (syscall_name(id), val),
H A Dsyscall-counts-by-pid.py41 common_callchain, id, args):
47 syscalls[common_comm][common_pid][id] += 1
49 syscalls[common_comm][common_pid][id] = 1
53 id, args):
72 for id, val in sorted(syscalls[comm][pid].iteritems(), \
74 print " %-38s %10d\n" % (syscall_name(id), val),
H A Dsyscall-counts.py38 common_callchain, id, args):
43 syscalls[id] += 1
45 syscalls[id] = 1
49 id, args):
62 for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \
64 print "%-40s %10d\n" % (syscall_name(id), val),
/linux-4.1.27/drivers/ssb/
H A Ddriver_chipcommon_sflash.c27 u32 id; member in struct:ssb_sflash_tbl_e
91 u32 id, id2; ssb_sflash_init() local
99 id = chipco_read32(cc, SSB_CHIPCO_FLASHDATA); ssb_sflash_init()
105 switch (id) { ssb_sflash_init()
108 if (e->id == id2) ssb_sflash_init()
116 if (e->id == id) ssb_sflash_init()
122 pr_err("Unsupported ST serial flash (id: 0x%X, id2: 0x%X)\n", ssb_sflash_init()
123 id, id2); ssb_sflash_init()
130 id = chipco_read32(cc, SSB_CHIPCO_FLASHDATA) & 0x3c; ssb_sflash_init()
133 if (e->id == id) ssb_sflash_init()
137 pr_err("Unsupported Atmel serial flash (id: 0x%X)\n", ssb_sflash_init()
138 id); ssb_sflash_init()
/linux-4.1.27/arch/um/kernel/skas/
H A Dmmu.c61 to_mm->id.stack = stack; init_new_context()
66 to_mm->id.u.pid = copy_context_skas0(stack, init_new_context()
67 from_mm->id.u.pid); init_new_context()
68 else to_mm->id.u.pid = start_userspace(stack); init_new_context()
70 if (to_mm->id.u.pid < 0) { init_new_context()
71 ret = to_mm->id.u.pid; init_new_context()
85 if (to_mm->id.stack != 0) init_new_context()
86 free_page(to_mm->id.stack); init_new_context()
100 ret = init_stub_pte(mm, STUB_DATA, mm->context.id.stack); uml_setup_stubs()
105 mm->context.stub_pages[1] = virt_to_page(mm->context.id.stack); uml_setup_stubs()
147 if (mmu->id.u.pid < 2) { destroy_context()
149 mmu->id.u.pid); destroy_context()
152 os_kill_ptraced_process(mmu->id.u.pid, 1); destroy_context()
154 free_page(mmu->id.stack); destroy_context()
/linux-4.1.27/drivers/bcma/
H A Ddriver_chipcommon_sflash.c28 u32 id; member in struct:bcma_sflash_tbl_e
93 u32 id, id2; bcma_sflash_init() local
101 id = bcma_cc_read32(cc, BCMA_CC_FLASHDATA); bcma_sflash_init()
107 switch (id) { bcma_sflash_init()
110 if (e->id == id2) bcma_sflash_init()
118 if (e->id == id) bcma_sflash_init()
124 bcma_err(bus, "Unsupported ST serial flash (id: 0x%X, id2: 0x%X)\n", id, id2); bcma_sflash_init()
131 id = bcma_cc_read32(cc, BCMA_CC_FLASHDATA) & 0x3c; bcma_sflash_init()
134 if (e->id == id) bcma_sflash_init()
138 bcma_err(bus, "Unsupported Atmel serial flash (id: 0x%X)\n", id); bcma_sflash_init()
H A Dscan.c19 u16 id; member in struct:bcma_device_id_name
110 static const char *bcma_device_name(const struct bcma_device_id *id) bcma_device_name() argument
116 switch (id->manuf) { bcma_device_name()
134 if (names[i].id == id->id) bcma_device_name()
266 if (core->id.id == coreid) bcma_find_core_reverse()
296 core->id.class = (cia & SCAN_CIA_CLASS) >> SCAN_CIA_CLASS_SHIFT; bcma_get_next_core()
297 core->id.id = (cia & SCAN_CIA_ID) >> SCAN_CIA_ID_SHIFT; bcma_get_next_core()
298 core->id.manuf = (cia & SCAN_CIA_MANUF) >> SCAN_CIA_MANUF_SHIFT; bcma_get_next_core()
303 core->id.rev = (cib & SCAN_CIB_REV) >> SCAN_CIB_REV_SHIFT; bcma_get_next_core()
305 if (((core->id.manuf == BCMA_MANUF_ARM) && bcma_get_next_core()
306 (core->id.id == 0xFFF)) || bcma_get_next_core()
315 switch (core->id.id) { bcma_get_next_core()
337 match->manuf != core->id.manuf) || bcma_get_next_core()
338 (match->id != BCMA_ANY_ID && match->id != core->id.id) || bcma_get_next_core()
339 (match->rev != BCMA_ANY_REV && match->rev != core->id.rev) || bcma_get_next_core()
340 (match->class != BCMA_ANY_CLASS && match->class != core->id.class) bcma_get_next_core()
447 chipinfo->id = (tmp & BCMA_CC_ID_ID) >> BCMA_CC_ID_ID_SHIFT; bcma_detect_chip()
452 (chipinfo->id > 0x9999) ? "%d" : "0x%04X", chipinfo->id); bcma_detect_chip()
453 bcma_info(bus, "Found chip with id %s, rev 0x%02X and package 0x%02X\n", bcma_detect_chip()
507 other_core = bcma_find_core_reverse(bus, core->id.id); bcma_bus_scan()
511 bcma_info(bus, "Core %d found: %s (manuf 0x%03X, id 0x%03X, rev 0x%02X, class 0x%X)\n", bcma_bus_scan()
512 core->core_index, bcma_device_name(&core->id), bcma_bus_scan()
513 core->id.manuf, core->id.id, core->id.rev, bcma_bus_scan()
514 core->id.class); bcma_bus_scan()
/linux-4.1.27/drivers/base/
H A Disa.c20 unsigned int id; member in struct:isa_dev
31 isa_driver->match(dev, to_isa_dev(dev)->id)) isa_bus_match()
43 return isa_driver->probe(dev, to_isa_dev(dev)->id); isa_bus_probe()
53 return isa_driver->remove(dev, to_isa_dev(dev)->id); isa_bus_remove()
63 isa_driver->shutdown(dev, to_isa_dev(dev)->id); isa_bus_shutdown()
71 return isa_driver->suspend(dev, to_isa_dev(dev)->id, state); isa_bus_suspend()
81 return isa_driver->resume(dev, to_isa_dev(dev)->id); isa_bus_resume()
117 unsigned int id; isa_register_driver() local
126 for (id = 0; id < ndev; id++) { isa_register_driver()
139 isa_driver->driver.name, id); isa_register_driver()
142 isa_dev->id = id; isa_register_driver()
/linux-4.1.27/include/soc/tegra/
H A Dpmc.h108 int tegra_powergate_is_powered(int id);
109 int tegra_powergate_power_on(int id);
110 int tegra_powergate_power_off(int id);
111 int tegra_powergate_remove_clamping(int id);
114 int tegra_powergate_sequence_power_up(int id, struct clk *clk,
117 int tegra_io_rail_power_on(int id);
118 int tegra_io_rail_power_off(int id);
120 static inline int tegra_powergate_is_powered(int id) tegra_powergate_is_powered() argument
125 static inline int tegra_powergate_power_on(int id) tegra_powergate_power_on() argument
130 static inline int tegra_powergate_power_off(int id) tegra_powergate_power_off() argument
135 static inline int tegra_powergate_remove_clamping(int id) tegra_powergate_remove_clamping() argument
140 static inline int tegra_powergate_sequence_power_up(int id, struct clk *clk, tegra_powergate_sequence_power_up() argument
146 static inline int tegra_io_rail_power_on(int id) tegra_io_rail_power_on() argument
151 static inline int tegra_io_rail_power_off(int id) tegra_io_rail_power_off() argument
/linux-4.1.27/include/uapi/rdma/
H A Drdma_user_cm.h90 __u32 id; member in struct:rdma_ucm_create_id_resp
95 __u32 id; member in struct:rdma_ucm_destroy_id
106 __u32 id; member in struct:rdma_ucm_bind_ip
110 __u32 id; member in struct:rdma_ucm_bind
119 __u32 id; member in struct:rdma_ucm_resolve_ip
124 __u32 id; member in struct:rdma_ucm_resolve_addr
134 __u32 id; member in struct:rdma_ucm_resolve_route
146 __u32 id; member in struct:rdma_ucm_query
202 __u32 id; member in struct:rdma_ucm_connect
207 __u32 id; member in struct:rdma_ucm_listen
214 __u32 id; member in struct:rdma_ucm_accept
219 __u32 id; member in struct:rdma_ucm_reject
226 __u32 id; member in struct:rdma_ucm_disconnect
231 __u32 id; member in struct:rdma_ucm_init_qp_attr
236 __u32 id; member in struct:rdma_ucm_notify
244 __u32 id; member in struct:rdma_ucm_join_ip_mcast
250 __u32 id; member in struct:rdma_ucm_join_mcast
262 __u32 id; member in struct:rdma_ucm_event_resp
287 __u32 id; member in struct:rdma_ucm_set_option
295 __u32 id; member in struct:rdma_ucm_migrate_id
/linux-4.1.27/arch/mips/include/asm/sn/
H A Dtypes.h16 typedef signed short nasid_t; /* node id in numa-as-id space */
17 typedef signed short cnodeid_t; /* node id in compact-id space */
20 typedef signed short cmoduleid_t; /* kernel compact module id type */
/linux-4.1.27/arch/mips/kernel/
H A Dmips_machine.c24 __init int mips_machtype_setup(char *id) mips_machtype_setup() argument
32 if (strcmp(mach->mach_id, id) == 0) { for_each_machine()
38 pr_err("MIPS: no machine found for id '%s', supported machines:\n", id);
39 pr_err("%-24s %s\n", "id", "name");
/linux-4.1.27/drivers/input/joystick/
H A Dgf2k.c85 unsigned char id; member in struct:gf2k
179 for (i = 0; i < 4 && i < gf2k_axes[gf2k->id]; i++) gf2k_read()
182 for (i = 0; i < 2 && i < gf2k_axes[gf2k->id] - 4; i++) gf2k_read()
187 for (i = 0; i < gf2k_hats[gf2k->id]; i++) gf2k_read()
192 for (i = 0; i < gf2k_joys[gf2k->id]; i++) gf2k_read()
195 for (i = 0; i < gf2k_pads[gf2k->id]; i++) gf2k_read()
212 if (gf2k_read_packet(gf2k->gameport, gf2k_length[gf2k->id], data) < gf2k_length[gf2k->id]) gf2k_poll()
234 * gf2k_connect() probes for Genius id joysticks.
273 if (!(gf2k->id = GB(7,2,0) | GB(3,3,2) | GB(0,3,5))) { gf2k_connect()
279 if ((gf2k->id != (GB(19,2,0) | GB(15,3,2) | GB(12,3,5))) && gf2k_connect()
280 (gf2k->id != (GB(31,2,0) | GB(27,3,2) | GB(24,3,5)))) { gf2k_connect()
285 gf2k->id = 6; gf2k_connect()
288 if (gf2k->id > GF2K_ID_MAX || !gf2k_axes[gf2k->id]) { gf2k_connect()
289 printk(KERN_WARNING "gf2k.c: Not yet supported joystick on %s. [id: %d type:%s]\n", gf2k_connect()
290 gameport->phys, gf2k->id, gf2k->id > GF2K_ID_MAX ? "Unknown" : gf2k_names[gf2k->id]); gf2k_connect()
300 gf2k->length = gf2k_lens[gf2k->id]; gf2k_connect()
302 input_dev->name = gf2k_names[gf2k->id]; gf2k_connect()
304 input_dev->id.bustype = BUS_GAMEPORT; gf2k_connect()
305 input_dev->id.vendor = GAMEPORT_ID_VENDOR_GENIUS; gf2k_connect()
306 input_dev->id.product = gf2k->id; gf2k_connect()
307 input_dev->id.version = 0x0100; gf2k_connect()
317 for (i = 0; i < gf2k_axes[gf2k->id]; i++) gf2k_connect()
320 for (i = 0; i < gf2k_hats[gf2k->id]; i++) gf2k_connect()
323 for (i = 0; i < gf2k_joys[gf2k->id]; i++) gf2k_connect()
326 for (i = 0; i < gf2k_pads[gf2k->id]; i++) gf2k_connect()
332 for (i = 0; i < gf2k_axes[gf2k->id]; i++) { gf2k_connect()
/linux-4.1.27/drivers/media/pci/saa7164/
H A Dsaa7164-cards.c64 .id = 0x1d,
71 .id = 0x04,
78 .id = 0x1b,
85 .id = 0x1e,
92 .id = 0x1f,
110 .id = 0x06,
117 .id = 0x04,
124 .id = 0x05,
131 .id = 0x1e,
138 .id = 0x1f,
156 .id = 0x1d,
163 .id = 0x04,
170 .id = 0x05,
177 .id = 0x1b,
184 .id = 0x1c,
191 .id = 0x1e,
198 .id = 0x1f,
216 .id = 0x1d,
223 .id = 0x04,
230 .id = 0x05,
237 .id = 0x1b,
244 .id = 0x1c,
251 .id = 0x1e,
258 .id = 0x1f,
276 .id = 0x22,
283 .id = 0x04,
290 .id = 0x07,
297 .id = 0x08,
304 .id = 0x1e,
311 .id = 0x20,
318 .id = 0x23,
336 .id = 0x28,
343 .id = 0x04,
350 .id = 0x07,
357 .id = 0x08,
364 .id = 0x24,
371 .id = 0x26,
378 .id = 0x29,
396 .id = 0x26,
403 .id = 0x04,
410 .id = 0x07,
417 .id = 0x08,
424 .id = 0x22,
431 .id = 0x24,
438 .id = 0x27,
452 .id = 0x23,
459 .id = 0x04,
466 .id = 0x05,
473 .id = 0x21,
480 .id = 0x22,
487 .id = 0x24,
494 .id = 0x25,
688 * id, regardless of how the physical implementation occurs across
713 return unit->id; saa7164_i2caddr_to_unitid()
767 if (unitid == unit->id) saa7164_unitid_name()
/linux-4.1.27/drivers/pci/
H A Dpci-stub.c9 * Usage is simple, allocate a new id to the stub driver and bind the
29 static int pci_stub_probe(struct pci_dev *dev, const struct pci_device_id *id) pci_stub_probe() argument
37 .id_table = NULL, /* only dynamic id's */
43 char *p, *id; pci_stub_init() local
56 while ((id = strsep(&p, ","))) { pci_stub_init()
61 if (!strlen(id)) pci_stub_init()
64 fields = sscanf(id, "%x:%x:%x:%x:%x:%x", pci_stub_init()
70 "pci-stub: invalid id string \"%s\"\n", id); pci_stub_init()
82 "pci-stub: failed to add dynamic id (%d)\n", rc); pci_stub_init()
/linux-4.1.27/drivers/thermal/ti-soc-thermal/
H A Dti-thermal.h87 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
88 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
89 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
90 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
91 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
94 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) ti_thermal_expose_sensor() argument
100 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) ti_thermal_remove_sensor() argument
106 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) ti_thermal_report_sensor_temperature() argument
112 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) ti_thermal_register_cpu_cooling() argument
118 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) ti_thermal_unregister_cpu_cooling() argument
H A Dti-bandgap.c80 #define RMW_BITS(bgp, id, reg, mask, val) \
85 t = bgp->conf->sensors[(id)].registers; \
155 * @id: bandgap sensor id
164 static u32 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id) ti_bandgap_read_temp() argument
169 tsr = bgp->conf->sensors[id].registers; ti_bandgap_read_temp()
173 RMW_BITS(bgp, id, bgap_mask_ctrl, mask_freeze_mask, 1); ti_bandgap_read_temp()
190 RMW_BITS(bgp, id, bgap_mask_ctrl, mask_freeze_mask, 0); ti_bandgap_read_temp()
396 * @id: bandgap sensor id
403 static void ti_bandgap_unmask_interrupts(struct ti_bandgap *bgp, int id, ti_bandgap_unmask_interrupts() argument
410 temp = ti_bandgap_read_temp(bgp, id); ti_bandgap_unmask_interrupts()
412 tsr = bgp->conf->sensors[id].registers; ti_bandgap_unmask_interrupts()
430 * @id: bandgap sensor id
443 static int ti_bandgap_update_alert_threshold(struct ti_bandgap *bgp, int id, ti_bandgap_update_alert_threshold() argument
446 struct temp_sensor_data *ts_data = bgp->conf->sensors[id].ts_data; ti_bandgap_update_alert_threshold()
451 tsr = bgp->conf->sensors[id].registers; ti_bandgap_update_alert_threshold()
527 ti_bandgap_unmask_interrupts(bgp, id, t_hot, t_cold); ti_bandgap_update_alert_threshold()
535 * @id: bandgap sensor id
537 * Checks if the bandgap pointer is valid and if the sensor id is also
541 * @id cannot index @bgp sensors.
543 static inline int ti_bandgap_validate(struct ti_bandgap *bgp, int id) ti_bandgap_validate() argument
553 if ((id < 0) || (id >= bgp->conf->sensor_count)) { ti_bandgap_validate()
554 dev_err(bgp->dev, "%s: sensor id out of range (%d)\n", ti_bandgap_validate()
555 __func__, id); ti_bandgap_validate()
566 * @id: bandgap sensor id
578 static int _ti_bandgap_write_threshold(struct ti_bandgap *bgp, int id, int val, _ti_bandgap_write_threshold() argument
586 ret = ti_bandgap_validate(bgp, id); _ti_bandgap_write_threshold()
595 ts_data = bgp->conf->sensors[id].ts_data; _ti_bandgap_write_threshold()
596 tsr = bgp->conf->sensors[id].registers; _ti_bandgap_write_threshold()
613 ret = ti_bandgap_update_alert_threshold(bgp, id, adc_val, hot); _ti_bandgap_write_threshold()
623 * @id: bandgap sensor id
635 static int _ti_bandgap_read_threshold(struct ti_bandgap *bgp, int id, _ti_bandgap_read_threshold() argument
642 ret = ti_bandgap_validate(bgp, id); _ti_bandgap_read_threshold()
651 tsr = bgp->conf->sensors[id].registers; _ti_bandgap_read_threshold()
677 * @id: sensor id
682 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot) ti_bandgap_read_thot() argument
684 return _ti_bandgap_read_threshold(bgp, id, thot, true); ti_bandgap_read_thot()
690 * @id: sensor id
695 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val) ti_bandgap_write_thot() argument
697 return _ti_bandgap_write_threshold(bgp, id, val, true); ti_bandgap_write_thot()
703 * @id: sensor id
708 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold) ti_bandgap_read_tcold() argument
710 return _ti_bandgap_read_threshold(bgp, id, tcold, false); ti_bandgap_read_tcold()
716 * @id: sensor id
721 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val) ti_bandgap_write_tcold() argument
723 return _ti_bandgap_write_threshold(bgp, id, val, false); ti_bandgap_write_tcold()
729 * @id: sensor id
732 static void ti_bandgap_read_counter(struct ti_bandgap *bgp, int id, ti_bandgap_read_counter() argument
738 tsr = bgp->conf->sensors[id].registers; ti_bandgap_read_counter()
749 * @id: sensor id
752 static void ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id, ti_bandgap_read_counter_delay() argument
758 tsr = bgp->conf->sensors[id].registers; ti_bandgap_read_counter_delay()
791 * @id: sensor id
796 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, ti_bandgap_read_update_interval() argument
801 ret = ti_bandgap_validate(bgp, id); ti_bandgap_read_update_interval()
812 ti_bandgap_read_counter(bgp, id, interval); ti_bandgap_read_update_interval()
816 ti_bandgap_read_counter_delay(bgp, id, interval); ti_bandgap_read_update_interval()
824 * @id: sensor id
829 static int ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id, ti_bandgap_write_counter_delay() argument
859 RMW_BITS(bgp, id, bgap_mask_ctrl, mask_counter_delay_mask, rval); ti_bandgap_write_counter_delay()
868 * @id: sensor id
871 static void ti_bandgap_write_counter(struct ti_bandgap *bgp, int id, ti_bandgap_write_counter() argument
876 RMW_BITS(bgp, id, bgap_counter, counter_mask, interval); ti_bandgap_write_counter()
883 * @id: sensor id
889 int id, u32 interval) ti_bandgap_write_update_interval()
891 int ret = ti_bandgap_validate(bgp, id); ti_bandgap_write_update_interval()
902 ti_bandgap_write_counter(bgp, id, interval); ti_bandgap_write_update_interval()
906 ret = ti_bandgap_write_counter_delay(bgp, id, interval); ti_bandgap_write_update_interval()
914 * @id: sensor id
919 int ti_bandgap_read_temperature(struct ti_bandgap *bgp, int id, ti_bandgap_read_temperature() argument
925 ret = ti_bandgap_validate(bgp, id); ti_bandgap_read_temperature()
930 temp = ti_bandgap_read_temp(bgp, id); ti_bandgap_read_temperature()
946 * @id: sensor id
951 int ti_bandgap_set_sensor_data(struct ti_bandgap *bgp, int id, void *data) ti_bandgap_set_sensor_data() argument
953 int ret = ti_bandgap_validate(bgp, id); ti_bandgap_set_sensor_data()
957 bgp->regval[id].data = data; ti_bandgap_set_sensor_data()
966 * @id: sensor id
968 * Return: data stored by set function with sensor id on success or NULL
970 void *ti_bandgap_get_sensor_data(struct ti_bandgap *bgp, int id) ti_bandgap_get_sensor_data() argument
972 int ret = ti_bandgap_validate(bgp, id); ti_bandgap_get_sensor_data()
976 return bgp->regval[id].data; ti_bandgap_get_sensor_data()
984 * @id: sensor id which it is desired to read 1 temperature
992 ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id) ti_bandgap_force_single_read() argument
998 RMW_BITS(bgp, id, bgap_mode_ctrl, mode_ctrl_mask, 0); ti_bandgap_force_single_read()
1001 RMW_BITS(bgp, id, temp_sensor_ctrl, bgap_soc_mask, 1); ti_bandgap_force_single_read()
1003 temp = ti_bandgap_read_temp(bgp, id); ti_bandgap_force_single_read()
1006 temp = ti_bandgap_read_temp(bgp, id); ti_bandgap_force_single_read()
1010 RMW_BITS(bgp, id, temp_sensor_ctrl, bgap_soc_mask, 0); ti_bandgap_force_single_read()
1042 * @id: id of the individual sensor
1054 int ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend) ti_bandgap_get_trend() argument
1060 ret = ti_bandgap_validate(bgp, id); ti_bandgap_get_trend()
1072 tsr = bgp->conf->sensors[id].registers; ti_bandgap_get_trend()
1075 RMW_BITS(bgp, id, bgap_mask_ctrl, mask_freeze_mask, 1); ti_bandgap_get_trend()
1096 ret = ti_bandgap_read_update_interval(bgp, id, &interval); ti_bandgap_get_trend()
1110 RMW_BITS(bgp, id, bgap_mask_ctrl, mask_freeze_mask, 0); ti_bandgap_get_trend()
888 ti_bandgap_write_update_interval(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_update_interval() argument
/linux-4.1.27/Documentation/video4linux/
H A Dextract_xc3028.pl163 # Firmware 0, type: BASE FW F8MHZ (0x00000003), id: (0000000000000000), size: 6635
172 # Firmware 1, type: BASE FW F8MHZ MTS (0x00000007), id: (0000000000000000), size: 6635
181 # Firmware 2, type: BASE FW FM (0x00000401), id: (0000000000000000), size: 6525
190 # Firmware 3, type: BASE FW FM INPUT1 (0x00000c01), id: (0000000000000000), size: 6539
199 # Firmware 4, type: BASE FW (0x00000001), id: (0000000000000000), size: 6633
208 # Firmware 5, type: BASE FW MTS (0x00000005), id: (0000000000000000), size: 6617
217 # Firmware 6, type: STD FW (0x00000000), id: PAL/BG A2/A (0000000100000007), size: 161
226 # Firmware 7, type: STD FW MTS (0x00000004), id: PAL/BG A2/A (0000000100000007), size: 169
235 # Firmware 8, type: STD FW (0x00000000), id: PAL/BG A2/B (0000000200000007), size: 161
244 # Firmware 9, type: STD FW MTS (0x00000004), id: PAL/BG A2/B (0000000200000007), size: 169
253 # Firmware 10, type: STD FW (0x00000000), id: PAL/BG NICAM/A (0000000400000007), size: 161
262 # Firmware 11, type: STD FW MTS (0x00000004), id: PAL/BG NICAM/A (0000000400000007), size: 169
271 # Firmware 12, type: STD FW (0x00000000), id: PAL/BG NICAM/B (0000000800000007), size: 161
280 # Firmware 13, type: STD FW MTS (0x00000004), id: PAL/BG NICAM/B (0000000800000007), size: 169
289 # Firmware 14, type: STD FW (0x00000000), id: PAL/DK A2 (00000003000000e0), size: 161
298 # Firmware 15, type: STD FW MTS (0x00000004), id: PAL/DK A2 (00000003000000e0), size: 169
307 # Firmware 16, type: STD FW (0x00000000), id: PAL/DK NICAM (0000000c000000e0), size: 161
316 # Firmware 17, type: STD FW MTS (0x00000004), id: PAL/DK NICAM (0000000c000000e0), size: 169
325 # Firmware 18, type: STD FW (0x00000000), id: SECAM/K1 (0000000000200000), size: 161
334 # Firmware 19, type: STD FW MTS (0x00000004), id: SECAM/K1 (0000000000200000), size: 169
343 # Firmware 20, type: STD FW (0x00000000), id: SECAM/K3 (0000000004000000), size: 161
352 # Firmware 21, type: STD FW MTS (0x00000004), id: SECAM/K3 (0000000004000000), size: 169
361 # Firmware 22, type: STD FW D2633 DTV6 ATSC (0x00010030), id: (0000000000000000), size: 149
370 # Firmware 23, type: STD FW D2620 DTV6 QAM (0x00000068), id: (0000000000000000), size: 149
379 # Firmware 24, type: STD FW D2633 DTV6 QAM (0x00000070), id: (0000000000000000), size: 149
388 # Firmware 25, type: STD FW D2620 DTV7 (0x00000088), id: (0000000000000000), size: 149
397 # Firmware 26, type: STD FW D2633 DTV7 (0x00000090), id: (0000000000000000), size: 149
406 # Firmware 27, type: STD FW D2620 DTV78 (0x00000108), id: (0000000000000000), size: 149
415 # Firmware 28, type: STD FW D2633 DTV78 (0x00000110), id: (0000000000000000), size: 149
424 # Firmware 29, type: STD FW D2620 DTV8 (0x00000208), id: (0000000000000000), size: 149
433 # Firmware 30, type: STD FW D2633 DTV8 (0x00000210), id: (0000000000000000), size: 149
442 # Firmware 31, type: STD FW FM (0x00000400), id: (0000000000000000), size: 135
451 # Firmware 32, type: STD FW (0x00000000), id: PAL/I (0000000000000010), size: 161
460 # Firmware 33, type: STD FW MTS (0x00000004), id: PAL/I (0000000000000010), size: 169
469 # Firmware 34, type: STD FW (0x00000000), id: SECAM/L AM (0000001000400000), size: 169
473 # Firmware 35, type: STD FW (0x00000000), id: SECAM/L NICAM (0000000c00400000), size: 161
482 # Firmware 36, type: STD FW (0x00000000), id: SECAM/Lc (0000000000800000), size: 161
491 # Firmware 37, type: STD FW (0x00000000), id: NTSC/M Kr (0000000000008000), size: 161
500 # Firmware 38, type: STD FW LCD (0x00001000), id: NTSC/M Kr (0000000000008000), size: 161
509 # Firmware 39, type: STD FW LCD NOGD (0x00003000), id: NTSC/M Kr (0000000000008000), size: 161
518 # Firmware 40, type: STD FW MTS (0x00000004), id: NTSC/M Kr (0000000000008000), size: 169
527 # Firmware 41, type: STD FW (0x00000000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
536 # Firmware 42, type: STD FW LCD (0x00001000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
545 # Firmware 43, type: STD FW LCD NOGD (0x00003000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
554 # Firmware 44, type: STD FW (0x00000000), id: NTSC/M Jp (0000000000002000), size: 161
563 # Firmware 45, type: STD FW MTS (0x00000004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
572 # Firmware 46, type: STD FW MTS LCD (0x00001004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
581 # Firmware 47, type: STD FW MTS LCD NOGD (0x00003004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
590 # Firmware 48, type: SCODE FW HAS IF (0x60000000), IF = 3.28 MHz id: (0000000000000000), size: 192
600 # Firmware 49, type: SCODE FW HAS IF (0x60000000), IF = 3.30 MHz id: (0000000000000000), size: 192
610 # Firmware 50, type: SCODE FW HAS IF (0x60000000), IF = 3.44 MHz id: (0000000000000000), size: 192
620 # Firmware 51, type: SCODE FW HAS IF (0x60000000), IF = 3.46 MHz id: (0000000000000000), size: 192
630 # Firmware 52, type: SCODE FW DTV6 ATSC OREN36 HAS IF (0x60210020), IF = 3.80 MHz id: (0000000000000000), size: 192
640 # Firmware 53, type: SCODE FW HAS IF (0x60000000), IF = 4.00 MHz id: (0000000000000000), size: 192
650 # Firmware 54, type: SCODE FW DTV6 ATSC TOYOTA388 HAS IF (0x60410020), IF = 4.08 MHz id: (0000000000000000), size: 192
660 # Firmware 55, type: SCODE FW HAS IF (0x60000000), IF = 4.20 MHz id: (0000000000000000), size: 192
670 # Firmware 56, type: SCODE FW MONO HAS IF (0x60008000), IF = 4.32 MHz id: NTSC/M Kr (0000000000008000), size: 192
680 # Firmware 57, type: SCODE FW HAS IF (0x60000000), IF = 4.45 MHz id: (0000000000000000), size: 192
690 # Firmware 58, type: SCODE FW MTS LCD NOGD MONO IF HAS IF (0x6002b004), IF = 4.50 MHz id: NTSC PAL/M PAL/N (000000000000b700), size: 192
700 # Firmware 59, type: SCODE FW LCD NOGD IF HAS IF (0x60023000), IF = 4.60 MHz id: NTSC/M Kr (0000000000008000), size: 192
710 # Firmware 60, type: SCODE FW DTV6 QAM DTV7 DTV78 DTV8 ZARLINK456 HAS IF (0x620003e0), IF = 4.76 MHz id: (0000000000000000), size: 192
720 # Firmware 61, type: SCODE FW HAS IF (0x60000000), IF = 4.94 MHz id: (0000000000000000), size: 192
730 # Firmware 62, type: SCODE FW HAS IF (0x60000000), IF = 5.26 MHz id: (0000000000000000), size: 192
740 # Firmware 63, type: SCODE FW MONO HAS IF (0x60008000), IF = 5.32 MHz id: PAL/BG A2 NICAM (0000000f00000007), size: 192
750 # Firmware 64, type: SCODE FW DTV7 DTV78 DTV8 DIBCOM52 CHINA HAS IF (0x65000380), IF = 5.40 MHz id: (0000000000000000), size: 192
760 # Firmware 65, type: SCODE FW DTV6 ATSC OREN538 HAS IF (0x60110020), IF = 5.58 MHz id: (0000000000000000), size: 192
770 # Firmware 66, type: SCODE FW HAS IF (0x60000000), IF = 5.64 MHz id: PAL/BG A2 (0000000300000007), size: 192
780 # Firmware 67, type: SCODE FW HAS IF (0x60000000), IF = 5.74 MHz id: PAL/BG NICAM (0000000c00000007), size: 192
790 # Firmware 68, type: SCODE FW HAS IF (0x60000000), IF = 5.90 MHz id: (0000000000000000), size: 192
800 # Firmware 69, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.00 MHz id: PAL/DK PAL/I SECAM/K3 SECAM/L SECAM/Lc NICAM (0000000c04c000f0), size: 192
810 # Firmware 70, type: SCODE FW DTV6 QAM ATSC LG60 F6MHZ HAS IF (0x68050060), IF = 6.20 MHz id: (0000000000000000), size: 192
820 # Firmware 71, type: SCODE FW HAS IF (0x60000000), IF = 6.24 MHz id: PAL/I (0000000000000010), size: 192
830 # Firmware 72, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.32 MHz id: SECAM/K1 (0000000000200000), size: 192
840 # Firmware 73, type: SCODE FW HAS IF (0x60000000), IF = 6.34 MHz id: SECAM/K1 (0000000000200000), size: 192
850 # Firmware 74, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.50 MHz id: PAL/DK SECAM/K3 SECAM/L NICAM (0000000c044000e0), size: 192
860 # Firmware 75, type: SCODE FW DTV6 ATSC ATI638 HAS IF (0x60090020), IF = 6.58 MHz id: (0000000000000000), size: 192
870 # Firmware 76, type: SCODE FW HAS IF (0x60000000), IF = 6.60 MHz id: PAL/DK A2 (00000003000000e0), size: 192
880 # Firmware 77, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.68 MHz id: PAL/DK A2 (00000003000000e0), size: 192
890 # Firmware 78, type: SCODE FW DTV6 ATSC TOYOTA794 HAS IF (0x60810020), IF = 8.14 MHz id: (0000000000000000), size: 192
900 # Firmware 79, type: SCODE FW HAS IF (0x60000000), IF = 8.20 MHz id: (0000000000000000), size: 192
929 # Firmware 0, type: BASE FW F8MHZ (0x00000003), id: (0000000000000000), size: 8718
938 # Firmware 1, type: BASE FW F8MHZ MTS (0x00000007), id: (0000000000000000), size: 8712
947 # Firmware 2, type: BASE FW FM (0x00000401), id: (0000000000000000), size: 8562
956 # Firmware 3, type: BASE FW FM INPUT1 (0x00000c01), id: (0000000000000000), size: 8576
965 # Firmware 4, type: BASE FW (0x00000001), id: (0000000000000000), size: 8706
974 # Firmware 5, type: BASE FW MTS (0x00000005), id: (0000000000000000), size: 8682
983 # Firmware 6, type: STD FW (0x00000000), id: PAL/BG A2/A (0000000100000007), size: 161
992 # Firmware 7, type: STD FW MTS (0x00000004), id: PAL/BG A2/A (0000000100000007), size: 169
1001 # Firmware 8, type: STD FW (0x00000000), id: PAL/BG A2/B (0000000200000007), size: 161
1010 # Firmware 9, type: STD FW MTS (0x00000004), id: PAL/BG A2/B (0000000200000007), size: 169
1019 # Firmware 10, type: STD FW (0x00000000), id: PAL/BG NICAM/A (0000000400000007), size: 161
1028 # Firmware 11, type: STD FW MTS (0x00000004), id: PAL/BG NICAM/A (0000000400000007), size: 169
1037 # Firmware 12, type: STD FW (0x00000000), id: PAL/BG NICAM/B (0000000800000007), size: 161
1046 # Firmware 13, type: STD FW MTS (0x00000004), id: PAL/BG NICAM/B (0000000800000007), size: 169
1055 # Firmware 14, type: STD FW (0x00000000), id: PAL/DK A2 (00000003000000e0), size: 161
1064 # Firmware 15, type: STD FW MTS (0x00000004), id: PAL/DK A2 (00000003000000e0), size: 169
1073 # Firmware 16, type: STD FW (0x00000000), id: PAL/DK NICAM (0000000c000000e0), size: 161
1082 # Firmware 17, type: STD FW MTS (0x00000004), id: PAL/DK NICAM (0000000c000000e0), size: 169
1091 # Firmware 18, type: STD FW (0x00000000), id: SECAM/K1 (0000000000200000), size: 161
1100 # Firmware 19, type: STD FW MTS (0x00000004), id: SECAM/K1 (0000000000200000), size: 169
1109 # Firmware 20, type: STD FW (0x00000000), id: SECAM/K3 (0000000004000000), size: 161
1118 # Firmware 21, type: STD FW MTS (0x00000004), id: SECAM/K3 (0000000004000000), size: 169
1127 # Firmware 22, type: STD FW D2633 DTV6 ATSC (0x00010030), id: (0000000000000000), size: 149
1136 # Firmware 23, type: STD FW D2620 DTV6 QAM (0x00000068), id: (0000000000000000), size: 149
1145 # Firmware 24, type: STD FW D2633 DTV6 QAM (0x00000070), id: (0000000000000000), size: 149
1154 # Firmware 25, type: STD FW D2620 DTV7 (0x00000088), id: (0000000000000000), size: 149
1163 # Firmware 26, type: STD FW D2633 DTV7 (0x00000090), id: (0000000000000000), size: 149
1172 # Firmware 27, type: STD FW D2620 DTV78 (0x00000108), id: (0000000000000000), size: 149
1181 # Firmware 28, type: STD FW D2633 DTV78 (0x00000110), id: (0000000000000000), size: 149
1190 # Firmware 29, type: STD FW D2620 DTV8 (0x00000208), id: (0000000000000000), size: 149
1199 # Firmware 30, type: STD FW D2633 DTV8 (0x00000210), id: (0000000000000000), size: 149
1208 # Firmware 31, type: STD FW FM (0x00000400), id: (0000000000000000), size: 135
1217 # Firmware 32, type: STD FW (0x00000000), id: PAL/I (0000000000000010), size: 161
1226 # Firmware 33, type: STD FW MTS (0x00000004), id: PAL/I (0000000000000010), size: 169
1235 # Firmware 34, type: STD FW (0x00000000), id: SECAM/L AM (0000001000400000), size: 169
1244 # Firmware 35, type: STD FW (0x00000000), id: SECAM/L NICAM (0000000c00400000), size: 161
1253 # Firmware 36, type: STD FW (0x00000000), id: SECAM/Lc (0000000000800000), size: 161
1262 # Firmware 37, type: STD FW (0x00000000), id: NTSC/M Kr (0000000000008000), size: 161
1271 # Firmware 38, type: STD FW LCD (0x00001000), id: NTSC/M Kr (0000000000008000), size: 161
1280 # Firmware 39, type: STD FW LCD NOGD (0x00003000), id: NTSC/M Kr (0000000000008000), size: 161
1289 # Firmware 40, type: STD FW MTS (0x00000004), id: NTSC/M Kr (0000000000008000), size: 169
1298 # Firmware 41, type: STD FW (0x00000000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
1307 # Firmware 42, type: STD FW LCD (0x00001000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
1316 # Firmware 43, type: STD FW LCD NOGD (0x00003000), id: NTSC PAL/M PAL/N (000000000000b700), size: 161
1325 # Firmware 44, type: STD FW (0x00000000), id: NTSC/M Jp (0000000000002000), size: 161
1334 # Firmware 45, type: STD FW MTS (0x00000004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
1343 # Firmware 46, type: STD FW MTS LCD (0x00001004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
1352 # Firmware 47, type: STD FW MTS LCD NOGD (0x00003004), id: NTSC PAL/M PAL/N (000000000000b700), size: 169
1361 # Firmware 48, type: SCODE FW HAS IF (0x60000000), IF = 3.28 MHz id: (0000000000000000), size: 192
1371 # Firmware 49, type: SCODE FW HAS IF (0x60000000), IF = 3.30 MHz id: (0000000000000000), size: 192
1381 # Firmware 50, type: SCODE FW HAS IF (0x60000000), IF = 3.44 MHz id: (0000000000000000), size: 192
1391 # Firmware 51, type: SCODE FW HAS IF (0x60000000), IF = 3.46 MHz id: (0000000000000000), size: 192
1401 # Firmware 52, type: SCODE FW DTV6 ATSC OREN36 HAS IF (0x60210020), IF = 3.80 MHz id: (0000000000000000), size: 192
1411 # Firmware 53, type: SCODE FW HAS IF (0x60000000), IF = 4.00 MHz id: (0000000000000000), size: 192
1421 # Firmware 54, type: SCODE FW DTV6 ATSC TOYOTA388 HAS IF (0x60410020), IF = 4.08 MHz id: (0000000000000000), size: 192
1431 # Firmware 55, type: SCODE FW HAS IF (0x60000000), IF = 4.20 MHz id: (0000000000000000), size: 192
1441 # Firmware 56, type: SCODE FW MONO HAS IF (0x60008000), IF = 4.32 MHz id: NTSC/M Kr (0000000000008000), size: 192
1451 # Firmware 57, type: SCODE FW HAS IF (0x60000000), IF = 4.45 MHz id: (0000000000000000), size: 192
1461 # Firmware 58, type: SCODE FW MTS LCD NOGD MONO IF HAS IF (0x6002b004), IF = 4.50 MHz id: NTSC PAL/M PAL/N (000000000000b700), size: 192
1471 # Firmware 59, type: SCODE FW LCD NOGD IF HAS IF (0x60023000), IF = 4.60 MHz id: NTSC/M Kr (0000000000008000), size: 192
1481 # Firmware 60, type: SCODE FW DTV6 QAM DTV7 DTV78 DTV8 ZARLINK456 HAS IF (0x620003e0), IF = 4.76 MHz id: (0000000000000000), size: 192
1491 # Firmware 61, type: SCODE FW HAS IF (0x60000000), IF = 4.94 MHz id: (0000000000000000), size: 192
1501 # Firmware 62, type: SCODE FW HAS IF (0x60000000), IF = 5.26 MHz id: (0000000000000000), size: 192
1511 # Firmware 63, type: SCODE FW MONO HAS IF (0x60008000), IF = 5.32 MHz id: PAL/BG A2 NICAM (0000000f00000007), size: 192
1521 # Firmware 64, type: SCODE FW DTV7 DTV78 DTV8 DIBCOM52 CHINA HAS IF (0x65000380), IF = 5.40 MHz id: (0000000000000000), size: 192
1531 # Firmware 65, type: SCODE FW DTV6 ATSC OREN538 HAS IF (0x60110020), IF = 5.58 MHz id: (0000000000000000), size: 192
1541 # Firmware 66, type: SCODE FW HAS IF (0x60000000), IF = 5.64 MHz id: PAL/BG A2 (0000000300000007), size: 192
1551 # Firmware 67, type: SCODE FW HAS IF (0x60000000), IF = 5.74 MHz id: PAL/BG NICAM (0000000c00000007), size: 192
1561 # Firmware 68, type: SCODE FW HAS IF (0x60000000), IF = 5.90 MHz id: (0000000000000000), size: 192
1571 # Firmware 69, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.00 MHz id: PAL/DK PAL/I SECAM/K3 SECAM/L SECAM/Lc NICAM (0000000c04c000f0), size: 192
1581 # Firmware 70, type: SCODE FW DTV6 QAM ATSC LG60 F6MHZ HAS IF (0x68050060), IF = 6.20 MHz id: (0000000000000000), size: 192
1591 # Firmware 71, type: SCODE FW HAS IF (0x60000000), IF = 6.24 MHz id: PAL/I (0000000000000010), size: 192
1601 # Firmware 72, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.32 MHz id: SECAM/K1 (0000000000200000), size: 192
1611 # Firmware 73, type: SCODE FW HAS IF (0x60000000), IF = 6.34 MHz id: SECAM/K1 (0000000000200000), size: 192
1621 # Firmware 74, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.50 MHz id: PAL/DK SECAM/K3 SECAM/L NICAM (0000000c044000e0), size: 192
1631 # Firmware 75, type: SCODE FW DTV6 ATSC ATI638 HAS IF (0x60090020), IF = 6.58 MHz id: (0000000000000000), size: 192
1641 # Firmware 76, type: SCODE FW HAS IF (0x60000000), IF = 6.60 MHz id: PAL/DK A2 (00000003000000e0), size: 192
1651 # Firmware 77, type: SCODE FW MONO HAS IF (0x60008000), IF = 6.68 MHz id: PAL/DK A2 (00000003000000e0), size: 192
1661 # Firmware 78, type: SCODE FW DTV6 ATSC TOYOTA794 HAS IF (0x60810020), IF = 8.14 MHz id: (0000000000000000), size: 192
1671 # Firmware 79, type: SCODE FW HAS IF (0x60000000), IF = 8.20 MHz id: (0000000000000000), size: 192
/linux-4.1.27/drivers/acpi/
H A Dtables.c67 p->processor_id, p->id, acpi_table_print_madt_entry()
86 pr_debug("IOAPIC (id[0x%02x] address[0x%08x] gsi_base[%d])\n", acpi_table_print_madt_entry()
87 p->id, p->address, p->global_irq_base); acpi_table_print_madt_entry()
160 pr_debug("IOSAPIC (id[0x%x] address[%p] gsi_base[%d])\n", acpi_table_print_madt_entry()
161 p->id, (void *)(unsigned long)p->address, acpi_table_print_madt_entry()
171 p->processor_id, p->id, p->eid, acpi_table_print_madt_entry()
180 pr_info("PLAT_INT_SRC (%s %s type[0x%x] id[0x%04x] eid[0x%x] iosapic_vector[0x%x] global_irq[0x%x]\n", acpi_table_print_madt_entry()
183 p->type, p->id, p->eid, p->io_sapic_vector, acpi_table_print_madt_entry()
218 acpi_parse_entries(char *id, unsigned long table_size, acpi_parse_entries() argument
230 if (!id || !handler) acpi_parse_entries()
237 pr_warn("%4.4s not present\n", id); acpi_parse_entries()
263 pr_err("[%4.4s:0x%02x] Invalid zero length\n", id, entry_id); acpi_parse_entries()
273 id, entry_id, count - max_entries, count); acpi_parse_entries()
280 acpi_table_parse_entries(char *id, acpi_table_parse_entries() argument
294 if (!id || !handler) acpi_table_parse_entries()
297 if (!strncmp(id, ACPI_SIG_MADT, 4)) acpi_table_parse_entries()
300 acpi_get_table_with_size(id, instance, &table_header, &tbl_size); acpi_table_parse_entries()
302 pr_warn("%4.4s not present\n", id); acpi_table_parse_entries()
306 count = acpi_parse_entries(id, table_size, handler, table_header, acpi_table_parse_entries()
314 acpi_table_parse_madt(enum acpi_madt_type id, acpi_table_parse_madt() argument
318 sizeof(struct acpi_table_madt), id, acpi_table_parse_madt()
323 * acpi_table_parse - find table with @id, run @handler on it
324 * @id: table id to find
327 * Scan the ACPI System Descriptor Table (STD) for a table matching @id,
332 int __init acpi_table_parse(char *id, acpi_tbl_table_handler handler) acpi_table_parse() argument
340 if (!id || !handler) acpi_table_parse()
343 if (strncmp(id, ACPI_SIG_MADT, 4) == 0) acpi_table_parse()
344 acpi_get_table_with_size(id, acpi_apic_instance, &table, &tbl_size); acpi_table_parse()
346 acpi_get_table_with_size(id, 0, &table, &tbl_size); acpi_table_parse()
/linux-4.1.27/arch/mips/ath79/
H A Dsetup.c58 u32 id; ath79_detect_sys_type() local
63 id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); ath79_detect_sys_type()
64 major = id & REV_ID_MAJOR_MASK; ath79_detect_sys_type()
68 minor = id & AR71XX_REV_ID_MINOR_MASK; ath79_detect_sys_type()
69 rev = id >> AR71XX_REV_ID_REVISION_SHIFT; ath79_detect_sys_type()
92 rev = id & AR724X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
98 rev = id & AR724X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
104 rev = id & AR724X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
108 minor = id & AR913X_REV_ID_MINOR_MASK; ath79_detect_sys_type()
109 rev = id >> AR913X_REV_ID_REVISION_SHIFT; ath79_detect_sys_type()
127 rev = id & AR933X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
133 rev = id & AR933X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
139 rev = id & AR934X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
145 rev = id & AR934X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
151 rev = id & AR934X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
157 rev = id & QCA955X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
163 rev = id & QCA955X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
167 panic("ath79: unknown SoC, id:0x%08x", id); ath79_detect_sys_type()
/linux-4.1.27/drivers/media/usb/pvrusb2/
H A Dpvrusb2-std.c28 v4l2_std_id id; member in struct:std_name
137 v4l2_std_id id = 0; pvr2_std_str_to_id() local
157 cmsk = sp->id; pvr2_std_str_to_id()
173 t = sp->id & cmsk; pvr2_std_str_to_id()
175 id |= t; pvr2_std_str_to_id()
181 if (idPtr) *idPtr = id; pvr2_std_str_to_id()
187 v4l2_std_id id) pvr2_std_id_to_str()
200 if (!(gp->id & ip->id & id)) continue; pvr2_std_id_to_str()
233 .id = (TSTD_B|TSTD_B1|
250 .id = (TSTD_M|
261 .id = (TSTD_60),
270 .id = V4L2_STD_NTSC_443,
281 static struct v4l2_standard *match_std(v4l2_std_id id) match_std() argument
285 if (generic_standards[idx].id & id) { match_std()
292 static int pvr2_std_fill(struct v4l2_standard *std,v4l2_std_id id) pvr2_std_fill() argument
297 template = match_std(id); pvr2_std_fill()
302 std->id = id; pvr2_std_fill()
303 bcnt = pvr2_std_id_to_str(std->name,sizeof(std->name)-1,id); pvr2_std_fill()
320 v4l2_std_id id) pvr2_std_create_enum()
329 bcnt = pvr2_std_id_to_str(buf,sizeof(buf),id); pvr2_std_create_enum()
332 (int)id,bcnt,buf); pvr2_std_create_enum()
338 for (idmsk = 1, cmsk = id; cmsk; idmsk <<= 1) { pvr2_std_create_enum()
349 if ((id & std_mixes[idx2]) == std_mixes[idx2]) std_cnt++; pvr2_std_create_enum()
382 if (!(id & std_mixes[idx2])) continue; pvr2_std_create_enum()
386 for (idmsk = 1, cmsk = id; cmsk && (idx < std_cnt); idmsk <<= 1) { pvr2_std_create_enum()
186 pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize, v4l2_std_id id) pvr2_std_id_to_str() argument
319 pvr2_std_create_enum(unsigned int *countptr, v4l2_std_id id) pvr2_std_create_enum() argument
/linux-4.1.27/drivers/gpu/host1x/
H A Dintr.c101 unsigned int id) reset_threshold_interrupt()
106 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); reset_threshold_interrupt()
107 host1x_hw_intr_enable_syncpt_intr(host, id); reset_threshold_interrupt()
182 host1x_hw_intr_disable_syncpt_intr(host, syncpt->id); process_wait_list()
185 syncpt->id); process_wait_list()
205 unsigned int id = syncpt->id; syncpt_thresh_work() local
209 host1x_syncpt_load(host->syncpt + id)); syncpt_thresh_work()
212 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh, host1x_intr_add_action() argument
235 syncpt = host->syncpt + id; host1x_intr_add_action()
243 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); host1x_intr_add_action()
247 host1x_hw_intr_enable_syncpt_intr(host, id); host1x_intr_add_action()
257 void host1x_intr_put_ref(struct host1x *host, u32 id, void *ref) host1x_intr_put_ref() argument
266 syncpt = host->syncpt + id; host1x_intr_put_ref()
268 host1x_syncpt_load(host->syncpt + id)); host1x_intr_put_ref()
275 unsigned int id; host1x_intr_init() local
284 for (id = 0; id < nb_pts; ++id) { host1x_intr_init()
285 struct host1x_syncpt *syncpt = host->syncpt + id; host1x_intr_init()
291 "host1x_sp_%02d", id); host1x_intr_init()
322 unsigned int id; host1x_intr_stop() local
330 for (id = 0; id < nb_pts; ++id) { host1x_intr_stop()
334 &syncpt[id].intr.wait_head, list) { host1x_intr_stop()
342 if (!list_empty(&syncpt[id].intr.wait_head)) { host1x_intr_stop()
345 pr_warn("%s cannot stop syncpt intr id=%d\n", host1x_intr_stop()
346 __func__, id); host1x_intr_stop()
99 reset_threshold_interrupt(struct host1x *host, struct list_head *head, unsigned int id) reset_threshold_interrupt() argument
/linux-4.1.27/drivers/zorro/
H A Dzorro-driver.c20 * Zorro device id structure
21 * @ids: array of Zorro device id structures to search in
33 while (ids->id) { zorro_match_device()
34 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) zorro_match_device()
50 const struct zorro_device_id *id; zorro_device_probe() local
52 id = zorro_match_device(drv->id_table, z); zorro_device_probe()
53 if (id) zorro_device_probe()
54 error = drv->probe(z, id); zorro_device_probe()
117 * device id structure
118 * @ids: array of Zorro device id structures to search in
135 while (ids->id) { zorro_bus_match()
136 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) zorro_bus_match()
154 if (add_uevent_var(env, "ZORRO_ID=%08X", z->id) || zorro_uevent()
157 add_uevent_var(env, "MODALIAS=" ZORRO_DEVICE_MODALIAS_FMT, z->id)) zorro_uevent()
/linux-4.1.27/drivers/clk/qcom/
H A Dreset.c22 static int qcom_reset(struct reset_controller_dev *rcdev, unsigned long id) qcom_reset() argument
24 rcdev->ops->assert(rcdev, id); qcom_reset()
26 rcdev->ops->deassert(rcdev, id); qcom_reset()
31 qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) qcom_reset_assert() argument
38 map = &rst->reset_map[id]; qcom_reset_assert()
45 qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) qcom_reset_deassert() argument
52 map = &rst->reset_map[id]; qcom_reset_deassert()
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Ddb1xxx.c84 int id = BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)); db1xxx_arch_init() local
85 if (id == BCSR_WHOAMI_DB1550) db1xxx_arch_init()
87 else if ((id == BCSR_WHOAMI_PB1550_SDR) || db1xxx_arch_init()
88 (id == BCSR_WHOAMI_PB1550_DDR)) db1xxx_arch_init()
90 else if ((id == BCSR_WHOAMI_DB1500) || (id == BCSR_WHOAMI_PB1500) || db1xxx_arch_init()
91 (id == BCSR_WHOAMI_PB1500R2)) db1xxx_arch_init()
/linux-4.1.27/arch/arm/mach-mmp/include/mach/
H A Dpxa910.h32 static inline int pxa910_add_uart(int id) pxa910_add_uart() argument
36 switch (id) { pxa910_add_uart()
47 static inline int pxa910_add_twsi(int id, struct i2c_pxa_platform_data *data, pxa910_add_twsi() argument
53 switch (id) { pxa910_add_twsi()
60 ret = i2c_register_board_info(id, info, size); pxa910_add_twsi()
67 static inline int pxa910_add_pwm(int id) pxa910_add_pwm() argument
71 switch (id) { pxa910_add_pwm()
H A Ddevices.h12 int id; member in struct:pxa_device_desc
23 .id = _id, \
34 .id = _id, \
45 .id = _id, \
/linux-4.1.27/sound/isa/cs423x/
H A Dcs4236.c76 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable
93 module_param_array(id, charp, NULL, 0444);
94 MODULE_PARM_DESC(id, "ID string for " IDENT " soundcard.");
142 { .id = "CSC0100" },
143 { .id = "CSC0000" },
146 { .id = "GIM0100" },
147 { .id = "" }
154 { .id = "CSC0d32", .devs = { { "CSC0000" }, { "CSC0010" }, { "PNPb006" } } },
156 { .id = "CSC1a32", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
158 { .id = "CSC4232", .devs = { { "CSC0000" }, { "CSC0002" }, { "CSC0003" } } },
160 { .id = "CSC4236", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
162 { .id = "CSC7532", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSCb006" } } },
164 { .id = "CSC7632", .devs = { { "CSC0000" }, { "CSC0010" }, { "PNPb006" } } },
166 { .id = "CSCf032", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
168 { .id = "CSCe825", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC010f" } } },
170 { .id = "CSC0225", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
172 { .id = "CSC0225", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC0103" } } },
174 { .id = "CSC0225", .devs = { { "CSC0100" }, { "CSC0110" } } },
176 { .id = "CSC0437", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
178 { .id = "CSC0735", .devs = { { "CSC0000" }, { "CSC0010" } } },
180 { .id = "CSC0b35", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
182 { .id = "CSC0b36", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
184 { .id = "CSC1425", .devs = { { "CSC0100" }, { "CSC0110" } } },
186 { .id = "CSC1335", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
188 { .id = "CSC1525", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC0103" } } },
190 { .id = "CSC1e37", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
192 { .id = "CSC4236", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
194 { .id = "CSC4237", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
196 { .id = "CSC4336", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
198 { .id = "CSC4536", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
200 { .id = "CSC4625", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC0103" } } },
202 { .id = "CSC4637", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
204 { .id = "CSC4837", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
206 { .id = "CSC6835", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
208 { .id = "CSC6835", .devs = { { "CSC0000" }, { "CSC0010" } } },
210 { .id = "CSC6836", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
212 { .id = "CSC7537", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
214 { .id = "CSC8025", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC0103" } } },
216 { .id = "CSC8037", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
218 { .id = "CSCc835", .devs = { { "CSC0000" }, { "CSC0010" } } },
220 { .id = "CSC9836", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
222 { .id = "CSC9837", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
224 { .id = "CSCa736", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
226 { .id = "CSCa836", .devs = { { "CSCa800" }, { "CSCa810" }, { "CSCa803" } } },
228 { .id = "CSCa836", .devs = { { "CSCa800" }, { "CSCa810" } } },
230 { .id = "CSCd925", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
232 { .id = "CSCd937", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
234 { .id = "CSCe825", .devs = { { "CSC0100" }, { "CSC0110" } } },
236 { .id = "CSC4825", .devs = { { "CSC0100" }, { "CSC0110" } } },
238 { .id = "CSCe835", .devs = { { "CSC0000" }, { "CSC0010" } } },
240 { .id = "CSCe836", .devs = { { "CSC0000" }, { "CSC0010" } } },
242 { .id = "CSCe936", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
244 { .id = "CSCf235", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
246 { .id = "CSCf238", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },
248 { .id = "" } /* end */
322 const struct pnp_card_device_id *id) snd_card_cs423x_pnpc()
324 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); snd_card_cs423x_pnpc()
327 acard->ctrl = pnp_request_card_device(card, id->devs[1].id, NULL); snd_card_cs423x_pnpc()
330 if (id->devs[2].id[0]) { snd_card_cs423x_pnpc()
331 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); snd_card_cs423x_pnpc()
373 err = snd_card_new(pdev, index[dev], id[dev], THIS_MODULE, snd_cs423x_card_new()
554 const struct pnp_device_id *id) snd_cs423x_pnpbios_detect()
571 /* prepare second id */ snd_cs423x_pnpbios_detect()
572 strcpy(cid, pdev->id[0].id); snd_cs423x_pnpbios_detect()
576 if (!strcmp(cdev->id[0].id, cid)) snd_cs423x_pnpbios_detect()
320 snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard, struct pnp_card_link *card, const struct pnp_card_device_id *id) snd_card_cs423x_pnpc() argument
553 snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, const struct pnp_device_id *id) snd_cs423x_pnpbios_detect() argument
/linux-4.1.27/drivers/ipack/
H A Dipack.c26 kfree(device->id); ipack_device_release()
31 ipack_match_one_device(const struct ipack_device_id *id, ipack_match_one_device() argument
34 if ((id->format == IPACK_ANY_FORMAT || ipack_match_one_device()
35 id->format == device->id_format) && ipack_match_one_device()
36 (id->vendor == IPACK_ANY_ID || id->vendor == device->id_vendor) && ipack_match_one_device()
37 (id->device == IPACK_ANY_ID || id->device == device->id_device)) ipack_match_one_device()
38 return id; ipack_match_one_device()
137 sprintf(&buf[c], "%02x", idev->id[i]); id_show()
183 static DEVICE_ATTR_RO(id);
293 c = (i != 11) ? dev->id[i] : 0; ipack_calc_crc1()
308 c = ((i != 0x18) && (i != 0x19)) ? dev->id[i] : 0; ipack_calc_crc2()
317 u8 *id = dev->id; ipack_parse_id1() local
320 dev->id_vendor = id[4]; ipack_parse_id1()
321 dev->id_device = id[5]; ipack_parse_id1()
323 dev->speed_32mhz = (id[7] == 'H'); ipack_parse_id1()
325 dev->id_crc_correct = (crc == id[11]); ipack_parse_id1()
328 id[11], crc); ipack_parse_id1()
334 __be16 *id = (__be16 *) dev->id; ipack_parse_id2() local
337 dev->id_vendor = ((be16_to_cpu(id[3]) & 0xff) << 16) ipack_parse_id2()
338 + be16_to_cpu(id[4]); ipack_parse_id2()
339 dev->id_device = be16_to_cpu(id[5]); ipack_parse_id2()
340 flags = be16_to_cpu(id[10]); ipack_parse_id2()
344 dev->id_crc_correct = (crc == be16_to_cpu(id[12])); ipack_parse_id2()
347 id[11], crc); ipack_parse_id2()
376 dev_warn(&dev->dev, "invalid id size"); ipack_device_read_id()
388 dev_warn(&dev->dev, "invalid id size"); ipack_device_read_id()
403 dev->id = kmalloc(dev->id_avail, GFP_KERNEL); ipack_device_read_id()
404 if (!dev->id) { ipack_device_read_id()
405 dev_err(&dev->dev, "dev->id alloc failed.\n"); ipack_device_read_id()
411 dev->id[i] = ioread8(idmem + (i << 1) + 1); ipack_device_read_id()
413 dev->id[i] = ioread8(idmem + i); ipack_device_read_id()
450 dev_err(&dev->dev, "error reading device id section.\n"); ipack_device_init()
/linux-4.1.27/drivers/iio/trigger/
H A Diio-trig-sysfs.c21 int id; member in struct:iio_sysfs_trig
28 static int iio_sysfs_trigger_probe(int id); iio_sysfs_trig_add()
47 static int iio_sysfs_trigger_remove(int id); iio_sysfs_trig_remove()
133 static int iio_sysfs_trigger_probe(int id) iio_sysfs_trigger_probe() argument
141 if (id == t->id) { iio_sysfs_trigger_probe()
154 t->id = id; iio_sysfs_trigger_probe()
155 t->trig = iio_trigger_alloc("sysfstrig%d", id); iio_sysfs_trigger_probe()
185 static int iio_sysfs_trigger_remove(int id) iio_sysfs_trigger_remove() argument
192 if (id == t->id) { iio_sysfs_trigger_remove()
/linux-4.1.27/drivers/fmc/
H A Dfmc-match.c29 /* This currently only matches the EEPROM (FRU id) */ fmc_match()
35 if (!fdev->id.manufacturer || !fdev->id.product_name) fmc_match()
39 strcmp(fid->manufacturer, fdev->id.manufacturer)) fmc_match()
42 strcmp(fid->product_name, fdev->id.product_name)) fmc_match()
92 fmc->id.manufacturer = fru_get_board_manufacturer(h); fmc_fill_id_info()
93 fmc->id.product_name = fru_get_product_name(h); fmc_fill_id_info()
94 pr_info(" Manufacturer: %s\n", fmc->id.manufacturer); fmc_fill_id_info()
95 pr_info(" Product name: %s\n", fmc->id.product_name); fmc_fill_id_info()
98 fmc->mezzanine_name = kstrdup(fmc->id.product_name, GFP_KERNEL); fmc_fill_id_info()
112 kfree(fmc->id.manufacturer); fmc_free_id_info()
113 kfree(fmc->id.product_name); fmc_free_id_info()
/linux-4.1.27/drivers/clk/pistachio/
H A Dclk.h15 unsigned int id; member in struct:pistachio_gate
24 .id = _id, \
32 unsigned int id; member in struct:pistachio_mux
44 .id = _id, \
54 unsigned int id; member in struct:pistachio_div
64 .id = _id, \
74 .id = _id, \
83 unsigned int id; member in struct:pistachio_fixed_factor
91 .id = _id, \
113 unsigned int id; member in struct:pistachio_pll
124 .id = _id, \
135 .id = _id, \
/linux-4.1.27/net/ipv6/
H A Doutput_core.c15 u32 hash, id; __ipv6_select_ident() local
21 /* Treat id of 0 as unset and if we get 0 back from ip_idents_reserve, __ipv6_select_ident()
25 id = ip_idents_reserve(hash, 1); __ipv6_select_ident()
26 if (unlikely(!id)) __ipv6_select_ident()
27 id = 1 << 31; __ipv6_select_ident()
29 return id; __ipv6_select_ident()
45 u32 id; ipv6_proxy_select_ident() local
57 id = __ipv6_select_ident(net, ip6_proxy_idents_hashrnd, ipv6_proxy_select_ident()
59 skb_shinfo(skb)->ip6_frag_id = htonl(id); ipv6_proxy_select_ident()
67 u32 id; ipv6_select_ident() local
71 id = __ipv6_select_ident(net, ip6_idents_hashrnd, &rt->rt6i_dst.addr, ipv6_select_ident()
73 fhdr->identification = htonl(id); ipv6_select_ident()
/linux-4.1.27/net/caif/
H A Dcfmuxl.c46 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
75 static struct cflayer *get_from_id(struct list_head *list, u16 id) get_from_id() argument
79 if (lyr->id == id) list_for_each_entry_rcu()
93 /* Two entries with same id is wrong, so remove old layer from mux */ cfmuxl_set_uplayer()
123 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id) get_up() argument
126 int idx = id % UP_CACHE_SIZE; get_up()
128 if (up == NULL || up->id != id) { get_up()
130 up = get_from_id(&muxl->srvl_list, id); get_up()
140 int idx = dev_info->id % DN_CACHE_SIZE; get_dn()
142 if (dn == NULL || dn->id != dev_info->id) { get_dn()
144 dn = get_from_id(&muxl->frml_list, dev_info->id); get_dn()
151 struct cflayer *cfmuxl_remove_uplayer(struct cflayer *layr, u8 id) cfmuxl_remove_uplayer() argument
155 int idx = id % UP_CACHE_SIZE; cfmuxl_remove_uplayer()
157 if (id == 0) { cfmuxl_remove_uplayer()
163 up = get_from_id(&muxl->srvl_list, id); cfmuxl_remove_uplayer()
178 u8 id; cfmuxl_receive() local
180 if (cfpkt_extr_head(pkt, &id, 1) < 0) { cfmuxl_receive()
186 up = get_up(muxl, id); cfmuxl_receive()
190 " up == NULL", id, id); cfmuxl_receive()
225 info->dev_info->id, info->dev_info->id); cfmuxl_transmit()
259 layer->id != 0) cfmuxl_ctrlcmd()
260 cfmuxl_remove_uplayer(layr, layer->id); cfmuxl_ctrlcmd()
/linux-4.1.27/drivers/misc/mic/bus/
H A Dmic_bus.c35 return sprintf(buf, "0x%04x\n", dev->id.device); device_show()
43 return sprintf(buf, "0x%04x\n", dev->id.vendor); vendor_show()
52 dev->id.device, dev->id.vendor); modalias_show()
65 const struct mbus_device_id *id) mbus_id_match()
67 if (id->device != dev->id.device && id->device != MBUS_DEV_ANY_ID) mbus_id_match()
70 return id->vendor == MBUS_DEV_ANY_ID || id->vendor == dev->id.vendor; mbus_id_match()
95 dev->id.device, dev->id.vendor); mbus_uevent()
149 mbus_register_device(struct device *pdev, int id, struct dma_map_ops *dma_ops, mbus_register_device() argument
161 mbdev->id.device = id; mbus_register_device()
162 mbdev->id.vendor = MBUS_DEV_ANY_ID; mbus_register_device()
64 mbus_id_match(const struct mbus_device *dev, const struct mbus_device_id *id) mbus_id_match() argument
/linux-4.1.27/arch/mips/lantiq/xway/
H A Dreset.c80 int xrx200_gphy_boot(struct device *dev, unsigned int id, dma_addr_t dev_addr) xrx200_gphy_boot() argument
95 if (id > 1) { xrx200_gphy_boot()
96 dev_err(dev, "%u is an invalid gphy id\n", id); xrx200_gphy_boot()
99 dev_info(dev, "booting GPHY%u firmware at %X\n", id, dev_addr); xrx200_gphy_boot()
101 ltq_rcu_w32(ltq_rcu_r32(RCU_RST_REQ) | xrx200_gphy[id].rd, xrx200_gphy_boot()
103 ltq_rcu_w32(dev_addr, xrx200_gphy[id].addr); xrx200_gphy_boot()
104 ltq_rcu_w32(ltq_rcu_r32(RCU_RST_REQ) & ~xrx200_gphy[id].rd, xrx200_gphy_boot()
118 unsigned long id) ltq_assert_device()
122 if (id < 8) ltq_assert_device()
126 val |= BIT(id); ltq_assert_device()
133 unsigned long id) ltq_deassert_device()
137 if (id < 8) ltq_deassert_device()
141 val &= ~BIT(id); ltq_deassert_device()
148 unsigned long id) ltq_reset_device()
150 ltq_assert_device(rcdev, id); ltq_reset_device()
151 return ltq_deassert_device(rcdev, id); ltq_reset_device()
117 ltq_assert_device(struct reset_controller_dev *rcdev, unsigned long id) ltq_assert_device() argument
132 ltq_deassert_device(struct reset_controller_dev *rcdev, unsigned long id) ltq_deassert_device() argument
147 ltq_reset_device(struct reset_controller_dev *rcdev, unsigned long id) ltq_reset_device() argument
/linux-4.1.27/drivers/isdn/mISDN/
H A Dtimerdev.c47 int id; member in struct:mISDNtimer
131 if (put_user(timer->id, (int __user *)buf)) mISDN_read()
169 if (timer->id >= 0) dev_expire_timer()
178 int id; misdn_add_timer() local
184 id = 0; misdn_add_timer()
192 id = timer->id = dev->next_id++; misdn_add_timer()
200 return id; misdn_add_timer()
204 misdn_del_timer(struct mISDNtimerdev *dev, int id) misdn_del_timer() argument
210 if (timer->id == id) { misdn_del_timer()
212 timer->id = -1; misdn_del_timer()
216 return id; misdn_del_timer()
227 int id, tout, ret = 0; mISDN_ioctl() local
240 id = misdn_add_timer(dev, tout); mISDN_ioctl()
242 printk(KERN_DEBUG "%s add %d id %d\n", __func__, mISDN_ioctl()
243 tout, id); mISDN_ioctl()
244 if (id < 0) { mISDN_ioctl()
245 ret = id; mISDN_ioctl()
248 if (put_user(id, (int __user *)arg)) mISDN_ioctl()
252 if (get_user(id, (int __user *)arg)) { mISDN_ioctl()
257 printk(KERN_DEBUG "%s del id %d\n", __func__, id); mISDN_ioctl()
258 id = misdn_del_timer(dev, id); mISDN_ioctl()
259 if (put_user(id, (int __user *)arg)) mISDN_ioctl()
/linux-4.1.27/drivers/rapidio/
H A Drio-driver.c21 * rio_match_device - Tell if a RIO device has a matching RIO device id structure
22 * @id: the RIO device id structure to match against
26 * matches a device id structure provided by a RIO driver. Returns the
30 *id, rio_match_device()
33 while (id->vid || id->asm_vid) { rio_match_device()
34 if (((id->vid == RIO_ANY_ID) || (id->vid == rdev->vid)) && rio_match_device()
35 ((id->did == RIO_ANY_ID) || (id->did == rdev->did)) && rio_match_device()
36 ((id->asm_vid == RIO_ANY_ID) rio_match_device()
37 || (id->asm_vid == rdev->asm_vid)) rio_match_device()
38 && ((id->asm_did == RIO_ANY_ID) rio_match_device()
39 || (id->asm_did == rdev->asm_did))) rio_match_device()
40 return id; rio_match_device()
41 id++; rio_match_device()
81 * rio_device_probe - Tell if a RIO device structure has a matching RIO device id structure
91 const struct rio_device_id *id; rio_device_probe() local
96 id = rio_match_device(rdrv->id_table, rdev); rio_device_probe()
98 if (id) rio_device_probe()
99 error = rdrv->probe(rdev, id); rio_device_probe()
174 * rio_match_bus - Tell if a RIO device structure has a matching RIO driver device id structure
187 const struct rio_device_id *id = rdrv->id_table; rio_match_bus() local
190 if (!id) rio_match_bus()
193 found_id = rio_match_device(id, rdev); rio_match_bus()
29 rio_match_device(const struct rio_device_id *id, const struct rio_dev *rdev) rio_match_device() argument
/linux-4.1.27/drivers/ide/
H A Dide-iops.c48 void ide_fix_driveid(u16 *id) ide_fix_driveid() argument
55 id[i] = __le16_to_cpu(id[i]); ide_fix_driveid()
189 * @id: drive identifier
196 int ide_in_drive_list(u16 *id, const struct drive_list_entry *table) ide_in_drive_list() argument
199 if ((!strcmp(table->id_model, (char *)&id[ATA_ID_PROD])) && ide_in_drive_list()
201 strstr((char *)&id[ATA_ID_FW_REV], table->id_firmware))) ide_in_drive_list()
231 u16 *id = drive->id; eighty_ninty_three() local
232 int ivb = ide_in_drive_list(id, ivb_list); eighty_ninty_three()
241 if (ata_id_is_sata(id) && !ivb) eighty_ninty_three()
253 if (id[ATA_ID_HW_CONFIG] & 0x4000) eighty_ninty_three()
257 const char *model = (char *)&id[ATA_ID_PROD]; eighty_ninty_three()
268 if (id[ATA_ID_HW_CONFIG] & 0x2000) eighty_ninty_three()
301 const char **list, *m = (char *)&drive->id[ATA_ID_PROD]; ide_check_nien_quirk_list()
312 u16 *id; ide_driveid_update() local
315 id = kmalloc(SECTOR_SIZE, GFP_ATOMIC); ide_driveid_update()
316 if (id == NULL) ide_driveid_update()
320 rc = ide_dev_read_id(drive, ATA_CMD_ID_ATA, id, 1); ide_driveid_update()
326 drive->id[ATA_ID_UDMA_MODES] = id[ATA_ID_UDMA_MODES]; ide_driveid_update()
327 drive->id[ATA_ID_MWDMA_MODES] = id[ATA_ID_MWDMA_MODES]; ide_driveid_update()
328 drive->id[ATA_ID_SWDMA_MODES] = id[ATA_ID_SWDMA_MODES]; ide_driveid_update()
329 drive->id[ATA_ID_CFA_MODES] = id[ATA_ID_CFA_MODES]; ide_driveid_update()
332 kfree(id); ide_driveid_update()
338 kfree(id); ide_driveid_update()
347 u16 *id = drive->id, i; ide_config_drive_speed() local
357 if ((speed & 0xf8) == XFER_PIO_0 && ata_id_has_iordy(drive->id) == 0) ide_config_drive_speed()
396 id[ATA_ID_UDMA_MODES] &= ~0xFF00; ide_config_drive_speed()
397 id[ATA_ID_MWDMA_MODES] &= ~0x0700; ide_config_drive_speed()
398 id[ATA_ID_SWDMA_MODES] &= ~0x0700; ide_config_drive_speed()
399 if (ata_id_is_cfa(id)) ide_config_drive_speed()
400 id[ATA_ID_CFA_MODES] &= ~0x0E00; ide_config_drive_speed()
401 } else if (ata_id_is_cfa(id)) ide_config_drive_speed()
402 id[ATA_ID_CFA_MODES] &= ~0x01C0; ide_config_drive_speed()
414 id[ATA_ID_UDMA_MODES] |= (i << 8 | i); ide_config_drive_speed()
415 } else if (ata_id_is_cfa(id) && speed >= XFER_MW_DMA_3) { ide_config_drive_speed()
417 id[ATA_ID_CFA_MODES] |= i << 9; ide_config_drive_speed()
420 id[ATA_ID_MWDMA_MODES] |= (i << 8 | i); ide_config_drive_speed()
423 id[ATA_ID_SWDMA_MODES] |= (i << 8 | i); ide_config_drive_speed()
424 } else if (ata_id_is_cfa(id) && speed >= XFER_PIO_5) { ide_config_drive_speed()
426 id[ATA_ID_CFA_MODES] |= i << 6; ide_config_drive_speed()
H A Dide-timings.c83 u16 *id = drive->id; ide_pio_cycle_time() local
87 if (id[ATA_ID_FIELD_VALID] & 2) { ide_pio_cycle_time()
88 if (ata_id_has_iordy(drive->id)) ide_pio_cycle_time()
89 cycle = id[ATA_ID_EIDE_PIO_IORDY]; ide_pio_cycle_time()
91 cycle = id[ATA_ID_EIDE_PIO]; ide_pio_cycle_time()
98 if (pio > 4 && ata_id_is_cfa(id)) ide_pio_cycle_time()
147 u16 *id = drive->id; ide_timing_compute() local
166 if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ ide_timing_compute()
171 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; ide_timing_compute()
173 (speed == XFER_PIO_5 && !ata_id_is_cfa(id))) ide_timing_compute()
174 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO_IORDY]; ide_timing_compute()
176 p.cycle = id[ATA_ID_EIDE_DMA_MIN]; ide_timing_compute()
/linux-4.1.27/drivers/ps3/
H A Dps3av.c493 static void ps3av_set_videomode_packet(u32 id) ps3av_set_videomode_packet() argument
501 video_mode = &video_mode_table[id & PS3AV_MODE_MASK]; ps3av_set_videomode_packet()
513 video_mode->fmt, id); ps3av_set_videomode_packet()
516 if (id & PS3AV_MODE_DVI || id & PS3AV_MODE_RGB) ps3av_set_videomode_packet()
528 video_mode->aspect, id); ps3av_set_videomode_packet()
541 static void ps3av_set_videomode_cont(u32 id, u32 old_id) ps3av_set_videomode_cont() argument
553 if (vesa == 0 && (id & PS3AV_MODE_MASK) >= PS3AV_MODE_WXGA) { ps3av_set_videomode_cont()
560 if (id & PS3AV_MODE_HDCP_OFF) { ps3av_set_videomode_cont()
574 ps3av_set_videomode_packet(id); ps3av_set_videomode_cont()
593 unsigned id:4; member in struct:__anon8357
633 return ps3av_preferred_modes[i].id; ps3av_resbit2id()
640 enum ps3av_mode_num id; ps3av_hdmi_get_id() local
646 id = ps3av_resbit2id(info->res_50.native, info->res_60.native, ps3av_hdmi_get_id()
648 if (id) { ps3av_hdmi_get_id()
649 pr_debug("%s: Using native mode %d\n", __func__, id); ps3av_hdmi_get_id()
650 return id; ps3av_hdmi_get_id()
654 id = ps3av_resbit2id(info->res_50.res_bits, info->res_60.res_bits, ps3av_hdmi_get_id()
656 if (id) { ps3av_hdmi_get_id()
657 pr_debug("%s: Using supported mode %d\n", __func__, id); ps3av_hdmi_get_id()
658 return id; ps3av_hdmi_get_id()
662 id = PS3AV_DEFAULT_HDMI_MODE_ID_REG_60; ps3av_hdmi_get_id()
664 id = PS3AV_DEFAULT_HDMI_MODE_ID_REG_50; ps3av_hdmi_get_id()
665 pr_debug("%s: Using default mode %d\n", __func__, id); ps3av_hdmi_get_id()
666 return id; ps3av_hdmi_get_id()
674 char id[sizeof(info->monitor_id)*3+1]; ps3av_monitor_info_dump() local
681 sprintf(&id[i*3], " %02x", info->monitor_id[i]); ps3av_monitor_info_dump()
682 pr_debug("monitor_id: %s\n", id); ps3av_monitor_info_dump()
765 int i, res, id = 0, dvi = 0, rgb = 0; ps3av_auto_videomode() local
769 /* get mode id for hdmi */ ps3av_auto_videomode()
770 for (i = 0; i < av_hw_conf->num_of_hdmi && !id; i++) { ps3av_auto_videomode()
787 id = ps3av_hdmi_get_id(info); ps3av_auto_videomode()
792 if (!id) { ps3av_auto_videomode()
795 id = PS3AV_DEFAULT_AVMULTI_MODE_ID_REG_60; ps3av_auto_videomode()
797 id = PS3AV_DEFAULT_AVMULTI_MODE_ID_REG_50; ps3av_auto_videomode()
800 pr_debug("%s: Using avmulti mode %d\n", __func__, id); ps3av_auto_videomode()
803 return id | dvi | rgb; ps3av_auto_videomode()
841 /* set mode using id */ ps3av_set_video_mode()
842 int ps3av_set_video_mode(int id) ps3av_set_video_mode() argument
848 if ((id & PS3AV_MODE_MASK) > size - 1 || id < 0) { ps3av_set_video_mode()
849 dev_dbg(&ps3av->dev->core, "%s: error id :%d\n", __func__, id); ps3av_set_video_mode()
854 option = id & ~PS3AV_MODE_MASK; ps3av_set_video_mode()
855 if ((id & PS3AV_MODE_MASK) == PS3AV_MODE_AUTO) { ps3av_set_video_mode()
856 id = ps3av_auto_videomode(&ps3av->av_hw_conf); ps3av_set_video_mode()
857 if (id < 1) { ps3av_set_video_mode()
858 printk(KERN_ERR "%s: invalid id :%d\n", __func__, id); ps3av_set_video_mode()
861 id |= option; ps3av_set_video_mode()
867 ps3av->ps3av_mode = id; ps3av_set_video_mode()
888 int ps3av_video_mode2res(u32 id, u32 *xres, u32 *yres) ps3av_video_mode2res() argument
892 id = id & PS3AV_MODE_MASK; ps3av_video_mode2res()
894 if (id > size - 1 || id < 0) { ps3av_video_mode2res()
895 printk(KERN_ERR "%s: invalid mode %d\n", __func__, id); ps3av_video_mode2res()
898 *xres = video_mode_table[id].x; ps3av_video_mode2res()
899 *yres = video_mode_table[id].y; ps3av_video_mode2res()
938 int id; ps3av_probe() local
993 id = ps3av_auto_videomode(&ps3av->av_hw_conf); ps3av_probe()
994 if (id < 0) { ps3av_probe()
995 printk(KERN_ERR "%s: invalid id :%d\n", __func__, id); ps3av_probe()
1003 ps3av->ps3av_mode = id; ps3av_probe()
/linux-4.1.27/include/net/netns/
H A Dgeneric.h16 * 1. set pernet_operations->id. After register_pernet_device you
17 * will have the id of your private pointer.
34 static inline void *net_generic(const struct net *net, int id) net_generic() argument
41 ptr = ng->ptr[id - 1]; net_generic()
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dchpid.h18 __u8 id; member in struct:chp_id
/linux-4.1.27/arch/arm/mach-ux500/
H A Dboard-mop500-audio.c30 .id = 0,
48 .id = 1,
68 .id = 2,
74 .id = 3,
/linux-4.1.27/mm/kasan/
H A DMakefile5 # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
/linux-4.1.27/net/netfilter/ipset/
H A Dip_set_bitmap_gen.h36 #define get_ext(set, map, id) ((map)->extensions + (set)->dsize * (id))
54 u32 id; mtype_ext_cleanup() local
56 for (id = 0; id < map->elements; id++) mtype_ext_cleanup()
57 if (test_bit(id, map->members)) mtype_ext_cleanup()
58 ip_set_ext_destroy(set, get_ext(set, map, id)); mtype_ext_cleanup()
121 void *x = get_ext(set, map, e->id); mtype_test()
142 void *x = get_ext(set, map, e->id); mtype_add()
177 void *x = get_ext(set, map, e->id); mtype_del()
205 u32 id, first = cb->args[IPSET_CB_ARG0]; mtype_list() local
212 id = cb->args[IPSET_CB_ARG0]; mtype_list()
213 x = get_ext(set, map, id); mtype_list()
214 if (!test_bit(id, map->members) || mtype_list()
223 if (id == first) { mtype_list()
229 if (mtype_do_list(skb, map, id, set->dsize)) mtype_list()
245 if (unlikely(id == first)) { mtype_list()
259 u32 id; mtype_gc() local
264 for (id = 0; id < map->elements; id++) mtype_gc()
265 if (mtype_gc_test(id, map, set->dsize)) { mtype_gc()
266 x = get_ext(set, map, id); mtype_gc()
268 clear_bit(id, map->members); mtype_gc()
H A Dip_set_list_set.c30 ip_set_id_t id; member in struct:set_elem
34 ip_set_id_t id; member in struct:set_adt_elem
47 #define list_set_elem(set, map, id) \
48 (struct set_elem *)((void *)(map)->members + (id) * (set)->dsize)
66 if (e->id == IPSET_INVALID_ID) list_set_ktest()
71 ret = ip_set_test(e->id, skb, par, opt); list_set_ktest()
99 if (e->id == IPSET_INVALID_ID) list_set_kadd()
104 ret = ip_set_add(e->id, skb, par, opt); list_set_kadd()
123 if (e->id == IPSET_INVALID_ID) list_set_kdel()
128 ret = ip_set_del(e->id, skb, par, opt); list_set_kdel()
156 id_eq(const struct ip_set *set, u32 i, ip_set_id_t id) id_eq() argument
165 return !!(e->id == id && id_eq()
177 if (e->id != IPSET_INVALID_ID) { list_set_add()
180 ip_set_put_byindex(map->net, e->id); list_set_add()
187 if (x->id != IPSET_INVALID_ID) { list_set_add()
188 ip_set_put_byindex(map->net, x->id); list_set_add()
198 e->id = d->id; list_set_add()
216 ip_set_put_byindex(map->net, e->id); list_set_del()
225 e->id = IPSET_INVALID_ID; list_set_del()
238 if (e->id != IPSET_INVALID_ID && set_cleanup_entries()
259 if (e->id == IPSET_INVALID_ID) list_set_utest()
264 else if (e->id != d->id) list_set_utest()
295 if (e->id == IPSET_INVALID_ID) list_set_uadd()
297 else if (e->id != d->id) list_set_uadd()
320 ip_set_put_byindex(map->net, d->id); list_set_uadd()
327 if (e->id == IPSET_INVALID_ID) list_set_uadd()
330 else if (e->id != d->refid) list_set_uadd()
352 if (e->id == IPSET_INVALID_ID) list_set_udel()
358 else if (e->id != d->id) list_set_udel()
402 e.id = ip_set_get_byname(map->net, nla_data(tb[IPSET_ATTR_NAME]), &s); list_set_uadt()
403 if (e.id == IPSET_INVALID_ID) list_set_uadt()
441 ip_set_put_byindex(map->net, e.id); list_set_uadt()
455 if (e->id != IPSET_INVALID_ID) { list_set_flush()
456 ip_set_put_byindex(map->net, e->id); list_set_flush()
458 e->id = IPSET_INVALID_ID; list_set_flush()
515 if (e->id == IPSET_INVALID_ID) list_set_list()
529 ip_set_name_byindex(map->net, e->id))) list_set_list()
624 e->id = IPSET_INVALID_ID; init_list_set()
/linux-4.1.27/sound/pci/ctxfi/
H A Dctimap.h25 unsigned short slot; /* the id of the slot containing input data */
26 unsigned short user; /* the id of the user resource consuming data */
27 unsigned short addr; /* the input mapper ram id */
28 unsigned short next; /* the next input mapper ram id */
/linux-4.1.27/drivers/input/misc/
H A Dixp4xx-beeper.c99 input_set_drvdata(input_dev, (void *) dev->id); ixp4xx_spkr_probe()
103 input_dev->id.bustype = BUS_HOST; ixp4xx_spkr_probe()
104 input_dev->id.vendor = 0x001f; ixp4xx_spkr_probe()
105 input_dev->id.product = 0x0001; ixp4xx_spkr_probe()
106 input_dev->id.version = 0x0100; ixp4xx_spkr_probe()
113 err = gpio_request(dev->id, "ixp4-beeper"); ixp4xx_spkr_probe()
119 (void *) dev->id); ixp4xx_spkr_probe()
132 free_irq(IRQ_IXP4XX_TIMER2, (void *)dev->id); ixp4xx_spkr_probe()
134 gpio_free(dev->id); ixp4xx_spkr_probe()
152 free_irq(IRQ_IXP4XX_TIMER2, (void *)dev->id); ixp4xx_spkr_remove()
153 gpio_free(dev->id); ixp4xx_spkr_remove()
/linux-4.1.27/drivers/tc/
H A Dtc-driver.c62 const struct tc_device_id *id = tdrv->id_table; tc_match_device() local
64 if (id) { tc_match_device()
65 while (id->name[0] || id->vendor[0]) { tc_match_device()
66 if (strcmp(tdev->name, id->name) == 0 && tc_match_device()
67 strcmp(tdev->vendor, id->vendor) == 0) tc_match_device()
68 return id; tc_match_device()
69 id++; tc_match_device()
90 const struct tc_device_id *id; tc_bus_match() local
92 id = tc_match_device(tdrv, tdev); tc_bus_match()
93 if (id) tc_bus_match()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dpowerflags.c11 "fid", /* frequency id control */
12 "vid", /* voltage id control */
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.1.27/arch/mips/pci/
H A Dpci-bcm63xx.h10 * Cardbus shares the PCI bus, but has no IDSEL, so a special id is
11 * reserved for it. If you have a standard PCI device at this id, you
/linux-4.1.27/arch/mips/sgi-ip32/
H A Dcrime.c28 unsigned int id, rev; crime_init() local
35 id = crime->id; crime_init()
36 rev = id & CRIME_ID_REV; crime_init()
37 id = (id & CRIME_ID_IDBITS) >> 4; crime_init()
38 printk(KERN_INFO "CRIME id %1x rev %d at 0x%0*lx\n", crime_init()
39 id, rev, field, (unsigned long) CRIME_BASE); crime_init()
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.1.27/arch/arm/include/asm/
H A Dmmu.h8 atomic64_t id; member in struct:__anon170
22 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.1.27/fs/dlm/
H A Dlockspace.h19 struct dlm_ls *dlm_find_lockspace_global(uint32_t id);
20 struct dlm_ls *dlm_find_lockspace_local(void *id);
/linux-4.1.27/sound/pci/oxygen/
H A Dvirtuoso.c34 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; variable
39 module_param_array(id, charp, NULL, 0444);
40 MODULE_PARM_DESC(id, "ID string");
64 const struct pci_device_id *id) get_xonar_model()
66 if (get_xonar_pcm179x_model(chip, id) >= 0) get_xonar_model()
68 if (get_xonar_cs43xx_model(chip, id) >= 0) get_xonar_model()
70 if (get_xonar_wm87x6_model(chip, id) >= 0) get_xonar_model()
87 err = oxygen_pci_probe(pci, index[dev], id[dev], THIS_MODULE, xonar_probe()
63 get_xonar_model(struct oxygen *chip, const struct pci_device_id *id) get_xonar_model() argument
/linux-4.1.27/sound/usb/
H A Dmixer_maps.c28 int id; member in struct:usbmix_name_map
35 int id; member in struct:usbmix_selector_map
41 u32 id; member in struct:usbmix_ctl_map
189 .id = 0x80,
198 .id = 14, /* Capture Source */
203 .id = 29, /* Digital Out Source */
208 .id = 31, /* Headphone Source */
367 .id = USB_ID(0x041e, 0x3000),
372 .id = USB_ID(0x041e, 0x3010),
376 .id = USB_ID(0x041e, 0x3020),
381 .id = USB_ID(0x041e, 0x3040),
385 .id = USB_ID(0x041e, 0x3048),
390 .id = USB_ID(0x046d, 0x0991),
394 .id = USB_ID(0x046d, 0x09a4),
398 .id = USB_ID(0x047f, 0xc010),
403 .id = USB_ID(0x06f8, 0xb000),
408 .id = USB_ID(0x06f8, 0xd002),
415 .id = USB_ID(0x06f8, 0xc000),
419 .id = USB_ID(0x0763, 0x2030),
423 .id = USB_ID(0x0763, 0x2031),
427 .id = USB_ID(0x08bb, 0x2702),
432 .id = USB_ID(0x0a92, 0x0091),
436 .id = USB_ID(0x0c45, 0x1158),
440 .id = USB_ID(0x0ccd, 0x0028),
444 .id = USB_ID(0x0bda, 0x4014),
448 .id = USB_ID(0x0dba, 0x1000),
452 .id = USB_ID(0x13e5, 0x0001),
457 .id = USB_ID(0x200c, 0x1018),
462 .id = USB_ID(0x2573, 0x0008),
467 .id = USB_ID(0x27ac, 0x1000),
472 .id = USB_ID(0x25c4, 0x0003),
477 .id = USB_ID(0x05a7, 0x1020),
/linux-4.1.27/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.1.27/drivers/mfd/
H A Dtwl4030-audio.c58 static int twl4030_audio_set_resource(enum twl4030_audio_res id, int enable) twl4030_audio_set_resource() argument
64 audio->resource[id].reg); twl4030_audio_set_resource()
67 val |= audio->resource[id].mask; twl4030_audio_set_resource()
69 val &= ~audio->resource[id].mask; twl4030_audio_set_resource()
72 val, audio->resource[id].reg); twl4030_audio_set_resource()
77 static inline int twl4030_audio_get_resource(enum twl4030_audio_res id) twl4030_audio_get_resource() argument
83 audio->resource[id].reg); twl4030_audio_get_resource()
92 int twl4030_audio_enable_resource(enum twl4030_audio_res id) twl4030_audio_enable_resource() argument
97 if (id >= TWL4030_AUDIO_RES_MAX) { twl4030_audio_enable_resource()
99 "Invalid resource ID (%u)\n", id); twl4030_audio_enable_resource()
104 if (!audio->resource[id].request_count) twl4030_audio_enable_resource()
106 val = twl4030_audio_set_resource(id, 1); twl4030_audio_enable_resource()
108 val = twl4030_audio_get_resource(id); twl4030_audio_enable_resource()
110 audio->resource[id].request_count++; twl4030_audio_enable_resource()
121 int twl4030_audio_disable_resource(enum twl4030_audio_res id) twl4030_audio_disable_resource() argument
126 if (id >= TWL4030_AUDIO_RES_MAX) { twl4030_audio_disable_resource()
128 "Invalid resource ID (%u)\n", id); twl4030_audio_disable_resource()
133 if (!audio->resource[id].request_count) { twl4030_audio_disable_resource()
135 "Resource has been disabled already (%u)\n", id); twl4030_audio_disable_resource()
139 audio->resource[id].request_count--; twl4030_audio_disable_resource()
141 if (!audio->resource[id].request_count) twl4030_audio_disable_resource()
143 val = twl4030_audio_set_resource(id, 0); twl4030_audio_disable_resource()
145 val = twl4030_audio_get_resource(id); twl4030_audio_disable_resource()
257 ret = mfd_add_devices(&pdev->dev, pdev->id, audio->cells, twl4030_audio_probe()
H A Dwm831x-otp.c29 /* Read the unique ID from the chip into id */ wm831x_unique_id_read()
30 static int wm831x_unique_id_read(struct wm831x *wm831x, char *id) wm831x_unique_id_read() argument
39 id[i * 2] = (val >> 8) & 0xff; wm831x_unique_id_read()
40 id[(i * 2) + 1] = val & 0xff; wm831x_unique_id_read()
51 char id[WM831X_UNIQUE_ID_LEN]; wm831x_unique_id_show() local
54 rval = wm831x_unique_id_read(wm831x, id); wm831x_unique_id_show()
H A Dtps65911-comparator.c59 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) comp_threshold_set() argument
61 struct comparator tps_comp = tps_comparators[id]; comp_threshold_set()
66 if (id == COMP) comp_threshold_set()
86 static int comp_threshold_get(struct tps65910 *tps65910, int id) comp_threshold_get() argument
88 struct comparator tps_comp = tps_comparators[id]; comp_threshold_get()
92 if (id == COMP) comp_threshold_get()
108 int id, uVolt; comp_threshold_show() local
111 id = COMP1; comp_threshold_show()
113 id = COMP2; comp_threshold_show()
117 uVolt = comp_threshold_get(tps65910, id); comp_threshold_show()
/linux-4.1.27/drivers/block/
H A Drbd_types.h19 * rbd_id.foo - id of image
20 * rbd_header.<id> - image metadata
21 * rbd_data.<id>.0000000000000000
22 * rbd_data.<id>.0000000000000001
37 * There is no notion of a persistent image id in rbd format 1.
57 __le64 id; member in struct:rbd_image_snap_ondisk
/linux-4.1.27/fs/nfs/
H A Dpnfs_dev.c53 nfs4_print_deviceid(const struct nfs4_deviceid *id) nfs4_print_deviceid() argument
55 u32 *p = (u32 *)id; nfs4_print_deviceid()
57 dprintk("%s: device id= [%x%x%x%x]\n", __func__, nfs4_print_deviceid()
64 nfs4_deviceid_hash(const struct nfs4_deviceid *id) nfs4_deviceid_hash() argument
66 unsigned char *cptr = (unsigned char *)id->data; nfs4_deviceid_hash()
79 const struct nfs_client *clp, const struct nfs4_deviceid *id, _lookup_deviceid()
86 !memcmp(&d->deviceid, id, sizeof(*id))) { _lookup_deviceid()
134 pdev->layout_type = server->pnfs_curr_ld->id; nfs4_get_device_info()
169 * @id deviceid to look up
173 const struct nfs4_deviceid *id, long hash) __nfs4_find_get_deviceid()
178 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, __nfs4_find_get_deviceid()
188 const struct nfs4_deviceid *id, struct rpc_cred *cred, nfs4_find_get_deviceid()
191 long hash = nfs4_deviceid_hash(id); nfs4_find_get_deviceid()
194 d = __nfs4_find_get_deviceid(server, id, hash); nfs4_find_get_deviceid()
198 new = nfs4_get_device_info(server, id, cred, gfp_mask); nfs4_find_get_deviceid()
203 d = __nfs4_find_get_deviceid(server, id, hash); nfs4_find_get_deviceid()
221 * @id the deviceid to unhash
227 const struct nfs_client *clp, const struct nfs4_deviceid *id) nfs4_delete_deviceid()
233 d = _lookup_deviceid(ld, clp, id, nfs4_deviceid_hash(id)); nfs4_delete_deviceid()
250 const struct nfs4_deviceid *id) nfs4_init_deviceid_node()
257 d->deviceid = *id; nfs4_init_deviceid_node()
270 * that the node is no longer hashed in the global device id cache.
78 _lookup_deviceid(const struct pnfs_layoutdriver_type *ld, const struct nfs_client *clp, const struct nfs4_deviceid *id, long hash) _lookup_deviceid() argument
172 __nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, long hash) __nfs4_find_get_deviceid() argument
187 nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, struct rpc_cred *cred, gfp_t gfp_mask) nfs4_find_get_deviceid() argument
226 nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *ld, const struct nfs_client *clp, const struct nfs4_deviceid *id) nfs4_delete_deviceid() argument
249 nfs4_init_deviceid_node(struct nfs4_deviceid_node *d, struct nfs_server *server, const struct nfs4_deviceid *id) nfs4_init_deviceid_node() argument
/linux-4.1.27/net/ipv4/
H A Dxfrm4_state.c46 x->id = tmpl->id; xfrm4_init_temprop()
47 if (x->id.daddr.a4 == 0) xfrm4_init_temprop()
48 x->id.daddr.a4 = daddr->a4; xfrm4_init_temprop()
62 XFRM_MODE_SKB_CB(skb)->id = iph->id; xfrm4_extract_header()
H A Dudp_diag.c45 req->id.idiag_src[0], req->id.idiag_sport, udp_dump_one()
46 req->id.idiag_dst[0], req->id.idiag_dport, udp_dump_one()
47 req->id.idiag_if, tbl); udp_dump_one()
51 (struct in6_addr *)req->id.idiag_src, udp_dump_one()
52 req->id.idiag_sport, udp_dump_one()
53 (struct in6_addr *)req->id.idiag_dst, udp_dump_one()
54 req->id.idiag_dport, udp_dump_one()
55 req->id.idiag_if, tbl); udp_dump_one()
64 err = sock_diag_check_cookie(sk, req->id.idiag_cookie); udp_dump_one()
128 if (r->id.idiag_sport != inet->inet_sport && udp_dump()
129 r->id.idiag_sport) udp_dump()
131 if (r->id.idiag_dport != inet->inet_dport && udp_dump()
132 r->id.idiag_dport) udp_dump()
/linux-4.1.27/arch/mips/jz4740/
H A Dplatform.c51 .id = -1,
63 .id = 0,
82 .id = -1,
107 .id = 0,
132 .id = -1,
153 .id = 0,
209 .id = -1,
229 .id = -1,
237 .id = -1,
251 .id = -1,
277 .id = -1,
302 .id = 0,
329 .id = -1,
337 .id = -1,
356 .id = -1,
/linux-4.1.27/mm/
H A Dswap_cgroup.c17 unsigned short id; member in struct:swap_cgroup
79 * swap_cgroup_cmpxchg - cmpxchg mem_cgroup's id for this swp_entry.
81 * @old: old id
82 * @new: new id
84 * Returns old id at success, 0 at failure.
85 * (There is no mem_cgroup using 0 as its id)
98 retval = sc->id; swap_cgroup_cmpxchg()
100 sc->id = new; swap_cgroup_cmpxchg()
110 * @id: mem_cgroup to be recorded
115 unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id) swap_cgroup_record() argument
125 old = sc->id; swap_cgroup_record()
126 sc->id = id; swap_cgroup_record()
133 * lookup_swap_cgroup_id - lookup mem_cgroup id tied to swap entry
140 return lookup_swap_cgroup(ent, NULL)->id; lookup_swap_cgroup_id()
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
H A Dnhm_idle.c37 .id = C3,
44 .id = C6,
52 .id = PC3,
59 .id = PC6,
72 static int nhm_get_count(enum intel_nhm_id id, unsigned long long *val, nhm_get_count() argument
77 switch (id) { nhm_get_count()
102 static int nhm_get_count_percent(unsigned int id, double *percent, nhm_get_count_percent() argument
111 (current_count[id][cpu] - previous_count[id][cpu])) / nhm_get_count_percent()
115 nhm_cstates[id].name, previous_count[id][cpu], nhm_get_count_percent()
116 current_count[id][cpu], cpu); nhm_get_count_percent()
119 nhm_cstates[id].name, nhm_get_count_percent()
121 current_count[id][cpu] - previous_count[id][cpu], nhm_get_count_percent()
/linux-4.1.27/drivers/input/gameport/
H A Dns558.c170 { .id = "@P@0001", .driver_data = 0 }, /* ALS 100 */
171 { .id = "@P@0020", .driver_data = 0 }, /* ALS 200 */
172 { .id = "@P@1001", .driver_data = 0 }, /* ALS 100+ */
173 { .id = "@P@2001", .driver_data = 0 }, /* ALS 120 */
174 { .id = "ASB16fd", .driver_data = 0 }, /* AdLib NSC16 */
175 { .id = "AZT3001", .driver_data = 0 }, /* AZT1008 */
176 { .id = "CDC0001", .driver_data = 0 }, /* Opl3-SAx */
177 { .id = "CSC0001", .driver_data = 0 }, /* CS4232 */
178 { .id = "CSC000f", .driver_data = 0 }, /* CS4236 */
179 { .id = "CSC0101", .driver_data = 0 }, /* CS4327 */
180 { .id = "CTL7001", .driver_data = 0 }, /* SB16 */
181 { .id = "CTL7002", .driver_data = 0 }, /* AWE64 */
182 { .id = "CTL7005", .driver_data = 0 }, /* Vibra16 */
183 { .id = "ENS2020", .driver_data = 0 }, /* SoundscapeVIVO */
184 { .id = "ESS0001", .driver_data = 0 }, /* ES1869 */
185 { .id = "ESS0005", .driver_data = 0 }, /* ES1878 */
186 { .id = "ESS6880", .driver_data = 0 }, /* ES688 */
187 { .id = "IBM0012", .driver_data = 0 }, /* CS4232 */
188 { .id = "OPT0001", .driver_data = 0 }, /* OPTi Audio16 */
189 { .id = "YMH0006", .driver_data = 0 }, /* Opl3-SA */
190 { .id = "YMH0022", .driver_data = 0 }, /* Opl3-SAx */
191 { .id = "PNPb02f", .driver_data = 0 }, /* Generic */
192 { .id = "", },
/linux-4.1.27/drivers/pnp/pnpacpi/
H A Dcore.c42 static int __init ispnpidacpi(const char *id) ispnpidacpi() argument
44 TEST_ALPHA(id[0]); ispnpidacpi()
45 TEST_ALPHA(id[1]); ispnpidacpi()
46 TEST_ALPHA(id[2]); ispnpidacpi()
47 TEST_HEX(id[3]); ispnpidacpi()
48 TEST_HEX(id[4]); ispnpidacpi()
49 TEST_HEX(id[5]); ispnpidacpi()
50 TEST_HEX(id[6]); ispnpidacpi()
51 if (id[7] != '\0') ispnpidacpi()
212 struct acpi_hardware_id *id; pnpacpi_get_id() local
214 list_for_each_entry(id, &device->pnp.ids, list) { pnpacpi_get_id()
215 if (ispnpidacpi(id->id)) pnpacpi_get_id()
216 return id->id; pnpacpi_get_id()
226 struct acpi_hardware_id *id; pnpacpi_add_device() local
276 list_for_each_entry(id, &device->pnp.ids, list) { pnpacpi_add_device()
277 if (!strcmp(id->id, pnpid)) pnpacpi_add_device()
279 if (!ispnpidacpi(id->id)) pnpacpi_add_device()
281 pnp_add_id(dev, id->id); pnpacpi_add_device()
/linux-4.1.27/sound/core/
H A Dcontrol.c148 * @id: the ctl element id to send notification
150 * This function adds an event record with the given id and mask, appends
155 struct snd_ctl_elem_id *id) snd_ctl_notify()
161 if (snd_BUG_ON(!card || !id)) snd_ctl_notify()
172 if (ev->id.numid == id->numid) { snd_ctl_notify()
179 ev->id = *id; snd_ctl_notify()
273 kctl->id.iface = ncontrol->iface; snd_ctl_new1()
274 kctl->id.device = ncontrol->device; snd_ctl_new1()
275 kctl->id.subdevice = ncontrol->subdevice; snd_ctl_new1()
277 strlcpy(kctl->id.name, ncontrol->name, sizeof(kctl->id.name)); snd_ctl_new1()
278 if (strcmp(ncontrol->name, kctl->id.name) != 0) snd_ctl_new1()
280 ncontrol->name, kctl->id.name); snd_ctl_new1()
282 kctl->id.index = ncontrol->index; snd_ctl_new1()
324 if (kctl->id.numid < card->last_numid + 1 + count && snd_ctl_remove_numid_conflict()
325 kctl->id.numid + kctl->count > card->last_numid + 1) { snd_ctl_remove_numid_conflict()
326 card->last_numid = kctl->id.numid + kctl->count - 1; snd_ctl_remove_numid_conflict()
363 struct snd_ctl_elem_id id; snd_ctl_add() local
372 id = kcontrol->id; snd_ctl_add()
373 if (id.index > UINT_MAX - kcontrol->count) snd_ctl_add()
377 if (snd_ctl_find_id(card, &id)) { snd_ctl_add()
380 id.iface, snd_ctl_add()
381 id.device, snd_ctl_add()
382 id.subdevice, snd_ctl_add()
383 id.name, snd_ctl_add()
384 id.index); snd_ctl_add()
395 kcontrol->id.numid = card->last_numid + 1; snd_ctl_add()
397 id = kcontrol->id; snd_ctl_add()
400 for (idx = 0; idx < count; idx++, id.index++, id.numid++) snd_ctl_add()
401 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_ADD, &id); snd_ctl_add()
427 struct snd_ctl_elem_id id; snd_ctl_replace() local
439 id = kcontrol->id; snd_ctl_replace()
441 old = snd_ctl_find_id(card, &id); snd_ctl_replace()
462 kcontrol->id.numid = card->last_numid + 1; snd_ctl_replace()
464 id = kcontrol->id; snd_ctl_replace()
467 for (idx = 0; idx < count; idx++, id.index++, id.numid++) snd_ctl_replace()
468 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_ADD, &id); snd_ctl_replace()
490 struct snd_ctl_elem_id id; snd_ctl_remove() local
497 id = kcontrol->id; snd_ctl_remove()
498 for (idx = 0; idx < kcontrol->count; idx++, id.index++, id.numid++) snd_ctl_remove()
499 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_REMOVE, &id); snd_ctl_remove()
506 * snd_ctl_remove_id - remove the control of the given id and release it
508 * @id: the control id to remove
510 * Finds the control instance with the given id, removes it from the
515 int snd_ctl_remove_id(struct snd_card *card, struct snd_ctl_elem_id *id) snd_ctl_remove_id() argument
521 kctl = snd_ctl_find_id(card, id); snd_ctl_remove_id()
535 * @id: the control id to remove
537 * Finds the control instance with the given id, removes it from the
543 struct snd_ctl_elem_id *id) snd_ctl_remove_user_ctl()
550 kctl = snd_ctl_find_id(card, id); snd_ctl_remove_user_ctl()
574 * snd_ctl_activate_id - activate/inactivate the control of the given id
576 * @id: the control id to activate/inactivate
579 * Finds the control instance with the given id, and activate or
585 int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, snd_ctl_activate_id() argument
594 kctl = snd_ctl_find_id(card, id); snd_ctl_activate_id()
599 index_offset = snd_ctl_get_ioff(kctl, id); snd_ctl_activate_id()
611 snd_ctl_build_ioff(id, kctl, index_offset); snd_ctl_activate_id()
616 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, id); snd_ctl_activate_id()
622 * snd_ctl_rename_id - replace the id of a control on the card
624 * @src_id: the old id
625 * @dst_id: the new id
627 * Finds the control with the old id from the card, and replaces the
628 * id with the new one.
643 kctl->id = *dst_id; snd_ctl_rename_id()
644 kctl->id.numid = card->last_numid + 1; snd_ctl_rename_id()
652 * snd_ctl_find_numid - find the control instance with the given number-id
654 * @numid: the number-id to search
656 * Finds the control instance with the given number-id from the card.
671 if (kctl->id.numid <= numid && kctl->id.numid + kctl->count > numid) snd_ctl_find_numid()
679 * snd_ctl_find_id - find the control instance with the given id
681 * @id: the id to search
683 * Finds the control instance with the given id from the card.
692 struct snd_ctl_elem_id *id) snd_ctl_find_id()
696 if (snd_BUG_ON(!card || !id)) snd_ctl_find_id()
698 if (id->numid != 0) snd_ctl_find_id()
699 return snd_ctl_find_numid(card, id->numid); snd_ctl_find_id()
701 if (kctl->id.iface != id->iface) snd_ctl_find_id()
703 if (kctl->id.device != id->device) snd_ctl_find_id()
705 if (kctl->id.subdevice != id->subdevice) snd_ctl_find_id()
707 if (strncmp(kctl->id.name, id->name, sizeof(kctl->id.name))) snd_ctl_find_id()
709 if (kctl->id.index > id->index) snd_ctl_find_id()
711 if (kctl->id.index + kctl->count <= id->index) snd_ctl_find_id()
729 strlcpy(info->id, card->id, sizeof(info->id)); snd_ctl_card_info()
750 struct snd_ctl_elem_id *dst, *id; snd_ctl_elem_list() local
778 id = dst; snd_ctl_elem_list()
782 snd_ctl_build_ioff(id, kctl, jidx); snd_ctl_elem_list()
783 id++; snd_ctl_elem_list()
818 kctl = snd_ctl_find_id(card, &info->id); snd_ctl_elem_info()
829 index_offset = snd_ctl_get_ioff(kctl, &info->id); snd_ctl_elem_info()
831 snd_ctl_build_ioff(&info->id, kctl, index_offset); snd_ctl_elem_info()
874 kctl = snd_ctl_find_id(card, &control->id); snd_ctl_elem_read()
878 index_offset = snd_ctl_get_ioff(kctl, &control->id); snd_ctl_elem_read()
882 snd_ctl_build_ioff(&control->id, kctl, index_offset); snd_ctl_elem_read()
922 kctl = snd_ctl_find_id(card, &control->id); snd_ctl_elem_write()
926 index_offset = snd_ctl_get_ioff(kctl, &control->id); snd_ctl_elem_write()
933 snd_ctl_build_ioff(&control->id, kctl, index_offset); snd_ctl_elem_write()
937 struct snd_ctl_elem_id id = control->id; snd_ctl_elem_write() local
939 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &id); snd_ctl_elem_write()
975 struct snd_ctl_elem_id id; snd_ctl_elem_lock() local
980 if (copy_from_user(&id, _id, sizeof(id))) snd_ctl_elem_lock()
983 kctl = snd_ctl_find_id(card, &id); snd_ctl_elem_lock()
987 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; snd_ctl_elem_lock()
1003 struct snd_ctl_elem_id id; snd_ctl_elem_unlock() local
1008 if (copy_from_user(&id, _id, sizeof(id))) snd_ctl_elem_unlock()
1011 kctl = snd_ctl_find_id(card, &id); snd_ctl_elem_unlock()
1015 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; snd_ctl_elem_unlock()
1045 offset = snd_ctl_get_ioff(kcontrol, &uinfo->id); snd_ctl_elem_user_info()
1047 snd_ctl_build_ioff(&uinfo->id, kcontrol, offset); snd_ctl_elem_user_info()
1062 offset = snd_ctl_get_ioff(kcontrol, &uinfo->id); snd_ctl_elem_user_enum_info()
1064 snd_ctl_build_ioff(&uinfo->id, kcontrol, offset); snd_ctl_elem_user_enum_info()
1083 snd_ctl_get_ioff(kcontrol, &ucontrol->id) * size; snd_ctl_elem_user_get()
1098 snd_ctl_get_ioff(kcontrol, &ucontrol->id) * size; snd_ctl_elem_user_put()
1226 if (!*info->id.name) snd_ctl_elem_add()
1228 if (strnlen(info->id.name, sizeof(info->id.name)) >= sizeof(info->id.name)) snd_ctl_elem_add()
1233 info->id.numid = 0; snd_ctl_elem_add()
1234 err = snd_ctl_remove_user_ctl(file, &info->id); snd_ctl_elem_add()
1286 memcpy(&kctl->id, &info->id, sizeof(kctl->id)); snd_ctl_elem_add()
1326 offset = snd_ctl_get_ioff(kctl, &info->id); snd_ctl_elem_add()
1327 snd_ctl_build_ioff(&info->id, kctl, offset); snd_ctl_elem_add()
1355 snd_ctl_remove_user_ctl(file, &info.id); snd_ctl_elem_add_user()
1365 struct snd_ctl_elem_id id; snd_ctl_elem_remove() local
1367 if (copy_from_user(&id, _id, sizeof(id))) snd_ctl_elem_remove()
1369 return snd_ctl_remove_user_ctl(file, &id); snd_ctl_elem_remove()
1420 vd = &kctl->vd[tlv.numid - kctl->id.numid]; snd_ctl_tlv_ioctl()
1437 struct snd_ctl_elem_id id = kctl->id; snd_ctl_tlv_ioctl() local
1439 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_TLV, &id); snd_ctl_tlv_ioctl()
1565 ev.data.elem.id = kev->id; snd_ctl_read()
154 snd_ctl_notify(struct snd_card *card, unsigned int mask, struct snd_ctl_elem_id *id) snd_ctl_notify() argument
542 snd_ctl_remove_user_ctl(struct snd_ctl_file * file, struct snd_ctl_elem_id *id) snd_ctl_remove_user_ctl() argument
691 snd_ctl_find_id(struct snd_card *card, struct snd_ctl_elem_id *id) snd_ctl_find_id() argument
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dvvp_dev.c285 static void vvp_pgcache_id_unpack(loff_t pos, struct vvp_pgcache_id *id) vvp_pgcache_id_unpack() argument
289 id->vpi_index = pos & 0xffffffff; vvp_pgcache_id_unpack()
290 id->vpi_depth = (pos >> PGC_DEPTH_SHIFT) & 0xf; vvp_pgcache_id_unpack()
291 id->vpi_bucket = (unsigned long long)pos >> PGC_OBJ_SHIFT; vvp_pgcache_id_unpack()
294 static loff_t vvp_pgcache_id_pack(struct vvp_pgcache_id *id) vvp_pgcache_id_pack() argument
297 ((__u64)id->vpi_index) | vvp_pgcache_id_pack()
298 ((__u64)id->vpi_depth << PGC_DEPTH_SHIFT) | vvp_pgcache_id_pack()
299 ((__u64)id->vpi_bucket << PGC_OBJ_SHIFT); vvp_pgcache_id_pack()
305 struct vvp_pgcache_id *id = data; vvp_pgcache_obj_get() local
308 if (id->vpi_curdep-- > 0) vvp_pgcache_obj_get()
315 id->vpi_obj = hdr; vvp_pgcache_obj_get()
321 struct vvp_pgcache_id *id) vvp_pgcache_obj()
325 id->vpi_depth &= 0xf; vvp_pgcache_obj()
326 id->vpi_obj = NULL; vvp_pgcache_obj()
327 id->vpi_curdep = id->vpi_depth; vvp_pgcache_obj()
329 cfs_hash_hlist_for_each(dev->ld_site->ls_obj_hash, id->vpi_bucket, vvp_pgcache_obj()
330 vvp_pgcache_obj_get, id); vvp_pgcache_obj()
331 if (id->vpi_obj != NULL) { vvp_pgcache_obj()
334 lu_obj = lu_object_locate(id->vpi_obj, dev->ld_type); vvp_pgcache_obj()
339 lu_object_put(env, lu_object_top(id->vpi_obj)); vvp_pgcache_obj()
341 } else if (id->vpi_curdep > 0) { vvp_pgcache_obj()
342 id->vpi_depth = 0xf; vvp_pgcache_obj()
352 struct vvp_pgcache_id id; vvp_pgcache_find() local
355 vvp_pgcache_id_unpack(pos, &id); vvp_pgcache_find()
358 if (id.vpi_bucket >= CFS_HASH_NHLIST(site->ls_obj_hash)) vvp_pgcache_find()
360 clob = vvp_pgcache_obj(env, dev, &id); vvp_pgcache_find()
372 id.vpi_index, 1); vvp_pgcache_find()
374 id.vpi_index = pg->cp_index; vvp_pgcache_find()
383 return vvp_pgcache_id_pack(&id); vvp_pgcache_find()
386 ++id.vpi_depth; vvp_pgcache_find()
387 id.vpi_depth &= 0xf; vvp_pgcache_find()
388 if (id.vpi_depth == 0 && ++id.vpi_bucket == 0) vvp_pgcache_find()
390 id.vpi_index = 0; vvp_pgcache_find()
439 struct vvp_pgcache_id id; vvp_pgcache_show() local
446 vvp_pgcache_id_unpack(pos, &id); vvp_pgcache_show()
448 clob = vvp_pgcache_obj(env, &sbi->ll_cl->cd_lu_dev, &id); vvp_pgcache_show()
453 page = cl_page_lookup(hdr, id.vpi_index); vvp_pgcache_show()
457 id.vpi_index, PFID(&hdr->coh_lu.loh_fid)); vvp_pgcache_show()
319 vvp_pgcache_obj(const struct lu_env *env, struct lu_device *dev, struct vvp_pgcache_id *id) vvp_pgcache_obj() argument
/linux-4.1.27/include/rdma/
H A Drdma_cm.h141 * the passed in id, or a corresponding listen id. Returning a
142 * non-zero value from the callback will destroy the passed in id.
144 typedef int (*rdma_cm_event_handler)(struct rdma_cm_id *id,
163 * @context: User specified context associated with the id.
165 * @qp_type: type of queue pair associated with the id.
174 * @id: RDMA identifier.
177 * asynchronous operations associated with the id.
179 void rdma_destroy_id(struct rdma_cm_id *id);
185 * @id: RDMA identifier.
192 int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr);
199 * @id: RDMA identifier.
204 int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr,
215 int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms);
224 int rdma_create_qp(struct rdma_cm_id *id, struct ib_pd *pd,
234 void rdma_destroy_qp(struct rdma_cm_id *id);
239 * @id: Communication identifier associated with the QP attributes to
255 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
260 * @id: Connection identifier to connect.
270 int rdma_connect(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);
279 int rdma_listen(struct rdma_cm_id *id, int backlog);
283 * @id: Connection identifier associated with the request.
293 * state of the qp associated with the id is modified to error, such that any
296 int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);
301 * @id: Connection identifier to transition to established.
311 int rdma_notify(struct rdma_cm_id *id, enum ib_event_type event);
316 int rdma_reject(struct rdma_cm_id *id, const void *private_data,
323 int rdma_disconnect(struct rdma_cm_id *id);
328 * @id: Communication identifier associated with the request.
333 int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr,
340 void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr);
345 * @id: Communication identifier to associated with service type.
354 void rdma_set_service_type(struct rdma_cm_id *id, int tos);
359 * @id: Communication identifier to configure.
362 * Reuse must be set before an address is bound to the id.
364 int rdma_set_reuseaddr(struct rdma_cm_id *id, int reuse);
369 * @id: Communication identifer to configure.
374 int rdma_set_afonly(struct rdma_cm_id *id, int afonly);
378 * @id: Communication identifier associated with the address.
381 __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr);
/linux-4.1.27/arch/arm/mach-clps711x/
H A Ddevices.c105 u32 id[5]; clps711x_soc_init() local
111 id[0] = readl(base + UNIQID); clps711x_soc_init()
112 id[1] = readl(base + RANDID0); clps711x_soc_init()
113 id[2] = readl(base + RANDID1); clps711x_soc_init()
114 id[3] = readl(base + RANDID2); clps711x_soc_init()
115 id[4] = readl(base + RANDID3); clps711x_soc_init()
118 add_device_randomness(id, sizeof(id)); clps711x_soc_init()
120 system_serial_low = id[0]; clps711x_soc_init()
129 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%08x", id[0]); clps711x_soc_init()
/linux-4.1.27/net/core/
H A Dnet_namespace.c56 static int net_assign_generic(struct net *net, int id, void *data) net_assign_generic() argument
61 BUG_ON(id == 0); net_assign_generic()
66 if (old_ng->len >= id) net_assign_generic()
89 ng->ptr[id - 1] = data; net_assign_generic()
98 if (ops->id && ops->size) { ops_init()
103 err = net_assign_generic(net, *ops->id, data); ops_init()
122 if (ops->id && ops->size) { ops_free()
123 int id = *ops->id; ops_free() local
124 kfree(net_generic(net, id)); ops_free()
144 if (ops->size && ops->id) { ops_free_list()
151 int id); alloc_netid()
154 int min = 0, max = 0, id; alloc_netid() local
163 id = idr_alloc(&net->netns_ids, peer, min, max, GFP_KERNEL); alloc_netid()
164 if (id >= 0) alloc_netid()
165 rtnl_net_notifyid(net, peer, RTM_NEWNSID, id); alloc_netid()
167 return id; alloc_netid()
171 * function returns the id so that idr_for_each() stops. Because we cannot
172 * returns the id 0 (idr_for_each() will not stop), we return the magic value
176 static int net_eq_idr(int id, void *net, void *peer) net_eq_idr() argument
179 return id ? : NET_ID_ZERO; net_eq_idr()
185 int id = idr_for_each(&net->netns_ids, net_eq_idr, peer); __peernet2id() local
189 /* Magic value for id 0. */ __peernet2id()
190 if (id == NET_ID_ZERO) __peernet2id()
192 if (id > 0) __peernet2id()
193 return id; __peernet2id()
201 /* This function returns the id of a peer netns. If no id is assigned, one will
207 int id; peernet2id() local
209 id = __peernet2id(net, peer, alloc); peernet2id()
210 return id >= 0 ? id : NETNSA_NSID_NOT_ASSIGNED; peernet2id()
214 struct net *get_net_ns_by_id(struct net *net, int id) get_net_ns_by_id() argument
218 if (id < 0) get_net_ns_by_id()
222 peer = idr_find(&net->netns_ids, id); get_net_ns_by_id()
365 int id = __peernet2id(tmp, net, false); for_each_net() local
367 if (id >= 0) { for_each_net()
368 rtnl_net_notifyid(tmp, net, RTM_DELNSID, id); for_each_net()
369 idr_remove(&tmp->netns_ids, id); for_each_net()
546 int id; rtnl_net_fill() local
558 id = nsid; rtnl_net_fill()
560 id = __peernet2id(net, peer, false); rtnl_net_fill()
561 if (id < 0) rtnl_net_fill()
562 id = NETNSA_NSID_NOT_ASSIGNED; rtnl_net_fill()
564 if (nla_put_s32(skb, NETNSA_NSID, id)) rtnl_net_fill()
626 static int rtnl_net_dumpid_one(int id, void *peer, void *data) rtnl_net_dumpid_one() argument
636 RTM_NEWNSID, net_cb->net, peer, id); rtnl_net_dumpid_one()
665 int id) rtnl_net_notifyid()
674 err = rtnl_net_fill(msg, 0, 0, 0, cmd, net, peer, id); rtnl_net_notifyid()
738 if (ops->init || (ops->id && ops->size)) { for_each_net()
793 if (ops->id) { register_pernet_operations()
795 error = ida_get_new_above(&net_generic_ids, 1, ops->id); register_pernet_operations()
803 max_gen_ptrs = max_t(unsigned int, max_gen_ptrs, *ops->id); register_pernet_operations()
808 if (ops->id) register_pernet_operations()
809 ida_remove(&net_generic_ids, *ops->id); register_pernet_operations()
820 if (ops->id) unregister_pernet_operations()
821 ida_remove(&net_generic_ids, *ops->id); unregister_pernet_operations()
664 rtnl_net_notifyid(struct net *net, struct net *peer, int cmd, int id) rtnl_net_notifyid() argument
/linux-4.1.27/arch/mips/cavium-octeon/
H A Dsmp.c104 int id; octeon_smp_setup() local
111 for (id = 0; id < NR_CPUS; id++) { octeon_smp_setup()
112 set_cpu_possible(id, id == 0); octeon_smp_setup()
113 set_cpu_present(id, id == 0); octeon_smp_setup()
121 for (id = 0; id < NR_CPUS; id++) { octeon_smp_setup()
122 if ((id != coreid) && (core_mask & (1 << id))) { octeon_smp_setup()
125 __cpu_number_map[id] = cpus; octeon_smp_setup()
126 __cpu_logical_map[cpus] = id; octeon_smp_setup()
137 for (id = 0; setup_max_cpus && octeon_bootloader_entry_addr && octeon_smp_setup()
138 id < num_cores && id < NR_CPUS; id++) { octeon_smp_setup()
139 if (!(core_mask & (1 << id))) { octeon_smp_setup()
141 __cpu_number_map[id] = cpus; octeon_smp_setup()
142 __cpu_logical_map[cpus] = id; octeon_smp_setup()
/linux-4.1.27/sound/pci/hda/
H A Dpatch_si3054.c293 { .id = 0x163c3055, .name = "Si3054", .patch = patch_si3054 },
294 { .id = 0x163c3155, .name = "Si3054", .patch = patch_si3054 },
295 { .id = 0x11c13026, .name = "Si3054", .patch = patch_si3054 },
296 { .id = 0x11c13055, .name = "Si3054", .patch = patch_si3054 },
297 { .id = 0x11c13155, .name = "Si3054", .patch = patch_si3054 },
298 { .id = 0x10573055, .name = "Si3054", .patch = patch_si3054 },
299 { .id = 0x10573057, .name = "Si3054", .patch = patch_si3054 },
300 { .id = 0x10573155, .name = "Si3054", .patch = patch_si3054 },
302 { .id = 0x11063288, .name = "Si3054", .patch = patch_si3054 },
304 { .id = 0x15433155, .name = "Si3054", .patch = patch_si3054 },
306 { .id = 0x18540018, .name = "Si3054", .patch = patch_si3054 },
310 MODULE_ALIAS("snd-hda-codec-id:163c3055");
311 MODULE_ALIAS("snd-hda-codec-id:163c3155");
312 MODULE_ALIAS("snd-hda-codec-id:11c13026");
313 MODULE_ALIAS("snd-hda-codec-id:11c13055");
314 MODULE_ALIAS("snd-hda-codec-id:11c13155");
315 MODULE_ALIAS("snd-hda-codec-id:10573055");
316 MODULE_ALIAS("snd-hda-codec-id:10573057");
317 MODULE_ALIAS("snd-hda-codec-id:10573155");
318 MODULE_ALIAS("snd-hda-codec-id:11063288");
319 MODULE_ALIAS("snd-hda-codec-id:15433155");
320 MODULE_ALIAS("snd-hda-codec-id:18540018");
/linux-4.1.27/drivers/soc/tegra/
H A Dpmc.c173 * @id: partition ID
176 static int tegra_powergate_set(int id, bool new_state) tegra_powergate_set() argument
182 status = tegra_pmc_readl(PWRGATE_STATUS) & (1 << id); tegra_powergate_set()
189 tegra_pmc_writel(PWRGATE_TOGGLE_START | id, PWRGATE_TOGGLE); tegra_powergate_set()
198 * @id: partition ID
200 int tegra_powergate_power_on(int id) tegra_powergate_power_on() argument
202 if (!pmc->soc || id < 0 || id >= pmc->soc->num_powergates) tegra_powergate_power_on()
205 return tegra_powergate_set(id, true); tegra_powergate_power_on()
210 * @id: partition ID
212 int tegra_powergate_power_off(int id) tegra_powergate_power_off() argument
214 if (!pmc->soc || id < 0 || id >= pmc->soc->num_powergates) tegra_powergate_power_off()
217 return tegra_powergate_set(id, false); tegra_powergate_power_off()
223 * @id: partition ID
225 int tegra_powergate_is_powered(int id) tegra_powergate_is_powered() argument
229 if (!pmc->soc || id < 0 || id >= pmc->soc->num_powergates) tegra_powergate_is_powered()
232 status = tegra_pmc_readl(PWRGATE_STATUS) & (1 << id); tegra_powergate_is_powered()
238 * @id: partition ID
240 int tegra_powergate_remove_clamping(int id) tegra_powergate_remove_clamping() argument
244 if (!pmc->soc || id < 0 || id >= pmc->soc->num_powergates) tegra_powergate_remove_clamping()
251 if (id == TEGRA_POWERGATE_3D) { tegra_powergate_remove_clamping()
262 if (id == TEGRA_POWERGATE_VDEC) tegra_powergate_remove_clamping()
264 else if (id == TEGRA_POWERGATE_PCIE) tegra_powergate_remove_clamping()
267 mask = (1 << id); tegra_powergate_remove_clamping()
277 * @id: partition ID
283 int tegra_powergate_sequence_power_up(int id, struct clk *clk, tegra_powergate_sequence_power_up() argument
290 ret = tegra_powergate_power_on(id); tegra_powergate_sequence_power_up()
300 ret = tegra_powergate_remove_clamping(id); tegra_powergate_sequence_power_up()
312 tegra_powergate_power_off(id); tegra_powergate_sequence_power_up()
340 int id; tegra_pmc_cpu_is_powered() local
342 id = tegra_get_cpu_powergate_id(cpuid); tegra_pmc_cpu_is_powered()
343 if (id < 0) tegra_pmc_cpu_is_powered()
346 return tegra_powergate_is_powered(id); tegra_pmc_cpu_is_powered()
355 int id; tegra_pmc_cpu_power_on() local
357 id = tegra_get_cpu_powergate_id(cpuid); tegra_pmc_cpu_power_on()
358 if (id < 0) tegra_pmc_cpu_power_on()
359 return id; tegra_pmc_cpu_power_on()
361 return tegra_powergate_set(id, true); tegra_pmc_cpu_power_on()
370 int id; tegra_pmc_cpu_remove_clamping() local
372 id = tegra_get_cpu_powergate_id(cpuid); tegra_pmc_cpu_remove_clamping()
373 if (id < 0) tegra_pmc_cpu_remove_clamping()
374 return id; tegra_pmc_cpu_remove_clamping()
376 return tegra_powergate_remove_clamping(id); tegra_pmc_cpu_remove_clamping()
452 static int tegra_io_rail_prepare(int id, unsigned long *request, tegra_io_rail_prepare() argument
458 *bit = id % 32; tegra_io_rail_prepare()
464 if (id > 63 || *bit == 30 || *bit == 31) tegra_io_rail_prepare()
467 if (id < 32) { tegra_io_rail_prepare()
515 int tegra_io_rail_power_on(int id) tegra_io_rail_power_on() argument
521 err = tegra_io_rail_prepare(id, &request, &status, &bit); tegra_io_rail_power_on()
543 int tegra_io_rail_power_off(int id) tegra_io_rail_power_off() argument
549 err = tegra_io_rail_prepare(id, &request, &status, &bit); tegra_io_rail_power_off()
743 if (of_property_read_u32(np, "nvidia,i2c-controller-id", &ctrl_id)) { tegra_pmc_init_tsense_reset()
763 if (of_property_read_u32(np, "nvidia,pinmux-id", &pinmux)) tegra_pmc_init_tsense_reset()

Completed in 4637 milliseconds

1234567891011>>