Lines Matching defs:cb_arg
3027 struct efct_hw_link_stat_cb_arg *cb_arg = arg;
3083 if (cb_arg) {
3084 if (cb_arg->cb) {
3087 cb_arg->cb(status, num_counters, counts, cb_arg->arg);
3090 kfree(cb_arg);
3105 struct efct_hw_link_stat_cb_arg *cb_arg;
3108 cb_arg = kzalloc(sizeof(*cb_arg), GFP_ATOMIC);
3109 if (!cb_arg)
3112 cb_arg->cb = cb;
3113 cb_arg->arg = arg;
3119 efct_hw_cb_link_stat, cb_arg);
3122 kfree(cb_arg);
3132 struct efct_hw_host_stat_cb_arg *cb_arg = arg;
3168 if (cb_arg) {
3169 if (cb_arg->cb) {
3172 cb_arg->cb(status, num_counters, counts, cb_arg->arg);
3175 kfree(cb_arg);
3189 struct efct_hw_host_stat_cb_arg *cb_arg;
3192 cb_arg = kmalloc(sizeof(*cb_arg), GFP_ATOMIC);
3193 if (!cb_arg)
3196 cb_arg->cb = cb;
3197 cb_arg->arg = arg;
3202 efct_hw_cb_host_stat, cb_arg);
3206 kfree(cb_arg);
3272 struct efct_hw_fw_wr_cb_arg *cb_arg = arg;
3284 if (cb_arg) {
3285 if (cb_arg->cb) {
3288 cb_arg->cb(status, bytes_written, change_status,
3289 cb_arg->arg);
3292 kfree(cb_arg);
3307 struct efct_hw_fw_wr_cb_arg *cb_arg;
3310 cb_arg = kzalloc(sizeof(*cb_arg), GFP_KERNEL);
3311 if (!cb_arg)
3314 cb_arg->cb = cb;
3315 cb_arg->arg = arg;
3322 efct_hw_cb_fw_write, cb_arg);
3326 kfree(cb_arg);