/drivers/net/wireless/ath/carl9170/ |
H A D | tx.c | 262 static void carl9170_tx_release(struct kref *ref) argument 269 arinfo = container_of(ref, struct carl9170_tx_info, ref); 334 kref_get(&arinfo->ref); 342 return kref_put(&arinfo->ref, carl9170_tx_release); 1071 kref_init(&arinfo->ref); 1370 * increase ref count to "2".
|
/drivers/s390/scsi/ |
H A D | zfcp_def.h | 145 struct kref ref; member in struct:zfcp_adapter
|
/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_io.c | 551 void bnx2fc_cmd_release(struct kref *ref) argument 553 struct bnx2fc_cmd *io_req = container_of(ref,
|
/drivers/scsi/ |
H A D | xen-scsifront.c | 338 int err, ref, ref_cnt = 0; local 384 ref = gnttab_claim_grant_reference(&gref_head); 385 BUG_ON(ref == -ENOSPC); 388 gnttab_grant_foreign_access_ref(ref, 390 shadow->gref[ref_cnt] = ref; 391 ring_req->seg[ref_cnt].gref = ref; 418 ref = gnttab_claim_grant_reference(&gref_head); 419 BUG_ON(ref == -ENOSPC); 422 gnttab_grant_foreign_access_ref(ref, 425 shadow->gref[ref_cnt] = ref; [all...] |
/drivers/staging/lustre/lnet/lnet/ |
H A D | api-ni.c | 938 lnet_ni_decref_locked(ni, 0); /* drop ln_nis' ref */ 974 int *ref; local 980 cfs_percpt_for_each(ref, j, ni->ni_refs) { 981 if (*ref == 0)
|
/drivers/staging/media/lirc/ |
H A D | lirc_zilog.c | 70 struct kref ref; member in struct:IR_rx 86 struct kref ref; member in struct:IR_tx 99 struct kref ref; member in struct:IR 177 kref_get(&ir->ref); 180 kref_get(&ir->ref); 186 static void release_ir_device(struct kref *ref) argument 188 struct IR *ir = container_of(ref, struct IR, ref); 213 return kref_put(&ir->ref, release_ir_device); 216 released = kref_put(&ir->ref, release_ir_devic 246 release_ir_rx(struct kref *ref) argument 297 release_ir_tx(struct kref *ref) argument [all...] |
/drivers/thermal/ |
H A D | thermal_core.c | 1655 * thermal_zone_get_zone_by_name() - search for a zone and returns its ref 1666 struct thermal_zone_device *pos = NULL, *ref = ERR_PTR(-EINVAL); local 1676 ref = pos; 1682 ref = ERR_PTR(-ENODEV); 1685 ref = ERR_PTR(-EEXIST); 1688 return ref;
|
/drivers/xen/ |
H A D | grant-table.c | 96 void (*update_entry)(grant_ref_t ref, domid_t domid, 106 int (*end_foreign_access_ref)(grant_ref_t ref, int readonly); 114 unsigned long (*end_foreign_transfer_ref)(grant_ref_t ref); 121 int (*query_foreign_access)(grant_ref_t ref); 146 int ref, rc = 0; local 157 ref = head = gnttab_free_head; 166 return ref; 195 static void put_free_entry(grant_ref_t ref) argument 199 gnttab_entry(ref) = gnttab_free_head; 200 gnttab_free_head = ref; 217 gnttab_update_entry_v1(grant_ref_t ref, domid_t domid, unsigned long frame, unsigned flags) argument 229 gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, unsigned long frame, int readonly) argument 240 int ref; local 252 gnttab_query_foreign_access_v1(grant_ref_t ref) argument 257 gnttab_query_foreign_access(grant_ref_t ref) argument 263 gnttab_end_foreign_access_ref_v1(grant_ref_t ref, int readonly) argument 279 _gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) argument 284 gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) argument 295 grant_ref_t ref; member in struct:deferred_entry 349 gnttab_add_deferred(grant_ref_t ref, bool readonly, struct page *page) argument 375 gnttab_end_foreign_access(grant_ref_t ref, int readonly, unsigned long page) argument 390 int ref; local 401 gnttab_grant_foreign_transfer_ref(grant_ref_t ref, domid_t domid, unsigned long pfn) argument 408 gnttab_end_foreign_transfer_ref_v1(grant_ref_t ref) argument 439 gnttab_end_foreign_transfer_ref(grant_ref_t ref) argument 445 gnttab_end_foreign_transfer(grant_ref_t ref) argument 453 gnttab_free_grant_reference(grant_ref_t ref) argument 461 grant_ref_t ref; local [all...] |
/drivers/base/ |
H A D | firmware_class.c | 138 struct kref ref; member in struct:firmware_buf 166 #define to_fwbuf(d) container_of(d, struct firmware_buf, ref) 189 kref_init(&buf->ref); 222 kref_get(&tmp->ref); 237 static void __fw_free_buf(struct kref *ref) 240 struct firmware_buf *buf = to_fwbuf(ref); 267 if (!kref_put(&buf->ref, __fw_free_buf)) 1087 kref_get(&buf->ref);
|
/drivers/block/ |
H A D | ataflop.c | 222 int ref; member in struct:atari_floppy_struct 1565 if (floppy->ref != 1 && floppy->ref != -1) 1672 if (floppy->ref != 1 && floppy->ref != -1) 1847 if (p->ref && p->type != type) 1850 if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) 1854 p->ref = -1; 1856 p->ref [all...] |
H A D | xen-blkfront.c | 395 int i, ref, n; local 515 ref = gnt_list_entry->gref; 547 .gref = ref, 554 .gref = ref, 1291 "ring-ref", "%u", info->ring_ref); 1293 message = "writing ring-ref";
|
/drivers/clk/ |
H A D | clk.c | 2246 kref_init(&clk->ref); 2375 static void __clk_release(struct kref *ref) argument 2377 struct clk *clk = container_of(ref, struct clk, ref); 2470 kref_put(&clk->ref, __clk_release); 2542 kref_get(&clk->ref); 2553 kref_put(&clk->ref, __clk_release);
|
/drivers/hwmon/ |
H A D | w83793.c | 291 static void w83793_release_resources(struct kref *ref) argument 293 struct w83793_data *data = container_of(ref, struct w83793_data, kref);
|
/drivers/infiniband/hw/mlx4/ |
H A D | mcg.c | 137 #define safe_atomic_dec(ref) \ 139 if (atomic_dec_and_test(ref)) \ 604 int ref = 0; local 619 ++ref; 628 ref = 1; 634 return ref;
|
/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib.h | 388 struct kref ref; member in struct:ipoib_ah 459 kref_put(&ah->ref, ipoib_free_ah);
|
/drivers/isdn/hardware/eicon/ |
H A D | debug.c | 2048 static int diva_dbg_cmp_key(const char *ref, const char *key) { argument 2049 while (*key && (*ref++ == *key++)); 2050 return (!*key && !*ref); 2060 const char *ref = &TraceFilter[0]; local 2063 if (ref[0] == 'C') { 2064 if (diva_dbg_cmp_key(&ref[1], "single")) { 2075 ref = ref + ref_len - 1; 2078 if (*nmbr-- != *ref--) {
|
/drivers/media/usb/em28xx/ |
H A D | em28xx-video.c | 1858 * @ref: struct kref for struct em28xx_v4l2 1862 static void em28xx_free_v4l2(struct kref *ref) argument 1864 struct em28xx_v4l2 *v4l2 = container_of(ref, struct em28xx_v4l2, ref); 1928 kref_get(&dev->ref); 1929 kref_get(&v4l2->ref); 1991 kref_put(&v4l2->ref, em28xx_free_v4l2); 1995 kref_put(&dev->ref, em28xx_free_device); 2065 kref_put(&v4l2->ref, em28xx_free_v4l2); 2067 kref_put(&dev->ref, em28xx_free_devic [all...] |
/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls.c | 1727 struct v4l2_ctrl_ref *ref, *next_ref; local 1736 list_for_each_entry_safe(ref, next_ref, &hdl->ctrl_refs, node) { 1737 list_del(&ref->node); 1738 kfree(ref); 1764 struct v4l2_ctrl_ref *ref; local 1767 list_for_each_entry(ref, &hdl->ctrl_refs, node) { 1770 if (V4L2_CTRL_ID2CLASS(ref->ctrl->id) == V4L2_CTRL_CLASS_USER && 1771 V4L2_CTRL_DRIVER_PRIV(ref->ctrl->id)) { 1772 if (!ref->ctrl->is_int) 1775 return ref; 1785 struct v4l2_ctrl_ref *ref; local 1813 struct v4l2_ctrl_ref *ref = NULL; local 1826 struct v4l2_ctrl_ref *ref = find_ref_lock(hdl, id); local 1836 struct v4l2_ctrl_ref *ref; local 2228 struct v4l2_ctrl_ref *ref; local 2473 struct v4l2_ctrl_ref *ref; local 2711 struct v4l2_ctrl_ref *ref; local [all...] |
/drivers/net/wireless/b43/ |
H A D | phy_lp.c | 517 u32 crystalfreq, tmp, ref; local 581 ref = (1000 * lpphy->pdiv + 2 * crystalfreq) / (2000 * lpphy->pdiv); 582 ref &= 0xFFFF; 584 if (ref < freqdata_tab[i].freq) {
|
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-trans.h | 478 * @ref: grab a reference to the transport/FW layers, disallowing 480 * @unref: release a reference previously taken with @ref. Note that 535 void (*ref)(struct iwl_trans *trans); member in struct:iwl_trans_ops 697 if (trans->ops->ref) 698 trans->ops->ref(trans);
|
/drivers/net/ |
H A D | xen-netfront.c | 226 grant_ref_t ref = queue->grant_rx_ref[i]; local 228 return ref; 275 grant_ref_t ref; local 343 ref = gnttab_claim_grant_reference(&queue->gref_rx_head); 344 BUG_ON((signed short)ref < 0); 345 queue->grant_rx_ref[id] = ref; 351 gnttab_grant_foreign_access_ref(ref, 357 req->gref = ref; 461 grant_ref_t ref; local 477 ref 595 grant_ref_t ref; local 730 xennet_move_rx_slot(struct netfront_queue *queue, struct sk_buff *skb, grant_ref_t ref) argument 755 grant_ref_t ref; local 796 grant_ref_t ref = xennet_get_rx_ref(queue, cons); local 1163 int id, ref; local 1409 xennet_end_access(int ref, void *page) argument [all...] |
/drivers/staging/android/ion/ |
H A D | ion.c | 99 * @ref: reference count 110 struct kref ref; member in struct:ion_handle 193 kref_init(&buffer->ref); 286 struct ion_buffer *buffer = container_of(kref, struct ion_buffer, ref); 302 kref_get(&buffer->ref); 307 return kref_put(&buffer->ref, _ion_buffer_destroy); 349 kref_init(&handle->ref); 363 struct ion_handle *handle = container_of(kref, struct ion_handle, ref); 389 kref_get(&handle->ref); 398 ret = kref_put(&handle->ref, ion_handle_destro [all...] |
/drivers/usb/gadget/legacy/ |
H A D | tcm_usb_gadget.c | 43 kref_put(&cmd->ref, usbg_cmd_release); 1104 kref_init(&cmd->ref); 1105 kref_get(&cmd->ref); 1228 kref_init(&cmd->ref); 1229 kref_get(&cmd->ref); 1406 static void usbg_cmd_release(struct kref *ref) argument 1408 struct usbg_cmd *cmd = container_of(ref, struct usbg_cmd, 1409 ref); 1864 kref_put(&cmd->ref, usbg_cmd_release);
|
/drivers/usb/host/ |
H A D | isp1362-hcd.c | 2394 u16 *ref; local 2397 ref = kmalloc(2 * ISP1362_BUF_SIZE, GFP_KERNEL); 2398 if (ref) { 2400 u16 *tst = &ref[ISP1362_BUF_SIZE / 2]; 2403 ref[offset] = ~offset; 2412 isp1362_write_buffer(isp1362_hcd, (u8 *)ref + offset, 0, j); 2416 if (memcmp(ref, tst, j)) { 2420 dump_data((u8 *)ref + offset, j); 2427 isp1362_write_buffer(isp1362_hcd, ref, 0, ISP1362_BUF_SIZE); 2431 if (memcmp(ref, ts [all...] |
/drivers/dma/ppc4xx/ |
H A D | adma.c | 1391 struct ppc_dma_chan_ref *ref; local 1417 list_for_each_entry(ref, &ppc440spe_adma_chan_list, node) { 1418 if (dma_has_cap(cap, ref->chan->device->cap_mask)) { 1421 rank = ppc440spe_adma_estimate(ref->chan, cap, dst_lst, 1425 best_chan = ref->chan; 4032 struct ppc_dma_chan_ref *ref, *_ref; local 4189 ref = kmalloc(sizeof(*ref), GFP_KERNEL); 4190 if (ref) { 4191 ref 4264 struct ppc_dma_chan_ref *ref, *_ref; local [all...] |