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

1234567891011>>

/linux-4.4.14/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.4.14/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.4.14/tools/perf/util/
H A Dperf_regs.c10 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id) perf_reg_value() argument
15 if (regs->cache_mask & (1 << id)) perf_reg_value()
18 if (!(mask & (1 << id))) perf_reg_value()
21 for (i = 0; i < id; i++) { perf_reg_value()
26 regs->cache_mask |= (1 << id); perf_reg_value()
27 regs->cache_regs[id] = regs->regs[idx]; perf_reg_value()
30 *valp = regs->cache_regs[id]; perf_reg_value()
H A Dperf_regs.h21 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
27 static inline const char *perf_reg_name(int id __maybe_unused) perf_reg_name()
34 int id __maybe_unused) perf_reg_value()
/linux-4.4.14/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.4.14/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.4.14/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.c119 #define cdns_i2c_readreg(offset) readl_relaxed(id->membase + offset)
120 #define cdns_i2c_writereg(val, offset) writel_relaxed(val, id->membase + offset)
173 * @id: Pointer to driver data struct
177 static void cdns_i2c_clear_bus_hold(struct cdns_i2c *id) cdns_i2c_clear_bus_hold() argument
184 static inline bool cdns_is_holdquirk(struct cdns_i2c *id, bool hold_wrkaround) cdns_is_holdquirk() argument
187 (id->curr_recv_count == CDNS_I2C_FIFO_DEPTH + 1)); cdns_is_holdquirk()
205 struct cdns_i2c *id = ptr; cdns_i2c_isr() local
224 if (id->recv_count > id->curr_recv_count) cdns_i2c_isr()
227 hold_quirk = (id->quirks & CDNS_I2C_BROKEN_HOLD_BIT) && updatetx; cdns_i2c_isr()
230 if (id->p_recv_buf && cdns_i2c_isr()
241 if ((id->recv_count < CDNS_I2C_FIFO_DEPTH) && cdns_i2c_isr()
242 !id->bus_hold_flag) cdns_i2c_isr()
243 cdns_i2c_clear_bus_hold(id); cdns_i2c_isr()
245 *(id->p_recv_buf)++ = cdns_i2c_isr()
247 id->recv_count--; cdns_i2c_isr()
248 id->curr_recv_count--; cdns_i2c_isr()
250 if (cdns_is_holdquirk(id, hold_quirk)) cdns_i2c_isr()
261 if (cdns_is_holdquirk(id, hold_quirk)) { cdns_i2c_isr()
264 (id->curr_recv_count - CDNS_I2C_FIFO_DEPTH)) cdns_i2c_isr()
271 if (((int)(id->recv_count) - CDNS_I2C_FIFO_DEPTH) > cdns_i2c_isr()
275 id->curr_recv_count = CDNS_I2C_TRANSFER_SIZE + cdns_i2c_isr()
278 cdns_i2c_writereg(id->recv_count - cdns_i2c_isr()
281 id->curr_recv_count = id->recv_count; cdns_i2c_isr()
283 } else if (id->recv_count && !hold_quirk && cdns_i2c_isr()
284 !id->curr_recv_count) { cdns_i2c_isr()
287 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, cdns_i2c_isr()
290 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { cdns_i2c_isr()
293 id->curr_recv_count = CDNS_I2C_TRANSFER_SIZE; cdns_i2c_isr()
295 cdns_i2c_writereg(id->recv_count, cdns_i2c_isr()
297 id->curr_recv_count = id->recv_count; cdns_i2c_isr()
302 if ((isr_status & CDNS_I2C_IXR_COMP) && !id->recv_count) { cdns_i2c_isr()
303 if (!id->bus_hold_flag) cdns_i2c_isr()
304 cdns_i2c_clear_bus_hold(id); cdns_i2c_isr()
312 if ((isr_status & CDNS_I2C_IXR_COMP) && !id->p_recv_buf) { cdns_i2c_isr()
317 if (id->send_count) { cdns_i2c_isr()
320 if (id->send_count > avail_bytes) cdns_i2c_isr()
323 bytes_to_send = id->send_count; cdns_i2c_isr()
327 (*(id->p_send_buf)++), cdns_i2c_isr()
329 id->send_count--; cdns_i2c_isr()
339 if (!id->send_count && !id->bus_hold_flag) cdns_i2c_isr()
340 cdns_i2c_clear_bus_hold(id); cdns_i2c_isr()
346 id->err_status = isr_status & CDNS_I2C_IXR_ERR_INTR_MASK; cdns_i2c_isr()
347 if (id->err_status) cdns_i2c_isr()
351 complete(&id->xfer_done); cdns_i2c_isr()
358 * @id: pointer to the i2c device structure
360 static void cdns_i2c_mrecv(struct cdns_i2c *id) cdns_i2c_mrecv() argument
365 id->p_recv_buf = id->p_msg->buf; cdns_i2c_mrecv()
366 id->recv_count = id->p_msg->len; cdns_i2c_mrecv()
372 if (id->p_msg->flags & I2C_M_RECV_LEN) cdns_i2c_mrecv()
373 id->recv_count = I2C_SMBUS_BLOCK_MAX + 1; cdns_i2c_mrecv()
375 id->curr_recv_count = id->recv_count; cdns_i2c_mrecv()
381 if (id->recv_count > CDNS_I2C_FIFO_DEPTH) cdns_i2c_mrecv()
396 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { cdns_i2c_mrecv()
399 id->curr_recv_count = CDNS_I2C_TRANSFER_SIZE; cdns_i2c_mrecv()
401 cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET); cdns_i2c_mrecv()
405 if (!id->bus_hold_flag && cdns_i2c_mrecv()
406 ((id->p_msg->flags & I2C_M_RECV_LEN) != I2C_M_RECV_LEN) && cdns_i2c_mrecv()
407 (id->recv_count <= CDNS_I2C_FIFO_DEPTH)) cdns_i2c_mrecv()
408 cdns_i2c_clear_bus_hold(id); cdns_i2c_mrecv()
410 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, cdns_i2c_mrecv()
417 * @id: pointer to the i2c device
419 static void cdns_i2c_msend(struct cdns_i2c *id) cdns_i2c_msend() argument
426 id->p_recv_buf = NULL; cdns_i2c_msend()
427 id->p_send_buf = id->p_msg->buf; cdns_i2c_msend()
428 id->send_count = id->p_msg->len; cdns_i2c_msend()
439 if (id->send_count > CDNS_I2C_FIFO_DEPTH) cdns_i2c_msend()
455 if (id->send_count > avail_bytes) cdns_i2c_msend()
458 bytes_to_send = id->send_count; cdns_i2c_msend()
461 cdns_i2c_writereg((*(id->p_send_buf)++), CDNS_I2C_DATA_OFFSET); cdns_i2c_msend()
462 id->send_count--; cdns_i2c_msend()
469 if (!id->bus_hold_flag && !id->send_count) cdns_i2c_msend()
470 cdns_i2c_clear_bus_hold(id); cdns_i2c_msend()
472 cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK, cdns_i2c_msend()
487 struct cdns_i2c *id = adap->algo_data; cdns_i2c_master_reset() local
507 static int cdns_i2c_process_msg(struct cdns_i2c *id, struct i2c_msg *msg, cdns_i2c_process_msg() argument
513 id->p_msg = msg; cdns_i2c_process_msg()
514 id->err_status = 0; cdns_i2c_process_msg()
515 reinit_completion(&id->xfer_done); cdns_i2c_process_msg()
531 cdns_i2c_mrecv(id); cdns_i2c_process_msg()
533 cdns_i2c_msend(id); cdns_i2c_process_msg()
536 time_left = wait_for_completion_timeout(&id->xfer_done, adap->timeout); cdns_i2c_process_msg()
539 dev_err(id->adap.dev.parent, cdns_i2c_process_msg()
548 if (id->err_status & CDNS_I2C_IXR_ARB_LOST) cdns_i2c_process_msg()
569 struct cdns_i2c *id = adap->algo_data; cdns_i2c_master_xfer() local
576 hold_quirk = !!(id->quirks & CDNS_I2C_BROKEN_HOLD_BIT); cdns_i2c_master_xfer()
596 id->bus_hold_flag = 1; cdns_i2c_master_xfer()
601 id->bus_hold_flag = 0; cdns_i2c_master_xfer()
607 id->bus_hold_flag = 0; cdns_i2c_master_xfer()
609 ret = cdns_i2c_process_msg(id, msgs, adap); cdns_i2c_master_xfer()
614 if (id->err_status) { cdns_i2c_master_xfer()
617 if (id->err_status & CDNS_I2C_IXR_NACK) cdns_i2c_master_xfer()
708 * @id: Pointer to the I2C device structure
721 static int cdns_i2c_setclk(unsigned long clk_in, struct cdns_i2c *id) cdns_i2c_setclk() argument
726 unsigned long fscl = id->i2c_clk; cdns_i2c_setclk()
761 struct cdns_i2c *id = to_cdns_i2c(nb); cdns_i2c_clk_notifier_cb() local
763 if (id->suspended) cdns_i2c_clk_notifier_cb()
770 unsigned long fscl = id->i2c_clk; cdns_i2c_clk_notifier_cb()
776 dev_warn(id->adap.dev.parent, cdns_i2c_clk_notifier_cb()
783 cdns_i2c_setclk(ndata->new_rate, id); cdns_i2c_clk_notifier_cb()
788 id->input_clk = ndata->new_rate; cdns_i2c_clk_notifier_cb()
791 cdns_i2c_setclk(ndata->new_rate, id); cdns_i2c_clk_notifier_cb()
796 cdns_i2c_setclk(ndata->old_rate, id); cdns_i2c_clk_notifier_cb()
876 struct cdns_i2c *id; cdns_i2c_probe() local
880 id = devm_kzalloc(&pdev->dev, sizeof(*id), GFP_KERNEL); cdns_i2c_probe()
881 if (!id) cdns_i2c_probe()
884 platform_set_drvdata(pdev, id); cdns_i2c_probe()
889 id->quirks = data->quirks; cdns_i2c_probe()
893 id->membase = devm_ioremap_resource(&pdev->dev, r_mem); cdns_i2c_probe()
894 if (IS_ERR(id->membase)) cdns_i2c_probe()
895 return PTR_ERR(id->membase); cdns_i2c_probe()
897 id->irq = platform_get_irq(pdev, 0); cdns_i2c_probe()
899 id->adap.owner = THIS_MODULE; cdns_i2c_probe()
900 id->adap.dev.of_node = pdev->dev.of_node; cdns_i2c_probe()
901 id->adap.algo = &cdns_i2c_algo; cdns_i2c_probe()
902 id->adap.timeout = CDNS_I2C_TIMEOUT; cdns_i2c_probe()
903 id->adap.retries = 3; /* Default retry value. */ cdns_i2c_probe()
904 id->adap.algo_data = id; cdns_i2c_probe()
905 id->adap.dev.parent = &pdev->dev; cdns_i2c_probe()
906 init_completion(&id->xfer_done); cdns_i2c_probe()
907 snprintf(id->adap.name, sizeof(id->adap.name), cdns_i2c_probe()
910 id->clk = devm_clk_get(&pdev->dev, NULL); cdns_i2c_probe()
911 if (IS_ERR(id->clk)) { cdns_i2c_probe()
913 return PTR_ERR(id->clk); cdns_i2c_probe()
915 ret = clk_prepare_enable(id->clk); cdns_i2c_probe()
920 id->clk_rate_change_nb.notifier_call = cdns_i2c_clk_notifier_cb; cdns_i2c_probe()
921 if (clk_notifier_register(id->clk, &id->clk_rate_change_nb)) cdns_i2c_probe()
923 id->input_clk = clk_get_rate(id->clk); cdns_i2c_probe()
926 &id->i2c_clk); cdns_i2c_probe()
927 if (ret || (id->i2c_clk > CDNS_I2C_SPEED_MAX)) cdns_i2c_probe()
928 id->i2c_clk = CDNS_I2C_SPEED_DEFAULT; cdns_i2c_probe()
933 ret = cdns_i2c_setclk(id->input_clk, id); cdns_i2c_probe()
935 dev_err(&pdev->dev, "invalid SCL clock: %u Hz\n", id->i2c_clk); cdns_i2c_probe()
940 ret = devm_request_irq(&pdev->dev, id->irq, cdns_i2c_isr, 0, cdns_i2c_probe()
941 DRIVER_NAME, id); cdns_i2c_probe()
943 dev_err(&pdev->dev, "cannot get irq %d\n", id->irq); cdns_i2c_probe()
947 ret = i2c_add_adapter(&id->adap); cdns_i2c_probe()
963 id->i2c_clk / 1000, (unsigned long)r_mem->start, id->irq); cdns_i2c_probe()
968 clk_disable_unprepare(id->clk); cdns_i2c_probe()
982 struct cdns_i2c *id = platform_get_drvdata(pdev); cdns_i2c_remove() local
984 i2c_del_adapter(&id->adap); cdns_i2c_remove()
985 clk_notifier_unregister(id->clk, &id->clk_rate_change_nb); cdns_i2c_remove()
986 clk_disable_unprepare(id->clk); cdns_i2c_remove()
/linux-4.4.14/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()
87 id, value); cfs_fail_check_set()
90 id, value); cfs_fail_check_set()
98 /* If id hit cfs_fail_loc, return 1, otherwise return 0 */
99 #define CFS_FAIL_CHECK(id) \
100 cfs_fail_check_set(id, 0, CFS_FAIL_LOC_NOSET, 0)
101 #define CFS_FAIL_CHECK_QUIET(id) \
102 cfs_fail_check_set(id, 0, CFS_FAIL_LOC_NOSET, 1)
104 /* If id hit cfs_fail_loc and cfs_fail_val == (-1 or value) return 1,
106 #define CFS_FAIL_CHECK_VALUE(id, value) \
107 cfs_fail_check_set(id, value, CFS_FAIL_LOC_VALUE, 0)
108 #define CFS_FAIL_CHECK_VALUE_QUIET(id, value) \
109 cfs_fail_check_set(id, value, CFS_FAIL_LOC_VALUE, 1)
111 /* If id hit cfs_fail_loc, cfs_fail_loc |= value and return 1,
113 #define CFS_FAIL_CHECK_ORSET(id, value) \
114 cfs_fail_check_set(id, value, CFS_FAIL_LOC_ORSET, 0)
115 #define CFS_FAIL_CHECK_ORSET_QUIET(id, value) \
116 cfs_fail_check_set(id, value, CFS_FAIL_LOC_ORSET, 1)
118 /* If id hit cfs_fail_loc, cfs_fail_loc = value and return 1,
120 #define CFS_FAIL_CHECK_RESET(id, value) \
121 cfs_fail_check_set(id, value, CFS_FAIL_LOC_RESET, 0)
122 #define CFS_FAIL_CHECK_RESET_QUIET(id, value) \
123 cfs_fail_check_set(id, value, CFS_FAIL_LOC_RESET, 1)
125 static inline int cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set) cfs_fail_timeout_set() argument
127 if (unlikely(CFS_FAIL_PRECHECK(id))) cfs_fail_timeout_set()
128 return __cfs_fail_timeout_set(id, value, ms, set); cfs_fail_timeout_set()
132 /* If id hit cfs_fail_loc, sleep for seconds or milliseconds */
133 #define CFS_FAIL_TIMEOUT(id, secs) \
134 cfs_fail_timeout_set(id, 0, secs * 1000, CFS_FAIL_LOC_NOSET)
136 #define CFS_FAIL_TIMEOUT_MS(id, ms) \
137 cfs_fail_timeout_set(id, 0, ms, CFS_FAIL_LOC_NOSET)
139 /* If id hit cfs_fail_loc, cfs_fail_loc |= value and
141 #define CFS_FAIL_TIMEOUT_ORSET(id, value, secs) \
142 cfs_fail_timeout_set(id, value, secs * 1000, CFS_FAIL_LOC_ORSET)
144 #define CFS_FAIL_TIMEOUT_MS_ORSET(id, value, ms) \
145 cfs_fail_timeout_set(id, value, ms, CFS_FAIL_LOC_ORSET)
151 static inline void cfs_race(__u32 id) cfs_race() argument
154 if (CFS_FAIL_PRECHECK(id)) { cfs_race()
155 if (unlikely(__cfs_fail_check_set(id, 0, CFS_FAIL_LOC_NOSET))) { cfs_race()
159 CERROR("cfs_race id %x sleeping\n", id); cfs_race()
162 CERROR("cfs_fail_race id %x awake, rc=%d\n", id, rc); cfs_race()
164 CERROR("cfs_fail_race id %x waking\n", id); cfs_race()
171 #define CFS_RACE(id) cfs_race(id)
/linux-4.4.14/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.4.14/drivers/staging/wilc1000/
H A Dwilc_wlan_cfg.h14 u16 id; member in struct:__anon10887
19 u16 id; member in struct:__anon10888
24 u32 id; member in struct:__anon10889
29 u32 id; member in struct:__anon10890
33 int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size);
34 int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id);
H A Dwilc_wlan_cfg.c164 static int wilc_wlan_cfg_set_byte(u8 *frame, u32 offset, u16 id, u8 val8) wilc_wlan_cfg_set_byte() argument
173 buf[0] = (u8)id; wilc_wlan_cfg_set_byte()
174 buf[1] = (u8)(id >> 8); wilc_wlan_cfg_set_byte()
180 static int wilc_wlan_cfg_set_hword(u8 *frame, u32 offset, u16 id, u16 val16) wilc_wlan_cfg_set_hword() argument
189 buf[0] = (u8)id; wilc_wlan_cfg_set_hword()
190 buf[1] = (u8)(id >> 8); wilc_wlan_cfg_set_hword()
198 static int wilc_wlan_cfg_set_word(u8 *frame, u32 offset, u16 id, u32 val32) wilc_wlan_cfg_set_word() argument
207 buf[0] = (u8)id; wilc_wlan_cfg_set_word()
208 buf[1] = (u8)(id >> 8); wilc_wlan_cfg_set_word()
218 static int wilc_wlan_cfg_set_str(u8 *frame, u32 offset, u16 id, u8 *str, u32 size) wilc_wlan_cfg_set_str() argument
227 buf[0] = (u8)id; wilc_wlan_cfg_set_str()
228 buf[1] = (u8)(id >> 8); wilc_wlan_cfg_set_str()
237 static int wilc_wlan_cfg_set_bin(u8 *frame, u32 offset, u16 id, u8 *b, u32 size) wilc_wlan_cfg_set_bin() argument
247 buf[0] = (u8)id; wilc_wlan_cfg_set_bin()
248 buf[1] = (u8)(id >> 8); wilc_wlan_cfg_set_bin()
285 if (g_cfg_byte[i].id == WID_NIL) wilc_wlan_parse_response_frame()
288 if (g_cfg_byte[i].id == wid) { wilc_wlan_parse_response_frame()
299 if (g_cfg_hword[i].id == WID_NIL) wilc_wlan_parse_response_frame()
302 if (g_cfg_hword[i].id == wid) { wilc_wlan_parse_response_frame()
317 if (g_cfg_word[i].id == WID_NIL) wilc_wlan_parse_response_frame()
320 if (g_cfg_word[i].id == wid) { wilc_wlan_parse_response_frame()
335 if (g_cfg_str[i].id == WID_NIL) wilc_wlan_parse_response_frame()
338 if (g_cfg_str[i].id == wid) { wilc_wlan_parse_response_frame()
389 int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size) wilc_wlan_cfg_set_wid() argument
391 u8 type = (id >> 12) & 0xf; wilc_wlan_cfg_set_wid()
396 ret = wilc_wlan_cfg_set_byte(frame, offset, id, *buf); wilc_wlan_cfg_set_wid()
399 ret = wilc_wlan_cfg_set_hword(frame, offset, id, *((u16 *)buf)); wilc_wlan_cfg_set_wid()
402 ret = wilc_wlan_cfg_set_word(frame, offset, id, *((u32 *)buf)); wilc_wlan_cfg_set_wid()
404 ret = wilc_wlan_cfg_set_str(frame, offset, id, buf, size); wilc_wlan_cfg_set_wid()
406 ret = wilc_wlan_cfg_set_bin(frame, offset, id, buf, size); wilc_wlan_cfg_set_wid()
408 g_mac.dPrint(N_ERR, "illegal id\n"); wilc_wlan_cfg_set_wid()
414 int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id) wilc_wlan_cfg_get_wid() argument
423 buf[0] = (u8)id; wilc_wlan_cfg_get_wid()
424 buf[1] = (u8)(id >> 8); wilc_wlan_cfg_get_wid()
442 if (g_cfg_byte[i].id == WID_NIL) wilc_wlan_cfg_get_wid_value()
445 if (g_cfg_byte[i].id == wid) { wilc_wlan_cfg_get_wid_value()
454 if (g_cfg_hword[i].id == WID_NIL) wilc_wlan_cfg_get_wid_value()
457 if (g_cfg_hword[i].id == wid) { wilc_wlan_cfg_get_wid_value()
466 if (g_cfg_word[i].id == WID_NIL) wilc_wlan_cfg_get_wid_value()
469 if (g_cfg_word[i].id == wid) { wilc_wlan_cfg_get_wid_value()
478 if (g_cfg_str[i].id == WID_NIL) wilc_wlan_cfg_get_wid_value()
481 if (g_cfg_str[i].id == wid) { wilc_wlan_cfg_get_wid_value()
485 if (g_cfg_str[i].id == WID_SITE_SURVEY_RESULTS) { wilc_wlan_cfg_get_wid_value()
/linux-4.4.14/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.4.14/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, const 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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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 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.4.14/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)
150 TP_PROTO(unsigned int id, __u64 type, __u32 parm, __u64 parm64),
151 TP_ARGS(id, type, parm, parm64),
154 __field(int, id)
161 __entry->id = id;
168 __entry->id, __entry->inttype,
177 TP_PROTO(unsigned int id, __u64 type, __u64 data0, __u64 data1),
178 TP_ARGS(id, type, data0, data1),
181 __field(int, id)
188 __entry->id = id;
196 __entry->id, __entry->inttype,
266 TP_PROTO(unsigned int id, int state),
267 TP_ARGS(id, state),
270 __field(unsigned int, id)
275 __entry->id = id;
280 __entry->state ? "enabling" : "disabling", __entry->id)
/linux-4.4.14/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.h21 nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) nf_ct_zone_init() argument
23 zone->id = id; nf_ct_zone_init()
56 nf_ct_zone_init(nf_ct_zone, info->id, info->dir, nf_ct_zone_add()
72 zone->id : NF_CT_DEFAULT_ZONE_ID; nf_ct_zone_id()
86 return nf_ct_zone(a)->id == b->id; nf_ct_zone_equal_any()
/linux-4.4.14/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.4.14/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 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()
85 struct device *dev, const char *id) devm_reset_control_get()
92 struct device *dev, const char *id) reset_control_get_optional()
98 struct device *dev, const char *id) devm_reset_control_get_optional()
104 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( struct device *dev, const char *id) reset_control_get() argument
84 devm_reset_control_get( struct device *dev, const char *id) devm_reset_control_get() argument
91 reset_control_get_optional( struct device *dev, const char *id) reset_control_get_optional() argument
97 devm_reset_control_get_optional( struct device *dev, const char *id) devm_reset_control_get_optional() argument
103 of_reset_control_get( struct device_node *node, const char *id) of_reset_control_get() argument
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
705 if (!(id[ATA_ID_CFS_ENABLE_2] & (1 << 15))) ata_id_has_read_log_dma_ext()
712 if ((id[ATA_ID_COMMAND_SET_3] & 0xC008) == 0x4008 || ata_id_has_read_log_dma_ext()
713 (id[ATA_ID_COMMAND_SET_4] & 0xC008) == 0x4008) ata_id_has_read_log_dma_ext()
721 * @id: Identify data
732 static inline unsigned int ata_id_major_version(const u16 *id) ata_id_major_version() argument
736 if (id[ATA_ID_MAJOR_VER] == 0xFFFF) ata_id_major_version()
740 if (id[ATA_ID_MAJOR_VER] & (1 << mver)) ata_id_major_version()
745 static inline bool ata_id_is_sata(const u16 *id) ata_id_is_sata() argument
753 if (id[ATA_ID_HW_CONFIG] == 0 && (short)id[ATA_ID_MAJOR_VER] >= 0x0020) ata_id_is_sata()
758 static inline bool ata_id_has_tpm(const u16 *id) ata_id_has_tpm() argument
761 if (ata_id_major_version(id) < 8) ata_id_has_tpm()
763 if ((id[48] & 0xC000) != 0x4000) ata_id_has_tpm()
765 return id[48] & (1 << 0); ata_id_has_tpm()
768 static inline bool ata_id_has_dword_io(const u16 *id) ata_id_has_dword_io() argument
771 if (ata_id_major_version(id) > 7) ata_id_has_dword_io()
773 return id[ATA_ID_DWORD_IO] & (1 << 0); ata_id_has_dword_io()
776 static inline bool ata_id_has_unload(const u16 *id) ata_id_has_unload() argument
778 if (ata_id_major_version(id) >= 7 && ata_id_has_unload()
779 (id[ATA_ID_CFSSE] & 0xC000) == 0x4000 && ata_id_has_unload()
780 id[ATA_ID_CFSSE] & (1 << 13)) ata_id_has_unload()
785 static inline bool ata_id_has_wwn(const u16 *id) ata_id_has_wwn() argument
787 return (id[ATA_ID_CSF_DEFAULT] & 0xC100) == 0x4100; ata_id_has_wwn()
790 static inline int ata_id_form_factor(const u16 *id) ata_id_form_factor() argument
792 u16 val = id[168]; ata_id_form_factor()
794 if (ata_id_major_version(id) < 7 || val == 0 || val == 0xffff) ata_id_form_factor()
805 static inline int ata_id_rotation_rate(const u16 *id) ata_id_rotation_rate() argument
807 u16 val = id[217]; ata_id_rotation_rate()
809 if (ata_id_major_version(id) < 7 || val == 0 || val == 0xffff) ata_id_rotation_rate()
818 static inline bool ata_id_has_ncq_send_and_recv(const u16 *id) ata_id_has_ncq_send_and_recv() argument
820 return id[ATA_ID_SATA_CAPABILITY_2] & BIT(6); ata_id_has_ncq_send_and_recv()
823 static inline bool ata_id_has_trim(const u16 *id) ata_id_has_trim() argument
825 if (ata_id_major_version(id) >= 7 && ata_id_has_trim()
826 (id[ATA_ID_DATA_SET_MGMT] & 1)) ata_id_has_trim()
831 static inline bool ata_id_has_zero_after_trim(const u16 *id) ata_id_has_zero_after_trim() argument
834 if (ata_id_has_trim(id) && ata_id_has_zero_after_trim()
835 (id[ATA_ID_ADDITIONAL_SUPP] & 0x4020) == 0x4020) ata_id_has_zero_after_trim()
841 static inline bool ata_id_current_chs_valid(const u16 *id) ata_id_current_chs_valid() argument
845 id[ATA_ID_CUR_CYLS] to id[ATA_ID_CUR_SECTORS] are vendor specific. */ ata_id_current_chs_valid()
846 return (id[ATA_ID_FIELD_VALID] & 1) && /* Current translation valid */ ata_id_current_chs_valid()
847 id[ATA_ID_CUR_CYLS] && /* cylinders in current translation */ ata_id_current_chs_valid()
848 id[ATA_ID_CUR_HEADS] && /* heads in current translation */ ata_id_current_chs_valid()
849 id[ATA_ID_CUR_HEADS] <= 16 && ata_id_current_chs_valid()
850 id[ATA_ID_CUR_SECTORS]; /* sectors in current translation */ ata_id_current_chs_valid()
853 static inline bool ata_id_is_cfa(const u16 *id) ata_id_is_cfa() argument
855 if ((id[ATA_ID_CONFIG] == 0x848A) || /* Traditional CF */ ata_id_is_cfa()
856 (id[ATA_ID_CONFIG] == 0x844A)) /* Delkin Devices CF */ ata_id_is_cfa()
866 return (id[ATA_ID_COMMAND_SET_2] & 0xC004) == 0x4004; ata_id_is_cfa()
869 static inline bool ata_id_is_ssd(const u16 *id) ata_id_is_ssd() argument
871 return id[ATA_ID_ROT_SPEED] == 0x01; ata_id_is_ssd()
874 static inline bool ata_id_pio_need_iordy(const u16 *id, const u8 pio) ata_id_pio_need_iordy() argument
877 if (pio > 4 && ata_id_is_cfa(id)) ata_id_pio_need_iordy()
883 return ata_id_has_iordy(id); ata_id_pio_need_iordy()
930 static inline bool ata_id_is_lba_capacity_ok(u16 *id) ata_id_is_lba_capacity_ok() argument
935 if (id[ATA_ID_CYLS] == 0) ata_id_is_lba_capacity_ok()
938 lba_sects = ata_id_u32(id, ATA_ID_LBA_CAPACITY); ata_id_is_lba_capacity_ok()
946 if ((id[ATA_ID_CYLS] == 16383 || ata_id_is_lba_capacity_ok()
947 (id[ATA_ID_CYLS] == 4092 && id[ATA_ID_CUR_CYLS] == 16383)) && ata_id_is_lba_capacity_ok()
948 id[ATA_ID_SECTORS] == 63 && ata_id_is_lba_capacity_ok()
949 (id[ATA_ID_HEADS] == 15 || id[ATA_ID_HEADS] == 16) && ata_id_is_lba_capacity_ok()
950 (lba_sects >= 16383 * 63 * id[ATA_ID_HEADS])) ata_id_is_lba_capacity_ok()
953 chs_sects = id[ATA_ID_CYLS] * id[ATA_ID_HEADS] * id[ATA_ID_SECTORS]; ata_id_is_lba_capacity_ok()
965 *(__le32 *)&id[ATA_ID_LBA_CAPACITY] = __cpu_to_le32(lba_sects); ata_id_is_lba_capacity_ok()
972 static inline void ata_id_to_hd_driveid(u16 *id) ata_id_to_hd_driveid() argument
976 id[ATA_ID_MAX_MULTSECT] = __cpu_to_le16(id[ATA_ID_MAX_MULTSECT]); ata_id_to_hd_driveid()
977 id[ATA_ID_CAPABILITY] = __cpu_to_le16(id[ATA_ID_CAPABILITY]); ata_id_to_hd_driveid()
978 id[ATA_ID_OLD_PIO_MODES] = __cpu_to_le16(id[ATA_ID_OLD_PIO_MODES]); ata_id_to_hd_driveid()
979 id[ATA_ID_OLD_DMA_MODES] = __cpu_to_le16(id[ATA_ID_OLD_DMA_MODES]); ata_id_to_hd_driveid()
980 id[ATA_ID_MULTSECT] = __cpu_to_le16(id[ATA_ID_MULTSECT]); ata_id_to_hd_driveid()
983 *(u32 *)&id[ATA_ID_LBA_CAPACITY] = ata_id_u32(id, ATA_ID_LBA_CAPACITY); ata_id_to_hd_driveid()
984 *(u32 *)&id[ATA_ID_SPG] = ata_id_u32(id, ATA_ID_SPG); ata_id_to_hd_driveid()
987 *(u64 *)&id[ATA_ID_LBA_CAPACITY_2] = ata_id_to_hd_driveid()
988 ata_id_u64(id, ATA_ID_LBA_CAPACITY_2); ata_id_to_hd_driveid()
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.4.14/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.4.14/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.4.14/drivers/memory/tegra/
H A Dtegra114.c18 .id = 0x00,
22 .id = 0x01,
36 .id = 0x02,
50 .id = 0x03,
64 .id = 0x04,
78 .id = 0x05,
92 .id = 0x06,
106 .id = 0x09,
120 .id = 0x0a,
134 .id = 0x0b,
148 .id = 0x0f,
162 .id = 0x10,
176 .id = 0x11,
190 .id = 0x12,
204 .id = 0x13,
218 .id = 0x14,
232 .id = 0x15,
246 .id = 0x16,
260 .id = 0x17,
274 .id = 0x18,
288 .id = 0x1c,
302 .id = 0x1d,
316 .id = 0x1e,
330 .id = 0x20,
344 .id = 0x22,
358 .id = 0x23,
372 .id = 0x24,
386 .id = 0x25,
400 .id = 0x26,
410 .id = 0x27,
420 .id = 0x28,
434 .id = 0x29,
448 .id = 0x2a,
462 .id = 0x2b,
476 .id = 0x2c,
490 .id = 0x2d,
504 .id = 0x2e,
518 .id = 0x2f,
532 .id = 0x30,
546 .id = 0x32,
560 .id = 0x33,
574 .id = 0x34,
588 .id = 0x35,
602 .id = 0x36,
616 .id = 0x37,
630 .id = 0x38,
640 .id = 0x39,
650 .id = 0x3b,
664 .id = 0x3c,
678 .id = 0x3e,
692 .id = 0x3f,
706 .id = 0x40,
720 .id = 0x41,
734 .id = 0x4a,
748 .id = 0x4b,
762 .id = 0x4c,
776 .id = 0x4d,
790 .id = 0x4e,
804 .id = 0x4f,
818 .id = 0x50,
832 .id = 0x51,
846 .id = 0x52,
856 .id = 0x53,
866 .id = 0x54,
880 .id = 0x55,
H A Dtegra210.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 = 0x27,
272 .id = 0x2b,
286 .id = 0x31,
300 .id = 0x32,
314 .id = 0x35,
328 .id = 0x36,
342 .id = 0x39,
352 .id = 0x3b,
366 .id = 0x3c,
380 .id = 0x3d,
394 .id = 0x44,
408 .id = 0x46,
422 .id = 0x47,
436 .id = 0x4a,
450 .id = 0x4b,
464 .id = 0x4c,
478 .id = 0x4d,
492 .id = 0x4e,
506 .id = 0x50,
520 .id = 0x51,
534 .id = 0x54,
548 .id = 0x55,
562 .id = 0x56,
576 .id = 0x57,
590 .id = 0x58,
605 .id = 0x59,
620 .id = 0x5a,
634 .id = 0x60,
648 .id = 0x61,
662 .id = 0x62,
676 .id = 0x63,
690 .id = 0x64,
704 .id = 0x65,
718 .id = 0x66,
732 .id = 0x67,
746 .id = 0x6c,
760 .id = 0x6d,
774 .id = 0x72,
788 .id = 0x73,
802 .id = 0x78,
816 .id = 0x79,
830 .id = 0x7a,
844 .id = 0x7b,
858 .id = 0x7e,
872 .id = 0x7f,
886 .id = 0x80,
900 .id = 0x81,
914 .id = 0x82,
928 .id = 0x83,
942 .id = 0x84,
956 .id = 0x85,
970 .id = 0x86,
984 .id = 0x87,
998 .id = 0x88,
1013 .id = 0x89,
H A Dtegra124.c60 .id = 0x00,
64 .id = 0x01,
78 .id = 0x02,
92 .id = 0x03,
106 .id = 0x04,
120 .id = 0x05,
134 .id = 0x06,
148 .id = 0x0e,
162 .id = 0x0f,
176 .id = 0x10,
190 .id = 0x11,
204 .id = 0x15,
218 .id = 0x16,
232 .id = 0x17,
246 .id = 0x1c,
260 .id = 0x1d,
274 .id = 0x1e,
288 .id = 0x1f,
302 .id = 0x22,
316 .id = 0x23,
330 .id = 0x24,
344 .id = 0x25,
358 .id = 0x26,
368 .id = 0x27,
378 .id = 0x2b,
392 .id = 0x31,
406 .id = 0x32,
420 .id = 0x35,
434 .id = 0x36,
448 .id = 0x38,
458 .id = 0x39,
468 .id = 0x3b,
482 .id = 0x3c,
496 .id = 0x3d,
510 .id = 0x3e,
524 .id = 0x3f,
538 .id = 0x40,
552 .id = 0x41,
566 .id = 0x44,
580 .id = 0x46,
594 .id = 0x47,
608 .id = 0x4a,
622 .id = 0x4b,
636 .id = 0x4c,
650 .id = 0x4d,
664 .id = 0x4e,
678 .id = 0x50,
692 .id = 0x51,
706 .id = 0x54,
720 .id = 0x55,
734 .id = 0x56,
748 .id = 0x57,
762 .id = 0x58,
777 .id = 0x59,
792 .id = 0x5a,
806 .id = 0x60,
820 .id = 0x61,
834 .id = 0x62,
848 .id = 0x63,
862 .id = 0x64,
876 .id = 0x65,
890 .id = 0x66,
904 .id = 0x67,
918 .id = 0x6c,
932 .id = 0x6d,
946 .id = 0x72,
960 .id = 0x73,
H A Dtegra30.c18 .id = 0x00,
22 .id = 0x01,
36 .id = 0x02,
50 .id = 0x03,
64 .id = 0x04,
78 .id = 0x05,
92 .id = 0x06,
106 .id = 0x07,
120 .id = 0x08,
134 .id = 0x09,
148 .id = 0x0a,
162 .id = 0x0b,
176 .id = 0x0c,
190 .id = 0x0d,
204 .id = 0x0e,
218 .id = 0x0f,
232 .id = 0x10,
246 .id = 0x11,
260 .id = 0x12,
274 .id = 0x13,
288 .id = 0x14,
302 .id = 0x15,
316 .id = 0x16,
330 .id = 0x17,
344 .id = 0x18,
358 .id = 0x19,
372 .id = 0x1a,
386 .id = 0x1b,
400 .id = 0x1c,
414 .id = 0x1d,
428 .id = 0x1e,
442 .id = 0x1f,
456 .id = 0x20,
470 .id = 0x21,
484 .id = 0x22,
498 .id = 0x23,
512 .id = 0x24,
526 .id = 0x25,
540 .id = 0x26,
550 .id = 0x27,
560 .id = 0x28,
574 .id = 0x29,
588 .id = 0x2a,
602 .id = 0x2b,
616 .id = 0x2c,
630 .id = 0x2d,
644 .id = 0x2e,
658 .id = 0x2f,
672 .id = 0x30,
686 .id = 0x31,
700 .id = 0x32,
714 .id = 0x33,
728 .id = 0x34,
742 .id = 0x35,
756 .id = 0x36,
770 .id = 0x37,
784 .id = 0x38,
794 .id = 0x39,
804 .id = 0x3a,
818 .id = 0x3b,
832 .id = 0x3c,
846 .id = 0x3d,
860 .id = 0x3e,
874 .id = 0x3f,
888 .id = 0x40,
902 .id = 0x41,
/linux-4.4.14/drivers/gpu/drm/sti/
H A Dsti_vid.h15 * @id: id of the vid
20 int id; member in struct:sti_vid
26 struct sti_vid *sti_vid_create(struct device *dev, int id,
/linux-4.4.14/net/wimax/
H A DMakefile5 id-table.o \
/linux-4.4.14/arch/parisc/include/asm/
H A Dmmu.h4 /* On parisc, we store the space id here */
/linux-4.4.14/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()
434 int id; wm831x_aldo_probe() local
440 id = (pdata->wm831x_num * 10) + 1; wm831x_aldo_probe()
442 id = 0; wm831x_aldo_probe()
443 id = pdev->id - id; wm831x_aldo_probe()
445 dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); wm831x_aldo_probe()
461 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); wm831x_aldo_probe()
465 "LDO%dVDD", id + 1); wm831x_aldo_probe()
468 ldo->desc.id = id; wm831x_aldo_probe()
478 ldo->desc.enable_mask = 1 << id; wm831x_aldo_probe()
484 config.init_data = pdata->ldo[id]; wm831x_aldo_probe()
493 id + 1, ret); wm831x_aldo_probe()
578 int id; wm831x_alive_ldo_probe() local
584 id = (pdata->wm831x_num * 10) + 1; wm831x_alive_ldo_probe()
586 id = 0; wm831x_alive_ldo_probe()
587 id = pdev->id - id; wm831x_alive_ldo_probe()
590 dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); wm831x_alive_ldo_probe()
606 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); wm831x_alive_ldo_probe()
610 "LDO%dVDD", id + 1); wm831x_alive_ldo_probe()
613 ldo->desc.id = id; wm831x_alive_ldo_probe()
621 ldo->desc.enable_mask = 1 << id; wm831x_alive_ldo_probe()
628 config.init_data = pdata->ldo[id]; wm831x_alive_ldo_probe()
637 id + 1, ret); wm831x_alive_ldo_probe()
/linux-4.4.14/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.4.14/sound/
H A Dac97_bus.c23 * @id: The ID to compare to
24 * @id_mask: Mask that is applied to the device ID before comparing to @id
26 * If @id is 0 this function returns true if the read device vendor ID is
27 * a valid ID. If @id is non 0 this functions returns true if @id
30 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, snd_ac97_check_id() argument
33 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; snd_ac97_check_id()
34 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); snd_ac97_check_id()
36 if (ac97->id == 0x0 || ac97->id == 0xffffffff) snd_ac97_check_id()
39 if (id != 0 && id != (ac97->id & id_mask)) snd_ac97_check_id()
49 * @id: Expected device vendor ID
50 * @id_mask: Mask that is applied to the device ID before comparing to @id
56 * otherwise a negative error code. If @id is 0 any valid device ID will be
57 * accepted, otherwise only the ID that matches @id and @id_mask is accepted.
59 int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, snd_ac97_reset() argument
66 if (snd_ac97_check_id(ac97, id, id_mask)) snd_ac97_reset()
75 if (snd_ac97_check_id(ac97, id, id_mask)) snd_ac97_reset()
85 * structure and may decide based on the id field amongst other things.
/linux-4.4.14/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.4.14/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, false); icmp_manip_pkt()
71 hdr->un.echo.id = tuple->src.u.icmp.id; icmp_manip_pkt()
/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/obdclass/
H A Ddebug.c50 int block_debug_setup(void *addr, int len, __u64 off, __u64 id) block_debug_setup() argument
55 put_unaligned_le64(id, addr+LPDS); block_debug_setup()
58 put_unaligned_le64(id, addr+LPDS); block_debug_setup()
64 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id) block_debug_check() argument
72 id = le64_to_cpu (id); block_debug_check()
74 CDEBUG(D_ERROR, "%s: id %#llx offset %llu off: %#llx != %#llx\n", block_debug_check()
75 who, id, off, *(__u64 *)addr, ne_off); block_debug_check()
78 if (memcmp(addr + LPDS, (char *)&id, LPDS)) { block_debug_check()
79 CDEBUG(D_ERROR, "%s: id %#llx offset %llu id: %#llx != %#llx\n", block_debug_check()
80 who, id, off, *(__u64 *)(addr + LPDS), id); block_debug_check()
86 CDEBUG(D_ERROR, "%s: id %#llx offset %llu end off: %#llx != %#llx\n", block_debug_check()
87 who, id, off, *(__u64 *)addr, ne_off); block_debug_check()
90 if (memcmp(addr + LPDS, (char *)&id, LPDS)) { block_debug_check()
91 CDEBUG(D_ERROR, "%s: id %#llx offset %llu end id: %#llx != %#llx\n", block_debug_check()
92 who, id, off, *(__u64 *)(addr + LPDS), id); block_debug_check()
/linux-4.4.14/drivers/clk/versatile/
H A Dclk-impd1.c84 * @id: the ID of this LM
86 void integrator_impd1_clk_init(void __iomem *base, unsigned int id) integrator_impd1_clk_init() argument
93 if (id > 3) { integrator_impd1_clk_init()
97 imc = &impd1_clks[id]; integrator_impd1_clk_init()
100 imc->pclkname = kasprintf(GFP_KERNEL, "lm%x-pclk", id); integrator_impd1_clk_init()
105 imc->vco1name = kasprintf(GFP_KERNEL, "lm%x-vco1", id); integrator_impd1_clk_init()
109 imc->clks[0] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id); integrator_impd1_clk_init()
110 imc->clks[1] = clkdev_alloc(clk, NULL, "lm%x:01000", id); integrator_impd1_clk_init()
113 imc->vco2name = kasprintf(GFP_KERNEL, "lm%x-vco2", id); integrator_impd1_clk_init()
119 imc->clks[2] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00700", id); integrator_impd1_clk_init()
120 imc->clks[3] = clkdev_alloc(clk, NULL, "lm%x:00700", id); integrator_impd1_clk_init()
123 imc->uartname = kasprintf(GFP_KERNEL, "lm%x-uartclk", id); integrator_impd1_clk_init()
127 imc->clks[4] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00100", id); integrator_impd1_clk_init()
128 imc->clks[5] = clkdev_alloc(clk, NULL, "lm%x:00100", id); integrator_impd1_clk_init()
129 imc->clks[6] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00200", id); integrator_impd1_clk_init()
130 imc->clks[7] = clkdev_alloc(clk, NULL, "lm%x:00200", id); integrator_impd1_clk_init()
133 imc->spiname = kasprintf(GFP_KERNEL, "lm%x-spiclk", id); integrator_impd1_clk_init()
136 imc->clks[8] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00300", id); integrator_impd1_clk_init()
137 imc->clks[9] = clkdev_alloc(clk, NULL, "lm%x:00300", id); integrator_impd1_clk_init()
140 imc->clks[10] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00400", id); integrator_impd1_clk_init()
141 imc->clks[11] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00500", id); integrator_impd1_clk_init()
142 imc->clks[12] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00800", id); integrator_impd1_clk_init()
145 imc->scname = kasprintf(GFP_KERNEL, "lm%x-scclk", id); integrator_impd1_clk_init()
149 imc->clks[13] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00600", id); integrator_impd1_clk_init()
150 imc->clks[14] = clkdev_alloc(clk, NULL, "lm%x:00600", id); integrator_impd1_clk_init()
157 void integrator_impd1_clk_exit(unsigned int id) integrator_impd1_clk_exit() argument
162 if (id > 3) integrator_impd1_clk_exit()
164 imc = &impd1_clks[id]; integrator_impd1_clk_exit()
/linux-4.4.14/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.4.14/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_timespec64(entry->id.stck, &time_spec); debug_dflt_header_fn()
1469 if (entry->id.fields.exception) debug_dflt_header_fn()
1477 entry->id.fields.cpuid, (void *)caller); debug_dflt_header_fn()
1490 debug_sprintf_format_fn(debug_info_t * id, struct debug_view *view, debug_sprintf_format_fn() argument
1497 num_longs = id->buf_size / sizeof(long); debug_sprintf_format_fn()
H A Dprocessor.c37 struct cpuid *id = this_cpu_ptr(&cpu_id); cpu_init() local
39 get_cpu_id(id); cpu_init()
83 struct cpuid *id = &per_cpu(cpu_id, n); show_cpuinfo() local
88 n, id->version, id->ident, id->machine); show_cpuinfo()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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_v()
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_v()
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_v()
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.4.14/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.4.14/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()
166 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_enable()
170 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID_MASK)); clk_sam9x5_peripheral_enable()
185 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_disable()
189 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID_MASK)); clk_sam9x5_peripheral_disable()
201 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_is_enabled()
205 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID_MASK)); clk_sam9x5_peripheral_is_enabled()
220 if (periph->id < PERIPHERAL_ID_MIN) clk_sam9x5_peripheral_recalc_rate()
224 pmc_write(pmc, AT91_PMC_PCR, (periph->id & AT91_PMC_PCR_PID_MASK)); clk_sam9x5_peripheral_recalc_rate()
249 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) clk_sam9x5_peripheral_round_rate()
290 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) { clk_sam9x5_peripheral_set_rate()
322 const char *parent_name, u32 id, at91_clk_register_sam9x5_peripheral()
342 periph->id = id; at91_clk_register_sam9x5_peripheral()
362 u32 id; of_at91_clk_periph_setup() local
377 if (of_property_read_u32(periphclknp, "reg", &id)) for_each_child_of_node()
380 if (id >= PERIPHERAL_MAX) for_each_child_of_node()
388 parent_name, id); for_each_child_of_node()
398 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
321 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()
154 u32 id; of_at91_clk_sys_setup() local
165 if (of_property_read_u32(sysclknp, "reg", &id)) for_each_child_of_node()
171 if (is_pck(id)) for_each_child_of_node()
176 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.4.14/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.4.14/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.4.14/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.4.14/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, false); icmpv6_manip_pkt()
77 hdr->icmp6_identifier = tuple->src.u.icmp.id; icmpv6_manip_pkt()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfeature.c65 int id; brcmf_feat_debugfs_read() local
68 for (id = 0; id < BRCMF_FEAT_LAST; id++) brcmf_feat_debugfs_read()
69 if (feats & BIT(id)) brcmf_feat_debugfs_read()
70 seq_printf(seq, "\t%s\n", brcmf_feat_names[id]); brcmf_feat_debugfs_read()
72 for (id = 0; id < BRCMF_FEAT_QUIRK_LAST; id++) brcmf_feat_debugfs_read()
73 if (quirks & BIT(id)) brcmf_feat_debugfs_read()
74 seq_printf(seq, "\t%s\n", brcmf_quirk_names[id]); brcmf_feat_debugfs_read()
88 * @id: feature id.
92 enum brcmf_feat_id id, char *name) brcmf_feat_iovar_int_get()
99 brcmf_dbg(INFO, "enabling feature: %s\n", brcmf_feat_names[id]); brcmf_feat_iovar_int_get()
100 ifp->drvr->feat_flags |= BIT(id); brcmf_feat_iovar_int_get()
103 brcmf_feat_names[id], err); brcmf_feat_iovar_int_get()
111 * @id: feature id.
115 enum brcmf_feat_id id, char *name, u32 val) brcmf_feat_iovar_int_set()
121 brcmf_dbg(INFO, "enabling feature: %s\n", brcmf_feat_names[id]); brcmf_feat_iovar_int_set()
122 ifp->drvr->feat_flags |= BIT(id); brcmf_feat_iovar_int_set()
125 brcmf_feat_names[id], err); brcmf_feat_iovar_int_set()
163 bool brcmf_feat_is_enabled(struct brcmf_if *ifp, enum brcmf_feat_id id) brcmf_feat_is_enabled() argument
165 return (ifp->drvr->feat_flags & BIT(id)); brcmf_feat_is_enabled()
91 brcmf_feat_iovar_int_get(struct brcmf_if *ifp, enum brcmf_feat_id id, char *name) brcmf_feat_iovar_int_get() argument
114 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.4.14/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.4.14/drivers/clk/mmp/
H A Dclk.c42 if (clks[i].id) mmp_register_fixed_rate_clks()
43 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_rate_clks()
64 if (clks[i].id) mmp_register_fixed_factor_clks()
65 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_factor_clks()
90 if (clks[i].id) mmp_register_general_gate_clks()
91 unit->clk_table[clks[i].id] = clk; mmp_register_general_gate_clks()
118 if (clks[i].id) mmp_register_gate_clks()
119 unit->clk_table[clks[i].id] = clk; mmp_register_gate_clks()
146 if (clks[i].id) mmp_register_mux_clks()
147 unit->clk_table[clks[i].id] = clk; mmp_register_mux_clks()
173 if (clks[i].id) mmp_register_div_clks()
174 unit->clk_table[clks[i].id] = clk; mmp_register_div_clks()
178 void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id, mmp_clk_add() argument
182 pr_err("CLK %d has invalid pointer %p\n", id, clk); mmp_clk_add()
185 if (id > unit->nr_clks) { mmp_clk_add()
186 pr_err("CLK %d is invalid\n", id); mmp_clk_add()
190 unit->clk_table[id] = clk; mmp_clk_add()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/msm/dsi/
H A Ddsi_manager.c41 #define IS_MASTER_DSI_LINK(id) (msm_dsim_glb.master_dsi_link_id == id)
43 static inline struct msm_dsi *dsi_mgr_get_dsi(int id) dsi_mgr_get_dsi() argument
45 return msm_dsim_glb.dsi[id]; dsi_mgr_get_dsi()
48 static inline struct msm_dsi *dsi_mgr_get_other_dsi(int id) dsi_mgr_get_other_dsi() argument
50 return msm_dsim_glb.dsi[(id + 1) % DSI_MAX]; dsi_mgr_get_other_dsi()
53 static int dsi_mgr_parse_dual_dsi(struct device_node *np, int id) dsi_mgr_parse_dual_dsi() argument
66 msm_dsim->master_dsi_link_id = id; dsi_mgr_parse_dual_dsi()
75 static int dsi_mgr_host_register(int id) dsi_mgr_host_register() argument
77 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_host_register()
78 struct msm_dsi *other_dsi = dsi_mgr_get_other_dsi(id); dsi_mgr_host_register()
93 struct msm_dsi *mdsi = IS_MASTER_DSI_LINK(id) ? dsi_mgr_host_register()
95 struct msm_dsi *sdsi = IS_MASTER_DSI_LINK(id) ? dsi_mgr_host_register()
124 int id; member in struct:dsi_connector
129 int id; member in struct:dsi_bridge
138 return dsi_connector->id; dsi_mgr_connector_get_id()
144 return dsi_bridge->id; dsi_mgr_bridge_get_id()
150 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_detect() local
151 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_detect()
152 struct msm_dsi *other_dsi = dsi_mgr_get_other_dsi(id); dsi_mgr_connector_detect()
156 DBG("id=%d", id); dsi_mgr_connector_detect()
167 !IS_MASTER_DSI_LINK(id) && other_dsi) dsi_mgr_connector_detect()
222 struct drm_connector *connector, int id) dsi_dual_connector_tile_init()
225 /* Fake topology id */ dsi_dual_connector_tile_init()
262 connector->tile_h_loc = (id == DSI_RIGHT) ? 1 : 0; dsi_dual_connector_tile_init()
269 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_get_modes() local
270 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_get_modes()
291 ret = dsi_dual_connector_tile_init(connector, id); dsi_mgr_connector_get_modes()
308 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_mode_valid() local
309 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_mode_valid()
329 int id = dsi_mgr_connector_get_id(connector); dsi_mgr_connector_best_encoder() local
330 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_connector_best_encoder()
338 int id = dsi_mgr_bridge_get_id(bridge); dsi_mgr_bridge_pre_enable() local
339 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_bridge_pre_enable()
346 DBG("id=%d", id); dsi_mgr_bridge_pre_enable()
348 (is_dual_dsi && (DSI_1 == id))) dsi_mgr_bridge_pre_enable()
353 pr_err("%s: power on host %d failed, %d\n", __func__, id, ret); dsi_mgr_bridge_pre_enable()
373 id, ret); dsi_mgr_bridge_pre_enable()
380 pr_err("%s: enable host %d failed, %d\n", __func__, id, ret); dsi_mgr_bridge_pre_enable()
395 pr_err("%s: enable panel %d failed, %d\n", __func__, id, dsi_mgr_bridge_pre_enable()
432 int id = dsi_mgr_bridge_get_id(bridge); dsi_mgr_bridge_post_disable() local
433 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_bridge_post_disable()
440 DBG("id=%d", id); dsi_mgr_bridge_post_disable()
443 (is_dual_dsi && (DSI_1 == id))) dsi_mgr_bridge_post_disable()
449 pr_err("%s: Panel %d OFF failed, %d\n", __func__, id, dsi_mgr_bridge_post_disable()
455 pr_err("%s: host %d disable failed, %d\n", __func__, id, ret); dsi_mgr_bridge_post_disable()
467 id, ret); dsi_mgr_bridge_post_disable()
472 pr_err("%s: host %d power off failed,%d\n", __func__, id, ret); dsi_mgr_bridge_post_disable()
486 int id = dsi_mgr_bridge_get_id(bridge); dsi_mgr_bridge_mode_set() local
487 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); dsi_mgr_bridge_mode_set()
488 struct msm_dsi *other_dsi = dsi_mgr_get_other_dsi(id); dsi_mgr_bridge_mode_set()
493 mode->base.id, mode->name, dsi_mgr_bridge_mode_set()
501 if (is_dual_dsi && (DSI_1 == id)) dsi_mgr_bridge_mode_set()
534 struct drm_connector *msm_dsi_manager_connector_init(u8 id) msm_dsi_manager_connector_init() argument
536 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_connector_init()
548 dsi_connector->id = id; msm_dsi_manager_connector_init()
586 struct drm_bridge *msm_dsi_manager_bridge_init(u8 id) msm_dsi_manager_bridge_init() argument
588 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_bridge_init()
600 dsi_bridge->id = id; msm_dsi_manager_bridge_init()
618 struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id) msm_dsi_manager_ext_bridge_init() argument
620 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_ext_bridge_init()
657 if (connector->encoder_ids[i] == encoder->base.id) list_for_each_entry()
669 int msm_dsi_manager_phy_enable(int id, msm_dsi_manager_phy_enable() argument
673 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_phy_enable()
675 int src_pll_id = IS_DUAL_DSI() ? DSI_CLOCK_MASTER : id; msm_dsi_manager_phy_enable()
689 if (!IS_DUAL_DSI() || (id == DSI_CLOCK_MASTER)) { msm_dsi_manager_phy_enable()
704 void msm_dsi_manager_phy_disable(int id) msm_dsi_manager_phy_disable() argument
706 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_phy_disable()
713 if (!IS_DUAL_DSI() || (id == DSI_CLOCK_MASTER)) msm_dsi_manager_phy_disable()
731 int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg) msm_dsi_manager_cmd_xfer() argument
733 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_cmd_xfer()
748 if (need_sync && (id == DSI_0)) msm_dsi_manager_cmd_xfer()
777 bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 iova, u32 len) msm_dsi_manager_cmd_xfer_trigger() argument
779 struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id); msm_dsi_manager_cmd_xfer_trigger()
783 if (IS_SYNC_NEEDED() && (id == DSI_0)) msm_dsi_manager_cmd_xfer_trigger()
797 int id = msm_dsi->id; msm_dsi_manager_register() local
800 if (id > DSI_MAX) { msm_dsi_manager_register()
801 pr_err("%s: invalid id %d\n", __func__, id); msm_dsi_manager_register()
805 if (msm_dsim->dsi[id]) { msm_dsi_manager_register()
806 pr_err("%s: dsi%d already registered\n", __func__, id); msm_dsi_manager_register()
810 msm_dsim->dsi[id] = msm_dsi; msm_dsi_manager_register()
812 ret = dsi_mgr_parse_dual_dsi(msm_dsi->pdev->dev.of_node, id); msm_dsi_manager_register()
818 ret = dsi_mgr_host_register(id); msm_dsi_manager_register()
821 __func__, id); msm_dsi_manager_register()
828 msm_dsim->dsi[id] = NULL; msm_dsi_manager_register()
838 msm_dsim->dsi[msm_dsi->id] = NULL; msm_dsi_manager_unregister()
221 dsi_dual_connector_tile_init( struct drm_connector *connector, int id) dsi_dual_connector_tile_init() argument
/linux-4.4.14/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.4.14/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.4.14/arch/mips/ralink/
H A Dreset.c28 unsigned long id) ralink_assert_device()
32 if (id < 8) ralink_assert_device()
36 val |= BIT(id); ralink_assert_device()
43 unsigned long id) ralink_deassert_device()
47 if (id < 8) ralink_deassert_device()
51 val &= ~BIT(id); ralink_deassert_device()
58 unsigned long id) ralink_reset_device()
60 ralink_assert_device(rcdev, id); ralink_reset_device()
61 return ralink_deassert_device(rcdev, id); ralink_reset_device()
27 ralink_assert_device(struct reset_controller_dev *rcdev, unsigned long id) ralink_assert_device() argument
42 ralink_deassert_device(struct reset_controller_dev *rcdev, unsigned long id) ralink_deassert_device() argument
57 ralink_reset_device(struct reset_controller_dev *rcdev, unsigned long id) ralink_reset_device() argument
/linux-4.4.14/arch/arm/plat-samsung/
H A Ddev-uart.c23 .id = 0,
27 .id = 1,
31 .id = 2,
35 .id = 3,
/linux-4.4.14/sound/hda/
H A Dhda_bus_type.c15 * hdac_get_device_id - gets the hdac device id entry
20 * driver id_table and returns the matching device id entry.
26 const struct hda_device_id *id = drv->id_table; hdac_get_device_id() local
28 while (id->vendor_id) { hdac_get_device_id()
29 if (hdev->vendor_id == id->vendor_id && hdac_get_device_id()
30 (!id->rev_id || id->rev_id == hdev->revision_id)) hdac_get_device_id()
31 return id; hdac_get_device_id()
32 id++; hdac_get_device_id()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/acpi/
H A Dtables.c63 p->processor_id, p->id, acpi_table_print_madt_entry()
82 pr_debug("IOAPIC (id[0x%02x] address[0x%08x] gsi_base[%d])\n", acpi_table_print_madt_entry()
83 p->id, p->address, p->global_irq_base); acpi_table_print_madt_entry()
156 pr_debug("IOSAPIC (id[0x%x] address[%p] gsi_base[%d])\n", acpi_table_print_madt_entry()
157 p->id, (void *)(unsigned long)p->address, acpi_table_print_madt_entry()
167 p->processor_id, p->id, p->eid, acpi_table_print_madt_entry()
176 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()
179 p->type, p->id, p->eid, p->io_sapic_vector, acpi_table_print_madt_entry()
216 * @id: table id (for debugging purposes)
219 * @proc: array of acpi_subtable_proc struct containing entry id
224 * For each proc_num find a subtable with proc->id and run proc->handler
226 * entry id.
232 acpi_parse_entries_array(char *id, unsigned long table_size, acpi_parse_entries_array() argument
245 if (!id) acpi_parse_entries_array()
252 pr_warn("%4.4s not present\n", id); acpi_parse_entries_array()
269 if (entry->type != proc[i].id) acpi_parse_entries_array()
286 pr_err("[%4.4s:0x%02x] Invalid zero length\n", id, proc->id); acpi_parse_entries_array()
296 id, proc->id, count - max_entries, count); acpi_parse_entries_array()
303 acpi_parse_entries(char *id, acpi_parse_entries() argument
310 .id = entry_id, acpi_parse_entries()
314 return acpi_parse_entries_array(id, table_size, table_header, acpi_parse_entries()
319 acpi_table_parse_entries_array(char *id, acpi_table_parse_entries_array() argument
332 if (!id) acpi_table_parse_entries_array()
335 if (!strncmp(id, ACPI_SIG_MADT, 4)) acpi_table_parse_entries_array()
338 acpi_get_table_with_size(id, instance, &table_header, &tbl_size); acpi_table_parse_entries_array()
340 pr_warn("%4.4s not present\n", id); acpi_table_parse_entries_array()
344 count = acpi_parse_entries_array(id, table_size, table_header, acpi_table_parse_entries_array()
352 acpi_table_parse_entries(char *id, acpi_table_parse_entries() argument
359 .id = entry_id, acpi_table_parse_entries()
363 return acpi_table_parse_entries_array(id, table_size, &proc, 1, acpi_table_parse_entries()
368 acpi_table_parse_madt(enum acpi_madt_type id, acpi_table_parse_madt() argument
372 sizeof(struct acpi_table_madt), id, acpi_table_parse_madt()
377 * acpi_table_parse - find table with @id, run @handler on it
378 * @id: table id to find
381 * Scan the ACPI System Descriptor Table (STD) for a table matching @id,
386 int __init acpi_table_parse(char *id, acpi_tbl_table_handler handler) acpi_table_parse() argument
394 if (!id || !handler) acpi_table_parse()
397 if (strncmp(id, ACPI_SIG_MADT, 4) == 0) acpi_table_parse()
398 acpi_get_table_with_size(id, acpi_apic_instance, &table, &tbl_size); acpi_table_parse()
400 acpi_get_table_with_size(id, 0, &table, &tbl_size); acpi_table_parse()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/arm/mach-s3c64xx/
H A Dmach-crag6410-module.c295 u8 id; member in struct:__anon258
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()
/linux-4.4.14/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 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.4.14/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.4.14/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.4.14/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.4.14/arch/um/kernel/skas/
H A Dmmu.c61 to_mm->id.stack = stack; init_new_context()
67 to_mm->id.u.pid = copy_context_skas0(stack, init_new_context()
68 from_mm->id.u.pid); init_new_context()
69 else to_mm->id.u.pid = start_userspace(stack); init_new_context()
72 if (to_mm->id.u.pid < 0) { init_new_context()
73 ret = to_mm->id.u.pid; init_new_context()
87 if (to_mm->id.stack != 0) init_new_context()
88 free_page(to_mm->id.stack); init_new_context()
102 ret = init_stub_pte(mm, STUB_DATA, mm->context.id.stack); uml_setup_stubs()
107 mm->context.stub_pages[1] = virt_to_page(mm->context.id.stack); uml_setup_stubs()
149 if (mmu->id.u.pid < 2) { destroy_context()
151 mmu->id.u.pid); destroy_context()
154 os_kill_ptraced_process(mmu->id.u.pid, 1); destroy_context()
156 free_page(mmu->id.stack); destroy_context()
/linux-4.4.14/include/soc/tegra/
H A Dpmc.h111 int tegra_powergate_is_powered(int id);
112 int tegra_powergate_power_on(int id);
113 int tegra_powergate_power_off(int id);
114 int tegra_powergate_remove_clamping(int id);
117 int tegra_powergate_sequence_power_up(int id, struct clk *clk,
120 int tegra_io_rail_power_on(int id);
121 int tegra_io_rail_power_off(int id);
123 static inline int tegra_powergate_is_powered(int id) tegra_powergate_is_powered() argument
128 static inline int tegra_powergate_power_on(int id) tegra_powergate_power_on() argument
133 static inline int tegra_powergate_power_off(int id) tegra_powergate_power_off() argument
138 static inline int tegra_powergate_remove_clamping(int id) tegra_powergate_remove_clamping() argument
143 static inline int tegra_powergate_sequence_power_up(int id, struct clk *clk, tegra_powergate_sequence_power_up() argument
149 static inline int tegra_io_rail_power_on(int id) tegra_io_rail_power_on() argument
154 static inline int tegra_io_rail_power_off(int id) tegra_io_rail_power_off() argument
/linux-4.4.14/drivers/usb/common/
H A Dulpi.c40 const struct ulpi_device_id *id; ulpi_match() local
42 for (id = drv->id_table; id->vendor; id++) ulpi_match()
43 if (id->vendor == ulpi->id.vendor && ulpi_match()
44 id->product == ulpi->id.product) ulpi_match()
55 ulpi->id.vendor, ulpi->id.product)) ulpi_uevent()
93 ulpi->id.vendor, ulpi->id.product); modalias_show()
171 ulpi->id.vendor = ulpi_read(ulpi, ULPI_VENDOR_ID_LOW); ulpi_register()
172 ulpi->id.vendor |= ulpi_read(ulpi, ULPI_VENDOR_ID_HIGH) << 8; ulpi_register()
174 ulpi->id.product = ulpi_read(ulpi, ULPI_PRODUCT_ID_LOW); ulpi_register()
175 ulpi->id.product |= ulpi_read(ulpi, ULPI_PRODUCT_ID_HIGH) << 8; ulpi_register()
184 request_module("ulpi:v%04xp%04x", ulpi->id.vendor, ulpi->id.product); ulpi_register()
191 ulpi->id.vendor, ulpi->id.product); ulpi_register()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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
/linux-4.4.14/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.4.14/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.4.14/arch/mips/ath79/
H A Dsetup.c62 u32 id; ath79_detect_sys_type() local
67 id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); ath79_detect_sys_type()
68 major = id & REV_ID_MAJOR_MASK; ath79_detect_sys_type()
72 minor = id & AR71XX_REV_ID_MINOR_MASK; ath79_detect_sys_type()
73 rev = id >> AR71XX_REV_ID_REVISION_SHIFT; ath79_detect_sys_type()
96 rev = id & AR724X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
102 rev = id & AR724X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
108 rev = id & AR724X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
112 minor = id & AR913X_REV_ID_MINOR_MASK; ath79_detect_sys_type()
113 rev = id >> AR913X_REV_ID_REVISION_SHIFT; ath79_detect_sys_type()
131 rev = id & AR933X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
137 rev = id & AR933X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
143 rev = id & AR934X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
149 rev = id & AR934X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
155 rev = id & AR934X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
161 rev = id & QCA955X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
167 rev = id & QCA955X_REV_ID_REVISION_MASK; ath79_detect_sys_type()
171 panic("ath79: unknown SoC, id:0x%08x", id); ath79_detect_sys_type()
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_ports.c46 int id; __scif_get_port() local
52 id = idr_alloc(&scif_ports, port, start, end, GFP_ATOMIC); __scif_get_port()
53 if (id >= 0) __scif_get_port()
56 return id; __scif_get_port()
85 * @id : SCIF port
89 void scif_get_port(u16 id) scif_get_port() argument
93 if (!id) scif_get_port()
96 port = idr_find(&scif_ports, id); scif_get_port()
104 * @id : SCIF port to be released.
108 void scif_put_port(u16 id) scif_put_port() argument
112 if (!id) scif_put_port()
115 port = idr_find(&scif_ports, id); scif_put_port()
119 idr_remove(&scif_ports, id); scif_put_port()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dpad.h11 int id; member in struct:nvkm_i2c_pad
23 int (*bus_new_0)(struct nvkm_i2c_pad *, int id, u8 drive, u8 sense,
25 int (*bus_new_4)(struct nvkm_i2c_pad *, int id, u8 drive,
28 int (*aux_new_6)(struct nvkm_i2c_pad *, int id, u8 drive,
35 int id, struct nvkm_i2c_pad *);
37 int id, struct nvkm_i2c_pad **);
62 nvkm_##l(&_pad->i2c->subdev, "pad %04x: "f"\n", _pad->id, ##a); \
H A Dbase.c36 nvkm_i2c_pad_find(struct nvkm_i2c *i2c, int id) nvkm_i2c_pad_find() argument
41 if (pad->id == id) nvkm_i2c_pad_find()
49 nvkm_i2c_bus_find(struct nvkm_i2c *i2c, int id) nvkm_i2c_bus_find() argument
54 if (id == NVKM_I2C_BUS_PRI || id == NVKM_I2C_BUS_SEC) { nvkm_i2c_bus_find()
59 if (id == NVKM_I2C_BUS_PRI) nvkm_i2c_bus_find()
60 id = NVKM_I2C_BUS_CCB((auxidx & 0x0f) >> 0); nvkm_i2c_bus_find()
62 id = NVKM_I2C_BUS_CCB((auxidx & 0xf0) >> 4); nvkm_i2c_bus_find()
64 id = NVKM_I2C_BUS_CCB(2); nvkm_i2c_bus_find()
69 if (bus->id == id) nvkm_i2c_bus_find()
77 nvkm_i2c_aux_find(struct nvkm_i2c *i2c, int id) nvkm_i2c_aux_find() argument
82 if (aux->id == id) nvkm_i2c_aux_find()
90 nvkm_i2c_intr_fini(struct nvkm_event *event, int type, int id) nvkm_i2c_intr_fini() argument
93 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); nvkm_i2c_intr_fini()
99 nvkm_i2c_intr_init(struct nvkm_event *event, int type, int id) nvkm_i2c_intr_init() argument
102 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); nvkm_i2c_intr_init()
152 nvkm_event_send(&i2c->event, rep.mask, aux->id, nvkm_i2c_intr()
234 int (*pad_new)(struct nvkm_i2c_bus *, int id, u8 addr,
274 const int id = NVKM_I2C_PAD_HYBRID(ccbE.share); nvkm_i2c_new_() local
275 if (!(pad = nvkm_i2c_pad_find(i2c, id))) nvkm_i2c_new_()
276 ret = func->pad_s_new(i2c, id, &pad); nvkm_i2c_new_()
362 const int id = NVKM_I2C_PAD_EXT(dcbE.extdev); nvkm_i2c_new_() local
363 ret = drv->pad_new(bus, id, drv->addr, &pad); nvkm_i2c_new_()
374 const int id = NVKM_I2C_AUX_EXT(dcbE.extdev); nvkm_i2c_new_() local
376 ret = pad->func->aux_new_6(pad, id, 0, &aux); nvkm_i2c_new_()
384 const int id = NVKM_I2C_BUS_EXT(dcbE.extdev); nvkm_i2c_new_() local
386 ret = pad->func->bus_new_4(pad, id, 0, &bus); nvkm_i2c_new_()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/sound/firewire/bebob/
H A Dbebob_terratec.c17 phase88_rack_clk_src_get(struct snd_bebob *bebob, unsigned int *id) phase88_rack_clk_src_get() argument
30 *id = 0; phase88_rack_clk_src_get()
32 *id = 1; phase88_rack_clk_src_get()
34 *id = 2; phase88_rack_clk_src_get()
44 phase24_series_clk_src_get(struct snd_bebob *bebob, unsigned int *id) phase24_series_clk_src_get() argument
48 err = avc_audio_get_selector(bebob->unit, 0, 4, id); phase24_series_clk_src_get()
52 if (*id >= ARRAY_SIZE(phase24_series_clk_src_types)) phase24_series_clk_src_get()
/linux-4.4.14/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.4.14/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.4.14/drivers/clk/mediatek/
H A Dreset.c31 unsigned long id) mtk_reset_assert()
35 return regmap_update_bits(data->regmap, data->regofs + ((id / 32) << 2), mtk_reset_assert()
36 BIT(id % 32), ~0); mtk_reset_assert()
40 unsigned long id) mtk_reset_deassert()
44 return regmap_update_bits(data->regmap, data->regofs + ((id / 32) << 2), mtk_reset_deassert()
45 BIT(id % 32), 0); mtk_reset_deassert()
49 unsigned long id) mtk_reset()
53 ret = mtk_reset_assert(rcdev, id); mtk_reset()
57 return mtk_reset_deassert(rcdev, id); mtk_reset()
30 mtk_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) mtk_reset_assert() argument
39 mtk_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) mtk_reset_deassert() argument
48 mtk_reset(struct reset_controller_dev *rcdev, unsigned long id) mtk_reset() argument
/linux-4.4.14/drivers/media/pci/saa7164/
H A Dsaa7164-cards.c65 .id = 0x1d,
72 .id = 0x04,
79 .id = 0x1b,
86 .id = 0x1e,
93 .id = 0x1f,
111 .id = 0x06,
118 .id = 0x04,
125 .id = 0x05,
132 .id = 0x1e,
139 .id = 0x1f,
157 .id = 0x1d,
164 .id = 0x04,
171 .id = 0x05,
178 .id = 0x1b,
185 .id = 0x1c,
192 .id = 0x1e,
199 .id = 0x1f,
217 .id = 0x1d,
224 .id = 0x04,
231 .id = 0x05,
238 .id = 0x1b,
245 .id = 0x1c,
252 .id = 0x1e,
259 .id = 0x1f,
277 .id = 0x22,
284 .id = 0x04,
291 .id = 0x07,
298 .id = 0x08,
305 .id = 0x1e,
312 .id = 0x20,
319 .id = 0x23,
337 .id = 0x28,
344 .id = 0x04,
351 .id = 0x07,
358 .id = 0x08,
365 .id = 0x24,
372 .id = 0x26,
379 .id = 0x29,
397 .id = 0x26,
404 .id = 0x04,
411 .id = 0x07,
418 .id = 0x08,
425 .id = 0x22,
432 .id = 0x24,
439 .id = 0x27,
453 .id = 0x23,
460 .id = 0x04,
467 .id = 0x05,
474 .id = 0x21,
481 .id = 0x22,
488 .id = 0x24,
495 .id = 0x25,
513 .id = 0x27,
520 .id = 0x04,
527 .id = 0x06,
534 .id = 0x24,
541 .id = 0x26,
559 .id = 0x28,
566 .id = 0x04,
573 .id = 0x06,
580 .id = 0x25,
587 .id = 0x27,
605 .id = 0x28,
612 .id = 0x04,
619 .id = 0x06,
626 .id = 0x25,
633 .id = 0x27,
874 * id, regardless of how the physical implementation occurs across
899 return unit->id; saa7164_i2caddr_to_unitid()
953 if (unitid == unit->id) saa7164_unitid_name()
/linux-4.4.14/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.4.14/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()
116 void *x = get_ext(set, map, e->id); mtype_test()
137 void *x = get_ext(set, map, e->id); mtype_add()
145 set_bit(e->id, map->members); mtype_add()
167 set_bit(e->id, map->members); mtype_add()
178 void *x = get_ext(set, map, e->id); mtype_del()
206 u32 id, first = cb->args[IPSET_CB_ARG0]; mtype_list() local
216 id = cb->args[IPSET_CB_ARG0]; mtype_list()
217 x = get_ext(set, map, id); mtype_list()
218 if (!test_bit(id, map->members) || mtype_list()
227 if (id == first) { mtype_list()
235 if (mtype_do_list(skb, map, id, set->dsize)) mtype_list()
251 if (unlikely(id == first)) { mtype_list()
267 u32 id; mtype_gc() local
273 for (id = 0; id < map->elements; id++) mtype_gc()
274 if (mtype_gc_test(id, map, set->dsize)) { mtype_gc()
275 x = get_ext(set, map, id); mtype_gc()
277 clear_bit(id, map->members); mtype_gc()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/net/ipv6/
H A Doutput_core.c17 u32 hash, id; __ipv6_select_ident() local
23 /* Treat id of 0 as unset and if we get 0 back from ip_idents_reserve, __ipv6_select_ident()
27 id = ip_idents_reserve(hash, 1); __ipv6_select_ident()
28 if (unlikely(!id)) __ipv6_select_ident()
29 id = 1 << 31; __ipv6_select_ident()
31 return id; __ipv6_select_ident()
47 u32 id; ipv6_proxy_select_ident() local
59 id = __ipv6_select_ident(net, ip6_proxy_idents_hashrnd, ipv6_proxy_select_ident()
61 skb_shinfo(skb)->ip6_frag_id = htonl(id); ipv6_proxy_select_ident()
70 u32 id; ipv6_select_ident() local
74 id = __ipv6_select_ident(net, ip6_idents_hashrnd, daddr, saddr); ipv6_select_ident()
75 return htonl(id); ipv6_select_ident()
/linux-4.4.14/drivers/misc/mic/bus/
H A Dmic_bus.c32 return sprintf(buf, "0x%04x\n", dev->id.device); device_show()
40 return sprintf(buf, "0x%04x\n", dev->id.vendor); vendor_show()
49 dev->id.device, dev->id.vendor); modalias_show()
62 const struct mbus_device_id *id) mbus_id_match()
64 if (id->device != dev->id.device && id->device != MBUS_DEV_ANY_ID) mbus_id_match()
67 return id->vendor == MBUS_DEV_ANY_ID || id->vendor == dev->id.vendor; mbus_id_match()
92 dev->id.device, dev->id.vendor); mbus_uevent()
146 mbus_register_device(struct device *pdev, int id, struct dma_map_ops *dma_ops, mbus_register_device() argument
159 mbdev->id.device = id; mbus_register_device()
160 mbdev->id.vendor = MBUS_DEV_ANY_ID; mbus_register_device()
61 mbus_id_match(const struct mbus_device *dev, const struct mbus_device_id *id) mbus_id_match() argument
H A Dscif_bus.c29 return sprintf(buf, "0x%04x\n", dev->id.device); device_show()
38 return sprintf(buf, "0x%04x\n", dev->id.vendor); vendor_show()
48 dev->id.device, dev->id.vendor); modalias_show()
61 const struct scif_hw_dev_id *id) scif_id_match()
63 if (id->device != dev->id.device && id->device != SCIF_DEV_ANY_ID) scif_id_match()
66 return id->vendor == SCIF_DEV_ANY_ID || id->vendor == dev->id.vendor; scif_id_match()
91 dev->id.device, dev->id.vendor); scif_uevent()
141 scif_register_device(struct device *pdev, int id, struct dma_map_ops *dma_ops, scif_register_device() argument
155 sdev->id.device = id; scif_register_device()
156 sdev->id.vendor = SCIF_DEV_ANY_ID; scif_register_device()
60 scif_id_match(const struct scif_hw_dev *dev, const struct scif_hw_dev_id *id) scif_id_match() argument
/linux-4.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/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:__anon8875
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.4.14/drivers/phy/
H A Dphy-bcm-cygnus-pcie.c36 * @id: internal ID to identify the Cygnus PCIe PHY
41 enum cygnus_pcie_phy_id id; member in struct:cygnus_pcie_phy
67 switch (phy->id) { cygnus_pcie_power_config()
78 dev_err(core->dev, "PCIe PHY %d invalid\n", phy->id); cygnus_pcie_power_config()
98 dev_dbg(core->dev, "PCIe PHY %d %s\n", phy->id, cygnus_pcie_power_config()
152 unsigned int id; for_each_available_child_of_node() local
155 if (of_property_read_u32(child, "reg", &id)) { for_each_available_child_of_node()
162 if (id >= MAX_NUM_PHYS) { for_each_available_child_of_node()
163 dev_err(dev, "invalid PHY id: %u\n", id); for_each_available_child_of_node()
168 if (core->phys[id].phy) { for_each_available_child_of_node()
169 dev_err(dev, "duplicated PHY id: %u\n", id); for_each_available_child_of_node()
174 p = &core->phys[id]; for_each_available_child_of_node()
183 p->id = id; for_each_available_child_of_node()
/linux-4.4.14/mm/kasan/
H A DMakefile5 # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
/linux-4.4.14/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.4.14/include/linux/netfilter/
H A Dnf_conntrack_zones_common.h16 u16 id; member in struct:nf_conntrack_zone
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dchpid.h18 __u8 id; member in struct:chp_id
/linux-4.4.14/arch/arm/mach-ux500/
H A DMakefile5 obj-y := cpu.o id.o timer.o pm.o
H A Dboard-mop500-audio.c30 .id = 0,
48 .id = 1,
68 .id = 2,
74 .id = 3,
/linux-4.4.14/arch/arm/mach-at91/
H A Dpm.h23 #define at91_ramc_read(id, field) \
24 __raw_readl(at91_ramc_base[id] + field)
26 #define at91_ramc_write(id, field, value) \
27 __raw_writel(value, at91_ramc_base[id] + field)
/linux-4.4.14/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.4.14/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.4.14/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.4.14/arch/x86/kernel/cpu/
H A Dpowerflags.c11 "fid", /* frequency id control */
12 "vid", /* voltage id control */
/linux-4.4.14/arch/arm/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/arch/cris/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/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.4.14/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/arch/metag/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/arch/mips/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/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.4.14/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.4.14/arch/powerpc/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/arch/arm64/boot/dts/include/dt-bindings/clock/
H A Dat91.h17 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */
/linux-4.4.14/arch/arm/include/asm/
H A Dmmu.h8 atomic64_t id; member in struct:__anon178
22 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
/linux-4.4.14/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.4.14/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.4.14/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()
164 * function returns the id so that idr_for_each() stops. Because we cannot
165 * returns the id 0 (idr_for_each() will not stop), we return the magic value
169 static int net_eq_idr(int id, void *net, void *peer) net_eq_idr() argument
172 return id ? : NET_ID_ZERO; net_eq_idr()
176 /* Should be called with nsid_lock held. If a new id is assigned, the bool alloc
177 * is set to true, thus the caller knows that the new id must be notified via
182 int id = idr_for_each(&net->netns_ids, net_eq_idr, peer); __peernet2id_alloc() local
187 /* Magic value for id 0. */ __peernet2id_alloc()
188 if (id == NET_ID_ZERO) __peernet2id_alloc()
190 if (id > 0) __peernet2id_alloc()
191 return id; __peernet2id_alloc()
194 id = alloc_netid(net, peer, -1); __peernet2id_alloc()
196 return id >= 0 ? id : NETNSA_NSID_NOT_ASSIGNED; __peernet2id_alloc()
210 static void rtnl_net_notifyid(struct net *net, int cmd, int id);
211 /* This function returns the id of a peer netns. If no id is assigned, one will
218 int id; peernet2id_alloc() local
222 id = __peernet2id_alloc(net, peer, &alloc); peernet2id_alloc()
224 if (alloc && id >= 0) peernet2id_alloc()
225 rtnl_net_notifyid(net, RTM_NEWNSID, id); peernet2id_alloc()
226 return id; peernet2id_alloc()
230 /* This function returns, if assigned, the id of a peer netns. */ peernet2id()
234 int id; peernet2id() local
237 id = __peernet2id(net, peer); peernet2id()
239 return id; peernet2id()
242 /* This function returns true is the peer netns has an id assigned into the
250 struct net *get_net_ns_by_id(struct net *net, int id) get_net_ns_by_id() argument
255 if (id < 0) get_net_ns_by_id()
260 peer = idr_find(&net->netns_ids, id); get_net_ns_by_id()
405 int id; for_each_net() local
408 id = __peernet2id(tmp, net); for_each_net()
409 if (id >= 0) for_each_net()
410 idr_remove(&tmp->netns_ids, id); for_each_net()
412 if (id >= 0) for_each_net()
413 rtnl_net_notifyid(tmp, RTM_DELNSID, id); for_each_net()
621 int err, id; rtnl_net_getid() local
643 id = peernet2id(net, peer); rtnl_net_getid()
645 RTM_NEWNSID, net, id); rtnl_net_getid()
667 static int rtnl_net_dumpid_one(int id, void *peer, void *data) rtnl_net_dumpid_one() argument
677 RTM_NEWNSID, net_cb->net, id); rtnl_net_dumpid_one()
706 static void rtnl_net_notifyid(struct net *net, int cmd, int id) rtnl_net_notifyid() argument
715 err = rtnl_net_fill(msg, 0, 0, 0, cmd, net, id); rtnl_net_notifyid()
779 if (ops->init || (ops->id && ops->size)) { for_each_net()
834 if (ops->id) { register_pernet_operations()
836 error = ida_get_new_above(&net_generic_ids, 1, ops->id); register_pernet_operations()
844 max_gen_ptrs = max_t(unsigned int, max_gen_ptrs, *ops->id); register_pernet_operations()
849 if (ops->id) register_pernet_operations()
850 ida_remove(&net_generic_ids, *ops->id); register_pernet_operations()
861 if (ops->id) unregister_pernet_operations()
862 ida_remove(&net_generic_ids, *ops->id); unregister_pernet_operations()
/linux-4.4.14/drivers/infiniband/core/
H A Dcma.c195 struct rdma_cm_id id; member in struct:rdma_id_private
246 struct rdma_id_private *id; member in struct:cma_work
254 struct rdma_id_private *id; member in struct:cma_ndev_work
260 struct rdma_id_private *id; member in struct:iboe_mcast_work
343 id_priv->id.device = cma_dev->device; cma_attach_to_dev()
344 id_priv->id.route.addr.dev_addr.transport = cma_attach_to_dev()
374 return (struct sockaddr *) &id_priv->id.route.addr.src_addr; cma_src_addr()
379 return (struct sockaddr *) &id_priv->id.route.addr.dst_addr; cma_dst_addr()
384 return id_priv->id.route.addr.src_addr.ss_family; cma_family()
403 switch (id_priv->id.ps) { cma_set_qkey()
409 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); cma_set_qkey()
410 ret = ib_sa_get_mcmember_rec(id_priv->id.device, cma_set_qkey()
411 id_priv->id.port_num, &rec.mgid, cma_set_qkey()
470 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_acquire_dev()
477 id_priv->id.ps == RDMA_PS_IPOIB) cma_acquire_dev()
481 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, cma_acquire_dev()
489 port = listen_id_priv->id.port_num; cma_acquire_dev()
497 id_priv->id.port_num = port; cma_acquire_dev()
506 listen_id_priv->id.port_num == port) cma_acquire_dev()
516 id_priv->id.port_num = port; cma_acquire_dev()
561 id_priv->id.port_num = p; cma_resolve_ib_dev()
569 id_priv->id.port_num = p; cma_resolve_ib_dev()
582 cma_translate_ib(addr, &id_priv->id.route.addr.dev_addr); cma_resolve_ib_dev()
616 id_priv->id.context = context; rdma_create_id()
617 id_priv->id.event_handler = event_handler; rdma_create_id()
618 id_priv->id.ps = ps; rdma_create_id()
619 id_priv->id.qp_type = qp_type; rdma_create_id()
628 id_priv->id.route.addr.dev_addr.net = get_net(net); rdma_create_id()
630 return &id_priv->id; rdma_create_id()
640 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_init_ud_qp()
666 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_init_conn_qp()
673 int rdma_create_qp(struct rdma_cm_id *id, struct ib_pd *pd, rdma_create_qp() argument
680 id_priv = container_of(id, struct rdma_id_private, id); rdma_create_qp()
681 if (id->device != pd->device) rdma_create_qp()
688 if (id->qp_type == IB_QPT_UD) rdma_create_qp()
695 id->qp = qp; rdma_create_qp()
705 void rdma_destroy_qp(struct rdma_cm_id *id) rdma_destroy_qp() argument
709 id_priv = container_of(id, struct rdma_id_private, id); rdma_destroy_qp()
711 ib_destroy_qp(id_priv->id.qp); rdma_destroy_qp()
712 id_priv->id.qp = NULL; rdma_destroy_qp()
725 if (!id_priv->id.qp) { cma_modify_qp_rtr()
732 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_modify_qp_rtr()
736 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); cma_modify_qp_rtr()
741 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_modify_qp_rtr()
745 ret = ib_query_gid(id_priv->id.device, id_priv->id.port_num, cma_modify_qp_rtr()
750 BUG_ON(id_priv->cma_dev->device != id_priv->id.device); cma_modify_qp_rtr()
754 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); cma_modify_qp_rtr()
767 if (!id_priv->id.qp) { cma_modify_qp_rts()
773 ret = rdma_init_qp_attr(&id_priv->id, &qp_attr, &qp_attr_mask); cma_modify_qp_rts()
779 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, qp_attr_mask); cma_modify_qp_rts()
791 if (!id_priv->id.qp) { cma_modify_qp_err()
797 ret = ib_modify_qp(id_priv->id.qp, &qp_attr, IB_QP_STATE); cma_modify_qp_err()
806 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_ib_init_qp_attr()
810 if (rdma_cap_eth_ah(id_priv->id.device, id_priv->id.port_num)) cma_ib_init_qp_attr()
815 ret = ib_find_cached_pkey(id_priv->id.device, id_priv->id.port_num, cma_ib_init_qp_attr()
820 qp_attr->port_num = id_priv->id.port_num; cma_ib_init_qp_attr()
823 if (id_priv->id.qp_type == IB_QPT_UD) { cma_ib_init_qp_attr()
837 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, rdma_init_qp_attr() argument
843 id_priv = container_of(id, struct rdma_id_private, id); rdma_init_qp_attr()
844 if (rdma_cap_ib_cm(id->device, id->port_num)) { rdma_init_qp_attr()
845 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) rdma_init_qp_attr()
853 } else if (rdma_cap_iw_cm(id->device, id->port_num)) { rdma_init_qp_attr()
1260 static bool cma_protocol_roce(const struct rdma_cm_id *id) cma_protocol_roce() argument
1262 struct ib_device *device = id->device; cma_protocol_roce()
1263 const int port_num = id->port_num ?: rdma_start_port(device); cma_protocol_roce()
1268 static bool cma_match_net_dev(const struct rdma_cm_id *id, cma_match_net_dev() argument
1272 const struct rdma_addr *addr = &id->route.addr; cma_match_net_dev()
1276 return (!id->port_num || id->port_num == port_num) && cma_match_net_dev()
1278 cma_protocol_roce_dev_port(id->device, port_num)); cma_match_net_dev()
1299 if (id_priv->id.device == cm_id->device && cma_find_listener()
1300 cma_match_net_dev(&id_priv->id, net_dev, req->port)) cma_find_listener()
1305 if (id_priv_dev->id.device == cm_id->device && cma_find_listener()
1306 cma_match_net_dev(&id_priv_dev->id, net_dev, req->port)) cma_find_listener()
1361 if (rdma_cap_ib_sa(id_priv->id.device, id_priv->id.port_num)) { cma_cancel_route()
1386 rdma_destroy_id(&dev_id_priv->id); cma_cancel_listens()
1397 rdma_addr_cancel(&id_priv->id.route.addr.dev_addr); cma_cancel_operation()
1414 struct net *net = id_priv->id.route.addr.dev_addr.net; cma_release_port()
1437 id_priv->id.port_num)) { cma_leave_mc_groups()
1445 void rdma_destroy_id(struct rdma_cm_id *id) rdma_destroy_id() argument
1450 id_priv = container_of(id, struct rdma_id_private, id); rdma_destroy_id()
1462 if (rdma_cap_ib_cm(id_priv->id.device, 1)) { rdma_destroy_id()
1465 } else if (rdma_cap_iw_cm(id_priv->id.device, 1)) { rdma_destroy_id()
1478 cma_deref_id(id_priv->id.context); rdma_destroy_id()
1480 kfree(id_priv->id.route.path_rec); rdma_destroy_id()
1481 put_net(id_priv->id.route.addr.dev_addr.net); rdma_destroy_id()
1544 if (id_priv->id.qp) { cma_ib_handler()
1586 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_ib_handler()
1592 rdma_destroy_id(&id_priv->id); cma_ib_handler()
1605 struct rdma_cm_id *id; cma_new_conn_id() local
1612 id = rdma_create_id(listen_id->route.addr.dev_addr.net, cma_new_conn_id()
1615 if (IS_ERR(id)) cma_new_conn_id()
1618 id_priv = container_of(id, struct rdma_id_private, id); cma_new_conn_id()
1619 if (cma_save_net_info((struct sockaddr *)&id->route.addr.src_addr, cma_new_conn_id()
1620 (struct sockaddr *)&id->route.addr.dst_addr, cma_new_conn_id()
1624 rt = &id->route; cma_new_conn_id()
1657 rdma_destroy_id(id); cma_new_conn_id()
1666 struct rdma_cm_id *id; cma_new_udp_id() local
1671 id = rdma_create_id(net, listen_id->event_handler, listen_id->context, cma_new_udp_id()
1673 if (IS_ERR(id)) cma_new_udp_id()
1676 id_priv = container_of(id, struct rdma_id_private, id); cma_new_udp_id()
1677 if (cma_save_net_info((struct sockaddr *)&id->route.addr.src_addr, cma_new_udp_id()
1678 (struct sockaddr *)&id->route.addr.dst_addr, cma_new_udp_id()
1684 ret = rdma_copy_addr(&id->route.addr.dev_addr, net_dev, NULL); cma_new_udp_id()
1690 &id->route.addr.dev_addr); cma_new_udp_id()
1699 rdma_destroy_id(id); cma_new_udp_id()
1718 static int cma_check_req_qp_type(struct rdma_cm_id *id, struct ib_cm_event *ib_event) cma_check_req_qp_type() argument
1721 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || cma_check_req_qp_type()
1723 (id->qp_type == IB_QPT_UD)) || cma_check_req_qp_type()
1724 (!id->qp_type)); cma_check_req_qp_type()
1738 if (!cma_check_req_qp_type(&listen_id->id, ib_event)) { cma_req_handler()
1752 conn_id = cma_new_udp_id(&listen_id->id, ib_event, net_dev); cma_req_handler()
1757 conn_id = cma_new_conn_id(&listen_id->id, ib_event, net_dev); cma_req_handler()
1780 ret = conn_id->id.event_handler(&conn_id->id, &event); cma_req_handler()
1789 (conn_id->id.qp_type != IB_QPT_UD)) cma_req_handler()
1809 rdma_destroy_id(&conn_id->id); cma_req_handler()
1818 __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr) rdma_get_service_id() argument
1823 return cpu_to_be64(((u64)id->ps << 16) + be16_to_cpu(cma_port(addr))); rdma_get_service_id()
1878 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_iw_handler()
1884 rdma_destroy_id(&id_priv->id); cma_iw_handler()
1907 /* Create a new RDMA id for the new IW CM ID */ iw_conn_req_handler()
1908 new_cm_id = rdma_create_id(listen_id->id.route.addr.dev_addr.net, iw_conn_req_handler()
1909 listen_id->id.event_handler, iw_conn_req_handler()
1910 listen_id->id.context, iw_conn_req_handler()
1916 conn_id = container_of(new_cm_id, struct rdma_id_private, id); iw_conn_req_handler()
1920 ret = rdma_translate_ip(laddr, &conn_id->id.route.addr.dev_addr, NULL); iw_conn_req_handler()
1941 ret = ib_query_device(conn_id->id.device, &attr); iw_conn_req_handler()
1960 ret = conn_id->id.event_handler(&conn_id->id, &event); iw_conn_req_handler()
1967 rdma_destroy_id(&conn_id->id); iw_conn_req_handler()
1982 struct ib_cm_id *id; cma_ib_listen() local
1986 svc_id = rdma_get_service_id(&id_priv->id, addr); cma_ib_listen()
1987 id = ib_cm_insert_listen(id_priv->id.device, cma_req_handler, svc_id); cma_ib_listen()
1988 if (IS_ERR(id)) cma_ib_listen()
1989 return PTR_ERR(id); cma_ib_listen()
1990 id_priv->cm_id.ib = id; cma_ib_listen()
1998 struct iw_cm_id *id; cma_iw_listen() local
2000 id = iw_create_cm_id(id_priv->id.device, cma_iw_listen()
2003 if (IS_ERR(id)) cma_iw_listen()
2004 return PTR_ERR(id); cma_iw_listen()
2006 id->tos = id_priv->tos; cma_iw_listen()
2007 id_priv->cm_id.iw = id; cma_iw_listen()
2022 static int cma_listen_handler(struct rdma_cm_id *id, cma_listen_handler() argument
2025 struct rdma_id_private *id_priv = id->context; cma_listen_handler()
2027 id->context = id_priv->id.context; cma_listen_handler()
2028 id->event_handler = id_priv->id.event_handler; cma_listen_handler()
2029 return id_priv->id.event_handler(id, event); cma_listen_handler()
2036 struct rdma_cm_id *id; cma_listen_on_dev() local
2037 struct net *net = id_priv->id.route.addr.dev_addr.net; cma_listen_on_dev()
2043 id = rdma_create_id(net, cma_listen_handler, id_priv, id_priv->id.ps, cma_listen_on_dev()
2044 id_priv->id.qp_type); cma_listen_on_dev()
2045 if (IS_ERR(id)) cma_listen_on_dev()
2048 dev_id_priv = container_of(id, struct rdma_id_private, id); cma_listen_on_dev()
2060 ret = rdma_listen(id, id_priv->backlog); cma_listen_on_dev()
2077 void rdma_set_service_type(struct rdma_cm_id *id, int tos) rdma_set_service_type() argument
2081 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_service_type()
2092 route = &work->id->id.route; cma_query_handler()
2110 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_query_ib_route()
2122 path_rec.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); cma_query_ib_route()
2145 id_priv->query_id = ib_sa_path_rec_get(&sa_client, id_priv->id.device, cma_query_ib_route()
2146 id_priv->id.port_num, &path_rec, cma_query_ib_route()
2157 struct rdma_id_private *id_priv = work->id; cma_work_handler()
2164 if (id_priv->id.event_handler(&id_priv->id, &work->event)) { cma_work_handler()
2172 rdma_destroy_id(&id_priv->id); cma_work_handler()
2179 struct rdma_id_private *id_priv = work->id; cma_ndev_work_handler()
2187 if (id_priv->id.event_handler(&id_priv->id, &work->event)) { cma_ndev_work_handler()
2196 rdma_destroy_id(&id_priv->id); cma_ndev_work_handler()
2202 struct rdma_route *route = &id_priv->id.route; cma_resolve_ib_route()
2210 work->id = id_priv; cma_resolve_ib_route()
2235 int rdma_set_ib_paths(struct rdma_cm_id *id, rdma_set_ib_paths() argument
2241 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_ib_paths()
2246 id->route.path_rec = kmemdup(path_rec, sizeof *path_rec * num_paths, rdma_set_ib_paths()
2248 if (!id->route.path_rec) { rdma_set_ib_paths()
2253 id->route.num_paths = num_paths; rdma_set_ib_paths()
2269 work->id = id_priv; cma_resolve_iw_route()
2300 struct rdma_route *route = &id_priv->id.route; cma_resolve_iboe_route()
2311 work->id = id_priv; cma_resolve_iboe_route()
2334 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, cma_resolve_iboe_route()
2336 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.dst_addr, cma_resolve_iboe_route()
2372 int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms) rdma_resolve_route() argument
2377 id_priv = container_of(id, struct rdma_id_private, id); rdma_resolve_route()
2382 if (rdma_cap_ib_sa(id->device, id->port_num)) rdma_resolve_route()
2384 else if (rdma_protocol_roce(id->device, id->port_num)) rdma_resolve_route()
2386 else if (rdma_protocol_iwarp(id->device, id->port_num)) rdma_resolve_route()
2463 id_priv->id.route.addr.dev_addr.dev_type = cma_bind_loopback()
2467 rdma_addr_set_sgid(&id_priv->id.route.addr.dev_addr, &gid); cma_bind_loopback()
2468 ib_addr_set_pkey(&id_priv->id.route.addr.dev_addr, pkey); cma_bind_loopback()
2469 id_priv->id.port_num = p; cma_bind_loopback()
2502 if (id_priv->id.event_handler(&id_priv->id, &event)) { addr_handler()
2506 rdma_destroy_id(&id_priv->id); addr_handler()
2530 rdma_addr_get_sgid(&id_priv->id.route.addr.dev_addr, &gid); cma_resolve_loopback()
2531 rdma_addr_set_dgid(&id_priv->id.route.addr.dev_addr, &gid); cma_resolve_loopback()
2533 work->id = id_priv; cma_resolve_loopback()
2560 rdma_addr_set_dgid(&id_priv->id.route.addr.dev_addr, (union ib_gid *) cma_resolve_ib_addr()
2561 &(((struct sockaddr_ib *) &id_priv->id.route.addr.dst_addr)->sib_addr)); cma_resolve_ib_addr()
2563 work->id = id_priv; cma_resolve_ib_addr()
2575 static int cma_bind_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, cma_bind_addr() argument
2579 src_addr = (struct sockaddr *) &id->route.addr.src_addr; cma_bind_addr()
2586 id->route.addr.dev_addr.bound_dev_if = dst_addr6->sin6_scope_id; cma_bind_addr()
2592 return rdma_bind_addr(id, src_addr); cma_bind_addr()
2595 int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, rdma_resolve_addr() argument
2601 id_priv = container_of(id, struct rdma_id_private, id); rdma_resolve_addr()
2603 ret = cma_bind_addr(id, src_addr, dst_addr); rdma_resolve_addr()
2623 dst_addr, &id->route.addr.dev_addr, rdma_resolve_addr()
2638 int rdma_set_reuseaddr(struct rdma_cm_id *id, int reuse) rdma_set_reuseaddr() argument
2644 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_reuseaddr()
2657 int rdma_set_afonly(struct rdma_cm_id *id, int afonly) rdma_set_afonly() argument
2663 id_priv = container_of(id, struct rdma_id_private, id); rdma_set_afonly()
2717 ret = cma_ps_alloc(id_priv->id.route.addr.dev_addr.net, ps, bind_list, cma_alloc_port()
2737 struct net *net = id_priv->id.route.addr.dev_addr.net; cma_alloc_any_port()
2810 bind_list = cma_ps_find(id_priv->id.route.addr.dev_addr.net, ps, snum); cma_use_port()
2836 switch (id_priv->id.ps) { cma_select_inet_ps()
2841 return id_priv->id.ps; cma_select_inet_ps()
2858 if ((id_priv->id.ps == RDMA_PS_IB) && (sid == (RDMA_IB_IP_PS_IB & mask))) { cma_select_ib_ps()
2861 } else if (((id_priv->id.ps == RDMA_PS_IB) || (id_priv->id.ps == RDMA_PS_TCP)) && cma_select_ib_ps()
2865 } else if (((id_priv->id.ps == RDMA_PS_IB) || (id_priv->id.ps == RDMA_PS_UDP)) && cma_select_ib_ps()
2923 int rdma_listen(struct rdma_cm_id *id, int backlog) rdma_listen() argument
2928 id_priv = container_of(id, struct rdma_id_private, id); rdma_listen()
2930 id->route.addr.src_addr.ss_family = AF_INET; rdma_listen()
2931 ret = rdma_bind_addr(id, cma_src_addr(id_priv)); rdma_listen()
2946 if (id->device) { rdma_listen()
2947 if (rdma_cap_ib_cm(id->device, 1)) { rdma_listen()
2951 } else if (rdma_cap_iw_cm(id->device, 1)) { rdma_listen()
2970 int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr) rdma_bind_addr() argument
2979 id_priv = container_of(id, struct rdma_id_private, id); rdma_bind_addr()
2983 ret = cma_check_linklocal(&id->route.addr.dev_addr, addr); rdma_bind_addr()
2989 ret = cma_translate_addr(addr, &id->route.addr.dev_addr); rdma_bind_addr()
3003 struct net *net = id_priv->id.route.addr.dev_addr.net; rdma_bind_addr()
3084 ib_init_ah_from_path(id_priv->id.device, id_priv->id.port_num, cma_sidr_rep_handler()
3085 id_priv->id.route.path_rec, cma_sidr_rep_handler()
3098 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_sidr_rep_handler()
3104 rdma_destroy_id(&id_priv->id); cma_sidr_rep_handler()
3116 struct ib_cm_id *id; cma_resolve_ib_udp() local
3145 id = ib_create_cm_id(id_priv->id.device, cma_sidr_rep_handler, cma_resolve_ib_udp()
3147 if (IS_ERR(id)) { cma_resolve_ib_udp()
3148 ret = PTR_ERR(id); cma_resolve_ib_udp()
3151 id_priv->cm_id.ib = id; cma_resolve_ib_udp()
3153 req.path = id_priv->id.route.path_rec; cma_resolve_ib_udp()
3154 req.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); cma_resolve_ib_udp()
3174 struct ib_cm_id *id; cma_connect_ib() local
3195 id = ib_create_cm_id(id_priv->id.device, cma_ib_handler, id_priv); cma_connect_ib()
3196 if (IS_ERR(id)) { cma_connect_ib()
3197 ret = PTR_ERR(id); cma_connect_ib()
3200 id_priv->cm_id.ib = id; cma_connect_ib()
3202 route = &id_priv->id.route; cma_connect_ib()
3214 req.service_id = rdma_get_service_id(&id_priv->id, cma_dst_addr(id_priv)); cma_connect_ib()
3216 req.qp_type = id_priv->id.qp_type; cma_connect_ib()
3230 if (ret && !IS_ERR(id)) { cma_connect_ib()
3231 ib_destroy_cm_id(id); cma_connect_ib()
3246 cm_id = iw_create_cm_id(id_priv->id.device, cma_iw_handler, id_priv); cma_connect_iw()
3267 iw_param.qpn = id_priv->id.qp ? id_priv->qp_num : conn_param->qp_num; cma_connect_iw()
3281 int rdma_connect(struct rdma_cm_id *id, struct rdma_conn_param *conn_param) rdma_connect() argument
3286 id_priv = container_of(id, struct rdma_id_private, id); rdma_connect()
3290 if (!id->qp) { rdma_connect()
3295 if (rdma_cap_ib_cm(id->device, id->port_num)) { rdma_connect()
3296 if (id->qp_type == IB_QPT_UD) rdma_connect()
3300 } else if (rdma_cap_iw_cm(id->device, id->port_num)) rdma_connect()
3359 if (id_priv->id.qp) { cma_accept_iw()
3389 int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param) rdma_accept() argument
3394 id_priv = container_of(id, struct rdma_id_private, id); rdma_accept()
3401 if (!id->qp && conn_param) { rdma_accept()
3406 if (rdma_cap_ib_cm(id->device, id->port_num)) { rdma_accept()
3407 if (id->qp_type == IB_QPT_UD) { rdma_accept()
3422 } else if (rdma_cap_iw_cm(id->device, id->port_num)) rdma_accept()
3433 rdma_reject(id, NULL, 0); rdma_accept()
3438 int rdma_notify(struct rdma_cm_id *id, enum ib_event_type event) rdma_notify() argument
3443 id_priv = container_of(id, struct rdma_id_private, id); rdma_notify()
3447 switch (id->device->node_type) { rdma_notify()
3459 int rdma_reject(struct rdma_cm_id *id, const void *private_data, rdma_reject() argument
3465 id_priv = container_of(id, struct rdma_id_private, id); rdma_reject()
3469 if (rdma_cap_ib_cm(id->device, id->port_num)) { rdma_reject()
3470 if (id->qp_type == IB_QPT_UD) rdma_reject()
3477 } else if (rdma_cap_iw_cm(id->device, id->port_num)) { rdma_reject()
3487 int rdma_disconnect(struct rdma_cm_id *id) rdma_disconnect() argument
3492 id_priv = container_of(id, struct rdma_id_private, id); rdma_disconnect()
3496 if (rdma_cap_ib_cm(id->device, id->port_num)) { rdma_disconnect()
3503 } else if (rdma_cap_iw_cm(id->device, id->port_num)) { rdma_disconnect()
3528 if (!status && id_priv->id.qp) cma_ib_mc_handler()
3529 status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid, cma_ib_mc_handler()
3538 ib_init_ah_from_mcmember(id_priv->id.device, cma_ib_mc_handler()
3539 id_priv->id.port_num, &multicast->rec, cma_ib_mc_handler()
3546 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_ib_mc_handler()
3550 rdma_destroy_id(&id_priv->id); cma_ib_mc_handler()
3562 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_set_mgid()
3577 if (id_priv->id.ps == RDMA_PS_UDP) cma_set_mgid()
3582 if (id_priv->id.ps == RDMA_PS_UDP) cma_set_mgid()
3592 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_join_ib_multicast()
3597 ret = ib_sa_get_mcmember_rec(id_priv->id.device, id_priv->id.port_num, cma_join_ib_multicast()
3618 if (id_priv->id.ps == RDMA_PS_IPOIB) cma_join_ib_multicast()
3625 mc->multicast.ib = ib_sa_join_multicast(&sa_client, id_priv->id.device, cma_join_ib_multicast()
3626 id_priv->id.port_num, &rec, cma_join_ib_multicast()
3674 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; cma_iboe_join_multicast()
3695 if (id_priv->id.ps == RDMA_PS_UDP) cma_iboe_join_multicast()
3712 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, cma_iboe_join_multicast()
3714 work->id = id_priv; cma_iboe_join_multicast()
3729 int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr, rdma_join_multicast() argument
3736 id_priv = container_of(id, struct rdma_id_private, id); rdma_join_multicast()
3753 if (rdma_protocol_roce(id->device, id->port_num)) { rdma_join_multicast()
3756 } else if (rdma_cap_ib_mcast(id->device, id->port_num)) rdma_join_multicast()
3771 void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr) rdma_leave_multicast() argument
3776 id_priv = container_of(id, struct rdma_id_private, id); rdma_leave_multicast()
3783 if (id->qp) rdma_leave_multicast()
3784 ib_detach_mcast(id->qp, rdma_leave_multicast()
3788 BUG_ON(id_priv->cma_dev->device != id->device); rdma_leave_multicast()
3790 if (rdma_cap_ib_mcast(id->device, id->port_num)) { rdma_leave_multicast()
3793 } else if (rdma_protocol_roce(id->device, id->port_num)) rdma_leave_multicast()
3808 dev_addr = &id_priv->id.route.addr.dev_addr; cma_netdev_change()
3813 printk(KERN_INFO "RDMA CM addr change for ndev %s used by id %p\n", cma_netdev_change()
3814 ndev->name, &id_priv->id); cma_netdev_change()
3820 work->id = id_priv; cma_netdev_change()
3903 ret = id_priv->id.event_handler(&id_priv->id, &event); cma_remove_id_dev()
3927 rdma_destroy_id(&id_priv->id); cma_process_remove()
3957 struct rdma_cm_id *id = NULL; cma_get_id_stats() local
3988 id = &id_priv->id; cma_get_id_stats()
3989 id_stats->node_type = id->route.addr.dev_addr.dev_type; cma_get_id_stats()
3990 id_stats->port_num = id->port_num; cma_get_id_stats()
3992 id->route.addr.dev_addr.bound_dev_if; cma_get_id_stats()
4006 id_stats->port_space = id->ps; cma_get_id_stats()
4009 id_stats->qp_type = id->qp_type; cma_get_id_stats()
4056 .id = &cma_pernet_id,
/linux-4.4.14/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()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/include/rdma/
H A Drdma_cm.h143 * the passed in id, or a corresponding listen id. Returning a
144 * non-zero value from the callback will destroy the passed in id.
146 typedef int (*rdma_cm_event_handler)(struct rdma_cm_id *id,
163 * @net: The network namespace in which to create the new id.
166 * @context: User specified context associated with the id.
168 * @qp_type: type of queue pair associated with the id.
170 * The id holds a reference on the network namespace until it is destroyed.
180 * @id: RDMA identifier.
183 * asynchronous operations associated with the id.
185 void rdma_destroy_id(struct rdma_cm_id *id);
191 * @id: RDMA identifier.
198 int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr);
205 * @id: RDMA identifier.
210 int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr,
221 int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms);
230 int rdma_create_qp(struct rdma_cm_id *id, struct ib_pd *pd,
240 void rdma_destroy_qp(struct rdma_cm_id *id);
245 * @id: Communication identifier associated with the QP attributes to
261 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
266 * @id: Connection identifier to connect.
276 int rdma_connect(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);
285 int rdma_listen(struct rdma_cm_id *id, int backlog);
289 * @id: Connection identifier associated with the request.
299 * state of the qp associated with the id is modified to error, such that any
302 int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param);
307 * @id: Connection identifier to transition to established.
317 int rdma_notify(struct rdma_cm_id *id, enum ib_event_type event);
322 int rdma_reject(struct rdma_cm_id *id, const void *private_data,
329 int rdma_disconnect(struct rdma_cm_id *id);
334 * @id: Communication identifier associated with the request.
339 int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr,
346 void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr);
351 * @id: Communication identifier to associated with service type.
360 void rdma_set_service_type(struct rdma_cm_id *id, int tos);
365 * @id: Communication identifier to configure.
368 * Reuse must be set before an address is bound to the id.
370 int rdma_set_reuseaddr(struct rdma_cm_id *id, int reuse);
375 * @id: Communication identifer to configure.
380 int rdma_set_afonly(struct rdma_cm_id *id, int afonly);
384 * @id: Communication identifier associated with the address.
387 __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr);
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/mips/lantiq/xway/
H A Dreset.c176 int xrx200_gphy_boot(struct device *dev, unsigned int id, dma_addr_t dev_addr) xrx200_gphy_boot() argument
192 dev_info(dev, "booting GPHY%u firmware at %X\n", id, dev_addr); xrx200_gphy_boot()
195 if (id >= ARRAY_SIZE(xrx200_gphy)) { xrx200_gphy_boot()
196 dev_err(dev, "%u is an invalid gphy id\n", id); xrx200_gphy_boot()
199 xrx200_gphy_boot_addr(&xrx200_gphy[id], dev_addr); xrx200_gphy_boot()
201 if (id >= ARRAY_SIZE(xrx300_gphy)) { xrx200_gphy_boot()
202 dev_err(dev, "%u is an invalid gphy id\n", id); xrx200_gphy_boot()
205 xrx200_gphy_boot_addr(&xrx300_gphy[id], dev_addr); xrx200_gphy_boot()
207 if (id >= ARRAY_SIZE(xrx330_gphy)) { xrx200_gphy_boot()
208 dev_err(dev, "%u is an invalid gphy id\n", id); xrx200_gphy_boot()
211 xrx200_gphy_boot_addr(&xrx330_gphy[id], dev_addr); xrx200_gphy_boot()
225 unsigned long id) ltq_assert_device()
229 if (id < 8) ltq_assert_device()
233 val |= BIT(id); ltq_assert_device()
240 unsigned long id) ltq_deassert_device()
244 if (id < 8) ltq_deassert_device()
248 val &= ~BIT(id); ltq_deassert_device()
255 unsigned long id) ltq_reset_device()
257 ltq_assert_device(rcdev, id); ltq_reset_device()
258 return ltq_deassert_device(rcdev, id); ltq_reset_device()
224 ltq_assert_device(struct reset_controller_dev *rcdev, unsigned long id) ltq_assert_device() argument
239 ltq_deassert_device(struct reset_controller_dev *rcdev, unsigned long id) ltq_deassert_device() argument
254 ltq_reset_device(struct reset_controller_dev *rcdev, unsigned long id) ltq_reset_device() argument
/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/llite/
H A Dvvp_dev.c282 static void vvp_pgcache_id_unpack(loff_t pos, struct vvp_pgcache_id *id) vvp_pgcache_id_unpack() argument
286 id->vpi_index = pos & 0xffffffff; vvp_pgcache_id_unpack()
287 id->vpi_depth = (pos >> PGC_DEPTH_SHIFT) & 0xf; vvp_pgcache_id_unpack()
288 id->vpi_bucket = (unsigned long long)pos >> PGC_OBJ_SHIFT; vvp_pgcache_id_unpack()
291 static loff_t vvp_pgcache_id_pack(struct vvp_pgcache_id *id) vvp_pgcache_id_pack() argument
294 ((__u64)id->vpi_index) | vvp_pgcache_id_pack()
295 ((__u64)id->vpi_depth << PGC_DEPTH_SHIFT) | vvp_pgcache_id_pack()
296 ((__u64)id->vpi_bucket << PGC_OBJ_SHIFT); vvp_pgcache_id_pack()
302 struct vvp_pgcache_id *id = data; vvp_pgcache_obj_get() local
305 if (id->vpi_curdep-- > 0) vvp_pgcache_obj_get()
312 id->vpi_obj = hdr; vvp_pgcache_obj_get()
318 struct vvp_pgcache_id *id) vvp_pgcache_obj()
322 id->vpi_depth &= 0xf; vvp_pgcache_obj()
323 id->vpi_obj = NULL; vvp_pgcache_obj()
324 id->vpi_curdep = id->vpi_depth; vvp_pgcache_obj()
326 cfs_hash_hlist_for_each(dev->ld_site->ls_obj_hash, id->vpi_bucket, vvp_pgcache_obj()
327 vvp_pgcache_obj_get, id); vvp_pgcache_obj()
328 if (id->vpi_obj != NULL) { vvp_pgcache_obj()
331 lu_obj = lu_object_locate(id->vpi_obj, dev->ld_type); vvp_pgcache_obj()
336 lu_object_put(env, lu_object_top(id->vpi_obj)); vvp_pgcache_obj()
338 } else if (id->vpi_curdep > 0) { vvp_pgcache_obj()
339 id->vpi_depth = 0xf; vvp_pgcache_obj()
349 struct vvp_pgcache_id id; vvp_pgcache_find() local
352 vvp_pgcache_id_unpack(pos, &id); vvp_pgcache_find()
355 if (id.vpi_bucket >= CFS_HASH_NHLIST(site->ls_obj_hash)) vvp_pgcache_find()
357 clob = vvp_pgcache_obj(env, dev, &id); vvp_pgcache_find()
369 id.vpi_index, 1); vvp_pgcache_find()
371 id.vpi_index = pg->cp_index; vvp_pgcache_find()
380 return vvp_pgcache_id_pack(&id); vvp_pgcache_find()
383 ++id.vpi_depth; vvp_pgcache_find()
384 id.vpi_depth &= 0xf; vvp_pgcache_find()
385 if (id.vpi_depth == 0 && ++id.vpi_bucket == 0) vvp_pgcache_find()
387 id.vpi_index = 0; vvp_pgcache_find()
436 struct vvp_pgcache_id id; vvp_pgcache_show() local
443 vvp_pgcache_id_unpack(pos, &id); vvp_pgcache_show()
445 clob = vvp_pgcache_obj(env, &sbi->ll_cl->cd_lu_dev, &id); vvp_pgcache_show()
450 page = cl_page_lookup(hdr, id.vpi_index); vvp_pgcache_show()
454 id.vpi_index, PFID(&hdr->coh_lu.loh_fid)); vvp_pgcache_show()
316 vvp_pgcache_obj(const struct lu_env *env, struct lu_device *dev, struct vvp_pgcache_id *id) vvp_pgcache_obj() argument

Completed in 4977 milliseconds

1234567891011>>