Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 25 of 42) sorted by relevance

12

/drivers/video/backlight/
Dpwm_bl.c43 static void pwm_backlight_power_on(struct pwm_bl_data *pb) in pwm_backlight_power_on() argument
48 pwm_get_state(pb->pwm, &state); in pwm_backlight_power_on()
49 if (pb->enabled) in pwm_backlight_power_on()
52 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
54 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on()
57 pwm_apply_state(pb->pwm, &state); in pwm_backlight_power_on()
59 if (pb->post_pwm_on_delay) in pwm_backlight_power_on()
60 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on()
62 if (pb->enable_gpio) in pwm_backlight_power_on()
63 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on()
[all …]
/drivers/gpu/host1x/
Dcdma.c48 static void host1x_pushbuffer_destroy(struct push_buffer *pb) in host1x_pushbuffer_destroy() argument
50 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_destroy()
53 if (!pb->mapped) in host1x_pushbuffer_destroy()
57 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy()
58 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy()
61 dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy()
63 pb->mapped = NULL; in host1x_pushbuffer_destroy()
64 pb->phys = 0; in host1x_pushbuffer_destroy()
70 static int host1x_pushbuffer_init(struct push_buffer *pb) in host1x_pushbuffer_init() argument
72 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_init()
[all …]
Dcdma.h76 #define pb_to_cdma(pb) container_of(pb, struct host1x_cdma, push_buffer) argument
Ddev.h49 void (*init)(struct push_buffer *pb);
296 struct push_buffer *pb) in host1x_hw_pushbuffer_init() argument
298 host->cdma_pb_op->init(pb); in host1x_hw_pushbuffer_init()
/drivers/net/phy/
Dmdio-mux.c41 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_read() local
44 mutex_lock_nested(&pb->mii_bus->mdio_lock, MDIO_MUTEX_MUX); in mdio_mux_read()
45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read()
49 pb->current_child = cb->bus_number; in mdio_mux_read()
51 r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); in mdio_mux_read()
53 mutex_unlock(&pb->mii_bus->mdio_lock); in mdio_mux_read()
65 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_write() local
69 mutex_lock_nested(&pb->mii_bus->mdio_lock, MDIO_MUTEX_MUX); in mdio_mux_write()
70 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write()
74 pb->current_child = cb->bus_number; in mdio_mux_write()
[all …]
/drivers/parport/
Dparport_pc.c113 static void frob_econtrol(struct parport *pb, unsigned char m, in frob_econtrol() argument
119 ectr = inb(ECONTROL(pb)); in frob_econtrol()
124 outb((ectr & ~m) ^ v, ECONTROL(pb)); in frob_econtrol()
208 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument
212 if (!(parport_pc_read_status(pb) & 0x01)) in clear_epp_timeout()
216 parport_pc_read_status(pb); in clear_epp_timeout()
217 r = parport_pc_read_status(pb); in clear_epp_timeout()
218 outb(r | 0x01, STATUS(pb)); /* Some reset by writing 1 */ in clear_epp_timeout()
219 outb(r & 0xfe, STATUS(pb)); /* Others by writing 0 */ in clear_epp_timeout()
220 r = parport_pc_read_status(pb); in clear_epp_timeout()
[all …]
Dparport_gsc.c53 static int clear_epp_timeout(struct parport *pb) in clear_epp_timeout() argument
57 if (!(parport_gsc_read_status(pb) & 0x01)) in clear_epp_timeout()
61 parport_gsc_read_status(pb); in clear_epp_timeout()
62 r = parport_gsc_read_status(pb); in clear_epp_timeout()
63 parport_writeb (r | 0x01, STATUS (pb)); /* Some reset by writing 1 */ in clear_epp_timeout()
64 parport_writeb (r & 0xfe, STATUS (pb)); /* Others by writing 0 */ in clear_epp_timeout()
65 r = parport_gsc_read_status(pb); in clear_epp_timeout()
135 static int parport_SPP_supported(struct parport *pb) in parport_SPP_supported() argument
145 clear_epp_timeout(pb); in parport_SPP_supported()
149 parport_writeb (w, CONTROL (pb)); in parport_SPP_supported()
[all …]
/drivers/media/pci/tw686x/
Dtw686x-video.c50 unsigned int pb) in tw686x_buf_done() argument
52 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_buf_done()
57 if (vc->curr_bufs[pb]) { in tw686x_buf_done()
58 vb = &vc->curr_bufs[pb]->vb; in tw686x_buf_done()
71 vc->pb = !pb; in tw686x_buf_done()
78 unsigned int pb) in tw686x_memcpy_dma_free() argument
80 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_memcpy_dma_free()
102 unsigned int pb) in tw686x_memcpy_dma_alloc() argument
105 u32 reg = pb ? VDMA_B_ADDR[vc->ch] : VDMA_P_ADDR[vc->ch]; in tw686x_memcpy_dma_alloc()
109 WARN(vc->dma_descs[pb].virt, in tw686x_memcpy_dma_alloc()
[all …]
Dtw686x-audio.c35 unsigned int ch, pb; in tw686x_audio_irq() local
43 pb = !!(pb_status & BIT(AUDIO_CHANNEL_OFFSET + ch)); in tw686x_audio_irq()
57 done = ac->curr_bufs[!pb]; in tw686x_audio_irq()
58 ac->curr_bufs[pb] = next; in tw686x_audio_irq()
68 desc = &ac->dma_descs[pb]; in tw686x_audio_irq()
73 u32 reg = pb ? ADMA_B_ADDR[ch] : ADMA_P_ADDR[ch]; in tw686x_audio_irq()
312 int pb; in tw686x_audio_dma_free() local
314 for (pb = 0; pb < 2; pb++) { in tw686x_audio_dma_free()
315 if (!ac->dma_descs[pb].virt) in tw686x_audio_dma_free()
317 pci_free_consistent(dev->pci_dev, ac->dma_descs[pb].size, in tw686x_audio_dma_free()
[all …]
Dtw686x.h100 unsigned int pb; member
106 int (*alloc)(struct tw686x_video_channel *vc, unsigned int pb);
107 void (*free)(struct tw686x_video_channel *vc, unsigned int pb);
108 void (*buf_refill)(struct tw686x_video_channel *vc, unsigned int pb);
/drivers/input/misc/
Drave-sp-pwrbutton.c25 struct rave_sp_power_button *pb = in rave_sp_power_button_event() local
29 struct input_dev *idev = pb->idev; in rave_sp_power_button_event()
44 struct rave_sp_power_button *pb; in rave_sp_pwrbutton_probe() local
48 pb = devm_kzalloc(dev, sizeof(*pb), GFP_KERNEL); in rave_sp_pwrbutton_probe()
49 if (!pb) in rave_sp_pwrbutton_probe()
64 pb->idev = idev; in rave_sp_pwrbutton_probe()
65 pb->nb.notifier_call = rave_sp_power_button_event; in rave_sp_pwrbutton_probe()
66 pb->nb.priority = 128; in rave_sp_pwrbutton_probe()
68 error = devm_rave_sp_register_event_notifier(dev, &pb->nb); in rave_sp_pwrbutton_probe()
/drivers/clk/microchip/
Dclk-core.c99 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_is_enabled() local
101 return readl(pb->ctrl_reg) & PB_DIV_ENABLE; in pbclk_is_enabled()
106 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_enable() local
108 writel(PB_DIV_ENABLE, PIC32_SET(pb->ctrl_reg)); in pbclk_enable()
114 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_disable() local
116 writel(PB_DIV_ENABLE, PIC32_CLR(pb->ctrl_reg)); in pbclk_disable()
145 static inline u32 pbclk_read_pbdiv(struct pic32_periph_clk *pb) in pbclk_read_pbdiv() argument
147 return ((readl(pb->ctrl_reg) >> PB_DIV_SHIFT) & PB_DIV_MASK) + 1; in pbclk_read_pbdiv()
153 struct pic32_periph_clk *pb = clkhw_to_pbclk(hw); in pbclk_recalc_rate() local
155 return parent_rate / pbclk_read_pbdiv(pb); in pbclk_recalc_rate()
[all …]
/drivers/pinctrl/meson/
Dpinctrl-meson.h140 #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ argument
150 [REG_PULL] = { pr, pb }, \
158 #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ argument
159 BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0)
/drivers/md/
Ddm-cache-target.c612 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); in get_per_bio_data() local
613 BUG_ON(!pb); in get_per_bio_data()
614 return pb; in get_per_bio_data()
619 struct per_bio_data *pb = get_per_bio_data(bio); in init_per_bio_data() local
621 pb->tick = false; in init_per_bio_data()
622 pb->req_nr = dm_bio_get_target_bio_nr(bio); in init_per_bio_data()
623 pb->cell = NULL; in init_per_bio_data()
624 pb->len = 0; in init_per_bio_data()
626 return pb; in init_per_bio_data()
659 struct per_bio_data *pb; in bio_detain_shared() local
[all …]
Ddm-flakey.c322 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); in flakey_map() local
323 pb->bio_submitted = false; in flakey_map()
335 pb->bio_submitted = true; in flakey_map()
385 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); in flakey_end_io() local
390 if (!*error && pb->bio_submitted && (bio_data_dir(bio) == READ)) { in flakey_end_io()
Ddm-log-writes.c668 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); in log_writes_map() local
679 pb->block = NULL; in log_writes_map()
713 pb->block = block; in log_writes_map()
794 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); in normal_end_io() local
796 if (bio_data_dir(bio) == WRITE && pb->block) { in normal_end_io()
797 struct pending_block *block = pb->block; in normal_end_io()
/drivers/gpu/drm/nouveau/
Dnouveau_dma.c88 struct nouveau_bo *pb = chan->push.buffer; in nv50_dma_push() local
93 nouveau_bo_wr32(pb, ip++, lower_32_bits(offset)); in nv50_dma_push()
94 nouveau_bo_wr32(pb, ip++, upper_32_bits(offset) | length << 8); in nv50_dma_push()
100 nouveau_bo_rd32(pb, 0); in nv50_dma_push()
/drivers/net/hyperv/
Drndis_filter.c208 struct hv_page_buffer *pb = page_buf; in rndis_filter_send_request() local
217 pb[0].pfn = virt_to_phys(&req->request_msg) >> in rndis_filter_send_request()
219 pb[0].len = req->request_msg.msg_len; in rndis_filter_send_request()
220 pb[0].offset = in rndis_filter_send_request()
224 if (pb[0].offset + pb[0].len > PAGE_SIZE) { in rndis_filter_send_request()
226 pb[0].len = PAGE_SIZE - in rndis_filter_send_request()
227 pb[0].offset; in rndis_filter_send_request()
228 pb[1].pfn = virt_to_phys((void *)&req->request_msg in rndis_filter_send_request()
229 + pb[0].len) >> PAGE_SHIFT; in rndis_filter_send_request()
230 pb[1].offset = 0; in rndis_filter_send_request()
[all …]
Dnetvsc.c770 struct hv_page_buffer *pb, in netvsc_copy_to_send_buf() argument
791 char *src = phys_to_virt(pb[i].pfn << PAGE_SHIFT); in netvsc_copy_to_send_buf()
792 u32 offset = pb[i].offset; in netvsc_copy_to_send_buf()
793 u32 len = pb[i].len; in netvsc_copy_to_send_buf()
807 struct hv_page_buffer *pb, in netvsc_send_pkt() argument
844 pb += packet->rmsg_pgcnt; in netvsc_send_pkt()
847 pb, packet->page_buf_cnt, in netvsc_send_pkt()
902 struct hv_page_buffer *pb, in netvsc_send() argument
930 return netvsc_send_pkt(device, packet, net_device, pb, skb); in netvsc_send()
968 packet, rndis_msg, pb, xmit_more); in netvsc_send()
[all …]
/drivers/scsi/
Dppa.c1016 static int __ppa_attach(struct parport *pb) in __ppa_attach() argument
1042 dev->dev = parport_register_dev_model(pb, "ppa", &ppa_cb, dev->dev_no); in __ppa_attach()
1058 "time!\n", pb->number); in __ppa_attach()
1106 host->io_port = pb->base; in __ppa_attach()
1109 host->unique_id = pb->number; in __ppa_attach()
1128 static void ppa_attach(struct parport *pb) in ppa_attach() argument
1130 __ppa_attach(pb); in ppa_attach()
1133 static void ppa_detach(struct parport *pb) in ppa_detach() argument
1137 if (dev->dev->port == pb) { in ppa_detach()
Dimm.c1149 static int __imm_attach(struct parport *pb) in __imm_attach() argument
1179 dev->dev = parport_register_dev_model(pb, "imm", &imm_cb, dev->dev_no); in __imm_attach()
1195 "time!\n", pb->number); in __imm_attach()
1237 host->io_port = pb->base; in __imm_attach()
1240 host->unique_id = pb->number; in __imm_attach()
1263 static void imm_attach(struct parport *pb) in imm_attach() argument
1265 __imm_attach(pb); in imm_attach()
1268 static void imm_detach(struct parport *pb) in imm_detach() argument
1272 if (dev->dev->port == pb) { in imm_detach()
/drivers/usb/host/
Dr8a66597.h214 unsigned char *pb; in r8a66597_write_fifo() local
222 pb = (unsigned char *)buf + count * 4; in r8a66597_write_fifo()
225 iowrite8(pb[i], fifoaddr + i); in r8a66597_write_fifo()
227 iowrite8(pb[i], fifoaddr + 3 - i); in r8a66597_write_fifo()
/drivers/media/common/videobuf2/
Dvideobuf2-core.c575 void vb2_core_querybuf(struct vb2_queue *q, unsigned int index, void *pb) in vb2_core_querybuf() argument
577 call_void_bufop(q, fill_user_buffer, q->bufs[index], pb); in vb2_core_querybuf()
1357 int vb2_core_qbuf(struct vb2_queue *q, unsigned int index, void *pb,
1419 int vb2_core_prepare_buf(struct vb2_queue *q, unsigned int index, void *pb) in vb2_core_prepare_buf() argument
1440 call_void_bufop(q, fill_user_buffer, vb, pb); in vb2_core_prepare_buf()
1511 int vb2_core_qbuf(struct vb2_queue *q, unsigned int index, void *pb, in vb2_core_qbuf() argument
1581 if (pb) { in vb2_core_qbuf()
1582 call_void_bufop(q, copy_timestamp, vb, pb); in vb2_core_qbuf()
1583 call_void_bufop(q, fill_user_buffer, vb, pb); in vb2_core_qbuf()
1619 if (pb) in vb2_core_qbuf()
[all …]
/drivers/usb/gadget/udc/
Dm66592-udc.h570 unsigned char *pb; in m66592_write_fifo() local
577 pb = buf + count * 4; in m66592_write_fifo()
580 iowrite8(pb[i], fifoaddr + (3 - i)); in m66592_write_fifo()
582 iowrite8(pb[i], fifoaddr + i); in m66592_write_fifo()
/drivers/gpu/host1x/hw/
Dcdma_hw.c20 static void push_buffer_init(struct push_buffer *pb) in push_buffer_init() argument
22 *(u32 *)(pb->mapped + pb->size) = host1x_opcode_restart(0); in push_buffer_init()

12