/drivers/infiniband/hw/cxgb4/ |
H A D | provider.c | 61 static struct ib_ah *c4iw_ah_create(struct ib_pd *pd, argument 183 static int c4iw_deallocate_pd(struct ib_pd *pd) argument 188 php = to_c4iw_pd(pd); 190 PDBG("%s ibpd %p pdid 0x%x\n", __func__, pd, php->pdid);
|
H A D | mem.c | 356 struct ib_pd *pd, struct ib_phys_buf *buffer_list, 369 PDBG("%s ib_mr %p ib_pd %p\n", __func__, mr, pd); 377 php = to_c4iw_pd(mr->pd); 386 php = to_c4iw_pd(pd); 420 struct ib_mr *c4iw_register_phys_mem(struct ib_pd *pd, argument 433 PDBG("%s ib_pd %p\n", __func__, pd); 434 php = to_c4iw_pd(pd); 498 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc) argument 506 PDBG("%s ib_pd %p\n", __func__, pd); 507 php = to_c4iw_pd(pd); 355 c4iw_reregister_phys_mem(struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument 542 c4iw_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument 646 c4iw_alloc_mw(struct ib_pd *pd) argument 696 c4iw_alloc_fast_reg_mr(struct ib_pd *pd, int pbl_depth) argument [all...] |
/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 96 struct mthca_pd *pd, 103 context->state_pd = cpu_to_be32(pd->pd_num); 106 if (pd->ibpd.uobject) 108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); 114 struct mthca_pd *pd, 132 if (pd->ibpd.uobject) 134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); 137 context->eq_pd = cpu_to_be32(MTHCA_EQ_ASYNC << 24 | pd->pd_num); 147 static int mthca_alloc_srq_buf(struct mthca_dev *dev, struct mthca_pd *pd, argument 155 if (pd 95 mthca_tavor_init_srq_context(struct mthca_dev *dev, struct mthca_pd *pd, struct mthca_srq *srq, struct mthca_tavor_srq_context *context) argument 113 mthca_arbel_init_srq_context(struct mthca_dev *dev, struct mthca_pd *pd, struct mthca_srq *srq, struct mthca_arbel_srq_context *context) argument 199 mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd, struct ib_srq_attr *attr, struct mthca_srq *srq) argument [all...] |
H A D | mthca_mr.c | 54 __be32 pd; member in struct:mthca_mpt_entry 429 int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift, argument 468 mpt_entry->pd = cpu_to_be32(pd); 512 int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd, argument 516 return mthca_mr_alloc(dev, pd, 12, 0, ~0ULL, access, mr); 519 int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, argument 536 err = mthca_mr_alloc(dev, pd, buffer_size_shift, iova, 567 int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd, argument 638 mpt_entry->pd [all...] |
H A D | mthca_provider.c | 375 struct mthca_pd *pd; local 378 pd = kmalloc(sizeof *pd, GFP_KERNEL); 379 if (!pd) 382 err = mthca_pd_alloc(to_mdev(ibdev), !context, pd); 384 kfree(pd); 389 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { 390 mthca_pd_free(to_mdev(ibdev), pd); local 391 kfree(pd); 396 return &pd 399 mthca_dealloc_pd(struct ib_pd *pd) argument 407 mthca_ah_create(struct ib_pd *pd, struct ib_ah_attr *ah_attr) argument 434 mthca_create_srq(struct ib_pd *pd, struct ib_srq_init_attr *init_attr, struct ib_udata *udata) argument 510 mthca_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *init_attr, struct ib_udata *udata) argument 869 mthca_get_dma_mr(struct ib_pd *pd, int acc) argument 892 mthca_reg_phys_mr(struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument 975 mthca_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument 1091 mthca_alloc_fmr(struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr) argument [all...] |
/drivers/net/wireless/ath/ath5k/ |
H A D | eeprom.c | 696 struct ath5k_pdgain_info *pd = local 699 kfree(pd->pd_step); 700 kfree(pd->pd_pwr); 717 struct ath5k_pdgain_info *pd; local 749 pd = &chinfo[pier].pd_curves[idx]; 751 pd->pd_points = AR5K_EEPROM_N_PWR_POINTS_5111; 753 /* Allocate pd points for this curve */ 754 pd->pd_step = kcalloc(AR5K_EEPROM_N_PWR_POINTS_5111, 756 if (!pd->pd_step) 759 pd 926 struct ath5k_pdgain_info *pd = local 1218 struct ath5k_pdgain_info *pd = local [all...] |
/drivers/scsi/aic94xx/ |
H A D | aic94xx_scb.c | 718 static void set_speed_mask(u8 *speed_mask, struct asd_phy_desc *pd) argument 724 switch (pd->max_sas_lrate) { 734 switch (pd->min_sas_lrate) { 745 switch (pd->max_sata_lrate) { 753 switch (pd->min_sata_lrate) { 902 struct asd_phy_desc *pd = asd_ha->phys[phy->id].phy_desc; local 914 pd->min_sas_lrate = rates->minimum_linkrate; 915 pd->min_sata_lrate = rates->minimum_linkrate; 918 pd->max_sas_lrate = rates->maximum_linkrate; 919 pd [all...] |
/drivers/staging/ozwpan/ |
H A D | ozcdev.c | 51 static struct oz_serial_ctx *oz_cdev_claim_ctx(struct oz_pd *pd) argument 54 spin_lock_bh(&pd->app_lock[OZ_APPID_SERIAL-1]); 55 ctx = (struct oz_serial_ctx *)pd->app_ctx[OZ_APPID_SERIAL-1]; 58 spin_unlock_bh(&pd->app_lock[OZ_APPID_SERIAL-1]); 100 struct oz_pd *pd; local 104 pd = g_cdev.active_pd; 105 if (pd) 106 oz_pd_get(pd); 108 if (pd == 0) 110 ctx = oz_cdev_claim_ctx(pd); 149 struct oz_pd *pd; local 206 struct oz_pd *pd; local 393 oz_cdev_start(struct oz_pd *pd, int resume) argument 430 oz_cdev_stop(struct oz_pd *pd, int pause) argument 459 oz_cdev_rx(struct oz_pd *pd, struct oz_elt *elt) argument 519 oz_cdev_heartbeat(struct oz_pd *pd) argument [all...] |
H A D | ozpd.c | 32 static struct oz_tx_frame *oz_tx_frame_alloc(struct oz_pd *pd); 33 static void oz_tx_frame_free(struct oz_pd *pd, struct oz_tx_frame *f); 34 static struct sk_buff *oz_build_frame(struct oz_pd *pd, struct oz_tx_frame *f); 35 static int oz_send_isoc_frame(struct oz_pd *pd); 36 static void oz_retire_frame(struct oz_pd *pd, struct oz_tx_frame *f); 38 static int oz_send_next_queued_frame(struct oz_pd *pd, int *more_data); 42 static int oz_def_app_start(struct oz_pd *pd, int resume); 43 static void oz_def_app_stop(struct oz_pd *pd, int pause); 44 static void oz_def_app_rx(struct oz_pd *pd, struct oz_elt *elt); 104 static int oz_def_app_start(struct oz_pd *pd, in argument 111 oz_def_app_stop(struct oz_pd *pd, int pause) argument 117 oz_def_app_rx(struct oz_pd *pd, struct oz_elt *elt) argument 123 oz_pd_set_state(struct oz_pd *pd, unsigned state) argument 147 oz_pd_get(struct oz_pd *pd) argument 154 oz_pd_put(struct oz_pd *pd) argument 164 struct oz_pd *pd = kzalloc(sizeof(struct oz_pd), GFP_ATOMIC); local 190 oz_pd_destroy(struct oz_pd *pd) argument 236 oz_services_start(struct oz_pd *pd, u16 apps, int resume) argument 261 oz_services_stop(struct oz_pd *pd, u16 apps, int pause) argument 282 oz_pd_heartbeat(struct oz_pd *pd, u16 apps) argument 303 oz_pd_stop(struct oz_pd *pd) argument 326 oz_pd_sleep(struct oz_pd *pd) argument 356 oz_tx_frame_alloc(struct oz_pd *pd) argument 378 oz_tx_frame_free(struct oz_pd *pd, struct oz_tx_frame *f) argument 394 oz_prepare_frame(struct oz_pd *pd, int empty) argument 423 oz_build_frame(struct oz_pd *pd, struct oz_tx_frame *f) argument 467 oz_retire_frame(struct oz_pd *pd, struct oz_tx_frame *f) argument 489 oz_send_next_queued_frame(struct oz_pd *pd, int *more_data) argument 521 oz_send_queued_frames(struct oz_pd *pd, int backlog) argument 542 oz_send_isoc_frame(struct oz_pd *pd) argument 591 oz_retire_tx_frames(struct oz_pd *pd, u8 lpn) argument 631 pd_stream_find(struct oz_pd *pd, u8 ep_num) argument 645 oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num) argument 674 oz_isoc_stream_delete(struct oz_pd *pd, u8 ep_num) argument 698 oz_send_isoc_unit(struct oz_pd *pd, u8 ep_num, u8 *data, int len) argument 801 oz_handle_app_elt(struct oz_pd *pd, u8 app_id, struct oz_elt *elt) argument 812 oz_pd_indicate_farewells(struct oz_pd *pd) argument [all...] |
/drivers/video/backlight/ |
H A D | ams369fg06.c | 322 struct lcd_platform_data *pd = NULL; local 325 pd = lcd->lcd_pd; 326 if (!pd) { 337 if (!pd->power_on) { 341 pd->power_on(lcd->ld, 1); 342 mdelay(pd->power_on_delay); 345 if (!pd->reset) { 349 pd->reset(lcd->ld); 350 mdelay(pd->reset_delay); 378 struct lcd_platform_data *pd local [all...] |
H A D | s6e63m0.c | 506 struct lcd_platform_data *pd = NULL; local 509 pd = lcd->lcd_pd; 510 if (!pd) { 521 if (!pd->power_on) { 525 pd->power_on(lcd->ld, 1); 526 mdelay(pd->power_on_delay); 529 if (!pd->reset) { 533 pd->reset(lcd->ld); 534 mdelay(pd->reset_delay); 562 struct lcd_platform_data *pd local [all...] |
/drivers/video/ |
H A D | sh7760fb.c | 37 struct sh7760fb_platdata *pd; /* display information */ member in struct:sh7760fb_par 76 struct sh7760fb_platdata *pd = par->pd; local 91 if (pd->blank) 92 pd->blank(blank); 176 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, NULL); 202 struct fb_videomode *vm = par->pd->def_mode; 209 par->rot = par->pd->rotate; 228 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, &gray); 237 lddfr = par->pd [all...] |
/drivers/base/ |
H A D | platform.c | 993 struct platform_device *pd; local 995 list_for_each_entry(pd, &early_platform_device_list, dev.devres_head) 996 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) 997 if (pd->id == id) 998 return pd; 1011 struct platform_device *pd; local 1013 list_for_each_entry(pd, &early_platform_device_list, dev.devres_head) 1014 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) 1015 if (pd->id >= id) 1148 struct platform_device *pd, *pd local [all...] |
/drivers/crypto/amcc/ |
H A D | crypto4xx_core.c | 537 struct ce_pd *pd, 625 struct ce_pd *pd) 636 crypto4xx_copy_pkt_to_dst(dev, pd, pd_uinfo, ablk_req->nbytes, 671 struct ce_pd *pd; local 674 pd = dev->pdr + sizeof(struct ce_pd)*idx; 678 return crypto4xx_ablkcipher_done(dev, pd_uinfo, pd); 731 u32 pd_entry, struct ce_pd *pd, 736 pd->pd_ctl.w = 0; 737 pd->pd_ctl_len.w = 0; 789 struct ce_pd *pd; local 536 crypto4xx_copy_pkt_to_dst(struct crypto4xx_device *dev, struct ce_pd *pd, struct pd_uinfo *pd_uinfo, u32 nbytes, struct scatterlist *dst) argument 623 crypto4xx_ablkcipher_done(struct crypto4xx_device *dev, struct pd_uinfo *pd_uinfo, struct ce_pd *pd) argument 730 crypto4xx_return_pd(struct crypto4xx_device *dev, u32 pd_entry, struct ce_pd *pd, struct pd_uinfo *pd_uinfo) argument 1084 struct ce_pd *pd; local [all...] |
/drivers/gpu/drm/gma500/ |
H A D | mmu.c | 51 /* protects driver- and pd structures. Always take in read mode 76 struct psb_mmu_pd *pd; member in struct:psb_mmu_pt 171 void psb_mmu_set_pd_context(struct psb_mmu_pd *pd, int hw_context) argument 173 /*ttm_tt_cache_flush(&pd->p, 1);*/ 174 psb_pages_clflush(pd->driver, &pd->p, 1); 175 down_write(&pd->driver->sem); 177 psb_mmu_flush_pd_locked(pd->driver, 1); 178 pd->hw_context = hw_context; 179 up_write(&pd 208 struct psb_mmu_pd *pd = kmalloc(sizeof(*pd), GFP_KERNEL); local 279 psb_mmu_free_pagedir(struct psb_mmu_pd *pd) argument 306 psb_mmu_alloc_pt(struct psb_mmu_pd *pd) argument 354 psb_mmu_pt_alloc_map_lock(struct psb_mmu_pd *pd, unsigned long addr) argument 394 psb_mmu_pt_map_lock(struct psb_mmu_pd *pd, unsigned long addr) argument 413 struct psb_mmu_pd *pd = pt->pd; local 448 psb_mmu_mirror_gtt(struct psb_mmu_pd *pd, uint32_t mmu_offset, uint32_t gtt_start, uint32_t gtt_pages) argument 482 struct psb_mmu_pd *pd; local 548 psb_mmu_flush_ptes(struct psb_mmu_pd *pd, unsigned long address, uint32_t num_pages, uint32_t desired_tile_stride, uint32_t hw_tile_stride) argument 602 psb_mmu_remove_pfn_sequence(struct psb_mmu_pd *pd, unsigned long address, uint32_t num_pages) argument 641 psb_mmu_remove_pages(struct psb_mmu_pd *pd, unsigned long address, uint32_t num_pages, uint32_t desired_tile_stride, uint32_t hw_tile_stride) argument 697 psb_mmu_insert_pfn_sequence(struct psb_mmu_pd *pd, uint32_t start_pfn, unsigned long address, uint32_t num_pages, int type) argument 742 psb_mmu_insert_pages(struct psb_mmu_pd *pd, struct page **pages, unsigned long address, uint32_t num_pages, uint32_t desired_tile_stride, uint32_t hw_tile_stride, int type) argument 810 psb_mmu_virtual_to_pfn(struct psb_mmu_pd *pd, uint32_t virtual, unsigned long *pfn) argument [all...] |
/drivers/i2c/busses/ |
H A D | i2c-mv64xxx.c | 491 mv64xxx_i2c_map_regs(struct platform_device *pd, argument 495 struct resource *r = platform_get_resource(pd, IORESOURCE_MEM, 0); 525 mv64xxx_i2c_probe(struct platform_device *pd) argument 528 struct mv64xxx_i2c_pdata *pdata = pd->dev.platform_data; 531 if ((pd->id != 0) || !pdata) 538 if (mv64xxx_i2c_map_regs(pd, drv_data)) { 551 drv_data->irq = platform_get_irq(pd, 0); 556 drv_data->adapter.dev.parent = &pd->dev; 561 drv_data->adapter.nr = pd->id; 562 platform_set_drvdata(pd, drv_dat [all...] |
H A D | i2c-sh7760.c | 435 struct sh7760_i2c_platdata *pd; local 440 pd = pdev->dev.platform_data; 441 if (!pd) { 498 ret = calc_CCR(pd->speed_khz * 1000); 501 pd->speed_khz); 522 pd->speed_khz, res->start, id->irq);
|
H A D | i2c-sh_mobile.c | 170 static void iic_wr(struct sh_mobile_i2c_data *pd, int offs, unsigned char data) argument 173 data |= pd->icic; 175 iowrite8(data, pd->reg + offs); 178 static unsigned char iic_rd(struct sh_mobile_i2c_data *pd, int offs) argument 180 return ioread8(pd->reg + offs); 183 static void iic_set_clr(struct sh_mobile_i2c_data *pd, int offs, argument 186 iic_wr(pd, offs, (iic_rd(pd, offs) | set) & ~clr); 189 static void activate_ch(struct sh_mobile_i2c_data *pd) argument 197 pm_runtime_get_sync(pd 252 deactivate_ch(struct sh_mobile_i2c_data *pd) argument 266 i2c_op(struct sh_mobile_i2c_data *pd, enum sh_mobile_i2c_op op, unsigned char data) argument 316 sh_mobile_i2c_is_first_byte(struct sh_mobile_i2c_data *pd) argument 324 sh_mobile_i2c_is_last_byte(struct sh_mobile_i2c_data *pd) argument 332 sh_mobile_i2c_get_data(struct sh_mobile_i2c_data *pd, unsigned char *buf) argument 345 sh_mobile_i2c_isr_tx(struct sh_mobile_i2c_data *pd) argument 365 sh_mobile_i2c_isr_rx(struct sh_mobile_i2c_data *pd) argument 408 struct sh_mobile_i2c_data *pd = platform_get_drvdata(dev); local 439 start_ch(struct sh_mobile_i2c_data *pd, struct i2c_msg *usr_msg) argument 469 struct sh_mobile_i2c_data *pd = i2c_get_adapdata(adapter); local 579 struct sh_mobile_i2c_data *pd; local 685 struct sh_mobile_i2c_data *pd = platform_get_drvdata(dev); local [all...] |
/drivers/infiniband/core/ |
H A D | mad_priv.h | 205 struct ib_pd *pd; member in struct:ib_mad_port_private
|
H A D | uverbs_main.c | 266 struct ib_pd *pd = uobj->object; local 269 ib_dealloc_pd(pd);
|
H A D | verbs.c | 144 struct ib_pd *pd; local 146 pd = device->alloc_pd(device, NULL, NULL); 148 if (!IS_ERR(pd)) { 149 pd->device = device; 150 pd->uobject = NULL; 151 atomic_set(&pd->usecnt, 0); 154 return pd; 158 int ib_dealloc_pd(struct ib_pd *pd) argument 160 if (atomic_read(&pd->usecnt)) 163 return pd 169 ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) argument 218 ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc, struct ib_grh *grh, u8 port_num) argument 250 struct ib_pd *pd; local 264 ib_create_srq(struct ib_pd *pd, struct ib_srq_init_attr *srq_init_attr) argument 315 struct ib_pd *pd; local 409 ib_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr) argument 872 struct ib_pd *pd; local 953 ib_get_dma_mr(struct ib_pd *pd, int mr_access_flags) argument 971 ib_reg_phys_mr(struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 *iova_start) argument 997 ib_rereg_phys_mr(struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 *iova_start) argument 1038 struct ib_pd *pd; local 1053 ib_alloc_fast_reg_mr(struct ib_pd *pd, int max_page_list_len) argument 1101 ib_alloc_mw(struct ib_pd *pd) argument 1122 struct ib_pd *pd; local 1136 ib_alloc_fmr(struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr) argument 1170 struct ib_pd *pd; local [all...] |
/drivers/infiniband/hw/ipath/ |
H A D | ipath_intr.c | 594 struct ipath_portdata *pd = dd->ipath_pd[i]; local 602 if (pd->port_head != ipath_get_hdrqtail(pd)) 608 if (!pd || !pd->port_cnt) 615 tl = ipath_get_rcvhdrtail(pd); 616 if (tl == pd->port_lastrcvhdrqtail) 621 pd->port_lastrcvhdrqtail = tl; 622 pd->port_hdrqfull++; 625 wake_up_interruptible(&pd 815 struct ipath_portdata *pd = dd->ipath_pd[0]; local 1040 struct ipath_portdata *pd = dd->ipath_pd[i]; local [all...] |
H A D | ipath_mad.c | 353 struct ipath_portdata *pd = dd->ipath_pd[0]; local 355 memcpy(pkeys, pd->port_pkeys, sizeof(pd->port_pkeys)); 731 struct ipath_portdata *pd; local 736 pd = dd->ipath_pd[0]; 738 for (i = 0; i < ARRAY_SIZE(pd->port_pkeys); i++) { 740 u16 okey = pd->port_pkeys[i]; 758 pd->port_pkeys[i] = key;
|
/drivers/infiniband/hw/mlx4/ |
H A D | main.c | 588 struct mlx4_ib_pd *pd; local 591 pd = kmalloc(sizeof *pd, GFP_KERNEL); 592 if (!pd) 595 err = mlx4_pd_alloc(to_mdev(ibdev)->dev, &pd->pdn); 597 kfree(pd); 602 if (ib_copy_to_udata(udata, &pd->pdn, sizeof (__u32))) { 603 mlx4_pd_free(to_mdev(ibdev)->dev, pd->pdn); 604 kfree(pd); 608 return &pd 611 mlx4_ib_dealloc_pd(struct ib_pd *pd) argument [all...] |
/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_ib.c | 57 struct ib_pd *pd, struct ib_ah_attr *attr) 70 vah = ib_create_ah(pd, attr); 56 ipoib_create_ah(struct net_device *dev, struct ib_pd *pd, struct ib_ah_attr *attr) argument
|