Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 536) sorted by relevance

12345678910>>...22

/drivers/video/console/
Dpromcon.c47 promcon_start(struct vc_data *conp, char *b) in promcon_start() argument
59 return sprintf(b, "\b\033[7m%c\b\033[@%c\033[m", cs, in promcon_start()
62 return sprintf(b, "\b\033[7m%c\033[m\b\033[@%c", cs, in promcon_start()
65 return sprintf(b, "\b%c\b\033[@\033[7m%c\033[m", cs, in promcon_start()
68 return sprintf(b, "\b%c\b\033[@%c", cs, ct); in promcon_start()
72 return sprintf(b, "\033[7m%c\033[m\b", cs); in promcon_start()
74 return sprintf(b, "%c\b", cs); in promcon_start()
78 promcon_end(struct vc_data *conp, char *b) in promcon_end() argument
82 char *p = b; in promcon_end()
85 b += sprintf(b, "\033[%d;%dH", py + 1, px + 1); in promcon_end()
[all …]
/drivers/video/matrox/
Di2c-matroxfb.c71 struct i2c_bit_adapter* b = data; in matroxfb_gpio_setsda() local
72 matroxfb_i2c_set(b->minfo, b->mask.data, state); in matroxfb_gpio_setsda()
76 struct i2c_bit_adapter* b = data; in matroxfb_gpio_setscl() local
77 matroxfb_i2c_set(b->minfo, b->mask.clock, state); in matroxfb_gpio_setscl()
81 struct i2c_bit_adapter* b = data; in matroxfb_gpio_getsda() local
82 return (matroxfb_read_gpio(b->minfo) & b->mask.data) ? 1 : 0; in matroxfb_gpio_getsda()
86 struct i2c_bit_adapter* b = data; in matroxfb_gpio_getscl() local
87 return (matroxfb_read_gpio(b->minfo) & b->mask.clock) ? 1 : 0; in matroxfb_gpio_getscl()
100 static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo, in i2c_bus_reg() argument
106 b->minfo = minfo; in i2c_bus_reg()
[all …]
/drivers/isdn/sc/
Dinit.c42 int b = -1; in sc_init() local
63 while(b++ < MAX_CARDS - 1) { in sc_init()
64 pr_debug("Probing for adapter #%d\n", b); in sc_init()
76 pr_debug("I/O Base for board %d is 0x%x, %s probe\n", b, io[b], in sc_init()
77 io[b] == 0 ? "will" : "won't"); in sc_init()
78 if(io[b]) { in sc_init()
83 if(!request_region(io[b] + i * 0x400, 1, "sc test")) { in sc_init()
84 pr_debug("request_region for 0x%x failed\n", io[b] + i * 0x400); in sc_init()
85 io[b] = 0; in sc_init()
88 release_region(io[b] + i * 0x400, 1); in sc_init()
[all …]
/drivers/media/dvb/dvb-usb/
Ddib0700_core.c26 u8 b[16]; in dib0700_get_version() local
30 b, sizeof(b), USB_CTRL_GET_TIMEOUT); in dib0700_get_version()
31 *hwversion = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3]; in dib0700_get_version()
32 *romversion = (b[4] << 24) | (b[5] << 16) | (b[6] << 8) | b[7]; in dib0700_get_version()
33 *ramversion = (b[8] << 24) | (b[9] << 16) | (b[10] << 8) | b[11]; in dib0700_get_version()
34 *fwtype = (b[12] << 24) | (b[13] << 16) | (b[14] << 8) | b[15]; in dib0700_get_version()
260 u8 b[16]; in dib0700_identify_state() local
262 REQUEST_GET_VERSION, USB_TYPE_VENDOR | USB_DIR_IN, 0, 0, b, 16, USB_CTRL_GET_TIMEOUT); in dib0700_identify_state()
276 u8 b[10]; in dib0700_set_clock() local
277 b[0] = REQUEST_SET_CLOCK; in dib0700_set_clock()
[all …]
Ddtt200u-fe.c26 u8 st = GET_TUNE_STATUS, b[3]; in dtt200u_fe_read_status() local
28 dvb_usb_generic_rw(state->d,&st,1,b,3,0); in dtt200u_fe_read_status()
30 switch (b[0]) { in dtt200u_fe_read_status()
49 u8 bw = GET_VIT_ERR_CNT,b[3]; in dtt200u_fe_read_ber() local
50 dvb_usb_generic_rw(state->d,&bw,1,b,3,0); in dtt200u_fe_read_ber()
51 *ber = (b[0] << 16) | (b[1] << 8) | b[2]; in dtt200u_fe_read_ber()
58 u8 bw = GET_RS_UNCOR_BLK_CNT,b[2]; in dtt200u_fe_read_unc_blocks() local
60 dvb_usb_generic_rw(state->d,&bw,1,b,2,0); in dtt200u_fe_read_unc_blocks()
61 *unc = (b[0] << 8) | b[1]; in dtt200u_fe_read_unc_blocks()
68 u8 bw = GET_AGC, b; in dtt200u_fe_read_signal_strength() local
[all …]
Ddibusb-common.c60 u8 b[3]; in dibusb_power_ctrl() local
62 b[0] = DIBUSB_REQ_SET_IOCTL; in dibusb_power_ctrl()
63 b[1] = DIBUSB_IOCTL_CMD_POWER_MODE; in dibusb_power_ctrl()
64 b[2] = onoff ? DIBUSB_IOCTL_POWER_WAKEUP : DIBUSB_IOCTL_POWER_SLEEP; in dibusb_power_ctrl()
65 ret = dvb_usb_generic_write(d,b,3); in dibusb_power_ctrl()
73 u8 b[3] = { 0 }; in dibusb2_0_streaming_ctrl() local
80 b[0] = DIBUSB_REQ_SET_STREAMING_MODE; in dibusb2_0_streaming_ctrl()
81 b[1] = 0x00; in dibusb2_0_streaming_ctrl()
82 if ((ret = dvb_usb_generic_write(adap->dev,b,2)) < 0) in dibusb2_0_streaming_ctrl()
86 b[0] = DIBUSB_REQ_SET_IOCTL; in dibusb2_0_streaming_ctrl()
[all …]
/drivers/media/video/
Ddabusb.c113 pbuff_t b; in dabusb_cancel_queue() local
119 list_for_each_entry(b, q, buff_list) { in dabusb_cancel_queue()
121 dump_urb(b->purb); in dabusb_cancel_queue()
123 usb_unlink_urb (b->purb); in dabusb_cancel_queue()
133 pbuff_t b; in dabusb_free_queue() local
137 b = list_entry (p, buff_t, buff_list); in dabusb_free_queue()
140 dump_urb(b->purb); in dabusb_free_queue()
142 kfree(b->purb->transfer_buffer); in dabusb_free_queue()
143 usb_free_urb(b->purb); in dabusb_free_queue()
146 kfree (b); in dabusb_free_queue()
[all …]
Dvideobuf-core.c240 static void videobuf_status(struct videobuf_queue *q, struct v4l2_buffer *b, in videobuf_status() argument
246 b->index = vb->i; in videobuf_status()
247 b->type = type; in videobuf_status()
249 b->memory = vb->memory; in videobuf_status()
250 switch (b->memory) { in videobuf_status()
252 b->m.offset = vb->boff; in videobuf_status()
253 b->length = vb->bsize; in videobuf_status()
256 b->m.userptr = vb->baddr; in videobuf_status()
257 b->length = vb->bsize; in videobuf_status()
260 b->m.offset = vb->boff; in videobuf_status()
[all …]
/drivers/net/skfp/h/
Dcmtdef.h57 #define DB_PR(flag,a,b,c) { if (flag) printf(a,b,c) ; } argument
59 #define DB_PR(flag,a,b,c) argument
63 #define DB_ECM(a,b,c) DB_PR((smc->debug.d_smt&1),a,b,c) argument
64 #define DB_ECMN(n,a,b,c) DB_PR((smc->debug.d_ecm >=(n)),a,b,c) argument
65 #define DB_RMT(a,b,c) DB_PR((smc->debug.d_smt&2),a,b,c) argument
66 #define DB_RMTN(n,a,b,c) DB_PR((smc->debug.d_rmt >=(n)),a,b,c) argument
67 #define DB_CFM(a,b,c) DB_PR((smc->debug.d_smt&4),a,b,c) argument
68 #define DB_CFMN(n,a,b,c) DB_PR((smc->debug.d_cfm >=(n)),a,b,c) argument
69 #define DB_PCM(a,b,c) DB_PR((smc->debug.d_smt&8),a,b,c) argument
70 #define DB_PCMN(n,a,b,c) DB_PR((smc->debug.d_pcm >=(n)),a,b,c) argument
[all …]
/drivers/net/wan/
Dsealevel.c205 struct slvl_board *b; in slvl_init() local
217 b = kzalloc(sizeof(struct slvl_board), GFP_KERNEL); in slvl_init()
218 if (!b) in slvl_init()
221 b->dev[0].chan = &b->board.chanA; in slvl_init()
222 b->dev[0].channel = 0; in slvl_init()
224 b->dev[1].chan = &b->board.chanB; in slvl_init()
225 b->dev[1].channel = 1; in slvl_init()
227 dev = &b->board; in slvl_init()
235 b->iobase = iobase; in slvl_init()
256 outb(3 | (1 << 7), b->iobase + 4); in slvl_init()
[all …]
/drivers/acpi/acpica/
Dacmacros.h319 #define ARGI_LIST2(a, b) (ARG_1(b)|ARG_2(a)) argument
320 #define ARGI_LIST3(a, b, c) (ARG_1(c)|ARG_2(b)|ARG_3(a)) argument
321 #define ARGI_LIST4(a, b, c, d) (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a)) argument
322 #define ARGI_LIST5(a, b, c, d, e) (ARG_1(e)|ARG_2(d)|ARG_3(c)|ARG_4(b)|ARG_5(a)) argument
323 #define ARGI_LIST6(a, b, c, d, e, f) (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a)) argument
326 #define ARGP_LIST2(a, b) (ARG_1(a)|ARG_2(b)) argument
327 #define ARGP_LIST3(a, b, c) (ARG_1(a)|ARG_2(b)|ARG_3(c)) argument
328 #define ARGP_LIST4(a, b, c, d) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)) argument
329 #define ARGP_LIST5(a, b, c, d, e) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)) argument
330 #define ARGP_LIST6(a, b, c, d, e, f) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f)) argument
[all …]
/drivers/media/common/tuners/
Dmt2060.c164 u8 b[8]; in mt2060_set_params() local
170 b[0] = REG_LO1B1; in mt2060_set_params()
171 b[1] = 0xFF; in mt2060_set_params()
176 mt2060_writeregs(priv,b,2); in mt2060_set_params()
215 b[0] = REG_LO1C1; in mt2060_set_params()
216 b[1] = lnaband | ((num1 >>2) & 0x0F); in mt2060_set_params()
217 b[2] = div1; in mt2060_set_params()
218 b[3] = (num2 & 0x0F) | ((num1 & 3) << 4); in mt2060_set_params()
219 b[4] = num2 >> 4; in mt2060_set_params()
220 b[5] = ((num2 >>12) & 1) | (div2 << 1); in mt2060_set_params()
[all …]
Dmt2131.c103 u8 b[8]; in mt2131_set_params() local
151 b[0] = 1; in mt2131_set_params()
152 b[1] = (num1 >> 5) & 0xFF; in mt2131_set_params()
153 b[2] = (num1 & 0x1F); in mt2131_set_params()
154 b[3] = div1; in mt2131_set_params()
155 b[4] = (num2 >> 5) & 0xFF; in mt2131_set_params()
156 b[5] = num2 & 0x1F; in mt2131_set_params()
157 b[6] = div2; in mt2131_set_params()
165 (int)b[1], (int)b[2], (int)b[3], (int)b[4], (int)b[5], in mt2131_set_params()
166 (int)b[6]); in mt2131_set_params()
[all …]
/drivers/ide/
Dcmd640.c225 u8 b; in get_cmd640_reg_pci2() local
228 b = inb_p(cmd640_key + reg); in get_cmd640_reg_pci2()
230 return b; in get_cmd640_reg_pci2()
250 u8 b; in get_cmd640_reg() local
253 b = __get_cmd640_reg(reg); in get_cmd640_reg()
255 return b; in get_cmd640_reg()
319 u8 b; in probe_for_cmd640_vlb() local
324 b = get_cmd640_reg(CFR); in probe_for_cmd640_vlb()
325 if (b == 0xff || b == 0x00 || (b & CFR_AT_VESA_078h)) { in probe_for_cmd640_vlb()
327 b = get_cmd640_reg(CFR); in probe_for_cmd640_vlb()
[all …]
/drivers/atm/
Dfirestream.h84 #define Q_SA(b) (b + QSA ) argument
85 #define Q_EA(b) (b + QEA ) argument
86 #define Q_RP(b) (b + QRP ) argument
87 #define Q_WP(b) (b + QWP ) argument
88 #define Q_CNF(b) (b + QCNF) argument
90 #define FP_CNF(b) (b + FPCNF) argument
91 #define FP_SA(b) (b + FPSA) argument
92 #define FP_EA(b) (b + FPEA) argument
93 #define FP_CNT(b) (b + FPCNT) argument
94 #define FP_CTU(b) (b + FPCTU) argument
/drivers/oprofile/
Dcpu_buffer.c95 struct oprofile_cpu_buffer *b = &per_cpu(cpu_buffer, i); in alloc_cpu_buffers() local
97 b->last_task = NULL; in alloc_cpu_buffers()
98 b->last_is_kernel = -1; in alloc_cpu_buffers()
99 b->tracing = 0; in alloc_cpu_buffers()
100 b->buffer_size = buffer_size; in alloc_cpu_buffers()
101 b->sample_received = 0; in alloc_cpu_buffers()
102 b->sample_lost_overflow = 0; in alloc_cpu_buffers()
103 b->backtrace_aborted = 0; in alloc_cpu_buffers()
104 b->sample_invalid_eip = 0; in alloc_cpu_buffers()
105 b->cpu = i; in alloc_cpu_buffers()
[all …]
/drivers/pci/
Dprobe.c376 struct pci_bus *b; in pci_alloc_bus() local
378 b = kzalloc(sizeof(*b), GFP_KERNEL); in pci_alloc_bus()
379 if (b) { in pci_alloc_bus()
380 INIT_LIST_HEAD(&b->node); in pci_alloc_bus()
381 INIT_LIST_HEAD(&b->children); in pci_alloc_bus()
382 INIT_LIST_HEAD(&b->devices); in pci_alloc_bus()
383 INIT_LIST_HEAD(&b->slots); in pci_alloc_bus()
385 return b; in pci_alloc_bus()
1102 void __attribute__((weak)) set_pci_bus_resources_arch_default(struct pci_bus *b) in set_pci_bus_resources_arch_default() argument
1110 struct pci_bus *b; in pci_create_bus() local
[all …]
/drivers/media/dvb/ttusb-dec/
Dttusbdecfe.c54 u8 b[] = { 0x00, 0x00, 0x00, 0x00, in ttusbdecfe_dvbt_read_status() local
61 ret=state->config->send_command(fe, 0x73, sizeof(b), b, &len, result); in ttusbdecfe_dvbt_read_status()
93 u8 b[] = { 0x00, 0x00, 0x00, 0x03, in ttusbdecfe_dvbt_set_frontend() local
100 memcpy(&b[4], &freq, sizeof (u32)); in ttusbdecfe_dvbt_set_frontend()
101 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL); in ttusbdecfe_dvbt_set_frontend()
120 u8 b[] = { 0x00, 0x00, 0x00, 0x01, in ttusbdecfe_dvbs_set_frontend() local
137 memcpy(&b[4], &freq, sizeof(u32)); in ttusbdecfe_dvbs_set_frontend()
139 memcpy(&b[12], &sym_rate, sizeof(u32)); in ttusbdecfe_dvbs_set_frontend()
141 memcpy(&b[24], &band, sizeof(u32)); in ttusbdecfe_dvbs_set_frontend()
143 memcpy(&b[28], &lnb_voltage, sizeof(u32)); in ttusbdecfe_dvbs_set_frontend()
[all …]
Dttusb_dec.c271 u8 *b; in ttusb_dec_send_command() local
275 b = kmalloc(COMMAND_PACKET_SIZE + 4, GFP_KERNEL); in ttusb_dec_send_command()
276 if (!b) in ttusb_dec_send_command()
280 kfree(b); in ttusb_dec_send_command()
285 b[0] = 0xaa; in ttusb_dec_send_command()
286 b[1] = ++dec->trans_count; in ttusb_dec_send_command()
287 b[2] = command; in ttusb_dec_send_command()
288 b[3] = param_length; in ttusb_dec_send_command()
291 memcpy(&b[4], params, param_length); in ttusb_dec_send_command()
296 printk("0x%02X ", b[i]); in ttusb_dec_send_command()
[all …]
/drivers/md/
Dmktables.c24 static uint8_t gfmul(uint8_t a, uint8_t b) in gfmul() argument
28 while (b) { in gfmul()
29 if (b & 1) in gfmul()
32 b >>= 1; in gfmul()
38 static uint8_t gfpow(uint8_t a, int b) in gfpow() argument
42 b %= 255; in gfpow()
43 if (b < 0) in gfpow()
44 b += 255; in gfpow()
46 while (b) { in gfpow()
47 if (b & 1) in gfpow()
[all …]
/drivers/staging/sxg/
Dsxg_os.h60 list_entry *b; \
64 b = (e)->nle_blink; \
65 b->nle_flink = f; \
66 f->nle_blink = b; \
86 struct LIST_ENTRY *b; in RemoveTailList() local
90 b = e->nle_blink; in RemoveTailList()
91 l->nle_blink = b; in RemoveTailList()
92 b->nle_flink = l; in RemoveTailList()
99 struct LIST_ENTRY *b; \
101 b = (l)->nle_blink; \
[all …]
/drivers/char/ip2/
Di2ellis.h409 #define iiDelay(a,b) (*(a)->i2eDelay)(b) argument
410 #define iiWriteBuf(a,b,c) (*(a)->i2eWriteBuf)(a,b,c) argument
411 #define iiReadBuf(a,b,c) (*(a)->i2eReadBuf)(a,b,c) argument
413 #define iiWriteWord(a,b) (*(a)->i2eWriteWord)(a,b) argument
416 #define iiWaitForTxEmpty(a,b) (*(a)->i2eWaitForTxEmpty)(a,b) argument
419 #define iiTrySendMail(a,b) (*(a)->i2eTrySendMail)(a,b) argument
424 #define iiWriteMask(a,b) (*(a)->i2eWriteMask)(a,b) argument
/drivers/media/dvb/ttusb-budget/
Ddvb-ttusb-budget.c202 u8 b[0x28]; in ttusb_i2c_msg() local
209 b[0] = 0xaa; in ttusb_i2c_msg()
210 b[1] = id; in ttusb_i2c_msg()
211 b[2] = 0x31; in ttusb_i2c_msg()
212 b[3] = snd_len + 3; in ttusb_i2c_msg()
213 b[4] = addr << 1; in ttusb_i2c_msg()
214 b[5] = snd_len; in ttusb_i2c_msg()
215 b[6] = rcv_len; in ttusb_i2c_msg()
218 b[7 + i] = snd_buf[i]; in ttusb_i2c_msg()
220 err = ttusb_cmd(ttusb, b, snd_len + 7, 1); in ttusb_i2c_msg()
[all …]
/drivers/block/paride/
Dktti.c24 #define j44(a,b) (((a>>4)&0x0f)|(b&0xf0)) argument
44 { int a, b, r; in ktti_read_regr() local
49 a = r1(); w2(0xc); b = r1(); w2(9); w2(0xc); w2(9); in ktti_read_regr()
50 return j44(a,b); in ktti_read_regr()
56 { int k, a, b; in ktti_read_block() local
60 a = r1(); w2(0xc); b = r1(); w2(9); in ktti_read_block()
61 buf[2*k] = j44(a,b); in ktti_read_block()
62 a = r1(); w2(0xc); b = r1(); w2(9); in ktti_read_block()
63 buf[2*k+1] = j44(a,b); in ktti_read_block()
Dfit2.c28 #define j44(a,b) (((a>>4)&0x0f)|(b&0xf0)) argument
48 { int a, b, r; in fit2_read_regr() local
57 w0(1); b = r1(); in fit2_read_regr()
60 return j44(a,b); in fit2_read_regr()
66 { int k, a, b, c, d; in fit2_read_block() local
73 w0(0); a = r1(); w0(1); b = r1(); in fit2_read_block()
75 buf[4*k+0] = j44(a,b); in fit2_read_block()
79 a = r1(); w0(3); b = r1(); in fit2_read_block()
82 buf[4*k+3] = j44(a,b); in fit2_read_block()

12345678910>>...22