Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 54) sorted by relevance

123

/linux-4.19.296/drivers/isdn/i4l/
Disdn_net.c75 isdn_net_local *lp = n->local; in isdn_net_device_started() local
78 if (lp->master) in isdn_net_device_started()
79 dev = lp->master; in isdn_net_device_started()
89 static __inline__ void isdn_net_device_wake_queue(isdn_net_local *lp) in isdn_net_device_wake_queue() argument
91 if (lp->master) in isdn_net_device_wake_queue()
92 netif_wake_queue(lp->master); in isdn_net_device_wake_queue()
94 netif_wake_queue(lp->netdev->dev); in isdn_net_device_wake_queue()
101 static __inline__ void isdn_net_device_stop_queue(isdn_net_local *lp) in isdn_net_device_stop_queue() argument
103 if (lp->master) in isdn_net_device_stop_queue()
104 netif_stop_queue(lp->master); in isdn_net_device_stop_queue()
[all …]
Disdn_net.h54 extern void isdn_net_writebuf_skb(isdn_net_local *lp, struct sk_buff *skb);
55 extern void isdn_net_write_super(isdn_net_local *lp, struct sk_buff *skb);
59 #define ISDN_MASTER_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->master)) argument
60 #define ISDN_SLAVE_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->slave)) argument
67 static __inline__ int isdn_net_lp_busy(isdn_net_local *lp) in isdn_net_lp_busy() argument
69 if (atomic_read(&lp->frame_cnt) < ISDN_NET_MAX_QUEUE_LENGTH) in isdn_net_lp_busy()
82 isdn_net_local *lp; in isdn_net_get_locked_lp() local
85 lp = nd->queue; /* get lp on top of queue */ in isdn_net_get_locked_lp()
88 if (nd->queue == lp) { /* not found -- should never happen */ in isdn_net_get_locked_lp()
89 lp = NULL; in isdn_net_get_locked_lp()
[all …]
Disdn_ppp.c31 static void isdn_ppp_push_higher(isdn_net_dev *net_dev, isdn_net_local *lp,
37 static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
41 static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
67 static int isdn_ppp_mp_init(isdn_net_local *lp, ippp_bundle *add_to);
68 static void isdn_ppp_mp_receive(isdn_net_dev *net_dev, isdn_net_local *lp,
70 static void isdn_ppp_mp_cleanup(isdn_net_local *lp);
108 isdn_ppp_free(isdn_net_local *lp) in isdn_ppp_free() argument
112 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { in isdn_ppp_free()
114 __func__, lp->ppp_slot); in isdn_ppp_free()
119 spin_lock(&lp->netdev->pb->lock); in isdn_ppp_free()
[all …]
Disdn_concap.c46 isdn_net_local *lp = isdn_net_get_locked_lp(nd); in isdn_concap_dl_data_req() local
49 if (!lp) { in isdn_concap_dl_data_req()
53 lp->huptimer = 0; in isdn_concap_dl_data_req()
54 isdn_net_writebuf_skb(lp, skb); in isdn_concap_dl_data_req()
55 spin_unlock_bh(&lp->xmit_lock); in isdn_concap_dl_data_req()
64 isdn_net_local *lp = netdev_priv(ndev); in isdn_concap_dl_connect_req() local
69 ret = isdn_net_dial_req(lp); in isdn_concap_dl_connect_req()
/linux-4.19.296/drivers/isdn/hysdn/
Dhysdn_net.c122 struct net_local *lp = (struct net_local *) dev; in net_send_packet() local
124 spin_lock_irq(&lp->lock); in net_send_packet()
126 lp->skbs[lp->in_idx++] = skb; /* add to buffer list */ in net_send_packet()
127 if (lp->in_idx >= MAX_SKB_BUFFERS) in net_send_packet()
128 lp->in_idx = 0; /* wrap around */ in net_send_packet()
129 lp->sk_count++; /* adjust counter */ in net_send_packet()
136 if (lp->sk_count >= MAX_SKB_BUFFERS) in net_send_packet()
143 spin_unlock_irq(&lp->lock); in net_send_packet()
145 if (lp->sk_count <= 3) { in net_send_packet()
160 struct net_local *lp = card->netif; in hysdn_tx_netack() local
[all …]
/linux-4.19.296/drivers/regulator/
Dlp872x.c160 static int lp872x_read_byte(struct lp872x *lp, u8 addr, u8 *data) in lp872x_read_byte() argument
165 ret = regmap_read(lp->regmap, addr, &val); in lp872x_read_byte()
167 dev_err(lp->dev, "failed to read 0x%.2x\n", addr); in lp872x_read_byte()
175 static inline int lp872x_write_byte(struct lp872x *lp, u8 addr, u8 data) in lp872x_write_byte() argument
177 return regmap_write(lp->regmap, addr, data); in lp872x_write_byte()
180 static inline int lp872x_update_bits(struct lp872x *lp, u8 addr, in lp872x_update_bits() argument
183 return regmap_update_bits(lp->regmap, addr, mask, data); in lp872x_update_bits()
186 static int lp872x_get_timestep_usec(struct lp872x *lp) in lp872x_get_timestep_usec() argument
188 enum lp872x_id chip = lp->chipid; in lp872x_get_timestep_usec()
211 ret = lp872x_read_byte(lp, LP872X_GENERAL_CFG, &val); in lp872x_get_timestep_usec()
[all …]
Dlp8788-buck.c93 struct lp8788 *lp; member
185 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_get_buck_dvs_ctrl_mode()
225 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_select_buck_vout_addr()
248 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_select_buck_vout_addr()
276 return lp8788_update_bits(buck->lp, addr, LP8788_VOUT_M, selector); in lp8788_buck12_set_voltage_sel()
290 ret = lp8788_read_byte(buck->lp, addr, &val); in lp8788_buck12_get_voltage_sel()
303 if (lp8788_read_byte(buck->lp, addr, &val)) in lp8788_buck_enable_time()
329 return lp8788_update_bits(buck->lp, LP8788_BUCK_PWM, mask, val); in lp8788_buck_set_mode()
339 ret = lp8788_read_byte(buck->lp, LP8788_BUCK_PWM, &val); in lp8788_buck_get_mode()
428 struct lp8788_platform_data *pdata = buck->lp->pdata; in lp8788_dvs_gpio_request()
[all …]
Dlp8788-ldo.c115 struct lp8788 *lp; member
163 if (lp8788_read_byte(ldo->lp, addr, &val)) in lp8788_ldo_enable_time()
469 struct lp8788 *lp = ldo->lp; in lp8788_config_ldo_enable_mode() local
519 return lp8788_update_bits(lp, LP8788_EN_SEL, en_mask[enable_id], 0); in lp8788_config_ldo_enable_mode()
524 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_dldo_probe() local
535 ldo->lp = lp; in lp8788_dldo_probe()
544 cfg.init_data = lp->pdata ? lp->pdata->dldo_data[id] : NULL; in lp8788_dldo_probe()
546 cfg.regmap = lp->regmap; in lp8788_dldo_probe()
571 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_aldo_probe() local
582 ldo->lp = lp; in lp8788_aldo_probe()
[all …]
/linux-4.19.296/drivers/char/
Dnwbutton.c58 int lp = 0; in button_add_callback() local
66 for (; (button_callback_list [lp].callback); lp++); in button_add_callback()
67 button_callback_list [lp].callback = callback; in button_add_callback()
68 button_callback_list [lp].count = count; in button_add_callback()
86 int lp = 31; in button_del_callback() local
90 while (lp >= 0) { in button_del_callback()
91 if ((button_callback_list [lp].callback) == callback) { in button_del_callback()
92 button_callback_list [lp].callback = NULL; in button_del_callback()
93 button_callback_list [lp].count = 0; in button_del_callback()
97 lp--; in button_del_callback()
[all …]
/linux-4.19.296/drivers/rtc/
Drtc-lp8788.c60 struct lp8788 *lp; member
107 static void lp8788_rtc_unlock(struct lp8788 *lp) in lp8788_rtc_unlock() argument
109 lp8788_write_byte(lp, LP8788_RTC_UNLOCK, RTC_UNLOCK); in lp8788_rtc_unlock()
110 lp8788_write_byte(lp, LP8788_RTC_UNLOCK, RTC_LATCH); in lp8788_rtc_unlock()
116 struct lp8788 *lp = rtc->lp; in lp8788_rtc_read_time() local
120 lp8788_rtc_unlock(lp); in lp8788_rtc_read_time()
122 ret = lp8788_read_multi_bytes(lp, LP8788_RTC_SEC, data, LPTIME_MAX); in lp8788_rtc_read_time()
140 struct lp8788 *lp = rtc->lp; in lp8788_rtc_set_time() local
146 dev_err(lp->dev, "invalid year: %d\n", year); in lp8788_rtc_set_time()
159 ret = lp8788_write_byte(lp, LP8788_RTC_SEC + i, data[i]); in lp8788_rtc_set_time()
[all …]
/linux-4.19.296/fs/ubifs/
Dfind.c237 const struct ubifs_lprops *lp = NULL, *idx_lp = NULL; in ubifs_find_dirty_leb() local
264 lp = ubifs_fast_find_empty(c); in ubifs_find_dirty_leb()
265 if (lp) in ubifs_find_dirty_leb()
269 lp = ubifs_fast_find_freeable(c); in ubifs_find_dirty_leb()
270 if (lp) in ubifs_find_dirty_leb()
305 lp = heap->arr[0]; in ubifs_find_dirty_leb()
306 if (lp->dirty + lp->free < min_space) in ubifs_find_dirty_leb()
307 lp = NULL; in ubifs_find_dirty_leb()
311 if (idx_lp && lp) { in ubifs_find_dirty_leb()
312 if (idx_lp->free + idx_lp->dirty >= lp->free + lp->dirty) in ubifs_find_dirty_leb()
[all …]
Dgc.c465 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp) in ubifs_garbage_collect_leb() argument
470 int err = 0, lnum = lp->lnum; in ubifs_garbage_collect_leb()
477 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb()
479 dbg_gc("LEB %d is free, return it", lp->lnum); in ubifs_garbage_collect_leb()
480 ubifs_assert(c, !(lp->flags & LPROPS_INDEX)); in ubifs_garbage_collect_leb()
482 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb()
491 err = ubifs_change_one_lp(c, lp->lnum, c->leb_size, in ubifs_garbage_collect_leb()
496 err = ubifs_leb_unmap(c, lp->lnum); in ubifs_garbage_collect_leb()
523 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
559 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb()
[all …]
Dlprops.c197 struct ubifs_lprops *lp; in add_to_lpt_heap() local
199 lp = heap->arr[cpos]; in add_to_lpt_heap()
200 lp->flags &= ~LPROPS_CAT_MASK; in add_to_lpt_heap()
201 lp->flags |= LPROPS_UNCAT; in add_to_lpt_heap()
202 list_add(&lp->list, &c->uncat_list); in add_to_lpt_heap()
533 const struct ubifs_lprops *lp, in ubifs_change_lp() argument
541 struct ubifs_lprops *lprops = (struct ubifs_lprops *)lp; in ubifs_change_lp()
665 const struct ubifs_lprops *lp; in ubifs_change_one_lp() local
669 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_change_one_lp()
670 if (IS_ERR(lp)) { in ubifs_change_one_lp()
[all …]
Dreplay.c99 const struct ubifs_lprops *lp; in set_bud_lprops() local
104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops()
105 if (IS_ERR(lp)) { in set_bud_lprops()
106 err = PTR_ERR(lp); in set_bud_lprops()
110 dirty = lp->dirty; in set_bud_lprops()
111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
132 lp->free, lp->dirty); in set_bud_lprops()
134 lp->free, lp->dirty); in set_bud_lprops()
135 dirty -= c->leb_size - lp->free; in set_bud_lprops()
145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
[all …]
Ddebug.c649 void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) in ubifs_dump_lprop() argument
655 spc = lp->free + lp->dirty; in ubifs_dump_lprop()
661 if (lp->flags & LPROPS_INDEX) in ubifs_dump_lprop()
663 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop()
664 lp->flags); in ubifs_dump_lprop()
667 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop()
668 dark, dead, (int)(spc / UBIFS_MAX_NODE_SZ), lp->flags); in ubifs_dump_lprop()
670 if (lp->flags & LPROPS_TAKEN) { in ubifs_dump_lprop()
671 if (lp->flags & LPROPS_INDEX) in ubifs_dump_lprop()
678 if (lp->flags & LPROPS_INDEX) { in ubifs_dump_lprop()
[all …]
/linux-4.19.296/drivers/char/agp/
Di460-agp.c366 static int i460_alloc_large_page (struct lp_desc *lp) in i460_alloc_large_page() argument
371 lp->page = alloc_pages(GFP_KERNEL, order); in i460_alloc_large_page()
372 if (!lp->page) { in i460_alloc_large_page()
378 lp->alloced_map = kzalloc(map_size, GFP_KERNEL); in i460_alloc_large_page()
379 if (!lp->alloced_map) { in i460_alloc_large_page()
380 __free_pages(lp->page, order); in i460_alloc_large_page()
385 lp->paddr = page_to_phys(lp->page); in i460_alloc_large_page()
386 lp->refcount = 0; in i460_alloc_large_page()
391 static void i460_free_large_page (struct lp_desc *lp) in i460_free_large_page() argument
393 kfree(lp->alloced_map); in i460_free_large_page()
[all …]
/linux-4.19.296/fs/xfs/scrub/
Dbitmap.c108 struct list_head *lp; in xfs_bitmap_disunion() local
134 lp = bitmap->list.next; in xfs_bitmap_disunion()
135 while (lp != &bitmap->list) { in xfs_bitmap_disunion()
136 br = list_entry(lp, struct xfs_bitmap_range, list); in xfs_bitmap_disunion()
148 lp = lp->next; in xfs_bitmap_disunion()
176 lp = lp->next; in xfs_bitmap_disunion()
180 lp = lp->next; in xfs_bitmap_disunion()
200 lp = lp->next; in xfs_bitmap_disunion()
/linux-4.19.296/include/linux/mfd/
Dlp8788.h209 void (*charger_event) (struct lp8788 *lp,
286 int (*init_func) (struct lp8788 *lp);
328 int lp8788_irq_init(struct lp8788 *lp, int chip_irq);
329 void lp8788_irq_exit(struct lp8788 *lp);
330 int lp8788_read_byte(struct lp8788 *lp, u8 reg, u8 *data);
331 int lp8788_read_multi_bytes(struct lp8788 *lp, u8 reg, u8 *data, size_t count);
332 int lp8788_write_byte(struct lp8788 *lp, u8 reg, u8 data);
333 int lp8788_update_bits(struct lp8788 *lp, u8 reg, u8 mask, u8 data);
/linux-4.19.296/fs/jfs/
Djfs_logmgr.c362 struct logpage *lp; /* dst log page */ in lmWriteRecord() local
381 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord()
432 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord()
445 dst = (caddr_t) lp + dstoffset; in lmWriteRecord()
457 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord()
468 lvd = (struct lvd *) ((caddr_t) lp + dstoffset); in lmWriteRecord()
493 dst = (caddr_t) lp + dstoffset; in lmWriteRecord()
553 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord()
575 struct logpage *lp; in lmNextPage() local
585 lp = (struct logpage *) bp->l_ldata; in lmNextPage()
[all …]
/linux-4.19.296/drivers/iio/adc/
Dlp8788_adc.c31 struct lp8788 *lp; member
64 ret = lp8788_write_byte(adc->lp, LP8788_ADC_CONF, data); in lp8788_get_adc_result()
73 ret = lp8788_read_byte(adc->lp, LP8788_ADC_DONE, &data); in lp8788_get_adc_result()
82 ret = lp8788_read_multi_bytes(adc->lp, LP8788_ADC_RAW, rawdata, size); in lp8788_get_adc_result()
191 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_adc_probe() local
201 adc->lp = lp; in lp8788_adc_probe()
205 ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc); in lp8788_adc_probe()
/linux-4.19.296/fs/nfsd/
Dnfs4layouts.c406 struct nfs4_layout *lp, *new = NULL; in nfsd4_insert_layout() local
414 list_for_each_entry(lp, &ls->ls_layouts, lo_perstate) { in nfsd4_insert_layout()
415 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout()
424 memcpy(&new->lo_seg, seg, sizeof(lp->lo_seg)); in nfsd4_insert_layout()
432 list_for_each_entry(lp, &ls->ls_layouts, lo_perstate) { in nfsd4_insert_layout()
433 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout()
454 struct nfs4_layout *lp = list_first_entry(reaplist, in nfsd4_free_layouts() local
457 list_del(&lp->lo_perstate); in nfsd4_free_layouts()
458 nfs4_put_stid(&lp->lo_state->ls_stid); in nfsd4_free_layouts()
459 kmem_cache_free(nfs4_layout_cache, lp); in nfsd4_free_layouts()
[all …]
/linux-4.19.296/fs/xfs/
Dxfs_attr_inactive.c118 struct xfs_attr_inactive_list *lp; in xfs_attr3_leaf_inactive() local
160 lp = list; in xfs_attr3_leaf_inactive()
167 lp->valueblk = be32_to_cpu(name_rmt->valueblk); in xfs_attr3_leaf_inactive()
168 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
170 lp++; in xfs_attr3_leaf_inactive()
180 for (lp = list, i = 0; i < count; i++, lp++) { in xfs_attr3_leaf_inactive()
182 lp->valueblk, lp->valuelen); in xfs_attr3_leaf_inactive()
/linux-4.19.296/drivers/clk/
Dclk-si514.c127 u8 lp; in si514_set_muldiv() local
135 lp = 0x22; in si514_set_muldiv()
139 lp = 0x23; in si514_set_muldiv()
143 lp = 0x33; in si514_set_muldiv()
147 lp = 0x34; in si514_set_muldiv()
149 lp = 0x44; in si514_set_muldiv()
151 err = regmap_write(data->regmap, SI514_REG_LP, lp); in si514_set_muldiv()
/linux-4.19.296/drivers/clk/pxa/
Dclk-pxa.c51 struct clk_fixed_factor lp; member
66 fix = &pclk->lp; in cken_recalc_rate()
109 pxa_clk->lp = clks[i].lp; in clk_pxa_cken_init()
/linux-4.19.296/fs/gfs2/
Ddir.c919 __be64 *lp; in dir_make_exhash() local
976 lp = (__be64 *)(dibh->b_data + sizeof(struct gfs2_dinode)); in dir_make_exhash()
978 for (x = sdp->sd_hash_ptrs; x--; lp++) in dir_make_exhash()
979 *lp = cpu_to_be64(bn); in dir_make_exhash()
1012 __be64 *lp; in dir_split_leaf() local
1058 lp = kmalloc_array(half_len, sizeof(__be64), GFP_NOFS); in dir_split_leaf()
1059 if (!lp) { in dir_split_leaf()
1066 lp[x] = cpu_to_be64(bn); in dir_split_leaf()
1070 error = gfs2_dir_write_data(dip, (char *)lp, start * sizeof(u64), in dir_split_leaf()
1078 kfree(lp); in dir_split_leaf()
[all …]

123