/openbmc/linux/fs/fscache/ |
H A D | cookie.c | 51 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in fscache_print_cookie() 52 cookie->inline_key : cookie->key; in fscache_print_cookie() 74 if (cookie->aux_len > sizeof(cookie->inline_aux)) in fscache_free_cookie() 76 if (cookie->key_len > sizeof(cookie->inline_key)) in fscache_free_cookie() 336 if (!cookie) in fscache_alloc_cookie() 351 if (cookie->aux_len <= sizeof(cookie->inline_aux)) { in fscache_alloc_cookie() 352 memcpy(cookie->inline_aux, aux_data, cookie->aux_len); in fscache_alloc_cookie() 497 cookie->volume->cache->ops->prepare_to_write(cookie); in fscache_prepare_to_write() 776 cookie->volume->cache->ops->withdraw_cookie(cookie); in fscache_cookie_state_machine() 1139 cookie->inline_key : cookie->key; in fscache_cookies_seq_show() [all …]
|
H A D | io.c | 35 state = fscache_cookie_state(cookie); in fscache_wait_for_operation() 46 wait_var_event(&cookie->state, in fscache_wait_for_operation() 72 struct fscache_cookie *cookie, in fscache_begin_operation() argument 81 cres->cache_priv = cookie; in fscache_begin_operation() 83 cres->debug_id = cookie->debug_id; in fscache_begin_operation() 90 spin_lock(&cookie->lock); in fscache_begin_operation() 115 spin_unlock(&cookie->lock); in fscache_begin_operation() 121 spin_unlock(&cookie->lock); in fscache_begin_operation() 122 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_begin_operation() 136 spin_unlock(&cookie->lock); in fscache_begin_operation() [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | spartan3.c | 114 int cookie = desc->cookie; /* make a local copy */ in spartan3_sp_load() local 148 (*fn->pre) (cookie); in spartan3_sp_load() 167 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in spartan3_sp_load() 241 (*fn->post) (cookie); in spartan3_sp_load() 265 int cookie = desc->cookie; /* make a local copy */ in spartan3_sp_dump() local 318 int cookie = desc->cookie; /* make a local copy */ in spartan3_ss_load() local 339 (*fn->pre) (cookie); in spartan3_ss_load() 352 (*fn->abort) (cookie); in spartan3_ss_load() 368 (*fn->abort) (cookie); in spartan3_ss_load() 381 if ((*fn->done) (cookie) == 0 && (*fn->init) (cookie)) { in spartan3_ss_load() [all …]
|
H A D | spartan2.c | 110 int cookie = desc->cookie; /* make a local copy */ in spartan2_sp_load() local 144 (*fn->pre) (cookie); in spartan2_sp_load() 163 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in spartan2_sp_load() 182 while ((*fn->busy) (cookie)) { in spartan2_sp_load() 235 (*fn->post) (cookie); in spartan2_sp_load() 259 int cookie = desc->cookie; /* make a local copy */ in spartan2_sp_dump() local 312 int cookie = desc->cookie; /* make a local copy */ in spartan2_ss_load() local 333 (*fn->pre) (cookie); in spartan2_ss_load() 361 } while ((*fn->init) (cookie)); in spartan2_ss_load() 368 if ((*fn->done) (cookie) == 0 && (*fn->init) (cookie)) { in spartan2_ss_load() [all …]
|
H A D | virtex2.c | 168 int cookie = desc->cookie; in virtex2_ssm_load() local 199 (*fn->pre) (cookie); in virtex2_ssm_load() 216 (*fn->abort) (cookie); in virtex2_ssm_load() 235 (*fn->abort) (cookie); in virtex2_ssm_load() 238 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in virtex2_ssm_load() 251 (*fn->abort) (cookie); in virtex2_ssm_load() 268 (*fn->abort) (cookie); in virtex2_ssm_load() 319 while (((*fn->done) (cookie) == FPGA_FAIL) || (*fn->init) (cookie)) { in virtex2_ssm_load() 338 (*fn->post) (cookie); in virtex2_ssm_load() 343 cookie); in virtex2_ssm_load() [all …]
|
H A D | ACEX1K.c | 101 int cookie = desc->cookie; /* make a local copy */ in ACEX1K_ps_load() local 122 (*fn->pre) (cookie); in ACEX1K_ps_load() 131 (*fn->done) (cookie); in ACEX1K_ps_load() 134 (*fn->abort) (cookie); in ACEX1K_ps_load() 147 (*fn->abort) (cookie); in ACEX1K_ps_load() 150 (*fn->done) (cookie); in ACEX1K_ps_load() 161 (*fn->abort) (cookie); in ACEX1K_ps_load() 168 if ((*fn->done) (cookie) == 0 && (*fn->init) (cookie)) { in ACEX1K_ps_load() 170 (*fn->abort) (cookie); in ACEX1K_ps_load() 208 (*fn->abort) (cookie); in ACEX1K_ps_load() [all …]
|
H A D | stratixII.c | 72 int cookie; in StratixII_ps_fpp_load() local 97 cookie = desc->cookie; in StratixII_ps_fpp_load() 118 fns->config (0, 1, cookie); in StratixII_ps_fpp_load() 125 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load() 134 fns->abort (cookie); in StratixII_ps_fpp_load() 153 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load() 154 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load() 170 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load() 172 if (!fns->done (cookie)) { in StratixII_ps_fpp_load() 174 fns->abort (cookie); in StratixII_ps_fpp_load() [all …]
|
H A D | cyclon2.c | 105 int cookie = desc->cookie; /* make a local copy */ in CYC2_ps_load() local 118 printf ("Loading FPGA Device %d...", cookie); in CYC2_ps_load() 125 (*fn->pre) (cookie); in CYC2_ps_load() 131 (*fn->config) (true, true, cookie); /* Assert nCONFIG */ in CYC2_ps_load() 141 (*fn->abort) (cookie); in CYC2_ps_load() 144 } while (!(*fn->status) (cookie)); in CYC2_ps_load() 149 ret = (*fn->write) (buf, bsize, true, cookie); in CYC2_ps_load() 152 (*fn->abort) (cookie); in CYC2_ps_load() 169 if ( ! (*fn->done) (cookie) ) { in CYC2_ps_load() 171 (*fn->abort) (cookie); in CYC2_ps_load() [all …]
|
/openbmc/linux/include/linux/ |
H A D | fscache.h | 25 #define fscache_cookie_valid(cookie) (cookie) argument 27 #define fscache_cookie_enabled(cookie) (cookie && !test_bit(FSCACHE_COOKIE_DISABLED, &cookie->flags… argument 32 #define fscache_cookie_valid(cookie) (0) argument 271 if (fscache_cookie_valid(cookie)) in fscache_use_cookie() 288 if (fscache_cookie_valid(cookie)) in fscache_unuse_cookie() 307 if (fscache_cookie_valid(cookie)) in fscache_relinquish_cookie() 316 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_get_aux() 317 return cookie->inline_aux; in fscache_get_aux() 319 return cookie->aux; in fscache_get_aux() 634 struct fscache_cookie *cookie); [all …]
|
H A D | fscache-cache.h | 62 bool (*lookup_cookie)(struct fscache_cookie *cookie); 65 void (*withdraw_cookie)(struct fscache_cookie *cookie); 72 bool (*invalidate_cookie)(struct fscache_cookie *cookie); 79 void (*prepare_to_write)(struct fscache_cookie *cookie); 101 struct fscache_cookie *cookie, 106 extern void fscache_put_cookie(struct fscache_cookie *cookie, 112 extern void fscache_caching_failed(struct fscache_cookie *cookie); 126 return smp_load_acquire(&cookie->state); in fscache_cookie_state() 137 if (cookie->key_len <= sizeof(cookie->inline_key)) in fscache_get_key() 138 return cookie->inline_key; in fscache_get_key() [all …]
|
/openbmc/u-boot/include/ |
H A D | spartan3.h | 77 #define XILINX_XC3S50_DESC(iface, fn_table, cookie) \ argument 81 #define XILINX_XC3S200_DESC(iface, fn_table, cookie) \ argument 85 #define XILINX_XC3S400_DESC(iface, fn_table, cookie) \ argument 89 #define XILINX_XC3S1000_DESC(iface, fn_table, cookie) \ argument 93 #define XILINX_XC3S1500_DESC(iface, fn_table, cookie) \ argument 97 #define XILINX_XC3S2000_DESC(iface, fn_table, cookie) \ argument 101 #define XILINX_XC3S4000_DESC(iface, fn_table, cookie) \ argument 105 #define XILINX_XC3S5000_DESC(iface, fn_table, cookie) \ argument 110 #define XILINX_XC3S100E_DESC(iface, fn_table, cookie) \ argument 114 #define XILINX_XC3S250E_DESC(iface, fn_table, cookie) \ argument [all …]
|
H A D | virtex2.h | 64 #define XILINX_XC2V40_DESC(iface, fn_table, cookie) \ argument 68 #define XILINX_XC2V80_DESC(iface, fn_table, cookie) \ argument 72 #define XILINX_XC2V250_DESC(iface, fn_table, cookie) \ argument 76 #define XILINX_XC2V500_DESC(iface, fn_table, cookie) \ argument 80 #define XILINX_XC2V1000_DESC(iface, fn_table, cookie) \ argument 84 #define XILINX_XC2V1500_DESC(iface, fn_table, cookie) \ argument 88 #define XILINX_XC2V2000_DESC(iface, fn_table, cookie) \ argument 92 #define XILINX_XC2V3000_DESC(iface, fn_table, cookie) \ argument 96 #define XILINX_XC2V4000_DESC(iface, fn_table, cookie) \ argument 100 #define XILINX_XC2V6000_DESC(iface, fn_table, cookie) \ argument [all …]
|
H A D | spartan2.h | 67 #define XILINX_XC2S15_DESC(iface, fn_table, cookie) \ argument 71 #define XILINX_XC2S30_DESC(iface, fn_table, cookie) \ argument 75 #define XILINX_XC2S50_DESC(iface, fn_table, cookie) \ argument 79 #define XILINX_XC2S100_DESC(iface, fn_table, cookie) \ argument 83 #define XILINX_XC2S150_DESC(iface, fn_table, cookie) \ argument 87 #define XILINX_XC2S200_DESC(iface, fn_table, cookie) \ argument 91 #define XILINX_XC2S50E_DESC(iface, fn_table, cookie) \ argument 95 #define XILINX_XC2S100E_DESC(iface, fn_table, cookie) \ argument 99 #define XILINX_XC2S150E_DESC(iface, fn_table, cookie) \ argument 103 #define XILINX_XC2S200E_DESC(iface, fn_table, cookie) \ argument [all …]
|
H A D | xilinx.h | 43 int cookie; /* implementation specific cookie */ member 70 typedef int (*xilinx_pgm_fn)(int assert_pgm, int flush, int cookie); 71 typedef int (*xilinx_init_fn)(int cookie); 72 typedef int (*xilinx_err_fn)(int cookie); 73 typedef int (*xilinx_done_fn)(int cookie); 75 typedef int (*xilinx_cs_fn)(int assert_cs, int flush, int cookie); 77 typedef int (*xilinx_rdata_fn)(unsigned char *data, int cookie); 79 typedef int (*xilinx_busy_fn)(int cookie); 80 typedef int (*xilinx_abort_fn)(int cookie); 81 typedef int (*xilinx_pre_fn)(int cookie); [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | core_sched.c | 40 return cookie; in sched_core_get_cookie() 54 unsigned long cookie) in sched_core_update_cookie() argument 74 p->core_cookie = cookie; in sched_core_update_cookie() 101 unsigned long cookie, flags; in sched_core_clone_cookie() local 107 return cookie; in sched_core_clone_cookie() 123 cookie = sched_core_get_cookie(cookie); in __sched_core_set() 124 cookie = sched_core_update_cookie(p, cookie); in __sched_core_set() 125 sched_core_put_cookie(cookie); in __sched_core_set() 177 if (cookie) { in sched_core_share_pid() 186 if (!cookie) { in sched_core_share_pid() [all …]
|
/openbmc/u-boot/board/armadeus/apf27/ |
H A D | fpga.h | 13 extern int fpga_pre_fn(int cookie); 14 extern int fpga_pgm_fn(int assert_pgm, int flush, int cookie); 15 extern int fpga_cs_fn(int assert_cs, int flush, int cookie); 16 extern int fpga_init_fn(int cookie); 17 extern int fpga_done_fn(int cookie); 18 extern int fpga_clk_fn(int assert_clk, int flush, int cookie); 19 extern int fpga_wr_fn(int assert_write, int flush, int cookie); 20 extern int fpga_rdata_fn(unsigned char *data, int cookie); 22 extern int fpga_abort_fn(int cookie); 23 extern int fpga_post_fn(int cookie); [all …]
|
H A D | fpga.c | 57 int fpga_pre_fn(int cookie) in fpga_pre_fn() argument 79 return cookie; in fpga_pre_fn() 85 int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 108 int fpga_init_fn(int cookie) in fpga_init_fn() argument 124 int fpga_done_fn(int cookie) in fpga_done_fn() argument 150 int fpga_rdata_fn(unsigned char *data, int cookie) in fpga_rdata_fn() argument 167 int fpga_abort_fn(int cookie) in fpga_abort_fn() argument 169 return fpga_post_fn(cookie); in fpga_abort_fn() 173 int fpga_busy_fn(int cookie) in fpga_busy_fn() argument 178 int fpga_post_fn(int cookie) in fpga_post_fn() argument [all …]
|
/openbmc/u-boot/api/ |
H A D | api_net.c | 27 static int dev_valid_net(void *cookie) in dev_valid_net() argument 29 return ((void *)eth_get_dev() == cookie) ? 1 : 0; in dev_valid_net() 32 int dev_open_net(void *cookie) in dev_open_net() argument 34 if (!dev_valid_net(cookie)) in dev_open_net() 43 int dev_close_net(void *cookie) in dev_close_net() argument 45 if (!dev_valid_net(cookie)) in dev_close_net() 61 di->cookie = (void *)eth_current; in dev_enum_net() 62 if (di->cookie == NULL) in dev_enum_net() 68 (u_int32_t)di->cookie); in dev_enum_net() 89 int dev_open_net(void *cookie) in dev_open_net() argument [all …]
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-inotify/ |
H A D | new-test-inotify.patch | 166 - inotify.adapters._INOTIFY_EVENT(wd=1, mask=8, cookie=0, len=16), 408 … (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073742080, cookie=events1[0][0].cookie, len=16… 409 … (inotify.adapters._INOTIFY_EVENT(wd=wd_path, mask=1073742080, cookie=events1[0][0].cookie, len=16… 423 … (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073741888, cookie=events2[0][0].cookie, len=16… 424 … (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073741952, cookie=events2[1][0].cookie, len=16… 425 … (inotify.adapters._INOTIFY_EVENT(wd=wd_path, mask=1073741888, cookie=events2[0][0].cookie, len=16… 426 … (inotify.adapters._INOTIFY_EVENT(wd=wd_path, mask=1073741952, cookie=events2[1][0].cookie, len=16… 445 … (inotify.adapters._INOTIFY_EVENT(wd=wd_old_path, mask=64, cookie=events3[3][0].cookie, len=16… 446 … (inotify.adapters._INOTIFY_EVENT(wd=wd_old_path, mask=128, cookie=events3[4][0].cookie, len=16… 453 - (inotify.adapters._INOTIFY_EVENT(wd=3, mask=64, cookie=events3[3][0].cookie, len=1… [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | fscache.h | 277 __entry->cookie, 308 __entry->cookie, 371 __entry->cookie, 400 __entry->cookie, 409 TP_ARGS(cookie), 419 __entry->cookie = cookie->debug_id; 426 __entry->cookie, 445 __entry->cookie = cookie->debug_id; 469 __entry->cookie = cookie->debug_id; 489 __entry->cookie = cookie->debug_id; [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | dmaengine.h | 18 chan->cookie = DMA_MIN_COOKIE; in dma_cookie_init() 32 dma_cookie_t cookie; in dma_cookie_assign() local 34 cookie = chan->cookie + 1; in dma_cookie_assign() 35 if (cookie < DMA_MIN_COOKIE) in dma_cookie_assign() 36 cookie = DMA_MIN_COOKIE; in dma_cookie_assign() 37 tx->cookie = chan->cookie = cookie; in dma_cookie_assign() 39 return cookie; in dma_cookie_assign() 54 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete() 55 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete() 56 tx->cookie = 0; in dma_cookie_complete() [all …]
|
/openbmc/linux/fs/cachefiles/ |
H A D | interface.c | 40 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object() 94 object->cookie = NULL; in cachefiles_put_object() 117 ni_size = object->cookie->object_size; in cachefiles_adjust_size() 179 object = cachefiles_alloc_object(cookie); in cachefiles_lookup_cookie() 188 cookie->cache_priv = object; in cachefiles_lookup_cookie() 210 fscache_caching_failed(cookie); in cachefiles_lookup_cookie() 278 struct fscache_cookie *cookie = object->cookie; in cachefiles_resize_cookie() local 281 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie() 289 object->cookie->object_size = new_size; in cachefiles_resize_cookie() 297 cookie->object_size = new_size; in cachefiles_resize_cookie() [all …]
|
/openbmc/u-boot/board/theadorable/ |
H A D | fpga.c | 19 static int fpga_pre_fn(int cookie) in fpga_pre_fn() argument 21 int gpio_config = COOKIE2CONFIG(cookie); in fpga_pre_fn() 22 int gpio_done = COOKIE2DONE(cookie); in fpga_pre_fn() 48 int gpio_config = COOKIE2CONFIG(cookie); in fpga_config_fn() 51 __func__, __LINE__, cookie, gpio_config); in fpga_config_fn() 63 int spi_bus = COOKIE2SPI_BUS(cookie); in fpga_write_fn() 64 int spi_dev = COOKIE2SPI_DEV(cookie); in fpga_write_fn() 76 __func__, __LINE__, cookie, spi_bus, spi_dev); in fpga_write_fn() 104 static int fpga_done_fn(int cookie) in fpga_done_fn() argument 106 int gpio_done = COOKIE2DONE(cookie); in fpga_done_fn() [all …]
|
/openbmc/linux/drivers/iommu/ |
H A D | dma-iommu.c | 152 cookie->fq_domain->ops->flush_iotlb_all(cookie->fq_domain); in fq_flush_iotlb() 158 struct iommu_dma_cookie *cookie = from_timer(cookie, t, fq_timer); in fq_flush_timeout() local 227 if (!cookie->fq) in iommu_dma_free_fq() 273 cookie->fq = queue; in iommu_dma_init_fq() 297 cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); in cookie_alloc() 298 if (cookie) { in cookie_alloc() 302 return cookie; in cookie_alloc() 345 if (!cookie) in iommu_get_msi_cookie() 364 if (!cookie) in iommu_put_dma_cookie() 376 kfree(cookie); in iommu_put_dma_cookie() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_matchall.c | 21 f->cookie, ingress, in lan966x_tc_matchall_add() 24 return lan966x_mirror_port_add(port, act, f->cookie, in lan966x_tc_matchall_add() 28 act->chain_index, f->cookie, in lan966x_tc_matchall_add() 43 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_del() 44 return lan966x_police_port_del(port, f->cookie, in lan966x_tc_matchall_del() 46 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_del() 47 f->cookie == port->tc.egress_mirror_id) { in lan966x_tc_matchall_del() 51 return lan966x_goto_port_del(port, f->cookie, f->common.extack); in lan966x_tc_matchall_del() 61 if (f->cookie == port->tc.police_id) { in lan966x_tc_matchall_stats() 63 } else if (f->cookie == port->tc.ingress_mirror_id || in lan966x_tc_matchall_stats() [all …]
|